comparison modules/postgresql/configure.ac @ 5895:b2709239b1f6

Update Postgresql module for 2015 and MacPorts reality.
author Stephen J. Turnbull <stephen@xemacs.org>
date Mon, 04 May 2015 14:32:22 +0900
parents 56b64a055043
children
comparison
equal deleted inserted replaced
5894:23178aa71f8b 5895:b2709239b1f6
30 dnl 30 dnl
31 dnl If PostgreSQL is installed into a different prefix, 31 dnl If PostgreSQL is installed into a different prefix,
32 dnl (such as the default /usr/local/pgsql when building from source), 32 dnl (such as the default /usr/local/pgsql when building from source),
33 dnl then specify CPPFLAGS and LDFLAGS when configuring. 33 dnl then specify CPPFLAGS and LDFLAGS when configuring.
34 dnl 34 dnl
35 dnl Look for these standard header file locations, known to be used on Linux 35 dnl Look in standard header file locations.
36 for header_dir in "" "pgsql/" "postgresql/"; do 36 dnl These are known to be used on Linux or MacPorts.
37 AC_CHECK_HEADER([${header_dir}libpq-fe.h], 37 dnl Assume that the most recent version available is the most likely to be
38 [libpq_fe_h_file=${header_dir}libpq-fe.h; break]) 38 dnl found in an unversioned directory.
39 libpq_fe_h_file=""
40 for header_dir in $pg_header_dir "" "pgsql" "postgresql" "postgresql94" "postgresql-9.4" "postgresql/9.4" "postgresql84" "postgresql-8.4" "postgresql/8.4"; do
41 AC_CHECK_HEADER(${header_dir}/libpq-fe.h,
42 libpq_fe_h_file=${header_dir}/libpq-fe.h; break)
39 done 43 done
40 44
41 test -z "$libpq_fe_h_file" && 45 test -z "$libpq_fe_h_file" &&
42 AS_ERROR([Cannot find the PostgresQL header files; try specifying CPPFLAGS.]) 46 AS_ERROR([Cannot find the PostgresQL header files; try specifying CPPFLAGS.])
43 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file") 47 AC_DEFINE_UNQUOTED(LIBPQ_FE_H_FILE, "$libpq_fe_h_file")