From 8bd6fc0a98539e50d96fe4b499be40c06ca63f5e Mon Sep 17 00:00:00 2001 From: anonymous Date: Fri, 27 Jun 2003 22:56:31 +0000 Subject: Initial revision --- configure.ac | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100755 index 0000000..b6d3209 --- /dev/null +++ b/configure.ac @@ -0,0 +1,42 @@ +# Process this file with autoconf to produce a configure script. +AC_INIT(jailer, 1.2, nielsen@memberwebs.com) +AM_INIT_AUTOMAKE(jailer, 1.2) + +AC_CONFIG_SRCDIR([src/jailer.c]) +AM_CONFIG_HEADER([config.h]) + +case `uname -r` in +5.*) + echo "FreeBSD 5.x detected" + AC_DEFINE(NO_CONSOLE, 1, [Virtual jail console support disabled]) + ;; +esac + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. +AC_CHECK_LIB([kvm], [kvm_open], , + ["ERROR: This software is applicable to FreeBSD only."] ) +AC_CHECK_LIB([c], [jail], , + ["ERROR: This software requires the jail functionality of FreeBSD."] ) + +# Checks for header files. +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([fcntl.h syslog.h unistd.h limits.h sys/file.h sys/param.h paths.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_STRUCT_TM + +# Checks for library functions. +AC_FUNC_FORK +AC_FUNC_SETVBUF_REVERSED +AC_TYPE_SIGNAL +AC_FUNC_STAT +AC_CHECK_FUNCS([dup2 gethostname strerror atexit setproctitle select]) + +AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile]) +AC_OUTPUT -- cgit v1.2.3