diff configure.ac @ 408:7f7855df2af0

Make unittest built by automake and autoconf. ./configure --enable-testcase to build testcase.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 07 Jul 2009 22:46:19 +0800
parents 6024f98bbf5e
children 2bdd4f5dd2ca
line wrap: on
line diff
--- a/configure.ac	Tue Jul 07 22:45:12 2009 +0800
+++ b/configure.ac	Tue Jul 07 22:46:19 2009 +0800
@@ -14,7 +14,7 @@
 
 # Checks for libraries.
 PKG_CHECK_MODULES([cairo], [cairo >= 1.6], , AC_MSG_ERROR([cairo >= 1.6 not found]))
-PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.22], , AC_MSG_ERROR([pangocairo >= 1.22 not found]))
+PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.0], , AC_MSG_ERROR([pangocairo >= 1.0 not found]))
 
 # Checks for header files.
 AC_PATH_X
@@ -35,6 +35,10 @@
 AC_FUNC_SELECT_ARGTYPES
 AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup])
 
+AC_ARG_ENABLE([testcase],[enable testcase for unittest],
+	[AC_SUBST([TESTCASE],[testcase])],
+	[AC_SUBST([TESTCASE],)])
+
 AC_CONFIG_FILES([Makefile
                  libmbfly.pc
                  libmbfly-uninstalled.pc