|
|
bfd35c |
diff -up ./configure.in.sql ./configure.in
|
|
|
bfd35c |
--- ./configure.in.sql 2013-11-14 13:19:19.231000002 +0100
|
|
|
bfd35c |
+++ ./configure.in 2013-11-14 14:10:44.728997789 +0100
|
|
|
bfd35c |
@@ -729,7 +729,18 @@ LIB_MYSQL=""
|
|
|
bfd35c |
|
|
|
bfd35c |
case "$with_mysql" in
|
|
|
bfd35c |
no) true;;
|
|
|
bfd35c |
- notfound) AC_WARN([MySQL Library not found]); true;;
|
|
|
bfd35c |
+ notfound)
|
|
|
bfd35c |
+ save_LDFLAGS=$LDFLAGS
|
|
|
bfd35c |
+ LIB_MYSQL=`mysql_config --libs`
|
|
|
bfd35c |
+ LIB_MYSQL="-lmysqlclient"
|
|
|
bfd35c |
+ LDFLAGS="$LDFLAGS $LIB_MYSQL"
|
|
|
bfd35c |
+ # CPPFLAGS="${CPPFLAGS} `mysql_config --include`"
|
|
|
bfd35c |
+ AC_CHECK_LIB(mysqlclient, mysql_select_db,
|
|
|
bfd35c |
+ AC_DEFINE(HAVE_MYSQL, [], [Do we have mysql support?]),
|
|
|
bfd35c |
+ [AC_WARN([MySQL library mysqlclient does not work])
|
|
|
bfd35c |
+ with_mysql=no])
|
|
|
bfd35c |
+ LDFLAGS=$save_LDFLAGS
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
*)
|
|
|
bfd35c |
if test -d ${with_mysql}/lib/mysql; then
|
|
|
bfd35c |
CMU_ADD_LIBPATH_TO(${with_mysql}/lib/mysql, LIB_MYSQL)
|
|
|
bfd35c |
@@ -750,6 +761,8 @@ case "$with_mysql" in
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
|
|
|
bfd35c |
elif test -d ${with_mysql}/include; then
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
|
|
|
bfd35c |
+ elif test -d ${prefix}/include/mysql; then
|
|
|
bfd35c |
+ CPPFLAGS="${CPPFLAGS} -I${prefix}/include/mysql"
|
|
|
bfd35c |
else
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
@@ -793,7 +806,17 @@ LIB_PGSQL=""
|
|
|
bfd35c |
|
|
|
bfd35c |
case "$with_pgsql" in
|
|
|
bfd35c |
no) true;;
|
|
|
bfd35c |
- notfound) AC_WARN([PostgreSQL Library not found]); true;;
|
|
|
bfd35c |
+ notfound)
|
|
|
bfd35c |
+ LIB_PGSQL="-lpq"
|
|
|
bfd35c |
+ # CPPFLAGS="${CPPFLAGS} -I`pg_config --includedir`"
|
|
|
bfd35c |
+ save_LDFLAGS=$LDFLAGS
|
|
|
bfd35c |
+ LDFLAGS="$LDFLAGS $LIB_PGSQL"
|
|
|
bfd35c |
+ AC_CHECK_LIB(pq, PQsetdbLogin, AC_DEFINE(HAVE_PGSQL,[],
|
|
|
bfd35c |
+ [Do we have Postgres support?]),
|
|
|
bfd35c |
+ [AC_WARN([PostgreSQL Library pq does not work])
|
|
|
bfd35c |
+ with_pgsql=no])
|
|
|
bfd35c |
+ LDFLAGS=$save_LDFLAGS
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
*)
|
|
|
bfd35c |
if test -d ${with_pgsql}/lib/pgsql; then
|
|
|
bfd35c |
CMU_ADD_LIBPATH_TO(${with_pgsql}/lib/pgsql, LIB_PGSQL)
|
|
|
bfd35c |
@@ -814,6 +837,8 @@ case "$with_pgsql" in
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
|
|
|
bfd35c |
elif test -d ${with_pgsql}/include; then
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
|
|
|
bfd35c |
+ elif test -d ${prefix}/include; then
|
|
|
bfd35c |
+ CPPFLAGS="${CPPFLAGS} -I${prefix}/include"
|
|
|
bfd35c |
else
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
diff -up ./configure.sql ./configure
|
|
|
bfd35c |
--- ./configure.sql 2013-11-14 13:19:19.177000002 +0100
|
|
|
bfd35c |
+++ ./configure 2013-11-14 14:10:50.848000001 +0100
|
|
|
bfd35c |
@@ -4340,116 +4340,8 @@ $as_echo "$ac_cv___attribute__" >&6; }
|
|
|
bfd35c |
|
|
|
bfd35c |
|
|
|
bfd35c |
# CMU GUESS RUNPATH SWITCH
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: checking for runpath switch" >&5
|
|
|
bfd35c |
-$as_echo_n "checking for runpath switch... " >&6; }
|
|
|
bfd35c |
-if test "${andrew_cv_runpath_switch+set}" = set; then
|
|
|
bfd35c |
- $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
-else
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- # first, try -R
|
|
|
bfd35c |
- SAVE_LDFLAGS="${LDFLAGS}"
|
|
|
bfd35c |
- LDFLAGS="-R /usr/lib"
|
|
|
bfd35c |
- cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
-/* confdefs.h. */
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
-cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
-/* end confdefs.h. */
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-int
|
|
|
bfd35c |
-main ()
|
|
|
bfd35c |
-{
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- ;
|
|
|
bfd35c |
- return 0;
|
|
|
bfd35c |
-}
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
-if { (ac_try="$ac_link"
|
|
|
bfd35c |
-case "(($ac_try" in
|
|
|
bfd35c |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
- *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
-esac
|
|
|
bfd35c |
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
-$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
- ac_status=$?
|
|
|
bfd35c |
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
- rm -f conftest.er1
|
|
|
bfd35c |
- cat conftest.err >&5
|
|
|
bfd35c |
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
- (exit $ac_status); } && {
|
|
|
bfd35c |
- test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
- test ! -s conftest.err
|
|
|
bfd35c |
- } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
- test "$cross_compiling" = yes ||
|
|
|
bfd35c |
- $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
- }; then
|
|
|
bfd35c |
- andrew_cv_runpath_switch="-R"
|
|
|
bfd35c |
-else
|
|
|
bfd35c |
- $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- LDFLAGS="-Wl,-rpath,/usr/lib"
|
|
|
bfd35c |
- cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
-/* confdefs.h. */
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
-cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
-/* end confdefs.h. */
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-int
|
|
|
bfd35c |
-main ()
|
|
|
bfd35c |
-{
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- ;
|
|
|
bfd35c |
- return 0;
|
|
|
bfd35c |
-}
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
-if { (ac_try="$ac_link"
|
|
|
bfd35c |
-case "(($ac_try" in
|
|
|
bfd35c |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
- *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
-esac
|
|
|
bfd35c |
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
-$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
- ac_status=$?
|
|
|
bfd35c |
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
- rm -f conftest.er1
|
|
|
bfd35c |
- cat conftest.err >&5
|
|
|
bfd35c |
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
- (exit $ac_status); } && {
|
|
|
bfd35c |
- test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
- test ! -s conftest.err
|
|
|
bfd35c |
- } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
- test "$cross_compiling" = yes ||
|
|
|
bfd35c |
- $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
- }; then
|
|
|
bfd35c |
- andrew_cv_runpath_switch="-Wl,-rpath,"
|
|
|
bfd35c |
-else
|
|
|
bfd35c |
- $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- andrew_cv_runpath_switch="none"
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-rm -rf conftest.dSYM
|
|
|
bfd35c |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
- conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-rm -rf conftest.dSYM
|
|
|
bfd35c |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
- conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
- LDFLAGS="${SAVE_LDFLAGS}"
|
|
|
bfd35c |
+ andrew_runpath_switch="none"
|
|
|
bfd35c |
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-{ $as_echo "$as_me:$LINENO: result: $andrew_cv_runpath_switch" >&5
|
|
|
bfd35c |
-$as_echo "$andrew_cv_runpath_switch" >&6; }
|
|
|
bfd35c |
|
|
|
bfd35c |
|
|
|
bfd35c |
# Check whether --with-staticsasl was given.
|
|
|
bfd35c |
@@ -4784,7 +4676,7 @@ test x"$silent" = xyes && libtool_flags=
|
|
|
bfd35c |
case "$lt_target" in
|
|
|
bfd35c |
*-*-irix6*)
|
|
|
bfd35c |
# Find out which ABI we are using.
|
|
|
bfd35c |
- echo '#line 4787 "configure"' > conftest.$ac_ext
|
|
|
bfd35c |
+ echo '#line 4679 "configure"' > conftest.$ac_ext
|
|
|
bfd35c |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
bfd35c |
(eval $ac_compile) 2>&5
|
|
|
bfd35c |
ac_status=$?
|
|
|
bfd35c |
@@ -11239,7 +11131,6 @@ $as_echo "$cyrus_krbinclude" >&6; }
|
|
|
bfd35c |
if test -n "${cyrus_krbinclude}"; then
|
|
|
bfd35c |
CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
- LDFLAGS="$LDFLAGS -L$krb4/lib"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
|
|
|
bfd35c |
if test "$with_des" != no; then
|
|
|
bfd35c |
@@ -13467,69 +13358,43 @@ _ACEOF
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
done
|
|
|
bfd35c |
|
|
|
bfd35c |
+ if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then
|
|
|
bfd35c |
|
|
|
bfd35c |
-for ac_func in gss_decapsulate_token
|
|
|
bfd35c |
+for ac_header in gssapi/gssapi_krb5.h
|
|
|
bfd35c |
do
|
|
|
bfd35c |
-as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
-{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
-$as_echo_n "checking for $ac_func... " >&6; }
|
|
|
bfd35c |
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
|
bfd35c |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for $ac_header... " >&6; }
|
|
|
bfd35c |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
$as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
|
bfd35c |
+ $as_echo "$as_val"'`
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
bfd35c |
+$as_echo "$ac_res" >&6; }
|
|
|
bfd35c |
else
|
|
|
bfd35c |
- cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+ # Is the header compilable?
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
|
bfd35c |
+$as_echo_n "checking $ac_header usability... " >&6; }
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* confdefs.h. */
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* end confdefs.h. */
|
|
|
bfd35c |
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
|
bfd35c |
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
bfd35c |
-#define $ac_func innocuous_$ac_func
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-/* System header to define __stub macros and hopefully few prototypes,
|
|
|
bfd35c |
- which can conflict with char $ac_func (); below.
|
|
|
bfd35c |
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
bfd35c |
- <limits.h> exists even on freestanding compilers. */
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-#ifdef __STDC__
|
|
|
bfd35c |
-# include <limits.h>
|
|
|
bfd35c |
-#else
|
|
|
bfd35c |
-# include <assert.h>
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-#undef $ac_func
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
- Use char because int might match the return type of a GCC
|
|
|
bfd35c |
- builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
-#ifdef __cplusplus
|
|
|
bfd35c |
-extern "C"
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-char $ac_func ();
|
|
|
bfd35c |
-/* The GNU C library defines this for functions which it implements
|
|
|
bfd35c |
- to always fail with ENOSYS. Some functions are actually named
|
|
|
bfd35c |
- something starting with __ and the normal name is an alias. */
|
|
|
bfd35c |
-#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
|
bfd35c |
-choke me
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-int
|
|
|
bfd35c |
-main ()
|
|
|
bfd35c |
-{
|
|
|
bfd35c |
-return $ac_func ();
|
|
|
bfd35c |
- ;
|
|
|
bfd35c |
- return 0;
|
|
|
bfd35c |
-}
|
|
|
bfd35c |
+$ac_includes_default
|
|
|
bfd35c |
+#include <$ac_header>
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
-if { (ac_try="$ac_link"
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
case "(($ac_try" in
|
|
|
bfd35c |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
*) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
esac
|
|
|
bfd35c |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
ac_status=$?
|
|
|
bfd35c |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
rm -f conftest.er1
|
|
|
bfd35c |
@@ -13538,139 +13403,178 @@ $as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
(exit $ac_status); } && {
|
|
|
bfd35c |
test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
test ! -s conftest.err
|
|
|
bfd35c |
- } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
- test "$cross_compiling" = yes ||
|
|
|
bfd35c |
- $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
- }; then
|
|
|
bfd35c |
- eval "$as_ac_var=yes"
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ ac_header_compiler=yes
|
|
|
bfd35c |
else
|
|
|
bfd35c |
$as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
|
|
|
bfd35c |
- eval "$as_ac_var=no"
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-rm -rf conftest.dSYM
|
|
|
bfd35c |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
- conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
- $as_echo "$as_val"'`
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
bfd35c |
-$as_echo "$ac_res" >&6; }
|
|
|
bfd35c |
-as_val=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
- $as_echo "$as_val"'`
|
|
|
bfd35c |
- if test "x$as_val" = x""yes; then
|
|
|
bfd35c |
- cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-
|
|
|
bfd35c |
+ ac_header_compiler=no
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
-done
|
|
|
bfd35c |
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
|
bfd35c |
+$as_echo "$ac_header_compiler" >&6; }
|
|
|
bfd35c |
|
|
|
bfd35c |
-for ac_func in gss_encapsulate_token
|
|
|
bfd35c |
-do
|
|
|
bfd35c |
-as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
-{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
-$as_echo_n "checking for $ac_func... " >&6; }
|
|
|
bfd35c |
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
- $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
-else
|
|
|
bfd35c |
- cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+# Is the header present?
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
|
bfd35c |
+$as_echo_n "checking $ac_header presence... " >&6; }
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* confdefs.h. */
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* end confdefs.h. */
|
|
|
bfd35c |
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
|
bfd35c |
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
bfd35c |
-#define $ac_func innocuous_$ac_func
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-/* System header to define __stub macros and hopefully few prototypes,
|
|
|
bfd35c |
- which can conflict with char $ac_func (); below.
|
|
|
bfd35c |
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
bfd35c |
- <limits.h> exists even on freestanding compilers. */
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-#ifdef __STDC__
|
|
|
bfd35c |
-# include <limits.h>
|
|
|
bfd35c |
-#else
|
|
|
bfd35c |
-# include <assert.h>
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-#undef $ac_func
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
- Use char because int might match the return type of a GCC
|
|
|
bfd35c |
- builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
-#ifdef __cplusplus
|
|
|
bfd35c |
-extern "C"
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-char $ac_func ();
|
|
|
bfd35c |
-/* The GNU C library defines this for functions which it implements
|
|
|
bfd35c |
- to always fail with ENOSYS. Some functions are actually named
|
|
|
bfd35c |
- something starting with __ and the normal name is an alias. */
|
|
|
bfd35c |
-#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
|
bfd35c |
-choke me
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-int
|
|
|
bfd35c |
-main ()
|
|
|
bfd35c |
-{
|
|
|
bfd35c |
-return $ac_func ();
|
|
|
bfd35c |
- ;
|
|
|
bfd35c |
- return 0;
|
|
|
bfd35c |
-}
|
|
|
bfd35c |
+#include <$ac_header>
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
-if { (ac_try="$ac_link"
|
|
|
bfd35c |
+if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
bfd35c |
case "(($ac_try" in
|
|
|
bfd35c |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
*) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
esac
|
|
|
bfd35c |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
bfd35c |
ac_status=$?
|
|
|
bfd35c |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
rm -f conftest.er1
|
|
|
bfd35c |
cat conftest.err >&5
|
|
|
bfd35c |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
- (exit $ac_status); } && {
|
|
|
bfd35c |
- test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ (exit $ac_status); } >/dev/null && {
|
|
|
bfd35c |
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
bfd35c |
test ! -s conftest.err
|
|
|
bfd35c |
- } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
- test "$cross_compiling" = yes ||
|
|
|
bfd35c |
- $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
}; then
|
|
|
bfd35c |
- eval "$as_ac_var=yes"
|
|
|
bfd35c |
+ ac_header_preproc=yes
|
|
|
bfd35c |
else
|
|
|
bfd35c |
$as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
|
|
|
bfd35c |
- eval "$as_ac_var=no"
|
|
|
bfd35c |
+ ac_header_preproc=no
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
|
|
|
bfd35c |
-rm -rf conftest.dSYM
|
|
|
bfd35c |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
- conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
+rm -f conftest.err conftest.$ac_ext
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
|
bfd35c |
+$as_echo "$ac_header_preproc" >&6; }
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+# So? What about this header?
|
|
|
bfd35c |
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
|
bfd35c |
+ yes:no: )
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
|
bfd35c |
+ ac_header_preproc=yes
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
+ no:yes:* )
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for $ac_header... " >&6; }
|
|
|
bfd35c |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ eval "$as_ac_Header=\$ac_header_preproc"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
-ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
|
bfd35c |
$as_echo "$as_val"'`
|
|
|
bfd35c |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
bfd35c |
$as_echo "$ac_res" >&6; }
|
|
|
bfd35c |
-as_val=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+as_val=`eval 'as_val=${'$as_ac_Header'}
|
|
|
bfd35c |
$as_echo "$as_val"'`
|
|
|
bfd35c |
if test "x$as_val" = x""yes; then
|
|
|
bfd35c |
cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
|
bfd35c |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
done
|
|
|
bfd35c |
|
|
|
bfd35c |
+ if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking whether gsskrb5_register_acceptor_identity is declared" >&5
|
|
|
bfd35c |
+$as_echo_n "checking whether gsskrb5_register_acceptor_identity is declared... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_have_decl_gsskrb5_register_acceptor_identity+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ $ac_includes_default
|
|
|
bfd35c |
+ #include <gssapi/gssapi_krb5.h>
|
|
|
bfd35c |
|
|
|
bfd35c |
-for ac_func in gss_oid_equal
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+#ifndef gsskrb5_register_acceptor_identity
|
|
|
bfd35c |
+ (void) gsskrb5_register_acceptor_identity;
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ ac_cv_have_decl_gsskrb5_register_acceptor_identity=yes
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_have_decl_gsskrb5_register_acceptor_identity=no
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gsskrb5_register_acceptor_identity" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_have_decl_gsskrb5_register_acceptor_identity" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_have_decl_gsskrb5_register_acceptor_identity" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
+#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+for ac_func in gss_decapsulate_token
|
|
|
bfd35c |
do
|
|
|
bfd35c |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
@@ -13770,12 +13674,8 @@ _ACEOF
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
done
|
|
|
bfd35c |
|
|
|
bfd35c |
- LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- cmu_save_LIBS="$LIBS"
|
|
|
bfd35c |
- LIBS="$LIBS $GSSAPIBASE_LIBS"
|
|
|
bfd35c |
|
|
|
bfd35c |
-for ac_func in gss_get_name_attribute
|
|
|
bfd35c |
+for ac_func in gss_encapsulate_token
|
|
|
bfd35c |
do
|
|
|
bfd35c |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
@@ -13875,20 +13775,14 @@ _ACEOF
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
done
|
|
|
bfd35c |
|
|
|
bfd35c |
- LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
|
|
|
bfd35c |
- cmu_save_LIBS="$LIBS"
|
|
|
bfd35c |
- LIBS="$LIBS $GSSAPIBASE_LIBS"
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5
|
|
|
bfd35c |
-$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
|
|
|
bfd35c |
- if test "$cross_compiling" = yes; then
|
|
|
bfd35c |
- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
|
bfd35c |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
|
bfd35c |
-{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
|
|
bfd35c |
-See \`config.log' for more details." >&5
|
|
|
bfd35c |
-$as_echo "$as_me: error: cannot run test program while cross compiling
|
|
|
bfd35c |
-See \`config.log' for more details." >&2;}
|
|
|
bfd35c |
- { (exit 1); exit 1; }; }; }
|
|
|
bfd35c |
+for ac_func in gss_oid_equal
|
|
|
bfd35c |
+do
|
|
|
bfd35c |
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for $ac_func... " >&6; }
|
|
|
bfd35c |
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
else
|
|
|
bfd35c |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* confdefs.h. */
|
|
|
bfd35c |
@@ -13896,30 +13790,46 @@ _ACEOF
|
|
|
bfd35c |
cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
/* end confdefs.h. */
|
|
|
bfd35c |
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
|
bfd35c |
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
bfd35c |
+#define $ac_func innocuous_$ac_func
|
|
|
bfd35c |
|
|
|
bfd35c |
-#ifdef HAVE_GSSAPI_H
|
|
|
bfd35c |
-#include <gssapi.h>
|
|
|
bfd35c |
+/* System header to define __stub macros and hopefully few prototypes,
|
|
|
bfd35c |
+ which can conflict with char $ac_func (); below.
|
|
|
bfd35c |
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
bfd35c |
+ <limits.h> exists even on freestanding compilers. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef __STDC__
|
|
|
bfd35c |
+# include <limits.h>
|
|
|
bfd35c |
#else
|
|
|
bfd35c |
-#include <gssapi/gssapi.h>
|
|
|
bfd35c |
+# include <assert.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
|
|
|
bfd35c |
-int main(void)
|
|
|
bfd35c |
-{
|
|
|
bfd35c |
- gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
|
|
|
bfd35c |
- gss_OID_set mech_set;
|
|
|
bfd35c |
- OM_uint32 min_stat;
|
|
|
bfd35c |
- int have_spnego = 0;
|
|
|
bfd35c |
+#undef $ac_func
|
|
|
bfd35c |
|
|
|
bfd35c |
- if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
|
|
|
bfd35c |
- gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
|
|
|
bfd35c |
- gss_release_oid_set(&min_stat, &mech_set);
|
|
|
bfd35c |
- }
|
|
|
bfd35c |
+/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
+ Use char because int might match the return type of a GCC
|
|
|
bfd35c |
+ builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
+#ifdef __cplusplus
|
|
|
bfd35c |
+extern "C"
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+char $ac_func ();
|
|
|
bfd35c |
+/* The GNU C library defines this for functions which it implements
|
|
|
bfd35c |
+ to always fail with ENOSYS. Some functions are actually named
|
|
|
bfd35c |
+ something starting with __ and the normal name is an alias. */
|
|
|
bfd35c |
+#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
|
bfd35c |
+choke me
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
|
|
|
bfd35c |
- return (!have_spnego); // 0 = success, 1 = failure
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+return $ac_func ();
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
}
|
|
|
bfd35c |
-
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
-rm -f conftest$ac_exeext
|
|
|
bfd35c |
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
if { (ac_try="$ac_link"
|
|
|
bfd35c |
case "(($ac_try" in
|
|
|
bfd35c |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
@@ -13927,63 +13837,259 @@ case "(($ac_try" in
|
|
|
bfd35c |
esac
|
|
|
bfd35c |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_link") 2>&5
|
|
|
bfd35c |
- ac_status=$?
|
|
|
bfd35c |
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
|
bfd35c |
- { (case "(($ac_try" in
|
|
|
bfd35c |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
- *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
-esac
|
|
|
bfd35c |
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
-$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
- (eval "$ac_try") 2>&5
|
|
|
bfd35c |
+ (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
- (exit $ac_status); }; }; then
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
-#define HAVE_GSS_SPNEGO /**/
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
|
bfd35c |
-$as_echo "yes" >&6; }
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
+ test "$cross_compiling" = yes ||
|
|
|
bfd35c |
+ $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
+ }; then
|
|
|
bfd35c |
+ eval "$as_ac_var=yes"
|
|
|
bfd35c |
else
|
|
|
bfd35c |
- $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
bfd35c |
-$as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
|
|
|
bfd35c |
-( exit $ac_status )
|
|
|
bfd35c |
-{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
|
bfd35c |
-$as_echo "no" >&6; }
|
|
|
bfd35c |
+ eval "$as_ac_var=no"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
rm -rf conftest.dSYM
|
|
|
bfd35c |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
+ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+ $as_echo "$as_val"'`
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
bfd35c |
+$as_echo "$ac_res" >&6; }
|
|
|
bfd35c |
+as_val=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+ $as_echo "$as_val"'`
|
|
|
bfd35c |
+ if test "x$as_val" = x""yes; then
|
|
|
bfd35c |
+ cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-else
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: result: disabled" >&5
|
|
|
bfd35c |
-$as_echo "disabled" >&6; }
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
+done
|
|
|
bfd35c |
|
|
|
bfd35c |
+ LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
|
|
|
bfd35c |
+ cmu_save_LIBS="$LIBS"
|
|
|
bfd35c |
+ LIBS="$LIBS $GSSAPIBASE_LIBS"
|
|
|
bfd35c |
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-if test "$gssapi" != "no"; then
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
-#define STATIC_GSSAPIV2 /**/
|
|
|
bfd35c |
-_ACEOF
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- mutex_default="no"
|
|
|
bfd35c |
- if test "$gss_impl" = "mit"; then
|
|
|
bfd35c |
- mutex_default="yes"
|
|
|
bfd35c |
- fi
|
|
|
bfd35c |
- { $as_echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
|
|
|
bfd35c |
-$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
|
|
|
bfd35c |
+for ac_func in gss_get_name_attribute
|
|
|
bfd35c |
+do
|
|
|
bfd35c |
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for $ac_func... " >&6; }
|
|
|
bfd35c |
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
|
bfd35c |
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
bfd35c |
+#define $ac_func innocuous_$ac_func
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+/* System header to define __stub macros and hopefully few prototypes,
|
|
|
bfd35c |
+ which can conflict with char $ac_func (); below.
|
|
|
bfd35c |
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
bfd35c |
+ <limits.h> exists even on freestanding compilers. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef __STDC__
|
|
|
bfd35c |
+# include <limits.h>
|
|
|
bfd35c |
+#else
|
|
|
bfd35c |
+# include <assert.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#undef $ac_func
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
+ Use char because int might match the return type of a GCC
|
|
|
bfd35c |
+ builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
+#ifdef __cplusplus
|
|
|
bfd35c |
+extern "C"
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+char $ac_func ();
|
|
|
bfd35c |
+/* The GNU C library defines this for functions which it implements
|
|
|
bfd35c |
+ to always fail with ENOSYS. Some functions are actually named
|
|
|
bfd35c |
+ something starting with __ and the normal name is an alias. */
|
|
|
bfd35c |
+#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
|
bfd35c |
+choke me
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+return $ac_func ();
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
+if { (ac_try="$ac_link"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
+ test "$cross_compiling" = yes ||
|
|
|
bfd35c |
+ $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
+ }; then
|
|
|
bfd35c |
+ eval "$as_ac_var=yes"
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ eval "$as_ac_var=no"
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -rf conftest.dSYM
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+ $as_echo "$as_val"'`
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
bfd35c |
+$as_echo "$ac_res" >&6; }
|
|
|
bfd35c |
+as_val=`eval 'as_val=${'$as_ac_var'}
|
|
|
bfd35c |
+ $as_echo "$as_val"'`
|
|
|
bfd35c |
+ if test "x$as_val" = x""yes; then
|
|
|
bfd35c |
+ cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+done
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ cmu_save_LIBS="$LIBS"
|
|
|
bfd35c |
+ LIBS="$LIBS $GSSAPIBASE_LIBS"
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
|
|
|
bfd35c |
+ if test "$cross_compiling" = yes; then
|
|
|
bfd35c |
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
|
bfd35c |
+{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
|
|
bfd35c |
+See \`config.log' for more details." >&5
|
|
|
bfd35c |
+$as_echo "$as_me: error: cannot run test program while cross compiling
|
|
|
bfd35c |
+See \`config.log' for more details." >&2;}
|
|
|
bfd35c |
+ { (exit 1); exit 1; }; }; }
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_GSSAPI_H
|
|
|
bfd35c |
+#include <gssapi.h>
|
|
|
bfd35c |
+#else
|
|
|
bfd35c |
+#include <gssapi/gssapi.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int main(void)
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+ gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
|
|
|
bfd35c |
+ gss_OID_set mech_set;
|
|
|
bfd35c |
+ OM_uint32 min_stat;
|
|
|
bfd35c |
+ int have_spnego = 0;
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
|
|
|
bfd35c |
+ gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
|
|
|
bfd35c |
+ gss_release_oid_set(&min_stat, &mech_set);
|
|
|
bfd35c |
+ }
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ return (!have_spnego); // 0 = success, 1 = failure
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest$ac_exeext
|
|
|
bfd35c |
+if { (ac_try="$ac_link"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_link") 2>&5
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
|
bfd35c |
+ { (case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_try") 2>&5
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); }; }; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
+#define HAVE_GSS_SPNEGO /**/
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
|
bfd35c |
+$as_echo "yes" >&6; }
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+( exit $ac_status )
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
|
bfd35c |
+$as_echo "no" >&6; }
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+rm -rf conftest.dSYM
|
|
|
bfd35c |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ LIBS="$cmu_save_LIBS"
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: result: disabled" >&5
|
|
|
bfd35c |
+$as_echo "disabled" >&6; }
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+if test "$gssapi" != "no"; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
+#define STATIC_GSSAPIV2 /**/
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ mutex_default="no"
|
|
|
bfd35c |
+ if test "$gss_impl" = "mit"; then
|
|
|
bfd35c |
+ mutex_default="yes"
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
|
|
|
bfd35c |
+$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
|
|
|
bfd35c |
# Check whether --enable-gss_mutexes was given.
|
|
|
bfd35c |
if test "${enable_gss_mutexes+set}" = set; then
|
|
|
bfd35c |
enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
|
|
|
bfd35c |
@@ -14246,44 +14352,127 @@ LIB_MYSQL=""
|
|
|
bfd35c |
|
|
|
bfd35c |
case "$with_mysql" in
|
|
|
bfd35c |
no) true;;
|
|
|
bfd35c |
- notfound) { $as_echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
|
|
|
bfd35c |
-$as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
|
|
|
bfd35c |
- *)
|
|
|
bfd35c |
- if test -d ${with_mysql}/lib/mysql; then
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
- if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
|
|
|
bfd35c |
- else
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql"
|
|
|
bfd35c |
- fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- elif test -d ${with_mysql}/mysql/lib; then
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
- if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
|
|
|
bfd35c |
- else
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib"
|
|
|
bfd35c |
- fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- elif test -d ${with_mysql}/lib; then
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
- if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
|
|
|
bfd35c |
- else
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib"
|
|
|
bfd35c |
- fi
|
|
|
bfd35c |
-
|
|
|
bfd35c |
- else
|
|
|
bfd35c |
+ notfound)
|
|
|
bfd35c |
+ save_LDFLAGS=$LDFLAGS
|
|
|
bfd35c |
+ LIB_MYSQL=`mysql_config --libs`
|
|
|
bfd35c |
+ LIB_MYSQL="-lmysqlclient"
|
|
|
bfd35c |
+ LDFLAGS="$LDFLAGS $LIB_MYSQL"
|
|
|
bfd35c |
+ # CPPFLAGS="${CPPFLAGS} `mysql_config --include`"
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
bfd35c |
+LIBS="-lmysqlclient $LIBS"
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
|
|
|
bfd35c |
- # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
- if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
|
|
|
bfd35c |
- else
|
|
|
bfd35c |
- LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}"
|
|
|
bfd35c |
- fi
|
|
|
bfd35c |
+/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
+ Use char because int might match the return type of a GCC
|
|
|
bfd35c |
+ builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
+#ifdef __cplusplus
|
|
|
bfd35c |
+extern "C"
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+char mysql_select_db ();
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+return mysql_select_db ();
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
+if { (ac_try="$ac_link"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
+ test "$cross_compiling" = yes ||
|
|
|
bfd35c |
+ $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
+ }; then
|
|
|
bfd35c |
+ ac_cv_lib_mysqlclient_mysql_select_db=yes
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_lib_mysqlclient_mysql_select_db=no
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -rf conftest.dSYM
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
+LIBS=$ac_check_lib_save_LIBS
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
+#define HAVE_MYSQL /**/
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
|
|
|
bfd35c |
+ with_mysql=no
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ LDFLAGS=$save_LDFLAGS
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
+ *)
|
|
|
bfd35c |
+ if test -d ${with_mysql}/lib/mysql; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
+ if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
|
|
|
bfd35c |
+ else
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql"
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ elif test -d ${with_mysql}/mysql/lib; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
+ if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
|
|
|
bfd35c |
+ else
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib"
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ elif test -d ${with_mysql}/lib; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
+ if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
|
|
|
bfd35c |
+ else
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib"
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ else
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ # this is CMU ADD LIBPATH TO
|
|
|
bfd35c |
+ if test "$andrew_cv_runpath_switch" = "none" ; then
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
|
|
|
bfd35c |
+ else
|
|
|
bfd35c |
+ LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}"
|
|
|
bfd35c |
+ fi
|
|
|
bfd35c |
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
|
|
|
bfd35c |
@@ -14296,6 +14485,8 @@ $as_echo "$as_me: WARNING: MySQL Library
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
|
|
|
bfd35c |
elif test -d ${with_mysql}/include; then
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
|
|
|
bfd35c |
+ elif test -d ${prefix}/include/mysql; then
|
|
|
bfd35c |
+ CPPFLAGS="${CPPFLAGS} -I${prefix}/include/mysql"
|
|
|
bfd35c |
else
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
@@ -14416,8 +14607,90 @@ LIB_PGSQL=""
|
|
|
bfd35c |
|
|
|
bfd35c |
case "$with_pgsql" in
|
|
|
bfd35c |
no) true;;
|
|
|
bfd35c |
- notfound) { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
|
|
|
bfd35c |
-$as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
|
|
|
bfd35c |
+ notfound)
|
|
|
bfd35c |
+ LIB_PGSQL="-lpq"
|
|
|
bfd35c |
+ # CPPFLAGS="${CPPFLAGS} -I`pg_config --includedir`"
|
|
|
bfd35c |
+ save_LDFLAGS=$LDFLAGS
|
|
|
bfd35c |
+ LDFLAGS="$LDFLAGS $LIB_PGSQL"
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
bfd35c |
+LIBS="-lpq $LIBS"
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+/* Override any GCC internal prototype to avoid an error.
|
|
|
bfd35c |
+ Use char because int might match the return type of a GCC
|
|
|
bfd35c |
+ builtin and then its argument prototype would still apply. */
|
|
|
bfd35c |
+#ifdef __cplusplus
|
|
|
bfd35c |
+extern "C"
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+char PQsetdbLogin ();
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+return PQsetdbLogin ();
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
bfd35c |
+if { (ac_try="$ac_link"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_link") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest$ac_exeext && {
|
|
|
bfd35c |
+ test "$cross_compiling" = yes ||
|
|
|
bfd35c |
+ $as_test_x conftest$ac_exeext
|
|
|
bfd35c |
+ }; then
|
|
|
bfd35c |
+ ac_cv_lib_pq_PQsetdbLogin=yes
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_lib_pq_PQsetdbLogin=no
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -rf conftest.dSYM
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
bfd35c |
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
bfd35c |
+LIBS=$ac_check_lib_save_LIBS
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_lib_pq_PQsetdbLogin" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<\_ACEOF
|
|
|
bfd35c |
+#define HAVE_PGSQL /**/
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
|
|
|
bfd35c |
+$as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
|
|
|
bfd35c |
+ with_pgsql=no
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ LDFLAGS=$save_LDFLAGS
|
|
|
bfd35c |
+ ;;
|
|
|
bfd35c |
*)
|
|
|
bfd35c |
if test -d ${with_pgsql}/lib/pgsql; then
|
|
|
bfd35c |
|
|
|
bfd35c |
@@ -14466,6 +14739,8 @@ $as_echo "$as_me: WARNING: PostgreSQL Li
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
|
|
|
bfd35c |
elif test -d ${with_pgsql}/include; then
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
|
|
|
bfd35c |
+ elif test -d ${prefix}/include; then
|
|
|
bfd35c |
+ CPPFLAGS="${CPPFLAGS} -I${prefix}/include"
|
|
|
bfd35c |
else
|
|
|
bfd35c |
CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
@@ -18166,116 +18441,989 @@ fi
|
|
|
bfd35c |
|
|
|
bfd35c |
done
|
|
|
bfd35c |
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "
|
|
|
bfd35c |
-#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
-#include <inttypes.h>
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_long_long" = xyes; then :
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_LONG_LONG 1
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for long long" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for long long... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_long_long+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_long_long=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_int8_t" = xyes; then :
|
|
|
bfd35c |
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_INT8_T 1
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (long long))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
|
|
|
bfd35c |
-#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
-#include <inttypes.h>
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_uint8_t" = xyes; then :
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_UINT8_T 1
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_int16_t" = xyes; then :
|
|
|
bfd35c |
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_INT16_T 1
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((long long)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
|
|
|
bfd35c |
-#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
-#include <inttypes.h>
|
|
|
bfd35c |
-#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_uint16_t" = xyes; then :
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_UINT16_T 1
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_long_long=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_long_long" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_long_long" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_LONG_LONG 1
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
|
|
|
bfd35c |
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for int8_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_int8_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_int8_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_int32_t" = xyes; then :
|
|
|
bfd35c |
|
|
|
bfd35c |
-cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_INT32_T 1
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (int8_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
|
|
|
bfd35c |
-
|
|
|
bfd35c |
-fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_uint32_t" = xyes; then :
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((int8_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_int8_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_int8_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_int8_t" = x""yes; then
|
|
|
bfd35c |
|
|
|
bfd35c |
cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_UINT32_T 1
|
|
|
bfd35c |
+#define HAVE_INT8_T 1
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
|
|
|
bfd35c |
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for uint8_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_uint8_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_uint8_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_int64_t" = xyes; then :
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (uint8_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((uint8_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_uint8_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_uint8_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_uint8_t" = x""yes; then
|
|
|
bfd35c |
|
|
|
bfd35c |
cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
-#define HAVE_INT64_T 1
|
|
|
bfd35c |
+#define HAVE_UINT8_T 1
|
|
|
bfd35c |
_ACEOF
|
|
|
bfd35c |
|
|
|
bfd35c |
|
|
|
bfd35c |
fi
|
|
|
bfd35c |
-ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for int16_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_int16_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_int16_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
#include <inttypes.h>
|
|
|
bfd35c |
#endif
|
|
|
bfd35c |
-"
|
|
|
bfd35c |
-if test "x$ac_cv_type_uint64_t" = xyes; then :
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (int16_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((int16_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_int16_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_int16_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_int16_t" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_INT16_T 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for uint16_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_uint16_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_uint16_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (uint16_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((uint16_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_uint16_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_uint16_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_uint16_t" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_UINT16_T 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for int32_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_int32_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_int32_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (int32_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((int32_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_int32_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_int32_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_int32_t" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_INT32_T 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for uint32_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_uint32_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_uint32_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (uint32_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((uint32_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_uint32_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_uint32_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_uint32_t" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_UINT32_T 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for int64_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_int64_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_int64_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (int64_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((int64_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_int64_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_int64_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_int64_t" = x""yes; then
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
+#define HAVE_INT64_T 1
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
|
|
|
bfd35c |
+$as_echo_n "checking for uint64_t... " >&6; }
|
|
|
bfd35c |
+if test "${ac_cv_type_uint64_t+set}" = set; then
|
|
|
bfd35c |
+ $as_echo_n "(cached) " >&6
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ ac_cv_type_uint64_t=no
|
|
|
bfd35c |
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof (uint64_t))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* confdefs.h. */
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+cat confdefs.h >>conftest.$ac_ext
|
|
|
bfd35c |
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
bfd35c |
+/* end confdefs.h. */
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+#ifdef HAVE_INTTYPES_H
|
|
|
bfd35c |
+#include <inttypes.h>
|
|
|
bfd35c |
+#endif
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+int
|
|
|
bfd35c |
+main ()
|
|
|
bfd35c |
+{
|
|
|
bfd35c |
+if (sizeof ((uint64_t)))
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+ ;
|
|
|
bfd35c |
+ return 0;
|
|
|
bfd35c |
+}
|
|
|
bfd35c |
+_ACEOF
|
|
|
bfd35c |
+rm -f conftest.$ac_objext
|
|
|
bfd35c |
+if { (ac_try="$ac_compile"
|
|
|
bfd35c |
+case "(($ac_try" in
|
|
|
bfd35c |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
bfd35c |
+ *) ac_try_echo=$ac_try;;
|
|
|
bfd35c |
+esac
|
|
|
bfd35c |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
bfd35c |
+$as_echo "$ac_try_echo") >&5
|
|
|
bfd35c |
+ (eval "$ac_compile") 2>conftest.er1
|
|
|
bfd35c |
+ ac_status=$?
|
|
|
bfd35c |
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
bfd35c |
+ rm -f conftest.er1
|
|
|
bfd35c |
+ cat conftest.err >&5
|
|
|
bfd35c |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
bfd35c |
+ (exit $ac_status); } && {
|
|
|
bfd35c |
+ test -z "$ac_c_werror_flag" ||
|
|
|
bfd35c |
+ test ! -s conftest.err
|
|
|
bfd35c |
+ } && test -s conftest.$ac_objext; then
|
|
|
bfd35c |
+ :
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+ ac_cv_type_uint64_t=yes
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+else
|
|
|
bfd35c |
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
bfd35c |
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+
|
|
|
bfd35c |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
bfd35c |
+fi
|
|
|
bfd35c |
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
|
|
|
bfd35c |
+$as_echo "$ac_cv_type_uint64_t" >&6; }
|
|
|
bfd35c |
+if test "x$ac_cv_type_uint64_t" = x""yes; then
|
|
|
bfd35c |
|
|
|
bfd35c |
cat >>confdefs.h <<_ACEOF
|
|
|
bfd35c |
#define HAVE_UINT64_T 1
|