diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2437 |
1 files changed, 2307 insertions, 130 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for wallet 1.3. +# Generated by GNU Autoconf 2.69 for wallet 1.4. # # Report bugs to <eagle@eyrie.org>. # @@ -580,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='wallet' PACKAGE_TARNAME='wallet' -PACKAGE_VERSION='1.3' -PACKAGE_STRING='wallet 1.3' +PACKAGE_VERSION='1.4' +PACKAGE_STRING='wallet 1.4' PACKAGE_BUGREPORT='eagle@eyrie.org' PACKAGE_URL='' @@ -625,10 +625,6 @@ ac_includes_default="\ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS -WARNINGS_CLANG_FALSE -WARNINGS_CLANG_TRUE -WARNINGS_GCC_FALSE -WARNINGS_GCC_TRUE REMCTLD LIBOBJS KRB5_USES_COM_ERR_FALSE @@ -644,9 +640,11 @@ GSSAPI_CPPFLAGS REMCTL_LIBS REMCTL_LDFLAGS REMCTL_CPPFLAGS +PERL RANLIB ac_ct_AR AR +WARNINGS_CFLAGS EGREP GREP CPP @@ -765,6 +763,7 @@ LDFLAGS LIBS CPPFLAGS CPP +PERL PATH_KRB5_CONFIG REMCTLD' @@ -1317,7 +1316,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures wallet 1.3 to adapt to many kinds of systems. +\`configure' configures wallet 1.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1384,7 +1383,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of wallet 1.3:";; + short | recursive ) echo "Configuration of wallet 1.4:";; esac cat <<\_ACEOF @@ -1432,6 +1431,7 @@ Some influential environment variables: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor + PERL Location of Perl interpreter PATH_KRB5_CONFIG Path to krb5-config REMCTLD Path to the remctld binary @@ -1502,7 +1502,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -wallet configure 1.3 +wallet configure 1.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2097,121 +2097,121 @@ $as_echo "$ac_res" >&6; } } # ac_fn_c_check_decl -# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES -# ---------------------------------------------------- -# Tries to find if the field MEMBER exists in type AGGR, after including -# INCLUDES, setting cache variable VAR accordingly. -ac_fn_c_check_member () +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else + eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$5 +$4 int main () { -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; +if (sizeof ($2)) + return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$5 +$4 int main () { -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; +if (sizeof (($2))) + return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" + else - eval "$4=no" + eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -eval ac_res=\$$4 +eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_member +} # ac_fn_c_check_type -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : $as_echo_n "(cached) " >&6 else - eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$4 +$5 int main () { -if (sizeof ($2)) - return 0; +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$4 +$5 int main () { -if (sizeof (($2))) - return 0; +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : - + eval "$4=yes" else - eval "$3=yes" + eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -eval ac_res=\$$3 +eval ac_res=\$$4 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_type +} # ac_fn_c_check_member cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by wallet $as_me 1.3, which was +It was created by wallet $as_me 1.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3076,7 +3076,7 @@ fi # Define the identity of the package. PACKAGE='wallet' - VERSION='1.3' + VERSION='1.4' cat >>confdefs.h <<_ACEOF @@ -3195,6 +3195,7 @@ fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4718,6 +4719,2043 @@ $as_echo "$rra_cv_prog_cc_clang" >&6; } if test x"$rra_cv_prog_cc_clang" = xyes; then : CLANG=yes fi + + if test x"$CLANG" = xyes; then : + WARNINGS_CFLAGS="-Werror" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5 +$as_echo_n "checking if $CC supports -Weverything... " >&6; } + if ${rra_cv_compiler_c__Weverything+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Weverything in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Weverything" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Weverything" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Weverything=yes +else + rra_cv_compiler_c__Weverything=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5 +$as_echo "$rra_cv_compiler_c__Weverything" >&6; } + if test x"$rra_cv_compiler_c__Weverything" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5 +$as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; } + if ${rra_cv_compiler_c__Wno_cast_qual+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-cast-qual in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-cast-qual" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-cast-qual" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_cast_qual=yes +else + rra_cv_compiler_c__Wno_cast_qual=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_cast_qual" >&5 +$as_echo "$rra_cv_compiler_c__Wno_cast_qual" >&6; } + if test x"$rra_cv_compiler_c__Wno_cast_qual" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-cast-qual" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-disabled-macro-expansion" >&5 +$as_echo_n "checking if $CC supports -Wno-disabled-macro-expansion... " >&6; } + if ${rra_cv_compiler_c__Wno_disabled_macro_expansion+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-disabled-macro-expansion in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-disabled-macro-expansion" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-disabled-macro-expansion" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_disabled_macro_expansion=yes +else + rra_cv_compiler_c__Wno_disabled_macro_expansion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_disabled_macro_expansion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_disabled_macro_expansion" >&6; } + if test x"$rra_cv_compiler_c__Wno_disabled_macro_expansion" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-disabled-macro-expansion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5 +$as_echo_n "checking if $CC supports -Wno-padded... " >&6; } + if ${rra_cv_compiler_c__Wno_padded+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-padded in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-padded" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_padded=yes +else + rra_cv_compiler_c__Wno_padded=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5 +$as_echo "$rra_cv_compiler_c__Wno_padded" >&6; } + if test x"$rra_cv_compiler_c__Wno_padded" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5 +$as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; } + if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-sign-conversion in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_sign_conversion=yes +else + rra_cv_compiler_c__Wno_sign_conversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; } + if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-id-macro" >&5 +$as_echo_n "checking if $CC supports -Wno-reserved-id-macro... " >&6; } + if ${rra_cv_compiler_c__Wno_reserved_id_macro+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-reserved-id-macro in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-reserved-id-macro" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-reserved-id-macro" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_reserved_id_macro=yes +else + rra_cv_compiler_c__Wno_reserved_id_macro=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_id_macro" >&5 +$as_echo "$rra_cv_compiler_c__Wno_reserved_id_macro" >&6; } + if test x"$rra_cv_compiler_c__Wno_reserved_id_macro" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-id-macro" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-tautological-pointer-compare" >&5 +$as_echo_n "checking if $CC supports -Wno-tautological-pointer-compare... " >&6; } + if ${rra_cv_compiler_c__Wno_tautological_pointer_compare+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-tautological-pointer-compare in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-tautological-pointer-compare" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-tautological-pointer-compare" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_tautological_pointer_compare=yes +else + rra_cv_compiler_c__Wno_tautological_pointer_compare=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_tautological_pointer_compare" >&5 +$as_echo "$rra_cv_compiler_c__Wno_tautological_pointer_compare" >&6; } + if test x"$rra_cv_compiler_c__Wno_tautological_pointer_compare" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-tautological-pointer-compare" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-undef" >&5 +$as_echo_n "checking if $CC supports -Wno-undef... " >&6; } + if ${rra_cv_compiler_c__Wno_undef+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-undef in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-undef" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-undef" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_undef=yes +else + rra_cv_compiler_c__Wno_undef=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_undef" >&5 +$as_echo "$rra_cv_compiler_c__Wno_undef" >&6; } + if test x"$rra_cv_compiler_c__Wno_undef" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-undef" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code" >&5 +$as_echo_n "checking if $CC supports -Wno-unreachable-code... " >&6; } + if ${rra_cv_compiler_c__Wno_unreachable_code+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-unreachable-code in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-unreachable-code" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-unreachable-code" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_unreachable_code=yes +else + rra_cv_compiler_c__Wno_unreachable_code=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unreachable_code" >&6; } + if test x"$rra_cv_compiler_c__Wno_unreachable_code" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code-return" >&5 +$as_echo_n "checking if $CC supports -Wno-unreachable-code-return... " >&6; } + if ${rra_cv_compiler_c__Wno_unreachable_code_return+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-unreachable-code-return in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-unreachable-code-return" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-unreachable-code-return" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_unreachable_code_return=yes +else + rra_cv_compiler_c__Wno_unreachable_code_return=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code_return" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unreachable_code_return" >&6; } + if test x"$rra_cv_compiler_c__Wno_unreachable_code_return" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code-return" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-macros" >&5 +$as_echo_n "checking if $CC supports -Wno-unused-macros... " >&6; } + if ${rra_cv_compiler_c__Wno_unused_macros+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-unused-macros in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-unused-macros" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-unused-macros" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_unused_macros=yes +else + rra_cv_compiler_c__Wno_unused_macros=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unused_macros" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unused_macros" >&6; } + if test x"$rra_cv_compiler_c__Wno_unused_macros" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unused-macros" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-used-but-marked-unused" >&5 +$as_echo_n "checking if $CC supports -Wno-used-but-marked-unused... " >&6; } + if ${rra_cv_compiler_c__Wno_used_but_marked_unused+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-used-but-marked-unused in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-used-but-marked-unused" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-used-but-marked-unused" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_used_but_marked_unused=yes +else + rra_cv_compiler_c__Wno_used_but_marked_unused=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_used_but_marked_unused" >&5 +$as_echo "$rra_cv_compiler_c__Wno_used_but_marked_unused" >&6; } + if test x"$rra_cv_compiler_c__Wno_used_but_marked_unused" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-used-but-marked-unused" +fi +else + WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5 +$as_echo_n "checking if $CC supports -fstrict-overflow... " >&6; } + if ${rra_cv_compiler_c__fstrict_overflow+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -fstrict-overflow in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -fstrict-overflow" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__fstrict_overflow=yes +else + rra_cv_compiler_c__fstrict_overflow=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5 +$as_echo "$rra_cv_compiler_c__fstrict_overflow" >&6; } + if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5 +$as_echo_n "checking if $CC supports -fstrict-aliasing... " >&6; } + if ${rra_cv_compiler_c__fstrict_aliasing+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -fstrict-aliasing in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -fstrict-aliasing" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__fstrict_aliasing=yes +else + rra_cv_compiler_c__fstrict_aliasing=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5 +$as_echo "$rra_cv_compiler_c__fstrict_aliasing" >&6; } + if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 +$as_echo_n "checking if $CC supports -Wall... " >&6; } + if ${rra_cv_compiler_c__Wall+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wall in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wall" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wall" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wall=yes +else + rra_cv_compiler_c__Wall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5 +$as_echo "$rra_cv_compiler_c__Wall" >&6; } + if test x"$rra_cv_compiler_c__Wall" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5 +$as_echo_n "checking if $CC supports -Wextra... " >&6; } + if ${rra_cv_compiler_c__Wextra+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wextra in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wextra" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wextra" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wextra=yes +else + rra_cv_compiler_c__Wextra=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5 +$as_echo "$rra_cv_compiler_c__Wextra" >&6; } + if test x"$rra_cv_compiler_c__Wextra" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 +$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_2+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wformat=2 in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wformat=2" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wformat_2=yes +else + rra_cv_compiler_c__Wformat_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_2" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-overflow=2" >&5 +$as_echo_n "checking if $CC supports -Wformat-overflow=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_overflow_2+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wformat-overflow=2 in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wformat-overflow=2" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wformat-overflow=2" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wformat_overflow_2=yes +else + rra_cv_compiler_c__Wformat_overflow_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_overflow_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_overflow_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_overflow_2" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-overflow=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5 +$as_echo_n "checking if $CC supports -Wformat-signedness... " >&6; } + if ${rra_cv_compiler_c__Wformat_signedness+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wformat-signedness in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wformat-signedness" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wformat_signedness=yes +else + rra_cv_compiler_c__Wformat_signedness=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_signedness" >&6; } + if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-truncation=2" >&5 +$as_echo_n "checking if $CC supports -Wformat-truncation=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_truncation_2+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wformat-truncation=2 in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wformat-truncation=2" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wformat-truncation=2" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wformat_truncation_2=yes +else + rra_cv_compiler_c__Wformat_truncation_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_truncation_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_truncation_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_truncation_2" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-truncation=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5 +$as_echo_n "checking if $CC supports -Wnull-dereference... " >&6; } + if ${rra_cv_compiler_c__Wnull_dereference+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wnull-dereference in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wnull-dereference" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wnull_dereference=yes +else + rra_cv_compiler_c__Wnull_dereference=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5 +$as_echo "$rra_cv_compiler_c__Wnull_dereference" >&6; } + if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 +$as_echo_n "checking if $CC supports -Winit-self... " >&6; } + if ${rra_cv_compiler_c__Winit_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Winit-self in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Winit-self" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Winit_self=yes +else + rra_cv_compiler_c__Winit_self=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5 +$as_echo "$rra_cv_compiler_c__Winit_self" >&6; } + if test x"$rra_cv_compiler_c__Winit_self" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5 +$as_echo_n "checking if $CC supports -Wswitch-enum... " >&6; } + if ${rra_cv_compiler_c__Wswitch_enum+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wswitch-enum in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wswitch-enum" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wswitch_enum=yes +else + rra_cv_compiler_c__Wswitch_enum=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5 +$as_echo "$rra_cv_compiler_c__Wswitch_enum" >&6; } + if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5 +$as_echo_n "checking if $CC supports -Wstrict-overflow=5... " >&6; } + if ${rra_cv_compiler_c__Wstrict_overflow_5+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wstrict-overflow=5 in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wstrict-overflow=5" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wstrict_overflow_5=yes +else + rra_cv_compiler_c__Wstrict_overflow_5=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5 +$as_echo "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; } + if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 +$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } + if ${rra_cv_compiler_c__Wmissing_format_attribute+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wmissing-format-attribute in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wmissing-format-attribute" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wmissing_format_attribute=yes +else + rra_cv_compiler_c__Wmissing_format_attribute=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Walloc-zero" >&5 +$as_echo_n "checking if $CC supports -Walloc-zero... " >&6; } + if ${rra_cv_compiler_c__Walloc_zero+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Walloc-zero in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Walloc-zero" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Walloc-zero" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Walloc_zero=yes +else + rra_cv_compiler_c__Walloc_zero=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Walloc_zero" >&5 +$as_echo "$rra_cv_compiler_c__Walloc_zero" >&6; } + if test x"$rra_cv_compiler_c__Walloc_zero" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Walloc-zero" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-branches" >&5 +$as_echo_n "checking if $CC supports -Wduplicated-branches... " >&6; } + if ${rra_cv_compiler_c__Wduplicated_branches+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wduplicated-branches in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wduplicated-branches" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wduplicated-branches" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wduplicated_branches=yes +else + rra_cv_compiler_c__Wduplicated_branches=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_branches" >&5 +$as_echo "$rra_cv_compiler_c__Wduplicated_branches" >&6; } + if test x"$rra_cv_compiler_c__Wduplicated_branches" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-branches" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5 +$as_echo_n "checking if $CC supports -Wduplicated-cond... " >&6; } + if ${rra_cv_compiler_c__Wduplicated_cond+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wduplicated-cond in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wduplicated-cond" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wduplicated_cond=yes +else + rra_cv_compiler_c__Wduplicated_cond=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5 +$as_echo "$rra_cv_compiler_c__Wduplicated_cond" >&6; } + if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5 +$as_echo_n "checking if $CC supports -Wtrampolines... " >&6; } + if ${rra_cv_compiler_c__Wtrampolines+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wtrampolines in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wtrampolines" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wtrampolines=yes +else + rra_cv_compiler_c__Wtrampolines=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5 +$as_echo "$rra_cv_compiler_c__Wtrampolines" >&6; } + if test x"$rra_cv_compiler_c__Wtrampolines" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5 +$as_echo_n "checking if $CC supports -Wfloat-equal... " >&6; } + if ${rra_cv_compiler_c__Wfloat_equal+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wfloat-equal in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wfloat-equal" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wfloat_equal=yes +else + rra_cv_compiler_c__Wfloat_equal=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5 +$as_echo "$rra_cv_compiler_c__Wfloat_equal" >&6; } + if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 +$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } + if ${rra_cv_compiler_c__Wdeclaration_after_statement+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wdeclaration-after-statement in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wdeclaration_after_statement=yes +else + rra_cv_compiler_c__Wdeclaration_after_statement=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5 +$as_echo "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; } + if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 +$as_echo_n "checking if $CC supports -Wshadow... " >&6; } + if ${rra_cv_compiler_c__Wshadow+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wshadow in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wshadow" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wshadow=yes +else + rra_cv_compiler_c__Wshadow=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5 +$as_echo "$rra_cv_compiler_c__Wshadow" >&6; } + if test x"$rra_cv_compiler_c__Wshadow" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 +$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } + if ${rra_cv_compiler_c__Wpointer_arith+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wpointer-arith in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wpointer-arith" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wpointer_arith=yes +else + rra_cv_compiler_c__Wpointer_arith=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5 +$as_echo "$rra_cv_compiler_c__Wpointer_arith" >&6; } + if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 +$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } + if ${rra_cv_compiler_c__Wbad_function_cast+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wbad-function-cast in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wbad-function-cast" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wbad_function_cast=yes +else + rra_cv_compiler_c__Wbad_function_cast=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5 +$as_echo "$rra_cv_compiler_c__Wbad_function_cast" >&6; } + if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5 +$as_echo_n "checking if $CC supports -Wcast-align... " >&6; } + if ${rra_cv_compiler_c__Wcast_align+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wcast-align in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wcast-align" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wcast_align=yes +else + rra_cv_compiler_c__Wcast_align=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5 +$as_echo "$rra_cv_compiler_c__Wcast_align" >&6; } + if test x"$rra_cv_compiler_c__Wcast_align" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 +$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } + if ${rra_cv_compiler_c__Wwrite_strings+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wwrite-strings in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wwrite-strings" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wwrite_strings=yes +else + rra_cv_compiler_c__Wwrite_strings=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5 +$as_echo "$rra_cv_compiler_c__Wwrite_strings" >&6; } + if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wconversion" >&5 +$as_echo_n "checking if $CC supports -Wconversion... " >&6; } + if ${rra_cv_compiler_c__Wconversion+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wconversion in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wconversion" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wconversion" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wconversion=yes +else + rra_cv_compiler_c__Wconversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wconversion" >&5 +$as_echo "$rra_cv_compiler_c__Wconversion" >&6; } + if test x"$rra_cv_compiler_c__Wconversion" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wconversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5 +$as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; } + if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wno-sign-conversion in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wno_sign_conversion=yes +else + rra_cv_compiler_c__Wno_sign_conversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; } + if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5 +$as_echo_n "checking if $CC supports -Wdate-time... " >&6; } + if ${rra_cv_compiler_c__Wdate_time+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wdate-time in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wdate-time" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wdate_time=yes +else + rra_cv_compiler_c__Wdate_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5 +$as_echo "$rra_cv_compiler_c__Wdate_time" >&6; } + if test x"$rra_cv_compiler_c__Wdate_time" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5 +$as_echo_n "checking if $CC supports -Wjump-misses-init... " >&6; } + if ${rra_cv_compiler_c__Wjump_misses_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wjump-misses-init in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wjump-misses-init" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wjump_misses_init=yes +else + rra_cv_compiler_c__Wjump_misses_init=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5 +$as_echo "$rra_cv_compiler_c__Wjump_misses_init" >&6; } + if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 +$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } + if ${rra_cv_compiler_c__Wlogical_op+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wlogical-op in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wlogical-op" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wlogical_op=yes +else + rra_cv_compiler_c__Wlogical_op=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5 +$as_echo "$rra_cv_compiler_c__Wlogical_op" >&6; } + if test x"$rra_cv_compiler_c__Wlogical_op" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 +$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } + if ${rra_cv_compiler_c__Wstrict_prototypes+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wstrict-prototypes in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wstrict-prototypes" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wstrict_prototypes=yes +else + rra_cv_compiler_c__Wstrict_prototypes=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5 +$as_echo "$rra_cv_compiler_c__Wstrict_prototypes" >&6; } + if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 +$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } + if ${rra_cv_compiler_c__Wold_style_definition+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wold-style-definition in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wold-style-definition" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wold_style_definition=yes +else + rra_cv_compiler_c__Wold_style_definition=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5 +$as_echo "$rra_cv_compiler_c__Wold_style_definition" >&6; } + if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 +$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } + if ${rra_cv_compiler_c__Wmissing_prototypes+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wmissing-prototypes in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wmissing-prototypes" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wmissing_prototypes=yes +else + rra_cv_compiler_c__Wmissing_prototypes=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_prototypes" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 +$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } + if ${rra_cv_compiler_c__Wmissing_declarations+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wmissing-declarations in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wmissing-declarations" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wmissing-declarations" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wmissing_declarations=yes +else + rra_cv_compiler_c__Wmissing_declarations=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_declarations" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_declarations" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_declarations" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-declarations" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5 +$as_echo_n "checking if $CC supports -Wnormalized=nfc... " >&6; } + if ${rra_cv_compiler_c__Wnormalized_nfc+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wnormalized=nfc in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wnormalized=nfc" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wnormalized_nfc=yes +else + rra_cv_compiler_c__Wnormalized_nfc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5 +$as_echo "$rra_cv_compiler_c__Wnormalized_nfc" >&6; } + if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5 +$as_echo_n "checking if $CC supports -Wpacked... " >&6; } + if ${rra_cv_compiler_c__Wpacked+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wpacked in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wpacked" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wpacked=yes +else + rra_cv_compiler_c__Wpacked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5 +$as_echo "$rra_cv_compiler_c__Wpacked" >&6; } + if test x"$rra_cv_compiler_c__Wpacked" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 +$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } + if ${rra_cv_compiler_c__Wredundant_decls+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wredundant-decls in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wredundant-decls" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wredundant_decls=yes +else + rra_cv_compiler_c__Wredundant_decls=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5 +$as_echo "$rra_cv_compiler_c__Wredundant_decls" >&6; } + if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wrestrict" >&5 +$as_echo_n "checking if $CC supports -Wrestrict... " >&6; } + if ${rra_cv_compiler_c__Wrestrict+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wrestrict in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wrestrict" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wrestrict" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wrestrict=yes +else + rra_cv_compiler_c__Wrestrict=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wrestrict" >&5 +$as_echo "$rra_cv_compiler_c__Wrestrict" >&6; } + if test x"$rra_cv_compiler_c__Wrestrict" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wrestrict" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 +$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } + if ${rra_cv_compiler_c__Wnested_externs+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wnested-externs in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wnested-externs" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wnested_externs=yes +else + rra_cv_compiler_c__Wnested_externs=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5 +$as_echo "$rra_cv_compiler_c__Wnested_externs" >&6; } + if test x"$rra_cv_compiler_c__Wnested_externs" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5 +$as_echo_n "checking if $CC supports -Winline... " >&6; } + if ${rra_cv_compiler_c__Winline+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Winline in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Winline" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Winline" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Winline=yes +else + rra_cv_compiler_c__Winline=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5 +$as_echo "$rra_cv_compiler_c__Winline" >&6; } + if test x"$rra_cv_compiler_c__Winline" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5 +$as_echo_n "checking if $CC supports -Wvla... " >&6; } + if ${rra_cv_compiler_c__Wvla+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_CFLAGS=$CFLAGS + case -Wvla in #( + -Wno-*) : + CFLAGS="$CFLAGS `echo "-Wvla" | sed 's/-Wno-/-W/'`" ;; #( + *) : + CFLAGS="$CFLAGS -Wvla" ;; #( + *) : + ;; +esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +int foo = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rra_cv_compiler_c__Wvla=yes +else + rra_cv_compiler_c__Wvla=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5 +$as_echo "$rra_cv_compiler_c__Wvla" >&6; } + if test x"$rra_cv_compiler_c__Wvla" = xyes; then : + WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla" +fi +fi + # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; @@ -5210,6 +7248,58 @@ fi fi + + if test x"$PERL" != x; then : + if ! test -x "$PERL"; then : + as_fn_error $? "Perl binary $PERL not found" "$LINENO" 5 +fi + if ! "$PERL" -e 'use 5.008' >/dev/null 2>&1; then : + as_fn_error $? "Perl 5.008 or greater is required" "$LINENO" 5 +fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl version 5.008 or later" >&5 +$as_echo_n "checking for Perl version 5.008 or later... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$PERL"; then + ac_path_PERL_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in perl; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_PERL" || continue +if "$ac_path_PERL" -e 'require 5.008' >/dev/null 2>&1; then : + ac_cv_path_PERL="$ac_path_PERL" + ac_path_PERL_found=: +fi + $ac_path_PERL_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_PERL"; then + : + fi +else + ac_cv_path_PERL=$PERL +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 +$as_echo "$ac_cv_path_PERL" >&6; } + if test x"$ac_cv_path_PERL" = x; then : + as_fn_error $? "Perl 5.008 or greater is required" "$LINENO" 5 +fi + PERL="$ac_cv_path_PERL" + +fi + rra_reduced_depends=false # Check whether --enable-reduced-depends was given. if test "${enable_reduced_depends+set}" = set; then : @@ -5259,48 +7349,6 @@ else rra_lib_arch_name=lib64 fi fi - - # Extract the first word of "krb5-config", so it can be a program name with args. -set dummy krb5-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PATH_KRB5_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="${PATH}:/usr/kerberos/bin" -for as_dir in $as_dummy -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG -if test -n "$PATH_KRB5_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 -$as_echo "$PATH_KRB5_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - rra_remctl_root= rra_remctl_libdir= rra_remctl_includedir= @@ -5573,13 +7621,54 @@ fi else if test x"$rra_gssapi_includedir" = x \ && test x"$rra_gssapi_libdir" = x; then : - - rra_krb5_config_GSSAPI= + rra_krb5_config_GSSAPI= rra_krb5_config_GSSAPI_ok= if test x"${rra_gssapi_root}" != x && test -x "${rra_gssapi_root}/bin/krb5-config"; then : rra_krb5_config_GSSAPI="${rra_gssapi_root}/bin/krb5-config" else - rra_krb5_config_GSSAPI="$PATH_KRB5_CONFIG" + + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PATH_KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="${PATH}:/usr/kerberos/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG +if test -n "$PATH_KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 +$as_echo "$PATH_KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + rra_krb5_config_GSSAPI="$PATH_KRB5_CONFIG" fi if test x"$rra_krb5_config_GSSAPI" != x && test -x "$rra_krb5_config_GSSAPI"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support in krb5-config" >&5 @@ -8520,13 +10609,54 @@ done LIBS="$rra_krb5_save_LIBS" else if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then : - - rra_krb5_config_KRB5= + rra_krb5_config_KRB5= rra_krb5_config_KRB5_ok= if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then : rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config" else - rra_krb5_config_KRB5="$PATH_KRB5_CONFIG" + + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PATH_KRB5_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="${PATH}:/usr/kerberos/bin" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG +if test -n "$PATH_KRB5_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 +$as_echo "$PATH_KRB5_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + rra_krb5_config_KRB5="$PATH_KRB5_CONFIG" fi if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5 @@ -11843,7 +13973,27 @@ rra_krb5_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" LIBS="$KRB5_LIBS $LIBS" -for ac_func in krb5_get_init_creds_opt_alloc \ +ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_type_krb5_realm" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_REALM 1 +_ACEOF + + +fi + +for ac_func in krb5_free_default_realm \ + krb5_get_init_creds_opt_alloc \ krb5_get_init_creds_opt_set_default_flags \ krb5_principal_get_realm do : @@ -11956,6 +14106,54 @@ _ACEOF fi +for ac_func in krb5_appdefault_string +do : + ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string" +if test "x$ac_cv_func_krb5_appdefault_string" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_APPDEFAULT_STRING 1 +_ACEOF + +else + for ac_func in krb5_get_profile +do : + ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile" +if test "x$ac_cv_func_krb5_get_profile" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_PROFILE 1 +_ACEOF + +fi +done + + for ac_header in k5profile.h profile.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + case " $LIBOBJS " in + *" krb5-profile.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext" + ;; +esac + +fi +done + +case " $LIBOBJS " in + *" krb5-extra.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext" + ;; +esac + CPPFLAGS="$rra_krb5_save_CPPFLAGS" LDFLAGS="$rra_krb5_save_LDFLAGS" LIBS="$rra_krb5_save_LIBS" @@ -12053,7 +14251,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi -for ac_header in sys/bitypes.h sys/uio.h sys/time.h syslog.h +for ac_header in strings.h sys/bitypes.h sys/uio.h sys/time.h syslog.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -12456,23 +14654,6 @@ _ACEOF fi - if test x"$GCC" = xyes && test x"$CLANG" != xyes; then - WARNINGS_GCC_TRUE= - WARNINGS_GCC_FALSE='#' -else - WARNINGS_GCC_TRUE='#' - WARNINGS_GCC_FALSE= -fi - - if test x"$CLANG" = xyes; then - WARNINGS_CLANG_TRUE= - WARNINGS_CLANG_FALSE='#' -else - WARNINGS_CLANG_TRUE='#' - WARNINGS_CLANG_FALSE= -fi - - ac_config_headers="$ac_config_headers config.h" ac_config_files="$ac_config_files Makefile" @@ -12485,6 +14666,8 @@ ac_config_files="$ac_config_files tests/client/prompt-t" ac_config_files="$ac_config_files tests/client/rekey-t" +ac_config_commands="$ac_config_commands server" + ac_config_commands="$ac_config_commands tests/config" cat >confcache <<\_ACEOF @@ -12628,14 +14811,6 @@ if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${WARNINGS_GCC_TRUE}" && test -z "${WARNINGS_GCC_FALSE}"; then - as_fn_error $? "conditional \"WARNINGS_GCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WARNINGS_CLANG_TRUE}" && test -z "${WARNINGS_CLANG_FALSE}"; then - as_fn_error $? "conditional \"WARNINGS_CLANG\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -13033,7 +15208,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by wallet $as_me 1.3, which was +This file was extended by wallet $as_me 1.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -13099,7 +15274,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -wallet config.status 1.3 +wallet config.status 1.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -13235,6 +15410,7 @@ do "tests/client/full-t") CONFIG_FILES="$CONFIG_FILES tests/client/full-t" ;; "tests/client/prompt-t") CONFIG_FILES="$CONFIG_FILES tests/client/prompt-t" ;; "tests/client/rekey-t") CONFIG_FILES="$CONFIG_FILES tests/client/rekey-t" ;; + "server") CONFIG_COMMANDS="$CONFIG_COMMANDS server" ;; "tests/config") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/config" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -13928,6 +16104,7 @@ $as_echo X"$file" | "tests/client/full-t":F) chmod +x tests/client/full-t ;; "tests/client/prompt-t":F) chmod +x tests/client/prompt-t ;; "tests/client/rekey-t":F) chmod +x tests/client/rekey-t ;; + "server":C) test -d server || mkdir server ;; "tests/config":C) test -d tests/config || mkdir tests/config ;; esac |