Intergrated test scripts with automake
[gnucomo.git] / configure.in
index 0b57e30..f7ee27b 100644 (file)
@@ -1,7 +1,7 @@
 
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/gcm_input/message.h)
-AM_INIT_AUTOMAKE(GnuCoMo, 0.0.9)
+AM_INIT_AUTOMAKE(GnuCoMo, 0.0.10)
 
 
 dnl Checks for programs.
@@ -41,14 +41,10 @@ AC_CHECK_LIB(AXE, main, , AC_MSG_ERROR(AXE Library is not installed))
 #AC_CHECK_LIB(pthread, pthread_create)
 AC_CHECK_LIB(xml2, xmlParseFile)
 
-# Find PostgreSQL includes and libraries
-AC_PATH_PROGS(PG_CONFIG, pqxx-config)
-if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
-       AC_MSG_ERROR([libpqxx configuration script was not found])
-fi
-with_postgres_include=`$PG_CONFIG --cflags`
+# PostgreSQL includes and libraries
+with_postgres_include="-I/usr/include/pqxx"
 AC_MSG_NOTICE([using PostgreSQL headers at $with_postgres_include])
-with_postgres_lib=`$PG_CONFIG --libs`
+with_postgres_lib="-lpqxx -lpq"
 AC_MSG_NOTICE([using PostgreSQL libraries at $with_postgres_lib])
 
 AC_SUBST(with_postgres_lib)
@@ -93,4 +89,4 @@ dnl Edit this to be your web server's document root
 DocumentRoot=/var/www/html
 
 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
-AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile)
+AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile test/Makefile)