diff options
author | DJ Delorie <dj@delorie.com> | 2001-11-09 02:21:21 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2001-11-09 02:21:21 +0000 |
commit | d480556f681cefb9de53bceb1d32d965912f0af7 (patch) | |
tree | 8e135c972bbe572ba8717a915c7c0d732b6ce933 | |
parent | 4a6ba4c44a8ef91441716fe73b126129b67e7134 (diff) | |
download | binutils-redhat-d480556f681cefb9de53bceb1d32d965912f0af7.tar.gz |
* configure.in (--enable-languages): Be more permissive about
syntax. Check for empty lists better. Warn about $LANGUAGES.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 12 |
2 files changed, 14 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2001-11-08 Phil Edwards <pedwards@disaster.jaj.com> + + * configure.in (--enable-languages): Be more permissive about + syntax. Check for empty lists better. Warn about $LANGUAGES. + 2001-11-06 Hans-Peter Nilsson <hp@bitrange.com> * Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0. diff --git a/configure.in b/configure.in index 4102e594b5..7b7e4bb73d 100644 --- a/configure.in +++ b/configure.in @@ -976,18 +976,24 @@ fi # Look if the user specified --enable-languages="..."; if not, use # the environment variable $LANGUAGES if defined. $LANGUAGES might # go away some day. +# NB: embedded tabs in this IF block -- do not untabify if test x"${enable_languages+set}" != xset; then if test x"${LANGUAGES+set}" = xset; then - enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" + enable_languages="${LANGUAGES}" + echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 else enable_languages=all fi else - if test x"${enable_languages}" = x; then - echo configure.in: --enable-languages needs at least one argument 1>&2 + if test x"${enable_languages}" = x || + test x"${enable_languages}" = xyes; + then + echo configure.in: --enable-languages needs at least one language argument 1>&2 exit 1 fi fi +enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` + subdirs= for lang in ${srcdir}/gcc/*/config-lang.in .. do |