Commit e48c77c2 authored by Murray Cumming's avatar Murray Cumming
Browse files

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

parent 83e55583
......@@ -269,6 +269,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([[
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment