54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
|
|
AC_CONFIG_SRCDIR([AEAPactor.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
|
|
# Checks for libraries.
|
|
# FIXME: Replace `main' with a function in `-lconfig':
|
|
AC_CHECK_LIB([config], [main])
|
|
# FIXME: Replace `main' with a function in `-lm':
|
|
AC_CHECK_LIB([m], [main])
|
|
# FIXME: Replace `main' with a function in `-lpcap':
|
|
AC_CHECK_LIB([pcap], [main])
|
|
# FIXME: Replace `main' with a function in `-lpthread':
|
|
AC_CHECK_LIB([pthread], [main])
|
|
# FIXME: Replace `main' with a function in `-lrt':
|
|
AC_CHECK_LIB([rt], [main])
|
|
|
|
# Checks for header files.
|
|
AC_PATH_X
|
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h termios.h unistd.h wchar.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_CHECK_HEADER_STDBOOL
|
|
AC_C_INLINE
|
|
AC_TYPE_INT16_T
|
|
AC_TYPE_INT32_T
|
|
AC_TYPE_INT64_T
|
|
AC_TYPE_INT8_T
|
|
AC_TYPE_PID_T
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_UINT16_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT64_T
|
|
AC_TYPE_UINT8_T
|
|
AC_CHECK_TYPES([ptrdiff_t])
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_FORK
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MKTIME
|
|
AC_FUNC_MMAP
|
|
AC_FUNC_REALLOC
|
|
AC_CHECK_FUNCS([bzero clock_gettime floor ftruncate getcwd gethostbyaddr gethostbyname gethostname inet_ntoa memchr memmove memset mkdir munmap pow select socket strchr strrchr strstr strtol])
|
|
|
|
AC_CONFIG_FILES([makefile])
|
|
AC_OUTPUT
|