|
|
@ -38,7 +38,6 @@ AC_CHECK_HEADERS(alloca.h pthread.h stdio.h math.h signal.h sys/prctl.h) |
|
|
|
AC_CHECK_HEADERS(sys/types.h sys/socket.h sys/stat.h linux/un.h netdb.h) |
|
|
|
AC_CHECK_HEADERS(sys/types.h sys/socket.h sys/stat.h linux/un.h netdb.h) |
|
|
|
AC_CHECK_HEADERS(stdint.h netinet/in.h netinet/tcp.h sys/ioctl.h getopt.h) |
|
|
|
AC_CHECK_HEADERS(stdint.h netinet/in.h netinet/tcp.h sys/ioctl.h getopt.h) |
|
|
|
AC_CHECK_HEADERS(sys/epoll.h libpq-fe.h postgresql/libpq-fe.h grp.h) |
|
|
|
AC_CHECK_HEADERS(sys/epoll.h libpq-fe.h postgresql/libpq-fe.h grp.h) |
|
|
|
AC_CHECK_HEADERS(bzlib.h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PTHREAD_LIBS="-lpthread" |
|
|
|
PTHREAD_LIBS="-lpthread" |
|
|
|
MATH_LIBS="-lm" |
|
|
|
MATH_LIBS="-lm" |
|
|
@ -60,18 +59,13 @@ AC_ARG_WITH([ckdb], |
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
AC_CHECK_LIB([pq], [main],[PQ=-lpq],echo "Error: Required library libpq-dev |
|
|
|
AC_CHECK_LIB([pq], [main],[PQ=-lpq],echo "Error: Required library libpq-dev |
|
|
|
not found. Install it or disable postgresql support with --without-ckdb" && exit 1) |
|
|
|
not found. Install it or disable postgresql support with --without-ckdb" && exit 1) |
|
|
|
AC_CHECK_LIB([bz2], [main],[BZ2=-lbz],echo "Error: Required library libbz |
|
|
|
|
|
|
|
not found. Install it or disable libbz2 support with --without-ckdb" && exit 1) |
|
|
|
|
|
|
|
AC_DEFINE([USE_CKDB], [1], [Defined to 1 if ckdb support required]) |
|
|
|
AC_DEFINE([USE_CKDB], [1], [Defined to 1 if ckdb support required]) |
|
|
|
PQ_LIBS="-lpq" |
|
|
|
PQ_LIBS="-lpq" |
|
|
|
BZ2_LIBS="-lbz2" |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
PQ_LIBS="" |
|
|
|
PQ_LIBS="" |
|
|
|
BZ2_LIBS="" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|
AC_SUBST(PQ_LIBS) |
|
|
|
AC_SUBST(PQ_LIBS) |
|
|
|
AC_SUBST(BZ2_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile] [src/Makefile]) |
|
|
|
AC_OUTPUT([Makefile] [src/Makefile]) |
|
|
|
|
|
|
|
|
|
|
@ -81,7 +75,7 @@ echo " CPPFLAGS.............: $CPPFLAGS" |
|
|
|
echo " CFLAGS...............: $CFLAGS" |
|
|
|
echo " CFLAGS...............: $CFLAGS" |
|
|
|
echo " LDFLAGS..............: $LDFLAGS" |
|
|
|
echo " LDFLAGS..............: $LDFLAGS" |
|
|
|
echo " LDADD................: $PTHREAD_LIBS $MATH_LIBS $RT_LIBS $JANSSON_LIBS" |
|
|
|
echo " LDADD................: $PTHREAD_LIBS $MATH_LIBS $RT_LIBS $JANSSON_LIBS" |
|
|
|
echo " db LDADD.............: $PQ_LIBS $BZ2_LIBS" |
|
|
|
echo " db LDADD.............: $PQ_LIBS" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" |
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" |
|
|
|
echo " prefix...............: $prefix" |
|
|
|
echo " prefix...............: $prefix" |
|
|
|