Apply LDFLAGS to LIBS fix for log4cpp/log4shib configure.
authorScott Cantor <cantor.2@osu.edu>
Mon, 21 Mar 2011 14:05:49 +0000 (14:05 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 21 Mar 2011 14:05:49 +0000 (14:05 +0000)
configure.ac

index 08adb20..918d895 100644 (file)
@@ -103,7 +103,7 @@ AC_ARG_WITH(log4shib,
     fi
     ])
 if test -f "${LOG4SHIB_CONFIG}"; then
-    LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
+    LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
        AC_CHECK_HEADER([log4shib/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4shib header files]))
     AC_LINK_IFELSE(
@@ -128,7 +128,7 @@ else
            ])
        if test -f "${LOG4CPP_CONFIG}"; then
                AC_MSG_WARN([will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe])
-           LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
+           LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
            CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
                AC_CHECK_HEADER([log4cpp/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4cpp header files]))
         AC_LINK_IFELSE(