aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMax Horn2007-11-06 17:23:33 +0000
committerMax Horn2007-11-06 17:23:33 +0000
commitb820b661c7b691cfcb86408954cde6f71da5654e (patch)
tree21db4c49a7c9edd852013e1050090a26a71c91f0 /configure
parent443dff5285f0654be4a6f843b8262bd07bb95036 (diff)
downloadscummvm-rg350-b820b661c7b691cfcb86408954cde6f71da5654e.tar.gz
scummvm-rg350-b820b661c7b691cfcb86408954cde6f71da5654e.tar.bz2
scummvm-rg350-b820b661c7b691cfcb86408954cde6f71da5654e.zip
Patch #1826459: Make: reconfigure on configure change (saving environment)
svn-id: r29435
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 6614ca6b34..a817eb8a21 100755
--- a/configure
+++ b/configure
@@ -9,6 +9,12 @@
# * detect whether the chosen backend is available (e.g. call sdl-config)
# * ....
+# Save the current environment variables for next runs
+SAVED_CONFIGFLAGS=$@
+SAVED_LDFLAGS=$LDFLAGS
+SAVED_CXX=$CXX
+SAVED_CXXFLAGS=$CXXFLAGS
+SAVED_CPPFLAGS=$CPPFLAGS
# use environment vars if set
CXXFLAGS="$CXXFLAGS $CPPFLAGS"
@@ -1625,6 +1631,14 @@ INCLUDES += $INCLUDES
OBJS += $OBJS
DEFINES += $DEFINES
LDFLAGS += $LDFLAGS
+
+SAVED_CONFIGFLAGS := $SAVED_CONFIGFLAGS
+SAVED_LDFLAGS := $SAVED_LDFLAGS
+SAVED_CXX := $SAVED_CXX
+SAVED_CXXFLAGS := $SAVED_CXXFLAGS
+SAVED_CPPFLAGS := $SAVED_CPPFLAGS
+
+CONFIG_MK_IS_PRESENT := 1
EOF
#