~ubuntu-branches/ubuntu/hardy/pam-pgsql/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Vijay(Vijay)
  • Date: 2007-07-03 23:25:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070703232555-lkhxf3zle6vkalq0
Tags: 0.6.3-0ubuntu1
New Upstream release  

Show diffs side-by-side

added added

removed removed

Lines of Context:
3010
3010
done
3011
3011
 
3012
3012
 
 
3013
for ac_header in netdb.h
 
3014
do
 
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
 
3021
fi
 
3022
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3023
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3024
else
 
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
 
3029
/* confdefs.h.  */
 
3030
_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>
 
3036
_ACEOF
 
3037
rm -f conftest.$ac_objext
 
3038
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3039
  (eval $ac_compile) 2>conftest.er1
 
3040
  ac_status=$?
 
3041
  grep -v '^ *+' conftest.er1 >conftest.err
 
3042
  rm -f conftest.er1
 
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
 
3048
  (eval $ac_try) 2>&5
 
3049
  ac_status=$?
 
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
 
3054
  (eval $ac_try) 2>&5
 
3055
  ac_status=$?
 
3056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3057
  (exit $ac_status); }; }; then
 
3058
  ac_header_compiler=yes
 
3059
else
 
3060
  echo "$as_me: failed program was:" >&5
 
3061
sed 's/^/| /' conftest.$ac_ext >&5
 
3062
 
 
3063
ac_header_compiler=no
 
3064
fi
 
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
 
3068
 
 
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
 
3073
/* confdefs.h.  */
 
3074
_ACEOF
 
3075
cat confdefs.h >>conftest.$ac_ext
 
3076
cat >>conftest.$ac_ext <<_ACEOF
 
3077
/* end confdefs.h.  */
 
3078
#include <$ac_header>
 
3079
_ACEOF
 
3080
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3081
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3082
  ac_status=$?
 
3083
  grep -v '^ *+' conftest.er1 >conftest.err
 
3084
  rm -f conftest.er1
 
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
 
3091
  else
 
3092
    ac_cpp_err=
 
3093
  fi
 
3094
else
 
3095
  ac_cpp_err=yes
 
3096
fi
 
3097
if test -z "$ac_cpp_err"; then
 
3098
  ac_header_preproc=yes
 
3099
else
 
3100
  echo "$as_me: failed program was:" >&5
 
3101
sed 's/^/| /' conftest.$ac_ext >&5
 
3102
 
 
3103
  ac_header_preproc=no
 
3104
fi
 
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
 
3108
 
 
3109
# So?  What about this header?
 
3110
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3111
  yes:no: )
 
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
 
3117
    ;;
 
3118
  no: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;}
 
3131
    (
 
3132
      cat <<\_ASBOX
 
3133
## ------------------------------------------ ##
 
3134
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3135
## ------------------------------------------ ##
 
3136
_ASBOX
 
3137
    ) |
 
3138
      sed "s/^/$as_me: WARNING:     /" >&2
 
3139
    ;;
 
3140
esac
 
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
 
3145
else
 
3146
  eval "$as_ac_Header=\$ac_header_preproc"
 
3147
fi
 
3148
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3149
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3150
 
 
3151
fi
 
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
 
3155
_ACEOF
 
3156
 
 
3157
fi
 
3158
 
 
3159
done
 
3160
 
 
3161
 
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
3029
3178
    }
 
3179
    test -f $d/include/postgresql/8.0/libpq-fe.h && {
 
3180
 
 
3181
        PGSQL_INC="-I$d/include/postgresql/8.0"
 
3182
        PG_DIR="$d"
 
3183
        echo "$as_me:$LINENO: result: $d/include/postgresql/8.0" >&5
 
3184
echo "${ECHO_T}$d/include/postgresql/8.0" >&6
 
3185
    }
 
3186
    test -f $d/include/pgsql/libpq-fe.h && {
 
3187
 
 
3188
        PGSQL_INC="-I$d/include/pgsql"
 
3189
        PG_DIR="$d"
 
3190
        echo "$as_me:$LINENO: result: $d/include/pgsql" >&5
 
3191
echo "${ECHO_T}$d/include/pgsql" >&6
 
3192
    }
3030
3193
done
3031
3194
 
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
3038
3201
else
3039
3202
  ac_check_lib_save_LIBS=$LIBS
3051
3214
#endif
3052
3215
/* We use char because int might match the return type of a gcc2
3053
3216
   builtin and then its argument prototype would still apply.  */
3054
 
char PQconnectdb ();
 
3217
char PQexecParams ();
3055
3218
int
3056
3219
main ()
3057
3220
{
3058
 
PQconnectdb ();
 
3221
PQexecParams ();
3059
3222
  ;
3060
3223
  return 0;
3061
3224
}
3081
3244
  ac_status=$?
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
3085
3248
else
3086
3249
  echo "$as_me: failed program was:" >&5
3087
3250
sed 's/^/| /' conftest.$ac_ext >&5
3088
3251
 
3089
 
ac_cv_lib_pq_PQconnectdb=no
 
3252
ac_cv_lib_pq_PQexecParams=no
3090
3253
fi
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
3094
3257
fi
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
3098
3261
 
3099
3262
        PGSQL_LIB="-L$PG_DIR/lib"
3100
3263
else
3105
3268
 
3106
3269
LDFLAGS="$old_LDFLAGS"
3107
3270
 
 
3271
 
 
3272
 
3108
3273
echo "$as_me:$LINENO: checking for mhash headers" >&5
3109
3274
echo $ECHO_N "checking for mhash headers... $ECHO_C" >&6
3110
3275
for d in /usr /usr/local; do