Don't add empty arguments to -I and -L if pg_config fails.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 27 May 2013 21:44:26 +0000 (21:44 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 27 May 2013 21:44:26 +0000 (21:44 +0000)
src/microcode/configure.ac

index 5b966151ace833f1e830435f322a959a7c07eae2..86d2f632c5a95404e2846a835d51370cd83228f3 100644 (file)
@@ -779,11 +779,15 @@ if test "${with_libpq}" != no; then
            libpq_lib=/usr/lib
        fi
     fi
-    if test "${libpq_inc}" != /usr/include; then
-       CPPFLAGS="${CPPFLAGS} -I${libpq_inc}"
+    if test "x${libpq_inc}" != x; then
+       if test "${libpq_inc}" != /usr/include; then
+           CPPFLAGS="${CPPFLAGS} -I${libpq_inc}"
+       fi
     fi
-    if test "${libpq_lib}" != /usr/lib; then
-       LDFLAGS="${LDFLAGS} -L${libpq_lib}"
+    if test "x${libpq_lib}" != x; then
+       if test "${libpq_lib}" != /usr/lib; then
+           LDFLAGS="${LDFLAGS} -L${libpq_lib}"
+       fi
     fi
     AC_CHECK_HEADER([libpq-fe.h],
        [