configure.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(src/eggdrop.h)
  3. AC_CONFIG_AUX_DIR(misc)
  4. AC_CONFIG_HEADER(config.h)
  5. EGG_SAVE_PARAMETERS
  6. # Setup build environment
  7. AC_PROG_CC
  8. EGG_CHECK_CC
  9. # Crazy machines
  10. AC_AIX
  11. AC_ISC_POSIX
  12. AC_MINIX
  13. # Speedup compile
  14. EGG_CHECK_CCPIPE
  15. # Checks for programs
  16. AC_PROG_MAKE_SET
  17. AC_PROG_RANLIB
  18. AC_PROG_INSTALL
  19. AC_PROG_LN_S
  20. EGG_PROG_STRIP
  21. EGG_PROG_AWK
  22. EGG_PROG_BASENAME
  23. AC_CHECK_PROG(UNAME,uname,uname)
  24. # Test the os and set the module linking settings
  25. EGG_CHECK_OS
  26. # Checks for system libraries
  27. EGG_CHECK_LIBS
  28. # Checks for header files
  29. AC_HEADER_DIRENT
  30. AC_HEADER_SYS_WAIT
  31. AC_CHECK_HEADERS(sys/time.h)
  32. AC_HEADER_TIME
  33. AC_CHECK_HEADERS(sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h)
  34. # Checks for typedefs, structures, and compiler characteristics
  35. AC_TYPE_PID_T
  36. AC_TYPE_SIZE_T
  37. AC_C_CONST
  38. AC_C_BIGENDIAN
  39. AC_C_INLINE
  40. AC_CHECK_SIZEOF(long, 0)
  41. AC_CHECK_SIZEOF(int, 0)
  42. # Check for IPv6 support
  43. #EGG_IPV6_SUPPORTED
  44. EGG_IPV6_OPTIONS
  45. EGG_CHECK_SOCKLEN_T
  46. # Checks for library functions
  47. AC_CHECK_FUNCS(clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom)
  48. AC_CHECK_FUNCS(dlopen dprintf snprintf vsnprintf isascii inet_aton inet_ntop memcpy strftime fsync gethostbyname2 getipnodebyname)
  49. EGG_CHECK_FUNC_VSPRINTF
  50. # Make sure we have stdc headers, since we can't compile without them
  51. EGG_HEADER_STDC
  52. # Make sure we are using the correct result from a broken libsafe sscanf
  53. EGG_CHECK_LIBSAFE_SSCANF
  54. # Checks for executable extension
  55. EGG_EXEEXT
  56. # Where is Tcl? Is it here?
  57. # ---------- begin robey's Tcl thingies
  58. # (well, what used to be robey's Tcl thingies...)
  59. # Latest tested Tcl version to recommend if Tcl isn't found
  60. tclrecommendver="8.3.4"
  61. # Site recommended to download Tcl from
  62. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_3/"
  63. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  64. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  65. tcl8.0 tcl80 tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 \
  66. tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70"
  67. # Tcl library filename suffixes
  68. tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a .sl .dll .dylib"
  69. # Tcl library search paths
  70. tcllibpaths="$HOME/lib $HOME/tcl/lib $HOME \
  71. /usr/local/lib /usr/local/pkgs/tcl/lib \
  72. /usr/lib /lib /usr/i486-linuxaout/lib \
  73. /beos/system/lib /sys/lib"
  74. # Tcl header filenames
  75. tclheadernames="tcl.h"
  76. # Tcl header search paths
  77. tclheaderpaths="$HOME/include $HOME/tcl/include $HOME \
  78. /usr/local/include /usr/local/pkgs/tcl/include \
  79. /usr/include /beos/system/include /beos/devel/include \
  80. /sys/include"
  81. EGG_TCL_ARG_WITH
  82. EGG_TCL_ENV
  83. EGG_TCL_WITH_TCLLIB
  84. EGG_TCL_WITH_TCLINC
  85. EGG_TCL_FIND_LIBRARY
  86. EGG_TCL_FIND_HEADER
  87. EGG_TCL_CHECK_LIBRARY
  88. EGG_TCL_CHECK_HEADER
  89. EGG_TCL_DETECT_CHANGE
  90. EGG_TCL_CHECK_VERSION
  91. EGG_TCL_CHECK_PRE70
  92. EGG_TCL_TESTLIBS
  93. EGG_TCL_CHECK_FREE
  94. EGG_TCL_ENABLE_THREADS
  95. EGG_TCL_CHECK_THREADS
  96. EGG_TCL_LIB_REQS
  97. EGG_TCL_LUSH
  98. # ---------- end of (what used to be) robey's Tcl thingies
  99. EGG_FUNC_DLOPEN
  100. EGG_SUBST_EGGVERSION
  101. EGG_SUBST_DEST
  102. EGG_SUBST_MOD_UPDIR
  103. EGG_CATCH_MAKEFILE_REBUILD
  104. AC_OUTPUT(Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile)