configure.ac 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl
  3. dnl
  4. AC_PREREQ(2.59)
  5. AC_INIT([wraith],[],[wraith@shatow.net])
  6. AC_CONFIG_SRCDIR(src/eggdrop.h)
  7. AC_CONFIG_HEADER(config.h)
  8. AC_COPYRIGHT([Copyright (c) 2003, 2004 Bryan Drewery (bryan)])
  9. AC_REVISION($Revision$)
  10. EGG_SAVE_PARAMETERS
  11. EGG_CHECK_PACKCFG
  12. # Setup build environment
  13. AC_PROG_CC
  14. EGG_CHECK_CC
  15. # Crazy machines
  16. AC_AIX
  17. AC_ISC_POSIX
  18. AC_MINIX
  19. #checkpoint
  20. AC_CACHE_SAVE
  21. # Speedup compile
  22. EGG_CHECK_CCPIPE
  23. EGG_CHECK_DEPMODE
  24. # Create static binaries
  25. EGG_CHECK_CCSTATIC
  26. AC_SUBST(CCDEBUG)dnl
  27. # Checks for programs
  28. AC_PROG_MAKE_SET
  29. EGG_PROG_HEAD_1
  30. EGG_PROG_AWK
  31. EGG_PROG_BASENAME
  32. AC_CHECK_PROG(OBJCOPY, objcopy, [objcopy --remove-section=.note --remove-section=.comment])
  33. AC_CHECK_PROG(STRIP, strip, strip, touch)
  34. AC_CHECK_PROG(UNAME, uname, uname)
  35. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  36. AC_CHECK_PROG(DISTCC, distcc, distcc)
  37. # Test the os and set the module linking settings
  38. EGG_CHECK_OS
  39. EGG_CHECK_DNS
  40. #checkpoint
  41. AC_CACHE_SAVE
  42. # Checks for system libraries
  43. EGG_CHECK_LIBS
  44. # Checks for header files
  45. AC_HEADER_DIRENT
  46. AC_HEADER_SYS_WAIT
  47. AC_HEADER_TIME
  48. AC_HEADER_STAT
  49. #checkpoint
  50. AC_CACHE_SAVE
  51. AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h])
  52. AC_CHECK_HEADERS([sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h])
  53. #checkpoint
  54. AC_CACHE_SAVE
  55. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  56. AC_CHECK_HEADERS(zlib.h)
  57. EGG_CHECK_ZLIB
  58. #EGG_CHECK_SSL
  59. AC_SUBST(ZLIB)dnl
  60. #AC_SUBST(SSL)dnl
  61. # Checks for typedefs, structures, and compiler characteristics
  62. AC_TYPE_PID_T
  63. AC_TYPE_SIZE_T
  64. AC_TYPE_UID_T
  65. AC_C_CONST
  66. AC_C_BIGENDIAN
  67. AC_C_INLINE
  68. AC_CHECK_SIZEOF(long, 0)
  69. AC_CHECK_SIZEOF(int, 0)
  70. #checkpoint
  71. AC_CACHE_SAVE
  72. AC_C_VOLATILE
  73. AC_PROG_GCC_TRADITIONAL
  74. AC_STRUCT_TIMEZONE
  75. AC_STRUCT_TM
  76. #checkpoint
  77. AC_CACHE_SAVE
  78. # Check for IPv6 support
  79. #EGG_IPV6_SUPPORTED
  80. EGG_IPV6_OPTIONS
  81. EGG_CHECK_SOCKLEN_T
  82. # Checks for library functions
  83. #checkpoint
  84. AC_CACHE_SAVE
  85. # Checks for library functions.
  86. AC_FUNC_FORK
  87. AC_FUNC_LSTAT
  88. AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
  89. AC_FUNC_MALLOC
  90. AC_FUNC_MKTIME
  91. AC_FUNC_MMAP
  92. AC_FUNC_REALLOC
  93. AC_FUNC_SELECT_ARGTYPES
  94. AC_FUNC_STAT
  95. AC_FUNC_STRFTIME
  96. #checkpoint
  97. AC_CACHE_SAVE
  98. AC_CHECK_FUNCS([clock fsync getrusage inet_aton isascii gethostbyname2])
  99. AC_CHECK_FUNCS([getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom])
  100. #checkpoint
  101. AC_CACHE_SAVE
  102. AC_CHECK_FUNCS([strcasecmp strncasecmp vsnprintf])
  103. #autoscan suggested this....
  104. #These are recommended by autoscan, but no code supports it currently
  105. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  106. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  107. EGG_CHECK_FUNC_VSPRINTF
  108. EGG_CHECK_FUNC_UNAME
  109. # Make sure we have stdc headers, since we can't compile without them
  110. EGG_HEADER_STDC
  111. #checkpoint
  112. AC_CACHE_SAVE
  113. EGG_SUBST_VERSION
  114. DO_PACK_CFG
  115. EGG_SUBST_MOD_UPDIR
  116. DO_DEPS
  117. AC_CONFIG_FILES([Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile])
  118. AC_OUTPUT