From 96c26eadbdcf9fc4cbf7128443c928d9e5e1a492 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 30 Sep 2003 16:01:50 +0000 Subject: [PATCH] added dietlibc support version 0.23.89.1 git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@12 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/configure.ac | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/util-vserver/configure.ac b/util-vserver/configure.ac index 5e7b319..46d7a88 100644 --- a/util-vserver/configure.ac +++ b/util-vserver/configure.ac @@ -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.23.5, enrico.scholz@informatik.tu-chemnitz.de) +AC_INIT(util-vserver, 0.23.89.1, enrico.scholz@informatik.tu-chemnitz.de) AC_CONFIG_SRCDIR([src/capchroot.c]) AC_CONFIG_HEADER([config.h]) @@ -42,6 +42,40 @@ AM_PROG_CC_C_O ENSC_CHECK_CC_FLAG([-std=c99]) +AC_MSG_CHECKING([whether to enable dietlibc]) +AC_ARG_ENABLE([dietlibc], + [AC_HELP_STRING([--disable-dietlibc], + [do not use dietlibc (default: use dietlibc)])], + [case "$withval" in + yes) use_dietlibc=forced;; + no) use_dietlibc=forced_no;; + *) AC_MSG_ERROR(['$withval' is not a valid value for --enable-dietlibc]);; + esac], + [: ${DIET:=diet} + which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no]) + +case x"$use_dietlibc" in + xdetected) + AM_CONDITIONAL(USE_DIETLIBC, true) + AC_MSG_RESULT([yes (autodetected)]) + ;; + xforced) + AM_CONDITIONAL(USE_DIETLIBC, true) + AC_MSG_RESULT([yes (forced)]) + ;; + xdetected_no) + AM_CONDITIONAL(USE_DIETLIBC, false) + AC_MSG_RESULT([no (detected)]) + ;; + xforced_no) + AM_CONDITIONAL(USE_DIETLIBC, false) + AC_MSG_RESULT([no (forced)]) + ;; + *) + AC_MSG_ERROR([internal error, use_dietlibc was "$use_dietlibc"]) + ;; +esac + AC_ARG_VAR(CC, [The C compiler]) AC_MSG_CHECKING([for linux kernel headers]) AC_ARG_WITH([kerneldir], -- 1.8.1.5