Always restore CFLAGS and LIBS after the tests.
authornbk <nbk>
Thu, 8 Dec 2005 17:47:03 +0000 (17:47 +0000)
committernbk <nbk>
Thu, 8 Dec 2005 17:47:03 +0000 (17:47 +0000)
acinclude.m4

index 3072b30..8253976 100644 (file)
@@ -434,8 +434,8 @@ if test "x$smart_try_dir" != "x"; then
     if test "x$smart_lib" != "x"; then
       break;
     fi
-    LIBS="$old_LIBS"
   done
+  LIBS="$old_LIBS"
 fi
 
 dnl #
@@ -464,8 +464,8 @@ if test "x$smart_lib" = "x"; then
     if test "x$smart_lib" != "x"; then
       break;
     fi
-    LIBS="$old_LIBS"
   done
+  LIBS="$old_LIBS"
 fi
 
 dnl #
@@ -511,8 +511,8 @@ if test "x$smart_try_dir" != "x"; then
     if test "x$smart_include" != "x"; then
       break;
     fi
-    CFLAGS="$old_CFLAGS"
   done
+  CFLAGS="$old_CFLAGS"
 fi
 
 dnl #
@@ -542,8 +542,8 @@ if test "x$smart_include" = "x"; then
     if test "x$smart_include" != "x"; then
       break;
     fi
-    CFLAGS="$old_CFLAGS"
   done
+  CFLAGS="$old_CFLAGS"
 fi
 
 dnl #