configure revision bdc460c5
114c0a534Smrg#! /bin/sh 214c0a534Smrg# Guess values for system-dependent variables and create Makefiles. 3bdc460c5Smrg# Generated by GNU Autoconf 2.71 for smproxy 1.0.7. 414c0a534Smrg# 5bdc460c5Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/issues>. 614c0a534Smrg# 7576bae58Smrg# 8bdc460c5Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9bdc460c5Smrg# Inc. 10576bae58Smrg# 11576bae58Smrg# 1214c0a534Smrg# This configure script is free software; the Free Software Foundation 1314c0a534Smrg# gives unlimited permission to copy, distribute and modify it. 14576bae58Smrg## -------------------- ## 15576bae58Smrg## M4sh Initialization. ## 16576bae58Smrg## -------------------- ## 1714c0a534Smrg 18bf2eeab3Smrg# Be more Bourne compatible 19bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh 20bdc460c5Smrgas_nop=: 21bdc460c5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22bdc460c5Smrgthen : 2314c0a534Smrg emulate sh 2414c0a534Smrg NULLCMD=: 25bf2eeab3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2614c0a534Smrg # is contrary to our usage. Disable this feature. 2714c0a534Smrg alias -g '${1+"$@"}'='"$@"' 28bf2eeab3Smrg setopt NO_GLOB_SUBST 29bdc460c5Smrgelse $as_nop 30576bae58Smrg case `(set -o) 2>/dev/null` in #( 31576bae58Smrg *posix*) : 32576bae58Smrg set -o posix ;; #( 33576bae58Smrg *) : 34576bae58Smrg ;; 35bf2eeab3Smrgesac 36bf2eeab3Smrgfi 37bf2eeab3Smrg 38bf2eeab3Smrg 39bdc460c5Smrg 40bdc460c5Smrg# Reset variables that may have inherited troublesome values from 41bdc460c5Smrg# the environment. 42bdc460c5Smrg 43bdc460c5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44bdc460c5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45bdc460c5Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 46bdc460c5Smrg# Quoting is to prevent editors from complaining about space-tab. 47bf2eeab3Smrgas_nl=' 48bf2eeab3Smrg' 49bf2eeab3Smrgexport as_nl 50bdc460c5SmrgIFS=" "" $as_nl" 51bdc460c5Smrg 52bdc460c5SmrgPS1='$ ' 53bdc460c5SmrgPS2='> ' 54bdc460c5SmrgPS4='+ ' 55bdc460c5Smrg 56bdc460c5Smrg# Ensure predictable behavior from utilities with locale-dependent output. 57bdc460c5SmrgLC_ALL=C 58bdc460c5Smrgexport LC_ALL 59bdc460c5SmrgLANGUAGE=C 60bdc460c5Smrgexport LANGUAGE 61bdc460c5Smrg 62bdc460c5Smrg# We cannot yet rely on "unset" to work, but we need these variables 63bdc460c5Smrg# to be unset--not just set to an empty or harmless value--now, to 64bdc460c5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65bdc460c5Smrg# also avoids known problems related to "unset" and subshell syntax 66bdc460c5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67bdc460c5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68bdc460c5Smrgdo eval test \${$as_var+y} \ 69bdc460c5Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70bdc460c5Smrgdone 71bdc460c5Smrg 72bdc460c5Smrg# Ensure that fds 0, 1, and 2 are open. 73bdc460c5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74bdc460c5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75bdc460c5Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76bf2eeab3Smrg 77bf2eeab3Smrg# The user is always right. 78bdc460c5Smrgif ${PATH_SEPARATOR+false} :; then 79bf2eeab3Smrg PATH_SEPARATOR=: 80bf2eeab3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81bf2eeab3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82bf2eeab3Smrg PATH_SEPARATOR=';' 83bf2eeab3Smrg } 8414c0a534Smrgfi 8514c0a534Smrg 8614c0a534Smrg 87bf2eeab3Smrg# Find who we are. Look in the path if we contain no directory separator. 88576bae58Smrgas_myself= 89576bae58Smrgcase $0 in #(( 90bf2eeab3Smrg *[\\/]* ) as_myself=$0 ;; 91bf2eeab3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92bf2eeab3Smrgfor as_dir in $PATH 93bf2eeab3Smrgdo 94bf2eeab3Smrg IFS=$as_save_IFS 95bdc460c5Smrg case $as_dir in #((( 96bdc460c5Smrg '') as_dir=./ ;; 97bdc460c5Smrg */) ;; 98bdc460c5Smrg *) as_dir=$as_dir/ ;; 99bdc460c5Smrg esac 100bdc460c5Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101576bae58Smrg done 102bf2eeab3SmrgIFS=$as_save_IFS 103bf2eeab3Smrg 104bf2eeab3Smrg ;; 105bf2eeab3Smrgesac 106bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107bf2eeab3Smrg# in which case we are not to be found in the path. 108bf2eeab3Smrgif test "x$as_myself" = x; then 109bf2eeab3Smrg as_myself=$0 110bf2eeab3Smrgfi 111bf2eeab3Smrgif test ! -f "$as_myself"; then 112bdc460c5Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113576bae58Smrg exit 1 114bf2eeab3Smrgfi 115bf2eeab3Smrg 116576bae58Smrg 11724047306Smrg# Use a proper internal environment variable to ensure we don't fall 11824047306Smrg # into an infinite loop, continuously re-executing ourselves. 11924047306Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 12024047306Smrg _as_can_reexec=no; export _as_can_reexec; 12124047306Smrg # We cannot yet assume a decent shell, so we have to provide a 12224047306Smrg# neutralization value for shells without unset; and this also 12324047306Smrg# works around shells that cannot unset nonexistent variables. 12424047306Smrg# Preserve -v and -x to the replacement shell. 12524047306SmrgBASH_ENV=/dev/null 12624047306SmrgENV=/dev/null 12724047306Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 12824047306Smrgcase $- in # (((( 12924047306Smrg *v*x* | *x*v* ) as_opts=-vx ;; 13024047306Smrg *v* ) as_opts=-v ;; 13124047306Smrg *x* ) as_opts=-x ;; 13224047306Smrg * ) as_opts= ;; 13324047306Smrgesac 13424047306Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 13524047306Smrg# Admittedly, this is quite paranoid, since all the known shells bail 13624047306Smrg# out after a failed `exec'. 137bdc460c5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138bdc460c5Smrgexit 255 13924047306Smrg fi 14024047306Smrg # We don't want this to propagate to other subprocesses. 14124047306Smrg { _as_can_reexec=; unset _as_can_reexec;} 142576bae58Smrgif test "x$CONFIG_SHELL" = x; then 143bdc460c5Smrg as_bourne_compatible="as_nop=: 144bdc460c5Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145bdc460c5Smrgthen : 146576bae58Smrg emulate sh 147576bae58Smrg NULLCMD=: 148576bae58Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149576bae58Smrg # is contrary to our usage. Disable this feature. 150576bae58Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 151576bae58Smrg setopt NO_GLOB_SUBST 152bdc460c5Smrgelse \$as_nop 153576bae58Smrg case \`(set -o) 2>/dev/null\` in #( 154576bae58Smrg *posix*) : 155576bae58Smrg set -o posix ;; #( 156576bae58Smrg *) : 157576bae58Smrg ;; 158576bae58Smrgesac 159576bae58Smrgfi 160576bae58Smrg" 161576bae58Smrg as_required="as_fn_return () { (exit \$1); } 162576bae58Smrgas_fn_success () { as_fn_return 0; } 163576bae58Smrgas_fn_failure () { as_fn_return 1; } 164576bae58Smrgas_fn_ret_success () { return 0; } 165576bae58Smrgas_fn_ret_failure () { return 1; } 166576bae58Smrg 167576bae58Smrgexitcode=0 168576bae58Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 169576bae58Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170576bae58Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171576bae58Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172bdc460c5Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173bdc460c5Smrgthen : 174576bae58Smrg 175bdc460c5Smrgelse \$as_nop 176576bae58Smrg exitcode=1; echo positional parameters were not saved. 177576bae58Smrgfi 17824047306Smrgtest x\$exitcode = x0 || exit 1 179bdc460c5Smrgblah=\$(echo \$(echo blah)) 180bdc460c5Smrgtest x\"\$blah\" = xblah || exit 1 18124047306Smrgtest -x / || exit 1" 182576bae58Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183576bae58Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184576bae58Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185576bae58Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186576bae58Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 187bdc460c5Smrg if (eval "$as_required") 2>/dev/null 188bdc460c5Smrgthen : 189576bae58Smrg as_have_required=yes 190bdc460c5Smrgelse $as_nop 191576bae58Smrg as_have_required=no 192576bae58Smrgfi 193bdc460c5Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194bdc460c5Smrgthen : 195576bae58Smrg 196bdc460c5Smrgelse $as_nop 197576bae58Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198576bae58Smrgas_found=false 199576bae58Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200576bae58Smrgdo 201576bae58Smrg IFS=$as_save_IFS 202bdc460c5Smrg case $as_dir in #((( 203bdc460c5Smrg '') as_dir=./ ;; 204bdc460c5Smrg */) ;; 205bdc460c5Smrg *) as_dir=$as_dir/ ;; 206bdc460c5Smrg esac 207576bae58Smrg as_found=: 208576bae58Smrg case $as_dir in #( 209576bae58Smrg /*) 210576bae58Smrg for as_base in sh bash ksh sh5; do 211576bae58Smrg # Try only shells that exist, to save several forks. 212bdc460c5Smrg as_shell=$as_dir$as_base 213576bae58Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214bdc460c5Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215bdc460c5Smrgthen : 216576bae58Smrg CONFIG_SHELL=$as_shell as_have_required=yes 217bdc460c5Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218bdc460c5Smrgthen : 219576bae58Smrg break 2 220576bae58Smrgfi 221576bae58Smrgfi 222576bae58Smrg done;; 223576bae58Smrg esac 224576bae58Smrg as_found=false 225576bae58Smrgdone 226576bae58SmrgIFS=$as_save_IFS 227bdc460c5Smrgif $as_found 228bdc460c5Smrgthen : 229bdc460c5Smrg 230bdc460c5Smrgelse $as_nop 231bdc460c5Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232bdc460c5Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233bdc460c5Smrgthen : 234bdc460c5Smrg CONFIG_SHELL=$SHELL as_have_required=yes 235bdc460c5Smrgfi 236bdc460c5Smrgfi 237576bae58Smrg 238576bae58Smrg 239bdc460c5Smrg if test "x$CONFIG_SHELL" != x 240bdc460c5Smrgthen : 24124047306Smrg export CONFIG_SHELL 24224047306Smrg # We cannot yet assume a decent shell, so we have to provide a 24324047306Smrg# neutralization value for shells without unset; and this also 24424047306Smrg# works around shells that cannot unset nonexistent variables. 24524047306Smrg# Preserve -v and -x to the replacement shell. 24624047306SmrgBASH_ENV=/dev/null 24724047306SmrgENV=/dev/null 24824047306Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24924047306Smrgcase $- in # (((( 25024047306Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25124047306Smrg *v* ) as_opts=-v ;; 25224047306Smrg *x* ) as_opts=-x ;; 25324047306Smrg * ) as_opts= ;; 25424047306Smrgesac 25524047306Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25624047306Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25724047306Smrg# out after a failed `exec'. 258bdc460c5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 25924047306Smrgexit 255 260576bae58Smrgfi 261576bae58Smrg 262bdc460c5Smrg if test x$as_have_required = xno 263bdc460c5Smrgthen : 264bdc460c5Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 265bdc460c5Smrg printf "%s\n" "$0: the shells that I found on your system." 266bdc460c5Smrg if test ${ZSH_VERSION+y} ; then 267bdc460c5Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268bdc460c5Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269576bae58Smrg else 270bdc460c5Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271bdc460c5Smrg$0: https://gitlab.freedesktop.org/xorg/app/smproxy/issues 272576bae58Smrg$0: about your system, including any error possibly output 273576bae58Smrg$0: before this message. Then install a modern shell, or 274576bae58Smrg$0: manually run the script under such a shell if you do 275576bae58Smrg$0: have one." 276576bae58Smrg fi 277576bae58Smrg exit 1 278576bae58Smrgfi 279576bae58Smrgfi 280576bae58Smrgfi 281576bae58SmrgSHELL=${CONFIG_SHELL-/bin/sh} 282576bae58Smrgexport SHELL 283576bae58Smrg# Unset more variables known to interfere with behavior of common tools. 284576bae58SmrgCLICOLOR_FORCE= GREP_OPTIONS= 285576bae58Smrgunset CLICOLOR_FORCE GREP_OPTIONS 286576bae58Smrg 287576bae58Smrg## --------------------- ## 288576bae58Smrg## M4sh Shell Functions. ## 289576bae58Smrg## --------------------- ## 290576bae58Smrg# as_fn_unset VAR 291576bae58Smrg# --------------- 292576bae58Smrg# Portably unset VAR. 293576bae58Smrgas_fn_unset () 294576bae58Smrg{ 295576bae58Smrg { eval $1=; unset $1;} 296576bae58Smrg} 297576bae58Smrgas_unset=as_fn_unset 298576bae58Smrg 299bdc460c5Smrg 300576bae58Smrg# as_fn_set_status STATUS 301576bae58Smrg# ----------------------- 302576bae58Smrg# Set $? to STATUS, without forking. 303576bae58Smrgas_fn_set_status () 304576bae58Smrg{ 305576bae58Smrg return $1 306576bae58Smrg} # as_fn_set_status 307576bae58Smrg 308576bae58Smrg# as_fn_exit STATUS 309576bae58Smrg# ----------------- 310576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311576bae58Smrgas_fn_exit () 312576bae58Smrg{ 313576bae58Smrg set +e 314576bae58Smrg as_fn_set_status $1 315576bae58Smrg exit $1 316576bae58Smrg} # as_fn_exit 317bdc460c5Smrg# as_fn_nop 318bdc460c5Smrg# --------- 319bdc460c5Smrg# Do nothing but, unlike ":", preserve the value of $?. 320bdc460c5Smrgas_fn_nop () 321bdc460c5Smrg{ 322bdc460c5Smrg return $? 323bdc460c5Smrg} 324bdc460c5Smrgas_nop=as_fn_nop 325576bae58Smrg 326576bae58Smrg# as_fn_mkdir_p 327576bae58Smrg# ------------- 328576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary. 329576bae58Smrgas_fn_mkdir_p () 330576bae58Smrg{ 331576bae58Smrg 332576bae58Smrg case $as_dir in #( 333576bae58Smrg -*) as_dir=./$as_dir;; 334576bae58Smrg esac 335576bae58Smrg test -d "$as_dir" || eval $as_mkdir_p || { 336576bae58Smrg as_dirs= 337576bae58Smrg while :; do 338576bae58Smrg case $as_dir in #( 339bdc460c5Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340576bae58Smrg *) as_qdir=$as_dir;; 341576bae58Smrg esac 342576bae58Smrg as_dirs="'$as_qdir' $as_dirs" 343576bae58Smrg as_dir=`$as_dirname -- "$as_dir" || 344576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345576bae58Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 346576bae58Smrg X"$as_dir" : 'X\(//\)$' \| \ 347576bae58Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348bdc460c5Smrgprintf "%s\n" X"$as_dir" | 349576bae58Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350576bae58Smrg s//\1/ 351576bae58Smrg q 352576bae58Smrg } 353576bae58Smrg /^X\(\/\/\)[^/].*/{ 354576bae58Smrg s//\1/ 355576bae58Smrg q 356576bae58Smrg } 357576bae58Smrg /^X\(\/\/\)$/{ 358576bae58Smrg s//\1/ 359576bae58Smrg q 360576bae58Smrg } 361576bae58Smrg /^X\(\/\).*/{ 362576bae58Smrg s//\1/ 363576bae58Smrg q 364576bae58Smrg } 365576bae58Smrg s/.*/./; q'` 366576bae58Smrg test -d "$as_dir" && break 367576bae58Smrg done 368576bae58Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 369576bae58Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370576bae58Smrg 371576bae58Smrg 372576bae58Smrg} # as_fn_mkdir_p 37324047306Smrg 37424047306Smrg# as_fn_executable_p FILE 37524047306Smrg# ----------------------- 37624047306Smrg# Test if FILE is an executable regular file. 37724047306Smrgas_fn_executable_p () 37824047306Smrg{ 37924047306Smrg test -f "$1" && test -x "$1" 38024047306Smrg} # as_fn_executable_p 381576bae58Smrg# as_fn_append VAR VALUE 382576bae58Smrg# ---------------------- 383576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 384576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over 385576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive 386576bae58Smrg# implementations. 387bdc460c5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388bdc460c5Smrgthen : 389576bae58Smrg eval 'as_fn_append () 390576bae58Smrg { 391576bae58Smrg eval $1+=\$2 392576bae58Smrg }' 393bdc460c5Smrgelse $as_nop 394576bae58Smrg as_fn_append () 395576bae58Smrg { 396576bae58Smrg eval $1=\$$1\$2 397576bae58Smrg } 398576bae58Smrgfi # as_fn_append 399576bae58Smrg 400576bae58Smrg# as_fn_arith ARG... 401576bae58Smrg# ------------------ 402576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 403576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 404576bae58Smrg# must be portable across $(()) and expr. 405bdc460c5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406bdc460c5Smrgthen : 407576bae58Smrg eval 'as_fn_arith () 408576bae58Smrg { 409576bae58Smrg as_val=$(( $* )) 410576bae58Smrg }' 411bdc460c5Smrgelse $as_nop 412576bae58Smrg as_fn_arith () 413576bae58Smrg { 414576bae58Smrg as_val=`expr "$@" || test $? -eq 1` 415576bae58Smrg } 416576bae58Smrgfi # as_fn_arith 417576bae58Smrg 418bdc460c5Smrg# as_fn_nop 419bdc460c5Smrg# --------- 420bdc460c5Smrg# Do nothing but, unlike ":", preserve the value of $?. 421bdc460c5Smrgas_fn_nop () 422bdc460c5Smrg{ 423bdc460c5Smrg return $? 424bdc460c5Smrg} 425bdc460c5Smrgas_nop=as_fn_nop 426576bae58Smrg 427576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 428576bae58Smrg# ---------------------------------------- 429576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431576bae58Smrg# script with STATUS, using 1 if that was 0. 432576bae58Smrgas_fn_error () 433576bae58Smrg{ 434576bae58Smrg as_status=$1; test $as_status -eq 0 && as_status=1 435576bae58Smrg if test "$4"; then 436576bae58Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438576bae58Smrg fi 439bdc460c5Smrg printf "%s\n" "$as_me: error: $2" >&2 440576bae58Smrg as_fn_exit $as_status 441576bae58Smrg} # as_fn_error 442576bae58Smrg 443bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 444bf2eeab3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 44514c0a534Smrg as_expr=expr 44614c0a534Smrgelse 44714c0a534Smrg as_expr=false 44814c0a534Smrgfi 44914c0a534Smrg 450bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 45114c0a534Smrg as_basename=basename 45214c0a534Smrgelse 45314c0a534Smrg as_basename=false 45414c0a534Smrgfi 45514c0a534Smrg 456576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457576bae58Smrg as_dirname=dirname 458576bae58Smrgelse 459576bae58Smrg as_dirname=false 460576bae58Smrgfi 46114c0a534Smrg 462bf2eeab3Smrgas_me=`$as_basename -- "$0" || 46314c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46414c0a534Smrg X"$0" : 'X\(//\)$' \| \ 465bf2eeab3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 466bdc460c5Smrgprintf "%s\n" X/"$0" | 467bf2eeab3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 468bf2eeab3Smrg s//\1/ 469bf2eeab3Smrg q 470bf2eeab3Smrg } 471bf2eeab3Smrg /^X\/\(\/\/\)$/{ 472bf2eeab3Smrg s//\1/ 473bf2eeab3Smrg q 474bf2eeab3Smrg } 475bf2eeab3Smrg /^X\/\(\/\).*/{ 476bf2eeab3Smrg s//\1/ 477bf2eeab3Smrg q 478bf2eeab3Smrg } 479bf2eeab3Smrg s/.*/./; q'` 48014c0a534Smrg 481576bae58Smrg# Avoid depending upon Character Ranges. 482576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 483576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 485576bae58Smrgas_cr_digits='0123456789' 486576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 48714c0a534Smrg 48814c0a534Smrg 489576bae58Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 490576bae58Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 491576bae58Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492576bae58Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493576bae58Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494576bae58Smrg sed -n ' 495576bae58Smrg p 496576bae58Smrg /[$]LINENO/= 497576bae58Smrg ' <$as_myself | 498576bae58Smrg sed ' 499576bae58Smrg s/[$]LINENO.*/&-/ 500576bae58Smrg t lineno 501576bae58Smrg b 502576bae58Smrg :lineno 503576bae58Smrg N 504576bae58Smrg :loop 505576bae58Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506576bae58Smrg t loop 507576bae58Smrg s/-\n.*// 508576bae58Smrg ' >$as_me.lineno && 509576bae58Smrg chmod +x "$as_me.lineno" || 510bdc460c5Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 51114c0a534Smrg 51224047306Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 51324047306Smrg # already done that, so ensure we don't try to do so again and fall 51424047306Smrg # in an infinite loop. This has already happened in practice. 51524047306Smrg _as_can_reexec=no; export _as_can_reexec 516576bae58Smrg # Don't try to exec as it changes $[0], causing all sort of problems 517576bae58Smrg # (the dirname of $[0] is not the place where we might find the 518576bae58Smrg # original and so on. Autoconf is especially sensitive to this). 519576bae58Smrg . "./$as_me.lineno" 520576bae58Smrg # Exit status is that of the last command. 521576bae58Smrg exit 522bf2eeab3Smrg} 52314c0a534Smrg 524bdc460c5Smrg 525bdc460c5Smrg# Determine whether it's possible to make 'echo' print without a newline. 526bdc460c5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527bdc460c5Smrg# for compatibility with existing Makefiles. 528576bae58SmrgECHO_C= ECHO_N= ECHO_T= 529576bae58Smrgcase `echo -n x` in #((((( 530576bae58Smrg-n*) 531576bae58Smrg case `echo 'xy\c'` in 532576bae58Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533576bae58Smrg xy) ECHO_C='\c';; 534576bae58Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535576bae58Smrg ECHO_T=' ';; 536576bae58Smrg esac;; 537576bae58Smrg*) 538576bae58Smrg ECHO_N='-n';; 539576bae58Smrgesac 54014c0a534Smrg 541bdc460c5Smrg# For backward compatibility with old third-party macros, we provide 542bdc460c5Smrg# the shell variables $as_echo and $as_echo_n. New code should use 543bdc460c5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544bdc460c5Smrgas_echo='printf %s\n' 545bdc460c5Smrgas_echo_n='printf %s' 546bdc460c5Smrg 547bdc460c5Smrg 548576bae58Smrgrm -f conf$$ conf$$.exe conf$$.file 549576bae58Smrgif test -d conf$$.dir; then 550576bae58Smrg rm -f conf$$.dir/conf$$.file 551576bae58Smrgelse 552576bae58Smrg rm -f conf$$.dir 553576bae58Smrg mkdir conf$$.dir 2>/dev/null 554bf2eeab3Smrgfi 555576bae58Smrgif (echo >conf$$.file) 2>/dev/null; then 556576bae58Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 557576bae58Smrg as_ln_s='ln -s' 558576bae58Smrg # ... but there are two gotchas: 559576bae58Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560576bae58Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 56124047306Smrg # In both cases, we have to default to `cp -pR'. 562576bae58Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 56324047306Smrg as_ln_s='cp -pR' 564576bae58Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 565576bae58Smrg as_ln_s=ln 566576bae58Smrg else 56724047306Smrg as_ln_s='cp -pR' 568576bae58Smrg fi 569bf2eeab3Smrgelse 57024047306Smrg as_ln_s='cp -pR' 571bf2eeab3Smrgfi 572576bae58Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573576bae58Smrgrmdir conf$$.dir 2>/dev/null 574bf2eeab3Smrg 575576bae58Smrgif mkdir -p . 2>/dev/null; then 576576bae58Smrg as_mkdir_p='mkdir -p "$as_dir"' 577576bae58Smrgelse 578576bae58Smrg test -d ./-p && rmdir ./-p 579576bae58Smrg as_mkdir_p=false 580bf2eeab3Smrgfi 581bf2eeab3Smrg 58224047306Smrgas_test_x='test -x' 58324047306Smrgas_executable_p=as_fn_executable_p 584bf2eeab3Smrg 585576bae58Smrg# Sed expression to map a string onto a valid CPP name. 586576bae58Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587bf2eeab3Smrg 588576bae58Smrg# Sed expression to map a string onto a valid variable name. 589576bae58Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590bf2eeab3Smrg 591bf2eeab3Smrg 592576bae58Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 593576bae58Smrgexec 6>&1 59414c0a534Smrg 59514c0a534Smrg# Name of the host. 596576bae58Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 59714c0a534Smrg# so uname gets run too. 59814c0a534Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 59914c0a534Smrg 60014c0a534Smrg# 60114c0a534Smrg# Initializations. 60214c0a534Smrg# 60314c0a534Smrgac_default_prefix=/usr/local 604bf2eeab3Smrgac_clean_files= 60514c0a534Smrgac_config_libobj_dir=. 606bf2eeab3SmrgLIBOBJS= 60714c0a534Smrgcross_compiling=no 60814c0a534Smrgsubdirs= 60914c0a534SmrgMFLAGS= 61014c0a534SmrgMAKEFLAGS= 61114c0a534Smrg 61214c0a534Smrg# Identity of this package. 61314c0a534SmrgPACKAGE_NAME='smproxy' 61414c0a534SmrgPACKAGE_TARNAME='smproxy' 615bdc460c5SmrgPACKAGE_VERSION='1.0.7' 616bdc460c5SmrgPACKAGE_STRING='smproxy 1.0.7' 617bdc460c5SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/smproxy/issues' 618576bae58SmrgPACKAGE_URL='' 61914c0a534Smrg 62024047306Smrgac_unique_file="Makefile.am" 621bf2eeab3Smrg# Factoring default headers for most tests. 622bf2eeab3Smrgac_includes_default="\ 623bdc460c5Smrg#include <stddef.h> 624bdc460c5Smrg#ifdef HAVE_STDIO_H 625bdc460c5Smrg# include <stdio.h> 626bf2eeab3Smrg#endif 627bdc460c5Smrg#ifdef HAVE_STDLIB_H 628bf2eeab3Smrg# include <stdlib.h> 629bf2eeab3Smrg#endif 630bf2eeab3Smrg#ifdef HAVE_STRING_H 631bf2eeab3Smrg# include <string.h> 632bf2eeab3Smrg#endif 633bf2eeab3Smrg#ifdef HAVE_INTTYPES_H 634bf2eeab3Smrg# include <inttypes.h> 635bf2eeab3Smrg#endif 636bf2eeab3Smrg#ifdef HAVE_STDINT_H 637bf2eeab3Smrg# include <stdint.h> 638bf2eeab3Smrg#endif 639bdc460c5Smrg#ifdef HAVE_STRINGS_H 640bdc460c5Smrg# include <strings.h> 641bdc460c5Smrg#endif 642bdc460c5Smrg#ifdef HAVE_SYS_TYPES_H 643bdc460c5Smrg# include <sys/types.h> 644bdc460c5Smrg#endif 645bdc460c5Smrg#ifdef HAVE_SYS_STAT_H 646bdc460c5Smrg# include <sys/stat.h> 647bdc460c5Smrg#endif 648bf2eeab3Smrg#ifdef HAVE_UNISTD_H 649bf2eeab3Smrg# include <unistd.h> 650bf2eeab3Smrg#endif" 651bf2eeab3Smrg 652bdc460c5Smrgac_header_c_list= 653bf2eeab3Smrgac_subst_vars='am__EXEEXT_FALSE 654bf2eeab3Smrgam__EXEEXT_TRUE 655bf2eeab3SmrgLTLIBOBJS 656bf2eeab3SmrgLIBOBJS 657bf2eeab3SmrgSMPROXY_LIBS 658bf2eeab3SmrgSMPROXY_CFLAGS 659576bae58SmrgMAN_SUBSTS 660576bae58SmrgXORG_MAN_PAGE 661bf2eeab3SmrgADMIN_MAN_DIR 662bf2eeab3SmrgDRIVER_MAN_DIR 663bf2eeab3SmrgMISC_MAN_DIR 664bf2eeab3SmrgFILE_MAN_DIR 665bf2eeab3SmrgLIB_MAN_DIR 666bf2eeab3SmrgAPP_MAN_DIR 667bf2eeab3SmrgADMIN_MAN_SUFFIX 668bf2eeab3SmrgDRIVER_MAN_SUFFIX 669bf2eeab3SmrgMISC_MAN_SUFFIX 670bf2eeab3SmrgFILE_MAN_SUFFIX 671bf2eeab3SmrgLIB_MAN_SUFFIX 672bf2eeab3SmrgAPP_MAN_SUFFIX 673576bae58SmrgSED 674bf2eeab3Smrghost_os 675bf2eeab3Smrghost_vendor 676bf2eeab3Smrghost_cpu 677bf2eeab3Smrghost 678bf2eeab3Smrgbuild_os 679bf2eeab3Smrgbuild_vendor 680bf2eeab3Smrgbuild_cpu 681bf2eeab3Smrgbuild 682576bae58SmrgINSTALL_CMD 683bdc460c5SmrgPKG_CONFIG_LIBDIR 684bdc460c5SmrgPKG_CONFIG_PATH 685576bae58SmrgPKG_CONFIG 686bf2eeab3SmrgCHANGELOG_CMD 6871a054510SmrgSTRICT_CFLAGS 688bf2eeab3SmrgCWARNFLAGS 68924047306SmrgBASE_CFLAGS 690bf2eeab3Smrgam__fastdepCC_FALSE 691bf2eeab3Smrgam__fastdepCC_TRUE 692bf2eeab3SmrgCCDEPMODE 69324047306Smrgam__nodep 694bf2eeab3SmrgAMDEPBACKSLASH 695bf2eeab3SmrgAMDEP_FALSE 696bf2eeab3SmrgAMDEP_TRUE 697bf2eeab3Smrgam__include 698bf2eeab3SmrgDEPDIR 699bf2eeab3SmrgOBJEXT 700bf2eeab3SmrgEXEEXT 701bf2eeab3Smrgac_ct_CC 702bf2eeab3SmrgCPPFLAGS 703bf2eeab3SmrgLDFLAGS 704bf2eeab3SmrgCFLAGS 705bf2eeab3SmrgCC 70624047306SmrgAM_BACKSLASH 70724047306SmrgAM_DEFAULT_VERBOSITY 70824047306SmrgAM_DEFAULT_V 70924047306SmrgAM_V 710bdc460c5SmrgCSCOPE 711bdc460c5SmrgETAGS 712bdc460c5SmrgCTAGS 713bf2eeab3Smrgam__untar 714bf2eeab3Smrgam__tar 715bf2eeab3SmrgAMTAR 716bf2eeab3Smrgam__leading_dot 717bf2eeab3SmrgSET_MAKE 718bf2eeab3SmrgAWK 719bf2eeab3Smrgmkdir_p 720bf2eeab3SmrgMKDIR_P 721bf2eeab3SmrgINSTALL_STRIP_PROGRAM 722bf2eeab3SmrgSTRIP 723bf2eeab3Smrginstall_sh 724bf2eeab3SmrgMAKEINFO 725bf2eeab3SmrgAUTOHEADER 726bf2eeab3SmrgAUTOMAKE 727bf2eeab3SmrgAUTOCONF 728bf2eeab3SmrgACLOCAL 729bf2eeab3SmrgVERSION 730bf2eeab3SmrgPACKAGE 731bf2eeab3SmrgCYGPATH_W 732bf2eeab3Smrgam__isrc 733bf2eeab3SmrgINSTALL_DATA 734bf2eeab3SmrgINSTALL_SCRIPT 735bf2eeab3SmrgINSTALL_PROGRAM 736bf2eeab3Smrgtarget_alias 737bf2eeab3Smrghost_alias 738bf2eeab3Smrgbuild_alias 739bf2eeab3SmrgLIBS 740bf2eeab3SmrgECHO_T 741bf2eeab3SmrgECHO_N 742bf2eeab3SmrgECHO_C 743bf2eeab3SmrgDEFS 744bf2eeab3Smrgmandir 745bf2eeab3Smrglocaledir 746bf2eeab3Smrglibdir 747bf2eeab3Smrgpsdir 748bf2eeab3Smrgpdfdir 749bf2eeab3Smrgdvidir 750bf2eeab3Smrghtmldir 751bf2eeab3Smrginfodir 752bf2eeab3Smrgdocdir 753bf2eeab3Smrgoldincludedir 754bf2eeab3Smrgincludedir 755bdc460c5Smrgrunstatedir 756bf2eeab3Smrglocalstatedir 757bf2eeab3Smrgsharedstatedir 758bf2eeab3Smrgsysconfdir 759bf2eeab3Smrgdatadir 760bf2eeab3Smrgdatarootdir 761bf2eeab3Smrglibexecdir 762bf2eeab3Smrgsbindir 763bf2eeab3Smrgbindir 764bf2eeab3Smrgprogram_transform_name 765bf2eeab3Smrgprefix 766bf2eeab3Smrgexec_prefix 767576bae58SmrgPACKAGE_URL 768bf2eeab3SmrgPACKAGE_BUGREPORT 769bf2eeab3SmrgPACKAGE_STRING 770bf2eeab3SmrgPACKAGE_VERSION 771bf2eeab3SmrgPACKAGE_TARNAME 772bf2eeab3SmrgPACKAGE_NAME 773bf2eeab3SmrgPATH_SEPARATOR 774bdc460c5SmrgSHELL 775bdc460c5Smrgam__quote' 77614c0a534Smrgac_subst_files='' 777bf2eeab3Smrgac_user_opts=' 778bf2eeab3Smrgenable_option_checking 77924047306Smrgenable_silent_rules 780bf2eeab3Smrgenable_dependency_tracking 78124047306Smrgenable_selective_werror 782bf2eeab3Smrgenable_strict_compilation 783bf2eeab3Smrg' 784bf2eeab3Smrg ac_precious_vars='build_alias 785bf2eeab3Smrghost_alias 786bf2eeab3Smrgtarget_alias 787bf2eeab3SmrgCC 788bf2eeab3SmrgCFLAGS 789bf2eeab3SmrgLDFLAGS 790bf2eeab3SmrgLIBS 791bf2eeab3SmrgCPPFLAGS 792bf2eeab3SmrgPKG_CONFIG 793bdc460c5SmrgPKG_CONFIG_PATH 794bdc460c5SmrgPKG_CONFIG_LIBDIR 795bf2eeab3SmrgSMPROXY_CFLAGS 796bf2eeab3SmrgSMPROXY_LIBS' 797bf2eeab3Smrg 79814c0a534Smrg 79914c0a534Smrg# Initialize some variables set by options. 80014c0a534Smrgac_init_help= 80114c0a534Smrgac_init_version=false 802bf2eeab3Smrgac_unrecognized_opts= 803bf2eeab3Smrgac_unrecognized_sep= 80414c0a534Smrg# The variables have the same names as the options, with 80514c0a534Smrg# dashes changed to underlines. 80614c0a534Smrgcache_file=/dev/null 80714c0a534Smrgexec_prefix=NONE 80814c0a534Smrgno_create= 80914c0a534Smrgno_recursion= 81014c0a534Smrgprefix=NONE 81114c0a534Smrgprogram_prefix=NONE 81214c0a534Smrgprogram_suffix=NONE 81314c0a534Smrgprogram_transform_name=s,x,x, 81414c0a534Smrgsilent= 81514c0a534Smrgsite= 81614c0a534Smrgsrcdir= 81714c0a534Smrgverbose= 81814c0a534Smrgx_includes=NONE 81914c0a534Smrgx_libraries=NONE 82014c0a534Smrg 82114c0a534Smrg# Installation directory options. 82214c0a534Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 82314c0a534Smrg# and all the variables that are supposed to be based on exec_prefix 82414c0a534Smrg# by default will actually change. 82514c0a534Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 826bf2eeab3Smrg# (The list follows the same order as the GNU Coding Standards.) 82714c0a534Smrgbindir='${exec_prefix}/bin' 82814c0a534Smrgsbindir='${exec_prefix}/sbin' 82914c0a534Smrglibexecdir='${exec_prefix}/libexec' 830bf2eeab3Smrgdatarootdir='${prefix}/share' 831bf2eeab3Smrgdatadir='${datarootdir}' 83214c0a534Smrgsysconfdir='${prefix}/etc' 83314c0a534Smrgsharedstatedir='${prefix}/com' 83414c0a534Smrglocalstatedir='${prefix}/var' 835bdc460c5Smrgrunstatedir='${localstatedir}/run' 83614c0a534Smrgincludedir='${prefix}/include' 83714c0a534Smrgoldincludedir='/usr/include' 838bf2eeab3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839bf2eeab3Smrginfodir='${datarootdir}/info' 840bf2eeab3Smrghtmldir='${docdir}' 841bf2eeab3Smrgdvidir='${docdir}' 842bf2eeab3Smrgpdfdir='${docdir}' 843bf2eeab3Smrgpsdir='${docdir}' 844bf2eeab3Smrglibdir='${exec_prefix}/lib' 845bf2eeab3Smrglocaledir='${datarootdir}/locale' 846bf2eeab3Smrgmandir='${datarootdir}/man' 84714c0a534Smrg 84814c0a534Smrgac_prev= 849bf2eeab3Smrgac_dashdash= 85014c0a534Smrgfor ac_option 85114c0a534Smrgdo 85214c0a534Smrg # If the previous option needs an argument, assign it. 85314c0a534Smrg if test -n "$ac_prev"; then 854bf2eeab3Smrg eval $ac_prev=\$ac_option 85514c0a534Smrg ac_prev= 85614c0a534Smrg continue 85714c0a534Smrg fi 85814c0a534Smrg 859bf2eeab3Smrg case $ac_option in 860576bae58Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861576bae58Smrg *=) ac_optarg= ;; 862576bae58Smrg *) ac_optarg=yes ;; 863bf2eeab3Smrg esac 86414c0a534Smrg 865bf2eeab3Smrg case $ac_dashdash$ac_option in 866bf2eeab3Smrg --) 867bf2eeab3Smrg ac_dashdash=yes ;; 86814c0a534Smrg 86914c0a534Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 87014c0a534Smrg ac_prev=bindir ;; 87114c0a534Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 87214c0a534Smrg bindir=$ac_optarg ;; 87314c0a534Smrg 87414c0a534Smrg -build | --build | --buil | --bui | --bu) 87514c0a534Smrg ac_prev=build_alias ;; 87614c0a534Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 87714c0a534Smrg build_alias=$ac_optarg ;; 87814c0a534Smrg 87914c0a534Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 88014c0a534Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88114c0a534Smrg ac_prev=cache_file ;; 88214c0a534Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 88314c0a534Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 88414c0a534Smrg cache_file=$ac_optarg ;; 88514c0a534Smrg 88614c0a534Smrg --config-cache | -C) 88714c0a534Smrg cache_file=config.cache ;; 88814c0a534Smrg 889bf2eeab3Smrg -datadir | --datadir | --datadi | --datad) 89014c0a534Smrg ac_prev=datadir ;; 891bf2eeab3Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 89214c0a534Smrg datadir=$ac_optarg ;; 89314c0a534Smrg 894bf2eeab3Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895bf2eeab3Smrg | --dataroo | --dataro | --datar) 896bf2eeab3Smrg ac_prev=datarootdir ;; 897bf2eeab3Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898bf2eeab3Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899bf2eeab3Smrg datarootdir=$ac_optarg ;; 900bf2eeab3Smrg 90114c0a534Smrg -disable-* | --disable-*) 902bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 90314c0a534Smrg # Reject names that are not valid shell variable names. 904bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905bdc460c5Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 906bf2eeab3Smrg ac_useropt_orig=$ac_useropt 907bdc460c5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908bf2eeab3Smrg case $ac_user_opts in 909bf2eeab3Smrg *" 910bf2eeab3Smrg"enable_$ac_useropt" 911bf2eeab3Smrg"*) ;; 912bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913bf2eeab3Smrg ac_unrecognized_sep=', ';; 914bf2eeab3Smrg esac 915bf2eeab3Smrg eval enable_$ac_useropt=no ;; 916bf2eeab3Smrg 917bf2eeab3Smrg -docdir | --docdir | --docdi | --doc | --do) 918bf2eeab3Smrg ac_prev=docdir ;; 919bf2eeab3Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920bf2eeab3Smrg docdir=$ac_optarg ;; 921bf2eeab3Smrg 922bf2eeab3Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923bf2eeab3Smrg ac_prev=dvidir ;; 924bf2eeab3Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925bf2eeab3Smrg dvidir=$ac_optarg ;; 92614c0a534Smrg 92714c0a534Smrg -enable-* | --enable-*) 928bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 92914c0a534Smrg # Reject names that are not valid shell variable names. 930bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931bdc460c5Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 932bf2eeab3Smrg ac_useropt_orig=$ac_useropt 933bdc460c5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934bf2eeab3Smrg case $ac_user_opts in 935bf2eeab3Smrg *" 936bf2eeab3Smrg"enable_$ac_useropt" 937bf2eeab3Smrg"*) ;; 938bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939bf2eeab3Smrg ac_unrecognized_sep=', ';; 94014c0a534Smrg esac 941bf2eeab3Smrg eval enable_$ac_useropt=\$ac_optarg ;; 94214c0a534Smrg 94314c0a534Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 94414c0a534Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 94514c0a534Smrg | --exec | --exe | --ex) 94614c0a534Smrg ac_prev=exec_prefix ;; 94714c0a534Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 94814c0a534Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 94914c0a534Smrg | --exec=* | --exe=* | --ex=*) 95014c0a534Smrg exec_prefix=$ac_optarg ;; 95114c0a534Smrg 95214c0a534Smrg -gas | --gas | --ga | --g) 95314c0a534Smrg # Obsolete; use --with-gas. 95414c0a534Smrg with_gas=yes ;; 95514c0a534Smrg 95614c0a534Smrg -help | --help | --hel | --he | -h) 95714c0a534Smrg ac_init_help=long ;; 95814c0a534Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 95914c0a534Smrg ac_init_help=recursive ;; 96014c0a534Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 96114c0a534Smrg ac_init_help=short ;; 96214c0a534Smrg 96314c0a534Smrg -host | --host | --hos | --ho) 96414c0a534Smrg ac_prev=host_alias ;; 96514c0a534Smrg -host=* | --host=* | --hos=* | --ho=*) 96614c0a534Smrg host_alias=$ac_optarg ;; 96714c0a534Smrg 968bf2eeab3Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969bf2eeab3Smrg ac_prev=htmldir ;; 970bf2eeab3Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971bf2eeab3Smrg | --ht=*) 972bf2eeab3Smrg htmldir=$ac_optarg ;; 973bf2eeab3Smrg 97414c0a534Smrg -includedir | --includedir | --includedi | --included | --include \ 97514c0a534Smrg | --includ | --inclu | --incl | --inc) 97614c0a534Smrg ac_prev=includedir ;; 97714c0a534Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 97814c0a534Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 97914c0a534Smrg includedir=$ac_optarg ;; 98014c0a534Smrg 98114c0a534Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 98214c0a534Smrg ac_prev=infodir ;; 98314c0a534Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 98414c0a534Smrg infodir=$ac_optarg ;; 98514c0a534Smrg 98614c0a534Smrg -libdir | --libdir | --libdi | --libd) 98714c0a534Smrg ac_prev=libdir ;; 98814c0a534Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 98914c0a534Smrg libdir=$ac_optarg ;; 99014c0a534Smrg 99114c0a534Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 99214c0a534Smrg | --libexe | --libex | --libe) 99314c0a534Smrg ac_prev=libexecdir ;; 99414c0a534Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 99514c0a534Smrg | --libexe=* | --libex=* | --libe=*) 99614c0a534Smrg libexecdir=$ac_optarg ;; 99714c0a534Smrg 998bf2eeab3Smrg -localedir | --localedir | --localedi | --localed | --locale) 999bf2eeab3Smrg ac_prev=localedir ;; 1000bf2eeab3Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001bf2eeab3Smrg localedir=$ac_optarg ;; 1002bf2eeab3Smrg 100314c0a534Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004bf2eeab3Smrg | --localstate | --localstat | --localsta | --localst | --locals) 100514c0a534Smrg ac_prev=localstatedir ;; 100614c0a534Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007bf2eeab3Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 100814c0a534Smrg localstatedir=$ac_optarg ;; 100914c0a534Smrg 101014c0a534Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 101114c0a534Smrg ac_prev=mandir ;; 101214c0a534Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 101314c0a534Smrg mandir=$ac_optarg ;; 101414c0a534Smrg 101514c0a534Smrg -nfp | --nfp | --nf) 101614c0a534Smrg # Obsolete; use --without-fp. 101714c0a534Smrg with_fp=no ;; 101814c0a534Smrg 101914c0a534Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 102014c0a534Smrg | --no-cr | --no-c | -n) 102114c0a534Smrg no_create=yes ;; 102214c0a534Smrg 102314c0a534Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 102414c0a534Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 102514c0a534Smrg no_recursion=yes ;; 102614c0a534Smrg 102714c0a534Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 102814c0a534Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 102914c0a534Smrg | --oldin | --oldi | --old | --ol | --o) 103014c0a534Smrg ac_prev=oldincludedir ;; 103114c0a534Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 103214c0a534Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 103314c0a534Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 103414c0a534Smrg oldincludedir=$ac_optarg ;; 103514c0a534Smrg 103614c0a534Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 103714c0a534Smrg ac_prev=prefix ;; 103814c0a534Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 103914c0a534Smrg prefix=$ac_optarg ;; 104014c0a534Smrg 104114c0a534Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 104214c0a534Smrg | --program-pre | --program-pr | --program-p) 104314c0a534Smrg ac_prev=program_prefix ;; 104414c0a534Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 104514c0a534Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 104614c0a534Smrg program_prefix=$ac_optarg ;; 104714c0a534Smrg 104814c0a534Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 104914c0a534Smrg | --program-suf | --program-su | --program-s) 105014c0a534Smrg ac_prev=program_suffix ;; 105114c0a534Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 105214c0a534Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 105314c0a534Smrg program_suffix=$ac_optarg ;; 105414c0a534Smrg 105514c0a534Smrg -program-transform-name | --program-transform-name \ 105614c0a534Smrg | --program-transform-nam | --program-transform-na \ 105714c0a534Smrg | --program-transform-n | --program-transform- \ 105814c0a534Smrg | --program-transform | --program-transfor \ 105914c0a534Smrg | --program-transfo | --program-transf \ 106014c0a534Smrg | --program-trans | --program-tran \ 106114c0a534Smrg | --progr-tra | --program-tr | --program-t) 106214c0a534Smrg ac_prev=program_transform_name ;; 106314c0a534Smrg -program-transform-name=* | --program-transform-name=* \ 106414c0a534Smrg | --program-transform-nam=* | --program-transform-na=* \ 106514c0a534Smrg | --program-transform-n=* | --program-transform-=* \ 106614c0a534Smrg | --program-transform=* | --program-transfor=* \ 106714c0a534Smrg | --program-transfo=* | --program-transf=* \ 106814c0a534Smrg | --program-trans=* | --program-tran=* \ 106914c0a534Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 107014c0a534Smrg program_transform_name=$ac_optarg ;; 107114c0a534Smrg 1072bf2eeab3Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073bf2eeab3Smrg ac_prev=pdfdir ;; 1074bf2eeab3Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075bf2eeab3Smrg pdfdir=$ac_optarg ;; 1076bf2eeab3Smrg 1077bf2eeab3Smrg -psdir | --psdir | --psdi | --psd | --ps) 1078bf2eeab3Smrg ac_prev=psdir ;; 1079bf2eeab3Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080bf2eeab3Smrg psdir=$ac_optarg ;; 1081bf2eeab3Smrg 108214c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 108314c0a534Smrg | -silent | --silent | --silen | --sile | --sil) 108414c0a534Smrg silent=yes ;; 108514c0a534Smrg 1086bdc460c5Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087bdc460c5Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 1088bdc460c5Smrg | --run | --ru | --r) 1089bdc460c5Smrg ac_prev=runstatedir ;; 1090bdc460c5Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091bdc460c5Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092bdc460c5Smrg | --run=* | --ru=* | --r=*) 1093bdc460c5Smrg runstatedir=$ac_optarg ;; 1094bdc460c5Smrg 109514c0a534Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 109614c0a534Smrg ac_prev=sbindir ;; 109714c0a534Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 109814c0a534Smrg | --sbi=* | --sb=*) 109914c0a534Smrg sbindir=$ac_optarg ;; 110014c0a534Smrg 110114c0a534Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 110214c0a534Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 110314c0a534Smrg | --sharedst | --shareds | --shared | --share | --shar \ 110414c0a534Smrg | --sha | --sh) 110514c0a534Smrg ac_prev=sharedstatedir ;; 110614c0a534Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 110714c0a534Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 110814c0a534Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 110914c0a534Smrg | --sha=* | --sh=*) 111014c0a534Smrg sharedstatedir=$ac_optarg ;; 111114c0a534Smrg 111214c0a534Smrg -site | --site | --sit) 111314c0a534Smrg ac_prev=site ;; 111414c0a534Smrg -site=* | --site=* | --sit=*) 111514c0a534Smrg site=$ac_optarg ;; 111614c0a534Smrg 111714c0a534Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 111814c0a534Smrg ac_prev=srcdir ;; 111914c0a534Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 112014c0a534Smrg srcdir=$ac_optarg ;; 112114c0a534Smrg 112214c0a534Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 112314c0a534Smrg | --syscon | --sysco | --sysc | --sys | --sy) 112414c0a534Smrg ac_prev=sysconfdir ;; 112514c0a534Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 112614c0a534Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 112714c0a534Smrg sysconfdir=$ac_optarg ;; 112814c0a534Smrg 112914c0a534Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 113014c0a534Smrg ac_prev=target_alias ;; 113114c0a534Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 113214c0a534Smrg target_alias=$ac_optarg ;; 113314c0a534Smrg 113414c0a534Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 113514c0a534Smrg verbose=yes ;; 113614c0a534Smrg 113714c0a534Smrg -version | --version | --versio | --versi | --vers | -V) 113814c0a534Smrg ac_init_version=: ;; 113914c0a534Smrg 114014c0a534Smrg -with-* | --with-*) 1141bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 114214c0a534Smrg # Reject names that are not valid shell variable names. 1143bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144bdc460c5Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1145bf2eeab3Smrg ac_useropt_orig=$ac_useropt 1146bdc460c5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147bf2eeab3Smrg case $ac_user_opts in 1148bf2eeab3Smrg *" 1149bf2eeab3Smrg"with_$ac_useropt" 1150bf2eeab3Smrg"*) ;; 1151bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152bf2eeab3Smrg ac_unrecognized_sep=', ';; 115314c0a534Smrg esac 1154bf2eeab3Smrg eval with_$ac_useropt=\$ac_optarg ;; 115514c0a534Smrg 115614c0a534Smrg -without-* | --without-*) 1157bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 115814c0a534Smrg # Reject names that are not valid shell variable names. 1159bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160bdc460c5Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1161bf2eeab3Smrg ac_useropt_orig=$ac_useropt 1162bdc460c5Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163bf2eeab3Smrg case $ac_user_opts in 1164bf2eeab3Smrg *" 1165bf2eeab3Smrg"with_$ac_useropt" 1166bf2eeab3Smrg"*) ;; 1167bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168bf2eeab3Smrg ac_unrecognized_sep=', ';; 1169bf2eeab3Smrg esac 1170bf2eeab3Smrg eval with_$ac_useropt=no ;; 117114c0a534Smrg 117214c0a534Smrg --x) 117314c0a534Smrg # Obsolete; use --with-x. 117414c0a534Smrg with_x=yes ;; 117514c0a534Smrg 117614c0a534Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 117714c0a534Smrg | --x-incl | --x-inc | --x-in | --x-i) 117814c0a534Smrg ac_prev=x_includes ;; 117914c0a534Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 118014c0a534Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 118114c0a534Smrg x_includes=$ac_optarg ;; 118214c0a534Smrg 118314c0a534Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 118414c0a534Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 118514c0a534Smrg ac_prev=x_libraries ;; 118614c0a534Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 118714c0a534Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 118814c0a534Smrg x_libraries=$ac_optarg ;; 118914c0a534Smrg 1190576bae58Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191576bae58SmrgTry \`$0 --help' for more information" 119214c0a534Smrg ;; 119314c0a534Smrg 119414c0a534Smrg *=*) 119514c0a534Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 119614c0a534Smrg # Reject names that are not valid shell variable names. 1197576bae58Smrg case $ac_envvar in #( 1198576bae58Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199576bae58Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200576bae58Smrg esac 1201bf2eeab3Smrg eval $ac_envvar=\$ac_optarg 120214c0a534Smrg export $ac_envvar ;; 120314c0a534Smrg 120414c0a534Smrg *) 120514c0a534Smrg # FIXME: should be removed in autoconf 3.0. 1206bdc460c5Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 120714c0a534Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208bdc460c5Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209576bae58Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 121014c0a534Smrg ;; 121114c0a534Smrg 121214c0a534Smrg esac 121314c0a534Smrgdone 121414c0a534Smrg 121514c0a534Smrgif test -n "$ac_prev"; then 121614c0a534Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217576bae58Smrg as_fn_error $? "missing argument to $ac_option" 121814c0a534Smrgfi 121914c0a534Smrg 1220bf2eeab3Smrgif test -n "$ac_unrecognized_opts"; then 1221bf2eeab3Smrg case $enable_option_checking in 1222bf2eeab3Smrg no) ;; 1223576bae58Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224bdc460c5Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 122514c0a534Smrg esac 1226bf2eeab3Smrgfi 122714c0a534Smrg 1228bf2eeab3Smrg# Check all directory arguments for consistency. 1229bf2eeab3Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230bf2eeab3Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1231bf2eeab3Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232bdc460c5Smrg libdir localedir mandir runstatedir 123314c0a534Smrgdo 1234bf2eeab3Smrg eval ac_val=\$$ac_var 1235bf2eeab3Smrg # Remove trailing slashes. 123614c0a534Smrg case $ac_val in 1237bf2eeab3Smrg */ ) 1238bf2eeab3Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239bf2eeab3Smrg eval $ac_var=\$ac_val;; 1240bf2eeab3Smrg esac 1241bf2eeab3Smrg # Be sure to have absolute directory names. 1242bf2eeab3Smrg case $ac_val in 1243bf2eeab3Smrg [\\/$]* | ?:[\\/]* ) continue;; 1244bf2eeab3Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 124514c0a534Smrg esac 1246576bae58Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 124714c0a534Smrgdone 124814c0a534Smrg 124914c0a534Smrg# There might be people who depend on the old broken behavior: `$host' 125014c0a534Smrg# used to hold the argument of --host etc. 125114c0a534Smrg# FIXME: To remove some day. 125214c0a534Smrgbuild=$build_alias 125314c0a534Smrghost=$host_alias 125414c0a534Smrgtarget=$target_alias 125514c0a534Smrg 125614c0a534Smrg# FIXME: To remove some day. 125714c0a534Smrgif test "x$host_alias" != x; then 125814c0a534Smrg if test "x$build_alias" = x; then 125914c0a534Smrg cross_compiling=maybe 126014c0a534Smrg elif test "x$build_alias" != "x$host_alias"; then 126114c0a534Smrg cross_compiling=yes 126214c0a534Smrg fi 126314c0a534Smrgfi 126414c0a534Smrg 126514c0a534Smrgac_tool_prefix= 126614c0a534Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 126714c0a534Smrg 126814c0a534Smrgtest "$silent" = yes && exec 6>/dev/null 126914c0a534Smrg 127014c0a534Smrg 1271bf2eeab3Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1272bf2eeab3Smrgac_ls_di=`ls -di .` && 1273bf2eeab3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274576bae58Smrg as_fn_error $? "working directory cannot be determined" 1275bf2eeab3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276576bae58Smrg as_fn_error $? "pwd does not report name of working directory" 1277bf2eeab3Smrg 1278bf2eeab3Smrg 1279bf2eeab3Smrg# Find the source files, if location was not specified. 1280bf2eeab3Smrgif test -z "$srcdir"; then 128114c0a534Smrg ac_srcdir_defaulted=yes 1282bf2eeab3Smrg # Try the directory containing this script, then the parent directory. 1283bf2eeab3Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1284bf2eeab3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285bf2eeab3Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1286bf2eeab3Smrg X"$as_myself" : 'X\(//\)$' \| \ 1287bf2eeab3Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288bdc460c5Smrgprintf "%s\n" X"$as_myself" | 1289bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290bf2eeab3Smrg s//\1/ 1291bf2eeab3Smrg q 1292bf2eeab3Smrg } 1293bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 1294bf2eeab3Smrg s//\1/ 1295bf2eeab3Smrg q 1296bf2eeab3Smrg } 1297bf2eeab3Smrg /^X\(\/\/\)$/{ 1298bf2eeab3Smrg s//\1/ 1299bf2eeab3Smrg q 1300bf2eeab3Smrg } 1301bf2eeab3Smrg /^X\(\/\).*/{ 1302bf2eeab3Smrg s//\1/ 1303bf2eeab3Smrg q 1304bf2eeab3Smrg } 1305bf2eeab3Smrg s/.*/./; q'` 130614c0a534Smrg srcdir=$ac_confdir 1307bf2eeab3Smrg if test ! -r "$srcdir/$ac_unique_file"; then 130814c0a534Smrg srcdir=.. 130914c0a534Smrg fi 131014c0a534Smrgelse 131114c0a534Smrg ac_srcdir_defaulted=no 131214c0a534Smrgfi 1313bf2eeab3Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1314bf2eeab3Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315576bae58Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 131614c0a534Smrgfi 1317bf2eeab3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318bf2eeab3Smrgac_abs_confdir=`( 1319576bae58Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320bf2eeab3Smrg pwd)` 1321bf2eeab3Smrg# When building in place, set srcdir=. 1322bf2eeab3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1323bf2eeab3Smrg srcdir=. 1324bf2eeab3Smrgfi 1325bf2eeab3Smrg# Remove unnecessary trailing slashes from srcdir. 1326bf2eeab3Smrg# Double slashes in file names in object file debugging info 1327bf2eeab3Smrg# mess up M-x gdb in Emacs. 1328bf2eeab3Smrgcase $srcdir in 1329bf2eeab3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330bf2eeab3Smrgesac 1331bf2eeab3Smrgfor ac_var in $ac_precious_vars; do 1332bf2eeab3Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333bf2eeab3Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1334bf2eeab3Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335bf2eeab3Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336bf2eeab3Smrgdone 133714c0a534Smrg 133814c0a534Smrg# 133914c0a534Smrg# Report the --help message. 134014c0a534Smrg# 134114c0a534Smrgif test "$ac_init_help" = "long"; then 134214c0a534Smrg # Omit some internal or obsolete options to make the list less imposing. 134314c0a534Smrg # This message is too long to be a string in the A/UX 3.1 sh. 134414c0a534Smrg cat <<_ACEOF 1345bdc460c5Smrg\`configure' configures smproxy 1.0.7 to adapt to many kinds of systems. 134614c0a534Smrg 134714c0a534SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 134814c0a534Smrg 134914c0a534SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 135014c0a534SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 135114c0a534Smrg 135214c0a534SmrgDefaults for the options are specified in brackets. 135314c0a534Smrg 135414c0a534SmrgConfiguration: 135514c0a534Smrg -h, --help display this help and exit 135614c0a534Smrg --help=short display options specific to this package 135714c0a534Smrg --help=recursive display the short help of all the included packages 135814c0a534Smrg -V, --version display version information and exit 1359576bae58Smrg -q, --quiet, --silent do not print \`checking ...' messages 136014c0a534Smrg --cache-file=FILE cache test results in FILE [disabled] 136114c0a534Smrg -C, --config-cache alias for \`--cache-file=config.cache' 136214c0a534Smrg -n, --no-create do not create output files 136314c0a534Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 136414c0a534Smrg 136514c0a534SmrgInstallation directories: 136614c0a534Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1367bf2eeab3Smrg [$ac_default_prefix] 136814c0a534Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369bf2eeab3Smrg [PREFIX] 137014c0a534Smrg 137114c0a534SmrgBy default, \`make install' will install all the files in 137214c0a534Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 137314c0a534Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 137414c0a534Smrgfor instance \`--prefix=\$HOME'. 137514c0a534Smrg 137614c0a534SmrgFor better control, use the options below. 137714c0a534Smrg 137814c0a534SmrgFine tuning of the installation directories: 1379bf2eeab3Smrg --bindir=DIR user executables [EPREFIX/bin] 1380bf2eeab3Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1381bf2eeab3Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1382bf2eeab3Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383bf2eeab3Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384bf2eeab3Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385bdc460c5Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386bf2eeab3Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1387bf2eeab3Smrg --includedir=DIR C header files [PREFIX/include] 1388bf2eeab3Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389bf2eeab3Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390bf2eeab3Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391bf2eeab3Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1392bf2eeab3Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393bf2eeab3Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1394bf2eeab3Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy] 1395bf2eeab3Smrg --htmldir=DIR html documentation [DOCDIR] 1396bf2eeab3Smrg --dvidir=DIR dvi documentation [DOCDIR] 1397bf2eeab3Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1398bf2eeab3Smrg --psdir=DIR ps documentation [DOCDIR] 139914c0a534Smrg_ACEOF 140014c0a534Smrg 140114c0a534Smrg cat <<\_ACEOF 140214c0a534Smrg 140314c0a534SmrgProgram names: 140414c0a534Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 140514c0a534Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 140614c0a534Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 140714c0a534Smrg 140814c0a534SmrgSystem types: 140914c0a534Smrg --build=BUILD configure for building on BUILD [guessed] 141014c0a534Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 141114c0a534Smrg_ACEOF 141214c0a534Smrgfi 141314c0a534Smrg 141414c0a534Smrgif test -n "$ac_init_help"; then 141514c0a534Smrg case $ac_init_help in 1416bdc460c5Smrg short | recursive ) echo "Configuration of smproxy 1.0.7:";; 141714c0a534Smrg esac 141814c0a534Smrg cat <<\_ACEOF 141914c0a534Smrg 142014c0a534SmrgOptional Features: 1421bf2eeab3Smrg --disable-option-checking ignore unrecognized --enable/--with options 142214c0a534Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 142314c0a534Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 142424047306Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 142524047306Smrg --disable-silent-rules verbose build output (undo: "make V=0") 142624047306Smrg --enable-dependency-tracking 142724047306Smrg do not reject slow dependency extractors 142824047306Smrg --disable-dependency-tracking 142924047306Smrg speeds up one-time build 143024047306Smrg --disable-selective-werror 143124047306Smrg Turn off selective compiler errors. (default: 143224047306Smrg enabled) 1433bf2eeab3Smrg --enable-strict-compilation 1434bf2eeab3Smrg Enable all warnings from compiler and make them 1435bf2eeab3Smrg errors (default: disabled) 143614c0a534Smrg 143714c0a534SmrgSome influential environment variables: 143814c0a534Smrg CC C compiler command 143914c0a534Smrg CFLAGS C compiler flags 144014c0a534Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 144114c0a534Smrg nonstandard directory <lib dir> 1442bf2eeab3Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1443576bae58Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444bf2eeab3Smrg you have headers in a nonstandard directory <include dir> 144514c0a534Smrg PKG_CONFIG path to pkg-config utility 1446bdc460c5Smrg PKG_CONFIG_PATH 1447bdc460c5Smrg directories to add to pkg-config's search path 1448bdc460c5Smrg PKG_CONFIG_LIBDIR 1449bdc460c5Smrg path overriding pkg-config's built-in search path 145014c0a534Smrg SMPROXY_CFLAGS 145114c0a534Smrg C compiler flags for SMPROXY, overriding pkg-config 145214c0a534Smrg SMPROXY_LIBS 145314c0a534Smrg linker flags for SMPROXY, overriding pkg-config 145414c0a534Smrg 145514c0a534SmrgUse these variables to override the choices made by `configure' or to help 145614c0a534Smrgit to find libraries and programs with nonstandard names/locations. 145714c0a534Smrg 1458bdc460c5SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/issues>. 145914c0a534Smrg_ACEOF 1460bf2eeab3Smrgac_status=$? 146114c0a534Smrgfi 146214c0a534Smrg 146314c0a534Smrgif test "$ac_init_help" = "recursive"; then 146414c0a534Smrg # If there are subdirs, report their specific --help. 146514c0a534Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466bf2eeab3Smrg test -d "$ac_dir" || 1467bf2eeab3Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468bf2eeab3Smrg continue 146914c0a534Smrg ac_builddir=. 147014c0a534Smrg 1471bf2eeab3Smrgcase "$ac_dir" in 1472bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473bf2eeab3Smrg*) 1474bdc460c5Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1475bf2eeab3Smrg # A ".." for each directory in $ac_dir_suffix. 1476bdc460c5Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477bf2eeab3Smrg case $ac_top_builddir_sub in 1478bf2eeab3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479bf2eeab3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480bf2eeab3Smrg esac ;; 1481bf2eeab3Smrgesac 1482bf2eeab3Smrgac_abs_top_builddir=$ac_pwd 1483bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1484bf2eeab3Smrg# for backward compatibility: 1485bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix 148614c0a534Smrg 148714c0a534Smrgcase $srcdir in 1488bf2eeab3Smrg .) # We are building in place. 148914c0a534Smrg ac_srcdir=. 1490bf2eeab3Smrg ac_top_srcdir=$ac_top_builddir_sub 1491bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd ;; 1492bf2eeab3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 149314c0a534Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1494bf2eeab3Smrg ac_top_srcdir=$srcdir 1495bf2eeab3Smrg ac_abs_top_srcdir=$srcdir ;; 1496bf2eeab3Smrg *) # Relative name. 1497bf2eeab3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498bf2eeab3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1499bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 150014c0a534Smrgesac 1501bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502bf2eeab3Smrg 1503bf2eeab3Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1504bdc460c5Smrg # Check for configure.gnu first; this name is used for a wrapper for 1505bdc460c5Smrg # Metaconfig's "Configure" on case-insensitive file systems. 1506bf2eeab3Smrg if test -f "$ac_srcdir/configure.gnu"; then 1507bf2eeab3Smrg echo && 1508bf2eeab3Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1509bf2eeab3Smrg elif test -f "$ac_srcdir/configure"; then 1510bf2eeab3Smrg echo && 1511bf2eeab3Smrg $SHELL "$ac_srcdir/configure" --help=recursive 151214c0a534Smrg else 1513bdc460c5Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514bf2eeab3Smrg fi || ac_status=$? 1515bf2eeab3Smrg cd "$ac_pwd" || { ac_status=$?; break; } 151614c0a534Smrg done 151714c0a534Smrgfi 151814c0a534Smrg 1519bf2eeab3Smrgtest -n "$ac_init_help" && exit $ac_status 152014c0a534Smrgif $ac_init_version; then 152114c0a534Smrg cat <<\_ACEOF 1522bdc460c5Smrgsmproxy configure 1.0.7 1523bdc460c5Smrggenerated by GNU Autoconf 2.71 152414c0a534Smrg 1525bdc460c5SmrgCopyright (C) 2021 Free Software Foundation, Inc. 152614c0a534SmrgThis configure script is free software; the Free Software Foundation 152714c0a534Smrggives unlimited permission to copy, distribute and modify it. 152814c0a534Smrg_ACEOF 1529bf2eeab3Smrg exit 153014c0a534Smrgfi 153114c0a534Smrg 1532576bae58Smrg## ------------------------ ## 1533576bae58Smrg## Autoconf initialization. ## 1534576bae58Smrg## ------------------------ ## 153514c0a534Smrg 1536576bae58Smrg# ac_fn_c_try_compile LINENO 1537576bae58Smrg# -------------------------- 1538576bae58Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1539576bae58Smrgac_fn_c_try_compile () 154014c0a534Smrg{ 1541576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542bdc460c5Smrg rm -f conftest.$ac_objext conftest.beam 1543576bae58Smrg if { { ac_try="$ac_compile" 1544576bae58Smrgcase "(($ac_try" in 1545576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546576bae58Smrg *) ac_try_echo=$ac_try;; 1547576bae58Smrgesac 1548576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 1550576bae58Smrg (eval "$ac_compile") 2>conftest.err 1551576bae58Smrg ac_status=$? 1552576bae58Smrg if test -s conftest.err; then 1553576bae58Smrg grep -v '^ *+' conftest.err >conftest.er1 1554576bae58Smrg cat conftest.er1 >&5 1555576bae58Smrg mv -f conftest.er1 conftest.err 1556576bae58Smrg fi 1557bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558576bae58Smrg test $ac_status = 0; } && { 1559576bae58Smrg test -z "$ac_c_werror_flag" || 1560576bae58Smrg test ! -s conftest.err 1561bdc460c5Smrg } && test -s conftest.$ac_objext 1562bdc460c5Smrgthen : 1563576bae58Smrg ac_retval=0 1564bdc460c5Smrgelse $as_nop 1565bdc460c5Smrg printf "%s\n" "$as_me: failed program was:" >&5 1566576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 156714c0a534Smrg 1568576bae58Smrg ac_retval=1 1569576bae58Smrgfi 1570576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571576bae58Smrg as_fn_set_status $ac_retval 157214c0a534Smrg 1573576bae58Smrg} # ac_fn_c_try_compile 157414c0a534Smrg 1575576bae58Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1576576bae58Smrg# ------------------------------------------------------- 1577576bae58Smrg# Tests whether HEADER exists and can be compiled using the include files in 1578576bae58Smrg# INCLUDES, setting the cache variable VAR accordingly. 1579576bae58Smrgac_fn_c_check_header_compile () 1580576bae58Smrg{ 1581576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1583bdc460c5Smrgprintf %s "checking for $2... " >&6; } 1584bdc460c5Smrgif eval test \${$3+y} 1585bdc460c5Smrgthen : 1586bdc460c5Smrg printf %s "(cached) " >&6 1587bdc460c5Smrgelse $as_nop 1588576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589576bae58Smrg/* end confdefs.h. */ 1590576bae58Smrg$4 1591576bae58Smrg#include <$2> 1592576bae58Smrg_ACEOF 1593bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 1594bdc460c5Smrgthen : 1595576bae58Smrg eval "$3=yes" 1596bdc460c5Smrgelse $as_nop 1597576bae58Smrg eval "$3=no" 1598576bae58Smrgfi 1599bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1600576bae58Smrgfi 1601576bae58Smrgeval ac_res=\$$3 1602bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1603bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; } 1604576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605576bae58Smrg 1606576bae58Smrg} # ac_fn_c_check_header_compile 1607576bae58Smrg 1608bdc460c5Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1609bdc460c5Smrg# ------------------------------------------------------------------ 161024047306Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1611bdc460c5Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1612bdc460c5Smrgac_fn_check_decl () 161324047306Smrg{ 161424047306Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 161524047306Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1616bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1617bdc460c5Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1618bdc460c5Smrgif eval test \${$3+y} 1619bdc460c5Smrgthen : 1620bdc460c5Smrg printf %s "(cached) " >&6 1621bdc460c5Smrgelse $as_nop 162224047306Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1623bdc460c5Smrg eval ac_save_FLAGS=\$$6 1624bdc460c5Smrg as_fn_append $6 " $5" 162524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 162624047306Smrg/* end confdefs.h. */ 162724047306Smrg$4 162824047306Smrgint 1629bdc460c5Smrgmain (void) 163024047306Smrg{ 163124047306Smrg#ifndef $as_decl_name 163224047306Smrg#ifdef __cplusplus 163324047306Smrg (void) $as_decl_use; 163424047306Smrg#else 163524047306Smrg (void) $as_decl_name; 163624047306Smrg#endif 163724047306Smrg#endif 163824047306Smrg 163924047306Smrg ; 164024047306Smrg return 0; 164124047306Smrg} 164224047306Smrg_ACEOF 1643bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 1644bdc460c5Smrgthen : 164524047306Smrg eval "$3=yes" 1646bdc460c5Smrgelse $as_nop 164724047306Smrg eval "$3=no" 164824047306Smrgfi 1649bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1650bdc460c5Smrg eval $6=\$ac_save_FLAGS 1651bdc460c5Smrg 165224047306Smrgfi 165324047306Smrgeval ac_res=\$$3 1654bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; } 165624047306Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 165724047306Smrg 1658bdc460c5Smrg} # ac_fn_check_decl 165924047306Smrg 1660576bae58Smrg# ac_fn_c_try_link LINENO 1661576bae58Smrg# ----------------------- 1662576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1663576bae58Smrgac_fn_c_try_link () 1664576bae58Smrg{ 1665576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666bdc460c5Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667576bae58Smrg if { { ac_try="$ac_link" 1668576bae58Smrgcase "(($ac_try" in 1669576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670576bae58Smrg *) ac_try_echo=$ac_try;; 1671576bae58Smrgesac 1672576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 1674576bae58Smrg (eval "$ac_link") 2>conftest.err 1675576bae58Smrg ac_status=$? 1676576bae58Smrg if test -s conftest.err; then 1677576bae58Smrg grep -v '^ *+' conftest.err >conftest.er1 1678576bae58Smrg cat conftest.er1 >&5 1679576bae58Smrg mv -f conftest.er1 conftest.err 1680576bae58Smrg fi 1681bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682576bae58Smrg test $ac_status = 0; } && { 1683576bae58Smrg test -z "$ac_c_werror_flag" || 1684576bae58Smrg test ! -s conftest.err 1685576bae58Smrg } && test -s conftest$ac_exeext && { 1686576bae58Smrg test "$cross_compiling" = yes || 168724047306Smrg test -x conftest$ac_exeext 1688bdc460c5Smrg } 1689bdc460c5Smrgthen : 1690576bae58Smrg ac_retval=0 1691bdc460c5Smrgelse $as_nop 1692bdc460c5Smrg printf "%s\n" "$as_me: failed program was:" >&5 1693576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 1694576bae58Smrg 1695576bae58Smrg ac_retval=1 1696576bae58Smrgfi 1697576bae58Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698576bae58Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699576bae58Smrg # interfere with the next link command; also delete a directory that is 1700576bae58Smrg # left behind by Apple's compiler. We do this before executing the actions. 1701576bae58Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703576bae58Smrg as_fn_set_status $ac_retval 1704576bae58Smrg 1705576bae58Smrg} # ac_fn_c_try_link 1706576bae58Smrg 1707576bae58Smrg# ac_fn_c_check_func LINENO FUNC VAR 1708576bae58Smrg# ---------------------------------- 1709576bae58Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1710576bae58Smrgac_fn_c_check_func () 1711576bae58Smrg{ 1712576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714bdc460c5Smrgprintf %s "checking for $2... " >&6; } 1715bdc460c5Smrgif eval test \${$3+y} 1716bdc460c5Smrgthen : 1717bdc460c5Smrg printf %s "(cached) " >&6 1718bdc460c5Smrgelse $as_nop 1719576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720576bae58Smrg/* end confdefs.h. */ 1721576bae58Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1722576bae58Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1723576bae58Smrg#define $2 innocuous_$2 1724576bae58Smrg 1725576bae58Smrg/* System header to define __stub macros and hopefully few prototypes, 1726bdc460c5Smrg which can conflict with char $2 (); below. */ 1727576bae58Smrg 1728bdc460c5Smrg#include <limits.h> 1729576bae58Smrg#undef $2 1730576bae58Smrg 1731576bae58Smrg/* Override any GCC internal prototype to avoid an error. 1732576bae58Smrg Use char because int might match the return type of a GCC 1733576bae58Smrg builtin and then its argument prototype would still apply. */ 1734576bae58Smrg#ifdef __cplusplus 1735576bae58Smrgextern "C" 1736576bae58Smrg#endif 1737576bae58Smrgchar $2 (); 1738576bae58Smrg/* The GNU C library defines this for functions which it implements 1739576bae58Smrg to always fail with ENOSYS. Some functions are actually named 1740576bae58Smrg something starting with __ and the normal name is an alias. */ 1741576bae58Smrg#if defined __stub_$2 || defined __stub___$2 1742576bae58Smrgchoke me 1743576bae58Smrg#endif 1744576bae58Smrg 1745576bae58Smrgint 1746bdc460c5Smrgmain (void) 1747576bae58Smrg{ 1748576bae58Smrgreturn $2 (); 1749576bae58Smrg ; 1750576bae58Smrg return 0; 1751576bae58Smrg} 1752576bae58Smrg_ACEOF 1753bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 1754bdc460c5Smrgthen : 1755576bae58Smrg eval "$3=yes" 1756bdc460c5Smrgelse $as_nop 1757576bae58Smrg eval "$3=no" 1758576bae58Smrgfi 1759bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1760576bae58Smrg conftest$ac_exeext conftest.$ac_ext 1761576bae58Smrgfi 1762576bae58Smrgeval ac_res=\$$3 1763bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; } 1765576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766576bae58Smrg 1767576bae58Smrg} # ac_fn_c_check_func 1768bdc460c5Smrgac_configure_args_raw= 1769bdc460c5Smrgfor ac_arg 1770bdc460c5Smrgdo 1771bdc460c5Smrg case $ac_arg in 1772bdc460c5Smrg *\'*) 1773bdc460c5Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1774bdc460c5Smrg esac 1775bdc460c5Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1776bdc460c5Smrgdone 1777bdc460c5Smrg 1778bdc460c5Smrgcase $ac_configure_args_raw in 1779bdc460c5Smrg *$as_nl*) 1780bdc460c5Smrg ac_safe_unquote= ;; 1781bdc460c5Smrg *) 1782bdc460c5Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1783bdc460c5Smrg ac_unsafe_a="$ac_unsafe_z#~" 1784bdc460c5Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1785bdc460c5Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1786bdc460c5Smrgesac 1787bdc460c5Smrg 1788576bae58Smrgcat >config.log <<_ACEOF 1789576bae58SmrgThis file contains any messages produced by compilers while 1790576bae58Smrgrunning configure, to aid debugging if configure makes a mistake. 1791576bae58Smrg 1792bdc460c5SmrgIt was created by smproxy $as_me 1.0.7, which was 1793bdc460c5Smrggenerated by GNU Autoconf 2.71. Invocation command line was 1794576bae58Smrg 1795bdc460c5Smrg $ $0$ac_configure_args_raw 1796576bae58Smrg 1797576bae58Smrg_ACEOF 1798576bae58Smrgexec 5>>config.log 1799576bae58Smrg{ 1800576bae58Smrgcat <<_ASUNAME 1801576bae58Smrg## --------- ## 1802576bae58Smrg## Platform. ## 1803576bae58Smrg## --------- ## 1804576bae58Smrg 1805576bae58Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1806576bae58Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1807576bae58Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1808576bae58Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1809576bae58Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1810576bae58Smrg 1811576bae58Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1812576bae58Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1813576bae58Smrg 1814576bae58Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1815576bae58Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1816576bae58Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1817576bae58Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1818576bae58Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1819576bae58Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1820576bae58Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1821576bae58Smrg 1822576bae58Smrg_ASUNAME 1823576bae58Smrg 1824576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 182514c0a534Smrgfor as_dir in $PATH 182614c0a534Smrgdo 182714c0a534Smrg IFS=$as_save_IFS 1828bdc460c5Smrg case $as_dir in #((( 1829bdc460c5Smrg '') as_dir=./ ;; 1830bdc460c5Smrg */) ;; 1831bdc460c5Smrg *) as_dir=$as_dir/ ;; 1832bdc460c5Smrg esac 1833bdc460c5Smrg printf "%s\n" "PATH: $as_dir" 1834576bae58Smrg done 1835bf2eeab3SmrgIFS=$as_save_IFS 183614c0a534Smrg 183714c0a534Smrg} >&5 183814c0a534Smrg 183914c0a534Smrgcat >&5 <<_ACEOF 184014c0a534Smrg 184114c0a534Smrg 184214c0a534Smrg## ----------- ## 184314c0a534Smrg## Core tests. ## 184414c0a534Smrg## ----------- ## 184514c0a534Smrg 184614c0a534Smrg_ACEOF 184714c0a534Smrg 184814c0a534Smrg 184914c0a534Smrg# Keep a trace of the command line. 185014c0a534Smrg# Strip out --no-create and --no-recursion so they do not pile up. 185114c0a534Smrg# Strip out --silent because we don't want to record it for future runs. 185214c0a534Smrg# Also quote any args containing shell meta-characters. 185314c0a534Smrg# Make two passes to allow for proper duplicate-argument suppression. 185414c0a534Smrgac_configure_args= 185514c0a534Smrgac_configure_args0= 185614c0a534Smrgac_configure_args1= 185714c0a534Smrgac_must_keep_next=false 185814c0a534Smrgfor ac_pass in 1 2 185914c0a534Smrgdo 186014c0a534Smrg for ac_arg 186114c0a534Smrg do 186214c0a534Smrg case $ac_arg in 186314c0a534Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 186414c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 186514c0a534Smrg | -silent | --silent | --silen | --sile | --sil) 186614c0a534Smrg continue ;; 1867bf2eeab3Smrg *\'*) 1868bdc460c5Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 186914c0a534Smrg esac 187014c0a534Smrg case $ac_pass in 1871576bae58Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 187214c0a534Smrg 2) 1873576bae58Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 187414c0a534Smrg if test $ac_must_keep_next = true; then 187514c0a534Smrg ac_must_keep_next=false # Got value, back to normal. 187614c0a534Smrg else 187714c0a534Smrg case $ac_arg in 187814c0a534Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 187914c0a534Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 188014c0a534Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 188114c0a534Smrg | -with-* | --with-* | -without-* | --without-* | --x) 188214c0a534Smrg case "$ac_configure_args0 " in 188314c0a534Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 188414c0a534Smrg esac 188514c0a534Smrg ;; 188614c0a534Smrg -* ) ac_must_keep_next=true ;; 188714c0a534Smrg esac 188814c0a534Smrg fi 1889576bae58Smrg as_fn_append ac_configure_args " '$ac_arg'" 189014c0a534Smrg ;; 189114c0a534Smrg esac 189214c0a534Smrg done 189314c0a534Smrgdone 1894576bae58Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1895576bae58Smrg{ ac_configure_args1=; unset ac_configure_args1;} 189614c0a534Smrg 189714c0a534Smrg# When interrupted or exit'd, cleanup temporary files, and complete 189814c0a534Smrg# config.log. We remove comments because anyway the quotes in there 189914c0a534Smrg# would cause problems or look ugly. 1900bf2eeab3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1901bf2eeab3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 190214c0a534Smrgtrap 'exit_status=$? 1903bdc460c5Smrg # Sanitize IFS. 1904bdc460c5Smrg IFS=" "" $as_nl" 190514c0a534Smrg # Save into config.log some information that might help in debugging. 190614c0a534Smrg { 190714c0a534Smrg echo 190814c0a534Smrg 1909bdc460c5Smrg printf "%s\n" "## ---------------- ## 191014c0a534Smrg## Cache variables. ## 1911576bae58Smrg## ---------------- ##" 191214c0a534Smrg echo 191314c0a534Smrg # The following way of writing the cache mishandles newlines in values, 1914bf2eeab3Smrg( 1915bf2eeab3Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1916bf2eeab3Smrg eval ac_val=\$$ac_var 1917bf2eeab3Smrg case $ac_val in #( 1918bf2eeab3Smrg *${as_nl}*) 1919bf2eeab3Smrg case $ac_var in #( 1920bdc460c5Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1921bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1922bf2eeab3Smrg esac 1923bf2eeab3Smrg case $ac_var in #( 1924bf2eeab3Smrg _ | IFS | as_nl) ;; #( 1925bf2eeab3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1926576bae58Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1927bf2eeab3Smrg esac ;; 1928bf2eeab3Smrg esac 1929bf2eeab3Smrg done 193014c0a534Smrg (set) 2>&1 | 1931bf2eeab3Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1932bf2eeab3Smrg *${as_nl}ac_space=\ *) 193314c0a534Smrg sed -n \ 1934bf2eeab3Smrg "s/'\''/'\''\\\\'\'''\''/g; 1935bf2eeab3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1936bf2eeab3Smrg ;; #( 193714c0a534Smrg *) 1938bf2eeab3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 193914c0a534Smrg ;; 1940bf2eeab3Smrg esac | 1941bf2eeab3Smrg sort 1942bf2eeab3Smrg) 194314c0a534Smrg echo 194414c0a534Smrg 1945bdc460c5Smrg printf "%s\n" "## ----------------- ## 194614c0a534Smrg## Output variables. ## 1947576bae58Smrg## ----------------- ##" 194814c0a534Smrg echo 194914c0a534Smrg for ac_var in $ac_subst_vars 195014c0a534Smrg do 1951bf2eeab3Smrg eval ac_val=\$$ac_var 1952bf2eeab3Smrg case $ac_val in 1953bdc460c5Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1954bf2eeab3Smrg esac 1955bdc460c5Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 195614c0a534Smrg done | sort 195714c0a534Smrg echo 195814c0a534Smrg 195914c0a534Smrg if test -n "$ac_subst_files"; then 1960bdc460c5Smrg printf "%s\n" "## ------------------- ## 1961bf2eeab3Smrg## File substitutions. ## 1962576bae58Smrg## ------------------- ##" 196314c0a534Smrg echo 196414c0a534Smrg for ac_var in $ac_subst_files 196514c0a534Smrg do 1966bf2eeab3Smrg eval ac_val=\$$ac_var 1967bf2eeab3Smrg case $ac_val in 1968bdc460c5Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1969bf2eeab3Smrg esac 1970bdc460c5Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 197114c0a534Smrg done | sort 197214c0a534Smrg echo 197314c0a534Smrg fi 197414c0a534Smrg 197514c0a534Smrg if test -s confdefs.h; then 1976bdc460c5Smrg printf "%s\n" "## ----------- ## 197714c0a534Smrg## confdefs.h. ## 1978576bae58Smrg## ----------- ##" 197914c0a534Smrg echo 1980bf2eeab3Smrg cat confdefs.h 198114c0a534Smrg echo 198214c0a534Smrg fi 198314c0a534Smrg test "$ac_signal" != 0 && 1984bdc460c5Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 1985bdc460c5Smrg printf "%s\n" "$as_me: exit $exit_status" 198614c0a534Smrg } >&5 1987bf2eeab3Smrg rm -f core *.core core.conftest.* && 1988bf2eeab3Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 198914c0a534Smrg exit $exit_status 1990bf2eeab3Smrg' 0 199114c0a534Smrgfor ac_signal in 1 2 13 15; do 1992576bae58Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 199314c0a534Smrgdone 199414c0a534Smrgac_signal=0 199514c0a534Smrg 199614c0a534Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1997bf2eeab3Smrgrm -f -r conftest* confdefs.h 199814c0a534Smrg 1999bdc460c5Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 2000576bae58Smrg 200114c0a534Smrg# Predefined preprocessor variables. 200214c0a534Smrg 2003bdc460c5Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 200414c0a534Smrg 2005bdc460c5Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 200614c0a534Smrg 2007bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 200814c0a534Smrg 2009bdc460c5Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 201014c0a534Smrg 2011bdc460c5Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 201214c0a534Smrg 2013bdc460c5Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2014576bae58Smrg 201514c0a534Smrg 201614c0a534Smrg# Let the site file select an alternate cache file if it wants to. 2017bf2eeab3Smrg# Prefer an explicitly selected file to automatically selected ones. 2018bf2eeab3Smrgif test -n "$CONFIG_SITE"; then 2019bdc460c5Smrg ac_site_files="$CONFIG_SITE" 2020bf2eeab3Smrgelif test "x$prefix" != xNONE; then 2021bdc460c5Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2022bf2eeab3Smrgelse 2023bdc460c5Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 202414c0a534Smrgfi 2025bdc460c5Smrg 2026bdc460c5Smrgfor ac_site_file in $ac_site_files 2027bf2eeab3Smrgdo 2028bdc460c5Smrg case $ac_site_file in #( 2029bdc460c5Smrg */*) : 2030bdc460c5Smrg ;; #( 2031bdc460c5Smrg *) : 2032bdc460c5Smrg ac_site_file=./$ac_site_file ;; 2033bdc460c5Smrgesac 2034bdc460c5Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2035bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2036bdc460c5Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 203714c0a534Smrg sed 's/^/| /' "$ac_site_file" >&5 2038576bae58Smrg . "$ac_site_file" \ 2039bdc460c5Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2040bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2041576bae58Smrgas_fn_error $? "failed to load site script $ac_site_file 2042576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 204314c0a534Smrg fi 204414c0a534Smrgdone 204514c0a534Smrg 204614c0a534Smrgif test -r "$cache_file"; then 2047576bae58Smrg # Some versions of bash will fail to source /dev/null (special files 2048576bae58Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2049576bae58Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2050bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2051bdc460c5Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 205214c0a534Smrg case $cache_file in 2053bf2eeab3Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2054bf2eeab3Smrg *) . "./$cache_file";; 205514c0a534Smrg esac 205614c0a534Smrg fi 205714c0a534Smrgelse 2058bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2059bdc460c5Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 206014c0a534Smrg >$cache_file 206114c0a534Smrgfi 206214c0a534Smrg 2063bdc460c5Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2064bdc460c5Smrg# Test code for whether the C compiler supports C89 (global declarations) 2065bdc460c5Smrgac_c_conftest_c89_globals=' 2066bdc460c5Smrg/* Does the compiler advertise C89 conformance? 2067bdc460c5Smrg Do not test the value of __STDC__, because some compilers set it to 0 2068bdc460c5Smrg while being otherwise adequately conformant. */ 2069bdc460c5Smrg#if !defined __STDC__ 2070bdc460c5Smrg# error "Compiler does not advertise C89 conformance" 2071bdc460c5Smrg#endif 207214c0a534Smrg 2073bdc460c5Smrg#include <stddef.h> 2074bdc460c5Smrg#include <stdarg.h> 2075bdc460c5Smrgstruct stat; 2076bdc460c5Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2077bdc460c5Smrgstruct buf { int x; }; 2078bdc460c5Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2079bdc460c5Smrgstatic char *e (p, i) 2080bdc460c5Smrg char **p; 2081bdc460c5Smrg int i; 2082bdc460c5Smrg{ 2083bdc460c5Smrg return p[i]; 2084bdc460c5Smrg} 2085bdc460c5Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2086bdc460c5Smrg{ 2087bdc460c5Smrg char *s; 2088bdc460c5Smrg va_list v; 2089bdc460c5Smrg va_start (v,p); 2090bdc460c5Smrg s = g (p, va_arg (v,int)); 2091bdc460c5Smrg va_end (v); 2092bdc460c5Smrg return s; 2093bdc460c5Smrg} 2094bdc460c5Smrg 2095bdc460c5Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2096bdc460c5Smrg function prototypes and stuff, but not \xHH hex character constants. 2097bdc460c5Smrg These do not provoke an error unfortunately, instead are silently treated 2098bdc460c5Smrg as an "x". The following induces an error, until -std is added to get 2099bdc460c5Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2100bdc460c5Smrg array size at least. It is necessary to write \x00 == 0 to get something 2101bdc460c5Smrg that is true only with -std. */ 2102bdc460c5Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2103bdc460c5Smrg 2104bdc460c5Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2105bdc460c5Smrg inside strings and character constants. */ 2106bdc460c5Smrg#define FOO(x) '\''x'\'' 2107bdc460c5Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2108bdc460c5Smrg 2109bdc460c5Smrgint test (int i, double x); 2110bdc460c5Smrgstruct s1 {int (*f) (int a);}; 2111bdc460c5Smrgstruct s2 {int (*f) (double a);}; 2112bdc460c5Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2113bdc460c5Smrg int, int);' 2114bdc460c5Smrg 2115bdc460c5Smrg# Test code for whether the C compiler supports C89 (body of main). 2116bdc460c5Smrgac_c_conftest_c89_main=' 2117bdc460c5Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2118bdc460c5Smrg' 2119bdc460c5Smrg 2120bdc460c5Smrg# Test code for whether the C compiler supports C99 (global declarations) 2121bdc460c5Smrgac_c_conftest_c99_globals=' 2122bdc460c5Smrg// Does the compiler advertise C99 conformance? 2123bdc460c5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2124bdc460c5Smrg# error "Compiler does not advertise C99 conformance" 2125bdc460c5Smrg#endif 2126bdc460c5Smrg 2127bdc460c5Smrg#include <stdbool.h> 2128bdc460c5Smrgextern int puts (const char *); 2129bdc460c5Smrgextern int printf (const char *, ...); 2130bdc460c5Smrgextern int dprintf (int, const char *, ...); 2131bdc460c5Smrgextern void *malloc (size_t); 2132bdc460c5Smrg 2133bdc460c5Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2134bdc460c5Smrg// dprintf is used instead of fprintf to avoid needing to declare 2135bdc460c5Smrg// FILE and stderr. 2136bdc460c5Smrg#define debug(...) dprintf (2, __VA_ARGS__) 2137bdc460c5Smrg#define showlist(...) puts (#__VA_ARGS__) 2138bdc460c5Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2139bdc460c5Smrgstatic void 2140bdc460c5Smrgtest_varargs_macros (void) 2141bdc460c5Smrg{ 2142bdc460c5Smrg int x = 1234; 2143bdc460c5Smrg int y = 5678; 2144bdc460c5Smrg debug ("Flag"); 2145bdc460c5Smrg debug ("X = %d\n", x); 2146bdc460c5Smrg showlist (The first, second, and third items.); 2147bdc460c5Smrg report (x>y, "x is %d but y is %d", x, y); 2148bdc460c5Smrg} 2149bdc460c5Smrg 2150bdc460c5Smrg// Check long long types. 2151bdc460c5Smrg#define BIG64 18446744073709551615ull 2152bdc460c5Smrg#define BIG32 4294967295ul 2153bdc460c5Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2154bdc460c5Smrg#if !BIG_OK 2155bdc460c5Smrg #error "your preprocessor is broken" 2156bdc460c5Smrg#endif 2157bdc460c5Smrg#if BIG_OK 2158bdc460c5Smrg#else 2159bdc460c5Smrg #error "your preprocessor is broken" 2160bdc460c5Smrg#endif 2161bdc460c5Smrgstatic long long int bignum = -9223372036854775807LL; 2162bdc460c5Smrgstatic unsigned long long int ubignum = BIG64; 2163bdc460c5Smrg 2164bdc460c5Smrgstruct incomplete_array 2165bdc460c5Smrg{ 2166bdc460c5Smrg int datasize; 2167bdc460c5Smrg double data[]; 2168bdc460c5Smrg}; 2169bdc460c5Smrg 2170bdc460c5Smrgstruct named_init { 2171bdc460c5Smrg int number; 2172bdc460c5Smrg const wchar_t *name; 2173bdc460c5Smrg double average; 2174bdc460c5Smrg}; 2175bdc460c5Smrg 2176bdc460c5Smrgtypedef const char *ccp; 2177bdc460c5Smrg 2178bdc460c5Smrgstatic inline int 2179bdc460c5Smrgtest_restrict (ccp restrict text) 2180bdc460c5Smrg{ 2181bdc460c5Smrg // See if C++-style comments work. 2182bdc460c5Smrg // Iterate through items via the restricted pointer. 2183bdc460c5Smrg // Also check for declarations in for loops. 2184bdc460c5Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2185bdc460c5Smrg continue; 2186bdc460c5Smrg return 0; 2187bdc460c5Smrg} 2188bdc460c5Smrg 2189bdc460c5Smrg// Check varargs and va_copy. 2190bdc460c5Smrgstatic bool 2191bdc460c5Smrgtest_varargs (const char *format, ...) 2192bdc460c5Smrg{ 2193bdc460c5Smrg va_list args; 2194bdc460c5Smrg va_start (args, format); 2195bdc460c5Smrg va_list args_copy; 2196bdc460c5Smrg va_copy (args_copy, args); 2197bdc460c5Smrg 2198bdc460c5Smrg const char *str = ""; 2199bdc460c5Smrg int number = 0; 2200bdc460c5Smrg float fnumber = 0; 2201bdc460c5Smrg 2202bdc460c5Smrg while (*format) 2203bdc460c5Smrg { 2204bdc460c5Smrg switch (*format++) 2205bdc460c5Smrg { 2206bdc460c5Smrg case '\''s'\'': // string 2207bdc460c5Smrg str = va_arg (args_copy, const char *); 2208bdc460c5Smrg break; 2209bdc460c5Smrg case '\''d'\'': // int 2210bdc460c5Smrg number = va_arg (args_copy, int); 2211bdc460c5Smrg break; 2212bdc460c5Smrg case '\''f'\'': // float 2213bdc460c5Smrg fnumber = va_arg (args_copy, double); 2214bdc460c5Smrg break; 2215bdc460c5Smrg default: 2216bdc460c5Smrg break; 2217bdc460c5Smrg } 2218bdc460c5Smrg } 2219bdc460c5Smrg va_end (args_copy); 2220bdc460c5Smrg va_end (args); 2221bdc460c5Smrg 2222bdc460c5Smrg return *str && number && fnumber; 2223bdc460c5Smrg} 2224bdc460c5Smrg' 2225bdc460c5Smrg 2226bdc460c5Smrg# Test code for whether the C compiler supports C99 (body of main). 2227bdc460c5Smrgac_c_conftest_c99_main=' 2228bdc460c5Smrg // Check bool. 2229bdc460c5Smrg _Bool success = false; 2230bdc460c5Smrg success |= (argc != 0); 2231bdc460c5Smrg 2232bdc460c5Smrg // Check restrict. 2233bdc460c5Smrg if (test_restrict ("String literal") == 0) 2234bdc460c5Smrg success = true; 2235bdc460c5Smrg char *restrict newvar = "Another string"; 2236bdc460c5Smrg 2237bdc460c5Smrg // Check varargs. 2238bdc460c5Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2239bdc460c5Smrg test_varargs_macros (); 2240bdc460c5Smrg 2241bdc460c5Smrg // Check flexible array members. 2242bdc460c5Smrg struct incomplete_array *ia = 2243bdc460c5Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2244bdc460c5Smrg ia->datasize = 10; 2245bdc460c5Smrg for (int i = 0; i < ia->datasize; ++i) 2246bdc460c5Smrg ia->data[i] = i * 1.234; 2247bdc460c5Smrg 2248bdc460c5Smrg // Check named initializers. 2249bdc460c5Smrg struct named_init ni = { 2250bdc460c5Smrg .number = 34, 2251bdc460c5Smrg .name = L"Test wide string", 2252bdc460c5Smrg .average = 543.34343, 2253bdc460c5Smrg }; 2254bdc460c5Smrg 2255bdc460c5Smrg ni.number = 58; 2256bdc460c5Smrg 2257bdc460c5Smrg int dynamic_array[ni.number]; 2258bdc460c5Smrg dynamic_array[0] = argv[0][0]; 2259bdc460c5Smrg dynamic_array[ni.number - 1] = 543; 2260bdc460c5Smrg 2261bdc460c5Smrg // work around unused variable warnings 2262bdc460c5Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2263bdc460c5Smrg || dynamic_array[ni.number - 1] != 543); 2264bdc460c5Smrg' 2265bdc460c5Smrg 2266bdc460c5Smrg# Test code for whether the C compiler supports C11 (global declarations) 2267bdc460c5Smrgac_c_conftest_c11_globals=' 2268bdc460c5Smrg// Does the compiler advertise C11 conformance? 2269bdc460c5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2270bdc460c5Smrg# error "Compiler does not advertise C11 conformance" 2271bdc460c5Smrg#endif 2272bdc460c5Smrg 2273bdc460c5Smrg// Check _Alignas. 2274bdc460c5Smrgchar _Alignas (double) aligned_as_double; 2275bdc460c5Smrgchar _Alignas (0) no_special_alignment; 2276bdc460c5Smrgextern char aligned_as_int; 2277bdc460c5Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2278bdc460c5Smrg 2279bdc460c5Smrg// Check _Alignof. 2280bdc460c5Smrgenum 2281bdc460c5Smrg{ 2282bdc460c5Smrg int_alignment = _Alignof (int), 2283bdc460c5Smrg int_array_alignment = _Alignof (int[100]), 2284bdc460c5Smrg char_alignment = _Alignof (char) 2285bdc460c5Smrg}; 2286bdc460c5Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2287bdc460c5Smrg 2288bdc460c5Smrg// Check _Noreturn. 2289bdc460c5Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 2290bdc460c5Smrg 2291bdc460c5Smrg// Check _Static_assert. 2292bdc460c5Smrgstruct test_static_assert 2293bdc460c5Smrg{ 2294bdc460c5Smrg int x; 2295bdc460c5Smrg _Static_assert (sizeof (int) <= sizeof (long int), 2296bdc460c5Smrg "_Static_assert does not work in struct"); 2297bdc460c5Smrg long int y; 2298bdc460c5Smrg}; 2299bdc460c5Smrg 2300bdc460c5Smrg// Check UTF-8 literals. 2301bdc460c5Smrg#define u8 syntax error! 2302bdc460c5Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2303bdc460c5Smrg 2304bdc460c5Smrg// Check duplicate typedefs. 2305bdc460c5Smrgtypedef long *long_ptr; 2306bdc460c5Smrgtypedef long int *long_ptr; 2307bdc460c5Smrgtypedef long_ptr long_ptr; 2308bdc460c5Smrg 2309bdc460c5Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2310bdc460c5Smrgstruct anonymous 2311bdc460c5Smrg{ 2312bdc460c5Smrg union { 2313bdc460c5Smrg struct { int i; int j; }; 2314bdc460c5Smrg struct { int k; long int l; } w; 2315bdc460c5Smrg }; 2316bdc460c5Smrg int m; 2317bdc460c5Smrg} v1; 2318bdc460c5Smrg' 2319bdc460c5Smrg 2320bdc460c5Smrg# Test code for whether the C compiler supports C11 (body of main). 2321bdc460c5Smrgac_c_conftest_c11_main=' 2322bdc460c5Smrg _Static_assert ((offsetof (struct anonymous, i) 2323bdc460c5Smrg == offsetof (struct anonymous, w.k)), 2324bdc460c5Smrg "Anonymous union alignment botch"); 2325bdc460c5Smrg v1.i = 2; 2326bdc460c5Smrg v1.w.k = 5; 2327bdc460c5Smrg ok |= v1.i != 5; 2328bdc460c5Smrg' 2329bdc460c5Smrg 2330bdc460c5Smrg# Test code for whether the C compiler supports C11 (complete). 2331bdc460c5Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2332bdc460c5Smrg${ac_c_conftest_c99_globals} 2333bdc460c5Smrg${ac_c_conftest_c11_globals} 2334bdc460c5Smrg 2335bdc460c5Smrgint 2336bdc460c5Smrgmain (int argc, char **argv) 2337bdc460c5Smrg{ 2338bdc460c5Smrg int ok = 0; 2339bdc460c5Smrg ${ac_c_conftest_c89_main} 2340bdc460c5Smrg ${ac_c_conftest_c99_main} 2341bdc460c5Smrg ${ac_c_conftest_c11_main} 2342bdc460c5Smrg return ok; 2343bdc460c5Smrg} 2344bdc460c5Smrg" 2345bdc460c5Smrg 2346bdc460c5Smrg# Test code for whether the C compiler supports C99 (complete). 2347bdc460c5Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2348bdc460c5Smrg${ac_c_conftest_c99_globals} 2349bdc460c5Smrg 2350bdc460c5Smrgint 2351bdc460c5Smrgmain (int argc, char **argv) 2352bdc460c5Smrg{ 2353bdc460c5Smrg int ok = 0; 2354bdc460c5Smrg ${ac_c_conftest_c89_main} 2355bdc460c5Smrg ${ac_c_conftest_c99_main} 2356bdc460c5Smrg return ok; 2357bdc460c5Smrg} 2358bdc460c5Smrg" 2359bdc460c5Smrg 2360bdc460c5Smrg# Test code for whether the C compiler supports C89 (complete). 2361bdc460c5Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2362bdc460c5Smrg 2363bdc460c5Smrgint 2364bdc460c5Smrgmain (int argc, char **argv) 2365bdc460c5Smrg{ 2366bdc460c5Smrg int ok = 0; 2367bdc460c5Smrg ${ac_c_conftest_c89_main} 2368bdc460c5Smrg return ok; 2369bdc460c5Smrg} 2370bdc460c5Smrg" 2371bdc460c5Smrg 2372bdc460c5Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2373bdc460c5Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2374bdc460c5Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2375bdc460c5Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2376bdc460c5Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2377bdc460c5Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2378bdc460c5Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2379bdc460c5Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2380bdc460c5Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2381bdc460c5Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2382bdc460c5Smrg 2383bdc460c5Smrg# Auxiliary files required by this configure script. 2384bdc460c5Smrgac_aux_files="config.guess config.sub compile missing install-sh" 2385bdc460c5Smrg 2386bdc460c5Smrg# Locations in which to look for auxiliary files. 2387bdc460c5Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2388bdc460c5Smrg 2389bdc460c5Smrg# Search for a directory containing all of the required auxiliary files, 2390bdc460c5Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2391bdc460c5Smrg# If we don't find one directory that contains all the files we need, 2392bdc460c5Smrg# we report the set of missing files from the *first* directory in 2393bdc460c5Smrg# $ac_aux_dir_candidates and give up. 2394bdc460c5Smrgac_missing_aux_files="" 2395bdc460c5Smrgac_first_candidate=: 2396bdc460c5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2397bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398bdc460c5Smrgas_found=false 2399bdc460c5Smrgfor as_dir in $ac_aux_dir_candidates 2400bdc460c5Smrgdo 2401bdc460c5Smrg IFS=$as_save_IFS 2402bdc460c5Smrg case $as_dir in #((( 2403bdc460c5Smrg '') as_dir=./ ;; 2404bdc460c5Smrg */) ;; 2405bdc460c5Smrg *) as_dir=$as_dir/ ;; 2406bdc460c5Smrg esac 2407bdc460c5Smrg as_found=: 2408bdc460c5Smrg 2409bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2410bdc460c5Smrg ac_aux_dir_found=yes 2411bdc460c5Smrg ac_install_sh= 2412bdc460c5Smrg for ac_aux in $ac_aux_files 2413bdc460c5Smrg do 2414bdc460c5Smrg # As a special case, if "install-sh" is required, that requirement 2415bdc460c5Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2416bdc460c5Smrg # and $ac_install_sh is set appropriately for whichever one is found. 2417bdc460c5Smrg if test x"$ac_aux" = x"install-sh" 2418bdc460c5Smrg then 2419bdc460c5Smrg if test -f "${as_dir}install-sh"; then 2420bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2421bdc460c5Smrg ac_install_sh="${as_dir}install-sh -c" 2422bdc460c5Smrg elif test -f "${as_dir}install.sh"; then 2423bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2424bdc460c5Smrg ac_install_sh="${as_dir}install.sh -c" 2425bdc460c5Smrg elif test -f "${as_dir}shtool"; then 2426bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2427bdc460c5Smrg ac_install_sh="${as_dir}shtool install -c" 2428bdc460c5Smrg else 2429bdc460c5Smrg ac_aux_dir_found=no 2430bdc460c5Smrg if $ac_first_candidate; then 2431bdc460c5Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2432bdc460c5Smrg else 2433bdc460c5Smrg break 2434bdc460c5Smrg fi 2435bdc460c5Smrg fi 2436bdc460c5Smrg else 2437bdc460c5Smrg if test -f "${as_dir}${ac_aux}"; then 2438bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2439bdc460c5Smrg else 2440bdc460c5Smrg ac_aux_dir_found=no 2441bdc460c5Smrg if $ac_first_candidate; then 2442bdc460c5Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2443bdc460c5Smrg else 2444bdc460c5Smrg break 2445bdc460c5Smrg fi 2446bdc460c5Smrg fi 2447bdc460c5Smrg fi 2448bdc460c5Smrg done 2449bdc460c5Smrg if test "$ac_aux_dir_found" = yes; then 2450bdc460c5Smrg ac_aux_dir="$as_dir" 2451bdc460c5Smrg break 2452bdc460c5Smrg fi 2453bdc460c5Smrg ac_first_candidate=false 2454bdc460c5Smrg 2455bdc460c5Smrg as_found=false 2456bdc460c5Smrgdone 2457bdc460c5SmrgIFS=$as_save_IFS 2458bdc460c5Smrgif $as_found 2459bdc460c5Smrgthen : 2460bdc460c5Smrg 2461bdc460c5Smrgelse $as_nop 2462bdc460c5Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 246314c0a534Smrgfi 2464bf2eeab3Smrg 2465bdc460c5Smrg 2466bf2eeab3Smrg# These three variables are undocumented and unsupported, 2467bf2eeab3Smrg# and are intended to be withdrawn in a future Autoconf release. 2468bf2eeab3Smrg# They can cause serious problems if a builder's source tree is in a directory 2469bf2eeab3Smrg# whose full name contains unusual characters. 2470bdc460c5Smrgif test -f "${ac_aux_dir}config.guess"; then 2471bdc460c5Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2472bdc460c5Smrgfi 2473bdc460c5Smrgif test -f "${ac_aux_dir}config.sub"; then 2474bdc460c5Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2475bdc460c5Smrgfi 2476bdc460c5Smrgif test -f "$ac_aux_dir/configure"; then 2477bdc460c5Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 2478bdc460c5Smrgfi 2479bdc460c5Smrg 2480bdc460c5Smrg# Check that the precious variables saved in the cache have kept the same 2481bdc460c5Smrg# value. 2482bdc460c5Smrgac_cache_corrupted=false 2483bdc460c5Smrgfor ac_var in $ac_precious_vars; do 2484bdc460c5Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485bdc460c5Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2486bdc460c5Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487bdc460c5Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2488bdc460c5Smrg case $ac_old_set,$ac_new_set in 2489bdc460c5Smrg set,) 2490bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491bdc460c5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492bdc460c5Smrg ac_cache_corrupted=: ;; 2493bdc460c5Smrg ,set) 2494bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495bdc460c5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496bdc460c5Smrg ac_cache_corrupted=: ;; 2497bdc460c5Smrg ,);; 2498bdc460c5Smrg *) 2499bdc460c5Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2500bdc460c5Smrg # differences in whitespace do not lead to failure. 2501bdc460c5Smrg ac_old_val_w=`echo x $ac_old_val` 2502bdc460c5Smrg ac_new_val_w=`echo x $ac_new_val` 2503bdc460c5Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505bdc460c5Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506bdc460c5Smrg ac_cache_corrupted=: 2507bdc460c5Smrg else 2508bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509bdc460c5Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510bdc460c5Smrg eval $ac_var=\$ac_old_val 2511bdc460c5Smrg fi 2512bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513bdc460c5Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2514bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515bdc460c5Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2516bdc460c5Smrg fi;; 2517bdc460c5Smrg esac 2518bdc460c5Smrg # Pass precious variables to config.status. 2519bdc460c5Smrg if test "$ac_new_set" = set; then 2520bdc460c5Smrg case $ac_new_val in 2521bdc460c5Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522bdc460c5Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2523bdc460c5Smrg esac 2524bdc460c5Smrg case " $ac_configure_args " in 2525bdc460c5Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526bdc460c5Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527bdc460c5Smrg esac 2528bdc460c5Smrg fi 2529bdc460c5Smrgdone 2530bdc460c5Smrgif $ac_cache_corrupted; then 2531bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2533bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534bdc460c5Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2535bdc460c5Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2536bdc460c5Smrg and start over" "$LINENO" 5 2537bdc460c5Smrgfi 2538bdc460c5Smrg## -------------------- ## 2539bdc460c5Smrg## Main body of script. ## 2540bdc460c5Smrg## -------------------- ## 2541bdc460c5Smrg 2542bdc460c5Smrgac_ext=c 2543bdc460c5Smrgac_cpp='$CPP $CPPFLAGS' 2544bdc460c5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545bdc460c5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546bdc460c5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2547bdc460c5Smrg 2548bdc460c5Smrg 2549bf2eeab3Smrg 2550bdc460c5Smrgac_config_headers="$ac_config_headers config.h" 2551bdc460c5Smrg 2552bdc460c5Smrg 2553bdc460c5Smrg# Initialize Automake 2554bdc460c5Smrgam__api_version='1.16' 255514c0a534Smrg 2556bdc460c5Smrg 2557bdc460c5Smrg 2558bdc460c5Smrg # Find a good install program. We prefer a C program (faster), 255914c0a534Smrg# so one script is as good as another. But avoid the broken or 256014c0a534Smrg# incompatible versions: 256114c0a534Smrg# SysV /etc/install, /usr/sbin/install 256214c0a534Smrg# SunOS /usr/etc/install 256314c0a534Smrg# IRIX /sbin/install 256414c0a534Smrg# AIX /bin/install 256514c0a534Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 256614c0a534Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 256714c0a534Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 256814c0a534Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 256914c0a534Smrg# OS/2's system install, which has a completely different semantic 257014c0a534Smrg# ./install, which can be erroneously created by make from ./install.sh. 2571bf2eeab3Smrg# Reject install programs that cannot install multiple files. 2572bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2573bdc460c5Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 257414c0a534Smrgif test -z "$INSTALL"; then 2575bdc460c5Smrgif test ${ac_cv_path_install+y} 2576bdc460c5Smrgthen : 2577bdc460c5Smrg printf %s "(cached) " >&6 2578bdc460c5Smrgelse $as_nop 257914c0a534Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 258014c0a534Smrgfor as_dir in $PATH 258114c0a534Smrgdo 258214c0a534Smrg IFS=$as_save_IFS 2583bdc460c5Smrg case $as_dir in #((( 2584bdc460c5Smrg '') as_dir=./ ;; 2585bdc460c5Smrg */) ;; 2586bdc460c5Smrg *) as_dir=$as_dir/ ;; 2587bdc460c5Smrg esac 2588bdc460c5Smrg # Account for fact that we put trailing slashes in our PATH walk. 2589bdc460c5Smrgcase $as_dir in #(( 2590bdc460c5Smrg ./ | /[cC]/* | \ 259114c0a534Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2592576bae58Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 259314c0a534Smrg /usr/ucb/* ) ;; 259414c0a534Smrg *) 259514c0a534Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 259614c0a534Smrg # Don't use installbsd from OSF since it installs stuff as root 259714c0a534Smrg # by default. 259814c0a534Smrg for ac_prog in ginstall scoinst install; do 259914c0a534Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2600bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 260114c0a534Smrg if test $ac_prog = install && 2602bdc460c5Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 260314c0a534Smrg # AIX install. It has an incompatible calling convention. 260414c0a534Smrg : 260514c0a534Smrg elif test $ac_prog = install && 2606bdc460c5Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 260714c0a534Smrg # program-specific install script used by HP pwplus--don't use. 260814c0a534Smrg : 260914c0a534Smrg else 2610bf2eeab3Smrg rm -rf conftest.one conftest.two conftest.dir 2611bf2eeab3Smrg echo one > conftest.one 2612bf2eeab3Smrg echo two > conftest.two 2613bf2eeab3Smrg mkdir conftest.dir 2614bdc460c5Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2615bf2eeab3Smrg test -s conftest.one && test -s conftest.two && 2616bf2eeab3Smrg test -s conftest.dir/conftest.one && 2617bf2eeab3Smrg test -s conftest.dir/conftest.two 2618bf2eeab3Smrg then 2619bdc460c5Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2620bf2eeab3Smrg break 3 2621bf2eeab3Smrg fi 262214c0a534Smrg fi 262314c0a534Smrg fi 262414c0a534Smrg done 262514c0a534Smrg done 262614c0a534Smrg ;; 262714c0a534Smrgesac 2628bf2eeab3Smrg 2629576bae58Smrg done 2630bf2eeab3SmrgIFS=$as_save_IFS 263114c0a534Smrg 2632bf2eeab3Smrgrm -rf conftest.one conftest.two conftest.dir 263314c0a534Smrg 263414c0a534Smrgfi 2635bdc460c5Smrg if test ${ac_cv_path_install+y}; then 263614c0a534Smrg INSTALL=$ac_cv_path_install 263714c0a534Smrg else 2638bf2eeab3Smrg # As a last resort, use the slow shell script. Don't cache a 2639bf2eeab3Smrg # value for INSTALL within a source directory, because that will 264014c0a534Smrg # break other packages using the cache if that directory is 2641bf2eeab3Smrg # removed, or if the value is a relative name. 264214c0a534Smrg INSTALL=$ac_install_sh 264314c0a534Smrg fi 264414c0a534Smrgfi 2645bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2646bdc460c5Smrgprintf "%s\n" "$INSTALL" >&6; } 264714c0a534Smrg 264814c0a534Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 264914c0a534Smrg# It thinks the first close brace ends the variable substitution. 265014c0a534Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 265114c0a534Smrg 265214c0a534Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 265314c0a534Smrg 265414c0a534Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 265514c0a534Smrg 2656bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2657bdc460c5Smrgprintf %s "checking whether build environment is sane... " >&6; } 2658bf2eeab3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2659bf2eeab3Smrg# name. Accept space and tab only in the latter. 2660bf2eeab3Smrgam_lf=' 2661bf2eeab3Smrg' 2662bf2eeab3Smrgcase `pwd` in 2663bf2eeab3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2664576bae58Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2665bf2eeab3Smrgesac 2666bf2eeab3Smrgcase $srcdir in 2667bf2eeab3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 266824047306Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2669bf2eeab3Smrgesac 2670bf2eeab3Smrg 267124047306Smrg# Do 'set' in a subshell so we don't clobber the current shell's 267214c0a534Smrg# arguments. Must try -L first in case configure is actually a 267314c0a534Smrg# symlink; some systems play weird games with the mod time of symlinks 267414c0a534Smrg# (eg FreeBSD returns the mod time of the symlink's containing 267514c0a534Smrg# directory). 267614c0a534Smrgif ( 267724047306Smrg am_has_slept=no 267824047306Smrg for am_try in 1 2; do 267924047306Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 268024047306Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 268124047306Smrg if test "$*" = "X"; then 268224047306Smrg # -L didn't work. 268324047306Smrg set X `ls -t "$srcdir/configure" conftest.file` 268424047306Smrg fi 268524047306Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 268624047306Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 268724047306Smrg 268824047306Smrg # If neither matched, then we have a broken ls. This can happen 268924047306Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 269024047306Smrg # broken ls alias from the environment. This has actually 269124047306Smrg # happened. Such a system could not be considered "sane". 269224047306Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 269324047306Smrg alias in your environment" "$LINENO" 5 269424047306Smrg fi 269524047306Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 269624047306Smrg break 269724047306Smrg fi 269824047306Smrg # Just in case. 269924047306Smrg sleep 1 270024047306Smrg am_has_slept=yes 270124047306Smrg done 270214c0a534Smrg test "$2" = conftest.file 270314c0a534Smrg ) 270414c0a534Smrgthen 270514c0a534Smrg # Ok. 270614c0a534Smrg : 270714c0a534Smrgelse 2708576bae58Smrg as_fn_error $? "newly created file is older than distributed files! 2709576bae58SmrgCheck your system clock" "$LINENO" 5 271014c0a534Smrgfi 2711bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2712bdc460c5Smrgprintf "%s\n" "yes" >&6; } 271324047306Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 271424047306Smrg# generated files are strictly newer. 271524047306Smrgam_sleep_pid= 271624047306Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 271724047306Smrg ( sleep 1 ) & 271824047306Smrg am_sleep_pid=$! 271924047306Smrgfi 272024047306Smrg 272124047306Smrgrm -f conftest.file 272224047306Smrg 272314c0a534Smrgtest "$program_prefix" != NONE && 2724bf2eeab3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 272514c0a534Smrg# Use a double $ so make ignores it. 272614c0a534Smrgtest "$program_suffix" != NONE && 2727bf2eeab3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2728bf2eeab3Smrg# Double any \ or $. 272914c0a534Smrg# By default was `s,x,x', remove it if useless. 2730bf2eeab3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2731bdc460c5Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2732bdc460c5Smrg 273314c0a534Smrg 273424047306Smrg# Expand $ac_aux_dir to an absolute path. 273524047306Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 273614c0a534Smrg 2737bdc460c5Smrg 2738bdc460c5Smrg if test x"${MISSING+set}" != xset; then 2739bdc460c5Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 2740bf2eeab3Smrgfi 274114c0a534Smrg# Use eval to expand $SHELL 274224047306Smrgif eval "$MISSING --is-lightweight"; then 274324047306Smrg am_missing_run="$MISSING " 274414c0a534Smrgelse 274514c0a534Smrg am_missing_run= 2746bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2747bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2748bf2eeab3Smrgfi 2749bf2eeab3Smrg 275024047306Smrgif test x"${install_sh+set}" != xset; then 2751bf2eeab3Smrg case $am_aux_dir in 2752bf2eeab3Smrg *\ * | *\ *) 2753bf2eeab3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2754bf2eeab3Smrg *) 2755bf2eeab3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2756bf2eeab3Smrg esac 2757bf2eeab3Smrgfi 2758bf2eeab3Smrg 275924047306Smrg# Installed binaries are usually stripped using 'strip' when the user 276024047306Smrg# run "make install-strip". However 'strip' might not be the right 2761bf2eeab3Smrg# tool to use in cross-compilation environments, therefore Automake 276224047306Smrg# will honor the 'STRIP' environment variable to overrule this program. 2763bf2eeab3Smrgif test "$cross_compiling" != no; then 2764bf2eeab3Smrg if test -n "$ac_tool_prefix"; then 2765bf2eeab3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2766bf2eeab3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2767bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 2769bdc460c5Smrgif test ${ac_cv_prog_STRIP+y} 2770bdc460c5Smrgthen : 2771bdc460c5Smrg printf %s "(cached) " >&6 2772bdc460c5Smrgelse $as_nop 2773bf2eeab3Smrg if test -n "$STRIP"; then 2774bf2eeab3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2775bf2eeab3Smrgelse 2776bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777bf2eeab3Smrgfor as_dir in $PATH 2778bf2eeab3Smrgdo 2779bf2eeab3Smrg IFS=$as_save_IFS 2780bdc460c5Smrg case $as_dir in #((( 2781bdc460c5Smrg '') as_dir=./ ;; 2782bdc460c5Smrg */) ;; 2783bdc460c5Smrg *) as_dir=$as_dir/ ;; 2784bdc460c5Smrg esac 2785576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2786bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2787bf2eeab3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2788bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2789bf2eeab3Smrg break 2 2790bf2eeab3Smrg fi 2791bf2eeab3Smrgdone 2792576bae58Smrg done 2793bf2eeab3SmrgIFS=$as_save_IFS 2794bf2eeab3Smrg 2795bf2eeab3Smrgfi 2796bf2eeab3Smrgfi 2797bf2eeab3SmrgSTRIP=$ac_cv_prog_STRIP 2798bf2eeab3Smrgif test -n "$STRIP"; then 2799bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2800bdc460c5Smrgprintf "%s\n" "$STRIP" >&6; } 2801bf2eeab3Smrgelse 2802bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803bdc460c5Smrgprintf "%s\n" "no" >&6; } 2804bf2eeab3Smrgfi 2805bf2eeab3Smrg 2806bf2eeab3Smrg 2807bf2eeab3Smrgfi 2808bf2eeab3Smrgif test -z "$ac_cv_prog_STRIP"; then 2809bf2eeab3Smrg ac_ct_STRIP=$STRIP 2810bf2eeab3Smrg # Extract the first word of "strip", so it can be a program name with args. 2811bf2eeab3Smrgset dummy strip; ac_word=$2 2812bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 2814bdc460c5Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 2815bdc460c5Smrgthen : 2816bdc460c5Smrg printf %s "(cached) " >&6 2817bdc460c5Smrgelse $as_nop 2818bf2eeab3Smrg if test -n "$ac_ct_STRIP"; then 2819bf2eeab3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2820bf2eeab3Smrgelse 2821bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822bf2eeab3Smrgfor as_dir in $PATH 2823bf2eeab3Smrgdo 2824bf2eeab3Smrg IFS=$as_save_IFS 2825bdc460c5Smrg case $as_dir in #((( 2826bdc460c5Smrg '') as_dir=./ ;; 2827bdc460c5Smrg */) ;; 2828bdc460c5Smrg *) as_dir=$as_dir/ ;; 2829bdc460c5Smrg esac 2830576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2831bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2832bf2eeab3Smrg ac_cv_prog_ac_ct_STRIP="strip" 2833bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2834bf2eeab3Smrg break 2 2835bf2eeab3Smrg fi 2836bf2eeab3Smrgdone 2837576bae58Smrg done 2838bf2eeab3SmrgIFS=$as_save_IFS 2839bf2eeab3Smrg 2840bf2eeab3Smrgfi 2841bf2eeab3Smrgfi 2842bf2eeab3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2843bf2eeab3Smrgif test -n "$ac_ct_STRIP"; then 2844bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2845bdc460c5Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 2846bf2eeab3Smrgelse 2847bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848bdc460c5Smrgprintf "%s\n" "no" >&6; } 2849bf2eeab3Smrgfi 2850bf2eeab3Smrg 2851bf2eeab3Smrg if test "x$ac_ct_STRIP" = x; then 2852bf2eeab3Smrg STRIP=":" 2853bf2eeab3Smrg else 2854bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 2855bf2eeab3Smrgyes:) 2856bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2857bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2858bf2eeab3Smrgac_tool_warned=yes ;; 2859bf2eeab3Smrgesac 2860bf2eeab3Smrg STRIP=$ac_ct_STRIP 2861bf2eeab3Smrg fi 2862bf2eeab3Smrgelse 2863bf2eeab3Smrg STRIP="$ac_cv_prog_STRIP" 2864bf2eeab3Smrgfi 2865bf2eeab3Smrg 2866bf2eeab3Smrgfi 2867bf2eeab3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2868bf2eeab3Smrg 2869bdc460c5Smrg 2870bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2871bdc460c5Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 2872bf2eeab3Smrgif test -z "$MKDIR_P"; then 2873bdc460c5Smrg if test ${ac_cv_path_mkdir+y} 2874bdc460c5Smrgthen : 2875bdc460c5Smrg printf %s "(cached) " >&6 2876bdc460c5Smrgelse $as_nop 2877bf2eeab3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2879bf2eeab3Smrgdo 2880bf2eeab3Smrg IFS=$as_save_IFS 2881bdc460c5Smrg case $as_dir in #((( 2882bdc460c5Smrg '') as_dir=./ ;; 2883bdc460c5Smrg */) ;; 2884bdc460c5Smrg *) as_dir=$as_dir/ ;; 2885bdc460c5Smrg esac 2886576bae58Smrg for ac_prog in mkdir gmkdir; do 2887bf2eeab3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2888bdc460c5Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2889bdc460c5Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2890bdc460c5Smrg 'mkdir ('*'coreutils) '* | \ 2891bdc460c5Smrg 'BusyBox '* | \ 2892bf2eeab3Smrg 'mkdir (fileutils) '4.1*) 2893bdc460c5Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2894bf2eeab3Smrg break 3;; 2895bf2eeab3Smrg esac 2896bf2eeab3Smrg done 2897bf2eeab3Smrg done 2898576bae58Smrg done 2899bf2eeab3SmrgIFS=$as_save_IFS 2900bf2eeab3Smrg 2901bf2eeab3Smrgfi 2902bf2eeab3Smrg 2903576bae58Smrg test -d ./--version && rmdir ./--version 2904bdc460c5Smrg if test ${ac_cv_path_mkdir+y}; then 2905bf2eeab3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 290614c0a534Smrg else 2907bf2eeab3Smrg # As a last resort, use the slow shell script. Don't cache a 2908bf2eeab3Smrg # value for MKDIR_P within a source directory, because that will 2909bf2eeab3Smrg # break other packages using the cache if that directory is 2910bf2eeab3Smrg # removed, or if the value is a relative name. 2911bf2eeab3Smrg MKDIR_P="$ac_install_sh -d" 291214c0a534Smrg fi 291314c0a534Smrgfi 2914bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2915bdc460c5Smrgprintf "%s\n" "$MKDIR_P" >&6; } 2916bf2eeab3Smrg 291714c0a534Smrgfor ac_prog in gawk mawk nawk awk 291814c0a534Smrgdo 291914c0a534Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 292014c0a534Smrgset dummy $ac_prog; ac_word=$2 2921bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 2923bdc460c5Smrgif test ${ac_cv_prog_AWK+y} 2924bdc460c5Smrgthen : 2925bdc460c5Smrg printf %s "(cached) " >&6 2926bdc460c5Smrgelse $as_nop 292714c0a534Smrg if test -n "$AWK"; then 292814c0a534Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 292914c0a534Smrgelse 293014c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 293114c0a534Smrgfor as_dir in $PATH 293214c0a534Smrgdo 293314c0a534Smrg IFS=$as_save_IFS 2934bdc460c5Smrg case $as_dir in #((( 2935bdc460c5Smrg '') as_dir=./ ;; 2936bdc460c5Smrg */) ;; 2937bdc460c5Smrg *) as_dir=$as_dir/ ;; 2938bdc460c5Smrg esac 2939576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2940bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 294114c0a534Smrg ac_cv_prog_AWK="$ac_prog" 2942bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 294314c0a534Smrg break 2 294414c0a534Smrg fi 294514c0a534Smrgdone 2946576bae58Smrg done 2947bf2eeab3SmrgIFS=$as_save_IFS 294814c0a534Smrg 294914c0a534Smrgfi 295014c0a534Smrgfi 295114c0a534SmrgAWK=$ac_cv_prog_AWK 295214c0a534Smrgif test -n "$AWK"; then 2953bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2954bdc460c5Smrgprintf "%s\n" "$AWK" >&6; } 295514c0a534Smrgelse 2956bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957bdc460c5Smrgprintf "%s\n" "no" >&6; } 295814c0a534Smrgfi 295914c0a534Smrg 2960bf2eeab3Smrg 296114c0a534Smrg test -n "$AWK" && break 296214c0a534Smrgdone 296314c0a534Smrg 2964bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2965bdc460c5Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2966bf2eeab3Smrgset x ${MAKE-make} 2967bdc460c5Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2968bdc460c5Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 2969bdc460c5Smrgthen : 2970bdc460c5Smrg printf %s "(cached) " >&6 2971bdc460c5Smrgelse $as_nop 297214c0a534Smrg cat >conftest.make <<\_ACEOF 2973bf2eeab3SmrgSHELL = /bin/sh 297414c0a534Smrgall: 2975bf2eeab3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 297614c0a534Smrg_ACEOF 2977576bae58Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2978bf2eeab3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2979bf2eeab3Smrg *@@@%%%=?*=@@@%%%*) 2980bf2eeab3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2981bf2eeab3Smrg *) 2982bf2eeab3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2983bf2eeab3Smrgesac 298414c0a534Smrgrm -f conftest.make 298514c0a534Smrgfi 2986bf2eeab3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2987bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2988bdc460c5Smrgprintf "%s\n" "yes" >&6; } 298914c0a534Smrg SET_MAKE= 299014c0a534Smrgelse 2991bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992bdc460c5Smrgprintf "%s\n" "no" >&6; } 299314c0a534Smrg SET_MAKE="MAKE=${MAKE-make}" 299414c0a534Smrgfi 299514c0a534Smrg 299614c0a534Smrgrm -rf .tst 2>/dev/null 299714c0a534Smrgmkdir .tst 2>/dev/null 299814c0a534Smrgif test -d .tst; then 299914c0a534Smrg am__leading_dot=. 300014c0a534Smrgelse 300114c0a534Smrg am__leading_dot=_ 300214c0a534Smrgfi 300314c0a534Smrgrmdir .tst 2>/dev/null 300414c0a534Smrg 300524047306Smrg# Check whether --enable-silent-rules was given. 3006bdc460c5Smrgif test ${enable_silent_rules+y} 3007bdc460c5Smrgthen : 300824047306Smrg enableval=$enable_silent_rules; 300924047306Smrgfi 301024047306Smrg 301124047306Smrgcase $enable_silent_rules in # ((( 301224047306Smrg yes) AM_DEFAULT_VERBOSITY=0;; 301324047306Smrg no) AM_DEFAULT_VERBOSITY=1;; 301424047306Smrg *) AM_DEFAULT_VERBOSITY=1;; 301524047306Smrgesac 301624047306Smrgam_make=${MAKE-make} 3017bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3018bdc460c5Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 3019bdc460c5Smrgif test ${am_cv_make_support_nested_variables+y} 3020bdc460c5Smrgthen : 3021bdc460c5Smrg printf %s "(cached) " >&6 3022bdc460c5Smrgelse $as_nop 3023bdc460c5Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 302424047306SmrgBAR0=false 302524047306SmrgBAR1=true 302624047306SmrgV=1 302724047306Smrgam__doit: 302824047306Smrg @$(TRUE) 302924047306Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 303024047306Smrg am_cv_make_support_nested_variables=yes 303124047306Smrgelse 303224047306Smrg am_cv_make_support_nested_variables=no 303324047306Smrgfi 303424047306Smrgfi 3035bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3036bdc460c5Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 303724047306Smrgif test $am_cv_make_support_nested_variables = yes; then 303824047306Smrg AM_V='$(V)' 303924047306Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 304024047306Smrgelse 304124047306Smrg AM_V=$AM_DEFAULT_VERBOSITY 304224047306Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 304324047306Smrgfi 304424047306SmrgAM_BACKSLASH='\' 304524047306Smrg 3046bf2eeab3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 3047bf2eeab3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3048bf2eeab3Smrg # is not polluted with repeated "-I." 3049bf2eeab3Smrg am__isrc=' -I$(srcdir)' 3050bf2eeab3Smrg # test to see if srcdir already configured 3051bf2eeab3Smrg if test -f $srcdir/config.status; then 3052576bae58Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3053bf2eeab3Smrg fi 305414c0a534Smrgfi 305514c0a534Smrg 305614c0a534Smrg# test whether we have cygpath 305714c0a534Smrgif test -z "$CYGPATH_W"; then 305814c0a534Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 305914c0a534Smrg CYGPATH_W='cygpath -w' 306014c0a534Smrg else 306114c0a534Smrg CYGPATH_W=echo 306214c0a534Smrg fi 306314c0a534Smrgfi 306414c0a534Smrg 306514c0a534Smrg 306614c0a534Smrg# Define the identity of the package. 306714c0a534Smrg PACKAGE='smproxy' 3068bdc460c5Smrg VERSION='1.0.7' 306914c0a534Smrg 307014c0a534Smrg 3071bdc460c5Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 307214c0a534Smrg 307314c0a534Smrg 3074bdc460c5Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 307514c0a534Smrg 307614c0a534Smrg# Some tools Automake needs. 307714c0a534Smrg 307814c0a534SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 307914c0a534Smrg 308014c0a534Smrg 308114c0a534SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 308214c0a534Smrg 308314c0a534Smrg 308414c0a534SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 308514c0a534Smrg 308614c0a534Smrg 308714c0a534SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 308814c0a534Smrg 308914c0a534Smrg 309014c0a534SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 309114c0a534Smrg 309224047306Smrg# For better backward compatibility. To be removed once Automake 1.9.x 309324047306Smrg# dies out for good. For more background, see: 3094bdc460c5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3095bdc460c5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 309624047306Smrgmkdir_p='$(MKDIR_P)' 309714c0a534Smrg 309824047306Smrg# We need awk for the "check" target (and possibly the TAP driver). The 309924047306Smrg# system "awk" is bad on some platforms. 310024047306Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 310124047306Smrg# in the wild :-( We should find a proper way to deprecate it ... 310224047306SmrgAMTAR='$${TAR-tar}' 310314c0a534Smrg 310414c0a534Smrg 310524047306Smrg# We'll loop over all known methods to create a tar archive until one works. 310624047306Smrg_am_tools='gnutar pax cpio none' 310714c0a534Smrg 310824047306Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 310914c0a534Smrg 311014c0a534Smrg 3111bf2eeab3Smrg 3112bf2eeab3Smrg 3113bf2eeab3Smrg 3114bdc460c5Smrg# Variables for tags utilities; see am/tags.am 3115bdc460c5Smrgif test -z "$CTAGS"; then 3116bdc460c5Smrg CTAGS=ctags 3117bdc460c5Smrgfi 3118bdc460c5Smrg 3119bdc460c5Smrgif test -z "$ETAGS"; then 3120bdc460c5Smrg ETAGS=etags 3121bdc460c5Smrgfi 3122bdc460c5Smrg 3123bdc460c5Smrgif test -z "$CSCOPE"; then 3124bdc460c5Smrg CSCOPE=cscope 3125bdc460c5Smrgfi 3126bdc460c5Smrg 3127bdc460c5Smrg 3128bf2eeab3Smrg 312924047306Smrg# POSIX will say in a future version that running "rm -f" with no argument 313024047306Smrg# is OK; and we want to be able to make that assumption in our Makefile 313124047306Smrg# recipes. So use an aggressive probe to check that the usage we want is 313224047306Smrg# actually supported "in the wild" to an acceptable degree. 313324047306Smrg# See automake bug#10828. 313424047306Smrg# To make any issue more visible, cause the running configure to be aborted 313524047306Smrg# by default if the 'rm' program in use doesn't match our expectations; the 313624047306Smrg# user can still override this though. 313724047306Smrgif rm -f && rm -fr && rm -rf; then : OK; else 313824047306Smrg cat >&2 <<'END' 313924047306SmrgOops! 3140bf2eeab3Smrg 314124047306SmrgYour 'rm' program seems unable to run without file operands specified 314224047306Smrgon the command line, even when the '-f' option is present. This is contrary 314324047306Smrgto the behaviour of most rm programs out there, and not conforming with 314424047306Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3145bf2eeab3Smrg 314624047306SmrgPlease tell bug-automake@gnu.org about your system, including the value 314724047306Smrgof your $PATH and any error possibly output before this message. This 314824047306Smrgcan help us improve future automake versions. 3149bf2eeab3Smrg 315024047306SmrgEND 315124047306Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 315224047306Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 315324047306Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 315424047306Smrg echo >&2 315524047306Smrg else 315624047306Smrg cat >&2 <<'END' 315724047306SmrgAborting the configuration process, to ensure you take notice of the issue. 3158bf2eeab3Smrg 315924047306SmrgYou can download and install GNU coreutils to get an 'rm' implementation 3160bdc460c5Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 3161bf2eeab3Smrg 316224047306SmrgIf you want to complete the configuration process using your problematic 316324047306Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 316424047306Smrgto "yes", and re-run configure. 3165bf2eeab3Smrg 316624047306SmrgEND 316724047306Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 316824047306Smrg fi 316924047306Smrgfi 3170bf2eeab3Smrg 3171bf2eeab3Smrg 317224047306Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE 317324047306Smrg# Must be called before any macros that run the compiler (like 317424047306Smrg# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 3175bdc460c5Smrg 3176bdc460c5Smrg 3177bdc460c5Smrg 3178bdc460c5Smrg 3179bdc460c5Smrg 3180bdc460c5Smrg 3181bdc460c5Smrg 3182bdc460c5Smrg 3183bdc460c5Smrg 3184576bae58SmrgDEPDIR="${am__leading_dot}deps" 318514c0a534Smrg 3186576bae58Smrgac_config_commands="$ac_config_commands depfiles" 3187576bae58Smrg 3188bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3189bdc460c5Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3190bdc460c5Smrgcat > confinc.mk << 'END' 3191576bae58Smrgam__doit: 3192bdc460c5Smrg @echo this is the am__doit target >confinc.out 3193576bae58Smrg.PHONY: am__doit 3194576bae58SmrgEND 3195576bae58Smrgam__include="#" 3196576bae58Smrgam__quote= 3197bdc460c5Smrg# BSD make does it like this. 3198bdc460c5Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 3199bdc460c5Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3200bdc460c5Smrgecho 'include confinc.mk # ignored' > confmf.GNU 3201bdc460c5Smrg_am_result=no 3202bdc460c5Smrgfor s in GNU BSD; do 3203bdc460c5Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3204bdc460c5Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3205bdc460c5Smrg ac_status=$? 3206bdc460c5Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207bdc460c5Smrg (exit $ac_status); } 3208bdc460c5Smrg case $?:`cat confinc.out 2>/dev/null` in #( 3209bdc460c5Smrg '0:this is the am__doit target') : 3210bdc460c5Smrg case $s in #( 3211bdc460c5Smrg BSD) : 3212bdc460c5Smrg am__include='.include' am__quote='"' ;; #( 3213bdc460c5Smrg *) : 3214bdc460c5Smrg am__include='include' am__quote='' ;; 3215bdc460c5Smrgesac ;; #( 3216bdc460c5Smrg *) : 3217576bae58Smrg ;; 3218bdc460c5Smrgesac 3219bdc460c5Smrg if test "$am__include" != "#"; then 3220bdc460c5Smrg _am_result="yes ($s style)" 3221bdc460c5Smrg break 3222bdc460c5Smrg fi 3223bdc460c5Smrgdone 3224bdc460c5Smrgrm -f confinc.* confmf.* 3225bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3226bdc460c5Smrgprintf "%s\n" "${_am_result}" >&6; } 3227576bae58Smrg 3228576bae58Smrg# Check whether --enable-dependency-tracking was given. 3229bdc460c5Smrgif test ${enable_dependency_tracking+y} 3230bdc460c5Smrgthen : 3231576bae58Smrg enableval=$enable_dependency_tracking; 3232576bae58Smrgfi 3233576bae58Smrg 3234576bae58Smrgif test "x$enable_dependency_tracking" != xno; then 3235576bae58Smrg am_depcomp="$ac_aux_dir/depcomp" 3236576bae58Smrg AMDEPBACKSLASH='\' 323724047306Smrg am__nodep='_no' 3238576bae58Smrgfi 3239576bae58Smrg if test "x$enable_dependency_tracking" != xno; then 3240576bae58Smrg AMDEP_TRUE= 3241576bae58Smrg AMDEP_FALSE='#' 3242576bae58Smrgelse 3243576bae58Smrg AMDEP_TRUE='#' 3244576bae58Smrg AMDEP_FALSE= 3245576bae58Smrgfi 3246576bae58Smrg 3247576bae58Smrg 3248576bae58Smrgac_ext=c 3249576bae58Smrgac_cpp='$CPP $CPPFLAGS' 3250576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3251576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3252576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3253576bae58Smrgif test -n "$ac_tool_prefix"; then 3254576bae58Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3255576bae58Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3256bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3258bdc460c5Smrgif test ${ac_cv_prog_CC+y} 3259bdc460c5Smrgthen : 3260bdc460c5Smrg printf %s "(cached) " >&6 3261bdc460c5Smrgelse $as_nop 3262576bae58Smrg if test -n "$CC"; then 3263576bae58Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3264576bae58Smrgelse 3265576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266576bae58Smrgfor as_dir in $PATH 3267576bae58Smrgdo 3268576bae58Smrg IFS=$as_save_IFS 3269bdc460c5Smrg case $as_dir in #((( 3270bdc460c5Smrg '') as_dir=./ ;; 3271bdc460c5Smrg */) ;; 3272bdc460c5Smrg *) as_dir=$as_dir/ ;; 3273bdc460c5Smrg esac 3274576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3275bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3276576bae58Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3277bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3278576bae58Smrg break 2 3279576bae58Smrg fi 3280576bae58Smrgdone 3281576bae58Smrg done 3282576bae58SmrgIFS=$as_save_IFS 3283576bae58Smrg 3284576bae58Smrgfi 3285576bae58Smrgfi 3286576bae58SmrgCC=$ac_cv_prog_CC 3287576bae58Smrgif test -n "$CC"; then 3288bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3289bdc460c5Smrgprintf "%s\n" "$CC" >&6; } 3290576bae58Smrgelse 3291bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292bdc460c5Smrgprintf "%s\n" "no" >&6; } 3293576bae58Smrgfi 329414c0a534Smrg 3295bf2eeab3Smrg 329614c0a534Smrgfi 329714c0a534Smrgif test -z "$ac_cv_prog_CC"; then 329814c0a534Smrg ac_ct_CC=$CC 329914c0a534Smrg # Extract the first word of "gcc", so it can be a program name with args. 330014c0a534Smrgset dummy gcc; ac_word=$2 3301bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3303bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3304bdc460c5Smrgthen : 3305bdc460c5Smrg printf %s "(cached) " >&6 3306bdc460c5Smrgelse $as_nop 330714c0a534Smrg if test -n "$ac_ct_CC"; then 330814c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 330914c0a534Smrgelse 331014c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 331114c0a534Smrgfor as_dir in $PATH 331214c0a534Smrgdo 331314c0a534Smrg IFS=$as_save_IFS 3314bdc460c5Smrg case $as_dir in #((( 3315bdc460c5Smrg '') as_dir=./ ;; 3316bdc460c5Smrg */) ;; 3317bdc460c5Smrg *) as_dir=$as_dir/ ;; 3318bdc460c5Smrg esac 3319576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3320bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 332114c0a534Smrg ac_cv_prog_ac_ct_CC="gcc" 3322bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 332314c0a534Smrg break 2 332414c0a534Smrg fi 332514c0a534Smrgdone 3326576bae58Smrg done 3327bf2eeab3SmrgIFS=$as_save_IFS 332814c0a534Smrg 332914c0a534Smrgfi 333014c0a534Smrgfi 333114c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 333214c0a534Smrgif test -n "$ac_ct_CC"; then 3333bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 333514c0a534Smrgelse 3336bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337bdc460c5Smrgprintf "%s\n" "no" >&6; } 333814c0a534Smrgfi 333914c0a534Smrg 3340bf2eeab3Smrg if test "x$ac_ct_CC" = x; then 3341bf2eeab3Smrg CC="" 3342bf2eeab3Smrg else 3343bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 3344bf2eeab3Smrgyes:) 3345bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347bf2eeab3Smrgac_tool_warned=yes ;; 3348bf2eeab3Smrgesac 3349bf2eeab3Smrg CC=$ac_ct_CC 3350bf2eeab3Smrg fi 335114c0a534Smrgelse 335214c0a534Smrg CC="$ac_cv_prog_CC" 335314c0a534Smrgfi 335414c0a534Smrg 335514c0a534Smrgif test -z "$CC"; then 3356bf2eeab3Smrg if test -n "$ac_tool_prefix"; then 3357bf2eeab3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 335814c0a534Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3359bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3361bdc460c5Smrgif test ${ac_cv_prog_CC+y} 3362bdc460c5Smrgthen : 3363bdc460c5Smrg printf %s "(cached) " >&6 3364bdc460c5Smrgelse $as_nop 336514c0a534Smrg if test -n "$CC"; then 336614c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 336714c0a534Smrgelse 336814c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 336914c0a534Smrgfor as_dir in $PATH 337014c0a534Smrgdo 337114c0a534Smrg IFS=$as_save_IFS 3372bdc460c5Smrg case $as_dir in #((( 3373bdc460c5Smrg '') as_dir=./ ;; 3374bdc460c5Smrg */) ;; 3375bdc460c5Smrg *) as_dir=$as_dir/ ;; 3376bdc460c5Smrg esac 3377576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3378bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 337914c0a534Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3380bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 338114c0a534Smrg break 2 338214c0a534Smrg fi 338314c0a534Smrgdone 3384576bae58Smrg done 3385bf2eeab3SmrgIFS=$as_save_IFS 338614c0a534Smrg 338714c0a534Smrgfi 338814c0a534Smrgfi 338914c0a534SmrgCC=$ac_cv_prog_CC 339014c0a534Smrgif test -n "$CC"; then 3391bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392bdc460c5Smrgprintf "%s\n" "$CC" >&6; } 339314c0a534Smrgelse 3394bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395bdc460c5Smrgprintf "%s\n" "no" >&6; } 339614c0a534Smrgfi 339714c0a534Smrg 339814c0a534Smrg 3399bf2eeab3Smrg fi 340014c0a534Smrgfi 340114c0a534Smrgif test -z "$CC"; then 340214c0a534Smrg # Extract the first word of "cc", so it can be a program name with args. 340314c0a534Smrgset dummy cc; ac_word=$2 3404bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3406bdc460c5Smrgif test ${ac_cv_prog_CC+y} 3407bdc460c5Smrgthen : 3408bdc460c5Smrg printf %s "(cached) " >&6 3409bdc460c5Smrgelse $as_nop 341014c0a534Smrg if test -n "$CC"; then 341114c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 341214c0a534Smrgelse 341314c0a534Smrg ac_prog_rejected=no 341414c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 341514c0a534Smrgfor as_dir in $PATH 341614c0a534Smrgdo 341714c0a534Smrg IFS=$as_save_IFS 3418bdc460c5Smrg case $as_dir in #((( 3419bdc460c5Smrg '') as_dir=./ ;; 3420bdc460c5Smrg */) ;; 3421bdc460c5Smrg *) as_dir=$as_dir/ ;; 3422bdc460c5Smrg esac 3423576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3424bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3425bdc460c5Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 342614c0a534Smrg ac_prog_rejected=yes 342714c0a534Smrg continue 342814c0a534Smrg fi 342914c0a534Smrg ac_cv_prog_CC="cc" 3430bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 343114c0a534Smrg break 2 343214c0a534Smrg fi 343314c0a534Smrgdone 3434576bae58Smrg done 3435bf2eeab3SmrgIFS=$as_save_IFS 343614c0a534Smrg 343714c0a534Smrgif test $ac_prog_rejected = yes; then 343814c0a534Smrg # We found a bogon in the path, so make sure we never use it. 343914c0a534Smrg set dummy $ac_cv_prog_CC 344014c0a534Smrg shift 344114c0a534Smrg if test $# != 0; then 344214c0a534Smrg # We chose a different compiler from the bogus one. 344314c0a534Smrg # However, it has the same basename, so the bogon will be chosen 344414c0a534Smrg # first if we set CC to just the basename; use the full file name. 344514c0a534Smrg shift 3446bdc460c5Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 344714c0a534Smrg fi 344814c0a534Smrgfi 344914c0a534Smrgfi 345014c0a534Smrgfi 345114c0a534SmrgCC=$ac_cv_prog_CC 345214c0a534Smrgif test -n "$CC"; then 3453bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3454bdc460c5Smrgprintf "%s\n" "$CC" >&6; } 345514c0a534Smrgelse 3456bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457bdc460c5Smrgprintf "%s\n" "no" >&6; } 345814c0a534Smrgfi 345914c0a534Smrg 3460bf2eeab3Smrg 346114c0a534Smrgfi 346214c0a534Smrgif test -z "$CC"; then 346314c0a534Smrg if test -n "$ac_tool_prefix"; then 3464bf2eeab3Smrg for ac_prog in cl.exe 346514c0a534Smrg do 346614c0a534Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 346714c0a534Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3468bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3469bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3470bdc460c5Smrgif test ${ac_cv_prog_CC+y} 3471bdc460c5Smrgthen : 3472bdc460c5Smrg printf %s "(cached) " >&6 3473bdc460c5Smrgelse $as_nop 347414c0a534Smrg if test -n "$CC"; then 347514c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 347614c0a534Smrgelse 347714c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 347814c0a534Smrgfor as_dir in $PATH 347914c0a534Smrgdo 348014c0a534Smrg IFS=$as_save_IFS 3481bdc460c5Smrg case $as_dir in #((( 3482bdc460c5Smrg '') as_dir=./ ;; 3483bdc460c5Smrg */) ;; 3484bdc460c5Smrg *) as_dir=$as_dir/ ;; 3485bdc460c5Smrg esac 3486576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3487bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 348814c0a534Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3489bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 349014c0a534Smrg break 2 349114c0a534Smrg fi 349214c0a534Smrgdone 3493576bae58Smrg done 3494bf2eeab3SmrgIFS=$as_save_IFS 349514c0a534Smrg 349614c0a534Smrgfi 349714c0a534Smrgfi 349814c0a534SmrgCC=$ac_cv_prog_CC 349914c0a534Smrgif test -n "$CC"; then 3500bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3501bdc460c5Smrgprintf "%s\n" "$CC" >&6; } 350214c0a534Smrgelse 3503bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504bdc460c5Smrgprintf "%s\n" "no" >&6; } 350514c0a534Smrgfi 350614c0a534Smrg 3507bf2eeab3Smrg 350814c0a534Smrg test -n "$CC" && break 350914c0a534Smrg done 351014c0a534Smrgfi 351114c0a534Smrgif test -z "$CC"; then 351214c0a534Smrg ac_ct_CC=$CC 3513bf2eeab3Smrg for ac_prog in cl.exe 351414c0a534Smrgdo 351514c0a534Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 351614c0a534Smrgset dummy $ac_prog; ac_word=$2 3517bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3519bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3520bdc460c5Smrgthen : 3521bdc460c5Smrg printf %s "(cached) " >&6 3522bdc460c5Smrgelse $as_nop 352314c0a534Smrg if test -n "$ac_ct_CC"; then 352414c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 352514c0a534Smrgelse 352614c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 352714c0a534Smrgfor as_dir in $PATH 352814c0a534Smrgdo 352914c0a534Smrg IFS=$as_save_IFS 3530bdc460c5Smrg case $as_dir in #((( 3531bdc460c5Smrg '') as_dir=./ ;; 3532bdc460c5Smrg */) ;; 3533bdc460c5Smrg *) as_dir=$as_dir/ ;; 3534bdc460c5Smrg esac 3535576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3536bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 353714c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3538bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 353914c0a534Smrg break 2 354014c0a534Smrg fi 354114c0a534Smrgdone 3542576bae58Smrg done 3543bf2eeab3SmrgIFS=$as_save_IFS 354414c0a534Smrg 354514c0a534Smrgfi 354614c0a534Smrgfi 354714c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 354814c0a534Smrgif test -n "$ac_ct_CC"; then 3549bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3550bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 355114c0a534Smrgelse 3552bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553bdc460c5Smrgprintf "%s\n" "no" >&6; } 355414c0a534Smrgfi 355514c0a534Smrg 3556bf2eeab3Smrg 355714c0a534Smrg test -n "$ac_ct_CC" && break 355814c0a534Smrgdone 355914c0a534Smrg 3560bf2eeab3Smrg if test "x$ac_ct_CC" = x; then 3561bf2eeab3Smrg CC="" 3562bf2eeab3Smrg else 3563bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 3564bf2eeab3Smrgyes:) 3565bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3566bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3567bdc460c5Smrgac_tool_warned=yes ;; 3568bdc460c5Smrgesac 3569bdc460c5Smrg CC=$ac_ct_CC 3570bdc460c5Smrg fi 3571bdc460c5Smrgfi 3572bdc460c5Smrg 3573bdc460c5Smrgfi 3574bdc460c5Smrgif test -z "$CC"; then 3575bdc460c5Smrg if test -n "$ac_tool_prefix"; then 3576bdc460c5Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3577bdc460c5Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 3578bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3579bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3580bdc460c5Smrgif test ${ac_cv_prog_CC+y} 3581bdc460c5Smrgthen : 3582bdc460c5Smrg printf %s "(cached) " >&6 3583bdc460c5Smrgelse $as_nop 3584bdc460c5Smrg if test -n "$CC"; then 3585bdc460c5Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3586bdc460c5Smrgelse 3587bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588bdc460c5Smrgfor as_dir in $PATH 3589bdc460c5Smrgdo 3590bdc460c5Smrg IFS=$as_save_IFS 3591bdc460c5Smrg case $as_dir in #((( 3592bdc460c5Smrg '') as_dir=./ ;; 3593bdc460c5Smrg */) ;; 3594bdc460c5Smrg *) as_dir=$as_dir/ ;; 3595bdc460c5Smrg esac 3596bdc460c5Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3597bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3598bdc460c5Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 3599bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3600bdc460c5Smrg break 2 3601bdc460c5Smrg fi 3602bdc460c5Smrgdone 3603bdc460c5Smrg done 3604bdc460c5SmrgIFS=$as_save_IFS 3605bdc460c5Smrg 3606bdc460c5Smrgfi 3607bdc460c5Smrgfi 3608bdc460c5SmrgCC=$ac_cv_prog_CC 3609bdc460c5Smrgif test -n "$CC"; then 3610bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3611bdc460c5Smrgprintf "%s\n" "$CC" >&6; } 3612bdc460c5Smrgelse 3613bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614bdc460c5Smrgprintf "%s\n" "no" >&6; } 3615bdc460c5Smrgfi 3616bdc460c5Smrg 3617bdc460c5Smrg 3618bdc460c5Smrgfi 3619bdc460c5Smrgif test -z "$ac_cv_prog_CC"; then 3620bdc460c5Smrg ac_ct_CC=$CC 3621bdc460c5Smrg # Extract the first word of "clang", so it can be a program name with args. 3622bdc460c5Smrgset dummy clang; ac_word=$2 3623bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3624bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 3625bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3626bdc460c5Smrgthen : 3627bdc460c5Smrg printf %s "(cached) " >&6 3628bdc460c5Smrgelse $as_nop 3629bdc460c5Smrg if test -n "$ac_ct_CC"; then 3630bdc460c5Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3631bdc460c5Smrgelse 3632bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3633bdc460c5Smrgfor as_dir in $PATH 3634bdc460c5Smrgdo 3635bdc460c5Smrg IFS=$as_save_IFS 3636bdc460c5Smrg case $as_dir in #((( 3637bdc460c5Smrg '') as_dir=./ ;; 3638bdc460c5Smrg */) ;; 3639bdc460c5Smrg *) as_dir=$as_dir/ ;; 3640bdc460c5Smrg esac 3641bdc460c5Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3642bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3643bdc460c5Smrg ac_cv_prog_ac_ct_CC="clang" 3644bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3645bdc460c5Smrg break 2 3646bdc460c5Smrg fi 3647bdc460c5Smrgdone 3648bdc460c5Smrg done 3649bdc460c5SmrgIFS=$as_save_IFS 3650bdc460c5Smrg 3651bdc460c5Smrgfi 3652bdc460c5Smrgfi 3653bdc460c5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3654bdc460c5Smrgif test -n "$ac_ct_CC"; then 3655bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3656bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3657bdc460c5Smrgelse 3658bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3659bdc460c5Smrgprintf "%s\n" "no" >&6; } 3660bdc460c5Smrgfi 3661bdc460c5Smrg 3662bdc460c5Smrg if test "x$ac_ct_CC" = x; then 3663bdc460c5Smrg CC="" 3664bdc460c5Smrg else 3665bdc460c5Smrg case $cross_compiling:$ac_tool_warned in 3666bdc460c5Smrgyes:) 3667bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3668bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3669bf2eeab3Smrgac_tool_warned=yes ;; 3670bf2eeab3Smrgesac 3671bf2eeab3Smrg CC=$ac_ct_CC 3672bf2eeab3Smrg fi 3673bdc460c5Smrgelse 3674bdc460c5Smrg CC="$ac_cv_prog_CC" 367514c0a534Smrgfi 367614c0a534Smrg 367714c0a534Smrgfi 367814c0a534Smrg 367914c0a534Smrg 3680bdc460c5Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3681bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3682576bae58Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3683576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 368414c0a534Smrg 368514c0a534Smrg# Provide some information about the compiler. 3686bdc460c5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3687bf2eeab3Smrgset X $ac_compile 3688bf2eeab3Smrgac_compiler=$2 3689bdc460c5Smrgfor ac_option in --version -v -V -qversion -version; do 3690576bae58Smrg { { ac_try="$ac_compiler $ac_option >&5" 3691bf2eeab3Smrgcase "(($ac_try" in 3692bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3693bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3694bf2eeab3Smrgesac 3695576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3696bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3697576bae58Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 369814c0a534Smrg ac_status=$? 3699576bae58Smrg if test -s conftest.err; then 3700576bae58Smrg sed '10a\ 3701576bae58Smrg... rest of stderr output deleted ... 3702576bae58Smrg 10q' conftest.err >conftest.er1 3703576bae58Smrg cat conftest.er1 >&5 3704576bae58Smrg fi 3705576bae58Smrg rm -f conftest.er1 conftest.err 3706bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3707576bae58Smrg test $ac_status = 0; } 3708576bae58Smrgdone 370914c0a534Smrg 3710576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 371114c0a534Smrg/* end confdefs.h. */ 371214c0a534Smrg 371314c0a534Smrgint 3714bdc460c5Smrgmain (void) 371514c0a534Smrg{ 371614c0a534Smrg 371714c0a534Smrg ; 371814c0a534Smrg return 0; 371914c0a534Smrg} 372014c0a534Smrg_ACEOF 372114c0a534Smrgac_clean_files_save=$ac_clean_files 3722bf2eeab3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 372314c0a534Smrg# Try to create an executable without -o first, disregard a.out. 372414c0a534Smrg# It will help us diagnose broken compilers, and finding out an intuition 372514c0a534Smrg# of exeext. 3726bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3727bdc460c5Smrgprintf %s "checking whether the C compiler works... " >&6; } 3728bdc460c5Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3729bf2eeab3Smrg 3730bf2eeab3Smrg# The possible output files: 3731bf2eeab3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3732bf2eeab3Smrg 3733bf2eeab3Smrgac_rmfiles= 3734bf2eeab3Smrgfor ac_file in $ac_files 3735bf2eeab3Smrgdo 3736bf2eeab3Smrg case $ac_file in 3737bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3738bf2eeab3Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3739bf2eeab3Smrg esac 3740bf2eeab3Smrgdone 3741bf2eeab3Smrgrm -f $ac_rmfiles 3742bf2eeab3Smrg 3743576bae58Smrgif { { ac_try="$ac_link_default" 3744bf2eeab3Smrgcase "(($ac_try" in 3745bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3747bf2eeab3Smrgesac 3748576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3750bf2eeab3Smrg (eval "$ac_link_default") 2>&5 375114c0a534Smrg ac_status=$? 3752bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753bdc460c5Smrg test $ac_status = 0; } 3754bdc460c5Smrgthen : 3755bf2eeab3Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3756bf2eeab3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3757bf2eeab3Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3758bf2eeab3Smrg# so that the user can short-circuit this test for compilers unknown to 3759bf2eeab3Smrg# Autoconf. 3760bf2eeab3Smrgfor ac_file in $ac_files '' 376114c0a534Smrgdo 376214c0a534Smrg test -f "$ac_file" || continue 376314c0a534Smrg case $ac_file in 3764bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 376514c0a534Smrg ;; 376614c0a534Smrg [ab].out ) 376714c0a534Smrg # We found the default executable, but exeext='' is most 376814c0a534Smrg # certainly right. 376914c0a534Smrg break;; 377014c0a534Smrg *.* ) 3771bdc460c5Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3772bf2eeab3Smrg then :; else 3773bf2eeab3Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3774bf2eeab3Smrg fi 3775bf2eeab3Smrg # We set ac_cv_exeext here because the later test for it is not 3776bf2eeab3Smrg # safe: cross compilers may not add the suffix if given an `-o' 3777bf2eeab3Smrg # argument, so we may need to know it at that point already. 3778bf2eeab3Smrg # Even if this section looks crufty: it has the advantage of 3779bf2eeab3Smrg # actually working. 378014c0a534Smrg break;; 378114c0a534Smrg * ) 378214c0a534Smrg break;; 378314c0a534Smrg esac 378414c0a534Smrgdone 3785bf2eeab3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3786bf2eeab3Smrg 3787bdc460c5Smrgelse $as_nop 3788bf2eeab3Smrg ac_file='' 3789bf2eeab3Smrgfi 3790bdc460c5Smrgif test -z "$ac_file" 3791bdc460c5Smrgthen : 3792bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793bdc460c5Smrgprintf "%s\n" "no" >&6; } 3794bdc460c5Smrgprintf "%s\n" "$as_me: failed program was:" >&5 379514c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5 379614c0a534Smrg 3797bdc460c5Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3798bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3799576bae58Smrgas_fn_error 77 "C compiler cannot create executables 3800576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 3801bdc460c5Smrgelse $as_nop 3802bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3803bdc460c5Smrgprintf "%s\n" "yes" >&6; } 3804bdc460c5Smrgfi 3805bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3806bdc460c5Smrgprintf %s "checking for C compiler default output file name... " >&6; } 3807bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3808bdc460c5Smrgprintf "%s\n" "$ac_file" >&6; } 380914c0a534Smrgac_exeext=$ac_cv_exeext 381014c0a534Smrg 3811bf2eeab3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 381214c0a534Smrgac_clean_files=$ac_clean_files_save 3813bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3814bdc460c5Smrgprintf %s "checking for suffix of executables... " >&6; } 3815576bae58Smrgif { { ac_try="$ac_link" 3816bf2eeab3Smrgcase "(($ac_try" in 3817bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3818bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3819bf2eeab3Smrgesac 3820576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3821bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3822bf2eeab3Smrg (eval "$ac_link") 2>&5 382314c0a534Smrg ac_status=$? 3824bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3825bdc460c5Smrg test $ac_status = 0; } 3826bdc460c5Smrgthen : 382714c0a534Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 382814c0a534Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 382914c0a534Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 383014c0a534Smrg# `rm'. 383114c0a534Smrgfor ac_file in conftest.exe conftest conftest.*; do 383214c0a534Smrg test -f "$ac_file" || continue 383314c0a534Smrg case $ac_file in 3834bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 383514c0a534Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 383614c0a534Smrg break;; 383714c0a534Smrg * ) break;; 383814c0a534Smrg esac 383914c0a534Smrgdone 3840bdc460c5Smrgelse $as_nop 3841bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3842bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3843576bae58Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3844576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 384514c0a534Smrgfi 3846576bae58Smrgrm -f conftest conftest$ac_cv_exeext 3847bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3848bdc460c5Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 384914c0a534Smrg 385014c0a534Smrgrm -f conftest.$ac_ext 385114c0a534SmrgEXEEXT=$ac_cv_exeext 385214c0a534Smrgac_exeext=$EXEEXT 3853576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854576bae58Smrg/* end confdefs.h. */ 3855576bae58Smrg#include <stdio.h> 3856576bae58Smrgint 3857bdc460c5Smrgmain (void) 3858576bae58Smrg{ 3859576bae58SmrgFILE *f = fopen ("conftest.out", "w"); 3860576bae58Smrg return ferror (f) || fclose (f) != 0; 3861576bae58Smrg 3862576bae58Smrg ; 3863576bae58Smrg return 0; 3864576bae58Smrg} 3865576bae58Smrg_ACEOF 3866576bae58Smrgac_clean_files="$ac_clean_files conftest.out" 3867576bae58Smrg# Check that the compiler produces executables we can run. If not, either 3868576bae58Smrg# the compiler is broken, or we cross compile. 3869bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3870bdc460c5Smrgprintf %s "checking whether we are cross compiling... " >&6; } 3871576bae58Smrgif test "$cross_compiling" != yes; then 3872576bae58Smrg { { ac_try="$ac_link" 3873576bae58Smrgcase "(($ac_try" in 3874576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3875576bae58Smrg *) ac_try_echo=$ac_try;; 3876576bae58Smrgesac 3877576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3878bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3879576bae58Smrg (eval "$ac_link") 2>&5 3880576bae58Smrg ac_status=$? 3881bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3882576bae58Smrg test $ac_status = 0; } 3883576bae58Smrg if { ac_try='./conftest$ac_cv_exeext' 3884576bae58Smrg { { case "(($ac_try" in 3885576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886576bae58Smrg *) ac_try_echo=$ac_try;; 3887576bae58Smrgesac 3888576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3890576bae58Smrg (eval "$ac_try") 2>&5 3891576bae58Smrg ac_status=$? 3892bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893576bae58Smrg test $ac_status = 0; }; }; then 3894576bae58Smrg cross_compiling=no 3895576bae58Smrg else 3896576bae58Smrg if test "$cross_compiling" = maybe; then 3897576bae58Smrg cross_compiling=yes 3898576bae58Smrg else 3899bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3900bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3901bdc460c5Smrgas_fn_error 77 "cannot run C compiled programs. 3902576bae58SmrgIf you meant to cross compile, use \`--host'. 3903576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 3904576bae58Smrg fi 3905576bae58Smrg fi 3906576bae58Smrgfi 3907bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3908bdc460c5Smrgprintf "%s\n" "$cross_compiling" >&6; } 3909576bae58Smrg 3910576bae58Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3911576bae58Smrgac_clean_files=$ac_clean_files_save 3912bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3913bdc460c5Smrgprintf %s "checking for suffix of object files... " >&6; } 3914bdc460c5Smrgif test ${ac_cv_objext+y} 3915bdc460c5Smrgthen : 3916bdc460c5Smrg printf %s "(cached) " >&6 3917bdc460c5Smrgelse $as_nop 3918576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 391914c0a534Smrg/* end confdefs.h. */ 392014c0a534Smrg 392114c0a534Smrgint 3922bdc460c5Smrgmain (void) 392314c0a534Smrg{ 392414c0a534Smrg 392514c0a534Smrg ; 392614c0a534Smrg return 0; 392714c0a534Smrg} 392814c0a534Smrg_ACEOF 392914c0a534Smrgrm -f conftest.o conftest.obj 3930576bae58Smrgif { { ac_try="$ac_compile" 3931bf2eeab3Smrgcase "(($ac_try" in 3932bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3934bf2eeab3Smrgesac 3935576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3937bf2eeab3Smrg (eval "$ac_compile") 2>&5 393814c0a534Smrg ac_status=$? 3939bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940bdc460c5Smrg test $ac_status = 0; } 3941bdc460c5Smrgthen : 3942bf2eeab3Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3943bf2eeab3Smrg test -f "$ac_file" || continue; 394414c0a534Smrg case $ac_file in 3945bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 394614c0a534Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 394714c0a534Smrg break;; 394814c0a534Smrg esac 394914c0a534Smrgdone 3950bdc460c5Smrgelse $as_nop 3951bdc460c5Smrg printf "%s\n" "$as_me: failed program was:" >&5 395214c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5 395314c0a534Smrg 3954bdc460c5Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3956576bae58Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3957576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 395814c0a534Smrgfi 395914c0a534Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 396014c0a534Smrgfi 3961bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3962bdc460c5Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 396314c0a534SmrgOBJEXT=$ac_cv_objext 396414c0a534Smrgac_objext=$OBJEXT 3965bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3966bdc460c5Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 3967bdc460c5Smrgif test ${ac_cv_c_compiler_gnu+y} 3968bdc460c5Smrgthen : 3969bdc460c5Smrg printf %s "(cached) " >&6 3970bdc460c5Smrgelse $as_nop 3971576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 397214c0a534Smrg/* end confdefs.h. */ 397314c0a534Smrg 397414c0a534Smrgint 3975bdc460c5Smrgmain (void) 397614c0a534Smrg{ 397714c0a534Smrg#ifndef __GNUC__ 397814c0a534Smrg choke me 397914c0a534Smrg#endif 398014c0a534Smrg 398114c0a534Smrg ; 398214c0a534Smrg return 0; 398314c0a534Smrg} 398414c0a534Smrg_ACEOF 3985bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 3986bdc460c5Smrgthen : 398714c0a534Smrg ac_compiler_gnu=yes 3988bdc460c5Smrgelse $as_nop 3989576bae58Smrg ac_compiler_gnu=no 399014c0a534Smrgfi 3991bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 399214c0a534Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 399314c0a534Smrg 399414c0a534Smrgfi 3995bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3996bdc460c5Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3997bdc460c5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3998bdc460c5Smrg 3999bf2eeab3Smrgif test $ac_compiler_gnu = yes; then 4000bf2eeab3Smrg GCC=yes 4001bf2eeab3Smrgelse 4002bf2eeab3Smrg GCC= 4003bf2eeab3Smrgfi 4004bdc460c5Smrgac_test_CFLAGS=${CFLAGS+y} 400514c0a534Smrgac_save_CFLAGS=$CFLAGS 4006bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4007bdc460c5Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 4008bdc460c5Smrgif test ${ac_cv_prog_cc_g+y} 4009bdc460c5Smrgthen : 4010bdc460c5Smrg printf %s "(cached) " >&6 4011bdc460c5Smrgelse $as_nop 4012bf2eeab3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 4013bf2eeab3Smrg ac_c_werror_flag=yes 4014bf2eeab3Smrg ac_cv_prog_cc_g=no 4015bf2eeab3Smrg CFLAGS="-g" 4016576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 401714c0a534Smrg/* end confdefs.h. */ 401814c0a534Smrg 401914c0a534Smrgint 4020bdc460c5Smrgmain (void) 402114c0a534Smrg{ 402214c0a534Smrg 402314c0a534Smrg ; 402414c0a534Smrg return 0; 402514c0a534Smrg} 402614c0a534Smrg_ACEOF 4027bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4028bdc460c5Smrgthen : 4029bf2eeab3Smrg ac_cv_prog_cc_g=yes 4030bdc460c5Smrgelse $as_nop 4031576bae58Smrg CFLAGS="" 4032576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033bf2eeab3Smrg/* end confdefs.h. */ 4034bf2eeab3Smrg 4035bf2eeab3Smrgint 4036bdc460c5Smrgmain (void) 4037bf2eeab3Smrg{ 4038bf2eeab3Smrg 4039bf2eeab3Smrg ; 4040bf2eeab3Smrg return 0; 4041bf2eeab3Smrg} 4042bf2eeab3Smrg_ACEOF 4043bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4044bdc460c5Smrgthen : 4045bf2eeab3Smrg 4046bdc460c5Smrgelse $as_nop 4047576bae58Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4048bf2eeab3Smrg CFLAGS="-g" 4049576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050bf2eeab3Smrg/* end confdefs.h. */ 4051bf2eeab3Smrg 4052bf2eeab3Smrgint 4053bdc460c5Smrgmain (void) 4054bf2eeab3Smrg{ 4055bf2eeab3Smrg 4056bf2eeab3Smrg ; 4057bf2eeab3Smrg return 0; 4058bf2eeab3Smrg} 4059bf2eeab3Smrg_ACEOF 4060bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4061bdc460c5Smrgthen : 406214c0a534Smrg ac_cv_prog_cc_g=yes 4063bf2eeab3Smrgfi 4064bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4065bf2eeab3Smrgfi 4066bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 406714c0a534Smrgfi 4068bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4069bf2eeab3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 407014c0a534Smrgfi 4071bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4072bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4073bdc460c5Smrgif test $ac_test_CFLAGS; then 407414c0a534Smrg CFLAGS=$ac_save_CFLAGS 407514c0a534Smrgelif test $ac_cv_prog_cc_g = yes; then 407614c0a534Smrg if test "$GCC" = yes; then 407714c0a534Smrg CFLAGS="-g -O2" 407814c0a534Smrg else 407914c0a534Smrg CFLAGS="-g" 408014c0a534Smrg fi 408114c0a534Smrgelse 408214c0a534Smrg if test "$GCC" = yes; then 408314c0a534Smrg CFLAGS="-O2" 408414c0a534Smrg else 408514c0a534Smrg CFLAGS= 408614c0a534Smrg fi 408714c0a534Smrgfi 4088bdc460c5Smrgac_prog_cc_stdc=no 4089bdc460c5Smrgif test x$ac_prog_cc_stdc = xno 4090bdc460c5Smrgthen : 4091bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4092bdc460c5Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 4093bdc460c5Smrgif test ${ac_cv_prog_cc_c11+y} 4094bdc460c5Smrgthen : 4095bdc460c5Smrg printf %s "(cached) " >&6 4096bdc460c5Smrgelse $as_nop 4097bdc460c5Smrg ac_cv_prog_cc_c11=no 4098bdc460c5Smrgac_save_CC=$CC 4099bdc460c5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100bdc460c5Smrg/* end confdefs.h. */ 4101bdc460c5Smrg$ac_c_conftest_c11_program 4102bdc460c5Smrg_ACEOF 4103bdc460c5Smrgfor ac_arg in '' -std=gnu11 4104bdc460c5Smrgdo 4105bdc460c5Smrg CC="$ac_save_CC $ac_arg" 4106bdc460c5Smrg if ac_fn_c_try_compile "$LINENO" 4107bdc460c5Smrgthen : 4108bdc460c5Smrg ac_cv_prog_cc_c11=$ac_arg 4109bdc460c5Smrgfi 4110bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4111bdc460c5Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 4112bdc460c5Smrgdone 4113bdc460c5Smrgrm -f conftest.$ac_ext 4114bdc460c5SmrgCC=$ac_save_CC 4115bdc460c5Smrgfi 4116bdc460c5Smrg 4117bdc460c5Smrgif test "x$ac_cv_prog_cc_c11" = xno 4118bdc460c5Smrgthen : 4119bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4120bdc460c5Smrgprintf "%s\n" "unsupported" >&6; } 4121bdc460c5Smrgelse $as_nop 4122bdc460c5Smrg if test "x$ac_cv_prog_cc_c11" = x 4123bdc460c5Smrgthen : 4124bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4125bdc460c5Smrgprintf "%s\n" "none needed" >&6; } 4126bdc460c5Smrgelse $as_nop 4127bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4128bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4129bdc460c5Smrg CC="$CC $ac_cv_prog_cc_c11" 4130bdc460c5Smrgfi 4131bdc460c5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4132bdc460c5Smrg ac_prog_cc_stdc=c11 4133bdc460c5Smrgfi 4134bdc460c5Smrgfi 4135bdc460c5Smrgif test x$ac_prog_cc_stdc = xno 4136bdc460c5Smrgthen : 4137bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4138bdc460c5Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 4139bdc460c5Smrgif test ${ac_cv_prog_cc_c99+y} 4140bdc460c5Smrgthen : 4141bdc460c5Smrg printf %s "(cached) " >&6 4142bdc460c5Smrgelse $as_nop 4143bdc460c5Smrg ac_cv_prog_cc_c99=no 4144bdc460c5Smrgac_save_CC=$CC 4145bdc460c5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146bdc460c5Smrg/* end confdefs.h. */ 4147bdc460c5Smrg$ac_c_conftest_c99_program 4148bdc460c5Smrg_ACEOF 4149bdc460c5Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4150bdc460c5Smrgdo 4151bdc460c5Smrg CC="$ac_save_CC $ac_arg" 4152bdc460c5Smrg if ac_fn_c_try_compile "$LINENO" 4153bdc460c5Smrgthen : 4154bdc460c5Smrg ac_cv_prog_cc_c99=$ac_arg 4155bdc460c5Smrgfi 4156bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4157bdc460c5Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4158bdc460c5Smrgdone 4159bdc460c5Smrgrm -f conftest.$ac_ext 4160bdc460c5SmrgCC=$ac_save_CC 4161bdc460c5Smrgfi 4162bdc460c5Smrg 4163bdc460c5Smrgif test "x$ac_cv_prog_cc_c99" = xno 4164bdc460c5Smrgthen : 4165bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4166bdc460c5Smrgprintf "%s\n" "unsupported" >&6; } 4167bdc460c5Smrgelse $as_nop 4168bdc460c5Smrg if test "x$ac_cv_prog_cc_c99" = x 4169bdc460c5Smrgthen : 4170bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4171bdc460c5Smrgprintf "%s\n" "none needed" >&6; } 4172bdc460c5Smrgelse $as_nop 4173bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4174bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4175bdc460c5Smrg CC="$CC $ac_cv_prog_cc_c99" 4176bdc460c5Smrgfi 4177bdc460c5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4178bdc460c5Smrg ac_prog_cc_stdc=c99 4179bdc460c5Smrgfi 4180bdc460c5Smrgfi 4181bdc460c5Smrgif test x$ac_prog_cc_stdc = xno 4182bdc460c5Smrgthen : 4183bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4184bdc460c5Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 4185bdc460c5Smrgif test ${ac_cv_prog_cc_c89+y} 4186bdc460c5Smrgthen : 4187bdc460c5Smrg printf %s "(cached) " >&6 4188bdc460c5Smrgelse $as_nop 4189bf2eeab3Smrg ac_cv_prog_cc_c89=no 419014c0a534Smrgac_save_CC=$CC 4191576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 419214c0a534Smrg/* end confdefs.h. */ 4193bdc460c5Smrg$ac_c_conftest_c89_program 419414c0a534Smrg_ACEOF 4195bdc460c5Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 419614c0a534Smrgdo 419714c0a534Smrg CC="$ac_save_CC $ac_arg" 4198bdc460c5Smrg if ac_fn_c_try_compile "$LINENO" 4199bdc460c5Smrgthen : 4200bf2eeab3Smrg ac_cv_prog_cc_c89=$ac_arg 420114c0a534Smrgfi 4202bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4203bf2eeab3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 420414c0a534Smrgdone 4205bf2eeab3Smrgrm -f conftest.$ac_ext 420614c0a534SmrgCC=$ac_save_CC 420714c0a534Smrgfi 420814c0a534Smrg 4209bdc460c5Smrgif test "x$ac_cv_prog_cc_c89" = xno 4210bdc460c5Smrgthen : 4211bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4212bdc460c5Smrgprintf "%s\n" "unsupported" >&6; } 4213bdc460c5Smrgelse $as_nop 4214bdc460c5Smrg if test "x$ac_cv_prog_cc_c89" = x 4215bdc460c5Smrgthen : 4216bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4217bdc460c5Smrgprintf "%s\n" "none needed" >&6; } 4218bdc460c5Smrgelse $as_nop 4219bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4220bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4221bdc460c5Smrg CC="$CC $ac_cv_prog_cc_c89" 4222bdc460c5Smrgfi 4223bdc460c5Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4224bdc460c5Smrg ac_prog_cc_stdc=c89 4225bdc460c5Smrgfi 4226576bae58Smrgfi 422714c0a534Smrg 422814c0a534Smrgac_ext=c 422914c0a534Smrgac_cpp='$CPP $CPPFLAGS' 423014c0a534Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 423114c0a534Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 423214c0a534Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 423314c0a534Smrg 4234bdc460c5Smrg 4235bdc460c5Smrg ac_ext=c 423624047306Smrgac_cpp='$CPP $CPPFLAGS' 423724047306Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 423824047306Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 423924047306Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4240bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4241bdc460c5Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 4242bdc460c5Smrgif test ${am_cv_prog_cc_c_o+y} 4243bdc460c5Smrgthen : 4244bdc460c5Smrg printf %s "(cached) " >&6 4245bdc460c5Smrgelse $as_nop 424624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 424724047306Smrg/* end confdefs.h. */ 424824047306Smrg 424924047306Smrgint 4250bdc460c5Smrgmain (void) 425124047306Smrg{ 425224047306Smrg 425324047306Smrg ; 425424047306Smrg return 0; 425524047306Smrg} 425624047306Smrg_ACEOF 425724047306Smrg # Make sure it works both with $CC and with simple cc. 425824047306Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 425924047306Smrg # compilers refuse to overwrite an existing .o file with -o, 426024047306Smrg # though they will create one. 426124047306Smrg am_cv_prog_cc_c_o=yes 426224047306Smrg for am_i in 1 2; do 426324047306Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 426424047306Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 426524047306Smrg ac_status=$? 426624047306Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 426724047306Smrg (exit $ac_status); } \ 426824047306Smrg && test -f conftest2.$ac_objext; then 426924047306Smrg : OK 427024047306Smrg else 427124047306Smrg am_cv_prog_cc_c_o=no 427224047306Smrg break 427324047306Smrg fi 427424047306Smrg done 427524047306Smrg rm -f core conftest* 427624047306Smrg unset am_i 427724047306Smrgfi 4278bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4279bdc460c5Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 428024047306Smrgif test "$am_cv_prog_cc_c_o" != yes; then 428124047306Smrg # Losing compiler, so override with the script. 428224047306Smrg # FIXME: It is wrong to rewrite CC. 428324047306Smrg # But if we don't then we get into trouble of one sort or another. 428424047306Smrg # A longer-term fix would be to have automake use am__CC in this case, 428524047306Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 428624047306Smrg CC="$am_aux_dir/compile $CC" 428724047306Smrgfi 428824047306Smrgac_ext=c 428924047306Smrgac_cpp='$CPP $CPPFLAGS' 429024047306Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 429124047306Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 429224047306Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 429324047306Smrg 429424047306Smrg 429514c0a534Smrgdepcc="$CC" am_compiler_list= 429614c0a534Smrg 4297bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4298bdc460c5Smrgprintf %s "checking dependency style of $depcc... " >&6; } 4299bdc460c5Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 4300bdc460c5Smrgthen : 4301bdc460c5Smrg printf %s "(cached) " >&6 4302bdc460c5Smrgelse $as_nop 430314c0a534Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 430414c0a534Smrg # We make a subdir and do the tests there. Otherwise we can end up 430514c0a534Smrg # making bogus files that we don't know about and never remove. For 430614c0a534Smrg # instance it was reported that on HP-UX the gcc test will end up 430724047306Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 430824047306Smrg # in D". 430924047306Smrg rm -rf conftest.dir 431014c0a534Smrg mkdir conftest.dir 431114c0a534Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 431214c0a534Smrg # using a relative directory. 431314c0a534Smrg cp "$am_depcomp" conftest.dir 431414c0a534Smrg cd conftest.dir 431514c0a534Smrg # We will build objects and dependencies in a subdirectory because 431614c0a534Smrg # it helps to detect inapplicable dependency modes. For instance 431714c0a534Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 431814c0a534Smrg # side effect of compilation, but ICC will put the dependencies in 431914c0a534Smrg # the current directory while Tru64 will put them in the object 432014c0a534Smrg # directory. 432114c0a534Smrg mkdir sub 432214c0a534Smrg 432314c0a534Smrg am_cv_CC_dependencies_compiler_type=none 432414c0a534Smrg if test "$am_compiler_list" = ""; then 432514c0a534Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 432614c0a534Smrg fi 4327bf2eeab3Smrg am__universal=false 4328bf2eeab3Smrg case " $depcc " in #( 4329bf2eeab3Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4330bf2eeab3Smrg esac 4331bf2eeab3Smrg 433214c0a534Smrg for depmode in $am_compiler_list; do 433314c0a534Smrg # Setup a source with many dependencies, because some compilers 433414c0a534Smrg # like to wrap large dependency lists on column 80 (with \), and 433514c0a534Smrg # we should not choose a depcomp mode which is confused by this. 433614c0a534Smrg # 433714c0a534Smrg # We need to recreate these files for each test, as the compiler may 433814c0a534Smrg # overwrite some of them when testing with obscure command lines. 433914c0a534Smrg # This happens at least with the AIX C compiler. 434014c0a534Smrg : > sub/conftest.c 434114c0a534Smrg for i in 1 2 3 4 5 6; do 434214c0a534Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 434324047306Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 434424047306Smrg # Solaris 10 /bin/sh. 434524047306Smrg echo '/* dummy */' > sub/conftst$i.h 434614c0a534Smrg done 434714c0a534Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 434814c0a534Smrg 434924047306Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4350bf2eeab3Smrg # mode. It turns out that the SunPro C++ compiler does not properly 435124047306Smrg # handle '-M -o', and we need to detect this. Also, some Intel 435224047306Smrg # versions had trouble with output in subdirs. 4353bf2eeab3Smrg am__obj=sub/conftest.${OBJEXT-o} 4354bf2eeab3Smrg am__minus_obj="-o $am__obj" 435514c0a534Smrg case $depmode in 4356bf2eeab3Smrg gcc) 4357bf2eeab3Smrg # This depmode causes a compiler race in universal mode. 4358bf2eeab3Smrg test "$am__universal" = false || continue 4359bf2eeab3Smrg ;; 436014c0a534Smrg nosideeffect) 436124047306Smrg # After this tag, mechanisms are not by side-effect, so they'll 436224047306Smrg # only be used when explicitly requested. 436314c0a534Smrg if test "x$enable_dependency_tracking" = xyes; then 436414c0a534Smrg continue 436514c0a534Smrg else 436614c0a534Smrg break 436714c0a534Smrg fi 436814c0a534Smrg ;; 436924047306Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 437024047306Smrg # This compiler won't grok '-c -o', but also, the minuso test has 4371bf2eeab3Smrg # not run yet. These depmodes are late enough in the game, and 4372bf2eeab3Smrg # so weak that their functioning should not be impacted. 4373bf2eeab3Smrg am__obj=conftest.${OBJEXT-o} 4374bf2eeab3Smrg am__minus_obj= 4375bf2eeab3Smrg ;; 437614c0a534Smrg none) break ;; 437714c0a534Smrg esac 437814c0a534Smrg if depmode=$depmode \ 4379bf2eeab3Smrg source=sub/conftest.c object=$am__obj \ 438014c0a534Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4381bf2eeab3Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 438214c0a534Smrg >/dev/null 2>conftest.err && 4383bf2eeab3Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 438414c0a534Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4385bf2eeab3Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 438614c0a534Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 438714c0a534Smrg # icc doesn't choke on unknown options, it will just issue warnings 438814c0a534Smrg # or remarks (even with -Werror). So we grep stderr for any message 438914c0a534Smrg # that says an option was ignored or not supported. 439014c0a534Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 439114c0a534Smrg # icc: Command line warning: ignoring option '-M'; no argument required 439214c0a534Smrg # The diagnosis changed in icc 8.0: 439314c0a534Smrg # icc: Command line remark: option '-MP' not supported 439414c0a534Smrg if (grep 'ignoring option' conftest.err || 439514c0a534Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 439614c0a534Smrg am_cv_CC_dependencies_compiler_type=$depmode 439714c0a534Smrg break 439814c0a534Smrg fi 439914c0a534Smrg fi 440014c0a534Smrg done 440114c0a534Smrg 440214c0a534Smrg cd .. 440314c0a534Smrg rm -rf conftest.dir 440414c0a534Smrgelse 440514c0a534Smrg am_cv_CC_dependencies_compiler_type=none 440614c0a534Smrgfi 440714c0a534Smrg 440814c0a534Smrgfi 4409bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4410bdc460c5Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 441114c0a534SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 441214c0a534Smrg 4413bf2eeab3Smrg if 441414c0a534Smrg test "x$enable_dependency_tracking" != xno \ 441514c0a534Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 441614c0a534Smrg am__fastdepCC_TRUE= 441714c0a534Smrg am__fastdepCC_FALSE='#' 441814c0a534Smrgelse 441914c0a534Smrg am__fastdepCC_TRUE='#' 442014c0a534Smrg am__fastdepCC_FALSE= 442114c0a534Smrgfi 442214c0a534Smrg 442314c0a534Smrg 4424576bae58Smrg 4425bdc460c5Smrgac_header= ac_cache= 4426bdc460c5Smrgfor ac_item in $ac_header_c_list 4427576bae58Smrgdo 4428bdc460c5Smrg if test $ac_cache; then 4429bdc460c5Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4430bdc460c5Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4431bdc460c5Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 4432bdc460c5Smrg fi 4433bdc460c5Smrg ac_header= ac_cache= 4434bdc460c5Smrg elif test $ac_header; then 4435bdc460c5Smrg ac_cache=$ac_item 4436bdc460c5Smrg else 4437bdc460c5Smrg ac_header=$ac_item 4438bdc460c5Smrg fi 4439bf2eeab3Smrgdone 4440bf2eeab3Smrg 4441bf2eeab3Smrg 4442bf2eeab3Smrg 4443bf2eeab3Smrg 4444576bae58Smrg 4445bf2eeab3Smrg 4446bf2eeab3Smrg 4447bf2eeab3Smrg 4448bdc460c5Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4449bdc460c5Smrgthen : 4450bf2eeab3Smrg 4451bdc460c5Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4452bf2eeab3Smrg 4453bf2eeab3Smrgfi 4454bf2eeab3Smrg 4455bf2eeab3Smrg 4456bf2eeab3Smrg 4457bf2eeab3Smrg 4458bf2eeab3Smrg 4459bf2eeab3Smrg 4460bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4461bdc460c5Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4462bdc460c5Smrgif test ${ac_cv_safe_to_define___extensions__+y} 4463bdc460c5Smrgthen : 4464bdc460c5Smrg printf %s "(cached) " >&6 4465bdc460c5Smrgelse $as_nop 4466576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467bf2eeab3Smrg/* end confdefs.h. */ 4468bf2eeab3Smrg 4469bdc460c5Smrg# define __EXTENSIONS__ 1 4470bdc460c5Smrg $ac_includes_default 4471bf2eeab3Smrgint 4472bdc460c5Smrgmain (void) 4473bf2eeab3Smrg{ 4474bf2eeab3Smrg 4475bf2eeab3Smrg ; 4476bf2eeab3Smrg return 0; 4477bf2eeab3Smrg} 4478bf2eeab3Smrg_ACEOF 4479bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4480bdc460c5Smrgthen : 4481bdc460c5Smrg ac_cv_safe_to_define___extensions__=yes 4482bdc460c5Smrgelse $as_nop 4483bdc460c5Smrg ac_cv_safe_to_define___extensions__=no 4484bf2eeab3Smrgfi 4485bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4486bf2eeab3Smrgfi 4487bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4488bdc460c5Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4489bf2eeab3Smrg 4490bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4491bdc460c5Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4492bdc460c5Smrgif test ${ac_cv_should_define__xopen_source+y} 4493bdc460c5Smrgthen : 4494bdc460c5Smrg printf %s "(cached) " >&6 4495bdc460c5Smrgelse $as_nop 4496bdc460c5Smrg ac_cv_should_define__xopen_source=no 4497bdc460c5Smrg if test $ac_cv_header_wchar_h = yes 4498bdc460c5Smrgthen : 4499576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500bf2eeab3Smrg/* end confdefs.h. */ 4501bf2eeab3Smrg 4502bdc460c5Smrg #include <wchar.h> 4503bdc460c5Smrg mbstate_t x; 4504bf2eeab3Smrgint 4505bdc460c5Smrgmain (void) 4506bf2eeab3Smrg{ 4507bdc460c5Smrg 4508bdc460c5Smrg ; 4509bf2eeab3Smrg return 0; 4510bf2eeab3Smrg} 4511bf2eeab3Smrg_ACEOF 4512bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4513bdc460c5Smrgthen : 451424047306Smrg 4515bdc460c5Smrgelse $as_nop 451624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 451724047306Smrg/* end confdefs.h. */ 4518576bae58Smrg 4519bdc460c5Smrg #define _XOPEN_SOURCE 500 4520bdc460c5Smrg #include <wchar.h> 4521bdc460c5Smrg mbstate_t x; 452224047306Smrgint 4523bdc460c5Smrgmain (void) 452424047306Smrg{ 452524047306Smrg 452624047306Smrg ; 452724047306Smrg return 0; 452824047306Smrg} 452924047306Smrg_ACEOF 4530bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4531bdc460c5Smrgthen : 4532bdc460c5Smrg ac_cv_should_define__xopen_source=yes 4533bdc460c5Smrgfi 4534bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 453524047306Smrgfi 4536bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4537bf2eeab3Smrgfi 4538bdc460c5Smrgfi 4539bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4540bdc460c5Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4541bf2eeab3Smrg 4542bdc460c5Smrg printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4543bf2eeab3Smrg 4544bdc460c5Smrg printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 454524047306Smrg 4546bdc460c5Smrg printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 454724047306Smrg 4548bdc460c5Smrg printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 454924047306Smrg 4550bdc460c5Smrg printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 455124047306Smrg 4552bdc460c5Smrg printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 455324047306Smrg 4554bdc460c5Smrg printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 455524047306Smrg 4556bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 455724047306Smrg 4558bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 455924047306Smrg 4560bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 456124047306Smrg 4562bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 456324047306Smrg 4564bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 456524047306Smrg 4566bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 456724047306Smrg 4568bdc460c5Smrg printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 456924047306Smrg 4570bdc460c5Smrg printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 457124047306Smrg 4572bdc460c5Smrg if test $ac_cv_header_minix_config_h = yes 4573bdc460c5Smrgthen : 4574bdc460c5Smrg MINIX=yes 4575bdc460c5Smrg printf "%s\n" "#define _MINIX 1" >>confdefs.h 457624047306Smrg 4577bdc460c5Smrg printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 457824047306Smrg 4579bdc460c5Smrg printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 458024047306Smrg 4581bdc460c5Smrgelse $as_nop 4582bdc460c5Smrg MINIX= 4583bdc460c5Smrgfi 4584bdc460c5Smrg if test $ac_cv_safe_to_define___extensions__ = yes 4585bdc460c5Smrgthen : 4586bdc460c5Smrg printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 458724047306Smrg 4588bdc460c5Smrgfi 4589bdc460c5Smrg if test $ac_cv_should_define__xopen_source = yes 4590bdc460c5Smrgthen : 4591bdc460c5Smrg printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 459224047306Smrg 4593bdc460c5Smrgfi 459424047306Smrg 459524047306Smrg 4596bdc460c5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 459724047306Smrg 459824047306Smrg 459924047306Smrg 460024047306Smrg 460124047306Smrg 460224047306Smrg 460324047306Smrg 460424047306Smrg 460524047306Smrg 460624047306Smrg 460724047306Smrg 460824047306Smrg 4609bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4610bdc460c5Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4611bdc460c5Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 4612bdc460c5Smrgthen : 4613bdc460c5Smrg printf %s "(cached) " >&6 4614bdc460c5Smrgelse $as_nop 4615bdc460c5Smrg ac_save_CFLAGS=$CFLAGS 4616bdc460c5Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 4617bdc460c5Smrg for ac_arg in '' -fno-builtin; do 4618bdc460c5Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4619bdc460c5Smrg # This test program should *not* compile successfully. 4620bdc460c5Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621bdc460c5Smrg/* end confdefs.h. */ 462224047306Smrg 4623bdc460c5Smrgint 4624bdc460c5Smrgmain (void) 4625bdc460c5Smrg{ 4626bdc460c5Smrg(void) strchr; 4627bdc460c5Smrg ; 4628bdc460c5Smrg return 0; 4629bdc460c5Smrg} 4630bdc460c5Smrg_ACEOF 4631bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4632bdc460c5Smrgthen : 4633bdc460c5Smrg 4634bdc460c5Smrgelse $as_nop 4635bdc460c5Smrg # This test program should compile successfully. 4636bdc460c5Smrg # No library function is consistently available on 4637bdc460c5Smrg # freestanding implementations, so test against a dummy 4638bdc460c5Smrg # declaration. Include always-available headers on the 4639bdc460c5Smrg # off chance that they somehow elicit warnings. 4640bdc460c5Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641bdc460c5Smrg/* end confdefs.h. */ 4642bdc460c5Smrg#include <float.h> 4643bdc460c5Smrg#include <limits.h> 4644bdc460c5Smrg#include <stdarg.h> 4645bdc460c5Smrg#include <stddef.h> 4646bdc460c5Smrgextern void ac_decl (int, char *); 4647bdc460c5Smrg 4648bdc460c5Smrgint 4649bdc460c5Smrgmain (void) 4650bdc460c5Smrg{ 4651bdc460c5Smrg(void) ac_decl (0, (char *) 0); 4652bdc460c5Smrg (void) ac_decl; 465324047306Smrg 465424047306Smrg ; 465524047306Smrg return 0; 465624047306Smrg} 465724047306Smrg_ACEOF 4658bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 4659bdc460c5Smrgthen : 4660bdc460c5Smrg if test x"$ac_arg" = x 4661bdc460c5Smrgthen : 4662bdc460c5Smrg ac_cv_c_undeclared_builtin_options='none needed' 4663bdc460c5Smrgelse $as_nop 4664bdc460c5Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 466524047306Smrgfi 4666bdc460c5Smrg break 466724047306Smrgfi 4668bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 466924047306Smrgfi 4670bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4671bdc460c5Smrg done 4672bdc460c5Smrg CFLAGS=$ac_save_CFLAGS 4673bdc460c5Smrg 4674bdc460c5Smrgfi 4675bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4676bdc460c5Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4677bdc460c5Smrg case $ac_cv_c_undeclared_builtin_options in #( 4678bdc460c5Smrg 'cannot detect') : 4679bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4680bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4681bdc460c5Smrgas_fn_error $? "cannot make $CC report undeclared builtins 4682bdc460c5SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 4683bdc460c5Smrg 'none needed') : 4684bdc460c5Smrg ac_c_undeclared_builtin_options='' ;; #( 4685bdc460c5Smrg *) : 4686bdc460c5Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4687bdc460c5Smrgesac 468824047306Smrg 468924047306Smrg 469024047306Smrg 469124047306Smrg 469224047306Smrg 4693bdc460c5Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4694bdc460c5Smrgif test "x$ac_cv_have_decl___clang__" = xyes 4695bdc460c5Smrgthen : 469624047306Smrg CLANGCC="yes" 4697bdc460c5Smrgelse $as_nop 469824047306Smrg CLANGCC="no" 469924047306Smrgfi 4700bdc460c5Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4701bdc460c5Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4702bdc460c5Smrgthen : 470324047306Smrg INTELCC="yes" 4704bdc460c5Smrgelse $as_nop 470524047306Smrg INTELCC="no" 470624047306Smrgfi 4707bdc460c5Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4708bdc460c5Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4709bdc460c5Smrgthen : 471024047306Smrg SUNCC="yes" 4711bdc460c5Smrgelse $as_nop 471224047306Smrg SUNCC="no" 471324047306Smrgfi 471424047306Smrg 471524047306Smrg 471624047306Smrg 471724047306Smrg 4718bdc460c5Smrg 4719bdc460c5Smrg 4720bdc460c5Smrg 4721bdc460c5Smrg 472224047306Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 472324047306Smrg if test -n "$ac_tool_prefix"; then 472424047306Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 472524047306Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4726bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4727bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 4728bdc460c5Smrgif test ${ac_cv_path_PKG_CONFIG+y} 4729bdc460c5Smrgthen : 4730bdc460c5Smrg printf %s "(cached) " >&6 4731bdc460c5Smrgelse $as_nop 473224047306Smrg case $PKG_CONFIG in 473324047306Smrg [\\/]* | ?:[\\/]*) 473424047306Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 473524047306Smrg ;; 473624047306Smrg *) 473724047306Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 473824047306Smrgfor as_dir in $PATH 473924047306Smrgdo 474024047306Smrg IFS=$as_save_IFS 4741bdc460c5Smrg case $as_dir in #((( 4742bdc460c5Smrg '') as_dir=./ ;; 4743bdc460c5Smrg */) ;; 4744bdc460c5Smrg *) as_dir=$as_dir/ ;; 4745bdc460c5Smrg esac 474624047306Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4747bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4748bdc460c5Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4749bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 475024047306Smrg break 2 475124047306Smrg fi 475224047306Smrgdone 475324047306Smrg done 4754576bae58SmrgIFS=$as_save_IFS 4755576bae58Smrg 4756576bae58Smrg ;; 4757bf2eeab3Smrgesac 4758576bae58Smrgfi 475924047306SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 476024047306Smrgif test -n "$PKG_CONFIG"; then 4761bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4762bdc460c5Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 4763576bae58Smrgelse 4764bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765bdc460c5Smrgprintf "%s\n" "no" >&6; } 4766576bae58Smrgfi 4767bf2eeab3Smrg 476824047306Smrg 476924047306Smrgfi 477024047306Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 477124047306Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 477224047306Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 477324047306Smrgset dummy pkg-config; ac_word=$2 4774bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4775bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; } 4776bdc460c5Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4777bdc460c5Smrgthen : 4778bdc460c5Smrg printf %s "(cached) " >&6 4779bdc460c5Smrgelse $as_nop 478024047306Smrg case $ac_pt_PKG_CONFIG in 478124047306Smrg [\\/]* | ?:[\\/]*) 478224047306Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 478324047306Smrg ;; 478424047306Smrg *) 478524047306Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 478624047306Smrgfor as_dir in $PATH 478724047306Smrgdo 478824047306Smrg IFS=$as_save_IFS 4789bdc460c5Smrg case $as_dir in #((( 4790bdc460c5Smrg '') as_dir=./ ;; 4791bdc460c5Smrg */) ;; 4792bdc460c5Smrg *) as_dir=$as_dir/ ;; 4793bdc460c5Smrg esac 479424047306Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4795bdc460c5Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4796bdc460c5Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4797bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 479824047306Smrg break 2 479924047306Smrg fi 480024047306Smrgdone 480124047306Smrg done 480224047306SmrgIFS=$as_save_IFS 480324047306Smrg 480424047306Smrg ;; 480524047306Smrgesac 480624047306Smrgfi 480724047306Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 480824047306Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4809bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4810bdc460c5Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 481124047306Smrgelse 4812bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813bdc460c5Smrgprintf "%s\n" "no" >&6; } 481424047306Smrgfi 481524047306Smrg 481624047306Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4817576bae58Smrg PKG_CONFIG="" 4818576bae58Smrg else 4819576bae58Smrg case $cross_compiling:$ac_tool_warned in 4820576bae58Smrgyes:) 4821bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4822bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4823576bae58Smrgac_tool_warned=yes ;; 4824576bae58Smrgesac 4825576bae58Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4826576bae58Smrg fi 4827576bae58Smrgelse 482824047306Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 482924047306Smrgfi 483024047306Smrg 483124047306Smrgfi 483224047306Smrgif test -n "$PKG_CONFIG"; then 483324047306Smrg _pkg_min_version=0.9.0 4834bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4835bdc460c5Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 483624047306Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4837bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4838bdc460c5Smrgprintf "%s\n" "yes" >&6; } 483924047306Smrg else 4840bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841bdc460c5Smrgprintf "%s\n" "no" >&6; } 484224047306Smrg PKG_CONFIG="" 484324047306Smrg fi 484424047306Smrgfi 484524047306Smrg 4846bdc460c5Smrg 4847bdc460c5Smrg # Make sure we can run config.sub. 4848bdc460c5Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4849bdc460c5Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4850bdc460c5Smrg 4851bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4852bdc460c5Smrgprintf %s "checking build system type... " >&6; } 4853bdc460c5Smrgif test ${ac_cv_build+y} 4854bdc460c5Smrgthen : 4855bdc460c5Smrg printf %s "(cached) " >&6 4856bdc460c5Smrgelse $as_nop 485724047306Smrg ac_build_alias=$build_alias 485824047306Smrgtest "x$ac_build_alias" = x && 4859bdc460c5Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 486024047306Smrgtest "x$ac_build_alias" = x && 486124047306Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4862bdc460c5Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4863bdc460c5Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 486424047306Smrg 486524047306Smrgfi 4866bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4867bdc460c5Smrgprintf "%s\n" "$ac_cv_build" >&6; } 486824047306Smrgcase $ac_cv_build in 486924047306Smrg*-*-*) ;; 487024047306Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 487124047306Smrgesac 487224047306Smrgbuild=$ac_cv_build 487324047306Smrgac_save_IFS=$IFS; IFS='-' 487424047306Smrgset x $ac_cv_build 487524047306Smrgshift 487624047306Smrgbuild_cpu=$1 487724047306Smrgbuild_vendor=$2 487824047306Smrgshift; shift 487924047306Smrg# Remember, the first character of IFS is used to create $*, 488024047306Smrg# except with old shells: 488124047306Smrgbuild_os=$* 488224047306SmrgIFS=$ac_save_IFS 488324047306Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 488424047306Smrg 488524047306Smrg 4886bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4887bdc460c5Smrgprintf %s "checking host system type... " >&6; } 4888bdc460c5Smrgif test ${ac_cv_host+y} 4889bdc460c5Smrgthen : 4890bdc460c5Smrg printf %s "(cached) " >&6 4891bdc460c5Smrgelse $as_nop 489224047306Smrg if test "x$host_alias" = x; then 489324047306Smrg ac_cv_host=$ac_cv_build 489424047306Smrgelse 4895bdc460c5Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4896bdc460c5Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 489724047306Smrgfi 489824047306Smrg 489924047306Smrgfi 4900bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4901bdc460c5Smrgprintf "%s\n" "$ac_cv_host" >&6; } 490224047306Smrgcase $ac_cv_host in 490324047306Smrg*-*-*) ;; 490424047306Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 490524047306Smrgesac 490624047306Smrghost=$ac_cv_host 490724047306Smrgac_save_IFS=$IFS; IFS='-' 490824047306Smrgset x $ac_cv_host 490924047306Smrgshift 491024047306Smrghost_cpu=$1 491124047306Smrghost_vendor=$2 491224047306Smrgshift; shift 491324047306Smrg# Remember, the first character of IFS is used to create $*, 491424047306Smrg# except with old shells: 491524047306Smrghost_os=$* 491624047306SmrgIFS=$ac_save_IFS 491724047306Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 491824047306Smrg 491924047306Smrg 4920bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4921bdc460c5Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4922bdc460c5Smrgif test ${ac_cv_path_SED+y} 4923bdc460c5Smrgthen : 4924bdc460c5Smrg printf %s "(cached) " >&6 4925bdc460c5Smrgelse $as_nop 492624047306Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 492724047306Smrg for ac_i in 1 2 3 4 5 6 7; do 492824047306Smrg ac_script="$ac_script$as_nl$ac_script" 492924047306Smrg done 493024047306Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 493124047306Smrg { ac_script=; unset ac_script;} 493224047306Smrg if test -z "$SED"; then 493324047306Smrg ac_path_SED_found=false 493424047306Smrg # Loop through the user's path and test for each of PROGNAME-LIST 493524047306Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 493624047306Smrgfor as_dir in $PATH 493724047306Smrgdo 493824047306Smrg IFS=$as_save_IFS 4939bdc460c5Smrg case $as_dir in #((( 4940bdc460c5Smrg '') as_dir=./ ;; 4941bdc460c5Smrg */) ;; 4942bdc460c5Smrg *) as_dir=$as_dir/ ;; 4943bdc460c5Smrg esac 4944bdc460c5Smrg for ac_prog in sed gsed 4945bdc460c5Smrg do 494624047306Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4947bdc460c5Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 494824047306Smrg as_fn_executable_p "$ac_path_SED" || continue 494924047306Smrg# Check for GNU ac_path_SED and select it if it is found. 495024047306Smrg # Check for GNU $ac_path_SED 495124047306Smrgcase `"$ac_path_SED" --version 2>&1` in 495224047306Smrg*GNU*) 495324047306Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 495424047306Smrg*) 495524047306Smrg ac_count=0 4956bdc460c5Smrg printf %s 0123456789 >"conftest.in" 495724047306Smrg while : 495824047306Smrg do 495924047306Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 496024047306Smrg mv "conftest.tmp" "conftest.in" 496124047306Smrg cp "conftest.in" "conftest.nl" 4962bdc460c5Smrg printf "%s\n" '' >> "conftest.nl" 496324047306Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 496424047306Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 496524047306Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 496624047306Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 496724047306Smrg # Best one so far, save it but keep looking for a better one 496824047306Smrg ac_cv_path_SED="$ac_path_SED" 496924047306Smrg ac_path_SED_max=$ac_count 497024047306Smrg fi 497124047306Smrg # 10*(2^10) chars as input seems more than enough 497224047306Smrg test $ac_count -gt 10 && break 497324047306Smrg done 497424047306Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 497524047306Smrgesac 497624047306Smrg 497724047306Smrg $ac_path_SED_found && break 3 497824047306Smrg done 497924047306Smrg done 498024047306Smrg done 498124047306SmrgIFS=$as_save_IFS 498224047306Smrg if test -z "$ac_cv_path_SED"; then 498324047306Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 498424047306Smrg fi 498524047306Smrgelse 498624047306Smrg ac_cv_path_SED=$SED 498724047306Smrgfi 498824047306Smrg 498924047306Smrgfi 4990bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4991bdc460c5Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 499224047306Smrg SED="$ac_cv_path_SED" 499324047306Smrg rm -f conftest.sed 499424047306Smrg 499524047306Smrg 499624047306Smrg 499724047306Smrg 499824047306Smrg 499924047306Smrg 500024047306Smrg# Check whether --enable-selective-werror was given. 5001bdc460c5Smrgif test ${enable_selective_werror+y} 5002bdc460c5Smrgthen : 500324047306Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5004bdc460c5Smrgelse $as_nop 500524047306Smrg SELECTIVE_WERROR=yes 500624047306Smrgfi 500724047306Smrg 500824047306Smrg 500924047306Smrg 501024047306Smrg 501124047306Smrg 501224047306Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 501324047306Smrgif test "x$SUNCC" = "xyes"; then 501424047306Smrg BASE_CFLAGS="-v" 501524047306Smrgelse 501624047306Smrg BASE_CFLAGS="" 501724047306Smrgfi 501824047306Smrg 501924047306Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 502024047306Smrg 502124047306Smrg 502224047306Smrg 502324047306Smrg 502424047306Smrg 502524047306Smrg 502624047306Smrg 502724047306Smrg 502824047306Smrg 502924047306Smrg 503024047306Smrg 503124047306Smrg 503224047306Smrg 503324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 503424047306Smrg 503524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 503624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5038bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5039bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5040bdc460c5Smrgthen : 5041bdc460c5Smrg printf %s "(cached) " >&6 5042bdc460c5Smrgelse $as_nop 504324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504424047306Smrg/* end confdefs.h. */ 504524047306Smrgint i; 504624047306Smrg_ACEOF 5047bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5048bdc460c5Smrgthen : 504924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5050bdc460c5Smrgelse $as_nop 505124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 505224047306Smrgfi 5053bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 505424047306Smrgfi 5055bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5056bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 505724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 505824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 505924047306Smrgfi 506024047306Smrg 506124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 506224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 506324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 506424047306Smrg fi 506524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5067bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5068bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5069bdc460c5Smrgthen : 5070bdc460c5Smrg printf %s "(cached) " >&6 5071bdc460c5Smrgelse $as_nop 507224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 507324047306Smrg/* end confdefs.h. */ 507424047306Smrgint i; 507524047306Smrg_ACEOF 5076bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5077bdc460c5Smrgthen : 507824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5079bdc460c5Smrgelse $as_nop 508024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 508124047306Smrgfi 5082bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 508324047306Smrgfi 5084bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5085bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 508624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 508724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 508824047306Smrgfi 508924047306Smrg 509024047306Smrgfound="no" 509124047306Smrg 509224047306Smrg if test $found = "no" ; then 509324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 509424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 509524047306Smrg fi 509624047306Smrg 509724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 509824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 509924047306Smrg fi 510024047306Smrg 510124047306Smrg CFLAGS="$CFLAGS -Wall" 510224047306Smrg 5103bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5104bdc460c5Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 510524047306Smrg cacheid=xorg_cv_cc_flag__Wall 5106bdc460c5Smrg if eval test \${$cacheid+y} 5107bdc460c5Smrgthen : 5108bdc460c5Smrg printf %s "(cached) " >&6 5109bdc460c5Smrgelse $as_nop 511024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 511124047306Smrg/* end confdefs.h. */ 511224047306Smrgint i; 511324047306Smrgint 5114bdc460c5Smrgmain (void) 511524047306Smrg{ 511624047306Smrg 511724047306Smrg ; 511824047306Smrg return 0; 511924047306Smrg} 512024047306Smrg_ACEOF 5121bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5122bdc460c5Smrgthen : 512324047306Smrg eval $cacheid=yes 5124bdc460c5Smrgelse $as_nop 512524047306Smrg eval $cacheid=no 512624047306Smrgfi 5127bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 512824047306Smrg conftest$ac_exeext conftest.$ac_ext 512924047306Smrgfi 513024047306Smrg 513124047306Smrg 513224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 513324047306Smrg 513424047306Smrg eval supported=\$$cacheid 5135bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5136bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 513724047306Smrg if test "$supported" = "yes" ; then 513824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 513924047306Smrg found="yes" 514024047306Smrg fi 514124047306Smrg fi 514224047306Smrg 514324047306Smrg 514424047306Smrg 514524047306Smrg 514624047306Smrg 514724047306Smrg 514824047306Smrg 514924047306Smrg 515024047306Smrg 515124047306Smrg 515224047306Smrg 515324047306Smrg 515424047306Smrg 515524047306Smrg 515624047306Smrg 515724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 515824047306Smrg 515924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 516024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5162bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5163bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5164bdc460c5Smrgthen : 5165bdc460c5Smrg printf %s "(cached) " >&6 5166bdc460c5Smrgelse $as_nop 516724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 516824047306Smrg/* end confdefs.h. */ 516924047306Smrgint i; 517024047306Smrg_ACEOF 5171bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5172bdc460c5Smrgthen : 517324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5174bdc460c5Smrgelse $as_nop 517524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 517624047306Smrgfi 5177bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 517824047306Smrgfi 5179bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5180bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 518124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 518224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 518324047306Smrgfi 518424047306Smrg 518524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 518624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 518724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 518824047306Smrg fi 518924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5191bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5192bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5193bdc460c5Smrgthen : 5194bdc460c5Smrg printf %s "(cached) " >&6 5195bdc460c5Smrgelse $as_nop 519624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 519724047306Smrg/* end confdefs.h. */ 519824047306Smrgint i; 519924047306Smrg_ACEOF 5200bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5201bdc460c5Smrgthen : 520224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5203bdc460c5Smrgelse $as_nop 520424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 520524047306Smrgfi 5206bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 520724047306Smrgfi 5208bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5209bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 521024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 521124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 521224047306Smrgfi 521324047306Smrg 521424047306Smrgfound="no" 521524047306Smrg 521624047306Smrg if test $found = "no" ; then 521724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 521824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 521924047306Smrg fi 522024047306Smrg 522124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 522224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 522324047306Smrg fi 522424047306Smrg 522524047306Smrg CFLAGS="$CFLAGS -Wpointer-arith" 522624047306Smrg 5227bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5228bdc460c5Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 522924047306Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5230bdc460c5Smrg if eval test \${$cacheid+y} 5231bdc460c5Smrgthen : 5232bdc460c5Smrg printf %s "(cached) " >&6 5233bdc460c5Smrgelse $as_nop 523424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 523524047306Smrg/* end confdefs.h. */ 523624047306Smrgint i; 523724047306Smrgint 5238bdc460c5Smrgmain (void) 523924047306Smrg{ 524024047306Smrg 524124047306Smrg ; 524224047306Smrg return 0; 524324047306Smrg} 524424047306Smrg_ACEOF 5245bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5246bdc460c5Smrgthen : 524724047306Smrg eval $cacheid=yes 5248bdc460c5Smrgelse $as_nop 524924047306Smrg eval $cacheid=no 525024047306Smrgfi 5251bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 525224047306Smrg conftest$ac_exeext conftest.$ac_ext 525324047306Smrgfi 525424047306Smrg 525524047306Smrg 525624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 525724047306Smrg 525824047306Smrg eval supported=\$$cacheid 5259bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5260bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 526124047306Smrg if test "$supported" = "yes" ; then 526224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 526324047306Smrg found="yes" 526424047306Smrg fi 526524047306Smrg fi 526624047306Smrg 526724047306Smrg 526824047306Smrg 526924047306Smrg 527024047306Smrg 527124047306Smrg 527224047306Smrg 527324047306Smrg 527424047306Smrg 527524047306Smrg 527624047306Smrg 527724047306Smrg 527824047306Smrg 527924047306Smrg 528024047306Smrg 528124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 528224047306Smrg 528324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 528424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5285bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5286bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5287bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5288bdc460c5Smrgthen : 5289bdc460c5Smrg printf %s "(cached) " >&6 5290bdc460c5Smrgelse $as_nop 529124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 529224047306Smrg/* end confdefs.h. */ 529324047306Smrgint i; 529424047306Smrg_ACEOF 5295bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5296bdc460c5Smrgthen : 529724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5298bdc460c5Smrgelse $as_nop 529924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 530024047306Smrgfi 5301bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 530224047306Smrgfi 5303bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 530524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 530624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 530724047306Smrgfi 530824047306Smrg 530924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 531024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 531124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 531224047306Smrg fi 531324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5317bdc460c5Smrgthen : 5318bdc460c5Smrg printf %s "(cached) " >&6 5319bdc460c5Smrgelse $as_nop 532024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 532124047306Smrg/* end confdefs.h. */ 532224047306Smrgint i; 532324047306Smrg_ACEOF 5324bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5325bdc460c5Smrgthen : 532624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5327bdc460c5Smrgelse $as_nop 532824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 532924047306Smrgfi 5330bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 533124047306Smrgfi 5332bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5333bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 533424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 533524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 533624047306Smrgfi 533724047306Smrg 533824047306Smrgfound="no" 533924047306Smrg 534024047306Smrg if test $found = "no" ; then 534124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 534224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 534324047306Smrg fi 534424047306Smrg 534524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 534624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 534724047306Smrg fi 534824047306Smrg 534924047306Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 535024047306Smrg 5351bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5352bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 535324047306Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5354bdc460c5Smrg if eval test \${$cacheid+y} 5355bdc460c5Smrgthen : 5356bdc460c5Smrg printf %s "(cached) " >&6 5357bdc460c5Smrgelse $as_nop 535824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 535924047306Smrg/* end confdefs.h. */ 536024047306Smrgint i; 536124047306Smrgint 5362bdc460c5Smrgmain (void) 536324047306Smrg{ 536424047306Smrg 536524047306Smrg ; 536624047306Smrg return 0; 536724047306Smrg} 536824047306Smrg_ACEOF 5369bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5370bdc460c5Smrgthen : 537124047306Smrg eval $cacheid=yes 5372bdc460c5Smrgelse $as_nop 537324047306Smrg eval $cacheid=no 537424047306Smrgfi 5375bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 537624047306Smrg conftest$ac_exeext conftest.$ac_ext 537724047306Smrgfi 537824047306Smrg 537924047306Smrg 538024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 538124047306Smrg 538224047306Smrg eval supported=\$$cacheid 5383bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5384bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 538524047306Smrg if test "$supported" = "yes" ; then 538624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 538724047306Smrg found="yes" 538824047306Smrg fi 538924047306Smrg fi 539024047306Smrg 539124047306Smrg 539224047306Smrg 539324047306Smrg 539424047306Smrg 539524047306Smrg 539624047306Smrg 539724047306Smrg 539824047306Smrg 539924047306Smrg 540024047306Smrg 540124047306Smrg 540224047306Smrg 540324047306Smrg 540424047306Smrg 540524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 540624047306Smrg 540724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 540824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5410bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5411bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5412bdc460c5Smrgthen : 5413bdc460c5Smrg printf %s "(cached) " >&6 5414bdc460c5Smrgelse $as_nop 541524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 541624047306Smrg/* end confdefs.h. */ 541724047306Smrgint i; 541824047306Smrg_ACEOF 5419bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5420bdc460c5Smrgthen : 542124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5422bdc460c5Smrgelse $as_nop 542324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 542424047306Smrgfi 5425bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 542624047306Smrgfi 5427bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5428bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 542924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 543024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 543124047306Smrgfi 543224047306Smrg 543324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 543424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 543524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 543624047306Smrg fi 543724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5439bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5440bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5441bdc460c5Smrgthen : 5442bdc460c5Smrg printf %s "(cached) " >&6 5443bdc460c5Smrgelse $as_nop 544424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 544524047306Smrg/* end confdefs.h. */ 544624047306Smrgint i; 544724047306Smrg_ACEOF 5448bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5449bdc460c5Smrgthen : 545024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5451bdc460c5Smrgelse $as_nop 545224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 545324047306Smrgfi 5454bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 545524047306Smrgfi 5456bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5457bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 545824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 545924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546024047306Smrgfi 546124047306Smrg 546224047306Smrgfound="no" 546324047306Smrg 546424047306Smrg if test $found = "no" ; then 546524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 546624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 546724047306Smrg fi 546824047306Smrg 546924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 547024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 547124047306Smrg fi 547224047306Smrg 547324047306Smrg CFLAGS="$CFLAGS -Wformat=2" 547424047306Smrg 5475bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5476bdc460c5Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 547724047306Smrg cacheid=xorg_cv_cc_flag__Wformat_2 5478bdc460c5Smrg if eval test \${$cacheid+y} 5479bdc460c5Smrgthen : 5480bdc460c5Smrg printf %s "(cached) " >&6 5481bdc460c5Smrgelse $as_nop 548224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 548324047306Smrg/* end confdefs.h. */ 548424047306Smrgint i; 548524047306Smrgint 5486bdc460c5Smrgmain (void) 548724047306Smrg{ 548824047306Smrg 548924047306Smrg ; 549024047306Smrg return 0; 549124047306Smrg} 549224047306Smrg_ACEOF 5493bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5494bdc460c5Smrgthen : 549524047306Smrg eval $cacheid=yes 5496bdc460c5Smrgelse $as_nop 549724047306Smrg eval $cacheid=no 549824047306Smrgfi 5499bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 550024047306Smrg conftest$ac_exeext conftest.$ac_ext 550124047306Smrgfi 550224047306Smrg 550324047306Smrg 550424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 550524047306Smrg 550624047306Smrg eval supported=\$$cacheid 5507bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5508bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 550924047306Smrg if test "$supported" = "yes" ; then 551024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 551124047306Smrg found="yes" 551224047306Smrg fi 551324047306Smrg fi 551424047306Smrg 551524047306Smrg if test $found = "no" ; then 551624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 551724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 551824047306Smrg fi 551924047306Smrg 552024047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 552124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 552224047306Smrg fi 552324047306Smrg 552424047306Smrg CFLAGS="$CFLAGS -Wformat" 552524047306Smrg 5526bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5527bdc460c5Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 552824047306Smrg cacheid=xorg_cv_cc_flag__Wformat 5529bdc460c5Smrg if eval test \${$cacheid+y} 5530bdc460c5Smrgthen : 5531bdc460c5Smrg printf %s "(cached) " >&6 5532bdc460c5Smrgelse $as_nop 553324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 553424047306Smrg/* end confdefs.h. */ 553524047306Smrgint i; 553624047306Smrgint 5537bdc460c5Smrgmain (void) 553824047306Smrg{ 553924047306Smrg 554024047306Smrg ; 554124047306Smrg return 0; 554224047306Smrg} 554324047306Smrg_ACEOF 5544bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5545bdc460c5Smrgthen : 554624047306Smrg eval $cacheid=yes 5547bdc460c5Smrgelse $as_nop 554824047306Smrg eval $cacheid=no 554924047306Smrgfi 5550bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 555124047306Smrg conftest$ac_exeext conftest.$ac_ext 555224047306Smrgfi 555324047306Smrg 555424047306Smrg 555524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555624047306Smrg 555724047306Smrg eval supported=\$$cacheid 5558bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5559bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 556024047306Smrg if test "$supported" = "yes" ; then 556124047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 556224047306Smrg found="yes" 556324047306Smrg fi 556424047306Smrg fi 556524047306Smrg 556624047306Smrg 556724047306Smrg 556824047306Smrg 556924047306Smrg 557024047306Smrg 557124047306Smrg 557224047306Smrg 557324047306Smrg 557424047306Smrg 557524047306Smrg 557624047306Smrg 557724047306Smrg 557824047306Smrg 557924047306Smrg 558024047306Smrg 558124047306Smrg 558224047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 558324047306Smrg 558424047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 558524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5586bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5587bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5588bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5589bdc460c5Smrgthen : 5590bdc460c5Smrg printf %s "(cached) " >&6 5591bdc460c5Smrgelse $as_nop 559224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 559324047306Smrg/* end confdefs.h. */ 559424047306Smrgint i; 559524047306Smrg_ACEOF 5596bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5597bdc460c5Smrgthen : 559824047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5599bdc460c5Smrgelse $as_nop 560024047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 560124047306Smrgfi 5602bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 560324047306Smrgfi 5604bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5605bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 560624047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 560724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 560824047306Smrgfi 560924047306Smrg 561024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 561124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 561224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 561324047306Smrg fi 561424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5615bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5616bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5617bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5618bdc460c5Smrgthen : 5619bdc460c5Smrg printf %s "(cached) " >&6 5620bdc460c5Smrgelse $as_nop 562124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 562224047306Smrg/* end confdefs.h. */ 562324047306Smrgint i; 562424047306Smrg_ACEOF 5625bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5626bdc460c5Smrgthen : 562724047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5628bdc460c5Smrgelse $as_nop 562924047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 563024047306Smrgfi 5631bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 563224047306Smrgfi 5633bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5634bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 563524047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 563624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 563724047306Smrgfi 563824047306Smrg 563924047306Smrgfound="no" 564024047306Smrg 564124047306Smrg if test $found = "no" ; then 564224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 564324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 564424047306Smrg fi 564524047306Smrg 564624047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 564724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 564824047306Smrg fi 564924047306Smrg 565024047306Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 565124047306Smrg 5652bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5653bdc460c5Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 565424047306Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5655bdc460c5Smrg if eval test \${$cacheid+y} 5656bdc460c5Smrgthen : 5657bdc460c5Smrg printf %s "(cached) " >&6 5658bdc460c5Smrgelse $as_nop 565924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 566024047306Smrg/* end confdefs.h. */ 566124047306Smrgint i; 566224047306Smrgint 5663bdc460c5Smrgmain (void) 566424047306Smrg{ 566524047306Smrg 566624047306Smrg ; 566724047306Smrg return 0; 566824047306Smrg} 566924047306Smrg_ACEOF 5670bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5671bdc460c5Smrgthen : 567224047306Smrg eval $cacheid=yes 5673bdc460c5Smrgelse $as_nop 567424047306Smrg eval $cacheid=no 567524047306Smrgfi 5676bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 567724047306Smrg conftest$ac_exeext conftest.$ac_ext 567824047306Smrgfi 567924047306Smrg 568024047306Smrg 568124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 568224047306Smrg 568324047306Smrg eval supported=\$$cacheid 5684bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5685bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 568624047306Smrg if test "$supported" = "yes" ; then 568724047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 568824047306Smrg found="yes" 568924047306Smrg fi 569024047306Smrg fi 569124047306Smrg 569224047306Smrg 569324047306Smrg 569424047306Smrg 569524047306Smrg 569624047306Smrg 569724047306Smrg 569824047306Smrg 569924047306Smrg 570024047306Smrg 570124047306Smrg 570224047306Smrg 570324047306Smrg 570424047306Smrg 570524047306Smrg 570624047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 570724047306Smrg 570824047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 570924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5711bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5712bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5713bdc460c5Smrgthen : 5714bdc460c5Smrg printf %s "(cached) " >&6 5715bdc460c5Smrgelse $as_nop 571624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 571724047306Smrg/* end confdefs.h. */ 571824047306Smrgint i; 571924047306Smrg_ACEOF 5720bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5721bdc460c5Smrgthen : 572224047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5723bdc460c5Smrgelse $as_nop 572424047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 572524047306Smrgfi 5726bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 572724047306Smrgfi 5728bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5729bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 573024047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 573124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 573224047306Smrgfi 573324047306Smrg 573424047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 573524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 573624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 573724047306Smrg fi 573824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5739bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5740bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5741bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5742bdc460c5Smrgthen : 5743bdc460c5Smrg printf %s "(cached) " >&6 5744bdc460c5Smrgelse $as_nop 574524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 574624047306Smrg/* end confdefs.h. */ 574724047306Smrgint i; 574824047306Smrg_ACEOF 5749bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5750bdc460c5Smrgthen : 575124047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5752bdc460c5Smrgelse $as_nop 575324047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 575424047306Smrgfi 5755bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 575624047306Smrgfi 5757bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5758bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 575924047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 576024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 576124047306Smrgfi 576224047306Smrg 576324047306Smrgfound="no" 576424047306Smrg 576524047306Smrg if test $found = "no" ; then 576624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 576724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 576824047306Smrg fi 576924047306Smrg 577024047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 577124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 577224047306Smrg fi 577324047306Smrg 577424047306Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 577524047306Smrg 5776bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5777bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 577824047306Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5779bdc460c5Smrg if eval test \${$cacheid+y} 5780bdc460c5Smrgthen : 5781bdc460c5Smrg printf %s "(cached) " >&6 5782bdc460c5Smrgelse $as_nop 578324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 578424047306Smrg/* end confdefs.h. */ 578524047306Smrgint i; 578624047306Smrgint 5787bdc460c5Smrgmain (void) 578824047306Smrg{ 578924047306Smrg 579024047306Smrg ; 579124047306Smrg return 0; 579224047306Smrg} 579324047306Smrg_ACEOF 5794bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5795bdc460c5Smrgthen : 579624047306Smrg eval $cacheid=yes 5797bdc460c5Smrgelse $as_nop 579824047306Smrg eval $cacheid=no 579924047306Smrgfi 5800bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 580124047306Smrg conftest$ac_exeext conftest.$ac_ext 580224047306Smrgfi 580324047306Smrg 580424047306Smrg 580524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 580624047306Smrg 580724047306Smrg eval supported=\$$cacheid 5808bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5809bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 581024047306Smrg if test "$supported" = "yes" ; then 581124047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 581224047306Smrg found="yes" 581324047306Smrg fi 581424047306Smrg fi 581524047306Smrg 581624047306Smrg 581724047306Smrg 581824047306Smrg 581924047306Smrg 582024047306Smrg 582124047306Smrg 582224047306Smrg 582324047306Smrg 582424047306Smrg 582524047306Smrg 582624047306Smrg 582724047306Smrg 582824047306Smrg 582924047306Smrg 583024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 583124047306Smrg 583224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 583324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5835bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5836bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5837bdc460c5Smrgthen : 5838bdc460c5Smrg printf %s "(cached) " >&6 5839bdc460c5Smrgelse $as_nop 584024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 584124047306Smrg/* end confdefs.h. */ 584224047306Smrgint i; 584324047306Smrg_ACEOF 5844bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5845bdc460c5Smrgthen : 584624047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5847bdc460c5Smrgelse $as_nop 584824047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 584924047306Smrgfi 5850bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 585124047306Smrgfi 5852bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5853bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 585424047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 585524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 585624047306Smrgfi 585724047306Smrg 585824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 585924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 586024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 586124047306Smrg fi 586224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5864bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5865bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5866bdc460c5Smrgthen : 5867bdc460c5Smrg printf %s "(cached) " >&6 5868bdc460c5Smrgelse $as_nop 586924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 587024047306Smrg/* end confdefs.h. */ 587124047306Smrgint i; 587224047306Smrg_ACEOF 5873bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5874bdc460c5Smrgthen : 587524047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5876bdc460c5Smrgelse $as_nop 587724047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 587824047306Smrgfi 5879bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 588024047306Smrgfi 5881bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5882bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 588324047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 588424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 588524047306Smrgfi 588624047306Smrg 588724047306Smrgfound="no" 588824047306Smrg 588924047306Smrg if test $found = "no" ; then 589024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 589124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 589224047306Smrg fi 589324047306Smrg 589424047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 589524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 589624047306Smrg fi 589724047306Smrg 589824047306Smrg CFLAGS="$CFLAGS -Wnested-externs" 589924047306Smrg 5900bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5901bdc460c5Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 590224047306Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5903bdc460c5Smrg if eval test \${$cacheid+y} 5904bdc460c5Smrgthen : 5905bdc460c5Smrg printf %s "(cached) " >&6 5906bdc460c5Smrgelse $as_nop 590724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 590824047306Smrg/* end confdefs.h. */ 590924047306Smrgint i; 591024047306Smrgint 5911bdc460c5Smrgmain (void) 591224047306Smrg{ 591324047306Smrg 591424047306Smrg ; 591524047306Smrg return 0; 591624047306Smrg} 591724047306Smrg_ACEOF 5918bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 5919bdc460c5Smrgthen : 592024047306Smrg eval $cacheid=yes 5921bdc460c5Smrgelse $as_nop 592224047306Smrg eval $cacheid=no 592324047306Smrgfi 5924bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 592524047306Smrg conftest$ac_exeext conftest.$ac_ext 592624047306Smrgfi 592724047306Smrg 592824047306Smrg 592924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 593024047306Smrg 593124047306Smrg eval supported=\$$cacheid 5932bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 593424047306Smrg if test "$supported" = "yes" ; then 593524047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 593624047306Smrg found="yes" 593724047306Smrg fi 593824047306Smrg fi 593924047306Smrg 594024047306Smrg 594124047306Smrg 594224047306Smrg 594324047306Smrg 594424047306Smrg 594524047306Smrg 594624047306Smrg 594724047306Smrg 594824047306Smrg 594924047306Smrg 595024047306Smrg 595124047306Smrg 595224047306Smrg 595324047306Smrg 595424047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 595524047306Smrg 595624047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 595724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5959bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5960bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5961bdc460c5Smrgthen : 5962bdc460c5Smrg printf %s "(cached) " >&6 5963bdc460c5Smrgelse $as_nop 596424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 596524047306Smrg/* end confdefs.h. */ 596624047306Smrgint i; 596724047306Smrg_ACEOF 5968bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5969bdc460c5Smrgthen : 597024047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5971bdc460c5Smrgelse $as_nop 597224047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 597324047306Smrgfi 5974bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 597524047306Smrgfi 5976bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5977bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 597824047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 597924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598024047306Smrgfi 598124047306Smrg 598224047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 598324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 598424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 598524047306Smrg fi 598624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5988bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5989bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5990bdc460c5Smrgthen : 5991bdc460c5Smrg printf %s "(cached) " >&6 5992bdc460c5Smrgelse $as_nop 599324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 599424047306Smrg/* end confdefs.h. */ 599524047306Smrgint i; 599624047306Smrg_ACEOF 5997bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 5998bdc460c5Smrgthen : 599924047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6000bdc460c5Smrgelse $as_nop 600124047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 600224047306Smrgfi 6003bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 600424047306Smrgfi 6005bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6006bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 600724047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 600824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 600924047306Smrgfi 601024047306Smrg 601124047306Smrgfound="no" 601224047306Smrg 601324047306Smrg if test $found = "no" ; then 601424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 601524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 601624047306Smrg fi 601724047306Smrg 601824047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 601924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 602024047306Smrg fi 602124047306Smrg 602224047306Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 602324047306Smrg 6024bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6025bdc460c5Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 602624047306Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 6027bdc460c5Smrg if eval test \${$cacheid+y} 6028bdc460c5Smrgthen : 6029bdc460c5Smrg printf %s "(cached) " >&6 6030bdc460c5Smrgelse $as_nop 603124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 603224047306Smrg/* end confdefs.h. */ 603324047306Smrgint i; 603424047306Smrgint 6035bdc460c5Smrgmain (void) 603624047306Smrg{ 603724047306Smrg 603824047306Smrg ; 603924047306Smrg return 0; 604024047306Smrg} 604124047306Smrg_ACEOF 6042bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6043bdc460c5Smrgthen : 604424047306Smrg eval $cacheid=yes 6045bdc460c5Smrgelse $as_nop 604624047306Smrg eval $cacheid=no 604724047306Smrgfi 6048bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 604924047306Smrg conftest$ac_exeext conftest.$ac_ext 605024047306Smrgfi 605124047306Smrg 605224047306Smrg 605324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 605424047306Smrg 605524047306Smrg eval supported=\$$cacheid 6056bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6057bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 605824047306Smrg if test "$supported" = "yes" ; then 605924047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 606024047306Smrg found="yes" 606124047306Smrg fi 606224047306Smrg fi 606324047306Smrg 606424047306Smrg 606524047306Smrg 606624047306Smrg 606724047306Smrg 606824047306Smrg 606924047306Smrg 607024047306Smrg 607124047306Smrg 607224047306Smrg 607324047306Smrg 607424047306Smrg 607524047306Smrg 607624047306Smrg 607724047306Smrg 607824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 607924047306Smrg 608024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 608124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6083bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6084bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6085bdc460c5Smrgthen : 6086bdc460c5Smrg printf %s "(cached) " >&6 6087bdc460c5Smrgelse $as_nop 608824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608924047306Smrg/* end confdefs.h. */ 609024047306Smrgint i; 609124047306Smrg_ACEOF 6092bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6093bdc460c5Smrgthen : 609424047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6095bdc460c5Smrgelse $as_nop 609624047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 609724047306Smrgfi 6098bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 609924047306Smrgfi 6100bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6101bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 610224047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 610324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 610424047306Smrgfi 610524047306Smrg 610624047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 610724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610924047306Smrg fi 611024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6111bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6112bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6113bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6114bdc460c5Smrgthen : 6115bdc460c5Smrg printf %s "(cached) " >&6 6116bdc460c5Smrgelse $as_nop 611724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 611824047306Smrg/* end confdefs.h. */ 611924047306Smrgint i; 612024047306Smrg_ACEOF 6121bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6122bdc460c5Smrgthen : 612324047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6124bdc460c5Smrgelse $as_nop 612524047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 612624047306Smrgfi 6127bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 612824047306Smrgfi 6129bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6130bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 613124047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 613224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 613324047306Smrgfi 613424047306Smrg 613524047306Smrgfound="no" 613624047306Smrg 613724047306Smrg if test $found = "no" ; then 613824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 613924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 614024047306Smrg fi 614124047306Smrg 614224047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 614324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 614424047306Smrg fi 614524047306Smrg 614624047306Smrg CFLAGS="$CFLAGS -Wold-style-definition" 614724047306Smrg 6148bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6149bdc460c5Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 615024047306Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 6151bdc460c5Smrg if eval test \${$cacheid+y} 6152bdc460c5Smrgthen : 6153bdc460c5Smrg printf %s "(cached) " >&6 6154bdc460c5Smrgelse $as_nop 615524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 615624047306Smrg/* end confdefs.h. */ 615724047306Smrgint i; 615824047306Smrgint 6159bdc460c5Smrgmain (void) 616024047306Smrg{ 616124047306Smrg 616224047306Smrg ; 616324047306Smrg return 0; 616424047306Smrg} 616524047306Smrg_ACEOF 6166bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6167bdc460c5Smrgthen : 616824047306Smrg eval $cacheid=yes 6169bdc460c5Smrgelse $as_nop 617024047306Smrg eval $cacheid=no 617124047306Smrgfi 6172bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 617324047306Smrg conftest$ac_exeext conftest.$ac_ext 617424047306Smrgfi 617524047306Smrg 617624047306Smrg 617724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 617824047306Smrg 617924047306Smrg eval supported=\$$cacheid 6180bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6181bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 618224047306Smrg if test "$supported" = "yes" ; then 618324047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 618424047306Smrg found="yes" 618524047306Smrg fi 618624047306Smrg fi 618724047306Smrg 618824047306Smrg if test $found = "no" ; then 618924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 619024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 619124047306Smrg fi 619224047306Smrg 619324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 619424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 619524047306Smrg fi 619624047306Smrg 619724047306Smrg CFLAGS="$CFLAGS -fd" 619824047306Smrg 6199bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6200bdc460c5Smrgprintf %s "checking if $CC supports -fd... " >&6; } 620124047306Smrg cacheid=xorg_cv_cc_flag__fd 6202bdc460c5Smrg if eval test \${$cacheid+y} 6203bdc460c5Smrgthen : 6204bdc460c5Smrg printf %s "(cached) " >&6 6205bdc460c5Smrgelse $as_nop 620624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 620724047306Smrg/* end confdefs.h. */ 620824047306Smrgint i; 620924047306Smrgint 6210bdc460c5Smrgmain (void) 621124047306Smrg{ 621224047306Smrg 621324047306Smrg ; 621424047306Smrg return 0; 621524047306Smrg} 621624047306Smrg_ACEOF 6217bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6218bdc460c5Smrgthen : 621924047306Smrg eval $cacheid=yes 6220bdc460c5Smrgelse $as_nop 622124047306Smrg eval $cacheid=no 622224047306Smrgfi 6223bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 622424047306Smrg conftest$ac_exeext conftest.$ac_ext 622524047306Smrgfi 622624047306Smrg 622724047306Smrg 622824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622924047306Smrg 623024047306Smrg eval supported=\$$cacheid 6231bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6232bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 623324047306Smrg if test "$supported" = "yes" ; then 623424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 623524047306Smrg found="yes" 623624047306Smrg fi 623724047306Smrg fi 623824047306Smrg 623924047306Smrg 624024047306Smrg 624124047306Smrg 624224047306Smrg 624324047306Smrg 624424047306Smrg 624524047306Smrg 624624047306Smrg 624724047306Smrg 624824047306Smrg 624924047306Smrg 625024047306Smrg 625124047306Smrg 625224047306Smrg 625324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 625424047306Smrg 625524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 625624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6258bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6259bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6260bdc460c5Smrgthen : 6261bdc460c5Smrg printf %s "(cached) " >&6 6262bdc460c5Smrgelse $as_nop 626324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 626424047306Smrg/* end confdefs.h. */ 626524047306Smrgint i; 626624047306Smrg_ACEOF 6267bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6268bdc460c5Smrgthen : 626924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6270bdc460c5Smrgelse $as_nop 627124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 627224047306Smrgfi 6273bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 627424047306Smrgfi 6275bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6276bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 627724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 627824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 627924047306Smrgfi 628024047306Smrg 628124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 628224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 628324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 628424047306Smrg fi 628524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6287bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6288bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6289bdc460c5Smrgthen : 6290bdc460c5Smrg printf %s "(cached) " >&6 6291bdc460c5Smrgelse $as_nop 629224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 629324047306Smrg/* end confdefs.h. */ 629424047306Smrgint i; 629524047306Smrg_ACEOF 6296bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6297bdc460c5Smrgthen : 629824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6299bdc460c5Smrgelse $as_nop 630024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 630124047306Smrgfi 6302bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 630324047306Smrgfi 6304bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6305bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 630624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 630724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 630824047306Smrgfi 630924047306Smrg 631024047306Smrgfound="no" 631124047306Smrg 631224047306Smrg if test $found = "no" ; then 631324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 631424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 631524047306Smrg fi 631624047306Smrg 631724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 631824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 631924047306Smrg fi 632024047306Smrg 632124047306Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 632224047306Smrg 6323bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6324bdc460c5Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 632524047306Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6326bdc460c5Smrg if eval test \${$cacheid+y} 6327bdc460c5Smrgthen : 6328bdc460c5Smrg printf %s "(cached) " >&6 6329bdc460c5Smrgelse $as_nop 633024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 633124047306Smrg/* end confdefs.h. */ 633224047306Smrgint i; 633324047306Smrgint 6334bdc460c5Smrgmain (void) 633524047306Smrg{ 633624047306Smrg 633724047306Smrg ; 633824047306Smrg return 0; 633924047306Smrg} 634024047306Smrg_ACEOF 6341bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6342bdc460c5Smrgthen : 634324047306Smrg eval $cacheid=yes 6344bdc460c5Smrgelse $as_nop 634524047306Smrg eval $cacheid=no 634624047306Smrgfi 6347bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 634824047306Smrg conftest$ac_exeext conftest.$ac_ext 634924047306Smrgfi 635024047306Smrg 635124047306Smrg 635224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 635324047306Smrg 635424047306Smrg eval supported=\$$cacheid 6355bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6356bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 635724047306Smrg if test "$supported" = "yes" ; then 635824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 635924047306Smrg found="yes" 636024047306Smrg fi 636124047306Smrg fi 636224047306Smrg 636324047306Smrg 636424047306Smrg 636524047306Smrg 636624047306Smrg 636724047306Smrg# This chunk adds additional warnings that could catch undesired effects. 636824047306Smrg 636924047306Smrg 637024047306Smrg 637124047306Smrg 637224047306Smrg 637324047306Smrg 637424047306Smrg 637524047306Smrg 637624047306Smrg 637724047306Smrg 637824047306Smrg 637924047306Smrg 638024047306Smrg 638124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 638224047306Smrg 638324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 638424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6385bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6386bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6387bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6388bdc460c5Smrgthen : 6389bdc460c5Smrg printf %s "(cached) " >&6 6390bdc460c5Smrgelse $as_nop 639124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 639224047306Smrg/* end confdefs.h. */ 639324047306Smrgint i; 639424047306Smrg_ACEOF 6395bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6396bdc460c5Smrgthen : 639724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6398bdc460c5Smrgelse $as_nop 639924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 640024047306Smrgfi 6401bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 640224047306Smrgfi 6403bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6404bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 640524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 640624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 640724047306Smrgfi 640824047306Smrg 640924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 641024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 641124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 641224047306Smrg fi 641324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6414bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6415bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6416bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6417bdc460c5Smrgthen : 6418bdc460c5Smrg printf %s "(cached) " >&6 6419bdc460c5Smrgelse $as_nop 642024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 642124047306Smrg/* end confdefs.h. */ 642224047306Smrgint i; 642324047306Smrg_ACEOF 6424bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6425bdc460c5Smrgthen : 642624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6427bdc460c5Smrgelse $as_nop 642824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 642924047306Smrgfi 6430bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 643124047306Smrgfi 6432bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6433bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 643424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 643524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 643624047306Smrgfi 643724047306Smrg 643824047306Smrgfound="no" 643924047306Smrg 644024047306Smrg if test $found = "no" ; then 644124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 644224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 644324047306Smrg fi 644424047306Smrg 644524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 644624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 644724047306Smrg fi 644824047306Smrg 644924047306Smrg CFLAGS="$CFLAGS -Wunused" 645024047306Smrg 6451bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6452bdc460c5Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 645324047306Smrg cacheid=xorg_cv_cc_flag__Wunused 6454bdc460c5Smrg if eval test \${$cacheid+y} 6455bdc460c5Smrgthen : 6456bdc460c5Smrg printf %s "(cached) " >&6 6457bdc460c5Smrgelse $as_nop 645824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 645924047306Smrg/* end confdefs.h. */ 646024047306Smrgint i; 646124047306Smrgint 6462bdc460c5Smrgmain (void) 646324047306Smrg{ 646424047306Smrg 646524047306Smrg ; 646624047306Smrg return 0; 646724047306Smrg} 646824047306Smrg_ACEOF 6469bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6470bdc460c5Smrgthen : 647124047306Smrg eval $cacheid=yes 6472bdc460c5Smrgelse $as_nop 647324047306Smrg eval $cacheid=no 647424047306Smrgfi 6475bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 647624047306Smrg conftest$ac_exeext conftest.$ac_ext 647724047306Smrgfi 647824047306Smrg 647924047306Smrg 648024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 648124047306Smrg 648224047306Smrg eval supported=\$$cacheid 6483bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6484bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 648524047306Smrg if test "$supported" = "yes" ; then 648624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 648724047306Smrg found="yes" 648824047306Smrg fi 648924047306Smrg fi 649024047306Smrg 649124047306Smrg 649224047306Smrg 649324047306Smrg 649424047306Smrg 649524047306Smrg 649624047306Smrg 649724047306Smrg 649824047306Smrg 649924047306Smrg 650024047306Smrg 650124047306Smrg 650224047306Smrg 650324047306Smrg 650424047306Smrg 650524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 650624047306Smrg 650724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 650824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6510bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6511bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6512bdc460c5Smrgthen : 6513bdc460c5Smrg printf %s "(cached) " >&6 6514bdc460c5Smrgelse $as_nop 651524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 651624047306Smrg/* end confdefs.h. */ 651724047306Smrgint i; 651824047306Smrg_ACEOF 6519bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6520bdc460c5Smrgthen : 652124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6522bdc460c5Smrgelse $as_nop 652324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 652424047306Smrgfi 6525bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 652624047306Smrgfi 6527bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6528bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 652924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 653024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 653124047306Smrgfi 653224047306Smrg 653324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 653424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 653524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 653624047306Smrg fi 653724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6538bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6539bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6540bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6541bdc460c5Smrgthen : 6542bdc460c5Smrg printf %s "(cached) " >&6 6543bdc460c5Smrgelse $as_nop 654424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 654524047306Smrg/* end confdefs.h. */ 654624047306Smrgint i; 654724047306Smrg_ACEOF 6548bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6549bdc460c5Smrgthen : 655024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6551bdc460c5Smrgelse $as_nop 655224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 655324047306Smrgfi 6554bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 655524047306Smrgfi 6556bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6557bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 655824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 655924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 656024047306Smrgfi 656124047306Smrg 656224047306Smrgfound="no" 656324047306Smrg 656424047306Smrg if test $found = "no" ; then 656524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 656624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 656724047306Smrg fi 656824047306Smrg 656924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 657024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 657124047306Smrg fi 657224047306Smrg 657324047306Smrg CFLAGS="$CFLAGS -Wuninitialized" 657424047306Smrg 6575bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6576bdc460c5Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 657724047306Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6578bdc460c5Smrg if eval test \${$cacheid+y} 6579bdc460c5Smrgthen : 6580bdc460c5Smrg printf %s "(cached) " >&6 6581bdc460c5Smrgelse $as_nop 658224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 658324047306Smrg/* end confdefs.h. */ 658424047306Smrgint i; 658524047306Smrgint 6586bdc460c5Smrgmain (void) 658724047306Smrg{ 658824047306Smrg 658924047306Smrg ; 659024047306Smrg return 0; 659124047306Smrg} 659224047306Smrg_ACEOF 6593bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6594bdc460c5Smrgthen : 659524047306Smrg eval $cacheid=yes 6596bdc460c5Smrgelse $as_nop 659724047306Smrg eval $cacheid=no 659824047306Smrgfi 6599bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 660024047306Smrg conftest$ac_exeext conftest.$ac_ext 660124047306Smrgfi 660224047306Smrg 660324047306Smrg 660424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 660524047306Smrg 660624047306Smrg eval supported=\$$cacheid 6607bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6608bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 660924047306Smrg if test "$supported" = "yes" ; then 661024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 661124047306Smrg found="yes" 661224047306Smrg fi 661324047306Smrg fi 661424047306Smrg 661524047306Smrg 661624047306Smrg 661724047306Smrg 661824047306Smrg 661924047306Smrg 662024047306Smrg 662124047306Smrg 662224047306Smrg 662324047306Smrg 662424047306Smrg 662524047306Smrg 662624047306Smrg 662724047306Smrg 662824047306Smrg 662924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 663024047306Smrg 663124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 663224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6634bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6635bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6636bdc460c5Smrgthen : 6637bdc460c5Smrg printf %s "(cached) " >&6 6638bdc460c5Smrgelse $as_nop 663924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 664024047306Smrg/* end confdefs.h. */ 664124047306Smrgint i; 664224047306Smrg_ACEOF 6643bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6644bdc460c5Smrgthen : 664524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6646bdc460c5Smrgelse $as_nop 664724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 664824047306Smrgfi 6649bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 665024047306Smrgfi 6651bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6652bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 665324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 665424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 665524047306Smrgfi 665624047306Smrg 665724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 665824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 665924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 666024047306Smrg fi 666124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6663bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6664bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6665bdc460c5Smrgthen : 6666bdc460c5Smrg printf %s "(cached) " >&6 6667bdc460c5Smrgelse $as_nop 666824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 666924047306Smrg/* end confdefs.h. */ 667024047306Smrgint i; 667124047306Smrg_ACEOF 6672bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6673bdc460c5Smrgthen : 667424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6675bdc460c5Smrgelse $as_nop 667624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 667724047306Smrgfi 6678bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 667924047306Smrgfi 6680bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6681bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 668224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 668324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 668424047306Smrgfi 668524047306Smrg 668624047306Smrgfound="no" 668724047306Smrg 668824047306Smrg if test $found = "no" ; then 668924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 669024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 669124047306Smrg fi 669224047306Smrg 669324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 669424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 669524047306Smrg fi 669624047306Smrg 669724047306Smrg CFLAGS="$CFLAGS -Wshadow" 669824047306Smrg 6699bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6700bdc460c5Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 670124047306Smrg cacheid=xorg_cv_cc_flag__Wshadow 6702bdc460c5Smrg if eval test \${$cacheid+y} 6703bdc460c5Smrgthen : 6704bdc460c5Smrg printf %s "(cached) " >&6 6705bdc460c5Smrgelse $as_nop 670624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 670724047306Smrg/* end confdefs.h. */ 670824047306Smrgint i; 670924047306Smrgint 6710bdc460c5Smrgmain (void) 671124047306Smrg{ 671224047306Smrg 671324047306Smrg ; 671424047306Smrg return 0; 671524047306Smrg} 671624047306Smrg_ACEOF 6717bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6718bdc460c5Smrgthen : 671924047306Smrg eval $cacheid=yes 6720bdc460c5Smrgelse $as_nop 672124047306Smrg eval $cacheid=no 672224047306Smrgfi 6723bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 672424047306Smrg conftest$ac_exeext conftest.$ac_ext 672524047306Smrgfi 672624047306Smrg 672724047306Smrg 672824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 672924047306Smrg 673024047306Smrg eval supported=\$$cacheid 6731bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 673324047306Smrg if test "$supported" = "yes" ; then 673424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 673524047306Smrg found="yes" 673624047306Smrg fi 673724047306Smrg fi 673824047306Smrg 673924047306Smrg 674024047306Smrg 674124047306Smrg 674224047306Smrg 674324047306Smrg 674424047306Smrg 674524047306Smrg 674624047306Smrg 674724047306Smrg 674824047306Smrg 674924047306Smrg 675024047306Smrg 675124047306Smrg 675224047306Smrg 675324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 675424047306Smrg 675524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 675624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6760bdc460c5Smrgthen : 6761bdc460c5Smrg printf %s "(cached) " >&6 6762bdc460c5Smrgelse $as_nop 676324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 676424047306Smrg/* end confdefs.h. */ 676524047306Smrgint i; 676624047306Smrg_ACEOF 6767bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6768bdc460c5Smrgthen : 676924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6770bdc460c5Smrgelse $as_nop 677124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 677224047306Smrgfi 6773bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 677424047306Smrgfi 6775bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6776bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 677724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 677824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 677924047306Smrgfi 678024047306Smrg 678124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 678224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 678324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 678424047306Smrg fi 678524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6786bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6787bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6788bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6789bdc460c5Smrgthen : 6790bdc460c5Smrg printf %s "(cached) " >&6 6791bdc460c5Smrgelse $as_nop 679224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679324047306Smrg/* end confdefs.h. */ 679424047306Smrgint i; 679524047306Smrg_ACEOF 6796bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6797bdc460c5Smrgthen : 679824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6799bdc460c5Smrgelse $as_nop 680024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 680124047306Smrgfi 6802bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 680324047306Smrgfi 6804bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6805bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 680624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 680724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 680824047306Smrgfi 680924047306Smrg 681024047306Smrgfound="no" 681124047306Smrg 681224047306Smrg if test $found = "no" ; then 681324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 681424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 681524047306Smrg fi 681624047306Smrg 681724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 681824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 681924047306Smrg fi 682024047306Smrg 682124047306Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 682224047306Smrg 6823bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6824bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 682524047306Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6826bdc460c5Smrg if eval test \${$cacheid+y} 6827bdc460c5Smrgthen : 6828bdc460c5Smrg printf %s "(cached) " >&6 6829bdc460c5Smrgelse $as_nop 683024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 683124047306Smrg/* end confdefs.h. */ 683224047306Smrgint i; 683324047306Smrgint 6834bdc460c5Smrgmain (void) 683524047306Smrg{ 683624047306Smrg 683724047306Smrg ; 683824047306Smrg return 0; 683924047306Smrg} 684024047306Smrg_ACEOF 6841bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6842bdc460c5Smrgthen : 684324047306Smrg eval $cacheid=yes 6844bdc460c5Smrgelse $as_nop 684524047306Smrg eval $cacheid=no 684624047306Smrgfi 6847bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 684824047306Smrg conftest$ac_exeext conftest.$ac_ext 684924047306Smrgfi 685024047306Smrg 685124047306Smrg 685224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 685324047306Smrg 685424047306Smrg eval supported=\$$cacheid 6855bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6856bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 685724047306Smrg if test "$supported" = "yes" ; then 685824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 685924047306Smrg found="yes" 686024047306Smrg fi 686124047306Smrg fi 686224047306Smrg 686324047306Smrg 686424047306Smrg 686524047306Smrg 686624047306Smrg 686724047306Smrg 686824047306Smrg 686924047306Smrg 687024047306Smrg 687124047306Smrg 687224047306Smrg 687324047306Smrg 687424047306Smrg 687524047306Smrg 687624047306Smrg 687724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 687824047306Smrg 687924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 688024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6882bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6883bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6884bdc460c5Smrgthen : 6885bdc460c5Smrg printf %s "(cached) " >&6 6886bdc460c5Smrgelse $as_nop 688724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 688824047306Smrg/* end confdefs.h. */ 688924047306Smrgint i; 689024047306Smrg_ACEOF 6891bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6892bdc460c5Smrgthen : 689324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6894bdc460c5Smrgelse $as_nop 689524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 689624047306Smrgfi 6897bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 689824047306Smrgfi 6899bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6900bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 690124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 690224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 690324047306Smrgfi 690424047306Smrg 690524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 690624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 690724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 690824047306Smrg fi 690924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6911bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6912bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6913bdc460c5Smrgthen : 6914bdc460c5Smrg printf %s "(cached) " >&6 6915bdc460c5Smrgelse $as_nop 691624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 691724047306Smrg/* end confdefs.h. */ 691824047306Smrgint i; 691924047306Smrg_ACEOF 6920bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 6921bdc460c5Smrgthen : 692224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6923bdc460c5Smrgelse $as_nop 692424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 692524047306Smrgfi 6926bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 692724047306Smrgfi 6928bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6929bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 693024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 693124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 693224047306Smrgfi 693324047306Smrg 693424047306Smrgfound="no" 693524047306Smrg 693624047306Smrg if test $found = "no" ; then 693724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 693824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 693924047306Smrg fi 694024047306Smrg 694124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 694224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 694324047306Smrg fi 694424047306Smrg 694524047306Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 694624047306Smrg 6947bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6948bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 694924047306Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6950bdc460c5Smrg if eval test \${$cacheid+y} 6951bdc460c5Smrgthen : 6952bdc460c5Smrg printf %s "(cached) " >&6 6953bdc460c5Smrgelse $as_nop 695424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695524047306Smrg/* end confdefs.h. */ 695624047306Smrgint i; 695724047306Smrgint 6958bdc460c5Smrgmain (void) 695924047306Smrg{ 696024047306Smrg 696124047306Smrg ; 696224047306Smrg return 0; 696324047306Smrg} 696424047306Smrg_ACEOF 6965bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 6966bdc460c5Smrgthen : 696724047306Smrg eval $cacheid=yes 6968bdc460c5Smrgelse $as_nop 696924047306Smrg eval $cacheid=no 697024047306Smrgfi 6971bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 697224047306Smrg conftest$ac_exeext conftest.$ac_ext 697324047306Smrgfi 697424047306Smrg 697524047306Smrg 697624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 697724047306Smrg 697824047306Smrg eval supported=\$$cacheid 6979bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 698124047306Smrg if test "$supported" = "yes" ; then 698224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 698324047306Smrg found="yes" 698424047306Smrg fi 698524047306Smrg fi 698624047306Smrg 698724047306Smrg 698824047306Smrg 698924047306Smrg 699024047306Smrg 699124047306Smrg 699224047306Smrg 699324047306Smrg 699424047306Smrg 699524047306Smrg 699624047306Smrg 699724047306Smrg 699824047306Smrg 699924047306Smrg 700024047306Smrg 700124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 700224047306Smrg 700324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 700424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7006bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7007bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7008bdc460c5Smrgthen : 7009bdc460c5Smrg printf %s "(cached) " >&6 7010bdc460c5Smrgelse $as_nop 701124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 701224047306Smrg/* end confdefs.h. */ 701324047306Smrgint i; 701424047306Smrg_ACEOF 7015bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7016bdc460c5Smrgthen : 701724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7018bdc460c5Smrgelse $as_nop 701924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 702024047306Smrgfi 7021bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 702224047306Smrgfi 7023bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7024bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 702524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 702624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 702724047306Smrgfi 702824047306Smrg 702924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 703024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 703124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 703224047306Smrg fi 703324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7034bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7035bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7036bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7037bdc460c5Smrgthen : 7038bdc460c5Smrg printf %s "(cached) " >&6 7039bdc460c5Smrgelse $as_nop 704024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 704124047306Smrg/* end confdefs.h. */ 704224047306Smrgint i; 704324047306Smrg_ACEOF 7044bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7045bdc460c5Smrgthen : 704624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7047bdc460c5Smrgelse $as_nop 704824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 704924047306Smrgfi 7050bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 705124047306Smrgfi 7052bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7053bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 705424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 705524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 705624047306Smrgfi 705724047306Smrg 705824047306Smrgfound="no" 705924047306Smrg 706024047306Smrg if test $found = "no" ; then 706124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 706224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 706324047306Smrg fi 706424047306Smrg 706524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 706624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 706724047306Smrg fi 706824047306Smrg 706924047306Smrg CFLAGS="$CFLAGS -Wredundant-decls" 707024047306Smrg 7071bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7072bdc460c5Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 707324047306Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 7074bdc460c5Smrg if eval test \${$cacheid+y} 7075bdc460c5Smrgthen : 7076bdc460c5Smrg printf %s "(cached) " >&6 7077bdc460c5Smrgelse $as_nop 707824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 707924047306Smrg/* end confdefs.h. */ 708024047306Smrgint i; 708124047306Smrgint 7082bdc460c5Smrgmain (void) 708324047306Smrg{ 708424047306Smrg 708524047306Smrg ; 708624047306Smrg return 0; 708724047306Smrg} 708824047306Smrg_ACEOF 7089bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7090bdc460c5Smrgthen : 709124047306Smrg eval $cacheid=yes 7092bdc460c5Smrgelse $as_nop 709324047306Smrg eval $cacheid=no 709424047306Smrgfi 7095bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 709624047306Smrg conftest$ac_exeext conftest.$ac_ext 709724047306Smrgfi 709824047306Smrg 709924047306Smrg 710024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 710124047306Smrg 710224047306Smrg eval supported=\$$cacheid 7103bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7104bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 710524047306Smrg if test "$supported" = "yes" ; then 710624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 710724047306Smrg found="yes" 710824047306Smrg fi 710924047306Smrg fi 711024047306Smrg 711124047306Smrg 711224047306Smrg 711324047306Smrg 711424047306Smrg 711524047306Smrg 711624047306Smrg 711724047306Smrg 711824047306Smrg 711924047306Smrg 712024047306Smrg 712124047306Smrg 712224047306Smrg 712324047306Smrg 712424047306Smrg 712524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 712624047306Smrg 712724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 712824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7130bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7131bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7132bdc460c5Smrgthen : 7133bdc460c5Smrg printf %s "(cached) " >&6 7134bdc460c5Smrgelse $as_nop 713524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 713624047306Smrg/* end confdefs.h. */ 713724047306Smrgint i; 713824047306Smrg_ACEOF 7139bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7140bdc460c5Smrgthen : 714124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7142bdc460c5Smrgelse $as_nop 714324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 714424047306Smrgfi 7145bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 714624047306Smrgfi 7147bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7148bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 714924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 715024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 715124047306Smrgfi 715224047306Smrg 715324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 715424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 715524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 715624047306Smrg fi 715724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7158bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7159bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7160bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7161bdc460c5Smrgthen : 7162bdc460c5Smrg printf %s "(cached) " >&6 7163bdc460c5Smrgelse $as_nop 716424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 716524047306Smrg/* end confdefs.h. */ 716624047306Smrgint i; 716724047306Smrg_ACEOF 7168bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7169bdc460c5Smrgthen : 717024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7171bdc460c5Smrgelse $as_nop 717224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 717324047306Smrgfi 7174bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 717524047306Smrgfi 7176bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7177bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 717824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 717924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 718024047306Smrgfi 718124047306Smrg 718224047306Smrgfound="no" 718324047306Smrg 718424047306Smrg if test $found = "no" ; then 718524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 718624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 718724047306Smrg fi 718824047306Smrg 718924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 719024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 719124047306Smrg fi 719224047306Smrg 719324047306Smrg CFLAGS="$CFLAGS -Wlogical-op" 719424047306Smrg 7195bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7196bdc460c5Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 719724047306Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 7198bdc460c5Smrg if eval test \${$cacheid+y} 7199bdc460c5Smrgthen : 7200bdc460c5Smrg printf %s "(cached) " >&6 7201bdc460c5Smrgelse $as_nop 720224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 720324047306Smrg/* end confdefs.h. */ 720424047306Smrgint i; 720524047306Smrgint 7206bdc460c5Smrgmain (void) 720724047306Smrg{ 720824047306Smrg 720924047306Smrg ; 721024047306Smrg return 0; 721124047306Smrg} 721224047306Smrg_ACEOF 7213bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7214bdc460c5Smrgthen : 721524047306Smrg eval $cacheid=yes 7216bdc460c5Smrgelse $as_nop 721724047306Smrg eval $cacheid=no 721824047306Smrgfi 7219bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 722024047306Smrg conftest$ac_exeext conftest.$ac_ext 722124047306Smrgfi 722224047306Smrg 722324047306Smrg 722424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 722524047306Smrg 722624047306Smrg eval supported=\$$cacheid 7227bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7228bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 722924047306Smrg if test "$supported" = "yes" ; then 723024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 723124047306Smrg found="yes" 723224047306Smrg fi 723324047306Smrg fi 723424047306Smrg 723524047306Smrg 723624047306Smrg 723724047306Smrg# These are currently disabled because they are noisy. They will be enabled 723824047306Smrg# in the future once the codebase is sufficiently modernized to silence 723924047306Smrg# them. For now, I don't want them to drown out the other warnings. 724024047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 724124047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 724224047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 724324047306Smrg 724424047306Smrg# Turn some warnings into errors, so we don't accidently get successful builds 724524047306Smrg# when there are problems that should be fixed. 724624047306Smrg 724724047306Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 724824047306Smrg 724924047306Smrg 725024047306Smrg 725124047306Smrg 725224047306Smrg 725324047306Smrg 725424047306Smrg 725524047306Smrg 725624047306Smrg 725724047306Smrg 725824047306Smrg 725924047306Smrg 726024047306Smrg 726124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 726224047306Smrg 726324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 726424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7266bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7267bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7268bdc460c5Smrgthen : 7269bdc460c5Smrg printf %s "(cached) " >&6 7270bdc460c5Smrgelse $as_nop 727124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 727224047306Smrg/* end confdefs.h. */ 727324047306Smrgint i; 727424047306Smrg_ACEOF 7275bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7276bdc460c5Smrgthen : 727724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7278bdc460c5Smrgelse $as_nop 727924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 728024047306Smrgfi 7281bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 728224047306Smrgfi 7283bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7284bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 728524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 728624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 728724047306Smrgfi 728824047306Smrg 728924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 729024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 729124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 729224047306Smrg fi 729324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7294bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7295bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7296bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7297bdc460c5Smrgthen : 7298bdc460c5Smrg printf %s "(cached) " >&6 7299bdc460c5Smrgelse $as_nop 730024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730124047306Smrg/* end confdefs.h. */ 730224047306Smrgint i; 730324047306Smrg_ACEOF 7304bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7305bdc460c5Smrgthen : 730624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7307bdc460c5Smrgelse $as_nop 730824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 730924047306Smrgfi 7310bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 731124047306Smrgfi 7312bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7313bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 731424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 731524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 731624047306Smrgfi 731724047306Smrg 731824047306Smrgfound="no" 731924047306Smrg 732024047306Smrg if test $found = "no" ; then 732124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 732224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 732324047306Smrg fi 732424047306Smrg 732524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 732624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 732724047306Smrg fi 732824047306Smrg 732924047306Smrg CFLAGS="$CFLAGS -Werror=implicit" 733024047306Smrg 7331bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7332bdc460c5Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 733324047306Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 7334bdc460c5Smrg if eval test \${$cacheid+y} 7335bdc460c5Smrgthen : 7336bdc460c5Smrg printf %s "(cached) " >&6 7337bdc460c5Smrgelse $as_nop 733824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 733924047306Smrg/* end confdefs.h. */ 734024047306Smrgint i; 734124047306Smrgint 7342bdc460c5Smrgmain (void) 734324047306Smrg{ 734424047306Smrg 734524047306Smrg ; 734624047306Smrg return 0; 734724047306Smrg} 734824047306Smrg_ACEOF 7349bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7350bdc460c5Smrgthen : 735124047306Smrg eval $cacheid=yes 7352bdc460c5Smrgelse $as_nop 735324047306Smrg eval $cacheid=no 735424047306Smrgfi 7355bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 735624047306Smrg conftest$ac_exeext conftest.$ac_ext 735724047306Smrgfi 735824047306Smrg 735924047306Smrg 736024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 736124047306Smrg 736224047306Smrg eval supported=\$$cacheid 7363bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7364bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 736524047306Smrg if test "$supported" = "yes" ; then 736624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 736724047306Smrg found="yes" 736824047306Smrg fi 736924047306Smrg fi 737024047306Smrg 737124047306Smrg if test $found = "no" ; then 737224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 737324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 737424047306Smrg fi 737524047306Smrg 737624047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 737724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 737824047306Smrg fi 737924047306Smrg 738024047306Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 738124047306Smrg 7382bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7383bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 738424047306Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7385bdc460c5Smrg if eval test \${$cacheid+y} 7386bdc460c5Smrgthen : 7387bdc460c5Smrg printf %s "(cached) " >&6 7388bdc460c5Smrgelse $as_nop 738924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 739024047306Smrg/* end confdefs.h. */ 739124047306Smrgint i; 739224047306Smrgint 7393bdc460c5Smrgmain (void) 739424047306Smrg{ 739524047306Smrg 739624047306Smrg ; 739724047306Smrg return 0; 739824047306Smrg} 739924047306Smrg_ACEOF 7400bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7401bdc460c5Smrgthen : 740224047306Smrg eval $cacheid=yes 7403bdc460c5Smrgelse $as_nop 740424047306Smrg eval $cacheid=no 740524047306Smrgfi 7406bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 740724047306Smrg conftest$ac_exeext conftest.$ac_ext 740824047306Smrgfi 740924047306Smrg 741024047306Smrg 741124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 741224047306Smrg 741324047306Smrg eval supported=\$$cacheid 7414bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 741624047306Smrg if test "$supported" = "yes" ; then 741724047306Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 741824047306Smrg found="yes" 741924047306Smrg fi 742024047306Smrg fi 742124047306Smrg 742224047306Smrg 742324047306Smrg 742424047306Smrg 742524047306Smrg 742624047306Smrg 742724047306Smrg 742824047306Smrg 742924047306Smrg 743024047306Smrg 743124047306Smrg 743224047306Smrg 743324047306Smrg 743424047306Smrg 743524047306Smrg 743624047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 743724047306Smrg 743824047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 743924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7441bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7442bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7443bdc460c5Smrgthen : 7444bdc460c5Smrg printf %s "(cached) " >&6 7445bdc460c5Smrgelse $as_nop 744624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 744724047306Smrg/* end confdefs.h. */ 744824047306Smrgint i; 744924047306Smrg_ACEOF 7450bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7451bdc460c5Smrgthen : 745224047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7453bdc460c5Smrgelse $as_nop 745424047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 745524047306Smrgfi 7456bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 745724047306Smrgfi 7458bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7459bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 746024047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 746124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746224047306Smrgfi 746324047306Smrg 746424047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 746524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 746624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 746724047306Smrg fi 746824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7470bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7471bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7472bdc460c5Smrgthen : 7473bdc460c5Smrg printf %s "(cached) " >&6 7474bdc460c5Smrgelse $as_nop 747524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 747624047306Smrg/* end confdefs.h. */ 747724047306Smrgint i; 747824047306Smrg_ACEOF 7479bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7480bdc460c5Smrgthen : 748124047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7482bdc460c5Smrgelse $as_nop 748324047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 748424047306Smrgfi 7485bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 748624047306Smrgfi 7487bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7488bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 748924047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 749024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 749124047306Smrgfi 749224047306Smrg 749324047306Smrgfound="no" 749424047306Smrg 749524047306Smrg if test $found = "no" ; then 749624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 749724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 749824047306Smrg fi 749924047306Smrg 750024047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 750124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 750224047306Smrg fi 750324047306Smrg 750424047306Smrg CFLAGS="$CFLAGS -Werror=nonnull" 750524047306Smrg 7506bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7507bdc460c5Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 750824047306Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7509bdc460c5Smrg if eval test \${$cacheid+y} 7510bdc460c5Smrgthen : 7511bdc460c5Smrg printf %s "(cached) " >&6 7512bdc460c5Smrgelse $as_nop 751324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 751424047306Smrg/* end confdefs.h. */ 751524047306Smrgint i; 751624047306Smrgint 7517bdc460c5Smrgmain (void) 751824047306Smrg{ 751924047306Smrg 752024047306Smrg ; 752124047306Smrg return 0; 752224047306Smrg} 752324047306Smrg_ACEOF 7524bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7525bdc460c5Smrgthen : 752624047306Smrg eval $cacheid=yes 7527bdc460c5Smrgelse $as_nop 752824047306Smrg eval $cacheid=no 752924047306Smrgfi 7530bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 753124047306Smrg conftest$ac_exeext conftest.$ac_ext 753224047306Smrgfi 753324047306Smrg 753424047306Smrg 753524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 753624047306Smrg 753724047306Smrg eval supported=\$$cacheid 7538bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7539bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 754024047306Smrg if test "$supported" = "yes" ; then 754124047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 754224047306Smrg found="yes" 754324047306Smrg fi 754424047306Smrg fi 754524047306Smrg 754624047306Smrg 754724047306Smrg 754824047306Smrg 754924047306Smrg 755024047306Smrg 755124047306Smrg 755224047306Smrg 755324047306Smrg 755424047306Smrg 755524047306Smrg 755624047306Smrg 755724047306Smrg 755824047306Smrg 755924047306Smrg 756024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 756124047306Smrg 756224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 756324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7565bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7566bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7567bdc460c5Smrgthen : 7568bdc460c5Smrg printf %s "(cached) " >&6 7569bdc460c5Smrgelse $as_nop 757024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 757124047306Smrg/* end confdefs.h. */ 757224047306Smrgint i; 757324047306Smrg_ACEOF 7574bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7575bdc460c5Smrgthen : 757624047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7577bdc460c5Smrgelse $as_nop 757824047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 757924047306Smrgfi 7580bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 758124047306Smrgfi 7582bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7583bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 758424047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 758524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758624047306Smrgfi 758724047306Smrg 758824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 758924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 759024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 759124047306Smrg fi 759224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7594bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7595bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7596bdc460c5Smrgthen : 7597bdc460c5Smrg printf %s "(cached) " >&6 7598bdc460c5Smrgelse $as_nop 759924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 760024047306Smrg/* end confdefs.h. */ 760124047306Smrgint i; 760224047306Smrg_ACEOF 7603bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7604bdc460c5Smrgthen : 760524047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7606bdc460c5Smrgelse $as_nop 760724047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 760824047306Smrgfi 7609bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 761024047306Smrgfi 7611bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7612bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 761324047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 761424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 761524047306Smrgfi 761624047306Smrg 761724047306Smrgfound="no" 761824047306Smrg 761924047306Smrg if test $found = "no" ; then 762024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 762124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 762224047306Smrg fi 762324047306Smrg 762424047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 762524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 762624047306Smrg fi 762724047306Smrg 762824047306Smrg CFLAGS="$CFLAGS -Werror=init-self" 762924047306Smrg 7630bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7631bdc460c5Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 763224047306Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 7633bdc460c5Smrg if eval test \${$cacheid+y} 7634bdc460c5Smrgthen : 7635bdc460c5Smrg printf %s "(cached) " >&6 7636bdc460c5Smrgelse $as_nop 763724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 763824047306Smrg/* end confdefs.h. */ 763924047306Smrgint i; 764024047306Smrgint 7641bdc460c5Smrgmain (void) 764224047306Smrg{ 764324047306Smrg 764424047306Smrg ; 764524047306Smrg return 0; 764624047306Smrg} 764724047306Smrg_ACEOF 7648bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7649bdc460c5Smrgthen : 765024047306Smrg eval $cacheid=yes 7651bdc460c5Smrgelse $as_nop 765224047306Smrg eval $cacheid=no 765324047306Smrgfi 7654bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 765524047306Smrg conftest$ac_exeext conftest.$ac_ext 765624047306Smrgfi 765724047306Smrg 765824047306Smrg 765924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 766024047306Smrg 766124047306Smrg eval supported=\$$cacheid 7662bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7663bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 766424047306Smrg if test "$supported" = "yes" ; then 766524047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 766624047306Smrg found="yes" 766724047306Smrg fi 766824047306Smrg fi 766924047306Smrg 767024047306Smrg 767124047306Smrg 767224047306Smrg 767324047306Smrg 767424047306Smrg 767524047306Smrg 767624047306Smrg 767724047306Smrg 767824047306Smrg 767924047306Smrg 768024047306Smrg 768124047306Smrg 768224047306Smrg 768324047306Smrg 768424047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 768524047306Smrg 768624047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 768724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7689bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7690bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7691bdc460c5Smrgthen : 7692bdc460c5Smrg printf %s "(cached) " >&6 7693bdc460c5Smrgelse $as_nop 769424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 769524047306Smrg/* end confdefs.h. */ 769624047306Smrgint i; 769724047306Smrg_ACEOF 7698bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7699bdc460c5Smrgthen : 770024047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7701bdc460c5Smrgelse $as_nop 770224047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 770324047306Smrgfi 7704bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 770524047306Smrgfi 7706bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7707bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 770824047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 770924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 771024047306Smrgfi 771124047306Smrg 771224047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 771324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 771424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 771524047306Smrg fi 771624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7717bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7718bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7719bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7720bdc460c5Smrgthen : 7721bdc460c5Smrg printf %s "(cached) " >&6 7722bdc460c5Smrgelse $as_nop 772324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 772424047306Smrg/* end confdefs.h. */ 772524047306Smrgint i; 772624047306Smrg_ACEOF 7727bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7728bdc460c5Smrgthen : 772924047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7730bdc460c5Smrgelse $as_nop 773124047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 773224047306Smrgfi 7733bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 773424047306Smrgfi 7735bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7736bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 773724047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 773824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 773924047306Smrgfi 774024047306Smrg 774124047306Smrgfound="no" 774224047306Smrg 774324047306Smrg if test $found = "no" ; then 774424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 774524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 774624047306Smrg fi 774724047306Smrg 774824047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 774924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 775024047306Smrg fi 775124047306Smrg 775224047306Smrg CFLAGS="$CFLAGS -Werror=main" 775324047306Smrg 7754bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7755bdc460c5Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 775624047306Smrg cacheid=xorg_cv_cc_flag__Werror_main 7757bdc460c5Smrg if eval test \${$cacheid+y} 7758bdc460c5Smrgthen : 7759bdc460c5Smrg printf %s "(cached) " >&6 7760bdc460c5Smrgelse $as_nop 776124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 776224047306Smrg/* end confdefs.h. */ 776324047306Smrgint i; 776424047306Smrgint 7765bdc460c5Smrgmain (void) 776624047306Smrg{ 776724047306Smrg 776824047306Smrg ; 776924047306Smrg return 0; 777024047306Smrg} 777124047306Smrg_ACEOF 7772bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7773bdc460c5Smrgthen : 777424047306Smrg eval $cacheid=yes 7775bdc460c5Smrgelse $as_nop 777624047306Smrg eval $cacheid=no 777724047306Smrgfi 7778bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 777924047306Smrg conftest$ac_exeext conftest.$ac_ext 778024047306Smrgfi 778124047306Smrg 778224047306Smrg 778324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 778424047306Smrg 778524047306Smrg eval supported=\$$cacheid 7786bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7787bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 778824047306Smrg if test "$supported" = "yes" ; then 778924047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 779024047306Smrg found="yes" 779124047306Smrg fi 779224047306Smrg fi 779324047306Smrg 779424047306Smrg 779524047306Smrg 779624047306Smrg 779724047306Smrg 779824047306Smrg 779924047306Smrg 780024047306Smrg 780124047306Smrg 780224047306Smrg 780324047306Smrg 780424047306Smrg 780524047306Smrg 780624047306Smrg 780724047306Smrg 780824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 780924047306Smrg 781024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 781124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7813bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7814bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7815bdc460c5Smrgthen : 7816bdc460c5Smrg printf %s "(cached) " >&6 7817bdc460c5Smrgelse $as_nop 781824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 781924047306Smrg/* end confdefs.h. */ 782024047306Smrgint i; 782124047306Smrg_ACEOF 7822bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7823bdc460c5Smrgthen : 782424047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7825bdc460c5Smrgelse $as_nop 782624047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 782724047306Smrgfi 7828bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 782924047306Smrgfi 7830bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7831bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 783224047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 783324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 783424047306Smrgfi 783524047306Smrg 783624047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 783724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 783824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 783924047306Smrg fi 784024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7842bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7843bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7844bdc460c5Smrgthen : 7845bdc460c5Smrg printf %s "(cached) " >&6 7846bdc460c5Smrgelse $as_nop 784724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 784824047306Smrg/* end confdefs.h. */ 784924047306Smrgint i; 785024047306Smrg_ACEOF 7851bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7852bdc460c5Smrgthen : 785324047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7854bdc460c5Smrgelse $as_nop 785524047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 785624047306Smrgfi 7857bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 785824047306Smrgfi 7859bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7860bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 786124047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 786224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786324047306Smrgfi 786424047306Smrg 786524047306Smrgfound="no" 786624047306Smrg 786724047306Smrg if test $found = "no" ; then 786824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 786924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 787024047306Smrg fi 787124047306Smrg 787224047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 787324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 787424047306Smrg fi 787524047306Smrg 787624047306Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 787724047306Smrg 7878bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7879bdc460c5Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 788024047306Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7881bdc460c5Smrg if eval test \${$cacheid+y} 7882bdc460c5Smrgthen : 7883bdc460c5Smrg printf %s "(cached) " >&6 7884bdc460c5Smrgelse $as_nop 788524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 788624047306Smrg/* end confdefs.h. */ 788724047306Smrgint i; 788824047306Smrgint 7889bdc460c5Smrgmain (void) 789024047306Smrg{ 789124047306Smrg 789224047306Smrg ; 789324047306Smrg return 0; 789424047306Smrg} 789524047306Smrg_ACEOF 7896bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 7897bdc460c5Smrgthen : 789824047306Smrg eval $cacheid=yes 7899bdc460c5Smrgelse $as_nop 790024047306Smrg eval $cacheid=no 790124047306Smrgfi 7902bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 790324047306Smrg conftest$ac_exeext conftest.$ac_ext 790424047306Smrgfi 790524047306Smrg 790624047306Smrg 790724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 790824047306Smrg 790924047306Smrg eval supported=\$$cacheid 7910bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7911bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 791224047306Smrg if test "$supported" = "yes" ; then 791324047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 791424047306Smrg found="yes" 791524047306Smrg fi 791624047306Smrg fi 791724047306Smrg 791824047306Smrg 791924047306Smrg 792024047306Smrg 792124047306Smrg 792224047306Smrg 792324047306Smrg 792424047306Smrg 792524047306Smrg 792624047306Smrg 792724047306Smrg 792824047306Smrg 792924047306Smrg 793024047306Smrg 793124047306Smrg 793224047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 793324047306Smrg 793424047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 793524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7936bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7937bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7938bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7939bdc460c5Smrgthen : 7940bdc460c5Smrg printf %s "(cached) " >&6 7941bdc460c5Smrgelse $as_nop 794224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 794324047306Smrg/* end confdefs.h. */ 794424047306Smrgint i; 794524047306Smrg_ACEOF 7946bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7947bdc460c5Smrgthen : 794824047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7949bdc460c5Smrgelse $as_nop 795024047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 795124047306Smrgfi 7952bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 795324047306Smrgfi 7954bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 795624047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 795724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 795824047306Smrgfi 795924047306Smrg 796024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 796124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 796224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 796324047306Smrg fi 796424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7968bdc460c5Smrgthen : 7969bdc460c5Smrg printf %s "(cached) " >&6 7970bdc460c5Smrgelse $as_nop 797124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 797224047306Smrg/* end confdefs.h. */ 797324047306Smrgint i; 797424047306Smrg_ACEOF 7975bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 7976bdc460c5Smrgthen : 797724047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7978bdc460c5Smrgelse $as_nop 797924047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 798024047306Smrgfi 7981bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 798224047306Smrgfi 7983bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7984bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 798524047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 798624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798724047306Smrgfi 798824047306Smrg 798924047306Smrgfound="no" 799024047306Smrg 799124047306Smrg if test $found = "no" ; then 799224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 799324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 799424047306Smrg fi 799524047306Smrg 799624047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 799724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 799824047306Smrg fi 799924047306Smrg 800024047306Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 800124047306Smrg 8002bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8003bdc460c5Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 800424047306Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 8005bdc460c5Smrg if eval test \${$cacheid+y} 8006bdc460c5Smrgthen : 8007bdc460c5Smrg printf %s "(cached) " >&6 8008bdc460c5Smrgelse $as_nop 800924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 801024047306Smrg/* end confdefs.h. */ 801124047306Smrgint i; 801224047306Smrgint 8013bdc460c5Smrgmain (void) 801424047306Smrg{ 801524047306Smrg 801624047306Smrg ; 801724047306Smrg return 0; 801824047306Smrg} 801924047306Smrg_ACEOF 8020bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8021bdc460c5Smrgthen : 802224047306Smrg eval $cacheid=yes 8023bdc460c5Smrgelse $as_nop 802424047306Smrg eval $cacheid=no 802524047306Smrgfi 8026bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 802724047306Smrg conftest$ac_exeext conftest.$ac_ext 802824047306Smrgfi 802924047306Smrg 803024047306Smrg 803124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 803224047306Smrg 803324047306Smrg eval supported=\$$cacheid 8034bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8035bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 803624047306Smrg if test "$supported" = "yes" ; then 803724047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 803824047306Smrg found="yes" 803924047306Smrg fi 804024047306Smrg fi 804124047306Smrg 804224047306Smrg 804324047306Smrg 804424047306Smrg 804524047306Smrg 804624047306Smrg 804724047306Smrg 804824047306Smrg 804924047306Smrg 805024047306Smrg 805124047306Smrg 805224047306Smrg 805324047306Smrg 805424047306Smrg 805524047306Smrg 805624047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 805724047306Smrg 805824047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 805924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8061bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8062bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8063bdc460c5Smrgthen : 8064bdc460c5Smrg printf %s "(cached) " >&6 8065bdc460c5Smrgelse $as_nop 806624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 806724047306Smrg/* end confdefs.h. */ 806824047306Smrgint i; 806924047306Smrg_ACEOF 8070bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8071bdc460c5Smrgthen : 807224047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8073bdc460c5Smrgelse $as_nop 807424047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 807524047306Smrgfi 8076bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 807724047306Smrgfi 8078bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8079bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 808024047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 808124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 808224047306Smrgfi 808324047306Smrg 808424047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 808524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 808624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 808724047306Smrg fi 808824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8089bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8090bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8091bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8092bdc460c5Smrgthen : 8093bdc460c5Smrg printf %s "(cached) " >&6 8094bdc460c5Smrgelse $as_nop 809524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 809624047306Smrg/* end confdefs.h. */ 809724047306Smrgint i; 809824047306Smrg_ACEOF 8099bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8100bdc460c5Smrgthen : 810124047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8102bdc460c5Smrgelse $as_nop 810324047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 810424047306Smrgfi 8105bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 810624047306Smrgfi 8107bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8108bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 810924047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 811024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 811124047306Smrgfi 811224047306Smrg 811324047306Smrgfound="no" 811424047306Smrg 811524047306Smrg if test $found = "no" ; then 811624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 811724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 811824047306Smrg fi 811924047306Smrg 812024047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 812124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 812224047306Smrg fi 812324047306Smrg 812424047306Smrg CFLAGS="$CFLAGS -Werror=return-type" 812524047306Smrg 8126bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8127bdc460c5Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 812824047306Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 8129bdc460c5Smrg if eval test \${$cacheid+y} 8130bdc460c5Smrgthen : 8131bdc460c5Smrg printf %s "(cached) " >&6 8132bdc460c5Smrgelse $as_nop 813324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 813424047306Smrg/* end confdefs.h. */ 813524047306Smrgint i; 813624047306Smrgint 8137bdc460c5Smrgmain (void) 813824047306Smrg{ 813924047306Smrg 814024047306Smrg ; 814124047306Smrg return 0; 814224047306Smrg} 814324047306Smrg_ACEOF 8144bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8145bdc460c5Smrgthen : 814624047306Smrg eval $cacheid=yes 8147bdc460c5Smrgelse $as_nop 814824047306Smrg eval $cacheid=no 814924047306Smrgfi 8150bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 815124047306Smrg conftest$ac_exeext conftest.$ac_ext 815224047306Smrgfi 815324047306Smrg 815424047306Smrg 815524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 815624047306Smrg 815724047306Smrg eval supported=\$$cacheid 8158bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8159bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 816024047306Smrg if test "$supported" = "yes" ; then 816124047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 816224047306Smrg found="yes" 816324047306Smrg fi 816424047306Smrg fi 816524047306Smrg 816624047306Smrg if test $found = "no" ; then 816724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 816824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 816924047306Smrg fi 817024047306Smrg 817124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 817224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 817324047306Smrg fi 817424047306Smrg 817524047306Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 817624047306Smrg 8177bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8178bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 817924047306Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8180bdc460c5Smrg if eval test \${$cacheid+y} 8181bdc460c5Smrgthen : 8182bdc460c5Smrg printf %s "(cached) " >&6 8183bdc460c5Smrgelse $as_nop 818424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 818524047306Smrg/* end confdefs.h. */ 818624047306Smrgint i; 818724047306Smrgint 8188bdc460c5Smrgmain (void) 818924047306Smrg{ 819024047306Smrg 819124047306Smrg ; 819224047306Smrg return 0; 819324047306Smrg} 819424047306Smrg_ACEOF 8195bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8196bdc460c5Smrgthen : 819724047306Smrg eval $cacheid=yes 8198bdc460c5Smrgelse $as_nop 819924047306Smrg eval $cacheid=no 820024047306Smrgfi 8201bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 820224047306Smrg conftest$ac_exeext conftest.$ac_ext 820324047306Smrgfi 820424047306Smrg 820524047306Smrg 820624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 820724047306Smrg 820824047306Smrg eval supported=\$$cacheid 8209bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8210bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 821124047306Smrg if test "$supported" = "yes" ; then 821224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 821324047306Smrg found="yes" 821424047306Smrg fi 821524047306Smrg fi 821624047306Smrg 821724047306Smrg 821824047306Smrg 821924047306Smrg 822024047306Smrg 822124047306Smrg 822224047306Smrg 822324047306Smrg 822424047306Smrg 822524047306Smrg 822624047306Smrg 822724047306Smrg 822824047306Smrg 822924047306Smrg 823024047306Smrg 823124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 823224047306Smrg 823324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 823424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8236bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8237bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8238bdc460c5Smrgthen : 8239bdc460c5Smrg printf %s "(cached) " >&6 8240bdc460c5Smrgelse $as_nop 824124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 824224047306Smrg/* end confdefs.h. */ 824324047306Smrgint i; 824424047306Smrg_ACEOF 8245bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8246bdc460c5Smrgthen : 824724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8248bdc460c5Smrgelse $as_nop 824924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 825024047306Smrgfi 8251bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 825224047306Smrgfi 8253bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8254bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 825524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 825624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 825724047306Smrgfi 825824047306Smrg 825924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 826024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 826124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 826224047306Smrg fi 826324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8264bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8265bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8266bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8267bdc460c5Smrgthen : 8268bdc460c5Smrg printf %s "(cached) " >&6 8269bdc460c5Smrgelse $as_nop 827024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 827124047306Smrg/* end confdefs.h. */ 827224047306Smrgint i; 827324047306Smrg_ACEOF 8274bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8275bdc460c5Smrgthen : 827624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8277bdc460c5Smrgelse $as_nop 827824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 827924047306Smrgfi 8280bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 828124047306Smrgfi 8282bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8283bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 828424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 828524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 828624047306Smrgfi 828724047306Smrg 828824047306Smrgfound="no" 828924047306Smrg 829024047306Smrg if test $found = "no" ; then 829124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 829224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 829324047306Smrg fi 829424047306Smrg 829524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 829624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 829724047306Smrg fi 829824047306Smrg 829924047306Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 830024047306Smrg 8301bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8302bdc460c5Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 830324047306Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8304bdc460c5Smrg if eval test \${$cacheid+y} 8305bdc460c5Smrgthen : 8306bdc460c5Smrg printf %s "(cached) " >&6 8307bdc460c5Smrgelse $as_nop 830824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 830924047306Smrg/* end confdefs.h. */ 831024047306Smrgint i; 831124047306Smrgint 8312bdc460c5Smrgmain (void) 831324047306Smrg{ 831424047306Smrg 831524047306Smrg ; 831624047306Smrg return 0; 831724047306Smrg} 831824047306Smrg_ACEOF 8319bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8320bdc460c5Smrgthen : 832124047306Smrg eval $cacheid=yes 8322bdc460c5Smrgelse $as_nop 832324047306Smrg eval $cacheid=no 832424047306Smrgfi 8325bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 832624047306Smrg conftest$ac_exeext conftest.$ac_ext 832724047306Smrgfi 832824047306Smrg 832924047306Smrg 833024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 833124047306Smrg 833224047306Smrg eval supported=\$$cacheid 8333bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8334bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 833524047306Smrg if test "$supported" = "yes" ; then 833624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 833724047306Smrg found="yes" 833824047306Smrg fi 833924047306Smrg fi 834024047306Smrg 834124047306Smrg 834224047306Smrg 834324047306Smrg 834424047306Smrg 834524047306Smrg 834624047306Smrg 834724047306Smrg 834824047306Smrg 834924047306Smrg 835024047306Smrg 835124047306Smrg 835224047306Smrg 835324047306Smrg 835424047306Smrg 835524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 835624047306Smrg 835724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 835824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8360bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8361bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8362bdc460c5Smrgthen : 8363bdc460c5Smrg printf %s "(cached) " >&6 8364bdc460c5Smrgelse $as_nop 836524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 836624047306Smrg/* end confdefs.h. */ 836724047306Smrgint i; 836824047306Smrg_ACEOF 8369bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8370bdc460c5Smrgthen : 837124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8372bdc460c5Smrgelse $as_nop 837324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 837424047306Smrgfi 8375bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 837624047306Smrgfi 8377bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8378bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 837924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 838024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 838124047306Smrgfi 838224047306Smrg 838324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 838424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 838524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 838624047306Smrg fi 838724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8388bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8389bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8390bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8391bdc460c5Smrgthen : 8392bdc460c5Smrg printf %s "(cached) " >&6 8393bdc460c5Smrgelse $as_nop 839424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 839524047306Smrg/* end confdefs.h. */ 839624047306Smrgint i; 839724047306Smrg_ACEOF 8398bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8399bdc460c5Smrgthen : 840024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8401bdc460c5Smrgelse $as_nop 840224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 840324047306Smrgfi 8404bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 840524047306Smrgfi 8406bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 840824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 840924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 841024047306Smrgfi 841124047306Smrg 841224047306Smrgfound="no" 841324047306Smrg 841424047306Smrg if test $found = "no" ; then 841524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 841624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 841724047306Smrg fi 841824047306Smrg 841924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 842024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 842124047306Smrg fi 842224047306Smrg 842324047306Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 842424047306Smrg 8425bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8426bdc460c5Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 842724047306Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8428bdc460c5Smrg if eval test \${$cacheid+y} 8429bdc460c5Smrgthen : 8430bdc460c5Smrg printf %s "(cached) " >&6 8431bdc460c5Smrgelse $as_nop 843224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 843324047306Smrg/* end confdefs.h. */ 843424047306Smrgint i; 843524047306Smrgint 8436bdc460c5Smrgmain (void) 843724047306Smrg{ 843824047306Smrg 843924047306Smrg ; 844024047306Smrg return 0; 844124047306Smrg} 844224047306Smrg_ACEOF 8443bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8444bdc460c5Smrgthen : 844524047306Smrg eval $cacheid=yes 8446bdc460c5Smrgelse $as_nop 844724047306Smrg eval $cacheid=no 844824047306Smrgfi 8449bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 845024047306Smrg conftest$ac_exeext conftest.$ac_ext 845124047306Smrgfi 845224047306Smrg 845324047306Smrg 845424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 845524047306Smrg 845624047306Smrg eval supported=\$$cacheid 8457bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8458bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 845924047306Smrg if test "$supported" = "yes" ; then 846024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 846124047306Smrg found="yes" 846224047306Smrg fi 846324047306Smrg fi 846424047306Smrg 846524047306Smrg 846624047306Smrg 846724047306Smrg 846824047306Smrg 846924047306Smrg 847024047306Smrg 847124047306Smrg 847224047306Smrg 847324047306Smrg 847424047306Smrg 847524047306Smrg 847624047306Smrg 847724047306Smrg 847824047306Smrg 847924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 848024047306Smrg 848124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 848224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8484bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8485bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8486bdc460c5Smrgthen : 8487bdc460c5Smrg printf %s "(cached) " >&6 8488bdc460c5Smrgelse $as_nop 848924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 849024047306Smrg/* end confdefs.h. */ 849124047306Smrgint i; 849224047306Smrg_ACEOF 8493bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8494bdc460c5Smrgthen : 849524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8496bdc460c5Smrgelse $as_nop 849724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 849824047306Smrgfi 8499bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 850024047306Smrgfi 8501bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8502bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 850324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 850424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 850524047306Smrgfi 850624047306Smrg 850724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 850824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 850924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 851024047306Smrg fi 851124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8512bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8513bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8514bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8515bdc460c5Smrgthen : 8516bdc460c5Smrg printf %s "(cached) " >&6 8517bdc460c5Smrgelse $as_nop 851824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 851924047306Smrg/* end confdefs.h. */ 852024047306Smrgint i; 852124047306Smrg_ACEOF 8522bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8523bdc460c5Smrgthen : 852424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8525bdc460c5Smrgelse $as_nop 852624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 852724047306Smrgfi 8528bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 852924047306Smrgfi 8530bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8531bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 853224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 853324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 853424047306Smrgfi 853524047306Smrg 853624047306Smrgfound="no" 853724047306Smrg 853824047306Smrg if test $found = "no" ; then 853924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 854024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 854124047306Smrg fi 854224047306Smrg 854324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 854424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 854524047306Smrg fi 854624047306Smrg 854724047306Smrg CFLAGS="$CFLAGS -Werror=write-strings" 854824047306Smrg 8549bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8550bdc460c5Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 855124047306Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8552bdc460c5Smrg if eval test \${$cacheid+y} 8553bdc460c5Smrgthen : 8554bdc460c5Smrg printf %s "(cached) " >&6 8555bdc460c5Smrgelse $as_nop 855624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 855724047306Smrg/* end confdefs.h. */ 855824047306Smrgint i; 855924047306Smrgint 8560bdc460c5Smrgmain (void) 856124047306Smrg{ 856224047306Smrg 856324047306Smrg ; 856424047306Smrg return 0; 856524047306Smrg} 856624047306Smrg_ACEOF 8567bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8568bdc460c5Smrgthen : 856924047306Smrg eval $cacheid=yes 8570bdc460c5Smrgelse $as_nop 857124047306Smrg eval $cacheid=no 857224047306Smrgfi 8573bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 857424047306Smrg conftest$ac_exeext conftest.$ac_ext 857524047306Smrgfi 857624047306Smrg 857724047306Smrg 857824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 857924047306Smrg 858024047306Smrg eval supported=\$$cacheid 8581bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 858324047306Smrg if test "$supported" = "yes" ; then 858424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 858524047306Smrg found="yes" 858624047306Smrg fi 858724047306Smrg fi 858824047306Smrg 858924047306Smrg 859024047306Smrg 859124047306Smrg 859224047306Smrg 859324047306Smrg 859424047306Smrg 859524047306Smrg 859624047306Smrg 859724047306Smrg 859824047306Smrg 859924047306Smrg 860024047306Smrg 860124047306Smrg 860224047306Smrg 860324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 860424047306Smrg 860524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 860624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8610bdc460c5Smrgthen : 8611bdc460c5Smrg printf %s "(cached) " >&6 8612bdc460c5Smrgelse $as_nop 861324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 861424047306Smrg/* end confdefs.h. */ 861524047306Smrgint i; 861624047306Smrg_ACEOF 8617bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8618bdc460c5Smrgthen : 861924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8620bdc460c5Smrgelse $as_nop 862124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 862224047306Smrgfi 8623bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 862424047306Smrgfi 8625bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8626bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 862724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 862824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862924047306Smrgfi 863024047306Smrg 863124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 863224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 863324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 863424047306Smrg fi 863524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8637bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8638bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8639bdc460c5Smrgthen : 8640bdc460c5Smrg printf %s "(cached) " >&6 8641bdc460c5Smrgelse $as_nop 864224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 864324047306Smrg/* end confdefs.h. */ 864424047306Smrgint i; 864524047306Smrg_ACEOF 8646bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8647bdc460c5Smrgthen : 864824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8649bdc460c5Smrgelse $as_nop 865024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 865124047306Smrgfi 8652bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 865324047306Smrgfi 8654bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8655bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 865624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 865724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 865824047306Smrgfi 865924047306Smrg 866024047306Smrgfound="no" 866124047306Smrg 866224047306Smrg if test $found = "no" ; then 866324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 866424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 866524047306Smrg fi 866624047306Smrg 866724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 866824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 866924047306Smrg fi 867024047306Smrg 867124047306Smrg CFLAGS="$CFLAGS -Werror=address" 867224047306Smrg 8673bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8674bdc460c5Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 867524047306Smrg cacheid=xorg_cv_cc_flag__Werror_address 8676bdc460c5Smrg if eval test \${$cacheid+y} 8677bdc460c5Smrgthen : 8678bdc460c5Smrg printf %s "(cached) " >&6 8679bdc460c5Smrgelse $as_nop 868024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 868124047306Smrg/* end confdefs.h. */ 868224047306Smrgint i; 868324047306Smrgint 8684bdc460c5Smrgmain (void) 868524047306Smrg{ 868624047306Smrg 868724047306Smrg ; 868824047306Smrg return 0; 868924047306Smrg} 869024047306Smrg_ACEOF 8691bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8692bdc460c5Smrgthen : 869324047306Smrg eval $cacheid=yes 8694bdc460c5Smrgelse $as_nop 869524047306Smrg eval $cacheid=no 869624047306Smrgfi 8697bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 869824047306Smrg conftest$ac_exeext conftest.$ac_ext 869924047306Smrgfi 870024047306Smrg 870124047306Smrg 870224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 870324047306Smrg 870424047306Smrg eval supported=\$$cacheid 8705bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8706bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 870724047306Smrg if test "$supported" = "yes" ; then 870824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 870924047306Smrg found="yes" 871024047306Smrg fi 871124047306Smrg fi 871224047306Smrg 871324047306Smrg 871424047306Smrg 871524047306Smrg 871624047306Smrg 871724047306Smrg 871824047306Smrg 871924047306Smrg 872024047306Smrg 872124047306Smrg 872224047306Smrg 872324047306Smrg 872424047306Smrg 872524047306Smrg 872624047306Smrg 872724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 872824047306Smrg 872924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 873024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8732bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8733bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8734bdc460c5Smrgthen : 8735bdc460c5Smrg printf %s "(cached) " >&6 8736bdc460c5Smrgelse $as_nop 873724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 873824047306Smrg/* end confdefs.h. */ 873924047306Smrgint i; 874024047306Smrg_ACEOF 8741bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8742bdc460c5Smrgthen : 874324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8744bdc460c5Smrgelse $as_nop 874524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 874624047306Smrgfi 8747bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 874824047306Smrgfi 8749bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8750bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 875124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 875224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 875324047306Smrgfi 875424047306Smrg 875524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 875624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 875724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 875824047306Smrg fi 875924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8761bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8762bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8763bdc460c5Smrgthen : 8764bdc460c5Smrg printf %s "(cached) " >&6 8765bdc460c5Smrgelse $as_nop 876624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 876724047306Smrg/* end confdefs.h. */ 876824047306Smrgint i; 876924047306Smrg_ACEOF 8770bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8771bdc460c5Smrgthen : 877224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8773bdc460c5Smrgelse $as_nop 877424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 877524047306Smrgfi 8776bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 877724047306Smrgfi 8778bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8779bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 878024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 878124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 878224047306Smrgfi 878324047306Smrg 878424047306Smrgfound="no" 878524047306Smrg 878624047306Smrg if test $found = "no" ; then 878724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 878824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 878924047306Smrg fi 879024047306Smrg 879124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 879224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 879324047306Smrg fi 879424047306Smrg 879524047306Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 879624047306Smrg 8797bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8798bdc460c5Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 879924047306Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8800bdc460c5Smrg if eval test \${$cacheid+y} 8801bdc460c5Smrgthen : 8802bdc460c5Smrg printf %s "(cached) " >&6 8803bdc460c5Smrgelse $as_nop 880424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 880524047306Smrg/* end confdefs.h. */ 880624047306Smrgint i; 880724047306Smrgint 8808bdc460c5Smrgmain (void) 880924047306Smrg{ 881024047306Smrg 881124047306Smrg ; 881224047306Smrg return 0; 881324047306Smrg} 881424047306Smrg_ACEOF 8815bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8816bdc460c5Smrgthen : 881724047306Smrg eval $cacheid=yes 8818bdc460c5Smrgelse $as_nop 881924047306Smrg eval $cacheid=no 882024047306Smrgfi 8821bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 882224047306Smrg conftest$ac_exeext conftest.$ac_ext 882324047306Smrgfi 882424047306Smrg 882524047306Smrg 882624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 882724047306Smrg 882824047306Smrg eval supported=\$$cacheid 8829bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8830bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 883124047306Smrg if test "$supported" = "yes" ; then 883224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 883324047306Smrg found="yes" 883424047306Smrg fi 883524047306Smrg fi 883624047306Smrg 883724047306Smrg if test $found = "no" ; then 883824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 883924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 884024047306Smrg fi 884124047306Smrg 884224047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 884324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 884424047306Smrg fi 884524047306Smrg 884624047306Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 884724047306Smrg 8848bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8849bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 885024047306Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8851bdc460c5Smrg if eval test \${$cacheid+y} 8852bdc460c5Smrgthen : 8853bdc460c5Smrg printf %s "(cached) " >&6 8854bdc460c5Smrgelse $as_nop 885524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 885624047306Smrg/* end confdefs.h. */ 885724047306Smrgint i; 885824047306Smrgint 8859bdc460c5Smrgmain (void) 886024047306Smrg{ 886124047306Smrg 886224047306Smrg ; 886324047306Smrg return 0; 886424047306Smrg} 886524047306Smrg_ACEOF 8866bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8867bdc460c5Smrgthen : 886824047306Smrg eval $cacheid=yes 8869bdc460c5Smrgelse $as_nop 887024047306Smrg eval $cacheid=no 887124047306Smrgfi 8872bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 887324047306Smrg conftest$ac_exeext conftest.$ac_ext 887424047306Smrgfi 887524047306Smrg 887624047306Smrg 887724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 887824047306Smrg 887924047306Smrg eval supported=\$$cacheid 8880bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8881bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 888224047306Smrg if test "$supported" = "yes" ; then 888324047306Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 888424047306Smrg found="yes" 888524047306Smrg fi 888624047306Smrg fi 888724047306Smrg 888824047306Smrg 888924047306Smrg 889024047306Smrg 889124047306Smrg 889224047306Smrg 889324047306Smrg 889424047306Smrg 889524047306Smrg 889624047306Smrg 889724047306Smrg 889824047306Smrg 889924047306Smrg 890024047306Smrg 890124047306Smrg 890224047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 890324047306Smrg 890424047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 890524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8907bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8908bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8909bdc460c5Smrgthen : 8910bdc460c5Smrg printf %s "(cached) " >&6 8911bdc460c5Smrgelse $as_nop 891224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 891324047306Smrg/* end confdefs.h. */ 891424047306Smrgint i; 891524047306Smrg_ACEOF 8916bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8917bdc460c5Smrgthen : 891824047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8919bdc460c5Smrgelse $as_nop 892024047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 892124047306Smrgfi 8922bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 892324047306Smrgfi 8924bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8925bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 892624047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 892724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 892824047306Smrgfi 892924047306Smrg 893024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 893124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 893224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 893324047306Smrg fi 893424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8935bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8936bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8937bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8938bdc460c5Smrgthen : 8939bdc460c5Smrg printf %s "(cached) " >&6 8940bdc460c5Smrgelse $as_nop 894124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 894224047306Smrg/* end confdefs.h. */ 894324047306Smrgint i; 894424047306Smrg_ACEOF 8945bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 8946bdc460c5Smrgthen : 894724047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8948bdc460c5Smrgelse $as_nop 894924047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 895024047306Smrgfi 8951bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 895224047306Smrgfi 8953bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8954bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 895524047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 895624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 895724047306Smrgfi 895824047306Smrg 895924047306Smrgfound="no" 896024047306Smrg 896124047306Smrg if test $found = "no" ; then 896224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 896324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 896424047306Smrg fi 896524047306Smrg 896624047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 896724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 896824047306Smrg fi 896924047306Smrg 897024047306Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 897124047306Smrg 8972bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8973bdc460c5Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 897424047306Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8975bdc460c5Smrg if eval test \${$cacheid+y} 8976bdc460c5Smrgthen : 8977bdc460c5Smrg printf %s "(cached) " >&6 8978bdc460c5Smrgelse $as_nop 897924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 898024047306Smrg/* end confdefs.h. */ 898124047306Smrgint i; 898224047306Smrgint 8983bdc460c5Smrgmain (void) 898424047306Smrg{ 898524047306Smrg 898624047306Smrg ; 898724047306Smrg return 0; 898824047306Smrg} 898924047306Smrg_ACEOF 8990bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 8991bdc460c5Smrgthen : 899224047306Smrg eval $cacheid=yes 8993bdc460c5Smrgelse $as_nop 899424047306Smrg eval $cacheid=no 899524047306Smrgfi 8996bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 899724047306Smrg conftest$ac_exeext conftest.$ac_ext 899824047306Smrgfi 899924047306Smrg 900024047306Smrg 900124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 900224047306Smrg 900324047306Smrg eval supported=\$$cacheid 9004bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9005bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 900624047306Smrg if test "$supported" = "yes" ; then 900724047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 900824047306Smrg found="yes" 900924047306Smrg fi 901024047306Smrg fi 901124047306Smrg 901224047306Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 901324047306Smrgelse 9014bdc460c5Smrg{ printf "%s\n" "$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 9015bdc460c5Smrgprintf "%s\n" "$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;} 901624047306Smrg 901724047306Smrg 901824047306Smrg 901924047306Smrg 902024047306Smrg 902124047306Smrg 902224047306Smrg 902324047306Smrg 902424047306Smrg 902524047306Smrg 902624047306Smrg 902724047306Smrg 902824047306Smrg 902924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 903024047306Smrg 903124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 903224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9036bdc460c5Smrgthen : 9037bdc460c5Smrg printf %s "(cached) " >&6 9038bdc460c5Smrgelse $as_nop 903924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 904024047306Smrg/* end confdefs.h. */ 904124047306Smrgint i; 904224047306Smrg_ACEOF 9043bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9044bdc460c5Smrgthen : 904524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9046bdc460c5Smrgelse $as_nop 904724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 904824047306Smrgfi 9049bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 905024047306Smrgfi 9051bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9052bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 905324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 905424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 905524047306Smrgfi 905624047306Smrg 905724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 905824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 905924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 906024047306Smrg fi 906124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9062bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9063bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9064bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9065bdc460c5Smrgthen : 9066bdc460c5Smrg printf %s "(cached) " >&6 9067bdc460c5Smrgelse $as_nop 906824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 906924047306Smrg/* end confdefs.h. */ 907024047306Smrgint i; 907124047306Smrg_ACEOF 9072bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9073bdc460c5Smrgthen : 907424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9075bdc460c5Smrgelse $as_nop 907624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 907724047306Smrgfi 9078bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 907924047306Smrgfi 9080bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9081bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 908224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 908324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 908424047306Smrgfi 908524047306Smrg 908624047306Smrgfound="no" 908724047306Smrg 908824047306Smrg if test $found = "no" ; then 908924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 909024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 909124047306Smrg fi 909224047306Smrg 909324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 909424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 909524047306Smrg fi 909624047306Smrg 909724047306Smrg CFLAGS="$CFLAGS -Wimplicit" 909824047306Smrg 9099bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9100bdc460c5Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 910124047306Smrg cacheid=xorg_cv_cc_flag__Wimplicit 9102bdc460c5Smrg if eval test \${$cacheid+y} 9103bdc460c5Smrgthen : 9104bdc460c5Smrg printf %s "(cached) " >&6 9105bdc460c5Smrgelse $as_nop 910624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 910724047306Smrg/* end confdefs.h. */ 910824047306Smrgint i; 910924047306Smrgint 9110bdc460c5Smrgmain (void) 911124047306Smrg{ 911224047306Smrg 911324047306Smrg ; 911424047306Smrg return 0; 911524047306Smrg} 911624047306Smrg_ACEOF 9117bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9118bdc460c5Smrgthen : 911924047306Smrg eval $cacheid=yes 9120bdc460c5Smrgelse $as_nop 912124047306Smrg eval $cacheid=no 912224047306Smrgfi 9123bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 912424047306Smrg conftest$ac_exeext conftest.$ac_ext 912524047306Smrgfi 912624047306Smrg 912724047306Smrg 912824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 912924047306Smrg 913024047306Smrg eval supported=\$$cacheid 9131bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9132bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 913324047306Smrg if test "$supported" = "yes" ; then 913424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 913524047306Smrg found="yes" 913624047306Smrg fi 913724047306Smrg fi 913824047306Smrg 913924047306Smrg 914024047306Smrg 914124047306Smrg 914224047306Smrg 914324047306Smrg 914424047306Smrg 914524047306Smrg 914624047306Smrg 914724047306Smrg 914824047306Smrg 914924047306Smrg 915024047306Smrg 915124047306Smrg 915224047306Smrg 915324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 915424047306Smrg 915524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 915624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9157bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9158bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9159bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9160bdc460c5Smrgthen : 9161bdc460c5Smrg printf %s "(cached) " >&6 9162bdc460c5Smrgelse $as_nop 916324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 916424047306Smrg/* end confdefs.h. */ 916524047306Smrgint i; 916624047306Smrg_ACEOF 9167bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9168bdc460c5Smrgthen : 916924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9170bdc460c5Smrgelse $as_nop 917124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 917224047306Smrgfi 9173bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 917424047306Smrgfi 9175bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9176bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 917724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 917824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 917924047306Smrgfi 918024047306Smrg 918124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 918224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 918324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 918424047306Smrg fi 918524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9187bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9188bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9189bdc460c5Smrgthen : 9190bdc460c5Smrg printf %s "(cached) " >&6 9191bdc460c5Smrgelse $as_nop 919224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 919324047306Smrg/* end confdefs.h. */ 919424047306Smrgint i; 919524047306Smrg_ACEOF 9196bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9197bdc460c5Smrgthen : 919824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9199bdc460c5Smrgelse $as_nop 920024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 920124047306Smrgfi 9202bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 920324047306Smrgfi 9204bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9205bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 920624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 920724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 920824047306Smrgfi 920924047306Smrg 921024047306Smrgfound="no" 921124047306Smrg 921224047306Smrg if test $found = "no" ; then 921324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 921424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 921524047306Smrg fi 921624047306Smrg 921724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 921824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 921924047306Smrg fi 922024047306Smrg 922124047306Smrg CFLAGS="$CFLAGS -Wnonnull" 922224047306Smrg 9223bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9224bdc460c5Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 922524047306Smrg cacheid=xorg_cv_cc_flag__Wnonnull 9226bdc460c5Smrg if eval test \${$cacheid+y} 9227bdc460c5Smrgthen : 9228bdc460c5Smrg printf %s "(cached) " >&6 9229bdc460c5Smrgelse $as_nop 923024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 923124047306Smrg/* end confdefs.h. */ 923224047306Smrgint i; 923324047306Smrgint 9234bdc460c5Smrgmain (void) 923524047306Smrg{ 923624047306Smrg 923724047306Smrg ; 923824047306Smrg return 0; 923924047306Smrg} 924024047306Smrg_ACEOF 9241bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9242bdc460c5Smrgthen : 924324047306Smrg eval $cacheid=yes 9244bdc460c5Smrgelse $as_nop 924524047306Smrg eval $cacheid=no 924624047306Smrgfi 9247bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 924824047306Smrg conftest$ac_exeext conftest.$ac_ext 924924047306Smrgfi 925024047306Smrg 925124047306Smrg 925224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 925324047306Smrg 925424047306Smrg eval supported=\$$cacheid 9255bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9256bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 925724047306Smrg if test "$supported" = "yes" ; then 925824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 925924047306Smrg found="yes" 926024047306Smrg fi 926124047306Smrg fi 926224047306Smrg 926324047306Smrg 926424047306Smrg 926524047306Smrg 926624047306Smrg 926724047306Smrg 926824047306Smrg 926924047306Smrg 927024047306Smrg 927124047306Smrg 927224047306Smrg 927324047306Smrg 927424047306Smrg 927524047306Smrg 927624047306Smrg 927724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 927824047306Smrg 927924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 928024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9281bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9282bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9283bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9284bdc460c5Smrgthen : 9285bdc460c5Smrg printf %s "(cached) " >&6 9286bdc460c5Smrgelse $as_nop 928724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 928824047306Smrg/* end confdefs.h. */ 928924047306Smrgint i; 929024047306Smrg_ACEOF 9291bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9292bdc460c5Smrgthen : 929324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9294bdc460c5Smrgelse $as_nop 929524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 929624047306Smrgfi 9297bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 929824047306Smrgfi 9299bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9300bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 930124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 930224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 930324047306Smrgfi 930424047306Smrg 930524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 930624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 930724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 930824047306Smrg fi 930924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9310bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9311bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9312bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9313bdc460c5Smrgthen : 9314bdc460c5Smrg printf %s "(cached) " >&6 9315bdc460c5Smrgelse $as_nop 931624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 931724047306Smrg/* end confdefs.h. */ 931824047306Smrgint i; 931924047306Smrg_ACEOF 9320bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9321bdc460c5Smrgthen : 932224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9323bdc460c5Smrgelse $as_nop 932424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 932524047306Smrgfi 9326bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 932724047306Smrgfi 9328bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9329bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 933024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 933124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933224047306Smrgfi 933324047306Smrg 933424047306Smrgfound="no" 933524047306Smrg 933624047306Smrg if test $found = "no" ; then 933724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 933824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 933924047306Smrg fi 934024047306Smrg 934124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 934224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 934324047306Smrg fi 934424047306Smrg 934524047306Smrg CFLAGS="$CFLAGS -Winit-self" 934624047306Smrg 9347bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9348bdc460c5Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 934924047306Smrg cacheid=xorg_cv_cc_flag__Winit_self 9350bdc460c5Smrg if eval test \${$cacheid+y} 9351bdc460c5Smrgthen : 9352bdc460c5Smrg printf %s "(cached) " >&6 9353bdc460c5Smrgelse $as_nop 935424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 935524047306Smrg/* end confdefs.h. */ 935624047306Smrgint i; 935724047306Smrgint 9358bdc460c5Smrgmain (void) 935924047306Smrg{ 936024047306Smrg 936124047306Smrg ; 936224047306Smrg return 0; 936324047306Smrg} 936424047306Smrg_ACEOF 9365bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9366bdc460c5Smrgthen : 936724047306Smrg eval $cacheid=yes 9368bdc460c5Smrgelse $as_nop 936924047306Smrg eval $cacheid=no 937024047306Smrgfi 9371bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 937224047306Smrg conftest$ac_exeext conftest.$ac_ext 937324047306Smrgfi 937424047306Smrg 937524047306Smrg 937624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 937724047306Smrg 937824047306Smrg eval supported=\$$cacheid 9379bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9380bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 938124047306Smrg if test "$supported" = "yes" ; then 938224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 938324047306Smrg found="yes" 938424047306Smrg fi 938524047306Smrg fi 938624047306Smrg 938724047306Smrg 938824047306Smrg 938924047306Smrg 939024047306Smrg 939124047306Smrg 939224047306Smrg 939324047306Smrg 939424047306Smrg 939524047306Smrg 939624047306Smrg 939724047306Smrg 939824047306Smrg 939924047306Smrg 940024047306Smrg 940124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 940224047306Smrg 940324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 940424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9405bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9406bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9407bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9408bdc460c5Smrgthen : 9409bdc460c5Smrg printf %s "(cached) " >&6 9410bdc460c5Smrgelse $as_nop 941124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 941224047306Smrg/* end confdefs.h. */ 941324047306Smrgint i; 941424047306Smrg_ACEOF 9415bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9416bdc460c5Smrgthen : 941724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9418bdc460c5Smrgelse $as_nop 941924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 942024047306Smrgfi 9421bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 942224047306Smrgfi 9423bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9424bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 942524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 942624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 942724047306Smrgfi 942824047306Smrg 942924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 943024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 943124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 943224047306Smrg fi 943324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9435bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9436bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9437bdc460c5Smrgthen : 9438bdc460c5Smrg printf %s "(cached) " >&6 9439bdc460c5Smrgelse $as_nop 944024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 944124047306Smrg/* end confdefs.h. */ 944224047306Smrgint i; 944324047306Smrg_ACEOF 9444bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9445bdc460c5Smrgthen : 944624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9447bdc460c5Smrgelse $as_nop 944824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 944924047306Smrgfi 9450bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 945124047306Smrgfi 9452bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 945424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 945524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945624047306Smrgfi 945724047306Smrg 945824047306Smrgfound="no" 945924047306Smrg 946024047306Smrg if test $found = "no" ; then 946124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 946224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 946324047306Smrg fi 946424047306Smrg 946524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 946624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 946724047306Smrg fi 946824047306Smrg 946924047306Smrg CFLAGS="$CFLAGS -Wmain" 947024047306Smrg 9471bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9472bdc460c5Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 947324047306Smrg cacheid=xorg_cv_cc_flag__Wmain 9474bdc460c5Smrg if eval test \${$cacheid+y} 9475bdc460c5Smrgthen : 9476bdc460c5Smrg printf %s "(cached) " >&6 9477bdc460c5Smrgelse $as_nop 947824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 947924047306Smrg/* end confdefs.h. */ 948024047306Smrgint i; 948124047306Smrgint 9482bdc460c5Smrgmain (void) 948324047306Smrg{ 948424047306Smrg 948524047306Smrg ; 948624047306Smrg return 0; 948724047306Smrg} 948824047306Smrg_ACEOF 9489bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9490bdc460c5Smrgthen : 949124047306Smrg eval $cacheid=yes 9492bdc460c5Smrgelse $as_nop 949324047306Smrg eval $cacheid=no 949424047306Smrgfi 9495bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 949624047306Smrg conftest$ac_exeext conftest.$ac_ext 949724047306Smrgfi 949824047306Smrg 949924047306Smrg 950024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 950124047306Smrg 950224047306Smrg eval supported=\$$cacheid 9503bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9504bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 950524047306Smrg if test "$supported" = "yes" ; then 950624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 950724047306Smrg found="yes" 950824047306Smrg fi 950924047306Smrg fi 951024047306Smrg 951124047306Smrg 951224047306Smrg 951324047306Smrg 951424047306Smrg 951524047306Smrg 951624047306Smrg 951724047306Smrg 951824047306Smrg 951924047306Smrg 952024047306Smrg 952124047306Smrg 952224047306Smrg 952324047306Smrg 952424047306Smrg 952524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 952624047306Smrg 952724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 952824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9530bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9531bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9532bdc460c5Smrgthen : 9533bdc460c5Smrg printf %s "(cached) " >&6 9534bdc460c5Smrgelse $as_nop 953524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 953624047306Smrg/* end confdefs.h. */ 953724047306Smrgint i; 953824047306Smrg_ACEOF 9539bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9540bdc460c5Smrgthen : 954124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9542bdc460c5Smrgelse $as_nop 954324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 954424047306Smrgfi 9545bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 954624047306Smrgfi 9547bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9548bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 954924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 955024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 955124047306Smrgfi 955224047306Smrg 955324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 955424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 955524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 955624047306Smrg fi 955724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9558bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9559bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9560bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9561bdc460c5Smrgthen : 9562bdc460c5Smrg printf %s "(cached) " >&6 9563bdc460c5Smrgelse $as_nop 956424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 956524047306Smrg/* end confdefs.h. */ 956624047306Smrgint i; 956724047306Smrg_ACEOF 9568bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9569bdc460c5Smrgthen : 957024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9571bdc460c5Smrgelse $as_nop 957224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 957324047306Smrgfi 9574bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 957524047306Smrgfi 9576bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9577bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 957824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 957924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 958024047306Smrgfi 958124047306Smrg 958224047306Smrgfound="no" 958324047306Smrg 958424047306Smrg if test $found = "no" ; then 958524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 958624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 958724047306Smrg fi 958824047306Smrg 958924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 959024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 959124047306Smrg fi 959224047306Smrg 959324047306Smrg CFLAGS="$CFLAGS -Wmissing-braces" 959424047306Smrg 9595bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9596bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 959724047306Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9598bdc460c5Smrg if eval test \${$cacheid+y} 9599bdc460c5Smrgthen : 9600bdc460c5Smrg printf %s "(cached) " >&6 9601bdc460c5Smrgelse $as_nop 960224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 960324047306Smrg/* end confdefs.h. */ 960424047306Smrgint i; 960524047306Smrgint 9606bdc460c5Smrgmain (void) 960724047306Smrg{ 960824047306Smrg 960924047306Smrg ; 961024047306Smrg return 0; 961124047306Smrg} 961224047306Smrg_ACEOF 9613bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9614bdc460c5Smrgthen : 961524047306Smrg eval $cacheid=yes 9616bdc460c5Smrgelse $as_nop 961724047306Smrg eval $cacheid=no 961824047306Smrgfi 9619bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 962024047306Smrg conftest$ac_exeext conftest.$ac_ext 962124047306Smrgfi 962224047306Smrg 962324047306Smrg 962424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 962524047306Smrg 962624047306Smrg eval supported=\$$cacheid 9627bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9628bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 962924047306Smrg if test "$supported" = "yes" ; then 963024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 963124047306Smrg found="yes" 963224047306Smrg fi 963324047306Smrg fi 963424047306Smrg 963524047306Smrg 963624047306Smrg 963724047306Smrg 963824047306Smrg 963924047306Smrg 964024047306Smrg 964124047306Smrg 964224047306Smrg 964324047306Smrg 964424047306Smrg 964524047306Smrg 964624047306Smrg 964724047306Smrg 964824047306Smrg 964924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 965024047306Smrg 965124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 965224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9653bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9654bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9655bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9656bdc460c5Smrgthen : 9657bdc460c5Smrg printf %s "(cached) " >&6 9658bdc460c5Smrgelse $as_nop 965924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 966024047306Smrg/* end confdefs.h. */ 966124047306Smrgint i; 966224047306Smrg_ACEOF 9663bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9664bdc460c5Smrgthen : 966524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9666bdc460c5Smrgelse $as_nop 966724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 966824047306Smrgfi 9669bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 967024047306Smrgfi 9671bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9672bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 967324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 967424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 967524047306Smrgfi 967624047306Smrg 967724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 967824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 967924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 968024047306Smrg fi 968124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9682bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9683bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9684bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9685bdc460c5Smrgthen : 9686bdc460c5Smrg printf %s "(cached) " >&6 9687bdc460c5Smrgelse $as_nop 968824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 968924047306Smrg/* end confdefs.h. */ 969024047306Smrgint i; 969124047306Smrg_ACEOF 9692bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9693bdc460c5Smrgthen : 969424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9695bdc460c5Smrgelse $as_nop 969624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 969724047306Smrgfi 9698bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 969924047306Smrgfi 9700bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9701bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 970224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 970324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 970424047306Smrgfi 970524047306Smrg 970624047306Smrgfound="no" 970724047306Smrg 970824047306Smrg if test $found = "no" ; then 970924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 971024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 971124047306Smrg fi 971224047306Smrg 971324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 971424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 971524047306Smrg fi 971624047306Smrg 971724047306Smrg CFLAGS="$CFLAGS -Wsequence-point" 971824047306Smrg 9719bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9720bdc460c5Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 972124047306Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9722bdc460c5Smrg if eval test \${$cacheid+y} 9723bdc460c5Smrgthen : 9724bdc460c5Smrg printf %s "(cached) " >&6 9725bdc460c5Smrgelse $as_nop 972624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 972724047306Smrg/* end confdefs.h. */ 972824047306Smrgint i; 972924047306Smrgint 9730bdc460c5Smrgmain (void) 973124047306Smrg{ 973224047306Smrg 973324047306Smrg ; 973424047306Smrg return 0; 973524047306Smrg} 973624047306Smrg_ACEOF 9737bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9738bdc460c5Smrgthen : 973924047306Smrg eval $cacheid=yes 9740bdc460c5Smrgelse $as_nop 974124047306Smrg eval $cacheid=no 974224047306Smrgfi 9743bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 974424047306Smrg conftest$ac_exeext conftest.$ac_ext 974524047306Smrgfi 974624047306Smrg 974724047306Smrg 974824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 974924047306Smrg 975024047306Smrg eval supported=\$$cacheid 9751bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9752bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 975324047306Smrg if test "$supported" = "yes" ; then 975424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 975524047306Smrg found="yes" 975624047306Smrg fi 975724047306Smrg fi 975824047306Smrg 975924047306Smrg 976024047306Smrg 976124047306Smrg 976224047306Smrg 976324047306Smrg 976424047306Smrg 976524047306Smrg 976624047306Smrg 976724047306Smrg 976824047306Smrg 976924047306Smrg 977024047306Smrg 977124047306Smrg 977224047306Smrg 977324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 977424047306Smrg 977524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 977624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9778bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9779bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9780bdc460c5Smrgthen : 9781bdc460c5Smrg printf %s "(cached) " >&6 9782bdc460c5Smrgelse $as_nop 978324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 978424047306Smrg/* end confdefs.h. */ 978524047306Smrgint i; 978624047306Smrg_ACEOF 9787bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9788bdc460c5Smrgthen : 978924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9790bdc460c5Smrgelse $as_nop 979124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 979224047306Smrgfi 9793bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 979424047306Smrgfi 9795bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9796bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 979724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 979824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 979924047306Smrgfi 980024047306Smrg 980124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 980224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 980324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 980424047306Smrg fi 980524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9807bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9808bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9809bdc460c5Smrgthen : 9810bdc460c5Smrg printf %s "(cached) " >&6 9811bdc460c5Smrgelse $as_nop 981224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 981324047306Smrg/* end confdefs.h. */ 981424047306Smrgint i; 981524047306Smrg_ACEOF 9816bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9817bdc460c5Smrgthen : 981824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9819bdc460c5Smrgelse $as_nop 982024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 982124047306Smrgfi 9822bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 982324047306Smrgfi 9824bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9825bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 982624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 982724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 982824047306Smrgfi 982924047306Smrg 983024047306Smrgfound="no" 983124047306Smrg 983224047306Smrg if test $found = "no" ; then 983324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 983424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 983524047306Smrg fi 983624047306Smrg 983724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 983824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 983924047306Smrg fi 984024047306Smrg 984124047306Smrg CFLAGS="$CFLAGS -Wreturn-type" 984224047306Smrg 9843bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9844bdc460c5Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 984524047306Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9846bdc460c5Smrg if eval test \${$cacheid+y} 9847bdc460c5Smrgthen : 9848bdc460c5Smrg printf %s "(cached) " >&6 9849bdc460c5Smrgelse $as_nop 985024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 985124047306Smrg/* end confdefs.h. */ 985224047306Smrgint i; 985324047306Smrgint 9854bdc460c5Smrgmain (void) 985524047306Smrg{ 985624047306Smrg 985724047306Smrg ; 985824047306Smrg return 0; 985924047306Smrg} 986024047306Smrg_ACEOF 9861bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9862bdc460c5Smrgthen : 986324047306Smrg eval $cacheid=yes 9864bdc460c5Smrgelse $as_nop 986524047306Smrg eval $cacheid=no 986624047306Smrgfi 9867bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 986824047306Smrg conftest$ac_exeext conftest.$ac_ext 986924047306Smrgfi 987024047306Smrg 987124047306Smrg 987224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 987324047306Smrg 987424047306Smrg eval supported=\$$cacheid 9875bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9876bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 987724047306Smrg if test "$supported" = "yes" ; then 987824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 987924047306Smrg found="yes" 988024047306Smrg fi 988124047306Smrg fi 988224047306Smrg 988324047306Smrg 988424047306Smrg 988524047306Smrg 988624047306Smrg 988724047306Smrg 988824047306Smrg 988924047306Smrg 989024047306Smrg 989124047306Smrg 989224047306Smrg 989324047306Smrg 989424047306Smrg 989524047306Smrg 989624047306Smrg 989724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 989824047306Smrg 989924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 990024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9901bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9902bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9903bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9904bdc460c5Smrgthen : 9905bdc460c5Smrg printf %s "(cached) " >&6 9906bdc460c5Smrgelse $as_nop 990724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 990824047306Smrg/* end confdefs.h. */ 990924047306Smrgint i; 991024047306Smrg_ACEOF 9911bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9912bdc460c5Smrgthen : 991324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9914bdc460c5Smrgelse $as_nop 991524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 991624047306Smrgfi 9917bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 991824047306Smrgfi 9919bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9920bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 992124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 992224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992324047306Smrgfi 992424047306Smrg 992524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 992624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 992724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 992824047306Smrg fi 992924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9931bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9932bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9933bdc460c5Smrgthen : 9934bdc460c5Smrg printf %s "(cached) " >&6 9935bdc460c5Smrgelse $as_nop 993624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 993724047306Smrg/* end confdefs.h. */ 993824047306Smrgint i; 993924047306Smrg_ACEOF 9940bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 9941bdc460c5Smrgthen : 994224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9943bdc460c5Smrgelse $as_nop 994424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 994524047306Smrgfi 9946bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 994724047306Smrgfi 9948bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9949bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 995024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 995124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 995224047306Smrgfi 995324047306Smrg 995424047306Smrgfound="no" 995524047306Smrg 995624047306Smrg if test $found = "no" ; then 995724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 995824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 995924047306Smrg fi 996024047306Smrg 996124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 996224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 996324047306Smrg fi 996424047306Smrg 996524047306Smrg CFLAGS="$CFLAGS -Wtrigraphs" 996624047306Smrg 9967bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9968bdc460c5Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 996924047306Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9970bdc460c5Smrg if eval test \${$cacheid+y} 9971bdc460c5Smrgthen : 9972bdc460c5Smrg printf %s "(cached) " >&6 9973bdc460c5Smrgelse $as_nop 997424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 997524047306Smrg/* end confdefs.h. */ 997624047306Smrgint i; 997724047306Smrgint 9978bdc460c5Smrgmain (void) 997924047306Smrg{ 998024047306Smrg 998124047306Smrg ; 998224047306Smrg return 0; 998324047306Smrg} 998424047306Smrg_ACEOF 9985bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 9986bdc460c5Smrgthen : 998724047306Smrg eval $cacheid=yes 9988bdc460c5Smrgelse $as_nop 998924047306Smrg eval $cacheid=no 999024047306Smrgfi 9991bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 999224047306Smrg conftest$ac_exeext conftest.$ac_ext 999324047306Smrgfi 999424047306Smrg 999524047306Smrg 999624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 999724047306Smrg 999824047306Smrg eval supported=\$$cacheid 9999bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10000bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1000124047306Smrg if test "$supported" = "yes" ; then 1000224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1000324047306Smrg found="yes" 1000424047306Smrg fi 1000524047306Smrg fi 1000624047306Smrg 1000724047306Smrg 1000824047306Smrg 1000924047306Smrg 1001024047306Smrg 1001124047306Smrg 1001224047306Smrg 1001324047306Smrg 1001424047306Smrg 1001524047306Smrg 1001624047306Smrg 1001724047306Smrg 1001824047306Smrg 1001924047306Smrg 1002024047306Smrg 1002124047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1002224047306Smrg 1002324047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1002424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10025bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10026bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10027bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10028bdc460c5Smrgthen : 10029bdc460c5Smrg printf %s "(cached) " >&6 10030bdc460c5Smrgelse $as_nop 1003124047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1003224047306Smrg/* end confdefs.h. */ 1003324047306Smrgint i; 1003424047306Smrg_ACEOF 10035bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10036bdc460c5Smrgthen : 1003724047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10038bdc460c5Smrgelse $as_nop 1003924047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1004024047306Smrgfi 10041bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1004224047306Smrgfi 10043bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10044bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1004524047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1004624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1004724047306Smrgfi 1004824047306Smrg 1004924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1005024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1005124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1005224047306Smrg fi 1005324047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10055bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10056bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10057bdc460c5Smrgthen : 10058bdc460c5Smrg printf %s "(cached) " >&6 10059bdc460c5Smrgelse $as_nop 1006024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006124047306Smrg/* end confdefs.h. */ 1006224047306Smrgint i; 1006324047306Smrg_ACEOF 10064bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10065bdc460c5Smrgthen : 1006624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10067bdc460c5Smrgelse $as_nop 1006824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1006924047306Smrgfi 10070bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1007124047306Smrgfi 10072bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10073bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1007424047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1007524047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1007624047306Smrgfi 1007724047306Smrg 1007824047306Smrgfound="no" 1007924047306Smrg 1008024047306Smrg if test $found = "no" ; then 1008124047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1008224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1008324047306Smrg fi 1008424047306Smrg 1008524047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1008624047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1008724047306Smrg fi 1008824047306Smrg 1008924047306Smrg CFLAGS="$CFLAGS -Warray-bounds" 1009024047306Smrg 10091bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10092bdc460c5Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 1009324047306Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 10094bdc460c5Smrg if eval test \${$cacheid+y} 10095bdc460c5Smrgthen : 10096bdc460c5Smrg printf %s "(cached) " >&6 10097bdc460c5Smrgelse $as_nop 1009824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1009924047306Smrg/* end confdefs.h. */ 1010024047306Smrgint i; 1010124047306Smrgint 10102bdc460c5Smrgmain (void) 1010324047306Smrg{ 1010424047306Smrg 1010524047306Smrg ; 1010624047306Smrg return 0; 1010724047306Smrg} 1010824047306Smrg_ACEOF 10109bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10110bdc460c5Smrgthen : 1011124047306Smrg eval $cacheid=yes 10112bdc460c5Smrgelse $as_nop 1011324047306Smrg eval $cacheid=no 1011424047306Smrgfi 10115bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1011624047306Smrg conftest$ac_exeext conftest.$ac_ext 1011724047306Smrgfi 1011824047306Smrg 1011924047306Smrg 1012024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1012124047306Smrg 1012224047306Smrg eval supported=\$$cacheid 10123bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10124bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1012524047306Smrg if test "$supported" = "yes" ; then 1012624047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1012724047306Smrg found="yes" 1012824047306Smrg fi 1012924047306Smrg fi 1013024047306Smrg 1013124047306Smrg 1013224047306Smrg 1013324047306Smrg 1013424047306Smrg 1013524047306Smrg 1013624047306Smrg 1013724047306Smrg 1013824047306Smrg 1013924047306Smrg 1014024047306Smrg 1014124047306Smrg 1014224047306Smrg 1014324047306Smrg 1014424047306Smrg 1014524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1014624047306Smrg 1014724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1014824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10149bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10150bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10151bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10152bdc460c5Smrgthen : 10153bdc460c5Smrg printf %s "(cached) " >&6 10154bdc460c5Smrgelse $as_nop 1015524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1015624047306Smrg/* end confdefs.h. */ 1015724047306Smrgint i; 1015824047306Smrg_ACEOF 10159bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10160bdc460c5Smrgthen : 1016124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10162bdc460c5Smrgelse $as_nop 1016324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1016424047306Smrgfi 10165bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1016624047306Smrgfi 10167bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10168bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1016924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1017024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1017124047306Smrgfi 1017224047306Smrg 1017324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1017424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1017524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1017624047306Smrg fi 1017724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10178bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10179bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10180bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10181bdc460c5Smrgthen : 10182bdc460c5Smrg printf %s "(cached) " >&6 10183bdc460c5Smrgelse $as_nop 1018424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018524047306Smrg/* end confdefs.h. */ 1018624047306Smrgint i; 1018724047306Smrg_ACEOF 10188bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10189bdc460c5Smrgthen : 1019024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10191bdc460c5Smrgelse $as_nop 1019224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1019324047306Smrgfi 10194bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1019524047306Smrgfi 10196bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10197bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1019824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1019924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1020024047306Smrgfi 1020124047306Smrg 1020224047306Smrgfound="no" 1020324047306Smrg 1020424047306Smrg if test $found = "no" ; then 1020524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1020624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1020724047306Smrg fi 1020824047306Smrg 1020924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1021024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1021124047306Smrg fi 1021224047306Smrg 1021324047306Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1021424047306Smrg 10215bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10216bdc460c5Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1021724047306Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10218bdc460c5Smrg if eval test \${$cacheid+y} 10219bdc460c5Smrgthen : 10220bdc460c5Smrg printf %s "(cached) " >&6 10221bdc460c5Smrgelse $as_nop 1022224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1022324047306Smrg/* end confdefs.h. */ 1022424047306Smrgint i; 1022524047306Smrgint 10226bdc460c5Smrgmain (void) 1022724047306Smrg{ 1022824047306Smrg 1022924047306Smrg ; 1023024047306Smrg return 0; 1023124047306Smrg} 1023224047306Smrg_ACEOF 10233bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10234bdc460c5Smrgthen : 1023524047306Smrg eval $cacheid=yes 10236bdc460c5Smrgelse $as_nop 1023724047306Smrg eval $cacheid=no 1023824047306Smrgfi 10239bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1024024047306Smrg conftest$ac_exeext conftest.$ac_ext 1024124047306Smrgfi 1024224047306Smrg 1024324047306Smrg 1024424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1024524047306Smrg 1024624047306Smrg eval supported=\$$cacheid 10247bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10248bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1024924047306Smrg if test "$supported" = "yes" ; then 1025024047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1025124047306Smrg found="yes" 1025224047306Smrg fi 1025324047306Smrg fi 1025424047306Smrg 1025524047306Smrg 1025624047306Smrg 1025724047306Smrg 1025824047306Smrg 1025924047306Smrg 1026024047306Smrg 1026124047306Smrg 1026224047306Smrg 1026324047306Smrg 1026424047306Smrg 1026524047306Smrg 1026624047306Smrg 1026724047306Smrg 1026824047306Smrg 1026924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1027024047306Smrg 1027124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1027224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10274bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10275bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10276bdc460c5Smrgthen : 10277bdc460c5Smrg printf %s "(cached) " >&6 10278bdc460c5Smrgelse $as_nop 1027924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1028024047306Smrg/* end confdefs.h. */ 1028124047306Smrgint i; 1028224047306Smrg_ACEOF 10283bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10284bdc460c5Smrgthen : 1028524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10286bdc460c5Smrgelse $as_nop 1028724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1028824047306Smrgfi 10289bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1029024047306Smrgfi 10291bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10292bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1029324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1029424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1029524047306Smrgfi 1029624047306Smrg 1029724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1029824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1029924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1030024047306Smrg fi 1030124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10303bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10304bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10305bdc460c5Smrgthen : 10306bdc460c5Smrg printf %s "(cached) " >&6 10307bdc460c5Smrgelse $as_nop 1030824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1030924047306Smrg/* end confdefs.h. */ 1031024047306Smrgint i; 1031124047306Smrg_ACEOF 10312bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10313bdc460c5Smrgthen : 1031424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10315bdc460c5Smrgelse $as_nop 1031624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1031724047306Smrgfi 10318bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1031924047306Smrgfi 10320bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10321bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1032224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1032324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1032424047306Smrgfi 1032524047306Smrg 1032624047306Smrgfound="no" 1032724047306Smrg 1032824047306Smrg if test $found = "no" ; then 1032924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1033024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1033124047306Smrg fi 1033224047306Smrg 1033324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1033424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1033524047306Smrg fi 1033624047306Smrg 1033724047306Smrg CFLAGS="$CFLAGS -Waddress" 1033824047306Smrg 10339bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10340bdc460c5Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1034124047306Smrg cacheid=xorg_cv_cc_flag__Waddress 10342bdc460c5Smrg if eval test \${$cacheid+y} 10343bdc460c5Smrgthen : 10344bdc460c5Smrg printf %s "(cached) " >&6 10345bdc460c5Smrgelse $as_nop 1034624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1034724047306Smrg/* end confdefs.h. */ 1034824047306Smrgint i; 1034924047306Smrgint 10350bdc460c5Smrgmain (void) 1035124047306Smrg{ 1035224047306Smrg 1035324047306Smrg ; 1035424047306Smrg return 0; 1035524047306Smrg} 1035624047306Smrg_ACEOF 10357bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10358bdc460c5Smrgthen : 1035924047306Smrg eval $cacheid=yes 10360bdc460c5Smrgelse $as_nop 1036124047306Smrg eval $cacheid=no 1036224047306Smrgfi 10363bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1036424047306Smrg conftest$ac_exeext conftest.$ac_ext 1036524047306Smrgfi 1036624047306Smrg 1036724047306Smrg 1036824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1036924047306Smrg 1037024047306Smrg eval supported=\$$cacheid 10371bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10372bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1037324047306Smrg if test "$supported" = "yes" ; then 1037424047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1037524047306Smrg found="yes" 1037624047306Smrg fi 1037724047306Smrg fi 1037824047306Smrg 1037924047306Smrg 1038024047306Smrg 1038124047306Smrg 1038224047306Smrg 1038324047306Smrg 1038424047306Smrg 1038524047306Smrg 1038624047306Smrg 1038724047306Smrg 1038824047306Smrg 1038924047306Smrg 1039024047306Smrg 1039124047306Smrg 1039224047306Smrg 1039324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1039424047306Smrg 1039524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1039624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10397bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10398bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10399bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10400bdc460c5Smrgthen : 10401bdc460c5Smrg printf %s "(cached) " >&6 10402bdc460c5Smrgelse $as_nop 1040324047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1040424047306Smrg/* end confdefs.h. */ 1040524047306Smrgint i; 1040624047306Smrg_ACEOF 10407bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10408bdc460c5Smrgthen : 1040924047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10410bdc460c5Smrgelse $as_nop 1041124047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1041224047306Smrgfi 10413bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1041424047306Smrgfi 10415bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10416bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1041724047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1041824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1041924047306Smrgfi 1042024047306Smrg 1042124047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1042224047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1042324047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1042424047306Smrg fi 1042524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10426bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10427bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10428bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10429bdc460c5Smrgthen : 10430bdc460c5Smrg printf %s "(cached) " >&6 10431bdc460c5Smrgelse $as_nop 1043224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1043324047306Smrg/* end confdefs.h. */ 1043424047306Smrgint i; 1043524047306Smrg_ACEOF 10436bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10437bdc460c5Smrgthen : 1043824047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10439bdc460c5Smrgelse $as_nop 1044024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1044124047306Smrgfi 10442bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1044324047306Smrgfi 10444bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10445bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1044624047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1044724047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1044824047306Smrgfi 1044924047306Smrg 1045024047306Smrgfound="no" 1045124047306Smrg 1045224047306Smrg if test $found = "no" ; then 1045324047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1045424047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1045524047306Smrg fi 1045624047306Smrg 1045724047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1045824047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1045924047306Smrg fi 1046024047306Smrg 1046124047306Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1046224047306Smrg 10463bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10464bdc460c5Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1046524047306Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10466bdc460c5Smrg if eval test \${$cacheid+y} 10467bdc460c5Smrgthen : 10468bdc460c5Smrg printf %s "(cached) " >&6 10469bdc460c5Smrgelse $as_nop 1047024047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1047124047306Smrg/* end confdefs.h. */ 1047224047306Smrgint i; 1047324047306Smrgint 10474bdc460c5Smrgmain (void) 1047524047306Smrg{ 1047624047306Smrg 1047724047306Smrg ; 1047824047306Smrg return 0; 1047924047306Smrg} 1048024047306Smrg_ACEOF 10481bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10482bdc460c5Smrgthen : 1048324047306Smrg eval $cacheid=yes 10484bdc460c5Smrgelse $as_nop 1048524047306Smrg eval $cacheid=no 1048624047306Smrgfi 10487bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1048824047306Smrg conftest$ac_exeext conftest.$ac_ext 1048924047306Smrgfi 1049024047306Smrg 1049124047306Smrg 1049224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1049324047306Smrg 1049424047306Smrg eval supported=\$$cacheid 10495bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10496bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1049724047306Smrg if test "$supported" = "yes" ; then 1049824047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1049924047306Smrg found="yes" 1050024047306Smrg fi 1050124047306Smrg fi 1050224047306Smrg 1050324047306Smrg 1050424047306Smrg 1050524047306Smrg 1050624047306Smrg 1050724047306Smrg 1050824047306Smrg 1050924047306Smrg 1051024047306Smrg 1051124047306Smrg 1051224047306Smrg 1051324047306Smrg 1051424047306Smrg 1051524047306Smrg 1051624047306Smrg 1051724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1051824047306Smrg 1051924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1052024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10522bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10523bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10524bdc460c5Smrgthen : 10525bdc460c5Smrg printf %s "(cached) " >&6 10526bdc460c5Smrgelse $as_nop 1052724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1052824047306Smrg/* end confdefs.h. */ 1052924047306Smrgint i; 1053024047306Smrg_ACEOF 10531bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10532bdc460c5Smrgthen : 1053324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10534bdc460c5Smrgelse $as_nop 1053524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1053624047306Smrgfi 10537bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1053824047306Smrgfi 10539bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10540bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1054124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1054224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1054324047306Smrgfi 1054424047306Smrg 1054524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1054624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1054724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1054824047306Smrg fi 1054924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10550bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10551bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10552bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10553bdc460c5Smrgthen : 10554bdc460c5Smrg printf %s "(cached) " >&6 10555bdc460c5Smrgelse $as_nop 1055624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1055724047306Smrg/* end confdefs.h. */ 1055824047306Smrgint i; 1055924047306Smrg_ACEOF 10560bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10561bdc460c5Smrgthen : 1056224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10563bdc460c5Smrgelse $as_nop 1056424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1056524047306Smrgfi 10566bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1056724047306Smrgfi 10568bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10569bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1057024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1057124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1057224047306Smrgfi 1057324047306Smrg 1057424047306Smrgfound="no" 1057524047306Smrg 1057624047306Smrg if test $found = "no" ; then 1057724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1057824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1057924047306Smrg fi 1058024047306Smrg 1058124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1058224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1058324047306Smrg fi 1058424047306Smrg 1058524047306Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1058624047306Smrg 10587bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10588bdc460c5Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1058924047306Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10590bdc460c5Smrg if eval test \${$cacheid+y} 10591bdc460c5Smrgthen : 10592bdc460c5Smrg printf %s "(cached) " >&6 10593bdc460c5Smrgelse $as_nop 1059424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1059524047306Smrg/* end confdefs.h. */ 1059624047306Smrgint i; 1059724047306Smrgint 10598bdc460c5Smrgmain (void) 1059924047306Smrg{ 1060024047306Smrg 1060124047306Smrg ; 1060224047306Smrg return 0; 1060324047306Smrg} 1060424047306Smrg_ACEOF 10605bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10606bdc460c5Smrgthen : 1060724047306Smrg eval $cacheid=yes 10608bdc460c5Smrgelse $as_nop 1060924047306Smrg eval $cacheid=no 1061024047306Smrgfi 10611bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1061224047306Smrg conftest$ac_exeext conftest.$ac_ext 1061324047306Smrgfi 1061424047306Smrg 1061524047306Smrg 1061624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1061724047306Smrg 1061824047306Smrg eval supported=\$$cacheid 10619bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10620bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1062124047306Smrg if test "$supported" = "yes" ; then 1062224047306Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1062324047306Smrg found="yes" 1062424047306Smrg fi 1062524047306Smrg fi 1062624047306Smrg 1062724047306Smrg 1062824047306Smrgfi 1062924047306Smrg 1063024047306Smrg 1063124047306Smrg 1063224047306Smrg 1063324047306Smrg 1063424047306Smrg 1063524047306Smrg 1063624047306Smrg CWARNFLAGS="$BASE_CFLAGS" 1063724047306Smrg if test "x$GCC" = xyes ; then 1063824047306Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1063924047306Smrg fi 1064024047306Smrg 1064124047306Smrg 1064224047306Smrg 1064324047306Smrg 1064424047306Smrg 1064524047306Smrg 1064624047306Smrg 1064724047306Smrg 1064824047306Smrg# Check whether --enable-strict-compilation was given. 10649bdc460c5Smrgif test ${enable_strict_compilation+y} 10650bdc460c5Smrgthen : 1065124047306Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10652bdc460c5Smrgelse $as_nop 1065324047306Smrg STRICT_COMPILE=no 1065424047306Smrgfi 1065524047306Smrg 1065624047306Smrg 1065724047306Smrg 1065824047306Smrg 1065924047306Smrg 1066024047306Smrg 1066124047306SmrgSTRICT_CFLAGS="" 1066224047306Smrg 1066324047306Smrg 1066424047306Smrg 1066524047306Smrg 1066624047306Smrg 1066724047306Smrg 1066824047306Smrg 1066924047306Smrg 1067024047306Smrg 1067124047306Smrg 1067224047306Smrg 1067324047306Smrg 1067424047306Smrg 1067524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1067624047306Smrg 1067724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1067824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10680bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10681bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10682bdc460c5Smrgthen : 10683bdc460c5Smrg printf %s "(cached) " >&6 10684bdc460c5Smrgelse $as_nop 1068524047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1068624047306Smrg/* end confdefs.h. */ 1068724047306Smrgint i; 1068824047306Smrg_ACEOF 10689bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10690bdc460c5Smrgthen : 1069124047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10692bdc460c5Smrgelse $as_nop 1069324047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1069424047306Smrgfi 10695bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1069624047306Smrgfi 10697bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10698bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1069924047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1070024047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1070124047306Smrgfi 1070224047306Smrg 1070324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1070424047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1070524047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1070624047306Smrg fi 1070724047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10709bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10710bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10711bdc460c5Smrgthen : 10712bdc460c5Smrg printf %s "(cached) " >&6 10713bdc460c5Smrgelse $as_nop 1071424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1071524047306Smrg/* end confdefs.h. */ 1071624047306Smrgint i; 1071724047306Smrg_ACEOF 10718bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10719bdc460c5Smrgthen : 1072024047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10721bdc460c5Smrgelse $as_nop 1072224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1072324047306Smrgfi 10724bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1072524047306Smrgfi 10726bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10727bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1072824047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1072924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1073024047306Smrgfi 1073124047306Smrg 1073224047306Smrgfound="no" 1073324047306Smrg 1073424047306Smrg if test $found = "no" ; then 1073524047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1073624047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1073724047306Smrg fi 1073824047306Smrg 1073924047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1074024047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1074124047306Smrg fi 1074224047306Smrg 1074324047306Smrg CFLAGS="$CFLAGS -pedantic" 1074424047306Smrg 10745bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10746bdc460c5Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1074724047306Smrg cacheid=xorg_cv_cc_flag__pedantic 10748bdc460c5Smrg if eval test \${$cacheid+y} 10749bdc460c5Smrgthen : 10750bdc460c5Smrg printf %s "(cached) " >&6 10751bdc460c5Smrgelse $as_nop 1075224047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1075324047306Smrg/* end confdefs.h. */ 1075424047306Smrgint i; 1075524047306Smrgint 10756bdc460c5Smrgmain (void) 1075724047306Smrg{ 1075824047306Smrg 1075924047306Smrg ; 1076024047306Smrg return 0; 1076124047306Smrg} 1076224047306Smrg_ACEOF 10763bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10764bdc460c5Smrgthen : 1076524047306Smrg eval $cacheid=yes 10766bdc460c5Smrgelse $as_nop 1076724047306Smrg eval $cacheid=no 1076824047306Smrgfi 10769bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1077024047306Smrg conftest$ac_exeext conftest.$ac_ext 1077124047306Smrgfi 1077224047306Smrg 1077324047306Smrg 1077424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1077524047306Smrg 1077624047306Smrg eval supported=\$$cacheid 10777bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10778bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1077924047306Smrg if test "$supported" = "yes" ; then 1078024047306Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1078124047306Smrg found="yes" 1078224047306Smrg fi 1078324047306Smrg fi 1078424047306Smrg 1078524047306Smrg 1078624047306Smrg 1078724047306Smrg 1078824047306Smrg 1078924047306Smrg 1079024047306Smrg 1079124047306Smrg 1079224047306Smrg 1079324047306Smrg 1079424047306Smrg 1079524047306Smrg 1079624047306Smrg 1079724047306Smrg 1079824047306Smrg 1079924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1080024047306Smrg 1080124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1080224047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10804bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10805bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10806bdc460c5Smrgthen : 10807bdc460c5Smrg printf %s "(cached) " >&6 10808bdc460c5Smrgelse $as_nop 1080924047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1081024047306Smrg/* end confdefs.h. */ 1081124047306Smrgint i; 1081224047306Smrg_ACEOF 10813bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10814bdc460c5Smrgthen : 1081524047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10816bdc460c5Smrgelse $as_nop 1081724047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1081824047306Smrgfi 10819bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1082024047306Smrgfi 10821bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10822bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1082324047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1082424047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1082524047306Smrgfi 1082624047306Smrg 1082724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1082824047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1082924047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1083024047306Smrg fi 1083124047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10832bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10833bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10834bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10835bdc460c5Smrgthen : 10836bdc460c5Smrg printf %s "(cached) " >&6 10837bdc460c5Smrgelse $as_nop 1083824047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1083924047306Smrg/* end confdefs.h. */ 1084024047306Smrgint i; 1084124047306Smrg_ACEOF 10842bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10843bdc460c5Smrgthen : 1084424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10845bdc460c5Smrgelse $as_nop 1084624047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10847576bae58Smrgfi 10848bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10849576bae58Smrgfi 10850bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10851bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1085224047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1085324047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10854576bae58Smrgfi 10855bf2eeab3Smrg 1085624047306Smrgfound="no" 10857bf2eeab3Smrg 1085824047306Smrg if test $found = "no" ; then 1085924047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1086024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1086124047306Smrg fi 10862bf2eeab3Smrg 1086324047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1086424047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1086524047306Smrg fi 10866bf2eeab3Smrg 1086724047306Smrg CFLAGS="$CFLAGS -Werror" 1086824047306Smrg 10869bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10870bdc460c5Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 1087124047306Smrg cacheid=xorg_cv_cc_flag__Werror 10872bdc460c5Smrg if eval test \${$cacheid+y} 10873bdc460c5Smrgthen : 10874bdc460c5Smrg printf %s "(cached) " >&6 10875bdc460c5Smrgelse $as_nop 1087624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1087724047306Smrg/* end confdefs.h. */ 1087824047306Smrgint i; 1087924047306Smrgint 10880bdc460c5Smrgmain (void) 1088124047306Smrg{ 1088224047306Smrg 1088324047306Smrg ; 1088424047306Smrg return 0; 1088524047306Smrg} 1088624047306Smrg_ACEOF 10887bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10888bdc460c5Smrgthen : 1088924047306Smrg eval $cacheid=yes 10890bdc460c5Smrgelse $as_nop 1089124047306Smrg eval $cacheid=no 10892bf2eeab3Smrgfi 10893bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1089424047306Smrg conftest$ac_exeext conftest.$ac_ext 10895bf2eeab3Smrgfi 10896bf2eeab3Smrg 10897bf2eeab3Smrg 1089824047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1089924047306Smrg 1090024047306Smrg eval supported=\$$cacheid 10901bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10902bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1090324047306Smrg if test "$supported" = "yes" ; then 1090424047306Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1090524047306Smrg found="yes" 1090624047306Smrg fi 1090724047306Smrg fi 1090824047306Smrg 1090924047306Smrg if test $found = "no" ; then 1091024047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1091124047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1091224047306Smrg fi 1091324047306Smrg 1091424047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1091524047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1091624047306Smrg fi 1091724047306Smrg 1091824047306Smrg CFLAGS="$CFLAGS -errwarn" 1091924047306Smrg 10920bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10921bdc460c5Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1092224047306Smrg cacheid=xorg_cv_cc_flag__errwarn 10923bdc460c5Smrg if eval test \${$cacheid+y} 10924bdc460c5Smrgthen : 10925bdc460c5Smrg printf %s "(cached) " >&6 10926bdc460c5Smrgelse $as_nop 1092724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1092824047306Smrg/* end confdefs.h. */ 1092924047306Smrgint i; 1093024047306Smrgint 10931bdc460c5Smrgmain (void) 1093224047306Smrg{ 10933576bae58Smrg 1093424047306Smrg ; 1093524047306Smrg return 0; 1093624047306Smrg} 1093724047306Smrg_ACEOF 10938bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 10939bdc460c5Smrgthen : 1094024047306Smrg eval $cacheid=yes 10941bdc460c5Smrgelse $as_nop 1094224047306Smrg eval $cacheid=no 10943bf2eeab3Smrgfi 10944bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1094524047306Smrg conftest$ac_exeext conftest.$ac_ext 10946bf2eeab3Smrgfi 10947576bae58Smrg 10948576bae58Smrg 1094924047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10950576bae58Smrg 1095124047306Smrg eval supported=\$$cacheid 10952bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10953bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1095424047306Smrg if test "$supported" = "yes" ; then 1095524047306Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1095624047306Smrg found="yes" 1095724047306Smrg fi 1095824047306Smrg fi 10959576bae58Smrg 10960576bae58Smrg 109611a054510Smrg 1096224047306Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1096324047306Smrg# activate it with -Werror, so we add it here explicitly. 10964bf2eeab3Smrg 10965bf2eeab3Smrg 10966bf2eeab3Smrg 10967bf2eeab3Smrg 10968bf2eeab3Smrg 10969bf2eeab3Smrg 109701a054510Smrg 1097124047306Smrg 1097224047306Smrg 1097324047306Smrg 1097424047306Smrg 1097524047306Smrg 1097624047306Smrg 1097724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1097824047306Smrg 1097924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1098024047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10981bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10982bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10983bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10984bdc460c5Smrgthen : 10985bdc460c5Smrg printf %s "(cached) " >&6 10986bdc460c5Smrgelse $as_nop 1098724047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1098824047306Smrg/* end confdefs.h. */ 1098924047306Smrgint i; 1099024047306Smrg_ACEOF 10991bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 10992bdc460c5Smrgthen : 1099324047306Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10994bdc460c5Smrgelse $as_nop 1099524047306Smrg xorg_cv_cc_flag_unknown_warning_option=no 1099624047306Smrgfi 10997bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1099824047306Smrgfi 10999bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11000bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1100124047306Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1100224047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11003bf2eeab3Smrgfi 11004bf2eeab3Smrg 1100524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1100624047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1100724047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1100824047306Smrg fi 1100924047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11010bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11011bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11012bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11013bdc460c5Smrgthen : 11014bdc460c5Smrg printf %s "(cached) " >&6 11015bdc460c5Smrgelse $as_nop 1101624047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 110171a054510Smrg/* end confdefs.h. */ 1101824047306Smrgint i; 110191a054510Smrg_ACEOF 11020bdc460c5Smrgif ac_fn_c_try_compile "$LINENO" 11021bdc460c5Smrgthen : 1102224047306Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 11023bdc460c5Smrgelse $as_nop 1102424047306Smrg xorg_cv_cc_flag_unused_command_line_argument=no 11025bf2eeab3Smrgfi 11026bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11027bf2eeab3Smrgfi 11028bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11029bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1103024047306Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1103124047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1103224047306Smrgfi 1103324047306Smrg 1103424047306Smrgfound="no" 1103524047306Smrg 1103624047306Smrg if test $found = "no" ; then 1103724047306Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1103824047306Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1103924047306Smrg fi 1104024047306Smrg 1104124047306Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1104224047306Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1104324047306Smrg fi 1104424047306Smrg 1104524047306Smrg CFLAGS="$CFLAGS -Werror=attributes" 1104624047306Smrg 11047bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11048bdc460c5Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 1104924047306Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 11050bdc460c5Smrg if eval test \${$cacheid+y} 11051bdc460c5Smrgthen : 11052bdc460c5Smrg printf %s "(cached) " >&6 11053bdc460c5Smrgelse $as_nop 1105424047306Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1105524047306Smrg/* end confdefs.h. */ 1105624047306Smrgint i; 1105724047306Smrgint 11058bdc460c5Smrgmain (void) 1105924047306Smrg{ 1106024047306Smrg 1106124047306Smrg ; 1106224047306Smrg return 0; 1106324047306Smrg} 1106424047306Smrg_ACEOF 11065bdc460c5Smrgif ac_fn_c_try_link "$LINENO" 11066bdc460c5Smrgthen : 1106724047306Smrg eval $cacheid=yes 11068bdc460c5Smrgelse $as_nop 1106924047306Smrg eval $cacheid=no 1107024047306Smrgfi 11071bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1107224047306Smrg conftest$ac_exeext conftest.$ac_ext 1107324047306Smrgfi 1107424047306Smrg 1107524047306Smrg 1107624047306Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1107724047306Smrg 1107824047306Smrg eval supported=\$$cacheid 11079bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11080bdc460c5Smrgprintf "%s\n" "$supported" >&6; } 1108124047306Smrg if test "$supported" = "yes" ; then 1108224047306Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1108324047306Smrg found="yes" 1108424047306Smrg fi 1108524047306Smrg fi 1108624047306Smrg 1108724047306Smrg 1108824047306Smrg 110891a054510Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1109024047306Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 110911a054510Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11092bf2eeab3Smrgfi 110931a054510Smrg 11094bf2eeab3Smrg 11095bf2eeab3Smrg 11096bf2eeab3Smrg 11097bf2eeab3Smrg 1109824047306Smrg 11099bf2eeab3Smrgcat >>confdefs.h <<_ACEOF 11100bf2eeab3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11101bf2eeab3Smrg_ACEOF 11102bf2eeab3Smrg 11103bf2eeab3Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11104bf2eeab3Smrg if test "x$PVM" = "x"; then 11105bf2eeab3Smrg PVM="0" 11106bf2eeab3Smrg fi 11107bf2eeab3Smrg 11108bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11109bf2eeab3Smrg 11110bf2eeab3Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11111bf2eeab3Smrg if test "x$PVP" = "x"; then 11112bf2eeab3Smrg PVP="0" 11113bf2eeab3Smrg fi 11114bf2eeab3Smrg 11115bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11116bf2eeab3Smrg 11117bf2eeab3Smrg 11118bf2eeab3Smrg 11119bdc460c5SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11120576bae58Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11121bdc460c5Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11122bdc460c5Smrgtouch \$(top_srcdir)/ChangeLog; \ 11123bdc460c5Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11124bf2eeab3Smrg 11125576bae58Smrg 11126576bae58Smrg 11127576bae58Smrg 11128576bae58Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11129576bae58SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11130576bae58Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11131bdc460c5Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11132bdc460c5Smrgtouch \$(top_srcdir)/INSTALL; \ 11133bdc460c5Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11134bdc460c5Smrg 11135576bae58Smrg 11136bf2eeab3Smrg 11137bf2eeab3Smrg 11138bf2eeab3Smrg 11139bf2eeab3Smrg 11140bdc460c5Smrgcase $host_os in 11141bdc460c5Smrg solaris*) 11142bdc460c5Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11143bdc460c5Smrg # check for a man page file found in later versions that use 11144bdc460c5Smrg # traditional section numbers instead 11145bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11146bdc460c5Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11147bdc460c5Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11148bdc460c5Smrgthen : 11149bdc460c5Smrg printf %s "(cached) " >&6 11150bdc460c5Smrgelse $as_nop 11151bdc460c5Smrg test "$cross_compiling" = yes && 11152bdc460c5Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11153bdc460c5Smrgif test -r "/usr/share/man/man7/attributes.7"; then 11154bdc460c5Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 11155bdc460c5Smrgelse 11156bdc460c5Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 11157bdc460c5Smrgfi 11158bdc460c5Smrgfi 11159bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11160bdc460c5Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11161bdc460c5Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11162bdc460c5Smrgthen : 11163bdc460c5Smrg SYSV_MAN_SECTIONS=false 11164bdc460c5Smrgelse $as_nop 11165bdc460c5Smrg SYSV_MAN_SECTIONS=true 11166bdc460c5Smrgfi 11167bdc460c5Smrg 11168bdc460c5Smrg ;; 11169bdc460c5Smrg *) SYSV_MAN_SECTIONS=false ;; 11170bdc460c5Smrgesac 11171bf2eeab3Smrg 11172bf2eeab3Smrgif test x$APP_MAN_SUFFIX = x ; then 11173bf2eeab3Smrg APP_MAN_SUFFIX=1 11174bf2eeab3Smrgfi 11175bf2eeab3Smrgif test x$APP_MAN_DIR = x ; then 11176bf2eeab3Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11177bf2eeab3Smrgfi 11178bf2eeab3Smrg 11179bf2eeab3Smrgif test x$LIB_MAN_SUFFIX = x ; then 11180bf2eeab3Smrg LIB_MAN_SUFFIX=3 11181bf2eeab3Smrgfi 11182bf2eeab3Smrgif test x$LIB_MAN_DIR = x ; then 11183bf2eeab3Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11184bf2eeab3Smrgfi 11185bf2eeab3Smrg 11186bf2eeab3Smrgif test x$FILE_MAN_SUFFIX = x ; then 11187bdc460c5Smrg case $SYSV_MAN_SECTIONS in 11188bdc460c5Smrg true) FILE_MAN_SUFFIX=4 ;; 11189bdc460c5Smrg *) FILE_MAN_SUFFIX=5 ;; 11190bf2eeab3Smrg esac 11191bf2eeab3Smrgfi 11192bf2eeab3Smrgif test x$FILE_MAN_DIR = x ; then 11193bf2eeab3Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11194bf2eeab3Smrgfi 11195bf2eeab3Smrg 11196bf2eeab3Smrgif test x$MISC_MAN_SUFFIX = x ; then 11197bdc460c5Smrg case $SYSV_MAN_SECTIONS in 11198bdc460c5Smrg true) MISC_MAN_SUFFIX=5 ;; 11199bdc460c5Smrg *) MISC_MAN_SUFFIX=7 ;; 11200bf2eeab3Smrg esac 11201bf2eeab3Smrgfi 11202bf2eeab3Smrgif test x$MISC_MAN_DIR = x ; then 11203bf2eeab3Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11204bf2eeab3Smrgfi 11205bf2eeab3Smrg 11206bf2eeab3Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 11207bdc460c5Smrg case $SYSV_MAN_SECTIONS in 11208bdc460c5Smrg true) DRIVER_MAN_SUFFIX=7 ;; 11209bdc460c5Smrg *) DRIVER_MAN_SUFFIX=4 ;; 11210bf2eeab3Smrg esac 11211bf2eeab3Smrgfi 11212bf2eeab3Smrgif test x$DRIVER_MAN_DIR = x ; then 11213bf2eeab3Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11214bf2eeab3Smrgfi 11215bf2eeab3Smrg 11216bf2eeab3Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 11217bdc460c5Smrg case $SYSV_MAN_SECTIONS in 11218bdc460c5Smrg true) ADMIN_MAN_SUFFIX=1m ;; 11219bdc460c5Smrg *) ADMIN_MAN_SUFFIX=8 ;; 11220bf2eeab3Smrg esac 11221bf2eeab3Smrgfi 11222bf2eeab3Smrgif test x$ADMIN_MAN_DIR = x ; then 11223bf2eeab3Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11224bf2eeab3Smrgfi 11225bf2eeab3Smrg 11226bf2eeab3Smrg 11227bf2eeab3Smrg 11228bf2eeab3Smrg 11229bf2eeab3Smrg 11230bf2eeab3Smrg 11231bf2eeab3Smrg 11232bf2eeab3Smrg 11233bf2eeab3Smrg 11234bf2eeab3Smrg 11235bf2eeab3Smrg 11236bf2eeab3Smrg 11237bf2eeab3Smrg 11238bf2eeab3Smrg 11239bf2eeab3Smrg 11240576bae58SmrgXORG_MAN_PAGE="X Version 11" 11241bf2eeab3Smrg 11242576bae58SmrgMAN_SUBSTS="\ 11243576bae58Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11244576bae58Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11245576bae58Smrg -e 's|__xservername__|Xorg|g' \ 11246576bae58Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 11247576bae58Smrg -e 's|__projectroot__|\$(prefix)|g' \ 11248576bae58Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11249576bae58Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11250576bae58Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11251576bae58Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11252576bae58Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11253576bae58Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11254576bae58Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11255bf2eeab3Smrg 1125614c0a534Smrg 1125714c0a534Smrg 11258576bae58Smrg# Check whether --enable-silent-rules was given. 11259bdc460c5Smrgif test ${enable_silent_rules+y} 11260bdc460c5Smrgthen : 11261576bae58Smrg enableval=$enable_silent_rules; 1126214c0a534Smrgfi 1126314c0a534Smrg 1126424047306Smrgcase $enable_silent_rules in # ((( 1126524047306Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1126624047306Smrg no) AM_DEFAULT_VERBOSITY=1;; 1126724047306Smrg *) AM_DEFAULT_VERBOSITY=0;; 11268576bae58Smrgesac 1126924047306Smrgam_make=${MAKE-make} 11270bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11271bdc460c5Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 11272bdc460c5Smrgif test ${am_cv_make_support_nested_variables+y} 11273bdc460c5Smrgthen : 11274bdc460c5Smrg printf %s "(cached) " >&6 11275bdc460c5Smrgelse $as_nop 11276bdc460c5Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 1127724047306SmrgBAR0=false 1127824047306SmrgBAR1=true 1127924047306SmrgV=1 1128024047306Smrgam__doit: 1128124047306Smrg @$(TRUE) 1128224047306Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1128324047306Smrg am_cv_make_support_nested_variables=yes 1128424047306Smrgelse 1128524047306Smrg am_cv_make_support_nested_variables=no 1128624047306Smrgfi 1128724047306Smrgfi 11288bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11289bdc460c5Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 1129024047306Smrgif test $am_cv_make_support_nested_variables = yes; then 1129124047306Smrg AM_V='$(V)' 1129224047306Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1129324047306Smrgelse 1129424047306Smrg AM_V=$AM_DEFAULT_VERBOSITY 1129524047306Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1129624047306Smrgfi 11297576bae58SmrgAM_BACKSLASH='\' 11298576bae58Smrg 11299576bae58Smrg 11300576bae58Smrg 11301bdc460c5Smrgac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11302bdc460c5Smrgif test "x$ac_cv_func_asprintf" = xyes 11303bdc460c5Smrgthen : 11304bdc460c5Smrg printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11305bdc460c5Smrg 11306bdc460c5Smrgfi 11307bdc460c5Smrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11308bdc460c5Smrgif test "x$ac_cv_func_mkstemp" = xyes 11309bdc460c5Smrgthen : 11310bdc460c5Smrg printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11311bdc460c5Smrg 11312bdc460c5Smrgfi 11313bdc460c5Smrgac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" 11314bdc460c5Smrgif test "x$ac_cv_func_mktemp" = xyes 11315bdc460c5Smrgthen : 11316bdc460c5Smrg printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h 1131714c0a534Smrg 1131814c0a534Smrgfi 11319576bae58Smrg 11320576bae58Smrg 11321576bae58Smrg# Checks for pkg-config packages 1132214c0a534Smrg 1132314c0a534Smrgpkg_failed=no 11324bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5 11325bdc460c5Smrgprintf %s "checking for SMPROXY... " >&6; } 11326bf2eeab3Smrg 11327bf2eeab3Smrgif test -n "$SMPROXY_CFLAGS"; then 11328bf2eeab3Smrg pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS" 11329bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then 11330bf2eeab3Smrg if test -n "$PKG_CONFIG" && \ 11331bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 113321a054510Smrg ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 1133314c0a534Smrg ac_status=$? 11334bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11335576bae58Smrg test $ac_status = 0; }; then 113361a054510Smrg pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null` 11337bdc460c5Smrg test "x$?" != "x0" && pkg_failed=yes 1133814c0a534Smrgelse 1133914c0a534Smrg pkg_failed=yes 1134014c0a534Smrgfi 11341bf2eeab3Smrg else 11342bf2eeab3Smrg pkg_failed=untried 1134314c0a534Smrgfi 11344bf2eeab3Smrgif test -n "$SMPROXY_LIBS"; then 11345bf2eeab3Smrg pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS" 11346bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then 11347bf2eeab3Smrg if test -n "$PKG_CONFIG" && \ 11348bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 113491a054510Smrg ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 1135014c0a534Smrg ac_status=$? 11351bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11352576bae58Smrg test $ac_status = 0; }; then 113531a054510Smrg pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null` 11354bdc460c5Smrg test "x$?" != "x0" && pkg_failed=yes 1135514c0a534Smrgelse 1135614c0a534Smrg pkg_failed=yes 1135714c0a534Smrgfi 11358bf2eeab3Smrg else 11359bf2eeab3Smrg pkg_failed=untried 1136014c0a534Smrgfi 1136114c0a534Smrg 1136214c0a534Smrg 1136314c0a534Smrg 1136414c0a534Smrgif test $pkg_failed = yes; then 11365bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11366bdc460c5Smrgprintf "%s\n" "no" >&6; } 1136714c0a534Smrg 1136814c0a534Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1136914c0a534Smrg _pkg_short_errors_supported=yes 1137014c0a534Smrgelse 1137114c0a534Smrg _pkg_short_errors_supported=no 1137214c0a534Smrgfi 1137314c0a534Smrg if test $_pkg_short_errors_supported = yes; then 11374bdc460c5Smrg SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 1137514c0a534Smrg else 11376bdc460c5Smrg SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 1137714c0a534Smrg fi 1137814c0a534Smrg # Put the nasty error message in config.log where it belongs 1137914c0a534Smrg echo "$SMPROXY_PKG_ERRORS" >&5 1138014c0a534Smrg 113811a054510Smrg as_fn_error $? "Package requirements (sm ice xt xmuu) were not met: 1138214c0a534Smrg 1138314c0a534Smrg$SMPROXY_PKG_ERRORS 1138414c0a534Smrg 1138514c0a534SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1138614c0a534Smrginstalled software in a non-standard prefix. 1138714c0a534Smrg 1138814c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS 1138914c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config. 11390bdc460c5SmrgSee the pkg-config man page for more details." "$LINENO" 5 1139114c0a534Smrgelif test $pkg_failed = untried; then 11392bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11393bdc460c5Smrgprintf "%s\n" "no" >&6; } 11394bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11395bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11396576bae58Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1139714c0a534Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 1139814c0a534Smrgpath to pkg-config. 1139914c0a534Smrg 1140014c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS 1140114c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config. 1140214c0a534SmrgSee the pkg-config man page for more details. 1140314c0a534Smrg 11404bf2eeab3SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11405576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 1140614c0a534Smrgelse 1140714c0a534Smrg SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS 1140814c0a534Smrg SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS 11409bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11410bdc460c5Smrgprintf "%s\n" "yes" >&6; } 11411bdc460c5Smrg 1141214c0a534Smrgfi 1141314c0a534Smrg 114141a054510Smrgac_config_files="$ac_config_files Makefile man/Makefile" 1141514c0a534Smrg 1141614c0a534Smrgcat >confcache <<\_ACEOF 1141714c0a534Smrg# This file is a shell script that caches the results of configure 1141814c0a534Smrg# tests run on this system so they can be shared between configure 1141914c0a534Smrg# scripts and configure runs, see configure's option --config-cache. 1142014c0a534Smrg# It is not useful on other systems. If it contains results you don't 1142114c0a534Smrg# want to keep, you may remove or edit it. 1142214c0a534Smrg# 1142314c0a534Smrg# config.status only pays attention to the cache file if you give it 1142414c0a534Smrg# the --recheck option to rerun configure. 1142514c0a534Smrg# 1142614c0a534Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1142714c0a534Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1142814c0a534Smrg# following values. 1142914c0a534Smrg 1143014c0a534Smrg_ACEOF 1143114c0a534Smrg 1143214c0a534Smrg# The following way of writing the cache mishandles newlines in values, 1143314c0a534Smrg# but we know of no workaround that is simple, portable, and efficient. 11434bf2eeab3Smrg# So, we kill variables containing newlines. 1143514c0a534Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 1143614c0a534Smrg# and sets the high bit in the cache file unless we assign to the vars. 11437bf2eeab3Smrg( 11438bf2eeab3Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11439bf2eeab3Smrg eval ac_val=\$$ac_var 11440bf2eeab3Smrg case $ac_val in #( 11441bf2eeab3Smrg *${as_nl}*) 11442bf2eeab3Smrg case $ac_var in #( 11443bdc460c5Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11444bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11445bf2eeab3Smrg esac 11446bf2eeab3Smrg case $ac_var in #( 11447bf2eeab3Smrg _ | IFS | as_nl) ;; #( 11448bf2eeab3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11449576bae58Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11450bf2eeab3Smrg esac ;; 11451bf2eeab3Smrg esac 11452bf2eeab3Smrg done 11453bf2eeab3Smrg 1145414c0a534Smrg (set) 2>&1 | 11455bf2eeab3Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11456bf2eeab3Smrg *${as_nl}ac_space=\ *) 11457576bae58Smrg # `set' does not quote correctly, so add quotes: double-quote 11458576bae58Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1145914c0a534Smrg sed -n \ 1146014c0a534Smrg "s/'/'\\\\''/g; 1146114c0a534Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11462bf2eeab3Smrg ;; #( 1146314c0a534Smrg *) 1146414c0a534Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11465bf2eeab3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1146614c0a534Smrg ;; 11467bf2eeab3Smrg esac | 11468bf2eeab3Smrg sort 11469bf2eeab3Smrg) | 1147014c0a534Smrg sed ' 11471bf2eeab3Smrg /^ac_cv_env_/b end 1147214c0a534Smrg t clear 11473bf2eeab3Smrg :clear 11474bdc460c5Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 1147514c0a534Smrg t end 11476bf2eeab3Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11477bf2eeab3Smrg :end' >>confcache 11478bf2eeab3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11479bf2eeab3Smrg if test -w "$cache_file"; then 11480576bae58Smrg if test "x$cache_file" != "x/dev/null"; then 11481bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11482bdc460c5Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11483576bae58Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 11484576bae58Smrg cat confcache >"$cache_file" 11485576bae58Smrg else 11486576bae58Smrg case $cache_file in #( 11487576bae58Smrg */* | ?:*) 11488576bae58Smrg mv -f confcache "$cache_file"$$ && 11489576bae58Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 11490576bae58Smrg *) 11491576bae58Smrg mv -f confcache "$cache_file" ;; 11492576bae58Smrg esac 11493576bae58Smrg fi 11494576bae58Smrg fi 1149514c0a534Smrg else 11496bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11497bdc460c5Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 1149814c0a534Smrg fi 1149914c0a534Smrgfi 1150014c0a534Smrgrm -f confcache 1150114c0a534Smrg 1150214c0a534Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1150314c0a534Smrg# Let make expand exec_prefix. 1150414c0a534Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1150514c0a534Smrg 1150614c0a534SmrgDEFS=-DHAVE_CONFIG_H 1150714c0a534Smrg 1150814c0a534Smrgac_libobjs= 1150914c0a534Smrgac_ltlibobjs= 11510576bae58SmrgU= 1151114c0a534Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1151214c0a534Smrg # 1. Remove the extension, and $U if already installed. 11513bf2eeab3Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11514bdc460c5Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11515bf2eeab3Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11516bf2eeab3Smrg # will be set to the directory where LIBOBJS objects are built. 11517576bae58Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11518576bae58Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1151914c0a534Smrgdone 1152014c0a534SmrgLIBOBJS=$ac_libobjs 1152114c0a534Smrg 1152214c0a534SmrgLTLIBOBJS=$ac_ltlibobjs 1152314c0a534Smrg 1152414c0a534Smrg 11525bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11526bdc460c5Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 1152724047306Smrg if test -n "$am_sleep_pid"; then 1152824047306Smrg # Hide warnings about reused PIDs. 1152924047306Smrg wait $am_sleep_pid 2>/dev/null 1153024047306Smrg fi 11531bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11532bdc460c5Smrgprintf "%s\n" "done" >&6; } 11533bf2eeab3Smrg if test -n "$EXEEXT"; then 11534bf2eeab3Smrg am__EXEEXT_TRUE= 11535bf2eeab3Smrg am__EXEEXT_FALSE='#' 11536bf2eeab3Smrgelse 11537bf2eeab3Smrg am__EXEEXT_TRUE='#' 11538bf2eeab3Smrg am__EXEEXT_FALSE= 11539bf2eeab3Smrgfi 11540bf2eeab3Smrg 1154114c0a534Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11542576bae58Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11543576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1154414c0a534Smrgfi 1154514c0a534Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11546576bae58Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11547576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1154814c0a534Smrgfi 1154914c0a534Smrg 11550576bae58Smrg: "${CONFIG_STATUS=./config.status}" 11551bf2eeab3Smrgac_write_fail=0 1155214c0a534Smrgac_clean_files_save=$ac_clean_files 1155314c0a534Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 11554bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11555bdc460c5Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11556576bae58Smrgas_write_fail=0 11557576bae58Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1155814c0a534Smrg#! $SHELL 1155914c0a534Smrg# Generated by $as_me. 1156014c0a534Smrg# Run this file to recreate the current configuration. 1156114c0a534Smrg# Compiler output produced by configure, useful for debugging 1156214c0a534Smrg# configure, is in config.log if it exists. 1156314c0a534Smrg 1156414c0a534Smrgdebug=false 1156514c0a534Smrgac_cs_recheck=false 1156614c0a534Smrgac_cs_silent=false 1156714c0a534Smrg 11568576bae58SmrgSHELL=\${CONFIG_SHELL-$SHELL} 11569576bae58Smrgexport SHELL 11570576bae58Smrg_ASEOF 11571576bae58Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11572576bae58Smrg## -------------------- ## 11573576bae58Smrg## M4sh Initialization. ## 11574576bae58Smrg## -------------------- ## 1157514c0a534Smrg 11576bf2eeab3Smrg# Be more Bourne compatible 11577bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh 11578bdc460c5Smrgas_nop=: 11579bdc460c5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11580bdc460c5Smrgthen : 1158114c0a534Smrg emulate sh 1158214c0a534Smrg NULLCMD=: 11583bf2eeab3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1158414c0a534Smrg # is contrary to our usage. Disable this feature. 1158514c0a534Smrg alias -g '${1+"$@"}'='"$@"' 11586bf2eeab3Smrg setopt NO_GLOB_SUBST 11587bdc460c5Smrgelse $as_nop 11588576bae58Smrg case `(set -o) 2>/dev/null` in #( 11589576bae58Smrg *posix*) : 11590576bae58Smrg set -o posix ;; #( 11591576bae58Smrg *) : 11592576bae58Smrg ;; 11593bf2eeab3Smrgesac 11594bf2eeab3Smrgfi 11595bf2eeab3Smrg 11596bf2eeab3Smrg 11597bdc460c5Smrg 11598bdc460c5Smrg# Reset variables that may have inherited troublesome values from 11599bdc460c5Smrg# the environment. 11600bdc460c5Smrg 11601bdc460c5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 11602bdc460c5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 11603bdc460c5Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 11604bdc460c5Smrg# Quoting is to prevent editors from complaining about space-tab. 11605bf2eeab3Smrgas_nl=' 11606bf2eeab3Smrg' 11607bf2eeab3Smrgexport as_nl 11608bdc460c5SmrgIFS=" "" $as_nl" 11609bdc460c5Smrg 11610bdc460c5SmrgPS1='$ ' 11611bdc460c5SmrgPS2='> ' 11612bdc460c5SmrgPS4='+ ' 11613bdc460c5Smrg 11614bdc460c5Smrg# Ensure predictable behavior from utilities with locale-dependent output. 11615bdc460c5SmrgLC_ALL=C 11616bdc460c5Smrgexport LC_ALL 11617bdc460c5SmrgLANGUAGE=C 11618bdc460c5Smrgexport LANGUAGE 11619bdc460c5Smrg 11620bdc460c5Smrg# We cannot yet rely on "unset" to work, but we need these variables 11621bdc460c5Smrg# to be unset--not just set to an empty or harmless value--now, to 11622bdc460c5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11623bdc460c5Smrg# also avoids known problems related to "unset" and subshell syntax 11624bdc460c5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11625bdc460c5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11626bdc460c5Smrgdo eval test \${$as_var+y} \ 11627bdc460c5Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11628bdc460c5Smrgdone 11629bdc460c5Smrg 11630bdc460c5Smrg# Ensure that fds 0, 1, and 2 are open. 11631bdc460c5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11632bdc460c5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11633bdc460c5Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11634bf2eeab3Smrg 11635bf2eeab3Smrg# The user is always right. 11636bdc460c5Smrgif ${PATH_SEPARATOR+false} :; then 11637bf2eeab3Smrg PATH_SEPARATOR=: 11638bf2eeab3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11639bf2eeab3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11640bf2eeab3Smrg PATH_SEPARATOR=';' 11641bf2eeab3Smrg } 1164214c0a534Smrgfi 1164314c0a534Smrg 1164414c0a534Smrg 11645bf2eeab3Smrg# Find who we are. Look in the path if we contain no directory separator. 11646576bae58Smrgas_myself= 11647576bae58Smrgcase $0 in #(( 11648bf2eeab3Smrg *[\\/]* ) as_myself=$0 ;; 11649bf2eeab3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11650bf2eeab3Smrgfor as_dir in $PATH 11651bf2eeab3Smrgdo 11652bf2eeab3Smrg IFS=$as_save_IFS 11653bdc460c5Smrg case $as_dir in #((( 11654bdc460c5Smrg '') as_dir=./ ;; 11655bdc460c5Smrg */) ;; 11656bdc460c5Smrg *) as_dir=$as_dir/ ;; 11657bdc460c5Smrg esac 11658bdc460c5Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11659576bae58Smrg done 11660bf2eeab3SmrgIFS=$as_save_IFS 11661bf2eeab3Smrg 11662bf2eeab3Smrg ;; 11663bf2eeab3Smrgesac 11664bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11665bf2eeab3Smrg# in which case we are not to be found in the path. 11666bf2eeab3Smrgif test "x$as_myself" = x; then 11667bf2eeab3Smrg as_myself=$0 11668bf2eeab3Smrgfi 11669bf2eeab3Smrgif test ! -f "$as_myself"; then 11670bdc460c5Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11671576bae58Smrg exit 1 11672bf2eeab3Smrgfi 11673bf2eeab3Smrg 11674576bae58Smrg 11675576bae58Smrg 11676576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 11677576bae58Smrg# ---------------------------------------- 11678576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11679576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11680576bae58Smrg# script with STATUS, using 1 if that was 0. 11681576bae58Smrgas_fn_error () 11682576bae58Smrg{ 11683576bae58Smrg as_status=$1; test $as_status -eq 0 && as_status=1 11684576bae58Smrg if test "$4"; then 11685576bae58Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11686bdc460c5Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11687576bae58Smrg fi 11688bdc460c5Smrg printf "%s\n" "$as_me: error: $2" >&2 11689576bae58Smrg as_fn_exit $as_status 11690576bae58Smrg} # as_fn_error 11691576bae58Smrg 11692576bae58Smrg 11693bdc460c5Smrg 11694576bae58Smrg# as_fn_set_status STATUS 11695576bae58Smrg# ----------------------- 11696576bae58Smrg# Set $? to STATUS, without forking. 11697576bae58Smrgas_fn_set_status () 11698576bae58Smrg{ 11699576bae58Smrg return $1 11700576bae58Smrg} # as_fn_set_status 11701576bae58Smrg 11702576bae58Smrg# as_fn_exit STATUS 11703576bae58Smrg# ----------------- 11704576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11705576bae58Smrgas_fn_exit () 11706576bae58Smrg{ 11707576bae58Smrg set +e 11708576bae58Smrg as_fn_set_status $1 11709576bae58Smrg exit $1 11710576bae58Smrg} # as_fn_exit 11711576bae58Smrg 11712576bae58Smrg# as_fn_unset VAR 11713576bae58Smrg# --------------- 11714576bae58Smrg# Portably unset VAR. 11715576bae58Smrgas_fn_unset () 11716576bae58Smrg{ 11717576bae58Smrg { eval $1=; unset $1;} 11718576bae58Smrg} 11719576bae58Smrgas_unset=as_fn_unset 11720bdc460c5Smrg 11721576bae58Smrg# as_fn_append VAR VALUE 11722576bae58Smrg# ---------------------- 11723576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11724576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over 11725576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive 11726576bae58Smrg# implementations. 11727bdc460c5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11728bdc460c5Smrgthen : 11729576bae58Smrg eval 'as_fn_append () 11730576bae58Smrg { 11731576bae58Smrg eval $1+=\$2 11732576bae58Smrg }' 11733bdc460c5Smrgelse $as_nop 11734576bae58Smrg as_fn_append () 11735576bae58Smrg { 11736576bae58Smrg eval $1=\$$1\$2 11737576bae58Smrg } 11738576bae58Smrgfi # as_fn_append 11739576bae58Smrg 11740576bae58Smrg# as_fn_arith ARG... 11741576bae58Smrg# ------------------ 11742576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11743576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11744576bae58Smrg# must be portable across $(()) and expr. 11745bdc460c5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11746bdc460c5Smrgthen : 11747576bae58Smrg eval 'as_fn_arith () 11748576bae58Smrg { 11749576bae58Smrg as_val=$(( $* )) 11750576bae58Smrg }' 11751bdc460c5Smrgelse $as_nop 11752576bae58Smrg as_fn_arith () 11753576bae58Smrg { 11754576bae58Smrg as_val=`expr "$@" || test $? -eq 1` 11755576bae58Smrg } 11756576bae58Smrgfi # as_fn_arith 11757576bae58Smrg 11758576bae58Smrg 11759bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 11760bf2eeab3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1176114c0a534Smrg as_expr=expr 1176214c0a534Smrgelse 1176314c0a534Smrg as_expr=false 1176414c0a534Smrgfi 1176514c0a534Smrg 11766bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1176714c0a534Smrg as_basename=basename 1176814c0a534Smrgelse 1176914c0a534Smrg as_basename=false 1177014c0a534Smrgfi 1177114c0a534Smrg 11772576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11773576bae58Smrg as_dirname=dirname 11774576bae58Smrgelse 11775576bae58Smrg as_dirname=false 11776576bae58Smrgfi 1177714c0a534Smrg 11778bf2eeab3Smrgas_me=`$as_basename -- "$0" || 1177914c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1178014c0a534Smrg X"$0" : 'X\(//\)$' \| \ 11781bf2eeab3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11782bdc460c5Smrgprintf "%s\n" X/"$0" | 11783bf2eeab3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11784bf2eeab3Smrg s//\1/ 11785bf2eeab3Smrg q 11786bf2eeab3Smrg } 11787bf2eeab3Smrg /^X\/\(\/\/\)$/{ 11788bf2eeab3Smrg s//\1/ 11789bf2eeab3Smrg q 11790bf2eeab3Smrg } 11791bf2eeab3Smrg /^X\/\(\/\).*/{ 11792bf2eeab3Smrg s//\1/ 11793bf2eeab3Smrg q 11794bf2eeab3Smrg } 11795bf2eeab3Smrg s/.*/./; q'` 1179614c0a534Smrg 11797576bae58Smrg# Avoid depending upon Character Ranges. 11798576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11799576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11800576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11801576bae58Smrgas_cr_digits='0123456789' 11802576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1180314c0a534Smrg 11804bdc460c5Smrg 11805bdc460c5Smrg# Determine whether it's possible to make 'echo' print without a newline. 11806bdc460c5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11807bdc460c5Smrg# for compatibility with existing Makefiles. 11808bf2eeab3SmrgECHO_C= ECHO_N= ECHO_T= 11809576bae58Smrgcase `echo -n x` in #((((( 11810bf2eeab3Smrg-n*) 11811576bae58Smrg case `echo 'xy\c'` in 11812bf2eeab3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11813576bae58Smrg xy) ECHO_C='\c';; 11814576bae58Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11815576bae58Smrg ECHO_T=' ';; 11816bf2eeab3Smrg esac;; 11817bf2eeab3Smrg*) 11818bf2eeab3Smrg ECHO_N='-n';; 11819bf2eeab3Smrgesac 1182014c0a534Smrg 11821bdc460c5Smrg# For backward compatibility with old third-party macros, we provide 11822bdc460c5Smrg# the shell variables $as_echo and $as_echo_n. New code should use 11823bdc460c5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11824bdc460c5Smrgas_echo='printf %s\n' 11825bdc460c5Smrgas_echo_n='printf %s' 11826bdc460c5Smrg 1182714c0a534Smrgrm -f conf$$ conf$$.exe conf$$.file 11828bf2eeab3Smrgif test -d conf$$.dir; then 11829bf2eeab3Smrg rm -f conf$$.dir/conf$$.file 11830bf2eeab3Smrgelse 11831bf2eeab3Smrg rm -f conf$$.dir 11832bf2eeab3Smrg mkdir conf$$.dir 2>/dev/null 11833bf2eeab3Smrgfi 11834bf2eeab3Smrgif (echo >conf$$.file) 2>/dev/null; then 11835bf2eeab3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1183614c0a534Smrg as_ln_s='ln -s' 11837bf2eeab3Smrg # ... but there are two gotchas: 11838bf2eeab3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11839bf2eeab3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1184024047306Smrg # In both cases, we have to default to `cp -pR'. 11841bf2eeab3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1184224047306Smrg as_ln_s='cp -pR' 11843bf2eeab3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 11844bf2eeab3Smrg as_ln_s=ln 11845bf2eeab3Smrg else 1184624047306Smrg as_ln_s='cp -pR' 1184714c0a534Smrg fi 1184814c0a534Smrgelse 1184924047306Smrg as_ln_s='cp -pR' 1185014c0a534Smrgfi 11851bf2eeab3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11852bf2eeab3Smrgrmdir conf$$.dir 2>/dev/null 1185314c0a534Smrg 11854576bae58Smrg 11855576bae58Smrg# as_fn_mkdir_p 11856576bae58Smrg# ------------- 11857576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary. 11858576bae58Smrgas_fn_mkdir_p () 11859576bae58Smrg{ 11860576bae58Smrg 11861576bae58Smrg case $as_dir in #( 11862576bae58Smrg -*) as_dir=./$as_dir;; 11863576bae58Smrg esac 11864576bae58Smrg test -d "$as_dir" || eval $as_mkdir_p || { 11865576bae58Smrg as_dirs= 11866576bae58Smrg while :; do 11867576bae58Smrg case $as_dir in #( 11868bdc460c5Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11869576bae58Smrg *) as_qdir=$as_dir;; 11870576bae58Smrg esac 11871576bae58Smrg as_dirs="'$as_qdir' $as_dirs" 11872576bae58Smrg as_dir=`$as_dirname -- "$as_dir" || 11873576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11874576bae58Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11875576bae58Smrg X"$as_dir" : 'X\(//\)$' \| \ 11876576bae58Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11877bdc460c5Smrgprintf "%s\n" X"$as_dir" | 11878576bae58Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11879576bae58Smrg s//\1/ 11880576bae58Smrg q 11881576bae58Smrg } 11882576bae58Smrg /^X\(\/\/\)[^/].*/{ 11883576bae58Smrg s//\1/ 11884576bae58Smrg q 11885576bae58Smrg } 11886576bae58Smrg /^X\(\/\/\)$/{ 11887576bae58Smrg s//\1/ 11888576bae58Smrg q 11889576bae58Smrg } 11890576bae58Smrg /^X\(\/\).*/{ 11891576bae58Smrg s//\1/ 11892576bae58Smrg q 11893576bae58Smrg } 11894576bae58Smrg s/.*/./; q'` 11895576bae58Smrg test -d "$as_dir" && break 11896576bae58Smrg done 11897576bae58Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11898576bae58Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11899576bae58Smrg 11900576bae58Smrg 11901576bae58Smrg} # as_fn_mkdir_p 1190214c0a534Smrgif mkdir -p . 2>/dev/null; then 11903576bae58Smrg as_mkdir_p='mkdir -p "$as_dir"' 1190414c0a534Smrgelse 1190514c0a534Smrg test -d ./-p && rmdir ./-p 1190614c0a534Smrg as_mkdir_p=false 1190714c0a534Smrgfi 1190814c0a534Smrg 1190924047306Smrg 1191024047306Smrg# as_fn_executable_p FILE 1191124047306Smrg# ----------------------- 1191224047306Smrg# Test if FILE is an executable regular file. 1191324047306Smrgas_fn_executable_p () 1191424047306Smrg{ 1191524047306Smrg test -f "$1" && test -x "$1" 1191624047306Smrg} # as_fn_executable_p 1191724047306Smrgas_test_x='test -x' 1191824047306Smrgas_executable_p=as_fn_executable_p 1191914c0a534Smrg 1192014c0a534Smrg# Sed expression to map a string onto a valid CPP name. 1192114c0a534Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1192214c0a534Smrg 1192314c0a534Smrg# Sed expression to map a string onto a valid variable name. 1192414c0a534Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1192514c0a534Smrg 1192614c0a534Smrg 1192714c0a534Smrgexec 6>&1 11928576bae58Smrg## ----------------------------------- ## 11929576bae58Smrg## Main body of $CONFIG_STATUS script. ## 11930576bae58Smrg## ----------------------------------- ## 11931576bae58Smrg_ASEOF 11932576bae58Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1193314c0a534Smrg 11934576bae58Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11935576bae58Smrg# Save the log message, to keep $0 and so on meaningful, and to 1193614c0a534Smrg# report actual input values of CONFIG_FILES etc. instead of their 11937bf2eeab3Smrg# values after options handling. 11938bf2eeab3Smrgac_log=" 11939bdc460c5SmrgThis file was extended by smproxy $as_me 1.0.7, which was 11940bdc460c5Smrggenerated by GNU Autoconf 2.71. Invocation command line was 1194114c0a534Smrg 1194214c0a534Smrg CONFIG_FILES = $CONFIG_FILES 1194314c0a534Smrg CONFIG_HEADERS = $CONFIG_HEADERS 1194414c0a534Smrg CONFIG_LINKS = $CONFIG_LINKS 1194514c0a534Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1194614c0a534Smrg $ $0 $@ 1194714c0a534Smrg 11948bf2eeab3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11949bf2eeab3Smrg" 11950bf2eeab3Smrg 1195114c0a534Smrg_ACEOF 1195214c0a534Smrg 11953bf2eeab3Smrgcase $ac_config_files in *" 11954bf2eeab3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11955bf2eeab3Smrgesac 1195614c0a534Smrg 11957bf2eeab3Smrgcase $ac_config_headers in *" 11958bf2eeab3Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11959bf2eeab3Smrgesac 1196014c0a534Smrg 1196114c0a534Smrg 11962bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11963bf2eeab3Smrg# Files that config.status was made for. 11964bf2eeab3Smrgconfig_files="$ac_config_files" 11965bf2eeab3Smrgconfig_headers="$ac_config_headers" 11966bf2eeab3Smrgconfig_commands="$ac_config_commands" 1196714c0a534Smrg 11968bf2eeab3Smrg_ACEOF 1196914c0a534Smrg 11970bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1197114c0a534Smrgac_cs_usage="\ 11972576bae58Smrg\`$as_me' instantiates files and other configuration actions 11973576bae58Smrgfrom templates according to the current configuration. Unless the files 11974576bae58Smrgand actions are specified as TAGs, all are instantiated by default. 1197514c0a534Smrg 11976576bae58SmrgUsage: $0 [OPTION]... [TAG]... 1197714c0a534Smrg 1197814c0a534Smrg -h, --help print this help, then exit 11979bf2eeab3Smrg -V, --version print version number and configuration settings, then exit 11980576bae58Smrg --config print configuration, then exit 11981bf2eeab3Smrg -q, --quiet, --silent 11982bf2eeab3Smrg do not print progress messages 1198314c0a534Smrg -d, --debug don't remove temporary files 1198414c0a534Smrg --recheck update $as_me by reconfiguring in the same conditions 11985bf2eeab3Smrg --file=FILE[:TEMPLATE] 11986bf2eeab3Smrg instantiate the configuration file FILE 11987bf2eeab3Smrg --header=FILE[:TEMPLATE] 11988bf2eeab3Smrg instantiate the configuration header FILE 1198914c0a534Smrg 1199014c0a534SmrgConfiguration files: 1199114c0a534Smrg$config_files 1199214c0a534Smrg 1199314c0a534SmrgConfiguration headers: 1199414c0a534Smrg$config_headers 1199514c0a534Smrg 1199614c0a534SmrgConfiguration commands: 1199714c0a534Smrg$config_commands 1199814c0a534Smrg 11999bdc460c5SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/issues>." 1200014c0a534Smrg 12001bf2eeab3Smrg_ACEOF 12002bdc460c5Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12003bdc460c5Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12004bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12005bdc460c5Smrgac_cs_config='$ac_cs_config_escaped' 1200614c0a534Smrgac_cs_version="\\ 12007bdc460c5Smrgsmproxy config.status 1.0.7 12008bdc460c5Smrgconfigured by $0, generated by GNU Autoconf 2.71, 12009576bae58Smrg with options \\"\$ac_cs_config\\" 1201014c0a534Smrg 12011bdc460c5SmrgCopyright (C) 2021 Free Software Foundation, Inc. 1201214c0a534SmrgThis config.status script is free software; the Free Software Foundation 1201314c0a534Smrggives unlimited permission to copy, distribute and modify it." 12014bf2eeab3Smrg 12015bf2eeab3Smrgac_pwd='$ac_pwd' 12016bf2eeab3Smrgsrcdir='$srcdir' 12017bf2eeab3SmrgINSTALL='$INSTALL' 12018bf2eeab3SmrgMKDIR_P='$MKDIR_P' 12019bf2eeab3SmrgAWK='$AWK' 12020bf2eeab3Smrgtest -n "\$AWK" || AWK=awk 1202114c0a534Smrg_ACEOF 1202214c0a534Smrg 12023bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12024bf2eeab3Smrg# The default lists apply if the user does not specify any file. 1202514c0a534Smrgac_need_defaults=: 1202614c0a534Smrgwhile test $# != 0 1202714c0a534Smrgdo 1202814c0a534Smrg case $1 in 12029576bae58Smrg --*=?*) 12030bf2eeab3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12031bf2eeab3Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1203214c0a534Smrg ac_shift=: 1203314c0a534Smrg ;; 12034576bae58Smrg --*=) 12035576bae58Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12036576bae58Smrg ac_optarg= 12037576bae58Smrg ac_shift=: 12038576bae58Smrg ;; 12039bf2eeab3Smrg *) 1204014c0a534Smrg ac_option=$1 1204114c0a534Smrg ac_optarg=$2 1204214c0a534Smrg ac_shift=shift 1204314c0a534Smrg ;; 1204414c0a534Smrg esac 1204514c0a534Smrg 1204614c0a534Smrg case $ac_option in 1204714c0a534Smrg # Handling of the options. 1204814c0a534Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1204914c0a534Smrg ac_cs_recheck=: ;; 12050bf2eeab3Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12051bdc460c5Smrg printf "%s\n" "$ac_cs_version"; exit ;; 12052576bae58Smrg --config | --confi | --conf | --con | --co | --c ) 12053bdc460c5Smrg printf "%s\n" "$ac_cs_config"; exit ;; 12054bf2eeab3Smrg --debug | --debu | --deb | --de | --d | -d ) 1205514c0a534Smrg debug=: ;; 1205614c0a534Smrg --file | --fil | --fi | --f ) 1205714c0a534Smrg $ac_shift 12058bf2eeab3Smrg case $ac_optarg in 12059bdc460c5Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12060576bae58Smrg '') as_fn_error $? "missing file argument" ;; 12061bf2eeab3Smrg esac 12062576bae58Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1206314c0a534Smrg ac_need_defaults=false;; 1206414c0a534Smrg --header | --heade | --head | --hea ) 1206514c0a534Smrg $ac_shift 12066bf2eeab3Smrg case $ac_optarg in 12067bdc460c5Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12068bf2eeab3Smrg esac 12069576bae58Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 1207014c0a534Smrg ac_need_defaults=false;; 12071bf2eeab3Smrg --he | --h) 12072bf2eeab3Smrg # Conflict between --help and --header 12073576bae58Smrg as_fn_error $? "ambiguous option: \`$1' 12074576bae58SmrgTry \`$0 --help' for more information.";; 12075bf2eeab3Smrg --help | --hel | -h ) 12076bdc460c5Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 1207714c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1207814c0a534Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1207914c0a534Smrg ac_cs_silent=: ;; 1208014c0a534Smrg 1208114c0a534Smrg # This is an error. 12082576bae58Smrg -*) as_fn_error $? "unrecognized option: \`$1' 12083576bae58SmrgTry \`$0 --help' for more information." ;; 1208414c0a534Smrg 12085576bae58Smrg *) as_fn_append ac_config_targets " $1" 12086bf2eeab3Smrg ac_need_defaults=false ;; 1208714c0a534Smrg 1208814c0a534Smrg esac 1208914c0a534Smrg shift 1209014c0a534Smrgdone 1209114c0a534Smrg 1209214c0a534Smrgac_configure_extra_args= 1209314c0a534Smrg 1209414c0a534Smrgif $ac_cs_silent; then 1209514c0a534Smrg exec 6>/dev/null 1209614c0a534Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1209714c0a534Smrgfi 1209814c0a534Smrg 1209914c0a534Smrg_ACEOF 12100bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1210114c0a534Smrgif \$ac_cs_recheck; then 1210224047306Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12103bf2eeab3Smrg shift 12104bdc460c5Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12105bf2eeab3Smrg CONFIG_SHELL='$SHELL' 12106bf2eeab3Smrg export CONFIG_SHELL 12107bf2eeab3Smrg exec "\$@" 1210814c0a534Smrgfi 1210914c0a534Smrg 1211014c0a534Smrg_ACEOF 12111bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12112bf2eeab3Smrgexec 5>>config.log 12113bf2eeab3Smrg{ 12114bf2eeab3Smrg echo 12115bf2eeab3Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12116bf2eeab3Smrg## Running $as_me. ## 12117bf2eeab3Smrg_ASBOX 12118bdc460c5Smrg printf "%s\n" "$ac_log" 12119bf2eeab3Smrg} >&5 1212014c0a534Smrg 12121bf2eeab3Smrg_ACEOF 12122bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1212314c0a534Smrg# 12124bf2eeab3Smrg# INIT-COMMANDS 1212514c0a534Smrg# 12126bdc460c5SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1212714c0a534Smrg 1212814c0a534Smrg_ACEOF 1212914c0a534Smrg 12130bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1213114c0a534Smrg 12132bf2eeab3Smrg# Handling of arguments. 1213314c0a534Smrgfor ac_config_target in $ac_config_targets 1213414c0a534Smrgdo 12135bf2eeab3Smrg case $ac_config_target in 12136bf2eeab3Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12137bf2eeab3Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12138bf2eeab3Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 121391a054510Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12140bf2eeab3Smrg 12141576bae58Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1214214c0a534Smrg esac 1214314c0a534Smrgdone 1214414c0a534Smrg 12145bf2eeab3Smrg 1214614c0a534Smrg# If the user did not use the arguments to specify the items to instantiate, 1214714c0a534Smrg# then the envvar interface is used. Set only those that are not. 1214814c0a534Smrg# We use the long form for the default assignment because of an extremely 1214914c0a534Smrg# bizarre bug on SunOS 4.1.3. 1215014c0a534Smrgif $ac_need_defaults; then 12151bdc460c5Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12152bdc460c5Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12153bdc460c5Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 1215414c0a534Smrgfi 1215514c0a534Smrg 1215614c0a534Smrg# Have a temporary directory for convenience. Make it in the build tree 12157bf2eeab3Smrg# simply because there is no reason against having it here, and in addition, 1215814c0a534Smrg# creating and moving files from /tmp can sometimes cause problems. 12159bf2eeab3Smrg# Hook for its removal unless debugging. 12160bf2eeab3Smrg# Note that there is a small window in which the directory will not be cleaned: 12161bf2eeab3Smrg# after its creation but before its name has been assigned to `$tmp'. 1216214c0a534Smrg$debug || 1216314c0a534Smrg{ 12164576bae58Smrg tmp= ac_tmp= 12165bf2eeab3Smrg trap 'exit_status=$? 12166576bae58Smrg : "${ac_tmp:=$tmp}" 12167576bae58Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12168bf2eeab3Smrg' 0 12169576bae58Smrg trap 'as_fn_exit 1' 1 2 13 15 1217014c0a534Smrg} 1217114c0a534Smrg# Create a (secure) tmp directory for tmp files. 1217214c0a534Smrg 1217314c0a534Smrg{ 12174bf2eeab3Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12175576bae58Smrg test -d "$tmp" 1217614c0a534Smrg} || 1217714c0a534Smrg{ 12178bf2eeab3Smrg tmp=./conf$$-$RANDOM 12179bf2eeab3Smrg (umask 077 && mkdir "$tmp") 12180576bae58Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12181576bae58Smrgac_tmp=$tmp 1218214c0a534Smrg 12183bf2eeab3Smrg# Set up the scripts for CONFIG_FILES section. 12184bf2eeab3Smrg# No need to generate them if there are no CONFIG_FILES. 12185bf2eeab3Smrg# This happens for instance with `./config.status config.h'. 12186bf2eeab3Smrgif test -n "$CONFIG_FILES"; then 12187bf2eeab3Smrg 12188bf2eeab3Smrg 12189576bae58Smrgac_cr=`echo X | tr X '\015'` 12190576bae58Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 12191576bae58Smrg# But we know of no other shell where ac_cr would be empty at this 12192576bae58Smrg# point, so we can use a bashism as a fallback. 12193576bae58Smrgif test "x$ac_cr" = x; then 12194576bae58Smrg eval ac_cr=\$\'\\r\' 12195576bae58Smrgfi 12196bf2eeab3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12197bf2eeab3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12198bf2eeab3Smrg ac_cs_awk_cr='\\r' 12199bf2eeab3Smrgelse 12200bf2eeab3Smrg ac_cs_awk_cr=$ac_cr 12201bf2eeab3Smrgfi 12202bf2eeab3Smrg 12203576bae58Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1220414c0a534Smrg_ACEOF 1220514c0a534Smrg 1220614c0a534Smrg 12207bf2eeab3Smrg{ 12208bf2eeab3Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 12209bf2eeab3Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12210bf2eeab3Smrg echo "_ACEOF" 12211bf2eeab3Smrg} >conf$$subs.sh || 12212576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12213576bae58Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12214bf2eeab3Smrgac_delim='%!_!# ' 12215bf2eeab3Smrgfor ac_last_try in false false false false false :; do 12216bf2eeab3Smrg . ./conf$$subs.sh || 12217576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1221814c0a534Smrg 12219bf2eeab3Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12220bf2eeab3Smrg if test $ac_delim_n = $ac_delim_num; then 12221bf2eeab3Smrg break 12222bf2eeab3Smrg elif $ac_last_try; then 12223576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12224bf2eeab3Smrg else 12225bf2eeab3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12226bf2eeab3Smrg fi 12227bf2eeab3Smrgdone 12228bf2eeab3Smrgrm -f conf$$subs.sh 1222914c0a534Smrg 12230bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12231576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1223214c0a534Smrg_ACEOF 12233bf2eeab3Smrgsed -n ' 12234bf2eeab3Smrgh 12235bf2eeab3Smrgs/^/S["/; s/!.*/"]=/ 12236bf2eeab3Smrgp 12237bf2eeab3Smrgg 12238bf2eeab3Smrgs/^[^!]*!// 12239bf2eeab3Smrg:repl 12240bf2eeab3Smrgt repl 12241bf2eeab3Smrgs/'"$ac_delim"'$// 12242bf2eeab3Smrgt delim 12243bf2eeab3Smrg:nl 12244bf2eeab3Smrgh 12245576bae58Smrgs/\(.\{148\}\)..*/\1/ 12246bf2eeab3Smrgt more1 12247bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12248bf2eeab3Smrgp 12249bf2eeab3Smrgn 12250bf2eeab3Smrgb repl 12251bf2eeab3Smrg:more1 12252bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12253bf2eeab3Smrgp 12254bf2eeab3Smrgg 12255bf2eeab3Smrgs/.\{148\}// 12256bf2eeab3Smrgt nl 12257bf2eeab3Smrg:delim 12258bf2eeab3Smrgh 12259576bae58Smrgs/\(.\{148\}\)..*/\1/ 12260bf2eeab3Smrgt more2 12261bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12262bf2eeab3Smrgp 12263bf2eeab3Smrgb 12264bf2eeab3Smrg:more2 12265bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12266bf2eeab3Smrgp 12267bf2eeab3Smrgg 12268bf2eeab3Smrgs/.\{148\}// 12269bf2eeab3Smrgt delim 12270bf2eeab3Smrg' <conf$$subs.awk | sed ' 12271bf2eeab3Smrg/^[^""]/{ 12272bf2eeab3Smrg N 12273bf2eeab3Smrg s/\n// 12274bf2eeab3Smrg} 12275bf2eeab3Smrg' >>$CONFIG_STATUS || ac_write_fail=1 12276bf2eeab3Smrgrm -f conf$$subs.awk 12277bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12278bf2eeab3Smrg_ACAWK 12279576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12280bf2eeab3Smrg for (key in S) S_is_set[key] = 1 12281bf2eeab3Smrg FS = "" 1228214c0a534Smrg 12283bf2eeab3Smrg} 12284bf2eeab3Smrg{ 12285bf2eeab3Smrg line = $ 0 12286bf2eeab3Smrg nfields = split(line, field, "@") 12287bf2eeab3Smrg substed = 0 12288bf2eeab3Smrg len = length(field[1]) 12289bf2eeab3Smrg for (i = 2; i < nfields; i++) { 12290bf2eeab3Smrg key = field[i] 12291bf2eeab3Smrg keylen = length(key) 12292bf2eeab3Smrg if (S_is_set[key]) { 12293bf2eeab3Smrg value = S[key] 12294bf2eeab3Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12295bf2eeab3Smrg len += length(value) + length(field[++i]) 12296bf2eeab3Smrg substed = 1 12297bf2eeab3Smrg } else 12298bf2eeab3Smrg len += 1 + keylen 12299bf2eeab3Smrg } 12300bf2eeab3Smrg 12301bf2eeab3Smrg print line 12302bf2eeab3Smrg} 12303bf2eeab3Smrg 12304bf2eeab3Smrg_ACAWK 12305bf2eeab3Smrg_ACEOF 12306bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12307bf2eeab3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12308bf2eeab3Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12309bf2eeab3Smrgelse 12310bf2eeab3Smrg cat 12311576bae58Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12312576bae58Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12313bf2eeab3Smrg_ACEOF 12314bf2eeab3Smrg 12315576bae58Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12316576bae58Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12317bf2eeab3Smrg# trailing colons and then remove the whole line if VPATH becomes empty 12318bf2eeab3Smrg# (actually we leave an empty line to preserve line numbers). 12319bf2eeab3Smrgif test "x$srcdir" = x.; then 12320576bae58Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12321576bae58Smrgh 12322576bae58Smrgs/// 12323576bae58Smrgs/^/:/ 12324576bae58Smrgs/[ ]*$/:/ 12325576bae58Smrgs/:\$(srcdir):/:/g 12326576bae58Smrgs/:\${srcdir}:/:/g 12327576bae58Smrgs/:@srcdir@:/:/g 12328576bae58Smrgs/^:*// 12329bf2eeab3Smrgs/:*$// 12330576bae58Smrgx 12331576bae58Smrgs/\(=[ ]*\).*/\1/ 12332576bae58SmrgG 12333576bae58Smrgs/\n// 12334bf2eeab3Smrgs/^[^=]*=[ ]*$// 12335bf2eeab3Smrg}' 12336bf2eeab3Smrgfi 12337bf2eeab3Smrg 12338bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1233914c0a534Smrgfi # test -n "$CONFIG_FILES" 1234014c0a534Smrg 12341bf2eeab3Smrg# Set up the scripts for CONFIG_HEADERS section. 12342bf2eeab3Smrg# No need to generate them if there are no CONFIG_HEADERS. 12343bf2eeab3Smrg# This happens for instance with `./config.status Makefile'. 12344bf2eeab3Smrgif test -n "$CONFIG_HEADERS"; then 12345576bae58Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 12346bf2eeab3SmrgBEGIN { 1234714c0a534Smrg_ACEOF 12348bf2eeab3Smrg 12349bf2eeab3Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 12350bf2eeab3Smrg# here-document in config.status, that substitutes the proper values into 12351bf2eeab3Smrg# config.h.in to produce config.h. 12352bf2eeab3Smrg 12353bf2eeab3Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 12354bf2eeab3Smrg# handling of long lines. 12355bf2eeab3Smrgac_delim='%!_!# ' 12356bf2eeab3Smrgfor ac_last_try in false false :; do 12357576bae58Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12358576bae58Smrg if test -z "$ac_tt"; then 12359bf2eeab3Smrg break 12360bf2eeab3Smrg elif $ac_last_try; then 12361576bae58Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12362bf2eeab3Smrg else 12363bf2eeab3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12364bf2eeab3Smrg fi 12365bf2eeab3Smrgdone 12366bf2eeab3Smrg 12367bf2eeab3Smrg# For the awk script, D is an array of macro values keyed by name, 12368bf2eeab3Smrg# likewise P contains macro parameters if any. Preserve backslash 12369bf2eeab3Smrg# newline sequences. 12370bf2eeab3Smrg 12371bf2eeab3Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12372bf2eeab3Smrgsed -n ' 12373bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g 12374bf2eeab3Smrgt rset 12375bf2eeab3Smrg:rset 12376bf2eeab3Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 12377bf2eeab3Smrgt def 12378bf2eeab3Smrgd 12379bf2eeab3Smrg:def 12380bf2eeab3Smrgs/\\$// 12381bf2eeab3Smrgt bsnl 12382bf2eeab3Smrgs/["\\]/\\&/g 12383bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12384bf2eeab3SmrgD["\1"]=" \3"/p 12385bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12386bf2eeab3Smrgd 12387bf2eeab3Smrg:bsnl 12388bf2eeab3Smrgs/["\\]/\\&/g 12389bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12390bf2eeab3SmrgD["\1"]=" \3\\\\\\n"\\/p 12391bf2eeab3Smrgt cont 12392bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12393bf2eeab3Smrgt cont 12394bf2eeab3Smrgd 12395bf2eeab3Smrg:cont 12396bf2eeab3Smrgn 12397bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g 12398bf2eeab3Smrgt clear 12399bf2eeab3Smrg:clear 12400bf2eeab3Smrgs/\\$// 12401bf2eeab3Smrgt bsnlc 12402bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 12403bf2eeab3Smrgd 12404bf2eeab3Smrg:bsnlc 12405bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12406bf2eeab3Smrgb cont 12407bf2eeab3Smrg' <confdefs.h | sed ' 12408bf2eeab3Smrgs/'"$ac_delim"'/"\\\ 12409bf2eeab3Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 12410bf2eeab3Smrg 12411bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12412bf2eeab3Smrg for (key in D) D_is_set[key] = 1 12413bf2eeab3Smrg FS = "" 12414bf2eeab3Smrg} 12415bf2eeab3Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12416bf2eeab3Smrg line = \$ 0 12417bf2eeab3Smrg split(line, arg, " ") 12418bf2eeab3Smrg if (arg[1] == "#") { 12419bf2eeab3Smrg defundef = arg[2] 12420bf2eeab3Smrg mac1 = arg[3] 12421bf2eeab3Smrg } else { 12422bf2eeab3Smrg defundef = substr(arg[1], 2) 12423bf2eeab3Smrg mac1 = arg[2] 12424bf2eeab3Smrg } 12425bf2eeab3Smrg split(mac1, mac2, "(") #) 12426bf2eeab3Smrg macro = mac2[1] 12427bf2eeab3Smrg prefix = substr(line, 1, index(line, defundef) - 1) 12428bf2eeab3Smrg if (D_is_set[macro]) { 12429bf2eeab3Smrg # Preserve the white space surrounding the "#". 12430bf2eeab3Smrg print prefix "define", macro P[macro] D[macro] 12431bf2eeab3Smrg next 12432bf2eeab3Smrg } else { 12433bf2eeab3Smrg # Replace #undef with comments. This is necessary, for example, 12434bf2eeab3Smrg # in the case of _POSIX_SOURCE, which is predefined and required 12435bf2eeab3Smrg # on some systems where configure will not decide to define it. 12436bf2eeab3Smrg if (defundef == "undef") { 12437bf2eeab3Smrg print "/*", prefix defundef, macro, "*/" 12438bf2eeab3Smrg next 12439bf2eeab3Smrg } 12440bf2eeab3Smrg } 12441bf2eeab3Smrg} 12442bf2eeab3Smrg{ print } 12443bf2eeab3Smrg_ACAWK 12444bf2eeab3Smrg_ACEOF 12445bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446576bae58Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12447bf2eeab3Smrgfi # test -n "$CONFIG_HEADERS" 12448bf2eeab3Smrg 12449bf2eeab3Smrg 12450bf2eeab3Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12451bf2eeab3Smrgshift 12452bf2eeab3Smrgfor ac_tag 12453bf2eeab3Smrgdo 12454bf2eeab3Smrg case $ac_tag in 12455bf2eeab3Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 12456bf2eeab3Smrg esac 12457bf2eeab3Smrg case $ac_mode$ac_tag in 12458bf2eeab3Smrg :[FHL]*:*);; 12459576bae58Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12460bf2eeab3Smrg :[FH]-) ac_tag=-:-;; 12461bf2eeab3Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12462bf2eeab3Smrg esac 12463bf2eeab3Smrg ac_save_IFS=$IFS 12464bf2eeab3Smrg IFS=: 12465bf2eeab3Smrg set x $ac_tag 12466bf2eeab3Smrg IFS=$ac_save_IFS 12467bf2eeab3Smrg shift 12468bf2eeab3Smrg ac_file=$1 12469bf2eeab3Smrg shift 12470bf2eeab3Smrg 12471bf2eeab3Smrg case $ac_mode in 12472bf2eeab3Smrg :L) ac_source=$1;; 12473bf2eeab3Smrg :[FH]) 12474bf2eeab3Smrg ac_file_inputs= 12475bf2eeab3Smrg for ac_f 12476bf2eeab3Smrg do 12477bf2eeab3Smrg case $ac_f in 12478576bae58Smrg -) ac_f="$ac_tmp/stdin";; 12479bf2eeab3Smrg *) # Look for the file first in the build tree, then in the source tree 12480bf2eeab3Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12481bf2eeab3Smrg # because $ac_f cannot contain `:'. 12482bf2eeab3Smrg test -f "$ac_f" || 12483bf2eeab3Smrg case $ac_f in 12484bf2eeab3Smrg [\\/$]*) false;; 12485bf2eeab3Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12486bf2eeab3Smrg esac || 12487576bae58Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12488bf2eeab3Smrg esac 12489bdc460c5Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12490576bae58Smrg as_fn_append ac_file_inputs " '$ac_f'" 12491bf2eeab3Smrg done 12492bf2eeab3Smrg 12493bf2eeab3Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12494bf2eeab3Smrg # use $as_me), people would be surprised to read: 12495bf2eeab3Smrg # /* config.h. Generated by config.status. */ 12496bf2eeab3Smrg configure_input='Generated from '` 12497bdc460c5Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12498bf2eeab3Smrg `' by configure.' 12499bf2eeab3Smrg if test x"$ac_file" != x-; then 12500bf2eeab3Smrg configure_input="$ac_file. $configure_input" 12501bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12502bdc460c5Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 12503bf2eeab3Smrg fi 12504bf2eeab3Smrg # Neutralize special characters interpreted by sed in replacement strings. 12505bf2eeab3Smrg case $configure_input in #( 12506bf2eeab3Smrg *\&* | *\|* | *\\* ) 12507bdc460c5Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12508bf2eeab3Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12509bf2eeab3Smrg *) ac_sed_conf_input=$configure_input;; 12510bf2eeab3Smrg esac 12511bf2eeab3Smrg 12512bf2eeab3Smrg case $ac_tag in 12513576bae58Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12514576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12515bf2eeab3Smrg esac 12516bf2eeab3Smrg ;; 1251714c0a534Smrg esac 1251814c0a534Smrg 12519bf2eeab3Smrg ac_dir=`$as_dirname -- "$ac_file" || 1252014c0a534Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1252114c0a534Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1252214c0a534Smrg X"$ac_file" : 'X\(//\)$' \| \ 12523bf2eeab3Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12524bdc460c5Smrgprintf "%s\n" X"$ac_file" | 12525bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12526bf2eeab3Smrg s//\1/ 12527bf2eeab3Smrg q 12528bf2eeab3Smrg } 12529bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 12530bf2eeab3Smrg s//\1/ 12531bf2eeab3Smrg q 12532bf2eeab3Smrg } 12533bf2eeab3Smrg /^X\(\/\/\)$/{ 12534bf2eeab3Smrg s//\1/ 12535bf2eeab3Smrg q 12536bf2eeab3Smrg } 12537bf2eeab3Smrg /^X\(\/\).*/{ 12538bf2eeab3Smrg s//\1/ 12539bf2eeab3Smrg q 12540bf2eeab3Smrg } 12541bf2eeab3Smrg s/.*/./; q'` 12542576bae58Smrg as_dir="$ac_dir"; as_fn_mkdir_p 1254314c0a534Smrg ac_builddir=. 1254414c0a534Smrg 12545bf2eeab3Smrgcase "$ac_dir" in 12546bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12547bf2eeab3Smrg*) 12548bdc460c5Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12549bf2eeab3Smrg # A ".." for each directory in $ac_dir_suffix. 12550bdc460c5Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12551bf2eeab3Smrg case $ac_top_builddir_sub in 12552bf2eeab3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12553bf2eeab3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12554bf2eeab3Smrg esac ;; 12555bf2eeab3Smrgesac 12556bf2eeab3Smrgac_abs_top_builddir=$ac_pwd 12557bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12558bf2eeab3Smrg# for backward compatibility: 12559bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix 1256014c0a534Smrg 1256114c0a534Smrgcase $srcdir in 12562bf2eeab3Smrg .) # We are building in place. 1256314c0a534Smrg ac_srcdir=. 12564bf2eeab3Smrg ac_top_srcdir=$ac_top_builddir_sub 12565bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd ;; 12566bf2eeab3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1256714c0a534Smrg ac_srcdir=$srcdir$ac_dir_suffix; 12568bf2eeab3Smrg ac_top_srcdir=$srcdir 12569bf2eeab3Smrg ac_abs_top_srcdir=$srcdir ;; 12570bf2eeab3Smrg *) # Relative name. 12571bf2eeab3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12572bf2eeab3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12573bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1257414c0a534Smrgesac 12575bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1257614c0a534Smrg 1257714c0a534Smrg 12578bf2eeab3Smrg case $ac_mode in 12579bf2eeab3Smrg :F) 12580bf2eeab3Smrg # 12581bf2eeab3Smrg # CONFIG_FILE 12582bf2eeab3Smrg # 1258314c0a534Smrg 1258414c0a534Smrg case $INSTALL in 1258514c0a534Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12586bf2eeab3Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1258714c0a534Smrg esac 12588bf2eeab3Smrg ac_MKDIR_P=$MKDIR_P 12589bf2eeab3Smrg case $MKDIR_P in 12590bf2eeab3Smrg [\\/$]* | ?:[\\/]* ) ;; 12591bf2eeab3Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12592bf2eeab3Smrg esac 12593bf2eeab3Smrg_ACEOF 1259414c0a534Smrg 12595bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12596bf2eeab3Smrg# If the template does not know about datarootdir, expand it. 12597bf2eeab3Smrg# FIXME: This hack should be removed a few years after 2.60. 12598bf2eeab3Smrgac_datarootdir_hack=; ac_datarootdir_seen= 12599bf2eeab3Smrgac_sed_dataroot=' 12600bf2eeab3Smrg/datarootdir/ { 12601bf2eeab3Smrg p 12602bf2eeab3Smrg q 12603bf2eeab3Smrg} 12604bf2eeab3Smrg/@datadir@/p 12605bf2eeab3Smrg/@docdir@/p 12606bf2eeab3Smrg/@infodir@/p 12607bf2eeab3Smrg/@localedir@/p 12608576bae58Smrg/@mandir@/p' 12609bf2eeab3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12610bf2eeab3Smrg*datarootdir*) ac_datarootdir_seen=yes;; 12611bf2eeab3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12612bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12613bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12614bf2eeab3Smrg_ACEOF 12615bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12616bf2eeab3Smrg ac_datarootdir_hack=' 12617bf2eeab3Smrg s&@datadir@&$datadir&g 12618bf2eeab3Smrg s&@docdir@&$docdir&g 12619bf2eeab3Smrg s&@infodir@&$infodir&g 12620bf2eeab3Smrg s&@localedir@&$localedir&g 12621bf2eeab3Smrg s&@mandir@&$mandir&g 12622576bae58Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 12623bf2eeab3Smrgesac 1262414c0a534Smrg_ACEOF 12625bf2eeab3Smrg 12626bf2eeab3Smrg# Neutralize VPATH when `$srcdir' = `.'. 12627bf2eeab3Smrg# Shell code in configure.ac might set extrasub. 12628bf2eeab3Smrg# FIXME: do we really want to maintain this feature? 12629bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12630bf2eeab3Smrgac_sed_extra="$ac_vpsub 1263114c0a534Smrg$extrasub 1263214c0a534Smrg_ACEOF 12633bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1263414c0a534Smrg:t 1263514c0a534Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12636bf2eeab3Smrgs|@configure_input@|$ac_sed_conf_input|;t t 12637bf2eeab3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12638bf2eeab3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12639bf2eeab3Smrgs&@srcdir@&$ac_srcdir&;t t 12640bf2eeab3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12641bf2eeab3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 12642bf2eeab3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12643bf2eeab3Smrgs&@builddir@&$ac_builddir&;t t 12644bf2eeab3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 12645bf2eeab3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12646bf2eeab3Smrgs&@INSTALL@&$ac_INSTALL&;t t 12647bf2eeab3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12648bf2eeab3Smrg$ac_datarootdir_hack 12649bf2eeab3Smrg" 12650576bae58Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12651576bae58Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1265214c0a534Smrg 12653bf2eeab3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12654576bae58Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12655576bae58Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12656576bae58Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12657bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12658576bae58Smrgwhich seems to be undefined. Please make sure it is defined" >&5 12659bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12660576bae58Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1266114c0a534Smrg 12662576bae58Smrg rm -f "$ac_tmp/stdin" 1266314c0a534Smrg case $ac_file in 12664576bae58Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12665576bae58Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12666bf2eeab3Smrg esac \ 12667576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12668bf2eeab3Smrg ;; 12669bf2eeab3Smrg :H) 12670bf2eeab3Smrg # 12671bf2eeab3Smrg # CONFIG_HEADER 12672bf2eeab3Smrg # 1267314c0a534Smrg if test x"$ac_file" != x-; then 12674bf2eeab3Smrg { 12675bdc460c5Smrg printf "%s\n" "/* $configure_input */" >&1 \ 12676576bae58Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12677576bae58Smrg } >"$ac_tmp/config.h" \ 12678576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12679576bae58Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12680bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12681bdc460c5Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 1268214c0a534Smrg else 12683bf2eeab3Smrg rm -f "$ac_file" 12684576bae58Smrg mv "$ac_tmp/config.h" "$ac_file" \ 12685576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1268614c0a534Smrg fi 1268714c0a534Smrg else 12688bdc460c5Smrg printf "%s\n" "/* $configure_input */" >&1 \ 12689576bae58Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12690576bae58Smrg || as_fn_error $? "could not create -" "$LINENO" 5 1269114c0a534Smrg fi 12692bf2eeab3Smrg# Compute "$ac_file"'s index in $config_headers. 12693bf2eeab3Smrg_am_arg="$ac_file" 1269414c0a534Smrg_am_stamp_count=1 1269514c0a534Smrgfor _am_header in $config_headers :; do 1269614c0a534Smrg case $_am_header in 12697bf2eeab3Smrg $_am_arg | $_am_arg:* ) 1269814c0a534Smrg break ;; 1269914c0a534Smrg * ) 1270014c0a534Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1270114c0a534Smrg esac 1270214c0a534Smrgdone 12703bf2eeab3Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12704bf2eeab3Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12705bf2eeab3Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12706bf2eeab3Smrg X"$_am_arg" : 'X\(//\)$' \| \ 12707bf2eeab3Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12708bdc460c5Smrgprintf "%s\n" X"$_am_arg" | 12709bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12710bf2eeab3Smrg s//\1/ 12711bf2eeab3Smrg q 12712bf2eeab3Smrg } 12713bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 12714bf2eeab3Smrg s//\1/ 12715bf2eeab3Smrg q 12716bf2eeab3Smrg } 12717bf2eeab3Smrg /^X\(\/\/\)$/{ 12718bf2eeab3Smrg s//\1/ 12719bf2eeab3Smrg q 12720bf2eeab3Smrg } 12721bf2eeab3Smrg /^X\(\/\).*/{ 12722bf2eeab3Smrg s//\1/ 12723bf2eeab3Smrg q 12724bf2eeab3Smrg } 12725bf2eeab3Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 12726bf2eeab3Smrg ;; 1272714c0a534Smrg 12728bdc460c5Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12729bdc460c5Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12730bf2eeab3Smrg ;; 12731bf2eeab3Smrg esac 1273214c0a534Smrg 1273314c0a534Smrg 12734bf2eeab3Smrg case $ac_file$ac_mode in 12735bf2eeab3Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1273624047306Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12737bf2eeab3Smrg # are listed without --file. Let's play safe and only enable the eval 12738bf2eeab3Smrg # if we detect the quoting. 12739bdc460c5Smrg # TODO: see whether this extra hack can be removed once we start 12740bdc460c5Smrg # requiring Autoconf 2.70 or later. 12741bdc460c5Smrg case $CONFIG_FILES in #( 12742bdc460c5Smrg *\'*) : 12743bdc460c5Smrg eval set x "$CONFIG_FILES" ;; #( 12744bdc460c5Smrg *) : 12745bdc460c5Smrg set x $CONFIG_FILES ;; #( 12746bdc460c5Smrg *) : 12747bdc460c5Smrg ;; 12748bdc460c5Smrgesac 12749bf2eeab3Smrg shift 12750bdc460c5Smrg # Used to flag and report bootstrapping failures. 12751bdc460c5Smrg am_rc=0 12752bdc460c5Smrg for am_mf 12753bf2eeab3Smrg do 12754bf2eeab3Smrg # Strip MF so we end up with the name of the file. 12755bdc460c5Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12756bdc460c5Smrg # Check whether this is an Automake generated Makefile which includes 12757bdc460c5Smrg # dependency-tracking related rules and includes. 12758bdc460c5Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 12759bf2eeab3Smrg # limit of 2048, but all sed's we know have understand at least 4000. 12760bdc460c5Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12761bdc460c5Smrg || continue 12762bdc460c5Smrg am_dirpart=`$as_dirname -- "$am_mf" || 12763bdc460c5Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12764bdc460c5Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 12765bdc460c5Smrg X"$am_mf" : 'X\(//\)$' \| \ 12766bdc460c5Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12767bdc460c5Smrgprintf "%s\n" X"$am_mf" | 12768bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12769bf2eeab3Smrg s//\1/ 12770bf2eeab3Smrg q 12771bf2eeab3Smrg } 12772bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 12773bf2eeab3Smrg s//\1/ 12774bf2eeab3Smrg q 12775bf2eeab3Smrg } 12776bf2eeab3Smrg /^X\(\/\/\)$/{ 12777bf2eeab3Smrg s//\1/ 12778bf2eeab3Smrg q 12779bf2eeab3Smrg } 12780bf2eeab3Smrg /^X\(\/\).*/{ 12781bf2eeab3Smrg s//\1/ 12782bf2eeab3Smrg q 12783bf2eeab3Smrg } 12784bf2eeab3Smrg s/.*/./; q'` 12785bdc460c5Smrg am_filepart=`$as_basename -- "$am_mf" || 12786bdc460c5Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12787bdc460c5Smrg X"$am_mf" : 'X\(//\)$' \| \ 12788bdc460c5Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12789bdc460c5Smrgprintf "%s\n" X/"$am_mf" | 12790bdc460c5Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12791bf2eeab3Smrg s//\1/ 12792bf2eeab3Smrg q 12793bf2eeab3Smrg } 12794bdc460c5Smrg /^X\/\(\/\/\)$/{ 12795bf2eeab3Smrg s//\1/ 12796bf2eeab3Smrg q 12797bf2eeab3Smrg } 12798bdc460c5Smrg /^X\/\(\/\).*/{ 12799bf2eeab3Smrg s//\1/ 12800bf2eeab3Smrg q 12801bf2eeab3Smrg } 12802bf2eeab3Smrg s/.*/./; q'` 12803bdc460c5Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12804bdc460c5Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12805bdc460c5Smrg | $MAKE -f - am--depfiles" >&5 12806bdc460c5Smrg (cd "$am_dirpart" \ 12807bdc460c5Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12808bdc460c5Smrg | $MAKE -f - am--depfiles) >&5 2>&5 12809bdc460c5Smrg ac_status=$? 12810bdc460c5Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811bdc460c5Smrg (exit $ac_status); } || am_rc=$? 1281214c0a534Smrg done 12813bdc460c5Smrg if test $am_rc -ne 0; then 12814bdc460c5Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12815bdc460c5Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12816bdc460c5Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 12817bdc460c5Smrg for automatic dependency tracking. If GNU make was not used, consider 12818bdc460c5Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 12819bdc460c5Smrg necessary). You can also try re-running configure with the 12820bdc460c5Smrg '--disable-dependency-tracking' option to at least be able to build 12821bdc460c5Smrg the package (albeit without support for automatic dependency tracking). 12822bdc460c5SmrgSee \`config.log' for more details" "$LINENO" 5; } 12823bdc460c5Smrg fi 12824bdc460c5Smrg { am_dirpart=; unset am_dirpart;} 12825bdc460c5Smrg { am_filepart=; unset am_filepart;} 12826bdc460c5Smrg { am_mf=; unset am_mf;} 12827bdc460c5Smrg { am_rc=; unset am_rc;} 12828bdc460c5Smrg rm -f conftest-deps.mk 12829bf2eeab3Smrg} 1283014c0a534Smrg ;; 12831bf2eeab3Smrg 1283214c0a534Smrg esac 12833bf2eeab3Smrgdone # for ac_tag 1283414c0a534Smrg 1283514c0a534Smrg 12836576bae58Smrgas_fn_exit 0 1283714c0a534Smrg_ACEOF 1283814c0a534Smrgac_clean_files=$ac_clean_files_save 1283914c0a534Smrg 12840bf2eeab3Smrgtest $ac_write_fail = 0 || 12841576bae58Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12842bf2eeab3Smrg 1284314c0a534Smrg 1284414c0a534Smrg# configure is writing to config.log, and then calls config.status. 1284514c0a534Smrg# config.status does its own redirection, appending to config.log. 1284614c0a534Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 1284714c0a534Smrg# by configure, so config.status won't be able to write to it; its 1284814c0a534Smrg# output is simply discarded. So we exec the FD to /dev/null, 1284914c0a534Smrg# effectively closing config.log, so it can be properly (re)opened and 1285014c0a534Smrg# appended to by config.status. When coming back to configure, we 1285114c0a534Smrg# need to make the FD available again. 1285214c0a534Smrgif test "$no_create" != yes; then 1285314c0a534Smrg ac_cs_success=: 1285414c0a534Smrg ac_config_status_args= 1285514c0a534Smrg test "$silent" = yes && 1285614c0a534Smrg ac_config_status_args="$ac_config_status_args --quiet" 1285714c0a534Smrg exec 5>/dev/null 1285814c0a534Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1285914c0a534Smrg exec 5>>config.log 1286014c0a534Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1286114c0a534Smrg # would make configure fail if this is the last instruction. 12862576bae58Smrg $ac_cs_success || as_fn_exit 1 1286314c0a534Smrgfi 12864bf2eeab3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12865bdc460c5Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12866bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12867bf2eeab3Smrgfi 1286814c0a534Smrg 12869bdc460c5Smrg 12870