+AM_CONDITIONAL(ENSC_HAVE_LIBNL, test x"$ensc_have_libnl" = xyes)
+
+dnl
+dnl libnl stuff ends here}
+dnl
+dnl #######################
+
+
+dnl Check what distro this is, use Gentoo initscripts if appropriate
+AC_MSG_CHECKING([for host initscripts])
+AC_ARG_WITH(initscripts, AC_HELP_STRING([--with-initscripts=TYPE], [force host initscripts; valid values are 'gentoo' and 'sysv' (default: guess)]), [
+ case "$withval" in
+ gentoo) ensc_with_init=gentoo;;
+ sysv) ensc_with_init=sysv;;
+ *) AC_MSG_ERROR([invalid initscripts value, only gentoo and sysv are supported]);;
+ esac
+ ], [
+ if test -e /etc/gentoo-release; then
+ ensc_with_init=gentoo
+ else
+ ensc_with_init=sysv
+ fi
+ ])
+AC_MSG_RESULT([$ensc_with_init])
+AM_CONDITIONAL(HAVE_GENTOO_INIT, test x"$ensc_with_init" = xgentoo)
+AM_CONDITIONAL(HAVE_SYSV_INIT, test x"$ensc_with_init" = xsysv)
+
+
+dnl BIG HACK! Do some autodetection here!
+AC_DEFINE(UTMP_GID, [22], [The utmp gid-number])
+
+if false; then
+ AC_DEFINE(HAVE_GROWING_STACK, [1], [Define to 1 if the stack is on growing addresses])
+fi
+
+AC_DEFINE(_FILE_OFFSET_BITS, [64], [Use 64bit interface for filesystem operations])
+
+dnl ########################
+dnl
+dnl {The final info-page
+dnl
+ensc_cxx_affected=" (affected: vbuild, vcheck)"
+ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
+ensc_diet_msg=" (you have been warned)"
+ensc_diet_version_msg=" ($ensc_version_dietlibc)"
+ensc_diet_compat_msg=" (using -lcompat)"
+test x"$ensc_cv_cxx_cxxcompiler" = xno || ensc_cxx_affected=
+test x"$ensc_cv_c99_c99compiler" = xno || ensc_c99_affected=
+test x"$ensc_have_dietlibc" = xno || ensc_diet_msg=
+test x"$ensc_version_dietlibc" != x || ensc_diet_version_msg=
+test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
+
+AH_BOTTOM([#include "compat.h"
+])
+AC_CONFIG_COMMANDS_PRE([
+ FEATURES_TXT="\
+Features:
+ CC: $CC, $($CC --version | sed -e '1p;d')
+ CXX: $CXX, $($CXX --version | sed -e '1p;d')
+ CPPFLAGS: '$CPPFLAGS'
+ CFLAGS: '$CFLAGS'
+ CXXFLAGS: '$CXXFLAGS'
+ build/host: $build/$host
+ Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
+ Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
+ Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
+ Available APIs: $enable_apis
+ ext2fs Source: $ensc_cv_test_ext2fs_header
+ syscall(2) invocation: $with_syscall
+ vserver(2) syscall#: $ensc_cv_value_syscall_vserver
+
+Paths:
+ prefix: $prefix
+ sysconf-Directory: $sysconfdir
+ cfg-Directory: $sysconfdir/vservers
+ initrd-Directory: $initrddir
+ pkgstate-Directory: $localstatedir/run/vservers
+ vserver-Rootdir: $vserverdir
+"
+ echo "$FEATURES_TXT" >FEATURES.txt
+ ])
+dnl
+dnl final info-page ends here}
+dnl
+dnl ########################
+
+AC_CONFIG_FILES([util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile])