configure revision 6eaa481c
11a30de1fSmrg#! /bin/sh 21a30de1fSmrg# Guess values for system-dependent variables and create Makefiles. 36eaa481cSmrg# Generated by GNU Autoconf 2.71 for xmodmap 1.0.11. 41a30de1fSmrg# 5423b239cSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>. 61a30de1fSmrg# 7ce62200cSmrg# 86eaa481cSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 96eaa481cSmrg# Inc. 10ce62200cSmrg# 11ce62200cSmrg# 121a30de1fSmrg# This configure script is free software; the Free Software Foundation 131a30de1fSmrg# gives unlimited permission to copy, distribute and modify it. 14ce62200cSmrg## -------------------- ## 15ce62200cSmrg## M4sh Initialization. ## 16ce62200cSmrg## -------------------- ## 171a30de1fSmrg 181a30de1fSmrg# Be more Bourne compatible 191a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh 206eaa481cSmrgas_nop=: 216eaa481cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 226eaa481cSmrgthen : 231a30de1fSmrg emulate sh 241a30de1fSmrg NULLCMD=: 25b7fb5eacSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 261a30de1fSmrg # is contrary to our usage. Disable this feature. 271a30de1fSmrg alias -g '${1+"$@"}'='"$@"' 281a30de1fSmrg setopt NO_GLOB_SUBST 296eaa481cSmrgelse $as_nop 30ce62200cSmrg case `(set -o) 2>/dev/null` in #( 31ce62200cSmrg *posix*) : 32ce62200cSmrg set -o posix ;; #( 33ce62200cSmrg *) : 34ce62200cSmrg ;; 351a30de1fSmrgesac 361a30de1fSmrgfi 371a30de1fSmrg 381a30de1fSmrg 396eaa481cSmrg 406eaa481cSmrg# Reset variables that may have inherited troublesome values from 416eaa481cSmrg# the environment. 426eaa481cSmrg 436eaa481cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 446eaa481cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 456eaa481cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 466eaa481cSmrg# Quoting is to prevent editors from complaining about space-tab. 47b7fb5eacSmrgas_nl=' 48b7fb5eacSmrg' 49b7fb5eacSmrgexport as_nl 506eaa481cSmrgIFS=" "" $as_nl" 516eaa481cSmrg 526eaa481cSmrgPS1='$ ' 536eaa481cSmrgPS2='> ' 546eaa481cSmrgPS4='+ ' 556eaa481cSmrg 566eaa481cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 576eaa481cSmrgLC_ALL=C 586eaa481cSmrgexport LC_ALL 596eaa481cSmrgLANGUAGE=C 606eaa481cSmrgexport LANGUAGE 616eaa481cSmrg 626eaa481cSmrg# We cannot yet rely on "unset" to work, but we need these variables 636eaa481cSmrg# to be unset--not just set to an empty or harmless value--now, to 646eaa481cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 656eaa481cSmrg# also avoids known problems related to "unset" and subshell syntax 666eaa481cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 676eaa481cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 686eaa481cSmrgdo eval test \${$as_var+y} \ 696eaa481cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 706eaa481cSmrgdone 716eaa481cSmrg 726eaa481cSmrg# Ensure that fds 0, 1, and 2 are open. 736eaa481cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 746eaa481cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 756eaa481cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76b7fb5eacSmrg 77b7fb5eacSmrg# The user is always right. 786eaa481cSmrgif ${PATH_SEPARATOR+false} :; then 79b7fb5eacSmrg PATH_SEPARATOR=: 80b7fb5eacSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81b7fb5eacSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82b7fb5eacSmrg PATH_SEPARATOR=';' 83b7fb5eacSmrg } 841a30de1fSmrgfi 851a30de1fSmrg 861a30de1fSmrg 871a30de1fSmrg# Find who we are. Look in the path if we contain no directory separator. 88ce62200cSmrgas_myself= 89ce62200cSmrgcase $0 in #(( 901a30de1fSmrg *[\\/]* ) as_myself=$0 ;; 911a30de1fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 921a30de1fSmrgfor as_dir in $PATH 931a30de1fSmrgdo 941a30de1fSmrg IFS=$as_save_IFS 956eaa481cSmrg case $as_dir in #((( 966eaa481cSmrg '') as_dir=./ ;; 976eaa481cSmrg */) ;; 986eaa481cSmrg *) as_dir=$as_dir/ ;; 996eaa481cSmrg esac 1006eaa481cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101ce62200cSmrg done 1021a30de1fSmrgIFS=$as_save_IFS 1031a30de1fSmrg 1041a30de1fSmrg ;; 1051a30de1fSmrgesac 1061a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1071a30de1fSmrg# in which case we are not to be found in the path. 1081a30de1fSmrgif test "x$as_myself" = x; then 1091a30de1fSmrg as_myself=$0 1101a30de1fSmrgfi 1111a30de1fSmrgif test ! -f "$as_myself"; then 1126eaa481cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113ce62200cSmrg exit 1 1141a30de1fSmrgfi 1151a30de1fSmrg 116ce62200cSmrg 1171b983734Smrg# Use a proper internal environment variable to ensure we don't fall 1181b983734Smrg # into an infinite loop, continuously re-executing ourselves. 1191b983734Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1201b983734Smrg _as_can_reexec=no; export _as_can_reexec; 1211b983734Smrg # We cannot yet assume a decent shell, so we have to provide a 1221b983734Smrg# neutralization value for shells without unset; and this also 1231b983734Smrg# works around shells that cannot unset nonexistent variables. 1241b983734Smrg# Preserve -v and -x to the replacement shell. 1251b983734SmrgBASH_ENV=/dev/null 1261b983734SmrgENV=/dev/null 1271b983734Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1281b983734Smrgcase $- in # (((( 1291b983734Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1301b983734Smrg *v* ) as_opts=-v ;; 1311b983734Smrg *x* ) as_opts=-x ;; 1321b983734Smrg * ) as_opts= ;; 1331b983734Smrgesac 1341b983734Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1351b983734Smrg# Admittedly, this is quite paranoid, since all the known shells bail 1361b983734Smrg# out after a failed `exec'. 1376eaa481cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1386eaa481cSmrgexit 255 1391b983734Smrg fi 1401b983734Smrg # We don't want this to propagate to other subprocesses. 1411b983734Smrg { _as_can_reexec=; unset _as_can_reexec;} 142ce62200cSmrgif test "x$CONFIG_SHELL" = x; then 1436eaa481cSmrg as_bourne_compatible="as_nop=: 1446eaa481cSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1456eaa481cSmrgthen : 146ce62200cSmrg emulate sh 147ce62200cSmrg NULLCMD=: 148ce62200cSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149ce62200cSmrg # is contrary to our usage. Disable this feature. 150ce62200cSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 151ce62200cSmrg setopt NO_GLOB_SUBST 1526eaa481cSmrgelse \$as_nop 153ce62200cSmrg case \`(set -o) 2>/dev/null\` in #( 154ce62200cSmrg *posix*) : 155ce62200cSmrg set -o posix ;; #( 156ce62200cSmrg *) : 157ce62200cSmrg ;; 158ce62200cSmrgesac 159ce62200cSmrgfi 160ce62200cSmrg" 161ce62200cSmrg as_required="as_fn_return () { (exit \$1); } 162ce62200cSmrgas_fn_success () { as_fn_return 0; } 163ce62200cSmrgas_fn_failure () { as_fn_return 1; } 164ce62200cSmrgas_fn_ret_success () { return 0; } 165ce62200cSmrgas_fn_ret_failure () { return 1; } 166ce62200cSmrg 167ce62200cSmrgexitcode=0 168ce62200cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 169ce62200cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170ce62200cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171ce62200cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1726eaa481cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1736eaa481cSmrgthen : 174ce62200cSmrg 1756eaa481cSmrgelse \$as_nop 176ce62200cSmrg exitcode=1; echo positional parameters were not saved. 177ce62200cSmrgfi 1781b983734Smrgtest x\$exitcode = x0 || exit 1 1796eaa481cSmrgblah=\$(echo \$(echo blah)) 1806eaa481cSmrgtest x\"\$blah\" = xblah || exit 1 1811b983734Smrgtest -x / || exit 1" 182ce62200cSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183ce62200cSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184ce62200cSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185ce62200cSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186ce62200cSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1876eaa481cSmrg if (eval "$as_required") 2>/dev/null 1886eaa481cSmrgthen : 189ce62200cSmrg as_have_required=yes 1906eaa481cSmrgelse $as_nop 191ce62200cSmrg as_have_required=no 192ce62200cSmrgfi 1936eaa481cSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1946eaa481cSmrgthen : 195ce62200cSmrg 1966eaa481cSmrgelse $as_nop 197ce62200cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198ce62200cSmrgas_found=false 199ce62200cSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200ce62200cSmrgdo 201ce62200cSmrg IFS=$as_save_IFS 2026eaa481cSmrg case $as_dir in #((( 2036eaa481cSmrg '') as_dir=./ ;; 2046eaa481cSmrg */) ;; 2056eaa481cSmrg *) as_dir=$as_dir/ ;; 2066eaa481cSmrg esac 207ce62200cSmrg as_found=: 208ce62200cSmrg case $as_dir in #( 209ce62200cSmrg /*) 210ce62200cSmrg for as_base in sh bash ksh sh5; do 211ce62200cSmrg # Try only shells that exist, to save several forks. 2126eaa481cSmrg as_shell=$as_dir$as_base 213ce62200cSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2146eaa481cSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2156eaa481cSmrgthen : 216ce62200cSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2176eaa481cSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2186eaa481cSmrgthen : 219ce62200cSmrg break 2 220ce62200cSmrgfi 221ce62200cSmrgfi 222ce62200cSmrg done;; 223ce62200cSmrg esac 224ce62200cSmrg as_found=false 225ce62200cSmrgdone 226ce62200cSmrgIFS=$as_save_IFS 2276eaa481cSmrgif $as_found 2286eaa481cSmrgthen : 2296eaa481cSmrg 2306eaa481cSmrgelse $as_nop 2316eaa481cSmrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2326eaa481cSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2336eaa481cSmrgthen : 2346eaa481cSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2356eaa481cSmrgfi 2366eaa481cSmrgfi 237ce62200cSmrg 238ce62200cSmrg 2396eaa481cSmrg if test "x$CONFIG_SHELL" != x 2406eaa481cSmrgthen : 2411b983734Smrg export CONFIG_SHELL 2421b983734Smrg # We cannot yet assume a decent shell, so we have to provide a 2431b983734Smrg# neutralization value for shells without unset; and this also 2441b983734Smrg# works around shells that cannot unset nonexistent variables. 2451b983734Smrg# Preserve -v and -x to the replacement shell. 2461b983734SmrgBASH_ENV=/dev/null 2471b983734SmrgENV=/dev/null 2481b983734Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2491b983734Smrgcase $- in # (((( 2501b983734Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2511b983734Smrg *v* ) as_opts=-v ;; 2521b983734Smrg *x* ) as_opts=-x ;; 2531b983734Smrg * ) as_opts= ;; 2541b983734Smrgesac 2551b983734Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2561b983734Smrg# Admittedly, this is quite paranoid, since all the known shells bail 2571b983734Smrg# out after a failed `exec'. 2586eaa481cSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2591b983734Smrgexit 255 260ce62200cSmrgfi 261ce62200cSmrg 2626eaa481cSmrg if test x$as_have_required = xno 2636eaa481cSmrgthen : 2646eaa481cSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 2656eaa481cSmrg printf "%s\n" "$0: the shells that I found on your system." 2666eaa481cSmrg if test ${ZSH_VERSION+y} ; then 2676eaa481cSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2686eaa481cSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269ce62200cSmrg else 2706eaa481cSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271423b239cSmrg$0: https://gitlab.freedesktop.org/xorg/app/xmodmap/issues 272ce62200cSmrg$0: about your system, including any error possibly output 273ce62200cSmrg$0: before this message. Then install a modern shell, or 274ce62200cSmrg$0: manually run the script under such a shell if you do 275ce62200cSmrg$0: have one." 276ce62200cSmrg fi 277ce62200cSmrg exit 1 278ce62200cSmrgfi 279ce62200cSmrgfi 280ce62200cSmrgfi 281ce62200cSmrgSHELL=${CONFIG_SHELL-/bin/sh} 282ce62200cSmrgexport SHELL 283ce62200cSmrg# Unset more variables known to interfere with behavior of common tools. 284ce62200cSmrgCLICOLOR_FORCE= GREP_OPTIONS= 285ce62200cSmrgunset CLICOLOR_FORCE GREP_OPTIONS 286ce62200cSmrg 287ce62200cSmrg## --------------------- ## 288ce62200cSmrg## M4sh Shell Functions. ## 289ce62200cSmrg## --------------------- ## 290ce62200cSmrg# as_fn_unset VAR 291ce62200cSmrg# --------------- 292ce62200cSmrg# Portably unset VAR. 293ce62200cSmrgas_fn_unset () 294ce62200cSmrg{ 295ce62200cSmrg { eval $1=; unset $1;} 296ce62200cSmrg} 297ce62200cSmrgas_unset=as_fn_unset 298ce62200cSmrg 2996eaa481cSmrg 300ce62200cSmrg# as_fn_set_status STATUS 301ce62200cSmrg# ----------------------- 302ce62200cSmrg# Set $? to STATUS, without forking. 303ce62200cSmrgas_fn_set_status () 304ce62200cSmrg{ 305ce62200cSmrg return $1 306ce62200cSmrg} # as_fn_set_status 307ce62200cSmrg 308ce62200cSmrg# as_fn_exit STATUS 309ce62200cSmrg# ----------------- 310ce62200cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311ce62200cSmrgas_fn_exit () 312ce62200cSmrg{ 313ce62200cSmrg set +e 314ce62200cSmrg as_fn_set_status $1 315ce62200cSmrg exit $1 316ce62200cSmrg} # as_fn_exit 3176eaa481cSmrg# as_fn_nop 3186eaa481cSmrg# --------- 3196eaa481cSmrg# Do nothing but, unlike ":", preserve the value of $?. 3206eaa481cSmrgas_fn_nop () 3216eaa481cSmrg{ 3226eaa481cSmrg return $? 3236eaa481cSmrg} 3246eaa481cSmrgas_nop=as_fn_nop 325ce62200cSmrg 326ce62200cSmrg# as_fn_mkdir_p 327ce62200cSmrg# ------------- 328ce62200cSmrg# Create "$as_dir" as a directory, including parents if necessary. 329ce62200cSmrgas_fn_mkdir_p () 330ce62200cSmrg{ 331ce62200cSmrg 332ce62200cSmrg case $as_dir in #( 333ce62200cSmrg -*) as_dir=./$as_dir;; 334ce62200cSmrg esac 335ce62200cSmrg test -d "$as_dir" || eval $as_mkdir_p || { 336ce62200cSmrg as_dirs= 337ce62200cSmrg while :; do 338ce62200cSmrg case $as_dir in #( 3396eaa481cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340ce62200cSmrg *) as_qdir=$as_dir;; 341ce62200cSmrg esac 342ce62200cSmrg as_dirs="'$as_qdir' $as_dirs" 343ce62200cSmrg as_dir=`$as_dirname -- "$as_dir" || 344ce62200cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345ce62200cSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 346ce62200cSmrg X"$as_dir" : 'X\(//\)$' \| \ 347ce62200cSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3486eaa481cSmrgprintf "%s\n" X"$as_dir" | 349ce62200cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350ce62200cSmrg s//\1/ 351ce62200cSmrg q 352ce62200cSmrg } 353ce62200cSmrg /^X\(\/\/\)[^/].*/{ 354ce62200cSmrg s//\1/ 355ce62200cSmrg q 356ce62200cSmrg } 357ce62200cSmrg /^X\(\/\/\)$/{ 358ce62200cSmrg s//\1/ 359ce62200cSmrg q 360ce62200cSmrg } 361ce62200cSmrg /^X\(\/\).*/{ 362ce62200cSmrg s//\1/ 363ce62200cSmrg q 364ce62200cSmrg } 365ce62200cSmrg s/.*/./; q'` 366ce62200cSmrg test -d "$as_dir" && break 367ce62200cSmrg done 368ce62200cSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 369ce62200cSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370ce62200cSmrg 371ce62200cSmrg 372ce62200cSmrg} # as_fn_mkdir_p 3731b983734Smrg 3741b983734Smrg# as_fn_executable_p FILE 3751b983734Smrg# ----------------------- 3761b983734Smrg# Test if FILE is an executable regular file. 3771b983734Smrgas_fn_executable_p () 3781b983734Smrg{ 3791b983734Smrg test -f "$1" && test -x "$1" 3801b983734Smrg} # as_fn_executable_p 381ce62200cSmrg# as_fn_append VAR VALUE 382ce62200cSmrg# ---------------------- 383ce62200cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 384ce62200cSmrg# advantage of any shell optimizations that allow amortized linear growth over 385ce62200cSmrg# repeated appends, instead of the typical quadratic growth present in naive 386ce62200cSmrg# implementations. 3876eaa481cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3886eaa481cSmrgthen : 389ce62200cSmrg eval 'as_fn_append () 390ce62200cSmrg { 391ce62200cSmrg eval $1+=\$2 392ce62200cSmrg }' 3936eaa481cSmrgelse $as_nop 394ce62200cSmrg as_fn_append () 395ce62200cSmrg { 396ce62200cSmrg eval $1=\$$1\$2 397ce62200cSmrg } 398ce62200cSmrgfi # as_fn_append 399ce62200cSmrg 400ce62200cSmrg# as_fn_arith ARG... 401ce62200cSmrg# ------------------ 402ce62200cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 403ce62200cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 404ce62200cSmrg# must be portable across $(()) and expr. 4056eaa481cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4066eaa481cSmrgthen : 407ce62200cSmrg eval 'as_fn_arith () 408ce62200cSmrg { 409ce62200cSmrg as_val=$(( $* )) 410ce62200cSmrg }' 4116eaa481cSmrgelse $as_nop 412ce62200cSmrg as_fn_arith () 413ce62200cSmrg { 414ce62200cSmrg as_val=`expr "$@" || test $? -eq 1` 415ce62200cSmrg } 416ce62200cSmrgfi # as_fn_arith 417ce62200cSmrg 4186eaa481cSmrg# as_fn_nop 4196eaa481cSmrg# --------- 4206eaa481cSmrg# Do nothing but, unlike ":", preserve the value of $?. 4216eaa481cSmrgas_fn_nop () 4226eaa481cSmrg{ 4236eaa481cSmrg return $? 4246eaa481cSmrg} 4256eaa481cSmrgas_nop=as_fn_nop 426ce62200cSmrg 427ce62200cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 428ce62200cSmrg# ---------------------------------------- 429ce62200cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430ce62200cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431ce62200cSmrg# script with STATUS, using 1 if that was 0. 432ce62200cSmrgas_fn_error () 433ce62200cSmrg{ 434ce62200cSmrg as_status=$1; test $as_status -eq 0 && as_status=1 435ce62200cSmrg if test "$4"; then 436ce62200cSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4376eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438ce62200cSmrg fi 4396eaa481cSmrg printf "%s\n" "$as_me: error: $2" >&2 440ce62200cSmrg as_fn_exit $as_status 441ce62200cSmrg} # as_fn_error 442ce62200cSmrg 4431a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4441a30de1fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4451a30de1fSmrg as_expr=expr 4461a30de1fSmrgelse 4471a30de1fSmrg as_expr=false 4481a30de1fSmrgfi 4491a30de1fSmrg 4501a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4511a30de1fSmrg as_basename=basename 4521a30de1fSmrgelse 4531a30de1fSmrg as_basename=false 4541a30de1fSmrgfi 4551a30de1fSmrg 456ce62200cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457ce62200cSmrg as_dirname=dirname 458ce62200cSmrgelse 459ce62200cSmrg as_dirname=false 460ce62200cSmrgfi 4611a30de1fSmrg 4621a30de1fSmrgas_me=`$as_basename -- "$0" || 4631a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4641a30de1fSmrg X"$0" : 'X\(//\)$' \| \ 4651a30de1fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4666eaa481cSmrgprintf "%s\n" X/"$0" | 4671a30de1fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4681a30de1fSmrg s//\1/ 4691a30de1fSmrg q 4701a30de1fSmrg } 4711a30de1fSmrg /^X\/\(\/\/\)$/{ 4721a30de1fSmrg s//\1/ 4731a30de1fSmrg q 4741a30de1fSmrg } 4751a30de1fSmrg /^X\/\(\/\).*/{ 4761a30de1fSmrg s//\1/ 4771a30de1fSmrg q 4781a30de1fSmrg } 4791a30de1fSmrg s/.*/./; q'` 4801a30de1fSmrg 481ce62200cSmrg# Avoid depending upon Character Ranges. 482ce62200cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 483ce62200cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484ce62200cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 485ce62200cSmrgas_cr_digits='0123456789' 486ce62200cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4871a30de1fSmrg 4881a30de1fSmrg 489ce62200cSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 490ce62200cSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 491ce62200cSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492ce62200cSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493ce62200cSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494ce62200cSmrg sed -n ' 495ce62200cSmrg p 496ce62200cSmrg /[$]LINENO/= 497ce62200cSmrg ' <$as_myself | 498ce62200cSmrg sed ' 499ce62200cSmrg s/[$]LINENO.*/&-/ 500ce62200cSmrg t lineno 501ce62200cSmrg b 502ce62200cSmrg :lineno 503ce62200cSmrg N 504ce62200cSmrg :loop 505ce62200cSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506ce62200cSmrg t loop 507ce62200cSmrg s/-\n.*// 508ce62200cSmrg ' >$as_me.lineno && 509ce62200cSmrg chmod +x "$as_me.lineno" || 5106eaa481cSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5111a30de1fSmrg 5121b983734Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5131b983734Smrg # already done that, so ensure we don't try to do so again and fall 5141b983734Smrg # in an infinite loop. This has already happened in practice. 5151b983734Smrg _as_can_reexec=no; export _as_can_reexec 516ce62200cSmrg # Don't try to exec as it changes $[0], causing all sort of problems 517ce62200cSmrg # (the dirname of $[0] is not the place where we might find the 518ce62200cSmrg # original and so on. Autoconf is especially sensitive to this). 519ce62200cSmrg . "./$as_me.lineno" 520ce62200cSmrg # Exit status is that of the last command. 521ce62200cSmrg exit 5221a30de1fSmrg} 5231a30de1fSmrg 5246eaa481cSmrg 5256eaa481cSmrg# Determine whether it's possible to make 'echo' print without a newline. 5266eaa481cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5276eaa481cSmrg# for compatibility with existing Makefiles. 528ce62200cSmrgECHO_C= ECHO_N= ECHO_T= 529ce62200cSmrgcase `echo -n x` in #((((( 530ce62200cSmrg-n*) 531ce62200cSmrg case `echo 'xy\c'` in 532ce62200cSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533ce62200cSmrg xy) ECHO_C='\c';; 534ce62200cSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535ce62200cSmrg ECHO_T=' ';; 536ce62200cSmrg esac;; 537ce62200cSmrg*) 538ce62200cSmrg ECHO_N='-n';; 539ce62200cSmrgesac 5401a30de1fSmrg 5416eaa481cSmrg# For backward compatibility with old third-party macros, we provide 5426eaa481cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 5436eaa481cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5446eaa481cSmrgas_echo='printf %s\n' 5456eaa481cSmrgas_echo_n='printf %s' 5466eaa481cSmrg 5476eaa481cSmrg 548ce62200cSmrgrm -f conf$$ conf$$.exe conf$$.file 549ce62200cSmrgif test -d conf$$.dir; then 550ce62200cSmrg rm -f conf$$.dir/conf$$.file 551ce62200cSmrgelse 552ce62200cSmrg rm -f conf$$.dir 553ce62200cSmrg mkdir conf$$.dir 2>/dev/null 5541a30de1fSmrgfi 555ce62200cSmrgif (echo >conf$$.file) 2>/dev/null; then 556ce62200cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 557ce62200cSmrg as_ln_s='ln -s' 558ce62200cSmrg # ... but there are two gotchas: 559ce62200cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560ce62200cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5611b983734Smrg # In both cases, we have to default to `cp -pR'. 562ce62200cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5631b983734Smrg as_ln_s='cp -pR' 564ce62200cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 565ce62200cSmrg as_ln_s=ln 566ce62200cSmrg else 5671b983734Smrg as_ln_s='cp -pR' 568ce62200cSmrg fi 5691a30de1fSmrgelse 5701b983734Smrg as_ln_s='cp -pR' 5711a30de1fSmrgfi 572ce62200cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573ce62200cSmrgrmdir conf$$.dir 2>/dev/null 5741a30de1fSmrg 575ce62200cSmrgif mkdir -p . 2>/dev/null; then 576ce62200cSmrg as_mkdir_p='mkdir -p "$as_dir"' 577ce62200cSmrgelse 578ce62200cSmrg test -d ./-p && rmdir ./-p 579ce62200cSmrg as_mkdir_p=false 5801a30de1fSmrgfi 5811a30de1fSmrg 5821b983734Smrgas_test_x='test -x' 5831b983734Smrgas_executable_p=as_fn_executable_p 5841a30de1fSmrg 585ce62200cSmrg# Sed expression to map a string onto a valid CPP name. 586ce62200cSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5871a30de1fSmrg 588ce62200cSmrg# Sed expression to map a string onto a valid variable name. 589ce62200cSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5901a30de1fSmrg 5911a30de1fSmrg 592ce62200cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 593ce62200cSmrgexec 6>&1 5941a30de1fSmrg 5951a30de1fSmrg# Name of the host. 596ce62200cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5971a30de1fSmrg# so uname gets run too. 5981a30de1fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5991a30de1fSmrg 6001a30de1fSmrg# 6011a30de1fSmrg# Initializations. 6021a30de1fSmrg# 6031a30de1fSmrgac_default_prefix=/usr/local 6041a30de1fSmrgac_clean_files= 6051a30de1fSmrgac_config_libobj_dir=. 6061a30de1fSmrgLIBOBJS= 6071a30de1fSmrgcross_compiling=no 6081a30de1fSmrgsubdirs= 6091a30de1fSmrgMFLAGS= 6101a30de1fSmrgMAKEFLAGS= 6111a30de1fSmrg 6121a30de1fSmrg# Identity of this package. 6131a30de1fSmrgPACKAGE_NAME='xmodmap' 6141a30de1fSmrgPACKAGE_TARNAME='xmodmap' 6156eaa481cSmrgPACKAGE_VERSION='1.0.11' 6166eaa481cSmrgPACKAGE_STRING='xmodmap 1.0.11' 617423b239cSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmodmap/issues' 618ce62200cSmrgPACKAGE_URL='' 6191a30de1fSmrg 620a733a5bfSmrgac_unique_file="Makefile.am" 621b7fb5eacSmrg# Factoring default headers for most tests. 622b7fb5eacSmrgac_includes_default="\ 6236eaa481cSmrg#include <stddef.h> 6246eaa481cSmrg#ifdef HAVE_STDIO_H 6256eaa481cSmrg# include <stdio.h> 626b7fb5eacSmrg#endif 6276eaa481cSmrg#ifdef HAVE_STDLIB_H 628b7fb5eacSmrg# include <stdlib.h> 629b7fb5eacSmrg#endif 630b7fb5eacSmrg#ifdef HAVE_STRING_H 631b7fb5eacSmrg# include <string.h> 632b7fb5eacSmrg#endif 633b7fb5eacSmrg#ifdef HAVE_INTTYPES_H 634b7fb5eacSmrg# include <inttypes.h> 635b7fb5eacSmrg#endif 636b7fb5eacSmrg#ifdef HAVE_STDINT_H 637b7fb5eacSmrg# include <stdint.h> 638b7fb5eacSmrg#endif 6396eaa481cSmrg#ifdef HAVE_STRINGS_H 6406eaa481cSmrg# include <strings.h> 6416eaa481cSmrg#endif 6426eaa481cSmrg#ifdef HAVE_SYS_TYPES_H 6436eaa481cSmrg# include <sys/types.h> 6446eaa481cSmrg#endif 6456eaa481cSmrg#ifdef HAVE_SYS_STAT_H 6466eaa481cSmrg# include <sys/stat.h> 6476eaa481cSmrg#endif 648b7fb5eacSmrg#ifdef HAVE_UNISTD_H 649b7fb5eacSmrg# include <unistd.h> 650b7fb5eacSmrg#endif" 651b7fb5eacSmrg 6526eaa481cSmrgac_header_c_list= 653b7fb5eacSmrgac_subst_vars='am__EXEEXT_FALSE 654b7fb5eacSmrgam__EXEEXT_TRUE 655b7fb5eacSmrgLTLIBOBJS 656b7fb5eacSmrgLIBOBJS 6571a30de1fSmrgLINT_FALSE 658b7fb5eacSmrgLINT_TRUE 659b7fb5eacSmrgLINT_FLAGS 660b7fb5eacSmrgLINT 661b7fb5eacSmrgXMODMAP_LIBS 662b7fb5eacSmrgXMODMAP_CFLAGS 663ce62200cSmrgMAN_SUBSTS 664ce62200cSmrgXORG_MAN_PAGE 6651a30de1fSmrgADMIN_MAN_DIR 666b7fb5eacSmrgDRIVER_MAN_DIR 667b7fb5eacSmrgMISC_MAN_DIR 668b7fb5eacSmrgFILE_MAN_DIR 669b7fb5eacSmrgLIB_MAN_DIR 670b7fb5eacSmrgAPP_MAN_DIR 671b7fb5eacSmrgADMIN_MAN_SUFFIX 672b7fb5eacSmrgDRIVER_MAN_SUFFIX 673b7fb5eacSmrgMISC_MAN_SUFFIX 674b7fb5eacSmrgFILE_MAN_SUFFIX 675b7fb5eacSmrgLIB_MAN_SUFFIX 676b7fb5eacSmrgAPP_MAN_SUFFIX 677ce62200cSmrgSED 678b7fb5eacSmrghost_os 679b7fb5eacSmrghost_vendor 680b7fb5eacSmrghost_cpu 681b7fb5eacSmrghost 682b7fb5eacSmrgbuild_os 683b7fb5eacSmrgbuild_vendor 684b7fb5eacSmrgbuild_cpu 685b7fb5eacSmrgbuild 686ce62200cSmrgINSTALL_CMD 687423b239cSmrgPKG_CONFIG_LIBDIR 688423b239cSmrgPKG_CONFIG_PATH 689ce62200cSmrgPKG_CONFIG 690b7fb5eacSmrgCHANGELOG_CMD 691a733a5bfSmrgSTRICT_CFLAGS 692b7fb5eacSmrgCWARNFLAGS 693a733a5bfSmrgBASE_CFLAGS 694a733a5bfSmrgAM_BACKSLASH 695a733a5bfSmrgAM_DEFAULT_VERBOSITY 696a733a5bfSmrgAM_DEFAULT_V 697a733a5bfSmrgAM_V 6986eaa481cSmrgCSCOPE 6996eaa481cSmrgETAGS 7006eaa481cSmrgCTAGS 701b7fb5eacSmrgam__fastdepCC_FALSE 702b7fb5eacSmrgam__fastdepCC_TRUE 703b7fb5eacSmrgCCDEPMODE 704a733a5bfSmrgam__nodep 705b7fb5eacSmrgAMDEPBACKSLASH 706b7fb5eacSmrgAMDEP_FALSE 707b7fb5eacSmrgAMDEP_TRUE 708b7fb5eacSmrgam__include 709b7fb5eacSmrgDEPDIR 710b7fb5eacSmrgam__untar 711b7fb5eacSmrgam__tar 712b7fb5eacSmrgAMTAR 713b7fb5eacSmrgam__leading_dot 714b7fb5eacSmrgSET_MAKE 715b7fb5eacSmrgAWK 716b7fb5eacSmrgmkdir_p 717b7fb5eacSmrgMKDIR_P 718b7fb5eacSmrgINSTALL_STRIP_PROGRAM 719b7fb5eacSmrgSTRIP 720b7fb5eacSmrginstall_sh 721b7fb5eacSmrgMAKEINFO 722b7fb5eacSmrgAUTOHEADER 723b7fb5eacSmrgAUTOMAKE 724b7fb5eacSmrgAUTOCONF 725b7fb5eacSmrgACLOCAL 726b7fb5eacSmrgVERSION 727b7fb5eacSmrgPACKAGE 728b7fb5eacSmrgCYGPATH_W 729b7fb5eacSmrgam__isrc 730b7fb5eacSmrgINSTALL_DATA 731b7fb5eacSmrgINSTALL_SCRIPT 732b7fb5eacSmrgINSTALL_PROGRAM 733a733a5bfSmrgOBJEXT 734a733a5bfSmrgEXEEXT 735a733a5bfSmrgac_ct_CC 736a733a5bfSmrgCPPFLAGS 737a733a5bfSmrgLDFLAGS 738a733a5bfSmrgCFLAGS 739a733a5bfSmrgCC 740b7fb5eacSmrgtarget_alias 741b7fb5eacSmrghost_alias 742b7fb5eacSmrgbuild_alias 743b7fb5eacSmrgLIBS 744b7fb5eacSmrgECHO_T 745b7fb5eacSmrgECHO_N 746b7fb5eacSmrgECHO_C 747b7fb5eacSmrgDEFS 748b7fb5eacSmrgmandir 749b7fb5eacSmrglocaledir 750b7fb5eacSmrglibdir 751b7fb5eacSmrgpsdir 752b7fb5eacSmrgpdfdir 753b7fb5eacSmrgdvidir 754b7fb5eacSmrghtmldir 755b7fb5eacSmrginfodir 756b7fb5eacSmrgdocdir 757b7fb5eacSmrgoldincludedir 758b7fb5eacSmrgincludedir 7596eaa481cSmrgrunstatedir 760b7fb5eacSmrglocalstatedir 761b7fb5eacSmrgsharedstatedir 762b7fb5eacSmrgsysconfdir 763b7fb5eacSmrgdatadir 764b7fb5eacSmrgdatarootdir 765b7fb5eacSmrglibexecdir 766b7fb5eacSmrgsbindir 767b7fb5eacSmrgbindir 768b7fb5eacSmrgprogram_transform_name 769b7fb5eacSmrgprefix 770b7fb5eacSmrgexec_prefix 771ce62200cSmrgPACKAGE_URL 772b7fb5eacSmrgPACKAGE_BUGREPORT 773b7fb5eacSmrgPACKAGE_STRING 774b7fb5eacSmrgPACKAGE_VERSION 775b7fb5eacSmrgPACKAGE_TARNAME 776b7fb5eacSmrgPACKAGE_NAME 777b7fb5eacSmrgPATH_SEPARATOR 7786eaa481cSmrgSHELL 7796eaa481cSmrgam__quote' 7801a30de1fSmrgac_subst_files='' 781b7fb5eacSmrgac_user_opts=' 782b7fb5eacSmrgenable_option_checking 783b7fb5eacSmrgenable_dependency_tracking 784ce62200cSmrgenable_silent_rules 785a733a5bfSmrgenable_selective_werror 786a733a5bfSmrgenable_strict_compilation 787b7fb5eacSmrgwith_lint 788b7fb5eacSmrg' 7891a30de1fSmrg ac_precious_vars='build_alias 7901a30de1fSmrghost_alias 7911a30de1fSmrgtarget_alias 7921a30de1fSmrgCC 7931a30de1fSmrgCFLAGS 7941a30de1fSmrgLDFLAGS 7951a30de1fSmrgLIBS 7961a30de1fSmrgCPPFLAGS 7971a30de1fSmrgPKG_CONFIG 798423b239cSmrgPKG_CONFIG_PATH 799423b239cSmrgPKG_CONFIG_LIBDIR 800b7fb5eacSmrgXMODMAP_CFLAGS 801ce62200cSmrgXMODMAP_LIBS 802ce62200cSmrgLINT 803ce62200cSmrgLINT_FLAGS' 8041a30de1fSmrg 8051a30de1fSmrg 8061a30de1fSmrg# Initialize some variables set by options. 8071a30de1fSmrgac_init_help= 8081a30de1fSmrgac_init_version=false 809b7fb5eacSmrgac_unrecognized_opts= 810b7fb5eacSmrgac_unrecognized_sep= 8111a30de1fSmrg# The variables have the same names as the options, with 8121a30de1fSmrg# dashes changed to underlines. 8131a30de1fSmrgcache_file=/dev/null 8141a30de1fSmrgexec_prefix=NONE 8151a30de1fSmrgno_create= 8161a30de1fSmrgno_recursion= 8171a30de1fSmrgprefix=NONE 8181a30de1fSmrgprogram_prefix=NONE 8191a30de1fSmrgprogram_suffix=NONE 8201a30de1fSmrgprogram_transform_name=s,x,x, 8211a30de1fSmrgsilent= 8221a30de1fSmrgsite= 8231a30de1fSmrgsrcdir= 8241a30de1fSmrgverbose= 8251a30de1fSmrgx_includes=NONE 8261a30de1fSmrgx_libraries=NONE 8271a30de1fSmrg 8281a30de1fSmrg# Installation directory options. 8291a30de1fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8301a30de1fSmrg# and all the variables that are supposed to be based on exec_prefix 8311a30de1fSmrg# by default will actually change. 8321a30de1fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 8331a30de1fSmrg# (The list follows the same order as the GNU Coding Standards.) 8341a30de1fSmrgbindir='${exec_prefix}/bin' 8351a30de1fSmrgsbindir='${exec_prefix}/sbin' 8361a30de1fSmrglibexecdir='${exec_prefix}/libexec' 8371a30de1fSmrgdatarootdir='${prefix}/share' 8381a30de1fSmrgdatadir='${datarootdir}' 8391a30de1fSmrgsysconfdir='${prefix}/etc' 8401a30de1fSmrgsharedstatedir='${prefix}/com' 8411a30de1fSmrglocalstatedir='${prefix}/var' 8426eaa481cSmrgrunstatedir='${localstatedir}/run' 8431a30de1fSmrgincludedir='${prefix}/include' 8441a30de1fSmrgoldincludedir='/usr/include' 8451a30de1fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8461a30de1fSmrginfodir='${datarootdir}/info' 8471a30de1fSmrghtmldir='${docdir}' 8481a30de1fSmrgdvidir='${docdir}' 8491a30de1fSmrgpdfdir='${docdir}' 8501a30de1fSmrgpsdir='${docdir}' 8511a30de1fSmrglibdir='${exec_prefix}/lib' 8521a30de1fSmrglocaledir='${datarootdir}/locale' 8531a30de1fSmrgmandir='${datarootdir}/man' 8541a30de1fSmrg 8551a30de1fSmrgac_prev= 8561a30de1fSmrgac_dashdash= 8571a30de1fSmrgfor ac_option 8581a30de1fSmrgdo 8591a30de1fSmrg # If the previous option needs an argument, assign it. 8601a30de1fSmrg if test -n "$ac_prev"; then 8611a30de1fSmrg eval $ac_prev=\$ac_option 8621a30de1fSmrg ac_prev= 8631a30de1fSmrg continue 8641a30de1fSmrg fi 8651a30de1fSmrg 8661a30de1fSmrg case $ac_option in 867ce62200cSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868ce62200cSmrg *=) ac_optarg= ;; 869ce62200cSmrg *) ac_optarg=yes ;; 8701a30de1fSmrg esac 8711a30de1fSmrg 8721a30de1fSmrg case $ac_dashdash$ac_option in 8731a30de1fSmrg --) 8741a30de1fSmrg ac_dashdash=yes ;; 8751a30de1fSmrg 8761a30de1fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8771a30de1fSmrg ac_prev=bindir ;; 8781a30de1fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8791a30de1fSmrg bindir=$ac_optarg ;; 8801a30de1fSmrg 8811a30de1fSmrg -build | --build | --buil | --bui | --bu) 8821a30de1fSmrg ac_prev=build_alias ;; 8831a30de1fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8841a30de1fSmrg build_alias=$ac_optarg ;; 8851a30de1fSmrg 8861a30de1fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8871a30de1fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8881a30de1fSmrg ac_prev=cache_file ;; 8891a30de1fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8901a30de1fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8911a30de1fSmrg cache_file=$ac_optarg ;; 8921a30de1fSmrg 8931a30de1fSmrg --config-cache | -C) 8941a30de1fSmrg cache_file=config.cache ;; 8951a30de1fSmrg 8961a30de1fSmrg -datadir | --datadir | --datadi | --datad) 8971a30de1fSmrg ac_prev=datadir ;; 8981a30de1fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8991a30de1fSmrg datadir=$ac_optarg ;; 9001a30de1fSmrg 9011a30de1fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 9021a30de1fSmrg | --dataroo | --dataro | --datar) 9031a30de1fSmrg ac_prev=datarootdir ;; 9041a30de1fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 9051a30de1fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 9061a30de1fSmrg datarootdir=$ac_optarg ;; 9071a30de1fSmrg 9081a30de1fSmrg -disable-* | --disable-*) 909b7fb5eacSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9101a30de1fSmrg # Reject names that are not valid shell variable names. 911b7fb5eacSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9126eaa481cSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 913b7fb5eacSmrg ac_useropt_orig=$ac_useropt 9146eaa481cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 915b7fb5eacSmrg case $ac_user_opts in 916b7fb5eacSmrg *" 917b7fb5eacSmrg"enable_$ac_useropt" 918b7fb5eacSmrg"*) ;; 919b7fb5eacSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920b7fb5eacSmrg ac_unrecognized_sep=', ';; 921b7fb5eacSmrg esac 922b7fb5eacSmrg eval enable_$ac_useropt=no ;; 9231a30de1fSmrg 9241a30de1fSmrg -docdir | --docdir | --docdi | --doc | --do) 9251a30de1fSmrg ac_prev=docdir ;; 9261a30de1fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9271a30de1fSmrg docdir=$ac_optarg ;; 9281a30de1fSmrg 9291a30de1fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9301a30de1fSmrg ac_prev=dvidir ;; 9311a30de1fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9321a30de1fSmrg dvidir=$ac_optarg ;; 9331a30de1fSmrg 9341a30de1fSmrg -enable-* | --enable-*) 935b7fb5eacSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9361a30de1fSmrg # Reject names that are not valid shell variable names. 937b7fb5eacSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9386eaa481cSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 939b7fb5eacSmrg ac_useropt_orig=$ac_useropt 9406eaa481cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 941b7fb5eacSmrg case $ac_user_opts in 942b7fb5eacSmrg *" 943b7fb5eacSmrg"enable_$ac_useropt" 944b7fb5eacSmrg"*) ;; 945b7fb5eacSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946b7fb5eacSmrg ac_unrecognized_sep=', ';; 947b7fb5eacSmrg esac 948b7fb5eacSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9491a30de1fSmrg 9501a30de1fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9511a30de1fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9521a30de1fSmrg | --exec | --exe | --ex) 9531a30de1fSmrg ac_prev=exec_prefix ;; 9541a30de1fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9551a30de1fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9561a30de1fSmrg | --exec=* | --exe=* | --ex=*) 9571a30de1fSmrg exec_prefix=$ac_optarg ;; 9581a30de1fSmrg 9591a30de1fSmrg -gas | --gas | --ga | --g) 9601a30de1fSmrg # Obsolete; use --with-gas. 9611a30de1fSmrg with_gas=yes ;; 9621a30de1fSmrg 9631a30de1fSmrg -help | --help | --hel | --he | -h) 9641a30de1fSmrg ac_init_help=long ;; 9651a30de1fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9661a30de1fSmrg ac_init_help=recursive ;; 9671a30de1fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9681a30de1fSmrg ac_init_help=short ;; 9691a30de1fSmrg 9701a30de1fSmrg -host | --host | --hos | --ho) 9711a30de1fSmrg ac_prev=host_alias ;; 9721a30de1fSmrg -host=* | --host=* | --hos=* | --ho=*) 9731a30de1fSmrg host_alias=$ac_optarg ;; 9741a30de1fSmrg 9751a30de1fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9761a30de1fSmrg ac_prev=htmldir ;; 9771a30de1fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9781a30de1fSmrg | --ht=*) 9791a30de1fSmrg htmldir=$ac_optarg ;; 9801a30de1fSmrg 9811a30de1fSmrg -includedir | --includedir | --includedi | --included | --include \ 9821a30de1fSmrg | --includ | --inclu | --incl | --inc) 9831a30de1fSmrg ac_prev=includedir ;; 9841a30de1fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9851a30de1fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9861a30de1fSmrg includedir=$ac_optarg ;; 9871a30de1fSmrg 9881a30de1fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9891a30de1fSmrg ac_prev=infodir ;; 9901a30de1fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9911a30de1fSmrg infodir=$ac_optarg ;; 9921a30de1fSmrg 9931a30de1fSmrg -libdir | --libdir | --libdi | --libd) 9941a30de1fSmrg ac_prev=libdir ;; 9951a30de1fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9961a30de1fSmrg libdir=$ac_optarg ;; 9971a30de1fSmrg 9981a30de1fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9991a30de1fSmrg | --libexe | --libex | --libe) 10001a30de1fSmrg ac_prev=libexecdir ;; 10011a30de1fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 10021a30de1fSmrg | --libexe=* | --libex=* | --libe=*) 10031a30de1fSmrg libexecdir=$ac_optarg ;; 10041a30de1fSmrg 10051a30de1fSmrg -localedir | --localedir | --localedi | --localed | --locale) 10061a30de1fSmrg ac_prev=localedir ;; 10071a30de1fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 10081a30de1fSmrg localedir=$ac_optarg ;; 10091a30de1fSmrg 10101a30de1fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 10111a30de1fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 10121a30de1fSmrg ac_prev=localstatedir ;; 10131a30de1fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10141a30de1fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10151a30de1fSmrg localstatedir=$ac_optarg ;; 10161a30de1fSmrg 10171a30de1fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10181a30de1fSmrg ac_prev=mandir ;; 10191a30de1fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10201a30de1fSmrg mandir=$ac_optarg ;; 10211a30de1fSmrg 10221a30de1fSmrg -nfp | --nfp | --nf) 10231a30de1fSmrg # Obsolete; use --without-fp. 10241a30de1fSmrg with_fp=no ;; 10251a30de1fSmrg 10261a30de1fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10271a30de1fSmrg | --no-cr | --no-c | -n) 10281a30de1fSmrg no_create=yes ;; 10291a30de1fSmrg 10301a30de1fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10311a30de1fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10321a30de1fSmrg no_recursion=yes ;; 10331a30de1fSmrg 10341a30de1fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10351a30de1fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10361a30de1fSmrg | --oldin | --oldi | --old | --ol | --o) 10371a30de1fSmrg ac_prev=oldincludedir ;; 10381a30de1fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10391a30de1fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10401a30de1fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10411a30de1fSmrg oldincludedir=$ac_optarg ;; 10421a30de1fSmrg 10431a30de1fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10441a30de1fSmrg ac_prev=prefix ;; 10451a30de1fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10461a30de1fSmrg prefix=$ac_optarg ;; 10471a30de1fSmrg 10481a30de1fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10491a30de1fSmrg | --program-pre | --program-pr | --program-p) 10501a30de1fSmrg ac_prev=program_prefix ;; 10511a30de1fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10521a30de1fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10531a30de1fSmrg program_prefix=$ac_optarg ;; 10541a30de1fSmrg 10551a30de1fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10561a30de1fSmrg | --program-suf | --program-su | --program-s) 10571a30de1fSmrg ac_prev=program_suffix ;; 10581a30de1fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10591a30de1fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10601a30de1fSmrg program_suffix=$ac_optarg ;; 10611a30de1fSmrg 10621a30de1fSmrg -program-transform-name | --program-transform-name \ 10631a30de1fSmrg | --program-transform-nam | --program-transform-na \ 10641a30de1fSmrg | --program-transform-n | --program-transform- \ 10651a30de1fSmrg | --program-transform | --program-transfor \ 10661a30de1fSmrg | --program-transfo | --program-transf \ 10671a30de1fSmrg | --program-trans | --program-tran \ 10681a30de1fSmrg | --progr-tra | --program-tr | --program-t) 10691a30de1fSmrg ac_prev=program_transform_name ;; 10701a30de1fSmrg -program-transform-name=* | --program-transform-name=* \ 10711a30de1fSmrg | --program-transform-nam=* | --program-transform-na=* \ 10721a30de1fSmrg | --program-transform-n=* | --program-transform-=* \ 10731a30de1fSmrg | --program-transform=* | --program-transfor=* \ 10741a30de1fSmrg | --program-transfo=* | --program-transf=* \ 10751a30de1fSmrg | --program-trans=* | --program-tran=* \ 10761a30de1fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10771a30de1fSmrg program_transform_name=$ac_optarg ;; 10781a30de1fSmrg 10791a30de1fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10801a30de1fSmrg ac_prev=pdfdir ;; 10811a30de1fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10821a30de1fSmrg pdfdir=$ac_optarg ;; 10831a30de1fSmrg 10841a30de1fSmrg -psdir | --psdir | --psdi | --psd | --ps) 10851a30de1fSmrg ac_prev=psdir ;; 10861a30de1fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10871a30de1fSmrg psdir=$ac_optarg ;; 10881a30de1fSmrg 10891a30de1fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10901a30de1fSmrg | -silent | --silent | --silen | --sile | --sil) 10911a30de1fSmrg silent=yes ;; 10921a30de1fSmrg 10936eaa481cSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 10946eaa481cSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 10956eaa481cSmrg | --run | --ru | --r) 10966eaa481cSmrg ac_prev=runstatedir ;; 10976eaa481cSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 10986eaa481cSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 10996eaa481cSmrg | --run=* | --ru=* | --r=*) 11006eaa481cSmrg runstatedir=$ac_optarg ;; 11016eaa481cSmrg 11021a30de1fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 11031a30de1fSmrg ac_prev=sbindir ;; 11041a30de1fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 11051a30de1fSmrg | --sbi=* | --sb=*) 11061a30de1fSmrg sbindir=$ac_optarg ;; 11071a30de1fSmrg 11081a30de1fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 11091a30de1fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11101a30de1fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 11111a30de1fSmrg | --sha | --sh) 11121a30de1fSmrg ac_prev=sharedstatedir ;; 11131a30de1fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11141a30de1fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11151a30de1fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11161a30de1fSmrg | --sha=* | --sh=*) 11171a30de1fSmrg sharedstatedir=$ac_optarg ;; 11181a30de1fSmrg 11191a30de1fSmrg -site | --site | --sit) 11201a30de1fSmrg ac_prev=site ;; 11211a30de1fSmrg -site=* | --site=* | --sit=*) 11221a30de1fSmrg site=$ac_optarg ;; 11231a30de1fSmrg 11241a30de1fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11251a30de1fSmrg ac_prev=srcdir ;; 11261a30de1fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11271a30de1fSmrg srcdir=$ac_optarg ;; 11281a30de1fSmrg 11291a30de1fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11301a30de1fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 11311a30de1fSmrg ac_prev=sysconfdir ;; 11321a30de1fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11331a30de1fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11341a30de1fSmrg sysconfdir=$ac_optarg ;; 11351a30de1fSmrg 11361a30de1fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 11371a30de1fSmrg ac_prev=target_alias ;; 11381a30de1fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11391a30de1fSmrg target_alias=$ac_optarg ;; 11401a30de1fSmrg 11411a30de1fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11421a30de1fSmrg verbose=yes ;; 11431a30de1fSmrg 11441a30de1fSmrg -version | --version | --versio | --versi | --vers | -V) 11451a30de1fSmrg ac_init_version=: ;; 11461a30de1fSmrg 11471a30de1fSmrg -with-* | --with-*) 1148b7fb5eacSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11491a30de1fSmrg # Reject names that are not valid shell variable names. 1150b7fb5eacSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11516eaa481cSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1152b7fb5eacSmrg ac_useropt_orig=$ac_useropt 11536eaa481cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1154b7fb5eacSmrg case $ac_user_opts in 1155b7fb5eacSmrg *" 1156b7fb5eacSmrg"with_$ac_useropt" 1157b7fb5eacSmrg"*) ;; 1158b7fb5eacSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159b7fb5eacSmrg ac_unrecognized_sep=', ';; 1160b7fb5eacSmrg esac 1161b7fb5eacSmrg eval with_$ac_useropt=\$ac_optarg ;; 11621a30de1fSmrg 11631a30de1fSmrg -without-* | --without-*) 1164b7fb5eacSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11651a30de1fSmrg # Reject names that are not valid shell variable names. 1166b7fb5eacSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11676eaa481cSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1168b7fb5eacSmrg ac_useropt_orig=$ac_useropt 11696eaa481cSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1170b7fb5eacSmrg case $ac_user_opts in 1171b7fb5eacSmrg *" 1172b7fb5eacSmrg"with_$ac_useropt" 1173b7fb5eacSmrg"*) ;; 1174b7fb5eacSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175b7fb5eacSmrg ac_unrecognized_sep=', ';; 1176b7fb5eacSmrg esac 1177b7fb5eacSmrg eval with_$ac_useropt=no ;; 11781a30de1fSmrg 11791a30de1fSmrg --x) 11801a30de1fSmrg # Obsolete; use --with-x. 11811a30de1fSmrg with_x=yes ;; 11821a30de1fSmrg 11831a30de1fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11841a30de1fSmrg | --x-incl | --x-inc | --x-in | --x-i) 11851a30de1fSmrg ac_prev=x_includes ;; 11861a30de1fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11871a30de1fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11881a30de1fSmrg x_includes=$ac_optarg ;; 11891a30de1fSmrg 11901a30de1fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11911a30de1fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11921a30de1fSmrg ac_prev=x_libraries ;; 11931a30de1fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11941a30de1fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11951a30de1fSmrg x_libraries=$ac_optarg ;; 11961a30de1fSmrg 1197ce62200cSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198ce62200cSmrgTry \`$0 --help' for more information" 11991a30de1fSmrg ;; 12001a30de1fSmrg 12011a30de1fSmrg *=*) 12021a30de1fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 12031a30de1fSmrg # Reject names that are not valid shell variable names. 1204ce62200cSmrg case $ac_envvar in #( 1205ce62200cSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206ce62200cSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207ce62200cSmrg esac 12081a30de1fSmrg eval $ac_envvar=\$ac_optarg 12091a30de1fSmrg export $ac_envvar ;; 12101a30de1fSmrg 12111a30de1fSmrg *) 12121a30de1fSmrg # FIXME: should be removed in autoconf 3.0. 12136eaa481cSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12141a30de1fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12156eaa481cSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1216ce62200cSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12171a30de1fSmrg ;; 12181a30de1fSmrg 12191a30de1fSmrg esac 12201a30de1fSmrgdone 12211a30de1fSmrg 12221a30de1fSmrgif test -n "$ac_prev"; then 12231a30de1fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224ce62200cSmrg as_fn_error $? "missing argument to $ac_option" 12251a30de1fSmrgfi 12261a30de1fSmrg 1227b7fb5eacSmrgif test -n "$ac_unrecognized_opts"; then 1228b7fb5eacSmrg case $enable_option_checking in 1229b7fb5eacSmrg no) ;; 1230ce62200cSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12316eaa481cSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232b7fb5eacSmrg esac 1233b7fb5eacSmrgfi 1234b7fb5eacSmrg 1235b7fb5eacSmrg# Check all directory arguments for consistency. 12361a30de1fSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12371a30de1fSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12381a30de1fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12396eaa481cSmrg libdir localedir mandir runstatedir 12401a30de1fSmrgdo 12411a30de1fSmrg eval ac_val=\$$ac_var 1242b7fb5eacSmrg # Remove trailing slashes. 1243b7fb5eacSmrg case $ac_val in 1244b7fb5eacSmrg */ ) 1245b7fb5eacSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246b7fb5eacSmrg eval $ac_var=\$ac_val;; 1247b7fb5eacSmrg esac 1248b7fb5eacSmrg # Be sure to have absolute directory names. 12491a30de1fSmrg case $ac_val in 12501a30de1fSmrg [\\/$]* | ?:[\\/]* ) continue;; 12511a30de1fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12521a30de1fSmrg esac 1253ce62200cSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12541a30de1fSmrgdone 12551a30de1fSmrg 12561a30de1fSmrg# There might be people who depend on the old broken behavior: `$host' 12571a30de1fSmrg# used to hold the argument of --host etc. 12581a30de1fSmrg# FIXME: To remove some day. 12591a30de1fSmrgbuild=$build_alias 12601a30de1fSmrghost=$host_alias 12611a30de1fSmrgtarget=$target_alias 12621a30de1fSmrg 12631a30de1fSmrg# FIXME: To remove some day. 12641a30de1fSmrgif test "x$host_alias" != x; then 12651a30de1fSmrg if test "x$build_alias" = x; then 12661a30de1fSmrg cross_compiling=maybe 12671a30de1fSmrg elif test "x$build_alias" != "x$host_alias"; then 12681a30de1fSmrg cross_compiling=yes 12691a30de1fSmrg fi 12701a30de1fSmrgfi 12711a30de1fSmrg 12721a30de1fSmrgac_tool_prefix= 12731a30de1fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12741a30de1fSmrg 12751a30de1fSmrgtest "$silent" = yes && exec 6>/dev/null 12761a30de1fSmrg 12771a30de1fSmrg 12781a30de1fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12791a30de1fSmrgac_ls_di=`ls -di .` && 12801a30de1fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281ce62200cSmrg as_fn_error $? "working directory cannot be determined" 12821a30de1fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283ce62200cSmrg as_fn_error $? "pwd does not report name of working directory" 12841a30de1fSmrg 12851a30de1fSmrg 12861a30de1fSmrg# Find the source files, if location was not specified. 12871a30de1fSmrgif test -z "$srcdir"; then 12881a30de1fSmrg ac_srcdir_defaulted=yes 12891a30de1fSmrg # Try the directory containing this script, then the parent directory. 1290b7fb5eacSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1291b7fb5eacSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292b7fb5eacSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1293b7fb5eacSmrg X"$as_myself" : 'X\(//\)$' \| \ 1294b7fb5eacSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12956eaa481cSmrgprintf "%s\n" X"$as_myself" | 12961a30de1fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12971a30de1fSmrg s//\1/ 12981a30de1fSmrg q 12991a30de1fSmrg } 13001a30de1fSmrg /^X\(\/\/\)[^/].*/{ 13011a30de1fSmrg s//\1/ 13021a30de1fSmrg q 13031a30de1fSmrg } 13041a30de1fSmrg /^X\(\/\/\)$/{ 13051a30de1fSmrg s//\1/ 13061a30de1fSmrg q 13071a30de1fSmrg } 13081a30de1fSmrg /^X\(\/\).*/{ 13091a30de1fSmrg s//\1/ 13101a30de1fSmrg q 13111a30de1fSmrg } 13121a30de1fSmrg s/.*/./; q'` 13131a30de1fSmrg srcdir=$ac_confdir 13141a30de1fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 13151a30de1fSmrg srcdir=.. 13161a30de1fSmrg fi 13171a30de1fSmrgelse 13181a30de1fSmrg ac_srcdir_defaulted=no 13191a30de1fSmrgfi 13201a30de1fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 13211a30de1fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322ce62200cSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13231a30de1fSmrgfi 13241a30de1fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 13251a30de1fSmrgac_abs_confdir=`( 1326ce62200cSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13271a30de1fSmrg pwd)` 13281a30de1fSmrg# When building in place, set srcdir=. 13291a30de1fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 13301a30de1fSmrg srcdir=. 13311a30de1fSmrgfi 13321a30de1fSmrg# Remove unnecessary trailing slashes from srcdir. 13331a30de1fSmrg# Double slashes in file names in object file debugging info 13341a30de1fSmrg# mess up M-x gdb in Emacs. 13351a30de1fSmrgcase $srcdir in 13361a30de1fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13371a30de1fSmrgesac 13381a30de1fSmrgfor ac_var in $ac_precious_vars; do 13391a30de1fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13401a30de1fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13411a30de1fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13421a30de1fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13431a30de1fSmrgdone 13441a30de1fSmrg 13451a30de1fSmrg# 13461a30de1fSmrg# Report the --help message. 13471a30de1fSmrg# 13481a30de1fSmrgif test "$ac_init_help" = "long"; then 13491a30de1fSmrg # Omit some internal or obsolete options to make the list less imposing. 13501a30de1fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 13511a30de1fSmrg cat <<_ACEOF 13526eaa481cSmrg\`configure' configures xmodmap 1.0.11 to adapt to many kinds of systems. 13531a30de1fSmrg 13541a30de1fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13551a30de1fSmrg 13561a30de1fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13571a30de1fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13581a30de1fSmrg 13591a30de1fSmrgDefaults for the options are specified in brackets. 13601a30de1fSmrg 13611a30de1fSmrgConfiguration: 13621a30de1fSmrg -h, --help display this help and exit 13631a30de1fSmrg --help=short display options specific to this package 13641a30de1fSmrg --help=recursive display the short help of all the included packages 13651a30de1fSmrg -V, --version display version information and exit 1366ce62200cSmrg -q, --quiet, --silent do not print \`checking ...' messages 13671a30de1fSmrg --cache-file=FILE cache test results in FILE [disabled] 13681a30de1fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13691a30de1fSmrg -n, --no-create do not create output files 13701a30de1fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13711a30de1fSmrg 13721a30de1fSmrgInstallation directories: 13731a30de1fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1374b7fb5eacSmrg [$ac_default_prefix] 13751a30de1fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376b7fb5eacSmrg [PREFIX] 13771a30de1fSmrg 13781a30de1fSmrgBy default, \`make install' will install all the files in 13791a30de1fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13801a30de1fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13811a30de1fSmrgfor instance \`--prefix=\$HOME'. 13821a30de1fSmrg 13831a30de1fSmrgFor better control, use the options below. 13841a30de1fSmrg 13851a30de1fSmrgFine tuning of the installation directories: 1386b7fb5eacSmrg --bindir=DIR user executables [EPREFIX/bin] 1387b7fb5eacSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1388b7fb5eacSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1389b7fb5eacSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390b7fb5eacSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391b7fb5eacSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13926eaa481cSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1393b7fb5eacSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1394b7fb5eacSmrg --includedir=DIR C header files [PREFIX/include] 1395b7fb5eacSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396b7fb5eacSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397b7fb5eacSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398b7fb5eacSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1399b7fb5eacSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400b7fb5eacSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1401b7fb5eacSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xmodmap] 1402b7fb5eacSmrg --htmldir=DIR html documentation [DOCDIR] 1403b7fb5eacSmrg --dvidir=DIR dvi documentation [DOCDIR] 1404b7fb5eacSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1405b7fb5eacSmrg --psdir=DIR ps documentation [DOCDIR] 14061a30de1fSmrg_ACEOF 14071a30de1fSmrg 14081a30de1fSmrg cat <<\_ACEOF 14091a30de1fSmrg 14101a30de1fSmrgProgram names: 14111a30de1fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 14121a30de1fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 14131a30de1fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14141a30de1fSmrg 14151a30de1fSmrgSystem types: 14161a30de1fSmrg --build=BUILD configure for building on BUILD [guessed] 14171a30de1fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 14181a30de1fSmrg_ACEOF 14191a30de1fSmrgfi 14201a30de1fSmrg 14211a30de1fSmrgif test -n "$ac_init_help"; then 14221a30de1fSmrg case $ac_init_help in 14236eaa481cSmrg short | recursive ) echo "Configuration of xmodmap 1.0.11:";; 14241a30de1fSmrg esac 14251a30de1fSmrg cat <<\_ACEOF 14261a30de1fSmrg 14271a30de1fSmrgOptional Features: 1428b7fb5eacSmrg --disable-option-checking ignore unrecognized --enable/--with options 14291a30de1fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14301a30de1fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431a733a5bfSmrg --enable-dependency-tracking 1432a733a5bfSmrg do not reject slow dependency extractors 1433a733a5bfSmrg --disable-dependency-tracking 1434a733a5bfSmrg speeds up one-time build 1435a733a5bfSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 1436a733a5bfSmrg --disable-silent-rules verbose build output (undo: "make V=0") 1437a733a5bfSmrg --disable-selective-werror 1438a733a5bfSmrg Turn off selective compiler errors. (default: 1439a733a5bfSmrg enabled) 1440b7fb5eacSmrg --enable-strict-compilation 1441b7fb5eacSmrg Enable all warnings from compiler and make them 1442b7fb5eacSmrg errors (default: disabled) 14431a30de1fSmrg 14441a30de1fSmrgOptional Packages: 14451a30de1fSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14461a30de1fSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447b7fb5eacSmrg --with-lint Use a lint-style source code checker (default: 1448b7fb5eacSmrg disabled) 14491a30de1fSmrg 14501a30de1fSmrgSome influential environment variables: 14511a30de1fSmrg CC C compiler command 14521a30de1fSmrg CFLAGS C compiler flags 14531a30de1fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14541a30de1fSmrg nonstandard directory <lib dir> 14551a30de1fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1456ce62200cSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14571a30de1fSmrg you have headers in a nonstandard directory <include dir> 14581a30de1fSmrg PKG_CONFIG path to pkg-config utility 1459423b239cSmrg PKG_CONFIG_PATH 1460423b239cSmrg directories to add to pkg-config's search path 1461423b239cSmrg PKG_CONFIG_LIBDIR 1462423b239cSmrg path overriding pkg-config's built-in search path 1463b7fb5eacSmrg XMODMAP_CFLAGS 1464b7fb5eacSmrg C compiler flags for XMODMAP, overriding pkg-config 1465b7fb5eacSmrg XMODMAP_LIBS 1466b7fb5eacSmrg linker flags for XMODMAP, overriding pkg-config 1467ce62200cSmrg LINT Path to a lint-style command 1468ce62200cSmrg LINT_FLAGS Flags for the lint-style command 14691a30de1fSmrg 14701a30de1fSmrgUse these variables to override the choices made by `configure' or to help 14711a30de1fSmrgit to find libraries and programs with nonstandard names/locations. 14721a30de1fSmrg 1473423b239cSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>. 14741a30de1fSmrg_ACEOF 14751a30de1fSmrgac_status=$? 14761a30de1fSmrgfi 14771a30de1fSmrg 14781a30de1fSmrgif test "$ac_init_help" = "recursive"; then 14791a30de1fSmrg # If there are subdirs, report their specific --help. 14801a30de1fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481b7fb5eacSmrg test -d "$ac_dir" || 1482b7fb5eacSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483b7fb5eacSmrg continue 14841a30de1fSmrg ac_builddir=. 14851a30de1fSmrg 14861a30de1fSmrgcase "$ac_dir" in 14871a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14881a30de1fSmrg*) 14896eaa481cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14901a30de1fSmrg # A ".." for each directory in $ac_dir_suffix. 14916eaa481cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14921a30de1fSmrg case $ac_top_builddir_sub in 14931a30de1fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14941a30de1fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14951a30de1fSmrg esac ;; 14961a30de1fSmrgesac 14971a30de1fSmrgac_abs_top_builddir=$ac_pwd 14981a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14991a30de1fSmrg# for backward compatibility: 15001a30de1fSmrgac_top_builddir=$ac_top_build_prefix 15011a30de1fSmrg 15021a30de1fSmrgcase $srcdir in 15031a30de1fSmrg .) # We are building in place. 15041a30de1fSmrg ac_srcdir=. 15051a30de1fSmrg ac_top_srcdir=$ac_top_builddir_sub 15061a30de1fSmrg ac_abs_top_srcdir=$ac_pwd ;; 15071a30de1fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 15081a30de1fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 15091a30de1fSmrg ac_top_srcdir=$srcdir 15101a30de1fSmrg ac_abs_top_srcdir=$srcdir ;; 15111a30de1fSmrg *) # Relative name. 15121a30de1fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15131a30de1fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 15141a30de1fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15151a30de1fSmrgesac 15161a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15171a30de1fSmrg 15181a30de1fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 15196eaa481cSmrg # Check for configure.gnu first; this name is used for a wrapper for 15206eaa481cSmrg # Metaconfig's "Configure" on case-insensitive file systems. 15211a30de1fSmrg if test -f "$ac_srcdir/configure.gnu"; then 15221a30de1fSmrg echo && 15231a30de1fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15241a30de1fSmrg elif test -f "$ac_srcdir/configure"; then 15251a30de1fSmrg echo && 15261a30de1fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 15271a30de1fSmrg else 15286eaa481cSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15291a30de1fSmrg fi || ac_status=$? 15301a30de1fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 15311a30de1fSmrg done 15321a30de1fSmrgfi 15331a30de1fSmrg 15341a30de1fSmrgtest -n "$ac_init_help" && exit $ac_status 15351a30de1fSmrgif $ac_init_version; then 15361a30de1fSmrg cat <<\_ACEOF 15376eaa481cSmrgxmodmap configure 1.0.11 15386eaa481cSmrggenerated by GNU Autoconf 2.71 15391a30de1fSmrg 15406eaa481cSmrgCopyright (C) 2021 Free Software Foundation, Inc. 15411a30de1fSmrgThis configure script is free software; the Free Software Foundation 15421a30de1fSmrggives unlimited permission to copy, distribute and modify it. 15431a30de1fSmrg_ACEOF 15441a30de1fSmrg exit 15451a30de1fSmrgfi 15461a30de1fSmrg 1547ce62200cSmrg## ------------------------ ## 1548ce62200cSmrg## Autoconf initialization. ## 1549ce62200cSmrg## ------------------------ ## 15501a30de1fSmrg 1551ce62200cSmrg# ac_fn_c_try_compile LINENO 1552ce62200cSmrg# -------------------------- 1553ce62200cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ce62200cSmrgac_fn_c_try_compile () 15551a30de1fSmrg{ 1556ce62200cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15576eaa481cSmrg rm -f conftest.$ac_objext conftest.beam 1558ce62200cSmrg if { { ac_try="$ac_compile" 1559ce62200cSmrgcase "(($ac_try" in 1560ce62200cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561ce62200cSmrg *) ac_try_echo=$ac_try;; 1562ce62200cSmrgesac 1563ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15646eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 1565ce62200cSmrg (eval "$ac_compile") 2>conftest.err 1566ce62200cSmrg ac_status=$? 1567ce62200cSmrg if test -s conftest.err; then 1568ce62200cSmrg grep -v '^ *+' conftest.err >conftest.er1 1569ce62200cSmrg cat conftest.er1 >&5 1570ce62200cSmrg mv -f conftest.er1 conftest.err 1571ce62200cSmrg fi 15726eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573ce62200cSmrg test $ac_status = 0; } && { 1574ce62200cSmrg test -z "$ac_c_werror_flag" || 1575ce62200cSmrg test ! -s conftest.err 15766eaa481cSmrg } && test -s conftest.$ac_objext 15776eaa481cSmrgthen : 1578ce62200cSmrg ac_retval=0 15796eaa481cSmrgelse $as_nop 15806eaa481cSmrg printf "%s\n" "$as_me: failed program was:" >&5 1581ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5 15821a30de1fSmrg 1583ce62200cSmrg ac_retval=1 1584ce62200cSmrgfi 1585ce62200cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586ce62200cSmrg as_fn_set_status $ac_retval 15871a30de1fSmrg 1588ce62200cSmrg} # ac_fn_c_try_compile 1589ce62200cSmrg 1590ce62200cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1591ce62200cSmrg# ------------------------------------------------------- 1592ce62200cSmrg# Tests whether HEADER exists and can be compiled using the include files in 1593ce62200cSmrg# INCLUDES, setting the cache variable VAR accordingly. 1594ce62200cSmrgac_fn_c_check_header_compile () 1595ce62200cSmrg{ 1596ce62200cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15976eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 15986eaa481cSmrgprintf %s "checking for $2... " >&6; } 15996eaa481cSmrgif eval test \${$3+y} 16006eaa481cSmrgthen : 16016eaa481cSmrg printf %s "(cached) " >&6 16026eaa481cSmrgelse $as_nop 1603ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604ce62200cSmrg/* end confdefs.h. */ 1605ce62200cSmrg$4 1606ce62200cSmrg#include <$2> 1607ce62200cSmrg_ACEOF 16086eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 16096eaa481cSmrgthen : 1610ce62200cSmrg eval "$3=yes" 16116eaa481cSmrgelse $as_nop 1612ce62200cSmrg eval "$3=no" 1613ce62200cSmrgfi 16146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1615ce62200cSmrgfi 1616ce62200cSmrgeval ac_res=\$$3 16176eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16186eaa481cSmrgprintf "%s\n" "$ac_res" >&6; } 1619ce62200cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620ce62200cSmrg 1621ce62200cSmrg} # ac_fn_c_check_header_compile 1622ce62200cSmrg 16236eaa481cSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 16246eaa481cSmrg# ------------------------------------------------------------------ 1625a733a5bfSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 16266eaa481cSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 16276eaa481cSmrgac_fn_check_decl () 1628a733a5bfSmrg{ 1629a733a5bfSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630a733a5bfSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 16316eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 16326eaa481cSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 16336eaa481cSmrgif eval test \${$3+y} 16346eaa481cSmrgthen : 16356eaa481cSmrg printf %s "(cached) " >&6 16366eaa481cSmrgelse $as_nop 1637a733a5bfSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 16386eaa481cSmrg eval ac_save_FLAGS=\$$6 16396eaa481cSmrg as_fn_append $6 " $5" 1640a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641a733a5bfSmrg/* end confdefs.h. */ 1642a733a5bfSmrg$4 1643a733a5bfSmrgint 16446eaa481cSmrgmain (void) 1645a733a5bfSmrg{ 1646a733a5bfSmrg#ifndef $as_decl_name 1647a733a5bfSmrg#ifdef __cplusplus 1648a733a5bfSmrg (void) $as_decl_use; 1649a733a5bfSmrg#else 1650a733a5bfSmrg (void) $as_decl_name; 1651a733a5bfSmrg#endif 1652a733a5bfSmrg#endif 1653a733a5bfSmrg 1654a733a5bfSmrg ; 1655a733a5bfSmrg return 0; 1656a733a5bfSmrg} 1657a733a5bfSmrg_ACEOF 16586eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 16596eaa481cSmrgthen : 1660a733a5bfSmrg eval "$3=yes" 16616eaa481cSmrgelse $as_nop 1662a733a5bfSmrg eval "$3=no" 1663a733a5bfSmrgfi 16646eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16656eaa481cSmrg eval $6=\$ac_save_FLAGS 16666eaa481cSmrg 1667a733a5bfSmrgfi 1668a733a5bfSmrgeval ac_res=\$$3 16696eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16706eaa481cSmrgprintf "%s\n" "$ac_res" >&6; } 1671a733a5bfSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672a733a5bfSmrg 16736eaa481cSmrg} # ac_fn_check_decl 1674a733a5bfSmrg 1675ce62200cSmrg# ac_fn_c_try_link LINENO 1676ce62200cSmrg# ----------------------- 1677ce62200cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1678ce62200cSmrgac_fn_c_try_link () 1679ce62200cSmrg{ 1680ce62200cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16816eaa481cSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1682ce62200cSmrg if { { ac_try="$ac_link" 1683ce62200cSmrgcase "(($ac_try" in 1684ce62200cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685ce62200cSmrg *) ac_try_echo=$ac_try;; 1686ce62200cSmrgesac 1687ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16886eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 1689ce62200cSmrg (eval "$ac_link") 2>conftest.err 1690ce62200cSmrg ac_status=$? 1691ce62200cSmrg if test -s conftest.err; then 1692ce62200cSmrg grep -v '^ *+' conftest.err >conftest.er1 1693ce62200cSmrg cat conftest.er1 >&5 1694ce62200cSmrg mv -f conftest.er1 conftest.err 1695ce62200cSmrg fi 16966eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697ce62200cSmrg test $ac_status = 0; } && { 1698ce62200cSmrg test -z "$ac_c_werror_flag" || 1699ce62200cSmrg test ! -s conftest.err 1700ce62200cSmrg } && test -s conftest$ac_exeext && { 1701ce62200cSmrg test "$cross_compiling" = yes || 17021b983734Smrg test -x conftest$ac_exeext 17036eaa481cSmrg } 17046eaa481cSmrgthen : 1705ce62200cSmrg ac_retval=0 17066eaa481cSmrgelse $as_nop 17076eaa481cSmrg printf "%s\n" "$as_me: failed program was:" >&5 1708ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5 1709ce62200cSmrg 1710ce62200cSmrg ac_retval=1 1711ce62200cSmrgfi 1712ce62200cSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713ce62200cSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714ce62200cSmrg # interfere with the next link command; also delete a directory that is 1715ce62200cSmrg # left behind by Apple's compiler. We do this before executing the actions. 1716ce62200cSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717ce62200cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718ce62200cSmrg as_fn_set_status $ac_retval 1719ce62200cSmrg 1720ce62200cSmrg} # ac_fn_c_try_link 1721ce62200cSmrg 1722ce62200cSmrg# ac_fn_c_check_func LINENO FUNC VAR 1723ce62200cSmrg# ---------------------------------- 1724ce62200cSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1725ce62200cSmrgac_fn_c_check_func () 1726ce62200cSmrg{ 1727ce62200cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17286eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17296eaa481cSmrgprintf %s "checking for $2... " >&6; } 17306eaa481cSmrgif eval test \${$3+y} 17316eaa481cSmrgthen : 17326eaa481cSmrg printf %s "(cached) " >&6 17336eaa481cSmrgelse $as_nop 1734ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735ce62200cSmrg/* end confdefs.h. */ 1736ce62200cSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1737ce62200cSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1738ce62200cSmrg#define $2 innocuous_$2 1739ce62200cSmrg 1740ce62200cSmrg/* System header to define __stub macros and hopefully few prototypes, 17416eaa481cSmrg which can conflict with char $2 (); below. */ 1742ce62200cSmrg 17436eaa481cSmrg#include <limits.h> 1744ce62200cSmrg#undef $2 1745ce62200cSmrg 1746ce62200cSmrg/* Override any GCC internal prototype to avoid an error. 1747ce62200cSmrg Use char because int might match the return type of a GCC 1748ce62200cSmrg builtin and then its argument prototype would still apply. */ 1749ce62200cSmrg#ifdef __cplusplus 1750ce62200cSmrgextern "C" 1751ce62200cSmrg#endif 1752ce62200cSmrgchar $2 (); 1753ce62200cSmrg/* The GNU C library defines this for functions which it implements 1754ce62200cSmrg to always fail with ENOSYS. Some functions are actually named 1755ce62200cSmrg something starting with __ and the normal name is an alias. */ 1756ce62200cSmrg#if defined __stub_$2 || defined __stub___$2 1757ce62200cSmrgchoke me 1758ce62200cSmrg#endif 1759ce62200cSmrg 1760ce62200cSmrgint 17616eaa481cSmrgmain (void) 1762ce62200cSmrg{ 1763ce62200cSmrgreturn $2 (); 1764ce62200cSmrg ; 1765ce62200cSmrg return 0; 1766ce62200cSmrg} 1767ce62200cSmrg_ACEOF 17686eaa481cSmrgif ac_fn_c_try_link "$LINENO" 17696eaa481cSmrgthen : 1770ce62200cSmrg eval "$3=yes" 17716eaa481cSmrgelse $as_nop 1772ce62200cSmrg eval "$3=no" 1773ce62200cSmrgfi 17746eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1775ce62200cSmrg conftest$ac_exeext conftest.$ac_ext 1776ce62200cSmrgfi 1777ce62200cSmrgeval ac_res=\$$3 17786eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17796eaa481cSmrgprintf "%s\n" "$ac_res" >&6; } 1780ce62200cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781ce62200cSmrg 1782ce62200cSmrg} # ac_fn_c_check_func 17836eaa481cSmrgac_configure_args_raw= 17846eaa481cSmrgfor ac_arg 17856eaa481cSmrgdo 17866eaa481cSmrg case $ac_arg in 17876eaa481cSmrg *\'*) 17886eaa481cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17896eaa481cSmrg esac 17906eaa481cSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 17916eaa481cSmrgdone 17926eaa481cSmrg 17936eaa481cSmrgcase $ac_configure_args_raw in 17946eaa481cSmrg *$as_nl*) 17956eaa481cSmrg ac_safe_unquote= ;; 17966eaa481cSmrg *) 17976eaa481cSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 17986eaa481cSmrg ac_unsafe_a="$ac_unsafe_z#~" 17996eaa481cSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 18006eaa481cSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 18016eaa481cSmrgesac 18026eaa481cSmrg 1803ce62200cSmrgcat >config.log <<_ACEOF 1804ce62200cSmrgThis file contains any messages produced by compilers while 1805ce62200cSmrgrunning configure, to aid debugging if configure makes a mistake. 1806ce62200cSmrg 18076eaa481cSmrgIt was created by xmodmap $as_me 1.0.11, which was 18086eaa481cSmrggenerated by GNU Autoconf 2.71. Invocation command line was 1809ce62200cSmrg 18106eaa481cSmrg $ $0$ac_configure_args_raw 1811ce62200cSmrg 1812ce62200cSmrg_ACEOF 1813ce62200cSmrgexec 5>>config.log 1814ce62200cSmrg{ 1815ce62200cSmrgcat <<_ASUNAME 1816ce62200cSmrg## --------- ## 1817ce62200cSmrg## Platform. ## 1818ce62200cSmrg## --------- ## 1819ce62200cSmrg 1820ce62200cSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1821ce62200cSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1822ce62200cSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1823ce62200cSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1824ce62200cSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1825ce62200cSmrg 1826ce62200cSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1827ce62200cSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1828ce62200cSmrg 1829ce62200cSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1830ce62200cSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1831ce62200cSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1832ce62200cSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1833ce62200cSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1834ce62200cSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1835ce62200cSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1836ce62200cSmrg 1837ce62200cSmrg_ASUNAME 18381a30de1fSmrg 18391a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18401a30de1fSmrgfor as_dir in $PATH 18411a30de1fSmrgdo 18421a30de1fSmrg IFS=$as_save_IFS 18436eaa481cSmrg case $as_dir in #((( 18446eaa481cSmrg '') as_dir=./ ;; 18456eaa481cSmrg */) ;; 18466eaa481cSmrg *) as_dir=$as_dir/ ;; 18476eaa481cSmrg esac 18486eaa481cSmrg printf "%s\n" "PATH: $as_dir" 1849ce62200cSmrg done 18501a30de1fSmrgIFS=$as_save_IFS 18511a30de1fSmrg 18521a30de1fSmrg} >&5 18531a30de1fSmrg 18541a30de1fSmrgcat >&5 <<_ACEOF 18551a30de1fSmrg 18561a30de1fSmrg 18571a30de1fSmrg## ----------- ## 18581a30de1fSmrg## Core tests. ## 18591a30de1fSmrg## ----------- ## 18601a30de1fSmrg 18611a30de1fSmrg_ACEOF 18621a30de1fSmrg 18631a30de1fSmrg 18641a30de1fSmrg# Keep a trace of the command line. 18651a30de1fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 18661a30de1fSmrg# Strip out --silent because we don't want to record it for future runs. 18671a30de1fSmrg# Also quote any args containing shell meta-characters. 18681a30de1fSmrg# Make two passes to allow for proper duplicate-argument suppression. 18691a30de1fSmrgac_configure_args= 18701a30de1fSmrgac_configure_args0= 18711a30de1fSmrgac_configure_args1= 18721a30de1fSmrgac_must_keep_next=false 18731a30de1fSmrgfor ac_pass in 1 2 18741a30de1fSmrgdo 18751a30de1fSmrg for ac_arg 18761a30de1fSmrg do 18771a30de1fSmrg case $ac_arg in 18781a30de1fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18791a30de1fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18801a30de1fSmrg | -silent | --silent | --silen | --sile | --sil) 18811a30de1fSmrg continue ;; 18821a30de1fSmrg *\'*) 18836eaa481cSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18841a30de1fSmrg esac 18851a30de1fSmrg case $ac_pass in 1886ce62200cSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18871a30de1fSmrg 2) 1888ce62200cSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18891a30de1fSmrg if test $ac_must_keep_next = true; then 18901a30de1fSmrg ac_must_keep_next=false # Got value, back to normal. 18911a30de1fSmrg else 18921a30de1fSmrg case $ac_arg in 18931a30de1fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18941a30de1fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18951a30de1fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18961a30de1fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18971a30de1fSmrg case "$ac_configure_args0 " in 18981a30de1fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18991a30de1fSmrg esac 19001a30de1fSmrg ;; 19011a30de1fSmrg -* ) ac_must_keep_next=true ;; 19021a30de1fSmrg esac 19031a30de1fSmrg fi 1904ce62200cSmrg as_fn_append ac_configure_args " '$ac_arg'" 19051a30de1fSmrg ;; 19061a30de1fSmrg esac 19071a30de1fSmrg done 19081a30de1fSmrgdone 1909ce62200cSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1910ce62200cSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19111a30de1fSmrg 19121a30de1fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 19131a30de1fSmrg# config.log. We remove comments because anyway the quotes in there 19141a30de1fSmrg# would cause problems or look ugly. 19151a30de1fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19161a30de1fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19171a30de1fSmrgtrap 'exit_status=$? 19186eaa481cSmrg # Sanitize IFS. 19196eaa481cSmrg IFS=" "" $as_nl" 19201a30de1fSmrg # Save into config.log some information that might help in debugging. 19211a30de1fSmrg { 19221a30de1fSmrg echo 19231a30de1fSmrg 19246eaa481cSmrg printf "%s\n" "## ---------------- ## 19251a30de1fSmrg## Cache variables. ## 1926ce62200cSmrg## ---------------- ##" 19271a30de1fSmrg echo 19281a30de1fSmrg # The following way of writing the cache mishandles newlines in values, 19291a30de1fSmrg( 19301a30de1fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19311a30de1fSmrg eval ac_val=\$$ac_var 19321a30de1fSmrg case $ac_val in #( 19331a30de1fSmrg *${as_nl}*) 19341a30de1fSmrg case $ac_var in #( 19356eaa481cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19366eaa481cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19371a30de1fSmrg esac 19381a30de1fSmrg case $ac_var in #( 19391a30de1fSmrg _ | IFS | as_nl) ;; #( 1940b7fb5eacSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1941ce62200cSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19421a30de1fSmrg esac ;; 19431a30de1fSmrg esac 19441a30de1fSmrg done 19451a30de1fSmrg (set) 2>&1 | 19461a30de1fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19471a30de1fSmrg *${as_nl}ac_space=\ *) 19481a30de1fSmrg sed -n \ 19491a30de1fSmrg "s/'\''/'\''\\\\'\'''\''/g; 19501a30de1fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19511a30de1fSmrg ;; #( 19521a30de1fSmrg *) 19531a30de1fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19541a30de1fSmrg ;; 19551a30de1fSmrg esac | 19561a30de1fSmrg sort 19571a30de1fSmrg) 19581a30de1fSmrg echo 19591a30de1fSmrg 19606eaa481cSmrg printf "%s\n" "## ----------------- ## 19611a30de1fSmrg## Output variables. ## 1962ce62200cSmrg## ----------------- ##" 19631a30de1fSmrg echo 19641a30de1fSmrg for ac_var in $ac_subst_vars 19651a30de1fSmrg do 19661a30de1fSmrg eval ac_val=\$$ac_var 19671a30de1fSmrg case $ac_val in 19686eaa481cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19691a30de1fSmrg esac 19706eaa481cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19711a30de1fSmrg done | sort 19721a30de1fSmrg echo 19731a30de1fSmrg 19741a30de1fSmrg if test -n "$ac_subst_files"; then 19756eaa481cSmrg printf "%s\n" "## ------------------- ## 19761a30de1fSmrg## File substitutions. ## 1977ce62200cSmrg## ------------------- ##" 19781a30de1fSmrg echo 19791a30de1fSmrg for ac_var in $ac_subst_files 19801a30de1fSmrg do 19811a30de1fSmrg eval ac_val=\$$ac_var 19821a30de1fSmrg case $ac_val in 19836eaa481cSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19841a30de1fSmrg esac 19856eaa481cSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19861a30de1fSmrg done | sort 19871a30de1fSmrg echo 19881a30de1fSmrg fi 19891a30de1fSmrg 19901a30de1fSmrg if test -s confdefs.h; then 19916eaa481cSmrg printf "%s\n" "## ----------- ## 19921a30de1fSmrg## confdefs.h. ## 1993ce62200cSmrg## ----------- ##" 19941a30de1fSmrg echo 19951a30de1fSmrg cat confdefs.h 19961a30de1fSmrg echo 19971a30de1fSmrg fi 19981a30de1fSmrg test "$ac_signal" != 0 && 19996eaa481cSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 20006eaa481cSmrg printf "%s\n" "$as_me: exit $exit_status" 20011a30de1fSmrg } >&5 20021a30de1fSmrg rm -f core *.core core.conftest.* && 20031a30de1fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 20041a30de1fSmrg exit $exit_status 20051a30de1fSmrg' 0 20061a30de1fSmrgfor ac_signal in 1 2 13 15; do 2007ce62200cSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20081a30de1fSmrgdone 20091a30de1fSmrgac_signal=0 20101a30de1fSmrg 20111a30de1fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20121a30de1fSmrgrm -f -r conftest* confdefs.h 20131a30de1fSmrg 20146eaa481cSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 2015ce62200cSmrg 20161a30de1fSmrg# Predefined preprocessor variables. 20171a30de1fSmrg 20186eaa481cSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 20191a30de1fSmrg 20206eaa481cSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 20211a30de1fSmrg 20226eaa481cSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 20231a30de1fSmrg 20246eaa481cSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 20251a30de1fSmrg 20266eaa481cSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 20271a30de1fSmrg 20286eaa481cSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2029ce62200cSmrg 20301a30de1fSmrg 20311a30de1fSmrg# Let the site file select an alternate cache file if it wants to. 2032b7fb5eacSmrg# Prefer an explicitly selected file to automatically selected ones. 20331a30de1fSmrgif test -n "$CONFIG_SITE"; then 20346eaa481cSmrg ac_site_files="$CONFIG_SITE" 20351a30de1fSmrgelif test "x$prefix" != xNONE; then 20366eaa481cSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 20371a30de1fSmrgelse 20386eaa481cSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 20391a30de1fSmrgfi 20406eaa481cSmrg 20416eaa481cSmrgfor ac_site_file in $ac_site_files 20421a30de1fSmrgdo 20436eaa481cSmrg case $ac_site_file in #( 20446eaa481cSmrg */*) : 20456eaa481cSmrg ;; #( 20466eaa481cSmrg *) : 20476eaa481cSmrg ac_site_file=./$ac_site_file ;; 20486eaa481cSmrgesac 20496eaa481cSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 20506eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20516eaa481cSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 20521a30de1fSmrg sed 's/^/| /' "$ac_site_file" >&5 2053ce62200cSmrg . "$ac_site_file" \ 20546eaa481cSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20556eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2056ce62200cSmrgas_fn_error $? "failed to load site script $ac_site_file 2057ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 20581a30de1fSmrg fi 20591a30de1fSmrgdone 20601a30de1fSmrg 20611a30de1fSmrgif test -r "$cache_file"; then 2062ce62200cSmrg # Some versions of bash will fail to source /dev/null (special files 2063ce62200cSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2064ce62200cSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20656eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20666eaa481cSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 20671a30de1fSmrg case $cache_file in 20681a30de1fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20691a30de1fSmrg *) . "./$cache_file";; 20701a30de1fSmrg esac 20711a30de1fSmrg fi 20721a30de1fSmrgelse 20736eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20746eaa481cSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 20751a30de1fSmrg >$cache_file 20761a30de1fSmrgfi 20771a30de1fSmrg 20786eaa481cSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 20796eaa481cSmrg# Test code for whether the C compiler supports C89 (global declarations) 20806eaa481cSmrgac_c_conftest_c89_globals=' 20816eaa481cSmrg/* Does the compiler advertise C89 conformance? 20826eaa481cSmrg Do not test the value of __STDC__, because some compilers set it to 0 20836eaa481cSmrg while being otherwise adequately conformant. */ 20846eaa481cSmrg#if !defined __STDC__ 20856eaa481cSmrg# error "Compiler does not advertise C89 conformance" 20866eaa481cSmrg#endif 20876eaa481cSmrg 20886eaa481cSmrg#include <stddef.h> 20896eaa481cSmrg#include <stdarg.h> 20906eaa481cSmrgstruct stat; 20916eaa481cSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 20926eaa481cSmrgstruct buf { int x; }; 20936eaa481cSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 20946eaa481cSmrgstatic char *e (p, i) 20956eaa481cSmrg char **p; 20966eaa481cSmrg int i; 20976eaa481cSmrg{ 20986eaa481cSmrg return p[i]; 20996eaa481cSmrg} 21006eaa481cSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 21016eaa481cSmrg{ 21026eaa481cSmrg char *s; 21036eaa481cSmrg va_list v; 21046eaa481cSmrg va_start (v,p); 21056eaa481cSmrg s = g (p, va_arg (v,int)); 21066eaa481cSmrg va_end (v); 21076eaa481cSmrg return s; 21086eaa481cSmrg} 21096eaa481cSmrg 21106eaa481cSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 21116eaa481cSmrg function prototypes and stuff, but not \xHH hex character constants. 21126eaa481cSmrg These do not provoke an error unfortunately, instead are silently treated 21136eaa481cSmrg as an "x". The following induces an error, until -std is added to get 21146eaa481cSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 21156eaa481cSmrg array size at least. It is necessary to write \x00 == 0 to get something 21166eaa481cSmrg that is true only with -std. */ 21176eaa481cSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 21186eaa481cSmrg 21196eaa481cSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 21206eaa481cSmrg inside strings and character constants. */ 21216eaa481cSmrg#define FOO(x) '\''x'\'' 21226eaa481cSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 21236eaa481cSmrg 21246eaa481cSmrgint test (int i, double x); 21256eaa481cSmrgstruct s1 {int (*f) (int a);}; 21266eaa481cSmrgstruct s2 {int (*f) (double a);}; 21276eaa481cSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 21286eaa481cSmrg int, int);' 21296eaa481cSmrg 21306eaa481cSmrg# Test code for whether the C compiler supports C89 (body of main). 21316eaa481cSmrgac_c_conftest_c89_main=' 21326eaa481cSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 21336eaa481cSmrg' 21346eaa481cSmrg 21356eaa481cSmrg# Test code for whether the C compiler supports C99 (global declarations) 21366eaa481cSmrgac_c_conftest_c99_globals=' 21376eaa481cSmrg// Does the compiler advertise C99 conformance? 21386eaa481cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 21396eaa481cSmrg# error "Compiler does not advertise C99 conformance" 21406eaa481cSmrg#endif 21416eaa481cSmrg 21426eaa481cSmrg#include <stdbool.h> 21436eaa481cSmrgextern int puts (const char *); 21446eaa481cSmrgextern int printf (const char *, ...); 21456eaa481cSmrgextern int dprintf (int, const char *, ...); 21466eaa481cSmrgextern void *malloc (size_t); 21476eaa481cSmrg 21486eaa481cSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 21496eaa481cSmrg// dprintf is used instead of fprintf to avoid needing to declare 21506eaa481cSmrg// FILE and stderr. 21516eaa481cSmrg#define debug(...) dprintf (2, __VA_ARGS__) 21526eaa481cSmrg#define showlist(...) puts (#__VA_ARGS__) 21536eaa481cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 21546eaa481cSmrgstatic void 21556eaa481cSmrgtest_varargs_macros (void) 21566eaa481cSmrg{ 21576eaa481cSmrg int x = 1234; 21586eaa481cSmrg int y = 5678; 21596eaa481cSmrg debug ("Flag"); 21606eaa481cSmrg debug ("X = %d\n", x); 21616eaa481cSmrg showlist (The first, second, and third items.); 21626eaa481cSmrg report (x>y, "x is %d but y is %d", x, y); 21636eaa481cSmrg} 21646eaa481cSmrg 21656eaa481cSmrg// Check long long types. 21666eaa481cSmrg#define BIG64 18446744073709551615ull 21676eaa481cSmrg#define BIG32 4294967295ul 21686eaa481cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 21696eaa481cSmrg#if !BIG_OK 21706eaa481cSmrg #error "your preprocessor is broken" 21716eaa481cSmrg#endif 21726eaa481cSmrg#if BIG_OK 21736eaa481cSmrg#else 21746eaa481cSmrg #error "your preprocessor is broken" 21756eaa481cSmrg#endif 21766eaa481cSmrgstatic long long int bignum = -9223372036854775807LL; 21776eaa481cSmrgstatic unsigned long long int ubignum = BIG64; 21786eaa481cSmrg 21796eaa481cSmrgstruct incomplete_array 21806eaa481cSmrg{ 21816eaa481cSmrg int datasize; 21826eaa481cSmrg double data[]; 21836eaa481cSmrg}; 21846eaa481cSmrg 21856eaa481cSmrgstruct named_init { 21866eaa481cSmrg int number; 21876eaa481cSmrg const wchar_t *name; 21886eaa481cSmrg double average; 21896eaa481cSmrg}; 21906eaa481cSmrg 21916eaa481cSmrgtypedef const char *ccp; 21926eaa481cSmrg 21936eaa481cSmrgstatic inline int 21946eaa481cSmrgtest_restrict (ccp restrict text) 21956eaa481cSmrg{ 21966eaa481cSmrg // See if C++-style comments work. 21976eaa481cSmrg // Iterate through items via the restricted pointer. 21986eaa481cSmrg // Also check for declarations in for loops. 21996eaa481cSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 22006eaa481cSmrg continue; 22016eaa481cSmrg return 0; 22026eaa481cSmrg} 22036eaa481cSmrg 22046eaa481cSmrg// Check varargs and va_copy. 22056eaa481cSmrgstatic bool 22066eaa481cSmrgtest_varargs (const char *format, ...) 22076eaa481cSmrg{ 22086eaa481cSmrg va_list args; 22096eaa481cSmrg va_start (args, format); 22106eaa481cSmrg va_list args_copy; 22116eaa481cSmrg va_copy (args_copy, args); 22126eaa481cSmrg 22136eaa481cSmrg const char *str = ""; 22146eaa481cSmrg int number = 0; 22156eaa481cSmrg float fnumber = 0; 22166eaa481cSmrg 22176eaa481cSmrg while (*format) 22186eaa481cSmrg { 22196eaa481cSmrg switch (*format++) 22206eaa481cSmrg { 22216eaa481cSmrg case '\''s'\'': // string 22226eaa481cSmrg str = va_arg (args_copy, const char *); 22236eaa481cSmrg break; 22246eaa481cSmrg case '\''d'\'': // int 22256eaa481cSmrg number = va_arg (args_copy, int); 22266eaa481cSmrg break; 22276eaa481cSmrg case '\''f'\'': // float 22286eaa481cSmrg fnumber = va_arg (args_copy, double); 22296eaa481cSmrg break; 22306eaa481cSmrg default: 22316eaa481cSmrg break; 22326eaa481cSmrg } 22336eaa481cSmrg } 22346eaa481cSmrg va_end (args_copy); 22356eaa481cSmrg va_end (args); 22366eaa481cSmrg 22376eaa481cSmrg return *str && number && fnumber; 22386eaa481cSmrg} 22396eaa481cSmrg' 22406eaa481cSmrg 22416eaa481cSmrg# Test code for whether the C compiler supports C99 (body of main). 22426eaa481cSmrgac_c_conftest_c99_main=' 22436eaa481cSmrg // Check bool. 22446eaa481cSmrg _Bool success = false; 22456eaa481cSmrg success |= (argc != 0); 22466eaa481cSmrg 22476eaa481cSmrg // Check restrict. 22486eaa481cSmrg if (test_restrict ("String literal") == 0) 22496eaa481cSmrg success = true; 22506eaa481cSmrg char *restrict newvar = "Another string"; 22516eaa481cSmrg 22526eaa481cSmrg // Check varargs. 22536eaa481cSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 22546eaa481cSmrg test_varargs_macros (); 22556eaa481cSmrg 22566eaa481cSmrg // Check flexible array members. 22576eaa481cSmrg struct incomplete_array *ia = 22586eaa481cSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 22596eaa481cSmrg ia->datasize = 10; 22606eaa481cSmrg for (int i = 0; i < ia->datasize; ++i) 22616eaa481cSmrg ia->data[i] = i * 1.234; 22626eaa481cSmrg 22636eaa481cSmrg // Check named initializers. 22646eaa481cSmrg struct named_init ni = { 22656eaa481cSmrg .number = 34, 22666eaa481cSmrg .name = L"Test wide string", 22676eaa481cSmrg .average = 543.34343, 22686eaa481cSmrg }; 22696eaa481cSmrg 22706eaa481cSmrg ni.number = 58; 22716eaa481cSmrg 22726eaa481cSmrg int dynamic_array[ni.number]; 22736eaa481cSmrg dynamic_array[0] = argv[0][0]; 22746eaa481cSmrg dynamic_array[ni.number - 1] = 543; 22756eaa481cSmrg 22766eaa481cSmrg // work around unused variable warnings 22776eaa481cSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 22786eaa481cSmrg || dynamic_array[ni.number - 1] != 543); 22796eaa481cSmrg' 22806eaa481cSmrg 22816eaa481cSmrg# Test code for whether the C compiler supports C11 (global declarations) 22826eaa481cSmrgac_c_conftest_c11_globals=' 22836eaa481cSmrg// Does the compiler advertise C11 conformance? 22846eaa481cSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 22856eaa481cSmrg# error "Compiler does not advertise C11 conformance" 22866eaa481cSmrg#endif 22876eaa481cSmrg 22886eaa481cSmrg// Check _Alignas. 22896eaa481cSmrgchar _Alignas (double) aligned_as_double; 22906eaa481cSmrgchar _Alignas (0) no_special_alignment; 22916eaa481cSmrgextern char aligned_as_int; 22926eaa481cSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 22936eaa481cSmrg 22946eaa481cSmrg// Check _Alignof. 22956eaa481cSmrgenum 22966eaa481cSmrg{ 22976eaa481cSmrg int_alignment = _Alignof (int), 22986eaa481cSmrg int_array_alignment = _Alignof (int[100]), 22996eaa481cSmrg char_alignment = _Alignof (char) 23006eaa481cSmrg}; 23016eaa481cSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 23026eaa481cSmrg 23036eaa481cSmrg// Check _Noreturn. 23046eaa481cSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 23056eaa481cSmrg 23066eaa481cSmrg// Check _Static_assert. 23076eaa481cSmrgstruct test_static_assert 23086eaa481cSmrg{ 23096eaa481cSmrg int x; 23106eaa481cSmrg _Static_assert (sizeof (int) <= sizeof (long int), 23116eaa481cSmrg "_Static_assert does not work in struct"); 23126eaa481cSmrg long int y; 23136eaa481cSmrg}; 23146eaa481cSmrg 23156eaa481cSmrg// Check UTF-8 literals. 23166eaa481cSmrg#define u8 syntax error! 23176eaa481cSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 23186eaa481cSmrg 23196eaa481cSmrg// Check duplicate typedefs. 23206eaa481cSmrgtypedef long *long_ptr; 23216eaa481cSmrgtypedef long int *long_ptr; 23226eaa481cSmrgtypedef long_ptr long_ptr; 23236eaa481cSmrg 23246eaa481cSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 23256eaa481cSmrgstruct anonymous 23266eaa481cSmrg{ 23276eaa481cSmrg union { 23286eaa481cSmrg struct { int i; int j; }; 23296eaa481cSmrg struct { int k; long int l; } w; 23306eaa481cSmrg }; 23316eaa481cSmrg int m; 23326eaa481cSmrg} v1; 23336eaa481cSmrg' 23346eaa481cSmrg 23356eaa481cSmrg# Test code for whether the C compiler supports C11 (body of main). 23366eaa481cSmrgac_c_conftest_c11_main=' 23376eaa481cSmrg _Static_assert ((offsetof (struct anonymous, i) 23386eaa481cSmrg == offsetof (struct anonymous, w.k)), 23396eaa481cSmrg "Anonymous union alignment botch"); 23406eaa481cSmrg v1.i = 2; 23416eaa481cSmrg v1.w.k = 5; 23426eaa481cSmrg ok |= v1.i != 5; 23436eaa481cSmrg' 23446eaa481cSmrg 23456eaa481cSmrg# Test code for whether the C compiler supports C11 (complete). 23466eaa481cSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 23476eaa481cSmrg${ac_c_conftest_c99_globals} 23486eaa481cSmrg${ac_c_conftest_c11_globals} 23496eaa481cSmrg 23506eaa481cSmrgint 23516eaa481cSmrgmain (int argc, char **argv) 23526eaa481cSmrg{ 23536eaa481cSmrg int ok = 0; 23546eaa481cSmrg ${ac_c_conftest_c89_main} 23556eaa481cSmrg ${ac_c_conftest_c99_main} 23566eaa481cSmrg ${ac_c_conftest_c11_main} 23576eaa481cSmrg return ok; 23586eaa481cSmrg} 23596eaa481cSmrg" 23606eaa481cSmrg 23616eaa481cSmrg# Test code for whether the C compiler supports C99 (complete). 23626eaa481cSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 23636eaa481cSmrg${ac_c_conftest_c99_globals} 23646eaa481cSmrg 23656eaa481cSmrgint 23666eaa481cSmrgmain (int argc, char **argv) 23676eaa481cSmrg{ 23686eaa481cSmrg int ok = 0; 23696eaa481cSmrg ${ac_c_conftest_c89_main} 23706eaa481cSmrg ${ac_c_conftest_c99_main} 23716eaa481cSmrg return ok; 23726eaa481cSmrg} 23736eaa481cSmrg" 23746eaa481cSmrg 23756eaa481cSmrg# Test code for whether the C compiler supports C89 (complete). 23766eaa481cSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 23776eaa481cSmrg 23786eaa481cSmrgint 23796eaa481cSmrgmain (int argc, char **argv) 23806eaa481cSmrg{ 23816eaa481cSmrg int ok = 0; 23826eaa481cSmrg ${ac_c_conftest_c89_main} 23836eaa481cSmrg return ok; 23846eaa481cSmrg} 23856eaa481cSmrg" 23866eaa481cSmrg 23876eaa481cSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 23886eaa481cSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 23896eaa481cSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 23906eaa481cSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 23916eaa481cSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 23926eaa481cSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 23936eaa481cSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 23946eaa481cSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 23956eaa481cSmrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 23966eaa481cSmrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 23976eaa481cSmrg 23986eaa481cSmrg# Auxiliary files required by this configure script. 23996eaa481cSmrgac_aux_files="config.guess config.sub missing install-sh compile" 24006eaa481cSmrg 24016eaa481cSmrg# Locations in which to look for auxiliary files. 24026eaa481cSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 24036eaa481cSmrg 24046eaa481cSmrg# Search for a directory containing all of the required auxiliary files, 24056eaa481cSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 24066eaa481cSmrg# If we don't find one directory that contains all the files we need, 24076eaa481cSmrg# we report the set of missing files from the *first* directory in 24086eaa481cSmrg# $ac_aux_dir_candidates and give up. 24096eaa481cSmrgac_missing_aux_files="" 24106eaa481cSmrgac_first_candidate=: 24116eaa481cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 24126eaa481cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24136eaa481cSmrgas_found=false 24146eaa481cSmrgfor as_dir in $ac_aux_dir_candidates 24156eaa481cSmrgdo 24166eaa481cSmrg IFS=$as_save_IFS 24176eaa481cSmrg case $as_dir in #((( 24186eaa481cSmrg '') as_dir=./ ;; 24196eaa481cSmrg */) ;; 24206eaa481cSmrg *) as_dir=$as_dir/ ;; 24216eaa481cSmrg esac 24226eaa481cSmrg as_found=: 24236eaa481cSmrg 24246eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 24256eaa481cSmrg ac_aux_dir_found=yes 24266eaa481cSmrg ac_install_sh= 24276eaa481cSmrg for ac_aux in $ac_aux_files 24286eaa481cSmrg do 24296eaa481cSmrg # As a special case, if "install-sh" is required, that requirement 24306eaa481cSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 24316eaa481cSmrg # and $ac_install_sh is set appropriately for whichever one is found. 24326eaa481cSmrg if test x"$ac_aux" = x"install-sh" 24336eaa481cSmrg then 24346eaa481cSmrg if test -f "${as_dir}install-sh"; then 24356eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 24366eaa481cSmrg ac_install_sh="${as_dir}install-sh -c" 24376eaa481cSmrg elif test -f "${as_dir}install.sh"; then 24386eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 24396eaa481cSmrg ac_install_sh="${as_dir}install.sh -c" 24406eaa481cSmrg elif test -f "${as_dir}shtool"; then 24416eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 24426eaa481cSmrg ac_install_sh="${as_dir}shtool install -c" 24436eaa481cSmrg else 24446eaa481cSmrg ac_aux_dir_found=no 24456eaa481cSmrg if $ac_first_candidate; then 24466eaa481cSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 24476eaa481cSmrg else 24486eaa481cSmrg break 24496eaa481cSmrg fi 24506eaa481cSmrg fi 24516eaa481cSmrg else 24526eaa481cSmrg if test -f "${as_dir}${ac_aux}"; then 24536eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 24546eaa481cSmrg else 24556eaa481cSmrg ac_aux_dir_found=no 24566eaa481cSmrg if $ac_first_candidate; then 24576eaa481cSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 24586eaa481cSmrg else 24596eaa481cSmrg break 24606eaa481cSmrg fi 24616eaa481cSmrg fi 24626eaa481cSmrg fi 24636eaa481cSmrg done 24646eaa481cSmrg if test "$ac_aux_dir_found" = yes; then 24656eaa481cSmrg ac_aux_dir="$as_dir" 24666eaa481cSmrg break 24676eaa481cSmrg fi 24686eaa481cSmrg ac_first_candidate=false 24696eaa481cSmrg 24706eaa481cSmrg as_found=false 24716eaa481cSmrgdone 24726eaa481cSmrgIFS=$as_save_IFS 24736eaa481cSmrgif $as_found 24746eaa481cSmrgthen : 24756eaa481cSmrg 24766eaa481cSmrgelse $as_nop 24776eaa481cSmrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 24786eaa481cSmrgfi 24796eaa481cSmrg 24801b983734Smrg 24811b983734Smrg# These three variables are undocumented and unsupported, 24821b983734Smrg# and are intended to be withdrawn in a future Autoconf release. 24831b983734Smrg# They can cause serious problems if a builder's source tree is in a directory 24841b983734Smrg# whose full name contains unusual characters. 24856eaa481cSmrgif test -f "${ac_aux_dir}config.guess"; then 24866eaa481cSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 24876eaa481cSmrgfi 24886eaa481cSmrgif test -f "${ac_aux_dir}config.sub"; then 24896eaa481cSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 24906eaa481cSmrgfi 24916eaa481cSmrgif test -f "$ac_aux_dir/configure"; then 24926eaa481cSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 24936eaa481cSmrgfi 24946eaa481cSmrg 24956eaa481cSmrg# Check that the precious variables saved in the cache have kept the same 24966eaa481cSmrg# value. 24976eaa481cSmrgac_cache_corrupted=false 24986eaa481cSmrgfor ac_var in $ac_precious_vars; do 24996eaa481cSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 25006eaa481cSmrg eval ac_new_set=\$ac_env_${ac_var}_set 25016eaa481cSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 25026eaa481cSmrg eval ac_new_val=\$ac_env_${ac_var}_value 25036eaa481cSmrg case $ac_old_set,$ac_new_set in 25046eaa481cSmrg set,) 25056eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 25066eaa481cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 25076eaa481cSmrg ac_cache_corrupted=: ;; 25086eaa481cSmrg ,set) 25096eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 25106eaa481cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 25116eaa481cSmrg ac_cache_corrupted=: ;; 25126eaa481cSmrg ,);; 25136eaa481cSmrg *) 25146eaa481cSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 25156eaa481cSmrg # differences in whitespace do not lead to failure. 25166eaa481cSmrg ac_old_val_w=`echo x $ac_old_val` 25176eaa481cSmrg ac_new_val_w=`echo x $ac_new_val` 25186eaa481cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 25196eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 25206eaa481cSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 25216eaa481cSmrg ac_cache_corrupted=: 25226eaa481cSmrg else 25236eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 25246eaa481cSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 25256eaa481cSmrg eval $ac_var=\$ac_old_val 25266eaa481cSmrg fi 25276eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 25286eaa481cSmrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 25296eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 25306eaa481cSmrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 25316eaa481cSmrg fi;; 25326eaa481cSmrg esac 25336eaa481cSmrg # Pass precious variables to config.status. 25346eaa481cSmrg if test "$ac_new_set" = set; then 25356eaa481cSmrg case $ac_new_val in 25366eaa481cSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 25376eaa481cSmrg *) ac_arg=$ac_var=$ac_new_val ;; 25386eaa481cSmrg esac 25396eaa481cSmrg case " $ac_configure_args " in 25406eaa481cSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 25416eaa481cSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 25426eaa481cSmrg esac 25436eaa481cSmrg fi 25446eaa481cSmrgdone 25456eaa481cSmrgif $ac_cache_corrupted; then 25466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25476eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25486eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 25496eaa481cSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 25506eaa481cSmrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 25516eaa481cSmrg and start over" "$LINENO" 5 25526eaa481cSmrgfi 25536eaa481cSmrg## -------------------- ## 25546eaa481cSmrg## Main body of script. ## 25556eaa481cSmrg## -------------------- ## 25566eaa481cSmrg 25576eaa481cSmrgac_ext=c 25586eaa481cSmrgac_cpp='$CPP $CPPFLAGS' 25596eaa481cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25606eaa481cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25616eaa481cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 25626eaa481cSmrg 25636eaa481cSmrg 25646eaa481cSmrg 25656eaa481cSmrgac_config_headers="$ac_config_headers config.h" 25666eaa481cSmrg 25676eaa481cSmrg# Needed for asprintf on GNU libc 25686eaa481cSmrg 25696eaa481cSmrg 25706eaa481cSmrg 25716eaa481cSmrg 25726eaa481cSmrg 25736eaa481cSmrg 25746eaa481cSmrg 25756eaa481cSmrg 25766eaa481cSmrg 25771b983734Smrg 25781b983734Smrg 25791b983734Smrg# Expand $ac_aux_dir to an absolute path. 25801b983734Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 25811a30de1fSmrg 2582a733a5bfSmrgac_ext=c 2583a733a5bfSmrgac_cpp='$CPP $CPPFLAGS' 2584a733a5bfSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2585a733a5bfSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2586a733a5bfSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2587a733a5bfSmrgif test -n "$ac_tool_prefix"; then 2588a733a5bfSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2589a733a5bfSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 25906eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25916eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 25926eaa481cSmrgif test ${ac_cv_prog_CC+y} 25936eaa481cSmrgthen : 25946eaa481cSmrg printf %s "(cached) " >&6 25956eaa481cSmrgelse $as_nop 2596a733a5bfSmrg if test -n "$CC"; then 2597a733a5bfSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2598a733a5bfSmrgelse 2599a733a5bfSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600b7fb5eacSmrgfor as_dir in $PATH 2601b7fb5eacSmrgdo 2602b7fb5eacSmrg IFS=$as_save_IFS 26036eaa481cSmrg case $as_dir in #((( 26046eaa481cSmrg '') as_dir=./ ;; 26056eaa481cSmrg */) ;; 26066eaa481cSmrg *) as_dir=$as_dir/ ;; 26076eaa481cSmrg esac 2608ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 26096eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2610a733a5bfSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 26116eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2612b7fb5eacSmrg break 2 2613b7fb5eacSmrg fi 2614b7fb5eacSmrgdone 2615ce62200cSmrg done 2616b7fb5eacSmrgIFS=$as_save_IFS 2617b7fb5eacSmrg 2618b7fb5eacSmrgfi 2619b7fb5eacSmrgfi 2620a733a5bfSmrgCC=$ac_cv_prog_CC 2621a733a5bfSmrgif test -n "$CC"; then 26226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 26236eaa481cSmrgprintf "%s\n" "$CC" >&6; } 2624b7fb5eacSmrgelse 26256eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26266eaa481cSmrgprintf "%s\n" "no" >&6; } 2627b7fb5eacSmrgfi 2628b7fb5eacSmrg 2629b7fb5eacSmrg 2630b7fb5eacSmrgfi 2631a733a5bfSmrgif test -z "$ac_cv_prog_CC"; then 2632a733a5bfSmrg ac_ct_CC=$CC 2633a733a5bfSmrg # Extract the first word of "gcc", so it can be a program name with args. 2634a733a5bfSmrgset dummy gcc; ac_word=$2 26356eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26366eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 26376eaa481cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 26386eaa481cSmrgthen : 26396eaa481cSmrg printf %s "(cached) " >&6 26406eaa481cSmrgelse $as_nop 2641a733a5bfSmrg if test -n "$ac_ct_CC"; then 2642a733a5bfSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2643b7fb5eacSmrgelse 2644b7fb5eacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645b7fb5eacSmrgfor as_dir in $PATH 2646b7fb5eacSmrgdo 2647b7fb5eacSmrg IFS=$as_save_IFS 26486eaa481cSmrg case $as_dir in #((( 26496eaa481cSmrg '') as_dir=./ ;; 26506eaa481cSmrg */) ;; 26516eaa481cSmrg *) as_dir=$as_dir/ ;; 26526eaa481cSmrg esac 2653ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 26546eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2655a733a5bfSmrg ac_cv_prog_ac_ct_CC="gcc" 26566eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2657b7fb5eacSmrg break 2 2658b7fb5eacSmrg fi 2659b7fb5eacSmrgdone 2660ce62200cSmrg done 2661b7fb5eacSmrgIFS=$as_save_IFS 2662b7fb5eacSmrg 2663b7fb5eacSmrgfi 2664b7fb5eacSmrgfi 2665a733a5bfSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2666a733a5bfSmrgif test -n "$ac_ct_CC"; then 26676eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 26686eaa481cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 2669b7fb5eacSmrgelse 26706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26716eaa481cSmrgprintf "%s\n" "no" >&6; } 2672b7fb5eacSmrgfi 2673b7fb5eacSmrg 2674a733a5bfSmrg if test "x$ac_ct_CC" = x; then 2675a733a5bfSmrg CC="" 2676b7fb5eacSmrg else 2677b7fb5eacSmrg case $cross_compiling:$ac_tool_warned in 2678b7fb5eacSmrgyes:) 26796eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26806eaa481cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681b7fb5eacSmrgac_tool_warned=yes ;; 2682b7fb5eacSmrgesac 2683a733a5bfSmrg CC=$ac_ct_CC 2684b7fb5eacSmrg fi 2685b7fb5eacSmrgelse 2686a733a5bfSmrg CC="$ac_cv_prog_CC" 26871a30de1fSmrgfi 26881a30de1fSmrg 2689a733a5bfSmrgif test -z "$CC"; then 2690a733a5bfSmrg if test -n "$ac_tool_prefix"; then 2691a733a5bfSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2692a733a5bfSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 26936eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26946eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 26956eaa481cSmrgif test ${ac_cv_prog_CC+y} 26966eaa481cSmrgthen : 26976eaa481cSmrg printf %s "(cached) " >&6 26986eaa481cSmrgelse $as_nop 2699a733a5bfSmrg if test -n "$CC"; then 2700a733a5bfSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 27011a30de1fSmrgelse 27021a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27031a30de1fSmrgfor as_dir in $PATH 27041a30de1fSmrgdo 27051a30de1fSmrg IFS=$as_save_IFS 27066eaa481cSmrg case $as_dir in #((( 27076eaa481cSmrg '') as_dir=./ ;; 27086eaa481cSmrg */) ;; 27096eaa481cSmrg *) as_dir=$as_dir/ ;; 27106eaa481cSmrg esac 2711ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27126eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2713a733a5bfSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 27146eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27151a30de1fSmrg break 2 27161a30de1fSmrg fi 27171a30de1fSmrgdone 2718ce62200cSmrg done 27191a30de1fSmrgIFS=$as_save_IFS 27201a30de1fSmrg 27211a30de1fSmrgfi 27221a30de1fSmrgfi 2723a733a5bfSmrgCC=$ac_cv_prog_CC 2724a733a5bfSmrgif test -n "$CC"; then 27256eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27266eaa481cSmrgprintf "%s\n" "$CC" >&6; } 27271a30de1fSmrgelse 27286eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27296eaa481cSmrgprintf "%s\n" "no" >&6; } 27301a30de1fSmrgfi 27311a30de1fSmrg 27321a30de1fSmrg 2733a733a5bfSmrg fi 27341a30de1fSmrgfi 2735a733a5bfSmrgif test -z "$CC"; then 2736a733a5bfSmrg # Extract the first word of "cc", so it can be a program name with args. 2737a733a5bfSmrgset dummy cc; ac_word=$2 27386eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27396eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 27406eaa481cSmrgif test ${ac_cv_prog_CC+y} 27416eaa481cSmrgthen : 27426eaa481cSmrg printf %s "(cached) " >&6 27436eaa481cSmrgelse $as_nop 2744a733a5bfSmrg if test -n "$CC"; then 2745a733a5bfSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 27461a30de1fSmrgelse 2747a733a5bfSmrg ac_prog_rejected=no 2748a733a5bfSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749a733a5bfSmrgfor as_dir in $PATH 2750a733a5bfSmrgdo 2751a733a5bfSmrg IFS=$as_save_IFS 27526eaa481cSmrg case $as_dir in #((( 27536eaa481cSmrg '') as_dir=./ ;; 27546eaa481cSmrg */) ;; 27556eaa481cSmrg *) as_dir=$as_dir/ ;; 27566eaa481cSmrg esac 2757a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27586eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27596eaa481cSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2760a733a5bfSmrg ac_prog_rejected=yes 2761a733a5bfSmrg continue 2762a733a5bfSmrg fi 2763a733a5bfSmrg ac_cv_prog_CC="cc" 27646eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2765a733a5bfSmrg break 2 27661a30de1fSmrg fi 2767a733a5bfSmrgdone 2768a733a5bfSmrg done 2769a733a5bfSmrgIFS=$as_save_IFS 27701a30de1fSmrg 2771a733a5bfSmrgif test $ac_prog_rejected = yes; then 2772a733a5bfSmrg # We found a bogon in the path, so make sure we never use it. 2773a733a5bfSmrg set dummy $ac_cv_prog_CC 2774a733a5bfSmrg shift 2775a733a5bfSmrg if test $# != 0; then 2776a733a5bfSmrg # We chose a different compiler from the bogus one. 2777a733a5bfSmrg # However, it has the same basename, so the bogon will be chosen 2778a733a5bfSmrg # first if we set CC to just the basename; use the full file name. 2779a733a5bfSmrg shift 27806eaa481cSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 27811a30de1fSmrg fi 27821a30de1fSmrgfi 2783ce62200cSmrgfi 2784ce62200cSmrgfi 2785a733a5bfSmrgCC=$ac_cv_prog_CC 2786a733a5bfSmrgif test -n "$CC"; then 27876eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27886eaa481cSmrgprintf "%s\n" "$CC" >&6; } 2789ce62200cSmrgelse 27906eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27916eaa481cSmrgprintf "%s\n" "no" >&6; } 2792ce62200cSmrgfi 2793ce62200cSmrg 2794ce62200cSmrg 2795a733a5bfSmrgfi 2796a733a5bfSmrgif test -z "$CC"; then 2797a733a5bfSmrg if test -n "$ac_tool_prefix"; then 2798a733a5bfSmrg for ac_prog in cl.exe 2799a733a5bfSmrg do 2800a733a5bfSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2801a733a5bfSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 28026eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28036eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 28046eaa481cSmrgif test ${ac_cv_prog_CC+y} 28056eaa481cSmrgthen : 28066eaa481cSmrg printf %s "(cached) " >&6 28076eaa481cSmrgelse $as_nop 2808ce62200cSmrg if test -n "$CC"; then 2809ce62200cSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2810ce62200cSmrgelse 2811ce62200cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812ce62200cSmrgfor as_dir in $PATH 2813ce62200cSmrgdo 2814ce62200cSmrg IFS=$as_save_IFS 28156eaa481cSmrg case $as_dir in #((( 28166eaa481cSmrg '') as_dir=./ ;; 28176eaa481cSmrg */) ;; 28186eaa481cSmrg *) as_dir=$as_dir/ ;; 28196eaa481cSmrg esac 2820ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28216eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2822a733a5bfSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28236eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2824ce62200cSmrg break 2 2825ce62200cSmrg fi 2826ce62200cSmrgdone 2827ce62200cSmrg done 2828ce62200cSmrgIFS=$as_save_IFS 2829ce62200cSmrg 2830ce62200cSmrgfi 2831ce62200cSmrgfi 2832ce62200cSmrgCC=$ac_cv_prog_CC 2833ce62200cSmrgif test -n "$CC"; then 28346eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28356eaa481cSmrgprintf "%s\n" "$CC" >&6; } 2836ce62200cSmrgelse 28376eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28386eaa481cSmrgprintf "%s\n" "no" >&6; } 28391a30de1fSmrgfi 28401a30de1fSmrg 28411a30de1fSmrg 2842a733a5bfSmrg test -n "$CC" && break 2843a733a5bfSmrg done 28441a30de1fSmrgfi 2845a733a5bfSmrgif test -z "$CC"; then 28461a30de1fSmrg ac_ct_CC=$CC 2847a733a5bfSmrg for ac_prog in cl.exe 2848a733a5bfSmrgdo 2849a733a5bfSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2850a733a5bfSmrgset dummy $ac_prog; ac_word=$2 28516eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28526eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 28536eaa481cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 28546eaa481cSmrgthen : 28556eaa481cSmrg printf %s "(cached) " >&6 28566eaa481cSmrgelse $as_nop 28571a30de1fSmrg if test -n "$ac_ct_CC"; then 28581a30de1fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28591a30de1fSmrgelse 28601a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28611a30de1fSmrgfor as_dir in $PATH 28621a30de1fSmrgdo 28631a30de1fSmrg IFS=$as_save_IFS 28646eaa481cSmrg case $as_dir in #((( 28656eaa481cSmrg '') as_dir=./ ;; 28666eaa481cSmrg */) ;; 28676eaa481cSmrg *) as_dir=$as_dir/ ;; 28686eaa481cSmrg esac 2869ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28706eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2871a733a5bfSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 28726eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28731a30de1fSmrg break 2 28741a30de1fSmrg fi 28751a30de1fSmrgdone 2876ce62200cSmrg done 28771a30de1fSmrgIFS=$as_save_IFS 28781a30de1fSmrg 28791a30de1fSmrgfi 28801a30de1fSmrgfi 28811a30de1fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28821a30de1fSmrgif test -n "$ac_ct_CC"; then 28836eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28846eaa481cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 28851a30de1fSmrgelse 28866eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28876eaa481cSmrgprintf "%s\n" "no" >&6; } 28881a30de1fSmrgfi 2889a733a5bfSmrg 2890a733a5bfSmrg 2891a733a5bfSmrg test -n "$ac_ct_CC" && break 2892a733a5bfSmrgdone 28931a30de1fSmrg 28941a30de1fSmrg if test "x$ac_ct_CC" = x; then 28951a30de1fSmrg CC="" 28961a30de1fSmrg else 28971a30de1fSmrg case $cross_compiling:$ac_tool_warned in 28981a30de1fSmrgyes:) 28996eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29006eaa481cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29016eaa481cSmrgac_tool_warned=yes ;; 29026eaa481cSmrgesac 29036eaa481cSmrg CC=$ac_ct_CC 29046eaa481cSmrg fi 29056eaa481cSmrgfi 29066eaa481cSmrg 29076eaa481cSmrgfi 29086eaa481cSmrgif test -z "$CC"; then 29096eaa481cSmrg if test -n "$ac_tool_prefix"; then 29106eaa481cSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 29116eaa481cSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 29126eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29136eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 29146eaa481cSmrgif test ${ac_cv_prog_CC+y} 29156eaa481cSmrgthen : 29166eaa481cSmrg printf %s "(cached) " >&6 29176eaa481cSmrgelse $as_nop 29186eaa481cSmrg if test -n "$CC"; then 29196eaa481cSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 29206eaa481cSmrgelse 29216eaa481cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29226eaa481cSmrgfor as_dir in $PATH 29236eaa481cSmrgdo 29246eaa481cSmrg IFS=$as_save_IFS 29256eaa481cSmrg case $as_dir in #((( 29266eaa481cSmrg '') as_dir=./ ;; 29276eaa481cSmrg */) ;; 29286eaa481cSmrg *) as_dir=$as_dir/ ;; 29296eaa481cSmrg esac 29306eaa481cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29316eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29326eaa481cSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 29336eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29346eaa481cSmrg break 2 29356eaa481cSmrg fi 29366eaa481cSmrgdone 29376eaa481cSmrg done 29386eaa481cSmrgIFS=$as_save_IFS 29396eaa481cSmrg 29406eaa481cSmrgfi 29416eaa481cSmrgfi 29426eaa481cSmrgCC=$ac_cv_prog_CC 29436eaa481cSmrgif test -n "$CC"; then 29446eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29456eaa481cSmrgprintf "%s\n" "$CC" >&6; } 29466eaa481cSmrgelse 29476eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29486eaa481cSmrgprintf "%s\n" "no" >&6; } 29496eaa481cSmrgfi 29506eaa481cSmrg 29516eaa481cSmrg 29526eaa481cSmrgfi 29536eaa481cSmrgif test -z "$ac_cv_prog_CC"; then 29546eaa481cSmrg ac_ct_CC=$CC 29556eaa481cSmrg # Extract the first word of "clang", so it can be a program name with args. 29566eaa481cSmrgset dummy clang; ac_word=$2 29576eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29586eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 29596eaa481cSmrgif test ${ac_cv_prog_ac_ct_CC+y} 29606eaa481cSmrgthen : 29616eaa481cSmrg printf %s "(cached) " >&6 29626eaa481cSmrgelse $as_nop 29636eaa481cSmrg if test -n "$ac_ct_CC"; then 29646eaa481cSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29656eaa481cSmrgelse 29666eaa481cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29676eaa481cSmrgfor as_dir in $PATH 29686eaa481cSmrgdo 29696eaa481cSmrg IFS=$as_save_IFS 29706eaa481cSmrg case $as_dir in #((( 29716eaa481cSmrg '') as_dir=./ ;; 29726eaa481cSmrg */) ;; 29736eaa481cSmrg *) as_dir=$as_dir/ ;; 29746eaa481cSmrg esac 29756eaa481cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29766eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29776eaa481cSmrg ac_cv_prog_ac_ct_CC="clang" 29786eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29796eaa481cSmrg break 2 29806eaa481cSmrg fi 29816eaa481cSmrgdone 29826eaa481cSmrg done 29836eaa481cSmrgIFS=$as_save_IFS 29846eaa481cSmrg 29856eaa481cSmrgfi 29866eaa481cSmrgfi 29876eaa481cSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 29886eaa481cSmrgif test -n "$ac_ct_CC"; then 29896eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29906eaa481cSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 29916eaa481cSmrgelse 29926eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29936eaa481cSmrgprintf "%s\n" "no" >&6; } 29946eaa481cSmrgfi 29956eaa481cSmrg 29966eaa481cSmrg if test "x$ac_ct_CC" = x; then 29976eaa481cSmrg CC="" 29986eaa481cSmrg else 29996eaa481cSmrg case $cross_compiling:$ac_tool_warned in 30006eaa481cSmrgyes:) 30016eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30026eaa481cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30031a30de1fSmrgac_tool_warned=yes ;; 30041a30de1fSmrgesac 30051a30de1fSmrg CC=$ac_ct_CC 30061a30de1fSmrg fi 30076eaa481cSmrgelse 30086eaa481cSmrg CC="$ac_cv_prog_CC" 30091a30de1fSmrgfi 30101a30de1fSmrg 30111a30de1fSmrgfi 30121a30de1fSmrg 30131a30de1fSmrg 30146eaa481cSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30156eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3016ce62200cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3017ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 30181a30de1fSmrg 30191a30de1fSmrg# Provide some information about the compiler. 30206eaa481cSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3021b7fb5eacSmrgset X $ac_compile 3022b7fb5eacSmrgac_compiler=$2 30236eaa481cSmrgfor ac_option in --version -v -V -qversion -version; do 3024ce62200cSmrg { { ac_try="$ac_compiler $ac_option >&5" 30251a30de1fSmrgcase "(($ac_try" in 30261a30de1fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30271a30de1fSmrg *) ac_try_echo=$ac_try;; 30281a30de1fSmrgesac 3029ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30306eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3031ce62200cSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30321a30de1fSmrg ac_status=$? 3033ce62200cSmrg if test -s conftest.err; then 3034ce62200cSmrg sed '10a\ 3035ce62200cSmrg... rest of stderr output deleted ... 3036ce62200cSmrg 10q' conftest.err >conftest.er1 3037ce62200cSmrg cat conftest.er1 >&5 3038ce62200cSmrg fi 3039ce62200cSmrg rm -f conftest.er1 conftest.err 30406eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3041ce62200cSmrg test $ac_status = 0; } 3042ce62200cSmrgdone 30431a30de1fSmrg 3044ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 30451a30de1fSmrg/* end confdefs.h. */ 30461a30de1fSmrg 30471a30de1fSmrgint 30486eaa481cSmrgmain (void) 30491a30de1fSmrg{ 30501a30de1fSmrg 30511a30de1fSmrg ; 30521a30de1fSmrg return 0; 30531a30de1fSmrg} 30541a30de1fSmrg_ACEOF 30551a30de1fSmrgac_clean_files_save=$ac_clean_files 3056b7fb5eacSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 30571a30de1fSmrg# Try to create an executable without -o first, disregard a.out. 30581a30de1fSmrg# It will help us diagnose broken compilers, and finding out an intuition 30591a30de1fSmrg# of exeext. 30606eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30616eaa481cSmrgprintf %s "checking whether the C compiler works... " >&6; } 30626eaa481cSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3063b7fb5eacSmrg 3064b7fb5eacSmrg# The possible output files: 3065b7fb5eacSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3066b7fb5eacSmrg 30671a30de1fSmrgac_rmfiles= 30681a30de1fSmrgfor ac_file in $ac_files 30691a30de1fSmrgdo 30701a30de1fSmrg case $ac_file in 3071b7fb5eacSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30721a30de1fSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 30731a30de1fSmrg esac 30741a30de1fSmrgdone 30751a30de1fSmrgrm -f $ac_rmfiles 30761a30de1fSmrg 3077ce62200cSmrgif { { ac_try="$ac_link_default" 30781a30de1fSmrgcase "(($ac_try" in 30791a30de1fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30801a30de1fSmrg *) ac_try_echo=$ac_try;; 30811a30de1fSmrgesac 3082ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30836eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 30841a30de1fSmrg (eval "$ac_link_default") 2>&5 30851a30de1fSmrg ac_status=$? 30866eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30876eaa481cSmrg test $ac_status = 0; } 30886eaa481cSmrgthen : 30891a30de1fSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 30901a30de1fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 30911a30de1fSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 30921a30de1fSmrg# so that the user can short-circuit this test for compilers unknown to 30931a30de1fSmrg# Autoconf. 30941a30de1fSmrgfor ac_file in $ac_files '' 30951a30de1fSmrgdo 30961a30de1fSmrg test -f "$ac_file" || continue 30971a30de1fSmrg case $ac_file in 3098b7fb5eacSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 30991a30de1fSmrg ;; 31001a30de1fSmrg [ab].out ) 31011a30de1fSmrg # We found the default executable, but exeext='' is most 31021a30de1fSmrg # certainly right. 31031a30de1fSmrg break;; 31041a30de1fSmrg *.* ) 31056eaa481cSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 31061a30de1fSmrg then :; else 31071a30de1fSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31081a30de1fSmrg fi 31091a30de1fSmrg # We set ac_cv_exeext here because the later test for it is not 31101a30de1fSmrg # safe: cross compilers may not add the suffix if given an `-o' 31111a30de1fSmrg # argument, so we may need to know it at that point already. 31121a30de1fSmrg # Even if this section looks crufty: it has the advantage of 31131a30de1fSmrg # actually working. 31141a30de1fSmrg break;; 31151a30de1fSmrg * ) 31161a30de1fSmrg break;; 31171a30de1fSmrg esac 31181a30de1fSmrgdone 31191a30de1fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 31201a30de1fSmrg 31216eaa481cSmrgelse $as_nop 31221a30de1fSmrg ac_file='' 31231a30de1fSmrgfi 31246eaa481cSmrgif test -z "$ac_file" 31256eaa481cSmrgthen : 31266eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31276eaa481cSmrgprintf "%s\n" "no" >&6; } 31286eaa481cSmrgprintf "%s\n" "$as_me: failed program was:" >&5 31291a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5 31301a30de1fSmrg 31316eaa481cSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31326eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3133ce62200cSmrgas_fn_error 77 "C compiler cannot create executables 3134ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 31356eaa481cSmrgelse $as_nop 31366eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31376eaa481cSmrgprintf "%s\n" "yes" >&6; } 31386eaa481cSmrgfi 31396eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31406eaa481cSmrgprintf %s "checking for C compiler default output file name... " >&6; } 31416eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31426eaa481cSmrgprintf "%s\n" "$ac_file" >&6; } 31431a30de1fSmrgac_exeext=$ac_cv_exeext 31441a30de1fSmrg 3145b7fb5eacSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 31461a30de1fSmrgac_clean_files=$ac_clean_files_save 31476eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 31486eaa481cSmrgprintf %s "checking for suffix of executables... " >&6; } 3149ce62200cSmrgif { { ac_try="$ac_link" 31501a30de1fSmrgcase "(($ac_try" in 31511a30de1fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31521a30de1fSmrg *) ac_try_echo=$ac_try;; 31531a30de1fSmrgesac 3154ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31556eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 31561a30de1fSmrg (eval "$ac_link") 2>&5 31571a30de1fSmrg ac_status=$? 31586eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31596eaa481cSmrg test $ac_status = 0; } 31606eaa481cSmrgthen : 31611a30de1fSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 31621a30de1fSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 31631a30de1fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 31641a30de1fSmrg# `rm'. 31651a30de1fSmrgfor ac_file in conftest.exe conftest conftest.*; do 31661a30de1fSmrg test -f "$ac_file" || continue 31671a30de1fSmrg case $ac_file in 3168b7fb5eacSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31691a30de1fSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31701a30de1fSmrg break;; 31711a30de1fSmrg * ) break;; 31721a30de1fSmrg esac 31731a30de1fSmrgdone 31746eaa481cSmrgelse $as_nop 31756eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31766eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3177ce62200cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3178ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 31791a30de1fSmrgfi 3180ce62200cSmrgrm -f conftest conftest$ac_cv_exeext 31816eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 31826eaa481cSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 31831a30de1fSmrg 31841a30de1fSmrgrm -f conftest.$ac_ext 31851a30de1fSmrgEXEEXT=$ac_cv_exeext 31861a30de1fSmrgac_exeext=$EXEEXT 3187ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188ce62200cSmrg/* end confdefs.h. */ 3189ce62200cSmrg#include <stdio.h> 3190ce62200cSmrgint 31916eaa481cSmrgmain (void) 3192ce62200cSmrg{ 3193ce62200cSmrgFILE *f = fopen ("conftest.out", "w"); 3194ce62200cSmrg return ferror (f) || fclose (f) != 0; 3195ce62200cSmrg 3196ce62200cSmrg ; 3197ce62200cSmrg return 0; 3198ce62200cSmrg} 3199ce62200cSmrg_ACEOF 3200ce62200cSmrgac_clean_files="$ac_clean_files conftest.out" 3201ce62200cSmrg# Check that the compiler produces executables we can run. If not, either 3202ce62200cSmrg# the compiler is broken, or we cross compile. 32036eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32046eaa481cSmrgprintf %s "checking whether we are cross compiling... " >&6; } 3205ce62200cSmrgif test "$cross_compiling" != yes; then 3206ce62200cSmrg { { ac_try="$ac_link" 3207ce62200cSmrgcase "(($ac_try" in 3208ce62200cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209ce62200cSmrg *) ac_try_echo=$ac_try;; 3210ce62200cSmrgesac 3211ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32126eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3213ce62200cSmrg (eval "$ac_link") 2>&5 3214ce62200cSmrg ac_status=$? 32156eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3216ce62200cSmrg test $ac_status = 0; } 3217ce62200cSmrg if { ac_try='./conftest$ac_cv_exeext' 3218ce62200cSmrg { { case "(($ac_try" in 3219ce62200cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220ce62200cSmrg *) ac_try_echo=$ac_try;; 3221ce62200cSmrgesac 3222ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32236eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3224ce62200cSmrg (eval "$ac_try") 2>&5 3225ce62200cSmrg ac_status=$? 32266eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3227ce62200cSmrg test $ac_status = 0; }; }; then 3228ce62200cSmrg cross_compiling=no 3229ce62200cSmrg else 3230ce62200cSmrg if test "$cross_compiling" = maybe; then 3231ce62200cSmrg cross_compiling=yes 3232ce62200cSmrg else 32336eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32346eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32356eaa481cSmrgas_fn_error 77 "cannot run C compiled programs. 3236ce62200cSmrgIf you meant to cross compile, use \`--host'. 3237ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 3238ce62200cSmrg fi 3239ce62200cSmrg fi 3240ce62200cSmrgfi 32416eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32426eaa481cSmrgprintf "%s\n" "$cross_compiling" >&6; } 3243ce62200cSmrg 3244ce62200cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3245ce62200cSmrgac_clean_files=$ac_clean_files_save 32466eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32476eaa481cSmrgprintf %s "checking for suffix of object files... " >&6; } 32486eaa481cSmrgif test ${ac_cv_objext+y} 32496eaa481cSmrgthen : 32506eaa481cSmrg printf %s "(cached) " >&6 32516eaa481cSmrgelse $as_nop 3252ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32531a30de1fSmrg/* end confdefs.h. */ 32541a30de1fSmrg 32551a30de1fSmrgint 32566eaa481cSmrgmain (void) 32571a30de1fSmrg{ 32581a30de1fSmrg 32591a30de1fSmrg ; 32601a30de1fSmrg return 0; 32611a30de1fSmrg} 32621a30de1fSmrg_ACEOF 32631a30de1fSmrgrm -f conftest.o conftest.obj 3264ce62200cSmrgif { { ac_try="$ac_compile" 32651a30de1fSmrgcase "(($ac_try" in 32661a30de1fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32671a30de1fSmrg *) ac_try_echo=$ac_try;; 32681a30de1fSmrgesac 3269ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32706eaa481cSmrgprintf "%s\n" "$ac_try_echo"; } >&5 32711a30de1fSmrg (eval "$ac_compile") 2>&5 32721a30de1fSmrg ac_status=$? 32736eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32746eaa481cSmrg test $ac_status = 0; } 32756eaa481cSmrgthen : 32761a30de1fSmrg for ac_file in conftest.o conftest.obj conftest.*; do 32771a30de1fSmrg test -f "$ac_file" || continue; 32781a30de1fSmrg case $ac_file in 3279b7fb5eacSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 32801a30de1fSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 32811a30de1fSmrg break;; 32821a30de1fSmrg esac 32831a30de1fSmrgdone 32846eaa481cSmrgelse $as_nop 32856eaa481cSmrg printf "%s\n" "$as_me: failed program was:" >&5 32861a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5 32871a30de1fSmrg 32886eaa481cSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32896eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3290ce62200cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3291ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 32921a30de1fSmrgfi 32931a30de1fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 32941a30de1fSmrgfi 32956eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 32966eaa481cSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 32971a30de1fSmrgOBJEXT=$ac_cv_objext 32981a30de1fSmrgac_objext=$OBJEXT 32996eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 33006eaa481cSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 33016eaa481cSmrgif test ${ac_cv_c_compiler_gnu+y} 33026eaa481cSmrgthen : 33036eaa481cSmrg printf %s "(cached) " >&6 33046eaa481cSmrgelse $as_nop 3305ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33061a30de1fSmrg/* end confdefs.h. */ 33071a30de1fSmrg 33081a30de1fSmrgint 33096eaa481cSmrgmain (void) 33101a30de1fSmrg{ 33111a30de1fSmrg#ifndef __GNUC__ 33121a30de1fSmrg choke me 33131a30de1fSmrg#endif 33141a30de1fSmrg 33151a30de1fSmrg ; 33161a30de1fSmrg return 0; 33171a30de1fSmrg} 33181a30de1fSmrg_ACEOF 33196eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 33206eaa481cSmrgthen : 33211a30de1fSmrg ac_compiler_gnu=yes 33226eaa481cSmrgelse $as_nop 3323ce62200cSmrg ac_compiler_gnu=no 33241a30de1fSmrgfi 33256eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33261a30de1fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33271a30de1fSmrg 33281a30de1fSmrgfi 33296eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33306eaa481cSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 33316eaa481cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 33326eaa481cSmrg 3333b7fb5eacSmrgif test $ac_compiler_gnu = yes; then 3334b7fb5eacSmrg GCC=yes 3335b7fb5eacSmrgelse 3336b7fb5eacSmrg GCC= 3337b7fb5eacSmrgfi 33386eaa481cSmrgac_test_CFLAGS=${CFLAGS+y} 33391a30de1fSmrgac_save_CFLAGS=$CFLAGS 33406eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33416eaa481cSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 33426eaa481cSmrgif test ${ac_cv_prog_cc_g+y} 33436eaa481cSmrgthen : 33446eaa481cSmrg printf %s "(cached) " >&6 33456eaa481cSmrgelse $as_nop 33461a30de1fSmrg ac_save_c_werror_flag=$ac_c_werror_flag 33471a30de1fSmrg ac_c_werror_flag=yes 33481a30de1fSmrg ac_cv_prog_cc_g=no 33491a30de1fSmrg CFLAGS="-g" 3350ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33511a30de1fSmrg/* end confdefs.h. */ 33521a30de1fSmrg 33531a30de1fSmrgint 33546eaa481cSmrgmain (void) 33551a30de1fSmrg{ 33561a30de1fSmrg 33571a30de1fSmrg ; 33581a30de1fSmrg return 0; 33591a30de1fSmrg} 33601a30de1fSmrg_ACEOF 33616eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 33626eaa481cSmrgthen : 33631a30de1fSmrg ac_cv_prog_cc_g=yes 33646eaa481cSmrgelse $as_nop 3365ce62200cSmrg CFLAGS="" 3366ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33671a30de1fSmrg/* end confdefs.h. */ 33681a30de1fSmrg 33691a30de1fSmrgint 33706eaa481cSmrgmain (void) 33711a30de1fSmrg{ 33721a30de1fSmrg 33731a30de1fSmrg ; 33741a30de1fSmrg return 0; 33751a30de1fSmrg} 33761a30de1fSmrg_ACEOF 33776eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 33786eaa481cSmrgthen : 33791a30de1fSmrg 33806eaa481cSmrgelse $as_nop 3381ce62200cSmrg ac_c_werror_flag=$ac_save_c_werror_flag 33821a30de1fSmrg CFLAGS="-g" 3383ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33841a30de1fSmrg/* end confdefs.h. */ 33851a30de1fSmrg 33861a30de1fSmrgint 33876eaa481cSmrgmain (void) 33881a30de1fSmrg{ 33891a30de1fSmrg 33901a30de1fSmrg ; 33911a30de1fSmrg return 0; 33921a30de1fSmrg} 33931a30de1fSmrg_ACEOF 33946eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 33956eaa481cSmrgthen : 33961a30de1fSmrg ac_cv_prog_cc_g=yes 33971a30de1fSmrgfi 33986eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33991a30de1fSmrgfi 34006eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34011a30de1fSmrgfi 34026eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34031a30de1fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34041a30de1fSmrgfi 34056eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34066eaa481cSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 34076eaa481cSmrgif test $ac_test_CFLAGS; then 34081a30de1fSmrg CFLAGS=$ac_save_CFLAGS 34091a30de1fSmrgelif test $ac_cv_prog_cc_g = yes; then 34101a30de1fSmrg if test "$GCC" = yes; then 34111a30de1fSmrg CFLAGS="-g -O2" 34121a30de1fSmrg else 34131a30de1fSmrg CFLAGS="-g" 34141a30de1fSmrg fi 34151a30de1fSmrgelse 34161a30de1fSmrg if test "$GCC" = yes; then 34171a30de1fSmrg CFLAGS="-O2" 34181a30de1fSmrg else 34191a30de1fSmrg CFLAGS= 34201a30de1fSmrg fi 34211a30de1fSmrgfi 34226eaa481cSmrgac_prog_cc_stdc=no 34236eaa481cSmrgif test x$ac_prog_cc_stdc = xno 34246eaa481cSmrgthen : 34256eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 34266eaa481cSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 34276eaa481cSmrgif test ${ac_cv_prog_cc_c11+y} 34286eaa481cSmrgthen : 34296eaa481cSmrg printf %s "(cached) " >&6 34306eaa481cSmrgelse $as_nop 34316eaa481cSmrg ac_cv_prog_cc_c11=no 34321a30de1fSmrgac_save_CC=$CC 3433ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34341a30de1fSmrg/* end confdefs.h. */ 34356eaa481cSmrg$ac_c_conftest_c11_program 34366eaa481cSmrg_ACEOF 34376eaa481cSmrgfor ac_arg in '' -std=gnu11 34386eaa481cSmrgdo 34396eaa481cSmrg CC="$ac_save_CC $ac_arg" 34406eaa481cSmrg if ac_fn_c_try_compile "$LINENO" 34416eaa481cSmrgthen : 34426eaa481cSmrg ac_cv_prog_cc_c11=$ac_arg 34436eaa481cSmrgfi 34446eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 34456eaa481cSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 34466eaa481cSmrgdone 34476eaa481cSmrgrm -f conftest.$ac_ext 34486eaa481cSmrgCC=$ac_save_CC 34496eaa481cSmrgfi 34501a30de1fSmrg 34516eaa481cSmrgif test "x$ac_cv_prog_cc_c11" = xno 34526eaa481cSmrgthen : 34536eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34546eaa481cSmrgprintf "%s\n" "unsupported" >&6; } 34556eaa481cSmrgelse $as_nop 34566eaa481cSmrg if test "x$ac_cv_prog_cc_c11" = x 34576eaa481cSmrgthen : 34586eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34596eaa481cSmrgprintf "%s\n" "none needed" >&6; } 34606eaa481cSmrgelse $as_nop 34616eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 34626eaa481cSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 34636eaa481cSmrg CC="$CC $ac_cv_prog_cc_c11" 34646eaa481cSmrgfi 34656eaa481cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 34666eaa481cSmrg ac_prog_cc_stdc=c11 34676eaa481cSmrgfi 34686eaa481cSmrgfi 34696eaa481cSmrgif test x$ac_prog_cc_stdc = xno 34706eaa481cSmrgthen : 34716eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 34726eaa481cSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 34736eaa481cSmrgif test ${ac_cv_prog_cc_c99+y} 34746eaa481cSmrgthen : 34756eaa481cSmrg printf %s "(cached) " >&6 34766eaa481cSmrgelse $as_nop 34776eaa481cSmrg ac_cv_prog_cc_c99=no 34786eaa481cSmrgac_save_CC=$CC 34796eaa481cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34806eaa481cSmrg/* end confdefs.h. */ 34816eaa481cSmrg$ac_c_conftest_c99_program 34826eaa481cSmrg_ACEOF 34836eaa481cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 34846eaa481cSmrgdo 34856eaa481cSmrg CC="$ac_save_CC $ac_arg" 34866eaa481cSmrg if ac_fn_c_try_compile "$LINENO" 34876eaa481cSmrgthen : 34886eaa481cSmrg ac_cv_prog_cc_c99=$ac_arg 34896eaa481cSmrgfi 34906eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 34916eaa481cSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 34926eaa481cSmrgdone 34936eaa481cSmrgrm -f conftest.$ac_ext 34946eaa481cSmrgCC=$ac_save_CC 34956eaa481cSmrgfi 34961a30de1fSmrg 34976eaa481cSmrgif test "x$ac_cv_prog_cc_c99" = xno 34986eaa481cSmrgthen : 34996eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35006eaa481cSmrgprintf "%s\n" "unsupported" >&6; } 35016eaa481cSmrgelse $as_nop 35026eaa481cSmrg if test "x$ac_cv_prog_cc_c99" = x 35036eaa481cSmrgthen : 35046eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35056eaa481cSmrgprintf "%s\n" "none needed" >&6; } 35066eaa481cSmrgelse $as_nop 35076eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 35086eaa481cSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 35096eaa481cSmrg CC="$CC $ac_cv_prog_cc_c99" 35106eaa481cSmrgfi 35116eaa481cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 35126eaa481cSmrg ac_prog_cc_stdc=c99 35136eaa481cSmrgfi 35146eaa481cSmrgfi 35156eaa481cSmrgif test x$ac_prog_cc_stdc = xno 35166eaa481cSmrgthen : 35176eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 35186eaa481cSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 35196eaa481cSmrgif test ${ac_cv_prog_cc_c89+y} 35206eaa481cSmrgthen : 35216eaa481cSmrg printf %s "(cached) " >&6 35226eaa481cSmrgelse $as_nop 35236eaa481cSmrg ac_cv_prog_cc_c89=no 35246eaa481cSmrgac_save_CC=$CC 35256eaa481cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35266eaa481cSmrg/* end confdefs.h. */ 35276eaa481cSmrg$ac_c_conftest_c89_program 35281a30de1fSmrg_ACEOF 35296eaa481cSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35301a30de1fSmrgdo 35311a30de1fSmrg CC="$ac_save_CC $ac_arg" 35326eaa481cSmrg if ac_fn_c_try_compile "$LINENO" 35336eaa481cSmrgthen : 35341a30de1fSmrg ac_cv_prog_cc_c89=$ac_arg 35351a30de1fSmrgfi 35366eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 35371a30de1fSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35381a30de1fSmrgdone 35391a30de1fSmrgrm -f conftest.$ac_ext 35401a30de1fSmrgCC=$ac_save_CC 35411a30de1fSmrgfi 35421a30de1fSmrg 35436eaa481cSmrgif test "x$ac_cv_prog_cc_c89" = xno 35446eaa481cSmrgthen : 35456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35466eaa481cSmrgprintf "%s\n" "unsupported" >&6; } 35476eaa481cSmrgelse $as_nop 35486eaa481cSmrg if test "x$ac_cv_prog_cc_c89" = x 35496eaa481cSmrgthen : 35506eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35516eaa481cSmrgprintf "%s\n" "none needed" >&6; } 35526eaa481cSmrgelse $as_nop 35536eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35546eaa481cSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 35556eaa481cSmrg CC="$CC $ac_cv_prog_cc_c89" 35566eaa481cSmrgfi 35576eaa481cSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 35586eaa481cSmrg ac_prog_cc_stdc=c89 35596eaa481cSmrgfi 3560ce62200cSmrgfi 35611a30de1fSmrg 35621a30de1fSmrgac_ext=c 35631a30de1fSmrgac_cpp='$CPP $CPPFLAGS' 35641a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35651a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35661a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35671a30de1fSmrg 35686eaa481cSmrg 35696eaa481cSmrg ac_ext=c 3570a733a5bfSmrgac_cpp='$CPP $CPPFLAGS' 3571a733a5bfSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3572a733a5bfSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3573a733a5bfSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35746eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 35756eaa481cSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 35766eaa481cSmrgif test ${am_cv_prog_cc_c_o+y} 35776eaa481cSmrgthen : 35786eaa481cSmrg printf %s "(cached) " >&6 35796eaa481cSmrgelse $as_nop 3580a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581a733a5bfSmrg/* end confdefs.h. */ 3582b7fb5eacSmrg 3583a733a5bfSmrgint 35846eaa481cSmrgmain (void) 3585a733a5bfSmrg{ 3586ce62200cSmrg 3587ce62200cSmrg ; 3588ce62200cSmrg return 0; 3589ce62200cSmrg} 3590ce62200cSmrg_ACEOF 3591a733a5bfSmrg # Make sure it works both with $CC and with simple cc. 3592a733a5bfSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 3593a733a5bfSmrg # compilers refuse to overwrite an existing .o file with -o, 3594a733a5bfSmrg # though they will create one. 3595a733a5bfSmrg am_cv_prog_cc_c_o=yes 3596a733a5bfSmrg for am_i in 1 2; do 3597a733a5bfSmrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3598a733a5bfSmrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3599a733a5bfSmrg ac_status=$? 3600a733a5bfSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3601a733a5bfSmrg (exit $ac_status); } \ 3602a733a5bfSmrg && test -f conftest2.$ac_objext; then 3603a733a5bfSmrg : OK 3604a733a5bfSmrg else 3605a733a5bfSmrg am_cv_prog_cc_c_o=no 3606a733a5bfSmrg break 36076eaa481cSmrg fi 36086eaa481cSmrg done 36096eaa481cSmrg rm -f core conftest* 36106eaa481cSmrg unset am_i 3611b7fb5eacSmrgfi 36126eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 36136eaa481cSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 36146eaa481cSmrgif test "$am_cv_prog_cc_c_o" != yes; then 36156eaa481cSmrg # Losing compiler, so override with the script. 36166eaa481cSmrg # FIXME: It is wrong to rewrite CC. 36176eaa481cSmrg # But if we don't then we get into trouble of one sort or another. 36186eaa481cSmrg # A longer-term fix would be to have automake use am__CC in this case, 36196eaa481cSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 36206eaa481cSmrg CC="$am_aux_dir/compile $CC" 3621b7fb5eacSmrgfi 3622b7fb5eacSmrgac_ext=c 3623b7fb5eacSmrgac_cpp='$CPP $CPPFLAGS' 3624b7fb5eacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3625b7fb5eacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3626b7fb5eacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3627b7fb5eacSmrg 3628b7fb5eacSmrg 36296eaa481cSmrg 36306eaa481cSmrgac_header= ac_cache= 36316eaa481cSmrgfor ac_item in $ac_header_c_list 3632b7fb5eacSmrgdo 36336eaa481cSmrg if test $ac_cache; then 36346eaa481cSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 36356eaa481cSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 36366eaa481cSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 3637b7fb5eacSmrg fi 36386eaa481cSmrg ac_header= ac_cache= 36396eaa481cSmrg elif test $ac_header; then 36406eaa481cSmrg ac_cache=$ac_item 36416eaa481cSmrg else 36426eaa481cSmrg ac_header=$ac_item 3643b7fb5eacSmrg fi 36446eaa481cSmrgdone 3645b7fb5eacSmrg 3646b7fb5eacSmrg 3647b7fb5eacSmrg 3648b7fb5eacSmrg 3649b7fb5eacSmrg 36506eaa481cSmrg 36516eaa481cSmrg 36526eaa481cSmrg 36536eaa481cSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 36546eaa481cSmrgthen : 36556eaa481cSmrg 36566eaa481cSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 36576eaa481cSmrg 3658b7fb5eacSmrgfi 3659b7fb5eacSmrg 3660b7fb5eacSmrg 36616eaa481cSmrg 36626eaa481cSmrg 36636eaa481cSmrg 36646eaa481cSmrg 36656eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 36666eaa481cSmrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 36676eaa481cSmrgif test ${ac_cv_safe_to_define___extensions__+y} 36686eaa481cSmrgthen : 36696eaa481cSmrg printf %s "(cached) " >&6 36706eaa481cSmrgelse $as_nop 3671ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672b7fb5eacSmrg/* end confdefs.h. */ 3673b7fb5eacSmrg 36746eaa481cSmrg# define __EXTENSIONS__ 1 36756eaa481cSmrg $ac_includes_default 3676b7fb5eacSmrgint 36776eaa481cSmrgmain (void) 3678b7fb5eacSmrg{ 3679b7fb5eacSmrg 3680b7fb5eacSmrg ; 3681b7fb5eacSmrg return 0; 3682b7fb5eacSmrg} 3683b7fb5eacSmrg_ACEOF 36846eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 36856eaa481cSmrgthen : 36866eaa481cSmrg ac_cv_safe_to_define___extensions__=yes 36876eaa481cSmrgelse $as_nop 36886eaa481cSmrg ac_cv_safe_to_define___extensions__=no 3689b7fb5eacSmrgfi 36906eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3691b7fb5eacSmrgfi 36926eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 36936eaa481cSmrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3694b7fb5eacSmrg 36956eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 36966eaa481cSmrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 36976eaa481cSmrgif test ${ac_cv_should_define__xopen_source+y} 36986eaa481cSmrgthen : 36996eaa481cSmrg printf %s "(cached) " >&6 37006eaa481cSmrgelse $as_nop 37016eaa481cSmrg ac_cv_should_define__xopen_source=no 37026eaa481cSmrg if test $ac_cv_header_wchar_h = yes 37036eaa481cSmrgthen : 3704ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705b7fb5eacSmrg/* end confdefs.h. */ 3706ce62200cSmrg 37076eaa481cSmrg #include <wchar.h> 37086eaa481cSmrg mbstate_t x; 37096eaa481cSmrgint 37106eaa481cSmrgmain (void) 37116eaa481cSmrg{ 3712b7fb5eacSmrg 37136eaa481cSmrg ; 37146eaa481cSmrg return 0; 37156eaa481cSmrg} 37166eaa481cSmrg_ACEOF 37176eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 37186eaa481cSmrgthen : 3719b7fb5eacSmrg 37206eaa481cSmrgelse $as_nop 3721ce62200cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722b7fb5eacSmrg/* end confdefs.h. */ 3723b7fb5eacSmrg 37246eaa481cSmrg #define _XOPEN_SOURCE 500 37256eaa481cSmrg #include <wchar.h> 37266eaa481cSmrg mbstate_t x; 3727b7fb5eacSmrgint 37286eaa481cSmrgmain (void) 3729b7fb5eacSmrg{ 37306eaa481cSmrg 37316eaa481cSmrg ; 3732b7fb5eacSmrg return 0; 3733b7fb5eacSmrg} 3734b7fb5eacSmrg_ACEOF 37356eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 37366eaa481cSmrgthen : 37376eaa481cSmrg ac_cv_should_define__xopen_source=yes 3738b7fb5eacSmrgfi 37396eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3740b7fb5eacSmrgfi 37416eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3742b7fb5eacSmrgfi 3743b7fb5eacSmrgfi 37446eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 37456eaa481cSmrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3746b7fb5eacSmrg 37476eaa481cSmrg printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3748b7fb5eacSmrg 37496eaa481cSmrg printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3750b7fb5eacSmrg 37516eaa481cSmrg printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3752b7fb5eacSmrg 37536eaa481cSmrg printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3754b7fb5eacSmrg 37556eaa481cSmrg printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3756b7fb5eacSmrg 37576eaa481cSmrg printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3758ce62200cSmrg 37596eaa481cSmrg printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3760a733a5bfSmrg 37616eaa481cSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3762a733a5bfSmrg 37636eaa481cSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3764a733a5bfSmrg 37656eaa481cSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3766a733a5bfSmrg 37676eaa481cSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3768a733a5bfSmrg 37696eaa481cSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3770a733a5bfSmrg 37716eaa481cSmrg printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3772a733a5bfSmrg 37736eaa481cSmrg printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3774a733a5bfSmrg 37756eaa481cSmrg printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3776a733a5bfSmrg 37776eaa481cSmrg if test $ac_cv_header_minix_config_h = yes 37786eaa481cSmrgthen : 37796eaa481cSmrg MINIX=yes 37806eaa481cSmrg printf "%s\n" "#define _MINIX 1" >>confdefs.h 3781a733a5bfSmrg 37826eaa481cSmrg printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3783a733a5bfSmrg 37846eaa481cSmrg printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3785a733a5bfSmrg 37866eaa481cSmrgelse $as_nop 37876eaa481cSmrg MINIX= 3788a733a5bfSmrgfi 37896eaa481cSmrg if test $ac_cv_safe_to_define___extensions__ = yes 37906eaa481cSmrgthen : 37916eaa481cSmrg printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3792a733a5bfSmrg 37936eaa481cSmrgfi 37946eaa481cSmrg if test $ac_cv_should_define__xopen_source = yes 37956eaa481cSmrgthen : 37966eaa481cSmrg printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3797a733a5bfSmrg 37986eaa481cSmrgfi 3799a733a5bfSmrg 3800a733a5bfSmrg 3801a733a5bfSmrg# Initialize Automake 38026eaa481cSmrgam__api_version='1.16' 3803a733a5bfSmrg 38046eaa481cSmrg 38056eaa481cSmrg # Find a good install program. We prefer a C program (faster), 3806a733a5bfSmrg# so one script is as good as another. But avoid the broken or 3807a733a5bfSmrg# incompatible versions: 3808a733a5bfSmrg# SysV /etc/install, /usr/sbin/install 3809a733a5bfSmrg# SunOS /usr/etc/install 3810a733a5bfSmrg# IRIX /sbin/install 3811a733a5bfSmrg# AIX /bin/install 3812a733a5bfSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 3813a733a5bfSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3814a733a5bfSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3815a733a5bfSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3816a733a5bfSmrg# OS/2's system install, which has a completely different semantic 3817a733a5bfSmrg# ./install, which can be erroneously created by make from ./install.sh. 3818a733a5bfSmrg# Reject install programs that cannot install multiple files. 38196eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 38206eaa481cSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 3821a733a5bfSmrgif test -z "$INSTALL"; then 38226eaa481cSmrgif test ${ac_cv_path_install+y} 38236eaa481cSmrgthen : 38246eaa481cSmrg printf %s "(cached) " >&6 38256eaa481cSmrgelse $as_nop 3826a733a5bfSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3827ce62200cSmrgfor as_dir in $PATH 3828b7fb5eacSmrgdo 3829ce62200cSmrg IFS=$as_save_IFS 38306eaa481cSmrg case $as_dir in #((( 38316eaa481cSmrg '') as_dir=./ ;; 38326eaa481cSmrg */) ;; 38336eaa481cSmrg *) as_dir=$as_dir/ ;; 38346eaa481cSmrg esac 38356eaa481cSmrg # Account for fact that we put trailing slashes in our PATH walk. 38366eaa481cSmrgcase $as_dir in #(( 38376eaa481cSmrg ./ | /[cC]/* | \ 3838a733a5bfSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3839a733a5bfSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3840a733a5bfSmrg /usr/ucb/* ) ;; 3841a733a5bfSmrg *) 3842a733a5bfSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 3843a733a5bfSmrg # Don't use installbsd from OSF since it installs stuff as root 3844a733a5bfSmrg # by default. 3845a733a5bfSmrg for ac_prog in ginstall scoinst install; do 3846a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 38476eaa481cSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3848a733a5bfSmrg if test $ac_prog = install && 38496eaa481cSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3850a733a5bfSmrg # AIX install. It has an incompatible calling convention. 3851a733a5bfSmrg : 3852a733a5bfSmrg elif test $ac_prog = install && 38536eaa481cSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3854a733a5bfSmrg # program-specific install script used by HP pwplus--don't use. 3855a733a5bfSmrg : 3856a733a5bfSmrg else 3857a733a5bfSmrg rm -rf conftest.one conftest.two conftest.dir 3858a733a5bfSmrg echo one > conftest.one 3859a733a5bfSmrg echo two > conftest.two 3860a733a5bfSmrg mkdir conftest.dir 38616eaa481cSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3862a733a5bfSmrg test -s conftest.one && test -s conftest.two && 3863a733a5bfSmrg test -s conftest.dir/conftest.one && 3864a733a5bfSmrg test -s conftest.dir/conftest.two 3865a733a5bfSmrg then 38666eaa481cSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3867a733a5bfSmrg break 3 3868a733a5bfSmrg fi 3869a733a5bfSmrg fi 3870a733a5bfSmrg fi 3871a733a5bfSmrg done 3872a733a5bfSmrg done 3873a733a5bfSmrg ;; 3874a733a5bfSmrgesac 3875a733a5bfSmrg 3876ce62200cSmrg done 3877ce62200cSmrgIFS=$as_save_IFS 3878ce62200cSmrg 3879a733a5bfSmrgrm -rf conftest.one conftest.two conftest.dir 3880a733a5bfSmrg 3881ce62200cSmrgfi 38826eaa481cSmrg if test ${ac_cv_path_install+y}; then 3883a733a5bfSmrg INSTALL=$ac_cv_path_install 3884a733a5bfSmrg else 3885a733a5bfSmrg # As a last resort, use the slow shell script. Don't cache a 3886a733a5bfSmrg # value for INSTALL within a source directory, because that will 3887a733a5bfSmrg # break other packages using the cache if that directory is 3888a733a5bfSmrg # removed, or if the value is a relative name. 3889a733a5bfSmrg INSTALL=$ac_install_sh 3890a733a5bfSmrg fi 3891a733a5bfSmrgfi 38926eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 38936eaa481cSmrgprintf "%s\n" "$INSTALL" >&6; } 3894a733a5bfSmrg 3895a733a5bfSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3896a733a5bfSmrg# It thinks the first close brace ends the variable substitution. 3897a733a5bfSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3898a733a5bfSmrg 3899a733a5bfSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3900a733a5bfSmrg 3901a733a5bfSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3902a733a5bfSmrg 39036eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 39046eaa481cSmrgprintf %s "checking whether build environment is sane... " >&6; } 3905a733a5bfSmrg# Reject unsafe characters in $srcdir or the absolute working directory 3906a733a5bfSmrg# name. Accept space and tab only in the latter. 3907a733a5bfSmrgam_lf=' 3908a733a5bfSmrg' 3909a733a5bfSmrgcase `pwd` in 3910a733a5bfSmrg *[\\\"\#\$\&\'\`$am_lf]*) 3911a733a5bfSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3912a733a5bfSmrgesac 3913a733a5bfSmrgcase $srcdir in 3914a733a5bfSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3915a733a5bfSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3916a733a5bfSmrgesac 3917a733a5bfSmrg 3918a733a5bfSmrg# Do 'set' in a subshell so we don't clobber the current shell's 3919a733a5bfSmrg# arguments. Must try -L first in case configure is actually a 3920a733a5bfSmrg# symlink; some systems play weird games with the mod time of symlinks 3921a733a5bfSmrg# (eg FreeBSD returns the mod time of the symlink's containing 3922a733a5bfSmrg# directory). 3923a733a5bfSmrgif ( 3924a733a5bfSmrg am_has_slept=no 3925a733a5bfSmrg for am_try in 1 2; do 3926a733a5bfSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 3927a733a5bfSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3928a733a5bfSmrg if test "$*" = "X"; then 3929a733a5bfSmrg # -L didn't work. 3930a733a5bfSmrg set X `ls -t "$srcdir/configure" conftest.file` 3931a733a5bfSmrg fi 3932a733a5bfSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 3933a733a5bfSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 3934a733a5bfSmrg 3935a733a5bfSmrg # If neither matched, then we have a broken ls. This can happen 3936a733a5bfSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 3937a733a5bfSmrg # broken ls alias from the environment. This has actually 3938a733a5bfSmrg # happened. Such a system could not be considered "sane". 3939a733a5bfSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3940a733a5bfSmrg alias in your environment" "$LINENO" 5 3941a733a5bfSmrg fi 3942a733a5bfSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 3943a733a5bfSmrg break 3944a733a5bfSmrg fi 3945a733a5bfSmrg # Just in case. 3946a733a5bfSmrg sleep 1 3947a733a5bfSmrg am_has_slept=yes 3948a733a5bfSmrg done 3949a733a5bfSmrg test "$2" = conftest.file 3950a733a5bfSmrg ) 3951a733a5bfSmrgthen 3952a733a5bfSmrg # Ok. 3953a733a5bfSmrg : 3954b7fb5eacSmrgelse 3955a733a5bfSmrg as_fn_error $? "newly created file is older than distributed files! 3956a733a5bfSmrgCheck your system clock" "$LINENO" 5 3957b7fb5eacSmrgfi 39586eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39596eaa481cSmrgprintf "%s\n" "yes" >&6; } 3960a733a5bfSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 3961a733a5bfSmrg# generated files are strictly newer. 3962a733a5bfSmrgam_sleep_pid= 3963a733a5bfSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 3964a733a5bfSmrg ( sleep 1 ) & 3965a733a5bfSmrg am_sleep_pid=$! 3966a733a5bfSmrgfi 3967a733a5bfSmrg 3968a733a5bfSmrgrm -f conftest.file 3969b7fb5eacSmrg 3970a733a5bfSmrgtest "$program_prefix" != NONE && 3971a733a5bfSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 3972a733a5bfSmrg# Use a double $ so make ignores it. 3973a733a5bfSmrgtest "$program_suffix" != NONE && 3974a733a5bfSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3975a733a5bfSmrg# Double any \ or $. 3976a733a5bfSmrg# By default was `s,x,x', remove it if useless. 3977a733a5bfSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 39786eaa481cSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3979b7fb5eacSmrg 39806eaa481cSmrg 39816eaa481cSmrg if test x"${MISSING+set}" != xset; then 39826eaa481cSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 3983b7fb5eacSmrgfi 3984a733a5bfSmrg# Use eval to expand $SHELL 3985a733a5bfSmrgif eval "$MISSING --is-lightweight"; then 3986a733a5bfSmrg am_missing_run="$MISSING " 3987a733a5bfSmrgelse 3988a733a5bfSmrg am_missing_run= 39896eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 39906eaa481cSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3991a733a5bfSmrgfi 3992a733a5bfSmrg 39931b983734Smrgif test x"${install_sh+set}" != xset; then 3994a733a5bfSmrg case $am_aux_dir in 3995a733a5bfSmrg *\ * | *\ *) 3996a733a5bfSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3997a733a5bfSmrg *) 3998a733a5bfSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 3999a733a5bfSmrg esac 4000a733a5bfSmrgfi 4001a733a5bfSmrg 4002a733a5bfSmrg# Installed binaries are usually stripped using 'strip' when the user 4003a733a5bfSmrg# run "make install-strip". However 'strip' might not be the right 4004a733a5bfSmrg# tool to use in cross-compilation environments, therefore Automake 4005a733a5bfSmrg# will honor the 'STRIP' environment variable to overrule this program. 4006a733a5bfSmrgif test "$cross_compiling" != no; then 4007a733a5bfSmrg if test -n "$ac_tool_prefix"; then 4008a733a5bfSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4009a733a5bfSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 40106eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40116eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 40126eaa481cSmrgif test ${ac_cv_prog_STRIP+y} 40136eaa481cSmrgthen : 40146eaa481cSmrg printf %s "(cached) " >&6 40156eaa481cSmrgelse $as_nop 4016a733a5bfSmrg if test -n "$STRIP"; then 4017a733a5bfSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4018a733a5bfSmrgelse 4019a733a5bfSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020ce62200cSmrgfor as_dir in $PATH 4021ce62200cSmrgdo 4022ce62200cSmrg IFS=$as_save_IFS 40236eaa481cSmrg case $as_dir in #((( 40246eaa481cSmrg '') as_dir=./ ;; 40256eaa481cSmrg */) ;; 40266eaa481cSmrg *) as_dir=$as_dir/ ;; 40276eaa481cSmrg esac 4028ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40296eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4030a733a5bfSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 40316eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4032ce62200cSmrg break 2 4033ce62200cSmrg fi 4034ce62200cSmrgdone 4035ce62200cSmrg done 4036ce62200cSmrgIFS=$as_save_IFS 4037ce62200cSmrg 4038ce62200cSmrgfi 4039a733a5bfSmrgfi 4040a733a5bfSmrgSTRIP=$ac_cv_prog_STRIP 4041a733a5bfSmrgif test -n "$STRIP"; then 40426eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40436eaa481cSmrgprintf "%s\n" "$STRIP" >&6; } 4044ce62200cSmrgelse 40456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40466eaa481cSmrgprintf "%s\n" "no" >&6; } 4047ce62200cSmrgfi 4048b7fb5eacSmrg 4049a733a5bfSmrg 4050a733a5bfSmrgfi 4051a733a5bfSmrgif test -z "$ac_cv_prog_STRIP"; then 4052a733a5bfSmrg ac_ct_STRIP=$STRIP 4053a733a5bfSmrg # Extract the first word of "strip", so it can be a program name with args. 4054a733a5bfSmrgset dummy strip; ac_word=$2 40556eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40566eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 40576eaa481cSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 40586eaa481cSmrgthen : 40596eaa481cSmrg printf %s "(cached) " >&6 40606eaa481cSmrgelse $as_nop 4061a733a5bfSmrg if test -n "$ac_ct_STRIP"; then 4062a733a5bfSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4063a733a5bfSmrgelse 4064a733a5bfSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4065a733a5bfSmrgfor as_dir in $PATH 4066a733a5bfSmrgdo 4067a733a5bfSmrg IFS=$as_save_IFS 40686eaa481cSmrg case $as_dir in #((( 40696eaa481cSmrg '') as_dir=./ ;; 40706eaa481cSmrg */) ;; 40716eaa481cSmrg *) as_dir=$as_dir/ ;; 40726eaa481cSmrg esac 4073a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40746eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4075a733a5bfSmrg ac_cv_prog_ac_ct_STRIP="strip" 40766eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4077a733a5bfSmrg break 2 4078a733a5bfSmrg fi 4079a733a5bfSmrgdone 4080a733a5bfSmrg done 4081a733a5bfSmrgIFS=$as_save_IFS 4082a733a5bfSmrg 4083a733a5bfSmrgfi 4084a733a5bfSmrgfi 4085a733a5bfSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4086a733a5bfSmrgif test -n "$ac_ct_STRIP"; then 40876eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40886eaa481cSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 4089a733a5bfSmrgelse 40906eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40916eaa481cSmrgprintf "%s\n" "no" >&6; } 4092a733a5bfSmrgfi 4093a733a5bfSmrg 4094a733a5bfSmrg if test "x$ac_ct_STRIP" = x; then 4095a733a5bfSmrg STRIP=":" 4096ce62200cSmrg else 4097ce62200cSmrg case $cross_compiling:$ac_tool_warned in 4098ce62200cSmrgyes:) 40996eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41006eaa481cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4101ce62200cSmrgac_tool_warned=yes ;; 4102ce62200cSmrgesac 4103a733a5bfSmrg STRIP=$ac_ct_STRIP 4104ce62200cSmrg fi 4105ce62200cSmrgelse 4106a733a5bfSmrg STRIP="$ac_cv_prog_STRIP" 4107ce62200cSmrgfi 4108b7fb5eacSmrg 4109ce62200cSmrgfi 4110a733a5bfSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4111a733a5bfSmrg 41126eaa481cSmrg 41136eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 41146eaa481cSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 4115a733a5bfSmrgif test -z "$MKDIR_P"; then 41166eaa481cSmrg if test ${ac_cv_path_mkdir+y} 41176eaa481cSmrgthen : 41186eaa481cSmrg printf %s "(cached) " >&6 41196eaa481cSmrgelse $as_nop 4120a733a5bfSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4121a733a5bfSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4122a733a5bfSmrgdo 4123a733a5bfSmrg IFS=$as_save_IFS 41246eaa481cSmrg case $as_dir in #((( 41256eaa481cSmrg '') as_dir=./ ;; 41266eaa481cSmrg */) ;; 41276eaa481cSmrg *) as_dir=$as_dir/ ;; 41286eaa481cSmrg esac 4129a733a5bfSmrg for ac_prog in mkdir gmkdir; do 4130a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41316eaa481cSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 41326eaa481cSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 41336eaa481cSmrg 'mkdir ('*'coreutils) '* | \ 41346eaa481cSmrg 'BusyBox '* | \ 4135a733a5bfSmrg 'mkdir (fileutils) '4.1*) 41366eaa481cSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4137a733a5bfSmrg break 3;; 4138a733a5bfSmrg esac 4139a733a5bfSmrg done 4140a733a5bfSmrg done 4141a733a5bfSmrg done 4142a733a5bfSmrgIFS=$as_save_IFS 4143b7fb5eacSmrg 4144ce62200cSmrgfi 4145b7fb5eacSmrg 4146a733a5bfSmrg test -d ./--version && rmdir ./--version 41476eaa481cSmrg if test ${ac_cv_path_mkdir+y}; then 4148a733a5bfSmrg MKDIR_P="$ac_cv_path_mkdir -p" 4149a733a5bfSmrg else 4150a733a5bfSmrg # As a last resort, use the slow shell script. Don't cache a 4151a733a5bfSmrg # value for MKDIR_P within a source directory, because that will 4152a733a5bfSmrg # break other packages using the cache if that directory is 4153a733a5bfSmrg # removed, or if the value is a relative name. 4154a733a5bfSmrg MKDIR_P="$ac_install_sh -d" 4155a733a5bfSmrg fi 4156a733a5bfSmrgfi 41576eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 41586eaa481cSmrgprintf "%s\n" "$MKDIR_P" >&6; } 4159a733a5bfSmrg 4160a733a5bfSmrgfor ac_prog in gawk mawk nawk awk 4161a733a5bfSmrgdo 4162a733a5bfSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4163a733a5bfSmrgset dummy $ac_prog; ac_word=$2 41646eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41656eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 41666eaa481cSmrgif test ${ac_cv_prog_AWK+y} 41676eaa481cSmrgthen : 41686eaa481cSmrg printf %s "(cached) " >&6 41696eaa481cSmrgelse $as_nop 4170a733a5bfSmrg if test -n "$AWK"; then 4171a733a5bfSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 4172a733a5bfSmrgelse 4173a733a5bfSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4174a733a5bfSmrgfor as_dir in $PATH 4175a733a5bfSmrgdo 4176a733a5bfSmrg IFS=$as_save_IFS 41776eaa481cSmrg case $as_dir in #((( 41786eaa481cSmrg '') as_dir=./ ;; 41796eaa481cSmrg */) ;; 41806eaa481cSmrg *) as_dir=$as_dir/ ;; 41816eaa481cSmrg esac 4182a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41836eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4184a733a5bfSmrg ac_cv_prog_AWK="$ac_prog" 41856eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4186a733a5bfSmrg break 2 4187a733a5bfSmrg fi 4188a733a5bfSmrgdone 4189a733a5bfSmrg done 4190a733a5bfSmrgIFS=$as_save_IFS 4191b7fb5eacSmrg 4192b7fb5eacSmrgfi 4193a733a5bfSmrgfi 4194a733a5bfSmrgAWK=$ac_cv_prog_AWK 4195a733a5bfSmrgif test -n "$AWK"; then 41966eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 41976eaa481cSmrgprintf "%s\n" "$AWK" >&6; } 4198a733a5bfSmrgelse 41996eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42006eaa481cSmrgprintf "%s\n" "no" >&6; } 4201a733a5bfSmrgfi 4202a733a5bfSmrg 4203a733a5bfSmrg 4204a733a5bfSmrg test -n "$AWK" && break 4205a733a5bfSmrgdone 4206a733a5bfSmrg 42076eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 42086eaa481cSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4209a733a5bfSmrgset x ${MAKE-make} 42106eaa481cSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 42116eaa481cSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 42126eaa481cSmrgthen : 42136eaa481cSmrg printf %s "(cached) " >&6 42146eaa481cSmrgelse $as_nop 4215a733a5bfSmrg cat >conftest.make <<\_ACEOF 4216a733a5bfSmrgSHELL = /bin/sh 4217a733a5bfSmrgall: 4218a733a5bfSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 4219a733a5bfSmrg_ACEOF 4220a733a5bfSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4221a733a5bfSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 4222a733a5bfSmrg *@@@%%%=?*=@@@%%%*) 4223a733a5bfSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 4224a733a5bfSmrg *) 4225a733a5bfSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 4226b7fb5eacSmrgesac 4227a733a5bfSmrgrm -f conftest.make 4228a733a5bfSmrgfi 4229a733a5bfSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 42306eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42316eaa481cSmrgprintf "%s\n" "yes" >&6; } 4232a733a5bfSmrg SET_MAKE= 4233a733a5bfSmrgelse 42346eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42356eaa481cSmrgprintf "%s\n" "no" >&6; } 4236a733a5bfSmrg SET_MAKE="MAKE=${MAKE-make}" 4237a733a5bfSmrgfi 4238a733a5bfSmrg 4239a733a5bfSmrgrm -rf .tst 2>/dev/null 4240a733a5bfSmrgmkdir .tst 2>/dev/null 4241a733a5bfSmrgif test -d .tst; then 4242a733a5bfSmrg am__leading_dot=. 4243a733a5bfSmrgelse 4244a733a5bfSmrg am__leading_dot=_ 4245a733a5bfSmrgfi 4246a733a5bfSmrgrmdir .tst 2>/dev/null 4247a733a5bfSmrg 4248a733a5bfSmrgDEPDIR="${am__leading_dot}deps" 4249a733a5bfSmrg 4250a733a5bfSmrgac_config_commands="$ac_config_commands depfiles" 4251a733a5bfSmrg 42526eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 42536eaa481cSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 42546eaa481cSmrgcat > confinc.mk << 'END' 4255a733a5bfSmrgam__doit: 42566eaa481cSmrg @echo this is the am__doit target >confinc.out 4257a733a5bfSmrg.PHONY: am__doit 4258a733a5bfSmrgEND 4259a733a5bfSmrgam__include="#" 4260a733a5bfSmrgam__quote= 42616eaa481cSmrg# BSD make does it like this. 42626eaa481cSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 42636eaa481cSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 42646eaa481cSmrgecho 'include confinc.mk # ignored' > confmf.GNU 42656eaa481cSmrg_am_result=no 42666eaa481cSmrgfor s in GNU BSD; do 42676eaa481cSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 42686eaa481cSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 42696eaa481cSmrg ac_status=$? 42706eaa481cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 42716eaa481cSmrg (exit $ac_status); } 42726eaa481cSmrg case $?:`cat confinc.out 2>/dev/null` in #( 42736eaa481cSmrg '0:this is the am__doit target') : 42746eaa481cSmrg case $s in #( 42756eaa481cSmrg BSD) : 42766eaa481cSmrg am__include='.include' am__quote='"' ;; #( 42776eaa481cSmrg *) : 42786eaa481cSmrg am__include='include' am__quote='' ;; 42796eaa481cSmrgesac ;; #( 42806eaa481cSmrg *) : 4281a733a5bfSmrg ;; 42826eaa481cSmrgesac 42836eaa481cSmrg if test "$am__include" != "#"; then 42846eaa481cSmrg _am_result="yes ($s style)" 42856eaa481cSmrg break 42866eaa481cSmrg fi 42876eaa481cSmrgdone 42886eaa481cSmrgrm -f confinc.* confmf.* 42896eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 42906eaa481cSmrgprintf "%s\n" "${_am_result}" >&6; } 4291a733a5bfSmrg 4292a733a5bfSmrg# Check whether --enable-dependency-tracking was given. 42936eaa481cSmrgif test ${enable_dependency_tracking+y} 42946eaa481cSmrgthen : 4295a733a5bfSmrg enableval=$enable_dependency_tracking; 4296a733a5bfSmrgfi 4297a733a5bfSmrg 4298a733a5bfSmrgif test "x$enable_dependency_tracking" != xno; then 4299a733a5bfSmrg am_depcomp="$ac_aux_dir/depcomp" 4300a733a5bfSmrg AMDEPBACKSLASH='\' 4301a733a5bfSmrg am__nodep='_no' 4302a733a5bfSmrgfi 4303a733a5bfSmrg if test "x$enable_dependency_tracking" != xno; then 4304a733a5bfSmrg AMDEP_TRUE= 4305a733a5bfSmrg AMDEP_FALSE='#' 4306a733a5bfSmrgelse 4307a733a5bfSmrg AMDEP_TRUE='#' 4308a733a5bfSmrg AMDEP_FALSE= 4309a733a5bfSmrgfi 4310a733a5bfSmrg 4311a733a5bfSmrg 4312a733a5bfSmrg# Check whether --enable-silent-rules was given. 43136eaa481cSmrgif test ${enable_silent_rules+y} 43146eaa481cSmrgthen : 4315a733a5bfSmrg enableval=$enable_silent_rules; 4316a733a5bfSmrgfi 4317a733a5bfSmrg 4318a733a5bfSmrgcase $enable_silent_rules in # ((( 4319a733a5bfSmrg yes) AM_DEFAULT_VERBOSITY=0;; 4320a733a5bfSmrg no) AM_DEFAULT_VERBOSITY=1;; 4321a733a5bfSmrg *) AM_DEFAULT_VERBOSITY=1;; 4322a733a5bfSmrgesac 4323a733a5bfSmrgam_make=${MAKE-make} 43246eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 43256eaa481cSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 43266eaa481cSmrgif test ${am_cv_make_support_nested_variables+y} 43276eaa481cSmrgthen : 43286eaa481cSmrg printf %s "(cached) " >&6 43296eaa481cSmrgelse $as_nop 43306eaa481cSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 4331a733a5bfSmrgBAR0=false 4332a733a5bfSmrgBAR1=true 4333a733a5bfSmrgV=1 4334a733a5bfSmrgam__doit: 4335a733a5bfSmrg @$(TRUE) 4336a733a5bfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4337a733a5bfSmrg am_cv_make_support_nested_variables=yes 4338a733a5bfSmrgelse 4339a733a5bfSmrg am_cv_make_support_nested_variables=no 4340a733a5bfSmrgfi 4341a733a5bfSmrgfi 43426eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 43436eaa481cSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4344a733a5bfSmrgif test $am_cv_make_support_nested_variables = yes; then 4345a733a5bfSmrg AM_V='$(V)' 4346a733a5bfSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4347a733a5bfSmrgelse 4348a733a5bfSmrg AM_V=$AM_DEFAULT_VERBOSITY 4349a733a5bfSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4350a733a5bfSmrgfi 4351a733a5bfSmrgAM_BACKSLASH='\' 4352a733a5bfSmrg 4353a733a5bfSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 4354a733a5bfSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4355a733a5bfSmrg # is not polluted with repeated "-I." 4356a733a5bfSmrg am__isrc=' -I$(srcdir)' 4357a733a5bfSmrg # test to see if srcdir already configured 4358a733a5bfSmrg if test -f $srcdir/config.status; then 4359a733a5bfSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4360a733a5bfSmrg fi 4361a733a5bfSmrgfi 4362a733a5bfSmrg 4363a733a5bfSmrg# test whether we have cygpath 4364a733a5bfSmrgif test -z "$CYGPATH_W"; then 4365a733a5bfSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 4366a733a5bfSmrg CYGPATH_W='cygpath -w' 4367a733a5bfSmrg else 4368a733a5bfSmrg CYGPATH_W=echo 4369a733a5bfSmrg fi 4370a733a5bfSmrgfi 4371a733a5bfSmrg 4372a733a5bfSmrg 4373a733a5bfSmrg# Define the identity of the package. 4374a733a5bfSmrg PACKAGE='xmodmap' 43756eaa481cSmrg VERSION='1.0.11' 4376a733a5bfSmrg 4377a733a5bfSmrg 43786eaa481cSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4379a733a5bfSmrg 4380a733a5bfSmrg 43816eaa481cSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4382a733a5bfSmrg 4383a733a5bfSmrg# Some tools Automake needs. 4384a733a5bfSmrg 4385a733a5bfSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4386a733a5bfSmrg 4387a733a5bfSmrg 4388a733a5bfSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4389a733a5bfSmrg 4390a733a5bfSmrg 4391a733a5bfSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4392a733a5bfSmrg 4393a733a5bfSmrg 4394a733a5bfSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4395a733a5bfSmrg 4396a733a5bfSmrg 4397a733a5bfSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4398a733a5bfSmrg 4399a733a5bfSmrg# For better backward compatibility. To be removed once Automake 1.9.x 4400a733a5bfSmrg# dies out for good. For more background, see: 44016eaa481cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 44026eaa481cSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4403a733a5bfSmrgmkdir_p='$(MKDIR_P)' 4404a733a5bfSmrg 44051b983734Smrg# We need awk for the "check" target (and possibly the TAP driver). The 44061b983734Smrg# system "awk" is bad on some platforms. 4407a733a5bfSmrg# Always define AMTAR for backward compatibility. Yes, it's still used 4408a733a5bfSmrg# in the wild :-( We should find a proper way to deprecate it ... 4409a733a5bfSmrgAMTAR='$${TAR-tar}' 4410a733a5bfSmrg 4411a733a5bfSmrg 4412a733a5bfSmrg# We'll loop over all known methods to create a tar archive until one works. 4413a733a5bfSmrg_am_tools='gnutar pax cpio none' 4414a733a5bfSmrg 4415a733a5bfSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4416a733a5bfSmrg 4417a733a5bfSmrg 4418a733a5bfSmrg 4419a733a5bfSmrg 4420a733a5bfSmrg 4421a733a5bfSmrgdepcc="$CC" am_compiler_list= 4422a733a5bfSmrg 44236eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 44246eaa481cSmrgprintf %s "checking dependency style of $depcc... " >&6; } 44256eaa481cSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 44266eaa481cSmrgthen : 44276eaa481cSmrg printf %s "(cached) " >&6 44286eaa481cSmrgelse $as_nop 4429a733a5bfSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4430a733a5bfSmrg # We make a subdir and do the tests there. Otherwise we can end up 4431a733a5bfSmrg # making bogus files that we don't know about and never remove. For 4432a733a5bfSmrg # instance it was reported that on HP-UX the gcc test will end up 4433a733a5bfSmrg # making a dummy file named 'D' -- because '-MD' means "put the output 4434a733a5bfSmrg # in D". 4435a733a5bfSmrg rm -rf conftest.dir 4436a733a5bfSmrg mkdir conftest.dir 4437a733a5bfSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 4438a733a5bfSmrg # using a relative directory. 4439a733a5bfSmrg cp "$am_depcomp" conftest.dir 4440a733a5bfSmrg cd conftest.dir 4441a733a5bfSmrg # We will build objects and dependencies in a subdirectory because 4442a733a5bfSmrg # it helps to detect inapplicable dependency modes. For instance 4443a733a5bfSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 4444a733a5bfSmrg # side effect of compilation, but ICC will put the dependencies in 4445a733a5bfSmrg # the current directory while Tru64 will put them in the object 4446a733a5bfSmrg # directory. 4447a733a5bfSmrg mkdir sub 4448a733a5bfSmrg 4449a733a5bfSmrg am_cv_CC_dependencies_compiler_type=none 4450a733a5bfSmrg if test "$am_compiler_list" = ""; then 4451a733a5bfSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4452a733a5bfSmrg fi 4453a733a5bfSmrg am__universal=false 4454a733a5bfSmrg case " $depcc " in #( 4455a733a5bfSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4456a733a5bfSmrg esac 4457a733a5bfSmrg 4458a733a5bfSmrg for depmode in $am_compiler_list; do 4459a733a5bfSmrg # Setup a source with many dependencies, because some compilers 4460a733a5bfSmrg # like to wrap large dependency lists on column 80 (with \), and 4461a733a5bfSmrg # we should not choose a depcomp mode which is confused by this. 4462a733a5bfSmrg # 4463a733a5bfSmrg # We need to recreate these files for each test, as the compiler may 4464a733a5bfSmrg # overwrite some of them when testing with obscure command lines. 4465a733a5bfSmrg # This happens at least with the AIX C compiler. 4466a733a5bfSmrg : > sub/conftest.c 4467a733a5bfSmrg for i in 1 2 3 4 5 6; do 4468a733a5bfSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4469a733a5bfSmrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4470a733a5bfSmrg # Solaris 10 /bin/sh. 4471a733a5bfSmrg echo '/* dummy */' > sub/conftst$i.h 4472a733a5bfSmrg done 4473a733a5bfSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4474a733a5bfSmrg 4475a733a5bfSmrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4476a733a5bfSmrg # mode. It turns out that the SunPro C++ compiler does not properly 4477a733a5bfSmrg # handle '-M -o', and we need to detect this. Also, some Intel 4478a733a5bfSmrg # versions had trouble with output in subdirs. 4479a733a5bfSmrg am__obj=sub/conftest.${OBJEXT-o} 4480a733a5bfSmrg am__minus_obj="-o $am__obj" 4481a733a5bfSmrg case $depmode in 4482a733a5bfSmrg gcc) 4483a733a5bfSmrg # This depmode causes a compiler race in universal mode. 4484a733a5bfSmrg test "$am__universal" = false || continue 4485a733a5bfSmrg ;; 4486a733a5bfSmrg nosideeffect) 4487a733a5bfSmrg # After this tag, mechanisms are not by side-effect, so they'll 4488a733a5bfSmrg # only be used when explicitly requested. 4489a733a5bfSmrg if test "x$enable_dependency_tracking" = xyes; then 4490a733a5bfSmrg continue 4491a733a5bfSmrg else 4492a733a5bfSmrg break 4493a733a5bfSmrg fi 4494a733a5bfSmrg ;; 4495a733a5bfSmrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4496a733a5bfSmrg # This compiler won't grok '-c -o', but also, the minuso test has 4497a733a5bfSmrg # not run yet. These depmodes are late enough in the game, and 4498a733a5bfSmrg # so weak that their functioning should not be impacted. 4499a733a5bfSmrg am__obj=conftest.${OBJEXT-o} 4500a733a5bfSmrg am__minus_obj= 4501a733a5bfSmrg ;; 4502a733a5bfSmrg none) break ;; 4503a733a5bfSmrg esac 4504a733a5bfSmrg if depmode=$depmode \ 4505a733a5bfSmrg source=sub/conftest.c object=$am__obj \ 4506a733a5bfSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4507a733a5bfSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4508a733a5bfSmrg >/dev/null 2>conftest.err && 4509a733a5bfSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4510a733a5bfSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4511a733a5bfSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4512a733a5bfSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4513a733a5bfSmrg # icc doesn't choke on unknown options, it will just issue warnings 4514a733a5bfSmrg # or remarks (even with -Werror). So we grep stderr for any message 4515a733a5bfSmrg # that says an option was ignored or not supported. 4516a733a5bfSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 4517a733a5bfSmrg # icc: Command line warning: ignoring option '-M'; no argument required 4518a733a5bfSmrg # The diagnosis changed in icc 8.0: 4519a733a5bfSmrg # icc: Command line remark: option '-MP' not supported 4520a733a5bfSmrg if (grep 'ignoring option' conftest.err || 4521a733a5bfSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4522a733a5bfSmrg am_cv_CC_dependencies_compiler_type=$depmode 4523a733a5bfSmrg break 4524a733a5bfSmrg fi 4525a733a5bfSmrg fi 4526a733a5bfSmrg done 4527a733a5bfSmrg 4528a733a5bfSmrg cd .. 4529a733a5bfSmrg rm -rf conftest.dir 4530a733a5bfSmrgelse 4531a733a5bfSmrg am_cv_CC_dependencies_compiler_type=none 4532a733a5bfSmrgfi 4533a733a5bfSmrg 4534a733a5bfSmrgfi 45356eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 45366eaa481cSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4537a733a5bfSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4538a733a5bfSmrg 4539a733a5bfSmrg if 4540a733a5bfSmrg test "x$enable_dependency_tracking" != xno \ 4541a733a5bfSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4542a733a5bfSmrg am__fastdepCC_TRUE= 4543a733a5bfSmrg am__fastdepCC_FALSE='#' 4544a733a5bfSmrgelse 4545a733a5bfSmrg am__fastdepCC_TRUE='#' 4546a733a5bfSmrg am__fastdepCC_FALSE= 4547a733a5bfSmrgfi 4548a733a5bfSmrg 4549a733a5bfSmrg 45506eaa481cSmrg# Variables for tags utilities; see am/tags.am 45516eaa481cSmrgif test -z "$CTAGS"; then 45526eaa481cSmrg CTAGS=ctags 45536eaa481cSmrgfi 45546eaa481cSmrg 45556eaa481cSmrgif test -z "$ETAGS"; then 45566eaa481cSmrg ETAGS=etags 45576eaa481cSmrgfi 45586eaa481cSmrg 45596eaa481cSmrgif test -z "$CSCOPE"; then 45606eaa481cSmrg CSCOPE=cscope 45616eaa481cSmrgfi 45626eaa481cSmrg 45636eaa481cSmrg 4564a733a5bfSmrg 4565a733a5bfSmrg# POSIX will say in a future version that running "rm -f" with no argument 4566a733a5bfSmrg# is OK; and we want to be able to make that assumption in our Makefile 4567a733a5bfSmrg# recipes. So use an aggressive probe to check that the usage we want is 4568a733a5bfSmrg# actually supported "in the wild" to an acceptable degree. 4569a733a5bfSmrg# See automake bug#10828. 4570a733a5bfSmrg# To make any issue more visible, cause the running configure to be aborted 4571a733a5bfSmrg# by default if the 'rm' program in use doesn't match our expectations; the 4572a733a5bfSmrg# user can still override this though. 4573a733a5bfSmrgif rm -f && rm -fr && rm -rf; then : OK; else 4574a733a5bfSmrg cat >&2 <<'END' 4575a733a5bfSmrgOops! 4576a733a5bfSmrg 4577a733a5bfSmrgYour 'rm' program seems unable to run without file operands specified 4578a733a5bfSmrgon the command line, even when the '-f' option is present. This is contrary 4579a733a5bfSmrgto the behaviour of most rm programs out there, and not conforming with 4580a733a5bfSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4581a733a5bfSmrg 4582a733a5bfSmrgPlease tell bug-automake@gnu.org about your system, including the value 4583a733a5bfSmrgof your $PATH and any error possibly output before this message. This 4584a733a5bfSmrgcan help us improve future automake versions. 4585a733a5bfSmrg 4586a733a5bfSmrgEND 4587a733a5bfSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4588a733a5bfSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 4589a733a5bfSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 45906eaa481cSmrg echo >&2 45916eaa481cSmrg else 45926eaa481cSmrg cat >&2 <<'END' 45936eaa481cSmrgAborting the configuration process, to ensure you take notice of the issue. 4594a733a5bfSmrg 45956eaa481cSmrgYou can download and install GNU coreutils to get an 'rm' implementation 45966eaa481cSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 4597a733a5bfSmrg 45986eaa481cSmrgIf you want to complete the configuration process using your problematic 45996eaa481cSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 46006eaa481cSmrgto "yes", and re-run configure. 4601a733a5bfSmrg 46026eaa481cSmrgEND 46036eaa481cSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 46046eaa481cSmrg fi 46056eaa481cSmrgfi 4606a733a5bfSmrg 4607a733a5bfSmrg 46086eaa481cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4609a733a5bfSmrg 4610a733a5bfSmrg 4611a733a5bfSmrg 4612a733a5bfSmrg 4613a733a5bfSmrg 4614a733a5bfSmrg 4615a733a5bfSmrg 4616a733a5bfSmrg 4617a733a5bfSmrg 4618a733a5bfSmrg 4619a733a5bfSmrg 4620a733a5bfSmrg 46216eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 46226eaa481cSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 46236eaa481cSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 46246eaa481cSmrgthen : 46256eaa481cSmrg printf %s "(cached) " >&6 46266eaa481cSmrgelse $as_nop 46276eaa481cSmrg ac_save_CFLAGS=$CFLAGS 46286eaa481cSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 46296eaa481cSmrg for ac_arg in '' -fno-builtin; do 46306eaa481cSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 46316eaa481cSmrg # This test program should *not* compile successfully. 46326eaa481cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46336eaa481cSmrg/* end confdefs.h. */ 4634a733a5bfSmrg 46356eaa481cSmrgint 46366eaa481cSmrgmain (void) 46376eaa481cSmrg{ 46386eaa481cSmrg(void) strchr; 4639a733a5bfSmrg ; 4640a733a5bfSmrg return 0; 4641a733a5bfSmrg} 4642a733a5bfSmrg_ACEOF 46436eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 46446eaa481cSmrgthen : 4645a733a5bfSmrg 46466eaa481cSmrgelse $as_nop 46476eaa481cSmrg # This test program should compile successfully. 46486eaa481cSmrg # No library function is consistently available on 46496eaa481cSmrg # freestanding implementations, so test against a dummy 46506eaa481cSmrg # declaration. Include always-available headers on the 46516eaa481cSmrg # off chance that they somehow elicit warnings. 46526eaa481cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46536eaa481cSmrg/* end confdefs.h. */ 46546eaa481cSmrg#include <float.h> 46556eaa481cSmrg#include <limits.h> 46566eaa481cSmrg#include <stdarg.h> 46576eaa481cSmrg#include <stddef.h> 46586eaa481cSmrgextern void ac_decl (int, char *); 4659a733a5bfSmrg 46606eaa481cSmrgint 46616eaa481cSmrgmain (void) 46626eaa481cSmrg{ 46636eaa481cSmrg(void) ac_decl (0, (char *) 0); 46646eaa481cSmrg (void) ac_decl; 4665a733a5bfSmrg 46666eaa481cSmrg ; 46676eaa481cSmrg return 0; 46686eaa481cSmrg} 46696eaa481cSmrg_ACEOF 46706eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 46716eaa481cSmrgthen : 46726eaa481cSmrg if test x"$ac_arg" = x 46736eaa481cSmrgthen : 46746eaa481cSmrg ac_cv_c_undeclared_builtin_options='none needed' 46756eaa481cSmrgelse $as_nop 46766eaa481cSmrg ac_cv_c_undeclared_builtin_options=$ac_arg 46776eaa481cSmrgfi 46786eaa481cSmrg break 46796eaa481cSmrgfi 46806eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46816eaa481cSmrgfi 46826eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46836eaa481cSmrg done 46846eaa481cSmrg CFLAGS=$ac_save_CFLAGS 46856eaa481cSmrg 46866eaa481cSmrgfi 46876eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 46886eaa481cSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 46896eaa481cSmrg case $ac_cv_c_undeclared_builtin_options in #( 46906eaa481cSmrg 'cannot detect') : 46916eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46926eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 46936eaa481cSmrgas_fn_error $? "cannot make $CC report undeclared builtins 46946eaa481cSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 46956eaa481cSmrg 'none needed') : 46966eaa481cSmrg ac_c_undeclared_builtin_options='' ;; #( 46976eaa481cSmrg *) : 46986eaa481cSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 46996eaa481cSmrgesac 4700a733a5bfSmrg 4701a733a5bfSmrg 4702a733a5bfSmrg 4703a733a5bfSmrg 4704a733a5bfSmrg 47056eaa481cSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47066eaa481cSmrgif test "x$ac_cv_have_decl___clang__" = xyes 47076eaa481cSmrgthen : 4708a733a5bfSmrg CLANGCC="yes" 47096eaa481cSmrgelse $as_nop 4710a733a5bfSmrg CLANGCC="no" 4711a733a5bfSmrgfi 47126eaa481cSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47136eaa481cSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 47146eaa481cSmrgthen : 4715a733a5bfSmrg INTELCC="yes" 47166eaa481cSmrgelse $as_nop 4717a733a5bfSmrg INTELCC="no" 4718a733a5bfSmrgfi 47196eaa481cSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47206eaa481cSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 47216eaa481cSmrgthen : 4722a733a5bfSmrg SUNCC="yes" 47236eaa481cSmrgelse $as_nop 4724a733a5bfSmrg SUNCC="no" 4725a733a5bfSmrgfi 4726a733a5bfSmrg 4727a733a5bfSmrg 4728a733a5bfSmrg 4729a733a5bfSmrg 4730423b239cSmrg 4731423b239cSmrg 4732423b239cSmrg 4733423b239cSmrg 4734a733a5bfSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4735a733a5bfSmrg if test -n "$ac_tool_prefix"; then 4736a733a5bfSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4737a733a5bfSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 47386eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47396eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 47406eaa481cSmrgif test ${ac_cv_path_PKG_CONFIG+y} 47416eaa481cSmrgthen : 47426eaa481cSmrg printf %s "(cached) " >&6 47436eaa481cSmrgelse $as_nop 4744a733a5bfSmrg case $PKG_CONFIG in 4745a733a5bfSmrg [\\/]* | ?:[\\/]*) 4746a733a5bfSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4747a733a5bfSmrg ;; 4748a733a5bfSmrg *) 4749a733a5bfSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750a733a5bfSmrgfor as_dir in $PATH 4751a733a5bfSmrgdo 4752a733a5bfSmrg IFS=$as_save_IFS 47536eaa481cSmrg case $as_dir in #((( 47546eaa481cSmrg '') as_dir=./ ;; 47556eaa481cSmrg */) ;; 47566eaa481cSmrg *) as_dir=$as_dir/ ;; 47576eaa481cSmrg esac 4758a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47596eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 47606eaa481cSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 47616eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4762a733a5bfSmrg break 2 4763a733a5bfSmrg fi 4764a733a5bfSmrgdone 4765a733a5bfSmrg done 4766a733a5bfSmrgIFS=$as_save_IFS 4767a733a5bfSmrg 4768a733a5bfSmrg ;; 4769a733a5bfSmrgesac 4770a733a5bfSmrgfi 4771a733a5bfSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4772a733a5bfSmrgif test -n "$PKG_CONFIG"; then 47736eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 47746eaa481cSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 4775a733a5bfSmrgelse 47766eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 47776eaa481cSmrgprintf "%s\n" "no" >&6; } 4778a733a5bfSmrgfi 4779a733a5bfSmrg 4780a733a5bfSmrg 4781a733a5bfSmrgfi 4782a733a5bfSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4783a733a5bfSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4784a733a5bfSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4785a733a5bfSmrgset dummy pkg-config; ac_word=$2 47866eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47876eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 47886eaa481cSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 47896eaa481cSmrgthen : 47906eaa481cSmrg printf %s "(cached) " >&6 47916eaa481cSmrgelse $as_nop 4792a733a5bfSmrg case $ac_pt_PKG_CONFIG in 4793a733a5bfSmrg [\\/]* | ?:[\\/]*) 4794a733a5bfSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4795a733a5bfSmrg ;; 4796a733a5bfSmrg *) 4797a733a5bfSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798a733a5bfSmrgfor as_dir in $PATH 4799a733a5bfSmrgdo 4800a733a5bfSmrg IFS=$as_save_IFS 48016eaa481cSmrg case $as_dir in #((( 48026eaa481cSmrg '') as_dir=./ ;; 48036eaa481cSmrg */) ;; 48046eaa481cSmrg *) as_dir=$as_dir/ ;; 48056eaa481cSmrg esac 4806a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 48076eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 48086eaa481cSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 48096eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4810a733a5bfSmrg break 2 4811a733a5bfSmrg fi 4812a733a5bfSmrgdone 4813a733a5bfSmrg done 4814a733a5bfSmrgIFS=$as_save_IFS 4815a733a5bfSmrg 4816a733a5bfSmrg ;; 4817a733a5bfSmrgesac 4818a733a5bfSmrgfi 4819a733a5bfSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4820a733a5bfSmrgif test -n "$ac_pt_PKG_CONFIG"; then 48216eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 48226eaa481cSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4823a733a5bfSmrgelse 48246eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48256eaa481cSmrgprintf "%s\n" "no" >&6; } 4826a733a5bfSmrgfi 4827a733a5bfSmrg 4828a733a5bfSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4829a733a5bfSmrg PKG_CONFIG="" 4830a733a5bfSmrg else 4831a733a5bfSmrg case $cross_compiling:$ac_tool_warned in 4832a733a5bfSmrgyes:) 48336eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 48346eaa481cSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4835a733a5bfSmrgac_tool_warned=yes ;; 4836a733a5bfSmrgesac 4837a733a5bfSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4838a733a5bfSmrg fi 4839a733a5bfSmrgelse 4840a733a5bfSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4841a733a5bfSmrgfi 4842a733a5bfSmrg 4843a733a5bfSmrgfi 4844a733a5bfSmrgif test -n "$PKG_CONFIG"; then 4845a733a5bfSmrg _pkg_min_version=0.9.0 48466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 48476eaa481cSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4848a733a5bfSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 48496eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48506eaa481cSmrgprintf "%s\n" "yes" >&6; } 4851a733a5bfSmrg else 48526eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48536eaa481cSmrgprintf "%s\n" "no" >&6; } 4854a733a5bfSmrg PKG_CONFIG="" 4855a733a5bfSmrg fi 4856a733a5bfSmrgfi 4857a733a5bfSmrg 48586eaa481cSmrg 48596eaa481cSmrg # Make sure we can run config.sub. 48606eaa481cSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 48616eaa481cSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 48626eaa481cSmrg 48636eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 48646eaa481cSmrgprintf %s "checking build system type... " >&6; } 48656eaa481cSmrgif test ${ac_cv_build+y} 48666eaa481cSmrgthen : 48676eaa481cSmrg printf %s "(cached) " >&6 48686eaa481cSmrgelse $as_nop 4869a733a5bfSmrg ac_build_alias=$build_alias 4870a733a5bfSmrgtest "x$ac_build_alias" = x && 48716eaa481cSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4872a733a5bfSmrgtest "x$ac_build_alias" = x && 4873a733a5bfSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 48746eaa481cSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 48756eaa481cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4876a733a5bfSmrg 4877a733a5bfSmrgfi 48786eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 48796eaa481cSmrgprintf "%s\n" "$ac_cv_build" >&6; } 4880a733a5bfSmrgcase $ac_cv_build in 4881a733a5bfSmrg*-*-*) ;; 4882a733a5bfSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4883a733a5bfSmrgesac 4884a733a5bfSmrgbuild=$ac_cv_build 4885a733a5bfSmrgac_save_IFS=$IFS; IFS='-' 4886a733a5bfSmrgset x $ac_cv_build 4887a733a5bfSmrgshift 4888a733a5bfSmrgbuild_cpu=$1 4889a733a5bfSmrgbuild_vendor=$2 4890a733a5bfSmrgshift; shift 4891a733a5bfSmrg# Remember, the first character of IFS is used to create $*, 4892a733a5bfSmrg# except with old shells: 4893a733a5bfSmrgbuild_os=$* 4894a733a5bfSmrgIFS=$ac_save_IFS 4895a733a5bfSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4896a733a5bfSmrg 4897a733a5bfSmrg 48986eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 48996eaa481cSmrgprintf %s "checking host system type... " >&6; } 49006eaa481cSmrgif test ${ac_cv_host+y} 49016eaa481cSmrgthen : 49026eaa481cSmrg printf %s "(cached) " >&6 49036eaa481cSmrgelse $as_nop 4904a733a5bfSmrg if test "x$host_alias" = x; then 4905a733a5bfSmrg ac_cv_host=$ac_cv_build 4906a733a5bfSmrgelse 49076eaa481cSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 49086eaa481cSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4909a733a5bfSmrgfi 4910a733a5bfSmrg 4911a733a5bfSmrgfi 49126eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 49136eaa481cSmrgprintf "%s\n" "$ac_cv_host" >&6; } 4914a733a5bfSmrgcase $ac_cv_host in 4915a733a5bfSmrg*-*-*) ;; 4916a733a5bfSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4917a733a5bfSmrgesac 4918a733a5bfSmrghost=$ac_cv_host 4919a733a5bfSmrgac_save_IFS=$IFS; IFS='-' 4920a733a5bfSmrgset x $ac_cv_host 4921a733a5bfSmrgshift 4922a733a5bfSmrghost_cpu=$1 4923a733a5bfSmrghost_vendor=$2 4924a733a5bfSmrgshift; shift 4925a733a5bfSmrg# Remember, the first character of IFS is used to create $*, 4926a733a5bfSmrg# except with old shells: 4927a733a5bfSmrghost_os=$* 4928a733a5bfSmrgIFS=$ac_save_IFS 4929a733a5bfSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4930a733a5bfSmrg 4931a733a5bfSmrg 49326eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 49336eaa481cSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 49346eaa481cSmrgif test ${ac_cv_path_SED+y} 49356eaa481cSmrgthen : 49366eaa481cSmrg printf %s "(cached) " >&6 49376eaa481cSmrgelse $as_nop 4938a733a5bfSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4939a733a5bfSmrg for ac_i in 1 2 3 4 5 6 7; do 4940a733a5bfSmrg ac_script="$ac_script$as_nl$ac_script" 4941a733a5bfSmrg done 4942a733a5bfSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4943a733a5bfSmrg { ac_script=; unset ac_script;} 4944a733a5bfSmrg if test -z "$SED"; then 4945a733a5bfSmrg ac_path_SED_found=false 4946a733a5bfSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4947a733a5bfSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948a733a5bfSmrgfor as_dir in $PATH 4949a733a5bfSmrgdo 4950a733a5bfSmrg IFS=$as_save_IFS 49516eaa481cSmrg case $as_dir in #((( 49526eaa481cSmrg '') as_dir=./ ;; 49536eaa481cSmrg */) ;; 49546eaa481cSmrg *) as_dir=$as_dir/ ;; 49556eaa481cSmrg esac 49566eaa481cSmrg for ac_prog in sed gsed 49576eaa481cSmrg do 4958a733a5bfSmrg for ac_exec_ext in '' $ac_executable_extensions; do 49596eaa481cSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 49601b983734Smrg as_fn_executable_p "$ac_path_SED" || continue 4961a733a5bfSmrg# Check for GNU ac_path_SED and select it if it is found. 4962a733a5bfSmrg # Check for GNU $ac_path_SED 4963a733a5bfSmrgcase `"$ac_path_SED" --version 2>&1` in 4964a733a5bfSmrg*GNU*) 4965a733a5bfSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4966a733a5bfSmrg*) 4967a733a5bfSmrg ac_count=0 49686eaa481cSmrg printf %s 0123456789 >"conftest.in" 4969a733a5bfSmrg while : 4970a733a5bfSmrg do 4971a733a5bfSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4972a733a5bfSmrg mv "conftest.tmp" "conftest.in" 4973a733a5bfSmrg cp "conftest.in" "conftest.nl" 49746eaa481cSmrg printf "%s\n" '' >> "conftest.nl" 4975a733a5bfSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4976a733a5bfSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4977a733a5bfSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4978a733a5bfSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4979a733a5bfSmrg # Best one so far, save it but keep looking for a better one 4980a733a5bfSmrg ac_cv_path_SED="$ac_path_SED" 4981a733a5bfSmrg ac_path_SED_max=$ac_count 4982a733a5bfSmrg fi 4983a733a5bfSmrg # 10*(2^10) chars as input seems more than enough 4984a733a5bfSmrg test $ac_count -gt 10 && break 4985a733a5bfSmrg done 4986a733a5bfSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4987a733a5bfSmrgesac 4988a733a5bfSmrg 4989a733a5bfSmrg $ac_path_SED_found && break 3 4990a733a5bfSmrg done 4991a733a5bfSmrg done 4992a733a5bfSmrg done 4993a733a5bfSmrgIFS=$as_save_IFS 4994a733a5bfSmrg if test -z "$ac_cv_path_SED"; then 4995a733a5bfSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4996a733a5bfSmrg fi 4997a733a5bfSmrgelse 4998a733a5bfSmrg ac_cv_path_SED=$SED 4999a733a5bfSmrgfi 5000a733a5bfSmrg 5001a733a5bfSmrgfi 50026eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 50036eaa481cSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 5004a733a5bfSmrg SED="$ac_cv_path_SED" 5005a733a5bfSmrg rm -f conftest.sed 5006a733a5bfSmrg 5007a733a5bfSmrg 5008a733a5bfSmrg 5009a733a5bfSmrg 5010a733a5bfSmrg 5011a733a5bfSmrg 5012a733a5bfSmrg# Check whether --enable-selective-werror was given. 50136eaa481cSmrgif test ${enable_selective_werror+y} 50146eaa481cSmrgthen : 5015a733a5bfSmrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 50166eaa481cSmrgelse $as_nop 5017a733a5bfSmrg SELECTIVE_WERROR=yes 5018a733a5bfSmrgfi 5019a733a5bfSmrg 5020a733a5bfSmrg 5021a733a5bfSmrg 5022a733a5bfSmrg 5023a733a5bfSmrg 5024a733a5bfSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 5025a733a5bfSmrgif test "x$SUNCC" = "xyes"; then 5026a733a5bfSmrg BASE_CFLAGS="-v" 5027a733a5bfSmrgelse 5028a733a5bfSmrg BASE_CFLAGS="" 5029a733a5bfSmrgfi 5030a733a5bfSmrg 5031a733a5bfSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5032a733a5bfSmrg 5033a733a5bfSmrg 5034a733a5bfSmrg 5035a733a5bfSmrg 5036a733a5bfSmrg 5037a733a5bfSmrg 5038a733a5bfSmrg 5039a733a5bfSmrg 5040a733a5bfSmrg 5041a733a5bfSmrg 5042a733a5bfSmrg 5043a733a5bfSmrg 5044a733a5bfSmrg 5045a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5046a733a5bfSmrg 5047a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5048a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50496eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50506eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50516eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50526eaa481cSmrgthen : 50536eaa481cSmrg printf %s "(cached) " >&6 50546eaa481cSmrgelse $as_nop 5055a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056a733a5bfSmrg/* end confdefs.h. */ 5057a733a5bfSmrgint i; 5058a733a5bfSmrg_ACEOF 50596eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 50606eaa481cSmrgthen : 5061a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 50626eaa481cSmrgelse $as_nop 5063a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5064a733a5bfSmrgfi 50656eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5066a733a5bfSmrgfi 50676eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50686eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5069a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5070a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5071a733a5bfSmrgfi 5072a733a5bfSmrg 5073a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5074a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5075a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5076a733a5bfSmrg fi 5077a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50786eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50796eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50806eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 50816eaa481cSmrgthen : 50826eaa481cSmrg printf %s "(cached) " >&6 50836eaa481cSmrgelse $as_nop 5084a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5085a733a5bfSmrg/* end confdefs.h. */ 5086a733a5bfSmrgint i; 5087a733a5bfSmrg_ACEOF 50886eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 50896eaa481cSmrgthen : 5090a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 50916eaa481cSmrgelse $as_nop 5092a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5093a733a5bfSmrgfi 50946eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5095a733a5bfSmrgfi 50966eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50976eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5098a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5099a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5100a733a5bfSmrgfi 5101a733a5bfSmrg 5102a733a5bfSmrgfound="no" 5103a733a5bfSmrg 5104a733a5bfSmrg if test $found = "no" ; then 5105a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107a733a5bfSmrg fi 5108a733a5bfSmrg 5109a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5110a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5111a733a5bfSmrg fi 5112a733a5bfSmrg 5113a733a5bfSmrg CFLAGS="$CFLAGS -Wall" 5114a733a5bfSmrg 51156eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 51166eaa481cSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 5117a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wall 51186eaa481cSmrg if eval test \${$cacheid+y} 51196eaa481cSmrgthen : 51206eaa481cSmrg printf %s "(cached) " >&6 51216eaa481cSmrgelse $as_nop 5122a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123a733a5bfSmrg/* end confdefs.h. */ 5124a733a5bfSmrgint i; 5125a733a5bfSmrgint 51266eaa481cSmrgmain (void) 5127a733a5bfSmrg{ 5128a733a5bfSmrg 5129a733a5bfSmrg ; 5130a733a5bfSmrg return 0; 5131a733a5bfSmrg} 5132a733a5bfSmrg_ACEOF 51336eaa481cSmrgif ac_fn_c_try_link "$LINENO" 51346eaa481cSmrgthen : 5135a733a5bfSmrg eval $cacheid=yes 51366eaa481cSmrgelse $as_nop 5137a733a5bfSmrg eval $cacheid=no 5138a733a5bfSmrgfi 51396eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5140a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5141a733a5bfSmrgfi 5142a733a5bfSmrg 5143a733a5bfSmrg 5144a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5145a733a5bfSmrg 5146a733a5bfSmrg eval supported=\$$cacheid 51476eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51486eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5149a733a5bfSmrg if test "$supported" = "yes" ; then 5150a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 5151a733a5bfSmrg found="yes" 5152a733a5bfSmrg fi 5153a733a5bfSmrg fi 5154a733a5bfSmrg 5155a733a5bfSmrg 5156a733a5bfSmrg 5157a733a5bfSmrg 5158a733a5bfSmrg 5159a733a5bfSmrg 5160a733a5bfSmrg 5161a733a5bfSmrg 5162a733a5bfSmrg 5163a733a5bfSmrg 5164a733a5bfSmrg 5165a733a5bfSmrg 5166a733a5bfSmrg 5167a733a5bfSmrg 5168a733a5bfSmrg 5169a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5170a733a5bfSmrg 5171a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5172a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51736eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51746eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51756eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 51766eaa481cSmrgthen : 51776eaa481cSmrg printf %s "(cached) " >&6 51786eaa481cSmrgelse $as_nop 5179a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5180a733a5bfSmrg/* end confdefs.h. */ 5181a733a5bfSmrgint i; 5182a733a5bfSmrg_ACEOF 51836eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 51846eaa481cSmrgthen : 5185a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 51866eaa481cSmrgelse $as_nop 5187a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5188a733a5bfSmrgfi 51896eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5190a733a5bfSmrgfi 51916eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51926eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5193a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5194a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5195a733a5bfSmrgfi 5196a733a5bfSmrg 5197a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5198a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5199a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5200a733a5bfSmrg fi 5201a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52026eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52036eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52046eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52056eaa481cSmrgthen : 52066eaa481cSmrg printf %s "(cached) " >&6 52076eaa481cSmrgelse $as_nop 5208a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209a733a5bfSmrg/* end confdefs.h. */ 5210a733a5bfSmrgint i; 5211a733a5bfSmrg_ACEOF 52126eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 52136eaa481cSmrgthen : 5214a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 52156eaa481cSmrgelse $as_nop 5216a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5217a733a5bfSmrgfi 52186eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5219a733a5bfSmrgfi 52206eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52216eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5222a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5223a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5224a733a5bfSmrgfi 5225a733a5bfSmrg 5226a733a5bfSmrgfound="no" 5227a733a5bfSmrg 5228a733a5bfSmrg if test $found = "no" ; then 5229a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5230a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5231a733a5bfSmrg fi 5232a733a5bfSmrg 5233a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5234a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5235a733a5bfSmrg fi 5236a733a5bfSmrg 5237a733a5bfSmrg CFLAGS="$CFLAGS -Wpointer-arith" 5238a733a5bfSmrg 52396eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 52406eaa481cSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5241a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wpointer_arith 52426eaa481cSmrg if eval test \${$cacheid+y} 52436eaa481cSmrgthen : 52446eaa481cSmrg printf %s "(cached) " >&6 52456eaa481cSmrgelse $as_nop 5246a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247a733a5bfSmrg/* end confdefs.h. */ 5248a733a5bfSmrgint i; 5249a733a5bfSmrgint 52506eaa481cSmrgmain (void) 5251a733a5bfSmrg{ 5252a733a5bfSmrg 5253a733a5bfSmrg ; 5254a733a5bfSmrg return 0; 5255a733a5bfSmrg} 5256a733a5bfSmrg_ACEOF 52576eaa481cSmrgif ac_fn_c_try_link "$LINENO" 52586eaa481cSmrgthen : 5259a733a5bfSmrg eval $cacheid=yes 52606eaa481cSmrgelse $as_nop 5261a733a5bfSmrg eval $cacheid=no 5262a733a5bfSmrgfi 52636eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5264a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5265a733a5bfSmrgfi 5266a733a5bfSmrg 5267a733a5bfSmrg 5268a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5269a733a5bfSmrg 5270a733a5bfSmrg eval supported=\$$cacheid 52716eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52726eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5273a733a5bfSmrg if test "$supported" = "yes" ; then 5274a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5275a733a5bfSmrg found="yes" 5276a733a5bfSmrg fi 5277a733a5bfSmrg fi 5278a733a5bfSmrg 5279a733a5bfSmrg 5280a733a5bfSmrg 5281a733a5bfSmrg 5282a733a5bfSmrg 5283a733a5bfSmrg 5284a733a5bfSmrg 5285a733a5bfSmrg 5286a733a5bfSmrg 5287a733a5bfSmrg 5288a733a5bfSmrg 5289a733a5bfSmrg 5290a733a5bfSmrg 5291a733a5bfSmrg 5292a733a5bfSmrg 5293a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5294a733a5bfSmrg 5295a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5296a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52976eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52986eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52996eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 53006eaa481cSmrgthen : 53016eaa481cSmrg printf %s "(cached) " >&6 53026eaa481cSmrgelse $as_nop 5303a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304a733a5bfSmrg/* end confdefs.h. */ 5305a733a5bfSmrgint i; 5306a733a5bfSmrg_ACEOF 53076eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 53086eaa481cSmrgthen : 5309a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 53106eaa481cSmrgelse $as_nop 5311a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5312a733a5bfSmrgfi 53136eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5314a733a5bfSmrgfi 53156eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53166eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5317a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5318a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5319a733a5bfSmrgfi 5320a733a5bfSmrg 5321a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5322a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324a733a5bfSmrg fi 5325a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53266eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53276eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53286eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 53296eaa481cSmrgthen : 53306eaa481cSmrg printf %s "(cached) " >&6 53316eaa481cSmrgelse $as_nop 5332a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333a733a5bfSmrg/* end confdefs.h. */ 5334a733a5bfSmrgint i; 5335a733a5bfSmrg_ACEOF 53366eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 53376eaa481cSmrgthen : 5338a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 53396eaa481cSmrgelse $as_nop 5340a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5341a733a5bfSmrgfi 53426eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5343a733a5bfSmrgfi 53446eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53456eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5346a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5347a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5348a733a5bfSmrgfi 5349a733a5bfSmrg 5350a733a5bfSmrgfound="no" 5351a733a5bfSmrg 5352a733a5bfSmrg if test $found = "no" ; then 5353a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5354a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5355a733a5bfSmrg fi 5356a733a5bfSmrg 5357a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5358a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5359a733a5bfSmrg fi 5360a733a5bfSmrg 5361a733a5bfSmrg CFLAGS="$CFLAGS -Wmissing-declarations" 5362a733a5bfSmrg 53636eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 53646eaa481cSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5365a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 53666eaa481cSmrg if eval test \${$cacheid+y} 53676eaa481cSmrgthen : 53686eaa481cSmrg printf %s "(cached) " >&6 53696eaa481cSmrgelse $as_nop 5370a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371a733a5bfSmrg/* end confdefs.h. */ 5372a733a5bfSmrgint i; 5373a733a5bfSmrgint 53746eaa481cSmrgmain (void) 5375a733a5bfSmrg{ 5376a733a5bfSmrg 5377a733a5bfSmrg ; 5378a733a5bfSmrg return 0; 5379a733a5bfSmrg} 5380a733a5bfSmrg_ACEOF 53816eaa481cSmrgif ac_fn_c_try_link "$LINENO" 53826eaa481cSmrgthen : 5383a733a5bfSmrg eval $cacheid=yes 53846eaa481cSmrgelse $as_nop 5385a733a5bfSmrg eval $cacheid=no 5386a733a5bfSmrgfi 53876eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5388a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5389a733a5bfSmrgfi 5390a733a5bfSmrg 5391a733a5bfSmrg 5392a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5393a733a5bfSmrg 5394a733a5bfSmrg eval supported=\$$cacheid 53956eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53966eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5397a733a5bfSmrg if test "$supported" = "yes" ; then 5398a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5399a733a5bfSmrg found="yes" 5400a733a5bfSmrg fi 5401a733a5bfSmrg fi 5402a733a5bfSmrg 5403a733a5bfSmrg 5404a733a5bfSmrg 5405a733a5bfSmrg 5406a733a5bfSmrg 5407a733a5bfSmrg 5408a733a5bfSmrg 5409a733a5bfSmrg 5410a733a5bfSmrg 5411a733a5bfSmrg 5412a733a5bfSmrg 5413a733a5bfSmrg 5414a733a5bfSmrg 5415a733a5bfSmrg 5416a733a5bfSmrg 5417a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5418a733a5bfSmrg 5419a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5420a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54216eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54226eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54236eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 54246eaa481cSmrgthen : 54256eaa481cSmrg printf %s "(cached) " >&6 54266eaa481cSmrgelse $as_nop 5427a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428a733a5bfSmrg/* end confdefs.h. */ 5429a733a5bfSmrgint i; 5430a733a5bfSmrg_ACEOF 54316eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 54326eaa481cSmrgthen : 5433a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 54346eaa481cSmrgelse $as_nop 5435a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5436a733a5bfSmrgfi 54376eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5438a733a5bfSmrgfi 54396eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54406eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5441a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5442a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5443a733a5bfSmrgfi 5444a733a5bfSmrg 5445a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5446a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5447a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5448a733a5bfSmrg fi 5449a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54506eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54516eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54526eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54536eaa481cSmrgthen : 54546eaa481cSmrg printf %s "(cached) " >&6 54556eaa481cSmrgelse $as_nop 5456a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457a733a5bfSmrg/* end confdefs.h. */ 5458a733a5bfSmrgint i; 5459a733a5bfSmrg_ACEOF 54606eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 54616eaa481cSmrgthen : 5462a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 54636eaa481cSmrgelse $as_nop 5464a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5465a733a5bfSmrgfi 54666eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5467a733a5bfSmrgfi 54686eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54696eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5470a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5471a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5472a733a5bfSmrgfi 5473a733a5bfSmrg 5474a733a5bfSmrgfound="no" 5475a733a5bfSmrg 5476a733a5bfSmrg if test $found = "no" ; then 5477a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5478a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5479a733a5bfSmrg fi 5480a733a5bfSmrg 5481a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5482a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5483a733a5bfSmrg fi 5484a733a5bfSmrg 5485a733a5bfSmrg CFLAGS="$CFLAGS -Wformat=2" 5486a733a5bfSmrg 54876eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 54886eaa481cSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 54891b983734Smrg cacheid=xorg_cv_cc_flag__Wformat_2 54906eaa481cSmrg if eval test \${$cacheid+y} 54916eaa481cSmrgthen : 54926eaa481cSmrg printf %s "(cached) " >&6 54936eaa481cSmrgelse $as_nop 5494a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495a733a5bfSmrg/* end confdefs.h. */ 5496a733a5bfSmrgint i; 5497a733a5bfSmrgint 54986eaa481cSmrgmain (void) 5499a733a5bfSmrg{ 5500a733a5bfSmrg 5501a733a5bfSmrg ; 5502a733a5bfSmrg return 0; 5503a733a5bfSmrg} 5504a733a5bfSmrg_ACEOF 55056eaa481cSmrgif ac_fn_c_try_link "$LINENO" 55066eaa481cSmrgthen : 5507a733a5bfSmrg eval $cacheid=yes 55086eaa481cSmrgelse $as_nop 5509a733a5bfSmrg eval $cacheid=no 5510a733a5bfSmrgfi 55116eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5512a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5513a733a5bfSmrgfi 5514a733a5bfSmrg 5515a733a5bfSmrg 5516a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5517a733a5bfSmrg 5518a733a5bfSmrg eval supported=\$$cacheid 55196eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55206eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5521a733a5bfSmrg if test "$supported" = "yes" ; then 5522a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5523a733a5bfSmrg found="yes" 5524a733a5bfSmrg fi 5525a733a5bfSmrg fi 5526a733a5bfSmrg 5527a733a5bfSmrg if test $found = "no" ; then 5528a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5529a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5530a733a5bfSmrg fi 5531a733a5bfSmrg 5532a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5533a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534a733a5bfSmrg fi 5535a733a5bfSmrg 5536a733a5bfSmrg CFLAGS="$CFLAGS -Wformat" 5537a733a5bfSmrg 55386eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 55396eaa481cSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 5540a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wformat 55416eaa481cSmrg if eval test \${$cacheid+y} 55426eaa481cSmrgthen : 55436eaa481cSmrg printf %s "(cached) " >&6 55446eaa481cSmrgelse $as_nop 5545a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546a733a5bfSmrg/* end confdefs.h. */ 5547a733a5bfSmrgint i; 5548a733a5bfSmrgint 55496eaa481cSmrgmain (void) 5550a733a5bfSmrg{ 5551a733a5bfSmrg 5552a733a5bfSmrg ; 5553a733a5bfSmrg return 0; 5554a733a5bfSmrg} 5555a733a5bfSmrg_ACEOF 55566eaa481cSmrgif ac_fn_c_try_link "$LINENO" 55576eaa481cSmrgthen : 5558a733a5bfSmrg eval $cacheid=yes 55596eaa481cSmrgelse $as_nop 5560a733a5bfSmrg eval $cacheid=no 5561a733a5bfSmrgfi 55626eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5563a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5564a733a5bfSmrgfi 5565a733a5bfSmrg 5566a733a5bfSmrg 5567a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5568a733a5bfSmrg 5569a733a5bfSmrg eval supported=\$$cacheid 55706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55716eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5572a733a5bfSmrg if test "$supported" = "yes" ; then 5573a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5574a733a5bfSmrg found="yes" 5575a733a5bfSmrg fi 5576a733a5bfSmrg fi 5577a733a5bfSmrg 5578a733a5bfSmrg 5579a733a5bfSmrg 5580a733a5bfSmrg 5581a733a5bfSmrg 5582a733a5bfSmrg 5583a733a5bfSmrg 5584a733a5bfSmrg 5585a733a5bfSmrg 5586a733a5bfSmrg 5587a733a5bfSmrg 5588a733a5bfSmrg 5589a733a5bfSmrg 5590a733a5bfSmrg 5591a733a5bfSmrg 5592a733a5bfSmrg 5593a733a5bfSmrg 5594a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5595a733a5bfSmrg 5596a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5597a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55996eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56006eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56016eaa481cSmrgthen : 56026eaa481cSmrg printf %s "(cached) " >&6 56036eaa481cSmrgelse $as_nop 5604a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605a733a5bfSmrg/* end confdefs.h. */ 5606a733a5bfSmrgint i; 5607a733a5bfSmrg_ACEOF 56086eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 56096eaa481cSmrgthen : 5610a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 56116eaa481cSmrgelse $as_nop 5612a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5613a733a5bfSmrgfi 56146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5615a733a5bfSmrgfi 56166eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56176eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5618a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5619a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5620a733a5bfSmrgfi 5621a733a5bfSmrg 5622a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5623a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5624a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625a733a5bfSmrg fi 5626a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56276eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56286eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56296eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 56306eaa481cSmrgthen : 56316eaa481cSmrg printf %s "(cached) " >&6 56326eaa481cSmrgelse $as_nop 5633a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634a733a5bfSmrg/* end confdefs.h. */ 5635a733a5bfSmrgint i; 5636a733a5bfSmrg_ACEOF 56376eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 56386eaa481cSmrgthen : 5639a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 56406eaa481cSmrgelse $as_nop 5641a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5642a733a5bfSmrgfi 56436eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5644a733a5bfSmrgfi 56456eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56466eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5647a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5648a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5649a733a5bfSmrgfi 5650a733a5bfSmrg 5651a733a5bfSmrgfound="no" 5652a733a5bfSmrg 5653a733a5bfSmrg if test $found = "no" ; then 5654a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5655a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656a733a5bfSmrg fi 5657a733a5bfSmrg 5658a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5659a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5660a733a5bfSmrg fi 5661a733a5bfSmrg 5662a733a5bfSmrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5663a733a5bfSmrg 56646eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 56656eaa481cSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5666a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 56676eaa481cSmrg if eval test \${$cacheid+y} 56686eaa481cSmrgthen : 56696eaa481cSmrg printf %s "(cached) " >&6 56706eaa481cSmrgelse $as_nop 5671a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672a733a5bfSmrg/* end confdefs.h. */ 5673a733a5bfSmrgint i; 5674a733a5bfSmrgint 56756eaa481cSmrgmain (void) 5676a733a5bfSmrg{ 5677a733a5bfSmrg 5678a733a5bfSmrg ; 5679a733a5bfSmrg return 0; 5680a733a5bfSmrg} 5681a733a5bfSmrg_ACEOF 56826eaa481cSmrgif ac_fn_c_try_link "$LINENO" 56836eaa481cSmrgthen : 5684a733a5bfSmrg eval $cacheid=yes 56856eaa481cSmrgelse $as_nop 5686a733a5bfSmrg eval $cacheid=no 5687a733a5bfSmrgfi 56886eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5689a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5690a733a5bfSmrgfi 5691a733a5bfSmrg 5692a733a5bfSmrg 5693a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5694a733a5bfSmrg 5695a733a5bfSmrg eval supported=\$$cacheid 56966eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56976eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5698a733a5bfSmrg if test "$supported" = "yes" ; then 5699a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5700a733a5bfSmrg found="yes" 5701a733a5bfSmrg fi 5702a733a5bfSmrg fi 5703a733a5bfSmrg 5704a733a5bfSmrg 5705a733a5bfSmrg 5706a733a5bfSmrg 5707a733a5bfSmrg 5708a733a5bfSmrg 5709a733a5bfSmrg 5710a733a5bfSmrg 5711a733a5bfSmrg 5712a733a5bfSmrg 5713a733a5bfSmrg 5714a733a5bfSmrg 5715a733a5bfSmrg 5716a733a5bfSmrg 5717a733a5bfSmrg 5718a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5719a733a5bfSmrg 5720a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5721a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57236eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57246eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 57256eaa481cSmrgthen : 57266eaa481cSmrg printf %s "(cached) " >&6 57276eaa481cSmrgelse $as_nop 5728a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5729a733a5bfSmrg/* end confdefs.h. */ 5730a733a5bfSmrgint i; 5731a733a5bfSmrg_ACEOF 57326eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 57336eaa481cSmrgthen : 5734a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 57356eaa481cSmrgelse $as_nop 5736a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5737a733a5bfSmrgfi 57386eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5739a733a5bfSmrgfi 57406eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57416eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5742a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5743a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5744a733a5bfSmrgfi 5745a733a5bfSmrg 5746a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5747a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5748a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5749a733a5bfSmrg fi 5750a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57516eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57526eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57536eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57546eaa481cSmrgthen : 57556eaa481cSmrg printf %s "(cached) " >&6 57566eaa481cSmrgelse $as_nop 5757a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758a733a5bfSmrg/* end confdefs.h. */ 5759a733a5bfSmrgint i; 5760a733a5bfSmrg_ACEOF 57616eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 57626eaa481cSmrgthen : 5763a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 57646eaa481cSmrgelse $as_nop 5765a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5766a733a5bfSmrgfi 57676eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5768a733a5bfSmrgfi 57696eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57706eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5771a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5772a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5773a733a5bfSmrgfi 5774a733a5bfSmrg 5775a733a5bfSmrgfound="no" 5776a733a5bfSmrg 5777a733a5bfSmrg if test $found = "no" ; then 5778a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5779a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5780a733a5bfSmrg fi 5781a733a5bfSmrg 5782a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5783a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5784a733a5bfSmrg fi 5785a733a5bfSmrg 5786a733a5bfSmrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5787a733a5bfSmrg 57886eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 57896eaa481cSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5790a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 57916eaa481cSmrg if eval test \${$cacheid+y} 57926eaa481cSmrgthen : 57936eaa481cSmrg printf %s "(cached) " >&6 57946eaa481cSmrgelse $as_nop 5795a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796a733a5bfSmrg/* end confdefs.h. */ 5797a733a5bfSmrgint i; 5798a733a5bfSmrgint 57996eaa481cSmrgmain (void) 5800a733a5bfSmrg{ 5801a733a5bfSmrg 5802a733a5bfSmrg ; 5803a733a5bfSmrg return 0; 5804a733a5bfSmrg} 5805a733a5bfSmrg_ACEOF 58066eaa481cSmrgif ac_fn_c_try_link "$LINENO" 58076eaa481cSmrgthen : 5808a733a5bfSmrg eval $cacheid=yes 58096eaa481cSmrgelse $as_nop 5810a733a5bfSmrg eval $cacheid=no 5811a733a5bfSmrgfi 58126eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5813a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5814a733a5bfSmrgfi 5815a733a5bfSmrg 5816a733a5bfSmrg 5817a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5818a733a5bfSmrg 5819a733a5bfSmrg eval supported=\$$cacheid 58206eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58216eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5822a733a5bfSmrg if test "$supported" = "yes" ; then 5823a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5824a733a5bfSmrg found="yes" 5825a733a5bfSmrg fi 5826a733a5bfSmrg fi 5827a733a5bfSmrg 5828a733a5bfSmrg 5829a733a5bfSmrg 5830a733a5bfSmrg 5831a733a5bfSmrg 5832a733a5bfSmrg 5833a733a5bfSmrg 5834a733a5bfSmrg 5835a733a5bfSmrg 5836a733a5bfSmrg 5837a733a5bfSmrg 5838a733a5bfSmrg 5839a733a5bfSmrg 5840a733a5bfSmrg 5841a733a5bfSmrg 5842a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5843a733a5bfSmrg 5844a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5845a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58476eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58486eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58496eaa481cSmrgthen : 58506eaa481cSmrg printf %s "(cached) " >&6 58516eaa481cSmrgelse $as_nop 5852a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853a733a5bfSmrg/* end confdefs.h. */ 5854a733a5bfSmrgint i; 5855a733a5bfSmrg_ACEOF 58566eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 58576eaa481cSmrgthen : 5858a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 58596eaa481cSmrgelse $as_nop 5860a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5861a733a5bfSmrgfi 58626eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5863a733a5bfSmrgfi 58646eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58656eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5866a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5867a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5868a733a5bfSmrgfi 5869a733a5bfSmrg 5870a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5871a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5872a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5873a733a5bfSmrg fi 5874a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58756eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58766eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58776eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 58786eaa481cSmrgthen : 58796eaa481cSmrg printf %s "(cached) " >&6 58806eaa481cSmrgelse $as_nop 5881a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882a733a5bfSmrg/* end confdefs.h. */ 5883a733a5bfSmrgint i; 5884a733a5bfSmrg_ACEOF 58856eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 58866eaa481cSmrgthen : 5887a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 58886eaa481cSmrgelse $as_nop 5889a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 5890a733a5bfSmrgfi 58916eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5892a733a5bfSmrgfi 58936eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58946eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5895a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5896a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5897a733a5bfSmrgfi 5898a733a5bfSmrg 5899a733a5bfSmrgfound="no" 5900a733a5bfSmrg 5901a733a5bfSmrg if test $found = "no" ; then 5902a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904a733a5bfSmrg fi 5905a733a5bfSmrg 5906a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5907a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5908a733a5bfSmrg fi 5909a733a5bfSmrg 5910a733a5bfSmrg CFLAGS="$CFLAGS -Wnested-externs" 5911a733a5bfSmrg 59126eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 59136eaa481cSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 5914a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wnested_externs 59156eaa481cSmrg if eval test \${$cacheid+y} 59166eaa481cSmrgthen : 59176eaa481cSmrg printf %s "(cached) " >&6 59186eaa481cSmrgelse $as_nop 5919a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920a733a5bfSmrg/* end confdefs.h. */ 5921a733a5bfSmrgint i; 5922a733a5bfSmrgint 59236eaa481cSmrgmain (void) 5924a733a5bfSmrg{ 5925a733a5bfSmrg 5926a733a5bfSmrg ; 5927a733a5bfSmrg return 0; 5928a733a5bfSmrg} 5929a733a5bfSmrg_ACEOF 59306eaa481cSmrgif ac_fn_c_try_link "$LINENO" 59316eaa481cSmrgthen : 5932a733a5bfSmrg eval $cacheid=yes 59336eaa481cSmrgelse $as_nop 5934a733a5bfSmrg eval $cacheid=no 5935a733a5bfSmrgfi 59366eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5937a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 5938a733a5bfSmrgfi 5939a733a5bfSmrg 5940a733a5bfSmrg 5941a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5942a733a5bfSmrg 5943a733a5bfSmrg eval supported=\$$cacheid 59446eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59456eaa481cSmrgprintf "%s\n" "$supported" >&6; } 5946a733a5bfSmrg if test "$supported" = "yes" ; then 5947a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5948a733a5bfSmrg found="yes" 5949a733a5bfSmrg fi 5950a733a5bfSmrg fi 5951a733a5bfSmrg 5952a733a5bfSmrg 5953a733a5bfSmrg 5954a733a5bfSmrg 5955a733a5bfSmrg 5956a733a5bfSmrg 5957a733a5bfSmrg 5958a733a5bfSmrg 5959a733a5bfSmrg 5960a733a5bfSmrg 5961a733a5bfSmrg 5962a733a5bfSmrg 5963a733a5bfSmrg 5964a733a5bfSmrg 5965a733a5bfSmrg 5966a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5967a733a5bfSmrg 5968a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5969a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59716eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59726eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 59736eaa481cSmrgthen : 59746eaa481cSmrg printf %s "(cached) " >&6 59756eaa481cSmrgelse $as_nop 5976a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977a733a5bfSmrg/* end confdefs.h. */ 5978a733a5bfSmrgint i; 5979a733a5bfSmrg_ACEOF 59806eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 59816eaa481cSmrgthen : 5982a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 59836eaa481cSmrgelse $as_nop 5984a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 5985a733a5bfSmrgfi 59866eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5987a733a5bfSmrgfi 59886eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59896eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5990a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5991a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5992a733a5bfSmrgfi 5993a733a5bfSmrg 5994a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5995a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5996a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5997a733a5bfSmrg fi 5998a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59996eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60006eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60016eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 60026eaa481cSmrgthen : 60036eaa481cSmrg printf %s "(cached) " >&6 60046eaa481cSmrgelse $as_nop 6005a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006a733a5bfSmrg/* end confdefs.h. */ 6007a733a5bfSmrgint i; 6008a733a5bfSmrg_ACEOF 60096eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 60106eaa481cSmrgthen : 6011a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 60126eaa481cSmrgelse $as_nop 6013a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6014a733a5bfSmrgfi 60156eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6016a733a5bfSmrgfi 60176eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60186eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6019a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6020a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6021a733a5bfSmrgfi 6022a733a5bfSmrg 6023a733a5bfSmrgfound="no" 6024a733a5bfSmrg 6025a733a5bfSmrg if test $found = "no" ; then 6026a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6027a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6028a733a5bfSmrg fi 6029a733a5bfSmrg 6030a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6031a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6032a733a5bfSmrg fi 6033a733a5bfSmrg 6034a733a5bfSmrg CFLAGS="$CFLAGS -Wbad-function-cast" 6035a733a5bfSmrg 60366eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 60376eaa481cSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6038a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 60396eaa481cSmrg if eval test \${$cacheid+y} 60406eaa481cSmrgthen : 60416eaa481cSmrg printf %s "(cached) " >&6 60426eaa481cSmrgelse $as_nop 6043a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044a733a5bfSmrg/* end confdefs.h. */ 6045a733a5bfSmrgint i; 6046a733a5bfSmrgint 60476eaa481cSmrgmain (void) 6048a733a5bfSmrg{ 6049a733a5bfSmrg 6050a733a5bfSmrg ; 6051a733a5bfSmrg return 0; 6052a733a5bfSmrg} 6053a733a5bfSmrg_ACEOF 60546eaa481cSmrgif ac_fn_c_try_link "$LINENO" 60556eaa481cSmrgthen : 6056a733a5bfSmrg eval $cacheid=yes 60576eaa481cSmrgelse $as_nop 6058a733a5bfSmrg eval $cacheid=no 6059a733a5bfSmrgfi 60606eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6061a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6062a733a5bfSmrgfi 6063a733a5bfSmrg 6064a733a5bfSmrg 6065a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6066a733a5bfSmrg 6067a733a5bfSmrg eval supported=\$$cacheid 60686eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60696eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6070a733a5bfSmrg if test "$supported" = "yes" ; then 6071a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6072a733a5bfSmrg found="yes" 6073a733a5bfSmrg fi 6074a733a5bfSmrg fi 6075a733a5bfSmrg 6076a733a5bfSmrg 6077a733a5bfSmrg 6078a733a5bfSmrg 6079a733a5bfSmrg 6080a733a5bfSmrg 6081a733a5bfSmrg 6082a733a5bfSmrg 6083a733a5bfSmrg 6084a733a5bfSmrg 6085a733a5bfSmrg 6086a733a5bfSmrg 6087a733a5bfSmrg 6088a733a5bfSmrg 6089a733a5bfSmrg 6090a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6091a733a5bfSmrg 6092a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6093a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60946eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60956eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60966eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 60976eaa481cSmrgthen : 60986eaa481cSmrg printf %s "(cached) " >&6 60996eaa481cSmrgelse $as_nop 6100a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101a733a5bfSmrg/* end confdefs.h. */ 6102a733a5bfSmrgint i; 6103a733a5bfSmrg_ACEOF 61046eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 61056eaa481cSmrgthen : 6106a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 61076eaa481cSmrgelse $as_nop 6108a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6109a733a5bfSmrgfi 61106eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6111a733a5bfSmrgfi 61126eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61136eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6114a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6115a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6116a733a5bfSmrgfi 6117a733a5bfSmrg 6118a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6119a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121a733a5bfSmrg fi 6122a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61236eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61246eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61256eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 61266eaa481cSmrgthen : 61276eaa481cSmrg printf %s "(cached) " >&6 61286eaa481cSmrgelse $as_nop 6129a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130a733a5bfSmrg/* end confdefs.h. */ 6131a733a5bfSmrgint i; 6132a733a5bfSmrg_ACEOF 61336eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 61346eaa481cSmrgthen : 6135a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 61366eaa481cSmrgelse $as_nop 6137a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6138a733a5bfSmrgfi 61396eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6140a733a5bfSmrgfi 61416eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61426eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6143a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6144a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6145a733a5bfSmrgfi 6146a733a5bfSmrg 6147a733a5bfSmrgfound="no" 6148a733a5bfSmrg 6149a733a5bfSmrg if test $found = "no" ; then 6150a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6151a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152a733a5bfSmrg fi 6153a733a5bfSmrg 6154a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6155a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156a733a5bfSmrg fi 6157a733a5bfSmrg 6158a733a5bfSmrg CFLAGS="$CFLAGS -Wold-style-definition" 6159a733a5bfSmrg 61606eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 61616eaa481cSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6162a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wold_style_definition 61636eaa481cSmrg if eval test \${$cacheid+y} 61646eaa481cSmrgthen : 61656eaa481cSmrg printf %s "(cached) " >&6 61666eaa481cSmrgelse $as_nop 6167a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168a733a5bfSmrg/* end confdefs.h. */ 6169a733a5bfSmrgint i; 6170a733a5bfSmrgint 61716eaa481cSmrgmain (void) 6172a733a5bfSmrg{ 6173a733a5bfSmrg 6174a733a5bfSmrg ; 6175a733a5bfSmrg return 0; 6176a733a5bfSmrg} 6177a733a5bfSmrg_ACEOF 61786eaa481cSmrgif ac_fn_c_try_link "$LINENO" 61796eaa481cSmrgthen : 6180a733a5bfSmrg eval $cacheid=yes 61816eaa481cSmrgelse $as_nop 6182a733a5bfSmrg eval $cacheid=no 6183a733a5bfSmrgfi 61846eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6185a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6186a733a5bfSmrgfi 6187a733a5bfSmrg 6188a733a5bfSmrg 6189a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6190a733a5bfSmrg 6191a733a5bfSmrg eval supported=\$$cacheid 61926eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61936eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6194a733a5bfSmrg if test "$supported" = "yes" ; then 6195a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6196a733a5bfSmrg found="yes" 6197a733a5bfSmrg fi 6198a733a5bfSmrg fi 6199a733a5bfSmrg 62001b983734Smrg if test $found = "no" ; then 62011b983734Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62021b983734Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62031b983734Smrg fi 62041b983734Smrg 62051b983734Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 62061b983734Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62071b983734Smrg fi 62081b983734Smrg 62091b983734Smrg CFLAGS="$CFLAGS -fd" 62101b983734Smrg 62116eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 62126eaa481cSmrgprintf %s "checking if $CC supports -fd... " >&6; } 62131b983734Smrg cacheid=xorg_cv_cc_flag__fd 62146eaa481cSmrg if eval test \${$cacheid+y} 62156eaa481cSmrgthen : 62166eaa481cSmrg printf %s "(cached) " >&6 62176eaa481cSmrgelse $as_nop 62181b983734Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62191b983734Smrg/* end confdefs.h. */ 62201b983734Smrgint i; 62211b983734Smrgint 62226eaa481cSmrgmain (void) 62231b983734Smrg{ 62241b983734Smrg 62251b983734Smrg ; 62261b983734Smrg return 0; 62271b983734Smrg} 62281b983734Smrg_ACEOF 62296eaa481cSmrgif ac_fn_c_try_link "$LINENO" 62306eaa481cSmrgthen : 62311b983734Smrg eval $cacheid=yes 62326eaa481cSmrgelse $as_nop 62331b983734Smrg eval $cacheid=no 62341b983734Smrgfi 62356eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 62361b983734Smrg conftest$ac_exeext conftest.$ac_ext 62371b983734Smrgfi 62381b983734Smrg 62391b983734Smrg 62401b983734Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62411b983734Smrg 62421b983734Smrg eval supported=\$$cacheid 62436eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62446eaa481cSmrgprintf "%s\n" "$supported" >&6; } 62451b983734Smrg if test "$supported" = "yes" ; then 62461b983734Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 62471b983734Smrg found="yes" 62481b983734Smrg fi 62491b983734Smrg fi 62501b983734Smrg 6251a733a5bfSmrg 6252a733a5bfSmrg 6253a733a5bfSmrg 6254a733a5bfSmrg 6255a733a5bfSmrg 6256a733a5bfSmrg 6257a733a5bfSmrg 6258a733a5bfSmrg 6259a733a5bfSmrg 6260a733a5bfSmrg 6261a733a5bfSmrg 6262a733a5bfSmrg 6263a733a5bfSmrg 6264a733a5bfSmrg 6265a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6266a733a5bfSmrg 6267a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6268a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62696eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62706eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62716eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 62726eaa481cSmrgthen : 62736eaa481cSmrg printf %s "(cached) " >&6 62746eaa481cSmrgelse $as_nop 6275a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6276a733a5bfSmrg/* end confdefs.h. */ 6277a733a5bfSmrgint i; 6278a733a5bfSmrg_ACEOF 62796eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 62806eaa481cSmrgthen : 6281a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 62826eaa481cSmrgelse $as_nop 6283a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6284a733a5bfSmrgfi 62856eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6286a733a5bfSmrgfi 62876eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62886eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6289a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6290a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6291a733a5bfSmrgfi 6292a733a5bfSmrg 6293a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6294a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6295a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6296a733a5bfSmrg fi 6297a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62996eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63006eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63016eaa481cSmrgthen : 63026eaa481cSmrg printf %s "(cached) " >&6 63036eaa481cSmrgelse $as_nop 6304a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305a733a5bfSmrg/* end confdefs.h. */ 6306a733a5bfSmrgint i; 6307a733a5bfSmrg_ACEOF 63086eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 63096eaa481cSmrgthen : 6310a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 63116eaa481cSmrgelse $as_nop 6312a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6313a733a5bfSmrgfi 63146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6315a733a5bfSmrgfi 63166eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63176eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6318a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6319a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6320a733a5bfSmrgfi 6321a733a5bfSmrg 6322a733a5bfSmrgfound="no" 6323a733a5bfSmrg 6324a733a5bfSmrg if test $found = "no" ; then 6325a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327a733a5bfSmrg fi 6328a733a5bfSmrg 6329a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6330a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6331a733a5bfSmrg fi 6332a733a5bfSmrg 6333a733a5bfSmrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6334a733a5bfSmrg 63356eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 63366eaa481cSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6337a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 63386eaa481cSmrg if eval test \${$cacheid+y} 63396eaa481cSmrgthen : 63406eaa481cSmrg printf %s "(cached) " >&6 63416eaa481cSmrgelse $as_nop 6342a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343a733a5bfSmrg/* end confdefs.h. */ 6344a733a5bfSmrgint i; 6345a733a5bfSmrgint 63466eaa481cSmrgmain (void) 6347a733a5bfSmrg{ 6348a733a5bfSmrg 6349a733a5bfSmrg ; 6350a733a5bfSmrg return 0; 6351a733a5bfSmrg} 6352a733a5bfSmrg_ACEOF 63536eaa481cSmrgif ac_fn_c_try_link "$LINENO" 63546eaa481cSmrgthen : 6355a733a5bfSmrg eval $cacheid=yes 63566eaa481cSmrgelse $as_nop 6357a733a5bfSmrg eval $cacheid=no 6358a733a5bfSmrgfi 63596eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6360a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6361a733a5bfSmrgfi 6362a733a5bfSmrg 6363a733a5bfSmrg 6364a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6365a733a5bfSmrg 6366a733a5bfSmrg eval supported=\$$cacheid 63676eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63686eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6369a733a5bfSmrg if test "$supported" = "yes" ; then 6370a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6371a733a5bfSmrg found="yes" 6372a733a5bfSmrg fi 6373a733a5bfSmrg fi 6374a733a5bfSmrg 6375a733a5bfSmrg 6376a733a5bfSmrg 6377a733a5bfSmrg 6378a733a5bfSmrg 6379a733a5bfSmrg# This chunk adds additional warnings that could catch undesired effects. 6380a733a5bfSmrg 6381a733a5bfSmrg 6382a733a5bfSmrg 6383a733a5bfSmrg 6384a733a5bfSmrg 6385a733a5bfSmrg 6386a733a5bfSmrg 6387a733a5bfSmrg 6388a733a5bfSmrg 6389a733a5bfSmrg 6390a733a5bfSmrg 6391a733a5bfSmrg 6392a733a5bfSmrg 6393a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6394a733a5bfSmrg 6395a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6396a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63976eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63986eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63996eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64006eaa481cSmrgthen : 64016eaa481cSmrg printf %s "(cached) " >&6 64026eaa481cSmrgelse $as_nop 6403a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404a733a5bfSmrg/* end confdefs.h. */ 6405a733a5bfSmrgint i; 6406a733a5bfSmrg_ACEOF 64076eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 64086eaa481cSmrgthen : 6409a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 64106eaa481cSmrgelse $as_nop 6411a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6412a733a5bfSmrgfi 64136eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6414a733a5bfSmrgfi 64156eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64166eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6417a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6418a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6419a733a5bfSmrgfi 6420a733a5bfSmrg 6421a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6422a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6423a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6424a733a5bfSmrg fi 6425a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64266eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64276eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64286eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 64296eaa481cSmrgthen : 64306eaa481cSmrg printf %s "(cached) " >&6 64316eaa481cSmrgelse $as_nop 6432a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433a733a5bfSmrg/* end confdefs.h. */ 6434a733a5bfSmrgint i; 6435a733a5bfSmrg_ACEOF 64366eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 64376eaa481cSmrgthen : 6438a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 64396eaa481cSmrgelse $as_nop 6440a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6441a733a5bfSmrgfi 64426eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6443a733a5bfSmrgfi 64446eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64456eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6446a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6447a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6448a733a5bfSmrgfi 6449a733a5bfSmrg 6450a733a5bfSmrgfound="no" 6451a733a5bfSmrg 6452a733a5bfSmrg if test $found = "no" ; then 6453a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455a733a5bfSmrg fi 6456a733a5bfSmrg 6457a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6458a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6459a733a5bfSmrg fi 6460a733a5bfSmrg 6461a733a5bfSmrg CFLAGS="$CFLAGS -Wunused" 6462a733a5bfSmrg 64636eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 64646eaa481cSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 6465a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wunused 64666eaa481cSmrg if eval test \${$cacheid+y} 64676eaa481cSmrgthen : 64686eaa481cSmrg printf %s "(cached) " >&6 64696eaa481cSmrgelse $as_nop 6470a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471a733a5bfSmrg/* end confdefs.h. */ 6472a733a5bfSmrgint i; 6473a733a5bfSmrgint 64746eaa481cSmrgmain (void) 6475a733a5bfSmrg{ 6476a733a5bfSmrg 6477a733a5bfSmrg ; 6478a733a5bfSmrg return 0; 6479a733a5bfSmrg} 6480a733a5bfSmrg_ACEOF 64816eaa481cSmrgif ac_fn_c_try_link "$LINENO" 64826eaa481cSmrgthen : 6483a733a5bfSmrg eval $cacheid=yes 64846eaa481cSmrgelse $as_nop 6485a733a5bfSmrg eval $cacheid=no 6486a733a5bfSmrgfi 64876eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6488a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6489a733a5bfSmrgfi 6490a733a5bfSmrg 6491a733a5bfSmrg 6492a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6493a733a5bfSmrg 6494a733a5bfSmrg eval supported=\$$cacheid 64956eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64966eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6497a733a5bfSmrg if test "$supported" = "yes" ; then 6498a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6499a733a5bfSmrg found="yes" 6500a733a5bfSmrg fi 6501a733a5bfSmrg fi 6502a733a5bfSmrg 6503a733a5bfSmrg 6504a733a5bfSmrg 6505a733a5bfSmrg 6506a733a5bfSmrg 6507a733a5bfSmrg 6508a733a5bfSmrg 6509a733a5bfSmrg 6510a733a5bfSmrg 6511a733a5bfSmrg 6512a733a5bfSmrg 6513a733a5bfSmrg 6514a733a5bfSmrg 6515a733a5bfSmrg 6516a733a5bfSmrg 6517a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6518a733a5bfSmrg 6519a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6520a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65216eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65226eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65236eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 65246eaa481cSmrgthen : 65256eaa481cSmrg printf %s "(cached) " >&6 65266eaa481cSmrgelse $as_nop 6527a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6528a733a5bfSmrg/* end confdefs.h. */ 6529a733a5bfSmrgint i; 6530a733a5bfSmrg_ACEOF 65316eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 65326eaa481cSmrgthen : 6533a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 65346eaa481cSmrgelse $as_nop 6535a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6536a733a5bfSmrgfi 65376eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6538a733a5bfSmrgfi 65396eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65406eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6541a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6542a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6543a733a5bfSmrgfi 6544a733a5bfSmrg 6545a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6546a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6547a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6548a733a5bfSmrg fi 6549a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65506eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65516eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65526eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 65536eaa481cSmrgthen : 65546eaa481cSmrg printf %s "(cached) " >&6 65556eaa481cSmrgelse $as_nop 6556a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557a733a5bfSmrg/* end confdefs.h. */ 6558a733a5bfSmrgint i; 6559a733a5bfSmrg_ACEOF 65606eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 65616eaa481cSmrgthen : 6562a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 65636eaa481cSmrgelse $as_nop 6564a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6565a733a5bfSmrgfi 65666eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6567a733a5bfSmrgfi 65686eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65696eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6570a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6571a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6572a733a5bfSmrgfi 6573a733a5bfSmrg 6574a733a5bfSmrgfound="no" 6575a733a5bfSmrg 6576a733a5bfSmrg if test $found = "no" ; then 6577a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579a733a5bfSmrg fi 6580a733a5bfSmrg 6581a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6582a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6583a733a5bfSmrg fi 6584a733a5bfSmrg 6585a733a5bfSmrg CFLAGS="$CFLAGS -Wuninitialized" 6586a733a5bfSmrg 65876eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 65886eaa481cSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 6589a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wuninitialized 65906eaa481cSmrg if eval test \${$cacheid+y} 65916eaa481cSmrgthen : 65926eaa481cSmrg printf %s "(cached) " >&6 65936eaa481cSmrgelse $as_nop 6594a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595a733a5bfSmrg/* end confdefs.h. */ 6596a733a5bfSmrgint i; 6597a733a5bfSmrgint 65986eaa481cSmrgmain (void) 6599a733a5bfSmrg{ 6600a733a5bfSmrg 6601a733a5bfSmrg ; 6602a733a5bfSmrg return 0; 6603a733a5bfSmrg} 6604a733a5bfSmrg_ACEOF 66056eaa481cSmrgif ac_fn_c_try_link "$LINENO" 66066eaa481cSmrgthen : 6607a733a5bfSmrg eval $cacheid=yes 66086eaa481cSmrgelse $as_nop 6609a733a5bfSmrg eval $cacheid=no 6610a733a5bfSmrgfi 66116eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6612a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6613a733a5bfSmrgfi 6614a733a5bfSmrg 6615a733a5bfSmrg 6616a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6617a733a5bfSmrg 6618a733a5bfSmrg eval supported=\$$cacheid 66196eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66206eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6621a733a5bfSmrg if test "$supported" = "yes" ; then 6622a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6623a733a5bfSmrg found="yes" 6624a733a5bfSmrg fi 6625a733a5bfSmrg fi 6626a733a5bfSmrg 6627a733a5bfSmrg 6628a733a5bfSmrg 6629a733a5bfSmrg 6630a733a5bfSmrg 6631a733a5bfSmrg 6632a733a5bfSmrg 6633a733a5bfSmrg 6634a733a5bfSmrg 6635a733a5bfSmrg 6636a733a5bfSmrg 6637a733a5bfSmrg 6638a733a5bfSmrg 6639a733a5bfSmrg 6640a733a5bfSmrg 6641a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6642a733a5bfSmrg 6643a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6644a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66466eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66476eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 66486eaa481cSmrgthen : 66496eaa481cSmrg printf %s "(cached) " >&6 66506eaa481cSmrgelse $as_nop 6651a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652a733a5bfSmrg/* end confdefs.h. */ 6653a733a5bfSmrgint i; 6654a733a5bfSmrg_ACEOF 66556eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 66566eaa481cSmrgthen : 6657a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 66586eaa481cSmrgelse $as_nop 6659a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6660a733a5bfSmrgfi 66616eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6662a733a5bfSmrgfi 66636eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66646eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6665a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6666a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6667a733a5bfSmrgfi 6668a733a5bfSmrg 6669a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6670a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6671a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6672a733a5bfSmrg fi 6673a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66746eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66756eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66766eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 66776eaa481cSmrgthen : 66786eaa481cSmrg printf %s "(cached) " >&6 66796eaa481cSmrgelse $as_nop 6680a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681a733a5bfSmrg/* end confdefs.h. */ 6682a733a5bfSmrgint i; 6683a733a5bfSmrg_ACEOF 66846eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 66856eaa481cSmrgthen : 6686a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 66876eaa481cSmrgelse $as_nop 6688a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6689a733a5bfSmrgfi 66906eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6691a733a5bfSmrgfi 66926eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66936eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6694a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6695a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6696a733a5bfSmrgfi 6697a733a5bfSmrg 6698a733a5bfSmrgfound="no" 6699a733a5bfSmrg 6700a733a5bfSmrg if test $found = "no" ; then 6701a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703a733a5bfSmrg fi 6704a733a5bfSmrg 6705a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6706a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6707a733a5bfSmrg fi 6708a733a5bfSmrg 6709a733a5bfSmrg CFLAGS="$CFLAGS -Wshadow" 6710a733a5bfSmrg 67116eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 67126eaa481cSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 6713a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wshadow 67146eaa481cSmrg if eval test \${$cacheid+y} 67156eaa481cSmrgthen : 67166eaa481cSmrg printf %s "(cached) " >&6 67176eaa481cSmrgelse $as_nop 6718a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719a733a5bfSmrg/* end confdefs.h. */ 6720a733a5bfSmrgint i; 6721a733a5bfSmrgint 67226eaa481cSmrgmain (void) 6723a733a5bfSmrg{ 6724a733a5bfSmrg 6725a733a5bfSmrg ; 6726a733a5bfSmrg return 0; 6727a733a5bfSmrg} 6728a733a5bfSmrg_ACEOF 67296eaa481cSmrgif ac_fn_c_try_link "$LINENO" 67306eaa481cSmrgthen : 6731a733a5bfSmrg eval $cacheid=yes 67326eaa481cSmrgelse $as_nop 6733a733a5bfSmrg eval $cacheid=no 6734a733a5bfSmrgfi 67356eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6736a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6737a733a5bfSmrgfi 6738a733a5bfSmrg 6739a733a5bfSmrg 6740a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6741a733a5bfSmrg 6742a733a5bfSmrg eval supported=\$$cacheid 67436eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67446eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6745a733a5bfSmrg if test "$supported" = "yes" ; then 6746a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6747a733a5bfSmrg found="yes" 6748a733a5bfSmrg fi 6749a733a5bfSmrg fi 6750a733a5bfSmrg 6751a733a5bfSmrg 6752a733a5bfSmrg 6753a733a5bfSmrg 6754a733a5bfSmrg 6755a733a5bfSmrg 6756a733a5bfSmrg 6757a733a5bfSmrg 6758a733a5bfSmrg 6759a733a5bfSmrg 6760a733a5bfSmrg 6761a733a5bfSmrg 6762a733a5bfSmrg 6763a733a5bfSmrg 6764a733a5bfSmrg 6765a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6766a733a5bfSmrg 6767a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6768a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67696eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67706eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67716eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 67726eaa481cSmrgthen : 67736eaa481cSmrg printf %s "(cached) " >&6 67746eaa481cSmrgelse $as_nop 6775a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776a733a5bfSmrg/* end confdefs.h. */ 6777a733a5bfSmrgint i; 6778a733a5bfSmrg_ACEOF 67796eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 67806eaa481cSmrgthen : 6781a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 67826eaa481cSmrgelse $as_nop 6783a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6784a733a5bfSmrgfi 67856eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6786a733a5bfSmrgfi 67876eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67886eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6789a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6790a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6791a733a5bfSmrgfi 6792a733a5bfSmrg 6793a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6794a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6795a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796a733a5bfSmrg fi 6797a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67996eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68006eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68016eaa481cSmrgthen : 68026eaa481cSmrg printf %s "(cached) " >&6 68036eaa481cSmrgelse $as_nop 6804a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805a733a5bfSmrg/* end confdefs.h. */ 6806a733a5bfSmrgint i; 6807a733a5bfSmrg_ACEOF 68086eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 68096eaa481cSmrgthen : 6810a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 68116eaa481cSmrgelse $as_nop 6812a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6813a733a5bfSmrgfi 68146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6815a733a5bfSmrgfi 68166eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68176eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6818a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6819a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6820a733a5bfSmrgfi 6821a733a5bfSmrg 6822a733a5bfSmrgfound="no" 6823a733a5bfSmrg 6824a733a5bfSmrg if test $found = "no" ; then 6825a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6826a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6827a733a5bfSmrg fi 6828a733a5bfSmrg 6829a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6830a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6831a733a5bfSmrg fi 6832a733a5bfSmrg 68331b983734Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6834a733a5bfSmrg 68356eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 68366eaa481cSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 68371b983734Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 68386eaa481cSmrg if eval test \${$cacheid+y} 68396eaa481cSmrgthen : 68406eaa481cSmrg printf %s "(cached) " >&6 68416eaa481cSmrgelse $as_nop 6842a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843a733a5bfSmrg/* end confdefs.h. */ 6844a733a5bfSmrgint i; 6845a733a5bfSmrgint 68466eaa481cSmrgmain (void) 6847a733a5bfSmrg{ 6848a733a5bfSmrg 6849a733a5bfSmrg ; 6850a733a5bfSmrg return 0; 6851a733a5bfSmrg} 6852a733a5bfSmrg_ACEOF 68536eaa481cSmrgif ac_fn_c_try_link "$LINENO" 68546eaa481cSmrgthen : 6855a733a5bfSmrg eval $cacheid=yes 68566eaa481cSmrgelse $as_nop 6857a733a5bfSmrg eval $cacheid=no 6858a733a5bfSmrgfi 68596eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6860a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6861a733a5bfSmrgfi 6862a733a5bfSmrg 6863a733a5bfSmrg 6864a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6865a733a5bfSmrg 6866a733a5bfSmrg eval supported=\$$cacheid 68676eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68686eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6869a733a5bfSmrg if test "$supported" = "yes" ; then 68701b983734Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6871a733a5bfSmrg found="yes" 6872a733a5bfSmrg fi 6873a733a5bfSmrg fi 6874a733a5bfSmrg 6875a733a5bfSmrg 6876a733a5bfSmrg 6877a733a5bfSmrg 6878a733a5bfSmrg 6879a733a5bfSmrg 6880a733a5bfSmrg 6881a733a5bfSmrg 6882a733a5bfSmrg 6883a733a5bfSmrg 6884a733a5bfSmrg 6885a733a5bfSmrg 6886a733a5bfSmrg 6887a733a5bfSmrg 6888a733a5bfSmrg 6889a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6890a733a5bfSmrg 6891a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6892a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68936eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68946eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68956eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 68966eaa481cSmrgthen : 68976eaa481cSmrg printf %s "(cached) " >&6 68986eaa481cSmrgelse $as_nop 6899a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900a733a5bfSmrg/* end confdefs.h. */ 6901a733a5bfSmrgint i; 6902a733a5bfSmrg_ACEOF 69036eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 69046eaa481cSmrgthen : 6905a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 69066eaa481cSmrgelse $as_nop 6907a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 6908a733a5bfSmrgfi 69096eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6910a733a5bfSmrgfi 69116eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69126eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6913a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6914a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6915a733a5bfSmrgfi 6916a733a5bfSmrg 6917a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6918a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6919a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6920a733a5bfSmrg fi 6921a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69236eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69246eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 69256eaa481cSmrgthen : 69266eaa481cSmrg printf %s "(cached) " >&6 69276eaa481cSmrgelse $as_nop 6928a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929a733a5bfSmrg/* end confdefs.h. */ 6930a733a5bfSmrgint i; 6931a733a5bfSmrg_ACEOF 69326eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 69336eaa481cSmrgthen : 6934a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 69356eaa481cSmrgelse $as_nop 6936a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 6937a733a5bfSmrgfi 69386eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6939a733a5bfSmrgfi 69406eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69416eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6942a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6943a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6944a733a5bfSmrgfi 6945a733a5bfSmrg 6946a733a5bfSmrgfound="no" 6947a733a5bfSmrg 6948a733a5bfSmrg if test $found = "no" ; then 6949a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951a733a5bfSmrg fi 6952a733a5bfSmrg 6953a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6954a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6955a733a5bfSmrg fi 6956a733a5bfSmrg 69571b983734Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6958a733a5bfSmrg 69596eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 69606eaa481cSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 69611b983734Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 69626eaa481cSmrg if eval test \${$cacheid+y} 69636eaa481cSmrgthen : 69646eaa481cSmrg printf %s "(cached) " >&6 69656eaa481cSmrgelse $as_nop 6966a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967a733a5bfSmrg/* end confdefs.h. */ 6968a733a5bfSmrgint i; 6969a733a5bfSmrgint 69706eaa481cSmrgmain (void) 6971a733a5bfSmrg{ 6972a733a5bfSmrg 6973a733a5bfSmrg ; 6974a733a5bfSmrg return 0; 6975a733a5bfSmrg} 6976a733a5bfSmrg_ACEOF 69776eaa481cSmrgif ac_fn_c_try_link "$LINENO" 69786eaa481cSmrgthen : 6979a733a5bfSmrg eval $cacheid=yes 69806eaa481cSmrgelse $as_nop 6981a733a5bfSmrg eval $cacheid=no 6982a733a5bfSmrgfi 69836eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6984a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 6985a733a5bfSmrgfi 6986a733a5bfSmrg 6987a733a5bfSmrg 6988a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6989a733a5bfSmrg 6990a733a5bfSmrg eval supported=\$$cacheid 69916eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69926eaa481cSmrgprintf "%s\n" "$supported" >&6; } 6993a733a5bfSmrg if test "$supported" = "yes" ; then 69941b983734Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6995a733a5bfSmrg found="yes" 6996a733a5bfSmrg fi 6997a733a5bfSmrg fi 6998a733a5bfSmrg 6999a733a5bfSmrg 7000a733a5bfSmrg 7001a733a5bfSmrg 7002a733a5bfSmrg 7003a733a5bfSmrg 7004a733a5bfSmrg 7005a733a5bfSmrg 7006a733a5bfSmrg 7007a733a5bfSmrg 7008a733a5bfSmrg 7009a733a5bfSmrg 7010a733a5bfSmrg 7011a733a5bfSmrg 7012a733a5bfSmrg 7013a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7014a733a5bfSmrg 7015a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7016a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70176eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70186eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70196eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 70206eaa481cSmrgthen : 70216eaa481cSmrg printf %s "(cached) " >&6 70226eaa481cSmrgelse $as_nop 7023a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024a733a5bfSmrg/* end confdefs.h. */ 7025a733a5bfSmrgint i; 7026a733a5bfSmrg_ACEOF 70276eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 70286eaa481cSmrgthen : 7029a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 70306eaa481cSmrgelse $as_nop 7031a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7032a733a5bfSmrgfi 70336eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7034a733a5bfSmrgfi 70356eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70366eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7037a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7038a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7039a733a5bfSmrgfi 7040a733a5bfSmrg 7041a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7042a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7043a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044a733a5bfSmrg fi 7045a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70476eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70486eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70496eaa481cSmrgthen : 70506eaa481cSmrg printf %s "(cached) " >&6 70516eaa481cSmrgelse $as_nop 7052a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053a733a5bfSmrg/* end confdefs.h. */ 7054a733a5bfSmrgint i; 7055a733a5bfSmrg_ACEOF 70566eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 70576eaa481cSmrgthen : 7058a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 70596eaa481cSmrgelse $as_nop 7060a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7061a733a5bfSmrgfi 70626eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7063a733a5bfSmrgfi 70646eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70656eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7066a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7067a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7068a733a5bfSmrgfi 7069a733a5bfSmrg 7070a733a5bfSmrgfound="no" 7071a733a5bfSmrg 7072a733a5bfSmrg if test $found = "no" ; then 7073a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7074a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7075a733a5bfSmrg fi 7076a733a5bfSmrg 7077a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7078a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7079a733a5bfSmrg fi 7080a733a5bfSmrg 70811b983734Smrg CFLAGS="$CFLAGS -Wredundant-decls" 7082a733a5bfSmrg 70836eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 70846eaa481cSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 70851b983734Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 70866eaa481cSmrg if eval test \${$cacheid+y} 70876eaa481cSmrgthen : 70886eaa481cSmrg printf %s "(cached) " >&6 70896eaa481cSmrgelse $as_nop 7090a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091a733a5bfSmrg/* end confdefs.h. */ 7092a733a5bfSmrgint i; 7093a733a5bfSmrgint 70946eaa481cSmrgmain (void) 7095a733a5bfSmrg{ 7096a733a5bfSmrg 7097a733a5bfSmrg ; 7098a733a5bfSmrg return 0; 7099a733a5bfSmrg} 7100a733a5bfSmrg_ACEOF 71016eaa481cSmrgif ac_fn_c_try_link "$LINENO" 71026eaa481cSmrgthen : 7103a733a5bfSmrg eval $cacheid=yes 71046eaa481cSmrgelse $as_nop 7105a733a5bfSmrg eval $cacheid=no 7106a733a5bfSmrgfi 71076eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7108a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7109a733a5bfSmrgfi 7110a733a5bfSmrg 7111a733a5bfSmrg 7112a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7113a733a5bfSmrg 7114a733a5bfSmrg eval supported=\$$cacheid 71156eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71166eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7117a733a5bfSmrg if test "$supported" = "yes" ; then 71181b983734Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7119a733a5bfSmrg found="yes" 7120a733a5bfSmrg fi 7121a733a5bfSmrg fi 7122a733a5bfSmrg 7123a733a5bfSmrg 7124a733a5bfSmrg 7125a733a5bfSmrg 7126a733a5bfSmrg 7127a733a5bfSmrg 7128a733a5bfSmrg 7129a733a5bfSmrg 7130a733a5bfSmrg 7131a733a5bfSmrg 7132a733a5bfSmrg 7133a733a5bfSmrg 7134a733a5bfSmrg 7135a733a5bfSmrg 7136a733a5bfSmrg 7137a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7138a733a5bfSmrg 7139a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7140a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71416eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71426eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71436eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 71446eaa481cSmrgthen : 71456eaa481cSmrg printf %s "(cached) " >&6 71466eaa481cSmrgelse $as_nop 7147a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7148a733a5bfSmrg/* end confdefs.h. */ 7149a733a5bfSmrgint i; 7150a733a5bfSmrg_ACEOF 71516eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 71526eaa481cSmrgthen : 7153a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 71546eaa481cSmrgelse $as_nop 7155a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7156a733a5bfSmrgfi 71576eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7158a733a5bfSmrgfi 71596eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71606eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7161a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7162a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7163a733a5bfSmrgfi 7164a733a5bfSmrg 7165a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7166a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7167a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7168a733a5bfSmrg fi 7169a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71716eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71726eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 71736eaa481cSmrgthen : 71746eaa481cSmrg printf %s "(cached) " >&6 71756eaa481cSmrgelse $as_nop 7176a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177a733a5bfSmrg/* end confdefs.h. */ 7178a733a5bfSmrgint i; 7179a733a5bfSmrg_ACEOF 71806eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 71816eaa481cSmrgthen : 7182a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 71836eaa481cSmrgelse $as_nop 7184a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7185a733a5bfSmrgfi 71866eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7187a733a5bfSmrgfi 71886eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71896eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7190a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7191a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7192a733a5bfSmrgfi 7193a733a5bfSmrg 7194a733a5bfSmrgfound="no" 7195a733a5bfSmrg 7196a733a5bfSmrg if test $found = "no" ; then 7197a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7198a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7199a733a5bfSmrg fi 7200a733a5bfSmrg 7201a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7202a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7203a733a5bfSmrg fi 7204a733a5bfSmrg 72051b983734Smrg CFLAGS="$CFLAGS -Wlogical-op" 7206a733a5bfSmrg 72076eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 72086eaa481cSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 72091b983734Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 72106eaa481cSmrg if eval test \${$cacheid+y} 72116eaa481cSmrgthen : 72126eaa481cSmrg printf %s "(cached) " >&6 72136eaa481cSmrgelse $as_nop 7214a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215a733a5bfSmrg/* end confdefs.h. */ 7216a733a5bfSmrgint i; 7217a733a5bfSmrgint 72186eaa481cSmrgmain (void) 7219a733a5bfSmrg{ 7220a733a5bfSmrg 7221a733a5bfSmrg ; 7222a733a5bfSmrg return 0; 7223a733a5bfSmrg} 7224a733a5bfSmrg_ACEOF 72256eaa481cSmrgif ac_fn_c_try_link "$LINENO" 72266eaa481cSmrgthen : 7227a733a5bfSmrg eval $cacheid=yes 72286eaa481cSmrgelse $as_nop 7229a733a5bfSmrg eval $cacheid=no 7230a733a5bfSmrgfi 72316eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7232a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7233a733a5bfSmrgfi 7234a733a5bfSmrg 7235a733a5bfSmrg 7236a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7237a733a5bfSmrg 7238a733a5bfSmrg eval supported=\$$cacheid 72396eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72406eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7241a733a5bfSmrg if test "$supported" = "yes" ; then 72421b983734Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7243a733a5bfSmrg found="yes" 7244a733a5bfSmrg fi 7245a733a5bfSmrg fi 7246a733a5bfSmrg 7247a733a5bfSmrg 7248a733a5bfSmrg 7249a733a5bfSmrg# These are currently disabled because they are noisy. They will be enabled 7250a733a5bfSmrg# in the future once the codebase is sufficiently modernized to silence 7251a733a5bfSmrg# them. For now, I don't want them to drown out the other warnings. 7252a733a5bfSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7253a733a5bfSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 72541b983734Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7255a733a5bfSmrg 7256a733a5bfSmrg# Turn some warnings into errors, so we don't accidently get successful builds 7257a733a5bfSmrg# when there are problems that should be fixed. 7258a733a5bfSmrg 7259a733a5bfSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 7260a733a5bfSmrg 7261a733a5bfSmrg 7262a733a5bfSmrg 7263a733a5bfSmrg 7264a733a5bfSmrg 7265a733a5bfSmrg 7266a733a5bfSmrg 7267a733a5bfSmrg 7268a733a5bfSmrg 7269a733a5bfSmrg 7270a733a5bfSmrg 7271a733a5bfSmrg 7272a733a5bfSmrg 7273a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7274a733a5bfSmrg 7275a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7276a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72776eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72786eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72796eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 72806eaa481cSmrgthen : 72816eaa481cSmrg printf %s "(cached) " >&6 72826eaa481cSmrgelse $as_nop 7283a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284a733a5bfSmrg/* end confdefs.h. */ 7285a733a5bfSmrgint i; 7286a733a5bfSmrg_ACEOF 72876eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 72886eaa481cSmrgthen : 7289a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 72906eaa481cSmrgelse $as_nop 7291a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7292a733a5bfSmrgfi 72936eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7294a733a5bfSmrgfi 72956eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72966eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7297a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7298a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7299a733a5bfSmrgfi 7300a733a5bfSmrg 7301a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7302a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304a733a5bfSmrg fi 7305a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73066eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73076eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73086eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 73096eaa481cSmrgthen : 73106eaa481cSmrg printf %s "(cached) " >&6 73116eaa481cSmrgelse $as_nop 7312a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313a733a5bfSmrg/* end confdefs.h. */ 7314a733a5bfSmrgint i; 7315a733a5bfSmrg_ACEOF 73166eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 73176eaa481cSmrgthen : 7318a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 73196eaa481cSmrgelse $as_nop 7320a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7321a733a5bfSmrgfi 73226eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7323a733a5bfSmrgfi 73246eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73256eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7326a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7327a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7328a733a5bfSmrgfi 7329a733a5bfSmrg 7330a733a5bfSmrgfound="no" 7331a733a5bfSmrg 7332a733a5bfSmrg if test $found = "no" ; then 7333a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7334a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335a733a5bfSmrg fi 7336a733a5bfSmrg 7337a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7338a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7339a733a5bfSmrg fi 7340a733a5bfSmrg 7341a733a5bfSmrg CFLAGS="$CFLAGS -Werror=implicit" 7342a733a5bfSmrg 73436eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 73446eaa481cSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 73451b983734Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 73466eaa481cSmrg if eval test \${$cacheid+y} 73476eaa481cSmrgthen : 73486eaa481cSmrg printf %s "(cached) " >&6 73496eaa481cSmrgelse $as_nop 7350a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351a733a5bfSmrg/* end confdefs.h. */ 7352a733a5bfSmrgint i; 7353a733a5bfSmrgint 73546eaa481cSmrgmain (void) 7355a733a5bfSmrg{ 7356a733a5bfSmrg 7357a733a5bfSmrg ; 7358a733a5bfSmrg return 0; 7359a733a5bfSmrg} 7360a733a5bfSmrg_ACEOF 73616eaa481cSmrgif ac_fn_c_try_link "$LINENO" 73626eaa481cSmrgthen : 7363a733a5bfSmrg eval $cacheid=yes 73646eaa481cSmrgelse $as_nop 7365a733a5bfSmrg eval $cacheid=no 7366a733a5bfSmrgfi 73676eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7368a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7369a733a5bfSmrgfi 7370a733a5bfSmrg 7371a733a5bfSmrg 7372a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7373a733a5bfSmrg 7374a733a5bfSmrg eval supported=\$$cacheid 73756eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73766eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7377a733a5bfSmrg if test "$supported" = "yes" ; then 7378a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7379a733a5bfSmrg found="yes" 7380a733a5bfSmrg fi 7381a733a5bfSmrg fi 7382a733a5bfSmrg 7383a733a5bfSmrg if test $found = "no" ; then 7384a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7385a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386a733a5bfSmrg fi 7387a733a5bfSmrg 7388a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7389a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390a733a5bfSmrg fi 7391a733a5bfSmrg 7392a733a5bfSmrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7393a733a5bfSmrg 73946eaa481cSmrg { 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 73956eaa481cSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 73961b983734Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 73976eaa481cSmrg if eval test \${$cacheid+y} 73986eaa481cSmrgthen : 73996eaa481cSmrg printf %s "(cached) " >&6 74006eaa481cSmrgelse $as_nop 7401a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402a733a5bfSmrg/* end confdefs.h. */ 7403a733a5bfSmrgint i; 7404a733a5bfSmrgint 74056eaa481cSmrgmain (void) 7406a733a5bfSmrg{ 7407a733a5bfSmrg 7408a733a5bfSmrg ; 7409a733a5bfSmrg return 0; 7410a733a5bfSmrg} 7411a733a5bfSmrg_ACEOF 74126eaa481cSmrgif ac_fn_c_try_link "$LINENO" 74136eaa481cSmrgthen : 7414a733a5bfSmrg eval $cacheid=yes 74156eaa481cSmrgelse $as_nop 7416a733a5bfSmrg eval $cacheid=no 7417a733a5bfSmrgfi 74186eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7419a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7420a733a5bfSmrgfi 7421a733a5bfSmrg 7422a733a5bfSmrg 7423a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7424a733a5bfSmrg 7425a733a5bfSmrg eval supported=\$$cacheid 74266eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74276eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7428a733a5bfSmrg if test "$supported" = "yes" ; then 7429a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7430a733a5bfSmrg found="yes" 7431a733a5bfSmrg fi 7432a733a5bfSmrg fi 7433a733a5bfSmrg 7434a733a5bfSmrg 7435a733a5bfSmrg 7436a733a5bfSmrg 7437a733a5bfSmrg 7438a733a5bfSmrg 7439a733a5bfSmrg 7440a733a5bfSmrg 7441a733a5bfSmrg 7442a733a5bfSmrg 7443a733a5bfSmrg 7444a733a5bfSmrg 7445a733a5bfSmrg 7446a733a5bfSmrg 7447a733a5bfSmrg 7448a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7449a733a5bfSmrg 7450a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7451a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74526eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74536eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74546eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74556eaa481cSmrgthen : 74566eaa481cSmrg printf %s "(cached) " >&6 74576eaa481cSmrgelse $as_nop 7458a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459a733a5bfSmrg/* end confdefs.h. */ 7460a733a5bfSmrgint i; 7461a733a5bfSmrg_ACEOF 74626eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 74636eaa481cSmrgthen : 7464a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 74656eaa481cSmrgelse $as_nop 7466a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7467a733a5bfSmrgfi 74686eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7469a733a5bfSmrgfi 74706eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74716eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7472a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7473a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7474a733a5bfSmrgfi 7475a733a5bfSmrg 7476a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7477a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7478a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7479a733a5bfSmrg fi 7480a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74816eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74826eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74836eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 74846eaa481cSmrgthen : 74856eaa481cSmrg printf %s "(cached) " >&6 74866eaa481cSmrgelse $as_nop 7487a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7488a733a5bfSmrg/* end confdefs.h. */ 7489a733a5bfSmrgint i; 7490a733a5bfSmrg_ACEOF 74916eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 74926eaa481cSmrgthen : 7493a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 74946eaa481cSmrgelse $as_nop 7495a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7496a733a5bfSmrgfi 74976eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7498a733a5bfSmrgfi 74996eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75006eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7501a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7502a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7503a733a5bfSmrgfi 7504a733a5bfSmrg 7505a733a5bfSmrgfound="no" 7506a733a5bfSmrg 7507a733a5bfSmrg if test $found = "no" ; then 7508a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7509a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7510a733a5bfSmrg fi 7511a733a5bfSmrg 7512a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7513a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7514a733a5bfSmrg fi 7515a733a5bfSmrg 7516a733a5bfSmrg CFLAGS="$CFLAGS -Werror=nonnull" 7517a733a5bfSmrg 75186eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 75196eaa481cSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 75201b983734Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 75216eaa481cSmrg if eval test \${$cacheid+y} 75226eaa481cSmrgthen : 75236eaa481cSmrg printf %s "(cached) " >&6 75246eaa481cSmrgelse $as_nop 7525a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526a733a5bfSmrg/* end confdefs.h. */ 7527a733a5bfSmrgint i; 7528a733a5bfSmrgint 75296eaa481cSmrgmain (void) 7530a733a5bfSmrg{ 7531a733a5bfSmrg 7532a733a5bfSmrg ; 7533a733a5bfSmrg return 0; 7534a733a5bfSmrg} 7535a733a5bfSmrg_ACEOF 75366eaa481cSmrgif ac_fn_c_try_link "$LINENO" 75376eaa481cSmrgthen : 7538a733a5bfSmrg eval $cacheid=yes 75396eaa481cSmrgelse $as_nop 7540a733a5bfSmrg eval $cacheid=no 7541a733a5bfSmrgfi 75426eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7543a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7544a733a5bfSmrgfi 7545a733a5bfSmrg 7546a733a5bfSmrg 7547a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7548a733a5bfSmrg 7549a733a5bfSmrg eval supported=\$$cacheid 75506eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75516eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7552a733a5bfSmrg if test "$supported" = "yes" ; then 7553a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7554a733a5bfSmrg found="yes" 7555a733a5bfSmrg fi 7556a733a5bfSmrg fi 7557a733a5bfSmrg 7558a733a5bfSmrg 7559a733a5bfSmrg 7560a733a5bfSmrg 7561a733a5bfSmrg 7562a733a5bfSmrg 7563a733a5bfSmrg 7564a733a5bfSmrg 7565a733a5bfSmrg 7566a733a5bfSmrg 7567a733a5bfSmrg 7568a733a5bfSmrg 7569a733a5bfSmrg 7570a733a5bfSmrg 7571a733a5bfSmrg 7572a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7573a733a5bfSmrg 7574a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7575a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75766eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75776eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75786eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 75796eaa481cSmrgthen : 75806eaa481cSmrg printf %s "(cached) " >&6 75816eaa481cSmrgelse $as_nop 7582a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7583a733a5bfSmrg/* end confdefs.h. */ 7584a733a5bfSmrgint i; 7585a733a5bfSmrg_ACEOF 75866eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 75876eaa481cSmrgthen : 7588a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 75896eaa481cSmrgelse $as_nop 7590a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7591a733a5bfSmrgfi 75926eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7593a733a5bfSmrgfi 75946eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75956eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7596a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7597a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7598a733a5bfSmrgfi 7599a733a5bfSmrg 7600a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7601a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7602a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603a733a5bfSmrg fi 7604a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76056eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76066eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76076eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 76086eaa481cSmrgthen : 76096eaa481cSmrg printf %s "(cached) " >&6 76106eaa481cSmrgelse $as_nop 7611a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612a733a5bfSmrg/* end confdefs.h. */ 7613a733a5bfSmrgint i; 7614a733a5bfSmrg_ACEOF 76156eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 76166eaa481cSmrgthen : 7617a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 76186eaa481cSmrgelse $as_nop 7619a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7620a733a5bfSmrgfi 76216eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7622a733a5bfSmrgfi 76236eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76246eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7625a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7626a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7627a733a5bfSmrgfi 7628a733a5bfSmrg 7629a733a5bfSmrgfound="no" 7630a733a5bfSmrg 7631a733a5bfSmrg if test $found = "no" ; then 7632a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634a733a5bfSmrg fi 7635a733a5bfSmrg 7636a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7637a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7638a733a5bfSmrg fi 7639a733a5bfSmrg 7640a733a5bfSmrg CFLAGS="$CFLAGS -Werror=init-self" 7641a733a5bfSmrg 76426eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 76436eaa481cSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 76441b983734Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 76456eaa481cSmrg if eval test \${$cacheid+y} 76466eaa481cSmrgthen : 76476eaa481cSmrg printf %s "(cached) " >&6 76486eaa481cSmrgelse $as_nop 7649a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650a733a5bfSmrg/* end confdefs.h. */ 7651a733a5bfSmrgint i; 7652a733a5bfSmrgint 76536eaa481cSmrgmain (void) 7654a733a5bfSmrg{ 7655a733a5bfSmrg 7656a733a5bfSmrg ; 7657a733a5bfSmrg return 0; 7658a733a5bfSmrg} 7659a733a5bfSmrg_ACEOF 76606eaa481cSmrgif ac_fn_c_try_link "$LINENO" 76616eaa481cSmrgthen : 7662a733a5bfSmrg eval $cacheid=yes 76636eaa481cSmrgelse $as_nop 7664a733a5bfSmrg eval $cacheid=no 7665a733a5bfSmrgfi 76666eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7667a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7668a733a5bfSmrgfi 7669a733a5bfSmrg 7670a733a5bfSmrg 7671a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7672a733a5bfSmrg 7673a733a5bfSmrg eval supported=\$$cacheid 76746eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76756eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7676a733a5bfSmrg if test "$supported" = "yes" ; then 7677a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7678a733a5bfSmrg found="yes" 7679a733a5bfSmrg fi 7680a733a5bfSmrg fi 7681a733a5bfSmrg 7682a733a5bfSmrg 7683a733a5bfSmrg 7684a733a5bfSmrg 7685a733a5bfSmrg 7686a733a5bfSmrg 7687a733a5bfSmrg 7688a733a5bfSmrg 7689a733a5bfSmrg 7690a733a5bfSmrg 7691a733a5bfSmrg 7692a733a5bfSmrg 7693a733a5bfSmrg 7694a733a5bfSmrg 7695a733a5bfSmrg 7696a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7697a733a5bfSmrg 7698a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7699a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77006eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77016eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77026eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 77036eaa481cSmrgthen : 77046eaa481cSmrg printf %s "(cached) " >&6 77056eaa481cSmrgelse $as_nop 7706a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707a733a5bfSmrg/* end confdefs.h. */ 7708a733a5bfSmrgint i; 7709a733a5bfSmrg_ACEOF 77106eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 77116eaa481cSmrgthen : 7712a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 77136eaa481cSmrgelse $as_nop 7714a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7715a733a5bfSmrgfi 77166eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7717a733a5bfSmrgfi 77186eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77196eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7720a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7721a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7722a733a5bfSmrgfi 7723a733a5bfSmrg 7724a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7725a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7726a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727a733a5bfSmrg fi 7728a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77296eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77306eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77316eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 77326eaa481cSmrgthen : 77336eaa481cSmrg printf %s "(cached) " >&6 77346eaa481cSmrgelse $as_nop 7735a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736a733a5bfSmrg/* end confdefs.h. */ 7737a733a5bfSmrgint i; 7738a733a5bfSmrg_ACEOF 77396eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 77406eaa481cSmrgthen : 7741a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 77426eaa481cSmrgelse $as_nop 7743a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7744a733a5bfSmrgfi 77456eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7746a733a5bfSmrgfi 77476eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77486eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7749a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7750a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7751a733a5bfSmrgfi 7752a733a5bfSmrg 7753a733a5bfSmrgfound="no" 7754a733a5bfSmrg 7755a733a5bfSmrg if test $found = "no" ; then 7756a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7757a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7758a733a5bfSmrg fi 7759a733a5bfSmrg 7760a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7761a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7762a733a5bfSmrg fi 7763a733a5bfSmrg 7764a733a5bfSmrg CFLAGS="$CFLAGS -Werror=main" 7765a733a5bfSmrg 77666eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 77676eaa481cSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 77681b983734Smrg cacheid=xorg_cv_cc_flag__Werror_main 77696eaa481cSmrg if eval test \${$cacheid+y} 77706eaa481cSmrgthen : 77716eaa481cSmrg printf %s "(cached) " >&6 77726eaa481cSmrgelse $as_nop 7773a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774a733a5bfSmrg/* end confdefs.h. */ 7775a733a5bfSmrgint i; 7776a733a5bfSmrgint 77776eaa481cSmrgmain (void) 7778a733a5bfSmrg{ 7779a733a5bfSmrg 7780a733a5bfSmrg ; 7781a733a5bfSmrg return 0; 7782a733a5bfSmrg} 7783a733a5bfSmrg_ACEOF 77846eaa481cSmrgif ac_fn_c_try_link "$LINENO" 77856eaa481cSmrgthen : 7786a733a5bfSmrg eval $cacheid=yes 77876eaa481cSmrgelse $as_nop 7788a733a5bfSmrg eval $cacheid=no 7789a733a5bfSmrgfi 77906eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7791a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7792a733a5bfSmrgfi 7793a733a5bfSmrg 7794a733a5bfSmrg 7795a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7796a733a5bfSmrg 7797a733a5bfSmrg eval supported=\$$cacheid 77986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77996eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7800a733a5bfSmrg if test "$supported" = "yes" ; then 7801a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7802a733a5bfSmrg found="yes" 7803a733a5bfSmrg fi 7804a733a5bfSmrg fi 7805a733a5bfSmrg 7806a733a5bfSmrg 7807a733a5bfSmrg 7808a733a5bfSmrg 7809a733a5bfSmrg 7810a733a5bfSmrg 7811a733a5bfSmrg 7812a733a5bfSmrg 7813a733a5bfSmrg 7814a733a5bfSmrg 7815a733a5bfSmrg 7816a733a5bfSmrg 7817a733a5bfSmrg 7818a733a5bfSmrg 7819a733a5bfSmrg 7820a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7821a733a5bfSmrg 7822a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7823a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78246eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78256eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78266eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 78276eaa481cSmrgthen : 78286eaa481cSmrg printf %s "(cached) " >&6 78296eaa481cSmrgelse $as_nop 7830a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831a733a5bfSmrg/* end confdefs.h. */ 7832a733a5bfSmrgint i; 7833a733a5bfSmrg_ACEOF 78346eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 78356eaa481cSmrgthen : 7836a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 78376eaa481cSmrgelse $as_nop 7838a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7839a733a5bfSmrgfi 78406eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7841a733a5bfSmrgfi 78426eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78436eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7844a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7845a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7846a733a5bfSmrgfi 7847a733a5bfSmrg 7848a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7849a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7850a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7851a733a5bfSmrg fi 7852a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78536eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78546eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78556eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78566eaa481cSmrgthen : 78576eaa481cSmrg printf %s "(cached) " >&6 78586eaa481cSmrgelse $as_nop 7859a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7860a733a5bfSmrg/* end confdefs.h. */ 7861a733a5bfSmrgint i; 7862a733a5bfSmrg_ACEOF 78636eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 78646eaa481cSmrgthen : 7865a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 78666eaa481cSmrgelse $as_nop 7867a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7868a733a5bfSmrgfi 78696eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7870a733a5bfSmrgfi 78716eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78726eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7873a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7874a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7875a733a5bfSmrgfi 7876a733a5bfSmrg 7877a733a5bfSmrgfound="no" 7878a733a5bfSmrg 7879a733a5bfSmrg if test $found = "no" ; then 7880a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882a733a5bfSmrg fi 7883a733a5bfSmrg 7884a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7885a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7886a733a5bfSmrg fi 7887a733a5bfSmrg 7888a733a5bfSmrg CFLAGS="$CFLAGS -Werror=missing-braces" 7889a733a5bfSmrg 78906eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 78916eaa481cSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 78921b983734Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 78936eaa481cSmrg if eval test \${$cacheid+y} 78946eaa481cSmrgthen : 78956eaa481cSmrg printf %s "(cached) " >&6 78966eaa481cSmrgelse $as_nop 7897a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898a733a5bfSmrg/* end confdefs.h. */ 7899a733a5bfSmrgint i; 7900a733a5bfSmrgint 79016eaa481cSmrgmain (void) 7902a733a5bfSmrg{ 7903a733a5bfSmrg 7904a733a5bfSmrg ; 7905a733a5bfSmrg return 0; 7906a733a5bfSmrg} 7907a733a5bfSmrg_ACEOF 79086eaa481cSmrgif ac_fn_c_try_link "$LINENO" 79096eaa481cSmrgthen : 7910a733a5bfSmrg eval $cacheid=yes 79116eaa481cSmrgelse $as_nop 7912a733a5bfSmrg eval $cacheid=no 7913a733a5bfSmrgfi 79146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7915a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 7916a733a5bfSmrgfi 7917a733a5bfSmrg 7918a733a5bfSmrg 7919a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7920a733a5bfSmrg 7921a733a5bfSmrg eval supported=\$$cacheid 79226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79236eaa481cSmrgprintf "%s\n" "$supported" >&6; } 7924a733a5bfSmrg if test "$supported" = "yes" ; then 7925a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7926a733a5bfSmrg found="yes" 7927a733a5bfSmrg fi 7928a733a5bfSmrg fi 7929a733a5bfSmrg 7930a733a5bfSmrg 7931a733a5bfSmrg 7932a733a5bfSmrg 7933a733a5bfSmrg 7934a733a5bfSmrg 7935a733a5bfSmrg 7936a733a5bfSmrg 7937a733a5bfSmrg 7938a733a5bfSmrg 7939a733a5bfSmrg 7940a733a5bfSmrg 7941a733a5bfSmrg 7942a733a5bfSmrg 7943a733a5bfSmrg 7944a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7945a733a5bfSmrg 7946a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7947a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79486eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79496eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79506eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 79516eaa481cSmrgthen : 79526eaa481cSmrg printf %s "(cached) " >&6 79536eaa481cSmrgelse $as_nop 7954a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955a733a5bfSmrg/* end confdefs.h. */ 7956a733a5bfSmrgint i; 7957a733a5bfSmrg_ACEOF 79586eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 79596eaa481cSmrgthen : 7960a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 79616eaa481cSmrgelse $as_nop 7962a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 7963a733a5bfSmrgfi 79646eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7965a733a5bfSmrgfi 79666eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79676eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7968a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7969a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7970a733a5bfSmrgfi 7971a733a5bfSmrg 7972a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7973a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7974a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975a733a5bfSmrg fi 7976a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79776eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79786eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79796eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 79806eaa481cSmrgthen : 79816eaa481cSmrg printf %s "(cached) " >&6 79826eaa481cSmrgelse $as_nop 7983a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984a733a5bfSmrg/* end confdefs.h. */ 7985a733a5bfSmrgint i; 7986a733a5bfSmrg_ACEOF 79876eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 79886eaa481cSmrgthen : 7989a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 79906eaa481cSmrgelse $as_nop 7991a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 7992a733a5bfSmrgfi 79936eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7994a733a5bfSmrgfi 79956eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79966eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7997a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7998a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7999a733a5bfSmrgfi 8000a733a5bfSmrg 8001a733a5bfSmrgfound="no" 8002a733a5bfSmrg 8003a733a5bfSmrg if test $found = "no" ; then 8004a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8005a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006a733a5bfSmrg fi 8007a733a5bfSmrg 8008a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8009a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8010a733a5bfSmrg fi 8011a733a5bfSmrg 8012a733a5bfSmrg CFLAGS="$CFLAGS -Werror=sequence-point" 8013a733a5bfSmrg 80146eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 80156eaa481cSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 80161b983734Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 80176eaa481cSmrg if eval test \${$cacheid+y} 80186eaa481cSmrgthen : 80196eaa481cSmrg printf %s "(cached) " >&6 80206eaa481cSmrgelse $as_nop 8021a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022a733a5bfSmrg/* end confdefs.h. */ 8023a733a5bfSmrgint i; 8024a733a5bfSmrgint 80256eaa481cSmrgmain (void) 8026a733a5bfSmrg{ 8027a733a5bfSmrg 8028a733a5bfSmrg ; 8029a733a5bfSmrg return 0; 8030a733a5bfSmrg} 8031a733a5bfSmrg_ACEOF 80326eaa481cSmrgif ac_fn_c_try_link "$LINENO" 80336eaa481cSmrgthen : 8034a733a5bfSmrg eval $cacheid=yes 80356eaa481cSmrgelse $as_nop 8036a733a5bfSmrg eval $cacheid=no 8037a733a5bfSmrgfi 80386eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8039a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8040a733a5bfSmrgfi 8041a733a5bfSmrg 8042a733a5bfSmrg 8043a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8044a733a5bfSmrg 8045a733a5bfSmrg eval supported=\$$cacheid 80466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80476eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8048a733a5bfSmrg if test "$supported" = "yes" ; then 8049a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8050a733a5bfSmrg found="yes" 8051a733a5bfSmrg fi 8052a733a5bfSmrg fi 8053a733a5bfSmrg 8054a733a5bfSmrg 8055a733a5bfSmrg 8056a733a5bfSmrg 8057a733a5bfSmrg 8058a733a5bfSmrg 8059a733a5bfSmrg 8060a733a5bfSmrg 8061a733a5bfSmrg 8062a733a5bfSmrg 8063a733a5bfSmrg 8064a733a5bfSmrg 8065a733a5bfSmrg 8066a733a5bfSmrg 8067a733a5bfSmrg 8068a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8069a733a5bfSmrg 8070a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8071a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80726eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80736eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80746eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 80756eaa481cSmrgthen : 80766eaa481cSmrg printf %s "(cached) " >&6 80776eaa481cSmrgelse $as_nop 8078a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079a733a5bfSmrg/* end confdefs.h. */ 8080a733a5bfSmrgint i; 8081a733a5bfSmrg_ACEOF 80826eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 80836eaa481cSmrgthen : 8084a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 80856eaa481cSmrgelse $as_nop 8086a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8087a733a5bfSmrgfi 80886eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8089a733a5bfSmrgfi 80906eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80916eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8092a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8093a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8094a733a5bfSmrgfi 8095a733a5bfSmrg 8096a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8097a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099a733a5bfSmrg fi 8100a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81016eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81026eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81036eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81046eaa481cSmrgthen : 81056eaa481cSmrg printf %s "(cached) " >&6 81066eaa481cSmrgelse $as_nop 8107a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108a733a5bfSmrg/* end confdefs.h. */ 8109a733a5bfSmrgint i; 8110a733a5bfSmrg_ACEOF 81116eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 81126eaa481cSmrgthen : 8113a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 81146eaa481cSmrgelse $as_nop 8115a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8116a733a5bfSmrgfi 81176eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8118a733a5bfSmrgfi 81196eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81206eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8121a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8122a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8123a733a5bfSmrgfi 8124a733a5bfSmrg 8125a733a5bfSmrgfound="no" 8126a733a5bfSmrg 8127a733a5bfSmrg if test $found = "no" ; then 8128a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8129a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8130a733a5bfSmrg fi 8131a733a5bfSmrg 8132a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8133a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8134a733a5bfSmrg fi 8135a733a5bfSmrg 8136a733a5bfSmrg CFLAGS="$CFLAGS -Werror=return-type" 8137a733a5bfSmrg 81386eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 81396eaa481cSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 81401b983734Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 81416eaa481cSmrg if eval test \${$cacheid+y} 81426eaa481cSmrgthen : 81436eaa481cSmrg printf %s "(cached) " >&6 81446eaa481cSmrgelse $as_nop 8145a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146a733a5bfSmrg/* end confdefs.h. */ 8147a733a5bfSmrgint i; 8148a733a5bfSmrgint 81496eaa481cSmrgmain (void) 8150a733a5bfSmrg{ 8151a733a5bfSmrg 8152a733a5bfSmrg ; 8153a733a5bfSmrg return 0; 8154a733a5bfSmrg} 8155a733a5bfSmrg_ACEOF 81566eaa481cSmrgif ac_fn_c_try_link "$LINENO" 81576eaa481cSmrgthen : 8158a733a5bfSmrg eval $cacheid=yes 81596eaa481cSmrgelse $as_nop 8160a733a5bfSmrg eval $cacheid=no 8161a733a5bfSmrgfi 81626eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8163a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8164a733a5bfSmrgfi 8165a733a5bfSmrg 8166a733a5bfSmrg 8167a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8168a733a5bfSmrg 8169a733a5bfSmrg eval supported=\$$cacheid 81706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81716eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8172a733a5bfSmrg if test "$supported" = "yes" ; then 8173a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8174a733a5bfSmrg found="yes" 8175a733a5bfSmrg fi 8176a733a5bfSmrg fi 8177a733a5bfSmrg 8178a733a5bfSmrg if test $found = "no" ; then 8179a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8180a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8181a733a5bfSmrg fi 8182a733a5bfSmrg 8183a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8184a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8185a733a5bfSmrg fi 8186a733a5bfSmrg 8187a733a5bfSmrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8188a733a5bfSmrg 81896eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 81906eaa481cSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 81911b983734Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 81926eaa481cSmrg if eval test \${$cacheid+y} 81936eaa481cSmrgthen : 81946eaa481cSmrg printf %s "(cached) " >&6 81956eaa481cSmrgelse $as_nop 8196a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8197a733a5bfSmrg/* end confdefs.h. */ 8198a733a5bfSmrgint i; 8199a733a5bfSmrgint 82006eaa481cSmrgmain (void) 8201a733a5bfSmrg{ 8202a733a5bfSmrg 8203a733a5bfSmrg ; 8204a733a5bfSmrg return 0; 8205a733a5bfSmrg} 8206a733a5bfSmrg_ACEOF 82076eaa481cSmrgif ac_fn_c_try_link "$LINENO" 82086eaa481cSmrgthen : 8209a733a5bfSmrg eval $cacheid=yes 82106eaa481cSmrgelse $as_nop 8211a733a5bfSmrg eval $cacheid=no 8212a733a5bfSmrgfi 82136eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8214a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8215a733a5bfSmrgfi 8216a733a5bfSmrg 8217a733a5bfSmrg 8218a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8219a733a5bfSmrg 8220a733a5bfSmrg eval supported=\$$cacheid 82216eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82226eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8223a733a5bfSmrg if test "$supported" = "yes" ; then 8224a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8225a733a5bfSmrg found="yes" 8226a733a5bfSmrg fi 8227a733a5bfSmrg fi 8228a733a5bfSmrg 8229a733a5bfSmrg 8230a733a5bfSmrg 8231a733a5bfSmrg 8232a733a5bfSmrg 8233a733a5bfSmrg 8234a733a5bfSmrg 8235a733a5bfSmrg 8236a733a5bfSmrg 8237a733a5bfSmrg 8238a733a5bfSmrg 8239a733a5bfSmrg 8240a733a5bfSmrg 8241a733a5bfSmrg 8242a733a5bfSmrg 8243a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8244a733a5bfSmrg 8245a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8246a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82476eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82486eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82496eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82506eaa481cSmrgthen : 82516eaa481cSmrg printf %s "(cached) " >&6 82526eaa481cSmrgelse $as_nop 8253a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254a733a5bfSmrg/* end confdefs.h. */ 8255a733a5bfSmrgint i; 8256a733a5bfSmrg_ACEOF 82576eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 82586eaa481cSmrgthen : 8259a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 82606eaa481cSmrgelse $as_nop 8261a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8262a733a5bfSmrgfi 82636eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8264a733a5bfSmrgfi 82656eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82666eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8267a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8268a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8269a733a5bfSmrgfi 8270a733a5bfSmrg 8271a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8272a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8273a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274a733a5bfSmrg fi 8275a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82766eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82776eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82786eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 82796eaa481cSmrgthen : 82806eaa481cSmrg printf %s "(cached) " >&6 82816eaa481cSmrgelse $as_nop 8282a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8283a733a5bfSmrg/* end confdefs.h. */ 8284a733a5bfSmrgint i; 8285a733a5bfSmrg_ACEOF 82866eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 82876eaa481cSmrgthen : 8288a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 82896eaa481cSmrgelse $as_nop 8290a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8291a733a5bfSmrgfi 82926eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8293a733a5bfSmrgfi 82946eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82956eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8296a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8297a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8298a733a5bfSmrgfi 8299a733a5bfSmrg 8300a733a5bfSmrgfound="no" 8301a733a5bfSmrg 8302a733a5bfSmrg if test $found = "no" ; then 8303a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305a733a5bfSmrg fi 8306a733a5bfSmrg 8307a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8308a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309a733a5bfSmrg fi 8310a733a5bfSmrg 8311a733a5bfSmrg CFLAGS="$CFLAGS -Werror=trigraphs" 8312a733a5bfSmrg 83136eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 83146eaa481cSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 83151b983734Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 83166eaa481cSmrg if eval test \${$cacheid+y} 83176eaa481cSmrgthen : 83186eaa481cSmrg printf %s "(cached) " >&6 83196eaa481cSmrgelse $as_nop 8320a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321a733a5bfSmrg/* end confdefs.h. */ 8322a733a5bfSmrgint i; 8323a733a5bfSmrgint 83246eaa481cSmrgmain (void) 8325a733a5bfSmrg{ 8326a733a5bfSmrg 8327a733a5bfSmrg ; 8328a733a5bfSmrg return 0; 8329a733a5bfSmrg} 8330a733a5bfSmrg_ACEOF 83316eaa481cSmrgif ac_fn_c_try_link "$LINENO" 83326eaa481cSmrgthen : 8333a733a5bfSmrg eval $cacheid=yes 83346eaa481cSmrgelse $as_nop 8335a733a5bfSmrg eval $cacheid=no 8336a733a5bfSmrgfi 83376eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8338a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8339a733a5bfSmrgfi 8340a733a5bfSmrg 8341a733a5bfSmrg 8342a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8343a733a5bfSmrg 8344a733a5bfSmrg eval supported=\$$cacheid 83456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83466eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8347a733a5bfSmrg if test "$supported" = "yes" ; then 8348a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8349a733a5bfSmrg found="yes" 8350a733a5bfSmrg fi 8351a733a5bfSmrg fi 8352a733a5bfSmrg 8353a733a5bfSmrg 8354a733a5bfSmrg 8355a733a5bfSmrg 8356a733a5bfSmrg 8357a733a5bfSmrg 8358a733a5bfSmrg 8359a733a5bfSmrg 8360a733a5bfSmrg 8361a733a5bfSmrg 8362a733a5bfSmrg 8363a733a5bfSmrg 8364a733a5bfSmrg 8365a733a5bfSmrg 8366a733a5bfSmrg 8367a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8368a733a5bfSmrg 8369a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8370a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83716eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83726eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83736eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 83746eaa481cSmrgthen : 83756eaa481cSmrg printf %s "(cached) " >&6 83766eaa481cSmrgelse $as_nop 8377a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378a733a5bfSmrg/* end confdefs.h. */ 8379a733a5bfSmrgint i; 8380a733a5bfSmrg_ACEOF 83816eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 83826eaa481cSmrgthen : 8383a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 83846eaa481cSmrgelse $as_nop 8385a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8386a733a5bfSmrgfi 83876eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8388a733a5bfSmrgfi 83896eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83906eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8391a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8392a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8393a733a5bfSmrgfi 8394a733a5bfSmrg 8395a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8396a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8397a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8398a733a5bfSmrg fi 8399a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84006eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84016eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84026eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84036eaa481cSmrgthen : 84046eaa481cSmrg printf %s "(cached) " >&6 84056eaa481cSmrgelse $as_nop 8406a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8407a733a5bfSmrg/* end confdefs.h. */ 8408a733a5bfSmrgint i; 8409a733a5bfSmrg_ACEOF 84106eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 84116eaa481cSmrgthen : 8412a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 84136eaa481cSmrgelse $as_nop 8414a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8415a733a5bfSmrgfi 84166eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8417a733a5bfSmrgfi 84186eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84196eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8420a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8421a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8422a733a5bfSmrgfi 8423a733a5bfSmrg 8424a733a5bfSmrgfound="no" 8425a733a5bfSmrg 8426a733a5bfSmrg if test $found = "no" ; then 8427a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429a733a5bfSmrg fi 8430a733a5bfSmrg 8431a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8432a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8433a733a5bfSmrg fi 8434a733a5bfSmrg 8435a733a5bfSmrg CFLAGS="$CFLAGS -Werror=array-bounds" 8436a733a5bfSmrg 84376eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 84386eaa481cSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 84391b983734Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 84406eaa481cSmrg if eval test \${$cacheid+y} 84416eaa481cSmrgthen : 84426eaa481cSmrg printf %s "(cached) " >&6 84436eaa481cSmrgelse $as_nop 8444a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445a733a5bfSmrg/* end confdefs.h. */ 8446a733a5bfSmrgint i; 8447a733a5bfSmrgint 84486eaa481cSmrgmain (void) 8449a733a5bfSmrg{ 8450a733a5bfSmrg 8451a733a5bfSmrg ; 8452a733a5bfSmrg return 0; 8453a733a5bfSmrg} 8454a733a5bfSmrg_ACEOF 84556eaa481cSmrgif ac_fn_c_try_link "$LINENO" 84566eaa481cSmrgthen : 8457a733a5bfSmrg eval $cacheid=yes 84586eaa481cSmrgelse $as_nop 8459a733a5bfSmrg eval $cacheid=no 8460a733a5bfSmrgfi 84616eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8462a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8463a733a5bfSmrgfi 8464a733a5bfSmrg 8465a733a5bfSmrg 8466a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8467a733a5bfSmrg 8468a733a5bfSmrg eval supported=\$$cacheid 84696eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84706eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8471a733a5bfSmrg if test "$supported" = "yes" ; then 8472a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8473a733a5bfSmrg found="yes" 8474a733a5bfSmrg fi 8475a733a5bfSmrg fi 8476a733a5bfSmrg 8477a733a5bfSmrg 8478a733a5bfSmrg 8479a733a5bfSmrg 8480a733a5bfSmrg 8481a733a5bfSmrg 8482a733a5bfSmrg 8483a733a5bfSmrg 8484a733a5bfSmrg 8485a733a5bfSmrg 8486a733a5bfSmrg 8487a733a5bfSmrg 8488a733a5bfSmrg 8489a733a5bfSmrg 8490a733a5bfSmrg 8491a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8492a733a5bfSmrg 8493a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8494a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84956eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84966eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84976eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 84986eaa481cSmrgthen : 84996eaa481cSmrg printf %s "(cached) " >&6 85006eaa481cSmrgelse $as_nop 8501a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502a733a5bfSmrg/* end confdefs.h. */ 8503a733a5bfSmrgint i; 8504a733a5bfSmrg_ACEOF 85056eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 85066eaa481cSmrgthen : 8507a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 85086eaa481cSmrgelse $as_nop 8509a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8510a733a5bfSmrgfi 85116eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8512a733a5bfSmrgfi 85136eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85146eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8515a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8516a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8517a733a5bfSmrgfi 8518a733a5bfSmrg 8519a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8520a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8521a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522a733a5bfSmrg fi 8523a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85246eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85256eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85266eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 85276eaa481cSmrgthen : 85286eaa481cSmrg printf %s "(cached) " >&6 85296eaa481cSmrgelse $as_nop 8530a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531a733a5bfSmrg/* end confdefs.h. */ 8532a733a5bfSmrgint i; 8533a733a5bfSmrg_ACEOF 85346eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 85356eaa481cSmrgthen : 8536a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 85376eaa481cSmrgelse $as_nop 8538a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8539a733a5bfSmrgfi 85406eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8541a733a5bfSmrgfi 85426eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85436eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8544a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8545a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8546a733a5bfSmrgfi 8547a733a5bfSmrg 8548a733a5bfSmrgfound="no" 8549a733a5bfSmrg 8550a733a5bfSmrg if test $found = "no" ; then 8551a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8552a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553a733a5bfSmrg fi 8554a733a5bfSmrg 8555a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8556a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8557a733a5bfSmrg fi 8558a733a5bfSmrg 8559a733a5bfSmrg CFLAGS="$CFLAGS -Werror=write-strings" 8560a733a5bfSmrg 85616eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 85626eaa481cSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 85631b983734Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 85646eaa481cSmrg if eval test \${$cacheid+y} 85656eaa481cSmrgthen : 85666eaa481cSmrg printf %s "(cached) " >&6 85676eaa481cSmrgelse $as_nop 8568a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569a733a5bfSmrg/* end confdefs.h. */ 8570a733a5bfSmrgint i; 8571a733a5bfSmrgint 85726eaa481cSmrgmain (void) 8573a733a5bfSmrg{ 8574a733a5bfSmrg 8575a733a5bfSmrg ; 8576a733a5bfSmrg return 0; 8577a733a5bfSmrg} 8578a733a5bfSmrg_ACEOF 85796eaa481cSmrgif ac_fn_c_try_link "$LINENO" 85806eaa481cSmrgthen : 8581a733a5bfSmrg eval $cacheid=yes 85826eaa481cSmrgelse $as_nop 8583a733a5bfSmrg eval $cacheid=no 8584a733a5bfSmrgfi 85856eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8586a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8587a733a5bfSmrgfi 8588a733a5bfSmrg 8589a733a5bfSmrg 8590a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8591a733a5bfSmrg 8592a733a5bfSmrg eval supported=\$$cacheid 85936eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85946eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8595a733a5bfSmrg if test "$supported" = "yes" ; then 8596a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8597a733a5bfSmrg found="yes" 8598a733a5bfSmrg fi 8599a733a5bfSmrg fi 8600a733a5bfSmrg 8601a733a5bfSmrg 8602a733a5bfSmrg 8603a733a5bfSmrg 8604a733a5bfSmrg 8605a733a5bfSmrg 8606a733a5bfSmrg 8607a733a5bfSmrg 8608a733a5bfSmrg 8609a733a5bfSmrg 8610a733a5bfSmrg 8611a733a5bfSmrg 8612a733a5bfSmrg 8613a733a5bfSmrg 8614a733a5bfSmrg 8615a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8616a733a5bfSmrg 8617a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8618a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86196eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86206eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86216eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 86226eaa481cSmrgthen : 86236eaa481cSmrg printf %s "(cached) " >&6 86246eaa481cSmrgelse $as_nop 8625a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626a733a5bfSmrg/* end confdefs.h. */ 8627a733a5bfSmrgint i; 8628a733a5bfSmrg_ACEOF 86296eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 86306eaa481cSmrgthen : 8631a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 86326eaa481cSmrgelse $as_nop 8633a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8634a733a5bfSmrgfi 86356eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8636a733a5bfSmrgfi 86376eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86386eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8639a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8640a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8641a733a5bfSmrgfi 8642a733a5bfSmrg 8643a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8644a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8645a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646a733a5bfSmrg fi 8647a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86486eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86496eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86506eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 86516eaa481cSmrgthen : 86526eaa481cSmrg printf %s "(cached) " >&6 86536eaa481cSmrgelse $as_nop 8654a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8655a733a5bfSmrg/* end confdefs.h. */ 8656a733a5bfSmrgint i; 8657a733a5bfSmrg_ACEOF 86586eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 86596eaa481cSmrgthen : 8660a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 86616eaa481cSmrgelse $as_nop 8662a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8663a733a5bfSmrgfi 86646eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8665a733a5bfSmrgfi 86666eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86676eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8668a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8669a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8670a733a5bfSmrgfi 8671a733a5bfSmrg 8672a733a5bfSmrgfound="no" 8673a733a5bfSmrg 8674a733a5bfSmrg if test $found = "no" ; then 8675a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8676a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677a733a5bfSmrg fi 8678a733a5bfSmrg 8679a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8680a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8681a733a5bfSmrg fi 8682a733a5bfSmrg 8683a733a5bfSmrg CFLAGS="$CFLAGS -Werror=address" 8684a733a5bfSmrg 86856eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 86866eaa481cSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 86871b983734Smrg cacheid=xorg_cv_cc_flag__Werror_address 86886eaa481cSmrg if eval test \${$cacheid+y} 86896eaa481cSmrgthen : 86906eaa481cSmrg printf %s "(cached) " >&6 86916eaa481cSmrgelse $as_nop 8692a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693a733a5bfSmrg/* end confdefs.h. */ 8694a733a5bfSmrgint i; 8695a733a5bfSmrgint 86966eaa481cSmrgmain (void) 8697a733a5bfSmrg{ 8698a733a5bfSmrg 8699a733a5bfSmrg ; 8700a733a5bfSmrg return 0; 8701a733a5bfSmrg} 8702a733a5bfSmrg_ACEOF 87036eaa481cSmrgif ac_fn_c_try_link "$LINENO" 87046eaa481cSmrgthen : 8705a733a5bfSmrg eval $cacheid=yes 87066eaa481cSmrgelse $as_nop 8707a733a5bfSmrg eval $cacheid=no 8708a733a5bfSmrgfi 87096eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8710a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8711a733a5bfSmrgfi 8712a733a5bfSmrg 8713a733a5bfSmrg 8714a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8715a733a5bfSmrg 8716a733a5bfSmrg eval supported=\$$cacheid 87176eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87186eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8719a733a5bfSmrg if test "$supported" = "yes" ; then 8720a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8721a733a5bfSmrg found="yes" 8722a733a5bfSmrg fi 8723a733a5bfSmrg fi 8724a733a5bfSmrg 8725a733a5bfSmrg 8726a733a5bfSmrg 8727a733a5bfSmrg 8728a733a5bfSmrg 8729a733a5bfSmrg 8730a733a5bfSmrg 8731a733a5bfSmrg 8732a733a5bfSmrg 8733a733a5bfSmrg 8734a733a5bfSmrg 8735a733a5bfSmrg 8736a733a5bfSmrg 8737a733a5bfSmrg 8738a733a5bfSmrg 8739a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8740a733a5bfSmrg 8741a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8742a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87436eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87446eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87456eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87466eaa481cSmrgthen : 87476eaa481cSmrg printf %s "(cached) " >&6 87486eaa481cSmrgelse $as_nop 8749a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750a733a5bfSmrg/* end confdefs.h. */ 8751a733a5bfSmrgint i; 8752a733a5bfSmrg_ACEOF 87536eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 87546eaa481cSmrgthen : 8755a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 87566eaa481cSmrgelse $as_nop 8757a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8758a733a5bfSmrgfi 87596eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8760a733a5bfSmrgfi 87616eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87626eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8763a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8764a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8765a733a5bfSmrgfi 8766a733a5bfSmrg 8767a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8768a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770a733a5bfSmrg fi 8771a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87726eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87736eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87746eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 87756eaa481cSmrgthen : 87766eaa481cSmrg printf %s "(cached) " >&6 87776eaa481cSmrgelse $as_nop 8778a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8779a733a5bfSmrg/* end confdefs.h. */ 8780a733a5bfSmrgint i; 8781a733a5bfSmrg_ACEOF 87826eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 87836eaa481cSmrgthen : 8784a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 87856eaa481cSmrgelse $as_nop 8786a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8787a733a5bfSmrgfi 87886eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8789a733a5bfSmrgfi 87906eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87916eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8792a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8793a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8794a733a5bfSmrgfi 8795a733a5bfSmrg 8796a733a5bfSmrgfound="no" 8797a733a5bfSmrg 8798a733a5bfSmrg if test $found = "no" ; then 8799a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8800a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8801a733a5bfSmrg fi 8802a733a5bfSmrg 8803a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8804a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8805a733a5bfSmrg fi 8806a733a5bfSmrg 8807a733a5bfSmrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8808a733a5bfSmrg 88096eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 88106eaa481cSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 88111b983734Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 88126eaa481cSmrg if eval test \${$cacheid+y} 88136eaa481cSmrgthen : 88146eaa481cSmrg printf %s "(cached) " >&6 88156eaa481cSmrgelse $as_nop 8816a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817a733a5bfSmrg/* end confdefs.h. */ 8818a733a5bfSmrgint i; 8819a733a5bfSmrgint 88206eaa481cSmrgmain (void) 8821a733a5bfSmrg{ 8822a733a5bfSmrg 8823a733a5bfSmrg ; 8824a733a5bfSmrg return 0; 8825a733a5bfSmrg} 8826a733a5bfSmrg_ACEOF 88276eaa481cSmrgif ac_fn_c_try_link "$LINENO" 88286eaa481cSmrgthen : 8829a733a5bfSmrg eval $cacheid=yes 88306eaa481cSmrgelse $as_nop 8831a733a5bfSmrg eval $cacheid=no 8832a733a5bfSmrgfi 88336eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8834a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8835a733a5bfSmrgfi 8836a733a5bfSmrg 8837a733a5bfSmrg 8838a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8839a733a5bfSmrg 8840a733a5bfSmrg eval supported=\$$cacheid 88416eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88426eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8843a733a5bfSmrg if test "$supported" = "yes" ; then 8844a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8845a733a5bfSmrg found="yes" 8846a733a5bfSmrg fi 8847a733a5bfSmrg fi 8848a733a5bfSmrg 8849a733a5bfSmrg if test $found = "no" ; then 8850a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8851a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852a733a5bfSmrg fi 8853a733a5bfSmrg 8854a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8855a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8856a733a5bfSmrg fi 8857a733a5bfSmrg 8858a733a5bfSmrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8859a733a5bfSmrg 88606eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 88616eaa481cSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 88621b983734Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 88636eaa481cSmrg if eval test \${$cacheid+y} 88646eaa481cSmrgthen : 88656eaa481cSmrg printf %s "(cached) " >&6 88666eaa481cSmrgelse $as_nop 8867a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868a733a5bfSmrg/* end confdefs.h. */ 8869a733a5bfSmrgint i; 8870a733a5bfSmrgint 88716eaa481cSmrgmain (void) 8872a733a5bfSmrg{ 8873a733a5bfSmrg 8874a733a5bfSmrg ; 8875a733a5bfSmrg return 0; 8876a733a5bfSmrg} 8877a733a5bfSmrg_ACEOF 88786eaa481cSmrgif ac_fn_c_try_link "$LINENO" 88796eaa481cSmrgthen : 8880a733a5bfSmrg eval $cacheid=yes 88816eaa481cSmrgelse $as_nop 8882a733a5bfSmrg eval $cacheid=no 8883a733a5bfSmrgfi 88846eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8885a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 8886a733a5bfSmrgfi 8887a733a5bfSmrg 8888a733a5bfSmrg 8889a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8890a733a5bfSmrg 8891a733a5bfSmrg eval supported=\$$cacheid 88926eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88936eaa481cSmrgprintf "%s\n" "$supported" >&6; } 8894a733a5bfSmrg if test "$supported" = "yes" ; then 8895a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8896a733a5bfSmrg found="yes" 8897a733a5bfSmrg fi 8898a733a5bfSmrg fi 8899a733a5bfSmrg 8900a733a5bfSmrg 8901a733a5bfSmrg 8902a733a5bfSmrg 8903a733a5bfSmrg 8904a733a5bfSmrg 8905a733a5bfSmrg 8906a733a5bfSmrg 8907a733a5bfSmrg 8908a733a5bfSmrg 8909a733a5bfSmrg 8910a733a5bfSmrg 8911a733a5bfSmrg 8912a733a5bfSmrg 8913a733a5bfSmrg 8914a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8915a733a5bfSmrg 8916a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8917a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89186eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89196eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89206eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 89216eaa481cSmrgthen : 89226eaa481cSmrg printf %s "(cached) " >&6 89236eaa481cSmrgelse $as_nop 8924a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925a733a5bfSmrg/* end confdefs.h. */ 8926a733a5bfSmrgint i; 8927a733a5bfSmrg_ACEOF 89286eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 89296eaa481cSmrgthen : 8930a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 89316eaa481cSmrgelse $as_nop 8932a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 8933a733a5bfSmrgfi 89346eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8935a733a5bfSmrgfi 89366eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89376eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8938a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8939a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8940a733a5bfSmrgfi 8941a733a5bfSmrg 8942a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8943a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8944a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8945a733a5bfSmrg fi 8946a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89476eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89486eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89496eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 89506eaa481cSmrgthen : 89516eaa481cSmrg printf %s "(cached) " >&6 89526eaa481cSmrgelse $as_nop 8953a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8954a733a5bfSmrg/* end confdefs.h. */ 8955a733a5bfSmrgint i; 8956a733a5bfSmrg_ACEOF 89576eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 89586eaa481cSmrgthen : 8959a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 89606eaa481cSmrgelse $as_nop 8961a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 8962a733a5bfSmrgfi 89636eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8964a733a5bfSmrgfi 89656eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89666eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8967a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8968a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8969a733a5bfSmrgfi 8970a733a5bfSmrg 8971a733a5bfSmrgfound="no" 8972a733a5bfSmrg 8973a733a5bfSmrg if test $found = "no" ; then 8974a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8975a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8976a733a5bfSmrg fi 8977a733a5bfSmrg 8978a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8979a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980a733a5bfSmrg fi 8981a733a5bfSmrg 8982a733a5bfSmrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8983a733a5bfSmrg 89846eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 89856eaa481cSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 89861b983734Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 89876eaa481cSmrg if eval test \${$cacheid+y} 89886eaa481cSmrgthen : 89896eaa481cSmrg printf %s "(cached) " >&6 89906eaa481cSmrgelse $as_nop 8991a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8992a733a5bfSmrg/* end confdefs.h. */ 8993a733a5bfSmrgint i; 8994a733a5bfSmrgint 89956eaa481cSmrgmain (void) 8996a733a5bfSmrg{ 8997a733a5bfSmrg 8998a733a5bfSmrg ; 8999a733a5bfSmrg return 0; 9000a733a5bfSmrg} 9001a733a5bfSmrg_ACEOF 90026eaa481cSmrgif ac_fn_c_try_link "$LINENO" 90036eaa481cSmrgthen : 9004a733a5bfSmrg eval $cacheid=yes 90056eaa481cSmrgelse $as_nop 9006a733a5bfSmrg eval $cacheid=no 9007a733a5bfSmrgfi 90086eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9009a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9010a733a5bfSmrgfi 9011a733a5bfSmrg 9012a733a5bfSmrg 9013a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9014a733a5bfSmrg 9015a733a5bfSmrg eval supported=\$$cacheid 90166eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90176eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9018a733a5bfSmrg if test "$supported" = "yes" ; then 9019a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9020a733a5bfSmrg found="yes" 9021a733a5bfSmrg fi 9022a733a5bfSmrg fi 9023a733a5bfSmrg 9024a733a5bfSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9025a733a5bfSmrgelse 90266eaa481cSmrg{ 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 90276eaa481cSmrgprintf "%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;} 9028a733a5bfSmrg 9029a733a5bfSmrg 9030a733a5bfSmrg 9031a733a5bfSmrg 9032a733a5bfSmrg 9033a733a5bfSmrg 9034a733a5bfSmrg 9035a733a5bfSmrg 9036a733a5bfSmrg 9037a733a5bfSmrg 9038a733a5bfSmrg 9039a733a5bfSmrg 9040a733a5bfSmrg 9041a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9042a733a5bfSmrg 9043a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9044a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90466eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90476eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 90486eaa481cSmrgthen : 90496eaa481cSmrg printf %s "(cached) " >&6 90506eaa481cSmrgelse $as_nop 9051a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9052a733a5bfSmrg/* end confdefs.h. */ 9053a733a5bfSmrgint i; 9054a733a5bfSmrg_ACEOF 90556eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 90566eaa481cSmrgthen : 9057a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 90586eaa481cSmrgelse $as_nop 9059a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9060a733a5bfSmrgfi 90616eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9062a733a5bfSmrgfi 90636eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90646eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9065a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9066a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9067a733a5bfSmrgfi 9068a733a5bfSmrg 9069a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9070a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9071a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072a733a5bfSmrg fi 9073a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90746eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90756eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90766eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 90776eaa481cSmrgthen : 90786eaa481cSmrg printf %s "(cached) " >&6 90796eaa481cSmrgelse $as_nop 9080a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081a733a5bfSmrg/* end confdefs.h. */ 9082a733a5bfSmrgint i; 9083a733a5bfSmrg_ACEOF 90846eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 90856eaa481cSmrgthen : 9086a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 90876eaa481cSmrgelse $as_nop 9088a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9089a733a5bfSmrgfi 90906eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9091a733a5bfSmrgfi 90926eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90936eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9094a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9095a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9096a733a5bfSmrgfi 9097a733a5bfSmrg 9098a733a5bfSmrgfound="no" 9099a733a5bfSmrg 9100a733a5bfSmrg if test $found = "no" ; then 9101a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103a733a5bfSmrg fi 9104a733a5bfSmrg 9105a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9106a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9107a733a5bfSmrg fi 9108a733a5bfSmrg 9109a733a5bfSmrg CFLAGS="$CFLAGS -Wimplicit" 9110a733a5bfSmrg 91116eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 91126eaa481cSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 9113a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wimplicit 91146eaa481cSmrg if eval test \${$cacheid+y} 91156eaa481cSmrgthen : 91166eaa481cSmrg printf %s "(cached) " >&6 91176eaa481cSmrgelse $as_nop 9118a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119a733a5bfSmrg/* end confdefs.h. */ 9120a733a5bfSmrgint i; 9121a733a5bfSmrgint 91226eaa481cSmrgmain (void) 9123a733a5bfSmrg{ 9124a733a5bfSmrg 9125a733a5bfSmrg ; 9126a733a5bfSmrg return 0; 9127a733a5bfSmrg} 9128a733a5bfSmrg_ACEOF 91296eaa481cSmrgif ac_fn_c_try_link "$LINENO" 91306eaa481cSmrgthen : 9131a733a5bfSmrg eval $cacheid=yes 91326eaa481cSmrgelse $as_nop 9133a733a5bfSmrg eval $cacheid=no 9134a733a5bfSmrgfi 91356eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9136a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9137a733a5bfSmrgfi 9138a733a5bfSmrg 9139a733a5bfSmrg 9140a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9141a733a5bfSmrg 9142a733a5bfSmrg eval supported=\$$cacheid 91436eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91446eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9145a733a5bfSmrg if test "$supported" = "yes" ; then 9146a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9147a733a5bfSmrg found="yes" 9148a733a5bfSmrg fi 9149a733a5bfSmrg fi 9150a733a5bfSmrg 9151a733a5bfSmrg 9152a733a5bfSmrg 9153a733a5bfSmrg 9154a733a5bfSmrg 9155a733a5bfSmrg 9156a733a5bfSmrg 9157a733a5bfSmrg 9158a733a5bfSmrg 9159a733a5bfSmrg 9160a733a5bfSmrg 9161a733a5bfSmrg 9162a733a5bfSmrg 9163a733a5bfSmrg 9164a733a5bfSmrg 9165a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9166a733a5bfSmrg 9167a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9168a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91696eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91706eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91716eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 91726eaa481cSmrgthen : 91736eaa481cSmrg printf %s "(cached) " >&6 91746eaa481cSmrgelse $as_nop 9175a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176a733a5bfSmrg/* end confdefs.h. */ 9177a733a5bfSmrgint i; 9178a733a5bfSmrg_ACEOF 91796eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 91806eaa481cSmrgthen : 9181a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 91826eaa481cSmrgelse $as_nop 9183a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9184a733a5bfSmrgfi 91856eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9186a733a5bfSmrgfi 91876eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91886eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9189a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9190a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9191a733a5bfSmrgfi 9192a733a5bfSmrg 9193a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9194a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196a733a5bfSmrg fi 9197a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91996eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92006eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92016eaa481cSmrgthen : 92026eaa481cSmrg printf %s "(cached) " >&6 92036eaa481cSmrgelse $as_nop 9204a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205a733a5bfSmrg/* end confdefs.h. */ 9206a733a5bfSmrgint i; 9207a733a5bfSmrg_ACEOF 92086eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 92096eaa481cSmrgthen : 9210a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 92116eaa481cSmrgelse $as_nop 9212a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9213a733a5bfSmrgfi 92146eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9215a733a5bfSmrgfi 92166eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92176eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9218a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9219a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9220a733a5bfSmrgfi 9221a733a5bfSmrg 9222a733a5bfSmrgfound="no" 9223a733a5bfSmrg 9224a733a5bfSmrg if test $found = "no" ; then 9225a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227a733a5bfSmrg fi 9228a733a5bfSmrg 9229a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231a733a5bfSmrg fi 9232a733a5bfSmrg 9233a733a5bfSmrg CFLAGS="$CFLAGS -Wnonnull" 9234a733a5bfSmrg 92356eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 92366eaa481cSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 9237a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wnonnull 92386eaa481cSmrg if eval test \${$cacheid+y} 92396eaa481cSmrgthen : 92406eaa481cSmrg printf %s "(cached) " >&6 92416eaa481cSmrgelse $as_nop 9242a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243a733a5bfSmrg/* end confdefs.h. */ 9244a733a5bfSmrgint i; 9245a733a5bfSmrgint 92466eaa481cSmrgmain (void) 9247a733a5bfSmrg{ 9248a733a5bfSmrg 9249a733a5bfSmrg ; 9250a733a5bfSmrg return 0; 9251a733a5bfSmrg} 9252a733a5bfSmrg_ACEOF 92536eaa481cSmrgif ac_fn_c_try_link "$LINENO" 92546eaa481cSmrgthen : 9255a733a5bfSmrg eval $cacheid=yes 92566eaa481cSmrgelse $as_nop 9257a733a5bfSmrg eval $cacheid=no 9258a733a5bfSmrgfi 92596eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9260a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9261a733a5bfSmrgfi 9262a733a5bfSmrg 9263a733a5bfSmrg 9264a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9265a733a5bfSmrg 9266a733a5bfSmrg eval supported=\$$cacheid 92676eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92686eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9269a733a5bfSmrg if test "$supported" = "yes" ; then 9270a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9271a733a5bfSmrg found="yes" 9272a733a5bfSmrg fi 9273a733a5bfSmrg fi 9274a733a5bfSmrg 9275a733a5bfSmrg 9276a733a5bfSmrg 9277a733a5bfSmrg 9278a733a5bfSmrg 9279a733a5bfSmrg 9280a733a5bfSmrg 9281a733a5bfSmrg 9282a733a5bfSmrg 9283a733a5bfSmrg 9284a733a5bfSmrg 9285a733a5bfSmrg 9286a733a5bfSmrg 9287a733a5bfSmrg 9288a733a5bfSmrg 9289a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9290a733a5bfSmrg 9291a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9292a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92936eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92946eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92956eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 92966eaa481cSmrgthen : 92976eaa481cSmrg printf %s "(cached) " >&6 92986eaa481cSmrgelse $as_nop 9299a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300a733a5bfSmrg/* end confdefs.h. */ 9301a733a5bfSmrgint i; 9302a733a5bfSmrg_ACEOF 93036eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 93046eaa481cSmrgthen : 9305a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 93066eaa481cSmrgelse $as_nop 9307a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9308a733a5bfSmrgfi 93096eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9310a733a5bfSmrgfi 93116eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93126eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9313a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9314a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9315a733a5bfSmrgfi 9316a733a5bfSmrg 9317a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9318a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9319a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9320a733a5bfSmrg fi 9321a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93236eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93246eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 93256eaa481cSmrgthen : 93266eaa481cSmrg printf %s "(cached) " >&6 93276eaa481cSmrgelse $as_nop 9328a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329a733a5bfSmrg/* end confdefs.h. */ 9330a733a5bfSmrgint i; 9331a733a5bfSmrg_ACEOF 93326eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 93336eaa481cSmrgthen : 9334a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 93356eaa481cSmrgelse $as_nop 9336a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9337a733a5bfSmrgfi 93386eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9339a733a5bfSmrgfi 93406eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93416eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9342a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9343a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9344a733a5bfSmrgfi 9345a733a5bfSmrg 9346a733a5bfSmrgfound="no" 9347a733a5bfSmrg 9348a733a5bfSmrg if test $found = "no" ; then 9349a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351a733a5bfSmrg fi 9352a733a5bfSmrg 9353a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9354a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9355a733a5bfSmrg fi 9356a733a5bfSmrg 9357a733a5bfSmrg CFLAGS="$CFLAGS -Winit-self" 9358a733a5bfSmrg 93596eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 93606eaa481cSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 9361a733a5bfSmrg cacheid=xorg_cv_cc_flag__Winit_self 93626eaa481cSmrg if eval test \${$cacheid+y} 93636eaa481cSmrgthen : 93646eaa481cSmrg printf %s "(cached) " >&6 93656eaa481cSmrgelse $as_nop 9366a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367a733a5bfSmrg/* end confdefs.h. */ 9368a733a5bfSmrgint i; 9369a733a5bfSmrgint 93706eaa481cSmrgmain (void) 9371a733a5bfSmrg{ 9372a733a5bfSmrg 9373a733a5bfSmrg ; 9374a733a5bfSmrg return 0; 9375a733a5bfSmrg} 9376a733a5bfSmrg_ACEOF 93776eaa481cSmrgif ac_fn_c_try_link "$LINENO" 93786eaa481cSmrgthen : 9379a733a5bfSmrg eval $cacheid=yes 93806eaa481cSmrgelse $as_nop 9381a733a5bfSmrg eval $cacheid=no 9382a733a5bfSmrgfi 93836eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9384a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9385a733a5bfSmrgfi 9386a733a5bfSmrg 9387a733a5bfSmrg 9388a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9389a733a5bfSmrg 9390a733a5bfSmrg eval supported=\$$cacheid 93916eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93926eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9393a733a5bfSmrg if test "$supported" = "yes" ; then 9394a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9395a733a5bfSmrg found="yes" 9396a733a5bfSmrg fi 9397a733a5bfSmrg fi 9398a733a5bfSmrg 9399a733a5bfSmrg 9400a733a5bfSmrg 9401a733a5bfSmrg 9402a733a5bfSmrg 9403a733a5bfSmrg 9404a733a5bfSmrg 9405a733a5bfSmrg 9406a733a5bfSmrg 9407a733a5bfSmrg 9408a733a5bfSmrg 9409a733a5bfSmrg 9410a733a5bfSmrg 9411a733a5bfSmrg 9412a733a5bfSmrg 9413a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9414a733a5bfSmrg 9415a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9416a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94176eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94186eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94196eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 94206eaa481cSmrgthen : 94216eaa481cSmrg printf %s "(cached) " >&6 94226eaa481cSmrgelse $as_nop 9423a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9424a733a5bfSmrg/* end confdefs.h. */ 9425a733a5bfSmrgint i; 9426a733a5bfSmrg_ACEOF 94276eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 94286eaa481cSmrgthen : 9429a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 94306eaa481cSmrgelse $as_nop 9431a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9432a733a5bfSmrgfi 94336eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9434a733a5bfSmrgfi 94356eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94366eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9437a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9438a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9439a733a5bfSmrgfi 9440a733a5bfSmrg 9441a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9442a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9443a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9444a733a5bfSmrg fi 9445a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94466eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94476eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94486eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 94496eaa481cSmrgthen : 94506eaa481cSmrg printf %s "(cached) " >&6 94516eaa481cSmrgelse $as_nop 9452a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453a733a5bfSmrg/* end confdefs.h. */ 9454a733a5bfSmrgint i; 9455a733a5bfSmrg_ACEOF 94566eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 94576eaa481cSmrgthen : 9458a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 94596eaa481cSmrgelse $as_nop 9460a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9461a733a5bfSmrgfi 94626eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9463a733a5bfSmrgfi 94646eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94656eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9466a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9467a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9468a733a5bfSmrgfi 9469a733a5bfSmrg 9470a733a5bfSmrgfound="no" 9471a733a5bfSmrg 9472a733a5bfSmrg if test $found = "no" ; then 9473a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9474a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9475a733a5bfSmrg fi 9476a733a5bfSmrg 9477a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9478a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9479a733a5bfSmrg fi 9480a733a5bfSmrg 9481a733a5bfSmrg CFLAGS="$CFLAGS -Wmain" 9482a733a5bfSmrg 94836eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 94846eaa481cSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 9485a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wmain 94866eaa481cSmrg if eval test \${$cacheid+y} 94876eaa481cSmrgthen : 94886eaa481cSmrg printf %s "(cached) " >&6 94896eaa481cSmrgelse $as_nop 9490a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491a733a5bfSmrg/* end confdefs.h. */ 9492a733a5bfSmrgint i; 9493a733a5bfSmrgint 94946eaa481cSmrgmain (void) 9495a733a5bfSmrg{ 9496a733a5bfSmrg 9497a733a5bfSmrg ; 9498a733a5bfSmrg return 0; 9499a733a5bfSmrg} 9500a733a5bfSmrg_ACEOF 95016eaa481cSmrgif ac_fn_c_try_link "$LINENO" 95026eaa481cSmrgthen : 9503a733a5bfSmrg eval $cacheid=yes 95046eaa481cSmrgelse $as_nop 9505a733a5bfSmrg eval $cacheid=no 9506a733a5bfSmrgfi 95076eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9508a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9509a733a5bfSmrgfi 9510a733a5bfSmrg 9511a733a5bfSmrg 9512a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9513a733a5bfSmrg 9514a733a5bfSmrg eval supported=\$$cacheid 95156eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95166eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9517a733a5bfSmrg if test "$supported" = "yes" ; then 9518a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9519a733a5bfSmrg found="yes" 9520a733a5bfSmrg fi 9521a733a5bfSmrg fi 9522a733a5bfSmrg 9523a733a5bfSmrg 9524a733a5bfSmrg 9525a733a5bfSmrg 9526a733a5bfSmrg 9527a733a5bfSmrg 9528a733a5bfSmrg 9529a733a5bfSmrg 9530a733a5bfSmrg 9531a733a5bfSmrg 9532a733a5bfSmrg 9533a733a5bfSmrg 9534a733a5bfSmrg 9535a733a5bfSmrg 9536a733a5bfSmrg 9537a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9538a733a5bfSmrg 9539a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9540a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95416eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95426eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95436eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 95446eaa481cSmrgthen : 95456eaa481cSmrg printf %s "(cached) " >&6 95466eaa481cSmrgelse $as_nop 9547a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548a733a5bfSmrg/* end confdefs.h. */ 9549a733a5bfSmrgint i; 9550a733a5bfSmrg_ACEOF 95516eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 95526eaa481cSmrgthen : 9553a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 95546eaa481cSmrgelse $as_nop 9555a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9556a733a5bfSmrgfi 95576eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9558a733a5bfSmrgfi 95596eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95606eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9561a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9562a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9563a733a5bfSmrgfi 9564a733a5bfSmrg 9565a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9566a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568a733a5bfSmrg fi 9569a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95706eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95716eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95726eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 95736eaa481cSmrgthen : 95746eaa481cSmrg printf %s "(cached) " >&6 95756eaa481cSmrgelse $as_nop 9576a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577a733a5bfSmrg/* end confdefs.h. */ 9578a733a5bfSmrgint i; 9579a733a5bfSmrg_ACEOF 95806eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 95816eaa481cSmrgthen : 9582a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 95836eaa481cSmrgelse $as_nop 9584a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9585a733a5bfSmrgfi 95866eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9587a733a5bfSmrgfi 95886eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95896eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9590a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9591a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9592a733a5bfSmrgfi 9593a733a5bfSmrg 9594a733a5bfSmrgfound="no" 9595a733a5bfSmrg 9596a733a5bfSmrg if test $found = "no" ; then 9597a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599a733a5bfSmrg fi 9600a733a5bfSmrg 9601a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9602a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9603a733a5bfSmrg fi 9604a733a5bfSmrg 9605a733a5bfSmrg CFLAGS="$CFLAGS -Wmissing-braces" 9606a733a5bfSmrg 96076eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 96086eaa481cSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9609a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wmissing_braces 96106eaa481cSmrg if eval test \${$cacheid+y} 96116eaa481cSmrgthen : 96126eaa481cSmrg printf %s "(cached) " >&6 96136eaa481cSmrgelse $as_nop 9614a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615a733a5bfSmrg/* end confdefs.h. */ 9616a733a5bfSmrgint i; 9617a733a5bfSmrgint 96186eaa481cSmrgmain (void) 9619a733a5bfSmrg{ 9620a733a5bfSmrg 9621a733a5bfSmrg ; 9622a733a5bfSmrg return 0; 9623a733a5bfSmrg} 9624a733a5bfSmrg_ACEOF 96256eaa481cSmrgif ac_fn_c_try_link "$LINENO" 96266eaa481cSmrgthen : 9627a733a5bfSmrg eval $cacheid=yes 96286eaa481cSmrgelse $as_nop 9629a733a5bfSmrg eval $cacheid=no 9630a733a5bfSmrgfi 96316eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9632a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9633a733a5bfSmrgfi 9634a733a5bfSmrg 9635a733a5bfSmrg 9636a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9637a733a5bfSmrg 9638a733a5bfSmrg eval supported=\$$cacheid 96396eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96406eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9641a733a5bfSmrg if test "$supported" = "yes" ; then 9642a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9643a733a5bfSmrg found="yes" 9644a733a5bfSmrg fi 9645a733a5bfSmrg fi 9646a733a5bfSmrg 9647a733a5bfSmrg 9648a733a5bfSmrg 9649a733a5bfSmrg 9650a733a5bfSmrg 9651a733a5bfSmrg 9652a733a5bfSmrg 9653a733a5bfSmrg 9654a733a5bfSmrg 9655a733a5bfSmrg 9656a733a5bfSmrg 9657a733a5bfSmrg 9658a733a5bfSmrg 9659a733a5bfSmrg 9660a733a5bfSmrg 9661a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9662a733a5bfSmrg 9663a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9664a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96656eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96666eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96676eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96686eaa481cSmrgthen : 96696eaa481cSmrg printf %s "(cached) " >&6 96706eaa481cSmrgelse $as_nop 9671a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672a733a5bfSmrg/* end confdefs.h. */ 9673a733a5bfSmrgint i; 9674a733a5bfSmrg_ACEOF 96756eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 96766eaa481cSmrgthen : 9677a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 96786eaa481cSmrgelse $as_nop 9679a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9680a733a5bfSmrgfi 96816eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9682a733a5bfSmrgfi 96836eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96846eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9685a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9686a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9687a733a5bfSmrgfi 9688a733a5bfSmrg 9689a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9690a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9691a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692a733a5bfSmrg fi 9693a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96946eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96956eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96966eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 96976eaa481cSmrgthen : 96986eaa481cSmrg printf %s "(cached) " >&6 96996eaa481cSmrgelse $as_nop 9700a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701a733a5bfSmrg/* end confdefs.h. */ 9702a733a5bfSmrgint i; 9703a733a5bfSmrg_ACEOF 97046eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 97056eaa481cSmrgthen : 9706a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 97076eaa481cSmrgelse $as_nop 9708a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9709a733a5bfSmrgfi 97106eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9711a733a5bfSmrgfi 97126eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97136eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9714a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9715a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9716a733a5bfSmrgfi 9717a733a5bfSmrg 9718a733a5bfSmrgfound="no" 9719a733a5bfSmrg 9720a733a5bfSmrg if test $found = "no" ; then 9721a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723a733a5bfSmrg fi 9724a733a5bfSmrg 9725a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9726a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727a733a5bfSmrg fi 9728a733a5bfSmrg 9729a733a5bfSmrg CFLAGS="$CFLAGS -Wsequence-point" 9730a733a5bfSmrg 97316eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 97326eaa481cSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 9733a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wsequence_point 97346eaa481cSmrg if eval test \${$cacheid+y} 97356eaa481cSmrgthen : 97366eaa481cSmrg printf %s "(cached) " >&6 97376eaa481cSmrgelse $as_nop 9738a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739a733a5bfSmrg/* end confdefs.h. */ 9740a733a5bfSmrgint i; 9741a733a5bfSmrgint 97426eaa481cSmrgmain (void) 9743a733a5bfSmrg{ 9744a733a5bfSmrg 9745a733a5bfSmrg ; 9746a733a5bfSmrg return 0; 9747a733a5bfSmrg} 9748a733a5bfSmrg_ACEOF 97496eaa481cSmrgif ac_fn_c_try_link "$LINENO" 97506eaa481cSmrgthen : 9751a733a5bfSmrg eval $cacheid=yes 97526eaa481cSmrgelse $as_nop 9753a733a5bfSmrg eval $cacheid=no 9754a733a5bfSmrgfi 97556eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9756a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9757a733a5bfSmrgfi 9758a733a5bfSmrg 9759a733a5bfSmrg 9760a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9761a733a5bfSmrg 9762a733a5bfSmrg eval supported=\$$cacheid 97636eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97646eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9765a733a5bfSmrg if test "$supported" = "yes" ; then 9766a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9767a733a5bfSmrg found="yes" 9768a733a5bfSmrg fi 9769a733a5bfSmrg fi 9770a733a5bfSmrg 9771a733a5bfSmrg 9772a733a5bfSmrg 9773a733a5bfSmrg 9774a733a5bfSmrg 9775a733a5bfSmrg 9776a733a5bfSmrg 9777a733a5bfSmrg 9778a733a5bfSmrg 9779a733a5bfSmrg 9780a733a5bfSmrg 9781a733a5bfSmrg 9782a733a5bfSmrg 9783a733a5bfSmrg 9784a733a5bfSmrg 9785a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9786a733a5bfSmrg 9787a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9788a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97896eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97906eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97916eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 97926eaa481cSmrgthen : 97936eaa481cSmrg printf %s "(cached) " >&6 97946eaa481cSmrgelse $as_nop 9795a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796a733a5bfSmrg/* end confdefs.h. */ 9797a733a5bfSmrgint i; 9798a733a5bfSmrg_ACEOF 97996eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 98006eaa481cSmrgthen : 9801a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 98026eaa481cSmrgelse $as_nop 9803a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9804a733a5bfSmrgfi 98056eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9806a733a5bfSmrgfi 98076eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98086eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9809a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9810a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9811a733a5bfSmrgfi 9812a733a5bfSmrg 9813a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9814a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9815a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816a733a5bfSmrg fi 9817a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98186eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98196eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98206eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 98216eaa481cSmrgthen : 98226eaa481cSmrg printf %s "(cached) " >&6 98236eaa481cSmrgelse $as_nop 9824a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825a733a5bfSmrg/* end confdefs.h. */ 9826a733a5bfSmrgint i; 9827a733a5bfSmrg_ACEOF 98286eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 98296eaa481cSmrgthen : 9830a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 98316eaa481cSmrgelse $as_nop 9832a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9833a733a5bfSmrgfi 98346eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9835a733a5bfSmrgfi 98366eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98376eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9838a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9839a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9840a733a5bfSmrgfi 9841a733a5bfSmrg 9842a733a5bfSmrgfound="no" 9843a733a5bfSmrg 9844a733a5bfSmrg if test $found = "no" ; then 9845a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9846a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9847a733a5bfSmrg fi 9848a733a5bfSmrg 9849a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9850a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9851a733a5bfSmrg fi 9852a733a5bfSmrg 9853a733a5bfSmrg CFLAGS="$CFLAGS -Wreturn-type" 9854a733a5bfSmrg 98556eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 98566eaa481cSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 9857a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wreturn_type 98586eaa481cSmrg if eval test \${$cacheid+y} 98596eaa481cSmrgthen : 98606eaa481cSmrg printf %s "(cached) " >&6 98616eaa481cSmrgelse $as_nop 9862a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863a733a5bfSmrg/* end confdefs.h. */ 9864a733a5bfSmrgint i; 9865a733a5bfSmrgint 98666eaa481cSmrgmain (void) 9867a733a5bfSmrg{ 9868a733a5bfSmrg 9869a733a5bfSmrg ; 9870a733a5bfSmrg return 0; 9871a733a5bfSmrg} 9872a733a5bfSmrg_ACEOF 98736eaa481cSmrgif ac_fn_c_try_link "$LINENO" 98746eaa481cSmrgthen : 9875a733a5bfSmrg eval $cacheid=yes 98766eaa481cSmrgelse $as_nop 9877a733a5bfSmrg eval $cacheid=no 9878a733a5bfSmrgfi 98796eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9880a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 9881a733a5bfSmrgfi 9882a733a5bfSmrg 9883a733a5bfSmrg 9884a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9885a733a5bfSmrg 9886a733a5bfSmrg eval supported=\$$cacheid 98876eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98886eaa481cSmrgprintf "%s\n" "$supported" >&6; } 9889a733a5bfSmrg if test "$supported" = "yes" ; then 9890a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9891a733a5bfSmrg found="yes" 9892a733a5bfSmrg fi 9893a733a5bfSmrg fi 9894a733a5bfSmrg 9895a733a5bfSmrg 9896a733a5bfSmrg 9897a733a5bfSmrg 9898a733a5bfSmrg 9899a733a5bfSmrg 9900a733a5bfSmrg 9901a733a5bfSmrg 9902a733a5bfSmrg 9903a733a5bfSmrg 9904a733a5bfSmrg 9905a733a5bfSmrg 9906a733a5bfSmrg 9907a733a5bfSmrg 9908a733a5bfSmrg 9909a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9910a733a5bfSmrg 9911a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9912a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99136eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99146eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99156eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 99166eaa481cSmrgthen : 99176eaa481cSmrg printf %s "(cached) " >&6 99186eaa481cSmrgelse $as_nop 9919a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920a733a5bfSmrg/* end confdefs.h. */ 9921a733a5bfSmrgint i; 9922a733a5bfSmrg_ACEOF 99236eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 99246eaa481cSmrgthen : 9925a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 99266eaa481cSmrgelse $as_nop 9927a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 9928a733a5bfSmrgfi 99296eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9930a733a5bfSmrgfi 99316eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99326eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9933a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9934a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9935a733a5bfSmrgfi 9936a733a5bfSmrg 9937a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9938a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9939a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9940a733a5bfSmrg fi 9941a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99426eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99436eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99446eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99456eaa481cSmrgthen : 99466eaa481cSmrg printf %s "(cached) " >&6 99476eaa481cSmrgelse $as_nop 9948a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949a733a5bfSmrg/* end confdefs.h. */ 9950a733a5bfSmrgint i; 9951a733a5bfSmrg_ACEOF 99526eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 99536eaa481cSmrgthen : 9954a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 99556eaa481cSmrgelse $as_nop 9956a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 9957a733a5bfSmrgfi 99586eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9959a733a5bfSmrgfi 99606eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99616eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9962a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9963a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9964a733a5bfSmrgfi 9965a733a5bfSmrg 9966a733a5bfSmrgfound="no" 9967a733a5bfSmrg 9968a733a5bfSmrg if test $found = "no" ; then 9969a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9970a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971a733a5bfSmrg fi 9972a733a5bfSmrg 9973a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9974a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9975a733a5bfSmrg fi 9976a733a5bfSmrg 9977a733a5bfSmrg CFLAGS="$CFLAGS -Wtrigraphs" 9978a733a5bfSmrg 99796eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 99806eaa481cSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9981a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wtrigraphs 99826eaa481cSmrg if eval test \${$cacheid+y} 99836eaa481cSmrgthen : 99846eaa481cSmrg printf %s "(cached) " >&6 99856eaa481cSmrgelse $as_nop 9986a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9987a733a5bfSmrg/* end confdefs.h. */ 9988a733a5bfSmrgint i; 9989a733a5bfSmrgint 99906eaa481cSmrgmain (void) 9991a733a5bfSmrg{ 9992a733a5bfSmrg 9993a733a5bfSmrg ; 9994a733a5bfSmrg return 0; 9995a733a5bfSmrg} 9996a733a5bfSmrg_ACEOF 99976eaa481cSmrgif ac_fn_c_try_link "$LINENO" 99986eaa481cSmrgthen : 9999a733a5bfSmrg eval $cacheid=yes 100006eaa481cSmrgelse $as_nop 10001a733a5bfSmrg eval $cacheid=no 10002a733a5bfSmrgfi 100036eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10004a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10005a733a5bfSmrgfi 10006a733a5bfSmrg 10007a733a5bfSmrg 10008a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10009a733a5bfSmrg 10010a733a5bfSmrg eval supported=\$$cacheid 100116eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100126eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10013a733a5bfSmrg if test "$supported" = "yes" ; then 10014a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10015a733a5bfSmrg found="yes" 10016a733a5bfSmrg fi 10017a733a5bfSmrg fi 10018a733a5bfSmrg 10019a733a5bfSmrg 10020a733a5bfSmrg 10021a733a5bfSmrg 10022a733a5bfSmrg 10023a733a5bfSmrg 10024a733a5bfSmrg 10025a733a5bfSmrg 10026a733a5bfSmrg 10027a733a5bfSmrg 10028a733a5bfSmrg 10029a733a5bfSmrg 10030a733a5bfSmrg 10031a733a5bfSmrg 10032a733a5bfSmrg 10033a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10034a733a5bfSmrg 10035a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10036a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100376eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100386eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100396eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100406eaa481cSmrgthen : 100416eaa481cSmrg printf %s "(cached) " >&6 100426eaa481cSmrgelse $as_nop 10043a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044a733a5bfSmrg/* end confdefs.h. */ 10045a733a5bfSmrgint i; 10046a733a5bfSmrg_ACEOF 100476eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 100486eaa481cSmrgthen : 10049a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 100506eaa481cSmrgelse $as_nop 10051a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10052a733a5bfSmrgfi 100536eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10054a733a5bfSmrgfi 100556eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100566eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10057a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10058a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10059a733a5bfSmrgfi 10060a733a5bfSmrg 10061a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10062a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10063a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10064a733a5bfSmrg fi 10065a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100666eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100676eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100686eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100696eaa481cSmrgthen : 100706eaa481cSmrg printf %s "(cached) " >&6 100716eaa481cSmrgelse $as_nop 10072a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073a733a5bfSmrg/* end confdefs.h. */ 10074a733a5bfSmrgint i; 10075a733a5bfSmrg_ACEOF 100766eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 100776eaa481cSmrgthen : 10078a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 100796eaa481cSmrgelse $as_nop 10080a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10081a733a5bfSmrgfi 100826eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10083a733a5bfSmrgfi 100846eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100856eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10086a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10087a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10088a733a5bfSmrgfi 10089a733a5bfSmrg 10090a733a5bfSmrgfound="no" 10091a733a5bfSmrg 10092a733a5bfSmrg if test $found = "no" ; then 10093a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10094a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10095a733a5bfSmrg fi 10096a733a5bfSmrg 10097a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10098a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10099a733a5bfSmrg fi 10100a733a5bfSmrg 10101a733a5bfSmrg CFLAGS="$CFLAGS -Warray-bounds" 10102a733a5bfSmrg 101036eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 101046eaa481cSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 10105a733a5bfSmrg cacheid=xorg_cv_cc_flag__Warray_bounds 101066eaa481cSmrg if eval test \${$cacheid+y} 101076eaa481cSmrgthen : 101086eaa481cSmrg printf %s "(cached) " >&6 101096eaa481cSmrgelse $as_nop 10110a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111a733a5bfSmrg/* end confdefs.h. */ 10112a733a5bfSmrgint i; 10113a733a5bfSmrgint 101146eaa481cSmrgmain (void) 10115a733a5bfSmrg{ 10116a733a5bfSmrg 10117a733a5bfSmrg ; 10118a733a5bfSmrg return 0; 10119a733a5bfSmrg} 10120a733a5bfSmrg_ACEOF 101216eaa481cSmrgif ac_fn_c_try_link "$LINENO" 101226eaa481cSmrgthen : 10123a733a5bfSmrg eval $cacheid=yes 101246eaa481cSmrgelse $as_nop 10125a733a5bfSmrg eval $cacheid=no 10126a733a5bfSmrgfi 101276eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10128a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10129a733a5bfSmrgfi 10130a733a5bfSmrg 10131a733a5bfSmrg 10132a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10133a733a5bfSmrg 10134a733a5bfSmrg eval supported=\$$cacheid 101356eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101366eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10137a733a5bfSmrg if test "$supported" = "yes" ; then 10138a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10139a733a5bfSmrg found="yes" 10140a733a5bfSmrg fi 10141a733a5bfSmrg fi 10142a733a5bfSmrg 10143a733a5bfSmrg 10144a733a5bfSmrg 10145a733a5bfSmrg 10146a733a5bfSmrg 10147a733a5bfSmrg 10148a733a5bfSmrg 10149a733a5bfSmrg 10150a733a5bfSmrg 10151a733a5bfSmrg 10152a733a5bfSmrg 10153a733a5bfSmrg 10154a733a5bfSmrg 10155a733a5bfSmrg 10156a733a5bfSmrg 10157a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10158a733a5bfSmrg 10159a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10160a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101616eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101626eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101636eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101646eaa481cSmrgthen : 101656eaa481cSmrg printf %s "(cached) " >&6 101666eaa481cSmrgelse $as_nop 10167a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168a733a5bfSmrg/* end confdefs.h. */ 10169a733a5bfSmrgint i; 10170a733a5bfSmrg_ACEOF 101716eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 101726eaa481cSmrgthen : 10173a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 101746eaa481cSmrgelse $as_nop 10175a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10176a733a5bfSmrgfi 101776eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10178a733a5bfSmrgfi 101796eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101806eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10181a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10182a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10183a733a5bfSmrgfi 10184a733a5bfSmrg 10185a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10186a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10187a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10188a733a5bfSmrg fi 10189a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101906eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101916eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101926eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 101936eaa481cSmrgthen : 101946eaa481cSmrg printf %s "(cached) " >&6 101956eaa481cSmrgelse $as_nop 10196a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197a733a5bfSmrg/* end confdefs.h. */ 10198a733a5bfSmrgint i; 10199a733a5bfSmrg_ACEOF 102006eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 102016eaa481cSmrgthen : 10202a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 102036eaa481cSmrgelse $as_nop 10204a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10205a733a5bfSmrgfi 102066eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10207a733a5bfSmrgfi 102086eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102096eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10210a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10211a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10212a733a5bfSmrgfi 10213a733a5bfSmrg 10214a733a5bfSmrgfound="no" 10215a733a5bfSmrg 10216a733a5bfSmrg if test $found = "no" ; then 10217a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10218a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219a733a5bfSmrg fi 10220a733a5bfSmrg 10221a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10222a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10223a733a5bfSmrg fi 10224a733a5bfSmrg 10225a733a5bfSmrg CFLAGS="$CFLAGS -Wwrite-strings" 10226a733a5bfSmrg 102276eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 102286eaa481cSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10229a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wwrite_strings 102306eaa481cSmrg if eval test \${$cacheid+y} 102316eaa481cSmrgthen : 102326eaa481cSmrg printf %s "(cached) " >&6 102336eaa481cSmrgelse $as_nop 10234a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235a733a5bfSmrg/* end confdefs.h. */ 10236a733a5bfSmrgint i; 10237a733a5bfSmrgint 102386eaa481cSmrgmain (void) 10239a733a5bfSmrg{ 10240a733a5bfSmrg 10241a733a5bfSmrg ; 10242a733a5bfSmrg return 0; 10243a733a5bfSmrg} 10244a733a5bfSmrg_ACEOF 102456eaa481cSmrgif ac_fn_c_try_link "$LINENO" 102466eaa481cSmrgthen : 10247a733a5bfSmrg eval $cacheid=yes 102486eaa481cSmrgelse $as_nop 10249a733a5bfSmrg eval $cacheid=no 10250a733a5bfSmrgfi 102516eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10252a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10253a733a5bfSmrgfi 10254a733a5bfSmrg 10255a733a5bfSmrg 10256a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10257a733a5bfSmrg 10258a733a5bfSmrg eval supported=\$$cacheid 102596eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102606eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10261a733a5bfSmrg if test "$supported" = "yes" ; then 10262a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10263a733a5bfSmrg found="yes" 10264a733a5bfSmrg fi 10265a733a5bfSmrg fi 10266a733a5bfSmrg 10267a733a5bfSmrg 10268a733a5bfSmrg 10269a733a5bfSmrg 10270a733a5bfSmrg 10271a733a5bfSmrg 10272a733a5bfSmrg 10273a733a5bfSmrg 10274a733a5bfSmrg 10275a733a5bfSmrg 10276a733a5bfSmrg 10277a733a5bfSmrg 10278a733a5bfSmrg 10279a733a5bfSmrg 10280a733a5bfSmrg 10281a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10282a733a5bfSmrg 10283a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10284a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102856eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102866eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102876eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 102886eaa481cSmrgthen : 102896eaa481cSmrg printf %s "(cached) " >&6 102906eaa481cSmrgelse $as_nop 10291a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10292a733a5bfSmrg/* end confdefs.h. */ 10293a733a5bfSmrgint i; 10294a733a5bfSmrg_ACEOF 102956eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 102966eaa481cSmrgthen : 10297a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 102986eaa481cSmrgelse $as_nop 10299a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10300a733a5bfSmrgfi 103016eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10302a733a5bfSmrgfi 103036eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103046eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10305a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10306a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10307a733a5bfSmrgfi 10308a733a5bfSmrg 10309a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10310a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10311a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312a733a5bfSmrg fi 10313a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103146eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103156eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103166eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 103176eaa481cSmrgthen : 103186eaa481cSmrg printf %s "(cached) " >&6 103196eaa481cSmrgelse $as_nop 10320a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321a733a5bfSmrg/* end confdefs.h. */ 10322a733a5bfSmrgint i; 10323a733a5bfSmrg_ACEOF 103246eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 103256eaa481cSmrgthen : 10326a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 103276eaa481cSmrgelse $as_nop 10328a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10329a733a5bfSmrgfi 103306eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10331a733a5bfSmrgfi 103326eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103336eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10334a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10335a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10336a733a5bfSmrgfi 10337a733a5bfSmrg 10338a733a5bfSmrgfound="no" 10339a733a5bfSmrg 10340a733a5bfSmrg if test $found = "no" ; then 10341a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10342a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10343a733a5bfSmrg fi 10344a733a5bfSmrg 10345a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10346a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10347a733a5bfSmrg fi 10348a733a5bfSmrg 10349a733a5bfSmrg CFLAGS="$CFLAGS -Waddress" 10350a733a5bfSmrg 103516eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 103526eaa481cSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 10353a733a5bfSmrg cacheid=xorg_cv_cc_flag__Waddress 103546eaa481cSmrg if eval test \${$cacheid+y} 103556eaa481cSmrgthen : 103566eaa481cSmrg printf %s "(cached) " >&6 103576eaa481cSmrgelse $as_nop 10358a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10359a733a5bfSmrg/* end confdefs.h. */ 10360a733a5bfSmrgint i; 10361a733a5bfSmrgint 103626eaa481cSmrgmain (void) 10363a733a5bfSmrg{ 10364a733a5bfSmrg 10365a733a5bfSmrg ; 10366a733a5bfSmrg return 0; 10367a733a5bfSmrg} 10368a733a5bfSmrg_ACEOF 103696eaa481cSmrgif ac_fn_c_try_link "$LINENO" 103706eaa481cSmrgthen : 10371a733a5bfSmrg eval $cacheid=yes 103726eaa481cSmrgelse $as_nop 10373a733a5bfSmrg eval $cacheid=no 10374a733a5bfSmrgfi 103756eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10376a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10377a733a5bfSmrgfi 10378a733a5bfSmrg 10379a733a5bfSmrg 10380a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10381a733a5bfSmrg 10382a733a5bfSmrg eval supported=\$$cacheid 103836eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103846eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10385a733a5bfSmrg if test "$supported" = "yes" ; then 10386a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10387a733a5bfSmrg found="yes" 10388a733a5bfSmrg fi 10389a733a5bfSmrg fi 10390a733a5bfSmrg 10391a733a5bfSmrg 10392a733a5bfSmrg 10393a733a5bfSmrg 10394a733a5bfSmrg 10395a733a5bfSmrg 10396a733a5bfSmrg 10397a733a5bfSmrg 10398a733a5bfSmrg 10399a733a5bfSmrg 10400a733a5bfSmrg 10401a733a5bfSmrg 10402a733a5bfSmrg 10403a733a5bfSmrg 10404a733a5bfSmrg 10405a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10406a733a5bfSmrg 10407a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10408a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104096eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104106eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104116eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 104126eaa481cSmrgthen : 104136eaa481cSmrg printf %s "(cached) " >&6 104146eaa481cSmrgelse $as_nop 10415a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416a733a5bfSmrg/* end confdefs.h. */ 10417a733a5bfSmrgint i; 10418a733a5bfSmrg_ACEOF 104196eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 104206eaa481cSmrgthen : 10421a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 104226eaa481cSmrgelse $as_nop 10423a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10424a733a5bfSmrgfi 104256eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10426a733a5bfSmrgfi 104276eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104286eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10429a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10430a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10431a733a5bfSmrgfi 10432a733a5bfSmrg 10433a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10434a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10435a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10436a733a5bfSmrg fi 10437a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104386eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104396eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104406eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 104416eaa481cSmrgthen : 104426eaa481cSmrg printf %s "(cached) " >&6 104436eaa481cSmrgelse $as_nop 10444a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445a733a5bfSmrg/* end confdefs.h. */ 10446a733a5bfSmrgint i; 10447a733a5bfSmrg_ACEOF 104486eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 104496eaa481cSmrgthen : 10450a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 104516eaa481cSmrgelse $as_nop 10452a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10453a733a5bfSmrgfi 104546eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10455a733a5bfSmrgfi 104566eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104576eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10458a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10459a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10460a733a5bfSmrgfi 10461a733a5bfSmrg 10462a733a5bfSmrgfound="no" 10463a733a5bfSmrg 10464a733a5bfSmrg if test $found = "no" ; then 10465a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10466a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10467a733a5bfSmrg fi 10468a733a5bfSmrg 10469a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10470a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10471a733a5bfSmrg fi 10472a733a5bfSmrg 10473a733a5bfSmrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10474a733a5bfSmrg 104756eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 104766eaa481cSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10477a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 104786eaa481cSmrg if eval test \${$cacheid+y} 104796eaa481cSmrgthen : 104806eaa481cSmrg printf %s "(cached) " >&6 104816eaa481cSmrgelse $as_nop 10482a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483a733a5bfSmrg/* end confdefs.h. */ 10484a733a5bfSmrgint i; 10485a733a5bfSmrgint 104866eaa481cSmrgmain (void) 10487a733a5bfSmrg{ 10488a733a5bfSmrg 10489a733a5bfSmrg ; 10490a733a5bfSmrg return 0; 10491a733a5bfSmrg} 10492a733a5bfSmrg_ACEOF 104936eaa481cSmrgif ac_fn_c_try_link "$LINENO" 104946eaa481cSmrgthen : 10495a733a5bfSmrg eval $cacheid=yes 104966eaa481cSmrgelse $as_nop 10497a733a5bfSmrg eval $cacheid=no 10498a733a5bfSmrgfi 104996eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10500a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10501a733a5bfSmrgfi 10502a733a5bfSmrg 10503a733a5bfSmrg 10504a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10505a733a5bfSmrg 10506a733a5bfSmrg eval supported=\$$cacheid 105076eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105086eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10509a733a5bfSmrg if test "$supported" = "yes" ; then 10510a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10511a733a5bfSmrg found="yes" 10512a733a5bfSmrg fi 10513a733a5bfSmrg fi 10514a733a5bfSmrg 10515a733a5bfSmrg 10516a733a5bfSmrg 10517a733a5bfSmrg 10518a733a5bfSmrg 10519a733a5bfSmrg 10520a733a5bfSmrg 10521a733a5bfSmrg 10522a733a5bfSmrg 10523a733a5bfSmrg 10524a733a5bfSmrg 10525a733a5bfSmrg 10526a733a5bfSmrg 10527a733a5bfSmrg 10528a733a5bfSmrg 10529a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10530a733a5bfSmrg 10531a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10532a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105336eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105346eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105356eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105366eaa481cSmrgthen : 105376eaa481cSmrg printf %s "(cached) " >&6 105386eaa481cSmrgelse $as_nop 10539a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540a733a5bfSmrg/* end confdefs.h. */ 10541a733a5bfSmrgint i; 10542a733a5bfSmrg_ACEOF 105436eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 105446eaa481cSmrgthen : 10545a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 105466eaa481cSmrgelse $as_nop 10547a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10548a733a5bfSmrgfi 105496eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10550a733a5bfSmrgfi 105516eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 105526eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10553a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10554a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10555a733a5bfSmrgfi 10556a733a5bfSmrg 10557a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10558a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10559a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10560a733a5bfSmrg fi 10561a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105626eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105636eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105646eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105656eaa481cSmrgthen : 105666eaa481cSmrg printf %s "(cached) " >&6 105676eaa481cSmrgelse $as_nop 10568a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569a733a5bfSmrg/* end confdefs.h. */ 10570a733a5bfSmrgint i; 10571a733a5bfSmrg_ACEOF 105726eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 105736eaa481cSmrgthen : 10574a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 105756eaa481cSmrgelse $as_nop 10576a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10577a733a5bfSmrgfi 105786eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10579a733a5bfSmrgfi 105806eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105816eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10582a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10583a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10584a733a5bfSmrgfi 10585a733a5bfSmrg 10586a733a5bfSmrgfound="no" 10587a733a5bfSmrg 10588a733a5bfSmrg if test $found = "no" ; then 10589a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10590a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10591a733a5bfSmrg fi 10592a733a5bfSmrg 10593a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10594a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10595a733a5bfSmrg fi 10596a733a5bfSmrg 10597a733a5bfSmrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10598a733a5bfSmrg 105996eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 106006eaa481cSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10601a733a5bfSmrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 106026eaa481cSmrg if eval test \${$cacheid+y} 106036eaa481cSmrgthen : 106046eaa481cSmrg printf %s "(cached) " >&6 106056eaa481cSmrgelse $as_nop 10606a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607a733a5bfSmrg/* end confdefs.h. */ 10608a733a5bfSmrgint i; 10609a733a5bfSmrgint 106106eaa481cSmrgmain (void) 10611a733a5bfSmrg{ 10612a733a5bfSmrg 10613a733a5bfSmrg ; 10614a733a5bfSmrg return 0; 10615a733a5bfSmrg} 10616a733a5bfSmrg_ACEOF 106176eaa481cSmrgif ac_fn_c_try_link "$LINENO" 106186eaa481cSmrgthen : 10619a733a5bfSmrg eval $cacheid=yes 106206eaa481cSmrgelse $as_nop 10621a733a5bfSmrg eval $cacheid=no 10622a733a5bfSmrgfi 106236eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10624a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10625a733a5bfSmrgfi 10626a733a5bfSmrg 10627a733a5bfSmrg 10628a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10629a733a5bfSmrg 10630a733a5bfSmrg eval supported=\$$cacheid 106316eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106326eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10633a733a5bfSmrg if test "$supported" = "yes" ; then 10634a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10635a733a5bfSmrg found="yes" 10636a733a5bfSmrg fi 10637a733a5bfSmrg fi 10638a733a5bfSmrg 10639a733a5bfSmrg 10640a733a5bfSmrgfi 10641a733a5bfSmrg 10642a733a5bfSmrg 10643a733a5bfSmrg 10644a733a5bfSmrg 10645a733a5bfSmrg 10646a733a5bfSmrg 10647a733a5bfSmrg 10648a733a5bfSmrg CWARNFLAGS="$BASE_CFLAGS" 10649a733a5bfSmrg if test "x$GCC" = xyes ; then 10650a733a5bfSmrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10651a733a5bfSmrg fi 10652a733a5bfSmrg 10653a733a5bfSmrg 10654a733a5bfSmrg 10655a733a5bfSmrg 10656a733a5bfSmrg 10657a733a5bfSmrg 10658a733a5bfSmrg 10659a733a5bfSmrg 10660a733a5bfSmrg# Check whether --enable-strict-compilation was given. 106616eaa481cSmrgif test ${enable_strict_compilation+y} 106626eaa481cSmrgthen : 10663a733a5bfSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 106646eaa481cSmrgelse $as_nop 10665a733a5bfSmrg STRICT_COMPILE=no 10666a733a5bfSmrgfi 10667a733a5bfSmrg 10668a733a5bfSmrg 10669a733a5bfSmrg 10670a733a5bfSmrg 10671a733a5bfSmrg 10672a733a5bfSmrg 10673a733a5bfSmrgSTRICT_CFLAGS="" 10674a733a5bfSmrg 10675a733a5bfSmrg 10676a733a5bfSmrg 10677a733a5bfSmrg 10678a733a5bfSmrg 10679a733a5bfSmrg 10680a733a5bfSmrg 10681a733a5bfSmrg 10682a733a5bfSmrg 10683a733a5bfSmrg 10684a733a5bfSmrg 10685a733a5bfSmrg 10686a733a5bfSmrg 10687a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10688a733a5bfSmrg 10689a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10690a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106916eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 106926eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 106936eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 106946eaa481cSmrgthen : 106956eaa481cSmrg printf %s "(cached) " >&6 106966eaa481cSmrgelse $as_nop 10697a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10698a733a5bfSmrg/* end confdefs.h. */ 10699a733a5bfSmrgint i; 10700a733a5bfSmrg_ACEOF 107016eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 107026eaa481cSmrgthen : 10703a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 107046eaa481cSmrgelse $as_nop 10705a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10706a733a5bfSmrgfi 107076eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10708a733a5bfSmrgfi 107096eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 107106eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10711a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10712a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10713a733a5bfSmrgfi 10714a733a5bfSmrg 10715a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10716a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10717a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718a733a5bfSmrg fi 10719a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107206eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 107216eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 107226eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 107236eaa481cSmrgthen : 107246eaa481cSmrg printf %s "(cached) " >&6 107256eaa481cSmrgelse $as_nop 10726a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727a733a5bfSmrg/* end confdefs.h. */ 10728a733a5bfSmrgint i; 10729a733a5bfSmrg_ACEOF 107306eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 107316eaa481cSmrgthen : 10732a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 107336eaa481cSmrgelse $as_nop 10734a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10735a733a5bfSmrgfi 107366eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10737a733a5bfSmrgfi 107386eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 107396eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10740a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10741a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10742a733a5bfSmrgfi 10743a733a5bfSmrg 10744a733a5bfSmrgfound="no" 10745a733a5bfSmrg 10746a733a5bfSmrg if test $found = "no" ; then 10747a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10748a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10749a733a5bfSmrg fi 10750a733a5bfSmrg 10751a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10752a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10753a733a5bfSmrg fi 10754a733a5bfSmrg 10755a733a5bfSmrg CFLAGS="$CFLAGS -pedantic" 10756a733a5bfSmrg 107576eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 107586eaa481cSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 10759a733a5bfSmrg cacheid=xorg_cv_cc_flag__pedantic 107606eaa481cSmrg if eval test \${$cacheid+y} 107616eaa481cSmrgthen : 107626eaa481cSmrg printf %s "(cached) " >&6 107636eaa481cSmrgelse $as_nop 10764a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765a733a5bfSmrg/* end confdefs.h. */ 10766a733a5bfSmrgint i; 10767a733a5bfSmrgint 107686eaa481cSmrgmain (void) 10769a733a5bfSmrg{ 10770a733a5bfSmrg 10771a733a5bfSmrg ; 10772a733a5bfSmrg return 0; 10773a733a5bfSmrg} 10774a733a5bfSmrg_ACEOF 107756eaa481cSmrgif ac_fn_c_try_link "$LINENO" 107766eaa481cSmrgthen : 10777a733a5bfSmrg eval $cacheid=yes 107786eaa481cSmrgelse $as_nop 10779a733a5bfSmrg eval $cacheid=no 10780a733a5bfSmrgfi 107816eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10782a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10783a733a5bfSmrgfi 10784a733a5bfSmrg 10785a733a5bfSmrg 10786a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10787a733a5bfSmrg 10788a733a5bfSmrg eval supported=\$$cacheid 107896eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 107906eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10791a733a5bfSmrg if test "$supported" = "yes" ; then 10792a733a5bfSmrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10793a733a5bfSmrg found="yes" 10794a733a5bfSmrg fi 10795a733a5bfSmrg fi 10796a733a5bfSmrg 10797a733a5bfSmrg 10798a733a5bfSmrg 10799a733a5bfSmrg 10800a733a5bfSmrg 10801a733a5bfSmrg 10802b7fb5eacSmrg 10803b7fb5eacSmrg 10804a733a5bfSmrg 10805a733a5bfSmrg 10806a733a5bfSmrg 10807a733a5bfSmrg 10808a733a5bfSmrg 10809a733a5bfSmrg 10810a733a5bfSmrg 10811a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10812a733a5bfSmrg 10813a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10814a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108156eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 108166eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 108176eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 108186eaa481cSmrgthen : 108196eaa481cSmrg printf %s "(cached) " >&6 108206eaa481cSmrgelse $as_nop 10821a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10822a733a5bfSmrg/* end confdefs.h. */ 10823a733a5bfSmrgint i; 10824a733a5bfSmrg_ACEOF 108256eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 108266eaa481cSmrgthen : 10827a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 108286eaa481cSmrgelse $as_nop 10829a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 10830a733a5bfSmrgfi 108316eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10832a733a5bfSmrgfi 108336eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 108346eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10835a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10836a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10837b7fb5eacSmrgfi 10838b7fb5eacSmrg 10839a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10840a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10841a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10842a733a5bfSmrg fi 10843a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108446eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108456eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108466eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108476eaa481cSmrgthen : 108486eaa481cSmrg printf %s "(cached) " >&6 108496eaa481cSmrgelse $as_nop 10850a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851a733a5bfSmrg/* end confdefs.h. */ 10852a733a5bfSmrgint i; 10853a733a5bfSmrg_ACEOF 108546eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 108556eaa481cSmrgthen : 10856a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 108576eaa481cSmrgelse $as_nop 10858a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 10859a733a5bfSmrgfi 108606eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10861a733a5bfSmrgfi 108626eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108636eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10864a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10865a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10866b7fb5eacSmrgfi 10867b7fb5eacSmrg 10868a733a5bfSmrgfound="no" 10869b7fb5eacSmrg 10870a733a5bfSmrg if test $found = "no" ; then 10871a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10872a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10873a733a5bfSmrg fi 10874a733a5bfSmrg 10875a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10876a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10877a733a5bfSmrg fi 10878a733a5bfSmrg 10879a733a5bfSmrg CFLAGS="$CFLAGS -Werror" 10880a733a5bfSmrg 108816eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 108826eaa481cSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 10883a733a5bfSmrg cacheid=xorg_cv_cc_flag__Werror 108846eaa481cSmrg if eval test \${$cacheid+y} 108856eaa481cSmrgthen : 108866eaa481cSmrg printf %s "(cached) " >&6 108876eaa481cSmrgelse $as_nop 10888a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889a733a5bfSmrg/* end confdefs.h. */ 10890a733a5bfSmrgint i; 10891a733a5bfSmrgint 108926eaa481cSmrgmain (void) 10893a733a5bfSmrg{ 10894ce62200cSmrg 10895a733a5bfSmrg ; 10896a733a5bfSmrg return 0; 10897a733a5bfSmrg} 10898a733a5bfSmrg_ACEOF 108996eaa481cSmrgif ac_fn_c_try_link "$LINENO" 109006eaa481cSmrgthen : 10901a733a5bfSmrg eval $cacheid=yes 109026eaa481cSmrgelse $as_nop 10903a733a5bfSmrg eval $cacheid=no 10904ce62200cSmrgfi 109056eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10906a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10907ce62200cSmrgfi 10908ce62200cSmrg 10909ce62200cSmrg 10910a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10911b7fb5eacSmrg 10912a733a5bfSmrg eval supported=\$$cacheid 109136eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109146eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10915a733a5bfSmrg if test "$supported" = "yes" ; then 10916a733a5bfSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10917a733a5bfSmrg found="yes" 10918a733a5bfSmrg fi 10919a733a5bfSmrg fi 10920b7fb5eacSmrg 10921a733a5bfSmrg if test $found = "no" ; then 10922a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10923a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10924a733a5bfSmrg fi 10925b7fb5eacSmrg 10926a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10927a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10928a733a5bfSmrg fi 10929a733a5bfSmrg 10930a733a5bfSmrg CFLAGS="$CFLAGS -errwarn" 10931a733a5bfSmrg 109326eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 109336eaa481cSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 10934a733a5bfSmrg cacheid=xorg_cv_cc_flag__errwarn 109356eaa481cSmrg if eval test \${$cacheid+y} 109366eaa481cSmrgthen : 109376eaa481cSmrg printf %s "(cached) " >&6 109386eaa481cSmrgelse $as_nop 10939a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10940a733a5bfSmrg/* end confdefs.h. */ 10941a733a5bfSmrgint i; 10942a733a5bfSmrgint 109436eaa481cSmrgmain (void) 10944a733a5bfSmrg{ 10945a733a5bfSmrg 10946a733a5bfSmrg ; 10947a733a5bfSmrg return 0; 10948a733a5bfSmrg} 10949a733a5bfSmrg_ACEOF 109506eaa481cSmrgif ac_fn_c_try_link "$LINENO" 109516eaa481cSmrgthen : 10952a733a5bfSmrg eval $cacheid=yes 109536eaa481cSmrgelse $as_nop 10954a733a5bfSmrg eval $cacheid=no 10955b7fb5eacSmrgfi 109566eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10957a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 10958b7fb5eacSmrgfi 10959b7fb5eacSmrg 10960b7fb5eacSmrg 10961a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10962b7fb5eacSmrg 10963a733a5bfSmrg eval supported=\$$cacheid 109646eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109656eaa481cSmrgprintf "%s\n" "$supported" >&6; } 10966a733a5bfSmrg if test "$supported" = "yes" ; then 10967a733a5bfSmrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10968a733a5bfSmrg found="yes" 10969a733a5bfSmrg fi 10970a733a5bfSmrg fi 10971b7fb5eacSmrg 10972b7fb5eacSmrg 10973b7fb5eacSmrg 10974a733a5bfSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10975a733a5bfSmrg# activate it with -Werror, so we add it here explicitly. 10976a733a5bfSmrg 10977a733a5bfSmrg 10978a733a5bfSmrg 10979a733a5bfSmrg 10980a733a5bfSmrg 10981a733a5bfSmrg 10982a733a5bfSmrg 10983a733a5bfSmrg 10984a733a5bfSmrg 10985a733a5bfSmrg 10986a733a5bfSmrg 10987a733a5bfSmrg 10988a733a5bfSmrg 10989a733a5bfSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10990a733a5bfSmrg 10991a733a5bfSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10992a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 109936eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 109946eaa481cSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 109956eaa481cSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 109966eaa481cSmrgthen : 109976eaa481cSmrg printf %s "(cached) " >&6 109986eaa481cSmrgelse $as_nop 10999a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000a733a5bfSmrg/* end confdefs.h. */ 11001a733a5bfSmrgint i; 11002a733a5bfSmrg_ACEOF 110036eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 110046eaa481cSmrgthen : 11005a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=yes 110066eaa481cSmrgelse $as_nop 11007a733a5bfSmrg xorg_cv_cc_flag_unknown_warning_option=no 11008a733a5bfSmrgfi 110096eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11010a733a5bfSmrgfi 110116eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 110126eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11013a733a5bfSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11014a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11015b7fb5eacSmrgfi 11016b7fb5eacSmrg 11017a733a5bfSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11018a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11019a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11020a733a5bfSmrg fi 11021a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 110226eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 110236eaa481cSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 110246eaa481cSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 110256eaa481cSmrgthen : 110266eaa481cSmrg printf %s "(cached) " >&6 110276eaa481cSmrgelse $as_nop 11028a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029a733a5bfSmrg/* end confdefs.h. */ 11030a733a5bfSmrgint i; 11031a733a5bfSmrg_ACEOF 110326eaa481cSmrgif ac_fn_c_try_compile "$LINENO" 110336eaa481cSmrgthen : 11034a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 110356eaa481cSmrgelse $as_nop 11036a733a5bfSmrg xorg_cv_cc_flag_unused_command_line_argument=no 11037a733a5bfSmrgfi 110386eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11039a733a5bfSmrgfi 110406eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 110416eaa481cSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11042a733a5bfSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11043a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11044b7fb5eacSmrgfi 11045b7fb5eacSmrg 11046a733a5bfSmrgfound="no" 11047a733a5bfSmrg 11048a733a5bfSmrg if test $found = "no" ; then 11049a733a5bfSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11050a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11051a733a5bfSmrg fi 11052a733a5bfSmrg 11053a733a5bfSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11054a733a5bfSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11055a733a5bfSmrg fi 11056a733a5bfSmrg 11057a733a5bfSmrg CFLAGS="$CFLAGS -Werror=attributes" 11058a733a5bfSmrg 110596eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 110606eaa481cSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 110611b983734Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 110626eaa481cSmrg if eval test \${$cacheid+y} 110636eaa481cSmrgthen : 110646eaa481cSmrg printf %s "(cached) " >&6 110656eaa481cSmrgelse $as_nop 11066a733a5bfSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067a733a5bfSmrg/* end confdefs.h. */ 11068a733a5bfSmrgint i; 11069a733a5bfSmrgint 110706eaa481cSmrgmain (void) 11071a733a5bfSmrg{ 11072a733a5bfSmrg 11073a733a5bfSmrg ; 11074a733a5bfSmrg return 0; 11075a733a5bfSmrg} 11076a733a5bfSmrg_ACEOF 110776eaa481cSmrgif ac_fn_c_try_link "$LINENO" 110786eaa481cSmrgthen : 11079a733a5bfSmrg eval $cacheid=yes 110806eaa481cSmrgelse $as_nop 11081a733a5bfSmrg eval $cacheid=no 11082a733a5bfSmrgfi 110836eaa481cSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11084a733a5bfSmrg conftest$ac_exeext conftest.$ac_ext 11085b7fb5eacSmrgfi 11086b7fb5eacSmrg 11087a733a5bfSmrg 11088a733a5bfSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11089a733a5bfSmrg 11090a733a5bfSmrg eval supported=\$$cacheid 110916eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 110926eaa481cSmrgprintf "%s\n" "$supported" >&6; } 11093a733a5bfSmrg if test "$supported" = "yes" ; then 11094a733a5bfSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11095a733a5bfSmrg found="yes" 11096a733a5bfSmrg fi 11097b7fb5eacSmrg fi 11098a733a5bfSmrg 11099a733a5bfSmrg 11100a733a5bfSmrg 11101a733a5bfSmrgif test "x$STRICT_COMPILE" = "xyes"; then 11102a733a5bfSmrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11103a733a5bfSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11104b7fb5eacSmrgfi 11105a733a5bfSmrg 11106a733a5bfSmrg 11107b7fb5eacSmrg 11108b7fb5eacSmrg 11109b7fb5eacSmrg 11110b7fb5eacSmrg 11111b7fb5eacSmrgcat >>confdefs.h <<_ACEOF 11112b7fb5eacSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11113b7fb5eacSmrg_ACEOF 11114b7fb5eacSmrg 11115b7fb5eacSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11116b7fb5eacSmrg if test "x$PVM" = "x"; then 11117b7fb5eacSmrg PVM="0" 11118b7fb5eacSmrg fi 11119b7fb5eacSmrg 111206eaa481cSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11121b7fb5eacSmrg 11122b7fb5eacSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11123b7fb5eacSmrg if test "x$PVP" = "x"; then 11124b7fb5eacSmrg PVP="0" 11125b7fb5eacSmrg fi 11126b7fb5eacSmrg 111276eaa481cSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11128b7fb5eacSmrg 11129b7fb5eacSmrg 11130b7fb5eacSmrg 111316eaa481cSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11132ce62200cSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 111336eaa481cSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 111346eaa481cSmrgtouch \$(top_srcdir)/ChangeLog; \ 111356eaa481cSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11136b7fb5eacSmrg 11137ce62200cSmrg 11138ce62200cSmrg 11139ce62200cSmrg 11140ce62200cSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11141ce62200cSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11142ce62200cSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 111436eaa481cSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 111446eaa481cSmrgtouch \$(top_srcdir)/INSTALL; \ 111456eaa481cSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11146ce62200cSmrg 11147b7fb5eacSmrg 11148b7fb5eacSmrg 11149b7fb5eacSmrg 11150b7fb5eacSmrg 11151b7fb5eacSmrg 111526eaa481cSmrgcase $host_os in 111536eaa481cSmrg solaris*) 111546eaa481cSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 111556eaa481cSmrg # check for a man page file found in later versions that use 111566eaa481cSmrg # traditional section numbers instead 111576eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 111586eaa481cSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 111596eaa481cSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 111606eaa481cSmrgthen : 111616eaa481cSmrg printf %s "(cached) " >&6 111626eaa481cSmrgelse $as_nop 111636eaa481cSmrg test "$cross_compiling" = yes && 111646eaa481cSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 111656eaa481cSmrgif test -r "/usr/share/man/man7/attributes.7"; then 111666eaa481cSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 111676eaa481cSmrgelse 111686eaa481cSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 111696eaa481cSmrgfi 111706eaa481cSmrgfi 111716eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 111726eaa481cSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 111736eaa481cSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 111746eaa481cSmrgthen : 111756eaa481cSmrg SYSV_MAN_SECTIONS=false 111766eaa481cSmrgelse $as_nop 111776eaa481cSmrg SYSV_MAN_SECTIONS=true 111786eaa481cSmrgfi 111796eaa481cSmrg 111806eaa481cSmrg ;; 111816eaa481cSmrg *) SYSV_MAN_SECTIONS=false ;; 111826eaa481cSmrgesac 111836eaa481cSmrg 11184b7fb5eacSmrgif test x$APP_MAN_SUFFIX = x ; then 11185b7fb5eacSmrg APP_MAN_SUFFIX=1 11186b7fb5eacSmrgfi 11187b7fb5eacSmrgif test x$APP_MAN_DIR = x ; then 11188b7fb5eacSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11189b7fb5eacSmrgfi 11190b7fb5eacSmrg 11191b7fb5eacSmrgif test x$LIB_MAN_SUFFIX = x ; then 11192b7fb5eacSmrg LIB_MAN_SUFFIX=3 11193b7fb5eacSmrgfi 11194b7fb5eacSmrgif test x$LIB_MAN_DIR = x ; then 11195b7fb5eacSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11196b7fb5eacSmrgfi 11197b7fb5eacSmrg 11198b7fb5eacSmrgif test x$FILE_MAN_SUFFIX = x ; then 111996eaa481cSmrg case $SYSV_MAN_SECTIONS in 112006eaa481cSmrg true) FILE_MAN_SUFFIX=4 ;; 11201423b239cSmrg *) FILE_MAN_SUFFIX=5 ;; 11202b7fb5eacSmrg esac 11203b7fb5eacSmrgfi 11204b7fb5eacSmrgif test x$FILE_MAN_DIR = x ; then 11205b7fb5eacSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11206b7fb5eacSmrgfi 11207b7fb5eacSmrg 11208b7fb5eacSmrgif test x$MISC_MAN_SUFFIX = x ; then 112096eaa481cSmrg case $SYSV_MAN_SECTIONS in 112106eaa481cSmrg true) MISC_MAN_SUFFIX=5 ;; 11211423b239cSmrg *) MISC_MAN_SUFFIX=7 ;; 11212b7fb5eacSmrg esac 11213b7fb5eacSmrgfi 11214b7fb5eacSmrgif test x$MISC_MAN_DIR = x ; then 11215b7fb5eacSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11216b7fb5eacSmrgfi 11217b7fb5eacSmrg 11218b7fb5eacSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 112196eaa481cSmrg case $SYSV_MAN_SECTIONS in 112206eaa481cSmrg true) DRIVER_MAN_SUFFIX=7 ;; 11221423b239cSmrg *) DRIVER_MAN_SUFFIX=4 ;; 11222b7fb5eacSmrg esac 11223b7fb5eacSmrgfi 11224b7fb5eacSmrgif test x$DRIVER_MAN_DIR = x ; then 11225b7fb5eacSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11226b7fb5eacSmrgfi 11227b7fb5eacSmrg 11228b7fb5eacSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 112296eaa481cSmrg case $SYSV_MAN_SECTIONS in 112306eaa481cSmrg true) ADMIN_MAN_SUFFIX=1m ;; 11231423b239cSmrg *) ADMIN_MAN_SUFFIX=8 ;; 11232b7fb5eacSmrg esac 11233b7fb5eacSmrgfi 11234b7fb5eacSmrgif test x$ADMIN_MAN_DIR = x ; then 11235b7fb5eacSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11236b7fb5eacSmrgfi 11237b7fb5eacSmrg 11238b7fb5eacSmrg 11239b7fb5eacSmrg 11240b7fb5eacSmrg 11241b7fb5eacSmrg 11242b7fb5eacSmrg 11243b7fb5eacSmrg 11244b7fb5eacSmrg 11245b7fb5eacSmrg 11246b7fb5eacSmrg 11247b7fb5eacSmrg 11248b7fb5eacSmrg 11249b7fb5eacSmrg 11250b7fb5eacSmrg 11251b7fb5eacSmrg 11252ce62200cSmrgXORG_MAN_PAGE="X Version 11" 11253b7fb5eacSmrg 11254ce62200cSmrgMAN_SUBSTS="\ 11255ce62200cSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11256ce62200cSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11257ce62200cSmrg -e 's|__xservername__|Xorg|g' \ 11258ce62200cSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 11259ce62200cSmrg -e 's|__projectroot__|\$(prefix)|g' \ 11260ce62200cSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11261ce62200cSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11262ce62200cSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11263ce62200cSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11264ce62200cSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11265ce62200cSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11266ce62200cSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11267b7fb5eacSmrg 11268b7fb5eacSmrg 11269b7fb5eacSmrg 11270ce62200cSmrg# Check whether --enable-silent-rules was given. 112716eaa481cSmrgif test ${enable_silent_rules+y} 112726eaa481cSmrgthen : 11273ce62200cSmrg enableval=$enable_silent_rules; 11274ce62200cSmrgfi 11275b7fb5eacSmrg 11276a733a5bfSmrgcase $enable_silent_rules in # ((( 11277a733a5bfSmrg yes) AM_DEFAULT_VERBOSITY=0;; 11278a733a5bfSmrg no) AM_DEFAULT_VERBOSITY=1;; 11279a733a5bfSmrg *) AM_DEFAULT_VERBOSITY=0;; 11280ce62200cSmrgesac 11281a733a5bfSmrgam_make=${MAKE-make} 112826eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 112836eaa481cSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 112846eaa481cSmrgif test ${am_cv_make_support_nested_variables+y} 112856eaa481cSmrgthen : 112866eaa481cSmrg printf %s "(cached) " >&6 112876eaa481cSmrgelse $as_nop 112886eaa481cSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 11289a733a5bfSmrgBAR0=false 11290a733a5bfSmrgBAR1=true 11291a733a5bfSmrgV=1 11292a733a5bfSmrgam__doit: 11293a733a5bfSmrg @$(TRUE) 11294a733a5bfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11295a733a5bfSmrg am_cv_make_support_nested_variables=yes 11296a733a5bfSmrgelse 11297a733a5bfSmrg am_cv_make_support_nested_variables=no 11298a733a5bfSmrgfi 11299a733a5bfSmrgfi 113006eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 113016eaa481cSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11302a733a5bfSmrgif test $am_cv_make_support_nested_variables = yes; then 11303a733a5bfSmrg AM_V='$(V)' 11304a733a5bfSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11305a733a5bfSmrgelse 11306a733a5bfSmrg AM_V=$AM_DEFAULT_VERBOSITY 11307a733a5bfSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11308a733a5bfSmrgfi 11309ce62200cSmrgAM_BACKSLASH='\' 11310b7fb5eacSmrg 11311b7fb5eacSmrg 113121a30de1fSmrg 113136eaa481cSmrgac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 113146eaa481cSmrgif test "x$ac_cv_func_strncasecmp" = xyes 113156eaa481cSmrgthen : 113166eaa481cSmrg printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 113176eaa481cSmrg 113186eaa481cSmrgfi 113196eaa481cSmrgac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 113206eaa481cSmrgif test "x$ac_cv_func_asprintf" = xyes 113216eaa481cSmrgthen : 113226eaa481cSmrg printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 113231a30de1fSmrg 113241a30de1fSmrgfi 113251a30de1fSmrg 113261a30de1fSmrg 113271a30de1fSmrg# Checks for pkg-config packages 113281a30de1fSmrg 11329b7fb5eacSmrgpkg_failed=no 113306eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5 113316eaa481cSmrgprintf %s "checking for XMODMAP... " >&6; } 11332b7fb5eacSmrg 11333b7fb5eacSmrgif test -n "$XMODMAP_CFLAGS"; then 11334b7fb5eacSmrg pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS" 11335b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then 11336b7fb5eacSmrg if test -n "$PKG_CONFIG" && \ 113376eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 113381b983734Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11339b7fb5eacSmrg ac_status=$? 113406eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11341ce62200cSmrg test $ac_status = 0; }; then 113421b983734Smrg pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 11343423b239cSmrg test "x$?" != "x0" && pkg_failed=yes 11344b7fb5eacSmrgelse 11345b7fb5eacSmrg pkg_failed=yes 113461a30de1fSmrgfi 11347b7fb5eacSmrg else 11348b7fb5eacSmrg pkg_failed=untried 113491a30de1fSmrgfi 11350b7fb5eacSmrgif test -n "$XMODMAP_LIBS"; then 11351b7fb5eacSmrg pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS" 11352b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then 11353b7fb5eacSmrg if test -n "$PKG_CONFIG" && \ 113546eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 113551b983734Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11356b7fb5eacSmrg ac_status=$? 113576eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11358ce62200cSmrg test $ac_status = 0; }; then 113591b983734Smrg pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 11360423b239cSmrg test "x$?" != "x0" && pkg_failed=yes 11361b7fb5eacSmrgelse 11362b7fb5eacSmrg pkg_failed=yes 113631a30de1fSmrgfi 11364b7fb5eacSmrg else 11365b7fb5eacSmrg pkg_failed=untried 113661a30de1fSmrgfi 113671a30de1fSmrg 11368b7fb5eacSmrg 11369b7fb5eacSmrg 11370b7fb5eacSmrgif test $pkg_failed = yes; then 113716eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 113726eaa481cSmrgprintf "%s\n" "no" >&6; } 11373b7fb5eacSmrg 11374b7fb5eacSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11375b7fb5eacSmrg _pkg_short_errors_supported=yes 11376b7fb5eacSmrgelse 11377b7fb5eacSmrg _pkg_short_errors_supported=no 113781a30de1fSmrgfi 11379b7fb5eacSmrg if test $_pkg_short_errors_supported = yes; then 11380423b239cSmrg XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11381b7fb5eacSmrg else 11382423b239cSmrg XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11383b7fb5eacSmrg fi 11384b7fb5eacSmrg # Put the nasty error message in config.log where it belongs 11385b7fb5eacSmrg echo "$XMODMAP_PKG_ERRORS" >&5 113861a30de1fSmrg 113871b983734Smrg as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 113881a30de1fSmrg 11389b7fb5eacSmrg$XMODMAP_PKG_ERRORS 113901a30de1fSmrg 11391b7fb5eacSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11392b7fb5eacSmrginstalled software in a non-standard prefix. 113931a30de1fSmrg 11394b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS 11395b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config. 11396423b239cSmrgSee the pkg-config man page for more details." "$LINENO" 5 11397b7fb5eacSmrgelif test $pkg_failed = untried; then 113986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 113996eaa481cSmrgprintf "%s\n" "no" >&6; } 114006eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 114016eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11402ce62200cSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11403b7fb5eacSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11404b7fb5eacSmrgpath to pkg-config. 114051a30de1fSmrg 11406b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS 11407b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config. 11408b7fb5eacSmrgSee the pkg-config man page for more details. 114091a30de1fSmrg 11410b7fb5eacSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11411ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; } 11412ce62200cSmrgelse 11413ce62200cSmrg XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS 11414ce62200cSmrg XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS 114156eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 114166eaa481cSmrgprintf "%s\n" "yes" >&6; } 11417423b239cSmrg 11418ce62200cSmrgfi 114191a30de1fSmrg 114201a30de1fSmrg 11421ce62200cSmrg 11422ce62200cSmrg 11423ce62200cSmrg 11424ce62200cSmrg 11425ce62200cSmrg# Check whether --with-lint was given. 114266eaa481cSmrgif test ${with_lint+y} 114276eaa481cSmrgthen : 11428ce62200cSmrg withval=$with_lint; use_lint=$withval 114296eaa481cSmrgelse $as_nop 11430ce62200cSmrg use_lint=no 11431ce62200cSmrgfi 11432ce62200cSmrg 11433ce62200cSmrg 11434ce62200cSmrg# Obtain platform specific info like program name and options 11435ce62200cSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11436ce62200cSmrgcase $host_os in 11437ce62200cSmrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11438ce62200cSmrg lint_name=splint 11439ce62200cSmrg lint_options="-badflag" 11440ce62200cSmrg ;; 11441ce62200cSmrg *freebsd* | *netbsd*) 11442ce62200cSmrg lint_name=lint 11443ce62200cSmrg lint_options="-u -b" 11444ce62200cSmrg ;; 11445ce62200cSmrg *solaris*) 11446ce62200cSmrg lint_name=lint 11447ce62200cSmrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11448ce62200cSmrg ;; 11449ce62200cSmrgesac 11450ce62200cSmrg 11451ce62200cSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 11452ce62200cSmrgif test "x$use_lint" = x"yes" ; then 11453ce62200cSmrg # Extract the first word of "$lint_name", so it can be a program name with args. 11454ce62200cSmrgset dummy $lint_name; ac_word=$2 114556eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 114566eaa481cSmrgprintf %s "checking for $ac_word... " >&6; } 114576eaa481cSmrgif test ${ac_cv_path_LINT+y} 114586eaa481cSmrgthen : 114596eaa481cSmrg printf %s "(cached) " >&6 114606eaa481cSmrgelse $as_nop 11461ce62200cSmrg case $LINT in 11462ce62200cSmrg [\\/]* | ?:[\\/]*) 11463ce62200cSmrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11464ce62200cSmrg ;; 11465ce62200cSmrg *) 11466ce62200cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11467ce62200cSmrgfor as_dir in $PATH 11468ce62200cSmrgdo 11469ce62200cSmrg IFS=$as_save_IFS 114706eaa481cSmrg case $as_dir in #((( 114716eaa481cSmrg '') as_dir=./ ;; 114726eaa481cSmrg */) ;; 114736eaa481cSmrg *) as_dir=$as_dir/ ;; 114746eaa481cSmrg esac 11475ce62200cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 114766eaa481cSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 114776eaa481cSmrg ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 114786eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11479ce62200cSmrg break 2 11480ce62200cSmrg fi 11481ce62200cSmrgdone 11482ce62200cSmrg done 11483ce62200cSmrgIFS=$as_save_IFS 11484ce62200cSmrg 11485ce62200cSmrg ;; 11486ce62200cSmrgesac 11487ce62200cSmrgfi 11488ce62200cSmrgLINT=$ac_cv_path_LINT 11489ce62200cSmrgif test -n "$LINT"; then 114906eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 114916eaa481cSmrgprintf "%s\n" "$LINT" >&6; } 11492b7fb5eacSmrgelse 114936eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 114946eaa481cSmrgprintf "%s\n" "no" >&6; } 11495b7fb5eacSmrgfi 114961a30de1fSmrg 114971a30de1fSmrg 11498ce62200cSmrg if test "x$LINT" = "x"; then 11499ce62200cSmrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11500ce62200cSmrg fi 11501ce62200cSmrgelif test "x$use_lint" = x"no" ; then 11502ce62200cSmrg if test "x$LINT" != "x"; then 115036eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 115046eaa481cSmrgprintf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11505ce62200cSmrg fi 115061a30de1fSmrgelse 11507ce62200cSmrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 115081a30de1fSmrgfi 115091a30de1fSmrg 11510ce62200cSmrg# User supplied flags override default flags 11511ce62200cSmrgif test "x$LINT_FLAGS" != "x"; then 11512ce62200cSmrg lint_options=$LINT_FLAGS 11513b7fb5eacSmrgfi 115141a30de1fSmrg 11515ce62200cSmrgLINT_FLAGS=$lint_options 115161a30de1fSmrg 11517ce62200cSmrg if test "x$LINT" != x; then 11518b7fb5eacSmrg LINT_TRUE= 11519b7fb5eacSmrg LINT_FALSE='#' 11520b7fb5eacSmrgelse 11521b7fb5eacSmrg LINT_TRUE='#' 11522b7fb5eacSmrg LINT_FALSE= 11523b7fb5eacSmrgfi 115241a30de1fSmrg 115251a30de1fSmrg 115261a30de1fSmrg 115271a30de1fSmrg 11528ce62200cSmrgac_config_files="$ac_config_files Makefile man/Makefile" 115291a30de1fSmrg 115301a30de1fSmrgcat >confcache <<\_ACEOF 115311a30de1fSmrg# This file is a shell script that caches the results of configure 115321a30de1fSmrg# tests run on this system so they can be shared between configure 115331a30de1fSmrg# scripts and configure runs, see configure's option --config-cache. 115341a30de1fSmrg# It is not useful on other systems. If it contains results you don't 115351a30de1fSmrg# want to keep, you may remove or edit it. 115361a30de1fSmrg# 115371a30de1fSmrg# config.status only pays attention to the cache file if you give it 115381a30de1fSmrg# the --recheck option to rerun configure. 115391a30de1fSmrg# 115401a30de1fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 115411a30de1fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 115421a30de1fSmrg# following values. 115431a30de1fSmrg 115441a30de1fSmrg_ACEOF 115451a30de1fSmrg 115461a30de1fSmrg# The following way of writing the cache mishandles newlines in values, 115471a30de1fSmrg# but we know of no workaround that is simple, portable, and efficient. 115481a30de1fSmrg# So, we kill variables containing newlines. 115491a30de1fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 115501a30de1fSmrg# and sets the high bit in the cache file unless we assign to the vars. 115511a30de1fSmrg( 115521a30de1fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 115531a30de1fSmrg eval ac_val=\$$ac_var 115541a30de1fSmrg case $ac_val in #( 115551a30de1fSmrg *${as_nl}*) 115561a30de1fSmrg case $ac_var in #( 115576eaa481cSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 115586eaa481cSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 115591a30de1fSmrg esac 115601a30de1fSmrg case $ac_var in #( 115611a30de1fSmrg _ | IFS | as_nl) ;; #( 11562b7fb5eacSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11563ce62200cSmrg *) { eval $ac_var=; unset $ac_var;} ;; 115641a30de1fSmrg esac ;; 115651a30de1fSmrg esac 115661a30de1fSmrg done 115671a30de1fSmrg 115681a30de1fSmrg (set) 2>&1 | 115691a30de1fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 115701a30de1fSmrg *${as_nl}ac_space=\ *) 11571ce62200cSmrg # `set' does not quote correctly, so add quotes: double-quote 11572ce62200cSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 115731a30de1fSmrg sed -n \ 115741a30de1fSmrg "s/'/'\\\\''/g; 115751a30de1fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 115761a30de1fSmrg ;; #( 115771a30de1fSmrg *) 115781a30de1fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 115791a30de1fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 115801a30de1fSmrg ;; 115811a30de1fSmrg esac | 115821a30de1fSmrg sort 115831a30de1fSmrg) | 115841a30de1fSmrg sed ' 115851a30de1fSmrg /^ac_cv_env_/b end 115861a30de1fSmrg t clear 115871a30de1fSmrg :clear 115886eaa481cSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 115891a30de1fSmrg t end 115901a30de1fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 115911a30de1fSmrg :end' >>confcache 115921a30de1fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 115931a30de1fSmrg if test -w "$cache_file"; then 11594ce62200cSmrg if test "x$cache_file" != "x/dev/null"; then 115956eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 115966eaa481cSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11597ce62200cSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 11598ce62200cSmrg cat confcache >"$cache_file" 11599ce62200cSmrg else 11600ce62200cSmrg case $cache_file in #( 11601ce62200cSmrg */* | ?:*) 11602ce62200cSmrg mv -f confcache "$cache_file"$$ && 11603ce62200cSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 11604ce62200cSmrg *) 11605ce62200cSmrg mv -f confcache "$cache_file" ;; 11606ce62200cSmrg esac 11607ce62200cSmrg fi 11608ce62200cSmrg fi 116091a30de1fSmrg else 116106eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 116116eaa481cSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 116121a30de1fSmrg fi 116131a30de1fSmrgfi 116141a30de1fSmrgrm -f confcache 116151a30de1fSmrg 116161a30de1fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 116171a30de1fSmrg# Let make expand exec_prefix. 116181a30de1fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 116191a30de1fSmrg 116201a30de1fSmrgDEFS=-DHAVE_CONFIG_H 116211a30de1fSmrg 116221a30de1fSmrgac_libobjs= 116231a30de1fSmrgac_ltlibobjs= 11624ce62200cSmrgU= 116251a30de1fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 116261a30de1fSmrg # 1. Remove the extension, and $U if already installed. 116271a30de1fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 116286eaa481cSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 116291a30de1fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 116301a30de1fSmrg # will be set to the directory where LIBOBJS objects are built. 11631ce62200cSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11632ce62200cSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 116331a30de1fSmrgdone 116341a30de1fSmrgLIBOBJS=$ac_libobjs 116351a30de1fSmrg 116361a30de1fSmrgLTLIBOBJS=$ac_ltlibobjs 116371a30de1fSmrg 116381a30de1fSmrg 116396eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 116406eaa481cSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 11641a733a5bfSmrg if test -n "$am_sleep_pid"; then 11642a733a5bfSmrg # Hide warnings about reused PIDs. 11643a733a5bfSmrg wait $am_sleep_pid 2>/dev/null 11644a733a5bfSmrg fi 116456eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 116466eaa481cSmrgprintf "%s\n" "done" >&6; } 11647a733a5bfSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11648a733a5bfSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11649a733a5bfSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11650a733a5bfSmrgfi 11651a733a5bfSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11652a733a5bfSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11653a733a5bfSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11654a733a5bfSmrgfi 11655b7fb5eacSmrg if test -n "$EXEEXT"; then 11656b7fb5eacSmrg am__EXEEXT_TRUE= 11657b7fb5eacSmrg am__EXEEXT_FALSE='#' 11658b7fb5eacSmrgelse 11659b7fb5eacSmrg am__EXEEXT_TRUE='#' 11660b7fb5eacSmrg am__EXEEXT_FALSE= 11661b7fb5eacSmrgfi 11662b7fb5eacSmrg 116631a30de1fSmrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11664ce62200cSmrg as_fn_error $? "conditional \"LINT\" was never defined. 11665ce62200cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 116661a30de1fSmrgfi 116671a30de1fSmrg 11668ce62200cSmrg: "${CONFIG_STATUS=./config.status}" 11669b7fb5eacSmrgac_write_fail=0 116701a30de1fSmrgac_clean_files_save=$ac_clean_files 116711a30de1fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 116726eaa481cSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 116736eaa481cSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11674ce62200cSmrgas_write_fail=0 11675ce62200cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 116761a30de1fSmrg#! $SHELL 116771a30de1fSmrg# Generated by $as_me. 116781a30de1fSmrg# Run this file to recreate the current configuration. 116791a30de1fSmrg# Compiler output produced by configure, useful for debugging 116801a30de1fSmrg# configure, is in config.log if it exists. 116811a30de1fSmrg 116821a30de1fSmrgdebug=false 116831a30de1fSmrgac_cs_recheck=false 116841a30de1fSmrgac_cs_silent=false 116851a30de1fSmrg 11686ce62200cSmrgSHELL=\${CONFIG_SHELL-$SHELL} 11687ce62200cSmrgexport SHELL 11688ce62200cSmrg_ASEOF 11689ce62200cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11690ce62200cSmrg## -------------------- ## 11691ce62200cSmrg## M4sh Initialization. ## 11692ce62200cSmrg## -------------------- ## 116931a30de1fSmrg 116941a30de1fSmrg# Be more Bourne compatible 116951a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh 116966eaa481cSmrgas_nop=: 116976eaa481cSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 116986eaa481cSmrgthen : 116991a30de1fSmrg emulate sh 117001a30de1fSmrg NULLCMD=: 11701b7fb5eacSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 117021a30de1fSmrg # is contrary to our usage. Disable this feature. 117031a30de1fSmrg alias -g '${1+"$@"}'='"$@"' 117041a30de1fSmrg setopt NO_GLOB_SUBST 117056eaa481cSmrgelse $as_nop 11706ce62200cSmrg case `(set -o) 2>/dev/null` in #( 11707ce62200cSmrg *posix*) : 11708ce62200cSmrg set -o posix ;; #( 11709ce62200cSmrg *) : 11710ce62200cSmrg ;; 117111a30de1fSmrgesac 117121a30de1fSmrgfi 117131a30de1fSmrg 117141a30de1fSmrg 117156eaa481cSmrg 117166eaa481cSmrg# Reset variables that may have inherited troublesome values from 117176eaa481cSmrg# the environment. 117186eaa481cSmrg 117196eaa481cSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 117206eaa481cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 117216eaa481cSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 117226eaa481cSmrg# Quoting is to prevent editors from complaining about space-tab. 11723b7fb5eacSmrgas_nl=' 11724b7fb5eacSmrg' 11725b7fb5eacSmrgexport as_nl 117266eaa481cSmrgIFS=" "" $as_nl" 117276eaa481cSmrg 117286eaa481cSmrgPS1='$ ' 117296eaa481cSmrgPS2='> ' 117306eaa481cSmrgPS4='+ ' 117316eaa481cSmrg 117326eaa481cSmrg# Ensure predictable behavior from utilities with locale-dependent output. 117336eaa481cSmrgLC_ALL=C 117346eaa481cSmrgexport LC_ALL 117356eaa481cSmrgLANGUAGE=C 117366eaa481cSmrgexport LANGUAGE 117376eaa481cSmrg 117386eaa481cSmrg# We cannot yet rely on "unset" to work, but we need these variables 117396eaa481cSmrg# to be unset--not just set to an empty or harmless value--now, to 117406eaa481cSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 117416eaa481cSmrg# also avoids known problems related to "unset" and subshell syntax 117426eaa481cSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 117436eaa481cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 117446eaa481cSmrgdo eval test \${$as_var+y} \ 117456eaa481cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 117466eaa481cSmrgdone 117476eaa481cSmrg 117486eaa481cSmrg# Ensure that fds 0, 1, and 2 are open. 117496eaa481cSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 117506eaa481cSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 117516eaa481cSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11752b7fb5eacSmrg 11753b7fb5eacSmrg# The user is always right. 117546eaa481cSmrgif ${PATH_SEPARATOR+false} :; then 11755b7fb5eacSmrg PATH_SEPARATOR=: 11756b7fb5eacSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11757b7fb5eacSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11758b7fb5eacSmrg PATH_SEPARATOR=';' 11759b7fb5eacSmrg } 117601a30de1fSmrgfi 117611a30de1fSmrg 117621a30de1fSmrg 117631a30de1fSmrg# Find who we are. Look in the path if we contain no directory separator. 11764ce62200cSmrgas_myself= 11765ce62200cSmrgcase $0 in #(( 117661a30de1fSmrg *[\\/]* ) as_myself=$0 ;; 117671a30de1fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 117681a30de1fSmrgfor as_dir in $PATH 117691a30de1fSmrgdo 117701a30de1fSmrg IFS=$as_save_IFS 117716eaa481cSmrg case $as_dir in #((( 117726eaa481cSmrg '') as_dir=./ ;; 117736eaa481cSmrg */) ;; 117746eaa481cSmrg *) as_dir=$as_dir/ ;; 117756eaa481cSmrg esac 117766eaa481cSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11777ce62200cSmrg done 117781a30de1fSmrgIFS=$as_save_IFS 117791a30de1fSmrg 117801a30de1fSmrg ;; 117811a30de1fSmrgesac 117821a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 117831a30de1fSmrg# in which case we are not to be found in the path. 117841a30de1fSmrgif test "x$as_myself" = x; then 117851a30de1fSmrg as_myself=$0 117861a30de1fSmrgfi 117871a30de1fSmrgif test ! -f "$as_myself"; then 117886eaa481cSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11789ce62200cSmrg exit 1 117901a30de1fSmrgfi 117911a30de1fSmrg 11792ce62200cSmrg 11793ce62200cSmrg 11794ce62200cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 11795ce62200cSmrg# ---------------------------------------- 11796ce62200cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11797ce62200cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11798ce62200cSmrg# script with STATUS, using 1 if that was 0. 11799ce62200cSmrgas_fn_error () 11800ce62200cSmrg{ 11801ce62200cSmrg as_status=$1; test $as_status -eq 0 && as_status=1 11802ce62200cSmrg if test "$4"; then 11803ce62200cSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 118046eaa481cSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11805ce62200cSmrg fi 118066eaa481cSmrg printf "%s\n" "$as_me: error: $2" >&2 11807ce62200cSmrg as_fn_exit $as_status 11808ce62200cSmrg} # as_fn_error 11809ce62200cSmrg 11810ce62200cSmrg 118116eaa481cSmrg 11812ce62200cSmrg# as_fn_set_status STATUS 11813ce62200cSmrg# ----------------------- 11814ce62200cSmrg# Set $? to STATUS, without forking. 11815ce62200cSmrgas_fn_set_status () 11816ce62200cSmrg{ 11817ce62200cSmrg return $1 11818ce62200cSmrg} # as_fn_set_status 11819ce62200cSmrg 11820ce62200cSmrg# as_fn_exit STATUS 11821ce62200cSmrg# ----------------- 11822ce62200cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11823ce62200cSmrgas_fn_exit () 11824ce62200cSmrg{ 11825ce62200cSmrg set +e 11826ce62200cSmrg as_fn_set_status $1 11827ce62200cSmrg exit $1 11828ce62200cSmrg} # as_fn_exit 11829ce62200cSmrg 11830ce62200cSmrg# as_fn_unset VAR 11831ce62200cSmrg# --------------- 11832ce62200cSmrg# Portably unset VAR. 11833ce62200cSmrgas_fn_unset () 11834ce62200cSmrg{ 11835ce62200cSmrg { eval $1=; unset $1;} 11836ce62200cSmrg} 11837ce62200cSmrgas_unset=as_fn_unset 118386eaa481cSmrg 11839ce62200cSmrg# as_fn_append VAR VALUE 11840ce62200cSmrg# ---------------------- 11841ce62200cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11842ce62200cSmrg# advantage of any shell optimizations that allow amortized linear growth over 11843ce62200cSmrg# repeated appends, instead of the typical quadratic growth present in naive 11844ce62200cSmrg# implementations. 118456eaa481cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 118466eaa481cSmrgthen : 11847ce62200cSmrg eval 'as_fn_append () 11848ce62200cSmrg { 11849ce62200cSmrg eval $1+=\$2 11850ce62200cSmrg }' 118516eaa481cSmrgelse $as_nop 11852ce62200cSmrg as_fn_append () 11853ce62200cSmrg { 11854ce62200cSmrg eval $1=\$$1\$2 11855ce62200cSmrg } 11856ce62200cSmrgfi # as_fn_append 11857ce62200cSmrg 11858ce62200cSmrg# as_fn_arith ARG... 11859ce62200cSmrg# ------------------ 11860ce62200cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11861ce62200cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11862ce62200cSmrg# must be portable across $(()) and expr. 118636eaa481cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 118646eaa481cSmrgthen : 11865ce62200cSmrg eval 'as_fn_arith () 11866ce62200cSmrg { 11867ce62200cSmrg as_val=$(( $* )) 11868ce62200cSmrg }' 118696eaa481cSmrgelse $as_nop 11870ce62200cSmrg as_fn_arith () 11871ce62200cSmrg { 11872ce62200cSmrg as_val=`expr "$@" || test $? -eq 1` 11873ce62200cSmrg } 11874ce62200cSmrgfi # as_fn_arith 11875ce62200cSmrg 11876ce62200cSmrg 118771a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 118781a30de1fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 118791a30de1fSmrg as_expr=expr 118801a30de1fSmrgelse 118811a30de1fSmrg as_expr=false 118821a30de1fSmrgfi 118831a30de1fSmrg 118841a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 118851a30de1fSmrg as_basename=basename 118861a30de1fSmrgelse 118871a30de1fSmrg as_basename=false 118881a30de1fSmrgfi 118891a30de1fSmrg 11890ce62200cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11891ce62200cSmrg as_dirname=dirname 11892ce62200cSmrgelse 11893ce62200cSmrg as_dirname=false 11894ce62200cSmrgfi 118951a30de1fSmrg 118961a30de1fSmrgas_me=`$as_basename -- "$0" || 118971a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 118981a30de1fSmrg X"$0" : 'X\(//\)$' \| \ 118991a30de1fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 119006eaa481cSmrgprintf "%s\n" X/"$0" | 119011a30de1fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 119021a30de1fSmrg s//\1/ 119031a30de1fSmrg q 119041a30de1fSmrg } 119051a30de1fSmrg /^X\/\(\/\/\)$/{ 119061a30de1fSmrg s//\1/ 119071a30de1fSmrg q 119081a30de1fSmrg } 119091a30de1fSmrg /^X\/\(\/\).*/{ 119101a30de1fSmrg s//\1/ 119111a30de1fSmrg q 119121a30de1fSmrg } 119131a30de1fSmrg s/.*/./; q'` 119141a30de1fSmrg 11915ce62200cSmrg# Avoid depending upon Character Ranges. 11916ce62200cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11917ce62200cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11918ce62200cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11919ce62200cSmrgas_cr_digits='0123456789' 11920ce62200cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 119211a30de1fSmrg 119226eaa481cSmrg 119236eaa481cSmrg# Determine whether it's possible to make 'echo' print without a newline. 119246eaa481cSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 119256eaa481cSmrg# for compatibility with existing Makefiles. 119261a30de1fSmrgECHO_C= ECHO_N= ECHO_T= 11927ce62200cSmrgcase `echo -n x` in #((((( 119281a30de1fSmrg-n*) 11929ce62200cSmrg case `echo 'xy\c'` in 119301a30de1fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11931ce62200cSmrg xy) ECHO_C='\c';; 11932ce62200cSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11933ce62200cSmrg ECHO_T=' ';; 119341a30de1fSmrg esac;; 119351a30de1fSmrg*) 119361a30de1fSmrg ECHO_N='-n';; 119371a30de1fSmrgesac 119381a30de1fSmrg 119396eaa481cSmrg# For backward compatibility with old third-party macros, we provide 119406eaa481cSmrg# the shell variables $as_echo and $as_echo_n. New code should use 119416eaa481cSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 119426eaa481cSmrgas_echo='printf %s\n' 119436eaa481cSmrgas_echo_n='printf %s' 119446eaa481cSmrg 119451a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.file 119461a30de1fSmrgif test -d conf$$.dir; then 119471a30de1fSmrg rm -f conf$$.dir/conf$$.file 119481a30de1fSmrgelse 119491a30de1fSmrg rm -f conf$$.dir 11950b7fb5eacSmrg mkdir conf$$.dir 2>/dev/null 11951b7fb5eacSmrgfi 11952b7fb5eacSmrgif (echo >conf$$.file) 2>/dev/null; then 11953b7fb5eacSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11954b7fb5eacSmrg as_ln_s='ln -s' 11955b7fb5eacSmrg # ... but there are two gotchas: 11956b7fb5eacSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11957b7fb5eacSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 119581b983734Smrg # In both cases, we have to default to `cp -pR'. 11959b7fb5eacSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 119601b983734Smrg as_ln_s='cp -pR' 11961b7fb5eacSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11962b7fb5eacSmrg as_ln_s=ln 11963b7fb5eacSmrg else 119641b983734Smrg as_ln_s='cp -pR' 11965b7fb5eacSmrg fi 119661a30de1fSmrgelse 119671b983734Smrg as_ln_s='cp -pR' 119681a30de1fSmrgfi 119691a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 119701a30de1fSmrgrmdir conf$$.dir 2>/dev/null 119711a30de1fSmrg 11972ce62200cSmrg 11973ce62200cSmrg# as_fn_mkdir_p 11974ce62200cSmrg# ------------- 11975ce62200cSmrg# Create "$as_dir" as a directory, including parents if necessary. 11976ce62200cSmrgas_fn_mkdir_p () 11977ce62200cSmrg{ 11978ce62200cSmrg 11979ce62200cSmrg case $as_dir in #( 11980ce62200cSmrg -*) as_dir=./$as_dir;; 11981ce62200cSmrg esac 11982ce62200cSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11983ce62200cSmrg as_dirs= 11984ce62200cSmrg while :; do 11985ce62200cSmrg case $as_dir in #( 119866eaa481cSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11987ce62200cSmrg *) as_qdir=$as_dir;; 11988ce62200cSmrg esac 11989ce62200cSmrg as_dirs="'$as_qdir' $as_dirs" 11990ce62200cSmrg as_dir=`$as_dirname -- "$as_dir" || 11991ce62200cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11992ce62200cSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11993ce62200cSmrg X"$as_dir" : 'X\(//\)$' \| \ 11994ce62200cSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 119956eaa481cSmrgprintf "%s\n" X"$as_dir" | 11996ce62200cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11997ce62200cSmrg s//\1/ 11998ce62200cSmrg q 11999ce62200cSmrg } 12000ce62200cSmrg /^X\(\/\/\)[^/].*/{ 12001ce62200cSmrg s//\1/ 12002ce62200cSmrg q 12003ce62200cSmrg } 12004ce62200cSmrg /^X\(\/\/\)$/{ 12005ce62200cSmrg s//\1/ 12006ce62200cSmrg q 12007ce62200cSmrg } 12008ce62200cSmrg /^X\(\/\).*/{ 12009ce62200cSmrg s//\1/ 12010ce62200cSmrg q 12011ce62200cSmrg } 12012ce62200cSmrg s/.*/./; q'` 12013ce62200cSmrg test -d "$as_dir" && break 12014ce62200cSmrg done 12015ce62200cSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 12016ce62200cSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12017ce62200cSmrg 12018ce62200cSmrg 12019ce62200cSmrg} # as_fn_mkdir_p 120201a30de1fSmrgif mkdir -p . 2>/dev/null; then 12021ce62200cSmrg as_mkdir_p='mkdir -p "$as_dir"' 120221a30de1fSmrgelse 120231a30de1fSmrg test -d ./-p && rmdir ./-p 120241a30de1fSmrg as_mkdir_p=false 120251a30de1fSmrgfi 120261a30de1fSmrg 120271b983734Smrg 120281b983734Smrg# as_fn_executable_p FILE 120291b983734Smrg# ----------------------- 120301b983734Smrg# Test if FILE is an executable regular file. 120311b983734Smrgas_fn_executable_p () 120321b983734Smrg{ 120331b983734Smrg test -f "$1" && test -x "$1" 120341b983734Smrg} # as_fn_executable_p 120351b983734Smrgas_test_x='test -x' 120361b983734Smrgas_executable_p=as_fn_executable_p 120371a30de1fSmrg 120381a30de1fSmrg# Sed expression to map a string onto a valid CPP name. 120391a30de1fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 120401a30de1fSmrg 120411a30de1fSmrg# Sed expression to map a string onto a valid variable name. 120421a30de1fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 120431a30de1fSmrg 120441a30de1fSmrg 120451a30de1fSmrgexec 6>&1 12046ce62200cSmrg## ----------------------------------- ## 12047ce62200cSmrg## Main body of $CONFIG_STATUS script. ## 12048ce62200cSmrg## ----------------------------------- ## 12049ce62200cSmrg_ASEOF 12050ce62200cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 120511a30de1fSmrg 12052ce62200cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12053ce62200cSmrg# Save the log message, to keep $0 and so on meaningful, and to 120541a30de1fSmrg# report actual input values of CONFIG_FILES etc. instead of their 120551a30de1fSmrg# values after options handling. 120561a30de1fSmrgac_log=" 120576eaa481cSmrgThis file was extended by xmodmap $as_me 1.0.11, which was 120586eaa481cSmrggenerated by GNU Autoconf 2.71. Invocation command line was 120591a30de1fSmrg 120601a30de1fSmrg CONFIG_FILES = $CONFIG_FILES 120611a30de1fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 120621a30de1fSmrg CONFIG_LINKS = $CONFIG_LINKS 120631a30de1fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 120641a30de1fSmrg $ $0 $@ 120651a30de1fSmrg 120661a30de1fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 120671a30de1fSmrg" 120681a30de1fSmrg 120691a30de1fSmrg_ACEOF 120701a30de1fSmrg 12071b7fb5eacSmrgcase $ac_config_files in *" 12072b7fb5eacSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 12073b7fb5eacSmrgesac 12074b7fb5eacSmrg 12075b7fb5eacSmrgcase $ac_config_headers in *" 12076b7fb5eacSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12077b7fb5eacSmrgesac 12078b7fb5eacSmrg 12079b7fb5eacSmrg 12080b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120811a30de1fSmrg# Files that config.status was made for. 120821a30de1fSmrgconfig_files="$ac_config_files" 120831a30de1fSmrgconfig_headers="$ac_config_headers" 120841a30de1fSmrgconfig_commands="$ac_config_commands" 120851a30de1fSmrg 120861a30de1fSmrg_ACEOF 120871a30de1fSmrg 12088b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120891a30de1fSmrgac_cs_usage="\ 12090ce62200cSmrg\`$as_me' instantiates files and other configuration actions 12091ce62200cSmrgfrom templates according to the current configuration. Unless the files 12092ce62200cSmrgand actions are specified as TAGs, all are instantiated by default. 120931a30de1fSmrg 12094ce62200cSmrgUsage: $0 [OPTION]... [TAG]... 120951a30de1fSmrg 120961a30de1fSmrg -h, --help print this help, then exit 120971a30de1fSmrg -V, --version print version number and configuration settings, then exit 12098ce62200cSmrg --config print configuration, then exit 12099b7fb5eacSmrg -q, --quiet, --silent 12100b7fb5eacSmrg do not print progress messages 121011a30de1fSmrg -d, --debug don't remove temporary files 121021a30de1fSmrg --recheck update $as_me by reconfiguring in the same conditions 12103b7fb5eacSmrg --file=FILE[:TEMPLATE] 12104b7fb5eacSmrg instantiate the configuration file FILE 12105b7fb5eacSmrg --header=FILE[:TEMPLATE] 12106b7fb5eacSmrg instantiate the configuration header FILE 121071a30de1fSmrg 121081a30de1fSmrgConfiguration files: 121091a30de1fSmrg$config_files 121101a30de1fSmrg 121111a30de1fSmrgConfiguration headers: 121121a30de1fSmrg$config_headers 121131a30de1fSmrg 121141a30de1fSmrgConfiguration commands: 121151a30de1fSmrg$config_commands 121161a30de1fSmrg 12117423b239cSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xmodmap/issues>." 121181a30de1fSmrg 121191a30de1fSmrg_ACEOF 121206eaa481cSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 121216eaa481cSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12122b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121236eaa481cSmrgac_cs_config='$ac_cs_config_escaped' 121241a30de1fSmrgac_cs_version="\\ 121256eaa481cSmrgxmodmap config.status 1.0.11 121266eaa481cSmrgconfigured by $0, generated by GNU Autoconf 2.71, 12127ce62200cSmrg with options \\"\$ac_cs_config\\" 121281a30de1fSmrg 121296eaa481cSmrgCopyright (C) 2021 Free Software Foundation, Inc. 121301a30de1fSmrgThis config.status script is free software; the Free Software Foundation 121311a30de1fSmrggives unlimited permission to copy, distribute and modify it." 121321a30de1fSmrg 121331a30de1fSmrgac_pwd='$ac_pwd' 121341a30de1fSmrgsrcdir='$srcdir' 121351a30de1fSmrgINSTALL='$INSTALL' 121361a30de1fSmrgMKDIR_P='$MKDIR_P' 12137b7fb5eacSmrgAWK='$AWK' 12138b7fb5eacSmrgtest -n "\$AWK" || AWK=awk 121391a30de1fSmrg_ACEOF 121401a30de1fSmrg 12141b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12142b7fb5eacSmrg# The default lists apply if the user does not specify any file. 121431a30de1fSmrgac_need_defaults=: 121441a30de1fSmrgwhile test $# != 0 121451a30de1fSmrgdo 121461a30de1fSmrg case $1 in 12147ce62200cSmrg --*=?*) 121481a30de1fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 121491a30de1fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 121501a30de1fSmrg ac_shift=: 121511a30de1fSmrg ;; 12152ce62200cSmrg --*=) 12153ce62200cSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12154ce62200cSmrg ac_optarg= 12155ce62200cSmrg ac_shift=: 12156ce62200cSmrg ;; 121571a30de1fSmrg *) 121581a30de1fSmrg ac_option=$1 121591a30de1fSmrg ac_optarg=$2 121601a30de1fSmrg ac_shift=shift 121611a30de1fSmrg ;; 121621a30de1fSmrg esac 121631a30de1fSmrg 121641a30de1fSmrg case $ac_option in 121651a30de1fSmrg # Handling of the options. 121661a30de1fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 121671a30de1fSmrg ac_cs_recheck=: ;; 121681a30de1fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 121696eaa481cSmrg printf "%s\n" "$ac_cs_version"; exit ;; 12170ce62200cSmrg --config | --confi | --conf | --con | --co | --c ) 121716eaa481cSmrg printf "%s\n" "$ac_cs_config"; exit ;; 121721a30de1fSmrg --debug | --debu | --deb | --de | --d | -d ) 121731a30de1fSmrg debug=: ;; 121741a30de1fSmrg --file | --fil | --fi | --f ) 121751a30de1fSmrg $ac_shift 12176b7fb5eacSmrg case $ac_optarg in 121776eaa481cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12178ce62200cSmrg '') as_fn_error $? "missing file argument" ;; 12179b7fb5eacSmrg esac 12180ce62200cSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 121811a30de1fSmrg ac_need_defaults=false;; 121821a30de1fSmrg --header | --heade | --head | --hea ) 121831a30de1fSmrg $ac_shift 12184b7fb5eacSmrg case $ac_optarg in 121856eaa481cSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12186b7fb5eacSmrg esac 12187ce62200cSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 121881a30de1fSmrg ac_need_defaults=false;; 121891a30de1fSmrg --he | --h) 121901a30de1fSmrg # Conflict between --help and --header 12191ce62200cSmrg as_fn_error $? "ambiguous option: \`$1' 12192ce62200cSmrgTry \`$0 --help' for more information.";; 121931a30de1fSmrg --help | --hel | -h ) 121946eaa481cSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 121951a30de1fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 121961a30de1fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 121971a30de1fSmrg ac_cs_silent=: ;; 121981a30de1fSmrg 121991a30de1fSmrg # This is an error. 12200ce62200cSmrg -*) as_fn_error $? "unrecognized option: \`$1' 12201ce62200cSmrgTry \`$0 --help' for more information." ;; 122021a30de1fSmrg 12203ce62200cSmrg *) as_fn_append ac_config_targets " $1" 122041a30de1fSmrg ac_need_defaults=false ;; 122051a30de1fSmrg 122061a30de1fSmrg esac 122071a30de1fSmrg shift 122081a30de1fSmrgdone 122091a30de1fSmrg 122101a30de1fSmrgac_configure_extra_args= 122111a30de1fSmrg 122121a30de1fSmrgif $ac_cs_silent; then 122131a30de1fSmrg exec 6>/dev/null 122141a30de1fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 122151a30de1fSmrgfi 122161a30de1fSmrg 122171a30de1fSmrg_ACEOF 12218b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122191a30de1fSmrgif \$ac_cs_recheck; then 122201b983734Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12221b7fb5eacSmrg shift 122226eaa481cSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12223b7fb5eacSmrg CONFIG_SHELL='$SHELL' 122241a30de1fSmrg export CONFIG_SHELL 12225b7fb5eacSmrg exec "\$@" 122261a30de1fSmrgfi 122271a30de1fSmrg 122281a30de1fSmrg_ACEOF 12229b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122301a30de1fSmrgexec 5>>config.log 122311a30de1fSmrg{ 122321a30de1fSmrg echo 122331a30de1fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 122341a30de1fSmrg## Running $as_me. ## 122351a30de1fSmrg_ASBOX 122366eaa481cSmrg printf "%s\n" "$ac_log" 122371a30de1fSmrg} >&5 122381a30de1fSmrg 122391a30de1fSmrg_ACEOF 12240b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122411a30de1fSmrg# 122421a30de1fSmrg# INIT-COMMANDS 122431a30de1fSmrg# 122446eaa481cSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 122451a30de1fSmrg 122461a30de1fSmrg_ACEOF 122471a30de1fSmrg 12248b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122491a30de1fSmrg 122501a30de1fSmrg# Handling of arguments. 122511a30de1fSmrgfor ac_config_target in $ac_config_targets 122521a30de1fSmrgdo 122531a30de1fSmrg case $ac_config_target in 12254ce62200cSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12255a733a5bfSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 122561a30de1fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12257ce62200cSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 122581a30de1fSmrg 12259ce62200cSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 122601a30de1fSmrg esac 122611a30de1fSmrgdone 122621a30de1fSmrg 122631a30de1fSmrg 122641a30de1fSmrg# If the user did not use the arguments to specify the items to instantiate, 122651a30de1fSmrg# then the envvar interface is used. Set only those that are not. 122661a30de1fSmrg# We use the long form for the default assignment because of an extremely 122671a30de1fSmrg# bizarre bug on SunOS 4.1.3. 122681a30de1fSmrgif $ac_need_defaults; then 122696eaa481cSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 122706eaa481cSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 122716eaa481cSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 122721a30de1fSmrgfi 122731a30de1fSmrg 122741a30de1fSmrg# Have a temporary directory for convenience. Make it in the build tree 122751a30de1fSmrg# simply because there is no reason against having it here, and in addition, 122761a30de1fSmrg# creating and moving files from /tmp can sometimes cause problems. 122771a30de1fSmrg# Hook for its removal unless debugging. 122781a30de1fSmrg# Note that there is a small window in which the directory will not be cleaned: 122791a30de1fSmrg# after its creation but before its name has been assigned to `$tmp'. 122801a30de1fSmrg$debug || 122811a30de1fSmrg{ 12282ce62200cSmrg tmp= ac_tmp= 122831a30de1fSmrg trap 'exit_status=$? 12284ce62200cSmrg : "${ac_tmp:=$tmp}" 12285ce62200cSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 122861a30de1fSmrg' 0 12287ce62200cSmrg trap 'as_fn_exit 1' 1 2 13 15 122881a30de1fSmrg} 122891a30de1fSmrg# Create a (secure) tmp directory for tmp files. 122901a30de1fSmrg 122911a30de1fSmrg{ 122921a30de1fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12293ce62200cSmrg test -d "$tmp" 122941a30de1fSmrg} || 122951a30de1fSmrg{ 122961a30de1fSmrg tmp=./conf$$-$RANDOM 122971a30de1fSmrg (umask 077 && mkdir "$tmp") 12298ce62200cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12299ce62200cSmrgac_tmp=$tmp 123001a30de1fSmrg 12301b7fb5eacSmrg# Set up the scripts for CONFIG_FILES section. 12302b7fb5eacSmrg# No need to generate them if there are no CONFIG_FILES. 12303b7fb5eacSmrg# This happens for instance with `./config.status config.h'. 123041a30de1fSmrgif test -n "$CONFIG_FILES"; then 123051a30de1fSmrg 123061a30de1fSmrg 12307ce62200cSmrgac_cr=`echo X | tr X '\015'` 12308ce62200cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 12309ce62200cSmrg# But we know of no other shell where ac_cr would be empty at this 12310ce62200cSmrg# point, so we can use a bashism as a fallback. 12311ce62200cSmrgif test "x$ac_cr" = x; then 12312ce62200cSmrg eval ac_cr=\$\'\\r\' 12313ce62200cSmrgfi 12314b7fb5eacSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12315b7fb5eacSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12316b7fb5eacSmrg ac_cs_awk_cr='\\r' 12317b7fb5eacSmrgelse 12318b7fb5eacSmrg ac_cs_awk_cr=$ac_cr 123191a30de1fSmrgfi 123201a30de1fSmrg 12321ce62200cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 123221a30de1fSmrg_ACEOF 123231a30de1fSmrg 123241a30de1fSmrg 12325b7fb5eacSmrg{ 12326b7fb5eacSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 12327b7fb5eacSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12328b7fb5eacSmrg echo "_ACEOF" 12329b7fb5eacSmrg} >conf$$subs.sh || 12330ce62200cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12331ce62200cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 123321a30de1fSmrgac_delim='%!_!# ' 123331a30de1fSmrgfor ac_last_try in false false false false false :; do 12334b7fb5eacSmrg . ./conf$$subs.sh || 12335ce62200cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 123361a30de1fSmrg 12337b7fb5eacSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12338b7fb5eacSmrg if test $ac_delim_n = $ac_delim_num; then 123391a30de1fSmrg break 123401a30de1fSmrg elif $ac_last_try; then 12341ce62200cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 123421a30de1fSmrg else 123431a30de1fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 123441a30de1fSmrg fi 123451a30de1fSmrgdone 12346b7fb5eacSmrgrm -f conf$$subs.sh 123471a30de1fSmrg 12348b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12349ce62200cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12350b7fb5eacSmrg_ACEOF 12351b7fb5eacSmrgsed -n ' 12352b7fb5eacSmrgh 12353b7fb5eacSmrgs/^/S["/; s/!.*/"]=/ 12354b7fb5eacSmrgp 12355b7fb5eacSmrgg 12356b7fb5eacSmrgs/^[^!]*!// 12357b7fb5eacSmrg:repl 12358b7fb5eacSmrgt repl 12359b7fb5eacSmrgs/'"$ac_delim"'$// 12360b7fb5eacSmrgt delim 12361b7fb5eacSmrg:nl 12362b7fb5eacSmrgh 12363ce62200cSmrgs/\(.\{148\}\)..*/\1/ 12364b7fb5eacSmrgt more1 12365b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12366b7fb5eacSmrgp 12367b7fb5eacSmrgn 12368b7fb5eacSmrgb repl 12369b7fb5eacSmrg:more1 12370b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12371b7fb5eacSmrgp 12372b7fb5eacSmrgg 12373b7fb5eacSmrgs/.\{148\}// 12374b7fb5eacSmrgt nl 12375b7fb5eacSmrg:delim 12376b7fb5eacSmrgh 12377ce62200cSmrgs/\(.\{148\}\)..*/\1/ 12378b7fb5eacSmrgt more2 12379b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12380b7fb5eacSmrgp 12381b7fb5eacSmrgb 12382b7fb5eacSmrg:more2 12383b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12384b7fb5eacSmrgp 12385b7fb5eacSmrgg 12386b7fb5eacSmrgs/.\{148\}// 12387b7fb5eacSmrgt delim 12388b7fb5eacSmrg' <conf$$subs.awk | sed ' 12389b7fb5eacSmrg/^[^""]/{ 12390b7fb5eacSmrg N 12391b7fb5eacSmrg s/\n// 12392b7fb5eacSmrg} 12393b7fb5eacSmrg' >>$CONFIG_STATUS || ac_write_fail=1 12394b7fb5eacSmrgrm -f conf$$subs.awk 12395b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12396b7fb5eacSmrg_ACAWK 12397ce62200cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12398b7fb5eacSmrg for (key in S) S_is_set[key] = 1 12399b7fb5eacSmrg FS = "" 12400b7fb5eacSmrg 12401b7fb5eacSmrg} 12402b7fb5eacSmrg{ 12403b7fb5eacSmrg line = $ 0 12404b7fb5eacSmrg nfields = split(line, field, "@") 12405b7fb5eacSmrg substed = 0 12406b7fb5eacSmrg len = length(field[1]) 12407b7fb5eacSmrg for (i = 2; i < nfields; i++) { 12408b7fb5eacSmrg key = field[i] 12409b7fb5eacSmrg keylen = length(key) 12410b7fb5eacSmrg if (S_is_set[key]) { 12411b7fb5eacSmrg value = S[key] 12412b7fb5eacSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12413b7fb5eacSmrg len += length(value) + length(field[++i]) 12414b7fb5eacSmrg substed = 1 12415b7fb5eacSmrg } else 12416b7fb5eacSmrg len += 1 + keylen 12417b7fb5eacSmrg } 12418b7fb5eacSmrg 12419b7fb5eacSmrg print line 12420b7fb5eacSmrg} 124211a30de1fSmrg 12422b7fb5eacSmrg_ACAWK 124231a30de1fSmrg_ACEOF 12424b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12425b7fb5eacSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12426b7fb5eacSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12427b7fb5eacSmrgelse 12428b7fb5eacSmrg cat 12429ce62200cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12430ce62200cSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 124311a30de1fSmrg_ACEOF 124321a30de1fSmrg 12433ce62200cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12434ce62200cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 124351a30de1fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 124361a30de1fSmrg# (actually we leave an empty line to preserve line numbers). 124371a30de1fSmrgif test "x$srcdir" = x.; then 12438ce62200cSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12439ce62200cSmrgh 12440ce62200cSmrgs/// 12441ce62200cSmrgs/^/:/ 12442ce62200cSmrgs/[ ]*$/:/ 12443ce62200cSmrgs/:\$(srcdir):/:/g 12444ce62200cSmrgs/:\${srcdir}:/:/g 12445ce62200cSmrgs/:@srcdir@:/:/g 12446ce62200cSmrgs/^:*// 124471a30de1fSmrgs/:*$// 12448ce62200cSmrgx 12449ce62200cSmrgs/\(=[ ]*\).*/\1/ 12450ce62200cSmrgG 12451ce62200cSmrgs/\n// 124521a30de1fSmrgs/^[^=]*=[ ]*$// 124531a30de1fSmrg}' 124541a30de1fSmrgfi 124551a30de1fSmrg 12456b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124571a30de1fSmrgfi # test -n "$CONFIG_FILES" 124581a30de1fSmrg 12459b7fb5eacSmrg# Set up the scripts for CONFIG_HEADERS section. 12460b7fb5eacSmrg# No need to generate them if there are no CONFIG_HEADERS. 12461b7fb5eacSmrg# This happens for instance with `./config.status Makefile'. 12462b7fb5eacSmrgif test -n "$CONFIG_HEADERS"; then 12463ce62200cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 12464b7fb5eacSmrgBEGIN { 12465b7fb5eacSmrg_ACEOF 12466b7fb5eacSmrg 12467b7fb5eacSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 12468b7fb5eacSmrg# here-document in config.status, that substitutes the proper values into 12469b7fb5eacSmrg# config.h.in to produce config.h. 12470b7fb5eacSmrg 12471b7fb5eacSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 12472b7fb5eacSmrg# handling of long lines. 12473b7fb5eacSmrgac_delim='%!_!# ' 12474b7fb5eacSmrgfor ac_last_try in false false :; do 12475ce62200cSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12476ce62200cSmrg if test -z "$ac_tt"; then 12477b7fb5eacSmrg break 12478b7fb5eacSmrg elif $ac_last_try; then 12479ce62200cSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12480b7fb5eacSmrg else 12481b7fb5eacSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12482b7fb5eacSmrg fi 12483b7fb5eacSmrgdone 12484b7fb5eacSmrg 12485b7fb5eacSmrg# For the awk script, D is an array of macro values keyed by name, 12486b7fb5eacSmrg# likewise P contains macro parameters if any. Preserve backslash 12487b7fb5eacSmrg# newline sequences. 12488b7fb5eacSmrg 12489b7fb5eacSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12490b7fb5eacSmrgsed -n ' 12491b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g 12492b7fb5eacSmrgt rset 12493b7fb5eacSmrg:rset 12494b7fb5eacSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 12495b7fb5eacSmrgt def 12496b7fb5eacSmrgd 12497b7fb5eacSmrg:def 12498b7fb5eacSmrgs/\\$// 12499b7fb5eacSmrgt bsnl 12500b7fb5eacSmrgs/["\\]/\\&/g 12501b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12502b7fb5eacSmrgD["\1"]=" \3"/p 12503b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12504b7fb5eacSmrgd 12505b7fb5eacSmrg:bsnl 12506b7fb5eacSmrgs/["\\]/\\&/g 12507b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12508b7fb5eacSmrgD["\1"]=" \3\\\\\\n"\\/p 12509b7fb5eacSmrgt cont 12510b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12511b7fb5eacSmrgt cont 12512b7fb5eacSmrgd 12513b7fb5eacSmrg:cont 12514b7fb5eacSmrgn 12515b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g 12516b7fb5eacSmrgt clear 12517b7fb5eacSmrg:clear 12518b7fb5eacSmrgs/\\$// 12519b7fb5eacSmrgt bsnlc 12520b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 12521b7fb5eacSmrgd 12522b7fb5eacSmrg:bsnlc 12523b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12524b7fb5eacSmrgb cont 12525b7fb5eacSmrg' <confdefs.h | sed ' 12526b7fb5eacSmrgs/'"$ac_delim"'/"\\\ 12527b7fb5eacSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 12528b7fb5eacSmrg 12529b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12530b7fb5eacSmrg for (key in D) D_is_set[key] = 1 12531b7fb5eacSmrg FS = "" 12532b7fb5eacSmrg} 12533b7fb5eacSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12534b7fb5eacSmrg line = \$ 0 12535b7fb5eacSmrg split(line, arg, " ") 12536b7fb5eacSmrg if (arg[1] == "#") { 12537b7fb5eacSmrg defundef = arg[2] 12538b7fb5eacSmrg mac1 = arg[3] 12539b7fb5eacSmrg } else { 12540b7fb5eacSmrg defundef = substr(arg[1], 2) 12541b7fb5eacSmrg mac1 = arg[2] 12542b7fb5eacSmrg } 12543b7fb5eacSmrg split(mac1, mac2, "(") #) 12544b7fb5eacSmrg macro = mac2[1] 12545b7fb5eacSmrg prefix = substr(line, 1, index(line, defundef) - 1) 12546b7fb5eacSmrg if (D_is_set[macro]) { 12547b7fb5eacSmrg # Preserve the white space surrounding the "#". 12548b7fb5eacSmrg print prefix "define", macro P[macro] D[macro] 12549b7fb5eacSmrg next 12550b7fb5eacSmrg } else { 12551b7fb5eacSmrg # Replace #undef with comments. This is necessary, for example, 12552b7fb5eacSmrg # in the case of _POSIX_SOURCE, which is predefined and required 12553b7fb5eacSmrg # on some systems where configure will not decide to define it. 12554b7fb5eacSmrg if (defundef == "undef") { 12555b7fb5eacSmrg print "/*", prefix defundef, macro, "*/" 12556b7fb5eacSmrg next 12557b7fb5eacSmrg } 12558b7fb5eacSmrg } 12559b7fb5eacSmrg} 12560b7fb5eacSmrg{ print } 12561b7fb5eacSmrg_ACAWK 12562b7fb5eacSmrg_ACEOF 12563b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12564ce62200cSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12565b7fb5eacSmrgfi # test -n "$CONFIG_HEADERS" 12566b7fb5eacSmrg 125671a30de1fSmrg 12568b7fb5eacSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12569b7fb5eacSmrgshift 12570b7fb5eacSmrgfor ac_tag 125711a30de1fSmrgdo 125721a30de1fSmrg case $ac_tag in 125731a30de1fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 125741a30de1fSmrg esac 125751a30de1fSmrg case $ac_mode$ac_tag in 125761a30de1fSmrg :[FHL]*:*);; 12577ce62200cSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 125781a30de1fSmrg :[FH]-) ac_tag=-:-;; 125791a30de1fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 125801a30de1fSmrg esac 125811a30de1fSmrg ac_save_IFS=$IFS 125821a30de1fSmrg IFS=: 125831a30de1fSmrg set x $ac_tag 125841a30de1fSmrg IFS=$ac_save_IFS 125851a30de1fSmrg shift 125861a30de1fSmrg ac_file=$1 125871a30de1fSmrg shift 125881a30de1fSmrg 125891a30de1fSmrg case $ac_mode in 125901a30de1fSmrg :L) ac_source=$1;; 125911a30de1fSmrg :[FH]) 125921a30de1fSmrg ac_file_inputs= 125931a30de1fSmrg for ac_f 125941a30de1fSmrg do 125951a30de1fSmrg case $ac_f in 12596ce62200cSmrg -) ac_f="$ac_tmp/stdin";; 125971a30de1fSmrg *) # Look for the file first in the build tree, then in the source tree 125981a30de1fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 125991a30de1fSmrg # because $ac_f cannot contain `:'. 126001a30de1fSmrg test -f "$ac_f" || 126011a30de1fSmrg case $ac_f in 126021a30de1fSmrg [\\/$]*) false;; 126031a30de1fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 126041a30de1fSmrg esac || 12605ce62200cSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 126061a30de1fSmrg esac 126076eaa481cSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12608ce62200cSmrg as_fn_append ac_file_inputs " '$ac_f'" 126091a30de1fSmrg done 126101a30de1fSmrg 126111a30de1fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 126121a30de1fSmrg # use $as_me), people would be surprised to read: 126131a30de1fSmrg # /* config.h. Generated by config.status. */ 12614b7fb5eacSmrg configure_input='Generated from '` 126156eaa481cSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12616b7fb5eacSmrg `' by configure.' 126171a30de1fSmrg if test x"$ac_file" != x-; then 126181a30de1fSmrg configure_input="$ac_file. $configure_input" 126196eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 126206eaa481cSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 126211a30de1fSmrg fi 12622b7fb5eacSmrg # Neutralize special characters interpreted by sed in replacement strings. 12623b7fb5eacSmrg case $configure_input in #( 12624b7fb5eacSmrg *\&* | *\|* | *\\* ) 126256eaa481cSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12626b7fb5eacSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12627b7fb5eacSmrg *) ac_sed_conf_input=$configure_input;; 12628b7fb5eacSmrg esac 126291a30de1fSmrg 126301a30de1fSmrg case $ac_tag in 12631ce62200cSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12632ce62200cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 126331a30de1fSmrg esac 126341a30de1fSmrg ;; 126351a30de1fSmrg esac 126361a30de1fSmrg 126371a30de1fSmrg ac_dir=`$as_dirname -- "$ac_file" || 126381a30de1fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126391a30de1fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 126401a30de1fSmrg X"$ac_file" : 'X\(//\)$' \| \ 126411a30de1fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 126426eaa481cSmrgprintf "%s\n" X"$ac_file" | 126431a30de1fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 126441a30de1fSmrg s//\1/ 126451a30de1fSmrg q 126461a30de1fSmrg } 126471a30de1fSmrg /^X\(\/\/\)[^/].*/{ 126481a30de1fSmrg s//\1/ 126491a30de1fSmrg q 126501a30de1fSmrg } 126511a30de1fSmrg /^X\(\/\/\)$/{ 126521a30de1fSmrg s//\1/ 126531a30de1fSmrg q 126541a30de1fSmrg } 126551a30de1fSmrg /^X\(\/\).*/{ 126561a30de1fSmrg s//\1/ 126571a30de1fSmrg q 126581a30de1fSmrg } 126591a30de1fSmrg s/.*/./; q'` 12660ce62200cSmrg as_dir="$ac_dir"; as_fn_mkdir_p 126611a30de1fSmrg ac_builddir=. 126621a30de1fSmrg 126631a30de1fSmrgcase "$ac_dir" in 126641a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 126651a30de1fSmrg*) 126666eaa481cSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 126671a30de1fSmrg # A ".." for each directory in $ac_dir_suffix. 126686eaa481cSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 126691a30de1fSmrg case $ac_top_builddir_sub in 126701a30de1fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 126711a30de1fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 126721a30de1fSmrg esac ;; 126731a30de1fSmrgesac 126741a30de1fSmrgac_abs_top_builddir=$ac_pwd 126751a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 126761a30de1fSmrg# for backward compatibility: 126771a30de1fSmrgac_top_builddir=$ac_top_build_prefix 126781a30de1fSmrg 126791a30de1fSmrgcase $srcdir in 126801a30de1fSmrg .) # We are building in place. 126811a30de1fSmrg ac_srcdir=. 126821a30de1fSmrg ac_top_srcdir=$ac_top_builddir_sub 126831a30de1fSmrg ac_abs_top_srcdir=$ac_pwd ;; 126841a30de1fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 126851a30de1fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 126861a30de1fSmrg ac_top_srcdir=$srcdir 126871a30de1fSmrg ac_abs_top_srcdir=$srcdir ;; 126881a30de1fSmrg *) # Relative name. 126891a30de1fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 126901a30de1fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 126911a30de1fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 126921a30de1fSmrgesac 126931a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 126941a30de1fSmrg 126951a30de1fSmrg 126961a30de1fSmrg case $ac_mode in 126971a30de1fSmrg :F) 126981a30de1fSmrg # 126991a30de1fSmrg # CONFIG_FILE 127001a30de1fSmrg # 127011a30de1fSmrg 127021a30de1fSmrg case $INSTALL in 127031a30de1fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 127041a30de1fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 127051a30de1fSmrg esac 127061a30de1fSmrg ac_MKDIR_P=$MKDIR_P 127071a30de1fSmrg case $MKDIR_P in 127081a30de1fSmrg [\\/$]* | ?:[\\/]* ) ;; 127091a30de1fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 127101a30de1fSmrg esac 127111a30de1fSmrg_ACEOF 127121a30de1fSmrg 12713b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127141a30de1fSmrg# If the template does not know about datarootdir, expand it. 127151a30de1fSmrg# FIXME: This hack should be removed a few years after 2.60. 127161a30de1fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12717b7fb5eacSmrgac_sed_dataroot=' 12718b7fb5eacSmrg/datarootdir/ { 127191a30de1fSmrg p 127201a30de1fSmrg q 127211a30de1fSmrg} 127221a30de1fSmrg/@datadir@/p 127231a30de1fSmrg/@docdir@/p 127241a30de1fSmrg/@infodir@/p 127251a30de1fSmrg/@localedir@/p 12726ce62200cSmrg/@mandir@/p' 12727b7fb5eacSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 127281a30de1fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 127291a30de1fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 127306eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 127316eaa481cSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 127321a30de1fSmrg_ACEOF 12733b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127341a30de1fSmrg ac_datarootdir_hack=' 127351a30de1fSmrg s&@datadir@&$datadir&g 127361a30de1fSmrg s&@docdir@&$docdir&g 127371a30de1fSmrg s&@infodir@&$infodir&g 127381a30de1fSmrg s&@localedir@&$localedir&g 127391a30de1fSmrg s&@mandir@&$mandir&g 12740ce62200cSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 127411a30de1fSmrgesac 127421a30de1fSmrg_ACEOF 127431a30de1fSmrg 127441a30de1fSmrg# Neutralize VPATH when `$srcdir' = `.'. 127451a30de1fSmrg# Shell code in configure.ac might set extrasub. 127461a30de1fSmrg# FIXME: do we really want to maintain this feature? 12747b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12748b7fb5eacSmrgac_sed_extra="$ac_vpsub 127491a30de1fSmrg$extrasub 127501a30de1fSmrg_ACEOF 12751b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127521a30de1fSmrg:t 127531a30de1fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12754b7fb5eacSmrgs|@configure_input@|$ac_sed_conf_input|;t t 127551a30de1fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12756b7fb5eacSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 127571a30de1fSmrgs&@srcdir@&$ac_srcdir&;t t 127581a30de1fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 127591a30de1fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 127601a30de1fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 127611a30de1fSmrgs&@builddir@&$ac_builddir&;t t 127621a30de1fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 127631a30de1fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 127641a30de1fSmrgs&@INSTALL@&$ac_INSTALL&;t t 127651a30de1fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 127661a30de1fSmrg$ac_datarootdir_hack 12767b7fb5eacSmrg" 12768ce62200cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12769ce62200cSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 127701a30de1fSmrg 127711a30de1fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12772ce62200cSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12773ce62200cSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12774ce62200cSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 127756eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12776ce62200cSmrgwhich seems to be undefined. Please make sure it is defined" >&5 127776eaa481cSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12778ce62200cSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 127791a30de1fSmrg 12780ce62200cSmrg rm -f "$ac_tmp/stdin" 127811a30de1fSmrg case $ac_file in 12782ce62200cSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12783ce62200cSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12784b7fb5eacSmrg esac \ 12785ce62200cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 127861a30de1fSmrg ;; 127871a30de1fSmrg :H) 127881a30de1fSmrg # 127891a30de1fSmrg # CONFIG_HEADER 127901a30de1fSmrg # 127911a30de1fSmrg if test x"$ac_file" != x-; then 12792b7fb5eacSmrg { 127936eaa481cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 12794ce62200cSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12795ce62200cSmrg } >"$ac_tmp/config.h" \ 12796ce62200cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12797ce62200cSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 127986eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 127996eaa481cSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 128001a30de1fSmrg else 12801b7fb5eacSmrg rm -f "$ac_file" 12802ce62200cSmrg mv "$ac_tmp/config.h" "$ac_file" \ 12803ce62200cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 128041a30de1fSmrg fi 128051a30de1fSmrg else 128066eaa481cSmrg printf "%s\n" "/* $configure_input */" >&1 \ 12807ce62200cSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12808ce62200cSmrg || as_fn_error $? "could not create -" "$LINENO" 5 128091a30de1fSmrg fi 12810b7fb5eacSmrg# Compute "$ac_file"'s index in $config_headers. 12811b7fb5eacSmrg_am_arg="$ac_file" 128121a30de1fSmrg_am_stamp_count=1 128131a30de1fSmrgfor _am_header in $config_headers :; do 128141a30de1fSmrg case $_am_header in 12815b7fb5eacSmrg $_am_arg | $_am_arg:* ) 128161a30de1fSmrg break ;; 128171a30de1fSmrg * ) 128181a30de1fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 128191a30de1fSmrg esac 128201a30de1fSmrgdone 12821b7fb5eacSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12822b7fb5eacSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12823b7fb5eacSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12824b7fb5eacSmrg X"$_am_arg" : 'X\(//\)$' \| \ 12825b7fb5eacSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 128266eaa481cSmrgprintf "%s\n" X"$_am_arg" | 128271a30de1fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 128281a30de1fSmrg s//\1/ 128291a30de1fSmrg q 128301a30de1fSmrg } 128311a30de1fSmrg /^X\(\/\/\)[^/].*/{ 128321a30de1fSmrg s//\1/ 128331a30de1fSmrg q 128341a30de1fSmrg } 128351a30de1fSmrg /^X\(\/\/\)$/{ 128361a30de1fSmrg s//\1/ 128371a30de1fSmrg q 128381a30de1fSmrg } 128391a30de1fSmrg /^X\(\/\).*/{ 128401a30de1fSmrg s//\1/ 128411a30de1fSmrg q 128421a30de1fSmrg } 128431a30de1fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 128441a30de1fSmrg ;; 128451a30de1fSmrg 128466eaa481cSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 128476eaa481cSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 128481a30de1fSmrg ;; 128491a30de1fSmrg esac 128501a30de1fSmrg 128511a30de1fSmrg 128521a30de1fSmrg case $ac_file$ac_mode in 12853b7fb5eacSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12854a733a5bfSmrg # Older Autoconf quotes --file arguments for eval, but not when files 12855b7fb5eacSmrg # are listed without --file. Let's play safe and only enable the eval 12856b7fb5eacSmrg # if we detect the quoting. 128576eaa481cSmrg # TODO: see whether this extra hack can be removed once we start 128586eaa481cSmrg # requiring Autoconf 2.70 or later. 128596eaa481cSmrg case $CONFIG_FILES in #( 128606eaa481cSmrg *\'*) : 128616eaa481cSmrg eval set x "$CONFIG_FILES" ;; #( 128626eaa481cSmrg *) : 128636eaa481cSmrg set x $CONFIG_FILES ;; #( 128646eaa481cSmrg *) : 128656eaa481cSmrg ;; 128666eaa481cSmrgesac 12867b7fb5eacSmrg shift 128686eaa481cSmrg # Used to flag and report bootstrapping failures. 128696eaa481cSmrg am_rc=0 128706eaa481cSmrg for am_mf 12871b7fb5eacSmrg do 12872b7fb5eacSmrg # Strip MF so we end up with the name of the file. 128736eaa481cSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 128746eaa481cSmrg # Check whether this is an Automake generated Makefile which includes 128756eaa481cSmrg # dependency-tracking related rules and includes. 128766eaa481cSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 12877b7fb5eacSmrg # limit of 2048, but all sed's we know have understand at least 4000. 128786eaa481cSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 128796eaa481cSmrg || continue 128806eaa481cSmrg am_dirpart=`$as_dirname -- "$am_mf" || 128816eaa481cSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 128826eaa481cSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 128836eaa481cSmrg X"$am_mf" : 'X\(//\)$' \| \ 128846eaa481cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 128856eaa481cSmrgprintf "%s\n" X"$am_mf" | 128861a30de1fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 128871a30de1fSmrg s//\1/ 128881a30de1fSmrg q 128891a30de1fSmrg } 128901a30de1fSmrg /^X\(\/\/\)[^/].*/{ 128911a30de1fSmrg s//\1/ 128921a30de1fSmrg q 128931a30de1fSmrg } 128941a30de1fSmrg /^X\(\/\/\)$/{ 128951a30de1fSmrg s//\1/ 128961a30de1fSmrg q 128971a30de1fSmrg } 128981a30de1fSmrg /^X\(\/\).*/{ 128991a30de1fSmrg s//\1/ 129001a30de1fSmrg q 129011a30de1fSmrg } 129021a30de1fSmrg s/.*/./; q'` 129036eaa481cSmrg am_filepart=`$as_basename -- "$am_mf" || 129046eaa481cSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 129056eaa481cSmrg X"$am_mf" : 'X\(//\)$' \| \ 129066eaa481cSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 129076eaa481cSmrgprintf "%s\n" X/"$am_mf" | 129086eaa481cSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 129091a30de1fSmrg s//\1/ 129101a30de1fSmrg q 129111a30de1fSmrg } 129126eaa481cSmrg /^X\/\(\/\/\)$/{ 129131a30de1fSmrg s//\1/ 129141a30de1fSmrg q 129151a30de1fSmrg } 129166eaa481cSmrg /^X\/\(\/\).*/{ 129171a30de1fSmrg s//\1/ 129181a30de1fSmrg q 129191a30de1fSmrg } 129201a30de1fSmrg s/.*/./; q'` 129216eaa481cSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 129226eaa481cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 129236eaa481cSmrg | $MAKE -f - am--depfiles" >&5 129246eaa481cSmrg (cd "$am_dirpart" \ 129256eaa481cSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 129266eaa481cSmrg | $MAKE -f - am--depfiles) >&5 2>&5 129276eaa481cSmrg ac_status=$? 129286eaa481cSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 129296eaa481cSmrg (exit $ac_status); } || am_rc=$? 129301a30de1fSmrg done 129316eaa481cSmrg if test $am_rc -ne 0; then 129326eaa481cSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 129336eaa481cSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 129346eaa481cSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 129356eaa481cSmrg for automatic dependency tracking. If GNU make was not used, consider 129366eaa481cSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 129376eaa481cSmrg necessary). You can also try re-running configure with the 129386eaa481cSmrg '--disable-dependency-tracking' option to at least be able to build 129396eaa481cSmrg the package (albeit without support for automatic dependency tracking). 129406eaa481cSmrgSee \`config.log' for more details" "$LINENO" 5; } 129416eaa481cSmrg fi 129426eaa481cSmrg { am_dirpart=; unset am_dirpart;} 129436eaa481cSmrg { am_filepart=; unset am_filepart;} 129446eaa481cSmrg { am_mf=; unset am_mf;} 129456eaa481cSmrg { am_rc=; unset am_rc;} 129466eaa481cSmrg rm -f conftest-deps.mk 12947b7fb5eacSmrg} 129481a30de1fSmrg ;; 129491a30de1fSmrg 129501a30de1fSmrg esac 129511a30de1fSmrgdone # for ac_tag 129521a30de1fSmrg 129531a30de1fSmrg 12954ce62200cSmrgas_fn_exit 0 129551a30de1fSmrg_ACEOF 129561a30de1fSmrgac_clean_files=$ac_clean_files_save 129571a30de1fSmrg 12958b7fb5eacSmrgtest $ac_write_fail = 0 || 12959ce62200cSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12960b7fb5eacSmrg 129611a30de1fSmrg 129621a30de1fSmrg# configure is writing to config.log, and then calls config.status. 129631a30de1fSmrg# config.status does its own redirection, appending to config.log. 129641a30de1fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 129651a30de1fSmrg# by configure, so config.status won't be able to write to it; its 129661a30de1fSmrg# output is simply discarded. So we exec the FD to /dev/null, 129671a30de1fSmrg# effectively closing config.log, so it can be properly (re)opened and 129681a30de1fSmrg# appended to by config.status. When coming back to configure, we 129691a30de1fSmrg# need to make the FD available again. 129701a30de1fSmrgif test "$no_create" != yes; then 129711a30de1fSmrg ac_cs_success=: 129721a30de1fSmrg ac_config_status_args= 129731a30de1fSmrg test "$silent" = yes && 129741a30de1fSmrg ac_config_status_args="$ac_config_status_args --quiet" 129751a30de1fSmrg exec 5>/dev/null 129761a30de1fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 129771a30de1fSmrg exec 5>>config.log 129781a30de1fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 129791a30de1fSmrg # would make configure fail if this is the last instruction. 12980ce62200cSmrg $ac_cs_success || as_fn_exit 1 129811a30de1fSmrgfi 12982b7fb5eacSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 129836eaa481cSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 129846eaa481cSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12985b7fb5eacSmrgfi 129861a30de1fSmrg 129876eaa481cSmrg 12988