configure revision 8a355152
18108eb18Smrg#! /bin/sh 28108eb18Smrg# Guess values for system-dependent variables and create Makefiles. 38a355152Smrg# Generated by GNU Autoconf 2.69 for xsm 1.0.4. 48108eb18Smrg# 58108eb18Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 68108eb18Smrg# 71a650d1eSmrg# 88a355152Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 91a650d1eSmrg# 101a650d1eSmrg# 118108eb18Smrg# This configure script is free software; the Free Software Foundation 128108eb18Smrg# gives unlimited permission to copy, distribute and modify it. 131a650d1eSmrg## -------------------- ## 141a650d1eSmrg## M4sh Initialization. ## 151a650d1eSmrg## -------------------- ## 168108eb18Smrg 171a650d1eSmrg# Be more Bourne compatible 181a650d1eSmrgDUALCASE=1; export DUALCASE # for MKS sh 191a650d1eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 208108eb18Smrg emulate sh 218108eb18Smrg NULLCMD=: 221a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 238108eb18Smrg # is contrary to our usage. Disable this feature. 248108eb18Smrg alias -g '${1+"$@"}'='"$@"' 251a650d1eSmrg setopt NO_GLOB_SUBST 261a650d1eSmrgelse 271a650d1eSmrg case `(set -o) 2>/dev/null` in #( 281a650d1eSmrg *posix*) : 291a650d1eSmrg set -o posix ;; #( 301a650d1eSmrg *) : 311a650d1eSmrg ;; 321a650d1eSmrgesac 338108eb18Smrgfi 348108eb18Smrg 351a650d1eSmrg 361a650d1eSmrgas_nl=' 371a650d1eSmrg' 381a650d1eSmrgexport as_nl 391a650d1eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 401a650d1eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 411a650d1eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 421a650d1eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 431a650d1eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 441a650d1eSmrg# but without wasting forks for bash or zsh. 451a650d1eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 461a650d1eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 471a650d1eSmrg as_echo='print -r --' 481a650d1eSmrg as_echo_n='print -rn --' 491a650d1eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 501a650d1eSmrg as_echo='printf %s\n' 511a650d1eSmrg as_echo_n='printf %s' 528108eb18Smrgelse 531a650d1eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 541a650d1eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 551a650d1eSmrg as_echo_n='/usr/ucb/echo -n' 561a650d1eSmrg else 571a650d1eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 581a650d1eSmrg as_echo_n_body='eval 591a650d1eSmrg arg=$1; 601a650d1eSmrg case $arg in #( 611a650d1eSmrg *"$as_nl"*) 621a650d1eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 631a650d1eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 641a650d1eSmrg esac; 651a650d1eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 661a650d1eSmrg ' 671a650d1eSmrg export as_echo_n_body 681a650d1eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 691a650d1eSmrg fi 701a650d1eSmrg export as_echo_body 711a650d1eSmrg as_echo='sh -c $as_echo_body as_echo' 721a650d1eSmrgfi 731a650d1eSmrg 741a650d1eSmrg# The user is always right. 751a650d1eSmrgif test "${PATH_SEPARATOR+set}" != set; then 761a650d1eSmrg PATH_SEPARATOR=: 771a650d1eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 781a650d1eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 791a650d1eSmrg PATH_SEPARATOR=';' 801a650d1eSmrg } 818108eb18Smrgfi 828108eb18Smrg 838108eb18Smrg 841a650d1eSmrg# IFS 851a650d1eSmrg# We need space, tab and new line, in precisely that order. Quoting is 861a650d1eSmrg# there to prevent editors from complaining about space-tab. 871a650d1eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 881a650d1eSmrg# splitting by setting IFS to empty value.) 891a650d1eSmrgIFS=" "" $as_nl" 901a650d1eSmrg 911a650d1eSmrg# Find who we are. Look in the path if we contain no directory separator. 921a650d1eSmrgas_myself= 931a650d1eSmrgcase $0 in #(( 941a650d1eSmrg *[\\/]* ) as_myself=$0 ;; 951a650d1eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 961a650d1eSmrgfor as_dir in $PATH 971a650d1eSmrgdo 981a650d1eSmrg IFS=$as_save_IFS 991a650d1eSmrg test -z "$as_dir" && as_dir=. 1001a650d1eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1011a650d1eSmrg done 1021a650d1eSmrgIFS=$as_save_IFS 1031a650d1eSmrg 1041a650d1eSmrg ;; 1051a650d1eSmrgesac 1061a650d1eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1071a650d1eSmrg# in which case we are not to be found in the path. 1081a650d1eSmrgif test "x$as_myself" = x; then 1091a650d1eSmrg as_myself=$0 1101a650d1eSmrgfi 1111a650d1eSmrgif test ! -f "$as_myself"; then 1121a650d1eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1131a650d1eSmrg exit 1 1141a650d1eSmrgfi 1151a650d1eSmrg 1161a650d1eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 1171a650d1eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1181a650d1eSmrg# suppresses any "Segmentation fault" message there. '((' could 1191a650d1eSmrg# trigger a bug in pdksh 5.2.14. 1201a650d1eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1211a650d1eSmrgdo eval test x\${$as_var+set} = xset \ 1221a650d1eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1231a650d1eSmrgdone 1248108eb18SmrgPS1='$ ' 1258108eb18SmrgPS2='> ' 1268108eb18SmrgPS4='+ ' 1278108eb18Smrg 1288108eb18Smrg# NLS nuisances. 1291a650d1eSmrgLC_ALL=C 1301a650d1eSmrgexport LC_ALL 1311a650d1eSmrgLANGUAGE=C 1321a650d1eSmrgexport LANGUAGE 1331a650d1eSmrg 1341a650d1eSmrg# CDPATH. 1351a650d1eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1361a650d1eSmrg 1378a355152Smrg# Use a proper internal environment variable to ensure we don't fall 1388a355152Smrg # into an infinite loop, continuously re-executing ourselves. 1398a355152Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1408a355152Smrg _as_can_reexec=no; export _as_can_reexec; 1418a355152Smrg # We cannot yet assume a decent shell, so we have to provide a 1428a355152Smrg# neutralization value for shells without unset; and this also 1438a355152Smrg# works around shells that cannot unset nonexistent variables. 1448a355152Smrg# Preserve -v and -x to the replacement shell. 1458a355152SmrgBASH_ENV=/dev/null 1468a355152SmrgENV=/dev/null 1478a355152Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1488a355152Smrgcase $- in # (((( 1498a355152Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1508a355152Smrg *v* ) as_opts=-v ;; 1518a355152Smrg *x* ) as_opts=-x ;; 1528a355152Smrg * ) as_opts= ;; 1538a355152Smrgesac 1548a355152Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1558a355152Smrg# Admittedly, this is quite paranoid, since all the known shells bail 1568a355152Smrg# out after a failed `exec'. 1578a355152Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 1588a355152Smrgas_fn_exit 255 1598a355152Smrg fi 1608a355152Smrg # We don't want this to propagate to other subprocesses. 1618a355152Smrg { _as_can_reexec=; unset _as_can_reexec;} 1621a650d1eSmrgif test "x$CONFIG_SHELL" = x; then 1631a650d1eSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1641a650d1eSmrg emulate sh 1651a650d1eSmrg NULLCMD=: 1661a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1671a650d1eSmrg # is contrary to our usage. Disable this feature. 1681a650d1eSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1691a650d1eSmrg setopt NO_GLOB_SUBST 1701a650d1eSmrgelse 1711a650d1eSmrg case \`(set -o) 2>/dev/null\` in #( 1721a650d1eSmrg *posix*) : 1731a650d1eSmrg set -o posix ;; #( 1741a650d1eSmrg *) : 1751a650d1eSmrg ;; 1761a650d1eSmrgesac 1771a650d1eSmrgfi 1781a650d1eSmrg" 1791a650d1eSmrg as_required="as_fn_return () { (exit \$1); } 1801a650d1eSmrgas_fn_success () { as_fn_return 0; } 1811a650d1eSmrgas_fn_failure () { as_fn_return 1; } 1821a650d1eSmrgas_fn_ret_success () { return 0; } 1831a650d1eSmrgas_fn_ret_failure () { return 1; } 1841a650d1eSmrg 1851a650d1eSmrgexitcode=0 1861a650d1eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1871a650d1eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1881a650d1eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1891a650d1eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1901a650d1eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1911a650d1eSmrg 1921a650d1eSmrgelse 1931a650d1eSmrg exitcode=1; echo positional parameters were not saved. 1941a650d1eSmrgfi 1958a355152Smrgtest x\$exitcode = x0 || exit 1 1968a355152Smrgtest -x / || exit 1" 1971a650d1eSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1981a650d1eSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1991a650d1eSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 2001a650d1eSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 2011a650d1eSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 2021a650d1eSmrg if (eval "$as_required") 2>/dev/null; then : 2031a650d1eSmrg as_have_required=yes 2041a650d1eSmrgelse 2051a650d1eSmrg as_have_required=no 2061a650d1eSmrgfi 2071a650d1eSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 2081a650d1eSmrg 2091a650d1eSmrgelse 2101a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111a650d1eSmrgas_found=false 2121a650d1eSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2138108eb18Smrgdo 2141a650d1eSmrg IFS=$as_save_IFS 2151a650d1eSmrg test -z "$as_dir" && as_dir=. 2161a650d1eSmrg as_found=: 2171a650d1eSmrg case $as_dir in #( 2181a650d1eSmrg /*) 2191a650d1eSmrg for as_base in sh bash ksh sh5; do 2201a650d1eSmrg # Try only shells that exist, to save several forks. 2211a650d1eSmrg as_shell=$as_dir/$as_base 2221a650d1eSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2231a650d1eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2241a650d1eSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2251a650d1eSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2261a650d1eSmrg break 2 2271a650d1eSmrgfi 2281a650d1eSmrgfi 2291a650d1eSmrg done;; 2301a650d1eSmrg esac 2311a650d1eSmrg as_found=false 2321a650d1eSmrgdone 2331a650d1eSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2341a650d1eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2351a650d1eSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2361a650d1eSmrgfi; } 2371a650d1eSmrgIFS=$as_save_IFS 2381a650d1eSmrg 2391a650d1eSmrg 2401a650d1eSmrg if test "x$CONFIG_SHELL" != x; then : 2418a355152Smrg export CONFIG_SHELL 2428a355152Smrg # We cannot yet assume a decent shell, so we have to provide a 2438a355152Smrg# neutralization value for shells without unset; and this also 2448a355152Smrg# works around shells that cannot unset nonexistent variables. 2458a355152Smrg# Preserve -v and -x to the replacement shell. 2468a355152SmrgBASH_ENV=/dev/null 2478a355152SmrgENV=/dev/null 2488a355152Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2498a355152Smrgcase $- in # (((( 2508a355152Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2518a355152Smrg *v* ) as_opts=-v ;; 2528a355152Smrg *x* ) as_opts=-x ;; 2538a355152Smrg * ) as_opts= ;; 2548a355152Smrgesac 2558a355152Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2568a355152Smrg# Admittedly, this is quite paranoid, since all the known shells bail 2578a355152Smrg# out after a failed `exec'. 2588a355152Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 2598a355152Smrgexit 255 2601a650d1eSmrgfi 2611a650d1eSmrg 2621a650d1eSmrg if test x$as_have_required = xno; then : 2631a650d1eSmrg $as_echo "$0: This script requires a shell more modern than all" 2641a650d1eSmrg $as_echo "$0: the shells that I found on your system." 2651a650d1eSmrg if test x${ZSH_VERSION+set} = xset ; then 2661a650d1eSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2671a650d1eSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2688108eb18Smrg else 2691a650d1eSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2701a650d1eSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2711a650d1eSmrg$0: about your system, including any error possibly output 2721a650d1eSmrg$0: before this message. Then install a modern shell, or 2731a650d1eSmrg$0: manually run the script under such a shell if you do 2741a650d1eSmrg$0: have one." 2758108eb18Smrg fi 2761a650d1eSmrg exit 1 2771a650d1eSmrgfi 2781a650d1eSmrgfi 2791a650d1eSmrgfi 2801a650d1eSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2811a650d1eSmrgexport SHELL 2821a650d1eSmrg# Unset more variables known to interfere with behavior of common tools. 2831a650d1eSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2841a650d1eSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2851a650d1eSmrg 2861a650d1eSmrg## --------------------- ## 2871a650d1eSmrg## M4sh Shell Functions. ## 2881a650d1eSmrg## --------------------- ## 2891a650d1eSmrg# as_fn_unset VAR 2901a650d1eSmrg# --------------- 2911a650d1eSmrg# Portably unset VAR. 2921a650d1eSmrgas_fn_unset () 2931a650d1eSmrg{ 2941a650d1eSmrg { eval $1=; unset $1;} 2951a650d1eSmrg} 2961a650d1eSmrgas_unset=as_fn_unset 2971a650d1eSmrg 2981a650d1eSmrg# as_fn_set_status STATUS 2991a650d1eSmrg# ----------------------- 3001a650d1eSmrg# Set $? to STATUS, without forking. 3011a650d1eSmrgas_fn_set_status () 3021a650d1eSmrg{ 3031a650d1eSmrg return $1 3041a650d1eSmrg} # as_fn_set_status 3058108eb18Smrg 3061a650d1eSmrg# as_fn_exit STATUS 3071a650d1eSmrg# ----------------- 3081a650d1eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3091a650d1eSmrgas_fn_exit () 3101a650d1eSmrg{ 3111a650d1eSmrg set +e 3121a650d1eSmrg as_fn_set_status $1 3131a650d1eSmrg exit $1 3141a650d1eSmrg} # as_fn_exit 3151a650d1eSmrg 3161a650d1eSmrg# as_fn_mkdir_p 3171a650d1eSmrg# ------------- 3181a650d1eSmrg# Create "$as_dir" as a directory, including parents if necessary. 3191a650d1eSmrgas_fn_mkdir_p () 3201a650d1eSmrg{ 3211a650d1eSmrg 3221a650d1eSmrg case $as_dir in #( 3231a650d1eSmrg -*) as_dir=./$as_dir;; 3241a650d1eSmrg esac 3251a650d1eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 3261a650d1eSmrg as_dirs= 3271a650d1eSmrg while :; do 3281a650d1eSmrg case $as_dir in #( 3291a650d1eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3301a650d1eSmrg *) as_qdir=$as_dir;; 3311a650d1eSmrg esac 3321a650d1eSmrg as_dirs="'$as_qdir' $as_dirs" 3331a650d1eSmrg as_dir=`$as_dirname -- "$as_dir" || 3341a650d1eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3351a650d1eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3361a650d1eSmrg X"$as_dir" : 'X\(//\)$' \| \ 3371a650d1eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3381a650d1eSmrg$as_echo X"$as_dir" | 3391a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3401a650d1eSmrg s//\1/ 3411a650d1eSmrg q 3421a650d1eSmrg } 3431a650d1eSmrg /^X\(\/\/\)[^/].*/{ 3441a650d1eSmrg s//\1/ 3451a650d1eSmrg q 3461a650d1eSmrg } 3471a650d1eSmrg /^X\(\/\/\)$/{ 3481a650d1eSmrg s//\1/ 3491a650d1eSmrg q 3501a650d1eSmrg } 3511a650d1eSmrg /^X\(\/\).*/{ 3521a650d1eSmrg s//\1/ 3531a650d1eSmrg q 3541a650d1eSmrg } 3551a650d1eSmrg s/.*/./; q'` 3561a650d1eSmrg test -d "$as_dir" && break 3571a650d1eSmrg done 3581a650d1eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3591a650d1eSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3601a650d1eSmrg 3611a650d1eSmrg 3621a650d1eSmrg} # as_fn_mkdir_p 3638a355152Smrg 3648a355152Smrg# as_fn_executable_p FILE 3658a355152Smrg# ----------------------- 3668a355152Smrg# Test if FILE is an executable regular file. 3678a355152Smrgas_fn_executable_p () 3688a355152Smrg{ 3698a355152Smrg test -f "$1" && test -x "$1" 3708a355152Smrg} # as_fn_executable_p 3711a650d1eSmrg# as_fn_append VAR VALUE 3721a650d1eSmrg# ---------------------- 3731a650d1eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3741a650d1eSmrg# advantage of any shell optimizations that allow amortized linear growth over 3751a650d1eSmrg# repeated appends, instead of the typical quadratic growth present in naive 3761a650d1eSmrg# implementations. 3771a650d1eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3781a650d1eSmrg eval 'as_fn_append () 3791a650d1eSmrg { 3801a650d1eSmrg eval $1+=\$2 3811a650d1eSmrg }' 3821a650d1eSmrgelse 3831a650d1eSmrg as_fn_append () 3841a650d1eSmrg { 3851a650d1eSmrg eval $1=\$$1\$2 3861a650d1eSmrg } 3871a650d1eSmrgfi # as_fn_append 3881a650d1eSmrg 3891a650d1eSmrg# as_fn_arith ARG... 3901a650d1eSmrg# ------------------ 3911a650d1eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3921a650d1eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3931a650d1eSmrg# must be portable across $(()) and expr. 3941a650d1eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3951a650d1eSmrg eval 'as_fn_arith () 3961a650d1eSmrg { 3971a650d1eSmrg as_val=$(( $* )) 3981a650d1eSmrg }' 3991a650d1eSmrgelse 4001a650d1eSmrg as_fn_arith () 4011a650d1eSmrg { 4021a650d1eSmrg as_val=`expr "$@" || test $? -eq 1` 4031a650d1eSmrg } 4041a650d1eSmrgfi # as_fn_arith 4051a650d1eSmrg 4061a650d1eSmrg 4071a650d1eSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4081a650d1eSmrg# ---------------------------------------- 4091a650d1eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4101a650d1eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4111a650d1eSmrg# script with STATUS, using 1 if that was 0. 4121a650d1eSmrgas_fn_error () 4131a650d1eSmrg{ 4141a650d1eSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4151a650d1eSmrg if test "$4"; then 4161a650d1eSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4171a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4181a650d1eSmrg fi 4191a650d1eSmrg $as_echo "$as_me: error: $2" >&2 4201a650d1eSmrg as_fn_exit $as_status 4211a650d1eSmrg} # as_fn_error 4221a650d1eSmrg 4231a650d1eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4241a650d1eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4258108eb18Smrg as_expr=expr 4268108eb18Smrgelse 4278108eb18Smrg as_expr=false 4288108eb18Smrgfi 4298108eb18Smrg 4301a650d1eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4318108eb18Smrg as_basename=basename 4328108eb18Smrgelse 4338108eb18Smrg as_basename=false 4348108eb18Smrgfi 4358108eb18Smrg 4361a650d1eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4371a650d1eSmrg as_dirname=dirname 4381a650d1eSmrgelse 4391a650d1eSmrg as_dirname=false 4401a650d1eSmrgfi 4418108eb18Smrg 4421a650d1eSmrgas_me=`$as_basename -- "$0" || 4438108eb18Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4448108eb18Smrg X"$0" : 'X\(//\)$' \| \ 4451a650d1eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4461a650d1eSmrg$as_echo X/"$0" | 4471a650d1eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4481a650d1eSmrg s//\1/ 4491a650d1eSmrg q 4501a650d1eSmrg } 4511a650d1eSmrg /^X\/\(\/\/\)$/{ 4521a650d1eSmrg s//\1/ 4531a650d1eSmrg q 4541a650d1eSmrg } 4551a650d1eSmrg /^X\/\(\/\).*/{ 4561a650d1eSmrg s//\1/ 4571a650d1eSmrg q 4581a650d1eSmrg } 4591a650d1eSmrg s/.*/./; q'` 4608108eb18Smrg 4618108eb18Smrg# Avoid depending upon Character Ranges. 4628108eb18Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4638108eb18Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4648108eb18Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4658108eb18Smrgas_cr_digits='0123456789' 4668108eb18Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4678108eb18Smrg 4688108eb18Smrg 4691a650d1eSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4701a650d1eSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4711a650d1eSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4721a650d1eSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4731a650d1eSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4741a650d1eSmrg sed -n ' 4751a650d1eSmrg p 4761a650d1eSmrg /[$]LINENO/= 4771a650d1eSmrg ' <$as_myself | 4788108eb18Smrg sed ' 4791a650d1eSmrg s/[$]LINENO.*/&-/ 4801a650d1eSmrg t lineno 4811a650d1eSmrg b 4821a650d1eSmrg :lineno 4838108eb18Smrg N 4841a650d1eSmrg :loop 4851a650d1eSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4868108eb18Smrg t loop 4871a650d1eSmrg s/-\n.*// 4888108eb18Smrg ' >$as_me.lineno && 4891a650d1eSmrg chmod +x "$as_me.lineno" || 4901a650d1eSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4918108eb18Smrg 4928a355152Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 4938a355152Smrg # already done that, so ensure we don't try to do so again and fall 4948a355152Smrg # in an infinite loop. This has already happened in practice. 4958a355152Smrg _as_can_reexec=no; export _as_can_reexec 4968108eb18Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4978108eb18Smrg # (the dirname of $[0] is not the place where we might find the 4981a650d1eSmrg # original and so on. Autoconf is especially sensitive to this). 4991a650d1eSmrg . "./$as_me.lineno" 5008108eb18Smrg # Exit status is that of the last command. 5018108eb18Smrg exit 5028108eb18Smrg} 5038108eb18Smrg 5041a650d1eSmrgECHO_C= ECHO_N= ECHO_T= 5051a650d1eSmrgcase `echo -n x` in #((((( 5061a650d1eSmrg-n*) 5071a650d1eSmrg case `echo 'xy\c'` in 5081a650d1eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5091a650d1eSmrg xy) ECHO_C='\c';; 5101a650d1eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5111a650d1eSmrg ECHO_T=' ';; 5121a650d1eSmrg esac;; 5131a650d1eSmrg*) 5141a650d1eSmrg ECHO_N='-n';; 5158108eb18Smrgesac 5168108eb18Smrg 5171a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.file 5181a650d1eSmrgif test -d conf$$.dir; then 5191a650d1eSmrg rm -f conf$$.dir/conf$$.file 5208108eb18Smrgelse 5211a650d1eSmrg rm -f conf$$.dir 5221a650d1eSmrg mkdir conf$$.dir 2>/dev/null 5238108eb18Smrgfi 5241a650d1eSmrgif (echo >conf$$.file) 2>/dev/null; then 5251a650d1eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5268108eb18Smrg as_ln_s='ln -s' 5271a650d1eSmrg # ... but there are two gotchas: 5281a650d1eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5291a650d1eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5308a355152Smrg # In both cases, we have to default to `cp -pR'. 5311a650d1eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5328a355152Smrg as_ln_s='cp -pR' 5331a650d1eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5341a650d1eSmrg as_ln_s=ln 5351a650d1eSmrg else 5368a355152Smrg as_ln_s='cp -pR' 5378108eb18Smrg fi 5388108eb18Smrgelse 5398a355152Smrg as_ln_s='cp -pR' 5408108eb18Smrgfi 5411a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5421a650d1eSmrgrmdir conf$$.dir 2>/dev/null 5438108eb18Smrg 5448108eb18Smrgif mkdir -p . 2>/dev/null; then 5451a650d1eSmrg as_mkdir_p='mkdir -p "$as_dir"' 5468108eb18Smrgelse 5478108eb18Smrg test -d ./-p && rmdir ./-p 5488108eb18Smrg as_mkdir_p=false 5498108eb18Smrgfi 5508108eb18Smrg 5518a355152Smrgas_test_x='test -x' 5528a355152Smrgas_executable_p=as_fn_executable_p 5538108eb18Smrg 5548108eb18Smrg# Sed expression to map a string onto a valid CPP name. 5558108eb18Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5568108eb18Smrg 5578108eb18Smrg# Sed expression to map a string onto a valid variable name. 5588108eb18Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5598108eb18Smrg 5608108eb18Smrg 5611a650d1eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5621a650d1eSmrgexec 6>&1 5638108eb18Smrg 5648108eb18Smrg# Name of the host. 5651a650d1eSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5668108eb18Smrg# so uname gets run too. 5678108eb18Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5688108eb18Smrg 5698108eb18Smrg# 5708108eb18Smrg# Initializations. 5718108eb18Smrg# 5728108eb18Smrgac_default_prefix=/usr/local 5731a650d1eSmrgac_clean_files= 5748108eb18Smrgac_config_libobj_dir=. 5751a650d1eSmrgLIBOBJS= 5768108eb18Smrgcross_compiling=no 5778108eb18Smrgsubdirs= 5788108eb18SmrgMFLAGS= 5798108eb18SmrgMAKEFLAGS= 5808108eb18Smrg 5818108eb18Smrg# Identity of this package. 5828108eb18SmrgPACKAGE_NAME='xsm' 5838108eb18SmrgPACKAGE_TARNAME='xsm' 5848a355152SmrgPACKAGE_VERSION='1.0.4' 5858a355152SmrgPACKAGE_STRING='xsm 1.0.4' 5868108eb18SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5871a650d1eSmrgPACKAGE_URL='' 5888108eb18Smrg 5895977a007Smrgac_unique_file="Makefile.am" 5901a650d1eSmrg# Factoring default headers for most tests. 5911a650d1eSmrgac_includes_default="\ 5921a650d1eSmrg#include <stdio.h> 5931a650d1eSmrg#ifdef HAVE_SYS_TYPES_H 5941a650d1eSmrg# include <sys/types.h> 5951a650d1eSmrg#endif 5961a650d1eSmrg#ifdef HAVE_SYS_STAT_H 5971a650d1eSmrg# include <sys/stat.h> 5981a650d1eSmrg#endif 5991a650d1eSmrg#ifdef STDC_HEADERS 6001a650d1eSmrg# include <stdlib.h> 6011a650d1eSmrg# include <stddef.h> 6021a650d1eSmrg#else 6031a650d1eSmrg# ifdef HAVE_STDLIB_H 6041a650d1eSmrg# include <stdlib.h> 6051a650d1eSmrg# endif 6061a650d1eSmrg#endif 6071a650d1eSmrg#ifdef HAVE_STRING_H 6081a650d1eSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 6091a650d1eSmrg# include <memory.h> 6101a650d1eSmrg# endif 6111a650d1eSmrg# include <string.h> 6121a650d1eSmrg#endif 6131a650d1eSmrg#ifdef HAVE_STRINGS_H 6141a650d1eSmrg# include <strings.h> 6151a650d1eSmrg#endif 6161a650d1eSmrg#ifdef HAVE_INTTYPES_H 6171a650d1eSmrg# include <inttypes.h> 6181a650d1eSmrg#endif 6191a650d1eSmrg#ifdef HAVE_STDINT_H 6201a650d1eSmrg# include <stdint.h> 6211a650d1eSmrg#endif 6221a650d1eSmrg#ifdef HAVE_UNISTD_H 6231a650d1eSmrg# include <unistd.h> 6241a650d1eSmrg#endif" 6251a650d1eSmrg 6261a650d1eSmrgac_subst_vars='am__EXEEXT_FALSE 6271a650d1eSmrgam__EXEEXT_TRUE 6281a650d1eSmrgLTLIBOBJS 6291a650d1eSmrgLIBOBJS 6301a650d1eSmrgappdefaultdir 6311a650d1eSmrgXSM_LIBS 6321a650d1eSmrgXSM_CFLAGS 6331a650d1eSmrgRSH 6341a650d1eSmrgMAN_SUBSTS 6351a650d1eSmrgXORG_MAN_PAGE 6361a650d1eSmrgADMIN_MAN_DIR 6371a650d1eSmrgDRIVER_MAN_DIR 6381a650d1eSmrgMISC_MAN_DIR 6391a650d1eSmrgFILE_MAN_DIR 6401a650d1eSmrgLIB_MAN_DIR 6411a650d1eSmrgAPP_MAN_DIR 6421a650d1eSmrgADMIN_MAN_SUFFIX 6431a650d1eSmrgDRIVER_MAN_SUFFIX 6441a650d1eSmrgMISC_MAN_SUFFIX 6451a650d1eSmrgFILE_MAN_SUFFIX 6461a650d1eSmrgLIB_MAN_SUFFIX 6471a650d1eSmrgAPP_MAN_SUFFIX 6481a650d1eSmrgSED 6491a650d1eSmrghost_os 6501a650d1eSmrghost_vendor 6511a650d1eSmrghost_cpu 6521a650d1eSmrghost 6531a650d1eSmrgbuild_os 6541a650d1eSmrgbuild_vendor 6551a650d1eSmrgbuild_cpu 6561a650d1eSmrgbuild 6571a650d1eSmrgINSTALL_CMD 6588a355152SmrgPKG_CONFIG_LIBDIR 6598a355152SmrgPKG_CONFIG_PATH 6601a650d1eSmrgPKG_CONFIG 6611a650d1eSmrgCHANGELOG_CMD 6625977a007SmrgSTRICT_CFLAGS 6631a650d1eSmrgCWARNFLAGS 6645977a007SmrgBASE_CFLAGS 6651a650d1eSmrgEGREP 6661a650d1eSmrgGREP 6671a650d1eSmrgCPP 6681a650d1eSmrgam__fastdepCC_FALSE 6691a650d1eSmrgam__fastdepCC_TRUE 6701a650d1eSmrgCCDEPMODE 6715977a007Smrgam__nodep 6721a650d1eSmrgAMDEPBACKSLASH 6731a650d1eSmrgAMDEP_FALSE 6741a650d1eSmrgAMDEP_TRUE 6751a650d1eSmrgam__quote 6761a650d1eSmrgam__include 6771a650d1eSmrgDEPDIR 6781a650d1eSmrgOBJEXT 6791a650d1eSmrgEXEEXT 6801a650d1eSmrgac_ct_CC 6811a650d1eSmrgCPPFLAGS 6821a650d1eSmrgLDFLAGS 6831a650d1eSmrgCFLAGS 6841a650d1eSmrgCC 6858a355152SmrgAM_BACKSLASH 6868a355152SmrgAM_DEFAULT_VERBOSITY 6878a355152SmrgAM_DEFAULT_V 6888a355152SmrgAM_V 6891a650d1eSmrgam__untar 6901a650d1eSmrgam__tar 6911a650d1eSmrgAMTAR 6921a650d1eSmrgam__leading_dot 6931a650d1eSmrgSET_MAKE 6941a650d1eSmrgAWK 6951a650d1eSmrgmkdir_p 6961a650d1eSmrgMKDIR_P 6971a650d1eSmrgINSTALL_STRIP_PROGRAM 6981a650d1eSmrgSTRIP 6991a650d1eSmrginstall_sh 7001a650d1eSmrgMAKEINFO 7011a650d1eSmrgAUTOHEADER 7021a650d1eSmrgAUTOMAKE 7031a650d1eSmrgAUTOCONF 7041a650d1eSmrgACLOCAL 7051a650d1eSmrgVERSION 7061a650d1eSmrgPACKAGE 7071a650d1eSmrgCYGPATH_W 7081a650d1eSmrgam__isrc 7091a650d1eSmrgINSTALL_DATA 7101a650d1eSmrgINSTALL_SCRIPT 7111a650d1eSmrgINSTALL_PROGRAM 7121a650d1eSmrgtarget_alias 7131a650d1eSmrghost_alias 7141a650d1eSmrgbuild_alias 7151a650d1eSmrgLIBS 7161a650d1eSmrgECHO_T 7171a650d1eSmrgECHO_N 7181a650d1eSmrgECHO_C 7191a650d1eSmrgDEFS 7201a650d1eSmrgmandir 7211a650d1eSmrglocaledir 7221a650d1eSmrglibdir 7231a650d1eSmrgpsdir 7241a650d1eSmrgpdfdir 7251a650d1eSmrgdvidir 7261a650d1eSmrghtmldir 7271a650d1eSmrginfodir 7281a650d1eSmrgdocdir 7291a650d1eSmrgoldincludedir 7301a650d1eSmrgincludedir 7311a650d1eSmrglocalstatedir 7321a650d1eSmrgsharedstatedir 7331a650d1eSmrgsysconfdir 7341a650d1eSmrgdatadir 7351a650d1eSmrgdatarootdir 7361a650d1eSmrglibexecdir 7371a650d1eSmrgsbindir 7381a650d1eSmrgbindir 7391a650d1eSmrgprogram_transform_name 7401a650d1eSmrgprefix 7411a650d1eSmrgexec_prefix 7421a650d1eSmrgPACKAGE_URL 7431a650d1eSmrgPACKAGE_BUGREPORT 7441a650d1eSmrgPACKAGE_STRING 7451a650d1eSmrgPACKAGE_VERSION 7461a650d1eSmrgPACKAGE_TARNAME 7471a650d1eSmrgPACKAGE_NAME 7481a650d1eSmrgPATH_SEPARATOR 7491a650d1eSmrgSHELL' 7508108eb18Smrgac_subst_files='' 7511a650d1eSmrgac_user_opts=' 7521a650d1eSmrgenable_option_checking 7538a355152Smrgenable_silent_rules 7541a650d1eSmrgenable_dependency_tracking 7555977a007Smrgenable_selective_werror 7561a650d1eSmrgenable_strict_compilation 7571a650d1eSmrgwith_rsh 7581a650d1eSmrgwith_appdefaultdir 7591a650d1eSmrg' 7601a650d1eSmrg ac_precious_vars='build_alias 7611a650d1eSmrghost_alias 7621a650d1eSmrgtarget_alias 7631a650d1eSmrgCC 7641a650d1eSmrgCFLAGS 7651a650d1eSmrgLDFLAGS 7661a650d1eSmrgLIBS 7671a650d1eSmrgCPPFLAGS 7681a650d1eSmrgCPP 7691a650d1eSmrgPKG_CONFIG 7708a355152SmrgPKG_CONFIG_PATH 7718a355152SmrgPKG_CONFIG_LIBDIR 7721a650d1eSmrgXSM_CFLAGS 7731a650d1eSmrgXSM_LIBS' 7741a650d1eSmrg 7758108eb18Smrg 7768108eb18Smrg# Initialize some variables set by options. 7778108eb18Smrgac_init_help= 7788108eb18Smrgac_init_version=false 7791a650d1eSmrgac_unrecognized_opts= 7801a650d1eSmrgac_unrecognized_sep= 7818108eb18Smrg# The variables have the same names as the options, with 7828108eb18Smrg# dashes changed to underlines. 7838108eb18Smrgcache_file=/dev/null 7848108eb18Smrgexec_prefix=NONE 7858108eb18Smrgno_create= 7868108eb18Smrgno_recursion= 7878108eb18Smrgprefix=NONE 7888108eb18Smrgprogram_prefix=NONE 7898108eb18Smrgprogram_suffix=NONE 7908108eb18Smrgprogram_transform_name=s,x,x, 7918108eb18Smrgsilent= 7928108eb18Smrgsite= 7938108eb18Smrgsrcdir= 7948108eb18Smrgverbose= 7958108eb18Smrgx_includes=NONE 7968108eb18Smrgx_libraries=NONE 7978108eb18Smrg 7988108eb18Smrg# Installation directory options. 7998108eb18Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8008108eb18Smrg# and all the variables that are supposed to be based on exec_prefix 8018108eb18Smrg# by default will actually change. 8028108eb18Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 8031a650d1eSmrg# (The list follows the same order as the GNU Coding Standards.) 8048108eb18Smrgbindir='${exec_prefix}/bin' 8058108eb18Smrgsbindir='${exec_prefix}/sbin' 8068108eb18Smrglibexecdir='${exec_prefix}/libexec' 8071a650d1eSmrgdatarootdir='${prefix}/share' 8081a650d1eSmrgdatadir='${datarootdir}' 8098108eb18Smrgsysconfdir='${prefix}/etc' 8108108eb18Smrgsharedstatedir='${prefix}/com' 8118108eb18Smrglocalstatedir='${prefix}/var' 8128108eb18Smrgincludedir='${prefix}/include' 8138108eb18Smrgoldincludedir='/usr/include' 8141a650d1eSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8151a650d1eSmrginfodir='${datarootdir}/info' 8161a650d1eSmrghtmldir='${docdir}' 8171a650d1eSmrgdvidir='${docdir}' 8181a650d1eSmrgpdfdir='${docdir}' 8191a650d1eSmrgpsdir='${docdir}' 8201a650d1eSmrglibdir='${exec_prefix}/lib' 8211a650d1eSmrglocaledir='${datarootdir}/locale' 8221a650d1eSmrgmandir='${datarootdir}/man' 8238108eb18Smrg 8248108eb18Smrgac_prev= 8251a650d1eSmrgac_dashdash= 8268108eb18Smrgfor ac_option 8278108eb18Smrgdo 8288108eb18Smrg # If the previous option needs an argument, assign it. 8298108eb18Smrg if test -n "$ac_prev"; then 8301a650d1eSmrg eval $ac_prev=\$ac_option 8318108eb18Smrg ac_prev= 8328108eb18Smrg continue 8338108eb18Smrg fi 8348108eb18Smrg 8351a650d1eSmrg case $ac_option in 8361a650d1eSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8371a650d1eSmrg *=) ac_optarg= ;; 8381a650d1eSmrg *) ac_optarg=yes ;; 8391a650d1eSmrg esac 8408108eb18Smrg 8418108eb18Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8428108eb18Smrg 8431a650d1eSmrg case $ac_dashdash$ac_option in 8441a650d1eSmrg --) 8451a650d1eSmrg ac_dashdash=yes ;; 8468108eb18Smrg 8478108eb18Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8488108eb18Smrg ac_prev=bindir ;; 8498108eb18Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8508108eb18Smrg bindir=$ac_optarg ;; 8518108eb18Smrg 8528108eb18Smrg -build | --build | --buil | --bui | --bu) 8538108eb18Smrg ac_prev=build_alias ;; 8548108eb18Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8558108eb18Smrg build_alias=$ac_optarg ;; 8568108eb18Smrg 8578108eb18Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8588108eb18Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8598108eb18Smrg ac_prev=cache_file ;; 8608108eb18Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8618108eb18Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8628108eb18Smrg cache_file=$ac_optarg ;; 8638108eb18Smrg 8648108eb18Smrg --config-cache | -C) 8658108eb18Smrg cache_file=config.cache ;; 8668108eb18Smrg 8671a650d1eSmrg -datadir | --datadir | --datadi | --datad) 8688108eb18Smrg ac_prev=datadir ;; 8691a650d1eSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8708108eb18Smrg datadir=$ac_optarg ;; 8718108eb18Smrg 8721a650d1eSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8731a650d1eSmrg | --dataroo | --dataro | --datar) 8741a650d1eSmrg ac_prev=datarootdir ;; 8751a650d1eSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8761a650d1eSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8771a650d1eSmrg datarootdir=$ac_optarg ;; 8781a650d1eSmrg 8798108eb18Smrg -disable-* | --disable-*) 8801a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8818108eb18Smrg # Reject names that are not valid shell variable names. 8821a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8831a650d1eSmrg as_fn_error $? "invalid feature name: $ac_useropt" 8841a650d1eSmrg ac_useropt_orig=$ac_useropt 8851a650d1eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8861a650d1eSmrg case $ac_user_opts in 8871a650d1eSmrg *" 8881a650d1eSmrg"enable_$ac_useropt" 8891a650d1eSmrg"*) ;; 8901a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8911a650d1eSmrg ac_unrecognized_sep=', ';; 8921a650d1eSmrg esac 8931a650d1eSmrg eval enable_$ac_useropt=no ;; 8941a650d1eSmrg 8951a650d1eSmrg -docdir | --docdir | --docdi | --doc | --do) 8961a650d1eSmrg ac_prev=docdir ;; 8971a650d1eSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8981a650d1eSmrg docdir=$ac_optarg ;; 8991a650d1eSmrg 9001a650d1eSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9011a650d1eSmrg ac_prev=dvidir ;; 9021a650d1eSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9031a650d1eSmrg dvidir=$ac_optarg ;; 9048108eb18Smrg 9058108eb18Smrg -enable-* | --enable-*) 9061a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9078108eb18Smrg # Reject names that are not valid shell variable names. 9081a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9091a650d1eSmrg as_fn_error $? "invalid feature name: $ac_useropt" 9101a650d1eSmrg ac_useropt_orig=$ac_useropt 9111a650d1eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9121a650d1eSmrg case $ac_user_opts in 9131a650d1eSmrg *" 9141a650d1eSmrg"enable_$ac_useropt" 9151a650d1eSmrg"*) ;; 9161a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9171a650d1eSmrg ac_unrecognized_sep=', ';; 9188108eb18Smrg esac 9191a650d1eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9208108eb18Smrg 9218108eb18Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9228108eb18Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9238108eb18Smrg | --exec | --exe | --ex) 9248108eb18Smrg ac_prev=exec_prefix ;; 9258108eb18Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9268108eb18Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9278108eb18Smrg | --exec=* | --exe=* | --ex=*) 9288108eb18Smrg exec_prefix=$ac_optarg ;; 9298108eb18Smrg 9308108eb18Smrg -gas | --gas | --ga | --g) 9318108eb18Smrg # Obsolete; use --with-gas. 9328108eb18Smrg with_gas=yes ;; 9338108eb18Smrg 9348108eb18Smrg -help | --help | --hel | --he | -h) 9358108eb18Smrg ac_init_help=long ;; 9368108eb18Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9378108eb18Smrg ac_init_help=recursive ;; 9388108eb18Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9398108eb18Smrg ac_init_help=short ;; 9408108eb18Smrg 9418108eb18Smrg -host | --host | --hos | --ho) 9428108eb18Smrg ac_prev=host_alias ;; 9438108eb18Smrg -host=* | --host=* | --hos=* | --ho=*) 9448108eb18Smrg host_alias=$ac_optarg ;; 9458108eb18Smrg 9461a650d1eSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9471a650d1eSmrg ac_prev=htmldir ;; 9481a650d1eSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9491a650d1eSmrg | --ht=*) 9501a650d1eSmrg htmldir=$ac_optarg ;; 9511a650d1eSmrg 9528108eb18Smrg -includedir | --includedir | --includedi | --included | --include \ 9538108eb18Smrg | --includ | --inclu | --incl | --inc) 9548108eb18Smrg ac_prev=includedir ;; 9558108eb18Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9568108eb18Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9578108eb18Smrg includedir=$ac_optarg ;; 9588108eb18Smrg 9598108eb18Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9608108eb18Smrg ac_prev=infodir ;; 9618108eb18Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9628108eb18Smrg infodir=$ac_optarg ;; 9638108eb18Smrg 9648108eb18Smrg -libdir | --libdir | --libdi | --libd) 9658108eb18Smrg ac_prev=libdir ;; 9668108eb18Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9678108eb18Smrg libdir=$ac_optarg ;; 9688108eb18Smrg 9698108eb18Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9708108eb18Smrg | --libexe | --libex | --libe) 9718108eb18Smrg ac_prev=libexecdir ;; 9728108eb18Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9738108eb18Smrg | --libexe=* | --libex=* | --libe=*) 9748108eb18Smrg libexecdir=$ac_optarg ;; 9758108eb18Smrg 9761a650d1eSmrg -localedir | --localedir | --localedi | --localed | --locale) 9771a650d1eSmrg ac_prev=localedir ;; 9781a650d1eSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9791a650d1eSmrg localedir=$ac_optarg ;; 9801a650d1eSmrg 9818108eb18Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9821a650d1eSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9838108eb18Smrg ac_prev=localstatedir ;; 9848108eb18Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9851a650d1eSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9868108eb18Smrg localstatedir=$ac_optarg ;; 9878108eb18Smrg 9888108eb18Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9898108eb18Smrg ac_prev=mandir ;; 9908108eb18Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9918108eb18Smrg mandir=$ac_optarg ;; 9928108eb18Smrg 9938108eb18Smrg -nfp | --nfp | --nf) 9948108eb18Smrg # Obsolete; use --without-fp. 9958108eb18Smrg with_fp=no ;; 9968108eb18Smrg 9978108eb18Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9988108eb18Smrg | --no-cr | --no-c | -n) 9998108eb18Smrg no_create=yes ;; 10008108eb18Smrg 10018108eb18Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10028108eb18Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10038108eb18Smrg no_recursion=yes ;; 10048108eb18Smrg 10058108eb18Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10068108eb18Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10078108eb18Smrg | --oldin | --oldi | --old | --ol | --o) 10088108eb18Smrg ac_prev=oldincludedir ;; 10098108eb18Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10108108eb18Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10118108eb18Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10128108eb18Smrg oldincludedir=$ac_optarg ;; 10138108eb18Smrg 10148108eb18Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10158108eb18Smrg ac_prev=prefix ;; 10168108eb18Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10178108eb18Smrg prefix=$ac_optarg ;; 10188108eb18Smrg 10198108eb18Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10208108eb18Smrg | --program-pre | --program-pr | --program-p) 10218108eb18Smrg ac_prev=program_prefix ;; 10228108eb18Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10238108eb18Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10248108eb18Smrg program_prefix=$ac_optarg ;; 10258108eb18Smrg 10268108eb18Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10278108eb18Smrg | --program-suf | --program-su | --program-s) 10288108eb18Smrg ac_prev=program_suffix ;; 10298108eb18Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10308108eb18Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10318108eb18Smrg program_suffix=$ac_optarg ;; 10328108eb18Smrg 10338108eb18Smrg -program-transform-name | --program-transform-name \ 10348108eb18Smrg | --program-transform-nam | --program-transform-na \ 10358108eb18Smrg | --program-transform-n | --program-transform- \ 10368108eb18Smrg | --program-transform | --program-transfor \ 10378108eb18Smrg | --program-transfo | --program-transf \ 10388108eb18Smrg | --program-trans | --program-tran \ 10398108eb18Smrg | --progr-tra | --program-tr | --program-t) 10408108eb18Smrg ac_prev=program_transform_name ;; 10418108eb18Smrg -program-transform-name=* | --program-transform-name=* \ 10428108eb18Smrg | --program-transform-nam=* | --program-transform-na=* \ 10438108eb18Smrg | --program-transform-n=* | --program-transform-=* \ 10448108eb18Smrg | --program-transform=* | --program-transfor=* \ 10458108eb18Smrg | --program-transfo=* | --program-transf=* \ 10468108eb18Smrg | --program-trans=* | --program-tran=* \ 10478108eb18Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10488108eb18Smrg program_transform_name=$ac_optarg ;; 10498108eb18Smrg 10501a650d1eSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10511a650d1eSmrg ac_prev=pdfdir ;; 10521a650d1eSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10531a650d1eSmrg pdfdir=$ac_optarg ;; 10541a650d1eSmrg 10551a650d1eSmrg -psdir | --psdir | --psdi | --psd | --ps) 10561a650d1eSmrg ac_prev=psdir ;; 10571a650d1eSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10581a650d1eSmrg psdir=$ac_optarg ;; 10591a650d1eSmrg 10608108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10618108eb18Smrg | -silent | --silent | --silen | --sile | --sil) 10628108eb18Smrg silent=yes ;; 10638108eb18Smrg 10648108eb18Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10658108eb18Smrg ac_prev=sbindir ;; 10668108eb18Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10678108eb18Smrg | --sbi=* | --sb=*) 10688108eb18Smrg sbindir=$ac_optarg ;; 10698108eb18Smrg 10708108eb18Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10718108eb18Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10728108eb18Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10738108eb18Smrg | --sha | --sh) 10748108eb18Smrg ac_prev=sharedstatedir ;; 10758108eb18Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10768108eb18Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10778108eb18Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10788108eb18Smrg | --sha=* | --sh=*) 10798108eb18Smrg sharedstatedir=$ac_optarg ;; 10808108eb18Smrg 10818108eb18Smrg -site | --site | --sit) 10828108eb18Smrg ac_prev=site ;; 10838108eb18Smrg -site=* | --site=* | --sit=*) 10848108eb18Smrg site=$ac_optarg ;; 10858108eb18Smrg 10868108eb18Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10878108eb18Smrg ac_prev=srcdir ;; 10888108eb18Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10898108eb18Smrg srcdir=$ac_optarg ;; 10908108eb18Smrg 10918108eb18Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10928108eb18Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10938108eb18Smrg ac_prev=sysconfdir ;; 10948108eb18Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10958108eb18Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10968108eb18Smrg sysconfdir=$ac_optarg ;; 10978108eb18Smrg 10988108eb18Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10998108eb18Smrg ac_prev=target_alias ;; 11008108eb18Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11018108eb18Smrg target_alias=$ac_optarg ;; 11028108eb18Smrg 11038108eb18Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11048108eb18Smrg verbose=yes ;; 11058108eb18Smrg 11068108eb18Smrg -version | --version | --versio | --versi | --vers | -V) 11078108eb18Smrg ac_init_version=: ;; 11088108eb18Smrg 11098108eb18Smrg -with-* | --with-*) 11101a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11118108eb18Smrg # Reject names that are not valid shell variable names. 11121a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11131a650d1eSmrg as_fn_error $? "invalid package name: $ac_useropt" 11141a650d1eSmrg ac_useropt_orig=$ac_useropt 11151a650d1eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11161a650d1eSmrg case $ac_user_opts in 11171a650d1eSmrg *" 11181a650d1eSmrg"with_$ac_useropt" 11191a650d1eSmrg"*) ;; 11201a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11211a650d1eSmrg ac_unrecognized_sep=', ';; 11228108eb18Smrg esac 11231a650d1eSmrg eval with_$ac_useropt=\$ac_optarg ;; 11248108eb18Smrg 11258108eb18Smrg -without-* | --without-*) 11261a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11278108eb18Smrg # Reject names that are not valid shell variable names. 11281a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11291a650d1eSmrg as_fn_error $? "invalid package name: $ac_useropt" 11301a650d1eSmrg ac_useropt_orig=$ac_useropt 11311a650d1eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11321a650d1eSmrg case $ac_user_opts in 11331a650d1eSmrg *" 11341a650d1eSmrg"with_$ac_useropt" 11351a650d1eSmrg"*) ;; 11361a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11371a650d1eSmrg ac_unrecognized_sep=', ';; 11381a650d1eSmrg esac 11391a650d1eSmrg eval with_$ac_useropt=no ;; 11408108eb18Smrg 11418108eb18Smrg --x) 11428108eb18Smrg # Obsolete; use --with-x. 11438108eb18Smrg with_x=yes ;; 11448108eb18Smrg 11458108eb18Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11468108eb18Smrg | --x-incl | --x-inc | --x-in | --x-i) 11478108eb18Smrg ac_prev=x_includes ;; 11488108eb18Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11498108eb18Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11508108eb18Smrg x_includes=$ac_optarg ;; 11518108eb18Smrg 11528108eb18Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11538108eb18Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11548108eb18Smrg ac_prev=x_libraries ;; 11558108eb18Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11568108eb18Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11578108eb18Smrg x_libraries=$ac_optarg ;; 11588108eb18Smrg 11591a650d1eSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11601a650d1eSmrgTry \`$0 --help' for more information" 11618108eb18Smrg ;; 11628108eb18Smrg 11638108eb18Smrg *=*) 11648108eb18Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11658108eb18Smrg # Reject names that are not valid shell variable names. 11661a650d1eSmrg case $ac_envvar in #( 11671a650d1eSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11681a650d1eSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11691a650d1eSmrg esac 11701a650d1eSmrg eval $ac_envvar=\$ac_optarg 11718108eb18Smrg export $ac_envvar ;; 11728108eb18Smrg 11738108eb18Smrg *) 11748108eb18Smrg # FIXME: should be removed in autoconf 3.0. 11751a650d1eSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11768108eb18Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11771a650d1eSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11781a650d1eSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11798108eb18Smrg ;; 11808108eb18Smrg 11818108eb18Smrg esac 11828108eb18Smrgdone 11838108eb18Smrg 11848108eb18Smrgif test -n "$ac_prev"; then 11858108eb18Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11861a650d1eSmrg as_fn_error $? "missing argument to $ac_option" 11878108eb18Smrgfi 11888108eb18Smrg 11891a650d1eSmrgif test -n "$ac_unrecognized_opts"; then 11901a650d1eSmrg case $enable_option_checking in 11911a650d1eSmrg no) ;; 11921a650d1eSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11931a650d1eSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11948108eb18Smrg esac 11951a650d1eSmrgfi 11968108eb18Smrg 11971a650d1eSmrg# Check all directory arguments for consistency. 11981a650d1eSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11991a650d1eSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12001a650d1eSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12011a650d1eSmrg libdir localedir mandir 12028108eb18Smrgdo 12031a650d1eSmrg eval ac_val=\$$ac_var 12041a650d1eSmrg # Remove trailing slashes. 12058108eb18Smrg case $ac_val in 12061a650d1eSmrg */ ) 12071a650d1eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12081a650d1eSmrg eval $ac_var=\$ac_val;; 12098108eb18Smrg esac 12101a650d1eSmrg # Be sure to have absolute directory names. 12111a650d1eSmrg case $ac_val in 12121a650d1eSmrg [\\/$]* | ?:[\\/]* ) continue;; 12131a650d1eSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12141a650d1eSmrg esac 12151a650d1eSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12168108eb18Smrgdone 12178108eb18Smrg 12188108eb18Smrg# There might be people who depend on the old broken behavior: `$host' 12198108eb18Smrg# used to hold the argument of --host etc. 12208108eb18Smrg# FIXME: To remove some day. 12218108eb18Smrgbuild=$build_alias 12228108eb18Smrghost=$host_alias 12238108eb18Smrgtarget=$target_alias 12248108eb18Smrg 12258108eb18Smrg# FIXME: To remove some day. 12268108eb18Smrgif test "x$host_alias" != x; then 12278108eb18Smrg if test "x$build_alias" = x; then 12288108eb18Smrg cross_compiling=maybe 12298108eb18Smrg elif test "x$build_alias" != "x$host_alias"; then 12308108eb18Smrg cross_compiling=yes 12318108eb18Smrg fi 12328108eb18Smrgfi 12338108eb18Smrg 12348108eb18Smrgac_tool_prefix= 12358108eb18Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12368108eb18Smrg 12378108eb18Smrgtest "$silent" = yes && exec 6>/dev/null 12388108eb18Smrg 12398108eb18Smrg 12401a650d1eSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12411a650d1eSmrgac_ls_di=`ls -di .` && 12421a650d1eSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12431a650d1eSmrg as_fn_error $? "working directory cannot be determined" 12441a650d1eSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12451a650d1eSmrg as_fn_error $? "pwd does not report name of working directory" 12461a650d1eSmrg 12471a650d1eSmrg 12488108eb18Smrg# Find the source files, if location was not specified. 12498108eb18Smrgif test -z "$srcdir"; then 12508108eb18Smrg ac_srcdir_defaulted=yes 12511a650d1eSmrg # Try the directory containing this script, then the parent directory. 12521a650d1eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12531a650d1eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12541a650d1eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12551a650d1eSmrg X"$as_myself" : 'X\(//\)$' \| \ 12561a650d1eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12571a650d1eSmrg$as_echo X"$as_myself" | 12581a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12591a650d1eSmrg s//\1/ 12601a650d1eSmrg q 12611a650d1eSmrg } 12621a650d1eSmrg /^X\(\/\/\)[^/].*/{ 12631a650d1eSmrg s//\1/ 12641a650d1eSmrg q 12651a650d1eSmrg } 12661a650d1eSmrg /^X\(\/\/\)$/{ 12671a650d1eSmrg s//\1/ 12681a650d1eSmrg q 12691a650d1eSmrg } 12701a650d1eSmrg /^X\(\/\).*/{ 12711a650d1eSmrg s//\1/ 12721a650d1eSmrg q 12731a650d1eSmrg } 12741a650d1eSmrg s/.*/./; q'` 12758108eb18Smrg srcdir=$ac_confdir 12761a650d1eSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12778108eb18Smrg srcdir=.. 12788108eb18Smrg fi 12798108eb18Smrgelse 12808108eb18Smrg ac_srcdir_defaulted=no 12818108eb18Smrgfi 12821a650d1eSmrgif test ! -r "$srcdir/$ac_unique_file"; then 12831a650d1eSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12841a650d1eSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12851a650d1eSmrgfi 12861a650d1eSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12871a650d1eSmrgac_abs_confdir=`( 12881a650d1eSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12891a650d1eSmrg pwd)` 12901a650d1eSmrg# When building in place, set srcdir=. 12911a650d1eSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12921a650d1eSmrg srcdir=. 12931a650d1eSmrgfi 12941a650d1eSmrg# Remove unnecessary trailing slashes from srcdir. 12951a650d1eSmrg# Double slashes in file names in object file debugging info 12961a650d1eSmrg# mess up M-x gdb in Emacs. 12971a650d1eSmrgcase $srcdir in 12981a650d1eSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12991a650d1eSmrgesac 13001a650d1eSmrgfor ac_var in $ac_precious_vars; do 13011a650d1eSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13021a650d1eSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13031a650d1eSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13041a650d1eSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13051a650d1eSmrgdone 13068108eb18Smrg 13078108eb18Smrg# 13088108eb18Smrg# Report the --help message. 13098108eb18Smrg# 13108108eb18Smrgif test "$ac_init_help" = "long"; then 13118108eb18Smrg # Omit some internal or obsolete options to make the list less imposing. 13128108eb18Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13138108eb18Smrg cat <<_ACEOF 13148a355152Smrg\`configure' configures xsm 1.0.4 to adapt to many kinds of systems. 13158108eb18Smrg 13168108eb18SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13178108eb18Smrg 13188108eb18SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13198108eb18SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13208108eb18Smrg 13218108eb18SmrgDefaults for the options are specified in brackets. 13228108eb18Smrg 13238108eb18SmrgConfiguration: 13248108eb18Smrg -h, --help display this help and exit 13258108eb18Smrg --help=short display options specific to this package 13268108eb18Smrg --help=recursive display the short help of all the included packages 13278108eb18Smrg -V, --version display version information and exit 13281a650d1eSmrg -q, --quiet, --silent do not print \`checking ...' messages 13298108eb18Smrg --cache-file=FILE cache test results in FILE [disabled] 13308108eb18Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13318108eb18Smrg -n, --no-create do not create output files 13328108eb18Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13338108eb18Smrg 13348108eb18SmrgInstallation directories: 13358108eb18Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13361a650d1eSmrg [$ac_default_prefix] 13378108eb18Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13381a650d1eSmrg [PREFIX] 13398108eb18Smrg 13408108eb18SmrgBy default, \`make install' will install all the files in 13418108eb18Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13428108eb18Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13438108eb18Smrgfor instance \`--prefix=\$HOME'. 13448108eb18Smrg 13458108eb18SmrgFor better control, use the options below. 13468108eb18Smrg 13478108eb18SmrgFine tuning of the installation directories: 13481a650d1eSmrg --bindir=DIR user executables [EPREFIX/bin] 13491a650d1eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13501a650d1eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13511a650d1eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13521a650d1eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13531a650d1eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13541a650d1eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13551a650d1eSmrg --includedir=DIR C header files [PREFIX/include] 13561a650d1eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13571a650d1eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13581a650d1eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13591a650d1eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13601a650d1eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13611a650d1eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13621a650d1eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xsm] 13631a650d1eSmrg --htmldir=DIR html documentation [DOCDIR] 13641a650d1eSmrg --dvidir=DIR dvi documentation [DOCDIR] 13651a650d1eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13661a650d1eSmrg --psdir=DIR ps documentation [DOCDIR] 13678108eb18Smrg_ACEOF 13688108eb18Smrg 13698108eb18Smrg cat <<\_ACEOF 13708108eb18Smrg 13718108eb18SmrgProgram names: 13728108eb18Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13738108eb18Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13748108eb18Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13758108eb18Smrg 13768108eb18SmrgSystem types: 13778108eb18Smrg --build=BUILD configure for building on BUILD [guessed] 13788108eb18Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13798108eb18Smrg_ACEOF 13808108eb18Smrgfi 13818108eb18Smrg 13828108eb18Smrgif test -n "$ac_init_help"; then 13838108eb18Smrg case $ac_init_help in 13848a355152Smrg short | recursive ) echo "Configuration of xsm 1.0.4:";; 13858108eb18Smrg esac 13868108eb18Smrg cat <<\_ACEOF 13878108eb18Smrg 13888108eb18SmrgOptional Features: 13891a650d1eSmrg --disable-option-checking ignore unrecognized --enable/--with options 13908108eb18Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13918108eb18Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13928a355152Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 13938a355152Smrg --disable-silent-rules verbose build output (undo: "make V=0") 13948a355152Smrg --enable-dependency-tracking 13958a355152Smrg do not reject slow dependency extractors 13968a355152Smrg --disable-dependency-tracking 13978a355152Smrg speeds up one-time build 13985977a007Smrg --disable-selective-werror 13995977a007Smrg Turn off selective compiler errors. (default: 14005977a007Smrg enabled) 14011a650d1eSmrg --enable-strict-compilation 14021a650d1eSmrg Enable all warnings from compiler and make them 14031a650d1eSmrg errors (default: disabled) 14048108eb18Smrg 14058108eb18SmrgOptional Packages: 14068108eb18Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14078108eb18Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14081a650d1eSmrg --with-rsh=PATH Rsh command to use (default: $bindir/ssh) 14091a650d1eSmrg --with-appdefaultdir=<pathname> 14101a650d1eSmrg specify directory for app-defaults files (default is 14111a650d1eSmrg autodetected) 14128108eb18Smrg 14138108eb18SmrgSome influential environment variables: 14148108eb18Smrg CC C compiler command 14158108eb18Smrg CFLAGS C compiler flags 14168108eb18Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14178108eb18Smrg nonstandard directory <lib dir> 14181a650d1eSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14191a650d1eSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14201a650d1eSmrg you have headers in a nonstandard directory <include dir> 14211a650d1eSmrg CPP C preprocessor 14228108eb18Smrg PKG_CONFIG path to pkg-config utility 14238a355152Smrg PKG_CONFIG_PATH 14248a355152Smrg directories to add to pkg-config's search path 14258a355152Smrg PKG_CONFIG_LIBDIR 14268a355152Smrg path overriding pkg-config's built-in search path 14271a650d1eSmrg XSM_CFLAGS C compiler flags for XSM, overriding pkg-config 14281a650d1eSmrg XSM_LIBS linker flags for XSM, overriding pkg-config 14298108eb18Smrg 14308108eb18SmrgUse these variables to override the choices made by `configure' or to help 14318108eb18Smrgit to find libraries and programs with nonstandard names/locations. 14328108eb18Smrg 14338108eb18SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14348108eb18Smrg_ACEOF 14351a650d1eSmrgac_status=$? 14368108eb18Smrgfi 14378108eb18Smrg 14388108eb18Smrgif test "$ac_init_help" = "recursive"; then 14398108eb18Smrg # If there are subdirs, report their specific --help. 14408108eb18Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14411a650d1eSmrg test -d "$ac_dir" || 14421a650d1eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14431a650d1eSmrg continue 14448108eb18Smrg ac_builddir=. 14458108eb18Smrg 14461a650d1eSmrgcase "$ac_dir" in 14471a650d1eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14481a650d1eSmrg*) 14491a650d1eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14501a650d1eSmrg # A ".." for each directory in $ac_dir_suffix. 14511a650d1eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14521a650d1eSmrg case $ac_top_builddir_sub in 14531a650d1eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14541a650d1eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14551a650d1eSmrg esac ;; 14561a650d1eSmrgesac 14571a650d1eSmrgac_abs_top_builddir=$ac_pwd 14581a650d1eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14591a650d1eSmrg# for backward compatibility: 14601a650d1eSmrgac_top_builddir=$ac_top_build_prefix 14618108eb18Smrg 14628108eb18Smrgcase $srcdir in 14631a650d1eSmrg .) # We are building in place. 14648108eb18Smrg ac_srcdir=. 14651a650d1eSmrg ac_top_srcdir=$ac_top_builddir_sub 14661a650d1eSmrg ac_abs_top_srcdir=$ac_pwd ;; 14671a650d1eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14688108eb18Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14691a650d1eSmrg ac_top_srcdir=$srcdir 14701a650d1eSmrg ac_abs_top_srcdir=$srcdir ;; 14711a650d1eSmrg *) # Relative name. 14721a650d1eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14731a650d1eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14741a650d1eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14758108eb18Smrgesac 14761a650d1eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14771a650d1eSmrg 14781a650d1eSmrg cd "$ac_dir" || { ac_status=$?; continue; } 14791a650d1eSmrg # Check for guested configure. 14801a650d1eSmrg if test -f "$ac_srcdir/configure.gnu"; then 14811a650d1eSmrg echo && 14821a650d1eSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14831a650d1eSmrg elif test -f "$ac_srcdir/configure"; then 14841a650d1eSmrg echo && 14851a650d1eSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14868108eb18Smrg else 14871a650d1eSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14881a650d1eSmrg fi || ac_status=$? 14891a650d1eSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14908108eb18Smrg done 14918108eb18Smrgfi 14928108eb18Smrg 14931a650d1eSmrgtest -n "$ac_init_help" && exit $ac_status 14948108eb18Smrgif $ac_init_version; then 14958108eb18Smrg cat <<\_ACEOF 14968a355152Smrgxsm configure 1.0.4 14978a355152Smrggenerated by GNU Autoconf 2.69 14988108eb18Smrg 14998a355152SmrgCopyright (C) 2012 Free Software Foundation, Inc. 15008108eb18SmrgThis configure script is free software; the Free Software Foundation 15018108eb18Smrggives unlimited permission to copy, distribute and modify it. 15028108eb18Smrg_ACEOF 15031a650d1eSmrg exit 15048108eb18Smrgfi 15058108eb18Smrg 15061a650d1eSmrg## ------------------------ ## 15071a650d1eSmrg## Autoconf initialization. ## 15081a650d1eSmrg## ------------------------ ## 15098108eb18Smrg 15101a650d1eSmrg# ac_fn_c_try_compile LINENO 15111a650d1eSmrg# -------------------------- 15121a650d1eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15131a650d1eSmrgac_fn_c_try_compile () 15148108eb18Smrg{ 15151a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15161a650d1eSmrg rm -f conftest.$ac_objext 15171a650d1eSmrg if { { ac_try="$ac_compile" 15181a650d1eSmrgcase "(($ac_try" in 15191a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15201a650d1eSmrg *) ac_try_echo=$ac_try;; 15211a650d1eSmrgesac 15221a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15231a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 15241a650d1eSmrg (eval "$ac_compile") 2>conftest.err 15251a650d1eSmrg ac_status=$? 15261a650d1eSmrg if test -s conftest.err; then 15271a650d1eSmrg grep -v '^ *+' conftest.err >conftest.er1 15281a650d1eSmrg cat conftest.er1 >&5 15291a650d1eSmrg mv -f conftest.er1 conftest.err 15301a650d1eSmrg fi 15311a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15321a650d1eSmrg test $ac_status = 0; } && { 15331a650d1eSmrg test -z "$ac_c_werror_flag" || 15341a650d1eSmrg test ! -s conftest.err 15351a650d1eSmrg } && test -s conftest.$ac_objext; then : 15361a650d1eSmrg ac_retval=0 15371a650d1eSmrgelse 15381a650d1eSmrg $as_echo "$as_me: failed program was:" >&5 15391a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 15408108eb18Smrg 15411a650d1eSmrg ac_retval=1 15421a650d1eSmrgfi 15431a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15441a650d1eSmrg as_fn_set_status $ac_retval 15458108eb18Smrg 15461a650d1eSmrg} # ac_fn_c_try_compile 15478108eb18Smrg 15481a650d1eSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15491a650d1eSmrg# --------------------------------------------- 15501a650d1eSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15511a650d1eSmrg# accordingly. 15521a650d1eSmrgac_fn_c_check_decl () 15531a650d1eSmrg{ 15541a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15551a650d1eSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15561a650d1eSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15571a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15581a650d1eSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15591a650d1eSmrgif eval \${$3+:} false; then : 15601a650d1eSmrg $as_echo_n "(cached) " >&6 15611a650d1eSmrgelse 15621a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15631a650d1eSmrg/* end confdefs.h. */ 15641a650d1eSmrg$4 15651a650d1eSmrgint 15661a650d1eSmrgmain () 15671a650d1eSmrg{ 15681a650d1eSmrg#ifndef $as_decl_name 15691a650d1eSmrg#ifdef __cplusplus 15701a650d1eSmrg (void) $as_decl_use; 15711a650d1eSmrg#else 15721a650d1eSmrg (void) $as_decl_name; 15731a650d1eSmrg#endif 15741a650d1eSmrg#endif 15758108eb18Smrg 15761a650d1eSmrg ; 15771a650d1eSmrg return 0; 15781a650d1eSmrg} 15791a650d1eSmrg_ACEOF 15801a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 15811a650d1eSmrg eval "$3=yes" 15821a650d1eSmrgelse 15831a650d1eSmrg eval "$3=no" 15841a650d1eSmrgfi 15851a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15861a650d1eSmrgfi 15871a650d1eSmrgeval ac_res=\$$3 15881a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15891a650d1eSmrg$as_echo "$ac_res" >&6; } 15901a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15911a650d1eSmrg 15921a650d1eSmrg} # ac_fn_c_check_decl 15931a650d1eSmrg 15941a650d1eSmrg# ac_fn_c_try_cpp LINENO 15951a650d1eSmrg# ---------------------- 15961a650d1eSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15971a650d1eSmrgac_fn_c_try_cpp () 15981a650d1eSmrg{ 15991a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16001a650d1eSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 16011a650d1eSmrgcase "(($ac_try" in 16021a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16031a650d1eSmrg *) ac_try_echo=$ac_try;; 16041a650d1eSmrgesac 16051a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16061a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 16071a650d1eSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 16081a650d1eSmrg ac_status=$? 16091a650d1eSmrg if test -s conftest.err; then 16101a650d1eSmrg grep -v '^ *+' conftest.err >conftest.er1 16111a650d1eSmrg cat conftest.er1 >&5 16121a650d1eSmrg mv -f conftest.er1 conftest.err 16131a650d1eSmrg fi 16141a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16151a650d1eSmrg test $ac_status = 0; } > conftest.i && { 16161a650d1eSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16171a650d1eSmrg test ! -s conftest.err 16181a650d1eSmrg }; then : 16191a650d1eSmrg ac_retval=0 16201a650d1eSmrgelse 16211a650d1eSmrg $as_echo "$as_me: failed program was:" >&5 16221a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 16231a650d1eSmrg 16241a650d1eSmrg ac_retval=1 16251a650d1eSmrgfi 16261a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16271a650d1eSmrg as_fn_set_status $ac_retval 16281a650d1eSmrg 16291a650d1eSmrg} # ac_fn_c_try_cpp 16301a650d1eSmrg 16311a650d1eSmrg# ac_fn_c_try_run LINENO 16321a650d1eSmrg# ---------------------- 16331a650d1eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16341a650d1eSmrg# that executables *can* be run. 16351a650d1eSmrgac_fn_c_try_run () 16361a650d1eSmrg{ 16371a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16381a650d1eSmrg if { { ac_try="$ac_link" 16391a650d1eSmrgcase "(($ac_try" in 16401a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16411a650d1eSmrg *) ac_try_echo=$ac_try;; 16421a650d1eSmrgesac 16431a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16441a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 16451a650d1eSmrg (eval "$ac_link") 2>&5 16461a650d1eSmrg ac_status=$? 16471a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16481a650d1eSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16491a650d1eSmrg { { case "(($ac_try" in 16501a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16511a650d1eSmrg *) ac_try_echo=$ac_try;; 16521a650d1eSmrgesac 16531a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16541a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 16551a650d1eSmrg (eval "$ac_try") 2>&5 16561a650d1eSmrg ac_status=$? 16571a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16581a650d1eSmrg test $ac_status = 0; }; }; then : 16591a650d1eSmrg ac_retval=0 16601a650d1eSmrgelse 16611a650d1eSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 16621a650d1eSmrg $as_echo "$as_me: failed program was:" >&5 16631a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 16641a650d1eSmrg 16651a650d1eSmrg ac_retval=$ac_status 16661a650d1eSmrgfi 16671a650d1eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16681a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16691a650d1eSmrg as_fn_set_status $ac_retval 16701a650d1eSmrg 16711a650d1eSmrg} # ac_fn_c_try_run 16721a650d1eSmrg 16731a650d1eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16741a650d1eSmrg# ------------------------------------------------------- 16751a650d1eSmrg# Tests whether HEADER exists and can be compiled using the include files in 16761a650d1eSmrg# INCLUDES, setting the cache variable VAR accordingly. 16771a650d1eSmrgac_fn_c_check_header_compile () 16781a650d1eSmrg{ 16791a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16801a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16811a650d1eSmrg$as_echo_n "checking for $2... " >&6; } 16821a650d1eSmrgif eval \${$3+:} false; then : 16831a650d1eSmrg $as_echo_n "(cached) " >&6 16841a650d1eSmrgelse 16851a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16861a650d1eSmrg/* end confdefs.h. */ 16871a650d1eSmrg$4 16881a650d1eSmrg#include <$2> 16891a650d1eSmrg_ACEOF 16901a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 16911a650d1eSmrg eval "$3=yes" 16921a650d1eSmrgelse 16931a650d1eSmrg eval "$3=no" 16941a650d1eSmrgfi 16951a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16961a650d1eSmrgfi 16971a650d1eSmrgeval ac_res=\$$3 16981a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16991a650d1eSmrg$as_echo "$ac_res" >&6; } 17001a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17011a650d1eSmrg 17021a650d1eSmrg} # ac_fn_c_check_header_compile 17031a650d1eSmrg 17041a650d1eSmrg# ac_fn_c_try_link LINENO 17051a650d1eSmrg# ----------------------- 17061a650d1eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17071a650d1eSmrgac_fn_c_try_link () 17081a650d1eSmrg{ 17091a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17101a650d1eSmrg rm -f conftest.$ac_objext conftest$ac_exeext 17111a650d1eSmrg if { { ac_try="$ac_link" 17121a650d1eSmrgcase "(($ac_try" in 17131a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17141a650d1eSmrg *) ac_try_echo=$ac_try;; 17151a650d1eSmrgesac 17161a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17171a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 17181a650d1eSmrg (eval "$ac_link") 2>conftest.err 17191a650d1eSmrg ac_status=$? 17201a650d1eSmrg if test -s conftest.err; then 17211a650d1eSmrg grep -v '^ *+' conftest.err >conftest.er1 17221a650d1eSmrg cat conftest.er1 >&5 17231a650d1eSmrg mv -f conftest.er1 conftest.err 17241a650d1eSmrg fi 17251a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17261a650d1eSmrg test $ac_status = 0; } && { 17271a650d1eSmrg test -z "$ac_c_werror_flag" || 17281a650d1eSmrg test ! -s conftest.err 17291a650d1eSmrg } && test -s conftest$ac_exeext && { 17301a650d1eSmrg test "$cross_compiling" = yes || 17318a355152Smrg test -x conftest$ac_exeext 17321a650d1eSmrg }; then : 17331a650d1eSmrg ac_retval=0 17341a650d1eSmrgelse 17351a650d1eSmrg $as_echo "$as_me: failed program was:" >&5 17361a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 17371a650d1eSmrg 17381a650d1eSmrg ac_retval=1 17391a650d1eSmrgfi 17401a650d1eSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17411a650d1eSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17421a650d1eSmrg # interfere with the next link command; also delete a directory that is 17431a650d1eSmrg # left behind by Apple's compiler. We do this before executing the actions. 17441a650d1eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17451a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17461a650d1eSmrg as_fn_set_status $ac_retval 17471a650d1eSmrg 17481a650d1eSmrg} # ac_fn_c_try_link 17491a650d1eSmrg 17501a650d1eSmrg# ac_fn_c_check_func LINENO FUNC VAR 17511a650d1eSmrg# ---------------------------------- 17521a650d1eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17531a650d1eSmrgac_fn_c_check_func () 17541a650d1eSmrg{ 17551a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17561a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17571a650d1eSmrg$as_echo_n "checking for $2... " >&6; } 17581a650d1eSmrgif eval \${$3+:} false; then : 17591a650d1eSmrg $as_echo_n "(cached) " >&6 17601a650d1eSmrgelse 17611a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17621a650d1eSmrg/* end confdefs.h. */ 17631a650d1eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17641a650d1eSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17651a650d1eSmrg#define $2 innocuous_$2 17661a650d1eSmrg 17671a650d1eSmrg/* System header to define __stub macros and hopefully few prototypes, 17681a650d1eSmrg which can conflict with char $2 (); below. 17691a650d1eSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17701a650d1eSmrg <limits.h> exists even on freestanding compilers. */ 17711a650d1eSmrg 17721a650d1eSmrg#ifdef __STDC__ 17731a650d1eSmrg# include <limits.h> 17741a650d1eSmrg#else 17751a650d1eSmrg# include <assert.h> 17761a650d1eSmrg#endif 17771a650d1eSmrg 17781a650d1eSmrg#undef $2 17791a650d1eSmrg 17801a650d1eSmrg/* Override any GCC internal prototype to avoid an error. 17811a650d1eSmrg Use char because int might match the return type of a GCC 17821a650d1eSmrg builtin and then its argument prototype would still apply. */ 17831a650d1eSmrg#ifdef __cplusplus 17841a650d1eSmrgextern "C" 17851a650d1eSmrg#endif 17861a650d1eSmrgchar $2 (); 17871a650d1eSmrg/* The GNU C library defines this for functions which it implements 17881a650d1eSmrg to always fail with ENOSYS. Some functions are actually named 17891a650d1eSmrg something starting with __ and the normal name is an alias. */ 17901a650d1eSmrg#if defined __stub_$2 || defined __stub___$2 17911a650d1eSmrgchoke me 17921a650d1eSmrg#endif 17931a650d1eSmrg 17941a650d1eSmrgint 17951a650d1eSmrgmain () 17961a650d1eSmrg{ 17971a650d1eSmrgreturn $2 (); 17981a650d1eSmrg ; 17991a650d1eSmrg return 0; 18001a650d1eSmrg} 18011a650d1eSmrg_ACEOF 18021a650d1eSmrgif ac_fn_c_try_link "$LINENO"; then : 18031a650d1eSmrg eval "$3=yes" 18041a650d1eSmrgelse 18051a650d1eSmrg eval "$3=no" 18061a650d1eSmrgfi 18071a650d1eSmrgrm -f core conftest.err conftest.$ac_objext \ 18081a650d1eSmrg conftest$ac_exeext conftest.$ac_ext 18091a650d1eSmrgfi 18101a650d1eSmrgeval ac_res=\$$3 18111a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18121a650d1eSmrg$as_echo "$ac_res" >&6; } 18131a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18141a650d1eSmrg 18151a650d1eSmrg} # ac_fn_c_check_func 18161a650d1eSmrgcat >config.log <<_ACEOF 18171a650d1eSmrgThis file contains any messages produced by compilers while 18181a650d1eSmrgrunning configure, to aid debugging if configure makes a mistake. 18191a650d1eSmrg 18208a355152SmrgIt was created by xsm $as_me 1.0.4, which was 18218a355152Smrggenerated by GNU Autoconf 2.69. Invocation command line was 18221a650d1eSmrg 18231a650d1eSmrg $ $0 $@ 18241a650d1eSmrg 18251a650d1eSmrg_ACEOF 18261a650d1eSmrgexec 5>>config.log 18271a650d1eSmrg{ 18281a650d1eSmrgcat <<_ASUNAME 18291a650d1eSmrg## --------- ## 18301a650d1eSmrg## Platform. ## 18311a650d1eSmrg## --------- ## 18321a650d1eSmrg 18331a650d1eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18341a650d1eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18351a650d1eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18361a650d1eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18371a650d1eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18381a650d1eSmrg 18391a650d1eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18401a650d1eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18411a650d1eSmrg 18421a650d1eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18431a650d1eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18441a650d1eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18451a650d1eSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18461a650d1eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18471a650d1eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18481a650d1eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18491a650d1eSmrg 18501a650d1eSmrg_ASUNAME 18511a650d1eSmrg 18521a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18531a650d1eSmrgfor as_dir in $PATH 18541a650d1eSmrgdo 18558108eb18Smrg IFS=$as_save_IFS 18568108eb18Smrg test -z "$as_dir" && as_dir=. 18571a650d1eSmrg $as_echo "PATH: $as_dir" 18581a650d1eSmrg done 18591a650d1eSmrgIFS=$as_save_IFS 18608108eb18Smrg 18618108eb18Smrg} >&5 18628108eb18Smrg 18638108eb18Smrgcat >&5 <<_ACEOF 18648108eb18Smrg 18658108eb18Smrg 18668108eb18Smrg## ----------- ## 18678108eb18Smrg## Core tests. ## 18688108eb18Smrg## ----------- ## 18698108eb18Smrg 18708108eb18Smrg_ACEOF 18718108eb18Smrg 18728108eb18Smrg 18738108eb18Smrg# Keep a trace of the command line. 18748108eb18Smrg# Strip out --no-create and --no-recursion so they do not pile up. 18758108eb18Smrg# Strip out --silent because we don't want to record it for future runs. 18768108eb18Smrg# Also quote any args containing shell meta-characters. 18778108eb18Smrg# Make two passes to allow for proper duplicate-argument suppression. 18788108eb18Smrgac_configure_args= 18798108eb18Smrgac_configure_args0= 18808108eb18Smrgac_configure_args1= 18818108eb18Smrgac_must_keep_next=false 18828108eb18Smrgfor ac_pass in 1 2 18838108eb18Smrgdo 18848108eb18Smrg for ac_arg 18858108eb18Smrg do 18868108eb18Smrg case $ac_arg in 18878108eb18Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18888108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18898108eb18Smrg | -silent | --silent | --silen | --sile | --sil) 18908108eb18Smrg continue ;; 18911a650d1eSmrg *\'*) 18921a650d1eSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18938108eb18Smrg esac 18948108eb18Smrg case $ac_pass in 18951a650d1eSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18968108eb18Smrg 2) 18971a650d1eSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18988108eb18Smrg if test $ac_must_keep_next = true; then 18998108eb18Smrg ac_must_keep_next=false # Got value, back to normal. 19008108eb18Smrg else 19018108eb18Smrg case $ac_arg in 19028108eb18Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 19038108eb18Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 19048108eb18Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 19058108eb18Smrg | -with-* | --with-* | -without-* | --without-* | --x) 19068108eb18Smrg case "$ac_configure_args0 " in 19078108eb18Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 19088108eb18Smrg esac 19098108eb18Smrg ;; 19108108eb18Smrg -* ) ac_must_keep_next=true ;; 19118108eb18Smrg esac 19128108eb18Smrg fi 19131a650d1eSmrg as_fn_append ac_configure_args " '$ac_arg'" 19148108eb18Smrg ;; 19158108eb18Smrg esac 19168108eb18Smrg done 19178108eb18Smrgdone 19181a650d1eSmrg{ ac_configure_args0=; unset ac_configure_args0;} 19191a650d1eSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19208108eb18Smrg 19218108eb18Smrg# When interrupted or exit'd, cleanup temporary files, and complete 19228108eb18Smrg# config.log. We remove comments because anyway the quotes in there 19238108eb18Smrg# would cause problems or look ugly. 19241a650d1eSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19251a650d1eSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19268108eb18Smrgtrap 'exit_status=$? 19278108eb18Smrg # Save into config.log some information that might help in debugging. 19288108eb18Smrg { 19298108eb18Smrg echo 19308108eb18Smrg 19311a650d1eSmrg $as_echo "## ---------------- ## 19328108eb18Smrg## Cache variables. ## 19331a650d1eSmrg## ---------------- ##" 19348108eb18Smrg echo 19358108eb18Smrg # The following way of writing the cache mishandles newlines in values, 19361a650d1eSmrg( 19371a650d1eSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19381a650d1eSmrg eval ac_val=\$$ac_var 19391a650d1eSmrg case $ac_val in #( 19401a650d1eSmrg *${as_nl}*) 19411a650d1eSmrg case $ac_var in #( 19421a650d1eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19431a650d1eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19441a650d1eSmrg esac 19451a650d1eSmrg case $ac_var in #( 19461a650d1eSmrg _ | IFS | as_nl) ;; #( 19471a650d1eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19481a650d1eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19491a650d1eSmrg esac ;; 19501a650d1eSmrg esac 19511a650d1eSmrg done 19528108eb18Smrg (set) 2>&1 | 19531a650d1eSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19541a650d1eSmrg *${as_nl}ac_space=\ *) 19558108eb18Smrg sed -n \ 19561a650d1eSmrg "s/'\''/'\''\\\\'\'''\''/g; 19571a650d1eSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19581a650d1eSmrg ;; #( 19598108eb18Smrg *) 19601a650d1eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19618108eb18Smrg ;; 19621a650d1eSmrg esac | 19631a650d1eSmrg sort 19641a650d1eSmrg) 19658108eb18Smrg echo 19668108eb18Smrg 19671a650d1eSmrg $as_echo "## ----------------- ## 19688108eb18Smrg## Output variables. ## 19691a650d1eSmrg## ----------------- ##" 19708108eb18Smrg echo 19718108eb18Smrg for ac_var in $ac_subst_vars 19728108eb18Smrg do 19731a650d1eSmrg eval ac_val=\$$ac_var 19741a650d1eSmrg case $ac_val in 19751a650d1eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19761a650d1eSmrg esac 19771a650d1eSmrg $as_echo "$ac_var='\''$ac_val'\''" 19788108eb18Smrg done | sort 19798108eb18Smrg echo 19808108eb18Smrg 19818108eb18Smrg if test -n "$ac_subst_files"; then 19821a650d1eSmrg $as_echo "## ------------------- ## 19831a650d1eSmrg## File substitutions. ## 19841a650d1eSmrg## ------------------- ##" 19858108eb18Smrg echo 19868108eb18Smrg for ac_var in $ac_subst_files 19878108eb18Smrg do 19881a650d1eSmrg eval ac_val=\$$ac_var 19891a650d1eSmrg case $ac_val in 19901a650d1eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19911a650d1eSmrg esac 19921a650d1eSmrg $as_echo "$ac_var='\''$ac_val'\''" 19938108eb18Smrg done | sort 19948108eb18Smrg echo 19958108eb18Smrg fi 19968108eb18Smrg 19978108eb18Smrg if test -s confdefs.h; then 19981a650d1eSmrg $as_echo "## ----------- ## 19998108eb18Smrg## confdefs.h. ## 20001a650d1eSmrg## ----------- ##" 20018108eb18Smrg echo 20021a650d1eSmrg cat confdefs.h 20038108eb18Smrg echo 20048108eb18Smrg fi 20058108eb18Smrg test "$ac_signal" != 0 && 20061a650d1eSmrg $as_echo "$as_me: caught signal $ac_signal" 20071a650d1eSmrg $as_echo "$as_me: exit $exit_status" 20088108eb18Smrg } >&5 20091a650d1eSmrg rm -f core *.core core.conftest.* && 20101a650d1eSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 20118108eb18Smrg exit $exit_status 20121a650d1eSmrg' 0 20138108eb18Smrgfor ac_signal in 1 2 13 15; do 20141a650d1eSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20158108eb18Smrgdone 20168108eb18Smrgac_signal=0 20178108eb18Smrg 20188108eb18Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20191a650d1eSmrgrm -f -r conftest* confdefs.h 20201a650d1eSmrg 20211a650d1eSmrg$as_echo "/* confdefs.h */" > confdefs.h 20228108eb18Smrg 20238108eb18Smrg# Predefined preprocessor variables. 20248108eb18Smrg 20258108eb18Smrgcat >>confdefs.h <<_ACEOF 20268108eb18Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 20278108eb18Smrg_ACEOF 20288108eb18Smrg 20298108eb18Smrgcat >>confdefs.h <<_ACEOF 20308108eb18Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 20318108eb18Smrg_ACEOF 20328108eb18Smrg 20338108eb18Smrgcat >>confdefs.h <<_ACEOF 20348108eb18Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 20358108eb18Smrg_ACEOF 20368108eb18Smrg 20378108eb18Smrgcat >>confdefs.h <<_ACEOF 20388108eb18Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 20398108eb18Smrg_ACEOF 20408108eb18Smrg 20418108eb18Smrgcat >>confdefs.h <<_ACEOF 20428108eb18Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 20438108eb18Smrg_ACEOF 20448108eb18Smrg 20451a650d1eSmrgcat >>confdefs.h <<_ACEOF 20461a650d1eSmrg#define PACKAGE_URL "$PACKAGE_URL" 20471a650d1eSmrg_ACEOF 20481a650d1eSmrg 20498108eb18Smrg 20508108eb18Smrg# Let the site file select an alternate cache file if it wants to. 20511a650d1eSmrg# Prefer an explicitly selected file to automatically selected ones. 20521a650d1eSmrgac_site_file1=NONE 20531a650d1eSmrgac_site_file2=NONE 20541a650d1eSmrgif test -n "$CONFIG_SITE"; then 20551a650d1eSmrg # We do not want a PATH search for config.site. 20561a650d1eSmrg case $CONFIG_SITE in #(( 20571a650d1eSmrg -*) ac_site_file1=./$CONFIG_SITE;; 20581a650d1eSmrg */*) ac_site_file1=$CONFIG_SITE;; 20591a650d1eSmrg *) ac_site_file1=./$CONFIG_SITE;; 20601a650d1eSmrg esac 20611a650d1eSmrgelif test "x$prefix" != xNONE; then 20621a650d1eSmrg ac_site_file1=$prefix/share/config.site 20631a650d1eSmrg ac_site_file2=$prefix/etc/config.site 20641a650d1eSmrgelse 20651a650d1eSmrg ac_site_file1=$ac_default_prefix/share/config.site 20661a650d1eSmrg ac_site_file2=$ac_default_prefix/etc/config.site 20678108eb18Smrgfi 20681a650d1eSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 20691a650d1eSmrgdo 20701a650d1eSmrg test "x$ac_site_file" = xNONE && continue 20711a650d1eSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 20721a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20731a650d1eSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 20748108eb18Smrg sed 's/^/| /' "$ac_site_file" >&5 20751a650d1eSmrg . "$ac_site_file" \ 20761a650d1eSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20771a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20781a650d1eSmrgas_fn_error $? "failed to load site script $ac_site_file 20791a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 20808108eb18Smrg fi 20818108eb18Smrgdone 20828108eb18Smrg 20838108eb18Smrgif test -r "$cache_file"; then 20841a650d1eSmrg # Some versions of bash will fail to source /dev/null (special files 20851a650d1eSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20861a650d1eSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20871a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20881a650d1eSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20898108eb18Smrg case $cache_file in 20901a650d1eSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20911a650d1eSmrg *) . "./$cache_file";; 20928108eb18Smrg esac 20938108eb18Smrg fi 20948108eb18Smrgelse 20951a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20961a650d1eSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20978108eb18Smrg >$cache_file 20988108eb18Smrgfi 20998108eb18Smrg 21008108eb18Smrg# Check that the precious variables saved in the cache have kept the same 21018108eb18Smrg# value. 21028108eb18Smrgac_cache_corrupted=false 21031a650d1eSmrgfor ac_var in $ac_precious_vars; do 21048108eb18Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 21058108eb18Smrg eval ac_new_set=\$ac_env_${ac_var}_set 21061a650d1eSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 21071a650d1eSmrg eval ac_new_val=\$ac_env_${ac_var}_value 21088108eb18Smrg case $ac_old_set,$ac_new_set in 21098108eb18Smrg set,) 21101a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 21111a650d1eSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 21128108eb18Smrg ac_cache_corrupted=: ;; 21138108eb18Smrg ,set) 21141a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 21151a650d1eSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 21168108eb18Smrg ac_cache_corrupted=: ;; 21178108eb18Smrg ,);; 21188108eb18Smrg *) 21198108eb18Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 21201a650d1eSmrg # differences in whitespace do not lead to failure. 21211a650d1eSmrg ac_old_val_w=`echo x $ac_old_val` 21221a650d1eSmrg ac_new_val_w=`echo x $ac_new_val` 21231a650d1eSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 21241a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 21251a650d1eSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 21261a650d1eSmrg ac_cache_corrupted=: 21271a650d1eSmrg else 21281a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 21291a650d1eSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 21301a650d1eSmrg eval $ac_var=\$ac_old_val 21311a650d1eSmrg fi 21321a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 21331a650d1eSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 21341a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 21351a650d1eSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 21368108eb18Smrg fi;; 21378108eb18Smrg esac 21388108eb18Smrg # Pass precious variables to config.status. 21398108eb18Smrg if test "$ac_new_set" = set; then 21408108eb18Smrg case $ac_new_val in 21411a650d1eSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 21428108eb18Smrg *) ac_arg=$ac_var=$ac_new_val ;; 21438108eb18Smrg esac 21448108eb18Smrg case " $ac_configure_args " in 21458108eb18Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 21461a650d1eSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 21478108eb18Smrg esac 21488108eb18Smrg fi 21498108eb18Smrgdone 21508108eb18Smrgif $ac_cache_corrupted; then 21511a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21521a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21531a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 21541a650d1eSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 21551a650d1eSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 21568108eb18Smrgfi 21571a650d1eSmrg## -------------------- ## 21581a650d1eSmrg## Main body of script. ## 21591a650d1eSmrg## -------------------- ## 21608108eb18Smrg 21618108eb18Smrgac_ext=c 21628108eb18Smrgac_cpp='$CPP $CPPFLAGS' 21638108eb18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21648108eb18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21658108eb18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21668108eb18Smrg 21678108eb18Smrg 21685977a007Smrg 21695977a007Smrgac_config_headers="$ac_config_headers config.h" 21705977a007Smrg 21715977a007Smrg 21725977a007Smrg# Initialize Automake 21738a355152Smrgam__api_version='1.15' 21748108eb18Smrg 21758108eb18Smrgac_aux_dir= 21761a650d1eSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 21771a650d1eSmrg if test -f "$ac_dir/install-sh"; then 21788108eb18Smrg ac_aux_dir=$ac_dir 21798108eb18Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 21808108eb18Smrg break 21811a650d1eSmrg elif test -f "$ac_dir/install.sh"; then 21828108eb18Smrg ac_aux_dir=$ac_dir 21838108eb18Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 21848108eb18Smrg break 21851a650d1eSmrg elif test -f "$ac_dir/shtool"; then 21868108eb18Smrg ac_aux_dir=$ac_dir 21878108eb18Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 21888108eb18Smrg break 21898108eb18Smrg fi 21908108eb18Smrgdone 21918108eb18Smrgif test -z "$ac_aux_dir"; then 21921a650d1eSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21938108eb18Smrgfi 21941a650d1eSmrg 21951a650d1eSmrg# These three variables are undocumented and unsupported, 21961a650d1eSmrg# and are intended to be withdrawn in a future Autoconf release. 21971a650d1eSmrg# They can cause serious problems if a builder's source tree is in a directory 21981a650d1eSmrg# whose full name contains unusual characters. 21991a650d1eSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 22001a650d1eSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 22011a650d1eSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 22021a650d1eSmrg 22038108eb18Smrg 22048108eb18Smrg# Find a good install program. We prefer a C program (faster), 22058108eb18Smrg# so one script is as good as another. But avoid the broken or 22068108eb18Smrg# incompatible versions: 22078108eb18Smrg# SysV /etc/install, /usr/sbin/install 22088108eb18Smrg# SunOS /usr/etc/install 22098108eb18Smrg# IRIX /sbin/install 22108108eb18Smrg# AIX /bin/install 22118108eb18Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 22128108eb18Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 22138108eb18Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 22148108eb18Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 22158108eb18Smrg# OS/2's system install, which has a completely different semantic 22168108eb18Smrg# ./install, which can be erroneously created by make from ./install.sh. 22171a650d1eSmrg# Reject install programs that cannot install multiple files. 22181a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 22191a650d1eSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 22208108eb18Smrgif test -z "$INSTALL"; then 22211a650d1eSmrgif ${ac_cv_path_install+:} false; then : 22221a650d1eSmrg $as_echo_n "(cached) " >&6 22238108eb18Smrgelse 22248108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22258108eb18Smrgfor as_dir in $PATH 22268108eb18Smrgdo 22278108eb18Smrg IFS=$as_save_IFS 22288108eb18Smrg test -z "$as_dir" && as_dir=. 22291a650d1eSmrg # Account for people who put trailing slashes in PATH elements. 22301a650d1eSmrgcase $as_dir/ in #(( 22311a650d1eSmrg ./ | .// | /[cC]/* | \ 22328108eb18Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 22331a650d1eSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 22348108eb18Smrg /usr/ucb/* ) ;; 22358108eb18Smrg *) 22368108eb18Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 22378108eb18Smrg # Don't use installbsd from OSF since it installs stuff as root 22388108eb18Smrg # by default. 22398108eb18Smrg for ac_prog in ginstall scoinst install; do 22408108eb18Smrg for ac_exec_ext in '' $ac_executable_extensions; do 22418a355152Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 22428108eb18Smrg if test $ac_prog = install && 22438108eb18Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22448108eb18Smrg # AIX install. It has an incompatible calling convention. 22458108eb18Smrg : 22468108eb18Smrg elif test $ac_prog = install && 22478108eb18Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22488108eb18Smrg # program-specific install script used by HP pwplus--don't use. 22498108eb18Smrg : 22508108eb18Smrg else 22511a650d1eSmrg rm -rf conftest.one conftest.two conftest.dir 22521a650d1eSmrg echo one > conftest.one 22531a650d1eSmrg echo two > conftest.two 22541a650d1eSmrg mkdir conftest.dir 22551a650d1eSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 22561a650d1eSmrg test -s conftest.one && test -s conftest.two && 22571a650d1eSmrg test -s conftest.dir/conftest.one && 22581a650d1eSmrg test -s conftest.dir/conftest.two 22591a650d1eSmrg then 22601a650d1eSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 22611a650d1eSmrg break 3 22621a650d1eSmrg fi 22638108eb18Smrg fi 22648108eb18Smrg fi 22658108eb18Smrg done 22668108eb18Smrg done 22678108eb18Smrg ;; 22688108eb18Smrgesac 22698108eb18Smrg 22701a650d1eSmrg done 22711a650d1eSmrgIFS=$as_save_IFS 22721a650d1eSmrg 22731a650d1eSmrgrm -rf conftest.one conftest.two conftest.dir 22748108eb18Smrg 22758108eb18Smrgfi 22768108eb18Smrg if test "${ac_cv_path_install+set}" = set; then 22778108eb18Smrg INSTALL=$ac_cv_path_install 22788108eb18Smrg else 22791a650d1eSmrg # As a last resort, use the slow shell script. Don't cache a 22801a650d1eSmrg # value for INSTALL within a source directory, because that will 22818108eb18Smrg # break other packages using the cache if that directory is 22821a650d1eSmrg # removed, or if the value is a relative name. 22838108eb18Smrg INSTALL=$ac_install_sh 22848108eb18Smrg fi 22858108eb18Smrgfi 22861a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 22871a650d1eSmrg$as_echo "$INSTALL" >&6; } 22888108eb18Smrg 22898108eb18Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22908108eb18Smrg# It thinks the first close brace ends the variable substitution. 22918108eb18Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22928108eb18Smrg 22938108eb18Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22948108eb18Smrg 22958108eb18Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22968108eb18Smrg 22971a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 22981a650d1eSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 22991a650d1eSmrg# Reject unsafe characters in $srcdir or the absolute working directory 23001a650d1eSmrg# name. Accept space and tab only in the latter. 23011a650d1eSmrgam_lf=' 23021a650d1eSmrg' 23031a650d1eSmrgcase `pwd` in 23041a650d1eSmrg *[\\\"\#\$\&\'\`$am_lf]*) 23051a650d1eSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 23061a650d1eSmrgesac 23071a650d1eSmrgcase $srcdir in 23081a650d1eSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 23098a355152Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 23101a650d1eSmrgesac 23111a650d1eSmrg 23128a355152Smrg# Do 'set' in a subshell so we don't clobber the current shell's 23138108eb18Smrg# arguments. Must try -L first in case configure is actually a 23148108eb18Smrg# symlink; some systems play weird games with the mod time of symlinks 23158108eb18Smrg# (eg FreeBSD returns the mod time of the symlink's containing 23168108eb18Smrg# directory). 23178108eb18Smrgif ( 23188a355152Smrg am_has_slept=no 23198a355152Smrg for am_try in 1 2; do 23208a355152Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 23218a355152Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 23228a355152Smrg if test "$*" = "X"; then 23238a355152Smrg # -L didn't work. 23248a355152Smrg set X `ls -t "$srcdir/configure" conftest.file` 23258a355152Smrg fi 23268a355152Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 23278a355152Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 23288a355152Smrg 23298a355152Smrg # If neither matched, then we have a broken ls. This can happen 23308a355152Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 23318a355152Smrg # broken ls alias from the environment. This has actually 23328a355152Smrg # happened. Such a system could not be considered "sane". 23338a355152Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 23348a355152Smrg alias in your environment" "$LINENO" 5 23358a355152Smrg fi 23368a355152Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 23378a355152Smrg break 23388a355152Smrg fi 23398a355152Smrg # Just in case. 23408a355152Smrg sleep 1 23418a355152Smrg am_has_slept=yes 23428a355152Smrg done 23438108eb18Smrg test "$2" = conftest.file 23448108eb18Smrg ) 23458108eb18Smrgthen 23468108eb18Smrg # Ok. 23478108eb18Smrg : 23488108eb18Smrgelse 23491a650d1eSmrg as_fn_error $? "newly created file is older than distributed files! 23501a650d1eSmrgCheck your system clock" "$LINENO" 5 23518108eb18Smrgfi 23521a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23531a650d1eSmrg$as_echo "yes" >&6; } 23548a355152Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 23558a355152Smrg# generated files are strictly newer. 23568a355152Smrgam_sleep_pid= 23578a355152Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 23588a355152Smrg ( sleep 1 ) & 23598a355152Smrg am_sleep_pid=$! 23608a355152Smrgfi 23618a355152Smrg 23628a355152Smrgrm -f conftest.file 23638a355152Smrg 23648108eb18Smrgtest "$program_prefix" != NONE && 23651a650d1eSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 23668108eb18Smrg# Use a double $ so make ignores it. 23678108eb18Smrgtest "$program_suffix" != NONE && 23681a650d1eSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 23691a650d1eSmrg# Double any \ or $. 23708108eb18Smrg# By default was `s,x,x', remove it if useless. 23711a650d1eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 23721a650d1eSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23738108eb18Smrg 23748a355152Smrg# Expand $ac_aux_dir to an absolute path. 23758a355152Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 23768108eb18Smrg 23771a650d1eSmrgif test x"${MISSING+set}" != xset; then 23781a650d1eSmrg case $am_aux_dir in 23791a650d1eSmrg *\ * | *\ *) 23801a650d1eSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 23811a650d1eSmrg *) 23821a650d1eSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 23831a650d1eSmrg esac 23841a650d1eSmrgfi 23858108eb18Smrg# Use eval to expand $SHELL 23868a355152Smrgif eval "$MISSING --is-lightweight"; then 23878a355152Smrg am_missing_run="$MISSING " 23888108eb18Smrgelse 23898108eb18Smrg am_missing_run= 23908a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 23918a355152Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 23928108eb18Smrgfi 23938108eb18Smrg 23948a355152Smrgif test x"${install_sh+set}" != xset; then 23951a650d1eSmrg case $am_aux_dir in 23961a650d1eSmrg *\ * | *\ *) 23971a650d1eSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 23981a650d1eSmrg *) 23991a650d1eSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 24001a650d1eSmrg esac 24011a650d1eSmrgfi 24021a650d1eSmrg 24038a355152Smrg# Installed binaries are usually stripped using 'strip' when the user 24048a355152Smrg# run "make install-strip". However 'strip' might not be the right 24051a650d1eSmrg# tool to use in cross-compilation environments, therefore Automake 24068a355152Smrg# will honor the 'STRIP' environment variable to overrule this program. 24071a650d1eSmrgif test "$cross_compiling" != no; then 24081a650d1eSmrg if test -n "$ac_tool_prefix"; then 24091a650d1eSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 24101a650d1eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 24111a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24121a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 24131a650d1eSmrgif ${ac_cv_prog_STRIP+:} false; then : 24141a650d1eSmrg $as_echo_n "(cached) " >&6 24158108eb18Smrgelse 24161a650d1eSmrg if test -n "$STRIP"; then 24171a650d1eSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 24188108eb18Smrgelse 24198108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24208108eb18Smrgfor as_dir in $PATH 24218108eb18Smrgdo 24228108eb18Smrg IFS=$as_save_IFS 24238108eb18Smrg test -z "$as_dir" && as_dir=. 24241a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24258a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24261a650d1eSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 24271a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24288108eb18Smrg break 2 24298108eb18Smrg fi 24308108eb18Smrgdone 24311a650d1eSmrg done 24321a650d1eSmrgIFS=$as_save_IFS 24338108eb18Smrg 24348108eb18Smrgfi 24358108eb18Smrgfi 24361a650d1eSmrgSTRIP=$ac_cv_prog_STRIP 24371a650d1eSmrgif test -n "$STRIP"; then 24381a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 24391a650d1eSmrg$as_echo "$STRIP" >&6; } 24408108eb18Smrgelse 24411a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24421a650d1eSmrg$as_echo "no" >&6; } 24438108eb18Smrgfi 24448108eb18Smrg 24458108eb18Smrg 24461a650d1eSmrgfi 24471a650d1eSmrgif test -z "$ac_cv_prog_STRIP"; then 24481a650d1eSmrg ac_ct_STRIP=$STRIP 24491a650d1eSmrg # Extract the first word of "strip", so it can be a program name with args. 24501a650d1eSmrgset dummy strip; ac_word=$2 24511a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24521a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 24531a650d1eSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 24541a650d1eSmrg $as_echo_n "(cached) " >&6 24558108eb18Smrgelse 24561a650d1eSmrg if test -n "$ac_ct_STRIP"; then 24571a650d1eSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 24588108eb18Smrgelse 24591a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24601a650d1eSmrgfor as_dir in $PATH 24611a650d1eSmrgdo 24621a650d1eSmrg IFS=$as_save_IFS 24631a650d1eSmrg test -z "$as_dir" && as_dir=. 24641a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24658a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24661a650d1eSmrg ac_cv_prog_ac_ct_STRIP="strip" 24671a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24681a650d1eSmrg break 2 24691a650d1eSmrg fi 24701a650d1eSmrgdone 24711a650d1eSmrg done 24721a650d1eSmrgIFS=$as_save_IFS 24731a650d1eSmrg 24748108eb18Smrgfi 24758108eb18Smrgfi 24761a650d1eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 24771a650d1eSmrgif test -n "$ac_ct_STRIP"; then 24781a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 24791a650d1eSmrg$as_echo "$ac_ct_STRIP" >&6; } 24808108eb18Smrgelse 24811a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24821a650d1eSmrg$as_echo "no" >&6; } 24838108eb18Smrgfi 24848108eb18Smrg 24851a650d1eSmrg if test "x$ac_ct_STRIP" = x; then 24861a650d1eSmrg STRIP=":" 24871a650d1eSmrg else 24881a650d1eSmrg case $cross_compiling:$ac_tool_warned in 24891a650d1eSmrgyes:) 24901a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24911a650d1eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24921a650d1eSmrgac_tool_warned=yes ;; 24931a650d1eSmrgesac 24941a650d1eSmrg STRIP=$ac_ct_STRIP 24951a650d1eSmrg fi 24961a650d1eSmrgelse 24971a650d1eSmrg STRIP="$ac_cv_prog_STRIP" 24981a650d1eSmrgfi 24991a650d1eSmrg 25001a650d1eSmrgfi 25011a650d1eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 25021a650d1eSmrg 25031a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 25041a650d1eSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 25051a650d1eSmrgif test -z "$MKDIR_P"; then 25061a650d1eSmrg if ${ac_cv_path_mkdir+:} false; then : 25071a650d1eSmrg $as_echo_n "(cached) " >&6 25081a650d1eSmrgelse 25091a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25101a650d1eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 25111a650d1eSmrgdo 25121a650d1eSmrg IFS=$as_save_IFS 25131a650d1eSmrg test -z "$as_dir" && as_dir=. 25141a650d1eSmrg for ac_prog in mkdir gmkdir; do 25151a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25168a355152Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 25171a650d1eSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 25181a650d1eSmrg 'mkdir (GNU coreutils) '* | \ 25191a650d1eSmrg 'mkdir (coreutils) '* | \ 25201a650d1eSmrg 'mkdir (fileutils) '4.1*) 25211a650d1eSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 25221a650d1eSmrg break 3;; 25231a650d1eSmrg esac 25241a650d1eSmrg done 25251a650d1eSmrg done 25261a650d1eSmrg done 25271a650d1eSmrgIFS=$as_save_IFS 25281a650d1eSmrg 25291a650d1eSmrgfi 25301a650d1eSmrg 25311a650d1eSmrg test -d ./--version && rmdir ./--version 25321a650d1eSmrg if test "${ac_cv_path_mkdir+set}" = set; then 25331a650d1eSmrg MKDIR_P="$ac_cv_path_mkdir -p" 25341a650d1eSmrg else 25351a650d1eSmrg # As a last resort, use the slow shell script. Don't cache a 25361a650d1eSmrg # value for MKDIR_P within a source directory, because that will 25371a650d1eSmrg # break other packages using the cache if that directory is 25381a650d1eSmrg # removed, or if the value is a relative name. 25391a650d1eSmrg MKDIR_P="$ac_install_sh -d" 25401a650d1eSmrg fi 25411a650d1eSmrgfi 25421a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 25431a650d1eSmrg$as_echo "$MKDIR_P" >&6; } 25441a650d1eSmrg 25451a650d1eSmrgfor ac_prog in gawk mawk nawk awk 25461a650d1eSmrgdo 25471a650d1eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 25481a650d1eSmrgset dummy $ac_prog; ac_word=$2 25491a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25501a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 25511a650d1eSmrgif ${ac_cv_prog_AWK+:} false; then : 25521a650d1eSmrg $as_echo_n "(cached) " >&6 25531a650d1eSmrgelse 25541a650d1eSmrg if test -n "$AWK"; then 25551a650d1eSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 25561a650d1eSmrgelse 25571a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25581a650d1eSmrgfor as_dir in $PATH 25591a650d1eSmrgdo 25601a650d1eSmrg IFS=$as_save_IFS 25611a650d1eSmrg test -z "$as_dir" && as_dir=. 25621a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25638a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25641a650d1eSmrg ac_cv_prog_AWK="$ac_prog" 25651a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25661a650d1eSmrg break 2 25671a650d1eSmrg fi 25681a650d1eSmrgdone 25691a650d1eSmrg done 25701a650d1eSmrgIFS=$as_save_IFS 25711a650d1eSmrg 25721a650d1eSmrgfi 25731a650d1eSmrgfi 25741a650d1eSmrgAWK=$ac_cv_prog_AWK 25751a650d1eSmrgif test -n "$AWK"; then 25761a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 25771a650d1eSmrg$as_echo "$AWK" >&6; } 25781a650d1eSmrgelse 25791a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25801a650d1eSmrg$as_echo "no" >&6; } 25811a650d1eSmrgfi 25821a650d1eSmrg 25831a650d1eSmrg 25841a650d1eSmrg test -n "$AWK" && break 25851a650d1eSmrgdone 25861a650d1eSmrg 25871a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 25881a650d1eSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 25891a650d1eSmrgset x ${MAKE-make} 25901a650d1eSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25911a650d1eSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 25921a650d1eSmrg $as_echo_n "(cached) " >&6 25931a650d1eSmrgelse 25941a650d1eSmrg cat >conftest.make <<\_ACEOF 25951a650d1eSmrgSHELL = /bin/sh 25961a650d1eSmrgall: 25971a650d1eSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25981a650d1eSmrg_ACEOF 25991a650d1eSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 26001a650d1eSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 26011a650d1eSmrg *@@@%%%=?*=@@@%%%*) 26021a650d1eSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 26031a650d1eSmrg *) 26041a650d1eSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 26051a650d1eSmrgesac 26061a650d1eSmrgrm -f conftest.make 26071a650d1eSmrgfi 26081a650d1eSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 26091a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26101a650d1eSmrg$as_echo "yes" >&6; } 26111a650d1eSmrg SET_MAKE= 26121a650d1eSmrgelse 26131a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26141a650d1eSmrg$as_echo "no" >&6; } 26151a650d1eSmrg SET_MAKE="MAKE=${MAKE-make}" 26161a650d1eSmrgfi 26171a650d1eSmrg 26181a650d1eSmrgrm -rf .tst 2>/dev/null 26191a650d1eSmrgmkdir .tst 2>/dev/null 26201a650d1eSmrgif test -d .tst; then 26211a650d1eSmrg am__leading_dot=. 26228108eb18Smrgelse 26238108eb18Smrg am__leading_dot=_ 26248108eb18Smrgfi 26258108eb18Smrgrmdir .tst 2>/dev/null 26268108eb18Smrg 26278a355152Smrg# Check whether --enable-silent-rules was given. 26288a355152Smrgif test "${enable_silent_rules+set}" = set; then : 26298a355152Smrg enableval=$enable_silent_rules; 26308a355152Smrgfi 26318a355152Smrg 26328a355152Smrgcase $enable_silent_rules in # ((( 26338a355152Smrg yes) AM_DEFAULT_VERBOSITY=0;; 26348a355152Smrg no) AM_DEFAULT_VERBOSITY=1;; 26358a355152Smrg *) AM_DEFAULT_VERBOSITY=1;; 26368a355152Smrgesac 26378a355152Smrgam_make=${MAKE-make} 26388a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 26398a355152Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 26408a355152Smrgif ${am_cv_make_support_nested_variables+:} false; then : 26418a355152Smrg $as_echo_n "(cached) " >&6 26428a355152Smrgelse 26438a355152Smrg if $as_echo 'TRUE=$(BAR$(V)) 26448a355152SmrgBAR0=false 26458a355152SmrgBAR1=true 26468a355152SmrgV=1 26478a355152Smrgam__doit: 26488a355152Smrg @$(TRUE) 26498a355152Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 26508a355152Smrg am_cv_make_support_nested_variables=yes 26518a355152Smrgelse 26528a355152Smrg am_cv_make_support_nested_variables=no 26538a355152Smrgfi 26548a355152Smrgfi 26558a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 26568a355152Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 26578a355152Smrgif test $am_cv_make_support_nested_variables = yes; then 26588a355152Smrg AM_V='$(V)' 26598a355152Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 26608a355152Smrgelse 26618a355152Smrg AM_V=$AM_DEFAULT_VERBOSITY 26628a355152Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 26638a355152Smrgfi 26648a355152SmrgAM_BACKSLASH='\' 26658a355152Smrg 26661a650d1eSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 26671a650d1eSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 26681a650d1eSmrg # is not polluted with repeated "-I." 26691a650d1eSmrg am__isrc=' -I$(srcdir)' 26701a650d1eSmrg # test to see if srcdir already configured 26711a650d1eSmrg if test -f $srcdir/config.status; then 26721a650d1eSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 26731a650d1eSmrg fi 26748108eb18Smrgfi 26758108eb18Smrg 26768108eb18Smrg# test whether we have cygpath 26778108eb18Smrgif test -z "$CYGPATH_W"; then 26788108eb18Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 26798108eb18Smrg CYGPATH_W='cygpath -w' 26808108eb18Smrg else 26818108eb18Smrg CYGPATH_W=echo 26828108eb18Smrg fi 26838108eb18Smrgfi 26848108eb18Smrg 26858108eb18Smrg 26868108eb18Smrg# Define the identity of the package. 26878108eb18Smrg PACKAGE='xsm' 26888a355152Smrg VERSION='1.0.4' 26898108eb18Smrg 26908108eb18Smrg 26918108eb18Smrgcat >>confdefs.h <<_ACEOF 26928108eb18Smrg#define PACKAGE "$PACKAGE" 26938108eb18Smrg_ACEOF 26948108eb18Smrg 26958108eb18Smrg 26968108eb18Smrgcat >>confdefs.h <<_ACEOF 26978108eb18Smrg#define VERSION "$VERSION" 26988108eb18Smrg_ACEOF 26998108eb18Smrg 27008108eb18Smrg# Some tools Automake needs. 27018108eb18Smrg 27028108eb18SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 27038108eb18Smrg 27048108eb18Smrg 27058108eb18SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 27068108eb18Smrg 27078108eb18Smrg 27088108eb18SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 27098108eb18Smrg 27108108eb18Smrg 27118108eb18SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 27128108eb18Smrg 27138108eb18Smrg 27148108eb18SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 27158108eb18Smrg 27168a355152Smrg# For better backward compatibility. To be removed once Automake 1.9.x 27178a355152Smrg# dies out for good. For more background, see: 27188a355152Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 27198a355152Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 27208a355152Smrgmkdir_p='$(MKDIR_P)' 27218108eb18Smrg 27228a355152Smrg# We need awk for the "check" target (and possibly the TAP driver). The 27238a355152Smrg# system "awk" is bad on some platforms. 27248a355152Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 27258a355152Smrg# in the wild :-( We should find a proper way to deprecate it ... 27268a355152SmrgAMTAR='$${TAR-tar}' 27278108eb18Smrg 27288108eb18Smrg 27298a355152Smrg# We'll loop over all known methods to create a tar archive until one works. 27308a355152Smrg_am_tools='gnutar pax cpio none' 27318108eb18Smrg 27328a355152Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 27338108eb18Smrg 27348108eb18Smrg 27351a650d1eSmrg 27361a650d1eSmrg 27378108eb18Smrg 27388108eb18Smrg 27398a355152Smrg# POSIX will say in a future version that running "rm -f" with no argument 27408a355152Smrg# is OK; and we want to be able to make that assumption in our Makefile 27418a355152Smrg# recipes. So use an aggressive probe to check that the usage we want is 27428a355152Smrg# actually supported "in the wild" to an acceptable degree. 27438a355152Smrg# See automake bug#10828. 27448a355152Smrg# To make any issue more visible, cause the running configure to be aborted 27458a355152Smrg# by default if the 'rm' program in use doesn't match our expectations; the 27468a355152Smrg# user can still override this though. 27478a355152Smrgif rm -f && rm -fr && rm -rf; then : OK; else 27488a355152Smrg cat >&2 <<'END' 27498a355152SmrgOops! 27508a355152Smrg 27518a355152SmrgYour 'rm' program seems unable to run without file operands specified 27528a355152Smrgon the command line, even when the '-f' option is present. This is contrary 27538a355152Smrgto the behaviour of most rm programs out there, and not conforming with 27548a355152Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 27558a355152Smrg 27568a355152SmrgPlease tell bug-automake@gnu.org about your system, including the value 27578a355152Smrgof your $PATH and any error possibly output before this message. This 27588a355152Smrgcan help us improve future automake versions. 27598a355152Smrg 27608a355152SmrgEND 27618a355152Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 27628a355152Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 27638a355152Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 27648a355152Smrg echo >&2 27658a355152Smrg else 27668a355152Smrg cat >&2 <<'END' 27678a355152SmrgAborting the configuration process, to ensure you take notice of the issue. 27688a355152Smrg 27698a355152SmrgYou can download and install GNU coreutils to get an 'rm' implementation 27708a355152Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 27718108eb18Smrg 27728a355152SmrgIf you want to complete the configuration process using your problematic 27738a355152Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 27748a355152Smrgto "yes", and re-run configure. 27758a355152Smrg 27768a355152SmrgEND 27778a355152Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 27788a355152Smrg fi 27798a355152Smrgfi 27808108eb18Smrg 27818108eb18Smrg 27821a650d1eSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 27838108eb18Smrg 27841a650d1eSmrg 27851a650d1eSmrg 27861a650d1eSmrg 27871a650d1eSmrg 27881a650d1eSmrg 27891a650d1eSmrg 27901a650d1eSmrg 27911a650d1eSmrg 27921a650d1eSmrg 27931a650d1eSmrg 27941a650d1eSmrgDEPDIR="${am__leading_dot}deps" 27951a650d1eSmrg 27961a650d1eSmrgac_config_commands="$ac_config_commands depfiles" 27971a650d1eSmrg 27981a650d1eSmrg 27991a650d1eSmrgam_make=${MAKE-make} 28001a650d1eSmrgcat > confinc << 'END' 28011a650d1eSmrgam__doit: 28021a650d1eSmrg @echo this is the am__doit target 28031a650d1eSmrg.PHONY: am__doit 28041a650d1eSmrgEND 28051a650d1eSmrg# If we don't find an include directive, just comment out the code. 28061a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 28071a650d1eSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 28081a650d1eSmrgam__include="#" 28091a650d1eSmrgam__quote= 28101a650d1eSmrg_am_result=none 28111a650d1eSmrg# First try GNU make style include. 28121a650d1eSmrgecho "include confinc" > confmf 28138a355152Smrg# Ignore all kinds of additional output from 'make'. 28141a650d1eSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 28151a650d1eSmrg*the\ am__doit\ target*) 28161a650d1eSmrg am__include=include 28171a650d1eSmrg am__quote= 28181a650d1eSmrg _am_result=GNU 28191a650d1eSmrg ;; 28201a650d1eSmrgesac 28211a650d1eSmrg# Now try BSD make style include. 28221a650d1eSmrgif test "$am__include" = "#"; then 28231a650d1eSmrg echo '.include "confinc"' > confmf 28241a650d1eSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 28251a650d1eSmrg *the\ am__doit\ target*) 28261a650d1eSmrg am__include=.include 28271a650d1eSmrg am__quote="\"" 28281a650d1eSmrg _am_result=BSD 28291a650d1eSmrg ;; 28301a650d1eSmrg esac 28318108eb18Smrgfi 28328108eb18Smrg 28338108eb18Smrg 28341a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 28351a650d1eSmrg$as_echo "$_am_result" >&6; } 28361a650d1eSmrgrm -f confinc confmf 28378108eb18Smrg 28381a650d1eSmrg# Check whether --enable-dependency-tracking was given. 28391a650d1eSmrgif test "${enable_dependency_tracking+set}" = set; then : 28401a650d1eSmrg enableval=$enable_dependency_tracking; 28411a650d1eSmrgfi 28428108eb18Smrg 28431a650d1eSmrgif test "x$enable_dependency_tracking" != xno; then 28441a650d1eSmrg am_depcomp="$ac_aux_dir/depcomp" 28451a650d1eSmrg AMDEPBACKSLASH='\' 28465977a007Smrg am__nodep='_no' 28471a650d1eSmrgfi 28481a650d1eSmrg if test "x$enable_dependency_tracking" != xno; then 28491a650d1eSmrg AMDEP_TRUE= 28501a650d1eSmrg AMDEP_FALSE='#' 28511a650d1eSmrgelse 28521a650d1eSmrg AMDEP_TRUE='#' 28531a650d1eSmrg AMDEP_FALSE= 28541a650d1eSmrgfi 28558108eb18Smrg 28568108eb18Smrg 28578108eb18Smrgac_ext=c 28588108eb18Smrgac_cpp='$CPP $CPPFLAGS' 28598108eb18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28608108eb18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28618108eb18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 28628108eb18Smrgif test -n "$ac_tool_prefix"; then 28638108eb18Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 28648108eb18Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 28651a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28661a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 28671a650d1eSmrgif ${ac_cv_prog_CC+:} false; then : 28681a650d1eSmrg $as_echo_n "(cached) " >&6 28698108eb18Smrgelse 28708108eb18Smrg if test -n "$CC"; then 28718108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28728108eb18Smrgelse 28738108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28748108eb18Smrgfor as_dir in $PATH 28758108eb18Smrgdo 28768108eb18Smrg IFS=$as_save_IFS 28778108eb18Smrg test -z "$as_dir" && as_dir=. 28781a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28798a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28808108eb18Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 28811a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28828108eb18Smrg break 2 28838108eb18Smrg fi 28848108eb18Smrgdone 28851a650d1eSmrg done 28861a650d1eSmrgIFS=$as_save_IFS 28878108eb18Smrg 28888108eb18Smrgfi 28898108eb18Smrgfi 28908108eb18SmrgCC=$ac_cv_prog_CC 28918108eb18Smrgif test -n "$CC"; then 28921a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28931a650d1eSmrg$as_echo "$CC" >&6; } 28948108eb18Smrgelse 28951a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28961a650d1eSmrg$as_echo "no" >&6; } 28978108eb18Smrgfi 28988108eb18Smrg 28991a650d1eSmrg 29008108eb18Smrgfi 29018108eb18Smrgif test -z "$ac_cv_prog_CC"; then 29028108eb18Smrg ac_ct_CC=$CC 29038108eb18Smrg # Extract the first word of "gcc", so it can be a program name with args. 29048108eb18Smrgset dummy gcc; ac_word=$2 29051a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29061a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 29071a650d1eSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 29081a650d1eSmrg $as_echo_n "(cached) " >&6 29098108eb18Smrgelse 29108108eb18Smrg if test -n "$ac_ct_CC"; then 29118108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29128108eb18Smrgelse 29138108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29148108eb18Smrgfor as_dir in $PATH 29158108eb18Smrgdo 29168108eb18Smrg IFS=$as_save_IFS 29178108eb18Smrg test -z "$as_dir" && as_dir=. 29181a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29198a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29208108eb18Smrg ac_cv_prog_ac_ct_CC="gcc" 29211a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29228108eb18Smrg break 2 29238108eb18Smrg fi 29248108eb18Smrgdone 29251a650d1eSmrg done 29261a650d1eSmrgIFS=$as_save_IFS 29278108eb18Smrg 29288108eb18Smrgfi 29298108eb18Smrgfi 29308108eb18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 29318108eb18Smrgif test -n "$ac_ct_CC"; then 29321a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29331a650d1eSmrg$as_echo "$ac_ct_CC" >&6; } 29348108eb18Smrgelse 29351a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29361a650d1eSmrg$as_echo "no" >&6; } 29378108eb18Smrgfi 29388108eb18Smrg 29391a650d1eSmrg if test "x$ac_ct_CC" = x; then 29401a650d1eSmrg CC="" 29411a650d1eSmrg else 29421a650d1eSmrg case $cross_compiling:$ac_tool_warned in 29431a650d1eSmrgyes:) 29441a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29451a650d1eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29461a650d1eSmrgac_tool_warned=yes ;; 29471a650d1eSmrgesac 29481a650d1eSmrg CC=$ac_ct_CC 29491a650d1eSmrg fi 29508108eb18Smrgelse 29518108eb18Smrg CC="$ac_cv_prog_CC" 29528108eb18Smrgfi 29538108eb18Smrg 29548108eb18Smrgif test -z "$CC"; then 29551a650d1eSmrg if test -n "$ac_tool_prefix"; then 29561a650d1eSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 29578108eb18Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 29581a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29591a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 29601a650d1eSmrgif ${ac_cv_prog_CC+:} false; then : 29611a650d1eSmrg $as_echo_n "(cached) " >&6 29628108eb18Smrgelse 29638108eb18Smrg if test -n "$CC"; then 29648108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29658108eb18Smrgelse 29668108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29678108eb18Smrgfor as_dir in $PATH 29688108eb18Smrgdo 29698108eb18Smrg IFS=$as_save_IFS 29708108eb18Smrg test -z "$as_dir" && as_dir=. 29711a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29728a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29738108eb18Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 29741a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29758108eb18Smrg break 2 29768108eb18Smrg fi 29778108eb18Smrgdone 29781a650d1eSmrg done 29791a650d1eSmrgIFS=$as_save_IFS 29808108eb18Smrg 29818108eb18Smrgfi 29828108eb18Smrgfi 29838108eb18SmrgCC=$ac_cv_prog_CC 29848108eb18Smrgif test -n "$CC"; then 29851a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29861a650d1eSmrg$as_echo "$CC" >&6; } 29878108eb18Smrgelse 29881a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29891a650d1eSmrg$as_echo "no" >&6; } 29908108eb18Smrgfi 29918108eb18Smrg 29928108eb18Smrg 29931a650d1eSmrg fi 29948108eb18Smrgfi 29958108eb18Smrgif test -z "$CC"; then 29968108eb18Smrg # Extract the first word of "cc", so it can be a program name with args. 29978108eb18Smrgset dummy cc; ac_word=$2 29981a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29991a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 30001a650d1eSmrgif ${ac_cv_prog_CC+:} false; then : 30011a650d1eSmrg $as_echo_n "(cached) " >&6 30028108eb18Smrgelse 30038108eb18Smrg if test -n "$CC"; then 30048108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30058108eb18Smrgelse 30068108eb18Smrg ac_prog_rejected=no 30078108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30088108eb18Smrgfor as_dir in $PATH 30098108eb18Smrgdo 30108108eb18Smrg IFS=$as_save_IFS 30118108eb18Smrg test -z "$as_dir" && as_dir=. 30121a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30138a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30148108eb18Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 30158108eb18Smrg ac_prog_rejected=yes 30168108eb18Smrg continue 30178108eb18Smrg fi 30188108eb18Smrg ac_cv_prog_CC="cc" 30191a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30208108eb18Smrg break 2 30218108eb18Smrg fi 30228108eb18Smrgdone 30231a650d1eSmrg done 30241a650d1eSmrgIFS=$as_save_IFS 30258108eb18Smrg 30268108eb18Smrgif test $ac_prog_rejected = yes; then 30278108eb18Smrg # We found a bogon in the path, so make sure we never use it. 30288108eb18Smrg set dummy $ac_cv_prog_CC 30298108eb18Smrg shift 30308108eb18Smrg if test $# != 0; then 30318108eb18Smrg # We chose a different compiler from the bogus one. 30328108eb18Smrg # However, it has the same basename, so the bogon will be chosen 30338108eb18Smrg # first if we set CC to just the basename; use the full file name. 30348108eb18Smrg shift 30358108eb18Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 30368108eb18Smrg fi 30378108eb18Smrgfi 30388108eb18Smrgfi 30398108eb18Smrgfi 30408108eb18SmrgCC=$ac_cv_prog_CC 30418108eb18Smrgif test -n "$CC"; then 30421a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30431a650d1eSmrg$as_echo "$CC" >&6; } 30448108eb18Smrgelse 30451a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30461a650d1eSmrg$as_echo "no" >&6; } 30478108eb18Smrgfi 30488108eb18Smrg 30491a650d1eSmrg 30508108eb18Smrgfi 30518108eb18Smrgif test -z "$CC"; then 30528108eb18Smrg if test -n "$ac_tool_prefix"; then 30531a650d1eSmrg for ac_prog in cl.exe 30548108eb18Smrg do 30558108eb18Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30568108eb18Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 30571a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30581a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 30591a650d1eSmrgif ${ac_cv_prog_CC+:} false; then : 30601a650d1eSmrg $as_echo_n "(cached) " >&6 30618108eb18Smrgelse 30628108eb18Smrg if test -n "$CC"; then 30638108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30648108eb18Smrgelse 30658108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30668108eb18Smrgfor as_dir in $PATH 30678108eb18Smrgdo 30688108eb18Smrg IFS=$as_save_IFS 30698108eb18Smrg test -z "$as_dir" && as_dir=. 30701a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30718a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30728108eb18Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 30731a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30748108eb18Smrg break 2 30758108eb18Smrg fi 30768108eb18Smrgdone 30771a650d1eSmrg done 30781a650d1eSmrgIFS=$as_save_IFS 30798108eb18Smrg 30808108eb18Smrgfi 30818108eb18Smrgfi 30828108eb18SmrgCC=$ac_cv_prog_CC 30838108eb18Smrgif test -n "$CC"; then 30841a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30851a650d1eSmrg$as_echo "$CC" >&6; } 30868108eb18Smrgelse 30871a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30881a650d1eSmrg$as_echo "no" >&6; } 30898108eb18Smrgfi 30908108eb18Smrg 30911a650d1eSmrg 30928108eb18Smrg test -n "$CC" && break 30938108eb18Smrg done 30948108eb18Smrgfi 30958108eb18Smrgif test -z "$CC"; then 30968108eb18Smrg ac_ct_CC=$CC 30971a650d1eSmrg for ac_prog in cl.exe 30988108eb18Smrgdo 30998108eb18Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 31008108eb18Smrgset dummy $ac_prog; ac_word=$2 31011a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31021a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 31031a650d1eSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 31041a650d1eSmrg $as_echo_n "(cached) " >&6 31058108eb18Smrgelse 31068108eb18Smrg if test -n "$ac_ct_CC"; then 31078108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 31088108eb18Smrgelse 31098108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31108108eb18Smrgfor as_dir in $PATH 31118108eb18Smrgdo 31128108eb18Smrg IFS=$as_save_IFS 31138108eb18Smrg test -z "$as_dir" && as_dir=. 31141a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 31158a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31168108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 31171a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31188108eb18Smrg break 2 31198108eb18Smrg fi 31208108eb18Smrgdone 31211a650d1eSmrg done 31221a650d1eSmrgIFS=$as_save_IFS 31238108eb18Smrg 31248108eb18Smrgfi 31258108eb18Smrgfi 31268108eb18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 31278108eb18Smrgif test -n "$ac_ct_CC"; then 31281a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 31291a650d1eSmrg$as_echo "$ac_ct_CC" >&6; } 31308108eb18Smrgelse 31311a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31321a650d1eSmrg$as_echo "no" >&6; } 31338108eb18Smrgfi 31348108eb18Smrg 31351a650d1eSmrg 31368108eb18Smrg test -n "$ac_ct_CC" && break 31378108eb18Smrgdone 31388108eb18Smrg 31391a650d1eSmrg if test "x$ac_ct_CC" = x; then 31401a650d1eSmrg CC="" 31411a650d1eSmrg else 31421a650d1eSmrg case $cross_compiling:$ac_tool_warned in 31431a650d1eSmrgyes:) 31441a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31451a650d1eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31461a650d1eSmrgac_tool_warned=yes ;; 31471a650d1eSmrgesac 31481a650d1eSmrg CC=$ac_ct_CC 31491a650d1eSmrg fi 31508108eb18Smrgfi 31518108eb18Smrg 31528108eb18Smrgfi 31538108eb18Smrg 31548108eb18Smrg 31551a650d1eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31561a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31571a650d1eSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 31581a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 31598108eb18Smrg 31608108eb18Smrg# Provide some information about the compiler. 31611a650d1eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 31621a650d1eSmrgset X $ac_compile 31631a650d1eSmrgac_compiler=$2 31641a650d1eSmrgfor ac_option in --version -v -V -qversion; do 31651a650d1eSmrg { { ac_try="$ac_compiler $ac_option >&5" 31661a650d1eSmrgcase "(($ac_try" in 31671a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31681a650d1eSmrg *) ac_try_echo=$ac_try;; 31691a650d1eSmrgesac 31701a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31711a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 31721a650d1eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31738108eb18Smrg ac_status=$? 31741a650d1eSmrg if test -s conftest.err; then 31751a650d1eSmrg sed '10a\ 31761a650d1eSmrg... rest of stderr output deleted ... 31771a650d1eSmrg 10q' conftest.err >conftest.er1 31781a650d1eSmrg cat conftest.er1 >&5 31791a650d1eSmrg fi 31801a650d1eSmrg rm -f conftest.er1 conftest.err 31811a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31821a650d1eSmrg test $ac_status = 0; } 31831a650d1eSmrgdone 31848108eb18Smrg 31851a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 31868108eb18Smrg/* end confdefs.h. */ 31878108eb18Smrg 31888108eb18Smrgint 31898108eb18Smrgmain () 31908108eb18Smrg{ 31918108eb18Smrg 31928108eb18Smrg ; 31938108eb18Smrg return 0; 31948108eb18Smrg} 31958108eb18Smrg_ACEOF 31968108eb18Smrgac_clean_files_save=$ac_clean_files 31971a650d1eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 31988108eb18Smrg# Try to create an executable without -o first, disregard a.out. 31998108eb18Smrg# It will help us diagnose broken compilers, and finding out an intuition 32008108eb18Smrg# of exeext. 32011a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 32021a650d1eSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 32031a650d1eSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 32041a650d1eSmrg 32051a650d1eSmrg# The possible output files: 32061a650d1eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 32071a650d1eSmrg 32081a650d1eSmrgac_rmfiles= 32091a650d1eSmrgfor ac_file in $ac_files 32101a650d1eSmrgdo 32111a650d1eSmrg case $ac_file in 32121a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32131a650d1eSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 32141a650d1eSmrg esac 32151a650d1eSmrgdone 32161a650d1eSmrgrm -f $ac_rmfiles 32171a650d1eSmrg 32181a650d1eSmrgif { { ac_try="$ac_link_default" 32191a650d1eSmrgcase "(($ac_try" in 32201a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32211a650d1eSmrg *) ac_try_echo=$ac_try;; 32221a650d1eSmrgesac 32231a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32241a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 32251a650d1eSmrg (eval "$ac_link_default") 2>&5 32268108eb18Smrg ac_status=$? 32271a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32281a650d1eSmrg test $ac_status = 0; }; then : 32291a650d1eSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 32301a650d1eSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 32311a650d1eSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 32321a650d1eSmrg# so that the user can short-circuit this test for compilers unknown to 32331a650d1eSmrg# Autoconf. 32341a650d1eSmrgfor ac_file in $ac_files '' 32358108eb18Smrgdo 32368108eb18Smrg test -f "$ac_file" || continue 32378108eb18Smrg case $ac_file in 32381a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 32398108eb18Smrg ;; 32408108eb18Smrg [ab].out ) 32418108eb18Smrg # We found the default executable, but exeext='' is most 32428108eb18Smrg # certainly right. 32438108eb18Smrg break;; 32448108eb18Smrg *.* ) 32451a650d1eSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 32461a650d1eSmrg then :; else 32471a650d1eSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32481a650d1eSmrg fi 32491a650d1eSmrg # We set ac_cv_exeext here because the later test for it is not 32501a650d1eSmrg # safe: cross compilers may not add the suffix if given an `-o' 32511a650d1eSmrg # argument, so we may need to know it at that point already. 32521a650d1eSmrg # Even if this section looks crufty: it has the advantage of 32531a650d1eSmrg # actually working. 32548108eb18Smrg break;; 32558108eb18Smrg * ) 32568108eb18Smrg break;; 32578108eb18Smrg esac 32588108eb18Smrgdone 32591a650d1eSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 32601a650d1eSmrg 32618108eb18Smrgelse 32621a650d1eSmrg ac_file='' 32631a650d1eSmrgfi 32641a650d1eSmrgif test -z "$ac_file"; then : 32651a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32661a650d1eSmrg$as_echo "no" >&6; } 32671a650d1eSmrg$as_echo "$as_me: failed program was:" >&5 32688108eb18Smrgsed 's/^/| /' conftest.$ac_ext >&5 32698108eb18Smrg 32701a650d1eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32711a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32721a650d1eSmrgas_fn_error 77 "C compiler cannot create executables 32731a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 32741a650d1eSmrgelse 32751a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32761a650d1eSmrg$as_echo "yes" >&6; } 32778108eb18Smrgfi 32781a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 32791a650d1eSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 32801a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 32811a650d1eSmrg$as_echo "$ac_file" >&6; } 32828108eb18Smrgac_exeext=$ac_cv_exeext 32838108eb18Smrg 32841a650d1eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 32858108eb18Smrgac_clean_files=$ac_clean_files_save 32861a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 32871a650d1eSmrg$as_echo_n "checking for suffix of executables... " >&6; } 32881a650d1eSmrgif { { ac_try="$ac_link" 32891a650d1eSmrgcase "(($ac_try" in 32901a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32911a650d1eSmrg *) ac_try_echo=$ac_try;; 32921a650d1eSmrgesac 32931a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32941a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 32951a650d1eSmrg (eval "$ac_link") 2>&5 32968108eb18Smrg ac_status=$? 32971a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32981a650d1eSmrg test $ac_status = 0; }; then : 32998108eb18Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 33008108eb18Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33018108eb18Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 33028108eb18Smrg# `rm'. 33038108eb18Smrgfor ac_file in conftest.exe conftest conftest.*; do 33048108eb18Smrg test -f "$ac_file" || continue 33058108eb18Smrg case $ac_file in 33061a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33078108eb18Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33088108eb18Smrg break;; 33098108eb18Smrg * ) break;; 33108108eb18Smrg esac 33118108eb18Smrgdone 33128108eb18Smrgelse 33131a650d1eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33141a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33151a650d1eSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 33161a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 33178108eb18Smrgfi 33181a650d1eSmrgrm -f conftest conftest$ac_cv_exeext 33191a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 33201a650d1eSmrg$as_echo "$ac_cv_exeext" >&6; } 33218108eb18Smrg 33228108eb18Smrgrm -f conftest.$ac_ext 33238108eb18SmrgEXEEXT=$ac_cv_exeext 33248108eb18Smrgac_exeext=$EXEEXT 33251a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 33261a650d1eSmrg/* end confdefs.h. */ 33271a650d1eSmrg#include <stdio.h> 33281a650d1eSmrgint 33291a650d1eSmrgmain () 33301a650d1eSmrg{ 33311a650d1eSmrgFILE *f = fopen ("conftest.out", "w"); 33321a650d1eSmrg return ferror (f) || fclose (f) != 0; 33331a650d1eSmrg 33341a650d1eSmrg ; 33351a650d1eSmrg return 0; 33361a650d1eSmrg} 33378108eb18Smrg_ACEOF 33381a650d1eSmrgac_clean_files="$ac_clean_files conftest.out" 33391a650d1eSmrg# Check that the compiler produces executables we can run. If not, either 33401a650d1eSmrg# the compiler is broken, or we cross compile. 33411a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 33421a650d1eSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 33431a650d1eSmrgif test "$cross_compiling" != yes; then 33441a650d1eSmrg { { ac_try="$ac_link" 33451a650d1eSmrgcase "(($ac_try" in 33461a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33471a650d1eSmrg *) ac_try_echo=$ac_try;; 33481a650d1eSmrgesac 33491a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33501a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 33511a650d1eSmrg (eval "$ac_link") 2>&5 33521a650d1eSmrg ac_status=$? 33531a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33541a650d1eSmrg test $ac_status = 0; } 33551a650d1eSmrg if { ac_try='./conftest$ac_cv_exeext' 33561a650d1eSmrg { { case "(($ac_try" in 33571a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33581a650d1eSmrg *) ac_try_echo=$ac_try;; 33591a650d1eSmrgesac 33601a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33611a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 33621a650d1eSmrg (eval "$ac_try") 2>&5 33631a650d1eSmrg ac_status=$? 33641a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33651a650d1eSmrg test $ac_status = 0; }; }; then 33661a650d1eSmrg cross_compiling=no 33671a650d1eSmrg else 33681a650d1eSmrg if test "$cross_compiling" = maybe; then 33691a650d1eSmrg cross_compiling=yes 33701a650d1eSmrg else 33711a650d1eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33721a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33731a650d1eSmrgas_fn_error $? "cannot run C compiled programs. 33741a650d1eSmrgIf you meant to cross compile, use \`--host'. 33751a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 33761a650d1eSmrg fi 33771a650d1eSmrg fi 33781a650d1eSmrgfi 33791a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 33801a650d1eSmrg$as_echo "$cross_compiling" >&6; } 33811a650d1eSmrg 33821a650d1eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 33831a650d1eSmrgac_clean_files=$ac_clean_files_save 33841a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 33851a650d1eSmrg$as_echo_n "checking for suffix of object files... " >&6; } 33861a650d1eSmrgif ${ac_cv_objext+:} false; then : 33871a650d1eSmrg $as_echo_n "(cached) " >&6 33881a650d1eSmrgelse 33891a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33908108eb18Smrg/* end confdefs.h. */ 33918108eb18Smrg 33928108eb18Smrgint 33938108eb18Smrgmain () 33948108eb18Smrg{ 33958108eb18Smrg 33968108eb18Smrg ; 33978108eb18Smrg return 0; 33988108eb18Smrg} 33998108eb18Smrg_ACEOF 34008108eb18Smrgrm -f conftest.o conftest.obj 34011a650d1eSmrgif { { ac_try="$ac_compile" 34021a650d1eSmrgcase "(($ac_try" in 34031a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34041a650d1eSmrg *) ac_try_echo=$ac_try;; 34051a650d1eSmrgesac 34061a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34071a650d1eSmrg$as_echo "$ac_try_echo"; } >&5 34081a650d1eSmrg (eval "$ac_compile") 2>&5 34098108eb18Smrg ac_status=$? 34101a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34111a650d1eSmrg test $ac_status = 0; }; then : 34121a650d1eSmrg for ac_file in conftest.o conftest.obj conftest.*; do 34131a650d1eSmrg test -f "$ac_file" || continue; 34148108eb18Smrg case $ac_file in 34151a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34168108eb18Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34178108eb18Smrg break;; 34188108eb18Smrg esac 34198108eb18Smrgdone 34208108eb18Smrgelse 34211a650d1eSmrg $as_echo "$as_me: failed program was:" >&5 34228108eb18Smrgsed 's/^/| /' conftest.$ac_ext >&5 34238108eb18Smrg 34241a650d1eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34251a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34261a650d1eSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 34271a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 34288108eb18Smrgfi 34298108eb18Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 34308108eb18Smrgfi 34311a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34321a650d1eSmrg$as_echo "$ac_cv_objext" >&6; } 34338108eb18SmrgOBJEXT=$ac_cv_objext 34348108eb18Smrgac_objext=$OBJEXT 34351a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34361a650d1eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34371a650d1eSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 34381a650d1eSmrg $as_echo_n "(cached) " >&6 34398108eb18Smrgelse 34401a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34418108eb18Smrg/* end confdefs.h. */ 34428108eb18Smrg 34438108eb18Smrgint 34448108eb18Smrgmain () 34458108eb18Smrg{ 34468108eb18Smrg#ifndef __GNUC__ 34478108eb18Smrg choke me 34488108eb18Smrg#endif 34498108eb18Smrg 34508108eb18Smrg ; 34518108eb18Smrg return 0; 34528108eb18Smrg} 34538108eb18Smrg_ACEOF 34541a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 34558108eb18Smrg ac_compiler_gnu=yes 34568108eb18Smrgelse 34571a650d1eSmrg ac_compiler_gnu=no 34588108eb18Smrgfi 34591a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34608108eb18Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 34618108eb18Smrg 34628108eb18Smrgfi 34631a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34641a650d1eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 34651a650d1eSmrgif test $ac_compiler_gnu = yes; then 34661a650d1eSmrg GCC=yes 34671a650d1eSmrgelse 34681a650d1eSmrg GCC= 34691a650d1eSmrgfi 34708108eb18Smrgac_test_CFLAGS=${CFLAGS+set} 34718108eb18Smrgac_save_CFLAGS=$CFLAGS 34721a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34731a650d1eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 34741a650d1eSmrgif ${ac_cv_prog_cc_g+:} false; then : 34751a650d1eSmrg $as_echo_n "(cached) " >&6 34761a650d1eSmrgelse 34771a650d1eSmrg ac_save_c_werror_flag=$ac_c_werror_flag 34781a650d1eSmrg ac_c_werror_flag=yes 34791a650d1eSmrg ac_cv_prog_cc_g=no 34801a650d1eSmrg CFLAGS="-g" 34811a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34828108eb18Smrg/* end confdefs.h. */ 34838108eb18Smrg 34848108eb18Smrgint 34858108eb18Smrgmain () 34868108eb18Smrg{ 34878108eb18Smrg 34888108eb18Smrg ; 34898108eb18Smrg return 0; 34908108eb18Smrg} 34918108eb18Smrg_ACEOF 34921a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 34938108eb18Smrg ac_cv_prog_cc_g=yes 34948108eb18Smrgelse 34951a650d1eSmrg CFLAGS="" 34961a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34971a650d1eSmrg/* end confdefs.h. */ 34981a650d1eSmrg 34991a650d1eSmrgint 35001a650d1eSmrgmain () 35011a650d1eSmrg{ 35021a650d1eSmrg 35031a650d1eSmrg ; 35041a650d1eSmrg return 0; 35051a650d1eSmrg} 35061a650d1eSmrg_ACEOF 35071a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 35081a650d1eSmrg 35091a650d1eSmrgelse 35101a650d1eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 35111a650d1eSmrg CFLAGS="-g" 35121a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35131a650d1eSmrg/* end confdefs.h. */ 35141a650d1eSmrg 35151a650d1eSmrgint 35161a650d1eSmrgmain () 35171a650d1eSmrg{ 35188108eb18Smrg 35191a650d1eSmrg ; 35201a650d1eSmrg return 0; 35211a650d1eSmrg} 35221a650d1eSmrg_ACEOF 35231a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 35241a650d1eSmrg ac_cv_prog_cc_g=yes 35251a650d1eSmrgfi 35261a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35278108eb18Smrgfi 35281a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35298108eb18Smrgfi 35301a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35311a650d1eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 35321a650d1eSmrgfi 35331a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35341a650d1eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 35358108eb18Smrgif test "$ac_test_CFLAGS" = set; then 35368108eb18Smrg CFLAGS=$ac_save_CFLAGS 35378108eb18Smrgelif test $ac_cv_prog_cc_g = yes; then 35388108eb18Smrg if test "$GCC" = yes; then 35398108eb18Smrg CFLAGS="-g -O2" 35408108eb18Smrg else 35418108eb18Smrg CFLAGS="-g" 35428108eb18Smrg fi 35438108eb18Smrgelse 35448108eb18Smrg if test "$GCC" = yes; then 35458108eb18Smrg CFLAGS="-O2" 35468108eb18Smrg else 35478108eb18Smrg CFLAGS= 35488108eb18Smrg fi 35498108eb18Smrgfi 35501a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35511a650d1eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35521a650d1eSmrgif ${ac_cv_prog_cc_c89+:} false; then : 35531a650d1eSmrg $as_echo_n "(cached) " >&6 35548108eb18Smrgelse 35551a650d1eSmrg ac_cv_prog_cc_c89=no 35568108eb18Smrgac_save_CC=$CC 35571a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35588108eb18Smrg/* end confdefs.h. */ 35598108eb18Smrg#include <stdarg.h> 35608108eb18Smrg#include <stdio.h> 35618a355152Smrgstruct stat; 35628108eb18Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35638108eb18Smrgstruct buf { int x; }; 35648108eb18SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 35658108eb18Smrgstatic char *e (p, i) 35668108eb18Smrg char **p; 35678108eb18Smrg int i; 35688108eb18Smrg{ 35698108eb18Smrg return p[i]; 35708108eb18Smrg} 35718108eb18Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 35728108eb18Smrg{ 35738108eb18Smrg char *s; 35748108eb18Smrg va_list v; 35758108eb18Smrg va_start (v,p); 35768108eb18Smrg s = g (p, va_arg (v,int)); 35778108eb18Smrg va_end (v); 35788108eb18Smrg return s; 35798108eb18Smrg} 35808108eb18Smrg 35818108eb18Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35828108eb18Smrg function prototypes and stuff, but not '\xHH' hex character constants. 35838108eb18Smrg These don't provoke an error unfortunately, instead are silently treated 35841a650d1eSmrg as 'x'. The following induces an error, until -std is added to get 35858108eb18Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35868108eb18Smrg array size at least. It's necessary to write '\x00'==0 to get something 35871a650d1eSmrg that's true only with -std. */ 35888108eb18Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35898108eb18Smrg 35901a650d1eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35911a650d1eSmrg inside strings and character constants. */ 35921a650d1eSmrg#define FOO(x) 'x' 35931a650d1eSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35941a650d1eSmrg 35958108eb18Smrgint test (int i, double x); 35968108eb18Smrgstruct s1 {int (*f) (int a);}; 35978108eb18Smrgstruct s2 {int (*f) (double a);}; 35988108eb18Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35998108eb18Smrgint argc; 36008108eb18Smrgchar **argv; 36018108eb18Smrgint 36028108eb18Smrgmain () 36038108eb18Smrg{ 36048108eb18Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 36058108eb18Smrg ; 36068108eb18Smrg return 0; 36078108eb18Smrg} 36088108eb18Smrg_ACEOF 36091a650d1eSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 36101a650d1eSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 36118108eb18Smrgdo 36128108eb18Smrg CC="$ac_save_CC $ac_arg" 36131a650d1eSmrg if ac_fn_c_try_compile "$LINENO"; then : 36141a650d1eSmrg ac_cv_prog_cc_c89=$ac_arg 36158108eb18Smrgfi 36161a650d1eSmrgrm -f core conftest.err conftest.$ac_objext 36171a650d1eSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 36188108eb18Smrgdone 36191a650d1eSmrgrm -f conftest.$ac_ext 36208108eb18SmrgCC=$ac_save_CC 36218108eb18Smrg 36228108eb18Smrgfi 36231a650d1eSmrg# AC_CACHE_VAL 36241a650d1eSmrgcase "x$ac_cv_prog_cc_c89" in 36251a650d1eSmrg x) 36261a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 36271a650d1eSmrg$as_echo "none needed" >&6; } ;; 36281a650d1eSmrg xno) 36291a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 36301a650d1eSmrg$as_echo "unsupported" >&6; } ;; 36318108eb18Smrg *) 36321a650d1eSmrg CC="$CC $ac_cv_prog_cc_c89" 36331a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 36341a650d1eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 36358108eb18Smrgesac 36361a650d1eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 36378108eb18Smrg 36388108eb18Smrgfi 36398108eb18Smrg 36408108eb18Smrgac_ext=c 36418108eb18Smrgac_cpp='$CPP $CPPFLAGS' 36428108eb18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36438108eb18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36448108eb18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36458108eb18Smrg 36468a355152Smrgac_ext=c 36478a355152Smrgac_cpp='$CPP $CPPFLAGS' 36488a355152Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36498a355152Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36508a355152Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36518a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 36528a355152Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 36538a355152Smrgif ${am_cv_prog_cc_c_o+:} false; then : 36548a355152Smrg $as_echo_n "(cached) " >&6 36558a355152Smrgelse 36568a355152Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36578a355152Smrg/* end confdefs.h. */ 36588a355152Smrg 36598a355152Smrgint 36608a355152Smrgmain () 36618a355152Smrg{ 36628a355152Smrg 36638a355152Smrg ; 36648a355152Smrg return 0; 36658a355152Smrg} 36668a355152Smrg_ACEOF 36678a355152Smrg # Make sure it works both with $CC and with simple cc. 36688a355152Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 36698a355152Smrg # compilers refuse to overwrite an existing .o file with -o, 36708a355152Smrg # though they will create one. 36718a355152Smrg am_cv_prog_cc_c_o=yes 36728a355152Smrg for am_i in 1 2; do 36738a355152Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 36748a355152Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 36758a355152Smrg ac_status=$? 36768a355152Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 36778a355152Smrg (exit $ac_status); } \ 36788a355152Smrg && test -f conftest2.$ac_objext; then 36798a355152Smrg : OK 36808a355152Smrg else 36818a355152Smrg am_cv_prog_cc_c_o=no 36828a355152Smrg break 36838a355152Smrg fi 36848a355152Smrg done 36858a355152Smrg rm -f core conftest* 36868a355152Smrg unset am_i 36878a355152Smrgfi 36888a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 36898a355152Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 36908a355152Smrgif test "$am_cv_prog_cc_c_o" != yes; then 36918a355152Smrg # Losing compiler, so override with the script. 36928a355152Smrg # FIXME: It is wrong to rewrite CC. 36938a355152Smrg # But if we don't then we get into trouble of one sort or another. 36948a355152Smrg # A longer-term fix would be to have automake use am__CC in this case, 36958a355152Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 36968a355152Smrg CC="$am_aux_dir/compile $CC" 36978a355152Smrgfi 36988a355152Smrgac_ext=c 36998a355152Smrgac_cpp='$CPP $CPPFLAGS' 37008a355152Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37018a355152Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37028a355152Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 37038a355152Smrg 37048a355152Smrg 37058108eb18Smrgdepcc="$CC" am_compiler_list= 37068108eb18Smrg 37071a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 37081a650d1eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 37091a650d1eSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 37101a650d1eSmrg $as_echo_n "(cached) " >&6 37118108eb18Smrgelse 37128108eb18Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 37138108eb18Smrg # We make a subdir and do the tests there. Otherwise we can end up 37148108eb18Smrg # making bogus files that we don't know about and never remove. For 37158108eb18Smrg # instance it was reported that on HP-UX the gcc test will end up 37168a355152Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 37178a355152Smrg # in D". 37185977a007Smrg rm -rf conftest.dir 37198108eb18Smrg mkdir conftest.dir 37208108eb18Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 37218108eb18Smrg # using a relative directory. 37228108eb18Smrg cp "$am_depcomp" conftest.dir 37238108eb18Smrg cd conftest.dir 37248108eb18Smrg # We will build objects and dependencies in a subdirectory because 37258108eb18Smrg # it helps to detect inapplicable dependency modes. For instance 37268108eb18Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 37278108eb18Smrg # side effect of compilation, but ICC will put the dependencies in 37288108eb18Smrg # the current directory while Tru64 will put them in the object 37298108eb18Smrg # directory. 37308108eb18Smrg mkdir sub 37318108eb18Smrg 37328108eb18Smrg am_cv_CC_dependencies_compiler_type=none 37338108eb18Smrg if test "$am_compiler_list" = ""; then 37348108eb18Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 37358108eb18Smrg fi 37361a650d1eSmrg am__universal=false 37371a650d1eSmrg case " $depcc " in #( 37381a650d1eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 37391a650d1eSmrg esac 37401a650d1eSmrg 37418108eb18Smrg for depmode in $am_compiler_list; do 37428108eb18Smrg # Setup a source with many dependencies, because some compilers 37438108eb18Smrg # like to wrap large dependency lists on column 80 (with \), and 37448108eb18Smrg # we should not choose a depcomp mode which is confused by this. 37458108eb18Smrg # 37468108eb18Smrg # We need to recreate these files for each test, as the compiler may 37478108eb18Smrg # overwrite some of them when testing with obscure command lines. 37488108eb18Smrg # This happens at least with the AIX C compiler. 37498108eb18Smrg : > sub/conftest.c 37508108eb18Smrg for i in 1 2 3 4 5 6; do 37518108eb18Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 37528a355152Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 37538a355152Smrg # Solaris 10 /bin/sh. 37548a355152Smrg echo '/* dummy */' > sub/conftst$i.h 37558108eb18Smrg done 37568108eb18Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 37578108eb18Smrg 37588a355152Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 37591a650d1eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 37608a355152Smrg # handle '-M -o', and we need to detect this. Also, some Intel 37618a355152Smrg # versions had trouble with output in subdirs. 37621a650d1eSmrg am__obj=sub/conftest.${OBJEXT-o} 37631a650d1eSmrg am__minus_obj="-o $am__obj" 37648108eb18Smrg case $depmode in 37651a650d1eSmrg gcc) 37661a650d1eSmrg # This depmode causes a compiler race in universal mode. 37671a650d1eSmrg test "$am__universal" = false || continue 37681a650d1eSmrg ;; 37698108eb18Smrg nosideeffect) 37708a355152Smrg # After this tag, mechanisms are not by side-effect, so they'll 37718a355152Smrg # only be used when explicitly requested. 37728108eb18Smrg if test "x$enable_dependency_tracking" = xyes; then 37738108eb18Smrg continue 37748108eb18Smrg else 37758108eb18Smrg break 37768108eb18Smrg fi 37778108eb18Smrg ;; 37785977a007Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 37798a355152Smrg # This compiler won't grok '-c -o', but also, the minuso test has 37801a650d1eSmrg # not run yet. These depmodes are late enough in the game, and 37811a650d1eSmrg # so weak that their functioning should not be impacted. 37821a650d1eSmrg am__obj=conftest.${OBJEXT-o} 37831a650d1eSmrg am__minus_obj= 37841a650d1eSmrg ;; 37858108eb18Smrg none) break ;; 37868108eb18Smrg esac 37878108eb18Smrg if depmode=$depmode \ 37881a650d1eSmrg source=sub/conftest.c object=$am__obj \ 37898108eb18Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 37901a650d1eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 37918108eb18Smrg >/dev/null 2>conftest.err && 37921a650d1eSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 37938108eb18Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 37941a650d1eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 37958108eb18Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 37968108eb18Smrg # icc doesn't choke on unknown options, it will just issue warnings 37971a650d1eSmrg # or remarks (even with -Werror). So we grep stderr for any message 37981a650d1eSmrg # that says an option was ignored or not supported. 37991a650d1eSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 38001a650d1eSmrg # icc: Command line warning: ignoring option '-M'; no argument required 38011a650d1eSmrg # The diagnosis changed in icc 8.0: 38021a650d1eSmrg # icc: Command line remark: option '-MP' not supported 38031a650d1eSmrg if (grep 'ignoring option' conftest.err || 38041a650d1eSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 38058108eb18Smrg am_cv_CC_dependencies_compiler_type=$depmode 38068108eb18Smrg break 38078108eb18Smrg fi 38088108eb18Smrg fi 38098108eb18Smrg done 38108108eb18Smrg 38118108eb18Smrg cd .. 38128108eb18Smrg rm -rf conftest.dir 38138108eb18Smrgelse 38148108eb18Smrg am_cv_CC_dependencies_compiler_type=none 38158108eb18Smrgfi 38168108eb18Smrg 38178108eb18Smrgfi 38181a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 38191a650d1eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 38208108eb18SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 38218108eb18Smrg 38221a650d1eSmrg if 38238108eb18Smrg test "x$enable_dependency_tracking" != xno \ 38248108eb18Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 38258108eb18Smrg am__fastdepCC_TRUE= 38268108eb18Smrg am__fastdepCC_FALSE='#' 38278108eb18Smrgelse 38288108eb18Smrg am__fastdepCC_TRUE='#' 38298108eb18Smrg am__fastdepCC_FALSE= 38308108eb18Smrgfi 38318108eb18Smrg 38328108eb18Smrg 38331a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 38341a650d1eSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 38351a650d1eSmrgif ${ac_cv_prog_cc_c99+:} false; then : 38361a650d1eSmrg $as_echo_n "(cached) " >&6 38378108eb18Smrgelse 38381a650d1eSmrg ac_cv_prog_cc_c99=no 38391a650d1eSmrgac_save_CC=$CC 38401a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 38411a650d1eSmrg/* end confdefs.h. */ 38421a650d1eSmrg#include <stdarg.h> 38431a650d1eSmrg#include <stdbool.h> 38441a650d1eSmrg#include <stdlib.h> 38451a650d1eSmrg#include <wchar.h> 38461a650d1eSmrg#include <stdio.h> 38478108eb18Smrg 38481a650d1eSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 38491a650d1eSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 38501a650d1eSmrg#define showlist(...) puts (#__VA_ARGS__) 38511a650d1eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 38521a650d1eSmrgstatic void 38531a650d1eSmrgtest_varargs_macros (void) 38541a650d1eSmrg{ 38551a650d1eSmrg int x = 1234; 38561a650d1eSmrg int y = 5678; 38571a650d1eSmrg debug ("Flag"); 38581a650d1eSmrg debug ("X = %d\n", x); 38591a650d1eSmrg showlist (The first, second, and third items.); 38601a650d1eSmrg report (x>y, "x is %d but y is %d", x, y); 38611a650d1eSmrg} 38628108eb18Smrg 38631a650d1eSmrg// Check long long types. 38641a650d1eSmrg#define BIG64 18446744073709551615ull 38651a650d1eSmrg#define BIG32 4294967295ul 38661a650d1eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 38671a650d1eSmrg#if !BIG_OK 38681a650d1eSmrg your preprocessor is broken; 38691a650d1eSmrg#endif 38701a650d1eSmrg#if BIG_OK 38711a650d1eSmrg#else 38721a650d1eSmrg your preprocessor is broken; 38731a650d1eSmrg#endif 38741a650d1eSmrgstatic long long int bignum = -9223372036854775807LL; 38751a650d1eSmrgstatic unsigned long long int ubignum = BIG64; 38768108eb18Smrg 38771a650d1eSmrgstruct incomplete_array 38781a650d1eSmrg{ 38791a650d1eSmrg int datasize; 38801a650d1eSmrg double data[]; 38811a650d1eSmrg}; 38828108eb18Smrg 38831a650d1eSmrgstruct named_init { 38841a650d1eSmrg int number; 38851a650d1eSmrg const wchar_t *name; 38861a650d1eSmrg double average; 38871a650d1eSmrg}; 38888108eb18Smrg 38891a650d1eSmrgtypedef const char *ccp; 38908108eb18Smrg 38911a650d1eSmrgstatic inline int 38921a650d1eSmrgtest_restrict (ccp restrict text) 38931a650d1eSmrg{ 38941a650d1eSmrg // See if C++-style comments work. 38951a650d1eSmrg // Iterate through items via the restricted pointer. 38961a650d1eSmrg // Also check for declarations in for loops. 38971a650d1eSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 38981a650d1eSmrg continue; 38991a650d1eSmrg return 0; 39001a650d1eSmrg} 39018108eb18Smrg 39021a650d1eSmrg// Check varargs and va_copy. 39031a650d1eSmrgstatic void 39041a650d1eSmrgtest_varargs (const char *format, ...) 39051a650d1eSmrg{ 39061a650d1eSmrg va_list args; 39071a650d1eSmrg va_start (args, format); 39081a650d1eSmrg va_list args_copy; 39091a650d1eSmrg va_copy (args_copy, args); 39101a650d1eSmrg 39111a650d1eSmrg const char *str; 39121a650d1eSmrg int number; 39131a650d1eSmrg float fnumber; 39141a650d1eSmrg 39151a650d1eSmrg while (*format) 39161a650d1eSmrg { 39171a650d1eSmrg switch (*format++) 39181a650d1eSmrg { 39191a650d1eSmrg case 's': // string 39201a650d1eSmrg str = va_arg (args_copy, const char *); 39211a650d1eSmrg break; 39221a650d1eSmrg case 'd': // int 39231a650d1eSmrg number = va_arg (args_copy, int); 39241a650d1eSmrg break; 39251a650d1eSmrg case 'f': // float 39261a650d1eSmrg fnumber = va_arg (args_copy, double); 39271a650d1eSmrg break; 39281a650d1eSmrg default: 39291a650d1eSmrg break; 39301a650d1eSmrg } 39311a650d1eSmrg } 39321a650d1eSmrg va_end (args_copy); 39331a650d1eSmrg va_end (args); 39341a650d1eSmrg} 39351a650d1eSmrg 39361a650d1eSmrgint 39371a650d1eSmrgmain () 39381a650d1eSmrg{ 39391a650d1eSmrg 39401a650d1eSmrg // Check bool. 39411a650d1eSmrg _Bool success = false; 39421a650d1eSmrg 39431a650d1eSmrg // Check restrict. 39441a650d1eSmrg if (test_restrict ("String literal") == 0) 39451a650d1eSmrg success = true; 39461a650d1eSmrg char *restrict newvar = "Another string"; 39471a650d1eSmrg 39481a650d1eSmrg // Check varargs. 39491a650d1eSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 39501a650d1eSmrg test_varargs_macros (); 39511a650d1eSmrg 39521a650d1eSmrg // Check flexible array members. 39531a650d1eSmrg struct incomplete_array *ia = 39541a650d1eSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 39551a650d1eSmrg ia->datasize = 10; 39561a650d1eSmrg for (int i = 0; i < ia->datasize; ++i) 39571a650d1eSmrg ia->data[i] = i * 1.234; 39581a650d1eSmrg 39591a650d1eSmrg // Check named initializers. 39601a650d1eSmrg struct named_init ni = { 39611a650d1eSmrg .number = 34, 39621a650d1eSmrg .name = L"Test wide string", 39631a650d1eSmrg .average = 543.34343, 39641a650d1eSmrg }; 39651a650d1eSmrg 39661a650d1eSmrg ni.number = 58; 39671a650d1eSmrg 39681a650d1eSmrg int dynamic_array[ni.number]; 39691a650d1eSmrg dynamic_array[ni.number - 1] = 543; 39701a650d1eSmrg 39711a650d1eSmrg // work around unused variable warnings 39721a650d1eSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 39731a650d1eSmrg || dynamic_array[ni.number - 1] != 543); 39741a650d1eSmrg 39751a650d1eSmrg ; 39761a650d1eSmrg return 0; 39771a650d1eSmrg} 39781a650d1eSmrg_ACEOF 39798a355152Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 39808108eb18Smrgdo 39811a650d1eSmrg CC="$ac_save_CC $ac_arg" 39821a650d1eSmrg if ac_fn_c_try_compile "$LINENO"; then : 39831a650d1eSmrg ac_cv_prog_cc_c99=$ac_arg 39841a650d1eSmrgfi 39851a650d1eSmrgrm -f core conftest.err conftest.$ac_objext 39861a650d1eSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 39878108eb18Smrgdone 39881a650d1eSmrgrm -f conftest.$ac_ext 39891a650d1eSmrgCC=$ac_save_CC 39908108eb18Smrg 39911a650d1eSmrgfi 39921a650d1eSmrg# AC_CACHE_VAL 39931a650d1eSmrgcase "x$ac_cv_prog_cc_c99" in 39941a650d1eSmrg x) 39951a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 39961a650d1eSmrg$as_echo "none needed" >&6; } ;; 39971a650d1eSmrg xno) 39981a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 39991a650d1eSmrg$as_echo "unsupported" >&6; } ;; 40001a650d1eSmrg *) 40011a650d1eSmrg CC="$CC $ac_cv_prog_cc_c99" 40021a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 40031a650d1eSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 40048108eb18Smrgesac 40051a650d1eSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 40061a650d1eSmrg 40078108eb18Smrgfi 40088108eb18Smrg 40091a650d1eSmrg 40101a650d1eSmrg 40111a650d1eSmrgac_ext=c 40121a650d1eSmrgac_cpp='$CPP $CPPFLAGS' 40131a650d1eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40141a650d1eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40151a650d1eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40161a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 40171a650d1eSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 40181a650d1eSmrg# On Suns, sometimes $CPP names a directory. 40191a650d1eSmrgif test -n "$CPP" && test -d "$CPP"; then 40201a650d1eSmrg CPP= 40211a650d1eSmrgfi 40221a650d1eSmrgif test -z "$CPP"; then 40231a650d1eSmrg if ${ac_cv_prog_CPP+:} false; then : 40241a650d1eSmrg $as_echo_n "(cached) " >&6 40258108eb18Smrgelse 40261a650d1eSmrg # Double quotes because CPP needs to be expanded 40271a650d1eSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 40281a650d1eSmrg do 40291a650d1eSmrg ac_preproc_ok=false 40301a650d1eSmrgfor ac_c_preproc_warn_flag in '' yes 40311a650d1eSmrgdo 40321a650d1eSmrg # Use a header file that comes with gcc, so configuring glibc 40331a650d1eSmrg # with a fresh cross-compiler works. 40341a650d1eSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 40351a650d1eSmrg # <limits.h> exists even on freestanding compilers. 40361a650d1eSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 40371a650d1eSmrg # not just through cpp. "Syntax error" is here to catch this case. 40381a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40391a650d1eSmrg/* end confdefs.h. */ 40401a650d1eSmrg#ifdef __STDC__ 40411a650d1eSmrg# include <limits.h> 40421a650d1eSmrg#else 40431a650d1eSmrg# include <assert.h> 40441a650d1eSmrg#endif 40451a650d1eSmrg Syntax error 40461a650d1eSmrg_ACEOF 40471a650d1eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 40481a650d1eSmrg 40491a650d1eSmrgelse 40501a650d1eSmrg # Broken: fails on valid input. 40511a650d1eSmrgcontinue 40528108eb18Smrgfi 40531a650d1eSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40541a650d1eSmrg 40551a650d1eSmrg # OK, works on sane cases. Now check whether nonexistent headers 40561a650d1eSmrg # can be detected and how. 40571a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40581a650d1eSmrg/* end confdefs.h. */ 40591a650d1eSmrg#include <ac_nonexistent.h> 40601a650d1eSmrg_ACEOF 40611a650d1eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 40621a650d1eSmrg # Broken: success on invalid input. 40631a650d1eSmrgcontinue 40641a650d1eSmrgelse 40651a650d1eSmrg # Passes both tests. 40661a650d1eSmrgac_preproc_ok=: 40671a650d1eSmrgbreak 40681a650d1eSmrgfi 40691a650d1eSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40701a650d1eSmrg 40711a650d1eSmrgdone 40721a650d1eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 40731a650d1eSmrgrm -f conftest.i conftest.err conftest.$ac_ext 40741a650d1eSmrgif $ac_preproc_ok; then : 40751a650d1eSmrg break 40761a650d1eSmrgfi 40771a650d1eSmrg 40781a650d1eSmrg done 40791a650d1eSmrg ac_cv_prog_CPP=$CPP 40808108eb18Smrg 40818108eb18Smrgfi 40821a650d1eSmrg CPP=$ac_cv_prog_CPP 40838108eb18Smrgelse 40841a650d1eSmrg ac_cv_prog_CPP=$CPP 40851a650d1eSmrgfi 40861a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 40871a650d1eSmrg$as_echo "$CPP" >&6; } 40881a650d1eSmrgac_preproc_ok=false 40891a650d1eSmrgfor ac_c_preproc_warn_flag in '' yes 40908108eb18Smrgdo 40911a650d1eSmrg # Use a header file that comes with gcc, so configuring glibc 40921a650d1eSmrg # with a fresh cross-compiler works. 40931a650d1eSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 40941a650d1eSmrg # <limits.h> exists even on freestanding compilers. 40951a650d1eSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 40961a650d1eSmrg # not just through cpp. "Syntax error" is here to catch this case. 40971a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40981a650d1eSmrg/* end confdefs.h. */ 40991a650d1eSmrg#ifdef __STDC__ 41001a650d1eSmrg# include <limits.h> 41011a650d1eSmrg#else 41021a650d1eSmrg# include <assert.h> 41031a650d1eSmrg#endif 41041a650d1eSmrg Syntax error 41051a650d1eSmrg_ACEOF 41061a650d1eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 41078108eb18Smrg 41081a650d1eSmrgelse 41091a650d1eSmrg # Broken: fails on valid input. 41101a650d1eSmrgcontinue 41118108eb18Smrgfi 41121a650d1eSmrgrm -f conftest.err conftest.i conftest.$ac_ext 41138108eb18Smrg 41141a650d1eSmrg # OK, works on sane cases. Now check whether nonexistent headers 41151a650d1eSmrg # can be detected and how. 41161a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41171a650d1eSmrg/* end confdefs.h. */ 41181a650d1eSmrg#include <ac_nonexistent.h> 41191a650d1eSmrg_ACEOF 41201a650d1eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 41211a650d1eSmrg # Broken: success on invalid input. 41221a650d1eSmrgcontinue 41238108eb18Smrgelse 41241a650d1eSmrg # Passes both tests. 41251a650d1eSmrgac_preproc_ok=: 41261a650d1eSmrgbreak 41278108eb18Smrgfi 41281a650d1eSmrgrm -f conftest.err conftest.i conftest.$ac_ext 41291a650d1eSmrg 41301a650d1eSmrgdone 41311a650d1eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41321a650d1eSmrgrm -f conftest.i conftest.err conftest.$ac_ext 41331a650d1eSmrgif $ac_preproc_ok; then : 41348108eb18Smrg 41351a650d1eSmrgelse 41361a650d1eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41371a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41381a650d1eSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 41391a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 41408108eb18Smrgfi 41411a650d1eSmrg 41421a650d1eSmrgac_ext=c 41431a650d1eSmrgac_cpp='$CPP $CPPFLAGS' 41441a650d1eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41451a650d1eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41461a650d1eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41471a650d1eSmrg 41481a650d1eSmrg 41491a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 41501a650d1eSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 41511a650d1eSmrgif ${ac_cv_path_GREP+:} false; then : 41521a650d1eSmrg $as_echo_n "(cached) " >&6 41538108eb18Smrgelse 41541a650d1eSmrg if test -z "$GREP"; then 41551a650d1eSmrg ac_path_GREP_found=false 41561a650d1eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 41578108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41581a650d1eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 41598108eb18Smrgdo 41608108eb18Smrg IFS=$as_save_IFS 41618108eb18Smrg test -z "$as_dir" && as_dir=. 41621a650d1eSmrg for ac_prog in grep ggrep; do 41631a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41641a650d1eSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 41658a355152Smrg as_fn_executable_p "$ac_path_GREP" || continue 41661a650d1eSmrg# Check for GNU ac_path_GREP and select it if it is found. 41671a650d1eSmrg # Check for GNU $ac_path_GREP 41681a650d1eSmrgcase `"$ac_path_GREP" --version 2>&1` in 41691a650d1eSmrg*GNU*) 41701a650d1eSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 41711a650d1eSmrg*) 41721a650d1eSmrg ac_count=0 41731a650d1eSmrg $as_echo_n 0123456789 >"conftest.in" 41741a650d1eSmrg while : 41751a650d1eSmrg do 41761a650d1eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 41771a650d1eSmrg mv "conftest.tmp" "conftest.in" 41781a650d1eSmrg cp "conftest.in" "conftest.nl" 41791a650d1eSmrg $as_echo 'GREP' >> "conftest.nl" 41801a650d1eSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 41811a650d1eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 41821a650d1eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 41831a650d1eSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 41841a650d1eSmrg # Best one so far, save it but keep looking for a better one 41851a650d1eSmrg ac_cv_path_GREP="$ac_path_GREP" 41861a650d1eSmrg ac_path_GREP_max=$ac_count 41871a650d1eSmrg fi 41881a650d1eSmrg # 10*(2^10) chars as input seems more than enough 41891a650d1eSmrg test $ac_count -gt 10 && break 41901a650d1eSmrg done 41911a650d1eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 41928108eb18Smrgesac 41938108eb18Smrg 41941a650d1eSmrg $ac_path_GREP_found && break 3 41951a650d1eSmrg done 41961a650d1eSmrg done 41971a650d1eSmrg done 41981a650d1eSmrgIFS=$as_save_IFS 41991a650d1eSmrg if test -z "$ac_cv_path_GREP"; then 42001a650d1eSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42011a650d1eSmrg fi 42028108eb18Smrgelse 42031a650d1eSmrg ac_cv_path_GREP=$GREP 42048108eb18Smrgfi 42058108eb18Smrg 42068108eb18Smrgfi 42071a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 42081a650d1eSmrg$as_echo "$ac_cv_path_GREP" >&6; } 42091a650d1eSmrg GREP="$ac_cv_path_GREP" 42108108eb18Smrg 42118108eb18Smrg 42121a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 42131a650d1eSmrg$as_echo_n "checking for egrep... " >&6; } 42141a650d1eSmrgif ${ac_cv_path_EGREP+:} false; then : 42151a650d1eSmrg $as_echo_n "(cached) " >&6 42168108eb18Smrgelse 42171a650d1eSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 42181a650d1eSmrg then ac_cv_path_EGREP="$GREP -E" 42191a650d1eSmrg else 42201a650d1eSmrg if test -z "$EGREP"; then 42211a650d1eSmrg ac_path_EGREP_found=false 42221a650d1eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42231a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42241a650d1eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42251a650d1eSmrgdo 42261a650d1eSmrg IFS=$as_save_IFS 42271a650d1eSmrg test -z "$as_dir" && as_dir=. 42281a650d1eSmrg for ac_prog in egrep; do 42291a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42301a650d1eSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 42318a355152Smrg as_fn_executable_p "$ac_path_EGREP" || continue 42321a650d1eSmrg# Check for GNU ac_path_EGREP and select it if it is found. 42331a650d1eSmrg # Check for GNU $ac_path_EGREP 42341a650d1eSmrgcase `"$ac_path_EGREP" --version 2>&1` in 42351a650d1eSmrg*GNU*) 42361a650d1eSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 42371a650d1eSmrg*) 42381a650d1eSmrg ac_count=0 42391a650d1eSmrg $as_echo_n 0123456789 >"conftest.in" 42401a650d1eSmrg while : 42411a650d1eSmrg do 42421a650d1eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42431a650d1eSmrg mv "conftest.tmp" "conftest.in" 42441a650d1eSmrg cp "conftest.in" "conftest.nl" 42451a650d1eSmrg $as_echo 'EGREP' >> "conftest.nl" 42461a650d1eSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42471a650d1eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42481a650d1eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42491a650d1eSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 42501a650d1eSmrg # Best one so far, save it but keep looking for a better one 42511a650d1eSmrg ac_cv_path_EGREP="$ac_path_EGREP" 42521a650d1eSmrg ac_path_EGREP_max=$ac_count 42531a650d1eSmrg fi 42541a650d1eSmrg # 10*(2^10) chars as input seems more than enough 42551a650d1eSmrg test $ac_count -gt 10 && break 42561a650d1eSmrg done 42571a650d1eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 42581a650d1eSmrgesac 42598108eb18Smrg 42601a650d1eSmrg $ac_path_EGREP_found && break 3 42611a650d1eSmrg done 42621a650d1eSmrg done 42631a650d1eSmrg done 42641a650d1eSmrgIFS=$as_save_IFS 42651a650d1eSmrg if test -z "$ac_cv_path_EGREP"; then 42661a650d1eSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42671a650d1eSmrg fi 42681a650d1eSmrgelse 42691a650d1eSmrg ac_cv_path_EGREP=$EGREP 42701a650d1eSmrgfi 42718108eb18Smrg 42721a650d1eSmrg fi 42731a650d1eSmrgfi 42741a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 42751a650d1eSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 42761a650d1eSmrg EGREP="$ac_cv_path_EGREP" 42778108eb18Smrg 42788108eb18Smrg 42791a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 42801a650d1eSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 42811a650d1eSmrgif ${ac_cv_header_stdc+:} false; then : 42821a650d1eSmrg $as_echo_n "(cached) " >&6 42831a650d1eSmrgelse 42841a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42851a650d1eSmrg/* end confdefs.h. */ 42861a650d1eSmrg#include <stdlib.h> 42871a650d1eSmrg#include <stdarg.h> 42881a650d1eSmrg#include <string.h> 42891a650d1eSmrg#include <float.h> 42908108eb18Smrg 42918108eb18Smrgint 42928108eb18Smrgmain () 42938108eb18Smrg{ 42941a650d1eSmrg 42958108eb18Smrg ; 42968108eb18Smrg return 0; 42978108eb18Smrg} 42988108eb18Smrg_ACEOF 42991a650d1eSmrgif ac_fn_c_try_compile "$LINENO"; then : 43001a650d1eSmrg ac_cv_header_stdc=yes 43018108eb18Smrgelse 43021a650d1eSmrg ac_cv_header_stdc=no 43038108eb18Smrgfi 43041a650d1eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43051a650d1eSmrg 43061a650d1eSmrgif test $ac_cv_header_stdc = yes; then 43071a650d1eSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 43081a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43091a650d1eSmrg/* end confdefs.h. */ 43101a650d1eSmrg#include <string.h> 43118108eb18Smrg 43128108eb18Smrg_ACEOF 43131a650d1eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43141a650d1eSmrg $EGREP "memchr" >/dev/null 2>&1; then : 43158108eb18Smrg 43161a650d1eSmrgelse 43171a650d1eSmrg ac_cv_header_stdc=no 43188108eb18Smrgfi 43191a650d1eSmrgrm -f conftest* 43208108eb18Smrg 43211a650d1eSmrgfi 43221a650d1eSmrg 43231a650d1eSmrgif test $ac_cv_header_stdc = yes; then 43241a650d1eSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 43251a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43268108eb18Smrg/* end confdefs.h. */ 43271a650d1eSmrg#include <stdlib.h> 43288108eb18Smrg 43291a650d1eSmrg_ACEOF 43301a650d1eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43311a650d1eSmrg $EGREP "free" >/dev/null 2>&1; then : 43328108eb18Smrg 43331a650d1eSmrgelse 43341a650d1eSmrg ac_cv_header_stdc=no 43351a650d1eSmrgfi 43361a650d1eSmrgrm -f conftest* 43378108eb18Smrg 43381a650d1eSmrgfi 43398108eb18Smrg 43401a650d1eSmrgif test $ac_cv_header_stdc = yes; then 43411a650d1eSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 43421a650d1eSmrg if test "$cross_compiling" = yes; then : 43431a650d1eSmrg : 43441a650d1eSmrgelse 43451a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43461a650d1eSmrg/* end confdefs.h. */ 43471a650d1eSmrg#include <ctype.h> 43481a650d1eSmrg#include <stdlib.h> 43491a650d1eSmrg#if ((' ' & 0x0FF) == 0x020) 43501a650d1eSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 43511a650d1eSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 43528108eb18Smrg#else 43531a650d1eSmrg# define ISLOWER(c) \ 43541a650d1eSmrg (('a' <= (c) && (c) <= 'i') \ 43551a650d1eSmrg || ('j' <= (c) && (c) <= 'r') \ 43561a650d1eSmrg || ('s' <= (c) && (c) <= 'z')) 43571a650d1eSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 43588108eb18Smrg#endif 43598108eb18Smrg 43601a650d1eSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 43618108eb18Smrgint 43628108eb18Smrgmain () 43638108eb18Smrg{ 43641a650d1eSmrg int i; 43651a650d1eSmrg for (i = 0; i < 256; i++) 43661a650d1eSmrg if (XOR (islower (i), ISLOWER (i)) 43671a650d1eSmrg || toupper (i) != TOUPPER (i)) 43681a650d1eSmrg return 2; 43698108eb18Smrg return 0; 43708108eb18Smrg} 43718108eb18Smrg_ACEOF 43721a650d1eSmrgif ac_fn_c_try_run "$LINENO"; then : 43731a650d1eSmrg 43748108eb18Smrgelse 43751a650d1eSmrg ac_cv_header_stdc=no 43761a650d1eSmrgfi 43771a650d1eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43781a650d1eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 43791a650d1eSmrgfi 43808108eb18Smrg 43818108eb18Smrgfi 43828108eb18Smrgfi 43831a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 43841a650d1eSmrg$as_echo "$ac_cv_header_stdc" >&6; } 43851a650d1eSmrgif test $ac_cv_header_stdc = yes; then 43861a650d1eSmrg 43871a650d1eSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 43881a650d1eSmrg 43891a650d1eSmrgfi 43908108eb18Smrg 43911a650d1eSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 43921a650d1eSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 43931a650d1eSmrg inttypes.h stdint.h unistd.h 43941a650d1eSmrgdo : 43951a650d1eSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43961a650d1eSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 43971a650d1eSmrg" 43981a650d1eSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43991a650d1eSmrg cat >>confdefs.h <<_ACEOF 44001a650d1eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44018108eb18Smrg_ACEOF 44028108eb18Smrg 44038108eb18Smrgfi 44048108eb18Smrg 44051a650d1eSmrgdone 44061a650d1eSmrg 44078108eb18Smrg 44088108eb18Smrg 44098108eb18Smrg 44105977a007Smrg 44115977a007Smrg 44125977a007Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 44135977a007Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 44145977a007Smrg CLANGCC="yes" 44155977a007Smrgelse 44165977a007Smrg CLANGCC="no" 44175977a007Smrgfi 44185977a007Smrg 44195977a007Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 44205977a007Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 44215977a007Smrg INTELCC="yes" 44225977a007Smrgelse 44235977a007Smrg INTELCC="no" 44245977a007Smrgfi 44255977a007Smrg 44265977a007Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 44275977a007Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 44285977a007Smrg SUNCC="yes" 44295977a007Smrgelse 44305977a007Smrg SUNCC="no" 44315977a007Smrgfi 44325977a007Smrg 44335977a007Smrg 44345977a007Smrg 44355977a007Smrg 44368a355152Smrg 44378a355152Smrg 44388a355152Smrg 44398a355152Smrg 44408a355152Smrg 44418108eb18Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 44428108eb18Smrg if test -n "$ac_tool_prefix"; then 44438108eb18Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44448108eb18Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44451a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44461a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 44471a650d1eSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 44481a650d1eSmrg $as_echo_n "(cached) " >&6 44498108eb18Smrgelse 44508108eb18Smrg case $PKG_CONFIG in 44518108eb18Smrg [\\/]* | ?:[\\/]*) 44528108eb18Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 44538108eb18Smrg ;; 44548108eb18Smrg *) 44558108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44568108eb18Smrgfor as_dir in $PATH 44578108eb18Smrgdo 44588108eb18Smrg IFS=$as_save_IFS 44598108eb18Smrg test -z "$as_dir" && as_dir=. 44601a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 44618a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44628108eb18Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 44631a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44648108eb18Smrg break 2 44658108eb18Smrg fi 44668108eb18Smrgdone 44671a650d1eSmrg done 44681a650d1eSmrgIFS=$as_save_IFS 44698108eb18Smrg 44708108eb18Smrg ;; 44718108eb18Smrgesac 44728108eb18Smrgfi 44738108eb18SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 44748108eb18Smrgif test -n "$PKG_CONFIG"; then 44751a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 44761a650d1eSmrg$as_echo "$PKG_CONFIG" >&6; } 44778108eb18Smrgelse 44781a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44791a650d1eSmrg$as_echo "no" >&6; } 44808108eb18Smrgfi 44818108eb18Smrg 44821a650d1eSmrg 44838108eb18Smrgfi 44848108eb18Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 44858108eb18Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 44868108eb18Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 44878108eb18Smrgset dummy pkg-config; ac_word=$2 44881a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44891a650d1eSmrg$as_echo_n "checking for $ac_word... " >&6; } 44901a650d1eSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 44911a650d1eSmrg $as_echo_n "(cached) " >&6 44928108eb18Smrgelse 44938108eb18Smrg case $ac_pt_PKG_CONFIG in 44948108eb18Smrg [\\/]* | ?:[\\/]*) 44958108eb18Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 44968108eb18Smrg ;; 44978108eb18Smrg *) 44988108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44998108eb18Smrgfor as_dir in $PATH 45008108eb18Smrgdo 45018108eb18Smrg IFS=$as_save_IFS 45028108eb18Smrg test -z "$as_dir" && as_dir=. 45031a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 45048a355152Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45058108eb18Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45061a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45078108eb18Smrg break 2 45088108eb18Smrg fi 45098108eb18Smrgdone 45101a650d1eSmrg done 45111a650d1eSmrgIFS=$as_save_IFS 45128108eb18Smrg 45138108eb18Smrg ;; 45148108eb18Smrgesac 45158108eb18Smrgfi 45168108eb18Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 45178108eb18Smrgif test -n "$ac_pt_PKG_CONFIG"; then 45181a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 45191a650d1eSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 45208108eb18Smrgelse 45211a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45221a650d1eSmrg$as_echo "no" >&6; } 45238108eb18Smrgfi 45248108eb18Smrg 45251a650d1eSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 45261a650d1eSmrg PKG_CONFIG="" 45271a650d1eSmrg else 45281a650d1eSmrg case $cross_compiling:$ac_tool_warned in 45291a650d1eSmrgyes:) 45301a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45311a650d1eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45321a650d1eSmrgac_tool_warned=yes ;; 45331a650d1eSmrgesac 45341a650d1eSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 45351a650d1eSmrg fi 45368108eb18Smrgelse 45378108eb18Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 45388108eb18Smrgfi 45398108eb18Smrg 45408108eb18Smrgfi 45418108eb18Smrgif test -n "$PKG_CONFIG"; then 45428108eb18Smrg _pkg_min_version=0.9.0 45431a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 45441a650d1eSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 45458108eb18Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 45461a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45471a650d1eSmrg$as_echo "yes" >&6; } 45488108eb18Smrg else 45491a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45501a650d1eSmrg$as_echo "no" >&6; } 45518108eb18Smrg PKG_CONFIG="" 45528108eb18Smrg fi 45538108eb18Smrgfi 45541a650d1eSmrg# Make sure we can run config.sub. 45551a650d1eSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 45561a650d1eSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 45578108eb18Smrg 45581a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 45591a650d1eSmrg$as_echo_n "checking build system type... " >&6; } 45601a650d1eSmrgif ${ac_cv_build+:} false; then : 45611a650d1eSmrg $as_echo_n "(cached) " >&6 45628108eb18Smrgelse 45631a650d1eSmrg ac_build_alias=$build_alias 45641a650d1eSmrgtest "x$ac_build_alias" = x && 45651a650d1eSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 45661a650d1eSmrgtest "x$ac_build_alias" = x && 45671a650d1eSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 45681a650d1eSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 45691a650d1eSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 45701a650d1eSmrg 45711a650d1eSmrgfi 45721a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 45731a650d1eSmrg$as_echo "$ac_cv_build" >&6; } 45741a650d1eSmrgcase $ac_cv_build in 45751a650d1eSmrg*-*-*) ;; 45761a650d1eSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 45771a650d1eSmrgesac 45781a650d1eSmrgbuild=$ac_cv_build 45791a650d1eSmrgac_save_IFS=$IFS; IFS='-' 45801a650d1eSmrgset x $ac_cv_build 45811a650d1eSmrgshift 45821a650d1eSmrgbuild_cpu=$1 45831a650d1eSmrgbuild_vendor=$2 45841a650d1eSmrgshift; shift 45851a650d1eSmrg# Remember, the first character of IFS is used to create $*, 45861a650d1eSmrg# except with old shells: 45871a650d1eSmrgbuild_os=$* 45881a650d1eSmrgIFS=$ac_save_IFS 45891a650d1eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 45901a650d1eSmrg 45911a650d1eSmrg 45921a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 45931a650d1eSmrg$as_echo_n "checking host system type... " >&6; } 45941a650d1eSmrgif ${ac_cv_host+:} false; then : 45951a650d1eSmrg $as_echo_n "(cached) " >&6 45968108eb18Smrgelse 45971a650d1eSmrg if test "x$host_alias" = x; then 45981a650d1eSmrg ac_cv_host=$ac_cv_build 45998108eb18Smrgelse 46001a650d1eSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 46011a650d1eSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 46028108eb18Smrgfi 46031a650d1eSmrg 46048108eb18Smrgfi 46051a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46061a650d1eSmrg$as_echo "$ac_cv_host" >&6; } 46071a650d1eSmrgcase $ac_cv_host in 46081a650d1eSmrg*-*-*) ;; 46091a650d1eSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 46101a650d1eSmrgesac 46111a650d1eSmrghost=$ac_cv_host 46121a650d1eSmrgac_save_IFS=$IFS; IFS='-' 46131a650d1eSmrgset x $ac_cv_host 46141a650d1eSmrgshift 46151a650d1eSmrghost_cpu=$1 46161a650d1eSmrghost_vendor=$2 46171a650d1eSmrgshift; shift 46181a650d1eSmrg# Remember, the first character of IFS is used to create $*, 46191a650d1eSmrg# except with old shells: 46201a650d1eSmrghost_os=$* 46211a650d1eSmrgIFS=$ac_save_IFS 46221a650d1eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 46231a650d1eSmrg 46241a650d1eSmrg 46251a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 46261a650d1eSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 46271a650d1eSmrgif ${ac_cv_path_SED+:} false; then : 46281a650d1eSmrg $as_echo_n "(cached) " >&6 46298108eb18Smrgelse 46301a650d1eSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 46311a650d1eSmrg for ac_i in 1 2 3 4 5 6 7; do 46321a650d1eSmrg ac_script="$ac_script$as_nl$ac_script" 46331a650d1eSmrg done 46341a650d1eSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 46351a650d1eSmrg { ac_script=; unset ac_script;} 46361a650d1eSmrg if test -z "$SED"; then 46371a650d1eSmrg ac_path_SED_found=false 46381a650d1eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 46391a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46401a650d1eSmrgfor as_dir in $PATH 46411a650d1eSmrgdo 46421a650d1eSmrg IFS=$as_save_IFS 46431a650d1eSmrg test -z "$as_dir" && as_dir=. 46441a650d1eSmrg for ac_prog in sed gsed; do 46451a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 46461a650d1eSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 46478a355152Smrg as_fn_executable_p "$ac_path_SED" || continue 46481a650d1eSmrg# Check for GNU ac_path_SED and select it if it is found. 46491a650d1eSmrg # Check for GNU $ac_path_SED 46501a650d1eSmrgcase `"$ac_path_SED" --version 2>&1` in 46511a650d1eSmrg*GNU*) 46521a650d1eSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 46531a650d1eSmrg*) 46541a650d1eSmrg ac_count=0 46551a650d1eSmrg $as_echo_n 0123456789 >"conftest.in" 46561a650d1eSmrg while : 46571a650d1eSmrg do 46581a650d1eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 46591a650d1eSmrg mv "conftest.tmp" "conftest.in" 46601a650d1eSmrg cp "conftest.in" "conftest.nl" 46611a650d1eSmrg $as_echo '' >> "conftest.nl" 46621a650d1eSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 46631a650d1eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 46641a650d1eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 46651a650d1eSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 46661a650d1eSmrg # Best one so far, save it but keep looking for a better one 46671a650d1eSmrg ac_cv_path_SED="$ac_path_SED" 46681a650d1eSmrg ac_path_SED_max=$ac_count 46691a650d1eSmrg fi 46701a650d1eSmrg # 10*(2^10) chars as input seems more than enough 46711a650d1eSmrg test $ac_count -gt 10 && break 46721a650d1eSmrg done 46731a650d1eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 46741a650d1eSmrgesac 46758108eb18Smrg 46761a650d1eSmrg $ac_path_SED_found && break 3 46771a650d1eSmrg done 46781a650d1eSmrg done 46791a650d1eSmrg done 46801a650d1eSmrgIFS=$as_save_IFS 46811a650d1eSmrg if test -z "$ac_cv_path_SED"; then 46821a650d1eSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 46831a650d1eSmrg fi 46848108eb18Smrgelse 46851a650d1eSmrg ac_cv_path_SED=$SED 46868108eb18Smrgfi 46878108eb18Smrg 46888108eb18Smrgfi 46891a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 46901a650d1eSmrg$as_echo "$ac_cv_path_SED" >&6; } 46911a650d1eSmrg SED="$ac_cv_path_SED" 46921a650d1eSmrg rm -f conftest.sed 46938108eb18Smrg 46948108eb18Smrg 46958108eb18Smrg 46968108eb18Smrg 46978108eb18Smrg 46985977a007Smrg 46995977a007Smrg# Check whether --enable-selective-werror was given. 47005977a007Smrgif test "${enable_selective_werror+set}" = set; then : 47015977a007Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 47028108eb18Smrgelse 47035977a007Smrg SELECTIVE_WERROR=yes 47048108eb18Smrgfi 47058108eb18Smrg 47065977a007Smrg 47075977a007Smrg 47085977a007Smrg 47095977a007Smrg 47105977a007Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 47115977a007Smrgif test "x$SUNCC" = "xyes"; then 47125977a007Smrg BASE_CFLAGS="-v" 47135977a007Smrgelse 47145977a007Smrg BASE_CFLAGS="" 47158108eb18Smrgfi 47168108eb18Smrg 47175977a007Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 47188108eb18Smrg 47198108eb18Smrg 47208108eb18Smrg 47218108eb18Smrg 47228108eb18Smrg 47231a650d1eSmrg 47248108eb18Smrg 47255977a007Smrg 47265977a007Smrg 47275977a007Smrg 47285977a007Smrg 47295977a007Smrg 47305977a007Smrg 47315977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47325977a007Smrg 47335977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 47345977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47355977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 47365977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 47375977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 47385977a007Smrg $as_echo_n "(cached) " >&6 47398108eb18Smrgelse 47405977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47415977a007Smrg/* end confdefs.h. */ 47425977a007Smrgint i; 47435977a007Smrg_ACEOF 47445977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 47455977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 47465977a007Smrgelse 47475977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 47485977a007Smrgfi 47495977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47505977a007Smrgfi 47515977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 47525977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 47535977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 47545977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47558108eb18Smrgfi 47568108eb18Smrg 47575977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 47585977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 47595977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47601a650d1eSmrg fi 47615977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47625977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 47635977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 47645977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 47655977a007Smrg $as_echo_n "(cached) " >&6 47665977a007Smrgelse 47675977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47685977a007Smrg/* end confdefs.h. */ 47695977a007Smrgint i; 47705977a007Smrg_ACEOF 47715977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 47725977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 47735977a007Smrgelse 47745977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 47755977a007Smrgfi 47765977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47775977a007Smrgfi 47785977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 47795977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 47805977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 47815977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47821a650d1eSmrgfi 47838108eb18Smrg 47845977a007Smrgfound="no" 47858108eb18Smrg 47865977a007Smrg if test $found = "no" ; then 47878a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 47885977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47895977a007Smrg fi 47908108eb18Smrg 47918a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 47925977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47935977a007Smrg fi 47948108eb18Smrg 47955977a007Smrg CFLAGS="$CFLAGS -Wall" 47968108eb18Smrg 47975977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 47985977a007Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 47995977a007Smrg cacheid=xorg_cv_cc_flag__Wall 48005977a007Smrg if eval \${$cacheid+:} false; then : 48015977a007Smrg $as_echo_n "(cached) " >&6 48025977a007Smrgelse 48035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48045977a007Smrg/* end confdefs.h. */ 48055977a007Smrgint i; 48065977a007Smrgint 48075977a007Smrgmain () 48085977a007Smrg{ 48098108eb18Smrg 48105977a007Smrg ; 48115977a007Smrg return 0; 48125977a007Smrg} 48131a650d1eSmrg_ACEOF 48145977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 48155977a007Smrg eval $cacheid=yes 48165977a007Smrgelse 48175977a007Smrg eval $cacheid=no 48185977a007Smrgfi 48195977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 48205977a007Smrg conftest$ac_exeext conftest.$ac_ext 48215977a007Smrgfi 48228108eb18Smrg 48235977a007Smrg 48245977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48255977a007Smrg 48265977a007Smrg eval supported=\$$cacheid 48275977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48285977a007Smrg$as_echo "$supported" >&6; } 48295977a007Smrg if test "$supported" = "yes" ; then 48305977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 48315977a007Smrg found="yes" 48325977a007Smrg fi 48331a650d1eSmrg fi 48348108eb18Smrg 48358108eb18Smrg 48368108eb18Smrg 48378108eb18Smrg 48388108eb18Smrg 48398108eb18Smrg 48408108eb18Smrg 48418108eb18Smrg 48421a650d1eSmrg 48438108eb18Smrg 48448108eb18Smrg 48458108eb18Smrg 48468108eb18Smrg 48478108eb18Smrg 48488108eb18Smrg 48495977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48508108eb18Smrg 48515977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 48525977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48535977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48545977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48555977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 48565977a007Smrg $as_echo_n "(cached) " >&6 48575977a007Smrgelse 48585977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48595977a007Smrg/* end confdefs.h. */ 48605977a007Smrgint i; 48615977a007Smrg_ACEOF 48625977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 48635977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 48645977a007Smrgelse 48655977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 48668108eb18Smrgfi 48675977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48688108eb18Smrgfi 48695977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48705977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48715977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 48725977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48738108eb18Smrgfi 48748108eb18Smrg 48755977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48765977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48785977a007Smrg fi 48795977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48805977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48815977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48825977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 48835977a007Smrg $as_echo_n "(cached) " >&6 48845977a007Smrgelse 48855977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48865977a007Smrg/* end confdefs.h. */ 48875977a007Smrgint i; 48885977a007Smrg_ACEOF 48895977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 48905977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 48915977a007Smrgelse 48925977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48938108eb18Smrgfi 48945977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48958108eb18Smrgfi 48965977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48975977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48985977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 48995977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49008108eb18Smrgfi 49018108eb18Smrg 49025977a007Smrgfound="no" 49035977a007Smrg 49045977a007Smrg if test $found = "no" ; then 49058a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49065977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49075977a007Smrg fi 49088108eb18Smrg 49098a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 49105977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49115977a007Smrg fi 49128108eb18Smrg 49135977a007Smrg CFLAGS="$CFLAGS -Wpointer-arith" 49148108eb18Smrg 49155977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 49165977a007Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 49175977a007Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 49185977a007Smrg if eval \${$cacheid+:} false; then : 49195977a007Smrg $as_echo_n "(cached) " >&6 49205977a007Smrgelse 49215977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49225977a007Smrg/* end confdefs.h. */ 49235977a007Smrgint i; 49245977a007Smrgint 49255977a007Smrgmain () 49265977a007Smrg{ 49278108eb18Smrg 49285977a007Smrg ; 49295977a007Smrg return 0; 49305977a007Smrg} 49315977a007Smrg_ACEOF 49325977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 49335977a007Smrg eval $cacheid=yes 49345977a007Smrgelse 49355977a007Smrg eval $cacheid=no 49365977a007Smrgfi 49375977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 49385977a007Smrg conftest$ac_exeext conftest.$ac_ext 49395977a007Smrgfi 49408108eb18Smrg 49418108eb18Smrg 49425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49438108eb18Smrg 49445977a007Smrg eval supported=\$$cacheid 49455977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49465977a007Smrg$as_echo "$supported" >&6; } 49475977a007Smrg if test "$supported" = "yes" ; then 49485977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 49495977a007Smrg found="yes" 49505977a007Smrg fi 49515977a007Smrg fi 49528108eb18Smrg 49538108eb18Smrg 49548108eb18Smrg 49558108eb18Smrg 49568108eb18Smrg 49578108eb18Smrg 49588108eb18Smrg 49591a650d1eSmrg 49601a650d1eSmrg 49618108eb18Smrg 49628108eb18Smrg 49631a650d1eSmrg 49641a650d1eSmrg 49651a650d1eSmrg 49661a650d1eSmrg 49675977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 49681a650d1eSmrg 49695977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 49705977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49715977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 49725977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 49735977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 49745977a007Smrg $as_echo_n "(cached) " >&6 49758108eb18Smrgelse 49765977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49775977a007Smrg/* end confdefs.h. */ 49785977a007Smrgint i; 49795977a007Smrg_ACEOF 49805977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 49815977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 49825977a007Smrgelse 49835977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 49845977a007Smrgfi 49855977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49865977a007Smrgfi 49875977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49885977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49895977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49905977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49911a650d1eSmrgfi 49921a650d1eSmrg 49935977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49945977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49965977a007Smrg fi 49975977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49985977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49995977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50005977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50015977a007Smrg $as_echo_n "(cached) " >&6 50025977a007Smrgelse 50035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50045977a007Smrg/* end confdefs.h. */ 50055977a007Smrgint i; 50065977a007Smrg_ACEOF 50075977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 50085977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50095977a007Smrgelse 50105977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50115977a007Smrgfi 50125977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50135977a007Smrgfi 50145977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50155977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50165977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50175977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50185977a007Smrgfi 50191a650d1eSmrg 50205977a007Smrgfound="no" 50211a650d1eSmrg 50225977a007Smrg if test $found = "no" ; then 50238a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50245977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50255977a007Smrg fi 50261a650d1eSmrg 50278a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 50285977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50295977a007Smrg fi 50301a650d1eSmrg 50315977a007Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 50321a650d1eSmrg 50335977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 50345977a007Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 50355977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 50365977a007Smrg if eval \${$cacheid+:} false; then : 50375977a007Smrg $as_echo_n "(cached) " >&6 50385977a007Smrgelse 50395977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50405977a007Smrg/* end confdefs.h. */ 50415977a007Smrgint i; 50425977a007Smrgint 50435977a007Smrgmain () 50445977a007Smrg{ 50455977a007Smrg 50465977a007Smrg ; 50475977a007Smrg return 0; 50485977a007Smrg} 50495977a007Smrg_ACEOF 50505977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 50515977a007Smrg eval $cacheid=yes 50525977a007Smrgelse 50535977a007Smrg eval $cacheid=no 50545977a007Smrgfi 50555977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 50565977a007Smrg conftest$ac_exeext conftest.$ac_ext 50575977a007Smrgfi 50585977a007Smrg 50595977a007Smrg 50605977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50615977a007Smrg 50625977a007Smrg eval supported=\$$cacheid 50635977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 50645977a007Smrg$as_echo "$supported" >&6; } 50655977a007Smrg if test "$supported" = "yes" ; then 50665977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 50675977a007Smrg found="yes" 50685977a007Smrg fi 50695977a007Smrg fi 50705977a007Smrg 50715977a007Smrg 50725977a007Smrg 50735977a007Smrg 50745977a007Smrg 50755977a007Smrg 50765977a007Smrg 50775977a007Smrg 50785977a007Smrg 50795977a007Smrg 50805977a007Smrg 50815977a007Smrg 50825977a007Smrg 50835977a007Smrg 50845977a007Smrg 50855977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50865977a007Smrg 50875977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50885977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50895977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50905977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50915977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50925977a007Smrg $as_echo_n "(cached) " >&6 50935977a007Smrgelse 50945977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50955977a007Smrg/* end confdefs.h. */ 50965977a007Smrgint i; 50975977a007Smrg_ACEOF 50985977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 50995977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51005977a007Smrgelse 51015977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 51025977a007Smrgfi 51035977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51045977a007Smrgfi 51055977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51065977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51075977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51085977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51095977a007Smrgfi 51105977a007Smrg 51115977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51125977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51135977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51145977a007Smrg fi 51155977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51165977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51175977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51185977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 51195977a007Smrg $as_echo_n "(cached) " >&6 51205977a007Smrgelse 51215977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51225977a007Smrg/* end confdefs.h. */ 51235977a007Smrgint i; 51245977a007Smrg_ACEOF 51255977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 51265977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 51275977a007Smrgelse 51285977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 51295977a007Smrgfi 51305977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51315977a007Smrgfi 51325977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51335977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51345977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 51355977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51365977a007Smrgfi 51375977a007Smrg 51385977a007Smrgfound="no" 51395977a007Smrg 51405977a007Smrg if test $found = "no" ; then 51418a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51425977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51435977a007Smrg fi 51445977a007Smrg 51458a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 51465977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51475977a007Smrg fi 51485977a007Smrg 51495977a007Smrg CFLAGS="$CFLAGS -Wformat=2" 51505977a007Smrg 51515977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 51525977a007Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 51538a355152Smrg cacheid=xorg_cv_cc_flag__Wformat_2 51545977a007Smrg if eval \${$cacheid+:} false; then : 51555977a007Smrg $as_echo_n "(cached) " >&6 51565977a007Smrgelse 51575977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51585977a007Smrg/* end confdefs.h. */ 51595977a007Smrgint i; 51605977a007Smrgint 51615977a007Smrgmain () 51625977a007Smrg{ 51635977a007Smrg 51645977a007Smrg ; 51655977a007Smrg return 0; 51665977a007Smrg} 51675977a007Smrg_ACEOF 51685977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 51695977a007Smrg eval $cacheid=yes 51705977a007Smrgelse 51715977a007Smrg eval $cacheid=no 51725977a007Smrgfi 51735977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 51745977a007Smrg conftest$ac_exeext conftest.$ac_ext 51755977a007Smrgfi 51765977a007Smrg 51775977a007Smrg 51785977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51795977a007Smrg 51805977a007Smrg eval supported=\$$cacheid 51815977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51825977a007Smrg$as_echo "$supported" >&6; } 51835977a007Smrg if test "$supported" = "yes" ; then 51845977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 51855977a007Smrg found="yes" 51865977a007Smrg fi 51875977a007Smrg fi 51885977a007Smrg 51895977a007Smrg if test $found = "no" ; then 51908a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51915977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51925977a007Smrg fi 51935977a007Smrg 51948a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 51955977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51965977a007Smrg fi 51975977a007Smrg 51985977a007Smrg CFLAGS="$CFLAGS -Wformat" 51995977a007Smrg 52005977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 52015977a007Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 52025977a007Smrg cacheid=xorg_cv_cc_flag__Wformat 52035977a007Smrg if eval \${$cacheid+:} false; then : 52045977a007Smrg $as_echo_n "(cached) " >&6 52055977a007Smrgelse 52065977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52075977a007Smrg/* end confdefs.h. */ 52085977a007Smrgint i; 52095977a007Smrgint 52105977a007Smrgmain () 52115977a007Smrg{ 52125977a007Smrg 52135977a007Smrg ; 52145977a007Smrg return 0; 52155977a007Smrg} 52165977a007Smrg_ACEOF 52175977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 52185977a007Smrg eval $cacheid=yes 52195977a007Smrgelse 52205977a007Smrg eval $cacheid=no 52215977a007Smrgfi 52225977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 52235977a007Smrg conftest$ac_exeext conftest.$ac_ext 52245977a007Smrgfi 52255977a007Smrg 52265977a007Smrg 52275977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52285977a007Smrg 52295977a007Smrg eval supported=\$$cacheid 52305977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52315977a007Smrg$as_echo "$supported" >&6; } 52325977a007Smrg if test "$supported" = "yes" ; then 52335977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 52345977a007Smrg found="yes" 52355977a007Smrg fi 52365977a007Smrg fi 52375977a007Smrg 52385977a007Smrg 52395977a007Smrg 52405977a007Smrg 52415977a007Smrg 52425977a007Smrg 52435977a007Smrg 52445977a007Smrg 52455977a007Smrg 52465977a007Smrg 52475977a007Smrg 52485977a007Smrg 52495977a007Smrg 52505977a007Smrg 52515977a007Smrg 52525977a007Smrg 52535977a007Smrg 52545977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 52555977a007Smrg 52565977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 52575977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52585977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52595977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52605977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 52615977a007Smrg $as_echo_n "(cached) " >&6 52625977a007Smrgelse 52635977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52645977a007Smrg/* end confdefs.h. */ 52655977a007Smrgint i; 52665977a007Smrg_ACEOF 52675977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 52685977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 52695977a007Smrgelse 52705977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 52715977a007Smrgfi 52725977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52735977a007Smrgfi 52745977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52755977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 52765977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 52775977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52785977a007Smrgfi 52795977a007Smrg 52805977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52815977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52825977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52835977a007Smrg fi 52845977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52855977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52865977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52875977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 52885977a007Smrg $as_echo_n "(cached) " >&6 52895977a007Smrgelse 52905977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52915977a007Smrg/* end confdefs.h. */ 52925977a007Smrgint i; 52935977a007Smrg_ACEOF 52945977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 52955977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 52965977a007Smrgelse 52975977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 52985977a007Smrgfi 52995977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53005977a007Smrgfi 53015977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53025977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53035977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53045977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53055977a007Smrgfi 53065977a007Smrg 53075977a007Smrgfound="no" 53085977a007Smrg 53095977a007Smrg if test $found = "no" ; then 53108a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53115977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53125977a007Smrg fi 53135977a007Smrg 53148a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 53155977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53165977a007Smrg fi 53175977a007Smrg 53185977a007Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 53195977a007Smrg 53205977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 53215977a007Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 53225977a007Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 53235977a007Smrg if eval \${$cacheid+:} false; then : 53245977a007Smrg $as_echo_n "(cached) " >&6 53255977a007Smrgelse 53265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53275977a007Smrg/* end confdefs.h. */ 53285977a007Smrgint i; 53295977a007Smrgint 53305977a007Smrgmain () 53315977a007Smrg{ 53325977a007Smrg 53335977a007Smrg ; 53345977a007Smrg return 0; 53355977a007Smrg} 53365977a007Smrg_ACEOF 53375977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 53385977a007Smrg eval $cacheid=yes 53395977a007Smrgelse 53405977a007Smrg eval $cacheid=no 53415977a007Smrgfi 53425977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 53435977a007Smrg conftest$ac_exeext conftest.$ac_ext 53445977a007Smrgfi 53455977a007Smrg 53465977a007Smrg 53475977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53485977a007Smrg 53495977a007Smrg eval supported=\$$cacheid 53505977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53515977a007Smrg$as_echo "$supported" >&6; } 53525977a007Smrg if test "$supported" = "yes" ; then 53535977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 53545977a007Smrg found="yes" 53555977a007Smrg fi 53565977a007Smrg fi 53575977a007Smrg 53585977a007Smrg 53595977a007Smrg 53605977a007Smrg 53615977a007Smrg 53625977a007Smrg 53635977a007Smrg 53645977a007Smrg 53655977a007Smrg 53665977a007Smrg 53675977a007Smrg 53685977a007Smrg 53695977a007Smrg 53705977a007Smrg 53715977a007Smrg 53725977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 53735977a007Smrg 53745977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 53755977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53765977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53775977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53785977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 53795977a007Smrg $as_echo_n "(cached) " >&6 53805977a007Smrgelse 53815977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53825977a007Smrg/* end confdefs.h. */ 53835977a007Smrgint i; 53845977a007Smrg_ACEOF 53855977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 53865977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53875977a007Smrgelse 53885977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 53895977a007Smrgfi 53905977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53915977a007Smrgfi 53925977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53935977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53945977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 53955977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53965977a007Smrgfi 53975977a007Smrg 53985977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53995977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54005977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54015977a007Smrg fi 54025977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54035977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54045977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54055977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54065977a007Smrg $as_echo_n "(cached) " >&6 54075977a007Smrgelse 54085977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54095977a007Smrg/* end confdefs.h. */ 54105977a007Smrgint i; 54115977a007Smrg_ACEOF 54125977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 54135977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54145977a007Smrgelse 54155977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54165977a007Smrgfi 54175977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54185977a007Smrgfi 54195977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54205977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54215977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54225977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54235977a007Smrgfi 54245977a007Smrg 54255977a007Smrgfound="no" 54265977a007Smrg 54275977a007Smrg if test $found = "no" ; then 54288a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54295977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54305977a007Smrg fi 54315977a007Smrg 54328a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 54335977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54345977a007Smrg fi 54355977a007Smrg 54365977a007Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 54375977a007Smrg 54385977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 54395977a007Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 54405977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 54415977a007Smrg if eval \${$cacheid+:} false; then : 54425977a007Smrg $as_echo_n "(cached) " >&6 54435977a007Smrgelse 54445977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54455977a007Smrg/* end confdefs.h. */ 54465977a007Smrgint i; 54475977a007Smrgint 54485977a007Smrgmain () 54495977a007Smrg{ 54505977a007Smrg 54515977a007Smrg ; 54525977a007Smrg return 0; 54535977a007Smrg} 54545977a007Smrg_ACEOF 54555977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 54565977a007Smrg eval $cacheid=yes 54575977a007Smrgelse 54585977a007Smrg eval $cacheid=no 54595977a007Smrgfi 54605977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 54615977a007Smrg conftest$ac_exeext conftest.$ac_ext 54625977a007Smrgfi 54635977a007Smrg 54645977a007Smrg 54655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54665977a007Smrg 54675977a007Smrg eval supported=\$$cacheid 54685977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54695977a007Smrg$as_echo "$supported" >&6; } 54705977a007Smrg if test "$supported" = "yes" ; then 54715977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 54725977a007Smrg found="yes" 54735977a007Smrg fi 54745977a007Smrg fi 54755977a007Smrg 54765977a007Smrg 54775977a007Smrg 54785977a007Smrg 54795977a007Smrg 54805977a007Smrg 54815977a007Smrg 54825977a007Smrg 54835977a007Smrg 54845977a007Smrg 54855977a007Smrg 54865977a007Smrg 54875977a007Smrg 54885977a007Smrg 54895977a007Smrg 54905977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54915977a007Smrg 54925977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54935977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54945977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54955977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54965977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 54975977a007Smrg $as_echo_n "(cached) " >&6 54985977a007Smrgelse 54995977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55005977a007Smrg/* end confdefs.h. */ 55015977a007Smrgint i; 55025977a007Smrg_ACEOF 55035977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 55045977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55055977a007Smrgelse 55065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 55075977a007Smrgfi 55085977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55095977a007Smrgfi 55105977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55115977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55125977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55135977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55145977a007Smrgfi 55155977a007Smrg 55165977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55175977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55185977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55195977a007Smrg fi 55205977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55215977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55225977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55235977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55245977a007Smrg $as_echo_n "(cached) " >&6 55255977a007Smrgelse 55265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55275977a007Smrg/* end confdefs.h. */ 55285977a007Smrgint i; 55295977a007Smrg_ACEOF 55305977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 55315977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 55325977a007Smrgelse 55335977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 55345977a007Smrgfi 55355977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55365977a007Smrgfi 55375977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55385977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 55395977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 55405977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55415977a007Smrgfi 55425977a007Smrg 55435977a007Smrgfound="no" 55445977a007Smrg 55455977a007Smrg if test $found = "no" ; then 55468a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55475977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55485977a007Smrg fi 55495977a007Smrg 55508a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 55515977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55525977a007Smrg fi 55535977a007Smrg 55545977a007Smrg CFLAGS="$CFLAGS -Wnested-externs" 55555977a007Smrg 55565977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 55575977a007Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 55585977a007Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 55595977a007Smrg if eval \${$cacheid+:} false; then : 55605977a007Smrg $as_echo_n "(cached) " >&6 55615977a007Smrgelse 55625977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55635977a007Smrg/* end confdefs.h. */ 55645977a007Smrgint i; 55655977a007Smrgint 55665977a007Smrgmain () 55675977a007Smrg{ 55685977a007Smrg 55695977a007Smrg ; 55705977a007Smrg return 0; 55715977a007Smrg} 55725977a007Smrg_ACEOF 55735977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 55745977a007Smrg eval $cacheid=yes 55755977a007Smrgelse 55765977a007Smrg eval $cacheid=no 55775977a007Smrgfi 55785977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 55795977a007Smrg conftest$ac_exeext conftest.$ac_ext 55805977a007Smrgfi 55815977a007Smrg 55825977a007Smrg 55835977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55845977a007Smrg 55855977a007Smrg eval supported=\$$cacheid 55865977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55875977a007Smrg$as_echo "$supported" >&6; } 55885977a007Smrg if test "$supported" = "yes" ; then 55895977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 55905977a007Smrg found="yes" 55915977a007Smrg fi 55925977a007Smrg fi 55935977a007Smrg 55945977a007Smrg 55955977a007Smrg 55965977a007Smrg 55975977a007Smrg 55985977a007Smrg 55995977a007Smrg 56005977a007Smrg 56015977a007Smrg 56025977a007Smrg 56035977a007Smrg 56045977a007Smrg 56055977a007Smrg 56065977a007Smrg 56075977a007Smrg 56085977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56095977a007Smrg 56105977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56115977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56125977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56135977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56145977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56155977a007Smrg $as_echo_n "(cached) " >&6 56165977a007Smrgelse 56175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56185977a007Smrg/* end confdefs.h. */ 56195977a007Smrgint i; 56205977a007Smrg_ACEOF 56215977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 56225977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56235977a007Smrgelse 56245977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 56255977a007Smrgfi 56265977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56275977a007Smrgfi 56285977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56295977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56305977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56315977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56325977a007Smrgfi 56335977a007Smrg 56345977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56355977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56365977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56375977a007Smrg fi 56385977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56395977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56405977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56415977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 56425977a007Smrg $as_echo_n "(cached) " >&6 56435977a007Smrgelse 56445977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56455977a007Smrg/* end confdefs.h. */ 56465977a007Smrgint i; 56475977a007Smrg_ACEOF 56485977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 56495977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56505977a007Smrgelse 56515977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 56525977a007Smrgfi 56535977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56545977a007Smrgfi 56555977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56565977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56575977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56585977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56595977a007Smrgfi 56605977a007Smrg 56615977a007Smrgfound="no" 56625977a007Smrg 56635977a007Smrg if test $found = "no" ; then 56648a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56655977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56665977a007Smrg fi 56675977a007Smrg 56688a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 56695977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56705977a007Smrg fi 56715977a007Smrg 56725977a007Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 56735977a007Smrg 56745977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 56755977a007Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 56765977a007Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 56775977a007Smrg if eval \${$cacheid+:} false; then : 56785977a007Smrg $as_echo_n "(cached) " >&6 56795977a007Smrgelse 56805977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56815977a007Smrg/* end confdefs.h. */ 56825977a007Smrgint i; 56835977a007Smrgint 56845977a007Smrgmain () 56855977a007Smrg{ 56865977a007Smrg 56875977a007Smrg ; 56885977a007Smrg return 0; 56895977a007Smrg} 56905977a007Smrg_ACEOF 56915977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 56925977a007Smrg eval $cacheid=yes 56935977a007Smrgelse 56945977a007Smrg eval $cacheid=no 56955977a007Smrgfi 56965977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 56975977a007Smrg conftest$ac_exeext conftest.$ac_ext 56985977a007Smrgfi 56995977a007Smrg 57005977a007Smrg 57015977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57025977a007Smrg 57035977a007Smrg eval supported=\$$cacheid 57045977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57055977a007Smrg$as_echo "$supported" >&6; } 57065977a007Smrg if test "$supported" = "yes" ; then 57075977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 57085977a007Smrg found="yes" 57095977a007Smrg fi 57105977a007Smrg fi 57115977a007Smrg 57125977a007Smrg 57135977a007Smrg 57145977a007Smrg 57155977a007Smrg 57165977a007Smrg 57175977a007Smrg 57185977a007Smrg 57195977a007Smrg 57205977a007Smrg 57215977a007Smrg 57225977a007Smrg 57235977a007Smrg 57245977a007Smrg 57255977a007Smrg 57265977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 57275977a007Smrg 57285977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57295977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57305977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57315977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57325977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57335977a007Smrg $as_echo_n "(cached) " >&6 57345977a007Smrgelse 57355977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57365977a007Smrg/* end confdefs.h. */ 57375977a007Smrgint i; 57385977a007Smrg_ACEOF 57395977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 57405977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57415977a007Smrgelse 57425977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 57435977a007Smrgfi 57445977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57455977a007Smrgfi 57465977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57475977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57485977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 57495977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57505977a007Smrgfi 57515977a007Smrg 57525977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57535977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57545977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57555977a007Smrg fi 57565977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57575977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57585977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57595977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 57605977a007Smrg $as_echo_n "(cached) " >&6 57615977a007Smrgelse 57625977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57635977a007Smrg/* end confdefs.h. */ 57645977a007Smrgint i; 57655977a007Smrg_ACEOF 57665977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 57675977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57685977a007Smrgelse 57695977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 57705977a007Smrgfi 57715977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57725977a007Smrgfi 57735977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57745977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57755977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 57765977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57775977a007Smrgfi 57785977a007Smrg 57795977a007Smrgfound="no" 57805977a007Smrg 57815977a007Smrg if test $found = "no" ; then 57828a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57835977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57845977a007Smrg fi 57855977a007Smrg 57868a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 57875977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57885977a007Smrg fi 57895977a007Smrg 57905977a007Smrg CFLAGS="$CFLAGS -Wold-style-definition" 57915977a007Smrg 57925977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 57935977a007Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 57945977a007Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 57955977a007Smrg if eval \${$cacheid+:} false; then : 57965977a007Smrg $as_echo_n "(cached) " >&6 57975977a007Smrgelse 57985977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57995977a007Smrg/* end confdefs.h. */ 58005977a007Smrgint i; 58015977a007Smrgint 58025977a007Smrgmain () 58035977a007Smrg{ 58045977a007Smrg 58055977a007Smrg ; 58065977a007Smrg return 0; 58075977a007Smrg} 58085977a007Smrg_ACEOF 58095977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 58105977a007Smrg eval $cacheid=yes 58115977a007Smrgelse 58125977a007Smrg eval $cacheid=no 58135977a007Smrgfi 58145977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 58155977a007Smrg conftest$ac_exeext conftest.$ac_ext 58165977a007Smrgfi 58175977a007Smrg 58185977a007Smrg 58195977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58205977a007Smrg 58215977a007Smrg eval supported=\$$cacheid 58225977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58235977a007Smrg$as_echo "$supported" >&6; } 58245977a007Smrg if test "$supported" = "yes" ; then 58255977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 58265977a007Smrg found="yes" 58275977a007Smrg fi 58285977a007Smrg fi 58295977a007Smrg 58308a355152Smrg if test $found = "no" ; then 58318a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58328a355152Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58338a355152Smrg fi 58348a355152Smrg 58358a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 58368a355152Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58378a355152Smrg fi 58388a355152Smrg 58398a355152Smrg CFLAGS="$CFLAGS -fd" 58408a355152Smrg 58418a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 58428a355152Smrg$as_echo_n "checking if $CC supports -fd... " >&6; } 58438a355152Smrg cacheid=xorg_cv_cc_flag__fd 58448a355152Smrg if eval \${$cacheid+:} false; then : 58458a355152Smrg $as_echo_n "(cached) " >&6 58468a355152Smrgelse 58478a355152Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58488a355152Smrg/* end confdefs.h. */ 58498a355152Smrgint i; 58508a355152Smrgint 58518a355152Smrgmain () 58528a355152Smrg{ 58538a355152Smrg 58548a355152Smrg ; 58558a355152Smrg return 0; 58568a355152Smrg} 58578a355152Smrg_ACEOF 58588a355152Smrgif ac_fn_c_try_link "$LINENO"; then : 58598a355152Smrg eval $cacheid=yes 58608a355152Smrgelse 58618a355152Smrg eval $cacheid=no 58628a355152Smrgfi 58638a355152Smrgrm -f core conftest.err conftest.$ac_objext \ 58648a355152Smrg conftest$ac_exeext conftest.$ac_ext 58658a355152Smrgfi 58668a355152Smrg 58678a355152Smrg 58688a355152Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58698a355152Smrg 58708a355152Smrg eval supported=\$$cacheid 58718a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58728a355152Smrg$as_echo "$supported" >&6; } 58738a355152Smrg if test "$supported" = "yes" ; then 58748a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 58758a355152Smrg found="yes" 58768a355152Smrg fi 58778a355152Smrg fi 58788a355152Smrg 58795977a007Smrg 58805977a007Smrg 58815977a007Smrg 58825977a007Smrg 58835977a007Smrg 58845977a007Smrg 58855977a007Smrg 58865977a007Smrg 58875977a007Smrg 58885977a007Smrg 58895977a007Smrg 58905977a007Smrg 58915977a007Smrg 58925977a007Smrg 58935977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 58945977a007Smrg 58955977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 58965977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58975977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58985977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58995977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 59005977a007Smrg $as_echo_n "(cached) " >&6 59015977a007Smrgelse 59025977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59035977a007Smrg/* end confdefs.h. */ 59045977a007Smrgint i; 59055977a007Smrg_ACEOF 59065977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 59075977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59085977a007Smrgelse 59095977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 59105977a007Smrgfi 59115977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59125977a007Smrgfi 59135977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59145977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59155977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59165977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59175977a007Smrgfi 59185977a007Smrg 59195977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59205977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59215977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59225977a007Smrg fi 59235977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59245977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59255977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59265977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 59275977a007Smrg $as_echo_n "(cached) " >&6 59285977a007Smrgelse 59295977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59305977a007Smrg/* end confdefs.h. */ 59315977a007Smrgint i; 59325977a007Smrg_ACEOF 59335977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 59345977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59355977a007Smrgelse 59365977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 59375977a007Smrgfi 59385977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59395977a007Smrgfi 59405977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59415977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59425977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59435977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59445977a007Smrgfi 59455977a007Smrg 59465977a007Smrgfound="no" 59475977a007Smrg 59485977a007Smrg if test $found = "no" ; then 59498a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59505977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59515977a007Smrg fi 59525977a007Smrg 59538a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 59545977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59555977a007Smrg fi 59565977a007Smrg 59575977a007Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 59585977a007Smrg 59595977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 59605977a007Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 59615977a007Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 59625977a007Smrg if eval \${$cacheid+:} false; then : 59635977a007Smrg $as_echo_n "(cached) " >&6 59645977a007Smrgelse 59655977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59665977a007Smrg/* end confdefs.h. */ 59675977a007Smrgint i; 59685977a007Smrgint 59695977a007Smrgmain () 59705977a007Smrg{ 59715977a007Smrg 59725977a007Smrg ; 59735977a007Smrg return 0; 59745977a007Smrg} 59755977a007Smrg_ACEOF 59765977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 59775977a007Smrg eval $cacheid=yes 59785977a007Smrgelse 59795977a007Smrg eval $cacheid=no 59805977a007Smrgfi 59815977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 59825977a007Smrg conftest$ac_exeext conftest.$ac_ext 59835977a007Smrgfi 59845977a007Smrg 59855977a007Smrg 59865977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59875977a007Smrg 59885977a007Smrg eval supported=\$$cacheid 59895977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59905977a007Smrg$as_echo "$supported" >&6; } 59915977a007Smrg if test "$supported" = "yes" ; then 59925977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 59935977a007Smrg found="yes" 59945977a007Smrg fi 59955977a007Smrg fi 59965977a007Smrg 59975977a007Smrg 59985977a007Smrg 59995977a007Smrg 60005977a007Smrg 60015977a007Smrg# This chunk adds additional warnings that could catch undesired effects. 60025977a007Smrg 60035977a007Smrg 60045977a007Smrg 60055977a007Smrg 60065977a007Smrg 60075977a007Smrg 60085977a007Smrg 60095977a007Smrg 60105977a007Smrg 60115977a007Smrg 60125977a007Smrg 60135977a007Smrg 60145977a007Smrg 60155977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 60165977a007Smrg 60175977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60185977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60195977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60205977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60215977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60225977a007Smrg $as_echo_n "(cached) " >&6 60235977a007Smrgelse 60245977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60255977a007Smrg/* end confdefs.h. */ 60265977a007Smrgint i; 60275977a007Smrg_ACEOF 60285977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 60295977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 60305977a007Smrgelse 60315977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 60325977a007Smrgfi 60335977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60345977a007Smrgfi 60355977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60365977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60375977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 60385977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60395977a007Smrgfi 60405977a007Smrg 60415977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 60425977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60435977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60445977a007Smrg fi 60455977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60465977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60475977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60485977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 60495977a007Smrg $as_echo_n "(cached) " >&6 60505977a007Smrgelse 60515977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60525977a007Smrg/* end confdefs.h. */ 60535977a007Smrgint i; 60545977a007Smrg_ACEOF 60555977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 60565977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60575977a007Smrgelse 60585977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 60595977a007Smrgfi 60605977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60615977a007Smrgfi 60625977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60635977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60645977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 60655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60665977a007Smrgfi 60675977a007Smrg 60685977a007Smrgfound="no" 60695977a007Smrg 60705977a007Smrg if test $found = "no" ; then 60718a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60725977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60735977a007Smrg fi 60745977a007Smrg 60758a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 60765977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60775977a007Smrg fi 60785977a007Smrg 60795977a007Smrg CFLAGS="$CFLAGS -Wunused" 60805977a007Smrg 60815977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 60825977a007Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 60835977a007Smrg cacheid=xorg_cv_cc_flag__Wunused 60845977a007Smrg if eval \${$cacheid+:} false; then : 60855977a007Smrg $as_echo_n "(cached) " >&6 60865977a007Smrgelse 60875977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60885977a007Smrg/* end confdefs.h. */ 60895977a007Smrgint i; 60905977a007Smrgint 60915977a007Smrgmain () 60925977a007Smrg{ 60935977a007Smrg 60945977a007Smrg ; 60955977a007Smrg return 0; 60965977a007Smrg} 60975977a007Smrg_ACEOF 60985977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 60995977a007Smrg eval $cacheid=yes 61005977a007Smrgelse 61015977a007Smrg eval $cacheid=no 61025977a007Smrgfi 61035977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 61045977a007Smrg conftest$ac_exeext conftest.$ac_ext 61055977a007Smrgfi 61065977a007Smrg 61075977a007Smrg 61085977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61095977a007Smrg 61105977a007Smrg eval supported=\$$cacheid 61115977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61125977a007Smrg$as_echo "$supported" >&6; } 61135977a007Smrg if test "$supported" = "yes" ; then 61145977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 61155977a007Smrg found="yes" 61165977a007Smrg fi 61175977a007Smrg fi 61185977a007Smrg 61195977a007Smrg 61205977a007Smrg 61215977a007Smrg 61225977a007Smrg 61235977a007Smrg 61245977a007Smrg 61255977a007Smrg 61265977a007Smrg 61275977a007Smrg 61285977a007Smrg 61295977a007Smrg 61305977a007Smrg 61315977a007Smrg 61325977a007Smrg 61335977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 61345977a007Smrg 61355977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61365977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61375977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61385977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61395977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 61405977a007Smrg $as_echo_n "(cached) " >&6 61415977a007Smrgelse 61425977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61435977a007Smrg/* end confdefs.h. */ 61445977a007Smrgint i; 61455977a007Smrg_ACEOF 61465977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 61475977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61485977a007Smrgelse 61495977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 61505977a007Smrgfi 61515977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61525977a007Smrgfi 61535977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61545977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61555977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 61565977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61575977a007Smrgfi 61585977a007Smrg 61595977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61605977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61615977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61625977a007Smrg fi 61635977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61645977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61655977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61665977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61675977a007Smrg $as_echo_n "(cached) " >&6 61685977a007Smrgelse 61695977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61705977a007Smrg/* end confdefs.h. */ 61715977a007Smrgint i; 61725977a007Smrg_ACEOF 61735977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 61745977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61755977a007Smrgelse 61765977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61775977a007Smrgfi 61785977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61795977a007Smrgfi 61805977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61815977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61825977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61835977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61845977a007Smrgfi 61855977a007Smrg 61865977a007Smrgfound="no" 61875977a007Smrg 61885977a007Smrg if test $found = "no" ; then 61898a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61905977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61915977a007Smrg fi 61925977a007Smrg 61938a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 61945977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61955977a007Smrg fi 61965977a007Smrg 61975977a007Smrg CFLAGS="$CFLAGS -Wuninitialized" 61985977a007Smrg 61995977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 62005977a007Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 62015977a007Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 62025977a007Smrg if eval \${$cacheid+:} false; then : 62035977a007Smrg $as_echo_n "(cached) " >&6 62045977a007Smrgelse 62055977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62065977a007Smrg/* end confdefs.h. */ 62075977a007Smrgint i; 62085977a007Smrgint 62095977a007Smrgmain () 62105977a007Smrg{ 62115977a007Smrg 62125977a007Smrg ; 62135977a007Smrg return 0; 62145977a007Smrg} 62155977a007Smrg_ACEOF 62165977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 62175977a007Smrg eval $cacheid=yes 62185977a007Smrgelse 62195977a007Smrg eval $cacheid=no 62205977a007Smrgfi 62215977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 62225977a007Smrg conftest$ac_exeext conftest.$ac_ext 62235977a007Smrgfi 62245977a007Smrg 62255977a007Smrg 62265977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62275977a007Smrg 62285977a007Smrg eval supported=\$$cacheid 62295977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62305977a007Smrg$as_echo "$supported" >&6; } 62315977a007Smrg if test "$supported" = "yes" ; then 62325977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 62335977a007Smrg found="yes" 62345977a007Smrg fi 62355977a007Smrg fi 62365977a007Smrg 62375977a007Smrg 62385977a007Smrg 62395977a007Smrg 62405977a007Smrg 62415977a007Smrg 62425977a007Smrg 62435977a007Smrg 62445977a007Smrg 62455977a007Smrg 62465977a007Smrg 62475977a007Smrg 62485977a007Smrg 62495977a007Smrg 62505977a007Smrg 62515977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 62525977a007Smrg 62535977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 62545977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62555977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62565977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62575977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62585977a007Smrg $as_echo_n "(cached) " >&6 62595977a007Smrgelse 62605977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62615977a007Smrg/* end confdefs.h. */ 62625977a007Smrgint i; 62635977a007Smrg_ACEOF 62645977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 62655977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62665977a007Smrgelse 62675977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 62685977a007Smrgfi 62695977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62705977a007Smrgfi 62715977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62725977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62735977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62745977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62755977a007Smrgfi 62765977a007Smrg 62775977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62785977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62795977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62805977a007Smrg fi 62815977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62825977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62835977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62845977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62855977a007Smrg $as_echo_n "(cached) " >&6 62865977a007Smrgelse 62875977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62885977a007Smrg/* end confdefs.h. */ 62895977a007Smrgint i; 62905977a007Smrg_ACEOF 62915977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 62925977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62935977a007Smrgelse 62945977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62955977a007Smrgfi 62965977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62975977a007Smrgfi 62985977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62995977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63005977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 63015977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63025977a007Smrgfi 63035977a007Smrg 63045977a007Smrgfound="no" 63055977a007Smrg 63065977a007Smrg if test $found = "no" ; then 63078a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63085977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63095977a007Smrg fi 63105977a007Smrg 63118a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 63125977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63135977a007Smrg fi 63145977a007Smrg 63155977a007Smrg CFLAGS="$CFLAGS -Wshadow" 63165977a007Smrg 63175977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 63185977a007Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 63195977a007Smrg cacheid=xorg_cv_cc_flag__Wshadow 63205977a007Smrg if eval \${$cacheid+:} false; then : 63215977a007Smrg $as_echo_n "(cached) " >&6 63225977a007Smrgelse 63235977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63245977a007Smrg/* end confdefs.h. */ 63255977a007Smrgint i; 63265977a007Smrgint 63275977a007Smrgmain () 63285977a007Smrg{ 63295977a007Smrg 63305977a007Smrg ; 63315977a007Smrg return 0; 63325977a007Smrg} 63335977a007Smrg_ACEOF 63345977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 63355977a007Smrg eval $cacheid=yes 63365977a007Smrgelse 63375977a007Smrg eval $cacheid=no 63385977a007Smrgfi 63395977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 63405977a007Smrg conftest$ac_exeext conftest.$ac_ext 63415977a007Smrgfi 63425977a007Smrg 63435977a007Smrg 63445977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63455977a007Smrg 63465977a007Smrg eval supported=\$$cacheid 63475977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63485977a007Smrg$as_echo "$supported" >&6; } 63495977a007Smrg if test "$supported" = "yes" ; then 63505977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 63515977a007Smrg found="yes" 63525977a007Smrg fi 63535977a007Smrg fi 63545977a007Smrg 63555977a007Smrg 63565977a007Smrg 63575977a007Smrg 63585977a007Smrg 63595977a007Smrg 63605977a007Smrg 63615977a007Smrg 63625977a007Smrg 63635977a007Smrg 63645977a007Smrg 63655977a007Smrg 63665977a007Smrg 63675977a007Smrg 63685977a007Smrg 63695977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63705977a007Smrg 63715977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63725977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63735977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63745977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63755977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63765977a007Smrg $as_echo_n "(cached) " >&6 63775977a007Smrgelse 63785977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63795977a007Smrg/* end confdefs.h. */ 63805977a007Smrgint i; 63815977a007Smrg_ACEOF 63825977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 63835977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63845977a007Smrgelse 63855977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 63865977a007Smrgfi 63875977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63885977a007Smrgfi 63895977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63905977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63915977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63925977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63935977a007Smrgfi 63945977a007Smrg 63955977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63965977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63975977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63985977a007Smrg fi 63995977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64005977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64015977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64025977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 64035977a007Smrg $as_echo_n "(cached) " >&6 64045977a007Smrgelse 64055977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64065977a007Smrg/* end confdefs.h. */ 64075977a007Smrgint i; 64085977a007Smrg_ACEOF 64095977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 64105977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64115977a007Smrgelse 64125977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 64135977a007Smrgfi 64145977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64155977a007Smrgfi 64165977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64175977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64185977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64195977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64205977a007Smrgfi 64215977a007Smrg 64225977a007Smrgfound="no" 64235977a007Smrg 64245977a007Smrg if test $found = "no" ; then 64258a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64265977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64275977a007Smrg fi 64285977a007Smrg 64298a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 64305977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64315977a007Smrg fi 64325977a007Smrg 64338a355152Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 64345977a007Smrg 64358a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 64368a355152Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 64378a355152Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 64385977a007Smrg if eval \${$cacheid+:} false; then : 64395977a007Smrg $as_echo_n "(cached) " >&6 64405977a007Smrgelse 64415977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64425977a007Smrg/* end confdefs.h. */ 64435977a007Smrgint i; 64445977a007Smrgint 64455977a007Smrgmain () 64465977a007Smrg{ 64475977a007Smrg 64485977a007Smrg ; 64495977a007Smrg return 0; 64505977a007Smrg} 64515977a007Smrg_ACEOF 64525977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 64535977a007Smrg eval $cacheid=yes 64545977a007Smrgelse 64555977a007Smrg eval $cacheid=no 64565977a007Smrgfi 64575977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 64585977a007Smrg conftest$ac_exeext conftest.$ac_ext 64595977a007Smrgfi 64605977a007Smrg 64615977a007Smrg 64625977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64635977a007Smrg 64645977a007Smrg eval supported=\$$cacheid 64655977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64665977a007Smrg$as_echo "$supported" >&6; } 64675977a007Smrg if test "$supported" = "yes" ; then 64688a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 64695977a007Smrg found="yes" 64705977a007Smrg fi 64715977a007Smrg fi 64725977a007Smrg 64735977a007Smrg 64745977a007Smrg 64755977a007Smrg 64765977a007Smrg 64775977a007Smrg 64785977a007Smrg 64795977a007Smrg 64805977a007Smrg 64815977a007Smrg 64825977a007Smrg 64835977a007Smrg 64845977a007Smrg 64855977a007Smrg 64865977a007Smrg 64875977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64885977a007Smrg 64895977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64905977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64915977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64925977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64935977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64945977a007Smrg $as_echo_n "(cached) " >&6 64955977a007Smrgelse 64965977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64975977a007Smrg/* end confdefs.h. */ 64985977a007Smrgint i; 64995977a007Smrg_ACEOF 65005977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 65015977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65025977a007Smrgelse 65035977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 65045977a007Smrgfi 65055977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65065977a007Smrgfi 65075977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65085977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65095977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65105977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65115977a007Smrgfi 65125977a007Smrg 65135977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65145977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65155977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65165977a007Smrg fi 65175977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65185977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65195977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65205977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 65215977a007Smrg $as_echo_n "(cached) " >&6 65225977a007Smrgelse 65235977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65245977a007Smrg/* end confdefs.h. */ 65255977a007Smrgint i; 65265977a007Smrg_ACEOF 65275977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 65285977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65295977a007Smrgelse 65305977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 65315977a007Smrgfi 65325977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65335977a007Smrgfi 65345977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65355977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65365977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 65375977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65385977a007Smrgfi 65395977a007Smrg 65405977a007Smrgfound="no" 65415977a007Smrg 65425977a007Smrg if test $found = "no" ; then 65438a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65445977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65455977a007Smrg fi 65465977a007Smrg 65478a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 65485977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65495977a007Smrg fi 65505977a007Smrg 65518a355152Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 65525977a007Smrg 65538a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 65548a355152Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 65558a355152Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 65565977a007Smrg if eval \${$cacheid+:} false; then : 65575977a007Smrg $as_echo_n "(cached) " >&6 65585977a007Smrgelse 65595977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65605977a007Smrg/* end confdefs.h. */ 65615977a007Smrgint i; 65625977a007Smrgint 65635977a007Smrgmain () 65645977a007Smrg{ 65655977a007Smrg 65665977a007Smrg ; 65675977a007Smrg return 0; 65685977a007Smrg} 65695977a007Smrg_ACEOF 65705977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 65715977a007Smrg eval $cacheid=yes 65725977a007Smrgelse 65735977a007Smrg eval $cacheid=no 65745977a007Smrgfi 65755977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 65765977a007Smrg conftest$ac_exeext conftest.$ac_ext 65775977a007Smrgfi 65785977a007Smrg 65795977a007Smrg 65805977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65815977a007Smrg 65825977a007Smrg eval supported=\$$cacheid 65835977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65845977a007Smrg$as_echo "$supported" >&6; } 65855977a007Smrg if test "$supported" = "yes" ; then 65868a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 65875977a007Smrg found="yes" 65885977a007Smrg fi 65895977a007Smrg fi 65905977a007Smrg 65915977a007Smrg 65925977a007Smrg 65935977a007Smrg 65945977a007Smrg 65955977a007Smrg 65965977a007Smrg 65975977a007Smrg 65985977a007Smrg 65995977a007Smrg 66005977a007Smrg 66015977a007Smrg 66025977a007Smrg 66035977a007Smrg 66045977a007Smrg 66055977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 66065977a007Smrg 66075977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 66085977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66095977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66105977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66115977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 66125977a007Smrg $as_echo_n "(cached) " >&6 66135977a007Smrgelse 66145977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66155977a007Smrg/* end confdefs.h. */ 66165977a007Smrgint i; 66175977a007Smrg_ACEOF 66185977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 66195977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66205977a007Smrgelse 66215977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 66225977a007Smrgfi 66235977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66245977a007Smrgfi 66255977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66265977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66275977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 66285977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66295977a007Smrgfi 66305977a007Smrg 66315977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66325977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66335977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66345977a007Smrg fi 66355977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66365977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66375977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66385977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 66395977a007Smrg $as_echo_n "(cached) " >&6 66405977a007Smrgelse 66415977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66425977a007Smrg/* end confdefs.h. */ 66435977a007Smrgint i; 66445977a007Smrg_ACEOF 66455977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 66465977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66475977a007Smrgelse 66485977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 66495977a007Smrgfi 66505977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66515977a007Smrgfi 66525977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66535977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66545977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66555977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66565977a007Smrgfi 66575977a007Smrg 66585977a007Smrgfound="no" 66595977a007Smrg 66605977a007Smrg if test $found = "no" ; then 66618a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66625977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66635977a007Smrg fi 66645977a007Smrg 66658a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 66665977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66675977a007Smrg fi 66685977a007Smrg 66698a355152Smrg CFLAGS="$CFLAGS -Wredundant-decls" 66705977a007Smrg 66718a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 66728a355152Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 66738a355152Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 66745977a007Smrg if eval \${$cacheid+:} false; then : 66755977a007Smrg $as_echo_n "(cached) " >&6 66765977a007Smrgelse 66775977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66785977a007Smrg/* end confdefs.h. */ 66795977a007Smrgint i; 66805977a007Smrgint 66815977a007Smrgmain () 66825977a007Smrg{ 66835977a007Smrg 66845977a007Smrg ; 66855977a007Smrg return 0; 66865977a007Smrg} 66875977a007Smrg_ACEOF 66885977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 66895977a007Smrg eval $cacheid=yes 66905977a007Smrgelse 66915977a007Smrg eval $cacheid=no 66925977a007Smrgfi 66935977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 66945977a007Smrg conftest$ac_exeext conftest.$ac_ext 66955977a007Smrgfi 66965977a007Smrg 66975977a007Smrg 66985977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66995977a007Smrg 67005977a007Smrg eval supported=\$$cacheid 67015977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67025977a007Smrg$as_echo "$supported" >&6; } 67035977a007Smrg if test "$supported" = "yes" ; then 67048a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 67055977a007Smrg found="yes" 67065977a007Smrg fi 67075977a007Smrg fi 67085977a007Smrg 67095977a007Smrg 67105977a007Smrg 67115977a007Smrg 67125977a007Smrg 67135977a007Smrg 67145977a007Smrg 67155977a007Smrg 67165977a007Smrg 67175977a007Smrg 67185977a007Smrg 67195977a007Smrg 67205977a007Smrg 67215977a007Smrg 67225977a007Smrg 67235977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67245977a007Smrg 67255977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67265977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67275977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67285977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67295977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67305977a007Smrg $as_echo_n "(cached) " >&6 67315977a007Smrgelse 67325977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67335977a007Smrg/* end confdefs.h. */ 67345977a007Smrgint i; 67355977a007Smrg_ACEOF 67365977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 67375977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67385977a007Smrgelse 67395977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 67405977a007Smrgfi 67415977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67425977a007Smrgfi 67435977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67445977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67455977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67475977a007Smrgfi 67485977a007Smrg 67495977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67505977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67515977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67525977a007Smrg fi 67535977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67545977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67555977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67565977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67575977a007Smrg $as_echo_n "(cached) " >&6 67585977a007Smrgelse 67595977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67605977a007Smrg/* end confdefs.h. */ 67615977a007Smrgint i; 67625977a007Smrg_ACEOF 67635977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 67645977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67655977a007Smrgelse 67665977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67675977a007Smrgfi 67685977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67695977a007Smrgfi 67705977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67715977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67725977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67735977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67745977a007Smrgfi 67755977a007Smrg 67765977a007Smrgfound="no" 67775977a007Smrg 67785977a007Smrg if test $found = "no" ; then 67798a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67805977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67815977a007Smrg fi 67825977a007Smrg 67838a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 67845977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67855977a007Smrg fi 67865977a007Smrg 67878a355152Smrg CFLAGS="$CFLAGS -Wlogical-op" 67885977a007Smrg 67898a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 67908a355152Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 67918a355152Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 67925977a007Smrg if eval \${$cacheid+:} false; then : 67935977a007Smrg $as_echo_n "(cached) " >&6 67945977a007Smrgelse 67955977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67965977a007Smrg/* end confdefs.h. */ 67975977a007Smrgint i; 67985977a007Smrgint 67995977a007Smrgmain () 68005977a007Smrg{ 68015977a007Smrg 68025977a007Smrg ; 68035977a007Smrg return 0; 68045977a007Smrg} 68055977a007Smrg_ACEOF 68065977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 68075977a007Smrg eval $cacheid=yes 68085977a007Smrgelse 68095977a007Smrg eval $cacheid=no 68105977a007Smrgfi 68115977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 68125977a007Smrg conftest$ac_exeext conftest.$ac_ext 68135977a007Smrgfi 68145977a007Smrg 68155977a007Smrg 68165977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68175977a007Smrg 68185977a007Smrg eval supported=\$$cacheid 68195977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68205977a007Smrg$as_echo "$supported" >&6; } 68215977a007Smrg if test "$supported" = "yes" ; then 68228a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 68235977a007Smrg found="yes" 68245977a007Smrg fi 68255977a007Smrg fi 68265977a007Smrg 68275977a007Smrg 68285977a007Smrg 68295977a007Smrg# These are currently disabled because they are noisy. They will be enabled 68305977a007Smrg# in the future once the codebase is sufficiently modernized to silence 68315977a007Smrg# them. For now, I don't want them to drown out the other warnings. 68325977a007Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 68335977a007Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 68348a355152Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 68355977a007Smrg 68365977a007Smrg# Turn some warnings into errors, so we don't accidently get successful builds 68375977a007Smrg# when there are problems that should be fixed. 68385977a007Smrg 68395977a007Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 68405977a007Smrg 68415977a007Smrg 68425977a007Smrg 68435977a007Smrg 68445977a007Smrg 68455977a007Smrg 68465977a007Smrg 68475977a007Smrg 68485977a007Smrg 68495977a007Smrg 68505977a007Smrg 68515977a007Smrg 68525977a007Smrg 68535977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 68545977a007Smrg 68555977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 68565977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68575977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68585977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68595977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 68605977a007Smrg $as_echo_n "(cached) " >&6 68615977a007Smrgelse 68625977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68635977a007Smrg/* end confdefs.h. */ 68645977a007Smrgint i; 68655977a007Smrg_ACEOF 68665977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 68675977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 68685977a007Smrgelse 68695977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 68705977a007Smrgfi 68715977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68725977a007Smrgfi 68735977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68745977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68755977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 68765977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68775977a007Smrgfi 68785977a007Smrg 68795977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68805977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68815977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68825977a007Smrg fi 68835977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68845977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68855977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68865977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 68875977a007Smrg $as_echo_n "(cached) " >&6 68885977a007Smrgelse 68895977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68905977a007Smrg/* end confdefs.h. */ 68915977a007Smrgint i; 68925977a007Smrg_ACEOF 68935977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 68945977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68955977a007Smrgelse 68965977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 68975977a007Smrgfi 68985977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68995977a007Smrgfi 69005977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69015977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69025977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69035977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69045977a007Smrgfi 69055977a007Smrg 69065977a007Smrgfound="no" 69075977a007Smrg 69085977a007Smrg if test $found = "no" ; then 69098a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69105977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69115977a007Smrg fi 69125977a007Smrg 69138a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 69145977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69155977a007Smrg fi 69165977a007Smrg 69175977a007Smrg CFLAGS="$CFLAGS -Werror=implicit" 69185977a007Smrg 69195977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 69205977a007Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 69218a355152Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 69225977a007Smrg if eval \${$cacheid+:} false; then : 69235977a007Smrg $as_echo_n "(cached) " >&6 69245977a007Smrgelse 69255977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69265977a007Smrg/* end confdefs.h. */ 69275977a007Smrgint i; 69285977a007Smrgint 69295977a007Smrgmain () 69305977a007Smrg{ 69315977a007Smrg 69325977a007Smrg ; 69335977a007Smrg return 0; 69345977a007Smrg} 69355977a007Smrg_ACEOF 69365977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 69375977a007Smrg eval $cacheid=yes 69385977a007Smrgelse 69395977a007Smrg eval $cacheid=no 69405977a007Smrgfi 69415977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 69425977a007Smrg conftest$ac_exeext conftest.$ac_ext 69435977a007Smrgfi 69445977a007Smrg 69455977a007Smrg 69465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69475977a007Smrg 69485977a007Smrg eval supported=\$$cacheid 69495977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69505977a007Smrg$as_echo "$supported" >&6; } 69515977a007Smrg if test "$supported" = "yes" ; then 69525977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 69535977a007Smrg found="yes" 69545977a007Smrg fi 69555977a007Smrg fi 69565977a007Smrg 69575977a007Smrg if test $found = "no" ; then 69588a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69595977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69605977a007Smrg fi 69615977a007Smrg 69628a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 69635977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69645977a007Smrg fi 69655977a007Smrg 69665977a007Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 69675977a007Smrg 69685977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 69695977a007Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 69708a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 69715977a007Smrg if eval \${$cacheid+:} false; then : 69725977a007Smrg $as_echo_n "(cached) " >&6 69735977a007Smrgelse 69745977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69755977a007Smrg/* end confdefs.h. */ 69765977a007Smrgint i; 69775977a007Smrgint 69785977a007Smrgmain () 69795977a007Smrg{ 69805977a007Smrg 69815977a007Smrg ; 69825977a007Smrg return 0; 69835977a007Smrg} 69845977a007Smrg_ACEOF 69855977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 69865977a007Smrg eval $cacheid=yes 69875977a007Smrgelse 69885977a007Smrg eval $cacheid=no 69895977a007Smrgfi 69905977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 69915977a007Smrg conftest$ac_exeext conftest.$ac_ext 69925977a007Smrgfi 69935977a007Smrg 69945977a007Smrg 69955977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69965977a007Smrg 69975977a007Smrg eval supported=\$$cacheid 69985977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69995977a007Smrg$as_echo "$supported" >&6; } 70005977a007Smrg if test "$supported" = "yes" ; then 70015977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 70025977a007Smrg found="yes" 70035977a007Smrg fi 70045977a007Smrg fi 70055977a007Smrg 70065977a007Smrg 70075977a007Smrg 70085977a007Smrg 70095977a007Smrg 70105977a007Smrg 70115977a007Smrg 70125977a007Smrg 70135977a007Smrg 70145977a007Smrg 70155977a007Smrg 70165977a007Smrg 70175977a007Smrg 70185977a007Smrg 70195977a007Smrg 70205977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 70215977a007Smrg 70225977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70235977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70245977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70255977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70265977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 70275977a007Smrg $as_echo_n "(cached) " >&6 70285977a007Smrgelse 70295977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70305977a007Smrg/* end confdefs.h. */ 70315977a007Smrgint i; 70325977a007Smrg_ACEOF 70335977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 70345977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70355977a007Smrgelse 70365977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 70375977a007Smrgfi 70385977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70395977a007Smrgfi 70405977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70415977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 70425977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 70435977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70445977a007Smrgfi 70455977a007Smrg 70465977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70475977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70485977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70495977a007Smrg fi 70505977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70515977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70525977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70535977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 70545977a007Smrg $as_echo_n "(cached) " >&6 70555977a007Smrgelse 70565977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70575977a007Smrg/* end confdefs.h. */ 70585977a007Smrgint i; 70595977a007Smrg_ACEOF 70605977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 70615977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70625977a007Smrgelse 70635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 70645977a007Smrgfi 70655977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70665977a007Smrgfi 70675977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70685977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70695977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 70705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70715977a007Smrgfi 70725977a007Smrg 70735977a007Smrgfound="no" 70745977a007Smrg 70755977a007Smrg if test $found = "no" ; then 70768a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70785977a007Smrg fi 70795977a007Smrg 70808a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 70815977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70825977a007Smrg fi 70835977a007Smrg 70845977a007Smrg CFLAGS="$CFLAGS -Werror=nonnull" 70855977a007Smrg 70865977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 70875977a007Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 70888a355152Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 70895977a007Smrg if eval \${$cacheid+:} false; then : 70905977a007Smrg $as_echo_n "(cached) " >&6 70915977a007Smrgelse 70925977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70935977a007Smrg/* end confdefs.h. */ 70945977a007Smrgint i; 70955977a007Smrgint 70965977a007Smrgmain () 70975977a007Smrg{ 70985977a007Smrg 70995977a007Smrg ; 71005977a007Smrg return 0; 71015977a007Smrg} 71025977a007Smrg_ACEOF 71035977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 71045977a007Smrg eval $cacheid=yes 71055977a007Smrgelse 71065977a007Smrg eval $cacheid=no 71075977a007Smrgfi 71085977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 71095977a007Smrg conftest$ac_exeext conftest.$ac_ext 71105977a007Smrgfi 71115977a007Smrg 71125977a007Smrg 71135977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71145977a007Smrg 71155977a007Smrg eval supported=\$$cacheid 71165977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71175977a007Smrg$as_echo "$supported" >&6; } 71185977a007Smrg if test "$supported" = "yes" ; then 71195977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 71205977a007Smrg found="yes" 71215977a007Smrg fi 71225977a007Smrg fi 71235977a007Smrg 71245977a007Smrg 71255977a007Smrg 71265977a007Smrg 71275977a007Smrg 71285977a007Smrg 71295977a007Smrg 71305977a007Smrg 71315977a007Smrg 71325977a007Smrg 71335977a007Smrg 71345977a007Smrg 71355977a007Smrg 71365977a007Smrg 71375977a007Smrg 71385977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 71395977a007Smrg 71405977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 71415977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71425977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71435977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71445977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 71455977a007Smrg $as_echo_n "(cached) " >&6 71465977a007Smrgelse 71475977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71485977a007Smrg/* end confdefs.h. */ 71495977a007Smrgint i; 71505977a007Smrg_ACEOF 71515977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 71525977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71535977a007Smrgelse 71545977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 71555977a007Smrgfi 71565977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71575977a007Smrgfi 71585977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71595977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71605977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71615977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71625977a007Smrgfi 71635977a007Smrg 71645977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71655977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71665977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71675977a007Smrg fi 71685977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71695977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71705977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71715977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71725977a007Smrg $as_echo_n "(cached) " >&6 71735977a007Smrgelse 71745977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71755977a007Smrg/* end confdefs.h. */ 71765977a007Smrgint i; 71775977a007Smrg_ACEOF 71785977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 71795977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71805977a007Smrgelse 71815977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71825977a007Smrgfi 71835977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71845977a007Smrgfi 71855977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71865977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71875977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71885977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71895977a007Smrgfi 71905977a007Smrg 71915977a007Smrgfound="no" 71925977a007Smrg 71935977a007Smrg if test $found = "no" ; then 71948a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71965977a007Smrg fi 71975977a007Smrg 71988a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 71995977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72005977a007Smrg fi 72015977a007Smrg 72025977a007Smrg CFLAGS="$CFLAGS -Werror=init-self" 72035977a007Smrg 72045977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 72055977a007Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 72068a355152Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 72075977a007Smrg if eval \${$cacheid+:} false; then : 72085977a007Smrg $as_echo_n "(cached) " >&6 72095977a007Smrgelse 72105977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72115977a007Smrg/* end confdefs.h. */ 72125977a007Smrgint i; 72135977a007Smrgint 72145977a007Smrgmain () 72155977a007Smrg{ 72165977a007Smrg 72175977a007Smrg ; 72185977a007Smrg return 0; 72195977a007Smrg} 72205977a007Smrg_ACEOF 72215977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 72225977a007Smrg eval $cacheid=yes 72235977a007Smrgelse 72245977a007Smrg eval $cacheid=no 72255977a007Smrgfi 72265977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 72275977a007Smrg conftest$ac_exeext conftest.$ac_ext 72285977a007Smrgfi 72295977a007Smrg 72305977a007Smrg 72315977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72325977a007Smrg 72335977a007Smrg eval supported=\$$cacheid 72345977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72355977a007Smrg$as_echo "$supported" >&6; } 72365977a007Smrg if test "$supported" = "yes" ; then 72375977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 72385977a007Smrg found="yes" 72395977a007Smrg fi 72405977a007Smrg fi 72415977a007Smrg 72425977a007Smrg 72435977a007Smrg 72445977a007Smrg 72455977a007Smrg 72465977a007Smrg 72475977a007Smrg 72485977a007Smrg 72495977a007Smrg 72505977a007Smrg 72515977a007Smrg 72525977a007Smrg 72535977a007Smrg 72545977a007Smrg 72555977a007Smrg 72565977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 72575977a007Smrg 72585977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72595977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72605977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72615977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72625977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72635977a007Smrg $as_echo_n "(cached) " >&6 72645977a007Smrgelse 72655977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72665977a007Smrg/* end confdefs.h. */ 72675977a007Smrgint i; 72685977a007Smrg_ACEOF 72695977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 72705977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72715977a007Smrgelse 72725977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 72735977a007Smrgfi 72745977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72755977a007Smrgfi 72765977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72775977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72785977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72795977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72805977a007Smrgfi 72815977a007Smrg 72825977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72835977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72845977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72855977a007Smrg fi 72865977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72875977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72885977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72895977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72905977a007Smrg $as_echo_n "(cached) " >&6 72915977a007Smrgelse 72925977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72935977a007Smrg/* end confdefs.h. */ 72945977a007Smrgint i; 72955977a007Smrg_ACEOF 72965977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 72975977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 72985977a007Smrgelse 72995977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 73005977a007Smrgfi 73015977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73025977a007Smrgfi 73035977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73045977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73055977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 73065977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73075977a007Smrgfi 73085977a007Smrg 73095977a007Smrgfound="no" 73105977a007Smrg 73115977a007Smrg if test $found = "no" ; then 73128a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73135977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73145977a007Smrg fi 73155977a007Smrg 73168a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 73175977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73185977a007Smrg fi 73195977a007Smrg 73205977a007Smrg CFLAGS="$CFLAGS -Werror=main" 73215977a007Smrg 73225977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 73235977a007Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 73248a355152Smrg cacheid=xorg_cv_cc_flag__Werror_main 73255977a007Smrg if eval \${$cacheid+:} false; then : 73265977a007Smrg $as_echo_n "(cached) " >&6 73275977a007Smrgelse 73285977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73295977a007Smrg/* end confdefs.h. */ 73305977a007Smrgint i; 73315977a007Smrgint 73325977a007Smrgmain () 73335977a007Smrg{ 73345977a007Smrg 73355977a007Smrg ; 73365977a007Smrg return 0; 73375977a007Smrg} 73385977a007Smrg_ACEOF 73395977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 73405977a007Smrg eval $cacheid=yes 73415977a007Smrgelse 73425977a007Smrg eval $cacheid=no 73435977a007Smrgfi 73445977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 73455977a007Smrg conftest$ac_exeext conftest.$ac_ext 73465977a007Smrgfi 73475977a007Smrg 73485977a007Smrg 73495977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73505977a007Smrg 73515977a007Smrg eval supported=\$$cacheid 73525977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73535977a007Smrg$as_echo "$supported" >&6; } 73545977a007Smrg if test "$supported" = "yes" ; then 73555977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 73565977a007Smrg found="yes" 73575977a007Smrg fi 73585977a007Smrg fi 73595977a007Smrg 73605977a007Smrg 73615977a007Smrg 73625977a007Smrg 73635977a007Smrg 73645977a007Smrg 73655977a007Smrg 73665977a007Smrg 73675977a007Smrg 73685977a007Smrg 73695977a007Smrg 73705977a007Smrg 73715977a007Smrg 73725977a007Smrg 73735977a007Smrg 73745977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73755977a007Smrg 73765977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73785977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73795977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73805977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73815977a007Smrg $as_echo_n "(cached) " >&6 73825977a007Smrgelse 73835977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73845977a007Smrg/* end confdefs.h. */ 73855977a007Smrgint i; 73865977a007Smrg_ACEOF 73875977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 73885977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73895977a007Smrgelse 73905977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 73915977a007Smrgfi 73925977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73935977a007Smrgfi 73945977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73955977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73965977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73975977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73985977a007Smrgfi 73995977a007Smrg 74005977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74015977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74035977a007Smrg fi 74045977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74055977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74065977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74075977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 74085977a007Smrg $as_echo_n "(cached) " >&6 74095977a007Smrgelse 74105977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74115977a007Smrg/* end confdefs.h. */ 74125977a007Smrgint i; 74135977a007Smrg_ACEOF 74145977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 74155977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74165977a007Smrgelse 74175977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 74185977a007Smrgfi 74195977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74205977a007Smrgfi 74215977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74225977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74235977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74245977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74255977a007Smrgfi 74265977a007Smrg 74275977a007Smrgfound="no" 74285977a007Smrg 74295977a007Smrg if test $found = "no" ; then 74308a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74315977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74325977a007Smrg fi 74335977a007Smrg 74348a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 74355977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74365977a007Smrg fi 74375977a007Smrg 74385977a007Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 74395977a007Smrg 74405977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 74415977a007Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 74428a355152Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 74435977a007Smrg if eval \${$cacheid+:} false; then : 74445977a007Smrg $as_echo_n "(cached) " >&6 74455977a007Smrgelse 74465977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74475977a007Smrg/* end confdefs.h. */ 74485977a007Smrgint i; 74495977a007Smrgint 74505977a007Smrgmain () 74515977a007Smrg{ 74525977a007Smrg 74535977a007Smrg ; 74545977a007Smrg return 0; 74555977a007Smrg} 74565977a007Smrg_ACEOF 74575977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 74585977a007Smrg eval $cacheid=yes 74595977a007Smrgelse 74605977a007Smrg eval $cacheid=no 74615977a007Smrgfi 74625977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 74635977a007Smrg conftest$ac_exeext conftest.$ac_ext 74645977a007Smrgfi 74655977a007Smrg 74665977a007Smrg 74675977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74685977a007Smrg 74695977a007Smrg eval supported=\$$cacheid 74705977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74715977a007Smrg$as_echo "$supported" >&6; } 74725977a007Smrg if test "$supported" = "yes" ; then 74735977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 74745977a007Smrg found="yes" 74755977a007Smrg fi 74765977a007Smrg fi 74775977a007Smrg 74785977a007Smrg 74795977a007Smrg 74805977a007Smrg 74815977a007Smrg 74825977a007Smrg 74835977a007Smrg 74845977a007Smrg 74855977a007Smrg 74865977a007Smrg 74875977a007Smrg 74885977a007Smrg 74895977a007Smrg 74905977a007Smrg 74915977a007Smrg 74925977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74935977a007Smrg 74945977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74965977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74975977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74985977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 74995977a007Smrg $as_echo_n "(cached) " >&6 75005977a007Smrgelse 75015977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75025977a007Smrg/* end confdefs.h. */ 75035977a007Smrgint i; 75045977a007Smrg_ACEOF 75055977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 75065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75075977a007Smrgelse 75085977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 75095977a007Smrgfi 75105977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75115977a007Smrgfi 75125977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75135977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75145977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75165977a007Smrgfi 75175977a007Smrg 75185977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75195977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75215977a007Smrg fi 75225977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75235977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75245977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75255977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75265977a007Smrg $as_echo_n "(cached) " >&6 75275977a007Smrgelse 75285977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75295977a007Smrg/* end confdefs.h. */ 75305977a007Smrgint i; 75315977a007Smrg_ACEOF 75325977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 75335977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75345977a007Smrgelse 75355977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75365977a007Smrgfi 75375977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75385977a007Smrgfi 75395977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75405977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 75415977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 75425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75435977a007Smrgfi 75445977a007Smrg 75455977a007Smrgfound="no" 75465977a007Smrg 75475977a007Smrg if test $found = "no" ; then 75488a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75495977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75505977a007Smrg fi 75515977a007Smrg 75528a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 75535977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75545977a007Smrg fi 75555977a007Smrg 75565977a007Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 75575977a007Smrg 75585977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 75595977a007Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 75608a355152Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 75615977a007Smrg if eval \${$cacheid+:} false; then : 75625977a007Smrg $as_echo_n "(cached) " >&6 75635977a007Smrgelse 75645977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75655977a007Smrg/* end confdefs.h. */ 75665977a007Smrgint i; 75675977a007Smrgint 75685977a007Smrgmain () 75695977a007Smrg{ 75705977a007Smrg 75715977a007Smrg ; 75725977a007Smrg return 0; 75735977a007Smrg} 75745977a007Smrg_ACEOF 75755977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 75765977a007Smrg eval $cacheid=yes 75775977a007Smrgelse 75785977a007Smrg eval $cacheid=no 75795977a007Smrgfi 75805977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 75815977a007Smrg conftest$ac_exeext conftest.$ac_ext 75825977a007Smrgfi 75835977a007Smrg 75845977a007Smrg 75855977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75865977a007Smrg 75875977a007Smrg eval supported=\$$cacheid 75885977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75895977a007Smrg$as_echo "$supported" >&6; } 75905977a007Smrg if test "$supported" = "yes" ; then 75915977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 75925977a007Smrg found="yes" 75935977a007Smrg fi 75945977a007Smrg fi 75955977a007Smrg 75965977a007Smrg 75975977a007Smrg 75985977a007Smrg 75995977a007Smrg 76005977a007Smrg 76015977a007Smrg 76025977a007Smrg 76035977a007Smrg 76045977a007Smrg 76055977a007Smrg 76065977a007Smrg 76075977a007Smrg 76085977a007Smrg 76095977a007Smrg 76105977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76115977a007Smrg 76125977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76135977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76145977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76155977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76165977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76175977a007Smrg $as_echo_n "(cached) " >&6 76185977a007Smrgelse 76195977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76205977a007Smrg/* end confdefs.h. */ 76215977a007Smrgint i; 76225977a007Smrg_ACEOF 76235977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 76245977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76255977a007Smrgelse 76265977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 76275977a007Smrgfi 76285977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76295977a007Smrgfi 76305977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76315977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76325977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76335977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76345977a007Smrgfi 76355977a007Smrg 76365977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76375977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76385977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76395977a007Smrg fi 76405977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76415977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76425977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76435977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 76445977a007Smrg $as_echo_n "(cached) " >&6 76455977a007Smrgelse 76465977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76475977a007Smrg/* end confdefs.h. */ 76485977a007Smrgint i; 76495977a007Smrg_ACEOF 76505977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 76515977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 76525977a007Smrgelse 76535977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 76545977a007Smrgfi 76555977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76565977a007Smrgfi 76575977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76585977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76595977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76605977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76615977a007Smrgfi 76625977a007Smrg 76635977a007Smrgfound="no" 76645977a007Smrg 76655977a007Smrg if test $found = "no" ; then 76668a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76675977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76685977a007Smrg fi 76695977a007Smrg 76708a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 76715977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76725977a007Smrg fi 76735977a007Smrg 76745977a007Smrg CFLAGS="$CFLAGS -Werror=return-type" 76755977a007Smrg 76765977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 76775977a007Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 76788a355152Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 76795977a007Smrg if eval \${$cacheid+:} false; then : 76805977a007Smrg $as_echo_n "(cached) " >&6 76815977a007Smrgelse 76825977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76835977a007Smrg/* end confdefs.h. */ 76845977a007Smrgint i; 76855977a007Smrgint 76865977a007Smrgmain () 76875977a007Smrg{ 76885977a007Smrg 76895977a007Smrg ; 76905977a007Smrg return 0; 76915977a007Smrg} 76925977a007Smrg_ACEOF 76935977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 76945977a007Smrg eval $cacheid=yes 76955977a007Smrgelse 76965977a007Smrg eval $cacheid=no 76975977a007Smrgfi 76985977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 76995977a007Smrg conftest$ac_exeext conftest.$ac_ext 77005977a007Smrgfi 77015977a007Smrg 77025977a007Smrg 77035977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77045977a007Smrg 77055977a007Smrg eval supported=\$$cacheid 77065977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77075977a007Smrg$as_echo "$supported" >&6; } 77085977a007Smrg if test "$supported" = "yes" ; then 77095977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 77105977a007Smrg found="yes" 77115977a007Smrg fi 77125977a007Smrg fi 77135977a007Smrg 77145977a007Smrg if test $found = "no" ; then 77158a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77165977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77175977a007Smrg fi 77185977a007Smrg 77198a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 77205977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77215977a007Smrg fi 77225977a007Smrg 77235977a007Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 77245977a007Smrg 77255977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 77265977a007Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 77278a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 77285977a007Smrg if eval \${$cacheid+:} false; then : 77295977a007Smrg $as_echo_n "(cached) " >&6 77305977a007Smrgelse 77315977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77325977a007Smrg/* end confdefs.h. */ 77335977a007Smrgint i; 77345977a007Smrgint 77355977a007Smrgmain () 77365977a007Smrg{ 77375977a007Smrg 77385977a007Smrg ; 77395977a007Smrg return 0; 77405977a007Smrg} 77415977a007Smrg_ACEOF 77425977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 77435977a007Smrg eval $cacheid=yes 77445977a007Smrgelse 77455977a007Smrg eval $cacheid=no 77465977a007Smrgfi 77475977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 77485977a007Smrg conftest$ac_exeext conftest.$ac_ext 77495977a007Smrgfi 77505977a007Smrg 77515977a007Smrg 77525977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77535977a007Smrg 77545977a007Smrg eval supported=\$$cacheid 77555977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77565977a007Smrg$as_echo "$supported" >&6; } 77575977a007Smrg if test "$supported" = "yes" ; then 77585977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 77595977a007Smrg found="yes" 77605977a007Smrg fi 77615977a007Smrg fi 77625977a007Smrg 77635977a007Smrg 77645977a007Smrg 77655977a007Smrg 77665977a007Smrg 77675977a007Smrg 77685977a007Smrg 77695977a007Smrg 77705977a007Smrg 77715977a007Smrg 77725977a007Smrg 77735977a007Smrg 77745977a007Smrg 77755977a007Smrg 77765977a007Smrg 77775977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 77785977a007Smrg 77795977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77805977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77815977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77825977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77835977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 77845977a007Smrg $as_echo_n "(cached) " >&6 77855977a007Smrgelse 77865977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77875977a007Smrg/* end confdefs.h. */ 77885977a007Smrgint i; 77895977a007Smrg_ACEOF 77905977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 77915977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77925977a007Smrgelse 77935977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 77945977a007Smrgfi 77955977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77965977a007Smrgfi 77975977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77985977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 77995977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78005977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78015977a007Smrgfi 78025977a007Smrg 78035977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78045977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78055977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78065977a007Smrg fi 78075977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78085977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78095977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78105977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 78115977a007Smrg $as_echo_n "(cached) " >&6 78125977a007Smrgelse 78135977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78145977a007Smrg/* end confdefs.h. */ 78155977a007Smrgint i; 78165977a007Smrg_ACEOF 78175977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 78185977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78195977a007Smrgelse 78205977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78215977a007Smrgfi 78225977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78235977a007Smrgfi 78245977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78255977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78265977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 78275977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78285977a007Smrgfi 78295977a007Smrg 78305977a007Smrgfound="no" 78315977a007Smrg 78325977a007Smrg if test $found = "no" ; then 78338a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78345977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78355977a007Smrg fi 78365977a007Smrg 78378a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 78385977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78395977a007Smrg fi 78405977a007Smrg 78415977a007Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 78425977a007Smrg 78435977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 78445977a007Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 78458a355152Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 78465977a007Smrg if eval \${$cacheid+:} false; then : 78475977a007Smrg $as_echo_n "(cached) " >&6 78485977a007Smrgelse 78495977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78505977a007Smrg/* end confdefs.h. */ 78515977a007Smrgint i; 78525977a007Smrgint 78535977a007Smrgmain () 78545977a007Smrg{ 78555977a007Smrg 78565977a007Smrg ; 78575977a007Smrg return 0; 78585977a007Smrg} 78595977a007Smrg_ACEOF 78605977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 78615977a007Smrg eval $cacheid=yes 78625977a007Smrgelse 78635977a007Smrg eval $cacheid=no 78645977a007Smrgfi 78655977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 78665977a007Smrg conftest$ac_exeext conftest.$ac_ext 78675977a007Smrgfi 78685977a007Smrg 78695977a007Smrg 78705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78715977a007Smrg 78725977a007Smrg eval supported=\$$cacheid 78735977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78745977a007Smrg$as_echo "$supported" >&6; } 78755977a007Smrg if test "$supported" = "yes" ; then 78765977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 78775977a007Smrg found="yes" 78785977a007Smrg fi 78795977a007Smrg fi 78805977a007Smrg 78815977a007Smrg 78825977a007Smrg 78835977a007Smrg 78845977a007Smrg 78855977a007Smrg 78865977a007Smrg 78875977a007Smrg 78885977a007Smrg 78895977a007Smrg 78905977a007Smrg 78915977a007Smrg 78925977a007Smrg 78935977a007Smrg 78945977a007Smrg 78955977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 78965977a007Smrg 78975977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 78985977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78995977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79005977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79015977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 79025977a007Smrg $as_echo_n "(cached) " >&6 79035977a007Smrgelse 79045977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79055977a007Smrg/* end confdefs.h. */ 79065977a007Smrgint i; 79075977a007Smrg_ACEOF 79085977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 79095977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79105977a007Smrgelse 79115977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 79125977a007Smrgfi 79135977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79145977a007Smrgfi 79155977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79165977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79175977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79195977a007Smrgfi 79205977a007Smrg 79215977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79225977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79235977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79245977a007Smrg fi 79255977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79265977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79275977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79285977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 79295977a007Smrg $as_echo_n "(cached) " >&6 79305977a007Smrgelse 79315977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79325977a007Smrg/* end confdefs.h. */ 79335977a007Smrgint i; 79345977a007Smrg_ACEOF 79355977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 79365977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79375977a007Smrgelse 79385977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 79395977a007Smrgfi 79405977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79415977a007Smrgfi 79425977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79435977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 79445977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79455977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79465977a007Smrgfi 79475977a007Smrg 79485977a007Smrgfound="no" 79495977a007Smrg 79505977a007Smrg if test $found = "no" ; then 79518a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79525977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79535977a007Smrg fi 79545977a007Smrg 79558a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 79565977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79575977a007Smrg fi 79585977a007Smrg 79595977a007Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 79605977a007Smrg 79615977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 79625977a007Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 79638a355152Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 79645977a007Smrg if eval \${$cacheid+:} false; then : 79655977a007Smrg $as_echo_n "(cached) " >&6 79665977a007Smrgelse 79675977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79685977a007Smrg/* end confdefs.h. */ 79695977a007Smrgint i; 79705977a007Smrgint 79715977a007Smrgmain () 79725977a007Smrg{ 79735977a007Smrg 79745977a007Smrg ; 79755977a007Smrg return 0; 79765977a007Smrg} 79775977a007Smrg_ACEOF 79785977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 79795977a007Smrg eval $cacheid=yes 79805977a007Smrgelse 79815977a007Smrg eval $cacheid=no 79825977a007Smrgfi 79835977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 79845977a007Smrg conftest$ac_exeext conftest.$ac_ext 79855977a007Smrgfi 79865977a007Smrg 79875977a007Smrg 79885977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79895977a007Smrg 79905977a007Smrg eval supported=\$$cacheid 79915977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79925977a007Smrg$as_echo "$supported" >&6; } 79935977a007Smrg if test "$supported" = "yes" ; then 79945977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 79955977a007Smrg found="yes" 79965977a007Smrg fi 79975977a007Smrg fi 79985977a007Smrg 79995977a007Smrg 80005977a007Smrg 80015977a007Smrg 80025977a007Smrg 80035977a007Smrg 80045977a007Smrg 80055977a007Smrg 80065977a007Smrg 80075977a007Smrg 80085977a007Smrg 80095977a007Smrg 80105977a007Smrg 80115977a007Smrg 80125977a007Smrg 80135977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 80145977a007Smrg 80155977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80165977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80175977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80185977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80195977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 80205977a007Smrg $as_echo_n "(cached) " >&6 80215977a007Smrgelse 80225977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80235977a007Smrg/* end confdefs.h. */ 80245977a007Smrgint i; 80255977a007Smrg_ACEOF 80265977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 80275977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 80285977a007Smrgelse 80295977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 80305977a007Smrgfi 80315977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80325977a007Smrgfi 80335977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80345977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80355977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 80365977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80375977a007Smrgfi 80385977a007Smrg 80395977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 80405977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80415977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80425977a007Smrg fi 80435977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80445977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80455977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80465977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 80475977a007Smrg $as_echo_n "(cached) " >&6 80485977a007Smrgelse 80495977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80505977a007Smrg/* end confdefs.h. */ 80515977a007Smrgint i; 80525977a007Smrg_ACEOF 80535977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 80545977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 80555977a007Smrgelse 80565977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 80575977a007Smrgfi 80585977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80595977a007Smrgfi 80605977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80615977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80625977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80635977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80645977a007Smrgfi 80655977a007Smrg 80665977a007Smrgfound="no" 80675977a007Smrg 80685977a007Smrg if test $found = "no" ; then 80698a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80705977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80715977a007Smrg fi 80725977a007Smrg 80738a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 80745977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80755977a007Smrg fi 80765977a007Smrg 80775977a007Smrg CFLAGS="$CFLAGS -Werror=write-strings" 80785977a007Smrg 80795977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 80805977a007Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 80818a355152Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 80825977a007Smrg if eval \${$cacheid+:} false; then : 80835977a007Smrg $as_echo_n "(cached) " >&6 80845977a007Smrgelse 80855977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80865977a007Smrg/* end confdefs.h. */ 80875977a007Smrgint i; 80885977a007Smrgint 80895977a007Smrgmain () 80905977a007Smrg{ 80915977a007Smrg 80925977a007Smrg ; 80935977a007Smrg return 0; 80945977a007Smrg} 80955977a007Smrg_ACEOF 80965977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 80975977a007Smrg eval $cacheid=yes 80985977a007Smrgelse 80995977a007Smrg eval $cacheid=no 81005977a007Smrgfi 81015977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 81025977a007Smrg conftest$ac_exeext conftest.$ac_ext 81035977a007Smrgfi 81045977a007Smrg 81055977a007Smrg 81065977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81075977a007Smrg 81085977a007Smrg eval supported=\$$cacheid 81095977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81105977a007Smrg$as_echo "$supported" >&6; } 81115977a007Smrg if test "$supported" = "yes" ; then 81125977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 81135977a007Smrg found="yes" 81145977a007Smrg fi 81155977a007Smrg fi 81165977a007Smrg 81175977a007Smrg 81185977a007Smrg 81195977a007Smrg 81205977a007Smrg 81215977a007Smrg 81225977a007Smrg 81235977a007Smrg 81245977a007Smrg 81255977a007Smrg 81265977a007Smrg 81275977a007Smrg 81285977a007Smrg 81295977a007Smrg 81305977a007Smrg 81315977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 81325977a007Smrg 81335977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81345977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81355977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81365977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81375977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 81385977a007Smrg $as_echo_n "(cached) " >&6 81395977a007Smrgelse 81405977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81415977a007Smrg/* end confdefs.h. */ 81425977a007Smrgint i; 81435977a007Smrg_ACEOF 81445977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 81455977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81465977a007Smrgelse 81475977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 81485977a007Smrgfi 81495977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81505977a007Smrgfi 81515977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81525977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81535977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81545977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81555977a007Smrgfi 81565977a007Smrg 81575977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81585977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81595977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81605977a007Smrg fi 81615977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81625977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81635977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81645977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81655977a007Smrg $as_echo_n "(cached) " >&6 81665977a007Smrgelse 81675977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81685977a007Smrg/* end confdefs.h. */ 81695977a007Smrgint i; 81705977a007Smrg_ACEOF 81715977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 81725977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81735977a007Smrgelse 81745977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81755977a007Smrgfi 81765977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81775977a007Smrgfi 81785977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81795977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81805977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81815977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81825977a007Smrgfi 81835977a007Smrg 81845977a007Smrgfound="no" 81855977a007Smrg 81865977a007Smrg if test $found = "no" ; then 81878a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81885977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81895977a007Smrg fi 81905977a007Smrg 81918a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 81925977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81935977a007Smrg fi 81945977a007Smrg 81955977a007Smrg CFLAGS="$CFLAGS -Werror=address" 81965977a007Smrg 81975977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 81985977a007Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 81998a355152Smrg cacheid=xorg_cv_cc_flag__Werror_address 82005977a007Smrg if eval \${$cacheid+:} false; then : 82015977a007Smrg $as_echo_n "(cached) " >&6 82025977a007Smrgelse 82035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82045977a007Smrg/* end confdefs.h. */ 82055977a007Smrgint i; 82065977a007Smrgint 82075977a007Smrgmain () 82085977a007Smrg{ 82095977a007Smrg 82105977a007Smrg ; 82115977a007Smrg return 0; 82125977a007Smrg} 82135977a007Smrg_ACEOF 82145977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 82155977a007Smrg eval $cacheid=yes 82165977a007Smrgelse 82175977a007Smrg eval $cacheid=no 82185977a007Smrgfi 82195977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 82205977a007Smrg conftest$ac_exeext conftest.$ac_ext 82215977a007Smrgfi 82225977a007Smrg 82235977a007Smrg 82245977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82255977a007Smrg 82265977a007Smrg eval supported=\$$cacheid 82275977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82285977a007Smrg$as_echo "$supported" >&6; } 82295977a007Smrg if test "$supported" = "yes" ; then 82305977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 82315977a007Smrg found="yes" 82325977a007Smrg fi 82335977a007Smrg fi 82345977a007Smrg 82355977a007Smrg 82365977a007Smrg 82375977a007Smrg 82385977a007Smrg 82395977a007Smrg 82405977a007Smrg 82415977a007Smrg 82425977a007Smrg 82435977a007Smrg 82445977a007Smrg 82455977a007Smrg 82465977a007Smrg 82475977a007Smrg 82485977a007Smrg 82495977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 82505977a007Smrg 82515977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 82525977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82535977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82545977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82555977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 82565977a007Smrg $as_echo_n "(cached) " >&6 82575977a007Smrgelse 82585977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82595977a007Smrg/* end confdefs.h. */ 82605977a007Smrgint i; 82615977a007Smrg_ACEOF 82625977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 82635977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82645977a007Smrgelse 82655977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 82665977a007Smrgfi 82675977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82685977a007Smrgfi 82695977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82705977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82715977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 82725977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82735977a007Smrgfi 82745977a007Smrg 82755977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82765977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82785977a007Smrg fi 82795977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82805977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82815977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82825977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 82835977a007Smrg $as_echo_n "(cached) " >&6 82845977a007Smrgelse 82855977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82865977a007Smrg/* end confdefs.h. */ 82875977a007Smrgint i; 82885977a007Smrg_ACEOF 82895977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 82905977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 82915977a007Smrgelse 82925977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 82935977a007Smrgfi 82945977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82955977a007Smrgfi 82965977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82975977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 82985977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 82995977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83005977a007Smrgfi 83015977a007Smrg 83025977a007Smrgfound="no" 83035977a007Smrg 83045977a007Smrg if test $found = "no" ; then 83058a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83065977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83075977a007Smrg fi 83085977a007Smrg 83098a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 83105977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83115977a007Smrg fi 83125977a007Smrg 83135977a007Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 83145977a007Smrg 83155977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 83165977a007Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 83178a355152Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 83185977a007Smrg if eval \${$cacheid+:} false; then : 83195977a007Smrg $as_echo_n "(cached) " >&6 83205977a007Smrgelse 83215977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83225977a007Smrg/* end confdefs.h. */ 83235977a007Smrgint i; 83245977a007Smrgint 83255977a007Smrgmain () 83265977a007Smrg{ 83275977a007Smrg 83285977a007Smrg ; 83295977a007Smrg return 0; 83305977a007Smrg} 83315977a007Smrg_ACEOF 83325977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 83335977a007Smrg eval $cacheid=yes 83345977a007Smrgelse 83355977a007Smrg eval $cacheid=no 83365977a007Smrgfi 83375977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 83385977a007Smrg conftest$ac_exeext conftest.$ac_ext 83395977a007Smrgfi 83405977a007Smrg 83415977a007Smrg 83425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83435977a007Smrg 83445977a007Smrg eval supported=\$$cacheid 83455977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83465977a007Smrg$as_echo "$supported" >&6; } 83475977a007Smrg if test "$supported" = "yes" ; then 83485977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 83495977a007Smrg found="yes" 83505977a007Smrg fi 83515977a007Smrg fi 83525977a007Smrg 83535977a007Smrg if test $found = "no" ; then 83548a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83555977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83565977a007Smrg fi 83575977a007Smrg 83588a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 83595977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83605977a007Smrg fi 83615977a007Smrg 83625977a007Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 83635977a007Smrg 83645977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 83655977a007Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 83668a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 83675977a007Smrg if eval \${$cacheid+:} false; then : 83685977a007Smrg $as_echo_n "(cached) " >&6 83695977a007Smrgelse 83705977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83715977a007Smrg/* end confdefs.h. */ 83725977a007Smrgint i; 83735977a007Smrgint 83745977a007Smrgmain () 83755977a007Smrg{ 83765977a007Smrg 83775977a007Smrg ; 83785977a007Smrg return 0; 83795977a007Smrg} 83805977a007Smrg_ACEOF 83815977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 83825977a007Smrg eval $cacheid=yes 83835977a007Smrgelse 83845977a007Smrg eval $cacheid=no 83855977a007Smrgfi 83865977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 83875977a007Smrg conftest$ac_exeext conftest.$ac_ext 83885977a007Smrgfi 83895977a007Smrg 83905977a007Smrg 83915977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83925977a007Smrg 83935977a007Smrg eval supported=\$$cacheid 83945977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83955977a007Smrg$as_echo "$supported" >&6; } 83965977a007Smrg if test "$supported" = "yes" ; then 83975977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 83985977a007Smrg found="yes" 83995977a007Smrg fi 84005977a007Smrg fi 84015977a007Smrg 84025977a007Smrg 84035977a007Smrg 84045977a007Smrg 84055977a007Smrg 84065977a007Smrg 84075977a007Smrg 84085977a007Smrg 84095977a007Smrg 84105977a007Smrg 84115977a007Smrg 84125977a007Smrg 84135977a007Smrg 84145977a007Smrg 84155977a007Smrg 84165977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84175977a007Smrg 84185977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84195977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84205977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84215977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84225977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84235977a007Smrg $as_echo_n "(cached) " >&6 84245977a007Smrgelse 84255977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84265977a007Smrg/* end confdefs.h. */ 84275977a007Smrgint i; 84285977a007Smrg_ACEOF 84295977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 84305977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84315977a007Smrgelse 84325977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 84335977a007Smrgfi 84345977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84355977a007Smrgfi 84365977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84375977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84385977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 84395977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84405977a007Smrgfi 84415977a007Smrg 84425977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84435977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84445977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84455977a007Smrg fi 84465977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84475977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84485977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84495977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 84505977a007Smrg $as_echo_n "(cached) " >&6 84515977a007Smrgelse 84525977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84535977a007Smrg/* end confdefs.h. */ 84545977a007Smrgint i; 84555977a007Smrg_ACEOF 84565977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 84575977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84585977a007Smrgelse 84595977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 84605977a007Smrgfi 84615977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84625977a007Smrgfi 84635977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84645977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84655977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 84665977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84675977a007Smrgfi 84685977a007Smrg 84695977a007Smrgfound="no" 84705977a007Smrg 84715977a007Smrg if test $found = "no" ; then 84728a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84735977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84745977a007Smrg fi 84755977a007Smrg 84768a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 84775977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84785977a007Smrg fi 84795977a007Smrg 84805977a007Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 84815977a007Smrg 84825977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 84835977a007Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 84848a355152Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 84855977a007Smrg if eval \${$cacheid+:} false; then : 84865977a007Smrg $as_echo_n "(cached) " >&6 84875977a007Smrgelse 84885977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84895977a007Smrg/* end confdefs.h. */ 84905977a007Smrgint i; 84915977a007Smrgint 84925977a007Smrgmain () 84935977a007Smrg{ 84945977a007Smrg 84955977a007Smrg ; 84965977a007Smrg return 0; 84975977a007Smrg} 84985977a007Smrg_ACEOF 84995977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 85005977a007Smrg eval $cacheid=yes 85015977a007Smrgelse 85025977a007Smrg eval $cacheid=no 85035977a007Smrgfi 85045977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 85055977a007Smrg conftest$ac_exeext conftest.$ac_ext 85065977a007Smrgfi 85075977a007Smrg 85085977a007Smrg 85095977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85105977a007Smrg 85115977a007Smrg eval supported=\$$cacheid 85125977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85135977a007Smrg$as_echo "$supported" >&6; } 85145977a007Smrg if test "$supported" = "yes" ; then 85155977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 85165977a007Smrg found="yes" 85175977a007Smrg fi 85185977a007Smrg fi 85195977a007Smrg 85205977a007Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 85215977a007Smrgelse 85225977a007Smrg{ $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 85235977a007Smrg$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;} 85245977a007Smrg 85255977a007Smrg 85265977a007Smrg 85275977a007Smrg 85285977a007Smrg 85295977a007Smrg 85305977a007Smrg 85315977a007Smrg 85325977a007Smrg 85335977a007Smrg 85345977a007Smrg 85355977a007Smrg 85365977a007Smrg 85375977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 85385977a007Smrg 85395977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 85405977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85415977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85425977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85435977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 85445977a007Smrg $as_echo_n "(cached) " >&6 85455977a007Smrgelse 85465977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85475977a007Smrg/* end confdefs.h. */ 85485977a007Smrgint i; 85495977a007Smrg_ACEOF 85505977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 85515977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85525977a007Smrgelse 85535977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 85545977a007Smrgfi 85555977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85565977a007Smrgfi 85575977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85585977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85595977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85605977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85615977a007Smrgfi 85625977a007Smrg 85635977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85645977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85655977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85665977a007Smrg fi 85675977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85685977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85695977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85705977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85715977a007Smrg $as_echo_n "(cached) " >&6 85725977a007Smrgelse 85735977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85745977a007Smrg/* end confdefs.h. */ 85755977a007Smrgint i; 85765977a007Smrg_ACEOF 85775977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 85785977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85795977a007Smrgelse 85805977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85815977a007Smrgfi 85825977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85835977a007Smrgfi 85845977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85855977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85865977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85875977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85885977a007Smrgfi 85895977a007Smrg 85905977a007Smrgfound="no" 85915977a007Smrg 85925977a007Smrg if test $found = "no" ; then 85938a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85945977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85955977a007Smrg fi 85965977a007Smrg 85978a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 85985977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85995977a007Smrg fi 86005977a007Smrg 86015977a007Smrg CFLAGS="$CFLAGS -Wimplicit" 86025977a007Smrg 86035977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 86045977a007Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 86055977a007Smrg cacheid=xorg_cv_cc_flag__Wimplicit 86065977a007Smrg if eval \${$cacheid+:} false; then : 86075977a007Smrg $as_echo_n "(cached) " >&6 86085977a007Smrgelse 86095977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86105977a007Smrg/* end confdefs.h. */ 86115977a007Smrgint i; 86125977a007Smrgint 86135977a007Smrgmain () 86145977a007Smrg{ 86155977a007Smrg 86165977a007Smrg ; 86175977a007Smrg return 0; 86185977a007Smrg} 86195977a007Smrg_ACEOF 86205977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 86215977a007Smrg eval $cacheid=yes 86225977a007Smrgelse 86235977a007Smrg eval $cacheid=no 86245977a007Smrgfi 86255977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 86265977a007Smrg conftest$ac_exeext conftest.$ac_ext 86275977a007Smrgfi 86285977a007Smrg 86295977a007Smrg 86305977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86315977a007Smrg 86325977a007Smrg eval supported=\$$cacheid 86335977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86345977a007Smrg$as_echo "$supported" >&6; } 86355977a007Smrg if test "$supported" = "yes" ; then 86365977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 86375977a007Smrg found="yes" 86385977a007Smrg fi 86395977a007Smrg fi 86405977a007Smrg 86415977a007Smrg 86425977a007Smrg 86435977a007Smrg 86445977a007Smrg 86455977a007Smrg 86465977a007Smrg 86475977a007Smrg 86485977a007Smrg 86495977a007Smrg 86505977a007Smrg 86515977a007Smrg 86525977a007Smrg 86535977a007Smrg 86545977a007Smrg 86555977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 86565977a007Smrg 86575977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 86585977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86595977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86605977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86615977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 86625977a007Smrg $as_echo_n "(cached) " >&6 86635977a007Smrgelse 86645977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86655977a007Smrg/* end confdefs.h. */ 86665977a007Smrgint i; 86675977a007Smrg_ACEOF 86685977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 86695977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86705977a007Smrgelse 86715977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 86725977a007Smrgfi 86735977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86745977a007Smrgfi 86755977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86765977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86775977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86785977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86795977a007Smrgfi 86805977a007Smrg 86815977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86825977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86835977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86845977a007Smrg fi 86855977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86865977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86875977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86885977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 86895977a007Smrg $as_echo_n "(cached) " >&6 86905977a007Smrgelse 86915977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86925977a007Smrg/* end confdefs.h. */ 86935977a007Smrgint i; 86945977a007Smrg_ACEOF 86955977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 86965977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86975977a007Smrgelse 86985977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 86995977a007Smrgfi 87005977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87015977a007Smrgfi 87025977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87035977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87045977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 87055977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87065977a007Smrgfi 87075977a007Smrg 87085977a007Smrgfound="no" 87095977a007Smrg 87105977a007Smrg if test $found = "no" ; then 87118a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87125977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87135977a007Smrg fi 87145977a007Smrg 87158a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 87165977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87175977a007Smrg fi 87185977a007Smrg 87195977a007Smrg CFLAGS="$CFLAGS -Wnonnull" 87205977a007Smrg 87215977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 87225977a007Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 87235977a007Smrg cacheid=xorg_cv_cc_flag__Wnonnull 87245977a007Smrg if eval \${$cacheid+:} false; then : 87255977a007Smrg $as_echo_n "(cached) " >&6 87265977a007Smrgelse 87275977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87285977a007Smrg/* end confdefs.h. */ 87295977a007Smrgint i; 87305977a007Smrgint 87315977a007Smrgmain () 87325977a007Smrg{ 87335977a007Smrg 87345977a007Smrg ; 87355977a007Smrg return 0; 87365977a007Smrg} 87375977a007Smrg_ACEOF 87385977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 87395977a007Smrg eval $cacheid=yes 87405977a007Smrgelse 87415977a007Smrg eval $cacheid=no 87425977a007Smrgfi 87435977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 87445977a007Smrg conftest$ac_exeext conftest.$ac_ext 87455977a007Smrgfi 87465977a007Smrg 87475977a007Smrg 87485977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87495977a007Smrg 87505977a007Smrg eval supported=\$$cacheid 87515977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87525977a007Smrg$as_echo "$supported" >&6; } 87535977a007Smrg if test "$supported" = "yes" ; then 87545977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 87555977a007Smrg found="yes" 87565977a007Smrg fi 87575977a007Smrg fi 87585977a007Smrg 87595977a007Smrg 87605977a007Smrg 87615977a007Smrg 87625977a007Smrg 87635977a007Smrg 87645977a007Smrg 87655977a007Smrg 87665977a007Smrg 87675977a007Smrg 87685977a007Smrg 87695977a007Smrg 87705977a007Smrg 87715977a007Smrg 87725977a007Smrg 87735977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87745977a007Smrg 87755977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87765977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87775977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87785977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87795977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 87805977a007Smrg $as_echo_n "(cached) " >&6 87815977a007Smrgelse 87825977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87835977a007Smrg/* end confdefs.h. */ 87845977a007Smrgint i; 87855977a007Smrg_ACEOF 87865977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 87875977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87885977a007Smrgelse 87895977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 87905977a007Smrgfi 87915977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87925977a007Smrgfi 87935977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87945977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87955977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87965977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87975977a007Smrgfi 87985977a007Smrg 87995977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88005977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88015977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88025977a007Smrg fi 88035977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88045977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88055977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88065977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 88075977a007Smrg $as_echo_n "(cached) " >&6 88085977a007Smrgelse 88095977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88105977a007Smrg/* end confdefs.h. */ 88115977a007Smrgint i; 88125977a007Smrg_ACEOF 88135977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 88145977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88155977a007Smrgelse 88165977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88175977a007Smrgfi 88185977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88195977a007Smrgfi 88205977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88215977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88225977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88235977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88245977a007Smrgfi 88255977a007Smrg 88265977a007Smrgfound="no" 88275977a007Smrg 88285977a007Smrg if test $found = "no" ; then 88298a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88305977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88315977a007Smrg fi 88325977a007Smrg 88338a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 88345977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88355977a007Smrg fi 88365977a007Smrg 88375977a007Smrg CFLAGS="$CFLAGS -Winit-self" 88385977a007Smrg 88395977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 88405977a007Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 88415977a007Smrg cacheid=xorg_cv_cc_flag__Winit_self 88425977a007Smrg if eval \${$cacheid+:} false; then : 88435977a007Smrg $as_echo_n "(cached) " >&6 88445977a007Smrgelse 88455977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88465977a007Smrg/* end confdefs.h. */ 88475977a007Smrgint i; 88485977a007Smrgint 88495977a007Smrgmain () 88505977a007Smrg{ 88515977a007Smrg 88525977a007Smrg ; 88535977a007Smrg return 0; 88545977a007Smrg} 88555977a007Smrg_ACEOF 88565977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 88575977a007Smrg eval $cacheid=yes 88585977a007Smrgelse 88595977a007Smrg eval $cacheid=no 88605977a007Smrgfi 88615977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 88625977a007Smrg conftest$ac_exeext conftest.$ac_ext 88635977a007Smrgfi 88645977a007Smrg 88655977a007Smrg 88665977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88675977a007Smrg 88685977a007Smrg eval supported=\$$cacheid 88695977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88705977a007Smrg$as_echo "$supported" >&6; } 88715977a007Smrg if test "$supported" = "yes" ; then 88725977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 88735977a007Smrg found="yes" 88745977a007Smrg fi 88755977a007Smrg fi 88765977a007Smrg 88775977a007Smrg 88785977a007Smrg 88795977a007Smrg 88805977a007Smrg 88815977a007Smrg 88825977a007Smrg 88835977a007Smrg 88845977a007Smrg 88855977a007Smrg 88865977a007Smrg 88875977a007Smrg 88885977a007Smrg 88895977a007Smrg 88905977a007Smrg 88915977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88925977a007Smrg 88935977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88945977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88955977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88965977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88975977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 88985977a007Smrg $as_echo_n "(cached) " >&6 88995977a007Smrgelse 89005977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89015977a007Smrg/* end confdefs.h. */ 89025977a007Smrgint i; 89035977a007Smrg_ACEOF 89045977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 89055977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89065977a007Smrgelse 89075977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 89085977a007Smrgfi 89095977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89105977a007Smrgfi 89115977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89125977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89135977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89145977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89155977a007Smrgfi 89165977a007Smrg 89175977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89185977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89195977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89205977a007Smrg fi 89215977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89225977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89235977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89245977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89255977a007Smrg $as_echo_n "(cached) " >&6 89265977a007Smrgelse 89275977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89285977a007Smrg/* end confdefs.h. */ 89295977a007Smrgint i; 89305977a007Smrg_ACEOF 89315977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 89325977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89335977a007Smrgelse 89345977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 89355977a007Smrgfi 89365977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89375977a007Smrgfi 89385977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89395977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 89405977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 89415977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89425977a007Smrgfi 89435977a007Smrg 89445977a007Smrgfound="no" 89455977a007Smrg 89465977a007Smrg if test $found = "no" ; then 89478a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89485977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89495977a007Smrg fi 89505977a007Smrg 89518a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 89525977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89535977a007Smrg fi 89545977a007Smrg 89555977a007Smrg CFLAGS="$CFLAGS -Wmain" 89565977a007Smrg 89575977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 89585977a007Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 89595977a007Smrg cacheid=xorg_cv_cc_flag__Wmain 89605977a007Smrg if eval \${$cacheid+:} false; then : 89615977a007Smrg $as_echo_n "(cached) " >&6 89625977a007Smrgelse 89635977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89645977a007Smrg/* end confdefs.h. */ 89655977a007Smrgint i; 89665977a007Smrgint 89675977a007Smrgmain () 89685977a007Smrg{ 89695977a007Smrg 89705977a007Smrg ; 89715977a007Smrg return 0; 89725977a007Smrg} 89735977a007Smrg_ACEOF 89745977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 89755977a007Smrg eval $cacheid=yes 89765977a007Smrgelse 89775977a007Smrg eval $cacheid=no 89785977a007Smrgfi 89795977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 89805977a007Smrg conftest$ac_exeext conftest.$ac_ext 89815977a007Smrgfi 89825977a007Smrg 89835977a007Smrg 89845977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89855977a007Smrg 89865977a007Smrg eval supported=\$$cacheid 89875977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89885977a007Smrg$as_echo "$supported" >&6; } 89895977a007Smrg if test "$supported" = "yes" ; then 89905977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 89915977a007Smrg found="yes" 89925977a007Smrg fi 89935977a007Smrg fi 89945977a007Smrg 89955977a007Smrg 89965977a007Smrg 89975977a007Smrg 89985977a007Smrg 89995977a007Smrg 90005977a007Smrg 90015977a007Smrg 90025977a007Smrg 90035977a007Smrg 90045977a007Smrg 90055977a007Smrg 90065977a007Smrg 90075977a007Smrg 90085977a007Smrg 90095977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 90105977a007Smrg 90115977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90125977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90135977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90145977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90155977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90165977a007Smrg $as_echo_n "(cached) " >&6 90175977a007Smrgelse 90185977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90195977a007Smrg/* end confdefs.h. */ 90205977a007Smrgint i; 90215977a007Smrg_ACEOF 90225977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 90235977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90245977a007Smrgelse 90255977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 90265977a007Smrgfi 90275977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90285977a007Smrgfi 90295977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90305977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90315977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 90325977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90335977a007Smrgfi 90345977a007Smrg 90355977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 90365977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90375977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90385977a007Smrg fi 90395977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90405977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90415977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90425977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 90435977a007Smrg $as_echo_n "(cached) " >&6 90445977a007Smrgelse 90455977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90465977a007Smrg/* end confdefs.h. */ 90475977a007Smrgint i; 90485977a007Smrg_ACEOF 90495977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 90505977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90515977a007Smrgelse 90525977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 90535977a007Smrgfi 90545977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90555977a007Smrgfi 90565977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90575977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90585977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90595977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90605977a007Smrgfi 90615977a007Smrg 90625977a007Smrgfound="no" 90635977a007Smrg 90645977a007Smrg if test $found = "no" ; then 90658a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90665977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90675977a007Smrg fi 90685977a007Smrg 90698a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 90705977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90715977a007Smrg fi 90725977a007Smrg 90735977a007Smrg CFLAGS="$CFLAGS -Wmissing-braces" 90745977a007Smrg 90755977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 90765977a007Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 90775977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 90785977a007Smrg if eval \${$cacheid+:} false; then : 90795977a007Smrg $as_echo_n "(cached) " >&6 90805977a007Smrgelse 90815977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90825977a007Smrg/* end confdefs.h. */ 90835977a007Smrgint i; 90845977a007Smrgint 90855977a007Smrgmain () 90865977a007Smrg{ 90875977a007Smrg 90885977a007Smrg ; 90895977a007Smrg return 0; 90905977a007Smrg} 90915977a007Smrg_ACEOF 90925977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 90935977a007Smrg eval $cacheid=yes 90945977a007Smrgelse 90955977a007Smrg eval $cacheid=no 90965977a007Smrgfi 90975977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 90985977a007Smrg conftest$ac_exeext conftest.$ac_ext 90995977a007Smrgfi 91005977a007Smrg 91015977a007Smrg 91025977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91035977a007Smrg 91045977a007Smrg eval supported=\$$cacheid 91055977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91065977a007Smrg$as_echo "$supported" >&6; } 91075977a007Smrg if test "$supported" = "yes" ; then 91085977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 91095977a007Smrg found="yes" 91105977a007Smrg fi 91115977a007Smrg fi 91125977a007Smrg 91135977a007Smrg 91145977a007Smrg 91155977a007Smrg 91165977a007Smrg 91175977a007Smrg 91185977a007Smrg 91195977a007Smrg 91205977a007Smrg 91215977a007Smrg 91225977a007Smrg 91235977a007Smrg 91245977a007Smrg 91255977a007Smrg 91265977a007Smrg 91275977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 91285977a007Smrg 91295977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 91305977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91315977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91325977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91335977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 91345977a007Smrg $as_echo_n "(cached) " >&6 91355977a007Smrgelse 91365977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91375977a007Smrg/* end confdefs.h. */ 91385977a007Smrgint i; 91395977a007Smrg_ACEOF 91405977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 91415977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 91425977a007Smrgelse 91435977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 91445977a007Smrgfi 91455977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91465977a007Smrgfi 91475977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91485977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91495977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91505977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91515977a007Smrgfi 91525977a007Smrg 91535977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91545977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91555977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91565977a007Smrg fi 91575977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91585977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91595977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91605977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91615977a007Smrg $as_echo_n "(cached) " >&6 91625977a007Smrgelse 91635977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91645977a007Smrg/* end confdefs.h. */ 91655977a007Smrgint i; 91665977a007Smrg_ACEOF 91675977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 91685977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91695977a007Smrgelse 91705977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91715977a007Smrgfi 91725977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91735977a007Smrgfi 91745977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91755977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91765977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91775977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91785977a007Smrgfi 91795977a007Smrg 91805977a007Smrgfound="no" 91815977a007Smrg 91825977a007Smrg if test $found = "no" ; then 91838a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91845977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91855977a007Smrg fi 91865977a007Smrg 91878a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 91885977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91895977a007Smrg fi 91905977a007Smrg 91915977a007Smrg CFLAGS="$CFLAGS -Wsequence-point" 91925977a007Smrg 91935977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 91945977a007Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 91955977a007Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 91965977a007Smrg if eval \${$cacheid+:} false; then : 91975977a007Smrg $as_echo_n "(cached) " >&6 91985977a007Smrgelse 91995977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92005977a007Smrg/* end confdefs.h. */ 92015977a007Smrgint i; 92025977a007Smrgint 92035977a007Smrgmain () 92045977a007Smrg{ 92055977a007Smrg 92065977a007Smrg ; 92075977a007Smrg return 0; 92085977a007Smrg} 92095977a007Smrg_ACEOF 92105977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 92115977a007Smrg eval $cacheid=yes 92125977a007Smrgelse 92135977a007Smrg eval $cacheid=no 92145977a007Smrgfi 92155977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 92165977a007Smrg conftest$ac_exeext conftest.$ac_ext 92175977a007Smrgfi 92185977a007Smrg 92195977a007Smrg 92205977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92215977a007Smrg 92225977a007Smrg eval supported=\$$cacheid 92235977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92245977a007Smrg$as_echo "$supported" >&6; } 92255977a007Smrg if test "$supported" = "yes" ; then 92265977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 92275977a007Smrg found="yes" 92285977a007Smrg fi 92295977a007Smrg fi 92305977a007Smrg 92315977a007Smrg 92325977a007Smrg 92335977a007Smrg 92345977a007Smrg 92355977a007Smrg 92365977a007Smrg 92375977a007Smrg 92385977a007Smrg 92395977a007Smrg 92405977a007Smrg 92415977a007Smrg 92425977a007Smrg 92435977a007Smrg 92445977a007Smrg 92455977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 92465977a007Smrg 92475977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92485977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92495977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92505977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92515977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 92525977a007Smrg $as_echo_n "(cached) " >&6 92535977a007Smrgelse 92545977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92555977a007Smrg/* end confdefs.h. */ 92565977a007Smrgint i; 92575977a007Smrg_ACEOF 92585977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 92595977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92605977a007Smrgelse 92615977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 92625977a007Smrgfi 92635977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92645977a007Smrgfi 92655977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92665977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92675977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92685977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92695977a007Smrgfi 92705977a007Smrg 92715977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92725977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92735977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92745977a007Smrg fi 92755977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92765977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92775977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92785977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 92795977a007Smrg $as_echo_n "(cached) " >&6 92805977a007Smrgelse 92815977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92825977a007Smrg/* end confdefs.h. */ 92835977a007Smrgint i; 92845977a007Smrg_ACEOF 92855977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 92865977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92875977a007Smrgelse 92885977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 92895977a007Smrgfi 92905977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92915977a007Smrgfi 92925977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92935977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92945977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92955977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92965977a007Smrgfi 92975977a007Smrg 92985977a007Smrgfound="no" 92995977a007Smrg 93005977a007Smrg if test $found = "no" ; then 93018a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93035977a007Smrg fi 93045977a007Smrg 93058a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 93065977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93075977a007Smrg fi 93085977a007Smrg 93095977a007Smrg CFLAGS="$CFLAGS -Wreturn-type" 93105977a007Smrg 93115977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 93125977a007Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 93135977a007Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 93145977a007Smrg if eval \${$cacheid+:} false; then : 93155977a007Smrg $as_echo_n "(cached) " >&6 93165977a007Smrgelse 93175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93185977a007Smrg/* end confdefs.h. */ 93195977a007Smrgint i; 93205977a007Smrgint 93215977a007Smrgmain () 93225977a007Smrg{ 93235977a007Smrg 93245977a007Smrg ; 93255977a007Smrg return 0; 93265977a007Smrg} 93275977a007Smrg_ACEOF 93285977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 93295977a007Smrg eval $cacheid=yes 93305977a007Smrgelse 93315977a007Smrg eval $cacheid=no 93325977a007Smrgfi 93335977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 93345977a007Smrg conftest$ac_exeext conftest.$ac_ext 93355977a007Smrgfi 93365977a007Smrg 93375977a007Smrg 93385977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93395977a007Smrg 93405977a007Smrg eval supported=\$$cacheid 93415977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93425977a007Smrg$as_echo "$supported" >&6; } 93435977a007Smrg if test "$supported" = "yes" ; then 93445977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 93455977a007Smrg found="yes" 93465977a007Smrg fi 93475977a007Smrg fi 93485977a007Smrg 93495977a007Smrg 93505977a007Smrg 93515977a007Smrg 93525977a007Smrg 93535977a007Smrg 93545977a007Smrg 93555977a007Smrg 93565977a007Smrg 93575977a007Smrg 93585977a007Smrg 93595977a007Smrg 93605977a007Smrg 93615977a007Smrg 93625977a007Smrg 93635977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93645977a007Smrg 93655977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93665977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93675977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93685977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93695977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93705977a007Smrg $as_echo_n "(cached) " >&6 93715977a007Smrgelse 93725977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93735977a007Smrg/* end confdefs.h. */ 93745977a007Smrgint i; 93755977a007Smrg_ACEOF 93765977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 93775977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93785977a007Smrgelse 93795977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 93805977a007Smrgfi 93815977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93825977a007Smrgfi 93835977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93845977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93855977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93865977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93875977a007Smrgfi 93885977a007Smrg 93895977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93905977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93915977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93925977a007Smrg fi 93935977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93945977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93955977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93965977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 93975977a007Smrg $as_echo_n "(cached) " >&6 93985977a007Smrgelse 93995977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94005977a007Smrg/* end confdefs.h. */ 94015977a007Smrgint i; 94025977a007Smrg_ACEOF 94035977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 94045977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94055977a007Smrgelse 94065977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 94075977a007Smrgfi 94085977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94095977a007Smrgfi 94105977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94115977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94125977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 94135977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94145977a007Smrgfi 94155977a007Smrg 94165977a007Smrgfound="no" 94175977a007Smrg 94185977a007Smrg if test $found = "no" ; then 94198a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94215977a007Smrg fi 94225977a007Smrg 94238a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 94245977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94255977a007Smrg fi 94265977a007Smrg 94275977a007Smrg CFLAGS="$CFLAGS -Wtrigraphs" 94285977a007Smrg 94295977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 94305977a007Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 94315977a007Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 94325977a007Smrg if eval \${$cacheid+:} false; then : 94335977a007Smrg $as_echo_n "(cached) " >&6 94345977a007Smrgelse 94355977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94365977a007Smrg/* end confdefs.h. */ 94375977a007Smrgint i; 94385977a007Smrgint 94395977a007Smrgmain () 94405977a007Smrg{ 94415977a007Smrg 94425977a007Smrg ; 94435977a007Smrg return 0; 94445977a007Smrg} 94455977a007Smrg_ACEOF 94465977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 94475977a007Smrg eval $cacheid=yes 94485977a007Smrgelse 94495977a007Smrg eval $cacheid=no 94505977a007Smrgfi 94515977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 94525977a007Smrg conftest$ac_exeext conftest.$ac_ext 94535977a007Smrgfi 94545977a007Smrg 94555977a007Smrg 94565977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94575977a007Smrg 94585977a007Smrg eval supported=\$$cacheid 94595977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94605977a007Smrg$as_echo "$supported" >&6; } 94615977a007Smrg if test "$supported" = "yes" ; then 94625977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 94635977a007Smrg found="yes" 94645977a007Smrg fi 94655977a007Smrg fi 94665977a007Smrg 94675977a007Smrg 94685977a007Smrg 94695977a007Smrg 94705977a007Smrg 94715977a007Smrg 94725977a007Smrg 94735977a007Smrg 94745977a007Smrg 94755977a007Smrg 94765977a007Smrg 94775977a007Smrg 94785977a007Smrg 94795977a007Smrg 94805977a007Smrg 94815977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 94825977a007Smrg 94835977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94845977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94855977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94865977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94875977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94885977a007Smrg $as_echo_n "(cached) " >&6 94895977a007Smrgelse 94905977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94915977a007Smrg/* end confdefs.h. */ 94925977a007Smrgint i; 94935977a007Smrg_ACEOF 94945977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 94955977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94965977a007Smrgelse 94975977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 94985977a007Smrgfi 94995977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95005977a007Smrgfi 95015977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95025977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95035977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95045977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95055977a007Smrgfi 95065977a007Smrg 95075977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95085977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95095977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95105977a007Smrg fi 95115977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95125977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95135977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95145977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 95155977a007Smrg $as_echo_n "(cached) " >&6 95165977a007Smrgelse 95175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95185977a007Smrg/* end confdefs.h. */ 95195977a007Smrgint i; 95205977a007Smrg_ACEOF 95215977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 95225977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95235977a007Smrgelse 95245977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95255977a007Smrgfi 95265977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95275977a007Smrgfi 95285977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95295977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95305977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95315977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95325977a007Smrgfi 95335977a007Smrg 95345977a007Smrgfound="no" 95355977a007Smrg 95365977a007Smrg if test $found = "no" ; then 95378a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95385977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95395977a007Smrg fi 95405977a007Smrg 95418a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 95425977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95435977a007Smrg fi 95445977a007Smrg 95455977a007Smrg CFLAGS="$CFLAGS -Warray-bounds" 95465977a007Smrg 95475977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 95485977a007Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 95495977a007Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 95505977a007Smrg if eval \${$cacheid+:} false; then : 95515977a007Smrg $as_echo_n "(cached) " >&6 95525977a007Smrgelse 95535977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95545977a007Smrg/* end confdefs.h. */ 95555977a007Smrgint i; 95565977a007Smrgint 95575977a007Smrgmain () 95585977a007Smrg{ 95595977a007Smrg 95605977a007Smrg ; 95615977a007Smrg return 0; 95625977a007Smrg} 95635977a007Smrg_ACEOF 95645977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 95655977a007Smrg eval $cacheid=yes 95665977a007Smrgelse 95675977a007Smrg eval $cacheid=no 95685977a007Smrgfi 95695977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 95705977a007Smrg conftest$ac_exeext conftest.$ac_ext 95715977a007Smrgfi 95725977a007Smrg 95735977a007Smrg 95745977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95755977a007Smrg 95765977a007Smrg eval supported=\$$cacheid 95775977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95785977a007Smrg$as_echo "$supported" >&6; } 95795977a007Smrg if test "$supported" = "yes" ; then 95805977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 95815977a007Smrg found="yes" 95825977a007Smrg fi 95835977a007Smrg fi 95845977a007Smrg 95855977a007Smrg 95865977a007Smrg 95875977a007Smrg 95885977a007Smrg 95895977a007Smrg 95905977a007Smrg 95915977a007Smrg 95925977a007Smrg 95935977a007Smrg 95945977a007Smrg 95955977a007Smrg 95965977a007Smrg 95975977a007Smrg 95985977a007Smrg 95995977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 96005977a007Smrg 96015977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 96025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96035977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96045977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96055977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 96065977a007Smrg $as_echo_n "(cached) " >&6 96075977a007Smrgelse 96085977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96095977a007Smrg/* end confdefs.h. */ 96105977a007Smrgint i; 96115977a007Smrg_ACEOF 96125977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 96135977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96145977a007Smrgelse 96155977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 96165977a007Smrgfi 96175977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96185977a007Smrgfi 96195977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96205977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96215977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96225977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96235977a007Smrgfi 96245977a007Smrg 96255977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96265977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96275977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96285977a007Smrg fi 96295977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96305977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96315977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96325977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 96335977a007Smrg $as_echo_n "(cached) " >&6 96345977a007Smrgelse 96355977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96365977a007Smrg/* end confdefs.h. */ 96375977a007Smrgint i; 96385977a007Smrg_ACEOF 96395977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 96405977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 96415977a007Smrgelse 96425977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 96435977a007Smrgfi 96445977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96455977a007Smrgfi 96465977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96475977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96485977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96495977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96505977a007Smrgfi 96515977a007Smrg 96525977a007Smrgfound="no" 96535977a007Smrg 96545977a007Smrg if test $found = "no" ; then 96558a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96565977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96575977a007Smrg fi 96585977a007Smrg 96598a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 96605977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96615977a007Smrg fi 96625977a007Smrg 96635977a007Smrg CFLAGS="$CFLAGS -Wwrite-strings" 96645977a007Smrg 96655977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 96665977a007Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 96675977a007Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 96685977a007Smrg if eval \${$cacheid+:} false; then : 96695977a007Smrg $as_echo_n "(cached) " >&6 96705977a007Smrgelse 96715977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96725977a007Smrg/* end confdefs.h. */ 96735977a007Smrgint i; 96745977a007Smrgint 96755977a007Smrgmain () 96765977a007Smrg{ 96775977a007Smrg 96785977a007Smrg ; 96795977a007Smrg return 0; 96805977a007Smrg} 96815977a007Smrg_ACEOF 96825977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 96835977a007Smrg eval $cacheid=yes 96845977a007Smrgelse 96855977a007Smrg eval $cacheid=no 96865977a007Smrgfi 96875977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 96885977a007Smrg conftest$ac_exeext conftest.$ac_ext 96895977a007Smrgfi 96905977a007Smrg 96915977a007Smrg 96925977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96935977a007Smrg 96945977a007Smrg eval supported=\$$cacheid 96955977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96965977a007Smrg$as_echo "$supported" >&6; } 96975977a007Smrg if test "$supported" = "yes" ; then 96985977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 96995977a007Smrg found="yes" 97005977a007Smrg fi 97015977a007Smrg fi 97025977a007Smrg 97035977a007Smrg 97045977a007Smrg 97055977a007Smrg 97065977a007Smrg 97075977a007Smrg 97085977a007Smrg 97095977a007Smrg 97105977a007Smrg 97115977a007Smrg 97125977a007Smrg 97135977a007Smrg 97145977a007Smrg 97155977a007Smrg 97165977a007Smrg 97175977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 97185977a007Smrg 97195977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97215977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97225977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97235977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 97245977a007Smrg $as_echo_n "(cached) " >&6 97255977a007Smrgelse 97265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97275977a007Smrg/* end confdefs.h. */ 97285977a007Smrgint i; 97295977a007Smrg_ACEOF 97305977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 97315977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97325977a007Smrgelse 97335977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 97345977a007Smrgfi 97355977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97365977a007Smrgfi 97375977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97385977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97395977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 97405977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97415977a007Smrgfi 97425977a007Smrg 97435977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97445977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97455977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97465977a007Smrg fi 97475977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97485977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97495977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97505977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 97515977a007Smrg $as_echo_n "(cached) " >&6 97525977a007Smrgelse 97535977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97545977a007Smrg/* end confdefs.h. */ 97555977a007Smrgint i; 97565977a007Smrg_ACEOF 97575977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 97585977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97595977a007Smrgelse 97605977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 97615977a007Smrgfi 97625977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97635977a007Smrgfi 97645977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97655977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97665977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97675977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97685977a007Smrgfi 97695977a007Smrg 97705977a007Smrgfound="no" 97715977a007Smrg 97725977a007Smrg if test $found = "no" ; then 97738a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97745977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97755977a007Smrg fi 97765977a007Smrg 97778a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 97785977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97795977a007Smrg fi 97805977a007Smrg 97815977a007Smrg CFLAGS="$CFLAGS -Waddress" 97825977a007Smrg 97835977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 97845977a007Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 97855977a007Smrg cacheid=xorg_cv_cc_flag__Waddress 97865977a007Smrg if eval \${$cacheid+:} false; then : 97875977a007Smrg $as_echo_n "(cached) " >&6 97885977a007Smrgelse 97895977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97905977a007Smrg/* end confdefs.h. */ 97915977a007Smrgint i; 97925977a007Smrgint 97935977a007Smrgmain () 97945977a007Smrg{ 97955977a007Smrg 97965977a007Smrg ; 97975977a007Smrg return 0; 97985977a007Smrg} 97995977a007Smrg_ACEOF 98005977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 98015977a007Smrg eval $cacheid=yes 98025977a007Smrgelse 98035977a007Smrg eval $cacheid=no 98045977a007Smrgfi 98055977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 98065977a007Smrg conftest$ac_exeext conftest.$ac_ext 98075977a007Smrgfi 98085977a007Smrg 98095977a007Smrg 98105977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98115977a007Smrg 98125977a007Smrg eval supported=\$$cacheid 98135977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98145977a007Smrg$as_echo "$supported" >&6; } 98155977a007Smrg if test "$supported" = "yes" ; then 98165977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 98175977a007Smrg found="yes" 98185977a007Smrg fi 98195977a007Smrg fi 98205977a007Smrg 98215977a007Smrg 98225977a007Smrg 98235977a007Smrg 98245977a007Smrg 98255977a007Smrg 98265977a007Smrg 98275977a007Smrg 98285977a007Smrg 98295977a007Smrg 98305977a007Smrg 98315977a007Smrg 98325977a007Smrg 98335977a007Smrg 98345977a007Smrg 98355977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98365977a007Smrg 98375977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98385977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98395977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98405977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98415977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 98425977a007Smrg $as_echo_n "(cached) " >&6 98435977a007Smrgelse 98445977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98455977a007Smrg/* end confdefs.h. */ 98465977a007Smrgint i; 98475977a007Smrg_ACEOF 98485977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 98495977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98505977a007Smrgelse 98515977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 98525977a007Smrgfi 98535977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98545977a007Smrgfi 98555977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98565977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98575977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98585977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98595977a007Smrgfi 98605977a007Smrg 98615977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98625977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98635977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98645977a007Smrg fi 98655977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98665977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98675977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98685977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98695977a007Smrg $as_echo_n "(cached) " >&6 98705977a007Smrgelse 98715977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98725977a007Smrg/* end confdefs.h. */ 98735977a007Smrgint i; 98745977a007Smrg_ACEOF 98755977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 98765977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98775977a007Smrgelse 98785977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98795977a007Smrgfi 98805977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98815977a007Smrgfi 98825977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98835977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98845977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98855977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98865977a007Smrgfi 98875977a007Smrg 98885977a007Smrgfound="no" 98895977a007Smrg 98905977a007Smrg if test $found = "no" ; then 98918a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98925977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98935977a007Smrg fi 98945977a007Smrg 98958a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 98965977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98975977a007Smrg fi 98985977a007Smrg 98995977a007Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 99005977a007Smrg 99015977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 99025977a007Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 99035977a007Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 99045977a007Smrg if eval \${$cacheid+:} false; then : 99055977a007Smrg $as_echo_n "(cached) " >&6 99065977a007Smrgelse 99075977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99085977a007Smrg/* end confdefs.h. */ 99095977a007Smrgint i; 99105977a007Smrgint 99115977a007Smrgmain () 99125977a007Smrg{ 99135977a007Smrg 99145977a007Smrg ; 99155977a007Smrg return 0; 99165977a007Smrg} 99175977a007Smrg_ACEOF 99185977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 99195977a007Smrg eval $cacheid=yes 99205977a007Smrgelse 99215977a007Smrg eval $cacheid=no 99225977a007Smrgfi 99235977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 99245977a007Smrg conftest$ac_exeext conftest.$ac_ext 99255977a007Smrgfi 99265977a007Smrg 99275977a007Smrg 99285977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99295977a007Smrg 99305977a007Smrg eval supported=\$$cacheid 99315977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99325977a007Smrg$as_echo "$supported" >&6; } 99335977a007Smrg if test "$supported" = "yes" ; then 99345977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 99355977a007Smrg found="yes" 99365977a007Smrg fi 99375977a007Smrg fi 99385977a007Smrg 99395977a007Smrg 99405977a007Smrg 99415977a007Smrg 99425977a007Smrg 99435977a007Smrg 99445977a007Smrg 99455977a007Smrg 99465977a007Smrg 99475977a007Smrg 99485977a007Smrg 99495977a007Smrg 99505977a007Smrg 99515977a007Smrg 99525977a007Smrg 99535977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 99545977a007Smrg 99555977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 99565977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99575977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99585977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99595977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 99605977a007Smrg $as_echo_n "(cached) " >&6 99615977a007Smrgelse 99625977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99635977a007Smrg/* end confdefs.h. */ 99645977a007Smrgint i; 99655977a007Smrg_ACEOF 99665977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 99675977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 99685977a007Smrgelse 99695977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 99705977a007Smrgfi 99715977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99725977a007Smrgfi 99735977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99745977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99755977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99765977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99775977a007Smrgfi 99785977a007Smrg 99795977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99805977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99815977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99825977a007Smrg fi 99835977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99845977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99855977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99865977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 99875977a007Smrg $as_echo_n "(cached) " >&6 99885977a007Smrgelse 99895977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99905977a007Smrg/* end confdefs.h. */ 99915977a007Smrgint i; 99925977a007Smrg_ACEOF 99935977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 99945977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 99955977a007Smrgelse 99965977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 99975977a007Smrgfi 99985977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99995977a007Smrgfi 100005977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100015977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100025977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 100035977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100045977a007Smrgfi 100055977a007Smrg 100065977a007Smrgfound="no" 100075977a007Smrg 100085977a007Smrg if test $found = "no" ; then 100098a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100105977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100115977a007Smrg fi 100125977a007Smrg 100138a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 100145977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100155977a007Smrg fi 100165977a007Smrg 100175977a007Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 100185977a007Smrg 100195977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 100205977a007Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 100215977a007Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 100225977a007Smrg if eval \${$cacheid+:} false; then : 100235977a007Smrg $as_echo_n "(cached) " >&6 100245977a007Smrgelse 100255977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100265977a007Smrg/* end confdefs.h. */ 100275977a007Smrgint i; 100285977a007Smrgint 100295977a007Smrgmain () 100305977a007Smrg{ 100315977a007Smrg 100325977a007Smrg ; 100335977a007Smrg return 0; 100345977a007Smrg} 100355977a007Smrg_ACEOF 100365977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 100375977a007Smrg eval $cacheid=yes 100385977a007Smrgelse 100395977a007Smrg eval $cacheid=no 100405977a007Smrgfi 100415977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 100425977a007Smrg conftest$ac_exeext conftest.$ac_ext 100435977a007Smrgfi 100445977a007Smrg 100455977a007Smrg 100465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100475977a007Smrg 100485977a007Smrg eval supported=\$$cacheid 100495977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100505977a007Smrg$as_echo "$supported" >&6; } 100515977a007Smrg if test "$supported" = "yes" ; then 100525977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 100535977a007Smrg found="yes" 100545977a007Smrg fi 100555977a007Smrg fi 100565977a007Smrg 100575977a007Smrg 100585977a007Smrgfi 100595977a007Smrg 100605977a007Smrg 100615977a007Smrg 100625977a007Smrg 100635977a007Smrg 100645977a007Smrg 100655977a007Smrg 100665977a007Smrg CWARNFLAGS="$BASE_CFLAGS" 100675977a007Smrg if test "x$GCC" = xyes ; then 100685977a007Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 100695977a007Smrg fi 100705977a007Smrg 100715977a007Smrg 100725977a007Smrg 100735977a007Smrg 100745977a007Smrg 100755977a007Smrg 100765977a007Smrg 100775977a007Smrg 100785977a007Smrg# Check whether --enable-strict-compilation was given. 100795977a007Smrgif test "${enable_strict_compilation+set}" = set; then : 100805977a007Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 100815977a007Smrgelse 100825977a007Smrg STRICT_COMPILE=no 100835977a007Smrgfi 100845977a007Smrg 100855977a007Smrg 100865977a007Smrg 100875977a007Smrg 100885977a007Smrg 100895977a007Smrg 100905977a007SmrgSTRICT_CFLAGS="" 100915977a007Smrg 100925977a007Smrg 100935977a007Smrg 100945977a007Smrg 100955977a007Smrg 100965977a007Smrg 100975977a007Smrg 100985977a007Smrg 100995977a007Smrg 101005977a007Smrg 101015977a007Smrg 101025977a007Smrg 101035977a007Smrg 101045977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 101055977a007Smrg 101065977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101075977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101085977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101095977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101105977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 101115977a007Smrg $as_echo_n "(cached) " >&6 101125977a007Smrgelse 101135977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101145977a007Smrg/* end confdefs.h. */ 101155977a007Smrgint i; 101165977a007Smrg_ACEOF 101175977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 101185977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101195977a007Smrgelse 101205977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 101215977a007Smrgfi 101225977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101235977a007Smrgfi 101245977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101255977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101265977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101275977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101285977a007Smrgfi 101295977a007Smrg 101305977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101315977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101325977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101335977a007Smrg fi 101345977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101355977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101365977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101375977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 101385977a007Smrg $as_echo_n "(cached) " >&6 101395977a007Smrgelse 101405977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101415977a007Smrg/* end confdefs.h. */ 101425977a007Smrgint i; 101435977a007Smrg_ACEOF 101445977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 101455977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101465977a007Smrgelse 101475977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 101485977a007Smrgfi 101495977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101505977a007Smrgfi 101515977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101525977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101535977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101545977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101555977a007Smrgfi 101565977a007Smrg 101575977a007Smrgfound="no" 101585977a007Smrg 101595977a007Smrg if test $found = "no" ; then 101608a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101615977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101625977a007Smrg fi 101635977a007Smrg 101648a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 101655977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101665977a007Smrg fi 101675977a007Smrg 101685977a007Smrg CFLAGS="$CFLAGS -pedantic" 101695977a007Smrg 101705977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 101715977a007Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 101725977a007Smrg cacheid=xorg_cv_cc_flag__pedantic 101735977a007Smrg if eval \${$cacheid+:} false; then : 101745977a007Smrg $as_echo_n "(cached) " >&6 101755977a007Smrgelse 101765977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101775977a007Smrg/* end confdefs.h. */ 101785977a007Smrgint i; 101795977a007Smrgint 101805977a007Smrgmain () 101815977a007Smrg{ 101825977a007Smrg 101835977a007Smrg ; 101845977a007Smrg return 0; 101855977a007Smrg} 101865977a007Smrg_ACEOF 101875977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 101885977a007Smrg eval $cacheid=yes 101895977a007Smrgelse 101905977a007Smrg eval $cacheid=no 101915977a007Smrgfi 101925977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 101935977a007Smrg conftest$ac_exeext conftest.$ac_ext 101945977a007Smrgfi 101955977a007Smrg 101965977a007Smrg 101975977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101985977a007Smrg 101995977a007Smrg eval supported=\$$cacheid 102005977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102015977a007Smrg$as_echo "$supported" >&6; } 102025977a007Smrg if test "$supported" = "yes" ; then 102035977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 102045977a007Smrg found="yes" 102055977a007Smrg fi 102065977a007Smrg fi 102075977a007Smrg 102085977a007Smrg 102095977a007Smrg 102105977a007Smrg 102115977a007Smrg 102125977a007Smrg 102135977a007Smrg 102145977a007Smrg 102155977a007Smrg 102165977a007Smrg 102175977a007Smrg 102185977a007Smrg 102195977a007Smrg 102205977a007Smrg 102215977a007Smrg 102225977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 102235977a007Smrg 102245977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 102255977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102265977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102275977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102285977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 102295977a007Smrg $as_echo_n "(cached) " >&6 102305977a007Smrgelse 102315977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102325977a007Smrg/* end confdefs.h. */ 102335977a007Smrgint i; 102345977a007Smrg_ACEOF 102355977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 102365977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 102375977a007Smrgelse 102385977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 102395977a007Smrgfi 102405977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102415977a007Smrgfi 102425977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102435977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 102445977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 102455977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102465977a007Smrgfi 102475977a007Smrg 102485977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 102495977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102505977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102515977a007Smrg fi 102525977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102535977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102545977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102555977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 102565977a007Smrg $as_echo_n "(cached) " >&6 102575977a007Smrgelse 102585977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102595977a007Smrg/* end confdefs.h. */ 102605977a007Smrgint i; 102615977a007Smrg_ACEOF 102625977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 102635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 102645977a007Smrgelse 102655977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 102665977a007Smrgfi 102675977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102685977a007Smrgfi 102695977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102705977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 102715977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 102725977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102735977a007Smrgfi 102745977a007Smrg 102755977a007Smrgfound="no" 102765977a007Smrg 102775977a007Smrg if test $found = "no" ; then 102788a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102795977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102805977a007Smrg fi 102815977a007Smrg 102828a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 102835977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102845977a007Smrg fi 102855977a007Smrg 102865977a007Smrg CFLAGS="$CFLAGS -Werror" 102875977a007Smrg 102885977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 102895977a007Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 102905977a007Smrg cacheid=xorg_cv_cc_flag__Werror 102915977a007Smrg if eval \${$cacheid+:} false; then : 102925977a007Smrg $as_echo_n "(cached) " >&6 102935977a007Smrgelse 102945977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102955977a007Smrg/* end confdefs.h. */ 102965977a007Smrgint i; 102975977a007Smrgint 102985977a007Smrgmain () 102995977a007Smrg{ 103005977a007Smrg 103015977a007Smrg ; 103025977a007Smrg return 0; 103035977a007Smrg} 103045977a007Smrg_ACEOF 103055977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 103065977a007Smrg eval $cacheid=yes 103075977a007Smrgelse 103085977a007Smrg eval $cacheid=no 103095977a007Smrgfi 103105977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 103115977a007Smrg conftest$ac_exeext conftest.$ac_ext 103125977a007Smrgfi 103135977a007Smrg 103145977a007Smrg 103155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103165977a007Smrg 103175977a007Smrg eval supported=\$$cacheid 103185977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103195977a007Smrg$as_echo "$supported" >&6; } 103205977a007Smrg if test "$supported" = "yes" ; then 103215977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 103225977a007Smrg found="yes" 103235977a007Smrg fi 103245977a007Smrg fi 103255977a007Smrg 103265977a007Smrg if test $found = "no" ; then 103278a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103285977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103295977a007Smrg fi 103305977a007Smrg 103318a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 103325977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103335977a007Smrg fi 103345977a007Smrg 103355977a007Smrg CFLAGS="$CFLAGS -errwarn" 103365977a007Smrg 103375977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 103385977a007Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 103395977a007Smrg cacheid=xorg_cv_cc_flag__errwarn 103405977a007Smrg if eval \${$cacheid+:} false; then : 103415977a007Smrg $as_echo_n "(cached) " >&6 103421a650d1eSmrgelse 103435977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103445977a007Smrg/* end confdefs.h. */ 103455977a007Smrgint i; 103465977a007Smrgint 103475977a007Smrgmain () 103485977a007Smrg{ 103495977a007Smrg 103505977a007Smrg ; 103515977a007Smrg return 0; 103525977a007Smrg} 103535977a007Smrg_ACEOF 103545977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 103555977a007Smrg eval $cacheid=yes 103565977a007Smrgelse 103575977a007Smrg eval $cacheid=no 103585977a007Smrgfi 103595977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 103605977a007Smrg conftest$ac_exeext conftest.$ac_ext 103615977a007Smrgfi 103625977a007Smrg 103635977a007Smrg 103645977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103655977a007Smrg 103665977a007Smrg eval supported=\$$cacheid 103675977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103685977a007Smrg$as_echo "$supported" >&6; } 103695977a007Smrg if test "$supported" = "yes" ; then 103705977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 103715977a007Smrg found="yes" 103725977a007Smrg fi 103735977a007Smrg fi 103745977a007Smrg 103755977a007Smrg 103765977a007Smrg 103775977a007Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 103785977a007Smrg# activate it with -Werror, so we add it here explicitly. 103795977a007Smrg 103805977a007Smrg 103815977a007Smrg 103825977a007Smrg 103835977a007Smrg 103845977a007Smrg 103855977a007Smrg 103865977a007Smrg 103875977a007Smrg 103885977a007Smrg 103895977a007Smrg 103905977a007Smrg 103915977a007Smrg 103925977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 103935977a007Smrg 103945977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 103955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103965977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 103975977a007Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 103985977a007Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 103995977a007Smrg $as_echo_n "(cached) " >&6 104005977a007Smrgelse 104015977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104025977a007Smrg/* end confdefs.h. */ 104035977a007Smrgint i; 104045977a007Smrg_ACEOF 104055977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 104065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 104075977a007Smrgelse 104085977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 104095977a007Smrgfi 104105977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104115977a007Smrgfi 104125977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104135977a007Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104145977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 104155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104165977a007Smrgfi 104175977a007Smrg 104185977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 104195977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 104205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104215977a007Smrg fi 104225977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104235977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104245977a007Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104255977a007Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 104265977a007Smrg $as_echo_n "(cached) " >&6 104275977a007Smrgelse 104285977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104295977a007Smrg/* end confdefs.h. */ 104305977a007Smrgint i; 104315977a007Smrg_ACEOF 104325977a007Smrgif ac_fn_c_try_compile "$LINENO"; then : 104335977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 104345977a007Smrgelse 104355977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 104365977a007Smrgfi 104375977a007Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104385977a007Smrgfi 104395977a007Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104405977a007Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 104415977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 104425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104435977a007Smrgfi 104445977a007Smrg 104455977a007Smrgfound="no" 104465977a007Smrg 104475977a007Smrg if test $found = "no" ; then 104488a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 104495977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104505977a007Smrg fi 104515977a007Smrg 104528a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 104535977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104545977a007Smrg fi 104555977a007Smrg 104565977a007Smrg CFLAGS="$CFLAGS -Werror=attributes" 104575977a007Smrg 104585977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 104595977a007Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 104608a355152Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 104615977a007Smrg if eval \${$cacheid+:} false; then : 104625977a007Smrg $as_echo_n "(cached) " >&6 104635977a007Smrgelse 104645977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104655977a007Smrg/* end confdefs.h. */ 104665977a007Smrgint i; 104675977a007Smrgint 104685977a007Smrgmain () 104695977a007Smrg{ 104705977a007Smrg 104715977a007Smrg ; 104725977a007Smrg return 0; 104735977a007Smrg} 104745977a007Smrg_ACEOF 104755977a007Smrgif ac_fn_c_try_link "$LINENO"; then : 104765977a007Smrg eval $cacheid=yes 104775977a007Smrgelse 104785977a007Smrg eval $cacheid=no 104795977a007Smrgfi 104805977a007Smrgrm -f core conftest.err conftest.$ac_objext \ 104815977a007Smrg conftest$ac_exeext conftest.$ac_ext 104825977a007Smrgfi 104835977a007Smrg 104845977a007Smrg 104855977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104865977a007Smrg 104875977a007Smrg eval supported=\$$cacheid 104885977a007Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104895977a007Smrg$as_echo "$supported" >&6; } 104905977a007Smrg if test "$supported" = "yes" ; then 104915977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 104925977a007Smrg found="yes" 104935977a007Smrg fi 104945977a007Smrg fi 104955977a007Smrg 104965977a007Smrg 104975977a007Smrg 104985977a007Smrgif test "x$STRICT_COMPILE" = "xyes"; then 104995977a007Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 105005977a007Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 105015977a007Smrgfi 105025977a007Smrg 105035977a007Smrg 105045977a007Smrg 105055977a007Smrg 105065977a007Smrg 105075977a007Smrg 105085977a007Smrgcat >>confdefs.h <<_ACEOF 105095977a007Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 105105977a007Smrg_ACEOF 105115977a007Smrg 105125977a007Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 105135977a007Smrg if test "x$PVM" = "x"; then 105145977a007Smrg PVM="0" 105155977a007Smrg fi 105165977a007Smrg 105175977a007Smrgcat >>confdefs.h <<_ACEOF 105185977a007Smrg#define PACKAGE_VERSION_MINOR $PVM 105195977a007Smrg_ACEOF 105205977a007Smrg 105215977a007Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 105225977a007Smrg if test "x$PVP" = "x"; then 105235977a007Smrg PVP="0" 105245977a007Smrg fi 105255977a007Smrg 105265977a007Smrgcat >>confdefs.h <<_ACEOF 105275977a007Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 105285977a007Smrg_ACEOF 105295977a007Smrg 105305977a007Smrg 105315977a007Smrg 105325977a007SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 105335977a007Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 105345977a007Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 105355977a007Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 105365977a007Smrg 105371a650d1eSmrg 105381a650d1eSmrg 105395977a007Smrg 105405977a007Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 105415977a007SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 105425977a007Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 105435977a007Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 105445977a007Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 105455977a007Smrg 105465977a007Smrg 105475977a007Smrg 105485977a007Smrg 105495977a007Smrg 105505977a007Smrg 105515977a007Smrgif test x$APP_MAN_SUFFIX = x ; then 105525977a007Smrg APP_MAN_SUFFIX=1 105535977a007Smrgfi 105545977a007Smrgif test x$APP_MAN_DIR = x ; then 105555977a007Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 105565977a007Smrgfi 105575977a007Smrg 105585977a007Smrgif test x$LIB_MAN_SUFFIX = x ; then 105595977a007Smrg LIB_MAN_SUFFIX=3 105605977a007Smrgfi 105615977a007Smrgif test x$LIB_MAN_DIR = x ; then 105625977a007Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 105635977a007Smrgfi 105645977a007Smrg 105655977a007Smrgif test x$FILE_MAN_SUFFIX = x ; then 105665977a007Smrg case $host_os in 105678a355152Smrg # Solaris 2.0 - 11 use SysV man page sections 105688a355152Smrg solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 105698a355152Smrg *) FILE_MAN_SUFFIX=5 ;; 105705977a007Smrg esac 105715977a007Smrgfi 105725977a007Smrgif test x$FILE_MAN_DIR = x ; then 105735977a007Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 105745977a007Smrgfi 105755977a007Smrg 105765977a007Smrgif test x$MISC_MAN_SUFFIX = x ; then 105775977a007Smrg case $host_os in 105788a355152Smrg # Solaris 2.0 - 11 use SysV man page sections 105798a355152Smrg solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 105808a355152Smrg *) MISC_MAN_SUFFIX=7 ;; 105815977a007Smrg esac 105825977a007Smrgfi 105835977a007Smrgif test x$MISC_MAN_DIR = x ; then 105845977a007Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 105855977a007Smrgfi 105865977a007Smrg 105875977a007Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 105885977a007Smrg case $host_os in 105898a355152Smrg # Solaris 2.0 - 11 use SysV man page sections 105908a355152Smrg solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 105918a355152Smrg *) DRIVER_MAN_SUFFIX=4 ;; 105925977a007Smrg esac 105935977a007Smrgfi 105945977a007Smrgif test x$DRIVER_MAN_DIR = x ; then 105955977a007Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 105965977a007Smrgfi 105975977a007Smrg 105985977a007Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 105995977a007Smrg case $host_os in 106008a355152Smrg # Solaris 2.0 - 11 use SysV man page sections 106018a355152Smrg solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 106028a355152Smrg *) ADMIN_MAN_SUFFIX=8 ;; 106035977a007Smrg esac 106045977a007Smrgfi 106055977a007Smrgif test x$ADMIN_MAN_DIR = x ; then 106065977a007Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 106071a650d1eSmrgfi 106081a650d1eSmrg 106091a650d1eSmrg 106105977a007Smrg 106115977a007Smrg 106125977a007Smrg 106135977a007Smrg 106145977a007Smrg 106155977a007Smrg 106165977a007Smrg 106175977a007Smrg 106185977a007Smrg 106195977a007Smrg 106205977a007Smrg 106215977a007Smrg 106225977a007Smrg 106235977a007SmrgXORG_MAN_PAGE="X Version 11" 106245977a007Smrg 106255977a007SmrgMAN_SUBSTS="\ 106265977a007Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 106275977a007Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 106285977a007Smrg -e 's|__xservername__|Xorg|g' \ 106295977a007Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 106305977a007Smrg -e 's|__projectroot__|\$(prefix)|g' \ 106315977a007Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 106325977a007Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 106335977a007Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 106345977a007Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 106355977a007Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 106365977a007Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 106375977a007Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 106385977a007Smrg 106395977a007Smrg 106405977a007Smrg 106415977a007Smrg# Check whether --enable-silent-rules was given. 106425977a007Smrgif test "${enable_silent_rules+set}" = set; then : 106435977a007Smrg enableval=$enable_silent_rules; 106445977a007Smrgfi 106455977a007Smrg 106468a355152Smrgcase $enable_silent_rules in # ((( 106478a355152Smrg yes) AM_DEFAULT_VERBOSITY=0;; 106488a355152Smrg no) AM_DEFAULT_VERBOSITY=1;; 106498a355152Smrg *) AM_DEFAULT_VERBOSITY=0;; 106505977a007Smrgesac 106518a355152Smrgam_make=${MAKE-make} 106528a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 106538a355152Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 106548a355152Smrgif ${am_cv_make_support_nested_variables+:} false; then : 106558a355152Smrg $as_echo_n "(cached) " >&6 106568a355152Smrgelse 106578a355152Smrg if $as_echo 'TRUE=$(BAR$(V)) 106588a355152SmrgBAR0=false 106598a355152SmrgBAR1=true 106608a355152SmrgV=1 106618a355152Smrgam__doit: 106628a355152Smrg @$(TRUE) 106638a355152Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 106648a355152Smrg am_cv_make_support_nested_variables=yes 106658a355152Smrgelse 106668a355152Smrg am_cv_make_support_nested_variables=no 106678a355152Smrgfi 106688a355152Smrgfi 106698a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 106708a355152Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 106718a355152Smrgif test $am_cv_make_support_nested_variables = yes; then 106728a355152Smrg AM_V='$(V)' 106738a355152Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 106748a355152Smrgelse 106758a355152Smrg AM_V=$AM_DEFAULT_VERBOSITY 106768a355152Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 106778a355152Smrgfi 106785977a007SmrgAM_BACKSLASH='\' 106795977a007Smrg 106805977a007Smrg 106815977a007Smrg 106825977a007Smrg 106835977a007Smrg# Check whether --with-rsh was given. 106845977a007Smrgif test "${with_rsh+set}" = set; then : 106855977a007Smrg withval=$with_rsh; rsh="$withval" 106865977a007Smrgelse 106875977a007Smrg rsh=${bindir}/ssh 106885977a007Smrgfi 106895977a007Smrg 106905977a007SmrgRSH=$rsh 106915977a007Smrg 106925977a007Smrg 106935977a007Smrgfor ac_func in mkstemp putenv 106945977a007Smrgdo : 106955977a007Smrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 106965977a007Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 106975977a007Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 106985977a007Smrg cat >>confdefs.h <<_ACEOF 106995977a007Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 107005977a007Smrg_ACEOF 107015977a007Smrg 107025977a007Smrgfi 107035977a007Smrgdone 107045977a007Smrg 107055977a007Smrg 107061a650d1eSmrg# Checks for pkg-config packages 107071a650d1eSmrg 107081a650d1eSmrgpkg_failed=no 107091a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5 107101a650d1eSmrg$as_echo_n "checking for XSM... " >&6; } 107111a650d1eSmrg 107121a650d1eSmrgif test -n "$XSM_CFLAGS"; then 107131a650d1eSmrg pkg_cv_XSM_CFLAGS="$XSM_CFLAGS" 107141a650d1eSmrg elif test -n "$PKG_CONFIG"; then 107151a650d1eSmrg if test -n "$PKG_CONFIG" && \ 107165977a007Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5 107175977a007Smrg ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5 107181a650d1eSmrg ac_status=$? 107191a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 107201a650d1eSmrg test $ac_status = 0; }; then 107215977a007Smrg pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null` 107228a355152Smrg test "x$?" != "x0" && pkg_failed=yes 107231a650d1eSmrgelse 107241a650d1eSmrg pkg_failed=yes 107251a650d1eSmrgfi 107261a650d1eSmrg else 107271a650d1eSmrg pkg_failed=untried 107281a650d1eSmrgfi 107291a650d1eSmrgif test -n "$XSM_LIBS"; then 107301a650d1eSmrg pkg_cv_XSM_LIBS="$XSM_LIBS" 107311a650d1eSmrg elif test -n "$PKG_CONFIG"; then 107321a650d1eSmrg if test -n "$PKG_CONFIG" && \ 107335977a007Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5 107345977a007Smrg ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5 107351a650d1eSmrg ac_status=$? 107361a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 107371a650d1eSmrg test $ac_status = 0; }; then 107385977a007Smrg pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null` 107398a355152Smrg test "x$?" != "x0" && pkg_failed=yes 107401a650d1eSmrgelse 107411a650d1eSmrg pkg_failed=yes 107421a650d1eSmrgfi 107431a650d1eSmrg else 107441a650d1eSmrg pkg_failed=untried 107451a650d1eSmrgfi 107461a650d1eSmrg 107471a650d1eSmrg 107481a650d1eSmrg 107491a650d1eSmrgif test $pkg_failed = yes; then 107508a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 107518a355152Smrg$as_echo "no" >&6; } 107521a650d1eSmrg 107531a650d1eSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 107541a650d1eSmrg _pkg_short_errors_supported=yes 107551a650d1eSmrgelse 107561a650d1eSmrg _pkg_short_errors_supported=no 107571a650d1eSmrgfi 107581a650d1eSmrg if test $_pkg_short_errors_supported = yes; then 107598a355152Smrg XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7" 2>&1` 107601a650d1eSmrg else 107618a355152Smrg XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7" 2>&1` 107621a650d1eSmrg fi 107631a650d1eSmrg # Put the nasty error message in config.log where it belongs 107641a650d1eSmrg echo "$XSM_PKG_ERRORS" >&5 107651a650d1eSmrg 107665977a007Smrg as_fn_error $? "Package requirements (x11 xt > 1.0.99 ice sm xaw7) were not met: 107671a650d1eSmrg 107681a650d1eSmrg$XSM_PKG_ERRORS 107691a650d1eSmrg 107701a650d1eSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 107711a650d1eSmrginstalled software in a non-standard prefix. 107721a650d1eSmrg 107731a650d1eSmrgAlternatively, you may set the environment variables XSM_CFLAGS 107741a650d1eSmrgand XSM_LIBS to avoid the need to call pkg-config. 107758a355152SmrgSee the pkg-config man page for more details." "$LINENO" 5 107761a650d1eSmrgelif test $pkg_failed = untried; then 107778a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 107788a355152Smrg$as_echo "no" >&6; } 107791a650d1eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 107801a650d1eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 107811a650d1eSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 107821a650d1eSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 107831a650d1eSmrgpath to pkg-config. 107841a650d1eSmrg 107851a650d1eSmrgAlternatively, you may set the environment variables XSM_CFLAGS 107861a650d1eSmrgand XSM_LIBS to avoid the need to call pkg-config. 107871a650d1eSmrgSee the pkg-config man page for more details. 107881a650d1eSmrg 107891a650d1eSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 107901a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 107911a650d1eSmrgelse 107921a650d1eSmrg XSM_CFLAGS=$pkg_cv_XSM_CFLAGS 107931a650d1eSmrg XSM_LIBS=$pkg_cv_XSM_LIBS 107941a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 107951a650d1eSmrg$as_echo "yes" >&6; } 107968a355152Smrg 107971a650d1eSmrgfi 107981a650d1eSmrg 107991a650d1eSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 108001a650d1eSmrg 108011a650d1eSmrg# Check whether --with-appdefaultdir was given. 108021a650d1eSmrgif test "${with_appdefaultdir+set}" = set; then : 108031a650d1eSmrg withval=$with_appdefaultdir; appdefaultdir="$withval" 108041a650d1eSmrgelse 108051a650d1eSmrg appdefaultdir="${xt_appdefaultdir}" 108061a650d1eSmrgfi 108071a650d1eSmrg 108081a650d1eSmrg 108098108eb18Smrg 108108108eb18Smrg 108115977a007Smrgac_config_files="$ac_config_files Makefile man/Makefile" 108121a650d1eSmrg 108138108eb18Smrgcat >confcache <<\_ACEOF 108148108eb18Smrg# This file is a shell script that caches the results of configure 108158108eb18Smrg# tests run on this system so they can be shared between configure 108168108eb18Smrg# scripts and configure runs, see configure's option --config-cache. 108178108eb18Smrg# It is not useful on other systems. If it contains results you don't 108188108eb18Smrg# want to keep, you may remove or edit it. 108198108eb18Smrg# 108208108eb18Smrg# config.status only pays attention to the cache file if you give it 108218108eb18Smrg# the --recheck option to rerun configure. 108228108eb18Smrg# 108238108eb18Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 108248108eb18Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 108258108eb18Smrg# following values. 108268108eb18Smrg 108278108eb18Smrg_ACEOF 108288108eb18Smrg 108298108eb18Smrg# The following way of writing the cache mishandles newlines in values, 108308108eb18Smrg# but we know of no workaround that is simple, portable, and efficient. 108311a650d1eSmrg# So, we kill variables containing newlines. 108328108eb18Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 108338108eb18Smrg# and sets the high bit in the cache file unless we assign to the vars. 108341a650d1eSmrg( 108351a650d1eSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 108361a650d1eSmrg eval ac_val=\$$ac_var 108371a650d1eSmrg case $ac_val in #( 108381a650d1eSmrg *${as_nl}*) 108391a650d1eSmrg case $ac_var in #( 108401a650d1eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 108411a650d1eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 108421a650d1eSmrg esac 108431a650d1eSmrg case $ac_var in #( 108441a650d1eSmrg _ | IFS | as_nl) ;; #( 108451a650d1eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 108461a650d1eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 108471a650d1eSmrg esac ;; 108481a650d1eSmrg esac 108491a650d1eSmrg done 108501a650d1eSmrg 108518108eb18Smrg (set) 2>&1 | 108521a650d1eSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 108531a650d1eSmrg *${as_nl}ac_space=\ *) 108541a650d1eSmrg # `set' does not quote correctly, so add quotes: double-quote 108551a650d1eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 108568108eb18Smrg sed -n \ 108578108eb18Smrg "s/'/'\\\\''/g; 108588108eb18Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 108591a650d1eSmrg ;; #( 108608108eb18Smrg *) 108618108eb18Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 108621a650d1eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 108638108eb18Smrg ;; 108641a650d1eSmrg esac | 108651a650d1eSmrg sort 108661a650d1eSmrg) | 108678108eb18Smrg sed ' 108681a650d1eSmrg /^ac_cv_env_/b end 108698108eb18Smrg t clear 108701a650d1eSmrg :clear 108718108eb18Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 108728108eb18Smrg t end 108731a650d1eSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 108741a650d1eSmrg :end' >>confcache 108751a650d1eSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 108761a650d1eSmrg if test -w "$cache_file"; then 108771a650d1eSmrg if test "x$cache_file" != "x/dev/null"; then 108781a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 108791a650d1eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 108801a650d1eSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 108811a650d1eSmrg cat confcache >"$cache_file" 108821a650d1eSmrg else 108831a650d1eSmrg case $cache_file in #( 108841a650d1eSmrg */* | ?:*) 108851a650d1eSmrg mv -f confcache "$cache_file"$$ && 108861a650d1eSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 108871a650d1eSmrg *) 108881a650d1eSmrg mv -f confcache "$cache_file" ;; 108891a650d1eSmrg esac 108901a650d1eSmrg fi 108911a650d1eSmrg fi 108928108eb18Smrg else 108931a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 108941a650d1eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 108958108eb18Smrg fi 108968108eb18Smrgfi 108978108eb18Smrgrm -f confcache 108988108eb18Smrg 108998108eb18Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 109008108eb18Smrg# Let make expand exec_prefix. 109018108eb18Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 109028108eb18Smrg 109038108eb18SmrgDEFS=-DHAVE_CONFIG_H 109048108eb18Smrg 109058108eb18Smrgac_libobjs= 109068108eb18Smrgac_ltlibobjs= 109071a650d1eSmrgU= 109088108eb18Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 109098108eb18Smrg # 1. Remove the extension, and $U if already installed. 109101a650d1eSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 109111a650d1eSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 109121a650d1eSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 109131a650d1eSmrg # will be set to the directory where LIBOBJS objects are built. 109141a650d1eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 109151a650d1eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 109168108eb18Smrgdone 109178108eb18SmrgLIBOBJS=$ac_libobjs 109188108eb18Smrg 109198108eb18SmrgLTLIBOBJS=$ac_ltlibobjs 109208108eb18Smrg 109218108eb18Smrg 109228a355152Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 109238a355152Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 109248a355152Smrg if test -n "$am_sleep_pid"; then 109258a355152Smrg # Hide warnings about reused PIDs. 109268a355152Smrg wait $am_sleep_pid 2>/dev/null 109278a355152Smrg fi 109288a355152Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 109298a355152Smrg$as_echo "done" >&6; } 109301a650d1eSmrg if test -n "$EXEEXT"; then 109311a650d1eSmrg am__EXEEXT_TRUE= 109321a650d1eSmrg am__EXEEXT_FALSE='#' 109331a650d1eSmrgelse 109341a650d1eSmrg am__EXEEXT_TRUE='#' 109351a650d1eSmrg am__EXEEXT_FALSE= 109361a650d1eSmrgfi 109371a650d1eSmrg 109388108eb18Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 109391a650d1eSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 109401a650d1eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 109418108eb18Smrgfi 109428108eb18Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 109431a650d1eSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 109441a650d1eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 109458108eb18Smrgfi 109468108eb18Smrg 109471a650d1eSmrg: "${CONFIG_STATUS=./config.status}" 109481a650d1eSmrgac_write_fail=0 109498108eb18Smrgac_clean_files_save=$ac_clean_files 109508108eb18Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 109511a650d1eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 109521a650d1eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 109531a650d1eSmrgas_write_fail=0 109541a650d1eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 109558108eb18Smrg#! $SHELL 109568108eb18Smrg# Generated by $as_me. 109578108eb18Smrg# Run this file to recreate the current configuration. 109588108eb18Smrg# Compiler output produced by configure, useful for debugging 109598108eb18Smrg# configure, is in config.log if it exists. 109608108eb18Smrg 109618108eb18Smrgdebug=false 109628108eb18Smrgac_cs_recheck=false 109638108eb18Smrgac_cs_silent=false 109648108eb18Smrg 109651a650d1eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 109661a650d1eSmrgexport SHELL 109671a650d1eSmrg_ASEOF 109681a650d1eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 109691a650d1eSmrg## -------------------- ## 109701a650d1eSmrg## M4sh Initialization. ## 109711a650d1eSmrg## -------------------- ## 109721a650d1eSmrg 109731a650d1eSmrg# Be more Bourne compatible 109741a650d1eSmrgDUALCASE=1; export DUALCASE # for MKS sh 109751a650d1eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 109768108eb18Smrg emulate sh 109778108eb18Smrg NULLCMD=: 109781a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 109798108eb18Smrg # is contrary to our usage. Disable this feature. 109808108eb18Smrg alias -g '${1+"$@"}'='"$@"' 109811a650d1eSmrg setopt NO_GLOB_SUBST 109821a650d1eSmrgelse 109831a650d1eSmrg case `(set -o) 2>/dev/null` in #( 109841a650d1eSmrg *posix*) : 109851a650d1eSmrg set -o posix ;; #( 109861a650d1eSmrg *) : 109871a650d1eSmrg ;; 109881a650d1eSmrgesac 109898108eb18Smrgfi 109908108eb18Smrg 109911a650d1eSmrg 109921a650d1eSmrgas_nl=' 109931a650d1eSmrg' 109941a650d1eSmrgexport as_nl 109951a650d1eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 109961a650d1eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 109971a650d1eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 109981a650d1eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 109991a650d1eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 110001a650d1eSmrg# but without wasting forks for bash or zsh. 110011a650d1eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 110021a650d1eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 110031a650d1eSmrg as_echo='print -r --' 110041a650d1eSmrg as_echo_n='print -rn --' 110051a650d1eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 110061a650d1eSmrg as_echo='printf %s\n' 110071a650d1eSmrg as_echo_n='printf %s' 110088108eb18Smrgelse 110091a650d1eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 110101a650d1eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 110111a650d1eSmrg as_echo_n='/usr/ucb/echo -n' 110121a650d1eSmrg else 110131a650d1eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 110141a650d1eSmrg as_echo_n_body='eval 110151a650d1eSmrg arg=$1; 110161a650d1eSmrg case $arg in #( 110171a650d1eSmrg *"$as_nl"*) 110181a650d1eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 110191a650d1eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 110201a650d1eSmrg esac; 110211a650d1eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 110221a650d1eSmrg ' 110231a650d1eSmrg export as_echo_n_body 110241a650d1eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 110251a650d1eSmrg fi 110261a650d1eSmrg export as_echo_body 110271a650d1eSmrg as_echo='sh -c $as_echo_body as_echo' 110281a650d1eSmrgfi 110291a650d1eSmrg 110301a650d1eSmrg# The user is always right. 110311a650d1eSmrgif test "${PATH_SEPARATOR+set}" != set; then 110321a650d1eSmrg PATH_SEPARATOR=: 110331a650d1eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 110341a650d1eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 110351a650d1eSmrg PATH_SEPARATOR=';' 110361a650d1eSmrg } 110378108eb18Smrgfi 110388108eb18Smrg 110398108eb18Smrg 110401a650d1eSmrg# IFS 110411a650d1eSmrg# We need space, tab and new line, in precisely that order. Quoting is 110421a650d1eSmrg# there to prevent editors from complaining about space-tab. 110431a650d1eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 110441a650d1eSmrg# splitting by setting IFS to empty value.) 110451a650d1eSmrgIFS=" "" $as_nl" 110461a650d1eSmrg 110471a650d1eSmrg# Find who we are. Look in the path if we contain no directory separator. 110481a650d1eSmrgas_myself= 110491a650d1eSmrgcase $0 in #(( 110501a650d1eSmrg *[\\/]* ) as_myself=$0 ;; 110511a650d1eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110521a650d1eSmrgfor as_dir in $PATH 110531a650d1eSmrgdo 110541a650d1eSmrg IFS=$as_save_IFS 110551a650d1eSmrg test -z "$as_dir" && as_dir=. 110561a650d1eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 110571a650d1eSmrg done 110581a650d1eSmrgIFS=$as_save_IFS 110591a650d1eSmrg 110601a650d1eSmrg ;; 110611a650d1eSmrgesac 110621a650d1eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 110631a650d1eSmrg# in which case we are not to be found in the path. 110641a650d1eSmrgif test "x$as_myself" = x; then 110651a650d1eSmrg as_myself=$0 110661a650d1eSmrgfi 110671a650d1eSmrgif test ! -f "$as_myself"; then 110681a650d1eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110691a650d1eSmrg exit 1 110701a650d1eSmrgfi 110711a650d1eSmrg 110721a650d1eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 110731a650d1eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 110741a650d1eSmrg# suppresses any "Segmentation fault" message there. '((' could 110751a650d1eSmrg# trigger a bug in pdksh 5.2.14. 110761a650d1eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 110771a650d1eSmrgdo eval test x\${$as_var+set} = xset \ 110781a650d1eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 110791a650d1eSmrgdone 110808108eb18SmrgPS1='$ ' 110818108eb18SmrgPS2='> ' 110828108eb18SmrgPS4='+ ' 110838108eb18Smrg 110848108eb18Smrg# NLS nuisances. 110851a650d1eSmrgLC_ALL=C 110861a650d1eSmrgexport LC_ALL 110871a650d1eSmrgLANGUAGE=C 110881a650d1eSmrgexport LANGUAGE 110891a650d1eSmrg 110901a650d1eSmrg# CDPATH. 110911a650d1eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 110921a650d1eSmrg 110931a650d1eSmrg 110941a650d1eSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 110951a650d1eSmrg# ---------------------------------------- 110961a650d1eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 110971a650d1eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 110981a650d1eSmrg# script with STATUS, using 1 if that was 0. 110991a650d1eSmrgas_fn_error () 111001a650d1eSmrg{ 111011a650d1eSmrg as_status=$1; test $as_status -eq 0 && as_status=1 111021a650d1eSmrg if test "$4"; then 111031a650d1eSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 111041a650d1eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 111058108eb18Smrg fi 111061a650d1eSmrg $as_echo "$as_me: error: $2" >&2 111071a650d1eSmrg as_fn_exit $as_status 111081a650d1eSmrg} # as_fn_error 111091a650d1eSmrg 111101a650d1eSmrg 111111a650d1eSmrg# as_fn_set_status STATUS 111121a650d1eSmrg# ----------------------- 111131a650d1eSmrg# Set $? to STATUS, without forking. 111141a650d1eSmrgas_fn_set_status () 111151a650d1eSmrg{ 111161a650d1eSmrg return $1 111171a650d1eSmrg} # as_fn_set_status 111181a650d1eSmrg 111191a650d1eSmrg# as_fn_exit STATUS 111201a650d1eSmrg# ----------------- 111211a650d1eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 111221a650d1eSmrgas_fn_exit () 111231a650d1eSmrg{ 111241a650d1eSmrg set +e 111251a650d1eSmrg as_fn_set_status $1 111261a650d1eSmrg exit $1 111271a650d1eSmrg} # as_fn_exit 111281a650d1eSmrg 111291a650d1eSmrg# as_fn_unset VAR 111301a650d1eSmrg# --------------- 111311a650d1eSmrg# Portably unset VAR. 111321a650d1eSmrgas_fn_unset () 111331a650d1eSmrg{ 111341a650d1eSmrg { eval $1=; unset $1;} 111351a650d1eSmrg} 111361a650d1eSmrgas_unset=as_fn_unset 111371a650d1eSmrg# as_fn_append VAR VALUE 111381a650d1eSmrg# ---------------------- 111391a650d1eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 111401a650d1eSmrg# advantage of any shell optimizations that allow amortized linear growth over 111411a650d1eSmrg# repeated appends, instead of the typical quadratic growth present in naive 111421a650d1eSmrg# implementations. 111431a650d1eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 111441a650d1eSmrg eval 'as_fn_append () 111451a650d1eSmrg { 111461a650d1eSmrg eval $1+=\$2 111471a650d1eSmrg }' 111481a650d1eSmrgelse 111491a650d1eSmrg as_fn_append () 111501a650d1eSmrg { 111511a650d1eSmrg eval $1=\$$1\$2 111521a650d1eSmrg } 111531a650d1eSmrgfi # as_fn_append 111541a650d1eSmrg 111551a650d1eSmrg# as_fn_arith ARG... 111561a650d1eSmrg# ------------------ 111571a650d1eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 111581a650d1eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 111591a650d1eSmrg# must be portable across $(()) and expr. 111601a650d1eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 111611a650d1eSmrg eval 'as_fn_arith () 111621a650d1eSmrg { 111631a650d1eSmrg as_val=$(( $* )) 111641a650d1eSmrg }' 111651a650d1eSmrgelse 111661a650d1eSmrg as_fn_arith () 111671a650d1eSmrg { 111681a650d1eSmrg as_val=`expr "$@" || test $? -eq 1` 111691a650d1eSmrg } 111701a650d1eSmrgfi # as_fn_arith 111711a650d1eSmrg 111728108eb18Smrg 111731a650d1eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 111741a650d1eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 111758108eb18Smrg as_expr=expr 111768108eb18Smrgelse 111778108eb18Smrg as_expr=false 111788108eb18Smrgfi 111798108eb18Smrg 111801a650d1eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 111818108eb18Smrg as_basename=basename 111828108eb18Smrgelse 111838108eb18Smrg as_basename=false 111848108eb18Smrgfi 111858108eb18Smrg 111861a650d1eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 111871a650d1eSmrg as_dirname=dirname 111881a650d1eSmrgelse 111891a650d1eSmrg as_dirname=false 111901a650d1eSmrgfi 111918108eb18Smrg 111921a650d1eSmrgas_me=`$as_basename -- "$0" || 111938108eb18Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 111948108eb18Smrg X"$0" : 'X\(//\)$' \| \ 111951a650d1eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 111961a650d1eSmrg$as_echo X/"$0" | 111971a650d1eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 111981a650d1eSmrg s//\1/ 111991a650d1eSmrg q 112001a650d1eSmrg } 112011a650d1eSmrg /^X\/\(\/\/\)$/{ 112021a650d1eSmrg s//\1/ 112031a650d1eSmrg q 112041a650d1eSmrg } 112051a650d1eSmrg /^X\/\(\/\).*/{ 112061a650d1eSmrg s//\1/ 112071a650d1eSmrg q 112081a650d1eSmrg } 112091a650d1eSmrg s/.*/./; q'` 112108108eb18Smrg 112118108eb18Smrg# Avoid depending upon Character Ranges. 112128108eb18Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 112138108eb18Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 112148108eb18Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 112158108eb18Smrgas_cr_digits='0123456789' 112168108eb18Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 112178108eb18Smrg 112181a650d1eSmrgECHO_C= ECHO_N= ECHO_T= 112191a650d1eSmrgcase `echo -n x` in #((((( 112201a650d1eSmrg-n*) 112211a650d1eSmrg case `echo 'xy\c'` in 112221a650d1eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 112231a650d1eSmrg xy) ECHO_C='\c';; 112241a650d1eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 112251a650d1eSmrg ECHO_T=' ';; 112261a650d1eSmrg esac;; 112271a650d1eSmrg*) 112281a650d1eSmrg ECHO_N='-n';; 112298108eb18Smrgesac 112308108eb18Smrg 112311a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.file 112321a650d1eSmrgif test -d conf$$.dir; then 112331a650d1eSmrg rm -f conf$$.dir/conf$$.file 112348108eb18Smrgelse 112351a650d1eSmrg rm -f conf$$.dir 112361a650d1eSmrg mkdir conf$$.dir 2>/dev/null 112378108eb18Smrgfi 112381a650d1eSmrgif (echo >conf$$.file) 2>/dev/null; then 112391a650d1eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 112408108eb18Smrg as_ln_s='ln -s' 112411a650d1eSmrg # ... but there are two gotchas: 112421a650d1eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 112431a650d1eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 112448a355152Smrg # In both cases, we have to default to `cp -pR'. 112451a650d1eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 112468a355152Smrg as_ln_s='cp -pR' 112471a650d1eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 112481a650d1eSmrg as_ln_s=ln 112491a650d1eSmrg else 112508a355152Smrg as_ln_s='cp -pR' 112518108eb18Smrg fi 112528108eb18Smrgelse 112538a355152Smrg as_ln_s='cp -pR' 112548108eb18Smrgfi 112551a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 112561a650d1eSmrgrmdir conf$$.dir 2>/dev/null 112571a650d1eSmrg 112581a650d1eSmrg 112591a650d1eSmrg# as_fn_mkdir_p 112601a650d1eSmrg# ------------- 112611a650d1eSmrg# Create "$as_dir" as a directory, including parents if necessary. 112621a650d1eSmrgas_fn_mkdir_p () 112631a650d1eSmrg{ 112641a650d1eSmrg 112651a650d1eSmrg case $as_dir in #( 112661a650d1eSmrg -*) as_dir=./$as_dir;; 112671a650d1eSmrg esac 112681a650d1eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 112691a650d1eSmrg as_dirs= 112701a650d1eSmrg while :; do 112711a650d1eSmrg case $as_dir in #( 112721a650d1eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 112731a650d1eSmrg *) as_qdir=$as_dir;; 112741a650d1eSmrg esac 112751a650d1eSmrg as_dirs="'$as_qdir' $as_dirs" 112761a650d1eSmrg as_dir=`$as_dirname -- "$as_dir" || 112771a650d1eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 112781a650d1eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 112791a650d1eSmrg X"$as_dir" : 'X\(//\)$' \| \ 112801a650d1eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 112811a650d1eSmrg$as_echo X"$as_dir" | 112821a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 112831a650d1eSmrg s//\1/ 112841a650d1eSmrg q 112851a650d1eSmrg } 112861a650d1eSmrg /^X\(\/\/\)[^/].*/{ 112871a650d1eSmrg s//\1/ 112881a650d1eSmrg q 112891a650d1eSmrg } 112901a650d1eSmrg /^X\(\/\/\)$/{ 112911a650d1eSmrg s//\1/ 112921a650d1eSmrg q 112931a650d1eSmrg } 112941a650d1eSmrg /^X\(\/\).*/{ 112951a650d1eSmrg s//\1/ 112961a650d1eSmrg q 112971a650d1eSmrg } 112981a650d1eSmrg s/.*/./; q'` 112991a650d1eSmrg test -d "$as_dir" && break 113001a650d1eSmrg done 113011a650d1eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 113021a650d1eSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 113031a650d1eSmrg 113048108eb18Smrg 113051a650d1eSmrg} # as_fn_mkdir_p 113068108eb18Smrgif mkdir -p . 2>/dev/null; then 113071a650d1eSmrg as_mkdir_p='mkdir -p "$as_dir"' 113088108eb18Smrgelse 113098108eb18Smrg test -d ./-p && rmdir ./-p 113108108eb18Smrg as_mkdir_p=false 113118108eb18Smrgfi 113128108eb18Smrg 113138a355152Smrg 113148a355152Smrg# as_fn_executable_p FILE 113158a355152Smrg# ----------------------- 113168a355152Smrg# Test if FILE is an executable regular file. 113178a355152Smrgas_fn_executable_p () 113188a355152Smrg{ 113198a355152Smrg test -f "$1" && test -x "$1" 113208a355152Smrg} # as_fn_executable_p 113218a355152Smrgas_test_x='test -x' 113228a355152Smrgas_executable_p=as_fn_executable_p 113238108eb18Smrg 113248108eb18Smrg# Sed expression to map a string onto a valid CPP name. 113258108eb18Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 113268108eb18Smrg 113278108eb18Smrg# Sed expression to map a string onto a valid variable name. 113288108eb18Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 113298108eb18Smrg 113308108eb18Smrg 113318108eb18Smrgexec 6>&1 113321a650d1eSmrg## ----------------------------------- ## 113331a650d1eSmrg## Main body of $CONFIG_STATUS script. ## 113341a650d1eSmrg## ----------------------------------- ## 113351a650d1eSmrg_ASEOF 113361a650d1eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 113371a650d1eSmrg 113381a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113391a650d1eSmrg# Save the log message, to keep $0 and so on meaningful, and to 113408108eb18Smrg# report actual input values of CONFIG_FILES etc. instead of their 113411a650d1eSmrg# values after options handling. 113421a650d1eSmrgac_log=" 113438a355152SmrgThis file was extended by xsm $as_me 1.0.4, which was 113448a355152Smrggenerated by GNU Autoconf 2.69. Invocation command line was 113458108eb18Smrg 113468108eb18Smrg CONFIG_FILES = $CONFIG_FILES 113478108eb18Smrg CONFIG_HEADERS = $CONFIG_HEADERS 113488108eb18Smrg CONFIG_LINKS = $CONFIG_LINKS 113498108eb18Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 113508108eb18Smrg $ $0 $@ 113518108eb18Smrg 113521a650d1eSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 113531a650d1eSmrg" 113541a650d1eSmrg 113558108eb18Smrg_ACEOF 113568108eb18Smrg 113571a650d1eSmrgcase $ac_config_files in *" 113581a650d1eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 113591a650d1eSmrgesac 113608108eb18Smrg 113611a650d1eSmrgcase $ac_config_headers in *" 113621a650d1eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 113631a650d1eSmrgesac 113648108eb18Smrg 113658108eb18Smrg 113661a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113671a650d1eSmrg# Files that config.status was made for. 113681a650d1eSmrgconfig_files="$ac_config_files" 113691a650d1eSmrgconfig_headers="$ac_config_headers" 113701a650d1eSmrgconfig_commands="$ac_config_commands" 113718108eb18Smrg 113721a650d1eSmrg_ACEOF 113738108eb18Smrg 113741a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113758108eb18Smrgac_cs_usage="\ 113761a650d1eSmrg\`$as_me' instantiates files and other configuration actions 113771a650d1eSmrgfrom templates according to the current configuration. Unless the files 113781a650d1eSmrgand actions are specified as TAGs, all are instantiated by default. 113798108eb18Smrg 113801a650d1eSmrgUsage: $0 [OPTION]... [TAG]... 113818108eb18Smrg 113828108eb18Smrg -h, --help print this help, then exit 113831a650d1eSmrg -V, --version print version number and configuration settings, then exit 113841a650d1eSmrg --config print configuration, then exit 113851a650d1eSmrg -q, --quiet, --silent 113861a650d1eSmrg do not print progress messages 113878108eb18Smrg -d, --debug don't remove temporary files 113888108eb18Smrg --recheck update $as_me by reconfiguring in the same conditions 113891a650d1eSmrg --file=FILE[:TEMPLATE] 113901a650d1eSmrg instantiate the configuration file FILE 113911a650d1eSmrg --header=FILE[:TEMPLATE] 113921a650d1eSmrg instantiate the configuration header FILE 113938108eb18Smrg 113948108eb18SmrgConfiguration files: 113958108eb18Smrg$config_files 113968108eb18Smrg 113978108eb18SmrgConfiguration headers: 113988108eb18Smrg$config_headers 113998108eb18Smrg 114008108eb18SmrgConfiguration commands: 114018108eb18Smrg$config_commands 114028108eb18Smrg 114031a650d1eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 114048108eb18Smrg 114051a650d1eSmrg_ACEOF 114061a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 114071a650d1eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 114088108eb18Smrgac_cs_version="\\ 114098a355152Smrgxsm config.status 1.0.4 114108a355152Smrgconfigured by $0, generated by GNU Autoconf 2.69, 114111a650d1eSmrg with options \\"\$ac_cs_config\\" 114128108eb18Smrg 114138a355152SmrgCopyright (C) 2012 Free Software Foundation, Inc. 114148108eb18SmrgThis config.status script is free software; the Free Software Foundation 114158108eb18Smrggives unlimited permission to copy, distribute and modify it." 114161a650d1eSmrg 114171a650d1eSmrgac_pwd='$ac_pwd' 114181a650d1eSmrgsrcdir='$srcdir' 114191a650d1eSmrgINSTALL='$INSTALL' 114201a650d1eSmrgMKDIR_P='$MKDIR_P' 114211a650d1eSmrgAWK='$AWK' 114221a650d1eSmrgtest -n "\$AWK" || AWK=awk 114238108eb18Smrg_ACEOF 114248108eb18Smrg 114251a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 114261a650d1eSmrg# The default lists apply if the user does not specify any file. 114278108eb18Smrgac_need_defaults=: 114288108eb18Smrgwhile test $# != 0 114298108eb18Smrgdo 114308108eb18Smrg case $1 in 114311a650d1eSmrg --*=?*) 114321a650d1eSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 114331a650d1eSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 114341a650d1eSmrg ac_shift=: 114351a650d1eSmrg ;; 114361a650d1eSmrg --*=) 114371a650d1eSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 114381a650d1eSmrg ac_optarg= 114398108eb18Smrg ac_shift=: 114408108eb18Smrg ;; 114411a650d1eSmrg *) 114428108eb18Smrg ac_option=$1 114438108eb18Smrg ac_optarg=$2 114448108eb18Smrg ac_shift=shift 114458108eb18Smrg ;; 114468108eb18Smrg esac 114478108eb18Smrg 114488108eb18Smrg case $ac_option in 114498108eb18Smrg # Handling of the options. 114508108eb18Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 114518108eb18Smrg ac_cs_recheck=: ;; 114521a650d1eSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 114531a650d1eSmrg $as_echo "$ac_cs_version"; exit ;; 114541a650d1eSmrg --config | --confi | --conf | --con | --co | --c ) 114551a650d1eSmrg $as_echo "$ac_cs_config"; exit ;; 114561a650d1eSmrg --debug | --debu | --deb | --de | --d | -d ) 114578108eb18Smrg debug=: ;; 114588108eb18Smrg --file | --fil | --fi | --f ) 114598108eb18Smrg $ac_shift 114601a650d1eSmrg case $ac_optarg in 114611a650d1eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 114621a650d1eSmrg '') as_fn_error $? "missing file argument" ;; 114631a650d1eSmrg esac 114641a650d1eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 114658108eb18Smrg ac_need_defaults=false;; 114668108eb18Smrg --header | --heade | --head | --hea ) 114678108eb18Smrg $ac_shift 114681a650d1eSmrg case $ac_optarg in 114691a650d1eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 114701a650d1eSmrg esac 114711a650d1eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 114728108eb18Smrg ac_need_defaults=false;; 114731a650d1eSmrg --he | --h) 114741a650d1eSmrg # Conflict between --help and --header 114751a650d1eSmrg as_fn_error $? "ambiguous option: \`$1' 114761a650d1eSmrgTry \`$0 --help' for more information.";; 114771a650d1eSmrg --help | --hel | -h ) 114781a650d1eSmrg $as_echo "$ac_cs_usage"; exit ;; 114798108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 114808108eb18Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 114818108eb18Smrg ac_cs_silent=: ;; 114828108eb18Smrg 114838108eb18Smrg # This is an error. 114841a650d1eSmrg -*) as_fn_error $? "unrecognized option: \`$1' 114851a650d1eSmrgTry \`$0 --help' for more information." ;; 114868108eb18Smrg 114871a650d1eSmrg *) as_fn_append ac_config_targets " $1" 114881a650d1eSmrg ac_need_defaults=false ;; 114898108eb18Smrg 114908108eb18Smrg esac 114918108eb18Smrg shift 114928108eb18Smrgdone 114938108eb18Smrg 114948108eb18Smrgac_configure_extra_args= 114958108eb18Smrg 114968108eb18Smrgif $ac_cs_silent; then 114978108eb18Smrg exec 6>/dev/null 114988108eb18Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 114998108eb18Smrgfi 115008108eb18Smrg 115018108eb18Smrg_ACEOF 115021a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 115038108eb18Smrgif \$ac_cs_recheck; then 115048a355152Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 115051a650d1eSmrg shift 115061a650d1eSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 115071a650d1eSmrg CONFIG_SHELL='$SHELL' 115081a650d1eSmrg export CONFIG_SHELL 115091a650d1eSmrg exec "\$@" 115108108eb18Smrgfi 115118108eb18Smrg 115128108eb18Smrg_ACEOF 115131a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 115141a650d1eSmrgexec 5>>config.log 115151a650d1eSmrg{ 115161a650d1eSmrg echo 115171a650d1eSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 115181a650d1eSmrg## Running $as_me. ## 115191a650d1eSmrg_ASBOX 115201a650d1eSmrg $as_echo "$ac_log" 115211a650d1eSmrg} >&5 115228108eb18Smrg 115231a650d1eSmrg_ACEOF 115241a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 115258108eb18Smrg# 115261a650d1eSmrg# INIT-COMMANDS 115278108eb18Smrg# 115288108eb18SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 115298108eb18Smrg 115308108eb18Smrg_ACEOF 115318108eb18Smrg 115321a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 115338108eb18Smrg 115341a650d1eSmrg# Handling of arguments. 115358108eb18Smrgfor ac_config_target in $ac_config_targets 115368108eb18Smrgdo 115371a650d1eSmrg case $ac_config_target in 115381a650d1eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 115391a650d1eSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 115401a650d1eSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 115415977a007Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 115421a650d1eSmrg 115431a650d1eSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 115448108eb18Smrg esac 115458108eb18Smrgdone 115468108eb18Smrg 115471a650d1eSmrg 115488108eb18Smrg# If the user did not use the arguments to specify the items to instantiate, 115498108eb18Smrg# then the envvar interface is used. Set only those that are not. 115508108eb18Smrg# We use the long form for the default assignment because of an extremely 115518108eb18Smrg# bizarre bug on SunOS 4.1.3. 115528108eb18Smrgif $ac_need_defaults; then 115538108eb18Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 115548108eb18Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 115558108eb18Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 115568108eb18Smrgfi 115578108eb18Smrg 115588108eb18Smrg# Have a temporary directory for convenience. Make it in the build tree 115591a650d1eSmrg# simply because there is no reason against having it here, and in addition, 115608108eb18Smrg# creating and moving files from /tmp can sometimes cause problems. 115611a650d1eSmrg# Hook for its removal unless debugging. 115621a650d1eSmrg# Note that there is a small window in which the directory will not be cleaned: 115631a650d1eSmrg# after its creation but before its name has been assigned to `$tmp'. 115648108eb18Smrg$debug || 115658108eb18Smrg{ 115661a650d1eSmrg tmp= ac_tmp= 115671a650d1eSmrg trap 'exit_status=$? 115681a650d1eSmrg : "${ac_tmp:=$tmp}" 115691a650d1eSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 115701a650d1eSmrg' 0 115711a650d1eSmrg trap 'as_fn_exit 1' 1 2 13 15 115728108eb18Smrg} 115738108eb18Smrg# Create a (secure) tmp directory for tmp files. 115748108eb18Smrg 115758108eb18Smrg{ 115761a650d1eSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 115771a650d1eSmrg test -d "$tmp" 115788108eb18Smrg} || 115798108eb18Smrg{ 115801a650d1eSmrg tmp=./conf$$-$RANDOM 115811a650d1eSmrg (umask 077 && mkdir "$tmp") 115821a650d1eSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 115831a650d1eSmrgac_tmp=$tmp 115841a650d1eSmrg 115851a650d1eSmrg# Set up the scripts for CONFIG_FILES section. 115861a650d1eSmrg# No need to generate them if there are no CONFIG_FILES. 115871a650d1eSmrg# This happens for instance with `./config.status config.h'. 115881a650d1eSmrgif test -n "$CONFIG_FILES"; then 115891a650d1eSmrg 115901a650d1eSmrg 115911a650d1eSmrgac_cr=`echo X | tr X '\015'` 115921a650d1eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 115931a650d1eSmrg# But we know of no other shell where ac_cr would be empty at this 115941a650d1eSmrg# point, so we can use a bashism as a fallback. 115951a650d1eSmrgif test "x$ac_cr" = x; then 115961a650d1eSmrg eval ac_cr=\$\'\\r\' 115971a650d1eSmrgfi 115981a650d1eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 115991a650d1eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 116001a650d1eSmrg ac_cs_awk_cr='\\r' 116011a650d1eSmrgelse 116021a650d1eSmrg ac_cs_awk_cr=$ac_cr 116031a650d1eSmrgfi 116041a650d1eSmrg 116051a650d1eSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 116061a650d1eSmrg_ACEOF 116071a650d1eSmrg 116081a650d1eSmrg 116091a650d1eSmrg{ 116101a650d1eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 116111a650d1eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 116121a650d1eSmrg echo "_ACEOF" 116131a650d1eSmrg} >conf$$subs.sh || 116141a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 116151a650d1eSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 116161a650d1eSmrgac_delim='%!_!# ' 116171a650d1eSmrgfor ac_last_try in false false false false false :; do 116181a650d1eSmrg . ./conf$$subs.sh || 116191a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 116201a650d1eSmrg 116211a650d1eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 116221a650d1eSmrg if test $ac_delim_n = $ac_delim_num; then 116231a650d1eSmrg break 116241a650d1eSmrg elif $ac_last_try; then 116251a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 116261a650d1eSmrg else 116271a650d1eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 116281a650d1eSmrg fi 116291a650d1eSmrgdone 116301a650d1eSmrgrm -f conf$$subs.sh 116311a650d1eSmrg 116321a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 116331a650d1eSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 116341a650d1eSmrg_ACEOF 116351a650d1eSmrgsed -n ' 116361a650d1eSmrgh 116371a650d1eSmrgs/^/S["/; s/!.*/"]=/ 116381a650d1eSmrgp 116391a650d1eSmrgg 116401a650d1eSmrgs/^[^!]*!// 116411a650d1eSmrg:repl 116421a650d1eSmrgt repl 116431a650d1eSmrgs/'"$ac_delim"'$// 116441a650d1eSmrgt delim 116451a650d1eSmrg:nl 116461a650d1eSmrgh 116471a650d1eSmrgs/\(.\{148\}\)..*/\1/ 116481a650d1eSmrgt more1 116491a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 116501a650d1eSmrgp 116511a650d1eSmrgn 116521a650d1eSmrgb repl 116531a650d1eSmrg:more1 116541a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 116551a650d1eSmrgp 116561a650d1eSmrgg 116571a650d1eSmrgs/.\{148\}// 116581a650d1eSmrgt nl 116591a650d1eSmrg:delim 116601a650d1eSmrgh 116611a650d1eSmrgs/\(.\{148\}\)..*/\1/ 116621a650d1eSmrgt more2 116631a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 116641a650d1eSmrgp 116651a650d1eSmrgb 116661a650d1eSmrg:more2 116671a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 116681a650d1eSmrgp 116691a650d1eSmrgg 116701a650d1eSmrgs/.\{148\}// 116711a650d1eSmrgt delim 116721a650d1eSmrg' <conf$$subs.awk | sed ' 116731a650d1eSmrg/^[^""]/{ 116741a650d1eSmrg N 116751a650d1eSmrg s/\n// 116761a650d1eSmrg} 116771a650d1eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 116781a650d1eSmrgrm -f conf$$subs.awk 116791a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 116801a650d1eSmrg_ACAWK 116811a650d1eSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 116821a650d1eSmrg for (key in S) S_is_set[key] = 1 116831a650d1eSmrg FS = "" 116841a650d1eSmrg 116851a650d1eSmrg} 116868108eb18Smrg{ 116871a650d1eSmrg line = $ 0 116881a650d1eSmrg nfields = split(line, field, "@") 116891a650d1eSmrg substed = 0 116901a650d1eSmrg len = length(field[1]) 116911a650d1eSmrg for (i = 2; i < nfields; i++) { 116921a650d1eSmrg key = field[i] 116931a650d1eSmrg keylen = length(key) 116941a650d1eSmrg if (S_is_set[key]) { 116951a650d1eSmrg value = S[key] 116961a650d1eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 116971a650d1eSmrg len += length(value) + length(field[++i]) 116981a650d1eSmrg substed = 1 116991a650d1eSmrg } else 117001a650d1eSmrg len += 1 + keylen 117011a650d1eSmrg } 117021a650d1eSmrg 117031a650d1eSmrg print line 117048108eb18Smrg} 117058108eb18Smrg 117061a650d1eSmrg_ACAWK 117071a650d1eSmrg_ACEOF 117081a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117091a650d1eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 117101a650d1eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 117111a650d1eSmrgelse 117121a650d1eSmrg cat 117131a650d1eSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 117141a650d1eSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 117158108eb18Smrg_ACEOF 117168108eb18Smrg 117171a650d1eSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 117181a650d1eSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 117191a650d1eSmrg# trailing colons and then remove the whole line if VPATH becomes empty 117201a650d1eSmrg# (actually we leave an empty line to preserve line numbers). 117211a650d1eSmrgif test "x$srcdir" = x.; then 117221a650d1eSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 117231a650d1eSmrgh 117241a650d1eSmrgs/// 117251a650d1eSmrgs/^/:/ 117261a650d1eSmrgs/[ ]*$/:/ 117271a650d1eSmrgs/:\$(srcdir):/:/g 117281a650d1eSmrgs/:\${srcdir}:/:/g 117291a650d1eSmrgs/:@srcdir@:/:/g 117301a650d1eSmrgs/^:*// 117311a650d1eSmrgs/:*$// 117321a650d1eSmrgx 117331a650d1eSmrgs/\(=[ ]*\).*/\1/ 117341a650d1eSmrgG 117351a650d1eSmrgs/\n// 117361a650d1eSmrgs/^[^=]*=[ ]*$// 117371a650d1eSmrg}' 117381a650d1eSmrgfi 117398108eb18Smrg 117401a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117411a650d1eSmrgfi # test -n "$CONFIG_FILES" 117428108eb18Smrg 117431a650d1eSmrg# Set up the scripts for CONFIG_HEADERS section. 117441a650d1eSmrg# No need to generate them if there are no CONFIG_HEADERS. 117451a650d1eSmrg# This happens for instance with `./config.status Makefile'. 117461a650d1eSmrgif test -n "$CONFIG_HEADERS"; then 117471a650d1eSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 117481a650d1eSmrgBEGIN { 117498108eb18Smrg_ACEOF 117508108eb18Smrg 117511a650d1eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 117521a650d1eSmrg# here-document in config.status, that substitutes the proper values into 117531a650d1eSmrg# config.h.in to produce config.h. 117541a650d1eSmrg 117551a650d1eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 117561a650d1eSmrg# handling of long lines. 117571a650d1eSmrgac_delim='%!_!# ' 117581a650d1eSmrgfor ac_last_try in false false :; do 117591a650d1eSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 117601a650d1eSmrg if test -z "$ac_tt"; then 117611a650d1eSmrg break 117621a650d1eSmrg elif $ac_last_try; then 117631a650d1eSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 117641a650d1eSmrg else 117651a650d1eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 117668108eb18Smrg fi 117671a650d1eSmrgdone 117688108eb18Smrg 117691a650d1eSmrg# For the awk script, D is an array of macro values keyed by name, 117701a650d1eSmrg# likewise P contains macro parameters if any. Preserve backslash 117711a650d1eSmrg# newline sequences. 117721a650d1eSmrg 117731a650d1eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 117741a650d1eSmrgsed -n ' 117751a650d1eSmrgs/.\{148\}/&'"$ac_delim"'/g 117761a650d1eSmrgt rset 117771a650d1eSmrg:rset 117781a650d1eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 117791a650d1eSmrgt def 117801a650d1eSmrgd 117811a650d1eSmrg:def 117821a650d1eSmrgs/\\$// 117831a650d1eSmrgt bsnl 117841a650d1eSmrgs/["\\]/\\&/g 117851a650d1eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 117861a650d1eSmrgD["\1"]=" \3"/p 117871a650d1eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 117881a650d1eSmrgd 117891a650d1eSmrg:bsnl 117901a650d1eSmrgs/["\\]/\\&/g 117911a650d1eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 117921a650d1eSmrgD["\1"]=" \3\\\\\\n"\\/p 117931a650d1eSmrgt cont 117941a650d1eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 117951a650d1eSmrgt cont 117961a650d1eSmrgd 117971a650d1eSmrg:cont 117981a650d1eSmrgn 117991a650d1eSmrgs/.\{148\}/&'"$ac_delim"'/g 118001a650d1eSmrgt clear 118011a650d1eSmrg:clear 118021a650d1eSmrgs/\\$// 118031a650d1eSmrgt bsnlc 118041a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 118051a650d1eSmrgd 118061a650d1eSmrg:bsnlc 118071a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 118081a650d1eSmrgb cont 118091a650d1eSmrg' <confdefs.h | sed ' 118101a650d1eSmrgs/'"$ac_delim"'/"\\\ 118111a650d1eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 118121a650d1eSmrg 118131a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118141a650d1eSmrg for (key in D) D_is_set[key] = 1 118151a650d1eSmrg FS = "" 118161a650d1eSmrg} 118171a650d1eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 118181a650d1eSmrg line = \$ 0 118191a650d1eSmrg split(line, arg, " ") 118201a650d1eSmrg if (arg[1] == "#") { 118211a650d1eSmrg defundef = arg[2] 118221a650d1eSmrg mac1 = arg[3] 118231a650d1eSmrg } else { 118241a650d1eSmrg defundef = substr(arg[1], 2) 118251a650d1eSmrg mac1 = arg[2] 118261a650d1eSmrg } 118271a650d1eSmrg split(mac1, mac2, "(") #) 118281a650d1eSmrg macro = mac2[1] 118291a650d1eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 118301a650d1eSmrg if (D_is_set[macro]) { 118311a650d1eSmrg # Preserve the white space surrounding the "#". 118321a650d1eSmrg print prefix "define", macro P[macro] D[macro] 118331a650d1eSmrg next 118341a650d1eSmrg } else { 118351a650d1eSmrg # Replace #undef with comments. This is necessary, for example, 118361a650d1eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 118371a650d1eSmrg # on some systems where configure will not decide to define it. 118381a650d1eSmrg if (defundef == "undef") { 118391a650d1eSmrg print "/*", prefix defundef, macro, "*/" 118401a650d1eSmrg next 118411a650d1eSmrg } 118421a650d1eSmrg } 118431a650d1eSmrg} 118441a650d1eSmrg{ print } 118451a650d1eSmrg_ACAWK 118468108eb18Smrg_ACEOF 118471a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118481a650d1eSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 118491a650d1eSmrgfi # test -n "$CONFIG_HEADERS" 118501a650d1eSmrg 118511a650d1eSmrg 118521a650d1eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 118531a650d1eSmrgshift 118541a650d1eSmrgfor ac_tag 118551a650d1eSmrgdo 118561a650d1eSmrg case $ac_tag in 118571a650d1eSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 118581a650d1eSmrg esac 118591a650d1eSmrg case $ac_mode$ac_tag in 118601a650d1eSmrg :[FHL]*:*);; 118611a650d1eSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 118621a650d1eSmrg :[FH]-) ac_tag=-:-;; 118631a650d1eSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 118641a650d1eSmrg esac 118651a650d1eSmrg ac_save_IFS=$IFS 118661a650d1eSmrg IFS=: 118671a650d1eSmrg set x $ac_tag 118681a650d1eSmrg IFS=$ac_save_IFS 118691a650d1eSmrg shift 118701a650d1eSmrg ac_file=$1 118711a650d1eSmrg shift 118721a650d1eSmrg 118731a650d1eSmrg case $ac_mode in 118741a650d1eSmrg :L) ac_source=$1;; 118751a650d1eSmrg :[FH]) 118761a650d1eSmrg ac_file_inputs= 118771a650d1eSmrg for ac_f 118781a650d1eSmrg do 118791a650d1eSmrg case $ac_f in 118801a650d1eSmrg -) ac_f="$ac_tmp/stdin";; 118811a650d1eSmrg *) # Look for the file first in the build tree, then in the source tree 118821a650d1eSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 118831a650d1eSmrg # because $ac_f cannot contain `:'. 118841a650d1eSmrg test -f "$ac_f" || 118851a650d1eSmrg case $ac_f in 118861a650d1eSmrg [\\/$]*) false;; 118871a650d1eSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 118881a650d1eSmrg esac || 118891a650d1eSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 118901a650d1eSmrg esac 118911a650d1eSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 118921a650d1eSmrg as_fn_append ac_file_inputs " '$ac_f'" 118931a650d1eSmrg done 118941a650d1eSmrg 118951a650d1eSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 118961a650d1eSmrg # use $as_me), people would be surprised to read: 118971a650d1eSmrg # /* config.h. Generated by config.status. */ 118981a650d1eSmrg configure_input='Generated from '` 118991a650d1eSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 119001a650d1eSmrg `' by configure.' 119011a650d1eSmrg if test x"$ac_file" != x-; then 119021a650d1eSmrg configure_input="$ac_file. $configure_input" 119031a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 119041a650d1eSmrg$as_echo "$as_me: creating $ac_file" >&6;} 119051a650d1eSmrg fi 119061a650d1eSmrg # Neutralize special characters interpreted by sed in replacement strings. 119071a650d1eSmrg case $configure_input in #( 119081a650d1eSmrg *\&* | *\|* | *\\* ) 119091a650d1eSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 119101a650d1eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 119111a650d1eSmrg *) ac_sed_conf_input=$configure_input;; 119121a650d1eSmrg esac 119131a650d1eSmrg 119141a650d1eSmrg case $ac_tag in 119151a650d1eSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 119161a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 119171a650d1eSmrg esac 119181a650d1eSmrg ;; 119198108eb18Smrg esac 119208108eb18Smrg 119211a650d1eSmrg ac_dir=`$as_dirname -- "$ac_file" || 119228108eb18Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 119238108eb18Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 119248108eb18Smrg X"$ac_file" : 'X\(//\)$' \| \ 119251a650d1eSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 119261a650d1eSmrg$as_echo X"$ac_file" | 119271a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 119281a650d1eSmrg s//\1/ 119291a650d1eSmrg q 119301a650d1eSmrg } 119311a650d1eSmrg /^X\(\/\/\)[^/].*/{ 119321a650d1eSmrg s//\1/ 119331a650d1eSmrg q 119341a650d1eSmrg } 119351a650d1eSmrg /^X\(\/\/\)$/{ 119361a650d1eSmrg s//\1/ 119371a650d1eSmrg q 119381a650d1eSmrg } 119391a650d1eSmrg /^X\(\/\).*/{ 119401a650d1eSmrg s//\1/ 119411a650d1eSmrg q 119421a650d1eSmrg } 119431a650d1eSmrg s/.*/./; q'` 119441a650d1eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 119458108eb18Smrg ac_builddir=. 119468108eb18Smrg 119471a650d1eSmrgcase "$ac_dir" in 119481a650d1eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 119491a650d1eSmrg*) 119501a650d1eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 119511a650d1eSmrg # A ".." for each directory in $ac_dir_suffix. 119521a650d1eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 119531a650d1eSmrg case $ac_top_builddir_sub in 119541a650d1eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 119551a650d1eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 119561a650d1eSmrg esac ;; 119571a650d1eSmrgesac 119581a650d1eSmrgac_abs_top_builddir=$ac_pwd 119591a650d1eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 119601a650d1eSmrg# for backward compatibility: 119611a650d1eSmrgac_top_builddir=$ac_top_build_prefix 119628108eb18Smrg 119638108eb18Smrgcase $srcdir in 119641a650d1eSmrg .) # We are building in place. 119658108eb18Smrg ac_srcdir=. 119661a650d1eSmrg ac_top_srcdir=$ac_top_builddir_sub 119671a650d1eSmrg ac_abs_top_srcdir=$ac_pwd ;; 119681a650d1eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 119698108eb18Smrg ac_srcdir=$srcdir$ac_dir_suffix; 119701a650d1eSmrg ac_top_srcdir=$srcdir 119711a650d1eSmrg ac_abs_top_srcdir=$srcdir ;; 119721a650d1eSmrg *) # Relative name. 119731a650d1eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 119741a650d1eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 119751a650d1eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 119768108eb18Smrgesac 119771a650d1eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 119788108eb18Smrg 119798108eb18Smrg 119801a650d1eSmrg case $ac_mode in 119811a650d1eSmrg :F) 119821a650d1eSmrg # 119831a650d1eSmrg # CONFIG_FILE 119841a650d1eSmrg # 119858108eb18Smrg 119868108eb18Smrg case $INSTALL in 119878108eb18Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 119881a650d1eSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 119891a650d1eSmrg esac 119901a650d1eSmrg ac_MKDIR_P=$MKDIR_P 119911a650d1eSmrg case $MKDIR_P in 119921a650d1eSmrg [\\/$]* | ?:[\\/]* ) ;; 119931a650d1eSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 119948108eb18Smrg esac 119951a650d1eSmrg_ACEOF 119968108eb18Smrg 119971a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119981a650d1eSmrg# If the template does not know about datarootdir, expand it. 119991a650d1eSmrg# FIXME: This hack should be removed a few years after 2.60. 120001a650d1eSmrgac_datarootdir_hack=; ac_datarootdir_seen= 120011a650d1eSmrgac_sed_dataroot=' 120021a650d1eSmrg/datarootdir/ { 120031a650d1eSmrg p 120041a650d1eSmrg q 120051a650d1eSmrg} 120061a650d1eSmrg/@datadir@/p 120071a650d1eSmrg/@docdir@/p 120081a650d1eSmrg/@infodir@/p 120091a650d1eSmrg/@localedir@/p 120101a650d1eSmrg/@mandir@/p' 120111a650d1eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 120121a650d1eSmrg*datarootdir*) ac_datarootdir_seen=yes;; 120131a650d1eSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 120141a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 120151a650d1eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 120161a650d1eSmrg_ACEOF 120171a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120181a650d1eSmrg ac_datarootdir_hack=' 120191a650d1eSmrg s&@datadir@&$datadir&g 120201a650d1eSmrg s&@docdir@&$docdir&g 120211a650d1eSmrg s&@infodir@&$infodir&g 120221a650d1eSmrg s&@localedir@&$localedir&g 120231a650d1eSmrg s&@mandir@&$mandir&g 120241a650d1eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 120251a650d1eSmrgesac 120268108eb18Smrg_ACEOF 120271a650d1eSmrg 120281a650d1eSmrg# Neutralize VPATH when `$srcdir' = `.'. 120291a650d1eSmrg# Shell code in configure.ac might set extrasub. 120301a650d1eSmrg# FIXME: do we really want to maintain this feature? 120311a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120321a650d1eSmrgac_sed_extra="$ac_vpsub 120338108eb18Smrg$extrasub 120348108eb18Smrg_ACEOF 120351a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120368108eb18Smrg:t 120378108eb18Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 120381a650d1eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 120391a650d1eSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 120401a650d1eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 120411a650d1eSmrgs&@srcdir@&$ac_srcdir&;t t 120421a650d1eSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 120431a650d1eSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 120441a650d1eSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 120451a650d1eSmrgs&@builddir@&$ac_builddir&;t t 120461a650d1eSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 120471a650d1eSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 120481a650d1eSmrgs&@INSTALL@&$ac_INSTALL&;t t 120491a650d1eSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 120501a650d1eSmrg$ac_datarootdir_hack 120511a650d1eSmrg" 120521a650d1eSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 120531a650d1eSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120541a650d1eSmrg 120551a650d1eSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 120561a650d1eSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 120571a650d1eSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 120581a650d1eSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 120591a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 120601a650d1eSmrgwhich seems to be undefined. Please make sure it is defined" >&5 120611a650d1eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 120621a650d1eSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 120631a650d1eSmrg 120641a650d1eSmrg rm -f "$ac_tmp/stdin" 120658108eb18Smrg case $ac_file in 120661a650d1eSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 120671a650d1eSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 120681a650d1eSmrg esac \ 120691a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120701a650d1eSmrg ;; 120711a650d1eSmrg :H) 120721a650d1eSmrg # 120731a650d1eSmrg # CONFIG_HEADER 120741a650d1eSmrg # 120758108eb18Smrg if test x"$ac_file" != x-; then 120761a650d1eSmrg { 120771a650d1eSmrg $as_echo "/* $configure_input */" \ 120781a650d1eSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 120791a650d1eSmrg } >"$ac_tmp/config.h" \ 120801a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120811a650d1eSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 120821a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 120831a650d1eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 120848108eb18Smrg else 120851a650d1eSmrg rm -f "$ac_file" 120861a650d1eSmrg mv "$ac_tmp/config.h" "$ac_file" \ 120871a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120888108eb18Smrg fi 120898108eb18Smrg else 120901a650d1eSmrg $as_echo "/* $configure_input */" \ 120911a650d1eSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 120921a650d1eSmrg || as_fn_error $? "could not create -" "$LINENO" 5 120938108eb18Smrg fi 120941a650d1eSmrg# Compute "$ac_file"'s index in $config_headers. 120951a650d1eSmrg_am_arg="$ac_file" 120968108eb18Smrg_am_stamp_count=1 120978108eb18Smrgfor _am_header in $config_headers :; do 120988108eb18Smrg case $_am_header in 120991a650d1eSmrg $_am_arg | $_am_arg:* ) 121008108eb18Smrg break ;; 121018108eb18Smrg * ) 121028108eb18Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 121038108eb18Smrg esac 121048108eb18Smrgdone 121051a650d1eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 121061a650d1eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121071a650d1eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 121081a650d1eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 121091a650d1eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 121101a650d1eSmrg$as_echo X"$_am_arg" | 121111a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 121121a650d1eSmrg s//\1/ 121131a650d1eSmrg q 121141a650d1eSmrg } 121151a650d1eSmrg /^X\(\/\/\)[^/].*/{ 121161a650d1eSmrg s//\1/ 121171a650d1eSmrg q 121181a650d1eSmrg } 121191a650d1eSmrg /^X\(\/\/\)$/{ 121201a650d1eSmrg s//\1/ 121211a650d1eSmrg q 121221a650d1eSmrg } 121231a650d1eSmrg /^X\(\/\).*/{ 121241a650d1eSmrg s//\1/ 121251a650d1eSmrg q 121261a650d1eSmrg } 121271a650d1eSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 121281a650d1eSmrg ;; 121298108eb18Smrg 121301a650d1eSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 121311a650d1eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 121321a650d1eSmrg ;; 121331a650d1eSmrg esac 121348108eb18Smrg 121358108eb18Smrg 121361a650d1eSmrg case $ac_file$ac_mode in 121371a650d1eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 121388a355152Smrg # Older Autoconf quotes --file arguments for eval, but not when files 121391a650d1eSmrg # are listed without --file. Let's play safe and only enable the eval 121401a650d1eSmrg # if we detect the quoting. 121411a650d1eSmrg case $CONFIG_FILES in 121421a650d1eSmrg *\'*) eval set x "$CONFIG_FILES" ;; 121431a650d1eSmrg *) set x $CONFIG_FILES ;; 121441a650d1eSmrg esac 121451a650d1eSmrg shift 121461a650d1eSmrg for mf 121471a650d1eSmrg do 121481a650d1eSmrg # Strip MF so we end up with the name of the file. 121491a650d1eSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 121501a650d1eSmrg # Check whether this is an Automake generated Makefile or not. 121518a355152Smrg # We used to match only the files named 'Makefile.in', but 121521a650d1eSmrg # some people rename them; so instead we look at the file content. 121531a650d1eSmrg # Grep'ing the first line is not enough: some people post-process 121541a650d1eSmrg # each Makefile.in and add a new line on top of each file to say so. 121551a650d1eSmrg # Grep'ing the whole file is not good either: AIX grep has a line 121561a650d1eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 121571a650d1eSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 121581a650d1eSmrg dirpart=`$as_dirname -- "$mf" || 121598108eb18Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121608108eb18Smrg X"$mf" : 'X\(//\)[^/]' \| \ 121618108eb18Smrg X"$mf" : 'X\(//\)$' \| \ 121621a650d1eSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 121631a650d1eSmrg$as_echo X"$mf" | 121641a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 121651a650d1eSmrg s//\1/ 121661a650d1eSmrg q 121671a650d1eSmrg } 121681a650d1eSmrg /^X\(\/\/\)[^/].*/{ 121691a650d1eSmrg s//\1/ 121701a650d1eSmrg q 121711a650d1eSmrg } 121721a650d1eSmrg /^X\(\/\/\)$/{ 121731a650d1eSmrg s//\1/ 121741a650d1eSmrg q 121751a650d1eSmrg } 121761a650d1eSmrg /^X\(\/\).*/{ 121771a650d1eSmrg s//\1/ 121781a650d1eSmrg q 121791a650d1eSmrg } 121801a650d1eSmrg s/.*/./; q'` 121811a650d1eSmrg else 121821a650d1eSmrg continue 121831a650d1eSmrg fi 121841a650d1eSmrg # Extract the definition of DEPDIR, am__include, and am__quote 121858a355152Smrg # from the Makefile without running 'make'. 121861a650d1eSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 121871a650d1eSmrg test -z "$DEPDIR" && continue 121881a650d1eSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 121898a355152Smrg test -z "$am__include" && continue 121901a650d1eSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 121911a650d1eSmrg # Find all dependency output files, they are included files with 121921a650d1eSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 121931a650d1eSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 121941a650d1eSmrg # expansion. 121951a650d1eSmrg for file in `sed -n " 121961a650d1eSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 121978a355152Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 121981a650d1eSmrg # Make sure the directory exists. 121991a650d1eSmrg test -f "$dirpart/$file" && continue 122001a650d1eSmrg fdir=`$as_dirname -- "$file" || 122018108eb18Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 122028108eb18Smrg X"$file" : 'X\(//\)[^/]' \| \ 122038108eb18Smrg X"$file" : 'X\(//\)$' \| \ 122041a650d1eSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 122051a650d1eSmrg$as_echo X"$file" | 122061a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 122071a650d1eSmrg s//\1/ 122081a650d1eSmrg q 122091a650d1eSmrg } 122101a650d1eSmrg /^X\(\/\/\)[^/].*/{ 122111a650d1eSmrg s//\1/ 122121a650d1eSmrg q 122131a650d1eSmrg } 122141a650d1eSmrg /^X\(\/\/\)$/{ 122151a650d1eSmrg s//\1/ 122161a650d1eSmrg q 122171a650d1eSmrg } 122181a650d1eSmrg /^X\(\/\).*/{ 122191a650d1eSmrg s//\1/ 122201a650d1eSmrg q 122211a650d1eSmrg } 122221a650d1eSmrg s/.*/./; q'` 122231a650d1eSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 122241a650d1eSmrg # echo "creating $dirpart/$file" 122251a650d1eSmrg echo '# dummy' > "$dirpart/$file" 122268108eb18Smrg done 122278108eb18Smrg done 122281a650d1eSmrg} 122298108eb18Smrg ;; 122301a650d1eSmrg 122318108eb18Smrg esac 122321a650d1eSmrgdone # for ac_tag 122338108eb18Smrg 122348108eb18Smrg 122351a650d1eSmrgas_fn_exit 0 122368108eb18Smrg_ACEOF 122378108eb18Smrgac_clean_files=$ac_clean_files_save 122388108eb18Smrg 122391a650d1eSmrgtest $ac_write_fail = 0 || 122401a650d1eSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 122411a650d1eSmrg 122428108eb18Smrg 122438108eb18Smrg# configure is writing to config.log, and then calls config.status. 122448108eb18Smrg# config.status does its own redirection, appending to config.log. 122458108eb18Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 122468108eb18Smrg# by configure, so config.status won't be able to write to it; its 122478108eb18Smrg# output is simply discarded. So we exec the FD to /dev/null, 122488108eb18Smrg# effectively closing config.log, so it can be properly (re)opened and 122498108eb18Smrg# appended to by config.status. When coming back to configure, we 122508108eb18Smrg# need to make the FD available again. 122518108eb18Smrgif test "$no_create" != yes; then 122528108eb18Smrg ac_cs_success=: 122538108eb18Smrg ac_config_status_args= 122548108eb18Smrg test "$silent" = yes && 122558108eb18Smrg ac_config_status_args="$ac_config_status_args --quiet" 122568108eb18Smrg exec 5>/dev/null 122578108eb18Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 122588108eb18Smrg exec 5>>config.log 122598108eb18Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 122608108eb18Smrg # would make configure fail if this is the last instruction. 122611a650d1eSmrg $ac_cs_success || as_fn_exit 1 122621a650d1eSmrgfi 122631a650d1eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 122641a650d1eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 122651a650d1eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 122668108eb18Smrgfi 122678108eb18Smrg 12268