configure revision 99c4c48a
18108eb18Smrg#! /bin/sh 28108eb18Smrg# Guess values for system-dependent variables and create Makefiles. 399c4c48aSmrg# Generated by GNU Autoconf 2.71 for xsm 1.0.5. 48108eb18Smrg# 599c4c48aSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/issues>. 68108eb18Smrg# 71a650d1eSmrg# 899c4c48aSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 999c4c48aSmrg# Inc. 101a650d1eSmrg# 111a650d1eSmrg# 128108eb18Smrg# This configure script is free software; the Free Software Foundation 138108eb18Smrg# gives unlimited permission to copy, distribute and modify it. 141a650d1eSmrg## -------------------- ## 151a650d1eSmrg## M4sh Initialization. ## 161a650d1eSmrg## -------------------- ## 178108eb18Smrg 181a650d1eSmrg# Be more Bourne compatible 191a650d1eSmrgDUALCASE=1; export DUALCASE # for MKS sh 2099c4c48aSmrgas_nop=: 2199c4c48aSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 2299c4c48aSmrgthen : 238108eb18Smrg emulate sh 248108eb18Smrg NULLCMD=: 251a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 268108eb18Smrg # is contrary to our usage. Disable this feature. 278108eb18Smrg alias -g '${1+"$@"}'='"$@"' 281a650d1eSmrg setopt NO_GLOB_SUBST 2999c4c48aSmrgelse $as_nop 301a650d1eSmrg case `(set -o) 2>/dev/null` in #( 311a650d1eSmrg *posix*) : 321a650d1eSmrg set -o posix ;; #( 331a650d1eSmrg *) : 341a650d1eSmrg ;; 351a650d1eSmrgesac 368108eb18Smrgfi 378108eb18Smrg 381a650d1eSmrg 3999c4c48aSmrg 4099c4c48aSmrg# Reset variables that may have inherited troublesome values from 4199c4c48aSmrg# the environment. 4299c4c48aSmrg 4399c4c48aSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 4499c4c48aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 4599c4c48aSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 4699c4c48aSmrg# Quoting is to prevent editors from complaining about space-tab. 471a650d1eSmrgas_nl=' 481a650d1eSmrg' 491a650d1eSmrgexport as_nl 5099c4c48aSmrgIFS=" "" $as_nl" 5199c4c48aSmrg 5299c4c48aSmrgPS1='$ ' 5399c4c48aSmrgPS2='> ' 5499c4c48aSmrgPS4='+ ' 5599c4c48aSmrg 5699c4c48aSmrg# Ensure predictable behavior from utilities with locale-dependent output. 5799c4c48aSmrgLC_ALL=C 5899c4c48aSmrgexport LC_ALL 5999c4c48aSmrgLANGUAGE=C 6099c4c48aSmrgexport LANGUAGE 6199c4c48aSmrg 6299c4c48aSmrg# We cannot yet rely on "unset" to work, but we need these variables 6399c4c48aSmrg# to be unset--not just set to an empty or harmless value--now, to 6499c4c48aSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 6599c4c48aSmrg# also avoids known problems related to "unset" and subshell syntax 6699c4c48aSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 6799c4c48aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 6899c4c48aSmrgdo eval test \${$as_var+y} \ 6999c4c48aSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7099c4c48aSmrgdone 7199c4c48aSmrg 7299c4c48aSmrg# Ensure that fds 0, 1, and 2 are open. 7399c4c48aSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 7499c4c48aSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 7599c4c48aSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 761a650d1eSmrg 771a650d1eSmrg# The user is always right. 7899c4c48aSmrgif ${PATH_SEPARATOR+false} :; then 791a650d1eSmrg PATH_SEPARATOR=: 801a650d1eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 811a650d1eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 821a650d1eSmrg PATH_SEPARATOR=';' 831a650d1eSmrg } 848108eb18Smrgfi 858108eb18Smrg 868108eb18Smrg 871a650d1eSmrg# Find who we are. Look in the path if we contain no directory separator. 881a650d1eSmrgas_myself= 891a650d1eSmrgcase $0 in #(( 901a650d1eSmrg *[\\/]* ) as_myself=$0 ;; 911a650d1eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 921a650d1eSmrgfor as_dir in $PATH 931a650d1eSmrgdo 941a650d1eSmrg IFS=$as_save_IFS 9599c4c48aSmrg case $as_dir in #((( 9699c4c48aSmrg '') as_dir=./ ;; 9799c4c48aSmrg */) ;; 9899c4c48aSmrg *) as_dir=$as_dir/ ;; 9999c4c48aSmrg esac 10099c4c48aSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1011a650d1eSmrg done 1021a650d1eSmrgIFS=$as_save_IFS 1031a650d1eSmrg 1041a650d1eSmrg ;; 1051a650d1eSmrgesac 1061a650d1eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1071a650d1eSmrg# in which case we are not to be found in the path. 1081a650d1eSmrgif test "x$as_myself" = x; then 1091a650d1eSmrg as_myself=$0 1101a650d1eSmrgfi 1111a650d1eSmrgif test ! -f "$as_myself"; then 11299c4c48aSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1131a650d1eSmrg exit 1 1141a650d1eSmrgfi 1151a650d1eSmrg 1161a650d1eSmrg 1178a355152Smrg# Use a proper internal environment variable to ensure we don't fall 1188a355152Smrg # into an infinite loop, continuously re-executing ourselves. 1198a355152Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1208a355152Smrg _as_can_reexec=no; export _as_can_reexec; 1218a355152Smrg # We cannot yet assume a decent shell, so we have to provide a 1228a355152Smrg# neutralization value for shells without unset; and this also 1238a355152Smrg# works around shells that cannot unset nonexistent variables. 1248a355152Smrg# Preserve -v and -x to the replacement shell. 1258a355152SmrgBASH_ENV=/dev/null 1268a355152SmrgENV=/dev/null 1278a355152Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1288a355152Smrgcase $- in # (((( 1298a355152Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1308a355152Smrg *v* ) as_opts=-v ;; 1318a355152Smrg *x* ) as_opts=-x ;; 1328a355152Smrg * ) as_opts= ;; 1338a355152Smrgesac 1348a355152Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1358a355152Smrg# Admittedly, this is quite paranoid, since all the known shells bail 1368a355152Smrg# out after a failed `exec'. 13799c4c48aSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 13899c4c48aSmrgexit 255 1398a355152Smrg fi 1408a355152Smrg # We don't want this to propagate to other subprocesses. 1418a355152Smrg { _as_can_reexec=; unset _as_can_reexec;} 1421a650d1eSmrgif test "x$CONFIG_SHELL" = x; then 14399c4c48aSmrg as_bourne_compatible="as_nop=: 14499c4c48aSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14599c4c48aSmrgthen : 1461a650d1eSmrg emulate sh 1471a650d1eSmrg NULLCMD=: 1481a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1491a650d1eSmrg # is contrary to our usage. Disable this feature. 1501a650d1eSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1511a650d1eSmrg setopt NO_GLOB_SUBST 15299c4c48aSmrgelse \$as_nop 1531a650d1eSmrg case \`(set -o) 2>/dev/null\` in #( 1541a650d1eSmrg *posix*) : 1551a650d1eSmrg set -o posix ;; #( 1561a650d1eSmrg *) : 1571a650d1eSmrg ;; 1581a650d1eSmrgesac 1591a650d1eSmrgfi 1601a650d1eSmrg" 1611a650d1eSmrg as_required="as_fn_return () { (exit \$1); } 1621a650d1eSmrgas_fn_success () { as_fn_return 0; } 1631a650d1eSmrgas_fn_failure () { as_fn_return 1; } 1641a650d1eSmrgas_fn_ret_success () { return 0; } 1651a650d1eSmrgas_fn_ret_failure () { return 1; } 1661a650d1eSmrg 1671a650d1eSmrgexitcode=0 1681a650d1eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1691a650d1eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1701a650d1eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1711a650d1eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 17299c4c48aSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 17399c4c48aSmrgthen : 1741a650d1eSmrg 17599c4c48aSmrgelse \$as_nop 1761a650d1eSmrg exitcode=1; echo positional parameters were not saved. 1771a650d1eSmrgfi 1788a355152Smrgtest x\$exitcode = x0 || exit 1 17999c4c48aSmrgblah=\$(echo \$(echo blah)) 18099c4c48aSmrgtest x\"\$blah\" = xblah || exit 1 1818a355152Smrgtest -x / || exit 1" 1821a650d1eSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1831a650d1eSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1841a650d1eSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1851a650d1eSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1861a650d1eSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 18799c4c48aSmrg if (eval "$as_required") 2>/dev/null 18899c4c48aSmrgthen : 1891a650d1eSmrg as_have_required=yes 19099c4c48aSmrgelse $as_nop 1911a650d1eSmrg as_have_required=no 1921a650d1eSmrgfi 19399c4c48aSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 19499c4c48aSmrgthen : 1951a650d1eSmrg 19699c4c48aSmrgelse $as_nop 1971a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981a650d1eSmrgas_found=false 1991a650d1eSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2008108eb18Smrgdo 2011a650d1eSmrg IFS=$as_save_IFS 20299c4c48aSmrg case $as_dir in #((( 20399c4c48aSmrg '') as_dir=./ ;; 20499c4c48aSmrg */) ;; 20599c4c48aSmrg *) as_dir=$as_dir/ ;; 20699c4c48aSmrg esac 2071a650d1eSmrg as_found=: 2081a650d1eSmrg case $as_dir in #( 2091a650d1eSmrg /*) 2101a650d1eSmrg for as_base in sh bash ksh sh5; do 2111a650d1eSmrg # Try only shells that exist, to save several forks. 21299c4c48aSmrg as_shell=$as_dir$as_base 2131a650d1eSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 21499c4c48aSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 21599c4c48aSmrgthen : 2161a650d1eSmrg CONFIG_SHELL=$as_shell as_have_required=yes 21799c4c48aSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 21899c4c48aSmrgthen : 2191a650d1eSmrg break 2 2201a650d1eSmrgfi 2211a650d1eSmrgfi 2221a650d1eSmrg done;; 2231a650d1eSmrg esac 2241a650d1eSmrg as_found=false 2251a650d1eSmrgdone 2261a650d1eSmrgIFS=$as_save_IFS 22799c4c48aSmrgif $as_found 22899c4c48aSmrgthen : 22999c4c48aSmrg 23099c4c48aSmrgelse $as_nop 23199c4c48aSmrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 23299c4c48aSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 23399c4c48aSmrgthen : 23499c4c48aSmrg CONFIG_SHELL=$SHELL as_have_required=yes 23599c4c48aSmrgfi 23699c4c48aSmrgfi 2371a650d1eSmrg 2381a650d1eSmrg 23999c4c48aSmrg if test "x$CONFIG_SHELL" != x 24099c4c48aSmrgthen : 2418a355152Smrg export CONFIG_SHELL 2428a355152Smrg # We cannot yet assume a decent shell, so we have to provide a 2438a355152Smrg# neutralization value for shells without unset; and this also 2448a355152Smrg# works around shells that cannot unset nonexistent variables. 2458a355152Smrg# Preserve -v and -x to the replacement shell. 2468a355152SmrgBASH_ENV=/dev/null 2478a355152SmrgENV=/dev/null 2488a355152Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2498a355152Smrgcase $- in # (((( 2508a355152Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2518a355152Smrg *v* ) as_opts=-v ;; 2528a355152Smrg *x* ) as_opts=-x ;; 2538a355152Smrg * ) as_opts= ;; 2548a355152Smrgesac 2558a355152Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2568a355152Smrg# Admittedly, this is quite paranoid, since all the known shells bail 2578a355152Smrg# out after a failed `exec'. 25899c4c48aSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2598a355152Smrgexit 255 2601a650d1eSmrgfi 2611a650d1eSmrg 26299c4c48aSmrg if test x$as_have_required = xno 26399c4c48aSmrgthen : 26499c4c48aSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 26599c4c48aSmrg printf "%s\n" "$0: the shells that I found on your system." 26699c4c48aSmrg if test ${ZSH_VERSION+y} ; then 26799c4c48aSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 26899c4c48aSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2698108eb18Smrg else 27099c4c48aSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 27199c4c48aSmrg$0: https://gitlab.freedesktop.org/xorg/app/xsm/issues 2721a650d1eSmrg$0: about your system, including any error possibly output 2731a650d1eSmrg$0: before this message. Then install a modern shell, or 2741a650d1eSmrg$0: manually run the script under such a shell if you do 2751a650d1eSmrg$0: have one." 2768108eb18Smrg fi 2771a650d1eSmrg exit 1 2781a650d1eSmrgfi 2791a650d1eSmrgfi 2801a650d1eSmrgfi 2811a650d1eSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2821a650d1eSmrgexport SHELL 2831a650d1eSmrg# Unset more variables known to interfere with behavior of common tools. 2841a650d1eSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2851a650d1eSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2861a650d1eSmrg 2871a650d1eSmrg## --------------------- ## 2881a650d1eSmrg## M4sh Shell Functions. ## 2891a650d1eSmrg## --------------------- ## 2901a650d1eSmrg# as_fn_unset VAR 2911a650d1eSmrg# --------------- 2921a650d1eSmrg# Portably unset VAR. 2931a650d1eSmrgas_fn_unset () 2941a650d1eSmrg{ 2951a650d1eSmrg { eval $1=; unset $1;} 2961a650d1eSmrg} 2971a650d1eSmrgas_unset=as_fn_unset 2981a650d1eSmrg 29999c4c48aSmrg 3001a650d1eSmrg# as_fn_set_status STATUS 3011a650d1eSmrg# ----------------------- 3021a650d1eSmrg# Set $? to STATUS, without forking. 3031a650d1eSmrgas_fn_set_status () 3041a650d1eSmrg{ 3051a650d1eSmrg return $1 3061a650d1eSmrg} # as_fn_set_status 3078108eb18Smrg 3081a650d1eSmrg# as_fn_exit STATUS 3091a650d1eSmrg# ----------------- 3101a650d1eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3111a650d1eSmrgas_fn_exit () 3121a650d1eSmrg{ 3131a650d1eSmrg set +e 3141a650d1eSmrg as_fn_set_status $1 3151a650d1eSmrg exit $1 3161a650d1eSmrg} # as_fn_exit 31799c4c48aSmrg# as_fn_nop 31899c4c48aSmrg# --------- 31999c4c48aSmrg# Do nothing but, unlike ":", preserve the value of $?. 32099c4c48aSmrgas_fn_nop () 32199c4c48aSmrg{ 32299c4c48aSmrg return $? 32399c4c48aSmrg} 32499c4c48aSmrgas_nop=as_fn_nop 3251a650d1eSmrg 3261a650d1eSmrg# as_fn_mkdir_p 3271a650d1eSmrg# ------------- 3281a650d1eSmrg# Create "$as_dir" as a directory, including parents if necessary. 3291a650d1eSmrgas_fn_mkdir_p () 3301a650d1eSmrg{ 3311a650d1eSmrg 3321a650d1eSmrg case $as_dir in #( 3331a650d1eSmrg -*) as_dir=./$as_dir;; 3341a650d1eSmrg esac 3351a650d1eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 3361a650d1eSmrg as_dirs= 3371a650d1eSmrg while :; do 3381a650d1eSmrg case $as_dir in #( 33999c4c48aSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3401a650d1eSmrg *) as_qdir=$as_dir;; 3411a650d1eSmrg esac 3421a650d1eSmrg as_dirs="'$as_qdir' $as_dirs" 3431a650d1eSmrg as_dir=`$as_dirname -- "$as_dir" || 3441a650d1eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3451a650d1eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3461a650d1eSmrg X"$as_dir" : 'X\(//\)$' \| \ 3471a650d1eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34899c4c48aSmrgprintf "%s\n" X"$as_dir" | 3491a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3501a650d1eSmrg s//\1/ 3511a650d1eSmrg q 3521a650d1eSmrg } 3531a650d1eSmrg /^X\(\/\/\)[^/].*/{ 3541a650d1eSmrg s//\1/ 3551a650d1eSmrg q 3561a650d1eSmrg } 3571a650d1eSmrg /^X\(\/\/\)$/{ 3581a650d1eSmrg s//\1/ 3591a650d1eSmrg q 3601a650d1eSmrg } 3611a650d1eSmrg /^X\(\/\).*/{ 3621a650d1eSmrg s//\1/ 3631a650d1eSmrg q 3641a650d1eSmrg } 3651a650d1eSmrg s/.*/./; q'` 3661a650d1eSmrg test -d "$as_dir" && break 3671a650d1eSmrg done 3681a650d1eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3691a650d1eSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3701a650d1eSmrg 3711a650d1eSmrg 3721a650d1eSmrg} # as_fn_mkdir_p 3738a355152Smrg 3748a355152Smrg# as_fn_executable_p FILE 3758a355152Smrg# ----------------------- 3768a355152Smrg# Test if FILE is an executable regular file. 3778a355152Smrgas_fn_executable_p () 3788a355152Smrg{ 3798a355152Smrg test -f "$1" && test -x "$1" 3808a355152Smrg} # as_fn_executable_p 3811a650d1eSmrg# as_fn_append VAR VALUE 3821a650d1eSmrg# ---------------------- 3831a650d1eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3841a650d1eSmrg# advantage of any shell optimizations that allow amortized linear growth over 3851a650d1eSmrg# repeated appends, instead of the typical quadratic growth present in naive 3861a650d1eSmrg# implementations. 38799c4c48aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 38899c4c48aSmrgthen : 3891a650d1eSmrg eval 'as_fn_append () 3901a650d1eSmrg { 3911a650d1eSmrg eval $1+=\$2 3921a650d1eSmrg }' 39399c4c48aSmrgelse $as_nop 3941a650d1eSmrg as_fn_append () 3951a650d1eSmrg { 3961a650d1eSmrg eval $1=\$$1\$2 3971a650d1eSmrg } 3981a650d1eSmrgfi # as_fn_append 3991a650d1eSmrg 4001a650d1eSmrg# as_fn_arith ARG... 4011a650d1eSmrg# ------------------ 4021a650d1eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 4031a650d1eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 4041a650d1eSmrg# must be portable across $(()) and expr. 40599c4c48aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 40699c4c48aSmrgthen : 4071a650d1eSmrg eval 'as_fn_arith () 4081a650d1eSmrg { 4091a650d1eSmrg as_val=$(( $* )) 4101a650d1eSmrg }' 41199c4c48aSmrgelse $as_nop 4121a650d1eSmrg as_fn_arith () 4131a650d1eSmrg { 4141a650d1eSmrg as_val=`expr "$@" || test $? -eq 1` 4151a650d1eSmrg } 4161a650d1eSmrgfi # as_fn_arith 4171a650d1eSmrg 41899c4c48aSmrg# as_fn_nop 41999c4c48aSmrg# --------- 42099c4c48aSmrg# Do nothing but, unlike ":", preserve the value of $?. 42199c4c48aSmrgas_fn_nop () 42299c4c48aSmrg{ 42399c4c48aSmrg return $? 42499c4c48aSmrg} 42599c4c48aSmrgas_nop=as_fn_nop 4261a650d1eSmrg 4271a650d1eSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4281a650d1eSmrg# ---------------------------------------- 4291a650d1eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4301a650d1eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4311a650d1eSmrg# script with STATUS, using 1 if that was 0. 4321a650d1eSmrgas_fn_error () 4331a650d1eSmrg{ 4341a650d1eSmrg as_status=$1; test $as_status -eq 0 && as_status=1 4351a650d1eSmrg if test "$4"; then 4361a650d1eSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 43799c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4381a650d1eSmrg fi 43999c4c48aSmrg printf "%s\n" "$as_me: error: $2" >&2 4401a650d1eSmrg as_fn_exit $as_status 4411a650d1eSmrg} # as_fn_error 4421a650d1eSmrg 4431a650d1eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4441a650d1eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4458108eb18Smrg as_expr=expr 4468108eb18Smrgelse 4478108eb18Smrg as_expr=false 4488108eb18Smrgfi 4498108eb18Smrg 4501a650d1eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4518108eb18Smrg as_basename=basename 4528108eb18Smrgelse 4538108eb18Smrg as_basename=false 4548108eb18Smrgfi 4558108eb18Smrg 4561a650d1eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4571a650d1eSmrg as_dirname=dirname 4581a650d1eSmrgelse 4591a650d1eSmrg as_dirname=false 4601a650d1eSmrgfi 4618108eb18Smrg 4621a650d1eSmrgas_me=`$as_basename -- "$0" || 4638108eb18Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4648108eb18Smrg X"$0" : 'X\(//\)$' \| \ 4651a650d1eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 46699c4c48aSmrgprintf "%s\n" X/"$0" | 4671a650d1eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4681a650d1eSmrg s//\1/ 4691a650d1eSmrg q 4701a650d1eSmrg } 4711a650d1eSmrg /^X\/\(\/\/\)$/{ 4721a650d1eSmrg s//\1/ 4731a650d1eSmrg q 4741a650d1eSmrg } 4751a650d1eSmrg /^X\/\(\/\).*/{ 4761a650d1eSmrg s//\1/ 4771a650d1eSmrg q 4781a650d1eSmrg } 4791a650d1eSmrg s/.*/./; q'` 4808108eb18Smrg 4818108eb18Smrg# Avoid depending upon Character Ranges. 4828108eb18Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4838108eb18Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4848108eb18Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4858108eb18Smrgas_cr_digits='0123456789' 4868108eb18Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4878108eb18Smrg 4888108eb18Smrg 4891a650d1eSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4901a650d1eSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4911a650d1eSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4921a650d1eSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4931a650d1eSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4941a650d1eSmrg sed -n ' 4951a650d1eSmrg p 4961a650d1eSmrg /[$]LINENO/= 4971a650d1eSmrg ' <$as_myself | 4988108eb18Smrg sed ' 4991a650d1eSmrg s/[$]LINENO.*/&-/ 5001a650d1eSmrg t lineno 5011a650d1eSmrg b 5021a650d1eSmrg :lineno 5038108eb18Smrg N 5041a650d1eSmrg :loop 5051a650d1eSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5068108eb18Smrg t loop 5071a650d1eSmrg s/-\n.*// 5088108eb18Smrg ' >$as_me.lineno && 5091a650d1eSmrg chmod +x "$as_me.lineno" || 51099c4c48aSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5118108eb18Smrg 5128a355152Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5138a355152Smrg # already done that, so ensure we don't try to do so again and fall 5148a355152Smrg # in an infinite loop. This has already happened in practice. 5158a355152Smrg _as_can_reexec=no; export _as_can_reexec 5168108eb18Smrg # Don't try to exec as it changes $[0], causing all sort of problems 5178108eb18Smrg # (the dirname of $[0] is not the place where we might find the 5181a650d1eSmrg # original and so on. Autoconf is especially sensitive to this). 5191a650d1eSmrg . "./$as_me.lineno" 5208108eb18Smrg # Exit status is that of the last command. 5218108eb18Smrg exit 5228108eb18Smrg} 5238108eb18Smrg 52499c4c48aSmrg 52599c4c48aSmrg# Determine whether it's possible to make 'echo' print without a newline. 52699c4c48aSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 52799c4c48aSmrg# for compatibility with existing Makefiles. 5281a650d1eSmrgECHO_C= ECHO_N= ECHO_T= 5291a650d1eSmrgcase `echo -n x` in #((((( 5301a650d1eSmrg-n*) 5311a650d1eSmrg case `echo 'xy\c'` in 5321a650d1eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5331a650d1eSmrg xy) ECHO_C='\c';; 5341a650d1eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5351a650d1eSmrg ECHO_T=' ';; 5361a650d1eSmrg esac;; 5371a650d1eSmrg*) 5381a650d1eSmrg ECHO_N='-n';; 5398108eb18Smrgesac 5408108eb18Smrg 54199c4c48aSmrg# For backward compatibility with old third-party macros, we provide 54299c4c48aSmrg# the shell variables $as_echo and $as_echo_n. New code should use 54399c4c48aSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 54499c4c48aSmrgas_echo='printf %s\n' 54599c4c48aSmrgas_echo_n='printf %s' 54699c4c48aSmrg 54799c4c48aSmrg 5481a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.file 5491a650d1eSmrgif test -d conf$$.dir; then 5501a650d1eSmrg rm -f conf$$.dir/conf$$.file 5518108eb18Smrgelse 5521a650d1eSmrg rm -f conf$$.dir 5531a650d1eSmrg mkdir conf$$.dir 2>/dev/null 5548108eb18Smrgfi 5551a650d1eSmrgif (echo >conf$$.file) 2>/dev/null; then 5561a650d1eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5578108eb18Smrg as_ln_s='ln -s' 5581a650d1eSmrg # ... but there are two gotchas: 5591a650d1eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5601a650d1eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5618a355152Smrg # In both cases, we have to default to `cp -pR'. 5621a650d1eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5638a355152Smrg as_ln_s='cp -pR' 5641a650d1eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5651a650d1eSmrg as_ln_s=ln 5661a650d1eSmrg else 5678a355152Smrg as_ln_s='cp -pR' 5688108eb18Smrg fi 5698108eb18Smrgelse 5708a355152Smrg as_ln_s='cp -pR' 5718108eb18Smrgfi 5721a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5731a650d1eSmrgrmdir conf$$.dir 2>/dev/null 5748108eb18Smrg 5758108eb18Smrgif mkdir -p . 2>/dev/null; then 5761a650d1eSmrg as_mkdir_p='mkdir -p "$as_dir"' 5778108eb18Smrgelse 5788108eb18Smrg test -d ./-p && rmdir ./-p 5798108eb18Smrg as_mkdir_p=false 5808108eb18Smrgfi 5818108eb18Smrg 5828a355152Smrgas_test_x='test -x' 5838a355152Smrgas_executable_p=as_fn_executable_p 5848108eb18Smrg 5858108eb18Smrg# Sed expression to map a string onto a valid CPP name. 5868108eb18Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5878108eb18Smrg 5888108eb18Smrg# Sed expression to map a string onto a valid variable name. 5898108eb18Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5908108eb18Smrg 5918108eb18Smrg 5921a650d1eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5931a650d1eSmrgexec 6>&1 5948108eb18Smrg 5958108eb18Smrg# Name of the host. 5961a650d1eSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5978108eb18Smrg# so uname gets run too. 5988108eb18Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5998108eb18Smrg 6008108eb18Smrg# 6018108eb18Smrg# Initializations. 6028108eb18Smrg# 6038108eb18Smrgac_default_prefix=/usr/local 6041a650d1eSmrgac_clean_files= 6058108eb18Smrgac_config_libobj_dir=. 6061a650d1eSmrgLIBOBJS= 6078108eb18Smrgcross_compiling=no 6088108eb18Smrgsubdirs= 6098108eb18SmrgMFLAGS= 6108108eb18SmrgMAKEFLAGS= 6118108eb18Smrg 6128108eb18Smrg# Identity of this package. 6138108eb18SmrgPACKAGE_NAME='xsm' 6148108eb18SmrgPACKAGE_TARNAME='xsm' 61599c4c48aSmrgPACKAGE_VERSION='1.0.5' 61699c4c48aSmrgPACKAGE_STRING='xsm 1.0.5' 61799c4c48aSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xsm/issues' 6181a650d1eSmrgPACKAGE_URL='' 6198108eb18Smrg 6205977a007Smrgac_unique_file="Makefile.am" 6211a650d1eSmrg# Factoring default headers for most tests. 6221a650d1eSmrgac_includes_default="\ 62399c4c48aSmrg#include <stddef.h> 62499c4c48aSmrg#ifdef HAVE_STDIO_H 62599c4c48aSmrg# include <stdio.h> 6261a650d1eSmrg#endif 62799c4c48aSmrg#ifdef HAVE_STDLIB_H 6281a650d1eSmrg# include <stdlib.h> 6291a650d1eSmrg#endif 6301a650d1eSmrg#ifdef HAVE_STRING_H 6311a650d1eSmrg# include <string.h> 6321a650d1eSmrg#endif 6331a650d1eSmrg#ifdef HAVE_INTTYPES_H 6341a650d1eSmrg# include <inttypes.h> 6351a650d1eSmrg#endif 6361a650d1eSmrg#ifdef HAVE_STDINT_H 6371a650d1eSmrg# include <stdint.h> 6381a650d1eSmrg#endif 63999c4c48aSmrg#ifdef HAVE_STRINGS_H 64099c4c48aSmrg# include <strings.h> 64199c4c48aSmrg#endif 64299c4c48aSmrg#ifdef HAVE_SYS_TYPES_H 64399c4c48aSmrg# include <sys/types.h> 64499c4c48aSmrg#endif 64599c4c48aSmrg#ifdef HAVE_SYS_STAT_H 64699c4c48aSmrg# include <sys/stat.h> 64799c4c48aSmrg#endif 6481a650d1eSmrg#ifdef HAVE_UNISTD_H 6491a650d1eSmrg# include <unistd.h> 6501a650d1eSmrg#endif" 6511a650d1eSmrg 65299c4c48aSmrgac_header_c_list= 6531a650d1eSmrgac_subst_vars='am__EXEEXT_FALSE 6541a650d1eSmrgam__EXEEXT_TRUE 6551a650d1eSmrgLTLIBOBJS 6561a650d1eSmrgLIBOBJS 6571a650d1eSmrgappdefaultdir 6581a650d1eSmrgXSM_LIBS 6591a650d1eSmrgXSM_CFLAGS 6601a650d1eSmrgRSH 6611a650d1eSmrgMAN_SUBSTS 6621a650d1eSmrgXORG_MAN_PAGE 6631a650d1eSmrgADMIN_MAN_DIR 6641a650d1eSmrgDRIVER_MAN_DIR 6651a650d1eSmrgMISC_MAN_DIR 6661a650d1eSmrgFILE_MAN_DIR 6671a650d1eSmrgLIB_MAN_DIR 6681a650d1eSmrgAPP_MAN_DIR 6691a650d1eSmrgADMIN_MAN_SUFFIX 6701a650d1eSmrgDRIVER_MAN_SUFFIX 6711a650d1eSmrgMISC_MAN_SUFFIX 6721a650d1eSmrgFILE_MAN_SUFFIX 6731a650d1eSmrgLIB_MAN_SUFFIX 6741a650d1eSmrgAPP_MAN_SUFFIX 6751a650d1eSmrgSED 6761a650d1eSmrghost_os 6771a650d1eSmrghost_vendor 6781a650d1eSmrghost_cpu 6791a650d1eSmrghost 6801a650d1eSmrgbuild_os 6811a650d1eSmrgbuild_vendor 6821a650d1eSmrgbuild_cpu 6831a650d1eSmrgbuild 6841a650d1eSmrgINSTALL_CMD 6858a355152SmrgPKG_CONFIG_LIBDIR 6868a355152SmrgPKG_CONFIG_PATH 6871a650d1eSmrgPKG_CONFIG 6881a650d1eSmrgCHANGELOG_CMD 6895977a007SmrgSTRICT_CFLAGS 6901a650d1eSmrgCWARNFLAGS 6915977a007SmrgBASE_CFLAGS 6921a650d1eSmrgam__fastdepCC_FALSE 6931a650d1eSmrgam__fastdepCC_TRUE 6941a650d1eSmrgCCDEPMODE 6955977a007Smrgam__nodep 6961a650d1eSmrgAMDEPBACKSLASH 6971a650d1eSmrgAMDEP_FALSE 6981a650d1eSmrgAMDEP_TRUE 6991a650d1eSmrgam__include 7001a650d1eSmrgDEPDIR 7011a650d1eSmrgOBJEXT 7021a650d1eSmrgEXEEXT 7031a650d1eSmrgac_ct_CC 7041a650d1eSmrgCPPFLAGS 7051a650d1eSmrgLDFLAGS 7061a650d1eSmrgCFLAGS 7071a650d1eSmrgCC 7088a355152SmrgAM_BACKSLASH 7098a355152SmrgAM_DEFAULT_VERBOSITY 7108a355152SmrgAM_DEFAULT_V 7118a355152SmrgAM_V 71299c4c48aSmrgCSCOPE 71399c4c48aSmrgETAGS 71499c4c48aSmrgCTAGS 7151a650d1eSmrgam__untar 7161a650d1eSmrgam__tar 7171a650d1eSmrgAMTAR 7181a650d1eSmrgam__leading_dot 7191a650d1eSmrgSET_MAKE 7201a650d1eSmrgAWK 7211a650d1eSmrgmkdir_p 7221a650d1eSmrgMKDIR_P 7231a650d1eSmrgINSTALL_STRIP_PROGRAM 7241a650d1eSmrgSTRIP 7251a650d1eSmrginstall_sh 7261a650d1eSmrgMAKEINFO 7271a650d1eSmrgAUTOHEADER 7281a650d1eSmrgAUTOMAKE 7291a650d1eSmrgAUTOCONF 7301a650d1eSmrgACLOCAL 7311a650d1eSmrgVERSION 7321a650d1eSmrgPACKAGE 7331a650d1eSmrgCYGPATH_W 7341a650d1eSmrgam__isrc 7351a650d1eSmrgINSTALL_DATA 7361a650d1eSmrgINSTALL_SCRIPT 7371a650d1eSmrgINSTALL_PROGRAM 7381a650d1eSmrgtarget_alias 7391a650d1eSmrghost_alias 7401a650d1eSmrgbuild_alias 7411a650d1eSmrgLIBS 7421a650d1eSmrgECHO_T 7431a650d1eSmrgECHO_N 7441a650d1eSmrgECHO_C 7451a650d1eSmrgDEFS 7461a650d1eSmrgmandir 7471a650d1eSmrglocaledir 7481a650d1eSmrglibdir 7491a650d1eSmrgpsdir 7501a650d1eSmrgpdfdir 7511a650d1eSmrgdvidir 7521a650d1eSmrghtmldir 7531a650d1eSmrginfodir 7541a650d1eSmrgdocdir 7551a650d1eSmrgoldincludedir 7561a650d1eSmrgincludedir 75799c4c48aSmrgrunstatedir 7581a650d1eSmrglocalstatedir 7591a650d1eSmrgsharedstatedir 7601a650d1eSmrgsysconfdir 7611a650d1eSmrgdatadir 7621a650d1eSmrgdatarootdir 7631a650d1eSmrglibexecdir 7641a650d1eSmrgsbindir 7651a650d1eSmrgbindir 7661a650d1eSmrgprogram_transform_name 7671a650d1eSmrgprefix 7681a650d1eSmrgexec_prefix 7691a650d1eSmrgPACKAGE_URL 7701a650d1eSmrgPACKAGE_BUGREPORT 7711a650d1eSmrgPACKAGE_STRING 7721a650d1eSmrgPACKAGE_VERSION 7731a650d1eSmrgPACKAGE_TARNAME 7741a650d1eSmrgPACKAGE_NAME 7751a650d1eSmrgPATH_SEPARATOR 77699c4c48aSmrgSHELL 77799c4c48aSmrgam__quote' 7788108eb18Smrgac_subst_files='' 7791a650d1eSmrgac_user_opts=' 7801a650d1eSmrgenable_option_checking 7818a355152Smrgenable_silent_rules 7821a650d1eSmrgenable_dependency_tracking 7835977a007Smrgenable_selective_werror 7841a650d1eSmrgenable_strict_compilation 7851a650d1eSmrgwith_rsh 7861a650d1eSmrgwith_appdefaultdir 7871a650d1eSmrg' 7881a650d1eSmrg ac_precious_vars='build_alias 7891a650d1eSmrghost_alias 7901a650d1eSmrgtarget_alias 7911a650d1eSmrgCC 7921a650d1eSmrgCFLAGS 7931a650d1eSmrgLDFLAGS 7941a650d1eSmrgLIBS 7951a650d1eSmrgCPPFLAGS 7961a650d1eSmrgPKG_CONFIG 7978a355152SmrgPKG_CONFIG_PATH 7988a355152SmrgPKG_CONFIG_LIBDIR 7991a650d1eSmrgXSM_CFLAGS 8001a650d1eSmrgXSM_LIBS' 8011a650d1eSmrg 8028108eb18Smrg 8038108eb18Smrg# Initialize some variables set by options. 8048108eb18Smrgac_init_help= 8058108eb18Smrgac_init_version=false 8061a650d1eSmrgac_unrecognized_opts= 8071a650d1eSmrgac_unrecognized_sep= 8088108eb18Smrg# The variables have the same names as the options, with 8098108eb18Smrg# dashes changed to underlines. 8108108eb18Smrgcache_file=/dev/null 8118108eb18Smrgexec_prefix=NONE 8128108eb18Smrgno_create= 8138108eb18Smrgno_recursion= 8148108eb18Smrgprefix=NONE 8158108eb18Smrgprogram_prefix=NONE 8168108eb18Smrgprogram_suffix=NONE 8178108eb18Smrgprogram_transform_name=s,x,x, 8188108eb18Smrgsilent= 8198108eb18Smrgsite= 8208108eb18Smrgsrcdir= 8218108eb18Smrgverbose= 8228108eb18Smrgx_includes=NONE 8238108eb18Smrgx_libraries=NONE 8248108eb18Smrg 8258108eb18Smrg# Installation directory options. 8268108eb18Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8278108eb18Smrg# and all the variables that are supposed to be based on exec_prefix 8288108eb18Smrg# by default will actually change. 8298108eb18Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 8301a650d1eSmrg# (The list follows the same order as the GNU Coding Standards.) 8318108eb18Smrgbindir='${exec_prefix}/bin' 8328108eb18Smrgsbindir='${exec_prefix}/sbin' 8338108eb18Smrglibexecdir='${exec_prefix}/libexec' 8341a650d1eSmrgdatarootdir='${prefix}/share' 8351a650d1eSmrgdatadir='${datarootdir}' 8368108eb18Smrgsysconfdir='${prefix}/etc' 8378108eb18Smrgsharedstatedir='${prefix}/com' 8388108eb18Smrglocalstatedir='${prefix}/var' 83999c4c48aSmrgrunstatedir='${localstatedir}/run' 8408108eb18Smrgincludedir='${prefix}/include' 8418108eb18Smrgoldincludedir='/usr/include' 8421a650d1eSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8431a650d1eSmrginfodir='${datarootdir}/info' 8441a650d1eSmrghtmldir='${docdir}' 8451a650d1eSmrgdvidir='${docdir}' 8461a650d1eSmrgpdfdir='${docdir}' 8471a650d1eSmrgpsdir='${docdir}' 8481a650d1eSmrglibdir='${exec_prefix}/lib' 8491a650d1eSmrglocaledir='${datarootdir}/locale' 8501a650d1eSmrgmandir='${datarootdir}/man' 8518108eb18Smrg 8528108eb18Smrgac_prev= 8531a650d1eSmrgac_dashdash= 8548108eb18Smrgfor ac_option 8558108eb18Smrgdo 8568108eb18Smrg # If the previous option needs an argument, assign it. 8578108eb18Smrg if test -n "$ac_prev"; then 8581a650d1eSmrg eval $ac_prev=\$ac_option 8598108eb18Smrg ac_prev= 8608108eb18Smrg continue 8618108eb18Smrg fi 8628108eb18Smrg 8631a650d1eSmrg case $ac_option in 8641a650d1eSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8651a650d1eSmrg *=) ac_optarg= ;; 8661a650d1eSmrg *) ac_optarg=yes ;; 8671a650d1eSmrg esac 8688108eb18Smrg 8691a650d1eSmrg case $ac_dashdash$ac_option in 8701a650d1eSmrg --) 8711a650d1eSmrg ac_dashdash=yes ;; 8728108eb18Smrg 8738108eb18Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8748108eb18Smrg ac_prev=bindir ;; 8758108eb18Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8768108eb18Smrg bindir=$ac_optarg ;; 8778108eb18Smrg 8788108eb18Smrg -build | --build | --buil | --bui | --bu) 8798108eb18Smrg ac_prev=build_alias ;; 8808108eb18Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8818108eb18Smrg build_alias=$ac_optarg ;; 8828108eb18Smrg 8838108eb18Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8848108eb18Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8858108eb18Smrg ac_prev=cache_file ;; 8868108eb18Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8878108eb18Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8888108eb18Smrg cache_file=$ac_optarg ;; 8898108eb18Smrg 8908108eb18Smrg --config-cache | -C) 8918108eb18Smrg cache_file=config.cache ;; 8928108eb18Smrg 8931a650d1eSmrg -datadir | --datadir | --datadi | --datad) 8948108eb18Smrg ac_prev=datadir ;; 8951a650d1eSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8968108eb18Smrg datadir=$ac_optarg ;; 8978108eb18Smrg 8981a650d1eSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8991a650d1eSmrg | --dataroo | --dataro | --datar) 9001a650d1eSmrg ac_prev=datarootdir ;; 9011a650d1eSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 9021a650d1eSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 9031a650d1eSmrg datarootdir=$ac_optarg ;; 9041a650d1eSmrg 9058108eb18Smrg -disable-* | --disable-*) 9061a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9078108eb18Smrg # Reject names that are not valid shell variable names. 9081a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 90999c4c48aSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9101a650d1eSmrg ac_useropt_orig=$ac_useropt 91199c4c48aSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9121a650d1eSmrg case $ac_user_opts in 9131a650d1eSmrg *" 9141a650d1eSmrg"enable_$ac_useropt" 9151a650d1eSmrg"*) ;; 9161a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9171a650d1eSmrg ac_unrecognized_sep=', ';; 9181a650d1eSmrg esac 9191a650d1eSmrg eval enable_$ac_useropt=no ;; 9201a650d1eSmrg 9211a650d1eSmrg -docdir | --docdir | --docdi | --doc | --do) 9221a650d1eSmrg ac_prev=docdir ;; 9231a650d1eSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9241a650d1eSmrg docdir=$ac_optarg ;; 9251a650d1eSmrg 9261a650d1eSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9271a650d1eSmrg ac_prev=dvidir ;; 9281a650d1eSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9291a650d1eSmrg dvidir=$ac_optarg ;; 9308108eb18Smrg 9318108eb18Smrg -enable-* | --enable-*) 9321a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9338108eb18Smrg # Reject names that are not valid shell variable names. 9341a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 93599c4c48aSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 9361a650d1eSmrg ac_useropt_orig=$ac_useropt 93799c4c48aSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9381a650d1eSmrg case $ac_user_opts in 9391a650d1eSmrg *" 9401a650d1eSmrg"enable_$ac_useropt" 9411a650d1eSmrg"*) ;; 9421a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9431a650d1eSmrg ac_unrecognized_sep=', ';; 9448108eb18Smrg esac 9451a650d1eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9468108eb18Smrg 9478108eb18Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9488108eb18Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9498108eb18Smrg | --exec | --exe | --ex) 9508108eb18Smrg ac_prev=exec_prefix ;; 9518108eb18Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9528108eb18Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9538108eb18Smrg | --exec=* | --exe=* | --ex=*) 9548108eb18Smrg exec_prefix=$ac_optarg ;; 9558108eb18Smrg 9568108eb18Smrg -gas | --gas | --ga | --g) 9578108eb18Smrg # Obsolete; use --with-gas. 9588108eb18Smrg with_gas=yes ;; 9598108eb18Smrg 9608108eb18Smrg -help | --help | --hel | --he | -h) 9618108eb18Smrg ac_init_help=long ;; 9628108eb18Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9638108eb18Smrg ac_init_help=recursive ;; 9648108eb18Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9658108eb18Smrg ac_init_help=short ;; 9668108eb18Smrg 9678108eb18Smrg -host | --host | --hos | --ho) 9688108eb18Smrg ac_prev=host_alias ;; 9698108eb18Smrg -host=* | --host=* | --hos=* | --ho=*) 9708108eb18Smrg host_alias=$ac_optarg ;; 9718108eb18Smrg 9721a650d1eSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9731a650d1eSmrg ac_prev=htmldir ;; 9741a650d1eSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9751a650d1eSmrg | --ht=*) 9761a650d1eSmrg htmldir=$ac_optarg ;; 9771a650d1eSmrg 9788108eb18Smrg -includedir | --includedir | --includedi | --included | --include \ 9798108eb18Smrg | --includ | --inclu | --incl | --inc) 9808108eb18Smrg ac_prev=includedir ;; 9818108eb18Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9828108eb18Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9838108eb18Smrg includedir=$ac_optarg ;; 9848108eb18Smrg 9858108eb18Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9868108eb18Smrg ac_prev=infodir ;; 9878108eb18Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9888108eb18Smrg infodir=$ac_optarg ;; 9898108eb18Smrg 9908108eb18Smrg -libdir | --libdir | --libdi | --libd) 9918108eb18Smrg ac_prev=libdir ;; 9928108eb18Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9938108eb18Smrg libdir=$ac_optarg ;; 9948108eb18Smrg 9958108eb18Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9968108eb18Smrg | --libexe | --libex | --libe) 9978108eb18Smrg ac_prev=libexecdir ;; 9988108eb18Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9998108eb18Smrg | --libexe=* | --libex=* | --libe=*) 10008108eb18Smrg libexecdir=$ac_optarg ;; 10018108eb18Smrg 10021a650d1eSmrg -localedir | --localedir | --localedi | --localed | --locale) 10031a650d1eSmrg ac_prev=localedir ;; 10041a650d1eSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 10051a650d1eSmrg localedir=$ac_optarg ;; 10061a650d1eSmrg 10078108eb18Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 10081a650d1eSmrg | --localstate | --localstat | --localsta | --localst | --locals) 10098108eb18Smrg ac_prev=localstatedir ;; 10108108eb18Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10111a650d1eSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10128108eb18Smrg localstatedir=$ac_optarg ;; 10138108eb18Smrg 10148108eb18Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10158108eb18Smrg ac_prev=mandir ;; 10168108eb18Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10178108eb18Smrg mandir=$ac_optarg ;; 10188108eb18Smrg 10198108eb18Smrg -nfp | --nfp | --nf) 10208108eb18Smrg # Obsolete; use --without-fp. 10218108eb18Smrg with_fp=no ;; 10228108eb18Smrg 10238108eb18Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10248108eb18Smrg | --no-cr | --no-c | -n) 10258108eb18Smrg no_create=yes ;; 10268108eb18Smrg 10278108eb18Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10288108eb18Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10298108eb18Smrg no_recursion=yes ;; 10308108eb18Smrg 10318108eb18Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10328108eb18Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10338108eb18Smrg | --oldin | --oldi | --old | --ol | --o) 10348108eb18Smrg ac_prev=oldincludedir ;; 10358108eb18Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10368108eb18Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10378108eb18Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10388108eb18Smrg oldincludedir=$ac_optarg ;; 10398108eb18Smrg 10408108eb18Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10418108eb18Smrg ac_prev=prefix ;; 10428108eb18Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10438108eb18Smrg prefix=$ac_optarg ;; 10448108eb18Smrg 10458108eb18Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10468108eb18Smrg | --program-pre | --program-pr | --program-p) 10478108eb18Smrg ac_prev=program_prefix ;; 10488108eb18Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10498108eb18Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10508108eb18Smrg program_prefix=$ac_optarg ;; 10518108eb18Smrg 10528108eb18Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10538108eb18Smrg | --program-suf | --program-su | --program-s) 10548108eb18Smrg ac_prev=program_suffix ;; 10558108eb18Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10568108eb18Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10578108eb18Smrg program_suffix=$ac_optarg ;; 10588108eb18Smrg 10598108eb18Smrg -program-transform-name | --program-transform-name \ 10608108eb18Smrg | --program-transform-nam | --program-transform-na \ 10618108eb18Smrg | --program-transform-n | --program-transform- \ 10628108eb18Smrg | --program-transform | --program-transfor \ 10638108eb18Smrg | --program-transfo | --program-transf \ 10648108eb18Smrg | --program-trans | --program-tran \ 10658108eb18Smrg | --progr-tra | --program-tr | --program-t) 10668108eb18Smrg ac_prev=program_transform_name ;; 10678108eb18Smrg -program-transform-name=* | --program-transform-name=* \ 10688108eb18Smrg | --program-transform-nam=* | --program-transform-na=* \ 10698108eb18Smrg | --program-transform-n=* | --program-transform-=* \ 10708108eb18Smrg | --program-transform=* | --program-transfor=* \ 10718108eb18Smrg | --program-transfo=* | --program-transf=* \ 10728108eb18Smrg | --program-trans=* | --program-tran=* \ 10738108eb18Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10748108eb18Smrg program_transform_name=$ac_optarg ;; 10758108eb18Smrg 10761a650d1eSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10771a650d1eSmrg ac_prev=pdfdir ;; 10781a650d1eSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10791a650d1eSmrg pdfdir=$ac_optarg ;; 10801a650d1eSmrg 10811a650d1eSmrg -psdir | --psdir | --psdi | --psd | --ps) 10821a650d1eSmrg ac_prev=psdir ;; 10831a650d1eSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10841a650d1eSmrg psdir=$ac_optarg ;; 10851a650d1eSmrg 10868108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10878108eb18Smrg | -silent | --silent | --silen | --sile | --sil) 10888108eb18Smrg silent=yes ;; 10898108eb18Smrg 109099c4c48aSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 109199c4c48aSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 109299c4c48aSmrg | --run | --ru | --r) 109399c4c48aSmrg ac_prev=runstatedir ;; 109499c4c48aSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 109599c4c48aSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 109699c4c48aSmrg | --run=* | --ru=* | --r=*) 109799c4c48aSmrg runstatedir=$ac_optarg ;; 109899c4c48aSmrg 10998108eb18Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 11008108eb18Smrg ac_prev=sbindir ;; 11018108eb18Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 11028108eb18Smrg | --sbi=* | --sb=*) 11038108eb18Smrg sbindir=$ac_optarg ;; 11048108eb18Smrg 11058108eb18Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 11068108eb18Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11078108eb18Smrg | --sharedst | --shareds | --shared | --share | --shar \ 11088108eb18Smrg | --sha | --sh) 11098108eb18Smrg ac_prev=sharedstatedir ;; 11108108eb18Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11118108eb18Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11128108eb18Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11138108eb18Smrg | --sha=* | --sh=*) 11148108eb18Smrg sharedstatedir=$ac_optarg ;; 11158108eb18Smrg 11168108eb18Smrg -site | --site | --sit) 11178108eb18Smrg ac_prev=site ;; 11188108eb18Smrg -site=* | --site=* | --sit=*) 11198108eb18Smrg site=$ac_optarg ;; 11208108eb18Smrg 11218108eb18Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11228108eb18Smrg ac_prev=srcdir ;; 11238108eb18Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11248108eb18Smrg srcdir=$ac_optarg ;; 11258108eb18Smrg 11268108eb18Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11278108eb18Smrg | --syscon | --sysco | --sysc | --sys | --sy) 11288108eb18Smrg ac_prev=sysconfdir ;; 11298108eb18Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11308108eb18Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11318108eb18Smrg sysconfdir=$ac_optarg ;; 11328108eb18Smrg 11338108eb18Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 11348108eb18Smrg ac_prev=target_alias ;; 11358108eb18Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11368108eb18Smrg target_alias=$ac_optarg ;; 11378108eb18Smrg 11388108eb18Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11398108eb18Smrg verbose=yes ;; 11408108eb18Smrg 11418108eb18Smrg -version | --version | --versio | --versi | --vers | -V) 11428108eb18Smrg ac_init_version=: ;; 11438108eb18Smrg 11448108eb18Smrg -with-* | --with-*) 11451a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11468108eb18Smrg # Reject names that are not valid shell variable names. 11471a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 114899c4c48aSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11491a650d1eSmrg ac_useropt_orig=$ac_useropt 115099c4c48aSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11511a650d1eSmrg case $ac_user_opts in 11521a650d1eSmrg *" 11531a650d1eSmrg"with_$ac_useropt" 11541a650d1eSmrg"*) ;; 11551a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11561a650d1eSmrg ac_unrecognized_sep=', ';; 11578108eb18Smrg esac 11581a650d1eSmrg eval with_$ac_useropt=\$ac_optarg ;; 11598108eb18Smrg 11608108eb18Smrg -without-* | --without-*) 11611a650d1eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11628108eb18Smrg # Reject names that are not valid shell variable names. 11631a650d1eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 116499c4c48aSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 11651a650d1eSmrg ac_useropt_orig=$ac_useropt 116699c4c48aSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11671a650d1eSmrg case $ac_user_opts in 11681a650d1eSmrg *" 11691a650d1eSmrg"with_$ac_useropt" 11701a650d1eSmrg"*) ;; 11711a650d1eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11721a650d1eSmrg ac_unrecognized_sep=', ';; 11731a650d1eSmrg esac 11741a650d1eSmrg eval with_$ac_useropt=no ;; 11758108eb18Smrg 11768108eb18Smrg --x) 11778108eb18Smrg # Obsolete; use --with-x. 11788108eb18Smrg with_x=yes ;; 11798108eb18Smrg 11808108eb18Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11818108eb18Smrg | --x-incl | --x-inc | --x-in | --x-i) 11828108eb18Smrg ac_prev=x_includes ;; 11838108eb18Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11848108eb18Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11858108eb18Smrg x_includes=$ac_optarg ;; 11868108eb18Smrg 11878108eb18Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11888108eb18Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11898108eb18Smrg ac_prev=x_libraries ;; 11908108eb18Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11918108eb18Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11928108eb18Smrg x_libraries=$ac_optarg ;; 11938108eb18Smrg 11941a650d1eSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11951a650d1eSmrgTry \`$0 --help' for more information" 11968108eb18Smrg ;; 11978108eb18Smrg 11988108eb18Smrg *=*) 11998108eb18Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 12008108eb18Smrg # Reject names that are not valid shell variable names. 12011a650d1eSmrg case $ac_envvar in #( 12021a650d1eSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 12031a650d1eSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12041a650d1eSmrg esac 12051a650d1eSmrg eval $ac_envvar=\$ac_optarg 12068108eb18Smrg export $ac_envvar ;; 12078108eb18Smrg 12088108eb18Smrg *) 12098108eb18Smrg # FIXME: should be removed in autoconf 3.0. 121099c4c48aSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12118108eb18Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 121299c4c48aSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 12131a650d1eSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12148108eb18Smrg ;; 12158108eb18Smrg 12168108eb18Smrg esac 12178108eb18Smrgdone 12188108eb18Smrg 12198108eb18Smrgif test -n "$ac_prev"; then 12208108eb18Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12211a650d1eSmrg as_fn_error $? "missing argument to $ac_option" 12228108eb18Smrgfi 12238108eb18Smrg 12241a650d1eSmrgif test -n "$ac_unrecognized_opts"; then 12251a650d1eSmrg case $enable_option_checking in 12261a650d1eSmrg no) ;; 12271a650d1eSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 122899c4c48aSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12298108eb18Smrg esac 12301a650d1eSmrgfi 12318108eb18Smrg 12321a650d1eSmrg# Check all directory arguments for consistency. 12331a650d1eSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12341a650d1eSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12351a650d1eSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 123699c4c48aSmrg libdir localedir mandir runstatedir 12378108eb18Smrgdo 12381a650d1eSmrg eval ac_val=\$$ac_var 12391a650d1eSmrg # Remove trailing slashes. 12408108eb18Smrg case $ac_val in 12411a650d1eSmrg */ ) 12421a650d1eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12431a650d1eSmrg eval $ac_var=\$ac_val;; 12448108eb18Smrg esac 12451a650d1eSmrg # Be sure to have absolute directory names. 12461a650d1eSmrg case $ac_val in 12471a650d1eSmrg [\\/$]* | ?:[\\/]* ) continue;; 12481a650d1eSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12491a650d1eSmrg esac 12501a650d1eSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12518108eb18Smrgdone 12528108eb18Smrg 12538108eb18Smrg# There might be people who depend on the old broken behavior: `$host' 12548108eb18Smrg# used to hold the argument of --host etc. 12558108eb18Smrg# FIXME: To remove some day. 12568108eb18Smrgbuild=$build_alias 12578108eb18Smrghost=$host_alias 12588108eb18Smrgtarget=$target_alias 12598108eb18Smrg 12608108eb18Smrg# FIXME: To remove some day. 12618108eb18Smrgif test "x$host_alias" != x; then 12628108eb18Smrg if test "x$build_alias" = x; then 12638108eb18Smrg cross_compiling=maybe 12648108eb18Smrg elif test "x$build_alias" != "x$host_alias"; then 12658108eb18Smrg cross_compiling=yes 12668108eb18Smrg fi 12678108eb18Smrgfi 12688108eb18Smrg 12698108eb18Smrgac_tool_prefix= 12708108eb18Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12718108eb18Smrg 12728108eb18Smrgtest "$silent" = yes && exec 6>/dev/null 12738108eb18Smrg 12748108eb18Smrg 12751a650d1eSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12761a650d1eSmrgac_ls_di=`ls -di .` && 12771a650d1eSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12781a650d1eSmrg as_fn_error $? "working directory cannot be determined" 12791a650d1eSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12801a650d1eSmrg as_fn_error $? "pwd does not report name of working directory" 12811a650d1eSmrg 12821a650d1eSmrg 12838108eb18Smrg# Find the source files, if location was not specified. 12848108eb18Smrgif test -z "$srcdir"; then 12858108eb18Smrg ac_srcdir_defaulted=yes 12861a650d1eSmrg # Try the directory containing this script, then the parent directory. 12871a650d1eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12881a650d1eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12891a650d1eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12901a650d1eSmrg X"$as_myself" : 'X\(//\)$' \| \ 12911a650d1eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 129299c4c48aSmrgprintf "%s\n" X"$as_myself" | 12931a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12941a650d1eSmrg s//\1/ 12951a650d1eSmrg q 12961a650d1eSmrg } 12971a650d1eSmrg /^X\(\/\/\)[^/].*/{ 12981a650d1eSmrg s//\1/ 12991a650d1eSmrg q 13001a650d1eSmrg } 13011a650d1eSmrg /^X\(\/\/\)$/{ 13021a650d1eSmrg s//\1/ 13031a650d1eSmrg q 13041a650d1eSmrg } 13051a650d1eSmrg /^X\(\/\).*/{ 13061a650d1eSmrg s//\1/ 13071a650d1eSmrg q 13081a650d1eSmrg } 13091a650d1eSmrg s/.*/./; q'` 13108108eb18Smrg srcdir=$ac_confdir 13111a650d1eSmrg if test ! -r "$srcdir/$ac_unique_file"; then 13128108eb18Smrg srcdir=.. 13138108eb18Smrg fi 13148108eb18Smrgelse 13158108eb18Smrg ac_srcdir_defaulted=no 13168108eb18Smrgfi 13171a650d1eSmrgif test ! -r "$srcdir/$ac_unique_file"; then 13181a650d1eSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13191a650d1eSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13201a650d1eSmrgfi 13211a650d1eSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 13221a650d1eSmrgac_abs_confdir=`( 13231a650d1eSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13241a650d1eSmrg pwd)` 13251a650d1eSmrg# When building in place, set srcdir=. 13261a650d1eSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 13271a650d1eSmrg srcdir=. 13281a650d1eSmrgfi 13291a650d1eSmrg# Remove unnecessary trailing slashes from srcdir. 13301a650d1eSmrg# Double slashes in file names in object file debugging info 13311a650d1eSmrg# mess up M-x gdb in Emacs. 13321a650d1eSmrgcase $srcdir in 13331a650d1eSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13341a650d1eSmrgesac 13351a650d1eSmrgfor ac_var in $ac_precious_vars; do 13361a650d1eSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13371a650d1eSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13381a650d1eSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13391a650d1eSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13401a650d1eSmrgdone 13418108eb18Smrg 13428108eb18Smrg# 13438108eb18Smrg# Report the --help message. 13448108eb18Smrg# 13458108eb18Smrgif test "$ac_init_help" = "long"; then 13468108eb18Smrg # Omit some internal or obsolete options to make the list less imposing. 13478108eb18Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13488108eb18Smrg cat <<_ACEOF 134999c4c48aSmrg\`configure' configures xsm 1.0.5 to adapt to many kinds of systems. 13508108eb18Smrg 13518108eb18SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13528108eb18Smrg 13538108eb18SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13548108eb18SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13558108eb18Smrg 13568108eb18SmrgDefaults for the options are specified in brackets. 13578108eb18Smrg 13588108eb18SmrgConfiguration: 13598108eb18Smrg -h, --help display this help and exit 13608108eb18Smrg --help=short display options specific to this package 13618108eb18Smrg --help=recursive display the short help of all the included packages 13628108eb18Smrg -V, --version display version information and exit 13631a650d1eSmrg -q, --quiet, --silent do not print \`checking ...' messages 13648108eb18Smrg --cache-file=FILE cache test results in FILE [disabled] 13658108eb18Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13668108eb18Smrg -n, --no-create do not create output files 13678108eb18Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13688108eb18Smrg 13698108eb18SmrgInstallation directories: 13708108eb18Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13711a650d1eSmrg [$ac_default_prefix] 13728108eb18Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13731a650d1eSmrg [PREFIX] 13748108eb18Smrg 13758108eb18SmrgBy default, \`make install' will install all the files in 13768108eb18Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13778108eb18Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13788108eb18Smrgfor instance \`--prefix=\$HOME'. 13798108eb18Smrg 13808108eb18SmrgFor better control, use the options below. 13818108eb18Smrg 13828108eb18SmrgFine tuning of the installation directories: 13831a650d1eSmrg --bindir=DIR user executables [EPREFIX/bin] 13841a650d1eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13851a650d1eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13861a650d1eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13871a650d1eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13881a650d1eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 138999c4c48aSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13901a650d1eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13911a650d1eSmrg --includedir=DIR C header files [PREFIX/include] 13921a650d1eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13931a650d1eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13941a650d1eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13951a650d1eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13961a650d1eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13971a650d1eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13981a650d1eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xsm] 13991a650d1eSmrg --htmldir=DIR html documentation [DOCDIR] 14001a650d1eSmrg --dvidir=DIR dvi documentation [DOCDIR] 14011a650d1eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 14021a650d1eSmrg --psdir=DIR ps documentation [DOCDIR] 14038108eb18Smrg_ACEOF 14048108eb18Smrg 14058108eb18Smrg cat <<\_ACEOF 14068108eb18Smrg 14078108eb18SmrgProgram names: 14088108eb18Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 14098108eb18Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 14108108eb18Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14118108eb18Smrg 14128108eb18SmrgSystem types: 14138108eb18Smrg --build=BUILD configure for building on BUILD [guessed] 14148108eb18Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 14158108eb18Smrg_ACEOF 14168108eb18Smrgfi 14178108eb18Smrg 14188108eb18Smrgif test -n "$ac_init_help"; then 14198108eb18Smrg case $ac_init_help in 142099c4c48aSmrg short | recursive ) echo "Configuration of xsm 1.0.5:";; 14218108eb18Smrg esac 14228108eb18Smrg cat <<\_ACEOF 14238108eb18Smrg 14248108eb18SmrgOptional Features: 14251a650d1eSmrg --disable-option-checking ignore unrecognized --enable/--with options 14268108eb18Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14278108eb18Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14288a355152Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 14298a355152Smrg --disable-silent-rules verbose build output (undo: "make V=0") 14308a355152Smrg --enable-dependency-tracking 14318a355152Smrg do not reject slow dependency extractors 14328a355152Smrg --disable-dependency-tracking 14338a355152Smrg speeds up one-time build 14345977a007Smrg --disable-selective-werror 14355977a007Smrg Turn off selective compiler errors. (default: 14365977a007Smrg enabled) 14371a650d1eSmrg --enable-strict-compilation 14381a650d1eSmrg Enable all warnings from compiler and make them 14391a650d1eSmrg errors (default: disabled) 14408108eb18Smrg 14418108eb18SmrgOptional Packages: 14428108eb18Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14438108eb18Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14441a650d1eSmrg --with-rsh=PATH Rsh command to use (default: $bindir/ssh) 14451a650d1eSmrg --with-appdefaultdir=<pathname> 14461a650d1eSmrg specify directory for app-defaults files (default is 14471a650d1eSmrg autodetected) 14488108eb18Smrg 14498108eb18SmrgSome influential environment variables: 14508108eb18Smrg CC C compiler command 14518108eb18Smrg CFLAGS C compiler flags 14528108eb18Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14538108eb18Smrg nonstandard directory <lib dir> 14541a650d1eSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14551a650d1eSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14561a650d1eSmrg you have headers in a nonstandard directory <include dir> 14578108eb18Smrg PKG_CONFIG path to pkg-config utility 14588a355152Smrg PKG_CONFIG_PATH 14598a355152Smrg directories to add to pkg-config's search path 14608a355152Smrg PKG_CONFIG_LIBDIR 14618a355152Smrg path overriding pkg-config's built-in search path 14621a650d1eSmrg XSM_CFLAGS C compiler flags for XSM, overriding pkg-config 14631a650d1eSmrg XSM_LIBS linker flags for XSM, overriding pkg-config 14648108eb18Smrg 14658108eb18SmrgUse these variables to override the choices made by `configure' or to help 14668108eb18Smrgit to find libraries and programs with nonstandard names/locations. 14678108eb18Smrg 146899c4c48aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/issues>. 14698108eb18Smrg_ACEOF 14701a650d1eSmrgac_status=$? 14718108eb18Smrgfi 14728108eb18Smrg 14738108eb18Smrgif test "$ac_init_help" = "recursive"; then 14748108eb18Smrg # If there are subdirs, report their specific --help. 14758108eb18Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14761a650d1eSmrg test -d "$ac_dir" || 14771a650d1eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14781a650d1eSmrg continue 14798108eb18Smrg ac_builddir=. 14808108eb18Smrg 14811a650d1eSmrgcase "$ac_dir" in 14821a650d1eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14831a650d1eSmrg*) 148499c4c48aSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14851a650d1eSmrg # A ".." for each directory in $ac_dir_suffix. 148699c4c48aSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14871a650d1eSmrg case $ac_top_builddir_sub in 14881a650d1eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14891a650d1eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14901a650d1eSmrg esac ;; 14911a650d1eSmrgesac 14921a650d1eSmrgac_abs_top_builddir=$ac_pwd 14931a650d1eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14941a650d1eSmrg# for backward compatibility: 14951a650d1eSmrgac_top_builddir=$ac_top_build_prefix 14968108eb18Smrg 14978108eb18Smrgcase $srcdir in 14981a650d1eSmrg .) # We are building in place. 14998108eb18Smrg ac_srcdir=. 15001a650d1eSmrg ac_top_srcdir=$ac_top_builddir_sub 15011a650d1eSmrg ac_abs_top_srcdir=$ac_pwd ;; 15021a650d1eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 15038108eb18Smrg ac_srcdir=$srcdir$ac_dir_suffix; 15041a650d1eSmrg ac_top_srcdir=$srcdir 15051a650d1eSmrg ac_abs_top_srcdir=$srcdir ;; 15061a650d1eSmrg *) # Relative name. 15071a650d1eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15081a650d1eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 15091a650d1eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15108108eb18Smrgesac 15111a650d1eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15121a650d1eSmrg 15131a650d1eSmrg cd "$ac_dir" || { ac_status=$?; continue; } 151499c4c48aSmrg # Check for configure.gnu first; this name is used for a wrapper for 151599c4c48aSmrg # Metaconfig's "Configure" on case-insensitive file systems. 15161a650d1eSmrg if test -f "$ac_srcdir/configure.gnu"; then 15171a650d1eSmrg echo && 15181a650d1eSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15191a650d1eSmrg elif test -f "$ac_srcdir/configure"; then 15201a650d1eSmrg echo && 15211a650d1eSmrg $SHELL "$ac_srcdir/configure" --help=recursive 15228108eb18Smrg else 152399c4c48aSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15241a650d1eSmrg fi || ac_status=$? 15251a650d1eSmrg cd "$ac_pwd" || { ac_status=$?; break; } 15268108eb18Smrg done 15278108eb18Smrgfi 15288108eb18Smrg 15291a650d1eSmrgtest -n "$ac_init_help" && exit $ac_status 15308108eb18Smrgif $ac_init_version; then 15318108eb18Smrg cat <<\_ACEOF 153299c4c48aSmrgxsm configure 1.0.5 153399c4c48aSmrggenerated by GNU Autoconf 2.71 15348108eb18Smrg 153599c4c48aSmrgCopyright (C) 2021 Free Software Foundation, Inc. 15368108eb18SmrgThis configure script is free software; the Free Software Foundation 15378108eb18Smrggives unlimited permission to copy, distribute and modify it. 15388108eb18Smrg_ACEOF 15391a650d1eSmrg exit 15408108eb18Smrgfi 15418108eb18Smrg 15421a650d1eSmrg## ------------------------ ## 15431a650d1eSmrg## Autoconf initialization. ## 15441a650d1eSmrg## ------------------------ ## 15458108eb18Smrg 15461a650d1eSmrg# ac_fn_c_try_compile LINENO 15471a650d1eSmrg# -------------------------- 15481a650d1eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15491a650d1eSmrgac_fn_c_try_compile () 15508108eb18Smrg{ 15511a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 155299c4c48aSmrg rm -f conftest.$ac_objext conftest.beam 15531a650d1eSmrg if { { ac_try="$ac_compile" 15541a650d1eSmrgcase "(($ac_try" in 15551a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15561a650d1eSmrg *) ac_try_echo=$ac_try;; 15571a650d1eSmrgesac 15581a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 155999c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 15601a650d1eSmrg (eval "$ac_compile") 2>conftest.err 15611a650d1eSmrg ac_status=$? 15621a650d1eSmrg if test -s conftest.err; then 15631a650d1eSmrg grep -v '^ *+' conftest.err >conftest.er1 15641a650d1eSmrg cat conftest.er1 >&5 15651a650d1eSmrg mv -f conftest.er1 conftest.err 15661a650d1eSmrg fi 156799c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15681a650d1eSmrg test $ac_status = 0; } && { 15691a650d1eSmrg test -z "$ac_c_werror_flag" || 15701a650d1eSmrg test ! -s conftest.err 157199c4c48aSmrg } && test -s conftest.$ac_objext 157299c4c48aSmrgthen : 15731a650d1eSmrg ac_retval=0 157499c4c48aSmrgelse $as_nop 157599c4c48aSmrg printf "%s\n" "$as_me: failed program was:" >&5 15761a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 15778108eb18Smrg 15781a650d1eSmrg ac_retval=1 15791a650d1eSmrgfi 15801a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15811a650d1eSmrg as_fn_set_status $ac_retval 15828108eb18Smrg 15831a650d1eSmrg} # ac_fn_c_try_compile 15848108eb18Smrg 158599c4c48aSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 158699c4c48aSmrg# ------------------------------------------------------------------ 15871a650d1eSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 158899c4c48aSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 158999c4c48aSmrgac_fn_check_decl () 15901a650d1eSmrg{ 15911a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15921a650d1eSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 159399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 159499c4c48aSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 159599c4c48aSmrgif eval test \${$3+y} 159699c4c48aSmrgthen : 159799c4c48aSmrg printf %s "(cached) " >&6 159899c4c48aSmrgelse $as_nop 15991a650d1eSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 160099c4c48aSmrg eval ac_save_FLAGS=\$$6 160199c4c48aSmrg as_fn_append $6 " $5" 16021a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031a650d1eSmrg/* end confdefs.h. */ 16041a650d1eSmrg$4 16051a650d1eSmrgint 160699c4c48aSmrgmain (void) 16071a650d1eSmrg{ 16081a650d1eSmrg#ifndef $as_decl_name 16091a650d1eSmrg#ifdef __cplusplus 16101a650d1eSmrg (void) $as_decl_use; 16111a650d1eSmrg#else 16121a650d1eSmrg (void) $as_decl_name; 16131a650d1eSmrg#endif 16141a650d1eSmrg#endif 16158108eb18Smrg 16161a650d1eSmrg ; 16171a650d1eSmrg return 0; 16181a650d1eSmrg} 16191a650d1eSmrg_ACEOF 162099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 162199c4c48aSmrgthen : 16221a650d1eSmrg eval "$3=yes" 162399c4c48aSmrgelse $as_nop 16241a650d1eSmrg eval "$3=no" 16251a650d1eSmrgfi 162699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 162799c4c48aSmrg eval $6=\$ac_save_FLAGS 16281a650d1eSmrg 16291a650d1eSmrgfi 163099c4c48aSmrgeval ac_res=\$$3 163199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 163299c4c48aSmrgprintf "%s\n" "$ac_res" >&6; } 16331a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16341a650d1eSmrg 163599c4c48aSmrg} # ac_fn_check_decl 16361a650d1eSmrg 16371a650d1eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16381a650d1eSmrg# ------------------------------------------------------- 16391a650d1eSmrg# Tests whether HEADER exists and can be compiled using the include files in 16401a650d1eSmrg# INCLUDES, setting the cache variable VAR accordingly. 16411a650d1eSmrgac_fn_c_check_header_compile () 16421a650d1eSmrg{ 16431a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 164499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 164599c4c48aSmrgprintf %s "checking for $2... " >&6; } 164699c4c48aSmrgif eval test \${$3+y} 164799c4c48aSmrgthen : 164899c4c48aSmrg printf %s "(cached) " >&6 164999c4c48aSmrgelse $as_nop 16501a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16511a650d1eSmrg/* end confdefs.h. */ 16521a650d1eSmrg$4 16531a650d1eSmrg#include <$2> 16541a650d1eSmrg_ACEOF 165599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 165699c4c48aSmrgthen : 16571a650d1eSmrg eval "$3=yes" 165899c4c48aSmrgelse $as_nop 16591a650d1eSmrg eval "$3=no" 16601a650d1eSmrgfi 166199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16621a650d1eSmrgfi 16631a650d1eSmrgeval ac_res=\$$3 166499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 166599c4c48aSmrgprintf "%s\n" "$ac_res" >&6; } 16661a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16671a650d1eSmrg 16681a650d1eSmrg} # ac_fn_c_check_header_compile 16691a650d1eSmrg 16701a650d1eSmrg# ac_fn_c_try_link LINENO 16711a650d1eSmrg# ----------------------- 16721a650d1eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16731a650d1eSmrgac_fn_c_try_link () 16741a650d1eSmrg{ 16751a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 167699c4c48aSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 16771a650d1eSmrg if { { ac_try="$ac_link" 16781a650d1eSmrgcase "(($ac_try" in 16791a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16801a650d1eSmrg *) ac_try_echo=$ac_try;; 16811a650d1eSmrgesac 16821a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 168399c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 16841a650d1eSmrg (eval "$ac_link") 2>conftest.err 16851a650d1eSmrg ac_status=$? 16861a650d1eSmrg if test -s conftest.err; then 16871a650d1eSmrg grep -v '^ *+' conftest.err >conftest.er1 16881a650d1eSmrg cat conftest.er1 >&5 16891a650d1eSmrg mv -f conftest.er1 conftest.err 16901a650d1eSmrg fi 169199c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16921a650d1eSmrg test $ac_status = 0; } && { 16931a650d1eSmrg test -z "$ac_c_werror_flag" || 16941a650d1eSmrg test ! -s conftest.err 16951a650d1eSmrg } && test -s conftest$ac_exeext && { 16961a650d1eSmrg test "$cross_compiling" = yes || 16978a355152Smrg test -x conftest$ac_exeext 169899c4c48aSmrg } 169999c4c48aSmrgthen : 17001a650d1eSmrg ac_retval=0 170199c4c48aSmrgelse $as_nop 170299c4c48aSmrg printf "%s\n" "$as_me: failed program was:" >&5 17031a650d1eSmrgsed 's/^/| /' conftest.$ac_ext >&5 17041a650d1eSmrg 17051a650d1eSmrg ac_retval=1 17061a650d1eSmrgfi 17071a650d1eSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17081a650d1eSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17091a650d1eSmrg # interfere with the next link command; also delete a directory that is 17101a650d1eSmrg # left behind by Apple's compiler. We do this before executing the actions. 17111a650d1eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17121a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17131a650d1eSmrg as_fn_set_status $ac_retval 17141a650d1eSmrg 17151a650d1eSmrg} # ac_fn_c_try_link 17161a650d1eSmrg 17171a650d1eSmrg# ac_fn_c_check_func LINENO FUNC VAR 17181a650d1eSmrg# ---------------------------------- 17191a650d1eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17201a650d1eSmrgac_fn_c_check_func () 17211a650d1eSmrg{ 17221a650d1eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 172399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 172499c4c48aSmrgprintf %s "checking for $2... " >&6; } 172599c4c48aSmrgif eval test \${$3+y} 172699c4c48aSmrgthen : 172799c4c48aSmrg printf %s "(cached) " >&6 172899c4c48aSmrgelse $as_nop 17291a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301a650d1eSmrg/* end confdefs.h. */ 17311a650d1eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17321a650d1eSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17331a650d1eSmrg#define $2 innocuous_$2 17341a650d1eSmrg 17351a650d1eSmrg/* System header to define __stub macros and hopefully few prototypes, 173699c4c48aSmrg which can conflict with char $2 (); below. */ 17371a650d1eSmrg 173899c4c48aSmrg#include <limits.h> 17391a650d1eSmrg#undef $2 17401a650d1eSmrg 17411a650d1eSmrg/* Override any GCC internal prototype to avoid an error. 17421a650d1eSmrg Use char because int might match the return type of a GCC 17431a650d1eSmrg builtin and then its argument prototype would still apply. */ 17441a650d1eSmrg#ifdef __cplusplus 17451a650d1eSmrgextern "C" 17461a650d1eSmrg#endif 17471a650d1eSmrgchar $2 (); 17481a650d1eSmrg/* The GNU C library defines this for functions which it implements 17491a650d1eSmrg to always fail with ENOSYS. Some functions are actually named 17501a650d1eSmrg something starting with __ and the normal name is an alias. */ 17511a650d1eSmrg#if defined __stub_$2 || defined __stub___$2 17521a650d1eSmrgchoke me 17531a650d1eSmrg#endif 17541a650d1eSmrg 17551a650d1eSmrgint 175699c4c48aSmrgmain (void) 17571a650d1eSmrg{ 17581a650d1eSmrgreturn $2 (); 17591a650d1eSmrg ; 17601a650d1eSmrg return 0; 17611a650d1eSmrg} 17621a650d1eSmrg_ACEOF 176399c4c48aSmrgif ac_fn_c_try_link "$LINENO" 176499c4c48aSmrgthen : 17651a650d1eSmrg eval "$3=yes" 176699c4c48aSmrgelse $as_nop 17671a650d1eSmrg eval "$3=no" 17681a650d1eSmrgfi 176999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 17701a650d1eSmrg conftest$ac_exeext conftest.$ac_ext 17711a650d1eSmrgfi 17721a650d1eSmrgeval ac_res=\$$3 177399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 177499c4c48aSmrgprintf "%s\n" "$ac_res" >&6; } 17751a650d1eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17761a650d1eSmrg 17771a650d1eSmrg} # ac_fn_c_check_func 177899c4c48aSmrgac_configure_args_raw= 177999c4c48aSmrgfor ac_arg 178099c4c48aSmrgdo 178199c4c48aSmrg case $ac_arg in 178299c4c48aSmrg *\'*) 178399c4c48aSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 178499c4c48aSmrg esac 178599c4c48aSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 178699c4c48aSmrgdone 178799c4c48aSmrg 178899c4c48aSmrgcase $ac_configure_args_raw in 178999c4c48aSmrg *$as_nl*) 179099c4c48aSmrg ac_safe_unquote= ;; 179199c4c48aSmrg *) 179299c4c48aSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 179399c4c48aSmrg ac_unsafe_a="$ac_unsafe_z#~" 179499c4c48aSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 179599c4c48aSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 179699c4c48aSmrgesac 179799c4c48aSmrg 17981a650d1eSmrgcat >config.log <<_ACEOF 17991a650d1eSmrgThis file contains any messages produced by compilers while 18001a650d1eSmrgrunning configure, to aid debugging if configure makes a mistake. 18011a650d1eSmrg 180299c4c48aSmrgIt was created by xsm $as_me 1.0.5, which was 180399c4c48aSmrggenerated by GNU Autoconf 2.71. Invocation command line was 18041a650d1eSmrg 180599c4c48aSmrg $ $0$ac_configure_args_raw 18061a650d1eSmrg 18071a650d1eSmrg_ACEOF 18081a650d1eSmrgexec 5>>config.log 18091a650d1eSmrg{ 18101a650d1eSmrgcat <<_ASUNAME 18111a650d1eSmrg## --------- ## 18121a650d1eSmrg## Platform. ## 18131a650d1eSmrg## --------- ## 18141a650d1eSmrg 18151a650d1eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18161a650d1eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18171a650d1eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18181a650d1eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18191a650d1eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18201a650d1eSmrg 18211a650d1eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18221a650d1eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18231a650d1eSmrg 18241a650d1eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18251a650d1eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18261a650d1eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18271a650d1eSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18281a650d1eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18291a650d1eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18301a650d1eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18311a650d1eSmrg 18321a650d1eSmrg_ASUNAME 18331a650d1eSmrg 18341a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18351a650d1eSmrgfor as_dir in $PATH 18361a650d1eSmrgdo 18378108eb18Smrg IFS=$as_save_IFS 183899c4c48aSmrg case $as_dir in #((( 183999c4c48aSmrg '') as_dir=./ ;; 184099c4c48aSmrg */) ;; 184199c4c48aSmrg *) as_dir=$as_dir/ ;; 184299c4c48aSmrg esac 184399c4c48aSmrg printf "%s\n" "PATH: $as_dir" 18441a650d1eSmrg done 18451a650d1eSmrgIFS=$as_save_IFS 18468108eb18Smrg 18478108eb18Smrg} >&5 18488108eb18Smrg 18498108eb18Smrgcat >&5 <<_ACEOF 18508108eb18Smrg 18518108eb18Smrg 18528108eb18Smrg## ----------- ## 18538108eb18Smrg## Core tests. ## 18548108eb18Smrg## ----------- ## 18558108eb18Smrg 18568108eb18Smrg_ACEOF 18578108eb18Smrg 18588108eb18Smrg 18598108eb18Smrg# Keep a trace of the command line. 18608108eb18Smrg# Strip out --no-create and --no-recursion so they do not pile up. 18618108eb18Smrg# Strip out --silent because we don't want to record it for future runs. 18628108eb18Smrg# Also quote any args containing shell meta-characters. 18638108eb18Smrg# Make two passes to allow for proper duplicate-argument suppression. 18648108eb18Smrgac_configure_args= 18658108eb18Smrgac_configure_args0= 18668108eb18Smrgac_configure_args1= 18678108eb18Smrgac_must_keep_next=false 18688108eb18Smrgfor ac_pass in 1 2 18698108eb18Smrgdo 18708108eb18Smrg for ac_arg 18718108eb18Smrg do 18728108eb18Smrg case $ac_arg in 18738108eb18Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18748108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18758108eb18Smrg | -silent | --silent | --silen | --sile | --sil) 18768108eb18Smrg continue ;; 18771a650d1eSmrg *\'*) 187899c4c48aSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18798108eb18Smrg esac 18808108eb18Smrg case $ac_pass in 18811a650d1eSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18828108eb18Smrg 2) 18831a650d1eSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18848108eb18Smrg if test $ac_must_keep_next = true; then 18858108eb18Smrg ac_must_keep_next=false # Got value, back to normal. 18868108eb18Smrg else 18878108eb18Smrg case $ac_arg in 18888108eb18Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18898108eb18Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18908108eb18Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18918108eb18Smrg | -with-* | --with-* | -without-* | --without-* | --x) 18928108eb18Smrg case "$ac_configure_args0 " in 18938108eb18Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18948108eb18Smrg esac 18958108eb18Smrg ;; 18968108eb18Smrg -* ) ac_must_keep_next=true ;; 18978108eb18Smrg esac 18988108eb18Smrg fi 18991a650d1eSmrg as_fn_append ac_configure_args " '$ac_arg'" 19008108eb18Smrg ;; 19018108eb18Smrg esac 19028108eb18Smrg done 19038108eb18Smrgdone 19041a650d1eSmrg{ ac_configure_args0=; unset ac_configure_args0;} 19051a650d1eSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19068108eb18Smrg 19078108eb18Smrg# When interrupted or exit'd, cleanup temporary files, and complete 19088108eb18Smrg# config.log. We remove comments because anyway the quotes in there 19098108eb18Smrg# would cause problems or look ugly. 19101a650d1eSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19111a650d1eSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19128108eb18Smrgtrap 'exit_status=$? 191399c4c48aSmrg # Sanitize IFS. 191499c4c48aSmrg IFS=" "" $as_nl" 19158108eb18Smrg # Save into config.log some information that might help in debugging. 19168108eb18Smrg { 19178108eb18Smrg echo 19188108eb18Smrg 191999c4c48aSmrg printf "%s\n" "## ---------------- ## 19208108eb18Smrg## Cache variables. ## 19211a650d1eSmrg## ---------------- ##" 19228108eb18Smrg echo 19238108eb18Smrg # The following way of writing the cache mishandles newlines in values, 19241a650d1eSmrg( 19251a650d1eSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19261a650d1eSmrg eval ac_val=\$$ac_var 19271a650d1eSmrg case $ac_val in #( 19281a650d1eSmrg *${as_nl}*) 19291a650d1eSmrg case $ac_var in #( 193099c4c48aSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 193199c4c48aSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19321a650d1eSmrg esac 19331a650d1eSmrg case $ac_var in #( 19341a650d1eSmrg _ | IFS | as_nl) ;; #( 19351a650d1eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19361a650d1eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19371a650d1eSmrg esac ;; 19381a650d1eSmrg esac 19391a650d1eSmrg done 19408108eb18Smrg (set) 2>&1 | 19411a650d1eSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19421a650d1eSmrg *${as_nl}ac_space=\ *) 19438108eb18Smrg sed -n \ 19441a650d1eSmrg "s/'\''/'\''\\\\'\'''\''/g; 19451a650d1eSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19461a650d1eSmrg ;; #( 19478108eb18Smrg *) 19481a650d1eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19498108eb18Smrg ;; 19501a650d1eSmrg esac | 19511a650d1eSmrg sort 19521a650d1eSmrg) 19538108eb18Smrg echo 19548108eb18Smrg 195599c4c48aSmrg printf "%s\n" "## ----------------- ## 19568108eb18Smrg## Output variables. ## 19571a650d1eSmrg## ----------------- ##" 19588108eb18Smrg echo 19598108eb18Smrg for ac_var in $ac_subst_vars 19608108eb18Smrg do 19611a650d1eSmrg eval ac_val=\$$ac_var 19621a650d1eSmrg case $ac_val in 196399c4c48aSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19641a650d1eSmrg esac 196599c4c48aSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19668108eb18Smrg done | sort 19678108eb18Smrg echo 19688108eb18Smrg 19698108eb18Smrg if test -n "$ac_subst_files"; then 197099c4c48aSmrg printf "%s\n" "## ------------------- ## 19711a650d1eSmrg## File substitutions. ## 19721a650d1eSmrg## ------------------- ##" 19738108eb18Smrg echo 19748108eb18Smrg for ac_var in $ac_subst_files 19758108eb18Smrg do 19761a650d1eSmrg eval ac_val=\$$ac_var 19771a650d1eSmrg case $ac_val in 197899c4c48aSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19791a650d1eSmrg esac 198099c4c48aSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19818108eb18Smrg done | sort 19828108eb18Smrg echo 19838108eb18Smrg fi 19848108eb18Smrg 19858108eb18Smrg if test -s confdefs.h; then 198699c4c48aSmrg printf "%s\n" "## ----------- ## 19878108eb18Smrg## confdefs.h. ## 19881a650d1eSmrg## ----------- ##" 19898108eb18Smrg echo 19901a650d1eSmrg cat confdefs.h 19918108eb18Smrg echo 19928108eb18Smrg fi 19938108eb18Smrg test "$ac_signal" != 0 && 199499c4c48aSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 199599c4c48aSmrg printf "%s\n" "$as_me: exit $exit_status" 19968108eb18Smrg } >&5 19971a650d1eSmrg rm -f core *.core core.conftest.* && 19981a650d1eSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19998108eb18Smrg exit $exit_status 20001a650d1eSmrg' 0 20018108eb18Smrgfor ac_signal in 1 2 13 15; do 20021a650d1eSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20038108eb18Smrgdone 20048108eb18Smrgac_signal=0 20058108eb18Smrg 20068108eb18Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20071a650d1eSmrgrm -f -r conftest* confdefs.h 20081a650d1eSmrg 200999c4c48aSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 20108108eb18Smrg 20118108eb18Smrg# Predefined preprocessor variables. 20128108eb18Smrg 201399c4c48aSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 20148108eb18Smrg 201599c4c48aSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 20168108eb18Smrg 201799c4c48aSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 20188108eb18Smrg 201999c4c48aSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 20208108eb18Smrg 202199c4c48aSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 20228108eb18Smrg 202399c4c48aSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 20241a650d1eSmrg 20258108eb18Smrg 20268108eb18Smrg# Let the site file select an alternate cache file if it wants to. 20271a650d1eSmrg# Prefer an explicitly selected file to automatically selected ones. 20281a650d1eSmrgif test -n "$CONFIG_SITE"; then 202999c4c48aSmrg ac_site_files="$CONFIG_SITE" 20301a650d1eSmrgelif test "x$prefix" != xNONE; then 203199c4c48aSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 20321a650d1eSmrgelse 203399c4c48aSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 20348108eb18Smrgfi 203599c4c48aSmrg 203699c4c48aSmrgfor ac_site_file in $ac_site_files 20371a650d1eSmrgdo 203899c4c48aSmrg case $ac_site_file in #( 203999c4c48aSmrg */*) : 204099c4c48aSmrg ;; #( 204199c4c48aSmrg *) : 204299c4c48aSmrg ac_site_file=./$ac_site_file ;; 204399c4c48aSmrgesac 204499c4c48aSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 204599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 204699c4c48aSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 20478108eb18Smrg sed 's/^/| /' "$ac_site_file" >&5 20481a650d1eSmrg . "$ac_site_file" \ 204999c4c48aSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 205099c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20511a650d1eSmrgas_fn_error $? "failed to load site script $ac_site_file 20521a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 20538108eb18Smrg fi 20548108eb18Smrgdone 20558108eb18Smrg 20568108eb18Smrgif test -r "$cache_file"; then 20571a650d1eSmrg # Some versions of bash will fail to source /dev/null (special files 20581a650d1eSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20591a650d1eSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 206099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 206199c4c48aSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 20628108eb18Smrg case $cache_file in 20631a650d1eSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20641a650d1eSmrg *) . "./$cache_file";; 20658108eb18Smrg esac 20668108eb18Smrg fi 20678108eb18Smrgelse 206899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 206999c4c48aSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 20708108eb18Smrg >$cache_file 20718108eb18Smrgfi 20728108eb18Smrg 207399c4c48aSmrg# Test code for whether the C compiler supports C89 (global declarations) 207499c4c48aSmrgac_c_conftest_c89_globals=' 207599c4c48aSmrg/* Does the compiler advertise C89 conformance? 207699c4c48aSmrg Do not test the value of __STDC__, because some compilers set it to 0 207799c4c48aSmrg while being otherwise adequately conformant. */ 207899c4c48aSmrg#if !defined __STDC__ 207999c4c48aSmrg# error "Compiler does not advertise C89 conformance" 208099c4c48aSmrg#endif 20818108eb18Smrg 208299c4c48aSmrg#include <stddef.h> 208399c4c48aSmrg#include <stdarg.h> 208499c4c48aSmrgstruct stat; 208599c4c48aSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 208699c4c48aSmrgstruct buf { int x; }; 208799c4c48aSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 208899c4c48aSmrgstatic char *e (p, i) 208999c4c48aSmrg char **p; 209099c4c48aSmrg int i; 209199c4c48aSmrg{ 209299c4c48aSmrg return p[i]; 209399c4c48aSmrg} 209499c4c48aSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 209599c4c48aSmrg{ 209699c4c48aSmrg char *s; 209799c4c48aSmrg va_list v; 209899c4c48aSmrg va_start (v,p); 209999c4c48aSmrg s = g (p, va_arg (v,int)); 210099c4c48aSmrg va_end (v); 210199c4c48aSmrg return s; 210299c4c48aSmrg} 21035977a007Smrg 210499c4c48aSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 210599c4c48aSmrg function prototypes and stuff, but not \xHH hex character constants. 210699c4c48aSmrg These do not provoke an error unfortunately, instead are silently treated 210799c4c48aSmrg as an "x". The following induces an error, until -std is added to get 210899c4c48aSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 210999c4c48aSmrg array size at least. It is necessary to write \x00 == 0 to get something 211099c4c48aSmrg that is true only with -std. */ 211199c4c48aSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 21125977a007Smrg 211399c4c48aSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 211499c4c48aSmrg inside strings and character constants. */ 211599c4c48aSmrg#define FOO(x) '\''x'\'' 211699c4c48aSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 21175977a007Smrg 211899c4c48aSmrgint test (int i, double x); 211999c4c48aSmrgstruct s1 {int (*f) (int a);}; 212099c4c48aSmrgstruct s2 {int (*f) (double a);}; 212199c4c48aSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 212299c4c48aSmrg int, int);' 21238108eb18Smrg 212499c4c48aSmrg# Test code for whether the C compiler supports C89 (body of main). 212599c4c48aSmrgac_c_conftest_c89_main=' 212699c4c48aSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 212799c4c48aSmrg' 21281a650d1eSmrg 212999c4c48aSmrg# Test code for whether the C compiler supports C99 (global declarations) 213099c4c48aSmrgac_c_conftest_c99_globals=' 213199c4c48aSmrg// Does the compiler advertise C99 conformance? 213299c4c48aSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 213399c4c48aSmrg# error "Compiler does not advertise C99 conformance" 213499c4c48aSmrg#endif 21351a650d1eSmrg 213699c4c48aSmrg#include <stdbool.h> 213799c4c48aSmrgextern int puts (const char *); 213899c4c48aSmrgextern int printf (const char *, ...); 213999c4c48aSmrgextern int dprintf (int, const char *, ...); 214099c4c48aSmrgextern void *malloc (size_t); 21418108eb18Smrg 214299c4c48aSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 214399c4c48aSmrg// dprintf is used instead of fprintf to avoid needing to declare 214499c4c48aSmrg// FILE and stderr. 214599c4c48aSmrg#define debug(...) dprintf (2, __VA_ARGS__) 214699c4c48aSmrg#define showlist(...) puts (#__VA_ARGS__) 214799c4c48aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 214899c4c48aSmrgstatic void 214999c4c48aSmrgtest_varargs_macros (void) 215099c4c48aSmrg{ 215199c4c48aSmrg int x = 1234; 215299c4c48aSmrg int y = 5678; 215399c4c48aSmrg debug ("Flag"); 215499c4c48aSmrg debug ("X = %d\n", x); 215599c4c48aSmrg showlist (The first, second, and third items.); 215699c4c48aSmrg report (x>y, "x is %d but y is %d", x, y); 215799c4c48aSmrg} 215899c4c48aSmrg 215999c4c48aSmrg// Check long long types. 216099c4c48aSmrg#define BIG64 18446744073709551615ull 216199c4c48aSmrg#define BIG32 4294967295ul 216299c4c48aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 216399c4c48aSmrg#if !BIG_OK 216499c4c48aSmrg #error "your preprocessor is broken" 216599c4c48aSmrg#endif 216699c4c48aSmrg#if BIG_OK 216799c4c48aSmrg#else 216899c4c48aSmrg #error "your preprocessor is broken" 216999c4c48aSmrg#endif 217099c4c48aSmrgstatic long long int bignum = -9223372036854775807LL; 217199c4c48aSmrgstatic unsigned long long int ubignum = BIG64; 217299c4c48aSmrg 217399c4c48aSmrgstruct incomplete_array 217499c4c48aSmrg{ 217599c4c48aSmrg int datasize; 217699c4c48aSmrg double data[]; 217799c4c48aSmrg}; 217899c4c48aSmrg 217999c4c48aSmrgstruct named_init { 218099c4c48aSmrg int number; 218199c4c48aSmrg const wchar_t *name; 218299c4c48aSmrg double average; 218399c4c48aSmrg}; 218499c4c48aSmrg 218599c4c48aSmrgtypedef const char *ccp; 218699c4c48aSmrg 218799c4c48aSmrgstatic inline int 218899c4c48aSmrgtest_restrict (ccp restrict text) 218999c4c48aSmrg{ 219099c4c48aSmrg // See if C++-style comments work. 219199c4c48aSmrg // Iterate through items via the restricted pointer. 219299c4c48aSmrg // Also check for declarations in for loops. 219399c4c48aSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 219499c4c48aSmrg continue; 219599c4c48aSmrg return 0; 219699c4c48aSmrg} 219799c4c48aSmrg 219899c4c48aSmrg// Check varargs and va_copy. 219999c4c48aSmrgstatic bool 220099c4c48aSmrgtest_varargs (const char *format, ...) 220199c4c48aSmrg{ 220299c4c48aSmrg va_list args; 220399c4c48aSmrg va_start (args, format); 220499c4c48aSmrg va_list args_copy; 220599c4c48aSmrg va_copy (args_copy, args); 220699c4c48aSmrg 220799c4c48aSmrg const char *str = ""; 220899c4c48aSmrg int number = 0; 220999c4c48aSmrg float fnumber = 0; 221099c4c48aSmrg 221199c4c48aSmrg while (*format) 221299c4c48aSmrg { 221399c4c48aSmrg switch (*format++) 221499c4c48aSmrg { 221599c4c48aSmrg case '\''s'\'': // string 221699c4c48aSmrg str = va_arg (args_copy, const char *); 221799c4c48aSmrg break; 221899c4c48aSmrg case '\''d'\'': // int 221999c4c48aSmrg number = va_arg (args_copy, int); 222099c4c48aSmrg break; 222199c4c48aSmrg case '\''f'\'': // float 222299c4c48aSmrg fnumber = va_arg (args_copy, double); 222399c4c48aSmrg break; 222499c4c48aSmrg default: 222599c4c48aSmrg break; 222699c4c48aSmrg } 222799c4c48aSmrg } 222899c4c48aSmrg va_end (args_copy); 222999c4c48aSmrg va_end (args); 223099c4c48aSmrg 223199c4c48aSmrg return *str && number && fnumber; 223299c4c48aSmrg} 223399c4c48aSmrg' 223499c4c48aSmrg 223599c4c48aSmrg# Test code for whether the C compiler supports C99 (body of main). 223699c4c48aSmrgac_c_conftest_c99_main=' 223799c4c48aSmrg // Check bool. 223899c4c48aSmrg _Bool success = false; 223999c4c48aSmrg success |= (argc != 0); 224099c4c48aSmrg 224199c4c48aSmrg // Check restrict. 224299c4c48aSmrg if (test_restrict ("String literal") == 0) 224399c4c48aSmrg success = true; 224499c4c48aSmrg char *restrict newvar = "Another string"; 224599c4c48aSmrg 224699c4c48aSmrg // Check varargs. 224799c4c48aSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 224899c4c48aSmrg test_varargs_macros (); 224999c4c48aSmrg 225099c4c48aSmrg // Check flexible array members. 225199c4c48aSmrg struct incomplete_array *ia = 225299c4c48aSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 225399c4c48aSmrg ia->datasize = 10; 225499c4c48aSmrg for (int i = 0; i < ia->datasize; ++i) 225599c4c48aSmrg ia->data[i] = i * 1.234; 225699c4c48aSmrg 225799c4c48aSmrg // Check named initializers. 225899c4c48aSmrg struct named_init ni = { 225999c4c48aSmrg .number = 34, 226099c4c48aSmrg .name = L"Test wide string", 226199c4c48aSmrg .average = 543.34343, 226299c4c48aSmrg }; 226399c4c48aSmrg 226499c4c48aSmrg ni.number = 58; 226599c4c48aSmrg 226699c4c48aSmrg int dynamic_array[ni.number]; 226799c4c48aSmrg dynamic_array[0] = argv[0][0]; 226899c4c48aSmrg dynamic_array[ni.number - 1] = 543; 226999c4c48aSmrg 227099c4c48aSmrg // work around unused variable warnings 227199c4c48aSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 227299c4c48aSmrg || dynamic_array[ni.number - 1] != 543); 227399c4c48aSmrg' 227499c4c48aSmrg 227599c4c48aSmrg# Test code for whether the C compiler supports C11 (global declarations) 227699c4c48aSmrgac_c_conftest_c11_globals=' 227799c4c48aSmrg// Does the compiler advertise C11 conformance? 227899c4c48aSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 227999c4c48aSmrg# error "Compiler does not advertise C11 conformance" 228099c4c48aSmrg#endif 228199c4c48aSmrg 228299c4c48aSmrg// Check _Alignas. 228399c4c48aSmrgchar _Alignas (double) aligned_as_double; 228499c4c48aSmrgchar _Alignas (0) no_special_alignment; 228599c4c48aSmrgextern char aligned_as_int; 228699c4c48aSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 228799c4c48aSmrg 228899c4c48aSmrg// Check _Alignof. 228999c4c48aSmrgenum 229099c4c48aSmrg{ 229199c4c48aSmrg int_alignment = _Alignof (int), 229299c4c48aSmrg int_array_alignment = _Alignof (int[100]), 229399c4c48aSmrg char_alignment = _Alignof (char) 229499c4c48aSmrg}; 229599c4c48aSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 229699c4c48aSmrg 229799c4c48aSmrg// Check _Noreturn. 229899c4c48aSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 229999c4c48aSmrg 230099c4c48aSmrg// Check _Static_assert. 230199c4c48aSmrgstruct test_static_assert 230299c4c48aSmrg{ 230399c4c48aSmrg int x; 230499c4c48aSmrg _Static_assert (sizeof (int) <= sizeof (long int), 230599c4c48aSmrg "_Static_assert does not work in struct"); 230699c4c48aSmrg long int y; 230799c4c48aSmrg}; 230899c4c48aSmrg 230999c4c48aSmrg// Check UTF-8 literals. 231099c4c48aSmrg#define u8 syntax error! 231199c4c48aSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 231299c4c48aSmrg 231399c4c48aSmrg// Check duplicate typedefs. 231499c4c48aSmrgtypedef long *long_ptr; 231599c4c48aSmrgtypedef long int *long_ptr; 231699c4c48aSmrgtypedef long_ptr long_ptr; 231799c4c48aSmrg 231899c4c48aSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 231999c4c48aSmrgstruct anonymous 232099c4c48aSmrg{ 232199c4c48aSmrg union { 232299c4c48aSmrg struct { int i; int j; }; 232399c4c48aSmrg struct { int k; long int l; } w; 232499c4c48aSmrg }; 232599c4c48aSmrg int m; 232699c4c48aSmrg} v1; 232799c4c48aSmrg' 232899c4c48aSmrg 232999c4c48aSmrg# Test code for whether the C compiler supports C11 (body of main). 233099c4c48aSmrgac_c_conftest_c11_main=' 233199c4c48aSmrg _Static_assert ((offsetof (struct anonymous, i) 233299c4c48aSmrg == offsetof (struct anonymous, w.k)), 233399c4c48aSmrg "Anonymous union alignment botch"); 233499c4c48aSmrg v1.i = 2; 233599c4c48aSmrg v1.w.k = 5; 233699c4c48aSmrg ok |= v1.i != 5; 233799c4c48aSmrg' 233899c4c48aSmrg 233999c4c48aSmrg# Test code for whether the C compiler supports C11 (complete). 234099c4c48aSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 234199c4c48aSmrg${ac_c_conftest_c99_globals} 234299c4c48aSmrg${ac_c_conftest_c11_globals} 234399c4c48aSmrg 234499c4c48aSmrgint 234599c4c48aSmrgmain (int argc, char **argv) 234699c4c48aSmrg{ 234799c4c48aSmrg int ok = 0; 234899c4c48aSmrg ${ac_c_conftest_c89_main} 234999c4c48aSmrg ${ac_c_conftest_c99_main} 235099c4c48aSmrg ${ac_c_conftest_c11_main} 235199c4c48aSmrg return ok; 235299c4c48aSmrg} 235399c4c48aSmrg" 235499c4c48aSmrg 235599c4c48aSmrg# Test code for whether the C compiler supports C99 (complete). 235699c4c48aSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 235799c4c48aSmrg${ac_c_conftest_c99_globals} 235899c4c48aSmrg 235999c4c48aSmrgint 236099c4c48aSmrgmain (int argc, char **argv) 236199c4c48aSmrg{ 236299c4c48aSmrg int ok = 0; 236399c4c48aSmrg ${ac_c_conftest_c89_main} 236499c4c48aSmrg ${ac_c_conftest_c99_main} 236599c4c48aSmrg return ok; 236699c4c48aSmrg} 236799c4c48aSmrg" 236899c4c48aSmrg 236999c4c48aSmrg# Test code for whether the C compiler supports C89 (complete). 237099c4c48aSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 237199c4c48aSmrg 237299c4c48aSmrgint 237399c4c48aSmrgmain (int argc, char **argv) 237499c4c48aSmrg{ 237599c4c48aSmrg int ok = 0; 237699c4c48aSmrg ${ac_c_conftest_c89_main} 237799c4c48aSmrg return ok; 237899c4c48aSmrg} 237999c4c48aSmrg" 238099c4c48aSmrg 238199c4c48aSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 238299c4c48aSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 238399c4c48aSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 238499c4c48aSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 238599c4c48aSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 238699c4c48aSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 238799c4c48aSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 238899c4c48aSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 238999c4c48aSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 239099c4c48aSmrg 239199c4c48aSmrg# Auxiliary files required by this configure script. 239299c4c48aSmrgac_aux_files="config.guess config.sub compile missing install-sh" 239399c4c48aSmrg 239499c4c48aSmrg# Locations in which to look for auxiliary files. 239599c4c48aSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 239699c4c48aSmrg 239799c4c48aSmrg# Search for a directory containing all of the required auxiliary files, 239899c4c48aSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 239999c4c48aSmrg# If we don't find one directory that contains all the files we need, 240099c4c48aSmrg# we report the set of missing files from the *first* directory in 240199c4c48aSmrg# $ac_aux_dir_candidates and give up. 240299c4c48aSmrgac_missing_aux_files="" 240399c4c48aSmrgac_first_candidate=: 240499c4c48aSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 240599c4c48aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 240699c4c48aSmrgas_found=false 240799c4c48aSmrgfor as_dir in $ac_aux_dir_candidates 240899c4c48aSmrgdo 240999c4c48aSmrg IFS=$as_save_IFS 241099c4c48aSmrg case $as_dir in #((( 241199c4c48aSmrg '') as_dir=./ ;; 241299c4c48aSmrg */) ;; 241399c4c48aSmrg *) as_dir=$as_dir/ ;; 241499c4c48aSmrg esac 241599c4c48aSmrg as_found=: 241699c4c48aSmrg 241799c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 241899c4c48aSmrg ac_aux_dir_found=yes 241999c4c48aSmrg ac_install_sh= 242099c4c48aSmrg for ac_aux in $ac_aux_files 242199c4c48aSmrg do 242299c4c48aSmrg # As a special case, if "install-sh" is required, that requirement 242399c4c48aSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 242499c4c48aSmrg # and $ac_install_sh is set appropriately for whichever one is found. 242599c4c48aSmrg if test x"$ac_aux" = x"install-sh" 242699c4c48aSmrg then 242799c4c48aSmrg if test -f "${as_dir}install-sh"; then 242899c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 242999c4c48aSmrg ac_install_sh="${as_dir}install-sh -c" 243099c4c48aSmrg elif test -f "${as_dir}install.sh"; then 243199c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 243299c4c48aSmrg ac_install_sh="${as_dir}install.sh -c" 243399c4c48aSmrg elif test -f "${as_dir}shtool"; then 243499c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 243599c4c48aSmrg ac_install_sh="${as_dir}shtool install -c" 243699c4c48aSmrg else 243799c4c48aSmrg ac_aux_dir_found=no 243899c4c48aSmrg if $ac_first_candidate; then 243999c4c48aSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 244099c4c48aSmrg else 244199c4c48aSmrg break 244299c4c48aSmrg fi 244399c4c48aSmrg fi 244499c4c48aSmrg else 244599c4c48aSmrg if test -f "${as_dir}${ac_aux}"; then 244699c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 244799c4c48aSmrg else 244899c4c48aSmrg ac_aux_dir_found=no 244999c4c48aSmrg if $ac_first_candidate; then 245099c4c48aSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 245199c4c48aSmrg else 245299c4c48aSmrg break 245399c4c48aSmrg fi 245499c4c48aSmrg fi 245599c4c48aSmrg fi 245699c4c48aSmrg done 245799c4c48aSmrg if test "$ac_aux_dir_found" = yes; then 245899c4c48aSmrg ac_aux_dir="$as_dir" 245999c4c48aSmrg break 246099c4c48aSmrg fi 246199c4c48aSmrg ac_first_candidate=false 246299c4c48aSmrg 246399c4c48aSmrg as_found=false 246499c4c48aSmrgdone 246599c4c48aSmrgIFS=$as_save_IFS 246699c4c48aSmrgif $as_found 246799c4c48aSmrgthen : 246899c4c48aSmrg 246999c4c48aSmrgelse $as_nop 247099c4c48aSmrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 247199c4c48aSmrgfi 247299c4c48aSmrg 247399c4c48aSmrg 247499c4c48aSmrg# These three variables are undocumented and unsupported, 247599c4c48aSmrg# and are intended to be withdrawn in a future Autoconf release. 247699c4c48aSmrg# They can cause serious problems if a builder's source tree is in a directory 247799c4c48aSmrg# whose full name contains unusual characters. 247899c4c48aSmrgif test -f "${ac_aux_dir}config.guess"; then 247999c4c48aSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 248099c4c48aSmrgfi 248199c4c48aSmrgif test -f "${ac_aux_dir}config.sub"; then 248299c4c48aSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 248399c4c48aSmrgfi 248499c4c48aSmrgif test -f "$ac_aux_dir/configure"; then 248599c4c48aSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 248699c4c48aSmrgfi 248799c4c48aSmrg 248899c4c48aSmrg# Check that the precious variables saved in the cache have kept the same 248999c4c48aSmrg# value. 249099c4c48aSmrgac_cache_corrupted=false 249199c4c48aSmrgfor ac_var in $ac_precious_vars; do 249299c4c48aSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 249399c4c48aSmrg eval ac_new_set=\$ac_env_${ac_var}_set 249499c4c48aSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 249599c4c48aSmrg eval ac_new_val=\$ac_env_${ac_var}_value 249699c4c48aSmrg case $ac_old_set,$ac_new_set in 249799c4c48aSmrg set,) 249899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 249999c4c48aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 250099c4c48aSmrg ac_cache_corrupted=: ;; 250199c4c48aSmrg ,set) 250299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 250399c4c48aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 250499c4c48aSmrg ac_cache_corrupted=: ;; 250599c4c48aSmrg ,);; 250699c4c48aSmrg *) 250799c4c48aSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 250899c4c48aSmrg # differences in whitespace do not lead to failure. 250999c4c48aSmrg ac_old_val_w=`echo x $ac_old_val` 251099c4c48aSmrg ac_new_val_w=`echo x $ac_new_val` 251199c4c48aSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 251299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 251399c4c48aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 251499c4c48aSmrg ac_cache_corrupted=: 251599c4c48aSmrg else 251699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 251799c4c48aSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 251899c4c48aSmrg eval $ac_var=\$ac_old_val 251999c4c48aSmrg fi 252099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 252199c4c48aSmrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 252299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 252399c4c48aSmrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 252499c4c48aSmrg fi;; 252599c4c48aSmrg esac 252699c4c48aSmrg # Pass precious variables to config.status. 252799c4c48aSmrg if test "$ac_new_set" = set; then 252899c4c48aSmrg case $ac_new_val in 252999c4c48aSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 253099c4c48aSmrg *) ac_arg=$ac_var=$ac_new_val ;; 253199c4c48aSmrg esac 253299c4c48aSmrg case " $ac_configure_args " in 253399c4c48aSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 253499c4c48aSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 253599c4c48aSmrg esac 253699c4c48aSmrg fi 253799c4c48aSmrgdone 253899c4c48aSmrgif $ac_cache_corrupted; then 253999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 254099c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 254199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 254299c4c48aSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 254399c4c48aSmrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 254499c4c48aSmrg and start over" "$LINENO" 5 254599c4c48aSmrgfi 254699c4c48aSmrg## -------------------- ## 254799c4c48aSmrg## Main body of script. ## 254899c4c48aSmrg## -------------------- ## 254999c4c48aSmrg 255099c4c48aSmrgac_ext=c 255199c4c48aSmrgac_cpp='$CPP $CPPFLAGS' 255299c4c48aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 255399c4c48aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 255499c4c48aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 255599c4c48aSmrg 255699c4c48aSmrg 255799c4c48aSmrg 255899c4c48aSmrgac_config_headers="$ac_config_headers config.h" 255999c4c48aSmrg 256099c4c48aSmrg 256199c4c48aSmrg# Initialize Automake 256299c4c48aSmrgam__api_version='1.16' 256399c4c48aSmrg 256499c4c48aSmrg 256599c4c48aSmrg 256699c4c48aSmrg # Find a good install program. We prefer a C program (faster), 256799c4c48aSmrg# so one script is as good as another. But avoid the broken or 25688108eb18Smrg# incompatible versions: 25698108eb18Smrg# SysV /etc/install, /usr/sbin/install 25708108eb18Smrg# SunOS /usr/etc/install 25718108eb18Smrg# IRIX /sbin/install 25728108eb18Smrg# AIX /bin/install 25738108eb18Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 25748108eb18Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 25758108eb18Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 25768108eb18Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 25778108eb18Smrg# OS/2's system install, which has a completely different semantic 25788108eb18Smrg# ./install, which can be erroneously created by make from ./install.sh. 25791a650d1eSmrg# Reject install programs that cannot install multiple files. 258099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 258199c4c48aSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 25828108eb18Smrgif test -z "$INSTALL"; then 258399c4c48aSmrgif test ${ac_cv_path_install+y} 258499c4c48aSmrgthen : 258599c4c48aSmrg printf %s "(cached) " >&6 258699c4c48aSmrgelse $as_nop 25878108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25888108eb18Smrgfor as_dir in $PATH 25898108eb18Smrgdo 25908108eb18Smrg IFS=$as_save_IFS 259199c4c48aSmrg case $as_dir in #((( 259299c4c48aSmrg '') as_dir=./ ;; 259399c4c48aSmrg */) ;; 259499c4c48aSmrg *) as_dir=$as_dir/ ;; 259599c4c48aSmrg esac 259699c4c48aSmrg # Account for fact that we put trailing slashes in our PATH walk. 259799c4c48aSmrgcase $as_dir in #(( 259899c4c48aSmrg ./ | /[cC]/* | \ 25998108eb18Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 26001a650d1eSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 26018108eb18Smrg /usr/ucb/* ) ;; 26028108eb18Smrg *) 26038108eb18Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 26048108eb18Smrg # Don't use installbsd from OSF since it installs stuff as root 26058108eb18Smrg # by default. 26068108eb18Smrg for ac_prog in ginstall scoinst install; do 26078108eb18Smrg for ac_exec_ext in '' $ac_executable_extensions; do 260899c4c48aSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 26098108eb18Smrg if test $ac_prog = install && 261099c4c48aSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 26118108eb18Smrg # AIX install. It has an incompatible calling convention. 26128108eb18Smrg : 26138108eb18Smrg elif test $ac_prog = install && 261499c4c48aSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 26158108eb18Smrg # program-specific install script used by HP pwplus--don't use. 26168108eb18Smrg : 26178108eb18Smrg else 26181a650d1eSmrg rm -rf conftest.one conftest.two conftest.dir 26191a650d1eSmrg echo one > conftest.one 26201a650d1eSmrg echo two > conftest.two 26211a650d1eSmrg mkdir conftest.dir 262299c4c48aSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 26231a650d1eSmrg test -s conftest.one && test -s conftest.two && 26241a650d1eSmrg test -s conftest.dir/conftest.one && 26251a650d1eSmrg test -s conftest.dir/conftest.two 26261a650d1eSmrg then 262799c4c48aSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 26281a650d1eSmrg break 3 26291a650d1eSmrg fi 26308108eb18Smrg fi 26318108eb18Smrg fi 26328108eb18Smrg done 26338108eb18Smrg done 26348108eb18Smrg ;; 26358108eb18Smrgesac 26368108eb18Smrg 26371a650d1eSmrg done 26381a650d1eSmrgIFS=$as_save_IFS 26391a650d1eSmrg 26401a650d1eSmrgrm -rf conftest.one conftest.two conftest.dir 26418108eb18Smrg 26428108eb18Smrgfi 264399c4c48aSmrg if test ${ac_cv_path_install+y}; then 26448108eb18Smrg INSTALL=$ac_cv_path_install 26458108eb18Smrg else 26461a650d1eSmrg # As a last resort, use the slow shell script. Don't cache a 26471a650d1eSmrg # value for INSTALL within a source directory, because that will 26488108eb18Smrg # break other packages using the cache if that directory is 26491a650d1eSmrg # removed, or if the value is a relative name. 26508108eb18Smrg INSTALL=$ac_install_sh 26518108eb18Smrg fi 26528108eb18Smrgfi 265399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 265499c4c48aSmrgprintf "%s\n" "$INSTALL" >&6; } 26558108eb18Smrg 26568108eb18Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 26578108eb18Smrg# It thinks the first close brace ends the variable substitution. 26588108eb18Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 26598108eb18Smrg 26608108eb18Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 26618108eb18Smrg 26628108eb18Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 26638108eb18Smrg 266499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 266599c4c48aSmrgprintf %s "checking whether build environment is sane... " >&6; } 26661a650d1eSmrg# Reject unsafe characters in $srcdir or the absolute working directory 26671a650d1eSmrg# name. Accept space and tab only in the latter. 26681a650d1eSmrgam_lf=' 26691a650d1eSmrg' 26701a650d1eSmrgcase `pwd` in 26711a650d1eSmrg *[\\\"\#\$\&\'\`$am_lf]*) 26721a650d1eSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 26731a650d1eSmrgesac 26741a650d1eSmrgcase $srcdir in 26751a650d1eSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 26768a355152Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 26771a650d1eSmrgesac 26781a650d1eSmrg 26798a355152Smrg# Do 'set' in a subshell so we don't clobber the current shell's 26808108eb18Smrg# arguments. Must try -L first in case configure is actually a 26818108eb18Smrg# symlink; some systems play weird games with the mod time of symlinks 26828108eb18Smrg# (eg FreeBSD returns the mod time of the symlink's containing 26838108eb18Smrg# directory). 26848108eb18Smrgif ( 26858a355152Smrg am_has_slept=no 26868a355152Smrg for am_try in 1 2; do 26878a355152Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 26888a355152Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 26898a355152Smrg if test "$*" = "X"; then 26908a355152Smrg # -L didn't work. 26918a355152Smrg set X `ls -t "$srcdir/configure" conftest.file` 26928a355152Smrg fi 26938a355152Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 26948a355152Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 26958a355152Smrg 26968a355152Smrg # If neither matched, then we have a broken ls. This can happen 26978a355152Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 26988a355152Smrg # broken ls alias from the environment. This has actually 26998a355152Smrg # happened. Such a system could not be considered "sane". 27008a355152Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 27018a355152Smrg alias in your environment" "$LINENO" 5 27028a355152Smrg fi 27038a355152Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 27048a355152Smrg break 27058a355152Smrg fi 27068a355152Smrg # Just in case. 27078a355152Smrg sleep 1 27088a355152Smrg am_has_slept=yes 27098a355152Smrg done 27108108eb18Smrg test "$2" = conftest.file 27118108eb18Smrg ) 27128108eb18Smrgthen 27138108eb18Smrg # Ok. 27148108eb18Smrg : 27158108eb18Smrgelse 27161a650d1eSmrg as_fn_error $? "newly created file is older than distributed files! 27171a650d1eSmrgCheck your system clock" "$LINENO" 5 27188108eb18Smrgfi 271999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 272099c4c48aSmrgprintf "%s\n" "yes" >&6; } 27218a355152Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 27228a355152Smrg# generated files are strictly newer. 27238a355152Smrgam_sleep_pid= 27248a355152Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 27258a355152Smrg ( sleep 1 ) & 27268a355152Smrg am_sleep_pid=$! 27278a355152Smrgfi 27288a355152Smrg 27298a355152Smrgrm -f conftest.file 27308a355152Smrg 27318108eb18Smrgtest "$program_prefix" != NONE && 27321a650d1eSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 27338108eb18Smrg# Use a double $ so make ignores it. 27348108eb18Smrgtest "$program_suffix" != NONE && 27351a650d1eSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 27361a650d1eSmrg# Double any \ or $. 27378108eb18Smrg# By default was `s,x,x', remove it if useless. 27381a650d1eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 273999c4c48aSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 274099c4c48aSmrg 27418108eb18Smrg 27428a355152Smrg# Expand $ac_aux_dir to an absolute path. 27438a355152Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 27448108eb18Smrg 274599c4c48aSmrg 274699c4c48aSmrg if test x"${MISSING+set}" != xset; then 274799c4c48aSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 27481a650d1eSmrgfi 27498108eb18Smrg# Use eval to expand $SHELL 27508a355152Smrgif eval "$MISSING --is-lightweight"; then 27518a355152Smrg am_missing_run="$MISSING " 27528108eb18Smrgelse 27538108eb18Smrg am_missing_run= 275499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 275599c4c48aSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 27568108eb18Smrgfi 27578108eb18Smrg 27588a355152Smrgif test x"${install_sh+set}" != xset; then 27591a650d1eSmrg case $am_aux_dir in 27601a650d1eSmrg *\ * | *\ *) 27611a650d1eSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 27621a650d1eSmrg *) 27631a650d1eSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 27641a650d1eSmrg esac 27651a650d1eSmrgfi 27661a650d1eSmrg 27678a355152Smrg# Installed binaries are usually stripped using 'strip' when the user 27688a355152Smrg# run "make install-strip". However 'strip' might not be the right 27691a650d1eSmrg# tool to use in cross-compilation environments, therefore Automake 27708a355152Smrg# will honor the 'STRIP' environment variable to overrule this program. 27711a650d1eSmrgif test "$cross_compiling" != no; then 27721a650d1eSmrg if test -n "$ac_tool_prefix"; then 27731a650d1eSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 27741a650d1eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 277599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 277699c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 277799c4c48aSmrgif test ${ac_cv_prog_STRIP+y} 277899c4c48aSmrgthen : 277999c4c48aSmrg printf %s "(cached) " >&6 278099c4c48aSmrgelse $as_nop 27811a650d1eSmrg if test -n "$STRIP"; then 27821a650d1eSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 27838108eb18Smrgelse 27848108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27858108eb18Smrgfor as_dir in $PATH 27868108eb18Smrgdo 27878108eb18Smrg IFS=$as_save_IFS 278899c4c48aSmrg case $as_dir in #((( 278999c4c48aSmrg '') as_dir=./ ;; 279099c4c48aSmrg */) ;; 279199c4c48aSmrg *) as_dir=$as_dir/ ;; 279299c4c48aSmrg esac 27931a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 279499c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27951a650d1eSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 279699c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27978108eb18Smrg break 2 27988108eb18Smrg fi 27998108eb18Smrgdone 28001a650d1eSmrg done 28011a650d1eSmrgIFS=$as_save_IFS 28028108eb18Smrg 28038108eb18Smrgfi 28048108eb18Smrgfi 28051a650d1eSmrgSTRIP=$ac_cv_prog_STRIP 28061a650d1eSmrgif test -n "$STRIP"; then 280799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 280899c4c48aSmrgprintf "%s\n" "$STRIP" >&6; } 28098108eb18Smrgelse 281099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 281199c4c48aSmrgprintf "%s\n" "no" >&6; } 28128108eb18Smrgfi 28138108eb18Smrg 28148108eb18Smrg 28151a650d1eSmrgfi 28161a650d1eSmrgif test -z "$ac_cv_prog_STRIP"; then 28171a650d1eSmrg ac_ct_STRIP=$STRIP 28181a650d1eSmrg # Extract the first word of "strip", so it can be a program name with args. 28191a650d1eSmrgset dummy strip; ac_word=$2 282099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 282199c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 282299c4c48aSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 282399c4c48aSmrgthen : 282499c4c48aSmrg printf %s "(cached) " >&6 282599c4c48aSmrgelse $as_nop 28261a650d1eSmrg if test -n "$ac_ct_STRIP"; then 28271a650d1eSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 28288108eb18Smrgelse 28291a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28301a650d1eSmrgfor as_dir in $PATH 28311a650d1eSmrgdo 28321a650d1eSmrg IFS=$as_save_IFS 283399c4c48aSmrg case $as_dir in #((( 283499c4c48aSmrg '') as_dir=./ ;; 283599c4c48aSmrg */) ;; 283699c4c48aSmrg *) as_dir=$as_dir/ ;; 283799c4c48aSmrg esac 28381a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 283999c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28401a650d1eSmrg ac_cv_prog_ac_ct_STRIP="strip" 284199c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28421a650d1eSmrg break 2 28431a650d1eSmrg fi 28441a650d1eSmrgdone 28451a650d1eSmrg done 28461a650d1eSmrgIFS=$as_save_IFS 28471a650d1eSmrg 28488108eb18Smrgfi 28498108eb18Smrgfi 28501a650d1eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 28511a650d1eSmrgif test -n "$ac_ct_STRIP"; then 285299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 285399c4c48aSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 28548108eb18Smrgelse 285599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 285699c4c48aSmrgprintf "%s\n" "no" >&6; } 28578108eb18Smrgfi 28588108eb18Smrg 28591a650d1eSmrg if test "x$ac_ct_STRIP" = x; then 28601a650d1eSmrg STRIP=":" 28611a650d1eSmrg else 28621a650d1eSmrg case $cross_compiling:$ac_tool_warned in 28631a650d1eSmrgyes:) 286499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 286599c4c48aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28661a650d1eSmrgac_tool_warned=yes ;; 28671a650d1eSmrgesac 28681a650d1eSmrg STRIP=$ac_ct_STRIP 28691a650d1eSmrg fi 28701a650d1eSmrgelse 28711a650d1eSmrg STRIP="$ac_cv_prog_STRIP" 28721a650d1eSmrgfi 28731a650d1eSmrg 28741a650d1eSmrgfi 28751a650d1eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 28761a650d1eSmrg 287799c4c48aSmrg 287899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 287999c4c48aSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 28801a650d1eSmrgif test -z "$MKDIR_P"; then 288199c4c48aSmrg if test ${ac_cv_path_mkdir+y} 288299c4c48aSmrgthen : 288399c4c48aSmrg printf %s "(cached) " >&6 288499c4c48aSmrgelse $as_nop 28851a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28861a650d1eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 28871a650d1eSmrgdo 28881a650d1eSmrg IFS=$as_save_IFS 288999c4c48aSmrg case $as_dir in #((( 289099c4c48aSmrg '') as_dir=./ ;; 289199c4c48aSmrg */) ;; 289299c4c48aSmrg *) as_dir=$as_dir/ ;; 289399c4c48aSmrg esac 28941a650d1eSmrg for ac_prog in mkdir gmkdir; do 28951a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 289699c4c48aSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 289799c4c48aSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 289899c4c48aSmrg 'mkdir ('*'coreutils) '* | \ 289999c4c48aSmrg 'BusyBox '* | \ 29001a650d1eSmrg 'mkdir (fileutils) '4.1*) 290199c4c48aSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 29021a650d1eSmrg break 3;; 29031a650d1eSmrg esac 29041a650d1eSmrg done 29051a650d1eSmrg done 29061a650d1eSmrg done 29071a650d1eSmrgIFS=$as_save_IFS 29081a650d1eSmrg 29091a650d1eSmrgfi 29101a650d1eSmrg 29111a650d1eSmrg test -d ./--version && rmdir ./--version 291299c4c48aSmrg if test ${ac_cv_path_mkdir+y}; then 29131a650d1eSmrg MKDIR_P="$ac_cv_path_mkdir -p" 29141a650d1eSmrg else 29151a650d1eSmrg # As a last resort, use the slow shell script. Don't cache a 29161a650d1eSmrg # value for MKDIR_P within a source directory, because that will 29171a650d1eSmrg # break other packages using the cache if that directory is 29181a650d1eSmrg # removed, or if the value is a relative name. 29191a650d1eSmrg MKDIR_P="$ac_install_sh -d" 29201a650d1eSmrg fi 29211a650d1eSmrgfi 292299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 292399c4c48aSmrgprintf "%s\n" "$MKDIR_P" >&6; } 29241a650d1eSmrg 29251a650d1eSmrgfor ac_prog in gawk mawk nawk awk 29261a650d1eSmrgdo 29271a650d1eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 29281a650d1eSmrgset dummy $ac_prog; ac_word=$2 292999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 293099c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 293199c4c48aSmrgif test ${ac_cv_prog_AWK+y} 293299c4c48aSmrgthen : 293399c4c48aSmrg printf %s "(cached) " >&6 293499c4c48aSmrgelse $as_nop 29351a650d1eSmrg if test -n "$AWK"; then 29361a650d1eSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 29371a650d1eSmrgelse 29381a650d1eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29391a650d1eSmrgfor as_dir in $PATH 29401a650d1eSmrgdo 29411a650d1eSmrg IFS=$as_save_IFS 294299c4c48aSmrg case $as_dir in #((( 294399c4c48aSmrg '') as_dir=./ ;; 294499c4c48aSmrg */) ;; 294599c4c48aSmrg *) as_dir=$as_dir/ ;; 294699c4c48aSmrg esac 29471a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 294899c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29491a650d1eSmrg ac_cv_prog_AWK="$ac_prog" 295099c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29511a650d1eSmrg break 2 29521a650d1eSmrg fi 29531a650d1eSmrgdone 29541a650d1eSmrg done 29551a650d1eSmrgIFS=$as_save_IFS 29561a650d1eSmrg 29571a650d1eSmrgfi 29581a650d1eSmrgfi 29591a650d1eSmrgAWK=$ac_cv_prog_AWK 29601a650d1eSmrgif test -n "$AWK"; then 296199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 296299c4c48aSmrgprintf "%s\n" "$AWK" >&6; } 29631a650d1eSmrgelse 296499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 296599c4c48aSmrgprintf "%s\n" "no" >&6; } 29661a650d1eSmrgfi 29671a650d1eSmrg 29681a650d1eSmrg 29691a650d1eSmrg test -n "$AWK" && break 29701a650d1eSmrgdone 29711a650d1eSmrg 297299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 297399c4c48aSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 29741a650d1eSmrgset x ${MAKE-make} 297599c4c48aSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 297699c4c48aSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 297799c4c48aSmrgthen : 297899c4c48aSmrg printf %s "(cached) " >&6 297999c4c48aSmrgelse $as_nop 29801a650d1eSmrg cat >conftest.make <<\_ACEOF 29811a650d1eSmrgSHELL = /bin/sh 29821a650d1eSmrgall: 29831a650d1eSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 29841a650d1eSmrg_ACEOF 29851a650d1eSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29861a650d1eSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 29871a650d1eSmrg *@@@%%%=?*=@@@%%%*) 29881a650d1eSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 29891a650d1eSmrg *) 29901a650d1eSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 29911a650d1eSmrgesac 29921a650d1eSmrgrm -f conftest.make 29931a650d1eSmrgfi 29941a650d1eSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 299599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 299699c4c48aSmrgprintf "%s\n" "yes" >&6; } 29971a650d1eSmrg SET_MAKE= 29981a650d1eSmrgelse 299999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 300099c4c48aSmrgprintf "%s\n" "no" >&6; } 30011a650d1eSmrg SET_MAKE="MAKE=${MAKE-make}" 30021a650d1eSmrgfi 30031a650d1eSmrg 30041a650d1eSmrgrm -rf .tst 2>/dev/null 30051a650d1eSmrgmkdir .tst 2>/dev/null 30061a650d1eSmrgif test -d .tst; then 30071a650d1eSmrg am__leading_dot=. 30088108eb18Smrgelse 30098108eb18Smrg am__leading_dot=_ 30108108eb18Smrgfi 30118108eb18Smrgrmdir .tst 2>/dev/null 30128108eb18Smrg 30138a355152Smrg# Check whether --enable-silent-rules was given. 301499c4c48aSmrgif test ${enable_silent_rules+y} 301599c4c48aSmrgthen : 30168a355152Smrg enableval=$enable_silent_rules; 30178a355152Smrgfi 30188a355152Smrg 30198a355152Smrgcase $enable_silent_rules in # ((( 30208a355152Smrg yes) AM_DEFAULT_VERBOSITY=0;; 30218a355152Smrg no) AM_DEFAULT_VERBOSITY=1;; 30228a355152Smrg *) AM_DEFAULT_VERBOSITY=1;; 30238a355152Smrgesac 30248a355152Smrgam_make=${MAKE-make} 302599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 302699c4c48aSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 302799c4c48aSmrgif test ${am_cv_make_support_nested_variables+y} 302899c4c48aSmrgthen : 302999c4c48aSmrg printf %s "(cached) " >&6 303099c4c48aSmrgelse $as_nop 303199c4c48aSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 30328a355152SmrgBAR0=false 30338a355152SmrgBAR1=true 30348a355152SmrgV=1 30358a355152Smrgam__doit: 30368a355152Smrg @$(TRUE) 30378a355152Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 30388a355152Smrg am_cv_make_support_nested_variables=yes 30398a355152Smrgelse 30408a355152Smrg am_cv_make_support_nested_variables=no 30418a355152Smrgfi 30428a355152Smrgfi 304399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 304499c4c48aSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 30458a355152Smrgif test $am_cv_make_support_nested_variables = yes; then 30468a355152Smrg AM_V='$(V)' 30478a355152Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 30488a355152Smrgelse 30498a355152Smrg AM_V=$AM_DEFAULT_VERBOSITY 30508a355152Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 30518a355152Smrgfi 30528a355152SmrgAM_BACKSLASH='\' 30538a355152Smrg 30541a650d1eSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 30551a650d1eSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 30561a650d1eSmrg # is not polluted with repeated "-I." 30571a650d1eSmrg am__isrc=' -I$(srcdir)' 30581a650d1eSmrg # test to see if srcdir already configured 30591a650d1eSmrg if test -f $srcdir/config.status; then 30601a650d1eSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 30611a650d1eSmrg fi 30628108eb18Smrgfi 30638108eb18Smrg 30648108eb18Smrg# test whether we have cygpath 30658108eb18Smrgif test -z "$CYGPATH_W"; then 30668108eb18Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 30678108eb18Smrg CYGPATH_W='cygpath -w' 30688108eb18Smrg else 30698108eb18Smrg CYGPATH_W=echo 30708108eb18Smrg fi 30718108eb18Smrgfi 30728108eb18Smrg 30738108eb18Smrg 30748108eb18Smrg# Define the identity of the package. 30758108eb18Smrg PACKAGE='xsm' 307699c4c48aSmrg VERSION='1.0.5' 30778108eb18Smrg 30788108eb18Smrg 307999c4c48aSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 30808108eb18Smrg 30818108eb18Smrg 308299c4c48aSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 30838108eb18Smrg 30848108eb18Smrg# Some tools Automake needs. 30858108eb18Smrg 30868108eb18SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 30878108eb18Smrg 30888108eb18Smrg 30898108eb18SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 30908108eb18Smrg 30918108eb18Smrg 30928108eb18SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 30938108eb18Smrg 30948108eb18Smrg 30958108eb18SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 30968108eb18Smrg 30978108eb18Smrg 30988108eb18SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 30998108eb18Smrg 31008a355152Smrg# For better backward compatibility. To be removed once Automake 1.9.x 31018a355152Smrg# dies out for good. For more background, see: 310299c4c48aSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 310399c4c48aSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 31048a355152Smrgmkdir_p='$(MKDIR_P)' 31058108eb18Smrg 31068a355152Smrg# We need awk for the "check" target (and possibly the TAP driver). The 31078a355152Smrg# system "awk" is bad on some platforms. 31088a355152Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 31098a355152Smrg# in the wild :-( We should find a proper way to deprecate it ... 31108a355152SmrgAMTAR='$${TAR-tar}' 31118108eb18Smrg 31128108eb18Smrg 31138a355152Smrg# We'll loop over all known methods to create a tar archive until one works. 31148a355152Smrg_am_tools='gnutar pax cpio none' 31158108eb18Smrg 31168a355152Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 31178108eb18Smrg 31188108eb18Smrg 31191a650d1eSmrg 31201a650d1eSmrg 31218108eb18Smrg 312299c4c48aSmrg# Variables for tags utilities; see am/tags.am 312399c4c48aSmrgif test -z "$CTAGS"; then 312499c4c48aSmrg CTAGS=ctags 312599c4c48aSmrgfi 312699c4c48aSmrg 312799c4c48aSmrgif test -z "$ETAGS"; then 312899c4c48aSmrg ETAGS=etags 312999c4c48aSmrgfi 313099c4c48aSmrg 313199c4c48aSmrgif test -z "$CSCOPE"; then 313299c4c48aSmrg CSCOPE=cscope 313399c4c48aSmrgfi 313499c4c48aSmrg 313599c4c48aSmrg 31368108eb18Smrg 31378a355152Smrg# POSIX will say in a future version that running "rm -f" with no argument 31388a355152Smrg# is OK; and we want to be able to make that assumption in our Makefile 31398a355152Smrg# recipes. So use an aggressive probe to check that the usage we want is 31408a355152Smrg# actually supported "in the wild" to an acceptable degree. 31418a355152Smrg# See automake bug#10828. 31428a355152Smrg# To make any issue more visible, cause the running configure to be aborted 31438a355152Smrg# by default if the 'rm' program in use doesn't match our expectations; the 31448a355152Smrg# user can still override this though. 31458a355152Smrgif rm -f && rm -fr && rm -rf; then : OK; else 31468a355152Smrg cat >&2 <<'END' 31478a355152SmrgOops! 31488a355152Smrg 31498a355152SmrgYour 'rm' program seems unable to run without file operands specified 31508a355152Smrgon the command line, even when the '-f' option is present. This is contrary 31518a355152Smrgto the behaviour of most rm programs out there, and not conforming with 31528a355152Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 31538a355152Smrg 31548a355152SmrgPlease tell bug-automake@gnu.org about your system, including the value 31558a355152Smrgof your $PATH and any error possibly output before this message. This 31568a355152Smrgcan help us improve future automake versions. 31578a355152Smrg 31588a355152SmrgEND 31598a355152Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 31608a355152Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 31618a355152Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 31628a355152Smrg echo >&2 31638a355152Smrg else 31648a355152Smrg cat >&2 <<'END' 31658a355152SmrgAborting the configuration process, to ensure you take notice of the issue. 31668a355152Smrg 31678a355152SmrgYou can download and install GNU coreutils to get an 'rm' implementation 316899c4c48aSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 31698108eb18Smrg 31708a355152SmrgIf you want to complete the configuration process using your problematic 31718a355152Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 31728a355152Smrgto "yes", and re-run configure. 31738a355152Smrg 31748a355152SmrgEND 31758a355152Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 31768a355152Smrg fi 31778a355152Smrgfi 31788108eb18Smrg 31798108eb18Smrg 31801a650d1eSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 31818108eb18Smrg 31821a650d1eSmrg 31831a650d1eSmrg 31841a650d1eSmrg 31851a650d1eSmrg 31861a650d1eSmrg 31871a650d1eSmrg 31881a650d1eSmrg 31891a650d1eSmrg 31901a650d1eSmrg 31911a650d1eSmrg 319299c4c48aSmrg 319399c4c48aSmrg 319499c4c48aSmrg 319599c4c48aSmrg 319699c4c48aSmrg 319799c4c48aSmrg 319899c4c48aSmrg 319999c4c48aSmrg 320099c4c48aSmrg 32011a650d1eSmrgDEPDIR="${am__leading_dot}deps" 32021a650d1eSmrg 32031a650d1eSmrgac_config_commands="$ac_config_commands depfiles" 32041a650d1eSmrg 320599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 320699c4c48aSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 320799c4c48aSmrgcat > confinc.mk << 'END' 32081a650d1eSmrgam__doit: 320999c4c48aSmrg @echo this is the am__doit target >confinc.out 32101a650d1eSmrg.PHONY: am__doit 32111a650d1eSmrgEND 32121a650d1eSmrgam__include="#" 32131a650d1eSmrgam__quote= 321499c4c48aSmrg# BSD make does it like this. 321599c4c48aSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 321699c4c48aSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 321799c4c48aSmrgecho 'include confinc.mk # ignored' > confmf.GNU 321899c4c48aSmrg_am_result=no 321999c4c48aSmrgfor s in GNU BSD; do 322099c4c48aSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 322199c4c48aSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 322299c4c48aSmrg ac_status=$? 322399c4c48aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 322499c4c48aSmrg (exit $ac_status); } 322599c4c48aSmrg case $?:`cat confinc.out 2>/dev/null` in #( 322699c4c48aSmrg '0:this is the am__doit target') : 322799c4c48aSmrg case $s in #( 322899c4c48aSmrg BSD) : 322999c4c48aSmrg am__include='.include' am__quote='"' ;; #( 323099c4c48aSmrg *) : 323199c4c48aSmrg am__include='include' am__quote='' ;; 323299c4c48aSmrgesac ;; #( 323399c4c48aSmrg *) : 32341a650d1eSmrg ;; 323599c4c48aSmrgesac 323699c4c48aSmrg if test "$am__include" != "#"; then 323799c4c48aSmrg _am_result="yes ($s style)" 323899c4c48aSmrg break 323999c4c48aSmrg fi 324099c4c48aSmrgdone 324199c4c48aSmrgrm -f confinc.* confmf.* 324299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 324399c4c48aSmrgprintf "%s\n" "${_am_result}" >&6; } 32448108eb18Smrg 32451a650d1eSmrg# Check whether --enable-dependency-tracking was given. 324699c4c48aSmrgif test ${enable_dependency_tracking+y} 324799c4c48aSmrgthen : 32481a650d1eSmrg enableval=$enable_dependency_tracking; 32491a650d1eSmrgfi 32508108eb18Smrg 32511a650d1eSmrgif test "x$enable_dependency_tracking" != xno; then 32521a650d1eSmrg am_depcomp="$ac_aux_dir/depcomp" 32531a650d1eSmrg AMDEPBACKSLASH='\' 32545977a007Smrg am__nodep='_no' 32551a650d1eSmrgfi 32561a650d1eSmrg if test "x$enable_dependency_tracking" != xno; then 32571a650d1eSmrg AMDEP_TRUE= 32581a650d1eSmrg AMDEP_FALSE='#' 32591a650d1eSmrgelse 32601a650d1eSmrg AMDEP_TRUE='#' 32611a650d1eSmrg AMDEP_FALSE= 32621a650d1eSmrgfi 32638108eb18Smrg 32648108eb18Smrg 32658108eb18Smrgac_ext=c 32668108eb18Smrgac_cpp='$CPP $CPPFLAGS' 32678108eb18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32688108eb18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32698108eb18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 32708108eb18Smrgif test -n "$ac_tool_prefix"; then 32718108eb18Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 32728108eb18Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 327399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 327499c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 327599c4c48aSmrgif test ${ac_cv_prog_CC+y} 327699c4c48aSmrgthen : 327799c4c48aSmrg printf %s "(cached) " >&6 327899c4c48aSmrgelse $as_nop 32798108eb18Smrg if test -n "$CC"; then 32808108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 32818108eb18Smrgelse 32828108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32838108eb18Smrgfor as_dir in $PATH 32848108eb18Smrgdo 32858108eb18Smrg IFS=$as_save_IFS 328699c4c48aSmrg case $as_dir in #((( 328799c4c48aSmrg '') as_dir=./ ;; 328899c4c48aSmrg */) ;; 328999c4c48aSmrg *) as_dir=$as_dir/ ;; 329099c4c48aSmrg esac 32911a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 329299c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32938108eb18Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 329499c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32958108eb18Smrg break 2 32968108eb18Smrg fi 32978108eb18Smrgdone 32981a650d1eSmrg done 32991a650d1eSmrgIFS=$as_save_IFS 33008108eb18Smrg 33018108eb18Smrgfi 33028108eb18Smrgfi 33038108eb18SmrgCC=$ac_cv_prog_CC 33048108eb18Smrgif test -n "$CC"; then 330599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 330699c4c48aSmrgprintf "%s\n" "$CC" >&6; } 33078108eb18Smrgelse 330899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 330999c4c48aSmrgprintf "%s\n" "no" >&6; } 33108108eb18Smrgfi 33118108eb18Smrg 33121a650d1eSmrg 33138108eb18Smrgfi 33148108eb18Smrgif test -z "$ac_cv_prog_CC"; then 33158108eb18Smrg ac_ct_CC=$CC 33168108eb18Smrg # Extract the first word of "gcc", so it can be a program name with args. 33178108eb18Smrgset dummy gcc; ac_word=$2 331899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 331999c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 332099c4c48aSmrgif test ${ac_cv_prog_ac_ct_CC+y} 332199c4c48aSmrgthen : 332299c4c48aSmrg printf %s "(cached) " >&6 332399c4c48aSmrgelse $as_nop 33248108eb18Smrg if test -n "$ac_ct_CC"; then 33258108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33268108eb18Smrgelse 33278108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33288108eb18Smrgfor as_dir in $PATH 33298108eb18Smrgdo 33308108eb18Smrg IFS=$as_save_IFS 333199c4c48aSmrg case $as_dir in #((( 333299c4c48aSmrg '') as_dir=./ ;; 333399c4c48aSmrg */) ;; 333499c4c48aSmrg *) as_dir=$as_dir/ ;; 333599c4c48aSmrg esac 33361a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 333799c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33388108eb18Smrg ac_cv_prog_ac_ct_CC="gcc" 333999c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33408108eb18Smrg break 2 33418108eb18Smrg fi 33428108eb18Smrgdone 33431a650d1eSmrg done 33441a650d1eSmrgIFS=$as_save_IFS 33458108eb18Smrg 33468108eb18Smrgfi 33478108eb18Smrgfi 33488108eb18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 33498108eb18Smrgif test -n "$ac_ct_CC"; then 335099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 335199c4c48aSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 33528108eb18Smrgelse 335399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 335499c4c48aSmrgprintf "%s\n" "no" >&6; } 33558108eb18Smrgfi 33568108eb18Smrg 33571a650d1eSmrg if test "x$ac_ct_CC" = x; then 33581a650d1eSmrg CC="" 33591a650d1eSmrg else 33601a650d1eSmrg case $cross_compiling:$ac_tool_warned in 33611a650d1eSmrgyes:) 336299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 336399c4c48aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33641a650d1eSmrgac_tool_warned=yes ;; 33651a650d1eSmrgesac 33661a650d1eSmrg CC=$ac_ct_CC 33671a650d1eSmrg fi 33688108eb18Smrgelse 33698108eb18Smrg CC="$ac_cv_prog_CC" 33708108eb18Smrgfi 33718108eb18Smrg 33728108eb18Smrgif test -z "$CC"; then 33731a650d1eSmrg if test -n "$ac_tool_prefix"; then 33741a650d1eSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 33758108eb18Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 337699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 337799c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 337899c4c48aSmrgif test ${ac_cv_prog_CC+y} 337999c4c48aSmrgthen : 338099c4c48aSmrg printf %s "(cached) " >&6 338199c4c48aSmrgelse $as_nop 33828108eb18Smrg if test -n "$CC"; then 33838108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 33848108eb18Smrgelse 33858108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33868108eb18Smrgfor as_dir in $PATH 33878108eb18Smrgdo 33888108eb18Smrg IFS=$as_save_IFS 338999c4c48aSmrg case $as_dir in #((( 339099c4c48aSmrg '') as_dir=./ ;; 339199c4c48aSmrg */) ;; 339299c4c48aSmrg *) as_dir=$as_dir/ ;; 339399c4c48aSmrg esac 33941a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 339599c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33968108eb18Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 339799c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33988108eb18Smrg break 2 33998108eb18Smrg fi 34008108eb18Smrgdone 34011a650d1eSmrg done 34021a650d1eSmrgIFS=$as_save_IFS 34038108eb18Smrg 34048108eb18Smrgfi 34058108eb18Smrgfi 34068108eb18SmrgCC=$ac_cv_prog_CC 34078108eb18Smrgif test -n "$CC"; then 340899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 340999c4c48aSmrgprintf "%s\n" "$CC" >&6; } 34108108eb18Smrgelse 341199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 341299c4c48aSmrgprintf "%s\n" "no" >&6; } 34138108eb18Smrgfi 34148108eb18Smrg 34158108eb18Smrg 34161a650d1eSmrg fi 34178108eb18Smrgfi 34188108eb18Smrgif test -z "$CC"; then 34198108eb18Smrg # Extract the first word of "cc", so it can be a program name with args. 34208108eb18Smrgset dummy cc; ac_word=$2 342199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 342299c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 342399c4c48aSmrgif test ${ac_cv_prog_CC+y} 342499c4c48aSmrgthen : 342599c4c48aSmrg printf %s "(cached) " >&6 342699c4c48aSmrgelse $as_nop 34278108eb18Smrg if test -n "$CC"; then 34288108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 34298108eb18Smrgelse 34308108eb18Smrg ac_prog_rejected=no 34318108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34328108eb18Smrgfor as_dir in $PATH 34338108eb18Smrgdo 34348108eb18Smrg IFS=$as_save_IFS 343599c4c48aSmrg case $as_dir in #((( 343699c4c48aSmrg '') as_dir=./ ;; 343799c4c48aSmrg */) ;; 343899c4c48aSmrg *) as_dir=$as_dir/ ;; 343999c4c48aSmrg esac 34401a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 344199c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 344299c4c48aSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 34438108eb18Smrg ac_prog_rejected=yes 34448108eb18Smrg continue 34458108eb18Smrg fi 34468108eb18Smrg ac_cv_prog_CC="cc" 344799c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34488108eb18Smrg break 2 34498108eb18Smrg fi 34508108eb18Smrgdone 34511a650d1eSmrg done 34521a650d1eSmrgIFS=$as_save_IFS 34538108eb18Smrg 34548108eb18Smrgif test $ac_prog_rejected = yes; then 34558108eb18Smrg # We found a bogon in the path, so make sure we never use it. 34568108eb18Smrg set dummy $ac_cv_prog_CC 34578108eb18Smrg shift 34588108eb18Smrg if test $# != 0; then 34598108eb18Smrg # We chose a different compiler from the bogus one. 34608108eb18Smrg # However, it has the same basename, so the bogon will be chosen 34618108eb18Smrg # first if we set CC to just the basename; use the full file name. 34628108eb18Smrg shift 346399c4c48aSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 34648108eb18Smrg fi 34658108eb18Smrgfi 34668108eb18Smrgfi 34678108eb18Smrgfi 34688108eb18SmrgCC=$ac_cv_prog_CC 34698108eb18Smrgif test -n "$CC"; then 347099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 347199c4c48aSmrgprintf "%s\n" "$CC" >&6; } 34728108eb18Smrgelse 347399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 347499c4c48aSmrgprintf "%s\n" "no" >&6; } 34758108eb18Smrgfi 34768108eb18Smrg 34771a650d1eSmrg 34788108eb18Smrgfi 34798108eb18Smrgif test -z "$CC"; then 34808108eb18Smrg if test -n "$ac_tool_prefix"; then 34811a650d1eSmrg for ac_prog in cl.exe 34828108eb18Smrg do 34838108eb18Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34848108eb18Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 348599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 348699c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 348799c4c48aSmrgif test ${ac_cv_prog_CC+y} 348899c4c48aSmrgthen : 348999c4c48aSmrg printf %s "(cached) " >&6 349099c4c48aSmrgelse $as_nop 34918108eb18Smrg if test -n "$CC"; then 34928108eb18Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 34938108eb18Smrgelse 34948108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34958108eb18Smrgfor as_dir in $PATH 34968108eb18Smrgdo 34978108eb18Smrg IFS=$as_save_IFS 349899c4c48aSmrg case $as_dir in #((( 349999c4c48aSmrg '') as_dir=./ ;; 350099c4c48aSmrg */) ;; 350199c4c48aSmrg *) as_dir=$as_dir/ ;; 350299c4c48aSmrg esac 35031a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 350499c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35058108eb18Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 350699c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35078108eb18Smrg break 2 35088108eb18Smrg fi 35098108eb18Smrgdone 35101a650d1eSmrg done 35111a650d1eSmrgIFS=$as_save_IFS 35128108eb18Smrg 35138108eb18Smrgfi 35148108eb18Smrgfi 35158108eb18SmrgCC=$ac_cv_prog_CC 35168108eb18Smrgif test -n "$CC"; then 351799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 351899c4c48aSmrgprintf "%s\n" "$CC" >&6; } 35198108eb18Smrgelse 352099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 352199c4c48aSmrgprintf "%s\n" "no" >&6; } 35228108eb18Smrgfi 35238108eb18Smrg 35241a650d1eSmrg 35258108eb18Smrg test -n "$CC" && break 35268108eb18Smrg done 35278108eb18Smrgfi 35288108eb18Smrgif test -z "$CC"; then 35298108eb18Smrg ac_ct_CC=$CC 35301a650d1eSmrg for ac_prog in cl.exe 35318108eb18Smrgdo 35328108eb18Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 35338108eb18Smrgset dummy $ac_prog; ac_word=$2 353499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 353599c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 353699c4c48aSmrgif test ${ac_cv_prog_ac_ct_CC+y} 353799c4c48aSmrgthen : 353899c4c48aSmrg printf %s "(cached) " >&6 353999c4c48aSmrgelse $as_nop 35408108eb18Smrg if test -n "$ac_ct_CC"; then 35418108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 35428108eb18Smrgelse 35438108eb18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35448108eb18Smrgfor as_dir in $PATH 35458108eb18Smrgdo 35468108eb18Smrg IFS=$as_save_IFS 354799c4c48aSmrg case $as_dir in #((( 354899c4c48aSmrg '') as_dir=./ ;; 354999c4c48aSmrg */) ;; 355099c4c48aSmrg *) as_dir=$as_dir/ ;; 355199c4c48aSmrg esac 35521a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 355399c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35548108eb18Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 355599c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35568108eb18Smrg break 2 35578108eb18Smrg fi 35588108eb18Smrgdone 35591a650d1eSmrg done 35601a650d1eSmrgIFS=$as_save_IFS 35618108eb18Smrg 35628108eb18Smrgfi 35638108eb18Smrgfi 35648108eb18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 35658108eb18Smrgif test -n "$ac_ct_CC"; then 356699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 356799c4c48aSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 35688108eb18Smrgelse 356999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 357099c4c48aSmrgprintf "%s\n" "no" >&6; } 35718108eb18Smrgfi 35728108eb18Smrg 35731a650d1eSmrg 35748108eb18Smrg test -n "$ac_ct_CC" && break 35758108eb18Smrgdone 35768108eb18Smrg 35771a650d1eSmrg if test "x$ac_ct_CC" = x; then 35781a650d1eSmrg CC="" 35791a650d1eSmrg else 35801a650d1eSmrg case $cross_compiling:$ac_tool_warned in 35811a650d1eSmrgyes:) 358299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 358399c4c48aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 358499c4c48aSmrgac_tool_warned=yes ;; 358599c4c48aSmrgesac 358699c4c48aSmrg CC=$ac_ct_CC 358799c4c48aSmrg fi 358899c4c48aSmrgfi 358999c4c48aSmrg 359099c4c48aSmrgfi 359199c4c48aSmrgif test -z "$CC"; then 359299c4c48aSmrg if test -n "$ac_tool_prefix"; then 359399c4c48aSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 359499c4c48aSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 359599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 359699c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 359799c4c48aSmrgif test ${ac_cv_prog_CC+y} 359899c4c48aSmrgthen : 359999c4c48aSmrg printf %s "(cached) " >&6 360099c4c48aSmrgelse $as_nop 360199c4c48aSmrg if test -n "$CC"; then 360299c4c48aSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 360399c4c48aSmrgelse 360499c4c48aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 360599c4c48aSmrgfor as_dir in $PATH 360699c4c48aSmrgdo 360799c4c48aSmrg IFS=$as_save_IFS 360899c4c48aSmrg case $as_dir in #((( 360999c4c48aSmrg '') as_dir=./ ;; 361099c4c48aSmrg */) ;; 361199c4c48aSmrg *) as_dir=$as_dir/ ;; 361299c4c48aSmrg esac 361399c4c48aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 361499c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 361599c4c48aSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 361699c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 361799c4c48aSmrg break 2 361899c4c48aSmrg fi 361999c4c48aSmrgdone 362099c4c48aSmrg done 362199c4c48aSmrgIFS=$as_save_IFS 362299c4c48aSmrg 362399c4c48aSmrgfi 362499c4c48aSmrgfi 362599c4c48aSmrgCC=$ac_cv_prog_CC 362699c4c48aSmrgif test -n "$CC"; then 362799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 362899c4c48aSmrgprintf "%s\n" "$CC" >&6; } 362999c4c48aSmrgelse 363099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 363199c4c48aSmrgprintf "%s\n" "no" >&6; } 363299c4c48aSmrgfi 363399c4c48aSmrg 363499c4c48aSmrg 363599c4c48aSmrgfi 363699c4c48aSmrgif test -z "$ac_cv_prog_CC"; then 363799c4c48aSmrg ac_ct_CC=$CC 363899c4c48aSmrg # Extract the first word of "clang", so it can be a program name with args. 363999c4c48aSmrgset dummy clang; ac_word=$2 364099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 364199c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 364299c4c48aSmrgif test ${ac_cv_prog_ac_ct_CC+y} 364399c4c48aSmrgthen : 364499c4c48aSmrg printf %s "(cached) " >&6 364599c4c48aSmrgelse $as_nop 364699c4c48aSmrg if test -n "$ac_ct_CC"; then 364799c4c48aSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 364899c4c48aSmrgelse 364999c4c48aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 365099c4c48aSmrgfor as_dir in $PATH 365199c4c48aSmrgdo 365299c4c48aSmrg IFS=$as_save_IFS 365399c4c48aSmrg case $as_dir in #((( 365499c4c48aSmrg '') as_dir=./ ;; 365599c4c48aSmrg */) ;; 365699c4c48aSmrg *) as_dir=$as_dir/ ;; 365799c4c48aSmrg esac 365899c4c48aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 365999c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 366099c4c48aSmrg ac_cv_prog_ac_ct_CC="clang" 366199c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 366299c4c48aSmrg break 2 366399c4c48aSmrg fi 366499c4c48aSmrgdone 366599c4c48aSmrg done 366699c4c48aSmrgIFS=$as_save_IFS 366799c4c48aSmrg 366899c4c48aSmrgfi 366999c4c48aSmrgfi 367099c4c48aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 367199c4c48aSmrgif test -n "$ac_ct_CC"; then 367299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 367399c4c48aSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 367499c4c48aSmrgelse 367599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 367699c4c48aSmrgprintf "%s\n" "no" >&6; } 367799c4c48aSmrgfi 367899c4c48aSmrg 367999c4c48aSmrg if test "x$ac_ct_CC" = x; then 368099c4c48aSmrg CC="" 368199c4c48aSmrg else 368299c4c48aSmrg case $cross_compiling:$ac_tool_warned in 368399c4c48aSmrgyes:) 368499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 368599c4c48aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36861a650d1eSmrgac_tool_warned=yes ;; 36871a650d1eSmrgesac 36881a650d1eSmrg CC=$ac_ct_CC 36891a650d1eSmrg fi 369099c4c48aSmrgelse 369199c4c48aSmrg CC="$ac_cv_prog_CC" 36928108eb18Smrgfi 36938108eb18Smrg 36948108eb18Smrgfi 36958108eb18Smrg 36968108eb18Smrg 369799c4c48aSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 369899c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 36991a650d1eSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 37001a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 37018108eb18Smrg 37028108eb18Smrg# Provide some information about the compiler. 370399c4c48aSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 37041a650d1eSmrgset X $ac_compile 37051a650d1eSmrgac_compiler=$2 370699c4c48aSmrgfor ac_option in --version -v -V -qversion -version; do 37071a650d1eSmrg { { ac_try="$ac_compiler $ac_option >&5" 37081a650d1eSmrgcase "(($ac_try" in 37091a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37101a650d1eSmrg *) ac_try_echo=$ac_try;; 37111a650d1eSmrgesac 37121a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 371399c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 37141a650d1eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 37158108eb18Smrg ac_status=$? 37161a650d1eSmrg if test -s conftest.err; then 37171a650d1eSmrg sed '10a\ 37181a650d1eSmrg... rest of stderr output deleted ... 37191a650d1eSmrg 10q' conftest.err >conftest.er1 37201a650d1eSmrg cat conftest.er1 >&5 37211a650d1eSmrg fi 37221a650d1eSmrg rm -f conftest.er1 conftest.err 372399c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37241a650d1eSmrg test $ac_status = 0; } 37251a650d1eSmrgdone 37268108eb18Smrg 37271a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 37288108eb18Smrg/* end confdefs.h. */ 37298108eb18Smrg 37308108eb18Smrgint 373199c4c48aSmrgmain (void) 37328108eb18Smrg{ 37338108eb18Smrg 37348108eb18Smrg ; 37358108eb18Smrg return 0; 37368108eb18Smrg} 37378108eb18Smrg_ACEOF 37388108eb18Smrgac_clean_files_save=$ac_clean_files 37391a650d1eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 37408108eb18Smrg# Try to create an executable without -o first, disregard a.out. 37418108eb18Smrg# It will help us diagnose broken compilers, and finding out an intuition 37428108eb18Smrg# of exeext. 374399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 374499c4c48aSmrgprintf %s "checking whether the C compiler works... " >&6; } 374599c4c48aSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 37461a650d1eSmrg 37471a650d1eSmrg# The possible output files: 37481a650d1eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 37491a650d1eSmrg 37501a650d1eSmrgac_rmfiles= 37511a650d1eSmrgfor ac_file in $ac_files 37521a650d1eSmrgdo 37531a650d1eSmrg case $ac_file in 37541a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 37551a650d1eSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 37561a650d1eSmrg esac 37571a650d1eSmrgdone 37581a650d1eSmrgrm -f $ac_rmfiles 37591a650d1eSmrg 37601a650d1eSmrgif { { ac_try="$ac_link_default" 37611a650d1eSmrgcase "(($ac_try" in 37621a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37631a650d1eSmrg *) ac_try_echo=$ac_try;; 37641a650d1eSmrgesac 37651a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 376699c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 37671a650d1eSmrg (eval "$ac_link_default") 2>&5 37688108eb18Smrg ac_status=$? 376999c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 377099c4c48aSmrg test $ac_status = 0; } 377199c4c48aSmrgthen : 37721a650d1eSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 37731a650d1eSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 37741a650d1eSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 37751a650d1eSmrg# so that the user can short-circuit this test for compilers unknown to 37761a650d1eSmrg# Autoconf. 37771a650d1eSmrgfor ac_file in $ac_files '' 37788108eb18Smrgdo 37798108eb18Smrg test -f "$ac_file" || continue 37808108eb18Smrg case $ac_file in 37811a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 37828108eb18Smrg ;; 37838108eb18Smrg [ab].out ) 37848108eb18Smrg # We found the default executable, but exeext='' is most 37858108eb18Smrg # certainly right. 37868108eb18Smrg break;; 37878108eb18Smrg *.* ) 378899c4c48aSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 37891a650d1eSmrg then :; else 37901a650d1eSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 37911a650d1eSmrg fi 37921a650d1eSmrg # We set ac_cv_exeext here because the later test for it is not 37931a650d1eSmrg # safe: cross compilers may not add the suffix if given an `-o' 37941a650d1eSmrg # argument, so we may need to know it at that point already. 37951a650d1eSmrg # Even if this section looks crufty: it has the advantage of 37961a650d1eSmrg # actually working. 37978108eb18Smrg break;; 37988108eb18Smrg * ) 37998108eb18Smrg break;; 38008108eb18Smrg esac 38018108eb18Smrgdone 38021a650d1eSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 38031a650d1eSmrg 380499c4c48aSmrgelse $as_nop 38051a650d1eSmrg ac_file='' 38061a650d1eSmrgfi 380799c4c48aSmrgif test -z "$ac_file" 380899c4c48aSmrgthen : 380999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 381099c4c48aSmrgprintf "%s\n" "no" >&6; } 381199c4c48aSmrgprintf "%s\n" "$as_me: failed program was:" >&5 38128108eb18Smrgsed 's/^/| /' conftest.$ac_ext >&5 38138108eb18Smrg 381499c4c48aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 381599c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38161a650d1eSmrgas_fn_error 77 "C compiler cannot create executables 38171a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 381899c4c48aSmrgelse $as_nop 381999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 382099c4c48aSmrgprintf "%s\n" "yes" >&6; } 382199c4c48aSmrgfi 382299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 382399c4c48aSmrgprintf %s "checking for C compiler default output file name... " >&6; } 382499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 382599c4c48aSmrgprintf "%s\n" "$ac_file" >&6; } 38268108eb18Smrgac_exeext=$ac_cv_exeext 38278108eb18Smrg 38281a650d1eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 38298108eb18Smrgac_clean_files=$ac_clean_files_save 383099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 383199c4c48aSmrgprintf %s "checking for suffix of executables... " >&6; } 38321a650d1eSmrgif { { ac_try="$ac_link" 38331a650d1eSmrgcase "(($ac_try" in 38341a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38351a650d1eSmrg *) ac_try_echo=$ac_try;; 38361a650d1eSmrgesac 38371a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 383899c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 38391a650d1eSmrg (eval "$ac_link") 2>&5 38408108eb18Smrg ac_status=$? 384199c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 384299c4c48aSmrg test $ac_status = 0; } 384399c4c48aSmrgthen : 38448108eb18Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 38458108eb18Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 38468108eb18Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 38478108eb18Smrg# `rm'. 38488108eb18Smrgfor ac_file in conftest.exe conftest conftest.*; do 38498108eb18Smrg test -f "$ac_file" || continue 38508108eb18Smrg case $ac_file in 38511a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 38528108eb18Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 38538108eb18Smrg break;; 38548108eb18Smrg * ) break;; 38558108eb18Smrg esac 38568108eb18Smrgdone 385799c4c48aSmrgelse $as_nop 385899c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 385999c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38601a650d1eSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 38611a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 38628108eb18Smrgfi 38631a650d1eSmrgrm -f conftest conftest$ac_cv_exeext 386499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 386599c4c48aSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 38668108eb18Smrg 38678108eb18Smrgrm -f conftest.$ac_ext 38688108eb18SmrgEXEEXT=$ac_cv_exeext 38698108eb18Smrgac_exeext=$EXEEXT 38701a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 38711a650d1eSmrg/* end confdefs.h. */ 38721a650d1eSmrg#include <stdio.h> 38731a650d1eSmrgint 387499c4c48aSmrgmain (void) 38751a650d1eSmrg{ 38761a650d1eSmrgFILE *f = fopen ("conftest.out", "w"); 38771a650d1eSmrg return ferror (f) || fclose (f) != 0; 38781a650d1eSmrg 38791a650d1eSmrg ; 38801a650d1eSmrg return 0; 38811a650d1eSmrg} 38828108eb18Smrg_ACEOF 38831a650d1eSmrgac_clean_files="$ac_clean_files conftest.out" 38841a650d1eSmrg# Check that the compiler produces executables we can run. If not, either 38851a650d1eSmrg# the compiler is broken, or we cross compile. 388699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 388799c4c48aSmrgprintf %s "checking whether we are cross compiling... " >&6; } 38881a650d1eSmrgif test "$cross_compiling" != yes; then 38891a650d1eSmrg { { ac_try="$ac_link" 38901a650d1eSmrgcase "(($ac_try" in 38911a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38921a650d1eSmrg *) ac_try_echo=$ac_try;; 38931a650d1eSmrgesac 38941a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 389599c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 38961a650d1eSmrg (eval "$ac_link") 2>&5 38971a650d1eSmrg ac_status=$? 389899c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38991a650d1eSmrg test $ac_status = 0; } 39001a650d1eSmrg if { ac_try='./conftest$ac_cv_exeext' 39011a650d1eSmrg { { case "(($ac_try" in 39021a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39031a650d1eSmrg *) ac_try_echo=$ac_try;; 39041a650d1eSmrgesac 39051a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 390699c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 39071a650d1eSmrg (eval "$ac_try") 2>&5 39081a650d1eSmrg ac_status=$? 390999c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39101a650d1eSmrg test $ac_status = 0; }; }; then 39111a650d1eSmrg cross_compiling=no 39121a650d1eSmrg else 39131a650d1eSmrg if test "$cross_compiling" = maybe; then 39141a650d1eSmrg cross_compiling=yes 39151a650d1eSmrg else 391699c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 391799c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 391899c4c48aSmrgas_fn_error 77 "cannot run C compiled programs. 39191a650d1eSmrgIf you meant to cross compile, use \`--host'. 39201a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 39211a650d1eSmrg fi 39221a650d1eSmrg fi 39231a650d1eSmrgfi 392499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 392599c4c48aSmrgprintf "%s\n" "$cross_compiling" >&6; } 39261a650d1eSmrg 39271a650d1eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 39281a650d1eSmrgac_clean_files=$ac_clean_files_save 392999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 393099c4c48aSmrgprintf %s "checking for suffix of object files... " >&6; } 393199c4c48aSmrgif test ${ac_cv_objext+y} 393299c4c48aSmrgthen : 393399c4c48aSmrg printf %s "(cached) " >&6 393499c4c48aSmrgelse $as_nop 39351a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39368108eb18Smrg/* end confdefs.h. */ 39378108eb18Smrg 39388108eb18Smrgint 393999c4c48aSmrgmain (void) 39408108eb18Smrg{ 39418108eb18Smrg 39428108eb18Smrg ; 39438108eb18Smrg return 0; 39448108eb18Smrg} 39458108eb18Smrg_ACEOF 39468108eb18Smrgrm -f conftest.o conftest.obj 39471a650d1eSmrgif { { ac_try="$ac_compile" 39481a650d1eSmrgcase "(($ac_try" in 39491a650d1eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39501a650d1eSmrg *) ac_try_echo=$ac_try;; 39511a650d1eSmrgesac 39521a650d1eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 395399c4c48aSmrgprintf "%s\n" "$ac_try_echo"; } >&5 39541a650d1eSmrg (eval "$ac_compile") 2>&5 39558108eb18Smrg ac_status=$? 395699c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 395799c4c48aSmrg test $ac_status = 0; } 395899c4c48aSmrgthen : 39591a650d1eSmrg for ac_file in conftest.o conftest.obj conftest.*; do 39601a650d1eSmrg test -f "$ac_file" || continue; 39618108eb18Smrg case $ac_file in 39621a650d1eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 39638108eb18Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 39648108eb18Smrg break;; 39658108eb18Smrg esac 39668108eb18Smrgdone 396799c4c48aSmrgelse $as_nop 396899c4c48aSmrg printf "%s\n" "$as_me: failed program was:" >&5 39698108eb18Smrgsed 's/^/| /' conftest.$ac_ext >&5 39708108eb18Smrg 397199c4c48aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 397299c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39731a650d1eSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 39741a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 39758108eb18Smrgfi 39768108eb18Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 39778108eb18Smrgfi 397899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 397999c4c48aSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 39808108eb18SmrgOBJEXT=$ac_cv_objext 39818108eb18Smrgac_objext=$OBJEXT 398299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 398399c4c48aSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 398499c4c48aSmrgif test ${ac_cv_c_compiler_gnu+y} 398599c4c48aSmrgthen : 398699c4c48aSmrg printf %s "(cached) " >&6 398799c4c48aSmrgelse $as_nop 39881a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39898108eb18Smrg/* end confdefs.h. */ 39908108eb18Smrg 39918108eb18Smrgint 399299c4c48aSmrgmain (void) 39938108eb18Smrg{ 39948108eb18Smrg#ifndef __GNUC__ 39958108eb18Smrg choke me 39968108eb18Smrg#endif 39978108eb18Smrg 39988108eb18Smrg ; 39998108eb18Smrg return 0; 40008108eb18Smrg} 40018108eb18Smrg_ACEOF 400299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 400399c4c48aSmrgthen : 40048108eb18Smrg ac_compiler_gnu=yes 400599c4c48aSmrgelse $as_nop 40061a650d1eSmrg ac_compiler_gnu=no 40078108eb18Smrgfi 400899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40098108eb18Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 40108108eb18Smrg 40118108eb18Smrgfi 401299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 401399c4c48aSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 401499c4c48aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 401599c4c48aSmrg 40161a650d1eSmrgif test $ac_compiler_gnu = yes; then 40171a650d1eSmrg GCC=yes 40181a650d1eSmrgelse 40191a650d1eSmrg GCC= 40201a650d1eSmrgfi 402199c4c48aSmrgac_test_CFLAGS=${CFLAGS+y} 40228108eb18Smrgac_save_CFLAGS=$CFLAGS 402399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 402499c4c48aSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 402599c4c48aSmrgif test ${ac_cv_prog_cc_g+y} 402699c4c48aSmrgthen : 402799c4c48aSmrg printf %s "(cached) " >&6 402899c4c48aSmrgelse $as_nop 40291a650d1eSmrg ac_save_c_werror_flag=$ac_c_werror_flag 40301a650d1eSmrg ac_c_werror_flag=yes 40311a650d1eSmrg ac_cv_prog_cc_g=no 40321a650d1eSmrg CFLAGS="-g" 40331a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40348108eb18Smrg/* end confdefs.h. */ 40358108eb18Smrg 40368108eb18Smrgint 403799c4c48aSmrgmain (void) 40388108eb18Smrg{ 40398108eb18Smrg 40408108eb18Smrg ; 40418108eb18Smrg return 0; 40428108eb18Smrg} 40438108eb18Smrg_ACEOF 404499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 404599c4c48aSmrgthen : 40468108eb18Smrg ac_cv_prog_cc_g=yes 404799c4c48aSmrgelse $as_nop 40481a650d1eSmrg CFLAGS="" 40491a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40501a650d1eSmrg/* end confdefs.h. */ 40511a650d1eSmrg 40521a650d1eSmrgint 405399c4c48aSmrgmain (void) 40541a650d1eSmrg{ 40551a650d1eSmrg 40561a650d1eSmrg ; 40571a650d1eSmrg return 0; 40581a650d1eSmrg} 40591a650d1eSmrg_ACEOF 406099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 406199c4c48aSmrgthen : 40621a650d1eSmrg 406399c4c48aSmrgelse $as_nop 40641a650d1eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 40651a650d1eSmrg CFLAGS="-g" 40661a650d1eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40671a650d1eSmrg/* end confdefs.h. */ 40681a650d1eSmrg 40691a650d1eSmrgint 407099c4c48aSmrgmain (void) 40711a650d1eSmrg{ 40728108eb18Smrg 40731a650d1eSmrg ; 40741a650d1eSmrg return 0; 40751a650d1eSmrg} 40761a650d1eSmrg_ACEOF 407799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 407899c4c48aSmrgthen : 40791a650d1eSmrg ac_cv_prog_cc_g=yes 40801a650d1eSmrgfi 408199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40828108eb18Smrgfi 408399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40848108eb18Smrgfi 408599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40861a650d1eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 40871a650d1eSmrgfi 408899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 408999c4c48aSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 409099c4c48aSmrgif test $ac_test_CFLAGS; then 40918108eb18Smrg CFLAGS=$ac_save_CFLAGS 40928108eb18Smrgelif test $ac_cv_prog_cc_g = yes; then 40938108eb18Smrg if test "$GCC" = yes; then 40948108eb18Smrg CFLAGS="-g -O2" 40958108eb18Smrg else 40968108eb18Smrg CFLAGS="-g" 40978108eb18Smrg fi 40988108eb18Smrgelse 40998108eb18Smrg if test "$GCC" = yes; then 41008108eb18Smrg CFLAGS="-O2" 41018108eb18Smrg else 41028108eb18Smrg CFLAGS= 41038108eb18Smrg fi 41048108eb18Smrgfi 410599c4c48aSmrgac_prog_cc_stdc=no 410699c4c48aSmrgif test x$ac_prog_cc_stdc = xno 410799c4c48aSmrgthen : 410899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 410999c4c48aSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 411099c4c48aSmrgif test ${ac_cv_prog_cc_c11+y} 411199c4c48aSmrgthen : 411299c4c48aSmrg printf %s "(cached) " >&6 411399c4c48aSmrgelse $as_nop 411499c4c48aSmrg ac_cv_prog_cc_c11=no 41158108eb18Smrgac_save_CC=$CC 41161a650d1eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 41178108eb18Smrg/* end confdefs.h. */ 411899c4c48aSmrg$ac_c_conftest_c11_program 411999c4c48aSmrg_ACEOF 412099c4c48aSmrgfor ac_arg in '' -std=gnu11 412199c4c48aSmrgdo 412299c4c48aSmrg CC="$ac_save_CC $ac_arg" 412399c4c48aSmrg if ac_fn_c_try_compile "$LINENO" 412499c4c48aSmrgthen : 412599c4c48aSmrg ac_cv_prog_cc_c11=$ac_arg 412699c4c48aSmrgfi 412799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 412899c4c48aSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 412999c4c48aSmrgdone 413099c4c48aSmrgrm -f conftest.$ac_ext 413199c4c48aSmrgCC=$ac_save_CC 413299c4c48aSmrgfi 41338108eb18Smrg 413499c4c48aSmrgif test "x$ac_cv_prog_cc_c11" = xno 413599c4c48aSmrgthen : 413699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 413799c4c48aSmrgprintf "%s\n" "unsupported" >&6; } 413899c4c48aSmrgelse $as_nop 413999c4c48aSmrg if test "x$ac_cv_prog_cc_c11" = x 414099c4c48aSmrgthen : 414199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 414299c4c48aSmrgprintf "%s\n" "none needed" >&6; } 414399c4c48aSmrgelse $as_nop 414499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 414599c4c48aSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 414699c4c48aSmrg CC="$CC $ac_cv_prog_cc_c11" 414799c4c48aSmrgfi 414899c4c48aSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 414999c4c48aSmrg ac_prog_cc_stdc=c11 415099c4c48aSmrgfi 415199c4c48aSmrgfi 415299c4c48aSmrgif test x$ac_prog_cc_stdc = xno 415399c4c48aSmrgthen : 415499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 415599c4c48aSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 415699c4c48aSmrgif test ${ac_cv_prog_cc_c99+y} 415799c4c48aSmrgthen : 415899c4c48aSmrg printf %s "(cached) " >&6 415999c4c48aSmrgelse $as_nop 416099c4c48aSmrg ac_cv_prog_cc_c99=no 416199c4c48aSmrgac_save_CC=$CC 416299c4c48aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 416399c4c48aSmrg/* end confdefs.h. */ 416499c4c48aSmrg$ac_c_conftest_c99_program 416599c4c48aSmrg_ACEOF 416699c4c48aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 416799c4c48aSmrgdo 416899c4c48aSmrg CC="$ac_save_CC $ac_arg" 416999c4c48aSmrg if ac_fn_c_try_compile "$LINENO" 417099c4c48aSmrgthen : 417199c4c48aSmrg ac_cv_prog_cc_c99=$ac_arg 417299c4c48aSmrgfi 417399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 417499c4c48aSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 417599c4c48aSmrgdone 417699c4c48aSmrgrm -f conftest.$ac_ext 417799c4c48aSmrgCC=$ac_save_CC 417899c4c48aSmrgfi 41791a650d1eSmrg 418099c4c48aSmrgif test "x$ac_cv_prog_cc_c99" = xno 418199c4c48aSmrgthen : 418299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 418399c4c48aSmrgprintf "%s\n" "unsupported" >&6; } 418499c4c48aSmrgelse $as_nop 418599c4c48aSmrg if test "x$ac_cv_prog_cc_c99" = x 418699c4c48aSmrgthen : 418799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 418899c4c48aSmrgprintf "%s\n" "none needed" >&6; } 418999c4c48aSmrgelse $as_nop 419099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 419199c4c48aSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 419299c4c48aSmrg CC="$CC $ac_cv_prog_cc_c99" 419399c4c48aSmrgfi 419499c4c48aSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 419599c4c48aSmrg ac_prog_cc_stdc=c99 419699c4c48aSmrgfi 419799c4c48aSmrgfi 419899c4c48aSmrgif test x$ac_prog_cc_stdc = xno 419999c4c48aSmrgthen : 420099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 420199c4c48aSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 420299c4c48aSmrgif test ${ac_cv_prog_cc_c89+y} 420399c4c48aSmrgthen : 420499c4c48aSmrg printf %s "(cached) " >&6 420599c4c48aSmrgelse $as_nop 420699c4c48aSmrg ac_cv_prog_cc_c89=no 420799c4c48aSmrgac_save_CC=$CC 420899c4c48aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 420999c4c48aSmrg/* end confdefs.h. */ 421099c4c48aSmrg$ac_c_conftest_c89_program 42118108eb18Smrg_ACEOF 421299c4c48aSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 42138108eb18Smrgdo 42148108eb18Smrg CC="$ac_save_CC $ac_arg" 421599c4c48aSmrg if ac_fn_c_try_compile "$LINENO" 421699c4c48aSmrgthen : 42171a650d1eSmrg ac_cv_prog_cc_c89=$ac_arg 42188108eb18Smrgfi 421999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 42201a650d1eSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 42218108eb18Smrgdone 42221a650d1eSmrgrm -f conftest.$ac_ext 42238108eb18SmrgCC=$ac_save_CC 42248108eb18Smrgfi 42258108eb18Smrg 422699c4c48aSmrgif test "x$ac_cv_prog_cc_c89" = xno 422799c4c48aSmrgthen : 422899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 422999c4c48aSmrgprintf "%s\n" "unsupported" >&6; } 423099c4c48aSmrgelse $as_nop 423199c4c48aSmrg if test "x$ac_cv_prog_cc_c89" = x 423299c4c48aSmrgthen : 423399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 423499c4c48aSmrgprintf "%s\n" "none needed" >&6; } 423599c4c48aSmrgelse $as_nop 423699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 423799c4c48aSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 423899c4c48aSmrg CC="$CC $ac_cv_prog_cc_c89" 423999c4c48aSmrgfi 424099c4c48aSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 424199c4c48aSmrg ac_prog_cc_stdc=c89 424299c4c48aSmrgfi 42438108eb18Smrgfi 42448108eb18Smrg 42458108eb18Smrgac_ext=c 42468108eb18Smrgac_cpp='$CPP $CPPFLAGS' 42478108eb18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42488108eb18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42498108eb18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 42508108eb18Smrg 425199c4c48aSmrg 425299c4c48aSmrg ac_ext=c 42538a355152Smrgac_cpp='$CPP $CPPFLAGS' 42548a355152Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42558a355152Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42568a355152Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 425799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 425899c4c48aSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 425999c4c48aSmrgif test ${am_cv_prog_cc_c_o+y} 426099c4c48aSmrgthen : 426199c4c48aSmrg printf %s "(cached) " >&6 426299c4c48aSmrgelse $as_nop 42638a355152Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42648a355152Smrg/* end confdefs.h. */ 42658a355152Smrg 42668a355152Smrgint 426799c4c48aSmrgmain (void) 42688a355152Smrg{ 42698a355152Smrg 42708a355152Smrg ; 42718a355152Smrg return 0; 42728a355152Smrg} 42738a355152Smrg_ACEOF 42748a355152Smrg # Make sure it works both with $CC and with simple cc. 42758a355152Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 42768a355152Smrg # compilers refuse to overwrite an existing .o file with -o, 42778a355152Smrg # though they will create one. 42788a355152Smrg am_cv_prog_cc_c_o=yes 42798a355152Smrg for am_i in 1 2; do 42808a355152Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 42818a355152Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 42828a355152Smrg ac_status=$? 42838a355152Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 42848a355152Smrg (exit $ac_status); } \ 42858a355152Smrg && test -f conftest2.$ac_objext; then 42868a355152Smrg : OK 42878a355152Smrg else 42888a355152Smrg am_cv_prog_cc_c_o=no 42898a355152Smrg break 42908a355152Smrg fi 42918a355152Smrg done 42928a355152Smrg rm -f core conftest* 42938a355152Smrg unset am_i 42948a355152Smrgfi 429599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 429699c4c48aSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 42978a355152Smrgif test "$am_cv_prog_cc_c_o" != yes; then 42988a355152Smrg # Losing compiler, so override with the script. 42998a355152Smrg # FIXME: It is wrong to rewrite CC. 43008a355152Smrg # But if we don't then we get into trouble of one sort or another. 43018a355152Smrg # A longer-term fix would be to have automake use am__CC in this case, 43028a355152Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 43038a355152Smrg CC="$am_aux_dir/compile $CC" 43048a355152Smrgfi 43058a355152Smrgac_ext=c 43068a355152Smrgac_cpp='$CPP $CPPFLAGS' 43078a355152Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43088a355152Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43098a355152Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 43108a355152Smrg 43118a355152Smrg 43128108eb18Smrgdepcc="$CC" am_compiler_list= 43138108eb18Smrg 431499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 431599c4c48aSmrgprintf %s "checking dependency style of $depcc... " >&6; } 431699c4c48aSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 431799c4c48aSmrgthen : 431899c4c48aSmrg printf %s "(cached) " >&6 431999c4c48aSmrgelse $as_nop 43208108eb18Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 43218108eb18Smrg # We make a subdir and do the tests there. Otherwise we can end up 43228108eb18Smrg # making bogus files that we don't know about and never remove. For 43238108eb18Smrg # instance it was reported that on HP-UX the gcc test will end up 43248a355152Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 43258a355152Smrg # in D". 43265977a007Smrg rm -rf conftest.dir 43278108eb18Smrg mkdir conftest.dir 43288108eb18Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 43298108eb18Smrg # using a relative directory. 43308108eb18Smrg cp "$am_depcomp" conftest.dir 43318108eb18Smrg cd conftest.dir 43328108eb18Smrg # We will build objects and dependencies in a subdirectory because 43338108eb18Smrg # it helps to detect inapplicable dependency modes. For instance 43348108eb18Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 43358108eb18Smrg # side effect of compilation, but ICC will put the dependencies in 43368108eb18Smrg # the current directory while Tru64 will put them in the object 43378108eb18Smrg # directory. 43388108eb18Smrg mkdir sub 43398108eb18Smrg 43408108eb18Smrg am_cv_CC_dependencies_compiler_type=none 43418108eb18Smrg if test "$am_compiler_list" = ""; then 43428108eb18Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 43438108eb18Smrg fi 43441a650d1eSmrg am__universal=false 43451a650d1eSmrg case " $depcc " in #( 43461a650d1eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 43471a650d1eSmrg esac 43481a650d1eSmrg 43498108eb18Smrg for depmode in $am_compiler_list; do 43508108eb18Smrg # Setup a source with many dependencies, because some compilers 43518108eb18Smrg # like to wrap large dependency lists on column 80 (with \), and 43528108eb18Smrg # we should not choose a depcomp mode which is confused by this. 43538108eb18Smrg # 43548108eb18Smrg # We need to recreate these files for each test, as the compiler may 43558108eb18Smrg # overwrite some of them when testing with obscure command lines. 43568108eb18Smrg # This happens at least with the AIX C compiler. 43578108eb18Smrg : > sub/conftest.c 43588108eb18Smrg for i in 1 2 3 4 5 6; do 43598108eb18Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 43608a355152Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 43618a355152Smrg # Solaris 10 /bin/sh. 43628a355152Smrg echo '/* dummy */' > sub/conftst$i.h 43638108eb18Smrg done 43648108eb18Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 43658108eb18Smrg 43668a355152Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 43671a650d1eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 43688a355152Smrg # handle '-M -o', and we need to detect this. Also, some Intel 43698a355152Smrg # versions had trouble with output in subdirs. 43701a650d1eSmrg am__obj=sub/conftest.${OBJEXT-o} 43711a650d1eSmrg am__minus_obj="-o $am__obj" 43728108eb18Smrg case $depmode in 43731a650d1eSmrg gcc) 43741a650d1eSmrg # This depmode causes a compiler race in universal mode. 43751a650d1eSmrg test "$am__universal" = false || continue 43761a650d1eSmrg ;; 43778108eb18Smrg nosideeffect) 43788a355152Smrg # After this tag, mechanisms are not by side-effect, so they'll 43798a355152Smrg # only be used when explicitly requested. 43808108eb18Smrg if test "x$enable_dependency_tracking" = xyes; then 43818108eb18Smrg continue 43828108eb18Smrg else 43838108eb18Smrg break 43848108eb18Smrg fi 43858108eb18Smrg ;; 43865977a007Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 43878a355152Smrg # This compiler won't grok '-c -o', but also, the minuso test has 43881a650d1eSmrg # not run yet. These depmodes are late enough in the game, and 43891a650d1eSmrg # so weak that their functioning should not be impacted. 43901a650d1eSmrg am__obj=conftest.${OBJEXT-o} 43911a650d1eSmrg am__minus_obj= 43921a650d1eSmrg ;; 43938108eb18Smrg none) break ;; 43948108eb18Smrg esac 43958108eb18Smrg if depmode=$depmode \ 43961a650d1eSmrg source=sub/conftest.c object=$am__obj \ 43978108eb18Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 43981a650d1eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 43998108eb18Smrg >/dev/null 2>conftest.err && 44001a650d1eSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 44018108eb18Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 44021a650d1eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 440399c4c48aSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 440499c4c48aSmrg # icc doesn't choke on unknown options, it will just issue warnings 440599c4c48aSmrg # or remarks (even with -Werror). So we grep stderr for any message 440699c4c48aSmrg # that says an option was ignored or not supported. 440799c4c48aSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 440899c4c48aSmrg # icc: Command line warning: ignoring option '-M'; no argument required 440999c4c48aSmrg # The diagnosis changed in icc 8.0: 441099c4c48aSmrg # icc: Command line remark: option '-MP' not supported 441199c4c48aSmrg if (grep 'ignoring option' conftest.err || 441299c4c48aSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 441399c4c48aSmrg am_cv_CC_dependencies_compiler_type=$depmode 441499c4c48aSmrg break 441599c4c48aSmrg fi 44161a650d1eSmrg fi 44171a650d1eSmrg done 44188108eb18Smrg 441999c4c48aSmrg cd .. 442099c4c48aSmrg rm -rf conftest.dir 44218108eb18Smrgelse 442299c4c48aSmrg am_cv_CC_dependencies_compiler_type=none 44238108eb18Smrgfi 44248108eb18Smrg 44258108eb18Smrgfi 442699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 442799c4c48aSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 442899c4c48aSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 44298108eb18Smrg 443099c4c48aSmrg if 443199c4c48aSmrg test "x$enable_dependency_tracking" != xno \ 443299c4c48aSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 443399c4c48aSmrg am__fastdepCC_TRUE= 443499c4c48aSmrg am__fastdepCC_FALSE='#' 44351a650d1eSmrgelse 443699c4c48aSmrg am__fastdepCC_TRUE='#' 443799c4c48aSmrg am__fastdepCC_FALSE= 44381a650d1eSmrgfi 44398108eb18Smrg 44408108eb18Smrg 44418108eb18Smrg 444299c4c48aSmrg 444399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 444499c4c48aSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 444599c4c48aSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 444699c4c48aSmrgthen : 444799c4c48aSmrg printf %s "(cached) " >&6 444899c4c48aSmrgelse $as_nop 444999c4c48aSmrg ac_save_CFLAGS=$CFLAGS 445099c4c48aSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 445199c4c48aSmrg for ac_arg in '' -fno-builtin; do 445299c4c48aSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 445399c4c48aSmrg # This test program should *not* compile successfully. 445499c4c48aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44551a650d1eSmrg/* end confdefs.h. */ 44568108eb18Smrg 44578108eb18Smrgint 445899c4c48aSmrgmain (void) 44598108eb18Smrg{ 446099c4c48aSmrg(void) strchr; 44618108eb18Smrg ; 44628108eb18Smrg return 0; 44638108eb18Smrg} 44648108eb18Smrg_ACEOF 446599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 446699c4c48aSmrgthen : 44678108eb18Smrg 446899c4c48aSmrgelse $as_nop 446999c4c48aSmrg # This test program should compile successfully. 447099c4c48aSmrg # No library function is consistently available on 447199c4c48aSmrg # freestanding implementations, so test against a dummy 447299c4c48aSmrg # declaration. Include always-available headers on the 447399c4c48aSmrg # off chance that they somehow elicit warnings. 447499c4c48aSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44751a650d1eSmrg/* end confdefs.h. */ 447699c4c48aSmrg#include <float.h> 447799c4c48aSmrg#include <limits.h> 447899c4c48aSmrg#include <stdarg.h> 447999c4c48aSmrg#include <stddef.h> 448099c4c48aSmrgextern void ac_decl (int, char *); 44818108eb18Smrg 44828108eb18Smrgint 448399c4c48aSmrgmain (void) 44848108eb18Smrg{ 448599c4c48aSmrg(void) ac_decl (0, (char *) 0); 448699c4c48aSmrg (void) ac_decl; 448799c4c48aSmrg 448899c4c48aSmrg ; 44898108eb18Smrg return 0; 44908108eb18Smrg} 44918108eb18Smrg_ACEOF 449299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 449399c4c48aSmrgthen : 449499c4c48aSmrg if test x"$ac_arg" = x 449599c4c48aSmrgthen : 449699c4c48aSmrg ac_cv_c_undeclared_builtin_options='none needed' 449799c4c48aSmrgelse $as_nop 449899c4c48aSmrg ac_cv_c_undeclared_builtin_options=$ac_arg 44991a650d1eSmrgfi 450099c4c48aSmrg break 45018108eb18Smrgfi 450299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45038108eb18Smrgfi 450499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 450599c4c48aSmrg done 450699c4c48aSmrg CFLAGS=$ac_save_CFLAGS 450799c4c48aSmrg 450899c4c48aSmrgfi 450999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 451099c4c48aSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 451199c4c48aSmrg case $ac_cv_c_undeclared_builtin_options in #( 451299c4c48aSmrg 'cannot detect') : 451399c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 451499c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 451599c4c48aSmrgas_fn_error $? "cannot make $CC report undeclared builtins 451699c4c48aSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 451799c4c48aSmrg 'none needed') : 451899c4c48aSmrg ac_c_undeclared_builtin_options='' ;; #( 451999c4c48aSmrg *) : 452099c4c48aSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 452199c4c48aSmrgesac 452299c4c48aSmrg 452399c4c48aSmrgac_header= ac_cache= 452499c4c48aSmrgfor ac_item in $ac_header_c_list 452599c4c48aSmrgdo 452699c4c48aSmrg if test $ac_cache; then 452799c4c48aSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 452899c4c48aSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 452999c4c48aSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 453099c4c48aSmrg fi 453199c4c48aSmrg ac_header= ac_cache= 453299c4c48aSmrg elif test $ac_header; then 453399c4c48aSmrg ac_cache=$ac_item 453499c4c48aSmrg else 453599c4c48aSmrg ac_header=$ac_item 453699c4c48aSmrg fi 453799c4c48aSmrgdone 453899c4c48aSmrg 45391a650d1eSmrg 45401a650d1eSmrg 45418108eb18Smrg 45428108eb18Smrg 45438108eb18Smrg 45441a650d1eSmrg 45458108eb18Smrg 454699c4c48aSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 454799c4c48aSmrgthen : 45488108eb18Smrg 454999c4c48aSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 455099c4c48aSmrg 455199c4c48aSmrgfi 45528108eb18Smrg 45535977a007Smrg 45545977a007Smrg 455599c4c48aSmrg 455699c4c48aSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 455799c4c48aSmrgif test "x$ac_cv_have_decl___clang__" = xyes 455899c4c48aSmrgthen : 45595977a007Smrg CLANGCC="yes" 456099c4c48aSmrgelse $as_nop 45615977a007Smrg CLANGCC="no" 45625977a007Smrgfi 456399c4c48aSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 456499c4c48aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 456599c4c48aSmrgthen : 45665977a007Smrg INTELCC="yes" 456799c4c48aSmrgelse $as_nop 45685977a007Smrg INTELCC="no" 45695977a007Smrgfi 457099c4c48aSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 457199c4c48aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 457299c4c48aSmrgthen : 45735977a007Smrg SUNCC="yes" 457499c4c48aSmrgelse $as_nop 45755977a007Smrg SUNCC="no" 45765977a007Smrgfi 45775977a007Smrg 45785977a007Smrg 45795977a007Smrg 45805977a007Smrg 45818a355152Smrg 45828a355152Smrg 45838a355152Smrg 45848a355152Smrg 45858108eb18Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 45868108eb18Smrg if test -n "$ac_tool_prefix"; then 45878108eb18Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 45888108eb18Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 458999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 459099c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 459199c4c48aSmrgif test ${ac_cv_path_PKG_CONFIG+y} 459299c4c48aSmrgthen : 459399c4c48aSmrg printf %s "(cached) " >&6 459499c4c48aSmrgelse $as_nop 45958108eb18Smrg case $PKG_CONFIG in 45968108eb18Smrg [\\/]* | ?:[\\/]*) 45978108eb18Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 45988108eb18Smrg ;; 45998108eb18Smrg *) 46008108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46018108eb18Smrgfor as_dir in $PATH 46028108eb18Smrgdo 46038108eb18Smrg IFS=$as_save_IFS 460499c4c48aSmrg case $as_dir in #((( 460599c4c48aSmrg '') as_dir=./ ;; 460699c4c48aSmrg */) ;; 460799c4c48aSmrg *) as_dir=$as_dir/ ;; 460899c4c48aSmrg esac 46091a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 461099c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 461199c4c48aSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 461299c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 46138108eb18Smrg break 2 46148108eb18Smrg fi 46158108eb18Smrgdone 46161a650d1eSmrg done 46171a650d1eSmrgIFS=$as_save_IFS 46188108eb18Smrg 46198108eb18Smrg ;; 46208108eb18Smrgesac 46218108eb18Smrgfi 46228108eb18SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 46238108eb18Smrgif test -n "$PKG_CONFIG"; then 462499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 462599c4c48aSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 46268108eb18Smrgelse 462799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 462899c4c48aSmrgprintf "%s\n" "no" >&6; } 46298108eb18Smrgfi 46308108eb18Smrg 46311a650d1eSmrg 46328108eb18Smrgfi 46338108eb18Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 46348108eb18Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 46358108eb18Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 46368108eb18Smrgset dummy pkg-config; ac_word=$2 463799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 463899c4c48aSmrgprintf %s "checking for $ac_word... " >&6; } 463999c4c48aSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 464099c4c48aSmrgthen : 464199c4c48aSmrg printf %s "(cached) " >&6 464299c4c48aSmrgelse $as_nop 46438108eb18Smrg case $ac_pt_PKG_CONFIG in 46448108eb18Smrg [\\/]* | ?:[\\/]*) 46458108eb18Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 46468108eb18Smrg ;; 46478108eb18Smrg *) 46488108eb18Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46498108eb18Smrgfor as_dir in $PATH 46508108eb18Smrgdo 46518108eb18Smrg IFS=$as_save_IFS 465299c4c48aSmrg case $as_dir in #((( 465399c4c48aSmrg '') as_dir=./ ;; 465499c4c48aSmrg */) ;; 465599c4c48aSmrg *) as_dir=$as_dir/ ;; 465699c4c48aSmrg esac 46571a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 465899c4c48aSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 465999c4c48aSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 466099c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 46618108eb18Smrg break 2 46628108eb18Smrg fi 46638108eb18Smrgdone 46641a650d1eSmrg done 46651a650d1eSmrgIFS=$as_save_IFS 46668108eb18Smrg 46678108eb18Smrg ;; 46688108eb18Smrgesac 46698108eb18Smrgfi 46708108eb18Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 46718108eb18Smrgif test -n "$ac_pt_PKG_CONFIG"; then 467299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 467399c4c48aSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 46748108eb18Smrgelse 467599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 467699c4c48aSmrgprintf "%s\n" "no" >&6; } 46778108eb18Smrgfi 46788108eb18Smrg 46791a650d1eSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 46801a650d1eSmrg PKG_CONFIG="" 46811a650d1eSmrg else 46821a650d1eSmrg case $cross_compiling:$ac_tool_warned in 46831a650d1eSmrgyes:) 468499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 468599c4c48aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 46861a650d1eSmrgac_tool_warned=yes ;; 46871a650d1eSmrgesac 46881a650d1eSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 46891a650d1eSmrg fi 46908108eb18Smrgelse 46918108eb18Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 46928108eb18Smrgfi 46938108eb18Smrg 46948108eb18Smrgfi 46958108eb18Smrgif test -n "$PKG_CONFIG"; then 46968108eb18Smrg _pkg_min_version=0.9.0 469799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 469899c4c48aSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 46998108eb18Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 470099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 470199c4c48aSmrgprintf "%s\n" "yes" >&6; } 47028108eb18Smrg else 470399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 470499c4c48aSmrgprintf "%s\n" "no" >&6; } 47058108eb18Smrg PKG_CONFIG="" 47068108eb18Smrg fi 47078108eb18Smrgfi 47088108eb18Smrg 470999c4c48aSmrg 471099c4c48aSmrg # Make sure we can run config.sub. 471199c4c48aSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 471299c4c48aSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 471399c4c48aSmrg 471499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 471599c4c48aSmrgprintf %s "checking build system type... " >&6; } 471699c4c48aSmrgif test ${ac_cv_build+y} 471799c4c48aSmrgthen : 471899c4c48aSmrg printf %s "(cached) " >&6 471999c4c48aSmrgelse $as_nop 47201a650d1eSmrg ac_build_alias=$build_alias 47211a650d1eSmrgtest "x$ac_build_alias" = x && 472299c4c48aSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 47231a650d1eSmrgtest "x$ac_build_alias" = x && 47241a650d1eSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 472599c4c48aSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 472699c4c48aSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 47271a650d1eSmrg 47281a650d1eSmrgfi 472999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 473099c4c48aSmrgprintf "%s\n" "$ac_cv_build" >&6; } 47311a650d1eSmrgcase $ac_cv_build in 47321a650d1eSmrg*-*-*) ;; 47331a650d1eSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 47341a650d1eSmrgesac 47351a650d1eSmrgbuild=$ac_cv_build 47361a650d1eSmrgac_save_IFS=$IFS; IFS='-' 47371a650d1eSmrgset x $ac_cv_build 47381a650d1eSmrgshift 47391a650d1eSmrgbuild_cpu=$1 47401a650d1eSmrgbuild_vendor=$2 47411a650d1eSmrgshift; shift 47421a650d1eSmrg# Remember, the first character of IFS is used to create $*, 47431a650d1eSmrg# except with old shells: 47441a650d1eSmrgbuild_os=$* 47451a650d1eSmrgIFS=$ac_save_IFS 47461a650d1eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 47471a650d1eSmrg 47481a650d1eSmrg 474999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 475099c4c48aSmrgprintf %s "checking host system type... " >&6; } 475199c4c48aSmrgif test ${ac_cv_host+y} 475299c4c48aSmrgthen : 475399c4c48aSmrg printf %s "(cached) " >&6 475499c4c48aSmrgelse $as_nop 47551a650d1eSmrg if test "x$host_alias" = x; then 47561a650d1eSmrg ac_cv_host=$ac_cv_build 47578108eb18Smrgelse 475899c4c48aSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 475999c4c48aSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 47608108eb18Smrgfi 47611a650d1eSmrg 47628108eb18Smrgfi 476399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 476499c4c48aSmrgprintf "%s\n" "$ac_cv_host" >&6; } 47651a650d1eSmrgcase $ac_cv_host in 47661a650d1eSmrg*-*-*) ;; 47671a650d1eSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 47681a650d1eSmrgesac 47691a650d1eSmrghost=$ac_cv_host 47701a650d1eSmrgac_save_IFS=$IFS; IFS='-' 47711a650d1eSmrgset x $ac_cv_host 47721a650d1eSmrgshift 47731a650d1eSmrghost_cpu=$1 47741a650d1eSmrghost_vendor=$2 47751a650d1eSmrgshift; shift 47761a650d1eSmrg# Remember, the first character of IFS is used to create $*, 47771a650d1eSmrg# except with old shells: 47781a650d1eSmrghost_os=$* 47791a650d1eSmrgIFS=$ac_save_IFS 47801a650d1eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 47811a650d1eSmrg 47821a650d1eSmrg 478399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 478499c4c48aSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 478599c4c48aSmrgif test ${ac_cv_path_SED+y} 478699c4c48aSmrgthen : 478799c4c48aSmrg printf %s "(cached) " >&6 478899c4c48aSmrgelse $as_nop 47891a650d1eSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 47901a650d1eSmrg for ac_i in 1 2 3 4 5 6 7; do 47911a650d1eSmrg ac_script="$ac_script$as_nl$ac_script" 47921a650d1eSmrg done 47931a650d1eSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 47941a650d1eSmrg { ac_script=; unset ac_script;} 47951a650d1eSmrg if test -z "$SED"; then 47961a650d1eSmrg ac_path_SED_found=false 47971a650d1eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 47981a650d1eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47991a650d1eSmrgfor as_dir in $PATH 48001a650d1eSmrgdo 48011a650d1eSmrg IFS=$as_save_IFS 480299c4c48aSmrg case $as_dir in #((( 480399c4c48aSmrg '') as_dir=./ ;; 480499c4c48aSmrg */) ;; 480599c4c48aSmrg *) as_dir=$as_dir/ ;; 480699c4c48aSmrg esac 480799c4c48aSmrg for ac_prog in sed gsed 480899c4c48aSmrg do 48091a650d1eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 481099c4c48aSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 48118a355152Smrg as_fn_executable_p "$ac_path_SED" || continue 48121a650d1eSmrg# Check for GNU ac_path_SED and select it if it is found. 48131a650d1eSmrg # Check for GNU $ac_path_SED 48141a650d1eSmrgcase `"$ac_path_SED" --version 2>&1` in 48151a650d1eSmrg*GNU*) 48161a650d1eSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 48171a650d1eSmrg*) 48181a650d1eSmrg ac_count=0 481999c4c48aSmrg printf %s 0123456789 >"conftest.in" 48201a650d1eSmrg while : 48211a650d1eSmrg do 48221a650d1eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 48231a650d1eSmrg mv "conftest.tmp" "conftest.in" 48241a650d1eSmrg cp "conftest.in" "conftest.nl" 482599c4c48aSmrg printf "%s\n" '' >> "conftest.nl" 48261a650d1eSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 48271a650d1eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 48281a650d1eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 48291a650d1eSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 48301a650d1eSmrg # Best one so far, save it but keep looking for a better one 48311a650d1eSmrg ac_cv_path_SED="$ac_path_SED" 48321a650d1eSmrg ac_path_SED_max=$ac_count 48331a650d1eSmrg fi 48341a650d1eSmrg # 10*(2^10) chars as input seems more than enough 48351a650d1eSmrg test $ac_count -gt 10 && break 48361a650d1eSmrg done 48371a650d1eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 48381a650d1eSmrgesac 48398108eb18Smrg 48401a650d1eSmrg $ac_path_SED_found && break 3 48411a650d1eSmrg done 48421a650d1eSmrg done 48431a650d1eSmrg done 48441a650d1eSmrgIFS=$as_save_IFS 48451a650d1eSmrg if test -z "$ac_cv_path_SED"; then 48461a650d1eSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 48471a650d1eSmrg fi 48488108eb18Smrgelse 48491a650d1eSmrg ac_cv_path_SED=$SED 48508108eb18Smrgfi 48518108eb18Smrg 48528108eb18Smrgfi 485399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 485499c4c48aSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 48551a650d1eSmrg SED="$ac_cv_path_SED" 48561a650d1eSmrg rm -f conftest.sed 48578108eb18Smrg 48588108eb18Smrg 48598108eb18Smrg 48608108eb18Smrg 48618108eb18Smrg 48625977a007Smrg 48635977a007Smrg# Check whether --enable-selective-werror was given. 486499c4c48aSmrgif test ${enable_selective_werror+y} 486599c4c48aSmrgthen : 48665977a007Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 486799c4c48aSmrgelse $as_nop 48685977a007Smrg SELECTIVE_WERROR=yes 48698108eb18Smrgfi 48708108eb18Smrg 48715977a007Smrg 48725977a007Smrg 48735977a007Smrg 48745977a007Smrg 48755977a007Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 48765977a007Smrgif test "x$SUNCC" = "xyes"; then 48775977a007Smrg BASE_CFLAGS="-v" 48785977a007Smrgelse 48795977a007Smrg BASE_CFLAGS="" 48808108eb18Smrgfi 48818108eb18Smrg 48825977a007Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 48838108eb18Smrg 48848108eb18Smrg 48858108eb18Smrg 48868108eb18Smrg 48878108eb18Smrg 48881a650d1eSmrg 48898108eb18Smrg 48905977a007Smrg 48915977a007Smrg 48925977a007Smrg 48935977a007Smrg 48945977a007Smrg 48955977a007Smrg 48965977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48975977a007Smrg 48985977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 48995977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 490099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 490199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 490299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 490399c4c48aSmrgthen : 490499c4c48aSmrg printf %s "(cached) " >&6 490599c4c48aSmrgelse $as_nop 49065977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49075977a007Smrg/* end confdefs.h. */ 49085977a007Smrgint i; 49095977a007Smrg_ACEOF 491099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 491199c4c48aSmrgthen : 49125977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 491399c4c48aSmrgelse $as_nop 49145977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 49155977a007Smrgfi 491699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 49175977a007Smrgfi 491899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 491999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49205977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49215977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49228108eb18Smrgfi 49238108eb18Smrg 49245977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49255977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49265977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49271a650d1eSmrg fi 49285977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 492999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 493099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 493199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 493299c4c48aSmrgthen : 493399c4c48aSmrg printf %s "(cached) " >&6 493499c4c48aSmrgelse $as_nop 49355977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49365977a007Smrg/* end confdefs.h. */ 49375977a007Smrgint i; 49385977a007Smrg_ACEOF 493999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 494099c4c48aSmrgthen : 49415977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 494299c4c48aSmrgelse $as_nop 49435977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 49445977a007Smrgfi 494599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 49465977a007Smrgfi 494799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 494899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49495977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 49505977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49511a650d1eSmrgfi 49528108eb18Smrg 49535977a007Smrgfound="no" 49548108eb18Smrg 49555977a007Smrg if test $found = "no" ; then 49568a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49575977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49585977a007Smrg fi 49598108eb18Smrg 49608a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 49615977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49625977a007Smrg fi 49638108eb18Smrg 49645977a007Smrg CFLAGS="$CFLAGS -Wall" 49658108eb18Smrg 496699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 496799c4c48aSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 49685977a007Smrg cacheid=xorg_cv_cc_flag__Wall 496999c4c48aSmrg if eval test \${$cacheid+y} 497099c4c48aSmrgthen : 497199c4c48aSmrg printf %s "(cached) " >&6 497299c4c48aSmrgelse $as_nop 49735977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49745977a007Smrg/* end confdefs.h. */ 49755977a007Smrgint i; 49765977a007Smrgint 497799c4c48aSmrgmain (void) 49785977a007Smrg{ 49798108eb18Smrg 49805977a007Smrg ; 49815977a007Smrg return 0; 49825977a007Smrg} 49831a650d1eSmrg_ACEOF 498499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 498599c4c48aSmrgthen : 49865977a007Smrg eval $cacheid=yes 498799c4c48aSmrgelse $as_nop 49885977a007Smrg eval $cacheid=no 49895977a007Smrgfi 499099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 49915977a007Smrg conftest$ac_exeext conftest.$ac_ext 49925977a007Smrgfi 49938108eb18Smrg 49945977a007Smrg 49955977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49965977a007Smrg 49975977a007Smrg eval supported=\$$cacheid 499899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 499999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 50005977a007Smrg if test "$supported" = "yes" ; then 50015977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 50025977a007Smrg found="yes" 50035977a007Smrg fi 50041a650d1eSmrg fi 50058108eb18Smrg 50068108eb18Smrg 50078108eb18Smrg 50088108eb18Smrg 50098108eb18Smrg 50108108eb18Smrg 50118108eb18Smrg 50128108eb18Smrg 50131a650d1eSmrg 50148108eb18Smrg 50158108eb18Smrg 50168108eb18Smrg 50178108eb18Smrg 50188108eb18Smrg 50198108eb18Smrg 50205977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50218108eb18Smrg 50225977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50235977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 502499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 502599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 502699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 502799c4c48aSmrgthen : 502899c4c48aSmrg printf %s "(cached) " >&6 502999c4c48aSmrgelse $as_nop 50305977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50315977a007Smrg/* end confdefs.h. */ 50325977a007Smrgint i; 50335977a007Smrg_ACEOF 503499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 503599c4c48aSmrgthen : 50365977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 503799c4c48aSmrgelse $as_nop 50385977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 50398108eb18Smrgfi 504099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50418108eb18Smrgfi 504299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 504399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50445977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 50455977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50468108eb18Smrgfi 50478108eb18Smrg 50485977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50495977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50505977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50515977a007Smrg fi 50525977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 505399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 505499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 505599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 505699c4c48aSmrgthen : 505799c4c48aSmrg printf %s "(cached) " >&6 505899c4c48aSmrgelse $as_nop 50595977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50605977a007Smrg/* end confdefs.h. */ 50615977a007Smrgint i; 50625977a007Smrg_ACEOF 506399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 506499c4c48aSmrgthen : 50655977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 506699c4c48aSmrgelse $as_nop 50675977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50688108eb18Smrgfi 506999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50708108eb18Smrgfi 507199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 507299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50735977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50745977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50758108eb18Smrgfi 50768108eb18Smrg 50775977a007Smrgfound="no" 50785977a007Smrg 50795977a007Smrg if test $found = "no" ; then 50808a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50815977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50825977a007Smrg fi 50838108eb18Smrg 50848a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 50855977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50865977a007Smrg fi 50878108eb18Smrg 50885977a007Smrg CFLAGS="$CFLAGS -Wpointer-arith" 50898108eb18Smrg 509099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 509199c4c48aSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 50925977a007Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 509399c4c48aSmrg if eval test \${$cacheid+y} 509499c4c48aSmrgthen : 509599c4c48aSmrg printf %s "(cached) " >&6 509699c4c48aSmrgelse $as_nop 50975977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50985977a007Smrg/* end confdefs.h. */ 50995977a007Smrgint i; 51005977a007Smrgint 510199c4c48aSmrgmain (void) 51025977a007Smrg{ 51038108eb18Smrg 51045977a007Smrg ; 51055977a007Smrg return 0; 51065977a007Smrg} 51075977a007Smrg_ACEOF 510899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 510999c4c48aSmrgthen : 51105977a007Smrg eval $cacheid=yes 511199c4c48aSmrgelse $as_nop 51125977a007Smrg eval $cacheid=no 51135977a007Smrgfi 511499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 51155977a007Smrg conftest$ac_exeext conftest.$ac_ext 51165977a007Smrgfi 51178108eb18Smrg 51188108eb18Smrg 51195977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51208108eb18Smrg 51215977a007Smrg eval supported=\$$cacheid 512299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 512399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 51245977a007Smrg if test "$supported" = "yes" ; then 51255977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 51265977a007Smrg found="yes" 51275977a007Smrg fi 51285977a007Smrg fi 51298108eb18Smrg 51308108eb18Smrg 51318108eb18Smrg 51328108eb18Smrg 51338108eb18Smrg 51348108eb18Smrg 51358108eb18Smrg 51361a650d1eSmrg 51371a650d1eSmrg 51388108eb18Smrg 51398108eb18Smrg 51401a650d1eSmrg 51411a650d1eSmrg 51421a650d1eSmrg 51431a650d1eSmrg 51445977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51451a650d1eSmrg 51465977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 51475977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 514899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 514999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 515099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 515199c4c48aSmrgthen : 515299c4c48aSmrg printf %s "(cached) " >&6 515399c4c48aSmrgelse $as_nop 51545977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51555977a007Smrg/* end confdefs.h. */ 51565977a007Smrgint i; 51575977a007Smrg_ACEOF 515899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 515999c4c48aSmrgthen : 51605977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 516199c4c48aSmrgelse $as_nop 51625977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 51635977a007Smrgfi 516499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 51655977a007Smrgfi 516699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 516799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51685977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51695977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51701a650d1eSmrgfi 51711a650d1eSmrg 51725977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51735977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51745977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51755977a007Smrg fi 51765977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 517799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 517899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 517999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 518099c4c48aSmrgthen : 518199c4c48aSmrg printf %s "(cached) " >&6 518299c4c48aSmrgelse $as_nop 51835977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51845977a007Smrg/* end confdefs.h. */ 51855977a007Smrgint i; 51865977a007Smrg_ACEOF 518799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 518899c4c48aSmrgthen : 51895977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 519099c4c48aSmrgelse $as_nop 51915977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 51925977a007Smrgfi 519399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 51945977a007Smrgfi 519599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 519699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51975977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 51985977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51995977a007Smrgfi 52001a650d1eSmrg 52015977a007Smrgfound="no" 52021a650d1eSmrg 52035977a007Smrg if test $found = "no" ; then 52048a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52055977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52065977a007Smrg fi 52071a650d1eSmrg 52088a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 52095977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52105977a007Smrg fi 52111a650d1eSmrg 52125977a007Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 52131a650d1eSmrg 521499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 521599c4c48aSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 52165977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 521799c4c48aSmrg if eval test \${$cacheid+y} 521899c4c48aSmrgthen : 521999c4c48aSmrg printf %s "(cached) " >&6 522099c4c48aSmrgelse $as_nop 52215977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52225977a007Smrg/* end confdefs.h. */ 52235977a007Smrgint i; 52245977a007Smrgint 522599c4c48aSmrgmain (void) 52265977a007Smrg{ 52275977a007Smrg 52285977a007Smrg ; 52295977a007Smrg return 0; 52305977a007Smrg} 52315977a007Smrg_ACEOF 523299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 523399c4c48aSmrgthen : 52345977a007Smrg eval $cacheid=yes 523599c4c48aSmrgelse $as_nop 52365977a007Smrg eval $cacheid=no 52375977a007Smrgfi 523899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 52395977a007Smrg conftest$ac_exeext conftest.$ac_ext 52405977a007Smrgfi 52415977a007Smrg 52425977a007Smrg 52435977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52445977a007Smrg 52455977a007Smrg eval supported=\$$cacheid 524699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 524799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 52485977a007Smrg if test "$supported" = "yes" ; then 52495977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 52505977a007Smrg found="yes" 52515977a007Smrg fi 52525977a007Smrg fi 52535977a007Smrg 52545977a007Smrg 52555977a007Smrg 52565977a007Smrg 52575977a007Smrg 52585977a007Smrg 52595977a007Smrg 52605977a007Smrg 52615977a007Smrg 52625977a007Smrg 52635977a007Smrg 52645977a007Smrg 52655977a007Smrg 52665977a007Smrg 52675977a007Smrg 52685977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 52695977a007Smrg 52705977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 52715977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 527299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 527399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 527499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 527599c4c48aSmrgthen : 527699c4c48aSmrg printf %s "(cached) " >&6 527799c4c48aSmrgelse $as_nop 52785977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52795977a007Smrg/* end confdefs.h. */ 52805977a007Smrgint i; 52815977a007Smrg_ACEOF 528299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 528399c4c48aSmrgthen : 52845977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 528599c4c48aSmrgelse $as_nop 52865977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 52875977a007Smrgfi 528899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 52895977a007Smrgfi 529099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 529199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 52925977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 52935977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52945977a007Smrgfi 52955977a007Smrg 52965977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52975977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52985977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52995977a007Smrg fi 53005977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 530199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 530299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 530399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 530499c4c48aSmrgthen : 530599c4c48aSmrg printf %s "(cached) " >&6 530699c4c48aSmrgelse $as_nop 53075977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53085977a007Smrg/* end confdefs.h. */ 53095977a007Smrgint i; 53105977a007Smrg_ACEOF 531199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 531299c4c48aSmrgthen : 53135977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 531499c4c48aSmrgelse $as_nop 53155977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 53165977a007Smrgfi 531799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 53185977a007Smrgfi 531999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 532099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53215977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53225977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53235977a007Smrgfi 53245977a007Smrg 53255977a007Smrgfound="no" 53265977a007Smrg 53275977a007Smrg if test $found = "no" ; then 53288a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53295977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53305977a007Smrg fi 53315977a007Smrg 53328a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 53335977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53345977a007Smrg fi 53355977a007Smrg 53365977a007Smrg CFLAGS="$CFLAGS -Wformat=2" 53375977a007Smrg 533899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 533999c4c48aSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 53408a355152Smrg cacheid=xorg_cv_cc_flag__Wformat_2 534199c4c48aSmrg if eval test \${$cacheid+y} 534299c4c48aSmrgthen : 534399c4c48aSmrg printf %s "(cached) " >&6 534499c4c48aSmrgelse $as_nop 53455977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53465977a007Smrg/* end confdefs.h. */ 53475977a007Smrgint i; 53485977a007Smrgint 534999c4c48aSmrgmain (void) 53505977a007Smrg{ 53515977a007Smrg 53525977a007Smrg ; 53535977a007Smrg return 0; 53545977a007Smrg} 53555977a007Smrg_ACEOF 535699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 535799c4c48aSmrgthen : 53585977a007Smrg eval $cacheid=yes 535999c4c48aSmrgelse $as_nop 53605977a007Smrg eval $cacheid=no 53615977a007Smrgfi 536299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 53635977a007Smrg conftest$ac_exeext conftest.$ac_ext 53645977a007Smrgfi 53655977a007Smrg 53665977a007Smrg 53675977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53685977a007Smrg 53695977a007Smrg eval supported=\$$cacheid 537099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 537199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 53725977a007Smrg if test "$supported" = "yes" ; then 53735977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 53745977a007Smrg found="yes" 53755977a007Smrg fi 53765977a007Smrg fi 53775977a007Smrg 53785977a007Smrg if test $found = "no" ; then 53798a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53805977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53815977a007Smrg fi 53825977a007Smrg 53838a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 53845977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53855977a007Smrg fi 53865977a007Smrg 53875977a007Smrg CFLAGS="$CFLAGS -Wformat" 53885977a007Smrg 538999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 539099c4c48aSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 53915977a007Smrg cacheid=xorg_cv_cc_flag__Wformat 539299c4c48aSmrg if eval test \${$cacheid+y} 539399c4c48aSmrgthen : 539499c4c48aSmrg printf %s "(cached) " >&6 539599c4c48aSmrgelse $as_nop 53965977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53975977a007Smrg/* end confdefs.h. */ 53985977a007Smrgint i; 53995977a007Smrgint 540099c4c48aSmrgmain (void) 54015977a007Smrg{ 54025977a007Smrg 54035977a007Smrg ; 54045977a007Smrg return 0; 54055977a007Smrg} 54065977a007Smrg_ACEOF 540799c4c48aSmrgif ac_fn_c_try_link "$LINENO" 540899c4c48aSmrgthen : 54095977a007Smrg eval $cacheid=yes 541099c4c48aSmrgelse $as_nop 54115977a007Smrg eval $cacheid=no 54125977a007Smrgfi 541399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 54145977a007Smrg conftest$ac_exeext conftest.$ac_ext 54155977a007Smrgfi 54165977a007Smrg 54175977a007Smrg 54185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54195977a007Smrg 54205977a007Smrg eval supported=\$$cacheid 542199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 542299c4c48aSmrgprintf "%s\n" "$supported" >&6; } 54235977a007Smrg if test "$supported" = "yes" ; then 54245977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 54255977a007Smrg found="yes" 54265977a007Smrg fi 54275977a007Smrg fi 54285977a007Smrg 54295977a007Smrg 54305977a007Smrg 54315977a007Smrg 54325977a007Smrg 54335977a007Smrg 54345977a007Smrg 54355977a007Smrg 54365977a007Smrg 54375977a007Smrg 54385977a007Smrg 54395977a007Smrg 54405977a007Smrg 54415977a007Smrg 54425977a007Smrg 54435977a007Smrg 54445977a007Smrg 54455977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54465977a007Smrg 54475977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54485977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 544999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 545099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 545199c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 545299c4c48aSmrgthen : 545399c4c48aSmrg printf %s "(cached) " >&6 545499c4c48aSmrgelse $as_nop 54555977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54565977a007Smrg/* end confdefs.h. */ 54575977a007Smrgint i; 54585977a007Smrg_ACEOF 545999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 546099c4c48aSmrgthen : 54615977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 546299c4c48aSmrgelse $as_nop 54635977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 54645977a007Smrgfi 546599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 54665977a007Smrgfi 546799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 546899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54695977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 54705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54715977a007Smrgfi 54725977a007Smrg 54735977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54745977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54755977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54765977a007Smrg fi 54775977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 547899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 547999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 548099c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 548199c4c48aSmrgthen : 548299c4c48aSmrg printf %s "(cached) " >&6 548399c4c48aSmrgelse $as_nop 54845977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54855977a007Smrg/* end confdefs.h. */ 54865977a007Smrgint i; 54875977a007Smrg_ACEOF 548899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 548999c4c48aSmrgthen : 54905977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 549199c4c48aSmrgelse $as_nop 54925977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54935977a007Smrgfi 549499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 54955977a007Smrgfi 549699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 549799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54985977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54995977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55005977a007Smrgfi 55015977a007Smrg 55025977a007Smrgfound="no" 55035977a007Smrg 55045977a007Smrg if test $found = "no" ; then 55058a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55065977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55075977a007Smrg fi 55085977a007Smrg 55098a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 55105977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55115977a007Smrg fi 55125977a007Smrg 55135977a007Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 55145977a007Smrg 551599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 551699c4c48aSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 55175977a007Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 551899c4c48aSmrg if eval test \${$cacheid+y} 551999c4c48aSmrgthen : 552099c4c48aSmrg printf %s "(cached) " >&6 552199c4c48aSmrgelse $as_nop 55225977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55235977a007Smrg/* end confdefs.h. */ 55245977a007Smrgint i; 55255977a007Smrgint 552699c4c48aSmrgmain (void) 55275977a007Smrg{ 55285977a007Smrg 55295977a007Smrg ; 55305977a007Smrg return 0; 55315977a007Smrg} 55325977a007Smrg_ACEOF 553399c4c48aSmrgif ac_fn_c_try_link "$LINENO" 553499c4c48aSmrgthen : 55355977a007Smrg eval $cacheid=yes 553699c4c48aSmrgelse $as_nop 55375977a007Smrg eval $cacheid=no 55385977a007Smrgfi 553999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 55405977a007Smrg conftest$ac_exeext conftest.$ac_ext 55415977a007Smrgfi 55425977a007Smrg 55435977a007Smrg 55445977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55455977a007Smrg 55465977a007Smrg eval supported=\$$cacheid 554799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 554899c4c48aSmrgprintf "%s\n" "$supported" >&6; } 55495977a007Smrg if test "$supported" = "yes" ; then 55505977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 55515977a007Smrg found="yes" 55525977a007Smrg fi 55535977a007Smrg fi 55545977a007Smrg 55555977a007Smrg 55565977a007Smrg 55575977a007Smrg 55585977a007Smrg 55595977a007Smrg 55605977a007Smrg 55615977a007Smrg 55625977a007Smrg 55635977a007Smrg 55645977a007Smrg 55655977a007Smrg 55665977a007Smrg 55675977a007Smrg 55685977a007Smrg 55695977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 55705977a007Smrg 55715977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 55725977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 557399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 557499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 557599c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 557699c4c48aSmrgthen : 557799c4c48aSmrg printf %s "(cached) " >&6 557899c4c48aSmrgelse $as_nop 55795977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55805977a007Smrg/* end confdefs.h. */ 55815977a007Smrgint i; 55825977a007Smrg_ACEOF 558399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 558499c4c48aSmrgthen : 55855977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 558699c4c48aSmrgelse $as_nop 55875977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 55885977a007Smrgfi 558999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 55905977a007Smrgfi 559199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 559299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55935977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55945977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55955977a007Smrgfi 55965977a007Smrg 55975977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55985977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55995977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56005977a007Smrg fi 56015977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 560299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 560399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 560499c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 560599c4c48aSmrgthen : 560699c4c48aSmrg printf %s "(cached) " >&6 560799c4c48aSmrgelse $as_nop 56085977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56095977a007Smrg/* end confdefs.h. */ 56105977a007Smrgint i; 56115977a007Smrg_ACEOF 561299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 561399c4c48aSmrgthen : 56145977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 561599c4c48aSmrgelse $as_nop 56165977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 56175977a007Smrgfi 561899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 56195977a007Smrgfi 562099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 562199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56225977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56235977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56245977a007Smrgfi 56255977a007Smrg 56265977a007Smrgfound="no" 56275977a007Smrg 56285977a007Smrg if test $found = "no" ; then 56298a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56305977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56315977a007Smrg fi 56325977a007Smrg 56338a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 56345977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56355977a007Smrg fi 56365977a007Smrg 56375977a007Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 56385977a007Smrg 563999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 564099c4c48aSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 56415977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 564299c4c48aSmrg if eval test \${$cacheid+y} 564399c4c48aSmrgthen : 564499c4c48aSmrg printf %s "(cached) " >&6 564599c4c48aSmrgelse $as_nop 56465977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56475977a007Smrg/* end confdefs.h. */ 56485977a007Smrgint i; 56495977a007Smrgint 565099c4c48aSmrgmain (void) 56515977a007Smrg{ 56525977a007Smrg 56535977a007Smrg ; 56545977a007Smrg return 0; 56555977a007Smrg} 56565977a007Smrg_ACEOF 565799c4c48aSmrgif ac_fn_c_try_link "$LINENO" 565899c4c48aSmrgthen : 56595977a007Smrg eval $cacheid=yes 566099c4c48aSmrgelse $as_nop 56615977a007Smrg eval $cacheid=no 56625977a007Smrgfi 566399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 56645977a007Smrg conftest$ac_exeext conftest.$ac_ext 56655977a007Smrgfi 56665977a007Smrg 56675977a007Smrg 56685977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56695977a007Smrg 56705977a007Smrg eval supported=\$$cacheid 567199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 567299c4c48aSmrgprintf "%s\n" "$supported" >&6; } 56735977a007Smrg if test "$supported" = "yes" ; then 56745977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 56755977a007Smrg found="yes" 56765977a007Smrg fi 56775977a007Smrg fi 56785977a007Smrg 56795977a007Smrg 56805977a007Smrg 56815977a007Smrg 56825977a007Smrg 56835977a007Smrg 56845977a007Smrg 56855977a007Smrg 56865977a007Smrg 56875977a007Smrg 56885977a007Smrg 56895977a007Smrg 56905977a007Smrg 56915977a007Smrg 56925977a007Smrg 56935977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56945977a007Smrg 56955977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56965977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 569799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 569899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 569999c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 570099c4c48aSmrgthen : 570199c4c48aSmrg printf %s "(cached) " >&6 570299c4c48aSmrgelse $as_nop 57035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57045977a007Smrg/* end confdefs.h. */ 57055977a007Smrgint i; 57065977a007Smrg_ACEOF 570799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 570899c4c48aSmrgthen : 57095977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 571099c4c48aSmrgelse $as_nop 57115977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 57125977a007Smrgfi 571399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 57145977a007Smrgfi 571599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 571699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57175977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 57185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57195977a007Smrgfi 57205977a007Smrg 57215977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57225977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57235977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57245977a007Smrg fi 57255977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 572699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 572799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 572899c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 572999c4c48aSmrgthen : 573099c4c48aSmrg printf %s "(cached) " >&6 573199c4c48aSmrgelse $as_nop 57325977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57335977a007Smrg/* end confdefs.h. */ 57345977a007Smrgint i; 57355977a007Smrg_ACEOF 573699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 573799c4c48aSmrgthen : 57385977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 573999c4c48aSmrgelse $as_nop 57405977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 57415977a007Smrgfi 574299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 57435977a007Smrgfi 574499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 574599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57465977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 57475977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57485977a007Smrgfi 57495977a007Smrg 57505977a007Smrgfound="no" 57515977a007Smrg 57525977a007Smrg if test $found = "no" ; then 57538a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57545977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57555977a007Smrg fi 57565977a007Smrg 57578a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 57585977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57595977a007Smrg fi 57605977a007Smrg 57615977a007Smrg CFLAGS="$CFLAGS -Wnested-externs" 57625977a007Smrg 576399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 576499c4c48aSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 57655977a007Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 576699c4c48aSmrg if eval test \${$cacheid+y} 576799c4c48aSmrgthen : 576899c4c48aSmrg printf %s "(cached) " >&6 576999c4c48aSmrgelse $as_nop 57705977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57715977a007Smrg/* end confdefs.h. */ 57725977a007Smrgint i; 57735977a007Smrgint 577499c4c48aSmrgmain (void) 57755977a007Smrg{ 57765977a007Smrg 57775977a007Smrg ; 57785977a007Smrg return 0; 57795977a007Smrg} 57805977a007Smrg_ACEOF 578199c4c48aSmrgif ac_fn_c_try_link "$LINENO" 578299c4c48aSmrgthen : 57835977a007Smrg eval $cacheid=yes 578499c4c48aSmrgelse $as_nop 57855977a007Smrg eval $cacheid=no 57865977a007Smrgfi 578799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 57885977a007Smrg conftest$ac_exeext conftest.$ac_ext 57895977a007Smrgfi 57905977a007Smrg 57915977a007Smrg 57925977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57935977a007Smrg 57945977a007Smrg eval supported=\$$cacheid 579599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 579699c4c48aSmrgprintf "%s\n" "$supported" >&6; } 57975977a007Smrg if test "$supported" = "yes" ; then 57985977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 57995977a007Smrg found="yes" 58005977a007Smrg fi 58015977a007Smrg fi 58025977a007Smrg 58035977a007Smrg 58045977a007Smrg 58055977a007Smrg 58065977a007Smrg 58075977a007Smrg 58085977a007Smrg 58095977a007Smrg 58105977a007Smrg 58115977a007Smrg 58125977a007Smrg 58135977a007Smrg 58145977a007Smrg 58155977a007Smrg 58165977a007Smrg 58175977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 58185977a007Smrg 58195977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 58205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 582299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 582399c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 582499c4c48aSmrgthen : 582599c4c48aSmrg printf %s "(cached) " >&6 582699c4c48aSmrgelse $as_nop 58275977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58285977a007Smrg/* end confdefs.h. */ 58295977a007Smrgint i; 58305977a007Smrg_ACEOF 583199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 583299c4c48aSmrgthen : 58335977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 583499c4c48aSmrgelse $as_nop 58355977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 58365977a007Smrgfi 583799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 58385977a007Smrgfi 583999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 584099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 58415977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 58425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58435977a007Smrgfi 58445977a007Smrg 58455977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 58465977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58475977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58485977a007Smrg fi 58495977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 585099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 585199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 585299c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 585399c4c48aSmrgthen : 585499c4c48aSmrg printf %s "(cached) " >&6 585599c4c48aSmrgelse $as_nop 58565977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58575977a007Smrg/* end confdefs.h. */ 58585977a007Smrgint i; 58595977a007Smrg_ACEOF 586099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 586199c4c48aSmrgthen : 58625977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 586399c4c48aSmrgelse $as_nop 58645977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 58655977a007Smrgfi 586699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 58675977a007Smrgfi 586899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 586999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58705977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 58715977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58725977a007Smrgfi 58735977a007Smrg 58745977a007Smrgfound="no" 58755977a007Smrg 58765977a007Smrg if test $found = "no" ; then 58778a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58785977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58795977a007Smrg fi 58805977a007Smrg 58818a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 58825977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58835977a007Smrg fi 58845977a007Smrg 58855977a007Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 58865977a007Smrg 588799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 588899c4c48aSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 58895977a007Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 589099c4c48aSmrg if eval test \${$cacheid+y} 589199c4c48aSmrgthen : 589299c4c48aSmrg printf %s "(cached) " >&6 589399c4c48aSmrgelse $as_nop 58945977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58955977a007Smrg/* end confdefs.h. */ 58965977a007Smrgint i; 58975977a007Smrgint 589899c4c48aSmrgmain (void) 58995977a007Smrg{ 59005977a007Smrg 59015977a007Smrg ; 59025977a007Smrg return 0; 59035977a007Smrg} 59045977a007Smrg_ACEOF 590599c4c48aSmrgif ac_fn_c_try_link "$LINENO" 590699c4c48aSmrgthen : 59075977a007Smrg eval $cacheid=yes 590899c4c48aSmrgelse $as_nop 59095977a007Smrg eval $cacheid=no 59105977a007Smrgfi 591199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 59125977a007Smrg conftest$ac_exeext conftest.$ac_ext 59135977a007Smrgfi 59145977a007Smrg 59155977a007Smrg 59165977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59175977a007Smrg 59185977a007Smrg eval supported=\$$cacheid 591999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 592099c4c48aSmrgprintf "%s\n" "$supported" >&6; } 59215977a007Smrg if test "$supported" = "yes" ; then 59225977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 59235977a007Smrg found="yes" 59245977a007Smrg fi 59255977a007Smrg fi 59265977a007Smrg 59275977a007Smrg 59285977a007Smrg 59295977a007Smrg 59305977a007Smrg 59315977a007Smrg 59325977a007Smrg 59335977a007Smrg 59345977a007Smrg 59355977a007Smrg 59365977a007Smrg 59375977a007Smrg 59385977a007Smrg 59395977a007Smrg 59405977a007Smrg 59415977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 59425977a007Smrg 59435977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 59445977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 594699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 594799c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 594899c4c48aSmrgthen : 594999c4c48aSmrg printf %s "(cached) " >&6 595099c4c48aSmrgelse $as_nop 59515977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59525977a007Smrg/* end confdefs.h. */ 59535977a007Smrgint i; 59545977a007Smrg_ACEOF 595599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 595699c4c48aSmrgthen : 59575977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 595899c4c48aSmrgelse $as_nop 59595977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 59605977a007Smrgfi 596199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 59625977a007Smrgfi 596399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 596499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59655977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59665977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59675977a007Smrgfi 59685977a007Smrg 59695977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59705977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59715977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59725977a007Smrg fi 59735977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 597499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 597599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 597699c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 597799c4c48aSmrgthen : 597899c4c48aSmrg printf %s "(cached) " >&6 597999c4c48aSmrgelse $as_nop 59805977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59815977a007Smrg/* end confdefs.h. */ 59825977a007Smrgint i; 59835977a007Smrg_ACEOF 598499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 598599c4c48aSmrgthen : 59865977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 598799c4c48aSmrgelse $as_nop 59885977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 59895977a007Smrgfi 599099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 59915977a007Smrgfi 599299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 599399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59945977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59955977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59965977a007Smrgfi 59975977a007Smrg 59985977a007Smrgfound="no" 59995977a007Smrg 60005977a007Smrg if test $found = "no" ; then 60018a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60035977a007Smrg fi 60045977a007Smrg 60058a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 60065977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60075977a007Smrg fi 60085977a007Smrg 60095977a007Smrg CFLAGS="$CFLAGS -Wold-style-definition" 60105977a007Smrg 601199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 601299c4c48aSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 60135977a007Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 601499c4c48aSmrg if eval test \${$cacheid+y} 601599c4c48aSmrgthen : 601699c4c48aSmrg printf %s "(cached) " >&6 601799c4c48aSmrgelse $as_nop 60185977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60195977a007Smrg/* end confdefs.h. */ 60205977a007Smrgint i; 60215977a007Smrgint 602299c4c48aSmrgmain (void) 60235977a007Smrg{ 60245977a007Smrg 60255977a007Smrg ; 60265977a007Smrg return 0; 60275977a007Smrg} 60285977a007Smrg_ACEOF 602999c4c48aSmrgif ac_fn_c_try_link "$LINENO" 603099c4c48aSmrgthen : 60315977a007Smrg eval $cacheid=yes 603299c4c48aSmrgelse $as_nop 60335977a007Smrg eval $cacheid=no 60345977a007Smrgfi 603599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 60365977a007Smrg conftest$ac_exeext conftest.$ac_ext 60375977a007Smrgfi 60385977a007Smrg 60395977a007Smrg 60405977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60415977a007Smrg 60425977a007Smrg eval supported=\$$cacheid 604399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 604499c4c48aSmrgprintf "%s\n" "$supported" >&6; } 60455977a007Smrg if test "$supported" = "yes" ; then 60465977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 60475977a007Smrg found="yes" 60485977a007Smrg fi 60495977a007Smrg fi 60505977a007Smrg 60518a355152Smrg if test $found = "no" ; then 60528a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60538a355152Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60548a355152Smrg fi 60558a355152Smrg 60568a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 60578a355152Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60588a355152Smrg fi 60598a355152Smrg 60608a355152Smrg CFLAGS="$CFLAGS -fd" 60618a355152Smrg 606299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 606399c4c48aSmrgprintf %s "checking if $CC supports -fd... " >&6; } 60648a355152Smrg cacheid=xorg_cv_cc_flag__fd 606599c4c48aSmrg if eval test \${$cacheid+y} 606699c4c48aSmrgthen : 606799c4c48aSmrg printf %s "(cached) " >&6 606899c4c48aSmrgelse $as_nop 60698a355152Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60708a355152Smrg/* end confdefs.h. */ 60718a355152Smrgint i; 60728a355152Smrgint 607399c4c48aSmrgmain (void) 60748a355152Smrg{ 60758a355152Smrg 60768a355152Smrg ; 60778a355152Smrg return 0; 60788a355152Smrg} 60798a355152Smrg_ACEOF 608099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 608199c4c48aSmrgthen : 60828a355152Smrg eval $cacheid=yes 608399c4c48aSmrgelse $as_nop 60848a355152Smrg eval $cacheid=no 60858a355152Smrgfi 608699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 60878a355152Smrg conftest$ac_exeext conftest.$ac_ext 60888a355152Smrgfi 60898a355152Smrg 60908a355152Smrg 60918a355152Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60928a355152Smrg 60938a355152Smrg eval supported=\$$cacheid 609499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 609599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 60968a355152Smrg if test "$supported" = "yes" ; then 60978a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 60988a355152Smrg found="yes" 60998a355152Smrg fi 61008a355152Smrg fi 61018a355152Smrg 61025977a007Smrg 61035977a007Smrg 61045977a007Smrg 61055977a007Smrg 61065977a007Smrg 61075977a007Smrg 61085977a007Smrg 61095977a007Smrg 61105977a007Smrg 61115977a007Smrg 61125977a007Smrg 61135977a007Smrg 61145977a007Smrg 61155977a007Smrg 61165977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 61175977a007Smrg 61185977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61195977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 612099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 612199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 612299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 612399c4c48aSmrgthen : 612499c4c48aSmrg printf %s "(cached) " >&6 612599c4c48aSmrgelse $as_nop 61265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61275977a007Smrg/* end confdefs.h. */ 61285977a007Smrgint i; 61295977a007Smrg_ACEOF 613099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 613199c4c48aSmrgthen : 61325977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 613399c4c48aSmrgelse $as_nop 61345977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 61355977a007Smrgfi 613699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 61375977a007Smrgfi 613899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 613999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61405977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 61415977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61425977a007Smrgfi 61435977a007Smrg 61445977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61455977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61465977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61475977a007Smrg fi 61485977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 614999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 615099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 615199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 615299c4c48aSmrgthen : 615399c4c48aSmrg printf %s "(cached) " >&6 615499c4c48aSmrgelse $as_nop 61555977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61565977a007Smrg/* end confdefs.h. */ 61575977a007Smrgint i; 61585977a007Smrg_ACEOF 615999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 616099c4c48aSmrgthen : 61615977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 616299c4c48aSmrgelse $as_nop 61635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61645977a007Smrgfi 616599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 61665977a007Smrgfi 616799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 616899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61695977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61715977a007Smrgfi 61725977a007Smrg 61735977a007Smrgfound="no" 61745977a007Smrg 61755977a007Smrg if test $found = "no" ; then 61768a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61785977a007Smrg fi 61795977a007Smrg 61808a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 61815977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61825977a007Smrg fi 61835977a007Smrg 61845977a007Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 61855977a007Smrg 618699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 618799c4c48aSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 61885977a007Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 618999c4c48aSmrg if eval test \${$cacheid+y} 619099c4c48aSmrgthen : 619199c4c48aSmrg printf %s "(cached) " >&6 619299c4c48aSmrgelse $as_nop 61935977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61945977a007Smrg/* end confdefs.h. */ 61955977a007Smrgint i; 61965977a007Smrgint 619799c4c48aSmrgmain (void) 61985977a007Smrg{ 61995977a007Smrg 62005977a007Smrg ; 62015977a007Smrg return 0; 62025977a007Smrg} 62035977a007Smrg_ACEOF 620499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 620599c4c48aSmrgthen : 62065977a007Smrg eval $cacheid=yes 620799c4c48aSmrgelse $as_nop 62085977a007Smrg eval $cacheid=no 62095977a007Smrgfi 621099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 62115977a007Smrg conftest$ac_exeext conftest.$ac_ext 62125977a007Smrgfi 62135977a007Smrg 62145977a007Smrg 62155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62165977a007Smrg 62175977a007Smrg eval supported=\$$cacheid 621899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 621999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 62205977a007Smrg if test "$supported" = "yes" ; then 62215977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 62225977a007Smrg found="yes" 62235977a007Smrg fi 62245977a007Smrg fi 62255977a007Smrg 62265977a007Smrg 62275977a007Smrg 62285977a007Smrg 62295977a007Smrg 62305977a007Smrg# This chunk adds additional warnings that could catch undesired effects. 62315977a007Smrg 62325977a007Smrg 62335977a007Smrg 62345977a007Smrg 62355977a007Smrg 62365977a007Smrg 62375977a007Smrg 62385977a007Smrg 62395977a007Smrg 62405977a007Smrg 62415977a007Smrg 62425977a007Smrg 62435977a007Smrg 62445977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 62455977a007Smrg 62465977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 62475977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 624899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 624999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 625099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 625199c4c48aSmrgthen : 625299c4c48aSmrg printf %s "(cached) " >&6 625399c4c48aSmrgelse $as_nop 62545977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62555977a007Smrg/* end confdefs.h. */ 62565977a007Smrgint i; 62575977a007Smrg_ACEOF 625899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 625999c4c48aSmrgthen : 62605977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 626199c4c48aSmrgelse $as_nop 62625977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 62635977a007Smrgfi 626499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 62655977a007Smrgfi 626699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 626799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62685977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62695977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62705977a007Smrgfi 62715977a007Smrg 62725977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62735977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62745977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62755977a007Smrg fi 62765977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 627799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 627899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 627999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 628099c4c48aSmrgthen : 628199c4c48aSmrg printf %s "(cached) " >&6 628299c4c48aSmrgelse $as_nop 62835977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62845977a007Smrg/* end confdefs.h. */ 62855977a007Smrgint i; 62865977a007Smrg_ACEOF 628799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 628899c4c48aSmrgthen : 62895977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 629099c4c48aSmrgelse $as_nop 62915977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62925977a007Smrgfi 629399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 62945977a007Smrgfi 629599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 629699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62975977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 62985977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62995977a007Smrgfi 63005977a007Smrg 63015977a007Smrgfound="no" 63025977a007Smrg 63035977a007Smrg if test $found = "no" ; then 63048a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63055977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63065977a007Smrg fi 63075977a007Smrg 63088a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 63095977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63105977a007Smrg fi 63115977a007Smrg 63125977a007Smrg CFLAGS="$CFLAGS -Wunused" 63135977a007Smrg 631499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 631599c4c48aSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 63165977a007Smrg cacheid=xorg_cv_cc_flag__Wunused 631799c4c48aSmrg if eval test \${$cacheid+y} 631899c4c48aSmrgthen : 631999c4c48aSmrg printf %s "(cached) " >&6 632099c4c48aSmrgelse $as_nop 63215977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63225977a007Smrg/* end confdefs.h. */ 63235977a007Smrgint i; 63245977a007Smrgint 632599c4c48aSmrgmain (void) 63265977a007Smrg{ 63275977a007Smrg 63285977a007Smrg ; 63295977a007Smrg return 0; 63305977a007Smrg} 63315977a007Smrg_ACEOF 633299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 633399c4c48aSmrgthen : 63345977a007Smrg eval $cacheid=yes 633599c4c48aSmrgelse $as_nop 63365977a007Smrg eval $cacheid=no 63375977a007Smrgfi 633899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 63395977a007Smrg conftest$ac_exeext conftest.$ac_ext 63405977a007Smrgfi 63415977a007Smrg 63425977a007Smrg 63435977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63445977a007Smrg 63455977a007Smrg eval supported=\$$cacheid 634699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 634799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 63485977a007Smrg if test "$supported" = "yes" ; then 63495977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 63505977a007Smrg found="yes" 63515977a007Smrg fi 63525977a007Smrg fi 63535977a007Smrg 63545977a007Smrg 63555977a007Smrg 63565977a007Smrg 63575977a007Smrg 63585977a007Smrg 63595977a007Smrg 63605977a007Smrg 63615977a007Smrg 63625977a007Smrg 63635977a007Smrg 63645977a007Smrg 63655977a007Smrg 63665977a007Smrg 63675977a007Smrg 63685977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63695977a007Smrg 63705977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63715977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 637299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 637399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 637499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 637599c4c48aSmrgthen : 637699c4c48aSmrg printf %s "(cached) " >&6 637799c4c48aSmrgelse $as_nop 63785977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63795977a007Smrg/* end confdefs.h. */ 63805977a007Smrgint i; 63815977a007Smrg_ACEOF 638299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 638399c4c48aSmrgthen : 63845977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 638599c4c48aSmrgelse $as_nop 63865977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 63875977a007Smrgfi 638899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 63895977a007Smrgfi 639099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 639199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63925977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63935977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63945977a007Smrgfi 63955977a007Smrg 63965977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63975977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63985977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63995977a007Smrg fi 64005977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 640199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 640299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 640399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 640499c4c48aSmrgthen : 640599c4c48aSmrg printf %s "(cached) " >&6 640699c4c48aSmrgelse $as_nop 64075977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64085977a007Smrg/* end confdefs.h. */ 64095977a007Smrgint i; 64105977a007Smrg_ACEOF 641199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 641299c4c48aSmrgthen : 64135977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 641499c4c48aSmrgelse $as_nop 64155977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 64165977a007Smrgfi 641799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 64185977a007Smrgfi 641999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 642099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64215977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64225977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64235977a007Smrgfi 64245977a007Smrg 64255977a007Smrgfound="no" 64265977a007Smrg 64275977a007Smrg if test $found = "no" ; then 64288a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64295977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64305977a007Smrg fi 64315977a007Smrg 64328a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 64335977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64345977a007Smrg fi 64355977a007Smrg 64365977a007Smrg CFLAGS="$CFLAGS -Wuninitialized" 64375977a007Smrg 643899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 643999c4c48aSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 64405977a007Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 644199c4c48aSmrg if eval test \${$cacheid+y} 644299c4c48aSmrgthen : 644399c4c48aSmrg printf %s "(cached) " >&6 644499c4c48aSmrgelse $as_nop 64455977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64465977a007Smrg/* end confdefs.h. */ 64475977a007Smrgint i; 64485977a007Smrgint 644999c4c48aSmrgmain (void) 64505977a007Smrg{ 64515977a007Smrg 64525977a007Smrg ; 64535977a007Smrg return 0; 64545977a007Smrg} 64555977a007Smrg_ACEOF 645699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 645799c4c48aSmrgthen : 64585977a007Smrg eval $cacheid=yes 645999c4c48aSmrgelse $as_nop 64605977a007Smrg eval $cacheid=no 64615977a007Smrgfi 646299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 64635977a007Smrg conftest$ac_exeext conftest.$ac_ext 64645977a007Smrgfi 64655977a007Smrg 64665977a007Smrg 64675977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64685977a007Smrg 64695977a007Smrg eval supported=\$$cacheid 647099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 647199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 64725977a007Smrg if test "$supported" = "yes" ; then 64735977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 64745977a007Smrg found="yes" 64755977a007Smrg fi 64765977a007Smrg fi 64775977a007Smrg 64785977a007Smrg 64795977a007Smrg 64805977a007Smrg 64815977a007Smrg 64825977a007Smrg 64835977a007Smrg 64845977a007Smrg 64855977a007Smrg 64865977a007Smrg 64875977a007Smrg 64885977a007Smrg 64895977a007Smrg 64905977a007Smrg 64915977a007Smrg 64925977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64935977a007Smrg 64945977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 649699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 649799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 649899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 649999c4c48aSmrgthen : 650099c4c48aSmrg printf %s "(cached) " >&6 650199c4c48aSmrgelse $as_nop 65025977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65035977a007Smrg/* end confdefs.h. */ 65045977a007Smrgint i; 65055977a007Smrg_ACEOF 650699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 650799c4c48aSmrgthen : 65085977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 650999c4c48aSmrgelse $as_nop 65105977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 65115977a007Smrgfi 651299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 65135977a007Smrgfi 651499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 651599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65165977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65175977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65185977a007Smrgfi 65195977a007Smrg 65205977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65215977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65225977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65235977a007Smrg fi 65245977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 652599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 652699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 652799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 652899c4c48aSmrgthen : 652999c4c48aSmrg printf %s "(cached) " >&6 653099c4c48aSmrgelse $as_nop 65315977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65325977a007Smrg/* end confdefs.h. */ 65335977a007Smrgint i; 65345977a007Smrg_ACEOF 653599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 653699c4c48aSmrgthen : 65375977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 653899c4c48aSmrgelse $as_nop 65395977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 65405977a007Smrgfi 654199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 65425977a007Smrgfi 654399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 654499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65455977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 65465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65475977a007Smrgfi 65485977a007Smrg 65495977a007Smrgfound="no" 65505977a007Smrg 65515977a007Smrg if test $found = "no" ; then 65528a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65535977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65545977a007Smrg fi 65555977a007Smrg 65568a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 65575977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65585977a007Smrg fi 65595977a007Smrg 65605977a007Smrg CFLAGS="$CFLAGS -Wshadow" 65615977a007Smrg 656299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 656399c4c48aSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 65645977a007Smrg cacheid=xorg_cv_cc_flag__Wshadow 656599c4c48aSmrg if eval test \${$cacheid+y} 656699c4c48aSmrgthen : 656799c4c48aSmrg printf %s "(cached) " >&6 656899c4c48aSmrgelse $as_nop 65695977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65705977a007Smrg/* end confdefs.h. */ 65715977a007Smrgint i; 65725977a007Smrgint 657399c4c48aSmrgmain (void) 65745977a007Smrg{ 65755977a007Smrg 65765977a007Smrg ; 65775977a007Smrg return 0; 65785977a007Smrg} 65795977a007Smrg_ACEOF 658099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 658199c4c48aSmrgthen : 65825977a007Smrg eval $cacheid=yes 658399c4c48aSmrgelse $as_nop 65845977a007Smrg eval $cacheid=no 65855977a007Smrgfi 658699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 65875977a007Smrg conftest$ac_exeext conftest.$ac_ext 65885977a007Smrgfi 65895977a007Smrg 65905977a007Smrg 65915977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65925977a007Smrg 65935977a007Smrg eval supported=\$$cacheid 659499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 659599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 65965977a007Smrg if test "$supported" = "yes" ; then 65975977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 65985977a007Smrg found="yes" 65995977a007Smrg fi 66005977a007Smrg fi 66015977a007Smrg 66025977a007Smrg 66035977a007Smrg 66045977a007Smrg 66055977a007Smrg 66065977a007Smrg 66075977a007Smrg 66085977a007Smrg 66095977a007Smrg 66105977a007Smrg 66115977a007Smrg 66125977a007Smrg 66135977a007Smrg 66145977a007Smrg 66155977a007Smrg 66165977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 66175977a007Smrg 66185977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 66195977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 662099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 662199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 662299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 662399c4c48aSmrgthen : 662499c4c48aSmrg printf %s "(cached) " >&6 662599c4c48aSmrgelse $as_nop 66265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66275977a007Smrg/* end confdefs.h. */ 66285977a007Smrgint i; 66295977a007Smrg_ACEOF 663099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 663199c4c48aSmrgthen : 66325977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 663399c4c48aSmrgelse $as_nop 66345977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 66355977a007Smrgfi 663699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 66375977a007Smrgfi 663899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 663999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66405977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 66415977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66425977a007Smrgfi 66435977a007Smrg 66445977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66455977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66465977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66475977a007Smrg fi 66485977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 664999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 665099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 665199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 665299c4c48aSmrgthen : 665399c4c48aSmrg printf %s "(cached) " >&6 665499c4c48aSmrgelse $as_nop 66555977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66565977a007Smrg/* end confdefs.h. */ 66575977a007Smrgint i; 66585977a007Smrg_ACEOF 665999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 666099c4c48aSmrgthen : 66615977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 666299c4c48aSmrgelse $as_nop 66635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 66645977a007Smrgfi 666599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 66665977a007Smrgfi 666799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 666899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66695977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66715977a007Smrgfi 66725977a007Smrg 66735977a007Smrgfound="no" 66745977a007Smrg 66755977a007Smrg if test $found = "no" ; then 66768a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66785977a007Smrg fi 66795977a007Smrg 66808a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 66815977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66825977a007Smrg fi 66835977a007Smrg 66848a355152Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 66855977a007Smrg 668699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 668799c4c48aSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 66888a355152Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 668999c4c48aSmrg if eval test \${$cacheid+y} 669099c4c48aSmrgthen : 669199c4c48aSmrg printf %s "(cached) " >&6 669299c4c48aSmrgelse $as_nop 66935977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66945977a007Smrg/* end confdefs.h. */ 66955977a007Smrgint i; 66965977a007Smrgint 669799c4c48aSmrgmain (void) 66985977a007Smrg{ 66995977a007Smrg 67005977a007Smrg ; 67015977a007Smrg return 0; 67025977a007Smrg} 67035977a007Smrg_ACEOF 670499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 670599c4c48aSmrgthen : 67065977a007Smrg eval $cacheid=yes 670799c4c48aSmrgelse $as_nop 67085977a007Smrg eval $cacheid=no 67095977a007Smrgfi 671099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 67115977a007Smrg conftest$ac_exeext conftest.$ac_ext 67125977a007Smrgfi 67135977a007Smrg 67145977a007Smrg 67155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67165977a007Smrg 67175977a007Smrg eval supported=\$$cacheid 671899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 671999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 67205977a007Smrg if test "$supported" = "yes" ; then 67218a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 67225977a007Smrg found="yes" 67235977a007Smrg fi 67245977a007Smrg fi 67255977a007Smrg 67265977a007Smrg 67275977a007Smrg 67285977a007Smrg 67295977a007Smrg 67305977a007Smrg 67315977a007Smrg 67325977a007Smrg 67335977a007Smrg 67345977a007Smrg 67355977a007Smrg 67365977a007Smrg 67375977a007Smrg 67385977a007Smrg 67395977a007Smrg 67405977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67415977a007Smrg 67425977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67435977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 674499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 674599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 674699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 674799c4c48aSmrgthen : 674899c4c48aSmrg printf %s "(cached) " >&6 674999c4c48aSmrgelse $as_nop 67505977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67515977a007Smrg/* end confdefs.h. */ 67525977a007Smrgint i; 67535977a007Smrg_ACEOF 675499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 675599c4c48aSmrgthen : 67565977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 675799c4c48aSmrgelse $as_nop 67585977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 67595977a007Smrgfi 676099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 67615977a007Smrgfi 676299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 676399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67645977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67665977a007Smrgfi 67675977a007Smrg 67685977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67695977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67705977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67715977a007Smrg fi 67725977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 677399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 677499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 677599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 677699c4c48aSmrgthen : 677799c4c48aSmrg printf %s "(cached) " >&6 677899c4c48aSmrgelse $as_nop 67795977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67805977a007Smrg/* end confdefs.h. */ 67815977a007Smrgint i; 67825977a007Smrg_ACEOF 678399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 678499c4c48aSmrgthen : 67855977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 678699c4c48aSmrgelse $as_nop 67875977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67885977a007Smrgfi 678999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 67905977a007Smrgfi 679199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 679299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67935977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67945977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67955977a007Smrgfi 67965977a007Smrg 67975977a007Smrgfound="no" 67985977a007Smrg 67995977a007Smrg if test $found = "no" ; then 68008a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68015977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68025977a007Smrg fi 68035977a007Smrg 68048a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 68055977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68065977a007Smrg fi 68075977a007Smrg 68088a355152Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 68095977a007Smrg 681099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 681199c4c48aSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 68128a355152Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 681399c4c48aSmrg if eval test \${$cacheid+y} 681499c4c48aSmrgthen : 681599c4c48aSmrg printf %s "(cached) " >&6 681699c4c48aSmrgelse $as_nop 68175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68185977a007Smrg/* end confdefs.h. */ 68195977a007Smrgint i; 68205977a007Smrgint 682199c4c48aSmrgmain (void) 68225977a007Smrg{ 68235977a007Smrg 68245977a007Smrg ; 68255977a007Smrg return 0; 68265977a007Smrg} 68275977a007Smrg_ACEOF 682899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 682999c4c48aSmrgthen : 68305977a007Smrg eval $cacheid=yes 683199c4c48aSmrgelse $as_nop 68325977a007Smrg eval $cacheid=no 68335977a007Smrgfi 683499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 68355977a007Smrg conftest$ac_exeext conftest.$ac_ext 68365977a007Smrgfi 68375977a007Smrg 68385977a007Smrg 68395977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68405977a007Smrg 68415977a007Smrg eval supported=\$$cacheid 684299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 684399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 68445977a007Smrg if test "$supported" = "yes" ; then 68458a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 68465977a007Smrg found="yes" 68475977a007Smrg fi 68485977a007Smrg fi 68495977a007Smrg 68505977a007Smrg 68515977a007Smrg 68525977a007Smrg 68535977a007Smrg 68545977a007Smrg 68555977a007Smrg 68565977a007Smrg 68575977a007Smrg 68585977a007Smrg 68595977a007Smrg 68605977a007Smrg 68615977a007Smrg 68625977a007Smrg 68635977a007Smrg 68645977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 68655977a007Smrg 68665977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 68675977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 686899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 686999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 687099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 687199c4c48aSmrgthen : 687299c4c48aSmrg printf %s "(cached) " >&6 687399c4c48aSmrgelse $as_nop 68745977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68755977a007Smrg/* end confdefs.h. */ 68765977a007Smrgint i; 68775977a007Smrg_ACEOF 687899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 687999c4c48aSmrgthen : 68805977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 688199c4c48aSmrgelse $as_nop 68825977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 68835977a007Smrgfi 688499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 68855977a007Smrgfi 688699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 688799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68885977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 68895977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68905977a007Smrgfi 68915977a007Smrg 68925977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68935977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68945977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68955977a007Smrg fi 68965977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 689799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 689899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 689999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 690099c4c48aSmrgthen : 690199c4c48aSmrg printf %s "(cached) " >&6 690299c4c48aSmrgelse $as_nop 69035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69045977a007Smrg/* end confdefs.h. */ 69055977a007Smrgint i; 69065977a007Smrg_ACEOF 690799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 690899c4c48aSmrgthen : 69095977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 691099c4c48aSmrgelse $as_nop 69115977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 69125977a007Smrgfi 691399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 69145977a007Smrgfi 691599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 691699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69175977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69195977a007Smrgfi 69205977a007Smrg 69215977a007Smrgfound="no" 69225977a007Smrg 69235977a007Smrg if test $found = "no" ; then 69248a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69255977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69265977a007Smrg fi 69275977a007Smrg 69288a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 69295977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69305977a007Smrg fi 69315977a007Smrg 69328a355152Smrg CFLAGS="$CFLAGS -Wredundant-decls" 69335977a007Smrg 693499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 693599c4c48aSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 69368a355152Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 693799c4c48aSmrg if eval test \${$cacheid+y} 693899c4c48aSmrgthen : 693999c4c48aSmrg printf %s "(cached) " >&6 694099c4c48aSmrgelse $as_nop 69415977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69425977a007Smrg/* end confdefs.h. */ 69435977a007Smrgint i; 69445977a007Smrgint 694599c4c48aSmrgmain (void) 69465977a007Smrg{ 69475977a007Smrg 69485977a007Smrg ; 69495977a007Smrg return 0; 69505977a007Smrg} 69515977a007Smrg_ACEOF 695299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 695399c4c48aSmrgthen : 69545977a007Smrg eval $cacheid=yes 695599c4c48aSmrgelse $as_nop 69565977a007Smrg eval $cacheid=no 69575977a007Smrgfi 695899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 69595977a007Smrg conftest$ac_exeext conftest.$ac_ext 69605977a007Smrgfi 69615977a007Smrg 69625977a007Smrg 69635977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69645977a007Smrg 69655977a007Smrg eval supported=\$$cacheid 696699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 696799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 69685977a007Smrg if test "$supported" = "yes" ; then 69698a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 69705977a007Smrg found="yes" 69715977a007Smrg fi 69725977a007Smrg fi 69735977a007Smrg 69745977a007Smrg 69755977a007Smrg 69765977a007Smrg 69775977a007Smrg 69785977a007Smrg 69795977a007Smrg 69805977a007Smrg 69815977a007Smrg 69825977a007Smrg 69835977a007Smrg 69845977a007Smrg 69855977a007Smrg 69865977a007Smrg 69875977a007Smrg 69885977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 69895977a007Smrg 69905977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 69915977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 699299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 699399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 699499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 699599c4c48aSmrgthen : 699699c4c48aSmrg printf %s "(cached) " >&6 699799c4c48aSmrgelse $as_nop 69985977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69995977a007Smrg/* end confdefs.h. */ 70005977a007Smrgint i; 70015977a007Smrg_ACEOF 700299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 700399c4c48aSmrgthen : 70045977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 700599c4c48aSmrgelse $as_nop 70065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 70075977a007Smrgfi 700899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 70095977a007Smrgfi 701099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 701199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 70125977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 70135977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70145977a007Smrgfi 70155977a007Smrg 70165977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70175977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70185977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70195977a007Smrg fi 70205977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 702199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 702299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 702399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 702499c4c48aSmrgthen : 702599c4c48aSmrg printf %s "(cached) " >&6 702699c4c48aSmrgelse $as_nop 70275977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70285977a007Smrg/* end confdefs.h. */ 70295977a007Smrgint i; 70305977a007Smrg_ACEOF 703199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 703299c4c48aSmrgthen : 70335977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 703499c4c48aSmrgelse $as_nop 70355977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 70365977a007Smrgfi 703799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 70385977a007Smrgfi 703999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 704099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70415977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 70425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70435977a007Smrgfi 70445977a007Smrg 70455977a007Smrgfound="no" 70465977a007Smrg 70475977a007Smrg if test $found = "no" ; then 70488a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70495977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70505977a007Smrg fi 70515977a007Smrg 70528a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 70535977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70545977a007Smrg fi 70555977a007Smrg 70568a355152Smrg CFLAGS="$CFLAGS -Wlogical-op" 70575977a007Smrg 705899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 705999c4c48aSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 70608a355152Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 706199c4c48aSmrg if eval test \${$cacheid+y} 706299c4c48aSmrgthen : 706399c4c48aSmrg printf %s "(cached) " >&6 706499c4c48aSmrgelse $as_nop 70655977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70665977a007Smrg/* end confdefs.h. */ 70675977a007Smrgint i; 70685977a007Smrgint 706999c4c48aSmrgmain (void) 70705977a007Smrg{ 70715977a007Smrg 70725977a007Smrg ; 70735977a007Smrg return 0; 70745977a007Smrg} 70755977a007Smrg_ACEOF 707699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 707799c4c48aSmrgthen : 70785977a007Smrg eval $cacheid=yes 707999c4c48aSmrgelse $as_nop 70805977a007Smrg eval $cacheid=no 70815977a007Smrgfi 708299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 70835977a007Smrg conftest$ac_exeext conftest.$ac_ext 70845977a007Smrgfi 70855977a007Smrg 70865977a007Smrg 70875977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70885977a007Smrg 70895977a007Smrg eval supported=\$$cacheid 709099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 709199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 70925977a007Smrg if test "$supported" = "yes" ; then 70938a355152Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 70945977a007Smrg found="yes" 70955977a007Smrg fi 70965977a007Smrg fi 70975977a007Smrg 70985977a007Smrg 70995977a007Smrg 71005977a007Smrg# These are currently disabled because they are noisy. They will be enabled 71015977a007Smrg# in the future once the codebase is sufficiently modernized to silence 71025977a007Smrg# them. For now, I don't want them to drown out the other warnings. 71035977a007Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 71045977a007Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 71058a355152Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 71065977a007Smrg 71075977a007Smrg# Turn some warnings into errors, so we don't accidently get successful builds 71085977a007Smrg# when there are problems that should be fixed. 71095977a007Smrg 71105977a007Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 71115977a007Smrg 71125977a007Smrg 71135977a007Smrg 71145977a007Smrg 71155977a007Smrg 71165977a007Smrg 71175977a007Smrg 71185977a007Smrg 71195977a007Smrg 71205977a007Smrg 71215977a007Smrg 71225977a007Smrg 71235977a007Smrg 71245977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 71255977a007Smrg 71265977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 71275977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 712899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 712999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 713099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 713199c4c48aSmrgthen : 713299c4c48aSmrg printf %s "(cached) " >&6 713399c4c48aSmrgelse $as_nop 71345977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71355977a007Smrg/* end confdefs.h. */ 71365977a007Smrgint i; 71375977a007Smrg_ACEOF 713899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 713999c4c48aSmrgthen : 71405977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 714199c4c48aSmrgelse $as_nop 71425977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 71435977a007Smrgfi 714499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 71455977a007Smrgfi 714699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 714799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71485977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71495977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71505977a007Smrgfi 71515977a007Smrg 71525977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71535977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71545977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71555977a007Smrg fi 71565977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 715799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 715899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 715999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 716099c4c48aSmrgthen : 716199c4c48aSmrg printf %s "(cached) " >&6 716299c4c48aSmrgelse $as_nop 71635977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71645977a007Smrg/* end confdefs.h. */ 71655977a007Smrgint i; 71665977a007Smrg_ACEOF 716799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 716899c4c48aSmrgthen : 71695977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 717099c4c48aSmrgelse $as_nop 71715977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71725977a007Smrgfi 717399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 71745977a007Smrgfi 717599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 717699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71775977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71785977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71795977a007Smrgfi 71805977a007Smrg 71815977a007Smrgfound="no" 71825977a007Smrg 71835977a007Smrg if test $found = "no" ; then 71848a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71855977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71865977a007Smrg fi 71875977a007Smrg 71888a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 71895977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71905977a007Smrg fi 71915977a007Smrg 71925977a007Smrg CFLAGS="$CFLAGS -Werror=implicit" 71935977a007Smrg 719499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 719599c4c48aSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 71968a355152Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 719799c4c48aSmrg if eval test \${$cacheid+y} 719899c4c48aSmrgthen : 719999c4c48aSmrg printf %s "(cached) " >&6 720099c4c48aSmrgelse $as_nop 72015977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72025977a007Smrg/* end confdefs.h. */ 72035977a007Smrgint i; 72045977a007Smrgint 720599c4c48aSmrgmain (void) 72065977a007Smrg{ 72075977a007Smrg 72085977a007Smrg ; 72095977a007Smrg return 0; 72105977a007Smrg} 72115977a007Smrg_ACEOF 721299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 721399c4c48aSmrgthen : 72145977a007Smrg eval $cacheid=yes 721599c4c48aSmrgelse $as_nop 72165977a007Smrg eval $cacheid=no 72175977a007Smrgfi 721899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 72195977a007Smrg conftest$ac_exeext conftest.$ac_ext 72205977a007Smrgfi 72215977a007Smrg 72225977a007Smrg 72235977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72245977a007Smrg 72255977a007Smrg eval supported=\$$cacheid 722699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 722799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 72285977a007Smrg if test "$supported" = "yes" ; then 72295977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 72305977a007Smrg found="yes" 72315977a007Smrg fi 72325977a007Smrg fi 72335977a007Smrg 72345977a007Smrg if test $found = "no" ; then 72358a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72365977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72375977a007Smrg fi 72385977a007Smrg 72398a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 72405977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72415977a007Smrg fi 72425977a007Smrg 72435977a007Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 72445977a007Smrg 724599c4c48aSmrg { 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 724699c4c48aSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 72478a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 724899c4c48aSmrg if eval test \${$cacheid+y} 724999c4c48aSmrgthen : 725099c4c48aSmrg printf %s "(cached) " >&6 725199c4c48aSmrgelse $as_nop 72525977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72535977a007Smrg/* end confdefs.h. */ 72545977a007Smrgint i; 72555977a007Smrgint 725699c4c48aSmrgmain (void) 72575977a007Smrg{ 72585977a007Smrg 72595977a007Smrg ; 72605977a007Smrg return 0; 72615977a007Smrg} 72625977a007Smrg_ACEOF 726399c4c48aSmrgif ac_fn_c_try_link "$LINENO" 726499c4c48aSmrgthen : 72655977a007Smrg eval $cacheid=yes 726699c4c48aSmrgelse $as_nop 72675977a007Smrg eval $cacheid=no 72685977a007Smrgfi 726999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 72705977a007Smrg conftest$ac_exeext conftest.$ac_ext 72715977a007Smrgfi 72725977a007Smrg 72735977a007Smrg 72745977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72755977a007Smrg 72765977a007Smrg eval supported=\$$cacheid 727799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 727899c4c48aSmrgprintf "%s\n" "$supported" >&6; } 72795977a007Smrg if test "$supported" = "yes" ; then 72805977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 72815977a007Smrg found="yes" 72825977a007Smrg fi 72835977a007Smrg fi 72845977a007Smrg 72855977a007Smrg 72865977a007Smrg 72875977a007Smrg 72885977a007Smrg 72895977a007Smrg 72905977a007Smrg 72915977a007Smrg 72925977a007Smrg 72935977a007Smrg 72945977a007Smrg 72955977a007Smrg 72965977a007Smrg 72975977a007Smrg 72985977a007Smrg 72995977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73005977a007Smrg 73015977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 730399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 730499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 730599c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 730699c4c48aSmrgthen : 730799c4c48aSmrg printf %s "(cached) " >&6 730899c4c48aSmrgelse $as_nop 73095977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73105977a007Smrg/* end confdefs.h. */ 73115977a007Smrgint i; 73125977a007Smrg_ACEOF 731399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 731499c4c48aSmrgthen : 73155977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 731699c4c48aSmrgelse $as_nop 73175977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 73185977a007Smrgfi 731999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 73205977a007Smrgfi 732199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 732299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73235977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73245977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73255977a007Smrgfi 73265977a007Smrg 73275977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73285977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73295977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73305977a007Smrg fi 73315977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 733299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 733399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 733499c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 733599c4c48aSmrgthen : 733699c4c48aSmrg printf %s "(cached) " >&6 733799c4c48aSmrgelse $as_nop 73385977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73395977a007Smrg/* end confdefs.h. */ 73405977a007Smrgint i; 73415977a007Smrg_ACEOF 734299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 734399c4c48aSmrgthen : 73445977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 734599c4c48aSmrgelse $as_nop 73465977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 73475977a007Smrgfi 734899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 73495977a007Smrgfi 735099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 735199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73525977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 73535977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73545977a007Smrgfi 73555977a007Smrg 73565977a007Smrgfound="no" 73575977a007Smrg 73585977a007Smrg if test $found = "no" ; then 73598a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73605977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73615977a007Smrg fi 73625977a007Smrg 73638a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 73645977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73655977a007Smrg fi 73665977a007Smrg 73675977a007Smrg CFLAGS="$CFLAGS -Werror=nonnull" 73685977a007Smrg 736999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 737099c4c48aSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 73718a355152Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 737299c4c48aSmrg if eval test \${$cacheid+y} 737399c4c48aSmrgthen : 737499c4c48aSmrg printf %s "(cached) " >&6 737599c4c48aSmrgelse $as_nop 73765977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73775977a007Smrg/* end confdefs.h. */ 73785977a007Smrgint i; 73795977a007Smrgint 738099c4c48aSmrgmain (void) 73815977a007Smrg{ 73825977a007Smrg 73835977a007Smrg ; 73845977a007Smrg return 0; 73855977a007Smrg} 73865977a007Smrg_ACEOF 738799c4c48aSmrgif ac_fn_c_try_link "$LINENO" 738899c4c48aSmrgthen : 73895977a007Smrg eval $cacheid=yes 739099c4c48aSmrgelse $as_nop 73915977a007Smrg eval $cacheid=no 73925977a007Smrgfi 739399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 73945977a007Smrg conftest$ac_exeext conftest.$ac_ext 73955977a007Smrgfi 73965977a007Smrg 73975977a007Smrg 73985977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73995977a007Smrg 74005977a007Smrg eval supported=\$$cacheid 740199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 740299c4c48aSmrgprintf "%s\n" "$supported" >&6; } 74035977a007Smrg if test "$supported" = "yes" ; then 74045977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 74055977a007Smrg found="yes" 74065977a007Smrg fi 74075977a007Smrg fi 74085977a007Smrg 74095977a007Smrg 74105977a007Smrg 74115977a007Smrg 74125977a007Smrg 74135977a007Smrg 74145977a007Smrg 74155977a007Smrg 74165977a007Smrg 74175977a007Smrg 74185977a007Smrg 74195977a007Smrg 74205977a007Smrg 74215977a007Smrg 74225977a007Smrg 74235977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74245977a007Smrg 74255977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74265977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 742799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 742899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 742999c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 743099c4c48aSmrgthen : 743199c4c48aSmrg printf %s "(cached) " >&6 743299c4c48aSmrgelse $as_nop 74335977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74345977a007Smrg/* end confdefs.h. */ 74355977a007Smrgint i; 74365977a007Smrg_ACEOF 743799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 743899c4c48aSmrgthen : 74395977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 744099c4c48aSmrgelse $as_nop 74415977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 74425977a007Smrgfi 744399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 74445977a007Smrgfi 744599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 744699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74475977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 74485977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74495977a007Smrgfi 74505977a007Smrg 74515977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74525977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74535977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74545977a007Smrg fi 74555977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 745699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 745799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 745899c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 745999c4c48aSmrgthen : 746099c4c48aSmrg printf %s "(cached) " >&6 746199c4c48aSmrgelse $as_nop 74625977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74635977a007Smrg/* end confdefs.h. */ 74645977a007Smrgint i; 74655977a007Smrg_ACEOF 746699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 746799c4c48aSmrgthen : 74685977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 746999c4c48aSmrgelse $as_nop 74705977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 74715977a007Smrgfi 747299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 74735977a007Smrgfi 747499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 747599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74765977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74775977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74785977a007Smrgfi 74795977a007Smrg 74805977a007Smrgfound="no" 74815977a007Smrg 74825977a007Smrg if test $found = "no" ; then 74838a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74845977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74855977a007Smrg fi 74865977a007Smrg 74878a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 74885977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74895977a007Smrg fi 74905977a007Smrg 74915977a007Smrg CFLAGS="$CFLAGS -Werror=init-self" 74925977a007Smrg 749399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 749499c4c48aSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 74958a355152Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 749699c4c48aSmrg if eval test \${$cacheid+y} 749799c4c48aSmrgthen : 749899c4c48aSmrg printf %s "(cached) " >&6 749999c4c48aSmrgelse $as_nop 75005977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75015977a007Smrg/* end confdefs.h. */ 75025977a007Smrgint i; 75035977a007Smrgint 750499c4c48aSmrgmain (void) 75055977a007Smrg{ 75065977a007Smrg 75075977a007Smrg ; 75085977a007Smrg return 0; 75095977a007Smrg} 75105977a007Smrg_ACEOF 751199c4c48aSmrgif ac_fn_c_try_link "$LINENO" 751299c4c48aSmrgthen : 75135977a007Smrg eval $cacheid=yes 751499c4c48aSmrgelse $as_nop 75155977a007Smrg eval $cacheid=no 75165977a007Smrgfi 751799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 75185977a007Smrg conftest$ac_exeext conftest.$ac_ext 75195977a007Smrgfi 75205977a007Smrg 75215977a007Smrg 75225977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75235977a007Smrg 75245977a007Smrg eval supported=\$$cacheid 752599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 752699c4c48aSmrgprintf "%s\n" "$supported" >&6; } 75275977a007Smrg if test "$supported" = "yes" ; then 75285977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 75295977a007Smrg found="yes" 75305977a007Smrg fi 75315977a007Smrg fi 75325977a007Smrg 75335977a007Smrg 75345977a007Smrg 75355977a007Smrg 75365977a007Smrg 75375977a007Smrg 75385977a007Smrg 75395977a007Smrg 75405977a007Smrg 75415977a007Smrg 75425977a007Smrg 75435977a007Smrg 75445977a007Smrg 75455977a007Smrg 75465977a007Smrg 75475977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 75485977a007Smrg 75495977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 75505977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 755199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 755299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 755399c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 755499c4c48aSmrgthen : 755599c4c48aSmrg printf %s "(cached) " >&6 755699c4c48aSmrgelse $as_nop 75575977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75585977a007Smrg/* end confdefs.h. */ 75595977a007Smrgint i; 75605977a007Smrg_ACEOF 756199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 756299c4c48aSmrgthen : 75635977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 756499c4c48aSmrgelse $as_nop 75655977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 75665977a007Smrgfi 756799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 75685977a007Smrgfi 756999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 757099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75715977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75725977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75735977a007Smrgfi 75745977a007Smrg 75755977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75765977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75785977a007Smrg fi 75795977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 758099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 758199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 758299c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 758399c4c48aSmrgthen : 758499c4c48aSmrg printf %s "(cached) " >&6 758599c4c48aSmrgelse $as_nop 75865977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75875977a007Smrg/* end confdefs.h. */ 75885977a007Smrgint i; 75895977a007Smrg_ACEOF 759099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 759199c4c48aSmrgthen : 75925977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 759399c4c48aSmrgelse $as_nop 75945977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75955977a007Smrgfi 759699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 75975977a007Smrgfi 759899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 759999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76005977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76015977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76025977a007Smrgfi 76035977a007Smrg 76045977a007Smrgfound="no" 76055977a007Smrg 76065977a007Smrg if test $found = "no" ; then 76078a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76085977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76095977a007Smrg fi 76105977a007Smrg 76118a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 76125977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76135977a007Smrg fi 76145977a007Smrg 76155977a007Smrg CFLAGS="$CFLAGS -Werror=main" 76165977a007Smrg 761799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 761899c4c48aSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 76198a355152Smrg cacheid=xorg_cv_cc_flag__Werror_main 762099c4c48aSmrg if eval test \${$cacheid+y} 762199c4c48aSmrgthen : 762299c4c48aSmrg printf %s "(cached) " >&6 762399c4c48aSmrgelse $as_nop 76245977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76255977a007Smrg/* end confdefs.h. */ 76265977a007Smrgint i; 76275977a007Smrgint 762899c4c48aSmrgmain (void) 76295977a007Smrg{ 76305977a007Smrg 76315977a007Smrg ; 76325977a007Smrg return 0; 76335977a007Smrg} 76345977a007Smrg_ACEOF 763599c4c48aSmrgif ac_fn_c_try_link "$LINENO" 763699c4c48aSmrgthen : 76375977a007Smrg eval $cacheid=yes 763899c4c48aSmrgelse $as_nop 76395977a007Smrg eval $cacheid=no 76405977a007Smrgfi 764199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 76425977a007Smrg conftest$ac_exeext conftest.$ac_ext 76435977a007Smrgfi 76445977a007Smrg 76455977a007Smrg 76465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76475977a007Smrg 76485977a007Smrg eval supported=\$$cacheid 764999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 765099c4c48aSmrgprintf "%s\n" "$supported" >&6; } 76515977a007Smrg if test "$supported" = "yes" ; then 76525977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 76535977a007Smrg found="yes" 76545977a007Smrg fi 76555977a007Smrg fi 76565977a007Smrg 76575977a007Smrg 76585977a007Smrg 76595977a007Smrg 76605977a007Smrg 76615977a007Smrg 76625977a007Smrg 76635977a007Smrg 76645977a007Smrg 76655977a007Smrg 76665977a007Smrg 76675977a007Smrg 76685977a007Smrg 76695977a007Smrg 76705977a007Smrg 76715977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76725977a007Smrg 76735977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76745977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 767599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 767699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 767799c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 767899c4c48aSmrgthen : 767999c4c48aSmrg printf %s "(cached) " >&6 768099c4c48aSmrgelse $as_nop 76815977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76825977a007Smrg/* end confdefs.h. */ 76835977a007Smrgint i; 76845977a007Smrg_ACEOF 768599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 768699c4c48aSmrgthen : 76875977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 768899c4c48aSmrgelse $as_nop 76895977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 76905977a007Smrgfi 769199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 76925977a007Smrgfi 769399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 769499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76955977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76965977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76975977a007Smrgfi 76985977a007Smrg 76995977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77005977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77015977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77025977a007Smrg fi 77035977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 770499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 770599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 770699c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 770799c4c48aSmrgthen : 770899c4c48aSmrg printf %s "(cached) " >&6 770999c4c48aSmrgelse $as_nop 77105977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77115977a007Smrg/* end confdefs.h. */ 77125977a007Smrgint i; 77135977a007Smrg_ACEOF 771499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 771599c4c48aSmrgthen : 77165977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 771799c4c48aSmrgelse $as_nop 77185977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 77195977a007Smrgfi 772099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 77215977a007Smrgfi 772299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 772399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77245977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 77255977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77265977a007Smrgfi 77275977a007Smrg 77285977a007Smrgfound="no" 77295977a007Smrg 77305977a007Smrg if test $found = "no" ; then 77318a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77325977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77335977a007Smrg fi 77345977a007Smrg 77358a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 77365977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77375977a007Smrg fi 77385977a007Smrg 77395977a007Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 77405977a007Smrg 774199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 774299c4c48aSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 77438a355152Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 774499c4c48aSmrg if eval test \${$cacheid+y} 774599c4c48aSmrgthen : 774699c4c48aSmrg printf %s "(cached) " >&6 774799c4c48aSmrgelse $as_nop 77485977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77495977a007Smrg/* end confdefs.h. */ 77505977a007Smrgint i; 77515977a007Smrgint 775299c4c48aSmrgmain (void) 77535977a007Smrg{ 77545977a007Smrg 77555977a007Smrg ; 77565977a007Smrg return 0; 77575977a007Smrg} 77585977a007Smrg_ACEOF 775999c4c48aSmrgif ac_fn_c_try_link "$LINENO" 776099c4c48aSmrgthen : 77615977a007Smrg eval $cacheid=yes 776299c4c48aSmrgelse $as_nop 77635977a007Smrg eval $cacheid=no 77645977a007Smrgfi 776599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 77665977a007Smrg conftest$ac_exeext conftest.$ac_ext 77675977a007Smrgfi 77685977a007Smrg 77695977a007Smrg 77705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77715977a007Smrg 77725977a007Smrg eval supported=\$$cacheid 777399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 777499c4c48aSmrgprintf "%s\n" "$supported" >&6; } 77755977a007Smrg if test "$supported" = "yes" ; then 77765977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 77775977a007Smrg found="yes" 77785977a007Smrg fi 77795977a007Smrg fi 77805977a007Smrg 77815977a007Smrg 77825977a007Smrg 77835977a007Smrg 77845977a007Smrg 77855977a007Smrg 77865977a007Smrg 77875977a007Smrg 77885977a007Smrg 77895977a007Smrg 77905977a007Smrg 77915977a007Smrg 77925977a007Smrg 77935977a007Smrg 77945977a007Smrg 77955977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 77965977a007Smrg 77975977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77985977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 779999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 780099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 780199c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 780299c4c48aSmrgthen : 780399c4c48aSmrg printf %s "(cached) " >&6 780499c4c48aSmrgelse $as_nop 78055977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78065977a007Smrg/* end confdefs.h. */ 78075977a007Smrgint i; 78085977a007Smrg_ACEOF 780999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 781099c4c48aSmrgthen : 78115977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 781299c4c48aSmrgelse $as_nop 78135977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 78145977a007Smrgfi 781599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 78165977a007Smrgfi 781799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 781899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78195977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78205977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78215977a007Smrgfi 78225977a007Smrg 78235977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78245977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78255977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78265977a007Smrg fi 78275977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 782899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 782999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 783099c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 783199c4c48aSmrgthen : 783299c4c48aSmrg printf %s "(cached) " >&6 783399c4c48aSmrgelse $as_nop 78345977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78355977a007Smrg/* end confdefs.h. */ 78365977a007Smrgint i; 78375977a007Smrg_ACEOF 783899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 783999c4c48aSmrgthen : 78405977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 784199c4c48aSmrgelse $as_nop 78425977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78435977a007Smrgfi 784499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 78455977a007Smrgfi 784699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 784799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78485977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 78495977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78505977a007Smrgfi 78515977a007Smrg 78525977a007Smrgfound="no" 78535977a007Smrg 78545977a007Smrg if test $found = "no" ; then 78558a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78565977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78575977a007Smrg fi 78585977a007Smrg 78598a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 78605977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78615977a007Smrg fi 78625977a007Smrg 78635977a007Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 78645977a007Smrg 786599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 786699c4c48aSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 78678a355152Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 786899c4c48aSmrg if eval test \${$cacheid+y} 786999c4c48aSmrgthen : 787099c4c48aSmrg printf %s "(cached) " >&6 787199c4c48aSmrgelse $as_nop 78725977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78735977a007Smrg/* end confdefs.h. */ 78745977a007Smrgint i; 78755977a007Smrgint 787699c4c48aSmrgmain (void) 78775977a007Smrg{ 78785977a007Smrg 78795977a007Smrg ; 78805977a007Smrg return 0; 78815977a007Smrg} 78825977a007Smrg_ACEOF 788399c4c48aSmrgif ac_fn_c_try_link "$LINENO" 788499c4c48aSmrgthen : 78855977a007Smrg eval $cacheid=yes 788699c4c48aSmrgelse $as_nop 78875977a007Smrg eval $cacheid=no 78885977a007Smrgfi 788999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 78905977a007Smrg conftest$ac_exeext conftest.$ac_ext 78915977a007Smrgfi 78925977a007Smrg 78935977a007Smrg 78945977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78955977a007Smrg 78965977a007Smrg eval supported=\$$cacheid 789799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 789899c4c48aSmrgprintf "%s\n" "$supported" >&6; } 78995977a007Smrg if test "$supported" = "yes" ; then 79005977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 79015977a007Smrg found="yes" 79025977a007Smrg fi 79035977a007Smrg fi 79045977a007Smrg 79055977a007Smrg 79065977a007Smrg 79075977a007Smrg 79085977a007Smrg 79095977a007Smrg 79105977a007Smrg 79115977a007Smrg 79125977a007Smrg 79135977a007Smrg 79145977a007Smrg 79155977a007Smrg 79165977a007Smrg 79175977a007Smrg 79185977a007Smrg 79195977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 79205977a007Smrg 79215977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 79225977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 792399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 792499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 792599c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 792699c4c48aSmrgthen : 792799c4c48aSmrg printf %s "(cached) " >&6 792899c4c48aSmrgelse $as_nop 79295977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79305977a007Smrg/* end confdefs.h. */ 79315977a007Smrgint i; 79325977a007Smrg_ACEOF 793399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 793499c4c48aSmrgthen : 79355977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 793699c4c48aSmrgelse $as_nop 79375977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 79385977a007Smrgfi 793999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 79405977a007Smrgfi 794199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 794299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79435977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79445977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79455977a007Smrgfi 79465977a007Smrg 79475977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79485977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79495977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79505977a007Smrg fi 79515977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 795299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 795399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 795499c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 795599c4c48aSmrgthen : 795699c4c48aSmrg printf %s "(cached) " >&6 795799c4c48aSmrgelse $as_nop 79585977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79595977a007Smrg/* end confdefs.h. */ 79605977a007Smrgint i; 79615977a007Smrg_ACEOF 796299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 796399c4c48aSmrgthen : 79645977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 796599c4c48aSmrgelse $as_nop 79665977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 79675977a007Smrgfi 796899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 79695977a007Smrgfi 797099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 797199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 79725977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79735977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79745977a007Smrgfi 79755977a007Smrg 79765977a007Smrgfound="no" 79775977a007Smrg 79785977a007Smrg if test $found = "no" ; then 79798a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79805977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79815977a007Smrg fi 79825977a007Smrg 79838a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 79845977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79855977a007Smrg fi 79865977a007Smrg 79875977a007Smrg CFLAGS="$CFLAGS -Werror=return-type" 79885977a007Smrg 798999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 799099c4c48aSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 79918a355152Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 799299c4c48aSmrg if eval test \${$cacheid+y} 799399c4c48aSmrgthen : 799499c4c48aSmrg printf %s "(cached) " >&6 799599c4c48aSmrgelse $as_nop 79965977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79975977a007Smrg/* end confdefs.h. */ 79985977a007Smrgint i; 79995977a007Smrgint 800099c4c48aSmrgmain (void) 80015977a007Smrg{ 80025977a007Smrg 80035977a007Smrg ; 80045977a007Smrg return 0; 80055977a007Smrg} 80065977a007Smrg_ACEOF 800799c4c48aSmrgif ac_fn_c_try_link "$LINENO" 800899c4c48aSmrgthen : 80095977a007Smrg eval $cacheid=yes 801099c4c48aSmrgelse $as_nop 80115977a007Smrg eval $cacheid=no 80125977a007Smrgfi 801399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 80145977a007Smrg conftest$ac_exeext conftest.$ac_ext 80155977a007Smrgfi 80165977a007Smrg 80175977a007Smrg 80185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80195977a007Smrg 80205977a007Smrg eval supported=\$$cacheid 802199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 802299c4c48aSmrgprintf "%s\n" "$supported" >&6; } 80235977a007Smrg if test "$supported" = "yes" ; then 80245977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 80255977a007Smrg found="yes" 80265977a007Smrg fi 80275977a007Smrg fi 80285977a007Smrg 80295977a007Smrg if test $found = "no" ; then 80308a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80315977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80325977a007Smrg fi 80335977a007Smrg 80348a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 80355977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80365977a007Smrg fi 80375977a007Smrg 80385977a007Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 80395977a007Smrg 804099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 804199c4c48aSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 80428a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 804399c4c48aSmrg if eval test \${$cacheid+y} 804499c4c48aSmrgthen : 804599c4c48aSmrg printf %s "(cached) " >&6 804699c4c48aSmrgelse $as_nop 80475977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80485977a007Smrg/* end confdefs.h. */ 80495977a007Smrgint i; 80505977a007Smrgint 805199c4c48aSmrgmain (void) 80525977a007Smrg{ 80535977a007Smrg 80545977a007Smrg ; 80555977a007Smrg return 0; 80565977a007Smrg} 80575977a007Smrg_ACEOF 805899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 805999c4c48aSmrgthen : 80605977a007Smrg eval $cacheid=yes 806199c4c48aSmrgelse $as_nop 80625977a007Smrg eval $cacheid=no 80635977a007Smrgfi 806499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 80655977a007Smrg conftest$ac_exeext conftest.$ac_ext 80665977a007Smrgfi 80675977a007Smrg 80685977a007Smrg 80695977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80705977a007Smrg 80715977a007Smrg eval supported=\$$cacheid 807299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 807399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 80745977a007Smrg if test "$supported" = "yes" ; then 80755977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 80765977a007Smrg found="yes" 80775977a007Smrg fi 80785977a007Smrg fi 80795977a007Smrg 80805977a007Smrg 80815977a007Smrg 80825977a007Smrg 80835977a007Smrg 80845977a007Smrg 80855977a007Smrg 80865977a007Smrg 80875977a007Smrg 80885977a007Smrg 80895977a007Smrg 80905977a007Smrg 80915977a007Smrg 80925977a007Smrg 80935977a007Smrg 80945977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 80955977a007Smrg 80965977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80975977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 809899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 809999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 810099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 810199c4c48aSmrgthen : 810299c4c48aSmrg printf %s "(cached) " >&6 810399c4c48aSmrgelse $as_nop 81045977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81055977a007Smrg/* end confdefs.h. */ 81065977a007Smrgint i; 81075977a007Smrg_ACEOF 810899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 810999c4c48aSmrgthen : 81105977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 811199c4c48aSmrgelse $as_nop 81125977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 81135977a007Smrgfi 811499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 81155977a007Smrgfi 811699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 811799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81185977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81195977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81205977a007Smrgfi 81215977a007Smrg 81225977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81235977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81245977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81255977a007Smrg fi 81265977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 812799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 812899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 812999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 813099c4c48aSmrgthen : 813199c4c48aSmrg printf %s "(cached) " >&6 813299c4c48aSmrgelse $as_nop 81335977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81345977a007Smrg/* end confdefs.h. */ 81355977a007Smrgint i; 81365977a007Smrg_ACEOF 813799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 813899c4c48aSmrgthen : 81395977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 814099c4c48aSmrgelse $as_nop 81415977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81425977a007Smrgfi 814399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 81445977a007Smrgfi 814599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 814699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81475977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81485977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81495977a007Smrgfi 81505977a007Smrg 81515977a007Smrgfound="no" 81525977a007Smrg 81535977a007Smrg if test $found = "no" ; then 81548a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81555977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81565977a007Smrg fi 81575977a007Smrg 81588a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 81595977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81605977a007Smrg fi 81615977a007Smrg 81625977a007Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 81635977a007Smrg 816499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 816599c4c48aSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 81668a355152Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 816799c4c48aSmrg if eval test \${$cacheid+y} 816899c4c48aSmrgthen : 816999c4c48aSmrg printf %s "(cached) " >&6 817099c4c48aSmrgelse $as_nop 81715977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81725977a007Smrg/* end confdefs.h. */ 81735977a007Smrgint i; 81745977a007Smrgint 817599c4c48aSmrgmain (void) 81765977a007Smrg{ 81775977a007Smrg 81785977a007Smrg ; 81795977a007Smrg return 0; 81805977a007Smrg} 81815977a007Smrg_ACEOF 818299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 818399c4c48aSmrgthen : 81845977a007Smrg eval $cacheid=yes 818599c4c48aSmrgelse $as_nop 81865977a007Smrg eval $cacheid=no 81875977a007Smrgfi 818899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 81895977a007Smrg conftest$ac_exeext conftest.$ac_ext 81905977a007Smrgfi 81915977a007Smrg 81925977a007Smrg 81935977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81945977a007Smrg 81955977a007Smrg eval supported=\$$cacheid 819699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 819799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 81985977a007Smrg if test "$supported" = "yes" ; then 81995977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 82005977a007Smrg found="yes" 82015977a007Smrg fi 82025977a007Smrg fi 82035977a007Smrg 82045977a007Smrg 82055977a007Smrg 82065977a007Smrg 82075977a007Smrg 82085977a007Smrg 82095977a007Smrg 82105977a007Smrg 82115977a007Smrg 82125977a007Smrg 82135977a007Smrg 82145977a007Smrg 82155977a007Smrg 82165977a007Smrg 82175977a007Smrg 82185977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 82195977a007Smrg 82205977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 82215977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 822299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 822399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 822499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 822599c4c48aSmrgthen : 822699c4c48aSmrg printf %s "(cached) " >&6 822799c4c48aSmrgelse $as_nop 82285977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82295977a007Smrg/* end confdefs.h. */ 82305977a007Smrgint i; 82315977a007Smrg_ACEOF 823299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 823399c4c48aSmrgthen : 82345977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 823599c4c48aSmrgelse $as_nop 82365977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 82375977a007Smrgfi 823899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 82395977a007Smrgfi 824099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 824199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82425977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 82435977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82445977a007Smrgfi 82455977a007Smrg 82465977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82475977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82485977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82495977a007Smrg fi 82505977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 825199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 825299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 825399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 825499c4c48aSmrgthen : 825599c4c48aSmrg printf %s "(cached) " >&6 825699c4c48aSmrgelse $as_nop 82575977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82585977a007Smrg/* end confdefs.h. */ 82595977a007Smrgint i; 82605977a007Smrg_ACEOF 826199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 826299c4c48aSmrgthen : 82635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 826499c4c48aSmrgelse $as_nop 82655977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 82665977a007Smrgfi 826799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 82685977a007Smrgfi 826999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 827099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 82715977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 82725977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82735977a007Smrgfi 82745977a007Smrg 82755977a007Smrgfound="no" 82765977a007Smrg 82775977a007Smrg if test $found = "no" ; then 82788a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82795977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82805977a007Smrg fi 82815977a007Smrg 82828a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 82835977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82845977a007Smrg fi 82855977a007Smrg 82865977a007Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 82875977a007Smrg 828899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 828999c4c48aSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 82908a355152Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 829199c4c48aSmrg if eval test \${$cacheid+y} 829299c4c48aSmrgthen : 829399c4c48aSmrg printf %s "(cached) " >&6 829499c4c48aSmrgelse $as_nop 82955977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82965977a007Smrg/* end confdefs.h. */ 82975977a007Smrgint i; 82985977a007Smrgint 829999c4c48aSmrgmain (void) 83005977a007Smrg{ 83015977a007Smrg 83025977a007Smrg ; 83035977a007Smrg return 0; 83045977a007Smrg} 83055977a007Smrg_ACEOF 830699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 830799c4c48aSmrgthen : 83085977a007Smrg eval $cacheid=yes 830999c4c48aSmrgelse $as_nop 83105977a007Smrg eval $cacheid=no 83115977a007Smrgfi 831299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 83135977a007Smrg conftest$ac_exeext conftest.$ac_ext 83145977a007Smrgfi 83155977a007Smrg 83165977a007Smrg 83175977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83185977a007Smrg 83195977a007Smrg eval supported=\$$cacheid 832099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 832199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 83225977a007Smrg if test "$supported" = "yes" ; then 83235977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 83245977a007Smrg found="yes" 83255977a007Smrg fi 83265977a007Smrg fi 83275977a007Smrg 83285977a007Smrg 83295977a007Smrg 83305977a007Smrg 83315977a007Smrg 83325977a007Smrg 83335977a007Smrg 83345977a007Smrg 83355977a007Smrg 83365977a007Smrg 83375977a007Smrg 83385977a007Smrg 83395977a007Smrg 83405977a007Smrg 83415977a007Smrg 83425977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 83435977a007Smrg 83445977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 83455977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 834799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 834899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 834999c4c48aSmrgthen : 835099c4c48aSmrg printf %s "(cached) " >&6 835199c4c48aSmrgelse $as_nop 83525977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83535977a007Smrg/* end confdefs.h. */ 83545977a007Smrgint i; 83555977a007Smrg_ACEOF 835699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 835799c4c48aSmrgthen : 83585977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 835999c4c48aSmrgelse $as_nop 83605977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 83615977a007Smrgfi 836299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 83635977a007Smrgfi 836499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 836599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83665977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83675977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83685977a007Smrgfi 83695977a007Smrg 83705977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83715977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83725977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83735977a007Smrg fi 83745977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 837599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 837699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 837799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 837899c4c48aSmrgthen : 837999c4c48aSmrg printf %s "(cached) " >&6 838099c4c48aSmrgelse $as_nop 83815977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83825977a007Smrg/* end confdefs.h. */ 83835977a007Smrgint i; 83845977a007Smrg_ACEOF 838599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 838699c4c48aSmrgthen : 83875977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 838899c4c48aSmrgelse $as_nop 83895977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 83905977a007Smrgfi 839199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 83925977a007Smrgfi 839399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 839499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83955977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83965977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83975977a007Smrgfi 83985977a007Smrg 83995977a007Smrgfound="no" 84005977a007Smrg 84015977a007Smrg if test $found = "no" ; then 84028a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84035977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84045977a007Smrg fi 84055977a007Smrg 84068a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 84075977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84085977a007Smrg fi 84095977a007Smrg 84105977a007Smrg CFLAGS="$CFLAGS -Werror=write-strings" 84115977a007Smrg 841299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 841399c4c48aSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 84148a355152Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 841599c4c48aSmrg if eval test \${$cacheid+y} 841699c4c48aSmrgthen : 841799c4c48aSmrg printf %s "(cached) " >&6 841899c4c48aSmrgelse $as_nop 84195977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84205977a007Smrg/* end confdefs.h. */ 84215977a007Smrgint i; 84225977a007Smrgint 842399c4c48aSmrgmain (void) 84245977a007Smrg{ 84255977a007Smrg 84265977a007Smrg ; 84275977a007Smrg return 0; 84285977a007Smrg} 84295977a007Smrg_ACEOF 843099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 843199c4c48aSmrgthen : 84325977a007Smrg eval $cacheid=yes 843399c4c48aSmrgelse $as_nop 84345977a007Smrg eval $cacheid=no 84355977a007Smrgfi 843699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 84375977a007Smrg conftest$ac_exeext conftest.$ac_ext 84385977a007Smrgfi 84395977a007Smrg 84405977a007Smrg 84415977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84425977a007Smrg 84435977a007Smrg eval supported=\$$cacheid 844499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 844599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 84465977a007Smrg if test "$supported" = "yes" ; then 84475977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 84485977a007Smrg found="yes" 84495977a007Smrg fi 84505977a007Smrg fi 84515977a007Smrg 84525977a007Smrg 84535977a007Smrg 84545977a007Smrg 84555977a007Smrg 84565977a007Smrg 84575977a007Smrg 84585977a007Smrg 84595977a007Smrg 84605977a007Smrg 84615977a007Smrg 84625977a007Smrg 84635977a007Smrg 84645977a007Smrg 84655977a007Smrg 84665977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84675977a007Smrg 84685977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84695977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 847099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 847199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 847299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 847399c4c48aSmrgthen : 847499c4c48aSmrg printf %s "(cached) " >&6 847599c4c48aSmrgelse $as_nop 84765977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84775977a007Smrg/* end confdefs.h. */ 84785977a007Smrgint i; 84795977a007Smrg_ACEOF 848099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 848199c4c48aSmrgthen : 84825977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 848399c4c48aSmrgelse $as_nop 84845977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 84855977a007Smrgfi 848699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 84875977a007Smrgfi 848899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 848999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84905977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 84915977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84925977a007Smrgfi 84935977a007Smrg 84945977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84955977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84965977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84975977a007Smrg fi 84985977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 849999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 850099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 850199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 850299c4c48aSmrgthen : 850399c4c48aSmrg printf %s "(cached) " >&6 850499c4c48aSmrgelse $as_nop 85055977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85065977a007Smrg/* end confdefs.h. */ 85075977a007Smrgint i; 85085977a007Smrg_ACEOF 850999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 851099c4c48aSmrgthen : 85115977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 851299c4c48aSmrgelse $as_nop 85135977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85145977a007Smrgfi 851599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 85165977a007Smrgfi 851799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 851899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85195977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85205977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85215977a007Smrgfi 85225977a007Smrg 85235977a007Smrgfound="no" 85245977a007Smrg 85255977a007Smrg if test $found = "no" ; then 85268a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85275977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85285977a007Smrg fi 85295977a007Smrg 85308a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 85315977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85325977a007Smrg fi 85335977a007Smrg 85345977a007Smrg CFLAGS="$CFLAGS -Werror=address" 85355977a007Smrg 853699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 853799c4c48aSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 85388a355152Smrg cacheid=xorg_cv_cc_flag__Werror_address 853999c4c48aSmrg if eval test \${$cacheid+y} 854099c4c48aSmrgthen : 854199c4c48aSmrg printf %s "(cached) " >&6 854299c4c48aSmrgelse $as_nop 85435977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85445977a007Smrg/* end confdefs.h. */ 85455977a007Smrgint i; 85465977a007Smrgint 854799c4c48aSmrgmain (void) 85485977a007Smrg{ 85495977a007Smrg 85505977a007Smrg ; 85515977a007Smrg return 0; 85525977a007Smrg} 85535977a007Smrg_ACEOF 855499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 855599c4c48aSmrgthen : 85565977a007Smrg eval $cacheid=yes 855799c4c48aSmrgelse $as_nop 85585977a007Smrg eval $cacheid=no 85595977a007Smrgfi 856099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 85615977a007Smrg conftest$ac_exeext conftest.$ac_ext 85625977a007Smrgfi 85635977a007Smrg 85645977a007Smrg 85655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85665977a007Smrg 85675977a007Smrg eval supported=\$$cacheid 856899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 856999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 85705977a007Smrg if test "$supported" = "yes" ; then 85715977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 85725977a007Smrg found="yes" 85735977a007Smrg fi 85745977a007Smrg fi 85755977a007Smrg 85765977a007Smrg 85775977a007Smrg 85785977a007Smrg 85795977a007Smrg 85805977a007Smrg 85815977a007Smrg 85825977a007Smrg 85835977a007Smrg 85845977a007Smrg 85855977a007Smrg 85865977a007Smrg 85875977a007Smrg 85885977a007Smrg 85895977a007Smrg 85905977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 85915977a007Smrg 85925977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 85935977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 859499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 859599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 859699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 859799c4c48aSmrgthen : 859899c4c48aSmrg printf %s "(cached) " >&6 859999c4c48aSmrgelse $as_nop 86005977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86015977a007Smrg/* end confdefs.h. */ 86025977a007Smrgint i; 86035977a007Smrg_ACEOF 860499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 860599c4c48aSmrgthen : 86065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 860799c4c48aSmrgelse $as_nop 86085977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 86095977a007Smrgfi 861099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 86115977a007Smrgfi 861299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 861399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86145977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86165977a007Smrgfi 86175977a007Smrg 86185977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86195977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86205977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86215977a007Smrg fi 86225977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 862399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 862499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 862599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 862699c4c48aSmrgthen : 862799c4c48aSmrg printf %s "(cached) " >&6 862899c4c48aSmrgelse $as_nop 86295977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86305977a007Smrg/* end confdefs.h. */ 86315977a007Smrgint i; 86325977a007Smrg_ACEOF 863399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 863499c4c48aSmrgthen : 86355977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 863699c4c48aSmrgelse $as_nop 86375977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 86385977a007Smrgfi 863999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 86405977a007Smrgfi 864199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 864299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 86435977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 86445977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86455977a007Smrgfi 86465977a007Smrg 86475977a007Smrgfound="no" 86485977a007Smrg 86495977a007Smrg if test $found = "no" ; then 86508a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86515977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86525977a007Smrg fi 86535977a007Smrg 86548a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 86555977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86565977a007Smrg fi 86575977a007Smrg 86585977a007Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 86595977a007Smrg 866099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 866199c4c48aSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 86628a355152Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 866399c4c48aSmrg if eval test \${$cacheid+y} 866499c4c48aSmrgthen : 866599c4c48aSmrg printf %s "(cached) " >&6 866699c4c48aSmrgelse $as_nop 86675977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86685977a007Smrg/* end confdefs.h. */ 86695977a007Smrgint i; 86705977a007Smrgint 867199c4c48aSmrgmain (void) 86725977a007Smrg{ 86735977a007Smrg 86745977a007Smrg ; 86755977a007Smrg return 0; 86765977a007Smrg} 86775977a007Smrg_ACEOF 867899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 867999c4c48aSmrgthen : 86805977a007Smrg eval $cacheid=yes 868199c4c48aSmrgelse $as_nop 86825977a007Smrg eval $cacheid=no 86835977a007Smrgfi 868499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 86855977a007Smrg conftest$ac_exeext conftest.$ac_ext 86865977a007Smrgfi 86875977a007Smrg 86885977a007Smrg 86895977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86905977a007Smrg 86915977a007Smrg eval supported=\$$cacheid 869299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 869399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 86945977a007Smrg if test "$supported" = "yes" ; then 86955977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 86965977a007Smrg found="yes" 86975977a007Smrg fi 86985977a007Smrg fi 86995977a007Smrg 87005977a007Smrg if test $found = "no" ; then 87018a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87025977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87035977a007Smrg fi 87045977a007Smrg 87058a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 87065977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87075977a007Smrg fi 87085977a007Smrg 87095977a007Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 87105977a007Smrg 871199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 871299c4c48aSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 87138a355152Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 871499c4c48aSmrg if eval test \${$cacheid+y} 871599c4c48aSmrgthen : 871699c4c48aSmrg printf %s "(cached) " >&6 871799c4c48aSmrgelse $as_nop 87185977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87195977a007Smrg/* end confdefs.h. */ 87205977a007Smrgint i; 87215977a007Smrgint 872299c4c48aSmrgmain (void) 87235977a007Smrg{ 87245977a007Smrg 87255977a007Smrg ; 87265977a007Smrg return 0; 87275977a007Smrg} 87285977a007Smrg_ACEOF 872999c4c48aSmrgif ac_fn_c_try_link "$LINENO" 873099c4c48aSmrgthen : 87315977a007Smrg eval $cacheid=yes 873299c4c48aSmrgelse $as_nop 87335977a007Smrg eval $cacheid=no 87345977a007Smrgfi 873599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 87365977a007Smrg conftest$ac_exeext conftest.$ac_ext 87375977a007Smrgfi 87385977a007Smrg 87395977a007Smrg 87405977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87415977a007Smrg 87425977a007Smrg eval supported=\$$cacheid 874399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 874499c4c48aSmrgprintf "%s\n" "$supported" >&6; } 87455977a007Smrg if test "$supported" = "yes" ; then 87465977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 87475977a007Smrg found="yes" 87485977a007Smrg fi 87495977a007Smrg fi 87505977a007Smrg 87515977a007Smrg 87525977a007Smrg 87535977a007Smrg 87545977a007Smrg 87555977a007Smrg 87565977a007Smrg 87575977a007Smrg 87585977a007Smrg 87595977a007Smrg 87605977a007Smrg 87615977a007Smrg 87625977a007Smrg 87635977a007Smrg 87645977a007Smrg 87655977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87665977a007Smrg 87675977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87685977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 876999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 877099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 877199c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 877299c4c48aSmrgthen : 877399c4c48aSmrg printf %s "(cached) " >&6 877499c4c48aSmrgelse $as_nop 87755977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87765977a007Smrg/* end confdefs.h. */ 87775977a007Smrgint i; 87785977a007Smrg_ACEOF 877999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 878099c4c48aSmrgthen : 87815977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 878299c4c48aSmrgelse $as_nop 87835977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 87845977a007Smrgfi 878599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 87865977a007Smrgfi 878799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 878899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87895977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87905977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87915977a007Smrgfi 87925977a007Smrg 87935977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87945977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87965977a007Smrg fi 87975977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 879899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 879999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 880099c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 880199c4c48aSmrgthen : 880299c4c48aSmrg printf %s "(cached) " >&6 880399c4c48aSmrgelse $as_nop 88045977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88055977a007Smrg/* end confdefs.h. */ 88065977a007Smrgint i; 88075977a007Smrg_ACEOF 880899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 880999c4c48aSmrgthen : 88105977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 881199c4c48aSmrgelse $as_nop 88125977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88135977a007Smrgfi 881499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 88155977a007Smrgfi 881699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 881799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88185977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88195977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88205977a007Smrgfi 88215977a007Smrg 88225977a007Smrgfound="no" 88235977a007Smrg 88245977a007Smrg if test $found = "no" ; then 88258a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88265977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88275977a007Smrg fi 88285977a007Smrg 88298a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 88305977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88315977a007Smrg fi 88325977a007Smrg 88335977a007Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 88345977a007Smrg 883599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 883699c4c48aSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 88378a355152Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 883899c4c48aSmrg if eval test \${$cacheid+y} 883999c4c48aSmrgthen : 884099c4c48aSmrg printf %s "(cached) " >&6 884199c4c48aSmrgelse $as_nop 88425977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88435977a007Smrg/* end confdefs.h. */ 88445977a007Smrgint i; 88455977a007Smrgint 884699c4c48aSmrgmain (void) 88475977a007Smrg{ 88485977a007Smrg 88495977a007Smrg ; 88505977a007Smrg return 0; 88515977a007Smrg} 88525977a007Smrg_ACEOF 885399c4c48aSmrgif ac_fn_c_try_link "$LINENO" 885499c4c48aSmrgthen : 88555977a007Smrg eval $cacheid=yes 885699c4c48aSmrgelse $as_nop 88575977a007Smrg eval $cacheid=no 88585977a007Smrgfi 885999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 88605977a007Smrg conftest$ac_exeext conftest.$ac_ext 88615977a007Smrgfi 88625977a007Smrg 88635977a007Smrg 88645977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88655977a007Smrg 88665977a007Smrg eval supported=\$$cacheid 886799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 886899c4c48aSmrgprintf "%s\n" "$supported" >&6; } 88695977a007Smrg if test "$supported" = "yes" ; then 88705977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 88715977a007Smrg found="yes" 88725977a007Smrg fi 88735977a007Smrg fi 88745977a007Smrg 88755977a007Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 88765977a007Smrgelse 887799c4c48aSmrg{ 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 887899c4c48aSmrgprintf "%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;} 88795977a007Smrg 88805977a007Smrg 88815977a007Smrg 88825977a007Smrg 88835977a007Smrg 88845977a007Smrg 88855977a007Smrg 88865977a007Smrg 88875977a007Smrg 88885977a007Smrg 88895977a007Smrg 88905977a007Smrg 88915977a007Smrg 88925977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88935977a007Smrg 88945977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88955977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 889699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 889799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 889899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 889999c4c48aSmrgthen : 890099c4c48aSmrg printf %s "(cached) " >&6 890199c4c48aSmrgelse $as_nop 89025977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89035977a007Smrg/* end confdefs.h. */ 89045977a007Smrgint i; 89055977a007Smrg_ACEOF 890699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 890799c4c48aSmrgthen : 89085977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 890999c4c48aSmrgelse $as_nop 89105977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 89115977a007Smrgfi 891299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 89135977a007Smrgfi 891499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 891599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89165977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89175977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89185977a007Smrgfi 89195977a007Smrg 89205977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89215977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89225977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89235977a007Smrg fi 89245977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 892599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 892699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 892799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 892899c4c48aSmrgthen : 892999c4c48aSmrg printf %s "(cached) " >&6 893099c4c48aSmrgelse $as_nop 89315977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89325977a007Smrg/* end confdefs.h. */ 89335977a007Smrgint i; 89345977a007Smrg_ACEOF 893599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 893699c4c48aSmrgthen : 89375977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 893899c4c48aSmrgelse $as_nop 89395977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 89405977a007Smrgfi 894199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 89425977a007Smrgfi 894399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 894499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 89455977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 89465977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89475977a007Smrgfi 89485977a007Smrg 89495977a007Smrgfound="no" 89505977a007Smrg 89515977a007Smrg if test $found = "no" ; then 89528a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89535977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89545977a007Smrg fi 89555977a007Smrg 89568a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 89575977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89585977a007Smrg fi 89595977a007Smrg 89605977a007Smrg CFLAGS="$CFLAGS -Wimplicit" 89615977a007Smrg 896299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 896399c4c48aSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 89645977a007Smrg cacheid=xorg_cv_cc_flag__Wimplicit 896599c4c48aSmrg if eval test \${$cacheid+y} 896699c4c48aSmrgthen : 896799c4c48aSmrg printf %s "(cached) " >&6 896899c4c48aSmrgelse $as_nop 89695977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89705977a007Smrg/* end confdefs.h. */ 89715977a007Smrgint i; 89725977a007Smrgint 897399c4c48aSmrgmain (void) 89745977a007Smrg{ 89755977a007Smrg 89765977a007Smrg ; 89775977a007Smrg return 0; 89785977a007Smrg} 89795977a007Smrg_ACEOF 898099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 898199c4c48aSmrgthen : 89825977a007Smrg eval $cacheid=yes 898399c4c48aSmrgelse $as_nop 89845977a007Smrg eval $cacheid=no 89855977a007Smrgfi 898699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 89875977a007Smrg conftest$ac_exeext conftest.$ac_ext 89885977a007Smrgfi 89895977a007Smrg 89905977a007Smrg 89915977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89925977a007Smrg 89935977a007Smrg eval supported=\$$cacheid 899499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 899599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 89965977a007Smrg if test "$supported" = "yes" ; then 89975977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 89985977a007Smrg found="yes" 89995977a007Smrg fi 90005977a007Smrg fi 90015977a007Smrg 90025977a007Smrg 90035977a007Smrg 90045977a007Smrg 90055977a007Smrg 90065977a007Smrg 90075977a007Smrg 90085977a007Smrg 90095977a007Smrg 90105977a007Smrg 90115977a007Smrg 90125977a007Smrg 90135977a007Smrg 90145977a007Smrg 90155977a007Smrg 90165977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 90175977a007Smrg 90185977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90195977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 902099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 902199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 902299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 902399c4c48aSmrgthen : 902499c4c48aSmrg printf %s "(cached) " >&6 902599c4c48aSmrgelse $as_nop 90265977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90275977a007Smrg/* end confdefs.h. */ 90285977a007Smrgint i; 90295977a007Smrg_ACEOF 903099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 903199c4c48aSmrgthen : 90325977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 903399c4c48aSmrgelse $as_nop 90345977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 90355977a007Smrgfi 903699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 90375977a007Smrgfi 903899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 903999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90405977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 90415977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90425977a007Smrgfi 90435977a007Smrg 90445977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 90455977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90465977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90475977a007Smrg fi 90485977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 904999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 905099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 905199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 905299c4c48aSmrgthen : 905399c4c48aSmrg printf %s "(cached) " >&6 905499c4c48aSmrgelse $as_nop 90555977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90565977a007Smrg/* end confdefs.h. */ 90575977a007Smrgint i; 90585977a007Smrg_ACEOF 905999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 906099c4c48aSmrgthen : 90615977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 906299c4c48aSmrgelse $as_nop 90635977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 90645977a007Smrgfi 906599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 90665977a007Smrgfi 906799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 906899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90695977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90705977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90715977a007Smrgfi 90725977a007Smrg 90735977a007Smrgfound="no" 90745977a007Smrg 90755977a007Smrg if test $found = "no" ; then 90768a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90775977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90785977a007Smrg fi 90795977a007Smrg 90808a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 90815977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90825977a007Smrg fi 90835977a007Smrg 90845977a007Smrg CFLAGS="$CFLAGS -Wnonnull" 90855977a007Smrg 908699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 908799c4c48aSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 90885977a007Smrg cacheid=xorg_cv_cc_flag__Wnonnull 908999c4c48aSmrg if eval test \${$cacheid+y} 909099c4c48aSmrgthen : 909199c4c48aSmrg printf %s "(cached) " >&6 909299c4c48aSmrgelse $as_nop 90935977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90945977a007Smrg/* end confdefs.h. */ 90955977a007Smrgint i; 90965977a007Smrgint 909799c4c48aSmrgmain (void) 90985977a007Smrg{ 90995977a007Smrg 91005977a007Smrg ; 91015977a007Smrg return 0; 91025977a007Smrg} 91035977a007Smrg_ACEOF 910499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 910599c4c48aSmrgthen : 91065977a007Smrg eval $cacheid=yes 910799c4c48aSmrgelse $as_nop 91085977a007Smrg eval $cacheid=no 91095977a007Smrgfi 911099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 91115977a007Smrg conftest$ac_exeext conftest.$ac_ext 91125977a007Smrgfi 91135977a007Smrg 91145977a007Smrg 91155977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91165977a007Smrg 91175977a007Smrg eval supported=\$$cacheid 911899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 911999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 91205977a007Smrg if test "$supported" = "yes" ; then 91215977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 91225977a007Smrg found="yes" 91235977a007Smrg fi 91245977a007Smrg fi 91255977a007Smrg 91265977a007Smrg 91275977a007Smrg 91285977a007Smrg 91295977a007Smrg 91305977a007Smrg 91315977a007Smrg 91325977a007Smrg 91335977a007Smrg 91345977a007Smrg 91355977a007Smrg 91365977a007Smrg 91375977a007Smrg 91385977a007Smrg 91395977a007Smrg 91405977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 91415977a007Smrg 91425977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 91435977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 914499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 914599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 914699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 914799c4c48aSmrgthen : 914899c4c48aSmrg printf %s "(cached) " >&6 914999c4c48aSmrgelse $as_nop 91505977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91515977a007Smrg/* end confdefs.h. */ 91525977a007Smrgint i; 91535977a007Smrg_ACEOF 915499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 915599c4c48aSmrgthen : 91565977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 915799c4c48aSmrgelse $as_nop 91585977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 91595977a007Smrgfi 916099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 91615977a007Smrgfi 916299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 916399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91645977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91665977a007Smrgfi 91675977a007Smrg 91685977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91695977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91705977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91715977a007Smrg fi 91725977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 917399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 917499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 917599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 917699c4c48aSmrgthen : 917799c4c48aSmrg printf %s "(cached) " >&6 917899c4c48aSmrgelse $as_nop 91795977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91805977a007Smrg/* end confdefs.h. */ 91815977a007Smrgint i; 91825977a007Smrg_ACEOF 918399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 918499c4c48aSmrgthen : 91855977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 918699c4c48aSmrgelse $as_nop 91875977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91885977a007Smrgfi 918999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 91905977a007Smrgfi 919199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 919299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91935977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91945977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91955977a007Smrgfi 91965977a007Smrg 91975977a007Smrgfound="no" 91985977a007Smrg 91995977a007Smrg if test $found = "no" ; then 92008a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92015977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92025977a007Smrg fi 92035977a007Smrg 92048a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 92055977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92065977a007Smrg fi 92075977a007Smrg 92085977a007Smrg CFLAGS="$CFLAGS -Winit-self" 92095977a007Smrg 921099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 921199c4c48aSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 92125977a007Smrg cacheid=xorg_cv_cc_flag__Winit_self 921399c4c48aSmrg if eval test \${$cacheid+y} 921499c4c48aSmrgthen : 921599c4c48aSmrg printf %s "(cached) " >&6 921699c4c48aSmrgelse $as_nop 92175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92185977a007Smrg/* end confdefs.h. */ 92195977a007Smrgint i; 92205977a007Smrgint 922199c4c48aSmrgmain (void) 92225977a007Smrg{ 92235977a007Smrg 92245977a007Smrg ; 92255977a007Smrg return 0; 92265977a007Smrg} 92275977a007Smrg_ACEOF 922899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 922999c4c48aSmrgthen : 92305977a007Smrg eval $cacheid=yes 923199c4c48aSmrgelse $as_nop 92325977a007Smrg eval $cacheid=no 92335977a007Smrgfi 923499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 92355977a007Smrg conftest$ac_exeext conftest.$ac_ext 92365977a007Smrgfi 92375977a007Smrg 92385977a007Smrg 92395977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92405977a007Smrg 92415977a007Smrg eval supported=\$$cacheid 924299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 924399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 92445977a007Smrg if test "$supported" = "yes" ; then 92455977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 92465977a007Smrg found="yes" 92475977a007Smrg fi 92485977a007Smrg fi 92495977a007Smrg 92505977a007Smrg 92515977a007Smrg 92525977a007Smrg 92535977a007Smrg 92545977a007Smrg 92555977a007Smrg 92565977a007Smrg 92575977a007Smrg 92585977a007Smrg 92595977a007Smrg 92605977a007Smrg 92615977a007Smrg 92625977a007Smrg 92635977a007Smrg 92645977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 92655977a007Smrg 92665977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92675977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 926899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 926999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 927099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 927199c4c48aSmrgthen : 927299c4c48aSmrg printf %s "(cached) " >&6 927399c4c48aSmrgelse $as_nop 92745977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92755977a007Smrg/* end confdefs.h. */ 92765977a007Smrgint i; 92775977a007Smrg_ACEOF 927899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 927999c4c48aSmrgthen : 92805977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 928199c4c48aSmrgelse $as_nop 92825977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 92835977a007Smrgfi 928499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 92855977a007Smrgfi 928699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 928799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92885977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92895977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92905977a007Smrgfi 92915977a007Smrg 92925977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92935977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92945977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92955977a007Smrg fi 92965977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 929799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 929899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 929999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 930099c4c48aSmrgthen : 930199c4c48aSmrg printf %s "(cached) " >&6 930299c4c48aSmrgelse $as_nop 93035977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93045977a007Smrg/* end confdefs.h. */ 93055977a007Smrgint i; 93065977a007Smrg_ACEOF 930799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 930899c4c48aSmrgthen : 93095977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 931099c4c48aSmrgelse $as_nop 93115977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 93125977a007Smrgfi 931399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 93145977a007Smrgfi 931599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 931699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93175977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 93185977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93195977a007Smrgfi 93205977a007Smrg 93215977a007Smrgfound="no" 93225977a007Smrg 93235977a007Smrg if test $found = "no" ; then 93248a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93255977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93265977a007Smrg fi 93275977a007Smrg 93288a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 93295977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93305977a007Smrg fi 93315977a007Smrg 93325977a007Smrg CFLAGS="$CFLAGS -Wmain" 93335977a007Smrg 933499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 933599c4c48aSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 93365977a007Smrg cacheid=xorg_cv_cc_flag__Wmain 933799c4c48aSmrg if eval test \${$cacheid+y} 933899c4c48aSmrgthen : 933999c4c48aSmrg printf %s "(cached) " >&6 934099c4c48aSmrgelse $as_nop 93415977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93425977a007Smrg/* end confdefs.h. */ 93435977a007Smrgint i; 93445977a007Smrgint 934599c4c48aSmrgmain (void) 93465977a007Smrg{ 93475977a007Smrg 93485977a007Smrg ; 93495977a007Smrg return 0; 93505977a007Smrg} 93515977a007Smrg_ACEOF 935299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 935399c4c48aSmrgthen : 93545977a007Smrg eval $cacheid=yes 935599c4c48aSmrgelse $as_nop 93565977a007Smrg eval $cacheid=no 93575977a007Smrgfi 935899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 93595977a007Smrg conftest$ac_exeext conftest.$ac_ext 93605977a007Smrgfi 93615977a007Smrg 93625977a007Smrg 93635977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93645977a007Smrg 93655977a007Smrg eval supported=\$$cacheid 936699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 936799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 93685977a007Smrg if test "$supported" = "yes" ; then 93695977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 93705977a007Smrg found="yes" 93715977a007Smrg fi 93725977a007Smrg fi 93735977a007Smrg 93745977a007Smrg 93755977a007Smrg 93765977a007Smrg 93775977a007Smrg 93785977a007Smrg 93795977a007Smrg 93805977a007Smrg 93815977a007Smrg 93825977a007Smrg 93835977a007Smrg 93845977a007Smrg 93855977a007Smrg 93865977a007Smrg 93875977a007Smrg 93885977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93895977a007Smrg 93905977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93915977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 939299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 939399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 939499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 939599c4c48aSmrgthen : 939699c4c48aSmrg printf %s "(cached) " >&6 939799c4c48aSmrgelse $as_nop 93985977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93995977a007Smrg/* end confdefs.h. */ 94005977a007Smrgint i; 94015977a007Smrg_ACEOF 940299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 940399c4c48aSmrgthen : 94045977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 940599c4c48aSmrgelse $as_nop 94065977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 94075977a007Smrgfi 940899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 94095977a007Smrgfi 941099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 941199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94125977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 94135977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94145977a007Smrgfi 94155977a007Smrg 94165977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94175977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94185977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94195977a007Smrg fi 94205977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 942199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 942299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 942399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 942499c4c48aSmrgthen : 942599c4c48aSmrg printf %s "(cached) " >&6 942699c4c48aSmrgelse $as_nop 94275977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94285977a007Smrg/* end confdefs.h. */ 94295977a007Smrgint i; 94305977a007Smrg_ACEOF 943199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 943299c4c48aSmrgthen : 94335977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 943499c4c48aSmrgelse $as_nop 94355977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 94365977a007Smrgfi 943799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 94385977a007Smrgfi 943999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 944099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94415977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 94425977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94435977a007Smrgfi 94445977a007Smrg 94455977a007Smrgfound="no" 94465977a007Smrg 94475977a007Smrg if test $found = "no" ; then 94488a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94495977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94505977a007Smrg fi 94515977a007Smrg 94528a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 94535977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94545977a007Smrg fi 94555977a007Smrg 94565977a007Smrg CFLAGS="$CFLAGS -Wmissing-braces" 94575977a007Smrg 945899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 945999c4c48aSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 94605977a007Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 946199c4c48aSmrg if eval test \${$cacheid+y} 946299c4c48aSmrgthen : 946399c4c48aSmrg printf %s "(cached) " >&6 946499c4c48aSmrgelse $as_nop 94655977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94665977a007Smrg/* end confdefs.h. */ 94675977a007Smrgint i; 94685977a007Smrgint 946999c4c48aSmrgmain (void) 94705977a007Smrg{ 94715977a007Smrg 94725977a007Smrg ; 94735977a007Smrg return 0; 94745977a007Smrg} 94755977a007Smrg_ACEOF 947699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 947799c4c48aSmrgthen : 94785977a007Smrg eval $cacheid=yes 947999c4c48aSmrgelse $as_nop 94805977a007Smrg eval $cacheid=no 94815977a007Smrgfi 948299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 94835977a007Smrg conftest$ac_exeext conftest.$ac_ext 94845977a007Smrgfi 94855977a007Smrg 94865977a007Smrg 94875977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94885977a007Smrg 94895977a007Smrg eval supported=\$$cacheid 949099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 949199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 94925977a007Smrg if test "$supported" = "yes" ; then 94935977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 94945977a007Smrg found="yes" 94955977a007Smrg fi 94965977a007Smrg fi 94975977a007Smrg 94985977a007Smrg 94995977a007Smrg 95005977a007Smrg 95015977a007Smrg 95025977a007Smrg 95035977a007Smrg 95045977a007Smrg 95055977a007Smrg 95065977a007Smrg 95075977a007Smrg 95085977a007Smrg 95095977a007Smrg 95105977a007Smrg 95115977a007Smrg 95125977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 95135977a007Smrg 95145977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 95155977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 951699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 951799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 951899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 951999c4c48aSmrgthen : 952099c4c48aSmrg printf %s "(cached) " >&6 952199c4c48aSmrgelse $as_nop 95225977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95235977a007Smrg/* end confdefs.h. */ 95245977a007Smrgint i; 95255977a007Smrg_ACEOF 952699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 952799c4c48aSmrgthen : 95285977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 952999c4c48aSmrgelse $as_nop 95305977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 95315977a007Smrgfi 953299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 95335977a007Smrgfi 953499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 953599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95365977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95375977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95385977a007Smrgfi 95395977a007Smrg 95405977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95415977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95425977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95435977a007Smrg fi 95445977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 954599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 954699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 954799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 954899c4c48aSmrgthen : 954999c4c48aSmrg printf %s "(cached) " >&6 955099c4c48aSmrgelse $as_nop 95515977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95525977a007Smrg/* end confdefs.h. */ 95535977a007Smrgint i; 95545977a007Smrg_ACEOF 955599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 955699c4c48aSmrgthen : 95575977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 955899c4c48aSmrgelse $as_nop 95595977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95605977a007Smrgfi 956199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 95625977a007Smrgfi 956399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 956499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95655977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95665977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95675977a007Smrgfi 95685977a007Smrg 95695977a007Smrgfound="no" 95705977a007Smrg 95715977a007Smrg if test $found = "no" ; then 95728a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95735977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95745977a007Smrg fi 95755977a007Smrg 95768a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 95775977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95785977a007Smrg fi 95795977a007Smrg 95805977a007Smrg CFLAGS="$CFLAGS -Wsequence-point" 95815977a007Smrg 958299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 958399c4c48aSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 95845977a007Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 958599c4c48aSmrg if eval test \${$cacheid+y} 958699c4c48aSmrgthen : 958799c4c48aSmrg printf %s "(cached) " >&6 958899c4c48aSmrgelse $as_nop 95895977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95905977a007Smrg/* end confdefs.h. */ 95915977a007Smrgint i; 95925977a007Smrgint 959399c4c48aSmrgmain (void) 95945977a007Smrg{ 95955977a007Smrg 95965977a007Smrg ; 95975977a007Smrg return 0; 95985977a007Smrg} 95995977a007Smrg_ACEOF 960099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 960199c4c48aSmrgthen : 96025977a007Smrg eval $cacheid=yes 960399c4c48aSmrgelse $as_nop 96045977a007Smrg eval $cacheid=no 96055977a007Smrgfi 960699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 96075977a007Smrg conftest$ac_exeext conftest.$ac_ext 96085977a007Smrgfi 96095977a007Smrg 96105977a007Smrg 96115977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96125977a007Smrg 96135977a007Smrg eval supported=\$$cacheid 961499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 961599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 96165977a007Smrg if test "$supported" = "yes" ; then 96175977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 96185977a007Smrg found="yes" 96195977a007Smrg fi 96205977a007Smrg fi 96215977a007Smrg 96225977a007Smrg 96235977a007Smrg 96245977a007Smrg 96255977a007Smrg 96265977a007Smrg 96275977a007Smrg 96285977a007Smrg 96295977a007Smrg 96305977a007Smrg 96315977a007Smrg 96325977a007Smrg 96335977a007Smrg 96345977a007Smrg 96355977a007Smrg 96365977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 96375977a007Smrg 96385977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 96395977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 964099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 964199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 964299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 964399c4c48aSmrgthen : 964499c4c48aSmrg printf %s "(cached) " >&6 964599c4c48aSmrgelse $as_nop 96465977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96475977a007Smrg/* end confdefs.h. */ 96485977a007Smrgint i; 96495977a007Smrg_ACEOF 965099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 965199c4c48aSmrgthen : 96525977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 965399c4c48aSmrgelse $as_nop 96545977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 96555977a007Smrgfi 965699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 96575977a007Smrgfi 965899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 965999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96605977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96615977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96625977a007Smrgfi 96635977a007Smrg 96645977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96655977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96665977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96675977a007Smrg fi 96685977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 966999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 967099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 967199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 967299c4c48aSmrgthen : 967399c4c48aSmrg printf %s "(cached) " >&6 967499c4c48aSmrgelse $as_nop 96755977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96765977a007Smrg/* end confdefs.h. */ 96775977a007Smrgint i; 96785977a007Smrg_ACEOF 967999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 968099c4c48aSmrgthen : 96815977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 968299c4c48aSmrgelse $as_nop 96835977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 96845977a007Smrgfi 968599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 96865977a007Smrgfi 968799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 968899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96895977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96905977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96915977a007Smrgfi 96925977a007Smrg 96935977a007Smrgfound="no" 96945977a007Smrg 96955977a007Smrg if test $found = "no" ; then 96968a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96975977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96985977a007Smrg fi 96995977a007Smrg 97008a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 97015977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97025977a007Smrg fi 97035977a007Smrg 97045977a007Smrg CFLAGS="$CFLAGS -Wreturn-type" 97055977a007Smrg 970699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 970799c4c48aSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 97085977a007Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 970999c4c48aSmrg if eval test \${$cacheid+y} 971099c4c48aSmrgthen : 971199c4c48aSmrg printf %s "(cached) " >&6 971299c4c48aSmrgelse $as_nop 97135977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97145977a007Smrg/* end confdefs.h. */ 97155977a007Smrgint i; 97165977a007Smrgint 971799c4c48aSmrgmain (void) 97185977a007Smrg{ 97195977a007Smrg 97205977a007Smrg ; 97215977a007Smrg return 0; 97225977a007Smrg} 97235977a007Smrg_ACEOF 972499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 972599c4c48aSmrgthen : 97265977a007Smrg eval $cacheid=yes 972799c4c48aSmrgelse $as_nop 97285977a007Smrg eval $cacheid=no 97295977a007Smrgfi 973099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 97315977a007Smrg conftest$ac_exeext conftest.$ac_ext 97325977a007Smrgfi 97335977a007Smrg 97345977a007Smrg 97355977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97365977a007Smrg 97375977a007Smrg eval supported=\$$cacheid 973899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 973999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 97405977a007Smrg if test "$supported" = "yes" ; then 97415977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 97425977a007Smrg found="yes" 97435977a007Smrg fi 97445977a007Smrg fi 97455977a007Smrg 97465977a007Smrg 97475977a007Smrg 97485977a007Smrg 97495977a007Smrg 97505977a007Smrg 97515977a007Smrg 97525977a007Smrg 97535977a007Smrg 97545977a007Smrg 97555977a007Smrg 97565977a007Smrg 97575977a007Smrg 97585977a007Smrg 97595977a007Smrg 97605977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 97615977a007Smrg 97625977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97635977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 976499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 976599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 976699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 976799c4c48aSmrgthen : 976899c4c48aSmrg printf %s "(cached) " >&6 976999c4c48aSmrgelse $as_nop 97705977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97715977a007Smrg/* end confdefs.h. */ 97725977a007Smrgint i; 97735977a007Smrg_ACEOF 977499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 977599c4c48aSmrgthen : 97765977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 977799c4c48aSmrgelse $as_nop 97785977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 97795977a007Smrgfi 978099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 97815977a007Smrgfi 978299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 978399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97845977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 97855977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97865977a007Smrgfi 97875977a007Smrg 97885977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97895977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97905977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97915977a007Smrg fi 97925977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 979399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 979499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 979599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 979699c4c48aSmrgthen : 979799c4c48aSmrg printf %s "(cached) " >&6 979899c4c48aSmrgelse $as_nop 97995977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98005977a007Smrg/* end confdefs.h. */ 98015977a007Smrgint i; 98025977a007Smrg_ACEOF 980399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 980499c4c48aSmrgthen : 98055977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 980699c4c48aSmrgelse $as_nop 98075977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98085977a007Smrgfi 980999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 98105977a007Smrgfi 981199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 981299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98135977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98145977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98155977a007Smrgfi 98165977a007Smrg 98175977a007Smrgfound="no" 98185977a007Smrg 98195977a007Smrg if test $found = "no" ; then 98208a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98215977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98225977a007Smrg fi 98235977a007Smrg 98248a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 98255977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98265977a007Smrg fi 98275977a007Smrg 98285977a007Smrg CFLAGS="$CFLAGS -Wtrigraphs" 98295977a007Smrg 983099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 983199c4c48aSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 98325977a007Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 983399c4c48aSmrg if eval test \${$cacheid+y} 983499c4c48aSmrgthen : 983599c4c48aSmrg printf %s "(cached) " >&6 983699c4c48aSmrgelse $as_nop 98375977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98385977a007Smrg/* end confdefs.h. */ 98395977a007Smrgint i; 98405977a007Smrgint 984199c4c48aSmrgmain (void) 98425977a007Smrg{ 98435977a007Smrg 98445977a007Smrg ; 98455977a007Smrg return 0; 98465977a007Smrg} 98475977a007Smrg_ACEOF 984899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 984999c4c48aSmrgthen : 98505977a007Smrg eval $cacheid=yes 985199c4c48aSmrgelse $as_nop 98525977a007Smrg eval $cacheid=no 98535977a007Smrgfi 985499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 98555977a007Smrg conftest$ac_exeext conftest.$ac_ext 98565977a007Smrgfi 98575977a007Smrg 98585977a007Smrg 98595977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98605977a007Smrg 98615977a007Smrg eval supported=\$$cacheid 986299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 986399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 98645977a007Smrg if test "$supported" = "yes" ; then 98655977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 98665977a007Smrg found="yes" 98675977a007Smrg fi 98685977a007Smrg fi 98695977a007Smrg 98705977a007Smrg 98715977a007Smrg 98725977a007Smrg 98735977a007Smrg 98745977a007Smrg 98755977a007Smrg 98765977a007Smrg 98775977a007Smrg 98785977a007Smrg 98795977a007Smrg 98805977a007Smrg 98815977a007Smrg 98825977a007Smrg 98835977a007Smrg 98845977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98855977a007Smrg 98865977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98875977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 988899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 988999c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 989099c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 989199c4c48aSmrgthen : 989299c4c48aSmrg printf %s "(cached) " >&6 989399c4c48aSmrgelse $as_nop 98945977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98955977a007Smrg/* end confdefs.h. */ 98965977a007Smrgint i; 98975977a007Smrg_ACEOF 989899c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 989999c4c48aSmrgthen : 99005977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 990199c4c48aSmrgelse $as_nop 99025977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 99035977a007Smrgfi 990499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 99055977a007Smrgfi 990699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 990799c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99085977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99095977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99105977a007Smrgfi 99115977a007Smrg 99125977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99135977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99145977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99155977a007Smrg fi 99165977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 991799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 991899c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 991999c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 992099c4c48aSmrgthen : 992199c4c48aSmrg printf %s "(cached) " >&6 992299c4c48aSmrgelse $as_nop 99235977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99245977a007Smrg/* end confdefs.h. */ 99255977a007Smrgint i; 99265977a007Smrg_ACEOF 992799c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 992899c4c48aSmrgthen : 99295977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 993099c4c48aSmrgelse $as_nop 99315977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 99325977a007Smrgfi 993399c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 99345977a007Smrgfi 993599c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 993699c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99375977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 99385977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99395977a007Smrgfi 99405977a007Smrg 99415977a007Smrgfound="no" 99425977a007Smrg 99435977a007Smrg if test $found = "no" ; then 99448a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99455977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99465977a007Smrg fi 99475977a007Smrg 99488a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 99495977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99505977a007Smrg fi 99515977a007Smrg 99525977a007Smrg CFLAGS="$CFLAGS -Warray-bounds" 99535977a007Smrg 995499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 995599c4c48aSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 99565977a007Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 995799c4c48aSmrg if eval test \${$cacheid+y} 995899c4c48aSmrgthen : 995999c4c48aSmrg printf %s "(cached) " >&6 996099c4c48aSmrgelse $as_nop 99615977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99625977a007Smrg/* end confdefs.h. */ 99635977a007Smrgint i; 99645977a007Smrgint 996599c4c48aSmrgmain (void) 99665977a007Smrg{ 99675977a007Smrg 99685977a007Smrg ; 99695977a007Smrg return 0; 99705977a007Smrg} 99715977a007Smrg_ACEOF 997299c4c48aSmrgif ac_fn_c_try_link "$LINENO" 997399c4c48aSmrgthen : 99745977a007Smrg eval $cacheid=yes 997599c4c48aSmrgelse $as_nop 99765977a007Smrg eval $cacheid=no 99775977a007Smrgfi 997899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 99795977a007Smrg conftest$ac_exeext conftest.$ac_ext 99805977a007Smrgfi 99815977a007Smrg 99825977a007Smrg 99835977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99845977a007Smrg 99855977a007Smrg eval supported=\$$cacheid 998699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 998799c4c48aSmrgprintf "%s\n" "$supported" >&6; } 99885977a007Smrg if test "$supported" = "yes" ; then 99895977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 99905977a007Smrg found="yes" 99915977a007Smrg fi 99925977a007Smrg fi 99935977a007Smrg 99945977a007Smrg 99955977a007Smrg 99965977a007Smrg 99975977a007Smrg 99985977a007Smrg 99995977a007Smrg 100005977a007Smrg 100015977a007Smrg 100025977a007Smrg 100035977a007Smrg 100045977a007Smrg 100055977a007Smrg 100065977a007Smrg 100075977a007Smrg 100085977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 100095977a007Smrg 100105977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 100115977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1001299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1001399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1001499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1001599c4c48aSmrgthen : 1001699c4c48aSmrg printf %s "(cached) " >&6 1001799c4c48aSmrgelse $as_nop 100185977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100195977a007Smrg/* end confdefs.h. */ 100205977a007Smrgint i; 100215977a007Smrg_ACEOF 1002299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1002399c4c48aSmrgthen : 100245977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1002599c4c48aSmrgelse $as_nop 100265977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 100275977a007Smrgfi 1002899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 100295977a007Smrgfi 1003099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1003199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100325977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 100335977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100345977a007Smrgfi 100355977a007Smrg 100365977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100375977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100385977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100395977a007Smrg fi 100405977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1004199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1004299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1004399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1004499c4c48aSmrgthen : 1004599c4c48aSmrg printf %s "(cached) " >&6 1004699c4c48aSmrgelse $as_nop 100475977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100485977a007Smrg/* end confdefs.h. */ 100495977a007Smrgint i; 100505977a007Smrg_ACEOF 1005199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1005299c4c48aSmrgthen : 100535977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1005499c4c48aSmrgelse $as_nop 100555977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 100565977a007Smrgfi 1005799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 100585977a007Smrgfi 1005999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1006099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100615977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 100625977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100635977a007Smrgfi 100645977a007Smrg 100655977a007Smrgfound="no" 100665977a007Smrg 100675977a007Smrg if test $found = "no" ; then 100688a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100695977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100705977a007Smrg fi 100715977a007Smrg 100728a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 100735977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100745977a007Smrg fi 100755977a007Smrg 100765977a007Smrg CFLAGS="$CFLAGS -Wwrite-strings" 100775977a007Smrg 1007899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 1007999c4c48aSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 100805977a007Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 1008199c4c48aSmrg if eval test \${$cacheid+y} 1008299c4c48aSmrgthen : 1008399c4c48aSmrg printf %s "(cached) " >&6 1008499c4c48aSmrgelse $as_nop 100855977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100865977a007Smrg/* end confdefs.h. */ 100875977a007Smrgint i; 100885977a007Smrgint 1008999c4c48aSmrgmain (void) 100905977a007Smrg{ 100915977a007Smrg 100925977a007Smrg ; 100935977a007Smrg return 0; 100945977a007Smrg} 100955977a007Smrg_ACEOF 1009699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1009799c4c48aSmrgthen : 100985977a007Smrg eval $cacheid=yes 1009999c4c48aSmrgelse $as_nop 101005977a007Smrg eval $cacheid=no 101015977a007Smrgfi 1010299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 101035977a007Smrg conftest$ac_exeext conftest.$ac_ext 101045977a007Smrgfi 101055977a007Smrg 101065977a007Smrg 101075977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101085977a007Smrg 101095977a007Smrg eval supported=\$$cacheid 1011099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1011199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 101125977a007Smrg if test "$supported" = "yes" ; then 101135977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 101145977a007Smrg found="yes" 101155977a007Smrg fi 101165977a007Smrg fi 101175977a007Smrg 101185977a007Smrg 101195977a007Smrg 101205977a007Smrg 101215977a007Smrg 101225977a007Smrg 101235977a007Smrg 101245977a007Smrg 101255977a007Smrg 101265977a007Smrg 101275977a007Smrg 101285977a007Smrg 101295977a007Smrg 101305977a007Smrg 101315977a007Smrg 101325977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 101335977a007Smrg 101345977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101355977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1013699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1013799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1013899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1013999c4c48aSmrgthen : 1014099c4c48aSmrg printf %s "(cached) " >&6 1014199c4c48aSmrgelse $as_nop 101425977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101435977a007Smrg/* end confdefs.h. */ 101445977a007Smrgint i; 101455977a007Smrg_ACEOF 1014699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1014799c4c48aSmrgthen : 101485977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1014999c4c48aSmrgelse $as_nop 101505977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 101515977a007Smrgfi 1015299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 101535977a007Smrgfi 1015499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1015599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101565977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101575977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101585977a007Smrgfi 101595977a007Smrg 101605977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101615977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101625977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101635977a007Smrg fi 101645977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1016599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1016699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1016799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1016899c4c48aSmrgthen : 1016999c4c48aSmrg printf %s "(cached) " >&6 1017099c4c48aSmrgelse $as_nop 101715977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101725977a007Smrg/* end confdefs.h. */ 101735977a007Smrgint i; 101745977a007Smrg_ACEOF 1017599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1017699c4c48aSmrgthen : 101775977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1017899c4c48aSmrgelse $as_nop 101795977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 101805977a007Smrgfi 1018199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 101825977a007Smrgfi 1018399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1018499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101855977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101865977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101875977a007Smrgfi 101885977a007Smrg 101895977a007Smrgfound="no" 101905977a007Smrg 101915977a007Smrg if test $found = "no" ; then 101928a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101935977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101945977a007Smrg fi 101955977a007Smrg 101968a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 101975977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101985977a007Smrg fi 101995977a007Smrg 102005977a007Smrg CFLAGS="$CFLAGS -Waddress" 102015977a007Smrg 1020299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 1020399c4c48aSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 102045977a007Smrg cacheid=xorg_cv_cc_flag__Waddress 1020599c4c48aSmrg if eval test \${$cacheid+y} 1020699c4c48aSmrgthen : 1020799c4c48aSmrg printf %s "(cached) " >&6 1020899c4c48aSmrgelse $as_nop 102095977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102105977a007Smrg/* end confdefs.h. */ 102115977a007Smrgint i; 102125977a007Smrgint 1021399c4c48aSmrgmain (void) 102145977a007Smrg{ 102155977a007Smrg 102165977a007Smrg ; 102175977a007Smrg return 0; 102185977a007Smrg} 102195977a007Smrg_ACEOF 1022099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1022199c4c48aSmrgthen : 102225977a007Smrg eval $cacheid=yes 1022399c4c48aSmrgelse $as_nop 102245977a007Smrg eval $cacheid=no 102255977a007Smrgfi 1022699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 102275977a007Smrg conftest$ac_exeext conftest.$ac_ext 102285977a007Smrgfi 102295977a007Smrg 102305977a007Smrg 102315977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102325977a007Smrg 102335977a007Smrg eval supported=\$$cacheid 1023499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1023599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 102365977a007Smrg if test "$supported" = "yes" ; then 102375977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 102385977a007Smrg found="yes" 102395977a007Smrg fi 102405977a007Smrg fi 102415977a007Smrg 102425977a007Smrg 102435977a007Smrg 102445977a007Smrg 102455977a007Smrg 102465977a007Smrg 102475977a007Smrg 102485977a007Smrg 102495977a007Smrg 102505977a007Smrg 102515977a007Smrg 102525977a007Smrg 102535977a007Smrg 102545977a007Smrg 102555977a007Smrg 102565977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 102575977a007Smrg 102585977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 102595977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1026099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1026199c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1026299c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1026399c4c48aSmrgthen : 1026499c4c48aSmrg printf %s "(cached) " >&6 1026599c4c48aSmrgelse $as_nop 102665977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102675977a007Smrg/* end confdefs.h. */ 102685977a007Smrgint i; 102695977a007Smrg_ACEOF 1027099c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1027199c4c48aSmrgthen : 102725977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1027399c4c48aSmrgelse $as_nop 102745977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 102755977a007Smrgfi 1027699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 102775977a007Smrgfi 1027899c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1027999c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 102805977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 102815977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102825977a007Smrgfi 102835977a007Smrg 102845977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 102855977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102865977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102875977a007Smrg fi 102885977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1028999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1029099c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1029199c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1029299c4c48aSmrgthen : 1029399c4c48aSmrg printf %s "(cached) " >&6 1029499c4c48aSmrgelse $as_nop 102955977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102965977a007Smrg/* end confdefs.h. */ 102975977a007Smrgint i; 102985977a007Smrg_ACEOF 1029999c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1030099c4c48aSmrgthen : 103015977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1030299c4c48aSmrgelse $as_nop 103035977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 103045977a007Smrgfi 1030599c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 103065977a007Smrgfi 1030799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1030899c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103095977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 103105977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103115977a007Smrgfi 103125977a007Smrg 103135977a007Smrgfound="no" 103145977a007Smrg 103155977a007Smrg if test $found = "no" ; then 103168a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103175977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103185977a007Smrg fi 103195977a007Smrg 103208a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 103215977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103225977a007Smrg fi 103235977a007Smrg 103245977a007Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 103255977a007Smrg 1032699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 1032799c4c48aSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 103285977a007Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 1032999c4c48aSmrg if eval test \${$cacheid+y} 1033099c4c48aSmrgthen : 1033199c4c48aSmrg printf %s "(cached) " >&6 1033299c4c48aSmrgelse $as_nop 103335977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103345977a007Smrg/* end confdefs.h. */ 103355977a007Smrgint i; 103365977a007Smrgint 1033799c4c48aSmrgmain (void) 103385977a007Smrg{ 103395977a007Smrg 103405977a007Smrg ; 103415977a007Smrg return 0; 103425977a007Smrg} 103435977a007Smrg_ACEOF 1034499c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1034599c4c48aSmrgthen : 103465977a007Smrg eval $cacheid=yes 1034799c4c48aSmrgelse $as_nop 103485977a007Smrg eval $cacheid=no 103495977a007Smrgfi 1035099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 103515977a007Smrg conftest$ac_exeext conftest.$ac_ext 103525977a007Smrgfi 103535977a007Smrg 103545977a007Smrg 103555977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103565977a007Smrg 103575977a007Smrg eval supported=\$$cacheid 1035899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1035999c4c48aSmrgprintf "%s\n" "$supported" >&6; } 103605977a007Smrg if test "$supported" = "yes" ; then 103615977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 103625977a007Smrg found="yes" 103635977a007Smrg fi 103645977a007Smrg fi 103655977a007Smrg 103665977a007Smrg 103675977a007Smrg 103685977a007Smrg 103695977a007Smrg 103705977a007Smrg 103715977a007Smrg 103725977a007Smrg 103735977a007Smrg 103745977a007Smrg 103755977a007Smrg 103765977a007Smrg 103775977a007Smrg 103785977a007Smrg 103795977a007Smrg 103805977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 103815977a007Smrg 103825977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 103835977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1038499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1038599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1038699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1038799c4c48aSmrgthen : 1038899c4c48aSmrg printf %s "(cached) " >&6 1038999c4c48aSmrgelse $as_nop 103905977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103915977a007Smrg/* end confdefs.h. */ 103925977a007Smrgint i; 103935977a007Smrg_ACEOF 1039499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1039599c4c48aSmrgthen : 103965977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1039799c4c48aSmrgelse $as_nop 103985977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 103995977a007Smrgfi 1040099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 104015977a007Smrgfi 1040299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1040399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104045977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 104055977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104065977a007Smrgfi 104075977a007Smrg 104085977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 104095977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 104105977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104115977a007Smrg fi 104125977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1041399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1041499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1041599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1041699c4c48aSmrgthen : 1041799c4c48aSmrg printf %s "(cached) " >&6 1041899c4c48aSmrgelse $as_nop 104195977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104205977a007Smrg/* end confdefs.h. */ 104215977a007Smrgint i; 104225977a007Smrg_ACEOF 1042399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1042499c4c48aSmrgthen : 104255977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1042699c4c48aSmrgelse $as_nop 104275977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 104285977a007Smrgfi 1042999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 104305977a007Smrgfi 1043199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1043299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 104335977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 104345977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104355977a007Smrgfi 104365977a007Smrg 104375977a007Smrgfound="no" 104385977a007Smrg 104395977a007Smrg if test $found = "no" ; then 104408a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 104415977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104425977a007Smrg fi 104435977a007Smrg 104448a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 104455977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104465977a007Smrg fi 104475977a007Smrg 104485977a007Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 104495977a007Smrg 1045099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 1045199c4c48aSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 104525977a007Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1045399c4c48aSmrg if eval test \${$cacheid+y} 1045499c4c48aSmrgthen : 1045599c4c48aSmrg printf %s "(cached) " >&6 1045699c4c48aSmrgelse $as_nop 104575977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104585977a007Smrg/* end confdefs.h. */ 104595977a007Smrgint i; 104605977a007Smrgint 1046199c4c48aSmrgmain (void) 104625977a007Smrg{ 104635977a007Smrg 104645977a007Smrg ; 104655977a007Smrg return 0; 104665977a007Smrg} 104675977a007Smrg_ACEOF 1046899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1046999c4c48aSmrgthen : 104705977a007Smrg eval $cacheid=yes 1047199c4c48aSmrgelse $as_nop 104725977a007Smrg eval $cacheid=no 104735977a007Smrgfi 1047499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 104755977a007Smrg conftest$ac_exeext conftest.$ac_ext 104765977a007Smrgfi 104775977a007Smrg 104785977a007Smrg 104795977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 104805977a007Smrg 104815977a007Smrg eval supported=\$$cacheid 1048299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1048399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 104845977a007Smrg if test "$supported" = "yes" ; then 104855977a007Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 104865977a007Smrg found="yes" 104875977a007Smrg fi 104885977a007Smrg fi 104895977a007Smrg 104905977a007Smrg 104915977a007Smrgfi 104925977a007Smrg 104935977a007Smrg 104945977a007Smrg 104955977a007Smrg 104965977a007Smrg 104975977a007Smrg 104985977a007Smrg 104995977a007Smrg CWARNFLAGS="$BASE_CFLAGS" 105005977a007Smrg if test "x$GCC" = xyes ; then 105015977a007Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 105025977a007Smrg fi 105035977a007Smrg 105045977a007Smrg 105055977a007Smrg 105065977a007Smrg 105075977a007Smrg 105085977a007Smrg 105095977a007Smrg 105105977a007Smrg 105115977a007Smrg# Check whether --enable-strict-compilation was given. 1051299c4c48aSmrgif test ${enable_strict_compilation+y} 1051399c4c48aSmrgthen : 105145977a007Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1051599c4c48aSmrgelse $as_nop 105165977a007Smrg STRICT_COMPILE=no 105175977a007Smrgfi 105185977a007Smrg 105195977a007Smrg 105205977a007Smrg 105215977a007Smrg 105225977a007Smrg 105235977a007Smrg 105245977a007SmrgSTRICT_CFLAGS="" 105255977a007Smrg 105265977a007Smrg 105275977a007Smrg 105285977a007Smrg 105295977a007Smrg 105305977a007Smrg 105315977a007Smrg 105325977a007Smrg 105335977a007Smrg 105345977a007Smrg 105355977a007Smrg 105365977a007Smrg 105375977a007Smrg 105385977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 105395977a007Smrg 105405977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 105415977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1054299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1054399c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1054499c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1054599c4c48aSmrgthen : 1054699c4c48aSmrg printf %s "(cached) " >&6 1054799c4c48aSmrgelse $as_nop 105485977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 105495977a007Smrg/* end confdefs.h. */ 105505977a007Smrgint i; 105515977a007Smrg_ACEOF 1055299c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1055399c4c48aSmrgthen : 105545977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1055599c4c48aSmrgelse $as_nop 105565977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 105575977a007Smrgfi 1055899c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 105595977a007Smrgfi 1056099c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1056199c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 105625977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 105635977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 105645977a007Smrgfi 105655977a007Smrg 105665977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 105675977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 105685977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105695977a007Smrg fi 105705977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1057199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1057299c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1057399c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1057499c4c48aSmrgthen : 1057599c4c48aSmrg printf %s "(cached) " >&6 1057699c4c48aSmrgelse $as_nop 105775977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 105785977a007Smrg/* end confdefs.h. */ 105795977a007Smrgint i; 105805977a007Smrg_ACEOF 1058199c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1058299c4c48aSmrgthen : 105835977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1058499c4c48aSmrgelse $as_nop 105855977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 105865977a007Smrgfi 1058799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 105885977a007Smrgfi 1058999c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1059099c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 105915977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 105925977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 105935977a007Smrgfi 105945977a007Smrg 105955977a007Smrgfound="no" 105965977a007Smrg 105975977a007Smrg if test $found = "no" ; then 105988a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 105995977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106005977a007Smrg fi 106015977a007Smrg 106028a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 106035977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 106045977a007Smrg fi 106055977a007Smrg 106065977a007Smrg CFLAGS="$CFLAGS -pedantic" 106075977a007Smrg 1060899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 1060999c4c48aSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 106105977a007Smrg cacheid=xorg_cv_cc_flag__pedantic 1061199c4c48aSmrg if eval test \${$cacheid+y} 1061299c4c48aSmrgthen : 1061399c4c48aSmrg printf %s "(cached) " >&6 1061499c4c48aSmrgelse $as_nop 106155977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106165977a007Smrg/* end confdefs.h. */ 106175977a007Smrgint i; 106185977a007Smrgint 1061999c4c48aSmrgmain (void) 106205977a007Smrg{ 106215977a007Smrg 106225977a007Smrg ; 106235977a007Smrg return 0; 106245977a007Smrg} 106255977a007Smrg_ACEOF 1062699c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1062799c4c48aSmrgthen : 106285977a007Smrg eval $cacheid=yes 1062999c4c48aSmrgelse $as_nop 106305977a007Smrg eval $cacheid=no 106315977a007Smrgfi 1063299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 106335977a007Smrg conftest$ac_exeext conftest.$ac_ext 106345977a007Smrgfi 106355977a007Smrg 106365977a007Smrg 106375977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 106385977a007Smrg 106395977a007Smrg eval supported=\$$cacheid 1064099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1064199c4c48aSmrgprintf "%s\n" "$supported" >&6; } 106425977a007Smrg if test "$supported" = "yes" ; then 106435977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 106445977a007Smrg found="yes" 106455977a007Smrg fi 106465977a007Smrg fi 106475977a007Smrg 106485977a007Smrg 106495977a007Smrg 106505977a007Smrg 106515977a007Smrg 106525977a007Smrg 106535977a007Smrg 106545977a007Smrg 106555977a007Smrg 106565977a007Smrg 106575977a007Smrg 106585977a007Smrg 106595977a007Smrg 106605977a007Smrg 106615977a007Smrg 106625977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 106635977a007Smrg 106645977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 106655977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1066699c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1066799c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1066899c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1066999c4c48aSmrgthen : 1067099c4c48aSmrg printf %s "(cached) " >&6 1067199c4c48aSmrgelse $as_nop 106725977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106735977a007Smrg/* end confdefs.h. */ 106745977a007Smrgint i; 106755977a007Smrg_ACEOF 1067699c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1067799c4c48aSmrgthen : 106785977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1067999c4c48aSmrgelse $as_nop 106805977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 106815977a007Smrgfi 1068299c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 106835977a007Smrgfi 1068499c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1068599c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 106865977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 106875977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 106885977a007Smrgfi 106895977a007Smrg 106905977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 106915977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 106925977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106935977a007Smrg fi 106945977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1069599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1069699c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1069799c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1069899c4c48aSmrgthen : 1069999c4c48aSmrg printf %s "(cached) " >&6 1070099c4c48aSmrgelse $as_nop 107015977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107025977a007Smrg/* end confdefs.h. */ 107035977a007Smrgint i; 107045977a007Smrg_ACEOF 1070599c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1070699c4c48aSmrgthen : 107075977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1070899c4c48aSmrgelse $as_nop 107095977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 107105977a007Smrgfi 1071199c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 107125977a007Smrgfi 1071399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1071499c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 107155977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 107165977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 107175977a007Smrgfi 107185977a007Smrg 107195977a007Smrgfound="no" 107205977a007Smrg 107215977a007Smrg if test $found = "no" ; then 107228a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 107235977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 107245977a007Smrg fi 107255977a007Smrg 107268a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 107275977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107285977a007Smrg fi 107295977a007Smrg 107305977a007Smrg CFLAGS="$CFLAGS -Werror" 107315977a007Smrg 1073299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 1073399c4c48aSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 107345977a007Smrg cacheid=xorg_cv_cc_flag__Werror 1073599c4c48aSmrg if eval test \${$cacheid+y} 1073699c4c48aSmrgthen : 1073799c4c48aSmrg printf %s "(cached) " >&6 1073899c4c48aSmrgelse $as_nop 107395977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107405977a007Smrg/* end confdefs.h. */ 107415977a007Smrgint i; 107425977a007Smrgint 1074399c4c48aSmrgmain (void) 107445977a007Smrg{ 107455977a007Smrg 107465977a007Smrg ; 107475977a007Smrg return 0; 107485977a007Smrg} 107495977a007Smrg_ACEOF 1075099c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1075199c4c48aSmrgthen : 107525977a007Smrg eval $cacheid=yes 1075399c4c48aSmrgelse $as_nop 107545977a007Smrg eval $cacheid=no 107555977a007Smrgfi 1075699c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 107575977a007Smrg conftest$ac_exeext conftest.$ac_ext 107585977a007Smrgfi 107595977a007Smrg 107605977a007Smrg 107615977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 107625977a007Smrg 107635977a007Smrg eval supported=\$$cacheid 1076499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1076599c4c48aSmrgprintf "%s\n" "$supported" >&6; } 107665977a007Smrg if test "$supported" = "yes" ; then 107675977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 107685977a007Smrg found="yes" 107695977a007Smrg fi 107705977a007Smrg fi 107715977a007Smrg 107725977a007Smrg if test $found = "no" ; then 107738a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 107745977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 107755977a007Smrg fi 107765977a007Smrg 107778a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 107785977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107795977a007Smrg fi 107805977a007Smrg 107815977a007Smrg CFLAGS="$CFLAGS -errwarn" 107825977a007Smrg 1078399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 1078499c4c48aSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 107855977a007Smrg cacheid=xorg_cv_cc_flag__errwarn 1078699c4c48aSmrg if eval test \${$cacheid+y} 1078799c4c48aSmrgthen : 1078899c4c48aSmrg printf %s "(cached) " >&6 1078999c4c48aSmrgelse $as_nop 107905977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107915977a007Smrg/* end confdefs.h. */ 107925977a007Smrgint i; 107935977a007Smrgint 1079499c4c48aSmrgmain (void) 107955977a007Smrg{ 107965977a007Smrg 107975977a007Smrg ; 107985977a007Smrg return 0; 107995977a007Smrg} 108005977a007Smrg_ACEOF 1080199c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1080299c4c48aSmrgthen : 108035977a007Smrg eval $cacheid=yes 1080499c4c48aSmrgelse $as_nop 108055977a007Smrg eval $cacheid=no 108065977a007Smrgfi 1080799c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 108085977a007Smrg conftest$ac_exeext conftest.$ac_ext 108095977a007Smrgfi 108105977a007Smrg 108115977a007Smrg 108125977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108135977a007Smrg 108145977a007Smrg eval supported=\$$cacheid 1081599c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1081699c4c48aSmrgprintf "%s\n" "$supported" >&6; } 108175977a007Smrg if test "$supported" = "yes" ; then 108185977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 108195977a007Smrg found="yes" 108205977a007Smrg fi 108215977a007Smrg fi 108225977a007Smrg 108235977a007Smrg 108245977a007Smrg 108255977a007Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 108265977a007Smrg# activate it with -Werror, so we add it here explicitly. 108275977a007Smrg 108285977a007Smrg 108295977a007Smrg 108305977a007Smrg 108315977a007Smrg 108325977a007Smrg 108335977a007Smrg 108345977a007Smrg 108355977a007Smrg 108365977a007Smrg 108375977a007Smrg 108385977a007Smrg 108395977a007Smrg 108405977a007Smrgxorg_testset_save_CFLAGS="$CFLAGS" 108415977a007Smrg 108425977a007Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 108435977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1084499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1084599c4c48aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1084699c4c48aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 1084799c4c48aSmrgthen : 1084899c4c48aSmrg printf %s "(cached) " >&6 1084999c4c48aSmrgelse $as_nop 108505977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 108515977a007Smrg/* end confdefs.h. */ 108525977a007Smrgint i; 108535977a007Smrg_ACEOF 1085499c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1085599c4c48aSmrgthen : 108565977a007Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1085799c4c48aSmrgelse $as_nop 108585977a007Smrg xorg_cv_cc_flag_unknown_warning_option=no 108595977a007Smrgfi 1086099c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 108615977a007Smrgfi 1086299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1086399c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 108645977a007Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 108655977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108665977a007Smrgfi 108675977a007Smrg 108685977a007Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 108695977a007Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 108705977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108715977a007Smrg fi 108725977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1087399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1087499c4c48aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1087599c4c48aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 1087699c4c48aSmrgthen : 1087799c4c48aSmrg printf %s "(cached) " >&6 1087899c4c48aSmrgelse $as_nop 108795977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 108805977a007Smrg/* end confdefs.h. */ 108815977a007Smrgint i; 108825977a007Smrg_ACEOF 1088399c4c48aSmrgif ac_fn_c_try_compile "$LINENO" 1088499c4c48aSmrgthen : 108855977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1088699c4c48aSmrgelse $as_nop 108875977a007Smrg xorg_cv_cc_flag_unused_command_line_argument=no 108885977a007Smrgfi 1088999c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 108905977a007Smrgfi 1089199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1089299c4c48aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 108935977a007Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 108945977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108955977a007Smrgfi 108965977a007Smrg 108975977a007Smrgfound="no" 108985977a007Smrg 108995977a007Smrg if test $found = "no" ; then 109008a355152Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 109015977a007Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 109025977a007Smrg fi 109035977a007Smrg 109048a355152Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 109055977a007Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 109065977a007Smrg fi 109075977a007Smrg 109085977a007Smrg CFLAGS="$CFLAGS -Werror=attributes" 109095977a007Smrg 1091099c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 1091199c4c48aSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 109128a355152Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 1091399c4c48aSmrg if eval test \${$cacheid+y} 1091499c4c48aSmrgthen : 1091599c4c48aSmrg printf %s "(cached) " >&6 1091699c4c48aSmrgelse $as_nop 109175977a007Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 109185977a007Smrg/* end confdefs.h. */ 109195977a007Smrgint i; 109205977a007Smrgint 1092199c4c48aSmrgmain (void) 109225977a007Smrg{ 109235977a007Smrg 109245977a007Smrg ; 109255977a007Smrg return 0; 109265977a007Smrg} 109275977a007Smrg_ACEOF 1092899c4c48aSmrgif ac_fn_c_try_link "$LINENO" 1092999c4c48aSmrgthen : 109305977a007Smrg eval $cacheid=yes 1093199c4c48aSmrgelse $as_nop 109325977a007Smrg eval $cacheid=no 109335977a007Smrgfi 1093499c4c48aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 109355977a007Smrg conftest$ac_exeext conftest.$ac_ext 109365977a007Smrgfi 109375977a007Smrg 109385977a007Smrg 109395977a007Smrg CFLAGS="$xorg_testset_save_CFLAGS" 109405977a007Smrg 109415977a007Smrg eval supported=\$$cacheid 1094299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1094399c4c48aSmrgprintf "%s\n" "$supported" >&6; } 109445977a007Smrg if test "$supported" = "yes" ; then 109455977a007Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 109465977a007Smrg found="yes" 109475977a007Smrg fi 109485977a007Smrg fi 109495977a007Smrg 109505977a007Smrg 109515977a007Smrg 109525977a007Smrgif test "x$STRICT_COMPILE" = "xyes"; then 109535977a007Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 109545977a007Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 109555977a007Smrgfi 109565977a007Smrg 109575977a007Smrg 109585977a007Smrg 109595977a007Smrg 109605977a007Smrg 109615977a007Smrg 109625977a007Smrgcat >>confdefs.h <<_ACEOF 109635977a007Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 109645977a007Smrg_ACEOF 109655977a007Smrg 109665977a007Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 109675977a007Smrg if test "x$PVM" = "x"; then 109685977a007Smrg PVM="0" 109695977a007Smrg fi 109705977a007Smrg 1097199c4c48aSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 109725977a007Smrg 109735977a007Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 109745977a007Smrg if test "x$PVP" = "x"; then 109755977a007Smrg PVP="0" 109765977a007Smrg fi 109775977a007Smrg 1097899c4c48aSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 109795977a007Smrg 109805977a007Smrg 109815977a007Smrg 1098299c4c48aSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 109835977a007Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 1098499c4c48aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 1098599c4c48aSmrgtouch \$(top_srcdir)/ChangeLog; \ 1098699c4c48aSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 109875977a007Smrg 109881a650d1eSmrg 109891a650d1eSmrg 109905977a007Smrg 109915977a007Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 109925977a007SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 109935977a007Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 1099499c4c48aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 1099599c4c48aSmrgtouch \$(top_srcdir)/INSTALL; \ 1099699c4c48aSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 1099799c4c48aSmrg 109985977a007Smrg 109995977a007Smrg 110005977a007Smrg 110015977a007Smrg 110025977a007Smrg 1100399c4c48aSmrgcase $host_os in 1100499c4c48aSmrg solaris*) 1100599c4c48aSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 1100699c4c48aSmrg # check for a man page file found in later versions that use 1100799c4c48aSmrg # traditional section numbers instead 1100899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 1100999c4c48aSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 1101099c4c48aSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 1101199c4c48aSmrgthen : 1101299c4c48aSmrg printf %s "(cached) " >&6 1101399c4c48aSmrgelse $as_nop 1101499c4c48aSmrg test "$cross_compiling" = yes && 1101599c4c48aSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 1101699c4c48aSmrgif test -r "/usr/share/man/man7/attributes.7"; then 1101799c4c48aSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 1101899c4c48aSmrgelse 1101999c4c48aSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 1102099c4c48aSmrgfi 1102199c4c48aSmrgfi 1102299c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 1102399c4c48aSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 1102499c4c48aSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 1102599c4c48aSmrgthen : 1102699c4c48aSmrg SYSV_MAN_SECTIONS=false 1102799c4c48aSmrgelse $as_nop 1102899c4c48aSmrg SYSV_MAN_SECTIONS=true 1102999c4c48aSmrgfi 1103099c4c48aSmrg 1103199c4c48aSmrg ;; 1103299c4c48aSmrg *) SYSV_MAN_SECTIONS=false ;; 1103399c4c48aSmrgesac 110345977a007Smrg 110355977a007Smrgif test x$APP_MAN_SUFFIX = x ; then 110365977a007Smrg APP_MAN_SUFFIX=1 110375977a007Smrgfi 110385977a007Smrgif test x$APP_MAN_DIR = x ; then 110395977a007Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 110405977a007Smrgfi 110415977a007Smrg 110425977a007Smrgif test x$LIB_MAN_SUFFIX = x ; then 110435977a007Smrg LIB_MAN_SUFFIX=3 110445977a007Smrgfi 110455977a007Smrgif test x$LIB_MAN_DIR = x ; then 110465977a007Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 110475977a007Smrgfi 110485977a007Smrg 110495977a007Smrgif test x$FILE_MAN_SUFFIX = x ; then 1105099c4c48aSmrg case $SYSV_MAN_SECTIONS in 1105199c4c48aSmrg true) FILE_MAN_SUFFIX=4 ;; 110528a355152Smrg *) FILE_MAN_SUFFIX=5 ;; 110535977a007Smrg esac 110545977a007Smrgfi 110555977a007Smrgif test x$FILE_MAN_DIR = x ; then 110565977a007Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 110575977a007Smrgfi 110585977a007Smrg 110595977a007Smrgif test x$MISC_MAN_SUFFIX = x ; then 1106099c4c48aSmrg case $SYSV_MAN_SECTIONS in 1106199c4c48aSmrg true) MISC_MAN_SUFFIX=5 ;; 110628a355152Smrg *) MISC_MAN_SUFFIX=7 ;; 110635977a007Smrg esac 110645977a007Smrgfi 110655977a007Smrgif test x$MISC_MAN_DIR = x ; then 110665977a007Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 110675977a007Smrgfi 110685977a007Smrg 110695977a007Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1107099c4c48aSmrg case $SYSV_MAN_SECTIONS in 1107199c4c48aSmrg true) DRIVER_MAN_SUFFIX=7 ;; 110728a355152Smrg *) DRIVER_MAN_SUFFIX=4 ;; 110735977a007Smrg esac 110745977a007Smrgfi 110755977a007Smrgif test x$DRIVER_MAN_DIR = x ; then 110765977a007Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 110775977a007Smrgfi 110785977a007Smrg 110795977a007Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1108099c4c48aSmrg case $SYSV_MAN_SECTIONS in 1108199c4c48aSmrg true) ADMIN_MAN_SUFFIX=1m ;; 110828a355152Smrg *) ADMIN_MAN_SUFFIX=8 ;; 110835977a007Smrg esac 110845977a007Smrgfi 110855977a007Smrgif test x$ADMIN_MAN_DIR = x ; then 110865977a007Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 110871a650d1eSmrgfi 110881a650d1eSmrg 110891a650d1eSmrg 110905977a007Smrg 110915977a007Smrg 110925977a007Smrg 110935977a007Smrg 110945977a007Smrg 110955977a007Smrg 110965977a007Smrg 110975977a007Smrg 110985977a007Smrg 110995977a007Smrg 111005977a007Smrg 111015977a007Smrg 111025977a007Smrg 111035977a007SmrgXORG_MAN_PAGE="X Version 11" 111045977a007Smrg 111055977a007SmrgMAN_SUBSTS="\ 111065977a007Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 111075977a007Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 111085977a007Smrg -e 's|__xservername__|Xorg|g' \ 111095977a007Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 111105977a007Smrg -e 's|__projectroot__|\$(prefix)|g' \ 111115977a007Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 111125977a007Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 111135977a007Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 111145977a007Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 111155977a007Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 111165977a007Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 111175977a007Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 111185977a007Smrg 111195977a007Smrg 111205977a007Smrg 111215977a007Smrg# Check whether --enable-silent-rules was given. 1112299c4c48aSmrgif test ${enable_silent_rules+y} 1112399c4c48aSmrgthen : 111245977a007Smrg enableval=$enable_silent_rules; 111255977a007Smrgfi 111265977a007Smrg 111278a355152Smrgcase $enable_silent_rules in # ((( 111288a355152Smrg yes) AM_DEFAULT_VERBOSITY=0;; 111298a355152Smrg no) AM_DEFAULT_VERBOSITY=1;; 111308a355152Smrg *) AM_DEFAULT_VERBOSITY=0;; 111315977a007Smrgesac 111328a355152Smrgam_make=${MAKE-make} 1113399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1113499c4c48aSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 1113599c4c48aSmrgif test ${am_cv_make_support_nested_variables+y} 1113699c4c48aSmrgthen : 1113799c4c48aSmrg printf %s "(cached) " >&6 1113899c4c48aSmrgelse $as_nop 1113999c4c48aSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 111408a355152SmrgBAR0=false 111418a355152SmrgBAR1=true 111428a355152SmrgV=1 111438a355152Smrgam__doit: 111448a355152Smrg @$(TRUE) 111458a355152Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 111468a355152Smrg am_cv_make_support_nested_variables=yes 111478a355152Smrgelse 111488a355152Smrg am_cv_make_support_nested_variables=no 111498a355152Smrgfi 111508a355152Smrgfi 1115199c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1115299c4c48aSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 111538a355152Smrgif test $am_cv_make_support_nested_variables = yes; then 111548a355152Smrg AM_V='$(V)' 111558a355152Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 111568a355152Smrgelse 111578a355152Smrg AM_V=$AM_DEFAULT_VERBOSITY 111588a355152Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 111598a355152Smrgfi 111605977a007SmrgAM_BACKSLASH='\' 111615977a007Smrg 111625977a007Smrg 111635977a007Smrg 111645977a007Smrg 111655977a007Smrg# Check whether --with-rsh was given. 1116699c4c48aSmrgif test ${with_rsh+y} 1116799c4c48aSmrgthen : 111685977a007Smrg withval=$with_rsh; rsh="$withval" 1116999c4c48aSmrgelse $as_nop 111705977a007Smrg rsh=${bindir}/ssh 111715977a007Smrgfi 111725977a007Smrg 111735977a007SmrgRSH=$rsh 111745977a007Smrg 111755977a007Smrg 1117699c4c48aSmrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 1117799c4c48aSmrgif test "x$ac_cv_func_mkstemp" = xyes 1117899c4c48aSmrgthen : 1117999c4c48aSmrg printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 1118099c4c48aSmrg 1118199c4c48aSmrgfi 1118299c4c48aSmrgac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 1118399c4c48aSmrgif test "x$ac_cv_func_putenv" = xyes 1118499c4c48aSmrgthen : 1118599c4c48aSmrg printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h 111865977a007Smrg 111875977a007Smrgfi 111885977a007Smrg 111895977a007Smrg 111901a650d1eSmrg# Checks for pkg-config packages 111911a650d1eSmrg 111921a650d1eSmrgpkg_failed=no 1119399c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5 1119499c4c48aSmrgprintf %s "checking for XSM... " >&6; } 111951a650d1eSmrg 111961a650d1eSmrgif test -n "$XSM_CFLAGS"; then 111971a650d1eSmrg pkg_cv_XSM_CFLAGS="$XSM_CFLAGS" 111981a650d1eSmrg elif test -n "$PKG_CONFIG"; then 111991a650d1eSmrg if test -n "$PKG_CONFIG" && \ 1120099c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17\""; } >&5 1120199c4c48aSmrg ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17") 2>&5 112021a650d1eSmrg ac_status=$? 1120399c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 112041a650d1eSmrg test $ac_status = 0; }; then 1120599c4c48aSmrg pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>/dev/null` 112068a355152Smrg test "x$?" != "x0" && pkg_failed=yes 112071a650d1eSmrgelse 112081a650d1eSmrg pkg_failed=yes 112091a650d1eSmrgfi 112101a650d1eSmrg else 112111a650d1eSmrg pkg_failed=untried 112121a650d1eSmrgfi 112131a650d1eSmrgif test -n "$XSM_LIBS"; then 112141a650d1eSmrg pkg_cv_XSM_LIBS="$XSM_LIBS" 112151a650d1eSmrg elif test -n "$PKG_CONFIG"; then 112161a650d1eSmrg if test -n "$PKG_CONFIG" && \ 1121799c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17\""; } >&5 1121899c4c48aSmrg ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17") 2>&5 112191a650d1eSmrg ac_status=$? 1122099c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 112211a650d1eSmrg test $ac_status = 0; }; then 1122299c4c48aSmrg pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>/dev/null` 112238a355152Smrg test "x$?" != "x0" && pkg_failed=yes 112241a650d1eSmrgelse 112251a650d1eSmrg pkg_failed=yes 112261a650d1eSmrgfi 112271a650d1eSmrg else 112281a650d1eSmrg pkg_failed=untried 112291a650d1eSmrgfi 112301a650d1eSmrg 112311a650d1eSmrg 112321a650d1eSmrg 112331a650d1eSmrgif test $pkg_failed = yes; then 1123499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 1123599c4c48aSmrgprintf "%s\n" "no" >&6; } 112361a650d1eSmrg 112371a650d1eSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 112381a650d1eSmrg _pkg_short_errors_supported=yes 112391a650d1eSmrgelse 112401a650d1eSmrg _pkg_short_errors_supported=no 112411a650d1eSmrgfi 112421a650d1eSmrg if test $_pkg_short_errors_supported = yes; then 1124399c4c48aSmrg XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>&1` 112441a650d1eSmrg else 1124599c4c48aSmrg XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>&1` 112461a650d1eSmrg fi 112471a650d1eSmrg # Put the nasty error message in config.log where it belongs 112481a650d1eSmrg echo "$XSM_PKG_ERRORS" >&5 112491a650d1eSmrg 1125099c4c48aSmrg as_fn_error $? "Package requirements (x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17) were not met: 112511a650d1eSmrg 112521a650d1eSmrg$XSM_PKG_ERRORS 112531a650d1eSmrg 112541a650d1eSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 112551a650d1eSmrginstalled software in a non-standard prefix. 112561a650d1eSmrg 112571a650d1eSmrgAlternatively, you may set the environment variables XSM_CFLAGS 112581a650d1eSmrgand XSM_LIBS to avoid the need to call pkg-config. 112598a355152SmrgSee the pkg-config man page for more details." "$LINENO" 5 112601a650d1eSmrgelif test $pkg_failed = untried; then 1126199c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 1126299c4c48aSmrgprintf "%s\n" "no" >&6; } 1126399c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1126499c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 112651a650d1eSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 112661a650d1eSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 112671a650d1eSmrgpath to pkg-config. 112681a650d1eSmrg 112691a650d1eSmrgAlternatively, you may set the environment variables XSM_CFLAGS 112701a650d1eSmrgand XSM_LIBS to avoid the need to call pkg-config. 112711a650d1eSmrgSee the pkg-config man page for more details. 112721a650d1eSmrg 112731a650d1eSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 112741a650d1eSmrgSee \`config.log' for more details" "$LINENO" 5; } 112751a650d1eSmrgelse 112761a650d1eSmrg XSM_CFLAGS=$pkg_cv_XSM_CFLAGS 112771a650d1eSmrg XSM_LIBS=$pkg_cv_XSM_LIBS 1127899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1127999c4c48aSmrgprintf "%s\n" "yes" >&6; } 112808a355152Smrg 112811a650d1eSmrgfi 112821a650d1eSmrg 112831a650d1eSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 112841a650d1eSmrg 112851a650d1eSmrg# Check whether --with-appdefaultdir was given. 1128699c4c48aSmrgif test ${with_appdefaultdir+y} 1128799c4c48aSmrgthen : 112881a650d1eSmrg withval=$with_appdefaultdir; appdefaultdir="$withval" 1128999c4c48aSmrgelse $as_nop 112901a650d1eSmrg appdefaultdir="${xt_appdefaultdir}" 112911a650d1eSmrgfi 112921a650d1eSmrg 112931a650d1eSmrg 112948108eb18Smrg 112958108eb18Smrg 112965977a007Smrgac_config_files="$ac_config_files Makefile man/Makefile" 112971a650d1eSmrg 112988108eb18Smrgcat >confcache <<\_ACEOF 112998108eb18Smrg# This file is a shell script that caches the results of configure 113008108eb18Smrg# tests run on this system so they can be shared between configure 113018108eb18Smrg# scripts and configure runs, see configure's option --config-cache. 113028108eb18Smrg# It is not useful on other systems. If it contains results you don't 113038108eb18Smrg# want to keep, you may remove or edit it. 113048108eb18Smrg# 113058108eb18Smrg# config.status only pays attention to the cache file if you give it 113068108eb18Smrg# the --recheck option to rerun configure. 113078108eb18Smrg# 113088108eb18Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 113098108eb18Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 113108108eb18Smrg# following values. 113118108eb18Smrg 113128108eb18Smrg_ACEOF 113138108eb18Smrg 113148108eb18Smrg# The following way of writing the cache mishandles newlines in values, 113158108eb18Smrg# but we know of no workaround that is simple, portable, and efficient. 113161a650d1eSmrg# So, we kill variables containing newlines. 113178108eb18Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 113188108eb18Smrg# and sets the high bit in the cache file unless we assign to the vars. 113191a650d1eSmrg( 113201a650d1eSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 113211a650d1eSmrg eval ac_val=\$$ac_var 113221a650d1eSmrg case $ac_val in #( 113231a650d1eSmrg *${as_nl}*) 113241a650d1eSmrg case $ac_var in #( 1132599c4c48aSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1132699c4c48aSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 113271a650d1eSmrg esac 113281a650d1eSmrg case $ac_var in #( 113291a650d1eSmrg _ | IFS | as_nl) ;; #( 113301a650d1eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 113311a650d1eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 113321a650d1eSmrg esac ;; 113331a650d1eSmrg esac 113341a650d1eSmrg done 113351a650d1eSmrg 113368108eb18Smrg (set) 2>&1 | 113371a650d1eSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 113381a650d1eSmrg *${as_nl}ac_space=\ *) 113391a650d1eSmrg # `set' does not quote correctly, so add quotes: double-quote 113401a650d1eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 113418108eb18Smrg sed -n \ 113428108eb18Smrg "s/'/'\\\\''/g; 113438108eb18Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 113441a650d1eSmrg ;; #( 113458108eb18Smrg *) 113468108eb18Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 113471a650d1eSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 113488108eb18Smrg ;; 113491a650d1eSmrg esac | 113501a650d1eSmrg sort 113511a650d1eSmrg) | 113528108eb18Smrg sed ' 113531a650d1eSmrg /^ac_cv_env_/b end 113548108eb18Smrg t clear 113551a650d1eSmrg :clear 1135699c4c48aSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 113578108eb18Smrg t end 113581a650d1eSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 113591a650d1eSmrg :end' >>confcache 113601a650d1eSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 113611a650d1eSmrg if test -w "$cache_file"; then 113621a650d1eSmrg if test "x$cache_file" != "x/dev/null"; then 1136399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1136499c4c48aSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 113651a650d1eSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 113661a650d1eSmrg cat confcache >"$cache_file" 113671a650d1eSmrg else 113681a650d1eSmrg case $cache_file in #( 113691a650d1eSmrg */* | ?:*) 113701a650d1eSmrg mv -f confcache "$cache_file"$$ && 113711a650d1eSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 113721a650d1eSmrg *) 113731a650d1eSmrg mv -f confcache "$cache_file" ;; 113741a650d1eSmrg esac 113751a650d1eSmrg fi 113761a650d1eSmrg fi 113778108eb18Smrg else 1137899c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1137999c4c48aSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 113808108eb18Smrg fi 113818108eb18Smrgfi 113828108eb18Smrgrm -f confcache 113838108eb18Smrg 113848108eb18Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 113858108eb18Smrg# Let make expand exec_prefix. 113868108eb18Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 113878108eb18Smrg 113888108eb18SmrgDEFS=-DHAVE_CONFIG_H 113898108eb18Smrg 113908108eb18Smrgac_libobjs= 113918108eb18Smrgac_ltlibobjs= 113921a650d1eSmrgU= 113938108eb18Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 113948108eb18Smrg # 1. Remove the extension, and $U if already installed. 113951a650d1eSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1139699c4c48aSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 113971a650d1eSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 113981a650d1eSmrg # will be set to the directory where LIBOBJS objects are built. 113991a650d1eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 114001a650d1eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 114018108eb18Smrgdone 114028108eb18SmrgLIBOBJS=$ac_libobjs 114038108eb18Smrg 114048108eb18SmrgLTLIBOBJS=$ac_ltlibobjs 114058108eb18Smrg 114068108eb18Smrg 1140799c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1140899c4c48aSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 114098a355152Smrg if test -n "$am_sleep_pid"; then 114108a355152Smrg # Hide warnings about reused PIDs. 114118a355152Smrg wait $am_sleep_pid 2>/dev/null 114128a355152Smrg fi 1141399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 1141499c4c48aSmrgprintf "%s\n" "done" >&6; } 114151a650d1eSmrg if test -n "$EXEEXT"; then 114161a650d1eSmrg am__EXEEXT_TRUE= 114171a650d1eSmrg am__EXEEXT_FALSE='#' 114181a650d1eSmrgelse 114191a650d1eSmrg am__EXEEXT_TRUE='#' 114201a650d1eSmrg am__EXEEXT_FALSE= 114211a650d1eSmrgfi 114221a650d1eSmrg 114238108eb18Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 114241a650d1eSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 114251a650d1eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 114268108eb18Smrgfi 114278108eb18Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 114281a650d1eSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 114291a650d1eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 114308108eb18Smrgfi 114318108eb18Smrg 114321a650d1eSmrg: "${CONFIG_STATUS=./config.status}" 114331a650d1eSmrgac_write_fail=0 114348108eb18Smrgac_clean_files_save=$ac_clean_files 114358108eb18Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 1143699c4c48aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1143799c4c48aSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 114381a650d1eSmrgas_write_fail=0 114391a650d1eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 114408108eb18Smrg#! $SHELL 114418108eb18Smrg# Generated by $as_me. 114428108eb18Smrg# Run this file to recreate the current configuration. 114438108eb18Smrg# Compiler output produced by configure, useful for debugging 114448108eb18Smrg# configure, is in config.log if it exists. 114458108eb18Smrg 114468108eb18Smrgdebug=false 114478108eb18Smrgac_cs_recheck=false 114488108eb18Smrgac_cs_silent=false 114498108eb18Smrg 114501a650d1eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 114511a650d1eSmrgexport SHELL 114521a650d1eSmrg_ASEOF 114531a650d1eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 114541a650d1eSmrg## -------------------- ## 114551a650d1eSmrg## M4sh Initialization. ## 114561a650d1eSmrg## -------------------- ## 114571a650d1eSmrg 114581a650d1eSmrg# Be more Bourne compatible 114591a650d1eSmrgDUALCASE=1; export DUALCASE # for MKS sh 1146099c4c48aSmrgas_nop=: 1146199c4c48aSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1146299c4c48aSmrgthen : 114638108eb18Smrg emulate sh 114648108eb18Smrg NULLCMD=: 114651a650d1eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 114668108eb18Smrg # is contrary to our usage. Disable this feature. 114678108eb18Smrg alias -g '${1+"$@"}'='"$@"' 114681a650d1eSmrg setopt NO_GLOB_SUBST 1146999c4c48aSmrgelse $as_nop 114701a650d1eSmrg case `(set -o) 2>/dev/null` in #( 114711a650d1eSmrg *posix*) : 114721a650d1eSmrg set -o posix ;; #( 114731a650d1eSmrg *) : 114741a650d1eSmrg ;; 114751a650d1eSmrgesac 114768108eb18Smrgfi 114778108eb18Smrg 114781a650d1eSmrg 1147999c4c48aSmrg 1148099c4c48aSmrg# Reset variables that may have inherited troublesome values from 1148199c4c48aSmrg# the environment. 1148299c4c48aSmrg 1148399c4c48aSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 1148499c4c48aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 1148599c4c48aSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 1148699c4c48aSmrg# Quoting is to prevent editors from complaining about space-tab. 114871a650d1eSmrgas_nl=' 114881a650d1eSmrg' 114891a650d1eSmrgexport as_nl 1149099c4c48aSmrgIFS=" "" $as_nl" 1149199c4c48aSmrg 1149299c4c48aSmrgPS1='$ ' 1149399c4c48aSmrgPS2='> ' 1149499c4c48aSmrgPS4='+ ' 1149599c4c48aSmrg 1149699c4c48aSmrg# Ensure predictable behavior from utilities with locale-dependent output. 1149799c4c48aSmrgLC_ALL=C 1149899c4c48aSmrgexport LC_ALL 1149999c4c48aSmrgLANGUAGE=C 1150099c4c48aSmrgexport LANGUAGE 1150199c4c48aSmrg 1150299c4c48aSmrg# We cannot yet rely on "unset" to work, but we need these variables 1150399c4c48aSmrg# to be unset--not just set to an empty or harmless value--now, to 1150499c4c48aSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 1150599c4c48aSmrg# also avoids known problems related to "unset" and subshell syntax 1150699c4c48aSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 1150799c4c48aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 1150899c4c48aSmrgdo eval test \${$as_var+y} \ 1150999c4c48aSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1151099c4c48aSmrgdone 1151199c4c48aSmrg 1151299c4c48aSmrg# Ensure that fds 0, 1, and 2 are open. 1151399c4c48aSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 1151499c4c48aSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 1151599c4c48aSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 115161a650d1eSmrg 115171a650d1eSmrg# The user is always right. 1151899c4c48aSmrgif ${PATH_SEPARATOR+false} :; then 115191a650d1eSmrg PATH_SEPARATOR=: 115201a650d1eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 115211a650d1eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 115221a650d1eSmrg PATH_SEPARATOR=';' 115231a650d1eSmrg } 115248108eb18Smrgfi 115258108eb18Smrg 115268108eb18Smrg 115271a650d1eSmrg# Find who we are. Look in the path if we contain no directory separator. 115281a650d1eSmrgas_myself= 115291a650d1eSmrgcase $0 in #(( 115301a650d1eSmrg *[\\/]* ) as_myself=$0 ;; 115311a650d1eSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 115321a650d1eSmrgfor as_dir in $PATH 115331a650d1eSmrgdo 115341a650d1eSmrg IFS=$as_save_IFS 1153599c4c48aSmrg case $as_dir in #((( 1153699c4c48aSmrg '') as_dir=./ ;; 1153799c4c48aSmrg */) ;; 1153899c4c48aSmrg *) as_dir=$as_dir/ ;; 1153999c4c48aSmrg esac 1154099c4c48aSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 115411a650d1eSmrg done 115421a650d1eSmrgIFS=$as_save_IFS 115431a650d1eSmrg 115441a650d1eSmrg ;; 115451a650d1eSmrgesac 115461a650d1eSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 115471a650d1eSmrg# in which case we are not to be found in the path. 115481a650d1eSmrgif test "x$as_myself" = x; then 115491a650d1eSmrg as_myself=$0 115501a650d1eSmrgfi 115511a650d1eSmrgif test ! -f "$as_myself"; then 1155299c4c48aSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115531a650d1eSmrg exit 1 115541a650d1eSmrgfi 115551a650d1eSmrg 115561a650d1eSmrg 115571a650d1eSmrg 115581a650d1eSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 115591a650d1eSmrg# ---------------------------------------- 115601a650d1eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 115611a650d1eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 115621a650d1eSmrg# script with STATUS, using 1 if that was 0. 115631a650d1eSmrgas_fn_error () 115641a650d1eSmrg{ 115651a650d1eSmrg as_status=$1; test $as_status -eq 0 && as_status=1 115661a650d1eSmrg if test "$4"; then 115671a650d1eSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1156899c4c48aSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 115698108eb18Smrg fi 1157099c4c48aSmrg printf "%s\n" "$as_me: error: $2" >&2 115711a650d1eSmrg as_fn_exit $as_status 115721a650d1eSmrg} # as_fn_error 115731a650d1eSmrg 115741a650d1eSmrg 1157599c4c48aSmrg 115761a650d1eSmrg# as_fn_set_status STATUS 115771a650d1eSmrg# ----------------------- 115781a650d1eSmrg# Set $? to STATUS, without forking. 115791a650d1eSmrgas_fn_set_status () 115801a650d1eSmrg{ 115811a650d1eSmrg return $1 115821a650d1eSmrg} # as_fn_set_status 115831a650d1eSmrg 115841a650d1eSmrg# as_fn_exit STATUS 115851a650d1eSmrg# ----------------- 115861a650d1eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 115871a650d1eSmrgas_fn_exit () 115881a650d1eSmrg{ 115891a650d1eSmrg set +e 115901a650d1eSmrg as_fn_set_status $1 115911a650d1eSmrg exit $1 115921a650d1eSmrg} # as_fn_exit 115931a650d1eSmrg 115941a650d1eSmrg# as_fn_unset VAR 115951a650d1eSmrg# --------------- 115961a650d1eSmrg# Portably unset VAR. 115971a650d1eSmrgas_fn_unset () 115981a650d1eSmrg{ 115991a650d1eSmrg { eval $1=; unset $1;} 116001a650d1eSmrg} 116011a650d1eSmrgas_unset=as_fn_unset 1160299c4c48aSmrg 116031a650d1eSmrg# as_fn_append VAR VALUE 116041a650d1eSmrg# ---------------------- 116051a650d1eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 116061a650d1eSmrg# advantage of any shell optimizations that allow amortized linear growth over 116071a650d1eSmrg# repeated appends, instead of the typical quadratic growth present in naive 116081a650d1eSmrg# implementations. 1160999c4c48aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 1161099c4c48aSmrgthen : 116111a650d1eSmrg eval 'as_fn_append () 116121a650d1eSmrg { 116131a650d1eSmrg eval $1+=\$2 116141a650d1eSmrg }' 1161599c4c48aSmrgelse $as_nop 116161a650d1eSmrg as_fn_append () 116171a650d1eSmrg { 116181a650d1eSmrg eval $1=\$$1\$2 116191a650d1eSmrg } 116201a650d1eSmrgfi # as_fn_append 116211a650d1eSmrg 116221a650d1eSmrg# as_fn_arith ARG... 116231a650d1eSmrg# ------------------ 116241a650d1eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 116251a650d1eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 116261a650d1eSmrg# must be portable across $(()) and expr. 1162799c4c48aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 1162899c4c48aSmrgthen : 116291a650d1eSmrg eval 'as_fn_arith () 116301a650d1eSmrg { 116311a650d1eSmrg as_val=$(( $* )) 116321a650d1eSmrg }' 1163399c4c48aSmrgelse $as_nop 116341a650d1eSmrg as_fn_arith () 116351a650d1eSmrg { 116361a650d1eSmrg as_val=`expr "$@" || test $? -eq 1` 116371a650d1eSmrg } 116381a650d1eSmrgfi # as_fn_arith 116391a650d1eSmrg 116408108eb18Smrg 116411a650d1eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 116421a650d1eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 116438108eb18Smrg as_expr=expr 116448108eb18Smrgelse 116458108eb18Smrg as_expr=false 116468108eb18Smrgfi 116478108eb18Smrg 116481a650d1eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 116498108eb18Smrg as_basename=basename 116508108eb18Smrgelse 116518108eb18Smrg as_basename=false 116528108eb18Smrgfi 116538108eb18Smrg 116541a650d1eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 116551a650d1eSmrg as_dirname=dirname 116561a650d1eSmrgelse 116571a650d1eSmrg as_dirname=false 116581a650d1eSmrgfi 116598108eb18Smrg 116601a650d1eSmrgas_me=`$as_basename -- "$0" || 116618108eb18Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 116628108eb18Smrg X"$0" : 'X\(//\)$' \| \ 116631a650d1eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1166499c4c48aSmrgprintf "%s\n" X/"$0" | 116651a650d1eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 116661a650d1eSmrg s//\1/ 116671a650d1eSmrg q 116681a650d1eSmrg } 116691a650d1eSmrg /^X\/\(\/\/\)$/{ 116701a650d1eSmrg s//\1/ 116711a650d1eSmrg q 116721a650d1eSmrg } 116731a650d1eSmrg /^X\/\(\/\).*/{ 116741a650d1eSmrg s//\1/ 116751a650d1eSmrg q 116761a650d1eSmrg } 116771a650d1eSmrg s/.*/./; q'` 116788108eb18Smrg 116798108eb18Smrg# Avoid depending upon Character Ranges. 116808108eb18Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 116818108eb18Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 116828108eb18Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 116838108eb18Smrgas_cr_digits='0123456789' 116848108eb18Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 116858108eb18Smrg 1168699c4c48aSmrg 1168799c4c48aSmrg# Determine whether it's possible to make 'echo' print without a newline. 1168899c4c48aSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 1168999c4c48aSmrg# for compatibility with existing Makefiles. 116901a650d1eSmrgECHO_C= ECHO_N= ECHO_T= 116911a650d1eSmrgcase `echo -n x` in #((((( 116921a650d1eSmrg-n*) 116931a650d1eSmrg case `echo 'xy\c'` in 116941a650d1eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 116951a650d1eSmrg xy) ECHO_C='\c';; 116961a650d1eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 116971a650d1eSmrg ECHO_T=' ';; 116981a650d1eSmrg esac;; 116991a650d1eSmrg*) 117001a650d1eSmrg ECHO_N='-n';; 117018108eb18Smrgesac 117028108eb18Smrg 1170399c4c48aSmrg# For backward compatibility with old third-party macros, we provide 1170499c4c48aSmrg# the shell variables $as_echo and $as_echo_n. New code should use 1170599c4c48aSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 1170699c4c48aSmrgas_echo='printf %s\n' 1170799c4c48aSmrgas_echo_n='printf %s' 1170899c4c48aSmrg 117091a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.file 117101a650d1eSmrgif test -d conf$$.dir; then 117111a650d1eSmrg rm -f conf$$.dir/conf$$.file 117128108eb18Smrgelse 117131a650d1eSmrg rm -f conf$$.dir 117141a650d1eSmrg mkdir conf$$.dir 2>/dev/null 117158108eb18Smrgfi 117161a650d1eSmrgif (echo >conf$$.file) 2>/dev/null; then 117171a650d1eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 117188108eb18Smrg as_ln_s='ln -s' 117191a650d1eSmrg # ... but there are two gotchas: 117201a650d1eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 117211a650d1eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 117228a355152Smrg # In both cases, we have to default to `cp -pR'. 117231a650d1eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 117248a355152Smrg as_ln_s='cp -pR' 117251a650d1eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 117261a650d1eSmrg as_ln_s=ln 117271a650d1eSmrg else 117288a355152Smrg as_ln_s='cp -pR' 117298108eb18Smrg fi 117308108eb18Smrgelse 117318a355152Smrg as_ln_s='cp -pR' 117328108eb18Smrgfi 117331a650d1eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 117341a650d1eSmrgrmdir conf$$.dir 2>/dev/null 117351a650d1eSmrg 117361a650d1eSmrg 117371a650d1eSmrg# as_fn_mkdir_p 117381a650d1eSmrg# ------------- 117391a650d1eSmrg# Create "$as_dir" as a directory, including parents if necessary. 117401a650d1eSmrgas_fn_mkdir_p () 117411a650d1eSmrg{ 117421a650d1eSmrg 117431a650d1eSmrg case $as_dir in #( 117441a650d1eSmrg -*) as_dir=./$as_dir;; 117451a650d1eSmrg esac 117461a650d1eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 117471a650d1eSmrg as_dirs= 117481a650d1eSmrg while :; do 117491a650d1eSmrg case $as_dir in #( 1175099c4c48aSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 117511a650d1eSmrg *) as_qdir=$as_dir;; 117521a650d1eSmrg esac 117531a650d1eSmrg as_dirs="'$as_qdir' $as_dirs" 117541a650d1eSmrg as_dir=`$as_dirname -- "$as_dir" || 117551a650d1eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 117561a650d1eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 117571a650d1eSmrg X"$as_dir" : 'X\(//\)$' \| \ 117581a650d1eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 1175999c4c48aSmrgprintf "%s\n" X"$as_dir" | 117601a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 117611a650d1eSmrg s//\1/ 117621a650d1eSmrg q 117631a650d1eSmrg } 117641a650d1eSmrg /^X\(\/\/\)[^/].*/{ 117651a650d1eSmrg s//\1/ 117661a650d1eSmrg q 117671a650d1eSmrg } 117681a650d1eSmrg /^X\(\/\/\)$/{ 117691a650d1eSmrg s//\1/ 117701a650d1eSmrg q 117711a650d1eSmrg } 117721a650d1eSmrg /^X\(\/\).*/{ 117731a650d1eSmrg s//\1/ 117741a650d1eSmrg q 117751a650d1eSmrg } 117761a650d1eSmrg s/.*/./; q'` 117771a650d1eSmrg test -d "$as_dir" && break 117781a650d1eSmrg done 117791a650d1eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 117801a650d1eSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 117811a650d1eSmrg 117828108eb18Smrg 117831a650d1eSmrg} # as_fn_mkdir_p 117848108eb18Smrgif mkdir -p . 2>/dev/null; then 117851a650d1eSmrg as_mkdir_p='mkdir -p "$as_dir"' 117868108eb18Smrgelse 117878108eb18Smrg test -d ./-p && rmdir ./-p 117888108eb18Smrg as_mkdir_p=false 117898108eb18Smrgfi 117908108eb18Smrg 117918a355152Smrg 117928a355152Smrg# as_fn_executable_p FILE 117938a355152Smrg# ----------------------- 117948a355152Smrg# Test if FILE is an executable regular file. 117958a355152Smrgas_fn_executable_p () 117968a355152Smrg{ 117978a355152Smrg test -f "$1" && test -x "$1" 117988a355152Smrg} # as_fn_executable_p 117998a355152Smrgas_test_x='test -x' 118008a355152Smrgas_executable_p=as_fn_executable_p 118018108eb18Smrg 118028108eb18Smrg# Sed expression to map a string onto a valid CPP name. 118038108eb18Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 118048108eb18Smrg 118058108eb18Smrg# Sed expression to map a string onto a valid variable name. 118068108eb18Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 118078108eb18Smrg 118088108eb18Smrg 118098108eb18Smrgexec 6>&1 118101a650d1eSmrg## ----------------------------------- ## 118111a650d1eSmrg## Main body of $CONFIG_STATUS script. ## 118121a650d1eSmrg## ----------------------------------- ## 118131a650d1eSmrg_ASEOF 118141a650d1eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 118151a650d1eSmrg 118161a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118171a650d1eSmrg# Save the log message, to keep $0 and so on meaningful, and to 118188108eb18Smrg# report actual input values of CONFIG_FILES etc. instead of their 118191a650d1eSmrg# values after options handling. 118201a650d1eSmrgac_log=" 1182199c4c48aSmrgThis file was extended by xsm $as_me 1.0.5, which was 1182299c4c48aSmrggenerated by GNU Autoconf 2.71. Invocation command line was 118238108eb18Smrg 118248108eb18Smrg CONFIG_FILES = $CONFIG_FILES 118258108eb18Smrg CONFIG_HEADERS = $CONFIG_HEADERS 118268108eb18Smrg CONFIG_LINKS = $CONFIG_LINKS 118278108eb18Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 118288108eb18Smrg $ $0 $@ 118298108eb18Smrg 118301a650d1eSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 118311a650d1eSmrg" 118321a650d1eSmrg 118338108eb18Smrg_ACEOF 118348108eb18Smrg 118351a650d1eSmrgcase $ac_config_files in *" 118361a650d1eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 118371a650d1eSmrgesac 118388108eb18Smrg 118391a650d1eSmrgcase $ac_config_headers in *" 118401a650d1eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 118411a650d1eSmrgesac 118428108eb18Smrg 118438108eb18Smrg 118441a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118451a650d1eSmrg# Files that config.status was made for. 118461a650d1eSmrgconfig_files="$ac_config_files" 118471a650d1eSmrgconfig_headers="$ac_config_headers" 118481a650d1eSmrgconfig_commands="$ac_config_commands" 118498108eb18Smrg 118501a650d1eSmrg_ACEOF 118518108eb18Smrg 118521a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118538108eb18Smrgac_cs_usage="\ 118541a650d1eSmrg\`$as_me' instantiates files and other configuration actions 118551a650d1eSmrgfrom templates according to the current configuration. Unless the files 118561a650d1eSmrgand actions are specified as TAGs, all are instantiated by default. 118578108eb18Smrg 118581a650d1eSmrgUsage: $0 [OPTION]... [TAG]... 118598108eb18Smrg 118608108eb18Smrg -h, --help print this help, then exit 118611a650d1eSmrg -V, --version print version number and configuration settings, then exit 118621a650d1eSmrg --config print configuration, then exit 118631a650d1eSmrg -q, --quiet, --silent 118641a650d1eSmrg do not print progress messages 118658108eb18Smrg -d, --debug don't remove temporary files 118668108eb18Smrg --recheck update $as_me by reconfiguring in the same conditions 118671a650d1eSmrg --file=FILE[:TEMPLATE] 118681a650d1eSmrg instantiate the configuration file FILE 118691a650d1eSmrg --header=FILE[:TEMPLATE] 118701a650d1eSmrg instantiate the configuration header FILE 118718108eb18Smrg 118728108eb18SmrgConfiguration files: 118738108eb18Smrg$config_files 118748108eb18Smrg 118758108eb18SmrgConfiguration headers: 118768108eb18Smrg$config_headers 118778108eb18Smrg 118788108eb18SmrgConfiguration commands: 118798108eb18Smrg$config_commands 118808108eb18Smrg 1188199c4c48aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/issues>." 118828108eb18Smrg 118831a650d1eSmrg_ACEOF 1188499c4c48aSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 1188599c4c48aSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 118861a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1188799c4c48aSmrgac_cs_config='$ac_cs_config_escaped' 118888108eb18Smrgac_cs_version="\\ 1188999c4c48aSmrgxsm config.status 1.0.5 1189099c4c48aSmrgconfigured by $0, generated by GNU Autoconf 2.71, 118911a650d1eSmrg with options \\"\$ac_cs_config\\" 118928108eb18Smrg 1189399c4c48aSmrgCopyright (C) 2021 Free Software Foundation, Inc. 118948108eb18SmrgThis config.status script is free software; the Free Software Foundation 118958108eb18Smrggives unlimited permission to copy, distribute and modify it." 118961a650d1eSmrg 118971a650d1eSmrgac_pwd='$ac_pwd' 118981a650d1eSmrgsrcdir='$srcdir' 118991a650d1eSmrgINSTALL='$INSTALL' 119001a650d1eSmrgMKDIR_P='$MKDIR_P' 119011a650d1eSmrgAWK='$AWK' 119021a650d1eSmrgtest -n "\$AWK" || AWK=awk 119038108eb18Smrg_ACEOF 119048108eb18Smrg 119051a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119061a650d1eSmrg# The default lists apply if the user does not specify any file. 119078108eb18Smrgac_need_defaults=: 119088108eb18Smrgwhile test $# != 0 119098108eb18Smrgdo 119108108eb18Smrg case $1 in 119111a650d1eSmrg --*=?*) 119121a650d1eSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 119131a650d1eSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 119141a650d1eSmrg ac_shift=: 119151a650d1eSmrg ;; 119161a650d1eSmrg --*=) 119171a650d1eSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 119181a650d1eSmrg ac_optarg= 119198108eb18Smrg ac_shift=: 119208108eb18Smrg ;; 119211a650d1eSmrg *) 119228108eb18Smrg ac_option=$1 119238108eb18Smrg ac_optarg=$2 119248108eb18Smrg ac_shift=shift 119258108eb18Smrg ;; 119268108eb18Smrg esac 119278108eb18Smrg 119288108eb18Smrg case $ac_option in 119298108eb18Smrg # Handling of the options. 119308108eb18Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 119318108eb18Smrg ac_cs_recheck=: ;; 119321a650d1eSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1193399c4c48aSmrg printf "%s\n" "$ac_cs_version"; exit ;; 119341a650d1eSmrg --config | --confi | --conf | --con | --co | --c ) 1193599c4c48aSmrg printf "%s\n" "$ac_cs_config"; exit ;; 119361a650d1eSmrg --debug | --debu | --deb | --de | --d | -d ) 119378108eb18Smrg debug=: ;; 119388108eb18Smrg --file | --fil | --fi | --f ) 119398108eb18Smrg $ac_shift 119401a650d1eSmrg case $ac_optarg in 1194199c4c48aSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 119421a650d1eSmrg '') as_fn_error $? "missing file argument" ;; 119431a650d1eSmrg esac 119441a650d1eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 119458108eb18Smrg ac_need_defaults=false;; 119468108eb18Smrg --header | --heade | --head | --hea ) 119478108eb18Smrg $ac_shift 119481a650d1eSmrg case $ac_optarg in 1194999c4c48aSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 119501a650d1eSmrg esac 119511a650d1eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 119528108eb18Smrg ac_need_defaults=false;; 119531a650d1eSmrg --he | --h) 119541a650d1eSmrg # Conflict between --help and --header 119551a650d1eSmrg as_fn_error $? "ambiguous option: \`$1' 119561a650d1eSmrgTry \`$0 --help' for more information.";; 119571a650d1eSmrg --help | --hel | -h ) 1195899c4c48aSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 119598108eb18Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 119608108eb18Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 119618108eb18Smrg ac_cs_silent=: ;; 119628108eb18Smrg 119638108eb18Smrg # This is an error. 119641a650d1eSmrg -*) as_fn_error $? "unrecognized option: \`$1' 119651a650d1eSmrgTry \`$0 --help' for more information." ;; 119668108eb18Smrg 119671a650d1eSmrg *) as_fn_append ac_config_targets " $1" 119681a650d1eSmrg ac_need_defaults=false ;; 119698108eb18Smrg 119708108eb18Smrg esac 119718108eb18Smrg shift 119728108eb18Smrgdone 119738108eb18Smrg 119748108eb18Smrgac_configure_extra_args= 119758108eb18Smrg 119768108eb18Smrgif $ac_cs_silent; then 119778108eb18Smrg exec 6>/dev/null 119788108eb18Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 119798108eb18Smrgfi 119808108eb18Smrg 119818108eb18Smrg_ACEOF 119821a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 119838108eb18Smrgif \$ac_cs_recheck; then 119848a355152Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 119851a650d1eSmrg shift 1198699c4c48aSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 119871a650d1eSmrg CONFIG_SHELL='$SHELL' 119881a650d1eSmrg export CONFIG_SHELL 119891a650d1eSmrg exec "\$@" 119908108eb18Smrgfi 119918108eb18Smrg 119928108eb18Smrg_ACEOF 119931a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119941a650d1eSmrgexec 5>>config.log 119951a650d1eSmrg{ 119961a650d1eSmrg echo 119971a650d1eSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 119981a650d1eSmrg## Running $as_me. ## 119991a650d1eSmrg_ASBOX 1200099c4c48aSmrg printf "%s\n" "$ac_log" 120011a650d1eSmrg} >&5 120028108eb18Smrg 120031a650d1eSmrg_ACEOF 120041a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 120058108eb18Smrg# 120061a650d1eSmrg# INIT-COMMANDS 120078108eb18Smrg# 1200899c4c48aSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 120098108eb18Smrg 120108108eb18Smrg_ACEOF 120118108eb18Smrg 120121a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120138108eb18Smrg 120141a650d1eSmrg# Handling of arguments. 120158108eb18Smrgfor ac_config_target in $ac_config_targets 120168108eb18Smrgdo 120171a650d1eSmrg case $ac_config_target in 120181a650d1eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 120191a650d1eSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 120201a650d1eSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 120215977a007Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 120221a650d1eSmrg 120231a650d1eSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 120248108eb18Smrg esac 120258108eb18Smrgdone 120268108eb18Smrg 120271a650d1eSmrg 120288108eb18Smrg# If the user did not use the arguments to specify the items to instantiate, 120298108eb18Smrg# then the envvar interface is used. Set only those that are not. 120308108eb18Smrg# We use the long form for the default assignment because of an extremely 120318108eb18Smrg# bizarre bug on SunOS 4.1.3. 120328108eb18Smrgif $ac_need_defaults; then 1203399c4c48aSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 1203499c4c48aSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 1203599c4c48aSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 120368108eb18Smrgfi 120378108eb18Smrg 120388108eb18Smrg# Have a temporary directory for convenience. Make it in the build tree 120391a650d1eSmrg# simply because there is no reason against having it here, and in addition, 120408108eb18Smrg# creating and moving files from /tmp can sometimes cause problems. 120411a650d1eSmrg# Hook for its removal unless debugging. 120421a650d1eSmrg# Note that there is a small window in which the directory will not be cleaned: 120431a650d1eSmrg# after its creation but before its name has been assigned to `$tmp'. 120448108eb18Smrg$debug || 120458108eb18Smrg{ 120461a650d1eSmrg tmp= ac_tmp= 120471a650d1eSmrg trap 'exit_status=$? 120481a650d1eSmrg : "${ac_tmp:=$tmp}" 120491a650d1eSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 120501a650d1eSmrg' 0 120511a650d1eSmrg trap 'as_fn_exit 1' 1 2 13 15 120528108eb18Smrg} 120538108eb18Smrg# Create a (secure) tmp directory for tmp files. 120548108eb18Smrg 120558108eb18Smrg{ 120561a650d1eSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 120571a650d1eSmrg test -d "$tmp" 120588108eb18Smrg} || 120598108eb18Smrg{ 120601a650d1eSmrg tmp=./conf$$-$RANDOM 120611a650d1eSmrg (umask 077 && mkdir "$tmp") 120621a650d1eSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 120631a650d1eSmrgac_tmp=$tmp 120641a650d1eSmrg 120651a650d1eSmrg# Set up the scripts for CONFIG_FILES section. 120661a650d1eSmrg# No need to generate them if there are no CONFIG_FILES. 120671a650d1eSmrg# This happens for instance with `./config.status config.h'. 120681a650d1eSmrgif test -n "$CONFIG_FILES"; then 120691a650d1eSmrg 120701a650d1eSmrg 120711a650d1eSmrgac_cr=`echo X | tr X '\015'` 120721a650d1eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 120731a650d1eSmrg# But we know of no other shell where ac_cr would be empty at this 120741a650d1eSmrg# point, so we can use a bashism as a fallback. 120751a650d1eSmrgif test "x$ac_cr" = x; then 120761a650d1eSmrg eval ac_cr=\$\'\\r\' 120771a650d1eSmrgfi 120781a650d1eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 120791a650d1eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 120801a650d1eSmrg ac_cs_awk_cr='\\r' 120811a650d1eSmrgelse 120821a650d1eSmrg ac_cs_awk_cr=$ac_cr 120831a650d1eSmrgfi 120841a650d1eSmrg 120851a650d1eSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 120861a650d1eSmrg_ACEOF 120871a650d1eSmrg 120881a650d1eSmrg 120891a650d1eSmrg{ 120901a650d1eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 120911a650d1eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 120921a650d1eSmrg echo "_ACEOF" 120931a650d1eSmrg} >conf$$subs.sh || 120941a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 120951a650d1eSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 120961a650d1eSmrgac_delim='%!_!# ' 120971a650d1eSmrgfor ac_last_try in false false false false false :; do 120981a650d1eSmrg . ./conf$$subs.sh || 120991a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 121001a650d1eSmrg 121011a650d1eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 121021a650d1eSmrg if test $ac_delim_n = $ac_delim_num; then 121031a650d1eSmrg break 121041a650d1eSmrg elif $ac_last_try; then 121051a650d1eSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 121061a650d1eSmrg else 121071a650d1eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 121081a650d1eSmrg fi 121091a650d1eSmrgdone 121101a650d1eSmrgrm -f conf$$subs.sh 121111a650d1eSmrg 121121a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121131a650d1eSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 121141a650d1eSmrg_ACEOF 121151a650d1eSmrgsed -n ' 121161a650d1eSmrgh 121171a650d1eSmrgs/^/S["/; s/!.*/"]=/ 121181a650d1eSmrgp 121191a650d1eSmrgg 121201a650d1eSmrgs/^[^!]*!// 121211a650d1eSmrg:repl 121221a650d1eSmrgt repl 121231a650d1eSmrgs/'"$ac_delim"'$// 121241a650d1eSmrgt delim 121251a650d1eSmrg:nl 121261a650d1eSmrgh 121271a650d1eSmrgs/\(.\{148\}\)..*/\1/ 121281a650d1eSmrgt more1 121291a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 121301a650d1eSmrgp 121311a650d1eSmrgn 121321a650d1eSmrgb repl 121331a650d1eSmrg:more1 121341a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 121351a650d1eSmrgp 121361a650d1eSmrgg 121371a650d1eSmrgs/.\{148\}// 121381a650d1eSmrgt nl 121391a650d1eSmrg:delim 121401a650d1eSmrgh 121411a650d1eSmrgs/\(.\{148\}\)..*/\1/ 121421a650d1eSmrgt more2 121431a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 121441a650d1eSmrgp 121451a650d1eSmrgb 121461a650d1eSmrg:more2 121471a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 121481a650d1eSmrgp 121491a650d1eSmrgg 121501a650d1eSmrgs/.\{148\}// 121511a650d1eSmrgt delim 121521a650d1eSmrg' <conf$$subs.awk | sed ' 121531a650d1eSmrg/^[^""]/{ 121541a650d1eSmrg N 121551a650d1eSmrg s/\n// 121561a650d1eSmrg} 121571a650d1eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 121581a650d1eSmrgrm -f conf$$subs.awk 121591a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121601a650d1eSmrg_ACAWK 121611a650d1eSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 121621a650d1eSmrg for (key in S) S_is_set[key] = 1 121631a650d1eSmrg FS = "" 121641a650d1eSmrg 121651a650d1eSmrg} 121668108eb18Smrg{ 121671a650d1eSmrg line = $ 0 121681a650d1eSmrg nfields = split(line, field, "@") 121691a650d1eSmrg substed = 0 121701a650d1eSmrg len = length(field[1]) 121711a650d1eSmrg for (i = 2; i < nfields; i++) { 121721a650d1eSmrg key = field[i] 121731a650d1eSmrg keylen = length(key) 121741a650d1eSmrg if (S_is_set[key]) { 121751a650d1eSmrg value = S[key] 121761a650d1eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 121771a650d1eSmrg len += length(value) + length(field[++i]) 121781a650d1eSmrg substed = 1 121791a650d1eSmrg } else 121801a650d1eSmrg len += 1 + keylen 121811a650d1eSmrg } 121821a650d1eSmrg 121831a650d1eSmrg print line 121848108eb18Smrg} 121858108eb18Smrg 121861a650d1eSmrg_ACAWK 121871a650d1eSmrg_ACEOF 121881a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 121891a650d1eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 121901a650d1eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 121911a650d1eSmrgelse 121921a650d1eSmrg cat 121931a650d1eSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 121941a650d1eSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 121958108eb18Smrg_ACEOF 121968108eb18Smrg 121971a650d1eSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 121981a650d1eSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 121991a650d1eSmrg# trailing colons and then remove the whole line if VPATH becomes empty 122001a650d1eSmrg# (actually we leave an empty line to preserve line numbers). 122011a650d1eSmrgif test "x$srcdir" = x.; then 122021a650d1eSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 122031a650d1eSmrgh 122041a650d1eSmrgs/// 122051a650d1eSmrgs/^/:/ 122061a650d1eSmrgs/[ ]*$/:/ 122071a650d1eSmrgs/:\$(srcdir):/:/g 122081a650d1eSmrgs/:\${srcdir}:/:/g 122091a650d1eSmrgs/:@srcdir@:/:/g 122101a650d1eSmrgs/^:*// 122111a650d1eSmrgs/:*$// 122121a650d1eSmrgx 122131a650d1eSmrgs/\(=[ ]*\).*/\1/ 122141a650d1eSmrgG 122151a650d1eSmrgs/\n// 122161a650d1eSmrgs/^[^=]*=[ ]*$// 122171a650d1eSmrg}' 122181a650d1eSmrgfi 122198108eb18Smrg 122201a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122211a650d1eSmrgfi # test -n "$CONFIG_FILES" 122228108eb18Smrg 122231a650d1eSmrg# Set up the scripts for CONFIG_HEADERS section. 122241a650d1eSmrg# No need to generate them if there are no CONFIG_HEADERS. 122251a650d1eSmrg# This happens for instance with `./config.status Makefile'. 122261a650d1eSmrgif test -n "$CONFIG_HEADERS"; then 122271a650d1eSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 122281a650d1eSmrgBEGIN { 122298108eb18Smrg_ACEOF 122308108eb18Smrg 122311a650d1eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 122321a650d1eSmrg# here-document in config.status, that substitutes the proper values into 122331a650d1eSmrg# config.h.in to produce config.h. 122341a650d1eSmrg 122351a650d1eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 122361a650d1eSmrg# handling of long lines. 122371a650d1eSmrgac_delim='%!_!# ' 122381a650d1eSmrgfor ac_last_try in false false :; do 122391a650d1eSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 122401a650d1eSmrg if test -z "$ac_tt"; then 122411a650d1eSmrg break 122421a650d1eSmrg elif $ac_last_try; then 122431a650d1eSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 122441a650d1eSmrg else 122451a650d1eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 122468108eb18Smrg fi 122471a650d1eSmrgdone 122488108eb18Smrg 122491a650d1eSmrg# For the awk script, D is an array of macro values keyed by name, 122501a650d1eSmrg# likewise P contains macro parameters if any. Preserve backslash 122511a650d1eSmrg# newline sequences. 122521a650d1eSmrg 122531a650d1eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 122541a650d1eSmrgsed -n ' 122551a650d1eSmrgs/.\{148\}/&'"$ac_delim"'/g 122561a650d1eSmrgt rset 122571a650d1eSmrg:rset 122581a650d1eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 122591a650d1eSmrgt def 122601a650d1eSmrgd 122611a650d1eSmrg:def 122621a650d1eSmrgs/\\$// 122631a650d1eSmrgt bsnl 122641a650d1eSmrgs/["\\]/\\&/g 122651a650d1eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 122661a650d1eSmrgD["\1"]=" \3"/p 122671a650d1eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 122681a650d1eSmrgd 122691a650d1eSmrg:bsnl 122701a650d1eSmrgs/["\\]/\\&/g 122711a650d1eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 122721a650d1eSmrgD["\1"]=" \3\\\\\\n"\\/p 122731a650d1eSmrgt cont 122741a650d1eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 122751a650d1eSmrgt cont 122761a650d1eSmrgd 122771a650d1eSmrg:cont 122781a650d1eSmrgn 122791a650d1eSmrgs/.\{148\}/&'"$ac_delim"'/g 122801a650d1eSmrgt clear 122811a650d1eSmrg:clear 122821a650d1eSmrgs/\\$// 122831a650d1eSmrgt bsnlc 122841a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 122851a650d1eSmrgd 122861a650d1eSmrg:bsnlc 122871a650d1eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 122881a650d1eSmrgb cont 122891a650d1eSmrg' <confdefs.h | sed ' 122901a650d1eSmrgs/'"$ac_delim"'/"\\\ 122911a650d1eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 122921a650d1eSmrg 122931a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122941a650d1eSmrg for (key in D) D_is_set[key] = 1 122951a650d1eSmrg FS = "" 122961a650d1eSmrg} 122971a650d1eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 122981a650d1eSmrg line = \$ 0 122991a650d1eSmrg split(line, arg, " ") 123001a650d1eSmrg if (arg[1] == "#") { 123011a650d1eSmrg defundef = arg[2] 123021a650d1eSmrg mac1 = arg[3] 123031a650d1eSmrg } else { 123041a650d1eSmrg defundef = substr(arg[1], 2) 123051a650d1eSmrg mac1 = arg[2] 123061a650d1eSmrg } 123071a650d1eSmrg split(mac1, mac2, "(") #) 123081a650d1eSmrg macro = mac2[1] 123091a650d1eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 123101a650d1eSmrg if (D_is_set[macro]) { 123111a650d1eSmrg # Preserve the white space surrounding the "#". 123121a650d1eSmrg print prefix "define", macro P[macro] D[macro] 123131a650d1eSmrg next 123141a650d1eSmrg } else { 123151a650d1eSmrg # Replace #undef with comments. This is necessary, for example, 123161a650d1eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 123171a650d1eSmrg # on some systems where configure will not decide to define it. 123181a650d1eSmrg if (defundef == "undef") { 123191a650d1eSmrg print "/*", prefix defundef, macro, "*/" 123201a650d1eSmrg next 123211a650d1eSmrg } 123221a650d1eSmrg } 123231a650d1eSmrg} 123241a650d1eSmrg{ print } 123251a650d1eSmrg_ACAWK 123268108eb18Smrg_ACEOF 123271a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123281a650d1eSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 123291a650d1eSmrgfi # test -n "$CONFIG_HEADERS" 123301a650d1eSmrg 123311a650d1eSmrg 123321a650d1eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 123331a650d1eSmrgshift 123341a650d1eSmrgfor ac_tag 123351a650d1eSmrgdo 123361a650d1eSmrg case $ac_tag in 123371a650d1eSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 123381a650d1eSmrg esac 123391a650d1eSmrg case $ac_mode$ac_tag in 123401a650d1eSmrg :[FHL]*:*);; 123411a650d1eSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 123421a650d1eSmrg :[FH]-) ac_tag=-:-;; 123431a650d1eSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 123441a650d1eSmrg esac 123451a650d1eSmrg ac_save_IFS=$IFS 123461a650d1eSmrg IFS=: 123471a650d1eSmrg set x $ac_tag 123481a650d1eSmrg IFS=$ac_save_IFS 123491a650d1eSmrg shift 123501a650d1eSmrg ac_file=$1 123511a650d1eSmrg shift 123521a650d1eSmrg 123531a650d1eSmrg case $ac_mode in 123541a650d1eSmrg :L) ac_source=$1;; 123551a650d1eSmrg :[FH]) 123561a650d1eSmrg ac_file_inputs= 123571a650d1eSmrg for ac_f 123581a650d1eSmrg do 123591a650d1eSmrg case $ac_f in 123601a650d1eSmrg -) ac_f="$ac_tmp/stdin";; 123611a650d1eSmrg *) # Look for the file first in the build tree, then in the source tree 123621a650d1eSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 123631a650d1eSmrg # because $ac_f cannot contain `:'. 123641a650d1eSmrg test -f "$ac_f" || 123651a650d1eSmrg case $ac_f in 123661a650d1eSmrg [\\/$]*) false;; 123671a650d1eSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 123681a650d1eSmrg esac || 123691a650d1eSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 123701a650d1eSmrg esac 1237199c4c48aSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 123721a650d1eSmrg as_fn_append ac_file_inputs " '$ac_f'" 123731a650d1eSmrg done 123741a650d1eSmrg 123751a650d1eSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 123761a650d1eSmrg # use $as_me), people would be surprised to read: 123771a650d1eSmrg # /* config.h. Generated by config.status. */ 123781a650d1eSmrg configure_input='Generated from '` 1237999c4c48aSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 123801a650d1eSmrg `' by configure.' 123811a650d1eSmrg if test x"$ac_file" != x-; then 123821a650d1eSmrg configure_input="$ac_file. $configure_input" 1238399c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1238499c4c48aSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 123851a650d1eSmrg fi 123861a650d1eSmrg # Neutralize special characters interpreted by sed in replacement strings. 123871a650d1eSmrg case $configure_input in #( 123881a650d1eSmrg *\&* | *\|* | *\\* ) 1238999c4c48aSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 123901a650d1eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 123911a650d1eSmrg *) ac_sed_conf_input=$configure_input;; 123921a650d1eSmrg esac 123931a650d1eSmrg 123941a650d1eSmrg case $ac_tag in 123951a650d1eSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 123961a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 123971a650d1eSmrg esac 123981a650d1eSmrg ;; 123998108eb18Smrg esac 124008108eb18Smrg 124011a650d1eSmrg ac_dir=`$as_dirname -- "$ac_file" || 124028108eb18Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124038108eb18Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 124048108eb18Smrg X"$ac_file" : 'X\(//\)$' \| \ 124051a650d1eSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1240699c4c48aSmrgprintf "%s\n" X"$ac_file" | 124071a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 124081a650d1eSmrg s//\1/ 124091a650d1eSmrg q 124101a650d1eSmrg } 124111a650d1eSmrg /^X\(\/\/\)[^/].*/{ 124121a650d1eSmrg s//\1/ 124131a650d1eSmrg q 124141a650d1eSmrg } 124151a650d1eSmrg /^X\(\/\/\)$/{ 124161a650d1eSmrg s//\1/ 124171a650d1eSmrg q 124181a650d1eSmrg } 124191a650d1eSmrg /^X\(\/\).*/{ 124201a650d1eSmrg s//\1/ 124211a650d1eSmrg q 124221a650d1eSmrg } 124231a650d1eSmrg s/.*/./; q'` 124241a650d1eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 124258108eb18Smrg ac_builddir=. 124268108eb18Smrg 124271a650d1eSmrgcase "$ac_dir" in 124281a650d1eSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 124291a650d1eSmrg*) 1243099c4c48aSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 124311a650d1eSmrg # A ".." for each directory in $ac_dir_suffix. 1243299c4c48aSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 124331a650d1eSmrg case $ac_top_builddir_sub in 124341a650d1eSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 124351a650d1eSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 124361a650d1eSmrg esac ;; 124371a650d1eSmrgesac 124381a650d1eSmrgac_abs_top_builddir=$ac_pwd 124391a650d1eSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 124401a650d1eSmrg# for backward compatibility: 124411a650d1eSmrgac_top_builddir=$ac_top_build_prefix 124428108eb18Smrg 124438108eb18Smrgcase $srcdir in 124441a650d1eSmrg .) # We are building in place. 124458108eb18Smrg ac_srcdir=. 124461a650d1eSmrg ac_top_srcdir=$ac_top_builddir_sub 124471a650d1eSmrg ac_abs_top_srcdir=$ac_pwd ;; 124481a650d1eSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 124498108eb18Smrg ac_srcdir=$srcdir$ac_dir_suffix; 124501a650d1eSmrg ac_top_srcdir=$srcdir 124511a650d1eSmrg ac_abs_top_srcdir=$srcdir ;; 124521a650d1eSmrg *) # Relative name. 124531a650d1eSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 124541a650d1eSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 124551a650d1eSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 124568108eb18Smrgesac 124571a650d1eSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 124588108eb18Smrg 124598108eb18Smrg 124601a650d1eSmrg case $ac_mode in 124611a650d1eSmrg :F) 124621a650d1eSmrg # 124631a650d1eSmrg # CONFIG_FILE 124641a650d1eSmrg # 124658108eb18Smrg 124668108eb18Smrg case $INSTALL in 124678108eb18Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 124681a650d1eSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 124691a650d1eSmrg esac 124701a650d1eSmrg ac_MKDIR_P=$MKDIR_P 124711a650d1eSmrg case $MKDIR_P in 124721a650d1eSmrg [\\/$]* | ?:[\\/]* ) ;; 124731a650d1eSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 124748108eb18Smrg esac 124751a650d1eSmrg_ACEOF 124768108eb18Smrg 124771a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124781a650d1eSmrg# If the template does not know about datarootdir, expand it. 124791a650d1eSmrg# FIXME: This hack should be removed a few years after 2.60. 124801a650d1eSmrgac_datarootdir_hack=; ac_datarootdir_seen= 124811a650d1eSmrgac_sed_dataroot=' 124821a650d1eSmrg/datarootdir/ { 124831a650d1eSmrg p 124841a650d1eSmrg q 124851a650d1eSmrg} 124861a650d1eSmrg/@datadir@/p 124871a650d1eSmrg/@docdir@/p 124881a650d1eSmrg/@infodir@/p 124891a650d1eSmrg/@localedir@/p 124901a650d1eSmrg/@mandir@/p' 124911a650d1eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 124921a650d1eSmrg*datarootdir*) ac_datarootdir_seen=yes;; 124931a650d1eSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 1249499c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1249599c4c48aSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 124961a650d1eSmrg_ACEOF 124971a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124981a650d1eSmrg ac_datarootdir_hack=' 124991a650d1eSmrg s&@datadir@&$datadir&g 125001a650d1eSmrg s&@docdir@&$docdir&g 125011a650d1eSmrg s&@infodir@&$infodir&g 125021a650d1eSmrg s&@localedir@&$localedir&g 125031a650d1eSmrg s&@mandir@&$mandir&g 125041a650d1eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 125051a650d1eSmrgesac 125068108eb18Smrg_ACEOF 125071a650d1eSmrg 125081a650d1eSmrg# Neutralize VPATH when `$srcdir' = `.'. 125091a650d1eSmrg# Shell code in configure.ac might set extrasub. 125101a650d1eSmrg# FIXME: do we really want to maintain this feature? 125111a650d1eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125121a650d1eSmrgac_sed_extra="$ac_vpsub 125138108eb18Smrg$extrasub 125148108eb18Smrg_ACEOF 125151a650d1eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125168108eb18Smrg:t 125178108eb18Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 125181a650d1eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 125191a650d1eSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 125201a650d1eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 125211a650d1eSmrgs&@srcdir@&$ac_srcdir&;t t 125221a650d1eSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 125231a650d1eSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 125241a650d1eSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 125251a650d1eSmrgs&@builddir@&$ac_builddir&;t t 125261a650d1eSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 125271a650d1eSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 125281a650d1eSmrgs&@INSTALL@&$ac_INSTALL&;t t 125291a650d1eSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 125301a650d1eSmrg$ac_datarootdir_hack 125311a650d1eSmrg" 125321a650d1eSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 125331a650d1eSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 125341a650d1eSmrg 125351a650d1eSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 125361a650d1eSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 125371a650d1eSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 125381a650d1eSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1253999c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 125401a650d1eSmrgwhich seems to be undefined. Please make sure it is defined" >&5 1254199c4c48aSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 125421a650d1eSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 125431a650d1eSmrg 125441a650d1eSmrg rm -f "$ac_tmp/stdin" 125458108eb18Smrg case $ac_file in 125461a650d1eSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 125471a650d1eSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 125481a650d1eSmrg esac \ 125491a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 125501a650d1eSmrg ;; 125511a650d1eSmrg :H) 125521a650d1eSmrg # 125531a650d1eSmrg # CONFIG_HEADER 125541a650d1eSmrg # 125558108eb18Smrg if test x"$ac_file" != x-; then 125561a650d1eSmrg { 1255799c4c48aSmrg printf "%s\n" "/* $configure_input */" >&1 \ 125581a650d1eSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 125591a650d1eSmrg } >"$ac_tmp/config.h" \ 125601a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 125611a650d1eSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 1256299c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 1256399c4c48aSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 125648108eb18Smrg else 125651a650d1eSmrg rm -f "$ac_file" 125661a650d1eSmrg mv "$ac_tmp/config.h" "$ac_file" \ 125671a650d1eSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 125688108eb18Smrg fi 125698108eb18Smrg else 1257099c4c48aSmrg printf "%s\n" "/* $configure_input */" >&1 \ 125711a650d1eSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 125721a650d1eSmrg || as_fn_error $? "could not create -" "$LINENO" 5 125738108eb18Smrg fi 125741a650d1eSmrg# Compute "$ac_file"'s index in $config_headers. 125751a650d1eSmrg_am_arg="$ac_file" 125768108eb18Smrg_am_stamp_count=1 125778108eb18Smrgfor _am_header in $config_headers :; do 125788108eb18Smrg case $_am_header in 125791a650d1eSmrg $_am_arg | $_am_arg:* ) 125808108eb18Smrg break ;; 125818108eb18Smrg * ) 125828108eb18Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 125838108eb18Smrg esac 125848108eb18Smrgdone 125851a650d1eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 125861a650d1eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 125871a650d1eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 125881a650d1eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 125891a650d1eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1259099c4c48aSmrgprintf "%s\n" X"$_am_arg" | 125911a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 125921a650d1eSmrg s//\1/ 125931a650d1eSmrg q 125941a650d1eSmrg } 125951a650d1eSmrg /^X\(\/\/\)[^/].*/{ 125961a650d1eSmrg s//\1/ 125971a650d1eSmrg q 125981a650d1eSmrg } 125991a650d1eSmrg /^X\(\/\/\)$/{ 126001a650d1eSmrg s//\1/ 126011a650d1eSmrg q 126021a650d1eSmrg } 126031a650d1eSmrg /^X\(\/\).*/{ 126041a650d1eSmrg s//\1/ 126051a650d1eSmrg q 126061a650d1eSmrg } 126071a650d1eSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 126081a650d1eSmrg ;; 126098108eb18Smrg 1261099c4c48aSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1261199c4c48aSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 126121a650d1eSmrg ;; 126131a650d1eSmrg esac 126148108eb18Smrg 126158108eb18Smrg 126161a650d1eSmrg case $ac_file$ac_mode in 126171a650d1eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 126188a355152Smrg # Older Autoconf quotes --file arguments for eval, but not when files 126191a650d1eSmrg # are listed without --file. Let's play safe and only enable the eval 126201a650d1eSmrg # if we detect the quoting. 1262199c4c48aSmrg # TODO: see whether this extra hack can be removed once we start 1262299c4c48aSmrg # requiring Autoconf 2.70 or later. 1262399c4c48aSmrg case $CONFIG_FILES in #( 1262499c4c48aSmrg *\'*) : 1262599c4c48aSmrg eval set x "$CONFIG_FILES" ;; #( 1262699c4c48aSmrg *) : 1262799c4c48aSmrg set x $CONFIG_FILES ;; #( 1262899c4c48aSmrg *) : 1262999c4c48aSmrg ;; 1263099c4c48aSmrgesac 126311a650d1eSmrg shift 1263299c4c48aSmrg # Used to flag and report bootstrapping failures. 1263399c4c48aSmrg am_rc=0 1263499c4c48aSmrg for am_mf 126351a650d1eSmrg do 126361a650d1eSmrg # Strip MF so we end up with the name of the file. 1263799c4c48aSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 1263899c4c48aSmrg # Check whether this is an Automake generated Makefile which includes 1263999c4c48aSmrg # dependency-tracking related rules and includes. 1264099c4c48aSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 126411a650d1eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 1264299c4c48aSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 1264399c4c48aSmrg || continue 1264499c4c48aSmrg am_dirpart=`$as_dirname -- "$am_mf" || 1264599c4c48aSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264699c4c48aSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 1264799c4c48aSmrg X"$am_mf" : 'X\(//\)$' \| \ 1264899c4c48aSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 1264999c4c48aSmrgprintf "%s\n" X"$am_mf" | 126501a650d1eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 126511a650d1eSmrg s//\1/ 126521a650d1eSmrg q 126531a650d1eSmrg } 126541a650d1eSmrg /^X\(\/\/\)[^/].*/{ 126551a650d1eSmrg s//\1/ 126561a650d1eSmrg q 126571a650d1eSmrg } 126581a650d1eSmrg /^X\(\/\/\)$/{ 126591a650d1eSmrg s//\1/ 126601a650d1eSmrg q 126611a650d1eSmrg } 126621a650d1eSmrg /^X\(\/\).*/{ 126631a650d1eSmrg s//\1/ 126641a650d1eSmrg q 126651a650d1eSmrg } 126661a650d1eSmrg s/.*/./; q'` 1266799c4c48aSmrg am_filepart=`$as_basename -- "$am_mf" || 1266899c4c48aSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 1266999c4c48aSmrg X"$am_mf" : 'X\(//\)$' \| \ 1267099c4c48aSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 1267199c4c48aSmrgprintf "%s\n" X/"$am_mf" | 1267299c4c48aSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 126731a650d1eSmrg s//\1/ 126741a650d1eSmrg q 126751a650d1eSmrg } 1267699c4c48aSmrg /^X\/\(\/\/\)$/{ 126771a650d1eSmrg s//\1/ 126781a650d1eSmrg q 126791a650d1eSmrg } 1268099c4c48aSmrg /^X\/\(\/\).*/{ 126811a650d1eSmrg s//\1/ 126821a650d1eSmrg q 126831a650d1eSmrg } 126841a650d1eSmrg s/.*/./; q'` 1268599c4c48aSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 1268699c4c48aSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 1268799c4c48aSmrg | $MAKE -f - am--depfiles" >&5 1268899c4c48aSmrg (cd "$am_dirpart" \ 1268999c4c48aSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 1269099c4c48aSmrg | $MAKE -f - am--depfiles) >&5 2>&5 1269199c4c48aSmrg ac_status=$? 1269299c4c48aSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 1269399c4c48aSmrg (exit $ac_status); } || am_rc=$? 126948108eb18Smrg done 1269599c4c48aSmrg if test $am_rc -ne 0; then 1269699c4c48aSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1269799c4c48aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1269899c4c48aSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 1269999c4c48aSmrg for automatic dependency tracking. If GNU make was not used, consider 1270099c4c48aSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 1270199c4c48aSmrg necessary). You can also try re-running configure with the 1270299c4c48aSmrg '--disable-dependency-tracking' option to at least be able to build 1270399c4c48aSmrg the package (albeit without support for automatic dependency tracking). 1270499c4c48aSmrgSee \`config.log' for more details" "$LINENO" 5; } 1270599c4c48aSmrg fi 1270699c4c48aSmrg { am_dirpart=; unset am_dirpart;} 1270799c4c48aSmrg { am_filepart=; unset am_filepart;} 1270899c4c48aSmrg { am_mf=; unset am_mf;} 1270999c4c48aSmrg { am_rc=; unset am_rc;} 1271099c4c48aSmrg rm -f conftest-deps.mk 127111a650d1eSmrg} 127128108eb18Smrg ;; 127131a650d1eSmrg 127148108eb18Smrg esac 127151a650d1eSmrgdone # for ac_tag 127168108eb18Smrg 127178108eb18Smrg 127181a650d1eSmrgas_fn_exit 0 127198108eb18Smrg_ACEOF 127208108eb18Smrgac_clean_files=$ac_clean_files_save 127218108eb18Smrg 127221a650d1eSmrgtest $ac_write_fail = 0 || 127231a650d1eSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 127241a650d1eSmrg 127258108eb18Smrg 127268108eb18Smrg# configure is writing to config.log, and then calls config.status. 127278108eb18Smrg# config.status does its own redirection, appending to config.log. 127288108eb18Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 127298108eb18Smrg# by configure, so config.status won't be able to write to it; its 127308108eb18Smrg# output is simply discarded. So we exec the FD to /dev/null, 127318108eb18Smrg# effectively closing config.log, so it can be properly (re)opened and 127328108eb18Smrg# appended to by config.status. When coming back to configure, we 127338108eb18Smrg# need to make the FD available again. 127348108eb18Smrgif test "$no_create" != yes; then 127358108eb18Smrg ac_cs_success=: 127368108eb18Smrg ac_config_status_args= 127378108eb18Smrg test "$silent" = yes && 127388108eb18Smrg ac_config_status_args="$ac_config_status_args --quiet" 127398108eb18Smrg exec 5>/dev/null 127408108eb18Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 127418108eb18Smrg exec 5>>config.log 127428108eb18Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 127438108eb18Smrg # would make configure fail if this is the last instruction. 127441a650d1eSmrg $ac_cs_success || as_fn_exit 1 127451a650d1eSmrgfi 127461a650d1eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 1274799c4c48aSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1274899c4c48aSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 127498108eb18Smrgfi 127508108eb18Smrg 1275199c4c48aSmrg 12752