From 7af035d7c10fb181b47b5c2f084b4c6a1c918022 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 18 Nov 2015 05:14:52 +0000 Subject: [PATCH] Cleanly handle empty return from pg_config --pgxs On a debian-derivate system, the call may prints on stderr: " You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. " This has been seen on a Trisquel 7.0 GNU/Linux system. git-svn-id: http://svn.osgeo.org/postgis/trunk@14399 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4ac807368..e99a6ecac 100644 --- a/configure.ac +++ b/configure.ac @@ -422,7 +422,7 @@ if test "x$LIBLWGEOM_ONLY" = "xno"; then dnl =========================================================================== PGXS=`$PG_CONFIG --pgxs` - if test ! -f $PGXS; then + if test "x$PGXS" = "x" -o ! -f "$PGXS"; then AC_MSG_ERROR([the PGXS Makefile $PGXS cannot be found. Please install the PostgreSQL server development packages and re-run configure.]) fi -- 2.40.0