| 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| 4 | AC_PREREQ(2.59) |
| 5 | AC_INIT([icmpdn], [0.1], [fredrik@dolda2000.com]) |
| 6 | AC_CONFIG_AUX_DIR([autotools]) |
| 7 | AC_CONFIG_SRCDIR([src/nss-icmp.c]) |
| 8 | AC_CONFIG_HEADER([src/config.h]) |
| 9 | AM_INIT_AUTOMAKE |
| 10 | |
| 11 | # Checks for programs. |
| 12 | AC_PROG_CXX |
| 13 | AC_PROG_CC |
| 14 | AC_PROG_CPP |
| 15 | AC_PROG_INSTALL |
| 16 | AC_PROG_LN_S |
| 17 | AC_PROG_MAKE_SET |
| 18 | AC_PROG_RANLIB |
| 19 | |
| 20 | AC_DISABLE_STATIC |
| 21 | AC_PROG_LIBTOOL |
| 22 | |
| 23 | # Checks for libraries. |
| 24 | |
| 25 | # Checks for header files. |
| 26 | AC_HEADER_STDC |
| 27 | AC_HEADER_SYS_WAIT |
| 28 | AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h]) |
| 29 | |
| 30 | # Checks for typedefs, structures, and compiler characteristics. |
| 31 | AC_C_CONST |
| 32 | AC_TYPE_PID_T |
| 33 | AC_TYPE_SIZE_T |
| 34 | AC_HEADER_TIME |
| 35 | AC_C_VOLATILE |
| 36 | |
| 37 | # Checks for library functions. |
| 38 | AC_FUNC_FORK |
| 39 | AC_FUNC_MALLOC |
| 40 | AC_FUNC_MEMCMP |
| 41 | AC_CHECK_FUNCS([dup2 gethostname gettimeofday memset socket strchr]) |
| 42 | |
| 43 | AC_CONFIG_FILES([Makefile src/Makefile admin/Makefile admin/icmpdn.spec]) |
| 44 | AC_OUTPUT |