empty --enable-languages check (was Re: #pragma system_header and bootstrap)
Phil Edwards
pedwards@jaj.com
Tue May 23 14:08:00 GMT 2000
[cc'd to both the libstdc++-v3 and gcc-patches lists]
Branko =?iso-8859-2?Q?=C8ibej?= <branko.cibej@hermes.si>:
>
> Forget it, I found the problem. Somehow I managed to put an
> `--enable-languages=""' in my GCC configure script, which obviously
> confused configure. My bad.
configure should know better. :-) Here is a patch against CVS which will
error out on an empty set of target languages.
2000-05-23 Phil Edwards <pme@sourceware.cygnus.com>
* configure.in: For --enable-languages=LIST, check for empty LIST.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.374
diff -u -3 -r1.374 configure.in
--- configure.in 2000/05/23 19:59:47 1.374
+++ configure.in 2000/05/23 20:53:32
@@ -4604,6 +4604,10 @@
else
enable_languages=all
fi
+else
+ if test x"${enable_languages}" = x; then
+ AC_MSG_ERROR([--enable-languages needs at least one argument])
+ fi
fi
subdirs=
for lang in ${srcdir}/*/config-lang.in ..
Index: configure
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure,v
retrieving revision 1.369
diff -u -3 -r1.369 configure
--- configure 2000/05/23 19:59:46 1.369
+++ configure 2000/05/23 20:53:32
@@ -8955,6 +8955,10 @@
else
enable_languages=all
fi
+else
+ if test x"${enable_languages}" = x; then
+ { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
+ fi
fi
subdirs=
for lang in ${srcdir}/*/config-lang.in ..
More information about the Libstdc++
mailing list