configure revision 05641e18
1f299d47fSmrg#! /bin/sh 2f299d47fSmrg# Guess values for system-dependent variables and create Makefiles. 305641e18Smrg# Generated by GNU Autoconf 2.69 for xev 1.2.2. 4f299d47fSmrg# 5f299d47fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6f299d47fSmrg# 7625f88beSmrg# 805641e18Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9625f88beSmrg# 10625f88beSmrg# 11f299d47fSmrg# This configure script is free software; the Free Software Foundation 12f299d47fSmrg# gives unlimited permission to copy, distribute and modify it. 13625f88beSmrg## -------------------- ## 14625f88beSmrg## M4sh Initialization. ## 15625f88beSmrg## -------------------- ## 16f299d47fSmrg 17f299d47fSmrg# Be more Bourne compatible 18f299d47fSmrgDUALCASE=1; export DUALCASE # for MKS sh 19625f88beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20f299d47fSmrg emulate sh 21f299d47fSmrg NULLCMD=: 22aa98702cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23f299d47fSmrg # is contrary to our usage. Disable this feature. 24f299d47fSmrg alias -g '${1+"$@"}'='"$@"' 25f299d47fSmrg setopt NO_GLOB_SUBST 26f299d47fSmrgelse 27625f88beSmrg case `(set -o) 2>/dev/null` in #( 28625f88beSmrg *posix*) : 29625f88beSmrg set -o posix ;; #( 30625f88beSmrg *) : 31625f88beSmrg ;; 32f299d47fSmrgesac 33f299d47fSmrgfi 34f299d47fSmrg 35f299d47fSmrg 36aa98702cSmrgas_nl=' 37aa98702cSmrg' 38aa98702cSmrgexport as_nl 39aa98702cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40aa98702cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43625f88beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44625f88beSmrg# but without wasting forks for bash or zsh. 45625f88beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46625f88beSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47625f88beSmrg as_echo='print -r --' 48625f88beSmrg as_echo_n='print -rn --' 49625f88beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50aa98702cSmrg as_echo='printf %s\n' 51aa98702cSmrg as_echo_n='printf %s' 52aa98702cSmrgelse 53aa98702cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54aa98702cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55aa98702cSmrg as_echo_n='/usr/ucb/echo -n' 56f299d47fSmrg else 57aa98702cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58aa98702cSmrg as_echo_n_body='eval 59aa98702cSmrg arg=$1; 60625f88beSmrg case $arg in #( 61aa98702cSmrg *"$as_nl"*) 62aa98702cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63aa98702cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64aa98702cSmrg esac; 65aa98702cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66aa98702cSmrg ' 67aa98702cSmrg export as_echo_n_body 68aa98702cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 69f299d47fSmrg fi 70aa98702cSmrg export as_echo_body 71aa98702cSmrg as_echo='sh -c $as_echo_body as_echo' 72aa98702cSmrgfi 73aa98702cSmrg 74aa98702cSmrg# The user is always right. 75aa98702cSmrgif test "${PATH_SEPARATOR+set}" != set; then 76aa98702cSmrg PATH_SEPARATOR=: 77aa98702cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78aa98702cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79aa98702cSmrg PATH_SEPARATOR=';' 80aa98702cSmrg } 81f299d47fSmrgfi 82f299d47fSmrg 83f299d47fSmrg 84f299d47fSmrg# IFS 85f299d47fSmrg# We need space, tab and new line, in precisely that order. Quoting is 86f299d47fSmrg# there to prevent editors from complaining about space-tab. 87f299d47fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88f299d47fSmrg# splitting by setting IFS to empty value.) 89f299d47fSmrgIFS=" "" $as_nl" 90f299d47fSmrg 91f299d47fSmrg# Find who we are. Look in the path if we contain no directory separator. 92625f88beSmrgas_myself= 93625f88beSmrgcase $0 in #(( 94f299d47fSmrg *[\\/]* ) as_myself=$0 ;; 95f299d47fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96f299d47fSmrgfor as_dir in $PATH 97f299d47fSmrgdo 98f299d47fSmrg IFS=$as_save_IFS 99f299d47fSmrg test -z "$as_dir" && as_dir=. 100625f88beSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101625f88beSmrg done 102f299d47fSmrgIFS=$as_save_IFS 103f299d47fSmrg 104f299d47fSmrg ;; 105f299d47fSmrgesac 106f299d47fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107f299d47fSmrg# in which case we are not to be found in the path. 108f299d47fSmrgif test "x$as_myself" = x; then 109f299d47fSmrg as_myself=$0 110f299d47fSmrgfi 111f299d47fSmrgif test ! -f "$as_myself"; then 112aa98702cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113625f88beSmrg exit 1 114f299d47fSmrgfi 115f299d47fSmrg 116625f88beSmrg# Unset variables that we do not need and which cause bugs (e.g. in 117625f88beSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118625f88beSmrg# suppresses any "Segmentation fault" message there. '((' could 119625f88beSmrg# trigger a bug in pdksh 5.2.14. 120625f88beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121625f88beSmrgdo eval test x\${$as_var+set} = xset \ 122625f88beSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123f299d47fSmrgdone 124f299d47fSmrgPS1='$ ' 125f299d47fSmrgPS2='> ' 126f299d47fSmrgPS4='+ ' 127f299d47fSmrg 128f299d47fSmrg# NLS nuisances. 129aa98702cSmrgLC_ALL=C 130aa98702cSmrgexport LC_ALL 131aa98702cSmrgLANGUAGE=C 132aa98702cSmrgexport LANGUAGE 133f299d47fSmrg 134625f88beSmrg# CDPATH. 135625f88beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136625f88beSmrg 13705641e18Smrg# Use a proper internal environment variable to ensure we don't fall 13805641e18Smrg # into an infinite loop, continuously re-executing ourselves. 13905641e18Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14005641e18Smrg _as_can_reexec=no; export _as_can_reexec; 14105641e18Smrg # We cannot yet assume a decent shell, so we have to provide a 14205641e18Smrg# neutralization value for shells without unset; and this also 14305641e18Smrg# works around shells that cannot unset nonexistent variables. 14405641e18Smrg# Preserve -v and -x to the replacement shell. 14505641e18SmrgBASH_ENV=/dev/null 14605641e18SmrgENV=/dev/null 14705641e18Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14805641e18Smrgcase $- in # (((( 14905641e18Smrg *v*x* | *x*v* ) as_opts=-vx ;; 15005641e18Smrg *v* ) as_opts=-v ;; 15105641e18Smrg *x* ) as_opts=-x ;; 15205641e18Smrg * ) as_opts= ;; 15305641e18Smrgesac 15405641e18Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15505641e18Smrg# Admittedly, this is quite paranoid, since all the known shells bail 15605641e18Smrg# out after a failed `exec'. 15705641e18Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15805641e18Smrgas_fn_exit 255 15905641e18Smrg fi 16005641e18Smrg # We don't want this to propagate to other subprocesses. 16105641e18Smrg { _as_can_reexec=; unset _as_can_reexec;} 162625f88beSmrgif test "x$CONFIG_SHELL" = x; then 163625f88beSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164625f88beSmrg emulate sh 165625f88beSmrg NULLCMD=: 166625f88beSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167625f88beSmrg # is contrary to our usage. Disable this feature. 168625f88beSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169625f88beSmrg setopt NO_GLOB_SUBST 170625f88beSmrgelse 171625f88beSmrg case \`(set -o) 2>/dev/null\` in #( 172625f88beSmrg *posix*) : 173625f88beSmrg set -o posix ;; #( 174625f88beSmrg *) : 175625f88beSmrg ;; 176625f88beSmrgesac 177625f88beSmrgfi 178625f88beSmrg" 179625f88beSmrg as_required="as_fn_return () { (exit \$1); } 180625f88beSmrgas_fn_success () { as_fn_return 0; } 181625f88beSmrgas_fn_failure () { as_fn_return 1; } 182625f88beSmrgas_fn_ret_success () { return 0; } 183625f88beSmrgas_fn_ret_failure () { return 1; } 184625f88beSmrg 185625f88beSmrgexitcode=0 186625f88beSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187625f88beSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188625f88beSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189625f88beSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190625f88beSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191625f88beSmrg 192625f88beSmrgelse 193625f88beSmrg exitcode=1; echo positional parameters were not saved. 194625f88beSmrgfi 19505641e18Smrgtest x\$exitcode = x0 || exit 1 19605641e18Smrgtest -x / || exit 1" 197625f88beSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198625f88beSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199625f88beSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200625f88beSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201625f88beSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 202625f88beSmrg if (eval "$as_required") 2>/dev/null; then : 203625f88beSmrg as_have_required=yes 204625f88beSmrgelse 205625f88beSmrg as_have_required=no 206625f88beSmrgfi 207625f88beSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208625f88beSmrg 209625f88beSmrgelse 210625f88beSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211625f88beSmrgas_found=false 212625f88beSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213625f88beSmrgdo 214625f88beSmrg IFS=$as_save_IFS 215625f88beSmrg test -z "$as_dir" && as_dir=. 216625f88beSmrg as_found=: 217625f88beSmrg case $as_dir in #( 218625f88beSmrg /*) 219625f88beSmrg for as_base in sh bash ksh sh5; do 220625f88beSmrg # Try only shells that exist, to save several forks. 221625f88beSmrg as_shell=$as_dir/$as_base 222625f88beSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223625f88beSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224625f88beSmrg CONFIG_SHELL=$as_shell as_have_required=yes 225625f88beSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226625f88beSmrg break 2 227625f88beSmrgfi 228625f88beSmrgfi 229625f88beSmrg done;; 230625f88beSmrg esac 231625f88beSmrg as_found=false 232625f88beSmrgdone 233625f88beSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234625f88beSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235625f88beSmrg CONFIG_SHELL=$SHELL as_have_required=yes 236625f88beSmrgfi; } 237625f88beSmrgIFS=$as_save_IFS 238625f88beSmrg 239625f88beSmrg 240625f88beSmrg if test "x$CONFIG_SHELL" != x; then : 24105641e18Smrg export CONFIG_SHELL 24205641e18Smrg # We cannot yet assume a decent shell, so we have to provide a 24305641e18Smrg# neutralization value for shells without unset; and this also 24405641e18Smrg# works around shells that cannot unset nonexistent variables. 24505641e18Smrg# Preserve -v and -x to the replacement shell. 24605641e18SmrgBASH_ENV=/dev/null 24705641e18SmrgENV=/dev/null 24805641e18Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24905641e18Smrgcase $- in # (((( 25005641e18Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25105641e18Smrg *v* ) as_opts=-v ;; 25205641e18Smrg *x* ) as_opts=-x ;; 25305641e18Smrg * ) as_opts= ;; 25405641e18Smrgesac 25505641e18Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25605641e18Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25705641e18Smrg# out after a failed `exec'. 25805641e18Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25905641e18Smrgexit 255 260625f88beSmrgfi 261625f88beSmrg 262625f88beSmrg if test x$as_have_required = xno; then : 263625f88beSmrg $as_echo "$0: This script requires a shell more modern than all" 264625f88beSmrg $as_echo "$0: the shells that I found on your system." 265625f88beSmrg if test x${ZSH_VERSION+set} = xset ; then 266625f88beSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267625f88beSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268625f88beSmrg else 269625f88beSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 270625f88beSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271625f88beSmrg$0: about your system, including any error possibly output 272625f88beSmrg$0: before this message. Then install a modern shell, or 273625f88beSmrg$0: manually run the script under such a shell if you do 274625f88beSmrg$0: have one." 275625f88beSmrg fi 276625f88beSmrg exit 1 277625f88beSmrgfi 278625f88beSmrgfi 279625f88beSmrgfi 280625f88beSmrgSHELL=${CONFIG_SHELL-/bin/sh} 281625f88beSmrgexport SHELL 282625f88beSmrg# Unset more variables known to interfere with behavior of common tools. 283625f88beSmrgCLICOLOR_FORCE= GREP_OPTIONS= 284625f88beSmrgunset CLICOLOR_FORCE GREP_OPTIONS 285625f88beSmrg 286625f88beSmrg## --------------------- ## 287625f88beSmrg## M4sh Shell Functions. ## 288625f88beSmrg## --------------------- ## 289625f88beSmrg# as_fn_unset VAR 290625f88beSmrg# --------------- 291625f88beSmrg# Portably unset VAR. 292625f88beSmrgas_fn_unset () 293625f88beSmrg{ 294625f88beSmrg { eval $1=; unset $1;} 295625f88beSmrg} 296625f88beSmrgas_unset=as_fn_unset 297625f88beSmrg 298625f88beSmrg# as_fn_set_status STATUS 299625f88beSmrg# ----------------------- 300625f88beSmrg# Set $? to STATUS, without forking. 301625f88beSmrgas_fn_set_status () 302625f88beSmrg{ 303625f88beSmrg return $1 304625f88beSmrg} # as_fn_set_status 305625f88beSmrg 306625f88beSmrg# as_fn_exit STATUS 307625f88beSmrg# ----------------- 308625f88beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309625f88beSmrgas_fn_exit () 310625f88beSmrg{ 311625f88beSmrg set +e 312625f88beSmrg as_fn_set_status $1 313625f88beSmrg exit $1 314625f88beSmrg} # as_fn_exit 315625f88beSmrg 316625f88beSmrg# as_fn_mkdir_p 317625f88beSmrg# ------------- 318625f88beSmrg# Create "$as_dir" as a directory, including parents if necessary. 319625f88beSmrgas_fn_mkdir_p () 320625f88beSmrg{ 321625f88beSmrg 322625f88beSmrg case $as_dir in #( 323625f88beSmrg -*) as_dir=./$as_dir;; 324625f88beSmrg esac 325625f88beSmrg test -d "$as_dir" || eval $as_mkdir_p || { 326625f88beSmrg as_dirs= 327625f88beSmrg while :; do 328625f88beSmrg case $as_dir in #( 329625f88beSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330625f88beSmrg *) as_qdir=$as_dir;; 331625f88beSmrg esac 332625f88beSmrg as_dirs="'$as_qdir' $as_dirs" 333625f88beSmrg as_dir=`$as_dirname -- "$as_dir" || 334625f88beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335625f88beSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 336625f88beSmrg X"$as_dir" : 'X\(//\)$' \| \ 337625f88beSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338625f88beSmrg$as_echo X"$as_dir" | 339625f88beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340625f88beSmrg s//\1/ 341625f88beSmrg q 342625f88beSmrg } 343625f88beSmrg /^X\(\/\/\)[^/].*/{ 344625f88beSmrg s//\1/ 345625f88beSmrg q 346625f88beSmrg } 347625f88beSmrg /^X\(\/\/\)$/{ 348625f88beSmrg s//\1/ 349625f88beSmrg q 350625f88beSmrg } 351625f88beSmrg /^X\(\/\).*/{ 352625f88beSmrg s//\1/ 353625f88beSmrg q 354625f88beSmrg } 355625f88beSmrg s/.*/./; q'` 356625f88beSmrg test -d "$as_dir" && break 357625f88beSmrg done 358625f88beSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 359625f88beSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360625f88beSmrg 361625f88beSmrg 362625f88beSmrg} # as_fn_mkdir_p 36305641e18Smrg 36405641e18Smrg# as_fn_executable_p FILE 36505641e18Smrg# ----------------------- 36605641e18Smrg# Test if FILE is an executable regular file. 36705641e18Smrgas_fn_executable_p () 36805641e18Smrg{ 36905641e18Smrg test -f "$1" && test -x "$1" 37005641e18Smrg} # as_fn_executable_p 371625f88beSmrg# as_fn_append VAR VALUE 372625f88beSmrg# ---------------------- 373625f88beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 374625f88beSmrg# advantage of any shell optimizations that allow amortized linear growth over 375625f88beSmrg# repeated appends, instead of the typical quadratic growth present in naive 376625f88beSmrg# implementations. 377625f88beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378625f88beSmrg eval 'as_fn_append () 379625f88beSmrg { 380625f88beSmrg eval $1+=\$2 381625f88beSmrg }' 382625f88beSmrgelse 383625f88beSmrg as_fn_append () 384625f88beSmrg { 385625f88beSmrg eval $1=\$$1\$2 386625f88beSmrg } 387625f88beSmrgfi # as_fn_append 388625f88beSmrg 389625f88beSmrg# as_fn_arith ARG... 390625f88beSmrg# ------------------ 391625f88beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 392625f88beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 393625f88beSmrg# must be portable across $(()) and expr. 394625f88beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395625f88beSmrg eval 'as_fn_arith () 396625f88beSmrg { 397625f88beSmrg as_val=$(( $* )) 398625f88beSmrg }' 399625f88beSmrgelse 400625f88beSmrg as_fn_arith () 401625f88beSmrg { 402625f88beSmrg as_val=`expr "$@" || test $? -eq 1` 403625f88beSmrg } 404625f88beSmrgfi # as_fn_arith 405625f88beSmrg 406625f88beSmrg 407625f88beSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 408625f88beSmrg# ---------------------------------------- 409625f88beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410625f88beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411625f88beSmrg# script with STATUS, using 1 if that was 0. 412625f88beSmrgas_fn_error () 413625f88beSmrg{ 414625f88beSmrg as_status=$1; test $as_status -eq 0 && as_status=1 415625f88beSmrg if test "$4"; then 416625f88beSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418625f88beSmrg fi 419625f88beSmrg $as_echo "$as_me: error: $2" >&2 420625f88beSmrg as_fn_exit $as_status 421625f88beSmrg} # as_fn_error 422625f88beSmrg 423f299d47fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 424f299d47fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 425f299d47fSmrg as_expr=expr 426f299d47fSmrgelse 427f299d47fSmrg as_expr=false 428f299d47fSmrgfi 429f299d47fSmrg 430f299d47fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431f299d47fSmrg as_basename=basename 432f299d47fSmrgelse 433f299d47fSmrg as_basename=false 434f299d47fSmrgfi 435f299d47fSmrg 436625f88beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437625f88beSmrg as_dirname=dirname 438625f88beSmrgelse 439625f88beSmrg as_dirname=false 440625f88beSmrgfi 441f299d47fSmrg 442f299d47fSmrgas_me=`$as_basename -- "$0" || 443f299d47fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444f299d47fSmrg X"$0" : 'X\(//\)$' \| \ 445f299d47fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 446aa98702cSmrg$as_echo X/"$0" | 447f299d47fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 448f299d47fSmrg s//\1/ 449f299d47fSmrg q 450f299d47fSmrg } 451f299d47fSmrg /^X\/\(\/\/\)$/{ 452f299d47fSmrg s//\1/ 453f299d47fSmrg q 454f299d47fSmrg } 455f299d47fSmrg /^X\/\(\/\).*/{ 456f299d47fSmrg s//\1/ 457f299d47fSmrg q 458f299d47fSmrg } 459f299d47fSmrg s/.*/./; q'` 460f299d47fSmrg 461625f88beSmrg# Avoid depending upon Character Ranges. 462625f88beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 463625f88beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464625f88beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 465625f88beSmrgas_cr_digits='0123456789' 466625f88beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 467f299d47fSmrg 468f299d47fSmrg 469625f88beSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 470625f88beSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 471625f88beSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472625f88beSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473625f88beSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474625f88beSmrg sed -n ' 475625f88beSmrg p 476625f88beSmrg /[$]LINENO/= 477625f88beSmrg ' <$as_myself | 478625f88beSmrg sed ' 479625f88beSmrg s/[$]LINENO.*/&-/ 480625f88beSmrg t lineno 481625f88beSmrg b 482625f88beSmrg :lineno 483625f88beSmrg N 484625f88beSmrg :loop 485625f88beSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486625f88beSmrg t loop 487625f88beSmrg s/-\n.*// 488625f88beSmrg ' >$as_me.lineno && 489625f88beSmrg chmod +x "$as_me.lineno" || 490625f88beSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491f299d47fSmrg 49205641e18Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49305641e18Smrg # already done that, so ensure we don't try to do so again and fall 49405641e18Smrg # in an infinite loop. This has already happened in practice. 49505641e18Smrg _as_can_reexec=no; export _as_can_reexec 496625f88beSmrg # Don't try to exec as it changes $[0], causing all sort of problems 497625f88beSmrg # (the dirname of $[0] is not the place where we might find the 498625f88beSmrg # original and so on. Autoconf is especially sensitive to this). 499625f88beSmrg . "./$as_me.lineno" 500625f88beSmrg # Exit status is that of the last command. 501625f88beSmrg exit 502f299d47fSmrg} 503f299d47fSmrg 504625f88beSmrgECHO_C= ECHO_N= ECHO_T= 505625f88beSmrgcase `echo -n x` in #((((( 506625f88beSmrg-n*) 507625f88beSmrg case `echo 'xy\c'` in 508625f88beSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509625f88beSmrg xy) ECHO_C='\c';; 510625f88beSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511625f88beSmrg ECHO_T=' ';; 512625f88beSmrg esac;; 513625f88beSmrg*) 514625f88beSmrg ECHO_N='-n';; 515625f88beSmrgesac 516f299d47fSmrg 517625f88beSmrgrm -f conf$$ conf$$.exe conf$$.file 518625f88beSmrgif test -d conf$$.dir; then 519625f88beSmrg rm -f conf$$.dir/conf$$.file 520625f88beSmrgelse 521625f88beSmrg rm -f conf$$.dir 522625f88beSmrg mkdir conf$$.dir 2>/dev/null 523f299d47fSmrgfi 524625f88beSmrgif (echo >conf$$.file) 2>/dev/null; then 525625f88beSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 526625f88beSmrg as_ln_s='ln -s' 527625f88beSmrg # ... but there are two gotchas: 528625f88beSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529625f88beSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53005641e18Smrg # In both cases, we have to default to `cp -pR'. 531625f88beSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53205641e18Smrg as_ln_s='cp -pR' 533625f88beSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 534625f88beSmrg as_ln_s=ln 535625f88beSmrg else 53605641e18Smrg as_ln_s='cp -pR' 537625f88beSmrg fi 538f299d47fSmrgelse 53905641e18Smrg as_ln_s='cp -pR' 540f299d47fSmrgfi 541625f88beSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542625f88beSmrgrmdir conf$$.dir 2>/dev/null 543f299d47fSmrg 544625f88beSmrgif mkdir -p . 2>/dev/null; then 545625f88beSmrg as_mkdir_p='mkdir -p "$as_dir"' 546625f88beSmrgelse 547625f88beSmrg test -d ./-p && rmdir ./-p 548625f88beSmrg as_mkdir_p=false 549f299d47fSmrgfi 550f299d47fSmrg 55105641e18Smrgas_test_x='test -x' 55205641e18Smrgas_executable_p=as_fn_executable_p 553f299d47fSmrg 554625f88beSmrg# Sed expression to map a string onto a valid CPP name. 555625f88beSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556f299d47fSmrg 557625f88beSmrg# Sed expression to map a string onto a valid variable name. 558625f88beSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559f299d47fSmrg 560f299d47fSmrg 561625f88beSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 562625f88beSmrgexec 6>&1 563f299d47fSmrg 564f299d47fSmrg# Name of the host. 565625f88beSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566f299d47fSmrg# so uname gets run too. 567f299d47fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568f299d47fSmrg 569f299d47fSmrg# 570f299d47fSmrg# Initializations. 571f299d47fSmrg# 572f299d47fSmrgac_default_prefix=/usr/local 573f299d47fSmrgac_clean_files= 574f299d47fSmrgac_config_libobj_dir=. 575f299d47fSmrgLIBOBJS= 576f299d47fSmrgcross_compiling=no 577f299d47fSmrgsubdirs= 578f299d47fSmrgMFLAGS= 579f299d47fSmrgMAKEFLAGS= 580f299d47fSmrg 581f299d47fSmrg# Identity of this package. 582f299d47fSmrgPACKAGE_NAME='xev' 583f299d47fSmrgPACKAGE_TARNAME='xev' 58405641e18SmrgPACKAGE_VERSION='1.2.2' 58505641e18SmrgPACKAGE_STRING='xev 1.2.2' 586f299d47fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587625f88beSmrgPACKAGE_URL='' 588f299d47fSmrg 5891a2dd139Smrgac_unique_file="Makefile.am" 590aa98702cSmrg# Factoring default headers for most tests. 591aa98702cSmrgac_includes_default="\ 592aa98702cSmrg#include <stdio.h> 593aa98702cSmrg#ifdef HAVE_SYS_TYPES_H 594aa98702cSmrg# include <sys/types.h> 595aa98702cSmrg#endif 596aa98702cSmrg#ifdef HAVE_SYS_STAT_H 597aa98702cSmrg# include <sys/stat.h> 598aa98702cSmrg#endif 599aa98702cSmrg#ifdef STDC_HEADERS 600aa98702cSmrg# include <stdlib.h> 601aa98702cSmrg# include <stddef.h> 602aa98702cSmrg#else 603aa98702cSmrg# ifdef HAVE_STDLIB_H 604aa98702cSmrg# include <stdlib.h> 605aa98702cSmrg# endif 606aa98702cSmrg#endif 607aa98702cSmrg#ifdef HAVE_STRING_H 608aa98702cSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609aa98702cSmrg# include <memory.h> 610aa98702cSmrg# endif 611aa98702cSmrg# include <string.h> 612aa98702cSmrg#endif 613aa98702cSmrg#ifdef HAVE_STRINGS_H 614aa98702cSmrg# include <strings.h> 615aa98702cSmrg#endif 616aa98702cSmrg#ifdef HAVE_INTTYPES_H 617aa98702cSmrg# include <inttypes.h> 618aa98702cSmrg#endif 619aa98702cSmrg#ifdef HAVE_STDINT_H 620aa98702cSmrg# include <stdint.h> 621aa98702cSmrg#endif 622aa98702cSmrg#ifdef HAVE_UNISTD_H 623aa98702cSmrg# include <unistd.h> 624aa98702cSmrg#endif" 625aa98702cSmrg 626aa98702cSmrgac_subst_vars='am__EXEEXT_FALSE 627aa98702cSmrgam__EXEEXT_TRUE 628aa98702cSmrgLTLIBOBJS 629aa98702cSmrgLIBOBJS 630f299d47fSmrgXEV_LIBS 631aa98702cSmrgXEV_CFLAGS 632625f88beSmrgMAN_SUBSTS 633625f88beSmrgXORG_MAN_PAGE 634f299d47fSmrgADMIN_MAN_DIR 635aa98702cSmrgDRIVER_MAN_DIR 636aa98702cSmrgMISC_MAN_DIR 637aa98702cSmrgFILE_MAN_DIR 638aa98702cSmrgLIB_MAN_DIR 639aa98702cSmrgAPP_MAN_DIR 640aa98702cSmrgADMIN_MAN_SUFFIX 641aa98702cSmrgDRIVER_MAN_SUFFIX 642aa98702cSmrgMISC_MAN_SUFFIX 643aa98702cSmrgFILE_MAN_SUFFIX 644aa98702cSmrgLIB_MAN_SUFFIX 645aa98702cSmrgAPP_MAN_SUFFIX 646625f88beSmrgSED 647aa98702cSmrghost_os 648aa98702cSmrghost_vendor 649aa98702cSmrghost_cpu 650aa98702cSmrghost 651aa98702cSmrgbuild_os 652aa98702cSmrgbuild_vendor 653aa98702cSmrgbuild_cpu 654aa98702cSmrgbuild 655625f88beSmrgINSTALL_CMD 656625f88beSmrgPKG_CONFIG 657aa98702cSmrgCHANGELOG_CMD 6581a2dd139SmrgSTRICT_CFLAGS 659aa98702cSmrgCWARNFLAGS 6601a2dd139SmrgBASE_CFLAGS 66105641e18SmrgAM_BACKSLASH 66205641e18SmrgAM_DEFAULT_VERBOSITY 66305641e18SmrgAM_DEFAULT_V 66405641e18SmrgAM_V 665aa98702cSmrgam__fastdepCC_FALSE 666aa98702cSmrgam__fastdepCC_TRUE 667aa98702cSmrgCCDEPMODE 6681a2dd139Smrgam__nodep 669aa98702cSmrgAMDEPBACKSLASH 670aa98702cSmrgAMDEP_FALSE 671aa98702cSmrgAMDEP_TRUE 672aa98702cSmrgam__quote 673aa98702cSmrgam__include 674aa98702cSmrgDEPDIR 675aa98702cSmrgam__untar 676aa98702cSmrgam__tar 677aa98702cSmrgAMTAR 678aa98702cSmrgam__leading_dot 679aa98702cSmrgSET_MAKE 680aa98702cSmrgAWK 681aa98702cSmrgmkdir_p 682aa98702cSmrgMKDIR_P 683aa98702cSmrgINSTALL_STRIP_PROGRAM 684aa98702cSmrgSTRIP 685aa98702cSmrginstall_sh 686aa98702cSmrgMAKEINFO 687aa98702cSmrgAUTOHEADER 688aa98702cSmrgAUTOMAKE 689aa98702cSmrgAUTOCONF 690aa98702cSmrgACLOCAL 691aa98702cSmrgVERSION 692aa98702cSmrgPACKAGE 693aa98702cSmrgCYGPATH_W 694aa98702cSmrgam__isrc 695aa98702cSmrgINSTALL_DATA 696aa98702cSmrgINSTALL_SCRIPT 697aa98702cSmrgINSTALL_PROGRAM 6981a2dd139SmrgEGREP 6991a2dd139SmrgGREP 7001a2dd139SmrgCPP 7011a2dd139SmrgOBJEXT 7021a2dd139SmrgEXEEXT 7031a2dd139Smrgac_ct_CC 7041a2dd139SmrgCPPFLAGS 7051a2dd139SmrgLDFLAGS 7061a2dd139SmrgCFLAGS 7071a2dd139SmrgCC 708aa98702cSmrgtarget_alias 709aa98702cSmrghost_alias 710aa98702cSmrgbuild_alias 711aa98702cSmrgLIBS 712aa98702cSmrgECHO_T 713aa98702cSmrgECHO_N 714aa98702cSmrgECHO_C 715aa98702cSmrgDEFS 716aa98702cSmrgmandir 717aa98702cSmrglocaledir 718aa98702cSmrglibdir 719aa98702cSmrgpsdir 720aa98702cSmrgpdfdir 721aa98702cSmrgdvidir 722aa98702cSmrghtmldir 723aa98702cSmrginfodir 724aa98702cSmrgdocdir 725aa98702cSmrgoldincludedir 726aa98702cSmrgincludedir 727aa98702cSmrglocalstatedir 728aa98702cSmrgsharedstatedir 729aa98702cSmrgsysconfdir 730aa98702cSmrgdatadir 731aa98702cSmrgdatarootdir 732aa98702cSmrglibexecdir 733aa98702cSmrgsbindir 734aa98702cSmrgbindir 735aa98702cSmrgprogram_transform_name 736aa98702cSmrgprefix 737aa98702cSmrgexec_prefix 738625f88beSmrgPACKAGE_URL 739aa98702cSmrgPACKAGE_BUGREPORT 740aa98702cSmrgPACKAGE_STRING 741aa98702cSmrgPACKAGE_VERSION 742aa98702cSmrgPACKAGE_TARNAME 743aa98702cSmrgPACKAGE_NAME 744aa98702cSmrgPATH_SEPARATOR 745aa98702cSmrgSHELL' 746f299d47fSmrgac_subst_files='' 747aa98702cSmrgac_user_opts=' 748aa98702cSmrgenable_option_checking 749aa98702cSmrgenable_dependency_tracking 75005641e18Smrgenable_silent_rules 7511a2dd139Smrgenable_selective_werror 752aa98702cSmrgenable_strict_compilation 753aa98702cSmrg' 754f299d47fSmrg ac_precious_vars='build_alias 755f299d47fSmrghost_alias 756f299d47fSmrgtarget_alias 757f299d47fSmrgCC 758f299d47fSmrgCFLAGS 759f299d47fSmrgLDFLAGS 760f299d47fSmrgLIBS 761f299d47fSmrgCPPFLAGS 762aa98702cSmrgCPP 763f299d47fSmrgPKG_CONFIG 764f299d47fSmrgXEV_CFLAGS 765f299d47fSmrgXEV_LIBS' 766f299d47fSmrg 767f299d47fSmrg 768f299d47fSmrg# Initialize some variables set by options. 769f299d47fSmrgac_init_help= 770f299d47fSmrgac_init_version=false 771aa98702cSmrgac_unrecognized_opts= 772aa98702cSmrgac_unrecognized_sep= 773f299d47fSmrg# The variables have the same names as the options, with 774f299d47fSmrg# dashes changed to underlines. 775f299d47fSmrgcache_file=/dev/null 776f299d47fSmrgexec_prefix=NONE 777f299d47fSmrgno_create= 778f299d47fSmrgno_recursion= 779f299d47fSmrgprefix=NONE 780f299d47fSmrgprogram_prefix=NONE 781f299d47fSmrgprogram_suffix=NONE 782f299d47fSmrgprogram_transform_name=s,x,x, 783f299d47fSmrgsilent= 784f299d47fSmrgsite= 785f299d47fSmrgsrcdir= 786f299d47fSmrgverbose= 787f299d47fSmrgx_includes=NONE 788f299d47fSmrgx_libraries=NONE 789f299d47fSmrg 790f299d47fSmrg# Installation directory options. 791f299d47fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 792f299d47fSmrg# and all the variables that are supposed to be based on exec_prefix 793f299d47fSmrg# by default will actually change. 794f299d47fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 795f299d47fSmrg# (The list follows the same order as the GNU Coding Standards.) 796f299d47fSmrgbindir='${exec_prefix}/bin' 797f299d47fSmrgsbindir='${exec_prefix}/sbin' 798f299d47fSmrglibexecdir='${exec_prefix}/libexec' 799f299d47fSmrgdatarootdir='${prefix}/share' 800f299d47fSmrgdatadir='${datarootdir}' 801f299d47fSmrgsysconfdir='${prefix}/etc' 802f299d47fSmrgsharedstatedir='${prefix}/com' 803f299d47fSmrglocalstatedir='${prefix}/var' 804f299d47fSmrgincludedir='${prefix}/include' 805f299d47fSmrgoldincludedir='/usr/include' 806f299d47fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 807f299d47fSmrginfodir='${datarootdir}/info' 808f299d47fSmrghtmldir='${docdir}' 809f299d47fSmrgdvidir='${docdir}' 810f299d47fSmrgpdfdir='${docdir}' 811f299d47fSmrgpsdir='${docdir}' 812f299d47fSmrglibdir='${exec_prefix}/lib' 813f299d47fSmrglocaledir='${datarootdir}/locale' 814f299d47fSmrgmandir='${datarootdir}/man' 815f299d47fSmrg 816f299d47fSmrgac_prev= 817f299d47fSmrgac_dashdash= 818f299d47fSmrgfor ac_option 819f299d47fSmrgdo 820f299d47fSmrg # If the previous option needs an argument, assign it. 821f299d47fSmrg if test -n "$ac_prev"; then 822f299d47fSmrg eval $ac_prev=\$ac_option 823f299d47fSmrg ac_prev= 824f299d47fSmrg continue 825f299d47fSmrg fi 826f299d47fSmrg 827f299d47fSmrg case $ac_option in 828625f88beSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 829625f88beSmrg *=) ac_optarg= ;; 830625f88beSmrg *) ac_optarg=yes ;; 831f299d47fSmrg esac 832f299d47fSmrg 833f299d47fSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 834f299d47fSmrg 835f299d47fSmrg case $ac_dashdash$ac_option in 836f299d47fSmrg --) 837f299d47fSmrg ac_dashdash=yes ;; 838f299d47fSmrg 839f299d47fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 840f299d47fSmrg ac_prev=bindir ;; 841f299d47fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842f299d47fSmrg bindir=$ac_optarg ;; 843f299d47fSmrg 844f299d47fSmrg -build | --build | --buil | --bui | --bu) 845f299d47fSmrg ac_prev=build_alias ;; 846f299d47fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847f299d47fSmrg build_alias=$ac_optarg ;; 848f299d47fSmrg 849f299d47fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 850f299d47fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851f299d47fSmrg ac_prev=cache_file ;; 852f299d47fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853f299d47fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854f299d47fSmrg cache_file=$ac_optarg ;; 855f299d47fSmrg 856f299d47fSmrg --config-cache | -C) 857f299d47fSmrg cache_file=config.cache ;; 858f299d47fSmrg 859f299d47fSmrg -datadir | --datadir | --datadi | --datad) 860f299d47fSmrg ac_prev=datadir ;; 861f299d47fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 862f299d47fSmrg datadir=$ac_optarg ;; 863f299d47fSmrg 864f299d47fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865f299d47fSmrg | --dataroo | --dataro | --datar) 866f299d47fSmrg ac_prev=datarootdir ;; 867f299d47fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868f299d47fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869f299d47fSmrg datarootdir=$ac_optarg ;; 870f299d47fSmrg 871f299d47fSmrg -disable-* | --disable-*) 872aa98702cSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873f299d47fSmrg # Reject names that are not valid shell variable names. 874aa98702cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875625f88beSmrg as_fn_error $? "invalid feature name: $ac_useropt" 876aa98702cSmrg ac_useropt_orig=$ac_useropt 877aa98702cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878aa98702cSmrg case $ac_user_opts in 879aa98702cSmrg *" 880aa98702cSmrg"enable_$ac_useropt" 881aa98702cSmrg"*) ;; 882aa98702cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883aa98702cSmrg ac_unrecognized_sep=', ';; 884aa98702cSmrg esac 885aa98702cSmrg eval enable_$ac_useropt=no ;; 886f299d47fSmrg 887f299d47fSmrg -docdir | --docdir | --docdi | --doc | --do) 888f299d47fSmrg ac_prev=docdir ;; 889f299d47fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890f299d47fSmrg docdir=$ac_optarg ;; 891f299d47fSmrg 892f299d47fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893f299d47fSmrg ac_prev=dvidir ;; 894f299d47fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895f299d47fSmrg dvidir=$ac_optarg ;; 896f299d47fSmrg 897f299d47fSmrg -enable-* | --enable-*) 898aa98702cSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899f299d47fSmrg # Reject names that are not valid shell variable names. 900aa98702cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901625f88beSmrg as_fn_error $? "invalid feature name: $ac_useropt" 902aa98702cSmrg ac_useropt_orig=$ac_useropt 903aa98702cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904aa98702cSmrg case $ac_user_opts in 905aa98702cSmrg *" 906aa98702cSmrg"enable_$ac_useropt" 907aa98702cSmrg"*) ;; 908aa98702cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909aa98702cSmrg ac_unrecognized_sep=', ';; 910aa98702cSmrg esac 911aa98702cSmrg eval enable_$ac_useropt=\$ac_optarg ;; 912f299d47fSmrg 913f299d47fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914f299d47fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915f299d47fSmrg | --exec | --exe | --ex) 916f299d47fSmrg ac_prev=exec_prefix ;; 917f299d47fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918f299d47fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919f299d47fSmrg | --exec=* | --exe=* | --ex=*) 920f299d47fSmrg exec_prefix=$ac_optarg ;; 921f299d47fSmrg 922f299d47fSmrg -gas | --gas | --ga | --g) 923f299d47fSmrg # Obsolete; use --with-gas. 924f299d47fSmrg with_gas=yes ;; 925f299d47fSmrg 926f299d47fSmrg -help | --help | --hel | --he | -h) 927f299d47fSmrg ac_init_help=long ;; 928f299d47fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929f299d47fSmrg ac_init_help=recursive ;; 930f299d47fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931f299d47fSmrg ac_init_help=short ;; 932f299d47fSmrg 933f299d47fSmrg -host | --host | --hos | --ho) 934f299d47fSmrg ac_prev=host_alias ;; 935f299d47fSmrg -host=* | --host=* | --hos=* | --ho=*) 936f299d47fSmrg host_alias=$ac_optarg ;; 937f299d47fSmrg 938f299d47fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939f299d47fSmrg ac_prev=htmldir ;; 940f299d47fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941f299d47fSmrg | --ht=*) 942f299d47fSmrg htmldir=$ac_optarg ;; 943f299d47fSmrg 944f299d47fSmrg -includedir | --includedir | --includedi | --included | --include \ 945f299d47fSmrg | --includ | --inclu | --incl | --inc) 946f299d47fSmrg ac_prev=includedir ;; 947f299d47fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948f299d47fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 949f299d47fSmrg includedir=$ac_optarg ;; 950f299d47fSmrg 951f299d47fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 952f299d47fSmrg ac_prev=infodir ;; 953f299d47fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954f299d47fSmrg infodir=$ac_optarg ;; 955f299d47fSmrg 956f299d47fSmrg -libdir | --libdir | --libdi | --libd) 957f299d47fSmrg ac_prev=libdir ;; 958f299d47fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 959f299d47fSmrg libdir=$ac_optarg ;; 960f299d47fSmrg 961f299d47fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962f299d47fSmrg | --libexe | --libex | --libe) 963f299d47fSmrg ac_prev=libexecdir ;; 964f299d47fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965f299d47fSmrg | --libexe=* | --libex=* | --libe=*) 966f299d47fSmrg libexecdir=$ac_optarg ;; 967f299d47fSmrg 968f299d47fSmrg -localedir | --localedir | --localedi | --localed | --locale) 969f299d47fSmrg ac_prev=localedir ;; 970f299d47fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971f299d47fSmrg localedir=$ac_optarg ;; 972f299d47fSmrg 973f299d47fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 974f299d47fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 975f299d47fSmrg ac_prev=localstatedir ;; 976f299d47fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977f299d47fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978f299d47fSmrg localstatedir=$ac_optarg ;; 979f299d47fSmrg 980f299d47fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981f299d47fSmrg ac_prev=mandir ;; 982f299d47fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983f299d47fSmrg mandir=$ac_optarg ;; 984f299d47fSmrg 985f299d47fSmrg -nfp | --nfp | --nf) 986f299d47fSmrg # Obsolete; use --without-fp. 987f299d47fSmrg with_fp=no ;; 988f299d47fSmrg 989f299d47fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990f299d47fSmrg | --no-cr | --no-c | -n) 991f299d47fSmrg no_create=yes ;; 992f299d47fSmrg 993f299d47fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994f299d47fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995f299d47fSmrg no_recursion=yes ;; 996f299d47fSmrg 997f299d47fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998f299d47fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999f299d47fSmrg | --oldin | --oldi | --old | --ol | --o) 1000f299d47fSmrg ac_prev=oldincludedir ;; 1001f299d47fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002f299d47fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003f299d47fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004f299d47fSmrg oldincludedir=$ac_optarg ;; 1005f299d47fSmrg 1006f299d47fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007f299d47fSmrg ac_prev=prefix ;; 1008f299d47fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009f299d47fSmrg prefix=$ac_optarg ;; 1010f299d47fSmrg 1011f299d47fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012f299d47fSmrg | --program-pre | --program-pr | --program-p) 1013f299d47fSmrg ac_prev=program_prefix ;; 1014f299d47fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015f299d47fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016f299d47fSmrg program_prefix=$ac_optarg ;; 1017f299d47fSmrg 1018f299d47fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019f299d47fSmrg | --program-suf | --program-su | --program-s) 1020f299d47fSmrg ac_prev=program_suffix ;; 1021f299d47fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022f299d47fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023f299d47fSmrg program_suffix=$ac_optarg ;; 1024f299d47fSmrg 1025f299d47fSmrg -program-transform-name | --program-transform-name \ 1026f299d47fSmrg | --program-transform-nam | --program-transform-na \ 1027f299d47fSmrg | --program-transform-n | --program-transform- \ 1028f299d47fSmrg | --program-transform | --program-transfor \ 1029f299d47fSmrg | --program-transfo | --program-transf \ 1030f299d47fSmrg | --program-trans | --program-tran \ 1031f299d47fSmrg | --progr-tra | --program-tr | --program-t) 1032f299d47fSmrg ac_prev=program_transform_name ;; 1033f299d47fSmrg -program-transform-name=* | --program-transform-name=* \ 1034f299d47fSmrg | --program-transform-nam=* | --program-transform-na=* \ 1035f299d47fSmrg | --program-transform-n=* | --program-transform-=* \ 1036f299d47fSmrg | --program-transform=* | --program-transfor=* \ 1037f299d47fSmrg | --program-transfo=* | --program-transf=* \ 1038f299d47fSmrg | --program-trans=* | --program-tran=* \ 1039f299d47fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1040f299d47fSmrg program_transform_name=$ac_optarg ;; 1041f299d47fSmrg 1042f299d47fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043f299d47fSmrg ac_prev=pdfdir ;; 1044f299d47fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045f299d47fSmrg pdfdir=$ac_optarg ;; 1046f299d47fSmrg 1047f299d47fSmrg -psdir | --psdir | --psdi | --psd | --ps) 1048f299d47fSmrg ac_prev=psdir ;; 1049f299d47fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050f299d47fSmrg psdir=$ac_optarg ;; 1051f299d47fSmrg 1052f299d47fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053f299d47fSmrg | -silent | --silent | --silen | --sile | --sil) 1054f299d47fSmrg silent=yes ;; 1055f299d47fSmrg 1056f299d47fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057f299d47fSmrg ac_prev=sbindir ;; 1058f299d47fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059f299d47fSmrg | --sbi=* | --sb=*) 1060f299d47fSmrg sbindir=$ac_optarg ;; 1061f299d47fSmrg 1062f299d47fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063f299d47fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064f299d47fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1065f299d47fSmrg | --sha | --sh) 1066f299d47fSmrg ac_prev=sharedstatedir ;; 1067f299d47fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068f299d47fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069f299d47fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070f299d47fSmrg | --sha=* | --sh=*) 1071f299d47fSmrg sharedstatedir=$ac_optarg ;; 1072f299d47fSmrg 1073f299d47fSmrg -site | --site | --sit) 1074f299d47fSmrg ac_prev=site ;; 1075f299d47fSmrg -site=* | --site=* | --sit=*) 1076f299d47fSmrg site=$ac_optarg ;; 1077f299d47fSmrg 1078f299d47fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079f299d47fSmrg ac_prev=srcdir ;; 1080f299d47fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081f299d47fSmrg srcdir=$ac_optarg ;; 1082f299d47fSmrg 1083f299d47fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084f299d47fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1085f299d47fSmrg ac_prev=sysconfdir ;; 1086f299d47fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087f299d47fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088f299d47fSmrg sysconfdir=$ac_optarg ;; 1089f299d47fSmrg 1090f299d47fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1091f299d47fSmrg ac_prev=target_alias ;; 1092f299d47fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093f299d47fSmrg target_alias=$ac_optarg ;; 1094f299d47fSmrg 1095f299d47fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096f299d47fSmrg verbose=yes ;; 1097f299d47fSmrg 1098f299d47fSmrg -version | --version | --versio | --versi | --vers | -V) 1099f299d47fSmrg ac_init_version=: ;; 1100f299d47fSmrg 1101f299d47fSmrg -with-* | --with-*) 1102aa98702cSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103f299d47fSmrg # Reject names that are not valid shell variable names. 1104aa98702cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105625f88beSmrg as_fn_error $? "invalid package name: $ac_useropt" 1106aa98702cSmrg ac_useropt_orig=$ac_useropt 1107aa98702cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108aa98702cSmrg case $ac_user_opts in 1109aa98702cSmrg *" 1110aa98702cSmrg"with_$ac_useropt" 1111aa98702cSmrg"*) ;; 1112aa98702cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113aa98702cSmrg ac_unrecognized_sep=', ';; 1114aa98702cSmrg esac 1115aa98702cSmrg eval with_$ac_useropt=\$ac_optarg ;; 1116f299d47fSmrg 1117f299d47fSmrg -without-* | --without-*) 1118aa98702cSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119f299d47fSmrg # Reject names that are not valid shell variable names. 1120aa98702cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121625f88beSmrg as_fn_error $? "invalid package name: $ac_useropt" 1122aa98702cSmrg ac_useropt_orig=$ac_useropt 1123aa98702cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124aa98702cSmrg case $ac_user_opts in 1125aa98702cSmrg *" 1126aa98702cSmrg"with_$ac_useropt" 1127aa98702cSmrg"*) ;; 1128aa98702cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129aa98702cSmrg ac_unrecognized_sep=', ';; 1130aa98702cSmrg esac 1131aa98702cSmrg eval with_$ac_useropt=no ;; 1132f299d47fSmrg 1133f299d47fSmrg --x) 1134f299d47fSmrg # Obsolete; use --with-x. 1135f299d47fSmrg with_x=yes ;; 1136f299d47fSmrg 1137f299d47fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138f299d47fSmrg | --x-incl | --x-inc | --x-in | --x-i) 1139f299d47fSmrg ac_prev=x_includes ;; 1140f299d47fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141f299d47fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142f299d47fSmrg x_includes=$ac_optarg ;; 1143f299d47fSmrg 1144f299d47fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145f299d47fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146f299d47fSmrg ac_prev=x_libraries ;; 1147f299d47fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148f299d47fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149f299d47fSmrg x_libraries=$ac_optarg ;; 1150f299d47fSmrg 1151625f88beSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152625f88beSmrgTry \`$0 --help' for more information" 1153f299d47fSmrg ;; 1154f299d47fSmrg 1155f299d47fSmrg *=*) 1156f299d47fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157f299d47fSmrg # Reject names that are not valid shell variable names. 1158625f88beSmrg case $ac_envvar in #( 1159625f88beSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160625f88beSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161625f88beSmrg esac 1162f299d47fSmrg eval $ac_envvar=\$ac_optarg 1163f299d47fSmrg export $ac_envvar ;; 1164f299d47fSmrg 1165f299d47fSmrg *) 1166f299d47fSmrg # FIXME: should be removed in autoconf 3.0. 1167aa98702cSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168f299d47fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169aa98702cSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170625f88beSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171f299d47fSmrg ;; 1172f299d47fSmrg 1173f299d47fSmrg esac 1174f299d47fSmrgdone 1175f299d47fSmrg 1176f299d47fSmrgif test -n "$ac_prev"; then 1177f299d47fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178625f88beSmrg as_fn_error $? "missing argument to $ac_option" 1179f299d47fSmrgfi 1180f299d47fSmrg 1181aa98702cSmrgif test -n "$ac_unrecognized_opts"; then 1182aa98702cSmrg case $enable_option_checking in 1183aa98702cSmrg no) ;; 1184625f88beSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185aa98702cSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186aa98702cSmrg esac 1187aa98702cSmrgfi 1188aa98702cSmrg 1189aa98702cSmrg# Check all directory arguments for consistency. 1190f299d47fSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191f299d47fSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1192f299d47fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193f299d47fSmrg libdir localedir mandir 1194f299d47fSmrgdo 1195f299d47fSmrg eval ac_val=\$$ac_var 1196aa98702cSmrg # Remove trailing slashes. 1197aa98702cSmrg case $ac_val in 1198aa98702cSmrg */ ) 1199aa98702cSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200aa98702cSmrg eval $ac_var=\$ac_val;; 1201aa98702cSmrg esac 1202aa98702cSmrg # Be sure to have absolute directory names. 1203f299d47fSmrg case $ac_val in 1204f299d47fSmrg [\\/$]* | ?:[\\/]* ) continue;; 1205f299d47fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206f299d47fSmrg esac 1207625f88beSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208f299d47fSmrgdone 1209f299d47fSmrg 1210f299d47fSmrg# There might be people who depend on the old broken behavior: `$host' 1211f299d47fSmrg# used to hold the argument of --host etc. 1212f299d47fSmrg# FIXME: To remove some day. 1213f299d47fSmrgbuild=$build_alias 1214f299d47fSmrghost=$host_alias 1215f299d47fSmrgtarget=$target_alias 1216f299d47fSmrg 1217f299d47fSmrg# FIXME: To remove some day. 1218f299d47fSmrgif test "x$host_alias" != x; then 1219f299d47fSmrg if test "x$build_alias" = x; then 1220f299d47fSmrg cross_compiling=maybe 1221f299d47fSmrg elif test "x$build_alias" != "x$host_alias"; then 1222f299d47fSmrg cross_compiling=yes 1223f299d47fSmrg fi 1224f299d47fSmrgfi 1225f299d47fSmrg 1226f299d47fSmrgac_tool_prefix= 1227f299d47fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1228f299d47fSmrg 1229f299d47fSmrgtest "$silent" = yes && exec 6>/dev/null 1230f299d47fSmrg 1231f299d47fSmrg 1232f299d47fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1233f299d47fSmrgac_ls_di=`ls -di .` && 1234f299d47fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235625f88beSmrg as_fn_error $? "working directory cannot be determined" 1236f299d47fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237625f88beSmrg as_fn_error $? "pwd does not report name of working directory" 1238f299d47fSmrg 1239f299d47fSmrg 1240f299d47fSmrg# Find the source files, if location was not specified. 1241f299d47fSmrgif test -z "$srcdir"; then 1242f299d47fSmrg ac_srcdir_defaulted=yes 1243f299d47fSmrg # Try the directory containing this script, then the parent directory. 1244aa98702cSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1245aa98702cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246aa98702cSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1247aa98702cSmrg X"$as_myself" : 'X\(//\)$' \| \ 1248aa98702cSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249aa98702cSmrg$as_echo X"$as_myself" | 1250f299d47fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251f299d47fSmrg s//\1/ 1252f299d47fSmrg q 1253f299d47fSmrg } 1254f299d47fSmrg /^X\(\/\/\)[^/].*/{ 1255f299d47fSmrg s//\1/ 1256f299d47fSmrg q 1257f299d47fSmrg } 1258f299d47fSmrg /^X\(\/\/\)$/{ 1259f299d47fSmrg s//\1/ 1260f299d47fSmrg q 1261f299d47fSmrg } 1262f299d47fSmrg /^X\(\/\).*/{ 1263f299d47fSmrg s//\1/ 1264f299d47fSmrg q 1265f299d47fSmrg } 1266f299d47fSmrg s/.*/./; q'` 1267f299d47fSmrg srcdir=$ac_confdir 1268f299d47fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1269f299d47fSmrg srcdir=.. 1270f299d47fSmrg fi 1271f299d47fSmrgelse 1272f299d47fSmrg ac_srcdir_defaulted=no 1273f299d47fSmrgfi 1274f299d47fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1275f299d47fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276625f88beSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277f299d47fSmrgfi 1278f299d47fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279f299d47fSmrgac_abs_confdir=`( 1280625f88beSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281f299d47fSmrg pwd)` 1282f299d47fSmrg# When building in place, set srcdir=. 1283f299d47fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1284f299d47fSmrg srcdir=. 1285f299d47fSmrgfi 1286f299d47fSmrg# Remove unnecessary trailing slashes from srcdir. 1287f299d47fSmrg# Double slashes in file names in object file debugging info 1288f299d47fSmrg# mess up M-x gdb in Emacs. 1289f299d47fSmrgcase $srcdir in 1290f299d47fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291f299d47fSmrgesac 1292f299d47fSmrgfor ac_var in $ac_precious_vars; do 1293f299d47fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294f299d47fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1295f299d47fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296f299d47fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297f299d47fSmrgdone 1298f299d47fSmrg 1299f299d47fSmrg# 1300f299d47fSmrg# Report the --help message. 1301f299d47fSmrg# 1302f299d47fSmrgif test "$ac_init_help" = "long"; then 1303f299d47fSmrg # Omit some internal or obsolete options to make the list less imposing. 1304f299d47fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1305f299d47fSmrg cat <<_ACEOF 130605641e18Smrg\`configure' configures xev 1.2.2 to adapt to many kinds of systems. 1307f299d47fSmrg 1308f299d47fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1309f299d47fSmrg 1310f299d47fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1311f299d47fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1312f299d47fSmrg 1313f299d47fSmrgDefaults for the options are specified in brackets. 1314f299d47fSmrg 1315f299d47fSmrgConfiguration: 1316f299d47fSmrg -h, --help display this help and exit 1317f299d47fSmrg --help=short display options specific to this package 1318f299d47fSmrg --help=recursive display the short help of all the included packages 1319f299d47fSmrg -V, --version display version information and exit 1320625f88beSmrg -q, --quiet, --silent do not print \`checking ...' messages 1321f299d47fSmrg --cache-file=FILE cache test results in FILE [disabled] 1322f299d47fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1323f299d47fSmrg -n, --no-create do not create output files 1324f299d47fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325f299d47fSmrg 1326f299d47fSmrgInstallation directories: 1327f299d47fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1328aa98702cSmrg [$ac_default_prefix] 1329f299d47fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330aa98702cSmrg [PREFIX] 1331f299d47fSmrg 1332f299d47fSmrgBy default, \`make install' will install all the files in 1333f299d47fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334f299d47fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335f299d47fSmrgfor instance \`--prefix=\$HOME'. 1336f299d47fSmrg 1337f299d47fSmrgFor better control, use the options below. 1338f299d47fSmrg 1339f299d47fSmrgFine tuning of the installation directories: 1340aa98702cSmrg --bindir=DIR user executables [EPREFIX/bin] 1341aa98702cSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1342aa98702cSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1343aa98702cSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344aa98702cSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345aa98702cSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346aa98702cSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1347aa98702cSmrg --includedir=DIR C header files [PREFIX/include] 1348aa98702cSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349aa98702cSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350aa98702cSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351aa98702cSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1352aa98702cSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353aa98702cSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1354aa98702cSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xev] 1355aa98702cSmrg --htmldir=DIR html documentation [DOCDIR] 1356aa98702cSmrg --dvidir=DIR dvi documentation [DOCDIR] 1357aa98702cSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1358aa98702cSmrg --psdir=DIR ps documentation [DOCDIR] 1359f299d47fSmrg_ACEOF 1360f299d47fSmrg 1361f299d47fSmrg cat <<\_ACEOF 1362f299d47fSmrg 1363f299d47fSmrgProgram names: 1364f299d47fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1365f299d47fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1366f299d47fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367f299d47fSmrg 1368f299d47fSmrgSystem types: 1369f299d47fSmrg --build=BUILD configure for building on BUILD [guessed] 1370f299d47fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371f299d47fSmrg_ACEOF 1372f299d47fSmrgfi 1373f299d47fSmrg 1374f299d47fSmrgif test -n "$ac_init_help"; then 1375f299d47fSmrg case $ac_init_help in 137605641e18Smrg short | recursive ) echo "Configuration of xev 1.2.2:";; 1377f299d47fSmrg esac 1378f299d47fSmrg cat <<\_ACEOF 1379f299d47fSmrg 1380f299d47fSmrgOptional Features: 1381aa98702cSmrg --disable-option-checking ignore unrecognized --enable/--with options 1382f299d47fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383f299d47fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 138405641e18Smrg --enable-dependency-tracking 138505641e18Smrg do not reject slow dependency extractors 138605641e18Smrg --disable-dependency-tracking 138705641e18Smrg speeds up one-time build 138805641e18Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 138905641e18Smrg --disable-silent-rules verbose build output (undo: "make V=0") 13901a2dd139Smrg --disable-selective-werror 13911a2dd139Smrg Turn off selective compiler errors. (default: 13921a2dd139Smrg enabled) 1393aa98702cSmrg --enable-strict-compilation 1394aa98702cSmrg Enable all warnings from compiler and make them 1395aa98702cSmrg errors (default: disabled) 1396f299d47fSmrg 1397f299d47fSmrgSome influential environment variables: 1398f299d47fSmrg CC C compiler command 1399f299d47fSmrg CFLAGS C compiler flags 1400f299d47fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401f299d47fSmrg nonstandard directory <lib dir> 1402f299d47fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1403625f88beSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404f299d47fSmrg you have headers in a nonstandard directory <include dir> 1405aa98702cSmrg CPP C preprocessor 1406f299d47fSmrg PKG_CONFIG path to pkg-config utility 1407f299d47fSmrg XEV_CFLAGS C compiler flags for XEV, overriding pkg-config 1408f299d47fSmrg XEV_LIBS linker flags for XEV, overriding pkg-config 1409f299d47fSmrg 1410f299d47fSmrgUse these variables to override the choices made by `configure' or to help 1411f299d47fSmrgit to find libraries and programs with nonstandard names/locations. 1412f299d47fSmrg 1413f299d47fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1414f299d47fSmrg_ACEOF 1415f299d47fSmrgac_status=$? 1416f299d47fSmrgfi 1417f299d47fSmrg 1418f299d47fSmrgif test "$ac_init_help" = "recursive"; then 1419f299d47fSmrg # If there are subdirs, report their specific --help. 1420f299d47fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1421aa98702cSmrg test -d "$ac_dir" || 1422aa98702cSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1423aa98702cSmrg continue 1424f299d47fSmrg ac_builddir=. 1425f299d47fSmrg 1426f299d47fSmrgcase "$ac_dir" in 1427f299d47fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428f299d47fSmrg*) 1429aa98702cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1430f299d47fSmrg # A ".." for each directory in $ac_dir_suffix. 1431aa98702cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1432f299d47fSmrg case $ac_top_builddir_sub in 1433f299d47fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434f299d47fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1435f299d47fSmrg esac ;; 1436f299d47fSmrgesac 1437f299d47fSmrgac_abs_top_builddir=$ac_pwd 1438f299d47fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1439f299d47fSmrg# for backward compatibility: 1440f299d47fSmrgac_top_builddir=$ac_top_build_prefix 1441f299d47fSmrg 1442f299d47fSmrgcase $srcdir in 1443f299d47fSmrg .) # We are building in place. 1444f299d47fSmrg ac_srcdir=. 1445f299d47fSmrg ac_top_srcdir=$ac_top_builddir_sub 1446f299d47fSmrg ac_abs_top_srcdir=$ac_pwd ;; 1447f299d47fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1448f299d47fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1449f299d47fSmrg ac_top_srcdir=$srcdir 1450f299d47fSmrg ac_abs_top_srcdir=$srcdir ;; 1451f299d47fSmrg *) # Relative name. 1452f299d47fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1453f299d47fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1454f299d47fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1455f299d47fSmrgesac 1456f299d47fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1457f299d47fSmrg 1458f299d47fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1459f299d47fSmrg # Check for guested configure. 1460f299d47fSmrg if test -f "$ac_srcdir/configure.gnu"; then 1461f299d47fSmrg echo && 1462f299d47fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1463f299d47fSmrg elif test -f "$ac_srcdir/configure"; then 1464f299d47fSmrg echo && 1465f299d47fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1466f299d47fSmrg else 1467aa98702cSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1468f299d47fSmrg fi || ac_status=$? 1469f299d47fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1470f299d47fSmrg done 1471f299d47fSmrgfi 1472f299d47fSmrg 1473f299d47fSmrgtest -n "$ac_init_help" && exit $ac_status 1474f299d47fSmrgif $ac_init_version; then 1475f299d47fSmrg cat <<\_ACEOF 147605641e18Smrgxev configure 1.2.2 147705641e18Smrggenerated by GNU Autoconf 2.69 1478f299d47fSmrg 147905641e18SmrgCopyright (C) 2012 Free Software Foundation, Inc. 1480f299d47fSmrgThis configure script is free software; the Free Software Foundation 1481f299d47fSmrggives unlimited permission to copy, distribute and modify it. 1482f299d47fSmrg_ACEOF 1483f299d47fSmrg exit 1484f299d47fSmrgfi 1485f299d47fSmrg 1486625f88beSmrg## ------------------------ ## 1487625f88beSmrg## Autoconf initialization. ## 1488625f88beSmrg## ------------------------ ## 1489f299d47fSmrg 1490625f88beSmrg# ac_fn_c_try_compile LINENO 1491625f88beSmrg# -------------------------- 1492625f88beSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1493625f88beSmrgac_fn_c_try_compile () 1494f299d47fSmrg{ 1495625f88beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1496625f88beSmrg rm -f conftest.$ac_objext 1497625f88beSmrg if { { ac_try="$ac_compile" 1498625f88beSmrgcase "(($ac_try" in 1499625f88beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1500625f88beSmrg *) ac_try_echo=$ac_try;; 1501625f88beSmrgesac 1502625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1503625f88beSmrg$as_echo "$ac_try_echo"; } >&5 1504625f88beSmrg (eval "$ac_compile") 2>conftest.err 1505625f88beSmrg ac_status=$? 1506625f88beSmrg if test -s conftest.err; then 1507625f88beSmrg grep -v '^ *+' conftest.err >conftest.er1 1508625f88beSmrg cat conftest.er1 >&5 1509625f88beSmrg mv -f conftest.er1 conftest.err 1510625f88beSmrg fi 1511625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1512625f88beSmrg test $ac_status = 0; } && { 1513625f88beSmrg test -z "$ac_c_werror_flag" || 1514625f88beSmrg test ! -s conftest.err 1515625f88beSmrg } && test -s conftest.$ac_objext; then : 1516625f88beSmrg ac_retval=0 1517625f88beSmrgelse 1518625f88beSmrg $as_echo "$as_me: failed program was:" >&5 1519625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1520f299d47fSmrg 1521625f88beSmrg ac_retval=1 1522625f88beSmrgfi 1523625f88beSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1524625f88beSmrg as_fn_set_status $ac_retval 1525f299d47fSmrg 1526625f88beSmrg} # ac_fn_c_try_compile 1527f299d47fSmrg 1528625f88beSmrg# ac_fn_c_try_cpp LINENO 1529625f88beSmrg# ---------------------- 1530625f88beSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1531625f88beSmrgac_fn_c_try_cpp () 1532625f88beSmrg{ 1533625f88beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534625f88beSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1535625f88beSmrgcase "(($ac_try" in 1536625f88beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537625f88beSmrg *) ac_try_echo=$ac_try;; 1538625f88beSmrgesac 1539625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540625f88beSmrg$as_echo "$ac_try_echo"; } >&5 1541625f88beSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1542625f88beSmrg ac_status=$? 1543625f88beSmrg if test -s conftest.err; then 1544625f88beSmrg grep -v '^ *+' conftest.err >conftest.er1 1545625f88beSmrg cat conftest.er1 >&5 1546625f88beSmrg mv -f conftest.er1 conftest.err 1547625f88beSmrg fi 1548625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549625f88beSmrg test $ac_status = 0; } > conftest.i && { 1550625f88beSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1551625f88beSmrg test ! -s conftest.err 1552625f88beSmrg }; then : 1553625f88beSmrg ac_retval=0 1554625f88beSmrgelse 1555625f88beSmrg $as_echo "$as_me: failed program was:" >&5 1556625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1557625f88beSmrg 1558625f88beSmrg ac_retval=1 1559625f88beSmrgfi 1560625f88beSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561625f88beSmrg as_fn_set_status $ac_retval 1562625f88beSmrg 1563625f88beSmrg} # ac_fn_c_try_cpp 1564625f88beSmrg 15651a2dd139Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 15661a2dd139Smrg# ------------------------------------------------------- 15671a2dd139Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 15681a2dd139Smrg# the include files in INCLUDES and setting the cache variable VAR 15691a2dd139Smrg# accordingly. 15701a2dd139Smrgac_fn_c_check_header_mongrel () 15711a2dd139Smrg{ 15721a2dd139Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15731a2dd139Smrg if eval \${$3+:} false; then : 15741a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 15751a2dd139Smrg$as_echo_n "checking for $2... " >&6; } 15761a2dd139Smrgif eval \${$3+:} false; then : 15771a2dd139Smrg $as_echo_n "(cached) " >&6 15781a2dd139Smrgfi 15791a2dd139Smrgeval ac_res=\$$3 15801a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15811a2dd139Smrg$as_echo "$ac_res" >&6; } 15821a2dd139Smrgelse 15831a2dd139Smrg # Is the header compilable? 15841a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 15851a2dd139Smrg$as_echo_n "checking $2 usability... " >&6; } 15861a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871a2dd139Smrg/* end confdefs.h. */ 15881a2dd139Smrg$4 15891a2dd139Smrg#include <$2> 15901a2dd139Smrg_ACEOF 15911a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 15921a2dd139Smrg ac_header_compiler=yes 15931a2dd139Smrgelse 15941a2dd139Smrg ac_header_compiler=no 15951a2dd139Smrgfi 15961a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15971a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 15981a2dd139Smrg$as_echo "$ac_header_compiler" >&6; } 15991a2dd139Smrg 16001a2dd139Smrg# Is the header present? 16011a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 16021a2dd139Smrg$as_echo_n "checking $2 presence... " >&6; } 16031a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041a2dd139Smrg/* end confdefs.h. */ 16051a2dd139Smrg#include <$2> 16061a2dd139Smrg_ACEOF 16071a2dd139Smrgif ac_fn_c_try_cpp "$LINENO"; then : 16081a2dd139Smrg ac_header_preproc=yes 16091a2dd139Smrgelse 16101a2dd139Smrg ac_header_preproc=no 16111a2dd139Smrgfi 16121a2dd139Smrgrm -f conftest.err conftest.i conftest.$ac_ext 16131a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 16141a2dd139Smrg$as_echo "$ac_header_preproc" >&6; } 16151a2dd139Smrg 16161a2dd139Smrg# So? What about this header? 16171a2dd139Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 16181a2dd139Smrg yes:no: ) 16191a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 16201a2dd139Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 16211a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 16221a2dd139Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 16231a2dd139Smrg ;; 16241a2dd139Smrg no:yes:* ) 16251a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 16261a2dd139Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 16271a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 16281a2dd139Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 16291a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 16301a2dd139Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 16311a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 16321a2dd139Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 16331a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 16341a2dd139Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 16351a2dd139Smrg( $as_echo "## ---------------------------------------------------------------------- ## 16361a2dd139Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 16371a2dd139Smrg## ---------------------------------------------------------------------- ##" 16381a2dd139Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 16391a2dd139Smrg ;; 16401a2dd139Smrgesac 16411a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16421a2dd139Smrg$as_echo_n "checking for $2... " >&6; } 16431a2dd139Smrgif eval \${$3+:} false; then : 16441a2dd139Smrg $as_echo_n "(cached) " >&6 16451a2dd139Smrgelse 16461a2dd139Smrg eval "$3=\$ac_header_compiler" 16471a2dd139Smrgfi 16481a2dd139Smrgeval ac_res=\$$3 16491a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16501a2dd139Smrg$as_echo "$ac_res" >&6; } 16511a2dd139Smrgfi 16521a2dd139Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16531a2dd139Smrg 16541a2dd139Smrg} # ac_fn_c_check_header_mongrel 16551a2dd139Smrg 1656625f88beSmrg# ac_fn_c_try_run LINENO 1657625f88beSmrg# ---------------------- 1658625f88beSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1659625f88beSmrg# that executables *can* be run. 1660625f88beSmrgac_fn_c_try_run () 1661625f88beSmrg{ 1662625f88beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663625f88beSmrg if { { ac_try="$ac_link" 1664625f88beSmrgcase "(($ac_try" in 1665625f88beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666625f88beSmrg *) ac_try_echo=$ac_try;; 1667625f88beSmrgesac 1668625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669625f88beSmrg$as_echo "$ac_try_echo"; } >&5 1670625f88beSmrg (eval "$ac_link") 2>&5 1671625f88beSmrg ac_status=$? 1672625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673625f88beSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1674625f88beSmrg { { case "(($ac_try" in 1675625f88beSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676625f88beSmrg *) ac_try_echo=$ac_try;; 1677625f88beSmrgesac 1678625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679625f88beSmrg$as_echo "$ac_try_echo"; } >&5 1680625f88beSmrg (eval "$ac_try") 2>&5 1681625f88beSmrg ac_status=$? 1682625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683625f88beSmrg test $ac_status = 0; }; }; then : 1684625f88beSmrg ac_retval=0 1685625f88beSmrgelse 1686625f88beSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1687625f88beSmrg $as_echo "$as_me: failed program was:" >&5 1688625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5 1689625f88beSmrg 1690625f88beSmrg ac_retval=$ac_status 1691625f88beSmrgfi 1692625f88beSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693625f88beSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694625f88beSmrg as_fn_set_status $ac_retval 1695625f88beSmrg 1696625f88beSmrg} # ac_fn_c_try_run 1697625f88beSmrg 1698625f88beSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1699625f88beSmrg# ------------------------------------------------------- 1700625f88beSmrg# Tests whether HEADER exists and can be compiled using the include files in 1701625f88beSmrg# INCLUDES, setting the cache variable VAR accordingly. 1702625f88beSmrgac_fn_c_check_header_compile () 1703625f88beSmrg{ 1704625f88beSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1706625f88beSmrg$as_echo_n "checking for $2... " >&6; } 1707625f88beSmrgif eval \${$3+:} false; then : 1708625f88beSmrg $as_echo_n "(cached) " >&6 1709625f88beSmrgelse 1710625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711625f88beSmrg/* end confdefs.h. */ 1712625f88beSmrg$4 1713625f88beSmrg#include <$2> 1714625f88beSmrg_ACEOF 1715625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then : 1716625f88beSmrg eval "$3=yes" 1717625f88beSmrgelse 1718625f88beSmrg eval "$3=no" 1719625f88beSmrgfi 1720625f88beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1721625f88beSmrgfi 1722625f88beSmrgeval ac_res=\$$3 1723625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1724625f88beSmrg$as_echo "$ac_res" >&6; } 1725625f88beSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726625f88beSmrg 1727625f88beSmrg} # ac_fn_c_check_header_compile 17281a2dd139Smrg 17291a2dd139Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 17301a2dd139Smrg# --------------------------------------------- 17311a2dd139Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 17321a2dd139Smrg# accordingly. 17331a2dd139Smrgac_fn_c_check_decl () 17341a2dd139Smrg{ 17351a2dd139Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17361a2dd139Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 17371a2dd139Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 17381a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 17391a2dd139Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 17401a2dd139Smrgif eval \${$3+:} false; then : 17411a2dd139Smrg $as_echo_n "(cached) " >&6 17421a2dd139Smrgelse 17431a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441a2dd139Smrg/* end confdefs.h. */ 17451a2dd139Smrg$4 17461a2dd139Smrgint 17471a2dd139Smrgmain () 17481a2dd139Smrg{ 17491a2dd139Smrg#ifndef $as_decl_name 17501a2dd139Smrg#ifdef __cplusplus 17511a2dd139Smrg (void) $as_decl_use; 17521a2dd139Smrg#else 17531a2dd139Smrg (void) $as_decl_name; 17541a2dd139Smrg#endif 17551a2dd139Smrg#endif 17561a2dd139Smrg 17571a2dd139Smrg ; 17581a2dd139Smrg return 0; 17591a2dd139Smrg} 17601a2dd139Smrg_ACEOF 17611a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 17621a2dd139Smrg eval "$3=yes" 17631a2dd139Smrgelse 17641a2dd139Smrg eval "$3=no" 17651a2dd139Smrgfi 17661a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17671a2dd139Smrgfi 17681a2dd139Smrgeval ac_res=\$$3 17691a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17701a2dd139Smrg$as_echo "$ac_res" >&6; } 17711a2dd139Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17721a2dd139Smrg 17731a2dd139Smrg} # ac_fn_c_check_decl 17741a2dd139Smrg 17751a2dd139Smrg# ac_fn_c_try_link LINENO 17761a2dd139Smrg# ----------------------- 17771a2dd139Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17781a2dd139Smrgac_fn_c_try_link () 17791a2dd139Smrg{ 17801a2dd139Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17811a2dd139Smrg rm -f conftest.$ac_objext conftest$ac_exeext 17821a2dd139Smrg if { { ac_try="$ac_link" 17831a2dd139Smrgcase "(($ac_try" in 17841a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17851a2dd139Smrg *) ac_try_echo=$ac_try;; 17861a2dd139Smrgesac 17871a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17881a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 17891a2dd139Smrg (eval "$ac_link") 2>conftest.err 17901a2dd139Smrg ac_status=$? 17911a2dd139Smrg if test -s conftest.err; then 17921a2dd139Smrg grep -v '^ *+' conftest.err >conftest.er1 17931a2dd139Smrg cat conftest.er1 >&5 17941a2dd139Smrg mv -f conftest.er1 conftest.err 17951a2dd139Smrg fi 17961a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17971a2dd139Smrg test $ac_status = 0; } && { 17981a2dd139Smrg test -z "$ac_c_werror_flag" || 17991a2dd139Smrg test ! -s conftest.err 18001a2dd139Smrg } && test -s conftest$ac_exeext && { 18011a2dd139Smrg test "$cross_compiling" = yes || 180205641e18Smrg test -x conftest$ac_exeext 18031a2dd139Smrg }; then : 18041a2dd139Smrg ac_retval=0 18051a2dd139Smrgelse 18061a2dd139Smrg $as_echo "$as_me: failed program was:" >&5 18071a2dd139Smrgsed 's/^/| /' conftest.$ac_ext >&5 18081a2dd139Smrg 18091a2dd139Smrg ac_retval=1 18101a2dd139Smrgfi 18111a2dd139Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18121a2dd139Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18131a2dd139Smrg # interfere with the next link command; also delete a directory that is 18141a2dd139Smrg # left behind by Apple's compiler. We do this before executing the actions. 18151a2dd139Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18161a2dd139Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18171a2dd139Smrg as_fn_set_status $ac_retval 18181a2dd139Smrg 18191a2dd139Smrg} # ac_fn_c_try_link 1820625f88beSmrgcat >config.log <<_ACEOF 1821625f88beSmrgThis file contains any messages produced by compilers while 1822625f88beSmrgrunning configure, to aid debugging if configure makes a mistake. 1823625f88beSmrg 182405641e18SmrgIt was created by xev $as_me 1.2.2, which was 182505641e18Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1826625f88beSmrg 1827625f88beSmrg $ $0 $@ 1828625f88beSmrg 1829625f88beSmrg_ACEOF 1830625f88beSmrgexec 5>>config.log 1831625f88beSmrg{ 1832625f88beSmrgcat <<_ASUNAME 1833625f88beSmrg## --------- ## 1834625f88beSmrg## Platform. ## 1835625f88beSmrg## --------- ## 1836625f88beSmrg 1837625f88beSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1838625f88beSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1839625f88beSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1840625f88beSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1841625f88beSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1842625f88beSmrg 1843625f88beSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1844625f88beSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1845625f88beSmrg 1846625f88beSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1847625f88beSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1848625f88beSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1849625f88beSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1850625f88beSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1851625f88beSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1852625f88beSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1853625f88beSmrg 1854625f88beSmrg_ASUNAME 1855625f88beSmrg 1856625f88beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1857f299d47fSmrgfor as_dir in $PATH 1858f299d47fSmrgdo 1859f299d47fSmrg IFS=$as_save_IFS 1860f299d47fSmrg test -z "$as_dir" && as_dir=. 1861625f88beSmrg $as_echo "PATH: $as_dir" 1862625f88beSmrg done 1863f299d47fSmrgIFS=$as_save_IFS 1864f299d47fSmrg 1865f299d47fSmrg} >&5 1866f299d47fSmrg 1867f299d47fSmrgcat >&5 <<_ACEOF 1868f299d47fSmrg 1869f299d47fSmrg 1870f299d47fSmrg## ----------- ## 1871f299d47fSmrg## Core tests. ## 1872f299d47fSmrg## ----------- ## 1873f299d47fSmrg 1874f299d47fSmrg_ACEOF 1875f299d47fSmrg 1876f299d47fSmrg 1877f299d47fSmrg# Keep a trace of the command line. 1878f299d47fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1879f299d47fSmrg# Strip out --silent because we don't want to record it for future runs. 1880f299d47fSmrg# Also quote any args containing shell meta-characters. 1881f299d47fSmrg# Make two passes to allow for proper duplicate-argument suppression. 1882f299d47fSmrgac_configure_args= 1883f299d47fSmrgac_configure_args0= 1884f299d47fSmrgac_configure_args1= 1885f299d47fSmrgac_must_keep_next=false 1886f299d47fSmrgfor ac_pass in 1 2 1887f299d47fSmrgdo 1888f299d47fSmrg for ac_arg 1889f299d47fSmrg do 1890f299d47fSmrg case $ac_arg in 1891f299d47fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892f299d47fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893f299d47fSmrg | -silent | --silent | --silen | --sile | --sil) 1894f299d47fSmrg continue ;; 1895f299d47fSmrg *\'*) 1896aa98702cSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897f299d47fSmrg esac 1898f299d47fSmrg case $ac_pass in 1899625f88beSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900f299d47fSmrg 2) 1901625f88beSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1902f299d47fSmrg if test $ac_must_keep_next = true; then 1903f299d47fSmrg ac_must_keep_next=false # Got value, back to normal. 1904f299d47fSmrg else 1905f299d47fSmrg case $ac_arg in 1906f299d47fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1907f299d47fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908f299d47fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909f299d47fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1910f299d47fSmrg case "$ac_configure_args0 " in 1911f299d47fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912f299d47fSmrg esac 1913f299d47fSmrg ;; 1914f299d47fSmrg -* ) ac_must_keep_next=true ;; 1915f299d47fSmrg esac 1916f299d47fSmrg fi 1917625f88beSmrg as_fn_append ac_configure_args " '$ac_arg'" 1918f299d47fSmrg ;; 1919f299d47fSmrg esac 1920f299d47fSmrg done 1921f299d47fSmrgdone 1922625f88beSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1923625f88beSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1924f299d47fSmrg 1925f299d47fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1926f299d47fSmrg# config.log. We remove comments because anyway the quotes in there 1927f299d47fSmrg# would cause problems or look ugly. 1928f299d47fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1929f299d47fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930f299d47fSmrgtrap 'exit_status=$? 1931f299d47fSmrg # Save into config.log some information that might help in debugging. 1932f299d47fSmrg { 1933f299d47fSmrg echo 1934f299d47fSmrg 1935625f88beSmrg $as_echo "## ---------------- ## 1936f299d47fSmrg## Cache variables. ## 1937625f88beSmrg## ---------------- ##" 1938f299d47fSmrg echo 1939f299d47fSmrg # The following way of writing the cache mishandles newlines in values, 1940f299d47fSmrg( 1941f299d47fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1942f299d47fSmrg eval ac_val=\$$ac_var 1943f299d47fSmrg case $ac_val in #( 1944f299d47fSmrg *${as_nl}*) 1945f299d47fSmrg case $ac_var in #( 1946625f88beSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1947aa98702cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1948f299d47fSmrg esac 1949f299d47fSmrg case $ac_var in #( 1950f299d47fSmrg _ | IFS | as_nl) ;; #( 1951aa98702cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1952625f88beSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1953f299d47fSmrg esac ;; 1954f299d47fSmrg esac 1955f299d47fSmrg done 1956f299d47fSmrg (set) 2>&1 | 1957f299d47fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1958f299d47fSmrg *${as_nl}ac_space=\ *) 1959f299d47fSmrg sed -n \ 1960f299d47fSmrg "s/'\''/'\''\\\\'\'''\''/g; 1961f299d47fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1962f299d47fSmrg ;; #( 1963f299d47fSmrg *) 1964f299d47fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1965f299d47fSmrg ;; 1966f299d47fSmrg esac | 1967f299d47fSmrg sort 1968f299d47fSmrg) 1969f299d47fSmrg echo 1970f299d47fSmrg 1971625f88beSmrg $as_echo "## ----------------- ## 1972f299d47fSmrg## Output variables. ## 1973625f88beSmrg## ----------------- ##" 1974f299d47fSmrg echo 1975f299d47fSmrg for ac_var in $ac_subst_vars 1976f299d47fSmrg do 1977f299d47fSmrg eval ac_val=\$$ac_var 1978f299d47fSmrg case $ac_val in 1979aa98702cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980f299d47fSmrg esac 1981aa98702cSmrg $as_echo "$ac_var='\''$ac_val'\''" 1982f299d47fSmrg done | sort 1983f299d47fSmrg echo 1984f299d47fSmrg 1985f299d47fSmrg if test -n "$ac_subst_files"; then 1986625f88beSmrg $as_echo "## ------------------- ## 1987f299d47fSmrg## File substitutions. ## 1988625f88beSmrg## ------------------- ##" 1989f299d47fSmrg echo 1990f299d47fSmrg for ac_var in $ac_subst_files 1991f299d47fSmrg do 1992f299d47fSmrg eval ac_val=\$$ac_var 1993f299d47fSmrg case $ac_val in 1994aa98702cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995f299d47fSmrg esac 1996aa98702cSmrg $as_echo "$ac_var='\''$ac_val'\''" 1997f299d47fSmrg done | sort 1998f299d47fSmrg echo 1999f299d47fSmrg fi 2000f299d47fSmrg 2001f299d47fSmrg if test -s confdefs.h; then 2002625f88beSmrg $as_echo "## ----------- ## 2003f299d47fSmrg## confdefs.h. ## 2004625f88beSmrg## ----------- ##" 2005f299d47fSmrg echo 2006f299d47fSmrg cat confdefs.h 2007f299d47fSmrg echo 2008f299d47fSmrg fi 2009f299d47fSmrg test "$ac_signal" != 0 && 2010aa98702cSmrg $as_echo "$as_me: caught signal $ac_signal" 2011aa98702cSmrg $as_echo "$as_me: exit $exit_status" 2012f299d47fSmrg } >&5 2013f299d47fSmrg rm -f core *.core core.conftest.* && 2014f299d47fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015f299d47fSmrg exit $exit_status 2016f299d47fSmrg' 0 2017f299d47fSmrgfor ac_signal in 1 2 13 15; do 2018625f88beSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2019f299d47fSmrgdone 2020f299d47fSmrgac_signal=0 2021f299d47fSmrg 2022f299d47fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2023f299d47fSmrgrm -f -r conftest* confdefs.h 2024f299d47fSmrg 2025625f88beSmrg$as_echo "/* confdefs.h */" > confdefs.h 2026625f88beSmrg 2027f299d47fSmrg# Predefined preprocessor variables. 2028f299d47fSmrg 2029f299d47fSmrgcat >>confdefs.h <<_ACEOF 2030f299d47fSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2031f299d47fSmrg_ACEOF 2032f299d47fSmrg 2033f299d47fSmrgcat >>confdefs.h <<_ACEOF 2034f299d47fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2035f299d47fSmrg_ACEOF 2036f299d47fSmrg 2037f299d47fSmrgcat >>confdefs.h <<_ACEOF 2038f299d47fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2039f299d47fSmrg_ACEOF 2040f299d47fSmrg 2041f299d47fSmrgcat >>confdefs.h <<_ACEOF 2042f299d47fSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2043f299d47fSmrg_ACEOF 2044f299d47fSmrg 2045f299d47fSmrgcat >>confdefs.h <<_ACEOF 2046f299d47fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2047f299d47fSmrg_ACEOF 2048f299d47fSmrg 2049625f88beSmrgcat >>confdefs.h <<_ACEOF 2050625f88beSmrg#define PACKAGE_URL "$PACKAGE_URL" 2051625f88beSmrg_ACEOF 2052625f88beSmrg 2053f299d47fSmrg 2054f299d47fSmrg# Let the site file select an alternate cache file if it wants to. 2055aa98702cSmrg# Prefer an explicitly selected file to automatically selected ones. 2056aa98702cSmrgac_site_file1=NONE 2057aa98702cSmrgac_site_file2=NONE 2058f299d47fSmrgif test -n "$CONFIG_SITE"; then 2059625f88beSmrg # We do not want a PATH search for config.site. 2060625f88beSmrg case $CONFIG_SITE in #(( 2061625f88beSmrg -*) ac_site_file1=./$CONFIG_SITE;; 2062625f88beSmrg */*) ac_site_file1=$CONFIG_SITE;; 2063625f88beSmrg *) ac_site_file1=./$CONFIG_SITE;; 2064625f88beSmrg esac 2065f299d47fSmrgelif test "x$prefix" != xNONE; then 2066aa98702cSmrg ac_site_file1=$prefix/share/config.site 2067aa98702cSmrg ac_site_file2=$prefix/etc/config.site 2068f299d47fSmrgelse 2069aa98702cSmrg ac_site_file1=$ac_default_prefix/share/config.site 2070aa98702cSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2071f299d47fSmrgfi 2072aa98702cSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2073f299d47fSmrgdo 2074aa98702cSmrg test "x$ac_site_file" = xNONE && continue 2075625f88beSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2076625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2077aa98702cSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2078f299d47fSmrg sed 's/^/| /' "$ac_site_file" >&5 2079625f88beSmrg . "$ac_site_file" \ 2080625f88beSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2081625f88beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2082625f88beSmrgas_fn_error $? "failed to load site script $ac_site_file 2083625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; } 2084f299d47fSmrg fi 2085f299d47fSmrgdone 2086f299d47fSmrg 2087f299d47fSmrgif test -r "$cache_file"; then 2088625f88beSmrg # Some versions of bash will fail to source /dev/null (special files 2089625f88beSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2090625f88beSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2091625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2092aa98702cSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2093f299d47fSmrg case $cache_file in 2094f299d47fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2095f299d47fSmrg *) . "./$cache_file";; 2096f299d47fSmrg esac 2097f299d47fSmrg fi 2098f299d47fSmrgelse 2099625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2100aa98702cSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2101f299d47fSmrg >$cache_file 2102f299d47fSmrgfi 2103f299d47fSmrg 2104f299d47fSmrg# Check that the precious variables saved in the cache have kept the same 2105f299d47fSmrg# value. 2106f299d47fSmrgac_cache_corrupted=false 2107f299d47fSmrgfor ac_var in $ac_precious_vars; do 2108f299d47fSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2109f299d47fSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2110f299d47fSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2111f299d47fSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2112f299d47fSmrg case $ac_old_set,$ac_new_set in 2113f299d47fSmrg set,) 2114625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2115aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2116f299d47fSmrg ac_cache_corrupted=: ;; 2117f299d47fSmrg ,set) 2118625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2119aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2120f299d47fSmrg ac_cache_corrupted=: ;; 2121f299d47fSmrg ,);; 2122f299d47fSmrg *) 2123f299d47fSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2124aa98702cSmrg # differences in whitespace do not lead to failure. 2125aa98702cSmrg ac_old_val_w=`echo x $ac_old_val` 2126aa98702cSmrg ac_new_val_w=`echo x $ac_new_val` 2127aa98702cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2128625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2129aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2130aa98702cSmrg ac_cache_corrupted=: 2131aa98702cSmrg else 2132625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2133aa98702cSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2134aa98702cSmrg eval $ac_var=\$ac_old_val 2135aa98702cSmrg fi 2136625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2137aa98702cSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2138625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2139aa98702cSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2140f299d47fSmrg fi;; 2141f299d47fSmrg esac 2142f299d47fSmrg # Pass precious variables to config.status. 2143f299d47fSmrg if test "$ac_new_set" = set; then 2144f299d47fSmrg case $ac_new_val in 2145aa98702cSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2146f299d47fSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2147f299d47fSmrg esac 2148f299d47fSmrg case " $ac_configure_args " in 2149f299d47fSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2150625f88beSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2151f299d47fSmrg esac 2152f299d47fSmrg fi 2153f299d47fSmrgdone 2154f299d47fSmrgif $ac_cache_corrupted; then 2155625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2158aa98702cSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2159625f88beSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2160f299d47fSmrgfi 2161625f88beSmrg## -------------------- ## 2162625f88beSmrg## Main body of script. ## 2163625f88beSmrg## -------------------- ## 2164f299d47fSmrg 2165f299d47fSmrgac_ext=c 2166f299d47fSmrgac_cpp='$CPP $CPPFLAGS' 2167f299d47fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2168f299d47fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2169f299d47fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2170f299d47fSmrg 2171f299d47fSmrg 2172f299d47fSmrg 21731a2dd139Smrgac_config_headers="$ac_config_headers config.h" 21741a2dd139Smrg 217505641e18Smrgac_aux_dir= 217605641e18Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 217705641e18Smrg if test -f "$ac_dir/install-sh"; then 217805641e18Smrg ac_aux_dir=$ac_dir 217905641e18Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 218005641e18Smrg break 218105641e18Smrg elif test -f "$ac_dir/install.sh"; then 218205641e18Smrg ac_aux_dir=$ac_dir 218305641e18Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 218405641e18Smrg break 218505641e18Smrg elif test -f "$ac_dir/shtool"; then 218605641e18Smrg ac_aux_dir=$ac_dir 218705641e18Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 218805641e18Smrg break 218905641e18Smrg fi 219005641e18Smrgdone 219105641e18Smrgif test -z "$ac_aux_dir"; then 219205641e18Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 219305641e18Smrgfi 219405641e18Smrg 219505641e18Smrg# These three variables are undocumented and unsupported, 219605641e18Smrg# and are intended to be withdrawn in a future Autoconf release. 219705641e18Smrg# They can cause serious problems if a builder's source tree is in a directory 219805641e18Smrg# whose full name contains unusual characters. 219905641e18Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 220005641e18Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 220105641e18Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 220205641e18Smrg 220305641e18Smrg 220405641e18Smrg# Expand $ac_aux_dir to an absolute path. 220505641e18Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 220605641e18Smrg 22071a2dd139Smrgac_ext=c 22081a2dd139Smrgac_cpp='$CPP $CPPFLAGS' 22091a2dd139Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22101a2dd139Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22111a2dd139Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 22121a2dd139Smrgif test -n "$ac_tool_prefix"; then 22131a2dd139Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 22141a2dd139Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 22151a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22161a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 22171a2dd139Smrgif ${ac_cv_prog_CC+:} false; then : 22181a2dd139Smrg $as_echo_n "(cached) " >&6 22191a2dd139Smrgelse 22201a2dd139Smrg if test -n "$CC"; then 22211a2dd139Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 22221a2dd139Smrgelse 22231a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22241a2dd139Smrgfor as_dir in $PATH 22251a2dd139Smrgdo 22261a2dd139Smrg IFS=$as_save_IFS 22271a2dd139Smrg test -z "$as_dir" && as_dir=. 22281a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 222905641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22301a2dd139Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 22311a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22321a2dd139Smrg break 2 2233f299d47fSmrg fi 2234f299d47fSmrgdone 22351a2dd139Smrg done 22361a2dd139SmrgIFS=$as_save_IFS 2237f299d47fSmrg 2238f299d47fSmrgfi 2239f299d47fSmrgfi 22401a2dd139SmrgCC=$ac_cv_prog_CC 22411a2dd139Smrgif test -n "$CC"; then 22421a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 22431a2dd139Smrg$as_echo "$CC" >&6; } 2244f299d47fSmrgelse 22451a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22461a2dd139Smrg$as_echo "no" >&6; } 2247f299d47fSmrgfi 2248f299d47fSmrg 2249f299d47fSmrg 2250aa98702cSmrgfi 22511a2dd139Smrgif test -z "$ac_cv_prog_CC"; then 22521a2dd139Smrg ac_ct_CC=$CC 22531a2dd139Smrg # Extract the first word of "gcc", so it can be a program name with args. 22541a2dd139Smrgset dummy gcc; ac_word=$2 2255625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2256aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; } 22571a2dd139Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2258aa98702cSmrg $as_echo_n "(cached) " >&6 2259aa98702cSmrgelse 22601a2dd139Smrg if test -n "$ac_ct_CC"; then 22611a2dd139Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2262aa98702cSmrgelse 2263aa98702cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264aa98702cSmrgfor as_dir in $PATH 2265aa98702cSmrgdo 2266aa98702cSmrg IFS=$as_save_IFS 2267aa98702cSmrg test -z "$as_dir" && as_dir=. 2268625f88beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 226905641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22701a2dd139Smrg ac_cv_prog_ac_ct_CC="gcc" 2271625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2272aa98702cSmrg break 2 2273aa98702cSmrg fi 2274aa98702cSmrgdone 2275625f88beSmrg done 2276aa98702cSmrgIFS=$as_save_IFS 2277aa98702cSmrg 2278aa98702cSmrgfi 2279aa98702cSmrgfi 22801a2dd139Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 22811a2dd139Smrgif test -n "$ac_ct_CC"; then 22821a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 22831a2dd139Smrg$as_echo "$ac_ct_CC" >&6; } 2284aa98702cSmrgelse 2285625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2286aa98702cSmrg$as_echo "no" >&6; } 2287aa98702cSmrgfi 2288aa98702cSmrg 22891a2dd139Smrg if test "x$ac_ct_CC" = x; then 22901a2dd139Smrg CC="" 22911a2dd139Smrg else 22921a2dd139Smrg case $cross_compiling:$ac_tool_warned in 22931a2dd139Smrgyes:) 22941a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22951a2dd139Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22961a2dd139Smrgac_tool_warned=yes ;; 22971a2dd139Smrgesac 22981a2dd139Smrg CC=$ac_ct_CC 22991a2dd139Smrg fi 23001a2dd139Smrgelse 23011a2dd139Smrg CC="$ac_cv_prog_CC" 2302aa98702cSmrgfi 23031a2dd139Smrg 23041a2dd139Smrgif test -z "$CC"; then 23051a2dd139Smrg if test -n "$ac_tool_prefix"; then 23061a2dd139Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 23071a2dd139Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2308625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2309aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; } 23101a2dd139Smrgif ${ac_cv_prog_CC+:} false; then : 2311aa98702cSmrg $as_echo_n "(cached) " >&6 2312aa98702cSmrgelse 23131a2dd139Smrg if test -n "$CC"; then 23141a2dd139Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2315aa98702cSmrgelse 2316aa98702cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317aa98702cSmrgfor as_dir in $PATH 2318aa98702cSmrgdo 2319aa98702cSmrg IFS=$as_save_IFS 2320aa98702cSmrg test -z "$as_dir" && as_dir=. 2321625f88beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 232205641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23231a2dd139Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2324625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2325aa98702cSmrg break 2 2326aa98702cSmrg fi 2327aa98702cSmrgdone 2328625f88beSmrg done 2329aa98702cSmrgIFS=$as_save_IFS 2330aa98702cSmrg 2331aa98702cSmrgfi 2332aa98702cSmrgfi 23331a2dd139SmrgCC=$ac_cv_prog_CC 23341a2dd139Smrgif test -n "$CC"; then 23351a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 23361a2dd139Smrg$as_echo "$CC" >&6; } 2337aa98702cSmrgelse 2338625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2339aa98702cSmrg$as_echo "no" >&6; } 2340aa98702cSmrgfi 2341aa98702cSmrg 2342aa98702cSmrg 23431a2dd139Smrg fi 2344aa98702cSmrgfi 23451a2dd139Smrgif test -z "$CC"; then 23461a2dd139Smrg # Extract the first word of "cc", so it can be a program name with args. 23471a2dd139Smrgset dummy cc; ac_word=$2 23481a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23491a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 23501a2dd139Smrgif ${ac_cv_prog_CC+:} false; then : 2351aa98702cSmrg $as_echo_n "(cached) " >&6 2352aa98702cSmrgelse 23531a2dd139Smrg if test -n "$CC"; then 23541a2dd139Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 23551a2dd139Smrgelse 23561a2dd139Smrg ac_prog_rejected=no 23571a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23581a2dd139Smrgfor as_dir in $PATH 2359f299d47fSmrgdo 2360f299d47fSmrg IFS=$as_save_IFS 2361f299d47fSmrg test -z "$as_dir" && as_dir=. 23621a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 236305641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23641a2dd139Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 23651a2dd139Smrg ac_prog_rejected=yes 23661a2dd139Smrg continue 23671a2dd139Smrg fi 23681a2dd139Smrg ac_cv_prog_CC="cc" 23691a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23701a2dd139Smrg break 2 23711a2dd139Smrg fi 23721a2dd139Smrgdone 2373625f88beSmrg done 2374f299d47fSmrgIFS=$as_save_IFS 2375f299d47fSmrg 23761a2dd139Smrgif test $ac_prog_rejected = yes; then 23771a2dd139Smrg # We found a bogon in the path, so make sure we never use it. 23781a2dd139Smrg set dummy $ac_cv_prog_CC 23791a2dd139Smrg shift 23801a2dd139Smrg if test $# != 0; then 23811a2dd139Smrg # We chose a different compiler from the bogus one. 23821a2dd139Smrg # However, it has the same basename, so the bogon will be chosen 23831a2dd139Smrg # first if we set CC to just the basename; use the full file name. 23841a2dd139Smrg shift 23851a2dd139Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2386f299d47fSmrg fi 2387f299d47fSmrgfi 23881a2dd139Smrgfi 23891a2dd139Smrgfi 23901a2dd139SmrgCC=$ac_cv_prog_CC 23911a2dd139Smrgif test -n "$CC"; then 23921a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 23931a2dd139Smrg$as_echo "$CC" >&6; } 23941a2dd139Smrgelse 23951a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23961a2dd139Smrg$as_echo "no" >&6; } 23971a2dd139Smrgfi 2398f299d47fSmrg 2399f299d47fSmrg 24001a2dd139Smrgfi 24011a2dd139Smrgif test -z "$CC"; then 24021a2dd139Smrg if test -n "$ac_tool_prefix"; then 24031a2dd139Smrg for ac_prog in cl.exe 24041a2dd139Smrg do 24051a2dd139Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 24061a2dd139Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2407625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2408aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; } 24091a2dd139Smrgif ${ac_cv_prog_CC+:} false; then : 2410aa98702cSmrg $as_echo_n "(cached) " >&6 2411f299d47fSmrgelse 24121a2dd139Smrg if test -n "$CC"; then 24131a2dd139Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2414f299d47fSmrgelse 2415f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416f299d47fSmrgfor as_dir in $PATH 2417f299d47fSmrgdo 2418f299d47fSmrg IFS=$as_save_IFS 2419f299d47fSmrg test -z "$as_dir" && as_dir=. 2420625f88beSmrg for ac_exec_ext in '' $ac_executable_extensions; do 242105641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24221a2dd139Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2423625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2424f299d47fSmrg break 2 2425f299d47fSmrg fi 2426f299d47fSmrgdone 2427625f88beSmrg done 2428f299d47fSmrgIFS=$as_save_IFS 2429f299d47fSmrg 2430f299d47fSmrgfi 2431f299d47fSmrgfi 24321a2dd139SmrgCC=$ac_cv_prog_CC 24331a2dd139Smrgif test -n "$CC"; then 24341a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 24351a2dd139Smrg$as_echo "$CC" >&6; } 2436f299d47fSmrgelse 2437625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2438aa98702cSmrg$as_echo "no" >&6; } 2439f299d47fSmrgfi 2440f299d47fSmrg 2441f299d47fSmrg 24421a2dd139Smrg test -n "$CC" && break 24431a2dd139Smrg done 24441a2dd139Smrgfi 24451a2dd139Smrgif test -z "$CC"; then 24461a2dd139Smrg ac_ct_CC=$CC 24471a2dd139Smrg for ac_prog in cl.exe 24481a2dd139Smrgdo 24491a2dd139Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 24501a2dd139Smrgset dummy $ac_prog; ac_word=$2 24511a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24521a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 24531a2dd139Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2454aa98702cSmrg $as_echo_n "(cached) " >&6 2455f299d47fSmrgelse 24561a2dd139Smrg if test -n "$ac_ct_CC"; then 24571a2dd139Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 24581a2dd139Smrgelse 24591a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24601a2dd139Smrgfor as_dir in $PATH 24611a2dd139Smrgdo 24621a2dd139Smrg IFS=$as_save_IFS 24631a2dd139Smrg test -z "$as_dir" && as_dir=. 24641a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 246505641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24661a2dd139Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 24671a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24681a2dd139Smrg break 2 24691a2dd139Smrg fi 24701a2dd139Smrgdone 24711a2dd139Smrg done 24721a2dd139SmrgIFS=$as_save_IFS 24731a2dd139Smrg 2474f299d47fSmrgfi 24751a2dd139Smrgfi 24761a2dd139Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 24771a2dd139Smrgif test -n "$ac_ct_CC"; then 24781a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 24791a2dd139Smrg$as_echo "$ac_ct_CC" >&6; } 2480f299d47fSmrgelse 2481625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2482aa98702cSmrg$as_echo "no" >&6; } 2483f299d47fSmrgfi 2484f299d47fSmrg 2485f299d47fSmrg 24861a2dd139Smrg test -n "$ac_ct_CC" && break 24871a2dd139Smrgdone 2488f299d47fSmrg 24891a2dd139Smrg if test "x$ac_ct_CC" = x; then 24901a2dd139Smrg CC="" 2491f299d47fSmrg else 24921a2dd139Smrg case $cross_compiling:$ac_tool_warned in 24931a2dd139Smrgyes:) 24941a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24951a2dd139Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24961a2dd139Smrgac_tool_warned=yes ;; 24971a2dd139Smrgesac 24981a2dd139Smrg CC=$ac_ct_CC 2499f299d47fSmrg fi 2500f299d47fSmrgfi 2501f299d47fSmrg 25021a2dd139Smrgfi 2503f299d47fSmrg 2504f299d47fSmrg 25051a2dd139Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25061a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25071a2dd139Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 25081a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 2509f299d47fSmrg 25101a2dd139Smrg# Provide some information about the compiler. 25111a2dd139Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 25121a2dd139Smrgset X $ac_compile 25131a2dd139Smrgac_compiler=$2 25141a2dd139Smrgfor ac_option in --version -v -V -qversion; do 25151a2dd139Smrg { { ac_try="$ac_compiler $ac_option >&5" 25161a2dd139Smrgcase "(($ac_try" in 25171a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25181a2dd139Smrg *) ac_try_echo=$ac_try;; 25191a2dd139Smrgesac 25201a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 25211a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 25221a2dd139Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 25231a2dd139Smrg ac_status=$? 25241a2dd139Smrg if test -s conftest.err; then 25251a2dd139Smrg sed '10a\ 25261a2dd139Smrg... rest of stderr output deleted ... 25271a2dd139Smrg 10q' conftest.err >conftest.er1 25281a2dd139Smrg cat conftest.er1 >&5 25291a2dd139Smrg fi 25301a2dd139Smrg rm -f conftest.er1 conftest.err 25311a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25321a2dd139Smrg test $ac_status = 0; } 25331a2dd139Smrgdone 2534f299d47fSmrg 25351a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 25361a2dd139Smrg/* end confdefs.h. */ 25371a2dd139Smrg 25381a2dd139Smrgint 25391a2dd139Smrgmain () 25401a2dd139Smrg{ 25411a2dd139Smrg 25421a2dd139Smrg ; 25431a2dd139Smrg return 0; 25441a2dd139Smrg} 25451a2dd139Smrg_ACEOF 25461a2dd139Smrgac_clean_files_save=$ac_clean_files 25471a2dd139Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 25481a2dd139Smrg# Try to create an executable without -o first, disregard a.out. 25491a2dd139Smrg# It will help us diagnose broken compilers, and finding out an intuition 25501a2dd139Smrg# of exeext. 25511a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 25521a2dd139Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 25531a2dd139Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 25541a2dd139Smrg 25551a2dd139Smrg# The possible output files: 25561a2dd139Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 25571a2dd139Smrg 25581a2dd139Smrgac_rmfiles= 25591a2dd139Smrgfor ac_file in $ac_files 25601a2dd139Smrgdo 25611a2dd139Smrg case $ac_file in 25621a2dd139Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 25631a2dd139Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 25641a2dd139Smrg esac 25651a2dd139Smrgdone 25661a2dd139Smrgrm -f $ac_rmfiles 25671a2dd139Smrg 25681a2dd139Smrgif { { ac_try="$ac_link_default" 25691a2dd139Smrgcase "(($ac_try" in 25701a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25711a2dd139Smrg *) ac_try_echo=$ac_try;; 25721a2dd139Smrgesac 25731a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 25741a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 25751a2dd139Smrg (eval "$ac_link_default") 2>&5 25761a2dd139Smrg ac_status=$? 25771a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25781a2dd139Smrg test $ac_status = 0; }; then : 25791a2dd139Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 25801a2dd139Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 25811a2dd139Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 25821a2dd139Smrg# so that the user can short-circuit this test for compilers unknown to 25831a2dd139Smrg# Autoconf. 25841a2dd139Smrgfor ac_file in $ac_files '' 25851a2dd139Smrgdo 25861a2dd139Smrg test -f "$ac_file" || continue 25871a2dd139Smrg case $ac_file in 25881a2dd139Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 25891a2dd139Smrg ;; 25901a2dd139Smrg [ab].out ) 25911a2dd139Smrg # We found the default executable, but exeext='' is most 25921a2dd139Smrg # certainly right. 25931a2dd139Smrg break;; 25941a2dd139Smrg *.* ) 25951a2dd139Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 25961a2dd139Smrg then :; else 25971a2dd139Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 25981a2dd139Smrg fi 25991a2dd139Smrg # We set ac_cv_exeext here because the later test for it is not 26001a2dd139Smrg # safe: cross compilers may not add the suffix if given an `-o' 26011a2dd139Smrg # argument, so we may need to know it at that point already. 26021a2dd139Smrg # Even if this section looks crufty: it has the advantage of 26031a2dd139Smrg # actually working. 26041a2dd139Smrg break;; 26051a2dd139Smrg * ) 26061a2dd139Smrg break;; 26071a2dd139Smrg esac 26081a2dd139Smrgdone 26091a2dd139Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 26101a2dd139Smrg 26111a2dd139Smrgelse 26121a2dd139Smrg ac_file='' 26131a2dd139Smrgfi 26141a2dd139Smrgif test -z "$ac_file"; then : 26151a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26161a2dd139Smrg$as_echo "no" >&6; } 26171a2dd139Smrg$as_echo "$as_me: failed program was:" >&5 26181a2dd139Smrgsed 's/^/| /' conftest.$ac_ext >&5 26191a2dd139Smrg 26201a2dd139Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26211a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26221a2dd139Smrgas_fn_error 77 "C compiler cannot create executables 26231a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 26241a2dd139Smrgelse 26251a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26261a2dd139Smrg$as_echo "yes" >&6; } 26271a2dd139Smrgfi 26281a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 26291a2dd139Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 26301a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 26311a2dd139Smrg$as_echo "$ac_file" >&6; } 26321a2dd139Smrgac_exeext=$ac_cv_exeext 26331a2dd139Smrg 26341a2dd139Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 26351a2dd139Smrgac_clean_files=$ac_clean_files_save 26361a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 26371a2dd139Smrg$as_echo_n "checking for suffix of executables... " >&6; } 26381a2dd139Smrgif { { ac_try="$ac_link" 26391a2dd139Smrgcase "(($ac_try" in 26401a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26411a2dd139Smrg *) ac_try_echo=$ac_try;; 26421a2dd139Smrgesac 26431a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 26441a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 26451a2dd139Smrg (eval "$ac_link") 2>&5 26461a2dd139Smrg ac_status=$? 26471a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26481a2dd139Smrg test $ac_status = 0; }; then : 26491a2dd139Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 26501a2dd139Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 26511a2dd139Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 26521a2dd139Smrg# `rm'. 26531a2dd139Smrgfor ac_file in conftest.exe conftest conftest.*; do 26541a2dd139Smrg test -f "$ac_file" || continue 26551a2dd139Smrg case $ac_file in 26561a2dd139Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 26571a2dd139Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 26581a2dd139Smrg break;; 26591a2dd139Smrg * ) break;; 26601a2dd139Smrg esac 26611a2dd139Smrgdone 26621a2dd139Smrgelse 26631a2dd139Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26641a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26651a2dd139Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 26661a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 26671a2dd139Smrgfi 26681a2dd139Smrgrm -f conftest conftest$ac_cv_exeext 26691a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 26701a2dd139Smrg$as_echo "$ac_cv_exeext" >&6; } 26711a2dd139Smrg 26721a2dd139Smrgrm -f conftest.$ac_ext 26731a2dd139SmrgEXEEXT=$ac_cv_exeext 26741a2dd139Smrgac_exeext=$EXEEXT 26751a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 26761a2dd139Smrg/* end confdefs.h. */ 26771a2dd139Smrg#include <stdio.h> 26781a2dd139Smrgint 26791a2dd139Smrgmain () 26801a2dd139Smrg{ 26811a2dd139SmrgFILE *f = fopen ("conftest.out", "w"); 26821a2dd139Smrg return ferror (f) || fclose (f) != 0; 26831a2dd139Smrg 26841a2dd139Smrg ; 26851a2dd139Smrg return 0; 26861a2dd139Smrg} 26871a2dd139Smrg_ACEOF 26881a2dd139Smrgac_clean_files="$ac_clean_files conftest.out" 26891a2dd139Smrg# Check that the compiler produces executables we can run. If not, either 26901a2dd139Smrg# the compiler is broken, or we cross compile. 26911a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 26921a2dd139Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 26931a2dd139Smrgif test "$cross_compiling" != yes; then 26941a2dd139Smrg { { ac_try="$ac_link" 26951a2dd139Smrgcase "(($ac_try" in 26961a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26971a2dd139Smrg *) ac_try_echo=$ac_try;; 26981a2dd139Smrgesac 26991a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27001a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 27011a2dd139Smrg (eval "$ac_link") 2>&5 27021a2dd139Smrg ac_status=$? 27031a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27041a2dd139Smrg test $ac_status = 0; } 27051a2dd139Smrg if { ac_try='./conftest$ac_cv_exeext' 27061a2dd139Smrg { { case "(($ac_try" in 27071a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27081a2dd139Smrg *) ac_try_echo=$ac_try;; 27091a2dd139Smrgesac 27101a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27111a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 27121a2dd139Smrg (eval "$ac_try") 2>&5 27131a2dd139Smrg ac_status=$? 27141a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27151a2dd139Smrg test $ac_status = 0; }; }; then 27161a2dd139Smrg cross_compiling=no 27171a2dd139Smrg else 27181a2dd139Smrg if test "$cross_compiling" = maybe; then 27191a2dd139Smrg cross_compiling=yes 27201a2dd139Smrg else 27211a2dd139Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27221a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27231a2dd139Smrgas_fn_error $? "cannot run C compiled programs. 27241a2dd139SmrgIf you meant to cross compile, use \`--host'. 27251a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 27261a2dd139Smrg fi 27271a2dd139Smrg fi 27281a2dd139Smrgfi 27291a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 27301a2dd139Smrg$as_echo "$cross_compiling" >&6; } 27311a2dd139Smrg 27321a2dd139Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 27331a2dd139Smrgac_clean_files=$ac_clean_files_save 27341a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 27351a2dd139Smrg$as_echo_n "checking for suffix of object files... " >&6; } 27361a2dd139Smrgif ${ac_cv_objext+:} false; then : 27371a2dd139Smrg $as_echo_n "(cached) " >&6 27381a2dd139Smrgelse 27391a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27401a2dd139Smrg/* end confdefs.h. */ 27411a2dd139Smrg 27421a2dd139Smrgint 27431a2dd139Smrgmain () 27441a2dd139Smrg{ 27451a2dd139Smrg 27461a2dd139Smrg ; 27471a2dd139Smrg return 0; 27481a2dd139Smrg} 27491a2dd139Smrg_ACEOF 27501a2dd139Smrgrm -f conftest.o conftest.obj 27511a2dd139Smrgif { { ac_try="$ac_compile" 27521a2dd139Smrgcase "(($ac_try" in 27531a2dd139Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27541a2dd139Smrg *) ac_try_echo=$ac_try;; 27551a2dd139Smrgesac 27561a2dd139Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27571a2dd139Smrg$as_echo "$ac_try_echo"; } >&5 27581a2dd139Smrg (eval "$ac_compile") 2>&5 27591a2dd139Smrg ac_status=$? 27601a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27611a2dd139Smrg test $ac_status = 0; }; then : 27621a2dd139Smrg for ac_file in conftest.o conftest.obj conftest.*; do 27631a2dd139Smrg test -f "$ac_file" || continue; 27641a2dd139Smrg case $ac_file in 27651a2dd139Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 27661a2dd139Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 27671a2dd139Smrg break;; 27681a2dd139Smrg esac 27691a2dd139Smrgdone 27701a2dd139Smrgelse 27711a2dd139Smrg $as_echo "$as_me: failed program was:" >&5 27721a2dd139Smrgsed 's/^/| /' conftest.$ac_ext >&5 27731a2dd139Smrg 27741a2dd139Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27751a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27761a2dd139Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 27771a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 27781a2dd139Smrgfi 27791a2dd139Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 27801a2dd139Smrgfi 27811a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 27821a2dd139Smrg$as_echo "$ac_cv_objext" >&6; } 27831a2dd139SmrgOBJEXT=$ac_cv_objext 27841a2dd139Smrgac_objext=$OBJEXT 27851a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 27861a2dd139Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 27871a2dd139Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 27881a2dd139Smrg $as_echo_n "(cached) " >&6 27891a2dd139Smrgelse 27901a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27911a2dd139Smrg/* end confdefs.h. */ 27921a2dd139Smrg 27931a2dd139Smrgint 27941a2dd139Smrgmain () 27951a2dd139Smrg{ 27961a2dd139Smrg#ifndef __GNUC__ 27971a2dd139Smrg choke me 27981a2dd139Smrg#endif 27991a2dd139Smrg 28001a2dd139Smrg ; 28011a2dd139Smrg return 0; 28021a2dd139Smrg} 28031a2dd139Smrg_ACEOF 28041a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 28051a2dd139Smrg ac_compiler_gnu=yes 28061a2dd139Smrgelse 28071a2dd139Smrg ac_compiler_gnu=no 28081a2dd139Smrgfi 28091a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28101a2dd139Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 28111a2dd139Smrg 28121a2dd139Smrgfi 28131a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28141a2dd139Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 28151a2dd139Smrgif test $ac_compiler_gnu = yes; then 28161a2dd139Smrg GCC=yes 28171a2dd139Smrgelse 28181a2dd139Smrg GCC= 28191a2dd139Smrgfi 28201a2dd139Smrgac_test_CFLAGS=${CFLAGS+set} 28211a2dd139Smrgac_save_CFLAGS=$CFLAGS 28221a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28231a2dd139Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 28241a2dd139Smrgif ${ac_cv_prog_cc_g+:} false; then : 28251a2dd139Smrg $as_echo_n "(cached) " >&6 28261a2dd139Smrgelse 28271a2dd139Smrg ac_save_c_werror_flag=$ac_c_werror_flag 28281a2dd139Smrg ac_c_werror_flag=yes 28291a2dd139Smrg ac_cv_prog_cc_g=no 28301a2dd139Smrg CFLAGS="-g" 28311a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28321a2dd139Smrg/* end confdefs.h. */ 28331a2dd139Smrg 28341a2dd139Smrgint 28351a2dd139Smrgmain () 28361a2dd139Smrg{ 28371a2dd139Smrg 28381a2dd139Smrg ; 28391a2dd139Smrg return 0; 28401a2dd139Smrg} 28411a2dd139Smrg_ACEOF 28421a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 28431a2dd139Smrg ac_cv_prog_cc_g=yes 28441a2dd139Smrgelse 28451a2dd139Smrg CFLAGS="" 28461a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28471a2dd139Smrg/* end confdefs.h. */ 28481a2dd139Smrg 28491a2dd139Smrgint 28501a2dd139Smrgmain () 28511a2dd139Smrg{ 28521a2dd139Smrg 28531a2dd139Smrg ; 28541a2dd139Smrg return 0; 28551a2dd139Smrg} 28561a2dd139Smrg_ACEOF 28571a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 28581a2dd139Smrg 28591a2dd139Smrgelse 28601a2dd139Smrg ac_c_werror_flag=$ac_save_c_werror_flag 28611a2dd139Smrg CFLAGS="-g" 28621a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28631a2dd139Smrg/* end confdefs.h. */ 28641a2dd139Smrg 28651a2dd139Smrgint 28661a2dd139Smrgmain () 28671a2dd139Smrg{ 28681a2dd139Smrg 28691a2dd139Smrg ; 28701a2dd139Smrg return 0; 28711a2dd139Smrg} 28721a2dd139Smrg_ACEOF 28731a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 28741a2dd139Smrg ac_cv_prog_cc_g=yes 28751a2dd139Smrgfi 28761a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28771a2dd139Smrgfi 28781a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28791a2dd139Smrgfi 28801a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28811a2dd139Smrg ac_c_werror_flag=$ac_save_c_werror_flag 28821a2dd139Smrgfi 28831a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28841a2dd139Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 28851a2dd139Smrgif test "$ac_test_CFLAGS" = set; then 28861a2dd139Smrg CFLAGS=$ac_save_CFLAGS 28871a2dd139Smrgelif test $ac_cv_prog_cc_g = yes; then 28881a2dd139Smrg if test "$GCC" = yes; then 28891a2dd139Smrg CFLAGS="-g -O2" 28901a2dd139Smrg else 28911a2dd139Smrg CFLAGS="-g" 28921a2dd139Smrg fi 28931a2dd139Smrgelse 28941a2dd139Smrg if test "$GCC" = yes; then 28951a2dd139Smrg CFLAGS="-O2" 28961a2dd139Smrg else 28971a2dd139Smrg CFLAGS= 28981a2dd139Smrg fi 28991a2dd139Smrgfi 29001a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29011a2dd139Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29021a2dd139Smrgif ${ac_cv_prog_cc_c89+:} false; then : 29031a2dd139Smrg $as_echo_n "(cached) " >&6 29041a2dd139Smrgelse 29051a2dd139Smrg ac_cv_prog_cc_c89=no 29061a2dd139Smrgac_save_CC=$CC 29071a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 29081a2dd139Smrg/* end confdefs.h. */ 29091a2dd139Smrg#include <stdarg.h> 29101a2dd139Smrg#include <stdio.h> 291105641e18Smrgstruct stat; 29121a2dd139Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29131a2dd139Smrgstruct buf { int x; }; 29141a2dd139SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 29151a2dd139Smrgstatic char *e (p, i) 29161a2dd139Smrg char **p; 29171a2dd139Smrg int i; 29181a2dd139Smrg{ 29191a2dd139Smrg return p[i]; 29201a2dd139Smrg} 29211a2dd139Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 29221a2dd139Smrg{ 29231a2dd139Smrg char *s; 29241a2dd139Smrg va_list v; 29251a2dd139Smrg va_start (v,p); 29261a2dd139Smrg s = g (p, va_arg (v,int)); 29271a2dd139Smrg va_end (v); 29281a2dd139Smrg return s; 29291a2dd139Smrg} 29301a2dd139Smrg 29311a2dd139Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29321a2dd139Smrg function prototypes and stuff, but not '\xHH' hex character constants. 29331a2dd139Smrg These don't provoke an error unfortunately, instead are silently treated 29341a2dd139Smrg as 'x'. The following induces an error, until -std is added to get 29351a2dd139Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29361a2dd139Smrg array size at least. It's necessary to write '\x00'==0 to get something 29371a2dd139Smrg that's true only with -std. */ 29381a2dd139Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29391a2dd139Smrg 29401a2dd139Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29411a2dd139Smrg inside strings and character constants. */ 29421a2dd139Smrg#define FOO(x) 'x' 29431a2dd139Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29441a2dd139Smrg 29451a2dd139Smrgint test (int i, double x); 29461a2dd139Smrgstruct s1 {int (*f) (int a);}; 29471a2dd139Smrgstruct s2 {int (*f) (double a);}; 29481a2dd139Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29491a2dd139Smrgint argc; 29501a2dd139Smrgchar **argv; 29511a2dd139Smrgint 29521a2dd139Smrgmain () 29531a2dd139Smrg{ 29541a2dd139Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29551a2dd139Smrg ; 29561a2dd139Smrg return 0; 29571a2dd139Smrg} 29581a2dd139Smrg_ACEOF 29591a2dd139Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29601a2dd139Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29611a2dd139Smrgdo 29621a2dd139Smrg CC="$ac_save_CC $ac_arg" 29631a2dd139Smrg if ac_fn_c_try_compile "$LINENO"; then : 29641a2dd139Smrg ac_cv_prog_cc_c89=$ac_arg 29651a2dd139Smrgfi 29661a2dd139Smrgrm -f core conftest.err conftest.$ac_objext 29671a2dd139Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 29681a2dd139Smrgdone 29691a2dd139Smrgrm -f conftest.$ac_ext 29701a2dd139SmrgCC=$ac_save_CC 29711a2dd139Smrg 29721a2dd139Smrgfi 29731a2dd139Smrg# AC_CACHE_VAL 29741a2dd139Smrgcase "x$ac_cv_prog_cc_c89" in 29751a2dd139Smrg x) 29761a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29771a2dd139Smrg$as_echo "none needed" >&6; } ;; 29781a2dd139Smrg xno) 29791a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29801a2dd139Smrg$as_echo "unsupported" >&6; } ;; 29811a2dd139Smrg *) 29821a2dd139Smrg CC="$CC $ac_cv_prog_cc_c89" 29831a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29841a2dd139Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29851a2dd139Smrgesac 29861a2dd139Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 29871a2dd139Smrg 29881a2dd139Smrgfi 29891a2dd139Smrg 29901a2dd139Smrgac_ext=c 29911a2dd139Smrgac_cpp='$CPP $CPPFLAGS' 29921a2dd139Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29931a2dd139Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29941a2dd139Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 29951a2dd139Smrg 299605641e18Smrgac_ext=c 299705641e18Smrgac_cpp='$CPP $CPPFLAGS' 299805641e18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 299905641e18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 300005641e18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 300105641e18Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 300205641e18Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 300305641e18Smrgif ${am_cv_prog_cc_c_o+:} false; then : 300405641e18Smrg $as_echo_n "(cached) " >&6 300505641e18Smrgelse 300605641e18Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 300705641e18Smrg/* end confdefs.h. */ 300805641e18Smrg 300905641e18Smrgint 301005641e18Smrgmain () 301105641e18Smrg{ 301205641e18Smrg 301305641e18Smrg ; 301405641e18Smrg return 0; 301505641e18Smrg} 301605641e18Smrg_ACEOF 301705641e18Smrg # Make sure it works both with $CC and with simple cc. 301805641e18Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 301905641e18Smrg # compilers refuse to overwrite an existing .o file with -o, 302005641e18Smrg # though they will create one. 302105641e18Smrg am_cv_prog_cc_c_o=yes 302205641e18Smrg for am_i in 1 2; do 302305641e18Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 302405641e18Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 302505641e18Smrg ac_status=$? 302605641e18Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 302705641e18Smrg (exit $ac_status); } \ 302805641e18Smrg && test -f conftest2.$ac_objext; then 302905641e18Smrg : OK 303005641e18Smrg else 303105641e18Smrg am_cv_prog_cc_c_o=no 303205641e18Smrg break 303305641e18Smrg fi 303405641e18Smrg done 303505641e18Smrg rm -f core conftest* 303605641e18Smrg unset am_i 303705641e18Smrgfi 303805641e18Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 303905641e18Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 304005641e18Smrgif test "$am_cv_prog_cc_c_o" != yes; then 304105641e18Smrg # Losing compiler, so override with the script. 304205641e18Smrg # FIXME: It is wrong to rewrite CC. 304305641e18Smrg # But if we don't then we get into trouble of one sort or another. 304405641e18Smrg # A longer-term fix would be to have automake use am__CC in this case, 304505641e18Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 304605641e18Smrg CC="$am_aux_dir/compile $CC" 304705641e18Smrgfi 304805641e18Smrgac_ext=c 304905641e18Smrgac_cpp='$CPP $CPPFLAGS' 305005641e18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 305105641e18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 305205641e18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 305305641e18Smrg 305405641e18Smrg 30551a2dd139Smrg 30561a2dd139Smrgac_ext=c 30571a2dd139Smrgac_cpp='$CPP $CPPFLAGS' 30581a2dd139Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30591a2dd139Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30601a2dd139Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 30611a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30621a2dd139Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 30631a2dd139Smrg# On Suns, sometimes $CPP names a directory. 30641a2dd139Smrgif test -n "$CPP" && test -d "$CPP"; then 30651a2dd139Smrg CPP= 30661a2dd139Smrgfi 30671a2dd139Smrgif test -z "$CPP"; then 30681a2dd139Smrg if ${ac_cv_prog_CPP+:} false; then : 30691a2dd139Smrg $as_echo_n "(cached) " >&6 30701a2dd139Smrgelse 30711a2dd139Smrg # Double quotes because CPP needs to be expanded 30721a2dd139Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30731a2dd139Smrg do 30741a2dd139Smrg ac_preproc_ok=false 30751a2dd139Smrgfor ac_c_preproc_warn_flag in '' yes 30761a2dd139Smrgdo 30771a2dd139Smrg # Use a header file that comes with gcc, so configuring glibc 30781a2dd139Smrg # with a fresh cross-compiler works. 30791a2dd139Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30801a2dd139Smrg # <limits.h> exists even on freestanding compilers. 30811a2dd139Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 30821a2dd139Smrg # not just through cpp. "Syntax error" is here to catch this case. 30831a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30841a2dd139Smrg/* end confdefs.h. */ 30851a2dd139Smrg#ifdef __STDC__ 30861a2dd139Smrg# include <limits.h> 30871a2dd139Smrg#else 30881a2dd139Smrg# include <assert.h> 30891a2dd139Smrg#endif 30901a2dd139Smrg Syntax error 30911a2dd139Smrg_ACEOF 30921a2dd139Smrgif ac_fn_c_try_cpp "$LINENO"; then : 30931a2dd139Smrg 30941a2dd139Smrgelse 30951a2dd139Smrg # Broken: fails on valid input. 30961a2dd139Smrgcontinue 30971a2dd139Smrgfi 30981a2dd139Smrgrm -f conftest.err conftest.i conftest.$ac_ext 30991a2dd139Smrg 31001a2dd139Smrg # OK, works on sane cases. Now check whether nonexistent headers 31011a2dd139Smrg # can be detected and how. 31021a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31031a2dd139Smrg/* end confdefs.h. */ 31041a2dd139Smrg#include <ac_nonexistent.h> 31051a2dd139Smrg_ACEOF 31061a2dd139Smrgif ac_fn_c_try_cpp "$LINENO"; then : 31071a2dd139Smrg # Broken: success on invalid input. 31081a2dd139Smrgcontinue 31091a2dd139Smrgelse 31101a2dd139Smrg # Passes both tests. 31111a2dd139Smrgac_preproc_ok=: 31121a2dd139Smrgbreak 31131a2dd139Smrgfi 31141a2dd139Smrgrm -f conftest.err conftest.i conftest.$ac_ext 31151a2dd139Smrg 31161a2dd139Smrgdone 31171a2dd139Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31181a2dd139Smrgrm -f conftest.i conftest.err conftest.$ac_ext 31191a2dd139Smrgif $ac_preproc_ok; then : 31201a2dd139Smrg break 31211a2dd139Smrgfi 31221a2dd139Smrg 31231a2dd139Smrg done 31241a2dd139Smrg ac_cv_prog_CPP=$CPP 31251a2dd139Smrg 31261a2dd139Smrgfi 31271a2dd139Smrg CPP=$ac_cv_prog_CPP 31281a2dd139Smrgelse 31291a2dd139Smrg ac_cv_prog_CPP=$CPP 31301a2dd139Smrgfi 31311a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31321a2dd139Smrg$as_echo "$CPP" >&6; } 31331a2dd139Smrgac_preproc_ok=false 31341a2dd139Smrgfor ac_c_preproc_warn_flag in '' yes 31351a2dd139Smrgdo 31361a2dd139Smrg # Use a header file that comes with gcc, so configuring glibc 31371a2dd139Smrg # with a fresh cross-compiler works. 31381a2dd139Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31391a2dd139Smrg # <limits.h> exists even on freestanding compilers. 31401a2dd139Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 31411a2dd139Smrg # not just through cpp. "Syntax error" is here to catch this case. 31421a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31431a2dd139Smrg/* end confdefs.h. */ 31441a2dd139Smrg#ifdef __STDC__ 31451a2dd139Smrg# include <limits.h> 31461a2dd139Smrg#else 31471a2dd139Smrg# include <assert.h> 31481a2dd139Smrg#endif 31491a2dd139Smrg Syntax error 31501a2dd139Smrg_ACEOF 31511a2dd139Smrgif ac_fn_c_try_cpp "$LINENO"; then : 31521a2dd139Smrg 31531a2dd139Smrgelse 31541a2dd139Smrg # Broken: fails on valid input. 31551a2dd139Smrgcontinue 31561a2dd139Smrgfi 31571a2dd139Smrgrm -f conftest.err conftest.i conftest.$ac_ext 31581a2dd139Smrg 31591a2dd139Smrg # OK, works on sane cases. Now check whether nonexistent headers 31601a2dd139Smrg # can be detected and how. 31611a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31621a2dd139Smrg/* end confdefs.h. */ 31631a2dd139Smrg#include <ac_nonexistent.h> 31641a2dd139Smrg_ACEOF 31651a2dd139Smrgif ac_fn_c_try_cpp "$LINENO"; then : 31661a2dd139Smrg # Broken: success on invalid input. 31671a2dd139Smrgcontinue 31681a2dd139Smrgelse 31691a2dd139Smrg # Passes both tests. 31701a2dd139Smrgac_preproc_ok=: 31711a2dd139Smrgbreak 31721a2dd139Smrgfi 31731a2dd139Smrgrm -f conftest.err conftest.i conftest.$ac_ext 31741a2dd139Smrg 31751a2dd139Smrgdone 31761a2dd139Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31771a2dd139Smrgrm -f conftest.i conftest.err conftest.$ac_ext 31781a2dd139Smrgif $ac_preproc_ok; then : 31791a2dd139Smrg 31801a2dd139Smrgelse 31811a2dd139Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31821a2dd139Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31831a2dd139Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31841a2dd139SmrgSee \`config.log' for more details" "$LINENO" 5; } 31851a2dd139Smrgfi 31861a2dd139Smrg 31871a2dd139Smrgac_ext=c 31881a2dd139Smrgac_cpp='$CPP $CPPFLAGS' 31891a2dd139Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31901a2dd139Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31911a2dd139Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 31921a2dd139Smrg 31931a2dd139Smrg 31941a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 31951a2dd139Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 31961a2dd139Smrgif ${ac_cv_path_GREP+:} false; then : 31971a2dd139Smrg $as_echo_n "(cached) " >&6 31981a2dd139Smrgelse 31991a2dd139Smrg if test -z "$GREP"; then 32001a2dd139Smrg ac_path_GREP_found=false 32011a2dd139Smrg # Loop through the user's path and test for each of PROGNAME-LIST 32021a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32031a2dd139Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 32041a2dd139Smrgdo 32051a2dd139Smrg IFS=$as_save_IFS 32061a2dd139Smrg test -z "$as_dir" && as_dir=. 32071a2dd139Smrg for ac_prog in grep ggrep; do 32081a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32091a2dd139Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 321005641e18Smrg as_fn_executable_p "$ac_path_GREP" || continue 32111a2dd139Smrg# Check for GNU ac_path_GREP and select it if it is found. 32121a2dd139Smrg # Check for GNU $ac_path_GREP 32131a2dd139Smrgcase `"$ac_path_GREP" --version 2>&1` in 32141a2dd139Smrg*GNU*) 32151a2dd139Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 32161a2dd139Smrg*) 32171a2dd139Smrg ac_count=0 32181a2dd139Smrg $as_echo_n 0123456789 >"conftest.in" 32191a2dd139Smrg while : 32201a2dd139Smrg do 32211a2dd139Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 32221a2dd139Smrg mv "conftest.tmp" "conftest.in" 32231a2dd139Smrg cp "conftest.in" "conftest.nl" 32241a2dd139Smrg $as_echo 'GREP' >> "conftest.nl" 32251a2dd139Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 32261a2dd139Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 32271a2dd139Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 32281a2dd139Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 32291a2dd139Smrg # Best one so far, save it but keep looking for a better one 32301a2dd139Smrg ac_cv_path_GREP="$ac_path_GREP" 32311a2dd139Smrg ac_path_GREP_max=$ac_count 32321a2dd139Smrg fi 32331a2dd139Smrg # 10*(2^10) chars as input seems more than enough 32341a2dd139Smrg test $ac_count -gt 10 && break 32351a2dd139Smrg done 32361a2dd139Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 32371a2dd139Smrgesac 32381a2dd139Smrg 32391a2dd139Smrg $ac_path_GREP_found && break 3 32401a2dd139Smrg done 32411a2dd139Smrg done 32421a2dd139Smrg done 32431a2dd139SmrgIFS=$as_save_IFS 32441a2dd139Smrg if test -z "$ac_cv_path_GREP"; then 32451a2dd139Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 32461a2dd139Smrg fi 32471a2dd139Smrgelse 32481a2dd139Smrg ac_cv_path_GREP=$GREP 32491a2dd139Smrgfi 32501a2dd139Smrg 32511a2dd139Smrgfi 32521a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 32531a2dd139Smrg$as_echo "$ac_cv_path_GREP" >&6; } 32541a2dd139Smrg GREP="$ac_cv_path_GREP" 32551a2dd139Smrg 32561a2dd139Smrg 32571a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 32581a2dd139Smrg$as_echo_n "checking for egrep... " >&6; } 32591a2dd139Smrgif ${ac_cv_path_EGREP+:} false; then : 32601a2dd139Smrg $as_echo_n "(cached) " >&6 32611a2dd139Smrgelse 32621a2dd139Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 32631a2dd139Smrg then ac_cv_path_EGREP="$GREP -E" 32641a2dd139Smrg else 32651a2dd139Smrg if test -z "$EGREP"; then 32661a2dd139Smrg ac_path_EGREP_found=false 32671a2dd139Smrg # Loop through the user's path and test for each of PROGNAME-LIST 32681a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32691a2dd139Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 32701a2dd139Smrgdo 32711a2dd139Smrg IFS=$as_save_IFS 32721a2dd139Smrg test -z "$as_dir" && as_dir=. 32731a2dd139Smrg for ac_prog in egrep; do 32741a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32751a2dd139Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 327605641e18Smrg as_fn_executable_p "$ac_path_EGREP" || continue 32771a2dd139Smrg# Check for GNU ac_path_EGREP and select it if it is found. 32781a2dd139Smrg # Check for GNU $ac_path_EGREP 32791a2dd139Smrgcase `"$ac_path_EGREP" --version 2>&1` in 32801a2dd139Smrg*GNU*) 32811a2dd139Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 32821a2dd139Smrg*) 32831a2dd139Smrg ac_count=0 32841a2dd139Smrg $as_echo_n 0123456789 >"conftest.in" 32851a2dd139Smrg while : 32861a2dd139Smrg do 32871a2dd139Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 32881a2dd139Smrg mv "conftest.tmp" "conftest.in" 32891a2dd139Smrg cp "conftest.in" "conftest.nl" 32901a2dd139Smrg $as_echo 'EGREP' >> "conftest.nl" 32911a2dd139Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 32921a2dd139Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 32931a2dd139Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 32941a2dd139Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 32951a2dd139Smrg # Best one so far, save it but keep looking for a better one 32961a2dd139Smrg ac_cv_path_EGREP="$ac_path_EGREP" 32971a2dd139Smrg ac_path_EGREP_max=$ac_count 32981a2dd139Smrg fi 32991a2dd139Smrg # 10*(2^10) chars as input seems more than enough 33001a2dd139Smrg test $ac_count -gt 10 && break 33011a2dd139Smrg done 33021a2dd139Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 33031a2dd139Smrgesac 33041a2dd139Smrg 33051a2dd139Smrg $ac_path_EGREP_found && break 3 33061a2dd139Smrg done 33071a2dd139Smrg done 33081a2dd139Smrg done 33091a2dd139SmrgIFS=$as_save_IFS 33101a2dd139Smrg if test -z "$ac_cv_path_EGREP"; then 33111a2dd139Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 33121a2dd139Smrg fi 33131a2dd139Smrgelse 33141a2dd139Smrg ac_cv_path_EGREP=$EGREP 33151a2dd139Smrgfi 33161a2dd139Smrg 33171a2dd139Smrg fi 33181a2dd139Smrgfi 33191a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 33201a2dd139Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 33211a2dd139Smrg EGREP="$ac_cv_path_EGREP" 33221a2dd139Smrg 33231a2dd139Smrg 33241a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 33251a2dd139Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 33261a2dd139Smrgif ${ac_cv_header_stdc+:} false; then : 33271a2dd139Smrg $as_echo_n "(cached) " >&6 33281a2dd139Smrgelse 33291a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33301a2dd139Smrg/* end confdefs.h. */ 33311a2dd139Smrg#include <stdlib.h> 33321a2dd139Smrg#include <stdarg.h> 33331a2dd139Smrg#include <string.h> 33341a2dd139Smrg#include <float.h> 33351a2dd139Smrg 33361a2dd139Smrgint 33371a2dd139Smrgmain () 33381a2dd139Smrg{ 33391a2dd139Smrg 33401a2dd139Smrg ; 33411a2dd139Smrg return 0; 33421a2dd139Smrg} 33431a2dd139Smrg_ACEOF 33441a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 33451a2dd139Smrg ac_cv_header_stdc=yes 33461a2dd139Smrgelse 33471a2dd139Smrg ac_cv_header_stdc=no 33481a2dd139Smrgfi 33491a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33501a2dd139Smrg 33511a2dd139Smrgif test $ac_cv_header_stdc = yes; then 33521a2dd139Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 33531a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33541a2dd139Smrg/* end confdefs.h. */ 33551a2dd139Smrg#include <string.h> 33561a2dd139Smrg 33571a2dd139Smrg_ACEOF 33581a2dd139Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33591a2dd139Smrg $EGREP "memchr" >/dev/null 2>&1; then : 33601a2dd139Smrg 33611a2dd139Smrgelse 33621a2dd139Smrg ac_cv_header_stdc=no 33631a2dd139Smrgfi 33641a2dd139Smrgrm -f conftest* 33651a2dd139Smrg 33661a2dd139Smrgfi 33671a2dd139Smrg 33681a2dd139Smrgif test $ac_cv_header_stdc = yes; then 33691a2dd139Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 33701a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33711a2dd139Smrg/* end confdefs.h. */ 33721a2dd139Smrg#include <stdlib.h> 33731a2dd139Smrg 33741a2dd139Smrg_ACEOF 33751a2dd139Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33761a2dd139Smrg $EGREP "free" >/dev/null 2>&1; then : 33771a2dd139Smrg 33781a2dd139Smrgelse 33791a2dd139Smrg ac_cv_header_stdc=no 33801a2dd139Smrgfi 33811a2dd139Smrgrm -f conftest* 33821a2dd139Smrg 33831a2dd139Smrgfi 33841a2dd139Smrg 33851a2dd139Smrgif test $ac_cv_header_stdc = yes; then 33861a2dd139Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 33871a2dd139Smrg if test "$cross_compiling" = yes; then : 33881a2dd139Smrg : 33891a2dd139Smrgelse 33901a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33911a2dd139Smrg/* end confdefs.h. */ 33921a2dd139Smrg#include <ctype.h> 33931a2dd139Smrg#include <stdlib.h> 33941a2dd139Smrg#if ((' ' & 0x0FF) == 0x020) 33951a2dd139Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 33961a2dd139Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 33971a2dd139Smrg#else 33981a2dd139Smrg# define ISLOWER(c) \ 33991a2dd139Smrg (('a' <= (c) && (c) <= 'i') \ 34001a2dd139Smrg || ('j' <= (c) && (c) <= 'r') \ 34011a2dd139Smrg || ('s' <= (c) && (c) <= 'z')) 34021a2dd139Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 34031a2dd139Smrg#endif 34041a2dd139Smrg 34051a2dd139Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 34061a2dd139Smrgint 34071a2dd139Smrgmain () 34081a2dd139Smrg{ 34091a2dd139Smrg int i; 34101a2dd139Smrg for (i = 0; i < 256; i++) 34111a2dd139Smrg if (XOR (islower (i), ISLOWER (i)) 34121a2dd139Smrg || toupper (i) != TOUPPER (i)) 34131a2dd139Smrg return 2; 34141a2dd139Smrg return 0; 34151a2dd139Smrg} 34161a2dd139Smrg_ACEOF 34171a2dd139Smrgif ac_fn_c_try_run "$LINENO"; then : 34181a2dd139Smrg 34191a2dd139Smrgelse 34201a2dd139Smrg ac_cv_header_stdc=no 34211a2dd139Smrgfi 34221a2dd139Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34231a2dd139Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 34241a2dd139Smrgfi 34251a2dd139Smrg 34261a2dd139Smrgfi 34271a2dd139Smrgfi 34281a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 34291a2dd139Smrg$as_echo "$ac_cv_header_stdc" >&6; } 34301a2dd139Smrgif test $ac_cv_header_stdc = yes; then 34311a2dd139Smrg 34321a2dd139Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 34331a2dd139Smrg 34341a2dd139Smrgfi 34351a2dd139Smrg 34361a2dd139Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 34371a2dd139Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 34381a2dd139Smrg inttypes.h stdint.h unistd.h 34391a2dd139Smrgdo : 34401a2dd139Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 34411a2dd139Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 34421a2dd139Smrg" 34431a2dd139Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 34441a2dd139Smrg cat >>confdefs.h <<_ACEOF 34451a2dd139Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 34461a2dd139Smrg_ACEOF 34471a2dd139Smrg 34481a2dd139Smrgfi 34491a2dd139Smrg 34501a2dd139Smrgdone 34511a2dd139Smrg 34521a2dd139Smrg 34531a2dd139Smrg 34541a2dd139Smrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 34551a2dd139Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then : 34561a2dd139Smrg MINIX=yes 34571a2dd139Smrgelse 34581a2dd139Smrg MINIX= 34591a2dd139Smrgfi 34601a2dd139Smrg 34611a2dd139Smrg 34621a2dd139Smrg if test "$MINIX" = yes; then 34631a2dd139Smrg 34641a2dd139Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 34651a2dd139Smrg 34661a2dd139Smrg 34671a2dd139Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 34681a2dd139Smrg 34691a2dd139Smrg 34701a2dd139Smrg$as_echo "#define _MINIX 1" >>confdefs.h 34711a2dd139Smrg 34721a2dd139Smrg fi 34731a2dd139Smrg 34741a2dd139Smrg 34751a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 34761a2dd139Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 34771a2dd139Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then : 34781a2dd139Smrg $as_echo_n "(cached) " >&6 34791a2dd139Smrgelse 34801a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34811a2dd139Smrg/* end confdefs.h. */ 34821a2dd139Smrg 348305641e18Smrg# define __EXTENSIONS__ 1 348405641e18Smrg $ac_includes_default 34851a2dd139Smrgint 34861a2dd139Smrgmain () 34871a2dd139Smrg{ 34881a2dd139Smrg 34891a2dd139Smrg ; 34901a2dd139Smrg return 0; 34911a2dd139Smrg} 34921a2dd139Smrg_ACEOF 34931a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 34941a2dd139Smrg ac_cv_safe_to_define___extensions__=yes 34951a2dd139Smrgelse 34961a2dd139Smrg ac_cv_safe_to_define___extensions__=no 34971a2dd139Smrgfi 34981a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34991a2dd139Smrgfi 35001a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 35011a2dd139Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 35021a2dd139Smrg test $ac_cv_safe_to_define___extensions__ = yes && 35031a2dd139Smrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 35041a2dd139Smrg 35051a2dd139Smrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 35061a2dd139Smrg 35071a2dd139Smrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 35081a2dd139Smrg 35091a2dd139Smrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 35101a2dd139Smrg 35111a2dd139Smrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 35121a2dd139Smrg 35131a2dd139Smrg 35141a2dd139Smrg 35151a2dd139Smrg# Initialize Automake 351605641e18Smrgam__api_version='1.15' 35171a2dd139Smrg 35181a2dd139Smrg# Find a good install program. We prefer a C program (faster), 35191a2dd139Smrg# so one script is as good as another. But avoid the broken or 35201a2dd139Smrg# incompatible versions: 35211a2dd139Smrg# SysV /etc/install, /usr/sbin/install 35221a2dd139Smrg# SunOS /usr/etc/install 35231a2dd139Smrg# IRIX /sbin/install 35241a2dd139Smrg# AIX /bin/install 35251a2dd139Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 35261a2dd139Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 35271a2dd139Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 35281a2dd139Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 35291a2dd139Smrg# OS/2's system install, which has a completely different semantic 35301a2dd139Smrg# ./install, which can be erroneously created by make from ./install.sh. 35311a2dd139Smrg# Reject install programs that cannot install multiple files. 35321a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 35331a2dd139Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 35341a2dd139Smrgif test -z "$INSTALL"; then 35351a2dd139Smrgif ${ac_cv_path_install+:} false; then : 35361a2dd139Smrg $as_echo_n "(cached) " >&6 35371a2dd139Smrgelse 35381a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35391a2dd139Smrgfor as_dir in $PATH 35401a2dd139Smrgdo 35411a2dd139Smrg IFS=$as_save_IFS 35421a2dd139Smrg test -z "$as_dir" && as_dir=. 35431a2dd139Smrg # Account for people who put trailing slashes in PATH elements. 35441a2dd139Smrgcase $as_dir/ in #(( 35451a2dd139Smrg ./ | .// | /[cC]/* | \ 35461a2dd139Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 35471a2dd139Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 35481a2dd139Smrg /usr/ucb/* ) ;; 35491a2dd139Smrg *) 35501a2dd139Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 35511a2dd139Smrg # Don't use installbsd from OSF since it installs stuff as root 35521a2dd139Smrg # by default. 35531a2dd139Smrg for ac_prog in ginstall scoinst install; do 35541a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 355505641e18Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 35561a2dd139Smrg if test $ac_prog = install && 35571a2dd139Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 35581a2dd139Smrg # AIX install. It has an incompatible calling convention. 35591a2dd139Smrg : 35601a2dd139Smrg elif test $ac_prog = install && 35611a2dd139Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 35621a2dd139Smrg # program-specific install script used by HP pwplus--don't use. 35631a2dd139Smrg : 35641a2dd139Smrg else 35651a2dd139Smrg rm -rf conftest.one conftest.two conftest.dir 35661a2dd139Smrg echo one > conftest.one 35671a2dd139Smrg echo two > conftest.two 35681a2dd139Smrg mkdir conftest.dir 35691a2dd139Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 35701a2dd139Smrg test -s conftest.one && test -s conftest.two && 35711a2dd139Smrg test -s conftest.dir/conftest.one && 35721a2dd139Smrg test -s conftest.dir/conftest.two 35731a2dd139Smrg then 35741a2dd139Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 35751a2dd139Smrg break 3 35761a2dd139Smrg fi 35771a2dd139Smrg fi 35781a2dd139Smrg fi 35791a2dd139Smrg done 35801a2dd139Smrg done 35811a2dd139Smrg ;; 35821a2dd139Smrgesac 35831a2dd139Smrg 35841a2dd139Smrg done 35851a2dd139SmrgIFS=$as_save_IFS 35861a2dd139Smrg 35871a2dd139Smrgrm -rf conftest.one conftest.two conftest.dir 35881a2dd139Smrg 35891a2dd139Smrgfi 35901a2dd139Smrg if test "${ac_cv_path_install+set}" = set; then 35911a2dd139Smrg INSTALL=$ac_cv_path_install 35921a2dd139Smrg else 35931a2dd139Smrg # As a last resort, use the slow shell script. Don't cache a 35941a2dd139Smrg # value for INSTALL within a source directory, because that will 35951a2dd139Smrg # break other packages using the cache if that directory is 35961a2dd139Smrg # removed, or if the value is a relative name. 35971a2dd139Smrg INSTALL=$ac_install_sh 35981a2dd139Smrg fi 35991a2dd139Smrgfi 36001a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 36011a2dd139Smrg$as_echo "$INSTALL" >&6; } 36021a2dd139Smrg 36031a2dd139Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 36041a2dd139Smrg# It thinks the first close brace ends the variable substitution. 36051a2dd139Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 36061a2dd139Smrg 36071a2dd139Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 36081a2dd139Smrg 36091a2dd139Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 36101a2dd139Smrg 36111a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 36121a2dd139Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 36131a2dd139Smrg# Reject unsafe characters in $srcdir or the absolute working directory 36141a2dd139Smrg# name. Accept space and tab only in the latter. 36151a2dd139Smrgam_lf=' 36161a2dd139Smrg' 36171a2dd139Smrgcase `pwd` in 36181a2dd139Smrg *[\\\"\#\$\&\'\`$am_lf]*) 36191a2dd139Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 36201a2dd139Smrgesac 36211a2dd139Smrgcase $srcdir in 36221a2dd139Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 362305641e18Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 36241a2dd139Smrgesac 36251a2dd139Smrg 362605641e18Smrg# Do 'set' in a subshell so we don't clobber the current shell's 36271a2dd139Smrg# arguments. Must try -L first in case configure is actually a 36281a2dd139Smrg# symlink; some systems play weird games with the mod time of symlinks 36291a2dd139Smrg# (eg FreeBSD returns the mod time of the symlink's containing 36301a2dd139Smrg# directory). 36311a2dd139Smrgif ( 363205641e18Smrg am_has_slept=no 363305641e18Smrg for am_try in 1 2; do 363405641e18Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 363505641e18Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 363605641e18Smrg if test "$*" = "X"; then 363705641e18Smrg # -L didn't work. 363805641e18Smrg set X `ls -t "$srcdir/configure" conftest.file` 363905641e18Smrg fi 364005641e18Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 364105641e18Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 364205641e18Smrg 364305641e18Smrg # If neither matched, then we have a broken ls. This can happen 364405641e18Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 364505641e18Smrg # broken ls alias from the environment. This has actually 364605641e18Smrg # happened. Such a system could not be considered "sane". 364705641e18Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 364805641e18Smrg alias in your environment" "$LINENO" 5 364905641e18Smrg fi 365005641e18Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 365105641e18Smrg break 365205641e18Smrg fi 365305641e18Smrg # Just in case. 365405641e18Smrg sleep 1 365505641e18Smrg am_has_slept=yes 365605641e18Smrg done 36571a2dd139Smrg test "$2" = conftest.file 36581a2dd139Smrg ) 36591a2dd139Smrgthen 36601a2dd139Smrg # Ok. 36611a2dd139Smrg : 36621a2dd139Smrgelse 36631a2dd139Smrg as_fn_error $? "newly created file is older than distributed files! 36641a2dd139SmrgCheck your system clock" "$LINENO" 5 36651a2dd139Smrgfi 36661a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36671a2dd139Smrg$as_echo "yes" >&6; } 366805641e18Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 366905641e18Smrg# generated files are strictly newer. 367005641e18Smrgam_sleep_pid= 367105641e18Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 367205641e18Smrg ( sleep 1 ) & 367305641e18Smrg am_sleep_pid=$! 367405641e18Smrgfi 367505641e18Smrg 367605641e18Smrgrm -f conftest.file 367705641e18Smrg 36781a2dd139Smrgtest "$program_prefix" != NONE && 36791a2dd139Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 36801a2dd139Smrg# Use a double $ so make ignores it. 36811a2dd139Smrgtest "$program_suffix" != NONE && 36821a2dd139Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 36831a2dd139Smrg# Double any \ or $. 36841a2dd139Smrg# By default was `s,x,x', remove it if useless. 36851a2dd139Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 36861a2dd139Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 36871a2dd139Smrg 36881a2dd139Smrgif test x"${MISSING+set}" != xset; then 36891a2dd139Smrg case $am_aux_dir in 36901a2dd139Smrg *\ * | *\ *) 36911a2dd139Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 36921a2dd139Smrg *) 36931a2dd139Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 36941a2dd139Smrg esac 36951a2dd139Smrgfi 36961a2dd139Smrg# Use eval to expand $SHELL 369705641e18Smrgif eval "$MISSING --is-lightweight"; then 369805641e18Smrg am_missing_run="$MISSING " 36991a2dd139Smrgelse 37001a2dd139Smrg am_missing_run= 370105641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 370205641e18Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 37031a2dd139Smrgfi 37041a2dd139Smrg 370505641e18Smrgif test x"${install_sh+set}" != xset; then 37061a2dd139Smrg case $am_aux_dir in 37071a2dd139Smrg *\ * | *\ *) 37081a2dd139Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 37091a2dd139Smrg *) 37101a2dd139Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 37111a2dd139Smrg esac 37121a2dd139Smrgfi 37131a2dd139Smrg 371405641e18Smrg# Installed binaries are usually stripped using 'strip' when the user 371505641e18Smrg# run "make install-strip". However 'strip' might not be the right 37161a2dd139Smrg# tool to use in cross-compilation environments, therefore Automake 371705641e18Smrg# will honor the 'STRIP' environment variable to overrule this program. 37181a2dd139Smrgif test "$cross_compiling" != no; then 37191a2dd139Smrg if test -n "$ac_tool_prefix"; then 37201a2dd139Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 37211a2dd139Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 37221a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37231a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 37241a2dd139Smrgif ${ac_cv_prog_STRIP+:} false; then : 37251a2dd139Smrg $as_echo_n "(cached) " >&6 37261a2dd139Smrgelse 37271a2dd139Smrg if test -n "$STRIP"; then 37281a2dd139Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37291a2dd139Smrgelse 37301a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37311a2dd139Smrgfor as_dir in $PATH 37321a2dd139Smrgdo 37331a2dd139Smrg IFS=$as_save_IFS 37341a2dd139Smrg test -z "$as_dir" && as_dir=. 37351a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 373605641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37371a2dd139Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 37381a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37391a2dd139Smrg break 2 37401a2dd139Smrg fi 37411a2dd139Smrgdone 37421a2dd139Smrg done 37431a2dd139SmrgIFS=$as_save_IFS 37441a2dd139Smrg 37451a2dd139Smrgfi 37461a2dd139Smrgfi 37471a2dd139SmrgSTRIP=$ac_cv_prog_STRIP 37481a2dd139Smrgif test -n "$STRIP"; then 37491a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37501a2dd139Smrg$as_echo "$STRIP" >&6; } 37511a2dd139Smrgelse 37521a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37531a2dd139Smrg$as_echo "no" >&6; } 37541a2dd139Smrgfi 37551a2dd139Smrg 37561a2dd139Smrg 37571a2dd139Smrgfi 37581a2dd139Smrgif test -z "$ac_cv_prog_STRIP"; then 37591a2dd139Smrg ac_ct_STRIP=$STRIP 37601a2dd139Smrg # Extract the first word of "strip", so it can be a program name with args. 37611a2dd139Smrgset dummy strip; ac_word=$2 37621a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37631a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 37641a2dd139Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37651a2dd139Smrg $as_echo_n "(cached) " >&6 37661a2dd139Smrgelse 37671a2dd139Smrg if test -n "$ac_ct_STRIP"; then 37681a2dd139Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37691a2dd139Smrgelse 37701a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37711a2dd139Smrgfor as_dir in $PATH 37721a2dd139Smrgdo 37731a2dd139Smrg IFS=$as_save_IFS 37741a2dd139Smrg test -z "$as_dir" && as_dir=. 37751a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 377605641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37771a2dd139Smrg ac_cv_prog_ac_ct_STRIP="strip" 37781a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37791a2dd139Smrg break 2 37801a2dd139Smrg fi 37811a2dd139Smrgdone 37821a2dd139Smrg done 37831a2dd139SmrgIFS=$as_save_IFS 37841a2dd139Smrg 37851a2dd139Smrgfi 37861a2dd139Smrgfi 37871a2dd139Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37881a2dd139Smrgif test -n "$ac_ct_STRIP"; then 37891a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37901a2dd139Smrg$as_echo "$ac_ct_STRIP" >&6; } 37911a2dd139Smrgelse 37921a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37931a2dd139Smrg$as_echo "no" >&6; } 37941a2dd139Smrgfi 37951a2dd139Smrg 37961a2dd139Smrg if test "x$ac_ct_STRIP" = x; then 37971a2dd139Smrg STRIP=":" 37981a2dd139Smrg else 37991a2dd139Smrg case $cross_compiling:$ac_tool_warned in 38001a2dd139Smrgyes:) 38011a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38021a2dd139Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38031a2dd139Smrgac_tool_warned=yes ;; 38041a2dd139Smrgesac 38051a2dd139Smrg STRIP=$ac_ct_STRIP 38061a2dd139Smrg fi 38071a2dd139Smrgelse 38081a2dd139Smrg STRIP="$ac_cv_prog_STRIP" 38091a2dd139Smrgfi 38101a2dd139Smrg 38111a2dd139Smrgfi 38121a2dd139SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 38131a2dd139Smrg 38141a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 38151a2dd139Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 38161a2dd139Smrgif test -z "$MKDIR_P"; then 38171a2dd139Smrg if ${ac_cv_path_mkdir+:} false; then : 38181a2dd139Smrg $as_echo_n "(cached) " >&6 38191a2dd139Smrgelse 38201a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38211a2dd139Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 38221a2dd139Smrgdo 38231a2dd139Smrg IFS=$as_save_IFS 38241a2dd139Smrg test -z "$as_dir" && as_dir=. 38251a2dd139Smrg for ac_prog in mkdir gmkdir; do 38261a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 382705641e18Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 38281a2dd139Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 38291a2dd139Smrg 'mkdir (GNU coreutils) '* | \ 38301a2dd139Smrg 'mkdir (coreutils) '* | \ 38311a2dd139Smrg 'mkdir (fileutils) '4.1*) 38321a2dd139Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 38331a2dd139Smrg break 3;; 38341a2dd139Smrg esac 38351a2dd139Smrg done 38361a2dd139Smrg done 38371a2dd139Smrg done 38381a2dd139SmrgIFS=$as_save_IFS 38391a2dd139Smrg 38401a2dd139Smrgfi 38411a2dd139Smrg 38421a2dd139Smrg test -d ./--version && rmdir ./--version 38431a2dd139Smrg if test "${ac_cv_path_mkdir+set}" = set; then 38441a2dd139Smrg MKDIR_P="$ac_cv_path_mkdir -p" 38451a2dd139Smrg else 38461a2dd139Smrg # As a last resort, use the slow shell script. Don't cache a 38471a2dd139Smrg # value for MKDIR_P within a source directory, because that will 38481a2dd139Smrg # break other packages using the cache if that directory is 38491a2dd139Smrg # removed, or if the value is a relative name. 38501a2dd139Smrg MKDIR_P="$ac_install_sh -d" 38511a2dd139Smrg fi 38521a2dd139Smrgfi 38531a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 38541a2dd139Smrg$as_echo "$MKDIR_P" >&6; } 38551a2dd139Smrg 38561a2dd139Smrgfor ac_prog in gawk mawk nawk awk 38571a2dd139Smrgdo 38581a2dd139Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 38591a2dd139Smrgset dummy $ac_prog; ac_word=$2 38601a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38611a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 38621a2dd139Smrgif ${ac_cv_prog_AWK+:} false; then : 38631a2dd139Smrg $as_echo_n "(cached) " >&6 38641a2dd139Smrgelse 38651a2dd139Smrg if test -n "$AWK"; then 38661a2dd139Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 38671a2dd139Smrgelse 38681a2dd139Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38691a2dd139Smrgfor as_dir in $PATH 38701a2dd139Smrgdo 38711a2dd139Smrg IFS=$as_save_IFS 38721a2dd139Smrg test -z "$as_dir" && as_dir=. 38731a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 387405641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38751a2dd139Smrg ac_cv_prog_AWK="$ac_prog" 38761a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38771a2dd139Smrg break 2 38781a2dd139Smrg fi 38791a2dd139Smrgdone 38801a2dd139Smrg done 38811a2dd139SmrgIFS=$as_save_IFS 38821a2dd139Smrg 38831a2dd139Smrgfi 38841a2dd139Smrgfi 38851a2dd139SmrgAWK=$ac_cv_prog_AWK 38861a2dd139Smrgif test -n "$AWK"; then 38871a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 38881a2dd139Smrg$as_echo "$AWK" >&6; } 38891a2dd139Smrgelse 38901a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38911a2dd139Smrg$as_echo "no" >&6; } 38921a2dd139Smrgfi 38931a2dd139Smrg 38941a2dd139Smrg 38951a2dd139Smrg test -n "$AWK" && break 38961a2dd139Smrgdone 38971a2dd139Smrg 38981a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 38991a2dd139Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 39001a2dd139Smrgset x ${MAKE-make} 39011a2dd139Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 39021a2dd139Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 39031a2dd139Smrg $as_echo_n "(cached) " >&6 39041a2dd139Smrgelse 39051a2dd139Smrg cat >conftest.make <<\_ACEOF 39061a2dd139SmrgSHELL = /bin/sh 39071a2dd139Smrgall: 39081a2dd139Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 39091a2dd139Smrg_ACEOF 39101a2dd139Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 39111a2dd139Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 39121a2dd139Smrg *@@@%%%=?*=@@@%%%*) 39131a2dd139Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 39141a2dd139Smrg *) 39151a2dd139Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 39161a2dd139Smrgesac 39171a2dd139Smrgrm -f conftest.make 39181a2dd139Smrgfi 39191a2dd139Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 39201a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39211a2dd139Smrg$as_echo "yes" >&6; } 39221a2dd139Smrg SET_MAKE= 39231a2dd139Smrgelse 39241a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39251a2dd139Smrg$as_echo "no" >&6; } 39261a2dd139Smrg SET_MAKE="MAKE=${MAKE-make}" 39271a2dd139Smrgfi 39281a2dd139Smrg 39291a2dd139Smrgrm -rf .tst 2>/dev/null 39301a2dd139Smrgmkdir .tst 2>/dev/null 39311a2dd139Smrgif test -d .tst; then 39321a2dd139Smrg am__leading_dot=. 39331a2dd139Smrgelse 39341a2dd139Smrg am__leading_dot=_ 39351a2dd139Smrgfi 39361a2dd139Smrgrmdir .tst 2>/dev/null 39371a2dd139Smrg 39381a2dd139SmrgDEPDIR="${am__leading_dot}deps" 39391a2dd139Smrg 39401a2dd139Smrgac_config_commands="$ac_config_commands depfiles" 39411a2dd139Smrg 39421a2dd139Smrg 39431a2dd139Smrgam_make=${MAKE-make} 39441a2dd139Smrgcat > confinc << 'END' 39451a2dd139Smrgam__doit: 39461a2dd139Smrg @echo this is the am__doit target 39471a2dd139Smrg.PHONY: am__doit 39481a2dd139SmrgEND 39491a2dd139Smrg# If we don't find an include directive, just comment out the code. 39501a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 39511a2dd139Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 39521a2dd139Smrgam__include="#" 39531a2dd139Smrgam__quote= 39541a2dd139Smrg_am_result=none 39551a2dd139Smrg# First try GNU make style include. 39561a2dd139Smrgecho "include confinc" > confmf 395705641e18Smrg# Ignore all kinds of additional output from 'make'. 39581a2dd139Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 39591a2dd139Smrg*the\ am__doit\ target*) 39601a2dd139Smrg am__include=include 39611a2dd139Smrg am__quote= 39621a2dd139Smrg _am_result=GNU 39631a2dd139Smrg ;; 39641a2dd139Smrgesac 39651a2dd139Smrg# Now try BSD make style include. 39661a2dd139Smrgif test "$am__include" = "#"; then 39671a2dd139Smrg echo '.include "confinc"' > confmf 39681a2dd139Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 39691a2dd139Smrg *the\ am__doit\ target*) 39701a2dd139Smrg am__include=.include 39711a2dd139Smrg am__quote="\"" 39721a2dd139Smrg _am_result=BSD 39731a2dd139Smrg ;; 39741a2dd139Smrg esac 39751a2dd139Smrgfi 39761a2dd139Smrg 39771a2dd139Smrg 39781a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 39791a2dd139Smrg$as_echo "$_am_result" >&6; } 39801a2dd139Smrgrm -f confinc confmf 39811a2dd139Smrg 39821a2dd139Smrg# Check whether --enable-dependency-tracking was given. 39831a2dd139Smrgif test "${enable_dependency_tracking+set}" = set; then : 39841a2dd139Smrg enableval=$enable_dependency_tracking; 39851a2dd139Smrgfi 39861a2dd139Smrg 39871a2dd139Smrgif test "x$enable_dependency_tracking" != xno; then 39881a2dd139Smrg am_depcomp="$ac_aux_dir/depcomp" 39891a2dd139Smrg AMDEPBACKSLASH='\' 39901a2dd139Smrg am__nodep='_no' 39911a2dd139Smrgfi 39921a2dd139Smrg if test "x$enable_dependency_tracking" != xno; then 39931a2dd139Smrg AMDEP_TRUE= 39941a2dd139Smrg AMDEP_FALSE='#' 39951a2dd139Smrgelse 39961a2dd139Smrg AMDEP_TRUE='#' 39971a2dd139Smrg AMDEP_FALSE= 39981a2dd139Smrgfi 39991a2dd139Smrg 40001a2dd139Smrg 400105641e18Smrg# Check whether --enable-silent-rules was given. 400205641e18Smrgif test "${enable_silent_rules+set}" = set; then : 400305641e18Smrg enableval=$enable_silent_rules; 400405641e18Smrgfi 400505641e18Smrg 400605641e18Smrgcase $enable_silent_rules in # ((( 400705641e18Smrg yes) AM_DEFAULT_VERBOSITY=0;; 400805641e18Smrg no) AM_DEFAULT_VERBOSITY=1;; 400905641e18Smrg *) AM_DEFAULT_VERBOSITY=1;; 401005641e18Smrgesac 401105641e18Smrgam_make=${MAKE-make} 401205641e18Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 401305641e18Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 401405641e18Smrgif ${am_cv_make_support_nested_variables+:} false; then : 401505641e18Smrg $as_echo_n "(cached) " >&6 401605641e18Smrgelse 401705641e18Smrg if $as_echo 'TRUE=$(BAR$(V)) 401805641e18SmrgBAR0=false 401905641e18SmrgBAR1=true 402005641e18SmrgV=1 402105641e18Smrgam__doit: 402205641e18Smrg @$(TRUE) 402305641e18Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 402405641e18Smrg am_cv_make_support_nested_variables=yes 402505641e18Smrgelse 402605641e18Smrg am_cv_make_support_nested_variables=no 402705641e18Smrgfi 402805641e18Smrgfi 402905641e18Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 403005641e18Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 403105641e18Smrgif test $am_cv_make_support_nested_variables = yes; then 403205641e18Smrg AM_V='$(V)' 403305641e18Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 403405641e18Smrgelse 403505641e18Smrg AM_V=$AM_DEFAULT_VERBOSITY 403605641e18Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 403705641e18Smrgfi 403805641e18SmrgAM_BACKSLASH='\' 403905641e18Smrg 40401a2dd139Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 40411a2dd139Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 40421a2dd139Smrg # is not polluted with repeated "-I." 40431a2dd139Smrg am__isrc=' -I$(srcdir)' 40441a2dd139Smrg # test to see if srcdir already configured 40451a2dd139Smrg if test -f $srcdir/config.status; then 40461a2dd139Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 40471a2dd139Smrg fi 40481a2dd139Smrgfi 40491a2dd139Smrg 40501a2dd139Smrg# test whether we have cygpath 40511a2dd139Smrgif test -z "$CYGPATH_W"; then 40521a2dd139Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 40531a2dd139Smrg CYGPATH_W='cygpath -w' 40541a2dd139Smrg else 40551a2dd139Smrg CYGPATH_W=echo 40561a2dd139Smrg fi 40571a2dd139Smrgfi 40581a2dd139Smrg 40591a2dd139Smrg 40601a2dd139Smrg# Define the identity of the package. 40611a2dd139Smrg PACKAGE='xev' 406205641e18Smrg VERSION='1.2.2' 40631a2dd139Smrg 40641a2dd139Smrg 40651a2dd139Smrgcat >>confdefs.h <<_ACEOF 40661a2dd139Smrg#define PACKAGE "$PACKAGE" 40671a2dd139Smrg_ACEOF 40681a2dd139Smrg 40691a2dd139Smrg 40701a2dd139Smrgcat >>confdefs.h <<_ACEOF 40711a2dd139Smrg#define VERSION "$VERSION" 40721a2dd139Smrg_ACEOF 4073f299d47fSmrg 4074f299d47fSmrg# Some tools Automake needs. 4075f299d47fSmrg 40761a2dd139SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 40771a2dd139Smrg 40781a2dd139Smrg 40791a2dd139SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 40801a2dd139Smrg 40811a2dd139Smrg 40821a2dd139SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 40831a2dd139Smrg 40841a2dd139Smrg 40851a2dd139SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 40861a2dd139Smrg 40871a2dd139Smrg 40881a2dd139SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 40891a2dd139Smrg 409005641e18Smrg# For better backward compatibility. To be removed once Automake 1.9.x 409105641e18Smrg# dies out for good. For more background, see: 409205641e18Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 409305641e18Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 409405641e18Smrgmkdir_p='$(MKDIR_P)' 409505641e18Smrg 409605641e18Smrg# We need awk for the "check" target (and possibly the TAP driver). The 409705641e18Smrg# system "awk" is bad on some platforms. 40981a2dd139Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 40991a2dd139Smrg# in the wild :-( We should find a proper way to deprecate it ... 41001a2dd139SmrgAMTAR='$${TAR-tar}' 41011a2dd139Smrg 410205641e18Smrg 410305641e18Smrg# We'll loop over all known methods to create a tar archive until one works. 410405641e18Smrg_am_tools='gnutar pax cpio none' 410505641e18Smrg 41061a2dd139Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 41071a2dd139Smrg 41081a2dd139Smrg 41091a2dd139Smrg 41101a2dd139Smrg 411105641e18Smrg 41121a2dd139Smrgdepcc="$CC" am_compiler_list= 41131a2dd139Smrg 41141a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 41151a2dd139Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 41161a2dd139Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 41171a2dd139Smrg $as_echo_n "(cached) " >&6 41181a2dd139Smrgelse 41191a2dd139Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 41201a2dd139Smrg # We make a subdir and do the tests there. Otherwise we can end up 41211a2dd139Smrg # making bogus files that we don't know about and never remove. For 41221a2dd139Smrg # instance it was reported that on HP-UX the gcc test will end up 412305641e18Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 412405641e18Smrg # in D". 41251a2dd139Smrg rm -rf conftest.dir 41261a2dd139Smrg mkdir conftest.dir 41271a2dd139Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 41281a2dd139Smrg # using a relative directory. 41291a2dd139Smrg cp "$am_depcomp" conftest.dir 41301a2dd139Smrg cd conftest.dir 41311a2dd139Smrg # We will build objects and dependencies in a subdirectory because 41321a2dd139Smrg # it helps to detect inapplicable dependency modes. For instance 41331a2dd139Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 41341a2dd139Smrg # side effect of compilation, but ICC will put the dependencies in 41351a2dd139Smrg # the current directory while Tru64 will put them in the object 41361a2dd139Smrg # directory. 41371a2dd139Smrg mkdir sub 41381a2dd139Smrg 41391a2dd139Smrg am_cv_CC_dependencies_compiler_type=none 41401a2dd139Smrg if test "$am_compiler_list" = ""; then 41411a2dd139Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 41421a2dd139Smrg fi 41431a2dd139Smrg am__universal=false 41441a2dd139Smrg case " $depcc " in #( 41451a2dd139Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 41461a2dd139Smrg esac 41471a2dd139Smrg 41481a2dd139Smrg for depmode in $am_compiler_list; do 41491a2dd139Smrg # Setup a source with many dependencies, because some compilers 41501a2dd139Smrg # like to wrap large dependency lists on column 80 (with \), and 41511a2dd139Smrg # we should not choose a depcomp mode which is confused by this. 41521a2dd139Smrg # 41531a2dd139Smrg # We need to recreate these files for each test, as the compiler may 41541a2dd139Smrg # overwrite some of them when testing with obscure command lines. 41551a2dd139Smrg # This happens at least with the AIX C compiler. 41561a2dd139Smrg : > sub/conftest.c 41571a2dd139Smrg for i in 1 2 3 4 5 6; do 41581a2dd139Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 415905641e18Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 416005641e18Smrg # Solaris 10 /bin/sh. 416105641e18Smrg echo '/* dummy */' > sub/conftst$i.h 41621a2dd139Smrg done 41631a2dd139Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 41641a2dd139Smrg 416505641e18Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 41661a2dd139Smrg # mode. It turns out that the SunPro C++ compiler does not properly 416705641e18Smrg # handle '-M -o', and we need to detect this. Also, some Intel 416805641e18Smrg # versions had trouble with output in subdirs. 41691a2dd139Smrg am__obj=sub/conftest.${OBJEXT-o} 41701a2dd139Smrg am__minus_obj="-o $am__obj" 41711a2dd139Smrg case $depmode in 41721a2dd139Smrg gcc) 41731a2dd139Smrg # This depmode causes a compiler race in universal mode. 41741a2dd139Smrg test "$am__universal" = false || continue 41751a2dd139Smrg ;; 41761a2dd139Smrg nosideeffect) 417705641e18Smrg # After this tag, mechanisms are not by side-effect, so they'll 417805641e18Smrg # only be used when explicitly requested. 41791a2dd139Smrg if test "x$enable_dependency_tracking" = xyes; then 41801a2dd139Smrg continue 41811a2dd139Smrg else 41821a2dd139Smrg break 41831a2dd139Smrg fi 41841a2dd139Smrg ;; 41851a2dd139Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 418605641e18Smrg # This compiler won't grok '-c -o', but also, the minuso test has 41871a2dd139Smrg # not run yet. These depmodes are late enough in the game, and 41881a2dd139Smrg # so weak that their functioning should not be impacted. 41891a2dd139Smrg am__obj=conftest.${OBJEXT-o} 41901a2dd139Smrg am__minus_obj= 41911a2dd139Smrg ;; 41921a2dd139Smrg none) break ;; 41931a2dd139Smrg esac 41941a2dd139Smrg if depmode=$depmode \ 41951a2dd139Smrg source=sub/conftest.c object=$am__obj \ 41961a2dd139Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 41971a2dd139Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 41981a2dd139Smrg >/dev/null 2>conftest.err && 41991a2dd139Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 42001a2dd139Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 42011a2dd139Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 42021a2dd139Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 42031a2dd139Smrg # icc doesn't choke on unknown options, it will just issue warnings 42041a2dd139Smrg # or remarks (even with -Werror). So we grep stderr for any message 42051a2dd139Smrg # that says an option was ignored or not supported. 42061a2dd139Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 42071a2dd139Smrg # icc: Command line warning: ignoring option '-M'; no argument required 42081a2dd139Smrg # The diagnosis changed in icc 8.0: 42091a2dd139Smrg # icc: Command line remark: option '-MP' not supported 42101a2dd139Smrg if (grep 'ignoring option' conftest.err || 42111a2dd139Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 42121a2dd139Smrg am_cv_CC_dependencies_compiler_type=$depmode 42131a2dd139Smrg break 42141a2dd139Smrg fi 42151a2dd139Smrg fi 42161a2dd139Smrg done 42171a2dd139Smrg 42181a2dd139Smrg cd .. 42191a2dd139Smrg rm -rf conftest.dir 42201a2dd139Smrgelse 42211a2dd139Smrg am_cv_CC_dependencies_compiler_type=none 42221a2dd139Smrgfi 42231a2dd139Smrg 42241a2dd139Smrgfi 42251a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 42261a2dd139Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 42271a2dd139SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 42281a2dd139Smrg 42291a2dd139Smrg if 42301a2dd139Smrg test "x$enable_dependency_tracking" != xno \ 42311a2dd139Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 42321a2dd139Smrg am__fastdepCC_TRUE= 42331a2dd139Smrg am__fastdepCC_FALSE='#' 42341a2dd139Smrgelse 42351a2dd139Smrg am__fastdepCC_TRUE='#' 42361a2dd139Smrg am__fastdepCC_FALSE= 42371a2dd139Smrgfi 42381a2dd139Smrg 42391a2dd139Smrg 42401a2dd139Smrg 424105641e18Smrg# POSIX will say in a future version that running "rm -f" with no argument 424205641e18Smrg# is OK; and we want to be able to make that assumption in our Makefile 424305641e18Smrg# recipes. So use an aggressive probe to check that the usage we want is 424405641e18Smrg# actually supported "in the wild" to an acceptable degree. 424505641e18Smrg# See automake bug#10828. 424605641e18Smrg# To make any issue more visible, cause the running configure to be aborted 424705641e18Smrg# by default if the 'rm' program in use doesn't match our expectations; the 424805641e18Smrg# user can still override this though. 424905641e18Smrgif rm -f && rm -fr && rm -rf; then : OK; else 425005641e18Smrg cat >&2 <<'END' 425105641e18SmrgOops! 42521a2dd139Smrg 425305641e18SmrgYour 'rm' program seems unable to run without file operands specified 425405641e18Smrgon the command line, even when the '-f' option is present. This is contrary 425505641e18Smrgto the behaviour of most rm programs out there, and not conforming with 425605641e18Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 42571a2dd139Smrg 425805641e18SmrgPlease tell bug-automake@gnu.org about your system, including the value 425905641e18Smrgof your $PATH and any error possibly output before this message. This 426005641e18Smrgcan help us improve future automake versions. 42611a2dd139Smrg 426205641e18SmrgEND 426305641e18Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 426405641e18Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 426505641e18Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 426605641e18Smrg echo >&2 426705641e18Smrg else 426805641e18Smrg cat >&2 <<'END' 426905641e18SmrgAborting the configuration process, to ensure you take notice of the issue. 427005641e18Smrg 427105641e18SmrgYou can download and install GNU coreutils to get an 'rm' implementation 427205641e18Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 42731a2dd139Smrg 427405641e18SmrgIf you want to complete the configuration process using your problematic 427505641e18Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 427605641e18Smrgto "yes", and re-run configure. 427705641e18Smrg 427805641e18SmrgEND 427905641e18Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 428005641e18Smrg fi 428105641e18Smrgfi 42821a2dd139Smrg 42831a2dd139Smrg 42841a2dd139Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 42851a2dd139Smrg 42861a2dd139Smrg 42871a2dd139Smrg 42881a2dd139Smrg 42891a2dd139Smrg 42901a2dd139Smrg 42911a2dd139Smrg 42921a2dd139Smrg 42931a2dd139Smrg 42941a2dd139Smrg 42951a2dd139Smrg 42961a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 42971a2dd139Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 42981a2dd139Smrgif ${ac_cv_prog_cc_c99+:} false; then : 42991a2dd139Smrg $as_echo_n "(cached) " >&6 43001a2dd139Smrgelse 43011a2dd139Smrg ac_cv_prog_cc_c99=no 43021a2dd139Smrgac_save_CC=$CC 43031a2dd139Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 43041a2dd139Smrg/* end confdefs.h. */ 43051a2dd139Smrg#include <stdarg.h> 43061a2dd139Smrg#include <stdbool.h> 43071a2dd139Smrg#include <stdlib.h> 43081a2dd139Smrg#include <wchar.h> 43091a2dd139Smrg#include <stdio.h> 43101a2dd139Smrg 43111a2dd139Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 43121a2dd139Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 43131a2dd139Smrg#define showlist(...) puts (#__VA_ARGS__) 43141a2dd139Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 43151a2dd139Smrgstatic void 43161a2dd139Smrgtest_varargs_macros (void) 43171a2dd139Smrg{ 43181a2dd139Smrg int x = 1234; 43191a2dd139Smrg int y = 5678; 43201a2dd139Smrg debug ("Flag"); 43211a2dd139Smrg debug ("X = %d\n", x); 43221a2dd139Smrg showlist (The first, second, and third items.); 43231a2dd139Smrg report (x>y, "x is %d but y is %d", x, y); 43241a2dd139Smrg} 43251a2dd139Smrg 43261a2dd139Smrg// Check long long types. 43271a2dd139Smrg#define BIG64 18446744073709551615ull 43281a2dd139Smrg#define BIG32 4294967295ul 43291a2dd139Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 43301a2dd139Smrg#if !BIG_OK 43311a2dd139Smrg your preprocessor is broken; 43321a2dd139Smrg#endif 43331a2dd139Smrg#if BIG_OK 43341a2dd139Smrg#else 43351a2dd139Smrg your preprocessor is broken; 43361a2dd139Smrg#endif 43371a2dd139Smrgstatic long long int bignum = -9223372036854775807LL; 43381a2dd139Smrgstatic unsigned long long int ubignum = BIG64; 43391a2dd139Smrg 43401a2dd139Smrgstruct incomplete_array 43411a2dd139Smrg{ 43421a2dd139Smrg int datasize; 43431a2dd139Smrg double data[]; 43441a2dd139Smrg}; 43451a2dd139Smrg 43461a2dd139Smrgstruct named_init { 43471a2dd139Smrg int number; 43481a2dd139Smrg const wchar_t *name; 43491a2dd139Smrg double average; 43501a2dd139Smrg}; 43511a2dd139Smrg 43521a2dd139Smrgtypedef const char *ccp; 43531a2dd139Smrg 43541a2dd139Smrgstatic inline int 43551a2dd139Smrgtest_restrict (ccp restrict text) 43561a2dd139Smrg{ 43571a2dd139Smrg // See if C++-style comments work. 43581a2dd139Smrg // Iterate through items via the restricted pointer. 43591a2dd139Smrg // Also check for declarations in for loops. 43601a2dd139Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 43611a2dd139Smrg continue; 43621a2dd139Smrg return 0; 43631a2dd139Smrg} 43641a2dd139Smrg 43651a2dd139Smrg// Check varargs and va_copy. 43661a2dd139Smrgstatic void 43671a2dd139Smrgtest_varargs (const char *format, ...) 43681a2dd139Smrg{ 43691a2dd139Smrg va_list args; 43701a2dd139Smrg va_start (args, format); 43711a2dd139Smrg va_list args_copy; 43721a2dd139Smrg va_copy (args_copy, args); 43731a2dd139Smrg 43741a2dd139Smrg const char *str; 43751a2dd139Smrg int number; 43761a2dd139Smrg float fnumber; 43771a2dd139Smrg 43781a2dd139Smrg while (*format) 43791a2dd139Smrg { 43801a2dd139Smrg switch (*format++) 43811a2dd139Smrg { 43821a2dd139Smrg case 's': // string 43831a2dd139Smrg str = va_arg (args_copy, const char *); 43841a2dd139Smrg break; 43851a2dd139Smrg case 'd': // int 43861a2dd139Smrg number = va_arg (args_copy, int); 43871a2dd139Smrg break; 43881a2dd139Smrg case 'f': // float 43891a2dd139Smrg fnumber = va_arg (args_copy, double); 43901a2dd139Smrg break; 43911a2dd139Smrg default: 43921a2dd139Smrg break; 43931a2dd139Smrg } 43941a2dd139Smrg } 43951a2dd139Smrg va_end (args_copy); 43961a2dd139Smrg va_end (args); 43971a2dd139Smrg} 43981a2dd139Smrg 43991a2dd139Smrgint 44001a2dd139Smrgmain () 44011a2dd139Smrg{ 44021a2dd139Smrg 44031a2dd139Smrg // Check bool. 44041a2dd139Smrg _Bool success = false; 44051a2dd139Smrg 44061a2dd139Smrg // Check restrict. 44071a2dd139Smrg if (test_restrict ("String literal") == 0) 44081a2dd139Smrg success = true; 44091a2dd139Smrg char *restrict newvar = "Another string"; 44101a2dd139Smrg 44111a2dd139Smrg // Check varargs. 44121a2dd139Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 44131a2dd139Smrg test_varargs_macros (); 44141a2dd139Smrg 44151a2dd139Smrg // Check flexible array members. 44161a2dd139Smrg struct incomplete_array *ia = 44171a2dd139Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 44181a2dd139Smrg ia->datasize = 10; 44191a2dd139Smrg for (int i = 0; i < ia->datasize; ++i) 44201a2dd139Smrg ia->data[i] = i * 1.234; 44211a2dd139Smrg 44221a2dd139Smrg // Check named initializers. 44231a2dd139Smrg struct named_init ni = { 44241a2dd139Smrg .number = 34, 44251a2dd139Smrg .name = L"Test wide string", 44261a2dd139Smrg .average = 543.34343, 44271a2dd139Smrg }; 44281a2dd139Smrg 44291a2dd139Smrg ni.number = 58; 44301a2dd139Smrg 44311a2dd139Smrg int dynamic_array[ni.number]; 44321a2dd139Smrg dynamic_array[ni.number - 1] = 543; 44331a2dd139Smrg 44341a2dd139Smrg // work around unused variable warnings 44351a2dd139Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 44361a2dd139Smrg || dynamic_array[ni.number - 1] != 543); 44371a2dd139Smrg 44381a2dd139Smrg ; 44391a2dd139Smrg return 0; 44401a2dd139Smrg} 44411a2dd139Smrg_ACEOF 444205641e18Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 44431a2dd139Smrgdo 44441a2dd139Smrg CC="$ac_save_CC $ac_arg" 44451a2dd139Smrg if ac_fn_c_try_compile "$LINENO"; then : 44461a2dd139Smrg ac_cv_prog_cc_c99=$ac_arg 44471a2dd139Smrgfi 44481a2dd139Smrgrm -f core conftest.err conftest.$ac_objext 44491a2dd139Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 44501a2dd139Smrgdone 44511a2dd139Smrgrm -f conftest.$ac_ext 44521a2dd139SmrgCC=$ac_save_CC 44531a2dd139Smrg 44541a2dd139Smrgfi 44551a2dd139Smrg# AC_CACHE_VAL 44561a2dd139Smrgcase "x$ac_cv_prog_cc_c99" in 44571a2dd139Smrg x) 44581a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 44591a2dd139Smrg$as_echo "none needed" >&6; } ;; 44601a2dd139Smrg xno) 44611a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 44621a2dd139Smrg$as_echo "unsupported" >&6; } ;; 44631a2dd139Smrg *) 44641a2dd139Smrg CC="$CC $ac_cv_prog_cc_c99" 44651a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 44661a2dd139Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 44671a2dd139Smrgesac 44681a2dd139Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 44691a2dd139Smrg 44701a2dd139Smrgfi 44711a2dd139Smrg 44721a2dd139Smrg 44731a2dd139Smrg 44741a2dd139Smrg 44751a2dd139Smrg 44761a2dd139Smrg 44771a2dd139Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 44781a2dd139Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 44791a2dd139Smrg CLANGCC="yes" 44801a2dd139Smrgelse 44811a2dd139Smrg CLANGCC="no" 44821a2dd139Smrgfi 44831a2dd139Smrg 44841a2dd139Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 44851a2dd139Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 44861a2dd139Smrg INTELCC="yes" 44871a2dd139Smrgelse 44881a2dd139Smrg INTELCC="no" 44891a2dd139Smrgfi 44901a2dd139Smrg 44911a2dd139Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 44921a2dd139Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 44931a2dd139Smrg SUNCC="yes" 44941a2dd139Smrgelse 44951a2dd139Smrg SUNCC="no" 44961a2dd139Smrgfi 44971a2dd139Smrg 44981a2dd139Smrg 44991a2dd139Smrg 45001a2dd139Smrg 45011a2dd139Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 45021a2dd139Smrg if test -n "$ac_tool_prefix"; then 45031a2dd139Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 45041a2dd139Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 45051a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45061a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 45071a2dd139Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 45081a2dd139Smrg $as_echo_n "(cached) " >&6 45091a2dd139Smrgelse 45101a2dd139Smrg case $PKG_CONFIG in 45111a2dd139Smrg [\\/]* | ?:[\\/]*) 45121a2dd139Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 45131a2dd139Smrg ;; 45141a2dd139Smrg *) 45151a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45161a2dd139Smrgfor as_dir in $PATH 45171a2dd139Smrgdo 45181a2dd139Smrg IFS=$as_save_IFS 45191a2dd139Smrg test -z "$as_dir" && as_dir=. 45201a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 452105641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45221a2dd139Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45231a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45241a2dd139Smrg break 2 45251a2dd139Smrg fi 45261a2dd139Smrgdone 45271a2dd139Smrg done 45281a2dd139SmrgIFS=$as_save_IFS 45291a2dd139Smrg 45301a2dd139Smrg ;; 45311a2dd139Smrgesac 45321a2dd139Smrgfi 45331a2dd139SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 45341a2dd139Smrgif test -n "$PKG_CONFIG"; then 45351a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 45361a2dd139Smrg$as_echo "$PKG_CONFIG" >&6; } 45371a2dd139Smrgelse 45381a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45391a2dd139Smrg$as_echo "no" >&6; } 45401a2dd139Smrgfi 45411a2dd139Smrg 45421a2dd139Smrg 45431a2dd139Smrgfi 45441a2dd139Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 45451a2dd139Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 45461a2dd139Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 45471a2dd139Smrgset dummy pkg-config; ac_word=$2 45481a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45491a2dd139Smrg$as_echo_n "checking for $ac_word... " >&6; } 45501a2dd139Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 45511a2dd139Smrg $as_echo_n "(cached) " >&6 45521a2dd139Smrgelse 45531a2dd139Smrg case $ac_pt_PKG_CONFIG in 45541a2dd139Smrg [\\/]* | ?:[\\/]*) 45551a2dd139Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 45561a2dd139Smrg ;; 45571a2dd139Smrg *) 45581a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45591a2dd139Smrgfor as_dir in $PATH 45601a2dd139Smrgdo 45611a2dd139Smrg IFS=$as_save_IFS 45621a2dd139Smrg test -z "$as_dir" && as_dir=. 45631a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 456405641e18Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45651a2dd139Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45661a2dd139Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45671a2dd139Smrg break 2 45681a2dd139Smrg fi 45691a2dd139Smrgdone 45701a2dd139Smrg done 45711a2dd139SmrgIFS=$as_save_IFS 45721a2dd139Smrg 45731a2dd139Smrg ;; 45741a2dd139Smrgesac 45751a2dd139Smrgfi 45761a2dd139Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 45771a2dd139Smrgif test -n "$ac_pt_PKG_CONFIG"; then 45781a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 45791a2dd139Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 45801a2dd139Smrgelse 45811a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45821a2dd139Smrg$as_echo "no" >&6; } 45831a2dd139Smrgfi 45841a2dd139Smrg 45851a2dd139Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 45861a2dd139Smrg PKG_CONFIG="" 45871a2dd139Smrg else 45881a2dd139Smrg case $cross_compiling:$ac_tool_warned in 45891a2dd139Smrgyes:) 45901a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45911a2dd139Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45921a2dd139Smrgac_tool_warned=yes ;; 45931a2dd139Smrgesac 45941a2dd139Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 45951a2dd139Smrg fi 45961a2dd139Smrgelse 45971a2dd139Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 45981a2dd139Smrgfi 45991a2dd139Smrg 46001a2dd139Smrgfi 46011a2dd139Smrgif test -n "$PKG_CONFIG"; then 46021a2dd139Smrg _pkg_min_version=0.9.0 46031a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 46041a2dd139Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 46051a2dd139Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 46061a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46071a2dd139Smrg$as_echo "yes" >&6; } 46081a2dd139Smrg else 46091a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46101a2dd139Smrg$as_echo "no" >&6; } 46111a2dd139Smrg PKG_CONFIG="" 46121a2dd139Smrg fi 461305641e18Smrg 46141a2dd139Smrgfi 46151a2dd139Smrg# Make sure we can run config.sub. 46161a2dd139Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 46171a2dd139Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 46181a2dd139Smrg 46191a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 46201a2dd139Smrg$as_echo_n "checking build system type... " >&6; } 46211a2dd139Smrgif ${ac_cv_build+:} false; then : 46221a2dd139Smrg $as_echo_n "(cached) " >&6 46231a2dd139Smrgelse 46241a2dd139Smrg ac_build_alias=$build_alias 46251a2dd139Smrgtest "x$ac_build_alias" = x && 46261a2dd139Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 46271a2dd139Smrgtest "x$ac_build_alias" = x && 46281a2dd139Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 46291a2dd139Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 46301a2dd139Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 46311a2dd139Smrg 46321a2dd139Smrgfi 46331a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 46341a2dd139Smrg$as_echo "$ac_cv_build" >&6; } 46351a2dd139Smrgcase $ac_cv_build in 46361a2dd139Smrg*-*-*) ;; 46371a2dd139Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 46381a2dd139Smrgesac 46391a2dd139Smrgbuild=$ac_cv_build 46401a2dd139Smrgac_save_IFS=$IFS; IFS='-' 46411a2dd139Smrgset x $ac_cv_build 46421a2dd139Smrgshift 46431a2dd139Smrgbuild_cpu=$1 46441a2dd139Smrgbuild_vendor=$2 46451a2dd139Smrgshift; shift 46461a2dd139Smrg# Remember, the first character of IFS is used to create $*, 46471a2dd139Smrg# except with old shells: 46481a2dd139Smrgbuild_os=$* 46491a2dd139SmrgIFS=$ac_save_IFS 46501a2dd139Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 46511a2dd139Smrg 46521a2dd139Smrg 46531a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 46541a2dd139Smrg$as_echo_n "checking host system type... " >&6; } 46551a2dd139Smrgif ${ac_cv_host+:} false; then : 46561a2dd139Smrg $as_echo_n "(cached) " >&6 46571a2dd139Smrgelse 46581a2dd139Smrg if test "x$host_alias" = x; then 46591a2dd139Smrg ac_cv_host=$ac_cv_build 46601a2dd139Smrgelse 46611a2dd139Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 46621a2dd139Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 46631a2dd139Smrgfi 46641a2dd139Smrg 46651a2dd139Smrgfi 46661a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46671a2dd139Smrg$as_echo "$ac_cv_host" >&6; } 46681a2dd139Smrgcase $ac_cv_host in 46691a2dd139Smrg*-*-*) ;; 46701a2dd139Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 46711a2dd139Smrgesac 46721a2dd139Smrghost=$ac_cv_host 46731a2dd139Smrgac_save_IFS=$IFS; IFS='-' 46741a2dd139Smrgset x $ac_cv_host 46751a2dd139Smrgshift 46761a2dd139Smrghost_cpu=$1 46771a2dd139Smrghost_vendor=$2 46781a2dd139Smrgshift; shift 46791a2dd139Smrg# Remember, the first character of IFS is used to create $*, 46801a2dd139Smrg# except with old shells: 46811a2dd139Smrghost_os=$* 46821a2dd139SmrgIFS=$ac_save_IFS 46831a2dd139Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 46841a2dd139Smrg 46851a2dd139Smrg 46861a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 46871a2dd139Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 46881a2dd139Smrgif ${ac_cv_path_SED+:} false; then : 46891a2dd139Smrg $as_echo_n "(cached) " >&6 46901a2dd139Smrgelse 46911a2dd139Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 46921a2dd139Smrg for ac_i in 1 2 3 4 5 6 7; do 46931a2dd139Smrg ac_script="$ac_script$as_nl$ac_script" 46941a2dd139Smrg done 46951a2dd139Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 46961a2dd139Smrg { ac_script=; unset ac_script;} 46971a2dd139Smrg if test -z "$SED"; then 46981a2dd139Smrg ac_path_SED_found=false 46991a2dd139Smrg # Loop through the user's path and test for each of PROGNAME-LIST 47001a2dd139Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47011a2dd139Smrgfor as_dir in $PATH 47021a2dd139Smrgdo 47031a2dd139Smrg IFS=$as_save_IFS 47041a2dd139Smrg test -z "$as_dir" && as_dir=. 47051a2dd139Smrg for ac_prog in sed gsed; do 47061a2dd139Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47071a2dd139Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 470805641e18Smrg as_fn_executable_p "$ac_path_SED" || continue 47091a2dd139Smrg# Check for GNU ac_path_SED and select it if it is found. 47101a2dd139Smrg # Check for GNU $ac_path_SED 47111a2dd139Smrgcase `"$ac_path_SED" --version 2>&1` in 47121a2dd139Smrg*GNU*) 47131a2dd139Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 47141a2dd139Smrg*) 47151a2dd139Smrg ac_count=0 47161a2dd139Smrg $as_echo_n 0123456789 >"conftest.in" 47171a2dd139Smrg while : 47181a2dd139Smrg do 47191a2dd139Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 47201a2dd139Smrg mv "conftest.tmp" "conftest.in" 47211a2dd139Smrg cp "conftest.in" "conftest.nl" 47221a2dd139Smrg $as_echo '' >> "conftest.nl" 47231a2dd139Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 47241a2dd139Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 47251a2dd139Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 47261a2dd139Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 47271a2dd139Smrg # Best one so far, save it but keep looking for a better one 47281a2dd139Smrg ac_cv_path_SED="$ac_path_SED" 47291a2dd139Smrg ac_path_SED_max=$ac_count 47301a2dd139Smrg fi 47311a2dd139Smrg # 10*(2^10) chars as input seems more than enough 47321a2dd139Smrg test $ac_count -gt 10 && break 47331a2dd139Smrg done 47341a2dd139Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 47351a2dd139Smrgesac 47361a2dd139Smrg 47371a2dd139Smrg $ac_path_SED_found && break 3 47381a2dd139Smrg done 47391a2dd139Smrg done 47401a2dd139Smrg done 47411a2dd139SmrgIFS=$as_save_IFS 47421a2dd139Smrg if test -z "$ac_cv_path_SED"; then 47431a2dd139Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 47441a2dd139Smrg fi 47451a2dd139Smrgelse 47461a2dd139Smrg ac_cv_path_SED=$SED 47471a2dd139Smrgfi 47481a2dd139Smrg 47491a2dd139Smrgfi 47501a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 47511a2dd139Smrg$as_echo "$ac_cv_path_SED" >&6; } 47521a2dd139Smrg SED="$ac_cv_path_SED" 47531a2dd139Smrg rm -f conftest.sed 47541a2dd139Smrg 47551a2dd139Smrg 47561a2dd139Smrg 47571a2dd139Smrg 47581a2dd139Smrg 47591a2dd139Smrg 47601a2dd139Smrg# Check whether --enable-selective-werror was given. 47611a2dd139Smrgif test "${enable_selective_werror+set}" = set; then : 47621a2dd139Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 47631a2dd139Smrgelse 47641a2dd139Smrg SELECTIVE_WERROR=yes 47651a2dd139Smrgfi 47661a2dd139Smrg 47671a2dd139Smrg 47681a2dd139Smrg 47691a2dd139Smrg 47701a2dd139Smrg 47711a2dd139Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 47721a2dd139Smrgif test "x$SUNCC" = "xyes"; then 47731a2dd139Smrg BASE_CFLAGS="-v" 47741a2dd139Smrgelse 47751a2dd139Smrg BASE_CFLAGS="" 47761a2dd139Smrgfi 47771a2dd139Smrg 47781a2dd139Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 47791a2dd139Smrg 47801a2dd139Smrg 47811a2dd139Smrg 47821a2dd139Smrg 47831a2dd139Smrg 47841a2dd139Smrg 47851a2dd139Smrg 47861a2dd139Smrg 47871a2dd139Smrg 47881a2dd139Smrg 47891a2dd139Smrg 47901a2dd139Smrg 47911a2dd139Smrg 47921a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47931a2dd139Smrg 47941a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 47951a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47961a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 47971a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 47981a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 47991a2dd139Smrg $as_echo_n "(cached) " >&6 48001a2dd139Smrgelse 48011a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48021a2dd139Smrg/* end confdefs.h. */ 48031a2dd139Smrgint i; 48041a2dd139Smrg_ACEOF 48051a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 48061a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 48071a2dd139Smrgelse 48081a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 48091a2dd139Smrgfi 48101a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48111a2dd139Smrgfi 48121a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48131a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48141a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 48151a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48161a2dd139Smrgfi 48171a2dd139Smrg 48181a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48191a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48201a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48211a2dd139Smrg fi 48221a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48231a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48241a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48251a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 48261a2dd139Smrg $as_echo_n "(cached) " >&6 48271a2dd139Smrgelse 48281a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48291a2dd139Smrg/* end confdefs.h. */ 48301a2dd139Smrgint i; 48311a2dd139Smrg_ACEOF 48321a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 48331a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 48341a2dd139Smrgelse 48351a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48361a2dd139Smrgfi 48371a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48381a2dd139Smrgfi 48391a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48401a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48411a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 48421a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48431a2dd139Smrgfi 48441a2dd139Smrg 48451a2dd139Smrgfound="no" 48461a2dd139Smrg 48471a2dd139Smrg if test $found = "no" ; then 484805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48491a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48501a2dd139Smrg fi 48511a2dd139Smrg 485205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 48531a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48541a2dd139Smrg fi 48551a2dd139Smrg 48561a2dd139Smrg CFLAGS="$CFLAGS -Wall" 48571a2dd139Smrg 48581a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 48591a2dd139Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 48601a2dd139Smrg cacheid=xorg_cv_cc_flag__Wall 48611a2dd139Smrg if eval \${$cacheid+:} false; then : 48621a2dd139Smrg $as_echo_n "(cached) " >&6 48631a2dd139Smrgelse 48641a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48651a2dd139Smrg/* end confdefs.h. */ 48661a2dd139Smrgint i; 48671a2dd139Smrgint 48681a2dd139Smrgmain () 48691a2dd139Smrg{ 48701a2dd139Smrg 48711a2dd139Smrg ; 48721a2dd139Smrg return 0; 48731a2dd139Smrg} 48741a2dd139Smrg_ACEOF 48751a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 48761a2dd139Smrg eval $cacheid=yes 48771a2dd139Smrgelse 48781a2dd139Smrg eval $cacheid=no 48791a2dd139Smrgfi 48801a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 48811a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 48821a2dd139Smrgfi 48831a2dd139Smrg 48841a2dd139Smrg 48851a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48861a2dd139Smrg 48871a2dd139Smrg eval supported=\$$cacheid 48881a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48891a2dd139Smrg$as_echo "$supported" >&6; } 48901a2dd139Smrg if test "$supported" = "yes" ; then 48911a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 48921a2dd139Smrg found="yes" 48931a2dd139Smrg fi 48941a2dd139Smrg fi 48951a2dd139Smrg 48961a2dd139Smrg 48971a2dd139Smrg 48981a2dd139Smrg 48991a2dd139Smrg 49001a2dd139Smrg 49011a2dd139Smrg 49021a2dd139Smrg 49031a2dd139Smrg 49041a2dd139Smrg 49051a2dd139Smrg 49061a2dd139Smrg 49071a2dd139Smrg 49081a2dd139Smrg 49091a2dd139Smrg 49101a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 49111a2dd139Smrg 49121a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 49131a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49141a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 49151a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 49161a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 49171a2dd139Smrg $as_echo_n "(cached) " >&6 49181a2dd139Smrgelse 49191a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49201a2dd139Smrg/* end confdefs.h. */ 49211a2dd139Smrgint i; 49221a2dd139Smrg_ACEOF 49231a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 49241a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 49251a2dd139Smrgelse 49261a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 49271a2dd139Smrgfi 49281a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49291a2dd139Smrgfi 49301a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49311a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49321a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49331a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49341a2dd139Smrgfi 49351a2dd139Smrg 49361a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49371a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49381a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49391a2dd139Smrg fi 49401a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49411a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49421a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49431a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 49441a2dd139Smrg $as_echo_n "(cached) " >&6 49451a2dd139Smrgelse 49461a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49471a2dd139Smrg/* end confdefs.h. */ 49481a2dd139Smrgint i; 49491a2dd139Smrg_ACEOF 49501a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 49511a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 49521a2dd139Smrgelse 49531a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 49541a2dd139Smrgfi 49551a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49561a2dd139Smrgfi 49571a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49581a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49591a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 49601a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49611a2dd139Smrgfi 49621a2dd139Smrg 49631a2dd139Smrgfound="no" 49641a2dd139Smrg 49651a2dd139Smrg if test $found = "no" ; then 496605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49671a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49681a2dd139Smrg fi 49691a2dd139Smrg 497005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 49711a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49721a2dd139Smrg fi 49731a2dd139Smrg 49741a2dd139Smrg CFLAGS="$CFLAGS -Wpointer-arith" 49751a2dd139Smrg 49761a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 49771a2dd139Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 49781a2dd139Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 49791a2dd139Smrg if eval \${$cacheid+:} false; then : 49801a2dd139Smrg $as_echo_n "(cached) " >&6 49811a2dd139Smrgelse 49821a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49831a2dd139Smrg/* end confdefs.h. */ 49841a2dd139Smrgint i; 49851a2dd139Smrgint 49861a2dd139Smrgmain () 49871a2dd139Smrg{ 49881a2dd139Smrg 49891a2dd139Smrg ; 49901a2dd139Smrg return 0; 49911a2dd139Smrg} 49921a2dd139Smrg_ACEOF 49931a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 49941a2dd139Smrg eval $cacheid=yes 49951a2dd139Smrgelse 49961a2dd139Smrg eval $cacheid=no 49971a2dd139Smrgfi 49981a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 49991a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 50001a2dd139Smrgfi 50011a2dd139Smrg 50021a2dd139Smrg 50031a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50041a2dd139Smrg 50051a2dd139Smrg eval supported=\$$cacheid 50061a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 50071a2dd139Smrg$as_echo "$supported" >&6; } 50081a2dd139Smrg if test "$supported" = "yes" ; then 50091a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 50101a2dd139Smrg found="yes" 50111a2dd139Smrg fi 50121a2dd139Smrg fi 50131a2dd139Smrg 50141a2dd139Smrg 50151a2dd139Smrg 50161a2dd139Smrg 50171a2dd139Smrg 50181a2dd139Smrg 50191a2dd139Smrg 50201a2dd139Smrg 50211a2dd139Smrg 50221a2dd139Smrg 50231a2dd139Smrg 50241a2dd139Smrg 50251a2dd139Smrg 50261a2dd139Smrg 50271a2dd139Smrg 50281a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50291a2dd139Smrg 50301a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50311a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50321a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50331a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50341a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50351a2dd139Smrg $as_echo_n "(cached) " >&6 50361a2dd139Smrgelse 50371a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50381a2dd139Smrg/* end confdefs.h. */ 50391a2dd139Smrgint i; 50401a2dd139Smrg_ACEOF 50411a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 50421a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50431a2dd139Smrgelse 50441a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 50451a2dd139Smrgfi 50461a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50471a2dd139Smrgfi 50481a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50491a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50501a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 50511a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50521a2dd139Smrgfi 50531a2dd139Smrg 50541a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50551a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50561a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50571a2dd139Smrg fi 50581a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50591a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50601a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50611a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50621a2dd139Smrg $as_echo_n "(cached) " >&6 50631a2dd139Smrgelse 50641a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50651a2dd139Smrg/* end confdefs.h. */ 50661a2dd139Smrgint i; 50671a2dd139Smrg_ACEOF 50681a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 50691a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50701a2dd139Smrgelse 50711a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50721a2dd139Smrgfi 50731a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50741a2dd139Smrgfi 50751a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50761a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50771a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50781a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50791a2dd139Smrgfi 50801a2dd139Smrg 50811a2dd139Smrgfound="no" 50821a2dd139Smrg 50831a2dd139Smrg if test $found = "no" ; then 508405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50851a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50861a2dd139Smrg fi 50871a2dd139Smrg 508805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 50891a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50901a2dd139Smrg fi 50911a2dd139Smrg 50921a2dd139Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 50931a2dd139Smrg 50941a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 50951a2dd139Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 50961a2dd139Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 50971a2dd139Smrg if eval \${$cacheid+:} false; then : 50981a2dd139Smrg $as_echo_n "(cached) " >&6 50991a2dd139Smrgelse 51001a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51011a2dd139Smrg/* end confdefs.h. */ 51021a2dd139Smrgint i; 51031a2dd139Smrgint 51041a2dd139Smrgmain () 51051a2dd139Smrg{ 51061a2dd139Smrg 51071a2dd139Smrg ; 51081a2dd139Smrg return 0; 51091a2dd139Smrg} 51101a2dd139Smrg_ACEOF 51111a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 51121a2dd139Smrg eval $cacheid=yes 51131a2dd139Smrgelse 51141a2dd139Smrg eval $cacheid=no 51151a2dd139Smrgfi 51161a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 51171a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 51181a2dd139Smrgfi 51191a2dd139Smrg 51201a2dd139Smrg 51211a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51221a2dd139Smrg 51231a2dd139Smrg eval supported=\$$cacheid 51241a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51251a2dd139Smrg$as_echo "$supported" >&6; } 51261a2dd139Smrg if test "$supported" = "yes" ; then 51271a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 51281a2dd139Smrg found="yes" 51291a2dd139Smrg fi 51301a2dd139Smrg fi 51311a2dd139Smrg 51321a2dd139Smrg 51331a2dd139Smrg 51341a2dd139Smrg 51351a2dd139Smrg 51361a2dd139Smrg 51371a2dd139Smrg 51381a2dd139Smrg 51391a2dd139Smrg 51401a2dd139Smrg 51411a2dd139Smrg 51421a2dd139Smrg 51431a2dd139Smrg 51441a2dd139Smrg 51451a2dd139Smrg 51461a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51471a2dd139Smrg 51481a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 51491a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51501a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51511a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51521a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 51531a2dd139Smrg $as_echo_n "(cached) " >&6 51541a2dd139Smrgelse 51551a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51561a2dd139Smrg/* end confdefs.h. */ 51571a2dd139Smrgint i; 51581a2dd139Smrg_ACEOF 51591a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 51601a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51611a2dd139Smrgelse 51621a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 51631a2dd139Smrgfi 51641a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51651a2dd139Smrgfi 51661a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51671a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51681a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51691a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51701a2dd139Smrgfi 51711a2dd139Smrg 51721a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51731a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51741a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51751a2dd139Smrg fi 51761a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51771a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51781a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51791a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 51801a2dd139Smrg $as_echo_n "(cached) " >&6 51811a2dd139Smrgelse 51821a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51831a2dd139Smrg/* end confdefs.h. */ 51841a2dd139Smrgint i; 51851a2dd139Smrg_ACEOF 51861a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 51871a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 51881a2dd139Smrgelse 51891a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 51901a2dd139Smrgfi 51911a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51921a2dd139Smrgfi 51931a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51941a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51951a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 51961a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51971a2dd139Smrgfi 51981a2dd139Smrg 51991a2dd139Smrgfound="no" 52001a2dd139Smrg 52011a2dd139Smrg if test $found = "no" ; then 520205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52031a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52041a2dd139Smrg fi 52051a2dd139Smrg 520605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 52071a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52081a2dd139Smrg fi 52091a2dd139Smrg 52101a2dd139Smrg CFLAGS="$CFLAGS -Wformat=2" 52111a2dd139Smrg 52121a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 52131a2dd139Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 521405641e18Smrg cacheid=xorg_cv_cc_flag__Wformat_2 52151a2dd139Smrg if eval \${$cacheid+:} false; then : 52161a2dd139Smrg $as_echo_n "(cached) " >&6 52171a2dd139Smrgelse 52181a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52191a2dd139Smrg/* end confdefs.h. */ 52201a2dd139Smrgint i; 52211a2dd139Smrgint 52221a2dd139Smrgmain () 52231a2dd139Smrg{ 52241a2dd139Smrg 52251a2dd139Smrg ; 52261a2dd139Smrg return 0; 52271a2dd139Smrg} 52281a2dd139Smrg_ACEOF 52291a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 52301a2dd139Smrg eval $cacheid=yes 52311a2dd139Smrgelse 52321a2dd139Smrg eval $cacheid=no 52331a2dd139Smrgfi 52341a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 52351a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 52361a2dd139Smrgfi 52371a2dd139Smrg 52381a2dd139Smrg 52391a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52401a2dd139Smrg 52411a2dd139Smrg eval supported=\$$cacheid 52421a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52431a2dd139Smrg$as_echo "$supported" >&6; } 52441a2dd139Smrg if test "$supported" = "yes" ; then 52451a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 52461a2dd139Smrg found="yes" 52471a2dd139Smrg fi 52481a2dd139Smrg fi 52491a2dd139Smrg 52501a2dd139Smrg if test $found = "no" ; then 525105641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52521a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52531a2dd139Smrg fi 52541a2dd139Smrg 525505641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 52561a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52571a2dd139Smrg fi 52581a2dd139Smrg 52591a2dd139Smrg CFLAGS="$CFLAGS -Wformat" 52601a2dd139Smrg 52611a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 52621a2dd139Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 52631a2dd139Smrg cacheid=xorg_cv_cc_flag__Wformat 52641a2dd139Smrg if eval \${$cacheid+:} false; then : 52651a2dd139Smrg $as_echo_n "(cached) " >&6 52661a2dd139Smrgelse 52671a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52681a2dd139Smrg/* end confdefs.h. */ 52691a2dd139Smrgint i; 52701a2dd139Smrgint 52711a2dd139Smrgmain () 52721a2dd139Smrg{ 52731a2dd139Smrg 52741a2dd139Smrg ; 52751a2dd139Smrg return 0; 52761a2dd139Smrg} 52771a2dd139Smrg_ACEOF 52781a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 52791a2dd139Smrg eval $cacheid=yes 52801a2dd139Smrgelse 52811a2dd139Smrg eval $cacheid=no 52821a2dd139Smrgfi 52831a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 52841a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 52851a2dd139Smrgfi 52861a2dd139Smrg 52871a2dd139Smrg 52881a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52891a2dd139Smrg 52901a2dd139Smrg eval supported=\$$cacheid 52911a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52921a2dd139Smrg$as_echo "$supported" >&6; } 52931a2dd139Smrg if test "$supported" = "yes" ; then 52941a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 52951a2dd139Smrg found="yes" 52961a2dd139Smrg fi 52971a2dd139Smrg fi 52981a2dd139Smrg 52991a2dd139Smrg 53001a2dd139Smrg 53011a2dd139Smrg 53021a2dd139Smrg 53031a2dd139Smrg 53041a2dd139Smrg 53051a2dd139Smrg 53061a2dd139Smrg 53071a2dd139Smrg 53081a2dd139Smrg 53091a2dd139Smrg 53101a2dd139Smrg 53111a2dd139Smrg 53121a2dd139Smrg 53131a2dd139Smrg 53141a2dd139Smrg 53151a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 53161a2dd139Smrg 53171a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 53181a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53191a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53201a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53211a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 53221a2dd139Smrg $as_echo_n "(cached) " >&6 53231a2dd139Smrgelse 53241a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53251a2dd139Smrg/* end confdefs.h. */ 53261a2dd139Smrgint i; 53271a2dd139Smrg_ACEOF 53281a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 53291a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53301a2dd139Smrgelse 53311a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 53321a2dd139Smrgfi 53331a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53341a2dd139Smrgfi 53351a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53361a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53371a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 53381a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53391a2dd139Smrgfi 53401a2dd139Smrg 53411a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53421a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53431a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53441a2dd139Smrg fi 53451a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53461a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53471a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53481a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 53491a2dd139Smrg $as_echo_n "(cached) " >&6 53501a2dd139Smrgelse 53511a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53521a2dd139Smrg/* end confdefs.h. */ 53531a2dd139Smrgint i; 53541a2dd139Smrg_ACEOF 53551a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 53561a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53571a2dd139Smrgelse 53581a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 53591a2dd139Smrgfi 53601a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53611a2dd139Smrgfi 53621a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53631a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53641a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53651a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53661a2dd139Smrgfi 53671a2dd139Smrg 53681a2dd139Smrgfound="no" 53691a2dd139Smrg 53701a2dd139Smrg if test $found = "no" ; then 537105641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53721a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53731a2dd139Smrg fi 53741a2dd139Smrg 537505641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 53761a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53771a2dd139Smrg fi 53781a2dd139Smrg 53791a2dd139Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 53801a2dd139Smrg 53811a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 53821a2dd139Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 53831a2dd139Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 53841a2dd139Smrg if eval \${$cacheid+:} false; then : 53851a2dd139Smrg $as_echo_n "(cached) " >&6 53861a2dd139Smrgelse 53871a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53881a2dd139Smrg/* end confdefs.h. */ 53891a2dd139Smrgint i; 53901a2dd139Smrgint 53911a2dd139Smrgmain () 53921a2dd139Smrg{ 53931a2dd139Smrg 53941a2dd139Smrg ; 53951a2dd139Smrg return 0; 53961a2dd139Smrg} 53971a2dd139Smrg_ACEOF 53981a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 53991a2dd139Smrg eval $cacheid=yes 54001a2dd139Smrgelse 54011a2dd139Smrg eval $cacheid=no 54021a2dd139Smrgfi 54031a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 54041a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 54051a2dd139Smrgfi 54061a2dd139Smrg 54071a2dd139Smrg 54081a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54091a2dd139Smrg 54101a2dd139Smrg eval supported=\$$cacheid 54111a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54121a2dd139Smrg$as_echo "$supported" >&6; } 54131a2dd139Smrg if test "$supported" = "yes" ; then 54141a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 54151a2dd139Smrg found="yes" 54161a2dd139Smrg fi 54171a2dd139Smrg fi 54181a2dd139Smrg 54191a2dd139Smrg 54201a2dd139Smrg 54211a2dd139Smrg 54221a2dd139Smrg 54231a2dd139Smrg 54241a2dd139Smrg 54251a2dd139Smrg 54261a2dd139Smrg 54271a2dd139Smrg 54281a2dd139Smrg 54291a2dd139Smrg 54301a2dd139Smrg 54311a2dd139Smrg 54321a2dd139Smrg 54331a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54341a2dd139Smrg 54351a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54361a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54371a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54381a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54391a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 54401a2dd139Smrg $as_echo_n "(cached) " >&6 54411a2dd139Smrgelse 54421a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54431a2dd139Smrg/* end confdefs.h. */ 54441a2dd139Smrgint i; 54451a2dd139Smrg_ACEOF 54461a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 54471a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54481a2dd139Smrgelse 54491a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 54501a2dd139Smrgfi 54511a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54521a2dd139Smrgfi 54531a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54541a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54551a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 54561a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54571a2dd139Smrgfi 54581a2dd139Smrg 54591a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54601a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54611a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54621a2dd139Smrg fi 54631a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54641a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54651a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54661a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54671a2dd139Smrg $as_echo_n "(cached) " >&6 54681a2dd139Smrgelse 54691a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54701a2dd139Smrg/* end confdefs.h. */ 54711a2dd139Smrgint i; 54721a2dd139Smrg_ACEOF 54731a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 54741a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54751a2dd139Smrgelse 54761a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54771a2dd139Smrgfi 54781a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54791a2dd139Smrgfi 54801a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54811a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54821a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54831a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54841a2dd139Smrgfi 54851a2dd139Smrg 54861a2dd139Smrgfound="no" 54871a2dd139Smrg 54881a2dd139Smrg if test $found = "no" ; then 548905641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54901a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54911a2dd139Smrg fi 54921a2dd139Smrg 549305641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 54941a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54951a2dd139Smrg fi 54961a2dd139Smrg 54971a2dd139Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 54981a2dd139Smrg 54991a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 55001a2dd139Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 55011a2dd139Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 55021a2dd139Smrg if eval \${$cacheid+:} false; then : 55031a2dd139Smrg $as_echo_n "(cached) " >&6 55041a2dd139Smrgelse 55051a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55061a2dd139Smrg/* end confdefs.h. */ 55071a2dd139Smrgint i; 55081a2dd139Smrgint 55091a2dd139Smrgmain () 55101a2dd139Smrg{ 55111a2dd139Smrg 55121a2dd139Smrg ; 55131a2dd139Smrg return 0; 55141a2dd139Smrg} 55151a2dd139Smrg_ACEOF 55161a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 55171a2dd139Smrg eval $cacheid=yes 55181a2dd139Smrgelse 55191a2dd139Smrg eval $cacheid=no 55201a2dd139Smrgfi 55211a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 55221a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 55231a2dd139Smrgfi 55241a2dd139Smrg 55251a2dd139Smrg 55261a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55271a2dd139Smrg 55281a2dd139Smrg eval supported=\$$cacheid 55291a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55301a2dd139Smrg$as_echo "$supported" >&6; } 55311a2dd139Smrg if test "$supported" = "yes" ; then 55321a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 55331a2dd139Smrg found="yes" 55341a2dd139Smrg fi 55351a2dd139Smrg fi 55361a2dd139Smrg 55371a2dd139Smrg 55381a2dd139Smrg 55391a2dd139Smrg 55401a2dd139Smrg 55411a2dd139Smrg 55421a2dd139Smrg 55431a2dd139Smrg 55441a2dd139Smrg 55451a2dd139Smrg 55461a2dd139Smrg 55471a2dd139Smrg 55481a2dd139Smrg 55491a2dd139Smrg 55501a2dd139Smrg 55511a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 55521a2dd139Smrg 55531a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 55541a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55551a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55561a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55571a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 55581a2dd139Smrg $as_echo_n "(cached) " >&6 55591a2dd139Smrgelse 55601a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55611a2dd139Smrg/* end confdefs.h. */ 55621a2dd139Smrgint i; 55631a2dd139Smrg_ACEOF 55641a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 55651a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55661a2dd139Smrgelse 55671a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 55681a2dd139Smrgfi 55691a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55701a2dd139Smrgfi 55711a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55721a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55731a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55741a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55751a2dd139Smrgfi 55761a2dd139Smrg 55771a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55781a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55791a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55801a2dd139Smrg fi 55811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55821a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55831a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55841a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55851a2dd139Smrg $as_echo_n "(cached) " >&6 55861a2dd139Smrgelse 55871a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55881a2dd139Smrg/* end confdefs.h. */ 55891a2dd139Smrgint i; 55901a2dd139Smrg_ACEOF 55911a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 55921a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 55931a2dd139Smrgelse 55941a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 55951a2dd139Smrgfi 55961a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55971a2dd139Smrgfi 55981a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55991a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56001a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56011a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56021a2dd139Smrgfi 56031a2dd139Smrg 56041a2dd139Smrgfound="no" 56051a2dd139Smrg 56061a2dd139Smrg if test $found = "no" ; then 560705641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56081a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56091a2dd139Smrg fi 56101a2dd139Smrg 561105641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 56121a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56131a2dd139Smrg fi 56141a2dd139Smrg 56151a2dd139Smrg CFLAGS="$CFLAGS -Wnested-externs" 56161a2dd139Smrg 56171a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 56181a2dd139Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 56191a2dd139Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 56201a2dd139Smrg if eval \${$cacheid+:} false; then : 56211a2dd139Smrg $as_echo_n "(cached) " >&6 56221a2dd139Smrgelse 56231a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56241a2dd139Smrg/* end confdefs.h. */ 56251a2dd139Smrgint i; 56261a2dd139Smrgint 56271a2dd139Smrgmain () 56281a2dd139Smrg{ 56291a2dd139Smrg 56301a2dd139Smrg ; 56311a2dd139Smrg return 0; 56321a2dd139Smrg} 56331a2dd139Smrg_ACEOF 56341a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 56351a2dd139Smrg eval $cacheid=yes 56361a2dd139Smrgelse 56371a2dd139Smrg eval $cacheid=no 56381a2dd139Smrgfi 56391a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 56401a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 56411a2dd139Smrgfi 56421a2dd139Smrg 56431a2dd139Smrg 56441a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56451a2dd139Smrg 56461a2dd139Smrg eval supported=\$$cacheid 56471a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56481a2dd139Smrg$as_echo "$supported" >&6; } 56491a2dd139Smrg if test "$supported" = "yes" ; then 56501a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 56511a2dd139Smrg found="yes" 56521a2dd139Smrg fi 56531a2dd139Smrg fi 56541a2dd139Smrg 56551a2dd139Smrg 56561a2dd139Smrg 56571a2dd139Smrg 56581a2dd139Smrg 56591a2dd139Smrg 56601a2dd139Smrg 56611a2dd139Smrg 56621a2dd139Smrg 56631a2dd139Smrg 56641a2dd139Smrg 56651a2dd139Smrg 56661a2dd139Smrg 56671a2dd139Smrg 56681a2dd139Smrg 56691a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56701a2dd139Smrg 56711a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56721a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56731a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56741a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56751a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56761a2dd139Smrg $as_echo_n "(cached) " >&6 56771a2dd139Smrgelse 56781a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56791a2dd139Smrg/* end confdefs.h. */ 56801a2dd139Smrgint i; 56811a2dd139Smrg_ACEOF 56821a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 56831a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56841a2dd139Smrgelse 56851a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 56861a2dd139Smrgfi 56871a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56881a2dd139Smrgfi 56891a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56901a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56911a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56921a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56931a2dd139Smrgfi 56941a2dd139Smrg 56951a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56961a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56971a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56981a2dd139Smrg fi 56991a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57001a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57011a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57021a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 57031a2dd139Smrg $as_echo_n "(cached) " >&6 57041a2dd139Smrgelse 57051a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57061a2dd139Smrg/* end confdefs.h. */ 57071a2dd139Smrgint i; 57081a2dd139Smrg_ACEOF 57091a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 57101a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57111a2dd139Smrgelse 57121a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 57131a2dd139Smrgfi 57141a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57151a2dd139Smrgfi 57161a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57171a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57181a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 57191a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57201a2dd139Smrgfi 57211a2dd139Smrg 57221a2dd139Smrgfound="no" 57231a2dd139Smrg 57241a2dd139Smrg if test $found = "no" ; then 572505641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57261a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57271a2dd139Smrg fi 57281a2dd139Smrg 572905641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 57301a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57311a2dd139Smrg fi 57321a2dd139Smrg 57331a2dd139Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 57341a2dd139Smrg 57351a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 57361a2dd139Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 57371a2dd139Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 57381a2dd139Smrg if eval \${$cacheid+:} false; then : 57391a2dd139Smrg $as_echo_n "(cached) " >&6 57401a2dd139Smrgelse 57411a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57421a2dd139Smrg/* end confdefs.h. */ 57431a2dd139Smrgint i; 57441a2dd139Smrgint 57451a2dd139Smrgmain () 57461a2dd139Smrg{ 57471a2dd139Smrg 57481a2dd139Smrg ; 57491a2dd139Smrg return 0; 57501a2dd139Smrg} 57511a2dd139Smrg_ACEOF 57521a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 57531a2dd139Smrg eval $cacheid=yes 57541a2dd139Smrgelse 57551a2dd139Smrg eval $cacheid=no 57561a2dd139Smrgfi 57571a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 57581a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 57591a2dd139Smrgfi 57601a2dd139Smrg 57611a2dd139Smrg 57621a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57631a2dd139Smrg 57641a2dd139Smrg eval supported=\$$cacheid 57651a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57661a2dd139Smrg$as_echo "$supported" >&6; } 57671a2dd139Smrg if test "$supported" = "yes" ; then 57681a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 57691a2dd139Smrg found="yes" 57701a2dd139Smrg fi 57711a2dd139Smrg fi 57721a2dd139Smrg 57731a2dd139Smrg 57741a2dd139Smrg 57751a2dd139Smrg 57761a2dd139Smrg 57771a2dd139Smrg 57781a2dd139Smrg 57791a2dd139Smrg 57801a2dd139Smrg 57811a2dd139Smrg 57821a2dd139Smrg 57831a2dd139Smrg 57841a2dd139Smrg 57851a2dd139Smrg 57861a2dd139Smrg 57871a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 57881a2dd139Smrg 57891a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57901a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57911a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57921a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57931a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57941a2dd139Smrg $as_echo_n "(cached) " >&6 57951a2dd139Smrgelse 57961a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57971a2dd139Smrg/* end confdefs.h. */ 57981a2dd139Smrgint i; 57991a2dd139Smrg_ACEOF 58001a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 58011a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58021a2dd139Smrgelse 58031a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 58041a2dd139Smrgfi 58051a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58061a2dd139Smrgfi 58071a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58081a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 58091a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 58101a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58111a2dd139Smrgfi 58121a2dd139Smrg 58131a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 58141a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58151a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58161a2dd139Smrg fi 58171a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58181a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58191a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58201a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 58211a2dd139Smrg $as_echo_n "(cached) " >&6 58221a2dd139Smrgelse 58231a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58241a2dd139Smrg/* end confdefs.h. */ 58251a2dd139Smrgint i; 58261a2dd139Smrg_ACEOF 58271a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 58281a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58291a2dd139Smrgelse 58301a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 58311a2dd139Smrgfi 58321a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58331a2dd139Smrgfi 58341a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58351a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58361a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 58371a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58381a2dd139Smrgfi 58391a2dd139Smrg 58401a2dd139Smrgfound="no" 58411a2dd139Smrg 58421a2dd139Smrg if test $found = "no" ; then 584305641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58441a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58451a2dd139Smrg fi 58461a2dd139Smrg 584705641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 58481a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58491a2dd139Smrg fi 58501a2dd139Smrg 58511a2dd139Smrg CFLAGS="$CFLAGS -Wold-style-definition" 58521a2dd139Smrg 58531a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 58541a2dd139Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 58551a2dd139Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 58561a2dd139Smrg if eval \${$cacheid+:} false; then : 58571a2dd139Smrg $as_echo_n "(cached) " >&6 58581a2dd139Smrgelse 58591a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58601a2dd139Smrg/* end confdefs.h. */ 58611a2dd139Smrgint i; 58621a2dd139Smrgint 58631a2dd139Smrgmain () 58641a2dd139Smrg{ 58651a2dd139Smrg 58661a2dd139Smrg ; 58671a2dd139Smrg return 0; 58681a2dd139Smrg} 58691a2dd139Smrg_ACEOF 58701a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 58711a2dd139Smrg eval $cacheid=yes 58721a2dd139Smrgelse 58731a2dd139Smrg eval $cacheid=no 58741a2dd139Smrgfi 58751a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 58761a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 58771a2dd139Smrgfi 58781a2dd139Smrg 58791a2dd139Smrg 58801a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58811a2dd139Smrg 58821a2dd139Smrg eval supported=\$$cacheid 58831a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58841a2dd139Smrg$as_echo "$supported" >&6; } 58851a2dd139Smrg if test "$supported" = "yes" ; then 58861a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 58871a2dd139Smrg found="yes" 58881a2dd139Smrg fi 58891a2dd139Smrg fi 58901a2dd139Smrg 589105641e18Smrg if test $found = "no" ; then 589205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 589305641e18Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 589405641e18Smrg fi 589505641e18Smrg 589605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 589705641e18Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 589805641e18Smrg fi 589905641e18Smrg 590005641e18Smrg CFLAGS="$CFLAGS -fd" 590105641e18Smrg 590205641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 590305641e18Smrg$as_echo_n "checking if $CC supports -fd... " >&6; } 590405641e18Smrg cacheid=xorg_cv_cc_flag__fd 590505641e18Smrg if eval \${$cacheid+:} false; then : 590605641e18Smrg $as_echo_n "(cached) " >&6 590705641e18Smrgelse 590805641e18Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 590905641e18Smrg/* end confdefs.h. */ 591005641e18Smrgint i; 591105641e18Smrgint 591205641e18Smrgmain () 591305641e18Smrg{ 591405641e18Smrg 591505641e18Smrg ; 591605641e18Smrg return 0; 591705641e18Smrg} 591805641e18Smrg_ACEOF 591905641e18Smrgif ac_fn_c_try_link "$LINENO"; then : 592005641e18Smrg eval $cacheid=yes 592105641e18Smrgelse 592205641e18Smrg eval $cacheid=no 592305641e18Smrgfi 592405641e18Smrgrm -f core conftest.err conftest.$ac_objext \ 592505641e18Smrg conftest$ac_exeext conftest.$ac_ext 592605641e18Smrgfi 592705641e18Smrg 592805641e18Smrg 592905641e18Smrg CFLAGS="$xorg_testset_save_CFLAGS" 593005641e18Smrg 593105641e18Smrg eval supported=\$$cacheid 593205641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 593305641e18Smrg$as_echo "$supported" >&6; } 593405641e18Smrg if test "$supported" = "yes" ; then 593505641e18Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 593605641e18Smrg found="yes" 593705641e18Smrg fi 593805641e18Smrg fi 593905641e18Smrg 59401a2dd139Smrg 59411a2dd139Smrg 59421a2dd139Smrg 59431a2dd139Smrg 59441a2dd139Smrg 59451a2dd139Smrg 59461a2dd139Smrg 59471a2dd139Smrg 59481a2dd139Smrg 59491a2dd139Smrg 59501a2dd139Smrg 59511a2dd139Smrg 59521a2dd139Smrg 59531a2dd139Smrg 59541a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 59551a2dd139Smrg 59561a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 59571a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59581a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59591a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59601a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 59611a2dd139Smrg $as_echo_n "(cached) " >&6 59621a2dd139Smrgelse 59631a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59641a2dd139Smrg/* end confdefs.h. */ 59651a2dd139Smrgint i; 59661a2dd139Smrg_ACEOF 59671a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 59681a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59691a2dd139Smrgelse 59701a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 59711a2dd139Smrgfi 59721a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59731a2dd139Smrgfi 59741a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59751a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59761a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59771a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59781a2dd139Smrgfi 59791a2dd139Smrg 59801a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59811a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59821a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59831a2dd139Smrg fi 59841a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59851a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59861a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59871a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 59881a2dd139Smrg $as_echo_n "(cached) " >&6 59891a2dd139Smrgelse 59901a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59911a2dd139Smrg/* end confdefs.h. */ 59921a2dd139Smrgint i; 59931a2dd139Smrg_ACEOF 59941a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 59951a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59961a2dd139Smrgelse 59971a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 59981a2dd139Smrgfi 59991a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60001a2dd139Smrgfi 60011a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60021a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60031a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 60041a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60051a2dd139Smrgfi 60061a2dd139Smrg 60071a2dd139Smrgfound="no" 60081a2dd139Smrg 60091a2dd139Smrg if test $found = "no" ; then 601005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60111a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60121a2dd139Smrg fi 60131a2dd139Smrg 601405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 60151a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60161a2dd139Smrg fi 60171a2dd139Smrg 60181a2dd139Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 60191a2dd139Smrg 60201a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 60211a2dd139Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 60221a2dd139Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 60231a2dd139Smrg if eval \${$cacheid+:} false; then : 60241a2dd139Smrg $as_echo_n "(cached) " >&6 60251a2dd139Smrgelse 60261a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60271a2dd139Smrg/* end confdefs.h. */ 60281a2dd139Smrgint i; 60291a2dd139Smrgint 60301a2dd139Smrgmain () 60311a2dd139Smrg{ 60321a2dd139Smrg 60331a2dd139Smrg ; 60341a2dd139Smrg return 0; 60351a2dd139Smrg} 60361a2dd139Smrg_ACEOF 60371a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 60381a2dd139Smrg eval $cacheid=yes 60391a2dd139Smrgelse 60401a2dd139Smrg eval $cacheid=no 60411a2dd139Smrgfi 60421a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 60431a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 60441a2dd139Smrgfi 60451a2dd139Smrg 60461a2dd139Smrg 60471a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60481a2dd139Smrg 60491a2dd139Smrg eval supported=\$$cacheid 60501a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60511a2dd139Smrg$as_echo "$supported" >&6; } 60521a2dd139Smrg if test "$supported" = "yes" ; then 60531a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 60541a2dd139Smrg found="yes" 60551a2dd139Smrg fi 60561a2dd139Smrg fi 60571a2dd139Smrg 60581a2dd139Smrg 60591a2dd139Smrg 60601a2dd139Smrg 60611a2dd139Smrg 60621a2dd139Smrg# This chunk adds additional warnings that could catch undesired effects. 60631a2dd139Smrg 60641a2dd139Smrg 60651a2dd139Smrg 60661a2dd139Smrg 60671a2dd139Smrg 60681a2dd139Smrg 60691a2dd139Smrg 60701a2dd139Smrg 60711a2dd139Smrg 60721a2dd139Smrg 60731a2dd139Smrg 60741a2dd139Smrg 60751a2dd139Smrg 60761a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 60771a2dd139Smrg 60781a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60791a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60801a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60811a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60821a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60831a2dd139Smrg $as_echo_n "(cached) " >&6 60841a2dd139Smrgelse 60851a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60861a2dd139Smrg/* end confdefs.h. */ 60871a2dd139Smrgint i; 60881a2dd139Smrg_ACEOF 60891a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 60901a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 60911a2dd139Smrgelse 60921a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 60931a2dd139Smrgfi 60941a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60951a2dd139Smrgfi 60961a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60971a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60981a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 60991a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61001a2dd139Smrgfi 61011a2dd139Smrg 61021a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61031a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61041a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61051a2dd139Smrg fi 61061a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61071a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61081a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61091a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61101a2dd139Smrg $as_echo_n "(cached) " >&6 61111a2dd139Smrgelse 61121a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61131a2dd139Smrg/* end confdefs.h. */ 61141a2dd139Smrgint i; 61151a2dd139Smrg_ACEOF 61161a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 61171a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61181a2dd139Smrgelse 61191a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61201a2dd139Smrgfi 61211a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61221a2dd139Smrgfi 61231a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61241a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61251a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61261a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61271a2dd139Smrgfi 61281a2dd139Smrg 61291a2dd139Smrgfound="no" 61301a2dd139Smrg 61311a2dd139Smrg if test $found = "no" ; then 613205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61331a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61341a2dd139Smrg fi 61351a2dd139Smrg 613605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 61371a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61381a2dd139Smrg fi 61391a2dd139Smrg 61401a2dd139Smrg CFLAGS="$CFLAGS -Wunused" 61411a2dd139Smrg 61421a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 61431a2dd139Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 61441a2dd139Smrg cacheid=xorg_cv_cc_flag__Wunused 61451a2dd139Smrg if eval \${$cacheid+:} false; then : 61461a2dd139Smrg $as_echo_n "(cached) " >&6 61471a2dd139Smrgelse 61481a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61491a2dd139Smrg/* end confdefs.h. */ 61501a2dd139Smrgint i; 61511a2dd139Smrgint 61521a2dd139Smrgmain () 61531a2dd139Smrg{ 61541a2dd139Smrg 61551a2dd139Smrg ; 61561a2dd139Smrg return 0; 61571a2dd139Smrg} 61581a2dd139Smrg_ACEOF 61591a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 61601a2dd139Smrg eval $cacheid=yes 61611a2dd139Smrgelse 61621a2dd139Smrg eval $cacheid=no 61631a2dd139Smrgfi 61641a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 61651a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 61661a2dd139Smrgfi 61671a2dd139Smrg 61681a2dd139Smrg 61691a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61701a2dd139Smrg 61711a2dd139Smrg eval supported=\$$cacheid 61721a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61731a2dd139Smrg$as_echo "$supported" >&6; } 61741a2dd139Smrg if test "$supported" = "yes" ; then 61751a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 61761a2dd139Smrg found="yes" 61771a2dd139Smrg fi 61781a2dd139Smrg fi 61791a2dd139Smrg 61801a2dd139Smrg 61811a2dd139Smrg 61821a2dd139Smrg 61831a2dd139Smrg 61841a2dd139Smrg 61851a2dd139Smrg 61861a2dd139Smrg 61871a2dd139Smrg 61881a2dd139Smrg 61891a2dd139Smrg 61901a2dd139Smrg 61911a2dd139Smrg 61921a2dd139Smrg 61931a2dd139Smrg 61941a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 61951a2dd139Smrg 61961a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61971a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61981a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61991a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62001a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62011a2dd139Smrg $as_echo_n "(cached) " >&6 62021a2dd139Smrgelse 62031a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62041a2dd139Smrg/* end confdefs.h. */ 62051a2dd139Smrgint i; 62061a2dd139Smrg_ACEOF 62071a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 62081a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62091a2dd139Smrgelse 62101a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 62111a2dd139Smrgfi 62121a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62131a2dd139Smrgfi 62141a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62151a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62161a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62171a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62181a2dd139Smrgfi 62191a2dd139Smrg 62201a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62211a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62221a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62231a2dd139Smrg fi 62241a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62251a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62261a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62271a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62281a2dd139Smrg $as_echo_n "(cached) " >&6 62291a2dd139Smrgelse 62301a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62311a2dd139Smrg/* end confdefs.h. */ 62321a2dd139Smrgint i; 62331a2dd139Smrg_ACEOF 62341a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 62351a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62361a2dd139Smrgelse 62371a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62381a2dd139Smrgfi 62391a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62401a2dd139Smrgfi 62411a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62421a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62431a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 62441a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62451a2dd139Smrgfi 62461a2dd139Smrg 62471a2dd139Smrgfound="no" 62481a2dd139Smrg 62491a2dd139Smrg if test $found = "no" ; then 625005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62511a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62521a2dd139Smrg fi 62531a2dd139Smrg 625405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 62551a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62561a2dd139Smrg fi 62571a2dd139Smrg 62581a2dd139Smrg CFLAGS="$CFLAGS -Wuninitialized" 62591a2dd139Smrg 62601a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 62611a2dd139Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 62621a2dd139Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 62631a2dd139Smrg if eval \${$cacheid+:} false; then : 62641a2dd139Smrg $as_echo_n "(cached) " >&6 62651a2dd139Smrgelse 62661a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62671a2dd139Smrg/* end confdefs.h. */ 62681a2dd139Smrgint i; 62691a2dd139Smrgint 62701a2dd139Smrgmain () 62711a2dd139Smrg{ 62721a2dd139Smrg 62731a2dd139Smrg ; 62741a2dd139Smrg return 0; 62751a2dd139Smrg} 62761a2dd139Smrg_ACEOF 62771a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 62781a2dd139Smrg eval $cacheid=yes 62791a2dd139Smrgelse 62801a2dd139Smrg eval $cacheid=no 62811a2dd139Smrgfi 62821a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 62831a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 62841a2dd139Smrgfi 62851a2dd139Smrg 62861a2dd139Smrg 62871a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62881a2dd139Smrg 62891a2dd139Smrg eval supported=\$$cacheid 62901a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62911a2dd139Smrg$as_echo "$supported" >&6; } 62921a2dd139Smrg if test "$supported" = "yes" ; then 62931a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 62941a2dd139Smrg found="yes" 62951a2dd139Smrg fi 62961a2dd139Smrg fi 62971a2dd139Smrg 62981a2dd139Smrg 62991a2dd139Smrg 63001a2dd139Smrg 63011a2dd139Smrg 63021a2dd139Smrg 63031a2dd139Smrg 63041a2dd139Smrg 63051a2dd139Smrg 63061a2dd139Smrg 63071a2dd139Smrg 63081a2dd139Smrg 63091a2dd139Smrg 63101a2dd139Smrg 63111a2dd139Smrg 63121a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63131a2dd139Smrg 63141a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63151a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63161a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63171a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63181a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63191a2dd139Smrg $as_echo_n "(cached) " >&6 63201a2dd139Smrgelse 63211a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63221a2dd139Smrg/* end confdefs.h. */ 63231a2dd139Smrgint i; 63241a2dd139Smrg_ACEOF 63251a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 63261a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63271a2dd139Smrgelse 63281a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 63291a2dd139Smrgfi 63301a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63311a2dd139Smrgfi 63321a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63331a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63341a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63351a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63361a2dd139Smrgfi 63371a2dd139Smrg 63381a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63391a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63401a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63411a2dd139Smrg fi 63421a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63431a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63441a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63451a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 63461a2dd139Smrg $as_echo_n "(cached) " >&6 63471a2dd139Smrgelse 63481a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63491a2dd139Smrg/* end confdefs.h. */ 63501a2dd139Smrgint i; 63511a2dd139Smrg_ACEOF 63521a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 63531a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 63541a2dd139Smrgelse 63551a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 63561a2dd139Smrgfi 63571a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63581a2dd139Smrgfi 63591a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63601a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63611a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 63621a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63631a2dd139Smrgfi 63641a2dd139Smrg 63651a2dd139Smrgfound="no" 63661a2dd139Smrg 63671a2dd139Smrg if test $found = "no" ; then 636805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63691a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63701a2dd139Smrg fi 63711a2dd139Smrg 637205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 63731a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63741a2dd139Smrg fi 63751a2dd139Smrg 63761a2dd139Smrg CFLAGS="$CFLAGS -Wshadow" 63771a2dd139Smrg 63781a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 63791a2dd139Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 63801a2dd139Smrg cacheid=xorg_cv_cc_flag__Wshadow 63811a2dd139Smrg if eval \${$cacheid+:} false; then : 63821a2dd139Smrg $as_echo_n "(cached) " >&6 63831a2dd139Smrgelse 63841a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63851a2dd139Smrg/* end confdefs.h. */ 63861a2dd139Smrgint i; 63871a2dd139Smrgint 63881a2dd139Smrgmain () 63891a2dd139Smrg{ 63901a2dd139Smrg 63911a2dd139Smrg ; 63921a2dd139Smrg return 0; 63931a2dd139Smrg} 63941a2dd139Smrg_ACEOF 63951a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 63961a2dd139Smrg eval $cacheid=yes 63971a2dd139Smrgelse 63981a2dd139Smrg eval $cacheid=no 63991a2dd139Smrgfi 64001a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 64011a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 64021a2dd139Smrgfi 64031a2dd139Smrg 64041a2dd139Smrg 64051a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64061a2dd139Smrg 64071a2dd139Smrg eval supported=\$$cacheid 64081a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64091a2dd139Smrg$as_echo "$supported" >&6; } 64101a2dd139Smrg if test "$supported" = "yes" ; then 64111a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 64121a2dd139Smrg found="yes" 64131a2dd139Smrg fi 64141a2dd139Smrg fi 64151a2dd139Smrg 64161a2dd139Smrg 64171a2dd139Smrg 64181a2dd139Smrg 64191a2dd139Smrg 64201a2dd139Smrg 64211a2dd139Smrg 64221a2dd139Smrg 64231a2dd139Smrg 64241a2dd139Smrg 64251a2dd139Smrg 64261a2dd139Smrg 64271a2dd139Smrg 64281a2dd139Smrg 64291a2dd139Smrg 64301a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64311a2dd139Smrg 64321a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64331a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64341a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64351a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64361a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64371a2dd139Smrg $as_echo_n "(cached) " >&6 64381a2dd139Smrgelse 64391a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64401a2dd139Smrg/* end confdefs.h. */ 64411a2dd139Smrgint i; 64421a2dd139Smrg_ACEOF 64431a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 64441a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64451a2dd139Smrgelse 64461a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 64471a2dd139Smrgfi 64481a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64491a2dd139Smrgfi 64501a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64511a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64521a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 64531a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64541a2dd139Smrgfi 64551a2dd139Smrg 64561a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64571a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64581a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64591a2dd139Smrg fi 64601a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64611a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64621a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64631a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 64641a2dd139Smrg $as_echo_n "(cached) " >&6 64651a2dd139Smrgelse 64661a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64671a2dd139Smrg/* end confdefs.h. */ 64681a2dd139Smrgint i; 64691a2dd139Smrg_ACEOF 64701a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 64711a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64721a2dd139Smrgelse 64731a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 64741a2dd139Smrgfi 64751a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64761a2dd139Smrgfi 64771a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64781a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64791a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64801a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64811a2dd139Smrgfi 64821a2dd139Smrg 64831a2dd139Smrgfound="no" 64841a2dd139Smrg 64851a2dd139Smrg if test $found = "no" ; then 648605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64871a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64881a2dd139Smrg fi 64891a2dd139Smrg 649005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 64911a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64921a2dd139Smrg fi 64931a2dd139Smrg 649405641e18Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 64951a2dd139Smrg 649605641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 649705641e18Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 649805641e18Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 64991a2dd139Smrg if eval \${$cacheid+:} false; then : 65001a2dd139Smrg $as_echo_n "(cached) " >&6 65011a2dd139Smrgelse 65021a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65031a2dd139Smrg/* end confdefs.h. */ 65041a2dd139Smrgint i; 65051a2dd139Smrgint 65061a2dd139Smrgmain () 65071a2dd139Smrg{ 65081a2dd139Smrg 65091a2dd139Smrg ; 65101a2dd139Smrg return 0; 65111a2dd139Smrg} 65121a2dd139Smrg_ACEOF 65131a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 65141a2dd139Smrg eval $cacheid=yes 65151a2dd139Smrgelse 65161a2dd139Smrg eval $cacheid=no 65171a2dd139Smrgfi 65181a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 65191a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 65201a2dd139Smrgfi 65211a2dd139Smrg 65221a2dd139Smrg 65231a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65241a2dd139Smrg 65251a2dd139Smrg eval supported=\$$cacheid 65261a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65271a2dd139Smrg$as_echo "$supported" >&6; } 65281a2dd139Smrg if test "$supported" = "yes" ; then 652905641e18Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 65301a2dd139Smrg found="yes" 65311a2dd139Smrg fi 65321a2dd139Smrg fi 65331a2dd139Smrg 65341a2dd139Smrg 65351a2dd139Smrg 65361a2dd139Smrg 65371a2dd139Smrg 65381a2dd139Smrg 65391a2dd139Smrg 65401a2dd139Smrg 65411a2dd139Smrg 65421a2dd139Smrg 65431a2dd139Smrg 65441a2dd139Smrg 65451a2dd139Smrg 65461a2dd139Smrg 65471a2dd139Smrg 65481a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 65491a2dd139Smrg 65501a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 65511a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65521a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65531a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65541a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 65551a2dd139Smrg $as_echo_n "(cached) " >&6 65561a2dd139Smrgelse 65571a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65581a2dd139Smrg/* end confdefs.h. */ 65591a2dd139Smrgint i; 65601a2dd139Smrg_ACEOF 65611a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 65621a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65631a2dd139Smrgelse 65641a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 65651a2dd139Smrgfi 65661a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65671a2dd139Smrgfi 65681a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65691a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65701a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65711a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65721a2dd139Smrgfi 65731a2dd139Smrg 65741a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65751a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65761a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65771a2dd139Smrg fi 65781a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65791a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65801a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65811a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 65821a2dd139Smrg $as_echo_n "(cached) " >&6 65831a2dd139Smrgelse 65841a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65851a2dd139Smrg/* end confdefs.h. */ 65861a2dd139Smrgint i; 65871a2dd139Smrg_ACEOF 65881a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 65891a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65901a2dd139Smrgelse 65911a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 65921a2dd139Smrgfi 65931a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65941a2dd139Smrgfi 65951a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65961a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65971a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 65981a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65991a2dd139Smrgfi 66001a2dd139Smrg 66011a2dd139Smrgfound="no" 66021a2dd139Smrg 66031a2dd139Smrg if test $found = "no" ; then 660405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66051a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66061a2dd139Smrg fi 66071a2dd139Smrg 660805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 66091a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66101a2dd139Smrg fi 66111a2dd139Smrg 661205641e18Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 66131a2dd139Smrg 661405641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 661505641e18Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 661605641e18Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 66171a2dd139Smrg if eval \${$cacheid+:} false; then : 66181a2dd139Smrg $as_echo_n "(cached) " >&6 66191a2dd139Smrgelse 66201a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66211a2dd139Smrg/* end confdefs.h. */ 66221a2dd139Smrgint i; 66231a2dd139Smrgint 66241a2dd139Smrgmain () 66251a2dd139Smrg{ 66261a2dd139Smrg 66271a2dd139Smrg ; 66281a2dd139Smrg return 0; 66291a2dd139Smrg} 66301a2dd139Smrg_ACEOF 66311a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 66321a2dd139Smrg eval $cacheid=yes 66331a2dd139Smrgelse 66341a2dd139Smrg eval $cacheid=no 66351a2dd139Smrgfi 66361a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 66371a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 66381a2dd139Smrgfi 66391a2dd139Smrg 66401a2dd139Smrg 66411a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66421a2dd139Smrg 66431a2dd139Smrg eval supported=\$$cacheid 66441a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66451a2dd139Smrg$as_echo "$supported" >&6; } 66461a2dd139Smrg if test "$supported" = "yes" ; then 664705641e18Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 66481a2dd139Smrg found="yes" 66491a2dd139Smrg fi 66501a2dd139Smrg fi 66511a2dd139Smrg 66521a2dd139Smrg 66531a2dd139Smrg 66541a2dd139Smrg 66551a2dd139Smrg 66561a2dd139Smrg 66571a2dd139Smrg 66581a2dd139Smrg 66591a2dd139Smrg 66601a2dd139Smrg 66611a2dd139Smrg 66621a2dd139Smrg 66631a2dd139Smrg 66641a2dd139Smrg 66651a2dd139Smrg 66661a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 66671a2dd139Smrg 66681a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 66691a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66701a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66711a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66721a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 66731a2dd139Smrg $as_echo_n "(cached) " >&6 66741a2dd139Smrgelse 66751a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66761a2dd139Smrg/* end confdefs.h. */ 66771a2dd139Smrgint i; 66781a2dd139Smrg_ACEOF 66791a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 66801a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66811a2dd139Smrgelse 66821a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 66831a2dd139Smrgfi 66841a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66851a2dd139Smrgfi 66861a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66871a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66881a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 66891a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66901a2dd139Smrgfi 66911a2dd139Smrg 66921a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66931a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66941a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66951a2dd139Smrg fi 66961a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66971a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66981a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66991a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67001a2dd139Smrg $as_echo_n "(cached) " >&6 67011a2dd139Smrgelse 67021a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67031a2dd139Smrg/* end confdefs.h. */ 67041a2dd139Smrgint i; 67051a2dd139Smrg_ACEOF 67061a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 67071a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67081a2dd139Smrgelse 67091a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67101a2dd139Smrgfi 67111a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67121a2dd139Smrgfi 67131a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67141a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67151a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67161a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67171a2dd139Smrgfi 67181a2dd139Smrg 67191a2dd139Smrgfound="no" 67201a2dd139Smrg 67211a2dd139Smrg if test $found = "no" ; then 672205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67231a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67241a2dd139Smrg fi 67251a2dd139Smrg 672605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 67271a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67281a2dd139Smrg fi 67291a2dd139Smrg 673005641e18Smrg CFLAGS="$CFLAGS -Wredundant-decls" 67311a2dd139Smrg 673205641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 673305641e18Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 673405641e18Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 67351a2dd139Smrg if eval \${$cacheid+:} false; then : 67361a2dd139Smrg $as_echo_n "(cached) " >&6 67371a2dd139Smrgelse 67381a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67391a2dd139Smrg/* end confdefs.h. */ 67401a2dd139Smrgint i; 67411a2dd139Smrgint 67421a2dd139Smrgmain () 67431a2dd139Smrg{ 67441a2dd139Smrg 67451a2dd139Smrg ; 67461a2dd139Smrg return 0; 67471a2dd139Smrg} 67481a2dd139Smrg_ACEOF 67491a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 67501a2dd139Smrg eval $cacheid=yes 67511a2dd139Smrgelse 67521a2dd139Smrg eval $cacheid=no 67531a2dd139Smrgfi 67541a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 67551a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 67561a2dd139Smrgfi 67571a2dd139Smrg 67581a2dd139Smrg 67591a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67601a2dd139Smrg 67611a2dd139Smrg eval supported=\$$cacheid 67621a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67631a2dd139Smrg$as_echo "$supported" >&6; } 67641a2dd139Smrg if test "$supported" = "yes" ; then 676505641e18Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 67661a2dd139Smrg found="yes" 67671a2dd139Smrg fi 67681a2dd139Smrg fi 67691a2dd139Smrg 67701a2dd139Smrg 67711a2dd139Smrg 67721a2dd139Smrg 67731a2dd139Smrg 67741a2dd139Smrg 67751a2dd139Smrg 67761a2dd139Smrg 67771a2dd139Smrg 67781a2dd139Smrg 67791a2dd139Smrg 67801a2dd139Smrg 67811a2dd139Smrg 67821a2dd139Smrg 67831a2dd139Smrg 67841a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67851a2dd139Smrg 67861a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67871a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67881a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67891a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67901a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67911a2dd139Smrg $as_echo_n "(cached) " >&6 67921a2dd139Smrgelse 67931a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67941a2dd139Smrg/* end confdefs.h. */ 67951a2dd139Smrgint i; 67961a2dd139Smrg_ACEOF 67971a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 67981a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67991a2dd139Smrgelse 68001a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 68011a2dd139Smrgfi 68021a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68031a2dd139Smrgfi 68041a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68051a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68061a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 68071a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68081a2dd139Smrgfi 68091a2dd139Smrg 68101a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68111a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68121a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68131a2dd139Smrg fi 68141a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68151a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68161a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68171a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 68181a2dd139Smrg $as_echo_n "(cached) " >&6 68191a2dd139Smrgelse 68201a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68211a2dd139Smrg/* end confdefs.h. */ 68221a2dd139Smrgint i; 68231a2dd139Smrg_ACEOF 68241a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 68251a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68261a2dd139Smrgelse 68271a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 68281a2dd139Smrgfi 68291a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68301a2dd139Smrgfi 68311a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68321a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 68331a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 68341a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68351a2dd139Smrgfi 68361a2dd139Smrg 68371a2dd139Smrgfound="no" 68381a2dd139Smrg 68391a2dd139Smrg if test $found = "no" ; then 684005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68411a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68421a2dd139Smrg fi 68431a2dd139Smrg 684405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 68451a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68461a2dd139Smrg fi 68471a2dd139Smrg 684805641e18Smrg CFLAGS="$CFLAGS -Wlogical-op" 68491a2dd139Smrg 685005641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 685105641e18Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 685205641e18Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 68531a2dd139Smrg if eval \${$cacheid+:} false; then : 68541a2dd139Smrg $as_echo_n "(cached) " >&6 68551a2dd139Smrgelse 68561a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68571a2dd139Smrg/* end confdefs.h. */ 68581a2dd139Smrgint i; 68591a2dd139Smrgint 68601a2dd139Smrgmain () 68611a2dd139Smrg{ 68621a2dd139Smrg 68631a2dd139Smrg ; 68641a2dd139Smrg return 0; 68651a2dd139Smrg} 68661a2dd139Smrg_ACEOF 68671a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 68681a2dd139Smrg eval $cacheid=yes 68691a2dd139Smrgelse 68701a2dd139Smrg eval $cacheid=no 68711a2dd139Smrgfi 68721a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 68731a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 68741a2dd139Smrgfi 68751a2dd139Smrg 68761a2dd139Smrg 68771a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68781a2dd139Smrg 68791a2dd139Smrg eval supported=\$$cacheid 68801a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68811a2dd139Smrg$as_echo "$supported" >&6; } 68821a2dd139Smrg if test "$supported" = "yes" ; then 688305641e18Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 68841a2dd139Smrg found="yes" 68851a2dd139Smrg fi 68861a2dd139Smrg fi 68871a2dd139Smrg 68881a2dd139Smrg 68891a2dd139Smrg 68901a2dd139Smrg# These are currently disabled because they are noisy. They will be enabled 68911a2dd139Smrg# in the future once the codebase is sufficiently modernized to silence 68921a2dd139Smrg# them. For now, I don't want them to drown out the other warnings. 68931a2dd139Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 68941a2dd139Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 689505641e18Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 68961a2dd139Smrg 68971a2dd139Smrg# Turn some warnings into errors, so we don't accidently get successful builds 68981a2dd139Smrg# when there are problems that should be fixed. 68991a2dd139Smrg 69001a2dd139Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 69011a2dd139Smrg 69021a2dd139Smrg 69031a2dd139Smrg 69041a2dd139Smrg 69051a2dd139Smrg 69061a2dd139Smrg 69071a2dd139Smrg 69081a2dd139Smrg 69091a2dd139Smrg 69101a2dd139Smrg 69111a2dd139Smrg 69121a2dd139Smrg 69131a2dd139Smrg 69141a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 69151a2dd139Smrg 69161a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 69171a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69181a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69191a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69201a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 69211a2dd139Smrg $as_echo_n "(cached) " >&6 69221a2dd139Smrgelse 69231a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69241a2dd139Smrg/* end confdefs.h. */ 69251a2dd139Smrgint i; 69261a2dd139Smrg_ACEOF 69271a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 69281a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69291a2dd139Smrgelse 69301a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 69311a2dd139Smrgfi 69321a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69331a2dd139Smrgfi 69341a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69351a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69361a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 69371a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69381a2dd139Smrgfi 69391a2dd139Smrg 69401a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 69411a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69421a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69431a2dd139Smrg fi 69441a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69451a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69461a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69471a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 69481a2dd139Smrg $as_echo_n "(cached) " >&6 69491a2dd139Smrgelse 69501a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69511a2dd139Smrg/* end confdefs.h. */ 69521a2dd139Smrgint i; 69531a2dd139Smrg_ACEOF 69541a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 69551a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 69561a2dd139Smrgelse 69571a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 69581a2dd139Smrgfi 69591a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69601a2dd139Smrgfi 69611a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69621a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69631a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69641a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69651a2dd139Smrgfi 69661a2dd139Smrg 69671a2dd139Smrgfound="no" 69681a2dd139Smrg 69691a2dd139Smrg if test $found = "no" ; then 697005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69711a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69721a2dd139Smrg fi 69731a2dd139Smrg 697405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 69751a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69761a2dd139Smrg fi 69771a2dd139Smrg 69781a2dd139Smrg CFLAGS="$CFLAGS -Werror=implicit" 69791a2dd139Smrg 69801a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 69811a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 698205641e18Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 69831a2dd139Smrg if eval \${$cacheid+:} false; then : 69841a2dd139Smrg $as_echo_n "(cached) " >&6 69851a2dd139Smrgelse 69861a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69871a2dd139Smrg/* end confdefs.h. */ 69881a2dd139Smrgint i; 69891a2dd139Smrgint 69901a2dd139Smrgmain () 69911a2dd139Smrg{ 69921a2dd139Smrg 69931a2dd139Smrg ; 69941a2dd139Smrg return 0; 69951a2dd139Smrg} 69961a2dd139Smrg_ACEOF 69971a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 69981a2dd139Smrg eval $cacheid=yes 69991a2dd139Smrgelse 70001a2dd139Smrg eval $cacheid=no 70011a2dd139Smrgfi 70021a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 70031a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 70041a2dd139Smrgfi 70051a2dd139Smrg 70061a2dd139Smrg 70071a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70081a2dd139Smrg 70091a2dd139Smrg eval supported=\$$cacheid 70101a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70111a2dd139Smrg$as_echo "$supported" >&6; } 70121a2dd139Smrg if test "$supported" = "yes" ; then 70131a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 70141a2dd139Smrg found="yes" 70151a2dd139Smrg fi 70161a2dd139Smrg fi 70171a2dd139Smrg 70181a2dd139Smrg if test $found = "no" ; then 701905641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70201a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70211a2dd139Smrg fi 70221a2dd139Smrg 702305641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 70241a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70251a2dd139Smrg fi 70261a2dd139Smrg 70271a2dd139Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 70281a2dd139Smrg 70291a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 70301a2dd139Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 703105641e18Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 70321a2dd139Smrg if eval \${$cacheid+:} false; then : 70331a2dd139Smrg $as_echo_n "(cached) " >&6 70341a2dd139Smrgelse 70351a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70361a2dd139Smrg/* end confdefs.h. */ 70371a2dd139Smrgint i; 70381a2dd139Smrgint 70391a2dd139Smrgmain () 70401a2dd139Smrg{ 70411a2dd139Smrg 70421a2dd139Smrg ; 70431a2dd139Smrg return 0; 70441a2dd139Smrg} 70451a2dd139Smrg_ACEOF 70461a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 70471a2dd139Smrg eval $cacheid=yes 70481a2dd139Smrgelse 70491a2dd139Smrg eval $cacheid=no 70501a2dd139Smrgfi 70511a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 70521a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 70531a2dd139Smrgfi 70541a2dd139Smrg 70551a2dd139Smrg 70561a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70571a2dd139Smrg 70581a2dd139Smrg eval supported=\$$cacheid 70591a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70601a2dd139Smrg$as_echo "$supported" >&6; } 70611a2dd139Smrg if test "$supported" = "yes" ; then 70621a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 70631a2dd139Smrg found="yes" 70641a2dd139Smrg fi 70651a2dd139Smrg fi 70661a2dd139Smrg 70671a2dd139Smrg 70681a2dd139Smrg 70691a2dd139Smrg 70701a2dd139Smrg 70711a2dd139Smrg 70721a2dd139Smrg 70731a2dd139Smrg 70741a2dd139Smrg 70751a2dd139Smrg 70761a2dd139Smrg 70771a2dd139Smrg 70781a2dd139Smrg 70791a2dd139Smrg 70801a2dd139Smrg 70811a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 70821a2dd139Smrg 70831a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70841a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70851a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70861a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70871a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 70881a2dd139Smrg $as_echo_n "(cached) " >&6 70891a2dd139Smrgelse 70901a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70911a2dd139Smrg/* end confdefs.h. */ 70921a2dd139Smrgint i; 70931a2dd139Smrg_ACEOF 70941a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 70951a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70961a2dd139Smrgelse 70971a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 70981a2dd139Smrgfi 70991a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71001a2dd139Smrgfi 71011a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71021a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71031a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71041a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71051a2dd139Smrgfi 71061a2dd139Smrg 71071a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71081a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71091a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71101a2dd139Smrg fi 71111a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71121a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71131a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71141a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71151a2dd139Smrg $as_echo_n "(cached) " >&6 71161a2dd139Smrgelse 71171a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71181a2dd139Smrg/* end confdefs.h. */ 71191a2dd139Smrgint i; 71201a2dd139Smrg_ACEOF 71211a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 71221a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71231a2dd139Smrgelse 71241a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71251a2dd139Smrgfi 71261a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71271a2dd139Smrgfi 71281a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71291a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71301a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71311a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71321a2dd139Smrgfi 71331a2dd139Smrg 71341a2dd139Smrgfound="no" 71351a2dd139Smrg 71361a2dd139Smrg if test $found = "no" ; then 713705641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71381a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71391a2dd139Smrg fi 71401a2dd139Smrg 714105641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 71421a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71431a2dd139Smrg fi 71441a2dd139Smrg 71451a2dd139Smrg CFLAGS="$CFLAGS -Werror=nonnull" 71461a2dd139Smrg 71471a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 71481a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 714905641e18Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 71501a2dd139Smrg if eval \${$cacheid+:} false; then : 71511a2dd139Smrg $as_echo_n "(cached) " >&6 71521a2dd139Smrgelse 71531a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71541a2dd139Smrg/* end confdefs.h. */ 71551a2dd139Smrgint i; 71561a2dd139Smrgint 71571a2dd139Smrgmain () 71581a2dd139Smrg{ 71591a2dd139Smrg 71601a2dd139Smrg ; 71611a2dd139Smrg return 0; 71621a2dd139Smrg} 71631a2dd139Smrg_ACEOF 71641a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 71651a2dd139Smrg eval $cacheid=yes 71661a2dd139Smrgelse 71671a2dd139Smrg eval $cacheid=no 71681a2dd139Smrgfi 71691a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 71701a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 71711a2dd139Smrgfi 71721a2dd139Smrg 71731a2dd139Smrg 71741a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71751a2dd139Smrg 71761a2dd139Smrg eval supported=\$$cacheid 71771a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71781a2dd139Smrg$as_echo "$supported" >&6; } 71791a2dd139Smrg if test "$supported" = "yes" ; then 71801a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 71811a2dd139Smrg found="yes" 71821a2dd139Smrg fi 71831a2dd139Smrg fi 71841a2dd139Smrg 71851a2dd139Smrg 71861a2dd139Smrg 71871a2dd139Smrg 71881a2dd139Smrg 71891a2dd139Smrg 71901a2dd139Smrg 71911a2dd139Smrg 71921a2dd139Smrg 71931a2dd139Smrg 71941a2dd139Smrg 71951a2dd139Smrg 71961a2dd139Smrg 71971a2dd139Smrg 71981a2dd139Smrg 71991a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 72001a2dd139Smrg 72011a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72021a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72031a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72041a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72051a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72061a2dd139Smrg $as_echo_n "(cached) " >&6 72071a2dd139Smrgelse 72081a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72091a2dd139Smrg/* end confdefs.h. */ 72101a2dd139Smrgint i; 72111a2dd139Smrg_ACEOF 72121a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 72131a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72141a2dd139Smrgelse 72151a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 72161a2dd139Smrgfi 72171a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72181a2dd139Smrgfi 72191a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72201a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72211a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72221a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72231a2dd139Smrgfi 72241a2dd139Smrg 72251a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72261a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72271a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72281a2dd139Smrg fi 72291a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72301a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72311a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72321a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72331a2dd139Smrg $as_echo_n "(cached) " >&6 72341a2dd139Smrgelse 72351a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72361a2dd139Smrg/* end confdefs.h. */ 72371a2dd139Smrgint i; 72381a2dd139Smrg_ACEOF 72391a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 72401a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 72411a2dd139Smrgelse 72421a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 72431a2dd139Smrgfi 72441a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72451a2dd139Smrgfi 72461a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72471a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 72481a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 72491a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72501a2dd139Smrgfi 72511a2dd139Smrg 72521a2dd139Smrgfound="no" 72531a2dd139Smrg 72541a2dd139Smrg if test $found = "no" ; then 725505641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72561a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72571a2dd139Smrg fi 72581a2dd139Smrg 725905641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 72601a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72611a2dd139Smrg fi 72621a2dd139Smrg 72631a2dd139Smrg CFLAGS="$CFLAGS -Werror=init-self" 72641a2dd139Smrg 72651a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 72661a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 726705641e18Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 72681a2dd139Smrg if eval \${$cacheid+:} false; then : 72691a2dd139Smrg $as_echo_n "(cached) " >&6 72701a2dd139Smrgelse 72711a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72721a2dd139Smrg/* end confdefs.h. */ 72731a2dd139Smrgint i; 72741a2dd139Smrgint 72751a2dd139Smrgmain () 72761a2dd139Smrg{ 72771a2dd139Smrg 72781a2dd139Smrg ; 72791a2dd139Smrg return 0; 72801a2dd139Smrg} 72811a2dd139Smrg_ACEOF 72821a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 72831a2dd139Smrg eval $cacheid=yes 72841a2dd139Smrgelse 72851a2dd139Smrg eval $cacheid=no 72861a2dd139Smrgfi 72871a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 72881a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 72891a2dd139Smrgfi 72901a2dd139Smrg 72911a2dd139Smrg 72921a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72931a2dd139Smrg 72941a2dd139Smrg eval supported=\$$cacheid 72951a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72961a2dd139Smrg$as_echo "$supported" >&6; } 72971a2dd139Smrg if test "$supported" = "yes" ; then 72981a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 72991a2dd139Smrg found="yes" 73001a2dd139Smrg fi 73011a2dd139Smrg fi 73021a2dd139Smrg 73031a2dd139Smrg 73041a2dd139Smrg 73051a2dd139Smrg 73061a2dd139Smrg 73071a2dd139Smrg 73081a2dd139Smrg 73091a2dd139Smrg 73101a2dd139Smrg 73111a2dd139Smrg 73121a2dd139Smrg 73131a2dd139Smrg 73141a2dd139Smrg 73151a2dd139Smrg 73161a2dd139Smrg 73171a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73181a2dd139Smrg 73191a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73201a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73211a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73221a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73231a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73241a2dd139Smrg $as_echo_n "(cached) " >&6 73251a2dd139Smrgelse 73261a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73271a2dd139Smrg/* end confdefs.h. */ 73281a2dd139Smrgint i; 73291a2dd139Smrg_ACEOF 73301a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 73311a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73321a2dd139Smrgelse 73331a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 73341a2dd139Smrgfi 73351a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73361a2dd139Smrgfi 73371a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73381a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73391a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73401a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73411a2dd139Smrgfi 73421a2dd139Smrg 73431a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73441a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73451a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73461a2dd139Smrg fi 73471a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73481a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73491a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73501a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 73511a2dd139Smrg $as_echo_n "(cached) " >&6 73521a2dd139Smrgelse 73531a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73541a2dd139Smrg/* end confdefs.h. */ 73551a2dd139Smrgint i; 73561a2dd139Smrg_ACEOF 73571a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 73581a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73591a2dd139Smrgelse 73601a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 73611a2dd139Smrgfi 73621a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73631a2dd139Smrgfi 73641a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73651a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73661a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 73671a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73681a2dd139Smrgfi 73691a2dd139Smrg 73701a2dd139Smrgfound="no" 73711a2dd139Smrg 73721a2dd139Smrg if test $found = "no" ; then 737305641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73741a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73751a2dd139Smrg fi 73761a2dd139Smrg 737705641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 73781a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73791a2dd139Smrg fi 73801a2dd139Smrg 73811a2dd139Smrg CFLAGS="$CFLAGS -Werror=main" 73821a2dd139Smrg 73831a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 73841a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 738505641e18Smrg cacheid=xorg_cv_cc_flag__Werror_main 73861a2dd139Smrg if eval \${$cacheid+:} false; then : 73871a2dd139Smrg $as_echo_n "(cached) " >&6 73881a2dd139Smrgelse 73891a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73901a2dd139Smrg/* end confdefs.h. */ 73911a2dd139Smrgint i; 73921a2dd139Smrgint 73931a2dd139Smrgmain () 73941a2dd139Smrg{ 73951a2dd139Smrg 73961a2dd139Smrg ; 73971a2dd139Smrg return 0; 73981a2dd139Smrg} 73991a2dd139Smrg_ACEOF 74001a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 74011a2dd139Smrg eval $cacheid=yes 74021a2dd139Smrgelse 74031a2dd139Smrg eval $cacheid=no 74041a2dd139Smrgfi 74051a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 74061a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 74071a2dd139Smrgfi 74081a2dd139Smrg 74091a2dd139Smrg 74101a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74111a2dd139Smrg 74121a2dd139Smrg eval supported=\$$cacheid 74131a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74141a2dd139Smrg$as_echo "$supported" >&6; } 74151a2dd139Smrg if test "$supported" = "yes" ; then 74161a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 74171a2dd139Smrg found="yes" 74181a2dd139Smrg fi 74191a2dd139Smrg fi 74201a2dd139Smrg 74211a2dd139Smrg 74221a2dd139Smrg 74231a2dd139Smrg 74241a2dd139Smrg 74251a2dd139Smrg 74261a2dd139Smrg 74271a2dd139Smrg 74281a2dd139Smrg 74291a2dd139Smrg 74301a2dd139Smrg 74311a2dd139Smrg 74321a2dd139Smrg 74331a2dd139Smrg 74341a2dd139Smrg 74351a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74361a2dd139Smrg 74371a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74381a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74391a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74401a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74411a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 74421a2dd139Smrg $as_echo_n "(cached) " >&6 74431a2dd139Smrgelse 74441a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74451a2dd139Smrg/* end confdefs.h. */ 74461a2dd139Smrgint i; 74471a2dd139Smrg_ACEOF 74481a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 74491a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 74501a2dd139Smrgelse 74511a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 74521a2dd139Smrgfi 74531a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74541a2dd139Smrgfi 74551a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74561a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74571a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 74581a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74591a2dd139Smrgfi 74601a2dd139Smrg 74611a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74621a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74631a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74641a2dd139Smrg fi 74651a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74661a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74671a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74681a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 74691a2dd139Smrg $as_echo_n "(cached) " >&6 74701a2dd139Smrgelse 74711a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74721a2dd139Smrg/* end confdefs.h. */ 74731a2dd139Smrgint i; 74741a2dd139Smrg_ACEOF 74751a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 74761a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74771a2dd139Smrgelse 74781a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 74791a2dd139Smrgfi 74801a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74811a2dd139Smrgfi 74821a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74831a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74841a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74851a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74861a2dd139Smrgfi 74871a2dd139Smrg 74881a2dd139Smrgfound="no" 74891a2dd139Smrg 74901a2dd139Smrg if test $found = "no" ; then 749105641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74921a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74931a2dd139Smrg fi 74941a2dd139Smrg 749505641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 74961a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74971a2dd139Smrg fi 74981a2dd139Smrg 74991a2dd139Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 75001a2dd139Smrg 75011a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 75021a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 750305641e18Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 75041a2dd139Smrg if eval \${$cacheid+:} false; then : 75051a2dd139Smrg $as_echo_n "(cached) " >&6 75061a2dd139Smrgelse 75071a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75081a2dd139Smrg/* end confdefs.h. */ 75091a2dd139Smrgint i; 75101a2dd139Smrgint 75111a2dd139Smrgmain () 75121a2dd139Smrg{ 75131a2dd139Smrg 75141a2dd139Smrg ; 75151a2dd139Smrg return 0; 75161a2dd139Smrg} 75171a2dd139Smrg_ACEOF 75181a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 75191a2dd139Smrg eval $cacheid=yes 75201a2dd139Smrgelse 75211a2dd139Smrg eval $cacheid=no 75221a2dd139Smrgfi 75231a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 75241a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 75251a2dd139Smrgfi 75261a2dd139Smrg 75271a2dd139Smrg 75281a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75291a2dd139Smrg 75301a2dd139Smrg eval supported=\$$cacheid 75311a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75321a2dd139Smrg$as_echo "$supported" >&6; } 75331a2dd139Smrg if test "$supported" = "yes" ; then 75341a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 75351a2dd139Smrg found="yes" 75361a2dd139Smrg fi 75371a2dd139Smrg fi 75381a2dd139Smrg 75391a2dd139Smrg 75401a2dd139Smrg 75411a2dd139Smrg 75421a2dd139Smrg 75431a2dd139Smrg 75441a2dd139Smrg 75451a2dd139Smrg 75461a2dd139Smrg 75471a2dd139Smrg 75481a2dd139Smrg 75491a2dd139Smrg 75501a2dd139Smrg 75511a2dd139Smrg 75521a2dd139Smrg 75531a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 75541a2dd139Smrg 75551a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 75561a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75571a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75581a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75591a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 75601a2dd139Smrg $as_echo_n "(cached) " >&6 75611a2dd139Smrgelse 75621a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75631a2dd139Smrg/* end confdefs.h. */ 75641a2dd139Smrgint i; 75651a2dd139Smrg_ACEOF 75661a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 75671a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75681a2dd139Smrgelse 75691a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 75701a2dd139Smrgfi 75711a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75721a2dd139Smrgfi 75731a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75741a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75751a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75761a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75771a2dd139Smrgfi 75781a2dd139Smrg 75791a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75801a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75821a2dd139Smrg fi 75831a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75841a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75851a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75861a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75871a2dd139Smrg $as_echo_n "(cached) " >&6 75881a2dd139Smrgelse 75891a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75901a2dd139Smrg/* end confdefs.h. */ 75911a2dd139Smrgint i; 75921a2dd139Smrg_ACEOF 75931a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 75941a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75951a2dd139Smrgelse 75961a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75971a2dd139Smrgfi 75981a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75991a2dd139Smrgfi 76001a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76011a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76021a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76031a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76041a2dd139Smrgfi 76051a2dd139Smrg 76061a2dd139Smrgfound="no" 76071a2dd139Smrg 76081a2dd139Smrg if test $found = "no" ; then 760905641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76101a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76111a2dd139Smrg fi 76121a2dd139Smrg 761305641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 76141a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76151a2dd139Smrg fi 76161a2dd139Smrg 76171a2dd139Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 76181a2dd139Smrg 76191a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 76201a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 762105641e18Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 76221a2dd139Smrg if eval \${$cacheid+:} false; then : 76231a2dd139Smrg $as_echo_n "(cached) " >&6 76241a2dd139Smrgelse 76251a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76261a2dd139Smrg/* end confdefs.h. */ 76271a2dd139Smrgint i; 76281a2dd139Smrgint 76291a2dd139Smrgmain () 76301a2dd139Smrg{ 76311a2dd139Smrg 76321a2dd139Smrg ; 76331a2dd139Smrg return 0; 76341a2dd139Smrg} 76351a2dd139Smrg_ACEOF 76361a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 76371a2dd139Smrg eval $cacheid=yes 76381a2dd139Smrgelse 76391a2dd139Smrg eval $cacheid=no 76401a2dd139Smrgfi 76411a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 76421a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 76431a2dd139Smrgfi 76441a2dd139Smrg 76451a2dd139Smrg 76461a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76471a2dd139Smrg 76481a2dd139Smrg eval supported=\$$cacheid 76491a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76501a2dd139Smrg$as_echo "$supported" >&6; } 76511a2dd139Smrg if test "$supported" = "yes" ; then 76521a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 76531a2dd139Smrg found="yes" 76541a2dd139Smrg fi 76551a2dd139Smrg fi 76561a2dd139Smrg 76571a2dd139Smrg 76581a2dd139Smrg 76591a2dd139Smrg 76601a2dd139Smrg 76611a2dd139Smrg 76621a2dd139Smrg 76631a2dd139Smrg 76641a2dd139Smrg 76651a2dd139Smrg 76661a2dd139Smrg 76671a2dd139Smrg 76681a2dd139Smrg 76691a2dd139Smrg 76701a2dd139Smrg 76711a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76721a2dd139Smrg 76731a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76741a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76751a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76761a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76771a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76781a2dd139Smrg $as_echo_n "(cached) " >&6 76791a2dd139Smrgelse 76801a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76811a2dd139Smrg/* end confdefs.h. */ 76821a2dd139Smrgint i; 76831a2dd139Smrg_ACEOF 76841a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 76851a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76861a2dd139Smrgelse 76871a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 76881a2dd139Smrgfi 76891a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76901a2dd139Smrgfi 76911a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76921a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76931a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76941a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76951a2dd139Smrgfi 76961a2dd139Smrg 76971a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76981a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76991a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77001a2dd139Smrg fi 77011a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77021a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77031a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77041a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 77051a2dd139Smrg $as_echo_n "(cached) " >&6 77061a2dd139Smrgelse 77071a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77081a2dd139Smrg/* end confdefs.h. */ 77091a2dd139Smrgint i; 77101a2dd139Smrg_ACEOF 77111a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 77121a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77131a2dd139Smrgelse 77141a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 77151a2dd139Smrgfi 77161a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77171a2dd139Smrgfi 77181a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77191a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77201a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 77211a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77221a2dd139Smrgfi 77231a2dd139Smrg 77241a2dd139Smrgfound="no" 77251a2dd139Smrg 77261a2dd139Smrg if test $found = "no" ; then 772705641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77281a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77291a2dd139Smrg fi 77301a2dd139Smrg 773105641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 77321a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77331a2dd139Smrg fi 77341a2dd139Smrg 77351a2dd139Smrg CFLAGS="$CFLAGS -Werror=return-type" 77361a2dd139Smrg 77371a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 77381a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 773905641e18Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 77401a2dd139Smrg if eval \${$cacheid+:} false; then : 77411a2dd139Smrg $as_echo_n "(cached) " >&6 77421a2dd139Smrgelse 77431a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77441a2dd139Smrg/* end confdefs.h. */ 77451a2dd139Smrgint i; 77461a2dd139Smrgint 77471a2dd139Smrgmain () 77481a2dd139Smrg{ 77491a2dd139Smrg 77501a2dd139Smrg ; 77511a2dd139Smrg return 0; 77521a2dd139Smrg} 77531a2dd139Smrg_ACEOF 77541a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 77551a2dd139Smrg eval $cacheid=yes 77561a2dd139Smrgelse 77571a2dd139Smrg eval $cacheid=no 77581a2dd139Smrgfi 77591a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 77601a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 77611a2dd139Smrgfi 77621a2dd139Smrg 77631a2dd139Smrg 77641a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77651a2dd139Smrg 77661a2dd139Smrg eval supported=\$$cacheid 77671a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77681a2dd139Smrg$as_echo "$supported" >&6; } 77691a2dd139Smrg if test "$supported" = "yes" ; then 77701a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 77711a2dd139Smrg found="yes" 77721a2dd139Smrg fi 77731a2dd139Smrg fi 77741a2dd139Smrg 77751a2dd139Smrg if test $found = "no" ; then 777605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77771a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77781a2dd139Smrg fi 77791a2dd139Smrg 778005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 77811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77821a2dd139Smrg fi 77831a2dd139Smrg 77841a2dd139Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 77851a2dd139Smrg 77861a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 77871a2dd139Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 778805641e18Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 77891a2dd139Smrg if eval \${$cacheid+:} false; then : 77901a2dd139Smrg $as_echo_n "(cached) " >&6 77911a2dd139Smrgelse 77921a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77931a2dd139Smrg/* end confdefs.h. */ 77941a2dd139Smrgint i; 77951a2dd139Smrgint 77961a2dd139Smrgmain () 77971a2dd139Smrg{ 77981a2dd139Smrg 77991a2dd139Smrg ; 78001a2dd139Smrg return 0; 78011a2dd139Smrg} 78021a2dd139Smrg_ACEOF 78031a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 78041a2dd139Smrg eval $cacheid=yes 78051a2dd139Smrgelse 78061a2dd139Smrg eval $cacheid=no 78071a2dd139Smrgfi 78081a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 78091a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 78101a2dd139Smrgfi 78111a2dd139Smrg 78121a2dd139Smrg 78131a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78141a2dd139Smrg 78151a2dd139Smrg eval supported=\$$cacheid 78161a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78171a2dd139Smrg$as_echo "$supported" >&6; } 78181a2dd139Smrg if test "$supported" = "yes" ; then 78191a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 78201a2dd139Smrg found="yes" 78211a2dd139Smrg fi 78221a2dd139Smrg fi 78231a2dd139Smrg 78241a2dd139Smrg 78251a2dd139Smrg 78261a2dd139Smrg 78271a2dd139Smrg 78281a2dd139Smrg 78291a2dd139Smrg 78301a2dd139Smrg 78311a2dd139Smrg 78321a2dd139Smrg 78331a2dd139Smrg 78341a2dd139Smrg 78351a2dd139Smrg 78361a2dd139Smrg 78371a2dd139Smrg 78381a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 78391a2dd139Smrg 78401a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 78411a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78421a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78431a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78441a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 78451a2dd139Smrg $as_echo_n "(cached) " >&6 78461a2dd139Smrgelse 78471a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78481a2dd139Smrg/* end confdefs.h. */ 78491a2dd139Smrgint i; 78501a2dd139Smrg_ACEOF 78511a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 78521a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78531a2dd139Smrgelse 78541a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 78551a2dd139Smrgfi 78561a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78571a2dd139Smrgfi 78581a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78591a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78601a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78611a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78621a2dd139Smrgfi 78631a2dd139Smrg 78641a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78651a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78661a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78671a2dd139Smrg fi 78681a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78691a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78701a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78711a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 78721a2dd139Smrg $as_echo_n "(cached) " >&6 78731a2dd139Smrgelse 78741a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78751a2dd139Smrg/* end confdefs.h. */ 78761a2dd139Smrgint i; 78771a2dd139Smrg_ACEOF 78781a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 78791a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78801a2dd139Smrgelse 78811a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78821a2dd139Smrgfi 78831a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78841a2dd139Smrgfi 78851a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78861a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78871a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 78881a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78891a2dd139Smrgfi 78901a2dd139Smrg 78911a2dd139Smrgfound="no" 78921a2dd139Smrg 78931a2dd139Smrg if test $found = "no" ; then 789405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78951a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78961a2dd139Smrg fi 78971a2dd139Smrg 789805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 78991a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79001a2dd139Smrg fi 79011a2dd139Smrg 79021a2dd139Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 79031a2dd139Smrg 79041a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 79051a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 790605641e18Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 79071a2dd139Smrg if eval \${$cacheid+:} false; then : 79081a2dd139Smrg $as_echo_n "(cached) " >&6 79091a2dd139Smrgelse 79101a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79111a2dd139Smrg/* end confdefs.h. */ 79121a2dd139Smrgint i; 79131a2dd139Smrgint 79141a2dd139Smrgmain () 79151a2dd139Smrg{ 79161a2dd139Smrg 79171a2dd139Smrg ; 79181a2dd139Smrg return 0; 79191a2dd139Smrg} 79201a2dd139Smrg_ACEOF 79211a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 79221a2dd139Smrg eval $cacheid=yes 79231a2dd139Smrgelse 79241a2dd139Smrg eval $cacheid=no 79251a2dd139Smrgfi 79261a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 79271a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 79281a2dd139Smrgfi 79291a2dd139Smrg 79301a2dd139Smrg 79311a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79321a2dd139Smrg 79331a2dd139Smrg eval supported=\$$cacheid 79341a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79351a2dd139Smrg$as_echo "$supported" >&6; } 79361a2dd139Smrg if test "$supported" = "yes" ; then 79371a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 79381a2dd139Smrg found="yes" 79391a2dd139Smrg fi 79401a2dd139Smrg fi 79411a2dd139Smrg 79421a2dd139Smrg 79431a2dd139Smrg 79441a2dd139Smrg 79451a2dd139Smrg 79461a2dd139Smrg 79471a2dd139Smrg 79481a2dd139Smrg 79491a2dd139Smrg 79501a2dd139Smrg 79511a2dd139Smrg 79521a2dd139Smrg 79531a2dd139Smrg 79541a2dd139Smrg 79551a2dd139Smrg 79561a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 79571a2dd139Smrg 79581a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 79591a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79601a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79611a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79621a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 79631a2dd139Smrg $as_echo_n "(cached) " >&6 79641a2dd139Smrgelse 79651a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79661a2dd139Smrg/* end confdefs.h. */ 79671a2dd139Smrgint i; 79681a2dd139Smrg_ACEOF 79691a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 79701a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79711a2dd139Smrgelse 79721a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 79731a2dd139Smrgfi 79741a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79751a2dd139Smrgfi 79761a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79771a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79781a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79791a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79801a2dd139Smrgfi 79811a2dd139Smrg 79821a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79831a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79841a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79851a2dd139Smrg fi 79861a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79871a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79881a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79891a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 79901a2dd139Smrg $as_echo_n "(cached) " >&6 79911a2dd139Smrgelse 79921a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79931a2dd139Smrg/* end confdefs.h. */ 79941a2dd139Smrgint i; 79951a2dd139Smrg_ACEOF 79961a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 79971a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79981a2dd139Smrgelse 79991a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 80001a2dd139Smrgfi 80011a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80021a2dd139Smrgfi 80031a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80041a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80051a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80061a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80071a2dd139Smrgfi 80081a2dd139Smrg 80091a2dd139Smrgfound="no" 80101a2dd139Smrg 80111a2dd139Smrg if test $found = "no" ; then 801205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80131a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80141a2dd139Smrg fi 80151a2dd139Smrg 801605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 80171a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80181a2dd139Smrg fi 80191a2dd139Smrg 80201a2dd139Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 80211a2dd139Smrg 80221a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 80231a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 802405641e18Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 80251a2dd139Smrg if eval \${$cacheid+:} false; then : 80261a2dd139Smrg $as_echo_n "(cached) " >&6 80271a2dd139Smrgelse 80281a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80291a2dd139Smrg/* end confdefs.h. */ 80301a2dd139Smrgint i; 80311a2dd139Smrgint 80321a2dd139Smrgmain () 80331a2dd139Smrg{ 80341a2dd139Smrg 80351a2dd139Smrg ; 80361a2dd139Smrg return 0; 80371a2dd139Smrg} 80381a2dd139Smrg_ACEOF 80391a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 80401a2dd139Smrg eval $cacheid=yes 80411a2dd139Smrgelse 80421a2dd139Smrg eval $cacheid=no 80431a2dd139Smrgfi 80441a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 80451a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 80461a2dd139Smrgfi 80471a2dd139Smrg 80481a2dd139Smrg 80491a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80501a2dd139Smrg 80511a2dd139Smrg eval supported=\$$cacheid 80521a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80531a2dd139Smrg$as_echo "$supported" >&6; } 80541a2dd139Smrg if test "$supported" = "yes" ; then 80551a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 80561a2dd139Smrg found="yes" 80571a2dd139Smrg fi 80581a2dd139Smrg fi 80591a2dd139Smrg 80601a2dd139Smrg 80611a2dd139Smrg 80621a2dd139Smrg 80631a2dd139Smrg 80641a2dd139Smrg 80651a2dd139Smrg 80661a2dd139Smrg 80671a2dd139Smrg 80681a2dd139Smrg 80691a2dd139Smrg 80701a2dd139Smrg 80711a2dd139Smrg 80721a2dd139Smrg 80731a2dd139Smrg 80741a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 80751a2dd139Smrg 80761a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80771a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80781a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80791a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80801a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 80811a2dd139Smrg $as_echo_n "(cached) " >&6 80821a2dd139Smrgelse 80831a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80841a2dd139Smrg/* end confdefs.h. */ 80851a2dd139Smrgint i; 80861a2dd139Smrg_ACEOF 80871a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 80881a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 80891a2dd139Smrgelse 80901a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 80911a2dd139Smrgfi 80921a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80931a2dd139Smrgfi 80941a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80951a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80961a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 80971a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80981a2dd139Smrgfi 80991a2dd139Smrg 81001a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81011a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81021a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81031a2dd139Smrg fi 81041a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81051a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81061a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81071a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81081a2dd139Smrg $as_echo_n "(cached) " >&6 81091a2dd139Smrgelse 81101a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81111a2dd139Smrg/* end confdefs.h. */ 81121a2dd139Smrgint i; 81131a2dd139Smrg_ACEOF 81141a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 81151a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81161a2dd139Smrgelse 81171a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81181a2dd139Smrgfi 81191a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81201a2dd139Smrgfi 81211a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81221a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81231a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81241a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81251a2dd139Smrgfi 81261a2dd139Smrg 81271a2dd139Smrgfound="no" 81281a2dd139Smrg 81291a2dd139Smrg if test $found = "no" ; then 813005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81311a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81321a2dd139Smrg fi 81331a2dd139Smrg 813405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 81351a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81361a2dd139Smrg fi 81371a2dd139Smrg 81381a2dd139Smrg CFLAGS="$CFLAGS -Werror=write-strings" 81391a2dd139Smrg 81401a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 81411a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 814205641e18Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 81431a2dd139Smrg if eval \${$cacheid+:} false; then : 81441a2dd139Smrg $as_echo_n "(cached) " >&6 81451a2dd139Smrgelse 81461a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81471a2dd139Smrg/* end confdefs.h. */ 81481a2dd139Smrgint i; 81491a2dd139Smrgint 81501a2dd139Smrgmain () 81511a2dd139Smrg{ 81521a2dd139Smrg 81531a2dd139Smrg ; 81541a2dd139Smrg return 0; 81551a2dd139Smrg} 81561a2dd139Smrg_ACEOF 81571a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 81581a2dd139Smrg eval $cacheid=yes 81591a2dd139Smrgelse 81601a2dd139Smrg eval $cacheid=no 81611a2dd139Smrgfi 81621a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 81631a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 81641a2dd139Smrgfi 81651a2dd139Smrg 81661a2dd139Smrg 81671a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81681a2dd139Smrg 81691a2dd139Smrg eval supported=\$$cacheid 81701a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81711a2dd139Smrg$as_echo "$supported" >&6; } 81721a2dd139Smrg if test "$supported" = "yes" ; then 81731a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 81741a2dd139Smrg found="yes" 81751a2dd139Smrg fi 81761a2dd139Smrg fi 81771a2dd139Smrg 81781a2dd139Smrg 81791a2dd139Smrg 81801a2dd139Smrg 81811a2dd139Smrg 81821a2dd139Smrg 81831a2dd139Smrg 81841a2dd139Smrg 81851a2dd139Smrg 81861a2dd139Smrg 81871a2dd139Smrg 81881a2dd139Smrg 81891a2dd139Smrg 81901a2dd139Smrg 81911a2dd139Smrg 81921a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 81931a2dd139Smrg 81941a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81951a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81961a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81971a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81981a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 81991a2dd139Smrg $as_echo_n "(cached) " >&6 82001a2dd139Smrgelse 82011a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82021a2dd139Smrg/* end confdefs.h. */ 82031a2dd139Smrgint i; 82041a2dd139Smrg_ACEOF 82051a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 82061a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82071a2dd139Smrgelse 82081a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 82091a2dd139Smrgfi 82101a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82111a2dd139Smrgfi 82121a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82131a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82141a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 82151a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82161a2dd139Smrgfi 82171a2dd139Smrg 82181a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82191a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82201a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82211a2dd139Smrg fi 82221a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82231a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82241a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82251a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 82261a2dd139Smrg $as_echo_n "(cached) " >&6 82271a2dd139Smrgelse 82281a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82291a2dd139Smrg/* end confdefs.h. */ 82301a2dd139Smrgint i; 82311a2dd139Smrg_ACEOF 82321a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 82331a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 82341a2dd139Smrgelse 82351a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 82361a2dd139Smrgfi 82371a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82381a2dd139Smrgfi 82391a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82401a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 82411a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 82421a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82431a2dd139Smrgfi 82441a2dd139Smrg 82451a2dd139Smrgfound="no" 82461a2dd139Smrg 82471a2dd139Smrg if test $found = "no" ; then 824805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82491a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82501a2dd139Smrg fi 82511a2dd139Smrg 825205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 82531a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82541a2dd139Smrg fi 82551a2dd139Smrg 82561a2dd139Smrg CFLAGS="$CFLAGS -Werror=address" 82571a2dd139Smrg 82581a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 82591a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 826005641e18Smrg cacheid=xorg_cv_cc_flag__Werror_address 82611a2dd139Smrg if eval \${$cacheid+:} false; then : 82621a2dd139Smrg $as_echo_n "(cached) " >&6 82631a2dd139Smrgelse 82641a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82651a2dd139Smrg/* end confdefs.h. */ 82661a2dd139Smrgint i; 82671a2dd139Smrgint 82681a2dd139Smrgmain () 82691a2dd139Smrg{ 82701a2dd139Smrg 82711a2dd139Smrg ; 82721a2dd139Smrg return 0; 82731a2dd139Smrg} 82741a2dd139Smrg_ACEOF 82751a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 82761a2dd139Smrg eval $cacheid=yes 82771a2dd139Smrgelse 82781a2dd139Smrg eval $cacheid=no 82791a2dd139Smrgfi 82801a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 82811a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 82821a2dd139Smrgfi 82831a2dd139Smrg 82841a2dd139Smrg 82851a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82861a2dd139Smrg 82871a2dd139Smrg eval supported=\$$cacheid 82881a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82891a2dd139Smrg$as_echo "$supported" >&6; } 82901a2dd139Smrg if test "$supported" = "yes" ; then 82911a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 82921a2dd139Smrg found="yes" 82931a2dd139Smrg fi 82941a2dd139Smrg fi 82951a2dd139Smrg 82961a2dd139Smrg 82971a2dd139Smrg 82981a2dd139Smrg 82991a2dd139Smrg 83001a2dd139Smrg 83011a2dd139Smrg 83021a2dd139Smrg 83031a2dd139Smrg 83041a2dd139Smrg 83051a2dd139Smrg 83061a2dd139Smrg 83071a2dd139Smrg 83081a2dd139Smrg 83091a2dd139Smrg 83101a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 83111a2dd139Smrg 83121a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 83131a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83141a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83151a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83161a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 83171a2dd139Smrg $as_echo_n "(cached) " >&6 83181a2dd139Smrgelse 83191a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83201a2dd139Smrg/* end confdefs.h. */ 83211a2dd139Smrgint i; 83221a2dd139Smrg_ACEOF 83231a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 83241a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 83251a2dd139Smrgelse 83261a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 83271a2dd139Smrgfi 83281a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83291a2dd139Smrgfi 83301a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83311a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83321a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83331a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83341a2dd139Smrgfi 83351a2dd139Smrg 83361a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83371a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83381a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83391a2dd139Smrg fi 83401a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83411a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83421a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83431a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 83441a2dd139Smrg $as_echo_n "(cached) " >&6 83451a2dd139Smrgelse 83461a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83471a2dd139Smrg/* end confdefs.h. */ 83481a2dd139Smrgint i; 83491a2dd139Smrg_ACEOF 83501a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 83511a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 83521a2dd139Smrgelse 83531a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 83541a2dd139Smrgfi 83551a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83561a2dd139Smrgfi 83571a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83581a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83591a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83601a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83611a2dd139Smrgfi 83621a2dd139Smrg 83631a2dd139Smrgfound="no" 83641a2dd139Smrg 83651a2dd139Smrg if test $found = "no" ; then 836605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83671a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83681a2dd139Smrg fi 83691a2dd139Smrg 837005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 83711a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83721a2dd139Smrg fi 83731a2dd139Smrg 83741a2dd139Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 83751a2dd139Smrg 83761a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 83771a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 837805641e18Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 83791a2dd139Smrg if eval \${$cacheid+:} false; then : 83801a2dd139Smrg $as_echo_n "(cached) " >&6 83811a2dd139Smrgelse 83821a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83831a2dd139Smrg/* end confdefs.h. */ 83841a2dd139Smrgint i; 83851a2dd139Smrgint 83861a2dd139Smrgmain () 83871a2dd139Smrg{ 83881a2dd139Smrg 83891a2dd139Smrg ; 83901a2dd139Smrg return 0; 83911a2dd139Smrg} 83921a2dd139Smrg_ACEOF 83931a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 83941a2dd139Smrg eval $cacheid=yes 83951a2dd139Smrgelse 83961a2dd139Smrg eval $cacheid=no 83971a2dd139Smrgfi 83981a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 83991a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 84001a2dd139Smrgfi 84011a2dd139Smrg 84021a2dd139Smrg 84031a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84041a2dd139Smrg 84051a2dd139Smrg eval supported=\$$cacheid 84061a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84071a2dd139Smrg$as_echo "$supported" >&6; } 84081a2dd139Smrg if test "$supported" = "yes" ; then 84091a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 84101a2dd139Smrg found="yes" 84111a2dd139Smrg fi 84121a2dd139Smrg fi 84131a2dd139Smrg 84141a2dd139Smrg if test $found = "no" ; then 841505641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84161a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84171a2dd139Smrg fi 84181a2dd139Smrg 841905641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 84201a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84211a2dd139Smrg fi 84221a2dd139Smrg 84231a2dd139Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 84241a2dd139Smrg 84251a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 84261a2dd139Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 842705641e18Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 84281a2dd139Smrg if eval \${$cacheid+:} false; then : 84291a2dd139Smrg $as_echo_n "(cached) " >&6 84301a2dd139Smrgelse 84311a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84321a2dd139Smrg/* end confdefs.h. */ 84331a2dd139Smrgint i; 84341a2dd139Smrgint 84351a2dd139Smrgmain () 84361a2dd139Smrg{ 8437f299d47fSmrg 84381a2dd139Smrg ; 84391a2dd139Smrg return 0; 84401a2dd139Smrg} 84411a2dd139Smrg_ACEOF 84421a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 84431a2dd139Smrg eval $cacheid=yes 84441a2dd139Smrgelse 84451a2dd139Smrg eval $cacheid=no 84461a2dd139Smrgfi 84471a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 84481a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 84491a2dd139Smrgfi 8450f299d47fSmrg 8451f299d47fSmrg 84521a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8453f299d47fSmrg 84541a2dd139Smrg eval supported=\$$cacheid 84551a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84561a2dd139Smrg$as_echo "$supported" >&6; } 84571a2dd139Smrg if test "$supported" = "yes" ; then 84581a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 84591a2dd139Smrg found="yes" 84601a2dd139Smrg fi 84611a2dd139Smrg fi 8462f299d47fSmrg 8463f299d47fSmrg 8464f299d47fSmrg 8465f299d47fSmrg 8466f299d47fSmrg 8467f299d47fSmrg 8468f299d47fSmrg 8469f299d47fSmrg 8470f299d47fSmrg 8471f299d47fSmrg 8472f299d47fSmrg 8473f299d47fSmrg 8474aa98702cSmrg 84751a2dd139Smrg 84761a2dd139Smrg 84771a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84781a2dd139Smrg 84791a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84801a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84811a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84821a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84831a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84841a2dd139Smrg $as_echo_n "(cached) " >&6 8485f299d47fSmrgelse 84861a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84871a2dd139Smrg/* end confdefs.h. */ 84881a2dd139Smrgint i; 84891a2dd139Smrg_ACEOF 84901a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 84911a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84921a2dd139Smrgelse 84931a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 84941a2dd139Smrgfi 84951a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84961a2dd139Smrgfi 84971a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84981a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84991a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85001a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8501f299d47fSmrgfi 8502f299d47fSmrg 85031a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85041a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85051a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85061a2dd139Smrg fi 85071a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85081a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85091a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85101a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85111a2dd139Smrg $as_echo_n "(cached) " >&6 8512f299d47fSmrgelse 85131a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85141a2dd139Smrg/* end confdefs.h. */ 85151a2dd139Smrgint i; 85161a2dd139Smrg_ACEOF 85171a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 85181a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85191a2dd139Smrgelse 85201a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85211a2dd139Smrgfi 85221a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85231a2dd139Smrgfi 85241a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85251a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85261a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85271a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8528f299d47fSmrgfi 8529f299d47fSmrg 85301a2dd139Smrgfound="no" 8531f299d47fSmrg 85321a2dd139Smrg if test $found = "no" ; then 853305641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85341a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85351a2dd139Smrg fi 8536f299d47fSmrg 853705641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 85381a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85391a2dd139Smrg fi 8540625f88beSmrg 85411a2dd139Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8542aa98702cSmrg 85431a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 85441a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 854505641e18Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 85461a2dd139Smrg if eval \${$cacheid+:} false; then : 85471a2dd139Smrg $as_echo_n "(cached) " >&6 85481a2dd139Smrgelse 85491a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85501a2dd139Smrg/* end confdefs.h. */ 85511a2dd139Smrgint i; 85521a2dd139Smrgint 85531a2dd139Smrgmain () 85541a2dd139Smrg{ 8555aa98702cSmrg 85561a2dd139Smrg ; 85571a2dd139Smrg return 0; 85581a2dd139Smrg} 85591a2dd139Smrg_ACEOF 85601a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 85611a2dd139Smrg eval $cacheid=yes 85621a2dd139Smrgelse 85631a2dd139Smrg eval $cacheid=no 85641a2dd139Smrgfi 85651a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 85661a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 85671a2dd139Smrgfi 8568aa98702cSmrg 8569aa98702cSmrg 85701a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8571aa98702cSmrg 85721a2dd139Smrg eval supported=\$$cacheid 85731a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85741a2dd139Smrg$as_echo "$supported" >&6; } 85751a2dd139Smrg if test "$supported" = "yes" ; then 85761a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 85771a2dd139Smrg found="yes" 85781a2dd139Smrg fi 85791a2dd139Smrg fi 8580aa98702cSmrg 85811a2dd139Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 85821a2dd139Smrgelse 85831a2dd139Smrg{ $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 85841a2dd139Smrg$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;} 8585aa98702cSmrg 8586aa98702cSmrg 8587aa98702cSmrg 8588aa98702cSmrg 8589aa98702cSmrg 8590625f88beSmrg 8591625f88beSmrg 8592625f88beSmrg 8593625f88beSmrg 8594625f88beSmrg 8595625f88beSmrg 8596625f88beSmrg 8597625f88beSmrg 85981a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8599aa98702cSmrg 86001a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 86011a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86021a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86031a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86041a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8605aa98702cSmrg $as_echo_n "(cached) " >&6 8606f299d47fSmrgelse 86071a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86081a2dd139Smrg/* end confdefs.h. */ 86091a2dd139Smrgint i; 86101a2dd139Smrg_ACEOF 86111a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 86121a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8613f299d47fSmrgelse 86141a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 8615f299d47fSmrgfi 86161a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8617f299d47fSmrgfi 86181a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86191a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86201a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86211a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8622f299d47fSmrgfi 8623f299d47fSmrg 86241a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86251a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86261a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86271a2dd139Smrg fi 86281a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86291a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86301a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86311a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8632aa98702cSmrg $as_echo_n "(cached) " >&6 8633f299d47fSmrgelse 86341a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86351a2dd139Smrg/* end confdefs.h. */ 86361a2dd139Smrgint i; 86371a2dd139Smrg_ACEOF 86381a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 86391a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8640f299d47fSmrgelse 86411a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8642f299d47fSmrgfi 86431a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8644f299d47fSmrgfi 86451a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86461a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 86471a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 86481a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8649f299d47fSmrgfi 8650f299d47fSmrg 86511a2dd139Smrgfound="no" 8652f299d47fSmrg 86531a2dd139Smrg if test $found = "no" ; then 865405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86551a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86561a2dd139Smrg fi 86571a2dd139Smrg 865805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 86591a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86601a2dd139Smrg fi 86611a2dd139Smrg 86621a2dd139Smrg CFLAGS="$CFLAGS -Wimplicit" 86631a2dd139Smrg 86641a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 86651a2dd139Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 86661a2dd139Smrg cacheid=xorg_cv_cc_flag__Wimplicit 86671a2dd139Smrg if eval \${$cacheid+:} false; then : 8668aa98702cSmrg $as_echo_n "(cached) " >&6 8669f299d47fSmrgelse 86701a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86711a2dd139Smrg/* end confdefs.h. */ 86721a2dd139Smrgint i; 86731a2dd139Smrgint 86741a2dd139Smrgmain () 86751a2dd139Smrg{ 8676f299d47fSmrg 86771a2dd139Smrg ; 86781a2dd139Smrg return 0; 86791a2dd139Smrg} 86801a2dd139Smrg_ACEOF 86811a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 86821a2dd139Smrg eval $cacheid=yes 8683f299d47fSmrgelse 86841a2dd139Smrg eval $cacheid=no 86851a2dd139Smrgfi 86861a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 86871a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 8688f299d47fSmrgfi 8689f299d47fSmrg 8690f299d47fSmrg 86911a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86921a2dd139Smrg 86931a2dd139Smrg eval supported=\$$cacheid 86941a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86951a2dd139Smrg$as_echo "$supported" >&6; } 86961a2dd139Smrg if test "$supported" = "yes" ; then 86971a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 86981a2dd139Smrg found="yes" 86991a2dd139Smrg fi 87001a2dd139Smrg fi 87011a2dd139Smrg 87021a2dd139Smrg 87031a2dd139Smrg 87041a2dd139Smrg 87051a2dd139Smrg 87061a2dd139Smrg 87071a2dd139Smrg 87081a2dd139Smrg 87091a2dd139Smrg 87101a2dd139Smrg 87111a2dd139Smrg 87121a2dd139Smrg 87131a2dd139Smrg 87141a2dd139Smrg 87151a2dd139Smrg 87161a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87171a2dd139Smrg 87181a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87191a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87201a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87211a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87221a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8723aa98702cSmrg $as_echo_n "(cached) " >&6 8724f299d47fSmrgelse 87251a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87261a2dd139Smrg/* end confdefs.h. */ 87271a2dd139Smrgint i; 87281a2dd139Smrg_ACEOF 87291a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 87301a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8731f299d47fSmrgelse 87321a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 8733f299d47fSmrgfi 87341a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8735f299d47fSmrgfi 87361a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87371a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87381a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87391a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8740f299d47fSmrgfi 8741f299d47fSmrg 87421a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87431a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87441a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87451a2dd139Smrg fi 87461a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87471a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87481a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87491a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8750aa98702cSmrg $as_echo_n "(cached) " >&6 8751f299d47fSmrgelse 87521a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87531a2dd139Smrg/* end confdefs.h. */ 87541a2dd139Smrgint i; 87551a2dd139Smrg_ACEOF 87561a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 87571a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8758f299d47fSmrgelse 87591a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8760f299d47fSmrgfi 87611a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8762f299d47fSmrgfi 87631a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87641a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87651a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 87661a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8767f299d47fSmrgfi 8768f299d47fSmrg 87691a2dd139Smrgfound="no" 8770f299d47fSmrg 87711a2dd139Smrg if test $found = "no" ; then 877205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87731a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87741a2dd139Smrg fi 87751a2dd139Smrg 877605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 87771a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87781a2dd139Smrg fi 87791a2dd139Smrg 87801a2dd139Smrg CFLAGS="$CFLAGS -Wnonnull" 87811a2dd139Smrg 87821a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 87831a2dd139Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 87841a2dd139Smrg cacheid=xorg_cv_cc_flag__Wnonnull 87851a2dd139Smrg if eval \${$cacheid+:} false; then : 8786aa98702cSmrg $as_echo_n "(cached) " >&6 8787f299d47fSmrgelse 87881a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87891a2dd139Smrg/* end confdefs.h. */ 87901a2dd139Smrgint i; 87911a2dd139Smrgint 87921a2dd139Smrgmain () 87931a2dd139Smrg{ 8794f299d47fSmrg 87951a2dd139Smrg ; 87961a2dd139Smrg return 0; 87971a2dd139Smrg} 87981a2dd139Smrg_ACEOF 87991a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 88001a2dd139Smrg eval $cacheid=yes 8801f299d47fSmrgelse 88021a2dd139Smrg eval $cacheid=no 88031a2dd139Smrgfi 88041a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 88051a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 8806f299d47fSmrgfi 8807f299d47fSmrg 8808f299d47fSmrg 88091a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8810f299d47fSmrg 88111a2dd139Smrg eval supported=\$$cacheid 88121a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88131a2dd139Smrg$as_echo "$supported" >&6; } 88141a2dd139Smrg if test "$supported" = "yes" ; then 88151a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 88161a2dd139Smrg found="yes" 88171a2dd139Smrg fi 88181a2dd139Smrg fi 8819f299d47fSmrg 8820f299d47fSmrg 8821f299d47fSmrg 8822f299d47fSmrg 8823f299d47fSmrg 8824f299d47fSmrg 88251a2dd139Smrg 88261a2dd139Smrg 88271a2dd139Smrg 88281a2dd139Smrg 88291a2dd139Smrg 88301a2dd139Smrg 88311a2dd139Smrg 88321a2dd139Smrg 88331a2dd139Smrg 88341a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88351a2dd139Smrg 88361a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88371a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88381a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88391a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88401a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 88411a2dd139Smrg $as_echo_n "(cached) " >&6 88421a2dd139Smrgelse 88431a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88441a2dd139Smrg/* end confdefs.h. */ 88451a2dd139Smrgint i; 88461a2dd139Smrg_ACEOF 88471a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 88481a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 88491a2dd139Smrgelse 88501a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 88511a2dd139Smrgfi 88521a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88531a2dd139Smrgfi 88541a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88551a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88561a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 88571a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88581a2dd139Smrgfi 88591a2dd139Smrg 88601a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88611a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88621a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88631a2dd139Smrg fi 88641a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88651a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88661a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88671a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 88681a2dd139Smrg $as_echo_n "(cached) " >&6 88691a2dd139Smrgelse 88701a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88711a2dd139Smrg/* end confdefs.h. */ 88721a2dd139Smrgint i; 88731a2dd139Smrg_ACEOF 88741a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 88751a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88761a2dd139Smrgelse 88771a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88781a2dd139Smrgfi 88791a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88801a2dd139Smrgfi 88811a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88821a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88831a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88841a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88851a2dd139Smrgfi 88861a2dd139Smrg 88871a2dd139Smrgfound="no" 88881a2dd139Smrg 88891a2dd139Smrg if test $found = "no" ; then 889005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88911a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88921a2dd139Smrg fi 88931a2dd139Smrg 889405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 88951a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88961a2dd139Smrg fi 88971a2dd139Smrg 88981a2dd139Smrg CFLAGS="$CFLAGS -Winit-self" 88991a2dd139Smrg 89001a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 89011a2dd139Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 89021a2dd139Smrg cacheid=xorg_cv_cc_flag__Winit_self 89031a2dd139Smrg if eval \${$cacheid+:} false; then : 89041a2dd139Smrg $as_echo_n "(cached) " >&6 89051a2dd139Smrgelse 89061a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89071a2dd139Smrg/* end confdefs.h. */ 89081a2dd139Smrgint i; 8909f299d47fSmrgint 8910f299d47fSmrgmain () 8911f299d47fSmrg{ 8912f299d47fSmrg 8913f299d47fSmrg ; 8914f299d47fSmrg return 0; 8915f299d47fSmrg} 8916f299d47fSmrg_ACEOF 89171a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 89181a2dd139Smrg eval $cacheid=yes 89191a2dd139Smrgelse 89201a2dd139Smrg eval $cacheid=no 89211a2dd139Smrgfi 89221a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 89231a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 89241a2dd139Smrgfi 8925aa98702cSmrg 8926aa98702cSmrg 89271a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8928f299d47fSmrg 89291a2dd139Smrg eval supported=\$$cacheid 89301a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89311a2dd139Smrg$as_echo "$supported" >&6; } 89321a2dd139Smrg if test "$supported" = "yes" ; then 89331a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 89341a2dd139Smrg found="yes" 89351a2dd139Smrg fi 8936f299d47fSmrg fi 8937f299d47fSmrg 8938f299d47fSmrg 89391a2dd139Smrg 89401a2dd139Smrg 89411a2dd139Smrg 89421a2dd139Smrg 89431a2dd139Smrg 89441a2dd139Smrg 89451a2dd139Smrg 89461a2dd139Smrg 89471a2dd139Smrg 89481a2dd139Smrg 89491a2dd139Smrg 89501a2dd139Smrg 89511a2dd139Smrg 89521a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 89531a2dd139Smrg 89541a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 89551a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89561a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89571a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89581a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 89591a2dd139Smrg $as_echo_n "(cached) " >&6 8960625f88beSmrgelse 89611a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89621a2dd139Smrg/* end confdefs.h. */ 89631a2dd139Smrgint i; 89641a2dd139Smrg_ACEOF 89651a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 89661a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89671a2dd139Smrgelse 89681a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 89691a2dd139Smrgfi 89701a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89711a2dd139Smrgfi 89721a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89731a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89741a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89751a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8976f299d47fSmrgfi 8977f299d47fSmrg 89781a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89791a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89801a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89811a2dd139Smrg fi 89821a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89831a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89841a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89851a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89861a2dd139Smrg $as_echo_n "(cached) " >&6 8987f299d47fSmrgelse 89881a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89891a2dd139Smrg/* end confdefs.h. */ 89901a2dd139Smrgint i; 89911a2dd139Smrg_ACEOF 89921a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 89931a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89941a2dd139Smrgelse 89951a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 89961a2dd139Smrgfi 89971a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89981a2dd139Smrgfi 89991a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90001a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90011a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90021a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9003f299d47fSmrgfi 9004f299d47fSmrg 90051a2dd139Smrgfound="no" 90061a2dd139Smrg 90071a2dd139Smrg if test $found = "no" ; then 900805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90091a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90101a2dd139Smrg fi 90111a2dd139Smrg 901205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 90131a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90141a2dd139Smrg fi 90151a2dd139Smrg 90161a2dd139Smrg CFLAGS="$CFLAGS -Wmain" 90171a2dd139Smrg 90181a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 90191a2dd139Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 90201a2dd139Smrg cacheid=xorg_cv_cc_flag__Wmain 90211a2dd139Smrg if eval \${$cacheid+:} false; then : 90221a2dd139Smrg $as_echo_n "(cached) " >&6 90231a2dd139Smrgelse 90241a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025625f88beSmrg/* end confdefs.h. */ 90261a2dd139Smrgint i; 9027625f88beSmrgint 9028625f88beSmrgmain () 9029625f88beSmrg{ 9030625f88beSmrg 9031625f88beSmrg ; 9032625f88beSmrg return 0; 9033625f88beSmrg} 9034625f88beSmrg_ACEOF 90351a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 90361a2dd139Smrg eval $cacheid=yes 90371a2dd139Smrgelse 90381a2dd139Smrg eval $cacheid=no 90391a2dd139Smrgfi 90401a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 90411a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 90421a2dd139Smrgfi 90431a2dd139Smrg 90441a2dd139Smrg 90451a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90461a2dd139Smrg 90471a2dd139Smrg eval supported=\$$cacheid 90481a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90491a2dd139Smrg$as_echo "$supported" >&6; } 90501a2dd139Smrg if test "$supported" = "yes" ; then 90511a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 90521a2dd139Smrg found="yes" 90531a2dd139Smrg fi 90541a2dd139Smrg fi 90551a2dd139Smrg 90561a2dd139Smrg 90571a2dd139Smrg 90581a2dd139Smrg 90591a2dd139Smrg 90601a2dd139Smrg 90611a2dd139Smrg 90621a2dd139Smrg 90631a2dd139Smrg 90641a2dd139Smrg 90651a2dd139Smrg 90661a2dd139Smrg 90671a2dd139Smrg 90681a2dd139Smrg 90691a2dd139Smrg 90701a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 90711a2dd139Smrg 90721a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90731a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90741a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90751a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90761a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90771a2dd139Smrg $as_echo_n "(cached) " >&6 90781a2dd139Smrgelse 90791a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90801a2dd139Smrg/* end confdefs.h. */ 90811a2dd139Smrgint i; 90821a2dd139Smrg_ACEOF 90831a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 90841a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90851a2dd139Smrgelse 90861a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 90871a2dd139Smrgfi 90881a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90891a2dd139Smrgfi 90901a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90911a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90921a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 90931a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90941a2dd139Smrgfi 90951a2dd139Smrg 90961a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 90971a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90981a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90991a2dd139Smrg fi 91001a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91011a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91021a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91031a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91041a2dd139Smrg $as_echo_n "(cached) " >&6 91051a2dd139Smrgelse 91061a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91071a2dd139Smrg/* end confdefs.h. */ 91081a2dd139Smrgint i; 91091a2dd139Smrg_ACEOF 91101a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 91111a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91121a2dd139Smrgelse 91131a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91141a2dd139Smrgfi 91151a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91161a2dd139Smrgfi 91171a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91181a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91191a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91201a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9121625f88beSmrgfi 9122625f88beSmrg 91231a2dd139Smrgfound="no" 91241a2dd139Smrg 91251a2dd139Smrg if test $found = "no" ; then 912605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91271a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91281a2dd139Smrg fi 91291a2dd139Smrg 913005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 91311a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91321a2dd139Smrg fi 91331a2dd139Smrg 91341a2dd139Smrg CFLAGS="$CFLAGS -Wmissing-braces" 91351a2dd139Smrg 91361a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 91371a2dd139Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 91381a2dd139Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 91391a2dd139Smrg if eval \${$cacheid+:} false; then : 9140aa98702cSmrg $as_echo_n "(cached) " >&6 9141f299d47fSmrgelse 9142625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143f299d47fSmrg/* end confdefs.h. */ 91441a2dd139Smrgint i; 9145f299d47fSmrgint 9146f299d47fSmrgmain () 9147f299d47fSmrg{ 9148f299d47fSmrg 9149f299d47fSmrg ; 9150f299d47fSmrg return 0; 9151f299d47fSmrg} 9152f299d47fSmrg_ACEOF 91531a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 91541a2dd139Smrg eval $cacheid=yes 9155f299d47fSmrgelse 91561a2dd139Smrg eval $cacheid=no 91571a2dd139Smrgfi 91581a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 91591a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 91601a2dd139Smrgfi 9161f299d47fSmrg 91621a2dd139Smrg 91631a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91641a2dd139Smrg 91651a2dd139Smrg eval supported=\$$cacheid 91661a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91671a2dd139Smrg$as_echo "$supported" >&6; } 91681a2dd139Smrg if test "$supported" = "yes" ; then 91691a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 91701a2dd139Smrg found="yes" 91711a2dd139Smrg fi 91721a2dd139Smrg fi 91731a2dd139Smrg 91741a2dd139Smrg 91751a2dd139Smrg 91761a2dd139Smrg 91771a2dd139Smrg 91781a2dd139Smrg 91791a2dd139Smrg 91801a2dd139Smrg 91811a2dd139Smrg 91821a2dd139Smrg 91831a2dd139Smrg 91841a2dd139Smrg 91851a2dd139Smrg 91861a2dd139Smrg 91871a2dd139Smrg 91881a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 91891a2dd139Smrg 91901a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 91911a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91921a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91931a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91941a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 91951a2dd139Smrg $as_echo_n "(cached) " >&6 91961a2dd139Smrgelse 91971a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91981a2dd139Smrg/* end confdefs.h. */ 91991a2dd139Smrgint i; 92001a2dd139Smrg_ACEOF 92011a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 92021a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92031a2dd139Smrgelse 92041a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 9205f299d47fSmrgfi 92061a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9207f299d47fSmrgfi 92081a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92091a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92101a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92111a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92121a2dd139Smrgfi 92131a2dd139Smrg 92141a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92151a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92161a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92171a2dd139Smrg fi 92181a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92191a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92201a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92211a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9222aa98702cSmrg $as_echo_n "(cached) " >&6 9223f299d47fSmrgelse 9224625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225f299d47fSmrg/* end confdefs.h. */ 92261a2dd139Smrgint i; 92271a2dd139Smrg_ACEOF 92281a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 92291a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92301a2dd139Smrgelse 92311a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 92321a2dd139Smrgfi 92331a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92341a2dd139Smrgfi 92351a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92361a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92371a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92381a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92391a2dd139Smrgfi 92401a2dd139Smrg 92411a2dd139Smrgfound="no" 92421a2dd139Smrg 92431a2dd139Smrg if test $found = "no" ; then 924405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92451a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92461a2dd139Smrg fi 92471a2dd139Smrg 924805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 92491a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92501a2dd139Smrg fi 9251f299d47fSmrg 92521a2dd139Smrg CFLAGS="$CFLAGS -Wsequence-point" 92531a2dd139Smrg 92541a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 92551a2dd139Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 92561a2dd139Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 92571a2dd139Smrg if eval \${$cacheid+:} false; then : 92581a2dd139Smrg $as_echo_n "(cached) " >&6 92591a2dd139Smrgelse 92601a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92611a2dd139Smrg/* end confdefs.h. */ 92621a2dd139Smrgint i; 9263f299d47fSmrgint 9264f299d47fSmrgmain () 9265f299d47fSmrg{ 9266f299d47fSmrg 9267f299d47fSmrg ; 9268f299d47fSmrg return 0; 9269f299d47fSmrg} 9270f299d47fSmrg_ACEOF 92711a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 92721a2dd139Smrg eval $cacheid=yes 92731a2dd139Smrgelse 92741a2dd139Smrg eval $cacheid=no 92751a2dd139Smrgfi 92761a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 92771a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 92781a2dd139Smrgfi 92791a2dd139Smrg 92801a2dd139Smrg 92811a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92821a2dd139Smrg 92831a2dd139Smrg eval supported=\$$cacheid 92841a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92851a2dd139Smrg$as_echo "$supported" >&6; } 92861a2dd139Smrg if test "$supported" = "yes" ; then 92871a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 92881a2dd139Smrg found="yes" 92891a2dd139Smrg fi 92901a2dd139Smrg fi 92911a2dd139Smrg 92921a2dd139Smrg 92931a2dd139Smrg 92941a2dd139Smrg 92951a2dd139Smrg 92961a2dd139Smrg 92971a2dd139Smrg 92981a2dd139Smrg 92991a2dd139Smrg 93001a2dd139Smrg 93011a2dd139Smrg 93021a2dd139Smrg 93031a2dd139Smrg 93041a2dd139Smrg 93051a2dd139Smrg 93061a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93071a2dd139Smrg 93081a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93091a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93101a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93111a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93121a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93131a2dd139Smrg $as_echo_n "(cached) " >&6 93141a2dd139Smrgelse 93151a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93161a2dd139Smrg/* end confdefs.h. */ 93171a2dd139Smrgint i; 93181a2dd139Smrg_ACEOF 9319625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then : 93201a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9321f299d47fSmrgelse 93221a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 9323f299d47fSmrgfi 9324f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9325f299d47fSmrgfi 93261a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93271a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93281a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93291a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9330aa98702cSmrgfi 93311a2dd139Smrg 93321a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93331a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93341a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93351a2dd139Smrg fi 93361a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93371a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93381a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93391a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9340aa98702cSmrg $as_echo_n "(cached) " >&6 9341f299d47fSmrgelse 93421a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343f299d47fSmrg/* end confdefs.h. */ 93441a2dd139Smrgint i; 93451a2dd139Smrg_ACEOF 93461a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 93471a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 93481a2dd139Smrgelse 93491a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 93501a2dd139Smrgfi 93511a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93521a2dd139Smrgfi 93531a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93541a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93551a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 93561a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93571a2dd139Smrgfi 93581a2dd139Smrg 93591a2dd139Smrgfound="no" 93601a2dd139Smrg 93611a2dd139Smrg if test $found = "no" ; then 936205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93631a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93641a2dd139Smrg fi 9365f299d47fSmrg 936605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 93671a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93681a2dd139Smrg fi 93691a2dd139Smrg 93701a2dd139Smrg CFLAGS="$CFLAGS -Wreturn-type" 93711a2dd139Smrg 93721a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 93731a2dd139Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 93741a2dd139Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 93751a2dd139Smrg if eval \${$cacheid+:} false; then : 93761a2dd139Smrg $as_echo_n "(cached) " >&6 93771a2dd139Smrgelse 93781a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93791a2dd139Smrg/* end confdefs.h. */ 93801a2dd139Smrgint i; 9381f299d47fSmrgint 9382f299d47fSmrgmain () 9383f299d47fSmrg{ 9384f299d47fSmrg 9385f299d47fSmrg ; 9386f299d47fSmrg return 0; 9387f299d47fSmrg} 9388f299d47fSmrg_ACEOF 93891a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 93901a2dd139Smrg eval $cacheid=yes 9391f299d47fSmrgelse 93921a2dd139Smrg eval $cacheid=no 93931a2dd139Smrgfi 93941a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 93951a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 93961a2dd139Smrgfi 9397f299d47fSmrg 9398f299d47fSmrg 93991a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94001a2dd139Smrg 94011a2dd139Smrg eval supported=\$$cacheid 94021a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94031a2dd139Smrg$as_echo "$supported" >&6; } 94041a2dd139Smrg if test "$supported" = "yes" ; then 94051a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 94061a2dd139Smrg found="yes" 94071a2dd139Smrg fi 94081a2dd139Smrg fi 94091a2dd139Smrg 94101a2dd139Smrg 94111a2dd139Smrg 94121a2dd139Smrg 94131a2dd139Smrg 94141a2dd139Smrg 94151a2dd139Smrg 94161a2dd139Smrg 94171a2dd139Smrg 94181a2dd139Smrg 94191a2dd139Smrg 94201a2dd139Smrg 94211a2dd139Smrg 94221a2dd139Smrg 94231a2dd139Smrg 94241a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 94251a2dd139Smrg 94261a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94271a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94281a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94291a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94301a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94311a2dd139Smrg $as_echo_n "(cached) " >&6 94321a2dd139Smrgelse 94331a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94341a2dd139Smrg/* end confdefs.h. */ 94351a2dd139Smrgint i; 9436f299d47fSmrg_ACEOF 9437625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then : 94381a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94391a2dd139Smrgelse 94401a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 94411a2dd139Smrgfi 94421a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94431a2dd139Smrgfi 94441a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94451a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94461a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 94471a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94481a2dd139Smrgfi 9449f299d47fSmrg 94501a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94511a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94521a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94531a2dd139Smrg fi 94541a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94551a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94561a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94571a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 94581a2dd139Smrg $as_echo_n "(cached) " >&6 9459625f88beSmrgelse 94601a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461f299d47fSmrg/* end confdefs.h. */ 94621a2dd139Smrgint i; 94631a2dd139Smrg_ACEOF 94641a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 94651a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94661a2dd139Smrgelse 94671a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 94681a2dd139Smrgfi 94691a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94701a2dd139Smrgfi 94711a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94721a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94731a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 94741a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94751a2dd139Smrgfi 94761a2dd139Smrg 94771a2dd139Smrgfound="no" 9478f299d47fSmrg 94791a2dd139Smrg if test $found = "no" ; then 948005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94821a2dd139Smrg fi 94831a2dd139Smrg 948405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 94851a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94861a2dd139Smrg fi 94871a2dd139Smrg 94881a2dd139Smrg CFLAGS="$CFLAGS -Wtrigraphs" 94891a2dd139Smrg 94901a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 94911a2dd139Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 94921a2dd139Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 94931a2dd139Smrg if eval \${$cacheid+:} false; then : 94941a2dd139Smrg $as_echo_n "(cached) " >&6 94951a2dd139Smrgelse 94961a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94971a2dd139Smrg/* end confdefs.h. */ 94981a2dd139Smrgint i; 9499f299d47fSmrgint 9500f299d47fSmrgmain () 9501f299d47fSmrg{ 9502f299d47fSmrg 9503f299d47fSmrg ; 9504f299d47fSmrg return 0; 9505f299d47fSmrg} 9506f299d47fSmrg_ACEOF 95071a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 95081a2dd139Smrg eval $cacheid=yes 95091a2dd139Smrgelse 95101a2dd139Smrg eval $cacheid=no 9511f299d47fSmrgfi 95121a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 95131a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 9514f299d47fSmrgfi 95151a2dd139Smrg 95161a2dd139Smrg 95171a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95181a2dd139Smrg 95191a2dd139Smrg eval supported=\$$cacheid 95201a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95211a2dd139Smrg$as_echo "$supported" >&6; } 95221a2dd139Smrg if test "$supported" = "yes" ; then 95231a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 95241a2dd139Smrg found="yes" 95251a2dd139Smrg fi 95261a2dd139Smrg fi 95271a2dd139Smrg 95281a2dd139Smrg 95291a2dd139Smrg 95301a2dd139Smrg 95311a2dd139Smrg 95321a2dd139Smrg 95331a2dd139Smrg 95341a2dd139Smrg 95351a2dd139Smrg 95361a2dd139Smrg 95371a2dd139Smrg 95381a2dd139Smrg 95391a2dd139Smrg 95401a2dd139Smrg 95411a2dd139Smrg 95421a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 95431a2dd139Smrg 95441a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 95451a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95461a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95471a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95481a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 95491a2dd139Smrg $as_echo_n "(cached) " >&6 95501a2dd139Smrgelse 95511a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95521a2dd139Smrg/* end confdefs.h. */ 95531a2dd139Smrgint i; 95541a2dd139Smrg_ACEOF 95551a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 95561a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95571a2dd139Smrgelse 95581a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 9559f299d47fSmrgfi 9560f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9561f299d47fSmrgfi 95621a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95631a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95641a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95651a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9566f299d47fSmrgfi 95671a2dd139Smrg 95681a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95691a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95701a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95711a2dd139Smrg fi 95721a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95731a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95741a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95751a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9576aa98702cSmrg $as_echo_n "(cached) " >&6 9577f299d47fSmrgelse 95781a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579f299d47fSmrg/* end confdefs.h. */ 95801a2dd139Smrgint i; 95811a2dd139Smrg_ACEOF 95821a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 95831a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95841a2dd139Smrgelse 95851a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95861a2dd139Smrgfi 95871a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95881a2dd139Smrgfi 95891a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95901a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95911a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95921a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95931a2dd139Smrgfi 9594f299d47fSmrg 95951a2dd139Smrgfound="no" 9596f299d47fSmrg 95971a2dd139Smrg if test $found = "no" ; then 959805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95991a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96001a2dd139Smrg fi 9601f299d47fSmrg 960205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 96031a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96041a2dd139Smrg fi 96051a2dd139Smrg 96061a2dd139Smrg CFLAGS="$CFLAGS -Warray-bounds" 96071a2dd139Smrg 96081a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 96091a2dd139Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 96101a2dd139Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 96111a2dd139Smrg if eval \${$cacheid+:} false; then : 96121a2dd139Smrg $as_echo_n "(cached) " >&6 96131a2dd139Smrgelse 96141a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96151a2dd139Smrg/* end confdefs.h. */ 96161a2dd139Smrgint i; 9617f299d47fSmrgint 9618f299d47fSmrgmain () 9619f299d47fSmrg{ 96201a2dd139Smrg 9621f299d47fSmrg ; 9622f299d47fSmrg return 0; 9623f299d47fSmrg} 9624f299d47fSmrg_ACEOF 96251a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 96261a2dd139Smrg eval $cacheid=yes 96271a2dd139Smrgelse 96281a2dd139Smrg eval $cacheid=no 9629f299d47fSmrgfi 96301a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 96311a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 9632f299d47fSmrgfi 9633f299d47fSmrg 9634f299d47fSmrg 96351a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9636f299d47fSmrg 96371a2dd139Smrg eval supported=\$$cacheid 96381a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96391a2dd139Smrg$as_echo "$supported" >&6; } 96401a2dd139Smrg if test "$supported" = "yes" ; then 96411a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 96421a2dd139Smrg found="yes" 96431a2dd139Smrg fi 96441a2dd139Smrg fi 9645f299d47fSmrg 9646f299d47fSmrg 9647aa98702cSmrg 9648f299d47fSmrg 9649f299d47fSmrg 96501a2dd139Smrg 96511a2dd139Smrg 96521a2dd139Smrg 96531a2dd139Smrg 96541a2dd139Smrg 96551a2dd139Smrg 96561a2dd139Smrg 96571a2dd139Smrg 96581a2dd139Smrg 96591a2dd139Smrg 96601a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 96611a2dd139Smrg 96621a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 96631a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96641a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96651a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96661a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 96671a2dd139Smrg $as_echo_n "(cached) " >&6 9668f299d47fSmrgelse 96691a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96701a2dd139Smrg/* end confdefs.h. */ 96711a2dd139Smrgint i; 96721a2dd139Smrg_ACEOF 96731a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 96741a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96751a2dd139Smrgelse 96761a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 9677f299d47fSmrgfi 96781a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96791a2dd139Smrgfi 96801a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96811a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96821a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96831a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9684f299d47fSmrgfi 9685f299d47fSmrg 96861a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96871a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96881a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96891a2dd139Smrg fi 96901a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96911a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96921a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96931a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 96941a2dd139Smrg $as_echo_n "(cached) " >&6 9695f299d47fSmrgelse 96961a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96971a2dd139Smrg/* end confdefs.h. */ 96981a2dd139Smrgint i; 96991a2dd139Smrg_ACEOF 97001a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 97011a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97021a2dd139Smrgelse 97031a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 97041a2dd139Smrgfi 97051a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97061a2dd139Smrgfi 97071a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97081a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97091a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97101a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9711f299d47fSmrgfi 9712f299d47fSmrg 97131a2dd139Smrgfound="no" 9714f299d47fSmrg 97151a2dd139Smrg if test $found = "no" ; then 971605641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97171a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97181a2dd139Smrg fi 97191a2dd139Smrg 972005641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 97211a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97221a2dd139Smrg fi 97231a2dd139Smrg 97241a2dd139Smrg CFLAGS="$CFLAGS -Wwrite-strings" 97251a2dd139Smrg 97261a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 97271a2dd139Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 97281a2dd139Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 97291a2dd139Smrg if eval \${$cacheid+:} false; then : 9730aa98702cSmrg $as_echo_n "(cached) " >&6 9731f299d47fSmrgelse 97321a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733625f88beSmrg/* end confdefs.h. */ 97341a2dd139Smrgint i; 97351a2dd139Smrgint 97361a2dd139Smrgmain () 9737625f88beSmrg{ 97381a2dd139Smrg 97391a2dd139Smrg ; 97401a2dd139Smrg return 0; 9741625f88beSmrg} 97421a2dd139Smrg_ACEOF 97431a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 97441a2dd139Smrg eval $cacheid=yes 97451a2dd139Smrgelse 97461a2dd139Smrg eval $cacheid=no 97471a2dd139Smrgfi 97481a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 97491a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 97501a2dd139Smrgfi 9751f299d47fSmrg 9752f299d47fSmrg 97531a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9754f299d47fSmrg 97551a2dd139Smrg eval supported=\$$cacheid 97561a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97571a2dd139Smrg$as_echo "$supported" >&6; } 97581a2dd139Smrg if test "$supported" = "yes" ; then 97591a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 97601a2dd139Smrg found="yes" 97611a2dd139Smrg fi 97621a2dd139Smrg fi 9763f299d47fSmrg 9764f299d47fSmrg 9765625f88beSmrg 9766625f88beSmrg 9767625f88beSmrg 9768625f88beSmrg 9769625f88beSmrg 9770625f88beSmrg 9771625f88beSmrg 9772625f88beSmrg 9773625f88beSmrg 9774625f88beSmrg 9775625f88beSmrg 9776625f88beSmrg 97771a2dd139Smrg 97781a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 97791a2dd139Smrg 97801a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97821a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97831a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97841a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 97851a2dd139Smrg $as_echo_n "(cached) " >&6 97861a2dd139Smrgelse 97871a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97881a2dd139Smrg/* end confdefs.h. */ 97891a2dd139Smrgint i; 97901a2dd139Smrg_ACEOF 97911a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 97921a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97931a2dd139Smrgelse 97941a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 97951a2dd139Smrgfi 97961a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97971a2dd139Smrgfi 97981a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97991a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98001a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98011a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98021a2dd139Smrgfi 98031a2dd139Smrg 98041a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98051a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98061a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98071a2dd139Smrg fi 98081a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98091a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98101a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98111a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98121a2dd139Smrg $as_echo_n "(cached) " >&6 98131a2dd139Smrgelse 98141a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98151a2dd139Smrg/* end confdefs.h. */ 98161a2dd139Smrgint i; 98171a2dd139Smrg_ACEOF 98181a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 98191a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98201a2dd139Smrgelse 98211a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98221a2dd139Smrgfi 98231a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98241a2dd139Smrgfi 98251a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98261a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98271a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98281a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98291a2dd139Smrgfi 98301a2dd139Smrg 98311a2dd139Smrgfound="no" 98321a2dd139Smrg 98331a2dd139Smrg if test $found = "no" ; then 983405641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98351a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98361a2dd139Smrg fi 98371a2dd139Smrg 983805641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 98391a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98401a2dd139Smrg fi 98411a2dd139Smrg 98421a2dd139Smrg CFLAGS="$CFLAGS -Waddress" 98431a2dd139Smrg 98441a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 98451a2dd139Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 98461a2dd139Smrg cacheid=xorg_cv_cc_flag__Waddress 98471a2dd139Smrg if eval \${$cacheid+:} false; then : 98481a2dd139Smrg $as_echo_n "(cached) " >&6 98491a2dd139Smrgelse 98501a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98511a2dd139Smrg/* end confdefs.h. */ 98521a2dd139Smrgint i; 98531a2dd139Smrgint 98541a2dd139Smrgmain () 98551a2dd139Smrg{ 9856625f88beSmrg 9857625f88beSmrg ; 9858625f88beSmrg return 0; 9859625f88beSmrg} 9860625f88beSmrg_ACEOF 98611a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 98621a2dd139Smrg eval $cacheid=yes 98631a2dd139Smrgelse 98641a2dd139Smrg eval $cacheid=no 9865625f88beSmrgfi 98661a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 98671a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 9868625f88beSmrgfi 9869625f88beSmrg 9870f299d47fSmrg 98711a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9872f299d47fSmrg 98731a2dd139Smrg eval supported=\$$cacheid 98741a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98751a2dd139Smrg$as_echo "$supported" >&6; } 98761a2dd139Smrg if test "$supported" = "yes" ; then 98771a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 98781a2dd139Smrg found="yes" 98791a2dd139Smrg fi 98801a2dd139Smrg fi 9881f299d47fSmrg 98821a2dd139Smrg 98831a2dd139Smrg 98841a2dd139Smrg 98851a2dd139Smrg 98861a2dd139Smrg 98871a2dd139Smrg 98881a2dd139Smrg 98891a2dd139Smrg 98901a2dd139Smrg 98911a2dd139Smrg 98921a2dd139Smrg 98931a2dd139Smrg 98941a2dd139Smrg 98951a2dd139Smrg 98961a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98971a2dd139Smrg 98981a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98991a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99001a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99011a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99021a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9903aa98702cSmrg $as_echo_n "(cached) " >&6 9904f299d47fSmrgelse 9905625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906aa98702cSmrg/* end confdefs.h. */ 99071a2dd139Smrgint i; 9908aa98702cSmrg_ACEOF 99091a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 99101a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 99111a2dd139Smrgelse 99121a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 99131a2dd139Smrgfi 99141a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99151a2dd139Smrgfi 99161a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99171a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99181a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99191a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99201a2dd139Smrgfi 9921aa98702cSmrg 99221a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99231a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99241a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99251a2dd139Smrg fi 99261a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99271a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99281a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99291a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 99301a2dd139Smrg $as_echo_n "(cached) " >&6 9931625f88beSmrgelse 99321a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99331a2dd139Smrg/* end confdefs.h. */ 99341a2dd139Smrgint i; 99351a2dd139Smrg_ACEOF 99361a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 99371a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 99381a2dd139Smrgelse 99391a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 99401a2dd139Smrgfi 99411a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99421a2dd139Smrgfi 99431a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99441a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99451a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 99461a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9947aa98702cSmrgfi 9948aa98702cSmrg 99491a2dd139Smrgfound="no" 99501a2dd139Smrg 99511a2dd139Smrg if test $found = "no" ; then 995205641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99531a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99541a2dd139Smrg fi 99551a2dd139Smrg 995605641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 99571a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99581a2dd139Smrg fi 99591a2dd139Smrg 99601a2dd139Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 99611a2dd139Smrg 99621a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 99631a2dd139Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 99641a2dd139Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 99651a2dd139Smrg if eval \${$cacheid+:} false; then : 99661a2dd139Smrg $as_echo_n "(cached) " >&6 99671a2dd139Smrgelse 9968625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969aa98702cSmrg/* end confdefs.h. */ 99701a2dd139Smrgint i; 99711a2dd139Smrgint 99721a2dd139Smrgmain () 99731a2dd139Smrg{ 99741a2dd139Smrg 99751a2dd139Smrg ; 99761a2dd139Smrg return 0; 99771a2dd139Smrg} 9978aa98702cSmrg_ACEOF 99791a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 99801a2dd139Smrg eval $cacheid=yes 9981aa98702cSmrgelse 99821a2dd139Smrg eval $cacheid=no 9983aa98702cSmrgfi 99841a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 99851a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 9986aa98702cSmrgfi 9987aa98702cSmrg 9988aa98702cSmrg 99891a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99901a2dd139Smrg 99911a2dd139Smrg eval supported=\$$cacheid 99921a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99931a2dd139Smrg$as_echo "$supported" >&6; } 99941a2dd139Smrg if test "$supported" = "yes" ; then 99951a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 99961a2dd139Smrg found="yes" 99971a2dd139Smrg fi 99981a2dd139Smrg fi 99991a2dd139Smrg 100001a2dd139Smrg 100011a2dd139Smrg 100021a2dd139Smrg 100031a2dd139Smrg 100041a2dd139Smrg 100051a2dd139Smrg 100061a2dd139Smrg 100071a2dd139Smrg 100081a2dd139Smrg 100091a2dd139Smrg 100101a2dd139Smrg 100111a2dd139Smrg 100121a2dd139Smrg 100131a2dd139Smrg 100141a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 100151a2dd139Smrg 100161a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 100171a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100181a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100191a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100201a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 100211a2dd139Smrg $as_echo_n "(cached) " >&6 10022aa98702cSmrgelse 10023625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024aa98702cSmrg/* end confdefs.h. */ 100251a2dd139Smrgint i; 10026aa98702cSmrg_ACEOF 100271a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 100281a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10029625f88beSmrgelse 100301a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 100311a2dd139Smrgfi 100321a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100331a2dd139Smrgfi 100341a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100351a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100361a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 100371a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10038aa98702cSmrgfi 10039aa98702cSmrg 100401a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100411a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100421a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100431a2dd139Smrg fi 100441a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100451a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100461a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100471a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 100481a2dd139Smrg $as_echo_n "(cached) " >&6 100491a2dd139Smrgelse 10050625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051aa98702cSmrg/* end confdefs.h. */ 100521a2dd139Smrgint i; 10053aa98702cSmrg_ACEOF 100541a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 100551a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10056aa98702cSmrgelse 100571a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 100581a2dd139Smrgfi 100591a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100601a2dd139Smrgfi 100611a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100621a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100631a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 100641a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10065aa98702cSmrgfi 10066aa98702cSmrg 100671a2dd139Smrgfound="no" 10068625f88beSmrg 100691a2dd139Smrg if test $found = "no" ; then 1007005641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100711a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100721a2dd139Smrg fi 10073aa98702cSmrg 1007405641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 100751a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100761a2dd139Smrg fi 10077aa98702cSmrg 100781a2dd139Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10079aa98702cSmrg 100801a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 100811a2dd139Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 100821a2dd139Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 100831a2dd139Smrg if eval \${$cacheid+:} false; then : 10084aa98702cSmrg $as_echo_n "(cached) " >&6 10085aa98702cSmrgelse 100861a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100871a2dd139Smrg/* end confdefs.h. */ 100881a2dd139Smrgint i; 100891a2dd139Smrgint 100901a2dd139Smrgmain () 100911a2dd139Smrg{ 10092aa98702cSmrg 100931a2dd139Smrg ; 100941a2dd139Smrg return 0; 100951a2dd139Smrg} 100961a2dd139Smrg_ACEOF 100971a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 100981a2dd139Smrg eval $cacheid=yes 10099aa98702cSmrgelse 101001a2dd139Smrg eval $cacheid=no 101011a2dd139Smrgfi 101021a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 101031a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 10104aa98702cSmrgfi 10105aa98702cSmrg 101061a2dd139Smrg 101071a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101081a2dd139Smrg 101091a2dd139Smrg eval supported=\$$cacheid 101101a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101111a2dd139Smrg$as_echo "$supported" >&6; } 101121a2dd139Smrg if test "$supported" = "yes" ; then 101131a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 101141a2dd139Smrg found="yes" 101151a2dd139Smrg fi 101161a2dd139Smrg fi 101171a2dd139Smrg 101181a2dd139Smrg 10119aa98702cSmrgfi 10120aa98702cSmrg 10121aa98702cSmrg 10122aa98702cSmrg 101231a2dd139Smrg 101241a2dd139Smrg 101251a2dd139Smrg 101261a2dd139Smrg 101271a2dd139Smrg CWARNFLAGS="$BASE_CFLAGS" 101281a2dd139Smrg if test "x$GCC" = xyes ; then 101291a2dd139Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 101301a2dd139Smrg fi 101311a2dd139Smrg 101321a2dd139Smrg 101331a2dd139Smrg 101341a2dd139Smrg 101351a2dd139Smrg 101361a2dd139Smrg 101371a2dd139Smrg 101381a2dd139Smrg 101391a2dd139Smrg# Check whether --enable-strict-compilation was given. 101401a2dd139Smrgif test "${enable_strict_compilation+set}" = set; then : 101411a2dd139Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10142aa98702cSmrgelse 101431a2dd139Smrg STRICT_COMPILE=no 10144aa98702cSmrgfi 10145aa98702cSmrg 10146aa98702cSmrg 10147aa98702cSmrg 101481a2dd139Smrg 101491a2dd139Smrg 101501a2dd139Smrg 101511a2dd139SmrgSTRICT_CFLAGS="" 101521a2dd139Smrg 101531a2dd139Smrg 101541a2dd139Smrg 101551a2dd139Smrg 101561a2dd139Smrg 101571a2dd139Smrg 101581a2dd139Smrg 101591a2dd139Smrg 101601a2dd139Smrg 101611a2dd139Smrg 101621a2dd139Smrg 101631a2dd139Smrg 101641a2dd139Smrg 101651a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 101661a2dd139Smrg 101671a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101681a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101691a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101701a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101711a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10172aa98702cSmrg $as_echo_n "(cached) " >&6 10173aa98702cSmrgelse 10174625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175aa98702cSmrg/* end confdefs.h. */ 101761a2dd139Smrgint i; 10177aa98702cSmrg_ACEOF 10178625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then : 101791a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10180aa98702cSmrgelse 101811a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 10182aa98702cSmrgfi 10183aa98702cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101841a2dd139Smrgfi 101851a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101861a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101871a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101881a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101891a2dd139Smrgfi 10190aa98702cSmrg 101911a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101921a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101931a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101941a2dd139Smrg fi 101951a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101961a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101971a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101981a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 101991a2dd139Smrg $as_echo_n "(cached) " >&6 102001a2dd139Smrgelse 10201625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202aa98702cSmrg/* end confdefs.h. */ 102031a2dd139Smrgint i; 10204aa98702cSmrg_ACEOF 102051a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 102061a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10207aa98702cSmrgelse 102081a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10209aa98702cSmrgfi 102101a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102111a2dd139Smrgfi 102121a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102131a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 102141a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 102151a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10216aa98702cSmrgfi 10217aa98702cSmrg 102181a2dd139Smrgfound="no" 10219aa98702cSmrg 102201a2dd139Smrg if test $found = "no" ; then 1022105641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102221a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102231a2dd139Smrg fi 10224625f88beSmrg 1022505641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 102261a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102271a2dd139Smrg fi 10228aa98702cSmrg 102291a2dd139Smrg CFLAGS="$CFLAGS -pedantic" 10230aa98702cSmrg 102311a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 102321a2dd139Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 102331a2dd139Smrg cacheid=xorg_cv_cc_flag__pedantic 102341a2dd139Smrg if eval \${$cacheid+:} false; then : 102351a2dd139Smrg $as_echo_n "(cached) " >&6 10236aa98702cSmrgelse 10237625f88beSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238aa98702cSmrg/* end confdefs.h. */ 102391a2dd139Smrgint i; 10240aa98702cSmrgint 10241aa98702cSmrgmain () 10242aa98702cSmrg{ 102431a2dd139Smrg 102441a2dd139Smrg ; 10245aa98702cSmrg return 0; 10246aa98702cSmrg} 10247aa98702cSmrg_ACEOF 102481a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 102491a2dd139Smrg eval $cacheid=yes 10250625f88beSmrgelse 102511a2dd139Smrg eval $cacheid=no 10252aa98702cSmrgfi 102531a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 102541a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 10255aa98702cSmrgfi 10256aa98702cSmrg 10257aa98702cSmrg 102581a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10259aa98702cSmrg 102601a2dd139Smrg eval supported=\$$cacheid 102611a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102621a2dd139Smrg$as_echo "$supported" >&6; } 102631a2dd139Smrg if test "$supported" = "yes" ; then 102641a2dd139Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 102651a2dd139Smrg found="yes" 102661a2dd139Smrg fi 102671a2dd139Smrg fi 10268aa98702cSmrg 10269aa98702cSmrg 10270aa98702cSmrg 10271aa98702cSmrg 10272aa98702cSmrg 10273625f88beSmrg 10274aa98702cSmrg 10275aa98702cSmrg 10276625f88beSmrg 10277aa98702cSmrg 10278aa98702cSmrg 10279aa98702cSmrg 10280aa98702cSmrg 10281aa98702cSmrg 10282aa98702cSmrg 102831a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10284aa98702cSmrg 102851a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 102861a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102871a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102881a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102891a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10290aa98702cSmrg $as_echo_n "(cached) " >&6 10291aa98702cSmrgelse 102921a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102931a2dd139Smrg/* end confdefs.h. */ 102941a2dd139Smrgint i; 102951a2dd139Smrg_ACEOF 102961a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 102971a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10298aa98702cSmrgelse 102991a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 103001a2dd139Smrgfi 103011a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103021a2dd139Smrgfi 103031a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103041a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 103051a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 103061a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10307aa98702cSmrgfi 10308aa98702cSmrg 103091a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 103101a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103111a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103121a2dd139Smrg fi 103131a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103141a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103151a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103161a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 103171a2dd139Smrg $as_echo_n "(cached) " >&6 103181a2dd139Smrgelse 103191a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103201a2dd139Smrg/* end confdefs.h. */ 103211a2dd139Smrgint i; 103221a2dd139Smrg_ACEOF 103231a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 103241a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 103251a2dd139Smrgelse 103261a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 103271a2dd139Smrgfi 103281a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103291a2dd139Smrgfi 103301a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103311a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103321a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 103331a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10334aa98702cSmrgfi 10335aa98702cSmrg 103361a2dd139Smrgfound="no" 10337aa98702cSmrg 103381a2dd139Smrg if test $found = "no" ; then 1033905641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103401a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103411a2dd139Smrg fi 103421a2dd139Smrg 1034305641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 103441a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103451a2dd139Smrg fi 103461a2dd139Smrg 103471a2dd139Smrg CFLAGS="$CFLAGS -Werror" 103481a2dd139Smrg 103491a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 103501a2dd139Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 103511a2dd139Smrg cacheid=xorg_cv_cc_flag__Werror 103521a2dd139Smrg if eval \${$cacheid+:} false; then : 10353625f88beSmrg $as_echo_n "(cached) " >&6 10354625f88beSmrgelse 103551a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103561a2dd139Smrg/* end confdefs.h. */ 103571a2dd139Smrgint i; 103581a2dd139Smrgint 103591a2dd139Smrgmain () 103601a2dd139Smrg{ 10361625f88beSmrg 103621a2dd139Smrg ; 103631a2dd139Smrg return 0; 103641a2dd139Smrg} 103651a2dd139Smrg_ACEOF 103661a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 103671a2dd139Smrg eval $cacheid=yes 10368625f88beSmrgelse 103691a2dd139Smrg eval $cacheid=no 10370625f88beSmrgfi 103711a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 103721a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 10373625f88beSmrgfi 10374625f88beSmrg 10375625f88beSmrg 103761a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10377aa98702cSmrg 103781a2dd139Smrg eval supported=\$$cacheid 103791a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103801a2dd139Smrg$as_echo "$supported" >&6; } 103811a2dd139Smrg if test "$supported" = "yes" ; then 103821a2dd139Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 103831a2dd139Smrg found="yes" 103841a2dd139Smrg fi 103851a2dd139Smrg fi 10386aa98702cSmrg 103871a2dd139Smrg if test $found = "no" ; then 1038805641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103891a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103901a2dd139Smrg fi 10391aa98702cSmrg 1039205641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 103931a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103941a2dd139Smrg fi 103951a2dd139Smrg 103961a2dd139Smrg CFLAGS="$CFLAGS -errwarn" 103971a2dd139Smrg 103981a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 103991a2dd139Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 104001a2dd139Smrg cacheid=xorg_cv_cc_flag__errwarn 104011a2dd139Smrg if eval \${$cacheid+:} false; then : 104021a2dd139Smrg $as_echo_n "(cached) " >&6 10403aa98702cSmrgelse 104041a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104051a2dd139Smrg/* end confdefs.h. */ 104061a2dd139Smrgint i; 104071a2dd139Smrgint 104081a2dd139Smrgmain () 104091a2dd139Smrg{ 104101a2dd139Smrg 104111a2dd139Smrg ; 104121a2dd139Smrg return 0; 104131a2dd139Smrg} 104141a2dd139Smrg_ACEOF 104151a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 104161a2dd139Smrg eval $cacheid=yes 10417aa98702cSmrgelse 104181a2dd139Smrg eval $cacheid=no 10419aa98702cSmrgfi 104201a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 104211a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 10422aa98702cSmrgfi 10423aa98702cSmrg 10424aa98702cSmrg 104251a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10426aa98702cSmrg 104271a2dd139Smrg eval supported=\$$cacheid 104281a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104291a2dd139Smrg$as_echo "$supported" >&6; } 104301a2dd139Smrg if test "$supported" = "yes" ; then 104311a2dd139Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 104321a2dd139Smrg found="yes" 104331a2dd139Smrg fi 104341a2dd139Smrg fi 10435aa98702cSmrg 10436aa98702cSmrg 10437aa98702cSmrg 104381a2dd139Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 104391a2dd139Smrg# activate it with -Werror, so we add it here explicitly. 104401a2dd139Smrg 104411a2dd139Smrg 104421a2dd139Smrg 104431a2dd139Smrg 104441a2dd139Smrg 104451a2dd139Smrg 104461a2dd139Smrg 104471a2dd139Smrg 104481a2dd139Smrg 104491a2dd139Smrg 104501a2dd139Smrg 104511a2dd139Smrg 104521a2dd139Smrg 104531a2dd139Smrgxorg_testset_save_CFLAGS="$CFLAGS" 104541a2dd139Smrg 104551a2dd139Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 104561a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104571a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104581a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104591a2dd139Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 104601a2dd139Smrg $as_echo_n "(cached) " >&6 10461aa98702cSmrgelse 104621a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104631a2dd139Smrg/* end confdefs.h. */ 104641a2dd139Smrgint i; 104651a2dd139Smrg_ACEOF 104661a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 104671a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=yes 104681a2dd139Smrgelse 104691a2dd139Smrg xorg_cv_cc_flag_unknown_warning_option=no 104701a2dd139Smrgfi 104711a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104721a2dd139Smrgfi 104731a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104741a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104751a2dd139Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 104761a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10477aa98702cSmrgfi 10478aa98702cSmrg 104791a2dd139Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 104801a2dd139Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 104811a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104821a2dd139Smrg fi 104831a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104841a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104851a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104861a2dd139Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 104871a2dd139Smrg $as_echo_n "(cached) " >&6 10488aa98702cSmrgelse 104891a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104901a2dd139Smrg/* end confdefs.h. */ 104911a2dd139Smrgint i; 104921a2dd139Smrg_ACEOF 104931a2dd139Smrgif ac_fn_c_try_compile "$LINENO"; then : 104941a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 104951a2dd139Smrgelse 104961a2dd139Smrg xorg_cv_cc_flag_unused_command_line_argument=no 104971a2dd139Smrgfi 104981a2dd139Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104991a2dd139Smrgfi 105001a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105011a2dd139Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 105021a2dd139Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 105031a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10504aa98702cSmrgfi 10505aa98702cSmrg 105061a2dd139Smrgfound="no" 105071a2dd139Smrg 105081a2dd139Smrg if test $found = "no" ; then 1050905641e18Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 105101a2dd139Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105111a2dd139Smrg fi 105121a2dd139Smrg 1051305641e18Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 105141a2dd139Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105151a2dd139Smrg fi 105161a2dd139Smrg 105171a2dd139Smrg CFLAGS="$CFLAGS -Werror=attributes" 105181a2dd139Smrg 105191a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 105201a2dd139Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 1052105641e18Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 105221a2dd139Smrg if eval \${$cacheid+:} false; then : 105231a2dd139Smrg $as_echo_n "(cached) " >&6 10524aa98702cSmrgelse 105251a2dd139Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 105261a2dd139Smrg/* end confdefs.h. */ 105271a2dd139Smrgint i; 105281a2dd139Smrgint 105291a2dd139Smrgmain () 105301a2dd139Smrg{ 105311a2dd139Smrg 105321a2dd139Smrg ; 105331a2dd139Smrg return 0; 105341a2dd139Smrg} 105351a2dd139Smrg_ACEOF 105361a2dd139Smrgif ac_fn_c_try_link "$LINENO"; then : 105371a2dd139Smrg eval $cacheid=yes 105381a2dd139Smrgelse 105391a2dd139Smrg eval $cacheid=no 10540aa98702cSmrgfi 105411a2dd139Smrgrm -f core conftest.err conftest.$ac_objext \ 105421a2dd139Smrg conftest$ac_exeext conftest.$ac_ext 105431a2dd139Smrgfi 105441a2dd139Smrg 10545aa98702cSmrg 105461a2dd139Smrg CFLAGS="$xorg_testset_save_CFLAGS" 105471a2dd139Smrg 105481a2dd139Smrg eval supported=\$$cacheid 105491a2dd139Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105501a2dd139Smrg$as_echo "$supported" >&6; } 105511a2dd139Smrg if test "$supported" = "yes" ; then 105521a2dd139Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 105531a2dd139Smrg found="yes" 105541a2dd139Smrg fi 10555aa98702cSmrg fi 105561a2dd139Smrg 105571a2dd139Smrg 105581a2dd139Smrg 105591a2dd139Smrgif test "x$STRICT_COMPILE" = "xyes"; then 105601a2dd139Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 105611a2dd139Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10562aa98702cSmrgfi 105631a2dd139Smrg 105641a2dd139Smrg 10565aa98702cSmrg 10566aa98702cSmrg 10567aa98702cSmrg 10568aa98702cSmrg 10569aa98702cSmrgcat >>confdefs.h <<_ACEOF 10570aa98702cSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10571aa98702cSmrg_ACEOF 10572aa98702cSmrg 10573aa98702cSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10574aa98702cSmrg if test "x$PVM" = "x"; then 10575aa98702cSmrg PVM="0" 10576aa98702cSmrg fi 10577aa98702cSmrg 10578aa98702cSmrgcat >>confdefs.h <<_ACEOF 10579aa98702cSmrg#define PACKAGE_VERSION_MINOR $PVM 10580aa98702cSmrg_ACEOF 10581aa98702cSmrg 10582aa98702cSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10583aa98702cSmrg if test "x$PVP" = "x"; then 10584aa98702cSmrg PVP="0" 10585aa98702cSmrg fi 10586aa98702cSmrg 10587aa98702cSmrgcat >>confdefs.h <<_ACEOF 10588aa98702cSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 10589aa98702cSmrg_ACEOF 10590aa98702cSmrg 10591aa98702cSmrg 10592aa98702cSmrg 10593625f88beSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10594625f88beSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10595625f88beSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10596aa98702cSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 10597aa98702cSmrg 10598625f88beSmrg 10599625f88beSmrg 10600625f88beSmrg 10601625f88beSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10602625f88beSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10603625f88beSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10604625f88beSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10605625f88beSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10606625f88beSmrg 10607aa98702cSmrg 10608aa98702cSmrg 10609aa98702cSmrg 10610aa98702cSmrg 10611aa98702cSmrg 10612aa98702cSmrgif test x$APP_MAN_SUFFIX = x ; then 10613aa98702cSmrg APP_MAN_SUFFIX=1 10614aa98702cSmrgfi 10615aa98702cSmrgif test x$APP_MAN_DIR = x ; then 10616aa98702cSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10617aa98702cSmrgfi 10618aa98702cSmrg 10619aa98702cSmrgif test x$LIB_MAN_SUFFIX = x ; then 10620aa98702cSmrg LIB_MAN_SUFFIX=3 10621aa98702cSmrgfi 10622aa98702cSmrgif test x$LIB_MAN_DIR = x ; then 10623aa98702cSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10624aa98702cSmrgfi 10625aa98702cSmrg 10626aa98702cSmrgif test x$FILE_MAN_SUFFIX = x ; then 10627aa98702cSmrg case $host_os in 10628aa98702cSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 10629aa98702cSmrg *) FILE_MAN_SUFFIX=5 ;; 10630aa98702cSmrg esac 10631aa98702cSmrgfi 10632aa98702cSmrgif test x$FILE_MAN_DIR = x ; then 10633aa98702cSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10634aa98702cSmrgfi 10635aa98702cSmrg 10636aa98702cSmrgif test x$MISC_MAN_SUFFIX = x ; then 10637aa98702cSmrg case $host_os in 10638aa98702cSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 10639aa98702cSmrg *) MISC_MAN_SUFFIX=7 ;; 10640aa98702cSmrg esac 10641aa98702cSmrgfi 10642aa98702cSmrgif test x$MISC_MAN_DIR = x ; then 10643aa98702cSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10644aa98702cSmrgfi 10645aa98702cSmrg 10646aa98702cSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 10647aa98702cSmrg case $host_os in 10648aa98702cSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 10649aa98702cSmrg *) DRIVER_MAN_SUFFIX=4 ;; 10650aa98702cSmrg esac 10651aa98702cSmrgfi 10652aa98702cSmrgif test x$DRIVER_MAN_DIR = x ; then 10653aa98702cSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10654aa98702cSmrgfi 10655aa98702cSmrg 10656aa98702cSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 10657aa98702cSmrg case $host_os in 10658aa98702cSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 10659aa98702cSmrg *) ADMIN_MAN_SUFFIX=8 ;; 10660aa98702cSmrg esac 10661aa98702cSmrgfi 10662aa98702cSmrgif test x$ADMIN_MAN_DIR = x ; then 10663aa98702cSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10664aa98702cSmrgfi 10665aa98702cSmrg 10666aa98702cSmrg 10667aa98702cSmrg 10668aa98702cSmrg 10669aa98702cSmrg 10670aa98702cSmrg 10671aa98702cSmrg 10672aa98702cSmrg 10673aa98702cSmrg 10674aa98702cSmrg 10675aa98702cSmrg 10676aa98702cSmrg 10677aa98702cSmrg 10678aa98702cSmrg 10679aa98702cSmrg 10680625f88beSmrgXORG_MAN_PAGE="X Version 11" 10681aa98702cSmrg 10682625f88beSmrgMAN_SUBSTS="\ 10683625f88beSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10684625f88beSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10685625f88beSmrg -e 's|__xservername__|Xorg|g' \ 10686625f88beSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 10687625f88beSmrg -e 's|__projectroot__|\$(prefix)|g' \ 10688625f88beSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10689625f88beSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10690625f88beSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10691625f88beSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10692625f88beSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10693625f88beSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10694625f88beSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10695aa98702cSmrg 10696f299d47fSmrg 10697aa98702cSmrg 10698625f88beSmrg# Check whether --enable-silent-rules was given. 10699625f88beSmrgif test "${enable_silent_rules+set}" = set; then : 10700625f88beSmrg enableval=$enable_silent_rules; 10701f299d47fSmrgfi 10702f299d47fSmrg 1070305641e18Smrgcase $enable_silent_rules in # ((( 1070405641e18Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1070505641e18Smrg no) AM_DEFAULT_VERBOSITY=1;; 1070605641e18Smrg *) AM_DEFAULT_VERBOSITY=0;; 10707625f88beSmrgesac 107081a2dd139Smrgam_make=${MAKE-make} 107091a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 107101a2dd139Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 107111a2dd139Smrgif ${am_cv_make_support_nested_variables+:} false; then : 107121a2dd139Smrg $as_echo_n "(cached) " >&6 107131a2dd139Smrgelse 107141a2dd139Smrg if $as_echo 'TRUE=$(BAR$(V)) 107151a2dd139SmrgBAR0=false 107161a2dd139SmrgBAR1=true 107171a2dd139SmrgV=1 107181a2dd139Smrgam__doit: 107191a2dd139Smrg @$(TRUE) 107201a2dd139Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 107211a2dd139Smrg am_cv_make_support_nested_variables=yes 107221a2dd139Smrgelse 107231a2dd139Smrg am_cv_make_support_nested_variables=no 107241a2dd139Smrgfi 107251a2dd139Smrgfi 107261a2dd139Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 107271a2dd139Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 107281a2dd139Smrgif test $am_cv_make_support_nested_variables = yes; then 107291a2dd139Smrg AM_V='$(V)' 107301a2dd139Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 107311a2dd139Smrgelse 107321a2dd139Smrg AM_V=$AM_DEFAULT_VERBOSITY 107331a2dd139Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 107341a2dd139Smrgfi 10735625f88beSmrgAM_BACKSLASH='\' 10736625f88beSmrg 10737625f88beSmrg 10738625f88beSmrg 10739625f88beSmrg# Checks for pkg-config packages 10740625f88beSmrg 10741aa98702cSmrgpkg_failed=no 10742625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5 10743aa98702cSmrg$as_echo_n "checking for XEV... " >&6; } 10744aa98702cSmrg 10745aa98702cSmrgif test -n "$XEV_CFLAGS"; then 10746aa98702cSmrg pkg_cv_XEV_CFLAGS="$XEV_CFLAGS" 10747aa98702cSmrg elif test -n "$PKG_CONFIG"; then 10748aa98702cSmrg if test -n "$PKG_CONFIG" && \ 107491a2dd139Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 107501a2dd139Smrg ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 10751aa98702cSmrg ac_status=$? 10752625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10753625f88beSmrg test $ac_status = 0; }; then 107541a2dd139Smrg pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10755aa98702cSmrgelse 10756aa98702cSmrg pkg_failed=yes 10757f299d47fSmrgfi 10758aa98702cSmrg else 10759aa98702cSmrg pkg_failed=untried 10760f299d47fSmrgfi 10761aa98702cSmrgif test -n "$XEV_LIBS"; then 10762aa98702cSmrg pkg_cv_XEV_LIBS="$XEV_LIBS" 10763aa98702cSmrg elif test -n "$PKG_CONFIG"; then 10764aa98702cSmrg if test -n "$PKG_CONFIG" && \ 107651a2dd139Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 107661a2dd139Smrg ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 10767aa98702cSmrg ac_status=$? 10768625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10769625f88beSmrg test $ac_status = 0; }; then 107701a2dd139Smrg pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10771aa98702cSmrgelse 10772aa98702cSmrg pkg_failed=yes 10773f299d47fSmrgfi 10774aa98702cSmrg else 10775aa98702cSmrg pkg_failed=untried 10776f299d47fSmrgfi 10777f299d47fSmrg 10778f299d47fSmrg 10779f299d47fSmrg 10780aa98702cSmrgif test $pkg_failed = yes; then 10781f299d47fSmrg 10782aa98702cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10783aa98702cSmrg _pkg_short_errors_supported=yes 10784aa98702cSmrgelse 10785aa98702cSmrg _pkg_short_errors_supported=no 10786aa98702cSmrgfi 10787aa98702cSmrg if test $_pkg_short_errors_supported = yes; then 1078805641e18Smrg XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10789aa98702cSmrg else 1079005641e18Smrg XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10791aa98702cSmrg fi 10792aa98702cSmrg # Put the nasty error message in config.log where it belongs 10793aa98702cSmrg echo "$XEV_PKG_ERRORS" >&5 10794f299d47fSmrg 107951a2dd139Smrg as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met: 10796f299d47fSmrg 10797aa98702cSmrg$XEV_PKG_ERRORS 10798f299d47fSmrg 10799aa98702cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10800aa98702cSmrginstalled software in a non-standard prefix. 10801f299d47fSmrg 10802aa98702cSmrgAlternatively, you may set the environment variables XEV_CFLAGS 10803aa98702cSmrgand XEV_LIBS to avoid the need to call pkg-config. 1080405641e18SmrgSee the pkg-config man page for more details. 1080505641e18Smrg" "$LINENO" 5 10806aa98702cSmrgelif test $pkg_failed = untried; then 10807625f88beSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10808aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10809625f88beSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10810aa98702cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10811aa98702cSmrgpath to pkg-config. 10812f299d47fSmrg 10813aa98702cSmrgAlternatively, you may set the environment variables XEV_CFLAGS 10814aa98702cSmrgand XEV_LIBS to avoid the need to call pkg-config. 10815aa98702cSmrgSee the pkg-config man page for more details. 10816f299d47fSmrg 10817aa98702cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 10818625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; } 10819f299d47fSmrgelse 10820aa98702cSmrg XEV_CFLAGS=$pkg_cv_XEV_CFLAGS 10821aa98702cSmrg XEV_LIBS=$pkg_cv_XEV_LIBS 10822625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10823aa98702cSmrg$as_echo "yes" >&6; } 1082405641e18Smrg : 10825f299d47fSmrgfi 10826f299d47fSmrg 108271a2dd139Smrgac_config_files="$ac_config_files Makefile man/Makefile" 10828f299d47fSmrg 10829f299d47fSmrgcat >confcache <<\_ACEOF 10830f299d47fSmrg# This file is a shell script that caches the results of configure 10831f299d47fSmrg# tests run on this system so they can be shared between configure 10832f299d47fSmrg# scripts and configure runs, see configure's option --config-cache. 10833f299d47fSmrg# It is not useful on other systems. If it contains results you don't 10834f299d47fSmrg# want to keep, you may remove or edit it. 10835f299d47fSmrg# 10836f299d47fSmrg# config.status only pays attention to the cache file if you give it 10837f299d47fSmrg# the --recheck option to rerun configure. 10838f299d47fSmrg# 10839f299d47fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 10840f299d47fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 10841f299d47fSmrg# following values. 10842f299d47fSmrg 10843f299d47fSmrg_ACEOF 10844f299d47fSmrg 10845f299d47fSmrg# The following way of writing the cache mishandles newlines in values, 10846f299d47fSmrg# but we know of no workaround that is simple, portable, and efficient. 10847f299d47fSmrg# So, we kill variables containing newlines. 10848f299d47fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 10849f299d47fSmrg# and sets the high bit in the cache file unless we assign to the vars. 10850f299d47fSmrg( 10851f299d47fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10852f299d47fSmrg eval ac_val=\$$ac_var 10853f299d47fSmrg case $ac_val in #( 10854f299d47fSmrg *${as_nl}*) 10855f299d47fSmrg case $ac_var in #( 10856625f88beSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10857aa98702cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10858f299d47fSmrg esac 10859f299d47fSmrg case $ac_var in #( 10860f299d47fSmrg _ | IFS | as_nl) ;; #( 10861aa98702cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10862625f88beSmrg *) { eval $ac_var=; unset $ac_var;} ;; 10863f299d47fSmrg esac ;; 10864f299d47fSmrg esac 10865f299d47fSmrg done 10866f299d47fSmrg 10867f299d47fSmrg (set) 2>&1 | 10868f299d47fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 10869f299d47fSmrg *${as_nl}ac_space=\ *) 10870625f88beSmrg # `set' does not quote correctly, so add quotes: double-quote 10871625f88beSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 10872f299d47fSmrg sed -n \ 10873f299d47fSmrg "s/'/'\\\\''/g; 10874f299d47fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10875f299d47fSmrg ;; #( 10876f299d47fSmrg *) 10877f299d47fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 10878f299d47fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10879f299d47fSmrg ;; 10880f299d47fSmrg esac | 10881f299d47fSmrg sort 10882f299d47fSmrg) | 10883f299d47fSmrg sed ' 10884f299d47fSmrg /^ac_cv_env_/b end 10885f299d47fSmrg t clear 10886f299d47fSmrg :clear 10887f299d47fSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10888f299d47fSmrg t end 10889f299d47fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10890f299d47fSmrg :end' >>confcache 10891f299d47fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10892f299d47fSmrg if test -w "$cache_file"; then 10893625f88beSmrg if test "x$cache_file" != "x/dev/null"; then 10894625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10895aa98702cSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 10896625f88beSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 10897625f88beSmrg cat confcache >"$cache_file" 10898625f88beSmrg else 10899625f88beSmrg case $cache_file in #( 10900625f88beSmrg */* | ?:*) 10901625f88beSmrg mv -f confcache "$cache_file"$$ && 10902625f88beSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 10903625f88beSmrg *) 10904625f88beSmrg mv -f confcache "$cache_file" ;; 10905625f88beSmrg esac 10906625f88beSmrg fi 10907625f88beSmrg fi 10908f299d47fSmrg else 10909625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10910aa98702cSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10911f299d47fSmrg fi 10912f299d47fSmrgfi 10913f299d47fSmrgrm -f confcache 10914f299d47fSmrg 10915f299d47fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 10916f299d47fSmrg# Let make expand exec_prefix. 10917f299d47fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10918f299d47fSmrg 10919f299d47fSmrgDEFS=-DHAVE_CONFIG_H 10920f299d47fSmrg 10921f299d47fSmrgac_libobjs= 10922f299d47fSmrgac_ltlibobjs= 10923625f88beSmrgU= 10924f299d47fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10925f299d47fSmrg # 1. Remove the extension, and $U if already installed. 10926f299d47fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10927aa98702cSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10928f299d47fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10929f299d47fSmrg # will be set to the directory where LIBOBJS objects are built. 10930625f88beSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10931625f88beSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10932f299d47fSmrgdone 10933f299d47fSmrgLIBOBJS=$ac_libobjs 10934f299d47fSmrg 10935f299d47fSmrgLTLIBOBJS=$ac_ltlibobjs 10936f299d47fSmrg 10937f299d47fSmrg 1093805641e18Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1093905641e18Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 1094005641e18Smrg if test -n "$am_sleep_pid"; then 1094105641e18Smrg # Hide warnings about reused PIDs. 1094205641e18Smrg wait $am_sleep_pid 2>/dev/null 1094305641e18Smrg fi 1094405641e18Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 1094505641e18Smrg$as_echo "done" >&6; } 109461a2dd139Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 109471a2dd139Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 109481a2dd139SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 109491a2dd139Smrgfi 109501a2dd139Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 109511a2dd139Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 109521a2dd139SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 109531a2dd139Smrgfi 10954aa98702cSmrg if test -n "$EXEEXT"; then 10955aa98702cSmrg am__EXEEXT_TRUE= 10956aa98702cSmrg am__EXEEXT_FALSE='#' 10957aa98702cSmrgelse 10958aa98702cSmrg am__EXEEXT_TRUE='#' 10959aa98702cSmrg am__EXEEXT_FALSE= 10960aa98702cSmrgfi 10961aa98702cSmrg 10962f299d47fSmrg 10963625f88beSmrg: "${CONFIG_STATUS=./config.status}" 10964aa98702cSmrgac_write_fail=0 10965f299d47fSmrgac_clean_files_save=$ac_clean_files 10966f299d47fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 10967625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10968aa98702cSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10969625f88beSmrgas_write_fail=0 10970625f88beSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10971f299d47fSmrg#! $SHELL 10972f299d47fSmrg# Generated by $as_me. 10973f299d47fSmrg# Run this file to recreate the current configuration. 10974f299d47fSmrg# Compiler output produced by configure, useful for debugging 10975f299d47fSmrg# configure, is in config.log if it exists. 10976f299d47fSmrg 10977f299d47fSmrgdebug=false 10978f299d47fSmrgac_cs_recheck=false 10979f299d47fSmrgac_cs_silent=false 10980f299d47fSmrg 10981625f88beSmrgSHELL=\${CONFIG_SHELL-$SHELL} 10982625f88beSmrgexport SHELL 10983625f88beSmrg_ASEOF 10984625f88beSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10985625f88beSmrg## -------------------- ## 10986625f88beSmrg## M4sh Initialization. ## 10987625f88beSmrg## -------------------- ## 10988f299d47fSmrg 10989f299d47fSmrg# Be more Bourne compatible 10990f299d47fSmrgDUALCASE=1; export DUALCASE # for MKS sh 10991625f88beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10992f299d47fSmrg emulate sh 10993f299d47fSmrg NULLCMD=: 10994aa98702cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10995f299d47fSmrg # is contrary to our usage. Disable this feature. 10996f299d47fSmrg alias -g '${1+"$@"}'='"$@"' 10997f299d47fSmrg setopt NO_GLOB_SUBST 10998f299d47fSmrgelse 10999625f88beSmrg case `(set -o) 2>/dev/null` in #( 11000625f88beSmrg *posix*) : 11001625f88beSmrg set -o posix ;; #( 11002625f88beSmrg *) : 11003625f88beSmrg ;; 11004f299d47fSmrgesac 11005f299d47fSmrgfi 11006f299d47fSmrg 11007f299d47fSmrg 11008aa98702cSmrgas_nl=' 11009aa98702cSmrg' 11010aa98702cSmrgexport as_nl 11011aa98702cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 11012aa98702cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11013aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11014aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11015625f88beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 11016625f88beSmrg# but without wasting forks for bash or zsh. 11017625f88beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 11018625f88beSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11019625f88beSmrg as_echo='print -r --' 11020625f88beSmrg as_echo_n='print -rn --' 11021625f88beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11022aa98702cSmrg as_echo='printf %s\n' 11023aa98702cSmrg as_echo_n='printf %s' 11024aa98702cSmrgelse 11025aa98702cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11026aa98702cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11027aa98702cSmrg as_echo_n='/usr/ucb/echo -n' 11028f299d47fSmrg else 11029aa98702cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11030aa98702cSmrg as_echo_n_body='eval 11031aa98702cSmrg arg=$1; 11032625f88beSmrg case $arg in #( 11033aa98702cSmrg *"$as_nl"*) 11034aa98702cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 11035aa98702cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11036aa98702cSmrg esac; 11037aa98702cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11038aa98702cSmrg ' 11039aa98702cSmrg export as_echo_n_body 11040aa98702cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 11041f299d47fSmrg fi 11042aa98702cSmrg export as_echo_body 11043aa98702cSmrg as_echo='sh -c $as_echo_body as_echo' 11044aa98702cSmrgfi 11045aa98702cSmrg 11046aa98702cSmrg# The user is always right. 11047aa98702cSmrgif test "${PATH_SEPARATOR+set}" != set; then 11048aa98702cSmrg PATH_SEPARATOR=: 11049aa98702cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11050aa98702cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11051aa98702cSmrg PATH_SEPARATOR=';' 11052aa98702cSmrg } 11053f299d47fSmrgfi 11054f299d47fSmrg 11055f299d47fSmrg 11056f299d47fSmrg# IFS 11057f299d47fSmrg# We need space, tab and new line, in precisely that order. Quoting is 11058f299d47fSmrg# there to prevent editors from complaining about space-tab. 11059f299d47fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11060f299d47fSmrg# splitting by setting IFS to empty value.) 11061f299d47fSmrgIFS=" "" $as_nl" 11062f299d47fSmrg 11063f299d47fSmrg# Find who we are. Look in the path if we contain no directory separator. 11064625f88beSmrgas_myself= 11065625f88beSmrgcase $0 in #(( 11066f299d47fSmrg *[\\/]* ) as_myself=$0 ;; 11067f299d47fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11068f299d47fSmrgfor as_dir in $PATH 11069f299d47fSmrgdo 11070f299d47fSmrg IFS=$as_save_IFS 11071f299d47fSmrg test -z "$as_dir" && as_dir=. 11072625f88beSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11073625f88beSmrg done 11074f299d47fSmrgIFS=$as_save_IFS 11075f299d47fSmrg 11076f299d47fSmrg ;; 11077f299d47fSmrgesac 11078f299d47fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11079f299d47fSmrg# in which case we are not to be found in the path. 11080f299d47fSmrgif test "x$as_myself" = x; then 11081f299d47fSmrg as_myself=$0 11082f299d47fSmrgfi 11083f299d47fSmrgif test ! -f "$as_myself"; then 11084aa98702cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11085625f88beSmrg exit 1 11086f299d47fSmrgfi 11087f299d47fSmrg 11088625f88beSmrg# Unset variables that we do not need and which cause bugs (e.g. in 11089625f88beSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11090625f88beSmrg# suppresses any "Segmentation fault" message there. '((' could 11091625f88beSmrg# trigger a bug in pdksh 5.2.14. 11092625f88beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 11093625f88beSmrgdo eval test x\${$as_var+set} = xset \ 11094625f88beSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11095f299d47fSmrgdone 11096f299d47fSmrgPS1='$ ' 11097f299d47fSmrgPS2='> ' 11098f299d47fSmrgPS4='+ ' 11099f299d47fSmrg 11100f299d47fSmrg# NLS nuisances. 11101aa98702cSmrgLC_ALL=C 11102aa98702cSmrgexport LC_ALL 11103aa98702cSmrgLANGUAGE=C 11104aa98702cSmrgexport LANGUAGE 11105f299d47fSmrg 11106625f88beSmrg# CDPATH. 11107625f88beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11108625f88beSmrg 11109625f88beSmrg 11110625f88beSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 11111625f88beSmrg# ---------------------------------------- 11112625f88beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11113625f88beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11114625f88beSmrg# script with STATUS, using 1 if that was 0. 11115625f88beSmrgas_fn_error () 11116625f88beSmrg{ 11117625f88beSmrg as_status=$1; test $as_status -eq 0 && as_status=1 11118625f88beSmrg if test "$4"; then 11119625f88beSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11120625f88beSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11121625f88beSmrg fi 11122625f88beSmrg $as_echo "$as_me: error: $2" >&2 11123625f88beSmrg as_fn_exit $as_status 11124625f88beSmrg} # as_fn_error 11125625f88beSmrg 11126625f88beSmrg 11127625f88beSmrg# as_fn_set_status STATUS 11128625f88beSmrg# ----------------------- 11129625f88beSmrg# Set $? to STATUS, without forking. 11130625f88beSmrgas_fn_set_status () 11131625f88beSmrg{ 11132625f88beSmrg return $1 11133625f88beSmrg} # as_fn_set_status 11134625f88beSmrg 11135625f88beSmrg# as_fn_exit STATUS 11136625f88beSmrg# ----------------- 11137625f88beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11138625f88beSmrgas_fn_exit () 11139625f88beSmrg{ 11140625f88beSmrg set +e 11141625f88beSmrg as_fn_set_status $1 11142625f88beSmrg exit $1 11143625f88beSmrg} # as_fn_exit 11144625f88beSmrg 11145625f88beSmrg# as_fn_unset VAR 11146625f88beSmrg# --------------- 11147625f88beSmrg# Portably unset VAR. 11148625f88beSmrgas_fn_unset () 11149625f88beSmrg{ 11150625f88beSmrg { eval $1=; unset $1;} 11151625f88beSmrg} 11152625f88beSmrgas_unset=as_fn_unset 11153625f88beSmrg# as_fn_append VAR VALUE 11154625f88beSmrg# ---------------------- 11155625f88beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11156625f88beSmrg# advantage of any shell optimizations that allow amortized linear growth over 11157625f88beSmrg# repeated appends, instead of the typical quadratic growth present in naive 11158625f88beSmrg# implementations. 11159625f88beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11160625f88beSmrg eval 'as_fn_append () 11161625f88beSmrg { 11162625f88beSmrg eval $1+=\$2 11163625f88beSmrg }' 11164625f88beSmrgelse 11165625f88beSmrg as_fn_append () 11166625f88beSmrg { 11167625f88beSmrg eval $1=\$$1\$2 11168625f88beSmrg } 11169625f88beSmrgfi # as_fn_append 11170625f88beSmrg 11171625f88beSmrg# as_fn_arith ARG... 11172625f88beSmrg# ------------------ 11173625f88beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11174625f88beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11175625f88beSmrg# must be portable across $(()) and expr. 11176625f88beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11177625f88beSmrg eval 'as_fn_arith () 11178625f88beSmrg { 11179625f88beSmrg as_val=$(( $* )) 11180625f88beSmrg }' 11181625f88beSmrgelse 11182625f88beSmrg as_fn_arith () 11183625f88beSmrg { 11184625f88beSmrg as_val=`expr "$@" || test $? -eq 1` 11185625f88beSmrg } 11186625f88beSmrgfi # as_fn_arith 11187625f88beSmrg 11188625f88beSmrg 11189f299d47fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11190f299d47fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11191f299d47fSmrg as_expr=expr 11192f299d47fSmrgelse 11193f299d47fSmrg as_expr=false 11194f299d47fSmrgfi 11195f299d47fSmrg 11196f299d47fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11197f299d47fSmrg as_basename=basename 11198f299d47fSmrgelse 11199f299d47fSmrg as_basename=false 11200f299d47fSmrgfi 11201f299d47fSmrg 11202625f88beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11203625f88beSmrg as_dirname=dirname 11204625f88beSmrgelse 11205625f88beSmrg as_dirname=false 11206625f88beSmrgfi 11207f299d47fSmrg 11208f299d47fSmrgas_me=`$as_basename -- "$0" || 11209f299d47fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11210f299d47fSmrg X"$0" : 'X\(//\)$' \| \ 11211f299d47fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11212aa98702cSmrg$as_echo X/"$0" | 11213f299d47fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11214f299d47fSmrg s//\1/ 11215f299d47fSmrg q 11216f299d47fSmrg } 11217f299d47fSmrg /^X\/\(\/\/\)$/{ 11218f299d47fSmrg s//\1/ 11219f299d47fSmrg q 11220f299d47fSmrg } 11221f299d47fSmrg /^X\/\(\/\).*/{ 11222f299d47fSmrg s//\1/ 11223f299d47fSmrg q 11224f299d47fSmrg } 11225f299d47fSmrg s/.*/./; q'` 11226f299d47fSmrg 11227625f88beSmrg# Avoid depending upon Character Ranges. 11228625f88beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11229625f88beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11230625f88beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11231625f88beSmrgas_cr_digits='0123456789' 11232625f88beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11233f299d47fSmrg 11234f299d47fSmrgECHO_C= ECHO_N= ECHO_T= 11235625f88beSmrgcase `echo -n x` in #((((( 11236f299d47fSmrg-n*) 11237625f88beSmrg case `echo 'xy\c'` in 11238f299d47fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11239625f88beSmrg xy) ECHO_C='\c';; 11240625f88beSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11241625f88beSmrg ECHO_T=' ';; 11242f299d47fSmrg esac;; 11243f299d47fSmrg*) 11244f299d47fSmrg ECHO_N='-n';; 11245f299d47fSmrgesac 11246f299d47fSmrg 11247f299d47fSmrgrm -f conf$$ conf$$.exe conf$$.file 11248f299d47fSmrgif test -d conf$$.dir; then 11249f299d47fSmrg rm -f conf$$.dir/conf$$.file 11250f299d47fSmrgelse 11251f299d47fSmrg rm -f conf$$.dir 11252aa98702cSmrg mkdir conf$$.dir 2>/dev/null 11253aa98702cSmrgfi 11254aa98702cSmrgif (echo >conf$$.file) 2>/dev/null; then 11255aa98702cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11256aa98702cSmrg as_ln_s='ln -s' 11257aa98702cSmrg # ... but there are two gotchas: 11258aa98702cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11259aa98702cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1126005641e18Smrg # In both cases, we have to default to `cp -pR'. 11261aa98702cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1126205641e18Smrg as_ln_s='cp -pR' 11263aa98702cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11264aa98702cSmrg as_ln_s=ln 11265aa98702cSmrg else 1126605641e18Smrg as_ln_s='cp -pR' 11267aa98702cSmrg fi 11268f299d47fSmrgelse 1126905641e18Smrg as_ln_s='cp -pR' 11270f299d47fSmrgfi 11271f299d47fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11272f299d47fSmrgrmdir conf$$.dir 2>/dev/null 11273f299d47fSmrg 11274625f88beSmrg 11275625f88beSmrg# as_fn_mkdir_p 11276625f88beSmrg# ------------- 11277625f88beSmrg# Create "$as_dir" as a directory, including parents if necessary. 11278625f88beSmrgas_fn_mkdir_p () 11279625f88beSmrg{ 11280625f88beSmrg 11281625f88beSmrg case $as_dir in #( 11282625f88beSmrg -*) as_dir=./$as_dir;; 11283625f88beSmrg esac 11284625f88beSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11285625f88beSmrg as_dirs= 11286625f88beSmrg while :; do 11287625f88beSmrg case $as_dir in #( 11288625f88beSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11289625f88beSmrg *) as_qdir=$as_dir;; 11290625f88beSmrg esac 11291625f88beSmrg as_dirs="'$as_qdir' $as_dirs" 11292625f88beSmrg as_dir=`$as_dirname -- "$as_dir" || 11293625f88beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11294625f88beSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11295625f88beSmrg X"$as_dir" : 'X\(//\)$' \| \ 11296625f88beSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11297625f88beSmrg$as_echo X"$as_dir" | 11298625f88beSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11299625f88beSmrg s//\1/ 11300625f88beSmrg q 11301625f88beSmrg } 11302625f88beSmrg /^X\(\/\/\)[^/].*/{ 11303625f88beSmrg s//\1/ 11304625f88beSmrg q 11305625f88beSmrg } 11306625f88beSmrg /^X\(\/\/\)$/{ 11307625f88beSmrg s//\1/ 11308625f88beSmrg q 11309625f88beSmrg } 11310625f88beSmrg /^X\(\/\).*/{ 11311625f88beSmrg s//\1/ 11312625f88beSmrg q 11313625f88beSmrg } 11314625f88beSmrg s/.*/./; q'` 11315625f88beSmrg test -d "$as_dir" && break 11316625f88beSmrg done 11317625f88beSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11318625f88beSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11319625f88beSmrg 11320625f88beSmrg 11321625f88beSmrg} # as_fn_mkdir_p 11322f299d47fSmrgif mkdir -p . 2>/dev/null; then 11323625f88beSmrg as_mkdir_p='mkdir -p "$as_dir"' 11324f299d47fSmrgelse 11325f299d47fSmrg test -d ./-p && rmdir ./-p 11326f299d47fSmrg as_mkdir_p=false 11327f299d47fSmrgfi 11328f299d47fSmrg 1132905641e18Smrg 1133005641e18Smrg# as_fn_executable_p FILE 1133105641e18Smrg# ----------------------- 1133205641e18Smrg# Test if FILE is an executable regular file. 1133305641e18Smrgas_fn_executable_p () 1133405641e18Smrg{ 1133505641e18Smrg test -f "$1" && test -x "$1" 1133605641e18Smrg} # as_fn_executable_p 1133705641e18Smrgas_test_x='test -x' 1133805641e18Smrgas_executable_p=as_fn_executable_p 11339f299d47fSmrg 11340f299d47fSmrg# Sed expression to map a string onto a valid CPP name. 11341f299d47fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11342f299d47fSmrg 11343f299d47fSmrg# Sed expression to map a string onto a valid variable name. 11344f299d47fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11345f299d47fSmrg 11346f299d47fSmrg 11347f299d47fSmrgexec 6>&1 11348625f88beSmrg## ----------------------------------- ## 11349625f88beSmrg## Main body of $CONFIG_STATUS script. ## 11350625f88beSmrg## ----------------------------------- ## 11351625f88beSmrg_ASEOF 11352625f88beSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11353f299d47fSmrg 11354625f88beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11355625f88beSmrg# Save the log message, to keep $0 and so on meaningful, and to 11356f299d47fSmrg# report actual input values of CONFIG_FILES etc. instead of their 11357f299d47fSmrg# values after options handling. 11358f299d47fSmrgac_log=" 1135905641e18SmrgThis file was extended by xev $as_me 1.2.2, which was 1136005641e18Smrggenerated by GNU Autoconf 2.69. Invocation command line was 11361f299d47fSmrg 11362f299d47fSmrg CONFIG_FILES = $CONFIG_FILES 11363f299d47fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 11364f299d47fSmrg CONFIG_LINKS = $CONFIG_LINKS 11365f299d47fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11366f299d47fSmrg $ $0 $@ 11367f299d47fSmrg 11368f299d47fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11369f299d47fSmrg" 11370f299d47fSmrg 11371f299d47fSmrg_ACEOF 11372f299d47fSmrg 11373aa98702cSmrgcase $ac_config_files in *" 11374aa98702cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11375aa98702cSmrgesac 11376aa98702cSmrg 11377aa98702cSmrgcase $ac_config_headers in *" 11378aa98702cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11379aa98702cSmrgesac 11380aa98702cSmrg 11381aa98702cSmrg 11382aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11383f299d47fSmrg# Files that config.status was made for. 11384f299d47fSmrgconfig_files="$ac_config_files" 11385f299d47fSmrgconfig_headers="$ac_config_headers" 11386f299d47fSmrgconfig_commands="$ac_config_commands" 11387f299d47fSmrg 11388f299d47fSmrg_ACEOF 11389f299d47fSmrg 11390aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11391f299d47fSmrgac_cs_usage="\ 11392625f88beSmrg\`$as_me' instantiates files and other configuration actions 11393625f88beSmrgfrom templates according to the current configuration. Unless the files 11394625f88beSmrgand actions are specified as TAGs, all are instantiated by default. 11395f299d47fSmrg 11396625f88beSmrgUsage: $0 [OPTION]... [TAG]... 11397f299d47fSmrg 11398f299d47fSmrg -h, --help print this help, then exit 11399f299d47fSmrg -V, --version print version number and configuration settings, then exit 11400625f88beSmrg --config print configuration, then exit 11401aa98702cSmrg -q, --quiet, --silent 11402aa98702cSmrg do not print progress messages 11403f299d47fSmrg -d, --debug don't remove temporary files 11404f299d47fSmrg --recheck update $as_me by reconfiguring in the same conditions 11405aa98702cSmrg --file=FILE[:TEMPLATE] 11406aa98702cSmrg instantiate the configuration file FILE 11407aa98702cSmrg --header=FILE[:TEMPLATE] 11408aa98702cSmrg instantiate the configuration header FILE 11409f299d47fSmrg 11410f299d47fSmrgConfiguration files: 11411f299d47fSmrg$config_files 11412f299d47fSmrg 11413f299d47fSmrgConfiguration headers: 11414f299d47fSmrg$config_headers 11415f299d47fSmrg 11416f299d47fSmrgConfiguration commands: 11417f299d47fSmrg$config_commands 11418f299d47fSmrg 11419625f88beSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11420f299d47fSmrg 11421f299d47fSmrg_ACEOF 11422aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11423625f88beSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11424f299d47fSmrgac_cs_version="\\ 1142505641e18Smrgxev config.status 1.2.2 1142605641e18Smrgconfigured by $0, generated by GNU Autoconf 2.69, 11427625f88beSmrg with options \\"\$ac_cs_config\\" 11428f299d47fSmrg 1142905641e18SmrgCopyright (C) 2012 Free Software Foundation, Inc. 11430f299d47fSmrgThis config.status script is free software; the Free Software Foundation 11431f299d47fSmrggives unlimited permission to copy, distribute and modify it." 11432f299d47fSmrg 11433f299d47fSmrgac_pwd='$ac_pwd' 11434f299d47fSmrgsrcdir='$srcdir' 11435f299d47fSmrgINSTALL='$INSTALL' 11436f299d47fSmrgMKDIR_P='$MKDIR_P' 11437aa98702cSmrgAWK='$AWK' 11438aa98702cSmrgtest -n "\$AWK" || AWK=awk 11439f299d47fSmrg_ACEOF 11440f299d47fSmrg 11441aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11442aa98702cSmrg# The default lists apply if the user does not specify any file. 11443f299d47fSmrgac_need_defaults=: 11444f299d47fSmrgwhile test $# != 0 11445f299d47fSmrgdo 11446f299d47fSmrg case $1 in 11447625f88beSmrg --*=?*) 11448f299d47fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11449f299d47fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11450f299d47fSmrg ac_shift=: 11451f299d47fSmrg ;; 11452625f88beSmrg --*=) 11453625f88beSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11454625f88beSmrg ac_optarg= 11455625f88beSmrg ac_shift=: 11456625f88beSmrg ;; 11457f299d47fSmrg *) 11458f299d47fSmrg ac_option=$1 11459f299d47fSmrg ac_optarg=$2 11460f299d47fSmrg ac_shift=shift 11461f299d47fSmrg ;; 11462f299d47fSmrg esac 11463f299d47fSmrg 11464f299d47fSmrg case $ac_option in 11465f299d47fSmrg # Handling of the options. 11466f299d47fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11467f299d47fSmrg ac_cs_recheck=: ;; 11468f299d47fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11469aa98702cSmrg $as_echo "$ac_cs_version"; exit ;; 11470625f88beSmrg --config | --confi | --conf | --con | --co | --c ) 11471625f88beSmrg $as_echo "$ac_cs_config"; exit ;; 11472f299d47fSmrg --debug | --debu | --deb | --de | --d | -d ) 11473f299d47fSmrg debug=: ;; 11474f299d47fSmrg --file | --fil | --fi | --f ) 11475f299d47fSmrg $ac_shift 11476aa98702cSmrg case $ac_optarg in 11477aa98702cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11478625f88beSmrg '') as_fn_error $? "missing file argument" ;; 11479aa98702cSmrg esac 11480625f88beSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11481f299d47fSmrg ac_need_defaults=false;; 11482f299d47fSmrg --header | --heade | --head | --hea ) 11483f299d47fSmrg $ac_shift 11484aa98702cSmrg case $ac_optarg in 11485aa98702cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11486aa98702cSmrg esac 11487625f88beSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11488f299d47fSmrg ac_need_defaults=false;; 11489f299d47fSmrg --he | --h) 11490f299d47fSmrg # Conflict between --help and --header 11491625f88beSmrg as_fn_error $? "ambiguous option: \`$1' 11492625f88beSmrgTry \`$0 --help' for more information.";; 11493f299d47fSmrg --help | --hel | -h ) 11494aa98702cSmrg $as_echo "$ac_cs_usage"; exit ;; 11495f299d47fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11496f299d47fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11497f299d47fSmrg ac_cs_silent=: ;; 11498f299d47fSmrg 11499f299d47fSmrg # This is an error. 11500625f88beSmrg -*) as_fn_error $? "unrecognized option: \`$1' 11501625f88beSmrgTry \`$0 --help' for more information." ;; 11502f299d47fSmrg 11503625f88beSmrg *) as_fn_append ac_config_targets " $1" 11504f299d47fSmrg ac_need_defaults=false ;; 11505f299d47fSmrg 11506f299d47fSmrg esac 11507f299d47fSmrg shift 11508f299d47fSmrgdone 11509f299d47fSmrg 11510f299d47fSmrgac_configure_extra_args= 11511f299d47fSmrg 11512f299d47fSmrgif $ac_cs_silent; then 11513f299d47fSmrg exec 6>/dev/null 11514f299d47fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11515f299d47fSmrgfi 11516f299d47fSmrg 11517f299d47fSmrg_ACEOF 11518aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11519f299d47fSmrgif \$ac_cs_recheck; then 1152005641e18Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11521aa98702cSmrg shift 11522aa98702cSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11523aa98702cSmrg CONFIG_SHELL='$SHELL' 11524f299d47fSmrg export CONFIG_SHELL 11525aa98702cSmrg exec "\$@" 11526f299d47fSmrgfi 11527f299d47fSmrg 11528f299d47fSmrg_ACEOF 11529aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11530f299d47fSmrgexec 5>>config.log 11531f299d47fSmrg{ 11532f299d47fSmrg echo 11533f299d47fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11534f299d47fSmrg## Running $as_me. ## 11535f299d47fSmrg_ASBOX 11536aa98702cSmrg $as_echo "$ac_log" 11537f299d47fSmrg} >&5 11538f299d47fSmrg 11539f299d47fSmrg_ACEOF 11540aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11541f299d47fSmrg# 11542f299d47fSmrg# INIT-COMMANDS 11543f299d47fSmrg# 11544f299d47fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11545f299d47fSmrg 11546f299d47fSmrg_ACEOF 11547f299d47fSmrg 11548aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11549f299d47fSmrg 11550f299d47fSmrg# Handling of arguments. 11551f299d47fSmrgfor ac_config_target in $ac_config_targets 11552f299d47fSmrgdo 11553f299d47fSmrg case $ac_config_target in 11554f299d47fSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11555f299d47fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11556f299d47fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 115571a2dd139Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11558f299d47fSmrg 11559625f88beSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11560f299d47fSmrg esac 11561f299d47fSmrgdone 11562f299d47fSmrg 11563f299d47fSmrg 11564f299d47fSmrg# If the user did not use the arguments to specify the items to instantiate, 11565f299d47fSmrg# then the envvar interface is used. Set only those that are not. 11566f299d47fSmrg# We use the long form for the default assignment because of an extremely 11567f299d47fSmrg# bizarre bug on SunOS 4.1.3. 11568f299d47fSmrgif $ac_need_defaults; then 11569f299d47fSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11570f299d47fSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11571f299d47fSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11572f299d47fSmrgfi 11573f299d47fSmrg 11574f299d47fSmrg# Have a temporary directory for convenience. Make it in the build tree 11575f299d47fSmrg# simply because there is no reason against having it here, and in addition, 11576f299d47fSmrg# creating and moving files from /tmp can sometimes cause problems. 11577f299d47fSmrg# Hook for its removal unless debugging. 11578f299d47fSmrg# Note that there is a small window in which the directory will not be cleaned: 11579f299d47fSmrg# after its creation but before its name has been assigned to `$tmp'. 11580f299d47fSmrg$debug || 11581f299d47fSmrg{ 11582625f88beSmrg tmp= ac_tmp= 11583f299d47fSmrg trap 'exit_status=$? 11584625f88beSmrg : "${ac_tmp:=$tmp}" 11585625f88beSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11586f299d47fSmrg' 0 11587625f88beSmrg trap 'as_fn_exit 1' 1 2 13 15 11588f299d47fSmrg} 11589f299d47fSmrg# Create a (secure) tmp directory for tmp files. 11590f299d47fSmrg 11591f299d47fSmrg{ 11592f299d47fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11593625f88beSmrg test -d "$tmp" 11594f299d47fSmrg} || 11595f299d47fSmrg{ 11596f299d47fSmrg tmp=./conf$$-$RANDOM 11597f299d47fSmrg (umask 077 && mkdir "$tmp") 11598625f88beSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11599625f88beSmrgac_tmp=$tmp 11600f299d47fSmrg 11601aa98702cSmrg# Set up the scripts for CONFIG_FILES section. 11602aa98702cSmrg# No need to generate them if there are no CONFIG_FILES. 11603aa98702cSmrg# This happens for instance with `./config.status config.h'. 11604f299d47fSmrgif test -n "$CONFIG_FILES"; then 11605f299d47fSmrg 11606f299d47fSmrg 11607625f88beSmrgac_cr=`echo X | tr X '\015'` 11608625f88beSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 11609625f88beSmrg# But we know of no other shell where ac_cr would be empty at this 11610625f88beSmrg# point, so we can use a bashism as a fallback. 11611625f88beSmrgif test "x$ac_cr" = x; then 11612625f88beSmrg eval ac_cr=\$\'\\r\' 11613625f88beSmrgfi 11614aa98702cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11615aa98702cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11616aa98702cSmrg ac_cs_awk_cr='\\r' 11617aa98702cSmrgelse 11618aa98702cSmrg ac_cs_awk_cr=$ac_cr 11619f299d47fSmrgfi 11620f299d47fSmrg 11621625f88beSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11622f299d47fSmrg_ACEOF 11623f299d47fSmrg 11624f299d47fSmrg 11625aa98702cSmrg{ 11626aa98702cSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 11627aa98702cSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11628aa98702cSmrg echo "_ACEOF" 11629aa98702cSmrg} >conf$$subs.sh || 11630625f88beSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11631625f88beSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11632f299d47fSmrgac_delim='%!_!# ' 11633f299d47fSmrgfor ac_last_try in false false false false false :; do 11634aa98702cSmrg . ./conf$$subs.sh || 11635625f88beSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11636f299d47fSmrg 11637aa98702cSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11638aa98702cSmrg if test $ac_delim_n = $ac_delim_num; then 11639f299d47fSmrg break 11640f299d47fSmrg elif $ac_last_try; then 11641625f88beSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11642f299d47fSmrg else 11643f299d47fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11644f299d47fSmrg fi 11645f299d47fSmrgdone 11646aa98702cSmrgrm -f conf$$subs.sh 11647f299d47fSmrg 11648aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11649625f88beSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11650aa98702cSmrg_ACEOF 11651aa98702cSmrgsed -n ' 11652aa98702cSmrgh 11653aa98702cSmrgs/^/S["/; s/!.*/"]=/ 11654aa98702cSmrgp 11655aa98702cSmrgg 11656aa98702cSmrgs/^[^!]*!// 11657aa98702cSmrg:repl 11658aa98702cSmrgt repl 11659aa98702cSmrgs/'"$ac_delim"'$// 11660aa98702cSmrgt delim 11661aa98702cSmrg:nl 11662aa98702cSmrgh 11663625f88beSmrgs/\(.\{148\}\)..*/\1/ 11664aa98702cSmrgt more1 11665aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11666aa98702cSmrgp 11667aa98702cSmrgn 11668aa98702cSmrgb repl 11669aa98702cSmrg:more1 11670aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11671aa98702cSmrgp 11672aa98702cSmrgg 11673aa98702cSmrgs/.\{148\}// 11674aa98702cSmrgt nl 11675aa98702cSmrg:delim 11676aa98702cSmrgh 11677625f88beSmrgs/\(.\{148\}\)..*/\1/ 11678aa98702cSmrgt more2 11679aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 11680aa98702cSmrgp 11681aa98702cSmrgb 11682aa98702cSmrg:more2 11683aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11684aa98702cSmrgp 11685aa98702cSmrgg 11686aa98702cSmrgs/.\{148\}// 11687aa98702cSmrgt delim 11688aa98702cSmrg' <conf$$subs.awk | sed ' 11689aa98702cSmrg/^[^""]/{ 11690aa98702cSmrg N 11691aa98702cSmrg s/\n// 11692aa98702cSmrg} 11693aa98702cSmrg' >>$CONFIG_STATUS || ac_write_fail=1 11694aa98702cSmrgrm -f conf$$subs.awk 11695aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11696aa98702cSmrg_ACAWK 11697625f88beSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11698aa98702cSmrg for (key in S) S_is_set[key] = 1 11699aa98702cSmrg FS = "" 11700aa98702cSmrg 11701aa98702cSmrg} 11702aa98702cSmrg{ 11703aa98702cSmrg line = $ 0 11704aa98702cSmrg nfields = split(line, field, "@") 11705aa98702cSmrg substed = 0 11706aa98702cSmrg len = length(field[1]) 11707aa98702cSmrg for (i = 2; i < nfields; i++) { 11708aa98702cSmrg key = field[i] 11709aa98702cSmrg keylen = length(key) 11710aa98702cSmrg if (S_is_set[key]) { 11711aa98702cSmrg value = S[key] 11712aa98702cSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11713aa98702cSmrg len += length(value) + length(field[++i]) 11714aa98702cSmrg substed = 1 11715aa98702cSmrg } else 11716aa98702cSmrg len += 1 + keylen 11717aa98702cSmrg } 11718aa98702cSmrg 11719aa98702cSmrg print line 11720aa98702cSmrg} 11721f299d47fSmrg 11722aa98702cSmrg_ACAWK 11723f299d47fSmrg_ACEOF 11724aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11725aa98702cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11726aa98702cSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11727aa98702cSmrgelse 11728aa98702cSmrg cat 11729625f88beSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11730625f88beSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11731f299d47fSmrg_ACEOF 11732f299d47fSmrg 11733625f88beSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11734625f88beSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11735f299d47fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 11736f299d47fSmrg# (actually we leave an empty line to preserve line numbers). 11737f299d47fSmrgif test "x$srcdir" = x.; then 11738625f88beSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11739625f88beSmrgh 11740625f88beSmrgs/// 11741625f88beSmrgs/^/:/ 11742625f88beSmrgs/[ ]*$/:/ 11743625f88beSmrgs/:\$(srcdir):/:/g 11744625f88beSmrgs/:\${srcdir}:/:/g 11745625f88beSmrgs/:@srcdir@:/:/g 11746625f88beSmrgs/^:*// 11747f299d47fSmrgs/:*$// 11748625f88beSmrgx 11749625f88beSmrgs/\(=[ ]*\).*/\1/ 11750625f88beSmrgG 11751625f88beSmrgs/\n// 11752f299d47fSmrgs/^[^=]*=[ ]*$// 11753f299d47fSmrg}' 11754f299d47fSmrgfi 11755f299d47fSmrg 11756aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11757f299d47fSmrgfi # test -n "$CONFIG_FILES" 11758f299d47fSmrg 11759aa98702cSmrg# Set up the scripts for CONFIG_HEADERS section. 11760aa98702cSmrg# No need to generate them if there are no CONFIG_HEADERS. 11761aa98702cSmrg# This happens for instance with `./config.status Makefile'. 11762aa98702cSmrgif test -n "$CONFIG_HEADERS"; then 11763625f88beSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 11764aa98702cSmrgBEGIN { 11765aa98702cSmrg_ACEOF 11766aa98702cSmrg 11767aa98702cSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 11768aa98702cSmrg# here-document in config.status, that substitutes the proper values into 11769aa98702cSmrg# config.h.in to produce config.h. 11770aa98702cSmrg 11771aa98702cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 11772aa98702cSmrg# handling of long lines. 11773aa98702cSmrgac_delim='%!_!# ' 11774aa98702cSmrgfor ac_last_try in false false :; do 11775625f88beSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11776625f88beSmrg if test -z "$ac_tt"; then 11777aa98702cSmrg break 11778aa98702cSmrg elif $ac_last_try; then 11779625f88beSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11780aa98702cSmrg else 11781aa98702cSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11782aa98702cSmrg fi 11783aa98702cSmrgdone 11784aa98702cSmrg 11785aa98702cSmrg# For the awk script, D is an array of macro values keyed by name, 11786aa98702cSmrg# likewise P contains macro parameters if any. Preserve backslash 11787aa98702cSmrg# newline sequences. 11788aa98702cSmrg 11789aa98702cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11790aa98702cSmrgsed -n ' 11791aa98702cSmrgs/.\{148\}/&'"$ac_delim"'/g 11792aa98702cSmrgt rset 11793aa98702cSmrg:rset 11794aa98702cSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 11795aa98702cSmrgt def 11796aa98702cSmrgd 11797aa98702cSmrg:def 11798aa98702cSmrgs/\\$// 11799aa98702cSmrgt bsnl 11800aa98702cSmrgs/["\\]/\\&/g 11801aa98702cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11802aa98702cSmrgD["\1"]=" \3"/p 11803aa98702cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11804aa98702cSmrgd 11805aa98702cSmrg:bsnl 11806aa98702cSmrgs/["\\]/\\&/g 11807aa98702cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11808aa98702cSmrgD["\1"]=" \3\\\\\\n"\\/p 11809aa98702cSmrgt cont 11810aa98702cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11811aa98702cSmrgt cont 11812aa98702cSmrgd 11813aa98702cSmrg:cont 11814aa98702cSmrgn 11815aa98702cSmrgs/.\{148\}/&'"$ac_delim"'/g 11816aa98702cSmrgt clear 11817aa98702cSmrg:clear 11818aa98702cSmrgs/\\$// 11819aa98702cSmrgt bsnlc 11820aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 11821aa98702cSmrgd 11822aa98702cSmrg:bsnlc 11823aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11824aa98702cSmrgb cont 11825aa98702cSmrg' <confdefs.h | sed ' 11826aa98702cSmrgs/'"$ac_delim"'/"\\\ 11827aa98702cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 11828aa98702cSmrg 11829aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11830aa98702cSmrg for (key in D) D_is_set[key] = 1 11831aa98702cSmrg FS = "" 11832aa98702cSmrg} 11833aa98702cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11834aa98702cSmrg line = \$ 0 11835aa98702cSmrg split(line, arg, " ") 11836aa98702cSmrg if (arg[1] == "#") { 11837aa98702cSmrg defundef = arg[2] 11838aa98702cSmrg mac1 = arg[3] 11839aa98702cSmrg } else { 11840aa98702cSmrg defundef = substr(arg[1], 2) 11841aa98702cSmrg mac1 = arg[2] 11842aa98702cSmrg } 11843aa98702cSmrg split(mac1, mac2, "(") #) 11844aa98702cSmrg macro = mac2[1] 11845aa98702cSmrg prefix = substr(line, 1, index(line, defundef) - 1) 11846aa98702cSmrg if (D_is_set[macro]) { 11847aa98702cSmrg # Preserve the white space surrounding the "#". 11848aa98702cSmrg print prefix "define", macro P[macro] D[macro] 11849aa98702cSmrg next 11850aa98702cSmrg } else { 11851aa98702cSmrg # Replace #undef with comments. This is necessary, for example, 11852aa98702cSmrg # in the case of _POSIX_SOURCE, which is predefined and required 11853aa98702cSmrg # on some systems where configure will not decide to define it. 11854aa98702cSmrg if (defundef == "undef") { 11855aa98702cSmrg print "/*", prefix defundef, macro, "*/" 11856aa98702cSmrg next 11857aa98702cSmrg } 11858aa98702cSmrg } 11859aa98702cSmrg} 11860aa98702cSmrg{ print } 11861aa98702cSmrg_ACAWK 11862aa98702cSmrg_ACEOF 11863aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11864625f88beSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11865aa98702cSmrgfi # test -n "$CONFIG_HEADERS" 11866aa98702cSmrg 11867f299d47fSmrg 11868aa98702cSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11869aa98702cSmrgshift 11870aa98702cSmrgfor ac_tag 11871f299d47fSmrgdo 11872f299d47fSmrg case $ac_tag in 11873f299d47fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 11874f299d47fSmrg esac 11875f299d47fSmrg case $ac_mode$ac_tag in 11876f299d47fSmrg :[FHL]*:*);; 11877625f88beSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11878f299d47fSmrg :[FH]-) ac_tag=-:-;; 11879f299d47fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11880f299d47fSmrg esac 11881f299d47fSmrg ac_save_IFS=$IFS 11882f299d47fSmrg IFS=: 11883f299d47fSmrg set x $ac_tag 11884f299d47fSmrg IFS=$ac_save_IFS 11885f299d47fSmrg shift 11886f299d47fSmrg ac_file=$1 11887f299d47fSmrg shift 11888f299d47fSmrg 11889f299d47fSmrg case $ac_mode in 11890f299d47fSmrg :L) ac_source=$1;; 11891f299d47fSmrg :[FH]) 11892f299d47fSmrg ac_file_inputs= 11893f299d47fSmrg for ac_f 11894f299d47fSmrg do 11895f299d47fSmrg case $ac_f in 11896625f88beSmrg -) ac_f="$ac_tmp/stdin";; 11897f299d47fSmrg *) # Look for the file first in the build tree, then in the source tree 11898f299d47fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 11899f299d47fSmrg # because $ac_f cannot contain `:'. 11900f299d47fSmrg test -f "$ac_f" || 11901f299d47fSmrg case $ac_f in 11902f299d47fSmrg [\\/$]*) false;; 11903f299d47fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11904f299d47fSmrg esac || 11905625f88beSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11906f299d47fSmrg esac 11907aa98702cSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11908625f88beSmrg as_fn_append ac_file_inputs " '$ac_f'" 11909f299d47fSmrg done 11910f299d47fSmrg 11911f299d47fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 11912f299d47fSmrg # use $as_me), people would be surprised to read: 11913f299d47fSmrg # /* config.h. Generated by config.status. */ 11914aa98702cSmrg configure_input='Generated from '` 11915aa98702cSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11916aa98702cSmrg `' by configure.' 11917f299d47fSmrg if test x"$ac_file" != x-; then 11918f299d47fSmrg configure_input="$ac_file. $configure_input" 11919625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11920aa98702cSmrg$as_echo "$as_me: creating $ac_file" >&6;} 11921f299d47fSmrg fi 11922aa98702cSmrg # Neutralize special characters interpreted by sed in replacement strings. 11923aa98702cSmrg case $configure_input in #( 11924aa98702cSmrg *\&* | *\|* | *\\* ) 11925aa98702cSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 11926aa98702cSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 11927aa98702cSmrg *) ac_sed_conf_input=$configure_input;; 11928aa98702cSmrg esac 11929f299d47fSmrg 11930f299d47fSmrg case $ac_tag in 11931625f88beSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11932625f88beSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11933f299d47fSmrg esac 11934f299d47fSmrg ;; 11935f299d47fSmrg esac 11936f299d47fSmrg 11937f299d47fSmrg ac_dir=`$as_dirname -- "$ac_file" || 11938f299d47fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11939f299d47fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 11940f299d47fSmrg X"$ac_file" : 'X\(//\)$' \| \ 11941f299d47fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11942aa98702cSmrg$as_echo X"$ac_file" | 11943f299d47fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11944f299d47fSmrg s//\1/ 11945f299d47fSmrg q 11946f299d47fSmrg } 11947f299d47fSmrg /^X\(\/\/\)[^/].*/{ 11948f299d47fSmrg s//\1/ 11949f299d47fSmrg q 11950f299d47fSmrg } 11951f299d47fSmrg /^X\(\/\/\)$/{ 11952f299d47fSmrg s//\1/ 11953f299d47fSmrg q 11954f299d47fSmrg } 11955f299d47fSmrg /^X\(\/\).*/{ 11956f299d47fSmrg s//\1/ 11957f299d47fSmrg q 11958f299d47fSmrg } 11959f299d47fSmrg s/.*/./; q'` 11960625f88beSmrg as_dir="$ac_dir"; as_fn_mkdir_p 11961f299d47fSmrg ac_builddir=. 11962f299d47fSmrg 11963f299d47fSmrgcase "$ac_dir" in 11964f299d47fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11965f299d47fSmrg*) 11966aa98702cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11967f299d47fSmrg # A ".." for each directory in $ac_dir_suffix. 11968aa98702cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11969f299d47fSmrg case $ac_top_builddir_sub in 11970f299d47fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11971f299d47fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11972f299d47fSmrg esac ;; 11973f299d47fSmrgesac 11974f299d47fSmrgac_abs_top_builddir=$ac_pwd 11975f299d47fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 11976f299d47fSmrg# for backward compatibility: 11977f299d47fSmrgac_top_builddir=$ac_top_build_prefix 11978f299d47fSmrg 11979f299d47fSmrgcase $srcdir in 11980f299d47fSmrg .) # We are building in place. 11981f299d47fSmrg ac_srcdir=. 11982f299d47fSmrg ac_top_srcdir=$ac_top_builddir_sub 11983f299d47fSmrg ac_abs_top_srcdir=$ac_pwd ;; 11984f299d47fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 11985f299d47fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 11986f299d47fSmrg ac_top_srcdir=$srcdir 11987f299d47fSmrg ac_abs_top_srcdir=$srcdir ;; 11988f299d47fSmrg *) # Relative name. 11989f299d47fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11990f299d47fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 11991f299d47fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11992f299d47fSmrgesac 11993f299d47fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11994f299d47fSmrg 11995f299d47fSmrg 11996f299d47fSmrg case $ac_mode in 11997f299d47fSmrg :F) 11998f299d47fSmrg # 11999f299d47fSmrg # CONFIG_FILE 12000f299d47fSmrg # 12001f299d47fSmrg 12002f299d47fSmrg case $INSTALL in 12003f299d47fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12004f299d47fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12005f299d47fSmrg esac 12006f299d47fSmrg ac_MKDIR_P=$MKDIR_P 12007f299d47fSmrg case $MKDIR_P in 12008f299d47fSmrg [\\/$]* | ?:[\\/]* ) ;; 12009f299d47fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12010f299d47fSmrg esac 12011f299d47fSmrg_ACEOF 12012f299d47fSmrg 12013aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12014f299d47fSmrg# If the template does not know about datarootdir, expand it. 12015f299d47fSmrg# FIXME: This hack should be removed a few years after 2.60. 12016f299d47fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12017aa98702cSmrgac_sed_dataroot=' 12018aa98702cSmrg/datarootdir/ { 12019f299d47fSmrg p 12020f299d47fSmrg q 12021f299d47fSmrg} 12022f299d47fSmrg/@datadir@/p 12023f299d47fSmrg/@docdir@/p 12024f299d47fSmrg/@infodir@/p 12025f299d47fSmrg/@localedir@/p 12026625f88beSmrg/@mandir@/p' 12027aa98702cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12028f299d47fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 12029f299d47fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12030625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12031aa98702cSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12032f299d47fSmrg_ACEOF 12033aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12034f299d47fSmrg ac_datarootdir_hack=' 12035f299d47fSmrg s&@datadir@&$datadir&g 12036f299d47fSmrg s&@docdir@&$docdir&g 12037f299d47fSmrg s&@infodir@&$infodir&g 12038f299d47fSmrg s&@localedir@&$localedir&g 12039f299d47fSmrg s&@mandir@&$mandir&g 12040625f88beSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 12041f299d47fSmrgesac 12042f299d47fSmrg_ACEOF 12043f299d47fSmrg 12044f299d47fSmrg# Neutralize VPATH when `$srcdir' = `.'. 12045f299d47fSmrg# Shell code in configure.ac might set extrasub. 12046f299d47fSmrg# FIXME: do we really want to maintain this feature? 12047aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12048aa98702cSmrgac_sed_extra="$ac_vpsub 12049f299d47fSmrg$extrasub 12050f299d47fSmrg_ACEOF 12051aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12052f299d47fSmrg:t 12053f299d47fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12054aa98702cSmrgs|@configure_input@|$ac_sed_conf_input|;t t 12055f299d47fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12056aa98702cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12057f299d47fSmrgs&@srcdir@&$ac_srcdir&;t t 12058f299d47fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12059f299d47fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 12060f299d47fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12061f299d47fSmrgs&@builddir@&$ac_builddir&;t t 12062f299d47fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 12063f299d47fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12064f299d47fSmrgs&@INSTALL@&$ac_INSTALL&;t t 12065f299d47fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12066f299d47fSmrg$ac_datarootdir_hack 12067aa98702cSmrg" 12068625f88beSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12069625f88beSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12070f299d47fSmrg 12071f299d47fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12072625f88beSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12073625f88beSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12074625f88beSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12075625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12076625f88beSmrgwhich seems to be undefined. Please make sure it is defined" >&5 12077aa98702cSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12078625f88beSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12079f299d47fSmrg 12080625f88beSmrg rm -f "$ac_tmp/stdin" 12081f299d47fSmrg case $ac_file in 12082625f88beSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12083625f88beSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12084aa98702cSmrg esac \ 12085625f88beSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12086f299d47fSmrg ;; 12087f299d47fSmrg :H) 12088f299d47fSmrg # 12089f299d47fSmrg # CONFIG_HEADER 12090f299d47fSmrg # 12091f299d47fSmrg if test x"$ac_file" != x-; then 12092aa98702cSmrg { 12093aa98702cSmrg $as_echo "/* $configure_input */" \ 12094625f88beSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12095625f88beSmrg } >"$ac_tmp/config.h" \ 12096625f88beSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12097625f88beSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12098625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12099aa98702cSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 12100f299d47fSmrg else 12101aa98702cSmrg rm -f "$ac_file" 12102625f88beSmrg mv "$ac_tmp/config.h" "$ac_file" \ 12103625f88beSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12104f299d47fSmrg fi 12105f299d47fSmrg else 12106aa98702cSmrg $as_echo "/* $configure_input */" \ 12107625f88beSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12108625f88beSmrg || as_fn_error $? "could not create -" "$LINENO" 5 12109f299d47fSmrg fi 12110aa98702cSmrg# Compute "$ac_file"'s index in $config_headers. 12111aa98702cSmrg_am_arg="$ac_file" 12112f299d47fSmrg_am_stamp_count=1 12113f299d47fSmrgfor _am_header in $config_headers :; do 12114f299d47fSmrg case $_am_header in 12115f299d47fSmrg $_am_arg | $_am_arg:* ) 12116f299d47fSmrg break ;; 12117f299d47fSmrg * ) 12118f299d47fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12119f299d47fSmrg esac 12120f299d47fSmrgdone 12121f299d47fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12122f299d47fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12123f299d47fSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12124f299d47fSmrg X"$_am_arg" : 'X\(//\)$' \| \ 12125f299d47fSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12126aa98702cSmrg$as_echo X"$_am_arg" | 12127f299d47fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12128f299d47fSmrg s//\1/ 12129f299d47fSmrg q 12130f299d47fSmrg } 12131f299d47fSmrg /^X\(\/\/\)[^/].*/{ 12132f299d47fSmrg s//\1/ 12133f299d47fSmrg q 12134f299d47fSmrg } 12135f299d47fSmrg /^X\(\/\/\)$/{ 12136f299d47fSmrg s//\1/ 12137f299d47fSmrg q 12138f299d47fSmrg } 12139f299d47fSmrg /^X\(\/\).*/{ 12140f299d47fSmrg s//\1/ 12141f299d47fSmrg q 12142f299d47fSmrg } 12143f299d47fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 12144f299d47fSmrg ;; 12145f299d47fSmrg 12146625f88beSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12147aa98702cSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 12148f299d47fSmrg ;; 12149f299d47fSmrg esac 12150f299d47fSmrg 12151f299d47fSmrg 12152f299d47fSmrg case $ac_file$ac_mode in 12153aa98702cSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1215405641e18Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12155aa98702cSmrg # are listed without --file. Let's play safe and only enable the eval 12156aa98702cSmrg # if we detect the quoting. 12157aa98702cSmrg case $CONFIG_FILES in 12158aa98702cSmrg *\'*) eval set x "$CONFIG_FILES" ;; 12159aa98702cSmrg *) set x $CONFIG_FILES ;; 12160aa98702cSmrg esac 12161aa98702cSmrg shift 12162aa98702cSmrg for mf 12163aa98702cSmrg do 12164aa98702cSmrg # Strip MF so we end up with the name of the file. 12165aa98702cSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 12166aa98702cSmrg # Check whether this is an Automake generated Makefile or not. 1216705641e18Smrg # We used to match only the files named 'Makefile.in', but 12168aa98702cSmrg # some people rename them; so instead we look at the file content. 12169aa98702cSmrg # Grep'ing the first line is not enough: some people post-process 12170aa98702cSmrg # each Makefile.in and add a new line on top of each file to say so. 12171aa98702cSmrg # Grep'ing the whole file is not good either: AIX grep has a line 12172aa98702cSmrg # limit of 2048, but all sed's we know have understand at least 4000. 12173aa98702cSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12174aa98702cSmrg dirpart=`$as_dirname -- "$mf" || 12175f299d47fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12176f299d47fSmrg X"$mf" : 'X\(//\)[^/]' \| \ 12177f299d47fSmrg X"$mf" : 'X\(//\)$' \| \ 12178f299d47fSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12179aa98702cSmrg$as_echo X"$mf" | 12180f299d47fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12181f299d47fSmrg s//\1/ 12182f299d47fSmrg q 12183f299d47fSmrg } 12184f299d47fSmrg /^X\(\/\/\)[^/].*/{ 12185f299d47fSmrg s//\1/ 12186f299d47fSmrg q 12187f299d47fSmrg } 12188f299d47fSmrg /^X\(\/\/\)$/{ 12189f299d47fSmrg s//\1/ 12190f299d47fSmrg q 12191f299d47fSmrg } 12192f299d47fSmrg /^X\(\/\).*/{ 12193f299d47fSmrg s//\1/ 12194f299d47fSmrg q 12195f299d47fSmrg } 12196f299d47fSmrg s/.*/./; q'` 12197aa98702cSmrg else 12198aa98702cSmrg continue 12199aa98702cSmrg fi 12200aa98702cSmrg # Extract the definition of DEPDIR, am__include, and am__quote 1220105641e18Smrg # from the Makefile without running 'make'. 12202aa98702cSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12203aa98702cSmrg test -z "$DEPDIR" && continue 12204aa98702cSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 1220505641e18Smrg test -z "$am__include" && continue 12206aa98702cSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12207aa98702cSmrg # Find all dependency output files, they are included files with 12208aa98702cSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 12209aa98702cSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 12210aa98702cSmrg # expansion. 12211aa98702cSmrg for file in `sed -n " 12212aa98702cSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1221305641e18Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12214aa98702cSmrg # Make sure the directory exists. 12215aa98702cSmrg test -f "$dirpart/$file" && continue 12216aa98702cSmrg fdir=`$as_dirname -- "$file" || 12217f299d47fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12218f299d47fSmrg X"$file" : 'X\(//\)[^/]' \| \ 12219f299d47fSmrg X"$file" : 'X\(//\)$' \| \ 12220f299d47fSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 12221aa98702cSmrg$as_echo X"$file" | 12222f299d47fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12223f299d47fSmrg s//\1/ 12224f299d47fSmrg q 12225f299d47fSmrg } 12226f299d47fSmrg /^X\(\/\/\)[^/].*/{ 12227f299d47fSmrg s//\1/ 12228f299d47fSmrg q 12229f299d47fSmrg } 12230f299d47fSmrg /^X\(\/\/\)$/{ 12231f299d47fSmrg s//\1/ 12232f299d47fSmrg q 12233f299d47fSmrg } 12234f299d47fSmrg /^X\(\/\).*/{ 12235f299d47fSmrg s//\1/ 12236f299d47fSmrg q 12237f299d47fSmrg } 12238f299d47fSmrg s/.*/./; q'` 12239625f88beSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 12240aa98702cSmrg # echo "creating $dirpart/$file" 12241aa98702cSmrg echo '# dummy' > "$dirpart/$file" 12242aa98702cSmrg done 12243f299d47fSmrg done 12244aa98702cSmrg} 12245f299d47fSmrg ;; 12246f299d47fSmrg 12247f299d47fSmrg esac 12248f299d47fSmrgdone # for ac_tag 12249f299d47fSmrg 12250f299d47fSmrg 12251625f88beSmrgas_fn_exit 0 12252f299d47fSmrg_ACEOF 12253f299d47fSmrgac_clean_files=$ac_clean_files_save 12254f299d47fSmrg 12255aa98702cSmrgtest $ac_write_fail = 0 || 12256625f88beSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12257aa98702cSmrg 12258f299d47fSmrg 12259f299d47fSmrg# configure is writing to config.log, and then calls config.status. 12260f299d47fSmrg# config.status does its own redirection, appending to config.log. 12261f299d47fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 12262f299d47fSmrg# by configure, so config.status won't be able to write to it; its 12263f299d47fSmrg# output is simply discarded. So we exec the FD to /dev/null, 12264f299d47fSmrg# effectively closing config.log, so it can be properly (re)opened and 12265f299d47fSmrg# appended to by config.status. When coming back to configure, we 12266f299d47fSmrg# need to make the FD available again. 12267f299d47fSmrgif test "$no_create" != yes; then 12268f299d47fSmrg ac_cs_success=: 12269f299d47fSmrg ac_config_status_args= 12270f299d47fSmrg test "$silent" = yes && 12271f299d47fSmrg ac_config_status_args="$ac_config_status_args --quiet" 12272f299d47fSmrg exec 5>/dev/null 12273f299d47fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12274f299d47fSmrg exec 5>>config.log 12275f299d47fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12276f299d47fSmrg # would make configure fail if this is the last instruction. 12277625f88beSmrg $ac_cs_success || as_fn_exit 1 12278f299d47fSmrgfi 12279aa98702cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12280625f88beSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12281aa98702cSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12282aa98702cSmrgfi 12283f299d47fSmrg 12284