configure revision 80f56f3a
18ae04fa6Smrg#! /bin/sh 28ae04fa6Smrg# Guess values for system-dependent variables and create Makefiles. 380f56f3aSmrg# Generated by GNU Autoconf 2.69 for xvinfo 1.1.3. 48ae04fa6Smrg# 58ae04fa6Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 68ae04fa6Smrg# 72d1d20fcSmrg# 880f56f3aSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 92d1d20fcSmrg# 102d1d20fcSmrg# 118ae04fa6Smrg# This configure script is free software; the Free Software Foundation 128ae04fa6Smrg# gives unlimited permission to copy, distribute and modify it. 132d1d20fcSmrg## -------------------- ## 142d1d20fcSmrg## M4sh Initialization. ## 152d1d20fcSmrg## -------------------- ## 168ae04fa6Smrg 178ae04fa6Smrg# Be more Bourne compatible 188ae04fa6SmrgDUALCASE=1; export DUALCASE # for MKS sh 192d1d20fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 208ae04fa6Smrg emulate sh 218ae04fa6Smrg NULLCMD=: 2244af7230Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 238ae04fa6Smrg # is contrary to our usage. Disable this feature. 248ae04fa6Smrg alias -g '${1+"$@"}'='"$@"' 258ae04fa6Smrg setopt NO_GLOB_SUBST 268ae04fa6Smrgelse 272d1d20fcSmrg case `(set -o) 2>/dev/null` in #( 282d1d20fcSmrg *posix*) : 292d1d20fcSmrg set -o posix ;; #( 302d1d20fcSmrg *) : 312d1d20fcSmrg ;; 328ae04fa6Smrgesac 338ae04fa6Smrgfi 348ae04fa6Smrg 358ae04fa6Smrg 3644af7230Smrgas_nl=' 3744af7230Smrg' 3844af7230Smrgexport as_nl 3944af7230Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4044af7230Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4144af7230Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4244af7230Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 432d1d20fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 442d1d20fcSmrg# but without wasting forks for bash or zsh. 452d1d20fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 462d1d20fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 472d1d20fcSmrg as_echo='print -r --' 482d1d20fcSmrg as_echo_n='print -rn --' 492d1d20fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5044af7230Smrg as_echo='printf %s\n' 5144af7230Smrg as_echo_n='printf %s' 5244af7230Smrgelse 5344af7230Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5444af7230Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5544af7230Smrg as_echo_n='/usr/ucb/echo -n' 568ae04fa6Smrg else 5744af7230Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5844af7230Smrg as_echo_n_body='eval 5944af7230Smrg arg=$1; 602d1d20fcSmrg case $arg in #( 6144af7230Smrg *"$as_nl"*) 6244af7230Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6344af7230Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6444af7230Smrg esac; 6544af7230Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6644af7230Smrg ' 6744af7230Smrg export as_echo_n_body 6844af7230Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 698ae04fa6Smrg fi 7044af7230Smrg export as_echo_body 7144af7230Smrg as_echo='sh -c $as_echo_body as_echo' 7244af7230Smrgfi 7344af7230Smrg 7444af7230Smrg# The user is always right. 7544af7230Smrgif test "${PATH_SEPARATOR+set}" != set; then 7644af7230Smrg PATH_SEPARATOR=: 7744af7230Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7844af7230Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7944af7230Smrg PATH_SEPARATOR=';' 8044af7230Smrg } 818ae04fa6Smrgfi 828ae04fa6Smrg 838ae04fa6Smrg 848ae04fa6Smrg# IFS 858ae04fa6Smrg# We need space, tab and new line, in precisely that order. Quoting is 868ae04fa6Smrg# there to prevent editors from complaining about space-tab. 878ae04fa6Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 888ae04fa6Smrg# splitting by setting IFS to empty value.) 898ae04fa6SmrgIFS=" "" $as_nl" 908ae04fa6Smrg 918ae04fa6Smrg# Find who we are. Look in the path if we contain no directory separator. 922d1d20fcSmrgas_myself= 932d1d20fcSmrgcase $0 in #(( 948ae04fa6Smrg *[\\/]* ) as_myself=$0 ;; 958ae04fa6Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 968ae04fa6Smrgfor as_dir in $PATH 978ae04fa6Smrgdo 988ae04fa6Smrg IFS=$as_save_IFS 998ae04fa6Smrg test -z "$as_dir" && as_dir=. 1002d1d20fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1012d1d20fcSmrg done 1028ae04fa6SmrgIFS=$as_save_IFS 1038ae04fa6Smrg 1048ae04fa6Smrg ;; 1058ae04fa6Smrgesac 1068ae04fa6Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1078ae04fa6Smrg# in which case we are not to be found in the path. 1088ae04fa6Smrgif test "x$as_myself" = x; then 1098ae04fa6Smrg as_myself=$0 1108ae04fa6Smrgfi 1118ae04fa6Smrgif test ! -f "$as_myself"; then 11244af7230Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1132d1d20fcSmrg exit 1 1148ae04fa6Smrgfi 1158ae04fa6Smrg 1162d1d20fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 1172d1d20fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1182d1d20fcSmrg# suppresses any "Segmentation fault" message there. '((' could 1192d1d20fcSmrg# trigger a bug in pdksh 5.2.14. 1202d1d20fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1212d1d20fcSmrgdo eval test x\${$as_var+set} = xset \ 1222d1d20fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1238ae04fa6Smrgdone 1248ae04fa6SmrgPS1='$ ' 1258ae04fa6SmrgPS2='> ' 1268ae04fa6SmrgPS4='+ ' 1278ae04fa6Smrg 1288ae04fa6Smrg# NLS nuisances. 12944af7230SmrgLC_ALL=C 13044af7230Smrgexport LC_ALL 13144af7230SmrgLANGUAGE=C 13244af7230Smrgexport LANGUAGE 1338ae04fa6Smrg 1342d1d20fcSmrg# CDPATH. 1352d1d20fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1362d1d20fcSmrg 13780f56f3aSmrg# Use a proper internal environment variable to ensure we don't fall 13880f56f3aSmrg # into an infinite loop, continuously re-executing ourselves. 13980f56f3aSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14080f56f3aSmrg _as_can_reexec=no; export _as_can_reexec; 14180f56f3aSmrg # We cannot yet assume a decent shell, so we have to provide a 14280f56f3aSmrg# neutralization value for shells without unset; and this also 14380f56f3aSmrg# works around shells that cannot unset nonexistent variables. 14480f56f3aSmrg# Preserve -v and -x to the replacement shell. 14580f56f3aSmrgBASH_ENV=/dev/null 14680f56f3aSmrgENV=/dev/null 14780f56f3aSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14880f56f3aSmrgcase $- in # (((( 14980f56f3aSmrg *v*x* | *x*v* ) as_opts=-vx ;; 15080f56f3aSmrg *v* ) as_opts=-v ;; 15180f56f3aSmrg *x* ) as_opts=-x ;; 15280f56f3aSmrg * ) as_opts= ;; 15380f56f3aSmrgesac 15480f56f3aSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15580f56f3aSmrg# Admittedly, this is quite paranoid, since all the known shells bail 15680f56f3aSmrg# out after a failed `exec'. 15780f56f3aSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15880f56f3aSmrgas_fn_exit 255 15980f56f3aSmrg fi 16080f56f3aSmrg # We don't want this to propagate to other subprocesses. 16180f56f3aSmrg { _as_can_reexec=; unset _as_can_reexec;} 1622d1d20fcSmrgif test "x$CONFIG_SHELL" = x; then 1632d1d20fcSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1642d1d20fcSmrg emulate sh 1652d1d20fcSmrg NULLCMD=: 1662d1d20fcSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1672d1d20fcSmrg # is contrary to our usage. Disable this feature. 1682d1d20fcSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1692d1d20fcSmrg setopt NO_GLOB_SUBST 1702d1d20fcSmrgelse 1712d1d20fcSmrg case \`(set -o) 2>/dev/null\` in #( 1722d1d20fcSmrg *posix*) : 1732d1d20fcSmrg set -o posix ;; #( 1742d1d20fcSmrg *) : 1752d1d20fcSmrg ;; 1762d1d20fcSmrgesac 1772d1d20fcSmrgfi 1782d1d20fcSmrg" 1792d1d20fcSmrg as_required="as_fn_return () { (exit \$1); } 1802d1d20fcSmrgas_fn_success () { as_fn_return 0; } 1812d1d20fcSmrgas_fn_failure () { as_fn_return 1; } 1822d1d20fcSmrgas_fn_ret_success () { return 0; } 1832d1d20fcSmrgas_fn_ret_failure () { return 1; } 1842d1d20fcSmrg 1852d1d20fcSmrgexitcode=0 1862d1d20fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1872d1d20fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1882d1d20fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1892d1d20fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1902d1d20fcSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1912d1d20fcSmrg 1922d1d20fcSmrgelse 1932d1d20fcSmrg exitcode=1; echo positional parameters were not saved. 1942d1d20fcSmrgfi 19580f56f3aSmrgtest x\$exitcode = x0 || exit 1 19680f56f3aSmrgtest -x / || exit 1" 1972d1d20fcSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1982d1d20fcSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1992d1d20fcSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 2002d1d20fcSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 2012d1d20fcSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 2022d1d20fcSmrg if (eval "$as_required") 2>/dev/null; then : 2032d1d20fcSmrg as_have_required=yes 2042d1d20fcSmrgelse 2052d1d20fcSmrg as_have_required=no 2062d1d20fcSmrgfi 2072d1d20fcSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 2082d1d20fcSmrg 2092d1d20fcSmrgelse 2102d1d20fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2112d1d20fcSmrgas_found=false 2122d1d20fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2132d1d20fcSmrgdo 2142d1d20fcSmrg IFS=$as_save_IFS 2152d1d20fcSmrg test -z "$as_dir" && as_dir=. 2162d1d20fcSmrg as_found=: 2172d1d20fcSmrg case $as_dir in #( 2182d1d20fcSmrg /*) 2192d1d20fcSmrg for as_base in sh bash ksh sh5; do 2202d1d20fcSmrg # Try only shells that exist, to save several forks. 2212d1d20fcSmrg as_shell=$as_dir/$as_base 2222d1d20fcSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2232d1d20fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2242d1d20fcSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2252d1d20fcSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2262d1d20fcSmrg break 2 2272d1d20fcSmrgfi 2282d1d20fcSmrgfi 2292d1d20fcSmrg done;; 2302d1d20fcSmrg esac 2312d1d20fcSmrg as_found=false 2322d1d20fcSmrgdone 2332d1d20fcSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2342d1d20fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2352d1d20fcSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2362d1d20fcSmrgfi; } 2372d1d20fcSmrgIFS=$as_save_IFS 2382d1d20fcSmrg 2392d1d20fcSmrg 2402d1d20fcSmrg if test "x$CONFIG_SHELL" != x; then : 24180f56f3aSmrg export CONFIG_SHELL 24280f56f3aSmrg # We cannot yet assume a decent shell, so we have to provide a 24380f56f3aSmrg# neutralization value for shells without unset; and this also 24480f56f3aSmrg# works around shells that cannot unset nonexistent variables. 24580f56f3aSmrg# Preserve -v and -x to the replacement shell. 24680f56f3aSmrgBASH_ENV=/dev/null 24780f56f3aSmrgENV=/dev/null 24880f56f3aSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24980f56f3aSmrgcase $- in # (((( 25080f56f3aSmrg *v*x* | *x*v* ) as_opts=-vx ;; 25180f56f3aSmrg *v* ) as_opts=-v ;; 25280f56f3aSmrg *x* ) as_opts=-x ;; 25380f56f3aSmrg * ) as_opts= ;; 25480f56f3aSmrgesac 25580f56f3aSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25680f56f3aSmrg# Admittedly, this is quite paranoid, since all the known shells bail 25780f56f3aSmrg# out after a failed `exec'. 25880f56f3aSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25980f56f3aSmrgexit 255 2602d1d20fcSmrgfi 2612d1d20fcSmrg 2622d1d20fcSmrg if test x$as_have_required = xno; then : 2632d1d20fcSmrg $as_echo "$0: This script requires a shell more modern than all" 2642d1d20fcSmrg $as_echo "$0: the shells that I found on your system." 2652d1d20fcSmrg if test x${ZSH_VERSION+set} = xset ; then 2662d1d20fcSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2672d1d20fcSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2682d1d20fcSmrg else 2692d1d20fcSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2702d1d20fcSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2712d1d20fcSmrg$0: about your system, including any error possibly output 2722d1d20fcSmrg$0: before this message. Then install a modern shell, or 2732d1d20fcSmrg$0: manually run the script under such a shell if you do 2742d1d20fcSmrg$0: have one." 2752d1d20fcSmrg fi 2762d1d20fcSmrg exit 1 2772d1d20fcSmrgfi 2782d1d20fcSmrgfi 2792d1d20fcSmrgfi 2802d1d20fcSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2812d1d20fcSmrgexport SHELL 2822d1d20fcSmrg# Unset more variables known to interfere with behavior of common tools. 2832d1d20fcSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2842d1d20fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2852d1d20fcSmrg 2862d1d20fcSmrg## --------------------- ## 2872d1d20fcSmrg## M4sh Shell Functions. ## 2882d1d20fcSmrg## --------------------- ## 2892d1d20fcSmrg# as_fn_unset VAR 2902d1d20fcSmrg# --------------- 2912d1d20fcSmrg# Portably unset VAR. 2922d1d20fcSmrgas_fn_unset () 2932d1d20fcSmrg{ 2942d1d20fcSmrg { eval $1=; unset $1;} 2952d1d20fcSmrg} 2962d1d20fcSmrgas_unset=as_fn_unset 2972d1d20fcSmrg 2982d1d20fcSmrg# as_fn_set_status STATUS 2992d1d20fcSmrg# ----------------------- 3002d1d20fcSmrg# Set $? to STATUS, without forking. 3012d1d20fcSmrgas_fn_set_status () 3022d1d20fcSmrg{ 3032d1d20fcSmrg return $1 3042d1d20fcSmrg} # as_fn_set_status 3052d1d20fcSmrg 3062d1d20fcSmrg# as_fn_exit STATUS 3072d1d20fcSmrg# ----------------- 3082d1d20fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3092d1d20fcSmrgas_fn_exit () 3102d1d20fcSmrg{ 3112d1d20fcSmrg set +e 3122d1d20fcSmrg as_fn_set_status $1 3132d1d20fcSmrg exit $1 3142d1d20fcSmrg} # as_fn_exit 3152d1d20fcSmrg 3162d1d20fcSmrg# as_fn_mkdir_p 3172d1d20fcSmrg# ------------- 3182d1d20fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 3192d1d20fcSmrgas_fn_mkdir_p () 3202d1d20fcSmrg{ 3212d1d20fcSmrg 3222d1d20fcSmrg case $as_dir in #( 3232d1d20fcSmrg -*) as_dir=./$as_dir;; 3242d1d20fcSmrg esac 3252d1d20fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 3262d1d20fcSmrg as_dirs= 3272d1d20fcSmrg while :; do 3282d1d20fcSmrg case $as_dir in #( 3292d1d20fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3302d1d20fcSmrg *) as_qdir=$as_dir;; 3312d1d20fcSmrg esac 3322d1d20fcSmrg as_dirs="'$as_qdir' $as_dirs" 3332d1d20fcSmrg as_dir=`$as_dirname -- "$as_dir" || 3342d1d20fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3352d1d20fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3362d1d20fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 3372d1d20fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3382d1d20fcSmrg$as_echo X"$as_dir" | 3392d1d20fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3402d1d20fcSmrg s//\1/ 3412d1d20fcSmrg q 3422d1d20fcSmrg } 3432d1d20fcSmrg /^X\(\/\/\)[^/].*/{ 3442d1d20fcSmrg s//\1/ 3452d1d20fcSmrg q 3462d1d20fcSmrg } 3472d1d20fcSmrg /^X\(\/\/\)$/{ 3482d1d20fcSmrg s//\1/ 3492d1d20fcSmrg q 3502d1d20fcSmrg } 3512d1d20fcSmrg /^X\(\/\).*/{ 3522d1d20fcSmrg s//\1/ 3532d1d20fcSmrg q 3542d1d20fcSmrg } 3552d1d20fcSmrg s/.*/./; q'` 3562d1d20fcSmrg test -d "$as_dir" && break 3572d1d20fcSmrg done 3582d1d20fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3592d1d20fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3602d1d20fcSmrg 3612d1d20fcSmrg 3622d1d20fcSmrg} # as_fn_mkdir_p 36380f56f3aSmrg 36480f56f3aSmrg# as_fn_executable_p FILE 36580f56f3aSmrg# ----------------------- 36680f56f3aSmrg# Test if FILE is an executable regular file. 36780f56f3aSmrgas_fn_executable_p () 36880f56f3aSmrg{ 36980f56f3aSmrg test -f "$1" && test -x "$1" 37080f56f3aSmrg} # as_fn_executable_p 3712d1d20fcSmrg# as_fn_append VAR VALUE 3722d1d20fcSmrg# ---------------------- 3732d1d20fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3742d1d20fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 3752d1d20fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 3762d1d20fcSmrg# implementations. 3772d1d20fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3782d1d20fcSmrg eval 'as_fn_append () 3792d1d20fcSmrg { 3802d1d20fcSmrg eval $1+=\$2 3812d1d20fcSmrg }' 3822d1d20fcSmrgelse 3832d1d20fcSmrg as_fn_append () 3842d1d20fcSmrg { 3852d1d20fcSmrg eval $1=\$$1\$2 3862d1d20fcSmrg } 3872d1d20fcSmrgfi # as_fn_append 3882d1d20fcSmrg 3892d1d20fcSmrg# as_fn_arith ARG... 3902d1d20fcSmrg# ------------------ 3912d1d20fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3922d1d20fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3932d1d20fcSmrg# must be portable across $(()) and expr. 3942d1d20fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3952d1d20fcSmrg eval 'as_fn_arith () 3962d1d20fcSmrg { 3972d1d20fcSmrg as_val=$(( $* )) 3982d1d20fcSmrg }' 3992d1d20fcSmrgelse 4002d1d20fcSmrg as_fn_arith () 4012d1d20fcSmrg { 4022d1d20fcSmrg as_val=`expr "$@" || test $? -eq 1` 4032d1d20fcSmrg } 4042d1d20fcSmrgfi # as_fn_arith 4052d1d20fcSmrg 4062d1d20fcSmrg 4072d1d20fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4082d1d20fcSmrg# ---------------------------------------- 4092d1d20fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4102d1d20fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4112d1d20fcSmrg# script with STATUS, using 1 if that was 0. 4122d1d20fcSmrgas_fn_error () 4132d1d20fcSmrg{ 4142d1d20fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4152d1d20fcSmrg if test "$4"; then 4162d1d20fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4172d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4182d1d20fcSmrg fi 4192d1d20fcSmrg $as_echo "$as_me: error: $2" >&2 4202d1d20fcSmrg as_fn_exit $as_status 4212d1d20fcSmrg} # as_fn_error 4222d1d20fcSmrg 4238ae04fa6Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 4248ae04fa6Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4258ae04fa6Smrg as_expr=expr 4268ae04fa6Smrgelse 4278ae04fa6Smrg as_expr=false 4288ae04fa6Smrgfi 4298ae04fa6Smrg 4308ae04fa6Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4318ae04fa6Smrg as_basename=basename 4328ae04fa6Smrgelse 4338ae04fa6Smrg as_basename=false 4348ae04fa6Smrgfi 4358ae04fa6Smrg 4362d1d20fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4372d1d20fcSmrg as_dirname=dirname 4382d1d20fcSmrgelse 4392d1d20fcSmrg as_dirname=false 4402d1d20fcSmrgfi 4418ae04fa6Smrg 4428ae04fa6Smrgas_me=`$as_basename -- "$0" || 4438ae04fa6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4448ae04fa6Smrg X"$0" : 'X\(//\)$' \| \ 4458ae04fa6Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 44644af7230Smrg$as_echo X/"$0" | 4478ae04fa6Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4488ae04fa6Smrg s//\1/ 4498ae04fa6Smrg q 4508ae04fa6Smrg } 4518ae04fa6Smrg /^X\/\(\/\/\)$/{ 4528ae04fa6Smrg s//\1/ 4538ae04fa6Smrg q 4548ae04fa6Smrg } 4558ae04fa6Smrg /^X\/\(\/\).*/{ 4568ae04fa6Smrg s//\1/ 4578ae04fa6Smrg q 4588ae04fa6Smrg } 4598ae04fa6Smrg s/.*/./; q'` 4608ae04fa6Smrg 4612d1d20fcSmrg# Avoid depending upon Character Ranges. 4622d1d20fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4632d1d20fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4642d1d20fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4652d1d20fcSmrgas_cr_digits='0123456789' 4662d1d20fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4678ae04fa6Smrg 4688ae04fa6Smrg 4692d1d20fcSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4702d1d20fcSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4712d1d20fcSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4722d1d20fcSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4732d1d20fcSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4742d1d20fcSmrg sed -n ' 4752d1d20fcSmrg p 4762d1d20fcSmrg /[$]LINENO/= 4772d1d20fcSmrg ' <$as_myself | 4782d1d20fcSmrg sed ' 4792d1d20fcSmrg s/[$]LINENO.*/&-/ 4802d1d20fcSmrg t lineno 4812d1d20fcSmrg b 4822d1d20fcSmrg :lineno 4832d1d20fcSmrg N 4842d1d20fcSmrg :loop 4852d1d20fcSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4862d1d20fcSmrg t loop 4872d1d20fcSmrg s/-\n.*// 4882d1d20fcSmrg ' >$as_me.lineno && 4892d1d20fcSmrg chmod +x "$as_me.lineno" || 4902d1d20fcSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4918ae04fa6Smrg 49280f56f3aSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49380f56f3aSmrg # already done that, so ensure we don't try to do so again and fall 49480f56f3aSmrg # in an infinite loop. This has already happened in practice. 49580f56f3aSmrg _as_can_reexec=no; export _as_can_reexec 4962d1d20fcSmrg # Don't try to exec as it changes $[0], causing all sort of problems 4972d1d20fcSmrg # (the dirname of $[0] is not the place where we might find the 4982d1d20fcSmrg # original and so on. Autoconf is especially sensitive to this). 4992d1d20fcSmrg . "./$as_me.lineno" 5002d1d20fcSmrg # Exit status is that of the last command. 5012d1d20fcSmrg exit 5028ae04fa6Smrg} 5038ae04fa6Smrg 5042d1d20fcSmrgECHO_C= ECHO_N= ECHO_T= 5052d1d20fcSmrgcase `echo -n x` in #((((( 5062d1d20fcSmrg-n*) 5072d1d20fcSmrg case `echo 'xy\c'` in 5082d1d20fcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5092d1d20fcSmrg xy) ECHO_C='\c';; 5102d1d20fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5112d1d20fcSmrg ECHO_T=' ';; 5122d1d20fcSmrg esac;; 5132d1d20fcSmrg*) 5142d1d20fcSmrg ECHO_N='-n';; 5152d1d20fcSmrgesac 5168ae04fa6Smrg 5172d1d20fcSmrgrm -f conf$$ conf$$.exe conf$$.file 5182d1d20fcSmrgif test -d conf$$.dir; then 5192d1d20fcSmrg rm -f conf$$.dir/conf$$.file 5202d1d20fcSmrgelse 5212d1d20fcSmrg rm -f conf$$.dir 5222d1d20fcSmrg mkdir conf$$.dir 2>/dev/null 5238ae04fa6Smrgfi 5242d1d20fcSmrgif (echo >conf$$.file) 2>/dev/null; then 5252d1d20fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5262d1d20fcSmrg as_ln_s='ln -s' 5272d1d20fcSmrg # ... but there are two gotchas: 5282d1d20fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5292d1d20fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53080f56f3aSmrg # In both cases, we have to default to `cp -pR'. 5312d1d20fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53280f56f3aSmrg as_ln_s='cp -pR' 5332d1d20fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5342d1d20fcSmrg as_ln_s=ln 5352d1d20fcSmrg else 53680f56f3aSmrg as_ln_s='cp -pR' 5372d1d20fcSmrg fi 5388ae04fa6Smrgelse 53980f56f3aSmrg as_ln_s='cp -pR' 5408ae04fa6Smrgfi 5412d1d20fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5422d1d20fcSmrgrmdir conf$$.dir 2>/dev/null 5438ae04fa6Smrg 5442d1d20fcSmrgif mkdir -p . 2>/dev/null; then 5452d1d20fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 5462d1d20fcSmrgelse 5472d1d20fcSmrg test -d ./-p && rmdir ./-p 5482d1d20fcSmrg as_mkdir_p=false 5498ae04fa6Smrgfi 5508ae04fa6Smrg 55180f56f3aSmrgas_test_x='test -x' 55280f56f3aSmrgas_executable_p=as_fn_executable_p 5538ae04fa6Smrg 5542d1d20fcSmrg# Sed expression to map a string onto a valid CPP name. 5552d1d20fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5568ae04fa6Smrg 5572d1d20fcSmrg# Sed expression to map a string onto a valid variable name. 5582d1d20fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5598ae04fa6Smrg 5608ae04fa6Smrg 5612d1d20fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5622d1d20fcSmrgexec 6>&1 5638ae04fa6Smrg 5648ae04fa6Smrg# Name of the host. 5652d1d20fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5668ae04fa6Smrg# so uname gets run too. 5678ae04fa6Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5688ae04fa6Smrg 5698ae04fa6Smrg# 5708ae04fa6Smrg# Initializations. 5718ae04fa6Smrg# 5728ae04fa6Smrgac_default_prefix=/usr/local 5738ae04fa6Smrgac_clean_files= 5748ae04fa6Smrgac_config_libobj_dir=. 5758ae04fa6SmrgLIBOBJS= 5768ae04fa6Smrgcross_compiling=no 5778ae04fa6Smrgsubdirs= 5788ae04fa6SmrgMFLAGS= 5798ae04fa6SmrgMAKEFLAGS= 5808ae04fa6Smrg 5818ae04fa6Smrg# Identity of this package. 5828ae04fa6SmrgPACKAGE_NAME='xvinfo' 5838ae04fa6SmrgPACKAGE_TARNAME='xvinfo' 58480f56f3aSmrgPACKAGE_VERSION='1.1.3' 58580f56f3aSmrgPACKAGE_STRING='xvinfo 1.1.3' 5868ae04fa6SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5872d1d20fcSmrgPACKAGE_URL='' 5888ae04fa6Smrg 589405c8079Smrgac_unique_file="Makefile.am" 59044af7230Smrg# Factoring default headers for most tests. 59144af7230Smrgac_includes_default="\ 59244af7230Smrg#include <stdio.h> 59344af7230Smrg#ifdef HAVE_SYS_TYPES_H 59444af7230Smrg# include <sys/types.h> 59544af7230Smrg#endif 59644af7230Smrg#ifdef HAVE_SYS_STAT_H 59744af7230Smrg# include <sys/stat.h> 59844af7230Smrg#endif 59944af7230Smrg#ifdef STDC_HEADERS 60044af7230Smrg# include <stdlib.h> 60144af7230Smrg# include <stddef.h> 60244af7230Smrg#else 60344af7230Smrg# ifdef HAVE_STDLIB_H 60444af7230Smrg# include <stdlib.h> 60544af7230Smrg# endif 60644af7230Smrg#endif 60744af7230Smrg#ifdef HAVE_STRING_H 60844af7230Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 60944af7230Smrg# include <memory.h> 61044af7230Smrg# endif 61144af7230Smrg# include <string.h> 61244af7230Smrg#endif 61344af7230Smrg#ifdef HAVE_STRINGS_H 61444af7230Smrg# include <strings.h> 61544af7230Smrg#endif 61644af7230Smrg#ifdef HAVE_INTTYPES_H 61744af7230Smrg# include <inttypes.h> 61844af7230Smrg#endif 61944af7230Smrg#ifdef HAVE_STDINT_H 62044af7230Smrg# include <stdint.h> 62144af7230Smrg#endif 62244af7230Smrg#ifdef HAVE_UNISTD_H 62344af7230Smrg# include <unistd.h> 62444af7230Smrg#endif" 62544af7230Smrg 62644af7230Smrgac_subst_vars='am__EXEEXT_FALSE 62744af7230Smrgam__EXEEXT_TRUE 62844af7230SmrgLTLIBOBJS 62944af7230SmrgLIBOBJS 6308ae04fa6SmrgXVINFO_LIBS 63144af7230SmrgXVINFO_CFLAGS 6322d1d20fcSmrgMAN_SUBSTS 6332d1d20fcSmrgXORG_MAN_PAGE 6348ae04fa6SmrgADMIN_MAN_DIR 63544af7230SmrgDRIVER_MAN_DIR 63644af7230SmrgMISC_MAN_DIR 63744af7230SmrgFILE_MAN_DIR 63844af7230SmrgLIB_MAN_DIR 63944af7230SmrgAPP_MAN_DIR 64044af7230SmrgADMIN_MAN_SUFFIX 64144af7230SmrgDRIVER_MAN_SUFFIX 64244af7230SmrgMISC_MAN_SUFFIX 64344af7230SmrgFILE_MAN_SUFFIX 64444af7230SmrgLIB_MAN_SUFFIX 64544af7230SmrgAPP_MAN_SUFFIX 6462d1d20fcSmrgSED 64744af7230Smrghost_os 64844af7230Smrghost_vendor 64944af7230Smrghost_cpu 65044af7230Smrghost 65144af7230Smrgbuild_os 65244af7230Smrgbuild_vendor 65344af7230Smrgbuild_cpu 65444af7230Smrgbuild 6552d1d20fcSmrgINSTALL_CMD 6562d1d20fcSmrgPKG_CONFIG 65744af7230SmrgCHANGELOG_CMD 658405c8079SmrgSTRICT_CFLAGS 65944af7230SmrgCWARNFLAGS 660405c8079SmrgBASE_CFLAGS 66144af7230SmrgEGREP 66244af7230SmrgGREP 66344af7230SmrgCPP 66444af7230Smrgam__fastdepCC_FALSE 66544af7230Smrgam__fastdepCC_TRUE 66644af7230SmrgCCDEPMODE 667405c8079Smrgam__nodep 66844af7230SmrgAMDEPBACKSLASH 66944af7230SmrgAMDEP_FALSE 67044af7230SmrgAMDEP_TRUE 67144af7230Smrgam__quote 67244af7230Smrgam__include 67344af7230SmrgDEPDIR 67444af7230SmrgOBJEXT 67544af7230SmrgEXEEXT 67644af7230Smrgac_ct_CC 67744af7230SmrgCPPFLAGS 67844af7230SmrgLDFLAGS 67944af7230SmrgCFLAGS 68044af7230SmrgCC 68180f56f3aSmrgAM_BACKSLASH 68280f56f3aSmrgAM_DEFAULT_VERBOSITY 68380f56f3aSmrgAM_DEFAULT_V 68480f56f3aSmrgAM_V 68544af7230Smrgam__untar 68644af7230Smrgam__tar 68744af7230SmrgAMTAR 68844af7230Smrgam__leading_dot 68944af7230SmrgSET_MAKE 69044af7230SmrgAWK 69144af7230Smrgmkdir_p 69244af7230SmrgMKDIR_P 69344af7230SmrgINSTALL_STRIP_PROGRAM 69444af7230SmrgSTRIP 69544af7230Smrginstall_sh 69644af7230SmrgMAKEINFO 69744af7230SmrgAUTOHEADER 69844af7230SmrgAUTOMAKE 69944af7230SmrgAUTOCONF 70044af7230SmrgACLOCAL 70144af7230SmrgVERSION 70244af7230SmrgPACKAGE 70344af7230SmrgCYGPATH_W 70444af7230Smrgam__isrc 70544af7230SmrgINSTALL_DATA 70644af7230SmrgINSTALL_SCRIPT 70744af7230SmrgINSTALL_PROGRAM 70844af7230Smrgtarget_alias 70944af7230Smrghost_alias 71044af7230Smrgbuild_alias 71144af7230SmrgLIBS 71244af7230SmrgECHO_T 71344af7230SmrgECHO_N 71444af7230SmrgECHO_C 71544af7230SmrgDEFS 71644af7230Smrgmandir 71744af7230Smrglocaledir 71844af7230Smrglibdir 71944af7230Smrgpsdir 72044af7230Smrgpdfdir 72144af7230Smrgdvidir 72244af7230Smrghtmldir 72344af7230Smrginfodir 72444af7230Smrgdocdir 72544af7230Smrgoldincludedir 72644af7230Smrgincludedir 72744af7230Smrglocalstatedir 72844af7230Smrgsharedstatedir 72944af7230Smrgsysconfdir 73044af7230Smrgdatadir 73144af7230Smrgdatarootdir 73244af7230Smrglibexecdir 73344af7230Smrgsbindir 73444af7230Smrgbindir 73544af7230Smrgprogram_transform_name 73644af7230Smrgprefix 73744af7230Smrgexec_prefix 7382d1d20fcSmrgPACKAGE_URL 73944af7230SmrgPACKAGE_BUGREPORT 74044af7230SmrgPACKAGE_STRING 74144af7230SmrgPACKAGE_VERSION 74244af7230SmrgPACKAGE_TARNAME 74344af7230SmrgPACKAGE_NAME 74444af7230SmrgPATH_SEPARATOR 74544af7230SmrgSHELL' 7468ae04fa6Smrgac_subst_files='' 74744af7230Smrgac_user_opts=' 74844af7230Smrgenable_option_checking 74980f56f3aSmrgenable_silent_rules 75044af7230Smrgenable_dependency_tracking 751405c8079Smrgenable_selective_werror 75244af7230Smrgenable_strict_compilation 75344af7230Smrg' 7548ae04fa6Smrg ac_precious_vars='build_alias 7558ae04fa6Smrghost_alias 7568ae04fa6Smrgtarget_alias 7578ae04fa6SmrgCC 7588ae04fa6SmrgCFLAGS 7598ae04fa6SmrgLDFLAGS 7608ae04fa6SmrgLIBS 7618ae04fa6SmrgCPPFLAGS 76244af7230SmrgCPP 7638ae04fa6SmrgPKG_CONFIG 7648ae04fa6SmrgXVINFO_CFLAGS 7658ae04fa6SmrgXVINFO_LIBS' 7668ae04fa6Smrg 7678ae04fa6Smrg 7688ae04fa6Smrg# Initialize some variables set by options. 7698ae04fa6Smrgac_init_help= 7708ae04fa6Smrgac_init_version=false 77144af7230Smrgac_unrecognized_opts= 77244af7230Smrgac_unrecognized_sep= 7738ae04fa6Smrg# The variables have the same names as the options, with 7748ae04fa6Smrg# dashes changed to underlines. 7758ae04fa6Smrgcache_file=/dev/null 7768ae04fa6Smrgexec_prefix=NONE 7778ae04fa6Smrgno_create= 7788ae04fa6Smrgno_recursion= 7798ae04fa6Smrgprefix=NONE 7808ae04fa6Smrgprogram_prefix=NONE 7818ae04fa6Smrgprogram_suffix=NONE 7828ae04fa6Smrgprogram_transform_name=s,x,x, 7838ae04fa6Smrgsilent= 7848ae04fa6Smrgsite= 7858ae04fa6Smrgsrcdir= 7868ae04fa6Smrgverbose= 7878ae04fa6Smrgx_includes=NONE 7888ae04fa6Smrgx_libraries=NONE 7898ae04fa6Smrg 7908ae04fa6Smrg# Installation directory options. 7918ae04fa6Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7928ae04fa6Smrg# and all the variables that are supposed to be based on exec_prefix 7938ae04fa6Smrg# by default will actually change. 7948ae04fa6Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 7958ae04fa6Smrg# (The list follows the same order as the GNU Coding Standards.) 7968ae04fa6Smrgbindir='${exec_prefix}/bin' 7978ae04fa6Smrgsbindir='${exec_prefix}/sbin' 7988ae04fa6Smrglibexecdir='${exec_prefix}/libexec' 7998ae04fa6Smrgdatarootdir='${prefix}/share' 8008ae04fa6Smrgdatadir='${datarootdir}' 8018ae04fa6Smrgsysconfdir='${prefix}/etc' 8028ae04fa6Smrgsharedstatedir='${prefix}/com' 8038ae04fa6Smrglocalstatedir='${prefix}/var' 8048ae04fa6Smrgincludedir='${prefix}/include' 8058ae04fa6Smrgoldincludedir='/usr/include' 8068ae04fa6Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8078ae04fa6Smrginfodir='${datarootdir}/info' 8088ae04fa6Smrghtmldir='${docdir}' 8098ae04fa6Smrgdvidir='${docdir}' 8108ae04fa6Smrgpdfdir='${docdir}' 8118ae04fa6Smrgpsdir='${docdir}' 8128ae04fa6Smrglibdir='${exec_prefix}/lib' 8138ae04fa6Smrglocaledir='${datarootdir}/locale' 8148ae04fa6Smrgmandir='${datarootdir}/man' 8158ae04fa6Smrg 8168ae04fa6Smrgac_prev= 8178ae04fa6Smrgac_dashdash= 8188ae04fa6Smrgfor ac_option 8198ae04fa6Smrgdo 8208ae04fa6Smrg # If the previous option needs an argument, assign it. 8218ae04fa6Smrg if test -n "$ac_prev"; then 8228ae04fa6Smrg eval $ac_prev=\$ac_option 8238ae04fa6Smrg ac_prev= 8248ae04fa6Smrg continue 8258ae04fa6Smrg fi 8268ae04fa6Smrg 8278ae04fa6Smrg case $ac_option in 8282d1d20fcSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8292d1d20fcSmrg *=) ac_optarg= ;; 8302d1d20fcSmrg *) ac_optarg=yes ;; 8318ae04fa6Smrg esac 8328ae04fa6Smrg 8338ae04fa6Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8348ae04fa6Smrg 8358ae04fa6Smrg case $ac_dashdash$ac_option in 8368ae04fa6Smrg --) 8378ae04fa6Smrg ac_dashdash=yes ;; 8388ae04fa6Smrg 8398ae04fa6Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8408ae04fa6Smrg ac_prev=bindir ;; 8418ae04fa6Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8428ae04fa6Smrg bindir=$ac_optarg ;; 8438ae04fa6Smrg 8448ae04fa6Smrg -build | --build | --buil | --bui | --bu) 8458ae04fa6Smrg ac_prev=build_alias ;; 8468ae04fa6Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8478ae04fa6Smrg build_alias=$ac_optarg ;; 8488ae04fa6Smrg 8498ae04fa6Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8508ae04fa6Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8518ae04fa6Smrg ac_prev=cache_file ;; 8528ae04fa6Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8538ae04fa6Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8548ae04fa6Smrg cache_file=$ac_optarg ;; 8558ae04fa6Smrg 8568ae04fa6Smrg --config-cache | -C) 8578ae04fa6Smrg cache_file=config.cache ;; 8588ae04fa6Smrg 8598ae04fa6Smrg -datadir | --datadir | --datadi | --datad) 8608ae04fa6Smrg ac_prev=datadir ;; 8618ae04fa6Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8628ae04fa6Smrg datadir=$ac_optarg ;; 8638ae04fa6Smrg 8648ae04fa6Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8658ae04fa6Smrg | --dataroo | --dataro | --datar) 8668ae04fa6Smrg ac_prev=datarootdir ;; 8678ae04fa6Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8688ae04fa6Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8698ae04fa6Smrg datarootdir=$ac_optarg ;; 8708ae04fa6Smrg 8718ae04fa6Smrg -disable-* | --disable-*) 87244af7230Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8738ae04fa6Smrg # Reject names that are not valid shell variable names. 87444af7230Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8752d1d20fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 87644af7230Smrg ac_useropt_orig=$ac_useropt 87744af7230Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 87844af7230Smrg case $ac_user_opts in 87944af7230Smrg *" 88044af7230Smrg"enable_$ac_useropt" 88144af7230Smrg"*) ;; 88244af7230Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 88344af7230Smrg ac_unrecognized_sep=', ';; 88444af7230Smrg esac 88544af7230Smrg eval enable_$ac_useropt=no ;; 8868ae04fa6Smrg 8878ae04fa6Smrg -docdir | --docdir | --docdi | --doc | --do) 8888ae04fa6Smrg ac_prev=docdir ;; 8898ae04fa6Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8908ae04fa6Smrg docdir=$ac_optarg ;; 8918ae04fa6Smrg 8928ae04fa6Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8938ae04fa6Smrg ac_prev=dvidir ;; 8948ae04fa6Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8958ae04fa6Smrg dvidir=$ac_optarg ;; 8968ae04fa6Smrg 8978ae04fa6Smrg -enable-* | --enable-*) 89844af7230Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8998ae04fa6Smrg # Reject names that are not valid shell variable names. 90044af7230Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9012d1d20fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 90244af7230Smrg ac_useropt_orig=$ac_useropt 90344af7230Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 90444af7230Smrg case $ac_user_opts in 90544af7230Smrg *" 90644af7230Smrg"enable_$ac_useropt" 90744af7230Smrg"*) ;; 90844af7230Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 90944af7230Smrg ac_unrecognized_sep=', ';; 91044af7230Smrg esac 91144af7230Smrg eval enable_$ac_useropt=\$ac_optarg ;; 9128ae04fa6Smrg 9138ae04fa6Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9148ae04fa6Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9158ae04fa6Smrg | --exec | --exe | --ex) 9168ae04fa6Smrg ac_prev=exec_prefix ;; 9178ae04fa6Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9188ae04fa6Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9198ae04fa6Smrg | --exec=* | --exe=* | --ex=*) 9208ae04fa6Smrg exec_prefix=$ac_optarg ;; 9218ae04fa6Smrg 9228ae04fa6Smrg -gas | --gas | --ga | --g) 9238ae04fa6Smrg # Obsolete; use --with-gas. 9248ae04fa6Smrg with_gas=yes ;; 9258ae04fa6Smrg 9268ae04fa6Smrg -help | --help | --hel | --he | -h) 9278ae04fa6Smrg ac_init_help=long ;; 9288ae04fa6Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9298ae04fa6Smrg ac_init_help=recursive ;; 9308ae04fa6Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9318ae04fa6Smrg ac_init_help=short ;; 9328ae04fa6Smrg 9338ae04fa6Smrg -host | --host | --hos | --ho) 9348ae04fa6Smrg ac_prev=host_alias ;; 9358ae04fa6Smrg -host=* | --host=* | --hos=* | --ho=*) 9368ae04fa6Smrg host_alias=$ac_optarg ;; 9378ae04fa6Smrg 9388ae04fa6Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9398ae04fa6Smrg ac_prev=htmldir ;; 9408ae04fa6Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9418ae04fa6Smrg | --ht=*) 9428ae04fa6Smrg htmldir=$ac_optarg ;; 9438ae04fa6Smrg 9448ae04fa6Smrg -includedir | --includedir | --includedi | --included | --include \ 9458ae04fa6Smrg | --includ | --inclu | --incl | --inc) 9468ae04fa6Smrg ac_prev=includedir ;; 9478ae04fa6Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9488ae04fa6Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9498ae04fa6Smrg includedir=$ac_optarg ;; 9508ae04fa6Smrg 9518ae04fa6Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9528ae04fa6Smrg ac_prev=infodir ;; 9538ae04fa6Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9548ae04fa6Smrg infodir=$ac_optarg ;; 9558ae04fa6Smrg 9568ae04fa6Smrg -libdir | --libdir | --libdi | --libd) 9578ae04fa6Smrg ac_prev=libdir ;; 9588ae04fa6Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9598ae04fa6Smrg libdir=$ac_optarg ;; 9608ae04fa6Smrg 9618ae04fa6Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9628ae04fa6Smrg | --libexe | --libex | --libe) 9638ae04fa6Smrg ac_prev=libexecdir ;; 9648ae04fa6Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9658ae04fa6Smrg | --libexe=* | --libex=* | --libe=*) 9668ae04fa6Smrg libexecdir=$ac_optarg ;; 9678ae04fa6Smrg 9688ae04fa6Smrg -localedir | --localedir | --localedi | --localed | --locale) 9698ae04fa6Smrg ac_prev=localedir ;; 9708ae04fa6Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9718ae04fa6Smrg localedir=$ac_optarg ;; 9728ae04fa6Smrg 9738ae04fa6Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9748ae04fa6Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9758ae04fa6Smrg ac_prev=localstatedir ;; 9768ae04fa6Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9778ae04fa6Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9788ae04fa6Smrg localstatedir=$ac_optarg ;; 9798ae04fa6Smrg 9808ae04fa6Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9818ae04fa6Smrg ac_prev=mandir ;; 9828ae04fa6Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9838ae04fa6Smrg mandir=$ac_optarg ;; 9848ae04fa6Smrg 9858ae04fa6Smrg -nfp | --nfp | --nf) 9868ae04fa6Smrg # Obsolete; use --without-fp. 9878ae04fa6Smrg with_fp=no ;; 9888ae04fa6Smrg 9898ae04fa6Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9908ae04fa6Smrg | --no-cr | --no-c | -n) 9918ae04fa6Smrg no_create=yes ;; 9928ae04fa6Smrg 9938ae04fa6Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9948ae04fa6Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9958ae04fa6Smrg no_recursion=yes ;; 9968ae04fa6Smrg 9978ae04fa6Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9988ae04fa6Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9998ae04fa6Smrg | --oldin | --oldi | --old | --ol | --o) 10008ae04fa6Smrg ac_prev=oldincludedir ;; 10018ae04fa6Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10028ae04fa6Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10038ae04fa6Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10048ae04fa6Smrg oldincludedir=$ac_optarg ;; 10058ae04fa6Smrg 10068ae04fa6Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10078ae04fa6Smrg ac_prev=prefix ;; 10088ae04fa6Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10098ae04fa6Smrg prefix=$ac_optarg ;; 10108ae04fa6Smrg 10118ae04fa6Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10128ae04fa6Smrg | --program-pre | --program-pr | --program-p) 10138ae04fa6Smrg ac_prev=program_prefix ;; 10148ae04fa6Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10158ae04fa6Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10168ae04fa6Smrg program_prefix=$ac_optarg ;; 10178ae04fa6Smrg 10188ae04fa6Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10198ae04fa6Smrg | --program-suf | --program-su | --program-s) 10208ae04fa6Smrg ac_prev=program_suffix ;; 10218ae04fa6Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10228ae04fa6Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10238ae04fa6Smrg program_suffix=$ac_optarg ;; 10248ae04fa6Smrg 10258ae04fa6Smrg -program-transform-name | --program-transform-name \ 10268ae04fa6Smrg | --program-transform-nam | --program-transform-na \ 10278ae04fa6Smrg | --program-transform-n | --program-transform- \ 10288ae04fa6Smrg | --program-transform | --program-transfor \ 10298ae04fa6Smrg | --program-transfo | --program-transf \ 10308ae04fa6Smrg | --program-trans | --program-tran \ 10318ae04fa6Smrg | --progr-tra | --program-tr | --program-t) 10328ae04fa6Smrg ac_prev=program_transform_name ;; 10338ae04fa6Smrg -program-transform-name=* | --program-transform-name=* \ 10348ae04fa6Smrg | --program-transform-nam=* | --program-transform-na=* \ 10358ae04fa6Smrg | --program-transform-n=* | --program-transform-=* \ 10368ae04fa6Smrg | --program-transform=* | --program-transfor=* \ 10378ae04fa6Smrg | --program-transfo=* | --program-transf=* \ 10388ae04fa6Smrg | --program-trans=* | --program-tran=* \ 10398ae04fa6Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10408ae04fa6Smrg program_transform_name=$ac_optarg ;; 10418ae04fa6Smrg 10428ae04fa6Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10438ae04fa6Smrg ac_prev=pdfdir ;; 10448ae04fa6Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10458ae04fa6Smrg pdfdir=$ac_optarg ;; 10468ae04fa6Smrg 10478ae04fa6Smrg -psdir | --psdir | --psdi | --psd | --ps) 10488ae04fa6Smrg ac_prev=psdir ;; 10498ae04fa6Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10508ae04fa6Smrg psdir=$ac_optarg ;; 10518ae04fa6Smrg 10528ae04fa6Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10538ae04fa6Smrg | -silent | --silent | --silen | --sile | --sil) 10548ae04fa6Smrg silent=yes ;; 10558ae04fa6Smrg 10568ae04fa6Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10578ae04fa6Smrg ac_prev=sbindir ;; 10588ae04fa6Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10598ae04fa6Smrg | --sbi=* | --sb=*) 10608ae04fa6Smrg sbindir=$ac_optarg ;; 10618ae04fa6Smrg 10628ae04fa6Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10638ae04fa6Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10648ae04fa6Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10658ae04fa6Smrg | --sha | --sh) 10668ae04fa6Smrg ac_prev=sharedstatedir ;; 10678ae04fa6Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10688ae04fa6Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10698ae04fa6Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10708ae04fa6Smrg | --sha=* | --sh=*) 10718ae04fa6Smrg sharedstatedir=$ac_optarg ;; 10728ae04fa6Smrg 10738ae04fa6Smrg -site | --site | --sit) 10748ae04fa6Smrg ac_prev=site ;; 10758ae04fa6Smrg -site=* | --site=* | --sit=*) 10768ae04fa6Smrg site=$ac_optarg ;; 10778ae04fa6Smrg 10788ae04fa6Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10798ae04fa6Smrg ac_prev=srcdir ;; 10808ae04fa6Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10818ae04fa6Smrg srcdir=$ac_optarg ;; 10828ae04fa6Smrg 10838ae04fa6Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10848ae04fa6Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10858ae04fa6Smrg ac_prev=sysconfdir ;; 10868ae04fa6Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10878ae04fa6Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10888ae04fa6Smrg sysconfdir=$ac_optarg ;; 10898ae04fa6Smrg 10908ae04fa6Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10918ae04fa6Smrg ac_prev=target_alias ;; 10928ae04fa6Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10938ae04fa6Smrg target_alias=$ac_optarg ;; 10948ae04fa6Smrg 10958ae04fa6Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10968ae04fa6Smrg verbose=yes ;; 10978ae04fa6Smrg 10988ae04fa6Smrg -version | --version | --versio | --versi | --vers | -V) 10998ae04fa6Smrg ac_init_version=: ;; 11008ae04fa6Smrg 11018ae04fa6Smrg -with-* | --with-*) 110244af7230Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11038ae04fa6Smrg # Reject names that are not valid shell variable names. 110444af7230Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11052d1d20fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 110644af7230Smrg ac_useropt_orig=$ac_useropt 110744af7230Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 110844af7230Smrg case $ac_user_opts in 110944af7230Smrg *" 111044af7230Smrg"with_$ac_useropt" 111144af7230Smrg"*) ;; 111244af7230Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 111344af7230Smrg ac_unrecognized_sep=', ';; 111444af7230Smrg esac 111544af7230Smrg eval with_$ac_useropt=\$ac_optarg ;; 11168ae04fa6Smrg 11178ae04fa6Smrg -without-* | --without-*) 111844af7230Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11198ae04fa6Smrg # Reject names that are not valid shell variable names. 112044af7230Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11212d1d20fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 112244af7230Smrg ac_useropt_orig=$ac_useropt 112344af7230Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 112444af7230Smrg case $ac_user_opts in 112544af7230Smrg *" 112644af7230Smrg"with_$ac_useropt" 112744af7230Smrg"*) ;; 112844af7230Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 112944af7230Smrg ac_unrecognized_sep=', ';; 113044af7230Smrg esac 113144af7230Smrg eval with_$ac_useropt=no ;; 11328ae04fa6Smrg 11338ae04fa6Smrg --x) 11348ae04fa6Smrg # Obsolete; use --with-x. 11358ae04fa6Smrg with_x=yes ;; 11368ae04fa6Smrg 11378ae04fa6Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11388ae04fa6Smrg | --x-incl | --x-inc | --x-in | --x-i) 11398ae04fa6Smrg ac_prev=x_includes ;; 11408ae04fa6Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11418ae04fa6Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11428ae04fa6Smrg x_includes=$ac_optarg ;; 11438ae04fa6Smrg 11448ae04fa6Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11458ae04fa6Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11468ae04fa6Smrg ac_prev=x_libraries ;; 11478ae04fa6Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11488ae04fa6Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11498ae04fa6Smrg x_libraries=$ac_optarg ;; 11508ae04fa6Smrg 11512d1d20fcSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11522d1d20fcSmrgTry \`$0 --help' for more information" 11538ae04fa6Smrg ;; 11548ae04fa6Smrg 11558ae04fa6Smrg *=*) 11568ae04fa6Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11578ae04fa6Smrg # Reject names that are not valid shell variable names. 11582d1d20fcSmrg case $ac_envvar in #( 11592d1d20fcSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11602d1d20fcSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11612d1d20fcSmrg esac 11628ae04fa6Smrg eval $ac_envvar=\$ac_optarg 11638ae04fa6Smrg export $ac_envvar ;; 11648ae04fa6Smrg 11658ae04fa6Smrg *) 11668ae04fa6Smrg # FIXME: should be removed in autoconf 3.0. 116744af7230Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11688ae04fa6Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 116944af7230Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11702d1d20fcSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11718ae04fa6Smrg ;; 11728ae04fa6Smrg 11738ae04fa6Smrg esac 11748ae04fa6Smrgdone 11758ae04fa6Smrg 11768ae04fa6Smrgif test -n "$ac_prev"; then 11778ae04fa6Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11782d1d20fcSmrg as_fn_error $? "missing argument to $ac_option" 11798ae04fa6Smrgfi 11808ae04fa6Smrg 118144af7230Smrgif test -n "$ac_unrecognized_opts"; then 118244af7230Smrg case $enable_option_checking in 118344af7230Smrg no) ;; 11842d1d20fcSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 118544af7230Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 118644af7230Smrg esac 118744af7230Smrgfi 118844af7230Smrg 118944af7230Smrg# Check all directory arguments for consistency. 11908ae04fa6Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11918ae04fa6Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11928ae04fa6Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11938ae04fa6Smrg libdir localedir mandir 11948ae04fa6Smrgdo 11958ae04fa6Smrg eval ac_val=\$$ac_var 119644af7230Smrg # Remove trailing slashes. 119744af7230Smrg case $ac_val in 119844af7230Smrg */ ) 119944af7230Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 120044af7230Smrg eval $ac_var=\$ac_val;; 120144af7230Smrg esac 120244af7230Smrg # Be sure to have absolute directory names. 12038ae04fa6Smrg case $ac_val in 12048ae04fa6Smrg [\\/$]* | ?:[\\/]* ) continue;; 12058ae04fa6Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12068ae04fa6Smrg esac 12072d1d20fcSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12088ae04fa6Smrgdone 12098ae04fa6Smrg 12108ae04fa6Smrg# There might be people who depend on the old broken behavior: `$host' 12118ae04fa6Smrg# used to hold the argument of --host etc. 12128ae04fa6Smrg# FIXME: To remove some day. 12138ae04fa6Smrgbuild=$build_alias 12148ae04fa6Smrghost=$host_alias 12158ae04fa6Smrgtarget=$target_alias 12168ae04fa6Smrg 12178ae04fa6Smrg# FIXME: To remove some day. 12188ae04fa6Smrgif test "x$host_alias" != x; then 12198ae04fa6Smrg if test "x$build_alias" = x; then 12208ae04fa6Smrg cross_compiling=maybe 12218ae04fa6Smrg elif test "x$build_alias" != "x$host_alias"; then 12228ae04fa6Smrg cross_compiling=yes 12238ae04fa6Smrg fi 12248ae04fa6Smrgfi 12258ae04fa6Smrg 12268ae04fa6Smrgac_tool_prefix= 12278ae04fa6Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12288ae04fa6Smrg 12298ae04fa6Smrgtest "$silent" = yes && exec 6>/dev/null 12308ae04fa6Smrg 12318ae04fa6Smrg 12328ae04fa6Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12338ae04fa6Smrgac_ls_di=`ls -di .` && 12348ae04fa6Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12352d1d20fcSmrg as_fn_error $? "working directory cannot be determined" 12368ae04fa6Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12372d1d20fcSmrg as_fn_error $? "pwd does not report name of working directory" 12388ae04fa6Smrg 12398ae04fa6Smrg 12408ae04fa6Smrg# Find the source files, if location was not specified. 12418ae04fa6Smrgif test -z "$srcdir"; then 12428ae04fa6Smrg ac_srcdir_defaulted=yes 12438ae04fa6Smrg # Try the directory containing this script, then the parent directory. 124444af7230Smrg ac_confdir=`$as_dirname -- "$as_myself" || 124544af7230Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124644af7230Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 124744af7230Smrg X"$as_myself" : 'X\(//\)$' \| \ 124844af7230Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 124944af7230Smrg$as_echo X"$as_myself" | 12508ae04fa6Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12518ae04fa6Smrg s//\1/ 12528ae04fa6Smrg q 12538ae04fa6Smrg } 12548ae04fa6Smrg /^X\(\/\/\)[^/].*/{ 12558ae04fa6Smrg s//\1/ 12568ae04fa6Smrg q 12578ae04fa6Smrg } 12588ae04fa6Smrg /^X\(\/\/\)$/{ 12598ae04fa6Smrg s//\1/ 12608ae04fa6Smrg q 12618ae04fa6Smrg } 12628ae04fa6Smrg /^X\(\/\).*/{ 12638ae04fa6Smrg s//\1/ 12648ae04fa6Smrg q 12658ae04fa6Smrg } 12668ae04fa6Smrg s/.*/./; q'` 12678ae04fa6Smrg srcdir=$ac_confdir 12688ae04fa6Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12698ae04fa6Smrg srcdir=.. 12708ae04fa6Smrg fi 12718ae04fa6Smrgelse 12728ae04fa6Smrg ac_srcdir_defaulted=no 12738ae04fa6Smrgfi 12748ae04fa6Smrgif test ! -r "$srcdir/$ac_unique_file"; then 12758ae04fa6Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12762d1d20fcSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12778ae04fa6Smrgfi 12788ae04fa6Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12798ae04fa6Smrgac_abs_confdir=`( 12802d1d20fcSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12818ae04fa6Smrg pwd)` 12828ae04fa6Smrg# When building in place, set srcdir=. 12838ae04fa6Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12848ae04fa6Smrg srcdir=. 12858ae04fa6Smrgfi 12868ae04fa6Smrg# Remove unnecessary trailing slashes from srcdir. 12878ae04fa6Smrg# Double slashes in file names in object file debugging info 12888ae04fa6Smrg# mess up M-x gdb in Emacs. 12898ae04fa6Smrgcase $srcdir in 12908ae04fa6Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12918ae04fa6Smrgesac 12928ae04fa6Smrgfor ac_var in $ac_precious_vars; do 12938ae04fa6Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12948ae04fa6Smrg eval ac_env_${ac_var}_value=\$${ac_var} 12958ae04fa6Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12968ae04fa6Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12978ae04fa6Smrgdone 12988ae04fa6Smrg 12998ae04fa6Smrg# 13008ae04fa6Smrg# Report the --help message. 13018ae04fa6Smrg# 13028ae04fa6Smrgif test "$ac_init_help" = "long"; then 13038ae04fa6Smrg # Omit some internal or obsolete options to make the list less imposing. 13048ae04fa6Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13058ae04fa6Smrg cat <<_ACEOF 130680f56f3aSmrg\`configure' configures xvinfo 1.1.3 to adapt to many kinds of systems. 13078ae04fa6Smrg 13088ae04fa6SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13098ae04fa6Smrg 13108ae04fa6SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13118ae04fa6SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13128ae04fa6Smrg 13138ae04fa6SmrgDefaults for the options are specified in brackets. 13148ae04fa6Smrg 13158ae04fa6SmrgConfiguration: 13168ae04fa6Smrg -h, --help display this help and exit 13178ae04fa6Smrg --help=short display options specific to this package 13188ae04fa6Smrg --help=recursive display the short help of all the included packages 13198ae04fa6Smrg -V, --version display version information and exit 13202d1d20fcSmrg -q, --quiet, --silent do not print \`checking ...' messages 13218ae04fa6Smrg --cache-file=FILE cache test results in FILE [disabled] 13228ae04fa6Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13238ae04fa6Smrg -n, --no-create do not create output files 13248ae04fa6Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13258ae04fa6Smrg 13268ae04fa6SmrgInstallation directories: 13278ae04fa6Smrg --prefix=PREFIX install architecture-independent files in PREFIX 132844af7230Smrg [$ac_default_prefix] 13298ae04fa6Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 133044af7230Smrg [PREFIX] 13318ae04fa6Smrg 13328ae04fa6SmrgBy default, \`make install' will install all the files in 13338ae04fa6Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13348ae04fa6Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13358ae04fa6Smrgfor instance \`--prefix=\$HOME'. 13368ae04fa6Smrg 13378ae04fa6SmrgFor better control, use the options below. 13388ae04fa6Smrg 13398ae04fa6SmrgFine tuning of the installation directories: 134044af7230Smrg --bindir=DIR user executables [EPREFIX/bin] 134144af7230Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 134244af7230Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 134344af7230Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 134444af7230Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 134544af7230Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 134644af7230Smrg --libdir=DIR object code libraries [EPREFIX/lib] 134744af7230Smrg --includedir=DIR C header files [PREFIX/include] 134844af7230Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 134944af7230Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 135044af7230Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 135144af7230Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 135244af7230Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 135344af7230Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 135444af7230Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xvinfo] 135544af7230Smrg --htmldir=DIR html documentation [DOCDIR] 135644af7230Smrg --dvidir=DIR dvi documentation [DOCDIR] 135744af7230Smrg --pdfdir=DIR pdf documentation [DOCDIR] 135844af7230Smrg --psdir=DIR ps documentation [DOCDIR] 13598ae04fa6Smrg_ACEOF 13608ae04fa6Smrg 13618ae04fa6Smrg cat <<\_ACEOF 13628ae04fa6Smrg 13638ae04fa6SmrgProgram names: 13648ae04fa6Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13658ae04fa6Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13668ae04fa6Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13678ae04fa6Smrg 13688ae04fa6SmrgSystem types: 13698ae04fa6Smrg --build=BUILD configure for building on BUILD [guessed] 13708ae04fa6Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13718ae04fa6Smrg_ACEOF 13728ae04fa6Smrgfi 13738ae04fa6Smrg 13748ae04fa6Smrgif test -n "$ac_init_help"; then 13758ae04fa6Smrg case $ac_init_help in 137680f56f3aSmrg short | recursive ) echo "Configuration of xvinfo 1.1.3:";; 13778ae04fa6Smrg esac 13788ae04fa6Smrg cat <<\_ACEOF 13798ae04fa6Smrg 13808ae04fa6SmrgOptional Features: 138144af7230Smrg --disable-option-checking ignore unrecognized --enable/--with options 13828ae04fa6Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13838ae04fa6Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 138480f56f3aSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 138580f56f3aSmrg --disable-silent-rules verbose build output (undo: "make V=0") 138680f56f3aSmrg --enable-dependency-tracking 138780f56f3aSmrg do not reject slow dependency extractors 138880f56f3aSmrg --disable-dependency-tracking 138980f56f3aSmrg speeds up one-time build 1390405c8079Smrg --disable-selective-werror 1391405c8079Smrg Turn off selective compiler errors. (default: 1392405c8079Smrg enabled) 139344af7230Smrg --enable-strict-compilation 139444af7230Smrg Enable all warnings from compiler and make them 139544af7230Smrg errors (default: disabled) 13968ae04fa6Smrg 13978ae04fa6SmrgSome influential environment variables: 13988ae04fa6Smrg CC C compiler command 13998ae04fa6Smrg CFLAGS C compiler flags 14008ae04fa6Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14018ae04fa6Smrg nonstandard directory <lib dir> 14028ae04fa6Smrg LIBS libraries to pass to the linker, e.g. -l<library> 14032d1d20fcSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14048ae04fa6Smrg you have headers in a nonstandard directory <include dir> 140544af7230Smrg CPP C preprocessor 14068ae04fa6Smrg PKG_CONFIG path to pkg-config utility 14078ae04fa6Smrg XVINFO_CFLAGS 14088ae04fa6Smrg C compiler flags for XVINFO, overriding pkg-config 14098ae04fa6Smrg XVINFO_LIBS linker flags for XVINFO, overriding pkg-config 14108ae04fa6Smrg 14118ae04fa6SmrgUse these variables to override the choices made by `configure' or to help 14128ae04fa6Smrgit to find libraries and programs with nonstandard names/locations. 14138ae04fa6Smrg 14148ae04fa6SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14158ae04fa6Smrg_ACEOF 14168ae04fa6Smrgac_status=$? 14178ae04fa6Smrgfi 14188ae04fa6Smrg 14198ae04fa6Smrgif test "$ac_init_help" = "recursive"; then 14208ae04fa6Smrg # If there are subdirs, report their specific --help. 14218ae04fa6Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 142244af7230Smrg test -d "$ac_dir" || 142344af7230Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 142444af7230Smrg continue 14258ae04fa6Smrg ac_builddir=. 14268ae04fa6Smrg 14278ae04fa6Smrgcase "$ac_dir" in 14288ae04fa6Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14298ae04fa6Smrg*) 143044af7230Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14318ae04fa6Smrg # A ".." for each directory in $ac_dir_suffix. 143244af7230Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14338ae04fa6Smrg case $ac_top_builddir_sub in 14348ae04fa6Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14358ae04fa6Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14368ae04fa6Smrg esac ;; 14378ae04fa6Smrgesac 14388ae04fa6Smrgac_abs_top_builddir=$ac_pwd 14398ae04fa6Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14408ae04fa6Smrg# for backward compatibility: 14418ae04fa6Smrgac_top_builddir=$ac_top_build_prefix 14428ae04fa6Smrg 14438ae04fa6Smrgcase $srcdir in 14448ae04fa6Smrg .) # We are building in place. 14458ae04fa6Smrg ac_srcdir=. 14468ae04fa6Smrg ac_top_srcdir=$ac_top_builddir_sub 14478ae04fa6Smrg ac_abs_top_srcdir=$ac_pwd ;; 14488ae04fa6Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14498ae04fa6Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14508ae04fa6Smrg ac_top_srcdir=$srcdir 14518ae04fa6Smrg ac_abs_top_srcdir=$srcdir ;; 14528ae04fa6Smrg *) # Relative name. 14538ae04fa6Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14548ae04fa6Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14558ae04fa6Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14568ae04fa6Smrgesac 14578ae04fa6Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14588ae04fa6Smrg 14598ae04fa6Smrg cd "$ac_dir" || { ac_status=$?; continue; } 14608ae04fa6Smrg # Check for guested configure. 14618ae04fa6Smrg if test -f "$ac_srcdir/configure.gnu"; then 14628ae04fa6Smrg echo && 14638ae04fa6Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14648ae04fa6Smrg elif test -f "$ac_srcdir/configure"; then 14658ae04fa6Smrg echo && 14668ae04fa6Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14678ae04fa6Smrg else 146844af7230Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14698ae04fa6Smrg fi || ac_status=$? 14708ae04fa6Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14718ae04fa6Smrg done 14728ae04fa6Smrgfi 14738ae04fa6Smrg 14748ae04fa6Smrgtest -n "$ac_init_help" && exit $ac_status 14758ae04fa6Smrgif $ac_init_version; then 14768ae04fa6Smrg cat <<\_ACEOF 147780f56f3aSmrgxvinfo configure 1.1.3 147880f56f3aSmrggenerated by GNU Autoconf 2.69 14798ae04fa6Smrg 148080f56f3aSmrgCopyright (C) 2012 Free Software Foundation, Inc. 14818ae04fa6SmrgThis configure script is free software; the Free Software Foundation 14828ae04fa6Smrggives unlimited permission to copy, distribute and modify it. 14838ae04fa6Smrg_ACEOF 14848ae04fa6Smrg exit 14858ae04fa6Smrgfi 14868ae04fa6Smrg 14872d1d20fcSmrg## ------------------------ ## 14882d1d20fcSmrg## Autoconf initialization. ## 14892d1d20fcSmrg## ------------------------ ## 14908ae04fa6Smrg 14912d1d20fcSmrg# ac_fn_c_try_compile LINENO 14922d1d20fcSmrg# -------------------------- 14932d1d20fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 14942d1d20fcSmrgac_fn_c_try_compile () 14958ae04fa6Smrg{ 14962d1d20fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14972d1d20fcSmrg rm -f conftest.$ac_objext 14982d1d20fcSmrg if { { ac_try="$ac_compile" 14992d1d20fcSmrgcase "(($ac_try" in 15002d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15012d1d20fcSmrg *) ac_try_echo=$ac_try;; 15022d1d20fcSmrgesac 15032d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15042d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 15052d1d20fcSmrg (eval "$ac_compile") 2>conftest.err 15062d1d20fcSmrg ac_status=$? 15072d1d20fcSmrg if test -s conftest.err; then 15082d1d20fcSmrg grep -v '^ *+' conftest.err >conftest.er1 15092d1d20fcSmrg cat conftest.er1 >&5 15102d1d20fcSmrg mv -f conftest.er1 conftest.err 15112d1d20fcSmrg fi 15122d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15132d1d20fcSmrg test $ac_status = 0; } && { 15142d1d20fcSmrg test -z "$ac_c_werror_flag" || 15152d1d20fcSmrg test ! -s conftest.err 15162d1d20fcSmrg } && test -s conftest.$ac_objext; then : 15172d1d20fcSmrg ac_retval=0 15182d1d20fcSmrgelse 15192d1d20fcSmrg $as_echo "$as_me: failed program was:" >&5 15202d1d20fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15218ae04fa6Smrg 15222d1d20fcSmrg ac_retval=1 15232d1d20fcSmrgfi 15242d1d20fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15252d1d20fcSmrg as_fn_set_status $ac_retval 15268ae04fa6Smrg 15272d1d20fcSmrg} # ac_fn_c_try_compile 15288ae04fa6Smrg 15292d1d20fcSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15302d1d20fcSmrg# --------------------------------------------- 15312d1d20fcSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15322d1d20fcSmrg# accordingly. 15332d1d20fcSmrgac_fn_c_check_decl () 15342d1d20fcSmrg{ 15352d1d20fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15362d1d20fcSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15372d1d20fcSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15382d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15392d1d20fcSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15402d1d20fcSmrgif eval \${$3+:} false; then : 15412d1d20fcSmrg $as_echo_n "(cached) " >&6 15422d1d20fcSmrgelse 15432d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15442d1d20fcSmrg/* end confdefs.h. */ 15452d1d20fcSmrg$4 15462d1d20fcSmrgint 15472d1d20fcSmrgmain () 15482d1d20fcSmrg{ 15492d1d20fcSmrg#ifndef $as_decl_name 15502d1d20fcSmrg#ifdef __cplusplus 15512d1d20fcSmrg (void) $as_decl_use; 15522d1d20fcSmrg#else 15532d1d20fcSmrg (void) $as_decl_name; 15542d1d20fcSmrg#endif 15552d1d20fcSmrg#endif 15562d1d20fcSmrg 15572d1d20fcSmrg ; 15582d1d20fcSmrg return 0; 15592d1d20fcSmrg} 15602d1d20fcSmrg_ACEOF 15612d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 15622d1d20fcSmrg eval "$3=yes" 15632d1d20fcSmrgelse 15642d1d20fcSmrg eval "$3=no" 15652d1d20fcSmrgfi 15662d1d20fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15672d1d20fcSmrgfi 15682d1d20fcSmrgeval ac_res=\$$3 15692d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15702d1d20fcSmrg$as_echo "$ac_res" >&6; } 15712d1d20fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15722d1d20fcSmrg 15732d1d20fcSmrg} # ac_fn_c_check_decl 15742d1d20fcSmrg 15752d1d20fcSmrg# ac_fn_c_try_cpp LINENO 15762d1d20fcSmrg# ---------------------- 15772d1d20fcSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15782d1d20fcSmrgac_fn_c_try_cpp () 15792d1d20fcSmrg{ 15802d1d20fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15812d1d20fcSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15822d1d20fcSmrgcase "(($ac_try" in 15832d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15842d1d20fcSmrg *) ac_try_echo=$ac_try;; 15852d1d20fcSmrgesac 15862d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15872d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 15882d1d20fcSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15892d1d20fcSmrg ac_status=$? 15902d1d20fcSmrg if test -s conftest.err; then 15912d1d20fcSmrg grep -v '^ *+' conftest.err >conftest.er1 15922d1d20fcSmrg cat conftest.er1 >&5 15932d1d20fcSmrg mv -f conftest.er1 conftest.err 15942d1d20fcSmrg fi 15952d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15962d1d20fcSmrg test $ac_status = 0; } > conftest.i && { 15972d1d20fcSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15982d1d20fcSmrg test ! -s conftest.err 15992d1d20fcSmrg }; then : 16002d1d20fcSmrg ac_retval=0 16012d1d20fcSmrgelse 16022d1d20fcSmrg $as_echo "$as_me: failed program was:" >&5 16032d1d20fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 16042d1d20fcSmrg 16052d1d20fcSmrg ac_retval=1 16062d1d20fcSmrgfi 16072d1d20fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16082d1d20fcSmrg as_fn_set_status $ac_retval 16092d1d20fcSmrg 16102d1d20fcSmrg} # ac_fn_c_try_cpp 16112d1d20fcSmrg 16122d1d20fcSmrg# ac_fn_c_try_run LINENO 16132d1d20fcSmrg# ---------------------- 16142d1d20fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16152d1d20fcSmrg# that executables *can* be run. 16162d1d20fcSmrgac_fn_c_try_run () 16172d1d20fcSmrg{ 16182d1d20fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16192d1d20fcSmrg if { { ac_try="$ac_link" 16202d1d20fcSmrgcase "(($ac_try" in 16212d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16222d1d20fcSmrg *) ac_try_echo=$ac_try;; 16232d1d20fcSmrgesac 16242d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16252d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 16262d1d20fcSmrg (eval "$ac_link") 2>&5 16272d1d20fcSmrg ac_status=$? 16282d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16292d1d20fcSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16302d1d20fcSmrg { { case "(($ac_try" in 16312d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16322d1d20fcSmrg *) ac_try_echo=$ac_try;; 16332d1d20fcSmrgesac 16342d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16352d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 16362d1d20fcSmrg (eval "$ac_try") 2>&5 16372d1d20fcSmrg ac_status=$? 16382d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16392d1d20fcSmrg test $ac_status = 0; }; }; then : 16402d1d20fcSmrg ac_retval=0 16412d1d20fcSmrgelse 16422d1d20fcSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 16432d1d20fcSmrg $as_echo "$as_me: failed program was:" >&5 16442d1d20fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 16452d1d20fcSmrg 16462d1d20fcSmrg ac_retval=$ac_status 16472d1d20fcSmrgfi 16482d1d20fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16492d1d20fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16502d1d20fcSmrg as_fn_set_status $ac_retval 16512d1d20fcSmrg 16522d1d20fcSmrg} # ac_fn_c_try_run 16532d1d20fcSmrg 16542d1d20fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16552d1d20fcSmrg# ------------------------------------------------------- 16562d1d20fcSmrg# Tests whether HEADER exists and can be compiled using the include files in 16572d1d20fcSmrg# INCLUDES, setting the cache variable VAR accordingly. 16582d1d20fcSmrgac_fn_c_check_header_compile () 16592d1d20fcSmrg{ 16602d1d20fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16612d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16622d1d20fcSmrg$as_echo_n "checking for $2... " >&6; } 16632d1d20fcSmrgif eval \${$3+:} false; then : 16642d1d20fcSmrg $as_echo_n "(cached) " >&6 16652d1d20fcSmrgelse 16662d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16672d1d20fcSmrg/* end confdefs.h. */ 16682d1d20fcSmrg$4 16692d1d20fcSmrg#include <$2> 16702d1d20fcSmrg_ACEOF 16712d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 16722d1d20fcSmrg eval "$3=yes" 16732d1d20fcSmrgelse 16742d1d20fcSmrg eval "$3=no" 16752d1d20fcSmrgfi 16762d1d20fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16772d1d20fcSmrgfi 16782d1d20fcSmrgeval ac_res=\$$3 16792d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16802d1d20fcSmrg$as_echo "$ac_res" >&6; } 16812d1d20fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16822d1d20fcSmrg 16832d1d20fcSmrg} # ac_fn_c_check_header_compile 1684405c8079Smrg 1685405c8079Smrg# ac_fn_c_try_link LINENO 1686405c8079Smrg# ----------------------- 1687405c8079Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1688405c8079Smrgac_fn_c_try_link () 1689405c8079Smrg{ 1690405c8079Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691405c8079Smrg rm -f conftest.$ac_objext conftest$ac_exeext 1692405c8079Smrg if { { ac_try="$ac_link" 1693405c8079Smrgcase "(($ac_try" in 1694405c8079Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695405c8079Smrg *) ac_try_echo=$ac_try;; 1696405c8079Smrgesac 1697405c8079Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698405c8079Smrg$as_echo "$ac_try_echo"; } >&5 1699405c8079Smrg (eval "$ac_link") 2>conftest.err 1700405c8079Smrg ac_status=$? 1701405c8079Smrg if test -s conftest.err; then 1702405c8079Smrg grep -v '^ *+' conftest.err >conftest.er1 1703405c8079Smrg cat conftest.er1 >&5 1704405c8079Smrg mv -f conftest.er1 conftest.err 1705405c8079Smrg fi 1706405c8079Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707405c8079Smrg test $ac_status = 0; } && { 1708405c8079Smrg test -z "$ac_c_werror_flag" || 1709405c8079Smrg test ! -s conftest.err 1710405c8079Smrg } && test -s conftest$ac_exeext && { 1711405c8079Smrg test "$cross_compiling" = yes || 171280f56f3aSmrg test -x conftest$ac_exeext 1713405c8079Smrg }; then : 1714405c8079Smrg ac_retval=0 1715405c8079Smrgelse 1716405c8079Smrg $as_echo "$as_me: failed program was:" >&5 1717405c8079Smrgsed 's/^/| /' conftest.$ac_ext >&5 1718405c8079Smrg 1719405c8079Smrg ac_retval=1 1720405c8079Smrgfi 1721405c8079Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1722405c8079Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1723405c8079Smrg # interfere with the next link command; also delete a directory that is 1724405c8079Smrg # left behind by Apple's compiler. We do this before executing the actions. 1725405c8079Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726405c8079Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727405c8079Smrg as_fn_set_status $ac_retval 1728405c8079Smrg 1729405c8079Smrg} # ac_fn_c_try_link 17302d1d20fcSmrgcat >config.log <<_ACEOF 17312d1d20fcSmrgThis file contains any messages produced by compilers while 17322d1d20fcSmrgrunning configure, to aid debugging if configure makes a mistake. 17332d1d20fcSmrg 173480f56f3aSmrgIt was created by xvinfo $as_me 1.1.3, which was 173580f56f3aSmrggenerated by GNU Autoconf 2.69. Invocation command line was 17362d1d20fcSmrg 17372d1d20fcSmrg $ $0 $@ 17382d1d20fcSmrg 17392d1d20fcSmrg_ACEOF 17402d1d20fcSmrgexec 5>>config.log 17412d1d20fcSmrg{ 17422d1d20fcSmrgcat <<_ASUNAME 17432d1d20fcSmrg## --------- ## 17442d1d20fcSmrg## Platform. ## 17452d1d20fcSmrg## --------- ## 17462d1d20fcSmrg 17472d1d20fcSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 17482d1d20fcSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 17492d1d20fcSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 17502d1d20fcSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 17512d1d20fcSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 17522d1d20fcSmrg 17532d1d20fcSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 17542d1d20fcSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 17552d1d20fcSmrg 17562d1d20fcSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 17572d1d20fcSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 17582d1d20fcSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 17592d1d20fcSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 17602d1d20fcSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 17612d1d20fcSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 17622d1d20fcSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 17632d1d20fcSmrg 17642d1d20fcSmrg_ASUNAME 17652d1d20fcSmrg 17662d1d20fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17678ae04fa6Smrgfor as_dir in $PATH 17688ae04fa6Smrgdo 17698ae04fa6Smrg IFS=$as_save_IFS 17708ae04fa6Smrg test -z "$as_dir" && as_dir=. 17712d1d20fcSmrg $as_echo "PATH: $as_dir" 17722d1d20fcSmrg done 17738ae04fa6SmrgIFS=$as_save_IFS 17748ae04fa6Smrg 17758ae04fa6Smrg} >&5 17768ae04fa6Smrg 17778ae04fa6Smrgcat >&5 <<_ACEOF 17788ae04fa6Smrg 17798ae04fa6Smrg 17808ae04fa6Smrg## ----------- ## 17818ae04fa6Smrg## Core tests. ## 17828ae04fa6Smrg## ----------- ## 17838ae04fa6Smrg 17848ae04fa6Smrg_ACEOF 17858ae04fa6Smrg 17868ae04fa6Smrg 17878ae04fa6Smrg# Keep a trace of the command line. 17888ae04fa6Smrg# Strip out --no-create and --no-recursion so they do not pile up. 17898ae04fa6Smrg# Strip out --silent because we don't want to record it for future runs. 17908ae04fa6Smrg# Also quote any args containing shell meta-characters. 17918ae04fa6Smrg# Make two passes to allow for proper duplicate-argument suppression. 17928ae04fa6Smrgac_configure_args= 17938ae04fa6Smrgac_configure_args0= 17948ae04fa6Smrgac_configure_args1= 17958ae04fa6Smrgac_must_keep_next=false 17968ae04fa6Smrgfor ac_pass in 1 2 17978ae04fa6Smrgdo 17988ae04fa6Smrg for ac_arg 17998ae04fa6Smrg do 18008ae04fa6Smrg case $ac_arg in 18018ae04fa6Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18028ae04fa6Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18038ae04fa6Smrg | -silent | --silent | --silen | --sile | --sil) 18048ae04fa6Smrg continue ;; 18058ae04fa6Smrg *\'*) 180644af7230Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18078ae04fa6Smrg esac 18088ae04fa6Smrg case $ac_pass in 18092d1d20fcSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18108ae04fa6Smrg 2) 18112d1d20fcSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18128ae04fa6Smrg if test $ac_must_keep_next = true; then 18138ae04fa6Smrg ac_must_keep_next=false # Got value, back to normal. 18148ae04fa6Smrg else 18158ae04fa6Smrg case $ac_arg in 18168ae04fa6Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18178ae04fa6Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18188ae04fa6Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18198ae04fa6Smrg | -with-* | --with-* | -without-* | --without-* | --x) 18208ae04fa6Smrg case "$ac_configure_args0 " in 18218ae04fa6Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18228ae04fa6Smrg esac 18238ae04fa6Smrg ;; 18248ae04fa6Smrg -* ) ac_must_keep_next=true ;; 18258ae04fa6Smrg esac 18268ae04fa6Smrg fi 18272d1d20fcSmrg as_fn_append ac_configure_args " '$ac_arg'" 18288ae04fa6Smrg ;; 18298ae04fa6Smrg esac 18308ae04fa6Smrg done 18318ae04fa6Smrgdone 18322d1d20fcSmrg{ ac_configure_args0=; unset ac_configure_args0;} 18332d1d20fcSmrg{ ac_configure_args1=; unset ac_configure_args1;} 18348ae04fa6Smrg 18358ae04fa6Smrg# When interrupted or exit'd, cleanup temporary files, and complete 18368ae04fa6Smrg# config.log. We remove comments because anyway the quotes in there 18378ae04fa6Smrg# would cause problems or look ugly. 18388ae04fa6Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18398ae04fa6Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18408ae04fa6Smrgtrap 'exit_status=$? 18418ae04fa6Smrg # Save into config.log some information that might help in debugging. 18428ae04fa6Smrg { 18438ae04fa6Smrg echo 18448ae04fa6Smrg 18452d1d20fcSmrg $as_echo "## ---------------- ## 18468ae04fa6Smrg## Cache variables. ## 18472d1d20fcSmrg## ---------------- ##" 18488ae04fa6Smrg echo 18498ae04fa6Smrg # The following way of writing the cache mishandles newlines in values, 18508ae04fa6Smrg( 18518ae04fa6Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 18528ae04fa6Smrg eval ac_val=\$$ac_var 18538ae04fa6Smrg case $ac_val in #( 18548ae04fa6Smrg *${as_nl}*) 18558ae04fa6Smrg case $ac_var in #( 18562d1d20fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 185744af7230Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18588ae04fa6Smrg esac 18598ae04fa6Smrg case $ac_var in #( 18608ae04fa6Smrg _ | IFS | as_nl) ;; #( 186144af7230Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18622d1d20fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 18638ae04fa6Smrg esac ;; 18648ae04fa6Smrg esac 18658ae04fa6Smrg done 18668ae04fa6Smrg (set) 2>&1 | 18678ae04fa6Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 18688ae04fa6Smrg *${as_nl}ac_space=\ *) 18698ae04fa6Smrg sed -n \ 18708ae04fa6Smrg "s/'\''/'\''\\\\'\'''\''/g; 18718ae04fa6Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 18728ae04fa6Smrg ;; #( 18738ae04fa6Smrg *) 18748ae04fa6Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18758ae04fa6Smrg ;; 18768ae04fa6Smrg esac | 18778ae04fa6Smrg sort 18788ae04fa6Smrg) 18798ae04fa6Smrg echo 18808ae04fa6Smrg 18812d1d20fcSmrg $as_echo "## ----------------- ## 18828ae04fa6Smrg## Output variables. ## 18832d1d20fcSmrg## ----------------- ##" 18848ae04fa6Smrg echo 18858ae04fa6Smrg for ac_var in $ac_subst_vars 18868ae04fa6Smrg do 18878ae04fa6Smrg eval ac_val=\$$ac_var 18888ae04fa6Smrg case $ac_val in 188944af7230Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 18908ae04fa6Smrg esac 189144af7230Smrg $as_echo "$ac_var='\''$ac_val'\''" 18928ae04fa6Smrg done | sort 18938ae04fa6Smrg echo 18948ae04fa6Smrg 18958ae04fa6Smrg if test -n "$ac_subst_files"; then 18962d1d20fcSmrg $as_echo "## ------------------- ## 18978ae04fa6Smrg## File substitutions. ## 18982d1d20fcSmrg## ------------------- ##" 18998ae04fa6Smrg echo 19008ae04fa6Smrg for ac_var in $ac_subst_files 19018ae04fa6Smrg do 19028ae04fa6Smrg eval ac_val=\$$ac_var 19038ae04fa6Smrg case $ac_val in 190444af7230Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19058ae04fa6Smrg esac 190644af7230Smrg $as_echo "$ac_var='\''$ac_val'\''" 19078ae04fa6Smrg done | sort 19088ae04fa6Smrg echo 19098ae04fa6Smrg fi 19108ae04fa6Smrg 19118ae04fa6Smrg if test -s confdefs.h; then 19122d1d20fcSmrg $as_echo "## ----------- ## 19138ae04fa6Smrg## confdefs.h. ## 19142d1d20fcSmrg## ----------- ##" 19158ae04fa6Smrg echo 19168ae04fa6Smrg cat confdefs.h 19178ae04fa6Smrg echo 19188ae04fa6Smrg fi 19198ae04fa6Smrg test "$ac_signal" != 0 && 192044af7230Smrg $as_echo "$as_me: caught signal $ac_signal" 192144af7230Smrg $as_echo "$as_me: exit $exit_status" 19228ae04fa6Smrg } >&5 19238ae04fa6Smrg rm -f core *.core core.conftest.* && 19248ae04fa6Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19258ae04fa6Smrg exit $exit_status 19268ae04fa6Smrg' 0 19278ae04fa6Smrgfor ac_signal in 1 2 13 15; do 19282d1d20fcSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19298ae04fa6Smrgdone 19308ae04fa6Smrgac_signal=0 19318ae04fa6Smrg 19328ae04fa6Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19338ae04fa6Smrgrm -f -r conftest* confdefs.h 19348ae04fa6Smrg 19352d1d20fcSmrg$as_echo "/* confdefs.h */" > confdefs.h 19362d1d20fcSmrg 19378ae04fa6Smrg# Predefined preprocessor variables. 19388ae04fa6Smrg 19398ae04fa6Smrgcat >>confdefs.h <<_ACEOF 19408ae04fa6Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 19418ae04fa6Smrg_ACEOF 19428ae04fa6Smrg 19438ae04fa6Smrgcat >>confdefs.h <<_ACEOF 19448ae04fa6Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 19458ae04fa6Smrg_ACEOF 19468ae04fa6Smrg 19478ae04fa6Smrgcat >>confdefs.h <<_ACEOF 19488ae04fa6Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 19498ae04fa6Smrg_ACEOF 19508ae04fa6Smrg 19518ae04fa6Smrgcat >>confdefs.h <<_ACEOF 19528ae04fa6Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 19538ae04fa6Smrg_ACEOF 19548ae04fa6Smrg 19558ae04fa6Smrgcat >>confdefs.h <<_ACEOF 19568ae04fa6Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 19578ae04fa6Smrg_ACEOF 19588ae04fa6Smrg 19592d1d20fcSmrgcat >>confdefs.h <<_ACEOF 19602d1d20fcSmrg#define PACKAGE_URL "$PACKAGE_URL" 19612d1d20fcSmrg_ACEOF 19622d1d20fcSmrg 19638ae04fa6Smrg 19648ae04fa6Smrg# Let the site file select an alternate cache file if it wants to. 196544af7230Smrg# Prefer an explicitly selected file to automatically selected ones. 196644af7230Smrgac_site_file1=NONE 196744af7230Smrgac_site_file2=NONE 19688ae04fa6Smrgif test -n "$CONFIG_SITE"; then 19692d1d20fcSmrg # We do not want a PATH search for config.site. 19702d1d20fcSmrg case $CONFIG_SITE in #(( 19712d1d20fcSmrg -*) ac_site_file1=./$CONFIG_SITE;; 19722d1d20fcSmrg */*) ac_site_file1=$CONFIG_SITE;; 19732d1d20fcSmrg *) ac_site_file1=./$CONFIG_SITE;; 19742d1d20fcSmrg esac 19758ae04fa6Smrgelif test "x$prefix" != xNONE; then 197644af7230Smrg ac_site_file1=$prefix/share/config.site 197744af7230Smrg ac_site_file2=$prefix/etc/config.site 19788ae04fa6Smrgelse 197944af7230Smrg ac_site_file1=$ac_default_prefix/share/config.site 198044af7230Smrg ac_site_file2=$ac_default_prefix/etc/config.site 19818ae04fa6Smrgfi 198244af7230Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 19838ae04fa6Smrgdo 198444af7230Smrg test "x$ac_site_file" = xNONE && continue 19852d1d20fcSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 19862d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 198744af7230Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 19888ae04fa6Smrg sed 's/^/| /' "$ac_site_file" >&5 19892d1d20fcSmrg . "$ac_site_file" \ 19902d1d20fcSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19912d1d20fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19922d1d20fcSmrgas_fn_error $? "failed to load site script $ac_site_file 19932d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 19948ae04fa6Smrg fi 19958ae04fa6Smrgdone 19968ae04fa6Smrg 19978ae04fa6Smrgif test -r "$cache_file"; then 19982d1d20fcSmrg # Some versions of bash will fail to source /dev/null (special files 19992d1d20fcSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20002d1d20fcSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20012d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 200244af7230Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20038ae04fa6Smrg case $cache_file in 20048ae04fa6Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20058ae04fa6Smrg *) . "./$cache_file";; 20068ae04fa6Smrg esac 20078ae04fa6Smrg fi 20088ae04fa6Smrgelse 20092d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 201044af7230Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20118ae04fa6Smrg >$cache_file 20128ae04fa6Smrgfi 20138ae04fa6Smrg 20148ae04fa6Smrg# Check that the precious variables saved in the cache have kept the same 20158ae04fa6Smrg# value. 20168ae04fa6Smrgac_cache_corrupted=false 20178ae04fa6Smrgfor ac_var in $ac_precious_vars; do 20188ae04fa6Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20198ae04fa6Smrg eval ac_new_set=\$ac_env_${ac_var}_set 20208ae04fa6Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 20218ae04fa6Smrg eval ac_new_val=\$ac_env_${ac_var}_value 20228ae04fa6Smrg case $ac_old_set,$ac_new_set in 20238ae04fa6Smrg set,) 20242d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 202544af7230Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20268ae04fa6Smrg ac_cache_corrupted=: ;; 20278ae04fa6Smrg ,set) 20282d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 202944af7230Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20308ae04fa6Smrg ac_cache_corrupted=: ;; 20318ae04fa6Smrg ,);; 20328ae04fa6Smrg *) 20338ae04fa6Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 203444af7230Smrg # differences in whitespace do not lead to failure. 203544af7230Smrg ac_old_val_w=`echo x $ac_old_val` 203644af7230Smrg ac_new_val_w=`echo x $ac_new_val` 203744af7230Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 20382d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 203944af7230Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 204044af7230Smrg ac_cache_corrupted=: 204144af7230Smrg else 20422d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 204344af7230Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 204444af7230Smrg eval $ac_var=\$ac_old_val 204544af7230Smrg fi 20462d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 204744af7230Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 20482d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 204944af7230Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 20508ae04fa6Smrg fi;; 20518ae04fa6Smrg esac 20528ae04fa6Smrg # Pass precious variables to config.status. 20538ae04fa6Smrg if test "$ac_new_set" = set; then 20548ae04fa6Smrg case $ac_new_val in 205544af7230Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 20568ae04fa6Smrg *) ac_arg=$ac_var=$ac_new_val ;; 20578ae04fa6Smrg esac 20588ae04fa6Smrg case " $ac_configure_args " in 20598ae04fa6Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 20602d1d20fcSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 20618ae04fa6Smrg esac 20628ae04fa6Smrg fi 20638ae04fa6Smrgdone 20648ae04fa6Smrgif $ac_cache_corrupted; then 20652d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 206644af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20672d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 206844af7230Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 20692d1d20fcSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 20708ae04fa6Smrgfi 20712d1d20fcSmrg## -------------------- ## 20722d1d20fcSmrg## Main body of script. ## 20732d1d20fcSmrg## -------------------- ## 20748ae04fa6Smrg 20758ae04fa6Smrgac_ext=c 20768ae04fa6Smrgac_cpp='$CPP $CPPFLAGS' 20778ae04fa6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20788ae04fa6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20798ae04fa6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 20808ae04fa6Smrg 20818ae04fa6Smrg 2082405c8079Smrg 2083405c8079Smrgac_config_headers="$ac_config_headers config.h" 2084405c8079Smrg 2085405c8079Smrg 2086405c8079Smrg# Initialize Automake 208780f56f3aSmrgam__api_version='1.15' 20888ae04fa6Smrg 20898ae04fa6Smrgac_aux_dir= 20908ae04fa6Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 20918ae04fa6Smrg if test -f "$ac_dir/install-sh"; then 20928ae04fa6Smrg ac_aux_dir=$ac_dir 20938ae04fa6Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 20948ae04fa6Smrg break 20958ae04fa6Smrg elif test -f "$ac_dir/install.sh"; then 20968ae04fa6Smrg ac_aux_dir=$ac_dir 20978ae04fa6Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 20988ae04fa6Smrg break 20998ae04fa6Smrg elif test -f "$ac_dir/shtool"; then 21008ae04fa6Smrg ac_aux_dir=$ac_dir 21018ae04fa6Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 21028ae04fa6Smrg break 21038ae04fa6Smrg fi 21048ae04fa6Smrgdone 21058ae04fa6Smrgif test -z "$ac_aux_dir"; then 21062d1d20fcSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21078ae04fa6Smrgfi 21088ae04fa6Smrg 21098ae04fa6Smrg# These three variables are undocumented and unsupported, 21108ae04fa6Smrg# and are intended to be withdrawn in a future Autoconf release. 21118ae04fa6Smrg# They can cause serious problems if a builder's source tree is in a directory 21128ae04fa6Smrg# whose full name contains unusual characters. 21138ae04fa6Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 21148ae04fa6Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 21158ae04fa6Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 21168ae04fa6Smrg 21178ae04fa6Smrg 21188ae04fa6Smrg# Find a good install program. We prefer a C program (faster), 21198ae04fa6Smrg# so one script is as good as another. But avoid the broken or 21208ae04fa6Smrg# incompatible versions: 21218ae04fa6Smrg# SysV /etc/install, /usr/sbin/install 21228ae04fa6Smrg# SunOS /usr/etc/install 21238ae04fa6Smrg# IRIX /sbin/install 21248ae04fa6Smrg# AIX /bin/install 21258ae04fa6Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21268ae04fa6Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21278ae04fa6Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21288ae04fa6Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21298ae04fa6Smrg# OS/2's system install, which has a completely different semantic 21308ae04fa6Smrg# ./install, which can be erroneously created by make from ./install.sh. 213144af7230Smrg# Reject install programs that cannot install multiple files. 21322d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 213344af7230Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21348ae04fa6Smrgif test -z "$INSTALL"; then 21352d1d20fcSmrgif ${ac_cv_path_install+:} false; then : 213644af7230Smrg $as_echo_n "(cached) " >&6 21378ae04fa6Smrgelse 21388ae04fa6Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21398ae04fa6Smrgfor as_dir in $PATH 21408ae04fa6Smrgdo 21418ae04fa6Smrg IFS=$as_save_IFS 21428ae04fa6Smrg test -z "$as_dir" && as_dir=. 21432d1d20fcSmrg # Account for people who put trailing slashes in PATH elements. 21442d1d20fcSmrgcase $as_dir/ in #(( 21452d1d20fcSmrg ./ | .// | /[cC]/* | \ 21468ae04fa6Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 21472d1d20fcSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 21488ae04fa6Smrg /usr/ucb/* ) ;; 21498ae04fa6Smrg *) 21508ae04fa6Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 21518ae04fa6Smrg # Don't use installbsd from OSF since it installs stuff as root 21528ae04fa6Smrg # by default. 21538ae04fa6Smrg for ac_prog in ginstall scoinst install; do 21548ae04fa6Smrg for ac_exec_ext in '' $ac_executable_extensions; do 215580f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 21568ae04fa6Smrg if test $ac_prog = install && 21578ae04fa6Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21588ae04fa6Smrg # AIX install. It has an incompatible calling convention. 21598ae04fa6Smrg : 21608ae04fa6Smrg elif test $ac_prog = install && 21618ae04fa6Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21628ae04fa6Smrg # program-specific install script used by HP pwplus--don't use. 21638ae04fa6Smrg : 21648ae04fa6Smrg else 216544af7230Smrg rm -rf conftest.one conftest.two conftest.dir 216644af7230Smrg echo one > conftest.one 216744af7230Smrg echo two > conftest.two 216844af7230Smrg mkdir conftest.dir 216944af7230Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 217044af7230Smrg test -s conftest.one && test -s conftest.two && 217144af7230Smrg test -s conftest.dir/conftest.one && 217244af7230Smrg test -s conftest.dir/conftest.two 217344af7230Smrg then 217444af7230Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 217544af7230Smrg break 3 217644af7230Smrg fi 21778ae04fa6Smrg fi 21788ae04fa6Smrg fi 21798ae04fa6Smrg done 21808ae04fa6Smrg done 21818ae04fa6Smrg ;; 21828ae04fa6Smrgesac 218344af7230Smrg 21842d1d20fcSmrg done 21858ae04fa6SmrgIFS=$as_save_IFS 21868ae04fa6Smrg 218744af7230Smrgrm -rf conftest.one conftest.two conftest.dir 21888ae04fa6Smrg 21898ae04fa6Smrgfi 21908ae04fa6Smrg if test "${ac_cv_path_install+set}" = set; then 21918ae04fa6Smrg INSTALL=$ac_cv_path_install 21928ae04fa6Smrg else 21938ae04fa6Smrg # As a last resort, use the slow shell script. Don't cache a 21948ae04fa6Smrg # value for INSTALL within a source directory, because that will 21958ae04fa6Smrg # break other packages using the cache if that directory is 21968ae04fa6Smrg # removed, or if the value is a relative name. 21978ae04fa6Smrg INSTALL=$ac_install_sh 21988ae04fa6Smrg fi 21998ae04fa6Smrgfi 22002d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 220144af7230Smrg$as_echo "$INSTALL" >&6; } 22028ae04fa6Smrg 22038ae04fa6Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22048ae04fa6Smrg# It thinks the first close brace ends the variable substitution. 22058ae04fa6Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22068ae04fa6Smrg 22078ae04fa6Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22088ae04fa6Smrg 22098ae04fa6Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22108ae04fa6Smrg 22112d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 221244af7230Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 221344af7230Smrg# Reject unsafe characters in $srcdir or the absolute working directory 221444af7230Smrg# name. Accept space and tab only in the latter. 221544af7230Smrgam_lf=' 221644af7230Smrg' 221744af7230Smrgcase `pwd` in 221844af7230Smrg *[\\\"\#\$\&\'\`$am_lf]*) 22192d1d20fcSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 222044af7230Smrgesac 222144af7230Smrgcase $srcdir in 222244af7230Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 222380f56f3aSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 222444af7230Smrgesac 222544af7230Smrg 222680f56f3aSmrg# Do 'set' in a subshell so we don't clobber the current shell's 22278ae04fa6Smrg# arguments. Must try -L first in case configure is actually a 22288ae04fa6Smrg# symlink; some systems play weird games with the mod time of symlinks 22298ae04fa6Smrg# (eg FreeBSD returns the mod time of the symlink's containing 22308ae04fa6Smrg# directory). 22318ae04fa6Smrgif ( 223280f56f3aSmrg am_has_slept=no 223380f56f3aSmrg for am_try in 1 2; do 223480f56f3aSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 223580f56f3aSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 223680f56f3aSmrg if test "$*" = "X"; then 223780f56f3aSmrg # -L didn't work. 223880f56f3aSmrg set X `ls -t "$srcdir/configure" conftest.file` 223980f56f3aSmrg fi 224080f56f3aSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 224180f56f3aSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 224280f56f3aSmrg 224380f56f3aSmrg # If neither matched, then we have a broken ls. This can happen 224480f56f3aSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 224580f56f3aSmrg # broken ls alias from the environment. This has actually 224680f56f3aSmrg # happened. Such a system could not be considered "sane". 224780f56f3aSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 224880f56f3aSmrg alias in your environment" "$LINENO" 5 224980f56f3aSmrg fi 225080f56f3aSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 225180f56f3aSmrg break 225280f56f3aSmrg fi 225380f56f3aSmrg # Just in case. 225480f56f3aSmrg sleep 1 225580f56f3aSmrg am_has_slept=yes 225680f56f3aSmrg done 22578ae04fa6Smrg test "$2" = conftest.file 22588ae04fa6Smrg ) 22598ae04fa6Smrgthen 22608ae04fa6Smrg # Ok. 22618ae04fa6Smrg : 22628ae04fa6Smrgelse 22632d1d20fcSmrg as_fn_error $? "newly created file is older than distributed files! 22642d1d20fcSmrgCheck your system clock" "$LINENO" 5 22658ae04fa6Smrgfi 22662d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 226744af7230Smrg$as_echo "yes" >&6; } 226880f56f3aSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 226980f56f3aSmrg# generated files are strictly newer. 227080f56f3aSmrgam_sleep_pid= 227180f56f3aSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 227280f56f3aSmrg ( sleep 1 ) & 227380f56f3aSmrg am_sleep_pid=$! 227480f56f3aSmrgfi 227580f56f3aSmrg 227680f56f3aSmrgrm -f conftest.file 227780f56f3aSmrg 22788ae04fa6Smrgtest "$program_prefix" != NONE && 22798ae04fa6Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 22808ae04fa6Smrg# Use a double $ so make ignores it. 22818ae04fa6Smrgtest "$program_suffix" != NONE && 22828ae04fa6Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 228344af7230Smrg# Double any \ or $. 22848ae04fa6Smrg# By default was `s,x,x', remove it if useless. 228544af7230Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 228644af7230Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 22878ae04fa6Smrg 228880f56f3aSmrg# Expand $ac_aux_dir to an absolute path. 228980f56f3aSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 22908ae04fa6Smrg 229144af7230Smrgif test x"${MISSING+set}" != xset; then 229244af7230Smrg case $am_aux_dir in 229344af7230Smrg *\ * | *\ *) 229444af7230Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 229544af7230Smrg *) 229644af7230Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 229744af7230Smrg esac 229844af7230Smrgfi 22998ae04fa6Smrg# Use eval to expand $SHELL 230080f56f3aSmrgif eval "$MISSING --is-lightweight"; then 230180f56f3aSmrg am_missing_run="$MISSING " 23028ae04fa6Smrgelse 23038ae04fa6Smrg am_missing_run= 230480f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 230580f56f3aSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 23068ae04fa6Smrgfi 23078ae04fa6Smrg 230880f56f3aSmrgif test x"${install_sh+set}" != xset; then 230944af7230Smrg case $am_aux_dir in 231044af7230Smrg *\ * | *\ *) 231144af7230Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 231244af7230Smrg *) 231344af7230Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 231444af7230Smrg esac 231544af7230Smrgfi 231644af7230Smrg 231780f56f3aSmrg# Installed binaries are usually stripped using 'strip' when the user 231880f56f3aSmrg# run "make install-strip". However 'strip' might not be the right 231944af7230Smrg# tool to use in cross-compilation environments, therefore Automake 232080f56f3aSmrg# will honor the 'STRIP' environment variable to overrule this program. 232144af7230Smrgif test "$cross_compiling" != no; then 232244af7230Smrg if test -n "$ac_tool_prefix"; then 232344af7230Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 232444af7230Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 23252d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 232644af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 23272d1d20fcSmrgif ${ac_cv_prog_STRIP+:} false; then : 232844af7230Smrg $as_echo_n "(cached) " >&6 232944af7230Smrgelse 233044af7230Smrg if test -n "$STRIP"; then 233144af7230Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 233244af7230Smrgelse 233344af7230Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 233444af7230Smrgfor as_dir in $PATH 233544af7230Smrgdo 233644af7230Smrg IFS=$as_save_IFS 233744af7230Smrg test -z "$as_dir" && as_dir=. 23382d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 233980f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 234044af7230Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 23412d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 234244af7230Smrg break 2 234344af7230Smrg fi 234444af7230Smrgdone 23452d1d20fcSmrg done 234644af7230SmrgIFS=$as_save_IFS 234744af7230Smrg 234844af7230Smrgfi 234944af7230Smrgfi 235044af7230SmrgSTRIP=$ac_cv_prog_STRIP 235144af7230Smrgif test -n "$STRIP"; then 23522d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 235344af7230Smrg$as_echo "$STRIP" >&6; } 235444af7230Smrgelse 23552d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 235644af7230Smrg$as_echo "no" >&6; } 235744af7230Smrgfi 235844af7230Smrg 235944af7230Smrg 236044af7230Smrgfi 236144af7230Smrgif test -z "$ac_cv_prog_STRIP"; then 236244af7230Smrg ac_ct_STRIP=$STRIP 236344af7230Smrg # Extract the first word of "strip", so it can be a program name with args. 236444af7230Smrgset dummy strip; ac_word=$2 23652d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 236644af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 23672d1d20fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 236844af7230Smrg $as_echo_n "(cached) " >&6 236944af7230Smrgelse 237044af7230Smrg if test -n "$ac_ct_STRIP"; then 237144af7230Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 237244af7230Smrgelse 237344af7230Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 237444af7230Smrgfor as_dir in $PATH 237544af7230Smrgdo 237644af7230Smrg IFS=$as_save_IFS 237744af7230Smrg test -z "$as_dir" && as_dir=. 23782d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 237980f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 238044af7230Smrg ac_cv_prog_ac_ct_STRIP="strip" 23812d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 238244af7230Smrg break 2 238344af7230Smrg fi 238444af7230Smrgdone 23852d1d20fcSmrg done 238644af7230SmrgIFS=$as_save_IFS 238744af7230Smrg 238844af7230Smrgfi 238944af7230Smrgfi 239044af7230Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 239144af7230Smrgif test -n "$ac_ct_STRIP"; then 23922d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 239344af7230Smrg$as_echo "$ac_ct_STRIP" >&6; } 239444af7230Smrgelse 23952d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 239644af7230Smrg$as_echo "no" >&6; } 239744af7230Smrgfi 239844af7230Smrg 239944af7230Smrg if test "x$ac_ct_STRIP" = x; then 240044af7230Smrg STRIP=":" 240144af7230Smrg else 240244af7230Smrg case $cross_compiling:$ac_tool_warned in 240344af7230Smrgyes:) 24042d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 240544af7230Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 240644af7230Smrgac_tool_warned=yes ;; 240744af7230Smrgesac 240844af7230Smrg STRIP=$ac_ct_STRIP 240944af7230Smrg fi 241044af7230Smrgelse 241144af7230Smrg STRIP="$ac_cv_prog_STRIP" 241244af7230Smrgfi 241344af7230Smrg 241444af7230Smrgfi 241544af7230SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 241644af7230Smrg 24172d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 241844af7230Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 241944af7230Smrgif test -z "$MKDIR_P"; then 24202d1d20fcSmrg if ${ac_cv_path_mkdir+:} false; then : 242144af7230Smrg $as_echo_n "(cached) " >&6 242244af7230Smrgelse 24238ae04fa6Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24248ae04fa6Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 24258ae04fa6Smrgdo 24268ae04fa6Smrg IFS=$as_save_IFS 24278ae04fa6Smrg test -z "$as_dir" && as_dir=. 24282d1d20fcSmrg for ac_prog in mkdir gmkdir; do 24298ae04fa6Smrg for ac_exec_ext in '' $ac_executable_extensions; do 243080f56f3aSmrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 24318ae04fa6Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 24328ae04fa6Smrg 'mkdir (GNU coreutils) '* | \ 24338ae04fa6Smrg 'mkdir (coreutils) '* | \ 24348ae04fa6Smrg 'mkdir (fileutils) '4.1*) 24358ae04fa6Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 24368ae04fa6Smrg break 3;; 24378ae04fa6Smrg esac 24388ae04fa6Smrg done 24398ae04fa6Smrg done 24402d1d20fcSmrg done 24418ae04fa6SmrgIFS=$as_save_IFS 24428ae04fa6Smrg 24438ae04fa6Smrgfi 24448ae04fa6Smrg 24452d1d20fcSmrg test -d ./--version && rmdir ./--version 24468ae04fa6Smrg if test "${ac_cv_path_mkdir+set}" = set; then 24478ae04fa6Smrg MKDIR_P="$ac_cv_path_mkdir -p" 24488ae04fa6Smrg else 24498ae04fa6Smrg # As a last resort, use the slow shell script. Don't cache a 24508ae04fa6Smrg # value for MKDIR_P within a source directory, because that will 24518ae04fa6Smrg # break other packages using the cache if that directory is 24528ae04fa6Smrg # removed, or if the value is a relative name. 24538ae04fa6Smrg MKDIR_P="$ac_install_sh -d" 24548ae04fa6Smrg fi 24558ae04fa6Smrgfi 24562d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 245744af7230Smrg$as_echo "$MKDIR_P" >&6; } 24588ae04fa6Smrg 24598ae04fa6Smrgfor ac_prog in gawk mawk nawk awk 24608ae04fa6Smrgdo 24618ae04fa6Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 24628ae04fa6Smrgset dummy $ac_prog; ac_word=$2 24632d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 246444af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 24652d1d20fcSmrgif ${ac_cv_prog_AWK+:} false; then : 246644af7230Smrg $as_echo_n "(cached) " >&6 24678ae04fa6Smrgelse 24688ae04fa6Smrg if test -n "$AWK"; then 24698ae04fa6Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 24708ae04fa6Smrgelse 24718ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24728ae04fa6Smrgfor as_dir in $PATH 24738ae04fa6Smrgdo 24748ae04fa6Smrg IFS=$as_save_IFS 24758ae04fa6Smrg test -z "$as_dir" && as_dir=. 24762d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 247780f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24788ae04fa6Smrg ac_cv_prog_AWK="$ac_prog" 24792d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24808ae04fa6Smrg break 2 24818ae04fa6Smrg fi 24828ae04fa6Smrgdone 24832d1d20fcSmrg done 24848ae04fa6SmrgIFS=$as_save_IFS 24858ae04fa6Smrg 24868ae04fa6Smrgfi 24878ae04fa6Smrgfi 24888ae04fa6SmrgAWK=$ac_cv_prog_AWK 24898ae04fa6Smrgif test -n "$AWK"; then 24902d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 249144af7230Smrg$as_echo "$AWK" >&6; } 24928ae04fa6Smrgelse 24932d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 249444af7230Smrg$as_echo "no" >&6; } 24958ae04fa6Smrgfi 24968ae04fa6Smrg 24978ae04fa6Smrg 24988ae04fa6Smrg test -n "$AWK" && break 24998ae04fa6Smrgdone 25008ae04fa6Smrg 25012d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 250244af7230Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 250344af7230Smrgset x ${MAKE-make} 250444af7230Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25052d1d20fcSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 250644af7230Smrg $as_echo_n "(cached) " >&6 25078ae04fa6Smrgelse 25088ae04fa6Smrg cat >conftest.make <<\_ACEOF 25098ae04fa6SmrgSHELL = /bin/sh 25108ae04fa6Smrgall: 25118ae04fa6Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25128ae04fa6Smrg_ACEOF 25132d1d20fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 25148ae04fa6Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 25158ae04fa6Smrg *@@@%%%=?*=@@@%%%*) 25168ae04fa6Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 25178ae04fa6Smrg *) 25188ae04fa6Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 25198ae04fa6Smrgesac 25208ae04fa6Smrgrm -f conftest.make 25218ae04fa6Smrgfi 25228ae04fa6Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25232d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 252444af7230Smrg$as_echo "yes" >&6; } 25258ae04fa6Smrg SET_MAKE= 25268ae04fa6Smrgelse 25272d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 252844af7230Smrg$as_echo "no" >&6; } 25298ae04fa6Smrg SET_MAKE="MAKE=${MAKE-make}" 25308ae04fa6Smrgfi 25318ae04fa6Smrg 25328ae04fa6Smrgrm -rf .tst 2>/dev/null 25338ae04fa6Smrgmkdir .tst 2>/dev/null 25348ae04fa6Smrgif test -d .tst; then 25358ae04fa6Smrg am__leading_dot=. 25368ae04fa6Smrgelse 25378ae04fa6Smrg am__leading_dot=_ 25388ae04fa6Smrgfi 25398ae04fa6Smrgrmdir .tst 2>/dev/null 25408ae04fa6Smrg 254180f56f3aSmrg# Check whether --enable-silent-rules was given. 254280f56f3aSmrgif test "${enable_silent_rules+set}" = set; then : 254380f56f3aSmrg enableval=$enable_silent_rules; 254480f56f3aSmrgfi 254580f56f3aSmrg 254680f56f3aSmrgcase $enable_silent_rules in # ((( 254780f56f3aSmrg yes) AM_DEFAULT_VERBOSITY=0;; 254880f56f3aSmrg no) AM_DEFAULT_VERBOSITY=1;; 254980f56f3aSmrg *) AM_DEFAULT_VERBOSITY=1;; 255080f56f3aSmrgesac 255180f56f3aSmrgam_make=${MAKE-make} 255280f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 255380f56f3aSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 255480f56f3aSmrgif ${am_cv_make_support_nested_variables+:} false; then : 255580f56f3aSmrg $as_echo_n "(cached) " >&6 255680f56f3aSmrgelse 255780f56f3aSmrg if $as_echo 'TRUE=$(BAR$(V)) 255880f56f3aSmrgBAR0=false 255980f56f3aSmrgBAR1=true 256080f56f3aSmrgV=1 256180f56f3aSmrgam__doit: 256280f56f3aSmrg @$(TRUE) 256380f56f3aSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 256480f56f3aSmrg am_cv_make_support_nested_variables=yes 256580f56f3aSmrgelse 256680f56f3aSmrg am_cv_make_support_nested_variables=no 256780f56f3aSmrgfi 256880f56f3aSmrgfi 256980f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 257080f56f3aSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 257180f56f3aSmrgif test $am_cv_make_support_nested_variables = yes; then 257280f56f3aSmrg AM_V='$(V)' 257380f56f3aSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 257480f56f3aSmrgelse 257580f56f3aSmrg AM_V=$AM_DEFAULT_VERBOSITY 257680f56f3aSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 257780f56f3aSmrgfi 257880f56f3aSmrgAM_BACKSLASH='\' 257980f56f3aSmrg 25808ae04fa6Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 25818ae04fa6Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 25828ae04fa6Smrg # is not polluted with repeated "-I." 25838ae04fa6Smrg am__isrc=' -I$(srcdir)' 25848ae04fa6Smrg # test to see if srcdir already configured 25858ae04fa6Smrg if test -f $srcdir/config.status; then 25862d1d20fcSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 25878ae04fa6Smrg fi 25888ae04fa6Smrgfi 25898ae04fa6Smrg 25908ae04fa6Smrg# test whether we have cygpath 25918ae04fa6Smrgif test -z "$CYGPATH_W"; then 25928ae04fa6Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 25938ae04fa6Smrg CYGPATH_W='cygpath -w' 25948ae04fa6Smrg else 25958ae04fa6Smrg CYGPATH_W=echo 25968ae04fa6Smrg fi 25978ae04fa6Smrgfi 25988ae04fa6Smrg 25998ae04fa6Smrg 26008ae04fa6Smrg# Define the identity of the package. 26018ae04fa6Smrg PACKAGE='xvinfo' 260280f56f3aSmrg VERSION='1.1.3' 26038ae04fa6Smrg 26048ae04fa6Smrg 26058ae04fa6Smrgcat >>confdefs.h <<_ACEOF 26068ae04fa6Smrg#define PACKAGE "$PACKAGE" 26078ae04fa6Smrg_ACEOF 26088ae04fa6Smrg 26098ae04fa6Smrg 26108ae04fa6Smrgcat >>confdefs.h <<_ACEOF 26118ae04fa6Smrg#define VERSION "$VERSION" 26128ae04fa6Smrg_ACEOF 26138ae04fa6Smrg 26148ae04fa6Smrg# Some tools Automake needs. 26158ae04fa6Smrg 26168ae04fa6SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26178ae04fa6Smrg 26188ae04fa6Smrg 26198ae04fa6SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26208ae04fa6Smrg 26218ae04fa6Smrg 26228ae04fa6SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26238ae04fa6Smrg 26248ae04fa6Smrg 26258ae04fa6SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26268ae04fa6Smrg 26278ae04fa6Smrg 26288ae04fa6SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26298ae04fa6Smrg 263080f56f3aSmrg# For better backward compatibility. To be removed once Automake 1.9.x 263180f56f3aSmrg# dies out for good. For more background, see: 263280f56f3aSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 263380f56f3aSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 263480f56f3aSmrgmkdir_p='$(MKDIR_P)' 26358ae04fa6Smrg 263680f56f3aSmrg# We need awk for the "check" target (and possibly the TAP driver). The 263780f56f3aSmrg# system "awk" is bad on some platforms. 263880f56f3aSmrg# Always define AMTAR for backward compatibility. Yes, it's still used 263980f56f3aSmrg# in the wild :-( We should find a proper way to deprecate it ... 264080f56f3aSmrgAMTAR='$${TAR-tar}' 26418ae04fa6Smrg 26428ae04fa6Smrg 264380f56f3aSmrg# We'll loop over all known methods to create a tar archive until one works. 264480f56f3aSmrg_am_tools='gnutar pax cpio none' 26458ae04fa6Smrg 264680f56f3aSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 26478ae04fa6Smrg 26488ae04fa6Smrg 26498ae04fa6Smrg 265044af7230Smrg 26518ae04fa6Smrg 26528ae04fa6Smrg 265380f56f3aSmrg# POSIX will say in a future version that running "rm -f" with no argument 265480f56f3aSmrg# is OK; and we want to be able to make that assumption in our Makefile 265580f56f3aSmrg# recipes. So use an aggressive probe to check that the usage we want is 265680f56f3aSmrg# actually supported "in the wild" to an acceptable degree. 265780f56f3aSmrg# See automake bug#10828. 265880f56f3aSmrg# To make any issue more visible, cause the running configure to be aborted 265980f56f3aSmrg# by default if the 'rm' program in use doesn't match our expectations; the 266080f56f3aSmrg# user can still override this though. 266180f56f3aSmrgif rm -f && rm -fr && rm -rf; then : OK; else 266280f56f3aSmrg cat >&2 <<'END' 266380f56f3aSmrgOops! 266480f56f3aSmrg 266580f56f3aSmrgYour 'rm' program seems unable to run without file operands specified 266680f56f3aSmrgon the command line, even when the '-f' option is present. This is contrary 266780f56f3aSmrgto the behaviour of most rm programs out there, and not conforming with 266880f56f3aSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 26698ae04fa6Smrg 267080f56f3aSmrgPlease tell bug-automake@gnu.org about your system, including the value 267180f56f3aSmrgof your $PATH and any error possibly output before this message. This 267280f56f3aSmrgcan help us improve future automake versions. 267380f56f3aSmrg 267480f56f3aSmrgEND 267580f56f3aSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 267680f56f3aSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 267780f56f3aSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 267880f56f3aSmrg echo >&2 267980f56f3aSmrg else 268080f56f3aSmrg cat >&2 <<'END' 268180f56f3aSmrgAborting the configuration process, to ensure you take notice of the issue. 268280f56f3aSmrg 268380f56f3aSmrgYou can download and install GNU coreutils to get an 'rm' implementation 268480f56f3aSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 268580f56f3aSmrg 268680f56f3aSmrgIf you want to complete the configuration process using your problematic 268780f56f3aSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 268880f56f3aSmrgto "yes", and re-run configure. 268980f56f3aSmrg 269080f56f3aSmrgEND 269180f56f3aSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 269280f56f3aSmrg fi 269380f56f3aSmrgfi 26948ae04fa6Smrg 26958ae04fa6Smrg 26962d1d20fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 269744af7230Smrg 269844af7230Smrg 269944af7230Smrg 270044af7230Smrg 270144af7230Smrg 270244af7230Smrg 270344af7230Smrg 270444af7230Smrg 270544af7230Smrg 270644af7230Smrg 270744af7230Smrg 27082d1d20fcSmrgDEPDIR="${am__leading_dot}deps" 27092d1d20fcSmrg 27102d1d20fcSmrgac_config_commands="$ac_config_commands depfiles" 27112d1d20fcSmrg 27122d1d20fcSmrg 27132d1d20fcSmrgam_make=${MAKE-make} 27142d1d20fcSmrgcat > confinc << 'END' 27152d1d20fcSmrgam__doit: 27162d1d20fcSmrg @echo this is the am__doit target 27172d1d20fcSmrg.PHONY: am__doit 27182d1d20fcSmrgEND 27192d1d20fcSmrg# If we don't find an include directive, just comment out the code. 27202d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 27212d1d20fcSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 27222d1d20fcSmrgam__include="#" 27232d1d20fcSmrgam__quote= 27242d1d20fcSmrg_am_result=none 27252d1d20fcSmrg# First try GNU make style include. 27262d1d20fcSmrgecho "include confinc" > confmf 272780f56f3aSmrg# Ignore all kinds of additional output from 'make'. 27282d1d20fcSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 27292d1d20fcSmrg*the\ am__doit\ target*) 27302d1d20fcSmrg am__include=include 27312d1d20fcSmrg am__quote= 27322d1d20fcSmrg _am_result=GNU 27332d1d20fcSmrg ;; 27342d1d20fcSmrgesac 27352d1d20fcSmrg# Now try BSD make style include. 27362d1d20fcSmrgif test "$am__include" = "#"; then 27372d1d20fcSmrg echo '.include "confinc"' > confmf 27382d1d20fcSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 27392d1d20fcSmrg *the\ am__doit\ target*) 27402d1d20fcSmrg am__include=.include 27412d1d20fcSmrg am__quote="\"" 27422d1d20fcSmrg _am_result=BSD 27432d1d20fcSmrg ;; 27442d1d20fcSmrg esac 27452d1d20fcSmrgfi 27462d1d20fcSmrg 27472d1d20fcSmrg 27482d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 27492d1d20fcSmrg$as_echo "$_am_result" >&6; } 27502d1d20fcSmrgrm -f confinc confmf 27512d1d20fcSmrg 27522d1d20fcSmrg# Check whether --enable-dependency-tracking was given. 27532d1d20fcSmrgif test "${enable_dependency_tracking+set}" = set; then : 27542d1d20fcSmrg enableval=$enable_dependency_tracking; 27552d1d20fcSmrgfi 27562d1d20fcSmrg 27572d1d20fcSmrgif test "x$enable_dependency_tracking" != xno; then 27582d1d20fcSmrg am_depcomp="$ac_aux_dir/depcomp" 27592d1d20fcSmrg AMDEPBACKSLASH='\' 2760405c8079Smrg am__nodep='_no' 27612d1d20fcSmrgfi 27622d1d20fcSmrg if test "x$enable_dependency_tracking" != xno; then 27632d1d20fcSmrg AMDEP_TRUE= 27642d1d20fcSmrg AMDEP_FALSE='#' 27652d1d20fcSmrgelse 27662d1d20fcSmrg AMDEP_TRUE='#' 27672d1d20fcSmrg AMDEP_FALSE= 27682d1d20fcSmrgfi 27692d1d20fcSmrg 27702d1d20fcSmrg 27718ae04fa6Smrgac_ext=c 27728ae04fa6Smrgac_cpp='$CPP $CPPFLAGS' 27738ae04fa6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27748ae04fa6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27758ae04fa6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 27768ae04fa6Smrgif test -n "$ac_tool_prefix"; then 27778ae04fa6Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 27788ae04fa6Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 27792d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 278044af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 27812d1d20fcSmrgif ${ac_cv_prog_CC+:} false; then : 278244af7230Smrg $as_echo_n "(cached) " >&6 27838ae04fa6Smrgelse 27848ae04fa6Smrg if test -n "$CC"; then 27858ae04fa6Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 27868ae04fa6Smrgelse 27878ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27888ae04fa6Smrgfor as_dir in $PATH 27898ae04fa6Smrgdo 27908ae04fa6Smrg IFS=$as_save_IFS 27918ae04fa6Smrg test -z "$as_dir" && as_dir=. 27922d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 279380f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27948ae04fa6Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 27952d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27968ae04fa6Smrg break 2 27978ae04fa6Smrg fi 27988ae04fa6Smrgdone 27992d1d20fcSmrg done 28008ae04fa6SmrgIFS=$as_save_IFS 28018ae04fa6Smrg 28028ae04fa6Smrgfi 28038ae04fa6Smrgfi 28048ae04fa6SmrgCC=$ac_cv_prog_CC 28058ae04fa6Smrgif test -n "$CC"; then 28062d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 280744af7230Smrg$as_echo "$CC" >&6; } 28088ae04fa6Smrgelse 28092d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 281044af7230Smrg$as_echo "no" >&6; } 28118ae04fa6Smrgfi 28128ae04fa6Smrg 28138ae04fa6Smrg 28148ae04fa6Smrgfi 28158ae04fa6Smrgif test -z "$ac_cv_prog_CC"; then 28168ae04fa6Smrg ac_ct_CC=$CC 28178ae04fa6Smrg # Extract the first word of "gcc", so it can be a program name with args. 28188ae04fa6Smrgset dummy gcc; ac_word=$2 28192d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 282044af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 28212d1d20fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 282244af7230Smrg $as_echo_n "(cached) " >&6 28238ae04fa6Smrgelse 28248ae04fa6Smrg if test -n "$ac_ct_CC"; then 28258ae04fa6Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28268ae04fa6Smrgelse 28278ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28288ae04fa6Smrgfor as_dir in $PATH 28298ae04fa6Smrgdo 28308ae04fa6Smrg IFS=$as_save_IFS 28318ae04fa6Smrg test -z "$as_dir" && as_dir=. 28322d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 283380f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28348ae04fa6Smrg ac_cv_prog_ac_ct_CC="gcc" 28352d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28368ae04fa6Smrg break 2 28378ae04fa6Smrg fi 28388ae04fa6Smrgdone 28392d1d20fcSmrg done 28408ae04fa6SmrgIFS=$as_save_IFS 28418ae04fa6Smrg 28428ae04fa6Smrgfi 28438ae04fa6Smrgfi 28448ae04fa6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28458ae04fa6Smrgif test -n "$ac_ct_CC"; then 28462d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 284744af7230Smrg$as_echo "$ac_ct_CC" >&6; } 28488ae04fa6Smrgelse 28492d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 285044af7230Smrg$as_echo "no" >&6; } 28518ae04fa6Smrgfi 28528ae04fa6Smrg 28538ae04fa6Smrg if test "x$ac_ct_CC" = x; then 28548ae04fa6Smrg CC="" 28558ae04fa6Smrg else 28568ae04fa6Smrg case $cross_compiling:$ac_tool_warned in 28578ae04fa6Smrgyes:) 28582d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 285944af7230Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28608ae04fa6Smrgac_tool_warned=yes ;; 28618ae04fa6Smrgesac 28628ae04fa6Smrg CC=$ac_ct_CC 28638ae04fa6Smrg fi 28648ae04fa6Smrgelse 28658ae04fa6Smrg CC="$ac_cv_prog_CC" 28668ae04fa6Smrgfi 28678ae04fa6Smrg 28688ae04fa6Smrgif test -z "$CC"; then 28698ae04fa6Smrg if test -n "$ac_tool_prefix"; then 28708ae04fa6Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28718ae04fa6Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 28722d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 287344af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 28742d1d20fcSmrgif ${ac_cv_prog_CC+:} false; then : 287544af7230Smrg $as_echo_n "(cached) " >&6 28768ae04fa6Smrgelse 28778ae04fa6Smrg if test -n "$CC"; then 28788ae04fa6Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28798ae04fa6Smrgelse 28808ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28818ae04fa6Smrgfor as_dir in $PATH 28828ae04fa6Smrgdo 28838ae04fa6Smrg IFS=$as_save_IFS 28848ae04fa6Smrg test -z "$as_dir" && as_dir=. 28852d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 288680f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28878ae04fa6Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 28882d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28898ae04fa6Smrg break 2 28908ae04fa6Smrg fi 28918ae04fa6Smrgdone 28922d1d20fcSmrg done 28938ae04fa6SmrgIFS=$as_save_IFS 28948ae04fa6Smrg 28958ae04fa6Smrgfi 28968ae04fa6Smrgfi 28978ae04fa6SmrgCC=$ac_cv_prog_CC 28988ae04fa6Smrgif test -n "$CC"; then 28992d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 290044af7230Smrg$as_echo "$CC" >&6; } 29018ae04fa6Smrgelse 29022d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 290344af7230Smrg$as_echo "no" >&6; } 29048ae04fa6Smrgfi 29058ae04fa6Smrg 29068ae04fa6Smrg 29078ae04fa6Smrg fi 29088ae04fa6Smrgfi 29098ae04fa6Smrgif test -z "$CC"; then 29108ae04fa6Smrg # Extract the first word of "cc", so it can be a program name with args. 29118ae04fa6Smrgset dummy cc; ac_word=$2 29122d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 291344af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 29142d1d20fcSmrgif ${ac_cv_prog_CC+:} false; then : 291544af7230Smrg $as_echo_n "(cached) " >&6 29168ae04fa6Smrgelse 29178ae04fa6Smrg if test -n "$CC"; then 29188ae04fa6Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29198ae04fa6Smrgelse 29208ae04fa6Smrg ac_prog_rejected=no 29218ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29228ae04fa6Smrgfor as_dir in $PATH 29238ae04fa6Smrgdo 29248ae04fa6Smrg IFS=$as_save_IFS 29258ae04fa6Smrg test -z "$as_dir" && as_dir=. 29262d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 292780f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29288ae04fa6Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29298ae04fa6Smrg ac_prog_rejected=yes 29308ae04fa6Smrg continue 29318ae04fa6Smrg fi 29328ae04fa6Smrg ac_cv_prog_CC="cc" 29332d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29348ae04fa6Smrg break 2 29358ae04fa6Smrg fi 29368ae04fa6Smrgdone 29372d1d20fcSmrg done 29388ae04fa6SmrgIFS=$as_save_IFS 29398ae04fa6Smrg 29408ae04fa6Smrgif test $ac_prog_rejected = yes; then 29418ae04fa6Smrg # We found a bogon in the path, so make sure we never use it. 29428ae04fa6Smrg set dummy $ac_cv_prog_CC 29438ae04fa6Smrg shift 29448ae04fa6Smrg if test $# != 0; then 29458ae04fa6Smrg # We chose a different compiler from the bogus one. 29468ae04fa6Smrg # However, it has the same basename, so the bogon will be chosen 29478ae04fa6Smrg # first if we set CC to just the basename; use the full file name. 29488ae04fa6Smrg shift 29498ae04fa6Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29508ae04fa6Smrg fi 29518ae04fa6Smrgfi 29528ae04fa6Smrgfi 29538ae04fa6Smrgfi 29548ae04fa6SmrgCC=$ac_cv_prog_CC 29558ae04fa6Smrgif test -n "$CC"; then 29562d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 295744af7230Smrg$as_echo "$CC" >&6; } 29588ae04fa6Smrgelse 29592d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 296044af7230Smrg$as_echo "no" >&6; } 29618ae04fa6Smrgfi 29628ae04fa6Smrg 29638ae04fa6Smrg 29648ae04fa6Smrgfi 29658ae04fa6Smrgif test -z "$CC"; then 29668ae04fa6Smrg if test -n "$ac_tool_prefix"; then 29678ae04fa6Smrg for ac_prog in cl.exe 29688ae04fa6Smrg do 29698ae04fa6Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29708ae04fa6Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 29712d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 297244af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 29732d1d20fcSmrgif ${ac_cv_prog_CC+:} false; then : 297444af7230Smrg $as_echo_n "(cached) " >&6 29758ae04fa6Smrgelse 29768ae04fa6Smrg if test -n "$CC"; then 29778ae04fa6Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29788ae04fa6Smrgelse 29798ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29808ae04fa6Smrgfor as_dir in $PATH 29818ae04fa6Smrgdo 29828ae04fa6Smrg IFS=$as_save_IFS 29838ae04fa6Smrg test -z "$as_dir" && as_dir=. 29842d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 298580f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29868ae04fa6Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29872d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29888ae04fa6Smrg break 2 29898ae04fa6Smrg fi 29908ae04fa6Smrgdone 29912d1d20fcSmrg done 29928ae04fa6SmrgIFS=$as_save_IFS 29938ae04fa6Smrg 29948ae04fa6Smrgfi 29958ae04fa6Smrgfi 29968ae04fa6SmrgCC=$ac_cv_prog_CC 29978ae04fa6Smrgif test -n "$CC"; then 29982d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 299944af7230Smrg$as_echo "$CC" >&6; } 30008ae04fa6Smrgelse 30012d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 300244af7230Smrg$as_echo "no" >&6; } 30038ae04fa6Smrgfi 30048ae04fa6Smrg 30058ae04fa6Smrg 30068ae04fa6Smrg test -n "$CC" && break 30078ae04fa6Smrg done 30088ae04fa6Smrgfi 30098ae04fa6Smrgif test -z "$CC"; then 30108ae04fa6Smrg ac_ct_CC=$CC 30118ae04fa6Smrg for ac_prog in cl.exe 30128ae04fa6Smrgdo 30138ae04fa6Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 30148ae04fa6Smrgset dummy $ac_prog; ac_word=$2 30152d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 301644af7230Smrg$as_echo_n "checking for $ac_word... " >&6; } 30172d1d20fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 301844af7230Smrg $as_echo_n "(cached) " >&6 30198ae04fa6Smrgelse 30208ae04fa6Smrg if test -n "$ac_ct_CC"; then 30218ae04fa6Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30228ae04fa6Smrgelse 30238ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30248ae04fa6Smrgfor as_dir in $PATH 30258ae04fa6Smrgdo 30268ae04fa6Smrg IFS=$as_save_IFS 30278ae04fa6Smrg test -z "$as_dir" && as_dir=. 30282d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 302980f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30308ae04fa6Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 30312d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30328ae04fa6Smrg break 2 30338ae04fa6Smrg fi 30348ae04fa6Smrgdone 30352d1d20fcSmrg done 30368ae04fa6SmrgIFS=$as_save_IFS 30378ae04fa6Smrg 30388ae04fa6Smrgfi 30398ae04fa6Smrgfi 30408ae04fa6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30418ae04fa6Smrgif test -n "$ac_ct_CC"; then 30422d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 304344af7230Smrg$as_echo "$ac_ct_CC" >&6; } 30448ae04fa6Smrgelse 30452d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 304644af7230Smrg$as_echo "no" >&6; } 30478ae04fa6Smrgfi 30488ae04fa6Smrg 30498ae04fa6Smrg 30508ae04fa6Smrg test -n "$ac_ct_CC" && break 30518ae04fa6Smrgdone 30528ae04fa6Smrg 30538ae04fa6Smrg if test "x$ac_ct_CC" = x; then 30548ae04fa6Smrg CC="" 30558ae04fa6Smrg else 30568ae04fa6Smrg case $cross_compiling:$ac_tool_warned in 30578ae04fa6Smrgyes:) 30582d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 305944af7230Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30608ae04fa6Smrgac_tool_warned=yes ;; 30618ae04fa6Smrgesac 30628ae04fa6Smrg CC=$ac_ct_CC 30638ae04fa6Smrg fi 30648ae04fa6Smrgfi 30658ae04fa6Smrg 30668ae04fa6Smrgfi 30678ae04fa6Smrg 30688ae04fa6Smrg 30692d1d20fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 307044af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30712d1d20fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 30722d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 30738ae04fa6Smrg 30748ae04fa6Smrg# Provide some information about the compiler. 30752d1d20fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 307644af7230Smrgset X $ac_compile 307744af7230Smrgac_compiler=$2 30782d1d20fcSmrgfor ac_option in --version -v -V -qversion; do 30792d1d20fcSmrg { { ac_try="$ac_compiler $ac_option >&5" 30808ae04fa6Smrgcase "(($ac_try" in 30818ae04fa6Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30828ae04fa6Smrg *) ac_try_echo=$ac_try;; 30838ae04fa6Smrgesac 30842d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30852d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 30862d1d20fcSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30878ae04fa6Smrg ac_status=$? 30882d1d20fcSmrg if test -s conftest.err; then 30892d1d20fcSmrg sed '10a\ 30902d1d20fcSmrg... rest of stderr output deleted ... 30912d1d20fcSmrg 10q' conftest.err >conftest.er1 30922d1d20fcSmrg cat conftest.er1 >&5 30932d1d20fcSmrg fi 30942d1d20fcSmrg rm -f conftest.er1 conftest.err 30952d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30962d1d20fcSmrg test $ac_status = 0; } 30972d1d20fcSmrgdone 30988ae04fa6Smrg 30992d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 31008ae04fa6Smrg/* end confdefs.h. */ 31018ae04fa6Smrg 31028ae04fa6Smrgint 31038ae04fa6Smrgmain () 31048ae04fa6Smrg{ 31058ae04fa6Smrg 31068ae04fa6Smrg ; 31078ae04fa6Smrg return 0; 31088ae04fa6Smrg} 31098ae04fa6Smrg_ACEOF 31108ae04fa6Smrgac_clean_files_save=$ac_clean_files 311144af7230Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 31128ae04fa6Smrg# Try to create an executable without -o first, disregard a.out. 31138ae04fa6Smrg# It will help us diagnose broken compilers, and finding out an intuition 31148ae04fa6Smrg# of exeext. 31152d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 31162d1d20fcSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 311744af7230Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 311844af7230Smrg 311944af7230Smrg# The possible output files: 312044af7230Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 312144af7230Smrg 31228ae04fa6Smrgac_rmfiles= 31238ae04fa6Smrgfor ac_file in $ac_files 31248ae04fa6Smrgdo 31258ae04fa6Smrg case $ac_file in 312644af7230Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31278ae04fa6Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 31288ae04fa6Smrg esac 31298ae04fa6Smrgdone 31308ae04fa6Smrgrm -f $ac_rmfiles 31318ae04fa6Smrg 31322d1d20fcSmrgif { { ac_try="$ac_link_default" 31338ae04fa6Smrgcase "(($ac_try" in 31348ae04fa6Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31358ae04fa6Smrg *) ac_try_echo=$ac_try;; 31368ae04fa6Smrgesac 31372d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31382d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 31398ae04fa6Smrg (eval "$ac_link_default") 2>&5 31408ae04fa6Smrg ac_status=$? 31412d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31422d1d20fcSmrg test $ac_status = 0; }; then : 31438ae04fa6Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 31448ae04fa6Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 31458ae04fa6Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 31468ae04fa6Smrg# so that the user can short-circuit this test for compilers unknown to 31478ae04fa6Smrg# Autoconf. 31488ae04fa6Smrgfor ac_file in $ac_files '' 31498ae04fa6Smrgdo 31508ae04fa6Smrg test -f "$ac_file" || continue 31518ae04fa6Smrg case $ac_file in 315244af7230Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31538ae04fa6Smrg ;; 31548ae04fa6Smrg [ab].out ) 31558ae04fa6Smrg # We found the default executable, but exeext='' is most 31568ae04fa6Smrg # certainly right. 31578ae04fa6Smrg break;; 31588ae04fa6Smrg *.* ) 31592d1d20fcSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 31608ae04fa6Smrg then :; else 31618ae04fa6Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31628ae04fa6Smrg fi 31638ae04fa6Smrg # We set ac_cv_exeext here because the later test for it is not 31648ae04fa6Smrg # safe: cross compilers may not add the suffix if given an `-o' 31658ae04fa6Smrg # argument, so we may need to know it at that point already. 31668ae04fa6Smrg # Even if this section looks crufty: it has the advantage of 31678ae04fa6Smrg # actually working. 31688ae04fa6Smrg break;; 31698ae04fa6Smrg * ) 31708ae04fa6Smrg break;; 31718ae04fa6Smrg esac 31728ae04fa6Smrgdone 31738ae04fa6Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 31748ae04fa6Smrg 31758ae04fa6Smrgelse 31768ae04fa6Smrg ac_file='' 31778ae04fa6Smrgfi 31782d1d20fcSmrgif test -z "$ac_file"; then : 31792d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31802d1d20fcSmrg$as_echo "no" >&6; } 31812d1d20fcSmrg$as_echo "$as_me: failed program was:" >&5 31828ae04fa6Smrgsed 's/^/| /' conftest.$ac_ext >&5 31838ae04fa6Smrg 31842d1d20fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 318544af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31862d1d20fcSmrgas_fn_error 77 "C compiler cannot create executables 31872d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 31882d1d20fcSmrgelse 31892d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31902d1d20fcSmrg$as_echo "yes" >&6; } 31918ae04fa6Smrgfi 31922d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31932d1d20fcSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 31942d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31952d1d20fcSmrg$as_echo "$ac_file" >&6; } 31968ae04fa6Smrgac_exeext=$ac_cv_exeext 31978ae04fa6Smrg 319844af7230Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 31998ae04fa6Smrgac_clean_files=$ac_clean_files_save 32002d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 320144af7230Smrg$as_echo_n "checking for suffix of executables... " >&6; } 32022d1d20fcSmrgif { { ac_try="$ac_link" 32038ae04fa6Smrgcase "(($ac_try" in 32048ae04fa6Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32058ae04fa6Smrg *) ac_try_echo=$ac_try;; 32068ae04fa6Smrgesac 32072d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32082d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 32098ae04fa6Smrg (eval "$ac_link") 2>&5 32108ae04fa6Smrg ac_status=$? 32112d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32122d1d20fcSmrg test $ac_status = 0; }; then : 32138ae04fa6Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 32148ae04fa6Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32158ae04fa6Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 32168ae04fa6Smrg# `rm'. 32178ae04fa6Smrgfor ac_file in conftest.exe conftest conftest.*; do 32188ae04fa6Smrg test -f "$ac_file" || continue 32198ae04fa6Smrg case $ac_file in 322044af7230Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32218ae04fa6Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32228ae04fa6Smrg break;; 32238ae04fa6Smrg * ) break;; 32248ae04fa6Smrg esac 32258ae04fa6Smrgdone 32268ae04fa6Smrgelse 32272d1d20fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 322844af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32292d1d20fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 32302d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32318ae04fa6Smrgfi 32322d1d20fcSmrgrm -f conftest conftest$ac_cv_exeext 32332d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 323444af7230Smrg$as_echo "$ac_cv_exeext" >&6; } 32358ae04fa6Smrg 32368ae04fa6Smrgrm -f conftest.$ac_ext 32378ae04fa6SmrgEXEEXT=$ac_cv_exeext 32388ae04fa6Smrgac_exeext=$EXEEXT 32392d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32402d1d20fcSmrg/* end confdefs.h. */ 32412d1d20fcSmrg#include <stdio.h> 32422d1d20fcSmrgint 32432d1d20fcSmrgmain () 32442d1d20fcSmrg{ 32452d1d20fcSmrgFILE *f = fopen ("conftest.out", "w"); 32462d1d20fcSmrg return ferror (f) || fclose (f) != 0; 32472d1d20fcSmrg 32482d1d20fcSmrg ; 32492d1d20fcSmrg return 0; 32502d1d20fcSmrg} 32512d1d20fcSmrg_ACEOF 32522d1d20fcSmrgac_clean_files="$ac_clean_files conftest.out" 32532d1d20fcSmrg# Check that the compiler produces executables we can run. If not, either 32542d1d20fcSmrg# the compiler is broken, or we cross compile. 32552d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32562d1d20fcSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 32572d1d20fcSmrgif test "$cross_compiling" != yes; then 32582d1d20fcSmrg { { ac_try="$ac_link" 32592d1d20fcSmrgcase "(($ac_try" in 32602d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32612d1d20fcSmrg *) ac_try_echo=$ac_try;; 32622d1d20fcSmrgesac 32632d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32642d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 32652d1d20fcSmrg (eval "$ac_link") 2>&5 32662d1d20fcSmrg ac_status=$? 32672d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32682d1d20fcSmrg test $ac_status = 0; } 32692d1d20fcSmrg if { ac_try='./conftest$ac_cv_exeext' 32702d1d20fcSmrg { { case "(($ac_try" in 32712d1d20fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32722d1d20fcSmrg *) ac_try_echo=$ac_try;; 32732d1d20fcSmrgesac 32742d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32752d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 32762d1d20fcSmrg (eval "$ac_try") 2>&5 32772d1d20fcSmrg ac_status=$? 32782d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32792d1d20fcSmrg test $ac_status = 0; }; }; then 32802d1d20fcSmrg cross_compiling=no 32812d1d20fcSmrg else 32822d1d20fcSmrg if test "$cross_compiling" = maybe; then 32832d1d20fcSmrg cross_compiling=yes 32842d1d20fcSmrg else 32852d1d20fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32862d1d20fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32872d1d20fcSmrgas_fn_error $? "cannot run C compiled programs. 32882d1d20fcSmrgIf you meant to cross compile, use \`--host'. 32892d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32902d1d20fcSmrg fi 32912d1d20fcSmrg fi 32922d1d20fcSmrgfi 32932d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32942d1d20fcSmrg$as_echo "$cross_compiling" >&6; } 32952d1d20fcSmrg 32962d1d20fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32972d1d20fcSmrgac_clean_files=$ac_clean_files_save 32982d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 329944af7230Smrg$as_echo_n "checking for suffix of object files... " >&6; } 33002d1d20fcSmrgif ${ac_cv_objext+:} false; then : 330144af7230Smrg $as_echo_n "(cached) " >&6 33028ae04fa6Smrgelse 33032d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33048ae04fa6Smrg/* end confdefs.h. */ 33058ae04fa6Smrg 33068ae04fa6Smrgint 33078ae04fa6Smrgmain () 33088ae04fa6Smrg{ 33098ae04fa6Smrg 33108ae04fa6Smrg ; 33118ae04fa6Smrg return 0; 33128ae04fa6Smrg} 33138ae04fa6Smrg_ACEOF 33148ae04fa6Smrgrm -f conftest.o conftest.obj 33152d1d20fcSmrgif { { ac_try="$ac_compile" 33168ae04fa6Smrgcase "(($ac_try" in 33178ae04fa6Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33188ae04fa6Smrg *) ac_try_echo=$ac_try;; 33198ae04fa6Smrgesac 33202d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33212d1d20fcSmrg$as_echo "$ac_try_echo"; } >&5 33228ae04fa6Smrg (eval "$ac_compile") 2>&5 33238ae04fa6Smrg ac_status=$? 33242d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33252d1d20fcSmrg test $ac_status = 0; }; then : 33268ae04fa6Smrg for ac_file in conftest.o conftest.obj conftest.*; do 33278ae04fa6Smrg test -f "$ac_file" || continue; 33288ae04fa6Smrg case $ac_file in 332944af7230Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33308ae04fa6Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33318ae04fa6Smrg break;; 33328ae04fa6Smrg esac 33338ae04fa6Smrgdone 33348ae04fa6Smrgelse 333544af7230Smrg $as_echo "$as_me: failed program was:" >&5 33368ae04fa6Smrgsed 's/^/| /' conftest.$ac_ext >&5 33378ae04fa6Smrg 33382d1d20fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 333944af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33402d1d20fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 33412d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 33428ae04fa6Smrgfi 33438ae04fa6Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33448ae04fa6Smrgfi 33452d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 334644af7230Smrg$as_echo "$ac_cv_objext" >&6; } 33478ae04fa6SmrgOBJEXT=$ac_cv_objext 33488ae04fa6Smrgac_objext=$OBJEXT 33492d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 335044af7230Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 33512d1d20fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 335244af7230Smrg $as_echo_n "(cached) " >&6 33538ae04fa6Smrgelse 33542d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33558ae04fa6Smrg/* end confdefs.h. */ 33568ae04fa6Smrg 33578ae04fa6Smrgint 33588ae04fa6Smrgmain () 33598ae04fa6Smrg{ 33608ae04fa6Smrg#ifndef __GNUC__ 33618ae04fa6Smrg choke me 33628ae04fa6Smrg#endif 33638ae04fa6Smrg 33648ae04fa6Smrg ; 33658ae04fa6Smrg return 0; 33668ae04fa6Smrg} 33678ae04fa6Smrg_ACEOF 33682d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33698ae04fa6Smrg ac_compiler_gnu=yes 33708ae04fa6Smrgelse 33712d1d20fcSmrg ac_compiler_gnu=no 33728ae04fa6Smrgfi 33738ae04fa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33748ae04fa6Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33758ae04fa6Smrg 33768ae04fa6Smrgfi 33772d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 337844af7230Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 337944af7230Smrgif test $ac_compiler_gnu = yes; then 338044af7230Smrg GCC=yes 338144af7230Smrgelse 338244af7230Smrg GCC= 338344af7230Smrgfi 33848ae04fa6Smrgac_test_CFLAGS=${CFLAGS+set} 33858ae04fa6Smrgac_save_CFLAGS=$CFLAGS 33862d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 338744af7230Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 33882d1d20fcSmrgif ${ac_cv_prog_cc_g+:} false; then : 338944af7230Smrg $as_echo_n "(cached) " >&6 33908ae04fa6Smrgelse 33918ae04fa6Smrg ac_save_c_werror_flag=$ac_c_werror_flag 33928ae04fa6Smrg ac_c_werror_flag=yes 33938ae04fa6Smrg ac_cv_prog_cc_g=no 33948ae04fa6Smrg CFLAGS="-g" 33952d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33968ae04fa6Smrg/* end confdefs.h. */ 33978ae04fa6Smrg 33988ae04fa6Smrgint 33998ae04fa6Smrgmain () 34008ae04fa6Smrg{ 34018ae04fa6Smrg 34028ae04fa6Smrg ; 34038ae04fa6Smrg return 0; 34048ae04fa6Smrg} 34058ae04fa6Smrg_ACEOF 34062d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34078ae04fa6Smrg ac_cv_prog_cc_g=yes 34088ae04fa6Smrgelse 34092d1d20fcSmrg CFLAGS="" 34102d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34118ae04fa6Smrg/* end confdefs.h. */ 34128ae04fa6Smrg 34138ae04fa6Smrgint 34148ae04fa6Smrgmain () 34158ae04fa6Smrg{ 34168ae04fa6Smrg 34178ae04fa6Smrg ; 34188ae04fa6Smrg return 0; 34198ae04fa6Smrg} 34208ae04fa6Smrg_ACEOF 34212d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34228ae04fa6Smrg 34232d1d20fcSmrgelse 34242d1d20fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34258ae04fa6Smrg CFLAGS="-g" 34262d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34278ae04fa6Smrg/* end confdefs.h. */ 34288ae04fa6Smrg 34298ae04fa6Smrgint 34308ae04fa6Smrgmain () 34318ae04fa6Smrg{ 34328ae04fa6Smrg 34338ae04fa6Smrg ; 34348ae04fa6Smrg return 0; 34358ae04fa6Smrg} 34368ae04fa6Smrg_ACEOF 34372d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34388ae04fa6Smrg ac_cv_prog_cc_g=yes 34398ae04fa6Smrgfi 34408ae04fa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34418ae04fa6Smrgfi 34428ae04fa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34438ae04fa6Smrgfi 34448ae04fa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34458ae04fa6Smrg ac_c_werror_flag=$ac_save_c_werror_flag 34468ae04fa6Smrgfi 34472d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 344844af7230Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 34498ae04fa6Smrgif test "$ac_test_CFLAGS" = set; then 34508ae04fa6Smrg CFLAGS=$ac_save_CFLAGS 34518ae04fa6Smrgelif test $ac_cv_prog_cc_g = yes; then 34528ae04fa6Smrg if test "$GCC" = yes; then 34538ae04fa6Smrg CFLAGS="-g -O2" 34548ae04fa6Smrg else 34558ae04fa6Smrg CFLAGS="-g" 34568ae04fa6Smrg fi 34578ae04fa6Smrgelse 34588ae04fa6Smrg if test "$GCC" = yes; then 34598ae04fa6Smrg CFLAGS="-O2" 34608ae04fa6Smrg else 34618ae04fa6Smrg CFLAGS= 34628ae04fa6Smrg fi 34638ae04fa6Smrgfi 34642d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 346544af7230Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34662d1d20fcSmrgif ${ac_cv_prog_cc_c89+:} false; then : 346744af7230Smrg $as_echo_n "(cached) " >&6 34688ae04fa6Smrgelse 34698ae04fa6Smrg ac_cv_prog_cc_c89=no 34708ae04fa6Smrgac_save_CC=$CC 34712d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34728ae04fa6Smrg/* end confdefs.h. */ 34738ae04fa6Smrg#include <stdarg.h> 34748ae04fa6Smrg#include <stdio.h> 347580f56f3aSmrgstruct stat; 34768ae04fa6Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34778ae04fa6Smrgstruct buf { int x; }; 34788ae04fa6SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 34798ae04fa6Smrgstatic char *e (p, i) 34808ae04fa6Smrg char **p; 34818ae04fa6Smrg int i; 34828ae04fa6Smrg{ 34838ae04fa6Smrg return p[i]; 34848ae04fa6Smrg} 34858ae04fa6Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 34868ae04fa6Smrg{ 34878ae04fa6Smrg char *s; 34888ae04fa6Smrg va_list v; 34898ae04fa6Smrg va_start (v,p); 34908ae04fa6Smrg s = g (p, va_arg (v,int)); 34918ae04fa6Smrg va_end (v); 34928ae04fa6Smrg return s; 34938ae04fa6Smrg} 34948ae04fa6Smrg 34958ae04fa6Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34968ae04fa6Smrg function prototypes and stuff, but not '\xHH' hex character constants. 34978ae04fa6Smrg These don't provoke an error unfortunately, instead are silently treated 34988ae04fa6Smrg as 'x'. The following induces an error, until -std is added to get 34998ae04fa6Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35008ae04fa6Smrg array size at least. It's necessary to write '\x00'==0 to get something 35018ae04fa6Smrg that's true only with -std. */ 35028ae04fa6Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35038ae04fa6Smrg 35048ae04fa6Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35058ae04fa6Smrg inside strings and character constants. */ 35068ae04fa6Smrg#define FOO(x) 'x' 35078ae04fa6Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35088ae04fa6Smrg 35098ae04fa6Smrgint test (int i, double x); 35108ae04fa6Smrgstruct s1 {int (*f) (int a);}; 35118ae04fa6Smrgstruct s2 {int (*f) (double a);}; 35128ae04fa6Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35138ae04fa6Smrgint argc; 35148ae04fa6Smrgchar **argv; 35158ae04fa6Smrgint 35168ae04fa6Smrgmain () 35178ae04fa6Smrg{ 35188ae04fa6Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35198ae04fa6Smrg ; 35208ae04fa6Smrg return 0; 35218ae04fa6Smrg} 35228ae04fa6Smrg_ACEOF 35238ae04fa6Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35248ae04fa6Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35258ae04fa6Smrgdo 35268ae04fa6Smrg CC="$ac_save_CC $ac_arg" 35272d1d20fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 35288ae04fa6Smrg ac_cv_prog_cc_c89=$ac_arg 35298ae04fa6Smrgfi 35308ae04fa6Smrgrm -f core conftest.err conftest.$ac_objext 35318ae04fa6Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35328ae04fa6Smrgdone 35338ae04fa6Smrgrm -f conftest.$ac_ext 35348ae04fa6SmrgCC=$ac_save_CC 35358ae04fa6Smrg 35368ae04fa6Smrgfi 35378ae04fa6Smrg# AC_CACHE_VAL 35388ae04fa6Smrgcase "x$ac_cv_prog_cc_c89" in 35398ae04fa6Smrg x) 35402d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 354144af7230Smrg$as_echo "none needed" >&6; } ;; 35428ae04fa6Smrg xno) 35432d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 354444af7230Smrg$as_echo "unsupported" >&6; } ;; 35458ae04fa6Smrg *) 35468ae04fa6Smrg CC="$CC $ac_cv_prog_cc_c89" 35472d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 354844af7230Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35498ae04fa6Smrgesac 35502d1d20fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35518ae04fa6Smrg 35522d1d20fcSmrgfi 35538ae04fa6Smrg 35548ae04fa6Smrgac_ext=c 35558ae04fa6Smrgac_cpp='$CPP $CPPFLAGS' 35568ae04fa6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35578ae04fa6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35588ae04fa6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35598ae04fa6Smrg 356080f56f3aSmrgac_ext=c 356180f56f3aSmrgac_cpp='$CPP $CPPFLAGS' 356280f56f3aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 356380f56f3aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 356480f56f3aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 356580f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 356680f56f3aSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 356780f56f3aSmrgif ${am_cv_prog_cc_c_o+:} false; then : 356880f56f3aSmrg $as_echo_n "(cached) " >&6 356980f56f3aSmrgelse 357080f56f3aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 357180f56f3aSmrg/* end confdefs.h. */ 357280f56f3aSmrg 357380f56f3aSmrgint 357480f56f3aSmrgmain () 357580f56f3aSmrg{ 357680f56f3aSmrg 357780f56f3aSmrg ; 357880f56f3aSmrg return 0; 357980f56f3aSmrg} 358080f56f3aSmrg_ACEOF 358180f56f3aSmrg # Make sure it works both with $CC and with simple cc. 358280f56f3aSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 358380f56f3aSmrg # compilers refuse to overwrite an existing .o file with -o, 358480f56f3aSmrg # though they will create one. 358580f56f3aSmrg am_cv_prog_cc_c_o=yes 358680f56f3aSmrg for am_i in 1 2; do 358780f56f3aSmrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 358880f56f3aSmrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 358980f56f3aSmrg ac_status=$? 359080f56f3aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 359180f56f3aSmrg (exit $ac_status); } \ 359280f56f3aSmrg && test -f conftest2.$ac_objext; then 359380f56f3aSmrg : OK 359480f56f3aSmrg else 359580f56f3aSmrg am_cv_prog_cc_c_o=no 359680f56f3aSmrg break 359780f56f3aSmrg fi 359880f56f3aSmrg done 359980f56f3aSmrg rm -f core conftest* 360080f56f3aSmrg unset am_i 360180f56f3aSmrgfi 360280f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 360380f56f3aSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 360480f56f3aSmrgif test "$am_cv_prog_cc_c_o" != yes; then 360580f56f3aSmrg # Losing compiler, so override with the script. 360680f56f3aSmrg # FIXME: It is wrong to rewrite CC. 360780f56f3aSmrg # But if we don't then we get into trouble of one sort or another. 360880f56f3aSmrg # A longer-term fix would be to have automake use am__CC in this case, 360980f56f3aSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 361080f56f3aSmrg CC="$am_aux_dir/compile $CC" 361180f56f3aSmrgfi 361280f56f3aSmrgac_ext=c 361380f56f3aSmrgac_cpp='$CPP $CPPFLAGS' 361480f56f3aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 361580f56f3aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 361680f56f3aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 361780f56f3aSmrg 361880f56f3aSmrg 36198ae04fa6Smrgdepcc="$CC" am_compiler_list= 36208ae04fa6Smrg 36212d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 362244af7230Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 36232d1d20fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 362444af7230Smrg $as_echo_n "(cached) " >&6 36258ae04fa6Smrgelse 36268ae04fa6Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 36278ae04fa6Smrg # We make a subdir and do the tests there. Otherwise we can end up 36288ae04fa6Smrg # making bogus files that we don't know about and never remove. For 36298ae04fa6Smrg # instance it was reported that on HP-UX the gcc test will end up 363080f56f3aSmrg # making a dummy file named 'D' -- because '-MD' means "put the output 363180f56f3aSmrg # in D". 3632405c8079Smrg rm -rf conftest.dir 36338ae04fa6Smrg mkdir conftest.dir 36348ae04fa6Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 36358ae04fa6Smrg # using a relative directory. 36368ae04fa6Smrg cp "$am_depcomp" conftest.dir 36378ae04fa6Smrg cd conftest.dir 36388ae04fa6Smrg # We will build objects and dependencies in a subdirectory because 36398ae04fa6Smrg # it helps to detect inapplicable dependency modes. For instance 36408ae04fa6Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 36418ae04fa6Smrg # side effect of compilation, but ICC will put the dependencies in 36428ae04fa6Smrg # the current directory while Tru64 will put them in the object 36438ae04fa6Smrg # directory. 36448ae04fa6Smrg mkdir sub 36458ae04fa6Smrg 36468ae04fa6Smrg am_cv_CC_dependencies_compiler_type=none 36478ae04fa6Smrg if test "$am_compiler_list" = ""; then 36488ae04fa6Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 36498ae04fa6Smrg fi 365044af7230Smrg am__universal=false 365144af7230Smrg case " $depcc " in #( 365244af7230Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 365344af7230Smrg esac 365444af7230Smrg 36558ae04fa6Smrg for depmode in $am_compiler_list; do 36568ae04fa6Smrg # Setup a source with many dependencies, because some compilers 36578ae04fa6Smrg # like to wrap large dependency lists on column 80 (with \), and 36588ae04fa6Smrg # we should not choose a depcomp mode which is confused by this. 36598ae04fa6Smrg # 36608ae04fa6Smrg # We need to recreate these files for each test, as the compiler may 36618ae04fa6Smrg # overwrite some of them when testing with obscure command lines. 36628ae04fa6Smrg # This happens at least with the AIX C compiler. 36638ae04fa6Smrg : > sub/conftest.c 36648ae04fa6Smrg for i in 1 2 3 4 5 6; do 36658ae04fa6Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 366680f56f3aSmrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 366780f56f3aSmrg # Solaris 10 /bin/sh. 366880f56f3aSmrg echo '/* dummy */' > sub/conftst$i.h 36698ae04fa6Smrg done 36708ae04fa6Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 36718ae04fa6Smrg 367280f56f3aSmrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 367344af7230Smrg # mode. It turns out that the SunPro C++ compiler does not properly 367480f56f3aSmrg # handle '-M -o', and we need to detect this. Also, some Intel 367580f56f3aSmrg # versions had trouble with output in subdirs. 367644af7230Smrg am__obj=sub/conftest.${OBJEXT-o} 367744af7230Smrg am__minus_obj="-o $am__obj" 36788ae04fa6Smrg case $depmode in 367944af7230Smrg gcc) 368044af7230Smrg # This depmode causes a compiler race in universal mode. 368144af7230Smrg test "$am__universal" = false || continue 368244af7230Smrg ;; 36838ae04fa6Smrg nosideeffect) 368480f56f3aSmrg # After this tag, mechanisms are not by side-effect, so they'll 368580f56f3aSmrg # only be used when explicitly requested. 36868ae04fa6Smrg if test "x$enable_dependency_tracking" = xyes; then 36878ae04fa6Smrg continue 36888ae04fa6Smrg else 36898ae04fa6Smrg break 36908ae04fa6Smrg fi 36918ae04fa6Smrg ;; 3692405c8079Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 369380f56f3aSmrg # This compiler won't grok '-c -o', but also, the minuso test has 369444af7230Smrg # not run yet. These depmodes are late enough in the game, and 369544af7230Smrg # so weak that their functioning should not be impacted. 369644af7230Smrg am__obj=conftest.${OBJEXT-o} 369744af7230Smrg am__minus_obj= 369844af7230Smrg ;; 36998ae04fa6Smrg none) break ;; 37008ae04fa6Smrg esac 37018ae04fa6Smrg if depmode=$depmode \ 370244af7230Smrg source=sub/conftest.c object=$am__obj \ 37038ae04fa6Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 370444af7230Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 37058ae04fa6Smrg >/dev/null 2>conftest.err && 37068ae04fa6Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 37078ae04fa6Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 370844af7230Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 37098ae04fa6Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 37108ae04fa6Smrg # icc doesn't choke on unknown options, it will just issue warnings 37118ae04fa6Smrg # or remarks (even with -Werror). So we grep stderr for any message 37128ae04fa6Smrg # that says an option was ignored or not supported. 37138ae04fa6Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 37148ae04fa6Smrg # icc: Command line warning: ignoring option '-M'; no argument required 37158ae04fa6Smrg # The diagnosis changed in icc 8.0: 37168ae04fa6Smrg # icc: Command line remark: option '-MP' not supported 37178ae04fa6Smrg if (grep 'ignoring option' conftest.err || 37188ae04fa6Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 37198ae04fa6Smrg am_cv_CC_dependencies_compiler_type=$depmode 37208ae04fa6Smrg break 37218ae04fa6Smrg fi 37228ae04fa6Smrg fi 37238ae04fa6Smrg done 37248ae04fa6Smrg 37258ae04fa6Smrg cd .. 37268ae04fa6Smrg rm -rf conftest.dir 37278ae04fa6Smrgelse 37288ae04fa6Smrg am_cv_CC_dependencies_compiler_type=none 37298ae04fa6Smrgfi 37308ae04fa6Smrg 37318ae04fa6Smrgfi 37322d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 373344af7230Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 37348ae04fa6SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 37358ae04fa6Smrg 37368ae04fa6Smrg if 37378ae04fa6Smrg test "x$enable_dependency_tracking" != xno \ 37388ae04fa6Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 37398ae04fa6Smrg am__fastdepCC_TRUE= 37408ae04fa6Smrg am__fastdepCC_FALSE='#' 37418ae04fa6Smrgelse 37428ae04fa6Smrg am__fastdepCC_TRUE='#' 37438ae04fa6Smrg am__fastdepCC_FALSE= 37448ae04fa6Smrgfi 37458ae04fa6Smrg 37468ae04fa6Smrg 37472d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 37482d1d20fcSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 37492d1d20fcSmrgif ${ac_cv_prog_cc_c99+:} false; then : 375044af7230Smrg $as_echo_n "(cached) " >&6 37518ae04fa6Smrgelse 37522d1d20fcSmrg ac_cv_prog_cc_c99=no 37532d1d20fcSmrgac_save_CC=$CC 37542d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 37552d1d20fcSmrg/* end confdefs.h. */ 37562d1d20fcSmrg#include <stdarg.h> 37572d1d20fcSmrg#include <stdbool.h> 37582d1d20fcSmrg#include <stdlib.h> 37592d1d20fcSmrg#include <wchar.h> 37602d1d20fcSmrg#include <stdio.h> 376144af7230Smrg 37622d1d20fcSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 37632d1d20fcSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 37642d1d20fcSmrg#define showlist(...) puts (#__VA_ARGS__) 37652d1d20fcSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 37662d1d20fcSmrgstatic void 37672d1d20fcSmrgtest_varargs_macros (void) 37682d1d20fcSmrg{ 37692d1d20fcSmrg int x = 1234; 37702d1d20fcSmrg int y = 5678; 37712d1d20fcSmrg debug ("Flag"); 37722d1d20fcSmrg debug ("X = %d\n", x); 37732d1d20fcSmrg showlist (The first, second, and third items.); 37742d1d20fcSmrg report (x>y, "x is %d but y is %d", x, y); 37752d1d20fcSmrg} 37768ae04fa6Smrg 37772d1d20fcSmrg// Check long long types. 37782d1d20fcSmrg#define BIG64 18446744073709551615ull 37792d1d20fcSmrg#define BIG32 4294967295ul 37802d1d20fcSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 37812d1d20fcSmrg#if !BIG_OK 37822d1d20fcSmrg your preprocessor is broken; 37832d1d20fcSmrg#endif 37842d1d20fcSmrg#if BIG_OK 37852d1d20fcSmrg#else 37862d1d20fcSmrg your preprocessor is broken; 37872d1d20fcSmrg#endif 37882d1d20fcSmrgstatic long long int bignum = -9223372036854775807LL; 37892d1d20fcSmrgstatic unsigned long long int ubignum = BIG64; 37908ae04fa6Smrg 37912d1d20fcSmrgstruct incomplete_array 37922d1d20fcSmrg{ 37932d1d20fcSmrg int datasize; 37942d1d20fcSmrg double data[]; 37952d1d20fcSmrg}; 37968ae04fa6Smrg 37972d1d20fcSmrgstruct named_init { 37982d1d20fcSmrg int number; 37992d1d20fcSmrg const wchar_t *name; 38002d1d20fcSmrg double average; 38012d1d20fcSmrg}; 38028ae04fa6Smrg 38032d1d20fcSmrgtypedef const char *ccp; 38048ae04fa6Smrg 38052d1d20fcSmrgstatic inline int 38062d1d20fcSmrgtest_restrict (ccp restrict text) 38072d1d20fcSmrg{ 38082d1d20fcSmrg // See if C++-style comments work. 38092d1d20fcSmrg // Iterate through items via the restricted pointer. 38102d1d20fcSmrg // Also check for declarations in for loops. 38112d1d20fcSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 38122d1d20fcSmrg continue; 38132d1d20fcSmrg return 0; 38142d1d20fcSmrg} 38152d1d20fcSmrg 38162d1d20fcSmrg// Check varargs and va_copy. 38172d1d20fcSmrgstatic void 38182d1d20fcSmrgtest_varargs (const char *format, ...) 38192d1d20fcSmrg{ 38202d1d20fcSmrg va_list args; 38212d1d20fcSmrg va_start (args, format); 38222d1d20fcSmrg va_list args_copy; 38232d1d20fcSmrg va_copy (args_copy, args); 38242d1d20fcSmrg 38252d1d20fcSmrg const char *str; 38262d1d20fcSmrg int number; 38272d1d20fcSmrg float fnumber; 38282d1d20fcSmrg 38292d1d20fcSmrg while (*format) 38302d1d20fcSmrg { 38312d1d20fcSmrg switch (*format++) 38322d1d20fcSmrg { 38332d1d20fcSmrg case 's': // string 38342d1d20fcSmrg str = va_arg (args_copy, const char *); 38352d1d20fcSmrg break; 38362d1d20fcSmrg case 'd': // int 38372d1d20fcSmrg number = va_arg (args_copy, int); 38382d1d20fcSmrg break; 38392d1d20fcSmrg case 'f': // float 38402d1d20fcSmrg fnumber = va_arg (args_copy, double); 38412d1d20fcSmrg break; 38422d1d20fcSmrg default: 38432d1d20fcSmrg break; 38442d1d20fcSmrg } 38452d1d20fcSmrg } 38462d1d20fcSmrg va_end (args_copy); 38472d1d20fcSmrg va_end (args); 38482d1d20fcSmrg} 38492d1d20fcSmrg 38502d1d20fcSmrgint 38512d1d20fcSmrgmain () 38522d1d20fcSmrg{ 38532d1d20fcSmrg 38542d1d20fcSmrg // Check bool. 38552d1d20fcSmrg _Bool success = false; 38562d1d20fcSmrg 38572d1d20fcSmrg // Check restrict. 38582d1d20fcSmrg if (test_restrict ("String literal") == 0) 38592d1d20fcSmrg success = true; 38602d1d20fcSmrg char *restrict newvar = "Another string"; 38612d1d20fcSmrg 38622d1d20fcSmrg // Check varargs. 38632d1d20fcSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 38642d1d20fcSmrg test_varargs_macros (); 38652d1d20fcSmrg 38662d1d20fcSmrg // Check flexible array members. 38672d1d20fcSmrg struct incomplete_array *ia = 38682d1d20fcSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 38692d1d20fcSmrg ia->datasize = 10; 38702d1d20fcSmrg for (int i = 0; i < ia->datasize; ++i) 38712d1d20fcSmrg ia->data[i] = i * 1.234; 38722d1d20fcSmrg 38732d1d20fcSmrg // Check named initializers. 38742d1d20fcSmrg struct named_init ni = { 38752d1d20fcSmrg .number = 34, 38762d1d20fcSmrg .name = L"Test wide string", 38772d1d20fcSmrg .average = 543.34343, 38782d1d20fcSmrg }; 38792d1d20fcSmrg 38802d1d20fcSmrg ni.number = 58; 38812d1d20fcSmrg 38822d1d20fcSmrg int dynamic_array[ni.number]; 38832d1d20fcSmrg dynamic_array[ni.number - 1] = 543; 38842d1d20fcSmrg 38852d1d20fcSmrg // work around unused variable warnings 38862d1d20fcSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 38872d1d20fcSmrg || dynamic_array[ni.number - 1] != 543); 38882d1d20fcSmrg 38892d1d20fcSmrg ; 38902d1d20fcSmrg return 0; 38912d1d20fcSmrg} 38922d1d20fcSmrg_ACEOF 389380f56f3aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 38942d1d20fcSmrgdo 38952d1d20fcSmrg CC="$ac_save_CC $ac_arg" 38962d1d20fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 38972d1d20fcSmrg ac_cv_prog_cc_c99=$ac_arg 38982d1d20fcSmrgfi 38992d1d20fcSmrgrm -f core conftest.err conftest.$ac_objext 39002d1d20fcSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 39012d1d20fcSmrgdone 39022d1d20fcSmrgrm -f conftest.$ac_ext 39032d1d20fcSmrgCC=$ac_save_CC 39042d1d20fcSmrg 39052d1d20fcSmrgfi 39062d1d20fcSmrg# AC_CACHE_VAL 39072d1d20fcSmrgcase "x$ac_cv_prog_cc_c99" in 39082d1d20fcSmrg x) 39092d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 39102d1d20fcSmrg$as_echo "none needed" >&6; } ;; 39112d1d20fcSmrg xno) 39122d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 39132d1d20fcSmrg$as_echo "unsupported" >&6; } ;; 39142d1d20fcSmrg *) 39152d1d20fcSmrg CC="$CC $ac_cv_prog_cc_c99" 39162d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 39172d1d20fcSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 39182d1d20fcSmrgesac 39192d1d20fcSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 39202d1d20fcSmrg 39212d1d20fcSmrgfi 39228ae04fa6Smrg 39238ae04fa6Smrg 39248ae04fa6Smrg 392544af7230Smrgac_ext=c 392644af7230Smrgac_cpp='$CPP $CPPFLAGS' 392744af7230Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 392844af7230Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 392944af7230Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 39302d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 393144af7230Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 393244af7230Smrg# On Suns, sometimes $CPP names a directory. 393344af7230Smrgif test -n "$CPP" && test -d "$CPP"; then 393444af7230Smrg CPP= 393544af7230Smrgfi 393644af7230Smrgif test -z "$CPP"; then 39372d1d20fcSmrg if ${ac_cv_prog_CPP+:} false; then : 393844af7230Smrg $as_echo_n "(cached) " >&6 39398ae04fa6Smrgelse 394044af7230Smrg # Double quotes because CPP needs to be expanded 394144af7230Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 394244af7230Smrg do 394344af7230Smrg ac_preproc_ok=false 394444af7230Smrgfor ac_c_preproc_warn_flag in '' yes 39458ae04fa6Smrgdo 394644af7230Smrg # Use a header file that comes with gcc, so configuring glibc 394744af7230Smrg # with a fresh cross-compiler works. 394844af7230Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 394944af7230Smrg # <limits.h> exists even on freestanding compilers. 395044af7230Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 395144af7230Smrg # not just through cpp. "Syntax error" is here to catch this case. 39522d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 395344af7230Smrg/* end confdefs.h. */ 395444af7230Smrg#ifdef __STDC__ 395544af7230Smrg# include <limits.h> 395644af7230Smrg#else 395744af7230Smrg# include <assert.h> 395844af7230Smrg#endif 395944af7230Smrg Syntax error 396044af7230Smrg_ACEOF 39612d1d20fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39628ae04fa6Smrg 39632d1d20fcSmrgelse 396444af7230Smrg # Broken: fails on valid input. 396544af7230Smrgcontinue 39668ae04fa6Smrgfi 39672d1d20fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39688ae04fa6Smrg 396944af7230Smrg # OK, works on sane cases. Now check whether nonexistent headers 397044af7230Smrg # can be detected and how. 39712d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 397244af7230Smrg/* end confdefs.h. */ 397344af7230Smrg#include <ac_nonexistent.h> 397444af7230Smrg_ACEOF 39752d1d20fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 397644af7230Smrg # Broken: success on invalid input. 397744af7230Smrgcontinue 39788ae04fa6Smrgelse 397944af7230Smrg # Passes both tests. 398044af7230Smrgac_preproc_ok=: 398144af7230Smrgbreak 39828ae04fa6Smrgfi 39832d1d20fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 398444af7230Smrg 398544af7230Smrgdone 398644af7230Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39872d1d20fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 39882d1d20fcSmrgif $ac_preproc_ok; then : 398944af7230Smrg break 39908ae04fa6Smrgfi 39918ae04fa6Smrg 399244af7230Smrg done 399344af7230Smrg ac_cv_prog_CPP=$CPP 39948ae04fa6Smrg 39958ae04fa6Smrgfi 399644af7230Smrg CPP=$ac_cv_prog_CPP 39978ae04fa6Smrgelse 399844af7230Smrg ac_cv_prog_CPP=$CPP 39998ae04fa6Smrgfi 40002d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 400144af7230Smrg$as_echo "$CPP" >&6; } 400244af7230Smrgac_preproc_ok=false 400344af7230Smrgfor ac_c_preproc_warn_flag in '' yes 400444af7230Smrgdo 400544af7230Smrg # Use a header file that comes with gcc, so configuring glibc 400644af7230Smrg # with a fresh cross-compiler works. 400744af7230Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 400844af7230Smrg # <limits.h> exists even on freestanding compilers. 400944af7230Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 401044af7230Smrg # not just through cpp. "Syntax error" is here to catch this case. 40112d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 401244af7230Smrg/* end confdefs.h. */ 401344af7230Smrg#ifdef __STDC__ 401444af7230Smrg# include <limits.h> 401544af7230Smrg#else 401644af7230Smrg# include <assert.h> 401744af7230Smrg#endif 401844af7230Smrg Syntax error 401944af7230Smrg_ACEOF 40202d1d20fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 40218ae04fa6Smrg 40222d1d20fcSmrgelse 402344af7230Smrg # Broken: fails on valid input. 402444af7230Smrgcontinue 402544af7230Smrgfi 40262d1d20fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40278ae04fa6Smrg 402844af7230Smrg # OK, works on sane cases. Now check whether nonexistent headers 402944af7230Smrg # can be detected and how. 40302d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 403144af7230Smrg/* end confdefs.h. */ 403244af7230Smrg#include <ac_nonexistent.h> 403344af7230Smrg_ACEOF 40342d1d20fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 403544af7230Smrg # Broken: success on invalid input. 403644af7230Smrgcontinue 403744af7230Smrgelse 403844af7230Smrg # Passes both tests. 403944af7230Smrgac_preproc_ok=: 404044af7230Smrgbreak 404144af7230Smrgfi 40422d1d20fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40438ae04fa6Smrg 404444af7230Smrgdone 404544af7230Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 40462d1d20fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 40472d1d20fcSmrgif $ac_preproc_ok; then : 40482d1d20fcSmrg 404944af7230Smrgelse 40502d1d20fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 405144af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40522d1d20fcSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 40532d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 40548ae04fa6Smrgfi 40558ae04fa6Smrg 405644af7230Smrgac_ext=c 405744af7230Smrgac_cpp='$CPP $CPPFLAGS' 405844af7230Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 405944af7230Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 406044af7230Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40618ae04fa6Smrg 40628ae04fa6Smrg 40632d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 406444af7230Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 40652d1d20fcSmrgif ${ac_cv_path_GREP+:} false; then : 406644af7230Smrg $as_echo_n "(cached) " >&6 40678ae04fa6Smrgelse 406844af7230Smrg if test -z "$GREP"; then 406944af7230Smrg ac_path_GREP_found=false 407044af7230Smrg # Loop through the user's path and test for each of PROGNAME-LIST 407144af7230Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 407244af7230Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 407344af7230Smrgdo 407444af7230Smrg IFS=$as_save_IFS 407544af7230Smrg test -z "$as_dir" && as_dir=. 40762d1d20fcSmrg for ac_prog in grep ggrep; do 407744af7230Smrg for ac_exec_ext in '' $ac_executable_extensions; do 407844af7230Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 407980f56f3aSmrg as_fn_executable_p "$ac_path_GREP" || continue 408044af7230Smrg# Check for GNU ac_path_GREP and select it if it is found. 408144af7230Smrg # Check for GNU $ac_path_GREP 408244af7230Smrgcase `"$ac_path_GREP" --version 2>&1` in 408344af7230Smrg*GNU*) 408444af7230Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 408544af7230Smrg*) 408644af7230Smrg ac_count=0 408744af7230Smrg $as_echo_n 0123456789 >"conftest.in" 408844af7230Smrg while : 408944af7230Smrg do 409044af7230Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 409144af7230Smrg mv "conftest.tmp" "conftest.in" 409244af7230Smrg cp "conftest.in" "conftest.nl" 409344af7230Smrg $as_echo 'GREP' >> "conftest.nl" 409444af7230Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 409544af7230Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40962d1d20fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 409744af7230Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 409844af7230Smrg # Best one so far, save it but keep looking for a better one 409944af7230Smrg ac_cv_path_GREP="$ac_path_GREP" 410044af7230Smrg ac_path_GREP_max=$ac_count 410144af7230Smrg fi 410244af7230Smrg # 10*(2^10) chars as input seems more than enough 410344af7230Smrg test $ac_count -gt 10 && break 410444af7230Smrg done 410544af7230Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 410644af7230Smrgesac 410744af7230Smrg 410844af7230Smrg $ac_path_GREP_found && break 3 410944af7230Smrg done 411044af7230Smrg done 41112d1d20fcSmrg done 411244af7230SmrgIFS=$as_save_IFS 411344af7230Smrg if test -z "$ac_cv_path_GREP"; then 41142d1d20fcSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 411544af7230Smrg fi 411644af7230Smrgelse 411744af7230Smrg ac_cv_path_GREP=$GREP 411844af7230Smrgfi 41198ae04fa6Smrg 41208ae04fa6Smrgfi 41212d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 412244af7230Smrg$as_echo "$ac_cv_path_GREP" >&6; } 412344af7230Smrg GREP="$ac_cv_path_GREP" 41248ae04fa6Smrg 41258ae04fa6Smrg 41262d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 412744af7230Smrg$as_echo_n "checking for egrep... " >&6; } 41282d1d20fcSmrgif ${ac_cv_path_EGREP+:} false; then : 412944af7230Smrg $as_echo_n "(cached) " >&6 41308ae04fa6Smrgelse 413144af7230Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 413244af7230Smrg then ac_cv_path_EGREP="$GREP -E" 413344af7230Smrg else 413444af7230Smrg if test -z "$EGREP"; then 413544af7230Smrg ac_path_EGREP_found=false 413644af7230Smrg # Loop through the user's path and test for each of PROGNAME-LIST 413744af7230Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 413844af7230Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 413944af7230Smrgdo 414044af7230Smrg IFS=$as_save_IFS 414144af7230Smrg test -z "$as_dir" && as_dir=. 41422d1d20fcSmrg for ac_prog in egrep; do 414344af7230Smrg for ac_exec_ext in '' $ac_executable_extensions; do 414444af7230Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 414580f56f3aSmrg as_fn_executable_p "$ac_path_EGREP" || continue 414644af7230Smrg# Check for GNU ac_path_EGREP and select it if it is found. 414744af7230Smrg # Check for GNU $ac_path_EGREP 414844af7230Smrgcase `"$ac_path_EGREP" --version 2>&1` in 414944af7230Smrg*GNU*) 415044af7230Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 415144af7230Smrg*) 415244af7230Smrg ac_count=0 415344af7230Smrg $as_echo_n 0123456789 >"conftest.in" 415444af7230Smrg while : 415544af7230Smrg do 415644af7230Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 415744af7230Smrg mv "conftest.tmp" "conftest.in" 415844af7230Smrg cp "conftest.in" "conftest.nl" 415944af7230Smrg $as_echo 'EGREP' >> "conftest.nl" 416044af7230Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 416144af7230Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 41622d1d20fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 416344af7230Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 416444af7230Smrg # Best one so far, save it but keep looking for a better one 416544af7230Smrg ac_cv_path_EGREP="$ac_path_EGREP" 416644af7230Smrg ac_path_EGREP_max=$ac_count 416744af7230Smrg fi 416844af7230Smrg # 10*(2^10) chars as input seems more than enough 416944af7230Smrg test $ac_count -gt 10 && break 417044af7230Smrg done 417144af7230Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 417244af7230Smrgesac 417344af7230Smrg 417444af7230Smrg $ac_path_EGREP_found && break 3 417544af7230Smrg done 417644af7230Smrg done 41772d1d20fcSmrg done 417844af7230SmrgIFS=$as_save_IFS 417944af7230Smrg if test -z "$ac_cv_path_EGREP"; then 41802d1d20fcSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 418144af7230Smrg fi 418244af7230Smrgelse 418344af7230Smrg ac_cv_path_EGREP=$EGREP 41848ae04fa6Smrgfi 41858ae04fa6Smrg 418644af7230Smrg fi 41878ae04fa6Smrgfi 41882d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 418944af7230Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 419044af7230Smrg EGREP="$ac_cv_path_EGREP" 41918ae04fa6Smrg 41928ae04fa6Smrg 41932d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 419444af7230Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 41952d1d20fcSmrgif ${ac_cv_header_stdc+:} false; then : 419644af7230Smrg $as_echo_n "(cached) " >&6 419744af7230Smrgelse 41982d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 419944af7230Smrg/* end confdefs.h. */ 420044af7230Smrg#include <stdlib.h> 420144af7230Smrg#include <stdarg.h> 420244af7230Smrg#include <string.h> 420344af7230Smrg#include <float.h> 42048ae04fa6Smrg 420544af7230Smrgint 420644af7230Smrgmain () 420744af7230Smrg{ 42088ae04fa6Smrg 420944af7230Smrg ; 421044af7230Smrg return 0; 421144af7230Smrg} 421244af7230Smrg_ACEOF 42132d1d20fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 421444af7230Smrg ac_cv_header_stdc=yes 421544af7230Smrgelse 42162d1d20fcSmrg ac_cv_header_stdc=no 421744af7230Smrgfi 421844af7230Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 421944af7230Smrg 422044af7230Smrgif test $ac_cv_header_stdc = yes; then 422144af7230Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 42222d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 422344af7230Smrg/* end confdefs.h. */ 422444af7230Smrg#include <string.h> 422544af7230Smrg 422644af7230Smrg_ACEOF 422744af7230Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42282d1d20fcSmrg $EGREP "memchr" >/dev/null 2>&1; then : 42292d1d20fcSmrg 423044af7230Smrgelse 423144af7230Smrg ac_cv_header_stdc=no 423244af7230Smrgfi 423344af7230Smrgrm -f conftest* 423444af7230Smrg 423544af7230Smrgfi 423644af7230Smrg 423744af7230Smrgif test $ac_cv_header_stdc = yes; then 423844af7230Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 42392d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 424044af7230Smrg/* end confdefs.h. */ 424144af7230Smrg#include <stdlib.h> 424244af7230Smrg 424344af7230Smrg_ACEOF 424444af7230Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42452d1d20fcSmrg $EGREP "free" >/dev/null 2>&1; then : 42462d1d20fcSmrg 424744af7230Smrgelse 424844af7230Smrg ac_cv_header_stdc=no 424944af7230Smrgfi 425044af7230Smrgrm -f conftest* 425144af7230Smrg 425244af7230Smrgfi 425344af7230Smrg 425444af7230Smrgif test $ac_cv_header_stdc = yes; then 425544af7230Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 42562d1d20fcSmrg if test "$cross_compiling" = yes; then : 425744af7230Smrg : 425844af7230Smrgelse 42592d1d20fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 426044af7230Smrg/* end confdefs.h. */ 426144af7230Smrg#include <ctype.h> 426244af7230Smrg#include <stdlib.h> 426344af7230Smrg#if ((' ' & 0x0FF) == 0x020) 426444af7230Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 426544af7230Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 426644af7230Smrg#else 426744af7230Smrg# define ISLOWER(c) \ 426844af7230Smrg (('a' <= (c) && (c) <= 'i') \ 426944af7230Smrg || ('j' <= (c) && (c) <= 'r') \ 427044af7230Smrg || ('s' <= (c) && (c) <= 'z')) 427144af7230Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 427244af7230Smrg#endif 427344af7230Smrg 427444af7230Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 427544af7230Smrgint 427644af7230Smrgmain () 427744af7230Smrg{ 427844af7230Smrg int i; 427944af7230Smrg for (i = 0; i < 256; i++) 428044af7230Smrg if (XOR (islower (i), ISLOWER (i)) 428144af7230Smrg || toupper (i) != TOUPPER (i)) 428244af7230Smrg return 2; 428344af7230Smrg return 0; 428444af7230Smrg} 428544af7230Smrg_ACEOF 42862d1d20fcSmrgif ac_fn_c_try_run "$LINENO"; then : 428744af7230Smrg 42882d1d20fcSmrgelse 42892d1d20fcSmrg ac_cv_header_stdc=no 429044af7230Smrgfi 42912d1d20fcSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42922d1d20fcSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 429344af7230Smrgfi 429444af7230Smrg 429544af7230Smrgfi 429644af7230Smrgfi 42972d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 429844af7230Smrg$as_echo "$ac_cv_header_stdc" >&6; } 429944af7230Smrgif test $ac_cv_header_stdc = yes; then 430044af7230Smrg 43012d1d20fcSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 430244af7230Smrg 430344af7230Smrgfi 430444af7230Smrg 430544af7230Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 430644af7230Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 430744af7230Smrg inttypes.h stdint.h unistd.h 43082d1d20fcSmrgdo : 43092d1d20fcSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43102d1d20fcSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 43112d1d20fcSmrg" 43122d1d20fcSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 431344af7230Smrg cat >>confdefs.h <<_ACEOF 431444af7230Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 431544af7230Smrg_ACEOF 431644af7230Smrg 431744af7230Smrgfi 431844af7230Smrg 431944af7230Smrgdone 432044af7230Smrg 432144af7230Smrg 432244af7230Smrg 432344af7230Smrg 4324405c8079Smrg 4325405c8079Smrg 4326405c8079Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4327405c8079Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4328405c8079Smrg CLANGCC="yes" 4329405c8079Smrgelse 4330405c8079Smrg CLANGCC="no" 4331405c8079Smrgfi 4332405c8079Smrg 4333405c8079Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4334405c8079Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4335405c8079Smrg INTELCC="yes" 4336405c8079Smrgelse 4337405c8079Smrg INTELCC="no" 4338405c8079Smrgfi 4339405c8079Smrg 4340405c8079Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4341405c8079Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4342405c8079Smrg SUNCC="yes" 4343405c8079Smrgelse 4344405c8079Smrg SUNCC="no" 4345405c8079Smrgfi 4346405c8079Smrg 4347405c8079Smrg 4348405c8079Smrg 4349405c8079Smrg 43502d1d20fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 43512d1d20fcSmrg if test -n "$ac_tool_prefix"; then 43522d1d20fcSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43532d1d20fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 43542d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43552d1d20fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 43562d1d20fcSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 43572d1d20fcSmrg $as_echo_n "(cached) " >&6 43582d1d20fcSmrgelse 43592d1d20fcSmrg case $PKG_CONFIG in 43602d1d20fcSmrg [\\/]* | ?:[\\/]*) 43612d1d20fcSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 43622d1d20fcSmrg ;; 43632d1d20fcSmrg *) 43642d1d20fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43652d1d20fcSmrgfor as_dir in $PATH 436644af7230Smrgdo 43672d1d20fcSmrg IFS=$as_save_IFS 43682d1d20fcSmrg test -z "$as_dir" && as_dir=. 43692d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 437080f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43712d1d20fcSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 43722d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43732d1d20fcSmrg break 2 43742d1d20fcSmrg fi 43752d1d20fcSmrgdone 43762d1d20fcSmrg done 43772d1d20fcSmrgIFS=$as_save_IFS 43782d1d20fcSmrg 43792d1d20fcSmrg ;; 438044af7230Smrgesac 43812d1d20fcSmrgfi 43822d1d20fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 43832d1d20fcSmrgif test -n "$PKG_CONFIG"; then 43842d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 43852d1d20fcSmrg$as_echo "$PKG_CONFIG" >&6; } 438644af7230Smrgelse 43872d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43882d1d20fcSmrg$as_echo "no" >&6; } 438944af7230Smrgfi 439044af7230Smrg 439144af7230Smrg 439244af7230Smrgfi 43932d1d20fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 43942d1d20fcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 43952d1d20fcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 43962d1d20fcSmrgset dummy pkg-config; ac_word=$2 43972d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43982d1d20fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 43992d1d20fcSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 44002d1d20fcSmrg $as_echo_n "(cached) " >&6 44012d1d20fcSmrgelse 44022d1d20fcSmrg case $ac_pt_PKG_CONFIG in 44032d1d20fcSmrg [\\/]* | ?:[\\/]*) 44042d1d20fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 44052d1d20fcSmrg ;; 440644af7230Smrg *) 44072d1d20fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44082d1d20fcSmrgfor as_dir in $PATH 44092d1d20fcSmrgdo 44102d1d20fcSmrg IFS=$as_save_IFS 44112d1d20fcSmrg test -z "$as_dir" && as_dir=. 44122d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 441380f56f3aSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44142d1d20fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 44152d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44162d1d20fcSmrg break 2 44172d1d20fcSmrg fi 44182d1d20fcSmrgdone 44192d1d20fcSmrg done 44202d1d20fcSmrgIFS=$as_save_IFS 44212d1d20fcSmrg 44222d1d20fcSmrg ;; 442344af7230Smrgesac 44242d1d20fcSmrgfi 44252d1d20fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 44262d1d20fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then 44272d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 44282d1d20fcSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 44292d1d20fcSmrgelse 44302d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44312d1d20fcSmrg$as_echo "no" >&6; } 44322d1d20fcSmrgfi 443344af7230Smrg 44342d1d20fcSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 44352d1d20fcSmrg PKG_CONFIG="" 44362d1d20fcSmrg else 44372d1d20fcSmrg case $cross_compiling:$ac_tool_warned in 44382d1d20fcSmrgyes:) 44392d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44402d1d20fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44412d1d20fcSmrgac_tool_warned=yes ;; 44422d1d20fcSmrgesac 44432d1d20fcSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 44442d1d20fcSmrg fi 44452d1d20fcSmrgelse 44462d1d20fcSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 44472d1d20fcSmrgfi 444844af7230Smrg 44492d1d20fcSmrgfi 44502d1d20fcSmrgif test -n "$PKG_CONFIG"; then 44512d1d20fcSmrg _pkg_min_version=0.9.0 44522d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 44532d1d20fcSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 44542d1d20fcSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 44552d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44562d1d20fcSmrg$as_echo "yes" >&6; } 44572d1d20fcSmrg else 44582d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44592d1d20fcSmrg$as_echo "no" >&6; } 44602d1d20fcSmrg PKG_CONFIG="" 44612d1d20fcSmrg fi 446244af7230Smrg 44632d1d20fcSmrgfi 446444af7230Smrg# Make sure we can run config.sub. 446544af7230Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 44662d1d20fcSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 446744af7230Smrg 44682d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 446944af7230Smrg$as_echo_n "checking build system type... " >&6; } 44702d1d20fcSmrgif ${ac_cv_build+:} false; then : 447144af7230Smrg $as_echo_n "(cached) " >&6 447244af7230Smrgelse 447344af7230Smrg ac_build_alias=$build_alias 447444af7230Smrgtest "x$ac_build_alias" = x && 447544af7230Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 447644af7230Smrgtest "x$ac_build_alias" = x && 44772d1d20fcSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 447844af7230Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 44792d1d20fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 448044af7230Smrg 448144af7230Smrgfi 44822d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 448344af7230Smrg$as_echo "$ac_cv_build" >&6; } 448444af7230Smrgcase $ac_cv_build in 448544af7230Smrg*-*-*) ;; 44862d1d20fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 448744af7230Smrgesac 448844af7230Smrgbuild=$ac_cv_build 448944af7230Smrgac_save_IFS=$IFS; IFS='-' 449044af7230Smrgset x $ac_cv_build 449144af7230Smrgshift 449244af7230Smrgbuild_cpu=$1 449344af7230Smrgbuild_vendor=$2 449444af7230Smrgshift; shift 449544af7230Smrg# Remember, the first character of IFS is used to create $*, 449644af7230Smrg# except with old shells: 449744af7230Smrgbuild_os=$* 449844af7230SmrgIFS=$ac_save_IFS 449944af7230Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 450044af7230Smrg 450144af7230Smrg 45022d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 450344af7230Smrg$as_echo_n "checking host system type... " >&6; } 45042d1d20fcSmrgif ${ac_cv_host+:} false; then : 450544af7230Smrg $as_echo_n "(cached) " >&6 450644af7230Smrgelse 450744af7230Smrg if test "x$host_alias" = x; then 450844af7230Smrg ac_cv_host=$ac_cv_build 450944af7230Smrgelse 451044af7230Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 45112d1d20fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 451244af7230Smrgfi 451344af7230Smrg 451444af7230Smrgfi 45152d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 451644af7230Smrg$as_echo "$ac_cv_host" >&6; } 451744af7230Smrgcase $ac_cv_host in 451844af7230Smrg*-*-*) ;; 45192d1d20fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 452044af7230Smrgesac 452144af7230Smrghost=$ac_cv_host 452244af7230Smrgac_save_IFS=$IFS; IFS='-' 452344af7230Smrgset x $ac_cv_host 452444af7230Smrgshift 452544af7230Smrghost_cpu=$1 452644af7230Smrghost_vendor=$2 452744af7230Smrgshift; shift 452844af7230Smrg# Remember, the first character of IFS is used to create $*, 452944af7230Smrg# except with old shells: 453044af7230Smrghost_os=$* 453144af7230SmrgIFS=$ac_save_IFS 453244af7230Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 453344af7230Smrg 453444af7230Smrg 45352d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 45362d1d20fcSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 45372d1d20fcSmrgif ${ac_cv_path_SED+:} false; then : 45382d1d20fcSmrg $as_echo_n "(cached) " >&6 45392d1d20fcSmrgelse 45402d1d20fcSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 45412d1d20fcSmrg for ac_i in 1 2 3 4 5 6 7; do 45422d1d20fcSmrg ac_script="$ac_script$as_nl$ac_script" 45432d1d20fcSmrg done 45442d1d20fcSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 45452d1d20fcSmrg { ac_script=; unset ac_script;} 45462d1d20fcSmrg if test -z "$SED"; then 45472d1d20fcSmrg ac_path_SED_found=false 45482d1d20fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 45492d1d20fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45502d1d20fcSmrgfor as_dir in $PATH 45512d1d20fcSmrgdo 45522d1d20fcSmrg IFS=$as_save_IFS 45532d1d20fcSmrg test -z "$as_dir" && as_dir=. 45542d1d20fcSmrg for ac_prog in sed gsed; do 45552d1d20fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 45562d1d20fcSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 455780f56f3aSmrg as_fn_executable_p "$ac_path_SED" || continue 45582d1d20fcSmrg# Check for GNU ac_path_SED and select it if it is found. 45592d1d20fcSmrg # Check for GNU $ac_path_SED 45602d1d20fcSmrgcase `"$ac_path_SED" --version 2>&1` in 45612d1d20fcSmrg*GNU*) 45622d1d20fcSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 45632d1d20fcSmrg*) 45642d1d20fcSmrg ac_count=0 45652d1d20fcSmrg $as_echo_n 0123456789 >"conftest.in" 45662d1d20fcSmrg while : 45672d1d20fcSmrg do 45682d1d20fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 45692d1d20fcSmrg mv "conftest.tmp" "conftest.in" 45702d1d20fcSmrg cp "conftest.in" "conftest.nl" 45712d1d20fcSmrg $as_echo '' >> "conftest.nl" 45722d1d20fcSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 45732d1d20fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 45742d1d20fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 45752d1d20fcSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 45762d1d20fcSmrg # Best one so far, save it but keep looking for a better one 45772d1d20fcSmrg ac_cv_path_SED="$ac_path_SED" 45782d1d20fcSmrg ac_path_SED_max=$ac_count 45792d1d20fcSmrg fi 45802d1d20fcSmrg # 10*(2^10) chars as input seems more than enough 45812d1d20fcSmrg test $ac_count -gt 10 && break 45822d1d20fcSmrg done 45832d1d20fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 45842d1d20fcSmrgesac 45852d1d20fcSmrg 45862d1d20fcSmrg $ac_path_SED_found && break 3 45872d1d20fcSmrg done 45882d1d20fcSmrg done 45892d1d20fcSmrg done 45902d1d20fcSmrgIFS=$as_save_IFS 45912d1d20fcSmrg if test -z "$ac_cv_path_SED"; then 45922d1d20fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 45932d1d20fcSmrg fi 45942d1d20fcSmrgelse 45952d1d20fcSmrg ac_cv_path_SED=$SED 45962d1d20fcSmrgfi 45972d1d20fcSmrg 45982d1d20fcSmrgfi 45992d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 46002d1d20fcSmrg$as_echo "$ac_cv_path_SED" >&6; } 46012d1d20fcSmrg SED="$ac_cv_path_SED" 46022d1d20fcSmrg rm -f conftest.sed 46032d1d20fcSmrg 46042d1d20fcSmrg 460544af7230Smrg 460644af7230Smrg 460744af7230Smrg 4608405c8079Smrg 4609405c8079Smrg# Check whether --enable-selective-werror was given. 4610405c8079Smrgif test "${enable_selective_werror+set}" = set; then : 4611405c8079Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 461244af7230Smrgelse 4613405c8079Smrg SELECTIVE_WERROR=yes 4614405c8079Smrgfi 4615405c8079Smrg 4616405c8079Smrg 4617405c8079Smrg 4618405c8079Smrg 4619405c8079Smrg 4620405c8079Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4621405c8079Smrgif test "x$SUNCC" = "xyes"; then 4622405c8079Smrg BASE_CFLAGS="-v" 462344af7230Smrgelse 4624405c8079Smrg BASE_CFLAGS="" 462544af7230Smrgfi 462644af7230Smrg 4627405c8079Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4628405c8079Smrg 4629405c8079Smrg 4630405c8079Smrg 4631405c8079Smrg 4632405c8079Smrg 4633405c8079Smrg 4634405c8079Smrg 4635405c8079Smrg 4636405c8079Smrg 4637405c8079Smrg 4638405c8079Smrg 4639405c8079Smrg 4640405c8079Smrg 4641405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4642405c8079Smrg 4643405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4644405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4645405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4646405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4647405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4648405c8079Smrg $as_echo_n "(cached) " >&6 4649405c8079Smrgelse 4650405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4651405c8079Smrg/* end confdefs.h. */ 4652405c8079Smrgint i; 4653405c8079Smrg_ACEOF 4654405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4655405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4656405c8079Smrgelse 4657405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 4658405c8079Smrgfi 4659405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4660405c8079Smrgfi 4661405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4662405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4663405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4664405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 466544af7230Smrgfi 466644af7230Smrg 4667405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4668405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4669405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4670405c8079Smrg fi 4671405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4672405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4673405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4674405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4675405c8079Smrg $as_echo_n "(cached) " >&6 4676405c8079Smrgelse 4677405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4678405c8079Smrg/* end confdefs.h. */ 4679405c8079Smrgint i; 4680405c8079Smrg_ACEOF 4681405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4682405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4683405c8079Smrgelse 4684405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4685405c8079Smrgfi 4686405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4687405c8079Smrgfi 4688405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4689405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4690405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4691405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4692405c8079Smrgfi 469344af7230Smrg 4694405c8079Smrgfound="no" 469544af7230Smrg 4696405c8079Smrg if test $found = "no" ; then 469780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4698405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4699405c8079Smrg fi 470044af7230Smrg 470180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4702405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4703405c8079Smrg fi 470444af7230Smrg 4705405c8079Smrg CFLAGS="$CFLAGS -Wall" 470644af7230Smrg 4707405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4708405c8079Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 4709405c8079Smrg cacheid=xorg_cv_cc_flag__Wall 4710405c8079Smrg if eval \${$cacheid+:} false; then : 4711405c8079Smrg $as_echo_n "(cached) " >&6 471244af7230Smrgelse 4713405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714405c8079Smrg/* end confdefs.h. */ 4715405c8079Smrgint i; 4716405c8079Smrgint 4717405c8079Smrgmain () 4718405c8079Smrg{ 4719405c8079Smrg 4720405c8079Smrg ; 4721405c8079Smrg return 0; 4722405c8079Smrg} 4723405c8079Smrg_ACEOF 4724405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 4725405c8079Smrg eval $cacheid=yes 4726405c8079Smrgelse 4727405c8079Smrg eval $cacheid=no 4728405c8079Smrgfi 4729405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 4730405c8079Smrg conftest$ac_exeext conftest.$ac_ext 473144af7230Smrgfi 473244af7230Smrg 4733405c8079Smrg 4734405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4735405c8079Smrg 4736405c8079Smrg eval supported=\$$cacheid 4737405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4738405c8079Smrg$as_echo "$supported" >&6; } 4739405c8079Smrg if test "$supported" = "yes" ; then 4740405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 4741405c8079Smrg found="yes" 4742405c8079Smrg fi 4743405c8079Smrg fi 4744405c8079Smrg 4745405c8079Smrg 4746405c8079Smrg 4747405c8079Smrg 4748405c8079Smrg 4749405c8079Smrg 4750405c8079Smrg 4751405c8079Smrg 4752405c8079Smrg 4753405c8079Smrg 4754405c8079Smrg 4755405c8079Smrg 4756405c8079Smrg 4757405c8079Smrg 4758405c8079Smrg 4759405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4760405c8079Smrg 4761405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4762405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4763405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4764405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4765405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4766405c8079Smrg $as_echo_n "(cached) " >&6 476744af7230Smrgelse 4768405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769405c8079Smrg/* end confdefs.h. */ 4770405c8079Smrgint i; 4771405c8079Smrg_ACEOF 4772405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4773405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4774405c8079Smrgelse 4775405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 4776405c8079Smrgfi 4777405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4778405c8079Smrgfi 4779405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4780405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4781405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4782405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 478344af7230Smrgfi 478444af7230Smrg 4785405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4786405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4787405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4788405c8079Smrg fi 4789405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4790405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4791405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4792405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4793405c8079Smrg $as_echo_n "(cached) " >&6 479444af7230Smrgelse 4795405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4796405c8079Smrg/* end confdefs.h. */ 4797405c8079Smrgint i; 4798405c8079Smrg_ACEOF 4799405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4800405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4801405c8079Smrgelse 4802405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4803405c8079Smrgfi 4804405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805405c8079Smrgfi 4806405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4807405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4808405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4809405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4810405c8079Smrgfi 4811405c8079Smrg 4812405c8079Smrgfound="no" 4813405c8079Smrg 4814405c8079Smrg if test $found = "no" ; then 481580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4816405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4817405c8079Smrg fi 4818405c8079Smrg 481980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4820405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4821405c8079Smrg fi 4822405c8079Smrg 4823405c8079Smrg CFLAGS="$CFLAGS -Wpointer-arith" 4824405c8079Smrg 4825405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4826405c8079Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4827405c8079Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 4828405c8079Smrg if eval \${$cacheid+:} false; then : 4829405c8079Smrg $as_echo_n "(cached) " >&6 4830405c8079Smrgelse 4831405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4832405c8079Smrg/* end confdefs.h. */ 4833405c8079Smrgint i; 4834405c8079Smrgint 4835405c8079Smrgmain () 4836405c8079Smrg{ 4837405c8079Smrg 4838405c8079Smrg ; 4839405c8079Smrg return 0; 4840405c8079Smrg} 4841405c8079Smrg_ACEOF 4842405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 4843405c8079Smrg eval $cacheid=yes 4844405c8079Smrgelse 4845405c8079Smrg eval $cacheid=no 4846405c8079Smrgfi 4847405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 4848405c8079Smrg conftest$ac_exeext conftest.$ac_ext 4849405c8079Smrgfi 4850405c8079Smrg 4851405c8079Smrg 4852405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4853405c8079Smrg 4854405c8079Smrg eval supported=\$$cacheid 4855405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4856405c8079Smrg$as_echo "$supported" >&6; } 4857405c8079Smrg if test "$supported" = "yes" ; then 4858405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4859405c8079Smrg found="yes" 4860405c8079Smrg fi 4861405c8079Smrg fi 4862405c8079Smrg 4863405c8079Smrg 4864405c8079Smrg 4865405c8079Smrg 4866405c8079Smrg 4867405c8079Smrg 4868405c8079Smrg 4869405c8079Smrg 4870405c8079Smrg 4871405c8079Smrg 4872405c8079Smrg 4873405c8079Smrg 4874405c8079Smrg 4875405c8079Smrg 4876405c8079Smrg 4877405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4878405c8079Smrg 4879405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4880405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4881405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4882405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4883405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4884405c8079Smrg $as_echo_n "(cached) " >&6 4885405c8079Smrgelse 4886405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887405c8079Smrg/* end confdefs.h. */ 4888405c8079Smrgint i; 4889405c8079Smrg_ACEOF 4890405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4891405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4892405c8079Smrgelse 4893405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 4894405c8079Smrgfi 4895405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896405c8079Smrgfi 4897405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4898405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4899405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4900405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 490144af7230Smrgfi 490244af7230Smrg 4903405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4904405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4905405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 490644af7230Smrg fi 4907405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4908405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4909405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4910405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4911405c8079Smrg $as_echo_n "(cached) " >&6 4912405c8079Smrgelse 4913405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914405c8079Smrg/* end confdefs.h. */ 4915405c8079Smrgint i; 4916405c8079Smrg_ACEOF 4917405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 4918405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4919405c8079Smrgelse 4920405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4921405c8079Smrgfi 4922405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4923405c8079Smrgfi 4924405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4925405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4926405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4927405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4928405c8079Smrgfi 4929405c8079Smrg 4930405c8079Smrgfound="no" 4931405c8079Smrg 4932405c8079Smrg if test $found = "no" ; then 493380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4934405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4935405c8079Smrg fi 4936405c8079Smrg 493780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4938405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4939405c8079Smrg fi 4940405c8079Smrg 4941405c8079Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 4942405c8079Smrg 4943405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4944405c8079Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4945405c8079Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 4946405c8079Smrg if eval \${$cacheid+:} false; then : 4947405c8079Smrg $as_echo_n "(cached) " >&6 4948405c8079Smrgelse 4949405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950405c8079Smrg/* end confdefs.h. */ 4951405c8079Smrgint i; 4952405c8079Smrgint 4953405c8079Smrgmain () 4954405c8079Smrg{ 4955405c8079Smrg 4956405c8079Smrg ; 4957405c8079Smrg return 0; 4958405c8079Smrg} 4959405c8079Smrg_ACEOF 4960405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 4961405c8079Smrg eval $cacheid=yes 4962405c8079Smrgelse 4963405c8079Smrg eval $cacheid=no 4964405c8079Smrgfi 4965405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 4966405c8079Smrg conftest$ac_exeext conftest.$ac_ext 496744af7230Smrgfi 4968405c8079Smrg 4969405c8079Smrg 4970405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4971405c8079Smrg 4972405c8079Smrg eval supported=\$$cacheid 4973405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4974405c8079Smrg$as_echo "$supported" >&6; } 4975405c8079Smrg if test "$supported" = "yes" ; then 4976405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4977405c8079Smrg found="yes" 4978405c8079Smrg fi 4979405c8079Smrg fi 4980405c8079Smrg 4981405c8079Smrg 4982405c8079Smrg 4983405c8079Smrg 4984405c8079Smrg 4985405c8079Smrg 4986405c8079Smrg 4987405c8079Smrg 4988405c8079Smrg 4989405c8079Smrg 4990405c8079Smrg 4991405c8079Smrg 4992405c8079Smrg 4993405c8079Smrg 4994405c8079Smrg 4995405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4996405c8079Smrg 4997405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4998405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5000405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5001405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5002405c8079Smrg $as_echo_n "(cached) " >&6 5003405c8079Smrgelse 5004405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005405c8079Smrg/* end confdefs.h. */ 5006405c8079Smrgint i; 5007405c8079Smrg_ACEOF 5008405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5009405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5010405c8079Smrgelse 5011405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5012405c8079Smrgfi 5013405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014405c8079Smrgfi 5015405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5016405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5017405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5018405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5019405c8079Smrgfi 5020405c8079Smrg 5021405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5022405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5023405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5024405c8079Smrg fi 5025405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5026405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5027405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5028405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5029405c8079Smrg $as_echo_n "(cached) " >&6 5030405c8079Smrgelse 5031405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032405c8079Smrg/* end confdefs.h. */ 5033405c8079Smrgint i; 5034405c8079Smrg_ACEOF 5035405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5036405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5037405c8079Smrgelse 5038405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5039405c8079Smrgfi 5040405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5041405c8079Smrgfi 5042405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5043405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5044405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5045405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5046405c8079Smrgfi 5047405c8079Smrg 5048405c8079Smrgfound="no" 5049405c8079Smrg 5050405c8079Smrg if test $found = "no" ; then 505180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5052405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053405c8079Smrg fi 5054405c8079Smrg 505580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5056405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5057405c8079Smrg fi 5058405c8079Smrg 5059405c8079Smrg CFLAGS="$CFLAGS -Wformat=2" 5060405c8079Smrg 5061405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5062405c8079Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 506380f56f3aSmrg cacheid=xorg_cv_cc_flag__Wformat_2 5064405c8079Smrg if eval \${$cacheid+:} false; then : 5065405c8079Smrg $as_echo_n "(cached) " >&6 5066405c8079Smrgelse 5067405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068405c8079Smrg/* end confdefs.h. */ 5069405c8079Smrgint i; 5070405c8079Smrgint 5071405c8079Smrgmain () 5072405c8079Smrg{ 5073405c8079Smrg 5074405c8079Smrg ; 5075405c8079Smrg return 0; 5076405c8079Smrg} 5077405c8079Smrg_ACEOF 5078405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5079405c8079Smrg eval $cacheid=yes 5080405c8079Smrgelse 5081405c8079Smrg eval $cacheid=no 5082405c8079Smrgfi 5083405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5084405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5085405c8079Smrgfi 5086405c8079Smrg 5087405c8079Smrg 5088405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5089405c8079Smrg 5090405c8079Smrg eval supported=\$$cacheid 5091405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5092405c8079Smrg$as_echo "$supported" >&6; } 5093405c8079Smrg if test "$supported" = "yes" ; then 5094405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5095405c8079Smrg found="yes" 5096405c8079Smrg fi 5097405c8079Smrg fi 5098405c8079Smrg 5099405c8079Smrg if test $found = "no" ; then 510080f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5101405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5102405c8079Smrg fi 5103405c8079Smrg 510480f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5105405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5106405c8079Smrg fi 5107405c8079Smrg 5108405c8079Smrg CFLAGS="$CFLAGS -Wformat" 5109405c8079Smrg 5110405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5111405c8079Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5112405c8079Smrg cacheid=xorg_cv_cc_flag__Wformat 5113405c8079Smrg if eval \${$cacheid+:} false; then : 5114405c8079Smrg $as_echo_n "(cached) " >&6 5115405c8079Smrgelse 5116405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117405c8079Smrg/* end confdefs.h. */ 5118405c8079Smrgint i; 5119405c8079Smrgint 5120405c8079Smrgmain () 5121405c8079Smrg{ 5122405c8079Smrg 5123405c8079Smrg ; 5124405c8079Smrg return 0; 5125405c8079Smrg} 5126405c8079Smrg_ACEOF 5127405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5128405c8079Smrg eval $cacheid=yes 5129405c8079Smrgelse 5130405c8079Smrg eval $cacheid=no 5131405c8079Smrgfi 5132405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5133405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5134405c8079Smrgfi 5135405c8079Smrg 5136405c8079Smrg 5137405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5138405c8079Smrg 5139405c8079Smrg eval supported=\$$cacheid 5140405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5141405c8079Smrg$as_echo "$supported" >&6; } 5142405c8079Smrg if test "$supported" = "yes" ; then 5143405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5144405c8079Smrg found="yes" 5145405c8079Smrg fi 5146405c8079Smrg fi 5147405c8079Smrg 5148405c8079Smrg 5149405c8079Smrg 5150405c8079Smrg 5151405c8079Smrg 5152405c8079Smrg 5153405c8079Smrg 5154405c8079Smrg 5155405c8079Smrg 5156405c8079Smrg 5157405c8079Smrg 5158405c8079Smrg 5159405c8079Smrg 5160405c8079Smrg 5161405c8079Smrg 5162405c8079Smrg 5163405c8079Smrg 5164405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5165405c8079Smrg 5166405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5167405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5168405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5169405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5170405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5171405c8079Smrg $as_echo_n "(cached) " >&6 5172405c8079Smrgelse 5173405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174405c8079Smrg/* end confdefs.h. */ 5175405c8079Smrgint i; 5176405c8079Smrg_ACEOF 5177405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5178405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5179405c8079Smrgelse 5180405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5181405c8079Smrgfi 5182405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5183405c8079Smrgfi 5184405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5185405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5186405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5187405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5188405c8079Smrgfi 5189405c8079Smrg 5190405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5191405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5192405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193405c8079Smrg fi 5194405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5196405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5197405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5198405c8079Smrg $as_echo_n "(cached) " >&6 5199405c8079Smrgelse 5200405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201405c8079Smrg/* end confdefs.h. */ 5202405c8079Smrgint i; 5203405c8079Smrg_ACEOF 5204405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5205405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5206405c8079Smrgelse 5207405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5208405c8079Smrgfi 5209405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5210405c8079Smrgfi 5211405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5212405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5213405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5214405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5215405c8079Smrgfi 5216405c8079Smrg 5217405c8079Smrgfound="no" 5218405c8079Smrg 5219405c8079Smrg if test $found = "no" ; then 522080f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5221405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222405c8079Smrg fi 5223405c8079Smrg 522480f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5225405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5226405c8079Smrg fi 5227405c8079Smrg 5228405c8079Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5229405c8079Smrg 5230405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5231405c8079Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5232405c8079Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5233405c8079Smrg if eval \${$cacheid+:} false; then : 5234405c8079Smrg $as_echo_n "(cached) " >&6 5235405c8079Smrgelse 5236405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5237405c8079Smrg/* end confdefs.h. */ 5238405c8079Smrgint i; 5239405c8079Smrgint 5240405c8079Smrgmain () 5241405c8079Smrg{ 5242405c8079Smrg 5243405c8079Smrg ; 5244405c8079Smrg return 0; 5245405c8079Smrg} 5246405c8079Smrg_ACEOF 5247405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5248405c8079Smrg eval $cacheid=yes 5249405c8079Smrgelse 5250405c8079Smrg eval $cacheid=no 5251405c8079Smrgfi 5252405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5253405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5254405c8079Smrgfi 5255405c8079Smrg 5256405c8079Smrg 5257405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5258405c8079Smrg 5259405c8079Smrg eval supported=\$$cacheid 5260405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261405c8079Smrg$as_echo "$supported" >&6; } 5262405c8079Smrg if test "$supported" = "yes" ; then 5263405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5264405c8079Smrg found="yes" 5265405c8079Smrg fi 5266405c8079Smrg fi 5267405c8079Smrg 5268405c8079Smrg 5269405c8079Smrg 5270405c8079Smrg 5271405c8079Smrg 5272405c8079Smrg 5273405c8079Smrg 5274405c8079Smrg 5275405c8079Smrg 5276405c8079Smrg 5277405c8079Smrg 5278405c8079Smrg 5279405c8079Smrg 5280405c8079Smrg 5281405c8079Smrg 5282405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5283405c8079Smrg 5284405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5289405c8079Smrg $as_echo_n "(cached) " >&6 5290405c8079Smrgelse 5291405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292405c8079Smrg/* end confdefs.h. */ 5293405c8079Smrgint i; 5294405c8079Smrg_ACEOF 5295405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5296405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5297405c8079Smrgelse 5298405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5299405c8079Smrgfi 5300405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5301405c8079Smrgfi 5302405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5303405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5304405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5305405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5306405c8079Smrgfi 5307405c8079Smrg 5308405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5309405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5310405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311405c8079Smrg fi 5312405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5314405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5315405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5316405c8079Smrg $as_echo_n "(cached) " >&6 5317405c8079Smrgelse 5318405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319405c8079Smrg/* end confdefs.h. */ 5320405c8079Smrgint i; 5321405c8079Smrg_ACEOF 5322405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5323405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5324405c8079Smrgelse 5325405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5326405c8079Smrgfi 5327405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5328405c8079Smrgfi 5329405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5330405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5331405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5332405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5333405c8079Smrgfi 5334405c8079Smrg 5335405c8079Smrgfound="no" 5336405c8079Smrg 5337405c8079Smrg if test $found = "no" ; then 533880f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340405c8079Smrg fi 5341405c8079Smrg 534280f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5343405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344405c8079Smrg fi 5345405c8079Smrg 5346405c8079Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5347405c8079Smrg 5348405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5349405c8079Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5350405c8079Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5351405c8079Smrg if eval \${$cacheid+:} false; then : 5352405c8079Smrg $as_echo_n "(cached) " >&6 5353405c8079Smrgelse 5354405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355405c8079Smrg/* end confdefs.h. */ 5356405c8079Smrgint i; 5357405c8079Smrgint 5358405c8079Smrgmain () 5359405c8079Smrg{ 5360405c8079Smrg 5361405c8079Smrg ; 5362405c8079Smrg return 0; 5363405c8079Smrg} 5364405c8079Smrg_ACEOF 5365405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5366405c8079Smrg eval $cacheid=yes 5367405c8079Smrgelse 5368405c8079Smrg eval $cacheid=no 5369405c8079Smrgfi 5370405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5371405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5372405c8079Smrgfi 5373405c8079Smrg 5374405c8079Smrg 5375405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5376405c8079Smrg 5377405c8079Smrg eval supported=\$$cacheid 5378405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5379405c8079Smrg$as_echo "$supported" >&6; } 5380405c8079Smrg if test "$supported" = "yes" ; then 5381405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5382405c8079Smrg found="yes" 5383405c8079Smrg fi 5384405c8079Smrg fi 5385405c8079Smrg 5386405c8079Smrg 5387405c8079Smrg 5388405c8079Smrg 5389405c8079Smrg 5390405c8079Smrg 5391405c8079Smrg 5392405c8079Smrg 5393405c8079Smrg 5394405c8079Smrg 5395405c8079Smrg 5396405c8079Smrg 5397405c8079Smrg 5398405c8079Smrg 5399405c8079Smrg 5400405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5401405c8079Smrg 5402405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5403405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5404405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5405405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5406405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5407405c8079Smrg $as_echo_n "(cached) " >&6 5408405c8079Smrgelse 5409405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410405c8079Smrg/* end confdefs.h. */ 5411405c8079Smrgint i; 5412405c8079Smrg_ACEOF 5413405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5414405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5415405c8079Smrgelse 5416405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5417405c8079Smrgfi 5418405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419405c8079Smrgfi 5420405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5421405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5422405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5423405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5424405c8079Smrgfi 5425405c8079Smrg 5426405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5427405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5428405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429405c8079Smrg fi 5430405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5432405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5433405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5434405c8079Smrg $as_echo_n "(cached) " >&6 5435405c8079Smrgelse 5436405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437405c8079Smrg/* end confdefs.h. */ 5438405c8079Smrgint i; 5439405c8079Smrg_ACEOF 5440405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5441405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5442405c8079Smrgelse 5443405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5444405c8079Smrgfi 5445405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446405c8079Smrgfi 5447405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5451405c8079Smrgfi 5452405c8079Smrg 5453405c8079Smrgfound="no" 5454405c8079Smrg 5455405c8079Smrg if test $found = "no" ; then 545680f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5457405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458405c8079Smrg fi 5459405c8079Smrg 546080f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5461405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462405c8079Smrg fi 5463405c8079Smrg 5464405c8079Smrg CFLAGS="$CFLAGS -Wnested-externs" 5465405c8079Smrg 5466405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5467405c8079Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5468405c8079Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5469405c8079Smrg if eval \${$cacheid+:} false; then : 5470405c8079Smrg $as_echo_n "(cached) " >&6 5471405c8079Smrgelse 5472405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473405c8079Smrg/* end confdefs.h. */ 5474405c8079Smrgint i; 5475405c8079Smrgint 5476405c8079Smrgmain () 5477405c8079Smrg{ 5478405c8079Smrg 5479405c8079Smrg ; 5480405c8079Smrg return 0; 5481405c8079Smrg} 5482405c8079Smrg_ACEOF 5483405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5484405c8079Smrg eval $cacheid=yes 5485405c8079Smrgelse 5486405c8079Smrg eval $cacheid=no 5487405c8079Smrgfi 5488405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5489405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5490405c8079Smrgfi 5491405c8079Smrg 5492405c8079Smrg 5493405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5494405c8079Smrg 5495405c8079Smrg eval supported=\$$cacheid 5496405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5497405c8079Smrg$as_echo "$supported" >&6; } 5498405c8079Smrg if test "$supported" = "yes" ; then 5499405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5500405c8079Smrg found="yes" 5501405c8079Smrg fi 5502405c8079Smrg fi 5503405c8079Smrg 5504405c8079Smrg 5505405c8079Smrg 5506405c8079Smrg 5507405c8079Smrg 5508405c8079Smrg 5509405c8079Smrg 5510405c8079Smrg 5511405c8079Smrg 5512405c8079Smrg 5513405c8079Smrg 5514405c8079Smrg 5515405c8079Smrg 5516405c8079Smrg 5517405c8079Smrg 5518405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5519405c8079Smrg 5520405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5521405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5522405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5523405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5524405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5525405c8079Smrg $as_echo_n "(cached) " >&6 5526405c8079Smrgelse 5527405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528405c8079Smrg/* end confdefs.h. */ 5529405c8079Smrgint i; 5530405c8079Smrg_ACEOF 5531405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5532405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5533405c8079Smrgelse 5534405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5535405c8079Smrgfi 5536405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5537405c8079Smrgfi 5538405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5539405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5540405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5541405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5542405c8079Smrgfi 5543405c8079Smrg 5544405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5545405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5546405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547405c8079Smrg fi 5548405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5549405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5550405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5551405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5552405c8079Smrg $as_echo_n "(cached) " >&6 5553405c8079Smrgelse 5554405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555405c8079Smrg/* end confdefs.h. */ 5556405c8079Smrgint i; 5557405c8079Smrg_ACEOF 5558405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5559405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5560405c8079Smrgelse 5561405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5562405c8079Smrgfi 5563405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5564405c8079Smrgfi 5565405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5566405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5567405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5568405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5569405c8079Smrgfi 5570405c8079Smrg 5571405c8079Smrgfound="no" 5572405c8079Smrg 5573405c8079Smrg if test $found = "no" ; then 557480f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5575405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576405c8079Smrg fi 5577405c8079Smrg 557880f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5579405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5580405c8079Smrg fi 5581405c8079Smrg 5582405c8079Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 5583405c8079Smrg 5584405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5585405c8079Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5586405c8079Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 5587405c8079Smrg if eval \${$cacheid+:} false; then : 5588405c8079Smrg $as_echo_n "(cached) " >&6 5589405c8079Smrgelse 5590405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591405c8079Smrg/* end confdefs.h. */ 5592405c8079Smrgint i; 5593405c8079Smrgint 5594405c8079Smrgmain () 5595405c8079Smrg{ 5596405c8079Smrg 5597405c8079Smrg ; 5598405c8079Smrg return 0; 5599405c8079Smrg} 5600405c8079Smrg_ACEOF 5601405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5602405c8079Smrg eval $cacheid=yes 5603405c8079Smrgelse 5604405c8079Smrg eval $cacheid=no 5605405c8079Smrgfi 5606405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5607405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5608405c8079Smrgfi 5609405c8079Smrg 5610405c8079Smrg 5611405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5612405c8079Smrg 5613405c8079Smrg eval supported=\$$cacheid 5614405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615405c8079Smrg$as_echo "$supported" >&6; } 5616405c8079Smrg if test "$supported" = "yes" ; then 5617405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5618405c8079Smrg found="yes" 5619405c8079Smrg fi 5620405c8079Smrg fi 5621405c8079Smrg 5622405c8079Smrg 5623405c8079Smrg 5624405c8079Smrg 5625405c8079Smrg 5626405c8079Smrg 5627405c8079Smrg 5628405c8079Smrg 5629405c8079Smrg 5630405c8079Smrg 5631405c8079Smrg 5632405c8079Smrg 5633405c8079Smrg 5634405c8079Smrg 5635405c8079Smrg 5636405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5637405c8079Smrg 5638405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5643405c8079Smrg $as_echo_n "(cached) " >&6 5644405c8079Smrgelse 5645405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646405c8079Smrg/* end confdefs.h. */ 5647405c8079Smrgint i; 5648405c8079Smrg_ACEOF 5649405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5650405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5651405c8079Smrgelse 5652405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5653405c8079Smrgfi 5654405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655405c8079Smrgfi 5656405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5657405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5658405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5659405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5660405c8079Smrgfi 5661405c8079Smrg 5662405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5663405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5664405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5665405c8079Smrg fi 5666405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5668405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5669405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5670405c8079Smrg $as_echo_n "(cached) " >&6 5671405c8079Smrgelse 5672405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673405c8079Smrg/* end confdefs.h. */ 5674405c8079Smrgint i; 5675405c8079Smrg_ACEOF 5676405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5677405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5678405c8079Smrgelse 5679405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5680405c8079Smrgfi 5681405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682405c8079Smrgfi 5683405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5684405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5685405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5686405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5687405c8079Smrgfi 5688405c8079Smrg 5689405c8079Smrgfound="no" 5690405c8079Smrg 5691405c8079Smrg if test $found = "no" ; then 569280f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5693405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694405c8079Smrg fi 5695405c8079Smrg 569680f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5697405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5698405c8079Smrg fi 5699405c8079Smrg 5700405c8079Smrg CFLAGS="$CFLAGS -Wold-style-definition" 5701405c8079Smrg 5702405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5703405c8079Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5704405c8079Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 5705405c8079Smrg if eval \${$cacheid+:} false; then : 5706405c8079Smrg $as_echo_n "(cached) " >&6 5707405c8079Smrgelse 5708405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709405c8079Smrg/* end confdefs.h. */ 5710405c8079Smrgint i; 5711405c8079Smrgint 5712405c8079Smrgmain () 5713405c8079Smrg{ 5714405c8079Smrg 5715405c8079Smrg ; 5716405c8079Smrg return 0; 5717405c8079Smrg} 5718405c8079Smrg_ACEOF 5719405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5720405c8079Smrg eval $cacheid=yes 5721405c8079Smrgelse 5722405c8079Smrg eval $cacheid=no 5723405c8079Smrgfi 5724405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5725405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5726405c8079Smrgfi 5727405c8079Smrg 5728405c8079Smrg 5729405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5730405c8079Smrg 5731405c8079Smrg eval supported=\$$cacheid 5732405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733405c8079Smrg$as_echo "$supported" >&6; } 5734405c8079Smrg if test "$supported" = "yes" ; then 5735405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5736405c8079Smrg found="yes" 5737405c8079Smrg fi 5738405c8079Smrg fi 5739405c8079Smrg 574080f56f3aSmrg if test $found = "no" ; then 574180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 574280f56f3aSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 574380f56f3aSmrg fi 574480f56f3aSmrg 574580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 574680f56f3aSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 574780f56f3aSmrg fi 574880f56f3aSmrg 574980f56f3aSmrg CFLAGS="$CFLAGS -fd" 575080f56f3aSmrg 575180f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 575280f56f3aSmrg$as_echo_n "checking if $CC supports -fd... " >&6; } 575380f56f3aSmrg cacheid=xorg_cv_cc_flag__fd 575480f56f3aSmrg if eval \${$cacheid+:} false; then : 575580f56f3aSmrg $as_echo_n "(cached) " >&6 575680f56f3aSmrgelse 575780f56f3aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 575880f56f3aSmrg/* end confdefs.h. */ 575980f56f3aSmrgint i; 576080f56f3aSmrgint 576180f56f3aSmrgmain () 576280f56f3aSmrg{ 576380f56f3aSmrg 576480f56f3aSmrg ; 576580f56f3aSmrg return 0; 576680f56f3aSmrg} 576780f56f3aSmrg_ACEOF 576880f56f3aSmrgif ac_fn_c_try_link "$LINENO"; then : 576980f56f3aSmrg eval $cacheid=yes 577080f56f3aSmrgelse 577180f56f3aSmrg eval $cacheid=no 577280f56f3aSmrgfi 577380f56f3aSmrgrm -f core conftest.err conftest.$ac_objext \ 577480f56f3aSmrg conftest$ac_exeext conftest.$ac_ext 577580f56f3aSmrgfi 577680f56f3aSmrg 577780f56f3aSmrg 577880f56f3aSmrg CFLAGS="$xorg_testset_save_CFLAGS" 577980f56f3aSmrg 578080f56f3aSmrg eval supported=\$$cacheid 578180f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 578280f56f3aSmrg$as_echo "$supported" >&6; } 578380f56f3aSmrg if test "$supported" = "yes" ; then 578480f56f3aSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 578580f56f3aSmrg found="yes" 578680f56f3aSmrg fi 578780f56f3aSmrg fi 578880f56f3aSmrg 5789405c8079Smrg 5790405c8079Smrg 5791405c8079Smrg 5792405c8079Smrg 5793405c8079Smrg 5794405c8079Smrg 5795405c8079Smrg 5796405c8079Smrg 5797405c8079Smrg 5798405c8079Smrg 5799405c8079Smrg 5800405c8079Smrg 5801405c8079Smrg 5802405c8079Smrg 5803405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5804405c8079Smrg 5805405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5806405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5807405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5808405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5809405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5810405c8079Smrg $as_echo_n "(cached) " >&6 5811405c8079Smrgelse 5812405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813405c8079Smrg/* end confdefs.h. */ 5814405c8079Smrgint i; 5815405c8079Smrg_ACEOF 5816405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5817405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5818405c8079Smrgelse 5819405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5820405c8079Smrgfi 5821405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5822405c8079Smrgfi 5823405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5824405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5825405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5826405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5827405c8079Smrgfi 5828405c8079Smrg 5829405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5830405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5831405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5832405c8079Smrg fi 5833405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5834405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5835405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5836405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5837405c8079Smrg $as_echo_n "(cached) " >&6 5838405c8079Smrgelse 5839405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840405c8079Smrg/* end confdefs.h. */ 5841405c8079Smrgint i; 5842405c8079Smrg_ACEOF 5843405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5844405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5845405c8079Smrgelse 5846405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5847405c8079Smrgfi 5848405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849405c8079Smrgfi 5850405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5851405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5852405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5853405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5854405c8079Smrgfi 5855405c8079Smrg 5856405c8079Smrgfound="no" 5857405c8079Smrg 5858405c8079Smrg if test $found = "no" ; then 585980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5860405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5861405c8079Smrg fi 5862405c8079Smrg 586380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5864405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5865405c8079Smrg fi 5866405c8079Smrg 5867405c8079Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5868405c8079Smrg 5869405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5870405c8079Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5871405c8079Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5872405c8079Smrg if eval \${$cacheid+:} false; then : 5873405c8079Smrg $as_echo_n "(cached) " >&6 5874405c8079Smrgelse 5875405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876405c8079Smrg/* end confdefs.h. */ 5877405c8079Smrgint i; 5878405c8079Smrgint 5879405c8079Smrgmain () 5880405c8079Smrg{ 5881405c8079Smrg 5882405c8079Smrg ; 5883405c8079Smrg return 0; 5884405c8079Smrg} 5885405c8079Smrg_ACEOF 5886405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 5887405c8079Smrg eval $cacheid=yes 5888405c8079Smrgelse 5889405c8079Smrg eval $cacheid=no 5890405c8079Smrgfi 5891405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 5892405c8079Smrg conftest$ac_exeext conftest.$ac_ext 5893405c8079Smrgfi 5894405c8079Smrg 5895405c8079Smrg 5896405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5897405c8079Smrg 5898405c8079Smrg eval supported=\$$cacheid 5899405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5900405c8079Smrg$as_echo "$supported" >&6; } 5901405c8079Smrg if test "$supported" = "yes" ; then 5902405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5903405c8079Smrg found="yes" 5904405c8079Smrg fi 5905405c8079Smrg fi 5906405c8079Smrg 5907405c8079Smrg 5908405c8079Smrg 5909405c8079Smrg 5910405c8079Smrg 5911405c8079Smrg# This chunk adds additional warnings that could catch undesired effects. 5912405c8079Smrg 5913405c8079Smrg 5914405c8079Smrg 5915405c8079Smrg 5916405c8079Smrg 5917405c8079Smrg 5918405c8079Smrg 5919405c8079Smrg 5920405c8079Smrg 5921405c8079Smrg 5922405c8079Smrg 5923405c8079Smrg 5924405c8079Smrg 5925405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5926405c8079Smrg 5927405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5928405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5929405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5930405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5931405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5932405c8079Smrg $as_echo_n "(cached) " >&6 5933405c8079Smrgelse 5934405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935405c8079Smrg/* end confdefs.h. */ 5936405c8079Smrgint i; 5937405c8079Smrg_ACEOF 5938405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5939405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5940405c8079Smrgelse 5941405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 5942405c8079Smrgfi 5943405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5944405c8079Smrgfi 5945405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5946405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5947405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5948405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5949405c8079Smrgfi 5950405c8079Smrg 5951405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5952405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5953405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954405c8079Smrg fi 5955405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5956405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5957405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5958405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5959405c8079Smrg $as_echo_n "(cached) " >&6 5960405c8079Smrgelse 5961405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962405c8079Smrg/* end confdefs.h. */ 5963405c8079Smrgint i; 5964405c8079Smrg_ACEOF 5965405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 5966405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5967405c8079Smrgelse 5968405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5969405c8079Smrgfi 5970405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971405c8079Smrgfi 5972405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5973405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5974405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5975405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5976405c8079Smrgfi 5977405c8079Smrg 5978405c8079Smrgfound="no" 5979405c8079Smrg 5980405c8079Smrg if test $found = "no" ; then 598180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983405c8079Smrg fi 5984405c8079Smrg 598580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5986405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987405c8079Smrg fi 5988405c8079Smrg 5989405c8079Smrg CFLAGS="$CFLAGS -Wunused" 5990405c8079Smrg 5991405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5992405c8079Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5993405c8079Smrg cacheid=xorg_cv_cc_flag__Wunused 5994405c8079Smrg if eval \${$cacheid+:} false; then : 5995405c8079Smrg $as_echo_n "(cached) " >&6 5996405c8079Smrgelse 5997405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998405c8079Smrg/* end confdefs.h. */ 5999405c8079Smrgint i; 6000405c8079Smrgint 6001405c8079Smrgmain () 6002405c8079Smrg{ 6003405c8079Smrg 6004405c8079Smrg ; 6005405c8079Smrg return 0; 6006405c8079Smrg} 6007405c8079Smrg_ACEOF 6008405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6009405c8079Smrg eval $cacheid=yes 6010405c8079Smrgelse 6011405c8079Smrg eval $cacheid=no 6012405c8079Smrgfi 6013405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6014405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6015405c8079Smrgfi 6016405c8079Smrg 6017405c8079Smrg 6018405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6019405c8079Smrg 6020405c8079Smrg eval supported=\$$cacheid 6021405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6022405c8079Smrg$as_echo "$supported" >&6; } 6023405c8079Smrg if test "$supported" = "yes" ; then 6024405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6025405c8079Smrg found="yes" 6026405c8079Smrg fi 6027405c8079Smrg fi 6028405c8079Smrg 6029405c8079Smrg 6030405c8079Smrg 6031405c8079Smrg 6032405c8079Smrg 6033405c8079Smrg 6034405c8079Smrg 6035405c8079Smrg 6036405c8079Smrg 6037405c8079Smrg 6038405c8079Smrg 6039405c8079Smrg 6040405c8079Smrg 6041405c8079Smrg 6042405c8079Smrg 6043405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6044405c8079Smrg 6045405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6046405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6048405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6049405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6050405c8079Smrg $as_echo_n "(cached) " >&6 6051405c8079Smrgelse 6052405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053405c8079Smrg/* end confdefs.h. */ 6054405c8079Smrgint i; 6055405c8079Smrg_ACEOF 6056405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6057405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6058405c8079Smrgelse 6059405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6060405c8079Smrgfi 6061405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6062405c8079Smrgfi 6063405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6064405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6065405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6066405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6067405c8079Smrgfi 6068405c8079Smrg 6069405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6070405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6071405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6072405c8079Smrg fi 6073405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6074405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6075405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6076405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6077405c8079Smrg $as_echo_n "(cached) " >&6 6078405c8079Smrgelse 6079405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080405c8079Smrg/* end confdefs.h. */ 6081405c8079Smrgint i; 6082405c8079Smrg_ACEOF 6083405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6084405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6085405c8079Smrgelse 6086405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6087405c8079Smrgfi 6088405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6089405c8079Smrgfi 6090405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6091405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6092405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6093405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6094405c8079Smrgfi 6095405c8079Smrg 6096405c8079Smrgfound="no" 6097405c8079Smrg 6098405c8079Smrg if test $found = "no" ; then 609980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6100405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6101405c8079Smrg fi 6102405c8079Smrg 610380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6104405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6105405c8079Smrg fi 6106405c8079Smrg 6107405c8079Smrg CFLAGS="$CFLAGS -Wuninitialized" 6108405c8079Smrg 6109405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6110405c8079Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6111405c8079Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6112405c8079Smrg if eval \${$cacheid+:} false; then : 6113405c8079Smrg $as_echo_n "(cached) " >&6 6114405c8079Smrgelse 6115405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116405c8079Smrg/* end confdefs.h. */ 6117405c8079Smrgint i; 6118405c8079Smrgint 6119405c8079Smrgmain () 6120405c8079Smrg{ 6121405c8079Smrg 6122405c8079Smrg ; 6123405c8079Smrg return 0; 6124405c8079Smrg} 6125405c8079Smrg_ACEOF 6126405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6127405c8079Smrg eval $cacheid=yes 6128405c8079Smrgelse 6129405c8079Smrg eval $cacheid=no 6130405c8079Smrgfi 6131405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6132405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6133405c8079Smrgfi 6134405c8079Smrg 6135405c8079Smrg 6136405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6137405c8079Smrg 6138405c8079Smrg eval supported=\$$cacheid 6139405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6140405c8079Smrg$as_echo "$supported" >&6; } 6141405c8079Smrg if test "$supported" = "yes" ; then 6142405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6143405c8079Smrg found="yes" 6144405c8079Smrg fi 6145405c8079Smrg fi 6146405c8079Smrg 6147405c8079Smrg 6148405c8079Smrg 6149405c8079Smrg 6150405c8079Smrg 6151405c8079Smrg 6152405c8079Smrg 6153405c8079Smrg 6154405c8079Smrg 6155405c8079Smrg 6156405c8079Smrg 6157405c8079Smrg 6158405c8079Smrg 6159405c8079Smrg 6160405c8079Smrg 6161405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6162405c8079Smrg 6163405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6164405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6165405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6166405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6167405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6168405c8079Smrg $as_echo_n "(cached) " >&6 6169405c8079Smrgelse 6170405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171405c8079Smrg/* end confdefs.h. */ 6172405c8079Smrgint i; 6173405c8079Smrg_ACEOF 6174405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6175405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6176405c8079Smrgelse 6177405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6178405c8079Smrgfi 6179405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6180405c8079Smrgfi 6181405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6182405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6183405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6184405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6185405c8079Smrgfi 6186405c8079Smrg 6187405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6188405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6189405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190405c8079Smrg fi 6191405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6192405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6193405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6194405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6195405c8079Smrg $as_echo_n "(cached) " >&6 6196405c8079Smrgelse 6197405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198405c8079Smrg/* end confdefs.h. */ 6199405c8079Smrgint i; 6200405c8079Smrg_ACEOF 6201405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6202405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6203405c8079Smrgelse 6204405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6205405c8079Smrgfi 6206405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207405c8079Smrgfi 6208405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6209405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6210405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6211405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6212405c8079Smrgfi 6213405c8079Smrg 6214405c8079Smrgfound="no" 6215405c8079Smrg 6216405c8079Smrg if test $found = "no" ; then 621780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6218405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219405c8079Smrg fi 6220405c8079Smrg 622180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6222405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6223405c8079Smrg fi 6224405c8079Smrg 6225405c8079Smrg CFLAGS="$CFLAGS -Wshadow" 6226405c8079Smrg 6227405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6228405c8079Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6229405c8079Smrg cacheid=xorg_cv_cc_flag__Wshadow 6230405c8079Smrg if eval \${$cacheid+:} false; then : 6231405c8079Smrg $as_echo_n "(cached) " >&6 6232405c8079Smrgelse 6233405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234405c8079Smrg/* end confdefs.h. */ 6235405c8079Smrgint i; 6236405c8079Smrgint 6237405c8079Smrgmain () 6238405c8079Smrg{ 6239405c8079Smrg 6240405c8079Smrg ; 6241405c8079Smrg return 0; 6242405c8079Smrg} 6243405c8079Smrg_ACEOF 6244405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6245405c8079Smrg eval $cacheid=yes 6246405c8079Smrgelse 6247405c8079Smrg eval $cacheid=no 6248405c8079Smrgfi 6249405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6250405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6251405c8079Smrgfi 6252405c8079Smrg 6253405c8079Smrg 6254405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6255405c8079Smrg 6256405c8079Smrg eval supported=\$$cacheid 6257405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6258405c8079Smrg$as_echo "$supported" >&6; } 6259405c8079Smrg if test "$supported" = "yes" ; then 6260405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6261405c8079Smrg found="yes" 6262405c8079Smrg fi 6263405c8079Smrg fi 6264405c8079Smrg 6265405c8079Smrg 6266405c8079Smrg 6267405c8079Smrg 6268405c8079Smrg 6269405c8079Smrg 6270405c8079Smrg 6271405c8079Smrg 6272405c8079Smrg 6273405c8079Smrg 6274405c8079Smrg 6275405c8079Smrg 6276405c8079Smrg 6277405c8079Smrg 6278405c8079Smrg 6279405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6280405c8079Smrg 6281405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6282405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6283405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6284405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6285405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6286405c8079Smrg $as_echo_n "(cached) " >&6 6287405c8079Smrgelse 6288405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289405c8079Smrg/* end confdefs.h. */ 6290405c8079Smrgint i; 6291405c8079Smrg_ACEOF 6292405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6293405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6294405c8079Smrgelse 6295405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6296405c8079Smrgfi 6297405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6298405c8079Smrgfi 6299405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6300405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6301405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6302405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6303405c8079Smrgfi 6304405c8079Smrg 6305405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6306405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6307405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6308405c8079Smrg fi 6309405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6310405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6311405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6312405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6313405c8079Smrg $as_echo_n "(cached) " >&6 6314405c8079Smrgelse 6315405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6316405c8079Smrg/* end confdefs.h. */ 6317405c8079Smrgint i; 6318405c8079Smrg_ACEOF 6319405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6320405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6321405c8079Smrgelse 6322405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6323405c8079Smrgfi 6324405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6325405c8079Smrgfi 6326405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6327405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6328405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6329405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6330405c8079Smrgfi 6331405c8079Smrg 6332405c8079Smrgfound="no" 6333405c8079Smrg 6334405c8079Smrg if test $found = "no" ; then 633580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6336405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337405c8079Smrg fi 6338405c8079Smrg 633980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6340405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6341405c8079Smrg fi 6342405c8079Smrg 634380f56f3aSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6344405c8079Smrg 634580f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 634680f56f3aSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 634780f56f3aSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6348405c8079Smrg if eval \${$cacheid+:} false; then : 6349405c8079Smrg $as_echo_n "(cached) " >&6 6350405c8079Smrgelse 6351405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6352405c8079Smrg/* end confdefs.h. */ 6353405c8079Smrgint i; 6354405c8079Smrgint 6355405c8079Smrgmain () 6356405c8079Smrg{ 6357405c8079Smrg 6358405c8079Smrg ; 6359405c8079Smrg return 0; 6360405c8079Smrg} 6361405c8079Smrg_ACEOF 6362405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6363405c8079Smrg eval $cacheid=yes 6364405c8079Smrgelse 6365405c8079Smrg eval $cacheid=no 6366405c8079Smrgfi 6367405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6368405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6369405c8079Smrgfi 6370405c8079Smrg 6371405c8079Smrg 6372405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6373405c8079Smrg 6374405c8079Smrg eval supported=\$$cacheid 6375405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6376405c8079Smrg$as_echo "$supported" >&6; } 6377405c8079Smrg if test "$supported" = "yes" ; then 637880f56f3aSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6379405c8079Smrg found="yes" 6380405c8079Smrg fi 6381405c8079Smrg fi 6382405c8079Smrg 6383405c8079Smrg 6384405c8079Smrg 6385405c8079Smrg 6386405c8079Smrg 6387405c8079Smrg 6388405c8079Smrg 6389405c8079Smrg 6390405c8079Smrg 6391405c8079Smrg 6392405c8079Smrg 6393405c8079Smrg 6394405c8079Smrg 6395405c8079Smrg 6396405c8079Smrg 6397405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6398405c8079Smrg 6399405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6400405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6401405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6402405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6403405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6404405c8079Smrg $as_echo_n "(cached) " >&6 6405405c8079Smrgelse 6406405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6407405c8079Smrg/* end confdefs.h. */ 6408405c8079Smrgint i; 6409405c8079Smrg_ACEOF 6410405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6411405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6412405c8079Smrgelse 6413405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6414405c8079Smrgfi 6415405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6416405c8079Smrgfi 6417405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6418405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6419405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6420405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6421405c8079Smrgfi 6422405c8079Smrg 6423405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6424405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6425405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426405c8079Smrg fi 6427405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6428405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6429405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6430405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6431405c8079Smrg $as_echo_n "(cached) " >&6 6432405c8079Smrgelse 6433405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434405c8079Smrg/* end confdefs.h. */ 6435405c8079Smrgint i; 6436405c8079Smrg_ACEOF 6437405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6438405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6439405c8079Smrgelse 6440405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6441405c8079Smrgfi 6442405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6443405c8079Smrgfi 6444405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6445405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6446405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6447405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6448405c8079Smrgfi 6449405c8079Smrg 6450405c8079Smrgfound="no" 6451405c8079Smrg 6452405c8079Smrg if test $found = "no" ; then 645380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455405c8079Smrg fi 6456405c8079Smrg 645780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6458405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6459405c8079Smrg fi 6460405c8079Smrg 646180f56f3aSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6462405c8079Smrg 646380f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 646480f56f3aSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 646580f56f3aSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6466405c8079Smrg if eval \${$cacheid+:} false; then : 6467405c8079Smrg $as_echo_n "(cached) " >&6 6468405c8079Smrgelse 6469405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470405c8079Smrg/* end confdefs.h. */ 6471405c8079Smrgint i; 6472405c8079Smrgint 6473405c8079Smrgmain () 6474405c8079Smrg{ 6475405c8079Smrg 6476405c8079Smrg ; 6477405c8079Smrg return 0; 6478405c8079Smrg} 6479405c8079Smrg_ACEOF 6480405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6481405c8079Smrg eval $cacheid=yes 6482405c8079Smrgelse 6483405c8079Smrg eval $cacheid=no 6484405c8079Smrgfi 6485405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6486405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6487405c8079Smrgfi 6488405c8079Smrg 6489405c8079Smrg 6490405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6491405c8079Smrg 6492405c8079Smrg eval supported=\$$cacheid 6493405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6494405c8079Smrg$as_echo "$supported" >&6; } 6495405c8079Smrg if test "$supported" = "yes" ; then 649680f56f3aSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6497405c8079Smrg found="yes" 6498405c8079Smrg fi 6499405c8079Smrg fi 6500405c8079Smrg 6501405c8079Smrg 6502405c8079Smrg 6503405c8079Smrg 6504405c8079Smrg 6505405c8079Smrg 6506405c8079Smrg 6507405c8079Smrg 6508405c8079Smrg 6509405c8079Smrg 6510405c8079Smrg 6511405c8079Smrg 6512405c8079Smrg 6513405c8079Smrg 6514405c8079Smrg 6515405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6516405c8079Smrg 6517405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6518405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6519405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6520405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6521405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6522405c8079Smrg $as_echo_n "(cached) " >&6 6523405c8079Smrgelse 6524405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525405c8079Smrg/* end confdefs.h. */ 6526405c8079Smrgint i; 6527405c8079Smrg_ACEOF 6528405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6529405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6530405c8079Smrgelse 6531405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6532405c8079Smrgfi 6533405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6534405c8079Smrgfi 6535405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6536405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6537405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6538405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6539405c8079Smrgfi 6540405c8079Smrg 6541405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6542405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6543405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544405c8079Smrg fi 6545405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6546405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6547405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6548405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6549405c8079Smrg $as_echo_n "(cached) " >&6 6550405c8079Smrgelse 6551405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6552405c8079Smrg/* end confdefs.h. */ 6553405c8079Smrgint i; 6554405c8079Smrg_ACEOF 6555405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6556405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6557405c8079Smrgelse 6558405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6559405c8079Smrgfi 6560405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6561405c8079Smrgfi 6562405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6563405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6564405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6565405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6566405c8079Smrgfi 6567405c8079Smrg 6568405c8079Smrgfound="no" 6569405c8079Smrg 6570405c8079Smrg if test $found = "no" ; then 657180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6572405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6573405c8079Smrg fi 6574405c8079Smrg 657580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6576405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6577405c8079Smrg fi 6578405c8079Smrg 657980f56f3aSmrg CFLAGS="$CFLAGS -Wredundant-decls" 6580405c8079Smrg 658180f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 658280f56f3aSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 658380f56f3aSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 6584405c8079Smrg if eval \${$cacheid+:} false; then : 6585405c8079Smrg $as_echo_n "(cached) " >&6 6586405c8079Smrgelse 6587405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588405c8079Smrg/* end confdefs.h. */ 6589405c8079Smrgint i; 6590405c8079Smrgint 6591405c8079Smrgmain () 6592405c8079Smrg{ 6593405c8079Smrg 6594405c8079Smrg ; 6595405c8079Smrg return 0; 6596405c8079Smrg} 6597405c8079Smrg_ACEOF 6598405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6599405c8079Smrg eval $cacheid=yes 6600405c8079Smrgelse 6601405c8079Smrg eval $cacheid=no 6602405c8079Smrgfi 6603405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6604405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6605405c8079Smrgfi 6606405c8079Smrg 6607405c8079Smrg 6608405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6609405c8079Smrg 6610405c8079Smrg eval supported=\$$cacheid 6611405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6612405c8079Smrg$as_echo "$supported" >&6; } 6613405c8079Smrg if test "$supported" = "yes" ; then 661480f56f3aSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6615405c8079Smrg found="yes" 6616405c8079Smrg fi 6617405c8079Smrg fi 6618405c8079Smrg 6619405c8079Smrg 6620405c8079Smrg 6621405c8079Smrg 6622405c8079Smrg 6623405c8079Smrg 6624405c8079Smrg 6625405c8079Smrg 6626405c8079Smrg 6627405c8079Smrg 6628405c8079Smrg 6629405c8079Smrg 6630405c8079Smrg 6631405c8079Smrg 6632405c8079Smrg 6633405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6634405c8079Smrg 6635405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6636405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6637405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6638405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6639405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6640405c8079Smrg $as_echo_n "(cached) " >&6 6641405c8079Smrgelse 6642405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643405c8079Smrg/* end confdefs.h. */ 6644405c8079Smrgint i; 6645405c8079Smrg_ACEOF 6646405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6647405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6648405c8079Smrgelse 6649405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6650405c8079Smrgfi 6651405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6652405c8079Smrgfi 6653405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6654405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6655405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6656405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6657405c8079Smrgfi 6658405c8079Smrg 6659405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6660405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6661405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6662405c8079Smrg fi 6663405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6664405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6665405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6666405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6667405c8079Smrg $as_echo_n "(cached) " >&6 6668405c8079Smrgelse 6669405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670405c8079Smrg/* end confdefs.h. */ 6671405c8079Smrgint i; 6672405c8079Smrg_ACEOF 6673405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6674405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6675405c8079Smrgelse 6676405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6677405c8079Smrgfi 6678405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6679405c8079Smrgfi 6680405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6681405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6682405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6683405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6684405c8079Smrgfi 6685405c8079Smrg 6686405c8079Smrgfound="no" 6687405c8079Smrg 6688405c8079Smrg if test $found = "no" ; then 668980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6690405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6691405c8079Smrg fi 6692405c8079Smrg 669380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6694405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6695405c8079Smrg fi 6696405c8079Smrg 669780f56f3aSmrg CFLAGS="$CFLAGS -Wlogical-op" 6698405c8079Smrg 669980f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 670080f56f3aSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 670180f56f3aSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 6702405c8079Smrg if eval \${$cacheid+:} false; then : 6703405c8079Smrg $as_echo_n "(cached) " >&6 6704405c8079Smrgelse 6705405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706405c8079Smrg/* end confdefs.h. */ 6707405c8079Smrgint i; 6708405c8079Smrgint 6709405c8079Smrgmain () 6710405c8079Smrg{ 6711405c8079Smrg 6712405c8079Smrg ; 6713405c8079Smrg return 0; 6714405c8079Smrg} 6715405c8079Smrg_ACEOF 6716405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6717405c8079Smrg eval $cacheid=yes 6718405c8079Smrgelse 6719405c8079Smrg eval $cacheid=no 6720405c8079Smrgfi 6721405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6722405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6723405c8079Smrgfi 6724405c8079Smrg 6725405c8079Smrg 6726405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6727405c8079Smrg 6728405c8079Smrg eval supported=\$$cacheid 6729405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6730405c8079Smrg$as_echo "$supported" >&6; } 6731405c8079Smrg if test "$supported" = "yes" ; then 673280f56f3aSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6733405c8079Smrg found="yes" 6734405c8079Smrg fi 6735405c8079Smrg fi 6736405c8079Smrg 6737405c8079Smrg 6738405c8079Smrg 6739405c8079Smrg# These are currently disabled because they are noisy. They will be enabled 6740405c8079Smrg# in the future once the codebase is sufficiently modernized to silence 6741405c8079Smrg# them. For now, I don't want them to drown out the other warnings. 6742405c8079Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6743405c8079Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 674480f56f3aSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6745405c8079Smrg 6746405c8079Smrg# Turn some warnings into errors, so we don't accidently get successful builds 6747405c8079Smrg# when there are problems that should be fixed. 6748405c8079Smrg 6749405c8079Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 6750405c8079Smrg 6751405c8079Smrg 6752405c8079Smrg 6753405c8079Smrg 6754405c8079Smrg 6755405c8079Smrg 6756405c8079Smrg 6757405c8079Smrg 6758405c8079Smrg 6759405c8079Smrg 6760405c8079Smrg 6761405c8079Smrg 6762405c8079Smrg 6763405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6764405c8079Smrg 6765405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6766405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6767405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6768405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6769405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6770405c8079Smrg $as_echo_n "(cached) " >&6 6771405c8079Smrgelse 6772405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773405c8079Smrg/* end confdefs.h. */ 6774405c8079Smrgint i; 6775405c8079Smrg_ACEOF 6776405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6777405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6778405c8079Smrgelse 6779405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6780405c8079Smrgfi 6781405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6782405c8079Smrgfi 6783405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6784405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6785405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6786405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6787405c8079Smrgfi 6788405c8079Smrg 6789405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6790405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6791405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6792405c8079Smrg fi 6793405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6795405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6796405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6797405c8079Smrg $as_echo_n "(cached) " >&6 6798405c8079Smrgelse 6799405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800405c8079Smrg/* end confdefs.h. */ 6801405c8079Smrgint i; 6802405c8079Smrg_ACEOF 6803405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6804405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6805405c8079Smrgelse 6806405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6807405c8079Smrgfi 6808405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6809405c8079Smrgfi 6810405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6811405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6812405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6813405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6814405c8079Smrgfi 6815405c8079Smrg 6816405c8079Smrgfound="no" 6817405c8079Smrg 6818405c8079Smrg if test $found = "no" ; then 681980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821405c8079Smrg fi 6822405c8079Smrg 682380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6824405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6825405c8079Smrg fi 6826405c8079Smrg 6827405c8079Smrg CFLAGS="$CFLAGS -Werror=implicit" 6828405c8079Smrg 6829405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6830405c8079Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 683180f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 6832405c8079Smrg if eval \${$cacheid+:} false; then : 6833405c8079Smrg $as_echo_n "(cached) " >&6 6834405c8079Smrgelse 6835405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836405c8079Smrg/* end confdefs.h. */ 6837405c8079Smrgint i; 6838405c8079Smrgint 6839405c8079Smrgmain () 6840405c8079Smrg{ 6841405c8079Smrg 6842405c8079Smrg ; 6843405c8079Smrg return 0; 6844405c8079Smrg} 6845405c8079Smrg_ACEOF 6846405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6847405c8079Smrg eval $cacheid=yes 6848405c8079Smrgelse 6849405c8079Smrg eval $cacheid=no 6850405c8079Smrgfi 6851405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6852405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6853405c8079Smrgfi 6854405c8079Smrg 6855405c8079Smrg 6856405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6857405c8079Smrg 6858405c8079Smrg eval supported=\$$cacheid 6859405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6860405c8079Smrg$as_echo "$supported" >&6; } 6861405c8079Smrg if test "$supported" = "yes" ; then 6862405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6863405c8079Smrg found="yes" 6864405c8079Smrg fi 6865405c8079Smrg fi 6866405c8079Smrg 6867405c8079Smrg if test $found = "no" ; then 686880f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870405c8079Smrg fi 6871405c8079Smrg 687280f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6873405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6874405c8079Smrg fi 6875405c8079Smrg 6876405c8079Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6877405c8079Smrg 6878405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6879405c8079Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 688080f56f3aSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6881405c8079Smrg if eval \${$cacheid+:} false; then : 6882405c8079Smrg $as_echo_n "(cached) " >&6 6883405c8079Smrgelse 6884405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885405c8079Smrg/* end confdefs.h. */ 6886405c8079Smrgint i; 6887405c8079Smrgint 6888405c8079Smrgmain () 6889405c8079Smrg{ 6890405c8079Smrg 6891405c8079Smrg ; 6892405c8079Smrg return 0; 6893405c8079Smrg} 6894405c8079Smrg_ACEOF 6895405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 6896405c8079Smrg eval $cacheid=yes 6897405c8079Smrgelse 6898405c8079Smrg eval $cacheid=no 6899405c8079Smrgfi 6900405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 6901405c8079Smrg conftest$ac_exeext conftest.$ac_ext 6902405c8079Smrgfi 6903405c8079Smrg 6904405c8079Smrg 6905405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6906405c8079Smrg 6907405c8079Smrg eval supported=\$$cacheid 6908405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6909405c8079Smrg$as_echo "$supported" >&6; } 6910405c8079Smrg if test "$supported" = "yes" ; then 6911405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6912405c8079Smrg found="yes" 6913405c8079Smrg fi 6914405c8079Smrg fi 6915405c8079Smrg 6916405c8079Smrg 6917405c8079Smrg 6918405c8079Smrg 6919405c8079Smrg 6920405c8079Smrg 6921405c8079Smrg 6922405c8079Smrg 6923405c8079Smrg 6924405c8079Smrg 6925405c8079Smrg 6926405c8079Smrg 6927405c8079Smrg 6928405c8079Smrg 6929405c8079Smrg 6930405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6931405c8079Smrg 6932405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6933405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6934405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6935405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6936405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6937405c8079Smrg $as_echo_n "(cached) " >&6 6938405c8079Smrgelse 6939405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940405c8079Smrg/* end confdefs.h. */ 6941405c8079Smrgint i; 6942405c8079Smrg_ACEOF 6943405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6944405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6945405c8079Smrgelse 6946405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 6947405c8079Smrgfi 6948405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949405c8079Smrgfi 6950405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6951405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6952405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6953405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6954405c8079Smrgfi 6955405c8079Smrg 6956405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6957405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6958405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6959405c8079Smrg fi 6960405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6961405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6962405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6963405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6964405c8079Smrg $as_echo_n "(cached) " >&6 6965405c8079Smrgelse 6966405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967405c8079Smrg/* end confdefs.h. */ 6968405c8079Smrgint i; 6969405c8079Smrg_ACEOF 6970405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 6971405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6972405c8079Smrgelse 6973405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6974405c8079Smrgfi 6975405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976405c8079Smrgfi 6977405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6978405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6979405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6980405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6981405c8079Smrgfi 6982405c8079Smrg 6983405c8079Smrgfound="no" 6984405c8079Smrg 6985405c8079Smrg if test $found = "no" ; then 698680f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6987405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988405c8079Smrg fi 6989405c8079Smrg 699080f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6991405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6992405c8079Smrg fi 6993405c8079Smrg 6994405c8079Smrg CFLAGS="$CFLAGS -Werror=nonnull" 6995405c8079Smrg 6996405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6997405c8079Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 699880f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 6999405c8079Smrg if eval \${$cacheid+:} false; then : 7000405c8079Smrg $as_echo_n "(cached) " >&6 7001405c8079Smrgelse 7002405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003405c8079Smrg/* end confdefs.h. */ 7004405c8079Smrgint i; 7005405c8079Smrgint 7006405c8079Smrgmain () 7007405c8079Smrg{ 7008405c8079Smrg 7009405c8079Smrg ; 7010405c8079Smrg return 0; 7011405c8079Smrg} 7012405c8079Smrg_ACEOF 7013405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7014405c8079Smrg eval $cacheid=yes 7015405c8079Smrgelse 7016405c8079Smrg eval $cacheid=no 7017405c8079Smrgfi 7018405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7019405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7020405c8079Smrgfi 7021405c8079Smrg 7022405c8079Smrg 7023405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7024405c8079Smrg 7025405c8079Smrg eval supported=\$$cacheid 7026405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7027405c8079Smrg$as_echo "$supported" >&6; } 7028405c8079Smrg if test "$supported" = "yes" ; then 7029405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7030405c8079Smrg found="yes" 7031405c8079Smrg fi 7032405c8079Smrg fi 7033405c8079Smrg 7034405c8079Smrg 7035405c8079Smrg 7036405c8079Smrg 7037405c8079Smrg 7038405c8079Smrg 7039405c8079Smrg 7040405c8079Smrg 7041405c8079Smrg 7042405c8079Smrg 7043405c8079Smrg 7044405c8079Smrg 7045405c8079Smrg 7046405c8079Smrg 7047405c8079Smrg 7048405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7049405c8079Smrg 7050405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7051405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7052405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7053405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7054405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7055405c8079Smrg $as_echo_n "(cached) " >&6 7056405c8079Smrgelse 7057405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7058405c8079Smrg/* end confdefs.h. */ 7059405c8079Smrgint i; 7060405c8079Smrg_ACEOF 7061405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7062405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7063405c8079Smrgelse 7064405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7065405c8079Smrgfi 7066405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7067405c8079Smrgfi 7068405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7069405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7070405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7071405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7072405c8079Smrgfi 7073405c8079Smrg 7074405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7075405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7076405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7077405c8079Smrg fi 7078405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7079405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7080405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7081405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7082405c8079Smrg $as_echo_n "(cached) " >&6 7083405c8079Smrgelse 7084405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085405c8079Smrg/* end confdefs.h. */ 7086405c8079Smrgint i; 7087405c8079Smrg_ACEOF 7088405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7089405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7090405c8079Smrgelse 7091405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7092405c8079Smrgfi 7093405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7094405c8079Smrgfi 7095405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7096405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7097405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7098405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7099405c8079Smrgfi 7100405c8079Smrg 7101405c8079Smrgfound="no" 7102405c8079Smrg 7103405c8079Smrg if test $found = "no" ; then 710480f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7105405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106405c8079Smrg fi 7107405c8079Smrg 710880f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7109405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7110405c8079Smrg fi 7111405c8079Smrg 7112405c8079Smrg CFLAGS="$CFLAGS -Werror=init-self" 7113405c8079Smrg 7114405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7115405c8079Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 711680f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 7117405c8079Smrg if eval \${$cacheid+:} false; then : 7118405c8079Smrg $as_echo_n "(cached) " >&6 7119405c8079Smrgelse 7120405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121405c8079Smrg/* end confdefs.h. */ 7122405c8079Smrgint i; 7123405c8079Smrgint 7124405c8079Smrgmain () 7125405c8079Smrg{ 7126405c8079Smrg 7127405c8079Smrg ; 7128405c8079Smrg return 0; 7129405c8079Smrg} 7130405c8079Smrg_ACEOF 7131405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7132405c8079Smrg eval $cacheid=yes 7133405c8079Smrgelse 7134405c8079Smrg eval $cacheid=no 7135405c8079Smrgfi 7136405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7137405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7138405c8079Smrgfi 7139405c8079Smrg 7140405c8079Smrg 7141405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7142405c8079Smrg 7143405c8079Smrg eval supported=\$$cacheid 7144405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7145405c8079Smrg$as_echo "$supported" >&6; } 7146405c8079Smrg if test "$supported" = "yes" ; then 7147405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7148405c8079Smrg found="yes" 7149405c8079Smrg fi 7150405c8079Smrg fi 7151405c8079Smrg 7152405c8079Smrg 7153405c8079Smrg 7154405c8079Smrg 7155405c8079Smrg 7156405c8079Smrg 7157405c8079Smrg 7158405c8079Smrg 7159405c8079Smrg 7160405c8079Smrg 7161405c8079Smrg 7162405c8079Smrg 7163405c8079Smrg 7164405c8079Smrg 7165405c8079Smrg 7166405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7167405c8079Smrg 7168405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7169405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7171405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7172405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7173405c8079Smrg $as_echo_n "(cached) " >&6 7174405c8079Smrgelse 7175405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7176405c8079Smrg/* end confdefs.h. */ 7177405c8079Smrgint i; 7178405c8079Smrg_ACEOF 7179405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7180405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7181405c8079Smrgelse 7182405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7183405c8079Smrgfi 7184405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7185405c8079Smrgfi 7186405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7187405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7188405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7189405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7190405c8079Smrgfi 7191405c8079Smrg 7192405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7193405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7194405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7195405c8079Smrg fi 7196405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7197405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7198405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7199405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7200405c8079Smrg $as_echo_n "(cached) " >&6 7201405c8079Smrgelse 7202405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203405c8079Smrg/* end confdefs.h. */ 7204405c8079Smrgint i; 7205405c8079Smrg_ACEOF 7206405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7207405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7208405c8079Smrgelse 7209405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7210405c8079Smrgfi 7211405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7212405c8079Smrgfi 7213405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7214405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7215405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7216405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7217405c8079Smrgfi 7218405c8079Smrg 7219405c8079Smrgfound="no" 7220405c8079Smrg 7221405c8079Smrg if test $found = "no" ; then 722280f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7223405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7224405c8079Smrg fi 7225405c8079Smrg 722680f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7227405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7228405c8079Smrg fi 7229405c8079Smrg 7230405c8079Smrg CFLAGS="$CFLAGS -Werror=main" 7231405c8079Smrg 7232405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7233405c8079Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 723480f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_main 7235405c8079Smrg if eval \${$cacheid+:} false; then : 7236405c8079Smrg $as_echo_n "(cached) " >&6 7237405c8079Smrgelse 7238405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239405c8079Smrg/* end confdefs.h. */ 7240405c8079Smrgint i; 7241405c8079Smrgint 7242405c8079Smrgmain () 7243405c8079Smrg{ 7244405c8079Smrg 7245405c8079Smrg ; 7246405c8079Smrg return 0; 7247405c8079Smrg} 7248405c8079Smrg_ACEOF 7249405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7250405c8079Smrg eval $cacheid=yes 7251405c8079Smrgelse 7252405c8079Smrg eval $cacheid=no 7253405c8079Smrgfi 7254405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7255405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7256405c8079Smrgfi 7257405c8079Smrg 7258405c8079Smrg 7259405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7260405c8079Smrg 7261405c8079Smrg eval supported=\$$cacheid 7262405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7263405c8079Smrg$as_echo "$supported" >&6; } 7264405c8079Smrg if test "$supported" = "yes" ; then 7265405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7266405c8079Smrg found="yes" 7267405c8079Smrg fi 7268405c8079Smrg fi 7269405c8079Smrg 7270405c8079Smrg 7271405c8079Smrg 7272405c8079Smrg 7273405c8079Smrg 7274405c8079Smrg 7275405c8079Smrg 7276405c8079Smrg 7277405c8079Smrg 7278405c8079Smrg 7279405c8079Smrg 7280405c8079Smrg 7281405c8079Smrg 7282405c8079Smrg 7283405c8079Smrg 7284405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7285405c8079Smrg 7286405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7287405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7288405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7289405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7290405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7291405c8079Smrg $as_echo_n "(cached) " >&6 7292405c8079Smrgelse 7293405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294405c8079Smrg/* end confdefs.h. */ 7295405c8079Smrgint i; 7296405c8079Smrg_ACEOF 7297405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7298405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7299405c8079Smrgelse 7300405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7301405c8079Smrgfi 7302405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7303405c8079Smrgfi 7304405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7305405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7306405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7307405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7308405c8079Smrgfi 7309405c8079Smrg 7310405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7311405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7312405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7313405c8079Smrg fi 7314405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7315405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7316405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7317405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7318405c8079Smrg $as_echo_n "(cached) " >&6 7319405c8079Smrgelse 7320405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321405c8079Smrg/* end confdefs.h. */ 7322405c8079Smrgint i; 7323405c8079Smrg_ACEOF 7324405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7325405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7326405c8079Smrgelse 7327405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7328405c8079Smrgfi 7329405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7330405c8079Smrgfi 7331405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7332405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7333405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7334405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7335405c8079Smrgfi 7336405c8079Smrg 7337405c8079Smrgfound="no" 7338405c8079Smrg 7339405c8079Smrg if test $found = "no" ; then 734080f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7341405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342405c8079Smrg fi 7343405c8079Smrg 734480f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7345405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7346405c8079Smrg fi 7347405c8079Smrg 7348405c8079Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 7349405c8079Smrg 7350405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7351405c8079Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 735280f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7353405c8079Smrg if eval \${$cacheid+:} false; then : 7354405c8079Smrg $as_echo_n "(cached) " >&6 7355405c8079Smrgelse 7356405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7357405c8079Smrg/* end confdefs.h. */ 7358405c8079Smrgint i; 7359405c8079Smrgint 7360405c8079Smrgmain () 7361405c8079Smrg{ 7362405c8079Smrg 7363405c8079Smrg ; 7364405c8079Smrg return 0; 7365405c8079Smrg} 7366405c8079Smrg_ACEOF 7367405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7368405c8079Smrg eval $cacheid=yes 7369405c8079Smrgelse 7370405c8079Smrg eval $cacheid=no 7371405c8079Smrgfi 7372405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7373405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7374405c8079Smrgfi 7375405c8079Smrg 7376405c8079Smrg 7377405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7378405c8079Smrg 7379405c8079Smrg eval supported=\$$cacheid 7380405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7381405c8079Smrg$as_echo "$supported" >&6; } 7382405c8079Smrg if test "$supported" = "yes" ; then 7383405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7384405c8079Smrg found="yes" 7385405c8079Smrg fi 7386405c8079Smrg fi 7387405c8079Smrg 7388405c8079Smrg 7389405c8079Smrg 7390405c8079Smrg 7391405c8079Smrg 7392405c8079Smrg 7393405c8079Smrg 7394405c8079Smrg 7395405c8079Smrg 7396405c8079Smrg 7397405c8079Smrg 7398405c8079Smrg 7399405c8079Smrg 7400405c8079Smrg 7401405c8079Smrg 7402405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7403405c8079Smrg 7404405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7405405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7406405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7407405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7408405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7409405c8079Smrg $as_echo_n "(cached) " >&6 7410405c8079Smrgelse 7411405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412405c8079Smrg/* end confdefs.h. */ 7413405c8079Smrgint i; 7414405c8079Smrg_ACEOF 7415405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7416405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7417405c8079Smrgelse 7418405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7419405c8079Smrgfi 7420405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7421405c8079Smrgfi 7422405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7423405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7424405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7425405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7426405c8079Smrgfi 7427405c8079Smrg 7428405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7429405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7430405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7431405c8079Smrg fi 7432405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7434405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7435405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7436405c8079Smrg $as_echo_n "(cached) " >&6 7437405c8079Smrgelse 7438405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439405c8079Smrg/* end confdefs.h. */ 7440405c8079Smrgint i; 7441405c8079Smrg_ACEOF 7442405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7443405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7444405c8079Smrgelse 7445405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7446405c8079Smrgfi 7447405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7448405c8079Smrgfi 7449405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7450405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7451405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7452405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7453405c8079Smrgfi 7454405c8079Smrg 7455405c8079Smrgfound="no" 7456405c8079Smrg 7457405c8079Smrg if test $found = "no" ; then 745880f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7459405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7460405c8079Smrg fi 7461405c8079Smrg 746280f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7463405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7464405c8079Smrg fi 7465405c8079Smrg 7466405c8079Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 7467405c8079Smrg 7468405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7469405c8079Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 747080f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 7471405c8079Smrg if eval \${$cacheid+:} false; then : 7472405c8079Smrg $as_echo_n "(cached) " >&6 7473405c8079Smrgelse 7474405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475405c8079Smrg/* end confdefs.h. */ 7476405c8079Smrgint i; 7477405c8079Smrgint 7478405c8079Smrgmain () 7479405c8079Smrg{ 7480405c8079Smrg 7481405c8079Smrg ; 7482405c8079Smrg return 0; 7483405c8079Smrg} 7484405c8079Smrg_ACEOF 7485405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7486405c8079Smrg eval $cacheid=yes 7487405c8079Smrgelse 7488405c8079Smrg eval $cacheid=no 7489405c8079Smrgfi 7490405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7491405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7492405c8079Smrgfi 7493405c8079Smrg 7494405c8079Smrg 7495405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7496405c8079Smrg 7497405c8079Smrg eval supported=\$$cacheid 7498405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7499405c8079Smrg$as_echo "$supported" >&6; } 7500405c8079Smrg if test "$supported" = "yes" ; then 7501405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7502405c8079Smrg found="yes" 7503405c8079Smrg fi 7504405c8079Smrg fi 7505405c8079Smrg 7506405c8079Smrg 7507405c8079Smrg 7508405c8079Smrg 7509405c8079Smrg 7510405c8079Smrg 7511405c8079Smrg 7512405c8079Smrg 7513405c8079Smrg 7514405c8079Smrg 7515405c8079Smrg 7516405c8079Smrg 7517405c8079Smrg 7518405c8079Smrg 7519405c8079Smrg 7520405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7521405c8079Smrg 7522405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7523405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7525405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7526405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7527405c8079Smrg $as_echo_n "(cached) " >&6 7528405c8079Smrgelse 7529405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530405c8079Smrg/* end confdefs.h. */ 7531405c8079Smrgint i; 7532405c8079Smrg_ACEOF 7533405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7534405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7535405c8079Smrgelse 7536405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7537405c8079Smrgfi 7538405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7539405c8079Smrgfi 7540405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7541405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7542405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7543405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7544405c8079Smrgfi 7545405c8079Smrg 7546405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7547405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7548405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7549405c8079Smrg fi 7550405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7551405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7552405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7553405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7554405c8079Smrg $as_echo_n "(cached) " >&6 7555405c8079Smrgelse 7556405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557405c8079Smrg/* end confdefs.h. */ 7558405c8079Smrgint i; 7559405c8079Smrg_ACEOF 7560405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7561405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7562405c8079Smrgelse 7563405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7564405c8079Smrgfi 7565405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7566405c8079Smrgfi 7567405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7568405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7569405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7570405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7571405c8079Smrgfi 7572405c8079Smrg 7573405c8079Smrgfound="no" 7574405c8079Smrg 7575405c8079Smrg if test $found = "no" ; then 757680f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7577405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7578405c8079Smrg fi 7579405c8079Smrg 758080f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7581405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7582405c8079Smrg fi 7583405c8079Smrg 7584405c8079Smrg CFLAGS="$CFLAGS -Werror=return-type" 7585405c8079Smrg 7586405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7587405c8079Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 758880f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 7589405c8079Smrg if eval \${$cacheid+:} false; then : 7590405c8079Smrg $as_echo_n "(cached) " >&6 7591405c8079Smrgelse 7592405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593405c8079Smrg/* end confdefs.h. */ 7594405c8079Smrgint i; 7595405c8079Smrgint 7596405c8079Smrgmain () 7597405c8079Smrg{ 7598405c8079Smrg 7599405c8079Smrg ; 7600405c8079Smrg return 0; 7601405c8079Smrg} 7602405c8079Smrg_ACEOF 7603405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7604405c8079Smrg eval $cacheid=yes 7605405c8079Smrgelse 7606405c8079Smrg eval $cacheid=no 7607405c8079Smrgfi 7608405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7609405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7610405c8079Smrgfi 7611405c8079Smrg 7612405c8079Smrg 7613405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7614405c8079Smrg 7615405c8079Smrg eval supported=\$$cacheid 7616405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7617405c8079Smrg$as_echo "$supported" >&6; } 7618405c8079Smrg if test "$supported" = "yes" ; then 7619405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7620405c8079Smrg found="yes" 7621405c8079Smrg fi 7622405c8079Smrg fi 7623405c8079Smrg 7624405c8079Smrg if test $found = "no" ; then 762580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7626405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627405c8079Smrg fi 7628405c8079Smrg 762980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7630405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7631405c8079Smrg fi 7632405c8079Smrg 7633405c8079Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7634405c8079Smrg 7635405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7636405c8079Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 763780f56f3aSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7638405c8079Smrg if eval \${$cacheid+:} false; then : 7639405c8079Smrg $as_echo_n "(cached) " >&6 7640405c8079Smrgelse 7641405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642405c8079Smrg/* end confdefs.h. */ 7643405c8079Smrgint i; 7644405c8079Smrgint 7645405c8079Smrgmain () 7646405c8079Smrg{ 7647405c8079Smrg 7648405c8079Smrg ; 7649405c8079Smrg return 0; 7650405c8079Smrg} 7651405c8079Smrg_ACEOF 7652405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7653405c8079Smrg eval $cacheid=yes 7654405c8079Smrgelse 7655405c8079Smrg eval $cacheid=no 7656405c8079Smrgfi 7657405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7658405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7659405c8079Smrgfi 7660405c8079Smrg 7661405c8079Smrg 7662405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7663405c8079Smrg 7664405c8079Smrg eval supported=\$$cacheid 7665405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7666405c8079Smrg$as_echo "$supported" >&6; } 7667405c8079Smrg if test "$supported" = "yes" ; then 7668405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7669405c8079Smrg found="yes" 7670405c8079Smrg fi 7671405c8079Smrg fi 7672405c8079Smrg 7673405c8079Smrg 7674405c8079Smrg 7675405c8079Smrg 7676405c8079Smrg 7677405c8079Smrg 7678405c8079Smrg 7679405c8079Smrg 7680405c8079Smrg 7681405c8079Smrg 7682405c8079Smrg 7683405c8079Smrg 7684405c8079Smrg 7685405c8079Smrg 7686405c8079Smrg 7687405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7688405c8079Smrg 7689405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7690405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7692405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7693405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7694405c8079Smrg $as_echo_n "(cached) " >&6 7695405c8079Smrgelse 7696405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697405c8079Smrg/* end confdefs.h. */ 7698405c8079Smrgint i; 7699405c8079Smrg_ACEOF 7700405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7701405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7702405c8079Smrgelse 7703405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7704405c8079Smrgfi 7705405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7706405c8079Smrgfi 7707405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7708405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7709405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7710405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7711405c8079Smrgfi 7712405c8079Smrg 7713405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7714405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7715405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716405c8079Smrg fi 7717405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7718405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7719405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7720405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7721405c8079Smrg $as_echo_n "(cached) " >&6 7722405c8079Smrgelse 7723405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724405c8079Smrg/* end confdefs.h. */ 7725405c8079Smrgint i; 7726405c8079Smrg_ACEOF 7727405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7728405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7729405c8079Smrgelse 7730405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7731405c8079Smrgfi 7732405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7733405c8079Smrgfi 7734405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7735405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7736405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7737405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7738405c8079Smrgfi 7739405c8079Smrg 7740405c8079Smrgfound="no" 7741405c8079Smrg 7742405c8079Smrg if test $found = "no" ; then 774380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7744405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7745405c8079Smrg fi 7746405c8079Smrg 774780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7748405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7749405c8079Smrg fi 7750405c8079Smrg 7751405c8079Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 7752405c8079Smrg 7753405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7754405c8079Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 775580f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 7756405c8079Smrg if eval \${$cacheid+:} false; then : 7757405c8079Smrg $as_echo_n "(cached) " >&6 7758405c8079Smrgelse 7759405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760405c8079Smrg/* end confdefs.h. */ 7761405c8079Smrgint i; 7762405c8079Smrgint 7763405c8079Smrgmain () 7764405c8079Smrg{ 7765405c8079Smrg 7766405c8079Smrg ; 7767405c8079Smrg return 0; 7768405c8079Smrg} 7769405c8079Smrg_ACEOF 7770405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7771405c8079Smrg eval $cacheid=yes 7772405c8079Smrgelse 7773405c8079Smrg eval $cacheid=no 7774405c8079Smrgfi 7775405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7776405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7777405c8079Smrgfi 7778405c8079Smrg 7779405c8079Smrg 7780405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7781405c8079Smrg 7782405c8079Smrg eval supported=\$$cacheid 7783405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7784405c8079Smrg$as_echo "$supported" >&6; } 7785405c8079Smrg if test "$supported" = "yes" ; then 7786405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7787405c8079Smrg found="yes" 7788405c8079Smrg fi 7789405c8079Smrg fi 7790405c8079Smrg 7791405c8079Smrg 7792405c8079Smrg 7793405c8079Smrg 7794405c8079Smrg 7795405c8079Smrg 7796405c8079Smrg 7797405c8079Smrg 7798405c8079Smrg 7799405c8079Smrg 7800405c8079Smrg 7801405c8079Smrg 7802405c8079Smrg 7803405c8079Smrg 7804405c8079Smrg 7805405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7806405c8079Smrg 7807405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7808405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7809405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7810405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7811405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7812405c8079Smrg $as_echo_n "(cached) " >&6 7813405c8079Smrgelse 7814405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7815405c8079Smrg/* end confdefs.h. */ 7816405c8079Smrgint i; 7817405c8079Smrg_ACEOF 7818405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7819405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7820405c8079Smrgelse 7821405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7822405c8079Smrgfi 7823405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7824405c8079Smrgfi 7825405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7826405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7827405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7828405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7829405c8079Smrgfi 7830405c8079Smrg 7831405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7832405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7833405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7834405c8079Smrg fi 7835405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7836405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7837405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7838405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7839405c8079Smrg $as_echo_n "(cached) " >&6 7840405c8079Smrgelse 7841405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842405c8079Smrg/* end confdefs.h. */ 7843405c8079Smrgint i; 7844405c8079Smrg_ACEOF 7845405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7846405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7847405c8079Smrgelse 7848405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7849405c8079Smrgfi 7850405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7851405c8079Smrgfi 7852405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7853405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7854405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7855405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7856405c8079Smrgfi 7857405c8079Smrg 7858405c8079Smrgfound="no" 7859405c8079Smrg 7860405c8079Smrg if test $found = "no" ; then 786180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7862405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7863405c8079Smrg fi 7864405c8079Smrg 786580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7866405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7867405c8079Smrg fi 7868405c8079Smrg 7869405c8079Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 7870405c8079Smrg 7871405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7872405c8079Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 787380f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 7874405c8079Smrg if eval \${$cacheid+:} false; then : 7875405c8079Smrg $as_echo_n "(cached) " >&6 7876405c8079Smrgelse 7877405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878405c8079Smrg/* end confdefs.h. */ 7879405c8079Smrgint i; 7880405c8079Smrgint 7881405c8079Smrgmain () 7882405c8079Smrg{ 7883405c8079Smrg 7884405c8079Smrg ; 7885405c8079Smrg return 0; 7886405c8079Smrg} 7887405c8079Smrg_ACEOF 7888405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 7889405c8079Smrg eval $cacheid=yes 7890405c8079Smrgelse 7891405c8079Smrg eval $cacheid=no 7892405c8079Smrgfi 7893405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 7894405c8079Smrg conftest$ac_exeext conftest.$ac_ext 7895405c8079Smrgfi 7896405c8079Smrg 7897405c8079Smrg 7898405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7899405c8079Smrg 7900405c8079Smrg eval supported=\$$cacheid 7901405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7902405c8079Smrg$as_echo "$supported" >&6; } 7903405c8079Smrg if test "$supported" = "yes" ; then 7904405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7905405c8079Smrg found="yes" 7906405c8079Smrg fi 7907405c8079Smrg fi 7908405c8079Smrg 7909405c8079Smrg 7910405c8079Smrg 7911405c8079Smrg 7912405c8079Smrg 7913405c8079Smrg 7914405c8079Smrg 7915405c8079Smrg 7916405c8079Smrg 7917405c8079Smrg 7918405c8079Smrg 7919405c8079Smrg 7920405c8079Smrg 7921405c8079Smrg 7922405c8079Smrg 7923405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7924405c8079Smrg 7925405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7926405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7927405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7928405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7929405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7930405c8079Smrg $as_echo_n "(cached) " >&6 7931405c8079Smrgelse 7932405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933405c8079Smrg/* end confdefs.h. */ 7934405c8079Smrgint i; 7935405c8079Smrg_ACEOF 7936405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7937405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7938405c8079Smrgelse 7939405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 7940405c8079Smrgfi 7941405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7942405c8079Smrgfi 7943405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7944405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7945405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7946405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7947405c8079Smrgfi 7948405c8079Smrg 7949405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7950405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7951405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7952405c8079Smrg fi 7953405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7954405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7955405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7956405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7957405c8079Smrg $as_echo_n "(cached) " >&6 7958405c8079Smrgelse 7959405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960405c8079Smrg/* end confdefs.h. */ 7961405c8079Smrgint i; 7962405c8079Smrg_ACEOF 7963405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 7964405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7965405c8079Smrgelse 7966405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7967405c8079Smrgfi 7968405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7969405c8079Smrgfi 7970405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7971405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7972405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7973405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7974405c8079Smrgfi 7975405c8079Smrg 7976405c8079Smrgfound="no" 7977405c8079Smrg 7978405c8079Smrg if test $found = "no" ; then 797980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7980405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981405c8079Smrg fi 7982405c8079Smrg 798380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7984405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7985405c8079Smrg fi 7986405c8079Smrg 7987405c8079Smrg CFLAGS="$CFLAGS -Werror=write-strings" 7988405c8079Smrg 7989405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7990405c8079Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 799180f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 7992405c8079Smrg if eval \${$cacheid+:} false; then : 7993405c8079Smrg $as_echo_n "(cached) " >&6 7994405c8079Smrgelse 7995405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996405c8079Smrg/* end confdefs.h. */ 7997405c8079Smrgint i; 7998405c8079Smrgint 7999405c8079Smrgmain () 8000405c8079Smrg{ 8001405c8079Smrg 8002405c8079Smrg ; 8003405c8079Smrg return 0; 8004405c8079Smrg} 8005405c8079Smrg_ACEOF 8006405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8007405c8079Smrg eval $cacheid=yes 8008405c8079Smrgelse 8009405c8079Smrg eval $cacheid=no 8010405c8079Smrgfi 8011405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8012405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8013405c8079Smrgfi 8014405c8079Smrg 8015405c8079Smrg 8016405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8017405c8079Smrg 8018405c8079Smrg eval supported=\$$cacheid 8019405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8020405c8079Smrg$as_echo "$supported" >&6; } 8021405c8079Smrg if test "$supported" = "yes" ; then 8022405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8023405c8079Smrg found="yes" 8024405c8079Smrg fi 8025405c8079Smrg fi 8026405c8079Smrg 8027405c8079Smrg 8028405c8079Smrg 8029405c8079Smrg 8030405c8079Smrg 8031405c8079Smrg 8032405c8079Smrg 8033405c8079Smrg 8034405c8079Smrg 8035405c8079Smrg 8036405c8079Smrg 8037405c8079Smrg 8038405c8079Smrg 8039405c8079Smrg 8040405c8079Smrg 8041405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8042405c8079Smrg 8043405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8044405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8045405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8046405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8047405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8048405c8079Smrg $as_echo_n "(cached) " >&6 8049405c8079Smrgelse 8050405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051405c8079Smrg/* end confdefs.h. */ 8052405c8079Smrgint i; 8053405c8079Smrg_ACEOF 8054405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8055405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8056405c8079Smrgelse 8057405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8058405c8079Smrgfi 8059405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8060405c8079Smrgfi 8061405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8062405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8063405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8064405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8065405c8079Smrgfi 8066405c8079Smrg 8067405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8068405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8069405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8070405c8079Smrg fi 8071405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8072405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8073405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8074405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8075405c8079Smrg $as_echo_n "(cached) " >&6 8076405c8079Smrgelse 8077405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078405c8079Smrg/* end confdefs.h. */ 8079405c8079Smrgint i; 8080405c8079Smrg_ACEOF 8081405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8082405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8083405c8079Smrgelse 8084405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8085405c8079Smrgfi 8086405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8087405c8079Smrgfi 8088405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8089405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8090405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8091405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8092405c8079Smrgfi 8093405c8079Smrg 8094405c8079Smrgfound="no" 8095405c8079Smrg 8096405c8079Smrg if test $found = "no" ; then 809780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099405c8079Smrg fi 8100405c8079Smrg 810180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8102405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8103405c8079Smrg fi 8104405c8079Smrg 8105405c8079Smrg CFLAGS="$CFLAGS -Werror=address" 8106405c8079Smrg 8107405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8108405c8079Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 810980f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_address 8110405c8079Smrg if eval \${$cacheid+:} false; then : 8111405c8079Smrg $as_echo_n "(cached) " >&6 8112405c8079Smrgelse 8113405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8114405c8079Smrg/* end confdefs.h. */ 8115405c8079Smrgint i; 8116405c8079Smrgint 8117405c8079Smrgmain () 8118405c8079Smrg{ 8119405c8079Smrg 8120405c8079Smrg ; 8121405c8079Smrg return 0; 8122405c8079Smrg} 8123405c8079Smrg_ACEOF 8124405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8125405c8079Smrg eval $cacheid=yes 8126405c8079Smrgelse 8127405c8079Smrg eval $cacheid=no 8128405c8079Smrgfi 8129405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8130405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8131405c8079Smrgfi 8132405c8079Smrg 8133405c8079Smrg 8134405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8135405c8079Smrg 8136405c8079Smrg eval supported=\$$cacheid 8137405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8138405c8079Smrg$as_echo "$supported" >&6; } 8139405c8079Smrg if test "$supported" = "yes" ; then 8140405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8141405c8079Smrg found="yes" 8142405c8079Smrg fi 8143405c8079Smrg fi 8144405c8079Smrg 8145405c8079Smrg 8146405c8079Smrg 8147405c8079Smrg 8148405c8079Smrg 8149405c8079Smrg 8150405c8079Smrg 8151405c8079Smrg 8152405c8079Smrg 8153405c8079Smrg 8154405c8079Smrg 8155405c8079Smrg 8156405c8079Smrg 8157405c8079Smrg 8158405c8079Smrg 8159405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8160405c8079Smrg 8161405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8162405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8163405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8164405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8165405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8166405c8079Smrg $as_echo_n "(cached) " >&6 8167405c8079Smrgelse 8168405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169405c8079Smrg/* end confdefs.h. */ 8170405c8079Smrgint i; 8171405c8079Smrg_ACEOF 8172405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8173405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8174405c8079Smrgelse 8175405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8176405c8079Smrgfi 8177405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8178405c8079Smrgfi 8179405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8180405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8181405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8182405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8183405c8079Smrgfi 8184405c8079Smrg 8185405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8186405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8187405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8188405c8079Smrg fi 8189405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8190405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8191405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8192405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8193405c8079Smrg $as_echo_n "(cached) " >&6 8194405c8079Smrgelse 8195405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8196405c8079Smrg/* end confdefs.h. */ 8197405c8079Smrgint i; 8198405c8079Smrg_ACEOF 8199405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8200405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8201405c8079Smrgelse 8202405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8203405c8079Smrgfi 8204405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8205405c8079Smrgfi 8206405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8207405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8208405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8209405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8210405c8079Smrgfi 8211405c8079Smrg 8212405c8079Smrgfound="no" 8213405c8079Smrg 8214405c8079Smrg if test $found = "no" ; then 821580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8216405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8217405c8079Smrg fi 8218405c8079Smrg 821980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8220405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8221405c8079Smrg fi 8222405c8079Smrg 8223405c8079Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8224405c8079Smrg 8225405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8226405c8079Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 822780f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8228405c8079Smrg if eval \${$cacheid+:} false; then : 8229405c8079Smrg $as_echo_n "(cached) " >&6 8230405c8079Smrgelse 8231405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8232405c8079Smrg/* end confdefs.h. */ 8233405c8079Smrgint i; 8234405c8079Smrgint 8235405c8079Smrgmain () 8236405c8079Smrg{ 8237405c8079Smrg 8238405c8079Smrg ; 8239405c8079Smrg return 0; 8240405c8079Smrg} 8241405c8079Smrg_ACEOF 8242405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8243405c8079Smrg eval $cacheid=yes 8244405c8079Smrgelse 8245405c8079Smrg eval $cacheid=no 8246405c8079Smrgfi 8247405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8248405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8249405c8079Smrgfi 8250405c8079Smrg 8251405c8079Smrg 8252405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8253405c8079Smrg 8254405c8079Smrg eval supported=\$$cacheid 8255405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8256405c8079Smrg$as_echo "$supported" >&6; } 8257405c8079Smrg if test "$supported" = "yes" ; then 8258405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8259405c8079Smrg found="yes" 8260405c8079Smrg fi 8261405c8079Smrg fi 8262405c8079Smrg 8263405c8079Smrg if test $found = "no" ; then 826480f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8265405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266405c8079Smrg fi 8267405c8079Smrg 826880f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8269405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8270405c8079Smrg fi 8271405c8079Smrg 8272405c8079Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8273405c8079Smrg 8274405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8275405c8079Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 827680f56f3aSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8277405c8079Smrg if eval \${$cacheid+:} false; then : 8278405c8079Smrg $as_echo_n "(cached) " >&6 8279405c8079Smrgelse 8280405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281405c8079Smrg/* end confdefs.h. */ 8282405c8079Smrgint i; 8283405c8079Smrgint 8284405c8079Smrgmain () 8285405c8079Smrg{ 8286405c8079Smrg 8287405c8079Smrg ; 8288405c8079Smrg return 0; 8289405c8079Smrg} 8290405c8079Smrg_ACEOF 8291405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8292405c8079Smrg eval $cacheid=yes 8293405c8079Smrgelse 8294405c8079Smrg eval $cacheid=no 8295405c8079Smrgfi 8296405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8297405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8298405c8079Smrgfi 8299405c8079Smrg 8300405c8079Smrg 8301405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8302405c8079Smrg 8303405c8079Smrg eval supported=\$$cacheid 8304405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8305405c8079Smrg$as_echo "$supported" >&6; } 8306405c8079Smrg if test "$supported" = "yes" ; then 8307405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8308405c8079Smrg found="yes" 8309405c8079Smrg fi 8310405c8079Smrg fi 8311405c8079Smrg 8312405c8079Smrg 8313405c8079Smrg 8314405c8079Smrg 8315405c8079Smrg 8316405c8079Smrg 8317405c8079Smrg 8318405c8079Smrg 8319405c8079Smrg 8320405c8079Smrg 8321405c8079Smrg 8322405c8079Smrg 8323405c8079Smrg 8324405c8079Smrg 8325405c8079Smrg 8326405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8327405c8079Smrg 8328405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8329405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8330405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8331405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8332405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8333405c8079Smrg $as_echo_n "(cached) " >&6 8334405c8079Smrgelse 8335405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336405c8079Smrg/* end confdefs.h. */ 8337405c8079Smrgint i; 8338405c8079Smrg_ACEOF 8339405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8340405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8341405c8079Smrgelse 8342405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8343405c8079Smrgfi 8344405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8345405c8079Smrgfi 8346405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8347405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8348405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8349405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8350405c8079Smrgfi 8351405c8079Smrg 8352405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8353405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8354405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355405c8079Smrg fi 8356405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8357405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8358405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8359405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8360405c8079Smrg $as_echo_n "(cached) " >&6 8361405c8079Smrgelse 8362405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363405c8079Smrg/* end confdefs.h. */ 8364405c8079Smrgint i; 8365405c8079Smrg_ACEOF 8366405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8367405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8368405c8079Smrgelse 8369405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8370405c8079Smrgfi 8371405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8372405c8079Smrgfi 8373405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8374405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8375405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8376405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8377405c8079Smrgfi 8378405c8079Smrg 8379405c8079Smrgfound="no" 8380405c8079Smrg 8381405c8079Smrg if test $found = "no" ; then 838280f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8383405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8384405c8079Smrg fi 8385405c8079Smrg 838680f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8387405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8388405c8079Smrg fi 8389405c8079Smrg 8390405c8079Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8391405c8079Smrg 8392405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8393405c8079Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 839480f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8395405c8079Smrg if eval \${$cacheid+:} false; then : 8396405c8079Smrg $as_echo_n "(cached) " >&6 8397405c8079Smrgelse 8398405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8399405c8079Smrg/* end confdefs.h. */ 8400405c8079Smrgint i; 8401405c8079Smrgint 8402405c8079Smrgmain () 8403405c8079Smrg{ 8404405c8079Smrg 8405405c8079Smrg ; 8406405c8079Smrg return 0; 8407405c8079Smrg} 8408405c8079Smrg_ACEOF 8409405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8410405c8079Smrg eval $cacheid=yes 8411405c8079Smrgelse 8412405c8079Smrg eval $cacheid=no 8413405c8079Smrgfi 8414405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8415405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8416405c8079Smrgfi 8417405c8079Smrg 8418405c8079Smrg 8419405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8420405c8079Smrg 8421405c8079Smrg eval supported=\$$cacheid 8422405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8423405c8079Smrg$as_echo "$supported" >&6; } 8424405c8079Smrg if test "$supported" = "yes" ; then 8425405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8426405c8079Smrg found="yes" 8427405c8079Smrg fi 8428405c8079Smrg fi 8429405c8079Smrg 8430405c8079Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8431405c8079Smrgelse 8432405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8433405c8079Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8434405c8079Smrg 8435405c8079Smrg 8436405c8079Smrg 8437405c8079Smrg 8438405c8079Smrg 8439405c8079Smrg 8440405c8079Smrg 8441405c8079Smrg 8442405c8079Smrg 8443405c8079Smrg 8444405c8079Smrg 8445405c8079Smrg 8446405c8079Smrg 8447405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8448405c8079Smrg 8449405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8450405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8451405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8452405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8453405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8454405c8079Smrg $as_echo_n "(cached) " >&6 8455405c8079Smrgelse 8456405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457405c8079Smrg/* end confdefs.h. */ 8458405c8079Smrgint i; 8459405c8079Smrg_ACEOF 8460405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8461405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8462405c8079Smrgelse 8463405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8464405c8079Smrgfi 8465405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8466405c8079Smrgfi 8467405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8468405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8469405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8470405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8471405c8079Smrgfi 8472405c8079Smrg 8473405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8474405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8475405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8476405c8079Smrg fi 8477405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8479405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8480405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8481405c8079Smrg $as_echo_n "(cached) " >&6 8482405c8079Smrgelse 8483405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484405c8079Smrg/* end confdefs.h. */ 8485405c8079Smrgint i; 8486405c8079Smrg_ACEOF 8487405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8488405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8489405c8079Smrgelse 8490405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8491405c8079Smrgfi 8492405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8493405c8079Smrgfi 8494405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8495405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8496405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8497405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8498405c8079Smrgfi 8499405c8079Smrg 8500405c8079Smrgfound="no" 8501405c8079Smrg 8502405c8079Smrg if test $found = "no" ; then 850380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8504405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8505405c8079Smrg fi 8506405c8079Smrg 850780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8508405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8509405c8079Smrg fi 8510405c8079Smrg 8511405c8079Smrg CFLAGS="$CFLAGS -Wimplicit" 8512405c8079Smrg 8513405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8514405c8079Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8515405c8079Smrg cacheid=xorg_cv_cc_flag__Wimplicit 8516405c8079Smrg if eval \${$cacheid+:} false; then : 8517405c8079Smrg $as_echo_n "(cached) " >&6 8518405c8079Smrgelse 8519405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520405c8079Smrg/* end confdefs.h. */ 8521405c8079Smrgint i; 8522405c8079Smrgint 8523405c8079Smrgmain () 8524405c8079Smrg{ 8525405c8079Smrg 8526405c8079Smrg ; 8527405c8079Smrg return 0; 8528405c8079Smrg} 8529405c8079Smrg_ACEOF 8530405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8531405c8079Smrg eval $cacheid=yes 8532405c8079Smrgelse 8533405c8079Smrg eval $cacheid=no 8534405c8079Smrgfi 8535405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8536405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8537405c8079Smrgfi 8538405c8079Smrg 8539405c8079Smrg 8540405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8541405c8079Smrg 8542405c8079Smrg eval supported=\$$cacheid 8543405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8544405c8079Smrg$as_echo "$supported" >&6; } 8545405c8079Smrg if test "$supported" = "yes" ; then 8546405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8547405c8079Smrg found="yes" 8548405c8079Smrg fi 8549405c8079Smrg fi 8550405c8079Smrg 8551405c8079Smrg 8552405c8079Smrg 8553405c8079Smrg 8554405c8079Smrg 8555405c8079Smrg 8556405c8079Smrg 8557405c8079Smrg 8558405c8079Smrg 8559405c8079Smrg 8560405c8079Smrg 8561405c8079Smrg 8562405c8079Smrg 8563405c8079Smrg 8564405c8079Smrg 8565405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8566405c8079Smrg 8567405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8568405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8570405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8571405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8572405c8079Smrg $as_echo_n "(cached) " >&6 8573405c8079Smrgelse 8574405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8575405c8079Smrg/* end confdefs.h. */ 8576405c8079Smrgint i; 8577405c8079Smrg_ACEOF 8578405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8579405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8580405c8079Smrgelse 8581405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8582405c8079Smrgfi 8583405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8584405c8079Smrgfi 8585405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8586405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8587405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8588405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8589405c8079Smrgfi 8590405c8079Smrg 8591405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8592405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8593405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8594405c8079Smrg fi 8595405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8597405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8598405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8599405c8079Smrg $as_echo_n "(cached) " >&6 8600405c8079Smrgelse 8601405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8602405c8079Smrg/* end confdefs.h. */ 8603405c8079Smrgint i; 8604405c8079Smrg_ACEOF 8605405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8606405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8607405c8079Smrgelse 8608405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8609405c8079Smrgfi 8610405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8611405c8079Smrgfi 8612405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8613405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8614405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8615405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8616405c8079Smrgfi 8617405c8079Smrg 8618405c8079Smrgfound="no" 8619405c8079Smrg 8620405c8079Smrg if test $found = "no" ; then 862180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8622405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8623405c8079Smrg fi 8624405c8079Smrg 862580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8626405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8627405c8079Smrg fi 8628405c8079Smrg 8629405c8079Smrg CFLAGS="$CFLAGS -Wnonnull" 8630405c8079Smrg 8631405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8632405c8079Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8633405c8079Smrg cacheid=xorg_cv_cc_flag__Wnonnull 8634405c8079Smrg if eval \${$cacheid+:} false; then : 8635405c8079Smrg $as_echo_n "(cached) " >&6 8636405c8079Smrgelse 8637405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638405c8079Smrg/* end confdefs.h. */ 8639405c8079Smrgint i; 8640405c8079Smrgint 8641405c8079Smrgmain () 8642405c8079Smrg{ 8643405c8079Smrg 8644405c8079Smrg ; 8645405c8079Smrg return 0; 8646405c8079Smrg} 8647405c8079Smrg_ACEOF 8648405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8649405c8079Smrg eval $cacheid=yes 8650405c8079Smrgelse 8651405c8079Smrg eval $cacheid=no 8652405c8079Smrgfi 8653405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8654405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8655405c8079Smrgfi 8656405c8079Smrg 8657405c8079Smrg 8658405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8659405c8079Smrg 8660405c8079Smrg eval supported=\$$cacheid 8661405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8662405c8079Smrg$as_echo "$supported" >&6; } 8663405c8079Smrg if test "$supported" = "yes" ; then 8664405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8665405c8079Smrg found="yes" 8666405c8079Smrg fi 8667405c8079Smrg fi 8668405c8079Smrg 8669405c8079Smrg 8670405c8079Smrg 8671405c8079Smrg 8672405c8079Smrg 8673405c8079Smrg 8674405c8079Smrg 8675405c8079Smrg 8676405c8079Smrg 8677405c8079Smrg 8678405c8079Smrg 8679405c8079Smrg 8680405c8079Smrg 8681405c8079Smrg 8682405c8079Smrg 8683405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8684405c8079Smrg 8685405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8686405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8687405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8688405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8689405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8690405c8079Smrg $as_echo_n "(cached) " >&6 8691405c8079Smrgelse 8692405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693405c8079Smrg/* end confdefs.h. */ 8694405c8079Smrgint i; 8695405c8079Smrg_ACEOF 8696405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8697405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8698405c8079Smrgelse 8699405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8700405c8079Smrgfi 8701405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8702405c8079Smrgfi 8703405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8704405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8705405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8706405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8707405c8079Smrgfi 8708405c8079Smrg 8709405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8710405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8711405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712405c8079Smrg fi 8713405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8715405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8716405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8717405c8079Smrg $as_echo_n "(cached) " >&6 8718405c8079Smrgelse 8719405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720405c8079Smrg/* end confdefs.h. */ 8721405c8079Smrgint i; 8722405c8079Smrg_ACEOF 8723405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8724405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8725405c8079Smrgelse 8726405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8727405c8079Smrgfi 8728405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8729405c8079Smrgfi 8730405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8731405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8732405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8733405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8734405c8079Smrgfi 8735405c8079Smrg 8736405c8079Smrgfound="no" 8737405c8079Smrg 8738405c8079Smrg if test $found = "no" ; then 873980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8740405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8741405c8079Smrg fi 8742405c8079Smrg 874380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8744405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8745405c8079Smrg fi 8746405c8079Smrg 8747405c8079Smrg CFLAGS="$CFLAGS -Winit-self" 8748405c8079Smrg 8749405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8750405c8079Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8751405c8079Smrg cacheid=xorg_cv_cc_flag__Winit_self 8752405c8079Smrg if eval \${$cacheid+:} false; then : 8753405c8079Smrg $as_echo_n "(cached) " >&6 8754405c8079Smrgelse 8755405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756405c8079Smrg/* end confdefs.h. */ 8757405c8079Smrgint i; 8758405c8079Smrgint 8759405c8079Smrgmain () 8760405c8079Smrg{ 8761405c8079Smrg 8762405c8079Smrg ; 8763405c8079Smrg return 0; 8764405c8079Smrg} 8765405c8079Smrg_ACEOF 8766405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8767405c8079Smrg eval $cacheid=yes 8768405c8079Smrgelse 8769405c8079Smrg eval $cacheid=no 8770405c8079Smrgfi 8771405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8772405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8773405c8079Smrgfi 8774405c8079Smrg 8775405c8079Smrg 8776405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8777405c8079Smrg 8778405c8079Smrg eval supported=\$$cacheid 8779405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8780405c8079Smrg$as_echo "$supported" >&6; } 8781405c8079Smrg if test "$supported" = "yes" ; then 8782405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8783405c8079Smrg found="yes" 8784405c8079Smrg fi 8785405c8079Smrg fi 8786405c8079Smrg 8787405c8079Smrg 8788405c8079Smrg 8789405c8079Smrg 8790405c8079Smrg 8791405c8079Smrg 8792405c8079Smrg 8793405c8079Smrg 8794405c8079Smrg 8795405c8079Smrg 8796405c8079Smrg 8797405c8079Smrg 8798405c8079Smrg 8799405c8079Smrg 8800405c8079Smrg 8801405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8802405c8079Smrg 8803405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8804405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8805405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8806405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8807405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8808405c8079Smrg $as_echo_n "(cached) " >&6 8809405c8079Smrgelse 8810405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8811405c8079Smrg/* end confdefs.h. */ 8812405c8079Smrgint i; 8813405c8079Smrg_ACEOF 8814405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8815405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8816405c8079Smrgelse 8817405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8818405c8079Smrgfi 8819405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8820405c8079Smrgfi 8821405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8822405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8823405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8824405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8825405c8079Smrgfi 8826405c8079Smrg 8827405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8828405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8829405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8830405c8079Smrg fi 8831405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8832405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8833405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8834405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8835405c8079Smrg $as_echo_n "(cached) " >&6 8836405c8079Smrgelse 8837405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838405c8079Smrg/* end confdefs.h. */ 8839405c8079Smrgint i; 8840405c8079Smrg_ACEOF 8841405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8842405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8843405c8079Smrgelse 8844405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8845405c8079Smrgfi 8846405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8847405c8079Smrgfi 8848405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8849405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8850405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8851405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8852405c8079Smrgfi 8853405c8079Smrg 8854405c8079Smrgfound="no" 8855405c8079Smrg 8856405c8079Smrg if test $found = "no" ; then 885780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8858405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8859405c8079Smrg fi 8860405c8079Smrg 886180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8862405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8863405c8079Smrg fi 8864405c8079Smrg 8865405c8079Smrg CFLAGS="$CFLAGS -Wmain" 8866405c8079Smrg 8867405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8868405c8079Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8869405c8079Smrg cacheid=xorg_cv_cc_flag__Wmain 8870405c8079Smrg if eval \${$cacheid+:} false; then : 8871405c8079Smrg $as_echo_n "(cached) " >&6 8872405c8079Smrgelse 8873405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874405c8079Smrg/* end confdefs.h. */ 8875405c8079Smrgint i; 8876405c8079Smrgint 8877405c8079Smrgmain () 8878405c8079Smrg{ 8879405c8079Smrg 8880405c8079Smrg ; 8881405c8079Smrg return 0; 8882405c8079Smrg} 8883405c8079Smrg_ACEOF 8884405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 8885405c8079Smrg eval $cacheid=yes 8886405c8079Smrgelse 8887405c8079Smrg eval $cacheid=no 8888405c8079Smrgfi 8889405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 8890405c8079Smrg conftest$ac_exeext conftest.$ac_ext 8891405c8079Smrgfi 8892405c8079Smrg 8893405c8079Smrg 8894405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8895405c8079Smrg 8896405c8079Smrg eval supported=\$$cacheid 8897405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8898405c8079Smrg$as_echo "$supported" >&6; } 8899405c8079Smrg if test "$supported" = "yes" ; then 8900405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8901405c8079Smrg found="yes" 8902405c8079Smrg fi 8903405c8079Smrg fi 8904405c8079Smrg 8905405c8079Smrg 8906405c8079Smrg 8907405c8079Smrg 8908405c8079Smrg 8909405c8079Smrg 8910405c8079Smrg 8911405c8079Smrg 8912405c8079Smrg 8913405c8079Smrg 8914405c8079Smrg 8915405c8079Smrg 8916405c8079Smrg 8917405c8079Smrg 8918405c8079Smrg 8919405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8920405c8079Smrg 8921405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8922405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8923405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8924405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8925405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8926405c8079Smrg $as_echo_n "(cached) " >&6 8927405c8079Smrgelse 8928405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8929405c8079Smrg/* end confdefs.h. */ 8930405c8079Smrgint i; 8931405c8079Smrg_ACEOF 8932405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8933405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8934405c8079Smrgelse 8935405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 8936405c8079Smrgfi 8937405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8938405c8079Smrgfi 8939405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8940405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8941405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8942405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8943405c8079Smrgfi 8944405c8079Smrg 8945405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8946405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8947405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8948405c8079Smrg fi 8949405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8950405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8951405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8952405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8953405c8079Smrg $as_echo_n "(cached) " >&6 8954405c8079Smrgelse 8955405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8956405c8079Smrg/* end confdefs.h. */ 8957405c8079Smrgint i; 8958405c8079Smrg_ACEOF 8959405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 8960405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8961405c8079Smrgelse 8962405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8963405c8079Smrgfi 8964405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8965405c8079Smrgfi 8966405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8967405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8968405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8969405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8970405c8079Smrgfi 8971405c8079Smrg 8972405c8079Smrgfound="no" 8973405c8079Smrg 8974405c8079Smrg if test $found = "no" ; then 897580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8976405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977405c8079Smrg fi 8978405c8079Smrg 897980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8980405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8981405c8079Smrg fi 8982405c8079Smrg 8983405c8079Smrg CFLAGS="$CFLAGS -Wmissing-braces" 8984405c8079Smrg 8985405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8986405c8079Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8987405c8079Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 8988405c8079Smrg if eval \${$cacheid+:} false; then : 8989405c8079Smrg $as_echo_n "(cached) " >&6 8990405c8079Smrgelse 8991405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8992405c8079Smrg/* end confdefs.h. */ 8993405c8079Smrgint i; 8994405c8079Smrgint 8995405c8079Smrgmain () 8996405c8079Smrg{ 8997405c8079Smrg 8998405c8079Smrg ; 8999405c8079Smrg return 0; 9000405c8079Smrg} 9001405c8079Smrg_ACEOF 9002405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9003405c8079Smrg eval $cacheid=yes 9004405c8079Smrgelse 9005405c8079Smrg eval $cacheid=no 9006405c8079Smrgfi 9007405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9008405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9009405c8079Smrgfi 9010405c8079Smrg 9011405c8079Smrg 9012405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9013405c8079Smrg 9014405c8079Smrg eval supported=\$$cacheid 9015405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9016405c8079Smrg$as_echo "$supported" >&6; } 9017405c8079Smrg if test "$supported" = "yes" ; then 9018405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9019405c8079Smrg found="yes" 9020405c8079Smrg fi 9021405c8079Smrg fi 9022405c8079Smrg 9023405c8079Smrg 9024405c8079Smrg 9025405c8079Smrg 9026405c8079Smrg 9027405c8079Smrg 9028405c8079Smrg 9029405c8079Smrg 9030405c8079Smrg 9031405c8079Smrg 9032405c8079Smrg 9033405c8079Smrg 9034405c8079Smrg 9035405c8079Smrg 9036405c8079Smrg 9037405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9038405c8079Smrg 9039405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9040405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9041405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9042405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9043405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9044405c8079Smrg $as_echo_n "(cached) " >&6 9045405c8079Smrgelse 9046405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047405c8079Smrg/* end confdefs.h. */ 9048405c8079Smrgint i; 9049405c8079Smrg_ACEOF 9050405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9051405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9052405c8079Smrgelse 9053405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9054405c8079Smrgfi 9055405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9056405c8079Smrgfi 9057405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9058405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9059405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9060405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9061405c8079Smrgfi 9062405c8079Smrg 9063405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9064405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9065405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9066405c8079Smrg fi 9067405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9068405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9069405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9070405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9071405c8079Smrg $as_echo_n "(cached) " >&6 9072405c8079Smrgelse 9073405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074405c8079Smrg/* end confdefs.h. */ 9075405c8079Smrgint i; 9076405c8079Smrg_ACEOF 9077405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9078405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9079405c8079Smrgelse 9080405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9081405c8079Smrgfi 9082405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9083405c8079Smrgfi 9084405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9085405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9086405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9087405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9088405c8079Smrgfi 9089405c8079Smrg 9090405c8079Smrgfound="no" 9091405c8079Smrg 9092405c8079Smrg if test $found = "no" ; then 909380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9094405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095405c8079Smrg fi 9096405c8079Smrg 909780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9098405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9099405c8079Smrg fi 9100405c8079Smrg 9101405c8079Smrg CFLAGS="$CFLAGS -Wsequence-point" 9102405c8079Smrg 9103405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9104405c8079Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9105405c8079Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9106405c8079Smrg if eval \${$cacheid+:} false; then : 9107405c8079Smrg $as_echo_n "(cached) " >&6 9108405c8079Smrgelse 9109405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110405c8079Smrg/* end confdefs.h. */ 9111405c8079Smrgint i; 9112405c8079Smrgint 9113405c8079Smrgmain () 9114405c8079Smrg{ 9115405c8079Smrg 9116405c8079Smrg ; 9117405c8079Smrg return 0; 9118405c8079Smrg} 9119405c8079Smrg_ACEOF 9120405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9121405c8079Smrg eval $cacheid=yes 9122405c8079Smrgelse 9123405c8079Smrg eval $cacheid=no 9124405c8079Smrgfi 9125405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9126405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9127405c8079Smrgfi 9128405c8079Smrg 9129405c8079Smrg 9130405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9131405c8079Smrg 9132405c8079Smrg eval supported=\$$cacheid 9133405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9134405c8079Smrg$as_echo "$supported" >&6; } 9135405c8079Smrg if test "$supported" = "yes" ; then 9136405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9137405c8079Smrg found="yes" 9138405c8079Smrg fi 9139405c8079Smrg fi 9140405c8079Smrg 9141405c8079Smrg 9142405c8079Smrg 9143405c8079Smrg 9144405c8079Smrg 9145405c8079Smrg 9146405c8079Smrg 9147405c8079Smrg 9148405c8079Smrg 9149405c8079Smrg 9150405c8079Smrg 9151405c8079Smrg 9152405c8079Smrg 9153405c8079Smrg 9154405c8079Smrg 9155405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9156405c8079Smrg 9157405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9158405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9159405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9160405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9161405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9162405c8079Smrg $as_echo_n "(cached) " >&6 9163405c8079Smrgelse 9164405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9165405c8079Smrg/* end confdefs.h. */ 9166405c8079Smrgint i; 9167405c8079Smrg_ACEOF 9168405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9169405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9170405c8079Smrgelse 9171405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9172405c8079Smrgfi 9173405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174405c8079Smrgfi 9175405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9176405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9177405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9178405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9179405c8079Smrgfi 9180405c8079Smrg 9181405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9182405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9183405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9184405c8079Smrg fi 9185405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9187405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9188405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9189405c8079Smrg $as_echo_n "(cached) " >&6 9190405c8079Smrgelse 9191405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192405c8079Smrg/* end confdefs.h. */ 9193405c8079Smrgint i; 9194405c8079Smrg_ACEOF 9195405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9196405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9197405c8079Smrgelse 9198405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9199405c8079Smrgfi 9200405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9201405c8079Smrgfi 9202405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9203405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9204405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9205405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9206405c8079Smrgfi 9207405c8079Smrg 9208405c8079Smrgfound="no" 9209405c8079Smrg 9210405c8079Smrg if test $found = "no" ; then 921180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9212405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9213405c8079Smrg fi 9214405c8079Smrg 921580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9216405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9217405c8079Smrg fi 9218405c8079Smrg 9219405c8079Smrg CFLAGS="$CFLAGS -Wreturn-type" 9220405c8079Smrg 9221405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9222405c8079Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9223405c8079Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9224405c8079Smrg if eval \${$cacheid+:} false; then : 9225405c8079Smrg $as_echo_n "(cached) " >&6 9226405c8079Smrgelse 9227405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228405c8079Smrg/* end confdefs.h. */ 9229405c8079Smrgint i; 9230405c8079Smrgint 9231405c8079Smrgmain () 9232405c8079Smrg{ 9233405c8079Smrg 9234405c8079Smrg ; 9235405c8079Smrg return 0; 9236405c8079Smrg} 9237405c8079Smrg_ACEOF 9238405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9239405c8079Smrg eval $cacheid=yes 9240405c8079Smrgelse 9241405c8079Smrg eval $cacheid=no 9242405c8079Smrgfi 9243405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9244405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9245405c8079Smrgfi 9246405c8079Smrg 9247405c8079Smrg 9248405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9249405c8079Smrg 9250405c8079Smrg eval supported=\$$cacheid 9251405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9252405c8079Smrg$as_echo "$supported" >&6; } 9253405c8079Smrg if test "$supported" = "yes" ; then 9254405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9255405c8079Smrg found="yes" 9256405c8079Smrg fi 9257405c8079Smrg fi 9258405c8079Smrg 9259405c8079Smrg 9260405c8079Smrg 9261405c8079Smrg 9262405c8079Smrg 9263405c8079Smrg 9264405c8079Smrg 9265405c8079Smrg 9266405c8079Smrg 9267405c8079Smrg 9268405c8079Smrg 9269405c8079Smrg 9270405c8079Smrg 9271405c8079Smrg 9272405c8079Smrg 9273405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9274405c8079Smrg 9275405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9276405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9277405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9278405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9279405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9280405c8079Smrg $as_echo_n "(cached) " >&6 9281405c8079Smrgelse 9282405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9283405c8079Smrg/* end confdefs.h. */ 9284405c8079Smrgint i; 9285405c8079Smrg_ACEOF 9286405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9287405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9288405c8079Smrgelse 9289405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9290405c8079Smrgfi 9291405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9292405c8079Smrgfi 9293405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9294405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9295405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9296405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9297405c8079Smrgfi 9298405c8079Smrg 9299405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9300405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9301405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9302405c8079Smrg fi 9303405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9304405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9305405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9306405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9307405c8079Smrg $as_echo_n "(cached) " >&6 9308405c8079Smrgelse 9309405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310405c8079Smrg/* end confdefs.h. */ 9311405c8079Smrgint i; 9312405c8079Smrg_ACEOF 9313405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9314405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9315405c8079Smrgelse 9316405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9317405c8079Smrgfi 9318405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9319405c8079Smrgfi 9320405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9321405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9322405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9323405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9324405c8079Smrgfi 9325405c8079Smrg 9326405c8079Smrgfound="no" 9327405c8079Smrg 9328405c8079Smrg if test $found = "no" ; then 932980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331405c8079Smrg fi 9332405c8079Smrg 933380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9334405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335405c8079Smrg fi 9336405c8079Smrg 9337405c8079Smrg CFLAGS="$CFLAGS -Wtrigraphs" 9338405c8079Smrg 9339405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9340405c8079Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9341405c8079Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9342405c8079Smrg if eval \${$cacheid+:} false; then : 9343405c8079Smrg $as_echo_n "(cached) " >&6 9344405c8079Smrgelse 9345405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346405c8079Smrg/* end confdefs.h. */ 9347405c8079Smrgint i; 9348405c8079Smrgint 9349405c8079Smrgmain () 9350405c8079Smrg{ 9351405c8079Smrg 9352405c8079Smrg ; 9353405c8079Smrg return 0; 9354405c8079Smrg} 9355405c8079Smrg_ACEOF 9356405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9357405c8079Smrg eval $cacheid=yes 9358405c8079Smrgelse 9359405c8079Smrg eval $cacheid=no 9360405c8079Smrgfi 9361405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9362405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9363405c8079Smrgfi 9364405c8079Smrg 9365405c8079Smrg 9366405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9367405c8079Smrg 9368405c8079Smrg eval supported=\$$cacheid 9369405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9370405c8079Smrg$as_echo "$supported" >&6; } 9371405c8079Smrg if test "$supported" = "yes" ; then 9372405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9373405c8079Smrg found="yes" 9374405c8079Smrg fi 9375405c8079Smrg fi 9376405c8079Smrg 9377405c8079Smrg 9378405c8079Smrg 9379405c8079Smrg 9380405c8079Smrg 9381405c8079Smrg 9382405c8079Smrg 9383405c8079Smrg 9384405c8079Smrg 9385405c8079Smrg 9386405c8079Smrg 9387405c8079Smrg 9388405c8079Smrg 9389405c8079Smrg 9390405c8079Smrg 9391405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9392405c8079Smrg 9393405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9394405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9395405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9396405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9397405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9398405c8079Smrg $as_echo_n "(cached) " >&6 9399405c8079Smrgelse 9400405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9401405c8079Smrg/* end confdefs.h. */ 9402405c8079Smrgint i; 9403405c8079Smrg_ACEOF 9404405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9405405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9406405c8079Smrgelse 9407405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9408405c8079Smrgfi 9409405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9410405c8079Smrgfi 9411405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9412405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9413405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9414405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9415405c8079Smrgfi 9416405c8079Smrg 9417405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9418405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9419405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9420405c8079Smrg fi 9421405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9422405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9423405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9424405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9425405c8079Smrg $as_echo_n "(cached) " >&6 9426405c8079Smrgelse 9427405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428405c8079Smrg/* end confdefs.h. */ 9429405c8079Smrgint i; 9430405c8079Smrg_ACEOF 9431405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9432405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9433405c8079Smrgelse 9434405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9435405c8079Smrgfi 9436405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9437405c8079Smrgfi 9438405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9439405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9440405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9441405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9442405c8079Smrgfi 9443405c8079Smrg 9444405c8079Smrgfound="no" 9445405c8079Smrg 9446405c8079Smrg if test $found = "no" ; then 944780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9448405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9449405c8079Smrg fi 9450405c8079Smrg 945180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9452405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9453405c8079Smrg fi 9454405c8079Smrg 9455405c8079Smrg CFLAGS="$CFLAGS -Warray-bounds" 9456405c8079Smrg 9457405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9458405c8079Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9459405c8079Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 9460405c8079Smrg if eval \${$cacheid+:} false; then : 9461405c8079Smrg $as_echo_n "(cached) " >&6 9462405c8079Smrgelse 9463405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464405c8079Smrg/* end confdefs.h. */ 9465405c8079Smrgint i; 9466405c8079Smrgint 9467405c8079Smrgmain () 9468405c8079Smrg{ 9469405c8079Smrg 9470405c8079Smrg ; 9471405c8079Smrg return 0; 9472405c8079Smrg} 9473405c8079Smrg_ACEOF 9474405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9475405c8079Smrg eval $cacheid=yes 9476405c8079Smrgelse 9477405c8079Smrg eval $cacheid=no 9478405c8079Smrgfi 9479405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9480405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9481405c8079Smrgfi 9482405c8079Smrg 9483405c8079Smrg 9484405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9485405c8079Smrg 9486405c8079Smrg eval supported=\$$cacheid 9487405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9488405c8079Smrg$as_echo "$supported" >&6; } 9489405c8079Smrg if test "$supported" = "yes" ; then 9490405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9491405c8079Smrg found="yes" 9492405c8079Smrg fi 9493405c8079Smrg fi 9494405c8079Smrg 9495405c8079Smrg 9496405c8079Smrg 9497405c8079Smrg 9498405c8079Smrg 9499405c8079Smrg 9500405c8079Smrg 9501405c8079Smrg 9502405c8079Smrg 9503405c8079Smrg 9504405c8079Smrg 9505405c8079Smrg 9506405c8079Smrg 9507405c8079Smrg 9508405c8079Smrg 9509405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9510405c8079Smrg 9511405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9512405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9513405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9514405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9515405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9516405c8079Smrg $as_echo_n "(cached) " >&6 9517405c8079Smrgelse 9518405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519405c8079Smrg/* end confdefs.h. */ 9520405c8079Smrgint i; 9521405c8079Smrg_ACEOF 9522405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9523405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9524405c8079Smrgelse 9525405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9526405c8079Smrgfi 9527405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9528405c8079Smrgfi 9529405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9530405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9531405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9532405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9533405c8079Smrgfi 9534405c8079Smrg 9535405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9536405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9537405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9538405c8079Smrg fi 9539405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9540405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9541405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9542405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9543405c8079Smrg $as_echo_n "(cached) " >&6 9544405c8079Smrgelse 9545405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9546405c8079Smrg/* end confdefs.h. */ 9547405c8079Smrgint i; 9548405c8079Smrg_ACEOF 9549405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9550405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9551405c8079Smrgelse 9552405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9553405c8079Smrgfi 9554405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9555405c8079Smrgfi 9556405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9557405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9558405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9559405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9560405c8079Smrgfi 9561405c8079Smrg 9562405c8079Smrgfound="no" 9563405c8079Smrg 9564405c8079Smrg if test $found = "no" ; then 956580f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9566405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9567405c8079Smrg fi 9568405c8079Smrg 956980f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9570405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9571405c8079Smrg fi 9572405c8079Smrg 9573405c8079Smrg CFLAGS="$CFLAGS -Wwrite-strings" 9574405c8079Smrg 9575405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9576405c8079Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9577405c8079Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 9578405c8079Smrg if eval \${$cacheid+:} false; then : 9579405c8079Smrg $as_echo_n "(cached) " >&6 9580405c8079Smrgelse 9581405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582405c8079Smrg/* end confdefs.h. */ 9583405c8079Smrgint i; 9584405c8079Smrgint 9585405c8079Smrgmain () 9586405c8079Smrg{ 9587405c8079Smrg 9588405c8079Smrg ; 9589405c8079Smrg return 0; 9590405c8079Smrg} 9591405c8079Smrg_ACEOF 9592405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9593405c8079Smrg eval $cacheid=yes 9594405c8079Smrgelse 9595405c8079Smrg eval $cacheid=no 9596405c8079Smrgfi 9597405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9598405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9599405c8079Smrgfi 9600405c8079Smrg 9601405c8079Smrg 9602405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9603405c8079Smrg 9604405c8079Smrg eval supported=\$$cacheid 9605405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9606405c8079Smrg$as_echo "$supported" >&6; } 9607405c8079Smrg if test "$supported" = "yes" ; then 9608405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9609405c8079Smrg found="yes" 9610405c8079Smrg fi 9611405c8079Smrg fi 9612405c8079Smrg 9613405c8079Smrg 9614405c8079Smrg 9615405c8079Smrg 9616405c8079Smrg 9617405c8079Smrg 9618405c8079Smrg 9619405c8079Smrg 9620405c8079Smrg 9621405c8079Smrg 9622405c8079Smrg 9623405c8079Smrg 9624405c8079Smrg 9625405c8079Smrg 9626405c8079Smrg 9627405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9628405c8079Smrg 9629405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9630405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9632405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9633405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9634405c8079Smrg $as_echo_n "(cached) " >&6 9635405c8079Smrgelse 9636405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637405c8079Smrg/* end confdefs.h. */ 9638405c8079Smrgint i; 9639405c8079Smrg_ACEOF 9640405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9641405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9642405c8079Smrgelse 9643405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9644405c8079Smrgfi 9645405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9646405c8079Smrgfi 9647405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9648405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9649405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9650405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9651405c8079Smrgfi 9652405c8079Smrg 9653405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9654405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9655405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656405c8079Smrg fi 9657405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9658405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9659405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9660405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9661405c8079Smrg $as_echo_n "(cached) " >&6 9662405c8079Smrgelse 9663405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664405c8079Smrg/* end confdefs.h. */ 9665405c8079Smrgint i; 9666405c8079Smrg_ACEOF 9667405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9668405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9669405c8079Smrgelse 9670405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9671405c8079Smrgfi 9672405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9673405c8079Smrgfi 9674405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9675405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9676405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9677405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9678405c8079Smrgfi 9679405c8079Smrg 9680405c8079Smrgfound="no" 9681405c8079Smrg 9682405c8079Smrg if test $found = "no" ; then 968380f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9684405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685405c8079Smrg fi 9686405c8079Smrg 968780f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9688405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9689405c8079Smrg fi 9690405c8079Smrg 9691405c8079Smrg CFLAGS="$CFLAGS -Waddress" 9692405c8079Smrg 9693405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9694405c8079Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9695405c8079Smrg cacheid=xorg_cv_cc_flag__Waddress 9696405c8079Smrg if eval \${$cacheid+:} false; then : 9697405c8079Smrg $as_echo_n "(cached) " >&6 9698405c8079Smrgelse 9699405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700405c8079Smrg/* end confdefs.h. */ 9701405c8079Smrgint i; 9702405c8079Smrgint 9703405c8079Smrgmain () 9704405c8079Smrg{ 9705405c8079Smrg 9706405c8079Smrg ; 9707405c8079Smrg return 0; 9708405c8079Smrg} 9709405c8079Smrg_ACEOF 9710405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9711405c8079Smrg eval $cacheid=yes 9712405c8079Smrgelse 9713405c8079Smrg eval $cacheid=no 9714405c8079Smrgfi 9715405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9716405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9717405c8079Smrgfi 9718405c8079Smrg 9719405c8079Smrg 9720405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9721405c8079Smrg 9722405c8079Smrg eval supported=\$$cacheid 9723405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9724405c8079Smrg$as_echo "$supported" >&6; } 9725405c8079Smrg if test "$supported" = "yes" ; then 9726405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9727405c8079Smrg found="yes" 9728405c8079Smrg fi 9729405c8079Smrg fi 9730405c8079Smrg 9731405c8079Smrg 9732405c8079Smrg 9733405c8079Smrg 9734405c8079Smrg 9735405c8079Smrg 9736405c8079Smrg 9737405c8079Smrg 9738405c8079Smrg 9739405c8079Smrg 9740405c8079Smrg 9741405c8079Smrg 9742405c8079Smrg 9743405c8079Smrg 9744405c8079Smrg 9745405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9746405c8079Smrg 9747405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9748405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9749405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9750405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9751405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9752405c8079Smrg $as_echo_n "(cached) " >&6 9753405c8079Smrgelse 9754405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755405c8079Smrg/* end confdefs.h. */ 9756405c8079Smrgint i; 9757405c8079Smrg_ACEOF 9758405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9759405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9760405c8079Smrgelse 9761405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9762405c8079Smrgfi 9763405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9764405c8079Smrgfi 9765405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9766405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9767405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9768405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9769405c8079Smrgfi 9770405c8079Smrg 9771405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9772405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9773405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774405c8079Smrg fi 9775405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9776405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9777405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9778405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9779405c8079Smrg $as_echo_n "(cached) " >&6 9780405c8079Smrgelse 9781405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9782405c8079Smrg/* end confdefs.h. */ 9783405c8079Smrgint i; 9784405c8079Smrg_ACEOF 9785405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9786405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9787405c8079Smrgelse 9788405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9789405c8079Smrgfi 9790405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9791405c8079Smrgfi 9792405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9793405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9794405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9795405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9796405c8079Smrgfi 9797405c8079Smrg 9798405c8079Smrgfound="no" 9799405c8079Smrg 9800405c8079Smrg if test $found = "no" ; then 980180f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9802405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9803405c8079Smrg fi 9804405c8079Smrg 980580f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9806405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9807405c8079Smrg fi 9808405c8079Smrg 9809405c8079Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9810405c8079Smrg 9811405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9812405c8079Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9813405c8079Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9814405c8079Smrg if eval \${$cacheid+:} false; then : 9815405c8079Smrg $as_echo_n "(cached) " >&6 9816405c8079Smrgelse 9817405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818405c8079Smrg/* end confdefs.h. */ 9819405c8079Smrgint i; 9820405c8079Smrgint 9821405c8079Smrgmain () 9822405c8079Smrg{ 9823405c8079Smrg 9824405c8079Smrg ; 9825405c8079Smrg return 0; 9826405c8079Smrg} 9827405c8079Smrg_ACEOF 9828405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9829405c8079Smrg eval $cacheid=yes 9830405c8079Smrgelse 9831405c8079Smrg eval $cacheid=no 9832405c8079Smrgfi 9833405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9834405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9835405c8079Smrgfi 9836405c8079Smrg 9837405c8079Smrg 9838405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9839405c8079Smrg 9840405c8079Smrg eval supported=\$$cacheid 9841405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9842405c8079Smrg$as_echo "$supported" >&6; } 9843405c8079Smrg if test "$supported" = "yes" ; then 9844405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9845405c8079Smrg found="yes" 9846405c8079Smrg fi 9847405c8079Smrg fi 9848405c8079Smrg 9849405c8079Smrg 9850405c8079Smrg 9851405c8079Smrg 9852405c8079Smrg 9853405c8079Smrg 9854405c8079Smrg 9855405c8079Smrg 9856405c8079Smrg 9857405c8079Smrg 9858405c8079Smrg 9859405c8079Smrg 9860405c8079Smrg 9861405c8079Smrg 9862405c8079Smrg 9863405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9864405c8079Smrg 9865405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9866405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9867405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9868405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9869405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9870405c8079Smrg $as_echo_n "(cached) " >&6 9871405c8079Smrgelse 9872405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9873405c8079Smrg/* end confdefs.h. */ 9874405c8079Smrgint i; 9875405c8079Smrg_ACEOF 9876405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9877405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9878405c8079Smrgelse 9879405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 9880405c8079Smrgfi 9881405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9882405c8079Smrgfi 9883405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9884405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9885405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9886405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9887405c8079Smrgfi 9888405c8079Smrg 9889405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9890405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9891405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892405c8079Smrg fi 9893405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9894405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9895405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9896405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9897405c8079Smrg $as_echo_n "(cached) " >&6 9898405c8079Smrgelse 9899405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900405c8079Smrg/* end confdefs.h. */ 9901405c8079Smrgint i; 9902405c8079Smrg_ACEOF 9903405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 9904405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9905405c8079Smrgelse 9906405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9907405c8079Smrgfi 9908405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9909405c8079Smrgfi 9910405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9911405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9912405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9913405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9914405c8079Smrgfi 9915405c8079Smrg 9916405c8079Smrgfound="no" 9917405c8079Smrg 9918405c8079Smrg if test $found = "no" ; then 991980f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9920405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921405c8079Smrg fi 9922405c8079Smrg 992380f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9924405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9925405c8079Smrg fi 9926405c8079Smrg 9927405c8079Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9928405c8079Smrg 9929405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9930405c8079Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9931405c8079Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9932405c8079Smrg if eval \${$cacheid+:} false; then : 9933405c8079Smrg $as_echo_n "(cached) " >&6 9934405c8079Smrgelse 9935405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936405c8079Smrg/* end confdefs.h. */ 9937405c8079Smrgint i; 9938405c8079Smrgint 9939405c8079Smrgmain () 9940405c8079Smrg{ 9941405c8079Smrg 9942405c8079Smrg ; 9943405c8079Smrg return 0; 9944405c8079Smrg} 9945405c8079Smrg_ACEOF 9946405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 9947405c8079Smrg eval $cacheid=yes 9948405c8079Smrgelse 9949405c8079Smrg eval $cacheid=no 9950405c8079Smrgfi 9951405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 9952405c8079Smrg conftest$ac_exeext conftest.$ac_ext 9953405c8079Smrgfi 9954405c8079Smrg 9955405c8079Smrg 9956405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9957405c8079Smrg 9958405c8079Smrg eval supported=\$$cacheid 9959405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9960405c8079Smrg$as_echo "$supported" >&6; } 9961405c8079Smrg if test "$supported" = "yes" ; then 9962405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9963405c8079Smrg found="yes" 9964405c8079Smrg fi 9965405c8079Smrg fi 9966405c8079Smrg 9967405c8079Smrg 9968405c8079Smrgfi 9969405c8079Smrg 9970405c8079Smrg 9971405c8079Smrg 9972405c8079Smrg 9973405c8079Smrg 9974405c8079Smrg 9975405c8079Smrg 9976405c8079Smrg CWARNFLAGS="$BASE_CFLAGS" 9977405c8079Smrg if test "x$GCC" = xyes ; then 9978405c8079Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9979405c8079Smrg fi 9980405c8079Smrg 9981405c8079Smrg 9982405c8079Smrg 9983405c8079Smrg 9984405c8079Smrg 9985405c8079Smrg 9986405c8079Smrg 9987405c8079Smrg 9988405c8079Smrg# Check whether --enable-strict-compilation was given. 9989405c8079Smrgif test "${enable_strict_compilation+set}" = set; then : 9990405c8079Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9991405c8079Smrgelse 9992405c8079Smrg STRICT_COMPILE=no 9993405c8079Smrgfi 9994405c8079Smrg 9995405c8079Smrg 9996405c8079Smrg 9997405c8079Smrg 9998405c8079Smrg 9999405c8079Smrg 10000405c8079SmrgSTRICT_CFLAGS="" 10001405c8079Smrg 10002405c8079Smrg 10003405c8079Smrg 10004405c8079Smrg 10005405c8079Smrg 10006405c8079Smrg 10007405c8079Smrg 10008405c8079Smrg 10009405c8079Smrg 10010405c8079Smrg 10011405c8079Smrg 10012405c8079Smrg 10013405c8079Smrg 10014405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10015405c8079Smrg 10016405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10017405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10019405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10020405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10021405c8079Smrg $as_echo_n "(cached) " >&6 10022405c8079Smrgelse 10023405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024405c8079Smrg/* end confdefs.h. */ 10025405c8079Smrgint i; 10026405c8079Smrg_ACEOF 10027405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10028405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10029405c8079Smrgelse 10030405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 10031405c8079Smrgfi 10032405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10033405c8079Smrgfi 10034405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10035405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10036405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10037405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10038405c8079Smrgfi 10039405c8079Smrg 10040405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10041405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10042405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10043405c8079Smrg fi 10044405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10046405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10047405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10048405c8079Smrg $as_echo_n "(cached) " >&6 10049405c8079Smrgelse 10050405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051405c8079Smrg/* end confdefs.h. */ 10052405c8079Smrgint i; 10053405c8079Smrg_ACEOF 10054405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10055405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10056405c8079Smrgelse 10057405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10058405c8079Smrgfi 10059405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10060405c8079Smrgfi 10061405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10062405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10063405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10064405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10065405c8079Smrgfi 10066405c8079Smrg 10067405c8079Smrgfound="no" 10068405c8079Smrg 10069405c8079Smrg if test $found = "no" ; then 1007080f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10071405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10072405c8079Smrg fi 10073405c8079Smrg 1007480f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10075405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10076405c8079Smrg fi 10077405c8079Smrg 10078405c8079Smrg CFLAGS="$CFLAGS -pedantic" 10079405c8079Smrg 10080405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10081405c8079Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10082405c8079Smrg cacheid=xorg_cv_cc_flag__pedantic 10083405c8079Smrg if eval \${$cacheid+:} false; then : 10084405c8079Smrg $as_echo_n "(cached) " >&6 10085405c8079Smrgelse 10086405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10087405c8079Smrg/* end confdefs.h. */ 10088405c8079Smrgint i; 10089405c8079Smrgint 10090405c8079Smrgmain () 10091405c8079Smrg{ 10092405c8079Smrg 10093405c8079Smrg ; 10094405c8079Smrg return 0; 10095405c8079Smrg} 10096405c8079Smrg_ACEOF 10097405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 10098405c8079Smrg eval $cacheid=yes 10099405c8079Smrgelse 10100405c8079Smrg eval $cacheid=no 10101405c8079Smrgfi 10102405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 10103405c8079Smrg conftest$ac_exeext conftest.$ac_ext 10104405c8079Smrgfi 10105405c8079Smrg 10106405c8079Smrg 10107405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10108405c8079Smrg 10109405c8079Smrg eval supported=\$$cacheid 10110405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10111405c8079Smrg$as_echo "$supported" >&6; } 10112405c8079Smrg if test "$supported" = "yes" ; then 10113405c8079Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10114405c8079Smrg found="yes" 10115405c8079Smrg fi 10116405c8079Smrg fi 10117405c8079Smrg 10118405c8079Smrg 10119405c8079Smrg 10120405c8079Smrg 10121405c8079Smrg 10122405c8079Smrg 10123405c8079Smrg 10124405c8079Smrg 10125405c8079Smrg 10126405c8079Smrg 10127405c8079Smrg 10128405c8079Smrg 10129405c8079Smrg 10130405c8079Smrg 10131405c8079Smrg 10132405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10133405c8079Smrg 10134405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10135405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10136405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10137405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10138405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10139405c8079Smrg $as_echo_n "(cached) " >&6 10140405c8079Smrgelse 10141405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142405c8079Smrg/* end confdefs.h. */ 10143405c8079Smrgint i; 10144405c8079Smrg_ACEOF 10145405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10146405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10147405c8079Smrgelse 10148405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 10149405c8079Smrgfi 10150405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10151405c8079Smrgfi 10152405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10153405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10154405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10155405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10156405c8079Smrgfi 10157405c8079Smrg 10158405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10159405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10160405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10161405c8079Smrg fi 10162405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10163405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10164405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10165405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10166405c8079Smrg $as_echo_n "(cached) " >&6 10167405c8079Smrgelse 10168405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169405c8079Smrg/* end confdefs.h. */ 10170405c8079Smrgint i; 10171405c8079Smrg_ACEOF 10172405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10173405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10174405c8079Smrgelse 10175405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10176405c8079Smrgfi 10177405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10178405c8079Smrgfi 10179405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10180405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10181405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10182405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10183405c8079Smrgfi 10184405c8079Smrg 10185405c8079Smrgfound="no" 10186405c8079Smrg 10187405c8079Smrg if test $found = "no" ; then 1018880f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10189405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10190405c8079Smrg fi 10191405c8079Smrg 1019280f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10193405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10194405c8079Smrg fi 10195405c8079Smrg 10196405c8079Smrg CFLAGS="$CFLAGS -Werror" 10197405c8079Smrg 10198405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10199405c8079Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 10200405c8079Smrg cacheid=xorg_cv_cc_flag__Werror 10201405c8079Smrg if eval \${$cacheid+:} false; then : 10202405c8079Smrg $as_echo_n "(cached) " >&6 10203405c8079Smrgelse 10204405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205405c8079Smrg/* end confdefs.h. */ 10206405c8079Smrgint i; 10207405c8079Smrgint 10208405c8079Smrgmain () 10209405c8079Smrg{ 10210405c8079Smrg 10211405c8079Smrg ; 10212405c8079Smrg return 0; 10213405c8079Smrg} 10214405c8079Smrg_ACEOF 10215405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 10216405c8079Smrg eval $cacheid=yes 10217405c8079Smrgelse 10218405c8079Smrg eval $cacheid=no 10219405c8079Smrgfi 10220405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 10221405c8079Smrg conftest$ac_exeext conftest.$ac_ext 10222405c8079Smrgfi 10223405c8079Smrg 10224405c8079Smrg 10225405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10226405c8079Smrg 10227405c8079Smrg eval supported=\$$cacheid 10228405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10229405c8079Smrg$as_echo "$supported" >&6; } 10230405c8079Smrg if test "$supported" = "yes" ; then 10231405c8079Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10232405c8079Smrg found="yes" 10233405c8079Smrg fi 10234405c8079Smrg fi 10235405c8079Smrg 10236405c8079Smrg if test $found = "no" ; then 1023780f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10238405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10239405c8079Smrg fi 10240405c8079Smrg 1024180f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10242405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10243405c8079Smrg fi 10244405c8079Smrg 10245405c8079Smrg CFLAGS="$CFLAGS -errwarn" 10246405c8079Smrg 10247405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10248405c8079Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10249405c8079Smrg cacheid=xorg_cv_cc_flag__errwarn 10250405c8079Smrg if eval \${$cacheid+:} false; then : 10251405c8079Smrg $as_echo_n "(cached) " >&6 10252405c8079Smrgelse 10253405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254405c8079Smrg/* end confdefs.h. */ 10255405c8079Smrgint i; 10256405c8079Smrgint 10257405c8079Smrgmain () 10258405c8079Smrg{ 10259405c8079Smrg 10260405c8079Smrg ; 10261405c8079Smrg return 0; 10262405c8079Smrg} 10263405c8079Smrg_ACEOF 10264405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 10265405c8079Smrg eval $cacheid=yes 10266405c8079Smrgelse 10267405c8079Smrg eval $cacheid=no 10268405c8079Smrgfi 10269405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 10270405c8079Smrg conftest$ac_exeext conftest.$ac_ext 10271405c8079Smrgfi 10272405c8079Smrg 10273405c8079Smrg 10274405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10275405c8079Smrg 10276405c8079Smrg eval supported=\$$cacheid 10277405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10278405c8079Smrg$as_echo "$supported" >&6; } 10279405c8079Smrg if test "$supported" = "yes" ; then 10280405c8079Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10281405c8079Smrg found="yes" 10282405c8079Smrg fi 10283405c8079Smrg fi 10284405c8079Smrg 10285405c8079Smrg 10286405c8079Smrg 10287405c8079Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10288405c8079Smrg# activate it with -Werror, so we add it here explicitly. 10289405c8079Smrg 10290405c8079Smrg 10291405c8079Smrg 10292405c8079Smrg 10293405c8079Smrg 10294405c8079Smrg 10295405c8079Smrg 10296405c8079Smrg 10297405c8079Smrg 10298405c8079Smrg 10299405c8079Smrg 10300405c8079Smrg 10301405c8079Smrg 10302405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10303405c8079Smrg 10304405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10305405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10307405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10308405c8079Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10309405c8079Smrg $as_echo_n "(cached) " >&6 10310405c8079Smrgelse 10311405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312405c8079Smrg/* end confdefs.h. */ 10313405c8079Smrgint i; 10314405c8079Smrg_ACEOF 10315405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10316405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10317405c8079Smrgelse 10318405c8079Smrg xorg_cv_cc_flag_unknown_warning_option=no 10319405c8079Smrgfi 10320405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10321405c8079Smrgfi 10322405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10323405c8079Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10324405c8079Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10325405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10326405c8079Smrgfi 10327405c8079Smrg 10328405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10329405c8079Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10330405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331405c8079Smrg fi 10332405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10334405c8079Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10335405c8079Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10336405c8079Smrg $as_echo_n "(cached) " >&6 10337405c8079Smrgelse 10338405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339405c8079Smrg/* end confdefs.h. */ 10340405c8079Smrgint i; 10341405c8079Smrg_ACEOF 10342405c8079Smrgif ac_fn_c_try_compile "$LINENO"; then : 10343405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10344405c8079Smrgelse 10345405c8079Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10346405c8079Smrgfi 10347405c8079Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10348405c8079Smrgfi 10349405c8079Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10350405c8079Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10351405c8079Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10352405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10353405c8079Smrgfi 10354405c8079Smrg 10355405c8079Smrgfound="no" 10356405c8079Smrg 10357405c8079Smrg if test $found = "no" ; then 1035880f56f3aSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10359405c8079Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360405c8079Smrg fi 10361405c8079Smrg 1036280f56f3aSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10363405c8079Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10364405c8079Smrg fi 10365405c8079Smrg 10366405c8079Smrg CFLAGS="$CFLAGS -Werror=attributes" 10367405c8079Smrg 10368405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10369405c8079Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 1037080f56f3aSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 10371405c8079Smrg if eval \${$cacheid+:} false; then : 10372405c8079Smrg $as_echo_n "(cached) " >&6 10373405c8079Smrgelse 10374405c8079Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375405c8079Smrg/* end confdefs.h. */ 10376405c8079Smrgint i; 10377405c8079Smrgint 10378405c8079Smrgmain () 10379405c8079Smrg{ 10380405c8079Smrg 10381405c8079Smrg ; 10382405c8079Smrg return 0; 10383405c8079Smrg} 10384405c8079Smrg_ACEOF 10385405c8079Smrgif ac_fn_c_try_link "$LINENO"; then : 10386405c8079Smrg eval $cacheid=yes 10387405c8079Smrgelse 10388405c8079Smrg eval $cacheid=no 10389405c8079Smrgfi 10390405c8079Smrgrm -f core conftest.err conftest.$ac_objext \ 10391405c8079Smrg conftest$ac_exeext conftest.$ac_ext 10392405c8079Smrgfi 10393405c8079Smrg 10394405c8079Smrg 10395405c8079Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10396405c8079Smrg 10397405c8079Smrg eval supported=\$$cacheid 10398405c8079Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10399405c8079Smrg$as_echo "$supported" >&6; } 10400405c8079Smrg if test "$supported" = "yes" ; then 10401405c8079Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10402405c8079Smrg found="yes" 10403405c8079Smrg fi 10404405c8079Smrg fi 10405405c8079Smrg 10406405c8079Smrg 10407405c8079Smrg 10408405c8079Smrgif test "x$STRICT_COMPILE" = "xyes"; then 10409405c8079Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10410405c8079Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10411405c8079Smrgfi 10412405c8079Smrg 10413405c8079Smrg 1041444af7230Smrg 1041544af7230Smrg 1041644af7230Smrg 1041744af7230Smrg 1041844af7230Smrgcat >>confdefs.h <<_ACEOF 1041944af7230Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1042044af7230Smrg_ACEOF 1042144af7230Smrg 1042244af7230Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1042344af7230Smrg if test "x$PVM" = "x"; then 1042444af7230Smrg PVM="0" 1042544af7230Smrg fi 1042644af7230Smrg 1042744af7230Smrgcat >>confdefs.h <<_ACEOF 1042844af7230Smrg#define PACKAGE_VERSION_MINOR $PVM 1042944af7230Smrg_ACEOF 1043044af7230Smrg 1043144af7230Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1043244af7230Smrg if test "x$PVP" = "x"; then 1043344af7230Smrg PVP="0" 1043444af7230Smrg fi 1043544af7230Smrg 1043644af7230Smrgcat >>confdefs.h <<_ACEOF 1043744af7230Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1043844af7230Smrg_ACEOF 1043944af7230Smrg 1044044af7230Smrg 1044144af7230Smrg 104422d1d20fcSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 104432d1d20fcSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 104442d1d20fcSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 1044544af7230Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 1044644af7230Smrg 104472d1d20fcSmrg 104482d1d20fcSmrg 104492d1d20fcSmrg 104502d1d20fcSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 104512d1d20fcSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 104522d1d20fcSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 104532d1d20fcSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 104542d1d20fcSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 104552d1d20fcSmrg 1045644af7230Smrg 1045744af7230Smrg 1045844af7230Smrg 1045944af7230Smrg 1046044af7230Smrg 1046144af7230Smrgif test x$APP_MAN_SUFFIX = x ; then 1046244af7230Smrg APP_MAN_SUFFIX=1 1046344af7230Smrgfi 1046444af7230Smrgif test x$APP_MAN_DIR = x ; then 1046544af7230Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1046644af7230Smrgfi 1046744af7230Smrg 1046844af7230Smrgif test x$LIB_MAN_SUFFIX = x ; then 1046944af7230Smrg LIB_MAN_SUFFIX=3 1047044af7230Smrgfi 1047144af7230Smrgif test x$LIB_MAN_DIR = x ; then 1047244af7230Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1047344af7230Smrgfi 1047444af7230Smrg 1047544af7230Smrgif test x$FILE_MAN_SUFFIX = x ; then 1047644af7230Smrg case $host_os in 1047744af7230Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 1047844af7230Smrg *) FILE_MAN_SUFFIX=5 ;; 1047944af7230Smrg esac 1048044af7230Smrgfi 1048144af7230Smrgif test x$FILE_MAN_DIR = x ; then 1048244af7230Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1048344af7230Smrgfi 1048444af7230Smrg 1048544af7230Smrgif test x$MISC_MAN_SUFFIX = x ; then 1048644af7230Smrg case $host_os in 1048744af7230Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 1048844af7230Smrg *) MISC_MAN_SUFFIX=7 ;; 1048944af7230Smrg esac 1049044af7230Smrgfi 1049144af7230Smrgif test x$MISC_MAN_DIR = x ; then 1049244af7230Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1049344af7230Smrgfi 1049444af7230Smrg 1049544af7230Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1049644af7230Smrg case $host_os in 1049744af7230Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 1049844af7230Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1049944af7230Smrg esac 1050044af7230Smrgfi 1050144af7230Smrgif test x$DRIVER_MAN_DIR = x ; then 1050244af7230Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1050344af7230Smrgfi 1050444af7230Smrg 1050544af7230Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1050644af7230Smrg case $host_os in 1050744af7230Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 1050844af7230Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1050944af7230Smrg esac 1051044af7230Smrgfi 1051144af7230Smrgif test x$ADMIN_MAN_DIR = x ; then 1051244af7230Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1051344af7230Smrgfi 1051444af7230Smrg 1051544af7230Smrg 1051644af7230Smrg 1051744af7230Smrg 1051844af7230Smrg 1051944af7230Smrg 1052044af7230Smrg 1052144af7230Smrg 1052244af7230Smrg 1052344af7230Smrg 1052444af7230Smrg 1052544af7230Smrg 1052644af7230Smrg 1052744af7230Smrg 1052844af7230Smrg 105292d1d20fcSmrgXORG_MAN_PAGE="X Version 11" 1053044af7230Smrg 105312d1d20fcSmrgMAN_SUBSTS="\ 105322d1d20fcSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 105332d1d20fcSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 105342d1d20fcSmrg -e 's|__xservername__|Xorg|g' \ 105352d1d20fcSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 105362d1d20fcSmrg -e 's|__projectroot__|\$(prefix)|g' \ 105372d1d20fcSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 105382d1d20fcSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 105392d1d20fcSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 105402d1d20fcSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 105412d1d20fcSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 105422d1d20fcSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 105432d1d20fcSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1054444af7230Smrg 105458ae04fa6Smrg 105468ae04fa6Smrg 105472d1d20fcSmrg# Check whether --enable-silent-rules was given. 105482d1d20fcSmrgif test "${enable_silent_rules+set}" = set; then : 105492d1d20fcSmrg enableval=$enable_silent_rules; 105508ae04fa6Smrgfi 105518ae04fa6Smrg 1055280f56f3aSmrgcase $enable_silent_rules in # ((( 1055380f56f3aSmrg yes) AM_DEFAULT_VERBOSITY=0;; 1055480f56f3aSmrg no) AM_DEFAULT_VERBOSITY=1;; 1055580f56f3aSmrg *) AM_DEFAULT_VERBOSITY=0;; 105562d1d20fcSmrgesac 1055780f56f3aSmrgam_make=${MAKE-make} 1055880f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1055980f56f3aSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 1056080f56f3aSmrgif ${am_cv_make_support_nested_variables+:} false; then : 1056180f56f3aSmrg $as_echo_n "(cached) " >&6 1056280f56f3aSmrgelse 1056380f56f3aSmrg if $as_echo 'TRUE=$(BAR$(V)) 1056480f56f3aSmrgBAR0=false 1056580f56f3aSmrgBAR1=true 1056680f56f3aSmrgV=1 1056780f56f3aSmrgam__doit: 1056880f56f3aSmrg @$(TRUE) 1056980f56f3aSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1057080f56f3aSmrg am_cv_make_support_nested_variables=yes 1057180f56f3aSmrgelse 1057280f56f3aSmrg am_cv_make_support_nested_variables=no 1057380f56f3aSmrgfi 1057480f56f3aSmrgfi 1057580f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1057680f56f3aSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 1057780f56f3aSmrgif test $am_cv_make_support_nested_variables = yes; then 1057880f56f3aSmrg AM_V='$(V)' 1057980f56f3aSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1058080f56f3aSmrgelse 1058180f56f3aSmrg AM_V=$AM_DEFAULT_VERBOSITY 1058280f56f3aSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1058380f56f3aSmrgfi 105842d1d20fcSmrgAM_BACKSLASH='\' 105852d1d20fcSmrg 105862d1d20fcSmrg 105872d1d20fcSmrg 105882d1d20fcSmrg# Checks for pkg-config packages 105892d1d20fcSmrg 1059044af7230Smrgpkg_failed=no 105912d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVINFO" >&5 1059244af7230Smrg$as_echo_n "checking for XVINFO... " >&6; } 1059344af7230Smrg 1059444af7230Smrgif test -n "$XVINFO_CFLAGS"; then 1059544af7230Smrg pkg_cv_XVINFO_CFLAGS="$XVINFO_CFLAGS" 1059644af7230Smrg elif test -n "$PKG_CONFIG"; then 1059744af7230Smrg if test -n "$PKG_CONFIG" && \ 1059880f56f3aSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv x11 xproto >= 7.0.25\""; } >&5 1059980f56f3aSmrg ($PKG_CONFIG --exists --print-errors "xv x11 xproto >= 7.0.25") 2>&5 1060044af7230Smrg ac_status=$? 106012d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 106022d1d20fcSmrg test $ac_status = 0; }; then 1060380f56f3aSmrg pkg_cv_XVINFO_CFLAGS=`$PKG_CONFIG --cflags "xv x11 xproto >= 7.0.25" 2>/dev/null` 1060444af7230Smrgelse 1060544af7230Smrg pkg_failed=yes 106068ae04fa6Smrgfi 1060744af7230Smrg else 1060844af7230Smrg pkg_failed=untried 106098ae04fa6Smrgfi 1061044af7230Smrgif test -n "$XVINFO_LIBS"; then 1061144af7230Smrg pkg_cv_XVINFO_LIBS="$XVINFO_LIBS" 1061244af7230Smrg elif test -n "$PKG_CONFIG"; then 1061344af7230Smrg if test -n "$PKG_CONFIG" && \ 1061480f56f3aSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv x11 xproto >= 7.0.25\""; } >&5 1061580f56f3aSmrg ($PKG_CONFIG --exists --print-errors "xv x11 xproto >= 7.0.25") 2>&5 1061644af7230Smrg ac_status=$? 106172d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 106182d1d20fcSmrg test $ac_status = 0; }; then 1061980f56f3aSmrg pkg_cv_XVINFO_LIBS=`$PKG_CONFIG --libs "xv x11 xproto >= 7.0.25" 2>/dev/null` 1062044af7230Smrgelse 1062144af7230Smrg pkg_failed=yes 106228ae04fa6Smrgfi 1062344af7230Smrg else 1062444af7230Smrg pkg_failed=untried 106258ae04fa6Smrgfi 106268ae04fa6Smrg 106278ae04fa6Smrg 106288ae04fa6Smrg 1062944af7230Smrgif test $pkg_failed = yes; then 106308ae04fa6Smrg 1063144af7230Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1063244af7230Smrg _pkg_short_errors_supported=yes 1063344af7230Smrgelse 1063444af7230Smrg _pkg_short_errors_supported=no 1063544af7230Smrgfi 1063644af7230Smrg if test $_pkg_short_errors_supported = yes; then 1063780f56f3aSmrg XVINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xv x11 xproto >= 7.0.25" 2>&1` 1063844af7230Smrg else 1063980f56f3aSmrg XVINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xv x11 xproto >= 7.0.25" 2>&1` 1064044af7230Smrg fi 1064144af7230Smrg # Put the nasty error message in config.log where it belongs 1064244af7230Smrg echo "$XVINFO_PKG_ERRORS" >&5 106438ae04fa6Smrg 1064480f56f3aSmrg as_fn_error $? "Package requirements (xv x11 xproto >= 7.0.25) were not met: 106458ae04fa6Smrg 1064644af7230Smrg$XVINFO_PKG_ERRORS 106478ae04fa6Smrg 1064844af7230SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1064944af7230Smrginstalled software in a non-standard prefix. 106508ae04fa6Smrg 1065144af7230SmrgAlternatively, you may set the environment variables XVINFO_CFLAGS 1065244af7230Smrgand XVINFO_LIBS to avoid the need to call pkg-config. 1065344af7230SmrgSee the pkg-config man page for more details. 106542d1d20fcSmrg" "$LINENO" 5 1065544af7230Smrgelif test $pkg_failed = untried; then 106562d1d20fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1065744af7230Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 106582d1d20fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1065944af7230Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 1066044af7230Smrgpath to pkg-config. 106618ae04fa6Smrg 1066244af7230SmrgAlternatively, you may set the environment variables XVINFO_CFLAGS 1066344af7230Smrgand XVINFO_LIBS to avoid the need to call pkg-config. 1066444af7230SmrgSee the pkg-config man page for more details. 106658ae04fa6Smrg 1066644af7230SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 106672d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 106688ae04fa6Smrgelse 1066944af7230Smrg XVINFO_CFLAGS=$pkg_cv_XVINFO_CFLAGS 1067044af7230Smrg XVINFO_LIBS=$pkg_cv_XVINFO_LIBS 106712d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1067244af7230Smrg$as_echo "yes" >&6; } 1067344af7230Smrg : 106748ae04fa6Smrgfi 106758ae04fa6Smrg 10676405c8079Smrgac_config_files="$ac_config_files Makefile man/Makefile" 106778ae04fa6Smrg 106788ae04fa6Smrgcat >confcache <<\_ACEOF 106798ae04fa6Smrg# This file is a shell script that caches the results of configure 106808ae04fa6Smrg# tests run on this system so they can be shared between configure 106818ae04fa6Smrg# scripts and configure runs, see configure's option --config-cache. 106828ae04fa6Smrg# It is not useful on other systems. If it contains results you don't 106838ae04fa6Smrg# want to keep, you may remove or edit it. 106848ae04fa6Smrg# 106858ae04fa6Smrg# config.status only pays attention to the cache file if you give it 106868ae04fa6Smrg# the --recheck option to rerun configure. 106878ae04fa6Smrg# 106888ae04fa6Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 106898ae04fa6Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 106908ae04fa6Smrg# following values. 106918ae04fa6Smrg 106928ae04fa6Smrg_ACEOF 106938ae04fa6Smrg 106948ae04fa6Smrg# The following way of writing the cache mishandles newlines in values, 106958ae04fa6Smrg# but we know of no workaround that is simple, portable, and efficient. 106968ae04fa6Smrg# So, we kill variables containing newlines. 106978ae04fa6Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 106988ae04fa6Smrg# and sets the high bit in the cache file unless we assign to the vars. 106998ae04fa6Smrg( 107008ae04fa6Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 107018ae04fa6Smrg eval ac_val=\$$ac_var 107028ae04fa6Smrg case $ac_val in #( 107038ae04fa6Smrg *${as_nl}*) 107048ae04fa6Smrg case $ac_var in #( 107052d1d20fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1070644af7230Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 107078ae04fa6Smrg esac 107088ae04fa6Smrg case $ac_var in #( 107098ae04fa6Smrg _ | IFS | as_nl) ;; #( 1071044af7230Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 107112d1d20fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 107128ae04fa6Smrg esac ;; 107138ae04fa6Smrg esac 107148ae04fa6Smrg done 107158ae04fa6Smrg 107168ae04fa6Smrg (set) 2>&1 | 107178ae04fa6Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 107188ae04fa6Smrg *${as_nl}ac_space=\ *) 107192d1d20fcSmrg # `set' does not quote correctly, so add quotes: double-quote 107202d1d20fcSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 107218ae04fa6Smrg sed -n \ 107228ae04fa6Smrg "s/'/'\\\\''/g; 107238ae04fa6Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 107248ae04fa6Smrg ;; #( 107258ae04fa6Smrg *) 107268ae04fa6Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 107278ae04fa6Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 107288ae04fa6Smrg ;; 107298ae04fa6Smrg esac | 107308ae04fa6Smrg sort 107318ae04fa6Smrg) | 107328ae04fa6Smrg sed ' 107338ae04fa6Smrg /^ac_cv_env_/b end 107348ae04fa6Smrg t clear 107358ae04fa6Smrg :clear 107368ae04fa6Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 107378ae04fa6Smrg t end 107388ae04fa6Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 107398ae04fa6Smrg :end' >>confcache 107408ae04fa6Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 107418ae04fa6Smrg if test -w "$cache_file"; then 107422d1d20fcSmrg if test "x$cache_file" != "x/dev/null"; then 107432d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1074444af7230Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 107452d1d20fcSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 107462d1d20fcSmrg cat confcache >"$cache_file" 107472d1d20fcSmrg else 107482d1d20fcSmrg case $cache_file in #( 107492d1d20fcSmrg */* | ?:*) 107502d1d20fcSmrg mv -f confcache "$cache_file"$$ && 107512d1d20fcSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 107522d1d20fcSmrg *) 107532d1d20fcSmrg mv -f confcache "$cache_file" ;; 107542d1d20fcSmrg esac 107552d1d20fcSmrg fi 107562d1d20fcSmrg fi 107578ae04fa6Smrg else 107582d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1075944af7230Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 107608ae04fa6Smrg fi 107618ae04fa6Smrgfi 107628ae04fa6Smrgrm -f confcache 107638ae04fa6Smrg 107648ae04fa6Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 107658ae04fa6Smrg# Let make expand exec_prefix. 107668ae04fa6Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 107678ae04fa6Smrg 107688ae04fa6SmrgDEFS=-DHAVE_CONFIG_H 107698ae04fa6Smrg 107708ae04fa6Smrgac_libobjs= 107718ae04fa6Smrgac_ltlibobjs= 107722d1d20fcSmrgU= 107738ae04fa6Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 107748ae04fa6Smrg # 1. Remove the extension, and $U if already installed. 107758ae04fa6Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1077644af7230Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 107778ae04fa6Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 107788ae04fa6Smrg # will be set to the directory where LIBOBJS objects are built. 107792d1d20fcSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 107802d1d20fcSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 107818ae04fa6Smrgdone 107828ae04fa6SmrgLIBOBJS=$ac_libobjs 107838ae04fa6Smrg 107848ae04fa6SmrgLTLIBOBJS=$ac_ltlibobjs 107858ae04fa6Smrg 107868ae04fa6Smrg 1078780f56f3aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1078880f56f3aSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 1078980f56f3aSmrg if test -n "$am_sleep_pid"; then 1079080f56f3aSmrg # Hide warnings about reused PIDs. 1079180f56f3aSmrg wait $am_sleep_pid 2>/dev/null 1079280f56f3aSmrg fi 1079380f56f3aSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 1079480f56f3aSmrg$as_echo "done" >&6; } 1079544af7230Smrg if test -n "$EXEEXT"; then 1079644af7230Smrg am__EXEEXT_TRUE= 1079744af7230Smrg am__EXEEXT_FALSE='#' 1079844af7230Smrgelse 1079944af7230Smrg am__EXEEXT_TRUE='#' 1080044af7230Smrg am__EXEEXT_FALSE= 1080144af7230Smrgfi 1080244af7230Smrg 108038ae04fa6Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 108042d1d20fcSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 108052d1d20fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108068ae04fa6Smrgfi 108078ae04fa6Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 108082d1d20fcSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 108092d1d20fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108108ae04fa6Smrgfi 108118ae04fa6Smrg 108122d1d20fcSmrg: "${CONFIG_STATUS=./config.status}" 1081344af7230Smrgac_write_fail=0 108148ae04fa6Smrgac_clean_files_save=$ac_clean_files 108158ae04fa6Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 108162d1d20fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1081744af7230Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 108182d1d20fcSmrgas_write_fail=0 108192d1d20fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 108208ae04fa6Smrg#! $SHELL 108218ae04fa6Smrg# Generated by $as_me. 108228ae04fa6Smrg# Run this file to recreate the current configuration. 108238ae04fa6Smrg# Compiler output produced by configure, useful for debugging 108248ae04fa6Smrg# configure, is in config.log if it exists. 108258ae04fa6Smrg 108268ae04fa6Smrgdebug=false 108278ae04fa6Smrgac_cs_recheck=false 108288ae04fa6Smrgac_cs_silent=false 108298ae04fa6Smrg 108302d1d20fcSmrgSHELL=\${CONFIG_SHELL-$SHELL} 108312d1d20fcSmrgexport SHELL 108322d1d20fcSmrg_ASEOF 108332d1d20fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 108342d1d20fcSmrg## -------------------- ## 108352d1d20fcSmrg## M4sh Initialization. ## 108362d1d20fcSmrg## -------------------- ## 108378ae04fa6Smrg 108388ae04fa6Smrg# Be more Bourne compatible 108398ae04fa6SmrgDUALCASE=1; export DUALCASE # for MKS sh 108402d1d20fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 108418ae04fa6Smrg emulate sh 108428ae04fa6Smrg NULLCMD=: 1084344af7230Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 108448ae04fa6Smrg # is contrary to our usage. Disable this feature. 108458ae04fa6Smrg alias -g '${1+"$@"}'='"$@"' 108468ae04fa6Smrg setopt NO_GLOB_SUBST 108478ae04fa6Smrgelse 108482d1d20fcSmrg case `(set -o) 2>/dev/null` in #( 108492d1d20fcSmrg *posix*) : 108502d1d20fcSmrg set -o posix ;; #( 108512d1d20fcSmrg *) : 108522d1d20fcSmrg ;; 108538ae04fa6Smrgesac 108548ae04fa6Smrgfi 108558ae04fa6Smrg 108568ae04fa6Smrg 1085744af7230Smrgas_nl=' 1085844af7230Smrg' 1085944af7230Smrgexport as_nl 1086044af7230Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 1086144af7230Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1086244af7230Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 1086344af7230Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 108642d1d20fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 108652d1d20fcSmrg# but without wasting forks for bash or zsh. 108662d1d20fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 108672d1d20fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 108682d1d20fcSmrg as_echo='print -r --' 108692d1d20fcSmrg as_echo_n='print -rn --' 108702d1d20fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 1087144af7230Smrg as_echo='printf %s\n' 1087244af7230Smrg as_echo_n='printf %s' 1087344af7230Smrgelse 1087444af7230Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 1087544af7230Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 1087644af7230Smrg as_echo_n='/usr/ucb/echo -n' 108778ae04fa6Smrg else 1087844af7230Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 1087944af7230Smrg as_echo_n_body='eval 1088044af7230Smrg arg=$1; 108812d1d20fcSmrg case $arg in #( 1088244af7230Smrg *"$as_nl"*) 1088344af7230Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 1088444af7230Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 1088544af7230Smrg esac; 1088644af7230Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 1088744af7230Smrg ' 1088844af7230Smrg export as_echo_n_body 1088944af7230Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 108908ae04fa6Smrg fi 1089144af7230Smrg export as_echo_body 1089244af7230Smrg as_echo='sh -c $as_echo_body as_echo' 1089344af7230Smrgfi 1089444af7230Smrg 1089544af7230Smrg# The user is always right. 1089644af7230Smrgif test "${PATH_SEPARATOR+set}" != set; then 1089744af7230Smrg PATH_SEPARATOR=: 1089844af7230Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1089944af7230Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1090044af7230Smrg PATH_SEPARATOR=';' 1090144af7230Smrg } 109028ae04fa6Smrgfi 109038ae04fa6Smrg 109048ae04fa6Smrg 109058ae04fa6Smrg# IFS 109068ae04fa6Smrg# We need space, tab and new line, in precisely that order. Quoting is 109078ae04fa6Smrg# there to prevent editors from complaining about space-tab. 109088ae04fa6Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 109098ae04fa6Smrg# splitting by setting IFS to empty value.) 109108ae04fa6SmrgIFS=" "" $as_nl" 109118ae04fa6Smrg 109128ae04fa6Smrg# Find who we are. Look in the path if we contain no directory separator. 109132d1d20fcSmrgas_myself= 109142d1d20fcSmrgcase $0 in #(( 109158ae04fa6Smrg *[\\/]* ) as_myself=$0 ;; 109168ae04fa6Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 109178ae04fa6Smrgfor as_dir in $PATH 109188ae04fa6Smrgdo 109198ae04fa6Smrg IFS=$as_save_IFS 109208ae04fa6Smrg test -z "$as_dir" && as_dir=. 109212d1d20fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 109222d1d20fcSmrg done 109238ae04fa6SmrgIFS=$as_save_IFS 109248ae04fa6Smrg 109258ae04fa6Smrg ;; 109268ae04fa6Smrgesac 109278ae04fa6Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109288ae04fa6Smrg# in which case we are not to be found in the path. 109298ae04fa6Smrgif test "x$as_myself" = x; then 109308ae04fa6Smrg as_myself=$0 109318ae04fa6Smrgfi 109328ae04fa6Smrgif test ! -f "$as_myself"; then 1093344af7230Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 109342d1d20fcSmrg exit 1 109358ae04fa6Smrgfi 109368ae04fa6Smrg 109372d1d20fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 109382d1d20fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 109392d1d20fcSmrg# suppresses any "Segmentation fault" message there. '((' could 109402d1d20fcSmrg# trigger a bug in pdksh 5.2.14. 109412d1d20fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 109422d1d20fcSmrgdo eval test x\${$as_var+set} = xset \ 109432d1d20fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 109448ae04fa6Smrgdone 109458ae04fa6SmrgPS1='$ ' 109468ae04fa6SmrgPS2='> ' 109478ae04fa6SmrgPS4='+ ' 109488ae04fa6Smrg 109498ae04fa6Smrg# NLS nuisances. 1095044af7230SmrgLC_ALL=C 1095144af7230Smrgexport LC_ALL 1095244af7230SmrgLANGUAGE=C 1095344af7230Smrgexport LANGUAGE 109548ae04fa6Smrg 109552d1d20fcSmrg# CDPATH. 109562d1d20fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 109572d1d20fcSmrg 109582d1d20fcSmrg 109592d1d20fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 109602d1d20fcSmrg# ---------------------------------------- 109612d1d20fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 109622d1d20fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 109632d1d20fcSmrg# script with STATUS, using 1 if that was 0. 109642d1d20fcSmrgas_fn_error () 109652d1d20fcSmrg{ 109662d1d20fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 109672d1d20fcSmrg if test "$4"; then 109682d1d20fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 109692d1d20fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 109702d1d20fcSmrg fi 109712d1d20fcSmrg $as_echo "$as_me: error: $2" >&2 109722d1d20fcSmrg as_fn_exit $as_status 109732d1d20fcSmrg} # as_fn_error 109742d1d20fcSmrg 109752d1d20fcSmrg 109762d1d20fcSmrg# as_fn_set_status STATUS 109772d1d20fcSmrg# ----------------------- 109782d1d20fcSmrg# Set $? to STATUS, without forking. 109792d1d20fcSmrgas_fn_set_status () 109802d1d20fcSmrg{ 109812d1d20fcSmrg return $1 109822d1d20fcSmrg} # as_fn_set_status 109832d1d20fcSmrg 109842d1d20fcSmrg# as_fn_exit STATUS 109852d1d20fcSmrg# ----------------- 109862d1d20fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 109872d1d20fcSmrgas_fn_exit () 109882d1d20fcSmrg{ 109892d1d20fcSmrg set +e 109902d1d20fcSmrg as_fn_set_status $1 109912d1d20fcSmrg exit $1 109922d1d20fcSmrg} # as_fn_exit 109932d1d20fcSmrg 109942d1d20fcSmrg# as_fn_unset VAR 109952d1d20fcSmrg# --------------- 109962d1d20fcSmrg# Portably unset VAR. 109972d1d20fcSmrgas_fn_unset () 109982d1d20fcSmrg{ 109992d1d20fcSmrg { eval $1=; unset $1;} 110002d1d20fcSmrg} 110012d1d20fcSmrgas_unset=as_fn_unset 110022d1d20fcSmrg# as_fn_append VAR VALUE 110032d1d20fcSmrg# ---------------------- 110042d1d20fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 110052d1d20fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 110062d1d20fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 110072d1d20fcSmrg# implementations. 110082d1d20fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 110092d1d20fcSmrg eval 'as_fn_append () 110102d1d20fcSmrg { 110112d1d20fcSmrg eval $1+=\$2 110122d1d20fcSmrg }' 110132d1d20fcSmrgelse 110142d1d20fcSmrg as_fn_append () 110152d1d20fcSmrg { 110162d1d20fcSmrg eval $1=\$$1\$2 110172d1d20fcSmrg } 110182d1d20fcSmrgfi # as_fn_append 110192d1d20fcSmrg 110202d1d20fcSmrg# as_fn_arith ARG... 110212d1d20fcSmrg# ------------------ 110222d1d20fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 110232d1d20fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 110242d1d20fcSmrg# must be portable across $(()) and expr. 110252d1d20fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 110262d1d20fcSmrg eval 'as_fn_arith () 110272d1d20fcSmrg { 110282d1d20fcSmrg as_val=$(( $* )) 110292d1d20fcSmrg }' 110302d1d20fcSmrgelse 110312d1d20fcSmrg as_fn_arith () 110322d1d20fcSmrg { 110332d1d20fcSmrg as_val=`expr "$@" || test $? -eq 1` 110342d1d20fcSmrg } 110352d1d20fcSmrgfi # as_fn_arith 110362d1d20fcSmrg 110372d1d20fcSmrg 110388ae04fa6Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 110398ae04fa6Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 110408ae04fa6Smrg as_expr=expr 110418ae04fa6Smrgelse 110428ae04fa6Smrg as_expr=false 110438ae04fa6Smrgfi 110448ae04fa6Smrg 110458ae04fa6Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 110468ae04fa6Smrg as_basename=basename 110478ae04fa6Smrgelse 110488ae04fa6Smrg as_basename=false 110498ae04fa6Smrgfi 110508ae04fa6Smrg 110512d1d20fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 110522d1d20fcSmrg as_dirname=dirname 110532d1d20fcSmrgelse 110542d1d20fcSmrg as_dirname=false 110552d1d20fcSmrgfi 110568ae04fa6Smrg 110578ae04fa6Smrgas_me=`$as_basename -- "$0" || 110588ae04fa6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 110598ae04fa6Smrg X"$0" : 'X\(//\)$' \| \ 110608ae04fa6Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1106144af7230Smrg$as_echo X/"$0" | 110628ae04fa6Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 110638ae04fa6Smrg s//\1/ 110648ae04fa6Smrg q 110658ae04fa6Smrg } 110668ae04fa6Smrg /^X\/\(\/\/\)$/{ 110678ae04fa6Smrg s//\1/ 110688ae04fa6Smrg q 110698ae04fa6Smrg } 110708ae04fa6Smrg /^X\/\(\/\).*/{ 110718ae04fa6Smrg s//\1/ 110728ae04fa6Smrg q 110738ae04fa6Smrg } 110748ae04fa6Smrg s/.*/./; q'` 110758ae04fa6Smrg 110762d1d20fcSmrg# Avoid depending upon Character Ranges. 110772d1d20fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 110782d1d20fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 110792d1d20fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 110802d1d20fcSmrgas_cr_digits='0123456789' 110812d1d20fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 110828ae04fa6Smrg 110838ae04fa6SmrgECHO_C= ECHO_N= ECHO_T= 110842d1d20fcSmrgcase `echo -n x` in #((((( 110858ae04fa6Smrg-n*) 110862d1d20fcSmrg case `echo 'xy\c'` in 110878ae04fa6Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 110882d1d20fcSmrg xy) ECHO_C='\c';; 110892d1d20fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 110902d1d20fcSmrg ECHO_T=' ';; 110918ae04fa6Smrg esac;; 110928ae04fa6Smrg*) 110938ae04fa6Smrg ECHO_N='-n';; 110948ae04fa6Smrgesac 110958ae04fa6Smrg 110968ae04fa6Smrgrm -f conf$$ conf$$.exe conf$$.file 110978ae04fa6Smrgif test -d conf$$.dir; then 110988ae04fa6Smrg rm -f conf$$.dir/conf$$.file 110998ae04fa6Smrgelse 111008ae04fa6Smrg rm -f conf$$.dir 1110144af7230Smrg mkdir conf$$.dir 2>/dev/null 1110244af7230Smrgfi 1110344af7230Smrgif (echo >conf$$.file) 2>/dev/null; then 1110444af7230Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1110544af7230Smrg as_ln_s='ln -s' 1110644af7230Smrg # ... but there are two gotchas: 1110744af7230Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1110844af7230Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1110980f56f3aSmrg # In both cases, we have to default to `cp -pR'. 1111044af7230Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1111180f56f3aSmrg as_ln_s='cp -pR' 1111244af7230Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 1111344af7230Smrg as_ln_s=ln 1111444af7230Smrg else 1111580f56f3aSmrg as_ln_s='cp -pR' 1111644af7230Smrg fi 111178ae04fa6Smrgelse 1111880f56f3aSmrg as_ln_s='cp -pR' 111198ae04fa6Smrgfi 111208ae04fa6Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 111218ae04fa6Smrgrmdir conf$$.dir 2>/dev/null 111228ae04fa6Smrg 111232d1d20fcSmrg 111242d1d20fcSmrg# as_fn_mkdir_p 111252d1d20fcSmrg# ------------- 111262d1d20fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 111272d1d20fcSmrgas_fn_mkdir_p () 111282d1d20fcSmrg{ 111292d1d20fcSmrg 111302d1d20fcSmrg case $as_dir in #( 111312d1d20fcSmrg -*) as_dir=./$as_dir;; 111322d1d20fcSmrg esac 111332d1d20fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 111342d1d20fcSmrg as_dirs= 111352d1d20fcSmrg while :; do 111362d1d20fcSmrg case $as_dir in #( 111372d1d20fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 111382d1d20fcSmrg *) as_qdir=$as_dir;; 111392d1d20fcSmrg esac 111402d1d20fcSmrg as_dirs="'$as_qdir' $as_dirs" 111412d1d20fcSmrg as_dir=`$as_dirname -- "$as_dir" || 111422d1d20fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 111432d1d20fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 111442d1d20fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 111452d1d20fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 111462d1d20fcSmrg$as_echo X"$as_dir" | 111472d1d20fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 111482d1d20fcSmrg s//\1/ 111492d1d20fcSmrg q 111502d1d20fcSmrg } 111512d1d20fcSmrg /^X\(\/\/\)[^/].*/{ 111522d1d20fcSmrg s//\1/ 111532d1d20fcSmrg q 111542d1d20fcSmrg } 111552d1d20fcSmrg /^X\(\/\/\)$/{ 111562d1d20fcSmrg s//\1/ 111572d1d20fcSmrg q 111582d1d20fcSmrg } 111592d1d20fcSmrg /^X\(\/\).*/{ 111602d1d20fcSmrg s//\1/ 111612d1d20fcSmrg q 111622d1d20fcSmrg } 111632d1d20fcSmrg s/.*/./; q'` 111642d1d20fcSmrg test -d "$as_dir" && break 111652d1d20fcSmrg done 111662d1d20fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 111672d1d20fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 111682d1d20fcSmrg 111692d1d20fcSmrg 111702d1d20fcSmrg} # as_fn_mkdir_p 111718ae04fa6Smrgif mkdir -p . 2>/dev/null; then 111722d1d20fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 111738ae04fa6Smrgelse 111748ae04fa6Smrg test -d ./-p && rmdir ./-p 111758ae04fa6Smrg as_mkdir_p=false 111768ae04fa6Smrgfi 111778ae04fa6Smrg 1117880f56f3aSmrg 1117980f56f3aSmrg# as_fn_executable_p FILE 1118080f56f3aSmrg# ----------------------- 1118180f56f3aSmrg# Test if FILE is an executable regular file. 1118280f56f3aSmrgas_fn_executable_p () 1118380f56f3aSmrg{ 1118480f56f3aSmrg test -f "$1" && test -x "$1" 1118580f56f3aSmrg} # as_fn_executable_p 1118680f56f3aSmrgas_test_x='test -x' 1118780f56f3aSmrgas_executable_p=as_fn_executable_p 111888ae04fa6Smrg 111898ae04fa6Smrg# Sed expression to map a string onto a valid CPP name. 111908ae04fa6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 111918ae04fa6Smrg 111928ae04fa6Smrg# Sed expression to map a string onto a valid variable name. 111938ae04fa6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 111948ae04fa6Smrg 111958ae04fa6Smrg 111968ae04fa6Smrgexec 6>&1 111972d1d20fcSmrg## ----------------------------------- ## 111982d1d20fcSmrg## Main body of $CONFIG_STATUS script. ## 111992d1d20fcSmrg## ----------------------------------- ## 112002d1d20fcSmrg_ASEOF 112012d1d20fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 112028ae04fa6Smrg 112032d1d20fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 112042d1d20fcSmrg# Save the log message, to keep $0 and so on meaningful, and to 112058ae04fa6Smrg# report actual input values of CONFIG_FILES etc. instead of their 112068ae04fa6Smrg# values after options handling. 112078ae04fa6Smrgac_log=" 1120880f56f3aSmrgThis file was extended by xvinfo $as_me 1.1.3, which was 1120980f56f3aSmrggenerated by GNU Autoconf 2.69. Invocation command line was 112108ae04fa6Smrg 112118ae04fa6Smrg CONFIG_FILES = $CONFIG_FILES 112128ae04fa6Smrg CONFIG_HEADERS = $CONFIG_HEADERS 112138ae04fa6Smrg CONFIG_LINKS = $CONFIG_LINKS 112148ae04fa6Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 112158ae04fa6Smrg $ $0 $@ 112168ae04fa6Smrg 112178ae04fa6Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 112188ae04fa6Smrg" 112198ae04fa6Smrg 112208ae04fa6Smrg_ACEOF 112218ae04fa6Smrg 1122244af7230Smrgcase $ac_config_files in *" 1122344af7230Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1122444af7230Smrgesac 1122544af7230Smrg 1122644af7230Smrgcase $ac_config_headers in *" 1122744af7230Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 1122844af7230Smrgesac 1122944af7230Smrg 1123044af7230Smrg 1123144af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 112328ae04fa6Smrg# Files that config.status was made for. 112338ae04fa6Smrgconfig_files="$ac_config_files" 112348ae04fa6Smrgconfig_headers="$ac_config_headers" 112358ae04fa6Smrgconfig_commands="$ac_config_commands" 112368ae04fa6Smrg 112378ae04fa6Smrg_ACEOF 112388ae04fa6Smrg 1123944af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 112408ae04fa6Smrgac_cs_usage="\ 112412d1d20fcSmrg\`$as_me' instantiates files and other configuration actions 112422d1d20fcSmrgfrom templates according to the current configuration. Unless the files 112432d1d20fcSmrgand actions are specified as TAGs, all are instantiated by default. 112448ae04fa6Smrg 112452d1d20fcSmrgUsage: $0 [OPTION]... [TAG]... 112468ae04fa6Smrg 112478ae04fa6Smrg -h, --help print this help, then exit 112488ae04fa6Smrg -V, --version print version number and configuration settings, then exit 112492d1d20fcSmrg --config print configuration, then exit 1125044af7230Smrg -q, --quiet, --silent 1125144af7230Smrg do not print progress messages 112528ae04fa6Smrg -d, --debug don't remove temporary files 112538ae04fa6Smrg --recheck update $as_me by reconfiguring in the same conditions 1125444af7230Smrg --file=FILE[:TEMPLATE] 1125544af7230Smrg instantiate the configuration file FILE 1125644af7230Smrg --header=FILE[:TEMPLATE] 1125744af7230Smrg instantiate the configuration header FILE 112588ae04fa6Smrg 112598ae04fa6SmrgConfiguration files: 112608ae04fa6Smrg$config_files 112618ae04fa6Smrg 112628ae04fa6SmrgConfiguration headers: 112638ae04fa6Smrg$config_headers 112648ae04fa6Smrg 112658ae04fa6SmrgConfiguration commands: 112668ae04fa6Smrg$config_commands 112678ae04fa6Smrg 112682d1d20fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 112698ae04fa6Smrg 112708ae04fa6Smrg_ACEOF 1127144af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 112722d1d20fcSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 112738ae04fa6Smrgac_cs_version="\\ 1127480f56f3aSmrgxvinfo config.status 1.1.3 1127580f56f3aSmrgconfigured by $0, generated by GNU Autoconf 2.69, 112762d1d20fcSmrg with options \\"\$ac_cs_config\\" 112778ae04fa6Smrg 1127880f56f3aSmrgCopyright (C) 2012 Free Software Foundation, Inc. 112798ae04fa6SmrgThis config.status script is free software; the Free Software Foundation 112808ae04fa6Smrggives unlimited permission to copy, distribute and modify it." 112818ae04fa6Smrg 112828ae04fa6Smrgac_pwd='$ac_pwd' 112838ae04fa6Smrgsrcdir='$srcdir' 112848ae04fa6SmrgINSTALL='$INSTALL' 112858ae04fa6SmrgMKDIR_P='$MKDIR_P' 1128644af7230SmrgAWK='$AWK' 1128744af7230Smrgtest -n "\$AWK" || AWK=awk 112888ae04fa6Smrg_ACEOF 112898ae04fa6Smrg 1129044af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1129144af7230Smrg# The default lists apply if the user does not specify any file. 112928ae04fa6Smrgac_need_defaults=: 112938ae04fa6Smrgwhile test $# != 0 112948ae04fa6Smrgdo 112958ae04fa6Smrg case $1 in 112962d1d20fcSmrg --*=?*) 112978ae04fa6Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 112988ae04fa6Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 112998ae04fa6Smrg ac_shift=: 113008ae04fa6Smrg ;; 113012d1d20fcSmrg --*=) 113022d1d20fcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 113032d1d20fcSmrg ac_optarg= 113042d1d20fcSmrg ac_shift=: 113052d1d20fcSmrg ;; 113068ae04fa6Smrg *) 113078ae04fa6Smrg ac_option=$1 113088ae04fa6Smrg ac_optarg=$2 113098ae04fa6Smrg ac_shift=shift 113108ae04fa6Smrg ;; 113118ae04fa6Smrg esac 113128ae04fa6Smrg 113138ae04fa6Smrg case $ac_option in 113148ae04fa6Smrg # Handling of the options. 113158ae04fa6Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 113168ae04fa6Smrg ac_cs_recheck=: ;; 113178ae04fa6Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1131844af7230Smrg $as_echo "$ac_cs_version"; exit ;; 113192d1d20fcSmrg --config | --confi | --conf | --con | --co | --c ) 113202d1d20fcSmrg $as_echo "$ac_cs_config"; exit ;; 113218ae04fa6Smrg --debug | --debu | --deb | --de | --d | -d ) 113228ae04fa6Smrg debug=: ;; 113238ae04fa6Smrg --file | --fil | --fi | --f ) 113248ae04fa6Smrg $ac_shift 1132544af7230Smrg case $ac_optarg in 1132644af7230Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 113272d1d20fcSmrg '') as_fn_error $? "missing file argument" ;; 1132844af7230Smrg esac 113292d1d20fcSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 113308ae04fa6Smrg ac_need_defaults=false;; 113318ae04fa6Smrg --header | --heade | --head | --hea ) 113328ae04fa6Smrg $ac_shift 1133344af7230Smrg case $ac_optarg in 1133444af7230Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1133544af7230Smrg esac 113362d1d20fcSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 113378ae04fa6Smrg ac_need_defaults=false;; 113388ae04fa6Smrg --he | --h) 113398ae04fa6Smrg # Conflict between --help and --header 113402d1d20fcSmrg as_fn_error $? "ambiguous option: \`$1' 113412d1d20fcSmrgTry \`$0 --help' for more information.";; 113428ae04fa6Smrg --help | --hel | -h ) 1134344af7230Smrg $as_echo "$ac_cs_usage"; exit ;; 113448ae04fa6Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 113458ae04fa6Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 113468ae04fa6Smrg ac_cs_silent=: ;; 113478ae04fa6Smrg 113488ae04fa6Smrg # This is an error. 113492d1d20fcSmrg -*) as_fn_error $? "unrecognized option: \`$1' 113502d1d20fcSmrgTry \`$0 --help' for more information." ;; 113518ae04fa6Smrg 113522d1d20fcSmrg *) as_fn_append ac_config_targets " $1" 113538ae04fa6Smrg ac_need_defaults=false ;; 113548ae04fa6Smrg 113558ae04fa6Smrg esac 113568ae04fa6Smrg shift 113578ae04fa6Smrgdone 113588ae04fa6Smrg 113598ae04fa6Smrgac_configure_extra_args= 113608ae04fa6Smrg 113618ae04fa6Smrgif $ac_cs_silent; then 113628ae04fa6Smrg exec 6>/dev/null 113638ae04fa6Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 113648ae04fa6Smrgfi 113658ae04fa6Smrg 113668ae04fa6Smrg_ACEOF 1136744af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113688ae04fa6Smrgif \$ac_cs_recheck; then 1136980f56f3aSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1137044af7230Smrg shift 1137144af7230Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 1137244af7230Smrg CONFIG_SHELL='$SHELL' 113738ae04fa6Smrg export CONFIG_SHELL 1137444af7230Smrg exec "\$@" 113758ae04fa6Smrgfi 113768ae04fa6Smrg 113778ae04fa6Smrg_ACEOF 1137844af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113798ae04fa6Smrgexec 5>>config.log 113808ae04fa6Smrg{ 113818ae04fa6Smrg echo 113828ae04fa6Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 113838ae04fa6Smrg## Running $as_me. ## 113848ae04fa6Smrg_ASBOX 1138544af7230Smrg $as_echo "$ac_log" 113868ae04fa6Smrg} >&5 113878ae04fa6Smrg 113888ae04fa6Smrg_ACEOF 1138944af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113908ae04fa6Smrg# 113918ae04fa6Smrg# INIT-COMMANDS 113928ae04fa6Smrg# 113938ae04fa6SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 113948ae04fa6Smrg 113958ae04fa6Smrg_ACEOF 113968ae04fa6Smrg 1139744af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113988ae04fa6Smrg 113998ae04fa6Smrg# Handling of arguments. 114008ae04fa6Smrgfor ac_config_target in $ac_config_targets 114018ae04fa6Smrgdo 114028ae04fa6Smrg case $ac_config_target in 114038ae04fa6Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 114048ae04fa6Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 114058ae04fa6Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11406405c8079Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 114078ae04fa6Smrg 114082d1d20fcSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 114098ae04fa6Smrg esac 114108ae04fa6Smrgdone 114118ae04fa6Smrg 114128ae04fa6Smrg 114138ae04fa6Smrg# If the user did not use the arguments to specify the items to instantiate, 114148ae04fa6Smrg# then the envvar interface is used. Set only those that are not. 114158ae04fa6Smrg# We use the long form for the default assignment because of an extremely 114168ae04fa6Smrg# bizarre bug on SunOS 4.1.3. 114178ae04fa6Smrgif $ac_need_defaults; then 114188ae04fa6Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 114198ae04fa6Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 114208ae04fa6Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 114218ae04fa6Smrgfi 114228ae04fa6Smrg 114238ae04fa6Smrg# Have a temporary directory for convenience. Make it in the build tree 114248ae04fa6Smrg# simply because there is no reason against having it here, and in addition, 114258ae04fa6Smrg# creating and moving files from /tmp can sometimes cause problems. 114268ae04fa6Smrg# Hook for its removal unless debugging. 114278ae04fa6Smrg# Note that there is a small window in which the directory will not be cleaned: 114288ae04fa6Smrg# after its creation but before its name has been assigned to `$tmp'. 114298ae04fa6Smrg$debug || 114308ae04fa6Smrg{ 114312d1d20fcSmrg tmp= ac_tmp= 114328ae04fa6Smrg trap 'exit_status=$? 114332d1d20fcSmrg : "${ac_tmp:=$tmp}" 114342d1d20fcSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 114358ae04fa6Smrg' 0 114362d1d20fcSmrg trap 'as_fn_exit 1' 1 2 13 15 114378ae04fa6Smrg} 114388ae04fa6Smrg# Create a (secure) tmp directory for tmp files. 114398ae04fa6Smrg 114408ae04fa6Smrg{ 114418ae04fa6Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 114422d1d20fcSmrg test -d "$tmp" 114438ae04fa6Smrg} || 114448ae04fa6Smrg{ 114458ae04fa6Smrg tmp=./conf$$-$RANDOM 114468ae04fa6Smrg (umask 077 && mkdir "$tmp") 114472d1d20fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 114482d1d20fcSmrgac_tmp=$tmp 114498ae04fa6Smrg 1145044af7230Smrg# Set up the scripts for CONFIG_FILES section. 1145144af7230Smrg# No need to generate them if there are no CONFIG_FILES. 1145244af7230Smrg# This happens for instance with `./config.status config.h'. 114538ae04fa6Smrgif test -n "$CONFIG_FILES"; then 114548ae04fa6Smrg 114558ae04fa6Smrg 114562d1d20fcSmrgac_cr=`echo X | tr X '\015'` 114572d1d20fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 114582d1d20fcSmrg# But we know of no other shell where ac_cr would be empty at this 114592d1d20fcSmrg# point, so we can use a bashism as a fallback. 114602d1d20fcSmrgif test "x$ac_cr" = x; then 114612d1d20fcSmrg eval ac_cr=\$\'\\r\' 114622d1d20fcSmrgfi 1146344af7230Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1146444af7230Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1146544af7230Smrg ac_cs_awk_cr='\\r' 1146644af7230Smrgelse 1146744af7230Smrg ac_cs_awk_cr=$ac_cr 114688ae04fa6Smrgfi 114698ae04fa6Smrg 114702d1d20fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 114718ae04fa6Smrg_ACEOF 114728ae04fa6Smrg 114738ae04fa6Smrg 1147444af7230Smrg{ 1147544af7230Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 1147644af7230Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1147744af7230Smrg echo "_ACEOF" 1147844af7230Smrg} >conf$$subs.sh || 114792d1d20fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 114802d1d20fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 114818ae04fa6Smrgac_delim='%!_!# ' 114828ae04fa6Smrgfor ac_last_try in false false false false false :; do 1148344af7230Smrg . ./conf$$subs.sh || 114842d1d20fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 114858ae04fa6Smrg 1148644af7230Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1148744af7230Smrg if test $ac_delim_n = $ac_delim_num; then 114888ae04fa6Smrg break 114898ae04fa6Smrg elif $ac_last_try; then 114902d1d20fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 114918ae04fa6Smrg else 114928ae04fa6Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 114938ae04fa6Smrg fi 114948ae04fa6Smrgdone 1149544af7230Smrgrm -f conf$$subs.sh 114968ae04fa6Smrg 1149744af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 114982d1d20fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1149944af7230Smrg_ACEOF 1150044af7230Smrgsed -n ' 1150144af7230Smrgh 1150244af7230Smrgs/^/S["/; s/!.*/"]=/ 1150344af7230Smrgp 1150444af7230Smrgg 1150544af7230Smrgs/^[^!]*!// 1150644af7230Smrg:repl 1150744af7230Smrgt repl 1150844af7230Smrgs/'"$ac_delim"'$// 1150944af7230Smrgt delim 1151044af7230Smrg:nl 1151144af7230Smrgh 115122d1d20fcSmrgs/\(.\{148\}\)..*/\1/ 1151344af7230Smrgt more1 1151444af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1151544af7230Smrgp 1151644af7230Smrgn 1151744af7230Smrgb repl 1151844af7230Smrg:more1 1151944af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1152044af7230Smrgp 1152144af7230Smrgg 1152244af7230Smrgs/.\{148\}// 1152344af7230Smrgt nl 1152444af7230Smrg:delim 1152544af7230Smrgh 115262d1d20fcSmrgs/\(.\{148\}\)..*/\1/ 1152744af7230Smrgt more2 1152844af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1152944af7230Smrgp 1153044af7230Smrgb 1153144af7230Smrg:more2 1153244af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1153344af7230Smrgp 1153444af7230Smrgg 1153544af7230Smrgs/.\{148\}// 1153644af7230Smrgt delim 1153744af7230Smrg' <conf$$subs.awk | sed ' 1153844af7230Smrg/^[^""]/{ 1153944af7230Smrg N 1154044af7230Smrg s/\n// 1154144af7230Smrg} 1154244af7230Smrg' >>$CONFIG_STATUS || ac_write_fail=1 1154344af7230Smrgrm -f conf$$subs.awk 1154444af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1154544af7230Smrg_ACAWK 115462d1d20fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1154744af7230Smrg for (key in S) S_is_set[key] = 1 1154844af7230Smrg FS = "" 1154944af7230Smrg 1155044af7230Smrg} 1155144af7230Smrg{ 1155244af7230Smrg line = $ 0 1155344af7230Smrg nfields = split(line, field, "@") 1155444af7230Smrg substed = 0 1155544af7230Smrg len = length(field[1]) 1155644af7230Smrg for (i = 2; i < nfields; i++) { 1155744af7230Smrg key = field[i] 1155844af7230Smrg keylen = length(key) 1155944af7230Smrg if (S_is_set[key]) { 1156044af7230Smrg value = S[key] 1156144af7230Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1156244af7230Smrg len += length(value) + length(field[++i]) 1156344af7230Smrg substed = 1 1156444af7230Smrg } else 1156544af7230Smrg len += 1 + keylen 1156644af7230Smrg } 1156744af7230Smrg 1156844af7230Smrg print line 1156944af7230Smrg} 115708ae04fa6Smrg 1157144af7230Smrg_ACAWK 115728ae04fa6Smrg_ACEOF 1157344af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1157444af7230Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1157544af7230Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1157644af7230Smrgelse 1157744af7230Smrg cat 115782d1d20fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 115792d1d20fcSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 115808ae04fa6Smrg_ACEOF 115818ae04fa6Smrg 115822d1d20fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 115832d1d20fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 115848ae04fa6Smrg# trailing colons and then remove the whole line if VPATH becomes empty 115858ae04fa6Smrg# (actually we leave an empty line to preserve line numbers). 115868ae04fa6Smrgif test "x$srcdir" = x.; then 115872d1d20fcSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 115882d1d20fcSmrgh 115892d1d20fcSmrgs/// 115902d1d20fcSmrgs/^/:/ 115912d1d20fcSmrgs/[ ]*$/:/ 115922d1d20fcSmrgs/:\$(srcdir):/:/g 115932d1d20fcSmrgs/:\${srcdir}:/:/g 115942d1d20fcSmrgs/:@srcdir@:/:/g 115952d1d20fcSmrgs/^:*// 115968ae04fa6Smrgs/:*$// 115972d1d20fcSmrgx 115982d1d20fcSmrgs/\(=[ ]*\).*/\1/ 115992d1d20fcSmrgG 116002d1d20fcSmrgs/\n// 116018ae04fa6Smrgs/^[^=]*=[ ]*$// 116028ae04fa6Smrg}' 116038ae04fa6Smrgfi 116048ae04fa6Smrg 1160544af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 116068ae04fa6Smrgfi # test -n "$CONFIG_FILES" 116078ae04fa6Smrg 1160844af7230Smrg# Set up the scripts for CONFIG_HEADERS section. 1160944af7230Smrg# No need to generate them if there are no CONFIG_HEADERS. 1161044af7230Smrg# This happens for instance with `./config.status Makefile'. 1161144af7230Smrgif test -n "$CONFIG_HEADERS"; then 116122d1d20fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 1161344af7230SmrgBEGIN { 1161444af7230Smrg_ACEOF 1161544af7230Smrg 1161644af7230Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 1161744af7230Smrg# here-document in config.status, that substitutes the proper values into 1161844af7230Smrg# config.h.in to produce config.h. 1161944af7230Smrg 1162044af7230Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 1162144af7230Smrg# handling of long lines. 1162244af7230Smrgac_delim='%!_!# ' 1162344af7230Smrgfor ac_last_try in false false :; do 116242d1d20fcSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 116252d1d20fcSmrg if test -z "$ac_tt"; then 1162644af7230Smrg break 1162744af7230Smrg elif $ac_last_try; then 116282d1d20fcSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 1162944af7230Smrg else 1163044af7230Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1163144af7230Smrg fi 1163244af7230Smrgdone 1163344af7230Smrg 1163444af7230Smrg# For the awk script, D is an array of macro values keyed by name, 1163544af7230Smrg# likewise P contains macro parameters if any. Preserve backslash 1163644af7230Smrg# newline sequences. 1163744af7230Smrg 1163844af7230Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 1163944af7230Smrgsed -n ' 1164044af7230Smrgs/.\{148\}/&'"$ac_delim"'/g 1164144af7230Smrgt rset 1164244af7230Smrg:rset 1164344af7230Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 1164444af7230Smrgt def 1164544af7230Smrgd 1164644af7230Smrg:def 1164744af7230Smrgs/\\$// 1164844af7230Smrgt bsnl 1164944af7230Smrgs/["\\]/\\&/g 1165044af7230Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1165144af7230SmrgD["\1"]=" \3"/p 1165244af7230Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 1165344af7230Smrgd 1165444af7230Smrg:bsnl 1165544af7230Smrgs/["\\]/\\&/g 1165644af7230Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1165744af7230SmrgD["\1"]=" \3\\\\\\n"\\/p 1165844af7230Smrgt cont 1165944af7230Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 1166044af7230Smrgt cont 1166144af7230Smrgd 1166244af7230Smrg:cont 1166344af7230Smrgn 1166444af7230Smrgs/.\{148\}/&'"$ac_delim"'/g 1166544af7230Smrgt clear 1166644af7230Smrg:clear 1166744af7230Smrgs/\\$// 1166844af7230Smrgt bsnlc 1166944af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 1167044af7230Smrgd 1167144af7230Smrg:bsnlc 1167244af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 1167344af7230Smrgb cont 1167444af7230Smrg' <confdefs.h | sed ' 1167544af7230Smrgs/'"$ac_delim"'/"\\\ 1167644af7230Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 1167744af7230Smrg 1167844af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1167944af7230Smrg for (key in D) D_is_set[key] = 1 1168044af7230Smrg FS = "" 1168144af7230Smrg} 1168244af7230Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 1168344af7230Smrg line = \$ 0 1168444af7230Smrg split(line, arg, " ") 1168544af7230Smrg if (arg[1] == "#") { 1168644af7230Smrg defundef = arg[2] 1168744af7230Smrg mac1 = arg[3] 1168844af7230Smrg } else { 1168944af7230Smrg defundef = substr(arg[1], 2) 1169044af7230Smrg mac1 = arg[2] 1169144af7230Smrg } 1169244af7230Smrg split(mac1, mac2, "(") #) 1169344af7230Smrg macro = mac2[1] 1169444af7230Smrg prefix = substr(line, 1, index(line, defundef) - 1) 1169544af7230Smrg if (D_is_set[macro]) { 1169644af7230Smrg # Preserve the white space surrounding the "#". 1169744af7230Smrg print prefix "define", macro P[macro] D[macro] 1169844af7230Smrg next 1169944af7230Smrg } else { 1170044af7230Smrg # Replace #undef with comments. This is necessary, for example, 1170144af7230Smrg # in the case of _POSIX_SOURCE, which is predefined and required 1170244af7230Smrg # on some systems where configure will not decide to define it. 1170344af7230Smrg if (defundef == "undef") { 1170444af7230Smrg print "/*", prefix defundef, macro, "*/" 1170544af7230Smrg next 1170644af7230Smrg } 1170744af7230Smrg } 1170844af7230Smrg} 1170944af7230Smrg{ print } 1171044af7230Smrg_ACAWK 1171144af7230Smrg_ACEOF 1171244af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117132d1d20fcSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 1171444af7230Smrgfi # test -n "$CONFIG_HEADERS" 1171544af7230Smrg 117168ae04fa6Smrg 1171744af7230Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 1171844af7230Smrgshift 1171944af7230Smrgfor ac_tag 117208ae04fa6Smrgdo 117218ae04fa6Smrg case $ac_tag in 117228ae04fa6Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 117238ae04fa6Smrg esac 117248ae04fa6Smrg case $ac_mode$ac_tag in 117258ae04fa6Smrg :[FHL]*:*);; 117262d1d20fcSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 117278ae04fa6Smrg :[FH]-) ac_tag=-:-;; 117288ae04fa6Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 117298ae04fa6Smrg esac 117308ae04fa6Smrg ac_save_IFS=$IFS 117318ae04fa6Smrg IFS=: 117328ae04fa6Smrg set x $ac_tag 117338ae04fa6Smrg IFS=$ac_save_IFS 117348ae04fa6Smrg shift 117358ae04fa6Smrg ac_file=$1 117368ae04fa6Smrg shift 117378ae04fa6Smrg 117388ae04fa6Smrg case $ac_mode in 117398ae04fa6Smrg :L) ac_source=$1;; 117408ae04fa6Smrg :[FH]) 117418ae04fa6Smrg ac_file_inputs= 117428ae04fa6Smrg for ac_f 117438ae04fa6Smrg do 117448ae04fa6Smrg case $ac_f in 117452d1d20fcSmrg -) ac_f="$ac_tmp/stdin";; 117468ae04fa6Smrg *) # Look for the file first in the build tree, then in the source tree 117478ae04fa6Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 117488ae04fa6Smrg # because $ac_f cannot contain `:'. 117498ae04fa6Smrg test -f "$ac_f" || 117508ae04fa6Smrg case $ac_f in 117518ae04fa6Smrg [\\/$]*) false;; 117528ae04fa6Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 117538ae04fa6Smrg esac || 117542d1d20fcSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 117558ae04fa6Smrg esac 1175644af7230Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 117572d1d20fcSmrg as_fn_append ac_file_inputs " '$ac_f'" 117588ae04fa6Smrg done 117598ae04fa6Smrg 117608ae04fa6Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 117618ae04fa6Smrg # use $as_me), people would be surprised to read: 117628ae04fa6Smrg # /* config.h. Generated by config.status. */ 1176344af7230Smrg configure_input='Generated from '` 1176444af7230Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1176544af7230Smrg `' by configure.' 117668ae04fa6Smrg if test x"$ac_file" != x-; then 117678ae04fa6Smrg configure_input="$ac_file. $configure_input" 117682d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1176944af7230Smrg$as_echo "$as_me: creating $ac_file" >&6;} 117708ae04fa6Smrg fi 1177144af7230Smrg # Neutralize special characters interpreted by sed in replacement strings. 1177244af7230Smrg case $configure_input in #( 1177344af7230Smrg *\&* | *\|* | *\\* ) 1177444af7230Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 1177544af7230Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1177644af7230Smrg *) ac_sed_conf_input=$configure_input;; 1177744af7230Smrg esac 117788ae04fa6Smrg 117798ae04fa6Smrg case $ac_tag in 117802d1d20fcSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 117812d1d20fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 117828ae04fa6Smrg esac 117838ae04fa6Smrg ;; 117848ae04fa6Smrg esac 117858ae04fa6Smrg 117868ae04fa6Smrg ac_dir=`$as_dirname -- "$ac_file" || 117878ae04fa6Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 117888ae04fa6Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 117898ae04fa6Smrg X"$ac_file" : 'X\(//\)$' \| \ 117908ae04fa6Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1179144af7230Smrg$as_echo X"$ac_file" | 117928ae04fa6Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 117938ae04fa6Smrg s//\1/ 117948ae04fa6Smrg q 117958ae04fa6Smrg } 117968ae04fa6Smrg /^X\(\/\/\)[^/].*/{ 117978ae04fa6Smrg s//\1/ 117988ae04fa6Smrg q 117998ae04fa6Smrg } 118008ae04fa6Smrg /^X\(\/\/\)$/{ 118018ae04fa6Smrg s//\1/ 118028ae04fa6Smrg q 118038ae04fa6Smrg } 118048ae04fa6Smrg /^X\(\/\).*/{ 118058ae04fa6Smrg s//\1/ 118068ae04fa6Smrg q 118078ae04fa6Smrg } 118088ae04fa6Smrg s/.*/./; q'` 118092d1d20fcSmrg as_dir="$ac_dir"; as_fn_mkdir_p 118108ae04fa6Smrg ac_builddir=. 118118ae04fa6Smrg 118128ae04fa6Smrgcase "$ac_dir" in 118138ae04fa6Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 118148ae04fa6Smrg*) 1181544af7230Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 118168ae04fa6Smrg # A ".." for each directory in $ac_dir_suffix. 1181744af7230Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 118188ae04fa6Smrg case $ac_top_builddir_sub in 118198ae04fa6Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 118208ae04fa6Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 118218ae04fa6Smrg esac ;; 118228ae04fa6Smrgesac 118238ae04fa6Smrgac_abs_top_builddir=$ac_pwd 118248ae04fa6Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 118258ae04fa6Smrg# for backward compatibility: 118268ae04fa6Smrgac_top_builddir=$ac_top_build_prefix 118278ae04fa6Smrg 118288ae04fa6Smrgcase $srcdir in 118298ae04fa6Smrg .) # We are building in place. 118308ae04fa6Smrg ac_srcdir=. 118318ae04fa6Smrg ac_top_srcdir=$ac_top_builddir_sub 118328ae04fa6Smrg ac_abs_top_srcdir=$ac_pwd ;; 118338ae04fa6Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 118348ae04fa6Smrg ac_srcdir=$srcdir$ac_dir_suffix; 118358ae04fa6Smrg ac_top_srcdir=$srcdir 118368ae04fa6Smrg ac_abs_top_srcdir=$srcdir ;; 118378ae04fa6Smrg *) # Relative name. 118388ae04fa6Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 118398ae04fa6Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 118408ae04fa6Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 118418ae04fa6Smrgesac 118428ae04fa6Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 118438ae04fa6Smrg 118448ae04fa6Smrg 118458ae04fa6Smrg case $ac_mode in 118468ae04fa6Smrg :F) 118478ae04fa6Smrg # 118488ae04fa6Smrg # CONFIG_FILE 118498ae04fa6Smrg # 118508ae04fa6Smrg 118518ae04fa6Smrg case $INSTALL in 118528ae04fa6Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 118538ae04fa6Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 118548ae04fa6Smrg esac 118558ae04fa6Smrg ac_MKDIR_P=$MKDIR_P 118568ae04fa6Smrg case $MKDIR_P in 118578ae04fa6Smrg [\\/$]* | ?:[\\/]* ) ;; 118588ae04fa6Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 118598ae04fa6Smrg esac 118608ae04fa6Smrg_ACEOF 118618ae04fa6Smrg 1186244af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118638ae04fa6Smrg# If the template does not know about datarootdir, expand it. 118648ae04fa6Smrg# FIXME: This hack should be removed a few years after 2.60. 118658ae04fa6Smrgac_datarootdir_hack=; ac_datarootdir_seen= 1186644af7230Smrgac_sed_dataroot=' 1186744af7230Smrg/datarootdir/ { 118688ae04fa6Smrg p 118698ae04fa6Smrg q 118708ae04fa6Smrg} 118718ae04fa6Smrg/@datadir@/p 118728ae04fa6Smrg/@docdir@/p 118738ae04fa6Smrg/@infodir@/p 118748ae04fa6Smrg/@localedir@/p 118752d1d20fcSmrg/@mandir@/p' 1187644af7230Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 118778ae04fa6Smrg*datarootdir*) ac_datarootdir_seen=yes;; 118788ae04fa6Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 118792d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1188044af7230Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 118818ae04fa6Smrg_ACEOF 1188244af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118838ae04fa6Smrg ac_datarootdir_hack=' 118848ae04fa6Smrg s&@datadir@&$datadir&g 118858ae04fa6Smrg s&@docdir@&$docdir&g 118868ae04fa6Smrg s&@infodir@&$infodir&g 118878ae04fa6Smrg s&@localedir@&$localedir&g 118888ae04fa6Smrg s&@mandir@&$mandir&g 118892d1d20fcSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 118908ae04fa6Smrgesac 118918ae04fa6Smrg_ACEOF 118928ae04fa6Smrg 118938ae04fa6Smrg# Neutralize VPATH when `$srcdir' = `.'. 118948ae04fa6Smrg# Shell code in configure.ac might set extrasub. 118958ae04fa6Smrg# FIXME: do we really want to maintain this feature? 1189644af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1189744af7230Smrgac_sed_extra="$ac_vpsub 118988ae04fa6Smrg$extrasub 118998ae04fa6Smrg_ACEOF 1190044af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119018ae04fa6Smrg:t 119028ae04fa6Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1190344af7230Smrgs|@configure_input@|$ac_sed_conf_input|;t t 119048ae04fa6Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1190544af7230Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 119068ae04fa6Smrgs&@srcdir@&$ac_srcdir&;t t 119078ae04fa6Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 119088ae04fa6Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 119098ae04fa6Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 119108ae04fa6Smrgs&@builddir@&$ac_builddir&;t t 119118ae04fa6Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 119128ae04fa6Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 119138ae04fa6Smrgs&@INSTALL@&$ac_INSTALL&;t t 119148ae04fa6Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 119158ae04fa6Smrg$ac_datarootdir_hack 1191644af7230Smrg" 119172d1d20fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 119182d1d20fcSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 119198ae04fa6Smrg 119208ae04fa6Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 119212d1d20fcSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 119222d1d20fcSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 119232d1d20fcSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 119242d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 119252d1d20fcSmrgwhich seems to be undefined. Please make sure it is defined" >&5 1192644af7230Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 119272d1d20fcSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 119288ae04fa6Smrg 119292d1d20fcSmrg rm -f "$ac_tmp/stdin" 119308ae04fa6Smrg case $ac_file in 119312d1d20fcSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 119322d1d20fcSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1193344af7230Smrg esac \ 119342d1d20fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 119358ae04fa6Smrg ;; 119368ae04fa6Smrg :H) 119378ae04fa6Smrg # 119388ae04fa6Smrg # CONFIG_HEADER 119398ae04fa6Smrg # 119408ae04fa6Smrg if test x"$ac_file" != x-; then 1194144af7230Smrg { 1194244af7230Smrg $as_echo "/* $configure_input */" \ 119432d1d20fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 119442d1d20fcSmrg } >"$ac_tmp/config.h" \ 119452d1d20fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 119462d1d20fcSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 119472d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 1194844af7230Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 119498ae04fa6Smrg else 1195044af7230Smrg rm -f "$ac_file" 119512d1d20fcSmrg mv "$ac_tmp/config.h" "$ac_file" \ 119522d1d20fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 119538ae04fa6Smrg fi 119548ae04fa6Smrg else 1195544af7230Smrg $as_echo "/* $configure_input */" \ 119562d1d20fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 119572d1d20fcSmrg || as_fn_error $? "could not create -" "$LINENO" 5 119588ae04fa6Smrg fi 1195944af7230Smrg# Compute "$ac_file"'s index in $config_headers. 1196044af7230Smrg_am_arg="$ac_file" 119618ae04fa6Smrg_am_stamp_count=1 119628ae04fa6Smrgfor _am_header in $config_headers :; do 119638ae04fa6Smrg case $_am_header in 1196444af7230Smrg $_am_arg | $_am_arg:* ) 119658ae04fa6Smrg break ;; 119668ae04fa6Smrg * ) 119678ae04fa6Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 119688ae04fa6Smrg esac 119698ae04fa6Smrgdone 1197044af7230Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 1197144af7230Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1197244af7230Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 1197344af7230Smrg X"$_am_arg" : 'X\(//\)$' \| \ 1197444af7230Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1197544af7230Smrg$as_echo X"$_am_arg" | 119768ae04fa6Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 119778ae04fa6Smrg s//\1/ 119788ae04fa6Smrg q 119798ae04fa6Smrg } 119808ae04fa6Smrg /^X\(\/\/\)[^/].*/{ 119818ae04fa6Smrg s//\1/ 119828ae04fa6Smrg q 119838ae04fa6Smrg } 119848ae04fa6Smrg /^X\(\/\/\)$/{ 119858ae04fa6Smrg s//\1/ 119868ae04fa6Smrg q 119878ae04fa6Smrg } 119888ae04fa6Smrg /^X\(\/\).*/{ 119898ae04fa6Smrg s//\1/ 119908ae04fa6Smrg q 119918ae04fa6Smrg } 119928ae04fa6Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 119938ae04fa6Smrg ;; 119948ae04fa6Smrg 119952d1d20fcSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1199644af7230Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 119978ae04fa6Smrg ;; 119988ae04fa6Smrg esac 119998ae04fa6Smrg 120008ae04fa6Smrg 120018ae04fa6Smrg case $ac_file$ac_mode in 1200244af7230Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1200380f56f3aSmrg # Older Autoconf quotes --file arguments for eval, but not when files 1200444af7230Smrg # are listed without --file. Let's play safe and only enable the eval 1200544af7230Smrg # if we detect the quoting. 1200644af7230Smrg case $CONFIG_FILES in 1200744af7230Smrg *\'*) eval set x "$CONFIG_FILES" ;; 1200844af7230Smrg *) set x $CONFIG_FILES ;; 1200944af7230Smrg esac 1201044af7230Smrg shift 1201144af7230Smrg for mf 1201244af7230Smrg do 1201344af7230Smrg # Strip MF so we end up with the name of the file. 1201444af7230Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 1201544af7230Smrg # Check whether this is an Automake generated Makefile or not. 1201680f56f3aSmrg # We used to match only the files named 'Makefile.in', but 1201744af7230Smrg # some people rename them; so instead we look at the file content. 1201844af7230Smrg # Grep'ing the first line is not enough: some people post-process 1201944af7230Smrg # each Makefile.in and add a new line on top of each file to say so. 1202044af7230Smrg # Grep'ing the whole file is not good either: AIX grep has a line 1202144af7230Smrg # limit of 2048, but all sed's we know have understand at least 4000. 1202244af7230Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1202344af7230Smrg dirpart=`$as_dirname -- "$mf" || 120248ae04fa6Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 120258ae04fa6Smrg X"$mf" : 'X\(//\)[^/]' \| \ 120268ae04fa6Smrg X"$mf" : 'X\(//\)$' \| \ 120278ae04fa6Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 1202844af7230Smrg$as_echo X"$mf" | 120298ae04fa6Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 120308ae04fa6Smrg s//\1/ 120318ae04fa6Smrg q 120328ae04fa6Smrg } 120338ae04fa6Smrg /^X\(\/\/\)[^/].*/{ 120348ae04fa6Smrg s//\1/ 120358ae04fa6Smrg q 120368ae04fa6Smrg } 120378ae04fa6Smrg /^X\(\/\/\)$/{ 120388ae04fa6Smrg s//\1/ 120398ae04fa6Smrg q 120408ae04fa6Smrg } 120418ae04fa6Smrg /^X\(\/\).*/{ 120428ae04fa6Smrg s//\1/ 120438ae04fa6Smrg q 120448ae04fa6Smrg } 120458ae04fa6Smrg s/.*/./; q'` 1204644af7230Smrg else 1204744af7230Smrg continue 1204844af7230Smrg fi 1204944af7230Smrg # Extract the definition of DEPDIR, am__include, and am__quote 1205080f56f3aSmrg # from the Makefile without running 'make'. 1205144af7230Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 1205244af7230Smrg test -z "$DEPDIR" && continue 1205344af7230Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 1205480f56f3aSmrg test -z "$am__include" && continue 1205544af7230Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 1205644af7230Smrg # Find all dependency output files, they are included files with 1205744af7230Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 1205844af7230Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 1205944af7230Smrg # expansion. 1206044af7230Smrg for file in `sed -n " 1206144af7230Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1206280f56f3aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 1206344af7230Smrg # Make sure the directory exists. 1206444af7230Smrg test -f "$dirpart/$file" && continue 1206544af7230Smrg fdir=`$as_dirname -- "$file" || 120668ae04fa6Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 120678ae04fa6Smrg X"$file" : 'X\(//\)[^/]' \| \ 120688ae04fa6Smrg X"$file" : 'X\(//\)$' \| \ 120698ae04fa6Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 1207044af7230Smrg$as_echo X"$file" | 120718ae04fa6Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 120728ae04fa6Smrg s//\1/ 120738ae04fa6Smrg q 120748ae04fa6Smrg } 120758ae04fa6Smrg /^X\(\/\/\)[^/].*/{ 120768ae04fa6Smrg s//\1/ 120778ae04fa6Smrg q 120788ae04fa6Smrg } 120798ae04fa6Smrg /^X\(\/\/\)$/{ 120808ae04fa6Smrg s//\1/ 120818ae04fa6Smrg q 120828ae04fa6Smrg } 120838ae04fa6Smrg /^X\(\/\).*/{ 120848ae04fa6Smrg s//\1/ 120858ae04fa6Smrg q 120868ae04fa6Smrg } 120878ae04fa6Smrg s/.*/./; q'` 120882d1d20fcSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 1208944af7230Smrg # echo "creating $dirpart/$file" 1209044af7230Smrg echo '# dummy' > "$dirpart/$file" 1209144af7230Smrg done 120928ae04fa6Smrg done 1209344af7230Smrg} 120948ae04fa6Smrg ;; 120958ae04fa6Smrg 120968ae04fa6Smrg esac 120978ae04fa6Smrgdone # for ac_tag 120988ae04fa6Smrg 120998ae04fa6Smrg 121002d1d20fcSmrgas_fn_exit 0 121018ae04fa6Smrg_ACEOF 121028ae04fa6Smrgac_clean_files=$ac_clean_files_save 121038ae04fa6Smrg 1210444af7230Smrgtest $ac_write_fail = 0 || 121052d1d20fcSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1210644af7230Smrg 121078ae04fa6Smrg 121088ae04fa6Smrg# configure is writing to config.log, and then calls config.status. 121098ae04fa6Smrg# config.status does its own redirection, appending to config.log. 121108ae04fa6Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 121118ae04fa6Smrg# by configure, so config.status won't be able to write to it; its 121128ae04fa6Smrg# output is simply discarded. So we exec the FD to /dev/null, 121138ae04fa6Smrg# effectively closing config.log, so it can be properly (re)opened and 121148ae04fa6Smrg# appended to by config.status. When coming back to configure, we 121158ae04fa6Smrg# need to make the FD available again. 121168ae04fa6Smrgif test "$no_create" != yes; then 121178ae04fa6Smrg ac_cs_success=: 121188ae04fa6Smrg ac_config_status_args= 121198ae04fa6Smrg test "$silent" = yes && 121208ae04fa6Smrg ac_config_status_args="$ac_config_status_args --quiet" 121218ae04fa6Smrg exec 5>/dev/null 121228ae04fa6Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 121238ae04fa6Smrg exec 5>>config.log 121248ae04fa6Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 121258ae04fa6Smrg # would make configure fail if this is the last instruction. 121262d1d20fcSmrg $ac_cs_success || as_fn_exit 1 121278ae04fa6Smrgfi 1212844af7230Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 121292d1d20fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1213044af7230Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1213144af7230Smrgfi 121328ae04fa6Smrg 12133