[glom/glom-1-22] configure.ac: Check that we have the pg_config utility.



commit 50604ebdbb80ad552f3dc22611bec22b6885b139
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Dec 14 21:26:16 2013 +0100

    configure.ac: Check that we have the pg_config utility.

 configure.ac |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c4f4f60..d21c7fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -233,6 +233,11 @@ AC_ARG_WITH([postgres-utils],
 AS_IF([test "x$glom_host_win32" != xyes && test "x$glom_enable_client_only" != xyes],
       [AS_CASE([$POSTGRES_UTILS_PATH], [""|no|yes],
 [
+  # For instance, this is in libpq-dev in Ubuntu:
+  AC_CHECK_PROG([PG_CONFIG], [pg_config], [yes], [no])
+  AS_IF([test "$PG_CONFIG" = no],
+    [AC_MSG_ERROR([The PostgreSQL pg_config utility was not found. Glom needs this to find the other 
PostgreSQL utilities.])])
+
   POSTGRES_UTILS_PATH=`pg_config --bindir 2>&AS_MESSAGE_LOG_FD`
   AS_IF(["$POSTGRES_UTILS_PATH/pg_ctl" --version >/dev/null 2>&AS_MESSAGE_LOG_FD],,
         [AC_MSG_ERROR([[


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]