1eaef79e5Smrg#! /bin/sh 2eaef79e5Smrg# Guess values for system-dependent variables and create Makefiles. 3433d0511Smrg# Generated by GNU Autoconf 2.72 for bitmap 1.1.1. 4eaef79e5Smrg# 56654de8bSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>. 6eaef79e5Smrg# 795e0246bSmrg# 8433d0511Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9433d0511Smrg# Inc. 1095e0246bSmrg# 1195e0246bSmrg# 12eaef79e5Smrg# This configure script is free software; the Free Software Foundation 13eaef79e5Smrg# gives unlimited permission to copy, distribute and modify it. 1495e0246bSmrg## -------------------- ## 1595e0246bSmrg## M4sh Initialization. ## 1695e0246bSmrg## -------------------- ## 17eaef79e5Smrg 182b32c8f7Smrg# Be more Bourne compatible 192b32c8f7SmrgDUALCASE=1; export DUALCASE # for MKS sh 20433d0511Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21433d0511Smrgthen : 22eaef79e5Smrg emulate sh 23eaef79e5Smrg NULLCMD=: 242b32c8f7Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25eaef79e5Smrg # is contrary to our usage. Disable this feature. 26eaef79e5Smrg alias -g '${1+"$@"}'='"$@"' 27eaef79e5Smrg setopt NO_GLOB_SUBST 28433d0511Smrgelse case e in #( 29433d0511Smrg e) case `(set -o) 2>/dev/null` in #( 3095e0246bSmrg *posix*) : 3195e0246bSmrg set -o posix ;; #( 3295e0246bSmrg *) : 3395e0246bSmrg ;; 34433d0511Smrgesac ;; 352b32c8f7Smrgesac 36eaef79e5Smrgfi 372b32c8f7Smrg 382b32c8f7Smrg 39433d0511Smrg 40433d0511Smrg# Reset variables that may have inherited troublesome values from 41433d0511Smrg# the environment. 42433d0511Smrg 43433d0511Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44433d0511Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45433d0511Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 46433d0511Smrg# Quoting is to prevent editors from complaining about space-tab. 472b32c8f7Smrgas_nl=' 482b32c8f7Smrg' 492b32c8f7Smrgexport as_nl 50433d0511SmrgIFS=" "" $as_nl" 51433d0511Smrg 52433d0511SmrgPS1='$ ' 53433d0511SmrgPS2='> ' 54433d0511SmrgPS4='+ ' 55433d0511Smrg 56433d0511Smrg# Ensure predictable behavior from utilities with locale-dependent output. 57433d0511SmrgLC_ALL=C 58433d0511Smrgexport LC_ALL 59433d0511SmrgLANGUAGE=C 60433d0511Smrgexport LANGUAGE 61433d0511Smrg 62433d0511Smrg# We cannot yet rely on "unset" to work, but we need these variables 63433d0511Smrg# to be unset--not just set to an empty or harmless value--now, to 64433d0511Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65433d0511Smrg# also avoids known problems related to "unset" and subshell syntax 66433d0511Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67433d0511Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68433d0511Smrgdo eval test \${$as_var+y} \ 69433d0511Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70433d0511Smrgdone 71433d0511Smrg 72433d0511Smrg# Ensure that fds 0, 1, and 2 are open. 73433d0511Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74433d0511Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75433d0511Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 762b32c8f7Smrg 772b32c8f7Smrg# The user is always right. 78433d0511Smrgif ${PATH_SEPARATOR+false} :; then 792b32c8f7Smrg PATH_SEPARATOR=: 802b32c8f7Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 812b32c8f7Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 822b32c8f7Smrg PATH_SEPARATOR=';' 832b32c8f7Smrg } 84eaef79e5Smrgfi 85eaef79e5Smrg 86eaef79e5Smrg 87eaef79e5Smrg# Find who we are. Look in the path if we contain no directory separator. 8895e0246bSmrgas_myself= 8995e0246bSmrgcase $0 in #(( 90eaef79e5Smrg *[\\/]* ) as_myself=$0 ;; 91eaef79e5Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92eaef79e5Smrgfor as_dir in $PATH 93eaef79e5Smrgdo 94eaef79e5Smrg IFS=$as_save_IFS 95433d0511Smrg case $as_dir in #((( 96433d0511Smrg '') as_dir=./ ;; 97433d0511Smrg */) ;; 98433d0511Smrg *) as_dir=$as_dir/ ;; 99433d0511Smrg esac 100433d0511Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10195e0246bSmrg done 102eaef79e5SmrgIFS=$as_save_IFS 103eaef79e5Smrg 104eaef79e5Smrg ;; 105eaef79e5Smrgesac 106433d0511Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 107eaef79e5Smrg# in which case we are not to be found in the path. 108eaef79e5Smrgif test "x$as_myself" = x; then 109eaef79e5Smrg as_myself=$0 110eaef79e5Smrgfi 111eaef79e5Smrgif test ! -f "$as_myself"; then 112433d0511Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11395e0246bSmrg exit 1 114eaef79e5Smrgfi 115eaef79e5Smrg 11695e0246bSmrg 117d1a7ce7bSmrg# Use a proper internal environment variable to ensure we don't fall 118d1a7ce7bSmrg # into an infinite loop, continuously re-executing ourselves. 119d1a7ce7bSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120d1a7ce7bSmrg _as_can_reexec=no; export _as_can_reexec; 121d1a7ce7bSmrg # We cannot yet assume a decent shell, so we have to provide a 122d1a7ce7bSmrg# neutralization value for shells without unset; and this also 123d1a7ce7bSmrg# works around shells that cannot unset nonexistent variables. 124d1a7ce7bSmrg# Preserve -v and -x to the replacement shell. 125d1a7ce7bSmrgBASH_ENV=/dev/null 126d1a7ce7bSmrgENV=/dev/null 127d1a7ce7bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128d1a7ce7bSmrgcase $- in # (((( 129d1a7ce7bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 130d1a7ce7bSmrg *v* ) as_opts=-v ;; 131d1a7ce7bSmrg *x* ) as_opts=-x ;; 132d1a7ce7bSmrg * ) as_opts= ;; 133d1a7ce7bSmrgesac 134d1a7ce7bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135d1a7ce7bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 136433d0511Smrg# out after a failed 'exec'. 137433d0511Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138433d0511Smrgexit 255 139d1a7ce7bSmrg fi 140d1a7ce7bSmrg # We don't want this to propagate to other subprocesses. 141d1a7ce7bSmrg { _as_can_reexec=; unset _as_can_reexec;} 14295e0246bSmrgif test "x$CONFIG_SHELL" = x; then 143433d0511Smrg as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144433d0511Smrgthen : 14595e0246bSmrg emulate sh 14695e0246bSmrg NULLCMD=: 14795e0246bSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14895e0246bSmrg # is contrary to our usage. Disable this feature. 14995e0246bSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15095e0246bSmrg setopt NO_GLOB_SUBST 151433d0511Smrgelse case e in #( 152433d0511Smrg e) case \`(set -o) 2>/dev/null\` in #( 15395e0246bSmrg *posix*) : 15495e0246bSmrg set -o posix ;; #( 15595e0246bSmrg *) : 15695e0246bSmrg ;; 157433d0511Smrgesac ;; 15895e0246bSmrgesac 15995e0246bSmrgfi 16095e0246bSmrg" 16195e0246bSmrg as_required="as_fn_return () { (exit \$1); } 16295e0246bSmrgas_fn_success () { as_fn_return 0; } 16395e0246bSmrgas_fn_failure () { as_fn_return 1; } 16495e0246bSmrgas_fn_ret_success () { return 0; } 16595e0246bSmrgas_fn_ret_failure () { return 1; } 16695e0246bSmrg 16795e0246bSmrgexitcode=0 16895e0246bSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16995e0246bSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17095e0246bSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17195e0246bSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172433d0511Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173433d0511Smrgthen : 17495e0246bSmrg 175433d0511Smrgelse case e in #( 176433d0511Smrg e) exitcode=1; echo positional parameters were not saved. ;; 177433d0511Smrgesac 17895e0246bSmrgfi 179d1a7ce7bSmrgtest x\$exitcode = x0 || exit 1 180433d0511Smrgblah=\$(echo \$(echo blah)) 181433d0511Smrgtest x\"\$blah\" = xblah || exit 1 182d1a7ce7bSmrgtest -x / || exit 1" 18395e0246bSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18495e0246bSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18595e0246bSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18695e0246bSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18795e0246bSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 188433d0511Smrg if (eval "$as_required") 2>/dev/null 189433d0511Smrgthen : 19095e0246bSmrg as_have_required=yes 191433d0511Smrgelse case e in #( 192433d0511Smrg e) as_have_required=no ;; 193433d0511Smrgesac 19495e0246bSmrgfi 195433d0511Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196433d0511Smrgthen : 19795e0246bSmrg 198433d0511Smrgelse case e in #( 199433d0511Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20095e0246bSmrgas_found=false 20195e0246bSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20295e0246bSmrgdo 20395e0246bSmrg IFS=$as_save_IFS 204433d0511Smrg case $as_dir in #((( 205433d0511Smrg '') as_dir=./ ;; 206433d0511Smrg */) ;; 207433d0511Smrg *) as_dir=$as_dir/ ;; 208433d0511Smrg esac 20995e0246bSmrg as_found=: 21095e0246bSmrg case $as_dir in #( 21195e0246bSmrg /*) 21295e0246bSmrg for as_base in sh bash ksh sh5; do 21395e0246bSmrg # Try only shells that exist, to save several forks. 214433d0511Smrg as_shell=$as_dir$as_base 21595e0246bSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216433d0511Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217433d0511Smrgthen : 21895e0246bSmrg CONFIG_SHELL=$as_shell as_have_required=yes 219433d0511Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220433d0511Smrgthen : 22195e0246bSmrg break 2 22295e0246bSmrgfi 22395e0246bSmrgfi 22495e0246bSmrg done;; 22595e0246bSmrg esac 22695e0246bSmrg as_found=false 22795e0246bSmrgdone 22895e0246bSmrgIFS=$as_save_IFS 229433d0511Smrgif $as_found 230433d0511Smrgthen : 231433d0511Smrg 232433d0511Smrgelse case e in #( 233433d0511Smrg e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234433d0511Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235433d0511Smrgthen : 236433d0511Smrg CONFIG_SHELL=$SHELL as_have_required=yes 237433d0511Smrgfi ;; 238433d0511Smrgesac 239433d0511Smrgfi 24095e0246bSmrg 24195e0246bSmrg 242433d0511Smrg if test "x$CONFIG_SHELL" != x 243433d0511Smrgthen : 244d1a7ce7bSmrg export CONFIG_SHELL 245d1a7ce7bSmrg # We cannot yet assume a decent shell, so we have to provide a 246d1a7ce7bSmrg# neutralization value for shells without unset; and this also 247d1a7ce7bSmrg# works around shells that cannot unset nonexistent variables. 248d1a7ce7bSmrg# Preserve -v and -x to the replacement shell. 249d1a7ce7bSmrgBASH_ENV=/dev/null 250d1a7ce7bSmrgENV=/dev/null 251d1a7ce7bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252d1a7ce7bSmrgcase $- in # (((( 253d1a7ce7bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 254d1a7ce7bSmrg *v* ) as_opts=-v ;; 255d1a7ce7bSmrg *x* ) as_opts=-x ;; 256d1a7ce7bSmrg * ) as_opts= ;; 257d1a7ce7bSmrgesac 258d1a7ce7bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259d1a7ce7bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 260433d0511Smrg# out after a failed 'exec'. 261433d0511Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262d1a7ce7bSmrgexit 255 26395e0246bSmrgfi 26495e0246bSmrg 265433d0511Smrg if test x$as_have_required = xno 266433d0511Smrgthen : 267433d0511Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 268433d0511Smrg printf "%s\n" "$0: the shells that I found on your system." 269433d0511Smrg if test ${ZSH_VERSION+y} ; then 270433d0511Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271433d0511Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 27295e0246bSmrg else 273433d0511Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 2746654de8bSmrg$0: https://gitlab.freedesktop.org/xorg/app/bitmap/issues 27595e0246bSmrg$0: about your system, including any error possibly output 27695e0246bSmrg$0: before this message. Then install a modern shell, or 27795e0246bSmrg$0: manually run the script under such a shell if you do 27895e0246bSmrg$0: have one." 27995e0246bSmrg fi 28095e0246bSmrg exit 1 281433d0511Smrgfi ;; 282433d0511Smrgesac 28395e0246bSmrgfi 28495e0246bSmrgfi 28595e0246bSmrgSHELL=${CONFIG_SHELL-/bin/sh} 28695e0246bSmrgexport SHELL 28795e0246bSmrg# Unset more variables known to interfere with behavior of common tools. 28895e0246bSmrgCLICOLOR_FORCE= GREP_OPTIONS= 28995e0246bSmrgunset CLICOLOR_FORCE GREP_OPTIONS 29095e0246bSmrg 29195e0246bSmrg## --------------------- ## 29295e0246bSmrg## M4sh Shell Functions. ## 29395e0246bSmrg## --------------------- ## 29495e0246bSmrg# as_fn_unset VAR 29595e0246bSmrg# --------------- 29695e0246bSmrg# Portably unset VAR. 29795e0246bSmrgas_fn_unset () 29895e0246bSmrg{ 29995e0246bSmrg { eval $1=; unset $1;} 30095e0246bSmrg} 30195e0246bSmrgas_unset=as_fn_unset 30295e0246bSmrg 303433d0511Smrg 30495e0246bSmrg# as_fn_set_status STATUS 30595e0246bSmrg# ----------------------- 30695e0246bSmrg# Set $? to STATUS, without forking. 30795e0246bSmrgas_fn_set_status () 30895e0246bSmrg{ 30995e0246bSmrg return $1 31095e0246bSmrg} # as_fn_set_status 31195e0246bSmrg 31295e0246bSmrg# as_fn_exit STATUS 31395e0246bSmrg# ----------------- 31495e0246bSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31595e0246bSmrgas_fn_exit () 31695e0246bSmrg{ 31795e0246bSmrg set +e 31895e0246bSmrg as_fn_set_status $1 31995e0246bSmrg exit $1 32095e0246bSmrg} # as_fn_exit 32195e0246bSmrg 32295e0246bSmrg# as_fn_mkdir_p 32395e0246bSmrg# ------------- 32495e0246bSmrg# Create "$as_dir" as a directory, including parents if necessary. 32595e0246bSmrgas_fn_mkdir_p () 32695e0246bSmrg{ 32795e0246bSmrg 32895e0246bSmrg case $as_dir in #( 32995e0246bSmrg -*) as_dir=./$as_dir;; 33095e0246bSmrg esac 33195e0246bSmrg test -d "$as_dir" || eval $as_mkdir_p || { 33295e0246bSmrg as_dirs= 33395e0246bSmrg while :; do 33495e0246bSmrg case $as_dir in #( 335433d0511Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33695e0246bSmrg *) as_qdir=$as_dir;; 33795e0246bSmrg esac 33895e0246bSmrg as_dirs="'$as_qdir' $as_dirs" 33995e0246bSmrg as_dir=`$as_dirname -- "$as_dir" || 34095e0246bSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34195e0246bSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34295e0246bSmrg X"$as_dir" : 'X\(//\)$' \| \ 34395e0246bSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344433d0511Smrgprintf "%s\n" X"$as_dir" | 34595e0246bSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34695e0246bSmrg s//\1/ 34795e0246bSmrg q 34895e0246bSmrg } 34995e0246bSmrg /^X\(\/\/\)[^/].*/{ 35095e0246bSmrg s//\1/ 35195e0246bSmrg q 35295e0246bSmrg } 35395e0246bSmrg /^X\(\/\/\)$/{ 35495e0246bSmrg s//\1/ 35595e0246bSmrg q 35695e0246bSmrg } 35795e0246bSmrg /^X\(\/\).*/{ 35895e0246bSmrg s//\1/ 35995e0246bSmrg q 36095e0246bSmrg } 36195e0246bSmrg s/.*/./; q'` 36295e0246bSmrg test -d "$as_dir" && break 36395e0246bSmrg done 36495e0246bSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36595e0246bSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 36695e0246bSmrg 36795e0246bSmrg 36895e0246bSmrg} # as_fn_mkdir_p 369d1a7ce7bSmrg 370d1a7ce7bSmrg# as_fn_executable_p FILE 371d1a7ce7bSmrg# ----------------------- 372d1a7ce7bSmrg# Test if FILE is an executable regular file. 373d1a7ce7bSmrgas_fn_executable_p () 374d1a7ce7bSmrg{ 375d1a7ce7bSmrg test -f "$1" && test -x "$1" 376d1a7ce7bSmrg} # as_fn_executable_p 37795e0246bSmrg# as_fn_append VAR VALUE 37895e0246bSmrg# ---------------------- 37995e0246bSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38095e0246bSmrg# advantage of any shell optimizations that allow amortized linear growth over 38195e0246bSmrg# repeated appends, instead of the typical quadratic growth present in naive 38295e0246bSmrg# implementations. 383433d0511Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384433d0511Smrgthen : 38595e0246bSmrg eval 'as_fn_append () 38695e0246bSmrg { 38795e0246bSmrg eval $1+=\$2 38895e0246bSmrg }' 389433d0511Smrgelse case e in #( 390433d0511Smrg e) as_fn_append () 39195e0246bSmrg { 39295e0246bSmrg eval $1=\$$1\$2 393433d0511Smrg } ;; 394433d0511Smrgesac 39595e0246bSmrgfi # as_fn_append 39695e0246bSmrg 39795e0246bSmrg# as_fn_arith ARG... 39895e0246bSmrg# ------------------ 39995e0246bSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40095e0246bSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40195e0246bSmrg# must be portable across $(()) and expr. 402433d0511Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403433d0511Smrgthen : 40495e0246bSmrg eval 'as_fn_arith () 40595e0246bSmrg { 40695e0246bSmrg as_val=$(( $* )) 40795e0246bSmrg }' 408433d0511Smrgelse case e in #( 409433d0511Smrg e) as_fn_arith () 41095e0246bSmrg { 41195e0246bSmrg as_val=`expr "$@" || test $? -eq 1` 412433d0511Smrg } ;; 413433d0511Smrgesac 41495e0246bSmrgfi # as_fn_arith 41595e0246bSmrg 41695e0246bSmrg 41795e0246bSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 41895e0246bSmrg# ---------------------------------------- 41995e0246bSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 42095e0246bSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 42195e0246bSmrg# script with STATUS, using 1 if that was 0. 42295e0246bSmrgas_fn_error () 42395e0246bSmrg{ 42495e0246bSmrg as_status=$1; test $as_status -eq 0 && as_status=1 42595e0246bSmrg if test "$4"; then 42695e0246bSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 42895e0246bSmrg fi 429433d0511Smrg printf "%s\n" "$as_me: error: $2" >&2 43095e0246bSmrg as_fn_exit $as_status 43195e0246bSmrg} # as_fn_error 43295e0246bSmrg 433eaef79e5Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 434eaef79e5Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 435eaef79e5Smrg as_expr=expr 436eaef79e5Smrgelse 437eaef79e5Smrg as_expr=false 438eaef79e5Smrgfi 439eaef79e5Smrg 440eaef79e5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441eaef79e5Smrg as_basename=basename 442eaef79e5Smrgelse 443eaef79e5Smrg as_basename=false 444eaef79e5Smrgfi 445eaef79e5Smrg 44695e0246bSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 44795e0246bSmrg as_dirname=dirname 44895e0246bSmrgelse 44995e0246bSmrg as_dirname=false 45095e0246bSmrgfi 451eaef79e5Smrg 452eaef79e5Smrgas_me=`$as_basename -- "$0" || 453eaef79e5Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454eaef79e5Smrg X"$0" : 'X\(//\)$' \| \ 455eaef79e5Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 456433d0511Smrgprintf "%s\n" X/"$0" | 457eaef79e5Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 458eaef79e5Smrg s//\1/ 459eaef79e5Smrg q 460eaef79e5Smrg } 461eaef79e5Smrg /^X\/\(\/\/\)$/{ 462eaef79e5Smrg s//\1/ 463eaef79e5Smrg q 464eaef79e5Smrg } 465eaef79e5Smrg /^X\/\(\/\).*/{ 466eaef79e5Smrg s//\1/ 467eaef79e5Smrg q 468eaef79e5Smrg } 469eaef79e5Smrg s/.*/./; q'` 470eaef79e5Smrg 47195e0246bSmrg# Avoid depending upon Character Ranges. 47295e0246bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 47395e0246bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 47495e0246bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 47595e0246bSmrgas_cr_digits='0123456789' 47695e0246bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 477eaef79e5Smrg 478eaef79e5Smrg 47995e0246bSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 48095e0246bSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 48195e0246bSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 48295e0246bSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 48395e0246bSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 48495e0246bSmrg sed -n ' 48595e0246bSmrg p 48695e0246bSmrg /[$]LINENO/= 48795e0246bSmrg ' <$as_myself | 48895e0246bSmrg sed ' 489433d0511Smrg t clear 490433d0511Smrg :clear 49195e0246bSmrg s/[$]LINENO.*/&-/ 49295e0246bSmrg t lineno 49395e0246bSmrg b 49495e0246bSmrg :lineno 49595e0246bSmrg N 49695e0246bSmrg :loop 49795e0246bSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 49895e0246bSmrg t loop 49995e0246bSmrg s/-\n.*// 50095e0246bSmrg ' >$as_me.lineno && 50195e0246bSmrg chmod +x "$as_me.lineno" || 502433d0511Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503eaef79e5Smrg 504d1a7ce7bSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505d1a7ce7bSmrg # already done that, so ensure we don't try to do so again and fall 506d1a7ce7bSmrg # in an infinite loop. This has already happened in practice. 507d1a7ce7bSmrg _as_can_reexec=no; export _as_can_reexec 50895e0246bSmrg # Don't try to exec as it changes $[0], causing all sort of problems 50995e0246bSmrg # (the dirname of $[0] is not the place where we might find the 51095e0246bSmrg # original and so on. Autoconf is especially sensitive to this). 51195e0246bSmrg . "./$as_me.lineno" 51295e0246bSmrg # Exit status is that of the last command. 51395e0246bSmrg exit 514eaef79e5Smrg} 515eaef79e5Smrg 516433d0511Smrg 517433d0511Smrg# Determine whether it's possible to make 'echo' print without a newline. 518433d0511Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519433d0511Smrg# for compatibility with existing Makefiles. 52095e0246bSmrgECHO_C= ECHO_N= ECHO_T= 52195e0246bSmrgcase `echo -n x` in #((((( 52295e0246bSmrg-n*) 52395e0246bSmrg case `echo 'xy\c'` in 52495e0246bSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52595e0246bSmrg xy) ECHO_C='\c';; 52695e0246bSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52795e0246bSmrg ECHO_T=' ';; 52895e0246bSmrg esac;; 52995e0246bSmrg*) 53095e0246bSmrg ECHO_N='-n';; 53195e0246bSmrgesac 532eaef79e5Smrg 533433d0511Smrg# For backward compatibility with old third-party macros, we provide 534433d0511Smrg# the shell variables $as_echo and $as_echo_n. New code should use 535433d0511Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536433d0511Smrgas_echo='printf %s\n' 537433d0511Smrgas_echo_n='printf %s' 538433d0511Smrg 53995e0246bSmrgrm -f conf$$ conf$$.exe conf$$.file 54095e0246bSmrgif test -d conf$$.dir; then 54195e0246bSmrg rm -f conf$$.dir/conf$$.file 54295e0246bSmrgelse 54395e0246bSmrg rm -f conf$$.dir 54495e0246bSmrg mkdir conf$$.dir 2>/dev/null 545eaef79e5Smrgfi 54695e0246bSmrgif (echo >conf$$.file) 2>/dev/null; then 54795e0246bSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 54895e0246bSmrg as_ln_s='ln -s' 54995e0246bSmrg # ... but there are two gotchas: 550433d0511Smrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551433d0511Smrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552433d0511Smrg # In both cases, we have to default to 'cp -pR'. 55395e0246bSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554d1a7ce7bSmrg as_ln_s='cp -pR' 55595e0246bSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 55695e0246bSmrg as_ln_s=ln 55795e0246bSmrg else 558d1a7ce7bSmrg as_ln_s='cp -pR' 55995e0246bSmrg fi 560eaef79e5Smrgelse 561d1a7ce7bSmrg as_ln_s='cp -pR' 562eaef79e5Smrgfi 56395e0246bSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 56495e0246bSmrgrmdir conf$$.dir 2>/dev/null 565eaef79e5Smrg 56695e0246bSmrgif mkdir -p . 2>/dev/null; then 56795e0246bSmrg as_mkdir_p='mkdir -p "$as_dir"' 56895e0246bSmrgelse 56995e0246bSmrg test -d ./-p && rmdir ./-p 57095e0246bSmrg as_mkdir_p=false 571eaef79e5Smrgfi 572eaef79e5Smrg 573d1a7ce7bSmrgas_test_x='test -x' 574d1a7ce7bSmrgas_executable_p=as_fn_executable_p 575eaef79e5Smrg 57695e0246bSmrg# Sed expression to map a string onto a valid CPP name. 577433d0511Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578433d0511Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579eaef79e5Smrg 58095e0246bSmrg# Sed expression to map a string onto a valid variable name. 581433d0511Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582433d0511Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 583eaef79e5Smrg 584eaef79e5Smrg 58595e0246bSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 58695e0246bSmrgexec 6>&1 587eaef79e5Smrg 588eaef79e5Smrg# Name of the host. 58995e0246bSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590eaef79e5Smrg# so uname gets run too. 591eaef79e5Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592eaef79e5Smrg 593eaef79e5Smrg# 594eaef79e5Smrg# Initializations. 595eaef79e5Smrg# 596eaef79e5Smrgac_default_prefix=/usr/local 597eaef79e5Smrgac_clean_files= 598eaef79e5Smrgac_config_libobj_dir=. 599eaef79e5SmrgLIBOBJS= 600eaef79e5Smrgcross_compiling=no 601eaef79e5Smrgsubdirs= 602eaef79e5SmrgMFLAGS= 603eaef79e5SmrgMAKEFLAGS= 604eaef79e5Smrg 605eaef79e5Smrg# Identity of this package. 606eaef79e5SmrgPACKAGE_NAME='bitmap' 607eaef79e5SmrgPACKAGE_TARNAME='bitmap' 608433d0511SmrgPACKAGE_VERSION='1.1.1' 609433d0511SmrgPACKAGE_STRING='bitmap 1.1.1' 6106654de8bSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/bitmap/issues' 61195e0246bSmrgPACKAGE_URL='' 612eaef79e5Smrg 613cbc4e2beSmrgac_unique_file="Makefile.am" 6142b32c8f7Smrg# Factoring default headers for most tests. 6152b32c8f7Smrgac_includes_default="\ 616433d0511Smrg#include <stddef.h> 617433d0511Smrg#ifdef HAVE_STDIO_H 618433d0511Smrg# include <stdio.h> 6192b32c8f7Smrg#endif 620433d0511Smrg#ifdef HAVE_STDLIB_H 6212b32c8f7Smrg# include <stdlib.h> 6222b32c8f7Smrg#endif 6232b32c8f7Smrg#ifdef HAVE_STRING_H 6242b32c8f7Smrg# include <string.h> 6252b32c8f7Smrg#endif 6262b32c8f7Smrg#ifdef HAVE_INTTYPES_H 6272b32c8f7Smrg# include <inttypes.h> 6282b32c8f7Smrg#endif 6292b32c8f7Smrg#ifdef HAVE_STDINT_H 6302b32c8f7Smrg# include <stdint.h> 6312b32c8f7Smrg#endif 632433d0511Smrg#ifdef HAVE_STRINGS_H 633433d0511Smrg# include <strings.h> 634433d0511Smrg#endif 635433d0511Smrg#ifdef HAVE_SYS_TYPES_H 636433d0511Smrg# include <sys/types.h> 637433d0511Smrg#endif 638433d0511Smrg#ifdef HAVE_SYS_STAT_H 639433d0511Smrg# include <sys/stat.h> 640433d0511Smrg#endif 6412b32c8f7Smrg#ifdef HAVE_UNISTD_H 6422b32c8f7Smrg# include <unistd.h> 6432b32c8f7Smrg#endif" 6442b32c8f7Smrg 645433d0511Smrgac_header_c_list= 646433d0511Smrgenable_year2038=no 6472b32c8f7Smrgac_subst_vars='am__EXEEXT_FALSE 6482b32c8f7Smrgam__EXEEXT_TRUE 6492b32c8f7SmrgLTLIBOBJS 6502b32c8f7SmrgLIBOBJS 6512b32c8f7Smrgappdefaultdir 6522b32c8f7SmrgAPPDEFS_LIBS 6532b32c8f7SmrgAPPDEFS_CFLAGS 6542b32c8f7SmrgBITMAP_LIBS 6552b32c8f7SmrgBITMAP_CFLAGS 6562b32c8f7SmrgATOBM_LIBS 6572b32c8f7SmrgATOBM_CFLAGS 6582b32c8f7SmrgBMTOA_LIBS 6592b32c8f7SmrgBMTOA_CFLAGS 660cbc4e2beSmrgMATH_LIBS 66195e0246bSmrgMAN_SUBSTS 66295e0246bSmrgXORG_MAN_PAGE 6632b32c8f7SmrgADMIN_MAN_DIR 6642b32c8f7SmrgDRIVER_MAN_DIR 6652b32c8f7SmrgMISC_MAN_DIR 6662b32c8f7SmrgFILE_MAN_DIR 6672b32c8f7SmrgLIB_MAN_DIR 6682b32c8f7SmrgAPP_MAN_DIR 6692b32c8f7SmrgADMIN_MAN_SUFFIX 6702b32c8f7SmrgDRIVER_MAN_SUFFIX 6712b32c8f7SmrgMISC_MAN_SUFFIX 6722b32c8f7SmrgFILE_MAN_SUFFIX 6732b32c8f7SmrgLIB_MAN_SUFFIX 6742b32c8f7SmrgAPP_MAN_SUFFIX 67595e0246bSmrgSED 6762b32c8f7Smrghost_os 6772b32c8f7Smrghost_vendor 6782b32c8f7Smrghost_cpu 6792b32c8f7Smrghost 6802b32c8f7Smrgbuild_os 6812b32c8f7Smrgbuild_vendor 6822b32c8f7Smrgbuild_cpu 6832b32c8f7Smrgbuild 68495e0246bSmrgINSTALL_CMD 6856654de8bSmrgPKG_CONFIG_LIBDIR 6866654de8bSmrgPKG_CONFIG_PATH 68795e0246bSmrgPKG_CONFIG 6882b32c8f7SmrgCHANGELOG_CMD 689cbc4e2beSmrgSTRICT_CFLAGS 6902b32c8f7SmrgCWARNFLAGS 691cbc4e2beSmrgBASE_CFLAGS 6922b32c8f7Smrgam__fastdepCC_FALSE 6932b32c8f7Smrgam__fastdepCC_TRUE 6942b32c8f7SmrgCCDEPMODE 695cbc4e2beSmrgam__nodep 6962b32c8f7SmrgAMDEPBACKSLASH 6972b32c8f7SmrgAMDEP_FALSE 6982b32c8f7SmrgAMDEP_TRUE 6992b32c8f7Smrgam__include 7002b32c8f7SmrgDEPDIR 7012b32c8f7SmrgOBJEXT 7022b32c8f7SmrgEXEEXT 7032b32c8f7Smrgac_ct_CC 7042b32c8f7SmrgCPPFLAGS 7052b32c8f7SmrgLDFLAGS 7062b32c8f7SmrgCFLAGS 7072b32c8f7SmrgCC 708cbc4e2beSmrgAM_BACKSLASH 709cbc4e2beSmrgAM_DEFAULT_VERBOSITY 710cbc4e2beSmrgAM_DEFAULT_V 711cbc4e2beSmrgAM_V 712433d0511SmrgCSCOPE 713433d0511SmrgETAGS 714433d0511SmrgCTAGS 7152b32c8f7Smrgam__untar 7162b32c8f7Smrgam__tar 7172b32c8f7SmrgAMTAR 7182b32c8f7Smrgam__leading_dot 7192b32c8f7SmrgSET_MAKE 7202b32c8f7SmrgAWK 7212b32c8f7Smrgmkdir_p 7222b32c8f7SmrgMKDIR_P 7232b32c8f7SmrgINSTALL_STRIP_PROGRAM 7242b32c8f7SmrgSTRIP 7252b32c8f7Smrginstall_sh 7262b32c8f7SmrgMAKEINFO 7272b32c8f7SmrgAUTOHEADER 7282b32c8f7SmrgAUTOMAKE 7292b32c8f7SmrgAUTOCONF 7302b32c8f7SmrgACLOCAL 7312b32c8f7SmrgVERSION 7322b32c8f7SmrgPACKAGE 7332b32c8f7SmrgCYGPATH_W 7342b32c8f7Smrgam__isrc 7352b32c8f7SmrgINSTALL_DATA 7362b32c8f7SmrgINSTALL_SCRIPT 7372b32c8f7SmrgINSTALL_PROGRAM 7382b32c8f7Smrgtarget_alias 7392b32c8f7Smrghost_alias 740eaef79e5Smrgbuild_alias 7412b32c8f7SmrgLIBS 7422b32c8f7SmrgECHO_T 7432b32c8f7SmrgECHO_N 7442b32c8f7SmrgECHO_C 7452b32c8f7SmrgDEFS 7462b32c8f7Smrgmandir 7472b32c8f7Smrglocaledir 7482b32c8f7Smrglibdir 7492b32c8f7Smrgpsdir 7502b32c8f7Smrgpdfdir 7512b32c8f7Smrgdvidir 7522b32c8f7Smrghtmldir 7532b32c8f7Smrginfodir 7542b32c8f7Smrgdocdir 7552b32c8f7Smrgoldincludedir 7562b32c8f7Smrgincludedir 757433d0511Smrgrunstatedir 7582b32c8f7Smrglocalstatedir 7592b32c8f7Smrgsharedstatedir 7602b32c8f7Smrgsysconfdir 7612b32c8f7Smrgdatadir 7622b32c8f7Smrgdatarootdir 7632b32c8f7Smrglibexecdir 7642b32c8f7Smrgsbindir 7652b32c8f7Smrgbindir 7662b32c8f7Smrgprogram_transform_name 7672b32c8f7Smrgprefix 7682b32c8f7Smrgexec_prefix 76995e0246bSmrgPACKAGE_URL 7702b32c8f7SmrgPACKAGE_BUGREPORT 7712b32c8f7SmrgPACKAGE_STRING 7722b32c8f7SmrgPACKAGE_VERSION 7732b32c8f7SmrgPACKAGE_TARNAME 7742b32c8f7SmrgPACKAGE_NAME 7752b32c8f7SmrgPATH_SEPARATOR 776433d0511SmrgSHELL 777433d0511Smrgam__quote' 7782b32c8f7Smrgac_subst_files='' 7792b32c8f7Smrgac_user_opts=' 7802b32c8f7Smrgenable_option_checking 781cbc4e2beSmrgenable_silent_rules 7822b32c8f7Smrgenable_dependency_tracking 783cbc4e2beSmrgenable_selective_werror 7842b32c8f7Smrgenable_strict_compilation 785433d0511Smrgenable_largefile 7862b32c8f7Smrgwith_appdefaultdir 787433d0511Smrgenable_year2038 7882b32c8f7Smrg' 7892b32c8f7Smrg ac_precious_vars='build_alias 790eaef79e5Smrghost_alias 791eaef79e5Smrgtarget_alias 792eaef79e5SmrgCC 793eaef79e5SmrgCFLAGS 794eaef79e5SmrgLDFLAGS 7952b32c8f7SmrgLIBS 796eaef79e5SmrgCPPFLAGS 797eaef79e5SmrgPKG_CONFIG 7986654de8bSmrgPKG_CONFIG_PATH 7996654de8bSmrgPKG_CONFIG_LIBDIR 800eaef79e5SmrgBMTOA_CFLAGS 801eaef79e5SmrgBMTOA_LIBS 802eaef79e5SmrgATOBM_CFLAGS 803eaef79e5SmrgATOBM_LIBS 804eaef79e5SmrgBITMAP_CFLAGS 805eaef79e5SmrgBITMAP_LIBS 806eaef79e5SmrgAPPDEFS_CFLAGS 807eaef79e5SmrgAPPDEFS_LIBS' 808eaef79e5Smrg 809eaef79e5Smrg 810eaef79e5Smrg# Initialize some variables set by options. 811eaef79e5Smrgac_init_help= 812eaef79e5Smrgac_init_version=false 8132b32c8f7Smrgac_unrecognized_opts= 8142b32c8f7Smrgac_unrecognized_sep= 815eaef79e5Smrg# The variables have the same names as the options, with 816eaef79e5Smrg# dashes changed to underlines. 817eaef79e5Smrgcache_file=/dev/null 818eaef79e5Smrgexec_prefix=NONE 819eaef79e5Smrgno_create= 820eaef79e5Smrgno_recursion= 821eaef79e5Smrgprefix=NONE 822eaef79e5Smrgprogram_prefix=NONE 823eaef79e5Smrgprogram_suffix=NONE 824eaef79e5Smrgprogram_transform_name=s,x,x, 825eaef79e5Smrgsilent= 826eaef79e5Smrgsite= 827eaef79e5Smrgsrcdir= 828eaef79e5Smrgverbose= 829eaef79e5Smrgx_includes=NONE 830eaef79e5Smrgx_libraries=NONE 831eaef79e5Smrg 832eaef79e5Smrg# Installation directory options. 833eaef79e5Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 834eaef79e5Smrg# and all the variables that are supposed to be based on exec_prefix 835eaef79e5Smrg# by default will actually change. 836eaef79e5Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 837eaef79e5Smrg# (The list follows the same order as the GNU Coding Standards.) 838eaef79e5Smrgbindir='${exec_prefix}/bin' 839eaef79e5Smrgsbindir='${exec_prefix}/sbin' 840eaef79e5Smrglibexecdir='${exec_prefix}/libexec' 841eaef79e5Smrgdatarootdir='${prefix}/share' 842eaef79e5Smrgdatadir='${datarootdir}' 843eaef79e5Smrgsysconfdir='${prefix}/etc' 844eaef79e5Smrgsharedstatedir='${prefix}/com' 845eaef79e5Smrglocalstatedir='${prefix}/var' 846433d0511Smrgrunstatedir='${localstatedir}/run' 847eaef79e5Smrgincludedir='${prefix}/include' 848eaef79e5Smrgoldincludedir='/usr/include' 849eaef79e5Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850eaef79e5Smrginfodir='${datarootdir}/info' 851eaef79e5Smrghtmldir='${docdir}' 852eaef79e5Smrgdvidir='${docdir}' 853eaef79e5Smrgpdfdir='${docdir}' 854eaef79e5Smrgpsdir='${docdir}' 855eaef79e5Smrglibdir='${exec_prefix}/lib' 856eaef79e5Smrglocaledir='${datarootdir}/locale' 857eaef79e5Smrgmandir='${datarootdir}/man' 858eaef79e5Smrg 859eaef79e5Smrgac_prev= 860eaef79e5Smrgac_dashdash= 861eaef79e5Smrgfor ac_option 862eaef79e5Smrgdo 863eaef79e5Smrg # If the previous option needs an argument, assign it. 864eaef79e5Smrg if test -n "$ac_prev"; then 865eaef79e5Smrg eval $ac_prev=\$ac_option 866eaef79e5Smrg ac_prev= 867eaef79e5Smrg continue 868eaef79e5Smrg fi 869eaef79e5Smrg 870eaef79e5Smrg case $ac_option in 87195e0246bSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 87295e0246bSmrg *=) ac_optarg= ;; 87395e0246bSmrg *) ac_optarg=yes ;; 874eaef79e5Smrg esac 875eaef79e5Smrg 876eaef79e5Smrg case $ac_dashdash$ac_option in 877eaef79e5Smrg --) 878eaef79e5Smrg ac_dashdash=yes ;; 879eaef79e5Smrg 880eaef79e5Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 881eaef79e5Smrg ac_prev=bindir ;; 882eaef79e5Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883eaef79e5Smrg bindir=$ac_optarg ;; 884eaef79e5Smrg 885eaef79e5Smrg -build | --build | --buil | --bui | --bu) 886eaef79e5Smrg ac_prev=build_alias ;; 887eaef79e5Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888eaef79e5Smrg build_alias=$ac_optarg ;; 889eaef79e5Smrg 890eaef79e5Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 891eaef79e5Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892eaef79e5Smrg ac_prev=cache_file ;; 893eaef79e5Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894eaef79e5Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895eaef79e5Smrg cache_file=$ac_optarg ;; 896eaef79e5Smrg 897eaef79e5Smrg --config-cache | -C) 898eaef79e5Smrg cache_file=config.cache ;; 899eaef79e5Smrg 900eaef79e5Smrg -datadir | --datadir | --datadi | --datad) 901eaef79e5Smrg ac_prev=datadir ;; 902eaef79e5Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 903eaef79e5Smrg datadir=$ac_optarg ;; 904eaef79e5Smrg 905eaef79e5Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906eaef79e5Smrg | --dataroo | --dataro | --datar) 907eaef79e5Smrg ac_prev=datarootdir ;; 908eaef79e5Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909eaef79e5Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910eaef79e5Smrg datarootdir=$ac_optarg ;; 911eaef79e5Smrg 912eaef79e5Smrg -disable-* | --disable-*) 9132b32c8f7Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914eaef79e5Smrg # Reject names that are not valid shell variable names. 9152b32c8f7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916433d0511Smrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9172b32c8f7Smrg ac_useropt_orig=$ac_useropt 918433d0511Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9192b32c8f7Smrg case $ac_user_opts in 9202b32c8f7Smrg *" 9212b32c8f7Smrg"enable_$ac_useropt" 9222b32c8f7Smrg"*) ;; 9232b32c8f7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9242b32c8f7Smrg ac_unrecognized_sep=', ';; 9252b32c8f7Smrg esac 9262b32c8f7Smrg eval enable_$ac_useropt=no ;; 927eaef79e5Smrg 928eaef79e5Smrg -docdir | --docdir | --docdi | --doc | --do) 929eaef79e5Smrg ac_prev=docdir ;; 930eaef79e5Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931eaef79e5Smrg docdir=$ac_optarg ;; 932eaef79e5Smrg 933eaef79e5Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934eaef79e5Smrg ac_prev=dvidir ;; 935eaef79e5Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936eaef79e5Smrg dvidir=$ac_optarg ;; 937eaef79e5Smrg 938eaef79e5Smrg -enable-* | --enable-*) 9392b32c8f7Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940eaef79e5Smrg # Reject names that are not valid shell variable names. 9412b32c8f7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942433d0511Smrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9432b32c8f7Smrg ac_useropt_orig=$ac_useropt 944433d0511Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9452b32c8f7Smrg case $ac_user_opts in 9462b32c8f7Smrg *" 9472b32c8f7Smrg"enable_$ac_useropt" 9482b32c8f7Smrg"*) ;; 9492b32c8f7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9502b32c8f7Smrg ac_unrecognized_sep=', ';; 9512b32c8f7Smrg esac 9522b32c8f7Smrg eval enable_$ac_useropt=\$ac_optarg ;; 953eaef79e5Smrg 954eaef79e5Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955eaef79e5Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956eaef79e5Smrg | --exec | --exe | --ex) 957eaef79e5Smrg ac_prev=exec_prefix ;; 958eaef79e5Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959eaef79e5Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960eaef79e5Smrg | --exec=* | --exe=* | --ex=*) 961eaef79e5Smrg exec_prefix=$ac_optarg ;; 962eaef79e5Smrg 963eaef79e5Smrg -gas | --gas | --ga | --g) 964eaef79e5Smrg # Obsolete; use --with-gas. 965eaef79e5Smrg with_gas=yes ;; 966eaef79e5Smrg 967eaef79e5Smrg -help | --help | --hel | --he | -h) 968eaef79e5Smrg ac_init_help=long ;; 969eaef79e5Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970eaef79e5Smrg ac_init_help=recursive ;; 971eaef79e5Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972eaef79e5Smrg ac_init_help=short ;; 973eaef79e5Smrg 974eaef79e5Smrg -host | --host | --hos | --ho) 975eaef79e5Smrg ac_prev=host_alias ;; 976eaef79e5Smrg -host=* | --host=* | --hos=* | --ho=*) 977eaef79e5Smrg host_alias=$ac_optarg ;; 978eaef79e5Smrg 979eaef79e5Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980eaef79e5Smrg ac_prev=htmldir ;; 981eaef79e5Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982eaef79e5Smrg | --ht=*) 983eaef79e5Smrg htmldir=$ac_optarg ;; 984eaef79e5Smrg 985eaef79e5Smrg -includedir | --includedir | --includedi | --included | --include \ 986eaef79e5Smrg | --includ | --inclu | --incl | --inc) 987eaef79e5Smrg ac_prev=includedir ;; 988eaef79e5Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989eaef79e5Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 990eaef79e5Smrg includedir=$ac_optarg ;; 991eaef79e5Smrg 992eaef79e5Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 993eaef79e5Smrg ac_prev=infodir ;; 994eaef79e5Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995eaef79e5Smrg infodir=$ac_optarg ;; 996eaef79e5Smrg 997eaef79e5Smrg -libdir | --libdir | --libdi | --libd) 998eaef79e5Smrg ac_prev=libdir ;; 999eaef79e5Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000eaef79e5Smrg libdir=$ac_optarg ;; 1001eaef79e5Smrg 1002eaef79e5Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003eaef79e5Smrg | --libexe | --libex | --libe) 1004eaef79e5Smrg ac_prev=libexecdir ;; 1005eaef79e5Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006eaef79e5Smrg | --libexe=* | --libex=* | --libe=*) 1007eaef79e5Smrg libexecdir=$ac_optarg ;; 1008eaef79e5Smrg 1009eaef79e5Smrg -localedir | --localedir | --localedi | --localed | --locale) 1010eaef79e5Smrg ac_prev=localedir ;; 1011eaef79e5Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012eaef79e5Smrg localedir=$ac_optarg ;; 1013eaef79e5Smrg 1014eaef79e5Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015eaef79e5Smrg | --localstate | --localstat | --localsta | --localst | --locals) 1016eaef79e5Smrg ac_prev=localstatedir ;; 1017eaef79e5Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018eaef79e5Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019eaef79e5Smrg localstatedir=$ac_optarg ;; 1020eaef79e5Smrg 1021eaef79e5Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022eaef79e5Smrg ac_prev=mandir ;; 1023eaef79e5Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024eaef79e5Smrg mandir=$ac_optarg ;; 1025eaef79e5Smrg 1026eaef79e5Smrg -nfp | --nfp | --nf) 1027eaef79e5Smrg # Obsolete; use --without-fp. 1028eaef79e5Smrg with_fp=no ;; 1029eaef79e5Smrg 1030eaef79e5Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031eaef79e5Smrg | --no-cr | --no-c | -n) 1032eaef79e5Smrg no_create=yes ;; 1033eaef79e5Smrg 1034eaef79e5Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035eaef79e5Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036eaef79e5Smrg no_recursion=yes ;; 1037eaef79e5Smrg 1038eaef79e5Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039eaef79e5Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040eaef79e5Smrg | --oldin | --oldi | --old | --ol | --o) 1041eaef79e5Smrg ac_prev=oldincludedir ;; 1042eaef79e5Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043eaef79e5Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044eaef79e5Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045eaef79e5Smrg oldincludedir=$ac_optarg ;; 1046eaef79e5Smrg 1047eaef79e5Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048eaef79e5Smrg ac_prev=prefix ;; 1049eaef79e5Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050eaef79e5Smrg prefix=$ac_optarg ;; 1051eaef79e5Smrg 1052eaef79e5Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053eaef79e5Smrg | --program-pre | --program-pr | --program-p) 1054eaef79e5Smrg ac_prev=program_prefix ;; 1055eaef79e5Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056eaef79e5Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057eaef79e5Smrg program_prefix=$ac_optarg ;; 1058eaef79e5Smrg 1059eaef79e5Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060eaef79e5Smrg | --program-suf | --program-su | --program-s) 1061eaef79e5Smrg ac_prev=program_suffix ;; 1062eaef79e5Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063eaef79e5Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064eaef79e5Smrg program_suffix=$ac_optarg ;; 1065eaef79e5Smrg 1066eaef79e5Smrg -program-transform-name | --program-transform-name \ 1067eaef79e5Smrg | --program-transform-nam | --program-transform-na \ 1068eaef79e5Smrg | --program-transform-n | --program-transform- \ 1069eaef79e5Smrg | --program-transform | --program-transfor \ 1070eaef79e5Smrg | --program-transfo | --program-transf \ 1071eaef79e5Smrg | --program-trans | --program-tran \ 1072eaef79e5Smrg | --progr-tra | --program-tr | --program-t) 1073eaef79e5Smrg ac_prev=program_transform_name ;; 1074eaef79e5Smrg -program-transform-name=* | --program-transform-name=* \ 1075eaef79e5Smrg | --program-transform-nam=* | --program-transform-na=* \ 1076eaef79e5Smrg | --program-transform-n=* | --program-transform-=* \ 1077eaef79e5Smrg | --program-transform=* | --program-transfor=* \ 1078eaef79e5Smrg | --program-transfo=* | --program-transf=* \ 1079eaef79e5Smrg | --program-trans=* | --program-tran=* \ 1080eaef79e5Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1081eaef79e5Smrg program_transform_name=$ac_optarg ;; 1082eaef79e5Smrg 1083eaef79e5Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084eaef79e5Smrg ac_prev=pdfdir ;; 1085eaef79e5Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086eaef79e5Smrg pdfdir=$ac_optarg ;; 1087eaef79e5Smrg 1088eaef79e5Smrg -psdir | --psdir | --psdi | --psd | --ps) 1089eaef79e5Smrg ac_prev=psdir ;; 1090eaef79e5Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091eaef79e5Smrg psdir=$ac_optarg ;; 1092eaef79e5Smrg 1093eaef79e5Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094eaef79e5Smrg | -silent | --silent | --silen | --sile | --sil) 1095eaef79e5Smrg silent=yes ;; 1096eaef79e5Smrg 1097433d0511Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 1098433d0511Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 1099433d0511Smrg | --run | --ru | --r) 1100433d0511Smrg ac_prev=runstatedir ;; 1101433d0511Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1102433d0511Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1103433d0511Smrg | --run=* | --ru=* | --r=*) 1104433d0511Smrg runstatedir=$ac_optarg ;; 1105433d0511Smrg 1106eaef79e5Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107eaef79e5Smrg ac_prev=sbindir ;; 1108eaef79e5Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109eaef79e5Smrg | --sbi=* | --sb=*) 1110eaef79e5Smrg sbindir=$ac_optarg ;; 1111eaef79e5Smrg 1112eaef79e5Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113eaef79e5Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114eaef79e5Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1115eaef79e5Smrg | --sha | --sh) 1116eaef79e5Smrg ac_prev=sharedstatedir ;; 1117eaef79e5Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118eaef79e5Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119eaef79e5Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120eaef79e5Smrg | --sha=* | --sh=*) 1121eaef79e5Smrg sharedstatedir=$ac_optarg ;; 1122eaef79e5Smrg 1123eaef79e5Smrg -site | --site | --sit) 1124eaef79e5Smrg ac_prev=site ;; 1125eaef79e5Smrg -site=* | --site=* | --sit=*) 1126eaef79e5Smrg site=$ac_optarg ;; 1127eaef79e5Smrg 1128eaef79e5Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129eaef79e5Smrg ac_prev=srcdir ;; 1130eaef79e5Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131eaef79e5Smrg srcdir=$ac_optarg ;; 1132eaef79e5Smrg 1133eaef79e5Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134eaef79e5Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1135eaef79e5Smrg ac_prev=sysconfdir ;; 1136eaef79e5Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137eaef79e5Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138eaef79e5Smrg sysconfdir=$ac_optarg ;; 1139eaef79e5Smrg 1140eaef79e5Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1141eaef79e5Smrg ac_prev=target_alias ;; 1142eaef79e5Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143eaef79e5Smrg target_alias=$ac_optarg ;; 1144eaef79e5Smrg 1145eaef79e5Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146eaef79e5Smrg verbose=yes ;; 1147eaef79e5Smrg 1148eaef79e5Smrg -version | --version | --versio | --versi | --vers | -V) 1149eaef79e5Smrg ac_init_version=: ;; 1150eaef79e5Smrg 1151eaef79e5Smrg -with-* | --with-*) 11522b32c8f7Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153eaef79e5Smrg # Reject names that are not valid shell variable names. 11542b32c8f7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155433d0511Smrg as_fn_error $? "invalid package name: '$ac_useropt'" 11562b32c8f7Smrg ac_useropt_orig=$ac_useropt 1157433d0511Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11582b32c8f7Smrg case $ac_user_opts in 11592b32c8f7Smrg *" 11602b32c8f7Smrg"with_$ac_useropt" 11612b32c8f7Smrg"*) ;; 11622b32c8f7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11632b32c8f7Smrg ac_unrecognized_sep=', ';; 11642b32c8f7Smrg esac 11652b32c8f7Smrg eval with_$ac_useropt=\$ac_optarg ;; 1166eaef79e5Smrg 1167eaef79e5Smrg -without-* | --without-*) 11682b32c8f7Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169eaef79e5Smrg # Reject names that are not valid shell variable names. 11702b32c8f7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171433d0511Smrg as_fn_error $? "invalid package name: '$ac_useropt'" 11722b32c8f7Smrg ac_useropt_orig=$ac_useropt 1173433d0511Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11742b32c8f7Smrg case $ac_user_opts in 11752b32c8f7Smrg *" 11762b32c8f7Smrg"with_$ac_useropt" 11772b32c8f7Smrg"*) ;; 11782b32c8f7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11792b32c8f7Smrg ac_unrecognized_sep=', ';; 11802b32c8f7Smrg esac 11812b32c8f7Smrg eval with_$ac_useropt=no ;; 1182eaef79e5Smrg 1183eaef79e5Smrg --x) 1184eaef79e5Smrg # Obsolete; use --with-x. 1185eaef79e5Smrg with_x=yes ;; 1186eaef79e5Smrg 1187eaef79e5Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188eaef79e5Smrg | --x-incl | --x-inc | --x-in | --x-i) 1189eaef79e5Smrg ac_prev=x_includes ;; 1190eaef79e5Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191eaef79e5Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192eaef79e5Smrg x_includes=$ac_optarg ;; 1193eaef79e5Smrg 1194eaef79e5Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195eaef79e5Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196eaef79e5Smrg ac_prev=x_libraries ;; 1197eaef79e5Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198eaef79e5Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199eaef79e5Smrg x_libraries=$ac_optarg ;; 1200eaef79e5Smrg 1201433d0511Smrg -*) as_fn_error $? "unrecognized option: '$ac_option' 1202433d0511SmrgTry '$0 --help' for more information" 1203eaef79e5Smrg ;; 1204eaef79e5Smrg 1205eaef79e5Smrg *=*) 1206eaef79e5Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207eaef79e5Smrg # Reject names that are not valid shell variable names. 120895e0246bSmrg case $ac_envvar in #( 120995e0246bSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210433d0511Smrg as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 121195e0246bSmrg esac 1212eaef79e5Smrg eval $ac_envvar=\$ac_optarg 1213eaef79e5Smrg export $ac_envvar ;; 1214eaef79e5Smrg 1215eaef79e5Smrg *) 1216eaef79e5Smrg # FIXME: should be removed in autoconf 3.0. 1217433d0511Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1218eaef79e5Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219433d0511Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 122095e0246bSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221eaef79e5Smrg ;; 1222eaef79e5Smrg 1223eaef79e5Smrg esac 1224eaef79e5Smrgdone 1225eaef79e5Smrg 1226eaef79e5Smrgif test -n "$ac_prev"; then 1227eaef79e5Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 122895e0246bSmrg as_fn_error $? "missing argument to $ac_option" 1229eaef79e5Smrgfi 1230eaef79e5Smrg 12312b32c8f7Smrgif test -n "$ac_unrecognized_opts"; then 12322b32c8f7Smrg case $enable_option_checking in 12332b32c8f7Smrg no) ;; 123495e0246bSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235433d0511Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12362b32c8f7Smrg esac 12372b32c8f7Smrgfi 12382b32c8f7Smrg 12392b32c8f7Smrg# Check all directory arguments for consistency. 1240eaef79e5Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241eaef79e5Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1242eaef79e5Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243433d0511Smrg libdir localedir mandir runstatedir 1244eaef79e5Smrgdo 1245eaef79e5Smrg eval ac_val=\$$ac_var 12462b32c8f7Smrg # Remove trailing slashes. 12472b32c8f7Smrg case $ac_val in 12482b32c8f7Smrg */ ) 12492b32c8f7Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12502b32c8f7Smrg eval $ac_var=\$ac_val;; 12512b32c8f7Smrg esac 12522b32c8f7Smrg # Be sure to have absolute directory names. 1253eaef79e5Smrg case $ac_val in 1254eaef79e5Smrg [\\/$]* | ?:[\\/]* ) continue;; 1255eaef79e5Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256eaef79e5Smrg esac 125795e0246bSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258eaef79e5Smrgdone 1259eaef79e5Smrg 1260433d0511Smrg# There might be people who depend on the old broken behavior: '$host' 1261eaef79e5Smrg# used to hold the argument of --host etc. 1262eaef79e5Smrg# FIXME: To remove some day. 1263eaef79e5Smrgbuild=$build_alias 1264eaef79e5Smrghost=$host_alias 1265eaef79e5Smrgtarget=$target_alias 1266eaef79e5Smrg 1267eaef79e5Smrg# FIXME: To remove some day. 1268eaef79e5Smrgif test "x$host_alias" != x; then 1269eaef79e5Smrg if test "x$build_alias" = x; then 1270eaef79e5Smrg cross_compiling=maybe 1271eaef79e5Smrg elif test "x$build_alias" != "x$host_alias"; then 1272eaef79e5Smrg cross_compiling=yes 1273eaef79e5Smrg fi 1274eaef79e5Smrgfi 1275eaef79e5Smrg 1276eaef79e5Smrgac_tool_prefix= 1277eaef79e5Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1278eaef79e5Smrg 1279eaef79e5Smrgtest "$silent" = yes && exec 6>/dev/null 1280eaef79e5Smrg 1281eaef79e5Smrg 1282eaef79e5Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1283eaef79e5Smrgac_ls_di=`ls -di .` && 1284eaef79e5Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 128595e0246bSmrg as_fn_error $? "working directory cannot be determined" 1286eaef79e5Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 128795e0246bSmrg as_fn_error $? "pwd does not report name of working directory" 1288eaef79e5Smrg 1289eaef79e5Smrg 1290eaef79e5Smrg# Find the source files, if location was not specified. 1291eaef79e5Smrgif test -z "$srcdir"; then 1292eaef79e5Smrg ac_srcdir_defaulted=yes 1293eaef79e5Smrg # Try the directory containing this script, then the parent directory. 12942b32c8f7Smrg ac_confdir=`$as_dirname -- "$as_myself" || 12952b32c8f7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12962b32c8f7Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12972b32c8f7Smrg X"$as_myself" : 'X\(//\)$' \| \ 12982b32c8f7Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299433d0511Smrgprintf "%s\n" X"$as_myself" | 1300eaef79e5Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301eaef79e5Smrg s//\1/ 1302eaef79e5Smrg q 1303eaef79e5Smrg } 1304eaef79e5Smrg /^X\(\/\/\)[^/].*/{ 1305eaef79e5Smrg s//\1/ 1306eaef79e5Smrg q 1307eaef79e5Smrg } 1308eaef79e5Smrg /^X\(\/\/\)$/{ 1309eaef79e5Smrg s//\1/ 1310eaef79e5Smrg q 1311eaef79e5Smrg } 1312eaef79e5Smrg /^X\(\/\).*/{ 1313eaef79e5Smrg s//\1/ 1314eaef79e5Smrg q 1315eaef79e5Smrg } 1316eaef79e5Smrg s/.*/./; q'` 1317eaef79e5Smrg srcdir=$ac_confdir 1318eaef79e5Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1319eaef79e5Smrg srcdir=.. 1320eaef79e5Smrg fi 1321eaef79e5Smrgelse 1322eaef79e5Smrg ac_srcdir_defaulted=no 1323eaef79e5Smrgfi 1324eaef79e5Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1325eaef79e5Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 132695e0246bSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327eaef79e5Smrgfi 1328433d0511Smrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1329eaef79e5Smrgac_abs_confdir=`( 133095e0246bSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331eaef79e5Smrg pwd)` 1332eaef79e5Smrg# When building in place, set srcdir=. 1333eaef79e5Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1334eaef79e5Smrg srcdir=. 1335eaef79e5Smrgfi 1336eaef79e5Smrg# Remove unnecessary trailing slashes from srcdir. 1337eaef79e5Smrg# Double slashes in file names in object file debugging info 1338eaef79e5Smrg# mess up M-x gdb in Emacs. 1339eaef79e5Smrgcase $srcdir in 1340eaef79e5Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341eaef79e5Smrgesac 1342eaef79e5Smrgfor ac_var in $ac_precious_vars; do 1343eaef79e5Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344eaef79e5Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1345eaef79e5Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346eaef79e5Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347eaef79e5Smrgdone 1348eaef79e5Smrg 1349eaef79e5Smrg# 1350eaef79e5Smrg# Report the --help message. 1351eaef79e5Smrg# 1352eaef79e5Smrgif test "$ac_init_help" = "long"; then 1353eaef79e5Smrg # Omit some internal or obsolete options to make the list less imposing. 1354eaef79e5Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1355eaef79e5Smrg cat <<_ACEOF 1356433d0511Smrg'configure' configures bitmap 1.1.1 to adapt to many kinds of systems. 1357eaef79e5Smrg 1358eaef79e5SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1359eaef79e5Smrg 1360eaef79e5SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1361eaef79e5SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1362eaef79e5Smrg 1363eaef79e5SmrgDefaults for the options are specified in brackets. 1364eaef79e5Smrg 1365eaef79e5SmrgConfiguration: 1366eaef79e5Smrg -h, --help display this help and exit 1367eaef79e5Smrg --help=short display options specific to this package 1368eaef79e5Smrg --help=recursive display the short help of all the included packages 1369eaef79e5Smrg -V, --version display version information and exit 1370433d0511Smrg -q, --quiet, --silent do not print 'checking ...' messages 1371eaef79e5Smrg --cache-file=FILE cache test results in FILE [disabled] 1372433d0511Smrg -C, --config-cache alias for '--cache-file=config.cache' 1373eaef79e5Smrg -n, --no-create do not create output files 1374433d0511Smrg --srcdir=DIR find the sources in DIR [configure dir or '..'] 1375eaef79e5Smrg 1376eaef79e5SmrgInstallation directories: 1377eaef79e5Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13782b32c8f7Smrg [$ac_default_prefix] 1379eaef79e5Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13802b32c8f7Smrg [PREFIX] 1381eaef79e5Smrg 1382433d0511SmrgBy default, 'make install' will install all the files in 1383433d0511Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1384433d0511Smrgan installation prefix other than '$ac_default_prefix' using '--prefix', 1385433d0511Smrgfor instance '--prefix=\$HOME'. 1386eaef79e5Smrg 1387eaef79e5SmrgFor better control, use the options below. 1388eaef79e5Smrg 1389eaef79e5SmrgFine tuning of the installation directories: 13902b32c8f7Smrg --bindir=DIR user executables [EPREFIX/bin] 13912b32c8f7Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13922b32c8f7Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 13932b32c8f7Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13942b32c8f7Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13952b32c8f7Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396433d0511Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13972b32c8f7Smrg --libdir=DIR object code libraries [EPREFIX/lib] 13982b32c8f7Smrg --includedir=DIR C header files [PREFIX/include] 13992b32c8f7Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 14002b32c8f7Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 14012b32c8f7Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 14022b32c8f7Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 14032b32c8f7Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 14042b32c8f7Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 14052b32c8f7Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/bitmap] 14062b32c8f7Smrg --htmldir=DIR html documentation [DOCDIR] 14072b32c8f7Smrg --dvidir=DIR dvi documentation [DOCDIR] 14082b32c8f7Smrg --pdfdir=DIR pdf documentation [DOCDIR] 14092b32c8f7Smrg --psdir=DIR ps documentation [DOCDIR] 1410eaef79e5Smrg_ACEOF 1411eaef79e5Smrg 1412eaef79e5Smrg cat <<\_ACEOF 1413eaef79e5Smrg 1414eaef79e5SmrgProgram names: 1415eaef79e5Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1416eaef79e5Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1417eaef79e5Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1418eaef79e5Smrg 1419eaef79e5SmrgSystem types: 1420eaef79e5Smrg --build=BUILD configure for building on BUILD [guessed] 1421eaef79e5Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1422eaef79e5Smrg_ACEOF 1423eaef79e5Smrgfi 1424eaef79e5Smrg 1425eaef79e5Smrgif test -n "$ac_init_help"; then 1426eaef79e5Smrg case $ac_init_help in 1427433d0511Smrg short | recursive ) echo "Configuration of bitmap 1.1.1:";; 1428eaef79e5Smrg esac 1429eaef79e5Smrg cat <<\_ACEOF 1430eaef79e5Smrg 1431eaef79e5SmrgOptional Features: 14322b32c8f7Smrg --disable-option-checking ignore unrecognized --enable/--with options 1433eaef79e5Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434eaef79e5Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435cbc4e2beSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 1436cbc4e2beSmrg --disable-silent-rules verbose build output (undo: "make V=0") 1437cbc4e2beSmrg --enable-dependency-tracking 1438cbc4e2beSmrg do not reject slow dependency extractors 1439cbc4e2beSmrg --disable-dependency-tracking 1440cbc4e2beSmrg speeds up one-time build 1441cbc4e2beSmrg --disable-selective-werror 1442cbc4e2beSmrg Turn off selective compiler errors. (default: 1443cbc4e2beSmrg enabled) 14442b32c8f7Smrg --enable-strict-compilation 14452b32c8f7Smrg Enable all warnings from compiler and make them 14462b32c8f7Smrg errors (default: disabled) 1447433d0511Smrg --disable-largefile omit support for large files 1448433d0511Smrg --enable-year2038 support timestamps after 2038 1449eaef79e5Smrg 1450eaef79e5SmrgOptional Packages: 1451eaef79e5Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452eaef79e5Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14532b32c8f7Smrg --with-appdefaultdir=<pathname> 14542b32c8f7Smrg specify directory for app-defaults files (default is 14552b32c8f7Smrg autodetected) 1456eaef79e5Smrg 1457eaef79e5SmrgSome influential environment variables: 1458eaef79e5Smrg CC C compiler command 1459eaef79e5Smrg CFLAGS C compiler flags 1460eaef79e5Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1461eaef79e5Smrg nonstandard directory <lib dir> 14622b32c8f7Smrg LIBS libraries to pass to the linker, e.g. -l<library> 146395e0246bSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1464eaef79e5Smrg you have headers in a nonstandard directory <include dir> 1465eaef79e5Smrg PKG_CONFIG path to pkg-config utility 14666654de8bSmrg PKG_CONFIG_PATH 14676654de8bSmrg directories to add to pkg-config's search path 14686654de8bSmrg PKG_CONFIG_LIBDIR 14696654de8bSmrg path overriding pkg-config's built-in search path 1470eaef79e5Smrg BMTOA_CFLAGS 1471eaef79e5Smrg C compiler flags for BMTOA, overriding pkg-config 1472eaef79e5Smrg BMTOA_LIBS linker flags for BMTOA, overriding pkg-config 1473eaef79e5Smrg ATOBM_CFLAGS 1474eaef79e5Smrg C compiler flags for ATOBM, overriding pkg-config 1475eaef79e5Smrg ATOBM_LIBS linker flags for ATOBM, overriding pkg-config 14762b32c8f7Smrg BITMAP_CFLAGS 14772b32c8f7Smrg C compiler flags for BITMAP, overriding pkg-config 14782b32c8f7Smrg BITMAP_LIBS linker flags for BITMAP, overriding pkg-config 1479eaef79e5Smrg APPDEFS_CFLAGS 1480eaef79e5Smrg C compiler flags for APPDEFS, overriding pkg-config 1481eaef79e5Smrg APPDEFS_LIBS 1482eaef79e5Smrg linker flags for APPDEFS, overriding pkg-config 1483eaef79e5Smrg 1484433d0511SmrgUse these variables to override the choices made by 'configure' or to help 1485eaef79e5Smrgit to find libraries and programs with nonstandard names/locations. 1486eaef79e5Smrg 14876654de8bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>. 1488eaef79e5Smrg_ACEOF 1489eaef79e5Smrgac_status=$? 1490eaef79e5Smrgfi 1491eaef79e5Smrg 1492eaef79e5Smrgif test "$ac_init_help" = "recursive"; then 1493eaef79e5Smrg # If there are subdirs, report their specific --help. 1494eaef79e5Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14952b32c8f7Smrg test -d "$ac_dir" || 14962b32c8f7Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14972b32c8f7Smrg continue 1498eaef79e5Smrg ac_builddir=. 1499eaef79e5Smrg 1500eaef79e5Smrgcase "$ac_dir" in 1501eaef79e5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502eaef79e5Smrg*) 1503433d0511Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1504eaef79e5Smrg # A ".." for each directory in $ac_dir_suffix. 1505433d0511Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506eaef79e5Smrg case $ac_top_builddir_sub in 1507eaef79e5Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508eaef79e5Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509eaef79e5Smrg esac ;; 1510eaef79e5Smrgesac 1511eaef79e5Smrgac_abs_top_builddir=$ac_pwd 1512eaef79e5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1513eaef79e5Smrg# for backward compatibility: 1514eaef79e5Smrgac_top_builddir=$ac_top_build_prefix 1515eaef79e5Smrg 1516eaef79e5Smrgcase $srcdir in 1517eaef79e5Smrg .) # We are building in place. 1518eaef79e5Smrg ac_srcdir=. 1519eaef79e5Smrg ac_top_srcdir=$ac_top_builddir_sub 1520eaef79e5Smrg ac_abs_top_srcdir=$ac_pwd ;; 1521eaef79e5Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1522eaef79e5Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1523eaef79e5Smrg ac_top_srcdir=$srcdir 1524eaef79e5Smrg ac_abs_top_srcdir=$srcdir ;; 1525eaef79e5Smrg *) # Relative name. 1526eaef79e5Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527eaef79e5Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1528eaef79e5Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529eaef79e5Smrgesac 1530eaef79e5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531eaef79e5Smrg 1532eaef79e5Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1533433d0511Smrg # Check for configure.gnu first; this name is used for a wrapper for 1534433d0511Smrg # Metaconfig's "Configure" on case-insensitive file systems. 1535eaef79e5Smrg if test -f "$ac_srcdir/configure.gnu"; then 1536eaef79e5Smrg echo && 1537eaef79e5Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538eaef79e5Smrg elif test -f "$ac_srcdir/configure"; then 1539eaef79e5Smrg echo && 1540eaef79e5Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1541eaef79e5Smrg else 1542433d0511Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543eaef79e5Smrg fi || ac_status=$? 1544eaef79e5Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1545eaef79e5Smrg done 1546eaef79e5Smrgfi 1547eaef79e5Smrg 1548eaef79e5Smrgtest -n "$ac_init_help" && exit $ac_status 1549eaef79e5Smrgif $ac_init_version; then 1550eaef79e5Smrg cat <<\_ACEOF 1551433d0511Smrgbitmap configure 1.1.1 1552433d0511Smrggenerated by GNU Autoconf 2.72 1553eaef79e5Smrg 1554433d0511SmrgCopyright (C) 2023 Free Software Foundation, Inc. 1555eaef79e5SmrgThis configure script is free software; the Free Software Foundation 1556eaef79e5Smrggives unlimited permission to copy, distribute and modify it. 1557eaef79e5Smrg_ACEOF 1558eaef79e5Smrg exit 1559eaef79e5Smrgfi 1560eaef79e5Smrg 156195e0246bSmrg## ------------------------ ## 156295e0246bSmrg## Autoconf initialization. ## 156395e0246bSmrg## ------------------------ ## 1564eaef79e5Smrg 156595e0246bSmrg# ac_fn_c_try_compile LINENO 156695e0246bSmrg# -------------------------- 156795e0246bSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 156895e0246bSmrgac_fn_c_try_compile () 1569eaef79e5Smrg{ 157095e0246bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571433d0511Smrg rm -f conftest.$ac_objext conftest.beam 157295e0246bSmrg if { { ac_try="$ac_compile" 157395e0246bSmrgcase "(($ac_try" in 157495e0246bSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 157595e0246bSmrg *) ac_try_echo=$ac_try;; 157695e0246bSmrgesac 157795e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 157995e0246bSmrg (eval "$ac_compile") 2>conftest.err 158095e0246bSmrg ac_status=$? 158195e0246bSmrg if test -s conftest.err; then 158295e0246bSmrg grep -v '^ *+' conftest.err >conftest.er1 158395e0246bSmrg cat conftest.er1 >&5 158495e0246bSmrg mv -f conftest.er1 conftest.err 158595e0246bSmrg fi 1586433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 158795e0246bSmrg test $ac_status = 0; } && { 158895e0246bSmrg test -z "$ac_c_werror_flag" || 158995e0246bSmrg test ! -s conftest.err 1590433d0511Smrg } && test -s conftest.$ac_objext 1591433d0511Smrgthen : 159295e0246bSmrg ac_retval=0 1593433d0511Smrgelse case e in #( 1594433d0511Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 159595e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5 1596eaef79e5Smrg 1597433d0511Smrg ac_retval=1 ;; 1598433d0511Smrgesac 159995e0246bSmrgfi 160095e0246bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 160195e0246bSmrg as_fn_set_status $ac_retval 1602eaef79e5Smrg 160395e0246bSmrg} # ac_fn_c_try_compile 1604eaef79e5Smrg 1605433d0511Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1606433d0511Smrg# ------------------------------------------------------------------ 160795e0246bSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1608433d0511Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1609433d0511Smrgac_fn_check_decl () 161095e0246bSmrg{ 161195e0246bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 161295e0246bSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1613433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1614433d0511Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1615433d0511Smrgif eval test \${$3+y} 1616433d0511Smrgthen : 1617433d0511Smrg printf %s "(cached) " >&6 1618433d0511Smrgelse case e in #( 1619433d0511Smrg e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1620433d0511Smrg eval ac_save_FLAGS=\$$6 1621433d0511Smrg as_fn_append $6 " $5" 162295e0246bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 162395e0246bSmrg/* end confdefs.h. */ 162495e0246bSmrg$4 162595e0246bSmrgint 1626433d0511Smrgmain (void) 162795e0246bSmrg{ 162895e0246bSmrg#ifndef $as_decl_name 162995e0246bSmrg#ifdef __cplusplus 163095e0246bSmrg (void) $as_decl_use; 163195e0246bSmrg#else 163295e0246bSmrg (void) $as_decl_name; 163395e0246bSmrg#endif 163495e0246bSmrg#endif 163595e0246bSmrg 163695e0246bSmrg ; 163795e0246bSmrg return 0; 163895e0246bSmrg} 163995e0246bSmrg_ACEOF 1640433d0511Smrgif ac_fn_c_try_compile "$LINENO" 1641433d0511Smrgthen : 164295e0246bSmrg eval "$3=yes" 1643433d0511Smrgelse case e in #( 1644433d0511Smrg e) eval "$3=no" ;; 164595e0246bSmrgesac 164695e0246bSmrgfi 1647433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1648433d0511Smrg eval $6=\$ac_save_FLAGS 1649433d0511Smrg ;; 165095e0246bSmrgesac 165195e0246bSmrgfi 1652433d0511Smrgeval ac_res=\$$3 1653433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654433d0511Smrgprintf "%s\n" "$ac_res" >&6; } 165595e0246bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 165695e0246bSmrg 1657433d0511Smrg} # ac_fn_check_decl 165895e0246bSmrg 165995e0246bSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 166095e0246bSmrg# ------------------------------------------------------- 166195e0246bSmrg# Tests whether HEADER exists and can be compiled using the include files in 166295e0246bSmrg# INCLUDES, setting the cache variable VAR accordingly. 166395e0246bSmrgac_fn_c_check_header_compile () 166495e0246bSmrg{ 166595e0246bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667433d0511Smrgprintf %s "checking for $2... " >&6; } 1668433d0511Smrgif eval test \${$3+y} 1669433d0511Smrgthen : 1670433d0511Smrg printf %s "(cached) " >&6 1671433d0511Smrgelse case e in #( 1672433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 167395e0246bSmrg/* end confdefs.h. */ 167495e0246bSmrg$4 167595e0246bSmrg#include <$2> 167695e0246bSmrg_ACEOF 1677433d0511Smrgif ac_fn_c_try_compile "$LINENO" 1678433d0511Smrgthen : 167995e0246bSmrg eval "$3=yes" 1680433d0511Smrgelse case e in #( 1681433d0511Smrg e) eval "$3=no" ;; 1682433d0511Smrgesac 168395e0246bSmrgfi 1684433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1685433d0511Smrgesac 168695e0246bSmrgfi 168795e0246bSmrgeval ac_res=\$$3 1688433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689433d0511Smrgprintf "%s\n" "$ac_res" >&6; } 169095e0246bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 169195e0246bSmrg 169295e0246bSmrg} # ac_fn_c_check_header_compile 169395e0246bSmrg 169495e0246bSmrg# ac_fn_c_try_link LINENO 169595e0246bSmrg# ----------------------- 169695e0246bSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 169795e0246bSmrgac_fn_c_try_link () 169895e0246bSmrg{ 169995e0246bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700433d0511Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 170195e0246bSmrg if { { ac_try="$ac_link" 170295e0246bSmrgcase "(($ac_try" in 170395e0246bSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 170495e0246bSmrg *) ac_try_echo=$ac_try;; 170595e0246bSmrgesac 170695e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 170895e0246bSmrg (eval "$ac_link") 2>conftest.err 170995e0246bSmrg ac_status=$? 171095e0246bSmrg if test -s conftest.err; then 171195e0246bSmrg grep -v '^ *+' conftest.err >conftest.er1 171295e0246bSmrg cat conftest.er1 >&5 171395e0246bSmrg mv -f conftest.er1 conftest.err 171495e0246bSmrg fi 1715433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 171695e0246bSmrg test $ac_status = 0; } && { 171795e0246bSmrg test -z "$ac_c_werror_flag" || 171895e0246bSmrg test ! -s conftest.err 171995e0246bSmrg } && test -s conftest$ac_exeext && { 172095e0246bSmrg test "$cross_compiling" = yes || 1721d1a7ce7bSmrg test -x conftest$ac_exeext 1722433d0511Smrg } 1723433d0511Smrgthen : 172495e0246bSmrg ac_retval=0 1725433d0511Smrgelse case e in #( 1726433d0511Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 172795e0246bSmrgsed 's/^/| /' conftest.$ac_ext >&5 172895e0246bSmrg 1729433d0511Smrg ac_retval=1 ;; 1730433d0511Smrgesac 173195e0246bSmrgfi 173295e0246bSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 173395e0246bSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 173495e0246bSmrg # interfere with the next link command; also delete a directory that is 173595e0246bSmrg # left behind by Apple's compiler. We do this before executing the actions. 173695e0246bSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 173795e0246bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 173895e0246bSmrg as_fn_set_status $ac_retval 173995e0246bSmrg 174095e0246bSmrg} # ac_fn_c_try_link 174195e0246bSmrg 174295e0246bSmrg# ac_fn_c_check_func LINENO FUNC VAR 174395e0246bSmrg# ---------------------------------- 174495e0246bSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 174595e0246bSmrgac_fn_c_check_func () 174695e0246bSmrg{ 174795e0246bSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749433d0511Smrgprintf %s "checking for $2... " >&6; } 1750433d0511Smrgif eval test \${$3+y} 1751433d0511Smrgthen : 1752433d0511Smrg printf %s "(cached) " >&6 1753433d0511Smrgelse case e in #( 1754433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 175595e0246bSmrg/* end confdefs.h. */ 175695e0246bSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 175795e0246bSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 175895e0246bSmrg#define $2 innocuous_$2 175995e0246bSmrg 176095e0246bSmrg/* System header to define __stub macros and hopefully few prototypes, 1761433d0511Smrg which can conflict with char $2 (void); below. */ 176295e0246bSmrg 1763433d0511Smrg#include <limits.h> 176495e0246bSmrg#undef $2 176595e0246bSmrg 176695e0246bSmrg/* Override any GCC internal prototype to avoid an error. 176795e0246bSmrg Use char because int might match the return type of a GCC 176895e0246bSmrg builtin and then its argument prototype would still apply. */ 176995e0246bSmrg#ifdef __cplusplus 177095e0246bSmrgextern "C" 177195e0246bSmrg#endif 1772433d0511Smrgchar $2 (void); 177395e0246bSmrg/* The GNU C library defines this for functions which it implements 177495e0246bSmrg to always fail with ENOSYS. Some functions are actually named 177595e0246bSmrg something starting with __ and the normal name is an alias. */ 177695e0246bSmrg#if defined __stub_$2 || defined __stub___$2 177795e0246bSmrgchoke me 177895e0246bSmrg#endif 177995e0246bSmrg 178095e0246bSmrgint 1781433d0511Smrgmain (void) 178295e0246bSmrg{ 178395e0246bSmrgreturn $2 (); 178495e0246bSmrg ; 178595e0246bSmrg return 0; 178695e0246bSmrg} 178795e0246bSmrg_ACEOF 1788433d0511Smrgif ac_fn_c_try_link "$LINENO" 1789433d0511Smrgthen : 179095e0246bSmrg eval "$3=yes" 1791433d0511Smrgelse case e in #( 1792433d0511Smrg e) eval "$3=no" ;; 1793433d0511Smrgesac 179495e0246bSmrgfi 1795433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1796433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 1797433d0511Smrgesac 179895e0246bSmrgfi 179995e0246bSmrgeval ac_res=\$$3 1800433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801433d0511Smrgprintf "%s\n" "$ac_res" >&6; } 180295e0246bSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 180395e0246bSmrg 180495e0246bSmrg} # ac_fn_c_check_func 1805433d0511Smrgac_configure_args_raw= 1806433d0511Smrgfor ac_arg 1807433d0511Smrgdo 1808433d0511Smrg case $ac_arg in 1809433d0511Smrg *\'*) 1810433d0511Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1811433d0511Smrg esac 1812433d0511Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1813433d0511Smrgdone 1814433d0511Smrg 1815433d0511Smrgcase $ac_configure_args_raw in 1816433d0511Smrg *$as_nl*) 1817433d0511Smrg ac_safe_unquote= ;; 1818433d0511Smrg *) 1819433d0511Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1820433d0511Smrg ac_unsafe_a="$ac_unsafe_z#~" 1821433d0511Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1822433d0511Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1823433d0511Smrgesac 1824433d0511Smrg 182595e0246bSmrgcat >config.log <<_ACEOF 182695e0246bSmrgThis file contains any messages produced by compilers while 182795e0246bSmrgrunning configure, to aid debugging if configure makes a mistake. 182895e0246bSmrg 1829433d0511SmrgIt was created by bitmap $as_me 1.1.1, which was 1830433d0511Smrggenerated by GNU Autoconf 2.72. Invocation command line was 183195e0246bSmrg 1832433d0511Smrg $ $0$ac_configure_args_raw 183395e0246bSmrg 183495e0246bSmrg_ACEOF 183595e0246bSmrgexec 5>>config.log 183695e0246bSmrg{ 183795e0246bSmrgcat <<_ASUNAME 183895e0246bSmrg## --------- ## 183995e0246bSmrg## Platform. ## 184095e0246bSmrg## --------- ## 184195e0246bSmrg 184295e0246bSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 184395e0246bSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 184495e0246bSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 184595e0246bSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 184695e0246bSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 184795e0246bSmrg 184895e0246bSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 184995e0246bSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 185095e0246bSmrg 185195e0246bSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 185295e0246bSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 185395e0246bSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 185495e0246bSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 185595e0246bSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 185695e0246bSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 185795e0246bSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 185895e0246bSmrg 185995e0246bSmrg_ASUNAME 186095e0246bSmrg 186195e0246bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186295e0246bSmrgfor as_dir in $PATH 1863eaef79e5Smrgdo 1864eaef79e5Smrg IFS=$as_save_IFS 1865433d0511Smrg case $as_dir in #((( 1866433d0511Smrg '') as_dir=./ ;; 1867433d0511Smrg */) ;; 1868433d0511Smrg *) as_dir=$as_dir/ ;; 1869433d0511Smrg esac 1870433d0511Smrg printf "%s\n" "PATH: $as_dir" 187195e0246bSmrg done 1872eaef79e5SmrgIFS=$as_save_IFS 1873eaef79e5Smrg 1874eaef79e5Smrg} >&5 1875eaef79e5Smrg 1876eaef79e5Smrgcat >&5 <<_ACEOF 1877eaef79e5Smrg 1878eaef79e5Smrg 1879eaef79e5Smrg## ----------- ## 1880eaef79e5Smrg## Core tests. ## 1881eaef79e5Smrg## ----------- ## 1882eaef79e5Smrg 1883eaef79e5Smrg_ACEOF 1884eaef79e5Smrg 1885eaef79e5Smrg 1886eaef79e5Smrg# Keep a trace of the command line. 1887eaef79e5Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1888eaef79e5Smrg# Strip out --silent because we don't want to record it for future runs. 1889eaef79e5Smrg# Also quote any args containing shell meta-characters. 1890eaef79e5Smrg# Make two passes to allow for proper duplicate-argument suppression. 1891eaef79e5Smrgac_configure_args= 1892eaef79e5Smrgac_configure_args0= 1893eaef79e5Smrgac_configure_args1= 1894eaef79e5Smrgac_must_keep_next=false 1895eaef79e5Smrgfor ac_pass in 1 2 1896eaef79e5Smrgdo 1897eaef79e5Smrg for ac_arg 1898eaef79e5Smrg do 1899eaef79e5Smrg case $ac_arg in 1900eaef79e5Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1901eaef79e5Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1902eaef79e5Smrg | -silent | --silent | --silen | --sile | --sil) 1903eaef79e5Smrg continue ;; 1904eaef79e5Smrg *\'*) 1905433d0511Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1906eaef79e5Smrg esac 1907eaef79e5Smrg case $ac_pass in 190895e0246bSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1909eaef79e5Smrg 2) 191095e0246bSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1911eaef79e5Smrg if test $ac_must_keep_next = true; then 1912eaef79e5Smrg ac_must_keep_next=false # Got value, back to normal. 1913eaef79e5Smrg else 1914eaef79e5Smrg case $ac_arg in 1915eaef79e5Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1916eaef79e5Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1917eaef79e5Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1918eaef79e5Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1919eaef79e5Smrg case "$ac_configure_args0 " in 1920eaef79e5Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1921eaef79e5Smrg esac 1922eaef79e5Smrg ;; 1923eaef79e5Smrg -* ) ac_must_keep_next=true ;; 1924eaef79e5Smrg esac 1925eaef79e5Smrg fi 192695e0246bSmrg as_fn_append ac_configure_args " '$ac_arg'" 1927eaef79e5Smrg ;; 1928eaef79e5Smrg esac 1929eaef79e5Smrg done 1930eaef79e5Smrgdone 193195e0246bSmrg{ ac_configure_args0=; unset ac_configure_args0;} 193295e0246bSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1933eaef79e5Smrg 1934eaef79e5Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1935eaef79e5Smrg# config.log. We remove comments because anyway the quotes in there 1936eaef79e5Smrg# would cause problems or look ugly. 1937eaef79e5Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1938eaef79e5Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1939eaef79e5Smrgtrap 'exit_status=$? 1940433d0511Smrg # Sanitize IFS. 1941433d0511Smrg IFS=" "" $as_nl" 1942eaef79e5Smrg # Save into config.log some information that might help in debugging. 1943eaef79e5Smrg { 1944eaef79e5Smrg echo 1945eaef79e5Smrg 1946433d0511Smrg printf "%s\n" "## ---------------- ## 1947eaef79e5Smrg## Cache variables. ## 194895e0246bSmrg## ---------------- ##" 1949eaef79e5Smrg echo 1950eaef79e5Smrg # The following way of writing the cache mishandles newlines in values, 1951eaef79e5Smrg( 1952eaef79e5Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1953eaef79e5Smrg eval ac_val=\$$ac_var 1954eaef79e5Smrg case $ac_val in #( 1955eaef79e5Smrg *${as_nl}*) 1956eaef79e5Smrg case $ac_var in #( 1957433d0511Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1958433d0511Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1959eaef79e5Smrg esac 1960eaef79e5Smrg case $ac_var in #( 1961eaef79e5Smrg _ | IFS | as_nl) ;; #( 19622b32c8f7Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 196395e0246bSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1964eaef79e5Smrg esac ;; 1965eaef79e5Smrg esac 1966eaef79e5Smrg done 1967eaef79e5Smrg (set) 2>&1 | 1968eaef79e5Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1969eaef79e5Smrg *${as_nl}ac_space=\ *) 1970eaef79e5Smrg sed -n \ 1971eaef79e5Smrg "s/'\''/'\''\\\\'\'''\''/g; 1972eaef79e5Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1973eaef79e5Smrg ;; #( 1974eaef79e5Smrg *) 1975eaef79e5Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1976eaef79e5Smrg ;; 1977eaef79e5Smrg esac | 1978eaef79e5Smrg sort 1979eaef79e5Smrg) 1980eaef79e5Smrg echo 1981eaef79e5Smrg 1982433d0511Smrg printf "%s\n" "## ----------------- ## 1983eaef79e5Smrg## Output variables. ## 198495e0246bSmrg## ----------------- ##" 1985eaef79e5Smrg echo 1986eaef79e5Smrg for ac_var in $ac_subst_vars 1987eaef79e5Smrg do 1988eaef79e5Smrg eval ac_val=\$$ac_var 1989eaef79e5Smrg case $ac_val in 1990433d0511Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1991eaef79e5Smrg esac 1992433d0511Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 1993eaef79e5Smrg done | sort 1994eaef79e5Smrg echo 1995eaef79e5Smrg 1996eaef79e5Smrg if test -n "$ac_subst_files"; then 1997433d0511Smrg printf "%s\n" "## ------------------- ## 1998eaef79e5Smrg## File substitutions. ## 199995e0246bSmrg## ------------------- ##" 2000eaef79e5Smrg echo 2001eaef79e5Smrg for ac_var in $ac_subst_files 2002eaef79e5Smrg do 2003eaef79e5Smrg eval ac_val=\$$ac_var 2004eaef79e5Smrg case $ac_val in 2005433d0511Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006eaef79e5Smrg esac 2007433d0511Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 2008eaef79e5Smrg done | sort 2009eaef79e5Smrg echo 2010eaef79e5Smrg fi 2011eaef79e5Smrg 2012eaef79e5Smrg if test -s confdefs.h; then 2013433d0511Smrg printf "%s\n" "## ----------- ## 2014eaef79e5Smrg## confdefs.h. ## 201595e0246bSmrg## ----------- ##" 2016eaef79e5Smrg echo 2017eaef79e5Smrg cat confdefs.h 2018eaef79e5Smrg echo 2019eaef79e5Smrg fi 2020eaef79e5Smrg test "$ac_signal" != 0 && 2021433d0511Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 2022433d0511Smrg printf "%s\n" "$as_me: exit $exit_status" 2023eaef79e5Smrg } >&5 2024eaef79e5Smrg rm -f core *.core core.conftest.* && 2025eaef79e5Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2026eaef79e5Smrg exit $exit_status 2027eaef79e5Smrg' 0 2028eaef79e5Smrgfor ac_signal in 1 2 13 15; do 202995e0246bSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2030eaef79e5Smrgdone 2031eaef79e5Smrgac_signal=0 2032eaef79e5Smrg 2033eaef79e5Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2034eaef79e5Smrgrm -f -r conftest* confdefs.h 2035eaef79e5Smrg 2036433d0511Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 203795e0246bSmrg 2038eaef79e5Smrg# Predefined preprocessor variables. 2039eaef79e5Smrg 2040433d0511Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2041eaef79e5Smrg 2042433d0511Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2043eaef79e5Smrg 2044433d0511Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2045eaef79e5Smrg 2046433d0511Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2047eaef79e5Smrg 2048433d0511Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2049eaef79e5Smrg 2050433d0511Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 205195e0246bSmrg 2052eaef79e5Smrg 2053eaef79e5Smrg# Let the site file select an alternate cache file if it wants to. 20542b32c8f7Smrg# Prefer an explicitly selected file to automatically selected ones. 2055eaef79e5Smrgif test -n "$CONFIG_SITE"; then 2056433d0511Smrg ac_site_files="$CONFIG_SITE" 2057eaef79e5Smrgelif test "x$prefix" != xNONE; then 2058433d0511Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2059eaef79e5Smrgelse 2060433d0511Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2061eaef79e5Smrgfi 2062433d0511Smrg 2063433d0511Smrgfor ac_site_file in $ac_site_files 2064eaef79e5Smrgdo 2065433d0511Smrg case $ac_site_file in #( 2066433d0511Smrg */*) : 2067433d0511Smrg ;; #( 2068433d0511Smrg *) : 2069433d0511Smrg ac_site_file=./$ac_site_file ;; 2070433d0511Smrgesac 2071433d0511Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2072433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2073433d0511Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2074eaef79e5Smrg sed 's/^/| /' "$ac_site_file" >&5 207595e0246bSmrg . "$ac_site_file" \ 2076433d0511Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2077433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 207895e0246bSmrgas_fn_error $? "failed to load site script $ac_site_file 2079433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 2080eaef79e5Smrg fi 2081eaef79e5Smrgdone 2082eaef79e5Smrg 2083eaef79e5Smrgif test -r "$cache_file"; then 208495e0246bSmrg # Some versions of bash will fail to source /dev/null (special files 208595e0246bSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 208695e0246bSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2087433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2088433d0511Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2089eaef79e5Smrg case $cache_file in 2090eaef79e5Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2091eaef79e5Smrg *) . "./$cache_file";; 2092eaef79e5Smrg esac 2093eaef79e5Smrg fi 2094eaef79e5Smrgelse 2095433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2096433d0511Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2097eaef79e5Smrg >$cache_file 2098eaef79e5Smrgfi 2099eaef79e5Smrg 2100433d0511Smrg# Test code for whether the C compiler supports C89 (global declarations) 2101433d0511Smrgac_c_conftest_c89_globals=' 2102433d0511Smrg/* Does the compiler advertise C89 conformance? 2103433d0511Smrg Do not test the value of __STDC__, because some compilers set it to 0 2104433d0511Smrg while being otherwise adequately conformant. */ 2105433d0511Smrg#if !defined __STDC__ 2106433d0511Smrg# error "Compiler does not advertise C89 conformance" 2107433d0511Smrg#endif 2108eaef79e5Smrg 2109433d0511Smrg#include <stddef.h> 2110433d0511Smrg#include <stdarg.h> 2111433d0511Smrgstruct stat; 2112433d0511Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2113433d0511Smrgstruct buf { int x; }; 2114433d0511Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2115433d0511Smrgstatic char *e (char **p, int i) 2116433d0511Smrg{ 2117433d0511Smrg return p[i]; 2118433d0511Smrg} 2119433d0511Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2120433d0511Smrg{ 2121433d0511Smrg char *s; 2122433d0511Smrg va_list v; 2123433d0511Smrg va_start (v,p); 2124433d0511Smrg s = g (p, va_arg (v,int)); 2125433d0511Smrg va_end (v); 2126433d0511Smrg return s; 2127433d0511Smrg} 2128eaef79e5Smrg 2129433d0511Smrg/* C89 style stringification. */ 2130433d0511Smrg#define noexpand_stringify(a) #a 2131433d0511Smrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence); 2132433d0511Smrg 2133433d0511Smrg/* C89 style token pasting. Exercises some of the corner cases that 2134433d0511Smrg e.g. old MSVC gets wrong, but not very hard. */ 2135433d0511Smrg#define noexpand_concat(a,b) a##b 2136433d0511Smrg#define expand_concat(a,b) noexpand_concat(a,b) 2137433d0511Smrgextern int vA; 2138433d0511Smrgextern int vbee; 2139433d0511Smrg#define aye A 2140433d0511Smrg#define bee B 2141433d0511Smrgint *pvA = &expand_concat(v,aye); 2142433d0511Smrgint *pvbee = &noexpand_concat(v,bee); 2143eaef79e5Smrg 2144433d0511Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2145433d0511Smrg function prototypes and stuff, but not \xHH hex character constants. 2146433d0511Smrg These do not provoke an error unfortunately, instead are silently treated 2147433d0511Smrg as an "x". The following induces an error, until -std is added to get 2148433d0511Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2149433d0511Smrg array size at least. It is necessary to write \x00 == 0 to get something 2150433d0511Smrg that is true only with -std. */ 2151433d0511Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2152cbc4e2beSmrg 2153433d0511Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2154433d0511Smrg inside strings and character constants. */ 2155433d0511Smrg#define FOO(x) '\''x'\'' 2156433d0511Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2157cbc4e2beSmrg 2158433d0511Smrgint test (int i, double x); 2159433d0511Smrgstruct s1 {int (*f) (int a);}; 2160433d0511Smrgstruct s2 {int (*f) (double a);}; 2161433d0511Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2162433d0511Smrg int, int);' 2163cbc4e2beSmrg 2164433d0511Smrg# Test code for whether the C compiler supports C89 (body of main). 2165433d0511Smrgac_c_conftest_c89_main=' 2166433d0511Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2167433d0511Smrg' 2168433d0511Smrg 2169433d0511Smrg# Test code for whether the C compiler supports C99 (global declarations) 2170433d0511Smrgac_c_conftest_c99_globals=' 2171433d0511Smrg/* Does the compiler advertise C99 conformance? */ 2172433d0511Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2173433d0511Smrg# error "Compiler does not advertise C99 conformance" 2174433d0511Smrg#endif 2175433d0511Smrg 2176433d0511Smrg// See if C++-style comments work. 2177433d0511Smrg 2178433d0511Smrg#include <stdbool.h> 2179433d0511Smrgextern int puts (const char *); 2180433d0511Smrgextern int printf (const char *, ...); 2181433d0511Smrgextern int dprintf (int, const char *, ...); 2182433d0511Smrgextern void *malloc (size_t); 2183433d0511Smrgextern void free (void *); 2184433d0511Smrg 2185433d0511Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2186433d0511Smrg// dprintf is used instead of fprintf to avoid needing to declare 2187433d0511Smrg// FILE and stderr. 2188433d0511Smrg#define debug(...) dprintf (2, __VA_ARGS__) 2189433d0511Smrg#define showlist(...) puts (#__VA_ARGS__) 2190433d0511Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2191433d0511Smrgstatic void 2192433d0511Smrgtest_varargs_macros (void) 2193433d0511Smrg{ 2194433d0511Smrg int x = 1234; 2195433d0511Smrg int y = 5678; 2196433d0511Smrg debug ("Flag"); 2197433d0511Smrg debug ("X = %d\n", x); 2198433d0511Smrg showlist (The first, second, and third items.); 2199433d0511Smrg report (x>y, "x is %d but y is %d", x, y); 2200433d0511Smrg} 2201433d0511Smrg 2202433d0511Smrg// Check long long types. 2203433d0511Smrg#define BIG64 18446744073709551615ull 2204433d0511Smrg#define BIG32 4294967295ul 2205433d0511Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2206433d0511Smrg#if !BIG_OK 2207433d0511Smrg #error "your preprocessor is broken" 2208433d0511Smrg#endif 2209433d0511Smrg#if BIG_OK 2210433d0511Smrg#else 2211433d0511Smrg #error "your preprocessor is broken" 2212433d0511Smrg#endif 2213433d0511Smrgstatic long long int bignum = -9223372036854775807LL; 2214433d0511Smrgstatic unsigned long long int ubignum = BIG64; 2215433d0511Smrg 2216433d0511Smrgstruct incomplete_array 2217433d0511Smrg{ 2218433d0511Smrg int datasize; 2219433d0511Smrg double data[]; 2220433d0511Smrg}; 2221433d0511Smrg 2222433d0511Smrgstruct named_init { 2223433d0511Smrg int number; 2224433d0511Smrg const wchar_t *name; 2225433d0511Smrg double average; 2226433d0511Smrg}; 2227433d0511Smrg 2228433d0511Smrgtypedef const char *ccp; 2229433d0511Smrg 2230433d0511Smrgstatic inline int 2231433d0511Smrgtest_restrict (ccp restrict text) 2232433d0511Smrg{ 2233433d0511Smrg // Iterate through items via the restricted pointer. 2234433d0511Smrg // Also check for declarations in for loops. 2235433d0511Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2236433d0511Smrg continue; 2237433d0511Smrg return 0; 2238433d0511Smrg} 2239433d0511Smrg 2240433d0511Smrg// Check varargs and va_copy. 2241433d0511Smrgstatic bool 2242433d0511Smrgtest_varargs (const char *format, ...) 2243433d0511Smrg{ 2244433d0511Smrg va_list args; 2245433d0511Smrg va_start (args, format); 2246433d0511Smrg va_list args_copy; 2247433d0511Smrg va_copy (args_copy, args); 2248433d0511Smrg 2249433d0511Smrg const char *str = ""; 2250433d0511Smrg int number = 0; 2251433d0511Smrg float fnumber = 0; 2252433d0511Smrg 2253433d0511Smrg while (*format) 2254433d0511Smrg { 2255433d0511Smrg switch (*format++) 2256433d0511Smrg { 2257433d0511Smrg case '\''s'\'': // string 2258433d0511Smrg str = va_arg (args_copy, const char *); 2259433d0511Smrg break; 2260433d0511Smrg case '\''d'\'': // int 2261433d0511Smrg number = va_arg (args_copy, int); 2262433d0511Smrg break; 2263433d0511Smrg case '\''f'\'': // float 2264433d0511Smrg fnumber = va_arg (args_copy, double); 2265433d0511Smrg break; 2266433d0511Smrg default: 2267433d0511Smrg break; 2268433d0511Smrg } 2269433d0511Smrg } 2270433d0511Smrg va_end (args_copy); 2271433d0511Smrg va_end (args); 2272433d0511Smrg 2273433d0511Smrg return *str && number && fnumber; 2274433d0511Smrg} 2275433d0511Smrg' 2276433d0511Smrg 2277433d0511Smrg# Test code for whether the C compiler supports C99 (body of main). 2278433d0511Smrgac_c_conftest_c99_main=' 2279433d0511Smrg // Check bool. 2280433d0511Smrg _Bool success = false; 2281433d0511Smrg success |= (argc != 0); 2282433d0511Smrg 2283433d0511Smrg // Check restrict. 2284433d0511Smrg if (test_restrict ("String literal") == 0) 2285433d0511Smrg success = true; 2286433d0511Smrg char *restrict newvar = "Another string"; 2287433d0511Smrg 2288433d0511Smrg // Check varargs. 2289433d0511Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2290433d0511Smrg test_varargs_macros (); 2291433d0511Smrg 2292433d0511Smrg // Check flexible array members. 2293433d0511Smrg struct incomplete_array *ia = 2294433d0511Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2295433d0511Smrg ia->datasize = 10; 2296433d0511Smrg for (int i = 0; i < ia->datasize; ++i) 2297433d0511Smrg ia->data[i] = i * 1.234; 2298433d0511Smrg // Work around memory leak warnings. 2299433d0511Smrg free (ia); 2300433d0511Smrg 2301433d0511Smrg // Check named initializers. 2302433d0511Smrg struct named_init ni = { 2303433d0511Smrg .number = 34, 2304433d0511Smrg .name = L"Test wide string", 2305433d0511Smrg .average = 543.34343, 2306433d0511Smrg }; 2307433d0511Smrg 2308433d0511Smrg ni.number = 58; 2309433d0511Smrg 2310433d0511Smrg int dynamic_array[ni.number]; 2311433d0511Smrg dynamic_array[0] = argv[0][0]; 2312433d0511Smrg dynamic_array[ni.number - 1] = 543; 2313433d0511Smrg 2314433d0511Smrg // work around unused variable warnings 2315433d0511Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2316433d0511Smrg || dynamic_array[ni.number - 1] != 543); 2317433d0511Smrg' 2318433d0511Smrg 2319433d0511Smrg# Test code for whether the C compiler supports C11 (global declarations) 2320433d0511Smrgac_c_conftest_c11_globals=' 2321433d0511Smrg/* Does the compiler advertise C11 conformance? */ 2322433d0511Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2323433d0511Smrg# error "Compiler does not advertise C11 conformance" 2324433d0511Smrg#endif 2325433d0511Smrg 2326433d0511Smrg// Check _Alignas. 2327433d0511Smrgchar _Alignas (double) aligned_as_double; 2328433d0511Smrgchar _Alignas (0) no_special_alignment; 2329433d0511Smrgextern char aligned_as_int; 2330433d0511Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2331433d0511Smrg 2332433d0511Smrg// Check _Alignof. 2333433d0511Smrgenum 2334433d0511Smrg{ 2335433d0511Smrg int_alignment = _Alignof (int), 2336433d0511Smrg int_array_alignment = _Alignof (int[100]), 2337433d0511Smrg char_alignment = _Alignof (char) 2338433d0511Smrg}; 2339433d0511Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2340433d0511Smrg 2341433d0511Smrg// Check _Noreturn. 2342433d0511Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 2343433d0511Smrg 2344433d0511Smrg// Check _Static_assert. 2345433d0511Smrgstruct test_static_assert 2346433d0511Smrg{ 2347433d0511Smrg int x; 2348433d0511Smrg _Static_assert (sizeof (int) <= sizeof (long int), 2349433d0511Smrg "_Static_assert does not work in struct"); 2350433d0511Smrg long int y; 2351433d0511Smrg}; 2352433d0511Smrg 2353433d0511Smrg// Check UTF-8 literals. 2354433d0511Smrg#define u8 syntax error! 2355433d0511Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2356433d0511Smrg 2357433d0511Smrg// Check duplicate typedefs. 2358433d0511Smrgtypedef long *long_ptr; 2359433d0511Smrgtypedef long int *long_ptr; 2360433d0511Smrgtypedef long_ptr long_ptr; 2361433d0511Smrg 2362433d0511Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2363433d0511Smrgstruct anonymous 2364433d0511Smrg{ 2365433d0511Smrg union { 2366433d0511Smrg struct { int i; int j; }; 2367433d0511Smrg struct { int k; long int l; } w; 2368433d0511Smrg }; 2369433d0511Smrg int m; 2370433d0511Smrg} v1; 2371433d0511Smrg' 2372433d0511Smrg 2373433d0511Smrg# Test code for whether the C compiler supports C11 (body of main). 2374433d0511Smrgac_c_conftest_c11_main=' 2375433d0511Smrg _Static_assert ((offsetof (struct anonymous, i) 2376433d0511Smrg == offsetof (struct anonymous, w.k)), 2377433d0511Smrg "Anonymous union alignment botch"); 2378433d0511Smrg v1.i = 2; 2379433d0511Smrg v1.w.k = 5; 2380433d0511Smrg ok |= v1.i != 5; 2381433d0511Smrg' 2382433d0511Smrg 2383433d0511Smrg# Test code for whether the C compiler supports C11 (complete). 2384433d0511Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2385433d0511Smrg${ac_c_conftest_c99_globals} 2386433d0511Smrg${ac_c_conftest_c11_globals} 2387433d0511Smrg 2388433d0511Smrgint 2389433d0511Smrgmain (int argc, char **argv) 2390433d0511Smrg{ 2391433d0511Smrg int ok = 0; 2392433d0511Smrg ${ac_c_conftest_c89_main} 2393433d0511Smrg ${ac_c_conftest_c99_main} 2394433d0511Smrg ${ac_c_conftest_c11_main} 2395433d0511Smrg return ok; 2396433d0511Smrg} 2397433d0511Smrg" 2398433d0511Smrg 2399433d0511Smrg# Test code for whether the C compiler supports C99 (complete). 2400433d0511Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2401433d0511Smrg${ac_c_conftest_c99_globals} 2402433d0511Smrg 2403433d0511Smrgint 2404433d0511Smrgmain (int argc, char **argv) 2405433d0511Smrg{ 2406433d0511Smrg int ok = 0; 2407433d0511Smrg ${ac_c_conftest_c89_main} 2408433d0511Smrg ${ac_c_conftest_c99_main} 2409433d0511Smrg return ok; 2410433d0511Smrg} 2411433d0511Smrg" 2412433d0511Smrg 2413433d0511Smrg# Test code for whether the C compiler supports C89 (complete). 2414433d0511Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2415433d0511Smrg 2416433d0511Smrgint 2417433d0511Smrgmain (int argc, char **argv) 2418433d0511Smrg{ 2419433d0511Smrg int ok = 0; 2420433d0511Smrg ${ac_c_conftest_c89_main} 2421433d0511Smrg return ok; 2422433d0511Smrg} 2423433d0511Smrg" 2424433d0511Smrg 2425433d0511Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2426433d0511Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2427433d0511Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2428433d0511Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2429433d0511Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2430433d0511Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2431433d0511Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2432433d0511Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2433433d0511Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2434433d0511Smrg 2435433d0511Smrg# Auxiliary files required by this configure script. 2436433d0511Smrgac_aux_files="config.guess config.sub compile missing install-sh" 2437433d0511Smrg 2438433d0511Smrg# Locations in which to look for auxiliary files. 2439433d0511Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2440433d0511Smrg 2441433d0511Smrg# Search for a directory containing all of the required auxiliary files, 2442433d0511Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2443433d0511Smrg# If we don't find one directory that contains all the files we need, 2444433d0511Smrg# we report the set of missing files from the *first* directory in 2445433d0511Smrg# $ac_aux_dir_candidates and give up. 2446433d0511Smrgac_missing_aux_files="" 2447433d0511Smrgac_first_candidate=: 2448433d0511Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2449433d0511Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450433d0511Smrgas_found=false 2451433d0511Smrgfor as_dir in $ac_aux_dir_candidates 2452433d0511Smrgdo 2453433d0511Smrg IFS=$as_save_IFS 2454433d0511Smrg case $as_dir in #((( 2455433d0511Smrg '') as_dir=./ ;; 2456433d0511Smrg */) ;; 2457433d0511Smrg *) as_dir=$as_dir/ ;; 2458433d0511Smrg esac 2459433d0511Smrg as_found=: 2460433d0511Smrg 2461433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2462433d0511Smrg ac_aux_dir_found=yes 2463433d0511Smrg ac_install_sh= 2464433d0511Smrg for ac_aux in $ac_aux_files 2465433d0511Smrg do 2466433d0511Smrg # As a special case, if "install-sh" is required, that requirement 2467433d0511Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2468433d0511Smrg # and $ac_install_sh is set appropriately for whichever one is found. 2469433d0511Smrg if test x"$ac_aux" = x"install-sh" 2470433d0511Smrg then 2471433d0511Smrg if test -f "${as_dir}install-sh"; then 2472433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2473433d0511Smrg ac_install_sh="${as_dir}install-sh -c" 2474433d0511Smrg elif test -f "${as_dir}install.sh"; then 2475433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2476433d0511Smrg ac_install_sh="${as_dir}install.sh -c" 2477433d0511Smrg elif test -f "${as_dir}shtool"; then 2478433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2479433d0511Smrg ac_install_sh="${as_dir}shtool install -c" 2480433d0511Smrg else 2481433d0511Smrg ac_aux_dir_found=no 2482433d0511Smrg if $ac_first_candidate; then 2483433d0511Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2484433d0511Smrg else 2485433d0511Smrg break 2486433d0511Smrg fi 2487433d0511Smrg fi 2488433d0511Smrg else 2489433d0511Smrg if test -f "${as_dir}${ac_aux}"; then 2490433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2491433d0511Smrg else 2492433d0511Smrg ac_aux_dir_found=no 2493433d0511Smrg if $ac_first_candidate; then 2494433d0511Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2495433d0511Smrg else 2496433d0511Smrg break 2497433d0511Smrg fi 2498433d0511Smrg fi 2499433d0511Smrg fi 2500433d0511Smrg done 2501433d0511Smrg if test "$ac_aux_dir_found" = yes; then 2502433d0511Smrg ac_aux_dir="$as_dir" 2503433d0511Smrg break 2504433d0511Smrg fi 2505433d0511Smrg ac_first_candidate=false 2506433d0511Smrg 2507433d0511Smrg as_found=false 2508433d0511Smrgdone 2509433d0511SmrgIFS=$as_save_IFS 2510433d0511Smrgif $as_found 2511433d0511Smrgthen : 2512433d0511Smrg 2513433d0511Smrgelse case e in #( 2514433d0511Smrg e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2515433d0511Smrgesac 2516433d0511Smrgfi 25172b32c8f7Smrg 2518eaef79e5Smrg 2519eaef79e5Smrg# These three variables are undocumented and unsupported, 2520eaef79e5Smrg# and are intended to be withdrawn in a future Autoconf release. 2521eaef79e5Smrg# They can cause serious problems if a builder's source tree is in a directory 2522eaef79e5Smrg# whose full name contains unusual characters. 2523433d0511Smrgif test -f "${ac_aux_dir}config.guess"; then 2524433d0511Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2525433d0511Smrgfi 2526433d0511Smrgif test -f "${ac_aux_dir}config.sub"; then 2527433d0511Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2528433d0511Smrgfi 2529433d0511Smrgif test -f "$ac_aux_dir/configure"; then 2530433d0511Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 2531433d0511Smrgfi 2532433d0511Smrg 2533433d0511Smrg# Check that the precious variables saved in the cache have kept the same 2534433d0511Smrg# value. 2535433d0511Smrgac_cache_corrupted=false 2536433d0511Smrgfor ac_var in $ac_precious_vars; do 2537433d0511Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2538433d0511Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2539433d0511Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2540433d0511Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2541433d0511Smrg case $ac_old_set,$ac_new_set in 2542433d0511Smrg set,) 2543433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2544433d0511Smrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2545433d0511Smrg ac_cache_corrupted=: ;; 2546433d0511Smrg ,set) 2547433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2548433d0511Smrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2549433d0511Smrg ac_cache_corrupted=: ;; 2550433d0511Smrg ,);; 2551433d0511Smrg *) 2552433d0511Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2553433d0511Smrg # differences in whitespace do not lead to failure. 2554433d0511Smrg ac_old_val_w=`echo x $ac_old_val` 2555433d0511Smrg ac_new_val_w=`echo x $ac_new_val` 2556433d0511Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2557433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2558433d0511Smrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2559433d0511Smrg ac_cache_corrupted=: 2560433d0511Smrg else 2561433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2562433d0511Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2563433d0511Smrg eval $ac_var=\$ac_old_val 2564433d0511Smrg fi 2565433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2566433d0511Smrgprintf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2567433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2568433d0511Smrgprintf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2569433d0511Smrg fi;; 2570433d0511Smrg esac 2571433d0511Smrg # Pass precious variables to config.status. 2572433d0511Smrg if test "$ac_new_set" = set; then 2573433d0511Smrg case $ac_new_val in 2574433d0511Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2575433d0511Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2576433d0511Smrg esac 2577433d0511Smrg case " $ac_configure_args " in 2578433d0511Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2579433d0511Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2580433d0511Smrg esac 2581433d0511Smrg fi 2582433d0511Smrgdone 2583433d0511Smrgif $ac_cache_corrupted; then 2584433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2585433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2586433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2587433d0511Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2588433d0511Smrg as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2589433d0511Smrg and start over" "$LINENO" 5 2590433d0511Smrgfi 2591433d0511Smrg## -------------------- ## 2592433d0511Smrg## Main body of script. ## 2593433d0511Smrg## -------------------- ## 2594433d0511Smrg 2595433d0511Smrgac_ext=c 2596433d0511Smrgac_cpp='$CPP $CPPFLAGS' 2597433d0511Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2598433d0511Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2599433d0511Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2600433d0511Smrg 2601433d0511Smrg 2602433d0511Smrg 2603433d0511Smrgac_config_headers="$ac_config_headers config.h" 2604433d0511Smrg 2605433d0511Smrg 2606433d0511Smrg# Initialize Automake 2607433d0511Smrgam__api_version='1.16' 2608eaef79e5Smrg 2609eaef79e5Smrg 2610433d0511Smrg 2611433d0511Smrg # Find a good install program. We prefer a C program (faster), 2612eaef79e5Smrg# so one script is as good as another. But avoid the broken or 2613eaef79e5Smrg# incompatible versions: 2614eaef79e5Smrg# SysV /etc/install, /usr/sbin/install 2615eaef79e5Smrg# SunOS /usr/etc/install 2616eaef79e5Smrg# IRIX /sbin/install 2617eaef79e5Smrg# AIX /bin/install 2618eaef79e5Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2619eaef79e5Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2620eaef79e5Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2621eaef79e5Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2622eaef79e5Smrg# OS/2's system install, which has a completely different semantic 2623eaef79e5Smrg# ./install, which can be erroneously created by make from ./install.sh. 26242b32c8f7Smrg# Reject install programs that cannot install multiple files. 2625433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2626433d0511Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 2627eaef79e5Smrgif test -z "$INSTALL"; then 2628433d0511Smrgif test ${ac_cv_path_install+y} 2629433d0511Smrgthen : 2630433d0511Smrg printf %s "(cached) " >&6 2631433d0511Smrgelse case e in #( 2632433d0511Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633eaef79e5Smrgfor as_dir in $PATH 2634eaef79e5Smrgdo 2635eaef79e5Smrg IFS=$as_save_IFS 2636433d0511Smrg case $as_dir in #((( 2637433d0511Smrg '') as_dir=./ ;; 2638433d0511Smrg */) ;; 2639433d0511Smrg *) as_dir=$as_dir/ ;; 2640433d0511Smrg esac 2641433d0511Smrg # Account for fact that we put trailing slashes in our PATH walk. 2642433d0511Smrgcase $as_dir in #(( 2643433d0511Smrg ./ | /[cC]/* | \ 2644eaef79e5Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 264595e0246bSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2646eaef79e5Smrg /usr/ucb/* ) ;; 2647eaef79e5Smrg *) 2648eaef79e5Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2649eaef79e5Smrg # Don't use installbsd from OSF since it installs stuff as root 2650eaef79e5Smrg # by default. 2651eaef79e5Smrg for ac_prog in ginstall scoinst install; do 2652eaef79e5Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2653433d0511Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2654eaef79e5Smrg if test $ac_prog = install && 2655433d0511Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2656eaef79e5Smrg # AIX install. It has an incompatible calling convention. 2657eaef79e5Smrg : 2658eaef79e5Smrg elif test $ac_prog = install && 2659433d0511Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2660eaef79e5Smrg # program-specific install script used by HP pwplus--don't use. 2661eaef79e5Smrg : 2662eaef79e5Smrg else 26632b32c8f7Smrg rm -rf conftest.one conftest.two conftest.dir 26642b32c8f7Smrg echo one > conftest.one 26652b32c8f7Smrg echo two > conftest.two 26662b32c8f7Smrg mkdir conftest.dir 2667433d0511Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 26682b32c8f7Smrg test -s conftest.one && test -s conftest.two && 26692b32c8f7Smrg test -s conftest.dir/conftest.one && 26702b32c8f7Smrg test -s conftest.dir/conftest.two 26712b32c8f7Smrg then 2672433d0511Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 26732b32c8f7Smrg break 3 26742b32c8f7Smrg fi 2675eaef79e5Smrg fi 2676eaef79e5Smrg fi 2677eaef79e5Smrg done 2678eaef79e5Smrg done 2679eaef79e5Smrg ;; 2680eaef79e5Smrgesac 26812b32c8f7Smrg 268295e0246bSmrg done 2683eaef79e5SmrgIFS=$as_save_IFS 2684eaef79e5Smrg 26852b32c8f7Smrgrm -rf conftest.one conftest.two conftest.dir 2686433d0511Smrg ;; 2687433d0511Smrgesac 2688eaef79e5Smrgfi 2689433d0511Smrg if test ${ac_cv_path_install+y}; then 2690eaef79e5Smrg INSTALL=$ac_cv_path_install 2691eaef79e5Smrg else 2692eaef79e5Smrg # As a last resort, use the slow shell script. Don't cache a 2693eaef79e5Smrg # value for INSTALL within a source directory, because that will 2694eaef79e5Smrg # break other packages using the cache if that directory is 2695eaef79e5Smrg # removed, or if the value is a relative name. 2696eaef79e5Smrg INSTALL=$ac_install_sh 2697eaef79e5Smrg fi 2698eaef79e5Smrgfi 2699433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2700433d0511Smrgprintf "%s\n" "$INSTALL" >&6; } 2701eaef79e5Smrg 2702eaef79e5Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2703eaef79e5Smrg# It thinks the first close brace ends the variable substitution. 2704eaef79e5Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2705eaef79e5Smrg 2706eaef79e5Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2707eaef79e5Smrg 2708eaef79e5Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2709eaef79e5Smrg 2710433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2711433d0511Smrgprintf %s "checking whether build environment is sane... " >&6; } 27122b32c8f7Smrg# Reject unsafe characters in $srcdir or the absolute working directory 27132b32c8f7Smrg# name. Accept space and tab only in the latter. 27142b32c8f7Smrgam_lf=' 27152b32c8f7Smrg' 27162b32c8f7Smrgcase `pwd` in 27172b32c8f7Smrg *[\\\"\#\$\&\'\`$am_lf]*) 271895e0246bSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 27192b32c8f7Smrgesac 27202b32c8f7Smrgcase $srcdir in 27212b32c8f7Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2722cbc4e2beSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 27232b32c8f7Smrgesac 27242b32c8f7Smrg 2725cbc4e2beSmrg# Do 'set' in a subshell so we don't clobber the current shell's 2726eaef79e5Smrg# arguments. Must try -L first in case configure is actually a 2727eaef79e5Smrg# symlink; some systems play weird games with the mod time of symlinks 2728eaef79e5Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2729eaef79e5Smrg# directory). 2730eaef79e5Smrgif ( 2731cbc4e2beSmrg am_has_slept=no 2732cbc4e2beSmrg for am_try in 1 2; do 2733cbc4e2beSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 2734cbc4e2beSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2735cbc4e2beSmrg if test "$*" = "X"; then 2736cbc4e2beSmrg # -L didn't work. 2737cbc4e2beSmrg set X `ls -t "$srcdir/configure" conftest.file` 2738cbc4e2beSmrg fi 2739cbc4e2beSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2740cbc4e2beSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2741cbc4e2beSmrg 2742cbc4e2beSmrg # If neither matched, then we have a broken ls. This can happen 2743cbc4e2beSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2744cbc4e2beSmrg # broken ls alias from the environment. This has actually 2745cbc4e2beSmrg # happened. Such a system could not be considered "sane". 2746cbc4e2beSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2747cbc4e2beSmrg alias in your environment" "$LINENO" 5 2748cbc4e2beSmrg fi 2749cbc4e2beSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 2750cbc4e2beSmrg break 2751cbc4e2beSmrg fi 2752cbc4e2beSmrg # Just in case. 2753cbc4e2beSmrg sleep 1 2754cbc4e2beSmrg am_has_slept=yes 2755cbc4e2beSmrg done 2756eaef79e5Smrg test "$2" = conftest.file 2757eaef79e5Smrg ) 2758eaef79e5Smrgthen 2759eaef79e5Smrg # Ok. 2760eaef79e5Smrg : 2761eaef79e5Smrgelse 276295e0246bSmrg as_fn_error $? "newly created file is older than distributed files! 276395e0246bSmrgCheck your system clock" "$LINENO" 5 2764eaef79e5Smrgfi 2765433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2766433d0511Smrgprintf "%s\n" "yes" >&6; } 2767cbc4e2beSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 2768cbc4e2beSmrg# generated files are strictly newer. 2769cbc4e2beSmrgam_sleep_pid= 2770cbc4e2beSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 2771cbc4e2beSmrg ( sleep 1 ) & 2772cbc4e2beSmrg am_sleep_pid=$! 2773cbc4e2beSmrgfi 2774cbc4e2beSmrg 2775cbc4e2beSmrgrm -f conftest.file 2776cbc4e2beSmrg 2777eaef79e5Smrgtest "$program_prefix" != NONE && 2778eaef79e5Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2779eaef79e5Smrg# Use a double $ so make ignores it. 2780eaef79e5Smrgtest "$program_suffix" != NONE && 2781eaef79e5Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 27822b32c8f7Smrg# Double any \ or $. 2783433d0511Smrg# By default was 's,x,x', remove it if useless. 27842b32c8f7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2785433d0511Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2786433d0511Smrg 2787eaef79e5Smrg 2788d1a7ce7bSmrg# Expand $ac_aux_dir to an absolute path. 2789d1a7ce7bSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 2790eaef79e5Smrg 2791433d0511Smrg 2792433d0511Smrg if test x"${MISSING+set}" != xset; then 2793433d0511Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 27942b32c8f7Smrgfi 2795eaef79e5Smrg# Use eval to expand $SHELL 2796cbc4e2beSmrgif eval "$MISSING --is-lightweight"; then 2797cbc4e2beSmrg am_missing_run="$MISSING " 2798eaef79e5Smrgelse 2799eaef79e5Smrg am_missing_run= 2800433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2801433d0511Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 28022b32c8f7Smrgfi 28032b32c8f7Smrg 2804d1a7ce7bSmrgif test x"${install_sh+set}" != xset; then 28052b32c8f7Smrg case $am_aux_dir in 28062b32c8f7Smrg *\ * | *\ *) 28072b32c8f7Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 28082b32c8f7Smrg *) 28092b32c8f7Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 28102b32c8f7Smrg esac 28112b32c8f7Smrgfi 28122b32c8f7Smrg 2813cbc4e2beSmrg# Installed binaries are usually stripped using 'strip' when the user 2814cbc4e2beSmrg# run "make install-strip". However 'strip' might not be the right 28152b32c8f7Smrg# tool to use in cross-compilation environments, therefore Automake 2816cbc4e2beSmrg# will honor the 'STRIP' environment variable to overrule this program. 28172b32c8f7Smrgif test "$cross_compiling" != no; then 28182b32c8f7Smrg if test -n "$ac_tool_prefix"; then 28192b32c8f7Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 28202b32c8f7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2821433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2822433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 2823433d0511Smrgif test ${ac_cv_prog_STRIP+y} 2824433d0511Smrgthen : 2825433d0511Smrg printf %s "(cached) " >&6 2826433d0511Smrgelse case e in #( 2827433d0511Smrg e) if test -n "$STRIP"; then 28282b32c8f7Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 28292b32c8f7Smrgelse 28302b32c8f7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28312b32c8f7Smrgfor as_dir in $PATH 28322b32c8f7Smrgdo 28332b32c8f7Smrg IFS=$as_save_IFS 2834433d0511Smrg case $as_dir in #((( 2835433d0511Smrg '') as_dir=./ ;; 2836433d0511Smrg */) ;; 2837433d0511Smrg *) as_dir=$as_dir/ ;; 2838433d0511Smrg esac 283995e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2840433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28412b32c8f7Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2842433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28432b32c8f7Smrg break 2 28442b32c8f7Smrg fi 28452b32c8f7Smrgdone 284695e0246bSmrg done 28472b32c8f7SmrgIFS=$as_save_IFS 28482b32c8f7Smrg 2849433d0511Smrgfi ;; 2850433d0511Smrgesac 28512b32c8f7Smrgfi 28522b32c8f7SmrgSTRIP=$ac_cv_prog_STRIP 28532b32c8f7Smrgif test -n "$STRIP"; then 2854433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2855433d0511Smrgprintf "%s\n" "$STRIP" >&6; } 28562b32c8f7Smrgelse 2857433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858433d0511Smrgprintf "%s\n" "no" >&6; } 28592b32c8f7Smrgfi 28602b32c8f7Smrg 28612b32c8f7Smrg 28622b32c8f7Smrgfi 28632b32c8f7Smrgif test -z "$ac_cv_prog_STRIP"; then 28642b32c8f7Smrg ac_ct_STRIP=$STRIP 28652b32c8f7Smrg # Extract the first word of "strip", so it can be a program name with args. 28662b32c8f7Smrgset dummy strip; ac_word=$2 2867433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 2869433d0511Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 2870433d0511Smrgthen : 2871433d0511Smrg printf %s "(cached) " >&6 2872433d0511Smrgelse case e in #( 2873433d0511Smrg e) if test -n "$ac_ct_STRIP"; then 28742b32c8f7Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 28752b32c8f7Smrgelse 28762b32c8f7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28772b32c8f7Smrgfor as_dir in $PATH 28782b32c8f7Smrgdo 28792b32c8f7Smrg IFS=$as_save_IFS 2880433d0511Smrg case $as_dir in #((( 2881433d0511Smrg '') as_dir=./ ;; 2882433d0511Smrg */) ;; 2883433d0511Smrg *) as_dir=$as_dir/ ;; 2884433d0511Smrg esac 288595e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2886433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28872b32c8f7Smrg ac_cv_prog_ac_ct_STRIP="strip" 2888433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28892b32c8f7Smrg break 2 28902b32c8f7Smrg fi 28912b32c8f7Smrgdone 289295e0246bSmrg done 28932b32c8f7SmrgIFS=$as_save_IFS 28942b32c8f7Smrg 2895433d0511Smrgfi ;; 2896433d0511Smrgesac 28972b32c8f7Smrgfi 28982b32c8f7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 28992b32c8f7Smrgif test -n "$ac_ct_STRIP"; then 2900433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2901433d0511Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 29022b32c8f7Smrgelse 2903433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904433d0511Smrgprintf "%s\n" "no" >&6; } 29052b32c8f7Smrgfi 29062b32c8f7Smrg 29072b32c8f7Smrg if test "x$ac_ct_STRIP" = x; then 29082b32c8f7Smrg STRIP=":" 29092b32c8f7Smrg else 29102b32c8f7Smrg case $cross_compiling:$ac_tool_warned in 29112b32c8f7Smrgyes:) 2912433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2913433d0511Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29142b32c8f7Smrgac_tool_warned=yes ;; 29152b32c8f7Smrgesac 29162b32c8f7Smrg STRIP=$ac_ct_STRIP 29172b32c8f7Smrg fi 29182b32c8f7Smrgelse 29192b32c8f7Smrg STRIP="$ac_cv_prog_STRIP" 29202b32c8f7Smrgfi 29212b32c8f7Smrg 29222b32c8f7Smrgfi 29232b32c8f7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 29242b32c8f7Smrg 2925433d0511Smrg 2926433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2927433d0511Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 29282b32c8f7Smrgif test -z "$MKDIR_P"; then 2929433d0511Smrg if test ${ac_cv_path_mkdir+y} 2930433d0511Smrgthen : 2931433d0511Smrg printf %s "(cached) " >&6 2932433d0511Smrgelse case e in #( 2933433d0511Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29342b32c8f7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 29352b32c8f7Smrgdo 29362b32c8f7Smrg IFS=$as_save_IFS 2937433d0511Smrg case $as_dir in #((( 2938433d0511Smrg '') as_dir=./ ;; 2939433d0511Smrg */) ;; 2940433d0511Smrg *) as_dir=$as_dir/ ;; 2941433d0511Smrg esac 294295e0246bSmrg for ac_prog in mkdir gmkdir; do 29432b32c8f7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2944433d0511Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2945433d0511Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2946433d0511Smrg 'mkdir ('*'coreutils) '* | \ 2947433d0511Smrg *'BusyBox '* | \ 29482b32c8f7Smrg 'mkdir (fileutils) '4.1*) 2949433d0511Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 29502b32c8f7Smrg break 3;; 29512b32c8f7Smrg esac 29522b32c8f7Smrg done 29532b32c8f7Smrg done 295495e0246bSmrg done 29552b32c8f7SmrgIFS=$as_save_IFS 2956433d0511Smrg ;; 2957433d0511Smrgesac 29582b32c8f7Smrgfi 29592b32c8f7Smrg 296095e0246bSmrg test -d ./--version && rmdir ./--version 2961433d0511Smrg if test ${ac_cv_path_mkdir+y}; then 29622b32c8f7Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2963eaef79e5Smrg else 2964433d0511Smrg # As a last resort, use plain mkdir -p, 2965433d0511Smrg # in the hope it doesn't have the bugs of ancient mkdir. 2966433d0511Smrg MKDIR_P='mkdir -p' 2967eaef79e5Smrg fi 2968eaef79e5Smrgfi 2969433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2970433d0511Smrgprintf "%s\n" "$MKDIR_P" >&6; } 29712b32c8f7Smrg 2972eaef79e5Smrgfor ac_prog in gawk mawk nawk awk 2973eaef79e5Smrgdo 2974eaef79e5Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2975eaef79e5Smrgset dummy $ac_prog; ac_word=$2 2976433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2977433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 2978433d0511Smrgif test ${ac_cv_prog_AWK+y} 2979433d0511Smrgthen : 2980433d0511Smrg printf %s "(cached) " >&6 2981433d0511Smrgelse case e in #( 2982433d0511Smrg e) if test -n "$AWK"; then 2983eaef79e5Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2984eaef79e5Smrgelse 2985eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986eaef79e5Smrgfor as_dir in $PATH 2987eaef79e5Smrgdo 2988eaef79e5Smrg IFS=$as_save_IFS 2989433d0511Smrg case $as_dir in #((( 2990433d0511Smrg '') as_dir=./ ;; 2991433d0511Smrg */) ;; 2992433d0511Smrg *) as_dir=$as_dir/ ;; 2993433d0511Smrg esac 299495e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2995433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2996eaef79e5Smrg ac_cv_prog_AWK="$ac_prog" 2997433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2998eaef79e5Smrg break 2 2999eaef79e5Smrg fi 3000eaef79e5Smrgdone 300195e0246bSmrg done 3002eaef79e5SmrgIFS=$as_save_IFS 3003eaef79e5Smrg 3004433d0511Smrgfi ;; 3005433d0511Smrgesac 3006eaef79e5Smrgfi 3007eaef79e5SmrgAWK=$ac_cv_prog_AWK 3008eaef79e5Smrgif test -n "$AWK"; then 3009433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3010433d0511Smrgprintf "%s\n" "$AWK" >&6; } 3011eaef79e5Smrgelse 3012433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013433d0511Smrgprintf "%s\n" "no" >&6; } 3014eaef79e5Smrgfi 3015eaef79e5Smrg 3016eaef79e5Smrg 3017eaef79e5Smrg test -n "$AWK" && break 3018eaef79e5Smrgdone 3019eaef79e5Smrg 3020433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3021433d0511Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 30222b32c8f7Smrgset x ${MAKE-make} 3023433d0511Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3024433d0511Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 3025433d0511Smrgthen : 3026433d0511Smrg printf %s "(cached) " >&6 3027433d0511Smrgelse case e in #( 3028433d0511Smrg e) cat >conftest.make <<\_ACEOF 3029eaef79e5SmrgSHELL = /bin/sh 3030eaef79e5Smrgall: 3031eaef79e5Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 3032eaef79e5Smrg_ACEOF 303395e0246bSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3034eaef79e5Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 3035eaef79e5Smrg *@@@%%%=?*=@@@%%%*) 3036eaef79e5Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 3037eaef79e5Smrg *) 3038eaef79e5Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 3039eaef79e5Smrgesac 3040433d0511Smrgrm -f conftest.make ;; 3041433d0511Smrgesac 3042eaef79e5Smrgfi 3043eaef79e5Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3044433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3045433d0511Smrgprintf "%s\n" "yes" >&6; } 3046eaef79e5Smrg SET_MAKE= 3047eaef79e5Smrgelse 3048433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049433d0511Smrgprintf "%s\n" "no" >&6; } 3050eaef79e5Smrg SET_MAKE="MAKE=${MAKE-make}" 3051eaef79e5Smrgfi 3052eaef79e5Smrg 3053eaef79e5Smrgrm -rf .tst 2>/dev/null 3054eaef79e5Smrgmkdir .tst 2>/dev/null 3055eaef79e5Smrgif test -d .tst; then 3056eaef79e5Smrg am__leading_dot=. 3057eaef79e5Smrgelse 3058eaef79e5Smrg am__leading_dot=_ 3059eaef79e5Smrgfi 3060eaef79e5Smrgrmdir .tst 2>/dev/null 3061eaef79e5Smrg 3062cbc4e2beSmrg# Check whether --enable-silent-rules was given. 3063433d0511Smrgif test ${enable_silent_rules+y} 3064433d0511Smrgthen : 3065cbc4e2beSmrg enableval=$enable_silent_rules; 3066cbc4e2beSmrgfi 3067cbc4e2beSmrg 3068cbc4e2beSmrgcase $enable_silent_rules in # ((( 3069cbc4e2beSmrg yes) AM_DEFAULT_VERBOSITY=0;; 3070cbc4e2beSmrg no) AM_DEFAULT_VERBOSITY=1;; 3071cbc4e2beSmrg *) AM_DEFAULT_VERBOSITY=1;; 3072cbc4e2beSmrgesac 3073cbc4e2beSmrgam_make=${MAKE-make} 3074433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3075433d0511Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 3076433d0511Smrgif test ${am_cv_make_support_nested_variables+y} 3077433d0511Smrgthen : 3078433d0511Smrg printf %s "(cached) " >&6 3079433d0511Smrgelse case e in #( 3080433d0511Smrg e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3081cbc4e2beSmrgBAR0=false 3082cbc4e2beSmrgBAR1=true 3083cbc4e2beSmrgV=1 3084cbc4e2beSmrgam__doit: 3085cbc4e2beSmrg @$(TRUE) 3086cbc4e2beSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3087cbc4e2beSmrg am_cv_make_support_nested_variables=yes 3088cbc4e2beSmrgelse 3089cbc4e2beSmrg am_cv_make_support_nested_variables=no 3090433d0511Smrgfi ;; 3091433d0511Smrgesac 3092cbc4e2beSmrgfi 3093433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3094433d0511Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3095cbc4e2beSmrgif test $am_cv_make_support_nested_variables = yes; then 3096cbc4e2beSmrg AM_V='$(V)' 3097cbc4e2beSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3098cbc4e2beSmrgelse 3099cbc4e2beSmrg AM_V=$AM_DEFAULT_VERBOSITY 3100cbc4e2beSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3101cbc4e2beSmrgfi 3102cbc4e2beSmrgAM_BACKSLASH='\' 3103cbc4e2beSmrg 31042b32c8f7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 31052b32c8f7Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 31062b32c8f7Smrg # is not polluted with repeated "-I." 31072b32c8f7Smrg am__isrc=' -I$(srcdir)' 31082b32c8f7Smrg # test to see if srcdir already configured 31092b32c8f7Smrg if test -f $srcdir/config.status; then 311095e0246bSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 31112b32c8f7Smrg fi 3112eaef79e5Smrgfi 3113eaef79e5Smrg 3114eaef79e5Smrg# test whether we have cygpath 3115eaef79e5Smrgif test -z "$CYGPATH_W"; then 3116eaef79e5Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 3117eaef79e5Smrg CYGPATH_W='cygpath -w' 3118eaef79e5Smrg else 3119eaef79e5Smrg CYGPATH_W=echo 3120eaef79e5Smrg fi 3121eaef79e5Smrgfi 3122eaef79e5Smrg 3123eaef79e5Smrg 3124eaef79e5Smrg# Define the identity of the package. 3125eaef79e5Smrg PACKAGE='bitmap' 3126433d0511Smrg VERSION='1.1.1' 3127eaef79e5Smrg 3128eaef79e5Smrg 3129433d0511Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3130eaef79e5Smrg 3131eaef79e5Smrg 3132433d0511Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3133eaef79e5Smrg 3134eaef79e5Smrg# Some tools Automake needs. 3135eaef79e5Smrg 3136eaef79e5SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3137eaef79e5Smrg 3138eaef79e5Smrg 3139eaef79e5SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3140eaef79e5Smrg 3141eaef79e5Smrg 3142eaef79e5SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3143eaef79e5Smrg 3144eaef79e5Smrg 3145eaef79e5SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3146eaef79e5Smrg 3147eaef79e5Smrg 3148eaef79e5SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3149eaef79e5Smrg 3150cbc4e2beSmrg# For better backward compatibility. To be removed once Automake 1.9.x 3151cbc4e2beSmrg# dies out for good. For more background, see: 3152433d0511Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3153433d0511Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3154cbc4e2beSmrgmkdir_p='$(MKDIR_P)' 3155cbc4e2beSmrg 3156d1a7ce7bSmrg# We need awk for the "check" target (and possibly the TAP driver). The 3157d1a7ce7bSmrg# system "awk" is bad on some platforms. 3158cbc4e2beSmrg# Always define AMTAR for backward compatibility. Yes, it's still used 3159cbc4e2beSmrg# in the wild :-( We should find a proper way to deprecate it ... 3160cbc4e2beSmrgAMTAR='$${TAR-tar}' 3161cbc4e2beSmrg 3162eaef79e5Smrg 3163cbc4e2beSmrg# We'll loop over all known methods to create a tar archive until one works. 3164cbc4e2beSmrg_am_tools='gnutar pax cpio none' 3165cbc4e2beSmrg 3166cbc4e2beSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3167eaef79e5Smrg 3168eaef79e5Smrg 3169eaef79e5Smrg 3170eaef79e5Smrg 3171eaef79e5Smrg 3172433d0511Smrg# Variables for tags utilities; see am/tags.am 3173433d0511Smrgif test -z "$CTAGS"; then 3174433d0511Smrg CTAGS=ctags 3175433d0511Smrgfi 3176433d0511Smrg 3177433d0511Smrgif test -z "$ETAGS"; then 3178433d0511Smrg ETAGS=etags 3179433d0511Smrgfi 3180433d0511Smrg 3181433d0511Smrgif test -z "$CSCOPE"; then 3182433d0511Smrg CSCOPE=cscope 3183433d0511Smrgfi 3184433d0511Smrg 3185433d0511Smrg 3186eaef79e5Smrg 3187d1a7ce7bSmrg# POSIX will say in a future version that running "rm -f" with no argument 3188d1a7ce7bSmrg# is OK; and we want to be able to make that assumption in our Makefile 3189d1a7ce7bSmrg# recipes. So use an aggressive probe to check that the usage we want is 3190d1a7ce7bSmrg# actually supported "in the wild" to an acceptable degree. 3191d1a7ce7bSmrg# See automake bug#10828. 3192d1a7ce7bSmrg# To make any issue more visible, cause the running configure to be aborted 3193d1a7ce7bSmrg# by default if the 'rm' program in use doesn't match our expectations; the 3194d1a7ce7bSmrg# user can still override this though. 3195d1a7ce7bSmrgif rm -f && rm -fr && rm -rf; then : OK; else 3196d1a7ce7bSmrg cat >&2 <<'END' 3197d1a7ce7bSmrgOops! 31982b32c8f7Smrg 3199d1a7ce7bSmrgYour 'rm' program seems unable to run without file operands specified 3200d1a7ce7bSmrgon the command line, even when the '-f' option is present. This is contrary 3201d1a7ce7bSmrgto the behaviour of most rm programs out there, and not conforming with 3202d1a7ce7bSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3203eaef79e5Smrg 3204d1a7ce7bSmrgPlease tell bug-automake@gnu.org about your system, including the value 3205d1a7ce7bSmrgof your $PATH and any error possibly output before this message. This 3206d1a7ce7bSmrgcan help us improve future automake versions. 3207eaef79e5Smrg 3208d1a7ce7bSmrgEND 3209d1a7ce7bSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3210d1a7ce7bSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 3211d1a7ce7bSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3212d1a7ce7bSmrg echo >&2 3213d1a7ce7bSmrg else 3214d1a7ce7bSmrg cat >&2 <<'END' 3215d1a7ce7bSmrgAborting the configuration process, to ensure you take notice of the issue. 3216eaef79e5Smrg 3217d1a7ce7bSmrgYou can download and install GNU coreutils to get an 'rm' implementation 3218433d0511Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 3219d1a7ce7bSmrg 3220d1a7ce7bSmrgIf you want to complete the configuration process using your problematic 3221d1a7ce7bSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3222d1a7ce7bSmrgto "yes", and re-run configure. 3223d1a7ce7bSmrg 3224d1a7ce7bSmrgEND 3225d1a7ce7bSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3226d1a7ce7bSmrg fi 3227d1a7ce7bSmrgfi 3228eaef79e5Smrg 3229eaef79e5Smrg 323095e0246bSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 32312b32c8f7Smrg 32322b32c8f7Smrg 32332b32c8f7Smrg 32342b32c8f7Smrg 32352b32c8f7Smrg 32362b32c8f7Smrg 32372b32c8f7Smrg 32382b32c8f7Smrg 32392b32c8f7Smrg 32402b32c8f7Smrg 32412b32c8f7Smrg 3242433d0511Smrg 3243433d0511Smrg 3244433d0511Smrg 3245433d0511Smrg 3246433d0511Smrg 3247433d0511Smrg 3248433d0511Smrg 3249433d0511Smrg 3250433d0511Smrg 325195e0246bSmrgDEPDIR="${am__leading_dot}deps" 32522b32c8f7Smrg 325395e0246bSmrgac_config_commands="$ac_config_commands depfiles" 3254eaef79e5Smrg 3255433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3256433d0511Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3257433d0511Smrgcat > confinc.mk << 'END' 325895e0246bSmrgam__doit: 3259433d0511Smrg @echo this is the am__doit target >confinc.out 326095e0246bSmrg.PHONY: am__doit 326195e0246bSmrgEND 326295e0246bSmrgam__include="#" 326395e0246bSmrgam__quote= 3264433d0511Smrg# BSD make does it like this. 3265433d0511Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 3266433d0511Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3267433d0511Smrgecho 'include confinc.mk # ignored' > confmf.GNU 3268433d0511Smrg_am_result=no 3269433d0511Smrgfor s in GNU BSD; do 3270433d0511Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3271433d0511Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3272433d0511Smrg ac_status=$? 3273433d0511Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274433d0511Smrg (exit $ac_status); } 3275433d0511Smrg case $?:`cat confinc.out 2>/dev/null` in #( 3276433d0511Smrg '0:this is the am__doit target') : 3277433d0511Smrg case $s in #( 3278433d0511Smrg BSD) : 3279433d0511Smrg am__include='.include' am__quote='"' ;; #( 3280433d0511Smrg *) : 3281433d0511Smrg am__include='include' am__quote='' ;; 3282433d0511Smrgesac ;; #( 3283433d0511Smrg *) : 328495e0246bSmrg ;; 3285433d0511Smrgesac 3286433d0511Smrg if test "$am__include" != "#"; then 3287433d0511Smrg _am_result="yes ($s style)" 3288433d0511Smrg break 3289433d0511Smrg fi 3290433d0511Smrgdone 3291433d0511Smrgrm -f confinc.* confmf.* 3292433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3293433d0511Smrgprintf "%s\n" "${_am_result}" >&6; } 329495e0246bSmrg 329595e0246bSmrg# Check whether --enable-dependency-tracking was given. 3296433d0511Smrgif test ${enable_dependency_tracking+y} 3297433d0511Smrgthen : 329895e0246bSmrg enableval=$enable_dependency_tracking; 329995e0246bSmrgfi 330095e0246bSmrg 330195e0246bSmrgif test "x$enable_dependency_tracking" != xno; then 330295e0246bSmrg am_depcomp="$ac_aux_dir/depcomp" 330395e0246bSmrg AMDEPBACKSLASH='\' 3304cbc4e2beSmrg am__nodep='_no' 330595e0246bSmrgfi 330695e0246bSmrg if test "x$enable_dependency_tracking" != xno; then 330795e0246bSmrg AMDEP_TRUE= 330895e0246bSmrg AMDEP_FALSE='#' 330995e0246bSmrgelse 331095e0246bSmrg AMDEP_TRUE='#' 331195e0246bSmrg AMDEP_FALSE= 331295e0246bSmrgfi 331395e0246bSmrg 331495e0246bSmrg 331595e0246bSmrgac_ext=c 331695e0246bSmrgac_cpp='$CPP $CPPFLAGS' 331795e0246bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 331895e0246bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 331995e0246bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 332095e0246bSmrgif test -n "$ac_tool_prefix"; then 332195e0246bSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 332295e0246bSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3323433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3325433d0511Smrgif test ${ac_cv_prog_CC+y} 3326433d0511Smrgthen : 3327433d0511Smrg printf %s "(cached) " >&6 3328433d0511Smrgelse case e in #( 3329433d0511Smrg e) if test -n "$CC"; then 333095e0246bSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 333195e0246bSmrgelse 333295e0246bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 333395e0246bSmrgfor as_dir in $PATH 333495e0246bSmrgdo 333595e0246bSmrg IFS=$as_save_IFS 3336433d0511Smrg case $as_dir in #((( 3337433d0511Smrg '') as_dir=./ ;; 3338433d0511Smrg */) ;; 3339433d0511Smrg *) as_dir=$as_dir/ ;; 3340433d0511Smrg esac 334195e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3342433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 334395e0246bSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3344433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 334595e0246bSmrg break 2 334695e0246bSmrg fi 334795e0246bSmrgdone 334895e0246bSmrg done 334995e0246bSmrgIFS=$as_save_IFS 335095e0246bSmrg 3351433d0511Smrgfi ;; 3352433d0511Smrgesac 335395e0246bSmrgfi 335495e0246bSmrgCC=$ac_cv_prog_CC 335595e0246bSmrgif test -n "$CC"; then 3356433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357433d0511Smrgprintf "%s\n" "$CC" >&6; } 3358eaef79e5Smrgelse 3359433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360433d0511Smrgprintf "%s\n" "no" >&6; } 3361eaef79e5Smrgfi 3362eaef79e5Smrg 3363eaef79e5Smrg 3364eaef79e5Smrgfi 3365eaef79e5Smrgif test -z "$ac_cv_prog_CC"; then 3366eaef79e5Smrg ac_ct_CC=$CC 3367eaef79e5Smrg # Extract the first word of "gcc", so it can be a program name with args. 3368eaef79e5Smrgset dummy gcc; ac_word=$2 3369433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3370433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3371433d0511Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3372433d0511Smrgthen : 3373433d0511Smrg printf %s "(cached) " >&6 3374433d0511Smrgelse case e in #( 3375433d0511Smrg e) if test -n "$ac_ct_CC"; then 3376eaef79e5Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3377eaef79e5Smrgelse 3378eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3379eaef79e5Smrgfor as_dir in $PATH 3380eaef79e5Smrgdo 3381eaef79e5Smrg IFS=$as_save_IFS 3382433d0511Smrg case $as_dir in #((( 3383433d0511Smrg '') as_dir=./ ;; 3384433d0511Smrg */) ;; 3385433d0511Smrg *) as_dir=$as_dir/ ;; 3386433d0511Smrg esac 338795e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3388433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3389eaef79e5Smrg ac_cv_prog_ac_ct_CC="gcc" 3390433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3391eaef79e5Smrg break 2 3392eaef79e5Smrg fi 3393eaef79e5Smrgdone 339495e0246bSmrg done 3395eaef79e5SmrgIFS=$as_save_IFS 3396eaef79e5Smrg 3397433d0511Smrgfi ;; 3398433d0511Smrgesac 3399eaef79e5Smrgfi 3400eaef79e5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3401eaef79e5Smrgif test -n "$ac_ct_CC"; then 3402433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3403433d0511Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3404eaef79e5Smrgelse 3405433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406433d0511Smrgprintf "%s\n" "no" >&6; } 3407eaef79e5Smrgfi 3408eaef79e5Smrg 3409eaef79e5Smrg if test "x$ac_ct_CC" = x; then 3410eaef79e5Smrg CC="" 3411eaef79e5Smrg else 3412eaef79e5Smrg case $cross_compiling:$ac_tool_warned in 3413eaef79e5Smrgyes:) 3414433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3415433d0511Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3416eaef79e5Smrgac_tool_warned=yes ;; 3417eaef79e5Smrgesac 3418eaef79e5Smrg CC=$ac_ct_CC 3419eaef79e5Smrg fi 3420eaef79e5Smrgelse 3421eaef79e5Smrg CC="$ac_cv_prog_CC" 3422eaef79e5Smrgfi 3423eaef79e5Smrg 3424eaef79e5Smrgif test -z "$CC"; then 3425eaef79e5Smrg if test -n "$ac_tool_prefix"; then 3426eaef79e5Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3427eaef79e5Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3428433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3430433d0511Smrgif test ${ac_cv_prog_CC+y} 3431433d0511Smrgthen : 3432433d0511Smrg printf %s "(cached) " >&6 3433433d0511Smrgelse case e in #( 3434433d0511Smrg e) if test -n "$CC"; then 3435eaef79e5Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3436eaef79e5Smrgelse 3437eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438eaef79e5Smrgfor as_dir in $PATH 3439eaef79e5Smrgdo 3440eaef79e5Smrg IFS=$as_save_IFS 3441433d0511Smrg case $as_dir in #((( 3442433d0511Smrg '') as_dir=./ ;; 3443433d0511Smrg */) ;; 3444433d0511Smrg *) as_dir=$as_dir/ ;; 3445433d0511Smrg esac 344695e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3447433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448eaef79e5Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3449433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450eaef79e5Smrg break 2 3451eaef79e5Smrg fi 3452eaef79e5Smrgdone 345395e0246bSmrg done 3454eaef79e5SmrgIFS=$as_save_IFS 3455eaef79e5Smrg 3456433d0511Smrgfi ;; 3457433d0511Smrgesac 3458eaef79e5Smrgfi 3459eaef79e5SmrgCC=$ac_cv_prog_CC 3460eaef79e5Smrgif test -n "$CC"; then 3461433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3462433d0511Smrgprintf "%s\n" "$CC" >&6; } 3463eaef79e5Smrgelse 3464433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465433d0511Smrgprintf "%s\n" "no" >&6; } 3466eaef79e5Smrgfi 3467eaef79e5Smrg 3468eaef79e5Smrg 3469eaef79e5Smrg fi 3470eaef79e5Smrgfi 3471eaef79e5Smrgif test -z "$CC"; then 3472eaef79e5Smrg # Extract the first word of "cc", so it can be a program name with args. 3473eaef79e5Smrgset dummy cc; ac_word=$2 3474433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3476433d0511Smrgif test ${ac_cv_prog_CC+y} 3477433d0511Smrgthen : 3478433d0511Smrg printf %s "(cached) " >&6 3479433d0511Smrgelse case e in #( 3480433d0511Smrg e) if test -n "$CC"; then 3481eaef79e5Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3482eaef79e5Smrgelse 3483eaef79e5Smrg ac_prog_rejected=no 3484eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3485eaef79e5Smrgfor as_dir in $PATH 3486eaef79e5Smrgdo 3487eaef79e5Smrg IFS=$as_save_IFS 3488433d0511Smrg case $as_dir in #((( 3489433d0511Smrg '') as_dir=./ ;; 3490433d0511Smrg */) ;; 3491433d0511Smrg *) as_dir=$as_dir/ ;; 3492433d0511Smrg esac 349395e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3494433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3495433d0511Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3496eaef79e5Smrg ac_prog_rejected=yes 3497eaef79e5Smrg continue 3498eaef79e5Smrg fi 3499eaef79e5Smrg ac_cv_prog_CC="cc" 3500433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3501eaef79e5Smrg break 2 3502eaef79e5Smrg fi 3503eaef79e5Smrgdone 350495e0246bSmrg done 3505eaef79e5SmrgIFS=$as_save_IFS 3506eaef79e5Smrg 3507eaef79e5Smrgif test $ac_prog_rejected = yes; then 3508eaef79e5Smrg # We found a bogon in the path, so make sure we never use it. 3509eaef79e5Smrg set dummy $ac_cv_prog_CC 3510eaef79e5Smrg shift 3511eaef79e5Smrg if test $# != 0; then 3512eaef79e5Smrg # We chose a different compiler from the bogus one. 3513eaef79e5Smrg # However, it has the same basename, so the bogon will be chosen 3514eaef79e5Smrg # first if we set CC to just the basename; use the full file name. 3515eaef79e5Smrg shift 3516433d0511Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3517eaef79e5Smrg fi 3518eaef79e5Smrgfi 3519433d0511Smrgfi ;; 3520433d0511Smrgesac 3521eaef79e5Smrgfi 3522eaef79e5SmrgCC=$ac_cv_prog_CC 3523eaef79e5Smrgif test -n "$CC"; then 3524433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525433d0511Smrgprintf "%s\n" "$CC" >&6; } 3526eaef79e5Smrgelse 3527433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528433d0511Smrgprintf "%s\n" "no" >&6; } 3529eaef79e5Smrgfi 3530eaef79e5Smrg 3531eaef79e5Smrg 3532eaef79e5Smrgfi 3533eaef79e5Smrgif test -z "$CC"; then 3534eaef79e5Smrg if test -n "$ac_tool_prefix"; then 3535eaef79e5Smrg for ac_prog in cl.exe 3536eaef79e5Smrg do 3537eaef79e5Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3538eaef79e5Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3539433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3541433d0511Smrgif test ${ac_cv_prog_CC+y} 3542433d0511Smrgthen : 3543433d0511Smrg printf %s "(cached) " >&6 3544433d0511Smrgelse case e in #( 3545433d0511Smrg e) if test -n "$CC"; then 3546eaef79e5Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3547eaef79e5Smrgelse 3548eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549eaef79e5Smrgfor as_dir in $PATH 3550eaef79e5Smrgdo 3551eaef79e5Smrg IFS=$as_save_IFS 3552433d0511Smrg case $as_dir in #((( 3553433d0511Smrg '') as_dir=./ ;; 3554433d0511Smrg */) ;; 3555433d0511Smrg *) as_dir=$as_dir/ ;; 3556433d0511Smrg esac 355795e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3558433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3559eaef79e5Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3560433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3561eaef79e5Smrg break 2 3562eaef79e5Smrg fi 3563eaef79e5Smrgdone 356495e0246bSmrg done 3565eaef79e5SmrgIFS=$as_save_IFS 3566eaef79e5Smrg 3567433d0511Smrgfi ;; 3568433d0511Smrgesac 3569eaef79e5Smrgfi 3570eaef79e5SmrgCC=$ac_cv_prog_CC 3571eaef79e5Smrgif test -n "$CC"; then 3572433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573433d0511Smrgprintf "%s\n" "$CC" >&6; } 3574eaef79e5Smrgelse 3575433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576433d0511Smrgprintf "%s\n" "no" >&6; } 3577eaef79e5Smrgfi 3578eaef79e5Smrg 3579eaef79e5Smrg 3580eaef79e5Smrg test -n "$CC" && break 3581eaef79e5Smrg done 3582eaef79e5Smrgfi 3583eaef79e5Smrgif test -z "$CC"; then 3584eaef79e5Smrg ac_ct_CC=$CC 3585eaef79e5Smrg for ac_prog in cl.exe 3586eaef79e5Smrgdo 3587eaef79e5Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3588eaef79e5Smrgset dummy $ac_prog; ac_word=$2 3589433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3590433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3591433d0511Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3592433d0511Smrgthen : 3593433d0511Smrg printf %s "(cached) " >&6 3594433d0511Smrgelse case e in #( 3595433d0511Smrg e) if test -n "$ac_ct_CC"; then 3596eaef79e5Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3597eaef79e5Smrgelse 3598eaef79e5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3599eaef79e5Smrgfor as_dir in $PATH 3600eaef79e5Smrgdo 3601eaef79e5Smrg IFS=$as_save_IFS 3602433d0511Smrg case $as_dir in #((( 3603433d0511Smrg '') as_dir=./ ;; 3604433d0511Smrg */) ;; 3605433d0511Smrg *) as_dir=$as_dir/ ;; 3606433d0511Smrg esac 360795e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3608433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3609eaef79e5Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3610433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3611eaef79e5Smrg break 2 3612eaef79e5Smrg fi 3613eaef79e5Smrgdone 361495e0246bSmrg done 3615eaef79e5SmrgIFS=$as_save_IFS 3616eaef79e5Smrg 3617433d0511Smrgfi ;; 3618433d0511Smrgesac 3619eaef79e5Smrgfi 3620eaef79e5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3621eaef79e5Smrgif test -n "$ac_ct_CC"; then 3622433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3623433d0511Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3624eaef79e5Smrgelse 3625433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626433d0511Smrgprintf "%s\n" "no" >&6; } 3627eaef79e5Smrgfi 3628eaef79e5Smrg 3629eaef79e5Smrg 3630eaef79e5Smrg test -n "$ac_ct_CC" && break 3631eaef79e5Smrgdone 3632eaef79e5Smrg 3633eaef79e5Smrg if test "x$ac_ct_CC" = x; then 3634eaef79e5Smrg CC="" 3635eaef79e5Smrg else 3636eaef79e5Smrg case $cross_compiling:$ac_tool_warned in 3637eaef79e5Smrgyes:) 3638433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3639433d0511Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3640eaef79e5Smrgac_tool_warned=yes ;; 3641eaef79e5Smrgesac 3642eaef79e5Smrg CC=$ac_ct_CC 3643eaef79e5Smrg fi 3644eaef79e5Smrgfi 3645eaef79e5Smrg 3646eaef79e5Smrgfi 3647433d0511Smrgif test -z "$CC"; then 3648433d0511Smrg if test -n "$ac_tool_prefix"; then 3649433d0511Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3650433d0511Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 3651433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3652433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3653433d0511Smrgif test ${ac_cv_prog_CC+y} 3654433d0511Smrgthen : 3655433d0511Smrg printf %s "(cached) " >&6 3656433d0511Smrgelse case e in #( 3657433d0511Smrg e) if test -n "$CC"; then 3658433d0511Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3659433d0511Smrgelse 3660433d0511Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661433d0511Smrgfor as_dir in $PATH 3662433d0511Smrgdo 3663433d0511Smrg IFS=$as_save_IFS 3664433d0511Smrg case $as_dir in #((( 3665433d0511Smrg '') as_dir=./ ;; 3666433d0511Smrg */) ;; 3667433d0511Smrg *) as_dir=$as_dir/ ;; 3668433d0511Smrg esac 3669433d0511Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3670433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3671433d0511Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 3672433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3673433d0511Smrg break 2 3674433d0511Smrg fi 3675433d0511Smrgdone 3676433d0511Smrg done 3677433d0511SmrgIFS=$as_save_IFS 3678433d0511Smrg 3679433d0511Smrgfi ;; 3680433d0511Smrgesac 3681433d0511Smrgfi 3682433d0511SmrgCC=$ac_cv_prog_CC 3683433d0511Smrgif test -n "$CC"; then 3684433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3685433d0511Smrgprintf "%s\n" "$CC" >&6; } 3686433d0511Smrgelse 3687433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688433d0511Smrgprintf "%s\n" "no" >&6; } 3689433d0511Smrgfi 3690eaef79e5Smrg 3691eaef79e5Smrg 3692433d0511Smrgfi 3693433d0511Smrgif test -z "$ac_cv_prog_CC"; then 3694433d0511Smrg ac_ct_CC=$CC 3695433d0511Smrg # Extract the first word of "clang", so it can be a program name with args. 3696433d0511Smrgset dummy clang; ac_word=$2 3697433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3698433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 3699433d0511Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3700433d0511Smrgthen : 3701433d0511Smrg printf %s "(cached) " >&6 3702433d0511Smrgelse case e in #( 3703433d0511Smrg e) if test -n "$ac_ct_CC"; then 3704433d0511Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3705433d0511Smrgelse 3706433d0511Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707433d0511Smrgfor as_dir in $PATH 3708433d0511Smrgdo 3709433d0511Smrg IFS=$as_save_IFS 3710433d0511Smrg case $as_dir in #((( 3711433d0511Smrg '') as_dir=./ ;; 3712433d0511Smrg */) ;; 3713433d0511Smrg *) as_dir=$as_dir/ ;; 3714433d0511Smrg esac 3715433d0511Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3716433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3717433d0511Smrg ac_cv_prog_ac_ct_CC="clang" 3718433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3719433d0511Smrg break 2 3720433d0511Smrg fi 3721433d0511Smrgdone 3722433d0511Smrg done 3723433d0511SmrgIFS=$as_save_IFS 3724433d0511Smrg 3725433d0511Smrgfi ;; 3726433d0511Smrgesac 3727433d0511Smrgfi 3728433d0511Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3729433d0511Smrgif test -n "$ac_ct_CC"; then 3730433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3731433d0511Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3732433d0511Smrgelse 3733433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3734433d0511Smrgprintf "%s\n" "no" >&6; } 3735433d0511Smrgfi 3736433d0511Smrg 3737433d0511Smrg if test "x$ac_ct_CC" = x; then 3738433d0511Smrg CC="" 3739433d0511Smrg else 3740433d0511Smrg case $cross_compiling:$ac_tool_warned in 3741433d0511Smrgyes:) 3742433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3743433d0511Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3744433d0511Smrgac_tool_warned=yes ;; 3745433d0511Smrgesac 3746433d0511Smrg CC=$ac_ct_CC 3747433d0511Smrg fi 3748433d0511Smrgelse 3749433d0511Smrg CC="$ac_cv_prog_CC" 3750433d0511Smrgfi 3751433d0511Smrg 3752433d0511Smrgfi 3753433d0511Smrg 3754433d0511Smrg 3755433d0511Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3756433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 375795e0246bSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3758433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 3759eaef79e5Smrg 3760eaef79e5Smrg# Provide some information about the compiler. 3761433d0511Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 37622b32c8f7Smrgset X $ac_compile 37632b32c8f7Smrgac_compiler=$2 3764433d0511Smrgfor ac_option in --version -v -V -qversion -version; do 376595e0246bSmrg { { ac_try="$ac_compiler $ac_option >&5" 3766eaef79e5Smrgcase "(($ac_try" in 3767eaef79e5Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768eaef79e5Smrg *) ac_try_echo=$ac_try;; 3769eaef79e5Smrgesac 377095e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 377295e0246bSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3773eaef79e5Smrg ac_status=$? 377495e0246bSmrg if test -s conftest.err; then 377595e0246bSmrg sed '10a\ 377695e0246bSmrg... rest of stderr output deleted ... 377795e0246bSmrg 10q' conftest.err >conftest.er1 377895e0246bSmrg cat conftest.er1 >&5 377995e0246bSmrg fi 378095e0246bSmrg rm -f conftest.er1 conftest.err 3781433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 378295e0246bSmrg test $ac_status = 0; } 378395e0246bSmrgdone 3784eaef79e5Smrg 378595e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786eaef79e5Smrg/* end confdefs.h. */ 3787eaef79e5Smrg 3788eaef79e5Smrgint 3789433d0511Smrgmain (void) 3790eaef79e5Smrg{ 3791eaef79e5Smrg 3792eaef79e5Smrg ; 3793eaef79e5Smrg return 0; 3794eaef79e5Smrg} 3795eaef79e5Smrg_ACEOF 3796eaef79e5Smrgac_clean_files_save=$ac_clean_files 37972b32c8f7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3798eaef79e5Smrg# Try to create an executable without -o first, disregard a.out. 3799eaef79e5Smrg# It will help us diagnose broken compilers, and finding out an intuition 3800eaef79e5Smrg# of exeext. 3801433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3802433d0511Smrgprintf %s "checking whether the C compiler works... " >&6; } 3803433d0511Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 38042b32c8f7Smrg 38052b32c8f7Smrg# The possible output files: 38062b32c8f7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 38072b32c8f7Smrg 3808eaef79e5Smrgac_rmfiles= 3809eaef79e5Smrgfor ac_file in $ac_files 3810eaef79e5Smrgdo 3811eaef79e5Smrg case $ac_file in 38122b32c8f7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3813eaef79e5Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3814eaef79e5Smrg esac 3815eaef79e5Smrgdone 3816eaef79e5Smrgrm -f $ac_rmfiles 3817eaef79e5Smrg 381895e0246bSmrgif { { ac_try="$ac_link_default" 3819eaef79e5Smrgcase "(($ac_try" in 3820eaef79e5Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821eaef79e5Smrg *) ac_try_echo=$ac_try;; 3822eaef79e5Smrgesac 382395e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3825eaef79e5Smrg (eval "$ac_link_default") 2>&5 3826eaef79e5Smrg ac_status=$? 3827433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3828433d0511Smrg test $ac_status = 0; } 3829433d0511Smrgthen : 3830433d0511Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3831433d0511Smrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3832eaef79e5Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3833eaef79e5Smrg# so that the user can short-circuit this test for compilers unknown to 3834eaef79e5Smrg# Autoconf. 38352b32c8f7Smrgfor ac_file in $ac_files '' 3836eaef79e5Smrgdo 3837eaef79e5Smrg test -f "$ac_file" || continue 3838eaef79e5Smrg case $ac_file in 38392b32c8f7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3840eaef79e5Smrg ;; 3841eaef79e5Smrg [ab].out ) 3842eaef79e5Smrg # We found the default executable, but exeext='' is most 3843eaef79e5Smrg # certainly right. 3844eaef79e5Smrg break;; 3845eaef79e5Smrg *.* ) 3846433d0511Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3847eaef79e5Smrg then :; else 3848eaef79e5Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3849eaef79e5Smrg fi 3850eaef79e5Smrg # We set ac_cv_exeext here because the later test for it is not 3851433d0511Smrg # safe: cross compilers may not add the suffix if given an '-o' 3852eaef79e5Smrg # argument, so we may need to know it at that point already. 3853eaef79e5Smrg # Even if this section looks crufty: it has the advantage of 3854eaef79e5Smrg # actually working. 3855eaef79e5Smrg break;; 3856eaef79e5Smrg * ) 3857eaef79e5Smrg break;; 3858eaef79e5Smrg esac 3859eaef79e5Smrgdone 3860eaef79e5Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3861eaef79e5Smrg 3862433d0511Smrgelse case e in #( 3863433d0511Smrg e) ac_file='' ;; 3864433d0511Smrgesac 38652b32c8f7Smrgfi 3866433d0511Smrgif test -z "$ac_file" 3867433d0511Smrgthen : 3868433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869433d0511Smrgprintf "%s\n" "no" >&6; } 3870433d0511Smrgprintf "%s\n" "$as_me: failed program was:" >&5 3871eaef79e5Smrgsed 's/^/| /' conftest.$ac_ext >&5 3872eaef79e5Smrg 3873433d0511Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3874433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 387595e0246bSmrgas_fn_error 77 "C compiler cannot create executables 3876433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 3877433d0511Smrgelse case e in #( 3878433d0511Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3879433d0511Smrgprintf "%s\n" "yes" >&6; } ;; 3880433d0511Smrgesac 3881eaef79e5Smrgfi 3882433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3883433d0511Smrgprintf %s "checking for C compiler default output file name... " >&6; } 3884433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3885433d0511Smrgprintf "%s\n" "$ac_file" >&6; } 3886eaef79e5Smrgac_exeext=$ac_cv_exeext 3887eaef79e5Smrg 38882b32c8f7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3889eaef79e5Smrgac_clean_files=$ac_clean_files_save 3890433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3891433d0511Smrgprintf %s "checking for suffix of executables... " >&6; } 389295e0246bSmrgif { { ac_try="$ac_link" 3893eaef79e5Smrgcase "(($ac_try" in 3894eaef79e5Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3895eaef79e5Smrg *) ac_try_echo=$ac_try;; 3896eaef79e5Smrgesac 389795e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3898433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3899eaef79e5Smrg (eval "$ac_link") 2>&5 3900eaef79e5Smrg ac_status=$? 3901433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3902433d0511Smrg test $ac_status = 0; } 3903433d0511Smrgthen : 3904433d0511Smrg # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3905433d0511Smrg# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3906433d0511Smrg# work properly (i.e., refer to 'conftest.exe'), while it won't with 3907433d0511Smrg# 'rm'. 3908eaef79e5Smrgfor ac_file in conftest.exe conftest conftest.*; do 3909eaef79e5Smrg test -f "$ac_file" || continue 3910eaef79e5Smrg case $ac_file in 39112b32c8f7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3912eaef79e5Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3913eaef79e5Smrg break;; 3914eaef79e5Smrg * ) break;; 3915eaef79e5Smrg esac 3916eaef79e5Smrgdone 3917433d0511Smrgelse case e in #( 3918433d0511Smrg e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3919433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 392095e0246bSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3921433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 3922433d0511Smrgesac 3923eaef79e5Smrgfi 392495e0246bSmrgrm -f conftest conftest$ac_cv_exeext 3925433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3926433d0511Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 3927eaef79e5Smrg 3928eaef79e5Smrgrm -f conftest.$ac_ext 3929eaef79e5SmrgEXEEXT=$ac_cv_exeext 3930eaef79e5Smrgac_exeext=$EXEEXT 393195e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 393295e0246bSmrg/* end confdefs.h. */ 393395e0246bSmrg#include <stdio.h> 393495e0246bSmrgint 3935433d0511Smrgmain (void) 393695e0246bSmrg{ 393795e0246bSmrgFILE *f = fopen ("conftest.out", "w"); 3938433d0511Smrg if (!f) 3939433d0511Smrg return 1; 394095e0246bSmrg return ferror (f) || fclose (f) != 0; 394195e0246bSmrg 394295e0246bSmrg ; 394395e0246bSmrg return 0; 394495e0246bSmrg} 394595e0246bSmrg_ACEOF 394695e0246bSmrgac_clean_files="$ac_clean_files conftest.out" 394795e0246bSmrg# Check that the compiler produces executables we can run. If not, either 394895e0246bSmrg# the compiler is broken, or we cross compile. 3949433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3950433d0511Smrgprintf %s "checking whether we are cross compiling... " >&6; } 395195e0246bSmrgif test "$cross_compiling" != yes; then 395295e0246bSmrg { { ac_try="$ac_link" 395395e0246bSmrgcase "(($ac_try" in 395495e0246bSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 395595e0246bSmrg *) ac_try_echo=$ac_try;; 395695e0246bSmrgesac 395795e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3958433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 395995e0246bSmrg (eval "$ac_link") 2>&5 396095e0246bSmrg ac_status=$? 3961433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 396295e0246bSmrg test $ac_status = 0; } 396395e0246bSmrg if { ac_try='./conftest$ac_cv_exeext' 396495e0246bSmrg { { case "(($ac_try" in 396595e0246bSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 396695e0246bSmrg *) ac_try_echo=$ac_try;; 396795e0246bSmrgesac 396895e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3969433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 397095e0246bSmrg (eval "$ac_try") 2>&5 397195e0246bSmrg ac_status=$? 3972433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 397395e0246bSmrg test $ac_status = 0; }; }; then 397495e0246bSmrg cross_compiling=no 397595e0246bSmrg else 397695e0246bSmrg if test "$cross_compiling" = maybe; then 397795e0246bSmrg cross_compiling=yes 397895e0246bSmrg else 3979433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3980433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3981433d0511Smrgas_fn_error 77 "cannot run C compiled programs. 3982433d0511SmrgIf you meant to cross compile, use '--host'. 3983433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 398495e0246bSmrg fi 398595e0246bSmrg fi 398695e0246bSmrgfi 3987433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3988433d0511Smrgprintf "%s\n" "$cross_compiling" >&6; } 398995e0246bSmrg 3990433d0511Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3991433d0511Smrg conftest.o conftest.obj conftest.out 399295e0246bSmrgac_clean_files=$ac_clean_files_save 3993433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3994433d0511Smrgprintf %s "checking for suffix of object files... " >&6; } 3995433d0511Smrgif test ${ac_cv_objext+y} 3996433d0511Smrgthen : 3997433d0511Smrg printf %s "(cached) " >&6 3998433d0511Smrgelse case e in #( 3999433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000eaef79e5Smrg/* end confdefs.h. */ 4001eaef79e5Smrg 4002eaef79e5Smrgint 4003433d0511Smrgmain (void) 4004eaef79e5Smrg{ 4005eaef79e5Smrg 4006eaef79e5Smrg ; 4007eaef79e5Smrg return 0; 4008eaef79e5Smrg} 4009eaef79e5Smrg_ACEOF 4010eaef79e5Smrgrm -f conftest.o conftest.obj 401195e0246bSmrgif { { ac_try="$ac_compile" 4012eaef79e5Smrgcase "(($ac_try" in 4013eaef79e5Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014eaef79e5Smrg *) ac_try_echo=$ac_try;; 4015eaef79e5Smrgesac 401695e0246bSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017433d0511Smrgprintf "%s\n" "$ac_try_echo"; } >&5 4018eaef79e5Smrg (eval "$ac_compile") 2>&5 4019eaef79e5Smrg ac_status=$? 4020433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021433d0511Smrg test $ac_status = 0; } 4022433d0511Smrgthen : 4023eaef79e5Smrg for ac_file in conftest.o conftest.obj conftest.*; do 4024eaef79e5Smrg test -f "$ac_file" || continue; 4025eaef79e5Smrg case $ac_file in 40262b32c8f7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4027eaef79e5Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4028eaef79e5Smrg break;; 4029eaef79e5Smrg esac 4030eaef79e5Smrgdone 4031433d0511Smrgelse case e in #( 4032433d0511Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 4033eaef79e5Smrgsed 's/^/| /' conftest.$ac_ext >&5 4034eaef79e5Smrg 4035433d0511Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4036433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 403795e0246bSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 4038433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 4039433d0511Smrgesac 4040eaef79e5Smrgfi 4041433d0511Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4042433d0511Smrgesac 4043eaef79e5Smrgfi 4044433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4045433d0511Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 4046eaef79e5SmrgOBJEXT=$ac_cv_objext 4047eaef79e5Smrgac_objext=$OBJEXT 4048433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4049433d0511Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 4050433d0511Smrgif test ${ac_cv_c_compiler_gnu+y} 4051433d0511Smrgthen : 4052433d0511Smrg printf %s "(cached) " >&6 4053433d0511Smrgelse case e in #( 4054433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055eaef79e5Smrg/* end confdefs.h. */ 4056eaef79e5Smrg 4057eaef79e5Smrgint 4058433d0511Smrgmain (void) 4059eaef79e5Smrg{ 4060eaef79e5Smrg#ifndef __GNUC__ 4061eaef79e5Smrg choke me 4062eaef79e5Smrg#endif 4063eaef79e5Smrg 4064eaef79e5Smrg ; 4065eaef79e5Smrg return 0; 4066eaef79e5Smrg} 4067eaef79e5Smrg_ACEOF 4068433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4069433d0511Smrgthen : 4070eaef79e5Smrg ac_compiler_gnu=yes 4071433d0511Smrgelse case e in #( 4072433d0511Smrg e) ac_compiler_gnu=no ;; 4073433d0511Smrgesac 4074eaef79e5Smrgfi 4075433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4076eaef79e5Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 4077433d0511Smrg ;; 4078433d0511Smrgesac 4079eaef79e5Smrgfi 4080433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4081433d0511Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4082433d0511Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4083433d0511Smrg 40842b32c8f7Smrgif test $ac_compiler_gnu = yes; then 40852b32c8f7Smrg GCC=yes 40862b32c8f7Smrgelse 40872b32c8f7Smrg GCC= 40882b32c8f7Smrgfi 4089433d0511Smrgac_test_CFLAGS=${CFLAGS+y} 4090eaef79e5Smrgac_save_CFLAGS=$CFLAGS 4091433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4092433d0511Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 4093433d0511Smrgif test ${ac_cv_prog_cc_g+y} 4094433d0511Smrgthen : 4095433d0511Smrg printf %s "(cached) " >&6 4096433d0511Smrgelse case e in #( 4097433d0511Smrg e) ac_save_c_werror_flag=$ac_c_werror_flag 4098eaef79e5Smrg ac_c_werror_flag=yes 4099eaef79e5Smrg ac_cv_prog_cc_g=no 4100eaef79e5Smrg CFLAGS="-g" 410195e0246bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102eaef79e5Smrg/* end confdefs.h. */ 4103eaef79e5Smrg 4104eaef79e5Smrgint 4105433d0511Smrgmain (void) 4106eaef79e5Smrg{ 4107eaef79e5Smrg 4108eaef79e5Smrg ; 4109eaef79e5Smrg return 0; 4110eaef79e5Smrg} 4111eaef79e5Smrg_ACEOF 4112433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4113433d0511Smrgthen : 4114eaef79e5Smrg ac_cv_prog_cc_g=yes 4115433d0511Smrgelse case e in #( 4116433d0511Smrg e) CFLAGS="" 411795e0246bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118eaef79e5Smrg/* end confdefs.h. */ 4119eaef79e5Smrg 4120eaef79e5Smrgint 4121433d0511Smrgmain (void) 4122eaef79e5Smrg{ 4123eaef79e5Smrg 4124eaef79e5Smrg ; 4125eaef79e5Smrg return 0; 4126eaef79e5Smrg} 4127eaef79e5Smrg_ACEOF 4128433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4129433d0511Smrgthen : 4130eaef79e5Smrg 4131433d0511Smrgelse case e in #( 4132433d0511Smrg e) ac_c_werror_flag=$ac_save_c_werror_flag 4133eaef79e5Smrg CFLAGS="-g" 413495e0246bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135eaef79e5Smrg/* end confdefs.h. */ 4136eaef79e5Smrg 4137eaef79e5Smrgint 4138433d0511Smrgmain (void) 4139eaef79e5Smrg{ 4140eaef79e5Smrg 4141eaef79e5Smrg ; 4142eaef79e5Smrg return 0; 4143eaef79e5Smrg} 4144eaef79e5Smrg_ACEOF 4145433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4146433d0511Smrgthen : 4147eaef79e5Smrg ac_cv_prog_cc_g=yes 4148eaef79e5Smrgfi 4149433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4150433d0511Smrgesac 4151eaef79e5Smrgfi 4152433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4153433d0511Smrgesac 4154eaef79e5Smrgfi 4155433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4156433d0511Smrg ac_c_werror_flag=$ac_save_c_werror_flag ;; 4157433d0511Smrgesac 4158eaef79e5Smrgfi 4159433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4160433d0511Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4161433d0511Smrgif test $ac_test_CFLAGS; then 4162eaef79e5Smrg CFLAGS=$ac_save_CFLAGS 4163eaef79e5Smrgelif test $ac_cv_prog_cc_g = yes; then 4164eaef79e5Smrg if test "$GCC" = yes; then 4165eaef79e5Smrg CFLAGS="-g -O2" 4166eaef79e5Smrg else 4167eaef79e5Smrg CFLAGS="-g" 4168eaef79e5Smrg fi 4169eaef79e5Smrgelse 4170eaef79e5Smrg if test "$GCC" = yes; then 4171eaef79e5Smrg CFLAGS="-O2" 4172eaef79e5Smrg else 4173eaef79e5Smrg CFLAGS= 4174eaef79e5Smrg fi 4175eaef79e5Smrgfi 4176433d0511Smrgac_prog_cc_stdc=no 4177433d0511Smrgif test x$ac_prog_cc_stdc = xno 4178433d0511Smrgthen : 4179433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4180433d0511Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 4181433d0511Smrgif test ${ac_cv_prog_cc_c11+y} 4182433d0511Smrgthen : 4183433d0511Smrg printf %s "(cached) " >&6 4184433d0511Smrgelse case e in #( 4185433d0511Smrg e) ac_cv_prog_cc_c11=no 4186eaef79e5Smrgac_save_CC=$CC 418795e0246bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188eaef79e5Smrg/* end confdefs.h. */ 4189433d0511Smrg$ac_c_conftest_c11_program 4190433d0511Smrg_ACEOF 4191433d0511Smrgfor ac_arg in '' -std=gnu11 4192433d0511Smrgdo 4193433d0511Smrg CC="$ac_save_CC $ac_arg" 4194433d0511Smrg if ac_fn_c_try_compile "$LINENO" 4195433d0511Smrgthen : 4196433d0511Smrg ac_cv_prog_cc_c11=$ac_arg 4197433d0511Smrgfi 4198433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4199433d0511Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 4200433d0511Smrgdone 4201433d0511Smrgrm -f conftest.$ac_ext 4202433d0511SmrgCC=$ac_save_CC ;; 4203433d0511Smrgesac 4204433d0511Smrgfi 4205eaef79e5Smrg 4206433d0511Smrgif test "x$ac_cv_prog_cc_c11" = xno 4207433d0511Smrgthen : 4208433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4209433d0511Smrgprintf "%s\n" "unsupported" >&6; } 4210433d0511Smrgelse case e in #( 4211433d0511Smrg e) if test "x$ac_cv_prog_cc_c11" = x 4212433d0511Smrgthen : 4213433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4214433d0511Smrgprintf "%s\n" "none needed" >&6; } 4215433d0511Smrgelse case e in #( 4216433d0511Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4217433d0511Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4218433d0511Smrg CC="$CC $ac_cv_prog_cc_c11" ;; 4219433d0511Smrgesac 4220433d0511Smrgfi 4221433d0511Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4222433d0511Smrg ac_prog_cc_stdc=c11 ;; 4223433d0511Smrgesac 4224433d0511Smrgfi 4225433d0511Smrgfi 4226433d0511Smrgif test x$ac_prog_cc_stdc = xno 4227433d0511Smrgthen : 4228433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4229433d0511Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 4230433d0511Smrgif test ${ac_cv_prog_cc_c99+y} 4231433d0511Smrgthen : 4232433d0511Smrg printf %s "(cached) " >&6 4233433d0511Smrgelse case e in #( 4234433d0511Smrg e) ac_cv_prog_cc_c99=no 4235433d0511Smrgac_save_CC=$CC 4236433d0511Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237433d0511Smrg/* end confdefs.h. */ 4238433d0511Smrg$ac_c_conftest_c99_program 4239433d0511Smrg_ACEOF 4240433d0511Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4241433d0511Smrgdo 4242433d0511Smrg CC="$ac_save_CC $ac_arg" 4243433d0511Smrg if ac_fn_c_try_compile "$LINENO" 4244433d0511Smrgthen : 4245433d0511Smrg ac_cv_prog_cc_c99=$ac_arg 4246433d0511Smrgfi 4247433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4248433d0511Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4249433d0511Smrgdone 4250433d0511Smrgrm -f conftest.$ac_ext 4251433d0511SmrgCC=$ac_save_CC ;; 4252433d0511Smrgesac 4253433d0511Smrgfi 4254eaef79e5Smrg 4255433d0511Smrgif test "x$ac_cv_prog_cc_c99" = xno 4256433d0511Smrgthen : 4257433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4258433d0511Smrgprintf "%s\n" "unsupported" >&6; } 4259433d0511Smrgelse case e in #( 4260433d0511Smrg e) if test "x$ac_cv_prog_cc_c99" = x 4261433d0511Smrgthen : 4262433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4263433d0511Smrgprintf "%s\n" "none needed" >&6; } 4264433d0511Smrgelse case e in #( 4265433d0511Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4266433d0511Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4267433d0511Smrg CC="$CC $ac_cv_prog_cc_c99" ;; 4268433d0511Smrgesac 4269433d0511Smrgfi 4270433d0511Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4271433d0511Smrg ac_prog_cc_stdc=c99 ;; 4272433d0511Smrgesac 4273433d0511Smrgfi 4274433d0511Smrgfi 4275433d0511Smrgif test x$ac_prog_cc_stdc = xno 4276433d0511Smrgthen : 4277433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4278433d0511Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 4279433d0511Smrgif test ${ac_cv_prog_cc_c89+y} 4280433d0511Smrgthen : 4281433d0511Smrg printf %s "(cached) " >&6 4282433d0511Smrgelse case e in #( 4283433d0511Smrg e) ac_cv_prog_cc_c89=no 4284433d0511Smrgac_save_CC=$CC 4285433d0511Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286433d0511Smrg/* end confdefs.h. */ 4287433d0511Smrg$ac_c_conftest_c89_program 4288eaef79e5Smrg_ACEOF 4289433d0511Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4290eaef79e5Smrgdo 4291eaef79e5Smrg CC="$ac_save_CC $ac_arg" 4292433d0511Smrg if ac_fn_c_try_compile "$LINENO" 4293433d0511Smrgthen : 4294eaef79e5Smrg ac_cv_prog_cc_c89=$ac_arg 4295eaef79e5Smrgfi 4296433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4297eaef79e5Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 4298eaef79e5Smrgdone 4299eaef79e5Smrgrm -f conftest.$ac_ext 4300433d0511SmrgCC=$ac_save_CC ;; 4301433d0511Smrgesac 4302433d0511Smrgfi 4303eaef79e5Smrg 4304433d0511Smrgif test "x$ac_cv_prog_cc_c89" = xno 4305433d0511Smrgthen : 4306433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4307433d0511Smrgprintf "%s\n" "unsupported" >&6; } 4308433d0511Smrgelse case e in #( 4309433d0511Smrg e) if test "x$ac_cv_prog_cc_c89" = x 4310433d0511Smrgthen : 4311433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4312433d0511Smrgprintf "%s\n" "none needed" >&6; } 4313433d0511Smrgelse case e in #( 4314433d0511Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4315433d0511Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4316433d0511Smrg CC="$CC $ac_cv_prog_cc_c89" ;; 4317433d0511Smrgesac 4318eaef79e5Smrgfi 4319433d0511Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4320433d0511Smrg ac_prog_cc_stdc=c89 ;; 4321eaef79e5Smrgesac 4322433d0511Smrgfi 432395e0246bSmrgfi 4324eaef79e5Smrg 4325eaef79e5Smrgac_ext=c 4326eaef79e5Smrgac_cpp='$CPP $CPPFLAGS' 4327eaef79e5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328eaef79e5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329eaef79e5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4330eaef79e5Smrg 4331433d0511Smrg 4332433d0511Smrg ac_ext=c 4333d1a7ce7bSmrgac_cpp='$CPP $CPPFLAGS' 4334d1a7ce7bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335d1a7ce7bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336d1a7ce7bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4337433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4338433d0511Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 4339433d0511Smrgif test ${am_cv_prog_cc_c_o+y} 4340433d0511Smrgthen : 4341433d0511Smrg printf %s "(cached) " >&6 4342433d0511Smrgelse case e in #( 4343433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344d1a7ce7bSmrg/* end confdefs.h. */ 4345d1a7ce7bSmrg 4346d1a7ce7bSmrgint 4347433d0511Smrgmain (void) 4348d1a7ce7bSmrg{ 4349d1a7ce7bSmrg 4350d1a7ce7bSmrg ; 4351d1a7ce7bSmrg return 0; 4352d1a7ce7bSmrg} 4353d1a7ce7bSmrg_ACEOF 4354d1a7ce7bSmrg # Make sure it works both with $CC and with simple cc. 4355d1a7ce7bSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 4356d1a7ce7bSmrg # compilers refuse to overwrite an existing .o file with -o, 4357d1a7ce7bSmrg # though they will create one. 4358d1a7ce7bSmrg am_cv_prog_cc_c_o=yes 4359d1a7ce7bSmrg for am_i in 1 2; do 4360d1a7ce7bSmrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4361d1a7ce7bSmrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4362d1a7ce7bSmrg ac_status=$? 4363d1a7ce7bSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364d1a7ce7bSmrg (exit $ac_status); } \ 4365d1a7ce7bSmrg && test -f conftest2.$ac_objext; then 4366d1a7ce7bSmrg : OK 4367d1a7ce7bSmrg else 4368d1a7ce7bSmrg am_cv_prog_cc_c_o=no 4369d1a7ce7bSmrg break 4370d1a7ce7bSmrg fi 4371d1a7ce7bSmrg done 4372d1a7ce7bSmrg rm -f core conftest* 4373433d0511Smrg unset am_i ;; 4374433d0511Smrgesac 4375d1a7ce7bSmrgfi 4376433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4377433d0511Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4378d1a7ce7bSmrgif test "$am_cv_prog_cc_c_o" != yes; then 4379d1a7ce7bSmrg # Losing compiler, so override with the script. 4380d1a7ce7bSmrg # FIXME: It is wrong to rewrite CC. 4381d1a7ce7bSmrg # But if we don't then we get into trouble of one sort or another. 4382d1a7ce7bSmrg # A longer-term fix would be to have automake use am__CC in this case, 4383d1a7ce7bSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4384d1a7ce7bSmrg CC="$am_aux_dir/compile $CC" 4385d1a7ce7bSmrgfi 4386d1a7ce7bSmrgac_ext=c 4387d1a7ce7bSmrgac_cpp='$CPP $CPPFLAGS' 4388d1a7ce7bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4389d1a7ce7bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4390d1a7ce7bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4391d1a7ce7bSmrg 4392d1a7ce7bSmrg 4393eaef79e5Smrgdepcc="$CC" am_compiler_list= 4394eaef79e5Smrg 4395433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4396433d0511Smrgprintf %s "checking dependency style of $depcc... " >&6; } 4397433d0511Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 4398433d0511Smrgthen : 4399433d0511Smrg printf %s "(cached) " >&6 4400433d0511Smrgelse case e in #( 4401433d0511Smrg e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4402eaef79e5Smrg # We make a subdir and do the tests there. Otherwise we can end up 4403eaef79e5Smrg # making bogus files that we don't know about and never remove. For 4404eaef79e5Smrg # instance it was reported that on HP-UX the gcc test will end up 4405cbc4e2beSmrg # making a dummy file named 'D' -- because '-MD' means "put the output 4406cbc4e2beSmrg # in D". 4407cbc4e2beSmrg rm -rf conftest.dir 4408eaef79e5Smrg mkdir conftest.dir 4409eaef79e5Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 4410eaef79e5Smrg # using a relative directory. 4411eaef79e5Smrg cp "$am_depcomp" conftest.dir 4412eaef79e5Smrg cd conftest.dir 4413eaef79e5Smrg # We will build objects and dependencies in a subdirectory because 4414eaef79e5Smrg # it helps to detect inapplicable dependency modes. For instance 4415eaef79e5Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 4416eaef79e5Smrg # side effect of compilation, but ICC will put the dependencies in 4417eaef79e5Smrg # the current directory while Tru64 will put them in the object 4418eaef79e5Smrg # directory. 4419eaef79e5Smrg mkdir sub 4420eaef79e5Smrg 4421eaef79e5Smrg am_cv_CC_dependencies_compiler_type=none 4422eaef79e5Smrg if test "$am_compiler_list" = ""; then 4423eaef79e5Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4424eaef79e5Smrg fi 44252b32c8f7Smrg am__universal=false 44262b32c8f7Smrg case " $depcc " in #( 44272b32c8f7Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 44282b32c8f7Smrg esac 44292b32c8f7Smrg 4430eaef79e5Smrg for depmode in $am_compiler_list; do 4431eaef79e5Smrg # Setup a source with many dependencies, because some compilers 4432eaef79e5Smrg # like to wrap large dependency lists on column 80 (with \), and 4433eaef79e5Smrg # we should not choose a depcomp mode which is confused by this. 4434eaef79e5Smrg # 4435eaef79e5Smrg # We need to recreate these files for each test, as the compiler may 4436eaef79e5Smrg # overwrite some of them when testing with obscure command lines. 4437eaef79e5Smrg # This happens at least with the AIX C compiler. 4438eaef79e5Smrg : > sub/conftest.c 4439eaef79e5Smrg for i in 1 2 3 4 5 6; do 4440eaef79e5Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4441cbc4e2beSmrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4442cbc4e2beSmrg # Solaris 10 /bin/sh. 4443cbc4e2beSmrg echo '/* dummy */' > sub/conftst$i.h 4444eaef79e5Smrg done 4445eaef79e5Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4446eaef79e5Smrg 4447cbc4e2beSmrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 44482b32c8f7Smrg # mode. It turns out that the SunPro C++ compiler does not properly 4449cbc4e2beSmrg # handle '-M -o', and we need to detect this. Also, some Intel 4450cbc4e2beSmrg # versions had trouble with output in subdirs. 44512b32c8f7Smrg am__obj=sub/conftest.${OBJEXT-o} 44522b32c8f7Smrg am__minus_obj="-o $am__obj" 4453eaef79e5Smrg case $depmode in 44542b32c8f7Smrg gcc) 44552b32c8f7Smrg # This depmode causes a compiler race in universal mode. 44562b32c8f7Smrg test "$am__universal" = false || continue 44572b32c8f7Smrg ;; 4458eaef79e5Smrg nosideeffect) 4459cbc4e2beSmrg # After this tag, mechanisms are not by side-effect, so they'll 4460cbc4e2beSmrg # only be used when explicitly requested. 4461eaef79e5Smrg if test "x$enable_dependency_tracking" = xyes; then 4462eaef79e5Smrg continue 4463eaef79e5Smrg else 4464eaef79e5Smrg break 4465eaef79e5Smrg fi 4466eaef79e5Smrg ;; 4467cbc4e2beSmrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4468cbc4e2beSmrg # This compiler won't grok '-c -o', but also, the minuso test has 44692b32c8f7Smrg # not run yet. These depmodes are late enough in the game, and 44702b32c8f7Smrg # so weak that their functioning should not be impacted. 44712b32c8f7Smrg am__obj=conftest.${OBJEXT-o} 44722b32c8f7Smrg am__minus_obj= 44732b32c8f7Smrg ;; 4474eaef79e5Smrg none) break ;; 4475eaef79e5Smrg esac 4476eaef79e5Smrg if depmode=$depmode \ 44772b32c8f7Smrg source=sub/conftest.c object=$am__obj \ 4478eaef79e5Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 44792b32c8f7Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4480eaef79e5Smrg >/dev/null 2>conftest.err && 44812b32c8f7Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4482eaef79e5Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4483433d0511Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4484433d0511Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4485433d0511Smrg # icc doesn't choke on unknown options, it will just issue warnings 4486433d0511Smrg # or remarks (even with -Werror). So we grep stderr for any message 4487433d0511Smrg # that says an option was ignored or not supported. 4488433d0511Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 4489433d0511Smrg # icc: Command line warning: ignoring option '-M'; no argument required 4490433d0511Smrg # The diagnosis changed in icc 8.0: 4491433d0511Smrg # icc: Command line remark: option '-MP' not supported 4492433d0511Smrg if (grep 'ignoring option' conftest.err || 4493433d0511Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4494433d0511Smrg am_cv_CC_dependencies_compiler_type=$depmode 4495433d0511Smrg break 4496433d0511Smrg fi 44972b32c8f7Smrg fi 44982b32c8f7Smrg done 44992b32c8f7Smrg 4500433d0511Smrg cd .. 4501433d0511Smrg rm -rf conftest.dir 45022b32c8f7Smrgelse 4503433d0511Smrg am_cv_CC_dependencies_compiler_type=none 45042b32c8f7Smrgfi 4505433d0511Smrg ;; 45062b32c8f7Smrgesac 4507433d0511Smrgfi 4508433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4509433d0511Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4510433d0511SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 45112b32c8f7Smrg 4512433d0511Smrg if 4513433d0511Smrg test "x$enable_dependency_tracking" != xno \ 4514433d0511Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4515433d0511Smrg am__fastdepCC_TRUE= 4516433d0511Smrg am__fastdepCC_FALSE='#' 45172b32c8f7Smrgelse 4518433d0511Smrg am__fastdepCC_TRUE='#' 4519433d0511Smrg am__fastdepCC_FALSE= 45202b32c8f7Smrgfi 45212b32c8f7Smrg 45222b32c8f7Smrg 45232b32c8f7Smrg 4524433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4525433d0511Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4526433d0511Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 4527433d0511Smrgthen : 4528433d0511Smrg printf %s "(cached) " >&6 4529433d0511Smrgelse case e in #( 4530433d0511Smrg e) ac_save_CFLAGS=$CFLAGS 4531433d0511Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 4532433d0511Smrg for ac_arg in '' -fno-builtin; do 4533433d0511Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4534433d0511Smrg # This test program should *not* compile successfully. 4535433d0511Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45362b32c8f7Smrg/* end confdefs.h. */ 45372b32c8f7Smrg 45382b32c8f7Smrgint 4539433d0511Smrgmain (void) 45402b32c8f7Smrg{ 4541433d0511Smrg(void) strchr; 45422b32c8f7Smrg ; 45432b32c8f7Smrg return 0; 45442b32c8f7Smrg} 45452b32c8f7Smrg_ACEOF 4546433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4547433d0511Smrgthen : 45482b32c8f7Smrg 4549433d0511Smrgelse case e in #( 4550433d0511Smrg e) # This test program should compile successfully. 4551433d0511Smrg # No library function is consistently available on 4552433d0511Smrg # freestanding implementations, so test against a dummy 4553433d0511Smrg # declaration. Include always-available headers on the 4554433d0511Smrg # off chance that they somehow elicit warnings. 4555433d0511Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45562b32c8f7Smrg/* end confdefs.h. */ 4557433d0511Smrg#include <float.h> 4558433d0511Smrg#include <limits.h> 4559433d0511Smrg#include <stdarg.h> 4560433d0511Smrg#include <stddef.h> 4561433d0511Smrgextern void ac_decl (int, char *); 45622b32c8f7Smrg 45632b32c8f7Smrgint 4564433d0511Smrgmain (void) 45652b32c8f7Smrg{ 4566433d0511Smrg(void) ac_decl (0, (char *) 0); 4567433d0511Smrg (void) ac_decl; 4568433d0511Smrg 4569433d0511Smrg ; 45702b32c8f7Smrg return 0; 45712b32c8f7Smrg} 45722b32c8f7Smrg_ACEOF 4573433d0511Smrgif ac_fn_c_try_compile "$LINENO" 4574433d0511Smrgthen : 4575433d0511Smrg if test x"$ac_arg" = x 4576433d0511Smrgthen : 4577433d0511Smrg ac_cv_c_undeclared_builtin_options='none needed' 4578433d0511Smrgelse case e in #( 4579433d0511Smrg e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4580433d0511Smrgesac 45812b32c8f7Smrgfi 4582433d0511Smrg break 45832b32c8f7Smrgfi 4584433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4585433d0511Smrgesac 45862b32c8f7Smrgfi 4587433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4588433d0511Smrg done 4589433d0511Smrg CFLAGS=$ac_save_CFLAGS 4590433d0511Smrg ;; 4591433d0511Smrgesac 45922b32c8f7Smrgfi 4593433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4594433d0511Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4595433d0511Smrg case $ac_cv_c_undeclared_builtin_options in #( 4596433d0511Smrg 'cannot detect') : 4597433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4598433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4599433d0511Smrgas_fn_error $? "cannot make $CC report undeclared builtins 4600433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #( 4601433d0511Smrg 'none needed') : 4602433d0511Smrg ac_c_undeclared_builtin_options='' ;; #( 4603433d0511Smrg *) : 4604433d0511Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4605433d0511Smrgesac 46062b32c8f7Smrg 4607433d0511Smrgac_header= ac_cache= 4608433d0511Smrgfor ac_item in $ac_header_c_list 4609433d0511Smrgdo 4610433d0511Smrg if test $ac_cache; then 4611433d0511Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4612433d0511Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4613433d0511Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 4614433d0511Smrg fi 4615433d0511Smrg ac_header= ac_cache= 4616433d0511Smrg elif test $ac_header; then 4617433d0511Smrg ac_cache=$ac_item 4618433d0511Smrg else 4619433d0511Smrg ac_header=$ac_item 4620433d0511Smrg fi 4621433d0511Smrgdone 46222b32c8f7Smrg 46232b32c8f7Smrg 46242b32c8f7Smrg 46252b32c8f7Smrg 46262b32c8f7Smrg 46272b32c8f7Smrg 462895e0246bSmrg 462995e0246bSmrg 4630433d0511Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4631433d0511Smrgthen : 4632cbc4e2beSmrg 4633433d0511Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4634cbc4e2beSmrg 4635cbc4e2beSmrgfi 4636cbc4e2beSmrg 4637433d0511Smrg 4638433d0511Smrg 4639433d0511Smrg 4640433d0511Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4641433d0511Smrgif test "x$ac_cv_have_decl___clang__" = xyes 4642433d0511Smrgthen : 4643433d0511Smrg CLANGCC="yes" 4644433d0511Smrgelse case e in #( 4645433d0511Smrg e) CLANGCC="no" ;; 4646433d0511Smrgesac 4647433d0511Smrgfi 4648433d0511Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4649433d0511Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4650433d0511Smrgthen : 4651cbc4e2beSmrg INTELCC="yes" 4652433d0511Smrgelse case e in #( 4653433d0511Smrg e) INTELCC="no" ;; 4654433d0511Smrgesac 4655cbc4e2beSmrgfi 4656433d0511Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4657433d0511Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4658433d0511Smrgthen : 4659cbc4e2beSmrg SUNCC="yes" 4660433d0511Smrgelse case e in #( 4661433d0511Smrg e) SUNCC="no" ;; 4662433d0511Smrgesac 4663cbc4e2beSmrgfi 4664cbc4e2beSmrg 4665cbc4e2beSmrg 4666cbc4e2beSmrg 4667cbc4e2beSmrg 46686654de8bSmrg 46696654de8bSmrg 46706654de8bSmrg 46716654de8bSmrg 467295e0246bSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 467395e0246bSmrg if test -n "$ac_tool_prefix"; then 467495e0246bSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 467595e0246bSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4676433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4677433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 4678433d0511Smrgif test ${ac_cv_path_PKG_CONFIG+y} 4679433d0511Smrgthen : 4680433d0511Smrg printf %s "(cached) " >&6 4681433d0511Smrgelse case e in #( 4682433d0511Smrg e) case $PKG_CONFIG in 468395e0246bSmrg [\\/]* | ?:[\\/]*) 468495e0246bSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 468595e0246bSmrg ;; 468695e0246bSmrg *) 468795e0246bSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 468895e0246bSmrgfor as_dir in $PATH 46892b32c8f7Smrgdo 469095e0246bSmrg IFS=$as_save_IFS 4691433d0511Smrg case $as_dir in #((( 4692433d0511Smrg '') as_dir=./ ;; 4693433d0511Smrg */) ;; 4694433d0511Smrg *) as_dir=$as_dir/ ;; 4695433d0511Smrg esac 469695e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4697433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4698433d0511Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4699433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 470095e0246bSmrg break 2 470195e0246bSmrg fi 470295e0246bSmrgdone 470395e0246bSmrg done 470495e0246bSmrgIFS=$as_save_IFS 470595e0246bSmrg 470695e0246bSmrg ;; 4707433d0511Smrgesac ;; 47082b32c8f7Smrgesac 470995e0246bSmrgfi 471095e0246bSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 471195e0246bSmrgif test -n "$PKG_CONFIG"; then 4712433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4713433d0511Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 47142b32c8f7Smrgelse 4715433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716433d0511Smrgprintf "%s\n" "no" >&6; } 47172b32c8f7Smrgfi 47182b32c8f7Smrg 47192b32c8f7Smrg 47202b32c8f7Smrgfi 472195e0246bSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 472295e0246bSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 472395e0246bSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 472495e0246bSmrgset dummy pkg-config; ac_word=$2 4725433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726433d0511Smrgprintf %s "checking for $ac_word... " >&6; } 4727433d0511Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4728433d0511Smrgthen : 4729433d0511Smrg printf %s "(cached) " >&6 4730433d0511Smrgelse case e in #( 4731433d0511Smrg e) case $ac_pt_PKG_CONFIG in 473295e0246bSmrg [\\/]* | ?:[\\/]*) 473395e0246bSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 473495e0246bSmrg ;; 47352b32c8f7Smrg *) 473695e0246bSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 473795e0246bSmrgfor as_dir in $PATH 473895e0246bSmrgdo 473995e0246bSmrg IFS=$as_save_IFS 4740433d0511Smrg case $as_dir in #((( 4741433d0511Smrg '') as_dir=./ ;; 4742433d0511Smrg */) ;; 4743433d0511Smrg *) as_dir=$as_dir/ ;; 4744433d0511Smrg esac 474595e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4746433d0511Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4747433d0511Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4748433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 474995e0246bSmrg break 2 475095e0246bSmrg fi 475195e0246bSmrgdone 475295e0246bSmrg done 475395e0246bSmrgIFS=$as_save_IFS 475495e0246bSmrg 475595e0246bSmrg ;; 4756433d0511Smrgesac ;; 47572b32c8f7Smrgesac 475895e0246bSmrgfi 475995e0246bSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 476095e0246bSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4761433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4762433d0511Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 476395e0246bSmrgelse 4764433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765433d0511Smrgprintf "%s\n" "no" >&6; } 476695e0246bSmrgfi 47672b32c8f7Smrg 476895e0246bSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 476995e0246bSmrg PKG_CONFIG="" 477095e0246bSmrg else 477195e0246bSmrg case $cross_compiling:$ac_tool_warned in 477295e0246bSmrgyes:) 4773433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4774433d0511Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 477595e0246bSmrgac_tool_warned=yes ;; 477695e0246bSmrgesac 477795e0246bSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 477895e0246bSmrg fi 477995e0246bSmrgelse 478095e0246bSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 478195e0246bSmrgfi 47822b32c8f7Smrg 478395e0246bSmrgfi 478495e0246bSmrgif test -n "$PKG_CONFIG"; then 478595e0246bSmrg _pkg_min_version=0.9.0 4786433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4787433d0511Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 478895e0246bSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4789433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4790433d0511Smrgprintf "%s\n" "yes" >&6; } 479195e0246bSmrg else 4792433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4793433d0511Smrgprintf "%s\n" "no" >&6; } 479495e0246bSmrg PKG_CONFIG="" 479595e0246bSmrg fi 479695e0246bSmrgfi 47972b32c8f7Smrg 4798433d0511Smrg 4799433d0511Smrg # Make sure we can run config.sub. 4800433d0511Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4801433d0511Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4802433d0511Smrg 4803433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4804433d0511Smrgprintf %s "checking build system type... " >&6; } 4805433d0511Smrgif test ${ac_cv_build+y} 4806433d0511Smrgthen : 4807433d0511Smrg printf %s "(cached) " >&6 4808433d0511Smrgelse case e in #( 4809433d0511Smrg e) ac_build_alias=$build_alias 48102b32c8f7Smrgtest "x$ac_build_alias" = x && 4811433d0511Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 48122b32c8f7Smrgtest "x$ac_build_alias" = x && 481395e0246bSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4814433d0511Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4815433d0511Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4816433d0511Smrg ;; 4817433d0511Smrgesac 48182b32c8f7Smrgfi 4819433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4820433d0511Smrgprintf "%s\n" "$ac_cv_build" >&6; } 48212b32c8f7Smrgcase $ac_cv_build in 48222b32c8f7Smrg*-*-*) ;; 482395e0246bSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 48242b32c8f7Smrgesac 48252b32c8f7Smrgbuild=$ac_cv_build 48262b32c8f7Smrgac_save_IFS=$IFS; IFS='-' 48272b32c8f7Smrgset x $ac_cv_build 48282b32c8f7Smrgshift 48292b32c8f7Smrgbuild_cpu=$1 48302b32c8f7Smrgbuild_vendor=$2 48312b32c8f7Smrgshift; shift 48322b32c8f7Smrg# Remember, the first character of IFS is used to create $*, 48332b32c8f7Smrg# except with old shells: 48342b32c8f7Smrgbuild_os=$* 48352b32c8f7SmrgIFS=$ac_save_IFS 48362b32c8f7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 48372b32c8f7Smrg 48382b32c8f7Smrg 4839433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4840433d0511Smrgprintf %s "checking host system type... " >&6; } 4841433d0511Smrgif test ${ac_cv_host+y} 4842433d0511Smrgthen : 4843433d0511Smrg printf %s "(cached) " >&6 4844433d0511Smrgelse case e in #( 4845433d0511Smrg e) if test "x$host_alias" = x; then 48462b32c8f7Smrg ac_cv_host=$ac_cv_build 48472b32c8f7Smrgelse 4848433d0511Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4849433d0511Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 48502b32c8f7Smrgfi 4851433d0511Smrg ;; 4852433d0511Smrgesac 48532b32c8f7Smrgfi 4854433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4855433d0511Smrgprintf "%s\n" "$ac_cv_host" >&6; } 48562b32c8f7Smrgcase $ac_cv_host in 48572b32c8f7Smrg*-*-*) ;; 485895e0246bSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 48592b32c8f7Smrgesac 48602b32c8f7Smrghost=$ac_cv_host 48612b32c8f7Smrgac_save_IFS=$IFS; IFS='-' 48622b32c8f7Smrgset x $ac_cv_host 48632b32c8f7Smrgshift 48642b32c8f7Smrghost_cpu=$1 48652b32c8f7Smrghost_vendor=$2 48662b32c8f7Smrgshift; shift 48672b32c8f7Smrg# Remember, the first character of IFS is used to create $*, 48682b32c8f7Smrg# except with old shells: 48692b32c8f7Smrghost_os=$* 48702b32c8f7SmrgIFS=$ac_save_IFS 48712b32c8f7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 48722b32c8f7Smrg 48732b32c8f7Smrg 4874433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4875433d0511Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4876433d0511Smrgif test ${ac_cv_path_SED+y} 4877433d0511Smrgthen : 4878433d0511Smrg printf %s "(cached) " >&6 4879433d0511Smrgelse case e in #( 4880433d0511Smrg e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 488195e0246bSmrg for ac_i in 1 2 3 4 5 6 7; do 488295e0246bSmrg ac_script="$ac_script$as_nl$ac_script" 488395e0246bSmrg done 488495e0246bSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 488595e0246bSmrg { ac_script=; unset ac_script;} 488695e0246bSmrg if test -z "$SED"; then 488795e0246bSmrg ac_path_SED_found=false 488895e0246bSmrg # Loop through the user's path and test for each of PROGNAME-LIST 488995e0246bSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 489095e0246bSmrgfor as_dir in $PATH 489195e0246bSmrgdo 489295e0246bSmrg IFS=$as_save_IFS 4893433d0511Smrg case $as_dir in #((( 4894433d0511Smrg '') as_dir=./ ;; 4895433d0511Smrg */) ;; 4896433d0511Smrg *) as_dir=$as_dir/ ;; 4897433d0511Smrg esac 4898433d0511Smrg for ac_prog in sed gsed 4899433d0511Smrg do 490095e0246bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4901433d0511Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4902d1a7ce7bSmrg as_fn_executable_p "$ac_path_SED" || continue 490395e0246bSmrg# Check for GNU ac_path_SED and select it if it is found. 490495e0246bSmrg # Check for GNU $ac_path_SED 4905433d0511Smrgcase `"$ac_path_SED" --version 2>&1` in #( 490695e0246bSmrg*GNU*) 490795e0246bSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4908433d0511Smrg#( 490995e0246bSmrg*) 491095e0246bSmrg ac_count=0 4911433d0511Smrg printf %s 0123456789 >"conftest.in" 491295e0246bSmrg while : 491395e0246bSmrg do 491495e0246bSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 491595e0246bSmrg mv "conftest.tmp" "conftest.in" 491695e0246bSmrg cp "conftest.in" "conftest.nl" 4917433d0511Smrg printf "%s\n" '' >> "conftest.nl" 491895e0246bSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 491995e0246bSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 492095e0246bSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 492195e0246bSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 492295e0246bSmrg # Best one so far, save it but keep looking for a better one 492395e0246bSmrg ac_cv_path_SED="$ac_path_SED" 492495e0246bSmrg ac_path_SED_max=$ac_count 492595e0246bSmrg fi 492695e0246bSmrg # 10*(2^10) chars as input seems more than enough 492795e0246bSmrg test $ac_count -gt 10 && break 492895e0246bSmrg done 492995e0246bSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 49302b32c8f7Smrgesac 49312b32c8f7Smrg 493295e0246bSmrg $ac_path_SED_found && break 3 493395e0246bSmrg done 493495e0246bSmrg done 493595e0246bSmrg done 493695e0246bSmrgIFS=$as_save_IFS 493795e0246bSmrg if test -z "$ac_cv_path_SED"; then 493895e0246bSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 493995e0246bSmrg fi 494095e0246bSmrgelse 494195e0246bSmrg ac_cv_path_SED=$SED 49422b32c8f7Smrgfi 4943433d0511Smrg ;; 4944433d0511Smrgesac 49452b32c8f7Smrgfi 4946433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4947433d0511Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 494895e0246bSmrg SED="$ac_cv_path_SED" 494995e0246bSmrg rm -f conftest.sed 495095e0246bSmrg 495195e0246bSmrg 495295e0246bSmrg 495395e0246bSmrg 495495e0246bSmrg 4955cbc4e2beSmrg 4956cbc4e2beSmrg# Check whether --enable-selective-werror was given. 4957433d0511Smrgif test ${enable_selective_werror+y} 4958433d0511Smrgthen : 4959cbc4e2beSmrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4960433d0511Smrgelse case e in #( 4961433d0511Smrg e) SELECTIVE_WERROR=yes ;; 4962433d0511Smrgesac 49632b32c8f7Smrgfi 49642b32c8f7Smrg 4965cbc4e2beSmrg 4966cbc4e2beSmrg 4967cbc4e2beSmrg 4968cbc4e2beSmrg 4969cbc4e2beSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4970cbc4e2beSmrgif test "x$SUNCC" = "xyes"; then 4971cbc4e2beSmrg BASE_CFLAGS="-v" 4972cbc4e2beSmrgelse 4973cbc4e2beSmrg BASE_CFLAGS="" 49742b32c8f7Smrgfi 49752b32c8f7Smrg 4976cbc4e2beSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 49772b32c8f7Smrg 49782b32c8f7Smrg 49792b32c8f7Smrg 49802b32c8f7Smrg 49812b32c8f7Smrg 49822b32c8f7Smrg 49832b32c8f7Smrg 4984cbc4e2beSmrg 4985cbc4e2beSmrg 4986cbc4e2beSmrg 4987cbc4e2beSmrg 4988cbc4e2beSmrg 4989cbc4e2beSmrg 4990cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 4991cbc4e2beSmrg 4992cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4993cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4995433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4996433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 4997433d0511Smrgthen : 4998433d0511Smrg printf %s "(cached) " >&6 4999433d0511Smrgelse case e in #( 5000433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001cbc4e2beSmrg/* end confdefs.h. */ 5002cbc4e2beSmrgint i; 5003cbc4e2beSmrg_ACEOF 5004433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5005433d0511Smrgthen : 5006cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5007433d0511Smrgelse case e in #( 5008433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5009433d0511Smrgesac 5010cbc4e2beSmrgfi 5011433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5012433d0511Smrgesac 5013cbc4e2beSmrgfi 5014433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5015433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5016cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5017cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 50182b32c8f7Smrgfi 50192b32c8f7Smrg 5020cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5021cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5022cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50232b32c8f7Smrg fi 5024cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5025433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5026433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5027433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5028433d0511Smrgthen : 5029433d0511Smrg printf %s "(cached) " >&6 5030433d0511Smrgelse case e in #( 5031433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032cbc4e2beSmrg/* end confdefs.h. */ 5033cbc4e2beSmrgint i; 5034cbc4e2beSmrg_ACEOF 5035433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5036433d0511Smrgthen : 5037cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5038433d0511Smrgelse case e in #( 5039433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5040433d0511Smrgesac 5041cbc4e2beSmrgfi 5042433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5043433d0511Smrgesac 5044cbc4e2beSmrgfi 5045433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5046433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5047cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5048cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 50492b32c8f7Smrgfi 50502b32c8f7Smrg 5051cbc4e2beSmrgfound="no" 50522b32c8f7Smrg 5053cbc4e2beSmrg if test $found = "no" ; then 5054d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5055cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5056cbc4e2beSmrg fi 50572b32c8f7Smrg 5058d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5059cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5060cbc4e2beSmrg fi 50612b32c8f7Smrg 5062cbc4e2beSmrg CFLAGS="$CFLAGS -Wall" 50632b32c8f7Smrg 5064433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5065433d0511Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 5066cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wall 5067433d0511Smrg if eval test \${$cacheid+y} 5068433d0511Smrgthen : 5069433d0511Smrg printf %s "(cached) " >&6 5070433d0511Smrgelse case e in #( 5071433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072cbc4e2beSmrg/* end confdefs.h. */ 5073cbc4e2beSmrgint i; 5074cbc4e2beSmrgint 5075433d0511Smrgmain (void) 5076cbc4e2beSmrg{ 50772b32c8f7Smrg 5078cbc4e2beSmrg ; 5079cbc4e2beSmrg return 0; 5080cbc4e2beSmrg} 50812b32c8f7Smrg_ACEOF 5082433d0511Smrgif ac_fn_c_try_link "$LINENO" 5083433d0511Smrgthen : 5084cbc4e2beSmrg eval $cacheid=yes 5085433d0511Smrgelse case e in #( 5086433d0511Smrg e) eval $cacheid=no ;; 5087433d0511Smrgesac 5088cbc4e2beSmrgfi 5089433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5090433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5091433d0511Smrgesac 5092cbc4e2beSmrgfi 50932b32c8f7Smrg 5094cbc4e2beSmrg 5095cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5096cbc4e2beSmrg 5097cbc4e2beSmrg eval supported=\$$cacheid 5098433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5099433d0511Smrgprintf "%s\n" "$supported" >&6; } 5100cbc4e2beSmrg if test "$supported" = "yes" ; then 5101cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 5102cbc4e2beSmrg found="yes" 5103cbc4e2beSmrg fi 51042b32c8f7Smrg fi 51052b32c8f7Smrg 51062b32c8f7Smrg 51072b32c8f7Smrg 51082b32c8f7Smrg 51092b32c8f7Smrg 511095e0246bSmrg 511195e0246bSmrg 511295e0246bSmrg 511395e0246bSmrg 51142b32c8f7Smrg 51152b32c8f7Smrg 51162b32c8f7Smrg 51172b32c8f7Smrg 51182b32c8f7Smrg 51192b32c8f7Smrg 5120cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 51212b32c8f7Smrg 5122cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5123cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5125433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5126433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5127433d0511Smrgthen : 5128433d0511Smrg printf %s "(cached) " >&6 5129433d0511Smrgelse case e in #( 5130433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131cbc4e2beSmrg/* end confdefs.h. */ 5132cbc4e2beSmrgint i; 5133cbc4e2beSmrg_ACEOF 5134433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5135433d0511Smrgthen : 5136cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5137433d0511Smrgelse case e in #( 5138433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5139433d0511Smrgesac 51402b32c8f7Smrgfi 5141433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5142433d0511Smrgesac 51432b32c8f7Smrgfi 5144433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5145433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5146cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5147cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 51482b32c8f7Smrgfi 51492b32c8f7Smrg 5150cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5151cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5152cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153cbc4e2beSmrg fi 5154cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5155433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5156433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5157433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5158433d0511Smrgthen : 5159433d0511Smrg printf %s "(cached) " >&6 5160433d0511Smrgelse case e in #( 5161433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162cbc4e2beSmrg/* end confdefs.h. */ 5163cbc4e2beSmrgint i; 5164cbc4e2beSmrg_ACEOF 5165433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5166433d0511Smrgthen : 5167cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5168433d0511Smrgelse case e in #( 5169433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5170433d0511Smrgesac 51712b32c8f7Smrgfi 5172433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5173433d0511Smrgesac 5174cbc4e2beSmrgfi 5175433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5176433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5177cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5178cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 51792b32c8f7Smrgfi 51802b32c8f7Smrg 5181cbc4e2beSmrgfound="no" 5182cbc4e2beSmrg 5183cbc4e2beSmrg if test $found = "no" ; then 5184d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5185cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186cbc4e2beSmrg fi 5187cbc4e2beSmrg 5188d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5189cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190cbc4e2beSmrg fi 5191cbc4e2beSmrg 5192cbc4e2beSmrg CFLAGS="$CFLAGS -Wpointer-arith" 5193cbc4e2beSmrg 5194433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5195433d0511Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5196cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5197433d0511Smrg if eval test \${$cacheid+y} 5198433d0511Smrgthen : 5199433d0511Smrg printf %s "(cached) " >&6 5200433d0511Smrgelse case e in #( 5201433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202cbc4e2beSmrg/* end confdefs.h. */ 5203cbc4e2beSmrgint i; 5204cbc4e2beSmrgint 5205433d0511Smrgmain (void) 5206cbc4e2beSmrg{ 5207cbc4e2beSmrg 5208cbc4e2beSmrg ; 5209cbc4e2beSmrg return 0; 5210cbc4e2beSmrg} 5211cbc4e2beSmrg_ACEOF 5212433d0511Smrgif ac_fn_c_try_link "$LINENO" 5213433d0511Smrgthen : 5214cbc4e2beSmrg eval $cacheid=yes 5215433d0511Smrgelse case e in #( 5216433d0511Smrg e) eval $cacheid=no ;; 5217433d0511Smrgesac 52182b32c8f7Smrgfi 5219433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5220433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5221433d0511Smrgesac 52222b32c8f7Smrgfi 52232b32c8f7Smrg 52242b32c8f7Smrg 5225cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 52262b32c8f7Smrg 5227cbc4e2beSmrg eval supported=\$$cacheid 5228433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229433d0511Smrgprintf "%s\n" "$supported" >&6; } 5230cbc4e2beSmrg if test "$supported" = "yes" ; then 5231cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5232cbc4e2beSmrg found="yes" 5233cbc4e2beSmrg fi 5234cbc4e2beSmrg fi 52352b32c8f7Smrg 52362b32c8f7Smrg 52372b32c8f7Smrg 52382b32c8f7Smrg 52392b32c8f7Smrg 52402b32c8f7Smrg 52412b32c8f7Smrg 52422b32c8f7Smrg 52432b32c8f7Smrg 52442b32c8f7Smrg 52452b32c8f7Smrg 52462b32c8f7Smrg 524795e0246bSmrg 524895e0246bSmrg 524995e0246bSmrg 5250cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 525195e0246bSmrg 5252cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5253cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5255433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5256433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5257433d0511Smrgthen : 5258433d0511Smrg printf %s "(cached) " >&6 5259433d0511Smrgelse case e in #( 5260433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261cbc4e2beSmrg/* end confdefs.h. */ 5262cbc4e2beSmrgint i; 5263cbc4e2beSmrg_ACEOF 5264433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5265433d0511Smrgthen : 5266cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5267433d0511Smrgelse case e in #( 5268433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5269433d0511Smrgesac 5270cbc4e2beSmrgfi 5271433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5272433d0511Smrgesac 5273cbc4e2beSmrgfi 5274433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5275433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5276cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5277cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5278cbc4e2beSmrgfi 5279cbc4e2beSmrg 5280cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5281cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5282cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283cbc4e2beSmrg fi 5284cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5286433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5287433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5288433d0511Smrgthen : 5289433d0511Smrg printf %s "(cached) " >&6 5290433d0511Smrgelse case e in #( 5291433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292cbc4e2beSmrg/* end confdefs.h. */ 5293cbc4e2beSmrgint i; 5294cbc4e2beSmrg_ACEOF 5295433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5296433d0511Smrgthen : 5297cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5298433d0511Smrgelse case e in #( 5299433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5300433d0511Smrgesac 5301cbc4e2beSmrgfi 5302433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5303433d0511Smrgesac 5304cbc4e2beSmrgfi 5305433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5306433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5307cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5308cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5309cbc4e2beSmrgfi 5310cbc4e2beSmrg 5311cbc4e2beSmrgfound="no" 5312cbc4e2beSmrg 5313cbc4e2beSmrg if test $found = "no" ; then 5314d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316cbc4e2beSmrg fi 5317cbc4e2beSmrg 5318d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5319cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5320cbc4e2beSmrg fi 5321cbc4e2beSmrg 5322cbc4e2beSmrg CFLAGS="$CFLAGS -Wmissing-declarations" 5323cbc4e2beSmrg 5324433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5325433d0511Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5326cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5327433d0511Smrg if eval test \${$cacheid+y} 5328433d0511Smrgthen : 5329433d0511Smrg printf %s "(cached) " >&6 5330433d0511Smrgelse case e in #( 5331433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332cbc4e2beSmrg/* end confdefs.h. */ 5333cbc4e2beSmrgint i; 5334cbc4e2beSmrgint 5335433d0511Smrgmain (void) 5336cbc4e2beSmrg{ 5337cbc4e2beSmrg 5338cbc4e2beSmrg ; 5339cbc4e2beSmrg return 0; 5340cbc4e2beSmrg} 5341cbc4e2beSmrg_ACEOF 5342433d0511Smrgif ac_fn_c_try_link "$LINENO" 5343433d0511Smrgthen : 5344cbc4e2beSmrg eval $cacheid=yes 5345433d0511Smrgelse case e in #( 5346433d0511Smrg e) eval $cacheid=no ;; 5347433d0511Smrgesac 5348cbc4e2beSmrgfi 5349433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5350433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5351433d0511Smrgesac 5352cbc4e2beSmrgfi 5353cbc4e2beSmrg 5354cbc4e2beSmrg 5355cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5356cbc4e2beSmrg 5357cbc4e2beSmrg eval supported=\$$cacheid 5358433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5359433d0511Smrgprintf "%s\n" "$supported" >&6; } 5360cbc4e2beSmrg if test "$supported" = "yes" ; then 5361cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5362cbc4e2beSmrg found="yes" 5363cbc4e2beSmrg fi 5364cbc4e2beSmrg fi 5365cbc4e2beSmrg 5366cbc4e2beSmrg 5367cbc4e2beSmrg 5368cbc4e2beSmrg 5369cbc4e2beSmrg 5370cbc4e2beSmrg 5371cbc4e2beSmrg 5372cbc4e2beSmrg 5373cbc4e2beSmrg 5374cbc4e2beSmrg 5375cbc4e2beSmrg 5376cbc4e2beSmrg 5377cbc4e2beSmrg 5378cbc4e2beSmrg 5379cbc4e2beSmrg 5380cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5381cbc4e2beSmrg 5382cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5383cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5384433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5385433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5386433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5387433d0511Smrgthen : 5388433d0511Smrg printf %s "(cached) " >&6 5389433d0511Smrgelse case e in #( 5390433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391cbc4e2beSmrg/* end confdefs.h. */ 5392cbc4e2beSmrgint i; 5393cbc4e2beSmrg_ACEOF 5394433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5395433d0511Smrgthen : 5396cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5397433d0511Smrgelse case e in #( 5398433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5399433d0511Smrgesac 5400cbc4e2beSmrgfi 5401433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5402433d0511Smrgesac 5403cbc4e2beSmrgfi 5404433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5405433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5406cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5407cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5408cbc4e2beSmrgfi 5409cbc4e2beSmrg 5410cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5411cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5412cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413cbc4e2beSmrg fi 5414cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5415433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5416433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5417433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5418433d0511Smrgthen : 5419433d0511Smrg printf %s "(cached) " >&6 5420433d0511Smrgelse case e in #( 5421433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422cbc4e2beSmrg/* end confdefs.h. */ 5423cbc4e2beSmrgint i; 5424cbc4e2beSmrg_ACEOF 5425433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5426433d0511Smrgthen : 5427cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5428433d0511Smrgelse case e in #( 5429433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5430433d0511Smrgesac 5431cbc4e2beSmrgfi 5432433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5433433d0511Smrgesac 5434cbc4e2beSmrgfi 5435433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5436433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5437cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5438cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5439cbc4e2beSmrgfi 5440cbc4e2beSmrg 5441cbc4e2beSmrgfound="no" 5442cbc4e2beSmrg 5443cbc4e2beSmrg if test $found = "no" ; then 5444d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5445cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446cbc4e2beSmrg fi 5447cbc4e2beSmrg 5448d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5449cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450cbc4e2beSmrg fi 5451cbc4e2beSmrg 5452cbc4e2beSmrg CFLAGS="$CFLAGS -Wformat=2" 5453cbc4e2beSmrg 5454433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5455433d0511Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 5456d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Wformat_2 5457433d0511Smrg if eval test \${$cacheid+y} 5458433d0511Smrgthen : 5459433d0511Smrg printf %s "(cached) " >&6 5460433d0511Smrgelse case e in #( 5461433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462cbc4e2beSmrg/* end confdefs.h. */ 5463cbc4e2beSmrgint i; 5464cbc4e2beSmrgint 5465433d0511Smrgmain (void) 5466cbc4e2beSmrg{ 5467cbc4e2beSmrg 5468cbc4e2beSmrg ; 5469cbc4e2beSmrg return 0; 5470cbc4e2beSmrg} 5471cbc4e2beSmrg_ACEOF 5472433d0511Smrgif ac_fn_c_try_link "$LINENO" 5473433d0511Smrgthen : 5474cbc4e2beSmrg eval $cacheid=yes 5475433d0511Smrgelse case e in #( 5476433d0511Smrg e) eval $cacheid=no ;; 5477433d0511Smrgesac 5478cbc4e2beSmrgfi 5479433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5480433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5481433d0511Smrgesac 5482cbc4e2beSmrgfi 5483cbc4e2beSmrg 5484cbc4e2beSmrg 5485cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5486cbc4e2beSmrg 5487cbc4e2beSmrg eval supported=\$$cacheid 5488433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5489433d0511Smrgprintf "%s\n" "$supported" >&6; } 5490cbc4e2beSmrg if test "$supported" = "yes" ; then 5491cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5492cbc4e2beSmrg found="yes" 5493cbc4e2beSmrg fi 5494cbc4e2beSmrg fi 5495cbc4e2beSmrg 5496cbc4e2beSmrg if test $found = "no" ; then 5497d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499cbc4e2beSmrg fi 5500cbc4e2beSmrg 5501d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5502cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5503cbc4e2beSmrg fi 5504cbc4e2beSmrg 5505cbc4e2beSmrg CFLAGS="$CFLAGS -Wformat" 5506cbc4e2beSmrg 5507433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5508433d0511Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 5509cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wformat 5510433d0511Smrg if eval test \${$cacheid+y} 5511433d0511Smrgthen : 5512433d0511Smrg printf %s "(cached) " >&6 5513433d0511Smrgelse case e in #( 5514433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515cbc4e2beSmrg/* end confdefs.h. */ 5516cbc4e2beSmrgint i; 5517cbc4e2beSmrgint 5518433d0511Smrgmain (void) 5519cbc4e2beSmrg{ 5520cbc4e2beSmrg 5521cbc4e2beSmrg ; 5522cbc4e2beSmrg return 0; 5523cbc4e2beSmrg} 5524cbc4e2beSmrg_ACEOF 5525433d0511Smrgif ac_fn_c_try_link "$LINENO" 5526433d0511Smrgthen : 5527cbc4e2beSmrg eval $cacheid=yes 5528433d0511Smrgelse case e in #( 5529433d0511Smrg e) eval $cacheid=no ;; 5530433d0511Smrgesac 5531cbc4e2beSmrgfi 5532433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5533433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5534433d0511Smrgesac 5535cbc4e2beSmrgfi 5536cbc4e2beSmrg 5537cbc4e2beSmrg 5538cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5539cbc4e2beSmrg 5540cbc4e2beSmrg eval supported=\$$cacheid 5541433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5542433d0511Smrgprintf "%s\n" "$supported" >&6; } 5543cbc4e2beSmrg if test "$supported" = "yes" ; then 5544cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5545cbc4e2beSmrg found="yes" 5546cbc4e2beSmrg fi 5547cbc4e2beSmrg fi 5548cbc4e2beSmrg 5549cbc4e2beSmrg 5550cbc4e2beSmrg 5551cbc4e2beSmrg 5552cbc4e2beSmrg 5553cbc4e2beSmrg 5554cbc4e2beSmrg 5555cbc4e2beSmrg 5556cbc4e2beSmrg 5557cbc4e2beSmrg 5558cbc4e2beSmrg 5559cbc4e2beSmrg 5560cbc4e2beSmrg 5561cbc4e2beSmrg 5562cbc4e2beSmrg 5563cbc4e2beSmrg 5564cbc4e2beSmrg 5565cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5566cbc4e2beSmrg 5567cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5568cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5570433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5571433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5572433d0511Smrgthen : 5573433d0511Smrg printf %s "(cached) " >&6 5574433d0511Smrgelse case e in #( 5575433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576cbc4e2beSmrg/* end confdefs.h. */ 5577cbc4e2beSmrgint i; 5578cbc4e2beSmrg_ACEOF 5579433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5580433d0511Smrgthen : 5581cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5582433d0511Smrgelse case e in #( 5583433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5584433d0511Smrgesac 5585cbc4e2beSmrgfi 5586433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5587433d0511Smrgesac 5588cbc4e2beSmrgfi 5589433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5590433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5591cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5592cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5593cbc4e2beSmrgfi 5594cbc4e2beSmrg 5595cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5596cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5597cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5598cbc4e2beSmrg fi 5599cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5601433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5602433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5603433d0511Smrgthen : 5604433d0511Smrg printf %s "(cached) " >&6 5605433d0511Smrgelse case e in #( 5606433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607cbc4e2beSmrg/* end confdefs.h. */ 5608cbc4e2beSmrgint i; 5609cbc4e2beSmrg_ACEOF 5610433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5611433d0511Smrgthen : 5612cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5613433d0511Smrgelse case e in #( 5614433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5615433d0511Smrgesac 5616cbc4e2beSmrgfi 5617433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5618433d0511Smrgesac 5619cbc4e2beSmrgfi 5620433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5621433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5622cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5623cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5624cbc4e2beSmrgfi 5625cbc4e2beSmrg 5626cbc4e2beSmrgfound="no" 5627cbc4e2beSmrg 5628cbc4e2beSmrg if test $found = "no" ; then 5629d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5630cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5631cbc4e2beSmrg fi 5632cbc4e2beSmrg 5633d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5634cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5635cbc4e2beSmrg fi 5636cbc4e2beSmrg 5637cbc4e2beSmrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5638cbc4e2beSmrg 5639433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5640433d0511Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5641cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5642433d0511Smrg if eval test \${$cacheid+y} 5643433d0511Smrgthen : 5644433d0511Smrg printf %s "(cached) " >&6 5645433d0511Smrgelse case e in #( 5646433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647cbc4e2beSmrg/* end confdefs.h. */ 5648cbc4e2beSmrgint i; 5649cbc4e2beSmrgint 5650433d0511Smrgmain (void) 5651cbc4e2beSmrg{ 5652cbc4e2beSmrg 5653cbc4e2beSmrg ; 5654cbc4e2beSmrg return 0; 5655cbc4e2beSmrg} 5656cbc4e2beSmrg_ACEOF 5657433d0511Smrgif ac_fn_c_try_link "$LINENO" 5658433d0511Smrgthen : 5659cbc4e2beSmrg eval $cacheid=yes 5660433d0511Smrgelse case e in #( 5661433d0511Smrg e) eval $cacheid=no ;; 5662433d0511Smrgesac 5663cbc4e2beSmrgfi 5664433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5665433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5666433d0511Smrgesac 5667cbc4e2beSmrgfi 5668cbc4e2beSmrg 5669cbc4e2beSmrg 5670cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5671cbc4e2beSmrg 5672cbc4e2beSmrg eval supported=\$$cacheid 5673433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5674433d0511Smrgprintf "%s\n" "$supported" >&6; } 5675cbc4e2beSmrg if test "$supported" = "yes" ; then 5676cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5677cbc4e2beSmrg found="yes" 5678cbc4e2beSmrg fi 5679cbc4e2beSmrg fi 5680cbc4e2beSmrg 5681cbc4e2beSmrg 5682cbc4e2beSmrg 5683cbc4e2beSmrg 5684cbc4e2beSmrg 5685cbc4e2beSmrg 5686cbc4e2beSmrg 5687cbc4e2beSmrg 5688cbc4e2beSmrg 5689cbc4e2beSmrg 5690cbc4e2beSmrg 5691cbc4e2beSmrg 5692cbc4e2beSmrg 5693cbc4e2beSmrg 5694cbc4e2beSmrg 5695cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5696cbc4e2beSmrg 5697cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5698cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5700433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5701433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5702433d0511Smrgthen : 5703433d0511Smrg printf %s "(cached) " >&6 5704433d0511Smrgelse case e in #( 5705433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706cbc4e2beSmrg/* end confdefs.h. */ 5707cbc4e2beSmrgint i; 5708cbc4e2beSmrg_ACEOF 5709433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5710433d0511Smrgthen : 5711cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5712433d0511Smrgelse case e in #( 5713433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5714433d0511Smrgesac 5715cbc4e2beSmrgfi 5716433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5717433d0511Smrgesac 5718cbc4e2beSmrgfi 5719433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5720433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5721cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5722cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5723cbc4e2beSmrgfi 5724cbc4e2beSmrg 5725cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5726cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5727cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728cbc4e2beSmrg fi 5729cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5730433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5731433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5732433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5733433d0511Smrgthen : 5734433d0511Smrg printf %s "(cached) " >&6 5735433d0511Smrgelse case e in #( 5736433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737cbc4e2beSmrg/* end confdefs.h. */ 5738cbc4e2beSmrgint i; 5739cbc4e2beSmrg_ACEOF 5740433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5741433d0511Smrgthen : 5742cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5743433d0511Smrgelse case e in #( 5744433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5745433d0511Smrgesac 5746cbc4e2beSmrgfi 5747433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5748433d0511Smrgesac 5749cbc4e2beSmrgfi 5750433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5751433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5752cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5753cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5754cbc4e2beSmrgfi 5755cbc4e2beSmrg 5756cbc4e2beSmrgfound="no" 5757cbc4e2beSmrg 5758cbc4e2beSmrg if test $found = "no" ; then 5759d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5760cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5761cbc4e2beSmrg fi 5762cbc4e2beSmrg 5763d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5764cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5765cbc4e2beSmrg fi 5766cbc4e2beSmrg 5767cbc4e2beSmrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5768cbc4e2beSmrg 5769433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5770433d0511Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5771cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5772433d0511Smrg if eval test \${$cacheid+y} 5773433d0511Smrgthen : 5774433d0511Smrg printf %s "(cached) " >&6 5775433d0511Smrgelse case e in #( 5776433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777cbc4e2beSmrg/* end confdefs.h. */ 5778cbc4e2beSmrgint i; 5779cbc4e2beSmrgint 5780433d0511Smrgmain (void) 5781cbc4e2beSmrg{ 5782cbc4e2beSmrg 5783cbc4e2beSmrg ; 5784cbc4e2beSmrg return 0; 5785cbc4e2beSmrg} 5786cbc4e2beSmrg_ACEOF 5787433d0511Smrgif ac_fn_c_try_link "$LINENO" 5788433d0511Smrgthen : 5789cbc4e2beSmrg eval $cacheid=yes 5790433d0511Smrgelse case e in #( 5791433d0511Smrg e) eval $cacheid=no ;; 5792433d0511Smrgesac 5793cbc4e2beSmrgfi 5794433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5795433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5796433d0511Smrgesac 5797cbc4e2beSmrgfi 5798cbc4e2beSmrg 5799cbc4e2beSmrg 5800cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5801cbc4e2beSmrg 5802cbc4e2beSmrg eval supported=\$$cacheid 5803433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5804433d0511Smrgprintf "%s\n" "$supported" >&6; } 5805cbc4e2beSmrg if test "$supported" = "yes" ; then 5806cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5807cbc4e2beSmrg found="yes" 5808cbc4e2beSmrg fi 5809cbc4e2beSmrg fi 5810cbc4e2beSmrg 5811cbc4e2beSmrg 5812cbc4e2beSmrg 5813cbc4e2beSmrg 5814cbc4e2beSmrg 5815cbc4e2beSmrg 5816cbc4e2beSmrg 5817cbc4e2beSmrg 5818cbc4e2beSmrg 5819cbc4e2beSmrg 5820cbc4e2beSmrg 5821cbc4e2beSmrg 5822cbc4e2beSmrg 5823cbc4e2beSmrg 5824cbc4e2beSmrg 5825cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5826cbc4e2beSmrg 5827cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5828cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5830433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5831433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5832433d0511Smrgthen : 5833433d0511Smrg printf %s "(cached) " >&6 5834433d0511Smrgelse case e in #( 5835433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836cbc4e2beSmrg/* end confdefs.h. */ 5837cbc4e2beSmrgint i; 5838cbc4e2beSmrg_ACEOF 5839433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5840433d0511Smrgthen : 5841cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5842433d0511Smrgelse case e in #( 5843433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5844433d0511Smrgesac 5845cbc4e2beSmrgfi 5846433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5847433d0511Smrgesac 5848cbc4e2beSmrgfi 5849433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5850433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5851cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5852cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5853cbc4e2beSmrgfi 5854cbc4e2beSmrg 5855cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5856cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5857cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858cbc4e2beSmrg fi 5859cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5860433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5861433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5862433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5863433d0511Smrgthen : 5864433d0511Smrg printf %s "(cached) " >&6 5865433d0511Smrgelse case e in #( 5866433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867cbc4e2beSmrg/* end confdefs.h. */ 5868cbc4e2beSmrgint i; 5869cbc4e2beSmrg_ACEOF 5870433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5871433d0511Smrgthen : 5872cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5873433d0511Smrgelse case e in #( 5874433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5875433d0511Smrgesac 5876cbc4e2beSmrgfi 5877433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5878433d0511Smrgesac 5879cbc4e2beSmrgfi 5880433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5881433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5882cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5883cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5884cbc4e2beSmrgfi 5885cbc4e2beSmrg 5886cbc4e2beSmrgfound="no" 5887cbc4e2beSmrg 5888cbc4e2beSmrg if test $found = "no" ; then 5889d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891cbc4e2beSmrg fi 5892cbc4e2beSmrg 5893d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5894cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5895cbc4e2beSmrg fi 5896cbc4e2beSmrg 5897cbc4e2beSmrg CFLAGS="$CFLAGS -Wnested-externs" 5898cbc4e2beSmrg 5899433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5900433d0511Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 5901cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wnested_externs 5902433d0511Smrg if eval test \${$cacheid+y} 5903433d0511Smrgthen : 5904433d0511Smrg printf %s "(cached) " >&6 5905433d0511Smrgelse case e in #( 5906433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907cbc4e2beSmrg/* end confdefs.h. */ 5908cbc4e2beSmrgint i; 5909cbc4e2beSmrgint 5910433d0511Smrgmain (void) 5911cbc4e2beSmrg{ 5912cbc4e2beSmrg 5913cbc4e2beSmrg ; 5914cbc4e2beSmrg return 0; 5915cbc4e2beSmrg} 5916cbc4e2beSmrg_ACEOF 5917433d0511Smrgif ac_fn_c_try_link "$LINENO" 5918433d0511Smrgthen : 5919cbc4e2beSmrg eval $cacheid=yes 5920433d0511Smrgelse case e in #( 5921433d0511Smrg e) eval $cacheid=no ;; 5922433d0511Smrgesac 5923cbc4e2beSmrgfi 5924433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5925433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 5926433d0511Smrgesac 5927cbc4e2beSmrgfi 5928cbc4e2beSmrg 5929cbc4e2beSmrg 5930cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5931cbc4e2beSmrg 5932cbc4e2beSmrg eval supported=\$$cacheid 5933433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934433d0511Smrgprintf "%s\n" "$supported" >&6; } 5935cbc4e2beSmrg if test "$supported" = "yes" ; then 5936cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5937cbc4e2beSmrg found="yes" 5938cbc4e2beSmrg fi 5939cbc4e2beSmrg fi 5940cbc4e2beSmrg 5941cbc4e2beSmrg 5942cbc4e2beSmrg 5943cbc4e2beSmrg 5944cbc4e2beSmrg 5945cbc4e2beSmrg 5946cbc4e2beSmrg 5947cbc4e2beSmrg 5948cbc4e2beSmrg 5949cbc4e2beSmrg 5950cbc4e2beSmrg 5951cbc4e2beSmrg 5952cbc4e2beSmrg 5953cbc4e2beSmrg 5954cbc4e2beSmrg 5955cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 5956cbc4e2beSmrg 5957cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5962433d0511Smrgthen : 5963433d0511Smrg printf %s "(cached) " >&6 5964433d0511Smrgelse case e in #( 5965433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966cbc4e2beSmrg/* end confdefs.h. */ 5967cbc4e2beSmrgint i; 5968cbc4e2beSmrg_ACEOF 5969433d0511Smrgif ac_fn_c_try_compile "$LINENO" 5970433d0511Smrgthen : 5971cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5972433d0511Smrgelse case e in #( 5973433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5974433d0511Smrgesac 5975cbc4e2beSmrgfi 5976433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5977433d0511Smrgesac 5978cbc4e2beSmrgfi 5979433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5980433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5981cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5982cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 5983cbc4e2beSmrgfi 5984cbc4e2beSmrg 5985cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5986cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988cbc4e2beSmrg fi 5989cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5991433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5992433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5993433d0511Smrgthen : 5994433d0511Smrg printf %s "(cached) " >&6 5995433d0511Smrgelse case e in #( 5996433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997cbc4e2beSmrg/* end confdefs.h. */ 5998cbc4e2beSmrgint i; 5999cbc4e2beSmrg_ACEOF 6000433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6001433d0511Smrgthen : 6002cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6003433d0511Smrgelse case e in #( 6004433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6005433d0511Smrgesac 6006cbc4e2beSmrgfi 6007433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6008433d0511Smrgesac 6009cbc4e2beSmrgfi 6010433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6011433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6012cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6013cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6014cbc4e2beSmrgfi 6015cbc4e2beSmrg 6016cbc4e2beSmrgfound="no" 6017cbc4e2beSmrg 6018cbc4e2beSmrg if test $found = "no" ; then 6019d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6020cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021cbc4e2beSmrg fi 6022cbc4e2beSmrg 6023d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6024cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025cbc4e2beSmrg fi 6026cbc4e2beSmrg 6027cbc4e2beSmrg CFLAGS="$CFLAGS -Wbad-function-cast" 6028cbc4e2beSmrg 6029433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6030433d0511Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6031cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 6032433d0511Smrg if eval test \${$cacheid+y} 6033433d0511Smrgthen : 6034433d0511Smrg printf %s "(cached) " >&6 6035433d0511Smrgelse case e in #( 6036433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037cbc4e2beSmrg/* end confdefs.h. */ 6038cbc4e2beSmrgint i; 6039cbc4e2beSmrgint 6040433d0511Smrgmain (void) 6041cbc4e2beSmrg{ 6042cbc4e2beSmrg 6043cbc4e2beSmrg ; 6044cbc4e2beSmrg return 0; 6045cbc4e2beSmrg} 6046cbc4e2beSmrg_ACEOF 6047433d0511Smrgif ac_fn_c_try_link "$LINENO" 6048433d0511Smrgthen : 6049cbc4e2beSmrg eval $cacheid=yes 6050433d0511Smrgelse case e in #( 6051433d0511Smrg e) eval $cacheid=no ;; 6052433d0511Smrgesac 6053cbc4e2beSmrgfi 6054433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6055433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6056433d0511Smrgesac 6057cbc4e2beSmrgfi 6058cbc4e2beSmrg 6059cbc4e2beSmrg 6060cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6061cbc4e2beSmrg 6062cbc4e2beSmrg eval supported=\$$cacheid 6063433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6064433d0511Smrgprintf "%s\n" "$supported" >&6; } 6065cbc4e2beSmrg if test "$supported" = "yes" ; then 6066cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6067cbc4e2beSmrg found="yes" 6068cbc4e2beSmrg fi 6069cbc4e2beSmrg fi 6070cbc4e2beSmrg 6071cbc4e2beSmrg 6072cbc4e2beSmrg 6073cbc4e2beSmrg 6074cbc4e2beSmrg 6075cbc4e2beSmrg 6076cbc4e2beSmrg 6077cbc4e2beSmrg 6078cbc4e2beSmrg 6079cbc4e2beSmrg 6080cbc4e2beSmrg 6081cbc4e2beSmrg 6082cbc4e2beSmrg 6083cbc4e2beSmrg 6084cbc4e2beSmrg 6085cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6086cbc4e2beSmrg 6087cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6088cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6089433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6090433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6091433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6092433d0511Smrgthen : 6093433d0511Smrg printf %s "(cached) " >&6 6094433d0511Smrgelse case e in #( 6095433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096cbc4e2beSmrg/* end confdefs.h. */ 6097cbc4e2beSmrgint i; 6098cbc4e2beSmrg_ACEOF 6099433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6100433d0511Smrgthen : 6101cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6102433d0511Smrgelse case e in #( 6103433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6104433d0511Smrgesac 6105cbc4e2beSmrgfi 6106433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6107433d0511Smrgesac 6108cbc4e2beSmrgfi 6109433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6110433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6111cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6112cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6113cbc4e2beSmrgfi 6114cbc4e2beSmrg 6115cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6116cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6117cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6118cbc4e2beSmrg fi 6119cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6121433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6122433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6123433d0511Smrgthen : 6124433d0511Smrg printf %s "(cached) " >&6 6125433d0511Smrgelse case e in #( 6126433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127cbc4e2beSmrg/* end confdefs.h. */ 6128cbc4e2beSmrgint i; 6129cbc4e2beSmrg_ACEOF 6130433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6131433d0511Smrgthen : 6132cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6133433d0511Smrgelse case e in #( 6134433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6135433d0511Smrgesac 6136cbc4e2beSmrgfi 6137433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6138433d0511Smrgesac 6139cbc4e2beSmrgfi 6140433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6141433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6142cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6143cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6144cbc4e2beSmrgfi 6145cbc4e2beSmrg 6146cbc4e2beSmrgfound="no" 6147cbc4e2beSmrg 6148cbc4e2beSmrg if test $found = "no" ; then 6149d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6150cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6151cbc4e2beSmrg fi 6152cbc4e2beSmrg 6153d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6154cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6155cbc4e2beSmrg fi 6156cbc4e2beSmrg 6157cbc4e2beSmrg CFLAGS="$CFLAGS -Wold-style-definition" 6158cbc4e2beSmrg 6159433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6160433d0511Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6161cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wold_style_definition 6162433d0511Smrg if eval test \${$cacheid+y} 6163433d0511Smrgthen : 6164433d0511Smrg printf %s "(cached) " >&6 6165433d0511Smrgelse case e in #( 6166433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167cbc4e2beSmrg/* end confdefs.h. */ 6168cbc4e2beSmrgint i; 6169cbc4e2beSmrgint 6170433d0511Smrgmain (void) 6171cbc4e2beSmrg{ 6172cbc4e2beSmrg 6173cbc4e2beSmrg ; 6174cbc4e2beSmrg return 0; 6175cbc4e2beSmrg} 6176cbc4e2beSmrg_ACEOF 6177433d0511Smrgif ac_fn_c_try_link "$LINENO" 6178433d0511Smrgthen : 6179cbc4e2beSmrg eval $cacheid=yes 6180433d0511Smrgelse case e in #( 6181433d0511Smrg e) eval $cacheid=no ;; 6182433d0511Smrgesac 6183cbc4e2beSmrgfi 6184433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6185433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6186433d0511Smrgesac 6187cbc4e2beSmrgfi 6188cbc4e2beSmrg 6189cbc4e2beSmrg 6190cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6191cbc4e2beSmrg 6192cbc4e2beSmrg eval supported=\$$cacheid 6193433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194433d0511Smrgprintf "%s\n" "$supported" >&6; } 6195cbc4e2beSmrg if test "$supported" = "yes" ; then 6196cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6197cbc4e2beSmrg found="yes" 6198cbc4e2beSmrg fi 6199cbc4e2beSmrg fi 6200cbc4e2beSmrg 6201d1a7ce7bSmrg if test $found = "no" ; then 6202d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203d1a7ce7bSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204d1a7ce7bSmrg fi 6205d1a7ce7bSmrg 6206d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6207d1a7ce7bSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6208d1a7ce7bSmrg fi 6209d1a7ce7bSmrg 6210d1a7ce7bSmrg CFLAGS="$CFLAGS -fd" 6211d1a7ce7bSmrg 6212433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6213433d0511Smrgprintf %s "checking if $CC supports -fd... " >&6; } 6214d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__fd 6215433d0511Smrg if eval test \${$cacheid+y} 6216433d0511Smrgthen : 6217433d0511Smrg printf %s "(cached) " >&6 6218433d0511Smrgelse case e in #( 6219433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220d1a7ce7bSmrg/* end confdefs.h. */ 6221d1a7ce7bSmrgint i; 6222d1a7ce7bSmrgint 6223433d0511Smrgmain (void) 6224d1a7ce7bSmrg{ 6225d1a7ce7bSmrg 6226d1a7ce7bSmrg ; 6227d1a7ce7bSmrg return 0; 6228d1a7ce7bSmrg} 6229d1a7ce7bSmrg_ACEOF 6230433d0511Smrgif ac_fn_c_try_link "$LINENO" 6231433d0511Smrgthen : 6232d1a7ce7bSmrg eval $cacheid=yes 6233433d0511Smrgelse case e in #( 6234433d0511Smrg e) eval $cacheid=no ;; 6235433d0511Smrgesac 6236d1a7ce7bSmrgfi 6237433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6238433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6239433d0511Smrgesac 6240d1a7ce7bSmrgfi 6241d1a7ce7bSmrg 6242d1a7ce7bSmrg 6243d1a7ce7bSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6244d1a7ce7bSmrg 6245d1a7ce7bSmrg eval supported=\$$cacheid 6246433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6247433d0511Smrgprintf "%s\n" "$supported" >&6; } 6248d1a7ce7bSmrg if test "$supported" = "yes" ; then 6249d1a7ce7bSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 6250d1a7ce7bSmrg found="yes" 6251d1a7ce7bSmrg fi 6252d1a7ce7bSmrg fi 6253d1a7ce7bSmrg 6254cbc4e2beSmrg 6255cbc4e2beSmrg 6256cbc4e2beSmrg 6257cbc4e2beSmrg 6258cbc4e2beSmrg 6259cbc4e2beSmrg 6260cbc4e2beSmrg 6261cbc4e2beSmrg 6262cbc4e2beSmrg 6263cbc4e2beSmrg 6264cbc4e2beSmrg 6265cbc4e2beSmrg 6266cbc4e2beSmrg 6267cbc4e2beSmrg 6268cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6269cbc4e2beSmrg 6270cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6271cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6273433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6274433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6275433d0511Smrgthen : 6276433d0511Smrg printf %s "(cached) " >&6 6277433d0511Smrgelse case e in #( 6278433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279cbc4e2beSmrg/* end confdefs.h. */ 6280cbc4e2beSmrgint i; 6281cbc4e2beSmrg_ACEOF 6282433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6283433d0511Smrgthen : 6284cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6285433d0511Smrgelse case e in #( 6286433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6287433d0511Smrgesac 6288cbc4e2beSmrgfi 6289433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6290433d0511Smrgesac 6291cbc4e2beSmrgfi 6292433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6293433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6294cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6295cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6296cbc4e2beSmrgfi 6297cbc4e2beSmrg 6298cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6299cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6300cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6301cbc4e2beSmrg fi 6302cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6304433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6305433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6306433d0511Smrgthen : 6307433d0511Smrg printf %s "(cached) " >&6 6308433d0511Smrgelse case e in #( 6309433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310cbc4e2beSmrg/* end confdefs.h. */ 6311cbc4e2beSmrgint i; 6312cbc4e2beSmrg_ACEOF 6313433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6314433d0511Smrgthen : 6315cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6316433d0511Smrgelse case e in #( 6317433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6318433d0511Smrgesac 6319cbc4e2beSmrgfi 6320433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6321433d0511Smrgesac 6322cbc4e2beSmrgfi 6323433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6324433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6325cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6326cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6327cbc4e2beSmrgfi 6328cbc4e2beSmrg 6329cbc4e2beSmrgfound="no" 6330cbc4e2beSmrg 6331cbc4e2beSmrg if test $found = "no" ; then 6332d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334cbc4e2beSmrg fi 6335cbc4e2beSmrg 6336d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6337cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6338cbc4e2beSmrg fi 6339cbc4e2beSmrg 6340cbc4e2beSmrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6341cbc4e2beSmrg 6342433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6343433d0511Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6344cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6345433d0511Smrg if eval test \${$cacheid+y} 6346433d0511Smrgthen : 6347433d0511Smrg printf %s "(cached) " >&6 6348433d0511Smrgelse case e in #( 6349433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350cbc4e2beSmrg/* end confdefs.h. */ 6351cbc4e2beSmrgint i; 6352cbc4e2beSmrgint 6353433d0511Smrgmain (void) 6354cbc4e2beSmrg{ 6355cbc4e2beSmrg 6356cbc4e2beSmrg ; 6357cbc4e2beSmrg return 0; 6358cbc4e2beSmrg} 6359cbc4e2beSmrg_ACEOF 6360433d0511Smrgif ac_fn_c_try_link "$LINENO" 6361433d0511Smrgthen : 6362cbc4e2beSmrg eval $cacheid=yes 6363433d0511Smrgelse case e in #( 6364433d0511Smrg e) eval $cacheid=no ;; 6365433d0511Smrgesac 6366cbc4e2beSmrgfi 6367433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6368433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6369433d0511Smrgesac 6370cbc4e2beSmrgfi 6371cbc4e2beSmrg 6372cbc4e2beSmrg 6373cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6374cbc4e2beSmrg 6375cbc4e2beSmrg eval supported=\$$cacheid 6376433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6377433d0511Smrgprintf "%s\n" "$supported" >&6; } 6378cbc4e2beSmrg if test "$supported" = "yes" ; then 6379cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6380cbc4e2beSmrg found="yes" 6381cbc4e2beSmrg fi 6382cbc4e2beSmrg fi 6383cbc4e2beSmrg 6384cbc4e2beSmrg 6385cbc4e2beSmrg 6386cbc4e2beSmrg 6387cbc4e2beSmrg 6388cbc4e2beSmrg# This chunk adds additional warnings that could catch undesired effects. 6389cbc4e2beSmrg 6390cbc4e2beSmrg 6391cbc4e2beSmrg 6392cbc4e2beSmrg 6393cbc4e2beSmrg 6394cbc4e2beSmrg 6395cbc4e2beSmrg 6396cbc4e2beSmrg 6397cbc4e2beSmrg 6398cbc4e2beSmrg 6399cbc4e2beSmrg 6400cbc4e2beSmrg 6401cbc4e2beSmrg 6402cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6403cbc4e2beSmrg 6404cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6405cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6407433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6408433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6409433d0511Smrgthen : 6410433d0511Smrg printf %s "(cached) " >&6 6411433d0511Smrgelse case e in #( 6412433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413cbc4e2beSmrg/* end confdefs.h. */ 6414cbc4e2beSmrgint i; 6415cbc4e2beSmrg_ACEOF 6416433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6417433d0511Smrgthen : 6418cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6419433d0511Smrgelse case e in #( 6420433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6421433d0511Smrgesac 6422cbc4e2beSmrgfi 6423433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6424433d0511Smrgesac 6425cbc4e2beSmrgfi 6426433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6430cbc4e2beSmrgfi 6431cbc4e2beSmrg 6432cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435cbc4e2beSmrg fi 6436cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6440433d0511Smrgthen : 6441433d0511Smrg printf %s "(cached) " >&6 6442433d0511Smrgelse case e in #( 6443433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444cbc4e2beSmrg/* end confdefs.h. */ 6445cbc4e2beSmrgint i; 6446cbc4e2beSmrg_ACEOF 6447433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6448433d0511Smrgthen : 6449cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6450433d0511Smrgelse case e in #( 6451433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6452433d0511Smrgesac 6453cbc4e2beSmrgfi 6454433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6455433d0511Smrgesac 6456cbc4e2beSmrgfi 6457433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6458433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6459cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6460cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6461cbc4e2beSmrgfi 6462cbc4e2beSmrg 6463cbc4e2beSmrgfound="no" 6464cbc4e2beSmrg 6465cbc4e2beSmrg if test $found = "no" ; then 6466d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6467cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6468cbc4e2beSmrg fi 6469cbc4e2beSmrg 6470d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6471cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6472cbc4e2beSmrg fi 6473cbc4e2beSmrg 6474cbc4e2beSmrg CFLAGS="$CFLAGS -Wunused" 6475cbc4e2beSmrg 6476433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6477433d0511Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 6478cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wunused 6479433d0511Smrg if eval test \${$cacheid+y} 6480433d0511Smrgthen : 6481433d0511Smrg printf %s "(cached) " >&6 6482433d0511Smrgelse case e in #( 6483433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484cbc4e2beSmrg/* end confdefs.h. */ 6485cbc4e2beSmrgint i; 6486cbc4e2beSmrgint 6487433d0511Smrgmain (void) 6488cbc4e2beSmrg{ 6489cbc4e2beSmrg 6490cbc4e2beSmrg ; 6491cbc4e2beSmrg return 0; 6492cbc4e2beSmrg} 6493cbc4e2beSmrg_ACEOF 6494433d0511Smrgif ac_fn_c_try_link "$LINENO" 6495433d0511Smrgthen : 6496cbc4e2beSmrg eval $cacheid=yes 6497433d0511Smrgelse case e in #( 6498433d0511Smrg e) eval $cacheid=no ;; 6499433d0511Smrgesac 6500cbc4e2beSmrgfi 6501433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6502433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6503433d0511Smrgesac 6504cbc4e2beSmrgfi 6505cbc4e2beSmrg 6506cbc4e2beSmrg 6507cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6508cbc4e2beSmrg 6509cbc4e2beSmrg eval supported=\$$cacheid 6510433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6511433d0511Smrgprintf "%s\n" "$supported" >&6; } 6512cbc4e2beSmrg if test "$supported" = "yes" ; then 6513cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6514cbc4e2beSmrg found="yes" 6515cbc4e2beSmrg fi 6516cbc4e2beSmrg fi 6517cbc4e2beSmrg 6518cbc4e2beSmrg 6519cbc4e2beSmrg 6520cbc4e2beSmrg 6521cbc4e2beSmrg 6522cbc4e2beSmrg 6523cbc4e2beSmrg 6524cbc4e2beSmrg 6525cbc4e2beSmrg 6526cbc4e2beSmrg 6527cbc4e2beSmrg 6528cbc4e2beSmrg 6529cbc4e2beSmrg 6530cbc4e2beSmrg 6531cbc4e2beSmrg 6532cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6533cbc4e2beSmrg 6534cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6535cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6537433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6538433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6539433d0511Smrgthen : 6540433d0511Smrg printf %s "(cached) " >&6 6541433d0511Smrgelse case e in #( 6542433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543cbc4e2beSmrg/* end confdefs.h. */ 6544cbc4e2beSmrgint i; 6545cbc4e2beSmrg_ACEOF 6546433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6547433d0511Smrgthen : 6548cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6549433d0511Smrgelse case e in #( 6550433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6551433d0511Smrgesac 6552cbc4e2beSmrgfi 6553433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6554433d0511Smrgesac 6555cbc4e2beSmrgfi 6556433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6557433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6558cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6559cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6560cbc4e2beSmrgfi 6561cbc4e2beSmrg 6562cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6563cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565cbc4e2beSmrg fi 6566cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6568433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6569433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6570433d0511Smrgthen : 6571433d0511Smrg printf %s "(cached) " >&6 6572433d0511Smrgelse case e in #( 6573433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574cbc4e2beSmrg/* end confdefs.h. */ 6575cbc4e2beSmrgint i; 6576cbc4e2beSmrg_ACEOF 6577433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6578433d0511Smrgthen : 6579cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6580433d0511Smrgelse case e in #( 6581433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6582433d0511Smrgesac 6583cbc4e2beSmrgfi 6584433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6585433d0511Smrgesac 6586cbc4e2beSmrgfi 6587433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6588433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6589cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6590cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6591cbc4e2beSmrgfi 6592cbc4e2beSmrg 6593cbc4e2beSmrgfound="no" 6594cbc4e2beSmrg 6595cbc4e2beSmrg if test $found = "no" ; then 6596d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598cbc4e2beSmrg fi 6599cbc4e2beSmrg 6600d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6601cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6602cbc4e2beSmrg fi 6603cbc4e2beSmrg 6604cbc4e2beSmrg CFLAGS="$CFLAGS -Wuninitialized" 6605cbc4e2beSmrg 6606433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6607433d0511Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 6608cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wuninitialized 6609433d0511Smrg if eval test \${$cacheid+y} 6610433d0511Smrgthen : 6611433d0511Smrg printf %s "(cached) " >&6 6612433d0511Smrgelse case e in #( 6613433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614cbc4e2beSmrg/* end confdefs.h. */ 6615cbc4e2beSmrgint i; 6616cbc4e2beSmrgint 6617433d0511Smrgmain (void) 6618cbc4e2beSmrg{ 6619cbc4e2beSmrg 6620cbc4e2beSmrg ; 6621cbc4e2beSmrg return 0; 6622cbc4e2beSmrg} 6623cbc4e2beSmrg_ACEOF 6624433d0511Smrgif ac_fn_c_try_link "$LINENO" 6625433d0511Smrgthen : 6626cbc4e2beSmrg eval $cacheid=yes 6627433d0511Smrgelse case e in #( 6628433d0511Smrg e) eval $cacheid=no ;; 6629433d0511Smrgesac 6630cbc4e2beSmrgfi 6631433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6632433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6633433d0511Smrgesac 6634cbc4e2beSmrgfi 6635cbc4e2beSmrg 6636cbc4e2beSmrg 6637cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6638cbc4e2beSmrg 6639cbc4e2beSmrg eval supported=\$$cacheid 6640433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6641433d0511Smrgprintf "%s\n" "$supported" >&6; } 6642cbc4e2beSmrg if test "$supported" = "yes" ; then 6643cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6644cbc4e2beSmrg found="yes" 6645cbc4e2beSmrg fi 6646cbc4e2beSmrg fi 6647cbc4e2beSmrg 6648cbc4e2beSmrg 6649cbc4e2beSmrg 6650cbc4e2beSmrg 6651cbc4e2beSmrg 6652cbc4e2beSmrg 6653cbc4e2beSmrg 6654cbc4e2beSmrg 6655cbc4e2beSmrg 6656cbc4e2beSmrg 6657cbc4e2beSmrg 6658cbc4e2beSmrg 6659cbc4e2beSmrg 6660cbc4e2beSmrg 6661cbc4e2beSmrg 6662cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6663cbc4e2beSmrg 6664cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6665cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6667433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6668433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6669433d0511Smrgthen : 6670433d0511Smrg printf %s "(cached) " >&6 6671433d0511Smrgelse case e in #( 6672433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673cbc4e2beSmrg/* end confdefs.h. */ 6674cbc4e2beSmrgint i; 6675cbc4e2beSmrg_ACEOF 6676433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6677433d0511Smrgthen : 6678cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6679433d0511Smrgelse case e in #( 6680433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6681433d0511Smrgesac 6682cbc4e2beSmrgfi 6683433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6684433d0511Smrgesac 6685cbc4e2beSmrgfi 6686433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6690cbc4e2beSmrgfi 6691cbc4e2beSmrg 6692cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695cbc4e2beSmrg fi 6696cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6700433d0511Smrgthen : 6701433d0511Smrg printf %s "(cached) " >&6 6702433d0511Smrgelse case e in #( 6703433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704cbc4e2beSmrg/* end confdefs.h. */ 6705cbc4e2beSmrgint i; 6706cbc4e2beSmrg_ACEOF 6707433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6708433d0511Smrgthen : 6709cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6710433d0511Smrgelse case e in #( 6711433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6712433d0511Smrgesac 6713cbc4e2beSmrgfi 6714433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6715433d0511Smrgesac 6716cbc4e2beSmrgfi 6717433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6718433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6719cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6720cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6721cbc4e2beSmrgfi 6722cbc4e2beSmrg 6723cbc4e2beSmrgfound="no" 6724cbc4e2beSmrg 6725cbc4e2beSmrg if test $found = "no" ; then 6726d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728cbc4e2beSmrg fi 6729cbc4e2beSmrg 6730d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6731cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6732cbc4e2beSmrg fi 6733cbc4e2beSmrg 6734cbc4e2beSmrg CFLAGS="$CFLAGS -Wshadow" 6735cbc4e2beSmrg 6736433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6737433d0511Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 6738cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wshadow 6739433d0511Smrg if eval test \${$cacheid+y} 6740433d0511Smrgthen : 6741433d0511Smrg printf %s "(cached) " >&6 6742433d0511Smrgelse case e in #( 6743433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744cbc4e2beSmrg/* end confdefs.h. */ 6745cbc4e2beSmrgint i; 6746cbc4e2beSmrgint 6747433d0511Smrgmain (void) 6748cbc4e2beSmrg{ 6749cbc4e2beSmrg 6750cbc4e2beSmrg ; 6751cbc4e2beSmrg return 0; 6752cbc4e2beSmrg} 6753cbc4e2beSmrg_ACEOF 6754433d0511Smrgif ac_fn_c_try_link "$LINENO" 6755433d0511Smrgthen : 6756cbc4e2beSmrg eval $cacheid=yes 6757433d0511Smrgelse case e in #( 6758433d0511Smrg e) eval $cacheid=no ;; 6759433d0511Smrgesac 6760cbc4e2beSmrgfi 6761433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6762433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6763433d0511Smrgesac 6764cbc4e2beSmrgfi 6765cbc4e2beSmrg 6766cbc4e2beSmrg 6767cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6768cbc4e2beSmrg 6769cbc4e2beSmrg eval supported=\$$cacheid 6770433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771433d0511Smrgprintf "%s\n" "$supported" >&6; } 6772cbc4e2beSmrg if test "$supported" = "yes" ; then 6773cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6774cbc4e2beSmrg found="yes" 6775cbc4e2beSmrg fi 6776cbc4e2beSmrg fi 6777cbc4e2beSmrg 6778cbc4e2beSmrg 6779cbc4e2beSmrg 6780cbc4e2beSmrg 6781cbc4e2beSmrg 6782cbc4e2beSmrg 6783cbc4e2beSmrg 6784cbc4e2beSmrg 6785cbc4e2beSmrg 6786cbc4e2beSmrg 6787cbc4e2beSmrg 6788cbc4e2beSmrg 6789cbc4e2beSmrg 6790cbc4e2beSmrg 6791cbc4e2beSmrg 6792cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6793cbc4e2beSmrg 6794cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6799433d0511Smrgthen : 6800433d0511Smrg printf %s "(cached) " >&6 6801433d0511Smrgelse case e in #( 6802433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803cbc4e2beSmrg/* end confdefs.h. */ 6804cbc4e2beSmrgint i; 6805cbc4e2beSmrg_ACEOF 6806433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6807433d0511Smrgthen : 6808cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6809433d0511Smrgelse case e in #( 6810433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6811433d0511Smrgesac 6812cbc4e2beSmrgfi 6813433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6814433d0511Smrgesac 6815cbc4e2beSmrgfi 6816433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6817433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6818cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6819cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6820cbc4e2beSmrgfi 6821cbc4e2beSmrg 6822cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6823cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6824cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825cbc4e2beSmrg fi 6826cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6828433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6829433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6830433d0511Smrgthen : 6831433d0511Smrg printf %s "(cached) " >&6 6832433d0511Smrgelse case e in #( 6833433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834cbc4e2beSmrg/* end confdefs.h. */ 6835cbc4e2beSmrgint i; 6836cbc4e2beSmrg_ACEOF 6837433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6838433d0511Smrgthen : 6839cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6840433d0511Smrgelse case e in #( 6841433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6842433d0511Smrgesac 6843cbc4e2beSmrgfi 6844433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6845433d0511Smrgesac 6846cbc4e2beSmrgfi 6847433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6848433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6849cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6851cbc4e2beSmrgfi 6852cbc4e2beSmrg 6853cbc4e2beSmrgfound="no" 6854cbc4e2beSmrg 6855cbc4e2beSmrg if test $found = "no" ; then 6856d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858cbc4e2beSmrg fi 6859cbc4e2beSmrg 6860d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862cbc4e2beSmrg fi 6863cbc4e2beSmrg 6864d1a7ce7bSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6865cbc4e2beSmrg 6866433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6867433d0511Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6868d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6869433d0511Smrg if eval test \${$cacheid+y} 6870433d0511Smrgthen : 6871433d0511Smrg printf %s "(cached) " >&6 6872433d0511Smrgelse case e in #( 6873433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874cbc4e2beSmrg/* end confdefs.h. */ 6875cbc4e2beSmrgint i; 6876cbc4e2beSmrgint 6877433d0511Smrgmain (void) 6878cbc4e2beSmrg{ 6879cbc4e2beSmrg 6880cbc4e2beSmrg ; 6881cbc4e2beSmrg return 0; 6882cbc4e2beSmrg} 6883cbc4e2beSmrg_ACEOF 6884433d0511Smrgif ac_fn_c_try_link "$LINENO" 6885433d0511Smrgthen : 6886cbc4e2beSmrg eval $cacheid=yes 6887433d0511Smrgelse case e in #( 6888433d0511Smrg e) eval $cacheid=no ;; 6889433d0511Smrgesac 6890cbc4e2beSmrgfi 6891433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6892433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 6893433d0511Smrgesac 6894cbc4e2beSmrgfi 6895cbc4e2beSmrg 6896cbc4e2beSmrg 6897cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6898cbc4e2beSmrg 6899cbc4e2beSmrg eval supported=\$$cacheid 6900433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6901433d0511Smrgprintf "%s\n" "$supported" >&6; } 6902cbc4e2beSmrg if test "$supported" = "yes" ; then 6903d1a7ce7bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6904cbc4e2beSmrg found="yes" 6905cbc4e2beSmrg fi 6906cbc4e2beSmrg fi 6907cbc4e2beSmrg 6908cbc4e2beSmrg 6909cbc4e2beSmrg 6910cbc4e2beSmrg 6911cbc4e2beSmrg 6912cbc4e2beSmrg 6913cbc4e2beSmrg 6914cbc4e2beSmrg 6915cbc4e2beSmrg 6916cbc4e2beSmrg 6917cbc4e2beSmrg 6918cbc4e2beSmrg 6919cbc4e2beSmrg 6920cbc4e2beSmrg 6921cbc4e2beSmrg 6922cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 6923cbc4e2beSmrg 6924cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6925cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6927433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6928433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6929433d0511Smrgthen : 6930433d0511Smrg printf %s "(cached) " >&6 6931433d0511Smrgelse case e in #( 6932433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933cbc4e2beSmrg/* end confdefs.h. */ 6934cbc4e2beSmrgint i; 6935cbc4e2beSmrg_ACEOF 6936433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6937433d0511Smrgthen : 6938cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6939433d0511Smrgelse case e in #( 6940433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6941433d0511Smrgesac 6942cbc4e2beSmrgfi 6943433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6944433d0511Smrgesac 6945cbc4e2beSmrgfi 6946433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6947433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6948cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6949cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6950cbc4e2beSmrgfi 6951cbc4e2beSmrg 6952cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6953cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6954cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955cbc4e2beSmrg fi 6956cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6958433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6959433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6960433d0511Smrgthen : 6961433d0511Smrg printf %s "(cached) " >&6 6962433d0511Smrgelse case e in #( 6963433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964cbc4e2beSmrg/* end confdefs.h. */ 6965cbc4e2beSmrgint i; 6966cbc4e2beSmrg_ACEOF 6967433d0511Smrgif ac_fn_c_try_compile "$LINENO" 6968433d0511Smrgthen : 6969cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6970433d0511Smrgelse case e in #( 6971433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6972433d0511Smrgesac 6973cbc4e2beSmrgfi 6974433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6975433d0511Smrgesac 6976cbc4e2beSmrgfi 6977433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6978433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6979cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6980cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6981cbc4e2beSmrgfi 6982cbc4e2beSmrg 6983cbc4e2beSmrgfound="no" 6984cbc4e2beSmrg 6985cbc4e2beSmrg if test $found = "no" ; then 6986d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6987cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988cbc4e2beSmrg fi 6989cbc4e2beSmrg 6990d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6991cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6992cbc4e2beSmrg fi 6993cbc4e2beSmrg 6994d1a7ce7bSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6995cbc4e2beSmrg 6996433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6997433d0511Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6998d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6999433d0511Smrg if eval test \${$cacheid+y} 7000433d0511Smrgthen : 7001433d0511Smrg printf %s "(cached) " >&6 7002433d0511Smrgelse case e in #( 7003433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004cbc4e2beSmrg/* end confdefs.h. */ 7005cbc4e2beSmrgint i; 7006cbc4e2beSmrgint 7007433d0511Smrgmain (void) 7008cbc4e2beSmrg{ 7009cbc4e2beSmrg 7010cbc4e2beSmrg ; 7011cbc4e2beSmrg return 0; 7012cbc4e2beSmrg} 7013cbc4e2beSmrg_ACEOF 7014433d0511Smrgif ac_fn_c_try_link "$LINENO" 7015433d0511Smrgthen : 7016cbc4e2beSmrg eval $cacheid=yes 7017433d0511Smrgelse case e in #( 7018433d0511Smrg e) eval $cacheid=no ;; 7019433d0511Smrgesac 7020cbc4e2beSmrgfi 7021433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7022433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7023433d0511Smrgesac 7024cbc4e2beSmrgfi 7025cbc4e2beSmrg 7026cbc4e2beSmrg 7027cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7028cbc4e2beSmrg 7029cbc4e2beSmrg eval supported=\$$cacheid 7030433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7031433d0511Smrgprintf "%s\n" "$supported" >&6; } 7032cbc4e2beSmrg if test "$supported" = "yes" ; then 7033d1a7ce7bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7034cbc4e2beSmrg found="yes" 7035cbc4e2beSmrg fi 7036cbc4e2beSmrg fi 7037cbc4e2beSmrg 7038cbc4e2beSmrg 7039cbc4e2beSmrg 7040cbc4e2beSmrg 7041cbc4e2beSmrg 7042cbc4e2beSmrg 7043cbc4e2beSmrg 7044cbc4e2beSmrg 7045cbc4e2beSmrg 7046cbc4e2beSmrg 7047cbc4e2beSmrg 7048cbc4e2beSmrg 7049cbc4e2beSmrg 7050cbc4e2beSmrg 7051cbc4e2beSmrg 7052cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7053cbc4e2beSmrg 7054cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7055cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7056433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7057433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7058433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7059433d0511Smrgthen : 7060433d0511Smrg printf %s "(cached) " >&6 7061433d0511Smrgelse case e in #( 7062433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063cbc4e2beSmrg/* end confdefs.h. */ 7064cbc4e2beSmrgint i; 7065cbc4e2beSmrg_ACEOF 7066433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7067433d0511Smrgthen : 7068cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7069433d0511Smrgelse case e in #( 7070433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7071433d0511Smrgesac 7072cbc4e2beSmrgfi 7073433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7074433d0511Smrgesac 7075cbc4e2beSmrgfi 7076433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7077433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7078cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7079cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7080cbc4e2beSmrgfi 7081cbc4e2beSmrg 7082cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7083cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7084cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085cbc4e2beSmrg fi 7086cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7088433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7089433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7090433d0511Smrgthen : 7091433d0511Smrg printf %s "(cached) " >&6 7092433d0511Smrgelse case e in #( 7093433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094cbc4e2beSmrg/* end confdefs.h. */ 7095cbc4e2beSmrgint i; 7096cbc4e2beSmrg_ACEOF 7097433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7098433d0511Smrgthen : 7099cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7100433d0511Smrgelse case e in #( 7101433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7102433d0511Smrgesac 7103cbc4e2beSmrgfi 7104433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7105433d0511Smrgesac 7106cbc4e2beSmrgfi 7107433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7111cbc4e2beSmrgfi 7112cbc4e2beSmrg 7113cbc4e2beSmrgfound="no" 7114cbc4e2beSmrg 7115cbc4e2beSmrg if test $found = "no" ; then 7116d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118cbc4e2beSmrg fi 7119cbc4e2beSmrg 7120d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122cbc4e2beSmrg fi 7123cbc4e2beSmrg 7124d1a7ce7bSmrg CFLAGS="$CFLAGS -Wredundant-decls" 7125cbc4e2beSmrg 7126433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7127433d0511Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7128d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 7129433d0511Smrg if eval test \${$cacheid+y} 7130433d0511Smrgthen : 7131433d0511Smrg printf %s "(cached) " >&6 7132433d0511Smrgelse case e in #( 7133433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134cbc4e2beSmrg/* end confdefs.h. */ 7135cbc4e2beSmrgint i; 7136cbc4e2beSmrgint 7137433d0511Smrgmain (void) 7138cbc4e2beSmrg{ 7139cbc4e2beSmrg 7140cbc4e2beSmrg ; 7141cbc4e2beSmrg return 0; 7142cbc4e2beSmrg} 7143cbc4e2beSmrg_ACEOF 7144433d0511Smrgif ac_fn_c_try_link "$LINENO" 7145433d0511Smrgthen : 7146cbc4e2beSmrg eval $cacheid=yes 7147433d0511Smrgelse case e in #( 7148433d0511Smrg e) eval $cacheid=no ;; 7149433d0511Smrgesac 7150cbc4e2beSmrgfi 7151433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7152433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7153433d0511Smrgesac 7154cbc4e2beSmrgfi 7155cbc4e2beSmrg 7156cbc4e2beSmrg 7157cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7158cbc4e2beSmrg 7159cbc4e2beSmrg eval supported=\$$cacheid 7160433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7161433d0511Smrgprintf "%s\n" "$supported" >&6; } 7162cbc4e2beSmrg if test "$supported" = "yes" ; then 7163d1a7ce7bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7164cbc4e2beSmrg found="yes" 7165cbc4e2beSmrg fi 7166cbc4e2beSmrg fi 7167cbc4e2beSmrg 7168cbc4e2beSmrg 7169cbc4e2beSmrg 7170cbc4e2beSmrg 7171cbc4e2beSmrg 7172cbc4e2beSmrg 7173cbc4e2beSmrg 7174cbc4e2beSmrg 7175cbc4e2beSmrg 7176cbc4e2beSmrg 7177cbc4e2beSmrg 7178cbc4e2beSmrg 7179cbc4e2beSmrg 7180cbc4e2beSmrg 7181cbc4e2beSmrg 7182cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7183cbc4e2beSmrg 7184cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7185cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7186433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7187433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7188433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7189433d0511Smrgthen : 7190433d0511Smrg printf %s "(cached) " >&6 7191433d0511Smrgelse case e in #( 7192433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193cbc4e2beSmrg/* end confdefs.h. */ 7194cbc4e2beSmrgint i; 7195cbc4e2beSmrg_ACEOF 7196433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7197433d0511Smrgthen : 7198cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7199433d0511Smrgelse case e in #( 7200433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7201433d0511Smrgesac 7202cbc4e2beSmrgfi 7203433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7204433d0511Smrgesac 7205cbc4e2beSmrgfi 7206433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7207433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7208cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7209cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7210cbc4e2beSmrgfi 7211cbc4e2beSmrg 7212cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7213cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7214cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215cbc4e2beSmrg fi 7216cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7218433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7219433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7220433d0511Smrgthen : 7221433d0511Smrg printf %s "(cached) " >&6 7222433d0511Smrgelse case e in #( 7223433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224cbc4e2beSmrg/* end confdefs.h. */ 7225cbc4e2beSmrgint i; 7226cbc4e2beSmrg_ACEOF 7227433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7228433d0511Smrgthen : 7229cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7230433d0511Smrgelse case e in #( 7231433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7232433d0511Smrgesac 7233cbc4e2beSmrgfi 7234433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7235433d0511Smrgesac 7236cbc4e2beSmrgfi 7237433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7238433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7239cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7240cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7241cbc4e2beSmrgfi 7242cbc4e2beSmrg 7243cbc4e2beSmrgfound="no" 7244cbc4e2beSmrg 7245cbc4e2beSmrg if test $found = "no" ; then 7246d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7247cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7248cbc4e2beSmrg fi 7249cbc4e2beSmrg 7250d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7251cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7252cbc4e2beSmrg fi 7253cbc4e2beSmrg 7254d1a7ce7bSmrg CFLAGS="$CFLAGS -Wlogical-op" 7255cbc4e2beSmrg 7256433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7257433d0511Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 7258d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 7259433d0511Smrg if eval test \${$cacheid+y} 7260433d0511Smrgthen : 7261433d0511Smrg printf %s "(cached) " >&6 7262433d0511Smrgelse case e in #( 7263433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264cbc4e2beSmrg/* end confdefs.h. */ 7265cbc4e2beSmrgint i; 7266cbc4e2beSmrgint 7267433d0511Smrgmain (void) 7268cbc4e2beSmrg{ 7269cbc4e2beSmrg 7270cbc4e2beSmrg ; 7271cbc4e2beSmrg return 0; 7272cbc4e2beSmrg} 7273cbc4e2beSmrg_ACEOF 7274433d0511Smrgif ac_fn_c_try_link "$LINENO" 7275433d0511Smrgthen : 7276cbc4e2beSmrg eval $cacheid=yes 7277433d0511Smrgelse case e in #( 7278433d0511Smrg e) eval $cacheid=no ;; 7279433d0511Smrgesac 7280cbc4e2beSmrgfi 7281433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7282433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7283433d0511Smrgesac 7284cbc4e2beSmrgfi 7285cbc4e2beSmrg 7286cbc4e2beSmrg 7287cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7288cbc4e2beSmrg 7289cbc4e2beSmrg eval supported=\$$cacheid 7290433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7291433d0511Smrgprintf "%s\n" "$supported" >&6; } 7292cbc4e2beSmrg if test "$supported" = "yes" ; then 7293d1a7ce7bSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7294cbc4e2beSmrg found="yes" 7295cbc4e2beSmrg fi 7296cbc4e2beSmrg fi 7297cbc4e2beSmrg 7298cbc4e2beSmrg 7299cbc4e2beSmrg 7300cbc4e2beSmrg# These are currently disabled because they are noisy. They will be enabled 7301cbc4e2beSmrg# in the future once the codebase is sufficiently modernized to silence 7302cbc4e2beSmrg# them. For now, I don't want them to drown out the other warnings. 7303cbc4e2beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7304cbc4e2beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7305d1a7ce7bSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7306cbc4e2beSmrg 7307433d0511Smrg# Turn some warnings into errors, so we don't accidentally get successful builds 7308cbc4e2beSmrg# when there are problems that should be fixed. 7309cbc4e2beSmrg 7310cbc4e2beSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 7311cbc4e2beSmrg 7312cbc4e2beSmrg 7313cbc4e2beSmrg 7314cbc4e2beSmrg 7315cbc4e2beSmrg 7316cbc4e2beSmrg 7317cbc4e2beSmrg 7318cbc4e2beSmrg 7319cbc4e2beSmrg 7320cbc4e2beSmrg 7321cbc4e2beSmrg 7322cbc4e2beSmrg 7323cbc4e2beSmrg 7324cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7325cbc4e2beSmrg 7326cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7327cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7328433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7329433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7330433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7331433d0511Smrgthen : 7332433d0511Smrg printf %s "(cached) " >&6 7333433d0511Smrgelse case e in #( 7334433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335cbc4e2beSmrg/* end confdefs.h. */ 7336cbc4e2beSmrgint i; 7337cbc4e2beSmrg_ACEOF 7338433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7339433d0511Smrgthen : 7340cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7341433d0511Smrgelse case e in #( 7342433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7343433d0511Smrgesac 7344cbc4e2beSmrgfi 7345433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7346433d0511Smrgesac 7347cbc4e2beSmrgfi 7348433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7349433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7350cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7351cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7352cbc4e2beSmrgfi 7353cbc4e2beSmrg 7354cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7355cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7356cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357cbc4e2beSmrg fi 7358cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7359433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7360433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7361433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7362433d0511Smrgthen : 7363433d0511Smrg printf %s "(cached) " >&6 7364433d0511Smrgelse case e in #( 7365433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366cbc4e2beSmrg/* end confdefs.h. */ 7367cbc4e2beSmrgint i; 7368cbc4e2beSmrg_ACEOF 7369433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7370433d0511Smrgthen : 7371cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7372433d0511Smrgelse case e in #( 7373433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7374433d0511Smrgesac 7375cbc4e2beSmrgfi 7376433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7377433d0511Smrgesac 7378cbc4e2beSmrgfi 7379433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7380433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7381cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7382cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7383cbc4e2beSmrgfi 7384cbc4e2beSmrg 7385cbc4e2beSmrgfound="no" 7386cbc4e2beSmrg 7387cbc4e2beSmrg if test $found = "no" ; then 7388d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7389cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390cbc4e2beSmrg fi 7391cbc4e2beSmrg 7392d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7393cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7394cbc4e2beSmrg fi 7395cbc4e2beSmrg 7396cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=implicit" 7397cbc4e2beSmrg 7398433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7399433d0511Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 7400d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 7401433d0511Smrg if eval test \${$cacheid+y} 7402433d0511Smrgthen : 7403433d0511Smrg printf %s "(cached) " >&6 7404433d0511Smrgelse case e in #( 7405433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406cbc4e2beSmrg/* end confdefs.h. */ 7407cbc4e2beSmrgint i; 7408cbc4e2beSmrgint 7409433d0511Smrgmain (void) 7410cbc4e2beSmrg{ 7411cbc4e2beSmrg 7412cbc4e2beSmrg ; 7413cbc4e2beSmrg return 0; 7414cbc4e2beSmrg} 7415cbc4e2beSmrg_ACEOF 7416433d0511Smrgif ac_fn_c_try_link "$LINENO" 7417433d0511Smrgthen : 7418cbc4e2beSmrg eval $cacheid=yes 7419433d0511Smrgelse case e in #( 7420433d0511Smrg e) eval $cacheid=no ;; 7421433d0511Smrgesac 7422cbc4e2beSmrgfi 7423433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7424433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7425433d0511Smrgesac 7426cbc4e2beSmrgfi 7427cbc4e2beSmrg 7428cbc4e2beSmrg 7429cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7430cbc4e2beSmrg 7431cbc4e2beSmrg eval supported=\$$cacheid 7432433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7433433d0511Smrgprintf "%s\n" "$supported" >&6; } 7434cbc4e2beSmrg if test "$supported" = "yes" ; then 7435cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7436cbc4e2beSmrg found="yes" 7437cbc4e2beSmrg fi 7438cbc4e2beSmrg fi 7439cbc4e2beSmrg 7440cbc4e2beSmrg if test $found = "no" ; then 7441d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7442cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443cbc4e2beSmrg fi 7444cbc4e2beSmrg 7445d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7446cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447cbc4e2beSmrg fi 7448cbc4e2beSmrg 7449cbc4e2beSmrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7450cbc4e2beSmrg 7451433d0511Smrg { 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 7452433d0511Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7453d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7454433d0511Smrg if eval test \${$cacheid+y} 7455433d0511Smrgthen : 7456433d0511Smrg printf %s "(cached) " >&6 7457433d0511Smrgelse case e in #( 7458433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459cbc4e2beSmrg/* end confdefs.h. */ 7460cbc4e2beSmrgint i; 7461cbc4e2beSmrgint 7462433d0511Smrgmain (void) 7463cbc4e2beSmrg{ 7464cbc4e2beSmrg 7465cbc4e2beSmrg ; 7466cbc4e2beSmrg return 0; 7467cbc4e2beSmrg} 7468cbc4e2beSmrg_ACEOF 7469433d0511Smrgif ac_fn_c_try_link "$LINENO" 7470433d0511Smrgthen : 7471cbc4e2beSmrg eval $cacheid=yes 7472433d0511Smrgelse case e in #( 7473433d0511Smrg e) eval $cacheid=no ;; 7474433d0511Smrgesac 7475cbc4e2beSmrgfi 7476433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7477433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7478433d0511Smrgesac 7479cbc4e2beSmrgfi 7480cbc4e2beSmrg 7481cbc4e2beSmrg 7482cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7483cbc4e2beSmrg 7484cbc4e2beSmrg eval supported=\$$cacheid 7485433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7486433d0511Smrgprintf "%s\n" "$supported" >&6; } 7487cbc4e2beSmrg if test "$supported" = "yes" ; then 7488cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7489cbc4e2beSmrg found="yes" 7490cbc4e2beSmrg fi 7491cbc4e2beSmrg fi 7492cbc4e2beSmrg 7493cbc4e2beSmrg 7494cbc4e2beSmrg 7495cbc4e2beSmrg 7496cbc4e2beSmrg 7497cbc4e2beSmrg 7498cbc4e2beSmrg 7499cbc4e2beSmrg 7500cbc4e2beSmrg 7501cbc4e2beSmrg 7502cbc4e2beSmrg 7503cbc4e2beSmrg 7504cbc4e2beSmrg 7505cbc4e2beSmrg 7506cbc4e2beSmrg 7507cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7508cbc4e2beSmrg 7509cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7510cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7512433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7513433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7514433d0511Smrgthen : 7515433d0511Smrg printf %s "(cached) " >&6 7516433d0511Smrgelse case e in #( 7517433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518cbc4e2beSmrg/* end confdefs.h. */ 7519cbc4e2beSmrgint i; 7520cbc4e2beSmrg_ACEOF 7521433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7522433d0511Smrgthen : 7523cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7524433d0511Smrgelse case e in #( 7525433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7526433d0511Smrgesac 7527cbc4e2beSmrgfi 7528433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7529433d0511Smrgesac 7530cbc4e2beSmrgfi 7531433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7532433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7533cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7534cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7535cbc4e2beSmrgfi 7536cbc4e2beSmrg 7537cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7538cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7539cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540cbc4e2beSmrg fi 7541cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7542433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7543433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7544433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7545433d0511Smrgthen : 7546433d0511Smrg printf %s "(cached) " >&6 7547433d0511Smrgelse case e in #( 7548433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549cbc4e2beSmrg/* end confdefs.h. */ 7550cbc4e2beSmrgint i; 7551cbc4e2beSmrg_ACEOF 7552433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7553433d0511Smrgthen : 7554cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7555433d0511Smrgelse case e in #( 7556433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7557433d0511Smrgesac 7558cbc4e2beSmrgfi 7559433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7560433d0511Smrgesac 7561cbc4e2beSmrgfi 7562433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7563433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7564cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7565cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7566cbc4e2beSmrgfi 7567cbc4e2beSmrg 7568cbc4e2beSmrgfound="no" 7569cbc4e2beSmrg 7570cbc4e2beSmrg if test $found = "no" ; then 7571d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7572cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7573cbc4e2beSmrg fi 7574cbc4e2beSmrg 7575d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7576cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577cbc4e2beSmrg fi 7578cbc4e2beSmrg 7579cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=nonnull" 7580cbc4e2beSmrg 7581433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7582433d0511Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7583d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7584433d0511Smrg if eval test \${$cacheid+y} 7585433d0511Smrgthen : 7586433d0511Smrg printf %s "(cached) " >&6 7587433d0511Smrgelse case e in #( 7588433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589cbc4e2beSmrg/* end confdefs.h. */ 7590cbc4e2beSmrgint i; 7591cbc4e2beSmrgint 7592433d0511Smrgmain (void) 7593cbc4e2beSmrg{ 7594cbc4e2beSmrg 7595cbc4e2beSmrg ; 7596cbc4e2beSmrg return 0; 7597cbc4e2beSmrg} 7598cbc4e2beSmrg_ACEOF 7599433d0511Smrgif ac_fn_c_try_link "$LINENO" 7600433d0511Smrgthen : 7601cbc4e2beSmrg eval $cacheid=yes 7602433d0511Smrgelse case e in #( 7603433d0511Smrg e) eval $cacheid=no ;; 7604433d0511Smrgesac 7605cbc4e2beSmrgfi 7606433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7607433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7608433d0511Smrgesac 7609cbc4e2beSmrgfi 7610cbc4e2beSmrg 7611cbc4e2beSmrg 7612cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7613cbc4e2beSmrg 7614cbc4e2beSmrg eval supported=\$$cacheid 7615433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7616433d0511Smrgprintf "%s\n" "$supported" >&6; } 7617cbc4e2beSmrg if test "$supported" = "yes" ; then 7618cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7619cbc4e2beSmrg found="yes" 7620cbc4e2beSmrg fi 7621cbc4e2beSmrg fi 7622cbc4e2beSmrg 7623cbc4e2beSmrg 7624cbc4e2beSmrg 7625cbc4e2beSmrg 7626cbc4e2beSmrg 7627cbc4e2beSmrg 7628cbc4e2beSmrg 7629cbc4e2beSmrg 7630cbc4e2beSmrg 7631cbc4e2beSmrg 7632cbc4e2beSmrg 7633cbc4e2beSmrg 7634cbc4e2beSmrg 7635cbc4e2beSmrg 7636cbc4e2beSmrg 7637cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7638cbc4e2beSmrg 7639cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7640cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7641433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7642433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7643433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7644433d0511Smrgthen : 7645433d0511Smrg printf %s "(cached) " >&6 7646433d0511Smrgelse case e in #( 7647433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648cbc4e2beSmrg/* end confdefs.h. */ 7649cbc4e2beSmrgint i; 7650cbc4e2beSmrg_ACEOF 7651433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7652433d0511Smrgthen : 7653cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7654433d0511Smrgelse case e in #( 7655433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7656433d0511Smrgesac 7657cbc4e2beSmrgfi 7658433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7659433d0511Smrgesac 7660cbc4e2beSmrgfi 7661433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7662433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7663cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7664cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7665cbc4e2beSmrgfi 7666cbc4e2beSmrg 7667cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7668cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7669cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7670cbc4e2beSmrg fi 7671cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7673433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7674433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7675433d0511Smrgthen : 7676433d0511Smrg printf %s "(cached) " >&6 7677433d0511Smrgelse case e in #( 7678433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679cbc4e2beSmrg/* end confdefs.h. */ 7680cbc4e2beSmrgint i; 7681cbc4e2beSmrg_ACEOF 7682433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7683433d0511Smrgthen : 7684cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7685433d0511Smrgelse case e in #( 7686433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7687433d0511Smrgesac 7688cbc4e2beSmrgfi 7689433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7690433d0511Smrgesac 7691cbc4e2beSmrgfi 7692433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7693433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7694cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7695cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7696cbc4e2beSmrgfi 7697cbc4e2beSmrg 7698cbc4e2beSmrgfound="no" 7699cbc4e2beSmrg 7700cbc4e2beSmrg if test $found = "no" ; then 7701d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7702cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703cbc4e2beSmrg fi 7704cbc4e2beSmrg 7705d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7706cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7707cbc4e2beSmrg fi 7708cbc4e2beSmrg 7709cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=init-self" 7710cbc4e2beSmrg 7711433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7712433d0511Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 7713d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 7714433d0511Smrg if eval test \${$cacheid+y} 7715433d0511Smrgthen : 7716433d0511Smrg printf %s "(cached) " >&6 7717433d0511Smrgelse case e in #( 7718433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719cbc4e2beSmrg/* end confdefs.h. */ 7720cbc4e2beSmrgint i; 7721cbc4e2beSmrgint 7722433d0511Smrgmain (void) 7723cbc4e2beSmrg{ 7724cbc4e2beSmrg 7725cbc4e2beSmrg ; 7726cbc4e2beSmrg return 0; 7727cbc4e2beSmrg} 7728cbc4e2beSmrg_ACEOF 7729433d0511Smrgif ac_fn_c_try_link "$LINENO" 7730433d0511Smrgthen : 7731cbc4e2beSmrg eval $cacheid=yes 7732433d0511Smrgelse case e in #( 7733433d0511Smrg e) eval $cacheid=no ;; 7734433d0511Smrgesac 7735cbc4e2beSmrgfi 7736433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7737433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7738433d0511Smrgesac 7739cbc4e2beSmrgfi 7740cbc4e2beSmrg 7741cbc4e2beSmrg 7742cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7743cbc4e2beSmrg 7744cbc4e2beSmrg eval supported=\$$cacheid 7745433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7746433d0511Smrgprintf "%s\n" "$supported" >&6; } 7747cbc4e2beSmrg if test "$supported" = "yes" ; then 7748cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7749cbc4e2beSmrg found="yes" 7750cbc4e2beSmrg fi 7751cbc4e2beSmrg fi 7752cbc4e2beSmrg 7753cbc4e2beSmrg 7754cbc4e2beSmrg 7755cbc4e2beSmrg 7756cbc4e2beSmrg 7757cbc4e2beSmrg 7758cbc4e2beSmrg 7759cbc4e2beSmrg 7760cbc4e2beSmrg 7761cbc4e2beSmrg 7762cbc4e2beSmrg 7763cbc4e2beSmrg 7764cbc4e2beSmrg 7765cbc4e2beSmrg 7766cbc4e2beSmrg 7767cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7768cbc4e2beSmrg 7769cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7770cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7772433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7773433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7774433d0511Smrgthen : 7775433d0511Smrg printf %s "(cached) " >&6 7776433d0511Smrgelse case e in #( 7777433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778cbc4e2beSmrg/* end confdefs.h. */ 7779cbc4e2beSmrgint i; 7780cbc4e2beSmrg_ACEOF 7781433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7782433d0511Smrgthen : 7783cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7784433d0511Smrgelse case e in #( 7785433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7786433d0511Smrgesac 7787cbc4e2beSmrgfi 7788433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7789433d0511Smrgesac 7790cbc4e2beSmrgfi 7791433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7792433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7793cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7794cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7795cbc4e2beSmrgfi 7796cbc4e2beSmrg 7797cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7798cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800cbc4e2beSmrg fi 7801cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7802433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7803433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7804433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7805433d0511Smrgthen : 7806433d0511Smrg printf %s "(cached) " >&6 7807433d0511Smrgelse case e in #( 7808433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809cbc4e2beSmrg/* end confdefs.h. */ 7810cbc4e2beSmrgint i; 7811cbc4e2beSmrg_ACEOF 7812433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7813433d0511Smrgthen : 7814cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7815433d0511Smrgelse case e in #( 7816433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7817433d0511Smrgesac 7818cbc4e2beSmrgfi 7819433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7820433d0511Smrgesac 7821cbc4e2beSmrgfi 7822433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7826cbc4e2beSmrgfi 7827cbc4e2beSmrg 7828cbc4e2beSmrgfound="no" 7829cbc4e2beSmrg 7830cbc4e2beSmrg if test $found = "no" ; then 7831d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833cbc4e2beSmrg fi 7834cbc4e2beSmrg 7835d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837cbc4e2beSmrg fi 7838cbc4e2beSmrg 7839cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=main" 7840cbc4e2beSmrg 7841433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7842433d0511Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 7843d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_main 7844433d0511Smrg if eval test \${$cacheid+y} 7845433d0511Smrgthen : 7846433d0511Smrg printf %s "(cached) " >&6 7847433d0511Smrgelse case e in #( 7848433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849cbc4e2beSmrg/* end confdefs.h. */ 7850cbc4e2beSmrgint i; 7851cbc4e2beSmrgint 7852433d0511Smrgmain (void) 7853cbc4e2beSmrg{ 7854cbc4e2beSmrg 7855cbc4e2beSmrg ; 7856cbc4e2beSmrg return 0; 7857cbc4e2beSmrg} 7858cbc4e2beSmrg_ACEOF 7859433d0511Smrgif ac_fn_c_try_link "$LINENO" 7860433d0511Smrgthen : 7861cbc4e2beSmrg eval $cacheid=yes 7862433d0511Smrgelse case e in #( 7863433d0511Smrg e) eval $cacheid=no ;; 7864433d0511Smrgesac 7865cbc4e2beSmrgfi 7866433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7867433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7868433d0511Smrgesac 7869cbc4e2beSmrgfi 7870cbc4e2beSmrg 7871cbc4e2beSmrg 7872cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7873cbc4e2beSmrg 7874cbc4e2beSmrg eval supported=\$$cacheid 7875433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7876433d0511Smrgprintf "%s\n" "$supported" >&6; } 7877cbc4e2beSmrg if test "$supported" = "yes" ; then 7878cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7879cbc4e2beSmrg found="yes" 7880cbc4e2beSmrg fi 7881cbc4e2beSmrg fi 7882cbc4e2beSmrg 7883cbc4e2beSmrg 7884cbc4e2beSmrg 7885cbc4e2beSmrg 7886cbc4e2beSmrg 7887cbc4e2beSmrg 7888cbc4e2beSmrg 7889cbc4e2beSmrg 7890cbc4e2beSmrg 7891cbc4e2beSmrg 7892cbc4e2beSmrg 7893cbc4e2beSmrg 7894cbc4e2beSmrg 7895cbc4e2beSmrg 7896cbc4e2beSmrg 7897cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 7898cbc4e2beSmrg 7899cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7900cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7901433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7902433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7903433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7904433d0511Smrgthen : 7905433d0511Smrg printf %s "(cached) " >&6 7906433d0511Smrgelse case e in #( 7907433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908cbc4e2beSmrg/* end confdefs.h. */ 7909cbc4e2beSmrgint i; 7910cbc4e2beSmrg_ACEOF 7911433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7912433d0511Smrgthen : 7913cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7914433d0511Smrgelse case e in #( 7915433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7916433d0511Smrgesac 7917cbc4e2beSmrgfi 7918433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7919433d0511Smrgesac 7920cbc4e2beSmrgfi 7921433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7922433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7923cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7924cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7925cbc4e2beSmrgfi 7926cbc4e2beSmrg 7927cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7928cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7929cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930cbc4e2beSmrg fi 7931cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7932433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7933433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7934433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7935433d0511Smrgthen : 7936433d0511Smrg printf %s "(cached) " >&6 7937433d0511Smrgelse case e in #( 7938433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939cbc4e2beSmrg/* end confdefs.h. */ 7940cbc4e2beSmrgint i; 7941cbc4e2beSmrg_ACEOF 7942433d0511Smrgif ac_fn_c_try_compile "$LINENO" 7943433d0511Smrgthen : 7944cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7945433d0511Smrgelse case e in #( 7946433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7947433d0511Smrgesac 7948cbc4e2beSmrgfi 7949433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7950433d0511Smrgesac 7951cbc4e2beSmrgfi 7952433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7953433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7954cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7955cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 7956cbc4e2beSmrgfi 7957cbc4e2beSmrg 7958cbc4e2beSmrgfound="no" 7959cbc4e2beSmrg 7960cbc4e2beSmrg if test $found = "no" ; then 7961d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963cbc4e2beSmrg fi 7964cbc4e2beSmrg 7965d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7966cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7967cbc4e2beSmrg fi 7968cbc4e2beSmrg 7969cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=missing-braces" 7970cbc4e2beSmrg 7971433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7972433d0511Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7973d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7974433d0511Smrg if eval test \${$cacheid+y} 7975433d0511Smrgthen : 7976433d0511Smrg printf %s "(cached) " >&6 7977433d0511Smrgelse case e in #( 7978433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979cbc4e2beSmrg/* end confdefs.h. */ 7980cbc4e2beSmrgint i; 7981cbc4e2beSmrgint 7982433d0511Smrgmain (void) 7983cbc4e2beSmrg{ 7984cbc4e2beSmrg 7985cbc4e2beSmrg ; 7986cbc4e2beSmrg return 0; 7987cbc4e2beSmrg} 7988cbc4e2beSmrg_ACEOF 7989433d0511Smrgif ac_fn_c_try_link "$LINENO" 7990433d0511Smrgthen : 7991cbc4e2beSmrg eval $cacheid=yes 7992433d0511Smrgelse case e in #( 7993433d0511Smrg e) eval $cacheid=no ;; 7994433d0511Smrgesac 7995cbc4e2beSmrgfi 7996433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 7998433d0511Smrgesac 7999cbc4e2beSmrgfi 8000cbc4e2beSmrg 8001cbc4e2beSmrg 8002cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8003cbc4e2beSmrg 8004cbc4e2beSmrg eval supported=\$$cacheid 8005433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8006433d0511Smrgprintf "%s\n" "$supported" >&6; } 8007cbc4e2beSmrg if test "$supported" = "yes" ; then 8008cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8009cbc4e2beSmrg found="yes" 8010cbc4e2beSmrg fi 8011cbc4e2beSmrg fi 8012cbc4e2beSmrg 8013cbc4e2beSmrg 8014cbc4e2beSmrg 8015cbc4e2beSmrg 8016cbc4e2beSmrg 8017cbc4e2beSmrg 8018cbc4e2beSmrg 8019cbc4e2beSmrg 8020cbc4e2beSmrg 8021cbc4e2beSmrg 8022cbc4e2beSmrg 8023cbc4e2beSmrg 8024cbc4e2beSmrg 8025cbc4e2beSmrg 8026cbc4e2beSmrg 8027cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8028cbc4e2beSmrg 8029cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8030cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8031433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8032433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8033433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8034433d0511Smrgthen : 8035433d0511Smrg printf %s "(cached) " >&6 8036433d0511Smrgelse case e in #( 8037433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038cbc4e2beSmrg/* end confdefs.h. */ 8039cbc4e2beSmrgint i; 8040cbc4e2beSmrg_ACEOF 8041433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8042433d0511Smrgthen : 8043cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8044433d0511Smrgelse case e in #( 8045433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8046433d0511Smrgesac 8047cbc4e2beSmrgfi 8048433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8049433d0511Smrgesac 8050cbc4e2beSmrgfi 8051433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8052433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8053cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8054cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8055cbc4e2beSmrgfi 8056cbc4e2beSmrg 8057cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8058cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8059cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060cbc4e2beSmrg fi 8061cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8062433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8063433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8064433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8065433d0511Smrgthen : 8066433d0511Smrg printf %s "(cached) " >&6 8067433d0511Smrgelse case e in #( 8068433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069cbc4e2beSmrg/* end confdefs.h. */ 8070cbc4e2beSmrgint i; 8071cbc4e2beSmrg_ACEOF 8072433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8073433d0511Smrgthen : 8074cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8075433d0511Smrgelse case e in #( 8076433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8077433d0511Smrgesac 8078cbc4e2beSmrgfi 8079433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8080433d0511Smrgesac 8081cbc4e2beSmrgfi 8082433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8083433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8084cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8085cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8086cbc4e2beSmrgfi 8087cbc4e2beSmrg 8088cbc4e2beSmrgfound="no" 8089cbc4e2beSmrg 8090cbc4e2beSmrg if test $found = "no" ; then 8091d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8092cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8093cbc4e2beSmrg fi 8094cbc4e2beSmrg 8095d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8096cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8097cbc4e2beSmrg fi 8098cbc4e2beSmrg 8099cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=sequence-point" 8100cbc4e2beSmrg 8101433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8102433d0511Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8103d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 8104433d0511Smrg if eval test \${$cacheid+y} 8105433d0511Smrgthen : 8106433d0511Smrg printf %s "(cached) " >&6 8107433d0511Smrgelse case e in #( 8108433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109cbc4e2beSmrg/* end confdefs.h. */ 8110cbc4e2beSmrgint i; 8111cbc4e2beSmrgint 8112433d0511Smrgmain (void) 8113cbc4e2beSmrg{ 8114cbc4e2beSmrg 8115cbc4e2beSmrg ; 8116cbc4e2beSmrg return 0; 8117cbc4e2beSmrg} 8118cbc4e2beSmrg_ACEOF 8119433d0511Smrgif ac_fn_c_try_link "$LINENO" 8120433d0511Smrgthen : 8121cbc4e2beSmrg eval $cacheid=yes 8122433d0511Smrgelse case e in #( 8123433d0511Smrg e) eval $cacheid=no ;; 8124433d0511Smrgesac 8125cbc4e2beSmrgfi 8126433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8127433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8128433d0511Smrgesac 8129cbc4e2beSmrgfi 8130cbc4e2beSmrg 8131cbc4e2beSmrg 8132cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8133cbc4e2beSmrg 8134cbc4e2beSmrg eval supported=\$$cacheid 8135433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136433d0511Smrgprintf "%s\n" "$supported" >&6; } 8137cbc4e2beSmrg if test "$supported" = "yes" ; then 8138cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8139cbc4e2beSmrg found="yes" 8140cbc4e2beSmrg fi 8141cbc4e2beSmrg fi 8142cbc4e2beSmrg 8143cbc4e2beSmrg 8144cbc4e2beSmrg 8145cbc4e2beSmrg 8146cbc4e2beSmrg 8147cbc4e2beSmrg 8148cbc4e2beSmrg 8149cbc4e2beSmrg 8150cbc4e2beSmrg 8151cbc4e2beSmrg 8152cbc4e2beSmrg 8153cbc4e2beSmrg 8154cbc4e2beSmrg 8155cbc4e2beSmrg 8156cbc4e2beSmrg 8157cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8158cbc4e2beSmrg 8159cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8160cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8162433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8163433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8164433d0511Smrgthen : 8165433d0511Smrg printf %s "(cached) " >&6 8166433d0511Smrgelse case e in #( 8167433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168cbc4e2beSmrg/* end confdefs.h. */ 8169cbc4e2beSmrgint i; 8170cbc4e2beSmrg_ACEOF 8171433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8172433d0511Smrgthen : 8173cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8174433d0511Smrgelse case e in #( 8175433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8176433d0511Smrgesac 8177cbc4e2beSmrgfi 8178433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8179433d0511Smrgesac 8180cbc4e2beSmrgfi 8181433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8185cbc4e2beSmrgfi 8186cbc4e2beSmrg 8187cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190cbc4e2beSmrg fi 8191cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8195433d0511Smrgthen : 8196433d0511Smrg printf %s "(cached) " >&6 8197433d0511Smrgelse case e in #( 8198433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199cbc4e2beSmrg/* end confdefs.h. */ 8200cbc4e2beSmrgint i; 8201cbc4e2beSmrg_ACEOF 8202433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8203433d0511Smrgthen : 8204cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8205433d0511Smrgelse case e in #( 8206433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8207433d0511Smrgesac 8208cbc4e2beSmrgfi 8209433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8210433d0511Smrgesac 8211cbc4e2beSmrgfi 8212433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8216cbc4e2beSmrgfi 8217cbc4e2beSmrg 8218cbc4e2beSmrgfound="no" 8219cbc4e2beSmrg 8220cbc4e2beSmrg if test $found = "no" ; then 8221d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223cbc4e2beSmrg fi 8224cbc4e2beSmrg 8225d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227cbc4e2beSmrg fi 8228cbc4e2beSmrg 8229cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=return-type" 8230cbc4e2beSmrg 8231433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8232433d0511Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 8233d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 8234433d0511Smrg if eval test \${$cacheid+y} 8235433d0511Smrgthen : 8236433d0511Smrg printf %s "(cached) " >&6 8237433d0511Smrgelse case e in #( 8238433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239cbc4e2beSmrg/* end confdefs.h. */ 8240cbc4e2beSmrgint i; 8241cbc4e2beSmrgint 8242433d0511Smrgmain (void) 8243cbc4e2beSmrg{ 8244cbc4e2beSmrg 8245cbc4e2beSmrg ; 8246cbc4e2beSmrg return 0; 8247cbc4e2beSmrg} 8248cbc4e2beSmrg_ACEOF 8249433d0511Smrgif ac_fn_c_try_link "$LINENO" 8250433d0511Smrgthen : 8251cbc4e2beSmrg eval $cacheid=yes 8252433d0511Smrgelse case e in #( 8253433d0511Smrg e) eval $cacheid=no ;; 8254433d0511Smrgesac 8255cbc4e2beSmrgfi 8256433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8257433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8258433d0511Smrgesac 8259cbc4e2beSmrgfi 8260cbc4e2beSmrg 8261cbc4e2beSmrg 8262cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8263cbc4e2beSmrg 8264cbc4e2beSmrg eval supported=\$$cacheid 8265433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8266433d0511Smrgprintf "%s\n" "$supported" >&6; } 8267cbc4e2beSmrg if test "$supported" = "yes" ; then 8268cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8269cbc4e2beSmrg found="yes" 8270cbc4e2beSmrg fi 8271cbc4e2beSmrg fi 8272cbc4e2beSmrg 8273cbc4e2beSmrg if test $found = "no" ; then 8274d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276cbc4e2beSmrg fi 8277cbc4e2beSmrg 8278d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8279cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8280cbc4e2beSmrg fi 8281cbc4e2beSmrg 8282cbc4e2beSmrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8283cbc4e2beSmrg 8284433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8285433d0511Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8286d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8287433d0511Smrg if eval test \${$cacheid+y} 8288433d0511Smrgthen : 8289433d0511Smrg printf %s "(cached) " >&6 8290433d0511Smrgelse case e in #( 8291433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292cbc4e2beSmrg/* end confdefs.h. */ 8293cbc4e2beSmrgint i; 8294cbc4e2beSmrgint 8295433d0511Smrgmain (void) 8296cbc4e2beSmrg{ 8297cbc4e2beSmrg 8298cbc4e2beSmrg ; 8299cbc4e2beSmrg return 0; 8300cbc4e2beSmrg} 8301cbc4e2beSmrg_ACEOF 8302433d0511Smrgif ac_fn_c_try_link "$LINENO" 8303433d0511Smrgthen : 8304cbc4e2beSmrg eval $cacheid=yes 8305433d0511Smrgelse case e in #( 8306433d0511Smrg e) eval $cacheid=no ;; 8307433d0511Smrgesac 8308cbc4e2beSmrgfi 8309433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8310433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8311433d0511Smrgesac 8312cbc4e2beSmrgfi 8313cbc4e2beSmrg 8314cbc4e2beSmrg 8315cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8316cbc4e2beSmrg 8317cbc4e2beSmrg eval supported=\$$cacheid 8318433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8319433d0511Smrgprintf "%s\n" "$supported" >&6; } 8320cbc4e2beSmrg if test "$supported" = "yes" ; then 8321cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8322cbc4e2beSmrg found="yes" 8323cbc4e2beSmrg fi 8324cbc4e2beSmrg fi 8325cbc4e2beSmrg 8326cbc4e2beSmrg 8327cbc4e2beSmrg 8328cbc4e2beSmrg 8329cbc4e2beSmrg 8330cbc4e2beSmrg 8331cbc4e2beSmrg 8332cbc4e2beSmrg 8333cbc4e2beSmrg 8334cbc4e2beSmrg 8335cbc4e2beSmrg 8336cbc4e2beSmrg 8337cbc4e2beSmrg 8338cbc4e2beSmrg 8339cbc4e2beSmrg 8340cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8341cbc4e2beSmrg 8342cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8343cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8344433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8345433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8346433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8347433d0511Smrgthen : 8348433d0511Smrg printf %s "(cached) " >&6 8349433d0511Smrgelse case e in #( 8350433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351cbc4e2beSmrg/* end confdefs.h. */ 8352cbc4e2beSmrgint i; 8353cbc4e2beSmrg_ACEOF 8354433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8355433d0511Smrgthen : 8356cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8357433d0511Smrgelse case e in #( 8358433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8359433d0511Smrgesac 8360cbc4e2beSmrgfi 8361433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8362433d0511Smrgesac 8363cbc4e2beSmrgfi 8364433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8365433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8366cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8367cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8368cbc4e2beSmrgfi 8369cbc4e2beSmrg 8370cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8371cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8372cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8373cbc4e2beSmrg fi 8374cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8376433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8377433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8378433d0511Smrgthen : 8379433d0511Smrg printf %s "(cached) " >&6 8380433d0511Smrgelse case e in #( 8381433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382cbc4e2beSmrg/* end confdefs.h. */ 8383cbc4e2beSmrgint i; 8384cbc4e2beSmrg_ACEOF 8385433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8386433d0511Smrgthen : 8387cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8388433d0511Smrgelse case e in #( 8389433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8390433d0511Smrgesac 8391cbc4e2beSmrgfi 8392433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8393433d0511Smrgesac 8394cbc4e2beSmrgfi 8395433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8396433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8397cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8398cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8399cbc4e2beSmrgfi 8400cbc4e2beSmrg 8401cbc4e2beSmrgfound="no" 8402cbc4e2beSmrg 8403cbc4e2beSmrg if test $found = "no" ; then 8404d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406cbc4e2beSmrg fi 8407cbc4e2beSmrg 8408d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410cbc4e2beSmrg fi 8411cbc4e2beSmrg 8412cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=trigraphs" 8413cbc4e2beSmrg 8414433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8415433d0511Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8416d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8417433d0511Smrg if eval test \${$cacheid+y} 8418433d0511Smrgthen : 8419433d0511Smrg printf %s "(cached) " >&6 8420433d0511Smrgelse case e in #( 8421433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422cbc4e2beSmrg/* end confdefs.h. */ 8423cbc4e2beSmrgint i; 8424cbc4e2beSmrgint 8425433d0511Smrgmain (void) 8426cbc4e2beSmrg{ 8427cbc4e2beSmrg 8428cbc4e2beSmrg ; 8429cbc4e2beSmrg return 0; 8430cbc4e2beSmrg} 8431cbc4e2beSmrg_ACEOF 8432433d0511Smrgif ac_fn_c_try_link "$LINENO" 8433433d0511Smrgthen : 8434cbc4e2beSmrg eval $cacheid=yes 8435433d0511Smrgelse case e in #( 8436433d0511Smrg e) eval $cacheid=no ;; 8437433d0511Smrgesac 8438cbc4e2beSmrgfi 8439433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8440433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8441433d0511Smrgesac 8442cbc4e2beSmrgfi 8443cbc4e2beSmrg 8444cbc4e2beSmrg 8445cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8446cbc4e2beSmrg 8447cbc4e2beSmrg eval supported=\$$cacheid 8448433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8449433d0511Smrgprintf "%s\n" "$supported" >&6; } 8450cbc4e2beSmrg if test "$supported" = "yes" ; then 8451cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8452cbc4e2beSmrg found="yes" 8453cbc4e2beSmrg fi 8454cbc4e2beSmrg fi 8455cbc4e2beSmrg 8456cbc4e2beSmrg 8457cbc4e2beSmrg 8458cbc4e2beSmrg 8459cbc4e2beSmrg 8460cbc4e2beSmrg 8461cbc4e2beSmrg 8462cbc4e2beSmrg 8463cbc4e2beSmrg 8464cbc4e2beSmrg 8465cbc4e2beSmrg 8466cbc4e2beSmrg 8467cbc4e2beSmrg 8468cbc4e2beSmrg 8469cbc4e2beSmrg 8470cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8471cbc4e2beSmrg 8472cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8473cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8475433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8476433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8477433d0511Smrgthen : 8478433d0511Smrg printf %s "(cached) " >&6 8479433d0511Smrgelse case e in #( 8480433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481cbc4e2beSmrg/* end confdefs.h. */ 8482cbc4e2beSmrgint i; 8483cbc4e2beSmrg_ACEOF 8484433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8485433d0511Smrgthen : 8486cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8487433d0511Smrgelse case e in #( 8488433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8489433d0511Smrgesac 8490cbc4e2beSmrgfi 8491433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8492433d0511Smrgesac 8493cbc4e2beSmrgfi 8494433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8495433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8496cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8497cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8498cbc4e2beSmrgfi 8499cbc4e2beSmrg 8500cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8501cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8502cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503cbc4e2beSmrg fi 8504cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8505433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8506433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8507433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8508433d0511Smrgthen : 8509433d0511Smrg printf %s "(cached) " >&6 8510433d0511Smrgelse case e in #( 8511433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512cbc4e2beSmrg/* end confdefs.h. */ 8513cbc4e2beSmrgint i; 8514cbc4e2beSmrg_ACEOF 8515433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8516433d0511Smrgthen : 8517cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8518433d0511Smrgelse case e in #( 8519433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8520433d0511Smrgesac 8521cbc4e2beSmrgfi 8522433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8523433d0511Smrgesac 8524cbc4e2beSmrgfi 8525433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8526433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8527cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8528cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8529cbc4e2beSmrgfi 8530cbc4e2beSmrg 8531cbc4e2beSmrgfound="no" 8532cbc4e2beSmrg 8533cbc4e2beSmrg if test $found = "no" ; then 8534d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8535cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536cbc4e2beSmrg fi 8537cbc4e2beSmrg 8538d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8539cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540cbc4e2beSmrg fi 8541cbc4e2beSmrg 8542cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=array-bounds" 8543cbc4e2beSmrg 8544433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8545433d0511Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8546d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8547433d0511Smrg if eval test \${$cacheid+y} 8548433d0511Smrgthen : 8549433d0511Smrg printf %s "(cached) " >&6 8550433d0511Smrgelse case e in #( 8551433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552cbc4e2beSmrg/* end confdefs.h. */ 8553cbc4e2beSmrgint i; 8554cbc4e2beSmrgint 8555433d0511Smrgmain (void) 8556cbc4e2beSmrg{ 8557cbc4e2beSmrg 8558cbc4e2beSmrg ; 8559cbc4e2beSmrg return 0; 8560cbc4e2beSmrg} 8561cbc4e2beSmrg_ACEOF 8562433d0511Smrgif ac_fn_c_try_link "$LINENO" 8563433d0511Smrgthen : 8564cbc4e2beSmrg eval $cacheid=yes 8565433d0511Smrgelse case e in #( 8566433d0511Smrg e) eval $cacheid=no ;; 8567433d0511Smrgesac 8568cbc4e2beSmrgfi 8569433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8570433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8571433d0511Smrgesac 8572cbc4e2beSmrgfi 8573cbc4e2beSmrg 8574cbc4e2beSmrg 8575cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8576cbc4e2beSmrg 8577cbc4e2beSmrg eval supported=\$$cacheid 8578433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8579433d0511Smrgprintf "%s\n" "$supported" >&6; } 8580cbc4e2beSmrg if test "$supported" = "yes" ; then 8581cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8582cbc4e2beSmrg found="yes" 8583cbc4e2beSmrg fi 8584cbc4e2beSmrg fi 8585cbc4e2beSmrg 8586cbc4e2beSmrg 8587cbc4e2beSmrg 8588cbc4e2beSmrg 8589cbc4e2beSmrg 8590cbc4e2beSmrg 8591cbc4e2beSmrg 8592cbc4e2beSmrg 8593cbc4e2beSmrg 8594cbc4e2beSmrg 8595cbc4e2beSmrg 8596cbc4e2beSmrg 8597cbc4e2beSmrg 8598cbc4e2beSmrg 8599cbc4e2beSmrg 8600cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8601cbc4e2beSmrg 8602cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8603cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8605433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8606433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8607433d0511Smrgthen : 8608433d0511Smrg printf %s "(cached) " >&6 8609433d0511Smrgelse case e in #( 8610433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611cbc4e2beSmrg/* end confdefs.h. */ 8612cbc4e2beSmrgint i; 8613cbc4e2beSmrg_ACEOF 8614433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8615433d0511Smrgthen : 8616cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8617433d0511Smrgelse case e in #( 8618433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8619433d0511Smrgesac 8620cbc4e2beSmrgfi 8621433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8622433d0511Smrgesac 8623cbc4e2beSmrgfi 8624433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8628cbc4e2beSmrgfi 8629cbc4e2beSmrg 8630cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633cbc4e2beSmrg fi 8634cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8638433d0511Smrgthen : 8639433d0511Smrg printf %s "(cached) " >&6 8640433d0511Smrgelse case e in #( 8641433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642cbc4e2beSmrg/* end confdefs.h. */ 8643cbc4e2beSmrgint i; 8644cbc4e2beSmrg_ACEOF 8645433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8646433d0511Smrgthen : 8647cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8648433d0511Smrgelse case e in #( 8649433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8650433d0511Smrgesac 8651cbc4e2beSmrgfi 8652433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8653433d0511Smrgesac 8654cbc4e2beSmrgfi 8655433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8656433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8657cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8658cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8659cbc4e2beSmrgfi 8660cbc4e2beSmrg 8661cbc4e2beSmrgfound="no" 8662cbc4e2beSmrg 8663cbc4e2beSmrg if test $found = "no" ; then 8664d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666cbc4e2beSmrg fi 8667cbc4e2beSmrg 8668d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8669cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670cbc4e2beSmrg fi 8671cbc4e2beSmrg 8672cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=write-strings" 8673cbc4e2beSmrg 8674433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8675433d0511Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8676d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8677433d0511Smrg if eval test \${$cacheid+y} 8678433d0511Smrgthen : 8679433d0511Smrg printf %s "(cached) " >&6 8680433d0511Smrgelse case e in #( 8681433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682cbc4e2beSmrg/* end confdefs.h. */ 8683cbc4e2beSmrgint i; 8684cbc4e2beSmrgint 8685433d0511Smrgmain (void) 8686cbc4e2beSmrg{ 8687cbc4e2beSmrg 8688cbc4e2beSmrg ; 8689cbc4e2beSmrg return 0; 8690cbc4e2beSmrg} 8691cbc4e2beSmrg_ACEOF 8692433d0511Smrgif ac_fn_c_try_link "$LINENO" 8693433d0511Smrgthen : 8694cbc4e2beSmrg eval $cacheid=yes 8695433d0511Smrgelse case e in #( 8696433d0511Smrg e) eval $cacheid=no ;; 8697433d0511Smrgesac 8698cbc4e2beSmrgfi 8699433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8700433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8701433d0511Smrgesac 8702cbc4e2beSmrgfi 8703cbc4e2beSmrg 8704cbc4e2beSmrg 8705cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8706cbc4e2beSmrg 8707cbc4e2beSmrg eval supported=\$$cacheid 8708433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709433d0511Smrgprintf "%s\n" "$supported" >&6; } 8710cbc4e2beSmrg if test "$supported" = "yes" ; then 8711cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8712cbc4e2beSmrg found="yes" 8713cbc4e2beSmrg fi 8714cbc4e2beSmrg fi 8715cbc4e2beSmrg 8716cbc4e2beSmrg 8717cbc4e2beSmrg 8718cbc4e2beSmrg 8719cbc4e2beSmrg 8720cbc4e2beSmrg 8721cbc4e2beSmrg 8722cbc4e2beSmrg 8723cbc4e2beSmrg 8724cbc4e2beSmrg 8725cbc4e2beSmrg 8726cbc4e2beSmrg 8727cbc4e2beSmrg 8728cbc4e2beSmrg 8729cbc4e2beSmrg 8730cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8731cbc4e2beSmrg 8732cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8737433d0511Smrgthen : 8738433d0511Smrg printf %s "(cached) " >&6 8739433d0511Smrgelse case e in #( 8740433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741cbc4e2beSmrg/* end confdefs.h. */ 8742cbc4e2beSmrgint i; 8743cbc4e2beSmrg_ACEOF 8744433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8745433d0511Smrgthen : 8746cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8747433d0511Smrgelse case e in #( 8748433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8749433d0511Smrgesac 8750cbc4e2beSmrgfi 8751433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8752433d0511Smrgesac 8753cbc4e2beSmrgfi 8754433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8755433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8756cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8757cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8758cbc4e2beSmrgfi 8759cbc4e2beSmrg 8760cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8761cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763cbc4e2beSmrg fi 8764cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8766433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8767433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8768433d0511Smrgthen : 8769433d0511Smrg printf %s "(cached) " >&6 8770433d0511Smrgelse case e in #( 8771433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772cbc4e2beSmrg/* end confdefs.h. */ 8773cbc4e2beSmrgint i; 8774cbc4e2beSmrg_ACEOF 8775433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8776433d0511Smrgthen : 8777cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8778433d0511Smrgelse case e in #( 8779433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8780433d0511Smrgesac 8781cbc4e2beSmrgfi 8782433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8783433d0511Smrgesac 8784cbc4e2beSmrgfi 8785433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8786433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8787cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8788cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8789cbc4e2beSmrgfi 8790cbc4e2beSmrg 8791cbc4e2beSmrgfound="no" 8792cbc4e2beSmrg 8793cbc4e2beSmrg if test $found = "no" ; then 8794d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8795cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796cbc4e2beSmrg fi 8797cbc4e2beSmrg 8798d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8799cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8800cbc4e2beSmrg fi 8801cbc4e2beSmrg 8802cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=address" 8803cbc4e2beSmrg 8804433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8805433d0511Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 8806d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_address 8807433d0511Smrg if eval test \${$cacheid+y} 8808433d0511Smrgthen : 8809433d0511Smrg printf %s "(cached) " >&6 8810433d0511Smrgelse case e in #( 8811433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812cbc4e2beSmrg/* end confdefs.h. */ 8813cbc4e2beSmrgint i; 8814cbc4e2beSmrgint 8815433d0511Smrgmain (void) 8816cbc4e2beSmrg{ 8817cbc4e2beSmrg 8818cbc4e2beSmrg ; 8819cbc4e2beSmrg return 0; 8820cbc4e2beSmrg} 8821cbc4e2beSmrg_ACEOF 8822433d0511Smrgif ac_fn_c_try_link "$LINENO" 8823433d0511Smrgthen : 8824cbc4e2beSmrg eval $cacheid=yes 8825433d0511Smrgelse case e in #( 8826433d0511Smrg e) eval $cacheid=no ;; 8827433d0511Smrgesac 8828cbc4e2beSmrgfi 8829433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8830433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8831433d0511Smrgesac 8832cbc4e2beSmrgfi 8833cbc4e2beSmrg 8834cbc4e2beSmrg 8835cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8836cbc4e2beSmrg 8837cbc4e2beSmrg eval supported=\$$cacheid 8838433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8839433d0511Smrgprintf "%s\n" "$supported" >&6; } 8840cbc4e2beSmrg if test "$supported" = "yes" ; then 8841cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8842cbc4e2beSmrg found="yes" 8843cbc4e2beSmrg fi 8844cbc4e2beSmrg fi 8845cbc4e2beSmrg 8846cbc4e2beSmrg 8847cbc4e2beSmrg 8848cbc4e2beSmrg 8849cbc4e2beSmrg 8850cbc4e2beSmrg 8851cbc4e2beSmrg 8852cbc4e2beSmrg 8853cbc4e2beSmrg 8854cbc4e2beSmrg 8855cbc4e2beSmrg 8856cbc4e2beSmrg 8857cbc4e2beSmrg 8858cbc4e2beSmrg 8859cbc4e2beSmrg 8860cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 8861cbc4e2beSmrg 8862cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8863cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8865433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8866433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8867433d0511Smrgthen : 8868433d0511Smrg printf %s "(cached) " >&6 8869433d0511Smrgelse case e in #( 8870433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871cbc4e2beSmrg/* end confdefs.h. */ 8872cbc4e2beSmrgint i; 8873cbc4e2beSmrg_ACEOF 8874433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8875433d0511Smrgthen : 8876cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8877433d0511Smrgelse case e in #( 8878433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8879433d0511Smrgesac 8880cbc4e2beSmrgfi 8881433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8882433d0511Smrgesac 8883cbc4e2beSmrgfi 8884433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8885433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8886cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8887cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8888cbc4e2beSmrgfi 8889cbc4e2beSmrg 8890cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8891cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8892cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893cbc4e2beSmrg fi 8894cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8895433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8896433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8897433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8898433d0511Smrgthen : 8899433d0511Smrg printf %s "(cached) " >&6 8900433d0511Smrgelse case e in #( 8901433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902cbc4e2beSmrg/* end confdefs.h. */ 8903cbc4e2beSmrgint i; 8904cbc4e2beSmrg_ACEOF 8905433d0511Smrgif ac_fn_c_try_compile "$LINENO" 8906433d0511Smrgthen : 8907cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8908433d0511Smrgelse case e in #( 8909433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8910433d0511Smrgesac 8911cbc4e2beSmrgfi 8912433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8913433d0511Smrgesac 8914cbc4e2beSmrgfi 8915433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8916433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8917cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8918cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8919cbc4e2beSmrgfi 8920cbc4e2beSmrg 8921cbc4e2beSmrgfound="no" 8922cbc4e2beSmrg 8923cbc4e2beSmrg if test $found = "no" ; then 8924d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8925cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926cbc4e2beSmrg fi 8927cbc4e2beSmrg 8928d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8929cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8930cbc4e2beSmrg fi 8931cbc4e2beSmrg 8932cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8933cbc4e2beSmrg 8934433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8935433d0511Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8936d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8937433d0511Smrg if eval test \${$cacheid+y} 8938433d0511Smrgthen : 8939433d0511Smrg printf %s "(cached) " >&6 8940433d0511Smrgelse case e in #( 8941433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942cbc4e2beSmrg/* end confdefs.h. */ 8943cbc4e2beSmrgint i; 8944cbc4e2beSmrgint 8945433d0511Smrgmain (void) 8946cbc4e2beSmrg{ 8947cbc4e2beSmrg 8948cbc4e2beSmrg ; 8949cbc4e2beSmrg return 0; 8950cbc4e2beSmrg} 8951cbc4e2beSmrg_ACEOF 8952433d0511Smrgif ac_fn_c_try_link "$LINENO" 8953433d0511Smrgthen : 8954cbc4e2beSmrg eval $cacheid=yes 8955433d0511Smrgelse case e in #( 8956433d0511Smrg e) eval $cacheid=no ;; 8957433d0511Smrgesac 8958cbc4e2beSmrgfi 8959433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8960433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 8961433d0511Smrgesac 8962cbc4e2beSmrgfi 8963cbc4e2beSmrg 8964cbc4e2beSmrg 8965cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 8966cbc4e2beSmrg 8967cbc4e2beSmrg eval supported=\$$cacheid 8968433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8969433d0511Smrgprintf "%s\n" "$supported" >&6; } 8970cbc4e2beSmrg if test "$supported" = "yes" ; then 8971cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8972cbc4e2beSmrg found="yes" 8973cbc4e2beSmrg fi 8974cbc4e2beSmrg fi 8975cbc4e2beSmrg 8976cbc4e2beSmrg if test $found = "no" ; then 8977d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979cbc4e2beSmrg fi 8980cbc4e2beSmrg 8981d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8982cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983cbc4e2beSmrg fi 8984cbc4e2beSmrg 8985cbc4e2beSmrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8986cbc4e2beSmrg 8987433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8988433d0511Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8989d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8990433d0511Smrg if eval test \${$cacheid+y} 8991433d0511Smrgthen : 8992433d0511Smrg printf %s "(cached) " >&6 8993433d0511Smrgelse case e in #( 8994433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995cbc4e2beSmrg/* end confdefs.h. */ 8996cbc4e2beSmrgint i; 8997cbc4e2beSmrgint 8998433d0511Smrgmain (void) 8999cbc4e2beSmrg{ 9000cbc4e2beSmrg 9001cbc4e2beSmrg ; 9002cbc4e2beSmrg return 0; 9003cbc4e2beSmrg} 9004cbc4e2beSmrg_ACEOF 9005433d0511Smrgif ac_fn_c_try_link "$LINENO" 9006433d0511Smrgthen : 9007cbc4e2beSmrg eval $cacheid=yes 9008433d0511Smrgelse case e in #( 9009433d0511Smrg e) eval $cacheid=no ;; 9010433d0511Smrgesac 9011cbc4e2beSmrgfi 9012433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9013433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9014433d0511Smrgesac 9015cbc4e2beSmrgfi 9016cbc4e2beSmrg 9017cbc4e2beSmrg 9018cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9019cbc4e2beSmrg 9020cbc4e2beSmrg eval supported=\$$cacheid 9021433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9022433d0511Smrgprintf "%s\n" "$supported" >&6; } 9023cbc4e2beSmrg if test "$supported" = "yes" ; then 9024cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9025cbc4e2beSmrg found="yes" 9026cbc4e2beSmrg fi 9027cbc4e2beSmrg fi 9028cbc4e2beSmrg 9029cbc4e2beSmrg 9030cbc4e2beSmrg 9031cbc4e2beSmrg 9032cbc4e2beSmrg 9033cbc4e2beSmrg 9034cbc4e2beSmrg 9035cbc4e2beSmrg 9036cbc4e2beSmrg 9037cbc4e2beSmrg 9038cbc4e2beSmrg 9039cbc4e2beSmrg 9040cbc4e2beSmrg 9041cbc4e2beSmrg 9042cbc4e2beSmrg 9043cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9044cbc4e2beSmrg 9045cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9046cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9048433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9049433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9050433d0511Smrgthen : 9051433d0511Smrg printf %s "(cached) " >&6 9052433d0511Smrgelse case e in #( 9053433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054cbc4e2beSmrg/* end confdefs.h. */ 9055cbc4e2beSmrgint i; 9056cbc4e2beSmrg_ACEOF 9057433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9058433d0511Smrgthen : 9059cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9060433d0511Smrgelse case e in #( 9061433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9062433d0511Smrgesac 9063cbc4e2beSmrgfi 9064433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9065433d0511Smrgesac 9066cbc4e2beSmrgfi 9067433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9068433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9069cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9070cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9071cbc4e2beSmrgfi 9072cbc4e2beSmrg 9073cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9074cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9075cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9076cbc4e2beSmrg fi 9077cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9078433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9079433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9080433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9081433d0511Smrgthen : 9082433d0511Smrg printf %s "(cached) " >&6 9083433d0511Smrgelse case e in #( 9084433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085cbc4e2beSmrg/* end confdefs.h. */ 9086cbc4e2beSmrgint i; 9087cbc4e2beSmrg_ACEOF 9088433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9089433d0511Smrgthen : 9090cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9091433d0511Smrgelse case e in #( 9092433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9093433d0511Smrgesac 9094cbc4e2beSmrgfi 9095433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9096433d0511Smrgesac 9097cbc4e2beSmrgfi 9098433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9099433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9100cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9101cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9102cbc4e2beSmrgfi 9103cbc4e2beSmrg 9104cbc4e2beSmrgfound="no" 9105cbc4e2beSmrg 9106cbc4e2beSmrg if test $found = "no" ; then 9107d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109cbc4e2beSmrg fi 9110cbc4e2beSmrg 9111d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9112cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113cbc4e2beSmrg fi 9114cbc4e2beSmrg 9115cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9116cbc4e2beSmrg 9117433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9118433d0511Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9119d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9120433d0511Smrg if eval test \${$cacheid+y} 9121433d0511Smrgthen : 9122433d0511Smrg printf %s "(cached) " >&6 9123433d0511Smrgelse case e in #( 9124433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125cbc4e2beSmrg/* end confdefs.h. */ 9126cbc4e2beSmrgint i; 9127cbc4e2beSmrgint 9128433d0511Smrgmain (void) 9129cbc4e2beSmrg{ 9130cbc4e2beSmrg 9131cbc4e2beSmrg ; 9132cbc4e2beSmrg return 0; 9133cbc4e2beSmrg} 9134cbc4e2beSmrg_ACEOF 9135433d0511Smrgif ac_fn_c_try_link "$LINENO" 9136433d0511Smrgthen : 9137cbc4e2beSmrg eval $cacheid=yes 9138433d0511Smrgelse case e in #( 9139433d0511Smrg e) eval $cacheid=no ;; 9140433d0511Smrgesac 9141cbc4e2beSmrgfi 9142433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9143433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9144433d0511Smrgesac 9145cbc4e2beSmrgfi 9146cbc4e2beSmrg 9147cbc4e2beSmrg 9148cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9149cbc4e2beSmrg 9150cbc4e2beSmrg eval supported=\$$cacheid 9151433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9152433d0511Smrgprintf "%s\n" "$supported" >&6; } 9153cbc4e2beSmrg if test "$supported" = "yes" ; then 9154cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9155cbc4e2beSmrg found="yes" 9156cbc4e2beSmrg fi 9157cbc4e2beSmrg fi 9158cbc4e2beSmrg 9159cbc4e2beSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9160cbc4e2beSmrgelse 9161433d0511Smrg{ 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 9162433d0511Smrgprintf "%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;} 9163cbc4e2beSmrg 9164cbc4e2beSmrg 9165cbc4e2beSmrg 9166cbc4e2beSmrg 9167cbc4e2beSmrg 9168cbc4e2beSmrg 9169cbc4e2beSmrg 9170cbc4e2beSmrg 9171cbc4e2beSmrg 9172cbc4e2beSmrg 9173cbc4e2beSmrg 9174cbc4e2beSmrg 9175cbc4e2beSmrg 9176cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9177cbc4e2beSmrg 9178cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9183433d0511Smrgthen : 9184433d0511Smrg printf %s "(cached) " >&6 9185433d0511Smrgelse case e in #( 9186433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187cbc4e2beSmrg/* end confdefs.h. */ 9188cbc4e2beSmrgint i; 9189cbc4e2beSmrg_ACEOF 9190433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9191433d0511Smrgthen : 9192cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9193433d0511Smrgelse case e in #( 9194433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9195433d0511Smrgesac 9196cbc4e2beSmrgfi 9197433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9198433d0511Smrgesac 9199cbc4e2beSmrgfi 9200433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9201433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9202cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9203cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9204cbc4e2beSmrgfi 9205cbc4e2beSmrg 9206cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9207cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9208cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9209cbc4e2beSmrg fi 9210cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9211433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9212433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9213433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9214433d0511Smrgthen : 9215433d0511Smrg printf %s "(cached) " >&6 9216433d0511Smrgelse case e in #( 9217433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218cbc4e2beSmrg/* end confdefs.h. */ 9219cbc4e2beSmrgint i; 9220cbc4e2beSmrg_ACEOF 9221433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9222433d0511Smrgthen : 9223cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9224433d0511Smrgelse case e in #( 9225433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9226433d0511Smrgesac 9227cbc4e2beSmrgfi 9228433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9229433d0511Smrgesac 9230cbc4e2beSmrgfi 9231433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9232433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9233cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9234cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9235cbc4e2beSmrgfi 9236cbc4e2beSmrg 9237cbc4e2beSmrgfound="no" 9238cbc4e2beSmrg 9239cbc4e2beSmrg if test $found = "no" ; then 9240d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9241cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242cbc4e2beSmrg fi 9243cbc4e2beSmrg 9244d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9245cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9246cbc4e2beSmrg fi 9247cbc4e2beSmrg 9248cbc4e2beSmrg CFLAGS="$CFLAGS -Wimplicit" 9249cbc4e2beSmrg 9250433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9251433d0511Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 9252cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wimplicit 9253433d0511Smrg if eval test \${$cacheid+y} 9254433d0511Smrgthen : 9255433d0511Smrg printf %s "(cached) " >&6 9256433d0511Smrgelse case e in #( 9257433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258cbc4e2beSmrg/* end confdefs.h. */ 9259cbc4e2beSmrgint i; 9260cbc4e2beSmrgint 9261433d0511Smrgmain (void) 9262cbc4e2beSmrg{ 9263cbc4e2beSmrg 9264cbc4e2beSmrg ; 9265cbc4e2beSmrg return 0; 9266cbc4e2beSmrg} 9267cbc4e2beSmrg_ACEOF 9268433d0511Smrgif ac_fn_c_try_link "$LINENO" 9269433d0511Smrgthen : 9270cbc4e2beSmrg eval $cacheid=yes 9271433d0511Smrgelse case e in #( 9272433d0511Smrg e) eval $cacheid=no ;; 9273433d0511Smrgesac 9274cbc4e2beSmrgfi 9275433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9276433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9277433d0511Smrgesac 9278cbc4e2beSmrgfi 9279cbc4e2beSmrg 9280cbc4e2beSmrg 9281cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9282cbc4e2beSmrg 9283cbc4e2beSmrg eval supported=\$$cacheid 9284433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285433d0511Smrgprintf "%s\n" "$supported" >&6; } 9286cbc4e2beSmrg if test "$supported" = "yes" ; then 9287cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9288cbc4e2beSmrg found="yes" 9289cbc4e2beSmrg fi 9290cbc4e2beSmrg fi 9291cbc4e2beSmrg 9292cbc4e2beSmrg 9293cbc4e2beSmrg 9294cbc4e2beSmrg 9295cbc4e2beSmrg 9296cbc4e2beSmrg 9297cbc4e2beSmrg 9298cbc4e2beSmrg 9299cbc4e2beSmrg 9300cbc4e2beSmrg 9301cbc4e2beSmrg 9302cbc4e2beSmrg 9303cbc4e2beSmrg 9304cbc4e2beSmrg 9305cbc4e2beSmrg 9306cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9307cbc4e2beSmrg 9308cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9313433d0511Smrgthen : 9314433d0511Smrg printf %s "(cached) " >&6 9315433d0511Smrgelse case e in #( 9316433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317cbc4e2beSmrg/* end confdefs.h. */ 9318cbc4e2beSmrgint i; 9319cbc4e2beSmrg_ACEOF 9320433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9321433d0511Smrgthen : 9322cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9323433d0511Smrgelse case e in #( 9324433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9325433d0511Smrgesac 9326cbc4e2beSmrgfi 9327433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9328433d0511Smrgesac 9329cbc4e2beSmrgfi 9330433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9331433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9332cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9333cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9334cbc4e2beSmrgfi 9335cbc4e2beSmrg 9336cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9337cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339cbc4e2beSmrg fi 9340cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9341433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9342433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9343433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9344433d0511Smrgthen : 9345433d0511Smrg printf %s "(cached) " >&6 9346433d0511Smrgelse case e in #( 9347433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348cbc4e2beSmrg/* end confdefs.h. */ 9349cbc4e2beSmrgint i; 9350cbc4e2beSmrg_ACEOF 9351433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9352433d0511Smrgthen : 9353cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9354433d0511Smrgelse case e in #( 9355433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9356433d0511Smrgesac 9357cbc4e2beSmrgfi 9358433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9359433d0511Smrgesac 9360cbc4e2beSmrgfi 9361433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9365cbc4e2beSmrgfi 9366cbc4e2beSmrg 9367cbc4e2beSmrgfound="no" 9368cbc4e2beSmrg 9369cbc4e2beSmrg if test $found = "no" ; then 9370d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372cbc4e2beSmrg fi 9373cbc4e2beSmrg 9374d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376cbc4e2beSmrg fi 9377cbc4e2beSmrg 9378cbc4e2beSmrg CFLAGS="$CFLAGS -Wnonnull" 9379cbc4e2beSmrg 9380433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9381433d0511Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 9382cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wnonnull 9383433d0511Smrg if eval test \${$cacheid+y} 9384433d0511Smrgthen : 9385433d0511Smrg printf %s "(cached) " >&6 9386433d0511Smrgelse case e in #( 9387433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388cbc4e2beSmrg/* end confdefs.h. */ 9389cbc4e2beSmrgint i; 9390cbc4e2beSmrgint 9391433d0511Smrgmain (void) 9392cbc4e2beSmrg{ 9393cbc4e2beSmrg 9394cbc4e2beSmrg ; 9395cbc4e2beSmrg return 0; 9396cbc4e2beSmrg} 9397cbc4e2beSmrg_ACEOF 9398433d0511Smrgif ac_fn_c_try_link "$LINENO" 9399433d0511Smrgthen : 9400cbc4e2beSmrg eval $cacheid=yes 9401433d0511Smrgelse case e in #( 9402433d0511Smrg e) eval $cacheid=no ;; 9403433d0511Smrgesac 9404cbc4e2beSmrgfi 9405433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9406433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9407433d0511Smrgesac 9408cbc4e2beSmrgfi 9409cbc4e2beSmrg 9410cbc4e2beSmrg 9411cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9412cbc4e2beSmrg 9413cbc4e2beSmrg eval supported=\$$cacheid 9414433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9415433d0511Smrgprintf "%s\n" "$supported" >&6; } 9416cbc4e2beSmrg if test "$supported" = "yes" ; then 9417cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9418cbc4e2beSmrg found="yes" 9419cbc4e2beSmrg fi 9420cbc4e2beSmrg fi 9421cbc4e2beSmrg 9422cbc4e2beSmrg 9423cbc4e2beSmrg 9424cbc4e2beSmrg 9425cbc4e2beSmrg 9426cbc4e2beSmrg 9427cbc4e2beSmrg 9428cbc4e2beSmrg 9429cbc4e2beSmrg 9430cbc4e2beSmrg 9431cbc4e2beSmrg 9432cbc4e2beSmrg 9433cbc4e2beSmrg 9434cbc4e2beSmrg 9435cbc4e2beSmrg 9436cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9437cbc4e2beSmrg 9438cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9439cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9441433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9442433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9443433d0511Smrgthen : 9444433d0511Smrg printf %s "(cached) " >&6 9445433d0511Smrgelse case e in #( 9446433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447cbc4e2beSmrg/* end confdefs.h. */ 9448cbc4e2beSmrgint i; 9449cbc4e2beSmrg_ACEOF 9450433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9451433d0511Smrgthen : 9452cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9453433d0511Smrgelse case e in #( 9454433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9455433d0511Smrgesac 9456cbc4e2beSmrgfi 9457433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9458433d0511Smrgesac 9459cbc4e2beSmrgfi 9460433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9461433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9462cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9463cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9464cbc4e2beSmrgfi 9465cbc4e2beSmrg 9466cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9467cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9468cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469cbc4e2beSmrg fi 9470cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9472433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9473433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9474433d0511Smrgthen : 9475433d0511Smrg printf %s "(cached) " >&6 9476433d0511Smrgelse case e in #( 9477433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478cbc4e2beSmrg/* end confdefs.h. */ 9479cbc4e2beSmrgint i; 9480cbc4e2beSmrg_ACEOF 9481433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9482433d0511Smrgthen : 9483cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9484433d0511Smrgelse case e in #( 9485433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9486433d0511Smrgesac 9487cbc4e2beSmrgfi 9488433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9489433d0511Smrgesac 9490cbc4e2beSmrgfi 9491433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9492433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9493cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9494cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9495cbc4e2beSmrgfi 9496cbc4e2beSmrg 9497cbc4e2beSmrgfound="no" 9498cbc4e2beSmrg 9499cbc4e2beSmrg if test $found = "no" ; then 9500d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502cbc4e2beSmrg fi 9503cbc4e2beSmrg 9504d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9505cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506cbc4e2beSmrg fi 9507cbc4e2beSmrg 9508cbc4e2beSmrg CFLAGS="$CFLAGS -Winit-self" 9509cbc4e2beSmrg 9510433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9511433d0511Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 9512cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Winit_self 9513433d0511Smrg if eval test \${$cacheid+y} 9514433d0511Smrgthen : 9515433d0511Smrg printf %s "(cached) " >&6 9516433d0511Smrgelse case e in #( 9517433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518cbc4e2beSmrg/* end confdefs.h. */ 9519cbc4e2beSmrgint i; 9520cbc4e2beSmrgint 9521433d0511Smrgmain (void) 9522cbc4e2beSmrg{ 9523cbc4e2beSmrg 9524cbc4e2beSmrg ; 9525cbc4e2beSmrg return 0; 9526cbc4e2beSmrg} 9527cbc4e2beSmrg_ACEOF 9528433d0511Smrgif ac_fn_c_try_link "$LINENO" 9529433d0511Smrgthen : 9530cbc4e2beSmrg eval $cacheid=yes 9531433d0511Smrgelse case e in #( 9532433d0511Smrg e) eval $cacheid=no ;; 9533433d0511Smrgesac 9534cbc4e2beSmrgfi 9535433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9536433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9537433d0511Smrgesac 9538cbc4e2beSmrgfi 9539cbc4e2beSmrg 9540cbc4e2beSmrg 9541cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9542cbc4e2beSmrg 9543cbc4e2beSmrg eval supported=\$$cacheid 9544433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9545433d0511Smrgprintf "%s\n" "$supported" >&6; } 9546cbc4e2beSmrg if test "$supported" = "yes" ; then 9547cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9548cbc4e2beSmrg found="yes" 9549cbc4e2beSmrg fi 9550cbc4e2beSmrg fi 9551cbc4e2beSmrg 9552cbc4e2beSmrg 9553cbc4e2beSmrg 9554cbc4e2beSmrg 9555cbc4e2beSmrg 9556cbc4e2beSmrg 9557cbc4e2beSmrg 9558cbc4e2beSmrg 9559cbc4e2beSmrg 9560cbc4e2beSmrg 9561cbc4e2beSmrg 9562cbc4e2beSmrg 9563cbc4e2beSmrg 9564cbc4e2beSmrg 9565cbc4e2beSmrg 9566cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9567cbc4e2beSmrg 9568cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9569cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9570433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9571433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9572433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9573433d0511Smrgthen : 9574433d0511Smrg printf %s "(cached) " >&6 9575433d0511Smrgelse case e in #( 9576433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577cbc4e2beSmrg/* end confdefs.h. */ 9578cbc4e2beSmrgint i; 9579cbc4e2beSmrg_ACEOF 9580433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9581433d0511Smrgthen : 9582cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9583433d0511Smrgelse case e in #( 9584433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9585433d0511Smrgesac 9586cbc4e2beSmrgfi 9587433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9588433d0511Smrgesac 9589cbc4e2beSmrgfi 9590433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9594cbc4e2beSmrgfi 9595cbc4e2beSmrg 9596cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599cbc4e2beSmrg fi 9600cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9604433d0511Smrgthen : 9605433d0511Smrg printf %s "(cached) " >&6 9606433d0511Smrgelse case e in #( 9607433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608cbc4e2beSmrg/* end confdefs.h. */ 9609cbc4e2beSmrgint i; 9610cbc4e2beSmrg_ACEOF 9611433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9612433d0511Smrgthen : 9613cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9614433d0511Smrgelse case e in #( 9615433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9616433d0511Smrgesac 9617cbc4e2beSmrgfi 9618433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9619433d0511Smrgesac 9620cbc4e2beSmrgfi 9621433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9622433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9623cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9624cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9625cbc4e2beSmrgfi 9626cbc4e2beSmrg 9627cbc4e2beSmrgfound="no" 9628cbc4e2beSmrg 9629cbc4e2beSmrg if test $found = "no" ; then 9630d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9631cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632cbc4e2beSmrg fi 9633cbc4e2beSmrg 9634d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9635cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9636cbc4e2beSmrg fi 9637cbc4e2beSmrg 9638cbc4e2beSmrg CFLAGS="$CFLAGS -Wmain" 9639cbc4e2beSmrg 9640433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9641433d0511Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 9642cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wmain 9643433d0511Smrg if eval test \${$cacheid+y} 9644433d0511Smrgthen : 9645433d0511Smrg printf %s "(cached) " >&6 9646433d0511Smrgelse case e in #( 9647433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648cbc4e2beSmrg/* end confdefs.h. */ 9649cbc4e2beSmrgint i; 9650cbc4e2beSmrgint 9651433d0511Smrgmain (void) 9652cbc4e2beSmrg{ 9653cbc4e2beSmrg 9654cbc4e2beSmrg ; 9655cbc4e2beSmrg return 0; 9656cbc4e2beSmrg} 9657cbc4e2beSmrg_ACEOF 9658433d0511Smrgif ac_fn_c_try_link "$LINENO" 9659433d0511Smrgthen : 9660cbc4e2beSmrg eval $cacheid=yes 9661433d0511Smrgelse case e in #( 9662433d0511Smrg e) eval $cacheid=no ;; 9663433d0511Smrgesac 9664cbc4e2beSmrgfi 9665433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9666433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9667433d0511Smrgesac 9668cbc4e2beSmrgfi 9669cbc4e2beSmrg 9670cbc4e2beSmrg 9671cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9672cbc4e2beSmrg 9673cbc4e2beSmrg eval supported=\$$cacheid 9674433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675433d0511Smrgprintf "%s\n" "$supported" >&6; } 9676cbc4e2beSmrg if test "$supported" = "yes" ; then 9677cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9678cbc4e2beSmrg found="yes" 9679cbc4e2beSmrg fi 9680cbc4e2beSmrg fi 9681cbc4e2beSmrg 9682cbc4e2beSmrg 9683cbc4e2beSmrg 9684cbc4e2beSmrg 9685cbc4e2beSmrg 9686cbc4e2beSmrg 9687cbc4e2beSmrg 9688cbc4e2beSmrg 9689cbc4e2beSmrg 9690cbc4e2beSmrg 9691cbc4e2beSmrg 9692cbc4e2beSmrg 9693cbc4e2beSmrg 9694cbc4e2beSmrg 9695cbc4e2beSmrg 9696cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9697cbc4e2beSmrg 9698cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9703433d0511Smrgthen : 9704433d0511Smrg printf %s "(cached) " >&6 9705433d0511Smrgelse case e in #( 9706433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707cbc4e2beSmrg/* end confdefs.h. */ 9708cbc4e2beSmrgint i; 9709cbc4e2beSmrg_ACEOF 9710433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9711433d0511Smrgthen : 9712cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9713433d0511Smrgelse case e in #( 9714433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9715433d0511Smrgesac 9716cbc4e2beSmrgfi 9717433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9718433d0511Smrgesac 9719cbc4e2beSmrgfi 9720433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9721433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9722cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9723cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9724cbc4e2beSmrgfi 9725cbc4e2beSmrg 9726cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9727cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9728cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9729cbc4e2beSmrg fi 9730cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9731433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9732433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9733433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9734433d0511Smrgthen : 9735433d0511Smrg printf %s "(cached) " >&6 9736433d0511Smrgelse case e in #( 9737433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738cbc4e2beSmrg/* end confdefs.h. */ 9739cbc4e2beSmrgint i; 9740cbc4e2beSmrg_ACEOF 9741433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9742433d0511Smrgthen : 9743cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9744433d0511Smrgelse case e in #( 9745433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9746433d0511Smrgesac 9747cbc4e2beSmrgfi 9748433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9749433d0511Smrgesac 9750cbc4e2beSmrgfi 9751433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9752433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9753cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9754cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9755cbc4e2beSmrgfi 9756cbc4e2beSmrg 9757cbc4e2beSmrgfound="no" 9758cbc4e2beSmrg 9759cbc4e2beSmrg if test $found = "no" ; then 9760d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9761cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9762cbc4e2beSmrg fi 9763cbc4e2beSmrg 9764d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9765cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9766cbc4e2beSmrg fi 9767cbc4e2beSmrg 9768cbc4e2beSmrg CFLAGS="$CFLAGS -Wmissing-braces" 9769cbc4e2beSmrg 9770433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9771433d0511Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9772cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9773433d0511Smrg if eval test \${$cacheid+y} 9774433d0511Smrgthen : 9775433d0511Smrg printf %s "(cached) " >&6 9776433d0511Smrgelse case e in #( 9777433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778cbc4e2beSmrg/* end confdefs.h. */ 9779cbc4e2beSmrgint i; 9780cbc4e2beSmrgint 9781433d0511Smrgmain (void) 9782cbc4e2beSmrg{ 9783cbc4e2beSmrg 9784cbc4e2beSmrg ; 9785cbc4e2beSmrg return 0; 9786cbc4e2beSmrg} 9787cbc4e2beSmrg_ACEOF 9788433d0511Smrgif ac_fn_c_try_link "$LINENO" 9789433d0511Smrgthen : 9790cbc4e2beSmrg eval $cacheid=yes 9791433d0511Smrgelse case e in #( 9792433d0511Smrg e) eval $cacheid=no ;; 9793433d0511Smrgesac 9794cbc4e2beSmrgfi 9795433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9796433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9797433d0511Smrgesac 9798cbc4e2beSmrgfi 9799cbc4e2beSmrg 9800cbc4e2beSmrg 9801cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9802cbc4e2beSmrg 9803cbc4e2beSmrg eval supported=\$$cacheid 9804433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9805433d0511Smrgprintf "%s\n" "$supported" >&6; } 9806cbc4e2beSmrg if test "$supported" = "yes" ; then 9807cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9808cbc4e2beSmrg found="yes" 9809cbc4e2beSmrg fi 9810cbc4e2beSmrg fi 9811cbc4e2beSmrg 9812cbc4e2beSmrg 9813cbc4e2beSmrg 9814cbc4e2beSmrg 9815cbc4e2beSmrg 9816cbc4e2beSmrg 9817cbc4e2beSmrg 9818cbc4e2beSmrg 9819cbc4e2beSmrg 9820cbc4e2beSmrg 9821cbc4e2beSmrg 9822cbc4e2beSmrg 9823cbc4e2beSmrg 9824cbc4e2beSmrg 9825cbc4e2beSmrg 9826cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9827cbc4e2beSmrg 9828cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9829cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9830433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9831433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9832433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9833433d0511Smrgthen : 9834433d0511Smrg printf %s "(cached) " >&6 9835433d0511Smrgelse case e in #( 9836433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837cbc4e2beSmrg/* end confdefs.h. */ 9838cbc4e2beSmrgint i; 9839cbc4e2beSmrg_ACEOF 9840433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9841433d0511Smrgthen : 9842cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9843433d0511Smrgelse case e in #( 9844433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9845433d0511Smrgesac 9846cbc4e2beSmrgfi 9847433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9848433d0511Smrgesac 9849cbc4e2beSmrgfi 9850433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9851433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9852cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9853cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9854cbc4e2beSmrgfi 9855cbc4e2beSmrg 9856cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9857cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9858cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859cbc4e2beSmrg fi 9860cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9862433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9863433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9864433d0511Smrgthen : 9865433d0511Smrg printf %s "(cached) " >&6 9866433d0511Smrgelse case e in #( 9867433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9868cbc4e2beSmrg/* end confdefs.h. */ 9869cbc4e2beSmrgint i; 9870cbc4e2beSmrg_ACEOF 9871433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9872433d0511Smrgthen : 9873cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9874433d0511Smrgelse case e in #( 9875433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9876433d0511Smrgesac 9877cbc4e2beSmrgfi 9878433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9879433d0511Smrgesac 9880cbc4e2beSmrgfi 9881433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9882433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9883cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9884cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9885cbc4e2beSmrgfi 9886cbc4e2beSmrg 9887cbc4e2beSmrgfound="no" 9888cbc4e2beSmrg 9889cbc4e2beSmrg if test $found = "no" ; then 9890d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9891cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892cbc4e2beSmrg fi 9893cbc4e2beSmrg 9894d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9895cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896cbc4e2beSmrg fi 9897cbc4e2beSmrg 9898cbc4e2beSmrg CFLAGS="$CFLAGS -Wsequence-point" 9899cbc4e2beSmrg 9900433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9901433d0511Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 9902cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wsequence_point 9903433d0511Smrg if eval test \${$cacheid+y} 9904433d0511Smrgthen : 9905433d0511Smrg printf %s "(cached) " >&6 9906433d0511Smrgelse case e in #( 9907433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908cbc4e2beSmrg/* end confdefs.h. */ 9909cbc4e2beSmrgint i; 9910cbc4e2beSmrgint 9911433d0511Smrgmain (void) 9912cbc4e2beSmrg{ 9913cbc4e2beSmrg 9914cbc4e2beSmrg ; 9915cbc4e2beSmrg return 0; 9916cbc4e2beSmrg} 9917cbc4e2beSmrg_ACEOF 9918433d0511Smrgif ac_fn_c_try_link "$LINENO" 9919433d0511Smrgthen : 9920cbc4e2beSmrg eval $cacheid=yes 9921433d0511Smrgelse case e in #( 9922433d0511Smrg e) eval $cacheid=no ;; 9923433d0511Smrgesac 9924cbc4e2beSmrgfi 9925433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9926433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 9927433d0511Smrgesac 9928cbc4e2beSmrgfi 9929cbc4e2beSmrg 9930cbc4e2beSmrg 9931cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9932cbc4e2beSmrg 9933cbc4e2beSmrg eval supported=\$$cacheid 9934433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9935433d0511Smrgprintf "%s\n" "$supported" >&6; } 9936cbc4e2beSmrg if test "$supported" = "yes" ; then 9937cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9938cbc4e2beSmrg found="yes" 9939cbc4e2beSmrg fi 9940cbc4e2beSmrg fi 9941cbc4e2beSmrg 9942cbc4e2beSmrg 9943cbc4e2beSmrg 9944cbc4e2beSmrg 9945cbc4e2beSmrg 9946cbc4e2beSmrg 9947cbc4e2beSmrg 9948cbc4e2beSmrg 9949cbc4e2beSmrg 9950cbc4e2beSmrg 9951cbc4e2beSmrg 9952cbc4e2beSmrg 9953cbc4e2beSmrg 9954cbc4e2beSmrg 9955cbc4e2beSmrg 9956cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 9957cbc4e2beSmrg 9958cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9959cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9961433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9962433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9963433d0511Smrgthen : 9964433d0511Smrg printf %s "(cached) " >&6 9965433d0511Smrgelse case e in #( 9966433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967cbc4e2beSmrg/* end confdefs.h. */ 9968cbc4e2beSmrgint i; 9969cbc4e2beSmrg_ACEOF 9970433d0511Smrgif ac_fn_c_try_compile "$LINENO" 9971433d0511Smrgthen : 9972cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9973433d0511Smrgelse case e in #( 9974433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9975433d0511Smrgesac 9976cbc4e2beSmrgfi 9977433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9978433d0511Smrgesac 9979cbc4e2beSmrgfi 9980433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9981433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9982cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9983cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 9984cbc4e2beSmrgfi 9985cbc4e2beSmrg 9986cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9987cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989cbc4e2beSmrg fi 9990cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9992433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9993433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9994433d0511Smrgthen : 9995433d0511Smrg printf %s "(cached) " >&6 9996433d0511Smrgelse case e in #( 9997433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9998cbc4e2beSmrg/* end confdefs.h. */ 9999cbc4e2beSmrgint i; 10000cbc4e2beSmrg_ACEOF 10001433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10002433d0511Smrgthen : 10003cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10004433d0511Smrgelse case e in #( 10005433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10006433d0511Smrgesac 10007cbc4e2beSmrgfi 10008433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10009433d0511Smrgesac 10010cbc4e2beSmrgfi 10011433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10012433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10013cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10014cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10015cbc4e2beSmrgfi 10016cbc4e2beSmrg 10017cbc4e2beSmrgfound="no" 10018cbc4e2beSmrg 10019cbc4e2beSmrg if test $found = "no" ; then 10020d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022cbc4e2beSmrg fi 10023cbc4e2beSmrg 10024d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10025cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026cbc4e2beSmrg fi 10027cbc4e2beSmrg 10028cbc4e2beSmrg CFLAGS="$CFLAGS -Wreturn-type" 10029cbc4e2beSmrg 10030433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10031433d0511Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 10032cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wreturn_type 10033433d0511Smrg if eval test \${$cacheid+y} 10034433d0511Smrgthen : 10035433d0511Smrg printf %s "(cached) " >&6 10036433d0511Smrgelse case e in #( 10037433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038cbc4e2beSmrg/* end confdefs.h. */ 10039cbc4e2beSmrgint i; 10040cbc4e2beSmrgint 10041433d0511Smrgmain (void) 10042cbc4e2beSmrg{ 10043cbc4e2beSmrg 10044cbc4e2beSmrg ; 10045cbc4e2beSmrg return 0; 10046cbc4e2beSmrg} 10047cbc4e2beSmrg_ACEOF 10048433d0511Smrgif ac_fn_c_try_link "$LINENO" 10049433d0511Smrgthen : 10050cbc4e2beSmrg eval $cacheid=yes 10051433d0511Smrgelse case e in #( 10052433d0511Smrg e) eval $cacheid=no ;; 10053433d0511Smrgesac 10054cbc4e2beSmrgfi 10055433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10056433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10057433d0511Smrgesac 10058cbc4e2beSmrgfi 10059cbc4e2beSmrg 10060cbc4e2beSmrg 10061cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10062cbc4e2beSmrg 10063cbc4e2beSmrg eval supported=\$$cacheid 10064433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10065433d0511Smrgprintf "%s\n" "$supported" >&6; } 10066cbc4e2beSmrg if test "$supported" = "yes" ; then 10067cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10068cbc4e2beSmrg found="yes" 10069cbc4e2beSmrg fi 10070cbc4e2beSmrg fi 10071cbc4e2beSmrg 10072cbc4e2beSmrg 10073cbc4e2beSmrg 10074cbc4e2beSmrg 10075cbc4e2beSmrg 10076cbc4e2beSmrg 10077cbc4e2beSmrg 10078cbc4e2beSmrg 10079cbc4e2beSmrg 10080cbc4e2beSmrg 10081cbc4e2beSmrg 10082cbc4e2beSmrg 10083cbc4e2beSmrg 10084cbc4e2beSmrg 10085cbc4e2beSmrg 10086cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10087cbc4e2beSmrg 10088cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10089cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10091433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10092433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10093433d0511Smrgthen : 10094433d0511Smrg printf %s "(cached) " >&6 10095433d0511Smrgelse case e in #( 10096433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097cbc4e2beSmrg/* end confdefs.h. */ 10098cbc4e2beSmrgint i; 10099cbc4e2beSmrg_ACEOF 10100433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10101433d0511Smrgthen : 10102cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10103433d0511Smrgelse case e in #( 10104433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10105433d0511Smrgesac 10106cbc4e2beSmrgfi 10107433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10108433d0511Smrgesac 10109cbc4e2beSmrgfi 10110433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10111433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10112cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10113cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10114cbc4e2beSmrgfi 10115cbc4e2beSmrg 10116cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10117cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10118cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10119cbc4e2beSmrg fi 10120cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10121433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10122433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10123433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10124433d0511Smrgthen : 10125433d0511Smrg printf %s "(cached) " >&6 10126433d0511Smrgelse case e in #( 10127433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128cbc4e2beSmrg/* end confdefs.h. */ 10129cbc4e2beSmrgint i; 10130cbc4e2beSmrg_ACEOF 10131433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10132433d0511Smrgthen : 10133cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10134433d0511Smrgelse case e in #( 10135433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10136433d0511Smrgesac 10137cbc4e2beSmrgfi 10138433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10139433d0511Smrgesac 10140cbc4e2beSmrgfi 10141433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10142433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10143cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10144cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10145cbc4e2beSmrgfi 10146cbc4e2beSmrg 10147cbc4e2beSmrgfound="no" 10148cbc4e2beSmrg 10149cbc4e2beSmrg if test $found = "no" ; then 10150d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10151cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152cbc4e2beSmrg fi 10153cbc4e2beSmrg 10154d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10155cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10156cbc4e2beSmrg fi 10157cbc4e2beSmrg 10158cbc4e2beSmrg CFLAGS="$CFLAGS -Wtrigraphs" 10159cbc4e2beSmrg 10160433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10161433d0511Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10162cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wtrigraphs 10163433d0511Smrg if eval test \${$cacheid+y} 10164433d0511Smrgthen : 10165433d0511Smrg printf %s "(cached) " >&6 10166433d0511Smrgelse case e in #( 10167433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168cbc4e2beSmrg/* end confdefs.h. */ 10169cbc4e2beSmrgint i; 10170cbc4e2beSmrgint 10171433d0511Smrgmain (void) 10172cbc4e2beSmrg{ 10173cbc4e2beSmrg 10174cbc4e2beSmrg ; 10175cbc4e2beSmrg return 0; 10176cbc4e2beSmrg} 10177cbc4e2beSmrg_ACEOF 10178433d0511Smrgif ac_fn_c_try_link "$LINENO" 10179433d0511Smrgthen : 10180cbc4e2beSmrg eval $cacheid=yes 10181433d0511Smrgelse case e in #( 10182433d0511Smrg e) eval $cacheid=no ;; 10183433d0511Smrgesac 10184cbc4e2beSmrgfi 10185433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10186433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10187433d0511Smrgesac 10188cbc4e2beSmrgfi 10189cbc4e2beSmrg 10190cbc4e2beSmrg 10191cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10192cbc4e2beSmrg 10193cbc4e2beSmrg eval supported=\$$cacheid 10194433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10195433d0511Smrgprintf "%s\n" "$supported" >&6; } 10196cbc4e2beSmrg if test "$supported" = "yes" ; then 10197cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10198cbc4e2beSmrg found="yes" 10199cbc4e2beSmrg fi 10200cbc4e2beSmrg fi 10201cbc4e2beSmrg 10202cbc4e2beSmrg 10203cbc4e2beSmrg 10204cbc4e2beSmrg 10205cbc4e2beSmrg 10206cbc4e2beSmrg 10207cbc4e2beSmrg 10208cbc4e2beSmrg 10209cbc4e2beSmrg 10210cbc4e2beSmrg 10211cbc4e2beSmrg 10212cbc4e2beSmrg 10213cbc4e2beSmrg 10214cbc4e2beSmrg 10215cbc4e2beSmrg 10216cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10217cbc4e2beSmrg 10218cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10219cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10221433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10222433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10223433d0511Smrgthen : 10224433d0511Smrg printf %s "(cached) " >&6 10225433d0511Smrgelse case e in #( 10226433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227cbc4e2beSmrg/* end confdefs.h. */ 10228cbc4e2beSmrgint i; 10229cbc4e2beSmrg_ACEOF 10230433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10231433d0511Smrgthen : 10232cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10233433d0511Smrgelse case e in #( 10234433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10235433d0511Smrgesac 10236cbc4e2beSmrgfi 10237433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10238433d0511Smrgesac 10239cbc4e2beSmrgfi 10240433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10241433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10242cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10243cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10244cbc4e2beSmrgfi 10245cbc4e2beSmrg 10246cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10247cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10248cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249cbc4e2beSmrg fi 10250cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10251433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10252433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10253433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10254433d0511Smrgthen : 10255433d0511Smrg printf %s "(cached) " >&6 10256433d0511Smrgelse case e in #( 10257433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258cbc4e2beSmrg/* end confdefs.h. */ 10259cbc4e2beSmrgint i; 10260cbc4e2beSmrg_ACEOF 10261433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10262433d0511Smrgthen : 10263cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10264433d0511Smrgelse case e in #( 10265433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10266433d0511Smrgesac 10267cbc4e2beSmrgfi 10268433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10269433d0511Smrgesac 10270cbc4e2beSmrgfi 10271433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10272433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10273cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10274cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10275cbc4e2beSmrgfi 10276cbc4e2beSmrg 10277cbc4e2beSmrgfound="no" 10278cbc4e2beSmrg 10279cbc4e2beSmrg if test $found = "no" ; then 10280d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10281cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10282cbc4e2beSmrg fi 10283cbc4e2beSmrg 10284d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10285cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286cbc4e2beSmrg fi 10287cbc4e2beSmrg 10288cbc4e2beSmrg CFLAGS="$CFLAGS -Warray-bounds" 10289cbc4e2beSmrg 10290433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10291433d0511Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 10292cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Warray_bounds 10293433d0511Smrg if eval test \${$cacheid+y} 10294433d0511Smrgthen : 10295433d0511Smrg printf %s "(cached) " >&6 10296433d0511Smrgelse case e in #( 10297433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298cbc4e2beSmrg/* end confdefs.h. */ 10299cbc4e2beSmrgint i; 10300cbc4e2beSmrgint 10301433d0511Smrgmain (void) 10302cbc4e2beSmrg{ 10303cbc4e2beSmrg 10304cbc4e2beSmrg ; 10305cbc4e2beSmrg return 0; 10306cbc4e2beSmrg} 10307cbc4e2beSmrg_ACEOF 10308433d0511Smrgif ac_fn_c_try_link "$LINENO" 10309433d0511Smrgthen : 10310cbc4e2beSmrg eval $cacheid=yes 10311433d0511Smrgelse case e in #( 10312433d0511Smrg e) eval $cacheid=no ;; 10313433d0511Smrgesac 10314cbc4e2beSmrgfi 10315433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10316433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10317433d0511Smrgesac 10318cbc4e2beSmrgfi 10319cbc4e2beSmrg 10320cbc4e2beSmrg 10321cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10322cbc4e2beSmrg 10323cbc4e2beSmrg eval supported=\$$cacheid 10324433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10325433d0511Smrgprintf "%s\n" "$supported" >&6; } 10326cbc4e2beSmrg if test "$supported" = "yes" ; then 10327cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10328cbc4e2beSmrg found="yes" 10329cbc4e2beSmrg fi 10330cbc4e2beSmrg fi 10331cbc4e2beSmrg 10332cbc4e2beSmrg 10333cbc4e2beSmrg 10334cbc4e2beSmrg 10335cbc4e2beSmrg 10336cbc4e2beSmrg 10337cbc4e2beSmrg 10338cbc4e2beSmrg 10339cbc4e2beSmrg 10340cbc4e2beSmrg 10341cbc4e2beSmrg 10342cbc4e2beSmrg 10343cbc4e2beSmrg 10344cbc4e2beSmrg 10345cbc4e2beSmrg 10346cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10347cbc4e2beSmrg 10348cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10349cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10351433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10352433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10353433d0511Smrgthen : 10354433d0511Smrg printf %s "(cached) " >&6 10355433d0511Smrgelse case e in #( 10356433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357cbc4e2beSmrg/* end confdefs.h. */ 10358cbc4e2beSmrgint i; 10359cbc4e2beSmrg_ACEOF 10360433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10361433d0511Smrgthen : 10362cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10363433d0511Smrgelse case e in #( 10364433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10365433d0511Smrgesac 10366cbc4e2beSmrgfi 10367433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10368433d0511Smrgesac 10369cbc4e2beSmrgfi 10370433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10371433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10372cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10373cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10374cbc4e2beSmrgfi 10375cbc4e2beSmrg 10376cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10377cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10378cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379cbc4e2beSmrg fi 10380cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10382433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10383433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10384433d0511Smrgthen : 10385433d0511Smrg printf %s "(cached) " >&6 10386433d0511Smrgelse case e in #( 10387433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388cbc4e2beSmrg/* end confdefs.h. */ 10389cbc4e2beSmrgint i; 10390cbc4e2beSmrg_ACEOF 10391433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10392433d0511Smrgthen : 10393cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10394433d0511Smrgelse case e in #( 10395433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10396433d0511Smrgesac 10397cbc4e2beSmrgfi 10398433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10399433d0511Smrgesac 10400cbc4e2beSmrgfi 10401433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10402433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10403cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10404cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10405cbc4e2beSmrgfi 10406cbc4e2beSmrg 10407cbc4e2beSmrgfound="no" 10408cbc4e2beSmrg 10409cbc4e2beSmrg if test $found = "no" ; then 10410d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10411cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10412cbc4e2beSmrg fi 10413cbc4e2beSmrg 10414d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10415cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10416cbc4e2beSmrg fi 10417cbc4e2beSmrg 10418cbc4e2beSmrg CFLAGS="$CFLAGS -Wwrite-strings" 10419cbc4e2beSmrg 10420433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10421433d0511Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10422cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10423433d0511Smrg if eval test \${$cacheid+y} 10424433d0511Smrgthen : 10425433d0511Smrg printf %s "(cached) " >&6 10426433d0511Smrgelse case e in #( 10427433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428cbc4e2beSmrg/* end confdefs.h. */ 10429cbc4e2beSmrgint i; 10430cbc4e2beSmrgint 10431433d0511Smrgmain (void) 10432cbc4e2beSmrg{ 10433cbc4e2beSmrg 10434cbc4e2beSmrg ; 10435cbc4e2beSmrg return 0; 10436cbc4e2beSmrg} 10437cbc4e2beSmrg_ACEOF 10438433d0511Smrgif ac_fn_c_try_link "$LINENO" 10439433d0511Smrgthen : 10440cbc4e2beSmrg eval $cacheid=yes 10441433d0511Smrgelse case e in #( 10442433d0511Smrg e) eval $cacheid=no ;; 10443433d0511Smrgesac 10444cbc4e2beSmrgfi 10445433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10446433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10447433d0511Smrgesac 10448cbc4e2beSmrgfi 10449cbc4e2beSmrg 10450cbc4e2beSmrg 10451cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10452cbc4e2beSmrg 10453cbc4e2beSmrg eval supported=\$$cacheid 10454433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10455433d0511Smrgprintf "%s\n" "$supported" >&6; } 10456cbc4e2beSmrg if test "$supported" = "yes" ; then 10457cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10458cbc4e2beSmrg found="yes" 10459cbc4e2beSmrg fi 10460cbc4e2beSmrg fi 10461cbc4e2beSmrg 10462cbc4e2beSmrg 10463cbc4e2beSmrg 10464cbc4e2beSmrg 10465cbc4e2beSmrg 10466cbc4e2beSmrg 10467cbc4e2beSmrg 10468cbc4e2beSmrg 10469cbc4e2beSmrg 10470cbc4e2beSmrg 10471cbc4e2beSmrg 10472cbc4e2beSmrg 10473cbc4e2beSmrg 10474cbc4e2beSmrg 10475cbc4e2beSmrg 10476cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10477cbc4e2beSmrg 10478cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10479cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10480433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10481433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10482433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10483433d0511Smrgthen : 10484433d0511Smrg printf %s "(cached) " >&6 10485433d0511Smrgelse case e in #( 10486433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487cbc4e2beSmrg/* end confdefs.h. */ 10488cbc4e2beSmrgint i; 10489cbc4e2beSmrg_ACEOF 10490433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10491433d0511Smrgthen : 10492cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10493433d0511Smrgelse case e in #( 10494433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10495433d0511Smrgesac 10496cbc4e2beSmrgfi 10497433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10498433d0511Smrgesac 10499cbc4e2beSmrgfi 10500433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10501433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10502cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10503cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10504cbc4e2beSmrgfi 10505cbc4e2beSmrg 10506cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10507cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10508cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509cbc4e2beSmrg fi 10510cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10511433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10512433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10513433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10514433d0511Smrgthen : 10515433d0511Smrg printf %s "(cached) " >&6 10516433d0511Smrgelse case e in #( 10517433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518cbc4e2beSmrg/* end confdefs.h. */ 10519cbc4e2beSmrgint i; 10520cbc4e2beSmrg_ACEOF 10521433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10522433d0511Smrgthen : 10523cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10524433d0511Smrgelse case e in #( 10525433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10526433d0511Smrgesac 10527cbc4e2beSmrgfi 10528433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10529433d0511Smrgesac 10530cbc4e2beSmrgfi 10531433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10532433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10533cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10534cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10535cbc4e2beSmrgfi 10536cbc4e2beSmrg 10537cbc4e2beSmrgfound="no" 10538cbc4e2beSmrg 10539cbc4e2beSmrg if test $found = "no" ; then 10540d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10541cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10542cbc4e2beSmrg fi 10543cbc4e2beSmrg 10544d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10545cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10546cbc4e2beSmrg fi 10547cbc4e2beSmrg 10548cbc4e2beSmrg CFLAGS="$CFLAGS -Waddress" 10549cbc4e2beSmrg 10550433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10551433d0511Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 10552cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Waddress 10553433d0511Smrg if eval test \${$cacheid+y} 10554433d0511Smrgthen : 10555433d0511Smrg printf %s "(cached) " >&6 10556433d0511Smrgelse case e in #( 10557433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558cbc4e2beSmrg/* end confdefs.h. */ 10559cbc4e2beSmrgint i; 10560cbc4e2beSmrgint 10561433d0511Smrgmain (void) 10562cbc4e2beSmrg{ 10563cbc4e2beSmrg 10564cbc4e2beSmrg ; 10565cbc4e2beSmrg return 0; 10566cbc4e2beSmrg} 10567cbc4e2beSmrg_ACEOF 10568433d0511Smrgif ac_fn_c_try_link "$LINENO" 10569433d0511Smrgthen : 10570cbc4e2beSmrg eval $cacheid=yes 10571433d0511Smrgelse case e in #( 10572433d0511Smrg e) eval $cacheid=no ;; 10573433d0511Smrgesac 10574cbc4e2beSmrgfi 10575433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10576433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10577433d0511Smrgesac 1057895e0246bSmrgfi 1057995e0246bSmrg 1058095e0246bSmrg 10581cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1058295e0246bSmrg 10583cbc4e2beSmrg eval supported=\$$cacheid 10584433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10585433d0511Smrgprintf "%s\n" "$supported" >&6; } 10586cbc4e2beSmrg if test "$supported" = "yes" ; then 10587cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10588cbc4e2beSmrg found="yes" 10589cbc4e2beSmrg fi 10590cbc4e2beSmrg fi 1059195e0246bSmrg 105922b32c8f7Smrg 105932b32c8f7Smrg 10594cbc4e2beSmrg 10595cbc4e2beSmrg 10596cbc4e2beSmrg 10597cbc4e2beSmrg 10598cbc4e2beSmrg 10599cbc4e2beSmrg 10600cbc4e2beSmrg 10601cbc4e2beSmrg 10602cbc4e2beSmrg 10603cbc4e2beSmrg 10604cbc4e2beSmrg 10605cbc4e2beSmrg 10606cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10607cbc4e2beSmrg 10608cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10609cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10611433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10612433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10613433d0511Smrgthen : 10614433d0511Smrg printf %s "(cached) " >&6 10615433d0511Smrgelse case e in #( 10616433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617cbc4e2beSmrg/* end confdefs.h. */ 10618cbc4e2beSmrgint i; 10619cbc4e2beSmrg_ACEOF 10620433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10621433d0511Smrgthen : 10622cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10623433d0511Smrgelse case e in #( 10624433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10625433d0511Smrgesac 1062695e0246bSmrgfi 10627433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10628433d0511Smrgesac 1062995e0246bSmrgfi 10630433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10631433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10632cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10633cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1063495e0246bSmrgfi 106352b32c8f7Smrg 10636cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10637cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10638cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639cbc4e2beSmrg fi 10640cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10642433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10643433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10644433d0511Smrgthen : 10645433d0511Smrg printf %s "(cached) " >&6 10646433d0511Smrgelse case e in #( 10647433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648cbc4e2beSmrg/* end confdefs.h. */ 10649cbc4e2beSmrgint i; 10650cbc4e2beSmrg_ACEOF 10651433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10652433d0511Smrgthen : 10653cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10654433d0511Smrgelse case e in #( 10655433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10656433d0511Smrgesac 1065795e0246bSmrgfi 10658433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10659433d0511Smrgesac 1066095e0246bSmrgfi 10661433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10662433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10663cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10664cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1066595e0246bSmrgfi 106662b32c8f7Smrg 10667cbc4e2beSmrgfound="no" 10668cbc4e2beSmrg 10669cbc4e2beSmrg if test $found = "no" ; then 10670d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10671cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10672cbc4e2beSmrg fi 10673cbc4e2beSmrg 10674d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10675cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10676cbc4e2beSmrg fi 10677cbc4e2beSmrg 10678cbc4e2beSmrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10679cbc4e2beSmrg 10680433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10681433d0511Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10682cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10683433d0511Smrg if eval test \${$cacheid+y} 10684433d0511Smrgthen : 10685433d0511Smrg printf %s "(cached) " >&6 10686433d0511Smrgelse case e in #( 10687433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10688cbc4e2beSmrg/* end confdefs.h. */ 10689cbc4e2beSmrgint i; 10690cbc4e2beSmrgint 10691433d0511Smrgmain (void) 10692cbc4e2beSmrg{ 10693cbc4e2beSmrg 10694cbc4e2beSmrg ; 10695cbc4e2beSmrg return 0; 10696cbc4e2beSmrg} 10697cbc4e2beSmrg_ACEOF 10698433d0511Smrgif ac_fn_c_try_link "$LINENO" 10699433d0511Smrgthen : 10700cbc4e2beSmrg eval $cacheid=yes 10701433d0511Smrgelse case e in #( 10702433d0511Smrg e) eval $cacheid=no ;; 10703433d0511Smrgesac 10704cbc4e2beSmrgfi 10705433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10706433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10707433d0511Smrgesac 1070895e0246bSmrgfi 1070995e0246bSmrg 10710cbc4e2beSmrg 10711cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10712cbc4e2beSmrg 10713cbc4e2beSmrg eval supported=\$$cacheid 10714433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10715433d0511Smrgprintf "%s\n" "$supported" >&6; } 10716cbc4e2beSmrg if test "$supported" = "yes" ; then 10717cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10718cbc4e2beSmrg found="yes" 10719cbc4e2beSmrg fi 10720cbc4e2beSmrg fi 10721cbc4e2beSmrg 10722cbc4e2beSmrg 10723cbc4e2beSmrg 10724cbc4e2beSmrg 10725cbc4e2beSmrg 10726cbc4e2beSmrg 10727cbc4e2beSmrg 10728cbc4e2beSmrg 10729cbc4e2beSmrg 10730cbc4e2beSmrg 10731cbc4e2beSmrg 10732cbc4e2beSmrg 10733cbc4e2beSmrg 10734cbc4e2beSmrg 10735cbc4e2beSmrg 10736cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10737cbc4e2beSmrg 10738cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10739cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10740433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10741433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10742433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10743433d0511Smrgthen : 10744433d0511Smrg printf %s "(cached) " >&6 10745433d0511Smrgelse case e in #( 10746433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747cbc4e2beSmrg/* end confdefs.h. */ 10748cbc4e2beSmrgint i; 10749cbc4e2beSmrg_ACEOF 10750433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10751433d0511Smrgthen : 10752cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10753433d0511Smrgelse case e in #( 10754433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10755433d0511Smrgesac 1075695e0246bSmrgfi 10757433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10758433d0511Smrgesac 1075995e0246bSmrgfi 10760433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10761433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10762cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10763cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10764cbc4e2beSmrgfi 10765cbc4e2beSmrg 10766cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10767cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10768cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10769cbc4e2beSmrg fi 10770cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10771433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10772433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10773433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10774433d0511Smrgthen : 10775433d0511Smrg printf %s "(cached) " >&6 10776433d0511Smrgelse case e in #( 10777433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10778cbc4e2beSmrg/* end confdefs.h. */ 10779cbc4e2beSmrgint i; 10780cbc4e2beSmrg_ACEOF 10781433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10782433d0511Smrgthen : 10783cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10784433d0511Smrgelse case e in #( 10785433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10786433d0511Smrgesac 10787cbc4e2beSmrgfi 10788433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10789433d0511Smrgesac 10790cbc4e2beSmrgfi 10791433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10792433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10793cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10794cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1079595e0246bSmrgfi 1079695e0246bSmrg 10797cbc4e2beSmrgfound="no" 1079895e0246bSmrg 10799cbc4e2beSmrg if test $found = "no" ; then 10800d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10801cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10802cbc4e2beSmrg fi 10803cbc4e2beSmrg 10804d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10805cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806cbc4e2beSmrg fi 10807cbc4e2beSmrg 10808cbc4e2beSmrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10809cbc4e2beSmrg 10810433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10811433d0511Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10812cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10813433d0511Smrg if eval test \${$cacheid+y} 10814433d0511Smrgthen : 10815433d0511Smrg printf %s "(cached) " >&6 10816433d0511Smrgelse case e in #( 10817433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818cbc4e2beSmrg/* end confdefs.h. */ 10819cbc4e2beSmrgint i; 10820cbc4e2beSmrgint 10821433d0511Smrgmain (void) 10822cbc4e2beSmrg{ 1082395e0246bSmrg 10824cbc4e2beSmrg ; 10825cbc4e2beSmrg return 0; 10826cbc4e2beSmrg} 10827cbc4e2beSmrg_ACEOF 10828433d0511Smrgif ac_fn_c_try_link "$LINENO" 10829433d0511Smrgthen : 10830cbc4e2beSmrg eval $cacheid=yes 10831433d0511Smrgelse case e in #( 10832433d0511Smrg e) eval $cacheid=no ;; 10833433d0511Smrgesac 1083495e0246bSmrgfi 10835433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10836433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 10837433d0511Smrgesac 1083895e0246bSmrgfi 10839cbc4e2beSmrg 10840cbc4e2beSmrg 10841cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 10842cbc4e2beSmrg 10843cbc4e2beSmrg eval supported=\$$cacheid 10844433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10845433d0511Smrgprintf "%s\n" "$supported" >&6; } 10846cbc4e2beSmrg if test "$supported" = "yes" ; then 10847cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10848cbc4e2beSmrg found="yes" 10849cbc4e2beSmrg fi 10850cbc4e2beSmrg fi 10851cbc4e2beSmrg 10852cbc4e2beSmrg 1085395e0246bSmrgfi 10854cbc4e2beSmrg 10855cbc4e2beSmrg 10856cbc4e2beSmrg 10857cbc4e2beSmrg 10858cbc4e2beSmrg 10859cbc4e2beSmrg 10860cbc4e2beSmrg 10861cbc4e2beSmrg CWARNFLAGS="$BASE_CFLAGS" 10862cbc4e2beSmrg if test "x$GCC" = xyes ; then 10863cbc4e2beSmrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10864cbc4e2beSmrg fi 10865cbc4e2beSmrg 10866cbc4e2beSmrg 10867cbc4e2beSmrg 10868cbc4e2beSmrg 10869cbc4e2beSmrg 10870cbc4e2beSmrg 10871cbc4e2beSmrg 10872cbc4e2beSmrg 10873cbc4e2beSmrg# Check whether --enable-strict-compilation was given. 10874433d0511Smrgif test ${enable_strict_compilation+y} 10875433d0511Smrgthen : 10876cbc4e2beSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10877433d0511Smrgelse case e in #( 10878433d0511Smrg e) STRICT_COMPILE=no ;; 10879433d0511Smrgesac 1088095e0246bSmrgfi 1088195e0246bSmrg 1088295e0246bSmrg 10883cbc4e2beSmrg 10884cbc4e2beSmrg 10885cbc4e2beSmrg 10886cbc4e2beSmrg 10887cbc4e2beSmrgSTRICT_CFLAGS="" 10888cbc4e2beSmrg 10889cbc4e2beSmrg 10890cbc4e2beSmrg 10891cbc4e2beSmrg 10892cbc4e2beSmrg 10893cbc4e2beSmrg 10894cbc4e2beSmrg 10895cbc4e2beSmrg 10896cbc4e2beSmrg 10897cbc4e2beSmrg 10898cbc4e2beSmrg 10899cbc4e2beSmrg 10900cbc4e2beSmrg 10901cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 10902cbc4e2beSmrg 10903cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10904cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10905433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10906433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10907433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10908433d0511Smrgthen : 10909433d0511Smrg printf %s "(cached) " >&6 10910433d0511Smrgelse case e in #( 10911433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912cbc4e2beSmrg/* end confdefs.h. */ 10913cbc4e2beSmrgint i; 10914cbc4e2beSmrg_ACEOF 10915433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10916433d0511Smrgthen : 10917cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10918433d0511Smrgelse case e in #( 10919433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10920433d0511Smrgesac 1092195e0246bSmrgfi 10922433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10923433d0511Smrgesac 1092495e0246bSmrgfi 10925433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10926433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10927cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10928cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1092995e0246bSmrgfi 1093095e0246bSmrg 10931cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10932cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10933cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10934cbc4e2beSmrg fi 10935cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10936433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10937433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10938433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10939433d0511Smrgthen : 10940433d0511Smrg printf %s "(cached) " >&6 10941433d0511Smrgelse case e in #( 10942433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943cbc4e2beSmrg/* end confdefs.h. */ 10944cbc4e2beSmrgint i; 10945cbc4e2beSmrg_ACEOF 10946433d0511Smrgif ac_fn_c_try_compile "$LINENO" 10947433d0511Smrgthen : 10948cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10949433d0511Smrgelse case e in #( 10950433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10951433d0511Smrgesac 1095295e0246bSmrgfi 10953433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10954433d0511Smrgesac 1095595e0246bSmrgfi 10956433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10957433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10958cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10959cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1096095e0246bSmrgfi 1096195e0246bSmrg 10962cbc4e2beSmrgfound="no" 1096395e0246bSmrg 10964cbc4e2beSmrg if test $found = "no" ; then 10965d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10966cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10967cbc4e2beSmrg fi 1096895e0246bSmrg 10969d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10970cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10971cbc4e2beSmrg fi 1097295e0246bSmrg 10973cbc4e2beSmrg CFLAGS="$CFLAGS -pedantic" 1097495e0246bSmrg 10975433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10976433d0511Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 10977cbc4e2beSmrg cacheid=xorg_cv_cc_flag__pedantic 10978433d0511Smrg if eval test \${$cacheid+y} 10979433d0511Smrgthen : 10980433d0511Smrg printf %s "(cached) " >&6 10981433d0511Smrgelse case e in #( 10982433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1098395e0246bSmrg/* end confdefs.h. */ 10984cbc4e2beSmrgint i; 1098595e0246bSmrgint 10986433d0511Smrgmain (void) 1098795e0246bSmrg{ 1098895e0246bSmrg 1098995e0246bSmrg ; 1099095e0246bSmrg return 0; 1099195e0246bSmrg} 1099295e0246bSmrg_ACEOF 10993433d0511Smrgif ac_fn_c_try_link "$LINENO" 10994433d0511Smrgthen : 10995cbc4e2beSmrg eval $cacheid=yes 10996433d0511Smrgelse case e in #( 10997433d0511Smrg e) eval $cacheid=no ;; 10998433d0511Smrgesac 10999cbc4e2beSmrgfi 11000433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11001433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 11002433d0511Smrgesac 11003cbc4e2beSmrgfi 11004cbc4e2beSmrg 11005cbc4e2beSmrg 11006cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11007cbc4e2beSmrg 11008cbc4e2beSmrg eval supported=\$$cacheid 11009433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11010433d0511Smrgprintf "%s\n" "$supported" >&6; } 11011cbc4e2beSmrg if test "$supported" = "yes" ; then 11012cbc4e2beSmrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11013cbc4e2beSmrg found="yes" 11014cbc4e2beSmrg fi 11015cbc4e2beSmrg fi 11016cbc4e2beSmrg 11017cbc4e2beSmrg 11018cbc4e2beSmrg 11019cbc4e2beSmrg 11020cbc4e2beSmrg 11021cbc4e2beSmrg 11022cbc4e2beSmrg 11023cbc4e2beSmrg 11024cbc4e2beSmrg 11025cbc4e2beSmrg 11026cbc4e2beSmrg 11027cbc4e2beSmrg 11028cbc4e2beSmrg 11029cbc4e2beSmrg 11030cbc4e2beSmrg 11031cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 11032cbc4e2beSmrg 11033cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11034cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11036433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11037433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 11038433d0511Smrgthen : 11039433d0511Smrg printf %s "(cached) " >&6 11040433d0511Smrgelse case e in #( 11041433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042cbc4e2beSmrg/* end confdefs.h. */ 11043cbc4e2beSmrgint i; 11044cbc4e2beSmrg_ACEOF 11045433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11046433d0511Smrgthen : 11047cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 11048433d0511Smrgelse case e in #( 11049433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11050433d0511Smrgesac 1105195e0246bSmrgfi 11052433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11053433d0511Smrgesac 1105495e0246bSmrgfi 11055433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11056433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11057cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11058cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1105995e0246bSmrgfi 11060cbc4e2beSmrg 11061cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11062cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11063cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11064cbc4e2beSmrg fi 11065cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11066433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11067433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11068433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11069433d0511Smrgthen : 11070433d0511Smrg printf %s "(cached) " >&6 11071433d0511Smrgelse case e in #( 11072433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1107395e0246bSmrg/* end confdefs.h. */ 11074cbc4e2beSmrgint i; 1107595e0246bSmrg_ACEOF 11076433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11077433d0511Smrgthen : 11078cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 11079433d0511Smrgelse case e in #( 11080433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11081433d0511Smrgesac 11082cbc4e2beSmrgfi 11083433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11084433d0511Smrgesac 11085cbc4e2beSmrgfi 11086433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11087433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11088cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11089cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11090cbc4e2beSmrgfi 11091cbc4e2beSmrg 11092cbc4e2beSmrgfound="no" 11093cbc4e2beSmrg 11094cbc4e2beSmrg if test $found = "no" ; then 11095d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11096cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11097cbc4e2beSmrg fi 11098cbc4e2beSmrg 11099d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11100cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11101cbc4e2beSmrg fi 11102cbc4e2beSmrg 11103cbc4e2beSmrg CFLAGS="$CFLAGS -Werror" 11104cbc4e2beSmrg 11105433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11106433d0511Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 11107cbc4e2beSmrg cacheid=xorg_cv_cc_flag__Werror 11108433d0511Smrg if eval test \${$cacheid+y} 11109433d0511Smrgthen : 11110433d0511Smrg printf %s "(cached) " >&6 11111433d0511Smrgelse case e in #( 11112433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1111395e0246bSmrg/* end confdefs.h. */ 11114cbc4e2beSmrgint i; 1111595e0246bSmrgint 11116433d0511Smrgmain (void) 1111795e0246bSmrg{ 1111895e0246bSmrg 1111995e0246bSmrg ; 1112095e0246bSmrg return 0; 1112195e0246bSmrg} 1112295e0246bSmrg_ACEOF 11123433d0511Smrgif ac_fn_c_try_link "$LINENO" 11124433d0511Smrgthen : 11125cbc4e2beSmrg eval $cacheid=yes 11126433d0511Smrgelse case e in #( 11127433d0511Smrg e) eval $cacheid=no ;; 11128433d0511Smrgesac 11129cbc4e2beSmrgfi 11130433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11131433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 11132433d0511Smrgesac 11133cbc4e2beSmrgfi 11134cbc4e2beSmrg 1113595e0246bSmrg 11136cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11137cbc4e2beSmrg 11138cbc4e2beSmrg eval supported=\$$cacheid 11139433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11140433d0511Smrgprintf "%s\n" "$supported" >&6; } 11141cbc4e2beSmrg if test "$supported" = "yes" ; then 11142cbc4e2beSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11143cbc4e2beSmrg found="yes" 11144cbc4e2beSmrg fi 11145cbc4e2beSmrg fi 11146cbc4e2beSmrg 11147cbc4e2beSmrg if test $found = "no" ; then 11148d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11149cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11150cbc4e2beSmrg fi 11151cbc4e2beSmrg 11152d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11153cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11154cbc4e2beSmrg fi 11155cbc4e2beSmrg 11156cbc4e2beSmrg CFLAGS="$CFLAGS -errwarn" 11157cbc4e2beSmrg 11158433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11159433d0511Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 11160cbc4e2beSmrg cacheid=xorg_cv_cc_flag__errwarn 11161433d0511Smrg if eval test \${$cacheid+y} 11162433d0511Smrgthen : 11163433d0511Smrg printf %s "(cached) " >&6 11164433d0511Smrgelse case e in #( 11165433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1116695e0246bSmrg/* end confdefs.h. */ 11167cbc4e2beSmrgint i; 1116895e0246bSmrgint 11169433d0511Smrgmain (void) 1117095e0246bSmrg{ 1117195e0246bSmrg 1117295e0246bSmrg ; 1117395e0246bSmrg return 0; 1117495e0246bSmrg} 1117595e0246bSmrg_ACEOF 11176433d0511Smrgif ac_fn_c_try_link "$LINENO" 11177433d0511Smrgthen : 11178cbc4e2beSmrg eval $cacheid=yes 11179433d0511Smrgelse case e in #( 11180433d0511Smrg e) eval $cacheid=no ;; 11181433d0511Smrgesac 1118295e0246bSmrgfi 11183433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11184433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 11185433d0511Smrgesac 1118695e0246bSmrgfi 11187cbc4e2beSmrg 11188cbc4e2beSmrg 11189cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11190cbc4e2beSmrg 11191cbc4e2beSmrg eval supported=\$$cacheid 11192433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11193433d0511Smrgprintf "%s\n" "$supported" >&6; } 11194cbc4e2beSmrg if test "$supported" = "yes" ; then 11195cbc4e2beSmrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11196cbc4e2beSmrg found="yes" 11197cbc4e2beSmrg fi 11198cbc4e2beSmrg fi 11199cbc4e2beSmrg 11200cbc4e2beSmrg 11201cbc4e2beSmrg 11202cbc4e2beSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11203cbc4e2beSmrg# activate it with -Werror, so we add it here explicitly. 11204cbc4e2beSmrg 11205cbc4e2beSmrg 11206cbc4e2beSmrg 11207cbc4e2beSmrg 11208cbc4e2beSmrg 11209cbc4e2beSmrg 11210cbc4e2beSmrg 11211cbc4e2beSmrg 11212cbc4e2beSmrg 11213cbc4e2beSmrg 11214cbc4e2beSmrg 11215cbc4e2beSmrg 11216cbc4e2beSmrg 11217cbc4e2beSmrgxorg_testset_save_CFLAGS="$CFLAGS" 11218cbc4e2beSmrg 11219cbc4e2beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11220cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11221433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11222433d0511Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11223433d0511Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 11224433d0511Smrgthen : 11225433d0511Smrg printf %s "(cached) " >&6 11226433d0511Smrgelse case e in #( 11227433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228cbc4e2beSmrg/* end confdefs.h. */ 11229cbc4e2beSmrgint i; 11230cbc4e2beSmrg_ACEOF 11231433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11232433d0511Smrgthen : 11233cbc4e2beSmrg xorg_cv_cc_flag_unknown_warning_option=yes 11234433d0511Smrgelse case e in #( 11235433d0511Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11236433d0511Smrgesac 1123795e0246bSmrgfi 11238433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11239433d0511Smrgesac 1124095e0246bSmrgfi 11241433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11242433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11243cbc4e2beSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11244cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 1124595e0246bSmrgfi 11246cbc4e2beSmrg 11247cbc4e2beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11248cbc4e2beSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11249cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11250cbc4e2beSmrg fi 11251cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11252433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11253433d0511Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11254433d0511Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11255433d0511Smrgthen : 11256433d0511Smrg printf %s "(cached) " >&6 11257433d0511Smrgelse case e in #( 11258433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1125995e0246bSmrg/* end confdefs.h. */ 11260cbc4e2beSmrgint i; 11261cbc4e2beSmrg_ACEOF 11262433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11263433d0511Smrgthen : 11264cbc4e2beSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 11265433d0511Smrgelse case e in #( 11266433d0511Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11267433d0511Smrgesac 11268cbc4e2beSmrgfi 11269433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11270433d0511Smrgesac 11271cbc4e2beSmrgfi 11272433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11273433d0511Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11274cbc4e2beSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11275cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11276cbc4e2beSmrgfi 1127795e0246bSmrg 11278cbc4e2beSmrgfound="no" 1127995e0246bSmrg 11280cbc4e2beSmrg if test $found = "no" ; then 11281d1a7ce7bSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11282cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11283cbc4e2beSmrg fi 1128495e0246bSmrg 11285d1a7ce7bSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11286cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11287cbc4e2beSmrg fi 11288cbc4e2beSmrg 11289cbc4e2beSmrg CFLAGS="$CFLAGS -Werror=attributes" 11290cbc4e2beSmrg 11291433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11292433d0511Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 11293d1a7ce7bSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 11294433d0511Smrg if eval test \${$cacheid+y} 11295433d0511Smrgthen : 11296433d0511Smrg printf %s "(cached) " >&6 11297433d0511Smrgelse case e in #( 11298433d0511Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11299cbc4e2beSmrg/* end confdefs.h. */ 11300cbc4e2beSmrgint i; 1130195e0246bSmrgint 11302433d0511Smrgmain (void) 1130395e0246bSmrg{ 11304cbc4e2beSmrg 1130595e0246bSmrg ; 1130695e0246bSmrg return 0; 113072b32c8f7Smrg} 113082b32c8f7Smrg_ACEOF 11309433d0511Smrgif ac_fn_c_try_link "$LINENO" 11310433d0511Smrgthen : 11311cbc4e2beSmrg eval $cacheid=yes 11312433d0511Smrgelse case e in #( 11313433d0511Smrg e) eval $cacheid=no ;; 11314433d0511Smrgesac 11315cbc4e2beSmrgfi 11316433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11317433d0511Smrg conftest$ac_exeext conftest.$ac_ext ;; 11318433d0511Smrgesac 11319cbc4e2beSmrgfi 11320cbc4e2beSmrg 11321cbc4e2beSmrg 11322cbc4e2beSmrg CFLAGS="$xorg_testset_save_CFLAGS" 11323cbc4e2beSmrg 11324cbc4e2beSmrg eval supported=\$$cacheid 11325433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11326433d0511Smrgprintf "%s\n" "$supported" >&6; } 11327cbc4e2beSmrg if test "$supported" = "yes" ; then 11328cbc4e2beSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11329cbc4e2beSmrg found="yes" 11330cbc4e2beSmrg fi 11331cbc4e2beSmrg fi 11332cbc4e2beSmrg 11333cbc4e2beSmrg 11334cbc4e2beSmrg 11335cbc4e2beSmrgif test "x$STRICT_COMPILE" = "xyes"; then 11336cbc4e2beSmrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11337cbc4e2beSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11338cbc4e2beSmrgfi 11339cbc4e2beSmrg 11340cbc4e2beSmrg 11341cbc4e2beSmrg 11342cbc4e2beSmrg 11343cbc4e2beSmrg 11344cbc4e2beSmrg 11345433d0511Smrg 11346433d0511Smrg 11347cbc4e2beSmrgcat >>confdefs.h <<_ACEOF 11348cbc4e2beSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11349cbc4e2beSmrg_ACEOF 11350cbc4e2beSmrg 11351cbc4e2beSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11352cbc4e2beSmrg if test "x$PVM" = "x"; then 11353cbc4e2beSmrg PVM="0" 11354cbc4e2beSmrg fi 11355cbc4e2beSmrg 11356433d0511Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11357cbc4e2beSmrg 11358cbc4e2beSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11359cbc4e2beSmrg if test "x$PVP" = "x"; then 11360cbc4e2beSmrg PVP="0" 11361cbc4e2beSmrg fi 11362cbc4e2beSmrg 11363433d0511Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11364cbc4e2beSmrg 11365cbc4e2beSmrg 11366cbc4e2beSmrg 11367433d0511SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11368cbc4e2beSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11369433d0511Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11370433d0511Smrgtouch \$(top_srcdir)/ChangeLog; \ 11371433d0511Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11372cbc4e2beSmrg 11373cbc4e2beSmrg 11374cbc4e2beSmrg 11375cbc4e2beSmrg 11376cbc4e2beSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11377cbc4e2beSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11378cbc4e2beSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11379433d0511Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11380433d0511Smrgtouch \$(top_srcdir)/INSTALL; \ 11381433d0511Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11382433d0511Smrg 11383433d0511Smrg 11384cbc4e2beSmrg 11385cbc4e2beSmrg 11386cbc4e2beSmrg 11387cbc4e2beSmrg 11388433d0511Smrgcase $host_os in 11389433d0511Smrg solaris*) 11390433d0511Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11391433d0511Smrg # check for a man page file found in later versions that use 11392433d0511Smrg # traditional section numbers instead 11393433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11394433d0511Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11395433d0511Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11396433d0511Smrgthen : 11397433d0511Smrg printf %s "(cached) " >&6 11398433d0511Smrgelse case e in #( 11399433d0511Smrg e) test "$cross_compiling" = yes && 11400433d0511Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11401433d0511Smrgif test -r "/usr/share/man/man7/attributes.7"; then 11402433d0511Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 11403433d0511Smrgelse 11404433d0511Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 11405433d0511Smrgfi ;; 11406433d0511Smrgesac 11407433d0511Smrgfi 11408433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11409433d0511Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11410433d0511Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11411433d0511Smrgthen : 11412433d0511Smrg SYSV_MAN_SECTIONS=false 11413433d0511Smrgelse case e in #( 11414433d0511Smrg e) SYSV_MAN_SECTIONS=true ;; 11415433d0511Smrgesac 11416433d0511Smrgfi 11417cbc4e2beSmrg 11418433d0511Smrg ;; 11419433d0511Smrg *) SYSV_MAN_SECTIONS=false ;; 11420433d0511Smrgesac 11421cbc4e2beSmrg 11422cbc4e2beSmrgif test x$APP_MAN_SUFFIX = x ; then 11423cbc4e2beSmrg APP_MAN_SUFFIX=1 11424cbc4e2beSmrgfi 11425cbc4e2beSmrgif test x$APP_MAN_DIR = x ; then 11426cbc4e2beSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11427cbc4e2beSmrgfi 11428cbc4e2beSmrg 11429cbc4e2beSmrgif test x$LIB_MAN_SUFFIX = x ; then 11430cbc4e2beSmrg LIB_MAN_SUFFIX=3 11431cbc4e2beSmrgfi 11432cbc4e2beSmrgif test x$LIB_MAN_DIR = x ; then 11433cbc4e2beSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11434cbc4e2beSmrgfi 11435cbc4e2beSmrg 11436cbc4e2beSmrgif test x$FILE_MAN_SUFFIX = x ; then 11437433d0511Smrg case $SYSV_MAN_SECTIONS in 11438433d0511Smrg true) FILE_MAN_SUFFIX=4 ;; 114396654de8bSmrg *) FILE_MAN_SUFFIX=5 ;; 11440cbc4e2beSmrg esac 11441cbc4e2beSmrgfi 11442cbc4e2beSmrgif test x$FILE_MAN_DIR = x ; then 11443cbc4e2beSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11444cbc4e2beSmrgfi 11445cbc4e2beSmrg 11446cbc4e2beSmrgif test x$MISC_MAN_SUFFIX = x ; then 11447433d0511Smrg case $SYSV_MAN_SECTIONS in 11448433d0511Smrg true) MISC_MAN_SUFFIX=5 ;; 114496654de8bSmrg *) MISC_MAN_SUFFIX=7 ;; 11450cbc4e2beSmrg esac 11451cbc4e2beSmrgfi 11452cbc4e2beSmrgif test x$MISC_MAN_DIR = x ; then 11453cbc4e2beSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1145495e0246bSmrgfi 1145595e0246bSmrg 11456cbc4e2beSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 11457433d0511Smrg case $SYSV_MAN_SECTIONS in 11458433d0511Smrg true) DRIVER_MAN_SUFFIX=7 ;; 114596654de8bSmrg *) DRIVER_MAN_SUFFIX=4 ;; 11460cbc4e2beSmrg esac 11461cbc4e2beSmrgfi 11462cbc4e2beSmrgif test x$DRIVER_MAN_DIR = x ; then 11463cbc4e2beSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1146495e0246bSmrgfi 1146595e0246bSmrg 11466cbc4e2beSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 11467433d0511Smrg case $SYSV_MAN_SECTIONS in 11468433d0511Smrg true) ADMIN_MAN_SUFFIX=1m ;; 114696654de8bSmrg *) ADMIN_MAN_SUFFIX=8 ;; 11470cbc4e2beSmrg esac 11471cbc4e2beSmrgfi 11472cbc4e2beSmrgif test x$ADMIN_MAN_DIR = x ; then 11473cbc4e2beSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1147495e0246bSmrgfi 1147595e0246bSmrg 1147695e0246bSmrg 1147795e0246bSmrg 1147895e0246bSmrg 1147995e0246bSmrg 1148095e0246bSmrg 1148195e0246bSmrg 1148295e0246bSmrg 11483cbc4e2beSmrg 11484cbc4e2beSmrg 11485cbc4e2beSmrg 11486cbc4e2beSmrg 11487cbc4e2beSmrg 11488cbc4e2beSmrg 11489cbc4e2beSmrg 11490cbc4e2beSmrgXORG_MAN_PAGE="X Version 11" 11491cbc4e2beSmrg 11492cbc4e2beSmrgMAN_SUBSTS="\ 11493cbc4e2beSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11494cbc4e2beSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11495cbc4e2beSmrg -e 's|__xservername__|Xorg|g' \ 11496cbc4e2beSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 11497cbc4e2beSmrg -e 's|__projectroot__|\$(prefix)|g' \ 11498cbc4e2beSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11499cbc4e2beSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11500cbc4e2beSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11501cbc4e2beSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11502cbc4e2beSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11503cbc4e2beSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11504cbc4e2beSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11505cbc4e2beSmrg 11506cbc4e2beSmrg 11507cbc4e2beSmrg 11508cbc4e2beSmrg# Check whether --enable-silent-rules was given. 11509433d0511Smrgif test ${enable_silent_rules+y} 11510433d0511Smrgthen : 11511cbc4e2beSmrg enableval=$enable_silent_rules; 1151295e0246bSmrgfi 1151395e0246bSmrg 11514cbc4e2beSmrgcase $enable_silent_rules in # ((( 11515cbc4e2beSmrg yes) AM_DEFAULT_VERBOSITY=0;; 11516cbc4e2beSmrg no) AM_DEFAULT_VERBOSITY=1;; 11517cbc4e2beSmrg *) AM_DEFAULT_VERBOSITY=0;; 11518cbc4e2beSmrgesac 11519cbc4e2beSmrgam_make=${MAKE-make} 11520433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11521433d0511Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 11522433d0511Smrgif test ${am_cv_make_support_nested_variables+y} 11523433d0511Smrgthen : 11524433d0511Smrg printf %s "(cached) " >&6 11525433d0511Smrgelse case e in #( 11526433d0511Smrg e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11527cbc4e2beSmrgBAR0=false 11528cbc4e2beSmrgBAR1=true 11529cbc4e2beSmrgV=1 11530cbc4e2beSmrgam__doit: 11531cbc4e2beSmrg @$(TRUE) 11532cbc4e2beSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11533cbc4e2beSmrg am_cv_make_support_nested_variables=yes 11534cbc4e2beSmrgelse 11535cbc4e2beSmrg am_cv_make_support_nested_variables=no 11536433d0511Smrgfi ;; 11537433d0511Smrgesac 11538cbc4e2beSmrgfi 11539433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11540433d0511Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11541cbc4e2beSmrgif test $am_cv_make_support_nested_variables = yes; then 11542cbc4e2beSmrg AM_V='$(V)' 11543cbc4e2beSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11544cbc4e2beSmrgelse 11545cbc4e2beSmrg AM_V=$AM_DEFAULT_VERBOSITY 11546cbc4e2beSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11547cbc4e2beSmrgfi 11548cbc4e2beSmrgAM_BACKSLASH='\' 11549cbc4e2beSmrg 1155095e0246bSmrg 1155195e0246bSmrg 11552eaef79e5Smrg 11553eaef79e5Smrg 11554433d0511Smrg 11555433d0511Smrg# Checks for typedefs, structures, and compiler characteristics. 11556433d0511Smrg# Check whether --enable-largefile was given. 11557433d0511Smrgif test ${enable_largefile+y} 11558433d0511Smrgthen : 11559433d0511Smrg enableval=$enable_largefile; 11560433d0511Smrgfi 11561433d0511Smrgif test "$enable_largefile,$enable_year2038" != no,no 11562433d0511Smrgthen : 11563433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11564433d0511Smrgprintf %s "checking for $CC option to enable large file support... " >&6; } 11565433d0511Smrgif test ${ac_cv_sys_largefile_opts+y} 11566433d0511Smrgthen : 11567433d0511Smrg printf %s "(cached) " >&6 11568433d0511Smrgelse case e in #( 11569433d0511Smrg e) ac_save_CC="$CC" 11570433d0511Smrg ac_opt_found=no 11571433d0511Smrg for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11572433d0511Smrg if test x"$ac_opt" != x"none needed" 11573433d0511Smrgthen : 11574433d0511Smrg CC="$ac_save_CC $ac_opt" 11575433d0511Smrgfi 11576433d0511Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577433d0511Smrg/* end confdefs.h. */ 11578433d0511Smrg#include <sys/types.h> 11579433d0511Smrg#ifndef FTYPE 11580433d0511Smrg# define FTYPE off_t 11581433d0511Smrg#endif 11582433d0511Smrg /* Check that FTYPE can represent 2**63 - 1 correctly. 11583433d0511Smrg We can't simply define LARGE_FTYPE to be 9223372036854775807, 11584433d0511Smrg since some C++ compilers masquerading as C compilers 11585433d0511Smrg incorrectly reject 9223372036854775807. */ 11586433d0511Smrg#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11587433d0511Smrg int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11588433d0511Smrg && LARGE_FTYPE % 2147483647 == 1) 11589433d0511Smrg ? 1 : -1]; 11590433d0511Smrgint 11591433d0511Smrgmain (void) 11592433d0511Smrg{ 11593433d0511Smrg 11594433d0511Smrg ; 11595433d0511Smrg return 0; 11596433d0511Smrg} 11597cbc4e2beSmrg_ACEOF 11598433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11599433d0511Smrgthen : 11600433d0511Smrg if test x"$ac_opt" = x"none needed" 11601433d0511Smrgthen : 11602433d0511Smrg # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11603433d0511Smrg CC="$CC -DFTYPE=ino_t" 11604433d0511Smrg if ac_fn_c_try_compile "$LINENO" 11605433d0511Smrgthen : 11606433d0511Smrg 11607433d0511Smrgelse case e in #( 11608433d0511Smrg e) CC="$CC -D_FILE_OFFSET_BITS=64" 11609433d0511Smrg if ac_fn_c_try_compile "$LINENO" 11610433d0511Smrgthen : 11611433d0511Smrg ac_opt='-D_FILE_OFFSET_BITS=64' 11612433d0511Smrgfi 11613433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11614433d0511Smrgesac 11615433d0511Smrgfi 11616433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 11617433d0511Smrgfi 11618433d0511Smrg ac_cv_sys_largefile_opts=$ac_opt 11619433d0511Smrg ac_opt_found=yes 11620433d0511Smrgfi 11621433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11622433d0511Smrg test $ac_opt_found = no || break 11623433d0511Smrg done 11624433d0511Smrg CC="$ac_save_CC" 11625433d0511Smrg 11626433d0511Smrg test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11627433d0511Smrgesac 11628433d0511Smrgfi 11629433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11630433d0511Smrgprintf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11631433d0511Smrg 11632433d0511Smrgac_have_largefile=yes 11633433d0511Smrgcase $ac_cv_sys_largefile_opts in #( 11634433d0511Smrg "none needed") : 11635433d0511Smrg ;; #( 11636433d0511Smrg "supported through gnulib") : 11637433d0511Smrg ;; #( 11638433d0511Smrg "support not detected") : 11639433d0511Smrg ac_have_largefile=no ;; #( 11640433d0511Smrg "-D_FILE_OFFSET_BITS=64") : 11641433d0511Smrg 11642433d0511Smrgprintf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11643433d0511Smrg ;; #( 11644433d0511Smrg "-D_LARGE_FILES=1") : 11645433d0511Smrg 11646433d0511Smrgprintf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11647433d0511Smrg ;; #( 11648433d0511Smrg "-n32") : 11649433d0511Smrg CC="$CC -n32" ;; #( 11650433d0511Smrg *) : 11651433d0511Smrg as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11652433d0511Smrgesac 11653433d0511Smrg 11654433d0511Smrgif test "$enable_year2038" != no 11655433d0511Smrgthen : 11656433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11657433d0511Smrgprintf %s "checking for $CC option for timestamps after 2038... " >&6; } 11658433d0511Smrgif test ${ac_cv_sys_year2038_opts+y} 11659433d0511Smrgthen : 11660433d0511Smrg printf %s "(cached) " >&6 11661433d0511Smrgelse case e in #( 11662433d0511Smrg e) ac_save_CPPFLAGS="$CPPFLAGS" 11663433d0511Smrg ac_opt_found=no 11664433d0511Smrg for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11665433d0511Smrg if test x"$ac_opt" != x"none needed" 11666433d0511Smrgthen : 11667433d0511Smrg CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11668433d0511Smrgfi 11669433d0511Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11670433d0511Smrg/* end confdefs.h. */ 11671433d0511Smrg 11672433d0511Smrg #include <time.h> 11673433d0511Smrg /* Check that time_t can represent 2**32 - 1 correctly. */ 11674433d0511Smrg #define LARGE_TIME_T \\ 11675433d0511Smrg ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11676433d0511Smrg int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11677433d0511Smrg && LARGE_TIME_T % 65537 == 0) 11678433d0511Smrg ? 1 : -1]; 11679433d0511Smrg 11680433d0511Smrgint 11681433d0511Smrgmain (void) 11682433d0511Smrg{ 11683433d0511Smrg 11684433d0511Smrg ; 11685433d0511Smrg return 0; 11686433d0511Smrg} 11687433d0511Smrg_ACEOF 11688433d0511Smrgif ac_fn_c_try_compile "$LINENO" 11689433d0511Smrgthen : 11690433d0511Smrg ac_cv_sys_year2038_opts="$ac_opt" 11691433d0511Smrg ac_opt_found=yes 11692433d0511Smrgfi 11693433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11694433d0511Smrg test $ac_opt_found = no || break 11695433d0511Smrg done 11696433d0511Smrg CPPFLAGS="$ac_save_CPPFLAGS" 11697433d0511Smrg test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11698433d0511Smrgesac 11699433d0511Smrgfi 11700433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11701433d0511Smrgprintf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11702433d0511Smrg 11703433d0511Smrgac_have_year2038=yes 11704433d0511Smrgcase $ac_cv_sys_year2038_opts in #( 11705433d0511Smrg "none needed") : 11706433d0511Smrg ;; #( 11707433d0511Smrg "support not detected") : 11708433d0511Smrg ac_have_year2038=no ;; #( 11709433d0511Smrg "-D_TIME_BITS=64") : 11710433d0511Smrg 11711433d0511Smrgprintf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11712433d0511Smrg ;; #( 11713433d0511Smrg "-D__MINGW_USE_VC2005_COMPAT") : 11714433d0511Smrg 11715433d0511Smrgprintf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11716433d0511Smrg ;; #( 11717433d0511Smrg "-U_USE_32_BIT_TIME_T"*) : 11718433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11719433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11720433d0511Smrgas_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11721433d0511Smrgwill stop working after mid-January 2038. Remove 11722433d0511Smrg_USE_32BIT_TIME_T from the compiler flags. 11723433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #( 11724433d0511Smrg *) : 11725433d0511Smrg as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11726433d0511Smrgesac 11727433d0511Smrg 11728433d0511Smrgfi 11729433d0511Smrg 11730433d0511Smrgfi 11731433d0511Smrg 11732433d0511Smrg# Checks for library functions. 11733433d0511Smrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11734433d0511Smrgif test "x$ac_cv_func_mkstemp" = xyes 11735433d0511Smrgthen : 11736433d0511Smrg printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11737cbc4e2beSmrg 11738cbc4e2beSmrgfi 11739cbc4e2beSmrg 11740cbc4e2beSmrg 11741cbc4e2beSmrg# Math libraries & functions 11742cbc4e2beSmrg# - some compilers use builtin inlines for floor when optimizing 11743cbc4e2beSmrg# - lrint() is a C99 addition not found on some older systems 11744cbc4e2beSmrg# - must do the libm check first so that the lrint check will have it in $LIBS 11745cbc4e2beSmrgsave_LIBS="$LIBS" 11746433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11747433d0511Smrgprintf %s "checking for library containing floor... " >&6; } 11748433d0511Smrgif test ${ac_cv_search_floor+y} 11749433d0511Smrgthen : 11750433d0511Smrg printf %s "(cached) " >&6 11751433d0511Smrgelse case e in #( 11752433d0511Smrg e) ac_func_search_save_LIBS=$LIBS 11753cbc4e2beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11754cbc4e2beSmrg/* end confdefs.h. */ 11755cbc4e2beSmrg 11756cbc4e2beSmrg/* Override any GCC internal prototype to avoid an error. 11757cbc4e2beSmrg Use char because int might match the return type of a GCC 11758433d0511Smrg builtin and then its argument prototype would still apply. 11759433d0511Smrg The 'extern "C"' is for builds by C++ compilers; 11760433d0511Smrg although this is not generally supported in C code supporting it here 11761433d0511Smrg has little cost and some practical benefit (sr 110532). */ 11762cbc4e2beSmrg#ifdef __cplusplus 11763cbc4e2beSmrgextern "C" 11764cbc4e2beSmrg#endif 11765433d0511Smrgchar floor (void); 11766cbc4e2beSmrgint 11767433d0511Smrgmain (void) 11768cbc4e2beSmrg{ 11769cbc4e2beSmrgreturn floor (); 11770cbc4e2beSmrg ; 11771cbc4e2beSmrg return 0; 11772cbc4e2beSmrg} 11773cbc4e2beSmrg_ACEOF 11774433d0511Smrgfor ac_lib in '' m 11775433d0511Smrgdo 11776cbc4e2beSmrg if test -z "$ac_lib"; then 11777cbc4e2beSmrg ac_res="none required" 11778cbc4e2beSmrg else 11779cbc4e2beSmrg ac_res=-l$ac_lib 11780cbc4e2beSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11781cbc4e2beSmrg fi 11782433d0511Smrg if ac_fn_c_try_link "$LINENO" 11783433d0511Smrgthen : 11784cbc4e2beSmrg ac_cv_search_floor=$ac_res 11785cbc4e2beSmrgfi 11786433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11787cbc4e2beSmrg conftest$ac_exeext 11788433d0511Smrg if test ${ac_cv_search_floor+y} 11789433d0511Smrgthen : 11790cbc4e2beSmrg break 11791cbc4e2beSmrgfi 11792cbc4e2beSmrgdone 11793433d0511Smrgif test ${ac_cv_search_floor+y} 11794433d0511Smrgthen : 11795cbc4e2beSmrg 11796433d0511Smrgelse case e in #( 11797433d0511Smrg e) ac_cv_search_floor=no ;; 11798433d0511Smrgesac 11799cbc4e2beSmrgfi 11800cbc4e2beSmrgrm conftest.$ac_ext 11801433d0511SmrgLIBS=$ac_func_search_save_LIBS ;; 11802433d0511Smrgesac 11803cbc4e2beSmrgfi 11804433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11805433d0511Smrgprintf "%s\n" "$ac_cv_search_floor" >&6; } 11806cbc4e2beSmrgac_res=$ac_cv_search_floor 11807433d0511Smrgif test "$ac_res" != no 11808433d0511Smrgthen : 11809cbc4e2beSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11810cbc4e2beSmrg 11811cbc4e2beSmrgfi 11812cbc4e2beSmrg 11813433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11814433d0511Smrgprintf %s "checking for library containing lrint... " >&6; } 11815433d0511Smrgif test ${ac_cv_search_lrint+y} 11816433d0511Smrgthen : 11817433d0511Smrg printf %s "(cached) " >&6 11818433d0511Smrgelse case e in #( 11819433d0511Smrg e) ac_func_search_save_LIBS=$LIBS 11820cbc4e2beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821cbc4e2beSmrg/* end confdefs.h. */ 11822cbc4e2beSmrg 11823cbc4e2beSmrg/* Override any GCC internal prototype to avoid an error. 11824cbc4e2beSmrg Use char because int might match the return type of a GCC 11825433d0511Smrg builtin and then its argument prototype would still apply. 11826433d0511Smrg The 'extern "C"' is for builds by C++ compilers; 11827433d0511Smrg although this is not generally supported in C code supporting it here 11828433d0511Smrg has little cost and some practical benefit (sr 110532). */ 11829cbc4e2beSmrg#ifdef __cplusplus 11830cbc4e2beSmrgextern "C" 11831cbc4e2beSmrg#endif 11832433d0511Smrgchar lrint (void); 11833cbc4e2beSmrgint 11834433d0511Smrgmain (void) 11835cbc4e2beSmrg{ 11836cbc4e2beSmrgreturn lrint (); 11837cbc4e2beSmrg ; 11838cbc4e2beSmrg return 0; 11839cbc4e2beSmrg} 11840cbc4e2beSmrg_ACEOF 11841433d0511Smrgfor ac_lib in '' m 11842433d0511Smrgdo 11843cbc4e2beSmrg if test -z "$ac_lib"; then 11844cbc4e2beSmrg ac_res="none required" 11845cbc4e2beSmrg else 11846cbc4e2beSmrg ac_res=-l$ac_lib 11847cbc4e2beSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11848cbc4e2beSmrg fi 11849433d0511Smrg if ac_fn_c_try_link "$LINENO" 11850433d0511Smrgthen : 11851cbc4e2beSmrg ac_cv_search_lrint=$ac_res 11852cbc4e2beSmrgfi 11853433d0511Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11854cbc4e2beSmrg conftest$ac_exeext 11855433d0511Smrg if test ${ac_cv_search_lrint+y} 11856433d0511Smrgthen : 11857cbc4e2beSmrg break 11858cbc4e2beSmrgfi 11859cbc4e2beSmrgdone 11860433d0511Smrgif test ${ac_cv_search_lrint+y} 11861433d0511Smrgthen : 11862cbc4e2beSmrg 11863433d0511Smrgelse case e in #( 11864433d0511Smrg e) ac_cv_search_lrint=no ;; 11865433d0511Smrgesac 11866cbc4e2beSmrgfi 11867cbc4e2beSmrgrm conftest.$ac_ext 11868433d0511SmrgLIBS=$ac_func_search_save_LIBS ;; 11869433d0511Smrgesac 11870cbc4e2beSmrgfi 11871433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11872433d0511Smrgprintf "%s\n" "$ac_cv_search_lrint" >&6; } 11873cbc4e2beSmrgac_res=$ac_cv_search_lrint 11874433d0511Smrgif test "$ac_res" != no 11875433d0511Smrgthen : 11876cbc4e2beSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11877cbc4e2beSmrg 11878cbc4e2beSmrgfi 11879eaef79e5Smrg 11880433d0511Smrgac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11881433d0511Smrgif test "x$ac_cv_func_lrint" = xyes 11882433d0511Smrgthen : 11883433d0511Smrg printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 11884eaef79e5Smrg 11885eaef79e5Smrgfi 11886eaef79e5Smrg 11887cbc4e2beSmrgMATH_LIBS="$LIBS" 11888cbc4e2beSmrgLIBS="$save_LIBS" 11889eaef79e5Smrg 11890cbc4e2beSmrg 11891cbc4e2beSmrg# Obtain compiler/linker options from dependencies 11892eaef79e5Smrg 11893eaef79e5Smrgpkg_failed=no 11894433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5 11895433d0511Smrgprintf %s "checking for BMTOA... " >&6; } 118962b32c8f7Smrg 118972b32c8f7Smrgif test -n "$BMTOA_CFLAGS"; then 118982b32c8f7Smrg pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS" 118992b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 119002b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 11901433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 11902cbc4e2beSmrg ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 11903eaef79e5Smrg ac_status=$? 11904433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1190595e0246bSmrg test $ac_status = 0; }; then 11906cbc4e2beSmrg pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null` 119076654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 11908eaef79e5Smrgelse 11909eaef79e5Smrg pkg_failed=yes 11910eaef79e5Smrgfi 119112b32c8f7Smrg else 119122b32c8f7Smrg pkg_failed=untried 11913eaef79e5Smrgfi 119142b32c8f7Smrgif test -n "$BMTOA_LIBS"; then 119152b32c8f7Smrg pkg_cv_BMTOA_LIBS="$BMTOA_LIBS" 119162b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 119172b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 11918433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5 11919cbc4e2beSmrg ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5 11920eaef79e5Smrg ac_status=$? 11921433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1192295e0246bSmrg test $ac_status = 0; }; then 11923cbc4e2beSmrg pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null` 119246654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 11925eaef79e5Smrgelse 11926eaef79e5Smrg pkg_failed=yes 11927eaef79e5Smrgfi 119282b32c8f7Smrg else 119292b32c8f7Smrg pkg_failed=untried 11930eaef79e5Smrgfi 11931eaef79e5Smrg 119322b32c8f7Smrg 119332b32c8f7Smrg 11934eaef79e5Smrgif test $pkg_failed = yes; then 11935433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11936433d0511Smrgprintf "%s\n" "no" >&6; } 119372b32c8f7Smrg 119382b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 119392b32c8f7Smrg _pkg_short_errors_supported=yes 119402b32c8f7Smrgelse 119412b32c8f7Smrg _pkg_short_errors_supported=no 119422b32c8f7Smrgfi 119432b32c8f7Smrg if test $_pkg_short_errors_supported = yes; then 119446654de8bSmrg BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1` 119452b32c8f7Smrg else 119466654de8bSmrg BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1` 119472b32c8f7Smrg fi 11948eaef79e5Smrg # Put the nasty error message in config.log where it belongs 119492b32c8f7Smrg echo "$BMTOA_PKG_ERRORS" >&5 119502b32c8f7Smrg 11951cbc4e2beSmrg as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met: 119522b32c8f7Smrg 119532b32c8f7Smrg$BMTOA_PKG_ERRORS 11954eaef79e5Smrg 11955eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11956eaef79e5Smrginstalled software in a non-standard prefix. 11957eaef79e5Smrg 119582b32c8f7SmrgAlternatively, you may set the environment variables BMTOA_CFLAGS 119592b32c8f7Smrgand BMTOA_LIBS to avoid the need to call pkg-config. 119606654de8bSmrgSee the pkg-config man page for more details." "$LINENO" 5 11961eaef79e5Smrgelif test $pkg_failed = untried; then 11962433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11963433d0511Smrgprintf "%s\n" "no" >&6; } 11964433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11965433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1196695e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11967eaef79e5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 11968eaef79e5Smrgpath to pkg-config. 11969eaef79e5Smrg 119702b32c8f7SmrgAlternatively, you may set the environment variables BMTOA_CFLAGS 119712b32c8f7Smrgand BMTOA_LIBS to avoid the need to call pkg-config. 119722b32c8f7SmrgSee the pkg-config man page for more details. 11973eaef79e5Smrg 119742b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11975433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 11976eaef79e5Smrgelse 119772b32c8f7Smrg BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS 119782b32c8f7Smrg BMTOA_LIBS=$pkg_cv_BMTOA_LIBS 11979433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11980433d0511Smrgprintf "%s\n" "yes" >&6; } 119816654de8bSmrg 11982eaef79e5Smrgfi 11983eaef79e5Smrg 11984eaef79e5Smrgpkg_failed=no 11985433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5 11986433d0511Smrgprintf %s "checking for ATOBM... " >&6; } 119872b32c8f7Smrg 119882b32c8f7Smrgif test -n "$ATOBM_CFLAGS"; then 119892b32c8f7Smrg pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS" 119902b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 119912b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 11992433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11993d1a7ce7bSmrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11994eaef79e5Smrg ac_status=$? 11995433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1199695e0246bSmrg test $ac_status = 0; }; then 11997d1a7ce7bSmrg pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 119986654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 11999eaef79e5Smrgelse 12000eaef79e5Smrg pkg_failed=yes 12001eaef79e5Smrgfi 120022b32c8f7Smrg else 120032b32c8f7Smrg pkg_failed=untried 12004eaef79e5Smrgfi 120052b32c8f7Smrgif test -n "$ATOBM_LIBS"; then 120062b32c8f7Smrg pkg_cv_ATOBM_LIBS="$ATOBM_LIBS" 120072b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 120082b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 12009433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 12010d1a7ce7bSmrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 12011eaef79e5Smrg ac_status=$? 12012433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1201395e0246bSmrg test $ac_status = 0; }; then 12014d1a7ce7bSmrg pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 120156654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 12016eaef79e5Smrgelse 12017eaef79e5Smrg pkg_failed=yes 12018eaef79e5Smrgfi 120192b32c8f7Smrg else 120202b32c8f7Smrg pkg_failed=untried 12021eaef79e5Smrgfi 12022eaef79e5Smrg 12023eaef79e5Smrg 12024eaef79e5Smrg 12025eaef79e5Smrgif test $pkg_failed = yes; then 12026433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027433d0511Smrgprintf "%s\n" "no" >&6; } 12028eaef79e5Smrg 120292b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 120302b32c8f7Smrg _pkg_short_errors_supported=yes 12031eaef79e5Smrgelse 120322b32c8f7Smrg _pkg_short_errors_supported=no 12033eaef79e5Smrgfi 120342b32c8f7Smrg if test $_pkg_short_errors_supported = yes; then 120356654de8bSmrg ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 120362b32c8f7Smrg else 120376654de8bSmrg ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 120382b32c8f7Smrg fi 120392b32c8f7Smrg # Put the nasty error message in config.log where it belongs 120402b32c8f7Smrg echo "$ATOBM_PKG_ERRORS" >&5 12041eaef79e5Smrg 12042d1a7ce7bSmrg as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 120432b32c8f7Smrg 120442b32c8f7Smrg$ATOBM_PKG_ERRORS 120452b32c8f7Smrg 12046eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 12047eaef79e5Smrginstalled software in a non-standard prefix. 12048eaef79e5Smrg 120492b32c8f7SmrgAlternatively, you may set the environment variables ATOBM_CFLAGS 120502b32c8f7Smrgand ATOBM_LIBS to avoid the need to call pkg-config. 120516654de8bSmrgSee the pkg-config man page for more details." "$LINENO" 5 12052eaef79e5Smrgelif test $pkg_failed = untried; then 12053433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054433d0511Smrgprintf "%s\n" "no" >&6; } 12055433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12056433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1205795e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12058eaef79e5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 12059eaef79e5Smrgpath to pkg-config. 12060eaef79e5Smrg 120612b32c8f7SmrgAlternatively, you may set the environment variables ATOBM_CFLAGS 120622b32c8f7Smrgand ATOBM_LIBS to avoid the need to call pkg-config. 120632b32c8f7SmrgSee the pkg-config man page for more details. 12064eaef79e5Smrg 120652b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 12066433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 12067eaef79e5Smrgelse 120682b32c8f7Smrg ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS 120692b32c8f7Smrg ATOBM_LIBS=$pkg_cv_ATOBM_LIBS 12070433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12071433d0511Smrgprintf "%s\n" "yes" >&6; } 120726654de8bSmrg 12073eaef79e5Smrgfi 12074eaef79e5Smrg 12075eaef79e5Smrgpkg_failed=no 12076433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5 12077433d0511Smrgprintf %s "checking for BITMAP... " >&6; } 120782b32c8f7Smrg 120792b32c8f7Smrgif test -n "$BITMAP_CFLAGS"; then 120802b32c8f7Smrg pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS" 120812b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 120822b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 12083433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 1208495e0246bSmrg ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 12085eaef79e5Smrg ac_status=$? 12086433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1208795e0246bSmrg test $ac_status = 0; }; then 1208895e0246bSmrg pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null` 120896654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 12090eaef79e5Smrgelse 12091eaef79e5Smrg pkg_failed=yes 12092eaef79e5Smrgfi 120932b32c8f7Smrg else 120942b32c8f7Smrg pkg_failed=untried 12095eaef79e5Smrgfi 120962b32c8f7Smrgif test -n "$BITMAP_LIBS"; then 120972b32c8f7Smrg pkg_cv_BITMAP_LIBS="$BITMAP_LIBS" 120982b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 120992b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 12100433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5 1210195e0246bSmrg ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5 12102eaef79e5Smrg ac_status=$? 12103433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1210495e0246bSmrg test $ac_status = 0; }; then 1210595e0246bSmrg pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null` 121066654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 12107eaef79e5Smrgelse 12108eaef79e5Smrg pkg_failed=yes 12109eaef79e5Smrgfi 121102b32c8f7Smrg else 121112b32c8f7Smrg pkg_failed=untried 12112eaef79e5Smrgfi 12113eaef79e5Smrg 121142b32c8f7Smrg 121152b32c8f7Smrg 12116eaef79e5Smrgif test $pkg_failed = yes; then 12117433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118433d0511Smrgprintf "%s\n" "no" >&6; } 121192b32c8f7Smrg 121202b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 121212b32c8f7Smrg _pkg_short_errors_supported=yes 121222b32c8f7Smrgelse 121232b32c8f7Smrg _pkg_short_errors_supported=no 121242b32c8f7Smrgfi 121252b32c8f7Smrg if test $_pkg_short_errors_supported = yes; then 121266654de8bSmrg BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1` 121272b32c8f7Smrg else 121286654de8bSmrg BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1` 121292b32c8f7Smrg fi 12130eaef79e5Smrg # Put the nasty error message in config.log where it belongs 121312b32c8f7Smrg echo "$BITMAP_PKG_ERRORS" >&5 121322b32c8f7Smrg 1213395e0246bSmrg as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met: 121342b32c8f7Smrg 121352b32c8f7Smrg$BITMAP_PKG_ERRORS 121362b32c8f7Smrg 12137eaef79e5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 12138eaef79e5Smrginstalled software in a non-standard prefix. 12139eaef79e5Smrg 121402b32c8f7SmrgAlternatively, you may set the environment variables BITMAP_CFLAGS 121412b32c8f7Smrgand BITMAP_LIBS to avoid the need to call pkg-config. 121426654de8bSmrgSee the pkg-config man page for more details." "$LINENO" 5 121432b32c8f7Smrgelif test $pkg_failed = untried; then 12144433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12145433d0511Smrgprintf "%s\n" "no" >&6; } 12146433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12147433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1214895e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 121492b32c8f7Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 121502b32c8f7Smrgpath to pkg-config. 12151eaef79e5Smrg 1215295e0246bSmrgAlternatively, you may set the environment variables BITMAP_CFLAGS 1215395e0246bSmrgand BITMAP_LIBS to avoid the need to call pkg-config. 121542b32c8f7SmrgSee the pkg-config man page for more details. 12155eaef79e5Smrg 121562b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 12157433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 121582b32c8f7Smrgelse 1215995e0246bSmrg BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS 1216095e0246bSmrg BITMAP_LIBS=$pkg_cv_BITMAP_LIBS 12161433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12162433d0511Smrgprintf "%s\n" "yes" >&6; } 121636654de8bSmrg 121642b32c8f7Smrgfi 12165eaef79e5Smrg 12166eaef79e5Smrg 121672b32c8f7Smrgpkg_failed=no 12168433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 12169433d0511Smrgprintf %s "checking for APPDEFS... " >&6; } 121702b32c8f7Smrg 121712b32c8f7Smrgif test -n "$APPDEFS_CFLAGS"; then 121722b32c8f7Smrg pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 121732b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 121742b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 12175433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 121762b32c8f7Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 121772b32c8f7Smrg ac_status=$? 12178433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1217995e0246bSmrg test $ac_status = 0; }; then 121802b32c8f7Smrg pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 121816654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 12182eaef79e5Smrgelse 121832b32c8f7Smrg pkg_failed=yes 121842b32c8f7Smrgfi 121852b32c8f7Smrg else 121862b32c8f7Smrg pkg_failed=untried 121872b32c8f7Smrgfi 121882b32c8f7Smrgif test -n "$APPDEFS_LIBS"; then 121892b32c8f7Smrg pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 121902b32c8f7Smrg elif test -n "$PKG_CONFIG"; then 121912b32c8f7Smrg if test -n "$PKG_CONFIG" && \ 12192433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 121932b32c8f7Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 121942b32c8f7Smrg ac_status=$? 12195433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1219695e0246bSmrg test $ac_status = 0; }; then 121972b32c8f7Smrg pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 121986654de8bSmrg test "x$?" != "x0" && pkg_failed=yes 121992b32c8f7Smrgelse 122002b32c8f7Smrg pkg_failed=yes 122012b32c8f7Smrgfi 122022b32c8f7Smrg else 122032b32c8f7Smrg pkg_failed=untried 12204eaef79e5Smrgfi 12205eaef79e5Smrg 12206eaef79e5Smrg 12207eaef79e5Smrg 122082b32c8f7Smrgif test $pkg_failed = yes; then 12209433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12210433d0511Smrgprintf "%s\n" "no" >&6; } 12211eaef79e5Smrg 122122b32c8f7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 122132b32c8f7Smrg _pkg_short_errors_supported=yes 122142b32c8f7Smrgelse 122152b32c8f7Smrg _pkg_short_errors_supported=no 122162b32c8f7Smrgfi 122172b32c8f7Smrg if test $_pkg_short_errors_supported = yes; then 122186654de8bSmrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 122192b32c8f7Smrg else 122206654de8bSmrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 122212b32c8f7Smrg fi 122222b32c8f7Smrg # Put the nasty error message in config.log where it belongs 122232b32c8f7Smrg echo "$APPDEFS_PKG_ERRORS" >&5 12224eaef79e5Smrg 1222595e0246bSmrg as_fn_error $? "Package requirements (xt) were not met: 122262b32c8f7Smrg 122272b32c8f7Smrg$APPDEFS_PKG_ERRORS 122282b32c8f7Smrg 122292b32c8f7SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 122302b32c8f7Smrginstalled software in a non-standard prefix. 122312b32c8f7Smrg 122322b32c8f7SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 122332b32c8f7Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 122346654de8bSmrgSee the pkg-config man page for more details." "$LINENO" 5 122352b32c8f7Smrgelif test $pkg_failed = untried; then 12236433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12237433d0511Smrgprintf "%s\n" "no" >&6; } 12238433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12239433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1224095e0246bSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 122412b32c8f7Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 122422b32c8f7Smrgpath to pkg-config. 122432b32c8f7Smrg 122442b32c8f7SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 122452b32c8f7Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 122462b32c8f7SmrgSee the pkg-config man page for more details. 122472b32c8f7Smrg 122482b32c8f7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 12249433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 122502b32c8f7Smrgelse 122512b32c8f7Smrg APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 122522b32c8f7Smrg APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 12253433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12254433d0511Smrgprintf "%s\n" "yes" >&6; } 122556654de8bSmrg 122562b32c8f7Smrgfi 1225795e0246bSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 122582b32c8f7Smrg 122592b32c8f7Smrg# Check whether --with-appdefaultdir was given. 12260433d0511Smrgif test ${with_appdefaultdir+y} 12261433d0511Smrgthen : 122622b32c8f7Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 12263433d0511Smrgelse case e in #( 12264433d0511Smrg e) appdefaultdir="${xt_appdefaultdir}" ;; 12265433d0511Smrgesac 122662b32c8f7Smrgfi 12267eaef79e5Smrg 12268eaef79e5Smrg 12269eaef79e5Smrg 1227095e0246bSmrgac_config_files="$ac_config_files Makefile man/Makefile" 12271eaef79e5Smrg 122727515ee80Smrgac_config_files="$ac_config_files test/round-trip-test" 122737515ee80Smrg 12274eaef79e5Smrgcat >confcache <<\_ACEOF 12275eaef79e5Smrg# This file is a shell script that caches the results of configure 12276eaef79e5Smrg# tests run on this system so they can be shared between configure 12277eaef79e5Smrg# scripts and configure runs, see configure's option --config-cache. 12278eaef79e5Smrg# It is not useful on other systems. If it contains results you don't 12279eaef79e5Smrg# want to keep, you may remove or edit it. 12280eaef79e5Smrg# 12281eaef79e5Smrg# config.status only pays attention to the cache file if you give it 12282eaef79e5Smrg# the --recheck option to rerun configure. 12283eaef79e5Smrg# 12284433d0511Smrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12285433d0511Smrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12286eaef79e5Smrg# following values. 12287eaef79e5Smrg 12288eaef79e5Smrg_ACEOF 12289eaef79e5Smrg 12290eaef79e5Smrg# The following way of writing the cache mishandles newlines in values, 12291eaef79e5Smrg# but we know of no workaround that is simple, portable, and efficient. 12292eaef79e5Smrg# So, we kill variables containing newlines. 12293eaef79e5Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 12294eaef79e5Smrg# and sets the high bit in the cache file unless we assign to the vars. 12295eaef79e5Smrg( 12296eaef79e5Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12297eaef79e5Smrg eval ac_val=\$$ac_var 12298eaef79e5Smrg case $ac_val in #( 12299eaef79e5Smrg *${as_nl}*) 12300eaef79e5Smrg case $ac_var in #( 12301433d0511Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12302433d0511Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12303eaef79e5Smrg esac 12304eaef79e5Smrg case $ac_var in #( 12305eaef79e5Smrg _ | IFS | as_nl) ;; #( 123062b32c8f7Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1230795e0246bSmrg *) { eval $ac_var=; unset $ac_var;} ;; 12308eaef79e5Smrg esac ;; 12309eaef79e5Smrg esac 12310eaef79e5Smrg done 12311eaef79e5Smrg 12312eaef79e5Smrg (set) 2>&1 | 12313eaef79e5Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 12314eaef79e5Smrg *${as_nl}ac_space=\ *) 12315433d0511Smrg # 'set' does not quote correctly, so add quotes: double-quote 1231695e0246bSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 12317eaef79e5Smrg sed -n \ 12318eaef79e5Smrg "s/'/'\\\\''/g; 12319eaef79e5Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12320eaef79e5Smrg ;; #( 12321eaef79e5Smrg *) 12322433d0511Smrg # 'set' quotes correctly as required by POSIX, so do not add quotes. 12323eaef79e5Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12324eaef79e5Smrg ;; 12325eaef79e5Smrg esac | 12326eaef79e5Smrg sort 12327eaef79e5Smrg) | 12328eaef79e5Smrg sed ' 12329eaef79e5Smrg /^ac_cv_env_/b end 12330eaef79e5Smrg t clear 12331eaef79e5Smrg :clear 12332433d0511Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12333eaef79e5Smrg t end 12334eaef79e5Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12335eaef79e5Smrg :end' >>confcache 12336eaef79e5Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12337eaef79e5Smrg if test -w "$cache_file"; then 1233895e0246bSmrg if test "x$cache_file" != "x/dev/null"; then 12339433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12340433d0511Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1234195e0246bSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1234295e0246bSmrg cat confcache >"$cache_file" 1234395e0246bSmrg else 1234495e0246bSmrg case $cache_file in #( 1234595e0246bSmrg */* | ?:*) 1234695e0246bSmrg mv -f confcache "$cache_file"$$ && 1234795e0246bSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1234895e0246bSmrg *) 1234995e0246bSmrg mv -f confcache "$cache_file" ;; 1235095e0246bSmrg esac 1235195e0246bSmrg fi 1235295e0246bSmrg fi 12353eaef79e5Smrg else 12354433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12355433d0511Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12356eaef79e5Smrg fi 12357eaef79e5Smrgfi 12358eaef79e5Smrgrm -f confcache 12359eaef79e5Smrg 12360eaef79e5Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 12361eaef79e5Smrg# Let make expand exec_prefix. 12362eaef79e5Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12363eaef79e5Smrg 12364eaef79e5SmrgDEFS=-DHAVE_CONFIG_H 12365eaef79e5Smrg 12366eaef79e5Smrgac_libobjs= 12367eaef79e5Smrgac_ltlibobjs= 1236895e0246bSmrgU= 12369eaef79e5Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12370eaef79e5Smrg # 1. Remove the extension, and $U if already installed. 12371eaef79e5Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12372433d0511Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12373eaef79e5Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12374eaef79e5Smrg # will be set to the directory where LIBOBJS objects are built. 1237595e0246bSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1237695e0246bSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12377eaef79e5Smrgdone 12378eaef79e5SmrgLIBOBJS=$ac_libobjs 12379eaef79e5Smrg 12380eaef79e5SmrgLTLIBOBJS=$ac_ltlibobjs 12381eaef79e5Smrg 12382eaef79e5Smrg 12383433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12384433d0511Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 12385cbc4e2beSmrg if test -n "$am_sleep_pid"; then 12386cbc4e2beSmrg # Hide warnings about reused PIDs. 12387cbc4e2beSmrg wait $am_sleep_pid 2>/dev/null 12388cbc4e2beSmrg fi 12389433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12390433d0511Smrgprintf "%s\n" "done" >&6; } 123912b32c8f7Smrg if test -n "$EXEEXT"; then 123922b32c8f7Smrg am__EXEEXT_TRUE= 123932b32c8f7Smrg am__EXEEXT_FALSE='#' 123942b32c8f7Smrgelse 123952b32c8f7Smrg am__EXEEXT_TRUE='#' 123962b32c8f7Smrg am__EXEEXT_FALSE= 123972b32c8f7Smrgfi 123982b32c8f7Smrg 12399eaef79e5Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1240095e0246bSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1240195e0246bSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1240295e0246bSmrgfi 1240395e0246bSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1240495e0246bSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1240595e0246bSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12406eaef79e5Smrgfi 12407433d0511Smrg# Check whether --enable-year2038 was given. 12408433d0511Smrgif test ${enable_year2038+y} 12409433d0511Smrgthen : 12410433d0511Smrg enableval=$enable_year2038; 12411433d0511Smrgfi 12412433d0511Smrg 12413eaef79e5Smrg 1241495e0246bSmrg: "${CONFIG_STATUS=./config.status}" 124152b32c8f7Smrgac_write_fail=0 12416eaef79e5Smrgac_clean_files_save=$ac_clean_files 12417eaef79e5Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 12418433d0511Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12419433d0511Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1242095e0246bSmrgas_write_fail=0 1242195e0246bSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12422eaef79e5Smrg#! $SHELL 12423eaef79e5Smrg# Generated by $as_me. 12424eaef79e5Smrg# Run this file to recreate the current configuration. 12425eaef79e5Smrg# Compiler output produced by configure, useful for debugging 12426eaef79e5Smrg# configure, is in config.log if it exists. 12427eaef79e5Smrg 12428eaef79e5Smrgdebug=false 12429eaef79e5Smrgac_cs_recheck=false 12430eaef79e5Smrgac_cs_silent=false 12431eaef79e5Smrg 1243295e0246bSmrgSHELL=\${CONFIG_SHELL-$SHELL} 1243395e0246bSmrgexport SHELL 1243495e0246bSmrg_ASEOF 1243595e0246bSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1243695e0246bSmrg## -------------------- ## 1243795e0246bSmrg## M4sh Initialization. ## 1243895e0246bSmrg## -------------------- ## 12439eaef79e5Smrg 124402b32c8f7Smrg# Be more Bourne compatible 124412b32c8f7SmrgDUALCASE=1; export DUALCASE # for MKS sh 12442433d0511Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12443433d0511Smrgthen : 12444eaef79e5Smrg emulate sh 12445eaef79e5Smrg NULLCMD=: 124462b32c8f7Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12447eaef79e5Smrg # is contrary to our usage. Disable this feature. 12448eaef79e5Smrg alias -g '${1+"$@"}'='"$@"' 12449eaef79e5Smrg setopt NO_GLOB_SUBST 12450433d0511Smrgelse case e in #( 12451433d0511Smrg e) case `(set -o) 2>/dev/null` in #( 1245295e0246bSmrg *posix*) : 1245395e0246bSmrg set -o posix ;; #( 1245495e0246bSmrg *) : 1245595e0246bSmrg ;; 12456433d0511Smrgesac ;; 124572b32c8f7Smrgesac 12458eaef79e5Smrgfi 124592b32c8f7Smrg 124602b32c8f7Smrg 12461433d0511Smrg 12462433d0511Smrg# Reset variables that may have inherited troublesome values from 12463433d0511Smrg# the environment. 12464433d0511Smrg 12465433d0511Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 12466433d0511Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 12467433d0511Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 12468433d0511Smrg# Quoting is to prevent editors from complaining about space-tab. 124692b32c8f7Smrgas_nl=' 124702b32c8f7Smrg' 124712b32c8f7Smrgexport as_nl 12472433d0511SmrgIFS=" "" $as_nl" 12473433d0511Smrg 12474433d0511SmrgPS1='$ ' 12475433d0511SmrgPS2='> ' 12476433d0511SmrgPS4='+ ' 12477433d0511Smrg 12478433d0511Smrg# Ensure predictable behavior from utilities with locale-dependent output. 12479433d0511SmrgLC_ALL=C 12480433d0511Smrgexport LC_ALL 12481433d0511SmrgLANGUAGE=C 12482433d0511Smrgexport LANGUAGE 12483433d0511Smrg 12484433d0511Smrg# We cannot yet rely on "unset" to work, but we need these variables 12485433d0511Smrg# to be unset--not just set to an empty or harmless value--now, to 12486433d0511Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12487433d0511Smrg# also avoids known problems related to "unset" and subshell syntax 12488433d0511Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12489433d0511Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12490433d0511Smrgdo eval test \${$as_var+y} \ 12491433d0511Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12492433d0511Smrgdone 12493433d0511Smrg 12494433d0511Smrg# Ensure that fds 0, 1, and 2 are open. 12495433d0511Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12496433d0511Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12497433d0511Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 124982b32c8f7Smrg 124992b32c8f7Smrg# The user is always right. 12500433d0511Smrgif ${PATH_SEPARATOR+false} :; then 125012b32c8f7Smrg PATH_SEPARATOR=: 125022b32c8f7Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 125032b32c8f7Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 125042b32c8f7Smrg PATH_SEPARATOR=';' 125052b32c8f7Smrg } 12506eaef79e5Smrgfi 12507eaef79e5Smrg 12508eaef79e5Smrg 12509eaef79e5Smrg# Find who we are. Look in the path if we contain no directory separator. 1251095e0246bSmrgas_myself= 1251195e0246bSmrgcase $0 in #(( 12512eaef79e5Smrg *[\\/]* ) as_myself=$0 ;; 12513eaef79e5Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12514eaef79e5Smrgfor as_dir in $PATH 12515eaef79e5Smrgdo 12516eaef79e5Smrg IFS=$as_save_IFS 12517433d0511Smrg case $as_dir in #((( 12518433d0511Smrg '') as_dir=./ ;; 12519433d0511Smrg */) ;; 12520433d0511Smrg *) as_dir=$as_dir/ ;; 12521433d0511Smrg esac 12522433d0511Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1252395e0246bSmrg done 12524eaef79e5SmrgIFS=$as_save_IFS 12525eaef79e5Smrg 12526eaef79e5Smrg ;; 12527eaef79e5Smrgesac 12528433d0511Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 12529eaef79e5Smrg# in which case we are not to be found in the path. 12530eaef79e5Smrgif test "x$as_myself" = x; then 12531eaef79e5Smrg as_myself=$0 12532eaef79e5Smrgfi 12533eaef79e5Smrgif test ! -f "$as_myself"; then 12534433d0511Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1253595e0246bSmrg exit 1 12536eaef79e5Smrgfi 12537eaef79e5Smrg 1253895e0246bSmrg 1253995e0246bSmrg 1254095e0246bSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1254195e0246bSmrg# ---------------------------------------- 1254295e0246bSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1254395e0246bSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1254495e0246bSmrg# script with STATUS, using 1 if that was 0. 1254595e0246bSmrgas_fn_error () 1254695e0246bSmrg{ 1254795e0246bSmrg as_status=$1; test $as_status -eq 0 && as_status=1 1254895e0246bSmrg if test "$4"; then 1254995e0246bSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12550433d0511Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1255195e0246bSmrg fi 12552433d0511Smrg printf "%s\n" "$as_me: error: $2" >&2 1255395e0246bSmrg as_fn_exit $as_status 1255495e0246bSmrg} # as_fn_error 1255595e0246bSmrg 1255695e0246bSmrg 1255795e0246bSmrg# as_fn_set_status STATUS 1255895e0246bSmrg# ----------------------- 1255995e0246bSmrg# Set $? to STATUS, without forking. 1256095e0246bSmrgas_fn_set_status () 1256195e0246bSmrg{ 1256295e0246bSmrg return $1 1256395e0246bSmrg} # as_fn_set_status 1256495e0246bSmrg 1256595e0246bSmrg# as_fn_exit STATUS 1256695e0246bSmrg# ----------------- 1256795e0246bSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1256895e0246bSmrgas_fn_exit () 1256995e0246bSmrg{ 1257095e0246bSmrg set +e 1257195e0246bSmrg as_fn_set_status $1 1257295e0246bSmrg exit $1 1257395e0246bSmrg} # as_fn_exit 1257495e0246bSmrg 1257595e0246bSmrg# as_fn_unset VAR 1257695e0246bSmrg# --------------- 1257795e0246bSmrg# Portably unset VAR. 1257895e0246bSmrgas_fn_unset () 1257995e0246bSmrg{ 1258095e0246bSmrg { eval $1=; unset $1;} 1258195e0246bSmrg} 1258295e0246bSmrgas_unset=as_fn_unset 12583433d0511Smrg 1258495e0246bSmrg# as_fn_append VAR VALUE 1258595e0246bSmrg# ---------------------- 1258695e0246bSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1258795e0246bSmrg# advantage of any shell optimizations that allow amortized linear growth over 1258895e0246bSmrg# repeated appends, instead of the typical quadratic growth present in naive 1258995e0246bSmrg# implementations. 12590433d0511Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12591433d0511Smrgthen : 1259295e0246bSmrg eval 'as_fn_append () 1259395e0246bSmrg { 1259495e0246bSmrg eval $1+=\$2 1259595e0246bSmrg }' 12596433d0511Smrgelse case e in #( 12597433d0511Smrg e) as_fn_append () 1259895e0246bSmrg { 1259995e0246bSmrg eval $1=\$$1\$2 12600433d0511Smrg } ;; 12601433d0511Smrgesac 1260295e0246bSmrgfi # as_fn_append 1260395e0246bSmrg 1260495e0246bSmrg# as_fn_arith ARG... 1260595e0246bSmrg# ------------------ 1260695e0246bSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1260795e0246bSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1260895e0246bSmrg# must be portable across $(()) and expr. 12609433d0511Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12610433d0511Smrgthen : 1261195e0246bSmrg eval 'as_fn_arith () 1261295e0246bSmrg { 1261395e0246bSmrg as_val=$(( $* )) 1261495e0246bSmrg }' 12615433d0511Smrgelse case e in #( 12616433d0511Smrg e) as_fn_arith () 1261795e0246bSmrg { 1261895e0246bSmrg as_val=`expr "$@" || test $? -eq 1` 12619433d0511Smrg } ;; 12620433d0511Smrgesac 1262195e0246bSmrgfi # as_fn_arith 1262295e0246bSmrg 1262395e0246bSmrg 12624eaef79e5Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 12625eaef79e5Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 12626eaef79e5Smrg as_expr=expr 12627eaef79e5Smrgelse 12628eaef79e5Smrg as_expr=false 12629eaef79e5Smrgfi 12630eaef79e5Smrg 12631eaef79e5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12632eaef79e5Smrg as_basename=basename 12633eaef79e5Smrgelse 12634eaef79e5Smrg as_basename=false 12635eaef79e5Smrgfi 12636eaef79e5Smrg 1263795e0246bSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1263895e0246bSmrg as_dirname=dirname 1263995e0246bSmrgelse 1264095e0246bSmrg as_dirname=false 1264195e0246bSmrgfi 12642eaef79e5Smrg 12643eaef79e5Smrgas_me=`$as_basename -- "$0" || 12644eaef79e5Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12645eaef79e5Smrg X"$0" : 'X\(//\)$' \| \ 12646eaef79e5Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12647433d0511Smrgprintf "%s\n" X/"$0" | 12648eaef79e5Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12649eaef79e5Smrg s//\1/ 12650eaef79e5Smrg q 12651eaef79e5Smrg } 12652eaef79e5Smrg /^X\/\(\/\/\)$/{ 12653eaef79e5Smrg s//\1/ 12654eaef79e5Smrg q 12655eaef79e5Smrg } 12656eaef79e5Smrg /^X\/\(\/\).*/{ 12657eaef79e5Smrg s//\1/ 12658eaef79e5Smrg q 12659eaef79e5Smrg } 12660eaef79e5Smrg s/.*/./; q'` 12661eaef79e5Smrg 1266295e0246bSmrg# Avoid depending upon Character Ranges. 1266395e0246bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1266495e0246bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1266595e0246bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1266695e0246bSmrgas_cr_digits='0123456789' 1266795e0246bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 12668eaef79e5Smrg 12669433d0511Smrg 12670433d0511Smrg# Determine whether it's possible to make 'echo' print without a newline. 12671433d0511Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12672433d0511Smrg# for compatibility with existing Makefiles. 12673eaef79e5SmrgECHO_C= ECHO_N= ECHO_T= 1267495e0246bSmrgcase `echo -n x` in #((((( 12675eaef79e5Smrg-n*) 1267695e0246bSmrg case `echo 'xy\c'` in 12677eaef79e5Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1267895e0246bSmrg xy) ECHO_C='\c';; 1267995e0246bSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1268095e0246bSmrg ECHO_T=' ';; 12681eaef79e5Smrg esac;; 12682eaef79e5Smrg*) 12683eaef79e5Smrg ECHO_N='-n';; 12684eaef79e5Smrgesac 12685eaef79e5Smrg 12686433d0511Smrg# For backward compatibility with old third-party macros, we provide 12687433d0511Smrg# the shell variables $as_echo and $as_echo_n. New code should use 12688433d0511Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12689433d0511Smrgas_echo='printf %s\n' 12690433d0511Smrgas_echo_n='printf %s' 12691433d0511Smrg 12692eaef79e5Smrgrm -f conf$$ conf$$.exe conf$$.file 12693eaef79e5Smrgif test -d conf$$.dir; then 12694eaef79e5Smrg rm -f conf$$.dir/conf$$.file 12695eaef79e5Smrgelse 12696eaef79e5Smrg rm -f conf$$.dir 126972b32c8f7Smrg mkdir conf$$.dir 2>/dev/null 126982b32c8f7Smrgfi 126992b32c8f7Smrgif (echo >conf$$.file) 2>/dev/null; then 127002b32c8f7Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 127012b32c8f7Smrg as_ln_s='ln -s' 127022b32c8f7Smrg # ... but there are two gotchas: 12703433d0511Smrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12704433d0511Smrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12705433d0511Smrg # In both cases, we have to default to 'cp -pR'. 127062b32c8f7Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12707d1a7ce7bSmrg as_ln_s='cp -pR' 127082b32c8f7Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 127092b32c8f7Smrg as_ln_s=ln 127102b32c8f7Smrg else 12711d1a7ce7bSmrg as_ln_s='cp -pR' 127122b32c8f7Smrg fi 12713eaef79e5Smrgelse 12714d1a7ce7bSmrg as_ln_s='cp -pR' 12715eaef79e5Smrgfi 12716eaef79e5Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12717eaef79e5Smrgrmdir conf$$.dir 2>/dev/null 12718eaef79e5Smrg 1271995e0246bSmrg 1272095e0246bSmrg# as_fn_mkdir_p 1272195e0246bSmrg# ------------- 1272295e0246bSmrg# Create "$as_dir" as a directory, including parents if necessary. 1272395e0246bSmrgas_fn_mkdir_p () 1272495e0246bSmrg{ 1272595e0246bSmrg 1272695e0246bSmrg case $as_dir in #( 1272795e0246bSmrg -*) as_dir=./$as_dir;; 1272895e0246bSmrg esac 1272995e0246bSmrg test -d "$as_dir" || eval $as_mkdir_p || { 1273095e0246bSmrg as_dirs= 1273195e0246bSmrg while :; do 1273295e0246bSmrg case $as_dir in #( 12733433d0511Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1273495e0246bSmrg *) as_qdir=$as_dir;; 1273595e0246bSmrg esac 1273695e0246bSmrg as_dirs="'$as_qdir' $as_dirs" 1273795e0246bSmrg as_dir=`$as_dirname -- "$as_dir" || 1273895e0246bSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273995e0246bSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1274095e0246bSmrg X"$as_dir" : 'X\(//\)$' \| \ 1274195e0246bSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12742433d0511Smrgprintf "%s\n" X"$as_dir" | 1274395e0246bSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274495e0246bSmrg s//\1/ 1274595e0246bSmrg q 1274695e0246bSmrg } 1274795e0246bSmrg /^X\(\/\/\)[^/].*/{ 1274895e0246bSmrg s//\1/ 1274995e0246bSmrg q 1275095e0246bSmrg } 1275195e0246bSmrg /^X\(\/\/\)$/{ 1275295e0246bSmrg s//\1/ 1275395e0246bSmrg q 1275495e0246bSmrg } 1275595e0246bSmrg /^X\(\/\).*/{ 1275695e0246bSmrg s//\1/ 1275795e0246bSmrg q 1275895e0246bSmrg } 1275995e0246bSmrg s/.*/./; q'` 1276095e0246bSmrg test -d "$as_dir" && break 1276195e0246bSmrg done 1276295e0246bSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1276395e0246bSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1276495e0246bSmrg 1276595e0246bSmrg 1276695e0246bSmrg} # as_fn_mkdir_p 12767eaef79e5Smrgif mkdir -p . 2>/dev/null; then 1276895e0246bSmrg as_mkdir_p='mkdir -p "$as_dir"' 12769eaef79e5Smrgelse 12770eaef79e5Smrg test -d ./-p && rmdir ./-p 12771eaef79e5Smrg as_mkdir_p=false 12772eaef79e5Smrgfi 12773eaef79e5Smrg 12774d1a7ce7bSmrg 12775d1a7ce7bSmrg# as_fn_executable_p FILE 12776d1a7ce7bSmrg# ----------------------- 12777d1a7ce7bSmrg# Test if FILE is an executable regular file. 12778d1a7ce7bSmrgas_fn_executable_p () 12779d1a7ce7bSmrg{ 12780d1a7ce7bSmrg test -f "$1" && test -x "$1" 12781d1a7ce7bSmrg} # as_fn_executable_p 12782d1a7ce7bSmrgas_test_x='test -x' 12783d1a7ce7bSmrgas_executable_p=as_fn_executable_p 12784eaef79e5Smrg 12785eaef79e5Smrg# Sed expression to map a string onto a valid CPP name. 12786433d0511Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12787433d0511Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12788eaef79e5Smrg 12789eaef79e5Smrg# Sed expression to map a string onto a valid variable name. 12790433d0511Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12791433d0511Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 12792eaef79e5Smrg 12793eaef79e5Smrg 12794eaef79e5Smrgexec 6>&1 1279595e0246bSmrg## ----------------------------------- ## 1279695e0246bSmrg## Main body of $CONFIG_STATUS script. ## 1279795e0246bSmrg## ----------------------------------- ## 1279895e0246bSmrg_ASEOF 1279995e0246bSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12800eaef79e5Smrg 1280195e0246bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1280295e0246bSmrg# Save the log message, to keep $0 and so on meaningful, and to 12803eaef79e5Smrg# report actual input values of CONFIG_FILES etc. instead of their 12804eaef79e5Smrg# values after options handling. 12805eaef79e5Smrgac_log=" 12806433d0511SmrgThis file was extended by bitmap $as_me 1.1.1, which was 12807433d0511Smrggenerated by GNU Autoconf 2.72. Invocation command line was 12808eaef79e5Smrg 12809eaef79e5Smrg CONFIG_FILES = $CONFIG_FILES 12810eaef79e5Smrg CONFIG_HEADERS = $CONFIG_HEADERS 12811eaef79e5Smrg CONFIG_LINKS = $CONFIG_LINKS 12812eaef79e5Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 12813eaef79e5Smrg $ $0 $@ 12814eaef79e5Smrg 12815eaef79e5Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 12816eaef79e5Smrg" 12817eaef79e5Smrg 12818eaef79e5Smrg_ACEOF 12819eaef79e5Smrg 128202b32c8f7Smrgcase $ac_config_files in *" 128212b32c8f7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 128222b32c8f7Smrgesac 128232b32c8f7Smrg 128242b32c8f7Smrgcase $ac_config_headers in *" 128252b32c8f7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 128262b32c8f7Smrgesac 128272b32c8f7Smrg 128282b32c8f7Smrg 128292b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12830eaef79e5Smrg# Files that config.status was made for. 12831eaef79e5Smrgconfig_files="$ac_config_files" 12832eaef79e5Smrgconfig_headers="$ac_config_headers" 12833eaef79e5Smrgconfig_commands="$ac_config_commands" 12834eaef79e5Smrg 12835eaef79e5Smrg_ACEOF 12836eaef79e5Smrg 128372b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12838eaef79e5Smrgac_cs_usage="\ 12839433d0511Smrg'$as_me' instantiates files and other configuration actions 1284095e0246bSmrgfrom templates according to the current configuration. Unless the files 1284195e0246bSmrgand actions are specified as TAGs, all are instantiated by default. 12842eaef79e5Smrg 1284395e0246bSmrgUsage: $0 [OPTION]... [TAG]... 12844eaef79e5Smrg 12845eaef79e5Smrg -h, --help print this help, then exit 128462b32c8f7Smrg -V, --version print version number and configuration settings, then exit 1284795e0246bSmrg --config print configuration, then exit 128482b32c8f7Smrg -q, --quiet, --silent 128492b32c8f7Smrg do not print progress messages 12850eaef79e5Smrg -d, --debug don't remove temporary files 12851eaef79e5Smrg --recheck update $as_me by reconfiguring in the same conditions 128522b32c8f7Smrg --file=FILE[:TEMPLATE] 128532b32c8f7Smrg instantiate the configuration file FILE 128542b32c8f7Smrg --header=FILE[:TEMPLATE] 128552b32c8f7Smrg instantiate the configuration header FILE 12856eaef79e5Smrg 12857eaef79e5SmrgConfiguration files: 12858eaef79e5Smrg$config_files 12859eaef79e5Smrg 12860eaef79e5SmrgConfiguration headers: 12861eaef79e5Smrg$config_headers 12862eaef79e5Smrg 12863eaef79e5SmrgConfiguration commands: 12864eaef79e5Smrg$config_commands 12865eaef79e5Smrg 128666654de8bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>." 12867eaef79e5Smrg 12868eaef79e5Smrg_ACEOF 12869433d0511Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12870433d0511Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 128712b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12872433d0511Smrgac_cs_config='$ac_cs_config_escaped' 12873eaef79e5Smrgac_cs_version="\\ 12874433d0511Smrgbitmap config.status 1.1.1 12875433d0511Smrgconfigured by $0, generated by GNU Autoconf 2.72, 1287695e0246bSmrg with options \\"\$ac_cs_config\\" 12877eaef79e5Smrg 12878433d0511SmrgCopyright (C) 2023 Free Software Foundation, Inc. 12879eaef79e5SmrgThis config.status script is free software; the Free Software Foundation 12880eaef79e5Smrggives unlimited permission to copy, distribute and modify it." 12881eaef79e5Smrg 12882eaef79e5Smrgac_pwd='$ac_pwd' 12883eaef79e5Smrgsrcdir='$srcdir' 12884eaef79e5SmrgINSTALL='$INSTALL' 128852b32c8f7SmrgMKDIR_P='$MKDIR_P' 128862b32c8f7SmrgAWK='$AWK' 128872b32c8f7Smrgtest -n "\$AWK" || AWK=awk 12888eaef79e5Smrg_ACEOF 12889eaef79e5Smrg 128902b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 128912b32c8f7Smrg# The default lists apply if the user does not specify any file. 12892eaef79e5Smrgac_need_defaults=: 12893eaef79e5Smrgwhile test $# != 0 12894eaef79e5Smrgdo 12895eaef79e5Smrg case $1 in 1289695e0246bSmrg --*=?*) 12897eaef79e5Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12898eaef79e5Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12899eaef79e5Smrg ac_shift=: 12900eaef79e5Smrg ;; 1290195e0246bSmrg --*=) 1290295e0246bSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1290395e0246bSmrg ac_optarg= 1290495e0246bSmrg ac_shift=: 1290595e0246bSmrg ;; 12906eaef79e5Smrg *) 12907eaef79e5Smrg ac_option=$1 12908eaef79e5Smrg ac_optarg=$2 12909eaef79e5Smrg ac_shift=shift 12910eaef79e5Smrg ;; 12911eaef79e5Smrg esac 12912eaef79e5Smrg 12913eaef79e5Smrg case $ac_option in 12914eaef79e5Smrg # Handling of the options. 12915eaef79e5Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12916eaef79e5Smrg ac_cs_recheck=: ;; 12917eaef79e5Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12918433d0511Smrg printf "%s\n" "$ac_cs_version"; exit ;; 1291995e0246bSmrg --config | --confi | --conf | --con | --co | --c ) 12920433d0511Smrg printf "%s\n" "$ac_cs_config"; exit ;; 12921eaef79e5Smrg --debug | --debu | --deb | --de | --d | -d ) 12922eaef79e5Smrg debug=: ;; 12923eaef79e5Smrg --file | --fil | --fi | --f ) 12924eaef79e5Smrg $ac_shift 129252b32c8f7Smrg case $ac_optarg in 12926433d0511Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1292795e0246bSmrg '') as_fn_error $? "missing file argument" ;; 129282b32c8f7Smrg esac 1292995e0246bSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 12930eaef79e5Smrg ac_need_defaults=false;; 12931eaef79e5Smrg --header | --heade | --head | --hea ) 12932eaef79e5Smrg $ac_shift 129332b32c8f7Smrg case $ac_optarg in 12934433d0511Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 129352b32c8f7Smrg esac 1293695e0246bSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12937eaef79e5Smrg ac_need_defaults=false;; 12938eaef79e5Smrg --he | --h) 12939eaef79e5Smrg # Conflict between --help and --header 12940433d0511Smrg as_fn_error $? "ambiguous option: '$1' 12941433d0511SmrgTry '$0 --help' for more information.";; 12942eaef79e5Smrg --help | --hel | -h ) 12943433d0511Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 12944eaef79e5Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12945eaef79e5Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 12946eaef79e5Smrg ac_cs_silent=: ;; 12947eaef79e5Smrg 12948eaef79e5Smrg # This is an error. 12949433d0511Smrg -*) as_fn_error $? "unrecognized option: '$1' 12950433d0511SmrgTry '$0 --help' for more information." ;; 12951eaef79e5Smrg 1295295e0246bSmrg *) as_fn_append ac_config_targets " $1" 12953eaef79e5Smrg ac_need_defaults=false ;; 12954eaef79e5Smrg 12955eaef79e5Smrg esac 12956eaef79e5Smrg shift 12957eaef79e5Smrgdone 12958eaef79e5Smrg 12959eaef79e5Smrgac_configure_extra_args= 12960eaef79e5Smrg 12961eaef79e5Smrgif $ac_cs_silent; then 12962eaef79e5Smrg exec 6>/dev/null 12963eaef79e5Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 12964eaef79e5Smrgfi 12965eaef79e5Smrg 12966eaef79e5Smrg_ACEOF 129672b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12968eaef79e5Smrgif \$ac_cs_recheck; then 12969d1a7ce7bSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 129702b32c8f7Smrg shift 12971433d0511Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 129722b32c8f7Smrg CONFIG_SHELL='$SHELL' 12973eaef79e5Smrg export CONFIG_SHELL 129742b32c8f7Smrg exec "\$@" 12975eaef79e5Smrgfi 12976eaef79e5Smrg 12977eaef79e5Smrg_ACEOF 129782b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12979eaef79e5Smrgexec 5>>config.log 12980eaef79e5Smrg{ 12981eaef79e5Smrg echo 12982eaef79e5Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12983eaef79e5Smrg## Running $as_me. ## 12984eaef79e5Smrg_ASBOX 12985433d0511Smrg printf "%s\n" "$ac_log" 12986eaef79e5Smrg} >&5 12987eaef79e5Smrg 12988eaef79e5Smrg_ACEOF 129892b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12990eaef79e5Smrg# 12991eaef79e5Smrg# INIT-COMMANDS 12992eaef79e5Smrg# 12993433d0511SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12994eaef79e5Smrg 12995eaef79e5Smrg_ACEOF 12996eaef79e5Smrg 129972b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12998eaef79e5Smrg 12999eaef79e5Smrg# Handling of arguments. 13000eaef79e5Smrgfor ac_config_target in $ac_config_targets 13001eaef79e5Smrgdo 13002eaef79e5Smrg case $ac_config_target in 1300395e0246bSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13004cbc4e2beSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13005eaef79e5Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1300695e0246bSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 130077515ee80Smrg "test/round-trip-test") CONFIG_FILES="$CONFIG_FILES test/round-trip-test" ;; 13008eaef79e5Smrg 13009433d0511Smrg *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13010eaef79e5Smrg esac 13011eaef79e5Smrgdone 13012eaef79e5Smrg 13013eaef79e5Smrg 13014eaef79e5Smrg# If the user did not use the arguments to specify the items to instantiate, 13015eaef79e5Smrg# then the envvar interface is used. Set only those that are not. 13016eaef79e5Smrg# We use the long form for the default assignment because of an extremely 13017eaef79e5Smrg# bizarre bug on SunOS 4.1.3. 13018eaef79e5Smrgif $ac_need_defaults; then 13019433d0511Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13020433d0511Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13021433d0511Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13022eaef79e5Smrgfi 13023eaef79e5Smrg 13024eaef79e5Smrg# Have a temporary directory for convenience. Make it in the build tree 13025eaef79e5Smrg# simply because there is no reason against having it here, and in addition, 13026eaef79e5Smrg# creating and moving files from /tmp can sometimes cause problems. 13027eaef79e5Smrg# Hook for its removal unless debugging. 13028eaef79e5Smrg# Note that there is a small window in which the directory will not be cleaned: 13029433d0511Smrg# after its creation but before its name has been assigned to '$tmp'. 13030eaef79e5Smrg$debug || 13031eaef79e5Smrg{ 1303295e0246bSmrg tmp= ac_tmp= 13033eaef79e5Smrg trap 'exit_status=$? 1303495e0246bSmrg : "${ac_tmp:=$tmp}" 1303595e0246bSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13036eaef79e5Smrg' 0 1303795e0246bSmrg trap 'as_fn_exit 1' 1 2 13 15 13038eaef79e5Smrg} 13039eaef79e5Smrg# Create a (secure) tmp directory for tmp files. 13040eaef79e5Smrg 13041eaef79e5Smrg{ 13042eaef79e5Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1304395e0246bSmrg test -d "$tmp" 13044eaef79e5Smrg} || 13045eaef79e5Smrg{ 13046eaef79e5Smrg tmp=./conf$$-$RANDOM 13047eaef79e5Smrg (umask 077 && mkdir "$tmp") 1304895e0246bSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1304995e0246bSmrgac_tmp=$tmp 13050eaef79e5Smrg 130512b32c8f7Smrg# Set up the scripts for CONFIG_FILES section. 130522b32c8f7Smrg# No need to generate them if there are no CONFIG_FILES. 13053433d0511Smrg# This happens for instance with './config.status config.h'. 13054eaef79e5Smrgif test -n "$CONFIG_FILES"; then 13055eaef79e5Smrg 13056eaef79e5Smrg 1305795e0246bSmrgac_cr=`echo X | tr X '\015'` 1305895e0246bSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1305995e0246bSmrg# But we know of no other shell where ac_cr would be empty at this 1306095e0246bSmrg# point, so we can use a bashism as a fallback. 1306195e0246bSmrgif test "x$ac_cr" = x; then 1306295e0246bSmrg eval ac_cr=\$\'\\r\' 1306395e0246bSmrgfi 130642b32c8f7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 130652b32c8f7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 130662b32c8f7Smrg ac_cs_awk_cr='\\r' 130672b32c8f7Smrgelse 130682b32c8f7Smrg ac_cs_awk_cr=$ac_cr 13069eaef79e5Smrgfi 13070eaef79e5Smrg 1307195e0246bSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 13072eaef79e5Smrg_ACEOF 13073eaef79e5Smrg 13074eaef79e5Smrg 130752b32c8f7Smrg{ 130762b32c8f7Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 130772b32c8f7Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 130782b32c8f7Smrg echo "_ACEOF" 130792b32c8f7Smrg} >conf$$subs.sh || 1308095e0246bSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1308195e0246bSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13082eaef79e5Smrgac_delim='%!_!# ' 13083eaef79e5Smrgfor ac_last_try in false false false false false :; do 130842b32c8f7Smrg . ./conf$$subs.sh || 1308595e0246bSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13086eaef79e5Smrg 130872b32c8f7Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 130882b32c8f7Smrg if test $ac_delim_n = $ac_delim_num; then 13089eaef79e5Smrg break 13090eaef79e5Smrg elif $ac_last_try; then 1309195e0246bSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13092eaef79e5Smrg else 13093eaef79e5Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13094eaef79e5Smrg fi 13095eaef79e5Smrgdone 130962b32c8f7Smrgrm -f conf$$subs.sh 13097eaef79e5Smrg 130982b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1309995e0246bSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 131002b32c8f7Smrg_ACEOF 131012b32c8f7Smrgsed -n ' 131022b32c8f7Smrgh 131032b32c8f7Smrgs/^/S["/; s/!.*/"]=/ 131042b32c8f7Smrgp 131052b32c8f7Smrgg 131062b32c8f7Smrgs/^[^!]*!// 131072b32c8f7Smrg:repl 131082b32c8f7Smrgt repl 131092b32c8f7Smrgs/'"$ac_delim"'$// 131102b32c8f7Smrgt delim 131112b32c8f7Smrg:nl 131122b32c8f7Smrgh 1311395e0246bSmrgs/\(.\{148\}\)..*/\1/ 131142b32c8f7Smrgt more1 131152b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 131162b32c8f7Smrgp 131172b32c8f7Smrgn 131182b32c8f7Smrgb repl 131192b32c8f7Smrg:more1 131202b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 131212b32c8f7Smrgp 131222b32c8f7Smrgg 131232b32c8f7Smrgs/.\{148\}// 131242b32c8f7Smrgt nl 131252b32c8f7Smrg:delim 131262b32c8f7Smrgh 1312795e0246bSmrgs/\(.\{148\}\)..*/\1/ 131282b32c8f7Smrgt more2 131292b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 131302b32c8f7Smrgp 131312b32c8f7Smrgb 131322b32c8f7Smrg:more2 131332b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 131342b32c8f7Smrgp 131352b32c8f7Smrgg 131362b32c8f7Smrgs/.\{148\}// 131372b32c8f7Smrgt delim 131382b32c8f7Smrg' <conf$$subs.awk | sed ' 131392b32c8f7Smrg/^[^""]/{ 131402b32c8f7Smrg N 131412b32c8f7Smrg s/\n// 131422b32c8f7Smrg} 131432b32c8f7Smrg' >>$CONFIG_STATUS || ac_write_fail=1 131442b32c8f7Smrgrm -f conf$$subs.awk 131452b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 131462b32c8f7Smrg_ACAWK 1314795e0246bSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 131482b32c8f7Smrg for (key in S) S_is_set[key] = 1 131492b32c8f7Smrg FS = "" 131502b32c8f7Smrg 131512b32c8f7Smrg} 131522b32c8f7Smrg{ 131532b32c8f7Smrg line = $ 0 131542b32c8f7Smrg nfields = split(line, field, "@") 131552b32c8f7Smrg substed = 0 131562b32c8f7Smrg len = length(field[1]) 131572b32c8f7Smrg for (i = 2; i < nfields; i++) { 131582b32c8f7Smrg key = field[i] 131592b32c8f7Smrg keylen = length(key) 131602b32c8f7Smrg if (S_is_set[key]) { 131612b32c8f7Smrg value = S[key] 131622b32c8f7Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 131632b32c8f7Smrg len += length(value) + length(field[++i]) 131642b32c8f7Smrg substed = 1 131652b32c8f7Smrg } else 131662b32c8f7Smrg len += 1 + keylen 131672b32c8f7Smrg } 131682b32c8f7Smrg 131692b32c8f7Smrg print line 131702b32c8f7Smrg} 13171eaef79e5Smrg 131722b32c8f7Smrg_ACAWK 13173eaef79e5Smrg_ACEOF 131742b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 131752b32c8f7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 131762b32c8f7Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 131772b32c8f7Smrgelse 131782b32c8f7Smrg cat 1317995e0246bSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1318095e0246bSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13181eaef79e5Smrg_ACEOF 13182eaef79e5Smrg 1318395e0246bSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1318495e0246bSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13185eaef79e5Smrg# trailing colons and then remove the whole line if VPATH becomes empty 13186eaef79e5Smrg# (actually we leave an empty line to preserve line numbers). 13187eaef79e5Smrgif test "x$srcdir" = x.; then 1318895e0246bSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1318995e0246bSmrgh 1319095e0246bSmrgs/// 1319195e0246bSmrgs/^/:/ 1319295e0246bSmrgs/[ ]*$/:/ 1319395e0246bSmrgs/:\$(srcdir):/:/g 1319495e0246bSmrgs/:\${srcdir}:/:/g 1319595e0246bSmrgs/:@srcdir@:/:/g 1319695e0246bSmrgs/^:*// 13197eaef79e5Smrgs/:*$// 1319895e0246bSmrgx 1319995e0246bSmrgs/\(=[ ]*\).*/\1/ 1320095e0246bSmrgG 1320195e0246bSmrgs/\n// 13202eaef79e5Smrgs/^[^=]*=[ ]*$// 13203eaef79e5Smrg}' 13204eaef79e5Smrgfi 13205eaef79e5Smrg 132062b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13207eaef79e5Smrgfi # test -n "$CONFIG_FILES" 13208eaef79e5Smrg 132092b32c8f7Smrg# Set up the scripts for CONFIG_HEADERS section. 132102b32c8f7Smrg# No need to generate them if there are no CONFIG_HEADERS. 13211433d0511Smrg# This happens for instance with './config.status Makefile'. 132122b32c8f7Smrgif test -n "$CONFIG_HEADERS"; then 1321395e0246bSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 132142b32c8f7SmrgBEGIN { 132152b32c8f7Smrg_ACEOF 132162b32c8f7Smrg 13217433d0511Smrg# Transform confdefs.h into an awk script 'defines.awk', embedded as 132182b32c8f7Smrg# here-document in config.status, that substitutes the proper values into 132192b32c8f7Smrg# config.h.in to produce config.h. 132202b32c8f7Smrg 132212b32c8f7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 132222b32c8f7Smrg# handling of long lines. 132232b32c8f7Smrgac_delim='%!_!# ' 132242b32c8f7Smrgfor ac_last_try in false false :; do 1322595e0246bSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1322695e0246bSmrg if test -z "$ac_tt"; then 132272b32c8f7Smrg break 132282b32c8f7Smrg elif $ac_last_try; then 1322995e0246bSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 132302b32c8f7Smrg else 132312b32c8f7Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 132322b32c8f7Smrg fi 132332b32c8f7Smrgdone 132342b32c8f7Smrg 132352b32c8f7Smrg# For the awk script, D is an array of macro values keyed by name, 132362b32c8f7Smrg# likewise P contains macro parameters if any. Preserve backslash 132372b32c8f7Smrg# newline sequences. 132382b32c8f7Smrg 132392b32c8f7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 132402b32c8f7Smrgsed -n ' 132412b32c8f7Smrgs/.\{148\}/&'"$ac_delim"'/g 132422b32c8f7Smrgt rset 132432b32c8f7Smrg:rset 132442b32c8f7Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 132452b32c8f7Smrgt def 132462b32c8f7Smrgd 132472b32c8f7Smrg:def 132482b32c8f7Smrgs/\\$// 132492b32c8f7Smrgt bsnl 132502b32c8f7Smrgs/["\\]/\\&/g 132512b32c8f7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 132522b32c8f7SmrgD["\1"]=" \3"/p 132532b32c8f7Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 132542b32c8f7Smrgd 132552b32c8f7Smrg:bsnl 132562b32c8f7Smrgs/["\\]/\\&/g 132572b32c8f7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 132582b32c8f7SmrgD["\1"]=" \3\\\\\\n"\\/p 132592b32c8f7Smrgt cont 132602b32c8f7Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 132612b32c8f7Smrgt cont 132622b32c8f7Smrgd 132632b32c8f7Smrg:cont 132642b32c8f7Smrgn 132652b32c8f7Smrgs/.\{148\}/&'"$ac_delim"'/g 132662b32c8f7Smrgt clear 132672b32c8f7Smrg:clear 132682b32c8f7Smrgs/\\$// 132692b32c8f7Smrgt bsnlc 132702b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 132712b32c8f7Smrgd 132722b32c8f7Smrg:bsnlc 132732b32c8f7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 132742b32c8f7Smrgb cont 132752b32c8f7Smrg' <confdefs.h | sed ' 132762b32c8f7Smrgs/'"$ac_delim"'/"\\\ 132772b32c8f7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 132782b32c8f7Smrg 132792b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 132802b32c8f7Smrg for (key in D) D_is_set[key] = 1 132812b32c8f7Smrg FS = "" 132822b32c8f7Smrg} 132832b32c8f7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 132842b32c8f7Smrg line = \$ 0 132852b32c8f7Smrg split(line, arg, " ") 132862b32c8f7Smrg if (arg[1] == "#") { 132872b32c8f7Smrg defundef = arg[2] 132882b32c8f7Smrg mac1 = arg[3] 132892b32c8f7Smrg } else { 132902b32c8f7Smrg defundef = substr(arg[1], 2) 132912b32c8f7Smrg mac1 = arg[2] 132922b32c8f7Smrg } 132932b32c8f7Smrg split(mac1, mac2, "(") #) 132942b32c8f7Smrg macro = mac2[1] 132952b32c8f7Smrg prefix = substr(line, 1, index(line, defundef) - 1) 132962b32c8f7Smrg if (D_is_set[macro]) { 132972b32c8f7Smrg # Preserve the white space surrounding the "#". 132982b32c8f7Smrg print prefix "define", macro P[macro] D[macro] 132992b32c8f7Smrg next 133002b32c8f7Smrg } else { 133012b32c8f7Smrg # Replace #undef with comments. This is necessary, for example, 133022b32c8f7Smrg # in the case of _POSIX_SOURCE, which is predefined and required 133032b32c8f7Smrg # on some systems where configure will not decide to define it. 133042b32c8f7Smrg if (defundef == "undef") { 133052b32c8f7Smrg print "/*", prefix defundef, macro, "*/" 133062b32c8f7Smrg next 133072b32c8f7Smrg } 133082b32c8f7Smrg } 133092b32c8f7Smrg} 133102b32c8f7Smrg{ print } 133112b32c8f7Smrg_ACAWK 133122b32c8f7Smrg_ACEOF 133132b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1331495e0246bSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 133152b32c8f7Smrgfi # test -n "$CONFIG_HEADERS" 133162b32c8f7Smrg 13317eaef79e5Smrg 133182b32c8f7Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 133192b32c8f7Smrgshift 133202b32c8f7Smrgfor ac_tag 13321eaef79e5Smrgdo 13322eaef79e5Smrg case $ac_tag in 13323eaef79e5Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 13324eaef79e5Smrg esac 13325eaef79e5Smrg case $ac_mode$ac_tag in 13326eaef79e5Smrg :[FHL]*:*);; 13327433d0511Smrg :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13328eaef79e5Smrg :[FH]-) ac_tag=-:-;; 13329eaef79e5Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13330eaef79e5Smrg esac 13331eaef79e5Smrg ac_save_IFS=$IFS 13332eaef79e5Smrg IFS=: 13333eaef79e5Smrg set x $ac_tag 13334eaef79e5Smrg IFS=$ac_save_IFS 13335eaef79e5Smrg shift 13336eaef79e5Smrg ac_file=$1 13337eaef79e5Smrg shift 13338eaef79e5Smrg 13339eaef79e5Smrg case $ac_mode in 13340eaef79e5Smrg :L) ac_source=$1;; 13341eaef79e5Smrg :[FH]) 13342eaef79e5Smrg ac_file_inputs= 13343eaef79e5Smrg for ac_f 13344eaef79e5Smrg do 13345eaef79e5Smrg case $ac_f in 1334695e0246bSmrg -) ac_f="$ac_tmp/stdin";; 13347eaef79e5Smrg *) # Look for the file first in the build tree, then in the source tree 13348eaef79e5Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 13349433d0511Smrg # because $ac_f cannot contain ':'. 13350eaef79e5Smrg test -f "$ac_f" || 13351eaef79e5Smrg case $ac_f in 13352eaef79e5Smrg [\\/$]*) false;; 13353eaef79e5Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13354eaef79e5Smrg esac || 13355433d0511Smrg as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13356eaef79e5Smrg esac 13357433d0511Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1335895e0246bSmrg as_fn_append ac_file_inputs " '$ac_f'" 13359eaef79e5Smrg done 13360eaef79e5Smrg 13361433d0511Smrg # Let's still pretend it is 'configure' which instantiates (i.e., don't 13362eaef79e5Smrg # use $as_me), people would be surprised to read: 13363eaef79e5Smrg # /* config.h. Generated by config.status. */ 133642b32c8f7Smrg configure_input='Generated from '` 13365433d0511Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 133662b32c8f7Smrg `' by configure.' 13367eaef79e5Smrg if test x"$ac_file" != x-; then 13368eaef79e5Smrg configure_input="$ac_file. $configure_input" 13369433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13370433d0511Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 13371eaef79e5Smrg fi 133722b32c8f7Smrg # Neutralize special characters interpreted by sed in replacement strings. 133732b32c8f7Smrg case $configure_input in #( 133742b32c8f7Smrg *\&* | *\|* | *\\* ) 13375433d0511Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 133762b32c8f7Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 133772b32c8f7Smrg *) ac_sed_conf_input=$configure_input;; 133782b32c8f7Smrg esac 13379eaef79e5Smrg 13380eaef79e5Smrg case $ac_tag in 1338195e0246bSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1338295e0246bSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13383eaef79e5Smrg esac 13384eaef79e5Smrg ;; 13385eaef79e5Smrg esac 13386eaef79e5Smrg 13387eaef79e5Smrg ac_dir=`$as_dirname -- "$ac_file" || 13388eaef79e5Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13389eaef79e5Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 13390eaef79e5Smrg X"$ac_file" : 'X\(//\)$' \| \ 13391eaef79e5Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13392433d0511Smrgprintf "%s\n" X"$ac_file" | 13393eaef79e5Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13394eaef79e5Smrg s//\1/ 13395eaef79e5Smrg q 13396eaef79e5Smrg } 13397eaef79e5Smrg /^X\(\/\/\)[^/].*/{ 13398eaef79e5Smrg s//\1/ 13399eaef79e5Smrg q 13400eaef79e5Smrg } 13401eaef79e5Smrg /^X\(\/\/\)$/{ 13402eaef79e5Smrg s//\1/ 13403eaef79e5Smrg q 13404eaef79e5Smrg } 13405eaef79e5Smrg /^X\(\/\).*/{ 13406eaef79e5Smrg s//\1/ 13407eaef79e5Smrg q 13408eaef79e5Smrg } 13409eaef79e5Smrg s/.*/./; q'` 1341095e0246bSmrg as_dir="$ac_dir"; as_fn_mkdir_p 13411eaef79e5Smrg ac_builddir=. 13412eaef79e5Smrg 13413eaef79e5Smrgcase "$ac_dir" in 13414eaef79e5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13415eaef79e5Smrg*) 13416433d0511Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13417eaef79e5Smrg # A ".." for each directory in $ac_dir_suffix. 13418433d0511Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13419eaef79e5Smrg case $ac_top_builddir_sub in 13420eaef79e5Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13421eaef79e5Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13422eaef79e5Smrg esac ;; 13423eaef79e5Smrgesac 13424eaef79e5Smrgac_abs_top_builddir=$ac_pwd 13425eaef79e5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 13426eaef79e5Smrg# for backward compatibility: 13427eaef79e5Smrgac_top_builddir=$ac_top_build_prefix 13428eaef79e5Smrg 13429eaef79e5Smrgcase $srcdir in 13430eaef79e5Smrg .) # We are building in place. 13431eaef79e5Smrg ac_srcdir=. 13432eaef79e5Smrg ac_top_srcdir=$ac_top_builddir_sub 13433eaef79e5Smrg ac_abs_top_srcdir=$ac_pwd ;; 13434eaef79e5Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 13435eaef79e5Smrg ac_srcdir=$srcdir$ac_dir_suffix; 13436eaef79e5Smrg ac_top_srcdir=$srcdir 13437eaef79e5Smrg ac_abs_top_srcdir=$srcdir ;; 13438eaef79e5Smrg *) # Relative name. 13439eaef79e5Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13440eaef79e5Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 13441eaef79e5Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13442eaef79e5Smrgesac 13443eaef79e5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13444eaef79e5Smrg 13445eaef79e5Smrg 13446eaef79e5Smrg case $ac_mode in 13447eaef79e5Smrg :F) 13448eaef79e5Smrg # 13449eaef79e5Smrg # CONFIG_FILE 13450eaef79e5Smrg # 13451eaef79e5Smrg 13452eaef79e5Smrg case $INSTALL in 13453eaef79e5Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13454eaef79e5Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13455eaef79e5Smrg esac 134562b32c8f7Smrg ac_MKDIR_P=$MKDIR_P 134572b32c8f7Smrg case $MKDIR_P in 134582b32c8f7Smrg [\\/$]* | ?:[\\/]* ) ;; 134592b32c8f7Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 134602b32c8f7Smrg esac 13461eaef79e5Smrg_ACEOF 13462eaef79e5Smrg 134632b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13464eaef79e5Smrg# If the template does not know about datarootdir, expand it. 13465eaef79e5Smrg# FIXME: This hack should be removed a few years after 2.60. 13466eaef79e5Smrgac_datarootdir_hack=; ac_datarootdir_seen= 134672b32c8f7Smrgac_sed_dataroot=' 134682b32c8f7Smrg/datarootdir/ { 13469eaef79e5Smrg p 13470eaef79e5Smrg q 13471eaef79e5Smrg} 13472eaef79e5Smrg/@datadir@/p 13473eaef79e5Smrg/@docdir@/p 13474eaef79e5Smrg/@infodir@/p 13475eaef79e5Smrg/@localedir@/p 1347695e0246bSmrg/@mandir@/p' 134772b32c8f7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13478eaef79e5Smrg*datarootdir*) ac_datarootdir_seen=yes;; 13479eaef79e5Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13480433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13481433d0511Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13482eaef79e5Smrg_ACEOF 134832b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13484eaef79e5Smrg ac_datarootdir_hack=' 13485eaef79e5Smrg s&@datadir@&$datadir&g 13486eaef79e5Smrg s&@docdir@&$docdir&g 13487eaef79e5Smrg s&@infodir@&$infodir&g 13488eaef79e5Smrg s&@localedir@&$localedir&g 13489eaef79e5Smrg s&@mandir@&$mandir&g 1349095e0246bSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 13491eaef79e5Smrgesac 13492eaef79e5Smrg_ACEOF 13493eaef79e5Smrg 13494433d0511Smrg# Neutralize VPATH when '$srcdir' = '.'. 13495eaef79e5Smrg# Shell code in configure.ac might set extrasub. 13496eaef79e5Smrg# FIXME: do we really want to maintain this feature? 134972b32c8f7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 134982b32c8f7Smrgac_sed_extra="$ac_vpsub 13499eaef79e5Smrg$extrasub 13500eaef79e5Smrg_ACEOF 135012b32c8f7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13502eaef79e5Smrg:t 13503eaef79e5Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 135042b32c8f7Smrgs|@configure_input@|$ac_sed_conf_input|;t t 13505eaef79e5Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 135062b32c8f7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 13507eaef79e5Smrgs&@srcdir@&$ac_srcdir&;t t 13508eaef79e5Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 13509eaef79e5Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 13510eaef79e5Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13511eaef79e5Smrgs&@builddir@&$ac_builddir&;t t 13512eaef79e5Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 13513eaef79e5Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13514eaef79e5Smrgs&@INSTALL@&$ac_INSTALL&;t t 135152b32c8f7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 13516eaef79e5Smrg$ac_datarootdir_hack 135172b32c8f7Smrg" 1351895e0246bSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1351995e0246bSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13520eaef79e5Smrg 13521eaef79e5Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1352295e0246bSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1352395e0246bSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1352495e0246bSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 13525433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 1352695e0246bSmrgwhich seems to be undefined. Please make sure it is defined" >&5 13527433d0511Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 1352895e0246bSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 13529eaef79e5Smrg 1353095e0246bSmrg rm -f "$ac_tmp/stdin" 13531eaef79e5Smrg case $ac_file in 1353295e0246bSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1353395e0246bSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 135342b32c8f7Smrg esac \ 1353595e0246bSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13536eaef79e5Smrg ;; 13537eaef79e5Smrg :H) 13538eaef79e5Smrg # 13539eaef79e5Smrg # CONFIG_HEADER 13540eaef79e5Smrg # 13541eaef79e5Smrg if test x"$ac_file" != x-; then 135422b32c8f7Smrg { 13543433d0511Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1354495e0246bSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1354595e0246bSmrg } >"$ac_tmp/config.h" \ 1354695e0246bSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1354795e0246bSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13548433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13549433d0511Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13550eaef79e5Smrg else 135512b32c8f7Smrg rm -f "$ac_file" 1355295e0246bSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1355395e0246bSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13554eaef79e5Smrg fi 13555eaef79e5Smrg else 13556433d0511Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1355795e0246bSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1355895e0246bSmrg || as_fn_error $? "could not create -" "$LINENO" 5 13559eaef79e5Smrg fi 135602b32c8f7Smrg# Compute "$ac_file"'s index in $config_headers. 135612b32c8f7Smrg_am_arg="$ac_file" 13562eaef79e5Smrg_am_stamp_count=1 13563eaef79e5Smrgfor _am_header in $config_headers :; do 13564eaef79e5Smrg case $_am_header in 135652b32c8f7Smrg $_am_arg | $_am_arg:* ) 13566eaef79e5Smrg break ;; 13567eaef79e5Smrg * ) 13568eaef79e5Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13569eaef79e5Smrg esac 13570eaef79e5Smrgdone 135712b32c8f7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 135722b32c8f7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 135732b32c8f7Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 135742b32c8f7Smrg X"$_am_arg" : 'X\(//\)$' \| \ 135752b32c8f7Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13576433d0511Smrgprintf "%s\n" X"$_am_arg" | 13577eaef79e5Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13578eaef79e5Smrg s//\1/ 13579eaef79e5Smrg q 13580eaef79e5Smrg } 13581eaef79e5Smrg /^X\(\/\/\)[^/].*/{ 13582eaef79e5Smrg s//\1/ 13583eaef79e5Smrg q 13584eaef79e5Smrg } 13585eaef79e5Smrg /^X\(\/\/\)$/{ 13586eaef79e5Smrg s//\1/ 13587eaef79e5Smrg q 13588eaef79e5Smrg } 13589eaef79e5Smrg /^X\(\/\).*/{ 13590eaef79e5Smrg s//\1/ 13591eaef79e5Smrg q 13592eaef79e5Smrg } 13593eaef79e5Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 13594eaef79e5Smrg ;; 13595eaef79e5Smrg 13596433d0511Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13597433d0511Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13598eaef79e5Smrg ;; 13599eaef79e5Smrg esac 13600eaef79e5Smrg 13601eaef79e5Smrg 13602eaef79e5Smrg case $ac_file$ac_mode in 136032b32c8f7Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13604cbc4e2beSmrg # Older Autoconf quotes --file arguments for eval, but not when files 136052b32c8f7Smrg # are listed without --file. Let's play safe and only enable the eval 136062b32c8f7Smrg # if we detect the quoting. 13607433d0511Smrg # TODO: see whether this extra hack can be removed once we start 13608433d0511Smrg # requiring Autoconf 2.70 or later. 13609433d0511Smrg case $CONFIG_FILES in #( 13610433d0511Smrg *\'*) : 13611433d0511Smrg eval set x "$CONFIG_FILES" ;; #( 13612433d0511Smrg *) : 13613433d0511Smrg set x $CONFIG_FILES ;; #( 13614433d0511Smrg *) : 13615433d0511Smrg ;; 13616433d0511Smrgesac 136172b32c8f7Smrg shift 13618433d0511Smrg # Used to flag and report bootstrapping failures. 13619433d0511Smrg am_rc=0 13620433d0511Smrg for am_mf 136212b32c8f7Smrg do 136222b32c8f7Smrg # Strip MF so we end up with the name of the file. 13623433d0511Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13624433d0511Smrg # Check whether this is an Automake generated Makefile which includes 13625433d0511Smrg # dependency-tracking related rules and includes. 13626433d0511Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 136272b32c8f7Smrg # limit of 2048, but all sed's we know have understand at least 4000. 13628433d0511Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13629433d0511Smrg || continue 13630433d0511Smrg am_dirpart=`$as_dirname -- "$am_mf" || 13631433d0511Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13632433d0511Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 13633433d0511Smrg X"$am_mf" : 'X\(//\)$' \| \ 13634433d0511Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13635433d0511Smrgprintf "%s\n" X"$am_mf" | 13636eaef79e5Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13637eaef79e5Smrg s//\1/ 13638eaef79e5Smrg q 13639eaef79e5Smrg } 13640eaef79e5Smrg /^X\(\/\/\)[^/].*/{ 13641eaef79e5Smrg s//\1/ 13642eaef79e5Smrg q 13643eaef79e5Smrg } 13644eaef79e5Smrg /^X\(\/\/\)$/{ 13645eaef79e5Smrg s//\1/ 13646eaef79e5Smrg q 13647eaef79e5Smrg } 13648eaef79e5Smrg /^X\(\/\).*/{ 13649eaef79e5Smrg s//\1/ 13650eaef79e5Smrg q 13651eaef79e5Smrg } 13652eaef79e5Smrg s/.*/./; q'` 13653433d0511Smrg am_filepart=`$as_basename -- "$am_mf" || 13654433d0511Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13655433d0511Smrg X"$am_mf" : 'X\(//\)$' \| \ 13656433d0511Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13657433d0511Smrgprintf "%s\n" X/"$am_mf" | 13658433d0511Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 13659eaef79e5Smrg s//\1/ 13660eaef79e5Smrg q 13661eaef79e5Smrg } 13662433d0511Smrg /^X\/\(\/\/\)$/{ 13663eaef79e5Smrg s//\1/ 13664eaef79e5Smrg q 13665eaef79e5Smrg } 13666433d0511Smrg /^X\/\(\/\).*/{ 13667eaef79e5Smrg s//\1/ 13668eaef79e5Smrg q 13669eaef79e5Smrg } 13670eaef79e5Smrg s/.*/./; q'` 13671433d0511Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13672433d0511Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13673433d0511Smrg | $MAKE -f - am--depfiles" >&5 13674433d0511Smrg (cd "$am_dirpart" \ 13675433d0511Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13676433d0511Smrg | $MAKE -f - am--depfiles) >&5 2>&5 13677433d0511Smrg ac_status=$? 13678433d0511Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 13679433d0511Smrg (exit $ac_status); } || am_rc=$? 13680eaef79e5Smrg done 13681433d0511Smrg if test $am_rc -ne 0; then 13682433d0511Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13683433d0511Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13684433d0511Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 13685433d0511Smrg for automatic dependency tracking. If GNU make was not used, consider 13686433d0511Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 13687433d0511Smrg necessary). You can also try re-running configure with the 13688433d0511Smrg '--disable-dependency-tracking' option to at least be able to build 13689433d0511Smrg the package (albeit without support for automatic dependency tracking). 13690433d0511SmrgSee 'config.log' for more details" "$LINENO" 5; } 13691433d0511Smrg fi 13692433d0511Smrg { am_dirpart=; unset am_dirpart;} 13693433d0511Smrg { am_filepart=; unset am_filepart;} 13694433d0511Smrg { am_mf=; unset am_mf;} 13695433d0511Smrg { am_rc=; unset am_rc;} 13696433d0511Smrg rm -f conftest-deps.mk 136972b32c8f7Smrg} 13698eaef79e5Smrg ;; 136997515ee80Smrg "test/round-trip-test":F) chmod +x test/round-trip-test ;; 13700eaef79e5Smrg 13701eaef79e5Smrg esac 13702eaef79e5Smrgdone # for ac_tag 13703eaef79e5Smrg 13704eaef79e5Smrg 1370595e0246bSmrgas_fn_exit 0 13706eaef79e5Smrg_ACEOF 13707eaef79e5Smrgac_clean_files=$ac_clean_files_save 13708eaef79e5Smrg 137092b32c8f7Smrgtest $ac_write_fail = 0 || 1371095e0246bSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 137112b32c8f7Smrg 13712eaef79e5Smrg 13713eaef79e5Smrg# configure is writing to config.log, and then calls config.status. 13714eaef79e5Smrg# config.status does its own redirection, appending to config.log. 13715eaef79e5Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 13716eaef79e5Smrg# by configure, so config.status won't be able to write to it; its 13717eaef79e5Smrg# output is simply discarded. So we exec the FD to /dev/null, 13718eaef79e5Smrg# effectively closing config.log, so it can be properly (re)opened and 13719eaef79e5Smrg# appended to by config.status. When coming back to configure, we 13720eaef79e5Smrg# need to make the FD available again. 13721eaef79e5Smrgif test "$no_create" != yes; then 13722eaef79e5Smrg ac_cs_success=: 13723eaef79e5Smrg ac_config_status_args= 13724eaef79e5Smrg test "$silent" = yes && 13725eaef79e5Smrg ac_config_status_args="$ac_config_status_args --quiet" 13726eaef79e5Smrg exec 5>/dev/null 13727eaef79e5Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13728eaef79e5Smrg exec 5>>config.log 13729eaef79e5Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13730eaef79e5Smrg # would make configure fail if this is the last instruction. 1373195e0246bSmrg $ac_cs_success || as_fn_exit 1 13732eaef79e5Smrgfi 137332b32c8f7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13734433d0511Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13735433d0511Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 137362b32c8f7Smrgfi 13737eaef79e5Smrg 13738433d0511Smrg 13739