| 1 |
# -*- mode: m4; -*- |
|---|
| 2 |
# -*- Autoconf -*- |
|---|
| 3 |
# Process this file with autoconf to produce a configure script. |
|---|
| 4 |
# nepenthes meta-Makefile |
|---|
| 5 |
# Maximillian Dornseif 2005 |
|---|
| 6 |
# $Id$ |
|---|
| 7 |
|
|---|
| 8 |
AC_PREREQ(2.59) |
|---|
| 9 |
AC_INIT([library], [0.1], [dornseif@informatik.rwth-aachen.de]) |
|---|
| 10 |
AM_INIT_AUTOMAKE([library], [0.1]) |
|---|
| 11 |
AC_REVISION([$Id$]) |
|---|
| 12 |
|
|---|
| 13 |
AC_PREFIX_DEFAULT(/opt/library) |
|---|
| 14 |
AC_CONFIG_SRCDIR([library-core/include/Buffer.hpp]) |
|---|
| 15 |
AM_CONFIG_HEADER([config.h]) |
|---|
| 16 |
# AM_MAINTAINER_MODE |
|---|
| 17 |
|
|---|
| 18 |
AM_CONDITIONAL(NDEBUG, test "$disable_debug" = yes) |
|---|
| 19 |
AM_CONDITIONAL(PROFILE, test "$enable_profile" = yes) |
|---|
| 20 |
|
|---|
| 21 |
AC_CANONICAL_HOST |
|---|
| 22 |
AC_C_CONST |
|---|
| 23 |
AC_C_BIGENDIAN |
|---|
| 24 |
|
|---|
| 25 |
dnl Check for some target-specific stuff |
|---|
| 26 |
case "$host" in |
|---|
| 27 |
*-*-freebsd*) |
|---|
| 28 |
# FreeBSD forgot to install magic.h in a sane location. Bug or Feature? |
|---|
| 29 |
CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/usr/src/contrib/file/" |
|---|
| 30 |
LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" |
|---|
| 31 |
;; |
|---|
| 32 |
*-*-linux*) |
|---|
| 33 |
CPPFLAGS="$CPPFLAGS -D _GNU_SOURCE -I/usr/local/include" |
|---|
| 34 |
LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" |
|---|
| 35 |
;; |
|---|
| 36 |
*-*-darwin*) |
|---|
| 37 |
CPPFLAGS="$CPPFLAGS -I/opt/local/include" |
|---|
| 38 |
LDFLAGS="$LDFLAGS -L/opt/local/lib" |
|---|
| 39 |
if test "$GCC" = "yes"; then |
|---|
| 40 |
CFLAGS="$CFLAGS -no-cpp-precomp" |
|---|
| 41 |
fi |
|---|
| 42 |
;; |
|---|
| 43 |
esac |
|---|
| 44 |
|
|---|
| 45 |
# Checks for programs. |
|---|
| 46 |
AC_PROG_CXX |
|---|
| 47 |
AC_PROG_CC |
|---|
| 48 |
AC_PROG_MAKE_SET |
|---|
| 49 |
AC_PROG_LIBTOOL |
|---|
| 50 |
AC_PROG_YACC |
|---|
| 51 |
AC_PROG_LEX |
|---|
| 52 |
|
|---|
| 53 |
# Checks for header files. |
|---|
| 54 |
#AC_HEADER_DIRENT |
|---|
| 55 |
#AC_HEADER_STDC |
|---|
| 56 |
#AC_HEADER_SYS_WAIT |
|---|
| 57 |
#AC_HEADER_TIME |
|---|
| 58 |
#AC_HEADER_STDBOOL |
|---|
| 59 |
|
|---|
| 60 |
AC_CHECK_HEADERS([getopt.h arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/ioctl.h sys/socket.h sys/time.h sys/timeb.h unistd.h]) |
|---|
| 61 |
|
|---|
| 62 |
dnl We ought not to have to worry about getopt.h, getopt{,1}.c, |
|---|
| 63 |
dnl since they can always be unconditionally compiled and linked. See |
|---|
| 64 |
dnl http://mail.gnu.org/archive/html/autoconf/2000-12/msg00049.html |
|---|
| 65 |
dnl and surrounding thread for discussion. However that doesn't |
|---|
| 66 |
dnl appear to work in fact, and the function in getopt_long.c has |
|---|
| 67 |
dnl different magic to avoid getting horribly tangled up. |
|---|
| 68 |
AC_CHECK_FUNCS(getopt) |
|---|
| 69 |
AC_CHECK_DECLS([getopt,getsubopt,getopt_long,setenv,putenv]) |
|---|
| 70 |
AC_REPLACE_FUNCS(getopt_long getsubopt) |
|---|
| 71 |
|
|---|
| 72 |
dnl getopt_long.c uses (and provides a replacement for) |
|---|
| 73 |
dnl this glibc utility function |
|---|
| 74 |
AC_CHECK_FUNCS(__strchrnul) |
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
# Checks for typedefs, structures, and compiler characteristics. |
|---|
| 78 |
AC_C_INLINE |
|---|
| 79 |
AC_TYPE_UID_T |
|---|
| 80 |
AC_STRUCT_TM |
|---|
| 81 |
AC_TYPE_SIZE_T |
|---|
| 82 |
AC_TYPE_SIGNAL |
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
AC_CHECK_SIZEOF(long) |
|---|
| 86 |
AC_CHECK_SIZEOF(off_t) |
|---|
| 87 |
|
|---|
| 88 |
AC_MSG_CHECKING([for SIGPOLL]) |
|---|
| 89 |
AC_EGREP_CPP(we_have_sigpoll, |
|---|
| 90 |
[#include <signal.h> |
|---|
| 91 |
#ifdef SIGPOLL |
|---|
| 92 |
we_have_sigpoll |
|---|
| 93 |
#endif |
|---|
| 94 |
], AC_DEFINE([HAVE_SIGPOLL], [1], [Define to 1 if you have the sigpoll signal.]) haveSIGPOLL=yes, haveSIGPOLL=no) |
|---|
| 95 |
AC_MSG_RESULT([$haveSIGPOLL]) |
|---|
| 96 |
|
|---|
| 97 |
AC_MSG_CHECKING([for SIGCLD]) |
|---|
| 98 |
AC_EGREP_CPP(we_have_sigcld, |
|---|
| 99 |
[#include <signal.h> |
|---|
| 100 |
#ifdef SIGCLD |
|---|
| 101 |
we_have_sigcld |
|---|
| 102 |
#endif |
|---|
| 103 |
], AC_DEFINE([HAVE_SIGCLD], [1], [Define to 1 if you have the sigcld signal.]) haveSIGCLD=yes, haveSIGCLD=no) |
|---|
| 104 |
AC_MSG_RESULT([$haveSIGCLD]) |
|---|
| 105 |
|
|---|
| 106 |
AC_MSG_CHECKING([for SIGPWR]) |
|---|
| 107 |
AC_EGREP_CPP(we_have_sigpwr, |
|---|
| 108 |
[#include <signal.h> |
|---|
| 109 |
#ifdef SIGPWR |
|---|
| 110 |
we_have_sigpwr |
|---|
| 111 |
#endif |
|---|
| 112 |
], AC_DEFINE([HAVE_SIGPWR], [1], [Define to 1 if you have the sigpwr signal.]) haveSIGPWR=yes, haveSIGPWR=no) |
|---|
| 113 |
AC_MSG_RESULT([$haveSIGPWR]) |
|---|
| 114 |
|
|---|
| 115 |
AC_MSG_CHECKING([for SIGSTKFLT]) |
|---|
| 116 |
AC_EGREP_CPP(we_have_sigstkflt, |
|---|
| 117 |
[#include <signal.h> |
|---|
| 118 |
#ifdef SIGSTKFLT |
|---|
| 119 |
we_have_sigstkflt |
|---|
| 120 |
#endif |
|---|
| 121 |
], AC_DEFINE([HAVE_SIGSTKFLT], [1], [Define to 1 if you have the sigstkflt signal.]) haveSIGSTKFLT=yes, haveSIGSTKFLT=no) |
|---|
| 122 |
AC_MSG_RESULT([$haveSIGSTKFLT]) |
|---|
| 123 |
|
|---|
| 124 |
AC_MSG_CHECKING([for SIGUNUSED]) |
|---|
| 125 |
AC_EGREP_CPP(we_have_sigunused, |
|---|
| 126 |
[#include <signal.h> |
|---|
| 127 |
#ifdef SIGUNUSED |
|---|
| 128 |
we_have_sigunused |
|---|
| 129 |
#endif |
|---|
| 130 |
], AC_DEFINE([HAVE_SIGUNUSED], [1], [Define to 1 if you have the sigunused signal.]) haveSIGUNUSED=yes, haveSIGUNUSED=no) |
|---|
| 131 |
AC_MSG_RESULT([$haveSIGUNUSED]) |
|---|
| 132 |
|
|---|
| 133 |
AC_MSG_CHECKING([for SIGINFO]) |
|---|
| 134 |
AC_EGREP_CPP(we_have_siginfo, |
|---|
| 135 |
[#include <signal.h> |
|---|
| 136 |
#ifdef SIGINFO |
|---|
| 137 |
we_have_siginfo |
|---|
| 138 |
#endif |
|---|
| 139 |
], AC_DEFINE([HAVE_SIGINFO], [1], [Define to 1 if you have the siginfo signal.]) haveSIGINFO=yes, haveSIGINFO=no) |
|---|
| 140 |
AC_MSG_RESULT([$haveSIGINFO]) |
|---|
| 141 |
|
|---|
| 142 |
AC_MSG_CHECKING([for SO_NOSIGPIPE]) |
|---|
| 143 |
AC_EGREP_CPP(we_have_sonosigpipe, |
|---|
| 144 |
[#include <sys/socket.h> |
|---|
| 145 |
#ifdef SO_NOSIGPIPE |
|---|
| 146 |
we_have_sonosigpipe |
|---|
| 147 |
#endif |
|---|
| 148 |
], AC_DEFINE([HAVE_SO_NOSIGPIPE], [1], [Define to 1 if you have the SO_NOSIGPIPE socketoption.]) haveSO_NOSIGPIPE=yes, haveSO_NOSIGPIPE=no) |
|---|
| 149 |
AC_MSG_RESULT([$haveSO_NOSIGPIPE]) |
|---|
| 150 |
|
|---|
| 151 |
AC_MSG_CHECKING(for MSG_NOSIGNAL) |
|---|
| 152 |
AC_EGREP_CPP(we_have_MSG_NOSIGNAL, |
|---|
| 153 |
[#include <linux/socket.h> |
|---|
| 154 |
#ifdef MSG_NOSIGNAL |
|---|
| 155 |
we_have_MSG_NOSIGNAL |
|---|
| 156 |
#endif |
|---|
| 157 |
], AC_DEFINE([HAVE_MSG_NOSIGNAL], [1], [Define to 1 if you have the MSG_NOSIGNAL socket flag.]) haveMSG_NOSIGNAL=yes, haveMSG_NOSIGNAL=no) |
|---|
| 158 |
AC_MSG_RESULT([$haveMSG_NOSIGNAL]) |
|---|
| 159 |
|
|---|
| 160 |
# Checks for library functions. |
|---|
| 161 |
AC_FUNC_ERROR_AT_LINE |
|---|
| 162 |
AC_TYPE_SIGNAL |
|---|
| 163 |
AC_CHECK_FUNCS([strndup alarm bzero gethostbyname gethostname gettimeofday inet_ntoa localtime_r memmove memset munmap select socket strcasecmp strdup strerror strncasecmp strstr strtoul setresgid setresuid]) |
|---|
| 164 |
|
|---|
| 165 |
# Checks for generic libraries. |
|---|
| 166 |
|
|---|
| 167 |
dnl ************************************************** |
|---|
| 168 |
dnl * libcurl Support * |
|---|
| 169 |
dnl ************************************************** |
|---|
| 170 |
AC_ARG_WITH(curl-include, |
|---|
| 171 |
[ --with-curl-include=PATH specify path to curl include files], |
|---|
| 172 |
[curl_inc=$withval], |
|---|
| 173 |
[curl_inc=no]) |
|---|
| 174 |
|
|---|
| 175 |
AC_ARG_WITH(curl-lib, |
|---|
| 176 |
[ --with-curl-lib=PATH specify path to curl client library], |
|---|
| 177 |
[curl_lib=$withval], |
|---|
| 178 |
[curl_lib=no]) |
|---|
| 179 |
|
|---|
| 180 |
if test xyes = "xyes"; then |
|---|
| 181 |
orig_cppflags=$CPPFLAGS |
|---|
| 182 |
|
|---|
| 183 |
if test "x$curl_inc" != xno; then |
|---|
| 184 |
CPPFLAGS="-I$curl_inc $CPPFLAGS" |
|---|
| 185 |
fi |
|---|
| 186 |
|
|---|
| 187 |
orig_ldflags=$LDFLAGS |
|---|
| 188 |
if test "x$curl_lib" != "xno"; then |
|---|
| 189 |
LDFLAGS="-L$curl_lib $LDFLAGS" |
|---|
| 190 |
fi |
|---|
| 191 |
|
|---|
| 192 |
AC_CHECK_LIB([curl], [curl_version], |
|---|
| 193 |
[AC_DEFINE(HAVE_LIBCURL, 1, |
|---|
| 194 |
[Define if you want to use libcurl]) |
|---|
| 195 |
LIBS="-lcurl $LIBS"], |
|---|
| 196 |
[AC_MSG_ERROR([libcurl is missing - install it please]) |
|---|
| 197 |
]) |
|---|
| 198 |
fi |
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
dnl ************************************************** |
|---|
| 202 |
dnl * libpcre Support * |
|---|
| 203 |
dnl ************************************************** |
|---|
| 204 |
|
|---|
| 205 |
AC_ARG_WITH(pcre-include, |
|---|
| 206 |
[ --with-pcre-include=PATH specify path to pcre include files], |
|---|
| 207 |
[pcre_inc=$withval], |
|---|
| 208 |
[pcre_inc=no]) |
|---|
| 209 |
|
|---|
| 210 |
AC_ARG_WITH(pcre-lib, |
|---|
| 211 |
[ --with-pcre-lib=PATH specify path to pcre client library], |
|---|
| 212 |
[pcre_lib=$withval], |
|---|
| 213 |
[pcre_lib=no]) |
|---|
| 214 |
|
|---|
| 215 |
if test xyes = "xyes"; then |
|---|
| 216 |
orig_cppflags=$CPPFLAGS |
|---|
| 217 |
|
|---|
| 218 |
if test "x$pcre_inc" != xno; then |
|---|
| 219 |
CPPFLAGS="-I$pcre_inc $CPPFLAGS" |
|---|
| 220 |
fi |
|---|
| 221 |
|
|---|
| 222 |
orig_ldflags=$LDFLAGS |
|---|
| 223 |
if test "x$pcre_lib" != "xno"; then |
|---|
| 224 |
LDFLAGS="-L$pcre_lib $LDFLAGS" |
|---|
| 225 |
fi |
|---|
| 226 |
|
|---|
| 227 |
AC_CHECK_LIB([pcre], [pcre_compile], |
|---|
| 228 |
[AC_DEFINE(HAVE_LIBPCRE, 1, |
|---|
| 229 |
[Define if you want to use libpcre]) |
|---|
| 230 |
LIBS="-lpcre $LIBS"], |
|---|
| 231 |
[AC_MSG_ERROR([libpcre is missing - install it please]) |
|---|
| 232 |
]) |
|---|
| 233 |
fi |
|---|
| 234 |
|
|---|
| 235 |
dnl ************************************************** |
|---|
| 236 |
dnl * libmagic Support * |
|---|
| 237 |
dnl ************************************************** |
|---|
| 238 |
|
|---|
| 239 |
AC_ARG_WITH(magic-include, |
|---|
| 240 |
[ --with-magic-include=PATH specify path to magic include files], |
|---|
| 241 |
[magic_inc=$withval], |
|---|
| 242 |
[magic_inc=no]) |
|---|
| 243 |
|
|---|
| 244 |
AC_ARG_WITH(magic-lib, |
|---|
| 245 |
[ --with-magic-lib=PATH specify path to magic client library], |
|---|
| 246 |
[magic_lib=$withval], |
|---|
| 247 |
[magic_lib=no]) |
|---|
| 248 |
|
|---|
| 249 |
if test xyes = "xyes"; then |
|---|
| 250 |
orig_cppflags=$CPPFLAGS |
|---|
| 251 |
|
|---|
| 252 |
if test "x$magic_inc" != xno; then |
|---|
| 253 |
CPPFLAGS="-I$magic_inc $CPPFLAGS" |
|---|
| 254 |
fi |
|---|
| 255 |
|
|---|
| 256 |
orig_ldflags=$LDFLAGS |
|---|
| 257 |
if test "x$magic_lib" != "xno"; then |
|---|
| 258 |
LDFLAGS="-L$magic_lib $LDFLAGS" |
|---|
| 259 |
fi |
|---|
| 260 |
|
|---|
| 261 |
|
|---|
| 262 |
AC_CHECK_LIB([magic], [magic_open], |
|---|
| 263 |
[AC_DEFINE(HAVE_LIBMAGIC, 1, |
|---|
| 264 |
[Define if you want to use libmagic]) |
|---|
| 265 |
LIBS="-lmagic $LIBS"], |
|---|
| 266 |
[AC_MSG_ERROR([libmagic is missing - install it please]) |
|---|
| 267 |
]) |
|---|
| 268 |
AC_CHECK_HEADERS(magic.h) |
|---|
| 269 |
fi |
|---|
| 270 |
|
|---|
| 271 |
|
|---|
| 272 |
|
|---|
| 273 |
dnl ************************************************** |
|---|
| 274 |
dnl * libssh Support * |
|---|
| 275 |
dnl ************************************************** |
|---|
| 276 |
|
|---|
| 277 |
AC_MSG_CHECKING(for libssh) |
|---|
| 278 |
|
|---|
| 279 |
AC_ARG_ENABLE(libssh, [ --enable-ssh Enable Support for ssh[default=auto]], |
|---|
| 280 |
enable_ssh="$enableval", enable_ssh="yes") |
|---|
| 281 |
|
|---|
| 282 |
AC_ARG_WITH(ssh-lib, |
|---|
| 283 |
[ --with-ssh-lib=PATH specify path to ssh client library], |
|---|
| 284 |
[ssh_lib=$withval], |
|---|
| 285 |
[ssh_lib=no]) |
|---|
| 286 |
AC_ARG_WITH(ssh-include, |
|---|
| 287 |
[ --with-ssh-include=PATH specify path to ssh include files], |
|---|
| 288 |
[ssh_inc=$withval], |
|---|
| 289 |
[ssh_inc=no]) |
|---|
| 290 |
|
|---|
| 291 |
|
|---|
| 292 |
if test x$enable_ssh = xyes; then |
|---|
| 293 |
dnl ************************************************** |
|---|
| 294 |
dnl * ssh headers * |
|---|
| 295 |
dnl ************************************************** |
|---|
| 296 |
|
|---|
| 297 |
orig_cppflags=$CPPFLAGS |
|---|
| 298 |
|
|---|
| 299 |
if test "x$ssh_inc" != xno; then |
|---|
| 300 |
CPPFLAGS="-I$ssh_inc $CPPFLAGS" |
|---|
| 301 |
fi |
|---|
| 302 |
|
|---|
| 303 |
AC_CHECK_HEADER(libssh.h, [found=yes], [found=no]) |
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
if test "x$found" != "xno"; then |
|---|
| 307 |
|
|---|
| 308 |
dnl ************************************************** |
|---|
| 309 |
dnl * ssh lib * |
|---|
| 310 |
dnl ************************************************** |
|---|
| 311 |
|
|---|
| 312 |
orig_ldflags=$LDFLAGS |
|---|
| 313 |
if test "x$ssh_lib" != "xno"; then |
|---|
| 314 |
LDFLAGS="-L$ssh_lib $LDFLAGS" |
|---|
| 315 |
fi |
|---|
| 316 |
AC_CHECK_LIB([ssh], [ssh_bind_new],[found=yes], [found=no]) |
|---|
| 317 |
|
|---|
| 318 |
if test "x$found" != "xyes"; then |
|---|
| 319 |
LDFLAGS=$orig_ldflags |
|---|
| 320 |
fi |
|---|
| 321 |
else |
|---|
| 322 |
CPPFLAGS=$orig_cppflags |
|---|
| 323 |
|
|---|
| 324 |
fi |
|---|
| 325 |
|
|---|
| 326 |
if test "x$found" != "xyes"; then |
|---|
| 327 |
enable_ssh=no |
|---|
| 328 |
else |
|---|
| 329 |
AC_DEFINE(HAVE_LIBSSH,1,[Define wether we have libssh]) |
|---|
| 330 |
LIBS="-lssh $LIBS" |
|---|
| 331 |
fi |
|---|
| 332 |
|
|---|
| 333 |
fi |
|---|
| 334 |
|
|---|
| 335 |
|
|---|
| 336 |
dnl ************************************************** |
|---|
| 337 |
dnl * mysql Support * |
|---|
| 338 |
dnl ************************************************** |
|---|
| 339 |
|
|---|
| 340 |
AC_ARG_WITH(mysql-lib, |
|---|
| 341 |
[ --with-mysql-lib=PATH specify path to MySQL client library], |
|---|
| 342 |
[mysql_lib=$withval], |
|---|
| 343 |
[mysql_lib=no]) |
|---|
| 344 |
AC_ARG_WITH(mysql-include, |
|---|
| 345 |
[ --with-mysql-include=PATH specify path to MySQL include files], |
|---|
| 346 |
[mysql_inc=$withval], |
|---|
| 347 |
[mysql_inc=no]) |
|---|
| 348 |
|
|---|
| 349 |
AC_ARG_ENABLE(mysql, [ --enable-mysql Enable Support [default=auto]], |
|---|
| 350 |
enable_mysql="$enableval", enable_mysql="no") |
|---|
| 351 |
|
|---|
| 352 |
|
|---|
| 353 |
if test x$enable_mysql = xyes; then |
|---|
| 354 |
|
|---|
| 355 |
AC_MSG_CHECKING(for mysql client library) |
|---|
| 356 |
|
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
dnl ************************************************** |
|---|
| 360 |
dnl * mysql headers * |
|---|
| 361 |
dnl ************************************************** |
|---|
| 362 |
|
|---|
| 363 |
orig_cppflags=$CPPFLAGS |
|---|
| 364 |
|
|---|
| 365 |
if test "x$mysql_inc" != xno; then |
|---|
| 366 |
CPPFLAGS="-I$mysql_inc $CPPFLAGS" |
|---|
| 367 |
fi |
|---|
| 368 |
|
|---|
| 369 |
AC_CHECK_HEADER(mysql.h, [found=yes], [found=no]) |
|---|
| 370 |
|
|---|
| 371 |
if test "x$found" != "xno"; then |
|---|
| 372 |
|
|---|
| 373 |
|
|---|
| 374 |
dnl ************************************************** |
|---|
| 375 |
dnl * mysql lib * |
|---|
| 376 |
dnl ************************************************** |
|---|
| 377 |
|
|---|
| 378 |
orig_ldflags=$LDFLAGS |
|---|
| 379 |
if test "x$mysql_lib" != "xno"; then |
|---|
| 380 |
LDFLAGS="-L$mysql_lib $LDFLAGS" |
|---|
| 381 |
fi |
|---|
| 382 |
AC_CHECK_LIB(mysqlclient, mysql_real_connect, [found=yes], [found=no]) |
|---|
| 383 |
|
|---|
| 384 |
if test "x$found" != "xyes"; then |
|---|
| 385 |
LDFLAGS=$orig_ldflags |
|---|
| 386 |
fi |
|---|
| 387 |
else |
|---|
| 388 |
CPPFLAGS=$orig_cppflags |
|---|
| 389 |
|
|---|
| 390 |
fi |
|---|
| 391 |
|
|---|
| 392 |
if test "x$found" != "xyes"; then |
|---|
| 393 |
enable_mysql=no |
|---|
| 394 |
else |
|---|
| 395 |
AC_DEFINE(HAVE_MYSQL, 1 , [Define if we have mysql client library]) |
|---|
| 396 |
LIBS="-lmysqlclient $LIBS" |
|---|
| 397 |
fi |
|---|
| 398 |
|
|---|
| 399 |
AC_MSG_RESULT($enable_mysql) |
|---|
| 400 |
fi |
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 |
|
|---|
| 405 |
dnl ************************************************** |
|---|
| 406 |
dnl * postgre Support * |
|---|
| 407 |
dnl ************************************************** |
|---|
| 408 |
|
|---|
| 409 |
AC_ARG_WITH(postgre-lib, |
|---|
| 410 |
[ --with-postgre-lib=PATH specify path to PostGRE client library], |
|---|
| 411 |
[postgre_lib=$withval], |
|---|
| 412 |
[postgre_lib=no]) |
|---|
| 413 |
AC_ARG_WITH(postgre-include, |
|---|
| 414 |
[ --with-postgre-include=PATH specify path to PostGRE include files], |
|---|
| 415 |
[postgre_inc=$withval], |
|---|
| 416 |
[postgre_inc=no]) |
|---|
| 417 |
|
|---|
| 418 |
AC_ARG_ENABLE(postgre, [ --enable-postgre Enable Support [default=auto]], |
|---|
| 419 |
enable_postgre="$enableval", enable_postgre="no") |
|---|
| 420 |
|
|---|
| 421 |
|
|---|
| 422 |
if test x$enable_postgre = xyes; then |
|---|
| 423 |
|
|---|
| 424 |
AC_MSG_CHECKING(for postgre client library) |
|---|
| 425 |
|
|---|
| 426 |
|
|---|
| 427 |
|
|---|
| 428 |
dnl ************************************************** |
|---|
| 429 |
dnl * postgre headers * |
|---|
| 430 |
dnl ************************************************** |
|---|
| 431 |
|
|---|
| 432 |
orig_cppflags=$CPPFLAGS |
|---|
| 433 |
|
|---|
| 434 |
if test "x$postgre_inc" != xno; then |
|---|
| 435 |
CPPFLAGS="-I$postgre_inc $CPPFLAGS" |
|---|
| 436 |
fi |
|---|
| 437 |
|
|---|
| 438 |
AC_CHECK_HEADER(libpq-fe.h, [found=yes], [found=no]) |
|---|
| 439 |
|
|---|
| 440 |
if test "x$found" != "xno"; then |
|---|
| 441 |
|
|---|
| 442 |
|
|---|
| 443 |
dnl ************************************************** |
|---|
| 444 |
dnl * postgre lib * |
|---|
| 445 |
dnl ************************************************** |
|---|
| 446 |
|
|---|
| 447 |
orig_ldflags=$LDFLAGS |
|---|
| 448 |
if test "x$postgre_lib" != "xno"; then |
|---|
| 449 |
LDFLAGS="-L$postgre_lib $LDFLAGS" |
|---|
| 450 |
fi |
|---|
| 451 |
AC_CHECK_LIB(pq, PQsetdbLogin, [found=yes], [found=no]) |
|---|
| 452 |
|
|---|
| 453 |
if test "x$found" != "xyes"; then |
|---|
| 454 |
LDFLAGS=$orig_ldflags |
|---|
| 455 |
fi |
|---|
| 456 |
else |
|---|
| 457 |
CPPFLAGS=$orig_cppflags |
|---|
| 458 |
|
|---|
| 459 |
fi |
|---|
| 460 |
|
|---|
| 461 |
if test "x$found" != "xyes"; then |
|---|
| 462 |
enable_postgre=no |
|---|
| 463 |
else |
|---|
| 464 |
AC_DEFINE(HAVE_POSTGRES, 1 , [Define if we have postgre client library]) |
|---|
| 465 |
LIBS="-lpq $LIBS" |
|---|
| 466 |
fi |
|---|
| 467 |
|
|---|
| 468 |
AC_MSG_RESULT($enable_postgre) |
|---|
| 469 |
fi |
|---|
| 470 |
|
|---|
| 471 |
|
|---|
| 472 |
|
|---|
| 473 |
|
|---|
| 474 |
|
|---|
| 475 |
dnl ************************************************** |
|---|
| 476 |
dnl * large filesystem Support * |
|---|
| 477 |
dnl ************************************************** |
|---|
| 478 |
|
|---|
| 479 |
AC_MSG_CHECKING(for Large File System support) |
|---|
| 480 |
AC_ARG_ENABLE(lfs, |
|---|
| 481 |
AC_HELP_STRING([--enable-lfs],[Turn on Large File System (default)]), |
|---|
| 482 |
[case "$host" in |
|---|
| 483 |
*-*-linux*) |
|---|
| 484 |
case "${enableval}" in |
|---|
| 485 |
yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;; |
|---|
| 486 |
no) ;; |
|---|
| 487 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lfs) ;; |
|---|
| 488 |
esac |
|---|
| 489 |
;; |
|---|
| 490 |
esac],[ |
|---|
| 491 |
CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" |
|---|
| 492 |
enable_lfs=yes] |
|---|
| 493 |
,enable_lfs=no,) |
|---|
| 494 |
AC_MSG_RESULT($enableval) |
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 |
dnl ************************************************** |
|---|
| 499 |
dnl * GeoLocation Support * |
|---|
| 500 |
dnl ************************************************** |
|---|
| 501 |
|
|---|
| 502 |
AC_ARG_ENABLE(geolocation, [ --enable-geolocation Enable GeoLocation [default=no]], |
|---|
| 503 |
enable_geolocation="$enableval", enable_geolocation="no") |
|---|
| 504 |
|
|---|
| 505 |
AC_ARG_ENABLE(geolocation_hostip, [ --enable-geolocation-hostip Enable GeoIP [default=auto]], |
|---|
| 506 |
enable_geolocation_hostip="$enableval", enable_geolocation_hostip="yes") |
|---|
| 507 |
|
|---|
| 508 |
AC_ARG_ENABLE(geolocation_ip2location, [ --enable-geolocation-ip2location Enable IP2Location [default=auto]], |
|---|
| 509 |
enable_geolocation_ip2location="$enableval", enable_geolocation_ip2location="yes") |
|---|
| 510 |
|
|---|
| 511 |
AC_ARG_ENABLE(geolocation_geoip, [ --enable-geolocation-geoip Enable GeoIP [default=auto]], |
|---|
| 512 |
enable_geolocation_geoip="$enableval", enable_geolocation_geoip="yes") |
|---|
| 513 |
|
|---|
| 514 |
|
|---|
| 515 |
if test x$enable_geolocation = xyes; then |
|---|
| 516 |
|
|---|
| 517 |
|
|---|
| 518 |
AC_DEFINE_UNQUOTED(HAVE_GEOLOCATION, 1, [Define wether we want to use GeoLocation]) |
|---|
| 519 |
|
|---|
| 520 |
|
|---|
| 521 |
AC_ARG_WITH(geoip-include, |
|---|
| 522 |
[ --with-geoip-include=PATH specify path to GeoIP include files], |
|---|
| 523 |
[geoip_inc=$withval], |
|---|
| 524 |
[geoip_inc=no]) |
|---|
| 525 |
|
|---|
| 526 |
AC_ARG_WITH(geoip-lib, |
|---|
| 527 |
[ --with-geoip-lib=PATH specify path to GeoIP client library], |
|---|
| 528 |
[geoip_lib=$withval], |
|---|
| 529 |
[geoip_lib=no]) |
|---|
| 530 |
|
|---|
| 531 |
|
|---|
| 532 |
AC_ARG_WITH(ip2location-include, |
|---|
| 533 |
[ --with-ip2location-include=PATH specify path to IP2Location include files], |
|---|
| 534 |
[ip2location_inc=$withval], |
|---|
| 535 |
[ip2location_inc=no]) |
|---|
| 536 |
|
|---|
| 537 |
AC_ARG_WITH(ip2location-lib, |
|---|
| 538 |
[ --with-ip2location-lib=PATH specify path to IP2Location client library], |
|---|
| 539 |
[ip2location_lib=$withval], |
|---|
| 540 |
[ip2location_lib=no]) |
|---|
| 541 |
|
|---|
| 542 |
|
|---|
| 543 |
dnl ************************************************** |
|---|
| 544 |
dnl * GeoIP Support * |
|---|
| 545 |
dnl ************************************************** |
|---|
| 546 |
|
|---|
| 547 |
if test x$enable_geolocation_geoip = xyes; then |
|---|
| 548 |
|
|---|
| 549 |
dnl ************************************************** |
|---|
| 550 |
dnl * GeoIP headers * |
|---|
| 551 |
dnl ************************************************** |
|---|
| 552 |
|
|---|
| 553 |
orig_cppflags=$CPPFLAGS |
|---|
| 554 |
|
|---|
| 555 |
if test "x$geoip_inc" != xno; then |
|---|
| 556 |
CPPFLAGS="-I$geoip_inc $CPPFLAGS" |
|---|
| 557 |
fi |
|---|
| 558 |
|
|---|
| 559 |
AC_CHECK_HEADER(GeoIP.h, [found=yes], [found=no]) |
|---|
| 560 |
|
|---|
| 561 |
if test "x$found" != "xno"; then |
|---|
| 562 |
dnl ************************************************** |
|---|
| 563 |
dnl * GeoIP lib * |
|---|
| 564 |
dnl ************************************************** |
|---|
| 565 |
|
|---|
| 566 |
orig_ldflags=$LDFLAGS |
|---|
| 567 |
if test "x$geoip_lib" != "xno"; then |
|---|
| 568 |
LDFLAGS="-L$geoip_lib $LDFLAGS" |
|---|
| 569 |
fi |
|---|
| 570 |
AC_CHECK_LIB([GeoIP], [GeoIP_open], [found=yes], [found=no]) |
|---|
| 571 |
|
|---|
| 572 |
if test "x$found" != "xyes"; then |
|---|
| 573 |
LDFLAGS=$orig_ldflags |
|---|
| 574 |
fi |
|---|
| 575 |
else |
|---|
| 576 |
CPPFLAGS=$orig_cppflags |
|---|
| 577 |
fi |
|---|
| 578 |
|
|---|
| 579 |
if test "x$found" != "xyes"; then |
|---|
| 580 |
enable_geolocation_geoip=no |
|---|
| 581 |
else |
|---|
| 582 |
AC_DEFINE(HAVE_LIBGEOIP, 1,[Define if you want to use MaxMind's GeoIP]) |
|---|
| 583 |
LIBS="-lGeoIP $LIBS" |
|---|
| 584 |
fi |
|---|
| 585 |
|
|---|
| 586 |
fi |
|---|
| 587 |
|
|---|
| 588 |
|
|---|
| 589 |
|
|---|
| 590 |
|
|---|
| 591 |
|
|---|
| 592 |
|
|---|
| 593 |
dnl ************************************************** |
|---|
| 594 |
dnl * IP2Location Support * |
|---|
| 595 |
dnl ************************************************** |
|---|
| 596 |
|
|---|
| 597 |
if test x$enable_geolocation_ip2location = xyes; then |
|---|
| 598 |
|
|---|
| 599 |
dnl ************************************************** |
|---|
| 600 |
dnl * IP2location headers * |
|---|
| 601 |
dnl ************************************************** |
|---|
| 602 |
|
|---|
| 603 |
orig_cppflags=$CPPFLAGS |
|---|
| 604 |
|
|---|
| 605 |
if test "x$ip2location_inc" != xno; then |
|---|
| 606 |
CPPFLAGS="-I$ip2location_inc $CPPFLAGS" |
|---|
| 607 |
fi |
|---|
| 608 |
|
|---|
| 609 |
AC_CHECK_HEADER(IP2Location.h, [found=yes], [found=no]) |
|---|
| 610 |
|
|---|
| 611 |
if test "x$found" != "xno"; then |
|---|
| 612 |
dnl ************************************************** |
|---|
| 613 |
dnl * IP2Location lib * |
|---|
| 614 |
dnl ************************************************** |
|---|
| 615 |
|
|---|
| 616 |
orig_ldflags=$LDFLAGS |
|---|
| 617 |
|
|---|
| 618 |
if test "x$ip2location_lib" != "xno"; then |
|---|
| 619 |
LDFLAGS="-L$ip2location_lib -lIP2Location $LDFLAGS" |
|---|
| 620 |
fi |
|---|
| 621 |
|
|---|
| 622 |
AC_CHECK_LIB([IP2Location], [IP2Location_open], [found=yes], [found=no]) |
|---|
| 623 |
|
|---|
| 624 |
if test "x$found" != "xyes"; then |
|---|
| 625 |
LDFLAGS=$orig_ldflags |
|---|
| 626 |
fi |
|---|
| 627 |
else |
|---|
| 628 |
CPPFLAGS=$orig_cppflags |
|---|
| 629 |
fi |
|---|
| 630 |
|
|---|
| 631 |
if test "x$found" != "xyes"; then |
|---|
| 632 |
enable_geolocation_ip2location=no |
|---|
| 633 |
else |
|---|
| 634 |
AC_DEFINE(HAVE_LIBIP2LOCATION, 1,[Define if you want to use IP2Location]) |
|---|
| 635 |
LIBS="-lIP2Location $LIBS" |
|---|
| 636 |
fi |
|---|
| 637 |
|
|---|
| 638 |
fi |
|---|
| 639 |
|
|---|
| 640 |
else |
|---|
| 641 |
enable_geolocation_hostip=no |
|---|
| 642 |
enable_geolocation_geoip=no |
|---|
| 643 |
enable_geolocation_ip2location=no |
|---|
| 644 |
|
|---|
| 645 |
fi |
|---|
| 646 |
|
|---|
| 647 |
|
|---|
| 648 |
|
|---|
| 649 |
|
|---|
| 650 |
dnl ************************************************** |
|---|
| 651 |
dnl * dnsresolve Support * |
|---|
| 652 |
dnl ************************************************** |
|---|
| 653 |
|
|---|
| 654 |
|
|---|
| 655 |
|
|---|
| 656 |
AC_ARG_ENABLE(dnsresolve_adns, [ --enable-dnsresolve-adns Enable adns [default=yes]], |
|---|
| 657 |
enable_dnsresolve_adns="$enableval", enable_dnsresolve_adns="yes") |
|---|
| 658 |
|
|---|
| 659 |
dnl ************************************************** |
|---|
| 660 |
dnl * libadns Support * |
|---|
| 661 |
dnl ************************************************** |
|---|
| 662 |
AC_ARG_WITH(adns-include, |
|---|
| 663 |
[ --with-adns-include=PATH specify path to adns include files], |
|---|
| 664 |
[adns_inc=$withval], |
|---|
| 665 |
[adns_inc=no]) |
|---|
| 666 |
|
|---|
| 667 |
AC_ARG_WITH(adns-lib, |
|---|
| 668 |
[ --with-adns-lib=PATH specify path to adns client library], |
|---|
| 669 |
[adns_lib=$withval], |
|---|
| 670 |
[adns_lib=no]) |
|---|
| 671 |
|
|---|
| 672 |
if test x$enable_dnsresolve_adns = xyes; then |
|---|
| 673 |
orig_cppflags=$CPPFLAGS |
|---|
| 674 |
|
|---|
| 675 |
if test "x$adns_inc" != xno; then |
|---|
| 676 |
CPPFLAGS="-I$adns_inc $CPPFLAGS" |
|---|
| 677 |
fi |
|---|
| 678 |
|
|---|
| 679 |
orig_ldflags=$LDFLAGS |
|---|
| 680 |
if test "x$adns_lib" != "xno"; then |
|---|
| 681 |
LDFLAGS="-L$adns_lib $LDFLAGS" |
|---|
| 682 |
fi |
|---|
| 683 |
|
|---|
| 684 |
|
|---|
| 685 |
AC_CHECK_LIB([adns], [adns_init], |
|---|
| 686 |
[AC_DEFINE(HAVE_LIBADNS, 1, |
|---|
| 687 |
[Define if you want to use adns]) |
|---|
| 688 |
LIBS="-ladns $LIBS"], |
|---|
| 689 |
enable_dnsresolve_adns=no |
|---|
| 690 |
) |
|---|
| 691 |
fi |
|---|
| 692 |
|
|---|
| 693 |
if test x$enable_dnsresolve_adns = xno; then |
|---|
| 694 |
AC_MSG_ERROR([at least one dnsresolver has to work]) |
|---|
| 695 |
fi |
|---|
| 696 |
|
|---|
| 697 |
|
|---|
| 698 |
|
|---|
| 699 |
#dnl ************************************************** |
|---|
| 700 |
#dnl * ipv6 Support * |
|---|
| 701 |
#dnl ************************************************** |
|---|
| 702 |
# |
|---|
| 703 |
#AC_ARG_ENABLE(ipv6, |
|---|
| 704 |
# [ --enable-ipv6 enable IPv6 support [default=auto].], |
|---|
| 705 |
# [ if test "$enableval" = "no"; then |
|---|
| 706 |
# enable_ipv6="no" |
|---|
| 707 |
# fi ], |
|---|
| 708 |
# [ enable_ipv6="yes" ] ) |
|---|
| 709 |
# |
|---|
| 710 |
# |
|---|
| 711 |
# |
|---|
| 712 |
#if test x$enabled_ipv6 = xno ; then |
|---|
| 713 |
# AC_MSG_RESULT([no -- disabled by user]) |
|---|
| 714 |
#else |
|---|
| 715 |
# enable_ipv6="no" |
|---|
| 716 |
# AC_CHECK_FUNC(inet_pton,[enable_ipv6=yes]) |
|---|
| 717 |
# AC_CHECK_LIB(resolv,inet_pton,[enable_ipv6=yes]) |
|---|
| 718 |
# AC_MSG_CHECKING(for sockaddr_in6 in netinet/in.h) |
|---|
| 719 |
# AC_EGREP_HEADER(sockaddr_in6,netinet/in.h, |
|---|
| 720 |
# [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); enable_ipv6="no"]) |
|---|
| 721 |
# if ${have_ipv6}; then |
|---|
| 722 |
# AC_DEFINE(HAVE_IPV6, 1, Define if the system have IPv6 structures.) |
|---|
| 723 |
# fi |
|---|
| 724 |
#fi |
|---|
| 725 |
|
|---|
| 726 |
|
|---|
| 727 |
|
|---|
| 728 |
|
|---|
| 729 |
dnl ************************************************** |
|---|
| 730 |
dnl * libprelude Support * |
|---|
| 731 |
dnl ************************************************** |
|---|
| 732 |
AC_MSG_CHECKING(whether to use prelude for logging) |
|---|
| 733 |
AC_ARG_ENABLE(prelude, |
|---|
| 734 |
[ --enable-prelude enable prelude support [default=no].], |
|---|
| 735 |
[ if test "$enableval" = "yes"; then |
|---|
| 736 |
enable_prelude="yes" |
|---|
| 737 |
fi ], |
|---|
| 738 |
[ enable_prelude="no" ] ) |
|---|
| 739 |
|
|---|
| 740 |
if test x$enable_prelude = xno ; then |
|---|
| 741 |
AC_MSG_RESULT([no -- disabled by user]) |
|---|
| 742 |
else |
|---|
| 743 |
AC_PATH_PROG(LIBPRELUDE_CONFIG, libprelude-config, no) |
|---|
| 744 |
if test "$LIBPRELUDE_CONFIG" = "no" ; then |
|---|
| 745 |
AC_MSG_ERROR([libpreludes libprelude-config was not found in PATH]) |
|---|
| 746 |
enable_prelude=no |
|---|
| 747 |
else |
|---|
| 748 |
AC_DEFINE(HAVE_LIBPRELUDE, 1,[Define if you want to use libprelude]) |
|---|
| 749 |
PRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG --ldflags` |
|---|
| 750 |
PRELUDE_LIBS=`$LIBPRELUDE_CONFIG --libs` |
|---|
| 751 |
PRELUDE_CPPFLAGS=`$LIBPRELUDE_CONFIG --cflags` |
|---|
| 752 |
|
|---|
| 753 |
LIBS="$PRELUDE_LIBS $LIBS" |
|---|
| 754 |
LDFLAGS="$PRELUDE_LDFLAGS $LDFLAGS" |
|---|
| 755 |
CPPFLAGS="$PRELUDE_CPPFLAGS $CPPFLAGS" |
|---|
| 756 |
|
|---|
| 757 |
fi |
|---|
| 758 |
fi |
|---|
| 759 |
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 |
|
|---|
| 763 |
dnl ************************************************** |
|---|
| 764 |
dnl * capabilities Support * |
|---|
| 765 |
dnl ************************************************** |
|---|
| 766 |
|
|---|
| 767 |
AC_MSG_CHECKING(whether to use libcap to improve security) |
|---|
| 768 |
AC_ARG_ENABLE(capabilities, [ --enable-capabilities Enable capabilities [default=auto]], |
|---|
| 769 |
[enable_capabilities="$enableval"], |
|---|
| 770 |
[enable_capabilities="no"]) |
|---|
| 771 |
|
|---|
| 772 |
if test x$enable_capabilities = xno ; then |
|---|
| 773 |
AC_MSG_RESULT([no -- disabled by user]) |
|---|
| 774 |
else |
|---|
| 775 |
AC_ARG_WITH(cap-include, |
|---|
| 776 |
[ --with-cap-include=PATH use libcap], |
|---|
| 777 |
[cap_inc=$withval], |
|---|
| 778 |
[cap_inc=no]) |
|---|
| 779 |
|
|---|
| 780 |
AC_ARG_WITH(cap-lib, |
|---|
| 781 |
[ --with-cap-lib=PATH use libcap], |
|---|
| 782 |
[cap_lib=$withval], |
|---|
| 783 |
[cap_lib=no]) |
|---|
| 784 |
|
|---|
| 785 |
|
|---|
| 786 |
orig_cppflags=$CPPFLAGS |
|---|
| 787 |
|
|---|
| 788 |
if test "x$cap_inc" != xno; then |
|---|
| 789 |
CPPFLAGS="-I$cap_inc $CPPFLAGS" |
|---|
| 790 |
fi |
|---|
| 791 |
|
|---|
| 792 |
orig_ldflags=$LDFLAGS |
|---|
| 793 |
if test "x$cap_lib" != "xno"; then |
|---|
| 794 |
LDFLAGS="-L$cap_lib $LDFLAGS" |
|---|
| 795 |
fi |
|---|
| 796 |
|
|---|
| 797 |
AC_CHECK_LIB(cap, cap_init, |
|---|
| 798 |
[ |
|---|
| 799 |
AC_DEFINE(HAVE_LIBCAP, 1,[Define if libcap is available to restrict process capabilities]) |
|---|
| 800 |
LIBS="$LIBS -lcap" |
|---|
| 801 |
enable_capabilities="yes" |
|---|
| 802 |
], |
|---|
| 803 |
[ |
|---|
| 804 |
AC_MSG_WARN([libcap check failed]) |
|---|
| 805 |
enable_capabilities="no (check failed)" |
|---|
| 806 |
]) |
|---|
| 807 |
|
|---|
| 808 |
fi |
|---|
| 809 |
|
|---|
| 810 |
|
|---|
| 811 |
|
|---|
| 812 |
AC_DEFUN([AC_DEFINE_DIR], [ |
|---|
| 813 |
prefix_NONE= |
|---|
| 814 |
exec_prefix_NONE= |
|---|
| 815 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
|---|
| 816 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
|---|
| 817 |
dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn |
|---|
| 818 |
dnl refers to ${prefix}. Thus we have to use `eval' twice. |
|---|
| 819 |
eval ac_define_dir="\"[$]$2\"" |
|---|
| 820 |
eval ac_define_dir="\"$ac_define_dir\"" |
|---|
| 821 |
AC_SUBST($1, "$ac_define_dir") |
|---|
| 822 |
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) |
|---|
| 823 |
test "$prefix_NONE" && prefix=NONE |
|---|
| 824 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
|---|
| 825 |
]) |
|---|
| 826 |
|
|---|
| 827 |
AC_DEFINE_DIR(PREFIX, prefix, [default working directory]) |
|---|
| 828 |
AC_DEFINE_DIR(LOCALESTATEDIR, localstatedir, [where to put logs etc]) |
|---|
| 829 |
AC_DEFINE_DIR(LIBDIR, libdir, [where to look for plugins]) |
|---|
| 830 |
AC_DEFINE_DIR(SYSCONFDIR, [sysconfdir], [System configuration dir]) |
|---|
| 831 |
|
|---|
| 832 |
AC_CONFIG_FILES([Makefile |
|---|
| 833 |
library-core/Makefile |
|---|
| 834 |
library-core/include/Makefile |
|---|
| 835 |
library-core/src/Makefile |
|---|
| 836 |
modules/Makefile |
|---|
| 837 |
modules/geolocation-geoip/Makefile |
|---|
| 838 |
modules/dnsresolve-adns/Makefile |
|---|
| 839 |
modules/geolocation-ip2location/Makefile |
|---|
| 840 |
modules/x-echo/Makefile |
|---|
| 841 |
modules/sqlhandler-postgres/Makefile |
|---|
| 842 |
modules/service-gotek2/Makefile |
|---|
| 843 |
]) |
|---|
| 844 |
# modules/log-prelude/Makefile |
|---|
| 845 |
# modules/module-drone/Makefile |
|---|
| 846 |
# modules/log-surfnet/Makefile]) |
|---|
| 847 |
# modules/vuln-netbios/Makefile |
|---|
| 848 |
# modules/module-baitnswitch/Makefile |
|---|
| 849 |
|
|---|
| 850 |
|
|---|
| 851 |
AC_OUTPUT |
|---|
| 852 |
|
|---|
| 853 |
echo |
|---|
| 854 |
echo "*** Dumping Nepenthes Configuration ***" |
|---|
| 855 |
echo "- DNS Resolve " |
|---|
| 856 |
echo " - Support adns : $enable_dnsresolve_adns" |
|---|
| 857 |
echo "" |
|---|
| 858 |
echo "- Support GeoLocation : $enable_geolocation" |
|---|
| 859 |
echo " - Support hostip : $enable_geolocation_hostip" |
|---|
| 860 |
echo " - Support GeoIP : $enable_geolocation_geoip" |
|---|
| 861 |
echo " - Support IP2Location : $enable_geolocation_ip2location" |
|---|
| 862 |
echo "" |
|---|
| 863 |
echo "- Support Large Filesystem : $enable_lfs" |
|---|
| 864 |
echo "" |
|---|
| 865 |
echo "- Support MySQL : $enable_mysql" |
|---|
| 866 |
echo "" |
|---|
| 867 |
echo "- Support PostgreSQL : $enable_postgre" |
|---|
| 868 |
echo "" |
|---|
| 869 |
echo "- Support ssh : $enable_ssh" |
|---|
| 870 |
echo "" |
|---|
| 871 |
echo "- Support prelude : $enable_prelude" |
|---|
| 872 |
echo "" |
|---|
| 873 |
echo "- Support capabilities : $enable_capabilities" |
|---|
| 874 |
|
|---|
| 875 |
# echo "" |
|---|
| 876 |
# echo "- Support ipv6 : $enable_ipv6" |
|---|