Code

configure: Don't add -liptc to the global LIBS setting.
authorSebastian Harl <sh@teamix.net>
Wed, 13 Jun 2012 12:31:00 +0000 (14:31 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 13 Sep 2012 08:58:09 +0000 (10:58 +0200)
AC_SEARCH_LIBS() would do that, so save and restore LIBS when calling that
macro.

Signed-off-by: Florian Forster <octo@collectd.org>
configure.in

index add82f1286c7b7d6b3a8ff43708ed204c998d7e8..43e3329b1700b2de7154cb09be7777fa02154b6d 100644 (file)
@@ -1655,10 +1655,12 @@ fi
 # This could be in iptc or ip4tc
 if test "x$with_libiptc" = "xpkgconfig"
 then
+       SAVE_LIBS="$LIBS"
        AC_SEARCH_LIBS(iptc_init, [iptc ip4tc],
                        [with_libiptc="pkgconfig"],
                        [with_libiptc="no"],
                        [$with_libiptc_libs])
+       LIBS="$SAVE_LIBS"
 fi
 if test "x$with_libiptc" = "xpkgconfig"
 then