From 71879a53b3ab3b8b7cb237e917c85943b9ded36d Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 27 May 2013 21:44:26 +0000 Subject: [PATCH] Don't add empty arguments to -I and -L if pg_config fails. --- src/microcode/configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 5b966151a..86d2f632c 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -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], [ -- 2.25.1