diff options
Diffstat (limited to 'util/makedepend/configure')
-rw-r--r-- | util/makedepend/configure | 2554 |
1 files changed, 1323 insertions, 1231 deletions
diff --git a/util/makedepend/configure b/util/makedepend/configure index 8f13a35cf..b4d2908f6 100644 --- a/util/makedepend/configure +++ b/util/makedepend/configure @@ -4774,13 +4774,15 @@ fi + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -4809,30 +4811,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -4861,19 +4863,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -4890,10 +4892,10 @@ found="no" CFLAGS="$CFLAGS -Wall" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5 -$as_echo_n "checking if $CC supports -Wall... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wall` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wall" >&5 +$as_echo_n "checking if $CC supports-Wall... " >&6; } + cacheid=xorg_cv_cc_flag__Wall + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -4932,12 +4934,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -4948,7 +4950,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -4969,13 +4971,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5004,30 +5008,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5056,19 +5060,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -5085,10 +5089,10 @@ found="no" CFLAGS="$CFLAGS -Wpointer-arith" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5 -$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wpointer-arith" >&5 +$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } + cacheid=xorg_cv_cc_flag__Wpointer_arith + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5127,12 +5131,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -5143,7 +5147,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -5164,13 +5168,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5199,30 +5205,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5251,19 +5257,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -5280,10 +5286,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-declarations" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5 -$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-declarations" >&5 +$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_declarations + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5322,12 +5328,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -5338,7 +5344,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -5359,13 +5365,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5394,30 +5402,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5446,19 +5454,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -5475,10 +5483,10 @@ found="no" CFLAGS="$CFLAGS -Wformat=2" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5 -$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wformat=2" >&5 +$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } + cacheid=xorg_cv_cc_flag__Wformat_2 + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5517,12 +5525,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -5533,7 +5541,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -5553,10 +5561,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -Wformat" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5 -$as_echo_n "checking if $CC supports -Wformat... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wformat" >&5 +$as_echo_n "checking if $CC supports-Wformat... " >&6; } + cacheid=xorg_cv_cc_flag__Wformat + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5595,12 +5603,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -5611,7 +5619,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -5634,13 +5642,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5669,30 +5679,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5721,19 +5731,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -5750,10 +5760,10 @@ found="no" CFLAGS="$CFLAGS -Wstrict-prototypes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5 -$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wstrict-prototypes" >&5 +$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } + cacheid=xorg_cv_cc_flag__Wstrict_prototypes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5792,12 +5802,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -5808,7 +5818,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -5829,13 +5839,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5864,30 +5876,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5916,19 +5928,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -5945,10 +5957,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-prototypes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5 -$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-prototypes" >&5 +$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_prototypes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -5987,12 +5999,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6003,7 +6015,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -6024,13 +6036,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6059,30 +6073,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6111,19 +6125,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -6140,10 +6154,10 @@ found="no" CFLAGS="$CFLAGS -Wnested-externs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5 -$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wnested-externs" >&5 +$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } + cacheid=xorg_cv_cc_flag__Wnested_externs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6182,12 +6196,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6198,7 +6212,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -6219,13 +6233,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6254,30 +6270,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6306,19 +6322,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -6335,10 +6351,10 @@ found="no" CFLAGS="$CFLAGS -Wbad-function-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5 -$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wbad-function-cast" >&5 +$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wbad_function_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6377,12 +6393,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6393,7 +6409,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -6414,13 +6430,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6449,30 +6467,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6501,19 +6519,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -6530,10 +6548,10 @@ found="no" CFLAGS="$CFLAGS -Wold-style-definition" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5 -$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wold-style-definition" >&5 +$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } + cacheid=xorg_cv_cc_flag__Wold_style_definition + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6572,12 +6590,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6588,7 +6606,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -6609,13 +6627,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6644,30 +6664,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6696,19 +6716,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -6725,10 +6745,10 @@ found="no" CFLAGS="$CFLAGS -Wdeclaration-after-statement" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5 -$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wdeclaration-after-statement" >&5 +$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } + cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6767,12 +6787,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6783,7 +6803,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -6808,13 +6828,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6843,30 +6865,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6895,19 +6917,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -6924,10 +6946,10 @@ found="no" CFLAGS="$CFLAGS -Wunused" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5 -$as_echo_n "checking if $CC supports -Wunused... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wunused" >&5 +$as_echo_n "checking if $CC supports-Wunused... " >&6; } + cacheid=xorg_cv_cc_flag__Wunused + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -6966,12 +6988,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -6982,7 +7004,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7003,13 +7025,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7038,30 +7062,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7090,19 +7114,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -7119,10 +7143,10 @@ found="no" CFLAGS="$CFLAGS -Wuninitialized" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5 -$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wuninitialized" >&5 +$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } + cacheid=xorg_cv_cc_flag__Wuninitialized + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7161,12 +7185,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -7177,7 +7201,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7198,13 +7222,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7233,30 +7259,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7285,19 +7311,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -7314,10 +7340,10 @@ found="no" CFLAGS="$CFLAGS -Wshadow" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5 -$as_echo_n "checking if $CC supports -Wshadow... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wshadow" >&5 +$as_echo_n "checking if $CC supports-Wshadow... " >&6; } + cacheid=xorg_cv_cc_flag__Wshadow + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7356,12 +7382,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -7372,7 +7398,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7393,13 +7419,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7428,30 +7456,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7480,19 +7508,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -7509,10 +7537,10 @@ found="no" CFLAGS="$CFLAGS -Wcast-qual" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5 -$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wcast-qual" >&5 +$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } + cacheid=xorg_cv_cc_flag__Wcast_qual + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7551,12 +7579,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -7567,7 +7595,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7588,13 +7616,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7623,30 +7653,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7675,19 +7705,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -7704,10 +7734,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-noreturn" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5 -$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-noreturn" >&5 +$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_noreturn + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7746,12 +7776,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -7762,7 +7792,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7783,13 +7813,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7818,30 +7850,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7870,19 +7902,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -7899,10 +7931,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-format-attribute" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5 -$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-format-attribute" >&5 +$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_format_attribute + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -7941,12 +7973,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -7957,7 +7989,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -7978,13 +8010,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8013,30 +8047,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8065,19 +8099,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -8094,10 +8128,10 @@ found="no" CFLAGS="$CFLAGS -Wredundant-decls" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5 -$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wredundant-decls" >&5 +$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } + cacheid=xorg_cv_cc_flag__Wredundant_decls + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8136,12 +8170,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -8152,7 +8186,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -8185,13 +8219,15 @@ if test "x$SELECTIVE_WERROR" = "xyes" ; then + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8220,30 +8256,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8272,19 +8308,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -8301,10 +8337,10 @@ found="no" CFLAGS="$CFLAGS -Werror=implicit" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5 -$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=implicit" >&5 +$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_implicit + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8343,12 +8379,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -8359,7 +8395,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -8379,10 +8415,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 -$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 +$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8421,12 +8457,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -8437,7 +8473,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -8458,13 +8494,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8493,30 +8531,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8545,19 +8583,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -8574,10 +8612,10 @@ found="no" CFLAGS="$CFLAGS -Werror=nonnull" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5 -$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=nonnull" >&5 +$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_nonnull + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8616,12 +8654,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -8632,7 +8670,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -8653,13 +8691,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8688,30 +8728,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8740,19 +8780,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -8769,10 +8809,10 @@ found="no" CFLAGS="$CFLAGS -Werror=init-self" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5 -$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=init-self" >&5 +$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_init_self + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8811,12 +8851,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -8827,7 +8867,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -8848,13 +8888,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8883,30 +8925,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -8935,19 +8977,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -8964,10 +9006,10 @@ found="no" CFLAGS="$CFLAGS -Werror=main" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5 -$as_echo_n "checking if $CC supports -Werror=main... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=main" >&5 +$as_echo_n "checking if $CC supports-Werror=main... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_main + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9006,12 +9048,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9022,7 +9064,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9043,13 +9085,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9078,30 +9122,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9130,19 +9174,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -9159,10 +9203,10 @@ found="no" CFLAGS="$CFLAGS -Werror=missing-braces" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5 -$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=missing-braces" >&5 +$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_missing_braces + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9201,12 +9245,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9217,7 +9261,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9238,13 +9282,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9273,30 +9319,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9325,19 +9371,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -9354,10 +9400,10 @@ found="no" CFLAGS="$CFLAGS -Werror=sequence-point" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5 -$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=sequence-point" >&5 +$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_sequence_point + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9396,12 +9442,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9412,7 +9458,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9433,13 +9479,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9468,30 +9516,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9520,19 +9568,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -9549,10 +9597,10 @@ found="no" CFLAGS="$CFLAGS -Werror=return-type" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5 -$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=return-type" >&5 +$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_return_type + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9591,12 +9639,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9607,7 +9655,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9627,10 +9675,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 -$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 +$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9669,12 +9717,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9685,7 +9733,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9706,13 +9754,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9741,30 +9791,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9793,19 +9843,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -9822,10 +9872,10 @@ found="no" CFLAGS="$CFLAGS -Werror=trigraphs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5 -$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=trigraphs" >&5 +$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_trigraphs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9864,12 +9914,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -9880,7 +9930,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -9901,13 +9951,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9936,30 +9988,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -9988,19 +10040,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -10017,10 +10069,10 @@ found="no" CFLAGS="$CFLAGS -Werror=array-bounds" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5 -$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=array-bounds" >&5 +$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_array_bounds + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10059,12 +10111,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10075,7 +10127,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10096,13 +10148,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10131,30 +10185,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10183,19 +10237,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -10212,10 +10266,10 @@ found="no" CFLAGS="$CFLAGS -Werror=write-strings" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5 -$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=write-strings" >&5 +$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_write_strings + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10254,12 +10308,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10270,7 +10324,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10291,13 +10345,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10326,30 +10382,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10378,19 +10434,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -10407,10 +10463,10 @@ found="no" CFLAGS="$CFLAGS -Werror=address" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5 -$as_echo_n "checking if $CC supports -Werror=address... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=address" >&5 +$as_echo_n "checking if $CC supports-Werror=address... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_address + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10449,12 +10505,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10465,7 +10521,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10486,13 +10542,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10521,30 +10579,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10573,19 +10631,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -10602,10 +10660,10 @@ found="no" CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5 -$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=int-to-pointer-cast" >&5 +$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10644,12 +10702,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10660,7 +10718,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10680,10 +10738,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 -$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 +$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10722,12 +10780,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10738,7 +10796,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10759,13 +10817,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10794,30 +10854,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10846,19 +10906,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -10875,10 +10935,10 @@ found="no" CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5 -$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=pointer-to-int-cast" >&5 +$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10917,12 +10977,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -10933,7 +10993,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -10957,13 +11017,15 @@ $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warn + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -10992,30 +11054,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11044,19 +11106,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -11073,10 +11135,10 @@ found="no" CFLAGS="$CFLAGS -Wimplicit" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5 -$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wimplicit" >&5 +$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } + cacheid=xorg_cv_cc_flag__Wimplicit + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11115,12 +11177,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -11131,7 +11193,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -11152,13 +11214,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11187,30 +11251,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11239,19 +11303,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -11268,10 +11332,10 @@ found="no" CFLAGS="$CFLAGS -Wnonnull" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5 -$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wnonnull" >&5 +$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } + cacheid=xorg_cv_cc_flag__Wnonnull + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11310,12 +11374,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -11326,7 +11390,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -11347,13 +11411,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11382,30 +11448,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11434,19 +11500,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -11463,10 +11529,10 @@ found="no" CFLAGS="$CFLAGS -Winit-self" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5 -$as_echo_n "checking if $CC supports -Winit-self... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Winit-self" >&5 +$as_echo_n "checking if $CC supports-Winit-self... " >&6; } + cacheid=xorg_cv_cc_flag__Winit_self + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11505,12 +11571,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -11521,7 +11587,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -11542,13 +11608,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11577,30 +11645,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11629,19 +11697,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -11658,10 +11726,10 @@ found="no" CFLAGS="$CFLAGS -Wmain" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5 -$as_echo_n "checking if $CC supports -Wmain... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmain" >&5 +$as_echo_n "checking if $CC supports-Wmain... " >&6; } + cacheid=xorg_cv_cc_flag__Wmain + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11700,12 +11768,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -11716,7 +11784,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -11737,13 +11805,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11772,30 +11842,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11824,19 +11894,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -11853,10 +11923,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-braces" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5 -$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-braces" >&5 +$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_braces + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11895,12 +11965,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -11911,7 +11981,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -11932,13 +12002,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -11967,30 +12039,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12019,19 +12091,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12048,10 +12120,10 @@ found="no" CFLAGS="$CFLAGS -Wsequence-point" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5 -$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wsequence-point" >&5 +$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } + cacheid=xorg_cv_cc_flag__Wsequence_point + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12090,12 +12162,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12106,7 +12178,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12127,13 +12199,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12162,30 +12236,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12214,19 +12288,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12243,10 +12317,10 @@ found="no" CFLAGS="$CFLAGS -Wreturn-type" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5 -$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wreturn-type" >&5 +$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } + cacheid=xorg_cv_cc_flag__Wreturn_type + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12285,12 +12359,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12301,7 +12375,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12322,13 +12396,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12357,30 +12433,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12409,19 +12485,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12438,10 +12514,10 @@ found="no" CFLAGS="$CFLAGS -Wtrigraphs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5 -$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wtrigraphs" >&5 +$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } + cacheid=xorg_cv_cc_flag__Wtrigraphs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12480,12 +12556,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12496,7 +12572,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12517,13 +12593,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12552,30 +12630,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12604,19 +12682,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12633,10 +12711,10 @@ found="no" CFLAGS="$CFLAGS -Warray-bounds" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5 -$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Warray-bounds" >&5 +$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } + cacheid=xorg_cv_cc_flag__Warray_bounds + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12675,12 +12753,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12691,7 +12769,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12712,13 +12790,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12747,30 +12827,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12799,19 +12879,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12828,10 +12908,10 @@ found="no" CFLAGS="$CFLAGS -Wwrite-strings" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5 -$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wwrite-strings" >&5 +$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } + cacheid=xorg_cv_cc_flag__Wwrite_strings + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12870,12 +12950,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12886,7 +12966,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12907,13 +12987,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12942,30 +13024,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12994,19 +13076,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13023,10 +13105,10 @@ found="no" CFLAGS="$CFLAGS -Waddress" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5 -$as_echo_n "checking if $CC supports -Waddress... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Waddress" >&5 +$as_echo_n "checking if $CC supports-Waddress... " >&6; } + cacheid=xorg_cv_cc_flag__Waddress + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13065,12 +13147,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13081,7 +13163,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13102,13 +13184,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13137,30 +13221,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13189,19 +13273,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13218,10 +13302,10 @@ found="no" CFLAGS="$CFLAGS -Wint-to-pointer-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5 -$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wint-to-pointer-cast" >&5 +$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13260,12 +13344,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13276,7 +13360,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13297,13 +13381,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13332,30 +13418,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13384,19 +13470,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13413,10 +13499,10 @@ found="no" CFLAGS="$CFLAGS -Wpointer-to-int-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5 -$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wpointer-to-int-cast" >&5 +$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13455,12 +13541,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13471,7 +13557,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13525,13 +13611,15 @@ STRICT_CFLAGS="" + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13560,30 +13648,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13612,19 +13700,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13641,10 +13729,10 @@ found="no" CFLAGS="$CFLAGS -pedantic" - { $as_echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5 -$as_echo_n "checking if $CC supports -pedantic... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-pedantic" >&5 +$as_echo_n "checking if $CC supports-pedantic... " >&6; } + cacheid=xorg_cv_cc_flag__pedantic + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13683,12 +13771,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13699,7 +13787,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13720,13 +13808,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13755,30 +13845,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13807,19 +13897,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13836,10 +13926,10 @@ found="no" CFLAGS="$CFLAGS -Werror" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5 -$as_echo_n "checking if $CC supports -Werror... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror" >&5 +$as_echo_n "checking if $CC supports-Werror... " >&6; } + cacheid=xorg_cv_cc_flag__Werror + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13878,12 +13968,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13894,7 +13984,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13914,10 +14004,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5 -$as_echo_n "checking if $CC supports -errwarn... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn" >&5 +$as_echo_n "checking if $CC supports-errwarn... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13956,12 +14046,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13972,7 +14062,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13996,13 +14086,15 @@ $as_echo "$supported" >&6; } + + xorg_testset_save_CFLAGS="$CFLAGS" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14031,30 +14123,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14083,19 +14175,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14112,10 +14204,10 @@ found="no" CFLAGS="$CFLAGS -Werror=attributes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5 -$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=attributes" >&5 +$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_attributes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14154,12 +14246,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14170,7 +14262,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then |