[glom/glom-1-24] configure.ac: Check that we have the pg_config utility.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-24] configure.ac: Check that we have the pg_config utility.
- Date: Sun, 15 Dec 2013 11:21:55 +0000 (UTC)
commit af3a686e87f58db2de73621f8668aeb088e3605d
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 2d31cfb..e5c16df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,6 +255,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]