68246824rm -f conftest.err conftest.$ac_objext \
68256825 conftest$ac_exeext conftest.$ac_ext
68266826if test "$ac_cv_search_gss_init_sec_context" = no; then
6827- for ac_lib in gssapi_krb5; do
6827+ for ac_lib in gssapi_krb5 'gssapi -lkrb5 -lcrypto' ; do
68286828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
68296829 cat >conftest.$ac_ext <<_ACEOF
68306830/* confdefs.h. */
@@ -10198,26 +10198,30 @@ fi
1019810198fi
1019910199
1020010200if test "$with_gssapi" = yes ; then
10201- if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
10202- echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
10203- echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
10204- if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
10201+
10202+ for ac_header in gssapi/gssapi.h
10203+ do
10204+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10205+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
10206+ echo "$as_me:$LINENO: checking for $ac_header" >&5
10207+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10208+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
1020510209 echo $ECHO_N "(cached) $ECHO_C" >&6
1020610210fi
10207- echo "$as_me:$LINENO: result:$ac_cv_header_gssapi_gssapi_h " >&5
10208- echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h " >&6
10211+ echo "$as_me:$LINENO: result:`eval echo '${'$as_ac_Header'}'` " >&5
10212+ echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'` " >&6
1020910213else
1021010214 # Is the header compilable?
10211- echo "$as_me:$LINENO: checkinggssapi/gssapi.h usability" >&5
10212- echo $ECHO_N "checkinggssapi/gssapi.h usability... $ECHO_C" >&6
10215+ echo "$as_me:$LINENO: checking$ac_header usability" >&5
10216+ echo $ECHO_N "checking$ac_header usability... $ECHO_C" >&6
1021310217cat >conftest.$ac_ext <<_ACEOF
1021410218/* confdefs.h. */
1021510219_ACEOF
1021610220cat confdefs.h >>conftest.$ac_ext
1021710221cat >>conftest.$ac_ext <<_ACEOF
1021810222/* end confdefs.h. */
1021910223$ac_includes_default
10220- #include <gssapi/gssapi.h >
10224+ #include <$ac_header >
1022110225_ACEOF
1022210226rm -f conftest.$ac_objext
1022310227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
@@ -10253,15 +10257,15 @@ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
1025310257echo "${ECHO_T}$ac_header_compiler" >&6
1025410258
1025510259# Is the header present?
10256- echo "$as_me:$LINENO: checkinggssapi/gssapi.h presence" >&5
10257- echo $ECHO_N "checkinggssapi/gssapi.h presence... $ECHO_C" >&6
10260+ echo "$as_me:$LINENO: checking$ac_header presence" >&5
10261+ echo $ECHO_N "checking$ac_header presence... $ECHO_C" >&6
1025810262cat >conftest.$ac_ext <<_ACEOF
1025910263/* confdefs.h. */
1026010264_ACEOF
1026110265cat confdefs.h >>conftest.$ac_ext
1026210266cat >>conftest.$ac_ext <<_ACEOF
1026310267/* end confdefs.h. */
10264- #include <gssapi/gssapi.h >
10268+ #include <$ac_header >
1026510269_ACEOF
1026610270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1026710271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -10295,25 +10299,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6
1029510299# So? What about this header?
1029610300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
1029710301 yes:no: )
10298- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : accepted by the compiler, rejected by the preprocessor!" >&5
10299- echo "$as_me: WARNING:gssapi/gssapi.h : accepted by the compiler, rejected by the preprocessor!" >&2;}
10300- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : proceeding with the compiler's result" >&5
10301- echo "$as_me: WARNING:gssapi/gssapi.h : proceeding with the compiler's result" >&2;}
10302+ { echo "$as_me:$LINENO: WARNING:$ac_header : accepted by the compiler, rejected by the preprocessor!" >&5
10303+ echo "$as_me: WARNING:$ac_header : accepted by the compiler, rejected by the preprocessor!" >&2;}
10304+ { echo "$as_me:$LINENO: WARNING:$ac_header : proceeding with the compiler's result" >&5
10305+ echo "$as_me: WARNING:$ac_header : proceeding with the compiler's result" >&2;}
1030210306 ac_header_preproc=yes
1030310307 ;;
1030410308 no:yes:* )
10305- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : present but cannot be compiled" >&5
10306- echo "$as_me: WARNING:gssapi/gssapi.h : present but cannot be compiled" >&2;}
10307- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : check for missing prerequisite headers?" >&5
10308- echo "$as_me: WARNING:gssapi/gssapi.h : check for missing prerequisite headers?" >&2;}
10309- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : see the Autoconf documentation" >&5
10310- echo "$as_me: WARNING:gssapi/gssapi.h : see the Autoconf documentation" >&2;}
10311- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : section \"Present But Cannot Be Compiled\"" >&5
10312- echo "$as_me: WARNING:gssapi/gssapi.h : section \"Present But Cannot Be Compiled\"" >&2;}
10313- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : proceeding with the preprocessor's result" >&5
10314- echo "$as_me: WARNING:gssapi/gssapi.h : proceeding with the preprocessor's result" >&2;}
10315- { echo "$as_me:$LINENO: WARNING:gssapi/gssapi.h : in the future, the compiler will take precedence" >&5
10316- echo "$as_me: WARNING:gssapi/gssapi.h : in the future, the compiler will take precedence" >&2;}
10309+ { echo "$as_me:$LINENO: WARNING:$ac_header : present but cannot be compiled" >&5
10310+ echo "$as_me: WARNING:$ac_header : present but cannot be compiled" >&2;}
10311+ { echo "$as_me:$LINENO: WARNING:$ac_header : check for missing prerequisite headers?" >&5
10312+ echo "$as_me: WARNING:$ac_header : check for missing prerequisite headers?" >&2;}
10313+ { echo "$as_me:$LINENO: WARNING:$ac_header : see the Autoconf documentation" >&5
10314+ echo "$as_me: WARNING:$ac_header : see the Autoconf documentation" >&2;}
10315+ { echo "$as_me:$LINENO: WARNING:$ac_header : section \"Present But Cannot Be Compiled\"" >&5
10316+ echo "$as_me: WARNING:$ac_header : section \"Present But Cannot Be Compiled\"" >&2;}
10317+ { echo "$as_me:$LINENO: WARNING:$ac_header : proceeding with the preprocessor's result" >&5
10318+ echo "$as_me: WARNING:$ac_header : proceeding with the preprocessor's result" >&2;}
10319+ { echo "$as_me:$LINENO: WARNING:$ac_header : in the future, the compiler will take precedence" >&5
10320+ echo "$as_me: WARNING:$ac_header : in the future, the compiler will take precedence" >&2;}
1031710321 (
1031810322 cat <<\_ASBOX
1031910323## ---------------------------------------- ##
@@ -10324,25 +10328,180 @@ _ASBOX
1032410328 sed "s/^/$as_me: WARNING: /" >&2
1032510329 ;;
1032610330esac
10327- echo "$as_me:$LINENO: checking forgssapi/gssapi.h " >&5
10328- echo $ECHO_N "checking forgssapi/gssapi.h ... $ECHO_C" >&6
10329- if test"${ac_cv_header_gssapi_gssapi_h +set}" = set; then
10331+ echo "$as_me:$LINENO: checking for$ac_header " >&5
10332+ echo $ECHO_N "checking for$ac_header ... $ECHO_C" >&6
10333+ ifeval " test\"\${$as_ac_Header +set}\ " = set" ; then
1033010334 echo $ECHO_N "(cached) $ECHO_C" >&6
1033110335else
10332- ac_cv_header_gssapi_gssapi_h= $ac_header_preproc
10336+ eval "$as_ac_Header=\ $ac_header_preproc"
1033310337fi
10334- echo "$as_me:$LINENO: result:$ac_cv_header_gssapi_gssapi_h " >&5
10335- echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h " >&6
10338+ echo "$as_me:$LINENO: result:`eval echo '${'$as_ac_Header'}'` " >&5
10339+ echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'` " >&6
1033610340
1033710341fi
10338- if test $ac_cv_header_gssapi_gssapi_h = yes; then
10339- :
10342+ if test `eval echo '${'$as_ac_Header'}'` = yes; then
10343+ cat >>confdefs.h <<_ACEOF
10344+ #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10345+ _ACEOF
10346+
10347+ else
10348+
10349+ for ac_header in gssapi.h
10350+ do
10351+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10352+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
10353+ echo "$as_me:$LINENO: checking for $ac_header" >&5
10354+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10355+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
10356+ echo $ECHO_N "(cached) $ECHO_C" >&6
10357+ fi
10358+ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10359+ echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10360+ else
10361+ # Is the header compilable?
10362+ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10363+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10364+ cat >conftest.$ac_ext <<_ACEOF
10365+ /* confdefs.h. */
10366+ _ACEOF
10367+ cat confdefs.h >>conftest.$ac_ext
10368+ cat >>conftest.$ac_ext <<_ACEOF
10369+ /* end confdefs.h. */
10370+ $ac_includes_default
10371+ #include <$ac_header>
10372+ _ACEOF
10373+ rm -f conftest.$ac_objext
10374+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375+ (eval $ac_compile) 2>conftest.er1
10376+ ac_status=$?
10377+ grep -v '^ *+' conftest.er1 >conftest.err
10378+ rm -f conftest.er1
10379+ cat conftest.err >&5
10380+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381+ (exit $ac_status); } &&
10382+ { ac_try='test -z "$ac_c_werror_flag"
10383+ || test ! -s conftest.err'
10384+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385+ (eval $ac_try) 2>&5
10386+ ac_status=$?
10387+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388+ (exit $ac_status); }; } &&
10389+ { ac_try='test -s conftest.$ac_objext'
10390+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391+ (eval $ac_try) 2>&5
10392+ ac_status=$?
10393+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394+ (exit $ac_status); }; }; then
10395+ ac_header_compiler=yes
10396+ else
10397+ echo "$as_me: failed program was:" >&5
10398+ sed 's/^/| /' conftest.$ac_ext >&5
10399+
10400+ ac_header_compiler=no
10401+ fi
10402+ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403+ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10404+ echo "${ECHO_T}$ac_header_compiler" >&6
10405+
10406+ # Is the header present?
10407+ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10408+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10409+ cat >conftest.$ac_ext <<_ACEOF
10410+ /* confdefs.h. */
10411+ _ACEOF
10412+ cat confdefs.h >>conftest.$ac_ext
10413+ cat >>conftest.$ac_ext <<_ACEOF
10414+ /* end confdefs.h. */
10415+ #include <$ac_header>
10416+ _ACEOF
10417+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419+ ac_status=$?
10420+ grep -v '^ *+' conftest.er1 >conftest.err
10421+ rm -f conftest.er1
10422+ cat conftest.err >&5
10423+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424+ (exit $ac_status); } >/dev/null; then
10425+ if test -s conftest.err; then
10426+ ac_cpp_err=$ac_c_preproc_warn_flag
10427+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10428+ else
10429+ ac_cpp_err=
10430+ fi
10431+ else
10432+ ac_cpp_err=yes
10433+ fi
10434+ if test -z "$ac_cpp_err"; then
10435+ ac_header_preproc=yes
1034010436else
10341- { { echo "$as_me:$LINENO: error: header file <gssapi/gssapi.h> is required for GSSAPI" >&5
10342- echo "$as_me: error: header file <gssapi/gssapi.h> is required for GSSAPI" >&2;}
10437+ echo "$as_me: failed program was:" >&5
10438+ sed 's/^/| /' conftest.$ac_ext >&5
10439+
10440+ ac_header_preproc=no
10441+ fi
10442+ rm -f conftest.err conftest.$ac_ext
10443+ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10444+ echo "${ECHO_T}$ac_header_preproc" >&6
10445+
10446+ # So? What about this header?
10447+ case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10448+ yes:no: )
10449+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10450+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10451+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10452+ echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10453+ ac_header_preproc=yes
10454+ ;;
10455+ no:yes:* )
10456+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10457+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10458+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10459+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10460+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10461+ echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10462+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10463+ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10464+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10465+ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10466+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10467+ echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10468+ (
10469+ cat <<\_ASBOX
10470+ ## ---------------------------------------- ##
10471+ ## Report this to pgsql-bugs@postgresql.org ##
10472+ ## ---------------------------------------- ##
10473+ _ASBOX
10474+ ) |
10475+ sed "s/^/$as_me: WARNING: /" >&2
10476+ ;;
10477+ esac
10478+ echo "$as_me:$LINENO: checking for $ac_header" >&5
10479+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481+ echo $ECHO_N "(cached) $ECHO_C" >&6
10482+ else
10483+ eval "$as_ac_Header=\$ac_header_preproc"
10484+ fi
10485+ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486+ echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487+
10488+ fi
10489+ if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490+ cat >>confdefs.h <<_ACEOF
10491+ #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492+ _ACEOF
10493+
10494+ else
10495+ { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10496+ echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
1034310497 { (exit 1); exit 1; }; }
1034410498fi
1034510499
10500+ done
10501+
10502+ fi
10503+
10504+ done
1034610505
1034710506fi
1034810507