From: Taylor R Campbell Date: Mon, 27 May 2013 21:44:26 +0000 (+0000) Subject: Don't add empty arguments to -I and -L if pg_config fails. X-Git-Tag: release-9.2.0~183 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=71879a53b3ab3b8b7cb237e917c85943b9ded36d;p=mit-scheme.git Don't add empty arguments to -I and -L if pg_config fails. --- 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], [