3013
for ac_header in netdb.h
3015
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3016
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3017
echo "$as_me:$LINENO: checking for $ac_header" >&5
3018
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3019
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3020
echo $ECHO_N "(cached) $ECHO_C" >&6
3022
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3023
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3025
# Is the header compilable?
3026
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3027
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3028
cat >conftest.$ac_ext <<_ACEOF
3031
cat confdefs.h >>conftest.$ac_ext
3032
cat >>conftest.$ac_ext <<_ACEOF
3033
/* end confdefs.h. */
3034
$ac_includes_default
3035
#include <$ac_header>
3037
rm -f conftest.$ac_objext
3038
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3039
(eval $ac_compile) 2>conftest.er1
3041
grep -v '^ *+' conftest.er1 >conftest.err
3043
cat conftest.err >&5
3044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045
(exit $ac_status); } &&
3046
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3047
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051
(exit $ac_status); }; } &&
3052
{ ac_try='test -s conftest.$ac_objext'
3053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); }; }; then
3058
ac_header_compiler=yes
3060
echo "$as_me: failed program was:" >&5
3061
sed 's/^/| /' conftest.$ac_ext >&5
3063
ac_header_compiler=no
3065
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3067
echo "${ECHO_T}$ac_header_compiler" >&6
3069
# Is the header present?
3070
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3071
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3072
cat >conftest.$ac_ext <<_ACEOF
3075
cat confdefs.h >>conftest.$ac_ext
3076
cat >>conftest.$ac_ext <<_ACEOF
3077
/* end confdefs.h. */
3078
#include <$ac_header>
3080
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083
grep -v '^ *+' conftest.er1 >conftest.err
3085
cat conftest.err >&5
3086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087
(exit $ac_status); } >/dev/null; then
3088
if test -s conftest.err; then
3089
ac_cpp_err=$ac_c_preproc_warn_flag
3090
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097
if test -z "$ac_cpp_err"; then
3098
ac_header_preproc=yes
3100
echo "$as_me: failed program was:" >&5
3101
sed 's/^/| /' conftest.$ac_ext >&5
3103
ac_header_preproc=no
3105
rm -f conftest.err conftest.$ac_ext
3106
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3107
echo "${ECHO_T}$ac_header_preproc" >&6
3109
# So? What about this header?
3110
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3112
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3113
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3114
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3115
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3116
ac_header_preproc=yes
3119
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3120
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3121
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3122
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3123
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3124
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3125
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3126
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3127
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3128
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3129
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3130
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3133
## ------------------------------------------ ##
3134
## Report this to the AC_PACKAGE_NAME lists. ##
3135
## ------------------------------------------ ##
3138
sed "s/^/$as_me: WARNING: /" >&2
3141
echo "$as_me:$LINENO: checking for $ac_header" >&5
3142
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3143
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3144
echo $ECHO_N "(cached) $ECHO_C" >&6
3146
eval "$as_ac_Header=\$ac_header_preproc"
3148
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3149
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3152
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3153
cat >>confdefs.h <<_ACEOF
3154
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3013
3162
echo "$as_me:$LINENO: checking for PostgreSQL headers" >&5
3014
3163
echo $ECHO_N "checking for PostgreSQL headers... $ECHO_C" >&6
3015
3164
for d in /usr /usr/local /usr/local/pgsql; do
3027
3176
echo "$as_me:$LINENO: result: $d/include/postgresql" >&5
3028
3177
echo "${ECHO_T}$d/include/postgresql" >&6
3179
test -f $d/include/postgresql/8.0/libpq-fe.h && {
3181
PGSQL_INC="-I$d/include/postgresql/8.0"
3183
echo "$as_me:$LINENO: result: $d/include/postgresql/8.0" >&5
3184
echo "${ECHO_T}$d/include/postgresql/8.0" >&6
3186
test -f $d/include/pgsql/libpq-fe.h && {
3188
PGSQL_INC="-I$d/include/pgsql"
3190
echo "$as_me:$LINENO: result: $d/include/pgsql" >&5
3191
echo "${ECHO_T}$d/include/pgsql" >&6
3032
3195
old_LDFLAGS="$LDFLAGS"
3033
3196
LDFLAGS="$LDFLAGS -L$PG_DIR/lib"
3034
echo "$as_me:$LINENO: checking for PQconnectdb in -lpq" >&5
3035
echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6
3036
if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then
3197
echo "$as_me:$LINENO: checking for PQexecParams in -lpq" >&5
3198
echo $ECHO_N "checking for PQexecParams in -lpq... $ECHO_C" >&6
3199
if test "${ac_cv_lib_pq_PQexecParams+set}" = set; then
3037
3200
echo $ECHO_N "(cached) $ECHO_C" >&6
3039
3202
ac_check_lib_save_LIBS=$LIBS
3082
3245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
3246
(exit $ac_status); }; }; then
3084
ac_cv_lib_pq_PQconnectdb=yes
3247
ac_cv_lib_pq_PQexecParams=yes
3086
3249
echo "$as_me: failed program was:" >&5
3087
3250
sed 's/^/| /' conftest.$ac_ext >&5
3089
ac_cv_lib_pq_PQconnectdb=no
3252
ac_cv_lib_pq_PQexecParams=no
3091
3254
rm -f conftest.err conftest.$ac_objext \
3092
3255
conftest$ac_exeext conftest.$ac_ext
3093
3256
LIBS=$ac_check_lib_save_LIBS
3095
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5
3096
echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6
3097
if test $ac_cv_lib_pq_PQconnectdb = yes; then
3258
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexecParams" >&5
3259
echo "${ECHO_T}$ac_cv_lib_pq_PQexecParams" >&6
3260
if test $ac_cv_lib_pq_PQexecParams = yes; then
3099
3262
PGSQL_LIB="-L$PG_DIR/lib"