comparison configure @ 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 6eca500211f4
children 2aeaf9bc7175
comparison
equal deleted inserted replaced
5894:23178aa71f8b 5895:b2709239b1f6
1915 1915
1916 --with-database=TYPE Compile with database support. Valid types are `no' 1916 --with-database=TYPE Compile with database support. Valid types are `no'
1917 or a comma-separated list of one or more of `berkdb' 1917 or a comma-separated list of one or more of `berkdb'
1918 and either `dbm' or `gdbm'. 1918 and either `dbm' or `gdbm'.
1919 --with-ldap Support the LDAP protocol. 1919 --with-ldap Support the LDAP protocol.
1920 --with-postgresql Support the PostgreSQL RDBMS. 1920 --with-postgresql Support the PostgreSQL RDBMS. Optional argument
1921 should be the basename of the subdirectory
1922 containing `libpq-fe.h'. The first subdirectory
1923 found on the -I path will be used. Currently
1924 autodetect must be used --with-modules.
1921 1925
1922 Mail options 1926 Mail options
1923 ------------ 1927 ------------
1924 1928
1925 --with-mail-locking=TYPE 1929 --with-mail-locking=TYPE
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL" >&5 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL" >&5
15599 $as_echo_n "checking for PostgreSQL... " >&6; } 15603 $as_echo_n "checking for PostgreSQL... " >&6; }
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15601 $as_echo "" >&6; } 15605 $as_echo "" >&6; }
15602 15606
15603 for header_dir in "" "pgsql/" "postgresql/"; do 15607 case "$with_postgresql" in
15604 as_ac_Header=`$as_echo "ac_cv_header_${header_dir}libpq-fe.h" | $as_tr_sh` 15608 "" | "yes" | "no" | "true" | "false" | "auto")
15605 ac_fn_c_check_header_mongrel "$LINENO" "${header_dir}libpq-fe.h" "$as_ac_Header" "$ac_includes_default" 15609 pg_header_dir="" ;;
15610 *)
15611 pg_header_dir="$with_postgresql" ;;
15612 esac
15613
15614 libpq_fe_h_file=""
15615 for header_dir in $pg_header_dir "" "pgsql" "postgresql" "postgresql94" "postgresql-9.4" "postgresql84" "postgresql-8.4"; do
15616 as_ac_Header=`$as_echo "ac_cv_header_${header_dir}/libpq-fe.h" | $as_tr_sh`
15617 ac_fn_c_check_header_mongrel "$LINENO" "${header_dir}/libpq-fe.h" "$as_ac_Header" "$ac_includes_default"
15606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15607 libpq_fe_h_file=${header_dir}libpq-fe.h; break 15619 libpq_fe_h_file=${header_dir}/libpq-fe.h; break
15608 fi 15620 fi
15609 15621
15610 15622
15611 done 15623 done
15624
15625 if test -n "$pg_header_dir" -a "$header_dir" != "$pg_header_dir"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-postgresql=\"$pg_header_dir\" specified but not found; using \"$libpq_fe_h_file\"" >&5
15627 $as_echo "$as_me: WARNING: --with-postgresql=\"$pg_header_dir\" specified but not found; using \"$libpq_fe_h_file\"" >&2;}
15612 15628
15613 pq_libs= 15629 pq_libs=
15614 extra_libs= 15630 extra_libs=
15615 if test -n "$libpq_fe_h_file"; then 15631 if test -n "$libpq_fe_h_file"; then
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5