changeset 8235:bc485f942c5e

(CFLAGS): If the envvar was specified, use that. And set REAL_CFLAGS from it too.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 Jul 1994 05:08:26 +0000
parents 8eea81545089
children 444501972687
files configure1.in
diffstat 1 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Wed Jul 13 05:04:46 1994 +0000
+++ b/configure1.in	Wed Jul 13 05:08:26 1994 +0000
@@ -1332,6 +1332,9 @@
 ### GCC 2.5 on Linux needs them to be different because it treats -g
 ### as implying static linking.
 
+### If the CFLAGS env var is specified, we use that value
+### instead of the default.
+
 ### It's not important that this name contain the PID; you can't run
 ### two configures in the same directory and have anything work
 ### anyway.
@@ -1412,12 +1415,16 @@
 # The value of CPP is a quoted variable reference, so we need to do this
 # to get its actual value...
 CPP=`eval "echo $CPP"`
-eval `${CPP} -Isrc ${tempcname} \
-       | grep 'configure___' \
-       | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
-eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
-       | grep 'configure___' \
-       | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
+if [ "x$CFLAGS" = x ]; then
+  eval `${CPP} -Isrc ${tempcname} \
+	 | grep 'configure___' \
+	 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
+  eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
+	 | grep 'configure___' \
+	 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
+else
+  REAL_CFLAGS="$CFLAGS"
+fi
 rm ${tempcname}
 
 ### Compute the unexec source name from the object name.