# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT(sysconf, 1.0.0, sysconf@outflux.net) AC_CONFIG_AUX_DIR(.autotools) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([sysconf.c]) AC_CONFIG_FILES([ Makefile ]) AM_CONFIG_HEADER(config.h) AM_PROG_LIBTOOL # Checks for programs. AC_PROG_CC # Checks for libraries. # Checks for header files. AC_HEADER_STDC # Figure out where getopt_long is AC_CHECK_FUNCS([getopt_long],, [#FreeBSD has a gnugetopt library for this: AC_CHECK_LIB([gnugetopt],[getopt_long], [AC_DEFINE([HAVE_GETOPT_LONG])], [# use the gnu replacement AC_LIBOBJ(getopt) AC_LIBOBJ(getopt1)])]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_OUTPUT