diff configure.ac @ 1573:ee7a546e3e6d

Fix CFLAGS for configure
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Mar 2018 10:10:16 +0800
parents 86e4995bbedf
children 68abf717328d
line wrap: on
line diff
--- a/configure.ac	Fri Mar 02 00:11:27 2018 +0800
+++ b/configure.ac	Sat Mar 03 10:10:16 2018 +0800
@@ -15,6 +15,7 @@
 	AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev])
 fi
 
+ORIGCFLAGS="$CFLAGS"
 # Checks for programs.
 AC_PROG_CC
 
@@ -35,7 +36,7 @@
 }])
 
 # set compile flags prior to other tests
-if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
+if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then
 	AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC)
 	CFLAGS="-Os -W -Wall"
 fi