configure revision 96402570
17a0395d0Smrg#! /bin/sh 27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles. 396402570Smrg# Generated by GNU Autoconf 2.68 for xauth 1.0.7. 47a0395d0Smrg# 57a0395d0Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 67a0395d0Smrg# 72adc0320Smrg# 87a0395d0Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 92adc0320Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 102adc0320Smrg# Foundation, Inc. 112adc0320Smrg# 122adc0320Smrg# 137a0395d0Smrg# This configure script is free software; the Free Software Foundation 147a0395d0Smrg# gives unlimited permission to copy, distribute and modify it. 152adc0320Smrg## -------------------- ## 162adc0320Smrg## M4sh Initialization. ## 172adc0320Smrg## -------------------- ## 187a0395d0Smrg 197a0395d0Smrg# Be more Bourne compatible 207a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 212adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 227a0395d0Smrg emulate sh 237a0395d0Smrg NULLCMD=: 247366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 257a0395d0Smrg # is contrary to our usage. Disable this feature. 267a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 277a0395d0Smrg setopt NO_GLOB_SUBST 287a0395d0Smrgelse 292adc0320Smrg case `(set -o) 2>/dev/null` in #( 302adc0320Smrg *posix*) : 312adc0320Smrg set -o posix ;; #( 322adc0320Smrg *) : 332adc0320Smrg ;; 347a0395d0Smrgesac 357a0395d0Smrgfi 367a0395d0Smrg 377a0395d0Smrg 387366012aSmrgas_nl=' 397366012aSmrg' 407366012aSmrgexport as_nl 417366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 427366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 437366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 447366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 452adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 462adc0320Smrg# but without wasting forks for bash or zsh. 472adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 482adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 492adc0320Smrg as_echo='print -r --' 502adc0320Smrg as_echo_n='print -rn --' 512adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 527366012aSmrg as_echo='printf %s\n' 537366012aSmrg as_echo_n='printf %s' 547366012aSmrgelse 557366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 567366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 577366012aSmrg as_echo_n='/usr/ucb/echo -n' 587a0395d0Smrg else 597366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 607366012aSmrg as_echo_n_body='eval 617366012aSmrg arg=$1; 622adc0320Smrg case $arg in #( 637366012aSmrg *"$as_nl"*) 647366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 657366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 667366012aSmrg esac; 677366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 687366012aSmrg ' 697366012aSmrg export as_echo_n_body 707366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 717a0395d0Smrg fi 727366012aSmrg export as_echo_body 737366012aSmrg as_echo='sh -c $as_echo_body as_echo' 747366012aSmrgfi 757366012aSmrg 767366012aSmrg# The user is always right. 777366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 787366012aSmrg PATH_SEPARATOR=: 797366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 807366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 817366012aSmrg PATH_SEPARATOR=';' 827366012aSmrg } 837a0395d0Smrgfi 847a0395d0Smrg 857a0395d0Smrg 867a0395d0Smrg# IFS 877a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 887a0395d0Smrg# there to prevent editors from complaining about space-tab. 897a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 907a0395d0Smrg# splitting by setting IFS to empty value.) 917a0395d0SmrgIFS=" "" $as_nl" 927a0395d0Smrg 937a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 942adc0320Smrgas_myself= 952adc0320Smrgcase $0 in #(( 967a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 977a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 987a0395d0Smrgfor as_dir in $PATH 997a0395d0Smrgdo 1007a0395d0Smrg IFS=$as_save_IFS 1017a0395d0Smrg test -z "$as_dir" && as_dir=. 1022adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1032adc0320Smrg done 1047a0395d0SmrgIFS=$as_save_IFS 1057a0395d0Smrg 1067a0395d0Smrg ;; 1077a0395d0Smrgesac 1087a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1097a0395d0Smrg# in which case we are not to be found in the path. 1107a0395d0Smrgif test "x$as_myself" = x; then 1117a0395d0Smrg as_myself=$0 1127a0395d0Smrgfi 1137a0395d0Smrgif test ! -f "$as_myself"; then 1147366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1152adc0320Smrg exit 1 1167a0395d0Smrgfi 1177a0395d0Smrg 1182adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1192adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1202adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 1212adc0320Smrg# trigger a bug in pdksh 5.2.14. 1222adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1232adc0320Smrgdo eval test x\${$as_var+set} = xset \ 1242adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1257a0395d0Smrgdone 1267a0395d0SmrgPS1='$ ' 1277a0395d0SmrgPS2='> ' 1287a0395d0SmrgPS4='+ ' 1297a0395d0Smrg 1307a0395d0Smrg# NLS nuisances. 1317366012aSmrgLC_ALL=C 1327366012aSmrgexport LC_ALL 1337366012aSmrgLANGUAGE=C 1347366012aSmrgexport LANGUAGE 1357a0395d0Smrg 1362adc0320Smrg# CDPATH. 1372adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1382adc0320Smrg 1392adc0320Smrgif test "x$CONFIG_SHELL" = x; then 1402adc0320Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1412adc0320Smrg emulate sh 1422adc0320Smrg NULLCMD=: 1432adc0320Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1442adc0320Smrg # is contrary to our usage. Disable this feature. 1452adc0320Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1462adc0320Smrg setopt NO_GLOB_SUBST 1472adc0320Smrgelse 1482adc0320Smrg case \`(set -o) 2>/dev/null\` in #( 1492adc0320Smrg *posix*) : 1502adc0320Smrg set -o posix ;; #( 1512adc0320Smrg *) : 1522adc0320Smrg ;; 1532adc0320Smrgesac 1542adc0320Smrgfi 1552adc0320Smrg" 1562adc0320Smrg as_required="as_fn_return () { (exit \$1); } 1572adc0320Smrgas_fn_success () { as_fn_return 0; } 1582adc0320Smrgas_fn_failure () { as_fn_return 1; } 1592adc0320Smrgas_fn_ret_success () { return 0; } 1602adc0320Smrgas_fn_ret_failure () { return 1; } 1612adc0320Smrg 1622adc0320Smrgexitcode=0 1632adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1642adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1652adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1662adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1672adc0320Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1682adc0320Smrg 1692adc0320Smrgelse 1702adc0320Smrg exitcode=1; echo positional parameters were not saved. 1712adc0320Smrgfi 1722adc0320Smrgtest x\$exitcode = x0 || exit 1" 1732adc0320Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1742adc0320Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1752adc0320Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1762adc0320Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1772adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1782adc0320Smrg if (eval "$as_required") 2>/dev/null; then : 1792adc0320Smrg as_have_required=yes 1802adc0320Smrgelse 1812adc0320Smrg as_have_required=no 1822adc0320Smrgfi 1832adc0320Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1842adc0320Smrg 1852adc0320Smrgelse 1862adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872adc0320Smrgas_found=false 1882adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1892adc0320Smrgdo 1902adc0320Smrg IFS=$as_save_IFS 1912adc0320Smrg test -z "$as_dir" && as_dir=. 1922adc0320Smrg as_found=: 1932adc0320Smrg case $as_dir in #( 1942adc0320Smrg /*) 1952adc0320Smrg for as_base in sh bash ksh sh5; do 1962adc0320Smrg # Try only shells that exist, to save several forks. 1972adc0320Smrg as_shell=$as_dir/$as_base 1982adc0320Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 1992adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2002adc0320Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2012adc0320Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2022adc0320Smrg break 2 2032adc0320Smrgfi 2042adc0320Smrgfi 2052adc0320Smrg done;; 2062adc0320Smrg esac 2072adc0320Smrg as_found=false 2082adc0320Smrgdone 2092adc0320Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2102adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2112adc0320Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2122adc0320Smrgfi; } 2132adc0320SmrgIFS=$as_save_IFS 2142adc0320Smrg 2152adc0320Smrg 2162adc0320Smrg if test "x$CONFIG_SHELL" != x; then : 2172adc0320Smrg # We cannot yet assume a decent shell, so we have to provide a 2182adc0320Smrg # neutralization value for shells without unset; and this also 2192adc0320Smrg # works around shells that cannot unset nonexistent variables. 2202adc0320Smrg # Preserve -v and -x to the replacement shell. 2212adc0320Smrg BASH_ENV=/dev/null 2222adc0320Smrg ENV=/dev/null 2232adc0320Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2242adc0320Smrg export CONFIG_SHELL 2252adc0320Smrg case $- in # (((( 2262adc0320Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2272adc0320Smrg *v* ) as_opts=-v ;; 2282adc0320Smrg *x* ) as_opts=-x ;; 2292adc0320Smrg * ) as_opts= ;; 2302adc0320Smrg esac 2312adc0320Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2322adc0320Smrgfi 2332adc0320Smrg 2342adc0320Smrg if test x$as_have_required = xno; then : 2352adc0320Smrg $as_echo "$0: This script requires a shell more modern than all" 2362adc0320Smrg $as_echo "$0: the shells that I found on your system." 2372adc0320Smrg if test x${ZSH_VERSION+set} = xset ; then 2382adc0320Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2392adc0320Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2402adc0320Smrg else 2412adc0320Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2422adc0320Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2432adc0320Smrg$0: about your system, including any error possibly output 2442adc0320Smrg$0: before this message. Then install a modern shell, or 2452adc0320Smrg$0: manually run the script under such a shell if you do 2462adc0320Smrg$0: have one." 2472adc0320Smrg fi 2482adc0320Smrg exit 1 2492adc0320Smrgfi 2502adc0320Smrgfi 2512adc0320Smrgfi 2522adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2532adc0320Smrgexport SHELL 2542adc0320Smrg# Unset more variables known to interfere with behavior of common tools. 2552adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2562adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2572adc0320Smrg 2582adc0320Smrg## --------------------- ## 2592adc0320Smrg## M4sh Shell Functions. ## 2602adc0320Smrg## --------------------- ## 2612adc0320Smrg# as_fn_unset VAR 2622adc0320Smrg# --------------- 2632adc0320Smrg# Portably unset VAR. 2642adc0320Smrgas_fn_unset () 2652adc0320Smrg{ 2662adc0320Smrg { eval $1=; unset $1;} 2672adc0320Smrg} 2682adc0320Smrgas_unset=as_fn_unset 2692adc0320Smrg 2702adc0320Smrg# as_fn_set_status STATUS 2712adc0320Smrg# ----------------------- 2722adc0320Smrg# Set $? to STATUS, without forking. 2732adc0320Smrgas_fn_set_status () 2742adc0320Smrg{ 2752adc0320Smrg return $1 2762adc0320Smrg} # as_fn_set_status 2772adc0320Smrg 2782adc0320Smrg# as_fn_exit STATUS 2792adc0320Smrg# ----------------- 2802adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2812adc0320Smrgas_fn_exit () 2822adc0320Smrg{ 2832adc0320Smrg set +e 2842adc0320Smrg as_fn_set_status $1 2852adc0320Smrg exit $1 2862adc0320Smrg} # as_fn_exit 2872adc0320Smrg 2882adc0320Smrg# as_fn_mkdir_p 2892adc0320Smrg# ------------- 2902adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 2912adc0320Smrgas_fn_mkdir_p () 2922adc0320Smrg{ 2932adc0320Smrg 2942adc0320Smrg case $as_dir in #( 2952adc0320Smrg -*) as_dir=./$as_dir;; 2962adc0320Smrg esac 2972adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 2982adc0320Smrg as_dirs= 2992adc0320Smrg while :; do 3002adc0320Smrg case $as_dir in #( 3012adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3022adc0320Smrg *) as_qdir=$as_dir;; 3032adc0320Smrg esac 3042adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 3052adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 3062adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3072adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3082adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 3092adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3102adc0320Smrg$as_echo X"$as_dir" | 3112adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3122adc0320Smrg s//\1/ 3132adc0320Smrg q 3142adc0320Smrg } 3152adc0320Smrg /^X\(\/\/\)[^/].*/{ 3162adc0320Smrg s//\1/ 3172adc0320Smrg q 3182adc0320Smrg } 3192adc0320Smrg /^X\(\/\/\)$/{ 3202adc0320Smrg s//\1/ 3212adc0320Smrg q 3222adc0320Smrg } 3232adc0320Smrg /^X\(\/\).*/{ 3242adc0320Smrg s//\1/ 3252adc0320Smrg q 3262adc0320Smrg } 3272adc0320Smrg s/.*/./; q'` 3282adc0320Smrg test -d "$as_dir" && break 3292adc0320Smrg done 3302adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3312adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3322adc0320Smrg 3332adc0320Smrg 3342adc0320Smrg} # as_fn_mkdir_p 3352adc0320Smrg# as_fn_append VAR VALUE 3362adc0320Smrg# ---------------------- 3372adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3382adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 3392adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 3402adc0320Smrg# implementations. 3412adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3422adc0320Smrg eval 'as_fn_append () 3432adc0320Smrg { 3442adc0320Smrg eval $1+=\$2 3452adc0320Smrg }' 3462adc0320Smrgelse 3472adc0320Smrg as_fn_append () 3482adc0320Smrg { 3492adc0320Smrg eval $1=\$$1\$2 3502adc0320Smrg } 3512adc0320Smrgfi # as_fn_append 3522adc0320Smrg 3532adc0320Smrg# as_fn_arith ARG... 3542adc0320Smrg# ------------------ 3552adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3562adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3572adc0320Smrg# must be portable across $(()) and expr. 3582adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3592adc0320Smrg eval 'as_fn_arith () 3602adc0320Smrg { 3612adc0320Smrg as_val=$(( $* )) 3622adc0320Smrg }' 3632adc0320Smrgelse 3642adc0320Smrg as_fn_arith () 3652adc0320Smrg { 3662adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 3672adc0320Smrg } 3682adc0320Smrgfi # as_fn_arith 3692adc0320Smrg 3702adc0320Smrg 3712adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 3722adc0320Smrg# ---------------------------------------- 3732adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3742adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3752adc0320Smrg# script with STATUS, using 1 if that was 0. 3762adc0320Smrgas_fn_error () 3772adc0320Smrg{ 3782adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 3792adc0320Smrg if test "$4"; then 3802adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3812adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3822adc0320Smrg fi 3832adc0320Smrg $as_echo "$as_me: error: $2" >&2 3842adc0320Smrg as_fn_exit $as_status 3852adc0320Smrg} # as_fn_error 3862adc0320Smrg 3877a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 3887a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3897a0395d0Smrg as_expr=expr 3907a0395d0Smrgelse 3917a0395d0Smrg as_expr=false 3927a0395d0Smrgfi 3937a0395d0Smrg 3947a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3957a0395d0Smrg as_basename=basename 3967a0395d0Smrgelse 3977a0395d0Smrg as_basename=false 3987a0395d0Smrgfi 3997a0395d0Smrg 4002adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4012adc0320Smrg as_dirname=dirname 4022adc0320Smrgelse 4032adc0320Smrg as_dirname=false 4042adc0320Smrgfi 4057a0395d0Smrg 4067a0395d0Smrgas_me=`$as_basename -- "$0" || 4077a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4087a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 4097a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4107366012aSmrg$as_echo X/"$0" | 4117a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4127a0395d0Smrg s//\1/ 4137a0395d0Smrg q 4147a0395d0Smrg } 4157a0395d0Smrg /^X\/\(\/\/\)$/{ 4167a0395d0Smrg s//\1/ 4177a0395d0Smrg q 4187a0395d0Smrg } 4197a0395d0Smrg /^X\/\(\/\).*/{ 4207a0395d0Smrg s//\1/ 4217a0395d0Smrg q 4227a0395d0Smrg } 4237a0395d0Smrg s/.*/./; q'` 4247a0395d0Smrg 4252adc0320Smrg# Avoid depending upon Character Ranges. 4262adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4272adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4282adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4292adc0320Smrgas_cr_digits='0123456789' 4302adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4317a0395d0Smrg 4327a0395d0Smrg 4332adc0320Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4342adc0320Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4352adc0320Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4362adc0320Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4372adc0320Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4382adc0320Smrg sed -n ' 4392adc0320Smrg p 4402adc0320Smrg /[$]LINENO/= 4412adc0320Smrg ' <$as_myself | 4422adc0320Smrg sed ' 4432adc0320Smrg s/[$]LINENO.*/&-/ 4442adc0320Smrg t lineno 4452adc0320Smrg b 4462adc0320Smrg :lineno 4472adc0320Smrg N 4482adc0320Smrg :loop 4492adc0320Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4502adc0320Smrg t loop 4512adc0320Smrg s/-\n.*// 4522adc0320Smrg ' >$as_me.lineno && 4532adc0320Smrg chmod +x "$as_me.lineno" || 4542adc0320Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4557a0395d0Smrg 4562adc0320Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4572adc0320Smrg # (the dirname of $[0] is not the place where we might find the 4582adc0320Smrg # original and so on. Autoconf is especially sensitive to this). 4592adc0320Smrg . "./$as_me.lineno" 4602adc0320Smrg # Exit status is that of the last command. 4612adc0320Smrg exit 4627a0395d0Smrg} 4637a0395d0Smrg 4642adc0320SmrgECHO_C= ECHO_N= ECHO_T= 4652adc0320Smrgcase `echo -n x` in #((((( 4662adc0320Smrg-n*) 4672adc0320Smrg case `echo 'xy\c'` in 4682adc0320Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4692adc0320Smrg xy) ECHO_C='\c';; 4702adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4712adc0320Smrg ECHO_T=' ';; 4722adc0320Smrg esac;; 4732adc0320Smrg*) 4742adc0320Smrg ECHO_N='-n';; 4752adc0320Smrgesac 4767a0395d0Smrg 4772adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file 4782adc0320Smrgif test -d conf$$.dir; then 4792adc0320Smrg rm -f conf$$.dir/conf$$.file 4802adc0320Smrgelse 4812adc0320Smrg rm -f conf$$.dir 4822adc0320Smrg mkdir conf$$.dir 2>/dev/null 4837a0395d0Smrgfi 4842adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then 4852adc0320Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 4862adc0320Smrg as_ln_s='ln -s' 4872adc0320Smrg # ... but there are two gotchas: 4882adc0320Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4892adc0320Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4902adc0320Smrg # In both cases, we have to default to `cp -p'. 4912adc0320Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4922adc0320Smrg as_ln_s='cp -p' 4932adc0320Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 4942adc0320Smrg as_ln_s=ln 4952adc0320Smrg else 4962adc0320Smrg as_ln_s='cp -p' 4972adc0320Smrg fi 4987a0395d0Smrgelse 4992adc0320Smrg as_ln_s='cp -p' 5007a0395d0Smrgfi 5012adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5022adc0320Smrgrmdir conf$$.dir 2>/dev/null 5037a0395d0Smrg 5042adc0320Smrgif mkdir -p . 2>/dev/null; then 5052adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 5062adc0320Smrgelse 5072adc0320Smrg test -d ./-p && rmdir ./-p 5082adc0320Smrg as_mkdir_p=false 5097a0395d0Smrgfi 5107a0395d0Smrg 5112adc0320Smrgif test -x / >/dev/null 2>&1; then 5122adc0320Smrg as_test_x='test -x' 5137a0395d0Smrgelse 5142adc0320Smrg if ls -dL / >/dev/null 2>&1; then 5152adc0320Smrg as_ls_L_option=L 5162adc0320Smrg else 5172adc0320Smrg as_ls_L_option= 5182adc0320Smrg fi 5192adc0320Smrg as_test_x=' 5202adc0320Smrg eval sh -c '\'' 5212adc0320Smrg if test -d "$1"; then 5222adc0320Smrg test -d "$1/."; 5232adc0320Smrg else 5242adc0320Smrg case $1 in #( 5252adc0320Smrg -*)set "./$1";; 5262adc0320Smrg esac; 5272adc0320Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5282adc0320Smrg ???[sx]*):;;*)false;;esac;fi 5292adc0320Smrg '\'' sh 5302adc0320Smrg ' 5317a0395d0Smrgfi 5322adc0320Smrgas_executable_p=$as_test_x 5337a0395d0Smrg 5342adc0320Smrg# Sed expression to map a string onto a valid CPP name. 5352adc0320Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5367a0395d0Smrg 5372adc0320Smrg# Sed expression to map a string onto a valid variable name. 5382adc0320Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5397a0395d0Smrg 5407a0395d0Smrg 5412adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5422adc0320Smrgexec 6>&1 5437a0395d0Smrg 5447a0395d0Smrg# Name of the host. 5452adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5467a0395d0Smrg# so uname gets run too. 5477a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5487a0395d0Smrg 5497a0395d0Smrg# 5507a0395d0Smrg# Initializations. 5517a0395d0Smrg# 5527a0395d0Smrgac_default_prefix=/usr/local 5537a0395d0Smrgac_clean_files= 5547a0395d0Smrgac_config_libobj_dir=. 5557a0395d0SmrgLIBOBJS= 5567a0395d0Smrgcross_compiling=no 5577a0395d0Smrgsubdirs= 5587a0395d0SmrgMFLAGS= 5597a0395d0SmrgMAKEFLAGS= 5607a0395d0Smrg 5617a0395d0Smrg# Identity of this package. 5627a0395d0SmrgPACKAGE_NAME='xauth' 5637a0395d0SmrgPACKAGE_TARNAME='xauth' 56496402570SmrgPACKAGE_VERSION='1.0.7' 56596402570SmrgPACKAGE_STRING='xauth 1.0.7' 5667a0395d0SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5672adc0320SmrgPACKAGE_URL='' 5687a0395d0Smrg 5697a0395d0Smrg# Factoring default headers for most tests. 5707a0395d0Smrgac_includes_default="\ 5717a0395d0Smrg#include <stdio.h> 5727a0395d0Smrg#ifdef HAVE_SYS_TYPES_H 5737a0395d0Smrg# include <sys/types.h> 5747a0395d0Smrg#endif 5757a0395d0Smrg#ifdef HAVE_SYS_STAT_H 5767a0395d0Smrg# include <sys/stat.h> 5777a0395d0Smrg#endif 5787a0395d0Smrg#ifdef STDC_HEADERS 5797a0395d0Smrg# include <stdlib.h> 5807a0395d0Smrg# include <stddef.h> 5817a0395d0Smrg#else 5827a0395d0Smrg# ifdef HAVE_STDLIB_H 5837a0395d0Smrg# include <stdlib.h> 5847a0395d0Smrg# endif 5857a0395d0Smrg#endif 5867a0395d0Smrg#ifdef HAVE_STRING_H 5877a0395d0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5887a0395d0Smrg# include <memory.h> 5897a0395d0Smrg# endif 5907a0395d0Smrg# include <string.h> 5917a0395d0Smrg#endif 5927a0395d0Smrg#ifdef HAVE_STRINGS_H 5937a0395d0Smrg# include <strings.h> 5947a0395d0Smrg#endif 5957a0395d0Smrg#ifdef HAVE_INTTYPES_H 5967a0395d0Smrg# include <inttypes.h> 5977a0395d0Smrg#endif 5987a0395d0Smrg#ifdef HAVE_STDINT_H 5997a0395d0Smrg# include <stdint.h> 6007a0395d0Smrg#endif 6017a0395d0Smrg#ifdef HAVE_UNISTD_H 6027a0395d0Smrg# include <unistd.h> 6037a0395d0Smrg#endif" 6047a0395d0Smrg 6057366012aSmrgac_subst_vars='am__EXEEXT_FALSE 6067366012aSmrgam__EXEEXT_TRUE 6077366012aSmrgLTLIBOBJS 6087366012aSmrgLIBOBJS 6097a0395d0SmrgLINT_FALSE 6107366012aSmrgLINT_TRUE 6117366012aSmrgLINT_FLAGS 6127366012aSmrgLINT 6137366012aSmrgXAUTH_LIBS 6147366012aSmrgXAUTH_CFLAGS 6152adc0320SmrgAM_BACKSLASH 6162adc0320SmrgAM_DEFAULT_VERBOSITY 6172adc0320SmrgMAN_SUBSTS 6182adc0320SmrgXORG_MAN_PAGE 6197a0395d0SmrgADMIN_MAN_DIR 6207366012aSmrgDRIVER_MAN_DIR 6217366012aSmrgMISC_MAN_DIR 6227366012aSmrgFILE_MAN_DIR 6237366012aSmrgLIB_MAN_DIR 6247366012aSmrgAPP_MAN_DIR 6257366012aSmrgADMIN_MAN_SUFFIX 6267366012aSmrgDRIVER_MAN_SUFFIX 6277366012aSmrgMISC_MAN_SUFFIX 6287366012aSmrgFILE_MAN_SUFFIX 6297366012aSmrgLIB_MAN_SUFFIX 6307366012aSmrgAPP_MAN_SUFFIX 6312adc0320SmrgSED 6327366012aSmrghost_os 6337366012aSmrghost_vendor 6347366012aSmrghost_cpu 6357366012aSmrghost 6367366012aSmrgbuild_os 6377366012aSmrgbuild_vendor 6387366012aSmrgbuild_cpu 6397366012aSmrgbuild 6402adc0320SmrgINSTALL_CMD 6412adc0320SmrgPKG_CONFIG 6427366012aSmrgCHANGELOG_CMD 64396402570SmrgSTRICT_CFLAGS 6447366012aSmrgCWARNFLAGS 64596402570SmrgBASE_CFLAGS 6467366012aSmrgEGREP 6477366012aSmrgGREP 6487366012aSmrgCPP 6497366012aSmrgam__fastdepCC_FALSE 6507366012aSmrgam__fastdepCC_TRUE 6517366012aSmrgCCDEPMODE 6527366012aSmrgAMDEPBACKSLASH 6537366012aSmrgAMDEP_FALSE 6547366012aSmrgAMDEP_TRUE 6557366012aSmrgam__quote 6567366012aSmrgam__include 6577366012aSmrgDEPDIR 6587366012aSmrgOBJEXT 6597366012aSmrgEXEEXT 6607366012aSmrgac_ct_CC 6617366012aSmrgCPPFLAGS 6627366012aSmrgLDFLAGS 6637366012aSmrgCFLAGS 6647366012aSmrgCC 6657366012aSmrgMAINT 6667366012aSmrgMAINTAINER_MODE_FALSE 6677366012aSmrgMAINTAINER_MODE_TRUE 6687366012aSmrgam__untar 6697366012aSmrgam__tar 6707366012aSmrgAMTAR 6717366012aSmrgam__leading_dot 6727366012aSmrgSET_MAKE 6737366012aSmrgAWK 6747366012aSmrgmkdir_p 6757366012aSmrgMKDIR_P 6767366012aSmrgINSTALL_STRIP_PROGRAM 6777366012aSmrgSTRIP 6787366012aSmrginstall_sh 6797366012aSmrgMAKEINFO 6807366012aSmrgAUTOHEADER 6817366012aSmrgAUTOMAKE 6827366012aSmrgAUTOCONF 6837366012aSmrgACLOCAL 6847366012aSmrgVERSION 6857366012aSmrgPACKAGE 6867366012aSmrgCYGPATH_W 6877366012aSmrgam__isrc 6887366012aSmrgINSTALL_DATA 6897366012aSmrgINSTALL_SCRIPT 6907366012aSmrgINSTALL_PROGRAM 6917366012aSmrgtarget_alias 6927366012aSmrghost_alias 6937366012aSmrgbuild_alias 6947366012aSmrgLIBS 6957366012aSmrgECHO_T 6967366012aSmrgECHO_N 6977366012aSmrgECHO_C 6987366012aSmrgDEFS 6997366012aSmrgmandir 7007366012aSmrglocaledir 7017366012aSmrglibdir 7027366012aSmrgpsdir 7037366012aSmrgpdfdir 7047366012aSmrgdvidir 7057366012aSmrghtmldir 7067366012aSmrginfodir 7077366012aSmrgdocdir 7087366012aSmrgoldincludedir 7097366012aSmrgincludedir 7107366012aSmrglocalstatedir 7117366012aSmrgsharedstatedir 7127366012aSmrgsysconfdir 7137366012aSmrgdatadir 7147366012aSmrgdatarootdir 7157366012aSmrglibexecdir 7167366012aSmrgsbindir 7177366012aSmrgbindir 7187366012aSmrgprogram_transform_name 7197366012aSmrgprefix 7207366012aSmrgexec_prefix 7212adc0320SmrgPACKAGE_URL 7227366012aSmrgPACKAGE_BUGREPORT 7237366012aSmrgPACKAGE_STRING 7247366012aSmrgPACKAGE_VERSION 7257366012aSmrgPACKAGE_TARNAME 7267366012aSmrgPACKAGE_NAME 7277366012aSmrgPATH_SEPARATOR 7287366012aSmrgSHELL' 7297a0395d0Smrgac_subst_files='' 7307366012aSmrgac_user_opts=' 7317366012aSmrgenable_option_checking 7327366012aSmrgenable_maintainer_mode 7337366012aSmrgenable_dependency_tracking 73496402570Smrgenable_selective_werror 7357366012aSmrgenable_strict_compilation 7362adc0320Smrgenable_silent_rules 7377366012aSmrgenable_unix_transport 7387366012aSmrgenable_tcp_transport 7397366012aSmrgenable_ipv6 7407366012aSmrgenable_local_transport 7417366012aSmrgwith_lint 7427366012aSmrg' 7437a0395d0Smrg ac_precious_vars='build_alias 7447a0395d0Smrghost_alias 7457a0395d0Smrgtarget_alias 7467a0395d0SmrgCC 7477a0395d0SmrgCFLAGS 7487a0395d0SmrgLDFLAGS 7497a0395d0SmrgLIBS 7507a0395d0SmrgCPPFLAGS 7517a0395d0SmrgCPP 7527a0395d0SmrgPKG_CONFIG 7537a0395d0SmrgXAUTH_CFLAGS 7542adc0320SmrgXAUTH_LIBS 7552adc0320SmrgLINT 7562adc0320SmrgLINT_FLAGS' 7577a0395d0Smrg 7587a0395d0Smrg 7597a0395d0Smrg# Initialize some variables set by options. 7607a0395d0Smrgac_init_help= 7617a0395d0Smrgac_init_version=false 7627366012aSmrgac_unrecognized_opts= 7637366012aSmrgac_unrecognized_sep= 7647a0395d0Smrg# The variables have the same names as the options, with 7657a0395d0Smrg# dashes changed to underlines. 7667a0395d0Smrgcache_file=/dev/null 7677a0395d0Smrgexec_prefix=NONE 7687a0395d0Smrgno_create= 7697a0395d0Smrgno_recursion= 7707a0395d0Smrgprefix=NONE 7717a0395d0Smrgprogram_prefix=NONE 7727a0395d0Smrgprogram_suffix=NONE 7737a0395d0Smrgprogram_transform_name=s,x,x, 7747a0395d0Smrgsilent= 7757a0395d0Smrgsite= 7767a0395d0Smrgsrcdir= 7777a0395d0Smrgverbose= 7787a0395d0Smrgx_includes=NONE 7797a0395d0Smrgx_libraries=NONE 7807a0395d0Smrg 7817a0395d0Smrg# Installation directory options. 7827a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7837a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix 7847a0395d0Smrg# by default will actually change. 7857a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 7867a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.) 7877a0395d0Smrgbindir='${exec_prefix}/bin' 7887a0395d0Smrgsbindir='${exec_prefix}/sbin' 7897a0395d0Smrglibexecdir='${exec_prefix}/libexec' 7907a0395d0Smrgdatarootdir='${prefix}/share' 7917a0395d0Smrgdatadir='${datarootdir}' 7927a0395d0Smrgsysconfdir='${prefix}/etc' 7937a0395d0Smrgsharedstatedir='${prefix}/com' 7947a0395d0Smrglocalstatedir='${prefix}/var' 7957a0395d0Smrgincludedir='${prefix}/include' 7967a0395d0Smrgoldincludedir='/usr/include' 7977a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7987a0395d0Smrginfodir='${datarootdir}/info' 7997a0395d0Smrghtmldir='${docdir}' 8007a0395d0Smrgdvidir='${docdir}' 8017a0395d0Smrgpdfdir='${docdir}' 8027a0395d0Smrgpsdir='${docdir}' 8037a0395d0Smrglibdir='${exec_prefix}/lib' 8047a0395d0Smrglocaledir='${datarootdir}/locale' 8057a0395d0Smrgmandir='${datarootdir}/man' 8067a0395d0Smrg 8077a0395d0Smrgac_prev= 8087a0395d0Smrgac_dashdash= 8097a0395d0Smrgfor ac_option 8107a0395d0Smrgdo 8117a0395d0Smrg # If the previous option needs an argument, assign it. 8127a0395d0Smrg if test -n "$ac_prev"; then 8137a0395d0Smrg eval $ac_prev=\$ac_option 8147a0395d0Smrg ac_prev= 8157a0395d0Smrg continue 8167a0395d0Smrg fi 8177a0395d0Smrg 8187a0395d0Smrg case $ac_option in 8192adc0320Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8202adc0320Smrg *=) ac_optarg= ;; 8212adc0320Smrg *) ac_optarg=yes ;; 8227a0395d0Smrg esac 8237a0395d0Smrg 8247a0395d0Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8257a0395d0Smrg 8267a0395d0Smrg case $ac_dashdash$ac_option in 8277a0395d0Smrg --) 8287a0395d0Smrg ac_dashdash=yes ;; 8297a0395d0Smrg 8307a0395d0Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8317a0395d0Smrg ac_prev=bindir ;; 8327a0395d0Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8337a0395d0Smrg bindir=$ac_optarg ;; 8347a0395d0Smrg 8357a0395d0Smrg -build | --build | --buil | --bui | --bu) 8367a0395d0Smrg ac_prev=build_alias ;; 8377a0395d0Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8387a0395d0Smrg build_alias=$ac_optarg ;; 8397a0395d0Smrg 8407a0395d0Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8417a0395d0Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8427a0395d0Smrg ac_prev=cache_file ;; 8437a0395d0Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8447a0395d0Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8457a0395d0Smrg cache_file=$ac_optarg ;; 8467a0395d0Smrg 8477a0395d0Smrg --config-cache | -C) 8487a0395d0Smrg cache_file=config.cache ;; 8497a0395d0Smrg 8507a0395d0Smrg -datadir | --datadir | --datadi | --datad) 8517a0395d0Smrg ac_prev=datadir ;; 8527a0395d0Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8537a0395d0Smrg datadir=$ac_optarg ;; 8547a0395d0Smrg 8557a0395d0Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8567a0395d0Smrg | --dataroo | --dataro | --datar) 8577a0395d0Smrg ac_prev=datarootdir ;; 8587a0395d0Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8597a0395d0Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8607a0395d0Smrg datarootdir=$ac_optarg ;; 8617a0395d0Smrg 8627a0395d0Smrg -disable-* | --disable-*) 8637366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8647a0395d0Smrg # Reject names that are not valid shell variable names. 8657366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8662adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 8677366012aSmrg ac_useropt_orig=$ac_useropt 8687366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8697366012aSmrg case $ac_user_opts in 8707366012aSmrg *" 8717366012aSmrg"enable_$ac_useropt" 8727366012aSmrg"*) ;; 8737366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8747366012aSmrg ac_unrecognized_sep=', ';; 8757366012aSmrg esac 8767366012aSmrg eval enable_$ac_useropt=no ;; 8777a0395d0Smrg 8787a0395d0Smrg -docdir | --docdir | --docdi | --doc | --do) 8797a0395d0Smrg ac_prev=docdir ;; 8807a0395d0Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8817a0395d0Smrg docdir=$ac_optarg ;; 8827a0395d0Smrg 8837a0395d0Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8847a0395d0Smrg ac_prev=dvidir ;; 8857a0395d0Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8867a0395d0Smrg dvidir=$ac_optarg ;; 8877a0395d0Smrg 8887a0395d0Smrg -enable-* | --enable-*) 8897366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8907a0395d0Smrg # Reject names that are not valid shell variable names. 8917366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8922adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 8937366012aSmrg ac_useropt_orig=$ac_useropt 8947366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8957366012aSmrg case $ac_user_opts in 8967366012aSmrg *" 8977366012aSmrg"enable_$ac_useropt" 8987366012aSmrg"*) ;; 8997366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9007366012aSmrg ac_unrecognized_sep=', ';; 9017366012aSmrg esac 9027366012aSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9037a0395d0Smrg 9047a0395d0Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9057a0395d0Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9067a0395d0Smrg | --exec | --exe | --ex) 9077a0395d0Smrg ac_prev=exec_prefix ;; 9087a0395d0Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9097a0395d0Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9107a0395d0Smrg | --exec=* | --exe=* | --ex=*) 9117a0395d0Smrg exec_prefix=$ac_optarg ;; 9127a0395d0Smrg 9137a0395d0Smrg -gas | --gas | --ga | --g) 9147a0395d0Smrg # Obsolete; use --with-gas. 9157a0395d0Smrg with_gas=yes ;; 9167a0395d0Smrg 9177a0395d0Smrg -help | --help | --hel | --he | -h) 9187a0395d0Smrg ac_init_help=long ;; 9197a0395d0Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9207a0395d0Smrg ac_init_help=recursive ;; 9217a0395d0Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9227a0395d0Smrg ac_init_help=short ;; 9237a0395d0Smrg 9247a0395d0Smrg -host | --host | --hos | --ho) 9257a0395d0Smrg ac_prev=host_alias ;; 9267a0395d0Smrg -host=* | --host=* | --hos=* | --ho=*) 9277a0395d0Smrg host_alias=$ac_optarg ;; 9287a0395d0Smrg 9297a0395d0Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9307a0395d0Smrg ac_prev=htmldir ;; 9317a0395d0Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9327a0395d0Smrg | --ht=*) 9337a0395d0Smrg htmldir=$ac_optarg ;; 9347a0395d0Smrg 9357a0395d0Smrg -includedir | --includedir | --includedi | --included | --include \ 9367a0395d0Smrg | --includ | --inclu | --incl | --inc) 9377a0395d0Smrg ac_prev=includedir ;; 9387a0395d0Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9397a0395d0Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9407a0395d0Smrg includedir=$ac_optarg ;; 9417a0395d0Smrg 9427a0395d0Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9437a0395d0Smrg ac_prev=infodir ;; 9447a0395d0Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9457a0395d0Smrg infodir=$ac_optarg ;; 9467a0395d0Smrg 9477a0395d0Smrg -libdir | --libdir | --libdi | --libd) 9487a0395d0Smrg ac_prev=libdir ;; 9497a0395d0Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9507a0395d0Smrg libdir=$ac_optarg ;; 9517a0395d0Smrg 9527a0395d0Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9537a0395d0Smrg | --libexe | --libex | --libe) 9547a0395d0Smrg ac_prev=libexecdir ;; 9557a0395d0Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9567a0395d0Smrg | --libexe=* | --libex=* | --libe=*) 9577a0395d0Smrg libexecdir=$ac_optarg ;; 9587a0395d0Smrg 9597a0395d0Smrg -localedir | --localedir | --localedi | --localed | --locale) 9607a0395d0Smrg ac_prev=localedir ;; 9617a0395d0Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9627a0395d0Smrg localedir=$ac_optarg ;; 9637a0395d0Smrg 9647a0395d0Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9657a0395d0Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9667a0395d0Smrg ac_prev=localstatedir ;; 9677a0395d0Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9687a0395d0Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9697a0395d0Smrg localstatedir=$ac_optarg ;; 9707a0395d0Smrg 9717a0395d0Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9727a0395d0Smrg ac_prev=mandir ;; 9737a0395d0Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9747a0395d0Smrg mandir=$ac_optarg ;; 9757a0395d0Smrg 9767a0395d0Smrg -nfp | --nfp | --nf) 9777a0395d0Smrg # Obsolete; use --without-fp. 9787a0395d0Smrg with_fp=no ;; 9797a0395d0Smrg 9807a0395d0Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9817a0395d0Smrg | --no-cr | --no-c | -n) 9827a0395d0Smrg no_create=yes ;; 9837a0395d0Smrg 9847a0395d0Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9857a0395d0Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9867a0395d0Smrg no_recursion=yes ;; 9877a0395d0Smrg 9887a0395d0Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9897a0395d0Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9907a0395d0Smrg | --oldin | --oldi | --old | --ol | --o) 9917a0395d0Smrg ac_prev=oldincludedir ;; 9927a0395d0Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9937a0395d0Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9947a0395d0Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9957a0395d0Smrg oldincludedir=$ac_optarg ;; 9967a0395d0Smrg 9977a0395d0Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9987a0395d0Smrg ac_prev=prefix ;; 9997a0395d0Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10007a0395d0Smrg prefix=$ac_optarg ;; 10017a0395d0Smrg 10027a0395d0Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10037a0395d0Smrg | --program-pre | --program-pr | --program-p) 10047a0395d0Smrg ac_prev=program_prefix ;; 10057a0395d0Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10067a0395d0Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10077a0395d0Smrg program_prefix=$ac_optarg ;; 10087a0395d0Smrg 10097a0395d0Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10107a0395d0Smrg | --program-suf | --program-su | --program-s) 10117a0395d0Smrg ac_prev=program_suffix ;; 10127a0395d0Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10137a0395d0Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10147a0395d0Smrg program_suffix=$ac_optarg ;; 10157a0395d0Smrg 10167a0395d0Smrg -program-transform-name | --program-transform-name \ 10177a0395d0Smrg | --program-transform-nam | --program-transform-na \ 10187a0395d0Smrg | --program-transform-n | --program-transform- \ 10197a0395d0Smrg | --program-transform | --program-transfor \ 10207a0395d0Smrg | --program-transfo | --program-transf \ 10217a0395d0Smrg | --program-trans | --program-tran \ 10227a0395d0Smrg | --progr-tra | --program-tr | --program-t) 10237a0395d0Smrg ac_prev=program_transform_name ;; 10247a0395d0Smrg -program-transform-name=* | --program-transform-name=* \ 10257a0395d0Smrg | --program-transform-nam=* | --program-transform-na=* \ 10267a0395d0Smrg | --program-transform-n=* | --program-transform-=* \ 10277a0395d0Smrg | --program-transform=* | --program-transfor=* \ 10287a0395d0Smrg | --program-transfo=* | --program-transf=* \ 10297a0395d0Smrg | --program-trans=* | --program-tran=* \ 10307a0395d0Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10317a0395d0Smrg program_transform_name=$ac_optarg ;; 10327a0395d0Smrg 10337a0395d0Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10347a0395d0Smrg ac_prev=pdfdir ;; 10357a0395d0Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10367a0395d0Smrg pdfdir=$ac_optarg ;; 10377a0395d0Smrg 10387a0395d0Smrg -psdir | --psdir | --psdi | --psd | --ps) 10397a0395d0Smrg ac_prev=psdir ;; 10407a0395d0Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10417a0395d0Smrg psdir=$ac_optarg ;; 10427a0395d0Smrg 10437a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10447a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 10457a0395d0Smrg silent=yes ;; 10467a0395d0Smrg 10477a0395d0Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10487a0395d0Smrg ac_prev=sbindir ;; 10497a0395d0Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10507a0395d0Smrg | --sbi=* | --sb=*) 10517a0395d0Smrg sbindir=$ac_optarg ;; 10527a0395d0Smrg 10537a0395d0Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10547a0395d0Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10557a0395d0Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10567a0395d0Smrg | --sha | --sh) 10577a0395d0Smrg ac_prev=sharedstatedir ;; 10587a0395d0Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10597a0395d0Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10607a0395d0Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10617a0395d0Smrg | --sha=* | --sh=*) 10627a0395d0Smrg sharedstatedir=$ac_optarg ;; 10637a0395d0Smrg 10647a0395d0Smrg -site | --site | --sit) 10657a0395d0Smrg ac_prev=site ;; 10667a0395d0Smrg -site=* | --site=* | --sit=*) 10677a0395d0Smrg site=$ac_optarg ;; 10687a0395d0Smrg 10697a0395d0Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10707a0395d0Smrg ac_prev=srcdir ;; 10717a0395d0Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10727a0395d0Smrg srcdir=$ac_optarg ;; 10737a0395d0Smrg 10747a0395d0Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10757a0395d0Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10767a0395d0Smrg ac_prev=sysconfdir ;; 10777a0395d0Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10787a0395d0Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10797a0395d0Smrg sysconfdir=$ac_optarg ;; 10807a0395d0Smrg 10817a0395d0Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10827a0395d0Smrg ac_prev=target_alias ;; 10837a0395d0Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10847a0395d0Smrg target_alias=$ac_optarg ;; 10857a0395d0Smrg 10867a0395d0Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10877a0395d0Smrg verbose=yes ;; 10887a0395d0Smrg 10897a0395d0Smrg -version | --version | --versio | --versi | --vers | -V) 10907a0395d0Smrg ac_init_version=: ;; 10917a0395d0Smrg 10927a0395d0Smrg -with-* | --with-*) 10937366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10947a0395d0Smrg # Reject names that are not valid shell variable names. 10957366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10962adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 10977366012aSmrg ac_useropt_orig=$ac_useropt 10987366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 10997366012aSmrg case $ac_user_opts in 11007366012aSmrg *" 11017366012aSmrg"with_$ac_useropt" 11027366012aSmrg"*) ;; 11037366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11047366012aSmrg ac_unrecognized_sep=', ';; 11057366012aSmrg esac 11067366012aSmrg eval with_$ac_useropt=\$ac_optarg ;; 11077a0395d0Smrg 11087a0395d0Smrg -without-* | --without-*) 11097366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11107a0395d0Smrg # Reject names that are not valid shell variable names. 11117366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11122adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 11137366012aSmrg ac_useropt_orig=$ac_useropt 11147366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11157366012aSmrg case $ac_user_opts in 11167366012aSmrg *" 11177366012aSmrg"with_$ac_useropt" 11187366012aSmrg"*) ;; 11197366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11207366012aSmrg ac_unrecognized_sep=', ';; 11217366012aSmrg esac 11227366012aSmrg eval with_$ac_useropt=no ;; 11237a0395d0Smrg 11247a0395d0Smrg --x) 11257a0395d0Smrg # Obsolete; use --with-x. 11267a0395d0Smrg with_x=yes ;; 11277a0395d0Smrg 11287a0395d0Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11297a0395d0Smrg | --x-incl | --x-inc | --x-in | --x-i) 11307a0395d0Smrg ac_prev=x_includes ;; 11317a0395d0Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11327a0395d0Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11337a0395d0Smrg x_includes=$ac_optarg ;; 11347a0395d0Smrg 11357a0395d0Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11367a0395d0Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11377a0395d0Smrg ac_prev=x_libraries ;; 11387a0395d0Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11397a0395d0Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11407a0395d0Smrg x_libraries=$ac_optarg ;; 11417a0395d0Smrg 11422adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11432adc0320SmrgTry \`$0 --help' for more information" 11447a0395d0Smrg ;; 11457a0395d0Smrg 11467a0395d0Smrg *=*) 11477a0395d0Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11487a0395d0Smrg # Reject names that are not valid shell variable names. 11492adc0320Smrg case $ac_envvar in #( 11502adc0320Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11512adc0320Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11522adc0320Smrg esac 11537a0395d0Smrg eval $ac_envvar=\$ac_optarg 11547a0395d0Smrg export $ac_envvar ;; 11557a0395d0Smrg 11567a0395d0Smrg *) 11577a0395d0Smrg # FIXME: should be removed in autoconf 3.0. 11587366012aSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11597a0395d0Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11607366012aSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11612adc0320Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11627a0395d0Smrg ;; 11637a0395d0Smrg 11647a0395d0Smrg esac 11657a0395d0Smrgdone 11667a0395d0Smrg 11677a0395d0Smrgif test -n "$ac_prev"; then 11687a0395d0Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11692adc0320Smrg as_fn_error $? "missing argument to $ac_option" 11707a0395d0Smrgfi 11717a0395d0Smrg 11727366012aSmrgif test -n "$ac_unrecognized_opts"; then 11737366012aSmrg case $enable_option_checking in 11747366012aSmrg no) ;; 11752adc0320Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11767366012aSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11777366012aSmrg esac 11787366012aSmrgfi 11797366012aSmrg 11807366012aSmrg# Check all directory arguments for consistency. 11817a0395d0Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11827a0395d0Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11837a0395d0Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11847a0395d0Smrg libdir localedir mandir 11857a0395d0Smrgdo 11867a0395d0Smrg eval ac_val=\$$ac_var 11877366012aSmrg # Remove trailing slashes. 11887366012aSmrg case $ac_val in 11897366012aSmrg */ ) 11907366012aSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 11917366012aSmrg eval $ac_var=\$ac_val;; 11927366012aSmrg esac 11937366012aSmrg # Be sure to have absolute directory names. 11947a0395d0Smrg case $ac_val in 11957a0395d0Smrg [\\/$]* | ?:[\\/]* ) continue;; 11967a0395d0Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11977a0395d0Smrg esac 11982adc0320Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11997a0395d0Smrgdone 12007a0395d0Smrg 12017a0395d0Smrg# There might be people who depend on the old broken behavior: `$host' 12027a0395d0Smrg# used to hold the argument of --host etc. 12037a0395d0Smrg# FIXME: To remove some day. 12047a0395d0Smrgbuild=$build_alias 12057a0395d0Smrghost=$host_alias 12067a0395d0Smrgtarget=$target_alias 12077a0395d0Smrg 12087a0395d0Smrg# FIXME: To remove some day. 12097a0395d0Smrgif test "x$host_alias" != x; then 12107a0395d0Smrg if test "x$build_alias" = x; then 12117a0395d0Smrg cross_compiling=maybe 12122adc0320Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12132adc0320Smrg If a cross compiler is detected then cross compile mode will be used" >&2 12147a0395d0Smrg elif test "x$build_alias" != "x$host_alias"; then 12157a0395d0Smrg cross_compiling=yes 12167a0395d0Smrg fi 12177a0395d0Smrgfi 12187a0395d0Smrg 12197a0395d0Smrgac_tool_prefix= 12207a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12217a0395d0Smrg 12227a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null 12237a0395d0Smrg 12247a0395d0Smrg 12257a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12267a0395d0Smrgac_ls_di=`ls -di .` && 12277a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12282adc0320Smrg as_fn_error $? "working directory cannot be determined" 12297a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12302adc0320Smrg as_fn_error $? "pwd does not report name of working directory" 12317a0395d0Smrg 12327a0395d0Smrg 12337a0395d0Smrg# Find the source files, if location was not specified. 12347a0395d0Smrgif test -z "$srcdir"; then 12357a0395d0Smrg ac_srcdir_defaulted=yes 12367a0395d0Smrg # Try the directory containing this script, then the parent directory. 12377366012aSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12387366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12397366012aSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12407366012aSmrg X"$as_myself" : 'X\(//\)$' \| \ 12417366012aSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12427366012aSmrg$as_echo X"$as_myself" | 12437a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12447a0395d0Smrg s//\1/ 12457a0395d0Smrg q 12467a0395d0Smrg } 12477a0395d0Smrg /^X\(\/\/\)[^/].*/{ 12487a0395d0Smrg s//\1/ 12497a0395d0Smrg q 12507a0395d0Smrg } 12517a0395d0Smrg /^X\(\/\/\)$/{ 12527a0395d0Smrg s//\1/ 12537a0395d0Smrg q 12547a0395d0Smrg } 12557a0395d0Smrg /^X\(\/\).*/{ 12567a0395d0Smrg s//\1/ 12577a0395d0Smrg q 12587a0395d0Smrg } 12597a0395d0Smrg s/.*/./; q'` 12607a0395d0Smrg srcdir=$ac_confdir 12617a0395d0Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12627a0395d0Smrg srcdir=.. 12637a0395d0Smrg fi 12647a0395d0Smrgelse 12657a0395d0Smrg ac_srcdir_defaulted=no 12667a0395d0Smrgfi 12677a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then 12687a0395d0Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12692adc0320Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12707a0395d0Smrgfi 12717a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12727a0395d0Smrgac_abs_confdir=`( 12732adc0320Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12747a0395d0Smrg pwd)` 12757a0395d0Smrg# When building in place, set srcdir=. 12767a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12777a0395d0Smrg srcdir=. 12787a0395d0Smrgfi 12797a0395d0Smrg# Remove unnecessary trailing slashes from srcdir. 12807a0395d0Smrg# Double slashes in file names in object file debugging info 12817a0395d0Smrg# mess up M-x gdb in Emacs. 12827a0395d0Smrgcase $srcdir in 12837a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12847a0395d0Smrgesac 12857a0395d0Smrgfor ac_var in $ac_precious_vars; do 12867a0395d0Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12877a0395d0Smrg eval ac_env_${ac_var}_value=\$${ac_var} 12887a0395d0Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12897a0395d0Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12907a0395d0Smrgdone 12917a0395d0Smrg 12927a0395d0Smrg# 12937a0395d0Smrg# Report the --help message. 12947a0395d0Smrg# 12957a0395d0Smrgif test "$ac_init_help" = "long"; then 12967a0395d0Smrg # Omit some internal or obsolete options to make the list less imposing. 12977a0395d0Smrg # This message is too long to be a string in the A/UX 3.1 sh. 12987a0395d0Smrg cat <<_ACEOF 129996402570Smrg\`configure' configures xauth 1.0.7 to adapt to many kinds of systems. 13007a0395d0Smrg 13017a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13027a0395d0Smrg 13037a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13047a0395d0SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13057a0395d0Smrg 13067a0395d0SmrgDefaults for the options are specified in brackets. 13077a0395d0Smrg 13087a0395d0SmrgConfiguration: 13097a0395d0Smrg -h, --help display this help and exit 13107a0395d0Smrg --help=short display options specific to this package 13117a0395d0Smrg --help=recursive display the short help of all the included packages 13127a0395d0Smrg -V, --version display version information and exit 13132adc0320Smrg -q, --quiet, --silent do not print \`checking ...' messages 13147a0395d0Smrg --cache-file=FILE cache test results in FILE [disabled] 13157a0395d0Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13167a0395d0Smrg -n, --no-create do not create output files 13177a0395d0Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13187a0395d0Smrg 13197a0395d0SmrgInstallation directories: 13207a0395d0Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13217366012aSmrg [$ac_default_prefix] 13227a0395d0Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13237366012aSmrg [PREFIX] 13247a0395d0Smrg 13257a0395d0SmrgBy default, \`make install' will install all the files in 13267a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13277a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13287a0395d0Smrgfor instance \`--prefix=\$HOME'. 13297a0395d0Smrg 13307a0395d0SmrgFor better control, use the options below. 13317a0395d0Smrg 13327a0395d0SmrgFine tuning of the installation directories: 13337366012aSmrg --bindir=DIR user executables [EPREFIX/bin] 13347366012aSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13357366012aSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13367366012aSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13377366012aSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13387366012aSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13397366012aSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13407366012aSmrg --includedir=DIR C header files [PREFIX/include] 13417366012aSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13427366012aSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13437366012aSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13447366012aSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13457366012aSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13467366012aSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13477366012aSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 13487366012aSmrg --htmldir=DIR html documentation [DOCDIR] 13497366012aSmrg --dvidir=DIR dvi documentation [DOCDIR] 13507366012aSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13517366012aSmrg --psdir=DIR ps documentation [DOCDIR] 13527a0395d0Smrg_ACEOF 13537a0395d0Smrg 13547a0395d0Smrg cat <<\_ACEOF 13557a0395d0Smrg 13567a0395d0SmrgProgram names: 13577a0395d0Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13587a0395d0Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13597a0395d0Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13607a0395d0Smrg 13617a0395d0SmrgSystem types: 13627a0395d0Smrg --build=BUILD configure for building on BUILD [guessed] 13637a0395d0Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13647a0395d0Smrg_ACEOF 13657a0395d0Smrgfi 13667a0395d0Smrg 13677a0395d0Smrgif test -n "$ac_init_help"; then 13687a0395d0Smrg case $ac_init_help in 136996402570Smrg short | recursive ) echo "Configuration of xauth 1.0.7:";; 13707a0395d0Smrg esac 13717a0395d0Smrg cat <<\_ACEOF 13727a0395d0Smrg 13737a0395d0SmrgOptional Features: 13747366012aSmrg --disable-option-checking ignore unrecognized --enable/--with options 13757a0395d0Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13767a0395d0Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13777a0395d0Smrg --enable-maintainer-mode enable make rules and dependencies not useful 13787a0395d0Smrg (and sometimes confusing) to the casual installer 13797a0395d0Smrg --disable-dependency-tracking speeds up one-time build 13807a0395d0Smrg --enable-dependency-tracking do not reject slow dependency extractors 138196402570Smrg --disable-selective-werror 138296402570Smrg Turn off selective compiler errors. (default: 138396402570Smrg enabled) 13847366012aSmrg --enable-strict-compilation 13857366012aSmrg Enable all warnings from compiler and make them 13867366012aSmrg errors (default: disabled) 13872adc0320Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 13882adc0320Smrg --disable-silent-rules verbose build output (undo: `make V=0') 13897a0395d0Smrg --enable-unix-transport Enable UNIX domain socket transport 13907a0395d0Smrg --enable-tcp-transport Enable TCP socket transport 13917366012aSmrg --enable-ipv6 Enable IPv6 support 13927a0395d0Smrg --enable-local-transport 13937a0395d0Smrg Enable os-specific local transport 13947a0395d0Smrg 13957a0395d0SmrgOptional Packages: 13967a0395d0Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 13977a0395d0Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 13987366012aSmrg --with-lint Use a lint-style source code checker (default: 13997366012aSmrg disabled) 14007a0395d0Smrg 14017a0395d0SmrgSome influential environment variables: 14027a0395d0Smrg CC C compiler command 14037a0395d0Smrg CFLAGS C compiler flags 14047a0395d0Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14057a0395d0Smrg nonstandard directory <lib dir> 14067a0395d0Smrg LIBS libraries to pass to the linker, e.g. -l<library> 14072adc0320Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14087a0395d0Smrg you have headers in a nonstandard directory <include dir> 14097a0395d0Smrg CPP C preprocessor 14107a0395d0Smrg PKG_CONFIG path to pkg-config utility 14117a0395d0Smrg XAUTH_CFLAGS 14127a0395d0Smrg C compiler flags for XAUTH, overriding pkg-config 14137a0395d0Smrg XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 14142adc0320Smrg LINT Path to a lint-style command 14152adc0320Smrg LINT_FLAGS Flags for the lint-style command 14167a0395d0Smrg 14177a0395d0SmrgUse these variables to override the choices made by `configure' or to help 14187a0395d0Smrgit to find libraries and programs with nonstandard names/locations. 14197a0395d0Smrg 14207a0395d0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14217a0395d0Smrg_ACEOF 14227a0395d0Smrgac_status=$? 14237a0395d0Smrgfi 14247a0395d0Smrg 14257a0395d0Smrgif test "$ac_init_help" = "recursive"; then 14267a0395d0Smrg # If there are subdirs, report their specific --help. 14277a0395d0Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14287366012aSmrg test -d "$ac_dir" || 14297366012aSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14307366012aSmrg continue 14317a0395d0Smrg ac_builddir=. 14327a0395d0Smrg 14337a0395d0Smrgcase "$ac_dir" in 14347a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14357a0395d0Smrg*) 14367366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14377a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 14387366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14397a0395d0Smrg case $ac_top_builddir_sub in 14407a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14417a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14427a0395d0Smrg esac ;; 14437a0395d0Smrgesac 14447a0395d0Smrgac_abs_top_builddir=$ac_pwd 14457a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14467a0395d0Smrg# for backward compatibility: 14477a0395d0Smrgac_top_builddir=$ac_top_build_prefix 14487a0395d0Smrg 14497a0395d0Smrgcase $srcdir in 14507a0395d0Smrg .) # We are building in place. 14517a0395d0Smrg ac_srcdir=. 14527a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 14537a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 14547a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14557a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14567a0395d0Smrg ac_top_srcdir=$srcdir 14577a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 14587a0395d0Smrg *) # Relative name. 14597a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14607a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14617a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14627a0395d0Smrgesac 14637a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14647a0395d0Smrg 14657a0395d0Smrg cd "$ac_dir" || { ac_status=$?; continue; } 14667a0395d0Smrg # Check for guested configure. 14677a0395d0Smrg if test -f "$ac_srcdir/configure.gnu"; then 14687a0395d0Smrg echo && 14697a0395d0Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14707a0395d0Smrg elif test -f "$ac_srcdir/configure"; then 14717a0395d0Smrg echo && 14727a0395d0Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14737a0395d0Smrg else 14747366012aSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14757a0395d0Smrg fi || ac_status=$? 14767a0395d0Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14777a0395d0Smrg done 14787a0395d0Smrgfi 14797a0395d0Smrg 14807a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status 14817a0395d0Smrgif $ac_init_version; then 14827a0395d0Smrg cat <<\_ACEOF 148396402570Smrgxauth configure 1.0.7 14842adc0320Smrggenerated by GNU Autoconf 2.68 14857a0395d0Smrg 14862adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc. 14877a0395d0SmrgThis configure script is free software; the Free Software Foundation 14887a0395d0Smrggives unlimited permission to copy, distribute and modify it. 14897a0395d0Smrg_ACEOF 14907a0395d0Smrg exit 14917a0395d0Smrgfi 14927a0395d0Smrg 14932adc0320Smrg## ------------------------ ## 14942adc0320Smrg## Autoconf initialization. ## 14952adc0320Smrg## ------------------------ ## 14967a0395d0Smrg 14972adc0320Smrg# ac_fn_c_try_compile LINENO 14982adc0320Smrg# -------------------------- 14992adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15002adc0320Smrgac_fn_c_try_compile () 15017a0395d0Smrg{ 15022adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15032adc0320Smrg rm -f conftest.$ac_objext 15042adc0320Smrg if { { ac_try="$ac_compile" 15052adc0320Smrgcase "(($ac_try" in 15062adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15072adc0320Smrg *) ac_try_echo=$ac_try;; 15082adc0320Smrgesac 15092adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15102adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15112adc0320Smrg (eval "$ac_compile") 2>conftest.err 15122adc0320Smrg ac_status=$? 15132adc0320Smrg if test -s conftest.err; then 15142adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 15152adc0320Smrg cat conftest.er1 >&5 15162adc0320Smrg mv -f conftest.er1 conftest.err 15172adc0320Smrg fi 15182adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15192adc0320Smrg test $ac_status = 0; } && { 15202adc0320Smrg test -z "$ac_c_werror_flag" || 15212adc0320Smrg test ! -s conftest.err 15222adc0320Smrg } && test -s conftest.$ac_objext; then : 15232adc0320Smrg ac_retval=0 15242adc0320Smrgelse 15252adc0320Smrg $as_echo "$as_me: failed program was:" >&5 15262adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 15277a0395d0Smrg 15282adc0320Smrg ac_retval=1 15292adc0320Smrgfi 15302adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15312adc0320Smrg as_fn_set_status $ac_retval 15327a0395d0Smrg 15332adc0320Smrg} # ac_fn_c_try_compile 15342adc0320Smrg 15352adc0320Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15362adc0320Smrg# --------------------------------------------- 15372adc0320Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15382adc0320Smrg# accordingly. 15392adc0320Smrgac_fn_c_check_decl () 15402adc0320Smrg{ 15412adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15422adc0320Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15432adc0320Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15442adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15452adc0320Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15462adc0320Smrgif eval \${$3+:} false; then : 15472adc0320Smrg $as_echo_n "(cached) " >&6 15482adc0320Smrgelse 15492adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502adc0320Smrg/* end confdefs.h. */ 15512adc0320Smrg$4 15522adc0320Smrgint 15532adc0320Smrgmain () 15542adc0320Smrg{ 15552adc0320Smrg#ifndef $as_decl_name 15562adc0320Smrg#ifdef __cplusplus 15572adc0320Smrg (void) $as_decl_use; 15582adc0320Smrg#else 15592adc0320Smrg (void) $as_decl_name; 15602adc0320Smrg#endif 15612adc0320Smrg#endif 15622adc0320Smrg 15632adc0320Smrg ; 15642adc0320Smrg return 0; 15652adc0320Smrg} 15662adc0320Smrg_ACEOF 15672adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 15682adc0320Smrg eval "$3=yes" 15692adc0320Smrgelse 15702adc0320Smrg eval "$3=no" 15712adc0320Smrgfi 15722adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15732adc0320Smrgfi 15742adc0320Smrgeval ac_res=\$$3 15752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15762adc0320Smrg$as_echo "$ac_res" >&6; } 15772adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15782adc0320Smrg 15792adc0320Smrg} # ac_fn_c_check_decl 15802adc0320Smrg 15812adc0320Smrg# ac_fn_c_try_cpp LINENO 15822adc0320Smrg# ---------------------- 15832adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15842adc0320Smrgac_fn_c_try_cpp () 15852adc0320Smrg{ 15862adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15872adc0320Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15882adc0320Smrgcase "(($ac_try" in 15892adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15902adc0320Smrg *) ac_try_echo=$ac_try;; 15912adc0320Smrgesac 15922adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15932adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15942adc0320Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15952adc0320Smrg ac_status=$? 15962adc0320Smrg if test -s conftest.err; then 15972adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 15982adc0320Smrg cat conftest.er1 >&5 15992adc0320Smrg mv -f conftest.er1 conftest.err 16002adc0320Smrg fi 16012adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16022adc0320Smrg test $ac_status = 0; } > conftest.i && { 16032adc0320Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16042adc0320Smrg test ! -s conftest.err 16052adc0320Smrg }; then : 16062adc0320Smrg ac_retval=0 16072adc0320Smrgelse 16082adc0320Smrg $as_echo "$as_me: failed program was:" >&5 16092adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 16102adc0320Smrg 16112adc0320Smrg ac_retval=1 16122adc0320Smrgfi 16132adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16142adc0320Smrg as_fn_set_status $ac_retval 16152adc0320Smrg 16162adc0320Smrg} # ac_fn_c_try_cpp 16172adc0320Smrg 16182adc0320Smrg# ac_fn_c_try_run LINENO 16192adc0320Smrg# ---------------------- 16202adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16212adc0320Smrg# that executables *can* be run. 16222adc0320Smrgac_fn_c_try_run () 16232adc0320Smrg{ 16242adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16252adc0320Smrg if { { ac_try="$ac_link" 16262adc0320Smrgcase "(($ac_try" in 16272adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16282adc0320Smrg *) ac_try_echo=$ac_try;; 16292adc0320Smrgesac 16302adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16312adc0320Smrg$as_echo "$ac_try_echo"; } >&5 16322adc0320Smrg (eval "$ac_link") 2>&5 16332adc0320Smrg ac_status=$? 16342adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16352adc0320Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16362adc0320Smrg { { case "(($ac_try" in 16372adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16382adc0320Smrg *) ac_try_echo=$ac_try;; 16392adc0320Smrgesac 16402adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16412adc0320Smrg$as_echo "$ac_try_echo"; } >&5 16422adc0320Smrg (eval "$ac_try") 2>&5 16432adc0320Smrg ac_status=$? 16442adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16452adc0320Smrg test $ac_status = 0; }; }; then : 16462adc0320Smrg ac_retval=0 16472adc0320Smrgelse 16482adc0320Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 16492adc0320Smrg $as_echo "$as_me: failed program was:" >&5 16502adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 16512adc0320Smrg 16522adc0320Smrg ac_retval=$ac_status 16532adc0320Smrgfi 16542adc0320Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16552adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16562adc0320Smrg as_fn_set_status $ac_retval 16572adc0320Smrg 16582adc0320Smrg} # ac_fn_c_try_run 16592adc0320Smrg 16602adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16612adc0320Smrg# ------------------------------------------------------- 16622adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in 16632adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly. 16642adc0320Smrgac_fn_c_check_header_compile () 16652adc0320Smrg{ 16662adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16672adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16682adc0320Smrg$as_echo_n "checking for $2... " >&6; } 16692adc0320Smrgif eval \${$3+:} false; then : 16702adc0320Smrg $as_echo_n "(cached) " >&6 16712adc0320Smrgelse 16722adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16732adc0320Smrg/* end confdefs.h. */ 16742adc0320Smrg$4 16752adc0320Smrg#include <$2> 16762adc0320Smrg_ACEOF 16772adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 16782adc0320Smrg eval "$3=yes" 16792adc0320Smrgelse 16802adc0320Smrg eval "$3=no" 16812adc0320Smrgfi 16822adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16832adc0320Smrgfi 16842adc0320Smrgeval ac_res=\$$3 16852adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16862adc0320Smrg$as_echo "$ac_res" >&6; } 16872adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16882adc0320Smrg 16892adc0320Smrg} # ac_fn_c_check_header_compile 16902adc0320Smrg 169196402570Smrg# ac_fn_c_try_link LINENO 169296402570Smrg# ----------------------- 169396402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 169496402570Smrgac_fn_c_try_link () 169596402570Smrg{ 169696402570Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 169796402570Smrg rm -f conftest.$ac_objext conftest$ac_exeext 169896402570Smrg if { { ac_try="$ac_link" 169996402570Smrgcase "(($ac_try" in 170096402570Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 170196402570Smrg *) ac_try_echo=$ac_try;; 170296402570Smrgesac 170396402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 170496402570Smrg$as_echo "$ac_try_echo"; } >&5 170596402570Smrg (eval "$ac_link") 2>conftest.err 170696402570Smrg ac_status=$? 170796402570Smrg if test -s conftest.err; then 170896402570Smrg grep -v '^ *+' conftest.err >conftest.er1 170996402570Smrg cat conftest.er1 >&5 171096402570Smrg mv -f conftest.er1 conftest.err 171196402570Smrg fi 171296402570Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 171396402570Smrg test $ac_status = 0; } && { 171496402570Smrg test -z "$ac_c_werror_flag" || 171596402570Smrg test ! -s conftest.err 171696402570Smrg } && test -s conftest$ac_exeext && { 171796402570Smrg test "$cross_compiling" = yes || 171896402570Smrg $as_test_x conftest$ac_exeext 171996402570Smrg }; then : 172096402570Smrg ac_retval=0 172196402570Smrgelse 172296402570Smrg $as_echo "$as_me: failed program was:" >&5 172396402570Smrgsed 's/^/| /' conftest.$ac_ext >&5 172496402570Smrg 172596402570Smrg ac_retval=1 172696402570Smrgfi 172796402570Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 172896402570Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 172996402570Smrg # interfere with the next link command; also delete a directory that is 173096402570Smrg # left behind by Apple's compiler. We do this before executing the actions. 173196402570Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 173296402570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 173396402570Smrg as_fn_set_status $ac_retval 173496402570Smrg 173596402570Smrg} # ac_fn_c_try_link 173696402570Smrg 17372adc0320Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 17382adc0320Smrg# ------------------------------------------------------- 17392adc0320Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 17402adc0320Smrg# the include files in INCLUDES and setting the cache variable VAR 17412adc0320Smrg# accordingly. 17422adc0320Smrgac_fn_c_check_header_mongrel () 17432adc0320Smrg{ 17442adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17452adc0320Smrg if eval \${$3+:} false; then : 17462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17472adc0320Smrg$as_echo_n "checking for $2... " >&6; } 17482adc0320Smrgif eval \${$3+:} false; then : 17492adc0320Smrg $as_echo_n "(cached) " >&6 17502adc0320Smrgfi 17512adc0320Smrgeval ac_res=\$$3 17522adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17532adc0320Smrg$as_echo "$ac_res" >&6; } 17542adc0320Smrgelse 17552adc0320Smrg # Is the header compilable? 17562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 17572adc0320Smrg$as_echo_n "checking $2 usability... " >&6; } 17582adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592adc0320Smrg/* end confdefs.h. */ 17602adc0320Smrg$4 17612adc0320Smrg#include <$2> 17622adc0320Smrg_ACEOF 17632adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 17642adc0320Smrg ac_header_compiler=yes 17652adc0320Smrgelse 17662adc0320Smrg ac_header_compiler=no 17672adc0320Smrgfi 17682adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 17702adc0320Smrg$as_echo "$ac_header_compiler" >&6; } 17712adc0320Smrg 17722adc0320Smrg# Is the header present? 17732adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 17742adc0320Smrg$as_echo_n "checking $2 presence... " >&6; } 17752adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762adc0320Smrg/* end confdefs.h. */ 17772adc0320Smrg#include <$2> 17782adc0320Smrg_ACEOF 17792adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 17802adc0320Smrg ac_header_preproc=yes 17812adc0320Smrgelse 17822adc0320Smrg ac_header_preproc=no 17832adc0320Smrgfi 17842adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 17852adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 17862adc0320Smrg$as_echo "$ac_header_preproc" >&6; } 17872adc0320Smrg 17882adc0320Smrg# So? What about this header? 17892adc0320Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 17902adc0320Smrg yes:no: ) 17912adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 17922adc0320Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 17932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 17942adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 17952adc0320Smrg ;; 17962adc0320Smrg no:yes:* ) 17972adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 17982adc0320Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 17992adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 18002adc0320Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 18012adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 18022adc0320Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 18032adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 18042adc0320Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 18052adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 18062adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 18072adc0320Smrg( $as_echo "## ---------------------------------------------------------------------- ## 18082adc0320Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 18092adc0320Smrg## ---------------------------------------------------------------------- ##" 18102adc0320Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 18112adc0320Smrg ;; 18122adc0320Smrgesac 18132adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18142adc0320Smrg$as_echo_n "checking for $2... " >&6; } 18152adc0320Smrgif eval \${$3+:} false; then : 18162adc0320Smrg $as_echo_n "(cached) " >&6 18172adc0320Smrgelse 18182adc0320Smrg eval "$3=\$ac_header_compiler" 18192adc0320Smrgfi 18202adc0320Smrgeval ac_res=\$$3 18212adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18222adc0320Smrg$as_echo "$ac_res" >&6; } 18232adc0320Smrgfi 18242adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18252adc0320Smrg 18262adc0320Smrg} # ac_fn_c_check_header_mongrel 18272adc0320Smrg 18282adc0320Smrg# ac_fn_c_check_func LINENO FUNC VAR 18292adc0320Smrg# ---------------------------------- 18302adc0320Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18312adc0320Smrgac_fn_c_check_func () 18322adc0320Smrg{ 18332adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18342adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18352adc0320Smrg$as_echo_n "checking for $2... " >&6; } 18362adc0320Smrgif eval \${$3+:} false; then : 18372adc0320Smrg $as_echo_n "(cached) " >&6 18382adc0320Smrgelse 18392adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18402adc0320Smrg/* end confdefs.h. */ 18412adc0320Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18422adc0320Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18432adc0320Smrg#define $2 innocuous_$2 18442adc0320Smrg 18452adc0320Smrg/* System header to define __stub macros and hopefully few prototypes, 18462adc0320Smrg which can conflict with char $2 (); below. 18472adc0320Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18482adc0320Smrg <limits.h> exists even on freestanding compilers. */ 18492adc0320Smrg 18502adc0320Smrg#ifdef __STDC__ 18512adc0320Smrg# include <limits.h> 18522adc0320Smrg#else 18532adc0320Smrg# include <assert.h> 18542adc0320Smrg#endif 18552adc0320Smrg 18562adc0320Smrg#undef $2 18572adc0320Smrg 18582adc0320Smrg/* Override any GCC internal prototype to avoid an error. 18592adc0320Smrg Use char because int might match the return type of a GCC 18602adc0320Smrg builtin and then its argument prototype would still apply. */ 18612adc0320Smrg#ifdef __cplusplus 18622adc0320Smrgextern "C" 18632adc0320Smrg#endif 18642adc0320Smrgchar $2 (); 18652adc0320Smrg/* The GNU C library defines this for functions which it implements 18662adc0320Smrg to always fail with ENOSYS. Some functions are actually named 18672adc0320Smrg something starting with __ and the normal name is an alias. */ 18682adc0320Smrg#if defined __stub_$2 || defined __stub___$2 18692adc0320Smrgchoke me 18702adc0320Smrg#endif 18712adc0320Smrg 18722adc0320Smrgint 18732adc0320Smrgmain () 18742adc0320Smrg{ 18752adc0320Smrgreturn $2 (); 18762adc0320Smrg ; 18772adc0320Smrg return 0; 18782adc0320Smrg} 18792adc0320Smrg_ACEOF 18802adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 18812adc0320Smrg eval "$3=yes" 18822adc0320Smrgelse 18832adc0320Smrg eval "$3=no" 18842adc0320Smrgfi 18852adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 18862adc0320Smrg conftest$ac_exeext conftest.$ac_ext 18872adc0320Smrgfi 18882adc0320Smrgeval ac_res=\$$3 18892adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18902adc0320Smrg$as_echo "$ac_res" >&6; } 18912adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18922adc0320Smrg 18932adc0320Smrg} # ac_fn_c_check_func 18942adc0320Smrg 18952adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 18962adc0320Smrg# ---------------------------------------------------- 18972adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including 18982adc0320Smrg# INCLUDES, setting cache variable VAR accordingly. 18992adc0320Smrgac_fn_c_check_member () 19002adc0320Smrg{ 19012adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 19032adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; } 19042adc0320Smrgif eval \${$4+:} false; then : 19052adc0320Smrg $as_echo_n "(cached) " >&6 19062adc0320Smrgelse 19072adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19082adc0320Smrg/* end confdefs.h. */ 19092adc0320Smrg$5 19102adc0320Smrgint 19112adc0320Smrgmain () 19122adc0320Smrg{ 19132adc0320Smrgstatic $2 ac_aggr; 19142adc0320Smrgif (ac_aggr.$3) 19152adc0320Smrgreturn 0; 19162adc0320Smrg ; 19172adc0320Smrg return 0; 19182adc0320Smrg} 19192adc0320Smrg_ACEOF 19202adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19212adc0320Smrg eval "$4=yes" 19222adc0320Smrgelse 19232adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19242adc0320Smrg/* end confdefs.h. */ 19252adc0320Smrg$5 19262adc0320Smrgint 19272adc0320Smrgmain () 19282adc0320Smrg{ 19292adc0320Smrgstatic $2 ac_aggr; 19302adc0320Smrgif (sizeof ac_aggr.$3) 19312adc0320Smrgreturn 0; 19322adc0320Smrg ; 19332adc0320Smrg return 0; 19342adc0320Smrg} 19352adc0320Smrg_ACEOF 19362adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19372adc0320Smrg eval "$4=yes" 19382adc0320Smrgelse 19392adc0320Smrg eval "$4=no" 19402adc0320Smrgfi 19412adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19422adc0320Smrgfi 19432adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19442adc0320Smrgfi 19452adc0320Smrgeval ac_res=\$$4 19462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19472adc0320Smrg$as_echo "$ac_res" >&6; } 19482adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19492adc0320Smrg 19502adc0320Smrg} # ac_fn_c_check_member 19512adc0320Smrg 19522adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 19532adc0320Smrg# ------------------------------------------- 19542adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache 19552adc0320Smrg# variable VAR accordingly. 19562adc0320Smrgac_fn_c_check_type () 19572adc0320Smrg{ 19582adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 19602adc0320Smrg$as_echo_n "checking for $2... " >&6; } 19612adc0320Smrgif eval \${$3+:} false; then : 19622adc0320Smrg $as_echo_n "(cached) " >&6 19632adc0320Smrgelse 19642adc0320Smrg eval "$3=no" 19652adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19662adc0320Smrg/* end confdefs.h. */ 19672adc0320Smrg$4 19682adc0320Smrgint 19692adc0320Smrgmain () 19702adc0320Smrg{ 19712adc0320Smrgif (sizeof ($2)) 19722adc0320Smrg return 0; 19732adc0320Smrg ; 19742adc0320Smrg return 0; 19752adc0320Smrg} 19762adc0320Smrg_ACEOF 19772adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19782adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19792adc0320Smrg/* end confdefs.h. */ 19802adc0320Smrg$4 19812adc0320Smrgint 19822adc0320Smrgmain () 19832adc0320Smrg{ 19842adc0320Smrgif (sizeof (($2))) 19852adc0320Smrg return 0; 19862adc0320Smrg ; 19872adc0320Smrg return 0; 19882adc0320Smrg} 19892adc0320Smrg_ACEOF 19902adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19912adc0320Smrg 19922adc0320Smrgelse 19932adc0320Smrg eval "$3=yes" 19942adc0320Smrgfi 19952adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19962adc0320Smrgfi 19972adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19982adc0320Smrgfi 19992adc0320Smrgeval ac_res=\$$3 20002adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20012adc0320Smrg$as_echo "$ac_res" >&6; } 20022adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 20032adc0320Smrg 20042adc0320Smrg} # ac_fn_c_check_type 20052adc0320Smrgcat >config.log <<_ACEOF 20062adc0320SmrgThis file contains any messages produced by compilers while 20072adc0320Smrgrunning configure, to aid debugging if configure makes a mistake. 20082adc0320Smrg 200996402570SmrgIt was created by xauth $as_me 1.0.7, which was 20102adc0320Smrggenerated by GNU Autoconf 2.68. Invocation command line was 20112adc0320Smrg 20122adc0320Smrg $ $0 $@ 20132adc0320Smrg 20142adc0320Smrg_ACEOF 20152adc0320Smrgexec 5>>config.log 20162adc0320Smrg{ 20172adc0320Smrgcat <<_ASUNAME 20182adc0320Smrg## --------- ## 20192adc0320Smrg## Platform. ## 20202adc0320Smrg## --------- ## 20212adc0320Smrg 20222adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 20232adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 20242adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 20252adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 20262adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 20272adc0320Smrg 20282adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 20292adc0320Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 20302adc0320Smrg 20312adc0320Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 20322adc0320Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 20332adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 20342adc0320Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 20352adc0320Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 20362adc0320Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 20372adc0320Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 20382adc0320Smrg 20392adc0320Smrg_ASUNAME 20407a0395d0Smrg 20417a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20427a0395d0Smrgfor as_dir in $PATH 20437a0395d0Smrgdo 20447a0395d0Smrg IFS=$as_save_IFS 20457a0395d0Smrg test -z "$as_dir" && as_dir=. 20462adc0320Smrg $as_echo "PATH: $as_dir" 20472adc0320Smrg done 20487a0395d0SmrgIFS=$as_save_IFS 20497a0395d0Smrg 20507a0395d0Smrg} >&5 20517a0395d0Smrg 20527a0395d0Smrgcat >&5 <<_ACEOF 20537a0395d0Smrg 20547a0395d0Smrg 20557a0395d0Smrg## ----------- ## 20567a0395d0Smrg## Core tests. ## 20577a0395d0Smrg## ----------- ## 20587a0395d0Smrg 20597a0395d0Smrg_ACEOF 20607a0395d0Smrg 20617a0395d0Smrg 20627a0395d0Smrg# Keep a trace of the command line. 20637a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up. 20647a0395d0Smrg# Strip out --silent because we don't want to record it for future runs. 20657a0395d0Smrg# Also quote any args containing shell meta-characters. 20667a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression. 20677a0395d0Smrgac_configure_args= 20687a0395d0Smrgac_configure_args0= 20697a0395d0Smrgac_configure_args1= 20707a0395d0Smrgac_must_keep_next=false 20717a0395d0Smrgfor ac_pass in 1 2 20727a0395d0Smrgdo 20737a0395d0Smrg for ac_arg 20747a0395d0Smrg do 20757a0395d0Smrg case $ac_arg in 20767a0395d0Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 20777a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20787a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 20797a0395d0Smrg continue ;; 20807a0395d0Smrg *\'*) 20817366012aSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20827a0395d0Smrg esac 20837a0395d0Smrg case $ac_pass in 20842adc0320Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 20857a0395d0Smrg 2) 20862adc0320Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 20877a0395d0Smrg if test $ac_must_keep_next = true; then 20887a0395d0Smrg ac_must_keep_next=false # Got value, back to normal. 20897a0395d0Smrg else 20907a0395d0Smrg case $ac_arg in 20917a0395d0Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 20927a0395d0Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 20937a0395d0Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 20947a0395d0Smrg | -with-* | --with-* | -without-* | --without-* | --x) 20957a0395d0Smrg case "$ac_configure_args0 " in 20967a0395d0Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 20977a0395d0Smrg esac 20987a0395d0Smrg ;; 20997a0395d0Smrg -* ) ac_must_keep_next=true ;; 21007a0395d0Smrg esac 21017a0395d0Smrg fi 21022adc0320Smrg as_fn_append ac_configure_args " '$ac_arg'" 21037a0395d0Smrg ;; 21047a0395d0Smrg esac 21057a0395d0Smrg done 21067a0395d0Smrgdone 21072adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;} 21082adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;} 21097a0395d0Smrg 21107a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete 21117a0395d0Smrg# config.log. We remove comments because anyway the quotes in there 21127a0395d0Smrg# would cause problems or look ugly. 21137a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 21147a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 21157a0395d0Smrgtrap 'exit_status=$? 21167a0395d0Smrg # Save into config.log some information that might help in debugging. 21177a0395d0Smrg { 21187a0395d0Smrg echo 21197a0395d0Smrg 21202adc0320Smrg $as_echo "## ---------------- ## 21217a0395d0Smrg## Cache variables. ## 21222adc0320Smrg## ---------------- ##" 21237a0395d0Smrg echo 21247a0395d0Smrg # The following way of writing the cache mishandles newlines in values, 21257a0395d0Smrg( 21267a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 21277a0395d0Smrg eval ac_val=\$$ac_var 21287a0395d0Smrg case $ac_val in #( 21297a0395d0Smrg *${as_nl}*) 21307a0395d0Smrg case $ac_var in #( 21312adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21327366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21337a0395d0Smrg esac 21347a0395d0Smrg case $ac_var in #( 21357a0395d0Smrg _ | IFS | as_nl) ;; #( 21367366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21372adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 21387a0395d0Smrg esac ;; 21397a0395d0Smrg esac 21407a0395d0Smrg done 21417a0395d0Smrg (set) 2>&1 | 21427a0395d0Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 21437a0395d0Smrg *${as_nl}ac_space=\ *) 21447a0395d0Smrg sed -n \ 21457a0395d0Smrg "s/'\''/'\''\\\\'\'''\''/g; 21467a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 21477a0395d0Smrg ;; #( 21487a0395d0Smrg *) 21497a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21507a0395d0Smrg ;; 21517a0395d0Smrg esac | 21527a0395d0Smrg sort 21537a0395d0Smrg) 21547a0395d0Smrg echo 21557a0395d0Smrg 21562adc0320Smrg $as_echo "## ----------------- ## 21577a0395d0Smrg## Output variables. ## 21582adc0320Smrg## ----------------- ##" 21597a0395d0Smrg echo 21607a0395d0Smrg for ac_var in $ac_subst_vars 21617a0395d0Smrg do 21627a0395d0Smrg eval ac_val=\$$ac_var 21637a0395d0Smrg case $ac_val in 21647366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 21657a0395d0Smrg esac 21667366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 21677a0395d0Smrg done | sort 21687a0395d0Smrg echo 21697a0395d0Smrg 21707a0395d0Smrg if test -n "$ac_subst_files"; then 21712adc0320Smrg $as_echo "## ------------------- ## 21727a0395d0Smrg## File substitutions. ## 21732adc0320Smrg## ------------------- ##" 21747a0395d0Smrg echo 21757a0395d0Smrg for ac_var in $ac_subst_files 21767a0395d0Smrg do 21777a0395d0Smrg eval ac_val=\$$ac_var 21787a0395d0Smrg case $ac_val in 21797366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 21807a0395d0Smrg esac 21817366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 21827a0395d0Smrg done | sort 21837a0395d0Smrg echo 21847a0395d0Smrg fi 21857a0395d0Smrg 21867a0395d0Smrg if test -s confdefs.h; then 21872adc0320Smrg $as_echo "## ----------- ## 21887a0395d0Smrg## confdefs.h. ## 21892adc0320Smrg## ----------- ##" 21907a0395d0Smrg echo 21917a0395d0Smrg cat confdefs.h 21927a0395d0Smrg echo 21937a0395d0Smrg fi 21947a0395d0Smrg test "$ac_signal" != 0 && 21957366012aSmrg $as_echo "$as_me: caught signal $ac_signal" 21967366012aSmrg $as_echo "$as_me: exit $exit_status" 21977a0395d0Smrg } >&5 21987a0395d0Smrg rm -f core *.core core.conftest.* && 21997a0395d0Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 22007a0395d0Smrg exit $exit_status 22017a0395d0Smrg' 0 22027a0395d0Smrgfor ac_signal in 1 2 13 15; do 22032adc0320Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 22047a0395d0Smrgdone 22057a0395d0Smrgac_signal=0 22067a0395d0Smrg 22077a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 22087a0395d0Smrgrm -f -r conftest* confdefs.h 22097a0395d0Smrg 22102adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h 22112adc0320Smrg 22127a0395d0Smrg# Predefined preprocessor variables. 22137a0395d0Smrg 22147a0395d0Smrgcat >>confdefs.h <<_ACEOF 22157a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 22167a0395d0Smrg_ACEOF 22177a0395d0Smrg 22187a0395d0Smrgcat >>confdefs.h <<_ACEOF 22197a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 22207a0395d0Smrg_ACEOF 22217a0395d0Smrg 22227a0395d0Smrgcat >>confdefs.h <<_ACEOF 22237a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 22247a0395d0Smrg_ACEOF 22257a0395d0Smrg 22267a0395d0Smrgcat >>confdefs.h <<_ACEOF 22277a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 22287a0395d0Smrg_ACEOF 22297a0395d0Smrg 22307a0395d0Smrgcat >>confdefs.h <<_ACEOF 22317a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 22327a0395d0Smrg_ACEOF 22337a0395d0Smrg 22342adc0320Smrgcat >>confdefs.h <<_ACEOF 22352adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL" 22362adc0320Smrg_ACEOF 22372adc0320Smrg 22387a0395d0Smrg 22397a0395d0Smrg# Let the site file select an alternate cache file if it wants to. 22407366012aSmrg# Prefer an explicitly selected file to automatically selected ones. 22417366012aSmrgac_site_file1=NONE 22427366012aSmrgac_site_file2=NONE 22437a0395d0Smrgif test -n "$CONFIG_SITE"; then 22442adc0320Smrg # We do not want a PATH search for config.site. 22452adc0320Smrg case $CONFIG_SITE in #(( 22462adc0320Smrg -*) ac_site_file1=./$CONFIG_SITE;; 22472adc0320Smrg */*) ac_site_file1=$CONFIG_SITE;; 22482adc0320Smrg *) ac_site_file1=./$CONFIG_SITE;; 22492adc0320Smrg esac 22507a0395d0Smrgelif test "x$prefix" != xNONE; then 22517366012aSmrg ac_site_file1=$prefix/share/config.site 22527366012aSmrg ac_site_file2=$prefix/etc/config.site 22537a0395d0Smrgelse 22547366012aSmrg ac_site_file1=$ac_default_prefix/share/config.site 22557366012aSmrg ac_site_file2=$ac_default_prefix/etc/config.site 22567a0395d0Smrgfi 22577366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 22587a0395d0Smrgdo 22597366012aSmrg test "x$ac_site_file" = xNONE && continue 22602adc0320Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 22612adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 22627366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 22637a0395d0Smrg sed 's/^/| /' "$ac_site_file" >&5 22642adc0320Smrg . "$ac_site_file" \ 22652adc0320Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22662adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22672adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file 22682adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 22697a0395d0Smrg fi 22707a0395d0Smrgdone 22717a0395d0Smrg 22727a0395d0Smrgif test -r "$cache_file"; then 22732adc0320Smrg # Some versions of bash will fail to source /dev/null (special files 22742adc0320Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 22752adc0320Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 22762adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 22777366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 22787a0395d0Smrg case $cache_file in 22797a0395d0Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 22807a0395d0Smrg *) . "./$cache_file";; 22817a0395d0Smrg esac 22827a0395d0Smrg fi 22837a0395d0Smrgelse 22842adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 22857366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 22867a0395d0Smrg >$cache_file 22877a0395d0Smrgfi 22887a0395d0Smrg 22897a0395d0Smrg# Check that the precious variables saved in the cache have kept the same 22907a0395d0Smrg# value. 22917a0395d0Smrgac_cache_corrupted=false 22927a0395d0Smrgfor ac_var in $ac_precious_vars; do 22937a0395d0Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 22947a0395d0Smrg eval ac_new_set=\$ac_env_${ac_var}_set 22957a0395d0Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 22967a0395d0Smrg eval ac_new_val=\$ac_env_${ac_var}_value 22977a0395d0Smrg case $ac_old_set,$ac_new_set in 22987a0395d0Smrg set,) 22992adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 23007366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 23017a0395d0Smrg ac_cache_corrupted=: ;; 23027a0395d0Smrg ,set) 23032adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 23047366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 23057a0395d0Smrg ac_cache_corrupted=: ;; 23067a0395d0Smrg ,);; 23077a0395d0Smrg *) 23087a0395d0Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 23097366012aSmrg # differences in whitespace do not lead to failure. 23107366012aSmrg ac_old_val_w=`echo x $ac_old_val` 23117366012aSmrg ac_new_val_w=`echo x $ac_new_val` 23127366012aSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 23132adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 23147366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 23157366012aSmrg ac_cache_corrupted=: 23167366012aSmrg else 23172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 23187366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 23197366012aSmrg eval $ac_var=\$ac_old_val 23207366012aSmrg fi 23212adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 23227366012aSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 23232adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 23247366012aSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 23257a0395d0Smrg fi;; 23262adc0320Smrg esac 23272adc0320Smrg # Pass precious variables to config.status. 23282adc0320Smrg if test "$ac_new_set" = set; then 23292adc0320Smrg case $ac_new_val in 23302adc0320Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 23312adc0320Smrg *) ac_arg=$ac_var=$ac_new_val ;; 23322adc0320Smrg esac 23332adc0320Smrg case " $ac_configure_args " in 23342adc0320Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 23352adc0320Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 23362adc0320Smrg esac 23372adc0320Smrg fi 23382adc0320Smrgdone 23392adc0320Smrgif $ac_cache_corrupted; then 23402adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23412adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 23432adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 23442adc0320Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 23452adc0320Smrgfi 23462adc0320Smrg## -------------------- ## 23472adc0320Smrg## Main body of script. ## 23482adc0320Smrg## -------------------- ## 23497a0395d0Smrg 23507a0395d0Smrgac_ext=c 23517a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 23527a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23537a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23547a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 23557a0395d0Smrg 23567a0395d0Smrg 23577366012aSmrgam__api_version='1.11' 23587a0395d0Smrg 23597a0395d0Smrgac_aux_dir= 23607a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 23617a0395d0Smrg if test -f "$ac_dir/install-sh"; then 23627a0395d0Smrg ac_aux_dir=$ac_dir 23637a0395d0Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 23647a0395d0Smrg break 23657a0395d0Smrg elif test -f "$ac_dir/install.sh"; then 23667a0395d0Smrg ac_aux_dir=$ac_dir 23677a0395d0Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 23687a0395d0Smrg break 23697a0395d0Smrg elif test -f "$ac_dir/shtool"; then 23707a0395d0Smrg ac_aux_dir=$ac_dir 23717a0395d0Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 23727a0395d0Smrg break 23737a0395d0Smrg fi 23747a0395d0Smrgdone 23757a0395d0Smrgif test -z "$ac_aux_dir"; then 23762adc0320Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 23777a0395d0Smrgfi 23787a0395d0Smrg 23797a0395d0Smrg# These three variables are undocumented and unsupported, 23807a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release. 23817a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory 23827a0395d0Smrg# whose full name contains unusual characters. 23837a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 23847a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 23857a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 23867a0395d0Smrg 23877a0395d0Smrg 23887a0395d0Smrg# Find a good install program. We prefer a C program (faster), 23897a0395d0Smrg# so one script is as good as another. But avoid the broken or 23907a0395d0Smrg# incompatible versions: 23917a0395d0Smrg# SysV /etc/install, /usr/sbin/install 23927a0395d0Smrg# SunOS /usr/etc/install 23937a0395d0Smrg# IRIX /sbin/install 23947a0395d0Smrg# AIX /bin/install 23957a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 23967a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 23977a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 23987a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 23997a0395d0Smrg# OS/2's system install, which has a completely different semantic 24007a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh. 24017366012aSmrg# Reject install programs that cannot install multiple files. 24022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 24037366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 24047a0395d0Smrgif test -z "$INSTALL"; then 24052adc0320Smrgif ${ac_cv_path_install+:} false; then : 24067366012aSmrg $as_echo_n "(cached) " >&6 24077a0395d0Smrgelse 24087a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24097a0395d0Smrgfor as_dir in $PATH 24107a0395d0Smrgdo 24117a0395d0Smrg IFS=$as_save_IFS 24127a0395d0Smrg test -z "$as_dir" && as_dir=. 24132adc0320Smrg # Account for people who put trailing slashes in PATH elements. 24142adc0320Smrgcase $as_dir/ in #(( 24152adc0320Smrg ./ | .// | /[cC]/* | \ 24167a0395d0Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 24172adc0320Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 24187a0395d0Smrg /usr/ucb/* ) ;; 24197a0395d0Smrg *) 24207a0395d0Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 24217a0395d0Smrg # Don't use installbsd from OSF since it installs stuff as root 24227a0395d0Smrg # by default. 24237a0395d0Smrg for ac_prog in ginstall scoinst install; do 24247a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24257a0395d0Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 24267a0395d0Smrg if test $ac_prog = install && 24277a0395d0Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24287a0395d0Smrg # AIX install. It has an incompatible calling convention. 24297a0395d0Smrg : 24307a0395d0Smrg elif test $ac_prog = install && 24317a0395d0Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24327a0395d0Smrg # program-specific install script used by HP pwplus--don't use. 24337a0395d0Smrg : 24347a0395d0Smrg else 24357366012aSmrg rm -rf conftest.one conftest.two conftest.dir 24367366012aSmrg echo one > conftest.one 24377366012aSmrg echo two > conftest.two 24387366012aSmrg mkdir conftest.dir 24397366012aSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 24407366012aSmrg test -s conftest.one && test -s conftest.two && 24417366012aSmrg test -s conftest.dir/conftest.one && 24427366012aSmrg test -s conftest.dir/conftest.two 24437366012aSmrg then 24447366012aSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 24457366012aSmrg break 3 24467366012aSmrg fi 24477a0395d0Smrg fi 24487a0395d0Smrg fi 24497a0395d0Smrg done 24507a0395d0Smrg done 24517a0395d0Smrg ;; 24527a0395d0Smrgesac 24537366012aSmrg 24542adc0320Smrg done 24557a0395d0SmrgIFS=$as_save_IFS 24567a0395d0Smrg 24577366012aSmrgrm -rf conftest.one conftest.two conftest.dir 24587a0395d0Smrg 24597a0395d0Smrgfi 24607a0395d0Smrg if test "${ac_cv_path_install+set}" = set; then 24617a0395d0Smrg INSTALL=$ac_cv_path_install 24627a0395d0Smrg else 24637a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 24647a0395d0Smrg # value for INSTALL within a source directory, because that will 24657a0395d0Smrg # break other packages using the cache if that directory is 24667a0395d0Smrg # removed, or if the value is a relative name. 24677a0395d0Smrg INSTALL=$ac_install_sh 24687a0395d0Smrg fi 24697a0395d0Smrgfi 24702adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 24717366012aSmrg$as_echo "$INSTALL" >&6; } 24727a0395d0Smrg 24737a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 24747a0395d0Smrg# It thinks the first close brace ends the variable substitution. 24757a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 24767a0395d0Smrg 24777a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 24787a0395d0Smrg 24797a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 24807a0395d0Smrg 24812adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 24827366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 24837a0395d0Smrg# Just in case 24847a0395d0Smrgsleep 1 24857a0395d0Smrgecho timestamp > conftest.file 24867366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 24877366012aSmrg# name. Accept space and tab only in the latter. 24887366012aSmrgam_lf=' 24897366012aSmrg' 24907366012aSmrgcase `pwd` in 24917366012aSmrg *[\\\"\#\$\&\'\`$am_lf]*) 24922adc0320Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 24937366012aSmrgesac 24947366012aSmrgcase $srcdir in 24957366012aSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 24962adc0320Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 24977366012aSmrgesac 24987366012aSmrg 24997366012aSmrg# Do `set' in a subshell so we don't clobber the current shell's 25007366012aSmrg# arguments. Must try -L first in case configure is actually a 25017366012aSmrg# symlink; some systems play weird games with the mod time of symlinks 25027366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 25037366012aSmrg# directory). 25047366012aSmrgif ( 25057366012aSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 25067a0395d0Smrg if test "$*" = "X"; then 25077a0395d0Smrg # -L didn't work. 25087366012aSmrg set X `ls -t "$srcdir/configure" conftest.file` 25097a0395d0Smrg fi 25107a0395d0Smrg rm -f conftest.file 25117a0395d0Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 25127a0395d0Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 25137a0395d0Smrg 25147a0395d0Smrg # If neither matched, then we have a broken ls. This can happen 25157a0395d0Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 25167a0395d0Smrg # broken ls alias from the environment. This has actually 25177a0395d0Smrg # happened. Such a system could not be considered "sane". 25182adc0320Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 25192adc0320Smrgalias in your environment" "$LINENO" 5 25207a0395d0Smrg fi 25217a0395d0Smrg 25227a0395d0Smrg test "$2" = conftest.file 25237a0395d0Smrg ) 25247a0395d0Smrgthen 25257a0395d0Smrg # Ok. 25267a0395d0Smrg : 25277a0395d0Smrgelse 25282adc0320Smrg as_fn_error $? "newly created file is older than distributed files! 25292adc0320SmrgCheck your system clock" "$LINENO" 5 25307a0395d0Smrgfi 25312adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25327366012aSmrg$as_echo "yes" >&6; } 25337a0395d0Smrgtest "$program_prefix" != NONE && 25347a0395d0Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 25357a0395d0Smrg# Use a double $ so make ignores it. 25367a0395d0Smrgtest "$program_suffix" != NONE && 25377a0395d0Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 25387366012aSmrg# Double any \ or $. 25397a0395d0Smrg# By default was `s,x,x', remove it if useless. 25407366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 25417366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 25427a0395d0Smrg 25437a0395d0Smrg# expand $ac_aux_dir to an absolute path 25447a0395d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 25457a0395d0Smrg 25467366012aSmrgif test x"${MISSING+set}" != xset; then 25477366012aSmrg case $am_aux_dir in 25487366012aSmrg *\ * | *\ *) 25497366012aSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 25507366012aSmrg *) 25517366012aSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 25527366012aSmrg esac 25537366012aSmrgfi 25547a0395d0Smrg# Use eval to expand $SHELL 25557a0395d0Smrgif eval "$MISSING --run true"; then 25567a0395d0Smrg am_missing_run="$MISSING --run " 25577a0395d0Smrgelse 25587a0395d0Smrg am_missing_run= 25592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 25607366012aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 25617366012aSmrgfi 25627366012aSmrg 25637366012aSmrgif test x"${install_sh}" != xset; then 25647366012aSmrg case $am_aux_dir in 25657366012aSmrg *\ * | *\ *) 25667366012aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 25677366012aSmrg *) 25687366012aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 25697366012aSmrg esac 25707366012aSmrgfi 25717366012aSmrg 25727366012aSmrg# Installed binaries are usually stripped using `strip' when the user 25737366012aSmrg# run `make install-strip'. However `strip' might not be the right 25747366012aSmrg# tool to use in cross-compilation environments, therefore Automake 25757366012aSmrg# will honor the `STRIP' environment variable to overrule this program. 25767366012aSmrgif test "$cross_compiling" != no; then 25777366012aSmrg if test -n "$ac_tool_prefix"; then 25787366012aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 25797366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 25802adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25817366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 25822adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then : 25837366012aSmrg $as_echo_n "(cached) " >&6 25847366012aSmrgelse 25857366012aSmrg if test -n "$STRIP"; then 25867366012aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 25877366012aSmrgelse 25887366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25897366012aSmrgfor as_dir in $PATH 25907366012aSmrgdo 25917366012aSmrg IFS=$as_save_IFS 25927366012aSmrg test -z "$as_dir" && as_dir=. 25932adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 25947366012aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25957366012aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 25962adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25977366012aSmrg break 2 25987366012aSmrg fi 25997366012aSmrgdone 26002adc0320Smrg done 26017366012aSmrgIFS=$as_save_IFS 26027366012aSmrg 26037366012aSmrgfi 26047366012aSmrgfi 26057366012aSmrgSTRIP=$ac_cv_prog_STRIP 26067366012aSmrgif test -n "$STRIP"; then 26072adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 26087366012aSmrg$as_echo "$STRIP" >&6; } 26097366012aSmrgelse 26102adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26117366012aSmrg$as_echo "no" >&6; } 26127366012aSmrgfi 26137366012aSmrg 26147366012aSmrg 26157366012aSmrgfi 26167366012aSmrgif test -z "$ac_cv_prog_STRIP"; then 26177366012aSmrg ac_ct_STRIP=$STRIP 26187366012aSmrg # Extract the first word of "strip", so it can be a program name with args. 26197366012aSmrgset dummy strip; ac_word=$2 26202adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26217366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 26222adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 26237366012aSmrg $as_echo_n "(cached) " >&6 26247366012aSmrgelse 26257366012aSmrg if test -n "$ac_ct_STRIP"; then 26267366012aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 26277366012aSmrgelse 26287366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26297366012aSmrgfor as_dir in $PATH 26307366012aSmrgdo 26317366012aSmrg IFS=$as_save_IFS 26327366012aSmrg test -z "$as_dir" && as_dir=. 26332adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26347366012aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26357366012aSmrg ac_cv_prog_ac_ct_STRIP="strip" 26362adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26377366012aSmrg break 2 26387366012aSmrg fi 26397366012aSmrgdone 26402adc0320Smrg done 26417366012aSmrgIFS=$as_save_IFS 26427366012aSmrg 26437366012aSmrgfi 26447366012aSmrgfi 26457366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 26467366012aSmrgif test -n "$ac_ct_STRIP"; then 26472adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 26487366012aSmrg$as_echo "$ac_ct_STRIP" >&6; } 26497366012aSmrgelse 26502adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26517366012aSmrg$as_echo "no" >&6; } 26527366012aSmrgfi 26537366012aSmrg 26547366012aSmrg if test "x$ac_ct_STRIP" = x; then 26557366012aSmrg STRIP=":" 26567366012aSmrg else 26577366012aSmrg case $cross_compiling:$ac_tool_warned in 26587366012aSmrgyes:) 26592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26607366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26617366012aSmrgac_tool_warned=yes ;; 26627366012aSmrgesac 26637366012aSmrg STRIP=$ac_ct_STRIP 26647366012aSmrg fi 26657366012aSmrgelse 26667366012aSmrg STRIP="$ac_cv_prog_STRIP" 26677a0395d0Smrgfi 26687a0395d0Smrg 26697366012aSmrgfi 26707366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 26717366012aSmrg 26722adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 26737366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 26747a0395d0Smrgif test -z "$MKDIR_P"; then 26752adc0320Smrg if ${ac_cv_path_mkdir+:} false; then : 26767366012aSmrg $as_echo_n "(cached) " >&6 26777a0395d0Smrgelse 26787a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26797a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 26807a0395d0Smrgdo 26817a0395d0Smrg IFS=$as_save_IFS 26827a0395d0Smrg test -z "$as_dir" && as_dir=. 26832adc0320Smrg for ac_prog in mkdir gmkdir; do 26847a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26857a0395d0Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 26867a0395d0Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 26877a0395d0Smrg 'mkdir (GNU coreutils) '* | \ 26887a0395d0Smrg 'mkdir (coreutils) '* | \ 26897a0395d0Smrg 'mkdir (fileutils) '4.1*) 26907a0395d0Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 26917a0395d0Smrg break 3;; 26927a0395d0Smrg esac 26937a0395d0Smrg done 26947a0395d0Smrg done 26952adc0320Smrg done 26967a0395d0SmrgIFS=$as_save_IFS 26977a0395d0Smrg 26987a0395d0Smrgfi 26997a0395d0Smrg 27002adc0320Smrg test -d ./--version && rmdir ./--version 27017a0395d0Smrg if test "${ac_cv_path_mkdir+set}" = set; then 27027a0395d0Smrg MKDIR_P="$ac_cv_path_mkdir -p" 27037a0395d0Smrg else 27047a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 27057a0395d0Smrg # value for MKDIR_P within a source directory, because that will 27067a0395d0Smrg # break other packages using the cache if that directory is 27077a0395d0Smrg # removed, or if the value is a relative name. 27087a0395d0Smrg MKDIR_P="$ac_install_sh -d" 27097a0395d0Smrg fi 27107a0395d0Smrgfi 27112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 27127366012aSmrg$as_echo "$MKDIR_P" >&6; } 27137a0395d0Smrg 27147a0395d0Smrgmkdir_p="$MKDIR_P" 27157a0395d0Smrgcase $mkdir_p in 27167a0395d0Smrg [\\/$]* | ?:[\\/]*) ;; 27177a0395d0Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 27187a0395d0Smrgesac 27197a0395d0Smrg 27207a0395d0Smrgfor ac_prog in gawk mawk nawk awk 27217a0395d0Smrgdo 27227a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 27237a0395d0Smrgset dummy $ac_prog; ac_word=$2 27242adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27257366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 27262adc0320Smrgif ${ac_cv_prog_AWK+:} false; then : 27277366012aSmrg $as_echo_n "(cached) " >&6 27287a0395d0Smrgelse 27297a0395d0Smrg if test -n "$AWK"; then 27307a0395d0Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 27317a0395d0Smrgelse 27327a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27337a0395d0Smrgfor as_dir in $PATH 27347a0395d0Smrgdo 27357a0395d0Smrg IFS=$as_save_IFS 27367a0395d0Smrg test -z "$as_dir" && as_dir=. 27372adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27387a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27397a0395d0Smrg ac_cv_prog_AWK="$ac_prog" 27402adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27417a0395d0Smrg break 2 27427a0395d0Smrg fi 27437a0395d0Smrgdone 27442adc0320Smrg done 27457a0395d0SmrgIFS=$as_save_IFS 27467a0395d0Smrg 27477a0395d0Smrgfi 27487a0395d0Smrgfi 27497a0395d0SmrgAWK=$ac_cv_prog_AWK 27507a0395d0Smrgif test -n "$AWK"; then 27512adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 27527366012aSmrg$as_echo "$AWK" >&6; } 27537a0395d0Smrgelse 27542adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27557366012aSmrg$as_echo "no" >&6; } 27567a0395d0Smrgfi 27577a0395d0Smrg 27587a0395d0Smrg 27597a0395d0Smrg test -n "$AWK" && break 27607a0395d0Smrgdone 27617a0395d0Smrg 27622adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 27637366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 27647366012aSmrgset x ${MAKE-make} 27657366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 27662adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 27677366012aSmrg $as_echo_n "(cached) " >&6 27687a0395d0Smrgelse 27697a0395d0Smrg cat >conftest.make <<\_ACEOF 27707a0395d0SmrgSHELL = /bin/sh 27717a0395d0Smrgall: 27727a0395d0Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 27737a0395d0Smrg_ACEOF 27742adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 27757a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 27767a0395d0Smrg *@@@%%%=?*=@@@%%%*) 27777a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 27787a0395d0Smrg *) 27797a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 27807a0395d0Smrgesac 27817a0395d0Smrgrm -f conftest.make 27827a0395d0Smrgfi 27837a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 27842adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27857366012aSmrg$as_echo "yes" >&6; } 27867a0395d0Smrg SET_MAKE= 27877a0395d0Smrgelse 27882adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27897366012aSmrg$as_echo "no" >&6; } 27907a0395d0Smrg SET_MAKE="MAKE=${MAKE-make}" 27917a0395d0Smrgfi 27927a0395d0Smrg 27937a0395d0Smrgrm -rf .tst 2>/dev/null 27947a0395d0Smrgmkdir .tst 2>/dev/null 27957a0395d0Smrgif test -d .tst; then 27967a0395d0Smrg am__leading_dot=. 27977a0395d0Smrgelse 27987a0395d0Smrg am__leading_dot=_ 27997a0395d0Smrgfi 28007a0395d0Smrgrmdir .tst 2>/dev/null 28017a0395d0Smrg 28027a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 28037a0395d0Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 28047a0395d0Smrg # is not polluted with repeated "-I." 28057a0395d0Smrg am__isrc=' -I$(srcdir)' 28067a0395d0Smrg # test to see if srcdir already configured 28077a0395d0Smrg if test -f $srcdir/config.status; then 28082adc0320Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 28097a0395d0Smrg fi 28107a0395d0Smrgfi 28117a0395d0Smrg 28127a0395d0Smrg# test whether we have cygpath 28137a0395d0Smrgif test -z "$CYGPATH_W"; then 28147a0395d0Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 28157a0395d0Smrg CYGPATH_W='cygpath -w' 28167a0395d0Smrg else 28177a0395d0Smrg CYGPATH_W=echo 28187a0395d0Smrg fi 28197a0395d0Smrgfi 28207a0395d0Smrg 28217a0395d0Smrg 28227a0395d0Smrg# Define the identity of the package. 28237a0395d0Smrg PACKAGE='xauth' 282496402570Smrg VERSION='1.0.7' 28257a0395d0Smrg 28267a0395d0Smrg 28277a0395d0Smrgcat >>confdefs.h <<_ACEOF 28287a0395d0Smrg#define PACKAGE "$PACKAGE" 28297a0395d0Smrg_ACEOF 28307a0395d0Smrg 28317a0395d0Smrg 28327a0395d0Smrgcat >>confdefs.h <<_ACEOF 28337a0395d0Smrg#define VERSION "$VERSION" 28347a0395d0Smrg_ACEOF 28357a0395d0Smrg 28367a0395d0Smrg# Some tools Automake needs. 28377a0395d0Smrg 28387a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 28397a0395d0Smrg 28407a0395d0Smrg 28417a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 28427a0395d0Smrg 28437a0395d0Smrg 28447a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 28457a0395d0Smrg 28467a0395d0Smrg 28477a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 28487a0395d0Smrg 28497a0395d0Smrg 28507a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 28517a0395d0Smrg 28527a0395d0Smrg# We need awk for the "check" target. The system "awk" is bad on 28537a0395d0Smrg# some platforms. 28547a0395d0Smrg# Always define AMTAR for backward compatibility. 28557a0395d0Smrg 28567a0395d0SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 28577a0395d0Smrg 28587a0395d0Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 28597a0395d0Smrg 28607a0395d0Smrg 28617a0395d0Smrg 28627a0395d0Smrg 28637a0395d0Smrg 28647366012aSmrg 28652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 28667366012aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 28677a0395d0Smrg # Check whether --enable-maintainer-mode was given. 28682adc0320Smrgif test "${enable_maintainer_mode+set}" = set; then : 28697a0395d0Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 28707a0395d0Smrgelse 28717a0395d0Smrg USE_MAINTAINER_MODE=no 28727a0395d0Smrgfi 28737a0395d0Smrg 28742adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 28757366012aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 28767a0395d0Smrg if test $USE_MAINTAINER_MODE = yes; then 28777a0395d0Smrg MAINTAINER_MODE_TRUE= 28787a0395d0Smrg MAINTAINER_MODE_FALSE='#' 28797a0395d0Smrgelse 28807a0395d0Smrg MAINTAINER_MODE_TRUE='#' 28817a0395d0Smrg MAINTAINER_MODE_FALSE= 28827a0395d0Smrgfi 28837a0395d0Smrg 28847a0395d0Smrg MAINT=$MAINTAINER_MODE_TRUE 28857a0395d0Smrg 28867a0395d0Smrg 28877a0395d0Smrg 28887a0395d0Smrgac_config_headers="$ac_config_headers config.h" 28897a0395d0Smrg 28907a0395d0Smrg 28912adc0320Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 28922adc0320Smrg 28932adc0320Smrg 28947366012aSmrg 28957366012aSmrg 28967366012aSmrg 28977366012aSmrg 28987366012aSmrg 28997366012aSmrg 29007366012aSmrg 29017366012aSmrg 29027a0395d0Smrg 29032adc0320SmrgDEPDIR="${am__leading_dot}deps" 29042adc0320Smrg 29052adc0320Smrgac_config_commands="$ac_config_commands depfiles" 29062adc0320Smrg 29072adc0320Smrg 29082adc0320Smrgam_make=${MAKE-make} 29092adc0320Smrgcat > confinc << 'END' 29102adc0320Smrgam__doit: 29112adc0320Smrg @echo this is the am__doit target 29122adc0320Smrg.PHONY: am__doit 29132adc0320SmrgEND 29142adc0320Smrg# If we don't find an include directive, just comment out the code. 29152adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 29162adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 29172adc0320Smrgam__include="#" 29182adc0320Smrgam__quote= 29192adc0320Smrg_am_result=none 29202adc0320Smrg# First try GNU make style include. 29212adc0320Smrgecho "include confinc" > confmf 29222adc0320Smrg# Ignore all kinds of additional output from `make'. 29232adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 29242adc0320Smrg*the\ am__doit\ target*) 29252adc0320Smrg am__include=include 29262adc0320Smrg am__quote= 29272adc0320Smrg _am_result=GNU 29282adc0320Smrg ;; 29292adc0320Smrgesac 29302adc0320Smrg# Now try BSD make style include. 29312adc0320Smrgif test "$am__include" = "#"; then 29322adc0320Smrg echo '.include "confinc"' > confmf 29332adc0320Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 29342adc0320Smrg *the\ am__doit\ target*) 29352adc0320Smrg am__include=.include 29362adc0320Smrg am__quote="\"" 29372adc0320Smrg _am_result=BSD 29382adc0320Smrg ;; 29392adc0320Smrg esac 29402adc0320Smrgfi 29412adc0320Smrg 29422adc0320Smrg 29432adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 29442adc0320Smrg$as_echo "$_am_result" >&6; } 29452adc0320Smrgrm -f confinc confmf 29462adc0320Smrg 29472adc0320Smrg# Check whether --enable-dependency-tracking was given. 29482adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then : 29492adc0320Smrg enableval=$enable_dependency_tracking; 29502adc0320Smrgfi 29517a0395d0Smrg 29522adc0320Smrgif test "x$enable_dependency_tracking" != xno; then 29532adc0320Smrg am_depcomp="$ac_aux_dir/depcomp" 29542adc0320Smrg AMDEPBACKSLASH='\' 29552adc0320Smrgfi 29562adc0320Smrg if test "x$enable_dependency_tracking" != xno; then 29572adc0320Smrg AMDEP_TRUE= 29582adc0320Smrg AMDEP_FALSE='#' 29592adc0320Smrgelse 29602adc0320Smrg AMDEP_TRUE='#' 29612adc0320Smrg AMDEP_FALSE= 29622adc0320Smrgfi 29637a0395d0Smrg 29647a0395d0Smrg 29657a0395d0Smrgac_ext=c 29667a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 29677a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29687a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29697a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 29707a0395d0Smrgif test -n "$ac_tool_prefix"; then 29717a0395d0Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 29727a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 29732adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29747366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 29752adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 29767366012aSmrg $as_echo_n "(cached) " >&6 29777a0395d0Smrgelse 29787a0395d0Smrg if test -n "$CC"; then 29797a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29807a0395d0Smrgelse 29817a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29827a0395d0Smrgfor as_dir in $PATH 29837a0395d0Smrgdo 29847a0395d0Smrg IFS=$as_save_IFS 29857a0395d0Smrg test -z "$as_dir" && as_dir=. 29862adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29877a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29887a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 29892adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29907a0395d0Smrg break 2 29917a0395d0Smrg fi 29927a0395d0Smrgdone 29932adc0320Smrg done 29947a0395d0SmrgIFS=$as_save_IFS 29957a0395d0Smrg 29967a0395d0Smrgfi 29977a0395d0Smrgfi 29987a0395d0SmrgCC=$ac_cv_prog_CC 29997a0395d0Smrgif test -n "$CC"; then 30002adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30017366012aSmrg$as_echo "$CC" >&6; } 30027a0395d0Smrgelse 30032adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30047366012aSmrg$as_echo "no" >&6; } 30057a0395d0Smrgfi 30067a0395d0Smrg 30077a0395d0Smrg 30087a0395d0Smrgfi 30097a0395d0Smrgif test -z "$ac_cv_prog_CC"; then 30107a0395d0Smrg ac_ct_CC=$CC 30117a0395d0Smrg # Extract the first word of "gcc", so it can be a program name with args. 30127a0395d0Smrgset dummy gcc; ac_word=$2 30132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30147366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 30152adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 30167366012aSmrg $as_echo_n "(cached) " >&6 30177a0395d0Smrgelse 30187a0395d0Smrg if test -n "$ac_ct_CC"; then 30197a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30207a0395d0Smrgelse 30217a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30227a0395d0Smrgfor as_dir in $PATH 30237a0395d0Smrgdo 30247a0395d0Smrg IFS=$as_save_IFS 30257a0395d0Smrg test -z "$as_dir" && as_dir=. 30262adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30277a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30287a0395d0Smrg ac_cv_prog_ac_ct_CC="gcc" 30292adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30307a0395d0Smrg break 2 30317a0395d0Smrg fi 30327a0395d0Smrgdone 30332adc0320Smrg done 30347a0395d0SmrgIFS=$as_save_IFS 30357a0395d0Smrg 30367a0395d0Smrgfi 30377a0395d0Smrgfi 30387a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30397a0395d0Smrgif test -n "$ac_ct_CC"; then 30402adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30417366012aSmrg$as_echo "$ac_ct_CC" >&6; } 30427a0395d0Smrgelse 30432adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30447366012aSmrg$as_echo "no" >&6; } 30457a0395d0Smrgfi 30467a0395d0Smrg 30477a0395d0Smrg if test "x$ac_ct_CC" = x; then 30487a0395d0Smrg CC="" 30497a0395d0Smrg else 30507a0395d0Smrg case $cross_compiling:$ac_tool_warned in 30517a0395d0Smrgyes:) 30522adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30537366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30547a0395d0Smrgac_tool_warned=yes ;; 30557a0395d0Smrgesac 30567a0395d0Smrg CC=$ac_ct_CC 30577a0395d0Smrg fi 30587a0395d0Smrgelse 30597a0395d0Smrg CC="$ac_cv_prog_CC" 30607a0395d0Smrgfi 30617a0395d0Smrg 30627a0395d0Smrgif test -z "$CC"; then 30637a0395d0Smrg if test -n "$ac_tool_prefix"; then 30647a0395d0Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 30657a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 30662adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30677366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 30682adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 30697366012aSmrg $as_echo_n "(cached) " >&6 30707a0395d0Smrgelse 30717a0395d0Smrg if test -n "$CC"; then 30727a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30737a0395d0Smrgelse 30747a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30757a0395d0Smrgfor as_dir in $PATH 30767a0395d0Smrgdo 30777a0395d0Smrg IFS=$as_save_IFS 30787a0395d0Smrg test -z "$as_dir" && as_dir=. 30792adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30807a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30817a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 30822adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30837a0395d0Smrg break 2 30847a0395d0Smrg fi 30857a0395d0Smrgdone 30862adc0320Smrg done 30877a0395d0SmrgIFS=$as_save_IFS 30887a0395d0Smrg 30897a0395d0Smrgfi 30907a0395d0Smrgfi 30917a0395d0SmrgCC=$ac_cv_prog_CC 30927a0395d0Smrgif test -n "$CC"; then 30932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30947366012aSmrg$as_echo "$CC" >&6; } 30957a0395d0Smrgelse 30962adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30977366012aSmrg$as_echo "no" >&6; } 30987a0395d0Smrgfi 30997a0395d0Smrg 31007a0395d0Smrg 31017a0395d0Smrg fi 31027a0395d0Smrgfi 31037a0395d0Smrgif test -z "$CC"; then 31047a0395d0Smrg # Extract the first word of "cc", so it can be a program name with args. 31057a0395d0Smrgset dummy cc; ac_word=$2 31062adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31077366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31082adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31097366012aSmrg $as_echo_n "(cached) " >&6 31107a0395d0Smrgelse 31117a0395d0Smrg if test -n "$CC"; then 31127a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 31137a0395d0Smrgelse 31147a0395d0Smrg ac_prog_rejected=no 31157a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31167a0395d0Smrgfor as_dir in $PATH 31177a0395d0Smrgdo 31187a0395d0Smrg IFS=$as_save_IFS 31197a0395d0Smrg test -z "$as_dir" && as_dir=. 31202adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31217a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31227a0395d0Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 31237a0395d0Smrg ac_prog_rejected=yes 31247a0395d0Smrg continue 31257a0395d0Smrg fi 31267a0395d0Smrg ac_cv_prog_CC="cc" 31272adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31287a0395d0Smrg break 2 31297a0395d0Smrg fi 31307a0395d0Smrgdone 31312adc0320Smrg done 31327a0395d0SmrgIFS=$as_save_IFS 31337a0395d0Smrg 31347a0395d0Smrgif test $ac_prog_rejected = yes; then 31357a0395d0Smrg # We found a bogon in the path, so make sure we never use it. 31367a0395d0Smrg set dummy $ac_cv_prog_CC 31377a0395d0Smrg shift 31387a0395d0Smrg if test $# != 0; then 31397a0395d0Smrg # We chose a different compiler from the bogus one. 31407a0395d0Smrg # However, it has the same basename, so the bogon will be chosen 31417a0395d0Smrg # first if we set CC to just the basename; use the full file name. 31427a0395d0Smrg shift 31437a0395d0Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 31447a0395d0Smrg fi 31457a0395d0Smrgfi 31467a0395d0Smrgfi 31477a0395d0Smrgfi 31487a0395d0SmrgCC=$ac_cv_prog_CC 31497a0395d0Smrgif test -n "$CC"; then 31502adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31517366012aSmrg$as_echo "$CC" >&6; } 31527a0395d0Smrgelse 31532adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31547366012aSmrg$as_echo "no" >&6; } 31557a0395d0Smrgfi 31567a0395d0Smrg 31577a0395d0Smrg 31587a0395d0Smrgfi 31597a0395d0Smrgif test -z "$CC"; then 31607a0395d0Smrg if test -n "$ac_tool_prefix"; then 31617a0395d0Smrg for ac_prog in cl.exe 31627a0395d0Smrg do 31637a0395d0Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31647a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 31652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31667366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31672adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31687366012aSmrg $as_echo_n "(cached) " >&6 31697a0395d0Smrgelse 31707a0395d0Smrg if test -n "$CC"; then 31717a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 31727a0395d0Smrgelse 31737a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31747a0395d0Smrgfor as_dir in $PATH 31757a0395d0Smrgdo 31767a0395d0Smrg IFS=$as_save_IFS 31777a0395d0Smrg test -z "$as_dir" && as_dir=. 31782adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31797a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31807a0395d0Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 31812adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31827a0395d0Smrg break 2 31837a0395d0Smrg fi 31847a0395d0Smrgdone 31852adc0320Smrg done 31867a0395d0SmrgIFS=$as_save_IFS 31877a0395d0Smrg 31887a0395d0Smrgfi 31897a0395d0Smrgfi 31907a0395d0SmrgCC=$ac_cv_prog_CC 31917a0395d0Smrgif test -n "$CC"; then 31922adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31937366012aSmrg$as_echo "$CC" >&6; } 31947a0395d0Smrgelse 31952adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31967366012aSmrg$as_echo "no" >&6; } 31977a0395d0Smrgfi 31987a0395d0Smrg 31997a0395d0Smrg 32007a0395d0Smrg test -n "$CC" && break 32017a0395d0Smrg done 32027a0395d0Smrgfi 32037a0395d0Smrgif test -z "$CC"; then 32047a0395d0Smrg ac_ct_CC=$CC 32057a0395d0Smrg for ac_prog in cl.exe 32067a0395d0Smrgdo 32077a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 32087a0395d0Smrgset dummy $ac_prog; ac_word=$2 32092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32107366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 32112adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 32127366012aSmrg $as_echo_n "(cached) " >&6 32137a0395d0Smrgelse 32147a0395d0Smrg if test -n "$ac_ct_CC"; then 32157a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 32167a0395d0Smrgelse 32177a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32187a0395d0Smrgfor as_dir in $PATH 32197a0395d0Smrgdo 32207a0395d0Smrg IFS=$as_save_IFS 32217a0395d0Smrg test -z "$as_dir" && as_dir=. 32222adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32237a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 32247a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 32252adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32267a0395d0Smrg break 2 32277a0395d0Smrg fi 32287a0395d0Smrgdone 32292adc0320Smrg done 32307a0395d0SmrgIFS=$as_save_IFS 32317a0395d0Smrg 32327a0395d0Smrgfi 32337a0395d0Smrgfi 32347a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 32357a0395d0Smrgif test -n "$ac_ct_CC"; then 32362adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 32377366012aSmrg$as_echo "$ac_ct_CC" >&6; } 32387a0395d0Smrgelse 32392adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32407366012aSmrg$as_echo "no" >&6; } 32417a0395d0Smrgfi 32427a0395d0Smrg 32437a0395d0Smrg 32447a0395d0Smrg test -n "$ac_ct_CC" && break 32457a0395d0Smrgdone 32467a0395d0Smrg 32477a0395d0Smrg if test "x$ac_ct_CC" = x; then 32487a0395d0Smrg CC="" 32497a0395d0Smrg else 32507a0395d0Smrg case $cross_compiling:$ac_tool_warned in 32517a0395d0Smrgyes:) 32522adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32537366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32547a0395d0Smrgac_tool_warned=yes ;; 32557a0395d0Smrgesac 32567a0395d0Smrg CC=$ac_ct_CC 32577a0395d0Smrg fi 32587a0395d0Smrgfi 32597a0395d0Smrg 32607a0395d0Smrgfi 32617a0395d0Smrg 32627a0395d0Smrg 32632adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32647366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32652adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 32662adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 32677a0395d0Smrg 32687a0395d0Smrg# Provide some information about the compiler. 32692adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 32707366012aSmrgset X $ac_compile 32717366012aSmrgac_compiler=$2 32722adc0320Smrgfor ac_option in --version -v -V -qversion; do 32732adc0320Smrg { { ac_try="$ac_compiler $ac_option >&5" 32747a0395d0Smrgcase "(($ac_try" in 32757a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32767a0395d0Smrg *) ac_try_echo=$ac_try;; 32777a0395d0Smrgesac 32782adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32792adc0320Smrg$as_echo "$ac_try_echo"; } >&5 32802adc0320Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32817a0395d0Smrg ac_status=$? 32822adc0320Smrg if test -s conftest.err; then 32832adc0320Smrg sed '10a\ 32842adc0320Smrg... rest of stderr output deleted ... 32852adc0320Smrg 10q' conftest.err >conftest.er1 32862adc0320Smrg cat conftest.er1 >&5 32872adc0320Smrg fi 32882adc0320Smrg rm -f conftest.er1 conftest.err 32892adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32902adc0320Smrg test $ac_status = 0; } 32912adc0320Smrgdone 32927a0395d0Smrg 32932adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32947a0395d0Smrg/* end confdefs.h. */ 32957a0395d0Smrg 32967a0395d0Smrgint 32977a0395d0Smrgmain () 32987a0395d0Smrg{ 32997a0395d0Smrg 33007a0395d0Smrg ; 33017a0395d0Smrg return 0; 33027a0395d0Smrg} 33037a0395d0Smrg_ACEOF 33047a0395d0Smrgac_clean_files_save=$ac_clean_files 33057366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33067a0395d0Smrg# Try to create an executable without -o first, disregard a.out. 33077a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition 33087a0395d0Smrg# of exeext. 33092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33102adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 33117366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33127366012aSmrg 33137366012aSmrg# The possible output files: 33147366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33157366012aSmrg 33167a0395d0Smrgac_rmfiles= 33177a0395d0Smrgfor ac_file in $ac_files 33187a0395d0Smrgdo 33197a0395d0Smrg case $ac_file in 33207366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33217a0395d0Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33227a0395d0Smrg esac 33237a0395d0Smrgdone 33247a0395d0Smrgrm -f $ac_rmfiles 33257a0395d0Smrg 33262adc0320Smrgif { { ac_try="$ac_link_default" 33277a0395d0Smrgcase "(($ac_try" in 33287a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33297a0395d0Smrg *) ac_try_echo=$ac_try;; 33307a0395d0Smrgesac 33312adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33322adc0320Smrg$as_echo "$ac_try_echo"; } >&5 33337a0395d0Smrg (eval "$ac_link_default") 2>&5 33347a0395d0Smrg ac_status=$? 33352adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33362adc0320Smrg test $ac_status = 0; }; then : 33377a0395d0Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33387a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33397a0395d0Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 33407a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to 33417a0395d0Smrg# Autoconf. 33427a0395d0Smrgfor ac_file in $ac_files '' 33437a0395d0Smrgdo 33447a0395d0Smrg test -f "$ac_file" || continue 33457a0395d0Smrg case $ac_file in 33467366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33477a0395d0Smrg ;; 33487a0395d0Smrg [ab].out ) 33497a0395d0Smrg # We found the default executable, but exeext='' is most 33507a0395d0Smrg # certainly right. 33517a0395d0Smrg break;; 33527a0395d0Smrg *.* ) 33532adc0320Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33547a0395d0Smrg then :; else 33557a0395d0Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33567a0395d0Smrg fi 33577a0395d0Smrg # We set ac_cv_exeext here because the later test for it is not 33587a0395d0Smrg # safe: cross compilers may not add the suffix if given an `-o' 33597a0395d0Smrg # argument, so we may need to know it at that point already. 33607a0395d0Smrg # Even if this section looks crufty: it has the advantage of 33617a0395d0Smrg # actually working. 33627a0395d0Smrg break;; 33637a0395d0Smrg * ) 33647a0395d0Smrg break;; 33657a0395d0Smrg esac 33667a0395d0Smrgdone 33677a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 33687a0395d0Smrg 33697a0395d0Smrgelse 33707a0395d0Smrg ac_file='' 33717a0395d0Smrgfi 33722adc0320Smrgif test -z "$ac_file"; then : 33732adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33742adc0320Smrg$as_echo "no" >&6; } 33752adc0320Smrg$as_echo "$as_me: failed program was:" >&5 33767a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 33777a0395d0Smrg 33782adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33797366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33802adc0320Smrgas_fn_error 77 "C compiler cannot create executables 33812adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 33822adc0320Smrgelse 33832adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33842adc0320Smrg$as_echo "yes" >&6; } 33857a0395d0Smrgfi 33862adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33872adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 33882adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33892adc0320Smrg$as_echo "$ac_file" >&6; } 33907a0395d0Smrgac_exeext=$ac_cv_exeext 33917a0395d0Smrg 33927366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33937a0395d0Smrgac_clean_files=$ac_clean_files_save 33942adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33957366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; } 33962adc0320Smrgif { { ac_try="$ac_link" 33977a0395d0Smrgcase "(($ac_try" in 33987a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33997a0395d0Smrg *) ac_try_echo=$ac_try;; 34007a0395d0Smrgesac 34012adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34022adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34037a0395d0Smrg (eval "$ac_link") 2>&5 34047a0395d0Smrg ac_status=$? 34052adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34062adc0320Smrg test $ac_status = 0; }; then : 34077a0395d0Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 34087a0395d0Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34097a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 34107a0395d0Smrg# `rm'. 34117a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do 34127a0395d0Smrg test -f "$ac_file" || continue 34137a0395d0Smrg case $ac_file in 34147366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34157a0395d0Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34167a0395d0Smrg break;; 34177a0395d0Smrg * ) break;; 34187a0395d0Smrg esac 34197a0395d0Smrgdone 34207a0395d0Smrgelse 34212adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34227366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34232adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 34242adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 34257a0395d0Smrgfi 34262adc0320Smrgrm -f conftest conftest$ac_cv_exeext 34272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34287366012aSmrg$as_echo "$ac_cv_exeext" >&6; } 34297a0395d0Smrg 34307a0395d0Smrgrm -f conftest.$ac_ext 34317a0395d0SmrgEXEEXT=$ac_cv_exeext 34327a0395d0Smrgac_exeext=$EXEEXT 34332adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34342adc0320Smrg/* end confdefs.h. */ 34352adc0320Smrg#include <stdio.h> 34362adc0320Smrgint 34372adc0320Smrgmain () 34382adc0320Smrg{ 34392adc0320SmrgFILE *f = fopen ("conftest.out", "w"); 34402adc0320Smrg return ferror (f) || fclose (f) != 0; 34412adc0320Smrg 34422adc0320Smrg ; 34432adc0320Smrg return 0; 34442adc0320Smrg} 34452adc0320Smrg_ACEOF 34462adc0320Smrgac_clean_files="$ac_clean_files conftest.out" 34472adc0320Smrg# Check that the compiler produces executables we can run. If not, either 34482adc0320Smrg# the compiler is broken, or we cross compile. 34492adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34502adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 34512adc0320Smrgif test "$cross_compiling" != yes; then 34522adc0320Smrg { { ac_try="$ac_link" 34532adc0320Smrgcase "(($ac_try" in 34542adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34552adc0320Smrg *) ac_try_echo=$ac_try;; 34562adc0320Smrgesac 34572adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34582adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34592adc0320Smrg (eval "$ac_link") 2>&5 34602adc0320Smrg ac_status=$? 34612adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34622adc0320Smrg test $ac_status = 0; } 34632adc0320Smrg if { ac_try='./conftest$ac_cv_exeext' 34642adc0320Smrg { { case "(($ac_try" in 34652adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34662adc0320Smrg *) ac_try_echo=$ac_try;; 34672adc0320Smrgesac 34682adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34692adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34702adc0320Smrg (eval "$ac_try") 2>&5 34712adc0320Smrg ac_status=$? 34722adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34732adc0320Smrg test $ac_status = 0; }; }; then 34742adc0320Smrg cross_compiling=no 34752adc0320Smrg else 34762adc0320Smrg if test "$cross_compiling" = maybe; then 34772adc0320Smrg cross_compiling=yes 34782adc0320Smrg else 34792adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34802adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34812adc0320Smrgas_fn_error $? "cannot run C compiled programs. 34822adc0320SmrgIf you meant to cross compile, use \`--host'. 34832adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 34842adc0320Smrg fi 34852adc0320Smrg fi 34862adc0320Smrgfi 34872adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34882adc0320Smrg$as_echo "$cross_compiling" >&6; } 34892adc0320Smrg 34902adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34912adc0320Smrgac_clean_files=$ac_clean_files_save 34922adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34937366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; } 34942adc0320Smrgif ${ac_cv_objext+:} false; then : 34957366012aSmrg $as_echo_n "(cached) " >&6 34967a0395d0Smrgelse 34972adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34987a0395d0Smrg/* end confdefs.h. */ 34997a0395d0Smrg 35007a0395d0Smrgint 35017a0395d0Smrgmain () 35027a0395d0Smrg{ 35037a0395d0Smrg 35047a0395d0Smrg ; 35057a0395d0Smrg return 0; 35067a0395d0Smrg} 35077a0395d0Smrg_ACEOF 35087a0395d0Smrgrm -f conftest.o conftest.obj 35092adc0320Smrgif { { ac_try="$ac_compile" 35107a0395d0Smrgcase "(($ac_try" in 35117a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35127a0395d0Smrg *) ac_try_echo=$ac_try;; 35137a0395d0Smrgesac 35142adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35152adc0320Smrg$as_echo "$ac_try_echo"; } >&5 35167a0395d0Smrg (eval "$ac_compile") 2>&5 35177a0395d0Smrg ac_status=$? 35182adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35192adc0320Smrg test $ac_status = 0; }; then : 35207a0395d0Smrg for ac_file in conftest.o conftest.obj conftest.*; do 35217a0395d0Smrg test -f "$ac_file" || continue; 35227a0395d0Smrg case $ac_file in 35237366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 35247a0395d0Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 35257a0395d0Smrg break;; 35267a0395d0Smrg esac 35277a0395d0Smrgdone 35287a0395d0Smrgelse 35297366012aSmrg $as_echo "$as_me: failed program was:" >&5 35307a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 35317a0395d0Smrg 35322adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35337366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35342adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 35352adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 35367a0395d0Smrgfi 35377a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 35387a0395d0Smrgfi 35392adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 35407366012aSmrg$as_echo "$ac_cv_objext" >&6; } 35417a0395d0SmrgOBJEXT=$ac_cv_objext 35427a0395d0Smrgac_objext=$OBJEXT 35432adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35447366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35452adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 35467366012aSmrg $as_echo_n "(cached) " >&6 35477a0395d0Smrgelse 35482adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35497a0395d0Smrg/* end confdefs.h. */ 35507a0395d0Smrg 35517a0395d0Smrgint 35527a0395d0Smrgmain () 35537a0395d0Smrg{ 35547a0395d0Smrg#ifndef __GNUC__ 35557a0395d0Smrg choke me 35567a0395d0Smrg#endif 35577a0395d0Smrg 35587a0395d0Smrg ; 35597a0395d0Smrg return 0; 35607a0395d0Smrg} 35617a0395d0Smrg_ACEOF 35622adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 35637a0395d0Smrg ac_compiler_gnu=yes 35647a0395d0Smrgelse 35652adc0320Smrg ac_compiler_gnu=no 35667a0395d0Smrgfi 35677a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35687a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 35697a0395d0Smrg 35707a0395d0Smrgfi 35712adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35727366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 35737366012aSmrgif test $ac_compiler_gnu = yes; then 35747366012aSmrg GCC=yes 35757366012aSmrgelse 35767366012aSmrg GCC= 35777366012aSmrgfi 35787a0395d0Smrgac_test_CFLAGS=${CFLAGS+set} 35797a0395d0Smrgac_save_CFLAGS=$CFLAGS 35802adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35817366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 35822adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then : 35837366012aSmrg $as_echo_n "(cached) " >&6 35847a0395d0Smrgelse 35857a0395d0Smrg ac_save_c_werror_flag=$ac_c_werror_flag 35867a0395d0Smrg ac_c_werror_flag=yes 35877a0395d0Smrg ac_cv_prog_cc_g=no 35887a0395d0Smrg CFLAGS="-g" 35892adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35907a0395d0Smrg/* end confdefs.h. */ 35917a0395d0Smrg 35927a0395d0Smrgint 35937a0395d0Smrgmain () 35947a0395d0Smrg{ 35957a0395d0Smrg 35967a0395d0Smrg ; 35977a0395d0Smrg return 0; 35987a0395d0Smrg} 35997a0395d0Smrg_ACEOF 36002adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36017a0395d0Smrg ac_cv_prog_cc_g=yes 36027a0395d0Smrgelse 36032adc0320Smrg CFLAGS="" 36042adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36057a0395d0Smrg/* end confdefs.h. */ 36067a0395d0Smrg 36077a0395d0Smrgint 36087a0395d0Smrgmain () 36097a0395d0Smrg{ 36107a0395d0Smrg 36117a0395d0Smrg ; 36127a0395d0Smrg return 0; 36137a0395d0Smrg} 36147a0395d0Smrg_ACEOF 36152adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36167a0395d0Smrg 36172adc0320Smrgelse 36182adc0320Smrg ac_c_werror_flag=$ac_save_c_werror_flag 36197a0395d0Smrg CFLAGS="-g" 36202adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36217a0395d0Smrg/* end confdefs.h. */ 36227a0395d0Smrg 36232adc0320Smrgint 36242adc0320Smrgmain () 36252adc0320Smrg{ 36267a0395d0Smrg 36272adc0320Smrg ; 36282adc0320Smrg return 0; 36292adc0320Smrg} 36302adc0320Smrg_ACEOF 36312adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36322adc0320Smrg ac_cv_prog_cc_g=yes 36337a0395d0Smrgfi 36347a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36357a0395d0Smrgfi 36367a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36377a0395d0Smrgfi 36387a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36397a0395d0Smrg ac_c_werror_flag=$ac_save_c_werror_flag 36407a0395d0Smrgfi 36412adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 36427366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 36437a0395d0Smrgif test "$ac_test_CFLAGS" = set; then 36447a0395d0Smrg CFLAGS=$ac_save_CFLAGS 36457a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then 36467a0395d0Smrg if test "$GCC" = yes; then 36477a0395d0Smrg CFLAGS="-g -O2" 36487a0395d0Smrg else 36497a0395d0Smrg CFLAGS="-g" 36507a0395d0Smrg fi 36517a0395d0Smrgelse 36527a0395d0Smrg if test "$GCC" = yes; then 36537a0395d0Smrg CFLAGS="-O2" 36547a0395d0Smrg else 36557a0395d0Smrg CFLAGS= 36567a0395d0Smrg fi 36577a0395d0Smrgfi 36582adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 36597366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 36602adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then : 36617366012aSmrg $as_echo_n "(cached) " >&6 36627a0395d0Smrgelse 36637a0395d0Smrg ac_cv_prog_cc_c89=no 36647a0395d0Smrgac_save_CC=$CC 36652adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36667a0395d0Smrg/* end confdefs.h. */ 36677a0395d0Smrg#include <stdarg.h> 36687a0395d0Smrg#include <stdio.h> 36697a0395d0Smrg#include <sys/types.h> 36707a0395d0Smrg#include <sys/stat.h> 36717a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 36727a0395d0Smrgstruct buf { int x; }; 36737a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 36747a0395d0Smrgstatic char *e (p, i) 36757a0395d0Smrg char **p; 36767a0395d0Smrg int i; 36777a0395d0Smrg{ 36787a0395d0Smrg return p[i]; 36797a0395d0Smrg} 36807a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 36817a0395d0Smrg{ 36827a0395d0Smrg char *s; 36837a0395d0Smrg va_list v; 36847a0395d0Smrg va_start (v,p); 36857a0395d0Smrg s = g (p, va_arg (v,int)); 36867a0395d0Smrg va_end (v); 36877a0395d0Smrg return s; 36887a0395d0Smrg} 36897a0395d0Smrg 36907a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 36917a0395d0Smrg function prototypes and stuff, but not '\xHH' hex character constants. 36927a0395d0Smrg These don't provoke an error unfortunately, instead are silently treated 36937a0395d0Smrg as 'x'. The following induces an error, until -std is added to get 36947a0395d0Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 36957a0395d0Smrg array size at least. It's necessary to write '\x00'==0 to get something 36967a0395d0Smrg that's true only with -std. */ 36977a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 36987a0395d0Smrg 36997a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 37007a0395d0Smrg inside strings and character constants. */ 37017a0395d0Smrg#define FOO(x) 'x' 37027a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 37037a0395d0Smrg 37047a0395d0Smrgint test (int i, double x); 37057a0395d0Smrgstruct s1 {int (*f) (int a);}; 37067a0395d0Smrgstruct s2 {int (*f) (double a);}; 37077a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 37087a0395d0Smrgint argc; 37097a0395d0Smrgchar **argv; 37107a0395d0Smrgint 37117a0395d0Smrgmain () 37127a0395d0Smrg{ 37137a0395d0Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 37147a0395d0Smrg ; 37157a0395d0Smrg return 0; 37167a0395d0Smrg} 37177a0395d0Smrg_ACEOF 37187a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 37197a0395d0Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 37207a0395d0Smrgdo 37217a0395d0Smrg CC="$ac_save_CC $ac_arg" 37222adc0320Smrg if ac_fn_c_try_compile "$LINENO"; then : 37237a0395d0Smrg ac_cv_prog_cc_c89=$ac_arg 37247a0395d0Smrgfi 37257a0395d0Smrgrm -f core conftest.err conftest.$ac_objext 37267a0395d0Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 37277a0395d0Smrgdone 37287a0395d0Smrgrm -f conftest.$ac_ext 37297a0395d0SmrgCC=$ac_save_CC 37307a0395d0Smrg 37317a0395d0Smrgfi 37327a0395d0Smrg# AC_CACHE_VAL 37337a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in 37347a0395d0Smrg x) 37352adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 37367366012aSmrg$as_echo "none needed" >&6; } ;; 37377a0395d0Smrg xno) 37382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 37397366012aSmrg$as_echo "unsupported" >&6; } ;; 37407a0395d0Smrg *) 37417a0395d0Smrg CC="$CC $ac_cv_prog_cc_c89" 37422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 37437366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 37447a0395d0Smrgesac 37452adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 37467a0395d0Smrg 37472adc0320Smrgfi 37487a0395d0Smrg 37497a0395d0Smrgac_ext=c 37507a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 37517a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37527a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37537a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 37547a0395d0Smrg 37557a0395d0Smrgdepcc="$CC" am_compiler_list= 37567a0395d0Smrg 37572adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 37587366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 37592adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 37607366012aSmrg $as_echo_n "(cached) " >&6 37617a0395d0Smrgelse 37627a0395d0Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 37637a0395d0Smrg # We make a subdir and do the tests there. Otherwise we can end up 37647a0395d0Smrg # making bogus files that we don't know about and never remove. For 37657a0395d0Smrg # instance it was reported that on HP-UX the gcc test will end up 37667a0395d0Smrg # making a dummy file named `D' -- because `-MD' means `put the output 37677a0395d0Smrg # in D'. 37687a0395d0Smrg mkdir conftest.dir 37697a0395d0Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 37707a0395d0Smrg # using a relative directory. 37717a0395d0Smrg cp "$am_depcomp" conftest.dir 37727a0395d0Smrg cd conftest.dir 37737a0395d0Smrg # We will build objects and dependencies in a subdirectory because 37747a0395d0Smrg # it helps to detect inapplicable dependency modes. For instance 37757a0395d0Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 37767a0395d0Smrg # side effect of compilation, but ICC will put the dependencies in 37777a0395d0Smrg # the current directory while Tru64 will put them in the object 37787a0395d0Smrg # directory. 37797a0395d0Smrg mkdir sub 37807a0395d0Smrg 37817a0395d0Smrg am_cv_CC_dependencies_compiler_type=none 37827a0395d0Smrg if test "$am_compiler_list" = ""; then 37837a0395d0Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 37847a0395d0Smrg fi 37857366012aSmrg am__universal=false 37867366012aSmrg case " $depcc " in #( 37877366012aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 37887366012aSmrg esac 37897366012aSmrg 37907a0395d0Smrg for depmode in $am_compiler_list; do 37917a0395d0Smrg # Setup a source with many dependencies, because some compilers 37927a0395d0Smrg # like to wrap large dependency lists on column 80 (with \), and 37937a0395d0Smrg # we should not choose a depcomp mode which is confused by this. 37947a0395d0Smrg # 37957a0395d0Smrg # We need to recreate these files for each test, as the compiler may 37967a0395d0Smrg # overwrite some of them when testing with obscure command lines. 37977a0395d0Smrg # This happens at least with the AIX C compiler. 37987a0395d0Smrg : > sub/conftest.c 37997a0395d0Smrg for i in 1 2 3 4 5 6; do 38007a0395d0Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 38017a0395d0Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 38027a0395d0Smrg # Solaris 8's {/usr,}/bin/sh. 38037a0395d0Smrg touch sub/conftst$i.h 38047a0395d0Smrg done 38057a0395d0Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 38067a0395d0Smrg 38072adc0320Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 38082adc0320Smrg # mode. It turns out that the SunPro C++ compiler does not properly 38092adc0320Smrg # handle `-M -o', and we need to detect this. Also, some Intel 38102adc0320Smrg # versions had trouble with output in subdirs 38112adc0320Smrg am__obj=sub/conftest.${OBJEXT-o} 38122adc0320Smrg am__minus_obj="-o $am__obj" 38132adc0320Smrg case $depmode in 38142adc0320Smrg gcc) 38152adc0320Smrg # This depmode causes a compiler race in universal mode. 38162adc0320Smrg test "$am__universal" = false || continue 38172adc0320Smrg ;; 38182adc0320Smrg nosideeffect) 38192adc0320Smrg # after this tag, mechanisms are not by side-effect, so they'll 38202adc0320Smrg # only be used when explicitly requested 38212adc0320Smrg if test "x$enable_dependency_tracking" = xyes; then 38222adc0320Smrg continue 38232adc0320Smrg else 38242adc0320Smrg break 38252adc0320Smrg fi 38262adc0320Smrg ;; 38272adc0320Smrg msvisualcpp | msvcmsys) 38282adc0320Smrg # This compiler won't grok `-c -o', but also, the minuso test has 38292adc0320Smrg # not run yet. These depmodes are late enough in the game, and 38302adc0320Smrg # so weak that their functioning should not be impacted. 38312adc0320Smrg am__obj=conftest.${OBJEXT-o} 38322adc0320Smrg am__minus_obj= 38332adc0320Smrg ;; 38342adc0320Smrg none) break ;; 38352adc0320Smrg esac 38362adc0320Smrg if depmode=$depmode \ 38372adc0320Smrg source=sub/conftest.c object=$am__obj \ 38382adc0320Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 38392adc0320Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 38402adc0320Smrg >/dev/null 2>conftest.err && 38412adc0320Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 38422adc0320Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 38432adc0320Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 38442adc0320Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 38452adc0320Smrg # icc doesn't choke on unknown options, it will just issue warnings 38462adc0320Smrg # or remarks (even with -Werror). So we grep stderr for any message 38472adc0320Smrg # that says an option was ignored or not supported. 38482adc0320Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 38492adc0320Smrg # icc: Command line warning: ignoring option '-M'; no argument required 38502adc0320Smrg # The diagnosis changed in icc 8.0: 38512adc0320Smrg # icc: Command line remark: option '-MP' not supported 38522adc0320Smrg if (grep 'ignoring option' conftest.err || 38532adc0320Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 38542adc0320Smrg am_cv_CC_dependencies_compiler_type=$depmode 38552adc0320Smrg break 38562adc0320Smrg fi 38572adc0320Smrg fi 38582adc0320Smrg done 38592adc0320Smrg 38602adc0320Smrg cd .. 38612adc0320Smrg rm -rf conftest.dir 38622adc0320Smrgelse 38632adc0320Smrg am_cv_CC_dependencies_compiler_type=none 38642adc0320Smrgfi 38652adc0320Smrg 38662adc0320Smrgfi 38672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 38682adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 38692adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 38702adc0320Smrg 38712adc0320Smrg if 38722adc0320Smrg test "x$enable_dependency_tracking" != xno \ 38732adc0320Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 38742adc0320Smrg am__fastdepCC_TRUE= 38752adc0320Smrg am__fastdepCC_FALSE='#' 38762adc0320Smrgelse 38772adc0320Smrg am__fastdepCC_TRUE='#' 38782adc0320Smrg am__fastdepCC_FALSE= 38792adc0320Smrgfi 38802adc0320Smrg 38812adc0320Smrg 38822adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 38832adc0320Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 38842adc0320Smrgif ${ac_cv_prog_cc_c99+:} false; then : 38852adc0320Smrg $as_echo_n "(cached) " >&6 38862adc0320Smrgelse 38872adc0320Smrg ac_cv_prog_cc_c99=no 38882adc0320Smrgac_save_CC=$CC 38892adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 38902adc0320Smrg/* end confdefs.h. */ 38912adc0320Smrg#include <stdarg.h> 38922adc0320Smrg#include <stdbool.h> 38932adc0320Smrg#include <stdlib.h> 38942adc0320Smrg#include <wchar.h> 38952adc0320Smrg#include <stdio.h> 38962adc0320Smrg 38972adc0320Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 38982adc0320Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 38992adc0320Smrg#define showlist(...) puts (#__VA_ARGS__) 39002adc0320Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 39012adc0320Smrgstatic void 39022adc0320Smrgtest_varargs_macros (void) 39032adc0320Smrg{ 39042adc0320Smrg int x = 1234; 39052adc0320Smrg int y = 5678; 39062adc0320Smrg debug ("Flag"); 39072adc0320Smrg debug ("X = %d\n", x); 39082adc0320Smrg showlist (The first, second, and third items.); 39092adc0320Smrg report (x>y, "x is %d but y is %d", x, y); 39102adc0320Smrg} 39112adc0320Smrg 39122adc0320Smrg// Check long long types. 39132adc0320Smrg#define BIG64 18446744073709551615ull 39142adc0320Smrg#define BIG32 4294967295ul 39152adc0320Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 39162adc0320Smrg#if !BIG_OK 39172adc0320Smrg your preprocessor is broken; 39182adc0320Smrg#endif 39192adc0320Smrg#if BIG_OK 39202adc0320Smrg#else 39212adc0320Smrg your preprocessor is broken; 39222adc0320Smrg#endif 39232adc0320Smrgstatic long long int bignum = -9223372036854775807LL; 39242adc0320Smrgstatic unsigned long long int ubignum = BIG64; 39252adc0320Smrg 39262adc0320Smrgstruct incomplete_array 39272adc0320Smrg{ 39282adc0320Smrg int datasize; 39292adc0320Smrg double data[]; 39302adc0320Smrg}; 39312adc0320Smrg 39322adc0320Smrgstruct named_init { 39332adc0320Smrg int number; 39342adc0320Smrg const wchar_t *name; 39352adc0320Smrg double average; 39362adc0320Smrg}; 39372adc0320Smrg 39382adc0320Smrgtypedef const char *ccp; 39392adc0320Smrg 39402adc0320Smrgstatic inline int 39412adc0320Smrgtest_restrict (ccp restrict text) 39422adc0320Smrg{ 39432adc0320Smrg // See if C++-style comments work. 39442adc0320Smrg // Iterate through items via the restricted pointer. 39452adc0320Smrg // Also check for declarations in for loops. 39462adc0320Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 39472adc0320Smrg continue; 39482adc0320Smrg return 0; 39492adc0320Smrg} 39502adc0320Smrg 39512adc0320Smrg// Check varargs and va_copy. 39522adc0320Smrgstatic void 39532adc0320Smrgtest_varargs (const char *format, ...) 39542adc0320Smrg{ 39552adc0320Smrg va_list args; 39562adc0320Smrg va_start (args, format); 39572adc0320Smrg va_list args_copy; 39582adc0320Smrg va_copy (args_copy, args); 39592adc0320Smrg 39602adc0320Smrg const char *str; 39612adc0320Smrg int number; 39622adc0320Smrg float fnumber; 39632adc0320Smrg 39642adc0320Smrg while (*format) 39652adc0320Smrg { 39662adc0320Smrg switch (*format++) 39672adc0320Smrg { 39682adc0320Smrg case 's': // string 39692adc0320Smrg str = va_arg (args_copy, const char *); 39702adc0320Smrg break; 39712adc0320Smrg case 'd': // int 39722adc0320Smrg number = va_arg (args_copy, int); 39732adc0320Smrg break; 39742adc0320Smrg case 'f': // float 39752adc0320Smrg fnumber = va_arg (args_copy, double); 39762adc0320Smrg break; 39772adc0320Smrg default: 39782adc0320Smrg break; 39792adc0320Smrg } 39802adc0320Smrg } 39812adc0320Smrg va_end (args_copy); 39822adc0320Smrg va_end (args); 39832adc0320Smrg} 39842adc0320Smrg 39852adc0320Smrgint 39862adc0320Smrgmain () 39872adc0320Smrg{ 39887a0395d0Smrg 39892adc0320Smrg // Check bool. 39902adc0320Smrg _Bool success = false; 39917a0395d0Smrg 39922adc0320Smrg // Check restrict. 39932adc0320Smrg if (test_restrict ("String literal") == 0) 39942adc0320Smrg success = true; 39952adc0320Smrg char *restrict newvar = "Another string"; 39967a0395d0Smrg 39972adc0320Smrg // Check varargs. 39982adc0320Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 39992adc0320Smrg test_varargs_macros (); 40007a0395d0Smrg 40012adc0320Smrg // Check flexible array members. 40022adc0320Smrg struct incomplete_array *ia = 40032adc0320Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 40042adc0320Smrg ia->datasize = 10; 40052adc0320Smrg for (int i = 0; i < ia->datasize; ++i) 40062adc0320Smrg ia->data[i] = i * 1.234; 40077a0395d0Smrg 40082adc0320Smrg // Check named initializers. 40092adc0320Smrg struct named_init ni = { 40102adc0320Smrg .number = 34, 40112adc0320Smrg .name = L"Test wide string", 40122adc0320Smrg .average = 543.34343, 40132adc0320Smrg }; 40147366012aSmrg 40152adc0320Smrg ni.number = 58; 40167a0395d0Smrg 40172adc0320Smrg int dynamic_array[ni.number]; 40182adc0320Smrg dynamic_array[ni.number - 1] = 543; 40197a0395d0Smrg 40202adc0320Smrg // work around unused variable warnings 40212adc0320Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 40222adc0320Smrg || dynamic_array[ni.number - 1] != 543); 40237a0395d0Smrg 40242adc0320Smrg ; 40252adc0320Smrg return 0; 40262adc0320Smrg} 40272adc0320Smrg_ACEOF 40282adc0320Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 40292adc0320Smrgdo 40302adc0320Smrg CC="$ac_save_CC $ac_arg" 40312adc0320Smrg if ac_fn_c_try_compile "$LINENO"; then : 40322adc0320Smrg ac_cv_prog_cc_c99=$ac_arg 40332adc0320Smrgfi 40342adc0320Smrgrm -f core conftest.err conftest.$ac_objext 40352adc0320Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 40362adc0320Smrgdone 40372adc0320Smrgrm -f conftest.$ac_ext 40382adc0320SmrgCC=$ac_save_CC 40397a0395d0Smrg 40402adc0320Smrgfi 40412adc0320Smrg# AC_CACHE_VAL 40422adc0320Smrgcase "x$ac_cv_prog_cc_c99" in 40432adc0320Smrg x) 40442adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 40452adc0320Smrg$as_echo "none needed" >&6; } ;; 40462adc0320Smrg xno) 40472adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 40482adc0320Smrg$as_echo "unsupported" >&6; } ;; 40492adc0320Smrg *) 40502adc0320Smrg CC="$CC $ac_cv_prog_cc_c99" 40512adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 40522adc0320Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 40532adc0320Smrgesac 40542adc0320Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 40557a0395d0Smrg 40562adc0320Smrgfi 40577a0395d0Smrg 40587a0395d0Smrg 40597a0395d0Smrg 40607366012aSmrgac_ext=c 40617366012aSmrgac_cpp='$CPP $CPPFLAGS' 40627366012aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40637366012aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40647366012aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 40667366012aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 40677366012aSmrg# On Suns, sometimes $CPP names a directory. 40687366012aSmrgif test -n "$CPP" && test -d "$CPP"; then 40697366012aSmrg CPP= 40707366012aSmrgfi 40717366012aSmrgif test -z "$CPP"; then 40722adc0320Smrg if ${ac_cv_prog_CPP+:} false; then : 40737366012aSmrg $as_echo_n "(cached) " >&6 40747a0395d0Smrgelse 40757366012aSmrg # Double quotes because CPP needs to be expanded 40767366012aSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 40777366012aSmrg do 40787366012aSmrg ac_preproc_ok=false 40797366012aSmrgfor ac_c_preproc_warn_flag in '' yes 40807366012aSmrgdo 40817366012aSmrg # Use a header file that comes with gcc, so configuring glibc 40827366012aSmrg # with a fresh cross-compiler works. 40837366012aSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 40847366012aSmrg # <limits.h> exists even on freestanding compilers. 40857366012aSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 40867366012aSmrg # not just through cpp. "Syntax error" is here to catch this case. 40872adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40887a0395d0Smrg/* end confdefs.h. */ 40897a0395d0Smrg#ifdef __STDC__ 40907a0395d0Smrg# include <limits.h> 40917a0395d0Smrg#else 40927a0395d0Smrg# include <assert.h> 40937a0395d0Smrg#endif 40947a0395d0Smrg Syntax error 40957a0395d0Smrg_ACEOF 40962adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 40977a0395d0Smrg 40982adc0320Smrgelse 40997a0395d0Smrg # Broken: fails on valid input. 41007a0395d0Smrgcontinue 41017a0395d0Smrgfi 41022adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41037a0395d0Smrg 41047a0395d0Smrg # OK, works on sane cases. Now check whether nonexistent headers 41057a0395d0Smrg # can be detected and how. 41062adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41077a0395d0Smrg/* end confdefs.h. */ 41087a0395d0Smrg#include <ac_nonexistent.h> 41097a0395d0Smrg_ACEOF 41102adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41117a0395d0Smrg # Broken: success on invalid input. 41127a0395d0Smrgcontinue 41137a0395d0Smrgelse 41147a0395d0Smrg # Passes both tests. 41157a0395d0Smrgac_preproc_ok=: 41167a0395d0Smrgbreak 41177a0395d0Smrgfi 41182adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41197a0395d0Smrg 41207a0395d0Smrgdone 41217a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41222adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41232adc0320Smrgif $ac_preproc_ok; then : 41247a0395d0Smrg break 41257a0395d0Smrgfi 41267a0395d0Smrg 41277a0395d0Smrg done 41287a0395d0Smrg ac_cv_prog_CPP=$CPP 41297a0395d0Smrg 41307a0395d0Smrgfi 41317a0395d0Smrg CPP=$ac_cv_prog_CPP 41327a0395d0Smrgelse 41337a0395d0Smrg ac_cv_prog_CPP=$CPP 41347a0395d0Smrgfi 41352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 41367366012aSmrg$as_echo "$CPP" >&6; } 41377a0395d0Smrgac_preproc_ok=false 41387a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes 41397a0395d0Smrgdo 41407a0395d0Smrg # Use a header file that comes with gcc, so configuring glibc 41417a0395d0Smrg # with a fresh cross-compiler works. 41427a0395d0Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 41437a0395d0Smrg # <limits.h> exists even on freestanding compilers. 41442adc0320Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 41452adc0320Smrg # not just through cpp. "Syntax error" is here to catch this case. 41462adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41472adc0320Smrg/* end confdefs.h. */ 41482adc0320Smrg#ifdef __STDC__ 41492adc0320Smrg# include <limits.h> 41502adc0320Smrg#else 41512adc0320Smrg# include <assert.h> 41522adc0320Smrg#endif 41532adc0320Smrg Syntax error 41542adc0320Smrg_ACEOF 41552adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41567a0395d0Smrg 41572adc0320Smrgelse 41587a0395d0Smrg # Broken: fails on valid input. 41597a0395d0Smrgcontinue 41607a0395d0Smrgfi 41612adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41627a0395d0Smrg 41637a0395d0Smrg # OK, works on sane cases. Now check whether nonexistent headers 41647a0395d0Smrg # can be detected and how. 41652adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41667a0395d0Smrg/* end confdefs.h. */ 41677a0395d0Smrg#include <ac_nonexistent.h> 41687a0395d0Smrg_ACEOF 41692adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41707a0395d0Smrg # Broken: success on invalid input. 41717a0395d0Smrgcontinue 41727a0395d0Smrgelse 41737a0395d0Smrg # Passes both tests. 41747a0395d0Smrgac_preproc_ok=: 41757a0395d0Smrgbreak 41767a0395d0Smrgfi 41772adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41787a0395d0Smrg 41797a0395d0Smrgdone 41807a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41812adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41822adc0320Smrgif $ac_preproc_ok; then : 41832adc0320Smrg 41847a0395d0Smrgelse 41852adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41867366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41872adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 41882adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 41897a0395d0Smrgfi 41907a0395d0Smrg 41917a0395d0Smrgac_ext=c 41927a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 41937a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41947a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41957a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41967a0395d0Smrg 41977a0395d0Smrg 41982adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 41997366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 42002adc0320Smrgif ${ac_cv_path_GREP+:} false; then : 42017366012aSmrg $as_echo_n "(cached) " >&6 42027a0395d0Smrgelse 42037366012aSmrg if test -z "$GREP"; then 42047a0395d0Smrg ac_path_GREP_found=false 42057366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42067366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42077a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42087a0395d0Smrgdo 42097a0395d0Smrg IFS=$as_save_IFS 42107a0395d0Smrg test -z "$as_dir" && as_dir=. 42112adc0320Smrg for ac_prog in grep ggrep; do 42127366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42137366012aSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 42147366012aSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 42157366012aSmrg# Check for GNU ac_path_GREP and select it if it is found. 42167a0395d0Smrg # Check for GNU $ac_path_GREP 42177a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in 42187a0395d0Smrg*GNU*) 42197a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 42207a0395d0Smrg*) 42217a0395d0Smrg ac_count=0 42227366012aSmrg $as_echo_n 0123456789 >"conftest.in" 42237a0395d0Smrg while : 42247a0395d0Smrg do 42257a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42267a0395d0Smrg mv "conftest.tmp" "conftest.in" 42277a0395d0Smrg cp "conftest.in" "conftest.nl" 42287366012aSmrg $as_echo 'GREP' >> "conftest.nl" 42297a0395d0Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42307a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42312adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42327a0395d0Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 42337a0395d0Smrg # Best one so far, save it but keep looking for a better one 42347a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" 42357a0395d0Smrg ac_path_GREP_max=$ac_count 42367a0395d0Smrg fi 42377a0395d0Smrg # 10*(2^10) chars as input seems more than enough 42387a0395d0Smrg test $ac_count -gt 10 && break 42397a0395d0Smrg done 42407a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 42417a0395d0Smrgesac 42427a0395d0Smrg 42437366012aSmrg $ac_path_GREP_found && break 3 42447366012aSmrg done 42457a0395d0Smrg done 42462adc0320Smrg done 42477a0395d0SmrgIFS=$as_save_IFS 42487366012aSmrg if test -z "$ac_cv_path_GREP"; then 42492adc0320Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42507366012aSmrg fi 42517a0395d0Smrgelse 42527a0395d0Smrg ac_cv_path_GREP=$GREP 42537a0395d0Smrgfi 42547a0395d0Smrg 42557a0395d0Smrgfi 42562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 42577366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; } 42587a0395d0Smrg GREP="$ac_cv_path_GREP" 42597a0395d0Smrg 42607a0395d0Smrg 42612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 42627366012aSmrg$as_echo_n "checking for egrep... " >&6; } 42632adc0320Smrgif ${ac_cv_path_EGREP+:} false; then : 42647366012aSmrg $as_echo_n "(cached) " >&6 42657a0395d0Smrgelse 42667a0395d0Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 42677a0395d0Smrg then ac_cv_path_EGREP="$GREP -E" 42687a0395d0Smrg else 42697366012aSmrg if test -z "$EGREP"; then 42707a0395d0Smrg ac_path_EGREP_found=false 42717366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42727366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42737a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42747a0395d0Smrgdo 42757a0395d0Smrg IFS=$as_save_IFS 42767a0395d0Smrg test -z "$as_dir" && as_dir=. 42772adc0320Smrg for ac_prog in egrep; do 42787366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42797366012aSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 42807366012aSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 42817366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found. 42827a0395d0Smrg # Check for GNU $ac_path_EGREP 42837a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in 42847a0395d0Smrg*GNU*) 42857a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 42867a0395d0Smrg*) 42877a0395d0Smrg ac_count=0 42887366012aSmrg $as_echo_n 0123456789 >"conftest.in" 42897a0395d0Smrg while : 42907a0395d0Smrg do 42917a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42927a0395d0Smrg mv "conftest.tmp" "conftest.in" 42937a0395d0Smrg cp "conftest.in" "conftest.nl" 42947366012aSmrg $as_echo 'EGREP' >> "conftest.nl" 42957a0395d0Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42967a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42972adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42987a0395d0Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 42997a0395d0Smrg # Best one so far, save it but keep looking for a better one 43007a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" 43017a0395d0Smrg ac_path_EGREP_max=$ac_count 43027a0395d0Smrg fi 43037a0395d0Smrg # 10*(2^10) chars as input seems more than enough 43047a0395d0Smrg test $ac_count -gt 10 && break 43057a0395d0Smrg done 43067a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 43077a0395d0Smrgesac 43087a0395d0Smrg 43097366012aSmrg $ac_path_EGREP_found && break 3 43107366012aSmrg done 43117a0395d0Smrg done 43122adc0320Smrg done 43137a0395d0SmrgIFS=$as_save_IFS 43147366012aSmrg if test -z "$ac_cv_path_EGREP"; then 43152adc0320Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 43167366012aSmrg fi 43177a0395d0Smrgelse 43187a0395d0Smrg ac_cv_path_EGREP=$EGREP 43197a0395d0Smrgfi 43207a0395d0Smrg 43217a0395d0Smrg fi 43227a0395d0Smrgfi 43232adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 43247366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 43257a0395d0Smrg EGREP="$ac_cv_path_EGREP" 43267a0395d0Smrg 43277a0395d0Smrg 43282adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 43297366012aSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 43302adc0320Smrgif ${ac_cv_header_stdc+:} false; then : 43317366012aSmrg $as_echo_n "(cached) " >&6 43327a0395d0Smrgelse 43332adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43347a0395d0Smrg/* end confdefs.h. */ 43357a0395d0Smrg#include <stdlib.h> 43367a0395d0Smrg#include <stdarg.h> 43377a0395d0Smrg#include <string.h> 43387a0395d0Smrg#include <float.h> 43397a0395d0Smrg 43407a0395d0Smrgint 43417a0395d0Smrgmain () 43427a0395d0Smrg{ 43437a0395d0Smrg 43447a0395d0Smrg ; 43457a0395d0Smrg return 0; 43467a0395d0Smrg} 43477a0395d0Smrg_ACEOF 43482adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 43497a0395d0Smrg ac_cv_header_stdc=yes 43507a0395d0Smrgelse 43512adc0320Smrg ac_cv_header_stdc=no 43527a0395d0Smrgfi 43537a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43547a0395d0Smrg 43557a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43567a0395d0Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 43572adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43587a0395d0Smrg/* end confdefs.h. */ 43597a0395d0Smrg#include <string.h> 43607a0395d0Smrg 43617a0395d0Smrg_ACEOF 43627a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43632adc0320Smrg $EGREP "memchr" >/dev/null 2>&1; then : 43642adc0320Smrg 43657a0395d0Smrgelse 43667a0395d0Smrg ac_cv_header_stdc=no 43677a0395d0Smrgfi 43687a0395d0Smrgrm -f conftest* 43697a0395d0Smrg 43707a0395d0Smrgfi 43717a0395d0Smrg 43727a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43737a0395d0Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 43742adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43757a0395d0Smrg/* end confdefs.h. */ 43767a0395d0Smrg#include <stdlib.h> 43777a0395d0Smrg 43787a0395d0Smrg_ACEOF 43797a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43802adc0320Smrg $EGREP "free" >/dev/null 2>&1; then : 43812adc0320Smrg 43827a0395d0Smrgelse 43837a0395d0Smrg ac_cv_header_stdc=no 43847a0395d0Smrgfi 43857a0395d0Smrgrm -f conftest* 43867a0395d0Smrg 43877a0395d0Smrgfi 43887a0395d0Smrg 43897a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43907a0395d0Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 43912adc0320Smrg if test "$cross_compiling" = yes; then : 43927a0395d0Smrg : 43937a0395d0Smrgelse 43942adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43957a0395d0Smrg/* end confdefs.h. */ 43967a0395d0Smrg#include <ctype.h> 43977a0395d0Smrg#include <stdlib.h> 43987a0395d0Smrg#if ((' ' & 0x0FF) == 0x020) 43997a0395d0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 44007a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 44017a0395d0Smrg#else 44027a0395d0Smrg# define ISLOWER(c) \ 44037a0395d0Smrg (('a' <= (c) && (c) <= 'i') \ 44047a0395d0Smrg || ('j' <= (c) && (c) <= 'r') \ 44057a0395d0Smrg || ('s' <= (c) && (c) <= 'z')) 44067a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 44077a0395d0Smrg#endif 44087a0395d0Smrg 44097a0395d0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 44107a0395d0Smrgint 44117a0395d0Smrgmain () 44127a0395d0Smrg{ 44137a0395d0Smrg int i; 44147a0395d0Smrg for (i = 0; i < 256; i++) 44157a0395d0Smrg if (XOR (islower (i), ISLOWER (i)) 44167a0395d0Smrg || toupper (i) != TOUPPER (i)) 44177a0395d0Smrg return 2; 44187a0395d0Smrg return 0; 44197a0395d0Smrg} 44207a0395d0Smrg_ACEOF 44212adc0320Smrgif ac_fn_c_try_run "$LINENO"; then : 44227a0395d0Smrg 44232adc0320Smrgelse 44242adc0320Smrg ac_cv_header_stdc=no 44257a0395d0Smrgfi 44262adc0320Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 44272adc0320Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 44287a0395d0Smrgfi 44297a0395d0Smrg 44307a0395d0Smrgfi 44317a0395d0Smrgfi 44322adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 44337366012aSmrg$as_echo "$ac_cv_header_stdc" >&6; } 44347a0395d0Smrgif test $ac_cv_header_stdc = yes; then 44357a0395d0Smrg 44362adc0320Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 44377366012aSmrg 44387366012aSmrgfi 44397366012aSmrg 44407366012aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 44417366012aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 44427366012aSmrg inttypes.h stdint.h unistd.h 44432adc0320Smrgdo : 44442adc0320Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44452adc0320Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 44462adc0320Smrg" 44472adc0320Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44487366012aSmrg cat >>confdefs.h <<_ACEOF 44497366012aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44507366012aSmrg_ACEOF 44517366012aSmrg 44527366012aSmrgfi 44537366012aSmrg 44547366012aSmrgdone 44557366012aSmrg 44567366012aSmrg 44577366012aSmrg 44587366012aSmrg 44592852888eSmrg 44602852888eSmrg 446196402570Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 446296402570Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 446396402570Smrg CLANGCC="yes" 446496402570Smrgelse 446596402570Smrg CLANGCC="no" 446696402570Smrgfi 446796402570Smrg 446896402570Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 446996402570Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 447096402570Smrg INTELCC="yes" 447196402570Smrgelse 447296402570Smrg INTELCC="no" 447396402570Smrgfi 447496402570Smrg 447596402570Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 447696402570Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 447796402570Smrg SUNCC="yes" 447896402570Smrgelse 447996402570Smrg SUNCC="no" 448096402570Smrgfi 448196402570Smrg 448296402570Smrg 44832852888eSmrg 44842852888eSmrg 44852adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 44862adc0320Smrg if test -n "$ac_tool_prefix"; then 44872adc0320Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44882adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44902adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 44912adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 44922adc0320Smrg $as_echo_n "(cached) " >&6 44932adc0320Smrgelse 44942adc0320Smrg case $PKG_CONFIG in 44952adc0320Smrg [\\/]* | ?:[\\/]*) 44962adc0320Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 44972adc0320Smrg ;; 44982adc0320Smrg *) 44992adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45002adc0320Smrgfor as_dir in $PATH 45017366012aSmrgdo 45022adc0320Smrg IFS=$as_save_IFS 45032adc0320Smrg test -z "$as_dir" && as_dir=. 45042adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45052adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 45062adc0320Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45072adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45082adc0320Smrg break 2 45092adc0320Smrg fi 45102adc0320Smrgdone 45112adc0320Smrg done 45122adc0320SmrgIFS=$as_save_IFS 45132adc0320Smrg 45142adc0320Smrg ;; 45157366012aSmrgesac 45162adc0320Smrgfi 45172adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 45182adc0320Smrgif test -n "$PKG_CONFIG"; then 45192adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 45202adc0320Smrg$as_echo "$PKG_CONFIG" >&6; } 45217366012aSmrgelse 45222adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45232adc0320Smrg$as_echo "no" >&6; } 45247366012aSmrgfi 45257366012aSmrg 45267366012aSmrg 45277366012aSmrgfi 45282adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 45292adc0320Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 45302adc0320Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 45312adc0320Smrgset dummy pkg-config; ac_word=$2 45322adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45332adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 45342adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 45352adc0320Smrg $as_echo_n "(cached) " >&6 45362adc0320Smrgelse 45372adc0320Smrg case $ac_pt_PKG_CONFIG in 45382adc0320Smrg [\\/]* | ?:[\\/]*) 45392adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 45402adc0320Smrg ;; 45417366012aSmrg *) 45422adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45432adc0320Smrgfor as_dir in $PATH 45442adc0320Smrgdo 45452adc0320Smrg IFS=$as_save_IFS 45462adc0320Smrg test -z "$as_dir" && as_dir=. 45472adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45482adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 45492adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45502adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45512adc0320Smrg break 2 45522adc0320Smrg fi 45532adc0320Smrgdone 45542adc0320Smrg done 45552adc0320SmrgIFS=$as_save_IFS 45562adc0320Smrg 45572adc0320Smrg ;; 45587366012aSmrgesac 45592adc0320Smrgfi 45602adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 45612adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then 45622adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 45632adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 45642adc0320Smrgelse 45652adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45662adc0320Smrg$as_echo "no" >&6; } 45672adc0320Smrgfi 45687366012aSmrg 45692adc0320Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 45702adc0320Smrg PKG_CONFIG="" 45712adc0320Smrg else 45722adc0320Smrg case $cross_compiling:$ac_tool_warned in 45732adc0320Smrgyes:) 45742adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45752adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45762adc0320Smrgac_tool_warned=yes ;; 45772adc0320Smrgesac 45782adc0320Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 45792adc0320Smrg fi 45802adc0320Smrgelse 45812adc0320Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 45822adc0320Smrgfi 45837366012aSmrg 45842adc0320Smrgfi 45852adc0320Smrgif test -n "$PKG_CONFIG"; then 45862adc0320Smrg _pkg_min_version=0.9.0 45872adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 45882adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 45892adc0320Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 45902adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45912adc0320Smrg$as_echo "yes" >&6; } 45922adc0320Smrg else 45932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45942adc0320Smrg$as_echo "no" >&6; } 45952adc0320Smrg PKG_CONFIG="" 45962adc0320Smrg fi 459796402570Smrg 45982adc0320Smrgfi 45997366012aSmrg# Make sure we can run config.sub. 46007366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 46012adc0320Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 46027366012aSmrg 46032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 46047366012aSmrg$as_echo_n "checking build system type... " >&6; } 46052adc0320Smrgif ${ac_cv_build+:} false; then : 46067366012aSmrg $as_echo_n "(cached) " >&6 46077366012aSmrgelse 46087366012aSmrg ac_build_alias=$build_alias 46097366012aSmrgtest "x$ac_build_alias" = x && 46107366012aSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 46117366012aSmrgtest "x$ac_build_alias" = x && 46122adc0320Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 46137366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 46142adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 46157366012aSmrg 46167366012aSmrgfi 46172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 46187366012aSmrg$as_echo "$ac_cv_build" >&6; } 46197366012aSmrgcase $ac_cv_build in 46207366012aSmrg*-*-*) ;; 46212adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 46227366012aSmrgesac 46237366012aSmrgbuild=$ac_cv_build 46247366012aSmrgac_save_IFS=$IFS; IFS='-' 46257366012aSmrgset x $ac_cv_build 46267366012aSmrgshift 46277366012aSmrgbuild_cpu=$1 46287366012aSmrgbuild_vendor=$2 46297366012aSmrgshift; shift 46307366012aSmrg# Remember, the first character of IFS is used to create $*, 46317366012aSmrg# except with old shells: 46327366012aSmrgbuild_os=$* 46337366012aSmrgIFS=$ac_save_IFS 46347366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 46357366012aSmrg 46367366012aSmrg 46372adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 46387366012aSmrg$as_echo_n "checking host system type... " >&6; } 46392adc0320Smrgif ${ac_cv_host+:} false; then : 46407366012aSmrg $as_echo_n "(cached) " >&6 46417366012aSmrgelse 46427366012aSmrg if test "x$host_alias" = x; then 46437366012aSmrg ac_cv_host=$ac_cv_build 46447366012aSmrgelse 46457366012aSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 46462adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 46477366012aSmrgfi 46487366012aSmrg 46497366012aSmrgfi 46502adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46517366012aSmrg$as_echo "$ac_cv_host" >&6; } 46527366012aSmrgcase $ac_cv_host in 46537366012aSmrg*-*-*) ;; 46542adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 46557366012aSmrgesac 46567366012aSmrghost=$ac_cv_host 46577366012aSmrgac_save_IFS=$IFS; IFS='-' 46587366012aSmrgset x $ac_cv_host 46597366012aSmrgshift 46607366012aSmrghost_cpu=$1 46617366012aSmrghost_vendor=$2 46627366012aSmrgshift; shift 46637366012aSmrg# Remember, the first character of IFS is used to create $*, 46647366012aSmrg# except with old shells: 46657366012aSmrghost_os=$* 46667366012aSmrgIFS=$ac_save_IFS 46677366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 46687366012aSmrg 46697366012aSmrg 46702adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 46712adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 46722adc0320Smrgif ${ac_cv_path_SED+:} false; then : 46737366012aSmrg $as_echo_n "(cached) " >&6 46747366012aSmrgelse 46752adc0320Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 46762adc0320Smrg for ac_i in 1 2 3 4 5 6 7; do 46772adc0320Smrg ac_script="$ac_script$as_nl$ac_script" 46782adc0320Smrg done 46792adc0320Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 46802adc0320Smrg { ac_script=; unset ac_script;} 46812adc0320Smrg if test -z "$SED"; then 46822adc0320Smrg ac_path_SED_found=false 46832adc0320Smrg # Loop through the user's path and test for each of PROGNAME-LIST 46842adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46852adc0320Smrgfor as_dir in $PATH 46862adc0320Smrgdo 46872adc0320Smrg IFS=$as_save_IFS 46882adc0320Smrg test -z "$as_dir" && as_dir=. 46892adc0320Smrg for ac_prog in sed gsed; do 46902adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 46912adc0320Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 46922adc0320Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 46932adc0320Smrg# Check for GNU ac_path_SED and select it if it is found. 46942adc0320Smrg # Check for GNU $ac_path_SED 46952adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in 46962adc0320Smrg*GNU*) 46972adc0320Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 46982adc0320Smrg*) 46992adc0320Smrg ac_count=0 47002adc0320Smrg $as_echo_n 0123456789 >"conftest.in" 47012adc0320Smrg while : 47022adc0320Smrg do 47032adc0320Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 47042adc0320Smrg mv "conftest.tmp" "conftest.in" 47052adc0320Smrg cp "conftest.in" "conftest.nl" 47062adc0320Smrg $as_echo '' >> "conftest.nl" 47072adc0320Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 47082adc0320Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 47092adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 47102adc0320Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 47112adc0320Smrg # Best one so far, save it but keep looking for a better one 47122adc0320Smrg ac_cv_path_SED="$ac_path_SED" 47132adc0320Smrg ac_path_SED_max=$ac_count 47142adc0320Smrg fi 47152adc0320Smrg # 10*(2^10) chars as input seems more than enough 47162adc0320Smrg test $ac_count -gt 10 && break 47172adc0320Smrg done 47182adc0320Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 47197366012aSmrgesac 47207366012aSmrg 47212adc0320Smrg $ac_path_SED_found && break 3 47222adc0320Smrg done 47232adc0320Smrg done 47242adc0320Smrg done 47252adc0320SmrgIFS=$as_save_IFS 47262adc0320Smrg if test -z "$ac_cv_path_SED"; then 47272adc0320Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 47282adc0320Smrg fi 47297366012aSmrgelse 47302adc0320Smrg ac_cv_path_SED=$SED 47317366012aSmrgfi 47327366012aSmrg 47337366012aSmrgfi 47342adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 47352adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; } 47362adc0320Smrg SED="$ac_cv_path_SED" 47372adc0320Smrg rm -f conftest.sed 47387366012aSmrg 47397366012aSmrg 47407366012aSmrg 47417366012aSmrg 47427366012aSmrg 47437366012aSmrg 474496402570Smrg# Check whether --enable-selective-werror was given. 474596402570Smrgif test "${enable_selective_werror+set}" = set; then : 474696402570Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 474796402570Smrgelse 474896402570Smrg SELECTIVE_WERROR=yes 47492adc0320Smrgfi 47502adc0320Smrg 47512adc0320Smrg 47522adc0320Smrg 47537366012aSmrg 47542adc0320Smrg 475596402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 475696402570Smrgif test "x$SUNCC" = "xyes"; then 475796402570Smrg BASE_CFLAGS="-v" 47587366012aSmrgelse 475996402570Smrg BASE_CFLAGS="" 47607366012aSmrgfi 47617366012aSmrg 476296402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 47637366012aSmrg 47647366012aSmrg 47657366012aSmrg 47667366012aSmrg 47677366012aSmrg 47687366012aSmrg 47697366012aSmrg 47707366012aSmrg 47717366012aSmrg 47727366012aSmrg 47732adc0320Smrg 47742adc0320Smrg 47752adc0320Smrg 477696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47772adc0320Smrg 477896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 477996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 478096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 478196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 478296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 478396402570Smrg $as_echo_n "(cached) " >&6 478496402570Smrgelse 478596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 478696402570Smrg/* end confdefs.h. */ 478796402570Smrgint i; 478896402570Smrg_ACEOF 478996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 479096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 479196402570Smrgelse 479296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 479396402570Smrgfi 479496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 479596402570Smrgfi 479696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 479796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 479896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 479996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 480096402570Smrgfi 48017366012aSmrg 480296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 480396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 480496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 480596402570Smrg fi 480696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 480796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 480896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 480996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 481096402570Smrg $as_echo_n "(cached) " >&6 481196402570Smrgelse 481296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 481396402570Smrg/* end confdefs.h. */ 481496402570Smrgint i; 481596402570Smrg_ACEOF 481696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 481796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 481896402570Smrgelse 481996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 482096402570Smrgfi 482196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 482296402570Smrgfi 482396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 482496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 482596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 482696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 482796402570Smrgfi 48287366012aSmrg 482996402570Smrgfound="no" 48307366012aSmrg 483196402570Smrg if test $found = "no" ; then 483296402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 483396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 483496402570Smrg fi 48357366012aSmrg 483696402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 483796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 483896402570Smrg fi 48397366012aSmrg 484096402570Smrg CFLAGS="$CFLAGS -Wall" 48417366012aSmrg 484296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 484396402570Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; } 484496402570Smrg cacheid=xorg_cv_cc_flag__Wall 484596402570Smrg if eval \${$cacheid+:} false; then : 484696402570Smrg $as_echo_n "(cached) " >&6 484796402570Smrgelse 484896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 484996402570Smrg/* end confdefs.h. */ 485096402570Smrgint i; 485196402570Smrgint 485296402570Smrgmain () 485396402570Smrg{ 48547366012aSmrg 485596402570Smrg ; 485696402570Smrg return 0; 485796402570Smrg} 485896402570Smrg_ACEOF 485996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 486096402570Smrg eval $cacheid=yes 486196402570Smrgelse 486296402570Smrg eval $cacheid=no 48637366012aSmrgfi 486496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 486596402570Smrg conftest$ac_exeext conftest.$ac_ext 48667366012aSmrgfi 48677366012aSmrg 48687366012aSmrg 486996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48707366012aSmrg 487196402570Smrg eval supported=\$$cacheid 487296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 487396402570Smrg$as_echo "$supported" >&6; } 487496402570Smrg if test "$supported" = "yes" ; then 487596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 487696402570Smrg found="yes" 487796402570Smrg fi 487896402570Smrg fi 48797366012aSmrg 48807366012aSmrg 48817366012aSmrg 48827366012aSmrg 48837366012aSmrg 48847a0395d0Smrg 48857a0395d0Smrg 48867a0395d0Smrg 48877a0395d0Smrg 48887a0395d0Smrg 48897a0395d0Smrg 48907a0395d0Smrg 48917a0395d0Smrg 48927a0395d0Smrg 48937a0395d0Smrg 489496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48952adc0320Smrg 489696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 489796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 489896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 489996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 490096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 490196402570Smrg $as_echo_n "(cached) " >&6 490296402570Smrgelse 490396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 490496402570Smrg/* end confdefs.h. */ 490596402570Smrgint i; 490696402570Smrg_ACEOF 490796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 490896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 490996402570Smrgelse 491096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 491196402570Smrgfi 491296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 491396402570Smrgfi 491496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 491596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 491696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 491796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 491896402570Smrgfi 491996402570Smrg 492096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 492196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 492296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 492396402570Smrg fi 492496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 492596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 492696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 492796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 492896402570Smrg $as_echo_n "(cached) " >&6 492996402570Smrgelse 493096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 493196402570Smrg/* end confdefs.h. */ 493296402570Smrgint i; 493396402570Smrg_ACEOF 493496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 493596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 493696402570Smrgelse 493796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 493896402570Smrgfi 493996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 494096402570Smrgfi 494196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 494296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 494396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 494496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 494596402570Smrgfi 494696402570Smrg 494796402570Smrgfound="no" 494896402570Smrg 494996402570Smrg if test $found = "no" ; then 495096402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 495196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 495296402570Smrg fi 495396402570Smrg 495496402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 495596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 495696402570Smrg fi 495796402570Smrg 495896402570Smrg CFLAGS="$CFLAGS -Wpointer-arith" 495996402570Smrg 496096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 496196402570Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 496296402570Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 496396402570Smrg if eval \${$cacheid+:} false; then : 496496402570Smrg $as_echo_n "(cached) " >&6 496596402570Smrgelse 496696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 496796402570Smrg/* end confdefs.h. */ 496896402570Smrgint i; 496996402570Smrgint 497096402570Smrgmain () 497196402570Smrg{ 497296402570Smrg 497396402570Smrg ; 497496402570Smrg return 0; 497596402570Smrg} 497696402570Smrg_ACEOF 497796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 497896402570Smrg eval $cacheid=yes 497996402570Smrgelse 498096402570Smrg eval $cacheid=no 498196402570Smrgfi 498296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 498396402570Smrg conftest$ac_exeext conftest.$ac_ext 498496402570Smrgfi 498596402570Smrg 498696402570Smrg 498796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 498896402570Smrg 498996402570Smrg eval supported=\$$cacheid 499096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 499196402570Smrg$as_echo "$supported" >&6; } 499296402570Smrg if test "$supported" = "yes" ; then 499396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 499496402570Smrg found="yes" 499596402570Smrg fi 499696402570Smrg fi 499796402570Smrg 499896402570Smrg 499996402570Smrg 500096402570Smrg 500196402570Smrg 500296402570Smrg 500396402570Smrg 500496402570Smrg 500596402570Smrg 500696402570Smrg 500796402570Smrg 500896402570Smrg 500996402570Smrg 501096402570Smrg 501196402570Smrg 501296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 501396402570Smrg 501496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 501596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 501696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 501796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 501896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 501996402570Smrg $as_echo_n "(cached) " >&6 502096402570Smrgelse 502196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 502296402570Smrg/* end confdefs.h. */ 502396402570Smrgint i; 502496402570Smrg_ACEOF 502596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 502696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 502796402570Smrgelse 502896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 502996402570Smrgfi 503096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 503196402570Smrgfi 503296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 503396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 503496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 503596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 503696402570Smrgfi 503796402570Smrg 503896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 503996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 504096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 504196402570Smrg fi 504296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 504396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 504496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 504596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 504696402570Smrg $as_echo_n "(cached) " >&6 504796402570Smrgelse 504896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504996402570Smrg/* end confdefs.h. */ 505096402570Smrgint i; 505196402570Smrg_ACEOF 505296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 505396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 505496402570Smrgelse 505596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 505696402570Smrgfi 505796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 505896402570Smrgfi 505996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 506096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 506196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 506296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 506396402570Smrgfi 506496402570Smrg 506596402570Smrgfound="no" 506696402570Smrg 506796402570Smrg if test $found = "no" ; then 506896402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 506996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 507096402570Smrg fi 507196402570Smrg 507296402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 507396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 507496402570Smrg fi 507596402570Smrg 507696402570Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 507796402570Smrg 507896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 507996402570Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 508096402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 508196402570Smrg if eval \${$cacheid+:} false; then : 508296402570Smrg $as_echo_n "(cached) " >&6 508396402570Smrgelse 508496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508596402570Smrg/* end confdefs.h. */ 508696402570Smrgint i; 508796402570Smrgint 508896402570Smrgmain () 508996402570Smrg{ 509096402570Smrg 509196402570Smrg ; 509296402570Smrg return 0; 509396402570Smrg} 509496402570Smrg_ACEOF 509596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 509696402570Smrg eval $cacheid=yes 509796402570Smrgelse 509896402570Smrg eval $cacheid=no 509996402570Smrgfi 510096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 510196402570Smrg conftest$ac_exeext conftest.$ac_ext 510296402570Smrgfi 510396402570Smrg 510496402570Smrg 510596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 510696402570Smrg 510796402570Smrg eval supported=\$$cacheid 510896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 510996402570Smrg$as_echo "$supported" >&6; } 511096402570Smrg if test "$supported" = "yes" ; then 511196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 511296402570Smrg found="yes" 511396402570Smrg fi 511496402570Smrg fi 511596402570Smrg 511696402570Smrg 511796402570Smrg 511896402570Smrg 511996402570Smrg 512096402570Smrg 512196402570Smrg 512296402570Smrg 512396402570Smrg 512496402570Smrg 512596402570Smrg 512696402570Smrg 512796402570Smrg 512896402570Smrg 512996402570Smrg 513096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 513196402570Smrg 513296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 513396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 513496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 513596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 513696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 513796402570Smrg $as_echo_n "(cached) " >&6 513896402570Smrgelse 513996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 514096402570Smrg/* end confdefs.h. */ 514196402570Smrgint i; 514296402570Smrg_ACEOF 514396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 514496402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 514596402570Smrgelse 514696402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 514796402570Smrgfi 514896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 514996402570Smrgfi 515096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 515196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 515296402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 515396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 515496402570Smrgfi 515596402570Smrg 515696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 515796402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 515896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 515996402570Smrg fi 516096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 516196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 516296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 516396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 516496402570Smrg $as_echo_n "(cached) " >&6 516596402570Smrgelse 516696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 516796402570Smrg/* end confdefs.h. */ 516896402570Smrgint i; 516996402570Smrg_ACEOF 517096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 517196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 517296402570Smrgelse 517396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 517496402570Smrgfi 517596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 517696402570Smrgfi 517796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 517896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 517996402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 518096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 518196402570Smrgfi 518296402570Smrg 518396402570Smrgfound="no" 518496402570Smrg 518596402570Smrg if test $found = "no" ; then 518696402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 518796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 518896402570Smrg fi 518996402570Smrg 519096402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 519196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 519296402570Smrg fi 519396402570Smrg 519496402570Smrg CFLAGS="$CFLAGS -Wformat=2" 519596402570Smrg 519696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 519796402570Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 519896402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 519996402570Smrg if eval \${$cacheid+:} false; then : 520096402570Smrg $as_echo_n "(cached) " >&6 520196402570Smrgelse 520296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 520396402570Smrg/* end confdefs.h. */ 520496402570Smrgint i; 520596402570Smrgint 520696402570Smrgmain () 520796402570Smrg{ 520896402570Smrg 520996402570Smrg ; 521096402570Smrg return 0; 521196402570Smrg} 521296402570Smrg_ACEOF 521396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 521496402570Smrg eval $cacheid=yes 521596402570Smrgelse 521696402570Smrg eval $cacheid=no 521796402570Smrgfi 521896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 521996402570Smrg conftest$ac_exeext conftest.$ac_ext 522096402570Smrgfi 522196402570Smrg 522296402570Smrg 522396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 522496402570Smrg 522596402570Smrg eval supported=\$$cacheid 522696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 522796402570Smrg$as_echo "$supported" >&6; } 522896402570Smrg if test "$supported" = "yes" ; then 522996402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 523096402570Smrg found="yes" 523196402570Smrg fi 523296402570Smrg fi 523396402570Smrg 523496402570Smrg if test $found = "no" ; then 523596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 523696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 523796402570Smrg fi 523896402570Smrg 523996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 524096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 524196402570Smrg fi 524296402570Smrg 524396402570Smrg CFLAGS="$CFLAGS -Wformat" 524496402570Smrg 524596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 524696402570Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; } 524796402570Smrg cacheid=xorg_cv_cc_flag__Wformat 524896402570Smrg if eval \${$cacheid+:} false; then : 524996402570Smrg $as_echo_n "(cached) " >&6 525096402570Smrgelse 525196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525296402570Smrg/* end confdefs.h. */ 525396402570Smrgint i; 525496402570Smrgint 525596402570Smrgmain () 525696402570Smrg{ 525796402570Smrg 525896402570Smrg ; 525996402570Smrg return 0; 526096402570Smrg} 526196402570Smrg_ACEOF 526296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 526396402570Smrg eval $cacheid=yes 526496402570Smrgelse 526596402570Smrg eval $cacheid=no 526696402570Smrgfi 526796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 526896402570Smrg conftest$ac_exeext conftest.$ac_ext 526996402570Smrgfi 527096402570Smrg 527196402570Smrg 527296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 527396402570Smrg 527496402570Smrg eval supported=\$$cacheid 527596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 527696402570Smrg$as_echo "$supported" >&6; } 527796402570Smrg if test "$supported" = "yes" ; then 527896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 527996402570Smrg found="yes" 528096402570Smrg fi 528196402570Smrg fi 528296402570Smrg 528396402570Smrg 528496402570Smrg 528596402570Smrg 528696402570Smrg 528796402570Smrg 528896402570Smrg 528996402570Smrg 529096402570Smrg 529196402570Smrg 529296402570Smrg 529396402570Smrg 529496402570Smrg 529596402570Smrg 529696402570Smrg 529796402570Smrg 529896402570Smrg 529996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 530096402570Smrg 530196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 530296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 530396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 530496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 530596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 530696402570Smrg $as_echo_n "(cached) " >&6 530796402570Smrgelse 530896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 530996402570Smrg/* end confdefs.h. */ 531096402570Smrgint i; 531196402570Smrg_ACEOF 531296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 531396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 531496402570Smrgelse 531596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 531696402570Smrgfi 531796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 531896402570Smrgfi 531996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 532096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 532196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 532296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 532396402570Smrgfi 532496402570Smrg 532596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 532696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 532796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 532896402570Smrg fi 532996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 533096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 533196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 533296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 533396402570Smrg $as_echo_n "(cached) " >&6 533496402570Smrgelse 533596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 533696402570Smrg/* end confdefs.h. */ 533796402570Smrgint i; 533896402570Smrg_ACEOF 533996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 534096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 534196402570Smrgelse 534296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 534396402570Smrgfi 534496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 534596402570Smrgfi 534696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 534796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 534896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 534996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 535096402570Smrgfi 535196402570Smrg 535296402570Smrgfound="no" 535396402570Smrg 535496402570Smrg if test $found = "no" ; then 535596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 535696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 535796402570Smrg fi 535896402570Smrg 535996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 536096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 536196402570Smrg fi 536296402570Smrg 536396402570Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 536496402570Smrg 536596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 536696402570Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 536796402570Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 536896402570Smrg if eval \${$cacheid+:} false; then : 536996402570Smrg $as_echo_n "(cached) " >&6 537096402570Smrgelse 537196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 537296402570Smrg/* end confdefs.h. */ 537396402570Smrgint i; 537496402570Smrgint 537596402570Smrgmain () 537696402570Smrg{ 537796402570Smrg 537896402570Smrg ; 537996402570Smrg return 0; 538096402570Smrg} 538196402570Smrg_ACEOF 538296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 538396402570Smrg eval $cacheid=yes 538496402570Smrgelse 538596402570Smrg eval $cacheid=no 538696402570Smrgfi 538796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 538896402570Smrg conftest$ac_exeext conftest.$ac_ext 538996402570Smrgfi 539096402570Smrg 539196402570Smrg 539296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 539396402570Smrg 539496402570Smrg eval supported=\$$cacheid 539596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 539696402570Smrg$as_echo "$supported" >&6; } 539796402570Smrg if test "$supported" = "yes" ; then 539896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 539996402570Smrg found="yes" 540096402570Smrg fi 540196402570Smrg fi 540296402570Smrg 540396402570Smrg 540496402570Smrg 540596402570Smrg 540696402570Smrg 540796402570Smrg 540896402570Smrg 540996402570Smrg 541096402570Smrg 541196402570Smrg 541296402570Smrg 541396402570Smrg 541496402570Smrg 541596402570Smrg 541696402570Smrg 541796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 541896402570Smrg 541996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 542096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 542196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 542296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 542396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 542496402570Smrg $as_echo_n "(cached) " >&6 542596402570Smrgelse 542696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 542796402570Smrg/* end confdefs.h. */ 542896402570Smrgint i; 542996402570Smrg_ACEOF 543096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 543196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 543296402570Smrgelse 543396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 543496402570Smrgfi 543596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 543696402570Smrgfi 543796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 543896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 543996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 544096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 544196402570Smrgfi 544296402570Smrg 544396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 544496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 544596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 544696402570Smrg fi 544796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 544896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 544996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 545096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 545196402570Smrg $as_echo_n "(cached) " >&6 545296402570Smrgelse 545396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 545496402570Smrg/* end confdefs.h. */ 545596402570Smrgint i; 545696402570Smrg_ACEOF 545796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 545896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 545996402570Smrgelse 546096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 546196402570Smrgfi 546296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 546396402570Smrgfi 546496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 546596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 546696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 546796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546896402570Smrgfi 546996402570Smrg 547096402570Smrgfound="no" 547196402570Smrg 547296402570Smrg if test $found = "no" ; then 547396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 547496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 547596402570Smrg fi 547696402570Smrg 547796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 547896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 547996402570Smrg fi 548096402570Smrg 548196402570Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 548296402570Smrg 548396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 548496402570Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 548596402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 548696402570Smrg if eval \${$cacheid+:} false; then : 548796402570Smrg $as_echo_n "(cached) " >&6 548896402570Smrgelse 548996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 549096402570Smrg/* end confdefs.h. */ 549196402570Smrgint i; 549296402570Smrgint 549396402570Smrgmain () 549496402570Smrg{ 549596402570Smrg 549696402570Smrg ; 549796402570Smrg return 0; 549896402570Smrg} 549996402570Smrg_ACEOF 550096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 550196402570Smrg eval $cacheid=yes 550296402570Smrgelse 550396402570Smrg eval $cacheid=no 550496402570Smrgfi 550596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 550696402570Smrg conftest$ac_exeext conftest.$ac_ext 550796402570Smrgfi 550896402570Smrg 550996402570Smrg 551096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 551196402570Smrg 551296402570Smrg eval supported=\$$cacheid 551396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 551496402570Smrg$as_echo "$supported" >&6; } 551596402570Smrg if test "$supported" = "yes" ; then 551696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 551796402570Smrg found="yes" 551896402570Smrg fi 551996402570Smrg fi 552096402570Smrg 552196402570Smrg 552296402570Smrg 552396402570Smrg 552496402570Smrg 552596402570Smrg 552696402570Smrg 552796402570Smrg 552896402570Smrg 552996402570Smrg 553096402570Smrg 553196402570Smrg 553296402570Smrg 553396402570Smrg 553496402570Smrg 553596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 553696402570Smrg 553796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 553896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 553996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 554096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 554196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 554296402570Smrg $as_echo_n "(cached) " >&6 554396402570Smrgelse 554496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 554596402570Smrg/* end confdefs.h. */ 554696402570Smrgint i; 554796402570Smrg_ACEOF 554896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 554996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 555096402570Smrgelse 555196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 555296402570Smrgfi 555396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 555496402570Smrgfi 555596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 555696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 555796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 555896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555996402570Smrgfi 556096402570Smrg 556196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 556296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 556396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 556496402570Smrg fi 556596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 556796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 556896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 556996402570Smrg $as_echo_n "(cached) " >&6 557096402570Smrgelse 557196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 557296402570Smrg/* end confdefs.h. */ 557396402570Smrgint i; 557496402570Smrg_ACEOF 557596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 557696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 557796402570Smrgelse 557896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 557996402570Smrgfi 558096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 558196402570Smrgfi 558296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 558396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 558496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 558596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 558696402570Smrgfi 558796402570Smrg 558896402570Smrgfound="no" 558996402570Smrg 559096402570Smrg if test $found = "no" ; then 559196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 559296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 559396402570Smrg fi 559496402570Smrg 559596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 559696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 559796402570Smrg fi 559896402570Smrg 559996402570Smrg CFLAGS="$CFLAGS -Wnested-externs" 560096402570Smrg 560196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 560296402570Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 560396402570Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 560496402570Smrg if eval \${$cacheid+:} false; then : 560596402570Smrg $as_echo_n "(cached) " >&6 560696402570Smrgelse 560796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 560896402570Smrg/* end confdefs.h. */ 560996402570Smrgint i; 561096402570Smrgint 561196402570Smrgmain () 561296402570Smrg{ 561396402570Smrg 561496402570Smrg ; 561596402570Smrg return 0; 561696402570Smrg} 561796402570Smrg_ACEOF 561896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 561996402570Smrg eval $cacheid=yes 562096402570Smrgelse 562196402570Smrg eval $cacheid=no 562296402570Smrgfi 562396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 562496402570Smrg conftest$ac_exeext conftest.$ac_ext 562596402570Smrgfi 562696402570Smrg 562796402570Smrg 562896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 562996402570Smrg 563096402570Smrg eval supported=\$$cacheid 563196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 563296402570Smrg$as_echo "$supported" >&6; } 563396402570Smrg if test "$supported" = "yes" ; then 563496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 563596402570Smrg found="yes" 563696402570Smrg fi 563796402570Smrg fi 563896402570Smrg 563996402570Smrg 564096402570Smrg 564196402570Smrg 564296402570Smrg 564396402570Smrg 564496402570Smrg 564596402570Smrg 564696402570Smrg 564796402570Smrg 564896402570Smrg 564996402570Smrg 565096402570Smrg 565196402570Smrg 565296402570Smrg 565396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 565496402570Smrg 565596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 565696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 565796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 565896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 565996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 566096402570Smrg $as_echo_n "(cached) " >&6 566196402570Smrgelse 566296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 566396402570Smrg/* end confdefs.h. */ 566496402570Smrgint i; 566596402570Smrg_ACEOF 566696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 566796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 566896402570Smrgelse 566996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 567096402570Smrgfi 567196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 567296402570Smrgfi 567396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 567496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 567596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 567696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 567796402570Smrgfi 567896402570Smrg 567996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 568096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 568196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 568296402570Smrg fi 568396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 568496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 568596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 568696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 568796402570Smrg $as_echo_n "(cached) " >&6 568896402570Smrgelse 568996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 569096402570Smrg/* end confdefs.h. */ 569196402570Smrgint i; 569296402570Smrg_ACEOF 569396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 569496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 569596402570Smrgelse 569696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 569796402570Smrgfi 569896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 569996402570Smrgfi 570096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 570196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 570296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 570396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 570496402570Smrgfi 570596402570Smrg 570696402570Smrgfound="no" 570796402570Smrg 570896402570Smrg if test $found = "no" ; then 570996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 571096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 571196402570Smrg fi 571296402570Smrg 571396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 571496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 571596402570Smrg fi 571696402570Smrg 571796402570Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 571896402570Smrg 571996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 572096402570Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 572196402570Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 572296402570Smrg if eval \${$cacheid+:} false; then : 572396402570Smrg $as_echo_n "(cached) " >&6 572496402570Smrgelse 572596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 572696402570Smrg/* end confdefs.h. */ 572796402570Smrgint i; 572896402570Smrgint 572996402570Smrgmain () 573096402570Smrg{ 573196402570Smrg 573296402570Smrg ; 573396402570Smrg return 0; 573496402570Smrg} 573596402570Smrg_ACEOF 573696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 573796402570Smrg eval $cacheid=yes 573896402570Smrgelse 573996402570Smrg eval $cacheid=no 574096402570Smrgfi 574196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 574296402570Smrg conftest$ac_exeext conftest.$ac_ext 574396402570Smrgfi 574496402570Smrg 574596402570Smrg 574696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 574796402570Smrg 574896402570Smrg eval supported=\$$cacheid 574996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 575096402570Smrg$as_echo "$supported" >&6; } 575196402570Smrg if test "$supported" = "yes" ; then 575296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 575396402570Smrg found="yes" 575496402570Smrg fi 575596402570Smrg fi 575696402570Smrg 575796402570Smrg 575896402570Smrg 575996402570Smrg 576096402570Smrg 576196402570Smrg 576296402570Smrg 576396402570Smrg 576496402570Smrg 576596402570Smrg 576696402570Smrg 576796402570Smrg 576896402570Smrg 576996402570Smrg 577096402570Smrg 577196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 577296402570Smrg 577396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 577496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 577596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 577696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 577796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 577896402570Smrg $as_echo_n "(cached) " >&6 577996402570Smrgelse 578096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 578196402570Smrg/* end confdefs.h. */ 578296402570Smrgint i; 578396402570Smrg_ACEOF 578496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 578596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 578696402570Smrgelse 578796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 578896402570Smrgfi 578996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 579096402570Smrgfi 579196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 579296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 579396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 579496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 579596402570Smrgfi 579696402570Smrg 579796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 579896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 579996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 580096402570Smrg fi 580196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 580296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 580396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 580496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 580596402570Smrg $as_echo_n "(cached) " >&6 580696402570Smrgelse 580796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 580896402570Smrg/* end confdefs.h. */ 580996402570Smrgint i; 581096402570Smrg_ACEOF 581196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 581296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 581396402570Smrgelse 581496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 581596402570Smrgfi 581696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 581796402570Smrgfi 581896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 581996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 582096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 582196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 582296402570Smrgfi 582396402570Smrg 582496402570Smrgfound="no" 582596402570Smrg 582696402570Smrg if test $found = "no" ; then 582796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 582896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582996402570Smrg fi 583096402570Smrg 583196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 583296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 583396402570Smrg fi 583496402570Smrg 583596402570Smrg CFLAGS="$CFLAGS -Wold-style-definition" 583696402570Smrg 583796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 583896402570Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 583996402570Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 584096402570Smrg if eval \${$cacheid+:} false; then : 584196402570Smrg $as_echo_n "(cached) " >&6 584296402570Smrgelse 584396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 584496402570Smrg/* end confdefs.h. */ 584596402570Smrgint i; 584696402570Smrgint 584796402570Smrgmain () 584896402570Smrg{ 584996402570Smrg 585096402570Smrg ; 585196402570Smrg return 0; 585296402570Smrg} 585396402570Smrg_ACEOF 585496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 585596402570Smrg eval $cacheid=yes 585696402570Smrgelse 585796402570Smrg eval $cacheid=no 585896402570Smrgfi 585996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 586096402570Smrg conftest$ac_exeext conftest.$ac_ext 586196402570Smrgfi 586296402570Smrg 586396402570Smrg 586496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 586596402570Smrg 586696402570Smrg eval supported=\$$cacheid 586796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 586896402570Smrg$as_echo "$supported" >&6; } 586996402570Smrg if test "$supported" = "yes" ; then 587096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 587196402570Smrg found="yes" 587296402570Smrg fi 587396402570Smrg fi 587496402570Smrg 587596402570Smrg 587696402570Smrg 587796402570Smrg 587896402570Smrg 587996402570Smrg 588096402570Smrg 588196402570Smrg 588296402570Smrg 588396402570Smrg 588496402570Smrg 588596402570Smrg 588696402570Smrg 588796402570Smrg 588896402570Smrg 588996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 589096402570Smrg 589196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 589296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 589396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 589496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 589596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 589696402570Smrg $as_echo_n "(cached) " >&6 589796402570Smrgelse 589896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 589996402570Smrg/* end confdefs.h. */ 590096402570Smrgint i; 590196402570Smrg_ACEOF 590296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 590396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 590496402570Smrgelse 590596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 590696402570Smrgfi 590796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 590896402570Smrgfi 590996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 591096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 591196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 591296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 591396402570Smrgfi 591496402570Smrg 591596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 591696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 591796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 591896402570Smrg fi 591996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 592096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 592196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 592296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 592396402570Smrg $as_echo_n "(cached) " >&6 592496402570Smrgelse 592596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 592696402570Smrg/* end confdefs.h. */ 592796402570Smrgint i; 592896402570Smrg_ACEOF 592996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 593096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 593196402570Smrgelse 593296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 593396402570Smrgfi 593496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 593596402570Smrgfi 593696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 593796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 593896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 593996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 594096402570Smrgfi 594196402570Smrg 594296402570Smrgfound="no" 594396402570Smrg 594496402570Smrg if test $found = "no" ; then 594596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 594696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594796402570Smrg fi 594896402570Smrg 594996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 595096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 595196402570Smrg fi 595296402570Smrg 595396402570Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 595496402570Smrg 595596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 595696402570Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 595796402570Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 595896402570Smrg if eval \${$cacheid+:} false; then : 595996402570Smrg $as_echo_n "(cached) " >&6 596096402570Smrgelse 596196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 596296402570Smrg/* end confdefs.h. */ 596396402570Smrgint i; 596496402570Smrgint 596596402570Smrgmain () 596696402570Smrg{ 596796402570Smrg 596896402570Smrg ; 596996402570Smrg return 0; 597096402570Smrg} 597196402570Smrg_ACEOF 597296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 597396402570Smrg eval $cacheid=yes 597496402570Smrgelse 597596402570Smrg eval $cacheid=no 597696402570Smrgfi 597796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 597896402570Smrg conftest$ac_exeext conftest.$ac_ext 597996402570Smrgfi 598096402570Smrg 598196402570Smrg 598296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598396402570Smrg 598496402570Smrg eval supported=\$$cacheid 598596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 598696402570Smrg$as_echo "$supported" >&6; } 598796402570Smrg if test "$supported" = "yes" ; then 598896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 598996402570Smrg found="yes" 599096402570Smrg fi 599196402570Smrg fi 599296402570Smrg 599396402570Smrg 599496402570Smrg 599596402570Smrg 599696402570Smrg 599796402570Smrg# This chunk adds additional warnings that could catch undesired effects. 599896402570Smrg 599996402570Smrg 600096402570Smrg 600196402570Smrg 600296402570Smrg 600396402570Smrg 600496402570Smrg 600596402570Smrg 600696402570Smrg 600796402570Smrg 600896402570Smrg 600996402570Smrg 601096402570Smrg 601196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 601296402570Smrg 601396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 601496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 601596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 601696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 601796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 601896402570Smrg $as_echo_n "(cached) " >&6 601996402570Smrgelse 602096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 602196402570Smrg/* end confdefs.h. */ 602296402570Smrgint i; 602396402570Smrg_ACEOF 602496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 602596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 602696402570Smrgelse 602796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 602896402570Smrgfi 602996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 603096402570Smrgfi 603196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 603296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 603396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 603496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 603596402570Smrgfi 603696402570Smrg 603796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 603896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 603996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 604096402570Smrg fi 604196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 604296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 604396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 604496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 604596402570Smrg $as_echo_n "(cached) " >&6 604696402570Smrgelse 604796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 604896402570Smrg/* end confdefs.h. */ 604996402570Smrgint i; 605096402570Smrg_ACEOF 605196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 605296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 605396402570Smrgelse 605496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 605596402570Smrgfi 605696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 605796402570Smrgfi 605896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 605996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 606096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 606196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 606296402570Smrgfi 606396402570Smrg 606496402570Smrgfound="no" 606596402570Smrg 606696402570Smrg if test $found = "no" ; then 606796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 606896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 606996402570Smrg fi 607096402570Smrg 607196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 607296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 607396402570Smrg fi 607496402570Smrg 607596402570Smrg CFLAGS="$CFLAGS -Wunused" 607696402570Smrg 607796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 607896402570Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; } 607996402570Smrg cacheid=xorg_cv_cc_flag__Wunused 608096402570Smrg if eval \${$cacheid+:} false; then : 608196402570Smrg $as_echo_n "(cached) " >&6 608296402570Smrgelse 608396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608496402570Smrg/* end confdefs.h. */ 608596402570Smrgint i; 608696402570Smrgint 608796402570Smrgmain () 608896402570Smrg{ 608996402570Smrg 609096402570Smrg ; 609196402570Smrg return 0; 609296402570Smrg} 609396402570Smrg_ACEOF 609496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 609596402570Smrg eval $cacheid=yes 609696402570Smrgelse 609796402570Smrg eval $cacheid=no 609896402570Smrgfi 609996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 610096402570Smrg conftest$ac_exeext conftest.$ac_ext 610196402570Smrgfi 610296402570Smrg 610396402570Smrg 610496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 610596402570Smrg 610696402570Smrg eval supported=\$$cacheid 610796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 610896402570Smrg$as_echo "$supported" >&6; } 610996402570Smrg if test "$supported" = "yes" ; then 611096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 611196402570Smrg found="yes" 611296402570Smrg fi 611396402570Smrg fi 611496402570Smrg 611596402570Smrg 611696402570Smrg 611796402570Smrg 611896402570Smrg 611996402570Smrg 612096402570Smrg 612196402570Smrg 612296402570Smrg 612396402570Smrg 612496402570Smrg 612596402570Smrg 612696402570Smrg 612796402570Smrg 612896402570Smrg 612996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 613096402570Smrg 613196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 613296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 613396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 613496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 613596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 613696402570Smrg $as_echo_n "(cached) " >&6 613796402570Smrgelse 613896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 613996402570Smrg/* end confdefs.h. */ 614096402570Smrgint i; 614196402570Smrg_ACEOF 614296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 614396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 614496402570Smrgelse 614596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 614696402570Smrgfi 614796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 614896402570Smrgfi 614996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 615096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 615196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 615296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 615396402570Smrgfi 615496402570Smrg 615596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 615696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 615796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 615896402570Smrg fi 615996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 616096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 616196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 616296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 616396402570Smrg $as_echo_n "(cached) " >&6 616496402570Smrgelse 616596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 616696402570Smrg/* end confdefs.h. */ 616796402570Smrgint i; 616896402570Smrg_ACEOF 616996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 617096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 617196402570Smrgelse 617296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 617396402570Smrgfi 617496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 617596402570Smrgfi 617696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 617796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 617896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 617996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 618096402570Smrgfi 618196402570Smrg 618296402570Smrgfound="no" 618396402570Smrg 618496402570Smrg if test $found = "no" ; then 618596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 618696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 618796402570Smrg fi 618896402570Smrg 618996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 619096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 619196402570Smrg fi 619296402570Smrg 619396402570Smrg CFLAGS="$CFLAGS -Wuninitialized" 619496402570Smrg 619596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 619696402570Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 619796402570Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 619896402570Smrg if eval \${$cacheid+:} false; then : 619996402570Smrg $as_echo_n "(cached) " >&6 620096402570Smrgelse 620196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 620296402570Smrg/* end confdefs.h. */ 620396402570Smrgint i; 620496402570Smrgint 620596402570Smrgmain () 620696402570Smrg{ 620796402570Smrg 620896402570Smrg ; 620996402570Smrg return 0; 621096402570Smrg} 621196402570Smrg_ACEOF 621296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 621396402570Smrg eval $cacheid=yes 621496402570Smrgelse 621596402570Smrg eval $cacheid=no 621696402570Smrgfi 621796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 621896402570Smrg conftest$ac_exeext conftest.$ac_ext 621996402570Smrgfi 622096402570Smrg 622196402570Smrg 622296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622396402570Smrg 622496402570Smrg eval supported=\$$cacheid 622596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 622696402570Smrg$as_echo "$supported" >&6; } 622796402570Smrg if test "$supported" = "yes" ; then 622896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 622996402570Smrg found="yes" 623096402570Smrg fi 623196402570Smrg fi 623296402570Smrg 623396402570Smrg 623496402570Smrg 623596402570Smrg 623696402570Smrg 623796402570Smrg 623896402570Smrg 623996402570Smrg 624096402570Smrg 624196402570Smrg 624296402570Smrg 624396402570Smrg 624496402570Smrg 624596402570Smrg 624696402570Smrg 624796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 624896402570Smrg 624996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 625096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 625196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 625296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 625396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 625496402570Smrg $as_echo_n "(cached) " >&6 625596402570Smrgelse 625696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 625796402570Smrg/* end confdefs.h. */ 625896402570Smrgint i; 625996402570Smrg_ACEOF 626096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 626196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 626296402570Smrgelse 626396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 626496402570Smrgfi 626596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 626696402570Smrgfi 626796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 626896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 626996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 627096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 627196402570Smrgfi 627296402570Smrg 627396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 627496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 627596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 627696402570Smrg fi 627796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 627896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 627996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 628096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 628196402570Smrg $as_echo_n "(cached) " >&6 628296402570Smrgelse 628396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 628496402570Smrg/* end confdefs.h. */ 628596402570Smrgint i; 628696402570Smrg_ACEOF 628796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 628896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 628996402570Smrgelse 629096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 629196402570Smrgfi 629296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 629396402570Smrgfi 629496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 629596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 629696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 629796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 629896402570Smrgfi 629996402570Smrg 630096402570Smrgfound="no" 630196402570Smrg 630296402570Smrg if test $found = "no" ; then 630396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 630496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 630596402570Smrg fi 630696402570Smrg 630796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 630896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 630996402570Smrg fi 631096402570Smrg 631196402570Smrg CFLAGS="$CFLAGS -Wshadow" 631296402570Smrg 631396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 631496402570Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 631596402570Smrg cacheid=xorg_cv_cc_flag__Wshadow 631696402570Smrg if eval \${$cacheid+:} false; then : 631796402570Smrg $as_echo_n "(cached) " >&6 631896402570Smrgelse 631996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 632096402570Smrg/* end confdefs.h. */ 632196402570Smrgint i; 632296402570Smrgint 632396402570Smrgmain () 632496402570Smrg{ 632596402570Smrg 632696402570Smrg ; 632796402570Smrg return 0; 632896402570Smrg} 632996402570Smrg_ACEOF 633096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 633196402570Smrg eval $cacheid=yes 633296402570Smrgelse 633396402570Smrg eval $cacheid=no 633496402570Smrgfi 633596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 633696402570Smrg conftest$ac_exeext conftest.$ac_ext 633796402570Smrgfi 633896402570Smrg 633996402570Smrg 634096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 634196402570Smrg 634296402570Smrg eval supported=\$$cacheid 634396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 634496402570Smrg$as_echo "$supported" >&6; } 634596402570Smrg if test "$supported" = "yes" ; then 634696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 634796402570Smrg found="yes" 634896402570Smrg fi 634996402570Smrg fi 635096402570Smrg 635196402570Smrg 635296402570Smrg 635396402570Smrg 635496402570Smrg 635596402570Smrg 635696402570Smrg 635796402570Smrg 635896402570Smrg 635996402570Smrg 636096402570Smrg 636196402570Smrg 636296402570Smrg 636396402570Smrg 636496402570Smrg 636596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 636696402570Smrg 636796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 636896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 636996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 637096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 637196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 637296402570Smrg $as_echo_n "(cached) " >&6 637396402570Smrgelse 637496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 637596402570Smrg/* end confdefs.h. */ 637696402570Smrgint i; 637796402570Smrg_ACEOF 637896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 637996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 638096402570Smrgelse 638196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 638296402570Smrgfi 638396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 638496402570Smrgfi 638596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 638696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 638796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 638896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 638996402570Smrgfi 639096402570Smrg 639196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 639296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 639396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 639496402570Smrg fi 639596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 639696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 639796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 639896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 639996402570Smrg $as_echo_n "(cached) " >&6 640096402570Smrgelse 640196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 640296402570Smrg/* end confdefs.h. */ 640396402570Smrgint i; 640496402570Smrg_ACEOF 640596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 640696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 640796402570Smrgelse 640896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 640996402570Smrgfi 641096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 641196402570Smrgfi 641296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 641396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 641496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 641596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 641696402570Smrgfi 641796402570Smrg 641896402570Smrgfound="no" 641996402570Smrg 642096402570Smrg if test $found = "no" ; then 642196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 642296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 642396402570Smrg fi 642496402570Smrg 642596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 642696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 642796402570Smrg fi 642896402570Smrg 642996402570Smrg CFLAGS="$CFLAGS -Wcast-qual" 643096402570Smrg 643196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 643296402570Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 643396402570Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 643496402570Smrg if eval \${$cacheid+:} false; then : 643596402570Smrg $as_echo_n "(cached) " >&6 643696402570Smrgelse 643796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 643896402570Smrg/* end confdefs.h. */ 643996402570Smrgint i; 644096402570Smrgint 644196402570Smrgmain () 644296402570Smrg{ 644396402570Smrg 644496402570Smrg ; 644596402570Smrg return 0; 644696402570Smrg} 644796402570Smrg_ACEOF 644896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 644996402570Smrg eval $cacheid=yes 645096402570Smrgelse 645196402570Smrg eval $cacheid=no 645296402570Smrgfi 645396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 645496402570Smrg conftest$ac_exeext conftest.$ac_ext 645596402570Smrgfi 645696402570Smrg 645796402570Smrg 645896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 645996402570Smrg 646096402570Smrg eval supported=\$$cacheid 646196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 646296402570Smrg$as_echo "$supported" >&6; } 646396402570Smrg if test "$supported" = "yes" ; then 646496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 646596402570Smrg found="yes" 646696402570Smrg fi 646796402570Smrg fi 646896402570Smrg 646996402570Smrg 647096402570Smrg 647196402570Smrg 647296402570Smrg 647396402570Smrg 647496402570Smrg 647596402570Smrg 647696402570Smrg 647796402570Smrg 647896402570Smrg 647996402570Smrg 648096402570Smrg 648196402570Smrg 648296402570Smrg 648396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 648496402570Smrg 648596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 648696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 648796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 648896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 648996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 649096402570Smrg $as_echo_n "(cached) " >&6 649196402570Smrgelse 649296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 649396402570Smrg/* end confdefs.h. */ 649496402570Smrgint i; 649596402570Smrg_ACEOF 649696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 649796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 649896402570Smrgelse 649996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 650096402570Smrgfi 650196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 650296402570Smrgfi 650396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 650496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 650596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 650696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 650796402570Smrgfi 650896402570Smrg 650996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 651096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 651196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 651296402570Smrg fi 651396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 651496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 651596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 651696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 651796402570Smrg $as_echo_n "(cached) " >&6 651896402570Smrgelse 651996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 652096402570Smrg/* end confdefs.h. */ 652196402570Smrgint i; 652296402570Smrg_ACEOF 652396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 652496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 652596402570Smrgelse 652696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 652796402570Smrgfi 652896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 652996402570Smrgfi 653096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 653196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 653296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 653396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 653496402570Smrgfi 653596402570Smrg 653696402570Smrgfound="no" 653796402570Smrg 653896402570Smrg if test $found = "no" ; then 653996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 654096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 654196402570Smrg fi 654296402570Smrg 654396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 654496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 654596402570Smrg fi 654696402570Smrg 654796402570Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 654896402570Smrg 654996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 655096402570Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 655196402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 655296402570Smrg if eval \${$cacheid+:} false; then : 655396402570Smrg $as_echo_n "(cached) " >&6 655496402570Smrgelse 655596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 655696402570Smrg/* end confdefs.h. */ 655796402570Smrgint i; 655896402570Smrgint 655996402570Smrgmain () 656096402570Smrg{ 656196402570Smrg 656296402570Smrg ; 656396402570Smrg return 0; 656496402570Smrg} 656596402570Smrg_ACEOF 656696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 656796402570Smrg eval $cacheid=yes 656896402570Smrgelse 656996402570Smrg eval $cacheid=no 657096402570Smrgfi 657196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 657296402570Smrg conftest$ac_exeext conftest.$ac_ext 657396402570Smrgfi 657496402570Smrg 657596402570Smrg 657696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657796402570Smrg 657896402570Smrg eval supported=\$$cacheid 657996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 658096402570Smrg$as_echo "$supported" >&6; } 658196402570Smrg if test "$supported" = "yes" ; then 658296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 658396402570Smrg found="yes" 658496402570Smrg fi 658596402570Smrg fi 658696402570Smrg 658796402570Smrg 658896402570Smrg 658996402570Smrg 659096402570Smrg 659196402570Smrg 659296402570Smrg 659396402570Smrg 659496402570Smrg 659596402570Smrg 659696402570Smrg 659796402570Smrg 659896402570Smrg 659996402570Smrg 660096402570Smrg 660196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 660296402570Smrg 660396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 660496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 660596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 660696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 660796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 660896402570Smrg $as_echo_n "(cached) " >&6 660996402570Smrgelse 661096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 661196402570Smrg/* end confdefs.h. */ 661296402570Smrgint i; 661396402570Smrg_ACEOF 661496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 661596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 661696402570Smrgelse 661796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 661896402570Smrgfi 661996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 662096402570Smrgfi 662196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 662296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 662396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 662496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 662596402570Smrgfi 662696402570Smrg 662796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 662896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 662996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 663096402570Smrg fi 663196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 663296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 663396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 663496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 663596402570Smrg $as_echo_n "(cached) " >&6 663696402570Smrgelse 663796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 663896402570Smrg/* end confdefs.h. */ 663996402570Smrgint i; 664096402570Smrg_ACEOF 664196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 664296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 664396402570Smrgelse 664496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 664596402570Smrgfi 664696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 664796402570Smrgfi 664896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 664996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 665096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 665196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 665296402570Smrgfi 665396402570Smrg 665496402570Smrgfound="no" 665596402570Smrg 665696402570Smrg if test $found = "no" ; then 665796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 665896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 665996402570Smrg fi 666096402570Smrg 666196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 666296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 666396402570Smrg fi 666496402570Smrg 666596402570Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 666696402570Smrg 666796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 666896402570Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 666996402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 667096402570Smrg if eval \${$cacheid+:} false; then : 667196402570Smrg $as_echo_n "(cached) " >&6 667296402570Smrgelse 667396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 667496402570Smrg/* end confdefs.h. */ 667596402570Smrgint i; 667696402570Smrgint 667796402570Smrgmain () 667896402570Smrg{ 667996402570Smrg 668096402570Smrg ; 668196402570Smrg return 0; 668296402570Smrg} 668396402570Smrg_ACEOF 668496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 668596402570Smrg eval $cacheid=yes 668696402570Smrgelse 668796402570Smrg eval $cacheid=no 668896402570Smrgfi 668996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 669096402570Smrg conftest$ac_exeext conftest.$ac_ext 669196402570Smrgfi 669296402570Smrg 669396402570Smrg 669496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669596402570Smrg 669696402570Smrg eval supported=\$$cacheid 669796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 669896402570Smrg$as_echo "$supported" >&6; } 669996402570Smrg if test "$supported" = "yes" ; then 670096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 670196402570Smrg found="yes" 670296402570Smrg fi 670396402570Smrg fi 670496402570Smrg 670596402570Smrg 670696402570Smrg 670796402570Smrg 670896402570Smrg 670996402570Smrg 671096402570Smrg 671196402570Smrg 671296402570Smrg 671396402570Smrg 671496402570Smrg 671596402570Smrg 671696402570Smrg 671796402570Smrg 671896402570Smrg 671996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 672096402570Smrg 672196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 672296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 672396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 672496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 672596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 672696402570Smrg $as_echo_n "(cached) " >&6 672796402570Smrgelse 672896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 672996402570Smrg/* end confdefs.h. */ 673096402570Smrgint i; 673196402570Smrg_ACEOF 673296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 673396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 673496402570Smrgelse 673596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 673696402570Smrgfi 673796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 673896402570Smrgfi 673996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 674096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 674196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 674296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 674396402570Smrgfi 674496402570Smrg 674596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 674696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 674796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 674896402570Smrg fi 674996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 675096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 675196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 675296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 675396402570Smrg $as_echo_n "(cached) " >&6 675496402570Smrgelse 675596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 675696402570Smrg/* end confdefs.h. */ 675796402570Smrgint i; 675896402570Smrg_ACEOF 675996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 676096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 676196402570Smrgelse 676296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 676396402570Smrgfi 676496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 676596402570Smrgfi 676696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 676796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 676896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 676996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 677096402570Smrgfi 677196402570Smrg 677296402570Smrgfound="no" 677396402570Smrg 677496402570Smrg if test $found = "no" ; then 677596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 677696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 677796402570Smrg fi 677896402570Smrg 677996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 678096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 678196402570Smrg fi 678296402570Smrg 678396402570Smrg CFLAGS="$CFLAGS -Wredundant-decls" 678496402570Smrg 678596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 678696402570Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 678796402570Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 678896402570Smrg if eval \${$cacheid+:} false; then : 678996402570Smrg $as_echo_n "(cached) " >&6 679096402570Smrgelse 679196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679296402570Smrg/* end confdefs.h. */ 679396402570Smrgint i; 679496402570Smrgint 679596402570Smrgmain () 679696402570Smrg{ 679796402570Smrg 679896402570Smrg ; 679996402570Smrg return 0; 680096402570Smrg} 680196402570Smrg_ACEOF 680296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 680396402570Smrg eval $cacheid=yes 680496402570Smrgelse 680596402570Smrg eval $cacheid=no 680696402570Smrgfi 680796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 680896402570Smrg conftest$ac_exeext conftest.$ac_ext 680996402570Smrgfi 681096402570Smrg 681196402570Smrg 681296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681396402570Smrg 681496402570Smrg eval supported=\$$cacheid 681596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 681696402570Smrg$as_echo "$supported" >&6; } 681796402570Smrg if test "$supported" = "yes" ; then 681896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 681996402570Smrg found="yes" 682096402570Smrg fi 682196402570Smrg fi 682296402570Smrg 682396402570Smrg 682496402570Smrg 682596402570Smrg# These are currently disabled because they are noisy. They will be enabled 682696402570Smrg# in the future once the codebase is sufficiently modernized to silence 682796402570Smrg# them. For now, I don't want them to drown out the other warnings. 682896402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 682996402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 683096402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 683196402570Smrg 683296402570Smrg# Turn some warnings into errors, so we don't accidently get successful builds 683396402570Smrg# when there are problems that should be fixed. 683496402570Smrg 683596402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 683696402570Smrg 683796402570Smrg 683896402570Smrg 683996402570Smrg 684096402570Smrg 684196402570Smrg 684296402570Smrg 684396402570Smrg 684496402570Smrg 684596402570Smrg 684696402570Smrg 684796402570Smrg 684896402570Smrg 684996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 685096402570Smrg 685196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 685296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 685396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 685496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 685596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 685696402570Smrg $as_echo_n "(cached) " >&6 685796402570Smrgelse 685896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 685996402570Smrg/* end confdefs.h. */ 686096402570Smrgint i; 686196402570Smrg_ACEOF 686296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 686396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 686496402570Smrgelse 686596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 686696402570Smrgfi 686796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 686896402570Smrgfi 686996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 687096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 687196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 687296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 687396402570Smrgfi 687496402570Smrg 687596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 687696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 687796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 687896402570Smrg fi 687996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 688096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 688196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 688296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 688396402570Smrg $as_echo_n "(cached) " >&6 688496402570Smrgelse 688596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 688696402570Smrg/* end confdefs.h. */ 688796402570Smrgint i; 688896402570Smrg_ACEOF 688996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 689096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 689196402570Smrgelse 689296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 689396402570Smrgfi 689496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 689596402570Smrgfi 689696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 689796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 689896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 689996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 690096402570Smrgfi 690196402570Smrg 690296402570Smrgfound="no" 690396402570Smrg 690496402570Smrg if test $found = "no" ; then 690596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 690696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 690796402570Smrg fi 690896402570Smrg 690996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 691096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 691196402570Smrg fi 691296402570Smrg 691396402570Smrg CFLAGS="$CFLAGS -Werror=implicit" 691496402570Smrg 691596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 691696402570Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 691796402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 691896402570Smrg if eval \${$cacheid+:} false; then : 691996402570Smrg $as_echo_n "(cached) " >&6 692096402570Smrgelse 692196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 692296402570Smrg/* end confdefs.h. */ 692396402570Smrgint i; 692496402570Smrgint 692596402570Smrgmain () 692696402570Smrg{ 692796402570Smrg 692896402570Smrg ; 692996402570Smrg return 0; 693096402570Smrg} 693196402570Smrg_ACEOF 693296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 693396402570Smrg eval $cacheid=yes 693496402570Smrgelse 693596402570Smrg eval $cacheid=no 693696402570Smrgfi 693796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 693896402570Smrg conftest$ac_exeext conftest.$ac_ext 693996402570Smrgfi 694096402570Smrg 694196402570Smrg 694296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 694396402570Smrg 694496402570Smrg eval supported=\$$cacheid 694596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 694696402570Smrg$as_echo "$supported" >&6; } 694796402570Smrg if test "$supported" = "yes" ; then 694896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 694996402570Smrg found="yes" 695096402570Smrg fi 695196402570Smrg fi 695296402570Smrg 695396402570Smrg if test $found = "no" ; then 695496402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 695596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 695696402570Smrg fi 695796402570Smrg 695896402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 695996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 696096402570Smrg fi 696196402570Smrg 696296402570Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 696396402570Smrg 696496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 696596402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 696696402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 696796402570Smrg if eval \${$cacheid+:} false; then : 696896402570Smrg $as_echo_n "(cached) " >&6 696996402570Smrgelse 697096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 697196402570Smrg/* end confdefs.h. */ 697296402570Smrgint i; 697396402570Smrgint 697496402570Smrgmain () 697596402570Smrg{ 697696402570Smrg 697796402570Smrg ; 697896402570Smrg return 0; 697996402570Smrg} 698096402570Smrg_ACEOF 698196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 698296402570Smrg eval $cacheid=yes 698396402570Smrgelse 698496402570Smrg eval $cacheid=no 698596402570Smrgfi 698696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 698796402570Smrg conftest$ac_exeext conftest.$ac_ext 698896402570Smrgfi 698996402570Smrg 699096402570Smrg 699196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 699296402570Smrg 699396402570Smrg eval supported=\$$cacheid 699496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 699596402570Smrg$as_echo "$supported" >&6; } 699696402570Smrg if test "$supported" = "yes" ; then 699796402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 699896402570Smrg found="yes" 699996402570Smrg fi 700096402570Smrg fi 700196402570Smrg 700296402570Smrg 700396402570Smrg 700496402570Smrg 700596402570Smrg 700696402570Smrg 700796402570Smrg 700896402570Smrg 700996402570Smrg 701096402570Smrg 701196402570Smrg 701296402570Smrg 701396402570Smrg 701496402570Smrg 701596402570Smrg 701696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 701796402570Smrg 701896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 701996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 702096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 702196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 702296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 702396402570Smrg $as_echo_n "(cached) " >&6 702496402570Smrgelse 702596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 702696402570Smrg/* end confdefs.h. */ 702796402570Smrgint i; 702896402570Smrg_ACEOF 702996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 703096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 703196402570Smrgelse 703296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 703396402570Smrgfi 703496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 703596402570Smrgfi 703696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 703796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 703896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 703996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 704096402570Smrgfi 704196402570Smrg 704296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 704396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 704496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 704596402570Smrg fi 704696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 704796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 704896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 704996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 705096402570Smrg $as_echo_n "(cached) " >&6 705196402570Smrgelse 705296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 705396402570Smrg/* end confdefs.h. */ 705496402570Smrgint i; 705596402570Smrg_ACEOF 705696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 705796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 705896402570Smrgelse 705996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 706096402570Smrgfi 706196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 706296402570Smrgfi 706396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 706496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 706596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 706696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706796402570Smrgfi 706896402570Smrg 706996402570Smrgfound="no" 707096402570Smrg 707196402570Smrg if test $found = "no" ; then 707296402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 707396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 707496402570Smrg fi 707596402570Smrg 707696402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 707796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 707896402570Smrg fi 707996402570Smrg 708096402570Smrg CFLAGS="$CFLAGS -Werror=nonnull" 708196402570Smrg 708296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 708396402570Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 708496402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 708596402570Smrg if eval \${$cacheid+:} false; then : 708696402570Smrg $as_echo_n "(cached) " >&6 708796402570Smrgelse 708896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 708996402570Smrg/* end confdefs.h. */ 709096402570Smrgint i; 709196402570Smrgint 709296402570Smrgmain () 709396402570Smrg{ 709496402570Smrg 709596402570Smrg ; 709696402570Smrg return 0; 709796402570Smrg} 709896402570Smrg_ACEOF 709996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 710096402570Smrg eval $cacheid=yes 710196402570Smrgelse 710296402570Smrg eval $cacheid=no 710396402570Smrgfi 710496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 710596402570Smrg conftest$ac_exeext conftest.$ac_ext 710696402570Smrgfi 710796402570Smrg 710896402570Smrg 710996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 711096402570Smrg 711196402570Smrg eval supported=\$$cacheid 711296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 711396402570Smrg$as_echo "$supported" >&6; } 711496402570Smrg if test "$supported" = "yes" ; then 711596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 711696402570Smrg found="yes" 711796402570Smrg fi 711896402570Smrg fi 711996402570Smrg 712096402570Smrg 712196402570Smrg 712296402570Smrg 712396402570Smrg 712496402570Smrg 712596402570Smrg 712696402570Smrg 712796402570Smrg 712896402570Smrg 712996402570Smrg 713096402570Smrg 713196402570Smrg 713296402570Smrg 713396402570Smrg 713496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 713596402570Smrg 713696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 713796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 713896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 713996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 714096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 714196402570Smrg $as_echo_n "(cached) " >&6 714296402570Smrgelse 714396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 714496402570Smrg/* end confdefs.h. */ 714596402570Smrgint i; 714696402570Smrg_ACEOF 714796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 714896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 714996402570Smrgelse 715096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 715196402570Smrgfi 715296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 715396402570Smrgfi 715496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 715596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 715696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 715796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 715896402570Smrgfi 715996402570Smrg 716096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 716196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 716296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 716396402570Smrg fi 716496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 716596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 716696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 716796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 716896402570Smrg $as_echo_n "(cached) " >&6 716996402570Smrgelse 717096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 717196402570Smrg/* end confdefs.h. */ 717296402570Smrgint i; 717396402570Smrg_ACEOF 717496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 717596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 717696402570Smrgelse 717796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 717896402570Smrgfi 717996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 718096402570Smrgfi 718196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 718296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 718396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 718496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 718596402570Smrgfi 718696402570Smrg 718796402570Smrgfound="no" 718896402570Smrg 718996402570Smrg if test $found = "no" ; then 719096402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 719196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 719296402570Smrg fi 719396402570Smrg 719496402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 719596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 719696402570Smrg fi 719796402570Smrg 719896402570Smrg CFLAGS="$CFLAGS -Werror=init-self" 719996402570Smrg 720096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 720196402570Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 720296402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 720396402570Smrg if eval \${$cacheid+:} false; then : 720496402570Smrg $as_echo_n "(cached) " >&6 720596402570Smrgelse 720696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 720796402570Smrg/* end confdefs.h. */ 720896402570Smrgint i; 720996402570Smrgint 721096402570Smrgmain () 721196402570Smrg{ 721296402570Smrg 721396402570Smrg ; 721496402570Smrg return 0; 721596402570Smrg} 721696402570Smrg_ACEOF 721796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 721896402570Smrg eval $cacheid=yes 721996402570Smrgelse 722096402570Smrg eval $cacheid=no 722196402570Smrgfi 722296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 722396402570Smrg conftest$ac_exeext conftest.$ac_ext 722496402570Smrgfi 722596402570Smrg 722696402570Smrg 722796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 722896402570Smrg 722996402570Smrg eval supported=\$$cacheid 723096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 723196402570Smrg$as_echo "$supported" >&6; } 723296402570Smrg if test "$supported" = "yes" ; then 723396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 723496402570Smrg found="yes" 723596402570Smrg fi 723696402570Smrg fi 723796402570Smrg 723896402570Smrg 723996402570Smrg 724096402570Smrg 724196402570Smrg 724296402570Smrg 724396402570Smrg 724496402570Smrg 724596402570Smrg 724696402570Smrg 724796402570Smrg 724896402570Smrg 724996402570Smrg 725096402570Smrg 725196402570Smrg 725296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 725396402570Smrg 725496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 725596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 725696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 725796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 725896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 725996402570Smrg $as_echo_n "(cached) " >&6 726096402570Smrgelse 726196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 726296402570Smrg/* end confdefs.h. */ 726396402570Smrgint i; 726496402570Smrg_ACEOF 726596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 726696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 726796402570Smrgelse 726896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 726996402570Smrgfi 727096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 727196402570Smrgfi 727296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 727396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 727496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 727596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727696402570Smrgfi 727796402570Smrg 727896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 727996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 728096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 728196402570Smrg fi 728296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 728396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 728496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 728596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 728696402570Smrg $as_echo_n "(cached) " >&6 728796402570Smrgelse 728896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 728996402570Smrg/* end confdefs.h. */ 729096402570Smrgint i; 729196402570Smrg_ACEOF 729296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 729396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 729496402570Smrgelse 729596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 729696402570Smrgfi 729796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 729896402570Smrgfi 729996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 730096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 730196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 730296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 730396402570Smrgfi 730496402570Smrg 730596402570Smrgfound="no" 730696402570Smrg 730796402570Smrg if test $found = "no" ; then 730896402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 730996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 731096402570Smrg fi 731196402570Smrg 731296402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 731396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 731496402570Smrg fi 731596402570Smrg 731696402570Smrg CFLAGS="$CFLAGS -Werror=main" 731796402570Smrg 731896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 731996402570Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 732096402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 732196402570Smrg if eval \${$cacheid+:} false; then : 732296402570Smrg $as_echo_n "(cached) " >&6 732396402570Smrgelse 732496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 732596402570Smrg/* end confdefs.h. */ 732696402570Smrgint i; 732796402570Smrgint 732896402570Smrgmain () 732996402570Smrg{ 733096402570Smrg 733196402570Smrg ; 733296402570Smrg return 0; 733396402570Smrg} 733496402570Smrg_ACEOF 733596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 733696402570Smrg eval $cacheid=yes 733796402570Smrgelse 733896402570Smrg eval $cacheid=no 733996402570Smrgfi 734096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 734196402570Smrg conftest$ac_exeext conftest.$ac_ext 734296402570Smrgfi 734396402570Smrg 734496402570Smrg 734596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734696402570Smrg 734796402570Smrg eval supported=\$$cacheid 734896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 734996402570Smrg$as_echo "$supported" >&6; } 735096402570Smrg if test "$supported" = "yes" ; then 735196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 735296402570Smrg found="yes" 735396402570Smrg fi 735496402570Smrg fi 735596402570Smrg 735696402570Smrg 735796402570Smrg 735896402570Smrg 735996402570Smrg 736096402570Smrg 736196402570Smrg 736296402570Smrg 736396402570Smrg 736496402570Smrg 736596402570Smrg 736696402570Smrg 736796402570Smrg 736896402570Smrg 736996402570Smrg 737096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 737196402570Smrg 737296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 737396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 737496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 737596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 737696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 737796402570Smrg $as_echo_n "(cached) " >&6 737896402570Smrgelse 737996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 738096402570Smrg/* end confdefs.h. */ 738196402570Smrgint i; 738296402570Smrg_ACEOF 738396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 738496402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 738596402570Smrgelse 738696402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 738796402570Smrgfi 738896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 738996402570Smrgfi 739096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 739196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 739296402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 739396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 739496402570Smrgfi 739596402570Smrg 739696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 739796402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 739896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 739996402570Smrg fi 740096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 740196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 740296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 740396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 740496402570Smrg $as_echo_n "(cached) " >&6 740596402570Smrgelse 740696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 740796402570Smrg/* end confdefs.h. */ 740896402570Smrgint i; 740996402570Smrg_ACEOF 741096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 741196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 741296402570Smrgelse 741396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 741496402570Smrgfi 741596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 741696402570Smrgfi 741796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 741896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 741996402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 742096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 742196402570Smrgfi 742296402570Smrg 742396402570Smrgfound="no" 742496402570Smrg 742596402570Smrg if test $found = "no" ; then 742696402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 742796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 742896402570Smrg fi 742996402570Smrg 743096402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 743196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 743296402570Smrg fi 743396402570Smrg 743496402570Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 743596402570Smrg 743696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 743796402570Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 743896402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 743996402570Smrg if eval \${$cacheid+:} false; then : 744096402570Smrg $as_echo_n "(cached) " >&6 744196402570Smrgelse 744296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 744396402570Smrg/* end confdefs.h. */ 744496402570Smrgint i; 744596402570Smrgint 744696402570Smrgmain () 744796402570Smrg{ 744896402570Smrg 744996402570Smrg ; 745096402570Smrg return 0; 745196402570Smrg} 745296402570Smrg_ACEOF 745396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 745496402570Smrg eval $cacheid=yes 745596402570Smrgelse 745696402570Smrg eval $cacheid=no 745796402570Smrgfi 745896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 745996402570Smrg conftest$ac_exeext conftest.$ac_ext 746096402570Smrgfi 746196402570Smrg 746296402570Smrg 746396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746496402570Smrg 746596402570Smrg eval supported=\$$cacheid 746696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 746796402570Smrg$as_echo "$supported" >&6; } 746896402570Smrg if test "$supported" = "yes" ; then 746996402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 747096402570Smrg found="yes" 747196402570Smrg fi 747296402570Smrg fi 747396402570Smrg 747496402570Smrg 747596402570Smrg 747696402570Smrg 747796402570Smrg 747896402570Smrg 747996402570Smrg 748096402570Smrg 748196402570Smrg 748296402570Smrg 748396402570Smrg 748496402570Smrg 748596402570Smrg 748696402570Smrg 748796402570Smrg 748896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 748996402570Smrg 749096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 749196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 749296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 749396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 749496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 749596402570Smrg $as_echo_n "(cached) " >&6 749696402570Smrgelse 749796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 749896402570Smrg/* end confdefs.h. */ 749996402570Smrgint i; 750096402570Smrg_ACEOF 750196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 750296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 750396402570Smrgelse 750496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 750596402570Smrgfi 750696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 750796402570Smrgfi 750896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 750996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 751096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 751196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 751296402570Smrgfi 751396402570Smrg 751496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 751596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 751696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 751796402570Smrg fi 751896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 751996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 752096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 752196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 752296402570Smrg $as_echo_n "(cached) " >&6 752396402570Smrgelse 752496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 752596402570Smrg/* end confdefs.h. */ 752696402570Smrgint i; 752796402570Smrg_ACEOF 752896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 752996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 753096402570Smrgelse 753196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 753296402570Smrgfi 753396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 753496402570Smrgfi 753596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 753696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 753796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 753896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 753996402570Smrgfi 754096402570Smrg 754196402570Smrgfound="no" 754296402570Smrg 754396402570Smrg if test $found = "no" ; then 754496402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 754596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 754696402570Smrg fi 754796402570Smrg 754896402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 754996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 755096402570Smrg fi 755196402570Smrg 755296402570Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 755396402570Smrg 755496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 755596402570Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 755696402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 755796402570Smrg if eval \${$cacheid+:} false; then : 755896402570Smrg $as_echo_n "(cached) " >&6 755996402570Smrgelse 756096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 756196402570Smrg/* end confdefs.h. */ 756296402570Smrgint i; 756396402570Smrgint 756496402570Smrgmain () 756596402570Smrg{ 756696402570Smrg 756796402570Smrg ; 756896402570Smrg return 0; 756996402570Smrg} 757096402570Smrg_ACEOF 757196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 757296402570Smrg eval $cacheid=yes 757396402570Smrgelse 757496402570Smrg eval $cacheid=no 757596402570Smrgfi 757696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 757796402570Smrg conftest$ac_exeext conftest.$ac_ext 757896402570Smrgfi 757996402570Smrg 758096402570Smrg 758196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758296402570Smrg 758396402570Smrg eval supported=\$$cacheid 758496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 758596402570Smrg$as_echo "$supported" >&6; } 758696402570Smrg if test "$supported" = "yes" ; then 758796402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 758896402570Smrg found="yes" 758996402570Smrg fi 759096402570Smrg fi 759196402570Smrg 759296402570Smrg 759396402570Smrg 759496402570Smrg 759596402570Smrg 759696402570Smrg 759796402570Smrg 759896402570Smrg 759996402570Smrg 760096402570Smrg 760196402570Smrg 760296402570Smrg 760396402570Smrg 760496402570Smrg 760596402570Smrg 760696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 760796402570Smrg 760896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 760996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 761096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 761196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 761296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 761396402570Smrg $as_echo_n "(cached) " >&6 761496402570Smrgelse 761596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 761696402570Smrg/* end confdefs.h. */ 761796402570Smrgint i; 761896402570Smrg_ACEOF 761996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 762096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 762196402570Smrgelse 762296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 762396402570Smrgfi 762496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 762596402570Smrgfi 762696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 762796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 762896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 762996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 763096402570Smrgfi 763196402570Smrg 763296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 763396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 763496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 763596402570Smrg fi 763696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 763796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 763896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 763996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 764096402570Smrg $as_echo_n "(cached) " >&6 764196402570Smrgelse 764296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 764396402570Smrg/* end confdefs.h. */ 764496402570Smrgint i; 764596402570Smrg_ACEOF 764696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 764796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 764896402570Smrgelse 764996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 765096402570Smrgfi 765196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 765296402570Smrgfi 765396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 765496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 765596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 765696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 765796402570Smrgfi 765896402570Smrg 765996402570Smrgfound="no" 766096402570Smrg 766196402570Smrg if test $found = "no" ; then 766296402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 766396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 766496402570Smrg fi 766596402570Smrg 766696402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 766796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 766896402570Smrg fi 766996402570Smrg 767096402570Smrg CFLAGS="$CFLAGS -Werror=return-type" 767196402570Smrg 767296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 767396402570Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 767496402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 767596402570Smrg if eval \${$cacheid+:} false; then : 767696402570Smrg $as_echo_n "(cached) " >&6 767796402570Smrgelse 767896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 767996402570Smrg/* end confdefs.h. */ 768096402570Smrgint i; 768196402570Smrgint 768296402570Smrgmain () 768396402570Smrg{ 768496402570Smrg 768596402570Smrg ; 768696402570Smrg return 0; 768796402570Smrg} 768896402570Smrg_ACEOF 768996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 769096402570Smrg eval $cacheid=yes 769196402570Smrgelse 769296402570Smrg eval $cacheid=no 769396402570Smrgfi 769496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 769596402570Smrg conftest$ac_exeext conftest.$ac_ext 769696402570Smrgfi 769796402570Smrg 769896402570Smrg 769996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 770096402570Smrg 770196402570Smrg eval supported=\$$cacheid 770296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 770396402570Smrg$as_echo "$supported" >&6; } 770496402570Smrg if test "$supported" = "yes" ; then 770596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 770696402570Smrg found="yes" 770796402570Smrg fi 770896402570Smrg fi 770996402570Smrg 771096402570Smrg if test $found = "no" ; then 771196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 771296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 771396402570Smrg fi 771496402570Smrg 771596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 771696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 771796402570Smrg fi 771896402570Smrg 771996402570Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 772096402570Smrg 772196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 772296402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 772396402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 772496402570Smrg if eval \${$cacheid+:} false; then : 772596402570Smrg $as_echo_n "(cached) " >&6 772696402570Smrgelse 772796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 772896402570Smrg/* end confdefs.h. */ 772996402570Smrgint i; 773096402570Smrgint 773196402570Smrgmain () 773296402570Smrg{ 773396402570Smrg 773496402570Smrg ; 773596402570Smrg return 0; 773696402570Smrg} 773796402570Smrg_ACEOF 773896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 773996402570Smrg eval $cacheid=yes 774096402570Smrgelse 774196402570Smrg eval $cacheid=no 774296402570Smrgfi 774396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 774496402570Smrg conftest$ac_exeext conftest.$ac_ext 774596402570Smrgfi 774696402570Smrg 774796402570Smrg 774896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 774996402570Smrg 775096402570Smrg eval supported=\$$cacheid 775196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 775296402570Smrg$as_echo "$supported" >&6; } 775396402570Smrg if test "$supported" = "yes" ; then 775496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 775596402570Smrg found="yes" 775696402570Smrg fi 775796402570Smrg fi 775896402570Smrg 775996402570Smrg 776096402570Smrg 776196402570Smrg 776296402570Smrg 776396402570Smrg 776496402570Smrg 776596402570Smrg 776696402570Smrg 776796402570Smrg 776896402570Smrg 776996402570Smrg 777096402570Smrg 777196402570Smrg 777296402570Smrg 777396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 777496402570Smrg 777596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 777696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 777796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 777896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 777996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 778096402570Smrg $as_echo_n "(cached) " >&6 778196402570Smrgelse 778296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 778396402570Smrg/* end confdefs.h. */ 778496402570Smrgint i; 778596402570Smrg_ACEOF 778696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 778796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 778896402570Smrgelse 778996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 779096402570Smrgfi 779196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 779296402570Smrgfi 779396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 779496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 779596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 779696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 779796402570Smrgfi 779896402570Smrg 779996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 780096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 780196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 780296402570Smrg fi 780396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 780496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 780596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 780696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 780796402570Smrg $as_echo_n "(cached) " >&6 780896402570Smrgelse 780996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 781096402570Smrg/* end confdefs.h. */ 781196402570Smrgint i; 781296402570Smrg_ACEOF 781396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 781496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 781596402570Smrgelse 781696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 781796402570Smrgfi 781896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 781996402570Smrgfi 782096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 782196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 782296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 782396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 782496402570Smrgfi 782596402570Smrg 782696402570Smrgfound="no" 782796402570Smrg 782896402570Smrg if test $found = "no" ; then 782996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 783096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 783196402570Smrg fi 783296402570Smrg 783396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 783496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 783596402570Smrg fi 783696402570Smrg 783796402570Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 783896402570Smrg 783996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 784096402570Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 784196402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 784296402570Smrg if eval \${$cacheid+:} false; then : 784396402570Smrg $as_echo_n "(cached) " >&6 784496402570Smrgelse 784596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 784696402570Smrg/* end confdefs.h. */ 784796402570Smrgint i; 784896402570Smrgint 784996402570Smrgmain () 785096402570Smrg{ 785196402570Smrg 785296402570Smrg ; 785396402570Smrg return 0; 785496402570Smrg} 785596402570Smrg_ACEOF 785696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 785796402570Smrg eval $cacheid=yes 785896402570Smrgelse 785996402570Smrg eval $cacheid=no 786096402570Smrgfi 786196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 786296402570Smrg conftest$ac_exeext conftest.$ac_ext 786396402570Smrgfi 786496402570Smrg 786596402570Smrg 786696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786796402570Smrg 786896402570Smrg eval supported=\$$cacheid 786996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 787096402570Smrg$as_echo "$supported" >&6; } 787196402570Smrg if test "$supported" = "yes" ; then 787296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 787396402570Smrg found="yes" 787496402570Smrg fi 787596402570Smrg fi 787696402570Smrg 787796402570Smrg 787896402570Smrg 787996402570Smrg 788096402570Smrg 788196402570Smrg 788296402570Smrg 788396402570Smrg 788496402570Smrg 788596402570Smrg 788696402570Smrg 788796402570Smrg 788896402570Smrg 788996402570Smrg 789096402570Smrg 789196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 789296402570Smrg 789396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 789496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 789596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 789696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 789796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 789896402570Smrg $as_echo_n "(cached) " >&6 789996402570Smrgelse 790096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 790196402570Smrg/* end confdefs.h. */ 790296402570Smrgint i; 790396402570Smrg_ACEOF 790496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 790596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 790696402570Smrgelse 790796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 790896402570Smrgfi 790996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 791096402570Smrgfi 791196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 791296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 791396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 791496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 791596402570Smrgfi 791696402570Smrg 791796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 791896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 791996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 792096402570Smrg fi 792196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 792296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 792396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 792496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 792596402570Smrg $as_echo_n "(cached) " >&6 792696402570Smrgelse 792796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 792896402570Smrg/* end confdefs.h. */ 792996402570Smrgint i; 793096402570Smrg_ACEOF 793196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 793296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 793396402570Smrgelse 793496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 793596402570Smrgfi 793696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 793796402570Smrgfi 793896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 793996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 794096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 794196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 794296402570Smrgfi 794396402570Smrg 794496402570Smrgfound="no" 794596402570Smrg 794696402570Smrg if test $found = "no" ; then 794796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 794896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 794996402570Smrg fi 795096402570Smrg 795196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 795296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 795396402570Smrg fi 795496402570Smrg 795596402570Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 795696402570Smrg 795796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 795896402570Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 795996402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 796096402570Smrg if eval \${$cacheid+:} false; then : 796196402570Smrg $as_echo_n "(cached) " >&6 796296402570Smrgelse 796396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 796496402570Smrg/* end confdefs.h. */ 796596402570Smrgint i; 796696402570Smrgint 796796402570Smrgmain () 796896402570Smrg{ 796996402570Smrg 797096402570Smrg ; 797196402570Smrg return 0; 797296402570Smrg} 797396402570Smrg_ACEOF 797496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 797596402570Smrg eval $cacheid=yes 797696402570Smrgelse 797796402570Smrg eval $cacheid=no 797896402570Smrgfi 797996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 798096402570Smrg conftest$ac_exeext conftest.$ac_ext 798196402570Smrgfi 798296402570Smrg 798396402570Smrg 798496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798596402570Smrg 798696402570Smrg eval supported=\$$cacheid 798796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 798896402570Smrg$as_echo "$supported" >&6; } 798996402570Smrg if test "$supported" = "yes" ; then 799096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 799196402570Smrg found="yes" 799296402570Smrg fi 799396402570Smrg fi 799496402570Smrg 799596402570Smrg 799696402570Smrg 799796402570Smrg 799896402570Smrg 799996402570Smrg 800096402570Smrg 800196402570Smrg 800296402570Smrg 800396402570Smrg 800496402570Smrg 800596402570Smrg 800696402570Smrg 800796402570Smrg 800896402570Smrg 800996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 801096402570Smrg 801196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 801296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 801396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 801496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 801596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 801696402570Smrg $as_echo_n "(cached) " >&6 801796402570Smrgelse 801896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 801996402570Smrg/* end confdefs.h. */ 802096402570Smrgint i; 802196402570Smrg_ACEOF 802296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 802396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 802496402570Smrgelse 802596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 802696402570Smrgfi 802796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 802896402570Smrgfi 802996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 803096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 803196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 803296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 803396402570Smrgfi 803496402570Smrg 803596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 803696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 803796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 803896402570Smrg fi 803996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 804096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 804196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 804296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 804396402570Smrg $as_echo_n "(cached) " >&6 804496402570Smrgelse 804596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 804696402570Smrg/* end confdefs.h. */ 804796402570Smrgint i; 804896402570Smrg_ACEOF 804996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 805096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 805196402570Smrgelse 805296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 805396402570Smrgfi 805496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 805596402570Smrgfi 805696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 805796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 805896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 805996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 806096402570Smrgfi 806196402570Smrg 806296402570Smrgfound="no" 806396402570Smrg 806496402570Smrg if test $found = "no" ; then 806596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 806696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 806796402570Smrg fi 806896402570Smrg 806996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 807096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 807196402570Smrg fi 807296402570Smrg 807396402570Smrg CFLAGS="$CFLAGS -Werror=write-strings" 807496402570Smrg 807596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 807696402570Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 807796402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 807896402570Smrg if eval \${$cacheid+:} false; then : 807996402570Smrg $as_echo_n "(cached) " >&6 808096402570Smrgelse 808196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 808296402570Smrg/* end confdefs.h. */ 808396402570Smrgint i; 808496402570Smrgint 808596402570Smrgmain () 808696402570Smrg{ 808796402570Smrg 808896402570Smrg ; 808996402570Smrg return 0; 809096402570Smrg} 809196402570Smrg_ACEOF 809296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 809396402570Smrg eval $cacheid=yes 809496402570Smrgelse 809596402570Smrg eval $cacheid=no 809696402570Smrgfi 809796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 809896402570Smrg conftest$ac_exeext conftest.$ac_ext 809996402570Smrgfi 810096402570Smrg 810196402570Smrg 810296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810396402570Smrg 810496402570Smrg eval supported=\$$cacheid 810596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 810696402570Smrg$as_echo "$supported" >&6; } 810796402570Smrg if test "$supported" = "yes" ; then 810896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 810996402570Smrg found="yes" 811096402570Smrg fi 811196402570Smrg fi 811296402570Smrg 811396402570Smrg 811496402570Smrg 811596402570Smrg 811696402570Smrg 811796402570Smrg 811896402570Smrg 811996402570Smrg 812096402570Smrg 812196402570Smrg 812296402570Smrg 812396402570Smrg 812496402570Smrg 812596402570Smrg 812696402570Smrg 812796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 812896402570Smrg 812996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 813096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 813196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 813296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 813396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 813496402570Smrg $as_echo_n "(cached) " >&6 813596402570Smrgelse 813696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 813796402570Smrg/* end confdefs.h. */ 813896402570Smrgint i; 813996402570Smrg_ACEOF 814096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 814196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 814296402570Smrgelse 814396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 814496402570Smrgfi 814596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 814696402570Smrgfi 814796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 814896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 814996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 815096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 815196402570Smrgfi 815296402570Smrg 815396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 815496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 815596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 815696402570Smrg fi 815796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 815896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 815996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 816096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 816196402570Smrg $as_echo_n "(cached) " >&6 816296402570Smrgelse 816396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 816496402570Smrg/* end confdefs.h. */ 816596402570Smrgint i; 816696402570Smrg_ACEOF 816796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 816896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 816996402570Smrgelse 817096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 817196402570Smrgfi 817296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 817396402570Smrgfi 817496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 817596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 817696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 817796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 817896402570Smrgfi 817996402570Smrg 818096402570Smrgfound="no" 818196402570Smrg 818296402570Smrg if test $found = "no" ; then 818396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 818496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 818596402570Smrg fi 818696402570Smrg 818796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 818896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 818996402570Smrg fi 819096402570Smrg 819196402570Smrg CFLAGS="$CFLAGS -Werror=address" 819296402570Smrg 819396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 819496402570Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 819596402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 819696402570Smrg if eval \${$cacheid+:} false; then : 819796402570Smrg $as_echo_n "(cached) " >&6 819896402570Smrgelse 819996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820096402570Smrg/* end confdefs.h. */ 820196402570Smrgint i; 820296402570Smrgint 820396402570Smrgmain () 820496402570Smrg{ 820596402570Smrg 820696402570Smrg ; 820796402570Smrg return 0; 820896402570Smrg} 820996402570Smrg_ACEOF 821096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 821196402570Smrg eval $cacheid=yes 821296402570Smrgelse 821396402570Smrg eval $cacheid=no 821496402570Smrgfi 821596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 821696402570Smrg conftest$ac_exeext conftest.$ac_ext 821796402570Smrgfi 821896402570Smrg 821996402570Smrg 822096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 822196402570Smrg 822296402570Smrg eval supported=\$$cacheid 822396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 822496402570Smrg$as_echo "$supported" >&6; } 822596402570Smrg if test "$supported" = "yes" ; then 822696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 822796402570Smrg found="yes" 822896402570Smrg fi 822996402570Smrg fi 823096402570Smrg 823196402570Smrg 823296402570Smrg 823396402570Smrg 823496402570Smrg 823596402570Smrg 823696402570Smrg 823796402570Smrg 823896402570Smrg 823996402570Smrg 824096402570Smrg 824196402570Smrg 824296402570Smrg 824396402570Smrg 824496402570Smrg 824596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 824696402570Smrg 824796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 824896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 824996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 825096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 825196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 825296402570Smrg $as_echo_n "(cached) " >&6 825396402570Smrgelse 825496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 825596402570Smrg/* end confdefs.h. */ 825696402570Smrgint i; 825796402570Smrg_ACEOF 825896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 825996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 826096402570Smrgelse 826196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 826296402570Smrgfi 826396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 826496402570Smrgfi 826596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 826696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 826796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 826896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 826996402570Smrgfi 827096402570Smrg 827196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 827296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 827396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 827496402570Smrg fi 827596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 827696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 827796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 827896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 827996402570Smrg $as_echo_n "(cached) " >&6 828096402570Smrgelse 828196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 828296402570Smrg/* end confdefs.h. */ 828396402570Smrgint i; 828496402570Smrg_ACEOF 828596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 828696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 828796402570Smrgelse 828896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 828996402570Smrgfi 829096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 829196402570Smrgfi 829296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 829396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 829496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 829596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 829696402570Smrgfi 829796402570Smrg 829896402570Smrgfound="no" 829996402570Smrg 830096402570Smrg if test $found = "no" ; then 830196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 830296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 830396402570Smrg fi 830496402570Smrg 830596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 830696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 830796402570Smrg fi 830896402570Smrg 830996402570Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 831096402570Smrg 831196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 831296402570Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 831396402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 831496402570Smrg if eval \${$cacheid+:} false; then : 831596402570Smrg $as_echo_n "(cached) " >&6 831696402570Smrgelse 831796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 831896402570Smrg/* end confdefs.h. */ 831996402570Smrgint i; 832096402570Smrgint 832196402570Smrgmain () 832296402570Smrg{ 832396402570Smrg 832496402570Smrg ; 832596402570Smrg return 0; 832696402570Smrg} 832796402570Smrg_ACEOF 832896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 832996402570Smrg eval $cacheid=yes 833096402570Smrgelse 833196402570Smrg eval $cacheid=no 833296402570Smrgfi 833396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 833496402570Smrg conftest$ac_exeext conftest.$ac_ext 833596402570Smrgfi 833696402570Smrg 833796402570Smrg 833896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 833996402570Smrg 834096402570Smrg eval supported=\$$cacheid 834196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 834296402570Smrg$as_echo "$supported" >&6; } 834396402570Smrg if test "$supported" = "yes" ; then 834496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 834596402570Smrg found="yes" 834696402570Smrg fi 834796402570Smrg fi 834896402570Smrg 834996402570Smrg if test $found = "no" ; then 835096402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 835196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 835296402570Smrg fi 835396402570Smrg 835496402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 835596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 835696402570Smrg fi 835796402570Smrg 835896402570Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 835996402570Smrg 836096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 836196402570Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 836296402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 836396402570Smrg if eval \${$cacheid+:} false; then : 836496402570Smrg $as_echo_n "(cached) " >&6 836596402570Smrgelse 836696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 836796402570Smrg/* end confdefs.h. */ 836896402570Smrgint i; 836996402570Smrgint 837096402570Smrgmain () 837196402570Smrg{ 837296402570Smrg 837396402570Smrg ; 837496402570Smrg return 0; 837596402570Smrg} 837696402570Smrg_ACEOF 837796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 837896402570Smrg eval $cacheid=yes 837996402570Smrgelse 838096402570Smrg eval $cacheid=no 838196402570Smrgfi 838296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 838396402570Smrg conftest$ac_exeext conftest.$ac_ext 838496402570Smrgfi 838596402570Smrg 838696402570Smrg 838796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 838896402570Smrg 838996402570Smrg eval supported=\$$cacheid 839096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 839196402570Smrg$as_echo "$supported" >&6; } 839296402570Smrg if test "$supported" = "yes" ; then 839396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 839496402570Smrg found="yes" 839596402570Smrg fi 839696402570Smrg fi 839796402570Smrg 839896402570Smrg 839996402570Smrg 840096402570Smrg 840196402570Smrg 840296402570Smrg 840396402570Smrg 840496402570Smrg 840596402570Smrg 840696402570Smrg 840796402570Smrg 840896402570Smrg 840996402570Smrg 841096402570Smrg 841196402570Smrg 841296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 841396402570Smrg 841496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 841596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 841696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 841796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 841896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 841996402570Smrg $as_echo_n "(cached) " >&6 842096402570Smrgelse 842196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 842296402570Smrg/* end confdefs.h. */ 842396402570Smrgint i; 842496402570Smrg_ACEOF 842596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 842696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 842796402570Smrgelse 842896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 842996402570Smrgfi 843096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 843196402570Smrgfi 843296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 843396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 843496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 843596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 843696402570Smrgfi 843796402570Smrg 843896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 843996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 844096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 844196402570Smrg fi 844296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 844396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 844496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 844596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 844696402570Smrg $as_echo_n "(cached) " >&6 844796402570Smrgelse 844896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 844996402570Smrg/* end confdefs.h. */ 845096402570Smrgint i; 845196402570Smrg_ACEOF 845296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 845396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 845496402570Smrgelse 845596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 845696402570Smrgfi 845796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 845896402570Smrgfi 845996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 846096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 846196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 846296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 846396402570Smrgfi 846496402570Smrg 846596402570Smrgfound="no" 846696402570Smrg 846796402570Smrg if test $found = "no" ; then 846896402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 846996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 847096402570Smrg fi 847196402570Smrg 847296402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 847396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 847496402570Smrg fi 847596402570Smrg 847696402570Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 847796402570Smrg 847896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 847996402570Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 848096402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 848196402570Smrg if eval \${$cacheid+:} false; then : 848296402570Smrg $as_echo_n "(cached) " >&6 848396402570Smrgelse 848496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 848596402570Smrg/* end confdefs.h. */ 848696402570Smrgint i; 848796402570Smrgint 848896402570Smrgmain () 848996402570Smrg{ 849096402570Smrg 849196402570Smrg ; 849296402570Smrg return 0; 849396402570Smrg} 849496402570Smrg_ACEOF 849596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 849696402570Smrg eval $cacheid=yes 849796402570Smrgelse 849896402570Smrg eval $cacheid=no 849996402570Smrgfi 850096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 850196402570Smrg conftest$ac_exeext conftest.$ac_ext 850296402570Smrgfi 850396402570Smrg 850496402570Smrg 850596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 850696402570Smrg 850796402570Smrg eval supported=\$$cacheid 850896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 850996402570Smrg$as_echo "$supported" >&6; } 851096402570Smrg if test "$supported" = "yes" ; then 851196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 851296402570Smrg found="yes" 851396402570Smrg fi 851496402570Smrg fi 851596402570Smrg 851696402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 851796402570Smrgelse 851896402570Smrg{ $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 851996402570Smrg$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;} 852096402570Smrg 852196402570Smrg 852296402570Smrg 852396402570Smrg 852496402570Smrg 852596402570Smrg 852696402570Smrg 852796402570Smrg 852896402570Smrg 852996402570Smrg 853096402570Smrg 853196402570Smrg 853296402570Smrg 853396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 853496402570Smrg 853596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 853696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 853796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 853896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 853996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 854096402570Smrg $as_echo_n "(cached) " >&6 854196402570Smrgelse 854296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 854396402570Smrg/* end confdefs.h. */ 854496402570Smrgint i; 854596402570Smrg_ACEOF 854696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 854796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 854896402570Smrgelse 854996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 855096402570Smrgfi 855196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 855296402570Smrgfi 855396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 855496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 855596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 855696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 855796402570Smrgfi 855896402570Smrg 855996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 856096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 856196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 856296402570Smrg fi 856396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 856496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 856596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 856696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 856796402570Smrg $as_echo_n "(cached) " >&6 856896402570Smrgelse 856996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 857096402570Smrg/* end confdefs.h. */ 857196402570Smrgint i; 857296402570Smrg_ACEOF 857396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 857496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 857596402570Smrgelse 857696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 857796402570Smrgfi 857896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 857996402570Smrgfi 858096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 858196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 858296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 858396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 858496402570Smrgfi 858596402570Smrg 858696402570Smrgfound="no" 858796402570Smrg 858896402570Smrg if test $found = "no" ; then 858996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 859096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 859196402570Smrg fi 859296402570Smrg 859396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 859496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 859596402570Smrg fi 859696402570Smrg 859796402570Smrg CFLAGS="$CFLAGS -Wimplicit" 859896402570Smrg 859996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 860096402570Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 860196402570Smrg cacheid=xorg_cv_cc_flag__Wimplicit 860296402570Smrg if eval \${$cacheid+:} false; then : 860396402570Smrg $as_echo_n "(cached) " >&6 860496402570Smrgelse 860596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 860696402570Smrg/* end confdefs.h. */ 860796402570Smrgint i; 860896402570Smrgint 860996402570Smrgmain () 861096402570Smrg{ 861196402570Smrg 861296402570Smrg ; 861396402570Smrg return 0; 861496402570Smrg} 861596402570Smrg_ACEOF 861696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 861796402570Smrg eval $cacheid=yes 861896402570Smrgelse 861996402570Smrg eval $cacheid=no 862096402570Smrgfi 862196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 862296402570Smrg conftest$ac_exeext conftest.$ac_ext 862396402570Smrgfi 862496402570Smrg 862596402570Smrg 862696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862796402570Smrg 862896402570Smrg eval supported=\$$cacheid 862996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 863096402570Smrg$as_echo "$supported" >&6; } 863196402570Smrg if test "$supported" = "yes" ; then 863296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 863396402570Smrg found="yes" 863496402570Smrg fi 863596402570Smrg fi 863696402570Smrg 863796402570Smrg 863896402570Smrg 863996402570Smrg 864096402570Smrg 864196402570Smrg 864296402570Smrg 864396402570Smrg 864496402570Smrg 864596402570Smrg 864696402570Smrg 864796402570Smrg 864896402570Smrg 864996402570Smrg 865096402570Smrg 865196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 865296402570Smrg 865396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 865496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 865596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 865696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 865796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 865896402570Smrg $as_echo_n "(cached) " >&6 865996402570Smrgelse 866096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 866196402570Smrg/* end confdefs.h. */ 866296402570Smrgint i; 866396402570Smrg_ACEOF 866496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 866596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 866696402570Smrgelse 866796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 866896402570Smrgfi 866996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 867096402570Smrgfi 867196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 867296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 867396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 867496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867596402570Smrgfi 867696402570Smrg 867796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 867896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 867996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 868096402570Smrg fi 868196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 868296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 868396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 868496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 868596402570Smrg $as_echo_n "(cached) " >&6 868696402570Smrgelse 868796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 868896402570Smrg/* end confdefs.h. */ 868996402570Smrgint i; 869096402570Smrg_ACEOF 869196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 869296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 869396402570Smrgelse 869496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 869596402570Smrgfi 869696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 869796402570Smrgfi 869896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 869996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 870096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 870196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 870296402570Smrgfi 870396402570Smrg 870496402570Smrgfound="no" 870596402570Smrg 870696402570Smrg if test $found = "no" ; then 870796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 870896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 870996402570Smrg fi 871096402570Smrg 871196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 871296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 871396402570Smrg fi 871496402570Smrg 871596402570Smrg CFLAGS="$CFLAGS -Wnonnull" 871696402570Smrg 871796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 871896402570Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 871996402570Smrg cacheid=xorg_cv_cc_flag__Wnonnull 872096402570Smrg if eval \${$cacheid+:} false; then : 872196402570Smrg $as_echo_n "(cached) " >&6 872296402570Smrgelse 872396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872496402570Smrg/* end confdefs.h. */ 872596402570Smrgint i; 872696402570Smrgint 872796402570Smrgmain () 872896402570Smrg{ 872996402570Smrg 873096402570Smrg ; 873196402570Smrg return 0; 873296402570Smrg} 873396402570Smrg_ACEOF 873496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 873596402570Smrg eval $cacheid=yes 873696402570Smrgelse 873796402570Smrg eval $cacheid=no 873896402570Smrgfi 873996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 874096402570Smrg conftest$ac_exeext conftest.$ac_ext 874196402570Smrgfi 874296402570Smrg 874396402570Smrg 874496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874596402570Smrg 874696402570Smrg eval supported=\$$cacheid 874796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 874896402570Smrg$as_echo "$supported" >&6; } 874996402570Smrg if test "$supported" = "yes" ; then 875096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 875196402570Smrg found="yes" 875296402570Smrg fi 875396402570Smrg fi 875496402570Smrg 875596402570Smrg 875696402570Smrg 875796402570Smrg 875896402570Smrg 875996402570Smrg 876096402570Smrg 876196402570Smrg 876296402570Smrg 876396402570Smrg 876496402570Smrg 876596402570Smrg 876696402570Smrg 876796402570Smrg 876896402570Smrg 876996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 877096402570Smrg 877196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 877296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 877396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 877496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 877596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 877696402570Smrg $as_echo_n "(cached) " >&6 877796402570Smrgelse 877896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 877996402570Smrg/* end confdefs.h. */ 878096402570Smrgint i; 878196402570Smrg_ACEOF 878296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 878396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 878496402570Smrgelse 878596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 878696402570Smrgfi 878796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 878896402570Smrgfi 878996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 879096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 879196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 879296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 879396402570Smrgfi 879496402570Smrg 879596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 879696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 879796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 879896402570Smrg fi 879996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 880096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 880196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 880296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 880396402570Smrg $as_echo_n "(cached) " >&6 880496402570Smrgelse 880596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 880696402570Smrg/* end confdefs.h. */ 880796402570Smrgint i; 880896402570Smrg_ACEOF 880996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 881096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 881196402570Smrgelse 881296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 881396402570Smrgfi 881496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 881596402570Smrgfi 881696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 881796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 881896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 881996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 882096402570Smrgfi 882196402570Smrg 882296402570Smrgfound="no" 882396402570Smrg 882496402570Smrg if test $found = "no" ; then 882596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 882696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 882796402570Smrg fi 882896402570Smrg 882996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 883096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 883196402570Smrg fi 883296402570Smrg 883396402570Smrg CFLAGS="$CFLAGS -Winit-self" 883496402570Smrg 883596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 883696402570Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 883796402570Smrg cacheid=xorg_cv_cc_flag__Winit_self 883896402570Smrg if eval \${$cacheid+:} false; then : 883996402570Smrg $as_echo_n "(cached) " >&6 884096402570Smrgelse 884196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 884296402570Smrg/* end confdefs.h. */ 884396402570Smrgint i; 884496402570Smrgint 884596402570Smrgmain () 884696402570Smrg{ 884796402570Smrg 884896402570Smrg ; 884996402570Smrg return 0; 885096402570Smrg} 885196402570Smrg_ACEOF 885296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 885396402570Smrg eval $cacheid=yes 885496402570Smrgelse 885596402570Smrg eval $cacheid=no 885696402570Smrgfi 885796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 885896402570Smrg conftest$ac_exeext conftest.$ac_ext 885996402570Smrgfi 886096402570Smrg 886196402570Smrg 886296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886396402570Smrg 886496402570Smrg eval supported=\$$cacheid 886596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 886696402570Smrg$as_echo "$supported" >&6; } 886796402570Smrg if test "$supported" = "yes" ; then 886896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 886996402570Smrg found="yes" 887096402570Smrg fi 887196402570Smrg fi 887296402570Smrg 887396402570Smrg 887496402570Smrg 887596402570Smrg 887696402570Smrg 887796402570Smrg 887896402570Smrg 887996402570Smrg 888096402570Smrg 888196402570Smrg 888296402570Smrg 888396402570Smrg 888496402570Smrg 888596402570Smrg 888696402570Smrg 888796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 888896402570Smrg 888996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 889096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 889196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 889296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 889396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 889496402570Smrg $as_echo_n "(cached) " >&6 889596402570Smrgelse 889696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 889796402570Smrg/* end confdefs.h. */ 889896402570Smrgint i; 889996402570Smrg_ACEOF 890096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 890196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 890296402570Smrgelse 890396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 890496402570Smrgfi 890596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 890696402570Smrgfi 890796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 890896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 890996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 891096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 891196402570Smrgfi 891296402570Smrg 891396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 891496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 891596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 891696402570Smrg fi 891796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 891896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 891996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 892096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 892196402570Smrg $as_echo_n "(cached) " >&6 892296402570Smrgelse 892396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 892496402570Smrg/* end confdefs.h. */ 892596402570Smrgint i; 892696402570Smrg_ACEOF 892796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 892896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 892996402570Smrgelse 893096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 893196402570Smrgfi 893296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 893396402570Smrgfi 893496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 893596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 893696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 893796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 893896402570Smrgfi 893996402570Smrg 894096402570Smrgfound="no" 894196402570Smrg 894296402570Smrg if test $found = "no" ; then 894396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 894496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 894596402570Smrg fi 894696402570Smrg 894796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 894896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 894996402570Smrg fi 895096402570Smrg 895196402570Smrg CFLAGS="$CFLAGS -Wmain" 895296402570Smrg 895396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 895496402570Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; } 895596402570Smrg cacheid=xorg_cv_cc_flag__Wmain 895696402570Smrg if eval \${$cacheid+:} false; then : 895796402570Smrg $as_echo_n "(cached) " >&6 895896402570Smrgelse 895996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 896096402570Smrg/* end confdefs.h. */ 896196402570Smrgint i; 896296402570Smrgint 896396402570Smrgmain () 896496402570Smrg{ 896596402570Smrg 896696402570Smrg ; 896796402570Smrg return 0; 896896402570Smrg} 896996402570Smrg_ACEOF 897096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 897196402570Smrg eval $cacheid=yes 897296402570Smrgelse 897396402570Smrg eval $cacheid=no 897496402570Smrgfi 897596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 897696402570Smrg conftest$ac_exeext conftest.$ac_ext 897796402570Smrgfi 897896402570Smrg 897996402570Smrg 898096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 898196402570Smrg 898296402570Smrg eval supported=\$$cacheid 898396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 898496402570Smrg$as_echo "$supported" >&6; } 898596402570Smrg if test "$supported" = "yes" ; then 898696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 898796402570Smrg found="yes" 898896402570Smrg fi 898996402570Smrg fi 899096402570Smrg 899196402570Smrg 899296402570Smrg 899396402570Smrg 899496402570Smrg 899596402570Smrg 899696402570Smrg 899796402570Smrg 899896402570Smrg 899996402570Smrg 900096402570Smrg 900196402570Smrg 900296402570Smrg 900396402570Smrg 900496402570Smrg 900596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 900696402570Smrg 900796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 900896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 900996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 901096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 901196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 901296402570Smrg $as_echo_n "(cached) " >&6 901396402570Smrgelse 901496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 901596402570Smrg/* end confdefs.h. */ 901696402570Smrgint i; 901796402570Smrg_ACEOF 901896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 901996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 902096402570Smrgelse 902196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 902296402570Smrgfi 902396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 902496402570Smrgfi 902596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 902696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 902796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 902896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902996402570Smrgfi 903096402570Smrg 903196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 903296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 903396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 903496402570Smrg fi 903596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 903696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 903796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 903896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 903996402570Smrg $as_echo_n "(cached) " >&6 904096402570Smrgelse 904196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 904296402570Smrg/* end confdefs.h. */ 904396402570Smrgint i; 904496402570Smrg_ACEOF 904596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 904696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 904796402570Smrgelse 904896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 904996402570Smrgfi 905096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 905196402570Smrgfi 905296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 905396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 905496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 905596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 905696402570Smrgfi 905796402570Smrg 905896402570Smrgfound="no" 905996402570Smrg 906096402570Smrg if test $found = "no" ; then 906196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 906296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 906396402570Smrg fi 906496402570Smrg 906596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 906696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 906796402570Smrg fi 906896402570Smrg 906996402570Smrg CFLAGS="$CFLAGS -Wmissing-braces" 907096402570Smrg 907196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 907296402570Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 907396402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 907496402570Smrg if eval \${$cacheid+:} false; then : 907596402570Smrg $as_echo_n "(cached) " >&6 907696402570Smrgelse 907796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 907896402570Smrg/* end confdefs.h. */ 907996402570Smrgint i; 908096402570Smrgint 908196402570Smrgmain () 908296402570Smrg{ 908396402570Smrg 908496402570Smrg ; 908596402570Smrg return 0; 908696402570Smrg} 908796402570Smrg_ACEOF 908896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 908996402570Smrg eval $cacheid=yes 909096402570Smrgelse 909196402570Smrg eval $cacheid=no 909296402570Smrgfi 909396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 909496402570Smrg conftest$ac_exeext conftest.$ac_ext 909596402570Smrgfi 909696402570Smrg 909796402570Smrg 909896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 909996402570Smrg 910096402570Smrg eval supported=\$$cacheid 910196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 910296402570Smrg$as_echo "$supported" >&6; } 910396402570Smrg if test "$supported" = "yes" ; then 910496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 910596402570Smrg found="yes" 910696402570Smrg fi 910796402570Smrg fi 910896402570Smrg 910996402570Smrg 911096402570Smrg 911196402570Smrg 911296402570Smrg 911396402570Smrg 911496402570Smrg 911596402570Smrg 911696402570Smrg 911796402570Smrg 911896402570Smrg 911996402570Smrg 912096402570Smrg 912196402570Smrg 912296402570Smrg 912396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 912496402570Smrg 912596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 912696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 912796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 912896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 912996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 913096402570Smrg $as_echo_n "(cached) " >&6 913196402570Smrgelse 913296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 913396402570Smrg/* end confdefs.h. */ 913496402570Smrgint i; 913596402570Smrg_ACEOF 913696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 913796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 913896402570Smrgelse 913996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 914096402570Smrgfi 914196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 914296402570Smrgfi 914396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 914496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 914596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 914696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 914796402570Smrgfi 914896402570Smrg 914996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 915096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 915196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 915296402570Smrg fi 915396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 915496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 915596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 915696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 915796402570Smrg $as_echo_n "(cached) " >&6 915896402570Smrgelse 915996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 916096402570Smrg/* end confdefs.h. */ 916196402570Smrgint i; 916296402570Smrg_ACEOF 916396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 916496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 916596402570Smrgelse 916696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 916796402570Smrgfi 916896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 916996402570Smrgfi 917096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 917196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 917296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 917396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 917496402570Smrgfi 917596402570Smrg 917696402570Smrgfound="no" 917796402570Smrg 917896402570Smrg if test $found = "no" ; then 917996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 918096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 918196402570Smrg fi 918296402570Smrg 918396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 918496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 918596402570Smrg fi 918696402570Smrg 918796402570Smrg CFLAGS="$CFLAGS -Wsequence-point" 918896402570Smrg 918996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 919096402570Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 919196402570Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 919296402570Smrg if eval \${$cacheid+:} false; then : 919396402570Smrg $as_echo_n "(cached) " >&6 919496402570Smrgelse 919596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 919696402570Smrg/* end confdefs.h. */ 919796402570Smrgint i; 919896402570Smrgint 919996402570Smrgmain () 920096402570Smrg{ 920196402570Smrg 920296402570Smrg ; 920396402570Smrg return 0; 920496402570Smrg} 920596402570Smrg_ACEOF 920696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 920796402570Smrg eval $cacheid=yes 920896402570Smrgelse 920996402570Smrg eval $cacheid=no 921096402570Smrgfi 921196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 921296402570Smrg conftest$ac_exeext conftest.$ac_ext 921396402570Smrgfi 921496402570Smrg 921596402570Smrg 921696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 921796402570Smrg 921896402570Smrg eval supported=\$$cacheid 921996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 922096402570Smrg$as_echo "$supported" >&6; } 922196402570Smrg if test "$supported" = "yes" ; then 922296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 922396402570Smrg found="yes" 922496402570Smrg fi 922596402570Smrg fi 922696402570Smrg 922796402570Smrg 922896402570Smrg 922996402570Smrg 923096402570Smrg 923196402570Smrg 923296402570Smrg 923396402570Smrg 923496402570Smrg 923596402570Smrg 923696402570Smrg 923796402570Smrg 923896402570Smrg 923996402570Smrg 924096402570Smrg 924196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 924296402570Smrg 924396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 924496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 924596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 924696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 924796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 924896402570Smrg $as_echo_n "(cached) " >&6 924996402570Smrgelse 925096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 925196402570Smrg/* end confdefs.h. */ 925296402570Smrgint i; 925396402570Smrg_ACEOF 925496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 925596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 925696402570Smrgelse 925796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 925896402570Smrgfi 925996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 926096402570Smrgfi 926196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 926296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 926396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 926496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 926596402570Smrgfi 926696402570Smrg 926796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 926896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 926996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 927096402570Smrg fi 927196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 927296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 927396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 927496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 927596402570Smrg $as_echo_n "(cached) " >&6 927696402570Smrgelse 927796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 927896402570Smrg/* end confdefs.h. */ 927996402570Smrgint i; 928096402570Smrg_ACEOF 928196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 928296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 928396402570Smrgelse 928496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 928596402570Smrgfi 928696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 928796402570Smrgfi 928896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 928996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 929096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 929196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 929296402570Smrgfi 929396402570Smrg 929496402570Smrgfound="no" 929596402570Smrg 929696402570Smrg if test $found = "no" ; then 929796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 929896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 929996402570Smrg fi 930096402570Smrg 930196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 930296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 930396402570Smrg fi 930496402570Smrg 930596402570Smrg CFLAGS="$CFLAGS -Wreturn-type" 930696402570Smrg 930796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 930896402570Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 930996402570Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 931096402570Smrg if eval \${$cacheid+:} false; then : 931196402570Smrg $as_echo_n "(cached) " >&6 931296402570Smrgelse 931396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 931496402570Smrg/* end confdefs.h. */ 931596402570Smrgint i; 931696402570Smrgint 931796402570Smrgmain () 931896402570Smrg{ 931996402570Smrg 932096402570Smrg ; 932196402570Smrg return 0; 932296402570Smrg} 932396402570Smrg_ACEOF 932496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 932596402570Smrg eval $cacheid=yes 932696402570Smrgelse 932796402570Smrg eval $cacheid=no 932896402570Smrgfi 932996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 933096402570Smrg conftest$ac_exeext conftest.$ac_ext 933196402570Smrgfi 933296402570Smrg 933396402570Smrg 933496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933596402570Smrg 933696402570Smrg eval supported=\$$cacheid 933796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 933896402570Smrg$as_echo "$supported" >&6; } 933996402570Smrg if test "$supported" = "yes" ; then 934096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 934196402570Smrg found="yes" 934296402570Smrg fi 934396402570Smrg fi 934496402570Smrg 934596402570Smrg 934696402570Smrg 934796402570Smrg 934896402570Smrg 934996402570Smrg 935096402570Smrg 935196402570Smrg 935296402570Smrg 935396402570Smrg 935496402570Smrg 935596402570Smrg 935696402570Smrg 935796402570Smrg 935896402570Smrg 935996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 936096402570Smrg 936196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 936296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 936396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 936496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 936596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 936696402570Smrg $as_echo_n "(cached) " >&6 936796402570Smrgelse 936896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 936996402570Smrg/* end confdefs.h. */ 937096402570Smrgint i; 937196402570Smrg_ACEOF 937296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 937396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 937496402570Smrgelse 937596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 937696402570Smrgfi 937796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 937896402570Smrgfi 937996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 938096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 938196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 938296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 938396402570Smrgfi 938496402570Smrg 938596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 938696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 938796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 938896402570Smrg fi 938996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 939096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 939196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 939296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 939396402570Smrg $as_echo_n "(cached) " >&6 939496402570Smrgelse 939596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 939696402570Smrg/* end confdefs.h. */ 939796402570Smrgint i; 939896402570Smrg_ACEOF 939996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 940096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 940196402570Smrgelse 940296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 940396402570Smrgfi 940496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 940596402570Smrgfi 940696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 940796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 940896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 940996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 941096402570Smrgfi 941196402570Smrg 941296402570Smrgfound="no" 941396402570Smrg 941496402570Smrg if test $found = "no" ; then 941596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 941696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 941796402570Smrg fi 941896402570Smrg 941996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 942096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 942196402570Smrg fi 942296402570Smrg 942396402570Smrg CFLAGS="$CFLAGS -Wtrigraphs" 942496402570Smrg 942596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 942696402570Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 942796402570Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 942896402570Smrg if eval \${$cacheid+:} false; then : 942996402570Smrg $as_echo_n "(cached) " >&6 943096402570Smrgelse 943196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943296402570Smrg/* end confdefs.h. */ 943396402570Smrgint i; 943496402570Smrgint 943596402570Smrgmain () 943696402570Smrg{ 943796402570Smrg 943896402570Smrg ; 943996402570Smrg return 0; 944096402570Smrg} 944196402570Smrg_ACEOF 944296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 944396402570Smrg eval $cacheid=yes 944496402570Smrgelse 944596402570Smrg eval $cacheid=no 944696402570Smrgfi 944796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 944896402570Smrg conftest$ac_exeext conftest.$ac_ext 944996402570Smrgfi 945096402570Smrg 945196402570Smrg 945296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945396402570Smrg 945496402570Smrg eval supported=\$$cacheid 945596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 945696402570Smrg$as_echo "$supported" >&6; } 945796402570Smrg if test "$supported" = "yes" ; then 945896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 945996402570Smrg found="yes" 946096402570Smrg fi 946196402570Smrg fi 946296402570Smrg 946396402570Smrg 946496402570Smrg 946596402570Smrg 946696402570Smrg 946796402570Smrg 946896402570Smrg 946996402570Smrg 947096402570Smrg 947196402570Smrg 947296402570Smrg 947396402570Smrg 947496402570Smrg 947596402570Smrg 947696402570Smrg 947796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 947896402570Smrg 947996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 948096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 948196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 948296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 948396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 948496402570Smrg $as_echo_n "(cached) " >&6 948596402570Smrgelse 948696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 948796402570Smrg/* end confdefs.h. */ 948896402570Smrgint i; 948996402570Smrg_ACEOF 949096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 949196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 949296402570Smrgelse 949396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 949496402570Smrgfi 949596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 949696402570Smrgfi 949796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 949896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 949996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 950096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 950196402570Smrgfi 950296402570Smrg 950396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 950496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 950596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 950696402570Smrg fi 950796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 950896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 950996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 951096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 951196402570Smrg $as_echo_n "(cached) " >&6 951296402570Smrgelse 951396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 951496402570Smrg/* end confdefs.h. */ 951596402570Smrgint i; 951696402570Smrg_ACEOF 951796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 951896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 951996402570Smrgelse 952096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 952196402570Smrgfi 952296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 952396402570Smrgfi 952496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 952596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 952696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 952796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 952896402570Smrgfi 952996402570Smrg 953096402570Smrgfound="no" 953196402570Smrg 953296402570Smrg if test $found = "no" ; then 953396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 953496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 953596402570Smrg fi 953696402570Smrg 953796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 953896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 953996402570Smrg fi 954096402570Smrg 954196402570Smrg CFLAGS="$CFLAGS -Warray-bounds" 954296402570Smrg 954396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 954496402570Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 954596402570Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 954696402570Smrg if eval \${$cacheid+:} false; then : 954796402570Smrg $as_echo_n "(cached) " >&6 954896402570Smrgelse 954996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 955096402570Smrg/* end confdefs.h. */ 955196402570Smrgint i; 955296402570Smrgint 955396402570Smrgmain () 955496402570Smrg{ 955596402570Smrg 955696402570Smrg ; 955796402570Smrg return 0; 955896402570Smrg} 955996402570Smrg_ACEOF 956096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 956196402570Smrg eval $cacheid=yes 956296402570Smrgelse 956396402570Smrg eval $cacheid=no 956496402570Smrgfi 956596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 956696402570Smrg conftest$ac_exeext conftest.$ac_ext 956796402570Smrgfi 956896402570Smrg 956996402570Smrg 957096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 957196402570Smrg 957296402570Smrg eval supported=\$$cacheid 957396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 957496402570Smrg$as_echo "$supported" >&6; } 957596402570Smrg if test "$supported" = "yes" ; then 957696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 957796402570Smrg found="yes" 957896402570Smrg fi 957996402570Smrg fi 958096402570Smrg 958196402570Smrg 958296402570Smrg 958396402570Smrg 958496402570Smrg 958596402570Smrg 958696402570Smrg 958796402570Smrg 958896402570Smrg 958996402570Smrg 959096402570Smrg 959196402570Smrg 959296402570Smrg 959396402570Smrg 959496402570Smrg 959596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 959696402570Smrg 959796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 959896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 959996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 960096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 960196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 960296402570Smrg $as_echo_n "(cached) " >&6 960396402570Smrgelse 960496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 960596402570Smrg/* end confdefs.h. */ 960696402570Smrgint i; 960796402570Smrg_ACEOF 960896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 960996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 961096402570Smrgelse 961196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 961296402570Smrgfi 961396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 961496402570Smrgfi 961596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 961696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 961796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 961896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 961996402570Smrgfi 962096402570Smrg 962196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 962296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 962396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 962496402570Smrg fi 962596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 962696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 962796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 962896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 962996402570Smrg $as_echo_n "(cached) " >&6 963096402570Smrgelse 963196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 963296402570Smrg/* end confdefs.h. */ 963396402570Smrgint i; 963496402570Smrg_ACEOF 963596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 963696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 963796402570Smrgelse 963896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 963996402570Smrgfi 964096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 964196402570Smrgfi 964296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 964396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 964496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 964596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 964696402570Smrgfi 964796402570Smrg 964896402570Smrgfound="no" 964996402570Smrg 965096402570Smrg if test $found = "no" ; then 965196402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 965296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 965396402570Smrg fi 965496402570Smrg 965596402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 965696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 965796402570Smrg fi 965896402570Smrg 965996402570Smrg CFLAGS="$CFLAGS -Wwrite-strings" 966096402570Smrg 966196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 966296402570Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 966396402570Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 966496402570Smrg if eval \${$cacheid+:} false; then : 966596402570Smrg $as_echo_n "(cached) " >&6 966696402570Smrgelse 966796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 966896402570Smrg/* end confdefs.h. */ 966996402570Smrgint i; 967096402570Smrgint 967196402570Smrgmain () 967296402570Smrg{ 967396402570Smrg 967496402570Smrg ; 967596402570Smrg return 0; 967696402570Smrg} 967796402570Smrg_ACEOF 967896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 967996402570Smrg eval $cacheid=yes 968096402570Smrgelse 968196402570Smrg eval $cacheid=no 968296402570Smrgfi 968396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 968496402570Smrg conftest$ac_exeext conftest.$ac_ext 968596402570Smrgfi 968696402570Smrg 968796402570Smrg 968896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 968996402570Smrg 969096402570Smrg eval supported=\$$cacheid 969196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 969296402570Smrg$as_echo "$supported" >&6; } 969396402570Smrg if test "$supported" = "yes" ; then 969496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 969596402570Smrg found="yes" 969696402570Smrg fi 969796402570Smrg fi 969896402570Smrg 969996402570Smrg 970096402570Smrg 970196402570Smrg 970296402570Smrg 970396402570Smrg 970496402570Smrg 970596402570Smrg 970696402570Smrg 970796402570Smrg 970896402570Smrg 970996402570Smrg 971096402570Smrg 971196402570Smrg 971296402570Smrg 971396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 971496402570Smrg 971596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 971696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 971796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 971896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 971996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 972096402570Smrg $as_echo_n "(cached) " >&6 972196402570Smrgelse 972296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 972396402570Smrg/* end confdefs.h. */ 972496402570Smrgint i; 972596402570Smrg_ACEOF 972696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 972796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 972896402570Smrgelse 972996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 973096402570Smrgfi 973196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 973296402570Smrgfi 973396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 973496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 973596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 973696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 973796402570Smrgfi 973896402570Smrg 973996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 974096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 974196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 974296402570Smrg fi 974396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 974496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 974596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 974696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 974796402570Smrg $as_echo_n "(cached) " >&6 974896402570Smrgelse 974996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 975096402570Smrg/* end confdefs.h. */ 975196402570Smrgint i; 975296402570Smrg_ACEOF 975396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 975496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 975596402570Smrgelse 975696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 975796402570Smrgfi 975896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 975996402570Smrgfi 976096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 976196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 976296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 976396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 976496402570Smrgfi 976596402570Smrg 976696402570Smrgfound="no" 976796402570Smrg 976896402570Smrg if test $found = "no" ; then 976996402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 977096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 977196402570Smrg fi 977296402570Smrg 977396402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 977496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 977596402570Smrg fi 977696402570Smrg 977796402570Smrg CFLAGS="$CFLAGS -Waddress" 977896402570Smrg 977996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 978096402570Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; } 978196402570Smrg cacheid=xorg_cv_cc_flag__Waddress 978296402570Smrg if eval \${$cacheid+:} false; then : 978396402570Smrg $as_echo_n "(cached) " >&6 978496402570Smrgelse 978596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 978696402570Smrg/* end confdefs.h. */ 978796402570Smrgint i; 978896402570Smrgint 978996402570Smrgmain () 979096402570Smrg{ 979196402570Smrg 979296402570Smrg ; 979396402570Smrg return 0; 979496402570Smrg} 979596402570Smrg_ACEOF 979696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 979796402570Smrg eval $cacheid=yes 979896402570Smrgelse 979996402570Smrg eval $cacheid=no 980096402570Smrgfi 980196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 980296402570Smrg conftest$ac_exeext conftest.$ac_ext 980396402570Smrgfi 980496402570Smrg 980596402570Smrg 980696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 980796402570Smrg 980896402570Smrg eval supported=\$$cacheid 980996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 981096402570Smrg$as_echo "$supported" >&6; } 981196402570Smrg if test "$supported" = "yes" ; then 981296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 981396402570Smrg found="yes" 981496402570Smrg fi 981596402570Smrg fi 981696402570Smrg 981796402570Smrg 981896402570Smrg 981996402570Smrg 982096402570Smrg 982196402570Smrg 982296402570Smrg 982396402570Smrg 982496402570Smrg 982596402570Smrg 982696402570Smrg 982796402570Smrg 982896402570Smrg 982996402570Smrg 983096402570Smrg 983196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 983296402570Smrg 983396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 983496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 983596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 983696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 983796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 983896402570Smrg $as_echo_n "(cached) " >&6 983996402570Smrgelse 984096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 984196402570Smrg/* end confdefs.h. */ 984296402570Smrgint i; 984396402570Smrg_ACEOF 984496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 984596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 984696402570Smrgelse 984796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 984896402570Smrgfi 984996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 985096402570Smrgfi 985196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 985296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 985396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 985496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 985596402570Smrgfi 985696402570Smrg 985796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 985896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 985996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 986096402570Smrg fi 986196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 986296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 986396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 986496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 986596402570Smrg $as_echo_n "(cached) " >&6 986696402570Smrgelse 986796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 986896402570Smrg/* end confdefs.h. */ 986996402570Smrgint i; 987096402570Smrg_ACEOF 987196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 987296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 987396402570Smrgelse 987496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 987596402570Smrgfi 987696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 987796402570Smrgfi 987896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 987996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 988096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 988196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 988296402570Smrgfi 988396402570Smrg 988496402570Smrgfound="no" 988596402570Smrg 988696402570Smrg if test $found = "no" ; then 988796402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 988896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 988996402570Smrg fi 989096402570Smrg 989196402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 989296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 989396402570Smrg fi 989496402570Smrg 989596402570Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 989696402570Smrg 989796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 989896402570Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 989996402570Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 990096402570Smrg if eval \${$cacheid+:} false; then : 990196402570Smrg $as_echo_n "(cached) " >&6 990296402570Smrgelse 990396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 990496402570Smrg/* end confdefs.h. */ 990596402570Smrgint i; 990696402570Smrgint 990796402570Smrgmain () 990896402570Smrg{ 990996402570Smrg 991096402570Smrg ; 991196402570Smrg return 0; 991296402570Smrg} 991396402570Smrg_ACEOF 991496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 991596402570Smrg eval $cacheid=yes 991696402570Smrgelse 991796402570Smrg eval $cacheid=no 991896402570Smrgfi 991996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 992096402570Smrg conftest$ac_exeext conftest.$ac_ext 992196402570Smrgfi 992296402570Smrg 992396402570Smrg 992496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992596402570Smrg 992696402570Smrg eval supported=\$$cacheid 992796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 992896402570Smrg$as_echo "$supported" >&6; } 992996402570Smrg if test "$supported" = "yes" ; then 993096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 993196402570Smrg found="yes" 993296402570Smrg fi 993396402570Smrg fi 993496402570Smrg 993596402570Smrg 993696402570Smrg 993796402570Smrg 993896402570Smrg 993996402570Smrg 994096402570Smrg 994196402570Smrg 994296402570Smrg 994396402570Smrg 994496402570Smrg 994596402570Smrg 994696402570Smrg 994796402570Smrg 994896402570Smrg 994996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 995096402570Smrg 995196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 995296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 995396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 995496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 995596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 995696402570Smrg $as_echo_n "(cached) " >&6 995796402570Smrgelse 995896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995996402570Smrg/* end confdefs.h. */ 996096402570Smrgint i; 996196402570Smrg_ACEOF 996296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 996396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 996496402570Smrgelse 996596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 996696402570Smrgfi 996796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 996896402570Smrgfi 996996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 997096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 997196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 997296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 997396402570Smrgfi 997496402570Smrg 997596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 997696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 997796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 997896402570Smrg fi 997996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 998096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 998196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 998296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 998396402570Smrg $as_echo_n "(cached) " >&6 998496402570Smrgelse 998596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 998696402570Smrg/* end confdefs.h. */ 998796402570Smrgint i; 998896402570Smrg_ACEOF 998996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 999096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 999196402570Smrgelse 999296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 999396402570Smrgfi 999496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 999596402570Smrgfi 999696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 999796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 999896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 999996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1000096402570Smrgfi 1000196402570Smrg 1000296402570Smrgfound="no" 1000396402570Smrg 1000496402570Smrg if test $found = "no" ; then 1000596402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1000696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1000796402570Smrg fi 1000896402570Smrg 1000996402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1001096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1001196402570Smrg fi 1001296402570Smrg 1001396402570Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1001496402570Smrg 1001596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 1001696402570Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 1001796402570Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1001896402570Smrg if eval \${$cacheid+:} false; then : 1001996402570Smrg $as_echo_n "(cached) " >&6 1002096402570Smrgelse 1002196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1002296402570Smrg/* end confdefs.h. */ 1002396402570Smrgint i; 1002496402570Smrgint 1002596402570Smrgmain () 1002696402570Smrg{ 1002796402570Smrg 1002896402570Smrg ; 1002996402570Smrg return 0; 1003096402570Smrg} 1003196402570Smrg_ACEOF 1003296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1003396402570Smrg eval $cacheid=yes 1003496402570Smrgelse 1003596402570Smrg eval $cacheid=no 1003696402570Smrgfi 1003796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1003896402570Smrg conftest$ac_exeext conftest.$ac_ext 1003996402570Smrgfi 1004096402570Smrg 1004196402570Smrg 1004296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1004396402570Smrg 1004496402570Smrg eval supported=\$$cacheid 1004596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1004696402570Smrg$as_echo "$supported" >&6; } 1004796402570Smrg if test "$supported" = "yes" ; then 1004896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1004996402570Smrg found="yes" 1005096402570Smrg fi 1005196402570Smrg fi 1005296402570Smrg 1005396402570Smrg 1005496402570Smrgfi 1005596402570Smrg 1005696402570Smrg 1005796402570Smrg 1005896402570Smrg 1005996402570Smrg 1006096402570Smrg 1006196402570Smrg 1006296402570Smrg CWARNFLAGS="$BASE_CFLAGS" 1006396402570Smrg if test "x$GCC" = xyes ; then 1006496402570Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1006596402570Smrg fi 1006696402570Smrg 1006796402570Smrg 1006896402570Smrg 1006996402570Smrg 1007096402570Smrg 1007196402570Smrg 1007296402570Smrg 1007396402570Smrg 1007496402570Smrg# Check whether --enable-strict-compilation was given. 1007596402570Smrgif test "${enable_strict_compilation+set}" = set; then : 1007696402570Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1007796402570Smrgelse 1007896402570Smrg STRICT_COMPILE=no 1007996402570Smrgfi 1008096402570Smrg 1008196402570Smrg 1008296402570Smrg 1008396402570Smrg 1008496402570Smrg 1008596402570Smrg 1008696402570SmrgSTRICT_CFLAGS="" 1008796402570Smrg 1008896402570Smrg 1008996402570Smrg 1009096402570Smrg 1009196402570Smrg 1009296402570Smrg 1009396402570Smrg 1009496402570Smrg 1009596402570Smrg 1009696402570Smrg 1009796402570Smrg 1009896402570Smrg 1009996402570Smrg 1010096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1010196402570Smrg 1010296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1010396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1010496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1010596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1010696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1010796402570Smrg $as_echo_n "(cached) " >&6 1010896402570Smrgelse 1010996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1011096402570Smrg/* end confdefs.h. */ 1011196402570Smrgint i; 1011296402570Smrg_ACEOF 1011396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1011496402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1011596402570Smrgelse 1011696402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1011796402570Smrgfi 1011896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1011996402570Smrgfi 1012096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1012196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1012296402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1012396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1012496402570Smrgfi 1012596402570Smrg 1012696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1012796402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1012896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1012996402570Smrg fi 1013096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1013196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1013296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1013396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1013496402570Smrg $as_echo_n "(cached) " >&6 1013596402570Smrgelse 1013696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1013796402570Smrg/* end confdefs.h. */ 1013896402570Smrgint i; 1013996402570Smrg_ACEOF 1014096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1014196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1014296402570Smrgelse 1014396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1014496402570Smrgfi 1014596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1014696402570Smrgfi 1014796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1014896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1014996402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1015096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1015196402570Smrgfi 1015296402570Smrg 1015396402570Smrgfound="no" 1015496402570Smrg 1015596402570Smrg if test $found = "no" ; then 1015696402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1015796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1015896402570Smrg fi 1015996402570Smrg 1016096402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1016196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1016296402570Smrg fi 1016396402570Smrg 1016496402570Smrg CFLAGS="$CFLAGS -pedantic" 1016596402570Smrg 1016696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 1016796402570Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; } 1016896402570Smrg cacheid=xorg_cv_cc_flag__pedantic 1016996402570Smrg if eval \${$cacheid+:} false; then : 1017096402570Smrg $as_echo_n "(cached) " >&6 1017196402570Smrgelse 1017296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1017396402570Smrg/* end confdefs.h. */ 1017496402570Smrgint i; 1017596402570Smrgint 1017696402570Smrgmain () 1017796402570Smrg{ 1017896402570Smrg 1017996402570Smrg ; 1018096402570Smrg return 0; 1018196402570Smrg} 1018296402570Smrg_ACEOF 1018396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1018496402570Smrg eval $cacheid=yes 1018596402570Smrgelse 1018696402570Smrg eval $cacheid=no 1018796402570Smrgfi 1018896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1018996402570Smrg conftest$ac_exeext conftest.$ac_ext 1019096402570Smrgfi 1019196402570Smrg 1019296402570Smrg 1019396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1019496402570Smrg 1019596402570Smrg eval supported=\$$cacheid 1019696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1019796402570Smrg$as_echo "$supported" >&6; } 1019896402570Smrg if test "$supported" = "yes" ; then 1019996402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1020096402570Smrg found="yes" 1020196402570Smrg fi 1020296402570Smrg fi 1020396402570Smrg 1020496402570Smrg 1020596402570Smrg 1020696402570Smrg 1020796402570Smrg 1020896402570Smrg 1020996402570Smrg 1021096402570Smrg 1021196402570Smrg 1021296402570Smrg 1021396402570Smrg 1021496402570Smrg 1021596402570Smrg 1021696402570Smrg 1021796402570Smrg 1021896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1021996402570Smrg 1022096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1022196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1022296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1022396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1022496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1022596402570Smrg $as_echo_n "(cached) " >&6 1022696402570Smrgelse 1022796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1022896402570Smrg/* end confdefs.h. */ 1022996402570Smrgint i; 1023096402570Smrg_ACEOF 1023196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1023296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1023396402570Smrgelse 1023496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1023596402570Smrgfi 1023696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1023796402570Smrgfi 1023896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1023996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1024096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1024196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1024296402570Smrgfi 1024396402570Smrg 1024496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1024596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1024696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1024796402570Smrg fi 1024896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1024996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1025096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1025196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1025296402570Smrg $as_echo_n "(cached) " >&6 1025396402570Smrgelse 1025496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1025596402570Smrg/* end confdefs.h. */ 1025696402570Smrgint i; 1025796402570Smrg_ACEOF 1025896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1025996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1026096402570Smrgelse 1026196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1026296402570Smrgfi 1026396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1026496402570Smrgfi 1026596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1026696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1026796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1026896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1026996402570Smrgfi 1027096402570Smrg 1027196402570Smrgfound="no" 1027296402570Smrg 1027396402570Smrg if test $found = "no" ; then 1027496402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1027596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1027696402570Smrg fi 1027796402570Smrg 1027896402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1027996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1028096402570Smrg fi 1028196402570Smrg 1028296402570Smrg CFLAGS="$CFLAGS -Werror" 1028396402570Smrg 1028496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 1028596402570Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; } 1028696402570Smrg cacheid=xorg_cv_cc_flag__Werror 1028796402570Smrg if eval \${$cacheid+:} false; then : 1028896402570Smrg $as_echo_n "(cached) " >&6 1028996402570Smrgelse 1029096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1029196402570Smrg/* end confdefs.h. */ 1029296402570Smrgint i; 1029396402570Smrgint 1029496402570Smrgmain () 1029596402570Smrg{ 1029696402570Smrg 1029796402570Smrg ; 1029896402570Smrg return 0; 1029996402570Smrg} 1030096402570Smrg_ACEOF 1030196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1030296402570Smrg eval $cacheid=yes 1030396402570Smrgelse 1030496402570Smrg eval $cacheid=no 1030596402570Smrgfi 1030696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1030796402570Smrg conftest$ac_exeext conftest.$ac_ext 1030896402570Smrgfi 1030996402570Smrg 1031096402570Smrg 1031196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1031296402570Smrg 1031396402570Smrg eval supported=\$$cacheid 1031496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1031596402570Smrg$as_echo "$supported" >&6; } 1031696402570Smrg if test "$supported" = "yes" ; then 1031796402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1031896402570Smrg found="yes" 1031996402570Smrg fi 1032096402570Smrg fi 1032196402570Smrg 1032296402570Smrg if test $found = "no" ; then 1032396402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1032496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1032596402570Smrg fi 1032696402570Smrg 1032796402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1032896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1032996402570Smrg fi 1033096402570Smrg 1033196402570Smrg CFLAGS="$CFLAGS -errwarn" 1033296402570Smrg 1033396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 1033496402570Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; } 1033596402570Smrg cacheid=xorg_cv_cc_flag__errwarn 1033696402570Smrg if eval \${$cacheid+:} false; then : 1033796402570Smrg $as_echo_n "(cached) " >&6 1033896402570Smrgelse 1033996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1034096402570Smrg/* end confdefs.h. */ 1034196402570Smrgint i; 1034296402570Smrgint 1034396402570Smrgmain () 1034496402570Smrg{ 1034596402570Smrg 1034696402570Smrg ; 1034796402570Smrg return 0; 1034896402570Smrg} 1034996402570Smrg_ACEOF 1035096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1035196402570Smrg eval $cacheid=yes 1035296402570Smrgelse 1035396402570Smrg eval $cacheid=no 1035496402570Smrgfi 1035596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1035696402570Smrg conftest$ac_exeext conftest.$ac_ext 1035796402570Smrgfi 1035896402570Smrg 1035996402570Smrg 1036096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1036196402570Smrg 1036296402570Smrg eval supported=\$$cacheid 1036396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1036496402570Smrg$as_echo "$supported" >&6; } 1036596402570Smrg if test "$supported" = "yes" ; then 1036696402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1036796402570Smrg found="yes" 1036896402570Smrg fi 1036996402570Smrg fi 1037096402570Smrg 1037196402570Smrg 1037296402570Smrg 1037396402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1037496402570Smrg# activate it with -Werror, so we add it here explicitly. 1037596402570Smrg 1037696402570Smrg 1037796402570Smrg 1037896402570Smrg 1037996402570Smrg 1038096402570Smrg 1038196402570Smrg 1038296402570Smrg 1038396402570Smrg 1038496402570Smrg 1038596402570Smrg 1038696402570Smrg 1038796402570Smrg 1038896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1038996402570Smrg 1039096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1039196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1039296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1039396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1039496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1039596402570Smrg $as_echo_n "(cached) " >&6 1039696402570Smrgelse 1039796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1039896402570Smrg/* end confdefs.h. */ 1039996402570Smrgint i; 1040096402570Smrg_ACEOF 1040196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1040296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1040396402570Smrgelse 1040496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1040596402570Smrgfi 1040696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1040796402570Smrgfi 1040896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1040996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1041096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1041196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1041296402570Smrgfi 1041396402570Smrg 1041496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1041596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1041696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1041796402570Smrg fi 1041896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1041996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1042096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1042196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1042296402570Smrg $as_echo_n "(cached) " >&6 1042396402570Smrgelse 1042496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1042596402570Smrg/* end confdefs.h. */ 1042696402570Smrgint i; 1042796402570Smrg_ACEOF 1042896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1042996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1043096402570Smrgelse 1043196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1043296402570Smrgfi 1043396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1043496402570Smrgfi 1043596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1043696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1043796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1043896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1043996402570Smrgfi 1044096402570Smrg 1044196402570Smrgfound="no" 1044296402570Smrg 1044396402570Smrg if test $found = "no" ; then 1044496402570Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1044596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1044696402570Smrg fi 1044796402570Smrg 1044896402570Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1044996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1045096402570Smrg fi 1045196402570Smrg 1045296402570Smrg CFLAGS="$CFLAGS -Werror=attributes" 1045396402570Smrg 1045496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 1045596402570Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 1045696402570Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 1045796402570Smrg if eval \${$cacheid+:} false; then : 1045896402570Smrg $as_echo_n "(cached) " >&6 1045996402570Smrgelse 1046096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1046196402570Smrg/* end confdefs.h. */ 1046296402570Smrgint i; 1046396402570Smrgint 1046496402570Smrgmain () 1046596402570Smrg{ 1046696402570Smrg 1046796402570Smrg ; 1046896402570Smrg return 0; 1046996402570Smrg} 1047096402570Smrg_ACEOF 1047196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1047296402570Smrg eval $cacheid=yes 1047396402570Smrgelse 1047496402570Smrg eval $cacheid=no 1047596402570Smrgfi 1047696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1047796402570Smrg conftest$ac_exeext conftest.$ac_ext 1047896402570Smrgfi 1047996402570Smrg 1048096402570Smrg 1048196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1048296402570Smrg 1048396402570Smrg eval supported=\$$cacheid 1048496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1048596402570Smrg$as_echo "$supported" >&6; } 1048696402570Smrg if test "$supported" = "yes" ; then 1048796402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1048896402570Smrg found="yes" 1048996402570Smrg fi 1049096402570Smrg fi 1049196402570Smrg 1049296402570Smrg 1049396402570Smrg 1049496402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1049596402570Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1049696402570Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1049796402570Smrgfi 1049896402570Smrg 1049996402570Smrg 1050096402570Smrg 1050196402570Smrg 1050296402570Smrg 1050396402570Smrg 1050496402570Smrgcat >>confdefs.h <<_ACEOF 1050596402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1050696402570Smrg_ACEOF 1050796402570Smrg 1050896402570Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1050996402570Smrg if test "x$PVM" = "x"; then 1051096402570Smrg PVM="0" 1051196402570Smrg fi 1051296402570Smrg 1051396402570Smrgcat >>confdefs.h <<_ACEOF 1051496402570Smrg#define PACKAGE_VERSION_MINOR $PVM 1051596402570Smrg_ACEOF 1051696402570Smrg 1051796402570Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1051896402570Smrg if test "x$PVP" = "x"; then 1051996402570Smrg PVP="0" 1052096402570Smrg fi 1052196402570Smrg 1052296402570Smrgcat >>confdefs.h <<_ACEOF 1052396402570Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1052496402570Smrg_ACEOF 1052596402570Smrg 1052696402570Smrg 1052796402570Smrg 1052896402570SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 1052996402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 1053096402570Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 1053196402570Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 1053296402570Smrg 1053396402570Smrg 1053496402570Smrg 1053596402570Smrg 1053696402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1053796402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1053896402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 1053996402570Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 1054096402570Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 1054196402570Smrg 1054296402570Smrg 1054396402570Smrg 1054496402570Smrg 1054596402570Smrg 1054696402570Smrg 1054796402570Smrgif test x$APP_MAN_SUFFIX = x ; then 1054896402570Smrg APP_MAN_SUFFIX=1 1054996402570Smrgfi 1055096402570Smrgif test x$APP_MAN_DIR = x ; then 1055196402570Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1055296402570Smrgfi 1055396402570Smrg 1055496402570Smrgif test x$LIB_MAN_SUFFIX = x ; then 1055596402570Smrg LIB_MAN_SUFFIX=3 1055696402570Smrgfi 1055796402570Smrgif test x$LIB_MAN_DIR = x ; then 1055896402570Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1055996402570Smrgfi 1056096402570Smrg 1056196402570Smrgif test x$FILE_MAN_SUFFIX = x ; then 1056296402570Smrg case $host_os in 1056396402570Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 1056496402570Smrg *) FILE_MAN_SUFFIX=5 ;; 1056596402570Smrg esac 1056696402570Smrgfi 1056796402570Smrgif test x$FILE_MAN_DIR = x ; then 1056896402570Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1056996402570Smrgfi 1057096402570Smrg 1057196402570Smrgif test x$MISC_MAN_SUFFIX = x ; then 1057296402570Smrg case $host_os in 1057396402570Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 1057496402570Smrg *) MISC_MAN_SUFFIX=7 ;; 1057596402570Smrg esac 1057696402570Smrgfi 1057796402570Smrgif test x$MISC_MAN_DIR = x ; then 1057896402570Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1057996402570Smrgfi 1058096402570Smrg 1058196402570Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1058296402570Smrg case $host_os in 1058396402570Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 1058496402570Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1058596402570Smrg esac 1058696402570Smrgfi 1058796402570Smrgif test x$DRIVER_MAN_DIR = x ; then 1058896402570Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1058996402570Smrgfi 1059096402570Smrg 1059196402570Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1059296402570Smrg case $host_os in 1059396402570Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 1059496402570Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1059596402570Smrg esac 1059696402570Smrgfi 1059796402570Smrgif test x$ADMIN_MAN_DIR = x ; then 1059896402570Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1059996402570Smrgfi 1060096402570Smrg 1060196402570Smrg 1060296402570Smrg 1060396402570Smrg 1060496402570Smrg 1060596402570Smrg 1060696402570Smrg 1060796402570Smrg 1060896402570Smrg 1060996402570Smrg 1061096402570Smrg 1061196402570Smrg 1061296402570Smrg 1061396402570Smrg 1061496402570Smrg 1061596402570SmrgXORG_MAN_PAGE="X Version 11" 1061696402570Smrg 1061796402570SmrgMAN_SUBSTS="\ 1061896402570Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1061996402570Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 106202adc0320Smrg -e 's|__xservername__|Xorg|g' \ 106212adc0320Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 106222adc0320Smrg -e 's|__projectroot__|\$(prefix)|g' \ 106232adc0320Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 106242adc0320Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 106252adc0320Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 106262adc0320Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 106272adc0320Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 106282adc0320Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 106292adc0320Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 106302adc0320Smrg 106312adc0320Smrg 106322adc0320Smrg 106332adc0320Smrg# Check whether --enable-silent-rules was given. 106342adc0320Smrgif test "${enable_silent_rules+set}" = set; then : 106352adc0320Smrg enableval=$enable_silent_rules; 106362adc0320Smrgfi 106372adc0320Smrg 106382adc0320Smrgcase $enable_silent_rules in 106392adc0320Smrgyes) AM_DEFAULT_VERBOSITY=0;; 106402adc0320Smrgno) AM_DEFAULT_VERBOSITY=1;; 106412adc0320Smrg*) AM_DEFAULT_VERBOSITY=0;; 106422adc0320Smrgesac 106432adc0320SmrgAM_BACKSLASH='\' 106442adc0320Smrg 106457a0395d0Smrg 106467366012aSmrg 106472adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 106487366012aSmrg$as_echo_n "checking return type of signal handlers... " >&6; } 106492adc0320Smrgif ${ac_cv_type_signal+:} false; then : 106507366012aSmrg $as_echo_n "(cached) " >&6 106517a0395d0Smrgelse 106522adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106537a0395d0Smrg/* end confdefs.h. */ 106547366012aSmrg#include <sys/types.h> 106557366012aSmrg#include <signal.h> 106567a0395d0Smrg 106577366012aSmrgint 106587366012aSmrgmain () 106597366012aSmrg{ 106607366012aSmrgreturn *(signal (0, 0)) (0) == 1; 106617366012aSmrg ; 106627366012aSmrg return 0; 106637366012aSmrg} 106647a0395d0Smrg_ACEOF 106652adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 106667366012aSmrg ac_cv_type_signal=int 106677a0395d0Smrgelse 106682adc0320Smrg ac_cv_type_signal=void 106697a0395d0Smrgfi 106707a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 106717a0395d0Smrgfi 106722adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 106737366012aSmrg$as_echo "$ac_cv_type_signal" >&6; } 106747a0395d0Smrg 106757366012aSmrgcat >>confdefs.h <<_ACEOF 106767366012aSmrg#define RETSIGTYPE $ac_cv_type_signal 106777366012aSmrg_ACEOF 106787a0395d0Smrg 106797a0395d0Smrg 106807a0395d0Smrg 106817a0395d0Smrgfor ac_header in net/errno.h 106822adc0320Smrgdo : 106832adc0320Smrg ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 106842adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then : 106852adc0320Smrg cat >>confdefs.h <<_ACEOF 106862adc0320Smrg#define HAVE_NET_ERRNO_H 1 106877a0395d0Smrg_ACEOF 106887a0395d0Smrg 106897a0395d0Smrgfi 106907a0395d0Smrg 106912adc0320Smrgdone 106927a0395d0Smrg 106937a0395d0Smrg 106942adc0320Smrgfor ac_func in strlcpy 106952adc0320Smrgdo : 106962adc0320Smrg ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 106972adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then : 106987a0395d0Smrg cat >>confdefs.h <<_ACEOF 106992adc0320Smrg#define HAVE_STRLCPY 1 107007a0395d0Smrg_ACEOF 107017a0395d0Smrg 107027a0395d0Smrgfi 107037a0395d0Smrgdone 107047a0395d0Smrg 107057a0395d0Smrg 107067a0395d0Smrg# Checks for pkg-config packages 107077a0395d0Smrg 107087a0395d0Smrgpkg_failed=no 107092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 107107366012aSmrg$as_echo_n "checking for XAUTH... " >&6; } 107117a0395d0Smrg 107127a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then 107137a0395d0Smrg pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 107147a0395d0Smrg elif test -n "$PKG_CONFIG"; then 107157a0395d0Smrg if test -n "$PKG_CONFIG" && \ 107162adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5 107177a0395d0Smrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5 107187a0395d0Smrg ac_status=$? 107192adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 107202adc0320Smrg test $ac_status = 0; }; then 107217a0395d0Smrg pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu" 2>/dev/null` 107227a0395d0Smrgelse 107237a0395d0Smrg pkg_failed=yes 107247a0395d0Smrgfi 107257a0395d0Smrg else 107267a0395d0Smrg pkg_failed=untried 107277a0395d0Smrgfi 107287a0395d0Smrgif test -n "$XAUTH_LIBS"; then 107297a0395d0Smrg pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 107307a0395d0Smrg elif test -n "$PKG_CONFIG"; then 107317a0395d0Smrg if test -n "$PKG_CONFIG" && \ 107322adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5 107337a0395d0Smrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5 107347a0395d0Smrg ac_status=$? 107352adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 107362adc0320Smrg test $ac_status = 0; }; then 107377a0395d0Smrg pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu" 2>/dev/null` 107387a0395d0Smrgelse 107397a0395d0Smrg pkg_failed=yes 107407a0395d0Smrgfi 107417a0395d0Smrg else 107427a0395d0Smrg pkg_failed=untried 107437a0395d0Smrgfi 107447a0395d0Smrg 107457a0395d0Smrg 107467a0395d0Smrg 107477a0395d0Smrgif test $pkg_failed = yes; then 107487a0395d0Smrg 107497a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 107507a0395d0Smrg _pkg_short_errors_supported=yes 107517a0395d0Smrgelse 107527a0395d0Smrg _pkg_short_errors_supported=no 107537a0395d0Smrgfi 107547a0395d0Smrg if test $_pkg_short_errors_supported = yes; then 107557a0395d0Smrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xau xext xmuu" 2>&1` 107567a0395d0Smrg else 107577a0395d0Smrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xau xext xmuu" 2>&1` 107587a0395d0Smrg fi 107597a0395d0Smrg # Put the nasty error message in config.log where it belongs 107607a0395d0Smrg echo "$XAUTH_PKG_ERRORS" >&5 107617a0395d0Smrg 107622adc0320Smrg as_fn_error $? "Package requirements (x11 xau xext xmuu) were not met: 107637a0395d0Smrg 107647a0395d0Smrg$XAUTH_PKG_ERRORS 107657a0395d0Smrg 107667a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 107677a0395d0Smrginstalled software in a non-standard prefix. 107687a0395d0Smrg 107697a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 107707a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 1077196402570SmrgSee the pkg-config man page for more details. 1077296402570Smrg" "$LINENO" 5 107737a0395d0Smrgelif test $pkg_failed = untried; then 107742adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 107757366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 107762adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 107777a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 107787a0395d0Smrgpath to pkg-config. 107797a0395d0Smrg 107807a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 107817a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 107827a0395d0SmrgSee the pkg-config man page for more details. 107837a0395d0Smrg 107847a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 107852adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 107867a0395d0Smrgelse 107877a0395d0Smrg XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 107887a0395d0Smrg XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 107892adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 107907366012aSmrg$as_echo "yes" >&6; } 1079196402570Smrg : 107927a0395d0Smrgfi 107937a0395d0Smrg 107947a0395d0Smrg# Transport selection macro from xtrans.m4 107957a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c 107967a0395d0Smrg 107977a0395d0Smrg 107987a0395d0Smrg 107997366012aSmrg case $host_os in 108007366012aSmrg mingw*) unixdef="no" ;; 108017366012aSmrg *) unixdef="yes" ;; 108027366012aSmrg esac 108037a0395d0Smrg # Check whether --enable-unix-transport was given. 108042adc0320Smrgif test "${enable_unix_transport+set}" = set; then : 108057a0395d0Smrg enableval=$enable_unix_transport; UNIXCONN=$enableval 108067a0395d0Smrgelse 108077366012aSmrg UNIXCONN=$unixdef 108087a0395d0Smrgfi 108097a0395d0Smrg 108102adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 108117366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 108127a0395d0Smrg if test "$UNIXCONN" = "yes"; then 108137a0395d0Smrg 108142adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h 108157a0395d0Smrg 108167a0395d0Smrg fi 108172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 108187366012aSmrg$as_echo "$UNIXCONN" >&6; } 108197366012aSmrg # Check whether --enable-tcp-transport was given. 108202adc0320Smrgif test "${enable_tcp_transport+set}" = set; then : 108217366012aSmrg enableval=$enable_tcp_transport; TCPCONN=$enableval 108227366012aSmrgelse 108237366012aSmrg TCPCONN=yes 108247366012aSmrgfi 108257366012aSmrg 108262adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 108277366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 108282adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 108297366012aSmrg$as_echo "$TCPCONN" >&6; } 108307a0395d0Smrg if test "$TCPCONN" = "yes"; then 108317a0395d0Smrg 108322adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h 108337a0395d0Smrg 108347a0395d0Smrg 108357a0395d0Smrg # SVR4 hides these in libraries other than libc 108362adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 108377366012aSmrg$as_echo_n "checking for library containing socket... " >&6; } 108382adc0320Smrgif ${ac_cv_search_socket+:} false; then : 108397366012aSmrg $as_echo_n "(cached) " >&6 108407a0395d0Smrgelse 108417a0395d0Smrg ac_func_search_save_LIBS=$LIBS 108422adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 108437a0395d0Smrg/* end confdefs.h. */ 108447a0395d0Smrg 108457a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 108467a0395d0Smrg Use char because int might match the return type of a GCC 108477a0395d0Smrg builtin and then its argument prototype would still apply. */ 108487a0395d0Smrg#ifdef __cplusplus 108497a0395d0Smrgextern "C" 108507a0395d0Smrg#endif 108517a0395d0Smrgchar socket (); 108527a0395d0Smrgint 108537a0395d0Smrgmain () 108547a0395d0Smrg{ 108557a0395d0Smrgreturn socket (); 108567a0395d0Smrg ; 108577a0395d0Smrg return 0; 108587a0395d0Smrg} 108597a0395d0Smrg_ACEOF 108607a0395d0Smrgfor ac_lib in '' socket; do 108617a0395d0Smrg if test -z "$ac_lib"; then 108627a0395d0Smrg ac_res="none required" 108637a0395d0Smrg else 108647a0395d0Smrg ac_res=-l$ac_lib 108657a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 108662adc0320Smrg fi 108672adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 108682adc0320Smrg ac_cv_search_socket=$ac_res 108697a0395d0Smrgfi 108702adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 108712adc0320Smrg conftest$ac_exeext 108722adc0320Smrg if ${ac_cv_search_socket+:} false; then : 108737a0395d0Smrg break 108747a0395d0Smrgfi 108757a0395d0Smrgdone 108762adc0320Smrgif ${ac_cv_search_socket+:} false; then : 108772adc0320Smrg 108787a0395d0Smrgelse 108797a0395d0Smrg ac_cv_search_socket=no 108807a0395d0Smrgfi 108817a0395d0Smrgrm conftest.$ac_ext 108827a0395d0SmrgLIBS=$ac_func_search_save_LIBS 108837a0395d0Smrgfi 108842adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 108857366012aSmrg$as_echo "$ac_cv_search_socket" >&6; } 108867a0395d0Smrgac_res=$ac_cv_search_socket 108872adc0320Smrgif test "$ac_res" != no; then : 108887a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 108897a0395d0Smrg 108907a0395d0Smrgfi 108917a0395d0Smrg 108922adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 108937366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; } 108942adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 108957366012aSmrg $as_echo_n "(cached) " >&6 108967a0395d0Smrgelse 108977a0395d0Smrg ac_func_search_save_LIBS=$LIBS 108982adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 108997a0395d0Smrg/* end confdefs.h. */ 109007a0395d0Smrg 109017a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 109027a0395d0Smrg Use char because int might match the return type of a GCC 109037a0395d0Smrg builtin and then its argument prototype would still apply. */ 109047a0395d0Smrg#ifdef __cplusplus 109057a0395d0Smrgextern "C" 109067a0395d0Smrg#endif 109077a0395d0Smrgchar gethostbyname (); 109087a0395d0Smrgint 109097a0395d0Smrgmain () 109107a0395d0Smrg{ 109117a0395d0Smrgreturn gethostbyname (); 109127a0395d0Smrg ; 109137a0395d0Smrg return 0; 109147a0395d0Smrg} 109157a0395d0Smrg_ACEOF 109167a0395d0Smrgfor ac_lib in '' nsl; do 109177a0395d0Smrg if test -z "$ac_lib"; then 109187a0395d0Smrg ac_res="none required" 109197a0395d0Smrg else 109207a0395d0Smrg ac_res=-l$ac_lib 109217a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 109227a0395d0Smrg fi 109232adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 109247a0395d0Smrg ac_cv_search_gethostbyname=$ac_res 109257a0395d0Smrgfi 109262adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 109272adc0320Smrg conftest$ac_exeext 109282adc0320Smrg if ${ac_cv_search_gethostbyname+:} false; then : 109297a0395d0Smrg break 109307a0395d0Smrgfi 109317a0395d0Smrgdone 109322adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 109332adc0320Smrg 109347a0395d0Smrgelse 109357a0395d0Smrg ac_cv_search_gethostbyname=no 109367a0395d0Smrgfi 109377a0395d0Smrgrm conftest.$ac_ext 109387a0395d0SmrgLIBS=$ac_func_search_save_LIBS 109397a0395d0Smrgfi 109402adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 109417366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; } 109427a0395d0Smrgac_res=$ac_cv_search_gethostbyname 109432adc0320Smrgif test "$ac_res" != no; then : 109447a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 109457a0395d0Smrg 109467a0395d0Smrgfi 109477a0395d0Smrg 109482adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 109492adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 109507366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; } 109512adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then : 109527366012aSmrg $as_echo_n "(cached) " >&6 109537366012aSmrgelse 109547366012aSmrg ac_check_lib_save_LIBS=$LIBS 109557366012aSmrgLIBS="-lws2_32 $LIBS" 109562adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 109577366012aSmrg/* end confdefs.h. */ 109587366012aSmrg 109597366012aSmrg 109607366012aSmrgint 109617366012aSmrgmain () 109627366012aSmrg{ 109637366012aSmrgreturn main (); 109647366012aSmrg ; 109657366012aSmrg return 0; 109667366012aSmrg} 109677366012aSmrg_ACEOF 109682adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 109697366012aSmrg ac_cv_lib_ws2_32_main=yes 109707366012aSmrgelse 109712adc0320Smrg ac_cv_lib_ws2_32_main=no 109727366012aSmrgfi 109732adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 109742adc0320Smrg conftest$ac_exeext conftest.$ac_ext 109757366012aSmrgLIBS=$ac_check_lib_save_LIBS 109767366012aSmrgfi 109772adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 109787366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 109792adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then : 109807366012aSmrg cat >>confdefs.h <<_ACEOF 109817366012aSmrg#define HAVE_LIBWS2_32 1 109827366012aSmrg_ACEOF 109837366012aSmrg 109847366012aSmrg LIBS="-lws2_32 $LIBS" 109857366012aSmrg 109867366012aSmrgfi 109877366012aSmrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 109887366012aSmrg 109892adc0320Smrg fi 109907366012aSmrg 109917a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 109927a0395d0Smrg # Check whether --enable-ipv6 was given. 109932adc0320Smrgif test "${enable_ipv6+set}" = set; then : 109947a0395d0Smrg enableval=$enable_ipv6; IPV6CONN=$enableval 109957a0395d0Smrgelse 109962adc0320Smrg ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 109972adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then : 109987a0395d0Smrg IPV6CONN=yes 109997a0395d0Smrgelse 110007a0395d0Smrg IPV6CONN=no 110017a0395d0Smrgfi 110027a0395d0Smrg 110037a0395d0Smrgfi 110047a0395d0Smrg 110052adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 110067366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; } 110077a0395d0Smrg if test "$IPV6CONN" = "yes"; then 110087a0395d0Smrg 110092adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h 110107a0395d0Smrg 110117a0395d0Smrg fi 110122adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 110137366012aSmrg$as_echo "$IPV6CONN" >&6; } 110147a0395d0Smrg 110157a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in 110162adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 110177a0395d0Smrg#include <sys/types.h> 110187a0395d0Smrg#include <sys/socket.h> 110197a0395d0Smrg#include <netinet/in.h> 110207a0395d0Smrg 110212adc0320Smrg" 110222adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 110237a0395d0Smrg 110242adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 110257366012aSmrg 110262adc0320Smrgfi 110277366012aSmrg 110287366012aSmrg 110292adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 110302adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 110312adc0320Smrg$ac_includes_default 110322adc0320Smrg#include <sys/socket.h> 110332adc0320Smrg" 110342adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then : 110357366012aSmrg 110362adc0320Smrgcat >>confdefs.h <<_ACEOF 110372adc0320Smrg#define HAVE_SOCKLEN_T 1 110387366012aSmrg_ACEOF 110397366012aSmrg 110407366012aSmrg 110417366012aSmrgfi 110427366012aSmrg 110437366012aSmrg 110447366012aSmrg 110452adc0320Smrg fi 110462adc0320Smrg case $host_os in 110472adc0320Smrg solaris*|sco*|sysv4*) localdef="yes" ;; 110482adc0320Smrg *) localdef="no" ;; 110492adc0320Smrg esac 110502adc0320Smrg # Check whether --enable-local-transport was given. 110512adc0320Smrgif test "${enable_local_transport+set}" = set; then : 110522adc0320Smrg enableval=$enable_local_transport; LOCALCONN=$enableval 110537366012aSmrgelse 110542adc0320Smrg LOCALCONN=$localdef 110552adc0320Smrgfi 110567366012aSmrg 110572adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 110582adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 110592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 110602adc0320Smrg$as_echo "$LOCALCONN" >&6; } 110612adc0320Smrg if test "$LOCALCONN" = "yes"; then 110627a0395d0Smrg 110632adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h 110647a0395d0Smrg 110652adc0320Smrg fi 110667a0395d0Smrg 110677a0395d0Smrg 110687366012aSmrg 110697366012aSmrg 110707a0395d0Smrg 110717a0395d0Smrg 110727a0395d0Smrg 110737366012aSmrg 110742adc0320Smrg# Check whether --with-lint was given. 110752adc0320Smrgif test "${with_lint+set}" = set; then : 110762adc0320Smrg withval=$with_lint; use_lint=$withval 110772adc0320Smrgelse 110782adc0320Smrg use_lint=no 110797a0395d0Smrgfi 110807a0395d0Smrg 110817a0395d0Smrg 110822adc0320Smrg# Obtain platform specific info like program name and options 110832adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 110842adc0320Smrgcase $host_os in 110852adc0320Smrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 110862adc0320Smrg lint_name=splint 110872adc0320Smrg lint_options="-badflag" 110882adc0320Smrg ;; 110892adc0320Smrg *freebsd* | *netbsd*) 110902adc0320Smrg lint_name=lint 110912adc0320Smrg lint_options="-u -b" 110922adc0320Smrg ;; 110932adc0320Smrg *solaris*) 110942adc0320Smrg lint_name=lint 110952adc0320Smrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 110962adc0320Smrg ;; 110972adc0320Smrgesac 110987366012aSmrg 110992adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 111002adc0320Smrgif test "x$use_lint" = x"yes" ; then 111012adc0320Smrg # Extract the first word of "$lint_name", so it can be a program name with args. 111022adc0320Smrgset dummy $lint_name; ac_word=$2 111032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 111042adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 111052adc0320Smrgif ${ac_cv_path_LINT+:} false; then : 111062adc0320Smrg $as_echo_n "(cached) " >&6 111072adc0320Smrgelse 111082adc0320Smrg case $LINT in 111092adc0320Smrg [\\/]* | ?:[\\/]*) 111102adc0320Smrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 111112adc0320Smrg ;; 111122adc0320Smrg *) 111132adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111142adc0320Smrgfor as_dir in $PATH 111152adc0320Smrgdo 111162adc0320Smrg IFS=$as_save_IFS 111172adc0320Smrg test -z "$as_dir" && as_dir=. 111182adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 111192adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 111202adc0320Smrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 111212adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 111222adc0320Smrg break 2 111232adc0320Smrg fi 111242adc0320Smrgdone 111252adc0320Smrg done 111262adc0320SmrgIFS=$as_save_IFS 111272adc0320Smrg 111282adc0320Smrg ;; 111292adc0320Smrgesac 111302adc0320Smrgfi 111312adc0320SmrgLINT=$ac_cv_path_LINT 111322adc0320Smrgif test -n "$LINT"; then 111332adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 111342adc0320Smrg$as_echo "$LINT" >&6; } 111357a0395d0Smrgelse 111362adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 111372adc0320Smrg$as_echo "no" >&6; } 111387a0395d0Smrgfi 111397a0395d0Smrg 111407a0395d0Smrg 111412adc0320Smrg if test "x$LINT" = "x"; then 111422adc0320Smrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 111432adc0320Smrg fi 111442adc0320Smrgelif test "x$use_lint" = x"no" ; then 111452adc0320Smrg if test "x$LINT" != "x"; then 111462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 111472adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 111482adc0320Smrg fi 111497a0395d0Smrgelse 111502adc0320Smrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 111517a0395d0Smrgfi 111527a0395d0Smrg 111532adc0320Smrg# User supplied flags override default flags 111542adc0320Smrgif test "x$LINT_FLAGS" != "x"; then 111552adc0320Smrg lint_options=$LINT_FLAGS 111567a0395d0Smrgfi 111577a0395d0Smrg 111582adc0320SmrgLINT_FLAGS=$lint_options 111597a0395d0Smrg 111602adc0320Smrg if test "x$LINT" != x; then 111617a0395d0Smrg LINT_TRUE= 111627a0395d0Smrg LINT_FALSE='#' 111637a0395d0Smrgelse 111647a0395d0Smrg LINT_TRUE='#' 111657a0395d0Smrg LINT_FALSE= 111667a0395d0Smrgfi 111677a0395d0Smrg 111687a0395d0Smrg 111697a0395d0Smrg 111707a0395d0Smrg 111712852888eSmrgac_config_files="$ac_config_files Makefile man/Makefile" 111727a0395d0Smrg 111737a0395d0Smrgcat >confcache <<\_ACEOF 111747a0395d0Smrg# This file is a shell script that caches the results of configure 111757a0395d0Smrg# tests run on this system so they can be shared between configure 111767a0395d0Smrg# scripts and configure runs, see configure's option --config-cache. 111777a0395d0Smrg# It is not useful on other systems. If it contains results you don't 111787a0395d0Smrg# want to keep, you may remove or edit it. 111797a0395d0Smrg# 111807a0395d0Smrg# config.status only pays attention to the cache file if you give it 111817a0395d0Smrg# the --recheck option to rerun configure. 111827a0395d0Smrg# 111837a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 111847a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 111857a0395d0Smrg# following values. 111867a0395d0Smrg 111877a0395d0Smrg_ACEOF 111887a0395d0Smrg 111897a0395d0Smrg# The following way of writing the cache mishandles newlines in values, 111907a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient. 111917a0395d0Smrg# So, we kill variables containing newlines. 111927a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 111937a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars. 111947a0395d0Smrg( 111957a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 111967a0395d0Smrg eval ac_val=\$$ac_var 111977a0395d0Smrg case $ac_val in #( 111987a0395d0Smrg *${as_nl}*) 111997a0395d0Smrg case $ac_var in #( 112002adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 112017366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 112027a0395d0Smrg esac 112037a0395d0Smrg case $ac_var in #( 112047a0395d0Smrg _ | IFS | as_nl) ;; #( 112057366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 112062adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 112077a0395d0Smrg esac ;; 112087a0395d0Smrg esac 112097a0395d0Smrg done 112107a0395d0Smrg 112117a0395d0Smrg (set) 2>&1 | 112127a0395d0Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 112137a0395d0Smrg *${as_nl}ac_space=\ *) 112142adc0320Smrg # `set' does not quote correctly, so add quotes: double-quote 112152adc0320Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 112167a0395d0Smrg sed -n \ 112177a0395d0Smrg "s/'/'\\\\''/g; 112187a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 112197a0395d0Smrg ;; #( 112207a0395d0Smrg *) 112217a0395d0Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 112227a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 112237a0395d0Smrg ;; 112247a0395d0Smrg esac | 112257a0395d0Smrg sort 112267a0395d0Smrg) | 112277a0395d0Smrg sed ' 112287a0395d0Smrg /^ac_cv_env_/b end 112297a0395d0Smrg t clear 112307a0395d0Smrg :clear 112317a0395d0Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 112327a0395d0Smrg t end 112337a0395d0Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 112347a0395d0Smrg :end' >>confcache 112357a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 112367a0395d0Smrg if test -w "$cache_file"; then 112372adc0320Smrg if test "x$cache_file" != "x/dev/null"; then 112382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 112397366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 112402adc0320Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 112412adc0320Smrg cat confcache >"$cache_file" 112422adc0320Smrg else 112432adc0320Smrg case $cache_file in #( 112442adc0320Smrg */* | ?:*) 112452adc0320Smrg mv -f confcache "$cache_file"$$ && 112462adc0320Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 112472adc0320Smrg *) 112482adc0320Smrg mv -f confcache "$cache_file" ;; 112492adc0320Smrg esac 112502adc0320Smrg fi 112512adc0320Smrg fi 112527a0395d0Smrg else 112532adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 112547366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 112557a0395d0Smrg fi 112567a0395d0Smrgfi 112577a0395d0Smrgrm -f confcache 112587a0395d0Smrg 112597a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 112607a0395d0Smrg# Let make expand exec_prefix. 112617a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 112627a0395d0Smrg 112637a0395d0SmrgDEFS=-DHAVE_CONFIG_H 112647a0395d0Smrg 112657a0395d0Smrgac_libobjs= 112667a0395d0Smrgac_ltlibobjs= 112672adc0320SmrgU= 112687a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 112697a0395d0Smrg # 1. Remove the extension, and $U if already installed. 112707a0395d0Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 112717366012aSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 112727a0395d0Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 112737a0395d0Smrg # will be set to the directory where LIBOBJS objects are built. 112742adc0320Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 112752adc0320Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 112767a0395d0Smrgdone 112777a0395d0SmrgLIBOBJS=$ac_libobjs 112787a0395d0Smrg 112797a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs 112807a0395d0Smrg 112817a0395d0Smrg 112827366012aSmrg if test -n "$EXEEXT"; then 112837366012aSmrg am__EXEEXT_TRUE= 112847366012aSmrg am__EXEEXT_FALSE='#' 112857366012aSmrgelse 112867366012aSmrg am__EXEEXT_TRUE='#' 112877366012aSmrg am__EXEEXT_FALSE= 112887366012aSmrgfi 112897366012aSmrg 112907a0395d0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 112912adc0320Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 112922adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 112937a0395d0Smrgfi 112947a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 112952adc0320Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 112962adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 112977a0395d0Smrgfi 112987a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 112992adc0320Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 113002adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 113017a0395d0Smrgfi 113027a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 113032adc0320Smrg as_fn_error $? "conditional \"LINT\" was never defined. 113042adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 113057a0395d0Smrgfi 113067a0395d0Smrg 113072adc0320Smrg: "${CONFIG_STATUS=./config.status}" 113087366012aSmrgac_write_fail=0 113097a0395d0Smrgac_clean_files_save=$ac_clean_files 113107a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 113112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 113127366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 113132adc0320Smrgas_write_fail=0 113142adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 113157a0395d0Smrg#! $SHELL 113167a0395d0Smrg# Generated by $as_me. 113177a0395d0Smrg# Run this file to recreate the current configuration. 113187a0395d0Smrg# Compiler output produced by configure, useful for debugging 113197a0395d0Smrg# configure, is in config.log if it exists. 113207a0395d0Smrg 113217a0395d0Smrgdebug=false 113227a0395d0Smrgac_cs_recheck=false 113237a0395d0Smrgac_cs_silent=false 113247a0395d0Smrg 113252adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL} 113262adc0320Smrgexport SHELL 113272adc0320Smrg_ASEOF 113282adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 113292adc0320Smrg## -------------------- ## 113302adc0320Smrg## M4sh Initialization. ## 113312adc0320Smrg## -------------------- ## 113327a0395d0Smrg 113337a0395d0Smrg# Be more Bourne compatible 113347a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 113352adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 113367a0395d0Smrg emulate sh 113377a0395d0Smrg NULLCMD=: 113387366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 113397a0395d0Smrg # is contrary to our usage. Disable this feature. 113407a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 113417a0395d0Smrg setopt NO_GLOB_SUBST 113427a0395d0Smrgelse 113432adc0320Smrg case `(set -o) 2>/dev/null` in #( 113442adc0320Smrg *posix*) : 113452adc0320Smrg set -o posix ;; #( 113462adc0320Smrg *) : 113472adc0320Smrg ;; 113487a0395d0Smrgesac 113497a0395d0Smrgfi 113507a0395d0Smrg 113517a0395d0Smrg 113527366012aSmrgas_nl=' 113537366012aSmrg' 113547366012aSmrgexport as_nl 113557366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 113567366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 113577366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 113587366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 113592adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 113602adc0320Smrg# but without wasting forks for bash or zsh. 113612adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 113622adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 113632adc0320Smrg as_echo='print -r --' 113642adc0320Smrg as_echo_n='print -rn --' 113652adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 113667366012aSmrg as_echo='printf %s\n' 113677366012aSmrg as_echo_n='printf %s' 113687366012aSmrgelse 113697366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 113707366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 113717366012aSmrg as_echo_n='/usr/ucb/echo -n' 113727a0395d0Smrg else 113737366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 113747366012aSmrg as_echo_n_body='eval 113757366012aSmrg arg=$1; 113762adc0320Smrg case $arg in #( 113777366012aSmrg *"$as_nl"*) 113787366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 113797366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 113807366012aSmrg esac; 113817366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 113827366012aSmrg ' 113837366012aSmrg export as_echo_n_body 113847366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 113857a0395d0Smrg fi 113867366012aSmrg export as_echo_body 113877366012aSmrg as_echo='sh -c $as_echo_body as_echo' 113887366012aSmrgfi 113897366012aSmrg 113907366012aSmrg# The user is always right. 113917366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 113927366012aSmrg PATH_SEPARATOR=: 113937366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 113947366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 113957366012aSmrg PATH_SEPARATOR=';' 113967366012aSmrg } 113977a0395d0Smrgfi 113987a0395d0Smrg 113997a0395d0Smrg 114007a0395d0Smrg# IFS 114017a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 114027a0395d0Smrg# there to prevent editors from complaining about space-tab. 114037a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 114047a0395d0Smrg# splitting by setting IFS to empty value.) 114057a0395d0SmrgIFS=" "" $as_nl" 114067a0395d0Smrg 114077a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 114082adc0320Smrgas_myself= 114092adc0320Smrgcase $0 in #(( 114107a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 114117a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114127a0395d0Smrgfor as_dir in $PATH 114137a0395d0Smrgdo 114147a0395d0Smrg IFS=$as_save_IFS 114157a0395d0Smrg test -z "$as_dir" && as_dir=. 114162adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 114172adc0320Smrg done 114187a0395d0SmrgIFS=$as_save_IFS 114197a0395d0Smrg 114207a0395d0Smrg ;; 114217a0395d0Smrgesac 114227a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 114237a0395d0Smrg# in which case we are not to be found in the path. 114247a0395d0Smrgif test "x$as_myself" = x; then 114257a0395d0Smrg as_myself=$0 114267a0395d0Smrgfi 114277a0395d0Smrgif test ! -f "$as_myself"; then 114287366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114292adc0320Smrg exit 1 114307a0395d0Smrgfi 114317a0395d0Smrg 114322adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 114332adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 114342adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 114352adc0320Smrg# trigger a bug in pdksh 5.2.14. 114362adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 114372adc0320Smrgdo eval test x\${$as_var+set} = xset \ 114382adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 114397a0395d0Smrgdone 114407a0395d0SmrgPS1='$ ' 114417a0395d0SmrgPS2='> ' 114427a0395d0SmrgPS4='+ ' 114437a0395d0Smrg 114447a0395d0Smrg# NLS nuisances. 114457366012aSmrgLC_ALL=C 114467366012aSmrgexport LC_ALL 114477366012aSmrgLANGUAGE=C 114487366012aSmrgexport LANGUAGE 114497a0395d0Smrg 114502adc0320Smrg# CDPATH. 114512adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 114522adc0320Smrg 114532adc0320Smrg 114542adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 114552adc0320Smrg# ---------------------------------------- 114562adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 114572adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 114582adc0320Smrg# script with STATUS, using 1 if that was 0. 114592adc0320Smrgas_fn_error () 114602adc0320Smrg{ 114612adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 114622adc0320Smrg if test "$4"; then 114632adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 114642adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 114652adc0320Smrg fi 114662adc0320Smrg $as_echo "$as_me: error: $2" >&2 114672adc0320Smrg as_fn_exit $as_status 114682adc0320Smrg} # as_fn_error 114692adc0320Smrg 114702adc0320Smrg 114712adc0320Smrg# as_fn_set_status STATUS 114722adc0320Smrg# ----------------------- 114732adc0320Smrg# Set $? to STATUS, without forking. 114742adc0320Smrgas_fn_set_status () 114752adc0320Smrg{ 114762adc0320Smrg return $1 114772adc0320Smrg} # as_fn_set_status 114782adc0320Smrg 114792adc0320Smrg# as_fn_exit STATUS 114802adc0320Smrg# ----------------- 114812adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 114822adc0320Smrgas_fn_exit () 114832adc0320Smrg{ 114842adc0320Smrg set +e 114852adc0320Smrg as_fn_set_status $1 114862adc0320Smrg exit $1 114872adc0320Smrg} # as_fn_exit 114882adc0320Smrg 114892adc0320Smrg# as_fn_unset VAR 114902adc0320Smrg# --------------- 114912adc0320Smrg# Portably unset VAR. 114922adc0320Smrgas_fn_unset () 114932adc0320Smrg{ 114942adc0320Smrg { eval $1=; unset $1;} 114952adc0320Smrg} 114962adc0320Smrgas_unset=as_fn_unset 114972adc0320Smrg# as_fn_append VAR VALUE 114982adc0320Smrg# ---------------------- 114992adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 115002adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 115012adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 115022adc0320Smrg# implementations. 115032adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 115042adc0320Smrg eval 'as_fn_append () 115052adc0320Smrg { 115062adc0320Smrg eval $1+=\$2 115072adc0320Smrg }' 115082adc0320Smrgelse 115092adc0320Smrg as_fn_append () 115102adc0320Smrg { 115112adc0320Smrg eval $1=\$$1\$2 115122adc0320Smrg } 115132adc0320Smrgfi # as_fn_append 115142adc0320Smrg 115152adc0320Smrg# as_fn_arith ARG... 115162adc0320Smrg# ------------------ 115172adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 115182adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 115192adc0320Smrg# must be portable across $(()) and expr. 115202adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 115212adc0320Smrg eval 'as_fn_arith () 115222adc0320Smrg { 115232adc0320Smrg as_val=$(( $* )) 115242adc0320Smrg }' 115252adc0320Smrgelse 115262adc0320Smrg as_fn_arith () 115272adc0320Smrg { 115282adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 115292adc0320Smrg } 115302adc0320Smrgfi # as_fn_arith 115312adc0320Smrg 115322adc0320Smrg 115337a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 115347a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 115357a0395d0Smrg as_expr=expr 115367a0395d0Smrgelse 115377a0395d0Smrg as_expr=false 115387a0395d0Smrgfi 115397a0395d0Smrg 115407a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 115417a0395d0Smrg as_basename=basename 115427a0395d0Smrgelse 115437a0395d0Smrg as_basename=false 115447a0395d0Smrgfi 115457a0395d0Smrg 115462adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 115472adc0320Smrg as_dirname=dirname 115482adc0320Smrgelse 115492adc0320Smrg as_dirname=false 115502adc0320Smrgfi 115517a0395d0Smrg 115527a0395d0Smrgas_me=`$as_basename -- "$0" || 115537a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 115547a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 115557a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 115567366012aSmrg$as_echo X/"$0" | 115577a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 115587a0395d0Smrg s//\1/ 115597a0395d0Smrg q 115607a0395d0Smrg } 115617a0395d0Smrg /^X\/\(\/\/\)$/{ 115627a0395d0Smrg s//\1/ 115637a0395d0Smrg q 115647a0395d0Smrg } 115657a0395d0Smrg /^X\/\(\/\).*/{ 115667a0395d0Smrg s//\1/ 115677a0395d0Smrg q 115687a0395d0Smrg } 115697a0395d0Smrg s/.*/./; q'` 115707a0395d0Smrg 115712adc0320Smrg# Avoid depending upon Character Ranges. 115722adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 115732adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 115742adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 115752adc0320Smrgas_cr_digits='0123456789' 115762adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 115777a0395d0Smrg 115787a0395d0SmrgECHO_C= ECHO_N= ECHO_T= 115792adc0320Smrgcase `echo -n x` in #((((( 115807a0395d0Smrg-n*) 115812adc0320Smrg case `echo 'xy\c'` in 115827a0395d0Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 115832adc0320Smrg xy) ECHO_C='\c';; 115842adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 115852adc0320Smrg ECHO_T=' ';; 115867a0395d0Smrg esac;; 115877a0395d0Smrg*) 115887a0395d0Smrg ECHO_N='-n';; 115897a0395d0Smrgesac 115907a0395d0Smrg 115917a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file 115927a0395d0Smrgif test -d conf$$.dir; then 115937a0395d0Smrg rm -f conf$$.dir/conf$$.file 115947a0395d0Smrgelse 115957a0395d0Smrg rm -f conf$$.dir 115967366012aSmrg mkdir conf$$.dir 2>/dev/null 115977366012aSmrgfi 115987366012aSmrgif (echo >conf$$.file) 2>/dev/null; then 115997366012aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 116007366012aSmrg as_ln_s='ln -s' 116017366012aSmrg # ... but there are two gotchas: 116027366012aSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 116037366012aSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 116047366012aSmrg # In both cases, we have to default to `cp -p'. 116057366012aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 116067366012aSmrg as_ln_s='cp -p' 116077366012aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 116087366012aSmrg as_ln_s=ln 116097366012aSmrg else 116107a0395d0Smrg as_ln_s='cp -p' 116117366012aSmrg fi 116127a0395d0Smrgelse 116137a0395d0Smrg as_ln_s='cp -p' 116147a0395d0Smrgfi 116157a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 116167a0395d0Smrgrmdir conf$$.dir 2>/dev/null 116177a0395d0Smrg 116182adc0320Smrg 116192adc0320Smrg# as_fn_mkdir_p 116202adc0320Smrg# ------------- 116212adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 116222adc0320Smrgas_fn_mkdir_p () 116232adc0320Smrg{ 116242adc0320Smrg 116252adc0320Smrg case $as_dir in #( 116262adc0320Smrg -*) as_dir=./$as_dir;; 116272adc0320Smrg esac 116282adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 116292adc0320Smrg as_dirs= 116302adc0320Smrg while :; do 116312adc0320Smrg case $as_dir in #( 116322adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 116332adc0320Smrg *) as_qdir=$as_dir;; 116342adc0320Smrg esac 116352adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 116362adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 116372adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 116382adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 116392adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 116402adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 116412adc0320Smrg$as_echo X"$as_dir" | 116422adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 116432adc0320Smrg s//\1/ 116442adc0320Smrg q 116452adc0320Smrg } 116462adc0320Smrg /^X\(\/\/\)[^/].*/{ 116472adc0320Smrg s//\1/ 116482adc0320Smrg q 116492adc0320Smrg } 116502adc0320Smrg /^X\(\/\/\)$/{ 116512adc0320Smrg s//\1/ 116522adc0320Smrg q 116532adc0320Smrg } 116542adc0320Smrg /^X\(\/\).*/{ 116552adc0320Smrg s//\1/ 116562adc0320Smrg q 116572adc0320Smrg } 116582adc0320Smrg s/.*/./; q'` 116592adc0320Smrg test -d "$as_dir" && break 116602adc0320Smrg done 116612adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 116622adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 116632adc0320Smrg 116642adc0320Smrg 116652adc0320Smrg} # as_fn_mkdir_p 116667a0395d0Smrgif mkdir -p . 2>/dev/null; then 116672adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 116687a0395d0Smrgelse 116697a0395d0Smrg test -d ./-p && rmdir ./-p 116707a0395d0Smrg as_mkdir_p=false 116717a0395d0Smrgfi 116727a0395d0Smrg 116737a0395d0Smrgif test -x / >/dev/null 2>&1; then 116747a0395d0Smrg as_test_x='test -x' 116757a0395d0Smrgelse 116767a0395d0Smrg if ls -dL / >/dev/null 2>&1; then 116777a0395d0Smrg as_ls_L_option=L 116787a0395d0Smrg else 116797a0395d0Smrg as_ls_L_option= 116807a0395d0Smrg fi 116817a0395d0Smrg as_test_x=' 116827a0395d0Smrg eval sh -c '\'' 116837a0395d0Smrg if test -d "$1"; then 116847366012aSmrg test -d "$1/."; 116857a0395d0Smrg else 116862adc0320Smrg case $1 in #( 116877366012aSmrg -*)set "./$1";; 116887a0395d0Smrg esac; 116892adc0320Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 116907a0395d0Smrg ???[sx]*):;;*)false;;esac;fi 116917a0395d0Smrg '\'' sh 116927a0395d0Smrg ' 116937a0395d0Smrgfi 116947a0395d0Smrgas_executable_p=$as_test_x 116957a0395d0Smrg 116967a0395d0Smrg# Sed expression to map a string onto a valid CPP name. 116977a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 116987a0395d0Smrg 116997a0395d0Smrg# Sed expression to map a string onto a valid variable name. 117007a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 117017a0395d0Smrg 117027a0395d0Smrg 117037a0395d0Smrgexec 6>&1 117042adc0320Smrg## ----------------------------------- ## 117052adc0320Smrg## Main body of $CONFIG_STATUS script. ## 117062adc0320Smrg## ----------------------------------- ## 117072adc0320Smrg_ASEOF 117082adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 117097a0395d0Smrg 117102adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117112adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to 117127a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their 117137a0395d0Smrg# values after options handling. 117147a0395d0Smrgac_log=" 1171596402570SmrgThis file was extended by xauth $as_me 1.0.7, which was 117162adc0320Smrggenerated by GNU Autoconf 2.68. Invocation command line was 117177a0395d0Smrg 117187a0395d0Smrg CONFIG_FILES = $CONFIG_FILES 117197a0395d0Smrg CONFIG_HEADERS = $CONFIG_HEADERS 117207a0395d0Smrg CONFIG_LINKS = $CONFIG_LINKS 117217a0395d0Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 117227a0395d0Smrg $ $0 $@ 117237a0395d0Smrg 117247a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 117257a0395d0Smrg" 117267a0395d0Smrg 117277a0395d0Smrg_ACEOF 117287a0395d0Smrg 117297366012aSmrgcase $ac_config_files in *" 117307366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 117317366012aSmrgesac 117327366012aSmrg 117337366012aSmrgcase $ac_config_headers in *" 117347366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 117357366012aSmrgesac 117367366012aSmrg 117377366012aSmrg 117387366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117397a0395d0Smrg# Files that config.status was made for. 117407a0395d0Smrgconfig_files="$ac_config_files" 117417a0395d0Smrgconfig_headers="$ac_config_headers" 117427a0395d0Smrgconfig_commands="$ac_config_commands" 117437a0395d0Smrg 117447a0395d0Smrg_ACEOF 117457a0395d0Smrg 117467366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117477a0395d0Smrgac_cs_usage="\ 117482adc0320Smrg\`$as_me' instantiates files and other configuration actions 117492adc0320Smrgfrom templates according to the current configuration. Unless the files 117502adc0320Smrgand actions are specified as TAGs, all are instantiated by default. 117517a0395d0Smrg 117522adc0320SmrgUsage: $0 [OPTION]... [TAG]... 117537a0395d0Smrg 117547a0395d0Smrg -h, --help print this help, then exit 117557a0395d0Smrg -V, --version print version number and configuration settings, then exit 117562adc0320Smrg --config print configuration, then exit 117577366012aSmrg -q, --quiet, --silent 117587366012aSmrg do not print progress messages 117597a0395d0Smrg -d, --debug don't remove temporary files 117607a0395d0Smrg --recheck update $as_me by reconfiguring in the same conditions 117617366012aSmrg --file=FILE[:TEMPLATE] 117627366012aSmrg instantiate the configuration file FILE 117637366012aSmrg --header=FILE[:TEMPLATE] 117647366012aSmrg instantiate the configuration header FILE 117657a0395d0Smrg 117667a0395d0SmrgConfiguration files: 117677a0395d0Smrg$config_files 117687a0395d0Smrg 117697a0395d0SmrgConfiguration headers: 117707a0395d0Smrg$config_headers 117717a0395d0Smrg 117727a0395d0SmrgConfiguration commands: 117737a0395d0Smrg$config_commands 117747a0395d0Smrg 117752adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 117767a0395d0Smrg 117777a0395d0Smrg_ACEOF 117787366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117792adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 117807a0395d0Smrgac_cs_version="\\ 1178196402570Smrgxauth config.status 1.0.7 117822adc0320Smrgconfigured by $0, generated by GNU Autoconf 2.68, 117832adc0320Smrg with options \\"\$ac_cs_config\\" 117847a0395d0Smrg 117852adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc. 117867a0395d0SmrgThis config.status script is free software; the Free Software Foundation 117877a0395d0Smrggives unlimited permission to copy, distribute and modify it." 117887a0395d0Smrg 117897a0395d0Smrgac_pwd='$ac_pwd' 117907a0395d0Smrgsrcdir='$srcdir' 117917a0395d0SmrgINSTALL='$INSTALL' 117927a0395d0SmrgMKDIR_P='$MKDIR_P' 117937366012aSmrgAWK='$AWK' 117947366012aSmrgtest -n "\$AWK" || AWK=awk 117957a0395d0Smrg_ACEOF 117967a0395d0Smrg 117977366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117987366012aSmrg# The default lists apply if the user does not specify any file. 117997a0395d0Smrgac_need_defaults=: 118007a0395d0Smrgwhile test $# != 0 118017a0395d0Smrgdo 118027a0395d0Smrg case $1 in 118032adc0320Smrg --*=?*) 118047a0395d0Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 118057a0395d0Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 118067a0395d0Smrg ac_shift=: 118077a0395d0Smrg ;; 118082adc0320Smrg --*=) 118092adc0320Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 118102adc0320Smrg ac_optarg= 118112adc0320Smrg ac_shift=: 118122adc0320Smrg ;; 118137a0395d0Smrg *) 118147a0395d0Smrg ac_option=$1 118157a0395d0Smrg ac_optarg=$2 118167a0395d0Smrg ac_shift=shift 118177a0395d0Smrg ;; 118187a0395d0Smrg esac 118197a0395d0Smrg 118207a0395d0Smrg case $ac_option in 118217a0395d0Smrg # Handling of the options. 118227a0395d0Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 118237a0395d0Smrg ac_cs_recheck=: ;; 118247a0395d0Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 118257366012aSmrg $as_echo "$ac_cs_version"; exit ;; 118262adc0320Smrg --config | --confi | --conf | --con | --co | --c ) 118272adc0320Smrg $as_echo "$ac_cs_config"; exit ;; 118287a0395d0Smrg --debug | --debu | --deb | --de | --d | -d ) 118297a0395d0Smrg debug=: ;; 118307a0395d0Smrg --file | --fil | --fi | --f ) 118317a0395d0Smrg $ac_shift 118327366012aSmrg case $ac_optarg in 118337366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 118342adc0320Smrg '') as_fn_error $? "missing file argument" ;; 118357366012aSmrg esac 118362adc0320Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 118377a0395d0Smrg ac_need_defaults=false;; 118387a0395d0Smrg --header | --heade | --head | --hea ) 118397a0395d0Smrg $ac_shift 118407366012aSmrg case $ac_optarg in 118417366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 118427366012aSmrg esac 118432adc0320Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 118447a0395d0Smrg ac_need_defaults=false;; 118457a0395d0Smrg --he | --h) 118467a0395d0Smrg # Conflict between --help and --header 118472adc0320Smrg as_fn_error $? "ambiguous option: \`$1' 118482adc0320SmrgTry \`$0 --help' for more information.";; 118497a0395d0Smrg --help | --hel | -h ) 118507366012aSmrg $as_echo "$ac_cs_usage"; exit ;; 118517a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 118527a0395d0Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 118537a0395d0Smrg ac_cs_silent=: ;; 118547a0395d0Smrg 118557a0395d0Smrg # This is an error. 118562adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$1' 118572adc0320SmrgTry \`$0 --help' for more information." ;; 118587a0395d0Smrg 118592adc0320Smrg *) as_fn_append ac_config_targets " $1" 118607a0395d0Smrg ac_need_defaults=false ;; 118617a0395d0Smrg 118627a0395d0Smrg esac 118637a0395d0Smrg shift 118647a0395d0Smrgdone 118657a0395d0Smrg 118667a0395d0Smrgac_configure_extra_args= 118677a0395d0Smrg 118687a0395d0Smrgif $ac_cs_silent; then 118697a0395d0Smrg exec 6>/dev/null 118707a0395d0Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 118717a0395d0Smrgfi 118727a0395d0Smrg 118737a0395d0Smrg_ACEOF 118747366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118757a0395d0Smrgif \$ac_cs_recheck; then 118767366012aSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 118777366012aSmrg shift 118787366012aSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 118797366012aSmrg CONFIG_SHELL='$SHELL' 118807a0395d0Smrg export CONFIG_SHELL 118817366012aSmrg exec "\$@" 118827a0395d0Smrgfi 118837a0395d0Smrg 118847a0395d0Smrg_ACEOF 118857366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118867a0395d0Smrgexec 5>>config.log 118877a0395d0Smrg{ 118887a0395d0Smrg echo 118897a0395d0Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 118907a0395d0Smrg## Running $as_me. ## 118917a0395d0Smrg_ASBOX 118927366012aSmrg $as_echo "$ac_log" 118937a0395d0Smrg} >&5 118947a0395d0Smrg 118957a0395d0Smrg_ACEOF 118967366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118977a0395d0Smrg# 118987a0395d0Smrg# INIT-COMMANDS 118997a0395d0Smrg# 119007a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 119017a0395d0Smrg 119027a0395d0Smrg_ACEOF 119037a0395d0Smrg 119047366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119057a0395d0Smrg 119067a0395d0Smrg# Handling of arguments. 119077a0395d0Smrgfor ac_config_target in $ac_config_targets 119087a0395d0Smrgdo 119097a0395d0Smrg case $ac_config_target in 119107a0395d0Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 119117a0395d0Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 119127a0395d0Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 119132852888eSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 119147a0395d0Smrg 119152adc0320Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 119167a0395d0Smrg esac 119177a0395d0Smrgdone 119187a0395d0Smrg 119197a0395d0Smrg 119207a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate, 119217a0395d0Smrg# then the envvar interface is used. Set only those that are not. 119227a0395d0Smrg# We use the long form for the default assignment because of an extremely 119237a0395d0Smrg# bizarre bug on SunOS 4.1.3. 119247a0395d0Smrgif $ac_need_defaults; then 119257a0395d0Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 119267a0395d0Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 119277a0395d0Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 119287a0395d0Smrgfi 119297a0395d0Smrg 119307a0395d0Smrg# Have a temporary directory for convenience. Make it in the build tree 119317a0395d0Smrg# simply because there is no reason against having it here, and in addition, 119327a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems. 119337a0395d0Smrg# Hook for its removal unless debugging. 119347a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned: 119357a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'. 119367a0395d0Smrg$debug || 119377a0395d0Smrg{ 119382adc0320Smrg tmp= ac_tmp= 119397a0395d0Smrg trap 'exit_status=$? 119402adc0320Smrg : "${ac_tmp:=$tmp}" 119412adc0320Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 119427a0395d0Smrg' 0 119432adc0320Smrg trap 'as_fn_exit 1' 1 2 13 15 119447a0395d0Smrg} 119457a0395d0Smrg# Create a (secure) tmp directory for tmp files. 119467a0395d0Smrg 119477a0395d0Smrg{ 119487a0395d0Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 119492adc0320Smrg test -d "$tmp" 119507a0395d0Smrg} || 119517a0395d0Smrg{ 119527a0395d0Smrg tmp=./conf$$-$RANDOM 119537a0395d0Smrg (umask 077 && mkdir "$tmp") 119542adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 119552adc0320Smrgac_tmp=$tmp 119567a0395d0Smrg 119577366012aSmrg# Set up the scripts for CONFIG_FILES section. 119587366012aSmrg# No need to generate them if there are no CONFIG_FILES. 119597366012aSmrg# This happens for instance with `./config.status config.h'. 119607a0395d0Smrgif test -n "$CONFIG_FILES"; then 119617a0395d0Smrg 119627a0395d0Smrg 119632adc0320Smrgac_cr=`echo X | tr X '\015'` 119642adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 119652adc0320Smrg# But we know of no other shell where ac_cr would be empty at this 119662adc0320Smrg# point, so we can use a bashism as a fallback. 119672adc0320Smrgif test "x$ac_cr" = x; then 119682adc0320Smrg eval ac_cr=\$\'\\r\' 119692adc0320Smrgfi 119707366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 119717366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 119727366012aSmrg ac_cs_awk_cr='\\r' 119737366012aSmrgelse 119747366012aSmrg ac_cs_awk_cr=$ac_cr 119757a0395d0Smrgfi 119767a0395d0Smrg 119772adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 119787a0395d0Smrg_ACEOF 119797a0395d0Smrg 119807a0395d0Smrg 119817366012aSmrg{ 119827366012aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 119837366012aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 119847366012aSmrg echo "_ACEOF" 119857366012aSmrg} >conf$$subs.sh || 119862adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 119872adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 119887a0395d0Smrgac_delim='%!_!# ' 119897a0395d0Smrgfor ac_last_try in false false false false false :; do 119907366012aSmrg . ./conf$$subs.sh || 119912adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 119927a0395d0Smrg 119937366012aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 119947366012aSmrg if test $ac_delim_n = $ac_delim_num; then 119957a0395d0Smrg break 119967a0395d0Smrg elif $ac_last_try; then 119972adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 119987a0395d0Smrg else 119997a0395d0Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 120007a0395d0Smrg fi 120017a0395d0Smrgdone 120027366012aSmrgrm -f conf$$subs.sh 120037a0395d0Smrg 120047366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120052adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 120067366012aSmrg_ACEOF 120077366012aSmrgsed -n ' 120087366012aSmrgh 120097366012aSmrgs/^/S["/; s/!.*/"]=/ 120107366012aSmrgp 120117366012aSmrgg 120127366012aSmrgs/^[^!]*!// 120137366012aSmrg:repl 120147366012aSmrgt repl 120157366012aSmrgs/'"$ac_delim"'$// 120167366012aSmrgt delim 120177366012aSmrg:nl 120187366012aSmrgh 120192adc0320Smrgs/\(.\{148\}\)..*/\1/ 120207366012aSmrgt more1 120217366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 120227366012aSmrgp 120237366012aSmrgn 120247366012aSmrgb repl 120257366012aSmrg:more1 120267366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 120277366012aSmrgp 120287366012aSmrgg 120297366012aSmrgs/.\{148\}// 120307366012aSmrgt nl 120317366012aSmrg:delim 120327366012aSmrgh 120332adc0320Smrgs/\(.\{148\}\)..*/\1/ 120347366012aSmrgt more2 120357366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 120367366012aSmrgp 120377366012aSmrgb 120387366012aSmrg:more2 120397366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 120407366012aSmrgp 120417366012aSmrgg 120427366012aSmrgs/.\{148\}// 120437366012aSmrgt delim 120447366012aSmrg' <conf$$subs.awk | sed ' 120457366012aSmrg/^[^""]/{ 120467366012aSmrg N 120477366012aSmrg s/\n// 120487366012aSmrg} 120497366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 120507366012aSmrgrm -f conf$$subs.awk 120517366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120527366012aSmrg_ACAWK 120532adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 120547366012aSmrg for (key in S) S_is_set[key] = 1 120557366012aSmrg FS = "" 120567366012aSmrg 120577366012aSmrg} 120587366012aSmrg{ 120597366012aSmrg line = $ 0 120607366012aSmrg nfields = split(line, field, "@") 120617366012aSmrg substed = 0 120627366012aSmrg len = length(field[1]) 120637366012aSmrg for (i = 2; i < nfields; i++) { 120647366012aSmrg key = field[i] 120657366012aSmrg keylen = length(key) 120667366012aSmrg if (S_is_set[key]) { 120677366012aSmrg value = S[key] 120687366012aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 120697366012aSmrg len += length(value) + length(field[++i]) 120707366012aSmrg substed = 1 120717366012aSmrg } else 120727366012aSmrg len += 1 + keylen 120737366012aSmrg } 120747366012aSmrg 120757366012aSmrg print line 120767366012aSmrg} 120777a0395d0Smrg 120787366012aSmrg_ACAWK 120797a0395d0Smrg_ACEOF 120807366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120817366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 120827366012aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 120837366012aSmrgelse 120847366012aSmrg cat 120852adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 120862adc0320Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 120877a0395d0Smrg_ACEOF 120887a0395d0Smrg 120892adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 120902adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 120917a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty 120927a0395d0Smrg# (actually we leave an empty line to preserve line numbers). 120937a0395d0Smrgif test "x$srcdir" = x.; then 120942adc0320Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 120952adc0320Smrgh 120962adc0320Smrgs/// 120972adc0320Smrgs/^/:/ 120982adc0320Smrgs/[ ]*$/:/ 120992adc0320Smrgs/:\$(srcdir):/:/g 121002adc0320Smrgs/:\${srcdir}:/:/g 121012adc0320Smrgs/:@srcdir@:/:/g 121022adc0320Smrgs/^:*// 121037a0395d0Smrgs/:*$// 121042adc0320Smrgx 121052adc0320Smrgs/\(=[ ]*\).*/\1/ 121062adc0320SmrgG 121072adc0320Smrgs/\n// 121087a0395d0Smrgs/^[^=]*=[ ]*$// 121097a0395d0Smrg}' 121107a0395d0Smrgfi 121117a0395d0Smrg 121127366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 121137a0395d0Smrgfi # test -n "$CONFIG_FILES" 121147a0395d0Smrg 121157366012aSmrg# Set up the scripts for CONFIG_HEADERS section. 121167366012aSmrg# No need to generate them if there are no CONFIG_HEADERS. 121177366012aSmrg# This happens for instance with `./config.status Makefile'. 121187366012aSmrgif test -n "$CONFIG_HEADERS"; then 121192adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 121207366012aSmrgBEGIN { 121217366012aSmrg_ACEOF 121227366012aSmrg 121237366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 121247366012aSmrg# here-document in config.status, that substitutes the proper values into 121257366012aSmrg# config.h.in to produce config.h. 121267366012aSmrg 121277366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 121287366012aSmrg# handling of long lines. 121297366012aSmrgac_delim='%!_!# ' 121307366012aSmrgfor ac_last_try in false false :; do 121312adc0320Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 121322adc0320Smrg if test -z "$ac_tt"; then 121337366012aSmrg break 121347366012aSmrg elif $ac_last_try; then 121352adc0320Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 121367366012aSmrg else 121377366012aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 121387366012aSmrg fi 121397366012aSmrgdone 121407366012aSmrg 121417366012aSmrg# For the awk script, D is an array of macro values keyed by name, 121427366012aSmrg# likewise P contains macro parameters if any. Preserve backslash 121437366012aSmrg# newline sequences. 121447366012aSmrg 121457366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 121467366012aSmrgsed -n ' 121477366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 121487366012aSmrgt rset 121497366012aSmrg:rset 121507366012aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 121517366012aSmrgt def 121527366012aSmrgd 121537366012aSmrg:def 121547366012aSmrgs/\\$// 121557366012aSmrgt bsnl 121567366012aSmrgs/["\\]/\\&/g 121577366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 121587366012aSmrgD["\1"]=" \3"/p 121597366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 121607366012aSmrgd 121617366012aSmrg:bsnl 121627366012aSmrgs/["\\]/\\&/g 121637366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 121647366012aSmrgD["\1"]=" \3\\\\\\n"\\/p 121657366012aSmrgt cont 121667366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 121677366012aSmrgt cont 121687366012aSmrgd 121697366012aSmrg:cont 121707366012aSmrgn 121717366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 121727366012aSmrgt clear 121737366012aSmrg:clear 121747366012aSmrgs/\\$// 121757366012aSmrgt bsnlc 121767366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 121777366012aSmrgd 121787366012aSmrg:bsnlc 121797366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 121807366012aSmrgb cont 121817366012aSmrg' <confdefs.h | sed ' 121827366012aSmrgs/'"$ac_delim"'/"\\\ 121837366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 121847366012aSmrg 121857366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121867366012aSmrg for (key in D) D_is_set[key] = 1 121877366012aSmrg FS = "" 121887366012aSmrg} 121897366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 121907366012aSmrg line = \$ 0 121917366012aSmrg split(line, arg, " ") 121927366012aSmrg if (arg[1] == "#") { 121937366012aSmrg defundef = arg[2] 121947366012aSmrg mac1 = arg[3] 121957366012aSmrg } else { 121967366012aSmrg defundef = substr(arg[1], 2) 121977366012aSmrg mac1 = arg[2] 121987366012aSmrg } 121997366012aSmrg split(mac1, mac2, "(") #) 122007366012aSmrg macro = mac2[1] 122017366012aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 122027366012aSmrg if (D_is_set[macro]) { 122037366012aSmrg # Preserve the white space surrounding the "#". 122047366012aSmrg print prefix "define", macro P[macro] D[macro] 122057366012aSmrg next 122067366012aSmrg } else { 122077366012aSmrg # Replace #undef with comments. This is necessary, for example, 122087366012aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 122097366012aSmrg # on some systems where configure will not decide to define it. 122107366012aSmrg if (defundef == "undef") { 122117366012aSmrg print "/*", prefix defundef, macro, "*/" 122127366012aSmrg next 122137366012aSmrg } 122147366012aSmrg } 122157366012aSmrg} 122167366012aSmrg{ print } 122177366012aSmrg_ACAWK 122187366012aSmrg_ACEOF 122197366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122202adc0320Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 122217366012aSmrgfi # test -n "$CONFIG_HEADERS" 122227366012aSmrg 122237a0395d0Smrg 122247366012aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 122257366012aSmrgshift 122267366012aSmrgfor ac_tag 122277a0395d0Smrgdo 122287a0395d0Smrg case $ac_tag in 122297a0395d0Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 122307a0395d0Smrg esac 122317a0395d0Smrg case $ac_mode$ac_tag in 122327a0395d0Smrg :[FHL]*:*);; 122332adc0320Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 122347a0395d0Smrg :[FH]-) ac_tag=-:-;; 122357a0395d0Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 122367a0395d0Smrg esac 122377a0395d0Smrg ac_save_IFS=$IFS 122387a0395d0Smrg IFS=: 122397a0395d0Smrg set x $ac_tag 122407a0395d0Smrg IFS=$ac_save_IFS 122417a0395d0Smrg shift 122427a0395d0Smrg ac_file=$1 122437a0395d0Smrg shift 122447a0395d0Smrg 122457a0395d0Smrg case $ac_mode in 122467a0395d0Smrg :L) ac_source=$1;; 122477a0395d0Smrg :[FH]) 122487a0395d0Smrg ac_file_inputs= 122497a0395d0Smrg for ac_f 122507a0395d0Smrg do 122517a0395d0Smrg case $ac_f in 122522adc0320Smrg -) ac_f="$ac_tmp/stdin";; 122537a0395d0Smrg *) # Look for the file first in the build tree, then in the source tree 122547a0395d0Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 122557a0395d0Smrg # because $ac_f cannot contain `:'. 122567a0395d0Smrg test -f "$ac_f" || 122577a0395d0Smrg case $ac_f in 122587a0395d0Smrg [\\/$]*) false;; 122597a0395d0Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 122607a0395d0Smrg esac || 122612adc0320Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 122627a0395d0Smrg esac 122637366012aSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 122642adc0320Smrg as_fn_append ac_file_inputs " '$ac_f'" 122657a0395d0Smrg done 122667a0395d0Smrg 122677a0395d0Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 122687a0395d0Smrg # use $as_me), people would be surprised to read: 122697a0395d0Smrg # /* config.h. Generated by config.status. */ 122707366012aSmrg configure_input='Generated from '` 122717366012aSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 122727366012aSmrg `' by configure.' 122737a0395d0Smrg if test x"$ac_file" != x-; then 122747a0395d0Smrg configure_input="$ac_file. $configure_input" 122752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 122767366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;} 122777a0395d0Smrg fi 122787366012aSmrg # Neutralize special characters interpreted by sed in replacement strings. 122797366012aSmrg case $configure_input in #( 122807366012aSmrg *\&* | *\|* | *\\* ) 122817366012aSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 122827366012aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 122837366012aSmrg *) ac_sed_conf_input=$configure_input;; 122847366012aSmrg esac 122857a0395d0Smrg 122867a0395d0Smrg case $ac_tag in 122872adc0320Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 122882adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 122897a0395d0Smrg esac 122907a0395d0Smrg ;; 122917a0395d0Smrg esac 122927a0395d0Smrg 122937a0395d0Smrg ac_dir=`$as_dirname -- "$ac_file" || 122947a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 122957a0395d0Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 122967a0395d0Smrg X"$ac_file" : 'X\(//\)$' \| \ 122977a0395d0Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 122987366012aSmrg$as_echo X"$ac_file" | 122997a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 123007a0395d0Smrg s//\1/ 123017a0395d0Smrg q 123027a0395d0Smrg } 123037a0395d0Smrg /^X\(\/\/\)[^/].*/{ 123047a0395d0Smrg s//\1/ 123057a0395d0Smrg q 123067a0395d0Smrg } 123077a0395d0Smrg /^X\(\/\/\)$/{ 123087a0395d0Smrg s//\1/ 123097a0395d0Smrg q 123107a0395d0Smrg } 123117a0395d0Smrg /^X\(\/\).*/{ 123127a0395d0Smrg s//\1/ 123137a0395d0Smrg q 123147a0395d0Smrg } 123157a0395d0Smrg s/.*/./; q'` 123162adc0320Smrg as_dir="$ac_dir"; as_fn_mkdir_p 123177a0395d0Smrg ac_builddir=. 123187a0395d0Smrg 123197a0395d0Smrgcase "$ac_dir" in 123207a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 123217a0395d0Smrg*) 123227366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 123237a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 123247366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 123257a0395d0Smrg case $ac_top_builddir_sub in 123267a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 123277a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 123287a0395d0Smrg esac ;; 123297a0395d0Smrgesac 123307a0395d0Smrgac_abs_top_builddir=$ac_pwd 123317a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 123327a0395d0Smrg# for backward compatibility: 123337a0395d0Smrgac_top_builddir=$ac_top_build_prefix 123347a0395d0Smrg 123357a0395d0Smrgcase $srcdir in 123367a0395d0Smrg .) # We are building in place. 123377a0395d0Smrg ac_srcdir=. 123387a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 123397a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 123407a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 123417a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 123427a0395d0Smrg ac_top_srcdir=$srcdir 123437a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 123447a0395d0Smrg *) # Relative name. 123457a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 123467a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 123477a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 123487a0395d0Smrgesac 123497a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 123507a0395d0Smrg 123517a0395d0Smrg 123527a0395d0Smrg case $ac_mode in 123537a0395d0Smrg :F) 123547a0395d0Smrg # 123557a0395d0Smrg # CONFIG_FILE 123567a0395d0Smrg # 123577a0395d0Smrg 123587a0395d0Smrg case $INSTALL in 123597a0395d0Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 123607a0395d0Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 123617a0395d0Smrg esac 123627a0395d0Smrg ac_MKDIR_P=$MKDIR_P 123637a0395d0Smrg case $MKDIR_P in 123647a0395d0Smrg [\\/$]* | ?:[\\/]* ) ;; 123657a0395d0Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 123667a0395d0Smrg esac 123677a0395d0Smrg_ACEOF 123687a0395d0Smrg 123697366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123707a0395d0Smrg# If the template does not know about datarootdir, expand it. 123717a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60. 123727a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen= 123737366012aSmrgac_sed_dataroot=' 123747366012aSmrg/datarootdir/ { 123757a0395d0Smrg p 123767a0395d0Smrg q 123777a0395d0Smrg} 123787a0395d0Smrg/@datadir@/p 123797a0395d0Smrg/@docdir@/p 123807a0395d0Smrg/@infodir@/p 123817a0395d0Smrg/@localedir@/p 123822adc0320Smrg/@mandir@/p' 123837366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 123847a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;; 123857a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 123862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 123877366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 123887a0395d0Smrg_ACEOF 123897366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123907a0395d0Smrg ac_datarootdir_hack=' 123917a0395d0Smrg s&@datadir@&$datadir&g 123927a0395d0Smrg s&@docdir@&$docdir&g 123937a0395d0Smrg s&@infodir@&$infodir&g 123947a0395d0Smrg s&@localedir@&$localedir&g 123957a0395d0Smrg s&@mandir@&$mandir&g 123962adc0320Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 123977a0395d0Smrgesac 123987a0395d0Smrg_ACEOF 123997a0395d0Smrg 124007a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'. 124017a0395d0Smrg# Shell code in configure.ac might set extrasub. 124027a0395d0Smrg# FIXME: do we really want to maintain this feature? 124037366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124047366012aSmrgac_sed_extra="$ac_vpsub 124057a0395d0Smrg$extrasub 124067a0395d0Smrg_ACEOF 124077366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124087a0395d0Smrg:t 124097a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 124107366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 124117a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 124127366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 124137a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t 124147a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 124157a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 124167a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 124177a0395d0Smrgs&@builddir@&$ac_builddir&;t t 124187a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 124197a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 124207a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t 124217a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 124227a0395d0Smrg$ac_datarootdir_hack 124237366012aSmrg" 124242adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 124252adc0320Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 124267a0395d0Smrg 124277a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 124282adc0320Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 124292adc0320Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 124302adc0320Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 124312adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 124322adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&5 124337366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 124342adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 124357a0395d0Smrg 124362adc0320Smrg rm -f "$ac_tmp/stdin" 124377a0395d0Smrg case $ac_file in 124382adc0320Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 124392adc0320Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 124407366012aSmrg esac \ 124412adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 124427a0395d0Smrg ;; 124437a0395d0Smrg :H) 124447a0395d0Smrg # 124457a0395d0Smrg # CONFIG_HEADER 124467a0395d0Smrg # 124477a0395d0Smrg if test x"$ac_file" != x-; then 124487366012aSmrg { 124497366012aSmrg $as_echo "/* $configure_input */" \ 124502adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 124512adc0320Smrg } >"$ac_tmp/config.h" \ 124522adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 124532adc0320Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 124542adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 124557366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 124567a0395d0Smrg else 124577366012aSmrg rm -f "$ac_file" 124582adc0320Smrg mv "$ac_tmp/config.h" "$ac_file" \ 124592adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 124607a0395d0Smrg fi 124617a0395d0Smrg else 124627366012aSmrg $as_echo "/* $configure_input */" \ 124632adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 124642adc0320Smrg || as_fn_error $? "could not create -" "$LINENO" 5 124657a0395d0Smrg fi 124667366012aSmrg# Compute "$ac_file"'s index in $config_headers. 124677366012aSmrg_am_arg="$ac_file" 124687a0395d0Smrg_am_stamp_count=1 124697a0395d0Smrgfor _am_header in $config_headers :; do 124707a0395d0Smrg case $_am_header in 124717a0395d0Smrg $_am_arg | $_am_arg:* ) 124727a0395d0Smrg break ;; 124737a0395d0Smrg * ) 124747a0395d0Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 124757a0395d0Smrg esac 124767a0395d0Smrgdone 124777a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 124787a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124797a0395d0Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 124807a0395d0Smrg X"$_am_arg" : 'X\(//\)$' \| \ 124817a0395d0Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 124827366012aSmrg$as_echo X"$_am_arg" | 124837a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 124847a0395d0Smrg s//\1/ 124857a0395d0Smrg q 124867a0395d0Smrg } 124877a0395d0Smrg /^X\(\/\/\)[^/].*/{ 124887a0395d0Smrg s//\1/ 124897a0395d0Smrg q 124907a0395d0Smrg } 124917a0395d0Smrg /^X\(\/\/\)$/{ 124927a0395d0Smrg s//\1/ 124937a0395d0Smrg q 124947a0395d0Smrg } 124957a0395d0Smrg /^X\(\/\).*/{ 124967a0395d0Smrg s//\1/ 124977a0395d0Smrg q 124987a0395d0Smrg } 124997a0395d0Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 125007a0395d0Smrg ;; 125017a0395d0Smrg 125022adc0320Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 125037366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 125047a0395d0Smrg ;; 125057a0395d0Smrg esac 125067a0395d0Smrg 125077a0395d0Smrg 125087a0395d0Smrg case $ac_file$ac_mode in 125097366012aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 125107366012aSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 125117366012aSmrg # are listed without --file. Let's play safe and only enable the eval 125127366012aSmrg # if we detect the quoting. 125137366012aSmrg case $CONFIG_FILES in 125147366012aSmrg *\'*) eval set x "$CONFIG_FILES" ;; 125157366012aSmrg *) set x $CONFIG_FILES ;; 125167366012aSmrg esac 125177366012aSmrg shift 125187366012aSmrg for mf 125197366012aSmrg do 125207366012aSmrg # Strip MF so we end up with the name of the file. 125217366012aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 125227366012aSmrg # Check whether this is an Automake generated Makefile or not. 125237366012aSmrg # We used to match only the files named `Makefile.in', but 125247366012aSmrg # some people rename them; so instead we look at the file content. 125257366012aSmrg # Grep'ing the first line is not enough: some people post-process 125267366012aSmrg # each Makefile.in and add a new line on top of each file to say so. 125277366012aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 125287366012aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 125297366012aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 125307366012aSmrg dirpart=`$as_dirname -- "$mf" || 125317a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 125327a0395d0Smrg X"$mf" : 'X\(//\)[^/]' \| \ 125337a0395d0Smrg X"$mf" : 'X\(//\)$' \| \ 125347a0395d0Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 125357366012aSmrg$as_echo X"$mf" | 125367a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 125377a0395d0Smrg s//\1/ 125387a0395d0Smrg q 125397a0395d0Smrg } 125407a0395d0Smrg /^X\(\/\/\)[^/].*/{ 125417a0395d0Smrg s//\1/ 125427a0395d0Smrg q 125437a0395d0Smrg } 125447a0395d0Smrg /^X\(\/\/\)$/{ 125457a0395d0Smrg s//\1/ 125467a0395d0Smrg q 125477a0395d0Smrg } 125487a0395d0Smrg /^X\(\/\).*/{ 125497a0395d0Smrg s//\1/ 125507a0395d0Smrg q 125517a0395d0Smrg } 125527a0395d0Smrg s/.*/./; q'` 125537366012aSmrg else 125547366012aSmrg continue 125557366012aSmrg fi 125567366012aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 125577366012aSmrg # from the Makefile without running `make'. 125587366012aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 125597366012aSmrg test -z "$DEPDIR" && continue 125607366012aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 125617366012aSmrg test -z "am__include" && continue 125627366012aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 125637366012aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 125647366012aSmrg U=`sed -n 's/^U = //p' < "$mf"` 125657366012aSmrg # Find all dependency output files, they are included files with 125667366012aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 125677366012aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 125687366012aSmrg # expansion. 125697366012aSmrg for file in `sed -n " 125707366012aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 125717366012aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 125727366012aSmrg # Make sure the directory exists. 125737366012aSmrg test -f "$dirpart/$file" && continue 125747366012aSmrg fdir=`$as_dirname -- "$file" || 125757a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 125767a0395d0Smrg X"$file" : 'X\(//\)[^/]' \| \ 125777a0395d0Smrg X"$file" : 'X\(//\)$' \| \ 125787a0395d0Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 125797366012aSmrg$as_echo X"$file" | 125807a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 125817a0395d0Smrg s//\1/ 125827a0395d0Smrg q 125837a0395d0Smrg } 125847a0395d0Smrg /^X\(\/\/\)[^/].*/{ 125857a0395d0Smrg s//\1/ 125867a0395d0Smrg q 125877a0395d0Smrg } 125887a0395d0Smrg /^X\(\/\/\)$/{ 125897a0395d0Smrg s//\1/ 125907a0395d0Smrg q 125917a0395d0Smrg } 125927a0395d0Smrg /^X\(\/\).*/{ 125937a0395d0Smrg s//\1/ 125947a0395d0Smrg q 125957a0395d0Smrg } 125967a0395d0Smrg s/.*/./; q'` 125972adc0320Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 125987366012aSmrg # echo "creating $dirpart/$file" 125997366012aSmrg echo '# dummy' > "$dirpart/$file" 126007366012aSmrg done 126017a0395d0Smrg done 126027366012aSmrg} 126037a0395d0Smrg ;; 126047a0395d0Smrg 126057a0395d0Smrg esac 126067a0395d0Smrgdone # for ac_tag 126077a0395d0Smrg 126087a0395d0Smrg 126092adc0320Smrgas_fn_exit 0 126107a0395d0Smrg_ACEOF 126117a0395d0Smrgac_clean_files=$ac_clean_files_save 126127a0395d0Smrg 126137366012aSmrgtest $ac_write_fail = 0 || 126142adc0320Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 126157366012aSmrg 126167a0395d0Smrg 126177a0395d0Smrg# configure is writing to config.log, and then calls config.status. 126187a0395d0Smrg# config.status does its own redirection, appending to config.log. 126197a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 126207a0395d0Smrg# by configure, so config.status won't be able to write to it; its 126217a0395d0Smrg# output is simply discarded. So we exec the FD to /dev/null, 126227a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and 126237a0395d0Smrg# appended to by config.status. When coming back to configure, we 126247a0395d0Smrg# need to make the FD available again. 126257a0395d0Smrgif test "$no_create" != yes; then 126267a0395d0Smrg ac_cs_success=: 126277a0395d0Smrg ac_config_status_args= 126287a0395d0Smrg test "$silent" = yes && 126297a0395d0Smrg ac_config_status_args="$ac_config_status_args --quiet" 126307a0395d0Smrg exec 5>/dev/null 126317a0395d0Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 126327a0395d0Smrg exec 5>>config.log 126337a0395d0Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 126347a0395d0Smrg # would make configure fail if this is the last instruction. 126352adc0320Smrg $ac_cs_success || as_fn_exit 1 126367a0395d0Smrgfi 126377366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 126382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 126397366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 126407366012aSmrgfi 126417a0395d0Smrg 12642