From: Ulrich Drepper Date: Fri, 12 Dec 1997 02:29:18 +0000 (+0000) Subject: If --enable-add-ons is given without an argument, set the addons list X-Git-Tag: cvs/glibc-2_0_6pre4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9dbb25306887f4e45ee9a75cf0416426e2ad35f;p=thirdparty%2Fglibc.git If --enable-add-ons is given without an argument, set the addons list to all subdirs with a configure script. --- diff --git a/configure.in b/configure.in index 5d35ac51c50..c3b971451f3 100644 --- a/configure.in +++ b/configure.in @@ -85,14 +85,24 @@ fi dnl Generic infrastructure for drop-in additions to libc. AC_ARG_ENABLE(add-ons, dnl -[ --enable-add-ons=DIR... configure and build named extra directories], - [add_ons=`echo "$enableval" | sed 's/,/ /g'`], - [add_ons=]) +[ --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,... + search for add-ons if no parameter given], + [case "$enableval" in + yes) add_ons=`echo $srcdir/*/configure | \ + sed -e "s!$srcdir/!!g" -e 's!/configure!!g'`;; + *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; + esac], + [add_ons=]) AC_CONFIG_SUBDIRS($add_ons) add_ons_pfx= if test x"$add_ons" != x; then for f in $add_ons; do - add_ons_pfx="$add_ons_pfx $f/" + # Test whether such a subdir really exists. + if test -d $srcdir/$f; then + add_ons_pfx="$add_ons_pfx $f/" + else + AC_MSG_ERROR(add-on directory \"$f\" does not exist) + fi done fi