do nothing in restore_flags() if flags are not saved
authorMåns Rullgård <mans@mansr.com>
Sun, 11 Feb 2007 11:28:53 +0000 (11:28 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 11 Feb 2007 11:28:53 +0000 (11:28 +0000)
Originally committed as revision 7918 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 102ba6c..58edcbd 100755 (executable)
--- a/configure
+++ b/configure
@@ -291,6 +291,7 @@ save_flags(){
 }
 
 restore_flags(){
+    flags_saved || return
     CFLAGS="$SAVE_CFLAGS"
     LDFLAGS="$SAVE_LDFLAGS"
     extralibs="$SAVE_extralibs"