153354cdbSmrg#! /bin/sh 253354cdbSmrg# Guess values for system-dependent variables and create Makefiles. 3afb14e9bSmrg# Generated by GNU Autoconf 2.71 for rgb 1.1.0. 453354cdbSmrg# 5afb14e9bSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>. 653354cdbSmrg# 786bbecbeSmrg# 8afb14e9bSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9afb14e9bSmrg# Inc. 1086bbecbeSmrg# 1186bbecbeSmrg# 1253354cdbSmrg# This configure script is free software; the Free Software Foundation 1353354cdbSmrg# gives unlimited permission to copy, distribute and modify it. 1486bbecbeSmrg## -------------------- ## 1586bbecbeSmrg## M4sh Initialization. ## 1686bbecbeSmrg## -------------------- ## 1753354cdbSmrg 1853354cdbSmrg# Be more Bourne compatible 1953354cdbSmrgDUALCASE=1; export DUALCASE # for MKS sh 20afb14e9bSmrgas_nop=: 21afb14e9bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22afb14e9bSmrgthen : 2353354cdbSmrg emulate sh 2453354cdbSmrg NULLCMD=: 2586bbecbeSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2653354cdbSmrg # is contrary to our usage. Disable this feature. 2753354cdbSmrg alias -g '${1+"$@"}'='"$@"' 2853354cdbSmrg setopt NO_GLOB_SUBST 29afb14e9bSmrgelse $as_nop 3086bbecbeSmrg case `(set -o) 2>/dev/null` in #( 3186bbecbeSmrg *posix*) : 3286bbecbeSmrg set -o posix ;; #( 3386bbecbeSmrg *) : 3486bbecbeSmrg ;; 3553354cdbSmrgesac 3653354cdbSmrgfi 3753354cdbSmrg 3853354cdbSmrg 39afb14e9bSmrg 40afb14e9bSmrg# Reset variables that may have inherited troublesome values from 41afb14e9bSmrg# the environment. 42afb14e9bSmrg 43afb14e9bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44afb14e9bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45afb14e9bSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 46afb14e9bSmrg# Quoting is to prevent editors from complaining about space-tab. 4786bbecbeSmrgas_nl=' 4886bbecbeSmrg' 4986bbecbeSmrgexport as_nl 50afb14e9bSmrgIFS=" "" $as_nl" 51afb14e9bSmrg 52afb14e9bSmrgPS1='$ ' 53afb14e9bSmrgPS2='> ' 54afb14e9bSmrgPS4='+ ' 55afb14e9bSmrg 56afb14e9bSmrg# Ensure predictable behavior from utilities with locale-dependent output. 57afb14e9bSmrgLC_ALL=C 58afb14e9bSmrgexport LC_ALL 59afb14e9bSmrgLANGUAGE=C 60afb14e9bSmrgexport LANGUAGE 61afb14e9bSmrg 62afb14e9bSmrg# We cannot yet rely on "unset" to work, but we need these variables 63afb14e9bSmrg# to be unset--not just set to an empty or harmless value--now, to 64afb14e9bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65afb14e9bSmrg# also avoids known problems related to "unset" and subshell syntax 66afb14e9bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67afb14e9bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68afb14e9bSmrgdo eval test \${$as_var+y} \ 69afb14e9bSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70afb14e9bSmrgdone 71afb14e9bSmrg 72afb14e9bSmrg# Ensure that fds 0, 1, and 2 are open. 73afb14e9bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74afb14e9bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75afb14e9bSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 7653354cdbSmrg 7786bbecbeSmrg# The user is always right. 78afb14e9bSmrgif ${PATH_SEPARATOR+false} :; then 7986bbecbeSmrg PATH_SEPARATOR=: 8086bbecbeSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8186bbecbeSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8286bbecbeSmrg PATH_SEPARATOR=';' 8386bbecbeSmrg } 8453354cdbSmrgfi 8553354cdbSmrg 8653354cdbSmrg 8753354cdbSmrg# Find who we are. Look in the path if we contain no directory separator. 8886bbecbeSmrgas_myself= 8986bbecbeSmrgcase $0 in #(( 9053354cdbSmrg *[\\/]* ) as_myself=$0 ;; 9153354cdbSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9253354cdbSmrgfor as_dir in $PATH 9353354cdbSmrgdo 9453354cdbSmrg IFS=$as_save_IFS 95afb14e9bSmrg case $as_dir in #((( 96afb14e9bSmrg '') as_dir=./ ;; 97afb14e9bSmrg */) ;; 98afb14e9bSmrg *) as_dir=$as_dir/ ;; 99afb14e9bSmrg esac 100afb14e9bSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10186bbecbeSmrg done 10253354cdbSmrgIFS=$as_save_IFS 10353354cdbSmrg 10453354cdbSmrg ;; 10553354cdbSmrgesac 10653354cdbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10753354cdbSmrg# in which case we are not to be found in the path. 10853354cdbSmrgif test "x$as_myself" = x; then 10953354cdbSmrg as_myself=$0 11053354cdbSmrgfi 11153354cdbSmrgif test ! -f "$as_myself"; then 112afb14e9bSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11386bbecbeSmrg exit 1 11453354cdbSmrgfi 11553354cdbSmrg 11686bbecbeSmrg 117afb14e9bSmrg# Use a proper internal environment variable to ensure we don't fall 118afb14e9bSmrg # into an infinite loop, continuously re-executing ourselves. 119afb14e9bSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120afb14e9bSmrg _as_can_reexec=no; export _as_can_reexec; 121afb14e9bSmrg # We cannot yet assume a decent shell, so we have to provide a 122afb14e9bSmrg# neutralization value for shells without unset; and this also 123afb14e9bSmrg# works around shells that cannot unset nonexistent variables. 124afb14e9bSmrg# Preserve -v and -x to the replacement shell. 125afb14e9bSmrgBASH_ENV=/dev/null 126afb14e9bSmrgENV=/dev/null 127afb14e9bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128afb14e9bSmrgcase $- in # (((( 129afb14e9bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 130afb14e9bSmrg *v* ) as_opts=-v ;; 131afb14e9bSmrg *x* ) as_opts=-x ;; 132afb14e9bSmrg * ) as_opts= ;; 133afb14e9bSmrgesac 134afb14e9bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135afb14e9bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 136afb14e9bSmrg# out after a failed `exec'. 137afb14e9bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138afb14e9bSmrgexit 255 139afb14e9bSmrg fi 140afb14e9bSmrg # We don't want this to propagate to other subprocesses. 141afb14e9bSmrg { _as_can_reexec=; unset _as_can_reexec;} 14286bbecbeSmrgif test "x$CONFIG_SHELL" = x; then 143afb14e9bSmrg as_bourne_compatible="as_nop=: 144afb14e9bSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145afb14e9bSmrgthen : 14686bbecbeSmrg emulate sh 14786bbecbeSmrg NULLCMD=: 14886bbecbeSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14986bbecbeSmrg # is contrary to our usage. Disable this feature. 15086bbecbeSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15186bbecbeSmrg setopt NO_GLOB_SUBST 152afb14e9bSmrgelse \$as_nop 15386bbecbeSmrg case \`(set -o) 2>/dev/null\` in #( 15486bbecbeSmrg *posix*) : 15586bbecbeSmrg set -o posix ;; #( 15686bbecbeSmrg *) : 15786bbecbeSmrg ;; 15886bbecbeSmrgesac 15986bbecbeSmrgfi 16086bbecbeSmrg" 16186bbecbeSmrg as_required="as_fn_return () { (exit \$1); } 16286bbecbeSmrgas_fn_success () { as_fn_return 0; } 16386bbecbeSmrgas_fn_failure () { as_fn_return 1; } 16486bbecbeSmrgas_fn_ret_success () { return 0; } 16586bbecbeSmrgas_fn_ret_failure () { return 1; } 16686bbecbeSmrg 16786bbecbeSmrgexitcode=0 16886bbecbeSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16986bbecbeSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17086bbecbeSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17186bbecbeSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172afb14e9bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173afb14e9bSmrgthen : 17486bbecbeSmrg 175afb14e9bSmrgelse \$as_nop 17686bbecbeSmrg exitcode=1; echo positional parameters were not saved. 17786bbecbeSmrgfi 178afb14e9bSmrgtest x\$exitcode = x0 || exit 1 179afb14e9bSmrgblah=\$(echo \$(echo blah)) 180afb14e9bSmrgtest x\"\$blah\" = xblah || exit 1 181afb14e9bSmrgtest -x / || exit 1" 18286bbecbeSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18386bbecbeSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18486bbecbeSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18586bbecbeSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18686bbecbeSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 187afb14e9bSmrg if (eval "$as_required") 2>/dev/null 188afb14e9bSmrgthen : 18986bbecbeSmrg as_have_required=yes 190afb14e9bSmrgelse $as_nop 19186bbecbeSmrg as_have_required=no 19286bbecbeSmrgfi 193afb14e9bSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194afb14e9bSmrgthen : 19586bbecbeSmrg 196afb14e9bSmrgelse $as_nop 19786bbecbeSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19886bbecbeSmrgas_found=false 19986bbecbeSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20053354cdbSmrgdo 20186bbecbeSmrg IFS=$as_save_IFS 202afb14e9bSmrg case $as_dir in #((( 203afb14e9bSmrg '') as_dir=./ ;; 204afb14e9bSmrg */) ;; 205afb14e9bSmrg *) as_dir=$as_dir/ ;; 206afb14e9bSmrg esac 20786bbecbeSmrg as_found=: 20886bbecbeSmrg case $as_dir in #( 20986bbecbeSmrg /*) 21086bbecbeSmrg for as_base in sh bash ksh sh5; do 21186bbecbeSmrg # Try only shells that exist, to save several forks. 212afb14e9bSmrg as_shell=$as_dir$as_base 21386bbecbeSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214afb14e9bSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215afb14e9bSmrgthen : 21686bbecbeSmrg CONFIG_SHELL=$as_shell as_have_required=yes 217afb14e9bSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218afb14e9bSmrgthen : 21986bbecbeSmrg break 2 22086bbecbeSmrgfi 22186bbecbeSmrgfi 22286bbecbeSmrg done;; 22386bbecbeSmrg esac 22486bbecbeSmrg as_found=false 22586bbecbeSmrgdone 22686bbecbeSmrgIFS=$as_save_IFS 227afb14e9bSmrgif $as_found 228afb14e9bSmrgthen : 22986bbecbeSmrg 230afb14e9bSmrgelse $as_nop 231afb14e9bSmrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232afb14e9bSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233afb14e9bSmrgthen : 234afb14e9bSmrg CONFIG_SHELL=$SHELL as_have_required=yes 23586bbecbeSmrgfi 236afb14e9bSmrgfi 237afb14e9bSmrg 23886bbecbeSmrg 239afb14e9bSmrg if test "x$CONFIG_SHELL" != x 240afb14e9bSmrgthen : 241afb14e9bSmrg export CONFIG_SHELL 242afb14e9bSmrg # We cannot yet assume a decent shell, so we have to provide a 243afb14e9bSmrg# neutralization value for shells without unset; and this also 244afb14e9bSmrg# works around shells that cannot unset nonexistent variables. 245afb14e9bSmrg# Preserve -v and -x to the replacement shell. 246afb14e9bSmrgBASH_ENV=/dev/null 247afb14e9bSmrgENV=/dev/null 248afb14e9bSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249afb14e9bSmrgcase $- in # (((( 250afb14e9bSmrg *v*x* | *x*v* ) as_opts=-vx ;; 251afb14e9bSmrg *v* ) as_opts=-v ;; 252afb14e9bSmrg *x* ) as_opts=-x ;; 253afb14e9bSmrg * ) as_opts= ;; 254afb14e9bSmrgesac 255afb14e9bSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256afb14e9bSmrg# Admittedly, this is quite paranoid, since all the known shells bail 257afb14e9bSmrg# out after a failed `exec'. 258afb14e9bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259afb14e9bSmrgexit 255 260afb14e9bSmrgfi 261afb14e9bSmrg 262afb14e9bSmrg if test x$as_have_required = xno 263afb14e9bSmrgthen : 264afb14e9bSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 265afb14e9bSmrg printf "%s\n" "$0: the shells that I found on your system." 266afb14e9bSmrg if test ${ZSH_VERSION+y} ; then 267afb14e9bSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268afb14e9bSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 26953354cdbSmrg else 270afb14e9bSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271afb14e9bSmrg$0: https://gitlab.freedesktop.org/xorg/app/rgb/-/issues 27286bbecbeSmrg$0: about your system, including any error possibly output 27386bbecbeSmrg$0: before this message. Then install a modern shell, or 27486bbecbeSmrg$0: manually run the script under such a shell if you do 27586bbecbeSmrg$0: have one." 27653354cdbSmrg fi 27786bbecbeSmrg exit 1 27886bbecbeSmrgfi 27986bbecbeSmrgfi 28086bbecbeSmrgfi 28186bbecbeSmrgSHELL=${CONFIG_SHELL-/bin/sh} 28286bbecbeSmrgexport SHELL 28386bbecbeSmrg# Unset more variables known to interfere with behavior of common tools. 28486bbecbeSmrgCLICOLOR_FORCE= GREP_OPTIONS= 28586bbecbeSmrgunset CLICOLOR_FORCE GREP_OPTIONS 28686bbecbeSmrg 28786bbecbeSmrg## --------------------- ## 28886bbecbeSmrg## M4sh Shell Functions. ## 28986bbecbeSmrg## --------------------- ## 29086bbecbeSmrg# as_fn_unset VAR 29186bbecbeSmrg# --------------- 29286bbecbeSmrg# Portably unset VAR. 29386bbecbeSmrgas_fn_unset () 29486bbecbeSmrg{ 29586bbecbeSmrg { eval $1=; unset $1;} 29686bbecbeSmrg} 29786bbecbeSmrgas_unset=as_fn_unset 29886bbecbeSmrg 299afb14e9bSmrg 30086bbecbeSmrg# as_fn_set_status STATUS 30186bbecbeSmrg# ----------------------- 30286bbecbeSmrg# Set $? to STATUS, without forking. 30386bbecbeSmrgas_fn_set_status () 30486bbecbeSmrg{ 30586bbecbeSmrg return $1 30686bbecbeSmrg} # as_fn_set_status 30786bbecbeSmrg 30886bbecbeSmrg# as_fn_exit STATUS 30986bbecbeSmrg# ----------------- 31086bbecbeSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31186bbecbeSmrgas_fn_exit () 31286bbecbeSmrg{ 31386bbecbeSmrg set +e 31486bbecbeSmrg as_fn_set_status $1 31586bbecbeSmrg exit $1 31686bbecbeSmrg} # as_fn_exit 317afb14e9bSmrg# as_fn_nop 318afb14e9bSmrg# --------- 319afb14e9bSmrg# Do nothing but, unlike ":", preserve the value of $?. 320afb14e9bSmrgas_fn_nop () 321afb14e9bSmrg{ 322afb14e9bSmrg return $? 323afb14e9bSmrg} 324afb14e9bSmrgas_nop=as_fn_nop 32586bbecbeSmrg 32686bbecbeSmrg# as_fn_mkdir_p 32786bbecbeSmrg# ------------- 32886bbecbeSmrg# Create "$as_dir" as a directory, including parents if necessary. 32986bbecbeSmrgas_fn_mkdir_p () 33086bbecbeSmrg{ 33186bbecbeSmrg 33286bbecbeSmrg case $as_dir in #( 33386bbecbeSmrg -*) as_dir=./$as_dir;; 33486bbecbeSmrg esac 33586bbecbeSmrg test -d "$as_dir" || eval $as_mkdir_p || { 33686bbecbeSmrg as_dirs= 33786bbecbeSmrg while :; do 33886bbecbeSmrg case $as_dir in #( 339afb14e9bSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34086bbecbeSmrg *) as_qdir=$as_dir;; 34186bbecbeSmrg esac 34286bbecbeSmrg as_dirs="'$as_qdir' $as_dirs" 34386bbecbeSmrg as_dir=`$as_dirname -- "$as_dir" || 34486bbecbeSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34586bbecbeSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34686bbecbeSmrg X"$as_dir" : 'X\(//\)$' \| \ 34786bbecbeSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348afb14e9bSmrgprintf "%s\n" X"$as_dir" | 34986bbecbeSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35086bbecbeSmrg s//\1/ 35186bbecbeSmrg q 35286bbecbeSmrg } 35386bbecbeSmrg /^X\(\/\/\)[^/].*/{ 35486bbecbeSmrg s//\1/ 35586bbecbeSmrg q 35686bbecbeSmrg } 35786bbecbeSmrg /^X\(\/\/\)$/{ 35886bbecbeSmrg s//\1/ 35986bbecbeSmrg q 36086bbecbeSmrg } 36186bbecbeSmrg /^X\(\/\).*/{ 36286bbecbeSmrg s//\1/ 36386bbecbeSmrg q 36486bbecbeSmrg } 36586bbecbeSmrg s/.*/./; q'` 36686bbecbeSmrg test -d "$as_dir" && break 36786bbecbeSmrg done 36886bbecbeSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36986bbecbeSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37086bbecbeSmrg 37186bbecbeSmrg 37286bbecbeSmrg} # as_fn_mkdir_p 373afb14e9bSmrg 374afb14e9bSmrg# as_fn_executable_p FILE 375afb14e9bSmrg# ----------------------- 376afb14e9bSmrg# Test if FILE is an executable regular file. 377afb14e9bSmrgas_fn_executable_p () 378afb14e9bSmrg{ 379afb14e9bSmrg test -f "$1" && test -x "$1" 380afb14e9bSmrg} # as_fn_executable_p 38186bbecbeSmrg# as_fn_append VAR VALUE 38286bbecbeSmrg# ---------------------- 38386bbecbeSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38486bbecbeSmrg# advantage of any shell optimizations that allow amortized linear growth over 38586bbecbeSmrg# repeated appends, instead of the typical quadratic growth present in naive 38686bbecbeSmrg# implementations. 387afb14e9bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388afb14e9bSmrgthen : 38986bbecbeSmrg eval 'as_fn_append () 39086bbecbeSmrg { 39186bbecbeSmrg eval $1+=\$2 39286bbecbeSmrg }' 393afb14e9bSmrgelse $as_nop 39486bbecbeSmrg as_fn_append () 39586bbecbeSmrg { 39686bbecbeSmrg eval $1=\$$1\$2 39786bbecbeSmrg } 39886bbecbeSmrgfi # as_fn_append 39986bbecbeSmrg 40086bbecbeSmrg# as_fn_arith ARG... 40186bbecbeSmrg# ------------------ 40286bbecbeSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40386bbecbeSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40486bbecbeSmrg# must be portable across $(()) and expr. 405afb14e9bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406afb14e9bSmrgthen : 40786bbecbeSmrg eval 'as_fn_arith () 40886bbecbeSmrg { 40986bbecbeSmrg as_val=$(( $* )) 41086bbecbeSmrg }' 411afb14e9bSmrgelse $as_nop 41286bbecbeSmrg as_fn_arith () 41386bbecbeSmrg { 41486bbecbeSmrg as_val=`expr "$@" || test $? -eq 1` 41586bbecbeSmrg } 41686bbecbeSmrgfi # as_fn_arith 41786bbecbeSmrg 418afb14e9bSmrg# as_fn_nop 419afb14e9bSmrg# --------- 420afb14e9bSmrg# Do nothing but, unlike ":", preserve the value of $?. 421afb14e9bSmrgas_fn_nop () 422afb14e9bSmrg{ 423afb14e9bSmrg return $? 424afb14e9bSmrg} 425afb14e9bSmrgas_nop=as_fn_nop 42686bbecbeSmrg 42786bbecbeSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 42886bbecbeSmrg# ---------------------------------------- 42986bbecbeSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 43086bbecbeSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 43186bbecbeSmrg# script with STATUS, using 1 if that was 0. 43286bbecbeSmrgas_fn_error () 43386bbecbeSmrg{ 43486bbecbeSmrg as_status=$1; test $as_status -eq 0 && as_status=1 43586bbecbeSmrg if test "$4"; then 43686bbecbeSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 43886bbecbeSmrg fi 439afb14e9bSmrg printf "%s\n" "$as_me: error: $2" >&2 44086bbecbeSmrg as_fn_exit $as_status 44186bbecbeSmrg} # as_fn_error 44253354cdbSmrg 44353354cdbSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 44453354cdbSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 44553354cdbSmrg as_expr=expr 44653354cdbSmrgelse 44753354cdbSmrg as_expr=false 44853354cdbSmrgfi 44953354cdbSmrg 45053354cdbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 45153354cdbSmrg as_basename=basename 45253354cdbSmrgelse 45353354cdbSmrg as_basename=false 45453354cdbSmrgfi 45553354cdbSmrg 45686bbecbeSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 45786bbecbeSmrg as_dirname=dirname 45886bbecbeSmrgelse 45986bbecbeSmrg as_dirname=false 46086bbecbeSmrgfi 46153354cdbSmrg 46253354cdbSmrgas_me=`$as_basename -- "$0" || 46353354cdbSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46453354cdbSmrg X"$0" : 'X\(//\)$' \| \ 46553354cdbSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 466afb14e9bSmrgprintf "%s\n" X/"$0" | 46753354cdbSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 46853354cdbSmrg s//\1/ 46953354cdbSmrg q 47053354cdbSmrg } 47153354cdbSmrg /^X\/\(\/\/\)$/{ 47253354cdbSmrg s//\1/ 47353354cdbSmrg q 47453354cdbSmrg } 47553354cdbSmrg /^X\/\(\/\).*/{ 47653354cdbSmrg s//\1/ 47753354cdbSmrg q 47853354cdbSmrg } 47953354cdbSmrg s/.*/./; q'` 48053354cdbSmrg 48186bbecbeSmrg# Avoid depending upon Character Ranges. 48286bbecbeSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 48386bbecbeSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48486bbecbeSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 48586bbecbeSmrgas_cr_digits='0123456789' 48686bbecbeSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 48753354cdbSmrg 48853354cdbSmrg 48986bbecbeSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 49086bbecbeSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 49186bbecbeSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 49286bbecbeSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 49386bbecbeSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 49486bbecbeSmrg sed -n ' 49586bbecbeSmrg p 49686bbecbeSmrg /[$]LINENO/= 49786bbecbeSmrg ' <$as_myself | 49886bbecbeSmrg sed ' 49986bbecbeSmrg s/[$]LINENO.*/&-/ 50086bbecbeSmrg t lineno 50186bbecbeSmrg b 50286bbecbeSmrg :lineno 50386bbecbeSmrg N 50486bbecbeSmrg :loop 50586bbecbeSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 50686bbecbeSmrg t loop 50786bbecbeSmrg s/-\n.*// 50886bbecbeSmrg ' >$as_me.lineno && 50986bbecbeSmrg chmod +x "$as_me.lineno" || 510afb14e9bSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 51153354cdbSmrg 512afb14e9bSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513afb14e9bSmrg # already done that, so ensure we don't try to do so again and fall 514afb14e9bSmrg # in an infinite loop. This has already happened in practice. 515afb14e9bSmrg _as_can_reexec=no; export _as_can_reexec 51686bbecbeSmrg # Don't try to exec as it changes $[0], causing all sort of problems 51786bbecbeSmrg # (the dirname of $[0] is not the place where we might find the 51886bbecbeSmrg # original and so on. Autoconf is especially sensitive to this). 51986bbecbeSmrg . "./$as_me.lineno" 52086bbecbeSmrg # Exit status is that of the last command. 52186bbecbeSmrg exit 52253354cdbSmrg} 52353354cdbSmrg 524afb14e9bSmrg 525afb14e9bSmrg# Determine whether it's possible to make 'echo' print without a newline. 526afb14e9bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527afb14e9bSmrg# for compatibility with existing Makefiles. 52886bbecbeSmrgECHO_C= ECHO_N= ECHO_T= 52986bbecbeSmrgcase `echo -n x` in #((((( 53086bbecbeSmrg-n*) 53186bbecbeSmrg case `echo 'xy\c'` in 53286bbecbeSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53386bbecbeSmrg xy) ECHO_C='\c';; 53486bbecbeSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53586bbecbeSmrg ECHO_T=' ';; 53686bbecbeSmrg esac;; 53786bbecbeSmrg*) 53886bbecbeSmrg ECHO_N='-n';; 53986bbecbeSmrgesac 54053354cdbSmrg 541afb14e9bSmrg# For backward compatibility with old third-party macros, we provide 542afb14e9bSmrg# the shell variables $as_echo and $as_echo_n. New code should use 543afb14e9bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544afb14e9bSmrgas_echo='printf %s\n' 545afb14e9bSmrgas_echo_n='printf %s' 546afb14e9bSmrg 547afb14e9bSmrg 54886bbecbeSmrgrm -f conf$$ conf$$.exe conf$$.file 54986bbecbeSmrgif test -d conf$$.dir; then 55086bbecbeSmrg rm -f conf$$.dir/conf$$.file 55186bbecbeSmrgelse 55286bbecbeSmrg rm -f conf$$.dir 55386bbecbeSmrg mkdir conf$$.dir 2>/dev/null 55486bbecbeSmrgfi 55586bbecbeSmrgif (echo >conf$$.file) 2>/dev/null; then 55686bbecbeSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 55786bbecbeSmrg as_ln_s='ln -s' 55886bbecbeSmrg # ... but there are two gotchas: 55986bbecbeSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 56086bbecbeSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561afb14e9bSmrg # In both cases, we have to default to `cp -pR'. 56286bbecbeSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563afb14e9bSmrg as_ln_s='cp -pR' 56486bbecbeSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 56586bbecbeSmrg as_ln_s=ln 56686bbecbeSmrg else 567afb14e9bSmrg as_ln_s='cp -pR' 56886bbecbeSmrg fi 56953354cdbSmrgelse 570afb14e9bSmrg as_ln_s='cp -pR' 57153354cdbSmrgfi 57286bbecbeSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 57386bbecbeSmrgrmdir conf$$.dir 2>/dev/null 57453354cdbSmrg 57586bbecbeSmrgif mkdir -p . 2>/dev/null; then 57686bbecbeSmrg as_mkdir_p='mkdir -p "$as_dir"' 57786bbecbeSmrgelse 57886bbecbeSmrg test -d ./-p && rmdir ./-p 57986bbecbeSmrg as_mkdir_p=false 58053354cdbSmrgfi 58153354cdbSmrg 582afb14e9bSmrgas_test_x='test -x' 583afb14e9bSmrgas_executable_p=as_fn_executable_p 58453354cdbSmrg 58586bbecbeSmrg# Sed expression to map a string onto a valid CPP name. 58686bbecbeSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 58753354cdbSmrg 58886bbecbeSmrg# Sed expression to map a string onto a valid variable name. 58986bbecbeSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59053354cdbSmrg 59153354cdbSmrg 59286bbecbeSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 59386bbecbeSmrgexec 6>&1 59453354cdbSmrg 59586bbecbeSmrg# Name of the host. 59686bbecbeSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 59786bbecbeSmrg# so uname gets run too. 59886bbecbeSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 59953354cdbSmrg 60086bbecbeSmrg# 60186bbecbeSmrg# Initializations. 60286bbecbeSmrg# 60386bbecbeSmrgac_default_prefix=/usr/local 60486bbecbeSmrgac_clean_files= 60586bbecbeSmrgac_config_libobj_dir=. 60686bbecbeSmrgLIBOBJS= 60786bbecbeSmrgcross_compiling=no 60886bbecbeSmrgsubdirs= 60986bbecbeSmrgMFLAGS= 61086bbecbeSmrgMAKEFLAGS= 61153354cdbSmrg 61253354cdbSmrg# Identity of this package. 61353354cdbSmrgPACKAGE_NAME='rgb' 61453354cdbSmrgPACKAGE_TARNAME='rgb' 615afb14e9bSmrgPACKAGE_VERSION='1.1.0' 616afb14e9bSmrgPACKAGE_STRING='rgb 1.1.0' 617afb14e9bSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/rgb/-/issues' 61886bbecbeSmrgPACKAGE_URL='' 61953354cdbSmrg 62061c899d4Smrgac_unique_file="Makefile.am" 62153354cdbSmrg# Factoring default headers for most tests. 62253354cdbSmrgac_includes_default="\ 623afb14e9bSmrg#include <stddef.h> 624afb14e9bSmrg#ifdef HAVE_STDIO_H 625afb14e9bSmrg# include <stdio.h> 62653354cdbSmrg#endif 627afb14e9bSmrg#ifdef HAVE_STDLIB_H 62853354cdbSmrg# include <stdlib.h> 62953354cdbSmrg#endif 63053354cdbSmrg#ifdef HAVE_STRING_H 63153354cdbSmrg# include <string.h> 63253354cdbSmrg#endif 63353354cdbSmrg#ifdef HAVE_INTTYPES_H 63453354cdbSmrg# include <inttypes.h> 63553354cdbSmrg#endif 63653354cdbSmrg#ifdef HAVE_STDINT_H 63753354cdbSmrg# include <stdint.h> 63853354cdbSmrg#endif 639afb14e9bSmrg#ifdef HAVE_STRINGS_H 640afb14e9bSmrg# include <strings.h> 641afb14e9bSmrg#endif 642afb14e9bSmrg#ifdef HAVE_SYS_TYPES_H 643afb14e9bSmrg# include <sys/types.h> 644afb14e9bSmrg#endif 645afb14e9bSmrg#ifdef HAVE_SYS_STAT_H 646afb14e9bSmrg# include <sys/stat.h> 647afb14e9bSmrg#endif 64853354cdbSmrg#ifdef HAVE_UNISTD_H 64953354cdbSmrg# include <unistd.h> 65053354cdbSmrg#endif" 65153354cdbSmrg 652afb14e9bSmrgac_header_c_list= 65386bbecbeSmrgac_subst_vars='am__EXEEXT_FALSE 65486bbecbeSmrgam__EXEEXT_TRUE 65586bbecbeSmrgLTLIBOBJS 65686bbecbeSmrgLIBOBJS 65753354cdbSmrgRGB_DB_FALSE 65886bbecbeSmrgRGB_DB_TRUE 65986bbecbeSmrgRGB_DB_FILES 66086bbecbeSmrgRGB_DB_TYPE 66186bbecbeSmrgXORG_LIBS 66286bbecbeSmrgXORG_CFLAGS 66386bbecbeSmrgdb_dir 66486bbecbeSmrgdb_file 66586bbecbeSmrgRGB_LIBS 66686bbecbeSmrgRGB_CFLAGS 66786bbecbeSmrgMAN_SUBSTS 66886bbecbeSmrgXORG_MAN_PAGE 66953354cdbSmrgADMIN_MAN_DIR 67086bbecbeSmrgDRIVER_MAN_DIR 67186bbecbeSmrgMISC_MAN_DIR 67286bbecbeSmrgFILE_MAN_DIR 67386bbecbeSmrgLIB_MAN_DIR 67486bbecbeSmrgAPP_MAN_DIR 67586bbecbeSmrgADMIN_MAN_SUFFIX 67686bbecbeSmrgDRIVER_MAN_SUFFIX 67786bbecbeSmrgMISC_MAN_SUFFIX 67886bbecbeSmrgFILE_MAN_SUFFIX 67986bbecbeSmrgLIB_MAN_SUFFIX 68086bbecbeSmrgAPP_MAN_SUFFIX 68186bbecbeSmrgSED 68286bbecbeSmrghost_os 68386bbecbeSmrghost_vendor 68486bbecbeSmrghost_cpu 68586bbecbeSmrghost 68686bbecbeSmrgbuild_os 68786bbecbeSmrgbuild_vendor 68886bbecbeSmrgbuild_cpu 68986bbecbeSmrgbuild 69086bbecbeSmrgINSTALL_CMD 691afb14e9bSmrgPKG_CONFIG_LIBDIR 692afb14e9bSmrgPKG_CONFIG_PATH 69386bbecbeSmrgPKG_CONFIG 69486bbecbeSmrgCHANGELOG_CMD 69561c899d4SmrgSTRICT_CFLAGS 69686bbecbeSmrgCWARNFLAGS 69761c899d4SmrgBASE_CFLAGS 698ecb85c42SmrgAM_BACKSLASH 699ecb85c42SmrgAM_DEFAULT_VERBOSITY 700ecb85c42SmrgAM_DEFAULT_V 701ecb85c42SmrgAM_V 702afb14e9bSmrgCSCOPE 703afb14e9bSmrgETAGS 704afb14e9bSmrgCTAGS 70586bbecbeSmrgam__fastdepCC_FALSE 70686bbecbeSmrgam__fastdepCC_TRUE 70786bbecbeSmrgCCDEPMODE 70861c899d4Smrgam__nodep 70986bbecbeSmrgAMDEPBACKSLASH 71086bbecbeSmrgAMDEP_FALSE 71186bbecbeSmrgAMDEP_TRUE 71286bbecbeSmrgam__include 71386bbecbeSmrgDEPDIR 71486bbecbeSmrgam__untar 71586bbecbeSmrgam__tar 71686bbecbeSmrgAMTAR 71786bbecbeSmrgam__leading_dot 71886bbecbeSmrgSET_MAKE 71986bbecbeSmrgAWK 72086bbecbeSmrgmkdir_p 72186bbecbeSmrgMKDIR_P 72286bbecbeSmrgINSTALL_STRIP_PROGRAM 72386bbecbeSmrgSTRIP 72486bbecbeSmrginstall_sh 72586bbecbeSmrgMAKEINFO 72686bbecbeSmrgAUTOHEADER 72786bbecbeSmrgAUTOMAKE 72886bbecbeSmrgAUTOCONF 72986bbecbeSmrgACLOCAL 73086bbecbeSmrgVERSION 73186bbecbeSmrgPACKAGE 73286bbecbeSmrgCYGPATH_W 73386bbecbeSmrgam__isrc 73486bbecbeSmrgINSTALL_DATA 73586bbecbeSmrgINSTALL_SCRIPT 73686bbecbeSmrgINSTALL_PROGRAM 737ecb85c42SmrgOBJEXT 738ecb85c42SmrgEXEEXT 739ecb85c42Smrgac_ct_CC 740ecb85c42SmrgCPPFLAGS 741ecb85c42SmrgLDFLAGS 742ecb85c42SmrgCFLAGS 743ecb85c42SmrgCC 74486bbecbeSmrgtarget_alias 74586bbecbeSmrghost_alias 74686bbecbeSmrgbuild_alias 74786bbecbeSmrgLIBS 74886bbecbeSmrgECHO_T 74986bbecbeSmrgECHO_N 75086bbecbeSmrgECHO_C 75186bbecbeSmrgDEFS 75286bbecbeSmrgmandir 75386bbecbeSmrglocaledir 75486bbecbeSmrglibdir 75586bbecbeSmrgpsdir 75686bbecbeSmrgpdfdir 75786bbecbeSmrgdvidir 75886bbecbeSmrghtmldir 75986bbecbeSmrginfodir 76086bbecbeSmrgdocdir 76186bbecbeSmrgoldincludedir 76286bbecbeSmrgincludedir 763afb14e9bSmrgrunstatedir 76486bbecbeSmrglocalstatedir 76586bbecbeSmrgsharedstatedir 76686bbecbeSmrgsysconfdir 76786bbecbeSmrgdatadir 76886bbecbeSmrgdatarootdir 76986bbecbeSmrglibexecdir 77086bbecbeSmrgsbindir 77186bbecbeSmrgbindir 77286bbecbeSmrgprogram_transform_name 77386bbecbeSmrgprefix 77486bbecbeSmrgexec_prefix 77586bbecbeSmrgPACKAGE_URL 77686bbecbeSmrgPACKAGE_BUGREPORT 77786bbecbeSmrgPACKAGE_STRING 77886bbecbeSmrgPACKAGE_VERSION 77986bbecbeSmrgPACKAGE_TARNAME 78086bbecbeSmrgPACKAGE_NAME 78186bbecbeSmrgPATH_SEPARATOR 782afb14e9bSmrgSHELL 783afb14e9bSmrgam__quote' 78453354cdbSmrgac_subst_files='' 78586bbecbeSmrgac_user_opts=' 78686bbecbeSmrgenable_option_checking 78786bbecbeSmrgenable_dependency_tracking 788ecb85c42Smrgenable_silent_rules 78961c899d4Smrgenable_selective_werror 79086bbecbeSmrgenable_strict_compilation 79186bbecbeSmrgwith_rgb_db_dir 79286bbecbeSmrgwith_rgb_db_type 793afb14e9bSmrgwith_rgb_db_library 79486bbecbeSmrg' 79553354cdbSmrg ac_precious_vars='build_alias 79653354cdbSmrghost_alias 79753354cdbSmrgtarget_alias 79853354cdbSmrgCC 79953354cdbSmrgCFLAGS 80053354cdbSmrgLDFLAGS 80153354cdbSmrgLIBS 80253354cdbSmrgCPPFLAGS 80353354cdbSmrgPKG_CONFIG 804afb14e9bSmrgPKG_CONFIG_PATH 805afb14e9bSmrgPKG_CONFIG_LIBDIR 80653354cdbSmrgRGB_CFLAGS 80753354cdbSmrgRGB_LIBS 80853354cdbSmrgXORG_CFLAGS 80953354cdbSmrgXORG_LIBS' 81053354cdbSmrg 81153354cdbSmrg 81253354cdbSmrg# Initialize some variables set by options. 81353354cdbSmrgac_init_help= 81453354cdbSmrgac_init_version=false 81586bbecbeSmrgac_unrecognized_opts= 81686bbecbeSmrgac_unrecognized_sep= 81753354cdbSmrg# The variables have the same names as the options, with 81853354cdbSmrg# dashes changed to underlines. 81953354cdbSmrgcache_file=/dev/null 82053354cdbSmrgexec_prefix=NONE 82153354cdbSmrgno_create= 82253354cdbSmrgno_recursion= 82353354cdbSmrgprefix=NONE 82453354cdbSmrgprogram_prefix=NONE 82553354cdbSmrgprogram_suffix=NONE 82653354cdbSmrgprogram_transform_name=s,x,x, 82753354cdbSmrgsilent= 82853354cdbSmrgsite= 82953354cdbSmrgsrcdir= 83053354cdbSmrgverbose= 83153354cdbSmrgx_includes=NONE 83253354cdbSmrgx_libraries=NONE 83353354cdbSmrg 83453354cdbSmrg# Installation directory options. 83553354cdbSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 83653354cdbSmrg# and all the variables that are supposed to be based on exec_prefix 83753354cdbSmrg# by default will actually change. 83853354cdbSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 83953354cdbSmrg# (The list follows the same order as the GNU Coding Standards.) 84053354cdbSmrgbindir='${exec_prefix}/bin' 84153354cdbSmrgsbindir='${exec_prefix}/sbin' 84253354cdbSmrglibexecdir='${exec_prefix}/libexec' 84353354cdbSmrgdatarootdir='${prefix}/share' 84453354cdbSmrgdatadir='${datarootdir}' 84553354cdbSmrgsysconfdir='${prefix}/etc' 84653354cdbSmrgsharedstatedir='${prefix}/com' 84753354cdbSmrglocalstatedir='${prefix}/var' 848afb14e9bSmrgrunstatedir='${localstatedir}/run' 84953354cdbSmrgincludedir='${prefix}/include' 85053354cdbSmrgoldincludedir='/usr/include' 85153354cdbSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 85253354cdbSmrginfodir='${datarootdir}/info' 85353354cdbSmrghtmldir='${docdir}' 85453354cdbSmrgdvidir='${docdir}' 85553354cdbSmrgpdfdir='${docdir}' 85653354cdbSmrgpsdir='${docdir}' 85753354cdbSmrglibdir='${exec_prefix}/lib' 85853354cdbSmrglocaledir='${datarootdir}/locale' 85953354cdbSmrgmandir='${datarootdir}/man' 86053354cdbSmrg 86153354cdbSmrgac_prev= 86253354cdbSmrgac_dashdash= 86353354cdbSmrgfor ac_option 86453354cdbSmrgdo 86553354cdbSmrg # If the previous option needs an argument, assign it. 86653354cdbSmrg if test -n "$ac_prev"; then 86753354cdbSmrg eval $ac_prev=\$ac_option 86853354cdbSmrg ac_prev= 86953354cdbSmrg continue 87053354cdbSmrg fi 87153354cdbSmrg 87253354cdbSmrg case $ac_option in 87386bbecbeSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 87486bbecbeSmrg *=) ac_optarg= ;; 87586bbecbeSmrg *) ac_optarg=yes ;; 87653354cdbSmrg esac 87753354cdbSmrg 87853354cdbSmrg case $ac_dashdash$ac_option in 87953354cdbSmrg --) 88053354cdbSmrg ac_dashdash=yes ;; 88153354cdbSmrg 88253354cdbSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 88353354cdbSmrg ac_prev=bindir ;; 88453354cdbSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 88553354cdbSmrg bindir=$ac_optarg ;; 88653354cdbSmrg 88753354cdbSmrg -build | --build | --buil | --bui | --bu) 88853354cdbSmrg ac_prev=build_alias ;; 88953354cdbSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 89053354cdbSmrg build_alias=$ac_optarg ;; 89153354cdbSmrg 89253354cdbSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 89353354cdbSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 89453354cdbSmrg ac_prev=cache_file ;; 89553354cdbSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 89653354cdbSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 89753354cdbSmrg cache_file=$ac_optarg ;; 89853354cdbSmrg 89953354cdbSmrg --config-cache | -C) 90053354cdbSmrg cache_file=config.cache ;; 90153354cdbSmrg 90253354cdbSmrg -datadir | --datadir | --datadi | --datad) 90353354cdbSmrg ac_prev=datadir ;; 90453354cdbSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 90553354cdbSmrg datadir=$ac_optarg ;; 90653354cdbSmrg 90753354cdbSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 90853354cdbSmrg | --dataroo | --dataro | --datar) 90953354cdbSmrg ac_prev=datarootdir ;; 91053354cdbSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 91153354cdbSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 91253354cdbSmrg datarootdir=$ac_optarg ;; 91353354cdbSmrg 91453354cdbSmrg -disable-* | --disable-*) 91586bbecbeSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 91653354cdbSmrg # Reject names that are not valid shell variable names. 91786bbecbeSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918afb14e9bSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 91986bbecbeSmrg ac_useropt_orig=$ac_useropt 920afb14e9bSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 92186bbecbeSmrg case $ac_user_opts in 92286bbecbeSmrg *" 92386bbecbeSmrg"enable_$ac_useropt" 92486bbecbeSmrg"*) ;; 92586bbecbeSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 92686bbecbeSmrg ac_unrecognized_sep=', ';; 92786bbecbeSmrg esac 92886bbecbeSmrg eval enable_$ac_useropt=no ;; 92953354cdbSmrg 93053354cdbSmrg -docdir | --docdir | --docdi | --doc | --do) 93153354cdbSmrg ac_prev=docdir ;; 93253354cdbSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 93353354cdbSmrg docdir=$ac_optarg ;; 93453354cdbSmrg 93553354cdbSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 93653354cdbSmrg ac_prev=dvidir ;; 93753354cdbSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 93853354cdbSmrg dvidir=$ac_optarg ;; 93953354cdbSmrg 94053354cdbSmrg -enable-* | --enable-*) 94186bbecbeSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 94253354cdbSmrg # Reject names that are not valid shell variable names. 94386bbecbeSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944afb14e9bSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 94586bbecbeSmrg ac_useropt_orig=$ac_useropt 946afb14e9bSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 94786bbecbeSmrg case $ac_user_opts in 94886bbecbeSmrg *" 94986bbecbeSmrg"enable_$ac_useropt" 95086bbecbeSmrg"*) ;; 95186bbecbeSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 95286bbecbeSmrg ac_unrecognized_sep=', ';; 95386bbecbeSmrg esac 95486bbecbeSmrg eval enable_$ac_useropt=\$ac_optarg ;; 95553354cdbSmrg 95653354cdbSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 95753354cdbSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 95853354cdbSmrg | --exec | --exe | --ex) 95953354cdbSmrg ac_prev=exec_prefix ;; 96053354cdbSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 96153354cdbSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 96253354cdbSmrg | --exec=* | --exe=* | --ex=*) 96353354cdbSmrg exec_prefix=$ac_optarg ;; 96453354cdbSmrg 96553354cdbSmrg -gas | --gas | --ga | --g) 96653354cdbSmrg # Obsolete; use --with-gas. 96753354cdbSmrg with_gas=yes ;; 96853354cdbSmrg 96953354cdbSmrg -help | --help | --hel | --he | -h) 97053354cdbSmrg ac_init_help=long ;; 97153354cdbSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 97253354cdbSmrg ac_init_help=recursive ;; 97353354cdbSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 97453354cdbSmrg ac_init_help=short ;; 97553354cdbSmrg 97653354cdbSmrg -host | --host | --hos | --ho) 97753354cdbSmrg ac_prev=host_alias ;; 97853354cdbSmrg -host=* | --host=* | --hos=* | --ho=*) 97953354cdbSmrg host_alias=$ac_optarg ;; 98053354cdbSmrg 98153354cdbSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 98253354cdbSmrg ac_prev=htmldir ;; 98353354cdbSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 98453354cdbSmrg | --ht=*) 98553354cdbSmrg htmldir=$ac_optarg ;; 98653354cdbSmrg 98753354cdbSmrg -includedir | --includedir | --includedi | --included | --include \ 98853354cdbSmrg | --includ | --inclu | --incl | --inc) 98953354cdbSmrg ac_prev=includedir ;; 99053354cdbSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 99153354cdbSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 99253354cdbSmrg includedir=$ac_optarg ;; 99353354cdbSmrg 99453354cdbSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 99553354cdbSmrg ac_prev=infodir ;; 99653354cdbSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 99753354cdbSmrg infodir=$ac_optarg ;; 99853354cdbSmrg 99953354cdbSmrg -libdir | --libdir | --libdi | --libd) 100053354cdbSmrg ac_prev=libdir ;; 100153354cdbSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 100253354cdbSmrg libdir=$ac_optarg ;; 100353354cdbSmrg 100453354cdbSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 100553354cdbSmrg | --libexe | --libex | --libe) 100653354cdbSmrg ac_prev=libexecdir ;; 100753354cdbSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 100853354cdbSmrg | --libexe=* | --libex=* | --libe=*) 100953354cdbSmrg libexecdir=$ac_optarg ;; 101053354cdbSmrg 101153354cdbSmrg -localedir | --localedir | --localedi | --localed | --locale) 101253354cdbSmrg ac_prev=localedir ;; 101353354cdbSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 101453354cdbSmrg localedir=$ac_optarg ;; 101553354cdbSmrg 101653354cdbSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 101753354cdbSmrg | --localstate | --localstat | --localsta | --localst | --locals) 101853354cdbSmrg ac_prev=localstatedir ;; 101953354cdbSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 102053354cdbSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 102153354cdbSmrg localstatedir=$ac_optarg ;; 102253354cdbSmrg 102353354cdbSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 102453354cdbSmrg ac_prev=mandir ;; 102553354cdbSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 102653354cdbSmrg mandir=$ac_optarg ;; 102753354cdbSmrg 102853354cdbSmrg -nfp | --nfp | --nf) 102953354cdbSmrg # Obsolete; use --without-fp. 103053354cdbSmrg with_fp=no ;; 103153354cdbSmrg 103253354cdbSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 103353354cdbSmrg | --no-cr | --no-c | -n) 103453354cdbSmrg no_create=yes ;; 103553354cdbSmrg 103653354cdbSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 103753354cdbSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 103853354cdbSmrg no_recursion=yes ;; 103953354cdbSmrg 104053354cdbSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 104153354cdbSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 104253354cdbSmrg | --oldin | --oldi | --old | --ol | --o) 104353354cdbSmrg ac_prev=oldincludedir ;; 104453354cdbSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 104553354cdbSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 104653354cdbSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 104753354cdbSmrg oldincludedir=$ac_optarg ;; 104853354cdbSmrg 104953354cdbSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 105053354cdbSmrg ac_prev=prefix ;; 105153354cdbSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 105253354cdbSmrg prefix=$ac_optarg ;; 105353354cdbSmrg 105453354cdbSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 105553354cdbSmrg | --program-pre | --program-pr | --program-p) 105653354cdbSmrg ac_prev=program_prefix ;; 105753354cdbSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 105853354cdbSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 105953354cdbSmrg program_prefix=$ac_optarg ;; 106053354cdbSmrg 106153354cdbSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 106253354cdbSmrg | --program-suf | --program-su | --program-s) 106353354cdbSmrg ac_prev=program_suffix ;; 106453354cdbSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 106553354cdbSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 106653354cdbSmrg program_suffix=$ac_optarg ;; 106753354cdbSmrg 106853354cdbSmrg -program-transform-name | --program-transform-name \ 106953354cdbSmrg | --program-transform-nam | --program-transform-na \ 107053354cdbSmrg | --program-transform-n | --program-transform- \ 107153354cdbSmrg | --program-transform | --program-transfor \ 107253354cdbSmrg | --program-transfo | --program-transf \ 107353354cdbSmrg | --program-trans | --program-tran \ 107453354cdbSmrg | --progr-tra | --program-tr | --program-t) 107553354cdbSmrg ac_prev=program_transform_name ;; 107653354cdbSmrg -program-transform-name=* | --program-transform-name=* \ 107753354cdbSmrg | --program-transform-nam=* | --program-transform-na=* \ 107853354cdbSmrg | --program-transform-n=* | --program-transform-=* \ 107953354cdbSmrg | --program-transform=* | --program-transfor=* \ 108053354cdbSmrg | --program-transfo=* | --program-transf=* \ 108153354cdbSmrg | --program-trans=* | --program-tran=* \ 108253354cdbSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 108353354cdbSmrg program_transform_name=$ac_optarg ;; 108453354cdbSmrg 108553354cdbSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 108653354cdbSmrg ac_prev=pdfdir ;; 108753354cdbSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 108853354cdbSmrg pdfdir=$ac_optarg ;; 108953354cdbSmrg 109053354cdbSmrg -psdir | --psdir | --psdi | --psd | --ps) 109153354cdbSmrg ac_prev=psdir ;; 109253354cdbSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 109353354cdbSmrg psdir=$ac_optarg ;; 109453354cdbSmrg 109553354cdbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 109653354cdbSmrg | -silent | --silent | --silen | --sile | --sil) 109753354cdbSmrg silent=yes ;; 109853354cdbSmrg 1099afb14e9bSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 1100afb14e9bSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 1101afb14e9bSmrg | --run | --ru | --r) 1102afb14e9bSmrg ac_prev=runstatedir ;; 1103afb14e9bSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1104afb14e9bSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1105afb14e9bSmrg | --run=* | --ru=* | --r=*) 1106afb14e9bSmrg runstatedir=$ac_optarg ;; 1107afb14e9bSmrg 110853354cdbSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 110953354cdbSmrg ac_prev=sbindir ;; 111053354cdbSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 111153354cdbSmrg | --sbi=* | --sb=*) 111253354cdbSmrg sbindir=$ac_optarg ;; 111353354cdbSmrg 111453354cdbSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 111553354cdbSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 111653354cdbSmrg | --sharedst | --shareds | --shared | --share | --shar \ 111753354cdbSmrg | --sha | --sh) 111853354cdbSmrg ac_prev=sharedstatedir ;; 111953354cdbSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 112053354cdbSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 112153354cdbSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 112253354cdbSmrg | --sha=* | --sh=*) 112353354cdbSmrg sharedstatedir=$ac_optarg ;; 112453354cdbSmrg 112553354cdbSmrg -site | --site | --sit) 112653354cdbSmrg ac_prev=site ;; 112753354cdbSmrg -site=* | --site=* | --sit=*) 112853354cdbSmrg site=$ac_optarg ;; 112953354cdbSmrg 113053354cdbSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 113153354cdbSmrg ac_prev=srcdir ;; 113253354cdbSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 113353354cdbSmrg srcdir=$ac_optarg ;; 113453354cdbSmrg 113553354cdbSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 113653354cdbSmrg | --syscon | --sysco | --sysc | --sys | --sy) 113753354cdbSmrg ac_prev=sysconfdir ;; 113853354cdbSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 113953354cdbSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 114053354cdbSmrg sysconfdir=$ac_optarg ;; 114153354cdbSmrg 114253354cdbSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 114353354cdbSmrg ac_prev=target_alias ;; 114453354cdbSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 114553354cdbSmrg target_alias=$ac_optarg ;; 114653354cdbSmrg 114753354cdbSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 114853354cdbSmrg verbose=yes ;; 114953354cdbSmrg 115053354cdbSmrg -version | --version | --versio | --versi | --vers | -V) 115153354cdbSmrg ac_init_version=: ;; 115253354cdbSmrg 115353354cdbSmrg -with-* | --with-*) 115486bbecbeSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 115553354cdbSmrg # Reject names that are not valid shell variable names. 115686bbecbeSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157afb14e9bSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 115886bbecbeSmrg ac_useropt_orig=$ac_useropt 1159afb14e9bSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 116086bbecbeSmrg case $ac_user_opts in 116186bbecbeSmrg *" 116286bbecbeSmrg"with_$ac_useropt" 116386bbecbeSmrg"*) ;; 116486bbecbeSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 116586bbecbeSmrg ac_unrecognized_sep=', ';; 116686bbecbeSmrg esac 116786bbecbeSmrg eval with_$ac_useropt=\$ac_optarg ;; 116853354cdbSmrg 116953354cdbSmrg -without-* | --without-*) 117086bbecbeSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 117153354cdbSmrg # Reject names that are not valid shell variable names. 117286bbecbeSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173afb14e9bSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 117486bbecbeSmrg ac_useropt_orig=$ac_useropt 1175afb14e9bSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 117686bbecbeSmrg case $ac_user_opts in 117786bbecbeSmrg *" 117886bbecbeSmrg"with_$ac_useropt" 117986bbecbeSmrg"*) ;; 118086bbecbeSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 118186bbecbeSmrg ac_unrecognized_sep=', ';; 118286bbecbeSmrg esac 118386bbecbeSmrg eval with_$ac_useropt=no ;; 118453354cdbSmrg 118553354cdbSmrg --x) 118653354cdbSmrg # Obsolete; use --with-x. 118753354cdbSmrg with_x=yes ;; 118853354cdbSmrg 118953354cdbSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 119053354cdbSmrg | --x-incl | --x-inc | --x-in | --x-i) 119153354cdbSmrg ac_prev=x_includes ;; 119253354cdbSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 119353354cdbSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 119453354cdbSmrg x_includes=$ac_optarg ;; 119553354cdbSmrg 119653354cdbSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 119753354cdbSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 119853354cdbSmrg ac_prev=x_libraries ;; 119953354cdbSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 120053354cdbSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 120153354cdbSmrg x_libraries=$ac_optarg ;; 120253354cdbSmrg 120386bbecbeSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 120486bbecbeSmrgTry \`$0 --help' for more information" 120553354cdbSmrg ;; 120653354cdbSmrg 120753354cdbSmrg *=*) 120853354cdbSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 120953354cdbSmrg # Reject names that are not valid shell variable names. 121086bbecbeSmrg case $ac_envvar in #( 121186bbecbeSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 121286bbecbeSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 121386bbecbeSmrg esac 121453354cdbSmrg eval $ac_envvar=\$ac_optarg 121553354cdbSmrg export $ac_envvar ;; 121653354cdbSmrg 121753354cdbSmrg *) 121853354cdbSmrg # FIXME: should be removed in autoconf 3.0. 1219afb14e9bSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 122053354cdbSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221afb14e9bSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 122286bbecbeSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 122353354cdbSmrg ;; 122453354cdbSmrg 122553354cdbSmrg esac 122653354cdbSmrgdone 122753354cdbSmrg 122853354cdbSmrgif test -n "$ac_prev"; then 122953354cdbSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 123086bbecbeSmrg as_fn_error $? "missing argument to $ac_option" 123186bbecbeSmrgfi 123286bbecbeSmrg 123386bbecbeSmrgif test -n "$ac_unrecognized_opts"; then 123486bbecbeSmrg case $enable_option_checking in 123586bbecbeSmrg no) ;; 123686bbecbeSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237afb14e9bSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 123886bbecbeSmrg esac 123953354cdbSmrgfi 124053354cdbSmrg 124186bbecbeSmrg# Check all directory arguments for consistency. 124253354cdbSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 124353354cdbSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 124453354cdbSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245afb14e9bSmrg libdir localedir mandir runstatedir 124653354cdbSmrgdo 124753354cdbSmrg eval ac_val=\$$ac_var 124886bbecbeSmrg # Remove trailing slashes. 124986bbecbeSmrg case $ac_val in 125086bbecbeSmrg */ ) 125186bbecbeSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 125286bbecbeSmrg eval $ac_var=\$ac_val;; 125386bbecbeSmrg esac 125486bbecbeSmrg # Be sure to have absolute directory names. 125553354cdbSmrg case $ac_val in 125653354cdbSmrg [\\/$]* | ?:[\\/]* ) continue;; 125753354cdbSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 125853354cdbSmrg esac 125986bbecbeSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 126053354cdbSmrgdone 126153354cdbSmrg 126253354cdbSmrg# There might be people who depend on the old broken behavior: `$host' 126353354cdbSmrg# used to hold the argument of --host etc. 126453354cdbSmrg# FIXME: To remove some day. 126553354cdbSmrgbuild=$build_alias 126653354cdbSmrghost=$host_alias 126753354cdbSmrgtarget=$target_alias 126853354cdbSmrg 126953354cdbSmrg# FIXME: To remove some day. 127053354cdbSmrgif test "x$host_alias" != x; then 127153354cdbSmrg if test "x$build_alias" = x; then 127253354cdbSmrg cross_compiling=maybe 127353354cdbSmrg elif test "x$build_alias" != "x$host_alias"; then 127453354cdbSmrg cross_compiling=yes 127553354cdbSmrg fi 127653354cdbSmrgfi 127753354cdbSmrg 127853354cdbSmrgac_tool_prefix= 127953354cdbSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 128053354cdbSmrg 128153354cdbSmrgtest "$silent" = yes && exec 6>/dev/null 128253354cdbSmrg 128353354cdbSmrg 128453354cdbSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 128553354cdbSmrgac_ls_di=`ls -di .` && 128653354cdbSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 128786bbecbeSmrg as_fn_error $? "working directory cannot be determined" 128853354cdbSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 128986bbecbeSmrg as_fn_error $? "pwd does not report name of working directory" 129053354cdbSmrg 129153354cdbSmrg 129253354cdbSmrg# Find the source files, if location was not specified. 129353354cdbSmrgif test -z "$srcdir"; then 129453354cdbSmrg ac_srcdir_defaulted=yes 129553354cdbSmrg # Try the directory containing this script, then the parent directory. 129686bbecbeSmrg ac_confdir=`$as_dirname -- "$as_myself" || 129786bbecbeSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 129886bbecbeSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 129986bbecbeSmrg X"$as_myself" : 'X\(//\)$' \| \ 130086bbecbeSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301afb14e9bSmrgprintf "%s\n" X"$as_myself" | 130253354cdbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 130353354cdbSmrg s//\1/ 130453354cdbSmrg q 130553354cdbSmrg } 130653354cdbSmrg /^X\(\/\/\)[^/].*/{ 130753354cdbSmrg s//\1/ 130853354cdbSmrg q 130953354cdbSmrg } 131053354cdbSmrg /^X\(\/\/\)$/{ 131153354cdbSmrg s//\1/ 131253354cdbSmrg q 131353354cdbSmrg } 131453354cdbSmrg /^X\(\/\).*/{ 131553354cdbSmrg s//\1/ 131653354cdbSmrg q 131753354cdbSmrg } 131853354cdbSmrg s/.*/./; q'` 131953354cdbSmrg srcdir=$ac_confdir 132053354cdbSmrg if test ! -r "$srcdir/$ac_unique_file"; then 132153354cdbSmrg srcdir=.. 132253354cdbSmrg fi 132353354cdbSmrgelse 132453354cdbSmrg ac_srcdir_defaulted=no 132553354cdbSmrgfi 132653354cdbSmrgif test ! -r "$srcdir/$ac_unique_file"; then 132753354cdbSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 132886bbecbeSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 132953354cdbSmrgfi 133053354cdbSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 133153354cdbSmrgac_abs_confdir=`( 133286bbecbeSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 133353354cdbSmrg pwd)` 133453354cdbSmrg# When building in place, set srcdir=. 133553354cdbSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 133653354cdbSmrg srcdir=. 133753354cdbSmrgfi 133853354cdbSmrg# Remove unnecessary trailing slashes from srcdir. 133953354cdbSmrg# Double slashes in file names in object file debugging info 134053354cdbSmrg# mess up M-x gdb in Emacs. 134153354cdbSmrgcase $srcdir in 134253354cdbSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 134353354cdbSmrgesac 134453354cdbSmrgfor ac_var in $ac_precious_vars; do 134553354cdbSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 134653354cdbSmrg eval ac_env_${ac_var}_value=\$${ac_var} 134753354cdbSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 134853354cdbSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 134953354cdbSmrgdone 135053354cdbSmrg 135153354cdbSmrg# 135253354cdbSmrg# Report the --help message. 135353354cdbSmrg# 135453354cdbSmrgif test "$ac_init_help" = "long"; then 135553354cdbSmrg # Omit some internal or obsolete options to make the list less imposing. 135653354cdbSmrg # This message is too long to be a string in the A/UX 3.1 sh. 135753354cdbSmrg cat <<_ACEOF 1358afb14e9bSmrg\`configure' configures rgb 1.1.0 to adapt to many kinds of systems. 135953354cdbSmrg 136053354cdbSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 136153354cdbSmrg 136253354cdbSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 136353354cdbSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 136453354cdbSmrg 136553354cdbSmrgDefaults for the options are specified in brackets. 136653354cdbSmrg 136753354cdbSmrgConfiguration: 136853354cdbSmrg -h, --help display this help and exit 136953354cdbSmrg --help=short display options specific to this package 137053354cdbSmrg --help=recursive display the short help of all the included packages 137153354cdbSmrg -V, --version display version information and exit 137286bbecbeSmrg -q, --quiet, --silent do not print \`checking ...' messages 137353354cdbSmrg --cache-file=FILE cache test results in FILE [disabled] 137453354cdbSmrg -C, --config-cache alias for \`--cache-file=config.cache' 137553354cdbSmrg -n, --no-create do not create output files 137653354cdbSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 137753354cdbSmrg 137853354cdbSmrgInstallation directories: 137953354cdbSmrg --prefix=PREFIX install architecture-independent files in PREFIX 138086bbecbeSmrg [$ac_default_prefix] 138153354cdbSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 138286bbecbeSmrg [PREFIX] 138353354cdbSmrg 138453354cdbSmrgBy default, \`make install' will install all the files in 138553354cdbSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 138653354cdbSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 138753354cdbSmrgfor instance \`--prefix=\$HOME'. 138853354cdbSmrg 138953354cdbSmrgFor better control, use the options below. 139053354cdbSmrg 139153354cdbSmrgFine tuning of the installation directories: 139286bbecbeSmrg --bindir=DIR user executables [EPREFIX/bin] 139386bbecbeSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 139486bbecbeSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 139586bbecbeSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 139686bbecbeSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 139786bbecbeSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398afb14e9bSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 139986bbecbeSmrg --libdir=DIR object code libraries [EPREFIX/lib] 140086bbecbeSmrg --includedir=DIR C header files [PREFIX/include] 140186bbecbeSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 140286bbecbeSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 140386bbecbeSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 140486bbecbeSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 140586bbecbeSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 140686bbecbeSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 140786bbecbeSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/rgb] 140886bbecbeSmrg --htmldir=DIR html documentation [DOCDIR] 140986bbecbeSmrg --dvidir=DIR dvi documentation [DOCDIR] 141086bbecbeSmrg --pdfdir=DIR pdf documentation [DOCDIR] 141186bbecbeSmrg --psdir=DIR ps documentation [DOCDIR] 141253354cdbSmrg_ACEOF 141353354cdbSmrg 141453354cdbSmrg cat <<\_ACEOF 141553354cdbSmrg 141653354cdbSmrgProgram names: 141753354cdbSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 141853354cdbSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 141953354cdbSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 142053354cdbSmrg 142153354cdbSmrgSystem types: 142253354cdbSmrg --build=BUILD configure for building on BUILD [guessed] 142353354cdbSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 142453354cdbSmrg_ACEOF 142553354cdbSmrgfi 142653354cdbSmrg 142753354cdbSmrgif test -n "$ac_init_help"; then 142853354cdbSmrg case $ac_init_help in 1429afb14e9bSmrg short | recursive ) echo "Configuration of rgb 1.1.0:";; 143053354cdbSmrg esac 143153354cdbSmrg cat <<\_ACEOF 143253354cdbSmrg 143353354cdbSmrgOptional Features: 143486bbecbeSmrg --disable-option-checking ignore unrecognized --enable/--with options 143553354cdbSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 143653354cdbSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437ecb85c42Smrg --enable-dependency-tracking 1438ecb85c42Smrg do not reject slow dependency extractors 1439ecb85c42Smrg --disable-dependency-tracking 1440ecb85c42Smrg speeds up one-time build 1441ecb85c42Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 1442ecb85c42Smrg --disable-silent-rules verbose build output (undo: "make V=0") 144361c899d4Smrg --disable-selective-werror 144461c899d4Smrg Turn off selective compiler errors. (default: 144561c899d4Smrg enabled) 144686bbecbeSmrg --enable-strict-compilation 144786bbecbeSmrg Enable all warnings from compiler and make them 144886bbecbeSmrg errors (default: disabled) 144953354cdbSmrg 145053354cdbSmrgOptional Packages: 145153354cdbSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 145253354cdbSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 145353354cdbSmrg --with-rgb-db-dir=<path> 145453354cdbSmrg rgb database location (default is 145553354cdbSmrg ${datadir}/X11/rgb) 145653354cdbSmrg --with-rgb-db-type=(text|dbm|ndbm) 145753354cdbSmrg rgb database type (default is text) 1458afb14e9bSmrg --with-rgb-db-library=<library-name> 1459afb14e9bSmrg rgb database library (default is to search for one) 146053354cdbSmrg 146153354cdbSmrgSome influential environment variables: 146253354cdbSmrg CC C compiler command 146353354cdbSmrg CFLAGS C compiler flags 146453354cdbSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 146553354cdbSmrg nonstandard directory <lib dir> 146653354cdbSmrg LIBS libraries to pass to the linker, e.g. -l<library> 146786bbecbeSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 146853354cdbSmrg you have headers in a nonstandard directory <include dir> 146953354cdbSmrg PKG_CONFIG path to pkg-config utility 1470afb14e9bSmrg PKG_CONFIG_PATH 1471afb14e9bSmrg directories to add to pkg-config's search path 1472afb14e9bSmrg PKG_CONFIG_LIBDIR 1473afb14e9bSmrg path overriding pkg-config's built-in search path 147453354cdbSmrg RGB_CFLAGS C compiler flags for RGB, overriding pkg-config 147553354cdbSmrg RGB_LIBS linker flags for RGB, overriding pkg-config 147653354cdbSmrg XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 147753354cdbSmrg XORG_LIBS linker flags for XORG, overriding pkg-config 147853354cdbSmrg 147953354cdbSmrgUse these variables to override the choices made by `configure' or to help 148053354cdbSmrgit to find libraries and programs with nonstandard names/locations. 148153354cdbSmrg 1482afb14e9bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>. 148353354cdbSmrg_ACEOF 148453354cdbSmrgac_status=$? 148553354cdbSmrgfi 148653354cdbSmrg 148753354cdbSmrgif test "$ac_init_help" = "recursive"; then 148853354cdbSmrg # If there are subdirs, report their specific --help. 148953354cdbSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 149086bbecbeSmrg test -d "$ac_dir" || 149186bbecbeSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 149286bbecbeSmrg continue 149353354cdbSmrg ac_builddir=. 149453354cdbSmrg 149553354cdbSmrgcase "$ac_dir" in 149653354cdbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 149753354cdbSmrg*) 1498afb14e9bSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 149953354cdbSmrg # A ".." for each directory in $ac_dir_suffix. 1500afb14e9bSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 150153354cdbSmrg case $ac_top_builddir_sub in 150253354cdbSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 150353354cdbSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 150453354cdbSmrg esac ;; 150553354cdbSmrgesac 150653354cdbSmrgac_abs_top_builddir=$ac_pwd 150753354cdbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 150853354cdbSmrg# for backward compatibility: 150953354cdbSmrgac_top_builddir=$ac_top_build_prefix 151053354cdbSmrg 151153354cdbSmrgcase $srcdir in 151253354cdbSmrg .) # We are building in place. 151353354cdbSmrg ac_srcdir=. 151453354cdbSmrg ac_top_srcdir=$ac_top_builddir_sub 151553354cdbSmrg ac_abs_top_srcdir=$ac_pwd ;; 151653354cdbSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 151753354cdbSmrg ac_srcdir=$srcdir$ac_dir_suffix; 151853354cdbSmrg ac_top_srcdir=$srcdir 151953354cdbSmrg ac_abs_top_srcdir=$srcdir ;; 152053354cdbSmrg *) # Relative name. 152153354cdbSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 152253354cdbSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 152353354cdbSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 152453354cdbSmrgesac 152553354cdbSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 152653354cdbSmrg 152753354cdbSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1528afb14e9bSmrg # Check for configure.gnu first; this name is used for a wrapper for 1529afb14e9bSmrg # Metaconfig's "Configure" on case-insensitive file systems. 153053354cdbSmrg if test -f "$ac_srcdir/configure.gnu"; then 153153354cdbSmrg echo && 153253354cdbSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 153353354cdbSmrg elif test -f "$ac_srcdir/configure"; then 153453354cdbSmrg echo && 153553354cdbSmrg $SHELL "$ac_srcdir/configure" --help=recursive 153653354cdbSmrg else 1537afb14e9bSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 153853354cdbSmrg fi || ac_status=$? 153953354cdbSmrg cd "$ac_pwd" || { ac_status=$?; break; } 154053354cdbSmrg done 154153354cdbSmrgfi 154253354cdbSmrg 154353354cdbSmrgtest -n "$ac_init_help" && exit $ac_status 154453354cdbSmrgif $ac_init_version; then 154553354cdbSmrg cat <<\_ACEOF 1546afb14e9bSmrgrgb configure 1.1.0 1547afb14e9bSmrggenerated by GNU Autoconf 2.71 154853354cdbSmrg 1549afb14e9bSmrgCopyright (C) 2021 Free Software Foundation, Inc. 155053354cdbSmrgThis configure script is free software; the Free Software Foundation 155153354cdbSmrggives unlimited permission to copy, distribute and modify it. 155253354cdbSmrg_ACEOF 155353354cdbSmrg exit 155453354cdbSmrgfi 155553354cdbSmrg 155686bbecbeSmrg## ------------------------ ## 155786bbecbeSmrg## Autoconf initialization. ## 155886bbecbeSmrg## ------------------------ ## 155953354cdbSmrg 156086bbecbeSmrg# ac_fn_c_try_compile LINENO 156186bbecbeSmrg# -------------------------- 156286bbecbeSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 156386bbecbeSmrgac_fn_c_try_compile () 156453354cdbSmrg{ 156586bbecbeSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566afb14e9bSmrg rm -f conftest.$ac_objext conftest.beam 156786bbecbeSmrg if { { ac_try="$ac_compile" 156886bbecbeSmrgcase "(($ac_try" in 156986bbecbeSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 157086bbecbeSmrg *) ac_try_echo=$ac_try;; 157186bbecbeSmrgesac 157286bbecbeSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 157486bbecbeSmrg (eval "$ac_compile") 2>conftest.err 157586bbecbeSmrg ac_status=$? 157686bbecbeSmrg if test -s conftest.err; then 157786bbecbeSmrg grep -v '^ *+' conftest.err >conftest.er1 157886bbecbeSmrg cat conftest.er1 >&5 157986bbecbeSmrg mv -f conftest.er1 conftest.err 158086bbecbeSmrg fi 1581afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 158286bbecbeSmrg test $ac_status = 0; } && { 158386bbecbeSmrg test -z "$ac_c_werror_flag" || 158486bbecbeSmrg test ! -s conftest.err 1585afb14e9bSmrg } && test -s conftest.$ac_objext 1586afb14e9bSmrgthen : 158786bbecbeSmrg ac_retval=0 1588afb14e9bSmrgelse $as_nop 1589afb14e9bSmrg printf "%s\n" "$as_me: failed program was:" >&5 159086bbecbeSmrgsed 's/^/| /' conftest.$ac_ext >&5 159153354cdbSmrg 159286bbecbeSmrg ac_retval=1 159386bbecbeSmrgfi 159486bbecbeSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 159586bbecbeSmrg as_fn_set_status $ac_retval 159653354cdbSmrg 159786bbecbeSmrg} # ac_fn_c_try_compile 159853354cdbSmrg 159986bbecbeSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 160086bbecbeSmrg# ------------------------------------------------------- 160186bbecbeSmrg# Tests whether HEADER exists and can be compiled using the include files in 160286bbecbeSmrg# INCLUDES, setting the cache variable VAR accordingly. 160386bbecbeSmrgac_fn_c_check_header_compile () 160486bbecbeSmrg{ 160586bbecbeSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607afb14e9bSmrgprintf %s "checking for $2... " >&6; } 1608afb14e9bSmrgif eval test \${$3+y} 1609afb14e9bSmrgthen : 1610afb14e9bSmrg printf %s "(cached) " >&6 1611afb14e9bSmrgelse $as_nop 161286bbecbeSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 161386bbecbeSmrg/* end confdefs.h. */ 161486bbecbeSmrg$4 161586bbecbeSmrg#include <$2> 161686bbecbeSmrg_ACEOF 1617afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 1618afb14e9bSmrgthen : 161986bbecbeSmrg eval "$3=yes" 1620afb14e9bSmrgelse $as_nop 162186bbecbeSmrg eval "$3=no" 162286bbecbeSmrgfi 1623afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 162486bbecbeSmrgfi 162586bbecbeSmrgeval ac_res=\$$3 1626afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627afb14e9bSmrgprintf "%s\n" "$ac_res" >&6; } 162886bbecbeSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 162986bbecbeSmrg 163086bbecbeSmrg} # ac_fn_c_check_header_compile 163186bbecbeSmrg 1632afb14e9bSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1633afb14e9bSmrg# ------------------------------------------------------------------ 1634ecb85c42Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1635afb14e9bSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1636afb14e9bSmrgac_fn_check_decl () 1637ecb85c42Smrg{ 1638ecb85c42Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639ecb85c42Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1640afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1641afb14e9bSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1642afb14e9bSmrgif eval test \${$3+y} 1643afb14e9bSmrgthen : 1644afb14e9bSmrg printf %s "(cached) " >&6 1645afb14e9bSmrgelse $as_nop 1646ecb85c42Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1647afb14e9bSmrg eval ac_save_FLAGS=\$$6 1648afb14e9bSmrg as_fn_append $6 " $5" 1649ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650ecb85c42Smrg/* end confdefs.h. */ 1651ecb85c42Smrg$4 1652ecb85c42Smrgint 1653afb14e9bSmrgmain (void) 1654ecb85c42Smrg{ 1655ecb85c42Smrg#ifndef $as_decl_name 1656ecb85c42Smrg#ifdef __cplusplus 1657ecb85c42Smrg (void) $as_decl_use; 1658ecb85c42Smrg#else 1659ecb85c42Smrg (void) $as_decl_name; 1660ecb85c42Smrg#endif 1661ecb85c42Smrg#endif 1662ecb85c42Smrg 1663ecb85c42Smrg ; 1664ecb85c42Smrg return 0; 1665ecb85c42Smrg} 1666ecb85c42Smrg_ACEOF 1667afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 1668afb14e9bSmrgthen : 1669ecb85c42Smrg eval "$3=yes" 1670afb14e9bSmrgelse $as_nop 1671ecb85c42Smrg eval "$3=no" 1672ecb85c42Smrgfi 1673afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1674afb14e9bSmrg eval $6=\$ac_save_FLAGS 1675afb14e9bSmrg 1676ecb85c42Smrgfi 1677ecb85c42Smrgeval ac_res=\$$3 1678afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679afb14e9bSmrgprintf "%s\n" "$ac_res" >&6; } 1680ecb85c42Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681ecb85c42Smrg 1682afb14e9bSmrg} # ac_fn_check_decl 1683ecb85c42Smrg 168486bbecbeSmrg# ac_fn_c_try_link LINENO 168586bbecbeSmrg# ----------------------- 168686bbecbeSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 168786bbecbeSmrgac_fn_c_try_link () 168886bbecbeSmrg{ 168986bbecbeSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690afb14e9bSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 169186bbecbeSmrg if { { ac_try="$ac_link" 169286bbecbeSmrgcase "(($ac_try" in 169386bbecbeSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 169486bbecbeSmrg *) ac_try_echo=$ac_try;; 169586bbecbeSmrgesac 169686bbecbeSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 169886bbecbeSmrg (eval "$ac_link") 2>conftest.err 169986bbecbeSmrg ac_status=$? 170086bbecbeSmrg if test -s conftest.err; then 170186bbecbeSmrg grep -v '^ *+' conftest.err >conftest.er1 170286bbecbeSmrg cat conftest.er1 >&5 170386bbecbeSmrg mv -f conftest.er1 conftest.err 170486bbecbeSmrg fi 1705afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 170686bbecbeSmrg test $ac_status = 0; } && { 170786bbecbeSmrg test -z "$ac_c_werror_flag" || 170886bbecbeSmrg test ! -s conftest.err 170986bbecbeSmrg } && test -s conftest$ac_exeext && { 171086bbecbeSmrg test "$cross_compiling" = yes || 1711afb14e9bSmrg test -x conftest$ac_exeext 1712afb14e9bSmrg } 1713afb14e9bSmrgthen : 171486bbecbeSmrg ac_retval=0 1715afb14e9bSmrgelse $as_nop 1716afb14e9bSmrg printf "%s\n" "$as_me: failed program was:" >&5 171786bbecbeSmrgsed 's/^/| /' conftest.$ac_ext >&5 171886bbecbeSmrg 171986bbecbeSmrg ac_retval=1 172086bbecbeSmrgfi 172186bbecbeSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 172286bbecbeSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 172386bbecbeSmrg # interfere with the next link command; also delete a directory that is 172486bbecbeSmrg # left behind by Apple's compiler. We do this before executing the actions. 172586bbecbeSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 172686bbecbeSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 172786bbecbeSmrg as_fn_set_status $ac_retval 172886bbecbeSmrg 172986bbecbeSmrg} # ac_fn_c_try_link 173086bbecbeSmrg 1731ecb85c42Smrg# ac_fn_c_check_func LINENO FUNC VAR 1732ecb85c42Smrg# ---------------------------------- 1733ecb85c42Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1734ecb85c42Smrgac_fn_c_check_func () 173586bbecbeSmrg{ 173686bbecbeSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738afb14e9bSmrgprintf %s "checking for $2... " >&6; } 1739afb14e9bSmrgif eval test \${$3+y} 1740afb14e9bSmrgthen : 1741afb14e9bSmrg printf %s "(cached) " >&6 1742afb14e9bSmrgelse $as_nop 1743ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 174486bbecbeSmrg/* end confdefs.h. */ 1745ecb85c42Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746ecb85c42Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747ecb85c42Smrg#define $2 innocuous_$2 1748ecb85c42Smrg 1749ecb85c42Smrg/* System header to define __stub macros and hopefully few prototypes, 1750afb14e9bSmrg which can conflict with char $2 (); below. */ 1751ecb85c42Smrg 1752afb14e9bSmrg#include <limits.h> 1753ecb85c42Smrg#undef $2 1754ecb85c42Smrg 1755ecb85c42Smrg/* Override any GCC internal prototype to avoid an error. 1756ecb85c42Smrg Use char because int might match the return type of a GCC 1757ecb85c42Smrg builtin and then its argument prototype would still apply. */ 1758ecb85c42Smrg#ifdef __cplusplus 1759ecb85c42Smrgextern "C" 1760ecb85c42Smrg#endif 1761ecb85c42Smrgchar $2 (); 1762ecb85c42Smrg/* The GNU C library defines this for functions which it implements 1763ecb85c42Smrg to always fail with ENOSYS. Some functions are actually named 1764ecb85c42Smrg something starting with __ and the normal name is an alias. */ 1765ecb85c42Smrg#if defined __stub_$2 || defined __stub___$2 1766ecb85c42Smrgchoke me 1767ecb85c42Smrg#endif 1768ecb85c42Smrg 1769ecb85c42Smrgint 1770afb14e9bSmrgmain (void) 1771ecb85c42Smrg{ 1772ecb85c42Smrgreturn $2 (); 1773ecb85c42Smrg ; 1774ecb85c42Smrg return 0; 1775ecb85c42Smrg} 177686bbecbeSmrg_ACEOF 1777afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 1778afb14e9bSmrgthen : 1779ecb85c42Smrg eval "$3=yes" 1780afb14e9bSmrgelse $as_nop 1781ecb85c42Smrg eval "$3=no" 178286bbecbeSmrgfi 1783afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1784ecb85c42Smrg conftest$ac_exeext conftest.$ac_ext 178586bbecbeSmrgfi 178686bbecbeSmrgeval ac_res=\$$3 1787afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788afb14e9bSmrgprintf "%s\n" "$ac_res" >&6; } 178986bbecbeSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 179086bbecbeSmrg 1791ecb85c42Smrg} # ac_fn_c_check_func 1792afb14e9bSmrgac_configure_args_raw= 1793afb14e9bSmrgfor ac_arg 1794afb14e9bSmrgdo 1795afb14e9bSmrg case $ac_arg in 1796afb14e9bSmrg *\'*) 1797afb14e9bSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1798afb14e9bSmrg esac 1799afb14e9bSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1800afb14e9bSmrgdone 1801afb14e9bSmrg 1802afb14e9bSmrgcase $ac_configure_args_raw in 1803afb14e9bSmrg *$as_nl*) 1804afb14e9bSmrg ac_safe_unquote= ;; 1805afb14e9bSmrg *) 1806afb14e9bSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1807afb14e9bSmrg ac_unsafe_a="$ac_unsafe_z#~" 1808afb14e9bSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1809afb14e9bSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1810afb14e9bSmrgesac 1811afb14e9bSmrg 181286bbecbeSmrgcat >config.log <<_ACEOF 181386bbecbeSmrgThis file contains any messages produced by compilers while 181486bbecbeSmrgrunning configure, to aid debugging if configure makes a mistake. 181586bbecbeSmrg 1816afb14e9bSmrgIt was created by rgb $as_me 1.1.0, which was 1817afb14e9bSmrggenerated by GNU Autoconf 2.71. Invocation command line was 181886bbecbeSmrg 1819afb14e9bSmrg $ $0$ac_configure_args_raw 182086bbecbeSmrg 182186bbecbeSmrg_ACEOF 182286bbecbeSmrgexec 5>>config.log 182386bbecbeSmrg{ 182486bbecbeSmrgcat <<_ASUNAME 182586bbecbeSmrg## --------- ## 182686bbecbeSmrg## Platform. ## 182786bbecbeSmrg## --------- ## 182886bbecbeSmrg 182986bbecbeSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 183086bbecbeSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 183186bbecbeSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 183286bbecbeSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 183386bbecbeSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 183486bbecbeSmrg 183586bbecbeSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 183686bbecbeSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 183786bbecbeSmrg 183886bbecbeSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 183986bbecbeSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 184086bbecbeSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 184186bbecbeSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 184286bbecbeSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 184386bbecbeSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 184486bbecbeSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 184586bbecbeSmrg 184686bbecbeSmrg_ASUNAME 184786bbecbeSmrg 184886bbecbeSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184986bbecbeSmrgfor as_dir in $PATH 185086bbecbeSmrgdo 185186bbecbeSmrg IFS=$as_save_IFS 1852afb14e9bSmrg case $as_dir in #((( 1853afb14e9bSmrg '') as_dir=./ ;; 1854afb14e9bSmrg */) ;; 1855afb14e9bSmrg *) as_dir=$as_dir/ ;; 1856afb14e9bSmrg esac 1857afb14e9bSmrg printf "%s\n" "PATH: $as_dir" 185886bbecbeSmrg done 185986bbecbeSmrgIFS=$as_save_IFS 186086bbecbeSmrg 186186bbecbeSmrg} >&5 186286bbecbeSmrg 186386bbecbeSmrgcat >&5 <<_ACEOF 186486bbecbeSmrg 186586bbecbeSmrg 186686bbecbeSmrg## ----------- ## 186786bbecbeSmrg## Core tests. ## 186886bbecbeSmrg## ----------- ## 186953354cdbSmrg 187053354cdbSmrg_ACEOF 187153354cdbSmrg 187253354cdbSmrg 187353354cdbSmrg# Keep a trace of the command line. 187453354cdbSmrg# Strip out --no-create and --no-recursion so they do not pile up. 187553354cdbSmrg# Strip out --silent because we don't want to record it for future runs. 187653354cdbSmrg# Also quote any args containing shell meta-characters. 187753354cdbSmrg# Make two passes to allow for proper duplicate-argument suppression. 187853354cdbSmrgac_configure_args= 187953354cdbSmrgac_configure_args0= 188053354cdbSmrgac_configure_args1= 188153354cdbSmrgac_must_keep_next=false 188253354cdbSmrgfor ac_pass in 1 2 188353354cdbSmrgdo 188453354cdbSmrg for ac_arg 188553354cdbSmrg do 188653354cdbSmrg case $ac_arg in 188753354cdbSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 188853354cdbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 188953354cdbSmrg | -silent | --silent | --silen | --sile | --sil) 189053354cdbSmrg continue ;; 189153354cdbSmrg *\'*) 1892afb14e9bSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 189353354cdbSmrg esac 189453354cdbSmrg case $ac_pass in 189586bbecbeSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 189653354cdbSmrg 2) 189786bbecbeSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 189853354cdbSmrg if test $ac_must_keep_next = true; then 189953354cdbSmrg ac_must_keep_next=false # Got value, back to normal. 190053354cdbSmrg else 190153354cdbSmrg case $ac_arg in 190253354cdbSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 190353354cdbSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 190453354cdbSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 190553354cdbSmrg | -with-* | --with-* | -without-* | --without-* | --x) 190653354cdbSmrg case "$ac_configure_args0 " in 190753354cdbSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 190853354cdbSmrg esac 190953354cdbSmrg ;; 191053354cdbSmrg -* ) ac_must_keep_next=true ;; 191153354cdbSmrg esac 191253354cdbSmrg fi 191386bbecbeSmrg as_fn_append ac_configure_args " '$ac_arg'" 191453354cdbSmrg ;; 191553354cdbSmrg esac 191653354cdbSmrg done 191753354cdbSmrgdone 191886bbecbeSmrg{ ac_configure_args0=; unset ac_configure_args0;} 191986bbecbeSmrg{ ac_configure_args1=; unset ac_configure_args1;} 192053354cdbSmrg 192153354cdbSmrg# When interrupted or exit'd, cleanup temporary files, and complete 192253354cdbSmrg# config.log. We remove comments because anyway the quotes in there 192353354cdbSmrg# would cause problems or look ugly. 192453354cdbSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 192553354cdbSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 192653354cdbSmrgtrap 'exit_status=$? 1927afb14e9bSmrg # Sanitize IFS. 1928afb14e9bSmrg IFS=" "" $as_nl" 192953354cdbSmrg # Save into config.log some information that might help in debugging. 193053354cdbSmrg { 193153354cdbSmrg echo 193253354cdbSmrg 1933afb14e9bSmrg printf "%s\n" "## ---------------- ## 193453354cdbSmrg## Cache variables. ## 193586bbecbeSmrg## ---------------- ##" 193653354cdbSmrg echo 193753354cdbSmrg # The following way of writing the cache mishandles newlines in values, 193853354cdbSmrg( 193953354cdbSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 194053354cdbSmrg eval ac_val=\$$ac_var 194153354cdbSmrg case $ac_val in #( 194253354cdbSmrg *${as_nl}*) 194353354cdbSmrg case $ac_var in #( 1944afb14e9bSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1945afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 194653354cdbSmrg esac 194753354cdbSmrg case $ac_var in #( 194853354cdbSmrg _ | IFS | as_nl) ;; #( 194986bbecbeSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 195086bbecbeSmrg *) { eval $ac_var=; unset $ac_var;} ;; 195153354cdbSmrg esac ;; 195253354cdbSmrg esac 195353354cdbSmrg done 195453354cdbSmrg (set) 2>&1 | 195553354cdbSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 195653354cdbSmrg *${as_nl}ac_space=\ *) 195753354cdbSmrg sed -n \ 195853354cdbSmrg "s/'\''/'\''\\\\'\'''\''/g; 195953354cdbSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 196053354cdbSmrg ;; #( 196153354cdbSmrg *) 196253354cdbSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 196353354cdbSmrg ;; 196453354cdbSmrg esac | 196553354cdbSmrg sort 196653354cdbSmrg) 196753354cdbSmrg echo 196853354cdbSmrg 1969afb14e9bSmrg printf "%s\n" "## ----------------- ## 197053354cdbSmrg## Output variables. ## 197186bbecbeSmrg## ----------------- ##" 197253354cdbSmrg echo 197353354cdbSmrg for ac_var in $ac_subst_vars 197453354cdbSmrg do 197553354cdbSmrg eval ac_val=\$$ac_var 197653354cdbSmrg case $ac_val in 1977afb14e9bSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 197853354cdbSmrg esac 1979afb14e9bSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 198053354cdbSmrg done | sort 198153354cdbSmrg echo 198253354cdbSmrg 198353354cdbSmrg if test -n "$ac_subst_files"; then 1984afb14e9bSmrg printf "%s\n" "## ------------------- ## 198553354cdbSmrg## File substitutions. ## 198686bbecbeSmrg## ------------------- ##" 198753354cdbSmrg echo 198853354cdbSmrg for ac_var in $ac_subst_files 198953354cdbSmrg do 199053354cdbSmrg eval ac_val=\$$ac_var 199153354cdbSmrg case $ac_val in 1992afb14e9bSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 199353354cdbSmrg esac 1994afb14e9bSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 199553354cdbSmrg done | sort 199653354cdbSmrg echo 199753354cdbSmrg fi 199853354cdbSmrg 199953354cdbSmrg if test -s confdefs.h; then 2000afb14e9bSmrg printf "%s\n" "## ----------- ## 200153354cdbSmrg## confdefs.h. ## 200286bbecbeSmrg## ----------- ##" 200353354cdbSmrg echo 200453354cdbSmrg cat confdefs.h 200553354cdbSmrg echo 200653354cdbSmrg fi 200753354cdbSmrg test "$ac_signal" != 0 && 2008afb14e9bSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 2009afb14e9bSmrg printf "%s\n" "$as_me: exit $exit_status" 201053354cdbSmrg } >&5 201153354cdbSmrg rm -f core *.core core.conftest.* && 201253354cdbSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 201353354cdbSmrg exit $exit_status 201453354cdbSmrg' 0 201553354cdbSmrgfor ac_signal in 1 2 13 15; do 201686bbecbeSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 201753354cdbSmrgdone 201853354cdbSmrgac_signal=0 201953354cdbSmrg 202053354cdbSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 202153354cdbSmrgrm -f -r conftest* confdefs.h 202253354cdbSmrg 2023afb14e9bSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 202486bbecbeSmrg 202553354cdbSmrg# Predefined preprocessor variables. 202653354cdbSmrg 2027afb14e9bSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 202853354cdbSmrg 2029afb14e9bSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 203053354cdbSmrg 2031afb14e9bSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 203253354cdbSmrg 2033afb14e9bSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 203453354cdbSmrg 2035afb14e9bSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 203653354cdbSmrg 2037afb14e9bSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 203886bbecbeSmrg 203953354cdbSmrg 204053354cdbSmrg# Let the site file select an alternate cache file if it wants to. 204186bbecbeSmrg# Prefer an explicitly selected file to automatically selected ones. 204253354cdbSmrgif test -n "$CONFIG_SITE"; then 2043afb14e9bSmrg ac_site_files="$CONFIG_SITE" 204453354cdbSmrgelif test "x$prefix" != xNONE; then 2045afb14e9bSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 204653354cdbSmrgelse 2047afb14e9bSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 204853354cdbSmrgfi 2049afb14e9bSmrg 2050afb14e9bSmrgfor ac_site_file in $ac_site_files 205153354cdbSmrgdo 2052afb14e9bSmrg case $ac_site_file in #( 2053afb14e9bSmrg */*) : 2054afb14e9bSmrg ;; #( 2055afb14e9bSmrg *) : 2056afb14e9bSmrg ac_site_file=./$ac_site_file ;; 2057afb14e9bSmrgesac 2058afb14e9bSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2059afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2060afb14e9bSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 206153354cdbSmrg sed 's/^/| /' "$ac_site_file" >&5 206286bbecbeSmrg . "$ac_site_file" \ 2063afb14e9bSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2064afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 206586bbecbeSmrgas_fn_error $? "failed to load site script $ac_site_file 206686bbecbeSmrgSee \`config.log' for more details" "$LINENO" 5; } 206753354cdbSmrg fi 206853354cdbSmrgdone 206953354cdbSmrg 207053354cdbSmrgif test -r "$cache_file"; then 207186bbecbeSmrg # Some versions of bash will fail to source /dev/null (special files 207286bbecbeSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 207386bbecbeSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2074afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2075afb14e9bSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 207653354cdbSmrg case $cache_file in 207753354cdbSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 207853354cdbSmrg *) . "./$cache_file";; 207953354cdbSmrg esac 208053354cdbSmrg fi 208153354cdbSmrgelse 2082afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2083afb14e9bSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 208453354cdbSmrg >$cache_file 208553354cdbSmrgfi 208653354cdbSmrg 2087afb14e9bSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2088afb14e9bSmrg# Test code for whether the C compiler supports C89 (global declarations) 2089afb14e9bSmrgac_c_conftest_c89_globals=' 2090afb14e9bSmrg/* Does the compiler advertise C89 conformance? 2091afb14e9bSmrg Do not test the value of __STDC__, because some compilers set it to 0 2092afb14e9bSmrg while being otherwise adequately conformant. */ 2093afb14e9bSmrg#if !defined __STDC__ 2094afb14e9bSmrg# error "Compiler does not advertise C89 conformance" 2095afb14e9bSmrg#endif 2096afb14e9bSmrg 2097afb14e9bSmrg#include <stddef.h> 2098afb14e9bSmrg#include <stdarg.h> 2099afb14e9bSmrgstruct stat; 2100afb14e9bSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2101afb14e9bSmrgstruct buf { int x; }; 2102afb14e9bSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2103afb14e9bSmrgstatic char *e (p, i) 2104afb14e9bSmrg char **p; 2105afb14e9bSmrg int i; 2106afb14e9bSmrg{ 2107afb14e9bSmrg return p[i]; 2108afb14e9bSmrg} 2109afb14e9bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2110afb14e9bSmrg{ 2111afb14e9bSmrg char *s; 2112afb14e9bSmrg va_list v; 2113afb14e9bSmrg va_start (v,p); 2114afb14e9bSmrg s = g (p, va_arg (v,int)); 2115afb14e9bSmrg va_end (v); 2116afb14e9bSmrg return s; 2117afb14e9bSmrg} 2118afb14e9bSmrg 2119afb14e9bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2120afb14e9bSmrg function prototypes and stuff, but not \xHH hex character constants. 2121afb14e9bSmrg These do not provoke an error unfortunately, instead are silently treated 2122afb14e9bSmrg as an "x". The following induces an error, until -std is added to get 2123afb14e9bSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2124afb14e9bSmrg array size at least. It is necessary to write \x00 == 0 to get something 2125afb14e9bSmrg that is true only with -std. */ 2126afb14e9bSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2127afb14e9bSmrg 2128afb14e9bSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2129afb14e9bSmrg inside strings and character constants. */ 2130afb14e9bSmrg#define FOO(x) '\''x'\'' 2131afb14e9bSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2132afb14e9bSmrg 2133afb14e9bSmrgint test (int i, double x); 2134afb14e9bSmrgstruct s1 {int (*f) (int a);}; 2135afb14e9bSmrgstruct s2 {int (*f) (double a);}; 2136afb14e9bSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2137afb14e9bSmrg int, int);' 2138afb14e9bSmrg 2139afb14e9bSmrg# Test code for whether the C compiler supports C89 (body of main). 2140afb14e9bSmrgac_c_conftest_c89_main=' 2141afb14e9bSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2142afb14e9bSmrg' 2143afb14e9bSmrg 2144afb14e9bSmrg# Test code for whether the C compiler supports C99 (global declarations) 2145afb14e9bSmrgac_c_conftest_c99_globals=' 2146afb14e9bSmrg// Does the compiler advertise C99 conformance? 2147afb14e9bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2148afb14e9bSmrg# error "Compiler does not advertise C99 conformance" 2149afb14e9bSmrg#endif 2150afb14e9bSmrg 2151afb14e9bSmrg#include <stdbool.h> 2152afb14e9bSmrgextern int puts (const char *); 2153afb14e9bSmrgextern int printf (const char *, ...); 2154afb14e9bSmrgextern int dprintf (int, const char *, ...); 2155afb14e9bSmrgextern void *malloc (size_t); 2156afb14e9bSmrg 2157afb14e9bSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2158afb14e9bSmrg// dprintf is used instead of fprintf to avoid needing to declare 2159afb14e9bSmrg// FILE and stderr. 2160afb14e9bSmrg#define debug(...) dprintf (2, __VA_ARGS__) 2161afb14e9bSmrg#define showlist(...) puts (#__VA_ARGS__) 2162afb14e9bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2163afb14e9bSmrgstatic void 2164afb14e9bSmrgtest_varargs_macros (void) 2165afb14e9bSmrg{ 2166afb14e9bSmrg int x = 1234; 2167afb14e9bSmrg int y = 5678; 2168afb14e9bSmrg debug ("Flag"); 2169afb14e9bSmrg debug ("X = %d\n", x); 2170afb14e9bSmrg showlist (The first, second, and third items.); 2171afb14e9bSmrg report (x>y, "x is %d but y is %d", x, y); 2172afb14e9bSmrg} 2173afb14e9bSmrg 2174afb14e9bSmrg// Check long long types. 2175afb14e9bSmrg#define BIG64 18446744073709551615ull 2176afb14e9bSmrg#define BIG32 4294967295ul 2177afb14e9bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2178afb14e9bSmrg#if !BIG_OK 2179afb14e9bSmrg #error "your preprocessor is broken" 2180afb14e9bSmrg#endif 2181afb14e9bSmrg#if BIG_OK 2182afb14e9bSmrg#else 2183afb14e9bSmrg #error "your preprocessor is broken" 2184afb14e9bSmrg#endif 2185afb14e9bSmrgstatic long long int bignum = -9223372036854775807LL; 2186afb14e9bSmrgstatic unsigned long long int ubignum = BIG64; 2187afb14e9bSmrg 2188afb14e9bSmrgstruct incomplete_array 2189afb14e9bSmrg{ 2190afb14e9bSmrg int datasize; 2191afb14e9bSmrg double data[]; 2192afb14e9bSmrg}; 2193afb14e9bSmrg 2194afb14e9bSmrgstruct named_init { 2195afb14e9bSmrg int number; 2196afb14e9bSmrg const wchar_t *name; 2197afb14e9bSmrg double average; 2198afb14e9bSmrg}; 2199afb14e9bSmrg 2200afb14e9bSmrgtypedef const char *ccp; 2201afb14e9bSmrg 2202afb14e9bSmrgstatic inline int 2203afb14e9bSmrgtest_restrict (ccp restrict text) 2204afb14e9bSmrg{ 2205afb14e9bSmrg // See if C++-style comments work. 2206afb14e9bSmrg // Iterate through items via the restricted pointer. 2207afb14e9bSmrg // Also check for declarations in for loops. 2208afb14e9bSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2209afb14e9bSmrg continue; 2210afb14e9bSmrg return 0; 2211afb14e9bSmrg} 2212afb14e9bSmrg 2213afb14e9bSmrg// Check varargs and va_copy. 2214afb14e9bSmrgstatic bool 2215afb14e9bSmrgtest_varargs (const char *format, ...) 2216afb14e9bSmrg{ 2217afb14e9bSmrg va_list args; 2218afb14e9bSmrg va_start (args, format); 2219afb14e9bSmrg va_list args_copy; 2220afb14e9bSmrg va_copy (args_copy, args); 2221afb14e9bSmrg 2222afb14e9bSmrg const char *str = ""; 2223afb14e9bSmrg int number = 0; 2224afb14e9bSmrg float fnumber = 0; 2225afb14e9bSmrg 2226afb14e9bSmrg while (*format) 2227afb14e9bSmrg { 2228afb14e9bSmrg switch (*format++) 2229afb14e9bSmrg { 2230afb14e9bSmrg case '\''s'\'': // string 2231afb14e9bSmrg str = va_arg (args_copy, const char *); 2232afb14e9bSmrg break; 2233afb14e9bSmrg case '\''d'\'': // int 2234afb14e9bSmrg number = va_arg (args_copy, int); 2235afb14e9bSmrg break; 2236afb14e9bSmrg case '\''f'\'': // float 2237afb14e9bSmrg fnumber = va_arg (args_copy, double); 2238afb14e9bSmrg break; 2239afb14e9bSmrg default: 2240afb14e9bSmrg break; 2241afb14e9bSmrg } 2242afb14e9bSmrg } 2243afb14e9bSmrg va_end (args_copy); 2244afb14e9bSmrg va_end (args); 2245afb14e9bSmrg 2246afb14e9bSmrg return *str && number && fnumber; 2247afb14e9bSmrg} 2248afb14e9bSmrg' 2249afb14e9bSmrg 2250afb14e9bSmrg# Test code for whether the C compiler supports C99 (body of main). 2251afb14e9bSmrgac_c_conftest_c99_main=' 2252afb14e9bSmrg // Check bool. 2253afb14e9bSmrg _Bool success = false; 2254afb14e9bSmrg success |= (argc != 0); 2255afb14e9bSmrg 2256afb14e9bSmrg // Check restrict. 2257afb14e9bSmrg if (test_restrict ("String literal") == 0) 2258afb14e9bSmrg success = true; 2259afb14e9bSmrg char *restrict newvar = "Another string"; 2260afb14e9bSmrg 2261afb14e9bSmrg // Check varargs. 2262afb14e9bSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2263afb14e9bSmrg test_varargs_macros (); 2264afb14e9bSmrg 2265afb14e9bSmrg // Check flexible array members. 2266afb14e9bSmrg struct incomplete_array *ia = 2267afb14e9bSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2268afb14e9bSmrg ia->datasize = 10; 2269afb14e9bSmrg for (int i = 0; i < ia->datasize; ++i) 2270afb14e9bSmrg ia->data[i] = i * 1.234; 2271afb14e9bSmrg 2272afb14e9bSmrg // Check named initializers. 2273afb14e9bSmrg struct named_init ni = { 2274afb14e9bSmrg .number = 34, 2275afb14e9bSmrg .name = L"Test wide string", 2276afb14e9bSmrg .average = 543.34343, 2277afb14e9bSmrg }; 2278afb14e9bSmrg 2279afb14e9bSmrg ni.number = 58; 2280afb14e9bSmrg 2281afb14e9bSmrg int dynamic_array[ni.number]; 2282afb14e9bSmrg dynamic_array[0] = argv[0][0]; 2283afb14e9bSmrg dynamic_array[ni.number - 1] = 543; 2284afb14e9bSmrg 2285afb14e9bSmrg // work around unused variable warnings 2286afb14e9bSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2287afb14e9bSmrg || dynamic_array[ni.number - 1] != 543); 2288afb14e9bSmrg' 2289afb14e9bSmrg 2290afb14e9bSmrg# Test code for whether the C compiler supports C11 (global declarations) 2291afb14e9bSmrgac_c_conftest_c11_globals=' 2292afb14e9bSmrg// Does the compiler advertise C11 conformance? 2293afb14e9bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2294afb14e9bSmrg# error "Compiler does not advertise C11 conformance" 2295afb14e9bSmrg#endif 2296afb14e9bSmrg 2297afb14e9bSmrg// Check _Alignas. 2298afb14e9bSmrgchar _Alignas (double) aligned_as_double; 2299afb14e9bSmrgchar _Alignas (0) no_special_alignment; 2300afb14e9bSmrgextern char aligned_as_int; 2301afb14e9bSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2302afb14e9bSmrg 2303afb14e9bSmrg// Check _Alignof. 2304afb14e9bSmrgenum 2305afb14e9bSmrg{ 2306afb14e9bSmrg int_alignment = _Alignof (int), 2307afb14e9bSmrg int_array_alignment = _Alignof (int[100]), 2308afb14e9bSmrg char_alignment = _Alignof (char) 2309afb14e9bSmrg}; 2310afb14e9bSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2311afb14e9bSmrg 2312afb14e9bSmrg// Check _Noreturn. 2313afb14e9bSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 2314afb14e9bSmrg 2315afb14e9bSmrg// Check _Static_assert. 2316afb14e9bSmrgstruct test_static_assert 2317afb14e9bSmrg{ 2318afb14e9bSmrg int x; 2319afb14e9bSmrg _Static_assert (sizeof (int) <= sizeof (long int), 2320afb14e9bSmrg "_Static_assert does not work in struct"); 2321afb14e9bSmrg long int y; 2322afb14e9bSmrg}; 2323afb14e9bSmrg 2324afb14e9bSmrg// Check UTF-8 literals. 2325afb14e9bSmrg#define u8 syntax error! 2326afb14e9bSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2327afb14e9bSmrg 2328afb14e9bSmrg// Check duplicate typedefs. 2329afb14e9bSmrgtypedef long *long_ptr; 2330afb14e9bSmrgtypedef long int *long_ptr; 2331afb14e9bSmrgtypedef long_ptr long_ptr; 2332afb14e9bSmrg 2333afb14e9bSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2334afb14e9bSmrgstruct anonymous 2335afb14e9bSmrg{ 2336afb14e9bSmrg union { 2337afb14e9bSmrg struct { int i; int j; }; 2338afb14e9bSmrg struct { int k; long int l; } w; 2339afb14e9bSmrg }; 2340afb14e9bSmrg int m; 2341afb14e9bSmrg} v1; 2342afb14e9bSmrg' 2343afb14e9bSmrg 2344afb14e9bSmrg# Test code for whether the C compiler supports C11 (body of main). 2345afb14e9bSmrgac_c_conftest_c11_main=' 2346afb14e9bSmrg _Static_assert ((offsetof (struct anonymous, i) 2347afb14e9bSmrg == offsetof (struct anonymous, w.k)), 2348afb14e9bSmrg "Anonymous union alignment botch"); 2349afb14e9bSmrg v1.i = 2; 2350afb14e9bSmrg v1.w.k = 5; 2351afb14e9bSmrg ok |= v1.i != 5; 2352afb14e9bSmrg' 2353afb14e9bSmrg 2354afb14e9bSmrg# Test code for whether the C compiler supports C11 (complete). 2355afb14e9bSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2356afb14e9bSmrg${ac_c_conftest_c99_globals} 2357afb14e9bSmrg${ac_c_conftest_c11_globals} 2358afb14e9bSmrg 2359afb14e9bSmrgint 2360afb14e9bSmrgmain (int argc, char **argv) 2361afb14e9bSmrg{ 2362afb14e9bSmrg int ok = 0; 2363afb14e9bSmrg ${ac_c_conftest_c89_main} 2364afb14e9bSmrg ${ac_c_conftest_c99_main} 2365afb14e9bSmrg ${ac_c_conftest_c11_main} 2366afb14e9bSmrg return ok; 2367afb14e9bSmrg} 2368afb14e9bSmrg" 2369afb14e9bSmrg 2370afb14e9bSmrg# Test code for whether the C compiler supports C99 (complete). 2371afb14e9bSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2372afb14e9bSmrg${ac_c_conftest_c99_globals} 2373afb14e9bSmrg 2374afb14e9bSmrgint 2375afb14e9bSmrgmain (int argc, char **argv) 2376afb14e9bSmrg{ 2377afb14e9bSmrg int ok = 0; 2378afb14e9bSmrg ${ac_c_conftest_c89_main} 2379afb14e9bSmrg ${ac_c_conftest_c99_main} 2380afb14e9bSmrg return ok; 2381afb14e9bSmrg} 2382afb14e9bSmrg" 2383afb14e9bSmrg 2384afb14e9bSmrg# Test code for whether the C compiler supports C89 (complete). 2385afb14e9bSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2386afb14e9bSmrg 2387afb14e9bSmrgint 2388afb14e9bSmrgmain (int argc, char **argv) 2389afb14e9bSmrg{ 2390afb14e9bSmrg int ok = 0; 2391afb14e9bSmrg ${ac_c_conftest_c89_main} 2392afb14e9bSmrg return ok; 2393afb14e9bSmrg} 2394afb14e9bSmrg" 2395afb14e9bSmrg 2396afb14e9bSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2397afb14e9bSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2398afb14e9bSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2399afb14e9bSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2400afb14e9bSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2401afb14e9bSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2402afb14e9bSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2403afb14e9bSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2404afb14e9bSmrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2405afb14e9bSmrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2406afb14e9bSmrg 2407afb14e9bSmrg# Auxiliary files required by this configure script. 2408afb14e9bSmrgac_aux_files="config.guess config.sub missing install-sh compile" 2409afb14e9bSmrg 2410afb14e9bSmrg# Locations in which to look for auxiliary files. 2411afb14e9bSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2412afb14e9bSmrg 2413afb14e9bSmrg# Search for a directory containing all of the required auxiliary files, 2414afb14e9bSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2415afb14e9bSmrg# If we don't find one directory that contains all the files we need, 2416afb14e9bSmrg# we report the set of missing files from the *first* directory in 2417afb14e9bSmrg# $ac_aux_dir_candidates and give up. 2418afb14e9bSmrgac_missing_aux_files="" 2419afb14e9bSmrgac_first_candidate=: 2420afb14e9bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2421afb14e9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422afb14e9bSmrgas_found=false 2423afb14e9bSmrgfor as_dir in $ac_aux_dir_candidates 2424afb14e9bSmrgdo 2425afb14e9bSmrg IFS=$as_save_IFS 2426afb14e9bSmrg case $as_dir in #((( 2427afb14e9bSmrg '') as_dir=./ ;; 2428afb14e9bSmrg */) ;; 2429afb14e9bSmrg *) as_dir=$as_dir/ ;; 2430afb14e9bSmrg esac 2431afb14e9bSmrg as_found=: 2432afb14e9bSmrg 2433afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2434afb14e9bSmrg ac_aux_dir_found=yes 2435afb14e9bSmrg ac_install_sh= 2436afb14e9bSmrg for ac_aux in $ac_aux_files 2437afb14e9bSmrg do 2438afb14e9bSmrg # As a special case, if "install-sh" is required, that requirement 2439afb14e9bSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2440afb14e9bSmrg # and $ac_install_sh is set appropriately for whichever one is found. 2441afb14e9bSmrg if test x"$ac_aux" = x"install-sh" 2442afb14e9bSmrg then 2443afb14e9bSmrg if test -f "${as_dir}install-sh"; then 2444afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2445afb14e9bSmrg ac_install_sh="${as_dir}install-sh -c" 2446afb14e9bSmrg elif test -f "${as_dir}install.sh"; then 2447afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2448afb14e9bSmrg ac_install_sh="${as_dir}install.sh -c" 2449afb14e9bSmrg elif test -f "${as_dir}shtool"; then 2450afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2451afb14e9bSmrg ac_install_sh="${as_dir}shtool install -c" 2452afb14e9bSmrg else 2453afb14e9bSmrg ac_aux_dir_found=no 2454afb14e9bSmrg if $ac_first_candidate; then 2455afb14e9bSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2456afb14e9bSmrg else 2457afb14e9bSmrg break 2458afb14e9bSmrg fi 2459afb14e9bSmrg fi 2460afb14e9bSmrg else 2461afb14e9bSmrg if test -f "${as_dir}${ac_aux}"; then 2462afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2463afb14e9bSmrg else 2464afb14e9bSmrg ac_aux_dir_found=no 2465afb14e9bSmrg if $ac_first_candidate; then 2466afb14e9bSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2467afb14e9bSmrg else 2468afb14e9bSmrg break 2469afb14e9bSmrg fi 2470afb14e9bSmrg fi 2471afb14e9bSmrg fi 2472afb14e9bSmrg done 2473afb14e9bSmrg if test "$ac_aux_dir_found" = yes; then 2474afb14e9bSmrg ac_aux_dir="$as_dir" 2475afb14e9bSmrg break 2476afb14e9bSmrg fi 2477afb14e9bSmrg ac_first_candidate=false 2478afb14e9bSmrg 2479afb14e9bSmrg as_found=false 2480afb14e9bSmrgdone 2481afb14e9bSmrgIFS=$as_save_IFS 2482afb14e9bSmrgif $as_found 2483afb14e9bSmrgthen : 2484afb14e9bSmrg 2485afb14e9bSmrgelse $as_nop 2486afb14e9bSmrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2487afb14e9bSmrgfi 2488afb14e9bSmrg 2489afb14e9bSmrg 2490afb14e9bSmrg# These three variables are undocumented and unsupported, 2491afb14e9bSmrg# and are intended to be withdrawn in a future Autoconf release. 2492afb14e9bSmrg# They can cause serious problems if a builder's source tree is in a directory 2493afb14e9bSmrg# whose full name contains unusual characters. 2494afb14e9bSmrgif test -f "${ac_aux_dir}config.guess"; then 2495afb14e9bSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2496afb14e9bSmrgfi 2497afb14e9bSmrgif test -f "${ac_aux_dir}config.sub"; then 2498afb14e9bSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2499afb14e9bSmrgfi 2500afb14e9bSmrgif test -f "$ac_aux_dir/configure"; then 2501afb14e9bSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 2502afb14e9bSmrgfi 2503afb14e9bSmrg 2504afb14e9bSmrg# Check that the precious variables saved in the cache have kept the same 2505afb14e9bSmrg# value. 2506afb14e9bSmrgac_cache_corrupted=false 2507afb14e9bSmrgfor ac_var in $ac_precious_vars; do 2508afb14e9bSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2509afb14e9bSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2510afb14e9bSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2511afb14e9bSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2512afb14e9bSmrg case $ac_old_set,$ac_new_set in 2513afb14e9bSmrg set,) 2514afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2515afb14e9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2516afb14e9bSmrg ac_cache_corrupted=: ;; 2517afb14e9bSmrg ,set) 2518afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2519afb14e9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2520afb14e9bSmrg ac_cache_corrupted=: ;; 2521afb14e9bSmrg ,);; 2522afb14e9bSmrg *) 2523afb14e9bSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2524afb14e9bSmrg # differences in whitespace do not lead to failure. 2525afb14e9bSmrg ac_old_val_w=`echo x $ac_old_val` 2526afb14e9bSmrg ac_new_val_w=`echo x $ac_new_val` 2527afb14e9bSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2528afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2529afb14e9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2530afb14e9bSmrg ac_cache_corrupted=: 2531afb14e9bSmrg else 2532afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2533afb14e9bSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2534afb14e9bSmrg eval $ac_var=\$ac_old_val 2535afb14e9bSmrg fi 2536afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2537afb14e9bSmrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2538afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2539afb14e9bSmrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2540afb14e9bSmrg fi;; 2541afb14e9bSmrg esac 2542afb14e9bSmrg # Pass precious variables to config.status. 2543afb14e9bSmrg if test "$ac_new_set" = set; then 2544afb14e9bSmrg case $ac_new_val in 2545afb14e9bSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2546afb14e9bSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2547afb14e9bSmrg esac 2548afb14e9bSmrg case " $ac_configure_args " in 2549afb14e9bSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2550afb14e9bSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2551afb14e9bSmrg esac 2552afb14e9bSmrg fi 2553afb14e9bSmrgdone 2554afb14e9bSmrgif $ac_cache_corrupted; then 2555afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2556afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2557afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2558afb14e9bSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2559afb14e9bSmrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2560afb14e9bSmrg and start over" "$LINENO" 5 2561afb14e9bSmrgfi 2562afb14e9bSmrg## -------------------- ## 2563afb14e9bSmrg## Main body of script. ## 2564afb14e9bSmrg## -------------------- ## 2565afb14e9bSmrg 2566afb14e9bSmrgac_ext=c 2567afb14e9bSmrgac_cpp='$CPP $CPPFLAGS' 2568afb14e9bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569afb14e9bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570afb14e9bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 257153354cdbSmrg 257253354cdbSmrg 257361c899d4Smrg 257461c899d4Smrgac_config_headers="$ac_config_headers config.h" 257561c899d4Smrg 2576afb14e9bSmrg 2577afb14e9bSmrg 2578afb14e9bSmrg 2579afb14e9bSmrg 2580afb14e9bSmrg 2581afb14e9bSmrg 2582afb14e9bSmrg 2583afb14e9bSmrg 2584afb14e9bSmrg 2585afb14e9bSmrg 2586afb14e9bSmrg 2587afb14e9bSmrg# Expand $ac_aux_dir to an absolute path. 2588afb14e9bSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 258961c899d4Smrg 2590ecb85c42Smrgac_ext=c 2591ecb85c42Smrgac_cpp='$CPP $CPPFLAGS' 2592ecb85c42Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2593ecb85c42Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2594ecb85c42Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2595ecb85c42Smrgif test -n "$ac_tool_prefix"; then 2596ecb85c42Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2597ecb85c42Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2598afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2600afb14e9bSmrgif test ${ac_cv_prog_CC+y} 2601afb14e9bSmrgthen : 2602afb14e9bSmrg printf %s "(cached) " >&6 2603afb14e9bSmrgelse $as_nop 2604ecb85c42Smrg if test -n "$CC"; then 2605ecb85c42Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2606ecb85c42Smrgelse 2607ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608ecb85c42Smrgfor as_dir in $PATH 2609ecb85c42Smrgdo 2610ecb85c42Smrg IFS=$as_save_IFS 2611afb14e9bSmrg case $as_dir in #((( 2612afb14e9bSmrg '') as_dir=./ ;; 2613afb14e9bSmrg */) ;; 2614afb14e9bSmrg *) as_dir=$as_dir/ ;; 2615afb14e9bSmrg esac 2616ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2617afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2618ecb85c42Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2619afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2620ecb85c42Smrg break 2 262153354cdbSmrg fi 262253354cdbSmrgdone 2623ecb85c42Smrg done 2624ecb85c42SmrgIFS=$as_save_IFS 262553354cdbSmrg 2626ecb85c42Smrgfi 2627ecb85c42Smrgfi 2628ecb85c42SmrgCC=$ac_cv_prog_CC 2629ecb85c42Smrgif test -n "$CC"; then 2630afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2631afb14e9bSmrgprintf "%s\n" "$CC" >&6; } 2632ecb85c42Smrgelse 2633afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2634afb14e9bSmrgprintf "%s\n" "no" >&6; } 2635ecb85c42Smrgfi 263653354cdbSmrg 263753354cdbSmrg 2638ecb85c42Smrgfi 2639ecb85c42Smrgif test -z "$ac_cv_prog_CC"; then 2640ecb85c42Smrg ac_ct_CC=$CC 2641ecb85c42Smrg # Extract the first word of "gcc", so it can be a program name with args. 2642ecb85c42Smrgset dummy gcc; ac_word=$2 2643afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2644afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2645afb14e9bSmrgif test ${ac_cv_prog_ac_ct_CC+y} 2646afb14e9bSmrgthen : 2647afb14e9bSmrg printf %s "(cached) " >&6 2648afb14e9bSmrgelse $as_nop 2649ecb85c42Smrg if test -n "$ac_ct_CC"; then 2650ecb85c42Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2651ecb85c42Smrgelse 2652ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 265353354cdbSmrgfor as_dir in $PATH 265453354cdbSmrgdo 265553354cdbSmrg IFS=$as_save_IFS 2656afb14e9bSmrg case $as_dir in #((( 2657afb14e9bSmrg '') as_dir=./ ;; 2658afb14e9bSmrg */) ;; 2659afb14e9bSmrg *) as_dir=$as_dir/ ;; 2660afb14e9bSmrg esac 2661ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2662afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2663ecb85c42Smrg ac_cv_prog_ac_ct_CC="gcc" 2664afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2665ecb85c42Smrg break 2 2666ecb85c42Smrg fi 2667ecb85c42Smrgdone 266886bbecbeSmrg done 266953354cdbSmrgIFS=$as_save_IFS 267053354cdbSmrg 267153354cdbSmrgfi 267253354cdbSmrgfi 2673ecb85c42Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2674ecb85c42Smrgif test -n "$ac_ct_CC"; then 2675afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2676afb14e9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 2677ecb85c42Smrgelse 2678afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679afb14e9bSmrgprintf "%s\n" "no" >&6; } 2680ecb85c42Smrgfi 268153354cdbSmrg 2682ecb85c42Smrg if test "x$ac_ct_CC" = x; then 2683ecb85c42Smrg CC="" 2684ecb85c42Smrg else 2685ecb85c42Smrg case $cross_compiling:$ac_tool_warned in 2686ecb85c42Smrgyes:) 2687afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2688afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2689ecb85c42Smrgac_tool_warned=yes ;; 269086bbecbeSmrgesac 2691ecb85c42Smrg CC=$ac_ct_CC 2692ecb85c42Smrg fi 2693ecb85c42Smrgelse 2694ecb85c42Smrg CC="$ac_cv_prog_CC" 2695ecb85c42Smrgfi 269686bbecbeSmrg 2697ecb85c42Smrgif test -z "$CC"; then 2698ecb85c42Smrg if test -n "$ac_tool_prefix"; then 2699ecb85c42Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2700ecb85c42Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2701afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2703afb14e9bSmrgif test ${ac_cv_prog_CC+y} 2704afb14e9bSmrgthen : 2705afb14e9bSmrg printf %s "(cached) " >&6 2706afb14e9bSmrgelse $as_nop 2707ecb85c42Smrg if test -n "$CC"; then 2708ecb85c42Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 270986bbecbeSmrgelse 271086bbecbeSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 271186bbecbeSmrgfor as_dir in $PATH 271253354cdbSmrgdo 271353354cdbSmrg IFS=$as_save_IFS 2714afb14e9bSmrg case $as_dir in #((( 2715afb14e9bSmrg '') as_dir=./ ;; 2716afb14e9bSmrg */) ;; 2717afb14e9bSmrg *) as_dir=$as_dir/ ;; 2718afb14e9bSmrg esac 271986bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2720afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2721ecb85c42Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2722afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 272386bbecbeSmrg break 2 272486bbecbeSmrg fi 272553354cdbSmrgdone 272686bbecbeSmrg done 272753354cdbSmrgIFS=$as_save_IFS 272853354cdbSmrg 272953354cdbSmrgfi 273053354cdbSmrgfi 2731ecb85c42SmrgCC=$ac_cv_prog_CC 2732ecb85c42Smrgif test -n "$CC"; then 2733afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2734afb14e9bSmrgprintf "%s\n" "$CC" >&6; } 273586bbecbeSmrgelse 2736afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737afb14e9bSmrgprintf "%s\n" "no" >&6; } 273886bbecbeSmrgfi 273953354cdbSmrg 274053354cdbSmrg 2741ecb85c42Smrg fi 274286bbecbeSmrgfi 2743ecb85c42Smrgif test -z "$CC"; then 2744ecb85c42Smrg # Extract the first word of "cc", so it can be a program name with args. 2745ecb85c42Smrgset dummy cc; ac_word=$2 2746afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2748afb14e9bSmrgif test ${ac_cv_prog_CC+y} 2749afb14e9bSmrgthen : 2750afb14e9bSmrg printf %s "(cached) " >&6 2751afb14e9bSmrgelse $as_nop 2752ecb85c42Smrg if test -n "$CC"; then 2753ecb85c42Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 275453354cdbSmrgelse 2755ecb85c42Smrg ac_prog_rejected=no 275653354cdbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 275753354cdbSmrgfor as_dir in $PATH 275853354cdbSmrgdo 275953354cdbSmrg IFS=$as_save_IFS 2760afb14e9bSmrg case $as_dir in #((( 2761afb14e9bSmrg '') as_dir=./ ;; 2762afb14e9bSmrg */) ;; 2763afb14e9bSmrg *) as_dir=$as_dir/ ;; 2764afb14e9bSmrg esac 276586bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2766afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2767afb14e9bSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2768ecb85c42Smrg ac_prog_rejected=yes 2769ecb85c42Smrg continue 2770ecb85c42Smrg fi 2771ecb85c42Smrg ac_cv_prog_CC="cc" 2772afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 277353354cdbSmrg break 2 277453354cdbSmrg fi 277553354cdbSmrgdone 277686bbecbeSmrg done 277753354cdbSmrgIFS=$as_save_IFS 277853354cdbSmrg 2779ecb85c42Smrgif test $ac_prog_rejected = yes; then 2780ecb85c42Smrg # We found a bogon in the path, so make sure we never use it. 2781ecb85c42Smrg set dummy $ac_cv_prog_CC 2782ecb85c42Smrg shift 2783ecb85c42Smrg if test $# != 0; then 2784ecb85c42Smrg # We chose a different compiler from the bogus one. 2785ecb85c42Smrg # However, it has the same basename, so the bogon will be chosen 2786ecb85c42Smrg # first if we set CC to just the basename; use the full file name. 2787ecb85c42Smrg shift 2788afb14e9bSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2789afb14e9bSmrg fi 2790afb14e9bSmrgfi 2791afb14e9bSmrgfi 2792afb14e9bSmrgfi 2793afb14e9bSmrgCC=$ac_cv_prog_CC 2794afb14e9bSmrgif test -n "$CC"; then 2795afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796afb14e9bSmrgprintf "%s\n" "$CC" >&6; } 2797afb14e9bSmrgelse 2798afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799afb14e9bSmrgprintf "%s\n" "no" >&6; } 2800afb14e9bSmrgfi 2801afb14e9bSmrg 2802afb14e9bSmrg 2803afb14e9bSmrgfi 2804afb14e9bSmrgif test -z "$CC"; then 2805afb14e9bSmrg if test -n "$ac_tool_prefix"; then 2806afb14e9bSmrg for ac_prog in cl.exe 2807afb14e9bSmrg do 2808afb14e9bSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2809afb14e9bSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2810afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2812afb14e9bSmrgif test ${ac_cv_prog_CC+y} 2813afb14e9bSmrgthen : 2814afb14e9bSmrg printf %s "(cached) " >&6 2815afb14e9bSmrgelse $as_nop 2816afb14e9bSmrg if test -n "$CC"; then 2817afb14e9bSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2818afb14e9bSmrgelse 2819afb14e9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820afb14e9bSmrgfor as_dir in $PATH 2821afb14e9bSmrgdo 2822afb14e9bSmrg IFS=$as_save_IFS 2823afb14e9bSmrg case $as_dir in #((( 2824afb14e9bSmrg '') as_dir=./ ;; 2825afb14e9bSmrg */) ;; 2826afb14e9bSmrg *) as_dir=$as_dir/ ;; 2827afb14e9bSmrg esac 2828afb14e9bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2829afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2830afb14e9bSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2831afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2832afb14e9bSmrg break 2 2833afb14e9bSmrg fi 2834afb14e9bSmrgdone 2835afb14e9bSmrg done 2836afb14e9bSmrgIFS=$as_save_IFS 2837afb14e9bSmrg 2838afb14e9bSmrgfi 2839afb14e9bSmrgfi 2840afb14e9bSmrgCC=$ac_cv_prog_CC 2841afb14e9bSmrgif test -n "$CC"; then 2842afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2843afb14e9bSmrgprintf "%s\n" "$CC" >&6; } 2844afb14e9bSmrgelse 2845afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846afb14e9bSmrgprintf "%s\n" "no" >&6; } 2847afb14e9bSmrgfi 2848afb14e9bSmrg 2849afb14e9bSmrg 2850afb14e9bSmrg test -n "$CC" && break 2851afb14e9bSmrg done 2852afb14e9bSmrgfi 2853afb14e9bSmrgif test -z "$CC"; then 2854afb14e9bSmrg ac_ct_CC=$CC 2855afb14e9bSmrg for ac_prog in cl.exe 2856afb14e9bSmrgdo 2857afb14e9bSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2858afb14e9bSmrgset dummy $ac_prog; ac_word=$2 2859afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2860afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2861afb14e9bSmrgif test ${ac_cv_prog_ac_ct_CC+y} 2862afb14e9bSmrgthen : 2863afb14e9bSmrg printf %s "(cached) " >&6 2864afb14e9bSmrgelse $as_nop 2865afb14e9bSmrg if test -n "$ac_ct_CC"; then 2866afb14e9bSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2867afb14e9bSmrgelse 2868afb14e9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869afb14e9bSmrgfor as_dir in $PATH 2870afb14e9bSmrgdo 2871afb14e9bSmrg IFS=$as_save_IFS 2872afb14e9bSmrg case $as_dir in #((( 2873afb14e9bSmrg '') as_dir=./ ;; 2874afb14e9bSmrg */) ;; 2875afb14e9bSmrg *) as_dir=$as_dir/ ;; 2876afb14e9bSmrg esac 2877afb14e9bSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2878afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2879afb14e9bSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 2880afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2881afb14e9bSmrg break 2 2882ecb85c42Smrg fi 2883afb14e9bSmrgdone 2884afb14e9bSmrg done 2885afb14e9bSmrgIFS=$as_save_IFS 2886afb14e9bSmrg 288753354cdbSmrgfi 288853354cdbSmrgfi 2889afb14e9bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2890afb14e9bSmrgif test -n "$ac_ct_CC"; then 2891afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2892afb14e9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 289386bbecbeSmrgelse 2894afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2895afb14e9bSmrgprintf "%s\n" "no" >&6; } 289686bbecbeSmrgfi 289786bbecbeSmrg 289886bbecbeSmrg 2899afb14e9bSmrg test -n "$ac_ct_CC" && break 2900afb14e9bSmrgdone 2901afb14e9bSmrg 2902afb14e9bSmrg if test "x$ac_ct_CC" = x; then 2903afb14e9bSmrg CC="" 2904afb14e9bSmrg else 2905afb14e9bSmrg case $cross_compiling:$ac_tool_warned in 2906afb14e9bSmrgyes:) 2907afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2908afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2909afb14e9bSmrgac_tool_warned=yes ;; 2910afb14e9bSmrgesac 2911afb14e9bSmrg CC=$ac_ct_CC 2912afb14e9bSmrg fi 2913afb14e9bSmrgfi 2914afb14e9bSmrg 291586bbecbeSmrgfi 2916ecb85c42Smrgif test -z "$CC"; then 2917ecb85c42Smrg if test -n "$ac_tool_prefix"; then 2918afb14e9bSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2919afb14e9bSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 2920afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2921afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2922afb14e9bSmrgif test ${ac_cv_prog_CC+y} 2923afb14e9bSmrgthen : 2924afb14e9bSmrg printf %s "(cached) " >&6 2925afb14e9bSmrgelse $as_nop 2926ecb85c42Smrg if test -n "$CC"; then 2927ecb85c42Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2928ecb85c42Smrgelse 2929ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930ecb85c42Smrgfor as_dir in $PATH 293186bbecbeSmrgdo 293286bbecbeSmrg IFS=$as_save_IFS 2933afb14e9bSmrg case $as_dir in #((( 2934afb14e9bSmrg '') as_dir=./ ;; 2935afb14e9bSmrg */) ;; 2936afb14e9bSmrg *) as_dir=$as_dir/ ;; 2937afb14e9bSmrg esac 2938ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2939afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2940afb14e9bSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 2941afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2942ecb85c42Smrg break 2 2943ecb85c42Smrg fi 2944ecb85c42Smrgdone 294586bbecbeSmrg done 294686bbecbeSmrgIFS=$as_save_IFS 294786bbecbeSmrg 294886bbecbeSmrgfi 294986bbecbeSmrgfi 2950ecb85c42SmrgCC=$ac_cv_prog_CC 2951ecb85c42Smrgif test -n "$CC"; then 2952afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2953afb14e9bSmrgprintf "%s\n" "$CC" >&6; } 2954ecb85c42Smrgelse 2955afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956afb14e9bSmrgprintf "%s\n" "no" >&6; } 2957ecb85c42Smrgfi 295886bbecbeSmrg 295986bbecbeSmrg 2960ecb85c42Smrgfi 2961afb14e9bSmrgif test -z "$ac_cv_prog_CC"; then 2962ecb85c42Smrg ac_ct_CC=$CC 2963afb14e9bSmrg # Extract the first word of "clang", so it can be a program name with args. 2964afb14e9bSmrgset dummy clang; ac_word=$2 2965afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 2967afb14e9bSmrgif test ${ac_cv_prog_ac_ct_CC+y} 2968afb14e9bSmrgthen : 2969afb14e9bSmrg printf %s "(cached) " >&6 2970afb14e9bSmrgelse $as_nop 2971ecb85c42Smrg if test -n "$ac_ct_CC"; then 2972ecb85c42Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 297386bbecbeSmrgelse 297486bbecbeSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 297586bbecbeSmrgfor as_dir in $PATH 297686bbecbeSmrgdo 297786bbecbeSmrg IFS=$as_save_IFS 2978afb14e9bSmrg case $as_dir in #((( 2979afb14e9bSmrg '') as_dir=./ ;; 2980afb14e9bSmrg */) ;; 2981afb14e9bSmrg *) as_dir=$as_dir/ ;; 2982afb14e9bSmrg esac 298386bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2984afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2985afb14e9bSmrg ac_cv_prog_ac_ct_CC="clang" 2986afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 298786bbecbeSmrg break 2 298886bbecbeSmrg fi 298986bbecbeSmrgdone 299086bbecbeSmrg done 299186bbecbeSmrgIFS=$as_save_IFS 299286bbecbeSmrg 299386bbecbeSmrgfi 299486bbecbeSmrgfi 2995ecb85c42Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2996ecb85c42Smrgif test -n "$ac_ct_CC"; then 2997afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2998afb14e9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 299986bbecbeSmrgelse 3000afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001afb14e9bSmrgprintf "%s\n" "no" >&6; } 300253354cdbSmrgfi 300353354cdbSmrg 3004ecb85c42Smrg if test "x$ac_ct_CC" = x; then 3005ecb85c42Smrg CC="" 3006ecb85c42Smrg else 3007ecb85c42Smrg case $cross_compiling:$ac_tool_warned in 3008ecb85c42Smrgyes:) 3009afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3010afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3011ecb85c42Smrgac_tool_warned=yes ;; 301253354cdbSmrgesac 3013ecb85c42Smrg CC=$ac_ct_CC 3014ecb85c42Smrg fi 3015afb14e9bSmrgelse 3016afb14e9bSmrg CC="$ac_cv_prog_CC" 301753354cdbSmrgfi 301853354cdbSmrg 301953354cdbSmrgfi 302053354cdbSmrg 302153354cdbSmrg 3022afb14e9bSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3023afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3024ecb85c42Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3025ecb85c42SmrgSee \`config.log' for more details" "$LINENO" 5; } 302653354cdbSmrg 3027ecb85c42Smrg# Provide some information about the compiler. 3028afb14e9bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3029ecb85c42Smrgset X $ac_compile 3030ecb85c42Smrgac_compiler=$2 3031afb14e9bSmrgfor ac_option in --version -v -V -qversion -version; do 3032ecb85c42Smrg { { ac_try="$ac_compiler $ac_option >&5" 3033ecb85c42Smrgcase "(($ac_try" in 3034ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035ecb85c42Smrg *) ac_try_echo=$ac_try;; 3036ecb85c42Smrgesac 3037ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3038afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3039ecb85c42Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3040ecb85c42Smrg ac_status=$? 3041ecb85c42Smrg if test -s conftest.err; then 3042ecb85c42Smrg sed '10a\ 3043ecb85c42Smrg... rest of stderr output deleted ... 3044ecb85c42Smrg 10q' conftest.err >conftest.er1 3045ecb85c42Smrg cat conftest.er1 >&5 3046ecb85c42Smrg fi 3047ecb85c42Smrg rm -f conftest.er1 conftest.err 3048afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3049ecb85c42Smrg test $ac_status = 0; } 3050ecb85c42Smrgdone 305153354cdbSmrg 3052ecb85c42Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3053ecb85c42Smrg/* end confdefs.h. */ 305453354cdbSmrg 3055ecb85c42Smrgint 3056afb14e9bSmrgmain (void) 3057ecb85c42Smrg{ 305853354cdbSmrg 3059ecb85c42Smrg ; 3060ecb85c42Smrg return 0; 3061ecb85c42Smrg} 306253354cdbSmrg_ACEOF 3063ecb85c42Smrgac_clean_files_save=$ac_clean_files 3064ecb85c42Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3065ecb85c42Smrg# Try to create an executable without -o first, disregard a.out. 3066ecb85c42Smrg# It will help us diagnose broken compilers, and finding out an intuition 3067ecb85c42Smrg# of exeext. 3068afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3069afb14e9bSmrgprintf %s "checking whether the C compiler works... " >&6; } 3070afb14e9bSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 307153354cdbSmrg 3072ecb85c42Smrg# The possible output files: 3073ecb85c42Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 307453354cdbSmrg 3075ecb85c42Smrgac_rmfiles= 3076ecb85c42Smrgfor ac_file in $ac_files 3077ecb85c42Smrgdo 3078ecb85c42Smrg case $ac_file in 3079ecb85c42Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3080ecb85c42Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3081ecb85c42Smrg esac 3082ecb85c42Smrgdone 3083ecb85c42Smrgrm -f $ac_rmfiles 308453354cdbSmrg 3085ecb85c42Smrgif { { ac_try="$ac_link_default" 3086ecb85c42Smrgcase "(($ac_try" in 3087ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088ecb85c42Smrg *) ac_try_echo=$ac_try;; 3089ecb85c42Smrgesac 3090ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3091afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3092ecb85c42Smrg (eval "$ac_link_default") 2>&5 3093ecb85c42Smrg ac_status=$? 3094afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3095afb14e9bSmrg test $ac_status = 0; } 3096afb14e9bSmrgthen : 3097ecb85c42Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3098ecb85c42Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3099ecb85c42Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3100ecb85c42Smrg# so that the user can short-circuit this test for compilers unknown to 3101ecb85c42Smrg# Autoconf. 3102ecb85c42Smrgfor ac_file in $ac_files '' 3103ecb85c42Smrgdo 3104ecb85c42Smrg test -f "$ac_file" || continue 3105ecb85c42Smrg case $ac_file in 3106ecb85c42Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3107ecb85c42Smrg ;; 3108ecb85c42Smrg [ab].out ) 3109ecb85c42Smrg # We found the default executable, but exeext='' is most 3110ecb85c42Smrg # certainly right. 3111ecb85c42Smrg break;; 3112ecb85c42Smrg *.* ) 3113afb14e9bSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3114ecb85c42Smrg then :; else 3115ecb85c42Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3116ecb85c42Smrg fi 3117ecb85c42Smrg # We set ac_cv_exeext here because the later test for it is not 3118ecb85c42Smrg # safe: cross compilers may not add the suffix if given an `-o' 3119ecb85c42Smrg # argument, so we may need to know it at that point already. 3120ecb85c42Smrg # Even if this section looks crufty: it has the advantage of 3121ecb85c42Smrg # actually working. 3122ecb85c42Smrg break;; 3123ecb85c42Smrg * ) 3124ecb85c42Smrg break;; 3125ecb85c42Smrg esac 3126ecb85c42Smrgdone 3127ecb85c42Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 312886bbecbeSmrg 3129afb14e9bSmrgelse $as_nop 3130ecb85c42Smrg ac_file='' 313153354cdbSmrgfi 3132afb14e9bSmrgif test -z "$ac_file" 3133afb14e9bSmrgthen : 3134afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135afb14e9bSmrgprintf "%s\n" "no" >&6; } 3136afb14e9bSmrgprintf "%s\n" "$as_me: failed program was:" >&5 3137ecb85c42Smrgsed 's/^/| /' conftest.$ac_ext >&5 313853354cdbSmrg 3139afb14e9bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3140afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3141ecb85c42Smrgas_fn_error 77 "C compiler cannot create executables 3142ecb85c42SmrgSee \`config.log' for more details" "$LINENO" 5; } 3143afb14e9bSmrgelse $as_nop 3144afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3145afb14e9bSmrgprintf "%s\n" "yes" >&6; } 3146afb14e9bSmrgfi 3147afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3148afb14e9bSmrgprintf %s "checking for C compiler default output file name... " >&6; } 3149afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3150afb14e9bSmrgprintf "%s\n" "$ac_file" >&6; } 3151ecb85c42Smrgac_exeext=$ac_cv_exeext 315253354cdbSmrg 3153ecb85c42Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3154ecb85c42Smrgac_clean_files=$ac_clean_files_save 3155afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3156afb14e9bSmrgprintf %s "checking for suffix of executables... " >&6; } 3157ecb85c42Smrgif { { ac_try="$ac_link" 3158ecb85c42Smrgcase "(($ac_try" in 3159ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160ecb85c42Smrg *) ac_try_echo=$ac_try;; 316186bbecbeSmrgesac 3162ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3164ecb85c42Smrg (eval "$ac_link") 2>&5 3165ecb85c42Smrg ac_status=$? 3166afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167afb14e9bSmrg test $ac_status = 0; } 3168afb14e9bSmrgthen : 3169ecb85c42Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3170ecb85c42Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3171ecb85c42Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3172ecb85c42Smrg# `rm'. 3173ecb85c42Smrgfor ac_file in conftest.exe conftest conftest.*; do 3174ecb85c42Smrg test -f "$ac_file" || continue 3175ecb85c42Smrg case $ac_file in 3176ecb85c42Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3177ecb85c42Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178ecb85c42Smrg break;; 3179ecb85c42Smrg * ) break;; 3180ecb85c42Smrg esac 3181ecb85c42Smrgdone 3182afb14e9bSmrgelse $as_nop 3183afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3184afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3185ecb85c42Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3186ecb85c42SmrgSee \`config.log' for more details" "$LINENO" 5; } 318786bbecbeSmrgfi 3188ecb85c42Smrgrm -f conftest conftest$ac_cv_exeext 3189afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3190afb14e9bSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 319186bbecbeSmrg 3192ecb85c42Smrgrm -f conftest.$ac_ext 3193ecb85c42SmrgEXEEXT=$ac_cv_exeext 3194ecb85c42Smrgac_exeext=$EXEEXT 3195ecb85c42Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196ecb85c42Smrg/* end confdefs.h. */ 3197ecb85c42Smrg#include <stdio.h> 3198ecb85c42Smrgint 3199afb14e9bSmrgmain (void) 3200ecb85c42Smrg{ 3201ecb85c42SmrgFILE *f = fopen ("conftest.out", "w"); 3202ecb85c42Smrg return ferror (f) || fclose (f) != 0; 320386bbecbeSmrg 3204ecb85c42Smrg ; 3205ecb85c42Smrg return 0; 3206ecb85c42Smrg} 3207ecb85c42Smrg_ACEOF 3208ecb85c42Smrgac_clean_files="$ac_clean_files conftest.out" 3209ecb85c42Smrg# Check that the compiler produces executables we can run. If not, either 3210ecb85c42Smrg# the compiler is broken, or we cross compile. 3211afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3212afb14e9bSmrgprintf %s "checking whether we are cross compiling... " >&6; } 3213ecb85c42Smrgif test "$cross_compiling" != yes; then 3214ecb85c42Smrg { { ac_try="$ac_link" 3215ecb85c42Smrgcase "(($ac_try" in 3216ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217ecb85c42Smrg *) ac_try_echo=$ac_try;; 3218ecb85c42Smrgesac 3219ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3221ecb85c42Smrg (eval "$ac_link") 2>&5 3222ecb85c42Smrg ac_status=$? 3223afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224ecb85c42Smrg test $ac_status = 0; } 3225ecb85c42Smrg if { ac_try='./conftest$ac_cv_exeext' 3226ecb85c42Smrg { { case "(($ac_try" in 3227ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228ecb85c42Smrg *) ac_try_echo=$ac_try;; 3229ecb85c42Smrgesac 3230ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3232ecb85c42Smrg (eval "$ac_try") 2>&5 3233ecb85c42Smrg ac_status=$? 3234afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235ecb85c42Smrg test $ac_status = 0; }; }; then 3236ecb85c42Smrg cross_compiling=no 3237ecb85c42Smrg else 3238ecb85c42Smrg if test "$cross_compiling" = maybe; then 3239ecb85c42Smrg cross_compiling=yes 3240ecb85c42Smrg else 3241afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3243afb14e9bSmrgas_fn_error 77 "cannot run C compiled programs. 3244ecb85c42SmrgIf you meant to cross compile, use \`--host'. 3245ecb85c42SmrgSee \`config.log' for more details" "$LINENO" 5; } 3246ecb85c42Smrg fi 3247ecb85c42Smrg fi 324886bbecbeSmrgfi 3249afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3250afb14e9bSmrgprintf "%s\n" "$cross_compiling" >&6; } 325186bbecbeSmrg 3252ecb85c42Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3253ecb85c42Smrgac_clean_files=$ac_clean_files_save 3254afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3255afb14e9bSmrgprintf %s "checking for suffix of object files... " >&6; } 3256afb14e9bSmrgif test ${ac_cv_objext+y} 3257afb14e9bSmrgthen : 3258afb14e9bSmrg printf %s "(cached) " >&6 3259afb14e9bSmrgelse $as_nop 3260ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3261ecb85c42Smrg/* end confdefs.h. */ 326253354cdbSmrg 3263ecb85c42Smrgint 3264afb14e9bSmrgmain (void) 3265ecb85c42Smrg{ 326653354cdbSmrg 3267ecb85c42Smrg ; 3268ecb85c42Smrg return 0; 3269ecb85c42Smrg} 3270ecb85c42Smrg_ACEOF 3271ecb85c42Smrgrm -f conftest.o conftest.obj 3272ecb85c42Smrgif { { ac_try="$ac_compile" 3273ecb85c42Smrgcase "(($ac_try" in 3274ecb85c42Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275ecb85c42Smrg *) ac_try_echo=$ac_try;; 3276ecb85c42Smrgesac 3277ecb85c42Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3278afb14e9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5 3279ecb85c42Smrg (eval "$ac_compile") 2>&5 3280ecb85c42Smrg ac_status=$? 3281afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3282afb14e9bSmrg test $ac_status = 0; } 3283afb14e9bSmrgthen : 3284ecb85c42Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3285ecb85c42Smrg test -f "$ac_file" || continue; 3286ecb85c42Smrg case $ac_file in 3287ecb85c42Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3288ecb85c42Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3289ecb85c42Smrg break;; 3290ecb85c42Smrg esac 3291ecb85c42Smrgdone 3292afb14e9bSmrgelse $as_nop 3293afb14e9bSmrg printf "%s\n" "$as_me: failed program was:" >&5 3294ecb85c42Smrgsed 's/^/| /' conftest.$ac_ext >&5 329553354cdbSmrg 3296afb14e9bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3298ecb85c42Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3299ecb85c42SmrgSee \`config.log' for more details" "$LINENO" 5; } 330053354cdbSmrgfi 3301ecb85c42Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3302ecb85c42Smrgfi 3303afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3304afb14e9bSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 3305ecb85c42SmrgOBJEXT=$ac_cv_objext 3306ecb85c42Smrgac_objext=$OBJEXT 3307afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3308afb14e9bSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 3309afb14e9bSmrgif test ${ac_cv_c_compiler_gnu+y} 3310afb14e9bSmrgthen : 3311afb14e9bSmrg printf %s "(cached) " >&6 3312afb14e9bSmrgelse $as_nop 3313ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314ecb85c42Smrg/* end confdefs.h. */ 331553354cdbSmrg 3316ecb85c42Smrgint 3317afb14e9bSmrgmain (void) 3318ecb85c42Smrg{ 3319ecb85c42Smrg#ifndef __GNUC__ 3320ecb85c42Smrg choke me 3321ecb85c42Smrg#endif 3322ecb85c42Smrg 3323ecb85c42Smrg ; 3324ecb85c42Smrg return 0; 3325ecb85c42Smrg} 3326ecb85c42Smrg_ACEOF 3327afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3328afb14e9bSmrgthen : 3329ecb85c42Smrg ac_compiler_gnu=yes 3330afb14e9bSmrgelse $as_nop 3331ecb85c42Smrg ac_compiler_gnu=no 333253354cdbSmrgfi 3333afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3334ecb85c42Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 333553354cdbSmrg 3336ecb85c42Smrgfi 3337afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3338afb14e9bSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3339afb14e9bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3340afb14e9bSmrg 3341ecb85c42Smrgif test $ac_compiler_gnu = yes; then 3342ecb85c42Smrg GCC=yes 334353354cdbSmrgelse 3344ecb85c42Smrg GCC= 334553354cdbSmrgfi 3346afb14e9bSmrgac_test_CFLAGS=${CFLAGS+y} 3347ecb85c42Smrgac_save_CFLAGS=$CFLAGS 3348afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3349afb14e9bSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 3350afb14e9bSmrgif test ${ac_cv_prog_cc_g+y} 3351afb14e9bSmrgthen : 3352afb14e9bSmrg printf %s "(cached) " >&6 3353afb14e9bSmrgelse $as_nop 3354ecb85c42Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3355ecb85c42Smrg ac_c_werror_flag=yes 3356ecb85c42Smrg ac_cv_prog_cc_g=no 3357ecb85c42Smrg CFLAGS="-g" 3358ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359ecb85c42Smrg/* end confdefs.h. */ 336053354cdbSmrg 3361ecb85c42Smrgint 3362afb14e9bSmrgmain (void) 3363ecb85c42Smrg{ 3364ecb85c42Smrg 3365ecb85c42Smrg ; 3366ecb85c42Smrg return 0; 3367ecb85c42Smrg} 3368ecb85c42Smrg_ACEOF 3369afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3370afb14e9bSmrgthen : 3371ecb85c42Smrg ac_cv_prog_cc_g=yes 3372afb14e9bSmrgelse $as_nop 3373ecb85c42Smrg CFLAGS="" 3374ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375ecb85c42Smrg/* end confdefs.h. */ 337653354cdbSmrg 3377ecb85c42Smrgint 3378afb14e9bSmrgmain (void) 3379ecb85c42Smrg{ 3380ecb85c42Smrg 3381ecb85c42Smrg ; 3382ecb85c42Smrg return 0; 3383ecb85c42Smrg} 3384ecb85c42Smrg_ACEOF 3385afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3386afb14e9bSmrgthen : 338753354cdbSmrg 3388afb14e9bSmrgelse $as_nop 3389ecb85c42Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3390ecb85c42Smrg CFLAGS="-g" 3391ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392ecb85c42Smrg/* end confdefs.h. */ 339353354cdbSmrg 3394ecb85c42Smrgint 3395afb14e9bSmrgmain (void) 3396ecb85c42Smrg{ 3397ecb85c42Smrg 3398ecb85c42Smrg ; 3399ecb85c42Smrg return 0; 3400ecb85c42Smrg} 3401ecb85c42Smrg_ACEOF 3402afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3403afb14e9bSmrgthen : 3404ecb85c42Smrg ac_cv_prog_cc_g=yes 340553354cdbSmrgfi 3406afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 340753354cdbSmrgfi 3408afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 340953354cdbSmrgfi 3410afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3411ecb85c42Smrg ac_c_werror_flag=$ac_save_c_werror_flag 341253354cdbSmrgfi 3413afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3414afb14e9bSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3415afb14e9bSmrgif test $ac_test_CFLAGS; then 3416ecb85c42Smrg CFLAGS=$ac_save_CFLAGS 3417ecb85c42Smrgelif test $ac_cv_prog_cc_g = yes; then 3418ecb85c42Smrg if test "$GCC" = yes; then 3419ecb85c42Smrg CFLAGS="-g -O2" 3420ecb85c42Smrg else 3421ecb85c42Smrg CFLAGS="-g" 3422ecb85c42Smrg fi 3423ecb85c42Smrgelse 3424ecb85c42Smrg if test "$GCC" = yes; then 3425ecb85c42Smrg CFLAGS="-O2" 3426ecb85c42Smrg else 3427ecb85c42Smrg CFLAGS= 3428ecb85c42Smrg fi 342953354cdbSmrgfi 3430afb14e9bSmrgac_prog_cc_stdc=no 3431afb14e9bSmrgif test x$ac_prog_cc_stdc = xno 3432afb14e9bSmrgthen : 3433afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3434afb14e9bSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 3435afb14e9bSmrgif test ${ac_cv_prog_cc_c11+y} 3436afb14e9bSmrgthen : 3437afb14e9bSmrg printf %s "(cached) " >&6 3438afb14e9bSmrgelse $as_nop 3439afb14e9bSmrg ac_cv_prog_cc_c11=no 3440ecb85c42Smrgac_save_CC=$CC 3441ecb85c42Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442ecb85c42Smrg/* end confdefs.h. */ 3443afb14e9bSmrg$ac_c_conftest_c11_program 3444afb14e9bSmrg_ACEOF 3445afb14e9bSmrgfor ac_arg in '' -std=gnu11 3446afb14e9bSmrgdo 3447afb14e9bSmrg CC="$ac_save_CC $ac_arg" 3448afb14e9bSmrg if ac_fn_c_try_compile "$LINENO" 3449afb14e9bSmrgthen : 3450afb14e9bSmrg ac_cv_prog_cc_c11=$ac_arg 3451afb14e9bSmrgfi 3452afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 3453afb14e9bSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 3454afb14e9bSmrgdone 3455afb14e9bSmrgrm -f conftest.$ac_ext 3456afb14e9bSmrgCC=$ac_save_CC 3457afb14e9bSmrgfi 3458ecb85c42Smrg 3459afb14e9bSmrgif test "x$ac_cv_prog_cc_c11" = xno 3460afb14e9bSmrgthen : 3461afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3462afb14e9bSmrgprintf "%s\n" "unsupported" >&6; } 3463afb14e9bSmrgelse $as_nop 3464afb14e9bSmrg if test "x$ac_cv_prog_cc_c11" = x 3465afb14e9bSmrgthen : 3466afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3467afb14e9bSmrgprintf "%s\n" "none needed" >&6; } 3468afb14e9bSmrgelse $as_nop 3469afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3470afb14e9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3471afb14e9bSmrg CC="$CC $ac_cv_prog_cc_c11" 3472afb14e9bSmrgfi 3473afb14e9bSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3474afb14e9bSmrg ac_prog_cc_stdc=c11 3475afb14e9bSmrgfi 3476afb14e9bSmrgfi 3477afb14e9bSmrgif test x$ac_prog_cc_stdc = xno 3478afb14e9bSmrgthen : 3479afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3480afb14e9bSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 3481afb14e9bSmrgif test ${ac_cv_prog_cc_c99+y} 3482afb14e9bSmrgthen : 3483afb14e9bSmrg printf %s "(cached) " >&6 3484afb14e9bSmrgelse $as_nop 3485afb14e9bSmrg ac_cv_prog_cc_c99=no 3486afb14e9bSmrgac_save_CC=$CC 3487afb14e9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488afb14e9bSmrg/* end confdefs.h. */ 3489afb14e9bSmrg$ac_c_conftest_c99_program 3490afb14e9bSmrg_ACEOF 3491afb14e9bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3492afb14e9bSmrgdo 3493afb14e9bSmrg CC="$ac_save_CC $ac_arg" 3494afb14e9bSmrg if ac_fn_c_try_compile "$LINENO" 3495afb14e9bSmrgthen : 3496afb14e9bSmrg ac_cv_prog_cc_c99=$ac_arg 3497afb14e9bSmrgfi 3498afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 3499afb14e9bSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3500afb14e9bSmrgdone 3501afb14e9bSmrgrm -f conftest.$ac_ext 3502afb14e9bSmrgCC=$ac_save_CC 3503afb14e9bSmrgfi 3504ecb85c42Smrg 3505afb14e9bSmrgif test "x$ac_cv_prog_cc_c99" = xno 3506afb14e9bSmrgthen : 3507afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3508afb14e9bSmrgprintf "%s\n" "unsupported" >&6; } 3509afb14e9bSmrgelse $as_nop 3510afb14e9bSmrg if test "x$ac_cv_prog_cc_c99" = x 3511afb14e9bSmrgthen : 3512afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3513afb14e9bSmrgprintf "%s\n" "none needed" >&6; } 3514afb14e9bSmrgelse $as_nop 3515afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3516afb14e9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3517afb14e9bSmrg CC="$CC $ac_cv_prog_cc_c99" 3518afb14e9bSmrgfi 3519afb14e9bSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3520afb14e9bSmrg ac_prog_cc_stdc=c99 3521afb14e9bSmrgfi 3522afb14e9bSmrgfi 3523afb14e9bSmrgif test x$ac_prog_cc_stdc = xno 3524afb14e9bSmrgthen : 3525afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3526afb14e9bSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 3527afb14e9bSmrgif test ${ac_cv_prog_cc_c89+y} 3528afb14e9bSmrgthen : 3529afb14e9bSmrg printf %s "(cached) " >&6 3530afb14e9bSmrgelse $as_nop 3531afb14e9bSmrg ac_cv_prog_cc_c89=no 3532afb14e9bSmrgac_save_CC=$CC 3533afb14e9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534afb14e9bSmrg/* end confdefs.h. */ 3535afb14e9bSmrg$ac_c_conftest_c89_program 3536ecb85c42Smrg_ACEOF 3537afb14e9bSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 353853354cdbSmrgdo 3539ecb85c42Smrg CC="$ac_save_CC $ac_arg" 3540afb14e9bSmrg if ac_fn_c_try_compile "$LINENO" 3541afb14e9bSmrgthen : 3542ecb85c42Smrg ac_cv_prog_cc_c89=$ac_arg 3543ecb85c42Smrgfi 3544afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 3545ecb85c42Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 354653354cdbSmrgdone 3547ecb85c42Smrgrm -f conftest.$ac_ext 3548ecb85c42SmrgCC=$ac_save_CC 354953354cdbSmrgfi 3550ecb85c42Smrg 3551afb14e9bSmrgif test "x$ac_cv_prog_cc_c89" = xno 3552afb14e9bSmrgthen : 3553afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3554afb14e9bSmrgprintf "%s\n" "unsupported" >&6; } 3555afb14e9bSmrgelse $as_nop 3556afb14e9bSmrg if test "x$ac_cv_prog_cc_c89" = x 3557afb14e9bSmrgthen : 3558afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3559afb14e9bSmrgprintf "%s\n" "none needed" >&6; } 3560afb14e9bSmrgelse $as_nop 3561afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3562afb14e9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3563afb14e9bSmrg CC="$CC $ac_cv_prog_cc_c89" 3564afb14e9bSmrgfi 3565afb14e9bSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3566afb14e9bSmrg ac_prog_cc_stdc=c89 3567afb14e9bSmrgfi 356853354cdbSmrgfi 356953354cdbSmrg 3570ecb85c42Smrgac_ext=c 3571ecb85c42Smrgac_cpp='$CPP $CPPFLAGS' 3572ecb85c42Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ecb85c42Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ecb85c42Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 357553354cdbSmrg 3576afb14e9bSmrg 3577afb14e9bSmrg ac_ext=c 3578ecb85c42Smrgac_cpp='$CPP $CPPFLAGS' 3579ecb85c42Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ecb85c42Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ecb85c42Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3582afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3583afb14e9bSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 3584afb14e9bSmrgif test ${am_cv_prog_cc_c_o+y} 3585afb14e9bSmrgthen : 3586afb14e9bSmrg printf %s "(cached) " >&6 3587afb14e9bSmrgelse $as_nop 3588ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 358953354cdbSmrg/* end confdefs.h. */ 359053354cdbSmrg 359153354cdbSmrgint 3592afb14e9bSmrgmain (void) 359353354cdbSmrg{ 359453354cdbSmrg 359553354cdbSmrg ; 359653354cdbSmrg return 0; 359753354cdbSmrg} 359853354cdbSmrg_ACEOF 3599ecb85c42Smrg # Make sure it works both with $CC and with simple cc. 3600ecb85c42Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 3601ecb85c42Smrg # compilers refuse to overwrite an existing .o file with -o, 3602ecb85c42Smrg # though they will create one. 3603ecb85c42Smrg am_cv_prog_cc_c_o=yes 3604ecb85c42Smrg for am_i in 1 2; do 3605ecb85c42Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3606ecb85c42Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3607ecb85c42Smrg ac_status=$? 3608ecb85c42Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609ecb85c42Smrg (exit $ac_status); } \ 3610ecb85c42Smrg && test -f conftest2.$ac_objext; then 3611ecb85c42Smrg : OK 3612ecb85c42Smrg else 3613ecb85c42Smrg am_cv_prog_cc_c_o=no 3614ecb85c42Smrg break 3615ecb85c42Smrg fi 3616ecb85c42Smrg done 3617ecb85c42Smrg rm -f core conftest* 3618ecb85c42Smrg unset am_i 3619ecb85c42Smrgfi 3620afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3621afb14e9bSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3622ecb85c42Smrgif test "$am_cv_prog_cc_c_o" != yes; then 3623ecb85c42Smrg # Losing compiler, so override with the script. 3624ecb85c42Smrg # FIXME: It is wrong to rewrite CC. 3625ecb85c42Smrg # But if we don't then we get into trouble of one sort or another. 3626ecb85c42Smrg # A longer-term fix would be to have automake use am__CC in this case, 3627ecb85c42Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3628ecb85c42Smrg CC="$am_aux_dir/compile $CC" 3629ecb85c42Smrgfi 3630ecb85c42Smrgac_ext=c 3631ecb85c42Smrgac_cpp='$CPP $CPPFLAGS' 3632ecb85c42Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ecb85c42Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ecb85c42Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 363586bbecbeSmrg 363686bbecbeSmrg 363753354cdbSmrg 3638afb14e9bSmrgac_header= ac_cache= 3639afb14e9bSmrgfor ac_item in $ac_header_c_list 3640ecb85c42Smrgdo 3641afb14e9bSmrg if test $ac_cache; then 3642afb14e9bSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3643afb14e9bSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3644afb14e9bSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 3645ecb85c42Smrg fi 3646afb14e9bSmrg ac_header= ac_cache= 3647afb14e9bSmrg elif test $ac_header; then 3648afb14e9bSmrg ac_cache=$ac_item 3649afb14e9bSmrg else 3650afb14e9bSmrg ac_header=$ac_item 365153354cdbSmrg fi 3652afb14e9bSmrgdone 3653afb14e9bSmrg 3654afb14e9bSmrg 3655afb14e9bSmrg 3656afb14e9bSmrg 3657afb14e9bSmrg 3658afb14e9bSmrg 3659afb14e9bSmrg 3660afb14e9bSmrg 3661afb14e9bSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3662afb14e9bSmrgthen : 3663afb14e9bSmrg 3664afb14e9bSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3665ecb85c42Smrg 3666ecb85c42Smrgfi 3667ecb85c42Smrg 3668ecb85c42Smrg 3669afb14e9bSmrg 3670afb14e9bSmrg 3671afb14e9bSmrg 3672afb14e9bSmrg 3673afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3674afb14e9bSmrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3675afb14e9bSmrgif test ${ac_cv_safe_to_define___extensions__+y} 3676afb14e9bSmrgthen : 3677afb14e9bSmrg printf %s "(cached) " >&6 3678afb14e9bSmrgelse $as_nop 3679ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 368053354cdbSmrg/* end confdefs.h. */ 368153354cdbSmrg 3682afb14e9bSmrg# define __EXTENSIONS__ 1 3683afb14e9bSmrg $ac_includes_default 368453354cdbSmrgint 3685afb14e9bSmrgmain (void) 368653354cdbSmrg{ 3687ecb85c42Smrg 368853354cdbSmrg ; 368953354cdbSmrg return 0; 369053354cdbSmrg} 369153354cdbSmrg_ACEOF 3692afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3693afb14e9bSmrgthen : 3694afb14e9bSmrg ac_cv_safe_to_define___extensions__=yes 3695afb14e9bSmrgelse $as_nop 3696afb14e9bSmrg ac_cv_safe_to_define___extensions__=no 369786bbecbeSmrgfi 3698afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 369986bbecbeSmrgfi 3700afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3701afb14e9bSmrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 370286bbecbeSmrg 3703afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3704afb14e9bSmrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3705afb14e9bSmrgif test ${ac_cv_should_define__xopen_source+y} 3706afb14e9bSmrgthen : 3707afb14e9bSmrg printf %s "(cached) " >&6 3708afb14e9bSmrgelse $as_nop 3709afb14e9bSmrg ac_cv_should_define__xopen_source=no 3710afb14e9bSmrg if test $ac_cv_header_wchar_h = yes 3711afb14e9bSmrgthen : 3712ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713ecb85c42Smrg/* end confdefs.h. */ 371486bbecbeSmrg 3715afb14e9bSmrg #include <wchar.h> 3716afb14e9bSmrg mbstate_t x; 3717afb14e9bSmrgint 3718afb14e9bSmrgmain (void) 3719afb14e9bSmrg{ 3720ecb85c42Smrg 3721afb14e9bSmrg ; 3722afb14e9bSmrg return 0; 3723afb14e9bSmrg} 3724afb14e9bSmrg_ACEOF 3725afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3726afb14e9bSmrgthen : 3727ecb85c42Smrg 3728afb14e9bSmrgelse $as_nop 3729ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730ecb85c42Smrg/* end confdefs.h. */ 3731ecb85c42Smrg 3732afb14e9bSmrg #define _XOPEN_SOURCE 500 3733afb14e9bSmrg #include <wchar.h> 3734afb14e9bSmrg mbstate_t x; 3735ecb85c42Smrgint 3736afb14e9bSmrgmain (void) 3737ecb85c42Smrg{ 3738afb14e9bSmrg 3739afb14e9bSmrg ; 3740ecb85c42Smrg return 0; 3741ecb85c42Smrg} 3742ecb85c42Smrg_ACEOF 3743afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 3744afb14e9bSmrgthen : 3745afb14e9bSmrg ac_cv_should_define__xopen_source=yes 3746ecb85c42Smrgfi 3747afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3748ecb85c42Smrgfi 3749afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3750ecb85c42Smrgfi 3751ecb85c42Smrgfi 3752afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3753afb14e9bSmrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3754ecb85c42Smrg 3755afb14e9bSmrg printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3756ecb85c42Smrg 3757afb14e9bSmrg printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3758ecb85c42Smrg 3759afb14e9bSmrg printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3760ecb85c42Smrg 3761afb14e9bSmrg printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3762ecb85c42Smrg 3763afb14e9bSmrg printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3764ecb85c42Smrg 3765afb14e9bSmrg printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3766ecb85c42Smrg 3767afb14e9bSmrg printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3768ecb85c42Smrg 3769afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3770ecb85c42Smrg 3771afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3772ecb85c42Smrg 3773afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3774ecb85c42Smrg 3775afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3776ecb85c42Smrg 3777afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3778ecb85c42Smrg 3779afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3780ecb85c42Smrg 3781afb14e9bSmrg printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3782ecb85c42Smrg 3783afb14e9bSmrg printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3784ecb85c42Smrg 3785afb14e9bSmrg if test $ac_cv_header_minix_config_h = yes 3786afb14e9bSmrgthen : 3787afb14e9bSmrg MINIX=yes 3788afb14e9bSmrg printf "%s\n" "#define _MINIX 1" >>confdefs.h 3789ecb85c42Smrg 3790afb14e9bSmrg printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3791ecb85c42Smrg 3792afb14e9bSmrg printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3793ecb85c42Smrg 3794afb14e9bSmrgelse $as_nop 3795afb14e9bSmrg MINIX= 3796ecb85c42Smrgfi 3797afb14e9bSmrg if test $ac_cv_safe_to_define___extensions__ = yes 3798afb14e9bSmrgthen : 3799afb14e9bSmrg printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3800ecb85c42Smrg 3801afb14e9bSmrgfi 3802afb14e9bSmrg if test $ac_cv_should_define__xopen_source = yes 3803afb14e9bSmrgthen : 3804afb14e9bSmrg printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3805ecb85c42Smrg 3806afb14e9bSmrgfi 3807ecb85c42Smrg 3808ecb85c42Smrg 3809ecb85c42Smrg# Initialize Automake 3810afb14e9bSmrgam__api_version='1.16' 3811ecb85c42Smrg 3812ecb85c42Smrg 3813afb14e9bSmrg # Find a good install program. We prefer a C program (faster), 3814ecb85c42Smrg# so one script is as good as another. But avoid the broken or 3815ecb85c42Smrg# incompatible versions: 3816ecb85c42Smrg# SysV /etc/install, /usr/sbin/install 3817ecb85c42Smrg# SunOS /usr/etc/install 3818ecb85c42Smrg# IRIX /sbin/install 3819ecb85c42Smrg# AIX /bin/install 3820ecb85c42Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 3821ecb85c42Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3822ecb85c42Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3823ecb85c42Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3824ecb85c42Smrg# OS/2's system install, which has a completely different semantic 3825ecb85c42Smrg# ./install, which can be erroneously created by make from ./install.sh. 3826ecb85c42Smrg# Reject install programs that cannot install multiple files. 3827afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3828afb14e9bSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 3829ecb85c42Smrgif test -z "$INSTALL"; then 3830afb14e9bSmrgif test ${ac_cv_path_install+y} 3831afb14e9bSmrgthen : 3832afb14e9bSmrg printf %s "(cached) " >&6 3833afb14e9bSmrgelse $as_nop 3834ecb85c42Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835ecb85c42Smrgfor as_dir in $PATH 3836ecb85c42Smrgdo 3837ecb85c42Smrg IFS=$as_save_IFS 3838afb14e9bSmrg case $as_dir in #((( 3839afb14e9bSmrg '') as_dir=./ ;; 3840afb14e9bSmrg */) ;; 3841afb14e9bSmrg *) as_dir=$as_dir/ ;; 3842afb14e9bSmrg esac 3843afb14e9bSmrg # Account for fact that we put trailing slashes in our PATH walk. 3844afb14e9bSmrgcase $as_dir in #(( 3845afb14e9bSmrg ./ | /[cC]/* | \ 3846ecb85c42Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3847ecb85c42Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3848ecb85c42Smrg /usr/ucb/* ) ;; 3849ecb85c42Smrg *) 3850ecb85c42Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 3851ecb85c42Smrg # Don't use installbsd from OSF since it installs stuff as root 3852ecb85c42Smrg # by default. 3853ecb85c42Smrg for ac_prog in ginstall scoinst install; do 3854ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3855afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3856ecb85c42Smrg if test $ac_prog = install && 3857afb14e9bSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3858ecb85c42Smrg # AIX install. It has an incompatible calling convention. 3859ecb85c42Smrg : 3860ecb85c42Smrg elif test $ac_prog = install && 3861afb14e9bSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3862ecb85c42Smrg # program-specific install script used by HP pwplus--don't use. 3863ecb85c42Smrg : 3864ecb85c42Smrg else 3865ecb85c42Smrg rm -rf conftest.one conftest.two conftest.dir 3866ecb85c42Smrg echo one > conftest.one 3867ecb85c42Smrg echo two > conftest.two 3868ecb85c42Smrg mkdir conftest.dir 3869afb14e9bSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3870ecb85c42Smrg test -s conftest.one && test -s conftest.two && 3871ecb85c42Smrg test -s conftest.dir/conftest.one && 3872ecb85c42Smrg test -s conftest.dir/conftest.two 3873ecb85c42Smrg then 3874afb14e9bSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3875ecb85c42Smrg break 3 3876ecb85c42Smrg fi 3877ecb85c42Smrg fi 3878ecb85c42Smrg fi 3879ecb85c42Smrg done 3880ecb85c42Smrg done 3881ecb85c42Smrg ;; 3882ecb85c42Smrgesac 3883ecb85c42Smrg 3884ecb85c42Smrg done 3885ecb85c42SmrgIFS=$as_save_IFS 3886ecb85c42Smrg 3887ecb85c42Smrgrm -rf conftest.one conftest.two conftest.dir 3888ecb85c42Smrg 3889ecb85c42Smrgfi 3890afb14e9bSmrg if test ${ac_cv_path_install+y}; then 3891ecb85c42Smrg INSTALL=$ac_cv_path_install 3892ecb85c42Smrg else 3893ecb85c42Smrg # As a last resort, use the slow shell script. Don't cache a 3894ecb85c42Smrg # value for INSTALL within a source directory, because that will 3895ecb85c42Smrg # break other packages using the cache if that directory is 3896ecb85c42Smrg # removed, or if the value is a relative name. 3897ecb85c42Smrg INSTALL=$ac_install_sh 3898ecb85c42Smrg fi 3899ecb85c42Smrgfi 3900afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3901afb14e9bSmrgprintf "%s\n" "$INSTALL" >&6; } 3902ecb85c42Smrg 3903ecb85c42Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3904ecb85c42Smrg# It thinks the first close brace ends the variable substitution. 3905ecb85c42Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3906ecb85c42Smrg 3907ecb85c42Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3908ecb85c42Smrg 3909ecb85c42Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3910ecb85c42Smrg 3911afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3912afb14e9bSmrgprintf %s "checking whether build environment is sane... " >&6; } 3913ecb85c42Smrg# Reject unsafe characters in $srcdir or the absolute working directory 3914ecb85c42Smrg# name. Accept space and tab only in the latter. 3915ecb85c42Smrgam_lf=' 3916ecb85c42Smrg' 3917ecb85c42Smrgcase `pwd` in 3918ecb85c42Smrg *[\\\"\#\$\&\'\`$am_lf]*) 3919ecb85c42Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3920ecb85c42Smrgesac 3921ecb85c42Smrgcase $srcdir in 3922ecb85c42Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3923ecb85c42Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3924ecb85c42Smrgesac 3925ecb85c42Smrg 3926ecb85c42Smrg# Do 'set' in a subshell so we don't clobber the current shell's 3927ecb85c42Smrg# arguments. Must try -L first in case configure is actually a 3928ecb85c42Smrg# symlink; some systems play weird games with the mod time of symlinks 3929ecb85c42Smrg# (eg FreeBSD returns the mod time of the symlink's containing 3930ecb85c42Smrg# directory). 3931ecb85c42Smrgif ( 3932ecb85c42Smrg am_has_slept=no 3933ecb85c42Smrg for am_try in 1 2; do 3934ecb85c42Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 3935ecb85c42Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3936ecb85c42Smrg if test "$*" = "X"; then 3937ecb85c42Smrg # -L didn't work. 3938ecb85c42Smrg set X `ls -t "$srcdir/configure" conftest.file` 3939ecb85c42Smrg fi 3940ecb85c42Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 3941ecb85c42Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 3942ecb85c42Smrg 3943ecb85c42Smrg # If neither matched, then we have a broken ls. This can happen 3944ecb85c42Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 3945ecb85c42Smrg # broken ls alias from the environment. This has actually 3946ecb85c42Smrg # happened. Such a system could not be considered "sane". 3947ecb85c42Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3948ecb85c42Smrg alias in your environment" "$LINENO" 5 3949ecb85c42Smrg fi 3950ecb85c42Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 3951ecb85c42Smrg break 3952ecb85c42Smrg fi 3953ecb85c42Smrg # Just in case. 3954ecb85c42Smrg sleep 1 3955ecb85c42Smrg am_has_slept=yes 3956ecb85c42Smrg done 3957ecb85c42Smrg test "$2" = conftest.file 3958ecb85c42Smrg ) 3959ecb85c42Smrgthen 3960ecb85c42Smrg # Ok. 3961ecb85c42Smrg : 3962ecb85c42Smrgelse 3963ecb85c42Smrg as_fn_error $? "newly created file is older than distributed files! 3964ecb85c42SmrgCheck your system clock" "$LINENO" 5 3965ecb85c42Smrgfi 3966afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3967afb14e9bSmrgprintf "%s\n" "yes" >&6; } 3968ecb85c42Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 3969ecb85c42Smrg# generated files are strictly newer. 3970ecb85c42Smrgam_sleep_pid= 3971ecb85c42Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 3972ecb85c42Smrg ( sleep 1 ) & 3973ecb85c42Smrg am_sleep_pid=$! 3974ecb85c42Smrgfi 3975ecb85c42Smrg 3976ecb85c42Smrgrm -f conftest.file 3977ecb85c42Smrg 3978ecb85c42Smrgtest "$program_prefix" != NONE && 3979ecb85c42Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 3980ecb85c42Smrg# Use a double $ so make ignores it. 3981ecb85c42Smrgtest "$program_suffix" != NONE && 3982ecb85c42Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3983ecb85c42Smrg# Double any \ or $. 3984ecb85c42Smrg# By default was `s,x,x', remove it if useless. 3985ecb85c42Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3986afb14e9bSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3987ecb85c42Smrg 3988afb14e9bSmrg 3989afb14e9bSmrg if test x"${MISSING+set}" != xset; then 3990afb14e9bSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 3991ecb85c42Smrgfi 3992ecb85c42Smrg# Use eval to expand $SHELL 3993ecb85c42Smrgif eval "$MISSING --is-lightweight"; then 3994ecb85c42Smrg am_missing_run="$MISSING " 3995ecb85c42Smrgelse 3996ecb85c42Smrg am_missing_run= 3997afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3998afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3999ecb85c42Smrgfi 4000ecb85c42Smrg 4001afb14e9bSmrgif test x"${install_sh+set}" != xset; then 4002ecb85c42Smrg case $am_aux_dir in 4003ecb85c42Smrg *\ * | *\ *) 4004ecb85c42Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4005ecb85c42Smrg *) 4006ecb85c42Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 4007ecb85c42Smrg esac 4008ecb85c42Smrgfi 4009ecb85c42Smrg 4010ecb85c42Smrg# Installed binaries are usually stripped using 'strip' when the user 4011ecb85c42Smrg# run "make install-strip". However 'strip' might not be the right 4012ecb85c42Smrg# tool to use in cross-compilation environments, therefore Automake 4013ecb85c42Smrg# will honor the 'STRIP' environment variable to overrule this program. 4014ecb85c42Smrgif test "$cross_compiling" != no; then 4015ecb85c42Smrg if test -n "$ac_tool_prefix"; then 4016ecb85c42Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4017ecb85c42Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 4018afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 4020afb14e9bSmrgif test ${ac_cv_prog_STRIP+y} 4021afb14e9bSmrgthen : 4022afb14e9bSmrg printf %s "(cached) " >&6 4023afb14e9bSmrgelse $as_nop 4024ecb85c42Smrg if test -n "$STRIP"; then 4025ecb85c42Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4026ecb85c42Smrgelse 4027ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028ecb85c42Smrgfor as_dir in $PATH 4029ecb85c42Smrgdo 4030ecb85c42Smrg IFS=$as_save_IFS 4031afb14e9bSmrg case $as_dir in #((( 4032afb14e9bSmrg '') as_dir=./ ;; 4033afb14e9bSmrg */) ;; 4034afb14e9bSmrg *) as_dir=$as_dir/ ;; 4035afb14e9bSmrg esac 4036ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4037afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4038ecb85c42Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4039afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4040ecb85c42Smrg break 2 4041ecb85c42Smrg fi 4042ecb85c42Smrgdone 4043ecb85c42Smrg done 4044ecb85c42SmrgIFS=$as_save_IFS 4045ecb85c42Smrg 4046ecb85c42Smrgfi 4047ecb85c42Smrgfi 4048ecb85c42SmrgSTRIP=$ac_cv_prog_STRIP 4049ecb85c42Smrgif test -n "$STRIP"; then 4050afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4051afb14e9bSmrgprintf "%s\n" "$STRIP" >&6; } 4052ecb85c42Smrgelse 4053afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054afb14e9bSmrgprintf "%s\n" "no" >&6; } 4055ecb85c42Smrgfi 4056ecb85c42Smrg 4057ecb85c42Smrg 4058ecb85c42Smrgfi 4059ecb85c42Smrgif test -z "$ac_cv_prog_STRIP"; then 4060ecb85c42Smrg ac_ct_STRIP=$STRIP 4061ecb85c42Smrg # Extract the first word of "strip", so it can be a program name with args. 4062ecb85c42Smrgset dummy strip; ac_word=$2 4063afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 4065afb14e9bSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 4066afb14e9bSmrgthen : 4067afb14e9bSmrg printf %s "(cached) " >&6 4068afb14e9bSmrgelse $as_nop 4069ecb85c42Smrg if test -n "$ac_ct_STRIP"; then 4070ecb85c42Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4071ecb85c42Smrgelse 4072ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073ecb85c42Smrgfor as_dir in $PATH 4074ecb85c42Smrgdo 4075ecb85c42Smrg IFS=$as_save_IFS 4076afb14e9bSmrg case $as_dir in #((( 4077afb14e9bSmrg '') as_dir=./ ;; 4078afb14e9bSmrg */) ;; 4079afb14e9bSmrg *) as_dir=$as_dir/ ;; 4080afb14e9bSmrg esac 4081ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4082afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4083ecb85c42Smrg ac_cv_prog_ac_ct_STRIP="strip" 4084afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4085ecb85c42Smrg break 2 4086ecb85c42Smrg fi 4087ecb85c42Smrgdone 4088ecb85c42Smrg done 4089ecb85c42SmrgIFS=$as_save_IFS 4090ecb85c42Smrg 4091ecb85c42Smrgfi 4092ecb85c42Smrgfi 4093ecb85c42Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4094ecb85c42Smrgif test -n "$ac_ct_STRIP"; then 4095afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4096afb14e9bSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 4097ecb85c42Smrgelse 4098afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099afb14e9bSmrgprintf "%s\n" "no" >&6; } 4100ecb85c42Smrgfi 4101ecb85c42Smrg 4102ecb85c42Smrg if test "x$ac_ct_STRIP" = x; then 4103ecb85c42Smrg STRIP=":" 4104ecb85c42Smrg else 4105ecb85c42Smrg case $cross_compiling:$ac_tool_warned in 4106ecb85c42Smrgyes:) 4107afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4108afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4109ecb85c42Smrgac_tool_warned=yes ;; 4110ecb85c42Smrgesac 4111ecb85c42Smrg STRIP=$ac_ct_STRIP 4112ecb85c42Smrg fi 4113ecb85c42Smrgelse 4114ecb85c42Smrg STRIP="$ac_cv_prog_STRIP" 4115ecb85c42Smrgfi 4116ecb85c42Smrg 4117ecb85c42Smrgfi 4118ecb85c42SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4119ecb85c42Smrg 4120afb14e9bSmrg 4121afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4122afb14e9bSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 4123ecb85c42Smrgif test -z "$MKDIR_P"; then 4124afb14e9bSmrg if test ${ac_cv_path_mkdir+y} 4125afb14e9bSmrgthen : 4126afb14e9bSmrg printf %s "(cached) " >&6 4127afb14e9bSmrgelse $as_nop 4128ecb85c42Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4129ecb85c42Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4130ecb85c42Smrgdo 4131ecb85c42Smrg IFS=$as_save_IFS 4132afb14e9bSmrg case $as_dir in #((( 4133afb14e9bSmrg '') as_dir=./ ;; 4134afb14e9bSmrg */) ;; 4135afb14e9bSmrg *) as_dir=$as_dir/ ;; 4136afb14e9bSmrg esac 4137ecb85c42Smrg for ac_prog in mkdir gmkdir; do 4138ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4139afb14e9bSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4140afb14e9bSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4141afb14e9bSmrg 'mkdir ('*'coreutils) '* | \ 4142afb14e9bSmrg 'BusyBox '* | \ 4143ecb85c42Smrg 'mkdir (fileutils) '4.1*) 4144afb14e9bSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4145ecb85c42Smrg break 3;; 4146ecb85c42Smrg esac 4147ecb85c42Smrg done 4148ecb85c42Smrg done 4149ecb85c42Smrg done 4150ecb85c42SmrgIFS=$as_save_IFS 4151ecb85c42Smrg 4152ecb85c42Smrgfi 4153ecb85c42Smrg 4154ecb85c42Smrg test -d ./--version && rmdir ./--version 4155afb14e9bSmrg if test ${ac_cv_path_mkdir+y}; then 4156ecb85c42Smrg MKDIR_P="$ac_cv_path_mkdir -p" 4157ecb85c42Smrg else 4158ecb85c42Smrg # As a last resort, use the slow shell script. Don't cache a 4159ecb85c42Smrg # value for MKDIR_P within a source directory, because that will 4160ecb85c42Smrg # break other packages using the cache if that directory is 4161ecb85c42Smrg # removed, or if the value is a relative name. 4162ecb85c42Smrg MKDIR_P="$ac_install_sh -d" 4163ecb85c42Smrg fi 4164ecb85c42Smrgfi 4165afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4166afb14e9bSmrgprintf "%s\n" "$MKDIR_P" >&6; } 4167ecb85c42Smrg 4168ecb85c42Smrgfor ac_prog in gawk mawk nawk awk 4169ecb85c42Smrgdo 4170ecb85c42Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4171ecb85c42Smrgset dummy $ac_prog; ac_word=$2 4172afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4173afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 4174afb14e9bSmrgif test ${ac_cv_prog_AWK+y} 4175afb14e9bSmrgthen : 4176afb14e9bSmrg printf %s "(cached) " >&6 4177afb14e9bSmrgelse $as_nop 4178ecb85c42Smrg if test -n "$AWK"; then 4179ecb85c42Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 4180ecb85c42Smrgelse 4181ecb85c42Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182ecb85c42Smrgfor as_dir in $PATH 4183ecb85c42Smrgdo 4184ecb85c42Smrg IFS=$as_save_IFS 4185afb14e9bSmrg case $as_dir in #((( 4186afb14e9bSmrg '') as_dir=./ ;; 4187afb14e9bSmrg */) ;; 4188afb14e9bSmrg *) as_dir=$as_dir/ ;; 4189afb14e9bSmrg esac 4190ecb85c42Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4191afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4192ecb85c42Smrg ac_cv_prog_AWK="$ac_prog" 4193afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4194ecb85c42Smrg break 2 4195ecb85c42Smrg fi 4196ecb85c42Smrgdone 4197ecb85c42Smrg done 4198ecb85c42SmrgIFS=$as_save_IFS 4199ecb85c42Smrg 4200ecb85c42Smrgfi 4201ecb85c42Smrgfi 4202ecb85c42SmrgAWK=$ac_cv_prog_AWK 4203ecb85c42Smrgif test -n "$AWK"; then 4204afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4205afb14e9bSmrgprintf "%s\n" "$AWK" >&6; } 4206ecb85c42Smrgelse 4207afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208afb14e9bSmrgprintf "%s\n" "no" >&6; } 4209ecb85c42Smrgfi 4210ecb85c42Smrg 4211ecb85c42Smrg 4212ecb85c42Smrg test -n "$AWK" && break 4213ecb85c42Smrgdone 4214ecb85c42Smrg 4215afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4216afb14e9bSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4217ecb85c42Smrgset x ${MAKE-make} 4218afb14e9bSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4219afb14e9bSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 4220afb14e9bSmrgthen : 4221afb14e9bSmrg printf %s "(cached) " >&6 4222afb14e9bSmrgelse $as_nop 4223ecb85c42Smrg cat >conftest.make <<\_ACEOF 4224ecb85c42SmrgSHELL = /bin/sh 4225ecb85c42Smrgall: 4226ecb85c42Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 4227ecb85c42Smrg_ACEOF 4228ecb85c42Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4229ecb85c42Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 4230ecb85c42Smrg *@@@%%%=?*=@@@%%%*) 4231ecb85c42Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 4232ecb85c42Smrg *) 4233ecb85c42Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 4234ecb85c42Smrgesac 4235ecb85c42Smrgrm -f conftest.make 4236ecb85c42Smrgfi 4237ecb85c42Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4238afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4239afb14e9bSmrgprintf "%s\n" "yes" >&6; } 4240ecb85c42Smrg SET_MAKE= 4241ecb85c42Smrgelse 4242afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4243afb14e9bSmrgprintf "%s\n" "no" >&6; } 4244ecb85c42Smrg SET_MAKE="MAKE=${MAKE-make}" 4245ecb85c42Smrgfi 4246ecb85c42Smrg 4247ecb85c42Smrgrm -rf .tst 2>/dev/null 4248ecb85c42Smrgmkdir .tst 2>/dev/null 4249ecb85c42Smrgif test -d .tst; then 4250ecb85c42Smrg am__leading_dot=. 4251ecb85c42Smrgelse 4252ecb85c42Smrg am__leading_dot=_ 4253ecb85c42Smrgfi 4254ecb85c42Smrgrmdir .tst 2>/dev/null 4255ecb85c42Smrg 4256ecb85c42SmrgDEPDIR="${am__leading_dot}deps" 4257ecb85c42Smrg 4258ecb85c42Smrgac_config_commands="$ac_config_commands depfiles" 4259ecb85c42Smrg 4260afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4261afb14e9bSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4262afb14e9bSmrgcat > confinc.mk << 'END' 4263ecb85c42Smrgam__doit: 4264afb14e9bSmrg @echo this is the am__doit target >confinc.out 4265ecb85c42Smrg.PHONY: am__doit 4266ecb85c42SmrgEND 4267ecb85c42Smrgam__include="#" 4268ecb85c42Smrgam__quote= 4269afb14e9bSmrg# BSD make does it like this. 4270afb14e9bSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 4271afb14e9bSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4272afb14e9bSmrgecho 'include confinc.mk # ignored' > confmf.GNU 4273afb14e9bSmrg_am_result=no 4274afb14e9bSmrgfor s in GNU BSD; do 4275afb14e9bSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4276afb14e9bSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4277afb14e9bSmrg ac_status=$? 4278afb14e9bSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279afb14e9bSmrg (exit $ac_status); } 4280afb14e9bSmrg case $?:`cat confinc.out 2>/dev/null` in #( 4281afb14e9bSmrg '0:this is the am__doit target') : 4282afb14e9bSmrg case $s in #( 4283afb14e9bSmrg BSD) : 4284afb14e9bSmrg am__include='.include' am__quote='"' ;; #( 4285afb14e9bSmrg *) : 4286afb14e9bSmrg am__include='include' am__quote='' ;; 4287afb14e9bSmrgesac ;; #( 4288afb14e9bSmrg *) : 4289ecb85c42Smrg ;; 4290afb14e9bSmrgesac 4291afb14e9bSmrg if test "$am__include" != "#"; then 4292afb14e9bSmrg _am_result="yes ($s style)" 4293afb14e9bSmrg break 4294afb14e9bSmrg fi 4295afb14e9bSmrgdone 4296afb14e9bSmrgrm -f confinc.* confmf.* 4297afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4298afb14e9bSmrgprintf "%s\n" "${_am_result}" >&6; } 429986bbecbeSmrg 4300ecb85c42Smrg# Check whether --enable-dependency-tracking was given. 4301afb14e9bSmrgif test ${enable_dependency_tracking+y} 4302afb14e9bSmrgthen : 4303ecb85c42Smrg enableval=$enable_dependency_tracking; 4304ecb85c42Smrgfi 430586bbecbeSmrg 4306ecb85c42Smrgif test "x$enable_dependency_tracking" != xno; then 4307ecb85c42Smrg am_depcomp="$ac_aux_dir/depcomp" 4308ecb85c42Smrg AMDEPBACKSLASH='\' 4309ecb85c42Smrg am__nodep='_no' 4310ecb85c42Smrgfi 4311ecb85c42Smrg if test "x$enable_dependency_tracking" != xno; then 4312ecb85c42Smrg AMDEP_TRUE= 4313ecb85c42Smrg AMDEP_FALSE='#' 431486bbecbeSmrgelse 4315ecb85c42Smrg AMDEP_TRUE='#' 4316ecb85c42Smrg AMDEP_FALSE= 431753354cdbSmrgfi 431853354cdbSmrg 4319ecb85c42Smrg 4320ecb85c42Smrg# Check whether --enable-silent-rules was given. 4321afb14e9bSmrgif test ${enable_silent_rules+y} 4322afb14e9bSmrgthen : 4323ecb85c42Smrg enableval=$enable_silent_rules; 432486bbecbeSmrgfi 432586bbecbeSmrg 4326ecb85c42Smrgcase $enable_silent_rules in # ((( 4327ecb85c42Smrg yes) AM_DEFAULT_VERBOSITY=0;; 4328ecb85c42Smrg no) AM_DEFAULT_VERBOSITY=1;; 4329ecb85c42Smrg *) AM_DEFAULT_VERBOSITY=1;; 4330ecb85c42Smrgesac 4331ecb85c42Smrgam_make=${MAKE-make} 4332afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4333afb14e9bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 4334afb14e9bSmrgif test ${am_cv_make_support_nested_variables+y} 4335afb14e9bSmrgthen : 4336afb14e9bSmrg printf %s "(cached) " >&6 4337afb14e9bSmrgelse $as_nop 4338afb14e9bSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 4339ecb85c42SmrgBAR0=false 4340ecb85c42SmrgBAR1=true 4341ecb85c42SmrgV=1 4342ecb85c42Smrgam__doit: 4343ecb85c42Smrg @$(TRUE) 4344ecb85c42Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4345ecb85c42Smrg am_cv_make_support_nested_variables=yes 4346ecb85c42Smrgelse 4347ecb85c42Smrg am_cv_make_support_nested_variables=no 4348ecb85c42Smrgfi 4349ecb85c42Smrgfi 4350afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4351afb14e9bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4352ecb85c42Smrgif test $am_cv_make_support_nested_variables = yes; then 4353ecb85c42Smrg AM_V='$(V)' 4354ecb85c42Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4355ecb85c42Smrgelse 4356ecb85c42Smrg AM_V=$AM_DEFAULT_VERBOSITY 4357ecb85c42Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4358ecb85c42Smrgfi 4359ecb85c42SmrgAM_BACKSLASH='\' 4360ecb85c42Smrg 4361ecb85c42Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 4362ecb85c42Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4363ecb85c42Smrg # is not polluted with repeated "-I." 4364ecb85c42Smrg am__isrc=' -I$(srcdir)' 4365ecb85c42Smrg # test to see if srcdir already configured 4366ecb85c42Smrg if test -f $srcdir/config.status; then 4367ecb85c42Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4368ecb85c42Smrg fi 436986bbecbeSmrgfi 437086bbecbeSmrg 4371ecb85c42Smrg# test whether we have cygpath 4372ecb85c42Smrgif test -z "$CYGPATH_W"; then 4373ecb85c42Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 4374ecb85c42Smrg CYGPATH_W='cygpath -w' 4375ecb85c42Smrg else 4376ecb85c42Smrg CYGPATH_W=echo 4377ecb85c42Smrg fi 4378ecb85c42Smrgfi 437986bbecbeSmrg 438086bbecbeSmrg 4381ecb85c42Smrg# Define the identity of the package. 4382ecb85c42Smrg PACKAGE='rgb' 4383afb14e9bSmrg VERSION='1.1.0' 438486bbecbeSmrg 438586bbecbeSmrg 4386afb14e9bSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 438786bbecbeSmrg 438886bbecbeSmrg 4389afb14e9bSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 439086bbecbeSmrg 4391ecb85c42Smrg# Some tools Automake needs. 439286bbecbeSmrg 4393ecb85c42SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 439486bbecbeSmrg 439586bbecbeSmrg 4396ecb85c42SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 439786bbecbeSmrg 439886bbecbeSmrg 4399ecb85c42SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 440086bbecbeSmrg 440186bbecbeSmrg 4402ecb85c42SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 440386bbecbeSmrg 440486bbecbeSmrg 4405ecb85c42SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 440686bbecbeSmrg 4407ecb85c42Smrg# For better backward compatibility. To be removed once Automake 1.9.x 4408ecb85c42Smrg# dies out for good. For more background, see: 4409afb14e9bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4410afb14e9bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4411ecb85c42Smrgmkdir_p='$(MKDIR_P)' 441286bbecbeSmrg 4413afb14e9bSmrg# We need awk for the "check" target (and possibly the TAP driver). The 4414afb14e9bSmrg# system "awk" is bad on some platforms. 4415ecb85c42Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 4416ecb85c42Smrg# in the wild :-( We should find a proper way to deprecate it ... 4417ecb85c42SmrgAMTAR='$${TAR-tar}' 441886bbecbeSmrg 441986bbecbeSmrg 4420ecb85c42Smrg# We'll loop over all known methods to create a tar archive until one works. 4421ecb85c42Smrg_am_tools='gnutar pax cpio none' 442253354cdbSmrg 4423ecb85c42Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 442486bbecbeSmrg 442586bbecbeSmrg 442653354cdbSmrg 442753354cdbSmrg 442853354cdbSmrg 4429ecb85c42Smrgdepcc="$CC" am_compiler_list= 443086bbecbeSmrg 4431afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4432afb14e9bSmrgprintf %s "checking dependency style of $depcc... " >&6; } 4433afb14e9bSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 4434afb14e9bSmrgthen : 4435afb14e9bSmrg printf %s "(cached) " >&6 4436afb14e9bSmrgelse $as_nop 4437ecb85c42Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4438ecb85c42Smrg # We make a subdir and do the tests there. Otherwise we can end up 4439ecb85c42Smrg # making bogus files that we don't know about and never remove. For 4440ecb85c42Smrg # instance it was reported that on HP-UX the gcc test will end up 4441ecb85c42Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 4442ecb85c42Smrg # in D". 4443ecb85c42Smrg rm -rf conftest.dir 4444ecb85c42Smrg mkdir conftest.dir 4445ecb85c42Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 4446ecb85c42Smrg # using a relative directory. 4447ecb85c42Smrg cp "$am_depcomp" conftest.dir 4448ecb85c42Smrg cd conftest.dir 4449ecb85c42Smrg # We will build objects and dependencies in a subdirectory because 4450ecb85c42Smrg # it helps to detect inapplicable dependency modes. For instance 4451ecb85c42Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 4452ecb85c42Smrg # side effect of compilation, but ICC will put the dependencies in 4453ecb85c42Smrg # the current directory while Tru64 will put them in the object 4454ecb85c42Smrg # directory. 4455ecb85c42Smrg mkdir sub 445653354cdbSmrg 4457ecb85c42Smrg am_cv_CC_dependencies_compiler_type=none 4458ecb85c42Smrg if test "$am_compiler_list" = ""; then 4459ecb85c42Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4460ecb85c42Smrg fi 4461ecb85c42Smrg am__universal=false 4462ecb85c42Smrg case " $depcc " in #( 4463ecb85c42Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4464ecb85c42Smrg esac 446553354cdbSmrg 4466ecb85c42Smrg for depmode in $am_compiler_list; do 4467ecb85c42Smrg # Setup a source with many dependencies, because some compilers 4468ecb85c42Smrg # like to wrap large dependency lists on column 80 (with \), and 4469ecb85c42Smrg # we should not choose a depcomp mode which is confused by this. 4470ecb85c42Smrg # 4471ecb85c42Smrg # We need to recreate these files for each test, as the compiler may 4472ecb85c42Smrg # overwrite some of them when testing with obscure command lines. 4473ecb85c42Smrg # This happens at least with the AIX C compiler. 4474ecb85c42Smrg : > sub/conftest.c 4475ecb85c42Smrg for i in 1 2 3 4 5 6; do 4476ecb85c42Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4477ecb85c42Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4478ecb85c42Smrg # Solaris 10 /bin/sh. 4479ecb85c42Smrg echo '/* dummy */' > sub/conftst$i.h 448086bbecbeSmrg done 4481ecb85c42Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 448286bbecbeSmrg 4483ecb85c42Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4484ecb85c42Smrg # mode. It turns out that the SunPro C++ compiler does not properly 4485ecb85c42Smrg # handle '-M -o', and we need to detect this. Also, some Intel 4486ecb85c42Smrg # versions had trouble with output in subdirs. 4487ecb85c42Smrg am__obj=sub/conftest.${OBJEXT-o} 4488ecb85c42Smrg am__minus_obj="-o $am__obj" 4489ecb85c42Smrg case $depmode in 4490ecb85c42Smrg gcc) 4491ecb85c42Smrg # This depmode causes a compiler race in universal mode. 4492ecb85c42Smrg test "$am__universal" = false || continue 4493ecb85c42Smrg ;; 4494ecb85c42Smrg nosideeffect) 4495ecb85c42Smrg # After this tag, mechanisms are not by side-effect, so they'll 4496ecb85c42Smrg # only be used when explicitly requested. 4497ecb85c42Smrg if test "x$enable_dependency_tracking" = xyes; then 4498ecb85c42Smrg continue 4499ecb85c42Smrg else 4500ecb85c42Smrg break 4501ecb85c42Smrg fi 4502ecb85c42Smrg ;; 4503ecb85c42Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4504ecb85c42Smrg # This compiler won't grok '-c -o', but also, the minuso test has 4505ecb85c42Smrg # not run yet. These depmodes are late enough in the game, and 4506ecb85c42Smrg # so weak that their functioning should not be impacted. 4507ecb85c42Smrg am__obj=conftest.${OBJEXT-o} 4508ecb85c42Smrg am__minus_obj= 4509ecb85c42Smrg ;; 4510ecb85c42Smrg none) break ;; 4511ecb85c42Smrg esac 4512ecb85c42Smrg if depmode=$depmode \ 4513ecb85c42Smrg source=sub/conftest.c object=$am__obj \ 4514ecb85c42Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4515ecb85c42Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4516ecb85c42Smrg >/dev/null 2>conftest.err && 4517ecb85c42Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4518ecb85c42Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4519ecb85c42Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4520ecb85c42Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4521ecb85c42Smrg # icc doesn't choke on unknown options, it will just issue warnings 4522ecb85c42Smrg # or remarks (even with -Werror). So we grep stderr for any message 4523ecb85c42Smrg # that says an option was ignored or not supported. 4524ecb85c42Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 4525ecb85c42Smrg # icc: Command line warning: ignoring option '-M'; no argument required 4526ecb85c42Smrg # The diagnosis changed in icc 8.0: 4527ecb85c42Smrg # icc: Command line remark: option '-MP' not supported 4528ecb85c42Smrg if (grep 'ignoring option' conftest.err || 4529ecb85c42Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4530ecb85c42Smrg am_cv_CC_dependencies_compiler_type=$depmode 4531ecb85c42Smrg break 4532ecb85c42Smrg fi 4533ecb85c42Smrg fi 4534ecb85c42Smrg done 453586bbecbeSmrg 4536ecb85c42Smrg cd .. 4537ecb85c42Smrg rm -rf conftest.dir 453886bbecbeSmrgelse 4539ecb85c42Smrg am_cv_CC_dependencies_compiler_type=none 454086bbecbeSmrgfi 454186bbecbeSmrg 454286bbecbeSmrgfi 4543afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4544afb14e9bSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4545ecb85c42SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 454686bbecbeSmrg 4547ecb85c42Smrg if 4548ecb85c42Smrg test "x$enable_dependency_tracking" != xno \ 4549ecb85c42Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4550ecb85c42Smrg am__fastdepCC_TRUE= 4551ecb85c42Smrg am__fastdepCC_FALSE='#' 455286bbecbeSmrgelse 4553ecb85c42Smrg am__fastdepCC_TRUE='#' 4554ecb85c42Smrg am__fastdepCC_FALSE= 455586bbecbeSmrgfi 455686bbecbeSmrg 455786bbecbeSmrg 4558afb14e9bSmrg# Variables for tags utilities; see am/tags.am 4559afb14e9bSmrgif test -z "$CTAGS"; then 4560afb14e9bSmrg CTAGS=ctags 4561afb14e9bSmrgfi 4562afb14e9bSmrg 4563afb14e9bSmrgif test -z "$ETAGS"; then 4564afb14e9bSmrg ETAGS=etags 4565afb14e9bSmrgfi 4566afb14e9bSmrg 4567afb14e9bSmrgif test -z "$CSCOPE"; then 4568afb14e9bSmrg CSCOPE=cscope 4569afb14e9bSmrgfi 4570afb14e9bSmrg 4571afb14e9bSmrg 457286bbecbeSmrg 4573ecb85c42Smrg# POSIX will say in a future version that running "rm -f" with no argument 4574ecb85c42Smrg# is OK; and we want to be able to make that assumption in our Makefile 4575ecb85c42Smrg# recipes. So use an aggressive probe to check that the usage we want is 4576ecb85c42Smrg# actually supported "in the wild" to an acceptable degree. 4577ecb85c42Smrg# See automake bug#10828. 4578ecb85c42Smrg# To make any issue more visible, cause the running configure to be aborted 4579ecb85c42Smrg# by default if the 'rm' program in use doesn't match our expectations; the 4580ecb85c42Smrg# user can still override this though. 4581ecb85c42Smrgif rm -f && rm -fr && rm -rf; then : OK; else 4582ecb85c42Smrg cat >&2 <<'END' 4583ecb85c42SmrgOops! 458486bbecbeSmrg 4585ecb85c42SmrgYour 'rm' program seems unable to run without file operands specified 4586ecb85c42Smrgon the command line, even when the '-f' option is present. This is contrary 4587ecb85c42Smrgto the behaviour of most rm programs out there, and not conforming with 4588ecb85c42Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 458986bbecbeSmrg 4590ecb85c42SmrgPlease tell bug-automake@gnu.org about your system, including the value 4591ecb85c42Smrgof your $PATH and any error possibly output before this message. This 4592ecb85c42Smrgcan help us improve future automake versions. 459386bbecbeSmrg 4594ecb85c42SmrgEND 4595ecb85c42Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4596ecb85c42Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 4597ecb85c42Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4598ecb85c42Smrg echo >&2 4599ecb85c42Smrg else 4600ecb85c42Smrg cat >&2 <<'END' 4601ecb85c42SmrgAborting the configuration process, to ensure you take notice of the issue. 460286bbecbeSmrg 4603ecb85c42SmrgYou can download and install GNU coreutils to get an 'rm' implementation 4604afb14e9bSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 460586bbecbeSmrg 4606ecb85c42SmrgIf you want to complete the configuration process using your problematic 4607ecb85c42Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4608ecb85c42Smrgto "yes", and re-run configure. 4609ecb85c42Smrg 4610ecb85c42SmrgEND 4611ecb85c42Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 461286bbecbeSmrg fi 461353354cdbSmrgfi 461486bbecbeSmrg 4615ecb85c42Smrg 4616afb14e9bSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4617ecb85c42Smrg 4618ecb85c42Smrg 4619ecb85c42Smrg 4620ecb85c42Smrg 4621ecb85c42Smrg 4622ecb85c42Smrg 462353354cdbSmrg 462453354cdbSmrg 462553354cdbSmrg 462653354cdbSmrg 462753354cdbSmrg 462886bbecbeSmrg 4629afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4630afb14e9bSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4631afb14e9bSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 4632afb14e9bSmrgthen : 4633afb14e9bSmrg printf %s "(cached) " >&6 4634afb14e9bSmrgelse $as_nop 4635afb14e9bSmrg ac_save_CFLAGS=$CFLAGS 4636afb14e9bSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 4637afb14e9bSmrg for ac_arg in '' -fno-builtin; do 4638afb14e9bSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4639afb14e9bSmrg # This test program should *not* compile successfully. 4640afb14e9bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641afb14e9bSmrg/* end confdefs.h. */ 464253354cdbSmrg 4643afb14e9bSmrgint 4644afb14e9bSmrgmain (void) 4645afb14e9bSmrg{ 4646afb14e9bSmrg(void) strchr; 4647afb14e9bSmrg ; 4648afb14e9bSmrg return 0; 4649afb14e9bSmrg} 4650afb14e9bSmrg_ACEOF 4651afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 4652afb14e9bSmrgthen : 465353354cdbSmrg 4654afb14e9bSmrgelse $as_nop 4655afb14e9bSmrg # This test program should compile successfully. 4656afb14e9bSmrg # No library function is consistently available on 4657afb14e9bSmrg # freestanding implementations, so test against a dummy 4658afb14e9bSmrg # declaration. Include always-available headers on the 4659afb14e9bSmrg # off chance that they somehow elicit warnings. 4660afb14e9bSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661afb14e9bSmrg/* end confdefs.h. */ 4662afb14e9bSmrg#include <float.h> 4663afb14e9bSmrg#include <limits.h> 4664afb14e9bSmrg#include <stdarg.h> 4665afb14e9bSmrg#include <stddef.h> 4666afb14e9bSmrgextern void ac_decl (int, char *); 466753354cdbSmrg 4668afb14e9bSmrgint 4669afb14e9bSmrgmain (void) 4670afb14e9bSmrg{ 4671afb14e9bSmrg(void) ac_decl (0, (char *) 0); 4672afb14e9bSmrg (void) ac_decl; 467353354cdbSmrg 4674ecb85c42Smrg ; 467586bbecbeSmrg return 0; 467686bbecbeSmrg} 467786bbecbeSmrg_ACEOF 4678afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 4679afb14e9bSmrgthen : 4680afb14e9bSmrg if test x"$ac_arg" = x 4681afb14e9bSmrgthen : 4682afb14e9bSmrg ac_cv_c_undeclared_builtin_options='none needed' 4683afb14e9bSmrgelse $as_nop 4684afb14e9bSmrg ac_cv_c_undeclared_builtin_options=$ac_arg 468553354cdbSmrgfi 4686afb14e9bSmrg break 468786bbecbeSmrgfi 4688afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 468986bbecbeSmrgfi 4690afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4691afb14e9bSmrg done 4692afb14e9bSmrg CFLAGS=$ac_save_CFLAGS 4693afb14e9bSmrg 4694afb14e9bSmrgfi 4695afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4696afb14e9bSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4697afb14e9bSmrg case $ac_cv_c_undeclared_builtin_options in #( 4698afb14e9bSmrg 'cannot detect') : 4699afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4700afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4701afb14e9bSmrgas_fn_error $? "cannot make $CC report undeclared builtins 4702afb14e9bSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 4703afb14e9bSmrg 'none needed') : 4704afb14e9bSmrg ac_c_undeclared_builtin_options='' ;; #( 4705afb14e9bSmrg *) : 4706afb14e9bSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4707afb14e9bSmrgesac 470886bbecbeSmrg 470953354cdbSmrg 471053354cdbSmrg 471153354cdbSmrg 471261c899d4Smrg 4713afb14e9bSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4714afb14e9bSmrgif test "x$ac_cv_have_decl___clang__" = xyes 4715afb14e9bSmrgthen : 471661c899d4Smrg CLANGCC="yes" 4717afb14e9bSmrgelse $as_nop 471861c899d4Smrg CLANGCC="no" 471961c899d4Smrgfi 4720afb14e9bSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4721afb14e9bSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4722afb14e9bSmrgthen : 472361c899d4Smrg INTELCC="yes" 4724afb14e9bSmrgelse $as_nop 472561c899d4Smrg INTELCC="no" 472661c899d4Smrgfi 4727afb14e9bSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4728afb14e9bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4729afb14e9bSmrgthen : 473061c899d4Smrg SUNCC="yes" 4731afb14e9bSmrgelse $as_nop 473261c899d4Smrg SUNCC="no" 473361c899d4Smrgfi 473461c899d4Smrg 473561c899d4Smrg 473661c899d4Smrg 473761c899d4Smrg 4738afb14e9bSmrg 4739afb14e9bSmrg 4740afb14e9bSmrg 4741afb14e9bSmrg 474253354cdbSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 474353354cdbSmrg if test -n "$ac_tool_prefix"; then 474453354cdbSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 474553354cdbSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4746afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 4748afb14e9bSmrgif test ${ac_cv_path_PKG_CONFIG+y} 4749afb14e9bSmrgthen : 4750afb14e9bSmrg printf %s "(cached) " >&6 4751afb14e9bSmrgelse $as_nop 475253354cdbSmrg case $PKG_CONFIG in 475353354cdbSmrg [\\/]* | ?:[\\/]*) 475453354cdbSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 475553354cdbSmrg ;; 475653354cdbSmrg *) 475753354cdbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 475853354cdbSmrgfor as_dir in $PATH 475953354cdbSmrgdo 476053354cdbSmrg IFS=$as_save_IFS 4761afb14e9bSmrg case $as_dir in #((( 4762afb14e9bSmrg '') as_dir=./ ;; 4763afb14e9bSmrg */) ;; 4764afb14e9bSmrg *) as_dir=$as_dir/ ;; 4765afb14e9bSmrg esac 476686bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4767afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4768afb14e9bSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4769afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 477053354cdbSmrg break 2 477153354cdbSmrg fi 477253354cdbSmrgdone 477386bbecbeSmrg done 477453354cdbSmrgIFS=$as_save_IFS 477553354cdbSmrg 477653354cdbSmrg ;; 477753354cdbSmrgesac 477853354cdbSmrgfi 477953354cdbSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 478053354cdbSmrgif test -n "$PKG_CONFIG"; then 4781afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4782afb14e9bSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 478353354cdbSmrgelse 4784afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785afb14e9bSmrgprintf "%s\n" "no" >&6; } 478653354cdbSmrgfi 478753354cdbSmrg 478853354cdbSmrg 478953354cdbSmrgfi 479053354cdbSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 479153354cdbSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 479253354cdbSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 479353354cdbSmrgset dummy pkg-config; ac_word=$2 4794afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4795afb14e9bSmrgprintf %s "checking for $ac_word... " >&6; } 4796afb14e9bSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4797afb14e9bSmrgthen : 4798afb14e9bSmrg printf %s "(cached) " >&6 4799afb14e9bSmrgelse $as_nop 480053354cdbSmrg case $ac_pt_PKG_CONFIG in 480153354cdbSmrg [\\/]* | ?:[\\/]*) 480253354cdbSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 480353354cdbSmrg ;; 480453354cdbSmrg *) 480553354cdbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 480653354cdbSmrgfor as_dir in $PATH 480753354cdbSmrgdo 480853354cdbSmrg IFS=$as_save_IFS 4809afb14e9bSmrg case $as_dir in #((( 4810afb14e9bSmrg '') as_dir=./ ;; 4811afb14e9bSmrg */) ;; 4812afb14e9bSmrg *) as_dir=$as_dir/ ;; 4813afb14e9bSmrg esac 481486bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4815afb14e9bSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4816afb14e9bSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4817afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 481853354cdbSmrg break 2 481953354cdbSmrg fi 482053354cdbSmrgdone 482186bbecbeSmrg done 482253354cdbSmrgIFS=$as_save_IFS 482353354cdbSmrg 482453354cdbSmrg ;; 482553354cdbSmrgesac 482653354cdbSmrgfi 482753354cdbSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 482853354cdbSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4829afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4830afb14e9bSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 483153354cdbSmrgelse 4832afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833afb14e9bSmrgprintf "%s\n" "no" >&6; } 483453354cdbSmrgfi 483553354cdbSmrg 483653354cdbSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 483753354cdbSmrg PKG_CONFIG="" 483853354cdbSmrg else 483953354cdbSmrg case $cross_compiling:$ac_tool_warned in 484053354cdbSmrgyes:) 4841afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4842afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 484353354cdbSmrgac_tool_warned=yes ;; 484453354cdbSmrgesac 484553354cdbSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 484653354cdbSmrg fi 484753354cdbSmrgelse 484853354cdbSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 484953354cdbSmrgfi 485053354cdbSmrg 485153354cdbSmrgfi 485253354cdbSmrgif test -n "$PKG_CONFIG"; then 485353354cdbSmrg _pkg_min_version=0.9.0 4854afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4855afb14e9bSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 485653354cdbSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4857afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4858afb14e9bSmrgprintf "%s\n" "yes" >&6; } 485953354cdbSmrg else 4860afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4861afb14e9bSmrgprintf "%s\n" "no" >&6; } 486253354cdbSmrg PKG_CONFIG="" 486353354cdbSmrg fi 486486bbecbeSmrgfi 486553354cdbSmrg 4866afb14e9bSmrg 4867afb14e9bSmrg # Make sure we can run config.sub. 4868afb14e9bSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4869afb14e9bSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4870afb14e9bSmrg 4871afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4872afb14e9bSmrgprintf %s "checking build system type... " >&6; } 4873afb14e9bSmrgif test ${ac_cv_build+y} 4874afb14e9bSmrgthen : 4875afb14e9bSmrg printf %s "(cached) " >&6 4876afb14e9bSmrgelse $as_nop 487786bbecbeSmrg ac_build_alias=$build_alias 487886bbecbeSmrgtest "x$ac_build_alias" = x && 4879afb14e9bSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 488086bbecbeSmrgtest "x$ac_build_alias" = x && 488186bbecbeSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4882afb14e9bSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4883afb14e9bSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 488453354cdbSmrg 488553354cdbSmrgfi 4886afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4887afb14e9bSmrgprintf "%s\n" "$ac_cv_build" >&6; } 488886bbecbeSmrgcase $ac_cv_build in 488986bbecbeSmrg*-*-*) ;; 489086bbecbeSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 489186bbecbeSmrgesac 489286bbecbeSmrgbuild=$ac_cv_build 489386bbecbeSmrgac_save_IFS=$IFS; IFS='-' 489486bbecbeSmrgset x $ac_cv_build 489586bbecbeSmrgshift 489686bbecbeSmrgbuild_cpu=$1 489786bbecbeSmrgbuild_vendor=$2 489886bbecbeSmrgshift; shift 489986bbecbeSmrg# Remember, the first character of IFS is used to create $*, 490086bbecbeSmrg# except with old shells: 490186bbecbeSmrgbuild_os=$* 490286bbecbeSmrgIFS=$ac_save_IFS 490386bbecbeSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 490453354cdbSmrg 490553354cdbSmrg 4906afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4907afb14e9bSmrgprintf %s "checking host system type... " >&6; } 4908afb14e9bSmrgif test ${ac_cv_host+y} 4909afb14e9bSmrgthen : 4910afb14e9bSmrg printf %s "(cached) " >&6 4911afb14e9bSmrgelse $as_nop 491286bbecbeSmrg if test "x$host_alias" = x; then 491386bbecbeSmrg ac_cv_host=$ac_cv_build 491453354cdbSmrgelse 4915afb14e9bSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4916afb14e9bSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 491753354cdbSmrgfi 491853354cdbSmrg 491986bbecbeSmrgfi 4920afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4921afb14e9bSmrgprintf "%s\n" "$ac_cv_host" >&6; } 492286bbecbeSmrgcase $ac_cv_host in 492386bbecbeSmrg*-*-*) ;; 492486bbecbeSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 492586bbecbeSmrgesac 492686bbecbeSmrghost=$ac_cv_host 492786bbecbeSmrgac_save_IFS=$IFS; IFS='-' 492886bbecbeSmrgset x $ac_cv_host 492986bbecbeSmrgshift 493086bbecbeSmrghost_cpu=$1 493186bbecbeSmrghost_vendor=$2 493286bbecbeSmrgshift; shift 493386bbecbeSmrg# Remember, the first character of IFS is used to create $*, 493486bbecbeSmrg# except with old shells: 493586bbecbeSmrghost_os=$* 493686bbecbeSmrgIFS=$ac_save_IFS 493786bbecbeSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 493853354cdbSmrg 493953354cdbSmrg 4940afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4941afb14e9bSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4942afb14e9bSmrgif test ${ac_cv_path_SED+y} 4943afb14e9bSmrgthen : 4944afb14e9bSmrg printf %s "(cached) " >&6 4945afb14e9bSmrgelse $as_nop 494686bbecbeSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 494786bbecbeSmrg for ac_i in 1 2 3 4 5 6 7; do 494886bbecbeSmrg ac_script="$ac_script$as_nl$ac_script" 494986bbecbeSmrg done 495086bbecbeSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 495186bbecbeSmrg { ac_script=; unset ac_script;} 495286bbecbeSmrg if test -z "$SED"; then 495386bbecbeSmrg ac_path_SED_found=false 495486bbecbeSmrg # Loop through the user's path and test for each of PROGNAME-LIST 495586bbecbeSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 495686bbecbeSmrgfor as_dir in $PATH 495753354cdbSmrgdo 495853354cdbSmrg IFS=$as_save_IFS 4959afb14e9bSmrg case $as_dir in #((( 4960afb14e9bSmrg '') as_dir=./ ;; 4961afb14e9bSmrg */) ;; 4962afb14e9bSmrg *) as_dir=$as_dir/ ;; 4963afb14e9bSmrg esac 4964afb14e9bSmrg for ac_prog in sed gsed 4965afb14e9bSmrg do 496686bbecbeSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4967afb14e9bSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4968afb14e9bSmrg as_fn_executable_p "$ac_path_SED" || continue 496986bbecbeSmrg# Check for GNU ac_path_SED and select it if it is found. 497086bbecbeSmrg # Check for GNU $ac_path_SED 497186bbecbeSmrgcase `"$ac_path_SED" --version 2>&1` in 497253354cdbSmrg*GNU*) 497386bbecbeSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 497453354cdbSmrg*) 497553354cdbSmrg ac_count=0 4976afb14e9bSmrg printf %s 0123456789 >"conftest.in" 497753354cdbSmrg while : 497853354cdbSmrg do 497953354cdbSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 498053354cdbSmrg mv "conftest.tmp" "conftest.in" 498153354cdbSmrg cp "conftest.in" "conftest.nl" 4982afb14e9bSmrg printf "%s\n" '' >> "conftest.nl" 498386bbecbeSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 498453354cdbSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 498586bbecbeSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 498686bbecbeSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 498753354cdbSmrg # Best one so far, save it but keep looking for a better one 498886bbecbeSmrg ac_cv_path_SED="$ac_path_SED" 498986bbecbeSmrg ac_path_SED_max=$ac_count 499053354cdbSmrg fi 499153354cdbSmrg # 10*(2^10) chars as input seems more than enough 499253354cdbSmrg test $ac_count -gt 10 && break 499353354cdbSmrg done 499453354cdbSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 499553354cdbSmrgesac 499653354cdbSmrg 499786bbecbeSmrg $ac_path_SED_found && break 3 499886bbecbeSmrg done 499986bbecbeSmrg done 500053354cdbSmrg done 500153354cdbSmrgIFS=$as_save_IFS 500286bbecbeSmrg if test -z "$ac_cv_path_SED"; then 500386bbecbeSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 500486bbecbeSmrg fi 500586bbecbeSmrgelse 500686bbecbeSmrg ac_cv_path_SED=$SED 500753354cdbSmrgfi 500853354cdbSmrg 500953354cdbSmrgfi 5010afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5011afb14e9bSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 501286bbecbeSmrg SED="$ac_cv_path_SED" 501386bbecbeSmrg rm -f conftest.sed 501453354cdbSmrg 501553354cdbSmrg 501653354cdbSmrg 501753354cdbSmrg 501853354cdbSmrg 501961c899d4Smrg 502061c899d4Smrg# Check whether --enable-selective-werror was given. 5021afb14e9bSmrgif test ${enable_selective_werror+y} 5022afb14e9bSmrgthen : 502361c899d4Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5024afb14e9bSmrgelse $as_nop 502561c899d4Smrg SELECTIVE_WERROR=yes 502686bbecbeSmrgfi 502786bbecbeSmrg 502861c899d4Smrg 502961c899d4Smrg 503061c899d4Smrg 503161c899d4Smrg 503261c899d4Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 503361c899d4Smrgif test "x$SUNCC" = "xyes"; then 503461c899d4Smrg BASE_CFLAGS="-v" 503561c899d4Smrgelse 503661c899d4Smrg BASE_CFLAGS="" 503786bbecbeSmrgfi 503853354cdbSmrg 503961c899d4Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 504053354cdbSmrg 504153354cdbSmrg 504253354cdbSmrg 504353354cdbSmrg 504453354cdbSmrg 504553354cdbSmrg 504653354cdbSmrg 504761c899d4Smrg 504861c899d4Smrg 504961c899d4Smrg 505061c899d4Smrg 505161c899d4Smrg 505261c899d4Smrg 505361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 505461c899d4Smrg 505561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 505661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5058afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5059afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5060afb14e9bSmrgthen : 5061afb14e9bSmrg printf %s "(cached) " >&6 5062afb14e9bSmrgelse $as_nop 506361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 506461c899d4Smrg/* end confdefs.h. */ 506561c899d4Smrgint i; 506661c899d4Smrg_ACEOF 5067afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5068afb14e9bSmrgthen : 506961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5070afb14e9bSmrgelse $as_nop 507161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 507261c899d4Smrgfi 5073afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 507461c899d4Smrgfi 5075afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5076afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 507761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 507861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 507986bbecbeSmrgfi 508053354cdbSmrg 508161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 508261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 508361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 508486bbecbeSmrg fi 508561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5086afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5087afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5088afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5089afb14e9bSmrgthen : 5090afb14e9bSmrg printf %s "(cached) " >&6 5091afb14e9bSmrgelse $as_nop 509261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 509361c899d4Smrg/* end confdefs.h. */ 509461c899d4Smrgint i; 509561c899d4Smrg_ACEOF 5096afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5097afb14e9bSmrgthen : 509861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5099afb14e9bSmrgelse $as_nop 510061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 510161c899d4Smrgfi 5102afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 510361c899d4Smrgfi 5104afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5105afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 510661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 510761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 510853354cdbSmrgfi 510953354cdbSmrg 511061c899d4Smrgfound="no" 511153354cdbSmrg 511261c899d4Smrg if test $found = "no" ; then 5113ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 511461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 511561c899d4Smrg fi 511653354cdbSmrg 5117ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 511861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 511961c899d4Smrg fi 512053354cdbSmrg 512161c899d4Smrg CFLAGS="$CFLAGS -Wall" 512253354cdbSmrg 5123afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5124afb14e9bSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 512561c899d4Smrg cacheid=xorg_cv_cc_flag__Wall 5126afb14e9bSmrg if eval test \${$cacheid+y} 5127afb14e9bSmrgthen : 5128afb14e9bSmrg printf %s "(cached) " >&6 5129afb14e9bSmrgelse $as_nop 513061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 513161c899d4Smrg/* end confdefs.h. */ 513261c899d4Smrgint i; 513361c899d4Smrgint 5134afb14e9bSmrgmain (void) 513561c899d4Smrg{ 513653354cdbSmrg 513761c899d4Smrg ; 513861c899d4Smrg return 0; 513961c899d4Smrg} 514053354cdbSmrg_ACEOF 5141afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5142afb14e9bSmrgthen : 514361c899d4Smrg eval $cacheid=yes 5144afb14e9bSmrgelse $as_nop 514561c899d4Smrg eval $cacheid=no 514661c899d4Smrgfi 5147afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 514861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 514961c899d4Smrgfi 515053354cdbSmrg 515161c899d4Smrg 515261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 515361c899d4Smrg 515461c899d4Smrg eval supported=\$$cacheid 5155afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5156afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 515761c899d4Smrg if test "$supported" = "yes" ; then 515861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 515961c899d4Smrg found="yes" 516061c899d4Smrg fi 516186bbecbeSmrg fi 516286bbecbeSmrg 516353354cdbSmrg 516453354cdbSmrg 516553354cdbSmrg 516653354cdbSmrg 516753354cdbSmrg 516853354cdbSmrg 516953354cdbSmrg 517086bbecbeSmrg 517186bbecbeSmrg 517286bbecbeSmrg 517386bbecbeSmrg 517486bbecbeSmrg 517586bbecbeSmrg 517653354cdbSmrg 517761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 517853354cdbSmrg 517961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 518061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5181afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5182afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5183afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5184afb14e9bSmrgthen : 5185afb14e9bSmrg printf %s "(cached) " >&6 5186afb14e9bSmrgelse $as_nop 518761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 518861c899d4Smrg/* end confdefs.h. */ 518961c899d4Smrgint i; 519061c899d4Smrg_ACEOF 5191afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5192afb14e9bSmrgthen : 519361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5194afb14e9bSmrgelse $as_nop 519561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 519653354cdbSmrgfi 5197afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 519886bbecbeSmrgfi 5199afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5200afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 520161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 520261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 520386bbecbeSmrgfi 520453354cdbSmrg 520561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 520661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 520761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 520861c899d4Smrg fi 520961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5211afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5212afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5213afb14e9bSmrgthen : 5214afb14e9bSmrg printf %s "(cached) " >&6 5215afb14e9bSmrgelse $as_nop 521661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 521761c899d4Smrg/* end confdefs.h. */ 521861c899d4Smrgint i; 521961c899d4Smrg_ACEOF 5220afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5221afb14e9bSmrgthen : 522261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5223afb14e9bSmrgelse $as_nop 522461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 522553354cdbSmrgfi 5226afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 522786bbecbeSmrgfi 5228afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5229afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 523061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 523161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 523286bbecbeSmrgfi 523353354cdbSmrg 523461c899d4Smrgfound="no" 523553354cdbSmrg 523661c899d4Smrg if test $found = "no" ; then 5237ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 523861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 523961c899d4Smrg fi 524053354cdbSmrg 5241ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 524261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 524361c899d4Smrg fi 524453354cdbSmrg 524561c899d4Smrg CFLAGS="$CFLAGS -Wpointer-arith" 524653354cdbSmrg 5247afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5248afb14e9bSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 524961c899d4Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5250afb14e9bSmrg if eval test \${$cacheid+y} 5251afb14e9bSmrgthen : 5252afb14e9bSmrg printf %s "(cached) " >&6 5253afb14e9bSmrgelse $as_nop 525461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525561c899d4Smrg/* end confdefs.h. */ 525661c899d4Smrgint i; 525761c899d4Smrgint 5258afb14e9bSmrgmain (void) 525961c899d4Smrg{ 526053354cdbSmrg 526161c899d4Smrg ; 526261c899d4Smrg return 0; 526361c899d4Smrg} 526461c899d4Smrg_ACEOF 5265afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5266afb14e9bSmrgthen : 526761c899d4Smrg eval $cacheid=yes 5268afb14e9bSmrgelse $as_nop 526961c899d4Smrg eval $cacheid=no 527061c899d4Smrgfi 5271afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 527261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 527361c899d4Smrgfi 527453354cdbSmrg 527553354cdbSmrg 527661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 527753354cdbSmrg 527861c899d4Smrg eval supported=\$$cacheid 5279afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5280afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 528161c899d4Smrg if test "$supported" = "yes" ; then 528261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 528361c899d4Smrg found="yes" 528461c899d4Smrg fi 528561c899d4Smrg fi 528653354cdbSmrg 528753354cdbSmrg 528853354cdbSmrg 528953354cdbSmrg 529053354cdbSmrg 529186bbecbeSmrg 529286bbecbeSmrg 529353354cdbSmrg 529453354cdbSmrg 529586bbecbeSmrg 529686bbecbeSmrg 529753354cdbSmrg 529853354cdbSmrg 529953354cdbSmrg 530086bbecbeSmrg 530161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 530286bbecbeSmrg 530361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 530461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5305afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5306afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5307afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5308afb14e9bSmrgthen : 5309afb14e9bSmrg printf %s "(cached) " >&6 5310afb14e9bSmrgelse $as_nop 531161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 531261c899d4Smrg/* end confdefs.h. */ 531361c899d4Smrgint i; 531461c899d4Smrg_ACEOF 5315afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5316afb14e9bSmrgthen : 531761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5318afb14e9bSmrgelse $as_nop 531961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 532061c899d4Smrgfi 5321afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 532261c899d4Smrgfi 5323afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5324afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 532561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 532661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 532761c899d4Smrgfi 532861c899d4Smrg 532961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 533061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 533161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 533261c899d4Smrg fi 533361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5334afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5335afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5336afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5337afb14e9bSmrgthen : 5338afb14e9bSmrg printf %s "(cached) " >&6 5339afb14e9bSmrgelse $as_nop 534061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 534161c899d4Smrg/* end confdefs.h. */ 534261c899d4Smrgint i; 534361c899d4Smrg_ACEOF 5344afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5345afb14e9bSmrgthen : 534661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5347afb14e9bSmrgelse $as_nop 534861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 534961c899d4Smrgfi 5350afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 535161c899d4Smrgfi 5352afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5353afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 535461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 535561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 535661c899d4Smrgfi 535761c899d4Smrg 535861c899d4Smrgfound="no" 535961c899d4Smrg 536061c899d4Smrg if test $found = "no" ; then 5361ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 536261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 536361c899d4Smrg fi 536461c899d4Smrg 5365ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 536661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 536761c899d4Smrg fi 536861c899d4Smrg 536961c899d4Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 537061c899d4Smrg 5371afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5372afb14e9bSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 537361c899d4Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5374afb14e9bSmrg if eval test \${$cacheid+y} 5375afb14e9bSmrgthen : 5376afb14e9bSmrg printf %s "(cached) " >&6 5377afb14e9bSmrgelse $as_nop 537861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 537961c899d4Smrg/* end confdefs.h. */ 538061c899d4Smrgint i; 538161c899d4Smrgint 5382afb14e9bSmrgmain (void) 538361c899d4Smrg{ 538461c899d4Smrg 538561c899d4Smrg ; 538661c899d4Smrg return 0; 538761c899d4Smrg} 538861c899d4Smrg_ACEOF 5389afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5390afb14e9bSmrgthen : 539161c899d4Smrg eval $cacheid=yes 5392afb14e9bSmrgelse $as_nop 539361c899d4Smrg eval $cacheid=no 539461c899d4Smrgfi 5395afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 539661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 539761c899d4Smrgfi 539861c899d4Smrg 539961c899d4Smrg 540061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 540161c899d4Smrg 540261c899d4Smrg eval supported=\$$cacheid 5403afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5404afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 540561c899d4Smrg if test "$supported" = "yes" ; then 540661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 540761c899d4Smrg found="yes" 540861c899d4Smrg fi 540961c899d4Smrg fi 541061c899d4Smrg 541161c899d4Smrg 541261c899d4Smrg 541361c899d4Smrg 541461c899d4Smrg 541561c899d4Smrg 541661c899d4Smrg 541761c899d4Smrg 541861c899d4Smrg 541961c899d4Smrg 542061c899d4Smrg 542161c899d4Smrg 542261c899d4Smrg 542361c899d4Smrg 542461c899d4Smrg 542561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 542661c899d4Smrg 542761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 542861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5430afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5431afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5432afb14e9bSmrgthen : 5433afb14e9bSmrg printf %s "(cached) " >&6 5434afb14e9bSmrgelse $as_nop 543561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 543661c899d4Smrg/* end confdefs.h. */ 543761c899d4Smrgint i; 543861c899d4Smrg_ACEOF 5439afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5440afb14e9bSmrgthen : 544161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5442afb14e9bSmrgelse $as_nop 544361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 544461c899d4Smrgfi 5445afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 544661c899d4Smrgfi 5447afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5448afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 544961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 545061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 545161c899d4Smrgfi 545261c899d4Smrg 545361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 545461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 545561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 545661c899d4Smrg fi 545761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5458afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5459afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5460afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5461afb14e9bSmrgthen : 5462afb14e9bSmrg printf %s "(cached) " >&6 5463afb14e9bSmrgelse $as_nop 546461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 546561c899d4Smrg/* end confdefs.h. */ 546661c899d4Smrgint i; 546761c899d4Smrg_ACEOF 5468afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5469afb14e9bSmrgthen : 547061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5471afb14e9bSmrgelse $as_nop 547261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 547361c899d4Smrgfi 5474afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 547561c899d4Smrgfi 5476afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5477afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 547861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 547961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 548061c899d4Smrgfi 548161c899d4Smrg 548261c899d4Smrgfound="no" 548361c899d4Smrg 548461c899d4Smrg if test $found = "no" ; then 5485ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 548661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 548761c899d4Smrg fi 548861c899d4Smrg 5489ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 549061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 549161c899d4Smrg fi 549261c899d4Smrg 549361c899d4Smrg CFLAGS="$CFLAGS -Wformat=2" 549461c899d4Smrg 5495afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5496afb14e9bSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 5497afb14e9bSmrg cacheid=xorg_cv_cc_flag__Wformat_2 5498afb14e9bSmrg if eval test \${$cacheid+y} 5499afb14e9bSmrgthen : 5500afb14e9bSmrg printf %s "(cached) " >&6 5501afb14e9bSmrgelse $as_nop 550261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 550361c899d4Smrg/* end confdefs.h. */ 550461c899d4Smrgint i; 550561c899d4Smrgint 5506afb14e9bSmrgmain (void) 550761c899d4Smrg{ 550861c899d4Smrg 550961c899d4Smrg ; 551061c899d4Smrg return 0; 551161c899d4Smrg} 551261c899d4Smrg_ACEOF 5513afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5514afb14e9bSmrgthen : 551561c899d4Smrg eval $cacheid=yes 5516afb14e9bSmrgelse $as_nop 551761c899d4Smrg eval $cacheid=no 551861c899d4Smrgfi 5519afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 552061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 552161c899d4Smrgfi 552261c899d4Smrg 552361c899d4Smrg 552461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 552561c899d4Smrg 552661c899d4Smrg eval supported=\$$cacheid 5527afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5528afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 552961c899d4Smrg if test "$supported" = "yes" ; then 553061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 553161c899d4Smrg found="yes" 553261c899d4Smrg fi 553361c899d4Smrg fi 553461c899d4Smrg 553561c899d4Smrg if test $found = "no" ; then 5536ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 553761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 553861c899d4Smrg fi 553961c899d4Smrg 5540ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 554161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 554261c899d4Smrg fi 554361c899d4Smrg 554461c899d4Smrg CFLAGS="$CFLAGS -Wformat" 554561c899d4Smrg 5546afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5547afb14e9bSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 554861c899d4Smrg cacheid=xorg_cv_cc_flag__Wformat 5549afb14e9bSmrg if eval test \${$cacheid+y} 5550afb14e9bSmrgthen : 5551afb14e9bSmrg printf %s "(cached) " >&6 5552afb14e9bSmrgelse $as_nop 555361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 555461c899d4Smrg/* end confdefs.h. */ 555561c899d4Smrgint i; 555661c899d4Smrgint 5557afb14e9bSmrgmain (void) 555861c899d4Smrg{ 555961c899d4Smrg 556061c899d4Smrg ; 556161c899d4Smrg return 0; 556261c899d4Smrg} 556361c899d4Smrg_ACEOF 5564afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5565afb14e9bSmrgthen : 556661c899d4Smrg eval $cacheid=yes 5567afb14e9bSmrgelse $as_nop 556861c899d4Smrg eval $cacheid=no 556961c899d4Smrgfi 5570afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 557161c899d4Smrg conftest$ac_exeext conftest.$ac_ext 557261c899d4Smrgfi 557361c899d4Smrg 557461c899d4Smrg 557561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 557661c899d4Smrg 557761c899d4Smrg eval supported=\$$cacheid 5578afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5579afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 558061c899d4Smrg if test "$supported" = "yes" ; then 558161c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 558261c899d4Smrg found="yes" 558361c899d4Smrg fi 558461c899d4Smrg fi 558561c899d4Smrg 558661c899d4Smrg 558761c899d4Smrg 558861c899d4Smrg 558961c899d4Smrg 559061c899d4Smrg 559161c899d4Smrg 559261c899d4Smrg 559361c899d4Smrg 559461c899d4Smrg 559561c899d4Smrg 559661c899d4Smrg 559761c899d4Smrg 559861c899d4Smrg 559961c899d4Smrg 560061c899d4Smrg 560161c899d4Smrg 560261c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 560361c899d4Smrg 560461c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 560561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5607afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5608afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5609afb14e9bSmrgthen : 5610afb14e9bSmrg printf %s "(cached) " >&6 5611afb14e9bSmrgelse $as_nop 561261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 561361c899d4Smrg/* end confdefs.h. */ 561461c899d4Smrgint i; 561561c899d4Smrg_ACEOF 5616afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5617afb14e9bSmrgthen : 561861c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5619afb14e9bSmrgelse $as_nop 562061c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 562161c899d4Smrgfi 5622afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 562361c899d4Smrgfi 5624afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5625afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 562661c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 562761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 562861c899d4Smrgfi 562961c899d4Smrg 563061c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 563161c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 563261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 563361c899d4Smrg fi 563461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5635afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5636afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5637afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5638afb14e9bSmrgthen : 5639afb14e9bSmrg printf %s "(cached) " >&6 5640afb14e9bSmrgelse $as_nop 564161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 564261c899d4Smrg/* end confdefs.h. */ 564361c899d4Smrgint i; 564461c899d4Smrg_ACEOF 5645afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5646afb14e9bSmrgthen : 564761c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5648afb14e9bSmrgelse $as_nop 564961c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 565061c899d4Smrgfi 5651afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 565261c899d4Smrgfi 5653afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5654afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 565561c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 565661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 565761c899d4Smrgfi 565861c899d4Smrg 565961c899d4Smrgfound="no" 566061c899d4Smrg 566161c899d4Smrg if test $found = "no" ; then 5662ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 566361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 566461c899d4Smrg fi 566561c899d4Smrg 5666ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 566761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 566861c899d4Smrg fi 566961c899d4Smrg 567061c899d4Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 567161c899d4Smrg 5672afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5673afb14e9bSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 567461c899d4Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5675afb14e9bSmrg if eval test \${$cacheid+y} 5676afb14e9bSmrgthen : 5677afb14e9bSmrg printf %s "(cached) " >&6 5678afb14e9bSmrgelse $as_nop 567961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 568061c899d4Smrg/* end confdefs.h. */ 568161c899d4Smrgint i; 568261c899d4Smrgint 5683afb14e9bSmrgmain (void) 568461c899d4Smrg{ 568561c899d4Smrg 568661c899d4Smrg ; 568761c899d4Smrg return 0; 568861c899d4Smrg} 568961c899d4Smrg_ACEOF 5690afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5691afb14e9bSmrgthen : 569261c899d4Smrg eval $cacheid=yes 5693afb14e9bSmrgelse $as_nop 569461c899d4Smrg eval $cacheid=no 569561c899d4Smrgfi 5696afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 569761c899d4Smrg conftest$ac_exeext conftest.$ac_ext 569861c899d4Smrgfi 569961c899d4Smrg 570061c899d4Smrg 570161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 570261c899d4Smrg 570361c899d4Smrg eval supported=\$$cacheid 5704afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5705afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 570661c899d4Smrg if test "$supported" = "yes" ; then 570761c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 570861c899d4Smrg found="yes" 570961c899d4Smrg fi 571061c899d4Smrg fi 571161c899d4Smrg 571261c899d4Smrg 571361c899d4Smrg 571461c899d4Smrg 571561c899d4Smrg 571661c899d4Smrg 571761c899d4Smrg 571861c899d4Smrg 571961c899d4Smrg 572061c899d4Smrg 572161c899d4Smrg 572261c899d4Smrg 572361c899d4Smrg 572461c899d4Smrg 572561c899d4Smrg 572661c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 572761c899d4Smrg 572861c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 572961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5731afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5732afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5733afb14e9bSmrgthen : 5734afb14e9bSmrg printf %s "(cached) " >&6 5735afb14e9bSmrgelse $as_nop 573661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 573761c899d4Smrg/* end confdefs.h. */ 573861c899d4Smrgint i; 573961c899d4Smrg_ACEOF 5740afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5741afb14e9bSmrgthen : 574261c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5743afb14e9bSmrgelse $as_nop 574461c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 574561c899d4Smrgfi 5746afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 574761c899d4Smrgfi 5748afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5749afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 575061c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 575161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 575261c899d4Smrgfi 575361c899d4Smrg 575461c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 575561c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 575661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 575761c899d4Smrg fi 575861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5760afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5761afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5762afb14e9bSmrgthen : 5763afb14e9bSmrg printf %s "(cached) " >&6 5764afb14e9bSmrgelse $as_nop 576561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 576661c899d4Smrg/* end confdefs.h. */ 576761c899d4Smrgint i; 576861c899d4Smrg_ACEOF 5769afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5770afb14e9bSmrgthen : 577161c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5772afb14e9bSmrgelse $as_nop 577361c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 577461c899d4Smrgfi 5775afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 577661c899d4Smrgfi 5777afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5778afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 577961c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 578061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 578161c899d4Smrgfi 578261c899d4Smrg 578361c899d4Smrgfound="no" 578461c899d4Smrg 578561c899d4Smrg if test $found = "no" ; then 5786ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 578761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 578861c899d4Smrg fi 578961c899d4Smrg 5790ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 579161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 579261c899d4Smrg fi 579361c899d4Smrg 579461c899d4Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 579561c899d4Smrg 5796afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5797afb14e9bSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 579861c899d4Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5799afb14e9bSmrg if eval test \${$cacheid+y} 5800afb14e9bSmrgthen : 5801afb14e9bSmrg printf %s "(cached) " >&6 5802afb14e9bSmrgelse $as_nop 580361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 580461c899d4Smrg/* end confdefs.h. */ 580561c899d4Smrgint i; 580661c899d4Smrgint 5807afb14e9bSmrgmain (void) 580861c899d4Smrg{ 580961c899d4Smrg 581061c899d4Smrg ; 581161c899d4Smrg return 0; 581261c899d4Smrg} 581361c899d4Smrg_ACEOF 5814afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5815afb14e9bSmrgthen : 581661c899d4Smrg eval $cacheid=yes 5817afb14e9bSmrgelse $as_nop 581861c899d4Smrg eval $cacheid=no 581961c899d4Smrgfi 5820afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 582161c899d4Smrg conftest$ac_exeext conftest.$ac_ext 582261c899d4Smrgfi 582361c899d4Smrg 582461c899d4Smrg 582561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 582661c899d4Smrg 582761c899d4Smrg eval supported=\$$cacheid 5828afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5829afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 583061c899d4Smrg if test "$supported" = "yes" ; then 583161c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 583261c899d4Smrg found="yes" 583361c899d4Smrg fi 583461c899d4Smrg fi 583561c899d4Smrg 583661c899d4Smrg 583761c899d4Smrg 583861c899d4Smrg 583961c899d4Smrg 584061c899d4Smrg 584161c899d4Smrg 584261c899d4Smrg 584361c899d4Smrg 584461c899d4Smrg 584561c899d4Smrg 584661c899d4Smrg 584761c899d4Smrg 584861c899d4Smrg 584961c899d4Smrg 585061c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 585161c899d4Smrg 585261c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 585361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5855afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5856afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5857afb14e9bSmrgthen : 5858afb14e9bSmrg printf %s "(cached) " >&6 5859afb14e9bSmrgelse $as_nop 586061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 586161c899d4Smrg/* end confdefs.h. */ 586261c899d4Smrgint i; 586361c899d4Smrg_ACEOF 5864afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5865afb14e9bSmrgthen : 586661c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5867afb14e9bSmrgelse $as_nop 586861c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 586961c899d4Smrgfi 5870afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 587161c899d4Smrgfi 5872afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5873afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 587461c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 587561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 587661c899d4Smrgfi 587761c899d4Smrg 587861c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 587961c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 588061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 588161c899d4Smrg fi 588261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5883afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5884afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5885afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5886afb14e9bSmrgthen : 5887afb14e9bSmrg printf %s "(cached) " >&6 5888afb14e9bSmrgelse $as_nop 588961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 589061c899d4Smrg/* end confdefs.h. */ 589161c899d4Smrgint i; 589261c899d4Smrg_ACEOF 5893afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5894afb14e9bSmrgthen : 589561c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5896afb14e9bSmrgelse $as_nop 589761c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 589861c899d4Smrgfi 5899afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 590061c899d4Smrgfi 5901afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5902afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 590361c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 590461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 590561c899d4Smrgfi 590661c899d4Smrg 590761c899d4Smrgfound="no" 590861c899d4Smrg 590961c899d4Smrg if test $found = "no" ; then 5910ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 591161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 591261c899d4Smrg fi 591361c899d4Smrg 5914ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 591561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 591661c899d4Smrg fi 591761c899d4Smrg 591861c899d4Smrg CFLAGS="$CFLAGS -Wnested-externs" 591961c899d4Smrg 5920afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5921afb14e9bSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 592261c899d4Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5923afb14e9bSmrg if eval test \${$cacheid+y} 5924afb14e9bSmrgthen : 5925afb14e9bSmrg printf %s "(cached) " >&6 5926afb14e9bSmrgelse $as_nop 592761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 592861c899d4Smrg/* end confdefs.h. */ 592961c899d4Smrgint i; 593061c899d4Smrgint 5931afb14e9bSmrgmain (void) 593261c899d4Smrg{ 593361c899d4Smrg 593461c899d4Smrg ; 593561c899d4Smrg return 0; 593661c899d4Smrg} 593761c899d4Smrg_ACEOF 5938afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 5939afb14e9bSmrgthen : 594061c899d4Smrg eval $cacheid=yes 5941afb14e9bSmrgelse $as_nop 594261c899d4Smrg eval $cacheid=no 594361c899d4Smrgfi 5944afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 594561c899d4Smrg conftest$ac_exeext conftest.$ac_ext 594661c899d4Smrgfi 594761c899d4Smrg 594861c899d4Smrg 594961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 595061c899d4Smrg 595161c899d4Smrg eval supported=\$$cacheid 5952afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5953afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 595461c899d4Smrg if test "$supported" = "yes" ; then 595561c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 595661c899d4Smrg found="yes" 595761c899d4Smrg fi 595861c899d4Smrg fi 595961c899d4Smrg 596061c899d4Smrg 596161c899d4Smrg 596261c899d4Smrg 596361c899d4Smrg 596461c899d4Smrg 596561c899d4Smrg 596661c899d4Smrg 596761c899d4Smrg 596861c899d4Smrg 596961c899d4Smrg 597061c899d4Smrg 597161c899d4Smrg 597261c899d4Smrg 597361c899d4Smrg 597461c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 597561c899d4Smrg 597661c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 597761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5978afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5979afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5980afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5981afb14e9bSmrgthen : 5982afb14e9bSmrg printf %s "(cached) " >&6 5983afb14e9bSmrgelse $as_nop 598461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 598561c899d4Smrg/* end confdefs.h. */ 598661c899d4Smrgint i; 598761c899d4Smrg_ACEOF 5988afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 5989afb14e9bSmrgthen : 599061c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5991afb14e9bSmrgelse $as_nop 599261c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 599361c899d4Smrgfi 5994afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 599561c899d4Smrgfi 5996afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5997afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 599861c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 599961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 600061c899d4Smrgfi 600161c899d4Smrg 600261c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 600361c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 600461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 600561c899d4Smrg fi 600661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6008afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6009afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6010afb14e9bSmrgthen : 6011afb14e9bSmrg printf %s "(cached) " >&6 6012afb14e9bSmrgelse $as_nop 601361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 601461c899d4Smrg/* end confdefs.h. */ 601561c899d4Smrgint i; 601661c899d4Smrg_ACEOF 6017afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6018afb14e9bSmrgthen : 601961c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6020afb14e9bSmrgelse $as_nop 602161c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 602261c899d4Smrgfi 6023afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 602461c899d4Smrgfi 6025afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6026afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 602761c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 602861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 602961c899d4Smrgfi 603061c899d4Smrg 603161c899d4Smrgfound="no" 603261c899d4Smrg 603361c899d4Smrg if test $found = "no" ; then 6034ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 603561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 603661c899d4Smrg fi 603761c899d4Smrg 6038ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 603961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 604061c899d4Smrg fi 604161c899d4Smrg 604261c899d4Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 604361c899d4Smrg 6044afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6045afb14e9bSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 604661c899d4Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 6047afb14e9bSmrg if eval test \${$cacheid+y} 6048afb14e9bSmrgthen : 6049afb14e9bSmrg printf %s "(cached) " >&6 6050afb14e9bSmrgelse $as_nop 605161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 605261c899d4Smrg/* end confdefs.h. */ 605361c899d4Smrgint i; 605461c899d4Smrgint 6055afb14e9bSmrgmain (void) 605661c899d4Smrg{ 605761c899d4Smrg 605861c899d4Smrg ; 605961c899d4Smrg return 0; 606061c899d4Smrg} 606161c899d4Smrg_ACEOF 6062afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6063afb14e9bSmrgthen : 606461c899d4Smrg eval $cacheid=yes 6065afb14e9bSmrgelse $as_nop 606661c899d4Smrg eval $cacheid=no 606761c899d4Smrgfi 6068afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 606961c899d4Smrg conftest$ac_exeext conftest.$ac_ext 607061c899d4Smrgfi 607161c899d4Smrg 607261c899d4Smrg 607361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 607461c899d4Smrg 607561c899d4Smrg eval supported=\$$cacheid 6076afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6077afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 607861c899d4Smrg if test "$supported" = "yes" ; then 607961c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 608061c899d4Smrg found="yes" 608161c899d4Smrg fi 608261c899d4Smrg fi 608361c899d4Smrg 608461c899d4Smrg 608561c899d4Smrg 608661c899d4Smrg 608761c899d4Smrg 608861c899d4Smrg 608961c899d4Smrg 609061c899d4Smrg 609161c899d4Smrg 609261c899d4Smrg 609361c899d4Smrg 609461c899d4Smrg 609561c899d4Smrg 609661c899d4Smrg 609761c899d4Smrg 609861c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 609961c899d4Smrg 610061c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 610161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6103afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6104afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6105afb14e9bSmrgthen : 6106afb14e9bSmrg printf %s "(cached) " >&6 6107afb14e9bSmrgelse $as_nop 610861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 610961c899d4Smrg/* end confdefs.h. */ 611061c899d4Smrgint i; 611161c899d4Smrg_ACEOF 6112afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6113afb14e9bSmrgthen : 611461c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6115afb14e9bSmrgelse $as_nop 611661c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 611761c899d4Smrgfi 6118afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 611961c899d4Smrgfi 6120afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6121afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 612261c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 612361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 612461c899d4Smrgfi 612561c899d4Smrg 612661c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 612761c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 612861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 612961c899d4Smrg fi 613061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6131afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6132afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6133afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6134afb14e9bSmrgthen : 6135afb14e9bSmrg printf %s "(cached) " >&6 6136afb14e9bSmrgelse $as_nop 613761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 613861c899d4Smrg/* end confdefs.h. */ 613961c899d4Smrgint i; 614061c899d4Smrg_ACEOF 6141afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6142afb14e9bSmrgthen : 614361c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6144afb14e9bSmrgelse $as_nop 614561c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 614661c899d4Smrgfi 6147afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 614861c899d4Smrgfi 6149afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6150afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 615161c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 615261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 615361c899d4Smrgfi 615461c899d4Smrg 615561c899d4Smrgfound="no" 615661c899d4Smrg 615761c899d4Smrg if test $found = "no" ; then 6158ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 615961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 616061c899d4Smrg fi 616161c899d4Smrg 6162ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 616361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 616461c899d4Smrg fi 616561c899d4Smrg 616661c899d4Smrg CFLAGS="$CFLAGS -Wold-style-definition" 616761c899d4Smrg 6168afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6169afb14e9bSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 617061c899d4Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 6171afb14e9bSmrg if eval test \${$cacheid+y} 6172afb14e9bSmrgthen : 6173afb14e9bSmrg printf %s "(cached) " >&6 6174afb14e9bSmrgelse $as_nop 617561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 617661c899d4Smrg/* end confdefs.h. */ 617761c899d4Smrgint i; 617861c899d4Smrgint 6179afb14e9bSmrgmain (void) 618061c899d4Smrg{ 618161c899d4Smrg 618261c899d4Smrg ; 618361c899d4Smrg return 0; 618461c899d4Smrg} 618561c899d4Smrg_ACEOF 6186afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6187afb14e9bSmrgthen : 618861c899d4Smrg eval $cacheid=yes 6189afb14e9bSmrgelse $as_nop 619061c899d4Smrg eval $cacheid=no 619161c899d4Smrgfi 6192afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 619361c899d4Smrg conftest$ac_exeext conftest.$ac_ext 619461c899d4Smrgfi 619561c899d4Smrg 619661c899d4Smrg 619761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 619861c899d4Smrg 619961c899d4Smrg eval supported=\$$cacheid 6200afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6201afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 620261c899d4Smrg if test "$supported" = "yes" ; then 620361c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 620461c899d4Smrg found="yes" 620561c899d4Smrg fi 620661c899d4Smrg fi 620761c899d4Smrg 6208ecb85c42Smrg if test $found = "no" ; then 6209ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210ecb85c42Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211ecb85c42Smrg fi 6212ecb85c42Smrg 6213ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6214ecb85c42Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215ecb85c42Smrg fi 6216ecb85c42Smrg 6217ecb85c42Smrg CFLAGS="$CFLAGS -fd" 6218ecb85c42Smrg 6219afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6220afb14e9bSmrgprintf %s "checking if $CC supports -fd... " >&6; } 6221ecb85c42Smrg cacheid=xorg_cv_cc_flag__fd 6222afb14e9bSmrg if eval test \${$cacheid+y} 6223afb14e9bSmrgthen : 6224afb14e9bSmrg printf %s "(cached) " >&6 6225afb14e9bSmrgelse $as_nop 6226ecb85c42Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227ecb85c42Smrg/* end confdefs.h. */ 6228ecb85c42Smrgint i; 6229ecb85c42Smrgint 6230afb14e9bSmrgmain (void) 6231ecb85c42Smrg{ 6232ecb85c42Smrg 6233ecb85c42Smrg ; 6234ecb85c42Smrg return 0; 6235ecb85c42Smrg} 6236ecb85c42Smrg_ACEOF 6237afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6238afb14e9bSmrgthen : 6239ecb85c42Smrg eval $cacheid=yes 6240afb14e9bSmrgelse $as_nop 6241ecb85c42Smrg eval $cacheid=no 6242ecb85c42Smrgfi 6243afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6244ecb85c42Smrg conftest$ac_exeext conftest.$ac_ext 6245ecb85c42Smrgfi 6246ecb85c42Smrg 6247ecb85c42Smrg 6248ecb85c42Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6249ecb85c42Smrg 6250ecb85c42Smrg eval supported=\$$cacheid 6251afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6252afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 6253ecb85c42Smrg if test "$supported" = "yes" ; then 6254ecb85c42Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 6255ecb85c42Smrg found="yes" 6256ecb85c42Smrg fi 6257ecb85c42Smrg fi 6258ecb85c42Smrg 625961c899d4Smrg 626061c899d4Smrg 626161c899d4Smrg 626261c899d4Smrg 626361c899d4Smrg 626461c899d4Smrg 626561c899d4Smrg 626661c899d4Smrg 626761c899d4Smrg 626861c899d4Smrg 626961c899d4Smrg 627061c899d4Smrg 627161c899d4Smrg 627261c899d4Smrg 627361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 627461c899d4Smrg 627561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 627661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6278afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6279afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6280afb14e9bSmrgthen : 6281afb14e9bSmrg printf %s "(cached) " >&6 6282afb14e9bSmrgelse $as_nop 628361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 628461c899d4Smrg/* end confdefs.h. */ 628561c899d4Smrgint i; 628661c899d4Smrg_ACEOF 6287afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6288afb14e9bSmrgthen : 628961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6290afb14e9bSmrgelse $as_nop 629161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 629261c899d4Smrgfi 6293afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 629461c899d4Smrgfi 6295afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6296afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 629761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 629861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 629961c899d4Smrgfi 630061c899d4Smrg 630161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 630261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 630361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 630461c899d4Smrg fi 630561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6306afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6307afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6308afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6309afb14e9bSmrgthen : 6310afb14e9bSmrg printf %s "(cached) " >&6 6311afb14e9bSmrgelse $as_nop 631261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 631361c899d4Smrg/* end confdefs.h. */ 631461c899d4Smrgint i; 631561c899d4Smrg_ACEOF 6316afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6317afb14e9bSmrgthen : 631861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6319afb14e9bSmrgelse $as_nop 632061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 632161c899d4Smrgfi 6322afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 632361c899d4Smrgfi 6324afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6325afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 632661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 632761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 632861c899d4Smrgfi 632961c899d4Smrg 633061c899d4Smrgfound="no" 633161c899d4Smrg 633261c899d4Smrg if test $found = "no" ; then 6333ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 633461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 633561c899d4Smrg fi 633661c899d4Smrg 6337ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 633861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 633961c899d4Smrg fi 634061c899d4Smrg 634161c899d4Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 634261c899d4Smrg 6343afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6344afb14e9bSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 634561c899d4Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6346afb14e9bSmrg if eval test \${$cacheid+y} 6347afb14e9bSmrgthen : 6348afb14e9bSmrg printf %s "(cached) " >&6 6349afb14e9bSmrgelse $as_nop 635061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 635161c899d4Smrg/* end confdefs.h. */ 635261c899d4Smrgint i; 635361c899d4Smrgint 6354afb14e9bSmrgmain (void) 635561c899d4Smrg{ 635661c899d4Smrg 635761c899d4Smrg ; 635861c899d4Smrg return 0; 635961c899d4Smrg} 636061c899d4Smrg_ACEOF 6361afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6362afb14e9bSmrgthen : 636361c899d4Smrg eval $cacheid=yes 6364afb14e9bSmrgelse $as_nop 636561c899d4Smrg eval $cacheid=no 636661c899d4Smrgfi 6367afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 636861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 636961c899d4Smrgfi 637061c899d4Smrg 637161c899d4Smrg 637261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 637361c899d4Smrg 637461c899d4Smrg eval supported=\$$cacheid 6375afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6376afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 637761c899d4Smrg if test "$supported" = "yes" ; then 637861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 637961c899d4Smrg found="yes" 638061c899d4Smrg fi 638161c899d4Smrg fi 638261c899d4Smrg 638361c899d4Smrg 638461c899d4Smrg 638561c899d4Smrg 638661c899d4Smrg 638761c899d4Smrg# This chunk adds additional warnings that could catch undesired effects. 638861c899d4Smrg 638961c899d4Smrg 639061c899d4Smrg 639161c899d4Smrg 639261c899d4Smrg 639361c899d4Smrg 639461c899d4Smrg 639561c899d4Smrg 639661c899d4Smrg 639761c899d4Smrg 639861c899d4Smrg 639961c899d4Smrg 640061c899d4Smrg 640161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 640261c899d4Smrg 640361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 640461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6406afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6407afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6408afb14e9bSmrgthen : 6409afb14e9bSmrg printf %s "(cached) " >&6 6410afb14e9bSmrgelse $as_nop 641161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 641261c899d4Smrg/* end confdefs.h. */ 641361c899d4Smrgint i; 641461c899d4Smrg_ACEOF 6415afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6416afb14e9bSmrgthen : 641761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6418afb14e9bSmrgelse $as_nop 641961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 642061c899d4Smrgfi 6421afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 642261c899d4Smrgfi 6423afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6424afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 642561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 642661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 642761c899d4Smrgfi 642861c899d4Smrg 642961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 643061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 643161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 643261c899d4Smrg fi 643361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6434afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6435afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6436afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6437afb14e9bSmrgthen : 6438afb14e9bSmrg printf %s "(cached) " >&6 6439afb14e9bSmrgelse $as_nop 644061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 644161c899d4Smrg/* end confdefs.h. */ 644261c899d4Smrgint i; 644361c899d4Smrg_ACEOF 6444afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6445afb14e9bSmrgthen : 644661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6447afb14e9bSmrgelse $as_nop 644861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 644961c899d4Smrgfi 6450afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 645161c899d4Smrgfi 6452afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6453afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 645461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 645561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 645661c899d4Smrgfi 645761c899d4Smrg 645861c899d4Smrgfound="no" 645961c899d4Smrg 646061c899d4Smrg if test $found = "no" ; then 6461ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 646261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 646361c899d4Smrg fi 646461c899d4Smrg 6465ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 646661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 646761c899d4Smrg fi 646861c899d4Smrg 646961c899d4Smrg CFLAGS="$CFLAGS -Wunused" 647061c899d4Smrg 6471afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6472afb14e9bSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 647361c899d4Smrg cacheid=xorg_cv_cc_flag__Wunused 6474afb14e9bSmrg if eval test \${$cacheid+y} 6475afb14e9bSmrgthen : 6476afb14e9bSmrg printf %s "(cached) " >&6 6477afb14e9bSmrgelse $as_nop 647861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 647961c899d4Smrg/* end confdefs.h. */ 648061c899d4Smrgint i; 648161c899d4Smrgint 6482afb14e9bSmrgmain (void) 648361c899d4Smrg{ 648461c899d4Smrg 648561c899d4Smrg ; 648661c899d4Smrg return 0; 648761c899d4Smrg} 648861c899d4Smrg_ACEOF 6489afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6490afb14e9bSmrgthen : 649161c899d4Smrg eval $cacheid=yes 6492afb14e9bSmrgelse $as_nop 649361c899d4Smrg eval $cacheid=no 649461c899d4Smrgfi 6495afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 649661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 649761c899d4Smrgfi 649861c899d4Smrg 649961c899d4Smrg 650061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 650161c899d4Smrg 650261c899d4Smrg eval supported=\$$cacheid 6503afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6504afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 650561c899d4Smrg if test "$supported" = "yes" ; then 650661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 650761c899d4Smrg found="yes" 650861c899d4Smrg fi 650961c899d4Smrg fi 651061c899d4Smrg 651161c899d4Smrg 651261c899d4Smrg 651361c899d4Smrg 651461c899d4Smrg 651561c899d4Smrg 651661c899d4Smrg 651761c899d4Smrg 651861c899d4Smrg 651961c899d4Smrg 652061c899d4Smrg 652161c899d4Smrg 652261c899d4Smrg 652361c899d4Smrg 652461c899d4Smrg 652561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 652661c899d4Smrg 652761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 652861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6529afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6530afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6531afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6532afb14e9bSmrgthen : 6533afb14e9bSmrg printf %s "(cached) " >&6 6534afb14e9bSmrgelse $as_nop 653561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 653661c899d4Smrg/* end confdefs.h. */ 653761c899d4Smrgint i; 653861c899d4Smrg_ACEOF 6539afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6540afb14e9bSmrgthen : 654161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6542afb14e9bSmrgelse $as_nop 654361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 654461c899d4Smrgfi 6545afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 654661c899d4Smrgfi 6547afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6548afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 654961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 655061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 655161c899d4Smrgfi 655261c899d4Smrg 655361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 655461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 655561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655661c899d4Smrg fi 655761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6559afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6560afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6561afb14e9bSmrgthen : 6562afb14e9bSmrg printf %s "(cached) " >&6 6563afb14e9bSmrgelse $as_nop 656461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656561c899d4Smrg/* end confdefs.h. */ 656661c899d4Smrgint i; 656761c899d4Smrg_ACEOF 6568afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6569afb14e9bSmrgthen : 657061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6571afb14e9bSmrgelse $as_nop 657261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 657361c899d4Smrgfi 6574afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 657561c899d4Smrgfi 6576afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6577afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 657861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 657961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 658061c899d4Smrgfi 658161c899d4Smrg 658261c899d4Smrgfound="no" 658361c899d4Smrg 658461c899d4Smrg if test $found = "no" ; then 6585ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 658661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658761c899d4Smrg fi 658861c899d4Smrg 6589ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 659061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 659161c899d4Smrg fi 659261c899d4Smrg 659361c899d4Smrg CFLAGS="$CFLAGS -Wuninitialized" 659461c899d4Smrg 6595afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6596afb14e9bSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 659761c899d4Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6598afb14e9bSmrg if eval test \${$cacheid+y} 6599afb14e9bSmrgthen : 6600afb14e9bSmrg printf %s "(cached) " >&6 6601afb14e9bSmrgelse $as_nop 660261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 660361c899d4Smrg/* end confdefs.h. */ 660461c899d4Smrgint i; 660561c899d4Smrgint 6606afb14e9bSmrgmain (void) 660761c899d4Smrg{ 660861c899d4Smrg 660961c899d4Smrg ; 661061c899d4Smrg return 0; 661161c899d4Smrg} 661261c899d4Smrg_ACEOF 6613afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6614afb14e9bSmrgthen : 661561c899d4Smrg eval $cacheid=yes 6616afb14e9bSmrgelse $as_nop 661761c899d4Smrg eval $cacheid=no 661861c899d4Smrgfi 6619afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 662061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 662161c899d4Smrgfi 662261c899d4Smrg 662361c899d4Smrg 662461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 662561c899d4Smrg 662661c899d4Smrg eval supported=\$$cacheid 6627afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6628afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 662961c899d4Smrg if test "$supported" = "yes" ; then 663061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 663161c899d4Smrg found="yes" 663261c899d4Smrg fi 663361c899d4Smrg fi 663461c899d4Smrg 663561c899d4Smrg 663661c899d4Smrg 663761c899d4Smrg 663861c899d4Smrg 663961c899d4Smrg 664061c899d4Smrg 664161c899d4Smrg 664261c899d4Smrg 664361c899d4Smrg 664461c899d4Smrg 664561c899d4Smrg 664661c899d4Smrg 664761c899d4Smrg 664861c899d4Smrg 664961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 665061c899d4Smrg 665161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 665261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6654afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6655afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6656afb14e9bSmrgthen : 6657afb14e9bSmrg printf %s "(cached) " >&6 6658afb14e9bSmrgelse $as_nop 665961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 666061c899d4Smrg/* end confdefs.h. */ 666161c899d4Smrgint i; 666261c899d4Smrg_ACEOF 6663afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6664afb14e9bSmrgthen : 666561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6666afb14e9bSmrgelse $as_nop 666761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 666861c899d4Smrgfi 6669afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 667061c899d4Smrgfi 6671afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6672afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 667361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 667461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 667561c899d4Smrgfi 667661c899d4Smrg 667761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 667861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 667961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 668061c899d4Smrg fi 668161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6682afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6683afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6684afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6685afb14e9bSmrgthen : 6686afb14e9bSmrg printf %s "(cached) " >&6 6687afb14e9bSmrgelse $as_nop 668861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 668961c899d4Smrg/* end confdefs.h. */ 669061c899d4Smrgint i; 669161c899d4Smrg_ACEOF 6692afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6693afb14e9bSmrgthen : 669461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6695afb14e9bSmrgelse $as_nop 669661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 669761c899d4Smrgfi 6698afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 669961c899d4Smrgfi 6700afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6701afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 670261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 670361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 670461c899d4Smrgfi 670561c899d4Smrg 670661c899d4Smrgfound="no" 670761c899d4Smrg 670861c899d4Smrg if test $found = "no" ; then 6709ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 671061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 671161c899d4Smrg fi 671261c899d4Smrg 6713ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 671461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 671561c899d4Smrg fi 671661c899d4Smrg 671761c899d4Smrg CFLAGS="$CFLAGS -Wshadow" 671861c899d4Smrg 6719afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6720afb14e9bSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 672161c899d4Smrg cacheid=xorg_cv_cc_flag__Wshadow 6722afb14e9bSmrg if eval test \${$cacheid+y} 6723afb14e9bSmrgthen : 6724afb14e9bSmrg printf %s "(cached) " >&6 6725afb14e9bSmrgelse $as_nop 672661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 672761c899d4Smrg/* end confdefs.h. */ 672861c899d4Smrgint i; 672961c899d4Smrgint 6730afb14e9bSmrgmain (void) 673161c899d4Smrg{ 673261c899d4Smrg 673361c899d4Smrg ; 673461c899d4Smrg return 0; 673561c899d4Smrg} 673661c899d4Smrg_ACEOF 6737afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6738afb14e9bSmrgthen : 673961c899d4Smrg eval $cacheid=yes 6740afb14e9bSmrgelse $as_nop 674161c899d4Smrg eval $cacheid=no 674261c899d4Smrgfi 6743afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 674461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 674561c899d4Smrgfi 674661c899d4Smrg 674761c899d4Smrg 674861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 674961c899d4Smrg 675061c899d4Smrg eval supported=\$$cacheid 6751afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6752afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 675361c899d4Smrg if test "$supported" = "yes" ; then 675461c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 675561c899d4Smrg found="yes" 675661c899d4Smrg fi 675761c899d4Smrg fi 675861c899d4Smrg 675961c899d4Smrg 676061c899d4Smrg 676161c899d4Smrg 676261c899d4Smrg 676361c899d4Smrg 676461c899d4Smrg 676561c899d4Smrg 676661c899d4Smrg 676761c899d4Smrg 676861c899d4Smrg 676961c899d4Smrg 677061c899d4Smrg 677161c899d4Smrg 677261c899d4Smrg 677361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 677461c899d4Smrg 677561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 677661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6778afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6779afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6780afb14e9bSmrgthen : 6781afb14e9bSmrg printf %s "(cached) " >&6 6782afb14e9bSmrgelse $as_nop 678361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 678461c899d4Smrg/* end confdefs.h. */ 678561c899d4Smrgint i; 678661c899d4Smrg_ACEOF 6787afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6788afb14e9bSmrgthen : 678961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6790afb14e9bSmrgelse $as_nop 679161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 679261c899d4Smrgfi 6793afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 679461c899d4Smrgfi 6795afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6796afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 679761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 679861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 679961c899d4Smrgfi 680061c899d4Smrg 680161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 680261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 680361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 680461c899d4Smrg fi 680561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6806afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6807afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6808afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6809afb14e9bSmrgthen : 6810afb14e9bSmrg printf %s "(cached) " >&6 6811afb14e9bSmrgelse $as_nop 681261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 681361c899d4Smrg/* end confdefs.h. */ 681461c899d4Smrgint i; 681561c899d4Smrg_ACEOF 6816afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6817afb14e9bSmrgthen : 681861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6819afb14e9bSmrgelse $as_nop 682061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 682161c899d4Smrgfi 6822afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 682361c899d4Smrgfi 6824afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6825afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 682661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 682761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 682861c899d4Smrgfi 682961c899d4Smrg 683061c899d4Smrgfound="no" 683161c899d4Smrg 683261c899d4Smrg if test $found = "no" ; then 6833ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 683461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 683561c899d4Smrg fi 683661c899d4Smrg 6837ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 683861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 683961c899d4Smrg fi 684061c899d4Smrg 6841ecb85c42Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 684261c899d4Smrg 6843afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6844afb14e9bSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6845ecb85c42Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6846afb14e9bSmrg if eval test \${$cacheid+y} 6847afb14e9bSmrgthen : 6848afb14e9bSmrg printf %s "(cached) " >&6 6849afb14e9bSmrgelse $as_nop 685061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 685161c899d4Smrg/* end confdefs.h. */ 685261c899d4Smrgint i; 685361c899d4Smrgint 6854afb14e9bSmrgmain (void) 685561c899d4Smrg{ 685661c899d4Smrg 685761c899d4Smrg ; 685861c899d4Smrg return 0; 685961c899d4Smrg} 686061c899d4Smrg_ACEOF 6861afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6862afb14e9bSmrgthen : 686361c899d4Smrg eval $cacheid=yes 6864afb14e9bSmrgelse $as_nop 686561c899d4Smrg eval $cacheid=no 686661c899d4Smrgfi 6867afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 686861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 686961c899d4Smrgfi 687061c899d4Smrg 687161c899d4Smrg 687261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 687361c899d4Smrg 687461c899d4Smrg eval supported=\$$cacheid 6875afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6876afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 687761c899d4Smrg if test "$supported" = "yes" ; then 6878ecb85c42Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 687961c899d4Smrg found="yes" 688061c899d4Smrg fi 688161c899d4Smrg fi 688261c899d4Smrg 688361c899d4Smrg 688461c899d4Smrg 688561c899d4Smrg 688661c899d4Smrg 688761c899d4Smrg 688861c899d4Smrg 688961c899d4Smrg 689061c899d4Smrg 689161c899d4Smrg 689261c899d4Smrg 689361c899d4Smrg 689461c899d4Smrg 689561c899d4Smrg 689661c899d4Smrg 689761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 689861c899d4Smrg 689961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 690061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6901afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6902afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6903afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6904afb14e9bSmrgthen : 6905afb14e9bSmrg printf %s "(cached) " >&6 6906afb14e9bSmrgelse $as_nop 690761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 690861c899d4Smrg/* end confdefs.h. */ 690961c899d4Smrgint i; 691061c899d4Smrg_ACEOF 6911afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6912afb14e9bSmrgthen : 691361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6914afb14e9bSmrgelse $as_nop 691561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 691661c899d4Smrgfi 6917afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 691861c899d4Smrgfi 6919afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6920afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 692161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 692261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 692361c899d4Smrgfi 692461c899d4Smrg 692561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 692661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 692761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 692861c899d4Smrg fi 692961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6931afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6932afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6933afb14e9bSmrgthen : 6934afb14e9bSmrg printf %s "(cached) " >&6 6935afb14e9bSmrgelse $as_nop 693661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 693761c899d4Smrg/* end confdefs.h. */ 693861c899d4Smrgint i; 693961c899d4Smrg_ACEOF 6940afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 6941afb14e9bSmrgthen : 694261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6943afb14e9bSmrgelse $as_nop 694461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 694561c899d4Smrgfi 6946afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 694761c899d4Smrgfi 6948afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6949afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 695061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 695161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 695261c899d4Smrgfi 695361c899d4Smrg 695461c899d4Smrgfound="no" 695561c899d4Smrg 695661c899d4Smrg if test $found = "no" ; then 6957ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 695861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 695961c899d4Smrg fi 696061c899d4Smrg 6961ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 696261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 696361c899d4Smrg fi 696461c899d4Smrg 6965ecb85c42Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 696661c899d4Smrg 6967afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6968afb14e9bSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6969ecb85c42Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6970afb14e9bSmrg if eval test \${$cacheid+y} 6971afb14e9bSmrgthen : 6972afb14e9bSmrg printf %s "(cached) " >&6 6973afb14e9bSmrgelse $as_nop 697461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 697561c899d4Smrg/* end confdefs.h. */ 697661c899d4Smrgint i; 697761c899d4Smrgint 6978afb14e9bSmrgmain (void) 697961c899d4Smrg{ 698061c899d4Smrg 698161c899d4Smrg ; 698261c899d4Smrg return 0; 698361c899d4Smrg} 698461c899d4Smrg_ACEOF 6985afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 6986afb14e9bSmrgthen : 698761c899d4Smrg eval $cacheid=yes 6988afb14e9bSmrgelse $as_nop 698961c899d4Smrg eval $cacheid=no 699061c899d4Smrgfi 6991afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 699261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 699361c899d4Smrgfi 699461c899d4Smrg 699561c899d4Smrg 699661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 699761c899d4Smrg 699861c899d4Smrg eval supported=\$$cacheid 6999afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7000afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 700161c899d4Smrg if test "$supported" = "yes" ; then 7002ecb85c42Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 700361c899d4Smrg found="yes" 700461c899d4Smrg fi 700561c899d4Smrg fi 700661c899d4Smrg 700761c899d4Smrg 700861c899d4Smrg 700961c899d4Smrg 701061c899d4Smrg 701161c899d4Smrg 701261c899d4Smrg 701361c899d4Smrg 701461c899d4Smrg 701561c899d4Smrg 701661c899d4Smrg 701761c899d4Smrg 701861c899d4Smrg 701961c899d4Smrg 702061c899d4Smrg 702161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 702261c899d4Smrg 702361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 702461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7025afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7026afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7027afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7028afb14e9bSmrgthen : 7029afb14e9bSmrg printf %s "(cached) " >&6 7030afb14e9bSmrgelse $as_nop 703161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 703261c899d4Smrg/* end confdefs.h. */ 703361c899d4Smrgint i; 703461c899d4Smrg_ACEOF 7035afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7036afb14e9bSmrgthen : 703761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7038afb14e9bSmrgelse $as_nop 703961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 704061c899d4Smrgfi 7041afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 704261c899d4Smrgfi 7043afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7044afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 704561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 704661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 704761c899d4Smrgfi 704861c899d4Smrg 704961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 705061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 705161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 705261c899d4Smrg fi 705361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7054afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7055afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7056afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7057afb14e9bSmrgthen : 7058afb14e9bSmrg printf %s "(cached) " >&6 7059afb14e9bSmrgelse $as_nop 706061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 706161c899d4Smrg/* end confdefs.h. */ 706261c899d4Smrgint i; 706361c899d4Smrg_ACEOF 7064afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7065afb14e9bSmrgthen : 706661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7067afb14e9bSmrgelse $as_nop 706861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 706961c899d4Smrgfi 7070afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 707161c899d4Smrgfi 7072afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7073afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 707461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 707561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 707661c899d4Smrgfi 707761c899d4Smrg 707861c899d4Smrgfound="no" 707961c899d4Smrg 708061c899d4Smrg if test $found = "no" ; then 7081ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 708261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 708361c899d4Smrg fi 708461c899d4Smrg 7085ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 708661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 708761c899d4Smrg fi 708861c899d4Smrg 7089ecb85c42Smrg CFLAGS="$CFLAGS -Wredundant-decls" 709061c899d4Smrg 7091afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7092afb14e9bSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7093ecb85c42Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 7094afb14e9bSmrg if eval test \${$cacheid+y} 7095afb14e9bSmrgthen : 7096afb14e9bSmrg printf %s "(cached) " >&6 7097afb14e9bSmrgelse $as_nop 709861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 709961c899d4Smrg/* end confdefs.h. */ 710061c899d4Smrgint i; 710161c899d4Smrgint 7102afb14e9bSmrgmain (void) 710361c899d4Smrg{ 710461c899d4Smrg 710561c899d4Smrg ; 710661c899d4Smrg return 0; 710761c899d4Smrg} 710861c899d4Smrg_ACEOF 7109afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7110afb14e9bSmrgthen : 711161c899d4Smrg eval $cacheid=yes 7112afb14e9bSmrgelse $as_nop 711361c899d4Smrg eval $cacheid=no 711461c899d4Smrgfi 7115afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 711661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 711761c899d4Smrgfi 711861c899d4Smrg 711961c899d4Smrg 712061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 712161c899d4Smrg 712261c899d4Smrg eval supported=\$$cacheid 7123afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7124afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 712561c899d4Smrg if test "$supported" = "yes" ; then 7126ecb85c42Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 712761c899d4Smrg found="yes" 712861c899d4Smrg fi 712961c899d4Smrg fi 713061c899d4Smrg 713161c899d4Smrg 713261c899d4Smrg 713361c899d4Smrg 713461c899d4Smrg 713561c899d4Smrg 713661c899d4Smrg 713761c899d4Smrg 713861c899d4Smrg 713961c899d4Smrg 714061c899d4Smrg 714161c899d4Smrg 714261c899d4Smrg 714361c899d4Smrg 714461c899d4Smrg 714561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 714661c899d4Smrg 714761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 714861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7149afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7150afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7151afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7152afb14e9bSmrgthen : 7153afb14e9bSmrg printf %s "(cached) " >&6 7154afb14e9bSmrgelse $as_nop 715561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 715661c899d4Smrg/* end confdefs.h. */ 715761c899d4Smrgint i; 715861c899d4Smrg_ACEOF 7159afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7160afb14e9bSmrgthen : 716161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7162afb14e9bSmrgelse $as_nop 716361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 716461c899d4Smrgfi 7165afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 716661c899d4Smrgfi 7167afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7168afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 716961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 717061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 717161c899d4Smrgfi 717261c899d4Smrg 717361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 717461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 717561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 717661c899d4Smrg fi 717761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7179afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7180afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7181afb14e9bSmrgthen : 7182afb14e9bSmrg printf %s "(cached) " >&6 7183afb14e9bSmrgelse $as_nop 718461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 718561c899d4Smrg/* end confdefs.h. */ 718661c899d4Smrgint i; 718761c899d4Smrg_ACEOF 7188afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7189afb14e9bSmrgthen : 719061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7191afb14e9bSmrgelse $as_nop 719261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 719361c899d4Smrgfi 7194afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 719561c899d4Smrgfi 7196afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7197afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 719861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 719961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 720061c899d4Smrgfi 720161c899d4Smrg 720261c899d4Smrgfound="no" 720361c899d4Smrg 720461c899d4Smrg if test $found = "no" ; then 7205ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 720661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 720761c899d4Smrg fi 720861c899d4Smrg 7209ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 721061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 721161c899d4Smrg fi 721261c899d4Smrg 7213ecb85c42Smrg CFLAGS="$CFLAGS -Wlogical-op" 721461c899d4Smrg 7215afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7216afb14e9bSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 7217ecb85c42Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 7218afb14e9bSmrg if eval test \${$cacheid+y} 7219afb14e9bSmrgthen : 7220afb14e9bSmrg printf %s "(cached) " >&6 7221afb14e9bSmrgelse $as_nop 722261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 722361c899d4Smrg/* end confdefs.h. */ 722461c899d4Smrgint i; 722561c899d4Smrgint 7226afb14e9bSmrgmain (void) 722761c899d4Smrg{ 722861c899d4Smrg 722961c899d4Smrg ; 723061c899d4Smrg return 0; 723161c899d4Smrg} 723261c899d4Smrg_ACEOF 7233afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7234afb14e9bSmrgthen : 723561c899d4Smrg eval $cacheid=yes 7236afb14e9bSmrgelse $as_nop 723761c899d4Smrg eval $cacheid=no 723861c899d4Smrgfi 7239afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 724061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 724161c899d4Smrgfi 724261c899d4Smrg 724361c899d4Smrg 724461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 724561c899d4Smrg 724661c899d4Smrg eval supported=\$$cacheid 7247afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7248afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 724961c899d4Smrg if test "$supported" = "yes" ; then 7250ecb85c42Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 725161c899d4Smrg found="yes" 725261c899d4Smrg fi 725361c899d4Smrg fi 725461c899d4Smrg 725561c899d4Smrg 725661c899d4Smrg 725761c899d4Smrg# These are currently disabled because they are noisy. They will be enabled 725861c899d4Smrg# in the future once the codebase is sufficiently modernized to silence 725961c899d4Smrg# them. For now, I don't want them to drown out the other warnings. 726061c899d4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 726161c899d4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7262ecb85c42Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 726361c899d4Smrg 726461c899d4Smrg# Turn some warnings into errors, so we don't accidently get successful builds 726561c899d4Smrg# when there are problems that should be fixed. 726661c899d4Smrg 726761c899d4Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 726861c899d4Smrg 726961c899d4Smrg 727061c899d4Smrg 727161c899d4Smrg 727261c899d4Smrg 727361c899d4Smrg 727461c899d4Smrg 727561c899d4Smrg 727661c899d4Smrg 727761c899d4Smrg 727861c899d4Smrg 727961c899d4Smrg 728061c899d4Smrg 728161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 728261c899d4Smrg 728361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 728461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7285afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7286afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7287afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7288afb14e9bSmrgthen : 7289afb14e9bSmrg printf %s "(cached) " >&6 7290afb14e9bSmrgelse $as_nop 729161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 729261c899d4Smrg/* end confdefs.h. */ 729361c899d4Smrgint i; 729461c899d4Smrg_ACEOF 7295afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7296afb14e9bSmrgthen : 729761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7298afb14e9bSmrgelse $as_nop 729961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 730061c899d4Smrgfi 7301afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 730261c899d4Smrgfi 7303afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7304afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 730561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 730661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 730761c899d4Smrgfi 730861c899d4Smrg 730961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 731061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 731161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 731261c899d4Smrg fi 731361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7314afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7315afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7316afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7317afb14e9bSmrgthen : 7318afb14e9bSmrg printf %s "(cached) " >&6 7319afb14e9bSmrgelse $as_nop 732061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 732161c899d4Smrg/* end confdefs.h. */ 732261c899d4Smrgint i; 732361c899d4Smrg_ACEOF 7324afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7325afb14e9bSmrgthen : 732661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7327afb14e9bSmrgelse $as_nop 732861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 732961c899d4Smrgfi 7330afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 733161c899d4Smrgfi 7332afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7333afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 733461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 733561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 733661c899d4Smrgfi 733761c899d4Smrg 733861c899d4Smrgfound="no" 733961c899d4Smrg 734061c899d4Smrg if test $found = "no" ; then 7341ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 734261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 734361c899d4Smrg fi 734461c899d4Smrg 7345ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 734661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 734761c899d4Smrg fi 734861c899d4Smrg 734961c899d4Smrg CFLAGS="$CFLAGS -Werror=implicit" 735061c899d4Smrg 7351afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7352afb14e9bSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 7353afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 7354afb14e9bSmrg if eval test \${$cacheid+y} 7355afb14e9bSmrgthen : 7356afb14e9bSmrg printf %s "(cached) " >&6 7357afb14e9bSmrgelse $as_nop 735861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 735961c899d4Smrg/* end confdefs.h. */ 736061c899d4Smrgint i; 736161c899d4Smrgint 7362afb14e9bSmrgmain (void) 736361c899d4Smrg{ 736461c899d4Smrg 736561c899d4Smrg ; 736661c899d4Smrg return 0; 736761c899d4Smrg} 736861c899d4Smrg_ACEOF 7369afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7370afb14e9bSmrgthen : 737161c899d4Smrg eval $cacheid=yes 7372afb14e9bSmrgelse $as_nop 737361c899d4Smrg eval $cacheid=no 737461c899d4Smrgfi 7375afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 737661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 737761c899d4Smrgfi 737861c899d4Smrg 737961c899d4Smrg 738061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 738161c899d4Smrg 738261c899d4Smrg eval supported=\$$cacheid 7383afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7384afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 738561c899d4Smrg if test "$supported" = "yes" ; then 738661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 738761c899d4Smrg found="yes" 738861c899d4Smrg fi 738961c899d4Smrg fi 739061c899d4Smrg 739161c899d4Smrg if test $found = "no" ; then 7392ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 739361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 739461c899d4Smrg fi 739561c899d4Smrg 7396ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 739761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 739861c899d4Smrg fi 739961c899d4Smrg 740061c899d4Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 740161c899d4Smrg 7402afb14e9bSmrg { 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 7403afb14e9bSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7404afb14e9bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7405afb14e9bSmrg if eval test \${$cacheid+y} 7406afb14e9bSmrgthen : 7407afb14e9bSmrg printf %s "(cached) " >&6 7408afb14e9bSmrgelse $as_nop 740961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 741061c899d4Smrg/* end confdefs.h. */ 741161c899d4Smrgint i; 741261c899d4Smrgint 7413afb14e9bSmrgmain (void) 741461c899d4Smrg{ 741561c899d4Smrg 741661c899d4Smrg ; 741761c899d4Smrg return 0; 741861c899d4Smrg} 741961c899d4Smrg_ACEOF 7420afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7421afb14e9bSmrgthen : 742261c899d4Smrg eval $cacheid=yes 7423afb14e9bSmrgelse $as_nop 742461c899d4Smrg eval $cacheid=no 742561c899d4Smrgfi 7426afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 742761c899d4Smrg conftest$ac_exeext conftest.$ac_ext 742861c899d4Smrgfi 742961c899d4Smrg 743061c899d4Smrg 743161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 743261c899d4Smrg 743361c899d4Smrg eval supported=\$$cacheid 7434afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7435afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 743661c899d4Smrg if test "$supported" = "yes" ; then 743761c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 743861c899d4Smrg found="yes" 743961c899d4Smrg fi 744061c899d4Smrg fi 744161c899d4Smrg 744261c899d4Smrg 744361c899d4Smrg 744461c899d4Smrg 744561c899d4Smrg 744661c899d4Smrg 744761c899d4Smrg 744861c899d4Smrg 744961c899d4Smrg 745061c899d4Smrg 745161c899d4Smrg 745261c899d4Smrg 745361c899d4Smrg 745461c899d4Smrg 745561c899d4Smrg 745661c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 745761c899d4Smrg 745861c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 745961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7460afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7461afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7462afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7463afb14e9bSmrgthen : 7464afb14e9bSmrg printf %s "(cached) " >&6 7465afb14e9bSmrgelse $as_nop 746661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 746761c899d4Smrg/* end confdefs.h. */ 746861c899d4Smrgint i; 746961c899d4Smrg_ACEOF 7470afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7471afb14e9bSmrgthen : 747261c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7473afb14e9bSmrgelse $as_nop 747461c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 747561c899d4Smrgfi 7476afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 747761c899d4Smrgfi 7478afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7479afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 748061c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 748161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 748261c899d4Smrgfi 748361c899d4Smrg 748461c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 748561c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 748661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 748761c899d4Smrg fi 748861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7489afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7490afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7491afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7492afb14e9bSmrgthen : 7493afb14e9bSmrg printf %s "(cached) " >&6 7494afb14e9bSmrgelse $as_nop 749561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 749661c899d4Smrg/* end confdefs.h. */ 749761c899d4Smrgint i; 749861c899d4Smrg_ACEOF 7499afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7500afb14e9bSmrgthen : 750161c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7502afb14e9bSmrgelse $as_nop 750361c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 750461c899d4Smrgfi 7505afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 750661c899d4Smrgfi 7507afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7508afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 750961c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 751061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 751161c899d4Smrgfi 751261c899d4Smrg 751361c899d4Smrgfound="no" 751461c899d4Smrg 751561c899d4Smrg if test $found = "no" ; then 7516ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 751761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 751861c899d4Smrg fi 751961c899d4Smrg 7520ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 752161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 752261c899d4Smrg fi 752361c899d4Smrg 752461c899d4Smrg CFLAGS="$CFLAGS -Werror=nonnull" 752561c899d4Smrg 7526afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7527afb14e9bSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7528afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7529afb14e9bSmrg if eval test \${$cacheid+y} 7530afb14e9bSmrgthen : 7531afb14e9bSmrg printf %s "(cached) " >&6 7532afb14e9bSmrgelse $as_nop 753361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 753461c899d4Smrg/* end confdefs.h. */ 753561c899d4Smrgint i; 753661c899d4Smrgint 7537afb14e9bSmrgmain (void) 753861c899d4Smrg{ 753961c899d4Smrg 754061c899d4Smrg ; 754161c899d4Smrg return 0; 754261c899d4Smrg} 754361c899d4Smrg_ACEOF 7544afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7545afb14e9bSmrgthen : 754661c899d4Smrg eval $cacheid=yes 7547afb14e9bSmrgelse $as_nop 754861c899d4Smrg eval $cacheid=no 754961c899d4Smrgfi 7550afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 755161c899d4Smrg conftest$ac_exeext conftest.$ac_ext 755261c899d4Smrgfi 755361c899d4Smrg 755461c899d4Smrg 755561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 755661c899d4Smrg 755761c899d4Smrg eval supported=\$$cacheid 7558afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7559afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 756061c899d4Smrg if test "$supported" = "yes" ; then 756161c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 756261c899d4Smrg found="yes" 756361c899d4Smrg fi 756461c899d4Smrg fi 756561c899d4Smrg 756661c899d4Smrg 756761c899d4Smrg 756861c899d4Smrg 756961c899d4Smrg 757061c899d4Smrg 757161c899d4Smrg 757261c899d4Smrg 757361c899d4Smrg 757461c899d4Smrg 757561c899d4Smrg 757661c899d4Smrg 757761c899d4Smrg 757861c899d4Smrg 757961c899d4Smrg 758061c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 758161c899d4Smrg 758261c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 758361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7584afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7585afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7586afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7587afb14e9bSmrgthen : 7588afb14e9bSmrg printf %s "(cached) " >&6 7589afb14e9bSmrgelse $as_nop 759061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 759161c899d4Smrg/* end confdefs.h. */ 759261c899d4Smrgint i; 759361c899d4Smrg_ACEOF 7594afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7595afb14e9bSmrgthen : 759661c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7597afb14e9bSmrgelse $as_nop 759861c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 759961c899d4Smrgfi 7600afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 760161c899d4Smrgfi 7602afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7603afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 760461c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 760561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 760661c899d4Smrgfi 760761c899d4Smrg 760861c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 760961c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 761061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 761161c899d4Smrg fi 761261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7613afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7614afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7615afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7616afb14e9bSmrgthen : 7617afb14e9bSmrg printf %s "(cached) " >&6 7618afb14e9bSmrgelse $as_nop 761961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 762061c899d4Smrg/* end confdefs.h. */ 762161c899d4Smrgint i; 762261c899d4Smrg_ACEOF 7623afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7624afb14e9bSmrgthen : 762561c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7626afb14e9bSmrgelse $as_nop 762761c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 762861c899d4Smrgfi 7629afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 763061c899d4Smrgfi 7631afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7632afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 763361c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 763461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 763561c899d4Smrgfi 763661c899d4Smrg 763761c899d4Smrgfound="no" 763861c899d4Smrg 763961c899d4Smrg if test $found = "no" ; then 7640ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 764161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 764261c899d4Smrg fi 764361c899d4Smrg 7644ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 764561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 764661c899d4Smrg fi 764761c899d4Smrg 764861c899d4Smrg CFLAGS="$CFLAGS -Werror=init-self" 764961c899d4Smrg 7650afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7651afb14e9bSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 7652afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 7653afb14e9bSmrg if eval test \${$cacheid+y} 7654afb14e9bSmrgthen : 7655afb14e9bSmrg printf %s "(cached) " >&6 7656afb14e9bSmrgelse $as_nop 765761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 765861c899d4Smrg/* end confdefs.h. */ 765961c899d4Smrgint i; 766061c899d4Smrgint 7661afb14e9bSmrgmain (void) 766261c899d4Smrg{ 766361c899d4Smrg 766461c899d4Smrg ; 766561c899d4Smrg return 0; 766661c899d4Smrg} 766761c899d4Smrg_ACEOF 7668afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7669afb14e9bSmrgthen : 767061c899d4Smrg eval $cacheid=yes 7671afb14e9bSmrgelse $as_nop 767261c899d4Smrg eval $cacheid=no 767361c899d4Smrgfi 7674afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 767561c899d4Smrg conftest$ac_exeext conftest.$ac_ext 767661c899d4Smrgfi 767761c899d4Smrg 767861c899d4Smrg 767961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 768061c899d4Smrg 768161c899d4Smrg eval supported=\$$cacheid 7682afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7683afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 768461c899d4Smrg if test "$supported" = "yes" ; then 768561c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 768661c899d4Smrg found="yes" 768761c899d4Smrg fi 768861c899d4Smrg fi 768961c899d4Smrg 769061c899d4Smrg 769161c899d4Smrg 769261c899d4Smrg 769361c899d4Smrg 769461c899d4Smrg 769561c899d4Smrg 769661c899d4Smrg 769761c899d4Smrg 769861c899d4Smrg 769961c899d4Smrg 770061c899d4Smrg 770161c899d4Smrg 770261c899d4Smrg 770361c899d4Smrg 770461c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 770561c899d4Smrg 770661c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 770761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7709afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7710afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7711afb14e9bSmrgthen : 7712afb14e9bSmrg printf %s "(cached) " >&6 7713afb14e9bSmrgelse $as_nop 771461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 771561c899d4Smrg/* end confdefs.h. */ 771661c899d4Smrgint i; 771761c899d4Smrg_ACEOF 7718afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7719afb14e9bSmrgthen : 772061c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7721afb14e9bSmrgelse $as_nop 772261c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 772361c899d4Smrgfi 7724afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 772561c899d4Smrgfi 7726afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7727afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 772861c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 772961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 773061c899d4Smrgfi 773161c899d4Smrg 773261c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 773361c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 773461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 773561c899d4Smrg fi 773661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7737afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7738afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7739afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7740afb14e9bSmrgthen : 7741afb14e9bSmrg printf %s "(cached) " >&6 7742afb14e9bSmrgelse $as_nop 774361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 774461c899d4Smrg/* end confdefs.h. */ 774561c899d4Smrgint i; 774661c899d4Smrg_ACEOF 7747afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7748afb14e9bSmrgthen : 774961c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7750afb14e9bSmrgelse $as_nop 775161c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 775261c899d4Smrgfi 7753afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 775461c899d4Smrgfi 7755afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7756afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 775761c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 775861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 775961c899d4Smrgfi 776061c899d4Smrg 776161c899d4Smrgfound="no" 776261c899d4Smrg 776361c899d4Smrg if test $found = "no" ; then 7764ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 776561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 776661c899d4Smrg fi 776761c899d4Smrg 7768ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 776961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 777061c899d4Smrg fi 777161c899d4Smrg 777261c899d4Smrg CFLAGS="$CFLAGS -Werror=main" 777361c899d4Smrg 7774afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7775afb14e9bSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 7776afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_main 7777afb14e9bSmrg if eval test \${$cacheid+y} 7778afb14e9bSmrgthen : 7779afb14e9bSmrg printf %s "(cached) " >&6 7780afb14e9bSmrgelse $as_nop 778161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 778261c899d4Smrg/* end confdefs.h. */ 778361c899d4Smrgint i; 778461c899d4Smrgint 7785afb14e9bSmrgmain (void) 778661c899d4Smrg{ 778761c899d4Smrg 778861c899d4Smrg ; 778961c899d4Smrg return 0; 779061c899d4Smrg} 779161c899d4Smrg_ACEOF 7792afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7793afb14e9bSmrgthen : 779461c899d4Smrg eval $cacheid=yes 7795afb14e9bSmrgelse $as_nop 779661c899d4Smrg eval $cacheid=no 779761c899d4Smrgfi 7798afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 779961c899d4Smrg conftest$ac_exeext conftest.$ac_ext 780061c899d4Smrgfi 780161c899d4Smrg 780261c899d4Smrg 780361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 780461c899d4Smrg 780561c899d4Smrg eval supported=\$$cacheid 7806afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7807afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 780861c899d4Smrg if test "$supported" = "yes" ; then 780961c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 781061c899d4Smrg found="yes" 781161c899d4Smrg fi 781261c899d4Smrg fi 781361c899d4Smrg 781461c899d4Smrg 781561c899d4Smrg 781661c899d4Smrg 781761c899d4Smrg 781861c899d4Smrg 781961c899d4Smrg 782061c899d4Smrg 782161c899d4Smrg 782261c899d4Smrg 782361c899d4Smrg 782461c899d4Smrg 782561c899d4Smrg 782661c899d4Smrg 782761c899d4Smrg 782861c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 782961c899d4Smrg 783061c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 783161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7833afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7834afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7835afb14e9bSmrgthen : 7836afb14e9bSmrg printf %s "(cached) " >&6 7837afb14e9bSmrgelse $as_nop 783861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 783961c899d4Smrg/* end confdefs.h. */ 784061c899d4Smrgint i; 784161c899d4Smrg_ACEOF 7842afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7843afb14e9bSmrgthen : 784461c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7845afb14e9bSmrgelse $as_nop 784661c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 784761c899d4Smrgfi 7848afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 784961c899d4Smrgfi 7850afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7851afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 785261c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 785361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 785461c899d4Smrgfi 785561c899d4Smrg 785661c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 785761c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 785861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 785961c899d4Smrg fi 786061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7862afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7863afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7864afb14e9bSmrgthen : 7865afb14e9bSmrg printf %s "(cached) " >&6 7866afb14e9bSmrgelse $as_nop 786761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 786861c899d4Smrg/* end confdefs.h. */ 786961c899d4Smrgint i; 787061c899d4Smrg_ACEOF 7871afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7872afb14e9bSmrgthen : 787361c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7874afb14e9bSmrgelse $as_nop 787561c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 787661c899d4Smrgfi 7877afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 787861c899d4Smrgfi 7879afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7880afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 788161c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 788261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 788361c899d4Smrgfi 788461c899d4Smrg 788561c899d4Smrgfound="no" 788661c899d4Smrg 788761c899d4Smrg if test $found = "no" ; then 7888ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 788961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 789061c899d4Smrg fi 789161c899d4Smrg 7892ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 789361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 789461c899d4Smrg fi 789561c899d4Smrg 789661c899d4Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 789761c899d4Smrg 7898afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7899afb14e9bSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7900afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7901afb14e9bSmrg if eval test \${$cacheid+y} 7902afb14e9bSmrgthen : 7903afb14e9bSmrg printf %s "(cached) " >&6 7904afb14e9bSmrgelse $as_nop 790561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 790661c899d4Smrg/* end confdefs.h. */ 790761c899d4Smrgint i; 790861c899d4Smrgint 7909afb14e9bSmrgmain (void) 791061c899d4Smrg{ 791161c899d4Smrg 791261c899d4Smrg ; 791361c899d4Smrg return 0; 791461c899d4Smrg} 791561c899d4Smrg_ACEOF 7916afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 7917afb14e9bSmrgthen : 791861c899d4Smrg eval $cacheid=yes 7919afb14e9bSmrgelse $as_nop 792061c899d4Smrg eval $cacheid=no 792161c899d4Smrgfi 7922afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 792361c899d4Smrg conftest$ac_exeext conftest.$ac_ext 792461c899d4Smrgfi 792561c899d4Smrg 792661c899d4Smrg 792761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 792861c899d4Smrg 792961c899d4Smrg eval supported=\$$cacheid 7930afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7931afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 793261c899d4Smrg if test "$supported" = "yes" ; then 793361c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 793461c899d4Smrg found="yes" 793561c899d4Smrg fi 793661c899d4Smrg fi 793761c899d4Smrg 793861c899d4Smrg 793961c899d4Smrg 794061c899d4Smrg 794161c899d4Smrg 794261c899d4Smrg 794361c899d4Smrg 794461c899d4Smrg 794561c899d4Smrg 794661c899d4Smrg 794761c899d4Smrg 794861c899d4Smrg 794961c899d4Smrg 795061c899d4Smrg 795161c899d4Smrg 795261c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 795361c899d4Smrg 795461c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 795561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7956afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7957afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7958afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7959afb14e9bSmrgthen : 7960afb14e9bSmrg printf %s "(cached) " >&6 7961afb14e9bSmrgelse $as_nop 796261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 796361c899d4Smrg/* end confdefs.h. */ 796461c899d4Smrgint i; 796561c899d4Smrg_ACEOF 7966afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7967afb14e9bSmrgthen : 796861c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7969afb14e9bSmrgelse $as_nop 797061c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 797161c899d4Smrgfi 7972afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 797361c899d4Smrgfi 7974afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7975afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 797661c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 797761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 797861c899d4Smrgfi 797961c899d4Smrg 798061c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 798161c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 798261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 798361c899d4Smrg fi 798461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7985afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7986afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7987afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7988afb14e9bSmrgthen : 7989afb14e9bSmrg printf %s "(cached) " >&6 7990afb14e9bSmrgelse $as_nop 799161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 799261c899d4Smrg/* end confdefs.h. */ 799361c899d4Smrgint i; 799461c899d4Smrg_ACEOF 7995afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 7996afb14e9bSmrgthen : 799761c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7998afb14e9bSmrgelse $as_nop 799961c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 800061c899d4Smrgfi 8001afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 800261c899d4Smrgfi 8003afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8004afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 800561c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 800661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 800761c899d4Smrgfi 800861c899d4Smrg 800961c899d4Smrgfound="no" 801061c899d4Smrg 801161c899d4Smrg if test $found = "no" ; then 8012ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 801361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 801461c899d4Smrg fi 801561c899d4Smrg 8016ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 801761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 801861c899d4Smrg fi 801961c899d4Smrg 802061c899d4Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 802161c899d4Smrg 8022afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8023afb14e9bSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8024afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 8025afb14e9bSmrg if eval test \${$cacheid+y} 8026afb14e9bSmrgthen : 8027afb14e9bSmrg printf %s "(cached) " >&6 8028afb14e9bSmrgelse $as_nop 802961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 803061c899d4Smrg/* end confdefs.h. */ 803161c899d4Smrgint i; 803261c899d4Smrgint 8033afb14e9bSmrgmain (void) 803461c899d4Smrg{ 803561c899d4Smrg 803661c899d4Smrg ; 803761c899d4Smrg return 0; 803861c899d4Smrg} 803961c899d4Smrg_ACEOF 8040afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8041afb14e9bSmrgthen : 804261c899d4Smrg eval $cacheid=yes 8043afb14e9bSmrgelse $as_nop 804461c899d4Smrg eval $cacheid=no 804561c899d4Smrgfi 8046afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 804761c899d4Smrg conftest$ac_exeext conftest.$ac_ext 804861c899d4Smrgfi 804961c899d4Smrg 805061c899d4Smrg 805161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 805261c899d4Smrg 805361c899d4Smrg eval supported=\$$cacheid 8054afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8055afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 805661c899d4Smrg if test "$supported" = "yes" ; then 805761c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 805861c899d4Smrg found="yes" 805961c899d4Smrg fi 806061c899d4Smrg fi 806161c899d4Smrg 806261c899d4Smrg 806361c899d4Smrg 806461c899d4Smrg 806561c899d4Smrg 806661c899d4Smrg 806761c899d4Smrg 806861c899d4Smrg 806961c899d4Smrg 807061c899d4Smrg 807161c899d4Smrg 807261c899d4Smrg 807361c899d4Smrg 807461c899d4Smrg 807561c899d4Smrg 807661c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 807761c899d4Smrg 807861c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 807961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8080afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8081afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8082afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8083afb14e9bSmrgthen : 8084afb14e9bSmrg printf %s "(cached) " >&6 8085afb14e9bSmrgelse $as_nop 808661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 808761c899d4Smrg/* end confdefs.h. */ 808861c899d4Smrgint i; 808961c899d4Smrg_ACEOF 8090afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8091afb14e9bSmrgthen : 809261c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8093afb14e9bSmrgelse $as_nop 809461c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 809561c899d4Smrgfi 8096afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 809761c899d4Smrgfi 8098afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8099afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 810061c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 810161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810261c899d4Smrgfi 810361c899d4Smrg 810461c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 810561c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 810661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 810761c899d4Smrg fi 810861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8109afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8110afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8111afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8112afb14e9bSmrgthen : 8113afb14e9bSmrg printf %s "(cached) " >&6 8114afb14e9bSmrgelse $as_nop 811561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 811661c899d4Smrg/* end confdefs.h. */ 811761c899d4Smrgint i; 811861c899d4Smrg_ACEOF 8119afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8120afb14e9bSmrgthen : 812161c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8122afb14e9bSmrgelse $as_nop 812361c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 812461c899d4Smrgfi 8125afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 812661c899d4Smrgfi 8127afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8128afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 812961c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 813061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 813161c899d4Smrgfi 813261c899d4Smrg 813361c899d4Smrgfound="no" 813461c899d4Smrg 813561c899d4Smrg if test $found = "no" ; then 8136ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 813761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 813861c899d4Smrg fi 813961c899d4Smrg 8140ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 814161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 814261c899d4Smrg fi 814361c899d4Smrg 814461c899d4Smrg CFLAGS="$CFLAGS -Werror=return-type" 814561c899d4Smrg 8146afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8147afb14e9bSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 8148afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 8149afb14e9bSmrg if eval test \${$cacheid+y} 8150afb14e9bSmrgthen : 8151afb14e9bSmrg printf %s "(cached) " >&6 8152afb14e9bSmrgelse $as_nop 815361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 815461c899d4Smrg/* end confdefs.h. */ 815561c899d4Smrgint i; 815661c899d4Smrgint 8157afb14e9bSmrgmain (void) 815861c899d4Smrg{ 815961c899d4Smrg 816061c899d4Smrg ; 816161c899d4Smrg return 0; 816261c899d4Smrg} 816361c899d4Smrg_ACEOF 8164afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8165afb14e9bSmrgthen : 816661c899d4Smrg eval $cacheid=yes 8167afb14e9bSmrgelse $as_nop 816861c899d4Smrg eval $cacheid=no 816961c899d4Smrgfi 8170afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 817161c899d4Smrg conftest$ac_exeext conftest.$ac_ext 817261c899d4Smrgfi 817361c899d4Smrg 817461c899d4Smrg 817561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 817661c899d4Smrg 817761c899d4Smrg eval supported=\$$cacheid 8178afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8179afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 818061c899d4Smrg if test "$supported" = "yes" ; then 818161c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 818261c899d4Smrg found="yes" 818361c899d4Smrg fi 818461c899d4Smrg fi 818561c899d4Smrg 818661c899d4Smrg if test $found = "no" ; then 8187ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 818861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 818961c899d4Smrg fi 819061c899d4Smrg 8191ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 819261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 819361c899d4Smrg fi 819461c899d4Smrg 819561c899d4Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 819661c899d4Smrg 8197afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8198afb14e9bSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8199afb14e9bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8200afb14e9bSmrg if eval test \${$cacheid+y} 8201afb14e9bSmrgthen : 8202afb14e9bSmrg printf %s "(cached) " >&6 8203afb14e9bSmrgelse $as_nop 820461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820561c899d4Smrg/* end confdefs.h. */ 820661c899d4Smrgint i; 820761c899d4Smrgint 8208afb14e9bSmrgmain (void) 820961c899d4Smrg{ 821061c899d4Smrg 821161c899d4Smrg ; 821261c899d4Smrg return 0; 821361c899d4Smrg} 821461c899d4Smrg_ACEOF 8215afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8216afb14e9bSmrgthen : 821761c899d4Smrg eval $cacheid=yes 8218afb14e9bSmrgelse $as_nop 821961c899d4Smrg eval $cacheid=no 822061c899d4Smrgfi 8221afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 822261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 822361c899d4Smrgfi 822461c899d4Smrg 822561c899d4Smrg 822661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 822761c899d4Smrg 822861c899d4Smrg eval supported=\$$cacheid 8229afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8230afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 823161c899d4Smrg if test "$supported" = "yes" ; then 823261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 823361c899d4Smrg found="yes" 823461c899d4Smrg fi 823561c899d4Smrg fi 823661c899d4Smrg 823761c899d4Smrg 823861c899d4Smrg 823961c899d4Smrg 824061c899d4Smrg 824161c899d4Smrg 824261c899d4Smrg 824361c899d4Smrg 824461c899d4Smrg 824561c899d4Smrg 824661c899d4Smrg 824761c899d4Smrg 824861c899d4Smrg 824961c899d4Smrg 825061c899d4Smrg 825161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 825261c899d4Smrg 825361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 825461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8255afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8256afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8257afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8258afb14e9bSmrgthen : 8259afb14e9bSmrg printf %s "(cached) " >&6 8260afb14e9bSmrgelse $as_nop 826161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 826261c899d4Smrg/* end confdefs.h. */ 826361c899d4Smrgint i; 826461c899d4Smrg_ACEOF 8265afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8266afb14e9bSmrgthen : 826761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8268afb14e9bSmrgelse $as_nop 826961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 827061c899d4Smrgfi 8271afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 827261c899d4Smrgfi 8273afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8274afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 827561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 827661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 827761c899d4Smrgfi 827861c899d4Smrg 827961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 828061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 828161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 828261c899d4Smrg fi 828361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8285afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8286afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8287afb14e9bSmrgthen : 8288afb14e9bSmrg printf %s "(cached) " >&6 8289afb14e9bSmrgelse $as_nop 829061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 829161c899d4Smrg/* end confdefs.h. */ 829261c899d4Smrgint i; 829361c899d4Smrg_ACEOF 8294afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8295afb14e9bSmrgthen : 829661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8297afb14e9bSmrgelse $as_nop 829861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 829961c899d4Smrgfi 8300afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 830161c899d4Smrgfi 8302afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8303afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 830461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 830561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 830661c899d4Smrgfi 830761c899d4Smrg 830861c899d4Smrgfound="no" 830961c899d4Smrg 831061c899d4Smrg if test $found = "no" ; then 8311ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 831261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 831361c899d4Smrg fi 831461c899d4Smrg 8315ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 831661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 831761c899d4Smrg fi 831861c899d4Smrg 831961c899d4Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 832061c899d4Smrg 8321afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8322afb14e9bSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8323afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8324afb14e9bSmrg if eval test \${$cacheid+y} 8325afb14e9bSmrgthen : 8326afb14e9bSmrg printf %s "(cached) " >&6 8327afb14e9bSmrgelse $as_nop 832861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 832961c899d4Smrg/* end confdefs.h. */ 833061c899d4Smrgint i; 833161c899d4Smrgint 8332afb14e9bSmrgmain (void) 833361c899d4Smrg{ 833461c899d4Smrg 833561c899d4Smrg ; 833661c899d4Smrg return 0; 833761c899d4Smrg} 833861c899d4Smrg_ACEOF 8339afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8340afb14e9bSmrgthen : 834161c899d4Smrg eval $cacheid=yes 8342afb14e9bSmrgelse $as_nop 834361c899d4Smrg eval $cacheid=no 834461c899d4Smrgfi 8345afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 834661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 834761c899d4Smrgfi 834861c899d4Smrg 834961c899d4Smrg 835061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 835161c899d4Smrg 835261c899d4Smrg eval supported=\$$cacheid 8353afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8354afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 835561c899d4Smrg if test "$supported" = "yes" ; then 835661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 835761c899d4Smrg found="yes" 835861c899d4Smrg fi 835961c899d4Smrg fi 836061c899d4Smrg 836161c899d4Smrg 836261c899d4Smrg 836361c899d4Smrg 836461c899d4Smrg 836561c899d4Smrg 836661c899d4Smrg 836761c899d4Smrg 836861c899d4Smrg 836961c899d4Smrg 837061c899d4Smrg 837161c899d4Smrg 837261c899d4Smrg 837361c899d4Smrg 837461c899d4Smrg 837561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 837661c899d4Smrg 837761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 837861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8379afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8380afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8381afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8382afb14e9bSmrgthen : 8383afb14e9bSmrg printf %s "(cached) " >&6 8384afb14e9bSmrgelse $as_nop 838561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 838661c899d4Smrg/* end confdefs.h. */ 838761c899d4Smrgint i; 838861c899d4Smrg_ACEOF 8389afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8390afb14e9bSmrgthen : 839161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8392afb14e9bSmrgelse $as_nop 839361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 839461c899d4Smrgfi 8395afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 839661c899d4Smrgfi 8397afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8398afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 839961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 840061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 840161c899d4Smrgfi 840261c899d4Smrg 840361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 840461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 840561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 840661c899d4Smrg fi 840761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8409afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8410afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8411afb14e9bSmrgthen : 8412afb14e9bSmrg printf %s "(cached) " >&6 8413afb14e9bSmrgelse $as_nop 841461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 841561c899d4Smrg/* end confdefs.h. */ 841661c899d4Smrgint i; 841761c899d4Smrg_ACEOF 8418afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8419afb14e9bSmrgthen : 842061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8421afb14e9bSmrgelse $as_nop 842261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 842361c899d4Smrgfi 8424afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 842561c899d4Smrgfi 8426afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8427afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 842861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 842961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 843061c899d4Smrgfi 843161c899d4Smrg 843261c899d4Smrgfound="no" 843361c899d4Smrg 843461c899d4Smrg if test $found = "no" ; then 8435ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 843661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 843761c899d4Smrg fi 843861c899d4Smrg 8439ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 844061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 844161c899d4Smrg fi 844261c899d4Smrg 844361c899d4Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 844461c899d4Smrg 8445afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8446afb14e9bSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8447afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8448afb14e9bSmrg if eval test \${$cacheid+y} 8449afb14e9bSmrgthen : 8450afb14e9bSmrg printf %s "(cached) " >&6 8451afb14e9bSmrgelse $as_nop 845261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 845361c899d4Smrg/* end confdefs.h. */ 845461c899d4Smrgint i; 845561c899d4Smrgint 8456afb14e9bSmrgmain (void) 845761c899d4Smrg{ 845861c899d4Smrg 845961c899d4Smrg ; 846061c899d4Smrg return 0; 846161c899d4Smrg} 846261c899d4Smrg_ACEOF 8463afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8464afb14e9bSmrgthen : 846561c899d4Smrg eval $cacheid=yes 8466afb14e9bSmrgelse $as_nop 846761c899d4Smrg eval $cacheid=no 846861c899d4Smrgfi 8469afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 847061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 847161c899d4Smrgfi 847261c899d4Smrg 847361c899d4Smrg 847461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 847561c899d4Smrg 847661c899d4Smrg eval supported=\$$cacheid 8477afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8478afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 847961c899d4Smrg if test "$supported" = "yes" ; then 848061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 848161c899d4Smrg found="yes" 848261c899d4Smrg fi 848361c899d4Smrg fi 848461c899d4Smrg 848561c899d4Smrg 848661c899d4Smrg 848761c899d4Smrg 848861c899d4Smrg 848961c899d4Smrg 849061c899d4Smrg 849161c899d4Smrg 849261c899d4Smrg 849361c899d4Smrg 849461c899d4Smrg 849561c899d4Smrg 849661c899d4Smrg 849761c899d4Smrg 849861c899d4Smrg 849961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 850061c899d4Smrg 850161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 850261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8504afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8505afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8506afb14e9bSmrgthen : 8507afb14e9bSmrg printf %s "(cached) " >&6 8508afb14e9bSmrgelse $as_nop 850961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 851061c899d4Smrg/* end confdefs.h. */ 851161c899d4Smrgint i; 851261c899d4Smrg_ACEOF 8513afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8514afb14e9bSmrgthen : 851561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8516afb14e9bSmrgelse $as_nop 851761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 851861c899d4Smrgfi 8519afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 852061c899d4Smrgfi 8521afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8522afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 852361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 852461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 852561c899d4Smrgfi 852661c899d4Smrg 852761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 852861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 852961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 853061c899d4Smrg fi 853161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8533afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8534afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8535afb14e9bSmrgthen : 8536afb14e9bSmrg printf %s "(cached) " >&6 8537afb14e9bSmrgelse $as_nop 853861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853961c899d4Smrg/* end confdefs.h. */ 854061c899d4Smrgint i; 854161c899d4Smrg_ACEOF 8542afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8543afb14e9bSmrgthen : 854461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8545afb14e9bSmrgelse $as_nop 854661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 854761c899d4Smrgfi 8548afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 854961c899d4Smrgfi 8550afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8551afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 855261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 855361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 855461c899d4Smrgfi 855561c899d4Smrg 855661c899d4Smrgfound="no" 855761c899d4Smrg 855861c899d4Smrg if test $found = "no" ; then 8559ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 856061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 856161c899d4Smrg fi 856261c899d4Smrg 8563ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 856461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 856561c899d4Smrg fi 856661c899d4Smrg 856761c899d4Smrg CFLAGS="$CFLAGS -Werror=write-strings" 856861c899d4Smrg 8569afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8570afb14e9bSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8571afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8572afb14e9bSmrg if eval test \${$cacheid+y} 8573afb14e9bSmrgthen : 8574afb14e9bSmrg printf %s "(cached) " >&6 8575afb14e9bSmrgelse $as_nop 857661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 857761c899d4Smrg/* end confdefs.h. */ 857861c899d4Smrgint i; 857961c899d4Smrgint 8580afb14e9bSmrgmain (void) 858161c899d4Smrg{ 858261c899d4Smrg 858361c899d4Smrg ; 858461c899d4Smrg return 0; 858561c899d4Smrg} 858661c899d4Smrg_ACEOF 8587afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8588afb14e9bSmrgthen : 858961c899d4Smrg eval $cacheid=yes 8590afb14e9bSmrgelse $as_nop 859161c899d4Smrg eval $cacheid=no 859261c899d4Smrgfi 8593afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 859461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 859561c899d4Smrgfi 859661c899d4Smrg 859761c899d4Smrg 859861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 859961c899d4Smrg 860061c899d4Smrg eval supported=\$$cacheid 8601afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8602afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 860361c899d4Smrg if test "$supported" = "yes" ; then 860461c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 860561c899d4Smrg found="yes" 860661c899d4Smrg fi 860761c899d4Smrg fi 860861c899d4Smrg 860961c899d4Smrg 861061c899d4Smrg 861161c899d4Smrg 861261c899d4Smrg 861361c899d4Smrg 861461c899d4Smrg 861561c899d4Smrg 861661c899d4Smrg 861761c899d4Smrg 861861c899d4Smrg 861961c899d4Smrg 862061c899d4Smrg 862161c899d4Smrg 862261c899d4Smrg 862361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 862461c899d4Smrg 862561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 862661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8628afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8629afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8630afb14e9bSmrgthen : 8631afb14e9bSmrg printf %s "(cached) " >&6 8632afb14e9bSmrgelse $as_nop 863361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 863461c899d4Smrg/* end confdefs.h. */ 863561c899d4Smrgint i; 863661c899d4Smrg_ACEOF 8637afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8638afb14e9bSmrgthen : 863961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8640afb14e9bSmrgelse $as_nop 864161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 864261c899d4Smrgfi 8643afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 864461c899d4Smrgfi 8645afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8646afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 864761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 864861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 864961c899d4Smrgfi 865061c899d4Smrg 865161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 865261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 865361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 865461c899d4Smrg fi 865561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8656afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8657afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8658afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8659afb14e9bSmrgthen : 8660afb14e9bSmrg printf %s "(cached) " >&6 8661afb14e9bSmrgelse $as_nop 866261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 866361c899d4Smrg/* end confdefs.h. */ 866461c899d4Smrgint i; 866561c899d4Smrg_ACEOF 8666afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8667afb14e9bSmrgthen : 866861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8669afb14e9bSmrgelse $as_nop 867061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 867161c899d4Smrgfi 8672afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 867361c899d4Smrgfi 8674afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8675afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 867661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 867761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867861c899d4Smrgfi 867961c899d4Smrg 868061c899d4Smrgfound="no" 868161c899d4Smrg 868261c899d4Smrg if test $found = "no" ; then 8683ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 868461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 868561c899d4Smrg fi 868661c899d4Smrg 8687ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 868861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 868961c899d4Smrg fi 869061c899d4Smrg 869161c899d4Smrg CFLAGS="$CFLAGS -Werror=address" 869261c899d4Smrg 8693afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8694afb14e9bSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 8695afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_address 8696afb14e9bSmrg if eval test \${$cacheid+y} 8697afb14e9bSmrgthen : 8698afb14e9bSmrg printf %s "(cached) " >&6 8699afb14e9bSmrgelse $as_nop 870061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 870161c899d4Smrg/* end confdefs.h. */ 870261c899d4Smrgint i; 870361c899d4Smrgint 8704afb14e9bSmrgmain (void) 870561c899d4Smrg{ 870661c899d4Smrg 870761c899d4Smrg ; 870861c899d4Smrg return 0; 870961c899d4Smrg} 871061c899d4Smrg_ACEOF 8711afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8712afb14e9bSmrgthen : 871361c899d4Smrg eval $cacheid=yes 8714afb14e9bSmrgelse $as_nop 871561c899d4Smrg eval $cacheid=no 871661c899d4Smrgfi 8717afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 871861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 871961c899d4Smrgfi 872061c899d4Smrg 872161c899d4Smrg 872261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 872361c899d4Smrg 872461c899d4Smrg eval supported=\$$cacheid 8725afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8726afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 872761c899d4Smrg if test "$supported" = "yes" ; then 872861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 872961c899d4Smrg found="yes" 873061c899d4Smrg fi 873161c899d4Smrg fi 873261c899d4Smrg 873361c899d4Smrg 873461c899d4Smrg 873561c899d4Smrg 873661c899d4Smrg 873761c899d4Smrg 873861c899d4Smrg 873961c899d4Smrg 874061c899d4Smrg 874161c899d4Smrg 874261c899d4Smrg 874361c899d4Smrg 874461c899d4Smrg 874561c899d4Smrg 874661c899d4Smrg 874761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 874861c899d4Smrg 874961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 875061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8751afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8752afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8753afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8754afb14e9bSmrgthen : 8755afb14e9bSmrg printf %s "(cached) " >&6 8756afb14e9bSmrgelse $as_nop 875761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 875861c899d4Smrg/* end confdefs.h. */ 875961c899d4Smrgint i; 876061c899d4Smrg_ACEOF 8761afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8762afb14e9bSmrgthen : 876361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8764afb14e9bSmrgelse $as_nop 876561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 876661c899d4Smrgfi 8767afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 876861c899d4Smrgfi 8769afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8770afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 877161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 877261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 877361c899d4Smrgfi 877461c899d4Smrg 877561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 877661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 877761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 877861c899d4Smrg fi 877961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8780afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8781afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8782afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8783afb14e9bSmrgthen : 8784afb14e9bSmrg printf %s "(cached) " >&6 8785afb14e9bSmrgelse $as_nop 878661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 878761c899d4Smrg/* end confdefs.h. */ 878861c899d4Smrgint i; 878961c899d4Smrg_ACEOF 8790afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8791afb14e9bSmrgthen : 879261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8793afb14e9bSmrgelse $as_nop 879461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 879561c899d4Smrgfi 8796afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 879761c899d4Smrgfi 8798afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8799afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 880061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 880161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 880261c899d4Smrgfi 880361c899d4Smrg 880461c899d4Smrgfound="no" 880561c899d4Smrg 880661c899d4Smrg if test $found = "no" ; then 8807ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 880861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 880961c899d4Smrg fi 881061c899d4Smrg 8811ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 881261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 881361c899d4Smrg fi 881461c899d4Smrg 881561c899d4Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 881661c899d4Smrg 8817afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8818afb14e9bSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8819afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8820afb14e9bSmrg if eval test \${$cacheid+y} 8821afb14e9bSmrgthen : 8822afb14e9bSmrg printf %s "(cached) " >&6 8823afb14e9bSmrgelse $as_nop 882461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 882561c899d4Smrg/* end confdefs.h. */ 882661c899d4Smrgint i; 882761c899d4Smrgint 8828afb14e9bSmrgmain (void) 882961c899d4Smrg{ 883061c899d4Smrg 883161c899d4Smrg ; 883261c899d4Smrg return 0; 883361c899d4Smrg} 883461c899d4Smrg_ACEOF 8835afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8836afb14e9bSmrgthen : 883761c899d4Smrg eval $cacheid=yes 8838afb14e9bSmrgelse $as_nop 883961c899d4Smrg eval $cacheid=no 884061c899d4Smrgfi 8841afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 884261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 884361c899d4Smrgfi 884461c899d4Smrg 884561c899d4Smrg 884661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 884761c899d4Smrg 884861c899d4Smrg eval supported=\$$cacheid 8849afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8850afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 885161c899d4Smrg if test "$supported" = "yes" ; then 885261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 885361c899d4Smrg found="yes" 885461c899d4Smrg fi 885561c899d4Smrg fi 885661c899d4Smrg 885761c899d4Smrg if test $found = "no" ; then 8858ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 885961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 886061c899d4Smrg fi 886161c899d4Smrg 8862ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 886361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 886461c899d4Smrg fi 886561c899d4Smrg 886661c899d4Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 886761c899d4Smrg 8868afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8869afb14e9bSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8870afb14e9bSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8871afb14e9bSmrg if eval test \${$cacheid+y} 8872afb14e9bSmrgthen : 8873afb14e9bSmrg printf %s "(cached) " >&6 8874afb14e9bSmrgelse $as_nop 887561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 887661c899d4Smrg/* end confdefs.h. */ 887761c899d4Smrgint i; 887861c899d4Smrgint 8879afb14e9bSmrgmain (void) 888061c899d4Smrg{ 888161c899d4Smrg 888261c899d4Smrg ; 888361c899d4Smrg return 0; 888461c899d4Smrg} 888561c899d4Smrg_ACEOF 8886afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 8887afb14e9bSmrgthen : 888861c899d4Smrg eval $cacheid=yes 8889afb14e9bSmrgelse $as_nop 889061c899d4Smrg eval $cacheid=no 889161c899d4Smrgfi 8892afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 889361c899d4Smrg conftest$ac_exeext conftest.$ac_ext 889461c899d4Smrgfi 889561c899d4Smrg 889661c899d4Smrg 889761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 889861c899d4Smrg 889961c899d4Smrg eval supported=\$$cacheid 8900afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8901afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 890261c899d4Smrg if test "$supported" = "yes" ; then 890361c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 890461c899d4Smrg found="yes" 890561c899d4Smrg fi 890661c899d4Smrg fi 890761c899d4Smrg 890861c899d4Smrg 890961c899d4Smrg 891061c899d4Smrg 891161c899d4Smrg 891261c899d4Smrg 891361c899d4Smrg 891461c899d4Smrg 891561c899d4Smrg 891661c899d4Smrg 891761c899d4Smrg 891861c899d4Smrg 891961c899d4Smrg 892061c899d4Smrg 892161c899d4Smrg 892261c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 892361c899d4Smrg 892461c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 892561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8927afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8928afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8929afb14e9bSmrgthen : 8930afb14e9bSmrg printf %s "(cached) " >&6 8931afb14e9bSmrgelse $as_nop 893261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 893361c899d4Smrg/* end confdefs.h. */ 893461c899d4Smrgint i; 893561c899d4Smrg_ACEOF 8936afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8937afb14e9bSmrgthen : 893861c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8939afb14e9bSmrgelse $as_nop 894061c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 894161c899d4Smrgfi 8942afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 894361c899d4Smrgfi 8944afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8945afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 894661c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 894761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 894861c899d4Smrgfi 894961c899d4Smrg 895061c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 895161c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 895261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 895361c899d4Smrg fi 895461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8955afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8956afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8957afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8958afb14e9bSmrgthen : 8959afb14e9bSmrg printf %s "(cached) " >&6 8960afb14e9bSmrgelse $as_nop 896161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 896261c899d4Smrg/* end confdefs.h. */ 896361c899d4Smrgint i; 896461c899d4Smrg_ACEOF 8965afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 8966afb14e9bSmrgthen : 896761c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8968afb14e9bSmrgelse $as_nop 896961c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 897061c899d4Smrgfi 8971afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 897261c899d4Smrgfi 8973afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8974afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 897561c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 897661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 897761c899d4Smrgfi 897861c899d4Smrg 897961c899d4Smrgfound="no" 898061c899d4Smrg 898161c899d4Smrg if test $found = "no" ; then 8982ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 898361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 898461c899d4Smrg fi 898561c899d4Smrg 8986ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 898761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 898861c899d4Smrg fi 898961c899d4Smrg 899061c899d4Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 899161c899d4Smrg 8992afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8993afb14e9bSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8994afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8995afb14e9bSmrg if eval test \${$cacheid+y} 8996afb14e9bSmrgthen : 8997afb14e9bSmrg printf %s "(cached) " >&6 8998afb14e9bSmrgelse $as_nop 899961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900061c899d4Smrg/* end confdefs.h. */ 900161c899d4Smrgint i; 900261c899d4Smrgint 9003afb14e9bSmrgmain (void) 900461c899d4Smrg{ 900561c899d4Smrg 900661c899d4Smrg ; 900761c899d4Smrg return 0; 900861c899d4Smrg} 900961c899d4Smrg_ACEOF 9010afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9011afb14e9bSmrgthen : 901261c899d4Smrg eval $cacheid=yes 9013afb14e9bSmrgelse $as_nop 901461c899d4Smrg eval $cacheid=no 901561c899d4Smrgfi 9016afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 901761c899d4Smrg conftest$ac_exeext conftest.$ac_ext 901861c899d4Smrgfi 901961c899d4Smrg 902061c899d4Smrg 902161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902261c899d4Smrg 902361c899d4Smrg eval supported=\$$cacheid 9024afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9025afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 902661c899d4Smrg if test "$supported" = "yes" ; then 902761c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 902861c899d4Smrg found="yes" 902961c899d4Smrg fi 903061c899d4Smrg fi 903161c899d4Smrg 903261c899d4Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 903361c899d4Smrgelse 9034afb14e9bSmrg{ 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 9035afb14e9bSmrgprintf "%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;} 903661c899d4Smrg 903761c899d4Smrg 903861c899d4Smrg 903961c899d4Smrg 904061c899d4Smrg 904161c899d4Smrg 904261c899d4Smrg 904361c899d4Smrg 904461c899d4Smrg 904561c899d4Smrg 904661c899d4Smrg 904761c899d4Smrg 904861c899d4Smrg 904961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 905061c899d4Smrg 905161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 905261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9054afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9055afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9056afb14e9bSmrgthen : 9057afb14e9bSmrg printf %s "(cached) " >&6 9058afb14e9bSmrgelse $as_nop 905961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 906061c899d4Smrg/* end confdefs.h. */ 906161c899d4Smrgint i; 906261c899d4Smrg_ACEOF 9063afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9064afb14e9bSmrgthen : 906561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9066afb14e9bSmrgelse $as_nop 906761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 906861c899d4Smrgfi 9069afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 907061c899d4Smrgfi 9071afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 907361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 907461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 907561c899d4Smrgfi 907661c899d4Smrg 907761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 907861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 907961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 908061c899d4Smrg fi 908161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9085afb14e9bSmrgthen : 9086afb14e9bSmrg printf %s "(cached) " >&6 9087afb14e9bSmrgelse $as_nop 908861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 908961c899d4Smrg/* end confdefs.h. */ 909061c899d4Smrgint i; 909161c899d4Smrg_ACEOF 9092afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9093afb14e9bSmrgthen : 909461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9095afb14e9bSmrgelse $as_nop 909661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 909761c899d4Smrgfi 9098afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 909961c899d4Smrgfi 9100afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9101afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 910261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 910361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 910461c899d4Smrgfi 910561c899d4Smrg 910661c899d4Smrgfound="no" 910761c899d4Smrg 910861c899d4Smrg if test $found = "no" ; then 9109ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 911061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 911161c899d4Smrg fi 911261c899d4Smrg 9113ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 911461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 911561c899d4Smrg fi 911661c899d4Smrg 911761c899d4Smrg CFLAGS="$CFLAGS -Wimplicit" 911861c899d4Smrg 9119afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9120afb14e9bSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 912161c899d4Smrg cacheid=xorg_cv_cc_flag__Wimplicit 9122afb14e9bSmrg if eval test \${$cacheid+y} 9123afb14e9bSmrgthen : 9124afb14e9bSmrg printf %s "(cached) " >&6 9125afb14e9bSmrgelse $as_nop 912661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 912761c899d4Smrg/* end confdefs.h. */ 912861c899d4Smrgint i; 912961c899d4Smrgint 9130afb14e9bSmrgmain (void) 913161c899d4Smrg{ 913261c899d4Smrg 913361c899d4Smrg ; 913461c899d4Smrg return 0; 913561c899d4Smrg} 913661c899d4Smrg_ACEOF 9137afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9138afb14e9bSmrgthen : 913961c899d4Smrg eval $cacheid=yes 9140afb14e9bSmrgelse $as_nop 914161c899d4Smrg eval $cacheid=no 914261c899d4Smrgfi 9143afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 914461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 914561c899d4Smrgfi 914661c899d4Smrg 914761c899d4Smrg 914861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 914961c899d4Smrg 915061c899d4Smrg eval supported=\$$cacheid 9151afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9152afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 915361c899d4Smrg if test "$supported" = "yes" ; then 915461c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 915561c899d4Smrg found="yes" 915661c899d4Smrg fi 915761c899d4Smrg fi 915861c899d4Smrg 915961c899d4Smrg 916061c899d4Smrg 916161c899d4Smrg 916261c899d4Smrg 916361c899d4Smrg 916461c899d4Smrg 916561c899d4Smrg 916661c899d4Smrg 916761c899d4Smrg 916861c899d4Smrg 916961c899d4Smrg 917061c899d4Smrg 917161c899d4Smrg 917261c899d4Smrg 917361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 917461c899d4Smrg 917561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 917661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9178afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9179afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9180afb14e9bSmrgthen : 9181afb14e9bSmrg printf %s "(cached) " >&6 9182afb14e9bSmrgelse $as_nop 918361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 918461c899d4Smrg/* end confdefs.h. */ 918561c899d4Smrgint i; 918661c899d4Smrg_ACEOF 9187afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9188afb14e9bSmrgthen : 918961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9190afb14e9bSmrgelse $as_nop 919161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 919261c899d4Smrgfi 9193afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 919461c899d4Smrgfi 9195afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9196afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 919761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 919861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 919961c899d4Smrgfi 920061c899d4Smrg 920161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 920261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 920361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 920461c899d4Smrg fi 920561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9207afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9208afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9209afb14e9bSmrgthen : 9210afb14e9bSmrg printf %s "(cached) " >&6 9211afb14e9bSmrgelse $as_nop 921261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 921361c899d4Smrg/* end confdefs.h. */ 921461c899d4Smrgint i; 921561c899d4Smrg_ACEOF 9216afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9217afb14e9bSmrgthen : 921861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9219afb14e9bSmrgelse $as_nop 922061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 922161c899d4Smrgfi 9222afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 922361c899d4Smrgfi 9224afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9225afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 922661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 922761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 922861c899d4Smrgfi 922961c899d4Smrg 923061c899d4Smrgfound="no" 923161c899d4Smrg 923261c899d4Smrg if test $found = "no" ; then 9233ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 923461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 923561c899d4Smrg fi 923661c899d4Smrg 9237ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 923861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 923961c899d4Smrg fi 924061c899d4Smrg 924161c899d4Smrg CFLAGS="$CFLAGS -Wnonnull" 924261c899d4Smrg 9243afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9244afb14e9bSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 924561c899d4Smrg cacheid=xorg_cv_cc_flag__Wnonnull 9246afb14e9bSmrg if eval test \${$cacheid+y} 9247afb14e9bSmrgthen : 9248afb14e9bSmrg printf %s "(cached) " >&6 9249afb14e9bSmrgelse $as_nop 925061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 925161c899d4Smrg/* end confdefs.h. */ 925261c899d4Smrgint i; 925361c899d4Smrgint 9254afb14e9bSmrgmain (void) 925561c899d4Smrg{ 925661c899d4Smrg 925761c899d4Smrg ; 925861c899d4Smrg return 0; 925961c899d4Smrg} 926061c899d4Smrg_ACEOF 9261afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9262afb14e9bSmrgthen : 926361c899d4Smrg eval $cacheid=yes 9264afb14e9bSmrgelse $as_nop 926561c899d4Smrg eval $cacheid=no 926661c899d4Smrgfi 9267afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 926861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 926961c899d4Smrgfi 927061c899d4Smrg 927161c899d4Smrg 927261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 927361c899d4Smrg 927461c899d4Smrg eval supported=\$$cacheid 9275afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9276afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 927761c899d4Smrg if test "$supported" = "yes" ; then 927861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 927961c899d4Smrg found="yes" 928061c899d4Smrg fi 928161c899d4Smrg fi 928261c899d4Smrg 928361c899d4Smrg 928461c899d4Smrg 928561c899d4Smrg 928661c899d4Smrg 928761c899d4Smrg 928861c899d4Smrg 928961c899d4Smrg 929061c899d4Smrg 929161c899d4Smrg 929261c899d4Smrg 929361c899d4Smrg 929461c899d4Smrg 929561c899d4Smrg 929661c899d4Smrg 929761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 929861c899d4Smrg 929961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 930061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9302afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9303afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9304afb14e9bSmrgthen : 9305afb14e9bSmrg printf %s "(cached) " >&6 9306afb14e9bSmrgelse $as_nop 930761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 930861c899d4Smrg/* end confdefs.h. */ 930961c899d4Smrgint i; 931061c899d4Smrg_ACEOF 9311afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9312afb14e9bSmrgthen : 931361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9314afb14e9bSmrgelse $as_nop 931561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 931661c899d4Smrgfi 9317afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 931861c899d4Smrgfi 9319afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9320afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 932161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 932261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 932361c899d4Smrgfi 932461c899d4Smrg 932561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 932661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 932761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 932861c899d4Smrg fi 932961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9330afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9331afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9332afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9333afb14e9bSmrgthen : 9334afb14e9bSmrg printf %s "(cached) " >&6 9335afb14e9bSmrgelse $as_nop 933661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 933761c899d4Smrg/* end confdefs.h. */ 933861c899d4Smrgint i; 933961c899d4Smrg_ACEOF 9340afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9341afb14e9bSmrgthen : 934261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9343afb14e9bSmrgelse $as_nop 934461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 934561c899d4Smrgfi 9346afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 934761c899d4Smrgfi 9348afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9349afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 935061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 935161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 935261c899d4Smrgfi 935361c899d4Smrg 935461c899d4Smrgfound="no" 935561c899d4Smrg 935661c899d4Smrg if test $found = "no" ; then 9357ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 935861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 935961c899d4Smrg fi 936061c899d4Smrg 9361ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 936261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 936361c899d4Smrg fi 936461c899d4Smrg 936561c899d4Smrg CFLAGS="$CFLAGS -Winit-self" 936661c899d4Smrg 9367afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9368afb14e9bSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 936961c899d4Smrg cacheid=xorg_cv_cc_flag__Winit_self 9370afb14e9bSmrg if eval test \${$cacheid+y} 9371afb14e9bSmrgthen : 9372afb14e9bSmrg printf %s "(cached) " >&6 9373afb14e9bSmrgelse $as_nop 937461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 937561c899d4Smrg/* end confdefs.h. */ 937661c899d4Smrgint i; 937761c899d4Smrgint 9378afb14e9bSmrgmain (void) 937961c899d4Smrg{ 938061c899d4Smrg 938161c899d4Smrg ; 938261c899d4Smrg return 0; 938361c899d4Smrg} 938461c899d4Smrg_ACEOF 9385afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9386afb14e9bSmrgthen : 938761c899d4Smrg eval $cacheid=yes 9388afb14e9bSmrgelse $as_nop 938961c899d4Smrg eval $cacheid=no 939061c899d4Smrgfi 9391afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 939261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 939361c899d4Smrgfi 939461c899d4Smrg 939561c899d4Smrg 939661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 939761c899d4Smrg 939861c899d4Smrg eval supported=\$$cacheid 9399afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 940161c899d4Smrg if test "$supported" = "yes" ; then 940261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 940361c899d4Smrg found="yes" 940461c899d4Smrg fi 940561c899d4Smrg fi 940661c899d4Smrg 940761c899d4Smrg 940861c899d4Smrg 940961c899d4Smrg 941061c899d4Smrg 941161c899d4Smrg 941261c899d4Smrg 941361c899d4Smrg 941461c899d4Smrg 941561c899d4Smrg 941661c899d4Smrg 941761c899d4Smrg 941861c899d4Smrg 941961c899d4Smrg 942061c899d4Smrg 942161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 942261c899d4Smrg 942361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 942461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9428afb14e9bSmrgthen : 9429afb14e9bSmrg printf %s "(cached) " >&6 9430afb14e9bSmrgelse $as_nop 943161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943261c899d4Smrg/* end confdefs.h. */ 943361c899d4Smrgint i; 943461c899d4Smrg_ACEOF 9435afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9436afb14e9bSmrgthen : 943761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9438afb14e9bSmrgelse $as_nop 943961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 944061c899d4Smrgfi 9441afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 944261c899d4Smrgfi 9443afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9444afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 944561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 944661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 944761c899d4Smrgfi 944861c899d4Smrg 944961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 945061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 945161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 945261c899d4Smrg fi 945361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9455afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9456afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9457afb14e9bSmrgthen : 9458afb14e9bSmrg printf %s "(cached) " >&6 9459afb14e9bSmrgelse $as_nop 946061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 946161c899d4Smrg/* end confdefs.h. */ 946261c899d4Smrgint i; 946361c899d4Smrg_ACEOF 9464afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9465afb14e9bSmrgthen : 946661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9467afb14e9bSmrgelse $as_nop 946861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 946961c899d4Smrgfi 9470afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 947161c899d4Smrgfi 9472afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9473afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 947461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 947561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 947661c899d4Smrgfi 947761c899d4Smrg 947861c899d4Smrgfound="no" 947961c899d4Smrg 948061c899d4Smrg if test $found = "no" ; then 9481ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 948261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 948361c899d4Smrg fi 948461c899d4Smrg 9485ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 948661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 948761c899d4Smrg fi 948861c899d4Smrg 948961c899d4Smrg CFLAGS="$CFLAGS -Wmain" 949061c899d4Smrg 9491afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9492afb14e9bSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 949361c899d4Smrg cacheid=xorg_cv_cc_flag__Wmain 9494afb14e9bSmrg if eval test \${$cacheid+y} 9495afb14e9bSmrgthen : 9496afb14e9bSmrg printf %s "(cached) " >&6 9497afb14e9bSmrgelse $as_nop 949861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 949961c899d4Smrg/* end confdefs.h. */ 950061c899d4Smrgint i; 950161c899d4Smrgint 9502afb14e9bSmrgmain (void) 950361c899d4Smrg{ 950461c899d4Smrg 950561c899d4Smrg ; 950661c899d4Smrg return 0; 950761c899d4Smrg} 950861c899d4Smrg_ACEOF 9509afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9510afb14e9bSmrgthen : 951161c899d4Smrg eval $cacheid=yes 9512afb14e9bSmrgelse $as_nop 951361c899d4Smrg eval $cacheid=no 951461c899d4Smrgfi 9515afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 951661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 951761c899d4Smrgfi 951861c899d4Smrg 951961c899d4Smrg 952061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 952161c899d4Smrg 952261c899d4Smrg eval supported=\$$cacheid 9523afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9524afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 952561c899d4Smrg if test "$supported" = "yes" ; then 952661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 952761c899d4Smrg found="yes" 952861c899d4Smrg fi 952961c899d4Smrg fi 953061c899d4Smrg 953161c899d4Smrg 953261c899d4Smrg 953361c899d4Smrg 953461c899d4Smrg 953561c899d4Smrg 953661c899d4Smrg 953761c899d4Smrg 953861c899d4Smrg 953961c899d4Smrg 954061c899d4Smrg 954161c899d4Smrg 954261c899d4Smrg 954361c899d4Smrg 954461c899d4Smrg 954561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 954661c899d4Smrg 954761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 954861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9550afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9551afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9552afb14e9bSmrgthen : 9553afb14e9bSmrg printf %s "(cached) " >&6 9554afb14e9bSmrgelse $as_nop 955561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 955661c899d4Smrg/* end confdefs.h. */ 955761c899d4Smrgint i; 955861c899d4Smrg_ACEOF 9559afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9560afb14e9bSmrgthen : 956161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9562afb14e9bSmrgelse $as_nop 956361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 956461c899d4Smrgfi 9565afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 956661c899d4Smrgfi 9567afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9568afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 956961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 957061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 957161c899d4Smrgfi 957261c899d4Smrg 957361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 957461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 957561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 957661c899d4Smrg fi 957761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9578afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9579afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9580afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9581afb14e9bSmrgthen : 9582afb14e9bSmrg printf %s "(cached) " >&6 9583afb14e9bSmrgelse $as_nop 958461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 958561c899d4Smrg/* end confdefs.h. */ 958661c899d4Smrgint i; 958761c899d4Smrg_ACEOF 9588afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9589afb14e9bSmrgthen : 959061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9591afb14e9bSmrgelse $as_nop 959261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 959361c899d4Smrgfi 9594afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 959561c899d4Smrgfi 9596afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9597afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 959861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 959961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 960061c899d4Smrgfi 960161c899d4Smrg 960261c899d4Smrgfound="no" 960361c899d4Smrg 960461c899d4Smrg if test $found = "no" ; then 9605ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 960661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 960761c899d4Smrg fi 960861c899d4Smrg 9609ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 961061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 961161c899d4Smrg fi 961261c899d4Smrg 961361c899d4Smrg CFLAGS="$CFLAGS -Wmissing-braces" 961461c899d4Smrg 9615afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9616afb14e9bSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 961761c899d4Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9618afb14e9bSmrg if eval test \${$cacheid+y} 9619afb14e9bSmrgthen : 9620afb14e9bSmrg printf %s "(cached) " >&6 9621afb14e9bSmrgelse $as_nop 962261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 962361c899d4Smrg/* end confdefs.h. */ 962461c899d4Smrgint i; 962561c899d4Smrgint 9626afb14e9bSmrgmain (void) 962761c899d4Smrg{ 962861c899d4Smrg 962961c899d4Smrg ; 963061c899d4Smrg return 0; 963161c899d4Smrg} 963261c899d4Smrg_ACEOF 9633afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9634afb14e9bSmrgthen : 963561c899d4Smrg eval $cacheid=yes 9636afb14e9bSmrgelse $as_nop 963761c899d4Smrg eval $cacheid=no 963861c899d4Smrgfi 9639afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 964061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 964161c899d4Smrgfi 964261c899d4Smrg 964361c899d4Smrg 964461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 964561c899d4Smrg 964661c899d4Smrg eval supported=\$$cacheid 9647afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9648afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 964961c899d4Smrg if test "$supported" = "yes" ; then 965061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 965161c899d4Smrg found="yes" 965261c899d4Smrg fi 965361c899d4Smrg fi 965461c899d4Smrg 965561c899d4Smrg 965661c899d4Smrg 965761c899d4Smrg 965861c899d4Smrg 965961c899d4Smrg 966061c899d4Smrg 966161c899d4Smrg 966261c899d4Smrg 966361c899d4Smrg 966461c899d4Smrg 966561c899d4Smrg 966661c899d4Smrg 966761c899d4Smrg 966861c899d4Smrg 966961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 967061c899d4Smrg 967161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 967261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9674afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9675afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9676afb14e9bSmrgthen : 9677afb14e9bSmrg printf %s "(cached) " >&6 9678afb14e9bSmrgelse $as_nop 967961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 968061c899d4Smrg/* end confdefs.h. */ 968161c899d4Smrgint i; 968261c899d4Smrg_ACEOF 9683afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9684afb14e9bSmrgthen : 968561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9686afb14e9bSmrgelse $as_nop 968761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 968861c899d4Smrgfi 9689afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 969061c899d4Smrgfi 9691afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9692afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 969361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 969461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 969561c899d4Smrgfi 969661c899d4Smrg 969761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 969861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 969961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 970061c899d4Smrg fi 970161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9702afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9703afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9704afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9705afb14e9bSmrgthen : 9706afb14e9bSmrg printf %s "(cached) " >&6 9707afb14e9bSmrgelse $as_nop 970861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 970961c899d4Smrg/* end confdefs.h. */ 971061c899d4Smrgint i; 971161c899d4Smrg_ACEOF 9712afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9713afb14e9bSmrgthen : 971461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9715afb14e9bSmrgelse $as_nop 971661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 971761c899d4Smrgfi 9718afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 971961c899d4Smrgfi 9720afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9721afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 972261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 972361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 972461c899d4Smrgfi 972561c899d4Smrg 972661c899d4Smrgfound="no" 972761c899d4Smrg 972861c899d4Smrg if test $found = "no" ; then 9729ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 973061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 973161c899d4Smrg fi 973261c899d4Smrg 9733ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 973461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 973561c899d4Smrg fi 973661c899d4Smrg 973761c899d4Smrg CFLAGS="$CFLAGS -Wsequence-point" 973861c899d4Smrg 9739afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9740afb14e9bSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 974161c899d4Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9742afb14e9bSmrg if eval test \${$cacheid+y} 9743afb14e9bSmrgthen : 9744afb14e9bSmrg printf %s "(cached) " >&6 9745afb14e9bSmrgelse $as_nop 974661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 974761c899d4Smrg/* end confdefs.h. */ 974861c899d4Smrgint i; 974961c899d4Smrgint 9750afb14e9bSmrgmain (void) 975161c899d4Smrg{ 975261c899d4Smrg 975361c899d4Smrg ; 975461c899d4Smrg return 0; 975561c899d4Smrg} 975661c899d4Smrg_ACEOF 9757afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9758afb14e9bSmrgthen : 975961c899d4Smrg eval $cacheid=yes 9760afb14e9bSmrgelse $as_nop 976161c899d4Smrg eval $cacheid=no 976261c899d4Smrgfi 9763afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 976461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 976561c899d4Smrgfi 976661c899d4Smrg 976761c899d4Smrg 976861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 976961c899d4Smrg 977061c899d4Smrg eval supported=\$$cacheid 9771afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9772afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 977361c899d4Smrg if test "$supported" = "yes" ; then 977461c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 977561c899d4Smrg found="yes" 977661c899d4Smrg fi 977761c899d4Smrg fi 977861c899d4Smrg 977961c899d4Smrg 978061c899d4Smrg 978161c899d4Smrg 978261c899d4Smrg 978361c899d4Smrg 978461c899d4Smrg 978561c899d4Smrg 978661c899d4Smrg 978761c899d4Smrg 978861c899d4Smrg 978961c899d4Smrg 979061c899d4Smrg 979161c899d4Smrg 979261c899d4Smrg 979361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 979461c899d4Smrg 979561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 979661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9797afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9798afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9799afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9800afb14e9bSmrgthen : 9801afb14e9bSmrg printf %s "(cached) " >&6 9802afb14e9bSmrgelse $as_nop 980361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 980461c899d4Smrg/* end confdefs.h. */ 980561c899d4Smrgint i; 980661c899d4Smrg_ACEOF 9807afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9808afb14e9bSmrgthen : 980961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9810afb14e9bSmrgelse $as_nop 981161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 981261c899d4Smrgfi 9813afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 981461c899d4Smrgfi 9815afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9816afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 981761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 981861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 981961c899d4Smrgfi 982061c899d4Smrg 982161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 982261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 982361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 982461c899d4Smrg fi 982561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9827afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9828afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9829afb14e9bSmrgthen : 9830afb14e9bSmrg printf %s "(cached) " >&6 9831afb14e9bSmrgelse $as_nop 983261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 983361c899d4Smrg/* end confdefs.h. */ 983461c899d4Smrgint i; 983561c899d4Smrg_ACEOF 9836afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9837afb14e9bSmrgthen : 983861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9839afb14e9bSmrgelse $as_nop 984061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 984161c899d4Smrgfi 9842afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 984361c899d4Smrgfi 9844afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9845afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 984661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 984761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 984861c899d4Smrgfi 984961c899d4Smrg 985061c899d4Smrgfound="no" 985161c899d4Smrg 985261c899d4Smrg if test $found = "no" ; then 9853ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 985461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 985561c899d4Smrg fi 985661c899d4Smrg 9857ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 985861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 985961c899d4Smrg fi 986061c899d4Smrg 986161c899d4Smrg CFLAGS="$CFLAGS -Wreturn-type" 986261c899d4Smrg 9863afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9864afb14e9bSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 986561c899d4Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9866afb14e9bSmrg if eval test \${$cacheid+y} 9867afb14e9bSmrgthen : 9868afb14e9bSmrg printf %s "(cached) " >&6 9869afb14e9bSmrgelse $as_nop 987061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 987161c899d4Smrg/* end confdefs.h. */ 987261c899d4Smrgint i; 987361c899d4Smrgint 9874afb14e9bSmrgmain (void) 987561c899d4Smrg{ 987661c899d4Smrg 987761c899d4Smrg ; 987861c899d4Smrg return 0; 987961c899d4Smrg} 988061c899d4Smrg_ACEOF 9881afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 9882afb14e9bSmrgthen : 988361c899d4Smrg eval $cacheid=yes 9884afb14e9bSmrgelse $as_nop 988561c899d4Smrg eval $cacheid=no 988661c899d4Smrgfi 9887afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 988861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 988961c899d4Smrgfi 989061c899d4Smrg 989161c899d4Smrg 989261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 989361c899d4Smrg 989461c899d4Smrg eval supported=\$$cacheid 9895afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9896afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 989761c899d4Smrg if test "$supported" = "yes" ; then 989861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 989961c899d4Smrg found="yes" 990061c899d4Smrg fi 990161c899d4Smrg fi 990261c899d4Smrg 990361c899d4Smrg 990461c899d4Smrg 990561c899d4Smrg 990661c899d4Smrg 990761c899d4Smrg 990861c899d4Smrg 990961c899d4Smrg 991061c899d4Smrg 991161c899d4Smrg 991261c899d4Smrg 991361c899d4Smrg 991461c899d4Smrg 991561c899d4Smrg 991661c899d4Smrg 991761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 991861c899d4Smrg 991961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 992061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9922afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9923afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9924afb14e9bSmrgthen : 9925afb14e9bSmrg printf %s "(cached) " >&6 9926afb14e9bSmrgelse $as_nop 992761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 992861c899d4Smrg/* end confdefs.h. */ 992961c899d4Smrgint i; 993061c899d4Smrg_ACEOF 9931afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9932afb14e9bSmrgthen : 993361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9934afb14e9bSmrgelse $as_nop 993561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 993661c899d4Smrgfi 9937afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 993861c899d4Smrgfi 9939afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9940afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 994161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 994261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 994361c899d4Smrgfi 994461c899d4Smrg 994561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 994661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 994761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 994861c899d4Smrg fi 994961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9950afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9951afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9952afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9953afb14e9bSmrgthen : 9954afb14e9bSmrg printf %s "(cached) " >&6 9955afb14e9bSmrgelse $as_nop 995661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995761c899d4Smrg/* end confdefs.h. */ 995861c899d4Smrgint i; 995961c899d4Smrg_ACEOF 9960afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 9961afb14e9bSmrgthen : 996261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9963afb14e9bSmrgelse $as_nop 996461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 996561c899d4Smrgfi 9966afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 996761c899d4Smrgfi 9968afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9969afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 997061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 997161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 997261c899d4Smrgfi 997361c899d4Smrg 997461c899d4Smrgfound="no" 997561c899d4Smrg 997661c899d4Smrg if test $found = "no" ; then 9977ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 997861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 997961c899d4Smrg fi 998061c899d4Smrg 9981ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 998261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 998361c899d4Smrg fi 998461c899d4Smrg 998561c899d4Smrg CFLAGS="$CFLAGS -Wtrigraphs" 998661c899d4Smrg 9987afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9988afb14e9bSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 998961c899d4Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9990afb14e9bSmrg if eval test \${$cacheid+y} 9991afb14e9bSmrgthen : 9992afb14e9bSmrg printf %s "(cached) " >&6 9993afb14e9bSmrgelse $as_nop 999461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 999561c899d4Smrg/* end confdefs.h. */ 999661c899d4Smrgint i; 999761c899d4Smrgint 9998afb14e9bSmrgmain (void) 999961c899d4Smrg{ 1000061c899d4Smrg 1000161c899d4Smrg ; 1000261c899d4Smrg return 0; 1000361c899d4Smrg} 1000461c899d4Smrg_ACEOF 10005afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10006afb14e9bSmrgthen : 1000761c899d4Smrg eval $cacheid=yes 10008afb14e9bSmrgelse $as_nop 1000961c899d4Smrg eval $cacheid=no 1001061c899d4Smrgfi 10011afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1001261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1001361c899d4Smrgfi 1001461c899d4Smrg 1001561c899d4Smrg 1001661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1001761c899d4Smrg 1001861c899d4Smrg eval supported=\$$cacheid 10019afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10020afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1002161c899d4Smrg if test "$supported" = "yes" ; then 1002261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1002361c899d4Smrg found="yes" 1002461c899d4Smrg fi 1002561c899d4Smrg fi 1002661c899d4Smrg 1002761c899d4Smrg 1002861c899d4Smrg 1002961c899d4Smrg 1003061c899d4Smrg 1003161c899d4Smrg 1003261c899d4Smrg 1003361c899d4Smrg 1003461c899d4Smrg 1003561c899d4Smrg 1003661c899d4Smrg 1003761c899d4Smrg 1003861c899d4Smrg 1003961c899d4Smrg 1004061c899d4Smrg 1004161c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1004261c899d4Smrg 1004361c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1004461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10046afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10047afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10048afb14e9bSmrgthen : 10049afb14e9bSmrg printf %s "(cached) " >&6 10050afb14e9bSmrgelse $as_nop 1005161c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1005261c899d4Smrg/* end confdefs.h. */ 1005361c899d4Smrgint i; 1005461c899d4Smrg_ACEOF 10055afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10056afb14e9bSmrgthen : 1005761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10058afb14e9bSmrgelse $as_nop 1005961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1006061c899d4Smrgfi 10061afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1006261c899d4Smrgfi 10063afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10064afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1006561c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1006661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1006761c899d4Smrgfi 1006861c899d4Smrg 1006961c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1007061c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1007161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1007261c899d4Smrg fi 1007361c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10074afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10075afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10076afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10077afb14e9bSmrgthen : 10078afb14e9bSmrg printf %s "(cached) " >&6 10079afb14e9bSmrgelse $as_nop 1008061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1008161c899d4Smrg/* end confdefs.h. */ 1008261c899d4Smrgint i; 1008361c899d4Smrg_ACEOF 10084afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10085afb14e9bSmrgthen : 1008661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10087afb14e9bSmrgelse $as_nop 1008861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1008961c899d4Smrgfi 10090afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1009161c899d4Smrgfi 10092afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10093afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1009461c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1009561c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1009661c899d4Smrgfi 1009761c899d4Smrg 1009861c899d4Smrgfound="no" 1009961c899d4Smrg 1010061c899d4Smrg if test $found = "no" ; then 10101ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1010261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1010361c899d4Smrg fi 1010461c899d4Smrg 10105ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1010661c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1010761c899d4Smrg fi 1010861c899d4Smrg 1010961c899d4Smrg CFLAGS="$CFLAGS -Warray-bounds" 1011061c899d4Smrg 10111afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10112afb14e9bSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 1011361c899d4Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 10114afb14e9bSmrg if eval test \${$cacheid+y} 10115afb14e9bSmrgthen : 10116afb14e9bSmrg printf %s "(cached) " >&6 10117afb14e9bSmrgelse $as_nop 1011861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1011961c899d4Smrg/* end confdefs.h. */ 1012061c899d4Smrgint i; 1012161c899d4Smrgint 10122afb14e9bSmrgmain (void) 1012361c899d4Smrg{ 1012461c899d4Smrg 1012561c899d4Smrg ; 1012661c899d4Smrg return 0; 1012761c899d4Smrg} 1012861c899d4Smrg_ACEOF 10129afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10130afb14e9bSmrgthen : 1013161c899d4Smrg eval $cacheid=yes 10132afb14e9bSmrgelse $as_nop 1013361c899d4Smrg eval $cacheid=no 1013461c899d4Smrgfi 10135afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1013661c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1013761c899d4Smrgfi 1013861c899d4Smrg 1013961c899d4Smrg 1014061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1014161c899d4Smrg 1014261c899d4Smrg eval supported=\$$cacheid 10143afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1014561c899d4Smrg if test "$supported" = "yes" ; then 1014661c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1014761c899d4Smrg found="yes" 1014861c899d4Smrg fi 1014961c899d4Smrg fi 1015061c899d4Smrg 1015161c899d4Smrg 1015261c899d4Smrg 1015361c899d4Smrg 1015461c899d4Smrg 1015561c899d4Smrg 1015661c899d4Smrg 1015761c899d4Smrg 1015861c899d4Smrg 1015961c899d4Smrg 1016061c899d4Smrg 1016161c899d4Smrg 1016261c899d4Smrg 1016361c899d4Smrg 1016461c899d4Smrg 1016561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1016661c899d4Smrg 1016761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1016861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10172afb14e9bSmrgthen : 10173afb14e9bSmrg printf %s "(cached) " >&6 10174afb14e9bSmrgelse $as_nop 1017561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1017661c899d4Smrg/* end confdefs.h. */ 1017761c899d4Smrgint i; 1017861c899d4Smrg_ACEOF 10179afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10180afb14e9bSmrgthen : 1018161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10182afb14e9bSmrgelse $as_nop 1018361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1018461c899d4Smrgfi 10185afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1018661c899d4Smrgfi 10187afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10188afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1018961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1019061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1019161c899d4Smrgfi 1019261c899d4Smrg 1019361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1019461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1019561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1019661c899d4Smrg fi 1019761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10198afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10199afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10200afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10201afb14e9bSmrgthen : 10202afb14e9bSmrg printf %s "(cached) " >&6 10203afb14e9bSmrgelse $as_nop 1020461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1020561c899d4Smrg/* end confdefs.h. */ 1020661c899d4Smrgint i; 1020761c899d4Smrg_ACEOF 10208afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10209afb14e9bSmrgthen : 1021061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10211afb14e9bSmrgelse $as_nop 1021261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1021361c899d4Smrgfi 10214afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1021561c899d4Smrgfi 10216afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10217afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1021861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1021961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1022061c899d4Smrgfi 1022161c899d4Smrg 1022261c899d4Smrgfound="no" 1022361c899d4Smrg 1022461c899d4Smrg if test $found = "no" ; then 10225ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1022661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1022761c899d4Smrg fi 1022861c899d4Smrg 10229ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1023061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1023161c899d4Smrg fi 1023261c899d4Smrg 1023361c899d4Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1023461c899d4Smrg 10235afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10236afb14e9bSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1023761c899d4Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10238afb14e9bSmrg if eval test \${$cacheid+y} 10239afb14e9bSmrgthen : 10240afb14e9bSmrg printf %s "(cached) " >&6 10241afb14e9bSmrgelse $as_nop 1024261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1024361c899d4Smrg/* end confdefs.h. */ 1024461c899d4Smrgint i; 1024561c899d4Smrgint 10246afb14e9bSmrgmain (void) 1024761c899d4Smrg{ 1024861c899d4Smrg 1024961c899d4Smrg ; 1025061c899d4Smrg return 0; 1025161c899d4Smrg} 1025261c899d4Smrg_ACEOF 10253afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10254afb14e9bSmrgthen : 1025561c899d4Smrg eval $cacheid=yes 10256afb14e9bSmrgelse $as_nop 1025761c899d4Smrg eval $cacheid=no 1025861c899d4Smrgfi 10259afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1026061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1026161c899d4Smrgfi 1026261c899d4Smrg 1026361c899d4Smrg 1026461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1026561c899d4Smrg 1026661c899d4Smrg eval supported=\$$cacheid 10267afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10268afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1026961c899d4Smrg if test "$supported" = "yes" ; then 1027061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1027161c899d4Smrg found="yes" 1027261c899d4Smrg fi 1027361c899d4Smrg fi 1027461c899d4Smrg 1027561c899d4Smrg 1027661c899d4Smrg 1027761c899d4Smrg 1027861c899d4Smrg 1027961c899d4Smrg 1028061c899d4Smrg 1028161c899d4Smrg 1028261c899d4Smrg 1028361c899d4Smrg 1028461c899d4Smrg 1028561c899d4Smrg 1028661c899d4Smrg 1028761c899d4Smrg 1028861c899d4Smrg 1028961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1029061c899d4Smrg 1029161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1029261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10293afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10294afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10295afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10296afb14e9bSmrgthen : 10297afb14e9bSmrg printf %s "(cached) " >&6 10298afb14e9bSmrgelse $as_nop 1029961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1030061c899d4Smrg/* end confdefs.h. */ 1030161c899d4Smrgint i; 1030261c899d4Smrg_ACEOF 10303afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10304afb14e9bSmrgthen : 1030561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10306afb14e9bSmrgelse $as_nop 1030761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1030861c899d4Smrgfi 10309afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1031061c899d4Smrgfi 10311afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10312afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1031361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1031461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1031561c899d4Smrgfi 1031661c899d4Smrg 1031761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1031861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1031961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1032061c899d4Smrg fi 1032161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10323afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10324afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10325afb14e9bSmrgthen : 10326afb14e9bSmrg printf %s "(cached) " >&6 10327afb14e9bSmrgelse $as_nop 1032861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1032961c899d4Smrg/* end confdefs.h. */ 1033061c899d4Smrgint i; 1033161c899d4Smrg_ACEOF 10332afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10333afb14e9bSmrgthen : 1033461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10335afb14e9bSmrgelse $as_nop 1033661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1033761c899d4Smrgfi 10338afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1033961c899d4Smrgfi 10340afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10341afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1034261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1034361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1034461c899d4Smrgfi 1034561c899d4Smrg 1034661c899d4Smrgfound="no" 1034761c899d4Smrg 1034861c899d4Smrg if test $found = "no" ; then 10349ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1035061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1035161c899d4Smrg fi 1035261c899d4Smrg 10353ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1035461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1035561c899d4Smrg fi 1035661c899d4Smrg 1035761c899d4Smrg CFLAGS="$CFLAGS -Waddress" 1035861c899d4Smrg 10359afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10360afb14e9bSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1036161c899d4Smrg cacheid=xorg_cv_cc_flag__Waddress 10362afb14e9bSmrg if eval test \${$cacheid+y} 10363afb14e9bSmrgthen : 10364afb14e9bSmrg printf %s "(cached) " >&6 10365afb14e9bSmrgelse $as_nop 1036661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1036761c899d4Smrg/* end confdefs.h. */ 1036861c899d4Smrgint i; 1036961c899d4Smrgint 10370afb14e9bSmrgmain (void) 1037161c899d4Smrg{ 1037261c899d4Smrg 1037361c899d4Smrg ; 1037461c899d4Smrg return 0; 1037561c899d4Smrg} 1037661c899d4Smrg_ACEOF 10377afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10378afb14e9bSmrgthen : 1037961c899d4Smrg eval $cacheid=yes 10380afb14e9bSmrgelse $as_nop 1038161c899d4Smrg eval $cacheid=no 1038261c899d4Smrgfi 10383afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1038461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1038561c899d4Smrgfi 1038661c899d4Smrg 1038761c899d4Smrg 1038861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1038961c899d4Smrg 1039061c899d4Smrg eval supported=\$$cacheid 10391afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10392afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1039361c899d4Smrg if test "$supported" = "yes" ; then 1039461c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1039561c899d4Smrg found="yes" 1039661c899d4Smrg fi 1039761c899d4Smrg fi 1039861c899d4Smrg 1039961c899d4Smrg 1040061c899d4Smrg 1040161c899d4Smrg 1040261c899d4Smrg 1040361c899d4Smrg 1040461c899d4Smrg 1040561c899d4Smrg 1040661c899d4Smrg 1040761c899d4Smrg 1040861c899d4Smrg 1040961c899d4Smrg 1041061c899d4Smrg 1041161c899d4Smrg 1041261c899d4Smrg 1041361c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1041461c899d4Smrg 1041561c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1041661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10417afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10418afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10419afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10420afb14e9bSmrgthen : 10421afb14e9bSmrg printf %s "(cached) " >&6 10422afb14e9bSmrgelse $as_nop 1042361c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1042461c899d4Smrg/* end confdefs.h. */ 1042561c899d4Smrgint i; 1042661c899d4Smrg_ACEOF 10427afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10428afb14e9bSmrgthen : 1042961c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10430afb14e9bSmrgelse $as_nop 1043161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1043261c899d4Smrgfi 10433afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1043461c899d4Smrgfi 10435afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10436afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1043761c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1043861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1043961c899d4Smrgfi 1044061c899d4Smrg 1044161c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1044261c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1044361c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1044461c899d4Smrg fi 1044561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10446afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10447afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10448afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10449afb14e9bSmrgthen : 10450afb14e9bSmrg printf %s "(cached) " >&6 10451afb14e9bSmrgelse $as_nop 1045261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1045361c899d4Smrg/* end confdefs.h. */ 1045461c899d4Smrgint i; 1045561c899d4Smrg_ACEOF 10456afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10457afb14e9bSmrgthen : 1045861c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10459afb14e9bSmrgelse $as_nop 1046061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1046161c899d4Smrgfi 10462afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1046361c899d4Smrgfi 10464afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10465afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1046661c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1046761c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1046861c899d4Smrgfi 1046961c899d4Smrg 1047061c899d4Smrgfound="no" 1047161c899d4Smrg 1047261c899d4Smrg if test $found = "no" ; then 10473ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1047461c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1047561c899d4Smrg fi 1047661c899d4Smrg 10477ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1047861c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1047961c899d4Smrg fi 1048061c899d4Smrg 1048161c899d4Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1048261c899d4Smrg 10483afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10484afb14e9bSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1048561c899d4Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10486afb14e9bSmrg if eval test \${$cacheid+y} 10487afb14e9bSmrgthen : 10488afb14e9bSmrg printf %s "(cached) " >&6 10489afb14e9bSmrgelse $as_nop 1049061c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1049161c899d4Smrg/* end confdefs.h. */ 1049261c899d4Smrgint i; 1049361c899d4Smrgint 10494afb14e9bSmrgmain (void) 1049561c899d4Smrg{ 1049661c899d4Smrg 1049761c899d4Smrg ; 1049861c899d4Smrg return 0; 1049961c899d4Smrg} 1050061c899d4Smrg_ACEOF 10501afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10502afb14e9bSmrgthen : 1050361c899d4Smrg eval $cacheid=yes 10504afb14e9bSmrgelse $as_nop 1050561c899d4Smrg eval $cacheid=no 1050661c899d4Smrgfi 10507afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1050861c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1050961c899d4Smrgfi 1051061c899d4Smrg 1051161c899d4Smrg 1051261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1051361c899d4Smrg 1051461c899d4Smrg eval supported=\$$cacheid 10515afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10516afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1051761c899d4Smrg if test "$supported" = "yes" ; then 1051861c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1051961c899d4Smrg found="yes" 1052061c899d4Smrg fi 1052161c899d4Smrg fi 1052261c899d4Smrg 1052361c899d4Smrg 1052461c899d4Smrg 1052561c899d4Smrg 1052661c899d4Smrg 1052761c899d4Smrg 1052861c899d4Smrg 1052961c899d4Smrg 1053061c899d4Smrg 1053161c899d4Smrg 1053261c899d4Smrg 1053361c899d4Smrg 1053461c899d4Smrg 1053561c899d4Smrg 1053661c899d4Smrg 1053761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1053861c899d4Smrg 1053961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1054061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10542afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10543afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10544afb14e9bSmrgthen : 10545afb14e9bSmrg printf %s "(cached) " >&6 10546afb14e9bSmrgelse $as_nop 1054761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1054861c899d4Smrg/* end confdefs.h. */ 1054961c899d4Smrgint i; 1055061c899d4Smrg_ACEOF 10551afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10552afb14e9bSmrgthen : 1055361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10554afb14e9bSmrgelse $as_nop 1055561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1055661c899d4Smrgfi 10557afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1055861c899d4Smrgfi 10559afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10560afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1056161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1056261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1056361c899d4Smrgfi 1056461c899d4Smrg 1056561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1056661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1056761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1056861c899d4Smrg fi 1056961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10571afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10572afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10573afb14e9bSmrgthen : 10574afb14e9bSmrg printf %s "(cached) " >&6 10575afb14e9bSmrgelse $as_nop 1057661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1057761c899d4Smrg/* end confdefs.h. */ 1057861c899d4Smrgint i; 1057961c899d4Smrg_ACEOF 10580afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10581afb14e9bSmrgthen : 1058261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10583afb14e9bSmrgelse $as_nop 1058461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1058561c899d4Smrgfi 10586afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1058761c899d4Smrgfi 10588afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10589afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1059061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1059161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1059261c899d4Smrgfi 1059361c899d4Smrg 1059461c899d4Smrgfound="no" 1059561c899d4Smrg 1059661c899d4Smrg if test $found = "no" ; then 10597ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1059861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1059961c899d4Smrg fi 1060061c899d4Smrg 10601ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1060261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1060361c899d4Smrg fi 1060461c899d4Smrg 1060561c899d4Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1060661c899d4Smrg 10607afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10608afb14e9bSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1060961c899d4Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10610afb14e9bSmrg if eval test \${$cacheid+y} 10611afb14e9bSmrgthen : 10612afb14e9bSmrg printf %s "(cached) " >&6 10613afb14e9bSmrgelse $as_nop 1061461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1061561c899d4Smrg/* end confdefs.h. */ 1061661c899d4Smrgint i; 1061761c899d4Smrgint 10618afb14e9bSmrgmain (void) 1061961c899d4Smrg{ 1062061c899d4Smrg 1062161c899d4Smrg ; 1062261c899d4Smrg return 0; 1062361c899d4Smrg} 1062461c899d4Smrg_ACEOF 10625afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10626afb14e9bSmrgthen : 1062761c899d4Smrg eval $cacheid=yes 10628afb14e9bSmrgelse $as_nop 1062961c899d4Smrg eval $cacheid=no 1063061c899d4Smrgfi 10631afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1063261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1063361c899d4Smrgfi 1063461c899d4Smrg 1063561c899d4Smrg 1063661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1063761c899d4Smrg 1063861c899d4Smrg eval supported=\$$cacheid 10639afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10640afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1064161c899d4Smrg if test "$supported" = "yes" ; then 1064261c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1064361c899d4Smrg found="yes" 1064461c899d4Smrg fi 1064561c899d4Smrg fi 1064661c899d4Smrg 1064761c899d4Smrg 1064861c899d4Smrgfi 1064961c899d4Smrg 1065061c899d4Smrg 1065161c899d4Smrg 1065261c899d4Smrg 1065361c899d4Smrg 1065461c899d4Smrg 1065561c899d4Smrg 1065661c899d4Smrg CWARNFLAGS="$BASE_CFLAGS" 1065761c899d4Smrg if test "x$GCC" = xyes ; then 1065861c899d4Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1065961c899d4Smrg fi 1066061c899d4Smrg 1066161c899d4Smrg 1066261c899d4Smrg 1066361c899d4Smrg 1066461c899d4Smrg 1066561c899d4Smrg 1066661c899d4Smrg 1066761c899d4Smrg 1066861c899d4Smrg# Check whether --enable-strict-compilation was given. 10669afb14e9bSmrgif test ${enable_strict_compilation+y} 10670afb14e9bSmrgthen : 1067161c899d4Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10672afb14e9bSmrgelse $as_nop 1067361c899d4Smrg STRICT_COMPILE=no 1067461c899d4Smrgfi 1067561c899d4Smrg 1067661c899d4Smrg 1067761c899d4Smrg 1067861c899d4Smrg 1067961c899d4Smrg 1068061c899d4Smrg 1068161c899d4SmrgSTRICT_CFLAGS="" 1068261c899d4Smrg 1068361c899d4Smrg 1068461c899d4Smrg 1068561c899d4Smrg 1068661c899d4Smrg 1068761c899d4Smrg 1068861c899d4Smrg 1068961c899d4Smrg 1069061c899d4Smrg 1069161c899d4Smrg 1069261c899d4Smrg 1069361c899d4Smrg 1069461c899d4Smrg 1069561c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1069661c899d4Smrg 1069761c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1069861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10699afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10700afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10701afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10702afb14e9bSmrgthen : 10703afb14e9bSmrg printf %s "(cached) " >&6 10704afb14e9bSmrgelse $as_nop 1070561c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1070661c899d4Smrg/* end confdefs.h. */ 1070761c899d4Smrgint i; 1070861c899d4Smrg_ACEOF 10709afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10710afb14e9bSmrgthen : 1071161c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10712afb14e9bSmrgelse $as_nop 1071361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1071461c899d4Smrgfi 10715afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1071661c899d4Smrgfi 10717afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10718afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1071961c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1072061c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1072161c899d4Smrgfi 1072261c899d4Smrg 1072361c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1072461c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1072561c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1072661c899d4Smrg fi 1072761c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10728afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10729afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10730afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10731afb14e9bSmrgthen : 10732afb14e9bSmrg printf %s "(cached) " >&6 10733afb14e9bSmrgelse $as_nop 1073461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1073561c899d4Smrg/* end confdefs.h. */ 1073661c899d4Smrgint i; 1073761c899d4Smrg_ACEOF 10738afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10739afb14e9bSmrgthen : 1074061c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10741afb14e9bSmrgelse $as_nop 1074261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1074361c899d4Smrgfi 10744afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1074561c899d4Smrgfi 10746afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10747afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1074861c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1074961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1075061c899d4Smrgfi 1075161c899d4Smrg 1075261c899d4Smrgfound="no" 1075361c899d4Smrg 1075461c899d4Smrg if test $found = "no" ; then 10755ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1075661c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1075761c899d4Smrg fi 1075861c899d4Smrg 10759ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1076061c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1076161c899d4Smrg fi 1076261c899d4Smrg 1076361c899d4Smrg CFLAGS="$CFLAGS -pedantic" 1076461c899d4Smrg 10765afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10766afb14e9bSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1076761c899d4Smrg cacheid=xorg_cv_cc_flag__pedantic 10768afb14e9bSmrg if eval test \${$cacheid+y} 10769afb14e9bSmrgthen : 10770afb14e9bSmrg printf %s "(cached) " >&6 10771afb14e9bSmrgelse $as_nop 1077261c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1077361c899d4Smrg/* end confdefs.h. */ 1077461c899d4Smrgint i; 1077561c899d4Smrgint 10776afb14e9bSmrgmain (void) 1077761c899d4Smrg{ 1077861c899d4Smrg 1077961c899d4Smrg ; 1078061c899d4Smrg return 0; 1078161c899d4Smrg} 1078261c899d4Smrg_ACEOF 10783afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10784afb14e9bSmrgthen : 1078561c899d4Smrg eval $cacheid=yes 10786afb14e9bSmrgelse $as_nop 1078761c899d4Smrg eval $cacheid=no 1078861c899d4Smrgfi 10789afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1079061c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1079161c899d4Smrgfi 1079261c899d4Smrg 1079361c899d4Smrg 1079461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1079561c899d4Smrg 1079661c899d4Smrg eval supported=\$$cacheid 10797afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10798afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1079961c899d4Smrg if test "$supported" = "yes" ; then 1080061c899d4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1080161c899d4Smrg found="yes" 1080261c899d4Smrg fi 1080361c899d4Smrg fi 1080461c899d4Smrg 1080561c899d4Smrg 1080661c899d4Smrg 1080761c899d4Smrg 1080861c899d4Smrg 1080961c899d4Smrg 1081061c899d4Smrg 1081161c899d4Smrg 1081261c899d4Smrg 1081361c899d4Smrg 1081461c899d4Smrg 1081561c899d4Smrg 1081661c899d4Smrg 1081761c899d4Smrg 1081861c899d4Smrg 1081961c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1082061c899d4Smrg 1082161c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1082261c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10823afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10824afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10825afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10826afb14e9bSmrgthen : 10827afb14e9bSmrg printf %s "(cached) " >&6 10828afb14e9bSmrgelse $as_nop 1082961c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1083061c899d4Smrg/* end confdefs.h. */ 1083161c899d4Smrgint i; 1083261c899d4Smrg_ACEOF 10833afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10834afb14e9bSmrgthen : 1083561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10836afb14e9bSmrgelse $as_nop 1083761c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1083861c899d4Smrgfi 10839afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1084061c899d4Smrgfi 10841afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10842afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1084361c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1084461c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1084561c899d4Smrgfi 1084661c899d4Smrg 1084761c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1084861c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1084961c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1085061c899d4Smrg fi 1085161c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10852afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10853afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10854afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10855afb14e9bSmrgthen : 10856afb14e9bSmrg printf %s "(cached) " >&6 10857afb14e9bSmrgelse $as_nop 1085861c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1085961c899d4Smrg/* end confdefs.h. */ 1086061c899d4Smrgint i; 1086161c899d4Smrg_ACEOF 10862afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 10863afb14e9bSmrgthen : 1086461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10865afb14e9bSmrgelse $as_nop 1086661c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1086761c899d4Smrgfi 10868afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1086961c899d4Smrgfi 10870afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10871afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1087261c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1087361c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1087461c899d4Smrgfi 1087561c899d4Smrg 1087661c899d4Smrgfound="no" 1087761c899d4Smrg 1087861c899d4Smrg if test $found = "no" ; then 10879ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1088061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1088161c899d4Smrg fi 1088261c899d4Smrg 10883ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1088461c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1088561c899d4Smrg fi 1088661c899d4Smrg 1088761c899d4Smrg CFLAGS="$CFLAGS -Werror" 1088861c899d4Smrg 10889afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10890afb14e9bSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 1089161c899d4Smrg cacheid=xorg_cv_cc_flag__Werror 10892afb14e9bSmrg if eval test \${$cacheid+y} 10893afb14e9bSmrgthen : 10894afb14e9bSmrg printf %s "(cached) " >&6 10895afb14e9bSmrgelse $as_nop 1089661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1089761c899d4Smrg/* end confdefs.h. */ 1089861c899d4Smrgint i; 1089961c899d4Smrgint 10900afb14e9bSmrgmain (void) 1090161c899d4Smrg{ 1090261c899d4Smrg 1090361c899d4Smrg ; 1090461c899d4Smrg return 0; 1090561c899d4Smrg} 1090661c899d4Smrg_ACEOF 10907afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10908afb14e9bSmrgthen : 1090961c899d4Smrg eval $cacheid=yes 10910afb14e9bSmrgelse $as_nop 1091161c899d4Smrg eval $cacheid=no 1091261c899d4Smrgfi 10913afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1091461c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1091561c899d4Smrgfi 1091661c899d4Smrg 1091761c899d4Smrg 1091861c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1091961c899d4Smrg 1092061c899d4Smrg eval supported=\$$cacheid 10921afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10922afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1092361c899d4Smrg if test "$supported" = "yes" ; then 1092461c899d4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1092561c899d4Smrg found="yes" 1092661c899d4Smrg fi 1092761c899d4Smrg fi 1092861c899d4Smrg 1092961c899d4Smrg if test $found = "no" ; then 10930ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1093161c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1093261c899d4Smrg fi 1093361c899d4Smrg 10934ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1093561c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1093661c899d4Smrg fi 1093761c899d4Smrg 1093861c899d4Smrg CFLAGS="$CFLAGS -errwarn" 1093961c899d4Smrg 10940afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10941afb14e9bSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1094261c899d4Smrg cacheid=xorg_cv_cc_flag__errwarn 10943afb14e9bSmrg if eval test \${$cacheid+y} 10944afb14e9bSmrgthen : 10945afb14e9bSmrg printf %s "(cached) " >&6 10946afb14e9bSmrgelse $as_nop 1094761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1094861c899d4Smrg/* end confdefs.h. */ 1094961c899d4Smrgint i; 1095061c899d4Smrgint 10951afb14e9bSmrgmain (void) 1095261c899d4Smrg{ 1095361c899d4Smrg 1095461c899d4Smrg ; 1095561c899d4Smrg return 0; 1095661c899d4Smrg} 1095761c899d4Smrg_ACEOF 10958afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 10959afb14e9bSmrgthen : 1096061c899d4Smrg eval $cacheid=yes 10961afb14e9bSmrgelse $as_nop 1096261c899d4Smrg eval $cacheid=no 1096361c899d4Smrgfi 10964afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1096561c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1096661c899d4Smrgfi 1096761c899d4Smrg 1096861c899d4Smrg 1096961c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1097061c899d4Smrg 1097161c899d4Smrg eval supported=\$$cacheid 10972afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10973afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1097461c899d4Smrg if test "$supported" = "yes" ; then 1097561c899d4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1097661c899d4Smrg found="yes" 1097761c899d4Smrg fi 1097861c899d4Smrg fi 1097961c899d4Smrg 1098061c899d4Smrg 1098161c899d4Smrg 1098261c899d4Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1098361c899d4Smrg# activate it with -Werror, so we add it here explicitly. 1098461c899d4Smrg 1098561c899d4Smrg 1098661c899d4Smrg 1098761c899d4Smrg 1098861c899d4Smrg 1098961c899d4Smrg 1099061c899d4Smrg 1099161c899d4Smrg 1099261c899d4Smrg 1099361c899d4Smrg 1099461c899d4Smrg 1099561c899d4Smrg 1099661c899d4Smrg 1099761c899d4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1099861c899d4Smrg 1099961c899d4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1100061c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11001afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11002afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11003afb14e9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 11004afb14e9bSmrgthen : 11005afb14e9bSmrg printf %s "(cached) " >&6 11006afb14e9bSmrgelse $as_nop 1100761c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1100861c899d4Smrg/* end confdefs.h. */ 1100961c899d4Smrgint i; 1101061c899d4Smrg_ACEOF 11011afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 11012afb14e9bSmrgthen : 1101361c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 11014afb14e9bSmrgelse $as_nop 1101561c899d4Smrg xorg_cv_cc_flag_unknown_warning_option=no 1101661c899d4Smrgfi 11017afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1101861c899d4Smrgfi 11019afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11020afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1102161c899d4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1102261c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1102361c899d4Smrgfi 1102461c899d4Smrg 1102561c899d4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1102661c899d4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1102761c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1102861c899d4Smrg fi 1102961c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11030afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11031afb14e9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11032afb14e9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11033afb14e9bSmrgthen : 11034afb14e9bSmrg printf %s "(cached) " >&6 11035afb14e9bSmrgelse $as_nop 1103661c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1103761c899d4Smrg/* end confdefs.h. */ 1103861c899d4Smrgint i; 1103961c899d4Smrg_ACEOF 11040afb14e9bSmrgif ac_fn_c_try_compile "$LINENO" 11041afb14e9bSmrgthen : 1104261c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 11043afb14e9bSmrgelse $as_nop 1104461c899d4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1104561c899d4Smrgfi 11046afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1104761c899d4Smrgfi 11048afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11049afb14e9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1105061c899d4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1105161c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1105261c899d4Smrgfi 1105361c899d4Smrg 1105461c899d4Smrgfound="no" 1105561c899d4Smrg 1105661c899d4Smrg if test $found = "no" ; then 11057ecb85c42Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1105861c899d4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1105961c899d4Smrg fi 1106061c899d4Smrg 11061ecb85c42Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1106261c899d4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1106361c899d4Smrg fi 1106461c899d4Smrg 1106561c899d4Smrg CFLAGS="$CFLAGS -Werror=attributes" 1106661c899d4Smrg 11067afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11068afb14e9bSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 11069afb14e9bSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 11070afb14e9bSmrg if eval test \${$cacheid+y} 11071afb14e9bSmrgthen : 11072afb14e9bSmrg printf %s "(cached) " >&6 11073afb14e9bSmrgelse $as_nop 1107461c899d4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1107561c899d4Smrg/* end confdefs.h. */ 1107661c899d4Smrgint i; 1107761c899d4Smrgint 11078afb14e9bSmrgmain (void) 1107961c899d4Smrg{ 1108061c899d4Smrg 1108161c899d4Smrg ; 1108261c899d4Smrg return 0; 1108361c899d4Smrg} 1108461c899d4Smrg_ACEOF 11085afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 11086afb14e9bSmrgthen : 1108761c899d4Smrg eval $cacheid=yes 11088afb14e9bSmrgelse $as_nop 1108961c899d4Smrg eval $cacheid=no 1109061c899d4Smrgfi 11091afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1109261c899d4Smrg conftest$ac_exeext conftest.$ac_ext 1109361c899d4Smrgfi 1109461c899d4Smrg 1109561c899d4Smrg 1109661c899d4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1109761c899d4Smrg 1109861c899d4Smrg eval supported=\$$cacheid 11099afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11100afb14e9bSmrgprintf "%s\n" "$supported" >&6; } 1110161c899d4Smrg if test "$supported" = "yes" ; then 1110261c899d4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1110361c899d4Smrg found="yes" 1110461c899d4Smrg fi 1110561c899d4Smrg fi 1110661c899d4Smrg 1110761c899d4Smrg 1110861c899d4Smrg 1110961c899d4Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1111061c899d4Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1111161c899d4Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1111261c899d4Smrgfi 1111361c899d4Smrg 1111461c899d4Smrg 1111561c899d4Smrg 1111661c899d4Smrg 1111761c899d4Smrg 1111861c899d4Smrg 1111961c899d4Smrgcat >>confdefs.h <<_ACEOF 1112061c899d4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1112161c899d4Smrg_ACEOF 1112261c899d4Smrg 1112361c899d4Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1112461c899d4Smrg if test "x$PVM" = "x"; then 1112561c899d4Smrg PVM="0" 1112661c899d4Smrg fi 1112761c899d4Smrg 11128afb14e9bSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 1112961c899d4Smrg 1113061c899d4Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1113161c899d4Smrg if test "x$PVP" = "x"; then 1113261c899d4Smrg PVP="0" 1113361c899d4Smrg fi 1113461c899d4Smrg 11135afb14e9bSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 1113661c899d4Smrg 1113761c899d4Smrg 1113861c899d4Smrg 11139afb14e9bSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1114061c899d4Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11141afb14e9bSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11142afb14e9bSmrgtouch \$(top_srcdir)/ChangeLog; \ 11143afb14e9bSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1114461c899d4Smrg 1114561c899d4Smrg 1114661c899d4Smrg 1114761c899d4Smrg 1114861c899d4Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1114961c899d4SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1115061c899d4Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11151afb14e9bSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11152afb14e9bSmrgtouch \$(top_srcdir)/INSTALL; \ 11153afb14e9bSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11154afb14e9bSmrg 1115561c899d4Smrg 1115661c899d4Smrg 1115761c899d4Smrg 1115861c899d4Smrg 1115961c899d4Smrg 11160afb14e9bSmrgcase $host_os in 11161afb14e9bSmrg solaris*) 11162afb14e9bSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11163afb14e9bSmrg # check for a man page file found in later versions that use 11164afb14e9bSmrg # traditional section numbers instead 11165afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11166afb14e9bSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11167afb14e9bSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11168afb14e9bSmrgthen : 11169afb14e9bSmrg printf %s "(cached) " >&6 11170afb14e9bSmrgelse $as_nop 11171afb14e9bSmrg test "$cross_compiling" = yes && 11172afb14e9bSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11173afb14e9bSmrgif test -r "/usr/share/man/man7/attributes.7"; then 11174afb14e9bSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 11175afb14e9bSmrgelse 11176afb14e9bSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 11177afb14e9bSmrgfi 11178afb14e9bSmrgfi 11179afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11180afb14e9bSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11181afb14e9bSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11182afb14e9bSmrgthen : 11183afb14e9bSmrg SYSV_MAN_SECTIONS=false 11184afb14e9bSmrgelse $as_nop 11185afb14e9bSmrg SYSV_MAN_SECTIONS=true 11186afb14e9bSmrgfi 11187afb14e9bSmrg 11188afb14e9bSmrg ;; 11189afb14e9bSmrg *) SYSV_MAN_SECTIONS=false ;; 11190afb14e9bSmrgesac 1119161c899d4Smrg 1119261c899d4Smrgif test x$APP_MAN_SUFFIX = x ; then 1119361c899d4Smrg APP_MAN_SUFFIX=1 1119461c899d4Smrgfi 1119561c899d4Smrgif test x$APP_MAN_DIR = x ; then 1119661c899d4Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1119761c899d4Smrgfi 1119861c899d4Smrg 1119961c899d4Smrgif test x$LIB_MAN_SUFFIX = x ; then 1120061c899d4Smrg LIB_MAN_SUFFIX=3 1120161c899d4Smrgfi 1120261c899d4Smrgif test x$LIB_MAN_DIR = x ; then 1120361c899d4Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1120461c899d4Smrgfi 1120561c899d4Smrg 1120661c899d4Smrgif test x$FILE_MAN_SUFFIX = x ; then 11207afb14e9bSmrg case $SYSV_MAN_SECTIONS in 11208afb14e9bSmrg true) FILE_MAN_SUFFIX=4 ;; 11209afb14e9bSmrg *) FILE_MAN_SUFFIX=5 ;; 1121061c899d4Smrg esac 1121161c899d4Smrgfi 1121261c899d4Smrgif test x$FILE_MAN_DIR = x ; then 1121361c899d4Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1121461c899d4Smrgfi 1121561c899d4Smrg 1121661c899d4Smrgif test x$MISC_MAN_SUFFIX = x ; then 11217afb14e9bSmrg case $SYSV_MAN_SECTIONS in 11218afb14e9bSmrg true) MISC_MAN_SUFFIX=5 ;; 11219afb14e9bSmrg *) MISC_MAN_SUFFIX=7 ;; 1122061c899d4Smrg esac 1122161c899d4Smrgfi 1122261c899d4Smrgif test x$MISC_MAN_DIR = x ; then 1122361c899d4Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1122461c899d4Smrgfi 1122561c899d4Smrg 1122661c899d4Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 11227afb14e9bSmrg case $SYSV_MAN_SECTIONS in 11228afb14e9bSmrg true) DRIVER_MAN_SUFFIX=7 ;; 11229afb14e9bSmrg *) DRIVER_MAN_SUFFIX=4 ;; 1123061c899d4Smrg esac 1123161c899d4Smrgfi 1123261c899d4Smrgif test x$DRIVER_MAN_DIR = x ; then 1123361c899d4Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1123461c899d4Smrgfi 1123561c899d4Smrg 1123661c899d4Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 11237afb14e9bSmrg case $SYSV_MAN_SECTIONS in 11238afb14e9bSmrg true) ADMIN_MAN_SUFFIX=1m ;; 11239afb14e9bSmrg *) ADMIN_MAN_SUFFIX=8 ;; 1124061c899d4Smrg esac 1124161c899d4Smrgfi 1124261c899d4Smrgif test x$ADMIN_MAN_DIR = x ; then 1124361c899d4Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1124461c899d4Smrgfi 1124561c899d4Smrg 1124661c899d4Smrg 1124761c899d4Smrg 1124861c899d4Smrg 1124961c899d4Smrg 1125061c899d4Smrg 1125161c899d4Smrg 1125261c899d4Smrg 1125361c899d4Smrg 1125461c899d4Smrg 1125561c899d4Smrg 1125661c899d4Smrg 1125761c899d4Smrg 1125861c899d4Smrg 1125961c899d4Smrg 1126061c899d4SmrgXORG_MAN_PAGE="X Version 11" 1126161c899d4Smrg 1126261c899d4SmrgMAN_SUBSTS="\ 1126361c899d4Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1126461c899d4Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1126561c899d4Smrg -e 's|__xservername__|Xorg|g' \ 1126661c899d4Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1126761c899d4Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1126861c899d4Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1126961c899d4Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1127061c899d4Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1127161c899d4Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1127261c899d4Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1127361c899d4Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1127461c899d4Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1127561c899d4Smrg 1127661c899d4Smrg 1127761c899d4Smrg 1127861c899d4Smrg# Check whether --enable-silent-rules was given. 11279afb14e9bSmrgif test ${enable_silent_rules+y} 11280afb14e9bSmrgthen : 1128161c899d4Smrg enableval=$enable_silent_rules; 1128261c899d4Smrgfi 1128361c899d4Smrg 11284ecb85c42Smrgcase $enable_silent_rules in # ((( 11285ecb85c42Smrg yes) AM_DEFAULT_VERBOSITY=0;; 11286ecb85c42Smrg no) AM_DEFAULT_VERBOSITY=1;; 11287ecb85c42Smrg *) AM_DEFAULT_VERBOSITY=0;; 1128861c899d4Smrgesac 11289ecb85c42Smrgam_make=${MAKE-make} 11290afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11291afb14e9bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 11292afb14e9bSmrgif test ${am_cv_make_support_nested_variables+y} 11293afb14e9bSmrgthen : 11294afb14e9bSmrg printf %s "(cached) " >&6 11295afb14e9bSmrgelse $as_nop 11296afb14e9bSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 11297ecb85c42SmrgBAR0=false 11298ecb85c42SmrgBAR1=true 11299ecb85c42SmrgV=1 11300ecb85c42Smrgam__doit: 11301ecb85c42Smrg @$(TRUE) 11302ecb85c42Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11303ecb85c42Smrg am_cv_make_support_nested_variables=yes 11304ecb85c42Smrgelse 11305ecb85c42Smrg am_cv_make_support_nested_variables=no 11306ecb85c42Smrgfi 11307ecb85c42Smrgfi 11308afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11309afb14e9bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11310ecb85c42Smrgif test $am_cv_make_support_nested_variables = yes; then 11311ecb85c42Smrg AM_V='$(V)' 11312ecb85c42Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11313ecb85c42Smrgelse 11314ecb85c42Smrg AM_V=$AM_DEFAULT_VERBOSITY 11315ecb85c42Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11316ecb85c42Smrgfi 1131761c899d4SmrgAM_BACKSLASH='\' 1131861c899d4Smrg 1131961c899d4Smrg 1132061c899d4Smrg 11321afb14e9bSmrgac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11322afb14e9bSmrgif test "x$ac_cv_func_asprintf" = xyes 11323afb14e9bSmrgthen : 11324afb14e9bSmrg printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11325ecb85c42Smrg 11326ecb85c42Smrgfi 11327ecb85c42Smrg 11328ecb85c42Smrg 1132961c899d4Smrg 1133061c899d4Smrgpkg_failed=no 11331afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5 11332afb14e9bSmrgprintf %s "checking for RGB... " >&6; } 1133361c899d4Smrg 1133461c899d4Smrgif test -n "$RGB_CFLAGS"; then 1133561c899d4Smrg pkg_cv_RGB_CFLAGS="$RGB_CFLAGS" 1133661c899d4Smrg elif test -n "$PKG_CONFIG"; then 1133761c899d4Smrg if test -n "$PKG_CONFIG" && \ 11338afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 1133961c899d4Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 1134061c899d4Smrg ac_status=$? 11341afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1134261c899d4Smrg test $ac_status = 0; }; then 1134361c899d4Smrg pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 11344afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1134561c899d4Smrgelse 1134661c899d4Smrg pkg_failed=yes 1134761c899d4Smrgfi 1134861c899d4Smrg else 1134961c899d4Smrg pkg_failed=untried 1135061c899d4Smrgfi 1135161c899d4Smrgif test -n "$RGB_LIBS"; then 1135261c899d4Smrg pkg_cv_RGB_LIBS="$RGB_LIBS" 1135361c899d4Smrg elif test -n "$PKG_CONFIG"; then 1135461c899d4Smrg if test -n "$PKG_CONFIG" && \ 11355afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 1135661c899d4Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 1135761c899d4Smrg ac_status=$? 11358afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1135961c899d4Smrg test $ac_status = 0; }; then 1136061c899d4Smrg pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 11361afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1136261c899d4Smrgelse 1136361c899d4Smrg pkg_failed=yes 1136486bbecbeSmrgfi 1136586bbecbeSmrg else 1136686bbecbeSmrg pkg_failed=untried 1136753354cdbSmrgfi 1136853354cdbSmrg 1136953354cdbSmrg 1137086bbecbeSmrg 1137186bbecbeSmrgif test $pkg_failed = yes; then 11372afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11373afb14e9bSmrgprintf "%s\n" "no" >&6; } 1137486bbecbeSmrg 1137586bbecbeSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1137686bbecbeSmrg _pkg_short_errors_supported=yes 1137753354cdbSmrgelse 1137886bbecbeSmrg _pkg_short_errors_supported=no 1137953354cdbSmrgfi 1138086bbecbeSmrg if test $_pkg_short_errors_supported = yes; then 11381afb14e9bSmrg RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 1138286bbecbeSmrg else 11383afb14e9bSmrg RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 1138486bbecbeSmrg fi 1138586bbecbeSmrg # Put the nasty error message in config.log where it belongs 1138686bbecbeSmrg echo "$RGB_PKG_ERRORS" >&5 1138753354cdbSmrg 1138886bbecbeSmrg as_fn_error $? "Package requirements (xproto) were not met: 1138986bbecbeSmrg 1139086bbecbeSmrg$RGB_PKG_ERRORS 1139186bbecbeSmrg 1139286bbecbeSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1139386bbecbeSmrginstalled software in a non-standard prefix. 1139486bbecbeSmrg 1139586bbecbeSmrgAlternatively, you may set the environment variables RGB_CFLAGS 1139686bbecbeSmrgand RGB_LIBS to avoid the need to call pkg-config. 11397afb14e9bSmrgSee the pkg-config man page for more details." "$LINENO" 5 1139886bbecbeSmrgelif test $pkg_failed = untried; then 11399afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11400afb14e9bSmrgprintf "%s\n" "no" >&6; } 11401afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11402afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1140386bbecbeSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1140486bbecbeSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 1140586bbecbeSmrgpath to pkg-config. 1140686bbecbeSmrg 1140786bbecbeSmrgAlternatively, you may set the environment variables RGB_CFLAGS 1140886bbecbeSmrgand RGB_LIBS to avoid the need to call pkg-config. 1140986bbecbeSmrgSee the pkg-config man page for more details. 1141086bbecbeSmrg 1141186bbecbeSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1141286bbecbeSmrgSee \`config.log' for more details" "$LINENO" 5; } 1141353354cdbSmrgelse 1141486bbecbeSmrg RGB_CFLAGS=$pkg_cv_RGB_CFLAGS 1141586bbecbeSmrg RGB_LIBS=$pkg_cv_RGB_LIBS 11416afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11417afb14e9bSmrgprintf "%s\n" "yes" >&6; } 11418afb14e9bSmrg 1141953354cdbSmrgfi 1142086bbecbeSmrg 11421afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5 11422afb14e9bSmrgprintf %s "checking for rgb database location... " >&6; } 1142386bbecbeSmrg 1142486bbecbeSmrg# Check whether --with-rgb-db-dir was given. 11425afb14e9bSmrgif test ${with_rgb_db_dir+y} 11426afb14e9bSmrgthen : 1142786bbecbeSmrg withval=$with_rgb_db_dir; db_path=$withval 11428afb14e9bSmrgelse $as_nop 1142986bbecbeSmrg db_path=${datadir}/X11/rgb 1143086bbecbeSmrgfi 1143186bbecbeSmrg 11432afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5 11433afb14e9bSmrgprintf "%s\n" "$db_path" >&6; } 1143486bbecbeSmrgdb_file=`basename $db_path` 1143586bbecbeSmrgdb_dir=`dirname $db_path` 1143653354cdbSmrg 1143786bbecbeSmrg 1143886bbecbeSmrg 11439afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5 11440afb14e9bSmrgprintf %s "checking for rgb database format... " >&6; } 1144186bbecbeSmrg 1144286bbecbeSmrg# Check whether --with-rgb-db-type was given. 11443afb14e9bSmrgif test ${with_rgb_db_type+y} 11444afb14e9bSmrgthen : 1144586bbecbeSmrg withval=$with_rgb_db_type; db_type=$withval 11446afb14e9bSmrgelse $as_nop 1144786bbecbeSmrg db_type="text" 1144853354cdbSmrgfi 1144953354cdbSmrg 11450afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5 11451afb14e9bSmrgprintf "%s\n" "$db_type" >&6; } 1145253354cdbSmrg 1145386bbecbeSmrgRGB_DB_TYPE=$db_type 1145486bbecbeSmrg 11455afb14e9bSmrg 11456afb14e9bSmrg# Check whether --with-rgb-db-library was given. 11457afb14e9bSmrgif test ${with_rgb_db_library+y} 11458afb14e9bSmrgthen : 11459afb14e9bSmrg withval=$with_rgb_db_library; db_lib=$withval 11460afb14e9bSmrgelse $as_nop 11461afb14e9bSmrg db_lib="auto" 11462afb14e9bSmrgfi 11463afb14e9bSmrg 11464afb14e9bSmrg 1146586bbecbeSmrgcase $db_type in 1146686bbecbeSmrg text) 1146786bbecbeSmrg RGB_DB_FILES="" 1146886bbecbeSmrg 11469afb14e9bSmrgprintf "%s\n" "#define USE_RGB_TXT 1" >>confdefs.h 1147086bbecbeSmrg 1147186bbecbeSmrg ;; 1147286bbecbeSmrg dbm) 11473afb14e9bSmrg if test "x$db_lib" = "xauto" 11474afb14e9bSmrgthen : 11475afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5 11476afb14e9bSmrgprintf %s "checking for library containing dbminit... " >&6; } 11477afb14e9bSmrgif test ${ac_cv_search_dbminit+y} 11478afb14e9bSmrgthen : 11479afb14e9bSmrg printf %s "(cached) " >&6 11480afb14e9bSmrgelse $as_nop 1148186bbecbeSmrg ac_func_search_save_LIBS=$LIBS 1148286bbecbeSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1148386bbecbeSmrg/* end confdefs.h. */ 1148453354cdbSmrg 1148586bbecbeSmrg/* Override any GCC internal prototype to avoid an error. 1148686bbecbeSmrg Use char because int might match the return type of a GCC 1148786bbecbeSmrg builtin and then its argument prototype would still apply. */ 1148886bbecbeSmrgchar dbminit (); 1148986bbecbeSmrgint 11490afb14e9bSmrgmain (void) 1149186bbecbeSmrg{ 1149286bbecbeSmrgreturn dbminit (); 1149386bbecbeSmrg ; 1149486bbecbeSmrg return 0; 1149586bbecbeSmrg} 1149686bbecbeSmrg_ACEOF 11497afb14e9bSmrgfor ac_lib in '' db dbm nsl 11498afb14e9bSmrgdo 1149986bbecbeSmrg if test -z "$ac_lib"; then 1150086bbecbeSmrg ac_res="none required" 1150186bbecbeSmrg else 1150286bbecbeSmrg ac_res=-l$ac_lib 1150386bbecbeSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 1150486bbecbeSmrg fi 11505afb14e9bSmrg if ac_fn_c_try_link "$LINENO" 11506afb14e9bSmrgthen : 1150786bbecbeSmrg ac_cv_search_dbminit=$ac_res 1150853354cdbSmrgfi 11509afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1151086bbecbeSmrg conftest$ac_exeext 11511afb14e9bSmrg if test ${ac_cv_search_dbminit+y} 11512afb14e9bSmrgthen : 1151386bbecbeSmrg break 1151486bbecbeSmrgfi 1151586bbecbeSmrgdone 11516afb14e9bSmrgif test ${ac_cv_search_dbminit+y} 11517afb14e9bSmrgthen : 1151853354cdbSmrg 11519afb14e9bSmrgelse $as_nop 1152086bbecbeSmrg ac_cv_search_dbminit=no 1152186bbecbeSmrgfi 1152286bbecbeSmrgrm conftest.$ac_ext 1152386bbecbeSmrgLIBS=$ac_func_search_save_LIBS 1152453354cdbSmrgfi 11525afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5 11526afb14e9bSmrgprintf "%s\n" "$ac_cv_search_dbminit" >&6; } 1152786bbecbeSmrgac_res=$ac_cv_search_dbminit 11528afb14e9bSmrgif test "$ac_res" != no 11529afb14e9bSmrgthen : 1153086bbecbeSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 1153153354cdbSmrg 11532afb14e9bSmrgelse $as_nop 1153386bbecbeSmrg as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5 1153453354cdbSmrgfi 1153586bbecbeSmrg 11536afb14e9bSmrgelse $as_nop 11537afb14e9bSmrg as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbminit" | $as_tr_sh` 11538afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$db_lib" >&5 11539afb14e9bSmrgprintf %s "checking for dbminit in -l$db_lib... " >&6; } 11540afb14e9bSmrgif eval test \${$as_ac_Lib+y} 11541afb14e9bSmrgthen : 11542afb14e9bSmrg printf %s "(cached) " >&6 11543afb14e9bSmrgelse $as_nop 11544afb14e9bSmrg ac_check_lib_save_LIBS=$LIBS 11545afb14e9bSmrgLIBS="-l$db_lib $LIBS" 11546afb14e9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11547afb14e9bSmrg/* end confdefs.h. */ 11548afb14e9bSmrg 11549afb14e9bSmrg/* Override any GCC internal prototype to avoid an error. 11550afb14e9bSmrg Use char because int might match the return type of a GCC 11551afb14e9bSmrg builtin and then its argument prototype would still apply. */ 11552afb14e9bSmrgchar dbminit (); 11553afb14e9bSmrgint 11554afb14e9bSmrgmain (void) 11555afb14e9bSmrg{ 11556afb14e9bSmrgreturn dbminit (); 11557afb14e9bSmrg ; 11558afb14e9bSmrg return 0; 11559afb14e9bSmrg} 11560afb14e9bSmrg_ACEOF 11561afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 11562afb14e9bSmrgthen : 11563afb14e9bSmrg eval "$as_ac_Lib=yes" 11564afb14e9bSmrgelse $as_nop 11565afb14e9bSmrg eval "$as_ac_Lib=no" 11566afb14e9bSmrgfi 11567afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11568afb14e9bSmrg conftest$ac_exeext conftest.$ac_ext 11569afb14e9bSmrgLIBS=$ac_check_lib_save_LIBS 11570afb14e9bSmrgfi 11571afb14e9bSmrgeval ac_res=\$$as_ac_Lib 11572afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11573afb14e9bSmrgprintf "%s\n" "$ac_res" >&6; } 11574afb14e9bSmrgif eval test \"x\$"$as_ac_Lib"\" = x"yes" 11575afb14e9bSmrgthen : 11576afb14e9bSmrg cat >>confdefs.h <<_ACEOF 11577afb14e9bSmrg#define `printf "%s\n" "HAVE_LIB$db_lib" | $as_tr_cpp` 1 11578afb14e9bSmrg_ACEOF 11579afb14e9bSmrg 11580afb14e9bSmrg LIBS="-l$db_lib $LIBS" 11581afb14e9bSmrg 11582afb14e9bSmrgelse $as_nop 11583afb14e9bSmrg as_fn_error $? "dbm requested but dbminit() not found when linking with -l$db_lib" "$LINENO" 5 11584afb14e9bSmrgfi 11585afb14e9bSmrg 11586afb14e9bSmrgfi 11587afb14e9bSmrg ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default" 11588afb14e9bSmrgif test "x$ac_cv_header_dbm_h" = xyes 11589afb14e9bSmrgthen : 1159086bbecbeSmrg DBM_HEADER='<dbm.h>' 11591afb14e9bSmrgelse $as_nop 11592afb14e9bSmrg ac_fn_c_check_header_compile "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default" 11593afb14e9bSmrgif test "x$ac_cv_header_rpcsvc_dbm_h" = xyes 11594afb14e9bSmrgthen : 1159553354cdbSmrg DBM_HEADER='<rpcsvc/dbm.h>' 11596afb14e9bSmrgelse $as_nop 1159786bbecbeSmrg as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5 1159853354cdbSmrgfi 1159953354cdbSmrg 1160053354cdbSmrgfi 1160153354cdbSmrg 1160253354cdbSmrg 1160353354cdbSmrgpkg_failed=no 11604afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11605afb14e9bSmrgprintf %s "checking for XORG... " >&6; } 1160686bbecbeSmrg 1160786bbecbeSmrgif test -n "$XORG_CFLAGS"; then 1160886bbecbeSmrg pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 1160986bbecbeSmrg elif test -n "$PKG_CONFIG"; then 1161086bbecbeSmrg if test -n "$PKG_CONFIG" && \ 11611afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 1161253354cdbSmrg ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 1161353354cdbSmrg ac_status=$? 11614afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1161586bbecbeSmrg test $ac_status = 0; }; then 1161653354cdbSmrg pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 11617afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1161853354cdbSmrgelse 1161953354cdbSmrg pkg_failed=yes 1162053354cdbSmrgfi 1162186bbecbeSmrg else 1162286bbecbeSmrg pkg_failed=untried 1162353354cdbSmrgfi 1162486bbecbeSmrgif test -n "$XORG_LIBS"; then 1162586bbecbeSmrg pkg_cv_XORG_LIBS="$XORG_LIBS" 1162686bbecbeSmrg elif test -n "$PKG_CONFIG"; then 1162786bbecbeSmrg if test -n "$PKG_CONFIG" && \ 11628afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 1162953354cdbSmrg ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 1163053354cdbSmrg ac_status=$? 11631afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1163286bbecbeSmrg test $ac_status = 0; }; then 1163353354cdbSmrg pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 11634afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1163553354cdbSmrgelse 1163653354cdbSmrg pkg_failed=yes 1163753354cdbSmrgfi 1163886bbecbeSmrg else 1163986bbecbeSmrg pkg_failed=untried 1164053354cdbSmrgfi 1164153354cdbSmrg 1164286bbecbeSmrg 1164386bbecbeSmrg 1164453354cdbSmrgif test $pkg_failed = yes; then 11645afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646afb14e9bSmrgprintf "%s\n" "no" >&6; } 1164786bbecbeSmrg 1164886bbecbeSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1164986bbecbeSmrg _pkg_short_errors_supported=yes 1165086bbecbeSmrgelse 1165186bbecbeSmrg _pkg_short_errors_supported=no 1165286bbecbeSmrgfi 1165386bbecbeSmrg if test $_pkg_short_errors_supported = yes; then 11654afb14e9bSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1` 1165586bbecbeSmrg else 11656afb14e9bSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1` 1165786bbecbeSmrg fi 1165853354cdbSmrg # Put the nasty error message in config.log where it belongs 1165986bbecbeSmrg echo "$XORG_PKG_ERRORS" >&5 1166053354cdbSmrg 1166186bbecbeSmrg as_fn_error $? "Package requirements (xorg-server) were not met: 1166286bbecbeSmrg 1166386bbecbeSmrg$XORG_PKG_ERRORS 1166453354cdbSmrg 1166553354cdbSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1166653354cdbSmrginstalled software in a non-standard prefix. 1166753354cdbSmrg 1166886bbecbeSmrgAlternatively, you may set the environment variables XORG_CFLAGS 1166986bbecbeSmrgand XORG_LIBS to avoid the need to call pkg-config. 11670afb14e9bSmrgSee the pkg-config man page for more details." "$LINENO" 5 1167153354cdbSmrgelif test $pkg_failed = untried; then 11672afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11673afb14e9bSmrgprintf "%s\n" "no" >&6; } 11674afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11675afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1167686bbecbeSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1167753354cdbSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 1167853354cdbSmrgpath to pkg-config. 1167953354cdbSmrg 1168086bbecbeSmrgAlternatively, you may set the environment variables XORG_CFLAGS 1168186bbecbeSmrgand XORG_LIBS to avoid the need to call pkg-config. 1168286bbecbeSmrgSee the pkg-config man page for more details. 1168353354cdbSmrg 1168486bbecbeSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1168586bbecbeSmrgSee \`config.log' for more details" "$LINENO" 5; } 1168653354cdbSmrgelse 1168753354cdbSmrg XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 1168853354cdbSmrg XORG_LIBS=$pkg_cv_XORG_LIBS 11689afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11690afb14e9bSmrgprintf "%s\n" "yes" >&6; } 11691afb14e9bSmrg 1169253354cdbSmrgfi 1169353354cdbSmrg RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 1169453354cdbSmrg RGB_DB_FILES='$(db_file).dir $(db_file).pag' 1169553354cdbSmrg ;; 1169653354cdbSmrg ndbm) 1169753354cdbSmrg # Find a dbm or ndbm implementation 11698afb14e9bSmrg if test "x$db_lib" = "xauto" 11699afb14e9bSmrgthen : 11700afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5 11701afb14e9bSmrgprintf %s "checking for library containing dbm_open... " >&6; } 11702afb14e9bSmrgif test ${ac_cv_search_dbm_open+y} 11703afb14e9bSmrgthen : 11704afb14e9bSmrg printf %s "(cached) " >&6 11705afb14e9bSmrgelse $as_nop 1170653354cdbSmrg ac_func_search_save_LIBS=$LIBS 1170786bbecbeSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1170853354cdbSmrg/* end confdefs.h. */ 1170953354cdbSmrg 1171053354cdbSmrg/* Override any GCC internal prototype to avoid an error. 1171153354cdbSmrg Use char because int might match the return type of a GCC 1171253354cdbSmrg builtin and then its argument prototype would still apply. */ 1171353354cdbSmrgchar dbm_open (); 1171453354cdbSmrgint 11715afb14e9bSmrgmain (void) 1171653354cdbSmrg{ 1171753354cdbSmrgreturn dbm_open (); 1171853354cdbSmrg ; 1171953354cdbSmrg return 0; 1172053354cdbSmrg} 1172153354cdbSmrg_ACEOF 11722afb14e9bSmrgfor ac_lib in '' db ndbm dbm 11723afb14e9bSmrgdo 1172453354cdbSmrg if test -z "$ac_lib"; then 1172553354cdbSmrg ac_res="none required" 1172653354cdbSmrg else 1172753354cdbSmrg ac_res=-l$ac_lib 1172853354cdbSmrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 1172953354cdbSmrg fi 11730afb14e9bSmrg if ac_fn_c_try_link "$LINENO" 11731afb14e9bSmrgthen : 1173253354cdbSmrg ac_cv_search_dbm_open=$ac_res 1173353354cdbSmrgfi 11734afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1173586bbecbeSmrg conftest$ac_exeext 11736afb14e9bSmrg if test ${ac_cv_search_dbm_open+y} 11737afb14e9bSmrgthen : 1173853354cdbSmrg break 1173953354cdbSmrgfi 1174053354cdbSmrgdone 11741afb14e9bSmrgif test ${ac_cv_search_dbm_open+y} 11742afb14e9bSmrgthen : 1174386bbecbeSmrg 11744afb14e9bSmrgelse $as_nop 1174553354cdbSmrg ac_cv_search_dbm_open=no 1174653354cdbSmrgfi 1174753354cdbSmrgrm conftest.$ac_ext 1174853354cdbSmrgLIBS=$ac_func_search_save_LIBS 1174953354cdbSmrgfi 11750afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5 11751afb14e9bSmrgprintf "%s\n" "$ac_cv_search_dbm_open" >&6; } 1175253354cdbSmrgac_res=$ac_cv_search_dbm_open 11753afb14e9bSmrgif test "$ac_res" != no 11754afb14e9bSmrgthen : 1175553354cdbSmrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 1175653354cdbSmrg 11757afb14e9bSmrgelse $as_nop 1175886bbecbeSmrg as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5 1175953354cdbSmrgfi 1176053354cdbSmrg 11761afb14e9bSmrgelse $as_nop 11762afb14e9bSmrg as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbm_open" | $as_tr_sh` 11763afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$db_lib" >&5 11764afb14e9bSmrgprintf %s "checking for dbm_open in -l$db_lib... " >&6; } 11765afb14e9bSmrgif eval test \${$as_ac_Lib+y} 11766afb14e9bSmrgthen : 11767afb14e9bSmrg printf %s "(cached) " >&6 11768afb14e9bSmrgelse $as_nop 11769afb14e9bSmrg ac_check_lib_save_LIBS=$LIBS 11770afb14e9bSmrgLIBS="-l$db_lib $LIBS" 11771afb14e9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772afb14e9bSmrg/* end confdefs.h. */ 11773afb14e9bSmrg 11774afb14e9bSmrg/* Override any GCC internal prototype to avoid an error. 11775afb14e9bSmrg Use char because int might match the return type of a GCC 11776afb14e9bSmrg builtin and then its argument prototype would still apply. */ 11777afb14e9bSmrgchar dbm_open (); 11778afb14e9bSmrgint 11779afb14e9bSmrgmain (void) 11780afb14e9bSmrg{ 11781afb14e9bSmrgreturn dbm_open (); 11782afb14e9bSmrg ; 11783afb14e9bSmrg return 0; 11784afb14e9bSmrg} 11785afb14e9bSmrg_ACEOF 11786afb14e9bSmrgif ac_fn_c_try_link "$LINENO" 11787afb14e9bSmrgthen : 11788afb14e9bSmrg eval "$as_ac_Lib=yes" 11789afb14e9bSmrgelse $as_nop 11790afb14e9bSmrg eval "$as_ac_Lib=no" 11791afb14e9bSmrgfi 11792afb14e9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11793afb14e9bSmrg conftest$ac_exeext conftest.$ac_ext 11794afb14e9bSmrgLIBS=$ac_check_lib_save_LIBS 11795afb14e9bSmrgfi 11796afb14e9bSmrgeval ac_res=\$$as_ac_Lib 11797afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11798afb14e9bSmrgprintf "%s\n" "$ac_res" >&6; } 11799afb14e9bSmrgif eval test \"x\$"$as_ac_Lib"\" = x"yes" 11800afb14e9bSmrgthen : 11801afb14e9bSmrg cat >>confdefs.h <<_ACEOF 11802afb14e9bSmrg#define `printf "%s\n" "HAVE_LIB$db_lib" | $as_tr_cpp` 1 11803afb14e9bSmrg_ACEOF 11804afb14e9bSmrg 11805afb14e9bSmrg LIBS="-l$db_lib $LIBS" 11806afb14e9bSmrg 11807afb14e9bSmrgelse $as_nop 11808afb14e9bSmrg as_fn_error $? "ndbm requested but dbm_open() not found when linking with -l$db_lib" "$LINENO" 5 11809afb14e9bSmrgfi 11810afb14e9bSmrg 11811afb14e9bSmrgfi 11812afb14e9bSmrg 11813afb14e9bSmrgprintf "%s\n" "#define NDBM 1" >>confdefs.h 11814afb14e9bSmrg 1181553354cdbSmrg DBM_HEADER='<ndbm.h>' 1181653354cdbSmrg 1181753354cdbSmrgpkg_failed=no 11818afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11819afb14e9bSmrgprintf %s "checking for XORG... " >&6; } 1182086bbecbeSmrg 1182186bbecbeSmrgif test -n "$XORG_CFLAGS"; then 1182286bbecbeSmrg pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 1182386bbecbeSmrg elif test -n "$PKG_CONFIG"; then 1182486bbecbeSmrg if test -n "$PKG_CONFIG" && \ 11825afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 1182653354cdbSmrg ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 1182753354cdbSmrg ac_status=$? 11828afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1182986bbecbeSmrg test $ac_status = 0; }; then 1183053354cdbSmrg pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 11831afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1183253354cdbSmrgelse 1183353354cdbSmrg pkg_failed=yes 1183453354cdbSmrgfi 1183586bbecbeSmrg else 1183686bbecbeSmrg pkg_failed=untried 1183753354cdbSmrgfi 1183886bbecbeSmrgif test -n "$XORG_LIBS"; then 1183986bbecbeSmrg pkg_cv_XORG_LIBS="$XORG_LIBS" 1184086bbecbeSmrg elif test -n "$PKG_CONFIG"; then 1184186bbecbeSmrg if test -n "$PKG_CONFIG" && \ 11842afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 1184353354cdbSmrg ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 1184453354cdbSmrg ac_status=$? 11845afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1184686bbecbeSmrg test $ac_status = 0; }; then 1184753354cdbSmrg pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 11848afb14e9bSmrg test "x$?" != "x0" && pkg_failed=yes 1184953354cdbSmrgelse 1185053354cdbSmrg pkg_failed=yes 1185153354cdbSmrgfi 1185286bbecbeSmrg else 1185386bbecbeSmrg pkg_failed=untried 1185453354cdbSmrgfi 1185553354cdbSmrg 1185686bbecbeSmrg 1185786bbecbeSmrg 1185853354cdbSmrgif test $pkg_failed = yes; then 11859afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11860afb14e9bSmrgprintf "%s\n" "no" >&6; } 1186186bbecbeSmrg 1186286bbecbeSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1186386bbecbeSmrg _pkg_short_errors_supported=yes 1186486bbecbeSmrgelse 1186586bbecbeSmrg _pkg_short_errors_supported=no 1186686bbecbeSmrgfi 1186786bbecbeSmrg if test $_pkg_short_errors_supported = yes; then 11868afb14e9bSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1` 1186986bbecbeSmrg else 11870afb14e9bSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1` 1187186bbecbeSmrg fi 1187253354cdbSmrg # Put the nasty error message in config.log where it belongs 1187386bbecbeSmrg echo "$XORG_PKG_ERRORS" >&5 1187453354cdbSmrg 1187586bbecbeSmrg as_fn_error $? "Package requirements (xorg-server) were not met: 1187686bbecbeSmrg 1187786bbecbeSmrg$XORG_PKG_ERRORS 1187853354cdbSmrg 1187953354cdbSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1188053354cdbSmrginstalled software in a non-standard prefix. 1188153354cdbSmrg 1188286bbecbeSmrgAlternatively, you may set the environment variables XORG_CFLAGS 1188386bbecbeSmrgand XORG_LIBS to avoid the need to call pkg-config. 11884afb14e9bSmrgSee the pkg-config man page for more details." "$LINENO" 5 1188553354cdbSmrgelif test $pkg_failed = untried; then 11886afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11887afb14e9bSmrgprintf "%s\n" "no" >&6; } 11888afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11889afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1189086bbecbeSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1189153354cdbSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 1189253354cdbSmrgpath to pkg-config. 1189353354cdbSmrg 1189486bbecbeSmrgAlternatively, you may set the environment variables XORG_CFLAGS 1189586bbecbeSmrgand XORG_LIBS to avoid the need to call pkg-config. 1189686bbecbeSmrgSee the pkg-config man page for more details. 1189753354cdbSmrg 1189886bbecbeSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1189986bbecbeSmrgSee \`config.log' for more details" "$LINENO" 5; } 1190053354cdbSmrgelse 1190153354cdbSmrg XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 1190253354cdbSmrg XORG_LIBS=$pkg_cv_XORG_LIBS 11903afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11904afb14e9bSmrgprintf "%s\n" "yes" >&6; } 11905afb14e9bSmrg 1190653354cdbSmrgfi 1190753354cdbSmrg RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 1190853354cdbSmrg RGB_DB_FILES='$(db_file).dir $(db_file).pag' 1190953354cdbSmrg ;; 1191053354cdbSmrgesac 1191153354cdbSmrgif test x$DBM_HEADER != x ; then 1191253354cdbSmrg 11913afb14e9bSmrgprintf "%s\n" "#define DBM_HEADER $DBM_HEADER" >>confdefs.h 1191453354cdbSmrg 1191553354cdbSmrgfi 1191653354cdbSmrg 1191753354cdbSmrg 1191853354cdbSmrg if test x$db_type != xtext; then 1191953354cdbSmrg RGB_DB_TRUE= 1192053354cdbSmrg RGB_DB_FALSE='#' 1192153354cdbSmrgelse 1192253354cdbSmrg RGB_DB_TRUE='#' 1192353354cdbSmrg RGB_DB_FALSE= 1192453354cdbSmrgfi 1192553354cdbSmrg 1192653354cdbSmrg 1192786bbecbeSmrgac_config_files="$ac_config_files Makefile man/Makefile" 1192853354cdbSmrg 1192953354cdbSmrg 1193053354cdbSmrgcat >confcache <<\_ACEOF 1193153354cdbSmrg# This file is a shell script that caches the results of configure 1193253354cdbSmrg# tests run on this system so they can be shared between configure 1193353354cdbSmrg# scripts and configure runs, see configure's option --config-cache. 1193453354cdbSmrg# It is not useful on other systems. If it contains results you don't 1193553354cdbSmrg# want to keep, you may remove or edit it. 1193653354cdbSmrg# 1193753354cdbSmrg# config.status only pays attention to the cache file if you give it 1193853354cdbSmrg# the --recheck option to rerun configure. 1193953354cdbSmrg# 1194053354cdbSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1194153354cdbSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1194253354cdbSmrg# following values. 1194353354cdbSmrg 1194453354cdbSmrg_ACEOF 1194553354cdbSmrg 1194653354cdbSmrg# The following way of writing the cache mishandles newlines in values, 1194753354cdbSmrg# but we know of no workaround that is simple, portable, and efficient. 1194853354cdbSmrg# So, we kill variables containing newlines. 1194953354cdbSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 1195053354cdbSmrg# and sets the high bit in the cache file unless we assign to the vars. 1195153354cdbSmrg( 1195253354cdbSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1195353354cdbSmrg eval ac_val=\$$ac_var 1195453354cdbSmrg case $ac_val in #( 1195553354cdbSmrg *${as_nl}*) 1195653354cdbSmrg case $ac_var in #( 11957afb14e9bSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11958afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1195953354cdbSmrg esac 1196053354cdbSmrg case $ac_var in #( 1196153354cdbSmrg _ | IFS | as_nl) ;; #( 1196286bbecbeSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1196386bbecbeSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1196453354cdbSmrg esac ;; 1196553354cdbSmrg esac 1196653354cdbSmrg done 1196753354cdbSmrg 1196853354cdbSmrg (set) 2>&1 | 1196953354cdbSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 1197053354cdbSmrg *${as_nl}ac_space=\ *) 1197186bbecbeSmrg # `set' does not quote correctly, so add quotes: double-quote 1197286bbecbeSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1197353354cdbSmrg sed -n \ 1197453354cdbSmrg "s/'/'\\\\''/g; 1197553354cdbSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1197653354cdbSmrg ;; #( 1197753354cdbSmrg *) 1197853354cdbSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 1197953354cdbSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1198053354cdbSmrg ;; 1198153354cdbSmrg esac | 1198253354cdbSmrg sort 1198353354cdbSmrg) | 1198453354cdbSmrg sed ' 1198553354cdbSmrg /^ac_cv_env_/b end 1198653354cdbSmrg t clear 1198753354cdbSmrg :clear 11988afb14e9bSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 1198953354cdbSmrg t end 1199053354cdbSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1199153354cdbSmrg :end' >>confcache 1199253354cdbSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1199353354cdbSmrg if test -w "$cache_file"; then 1199486bbecbeSmrg if test "x$cache_file" != "x/dev/null"; then 11995afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11996afb14e9bSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1199786bbecbeSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1199886bbecbeSmrg cat confcache >"$cache_file" 1199986bbecbeSmrg else 1200086bbecbeSmrg case $cache_file in #( 1200186bbecbeSmrg */* | ?:*) 1200286bbecbeSmrg mv -f confcache "$cache_file"$$ && 1200386bbecbeSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1200486bbecbeSmrg *) 1200586bbecbeSmrg mv -f confcache "$cache_file" ;; 1200686bbecbeSmrg esac 1200786bbecbeSmrg fi 1200886bbecbeSmrg fi 1200953354cdbSmrg else 12010afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12011afb14e9bSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 1201253354cdbSmrg fi 1201353354cdbSmrgfi 1201453354cdbSmrgrm -f confcache 1201553354cdbSmrg 1201653354cdbSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1201753354cdbSmrg# Let make expand exec_prefix. 1201853354cdbSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1201953354cdbSmrg 1202053354cdbSmrgDEFS=-DHAVE_CONFIG_H 1202153354cdbSmrg 1202253354cdbSmrgac_libobjs= 1202353354cdbSmrgac_ltlibobjs= 1202486bbecbeSmrgU= 1202553354cdbSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1202653354cdbSmrg # 1. Remove the extension, and $U if already installed. 1202753354cdbSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12028afb14e9bSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 1202953354cdbSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1203053354cdbSmrg # will be set to the directory where LIBOBJS objects are built. 1203186bbecbeSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1203286bbecbeSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1203353354cdbSmrgdone 1203453354cdbSmrgLIBOBJS=$ac_libobjs 1203553354cdbSmrg 1203653354cdbSmrgLTLIBOBJS=$ac_ltlibobjs 1203753354cdbSmrg 1203853354cdbSmrg 12039afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12040afb14e9bSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 12041ecb85c42Smrg if test -n "$am_sleep_pid"; then 12042ecb85c42Smrg # Hide warnings about reused PIDs. 12043ecb85c42Smrg wait $am_sleep_pid 2>/dev/null 12044ecb85c42Smrg fi 12045afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12046afb14e9bSmrgprintf "%s\n" "done" >&6; } 1204753354cdbSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1204886bbecbeSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1204986bbecbeSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1205053354cdbSmrgfi 1205153354cdbSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1205286bbecbeSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1205386bbecbeSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1205453354cdbSmrgfi 12055ecb85c42Smrg if test -n "$EXEEXT"; then 12056ecb85c42Smrg am__EXEEXT_TRUE= 12057ecb85c42Smrg am__EXEEXT_FALSE='#' 12058ecb85c42Smrgelse 12059ecb85c42Smrg am__EXEEXT_TRUE='#' 12060ecb85c42Smrg am__EXEEXT_FALSE= 12061ecb85c42Smrgfi 12062ecb85c42Smrg 1206353354cdbSmrgif test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then 1206486bbecbeSmrg as_fn_error $? "conditional \"RGB_DB\" was never defined. 1206586bbecbeSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1206653354cdbSmrgfi 1206753354cdbSmrg 1206886bbecbeSmrg: "${CONFIG_STATUS=./config.status}" 1206986bbecbeSmrgac_write_fail=0 1207053354cdbSmrgac_clean_files_save=$ac_clean_files 1207153354cdbSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 12072afb14e9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12073afb14e9bSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1207486bbecbeSmrgas_write_fail=0 1207586bbecbeSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1207653354cdbSmrg#! $SHELL 1207753354cdbSmrg# Generated by $as_me. 1207853354cdbSmrg# Run this file to recreate the current configuration. 1207953354cdbSmrg# Compiler output produced by configure, useful for debugging 1208053354cdbSmrg# configure, is in config.log if it exists. 1208153354cdbSmrg 1208253354cdbSmrgdebug=false 1208353354cdbSmrgac_cs_recheck=false 1208453354cdbSmrgac_cs_silent=false 1208553354cdbSmrg 1208686bbecbeSmrgSHELL=\${CONFIG_SHELL-$SHELL} 1208786bbecbeSmrgexport SHELL 1208886bbecbeSmrg_ASEOF 1208986bbecbeSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1209086bbecbeSmrg## -------------------- ## 1209186bbecbeSmrg## M4sh Initialization. ## 1209286bbecbeSmrg## -------------------- ## 1209353354cdbSmrg 1209453354cdbSmrg# Be more Bourne compatible 1209553354cdbSmrgDUALCASE=1; export DUALCASE # for MKS sh 12096afb14e9bSmrgas_nop=: 12097afb14e9bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12098afb14e9bSmrgthen : 1209953354cdbSmrg emulate sh 1210053354cdbSmrg NULLCMD=: 1210186bbecbeSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1210253354cdbSmrg # is contrary to our usage. Disable this feature. 1210353354cdbSmrg alias -g '${1+"$@"}'='"$@"' 1210453354cdbSmrg setopt NO_GLOB_SUBST 12105afb14e9bSmrgelse $as_nop 1210686bbecbeSmrg case `(set -o) 2>/dev/null` in #( 1210786bbecbeSmrg *posix*) : 1210886bbecbeSmrg set -o posix ;; #( 1210986bbecbeSmrg *) : 1211086bbecbeSmrg ;; 1211153354cdbSmrgesac 1211253354cdbSmrgfi 1211353354cdbSmrg 1211453354cdbSmrg 12115afb14e9bSmrg 12116afb14e9bSmrg# Reset variables that may have inherited troublesome values from 12117afb14e9bSmrg# the environment. 12118afb14e9bSmrg 12119afb14e9bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 12120afb14e9bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 12121afb14e9bSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 12122afb14e9bSmrg# Quoting is to prevent editors from complaining about space-tab. 1212386bbecbeSmrgas_nl=' 1212486bbecbeSmrg' 1212586bbecbeSmrgexport as_nl 12126afb14e9bSmrgIFS=" "" $as_nl" 12127afb14e9bSmrg 12128afb14e9bSmrgPS1='$ ' 12129afb14e9bSmrgPS2='> ' 12130afb14e9bSmrgPS4='+ ' 12131afb14e9bSmrg 12132afb14e9bSmrg# Ensure predictable behavior from utilities with locale-dependent output. 12133afb14e9bSmrgLC_ALL=C 12134afb14e9bSmrgexport LC_ALL 12135afb14e9bSmrgLANGUAGE=C 12136afb14e9bSmrgexport LANGUAGE 12137afb14e9bSmrg 12138afb14e9bSmrg# We cannot yet rely on "unset" to work, but we need these variables 12139afb14e9bSmrg# to be unset--not just set to an empty or harmless value--now, to 12140afb14e9bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12141afb14e9bSmrg# also avoids known problems related to "unset" and subshell syntax 12142afb14e9bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12143afb14e9bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12144afb14e9bSmrgdo eval test \${$as_var+y} \ 12145afb14e9bSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12146afb14e9bSmrgdone 12147afb14e9bSmrg 12148afb14e9bSmrg# Ensure that fds 0, 1, and 2 are open. 12149afb14e9bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12150afb14e9bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12151afb14e9bSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 1215253354cdbSmrg 1215386bbecbeSmrg# The user is always right. 12154afb14e9bSmrgif ${PATH_SEPARATOR+false} :; then 1215586bbecbeSmrg PATH_SEPARATOR=: 1215686bbecbeSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1215786bbecbeSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1215886bbecbeSmrg PATH_SEPARATOR=';' 1215986bbecbeSmrg } 1216053354cdbSmrgfi 1216153354cdbSmrg 1216253354cdbSmrg 1216353354cdbSmrg# Find who we are. Look in the path if we contain no directory separator. 1216486bbecbeSmrgas_myself= 1216586bbecbeSmrgcase $0 in #(( 1216653354cdbSmrg *[\\/]* ) as_myself=$0 ;; 1216753354cdbSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1216853354cdbSmrgfor as_dir in $PATH 1216953354cdbSmrgdo 1217053354cdbSmrg IFS=$as_save_IFS 12171afb14e9bSmrg case $as_dir in #((( 12172afb14e9bSmrg '') as_dir=./ ;; 12173afb14e9bSmrg */) ;; 12174afb14e9bSmrg *) as_dir=$as_dir/ ;; 12175afb14e9bSmrg esac 12176afb14e9bSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1217786bbecbeSmrg done 1217853354cdbSmrgIFS=$as_save_IFS 1217953354cdbSmrg 1218053354cdbSmrg ;; 1218153354cdbSmrgesac 1218253354cdbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1218353354cdbSmrg# in which case we are not to be found in the path. 1218453354cdbSmrgif test "x$as_myself" = x; then 1218553354cdbSmrg as_myself=$0 1218653354cdbSmrgfi 1218753354cdbSmrgif test ! -f "$as_myself"; then 12188afb14e9bSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1218986bbecbeSmrg exit 1 1219053354cdbSmrgfi 1219153354cdbSmrg 1219286bbecbeSmrg 1219386bbecbeSmrg 1219486bbecbeSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1219586bbecbeSmrg# ---------------------------------------- 1219686bbecbeSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1219786bbecbeSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1219886bbecbeSmrg# script with STATUS, using 1 if that was 0. 1219986bbecbeSmrgas_fn_error () 1220086bbecbeSmrg{ 1220186bbecbeSmrg as_status=$1; test $as_status -eq 0 && as_status=1 1220286bbecbeSmrg if test "$4"; then 1220386bbecbeSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12204afb14e9bSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1220553354cdbSmrg fi 12206afb14e9bSmrg printf "%s\n" "$as_me: error: $2" >&2 1220786bbecbeSmrg as_fn_exit $as_status 1220886bbecbeSmrg} # as_fn_error 1220986bbecbeSmrg 1221086bbecbeSmrg 12211afb14e9bSmrg 1221286bbecbeSmrg# as_fn_set_status STATUS 1221386bbecbeSmrg# ----------------------- 1221486bbecbeSmrg# Set $? to STATUS, without forking. 1221586bbecbeSmrgas_fn_set_status () 1221686bbecbeSmrg{ 1221786bbecbeSmrg return $1 1221886bbecbeSmrg} # as_fn_set_status 1221986bbecbeSmrg 1222086bbecbeSmrg# as_fn_exit STATUS 1222186bbecbeSmrg# ----------------- 1222286bbecbeSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1222386bbecbeSmrgas_fn_exit () 1222486bbecbeSmrg{ 1222586bbecbeSmrg set +e 1222686bbecbeSmrg as_fn_set_status $1 1222786bbecbeSmrg exit $1 1222886bbecbeSmrg} # as_fn_exit 1222986bbecbeSmrg 1223086bbecbeSmrg# as_fn_unset VAR 1223186bbecbeSmrg# --------------- 1223286bbecbeSmrg# Portably unset VAR. 1223386bbecbeSmrgas_fn_unset () 1223486bbecbeSmrg{ 1223586bbecbeSmrg { eval $1=; unset $1;} 1223686bbecbeSmrg} 1223786bbecbeSmrgas_unset=as_fn_unset 12238afb14e9bSmrg 1223986bbecbeSmrg# as_fn_append VAR VALUE 1224086bbecbeSmrg# ---------------------- 1224186bbecbeSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1224286bbecbeSmrg# advantage of any shell optimizations that allow amortized linear growth over 1224386bbecbeSmrg# repeated appends, instead of the typical quadratic growth present in naive 1224486bbecbeSmrg# implementations. 12245afb14e9bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12246afb14e9bSmrgthen : 1224786bbecbeSmrg eval 'as_fn_append () 1224886bbecbeSmrg { 1224986bbecbeSmrg eval $1+=\$2 1225086bbecbeSmrg }' 12251afb14e9bSmrgelse $as_nop 1225286bbecbeSmrg as_fn_append () 1225386bbecbeSmrg { 1225486bbecbeSmrg eval $1=\$$1\$2 1225586bbecbeSmrg } 1225686bbecbeSmrgfi # as_fn_append 1225786bbecbeSmrg 1225886bbecbeSmrg# as_fn_arith ARG... 1225986bbecbeSmrg# ------------------ 1226086bbecbeSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1226186bbecbeSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1226286bbecbeSmrg# must be portable across $(()) and expr. 12263afb14e9bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12264afb14e9bSmrgthen : 1226586bbecbeSmrg eval 'as_fn_arith () 1226686bbecbeSmrg { 1226786bbecbeSmrg as_val=$(( $* )) 1226886bbecbeSmrg }' 12269afb14e9bSmrgelse $as_nop 1227086bbecbeSmrg as_fn_arith () 1227186bbecbeSmrg { 1227286bbecbeSmrg as_val=`expr "$@" || test $? -eq 1` 1227386bbecbeSmrg } 1227486bbecbeSmrgfi # as_fn_arith 1227586bbecbeSmrg 1227653354cdbSmrg 1227753354cdbSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 1227853354cdbSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1227953354cdbSmrg as_expr=expr 1228053354cdbSmrgelse 1228153354cdbSmrg as_expr=false 1228253354cdbSmrgfi 1228353354cdbSmrg 1228453354cdbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1228553354cdbSmrg as_basename=basename 1228653354cdbSmrgelse 1228753354cdbSmrg as_basename=false 1228853354cdbSmrgfi 1228953354cdbSmrg 1229086bbecbeSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1229186bbecbeSmrg as_dirname=dirname 1229286bbecbeSmrgelse 1229386bbecbeSmrg as_dirname=false 1229486bbecbeSmrgfi 1229553354cdbSmrg 1229653354cdbSmrgas_me=`$as_basename -- "$0" || 1229753354cdbSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1229853354cdbSmrg X"$0" : 'X\(//\)$' \| \ 1229953354cdbSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12300afb14e9bSmrgprintf "%s\n" X/"$0" | 1230153354cdbSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1230253354cdbSmrg s//\1/ 1230353354cdbSmrg q 1230453354cdbSmrg } 1230553354cdbSmrg /^X\/\(\/\/\)$/{ 1230653354cdbSmrg s//\1/ 1230753354cdbSmrg q 1230853354cdbSmrg } 1230953354cdbSmrg /^X\/\(\/\).*/{ 1231053354cdbSmrg s//\1/ 1231153354cdbSmrg q 1231253354cdbSmrg } 1231353354cdbSmrg s/.*/./; q'` 1231453354cdbSmrg 1231586bbecbeSmrg# Avoid depending upon Character Ranges. 1231686bbecbeSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1231786bbecbeSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1231886bbecbeSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1231986bbecbeSmrgas_cr_digits='0123456789' 1232086bbecbeSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1232153354cdbSmrg 12322afb14e9bSmrg 12323afb14e9bSmrg# Determine whether it's possible to make 'echo' print without a newline. 12324afb14e9bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12325afb14e9bSmrg# for compatibility with existing Makefiles. 1232653354cdbSmrgECHO_C= ECHO_N= ECHO_T= 1232786bbecbeSmrgcase `echo -n x` in #((((( 1232853354cdbSmrg-n*) 1232986bbecbeSmrg case `echo 'xy\c'` in 1233053354cdbSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1233186bbecbeSmrg xy) ECHO_C='\c';; 1233286bbecbeSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1233386bbecbeSmrg ECHO_T=' ';; 1233453354cdbSmrg esac;; 1233553354cdbSmrg*) 1233653354cdbSmrg ECHO_N='-n';; 1233753354cdbSmrgesac 1233853354cdbSmrg 12339afb14e9bSmrg# For backward compatibility with old third-party macros, we provide 12340afb14e9bSmrg# the shell variables $as_echo and $as_echo_n. New code should use 12341afb14e9bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12342afb14e9bSmrgas_echo='printf %s\n' 12343afb14e9bSmrgas_echo_n='printf %s' 12344afb14e9bSmrg 1234553354cdbSmrgrm -f conf$$ conf$$.exe conf$$.file 1234653354cdbSmrgif test -d conf$$.dir; then 1234753354cdbSmrg rm -f conf$$.dir/conf$$.file 1234853354cdbSmrgelse 1234953354cdbSmrg rm -f conf$$.dir 1235086bbecbeSmrg mkdir conf$$.dir 2>/dev/null 1235186bbecbeSmrgfi 1235286bbecbeSmrgif (echo >conf$$.file) 2>/dev/null; then 1235386bbecbeSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1235486bbecbeSmrg as_ln_s='ln -s' 1235586bbecbeSmrg # ... but there are two gotchas: 1235686bbecbeSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1235786bbecbeSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12358afb14e9bSmrg # In both cases, we have to default to `cp -pR'. 1235986bbecbeSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12360afb14e9bSmrg as_ln_s='cp -pR' 1236186bbecbeSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 1236286bbecbeSmrg as_ln_s=ln 1236386bbecbeSmrg else 12364afb14e9bSmrg as_ln_s='cp -pR' 1236586bbecbeSmrg fi 1236653354cdbSmrgelse 12367afb14e9bSmrg as_ln_s='cp -pR' 1236853354cdbSmrgfi 1236953354cdbSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 1237053354cdbSmrgrmdir conf$$.dir 2>/dev/null 1237153354cdbSmrg 1237286bbecbeSmrg 1237386bbecbeSmrg# as_fn_mkdir_p 1237486bbecbeSmrg# ------------- 1237586bbecbeSmrg# Create "$as_dir" as a directory, including parents if necessary. 1237686bbecbeSmrgas_fn_mkdir_p () 1237786bbecbeSmrg{ 1237886bbecbeSmrg 1237986bbecbeSmrg case $as_dir in #( 1238086bbecbeSmrg -*) as_dir=./$as_dir;; 1238186bbecbeSmrg esac 1238286bbecbeSmrg test -d "$as_dir" || eval $as_mkdir_p || { 1238386bbecbeSmrg as_dirs= 1238486bbecbeSmrg while :; do 1238586bbecbeSmrg case $as_dir in #( 12386afb14e9bSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1238786bbecbeSmrg *) as_qdir=$as_dir;; 1238886bbecbeSmrg esac 1238986bbecbeSmrg as_dirs="'$as_qdir' $as_dirs" 1239086bbecbeSmrg as_dir=`$as_dirname -- "$as_dir" || 1239186bbecbeSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239286bbecbeSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1239386bbecbeSmrg X"$as_dir" : 'X\(//\)$' \| \ 1239486bbecbeSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12395afb14e9bSmrgprintf "%s\n" X"$as_dir" | 1239686bbecbeSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1239786bbecbeSmrg s//\1/ 1239886bbecbeSmrg q 1239986bbecbeSmrg } 1240086bbecbeSmrg /^X\(\/\/\)[^/].*/{ 1240186bbecbeSmrg s//\1/ 1240286bbecbeSmrg q 1240386bbecbeSmrg } 1240486bbecbeSmrg /^X\(\/\/\)$/{ 1240586bbecbeSmrg s//\1/ 1240686bbecbeSmrg q 1240786bbecbeSmrg } 1240886bbecbeSmrg /^X\(\/\).*/{ 1240986bbecbeSmrg s//\1/ 1241086bbecbeSmrg q 1241186bbecbeSmrg } 1241286bbecbeSmrg s/.*/./; q'` 1241386bbecbeSmrg test -d "$as_dir" && break 1241486bbecbeSmrg done 1241586bbecbeSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1241686bbecbeSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1241786bbecbeSmrg 1241886bbecbeSmrg 1241986bbecbeSmrg} # as_fn_mkdir_p 1242053354cdbSmrgif mkdir -p . 2>/dev/null; then 1242186bbecbeSmrg as_mkdir_p='mkdir -p "$as_dir"' 1242253354cdbSmrgelse 1242353354cdbSmrg test -d ./-p && rmdir ./-p 1242453354cdbSmrg as_mkdir_p=false 1242553354cdbSmrgfi 1242653354cdbSmrg 12427afb14e9bSmrg 12428afb14e9bSmrg# as_fn_executable_p FILE 12429afb14e9bSmrg# ----------------------- 12430afb14e9bSmrg# Test if FILE is an executable regular file. 12431afb14e9bSmrgas_fn_executable_p () 12432afb14e9bSmrg{ 12433afb14e9bSmrg test -f "$1" && test -x "$1" 12434afb14e9bSmrg} # as_fn_executable_p 12435afb14e9bSmrgas_test_x='test -x' 12436afb14e9bSmrgas_executable_p=as_fn_executable_p 1243753354cdbSmrg 1243853354cdbSmrg# Sed expression to map a string onto a valid CPP name. 1243953354cdbSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1244053354cdbSmrg 1244153354cdbSmrg# Sed expression to map a string onto a valid variable name. 1244253354cdbSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1244353354cdbSmrg 1244453354cdbSmrg 1244553354cdbSmrgexec 6>&1 1244686bbecbeSmrg## ----------------------------------- ## 1244786bbecbeSmrg## Main body of $CONFIG_STATUS script. ## 1244886bbecbeSmrg## ----------------------------------- ## 1244986bbecbeSmrg_ASEOF 1245086bbecbeSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1245153354cdbSmrg 1245286bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1245386bbecbeSmrg# Save the log message, to keep $0 and so on meaningful, and to 1245453354cdbSmrg# report actual input values of CONFIG_FILES etc. instead of their 1245553354cdbSmrg# values after options handling. 1245653354cdbSmrgac_log=" 12457afb14e9bSmrgThis file was extended by rgb $as_me 1.1.0, which was 12458afb14e9bSmrggenerated by GNU Autoconf 2.71. Invocation command line was 1245953354cdbSmrg 1246053354cdbSmrg CONFIG_FILES = $CONFIG_FILES 1246153354cdbSmrg CONFIG_HEADERS = $CONFIG_HEADERS 1246253354cdbSmrg CONFIG_LINKS = $CONFIG_LINKS 1246353354cdbSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1246453354cdbSmrg $ $0 $@ 1246553354cdbSmrg 1246653354cdbSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 1246753354cdbSmrg" 1246853354cdbSmrg 1246953354cdbSmrg_ACEOF 1247053354cdbSmrg 1247186bbecbeSmrgcase $ac_config_files in *" 1247286bbecbeSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1247386bbecbeSmrgesac 1247486bbecbeSmrg 1247586bbecbeSmrgcase $ac_config_headers in *" 1247686bbecbeSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 1247786bbecbeSmrgesac 1247886bbecbeSmrg 1247986bbecbeSmrg 1248086bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1248153354cdbSmrg# Files that config.status was made for. 1248253354cdbSmrgconfig_files="$ac_config_files" 1248353354cdbSmrgconfig_headers="$ac_config_headers" 1248453354cdbSmrgconfig_commands="$ac_config_commands" 1248553354cdbSmrg 1248653354cdbSmrg_ACEOF 1248753354cdbSmrg 1248886bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1248953354cdbSmrgac_cs_usage="\ 1249086bbecbeSmrg\`$as_me' instantiates files and other configuration actions 1249186bbecbeSmrgfrom templates according to the current configuration. Unless the files 1249286bbecbeSmrgand actions are specified as TAGs, all are instantiated by default. 1249353354cdbSmrg 1249486bbecbeSmrgUsage: $0 [OPTION]... [TAG]... 1249553354cdbSmrg 1249653354cdbSmrg -h, --help print this help, then exit 1249753354cdbSmrg -V, --version print version number and configuration settings, then exit 1249886bbecbeSmrg --config print configuration, then exit 1249986bbecbeSmrg -q, --quiet, --silent 1250086bbecbeSmrg do not print progress messages 1250153354cdbSmrg -d, --debug don't remove temporary files 1250253354cdbSmrg --recheck update $as_me by reconfiguring in the same conditions 1250386bbecbeSmrg --file=FILE[:TEMPLATE] 1250486bbecbeSmrg instantiate the configuration file FILE 1250586bbecbeSmrg --header=FILE[:TEMPLATE] 1250686bbecbeSmrg instantiate the configuration header FILE 1250753354cdbSmrg 1250853354cdbSmrgConfiguration files: 1250953354cdbSmrg$config_files 1251053354cdbSmrg 1251153354cdbSmrgConfiguration headers: 1251253354cdbSmrg$config_headers 1251353354cdbSmrg 1251453354cdbSmrgConfiguration commands: 1251553354cdbSmrg$config_commands 1251653354cdbSmrg 12517afb14e9bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>." 1251853354cdbSmrg 1251953354cdbSmrg_ACEOF 12520afb14e9bSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12521afb14e9bSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 1252286bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12523afb14e9bSmrgac_cs_config='$ac_cs_config_escaped' 1252453354cdbSmrgac_cs_version="\\ 12525afb14e9bSmrgrgb config.status 1.1.0 12526afb14e9bSmrgconfigured by $0, generated by GNU Autoconf 2.71, 1252786bbecbeSmrg with options \\"\$ac_cs_config\\" 1252853354cdbSmrg 12529afb14e9bSmrgCopyright (C) 2021 Free Software Foundation, Inc. 1253053354cdbSmrgThis config.status script is free software; the Free Software Foundation 1253153354cdbSmrggives unlimited permission to copy, distribute and modify it." 1253253354cdbSmrg 1253353354cdbSmrgac_pwd='$ac_pwd' 1253453354cdbSmrgsrcdir='$srcdir' 1253553354cdbSmrgINSTALL='$INSTALL' 1253653354cdbSmrgMKDIR_P='$MKDIR_P' 1253786bbecbeSmrgAWK='$AWK' 1253886bbecbeSmrgtest -n "\$AWK" || AWK=awk 1253953354cdbSmrg_ACEOF 1254053354cdbSmrg 1254186bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1254286bbecbeSmrg# The default lists apply if the user does not specify any file. 1254353354cdbSmrgac_need_defaults=: 1254453354cdbSmrgwhile test $# != 0 1254553354cdbSmrgdo 1254653354cdbSmrg case $1 in 1254786bbecbeSmrg --*=?*) 1254853354cdbSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1254953354cdbSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1255053354cdbSmrg ac_shift=: 1255153354cdbSmrg ;; 1255286bbecbeSmrg --*=) 1255386bbecbeSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1255486bbecbeSmrg ac_optarg= 1255586bbecbeSmrg ac_shift=: 1255686bbecbeSmrg ;; 1255753354cdbSmrg *) 1255853354cdbSmrg ac_option=$1 1255953354cdbSmrg ac_optarg=$2 1256053354cdbSmrg ac_shift=shift 1256153354cdbSmrg ;; 1256253354cdbSmrg esac 1256353354cdbSmrg 1256453354cdbSmrg case $ac_option in 1256553354cdbSmrg # Handling of the options. 1256653354cdbSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1256753354cdbSmrg ac_cs_recheck=: ;; 1256853354cdbSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12569afb14e9bSmrg printf "%s\n" "$ac_cs_version"; exit ;; 1257086bbecbeSmrg --config | --confi | --conf | --con | --co | --c ) 12571afb14e9bSmrg printf "%s\n" "$ac_cs_config"; exit ;; 1257253354cdbSmrg --debug | --debu | --deb | --de | --d | -d ) 1257353354cdbSmrg debug=: ;; 1257453354cdbSmrg --file | --fil | --fi | --f ) 1257553354cdbSmrg $ac_shift 1257686bbecbeSmrg case $ac_optarg in 12577afb14e9bSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1257886bbecbeSmrg '') as_fn_error $? "missing file argument" ;; 1257986bbecbeSmrg esac 1258086bbecbeSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1258153354cdbSmrg ac_need_defaults=false;; 1258253354cdbSmrg --header | --heade | --head | --hea ) 1258353354cdbSmrg $ac_shift 1258486bbecbeSmrg case $ac_optarg in 12585afb14e9bSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1258686bbecbeSmrg esac 1258786bbecbeSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 1258853354cdbSmrg ac_need_defaults=false;; 1258953354cdbSmrg --he | --h) 1259053354cdbSmrg # Conflict between --help and --header 1259186bbecbeSmrg as_fn_error $? "ambiguous option: \`$1' 1259286bbecbeSmrgTry \`$0 --help' for more information.";; 1259353354cdbSmrg --help | --hel | -h ) 12594afb14e9bSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 1259553354cdbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1259653354cdbSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1259753354cdbSmrg ac_cs_silent=: ;; 1259853354cdbSmrg 1259953354cdbSmrg # This is an error. 1260086bbecbeSmrg -*) as_fn_error $? "unrecognized option: \`$1' 1260186bbecbeSmrgTry \`$0 --help' for more information." ;; 1260253354cdbSmrg 1260386bbecbeSmrg *) as_fn_append ac_config_targets " $1" 1260453354cdbSmrg ac_need_defaults=false ;; 1260553354cdbSmrg 1260653354cdbSmrg esac 1260753354cdbSmrg shift 1260853354cdbSmrgdone 1260953354cdbSmrg 1261053354cdbSmrgac_configure_extra_args= 1261153354cdbSmrg 1261253354cdbSmrgif $ac_cs_silent; then 1261353354cdbSmrg exec 6>/dev/null 1261453354cdbSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1261553354cdbSmrgfi 1261653354cdbSmrg 1261753354cdbSmrg_ACEOF 1261886bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1261953354cdbSmrgif \$ac_cs_recheck; then 12620afb14e9bSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1262186bbecbeSmrg shift 12622afb14e9bSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 1262386bbecbeSmrg CONFIG_SHELL='$SHELL' 1262453354cdbSmrg export CONFIG_SHELL 1262586bbecbeSmrg exec "\$@" 1262653354cdbSmrgfi 1262753354cdbSmrg 1262853354cdbSmrg_ACEOF 1262986bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1263053354cdbSmrgexec 5>>config.log 1263153354cdbSmrg{ 1263253354cdbSmrg echo 1263353354cdbSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1263453354cdbSmrg## Running $as_me. ## 1263553354cdbSmrg_ASBOX 12636afb14e9bSmrg printf "%s\n" "$ac_log" 1263753354cdbSmrg} >&5 1263853354cdbSmrg 1263953354cdbSmrg_ACEOF 1264086bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1264153354cdbSmrg# 1264253354cdbSmrg# INIT-COMMANDS 1264353354cdbSmrg# 12644afb14e9bSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1264553354cdbSmrg 1264653354cdbSmrg_ACEOF 1264753354cdbSmrg 1264886bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1264953354cdbSmrg 1265053354cdbSmrg# Handling of arguments. 1265153354cdbSmrgfor ac_config_target in $ac_config_targets 1265253354cdbSmrgdo 1265353354cdbSmrg case $ac_config_target in 1265453354cdbSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 1265553354cdbSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1265653354cdbSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1265786bbecbeSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 1265853354cdbSmrg 1265986bbecbeSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1266053354cdbSmrg esac 1266153354cdbSmrgdone 1266253354cdbSmrg 1266353354cdbSmrg 1266453354cdbSmrg# If the user did not use the arguments to specify the items to instantiate, 1266553354cdbSmrg# then the envvar interface is used. Set only those that are not. 1266653354cdbSmrg# We use the long form for the default assignment because of an extremely 1266753354cdbSmrg# bizarre bug on SunOS 4.1.3. 1266853354cdbSmrgif $ac_need_defaults; then 12669afb14e9bSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12670afb14e9bSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12671afb14e9bSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 1267253354cdbSmrgfi 1267353354cdbSmrg 1267453354cdbSmrg# Have a temporary directory for convenience. Make it in the build tree 1267553354cdbSmrg# simply because there is no reason against having it here, and in addition, 1267653354cdbSmrg# creating and moving files from /tmp can sometimes cause problems. 1267753354cdbSmrg# Hook for its removal unless debugging. 1267853354cdbSmrg# Note that there is a small window in which the directory will not be cleaned: 1267953354cdbSmrg# after its creation but before its name has been assigned to `$tmp'. 1268053354cdbSmrg$debug || 1268153354cdbSmrg{ 1268286bbecbeSmrg tmp= ac_tmp= 1268353354cdbSmrg trap 'exit_status=$? 1268486bbecbeSmrg : "${ac_tmp:=$tmp}" 1268586bbecbeSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 1268653354cdbSmrg' 0 1268786bbecbeSmrg trap 'as_fn_exit 1' 1 2 13 15 1268853354cdbSmrg} 1268953354cdbSmrg# Create a (secure) tmp directory for tmp files. 1269053354cdbSmrg 1269153354cdbSmrg{ 1269253354cdbSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1269386bbecbeSmrg test -d "$tmp" 1269453354cdbSmrg} || 1269553354cdbSmrg{ 1269653354cdbSmrg tmp=./conf$$-$RANDOM 1269753354cdbSmrg (umask 077 && mkdir "$tmp") 1269886bbecbeSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1269986bbecbeSmrgac_tmp=$tmp 1270053354cdbSmrg 1270186bbecbeSmrg# Set up the scripts for CONFIG_FILES section. 1270286bbecbeSmrg# No need to generate them if there are no CONFIG_FILES. 1270386bbecbeSmrg# This happens for instance with `./config.status config.h'. 1270453354cdbSmrgif test -n "$CONFIG_FILES"; then 1270553354cdbSmrg 1270653354cdbSmrg 1270786bbecbeSmrgac_cr=`echo X | tr X '\015'` 1270886bbecbeSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1270986bbecbeSmrg# But we know of no other shell where ac_cr would be empty at this 1271086bbecbeSmrg# point, so we can use a bashism as a fallback. 1271186bbecbeSmrgif test "x$ac_cr" = x; then 1271286bbecbeSmrg eval ac_cr=\$\'\\r\' 1271386bbecbeSmrgfi 1271486bbecbeSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1271586bbecbeSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1271686bbecbeSmrg ac_cs_awk_cr='\\r' 1271786bbecbeSmrgelse 1271886bbecbeSmrg ac_cs_awk_cr=$ac_cr 1271953354cdbSmrgfi 1272053354cdbSmrg 1272186bbecbeSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1272253354cdbSmrg_ACEOF 1272353354cdbSmrg 1272453354cdbSmrg 1272586bbecbeSmrg{ 1272686bbecbeSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 1272786bbecbeSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1272886bbecbeSmrg echo "_ACEOF" 1272986bbecbeSmrg} >conf$$subs.sh || 1273086bbecbeSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1273186bbecbeSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1273253354cdbSmrgac_delim='%!_!# ' 1273353354cdbSmrgfor ac_last_try in false false false false false :; do 1273486bbecbeSmrg . ./conf$$subs.sh || 1273586bbecbeSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1273653354cdbSmrg 1273786bbecbeSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1273886bbecbeSmrg if test $ac_delim_n = $ac_delim_num; then 1273953354cdbSmrg break 1274053354cdbSmrg elif $ac_last_try; then 1274186bbecbeSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1274253354cdbSmrg else 1274353354cdbSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1274453354cdbSmrg fi 1274553354cdbSmrgdone 1274686bbecbeSmrgrm -f conf$$subs.sh 1274753354cdbSmrg 1274886bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1274986bbecbeSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1275086bbecbeSmrg_ACEOF 1275186bbecbeSmrgsed -n ' 1275286bbecbeSmrgh 1275386bbecbeSmrgs/^/S["/; s/!.*/"]=/ 1275486bbecbeSmrgp 1275586bbecbeSmrgg 1275686bbecbeSmrgs/^[^!]*!// 1275786bbecbeSmrg:repl 1275886bbecbeSmrgt repl 1275986bbecbeSmrgs/'"$ac_delim"'$// 1276086bbecbeSmrgt delim 1276186bbecbeSmrg:nl 1276286bbecbeSmrgh 1276386bbecbeSmrgs/\(.\{148\}\)..*/\1/ 1276486bbecbeSmrgt more1 1276586bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1276686bbecbeSmrgp 1276786bbecbeSmrgn 1276886bbecbeSmrgb repl 1276986bbecbeSmrg:more1 1277086bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1277186bbecbeSmrgp 1277286bbecbeSmrgg 1277386bbecbeSmrgs/.\{148\}// 1277486bbecbeSmrgt nl 1277586bbecbeSmrg:delim 1277686bbecbeSmrgh 1277786bbecbeSmrgs/\(.\{148\}\)..*/\1/ 1277886bbecbeSmrgt more2 1277986bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1278086bbecbeSmrgp 1278186bbecbeSmrgb 1278286bbecbeSmrg:more2 1278386bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1278486bbecbeSmrgp 1278586bbecbeSmrgg 1278686bbecbeSmrgs/.\{148\}// 1278786bbecbeSmrgt delim 1278886bbecbeSmrg' <conf$$subs.awk | sed ' 1278986bbecbeSmrg/^[^""]/{ 1279086bbecbeSmrg N 1279186bbecbeSmrg s/\n// 1279286bbecbeSmrg} 1279386bbecbeSmrg' >>$CONFIG_STATUS || ac_write_fail=1 1279486bbecbeSmrgrm -f conf$$subs.awk 1279586bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1279686bbecbeSmrg_ACAWK 1279786bbecbeSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1279886bbecbeSmrg for (key in S) S_is_set[key] = 1 1279986bbecbeSmrg FS = "" 1280086bbecbeSmrg 1280186bbecbeSmrg} 1280286bbecbeSmrg{ 1280386bbecbeSmrg line = $ 0 1280486bbecbeSmrg nfields = split(line, field, "@") 1280586bbecbeSmrg substed = 0 1280686bbecbeSmrg len = length(field[1]) 1280786bbecbeSmrg for (i = 2; i < nfields; i++) { 1280886bbecbeSmrg key = field[i] 1280986bbecbeSmrg keylen = length(key) 1281086bbecbeSmrg if (S_is_set[key]) { 1281186bbecbeSmrg value = S[key] 1281286bbecbeSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1281386bbecbeSmrg len += length(value) + length(field[++i]) 1281486bbecbeSmrg substed = 1 1281586bbecbeSmrg } else 1281686bbecbeSmrg len += 1 + keylen 1281786bbecbeSmrg } 1281886bbecbeSmrg 1281986bbecbeSmrg print line 1282086bbecbeSmrg} 1282153354cdbSmrg 1282286bbecbeSmrg_ACAWK 1282353354cdbSmrg_ACEOF 1282486bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1282586bbecbeSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1282686bbecbeSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1282786bbecbeSmrgelse 1282886bbecbeSmrg cat 1282986bbecbeSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1283086bbecbeSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 1283153354cdbSmrg_ACEOF 1283253354cdbSmrg 1283386bbecbeSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1283486bbecbeSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1283553354cdbSmrg# trailing colons and then remove the whole line if VPATH becomes empty 1283653354cdbSmrg# (actually we leave an empty line to preserve line numbers). 1283753354cdbSmrgif test "x$srcdir" = x.; then 1283886bbecbeSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1283986bbecbeSmrgh 1284086bbecbeSmrgs/// 1284186bbecbeSmrgs/^/:/ 1284286bbecbeSmrgs/[ ]*$/:/ 1284386bbecbeSmrgs/:\$(srcdir):/:/g 1284486bbecbeSmrgs/:\${srcdir}:/:/g 1284586bbecbeSmrgs/:@srcdir@:/:/g 1284686bbecbeSmrgs/^:*// 1284753354cdbSmrgs/:*$// 1284886bbecbeSmrgx 1284986bbecbeSmrgs/\(=[ ]*\).*/\1/ 1285086bbecbeSmrgG 1285186bbecbeSmrgs/\n// 1285253354cdbSmrgs/^[^=]*=[ ]*$// 1285353354cdbSmrg}' 1285453354cdbSmrgfi 1285553354cdbSmrg 1285686bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1285753354cdbSmrgfi # test -n "$CONFIG_FILES" 1285853354cdbSmrg 1285986bbecbeSmrg# Set up the scripts for CONFIG_HEADERS section. 1286086bbecbeSmrg# No need to generate them if there are no CONFIG_HEADERS. 1286186bbecbeSmrg# This happens for instance with `./config.status Makefile'. 1286286bbecbeSmrgif test -n "$CONFIG_HEADERS"; then 1286386bbecbeSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 1286486bbecbeSmrgBEGIN { 1286586bbecbeSmrg_ACEOF 1286686bbecbeSmrg 1286786bbecbeSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 1286886bbecbeSmrg# here-document in config.status, that substitutes the proper values into 1286986bbecbeSmrg# config.h.in to produce config.h. 1287086bbecbeSmrg 1287186bbecbeSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 1287286bbecbeSmrg# handling of long lines. 1287386bbecbeSmrgac_delim='%!_!# ' 1287486bbecbeSmrgfor ac_last_try in false false :; do 1287586bbecbeSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1287686bbecbeSmrg if test -z "$ac_tt"; then 1287786bbecbeSmrg break 1287886bbecbeSmrg elif $ac_last_try; then 1287986bbecbeSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 1288086bbecbeSmrg else 1288186bbecbeSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1288286bbecbeSmrg fi 1288386bbecbeSmrgdone 1288486bbecbeSmrg 1288586bbecbeSmrg# For the awk script, D is an array of macro values keyed by name, 1288686bbecbeSmrg# likewise P contains macro parameters if any. Preserve backslash 1288786bbecbeSmrg# newline sequences. 1288886bbecbeSmrg 1288986bbecbeSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 1289086bbecbeSmrgsed -n ' 1289186bbecbeSmrgs/.\{148\}/&'"$ac_delim"'/g 1289286bbecbeSmrgt rset 1289386bbecbeSmrg:rset 1289486bbecbeSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 1289586bbecbeSmrgt def 1289686bbecbeSmrgd 1289786bbecbeSmrg:def 1289886bbecbeSmrgs/\\$// 1289986bbecbeSmrgt bsnl 1290086bbecbeSmrgs/["\\]/\\&/g 1290186bbecbeSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1290286bbecbeSmrgD["\1"]=" \3"/p 1290386bbecbeSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 1290486bbecbeSmrgd 1290586bbecbeSmrg:bsnl 1290686bbecbeSmrgs/["\\]/\\&/g 1290786bbecbeSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1290886bbecbeSmrgD["\1"]=" \3\\\\\\n"\\/p 1290986bbecbeSmrgt cont 1291086bbecbeSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 1291186bbecbeSmrgt cont 1291286bbecbeSmrgd 1291386bbecbeSmrg:cont 1291486bbecbeSmrgn 1291586bbecbeSmrgs/.\{148\}/&'"$ac_delim"'/g 1291686bbecbeSmrgt clear 1291786bbecbeSmrg:clear 1291886bbecbeSmrgs/\\$// 1291986bbecbeSmrgt bsnlc 1292086bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 1292186bbecbeSmrgd 1292286bbecbeSmrg:bsnlc 1292386bbecbeSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 1292486bbecbeSmrgb cont 1292586bbecbeSmrg' <confdefs.h | sed ' 1292686bbecbeSmrgs/'"$ac_delim"'/"\\\ 1292786bbecbeSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 1292886bbecbeSmrg 1292986bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1293086bbecbeSmrg for (key in D) D_is_set[key] = 1 1293186bbecbeSmrg FS = "" 1293286bbecbeSmrg} 1293386bbecbeSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 1293486bbecbeSmrg line = \$ 0 1293586bbecbeSmrg split(line, arg, " ") 1293686bbecbeSmrg if (arg[1] == "#") { 1293786bbecbeSmrg defundef = arg[2] 1293886bbecbeSmrg mac1 = arg[3] 1293986bbecbeSmrg } else { 1294086bbecbeSmrg defundef = substr(arg[1], 2) 1294186bbecbeSmrg mac1 = arg[2] 1294286bbecbeSmrg } 1294386bbecbeSmrg split(mac1, mac2, "(") #) 1294486bbecbeSmrg macro = mac2[1] 1294586bbecbeSmrg prefix = substr(line, 1, index(line, defundef) - 1) 1294686bbecbeSmrg if (D_is_set[macro]) { 1294786bbecbeSmrg # Preserve the white space surrounding the "#". 1294886bbecbeSmrg print prefix "define", macro P[macro] D[macro] 1294986bbecbeSmrg next 1295086bbecbeSmrg } else { 1295186bbecbeSmrg # Replace #undef with comments. This is necessary, for example, 1295286bbecbeSmrg # in the case of _POSIX_SOURCE, which is predefined and required 1295386bbecbeSmrg # on some systems where configure will not decide to define it. 1295486bbecbeSmrg if (defundef == "undef") { 1295586bbecbeSmrg print "/*", prefix defundef, macro, "*/" 1295686bbecbeSmrg next 1295786bbecbeSmrg } 1295886bbecbeSmrg } 1295986bbecbeSmrg} 1296086bbecbeSmrg{ print } 1296186bbecbeSmrg_ACAWK 1296286bbecbeSmrg_ACEOF 1296386bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1296486bbecbeSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 1296586bbecbeSmrgfi # test -n "$CONFIG_HEADERS" 1296686bbecbeSmrg 1296753354cdbSmrg 1296886bbecbeSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 1296986bbecbeSmrgshift 1297086bbecbeSmrgfor ac_tag 1297153354cdbSmrgdo 1297253354cdbSmrg case $ac_tag in 1297353354cdbSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 1297453354cdbSmrg esac 1297553354cdbSmrg case $ac_mode$ac_tag in 1297653354cdbSmrg :[FHL]*:*);; 1297786bbecbeSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 1297853354cdbSmrg :[FH]-) ac_tag=-:-;; 1297953354cdbSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 1298053354cdbSmrg esac 1298153354cdbSmrg ac_save_IFS=$IFS 1298253354cdbSmrg IFS=: 1298353354cdbSmrg set x $ac_tag 1298453354cdbSmrg IFS=$ac_save_IFS 1298553354cdbSmrg shift 1298653354cdbSmrg ac_file=$1 1298753354cdbSmrg shift 1298853354cdbSmrg 1298953354cdbSmrg case $ac_mode in 1299053354cdbSmrg :L) ac_source=$1;; 1299153354cdbSmrg :[FH]) 1299253354cdbSmrg ac_file_inputs= 1299353354cdbSmrg for ac_f 1299453354cdbSmrg do 1299553354cdbSmrg case $ac_f in 1299686bbecbeSmrg -) ac_f="$ac_tmp/stdin";; 1299753354cdbSmrg *) # Look for the file first in the build tree, then in the source tree 1299853354cdbSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1299953354cdbSmrg # because $ac_f cannot contain `:'. 1300053354cdbSmrg test -f "$ac_f" || 1300153354cdbSmrg case $ac_f in 1300253354cdbSmrg [\\/$]*) false;; 1300353354cdbSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 1300453354cdbSmrg esac || 1300586bbecbeSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 1300653354cdbSmrg esac 13007afb14e9bSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1300886bbecbeSmrg as_fn_append ac_file_inputs " '$ac_f'" 1300953354cdbSmrg done 1301053354cdbSmrg 1301153354cdbSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 1301253354cdbSmrg # use $as_me), people would be surprised to read: 1301353354cdbSmrg # /* config.h. Generated by config.status. */ 1301486bbecbeSmrg configure_input='Generated from '` 13015afb14e9bSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1301686bbecbeSmrg `' by configure.' 1301753354cdbSmrg if test x"$ac_file" != x-; then 1301853354cdbSmrg configure_input="$ac_file. $configure_input" 13019afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13020afb14e9bSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 1302153354cdbSmrg fi 1302286bbecbeSmrg # Neutralize special characters interpreted by sed in replacement strings. 1302386bbecbeSmrg case $configure_input in #( 1302486bbecbeSmrg *\&* | *\|* | *\\* ) 13025afb14e9bSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 1302686bbecbeSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1302786bbecbeSmrg *) ac_sed_conf_input=$configure_input;; 1302886bbecbeSmrg esac 1302953354cdbSmrg 1303053354cdbSmrg case $ac_tag in 1303186bbecbeSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1303286bbecbeSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 1303353354cdbSmrg esac 1303453354cdbSmrg ;; 1303553354cdbSmrg esac 1303653354cdbSmrg 1303753354cdbSmrg ac_dir=`$as_dirname -- "$ac_file" || 1303853354cdbSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1303953354cdbSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1304053354cdbSmrg X"$ac_file" : 'X\(//\)$' \| \ 1304153354cdbSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13042afb14e9bSmrgprintf "%s\n" X"$ac_file" | 1304353354cdbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1304453354cdbSmrg s//\1/ 1304553354cdbSmrg q 1304653354cdbSmrg } 1304753354cdbSmrg /^X\(\/\/\)[^/].*/{ 1304853354cdbSmrg s//\1/ 1304953354cdbSmrg q 1305053354cdbSmrg } 1305153354cdbSmrg /^X\(\/\/\)$/{ 1305253354cdbSmrg s//\1/ 1305353354cdbSmrg q 1305453354cdbSmrg } 1305553354cdbSmrg /^X\(\/\).*/{ 1305653354cdbSmrg s//\1/ 1305753354cdbSmrg q 1305853354cdbSmrg } 1305953354cdbSmrg s/.*/./; q'` 1306086bbecbeSmrg as_dir="$ac_dir"; as_fn_mkdir_p 1306153354cdbSmrg ac_builddir=. 1306253354cdbSmrg 1306353354cdbSmrgcase "$ac_dir" in 1306453354cdbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1306553354cdbSmrg*) 13066afb14e9bSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1306753354cdbSmrg # A ".." for each directory in $ac_dir_suffix. 13068afb14e9bSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1306953354cdbSmrg case $ac_top_builddir_sub in 1307053354cdbSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1307153354cdbSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1307253354cdbSmrg esac ;; 1307353354cdbSmrgesac 1307453354cdbSmrgac_abs_top_builddir=$ac_pwd 1307553354cdbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1307653354cdbSmrg# for backward compatibility: 1307753354cdbSmrgac_top_builddir=$ac_top_build_prefix 1307853354cdbSmrg 1307953354cdbSmrgcase $srcdir in 1308053354cdbSmrg .) # We are building in place. 1308153354cdbSmrg ac_srcdir=. 1308253354cdbSmrg ac_top_srcdir=$ac_top_builddir_sub 1308353354cdbSmrg ac_abs_top_srcdir=$ac_pwd ;; 1308453354cdbSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1308553354cdbSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1308653354cdbSmrg ac_top_srcdir=$srcdir 1308753354cdbSmrg ac_abs_top_srcdir=$srcdir ;; 1308853354cdbSmrg *) # Relative name. 1308953354cdbSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1309053354cdbSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1309153354cdbSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1309253354cdbSmrgesac 1309353354cdbSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1309453354cdbSmrg 1309553354cdbSmrg 1309653354cdbSmrg case $ac_mode in 1309753354cdbSmrg :F) 1309853354cdbSmrg # 1309953354cdbSmrg # CONFIG_FILE 1310053354cdbSmrg # 1310153354cdbSmrg 1310253354cdbSmrg case $INSTALL in 1310353354cdbSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 1310453354cdbSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1310553354cdbSmrg esac 1310653354cdbSmrg ac_MKDIR_P=$MKDIR_P 1310753354cdbSmrg case $MKDIR_P in 1310853354cdbSmrg [\\/$]* | ?:[\\/]* ) ;; 1310953354cdbSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 1311053354cdbSmrg esac 1311153354cdbSmrg_ACEOF 1311253354cdbSmrg 1311386bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1311453354cdbSmrg# If the template does not know about datarootdir, expand it. 1311553354cdbSmrg# FIXME: This hack should be removed a few years after 2.60. 1311653354cdbSmrgac_datarootdir_hack=; ac_datarootdir_seen= 1311786bbecbeSmrgac_sed_dataroot=' 1311886bbecbeSmrg/datarootdir/ { 1311953354cdbSmrg p 1312053354cdbSmrg q 1312153354cdbSmrg} 1312253354cdbSmrg/@datadir@/p 1312353354cdbSmrg/@docdir@/p 1312453354cdbSmrg/@infodir@/p 1312553354cdbSmrg/@localedir@/p 1312686bbecbeSmrg/@mandir@/p' 1312786bbecbeSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 1312853354cdbSmrg*datarootdir*) ac_datarootdir_seen=yes;; 1312953354cdbSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13130afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13131afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 1313253354cdbSmrg_ACEOF 1313386bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1313453354cdbSmrg ac_datarootdir_hack=' 1313553354cdbSmrg s&@datadir@&$datadir&g 1313653354cdbSmrg s&@docdir@&$docdir&g 1313753354cdbSmrg s&@infodir@&$infodir&g 1313853354cdbSmrg s&@localedir@&$localedir&g 1313953354cdbSmrg s&@mandir@&$mandir&g 1314086bbecbeSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 1314153354cdbSmrgesac 1314253354cdbSmrg_ACEOF 1314353354cdbSmrg 1314453354cdbSmrg# Neutralize VPATH when `$srcdir' = `.'. 1314553354cdbSmrg# Shell code in configure.ac might set extrasub. 1314653354cdbSmrg# FIXME: do we really want to maintain this feature? 1314786bbecbeSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1314886bbecbeSmrgac_sed_extra="$ac_vpsub 1314953354cdbSmrg$extrasub 1315053354cdbSmrg_ACEOF 1315186bbecbeSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1315253354cdbSmrg:t 1315353354cdbSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1315486bbecbeSmrgs|@configure_input@|$ac_sed_conf_input|;t t 1315553354cdbSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1315686bbecbeSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 1315753354cdbSmrgs&@srcdir@&$ac_srcdir&;t t 1315853354cdbSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 1315953354cdbSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 1316053354cdbSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 1316153354cdbSmrgs&@builddir@&$ac_builddir&;t t 1316253354cdbSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 1316353354cdbSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 1316453354cdbSmrgs&@INSTALL@&$ac_INSTALL&;t t 1316553354cdbSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 1316653354cdbSmrg$ac_datarootdir_hack 1316786bbecbeSmrg" 1316886bbecbeSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1316986bbecbeSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1317053354cdbSmrg 1317153354cdbSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1317286bbecbeSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1317386bbecbeSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1317486bbecbeSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 13175afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1317686bbecbeSmrgwhich seems to be undefined. Please make sure it is defined" >&5 13177afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1317886bbecbeSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1317986bbecbeSmrg 1318086bbecbeSmrg rm -f "$ac_tmp/stdin" 1318153354cdbSmrg case $ac_file in 1318286bbecbeSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1318386bbecbeSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1318486bbecbeSmrg esac \ 1318586bbecbeSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1318653354cdbSmrg ;; 1318753354cdbSmrg :H) 1318853354cdbSmrg # 1318953354cdbSmrg # CONFIG_HEADER 1319053354cdbSmrg # 1319153354cdbSmrg if test x"$ac_file" != x-; then 1319286bbecbeSmrg { 13193afb14e9bSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1319486bbecbeSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1319586bbecbeSmrg } >"$ac_tmp/config.h" \ 1319686bbecbeSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1319786bbecbeSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13198afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13199afb14e9bSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 1320053354cdbSmrg else 1320186bbecbeSmrg rm -f "$ac_file" 1320286bbecbeSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1320386bbecbeSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1320453354cdbSmrg fi 1320553354cdbSmrg else 13206afb14e9bSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1320786bbecbeSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1320886bbecbeSmrg || as_fn_error $? "could not create -" "$LINENO" 5 1320953354cdbSmrg fi 1321086bbecbeSmrg# Compute "$ac_file"'s index in $config_headers. 1321186bbecbeSmrg_am_arg="$ac_file" 1321253354cdbSmrg_am_stamp_count=1 1321353354cdbSmrgfor _am_header in $config_headers :; do 1321453354cdbSmrg case $_am_header in 1321586bbecbeSmrg $_am_arg | $_am_arg:* ) 1321653354cdbSmrg break ;; 1321753354cdbSmrg * ) 1321853354cdbSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1321953354cdbSmrg esac 1322053354cdbSmrgdone 1322186bbecbeSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 1322286bbecbeSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1322386bbecbeSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 1322486bbecbeSmrg X"$_am_arg" : 'X\(//\)$' \| \ 1322586bbecbeSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13226afb14e9bSmrgprintf "%s\n" X"$_am_arg" | 1322753354cdbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322853354cdbSmrg s//\1/ 1322953354cdbSmrg q 1323053354cdbSmrg } 1323153354cdbSmrg /^X\(\/\/\)[^/].*/{ 1323253354cdbSmrg s//\1/ 1323353354cdbSmrg q 1323453354cdbSmrg } 1323553354cdbSmrg /^X\(\/\/\)$/{ 1323653354cdbSmrg s//\1/ 1323753354cdbSmrg q 1323853354cdbSmrg } 1323953354cdbSmrg /^X\(\/\).*/{ 1324053354cdbSmrg s//\1/ 1324153354cdbSmrg q 1324253354cdbSmrg } 1324353354cdbSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 1324453354cdbSmrg ;; 1324553354cdbSmrg 13246afb14e9bSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13247afb14e9bSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 1324853354cdbSmrg ;; 1324953354cdbSmrg esac 1325053354cdbSmrg 1325153354cdbSmrg 1325253354cdbSmrg case $ac_file$ac_mode in 1325386bbecbeSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13254ecb85c42Smrg # Older Autoconf quotes --file arguments for eval, but not when files 1325586bbecbeSmrg # are listed without --file. Let's play safe and only enable the eval 1325686bbecbeSmrg # if we detect the quoting. 13257afb14e9bSmrg # TODO: see whether this extra hack can be removed once we start 13258afb14e9bSmrg # requiring Autoconf 2.70 or later. 13259afb14e9bSmrg case $CONFIG_FILES in #( 13260afb14e9bSmrg *\'*) : 13261afb14e9bSmrg eval set x "$CONFIG_FILES" ;; #( 13262afb14e9bSmrg *) : 13263afb14e9bSmrg set x $CONFIG_FILES ;; #( 13264afb14e9bSmrg *) : 13265afb14e9bSmrg ;; 13266afb14e9bSmrgesac 1326786bbecbeSmrg shift 13268afb14e9bSmrg # Used to flag and report bootstrapping failures. 13269afb14e9bSmrg am_rc=0 13270afb14e9bSmrg for am_mf 1327186bbecbeSmrg do 1327286bbecbeSmrg # Strip MF so we end up with the name of the file. 13273afb14e9bSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13274afb14e9bSmrg # Check whether this is an Automake generated Makefile which includes 13275afb14e9bSmrg # dependency-tracking related rules and includes. 13276afb14e9bSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 1327786bbecbeSmrg # limit of 2048, but all sed's we know have understand at least 4000. 13278afb14e9bSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13279afb14e9bSmrg || continue 13280afb14e9bSmrg am_dirpart=`$as_dirname -- "$am_mf" || 13281afb14e9bSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13282afb14e9bSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 13283afb14e9bSmrg X"$am_mf" : 'X\(//\)$' \| \ 13284afb14e9bSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13285afb14e9bSmrgprintf "%s\n" X"$am_mf" | 1328653354cdbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1328753354cdbSmrg s//\1/ 1328853354cdbSmrg q 1328953354cdbSmrg } 1329053354cdbSmrg /^X\(\/\/\)[^/].*/{ 1329153354cdbSmrg s//\1/ 1329253354cdbSmrg q 1329353354cdbSmrg } 1329453354cdbSmrg /^X\(\/\/\)$/{ 1329553354cdbSmrg s//\1/ 1329653354cdbSmrg q 1329753354cdbSmrg } 1329853354cdbSmrg /^X\(\/\).*/{ 1329953354cdbSmrg s//\1/ 1330053354cdbSmrg q 1330153354cdbSmrg } 1330253354cdbSmrg s/.*/./; q'` 13303afb14e9bSmrg am_filepart=`$as_basename -- "$am_mf" || 13304afb14e9bSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13305afb14e9bSmrg X"$am_mf" : 'X\(//\)$' \| \ 13306afb14e9bSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13307afb14e9bSmrgprintf "%s\n" X/"$am_mf" | 13308afb14e9bSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1330953354cdbSmrg s//\1/ 1331053354cdbSmrg q 1331153354cdbSmrg } 13312afb14e9bSmrg /^X\/\(\/\/\)$/{ 1331353354cdbSmrg s//\1/ 1331453354cdbSmrg q 1331553354cdbSmrg } 13316afb14e9bSmrg /^X\/\(\/\).*/{ 1331753354cdbSmrg s//\1/ 1331853354cdbSmrg q 1331953354cdbSmrg } 1332053354cdbSmrg s/.*/./; q'` 13321afb14e9bSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13322afb14e9bSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13323afb14e9bSmrg | $MAKE -f - am--depfiles" >&5 13324afb14e9bSmrg (cd "$am_dirpart" \ 13325afb14e9bSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13326afb14e9bSmrg | $MAKE -f - am--depfiles) >&5 2>&5 13327afb14e9bSmrg ac_status=$? 13328afb14e9bSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 13329afb14e9bSmrg (exit $ac_status); } || am_rc=$? 1333053354cdbSmrg done 13331afb14e9bSmrg if test $am_rc -ne 0; then 13332afb14e9bSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13333afb14e9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13334afb14e9bSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 13335afb14e9bSmrg for automatic dependency tracking. If GNU make was not used, consider 13336afb14e9bSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 13337afb14e9bSmrg necessary). You can also try re-running configure with the 13338afb14e9bSmrg '--disable-dependency-tracking' option to at least be able to build 13339afb14e9bSmrg the package (albeit without support for automatic dependency tracking). 13340afb14e9bSmrgSee \`config.log' for more details" "$LINENO" 5; } 13341afb14e9bSmrg fi 13342afb14e9bSmrg { am_dirpart=; unset am_dirpart;} 13343afb14e9bSmrg { am_filepart=; unset am_filepart;} 13344afb14e9bSmrg { am_mf=; unset am_mf;} 13345afb14e9bSmrg { am_rc=; unset am_rc;} 13346afb14e9bSmrg rm -f conftest-deps.mk 1334786bbecbeSmrg} 1334853354cdbSmrg ;; 1334953354cdbSmrg 1335053354cdbSmrg esac 1335153354cdbSmrgdone # for ac_tag 1335253354cdbSmrg 1335353354cdbSmrg 1335486bbecbeSmrgas_fn_exit 0 1335553354cdbSmrg_ACEOF 1335653354cdbSmrgac_clean_files=$ac_clean_files_save 1335753354cdbSmrg 1335886bbecbeSmrgtest $ac_write_fail = 0 || 1335986bbecbeSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1336086bbecbeSmrg 1336153354cdbSmrg 1336253354cdbSmrg# configure is writing to config.log, and then calls config.status. 1336353354cdbSmrg# config.status does its own redirection, appending to config.log. 1336453354cdbSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 1336553354cdbSmrg# by configure, so config.status won't be able to write to it; its 1336653354cdbSmrg# output is simply discarded. So we exec the FD to /dev/null, 1336753354cdbSmrg# effectively closing config.log, so it can be properly (re)opened and 1336853354cdbSmrg# appended to by config.status. When coming back to configure, we 1336953354cdbSmrg# need to make the FD available again. 1337053354cdbSmrgif test "$no_create" != yes; then 1337153354cdbSmrg ac_cs_success=: 1337253354cdbSmrg ac_config_status_args= 1337353354cdbSmrg test "$silent" = yes && 1337453354cdbSmrg ac_config_status_args="$ac_config_status_args --quiet" 1337553354cdbSmrg exec 5>/dev/null 1337653354cdbSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1337753354cdbSmrg exec 5>>config.log 1337853354cdbSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1337953354cdbSmrg # would make configure fail if this is the last instruction. 1338086bbecbeSmrg $ac_cs_success || as_fn_exit 1 1338186bbecbeSmrgfi 1338286bbecbeSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13383afb14e9bSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13384afb14e9bSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1338553354cdbSmrgfi 1338653354cdbSmrg 13387afb14e9bSmrg 13388