Code afférent au projet Kouglof 2 de l'E2L
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

98 linhas
2.4 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT(septime, 1.0, dev@e2li.org)
  5. AM_INIT_AUTOMAKE
  6. AC_CONFIG_SRCDIR([config.h.in])
  7. AC_CONFIG_HEADERS([config.h])
  8. # Checks for programs.
  9. PROGMISS="NO"
  10. AC_PROG_CC
  11. AC_PROG_MAKE_SET
  12. AC_PROG_AWK
  13. AC_PROG_SED
  14. AC_PROG_GREP
  15. AC_PROG_EGREP
  16. #AC_PROG_SORT
  17. #AC_PROG_UNIQ
  18. AC_CHECK_PROG([COM1], [cut], [/bin/cut])
  19. if test x$COM1 = "x" ; then
  20. AC_MSG_WARN([cut is missing.])
  21. PROGMISS="YES"
  22. fi
  23. AC_CHECK_PROG([COM2], [sort], [/bin/sort])
  24. if test x$COM2 = "x" ; then
  25. AC_MSG_WARN([sort is missing.])
  26. PROGMISS="YES"
  27. fi
  28. AC_CHECK_PROG([COM3], [uniq], [/bin/uniq])
  29. if test x$COM3 = "x" ; then
  30. AC_MSG_WARN([uniq is missing.])
  31. PROGMISS="YES"
  32. fi
  33. AC_CHECK_PROG([ADMCOM], [tcpdump], [/sbin/tcpdump], "",
  34. [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin])
  35. if test x$ADMCOM = "x" ; then
  36. AC_MSG_WARN([tcpdump is missing.])
  37. PROGMISS="YES"
  38. fi
  39. AC_CHECK_PROG(ADMCOM2, whois, [/sbin/whois], "",
  40. [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin])
  41. if test x$ADMCOM2 = "x" ; then
  42. AC_MSG_WARN([whois is missing.])
  43. PROGMISS="YES"
  44. fi
  45. AC_CHECK_PROG(ADMCOM3, iptables, [/sbin/iptables], "",
  46. [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin])
  47. if test x$ADMCOM3 = "x" ; then
  48. AC_MSG_WARN([iptables is missing.])
  49. PROGMISS="YES"
  50. fi
  51. AC_CHECK_PROG(ADMCOM4, ip6tables, [/sbin/ip6tables], "",
  52. [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin])
  53. if test x$ADMCOM4 = "x" ; then
  54. AC_MSG_WARN([ip6tables is missing.])
  55. PROGMISS="YES"
  56. fi
  57. if test $PROGMISS = "YES" ; then
  58. AC_MSG_ERROR([All the programs listed above are required to run septime.])
  59. fi
  60. # Checks for libraries.
  61. AC_CHECK_LIB(pthread,pthread_create)
  62. AC_CHECK_LIB(readline,readline)
  63. AC_CHECK_LIB(z,inflate)
  64. # Checks for header files.
  65. AC_CHECK_HEADERS([arpa/inet.h fcntl.h stdint.h stdlib.h string.h strings.h syslog.h unistd.h])
  66. AC_CHECK_HEADERS([pthread.h])
  67. AC_CHECK_HEADERS([zlib.h])
  68. AC_CHECK_HEADERS([readline/readline.h])
  69. AC_CHECK_HEADERS([readline/history.h])
  70. # Checks for typedefs, structures, and compiler characteristics.
  71. AC_TYPE_PID_T
  72. AC_TYPE_SIZE_T
  73. AC_TYPE_SSIZE_T
  74. AC_TYPE_UINT64_T
  75. # Checks for library functions.
  76. AC_FUNC_FORK
  77. AC_FUNC_MALLOC
  78. AC_CHECK_FUNCS([dup2 memmove strchr strdup strrchr strstr])
  79. AC_CONFIG_FILES([Makefile
  80. src/Makefile])
  81. AC_OUTPUT