diff options
author | Mateusz Loskot <mateusz@loskot.net> | 2008-01-29 21:22:10 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2008-01-29 21:22:10 +0100 |
commit | 4ed42751b7f1d272b0ebc308252be0f0bdd792f3 (patch) | |
tree | 5872545706cb7e2fbfe418419369115c206ea0ba /m4/ax_lib_postgresql.m4 | |
parent | 19261af95b76b5ea6834a0ac8572a54cb4afdffd (diff) | |
download | autoconf-archive-4ed42751b7f1d272b0ebc308252be0f0bdd792f3.tar.gz |
AX_LIB_POSTGRESQL: bugfix
Diffstat (limited to 'm4/ax_lib_postgresql.m4')
-rw-r--r-- | m4/ax_lib_postgresql.m4 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/m4/ax_lib_postgresql.m4 b/m4/ax_lib_postgresql.m4 index f5452a5..b1d6348 100644 --- a/m4/ax_lib_postgresql.m4 +++ b/m4/ax_lib_postgresql.m4 @@ -35,11 +35,11 @@ # # LAST MODIFICATION # -# 2006-07-16 +# 2008-01-29 # # COPYLEFT # -# Copyright (c) 2006 Mateusz Loskot <mateusz@loskot.net> +# Copyright (c) 2008 Mateusz Loskot <mateusz@loskot.net> # # Copying and distribution of this file, with or without # modification, are permitted in any medium without royalty provided @@ -66,7 +66,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL], POSTGRESQL_CFLAGS="" POSTGRESQL_LDFLAGS="" - POSTGRESQL_POSTGRESQL="" + POSTGRESQL_VERSION="" dnl dnl Check PostgreSQL libraries (libpq) @@ -75,7 +75,13 @@ AC_DEFUN([AX_LIB_POSTGRESQL], if test "$want_postgresql" = "yes"; then if test -z "$PG_CONFIG" -o test; then - AC_PATH_PROG([PG_CONFIG], [pg_config], [no]) + AC_PATH_PROG([PG_CONFIG], [pg_config], []) + fi + + if test ! -x "$PG_CONFIG"; then + AC_MSG_ERROR([$PG_CONFIG does not exist or it is not an exectuable file]) + PG_CONFIG="no" + found_postgresql="no" fi if test "$PG_CONFIG" != "no"; then |