Merge pull request #662 from komeda-shinji/fix-config-oracle
authorPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 30 Jul 2014 10:08:05 +0000 (12:08 +0200)
committerPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 30 Jul 2014 10:08:05 +0000 (12:08 +0200)
patch required to build oracle plugin, collectd-5.4.0 (#653)

configure.ac

index a4ddd32..6f4f8d8 100644 (file)
@@ -2982,14 +2982,14 @@ fi
 if test "x$with_oracle" = "xyes"
 then
        SAVE_CPPFLAGS="$CPPFLAGS"
-       SAVE_LDFLAGS="$LDFLAGS"
+       SAVE_LIBS="$LIBS"
        CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
-       LDFLAGS="$LDFLAGS $with_oracle_libs"
+       LIBS="$LIBS $with_oracle_libs"
 
        AC_CHECK_FUNC(OCIEnvCreate, [with_oracle="yes"], [with_oracle="no (Symbol 'OCIEnvCreate' not found)"])
 
        CPPFLAGS="$SAVE_CPPFLAGS"
-       LDFLAGS="$SAVE_LDFLAGS"
+       LIBS="$SAVE_LIBS"
 fi
 if test "x$with_oracle" = "xyes"
 then