This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
src/configure.in patch
- To: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com
- Subject: src/configure.in patch
- From: DJ Delorie <dj at redhat dot com>
- Date: Thu, 8 Nov 2001 21:21:36 -0500
Just keeping up with gcc... shouldn't affect you folks, but I tested
it with your stuff anyway.
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.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.42
diff -p -3 -r1.42 configure.in
*** configure.in 2001/09/19 06:07:36 1.42
--- configure.in 2001/11/09 02:10:54
*************** fi
*** 976,993 ****
# Look if the user specified --enable-languages="..."; if not, use
# the environment variable $LANGUAGES if defined. $LANGUAGES might
# go away some day.
if test x"${enable_languages+set}" != xset; then
if test x"${LANGUAGES+set}" = xset; then
! enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
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
exit 1
fi
fi
subdirs=
for lang in ${srcdir}/gcc/*/config-lang.in ..
do
--- 976,999 ----
# 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="${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 ||
! 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