* another s!sys_virtual_context!vserver!
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 14:08:57 +0000 (14:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 14:08:57 +0000 (14:08 +0000)
* test for ext2fs.h headers with the C++ compiler; this will detect
  problems with RH rawhide headers very early
  (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@506 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/configure.ac

index 1a8908c..8c452ec 100644 (file)
@@ -101,11 +101,13 @@ done
 IFS=$old_IFS
 AC_MSG_RESULT([$enable_apis])
 
+AC_LANG_PUSH(C++)
 AC_CHECK_HEADERS([ext2fs/ext2fs.h], [],
   [AC_CHECK_HEADERS([linux/ext2_fs.h], [],
                     [AC_MSG_ERROR([Sorry, do not know, how to include 'ext2fs.h'])])])
+AC_LANG_POP
 
-AC_CHECK_FUNCS([sys_virtual_context])
+AC_CHECK_FUNCS([vserver])
 AC_CHECK_DECLS(MS_MOVE,,,[#include <linux/fs.h>])
 AC_CHECK_TYPES(xid_t,,,[#include <sys/types.h>])