Changeset 171 for trunk/configure.ac
- Timestamp:
- Jul 8, 2008, 11:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r170 r171 13 13 dnl start 14 14 dnl 15 AM_INIT_AUTOMAKE(samhain, 2.4.4) 15 AM_INIT_AUTOMAKE(samhain, 2.4.5) 16 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 17 AC_CANONICAL_HOST 17 18 … … 30 31 AC_PROG_LN_S 31 32 AC_PROG_AWK 33 SH_PROG_LD 32 34 AC_PATH_PROG(cmd_hostname,hostname) 33 35 AC_SUBST(cmd_hostname) … … 37 39 GCC_STACK_PROTECT_LIB 38 40 GCC_STACK_PROTECT_CC 41 GCC_PIE_CC 39 42 fi 40 43 … … 54 57 mynetbsd=no 55 58 sh_use_lcaps="undef" 59 dnmalloc_ok=yes 56 60 57 61 case "$host_os" in … … 102 106 AC_DEFINE([HOST_IS_OPENBSD], 1, [Define if host OS is OPENBSD]) 103 107 selectconfig=freebsd 104 AC_MSG_RESULT(none) 108 dnmalloc_ok=no 109 AC_MSG_RESULT(OpenBSD dnmalloc does not work with pthreads) 105 110 ;; 106 111 … … 165 170 166 171 *hpux*) 167 AC_MSG_RESULT(HPUX has not always h_errno defined)172 AC_MSG_RESULT(HPUX need _XOPEN_SOURCE_EXTENDED for h_errno) 168 173 AC_DEFINE(HOST_IS_HPUX) 169 174 if test "x$GCC" != "xyes"; then … … 204 209 AC_DECL_SYS_SIGLIST 205 210 206 AC_CHECK_HEADERS(stddef.h libgen.h sched.h \ 211 AC_CHECK_HEADERS(stddef.h libgen.h sched.h malloc.h sys/uio.h \ 212 sys/mman.h sys/param.h \ 207 213 sys/vfs.h mntent.h \ 208 214 sys/select.h sys/socket.h netinet/in.h \ … … 275 281 inet_aton gethostbyname setutent setrlimit gethostname uname \ 276 282 initgroups getpagesize \ 277 ttyname fchmod \283 ttyname fchmod writev mmap \ 278 284 getsid getpriority getpgid statvfs \ 279 strerror_r \280 g etgrgid_r getpwnam_r getpwuid_r gmtime_r localtime_r rand_r readdir_r strtok_r285 strerror_r getgrgid_r getpwnam_r getpwuid_r \ 286 gmtime_r localtime_r rand_r readdir_r strtok_r 281 287 ) 282 288 AC_CHECK_FUNC(statfs, AC_DEFINE(HAVE_STATFS) statfs="yes", statfs="no") … … 827 833 AC_SUBST(clmytclient) 828 834 835 sh_no_gcc_static=no 836 829 837 AC_ARG_ENABLE(static, 830 838 [ --enable-static enable static linking [[no]]], … … 838 846 AC_DEFINE(SH_COMPILE_STATIC, 1, [Define if compiling static]) 839 847 if test "x$GCC" = "xyes"; then 848 sh_no_gcc_static=no 840 849 LDFLAGS="$LDFLAGS -static" 841 850 else 851 sh_no_gcc_static=yes 842 852 case "$host_os" in 843 853 … … 887 897 ] 888 898 ) 899 900 if test x$enable_static = xyes; then 901 : 902 else 903 LDFLAGS="$LDFLAGS $PIE_LDFLAGS" 904 CFLAGS="$CFLAGS $PIE_CFLAGS" 905 fi 889 906 890 907 if test x"${mytclient}" = x-DSH_STANDALONE -o x"${mytclient}" = x-DSH_WITH_CLIENT; … … 1386 1403 AC_DEFINE(WITH_TPT) 1387 1404 AC_DEFINE(SL_DEBUG) 1405 AC_DEFINE(DNMALLOC_CHECKS, 1, [Debug dnmalloc]) 1406 AC_DEFINE(PARANOIA, 0, [Paranoia level for dnmalloc]) 1388 1407 AC_DEFINE(SL_FAIL_ON_ERROR) 1389 1408 if test "x${myneedg3}" = "xyes"; then … … 1397 1416 ) 1398 1417 AC_SUBST(mydebugdef) 1418 1419 if test "x${dnmalloc_ok}" = "xyes"; then 1420 sh_dnmalloc_enabled=yes 1421 else 1422 sh_dnmalloc_enabled=no 1423 fi 1424 1425 AC_ARG_ENABLE(dnmalloc, 1426 [ --disable-dnmalloc disable dnmalloc], 1427 [ 1428 if test "x${enable_dnmalloc}" = xno; then 1429 sh_dnmalloc_enabled=no 1430 else 1431 sh_dnmalloc_enabled=yes 1432 fi 1433 ] 1434 ) 1435 1436 dnl Handle the problem that static linking against libc.a on Linux 1437 dnl produces the error "multiple definitions of malloc" 1438 dnl 1439 if test "x$sh_dnmalloc_enabled" = "xyes"; then 1440 if test x$enable_static = xyes; then 1441 if test "x$sh_no_gcc_static" = "xyes"; then 1442 sh_dnmalloc_enabled=no 1443 else 1444 if test "x$with_gnu_ld" = "xyes"; then 1445 LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition" 1446 else 1447 sh_dnmalloc_enabled=no 1448 fi 1449 fi 1450 fi 1451 fi 1452 1453 if test "x${sh_dnmalloc_enabled}" = xno; then 1454 AC_DEFINE(USE_SYSTEM_MALLOC,1,[Define if you want to use the system malloc]) 1455 fi 1399 1456 1400 1457 AC_ARG_ENABLE(ptrace,
Note:
See TracChangeset
for help on using the changeset viewer.