Restore LIBS if some component is not found
[m4-moved-to-github.git] / boost.m4
index 5eb0cfa..38060ca 100644 (file)
--- a/boost.m4
+++ b/boost.m4
@@ -90,6 +90,7 @@ int x = BOOST_VERSION;
                                AC_MSG_RESULT([yes])
                            else
                                AC_MSG_RESULT([no])
+                               LIBS="${saveLIBS}"
                            fi
                        fi
                        ;;
@@ -114,6 +115,7 @@ int x = BOOST_VERSION;
                            AC_MSG_RESULT([yes])
                        else
                            AC_MSG_RESULT([no])
+                           LIBS="${saveLIBS}"
                        fi
                        ;;
                    test)
@@ -164,6 +166,7 @@ int x = BOOST_VERSION;
                            AC_MSG_RESULT([yes])
                        else
                            AC_MSG_RESULT([no])
+                           LIBS="${saveLIBS}"
                        fi
                        ;;
                esac