--- configure.in.orig 2012-09-13 10:20:19.758061683 +0800 +++ configure.in 2012-09-13 10:22:22.898062878 +0800 @@ -477,7 +477,7 @@ if test "x$with_libpcre_libraries" != "xno"; then LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}" else - LDFLAGS="${LDFLAGS} `pcre-config --libs`" + LIBS="${LIBS} `pcre-config --libs`" fi # PCRE configuration (required) @@ -592,7 +592,7 @@ if test "x$with_dnet_libraries" != "xno"; then LDFLAGS="${LDFLAGS} -L${with_dnet_libraries}" else - LDFLAGS="${LDFLAGS} `dnet-config --libs 2>/dev/null`" + LIBS="${LIBS} `dnet-config --libs 2>/dev/null`" fi AC_CHECK_HEADERS(dnet.h,,DNET_H="no")