# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT([PEWIT], [0.8], [yo@nexedi.com]) AC_CONFIG_SRCDIR([src/tap.c]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE # Checks for options. AC_ARG_ENABLE([rtc], AC_HELP_STRING([--disable-rtc], [do not use /dev/rtc])) if test "x$enable_rtc" != "xno"; then AC_DEFINE([USE_RTC], [1], [Define to 1 if you use /dev/rtc.]) fi # Checks for programs. AC_PROG_CC AM_PROG_LEX AC_PROG_RANLIB # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h libintl.h netinet/in.h stdlib.h string.h]) AC_CHECK_HEADERS([sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h]) AC_CHECK_HEADERS([linux/if_tun.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME AC_C_BIGENDIAN # Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_REALLOC AC_FUNC_STRTOD AC_FUNC_VPRINTF AC_CHECK_FUNCS([memset select setlocale socket strcasecmp strchr strcspn strdup strerror strndup strspn strtol]) AC_CONFIG_FILES([Makefile src/Makefile confuse/Makefile doc/Makefile doc/pewit.8 doc/pewit.conf.5]) AC_OUTPUT