use new getDistribution API
[util-vserver.git] / util-vserver / configure.ac
index 29a17b1..b577ce4 100644 (file)
@@ -24,7 +24,7 @@ dnl distribution terms that you use for the rest of that program.
 dnl  
 
 AC_PREREQ(2.57)
-AC_INIT(util-vserver, 0.30.207, enrico.scholz@informatik.tu-chemnitz.de)
+AC_INIT(util-vserver, 0.30.208, enrico.scholz@informatik.tu-chemnitz.de)
 AC_CONFIG_SRCDIR([src/capchroot.c])
 AC_CONFIG_HEADER([config.h])
 
@@ -52,6 +52,7 @@ ENSC_PATHPROG(IP,        ip,,      [Usually, this tool is shipped in the 'iprout
 ENSC_PATHPROG(IPTABLES,  iptables)
 ENSC_PATHPROG(MODPROBE,  modprobe)
 ENSC_PATHPROG(NAMEIF,    nameif)
+ENSC_PATHPROG(NOHUP,     nohup)
 ENSC_PATHPROG(RMMOD,     rmmod)
 ENSC_PATHPROG(VCONFIG,   vconfig,, [See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution])
 ENSC_PATHPROG(WGET,      wget)
@@ -108,18 +109,20 @@ fi
 
 AC_MSG_CHECKING([whether to enable expensive tests])
 AC_ARG_ENABLE([expensive-tests],
-             [AC_HELP_STRING([--disable-expensive-tests],
+             [AC_HELP_STRING([--enable-expensive-tests],
                              [disable tests which might be expensive on some systems (default: no)])],
              [case "$enableval" in
                 (yes|no)  use_expensive_tests=$enableval;;
-                (*)       AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-expensive-tests']);;
+                (*)       AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-expensive-tests']);;
               esac],
-              [ use_expensive_tests=yes ])
+              [ use_expensive_tests=no ])
 AC_MSG_RESULT($use_expensive_tests)
 
 AC_SUBST(ENSC_USE_EXPENSIVE_TESTS, "$use_expensive_tests")
 
 
+ENSC_CHECK_PERSONALITY_FLAGS
+
 AC_ARG_VAR(CC, [The C compiler])
 
 ENSC_INITRDDIR(initrddir)
@@ -170,7 +173,6 @@ dnl
 dnl ##########################
 
 
-ENSC_KERNEL_HEADERS(kernelincludedir)
 ENSC_UV_VROOTDIR(vserverdir)
 ENSC_CHANGELOG([trunk])
 
@@ -248,7 +250,7 @@ dnl
 dnl ##########################
 
 
-ENSC_SYSCALLNR(vserver,273)
+ENSC_SYSCALLNR(vserver,273,[lib/syscall-fallback.h])
 ENSC_SYSCALL
 ENSC_CHECK_EXT2FS_HEADER
 AC_CHECK_FUNCS([vserver])
@@ -344,7 +346,6 @@ Paths:
             cfg-Directory: $sysconfdir/vservers
          initrd-Directory: $initrddir
        pkgstate-Directory: $localstatedir/run/vservers
-            Kernelheaders: $kernelincludedir
           vserver-Rootdir: $vserverdir
 "
                        echo "$FEATURES_TXT" >FEATURES.txt