From b820b661c7b691cfcb86408954cde6f71da5654e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 6 Nov 2007 17:23:33 +0000 Subject: Patch #1826459: Make: reconfigure on configure change (saving environment) svn-id: r29435 --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure') 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 # -- cgit v1.2.3