X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=configure.in;h=a1b23b8d98f723614f64f7d5d2637e46fc9efa1c;hb=86c9895ec2acf4fc478242ac9b35dcef9e128971;hp=3c979b64b2f971b82831550e4a0c84769db33753;hpb=0deca6fde903c24f43013f5855458e2a7728b2d0;p=gnucomo.git diff --git a/configure.in b/configure.in index 3c979b6..a1b23b8 100644 --- a/configure.in +++ b/configure.in @@ -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.5) +AM_INIT_AUTOMAKE(GnuCoMo, 0.0.8) dnl Checks for programs. @@ -17,7 +17,7 @@ AC_PROG_AWK AC_PATH_PROG(XML_CONFIG,xml2-config,no) -if test $XML_CONFIG = "no" +if test $XML_CONFIG = "no" then echo "XML library not found (see http://xmlsoft.org/)." exit 1; @@ -30,17 +30,26 @@ AC_PATH_XTRA XML_CFLAGS=`$XML_CONFIG --cflags` XML_LFLAGS=`$XML_CONFIG --libs` -LIBS="$LIBS -lAXE -lpq++ $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" +LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS" LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS" -CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql" -CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql" - -AC_CHECK_LIB(AXE, main) -AC_CHECK_LIB(X11, XOpenDisplay) -AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData) -AC_CHECK_LIB(pthread, pthread_create) +CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS " +CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS" + +AC_HAVE_LIBRARY(pqxx) +AC_CHECK_LIB(AXE, main, , AC_MSG_ERROR(AXE Library is not installed)) +#AC_CHECK_LIB(X11, XOpenDisplay) +#AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData) +#AC_CHECK_LIB(pthread, pthread_create) AC_CHECK_LIB(xml2, xmlParseFile) + +# +# There is no convenient way to detect libpqxx, so we'll +# use fixed paths for the time being. + +CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include" +LDFLAGS="$LDFLAGS -L/usr/local/pqxx/lib -lpqxx" + dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC