'[ -e' in configure is naughty.
Robert Lipe
robertl@sco.com
Mon Nov 13 08:01:00 GMT 2000
I'm about to get on a plane and I'm not certain this is the best fix.
Traditional 'test' doesn't support '-e'. This appears to be a GNU
extension.
This allows configure to not croak, but someone should verify this
is consistent with the original intent.
RJL
(robertl) sol3:/home/robertl/src/egcs/gcc
$ cvs diff configure.in
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.450
diff -u -r1.450 configure.in
--- configure.in 2000/11/13 13:39:35 1.450
+++ configure.in 2000/11/13 15:57:05
@@ -4204,7 +4204,7 @@
gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
# Compile in configure arguments.
-if [ -e configargs.h ]; then
+if [ -f configargs.h ]; then
# Being re-configured.
gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e
's/.*\"\([^\"]*\)\".*/\1/'`
gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_C
ONFIGURE_ARGUMENTS"
More information about the Gcc-patches
mailing list