configure revision 452262e1
117ca54c3Smrg#! /bin/sh 217ca54c3Smrg# Guess values for system-dependent variables and create Makefiles. 3452262e1Smrg# Generated by GNU Autoconf 2.71 for xorgproto 2022.2. 417ca54c3Smrg# 5ea1d6981Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 617ca54c3Smrg# 717ca54c3Smrg# 8ffe57424Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9ffe57424Smrg# Inc. 1017ca54c3Smrg# 1117ca54c3Smrg# 1217ca54c3Smrg# This configure script is free software; the Free Software Foundation 1317ca54c3Smrg# gives unlimited permission to copy, distribute and modify it. 1417ca54c3Smrg## -------------------- ## 1517ca54c3Smrg## M4sh Initialization. ## 1617ca54c3Smrg## -------------------- ## 1717ca54c3Smrg 1817ca54c3Smrg# Be more Bourne compatible 1917ca54c3SmrgDUALCASE=1; export DUALCASE # for MKS sh 20ffe57424Smrgas_nop=: 21ffe57424Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22ffe57424Smrgthen : 2317ca54c3Smrg emulate sh 2417ca54c3Smrg NULLCMD=: 2517ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2617ca54c3Smrg # is contrary to our usage. Disable this feature. 2717ca54c3Smrg alias -g '${1+"$@"}'='"$@"' 2817ca54c3Smrg setopt NO_GLOB_SUBST 29ffe57424Smrgelse $as_nop 3017ca54c3Smrg case `(set -o) 2>/dev/null` in #( 3117ca54c3Smrg *posix*) : 3217ca54c3Smrg set -o posix ;; #( 3317ca54c3Smrg *) : 3417ca54c3Smrg ;; 3517ca54c3Smrgesac 3617ca54c3Smrgfi 3717ca54c3Smrg 3817ca54c3Smrg 39ffe57424Smrg 40ffe57424Smrg# Reset variables that may have inherited troublesome values from 41ffe57424Smrg# the environment. 42ffe57424Smrg 43ffe57424Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44ffe57424Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45ffe57424Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 46ffe57424Smrg# Quoting is to prevent editors from complaining about space-tab. 4717ca54c3Smrgas_nl=' 4817ca54c3Smrg' 4917ca54c3Smrgexport as_nl 50ffe57424SmrgIFS=" "" $as_nl" 51ffe57424Smrg 52ffe57424SmrgPS1='$ ' 53ffe57424SmrgPS2='> ' 54ffe57424SmrgPS4='+ ' 55ffe57424Smrg 56ffe57424Smrg# Ensure predictable behavior from utilities with locale-dependent output. 57ffe57424SmrgLC_ALL=C 58ffe57424Smrgexport LC_ALL 59ffe57424SmrgLANGUAGE=C 60ffe57424Smrgexport LANGUAGE 61ffe57424Smrg 62ffe57424Smrg# We cannot yet rely on "unset" to work, but we need these variables 63ffe57424Smrg# to be unset--not just set to an empty or harmless value--now, to 64ffe57424Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65ffe57424Smrg# also avoids known problems related to "unset" and subshell syntax 66ffe57424Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67ffe57424Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68ffe57424Smrgdo eval test \${$as_var+y} \ 69ffe57424Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70ffe57424Smrgdone 71ffe57424Smrg 72ffe57424Smrg# Ensure that fds 0, 1, and 2 are open. 73ffe57424Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74ffe57424Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75ffe57424Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 7617ca54c3Smrg 7717ca54c3Smrg# The user is always right. 78ffe57424Smrgif ${PATH_SEPARATOR+false} :; then 7917ca54c3Smrg PATH_SEPARATOR=: 8017ca54c3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8117ca54c3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8217ca54c3Smrg PATH_SEPARATOR=';' 8317ca54c3Smrg } 8417ca54c3Smrgfi 8517ca54c3Smrg 8617ca54c3Smrg 8717ca54c3Smrg# Find who we are. Look in the path if we contain no directory separator. 8817ca54c3Smrgas_myself= 8917ca54c3Smrgcase $0 in #(( 9017ca54c3Smrg *[\\/]* ) as_myself=$0 ;; 9117ca54c3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9217ca54c3Smrgfor as_dir in $PATH 9317ca54c3Smrgdo 9417ca54c3Smrg IFS=$as_save_IFS 95ffe57424Smrg case $as_dir in #((( 96ffe57424Smrg '') as_dir=./ ;; 97ffe57424Smrg */) ;; 98ffe57424Smrg *) as_dir=$as_dir/ ;; 99ffe57424Smrg esac 100ffe57424Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10117ca54c3Smrg done 10217ca54c3SmrgIFS=$as_save_IFS 10317ca54c3Smrg 10417ca54c3Smrg ;; 10517ca54c3Smrgesac 10617ca54c3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10717ca54c3Smrg# in which case we are not to be found in the path. 10817ca54c3Smrgif test "x$as_myself" = x; then 10917ca54c3Smrg as_myself=$0 11017ca54c3Smrgfi 11117ca54c3Smrgif test ! -f "$as_myself"; then 112ffe57424Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11317ca54c3Smrg exit 1 11417ca54c3Smrgfi 11517ca54c3Smrg 11617ca54c3Smrg 11717ca54c3Smrg# Use a proper internal environment variable to ensure we don't fall 11817ca54c3Smrg # into an infinite loop, continuously re-executing ourselves. 11917ca54c3Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 12017ca54c3Smrg _as_can_reexec=no; export _as_can_reexec; 12117ca54c3Smrg # We cannot yet assume a decent shell, so we have to provide a 12217ca54c3Smrg# neutralization value for shells without unset; and this also 12317ca54c3Smrg# works around shells that cannot unset nonexistent variables. 12417ca54c3Smrg# Preserve -v and -x to the replacement shell. 12517ca54c3SmrgBASH_ENV=/dev/null 12617ca54c3SmrgENV=/dev/null 12717ca54c3Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 12817ca54c3Smrgcase $- in # (((( 12917ca54c3Smrg *v*x* | *x*v* ) as_opts=-vx ;; 13017ca54c3Smrg *v* ) as_opts=-v ;; 13117ca54c3Smrg *x* ) as_opts=-x ;; 13217ca54c3Smrg * ) as_opts= ;; 13317ca54c3Smrgesac 13417ca54c3Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 13517ca54c3Smrg# Admittedly, this is quite paranoid, since all the known shells bail 13617ca54c3Smrg# out after a failed `exec'. 137ffe57424Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138ffe57424Smrgexit 255 13917ca54c3Smrg fi 14017ca54c3Smrg # We don't want this to propagate to other subprocesses. 14117ca54c3Smrg { _as_can_reexec=; unset _as_can_reexec;} 14217ca54c3Smrgif test "x$CONFIG_SHELL" = x; then 143ffe57424Smrg as_bourne_compatible="as_nop=: 144ffe57424Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145ffe57424Smrgthen : 14617ca54c3Smrg emulate sh 14717ca54c3Smrg NULLCMD=: 14817ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14917ca54c3Smrg # is contrary to our usage. Disable this feature. 15017ca54c3Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15117ca54c3Smrg setopt NO_GLOB_SUBST 152ffe57424Smrgelse \$as_nop 15317ca54c3Smrg case \`(set -o) 2>/dev/null\` in #( 15417ca54c3Smrg *posix*) : 15517ca54c3Smrg set -o posix ;; #( 15617ca54c3Smrg *) : 15717ca54c3Smrg ;; 15817ca54c3Smrgesac 15917ca54c3Smrgfi 16017ca54c3Smrg" 16117ca54c3Smrg as_required="as_fn_return () { (exit \$1); } 16217ca54c3Smrgas_fn_success () { as_fn_return 0; } 16317ca54c3Smrgas_fn_failure () { as_fn_return 1; } 16417ca54c3Smrgas_fn_ret_success () { return 0; } 16517ca54c3Smrgas_fn_ret_failure () { return 1; } 16617ca54c3Smrg 16717ca54c3Smrgexitcode=0 16817ca54c3Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16917ca54c3Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17017ca54c3Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17117ca54c3Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172ffe57424Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173ffe57424Smrgthen : 17417ca54c3Smrg 175ffe57424Smrgelse \$as_nop 17617ca54c3Smrg exitcode=1; echo positional parameters were not saved. 17717ca54c3Smrgfi 17817ca54c3Smrgtest x\$exitcode = x0 || exit 1 179ffe57424Smrgblah=\$(echo \$(echo blah)) 180ffe57424Smrgtest x\"\$blah\" = xblah || exit 1 18117ca54c3Smrgtest -x / || exit 1" 18217ca54c3Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18317ca54c3Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18417ca54c3Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18517ca54c3Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18617ca54c3Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 187ffe57424Smrg if (eval "$as_required") 2>/dev/null 188ffe57424Smrgthen : 18917ca54c3Smrg as_have_required=yes 190ffe57424Smrgelse $as_nop 19117ca54c3Smrg as_have_required=no 19217ca54c3Smrgfi 193ffe57424Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194ffe57424Smrgthen : 19517ca54c3Smrg 196ffe57424Smrgelse $as_nop 19717ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19817ca54c3Smrgas_found=false 19917ca54c3Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20017ca54c3Smrgdo 20117ca54c3Smrg IFS=$as_save_IFS 202ffe57424Smrg case $as_dir in #((( 203ffe57424Smrg '') as_dir=./ ;; 204ffe57424Smrg */) ;; 205ffe57424Smrg *) as_dir=$as_dir/ ;; 206ffe57424Smrg esac 20717ca54c3Smrg as_found=: 20817ca54c3Smrg case $as_dir in #( 20917ca54c3Smrg /*) 21017ca54c3Smrg for as_base in sh bash ksh sh5; do 21117ca54c3Smrg # Try only shells that exist, to save several forks. 212ffe57424Smrg as_shell=$as_dir$as_base 21317ca54c3Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214ffe57424Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215ffe57424Smrgthen : 21617ca54c3Smrg CONFIG_SHELL=$as_shell as_have_required=yes 217ffe57424Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218ffe57424Smrgthen : 21917ca54c3Smrg break 2 22017ca54c3Smrgfi 22117ca54c3Smrgfi 22217ca54c3Smrg done;; 22317ca54c3Smrg esac 22417ca54c3Smrg as_found=false 22517ca54c3Smrgdone 22617ca54c3SmrgIFS=$as_save_IFS 227ffe57424Smrgif $as_found 228ffe57424Smrgthen : 229ffe57424Smrg 230ffe57424Smrgelse $as_nop 231ffe57424Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232ffe57424Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233ffe57424Smrgthen : 234ffe57424Smrg CONFIG_SHELL=$SHELL as_have_required=yes 235ffe57424Smrgfi 236ffe57424Smrgfi 23717ca54c3Smrg 23817ca54c3Smrg 239ffe57424Smrg if test "x$CONFIG_SHELL" != x 240ffe57424Smrgthen : 24117ca54c3Smrg export CONFIG_SHELL 24217ca54c3Smrg # We cannot yet assume a decent shell, so we have to provide a 24317ca54c3Smrg# neutralization value for shells without unset; and this also 24417ca54c3Smrg# works around shells that cannot unset nonexistent variables. 24517ca54c3Smrg# Preserve -v and -x to the replacement shell. 24617ca54c3SmrgBASH_ENV=/dev/null 24717ca54c3SmrgENV=/dev/null 24817ca54c3Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24917ca54c3Smrgcase $- in # (((( 25017ca54c3Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25117ca54c3Smrg *v* ) as_opts=-v ;; 25217ca54c3Smrg *x* ) as_opts=-x ;; 25317ca54c3Smrg * ) as_opts= ;; 25417ca54c3Smrgesac 25517ca54c3Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25617ca54c3Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25717ca54c3Smrg# out after a failed `exec'. 258ffe57424Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 25917ca54c3Smrgexit 255 26017ca54c3Smrgfi 26117ca54c3Smrg 262ffe57424Smrg if test x$as_have_required = xno 263ffe57424Smrgthen : 264ffe57424Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 265ffe57424Smrg printf "%s\n" "$0: the shells that I found on your system." 266ffe57424Smrg if test ${ZSH_VERSION+y} ; then 267ffe57424Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268ffe57424Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 26917ca54c3Smrg else 270ffe57424Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271ea1d6981Smrg$0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues 27217ca54c3Smrg$0: about your system, including any error possibly output 27317ca54c3Smrg$0: before this message. Then install a modern shell, or 27417ca54c3Smrg$0: manually run the script under such a shell if you do 27517ca54c3Smrg$0: have one." 27617ca54c3Smrg fi 27717ca54c3Smrg exit 1 27817ca54c3Smrgfi 27917ca54c3Smrgfi 28017ca54c3Smrgfi 28117ca54c3SmrgSHELL=${CONFIG_SHELL-/bin/sh} 28217ca54c3Smrgexport SHELL 28317ca54c3Smrg# Unset more variables known to interfere with behavior of common tools. 28417ca54c3SmrgCLICOLOR_FORCE= GREP_OPTIONS= 28517ca54c3Smrgunset CLICOLOR_FORCE GREP_OPTIONS 28617ca54c3Smrg 28717ca54c3Smrg## --------------------- ## 28817ca54c3Smrg## M4sh Shell Functions. ## 28917ca54c3Smrg## --------------------- ## 29017ca54c3Smrg# as_fn_unset VAR 29117ca54c3Smrg# --------------- 29217ca54c3Smrg# Portably unset VAR. 29317ca54c3Smrgas_fn_unset () 29417ca54c3Smrg{ 29517ca54c3Smrg { eval $1=; unset $1;} 29617ca54c3Smrg} 29717ca54c3Smrgas_unset=as_fn_unset 29817ca54c3Smrg 299ffe57424Smrg 30017ca54c3Smrg# as_fn_set_status STATUS 30117ca54c3Smrg# ----------------------- 30217ca54c3Smrg# Set $? to STATUS, without forking. 30317ca54c3Smrgas_fn_set_status () 30417ca54c3Smrg{ 30517ca54c3Smrg return $1 30617ca54c3Smrg} # as_fn_set_status 30717ca54c3Smrg 30817ca54c3Smrg# as_fn_exit STATUS 30917ca54c3Smrg# ----------------- 31017ca54c3Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31117ca54c3Smrgas_fn_exit () 31217ca54c3Smrg{ 31317ca54c3Smrg set +e 31417ca54c3Smrg as_fn_set_status $1 31517ca54c3Smrg exit $1 31617ca54c3Smrg} # as_fn_exit 317ffe57424Smrg# as_fn_nop 318ffe57424Smrg# --------- 319ffe57424Smrg# Do nothing but, unlike ":", preserve the value of $?. 320ffe57424Smrgas_fn_nop () 321ffe57424Smrg{ 322ffe57424Smrg return $? 323ffe57424Smrg} 324ffe57424Smrgas_nop=as_fn_nop 32517ca54c3Smrg 32617ca54c3Smrg# as_fn_mkdir_p 32717ca54c3Smrg# ------------- 32817ca54c3Smrg# Create "$as_dir" as a directory, including parents if necessary. 32917ca54c3Smrgas_fn_mkdir_p () 33017ca54c3Smrg{ 33117ca54c3Smrg 33217ca54c3Smrg case $as_dir in #( 33317ca54c3Smrg -*) as_dir=./$as_dir;; 33417ca54c3Smrg esac 33517ca54c3Smrg test -d "$as_dir" || eval $as_mkdir_p || { 33617ca54c3Smrg as_dirs= 33717ca54c3Smrg while :; do 33817ca54c3Smrg case $as_dir in #( 339ffe57424Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34017ca54c3Smrg *) as_qdir=$as_dir;; 34117ca54c3Smrg esac 34217ca54c3Smrg as_dirs="'$as_qdir' $as_dirs" 34317ca54c3Smrg as_dir=`$as_dirname -- "$as_dir" || 34417ca54c3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34517ca54c3Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34617ca54c3Smrg X"$as_dir" : 'X\(//\)$' \| \ 34717ca54c3Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348ffe57424Smrgprintf "%s\n" X"$as_dir" | 34917ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35017ca54c3Smrg s//\1/ 35117ca54c3Smrg q 35217ca54c3Smrg } 35317ca54c3Smrg /^X\(\/\/\)[^/].*/{ 35417ca54c3Smrg s//\1/ 35517ca54c3Smrg q 35617ca54c3Smrg } 35717ca54c3Smrg /^X\(\/\/\)$/{ 35817ca54c3Smrg s//\1/ 35917ca54c3Smrg q 36017ca54c3Smrg } 36117ca54c3Smrg /^X\(\/\).*/{ 36217ca54c3Smrg s//\1/ 36317ca54c3Smrg q 36417ca54c3Smrg } 36517ca54c3Smrg s/.*/./; q'` 36617ca54c3Smrg test -d "$as_dir" && break 36717ca54c3Smrg done 36817ca54c3Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36917ca54c3Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37017ca54c3Smrg 37117ca54c3Smrg 37217ca54c3Smrg} # as_fn_mkdir_p 37317ca54c3Smrg 37417ca54c3Smrg# as_fn_executable_p FILE 37517ca54c3Smrg# ----------------------- 37617ca54c3Smrg# Test if FILE is an executable regular file. 37717ca54c3Smrgas_fn_executable_p () 37817ca54c3Smrg{ 37917ca54c3Smrg test -f "$1" && test -x "$1" 38017ca54c3Smrg} # as_fn_executable_p 38117ca54c3Smrg# as_fn_append VAR VALUE 38217ca54c3Smrg# ---------------------- 38317ca54c3Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38417ca54c3Smrg# advantage of any shell optimizations that allow amortized linear growth over 38517ca54c3Smrg# repeated appends, instead of the typical quadratic growth present in naive 38617ca54c3Smrg# implementations. 387ffe57424Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388ffe57424Smrgthen : 38917ca54c3Smrg eval 'as_fn_append () 39017ca54c3Smrg { 39117ca54c3Smrg eval $1+=\$2 39217ca54c3Smrg }' 393ffe57424Smrgelse $as_nop 39417ca54c3Smrg as_fn_append () 39517ca54c3Smrg { 39617ca54c3Smrg eval $1=\$$1\$2 39717ca54c3Smrg } 39817ca54c3Smrgfi # as_fn_append 39917ca54c3Smrg 40017ca54c3Smrg# as_fn_arith ARG... 40117ca54c3Smrg# ------------------ 40217ca54c3Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40317ca54c3Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40417ca54c3Smrg# must be portable across $(()) and expr. 405ffe57424Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406ffe57424Smrgthen : 40717ca54c3Smrg eval 'as_fn_arith () 40817ca54c3Smrg { 40917ca54c3Smrg as_val=$(( $* )) 41017ca54c3Smrg }' 411ffe57424Smrgelse $as_nop 41217ca54c3Smrg as_fn_arith () 41317ca54c3Smrg { 41417ca54c3Smrg as_val=`expr "$@" || test $? -eq 1` 41517ca54c3Smrg } 41617ca54c3Smrgfi # as_fn_arith 41717ca54c3Smrg 418ffe57424Smrg# as_fn_nop 419ffe57424Smrg# --------- 420ffe57424Smrg# Do nothing but, unlike ":", preserve the value of $?. 421ffe57424Smrgas_fn_nop () 422ffe57424Smrg{ 423ffe57424Smrg return $? 424ffe57424Smrg} 425ffe57424Smrgas_nop=as_fn_nop 42617ca54c3Smrg 42717ca54c3Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 42817ca54c3Smrg# ---------------------------------------- 42917ca54c3Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 43017ca54c3Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 43117ca54c3Smrg# script with STATUS, using 1 if that was 0. 43217ca54c3Smrgas_fn_error () 43317ca54c3Smrg{ 43417ca54c3Smrg as_status=$1; test $as_status -eq 0 && as_status=1 43517ca54c3Smrg if test "$4"; then 43617ca54c3Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 43817ca54c3Smrg fi 439ffe57424Smrg printf "%s\n" "$as_me: error: $2" >&2 44017ca54c3Smrg as_fn_exit $as_status 44117ca54c3Smrg} # as_fn_error 44217ca54c3Smrg 44317ca54c3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 44417ca54c3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 44517ca54c3Smrg as_expr=expr 44617ca54c3Smrgelse 44717ca54c3Smrg as_expr=false 44817ca54c3Smrgfi 44917ca54c3Smrg 45017ca54c3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 45117ca54c3Smrg as_basename=basename 45217ca54c3Smrgelse 45317ca54c3Smrg as_basename=false 45417ca54c3Smrgfi 45517ca54c3Smrg 45617ca54c3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 45717ca54c3Smrg as_dirname=dirname 45817ca54c3Smrgelse 45917ca54c3Smrg as_dirname=false 46017ca54c3Smrgfi 46117ca54c3Smrg 46217ca54c3Smrgas_me=`$as_basename -- "$0" || 46317ca54c3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46417ca54c3Smrg X"$0" : 'X\(//\)$' \| \ 46517ca54c3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 466ffe57424Smrgprintf "%s\n" X/"$0" | 46717ca54c3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 46817ca54c3Smrg s//\1/ 46917ca54c3Smrg q 47017ca54c3Smrg } 47117ca54c3Smrg /^X\/\(\/\/\)$/{ 47217ca54c3Smrg s//\1/ 47317ca54c3Smrg q 47417ca54c3Smrg } 47517ca54c3Smrg /^X\/\(\/\).*/{ 47617ca54c3Smrg s//\1/ 47717ca54c3Smrg q 47817ca54c3Smrg } 47917ca54c3Smrg s/.*/./; q'` 48017ca54c3Smrg 48117ca54c3Smrg# Avoid depending upon Character Ranges. 48217ca54c3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 48317ca54c3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48417ca54c3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 48517ca54c3Smrgas_cr_digits='0123456789' 48617ca54c3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 48717ca54c3Smrg 48817ca54c3Smrg 48917ca54c3Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 49017ca54c3Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 49117ca54c3Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 49217ca54c3Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 49317ca54c3Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 49417ca54c3Smrg sed -n ' 49517ca54c3Smrg p 49617ca54c3Smrg /[$]LINENO/= 49717ca54c3Smrg ' <$as_myself | 49817ca54c3Smrg sed ' 49917ca54c3Smrg s/[$]LINENO.*/&-/ 50017ca54c3Smrg t lineno 50117ca54c3Smrg b 50217ca54c3Smrg :lineno 50317ca54c3Smrg N 50417ca54c3Smrg :loop 50517ca54c3Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 50617ca54c3Smrg t loop 50717ca54c3Smrg s/-\n.*// 50817ca54c3Smrg ' >$as_me.lineno && 50917ca54c3Smrg chmod +x "$as_me.lineno" || 510ffe57424Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 51117ca54c3Smrg 51217ca54c3Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 51317ca54c3Smrg # already done that, so ensure we don't try to do so again and fall 51417ca54c3Smrg # in an infinite loop. This has already happened in practice. 51517ca54c3Smrg _as_can_reexec=no; export _as_can_reexec 51617ca54c3Smrg # Don't try to exec as it changes $[0], causing all sort of problems 51717ca54c3Smrg # (the dirname of $[0] is not the place where we might find the 51817ca54c3Smrg # original and so on. Autoconf is especially sensitive to this). 51917ca54c3Smrg . "./$as_me.lineno" 52017ca54c3Smrg # Exit status is that of the last command. 52117ca54c3Smrg exit 52217ca54c3Smrg} 52317ca54c3Smrg 524ffe57424Smrg 525ffe57424Smrg# Determine whether it's possible to make 'echo' print without a newline. 526ffe57424Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527ffe57424Smrg# for compatibility with existing Makefiles. 52817ca54c3SmrgECHO_C= ECHO_N= ECHO_T= 52917ca54c3Smrgcase `echo -n x` in #((((( 53017ca54c3Smrg-n*) 53117ca54c3Smrg case `echo 'xy\c'` in 53217ca54c3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53317ca54c3Smrg xy) ECHO_C='\c';; 53417ca54c3Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53517ca54c3Smrg ECHO_T=' ';; 53617ca54c3Smrg esac;; 53717ca54c3Smrg*) 53817ca54c3Smrg ECHO_N='-n';; 53917ca54c3Smrgesac 54017ca54c3Smrg 541ffe57424Smrg# For backward compatibility with old third-party macros, we provide 542ffe57424Smrg# the shell variables $as_echo and $as_echo_n. New code should use 543ffe57424Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544ffe57424Smrgas_echo='printf %s\n' 545ffe57424Smrgas_echo_n='printf %s' 546ffe57424Smrg 547ffe57424Smrg 54817ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.file 54917ca54c3Smrgif test -d conf$$.dir; then 55017ca54c3Smrg rm -f conf$$.dir/conf$$.file 55117ca54c3Smrgelse 55217ca54c3Smrg rm -f conf$$.dir 55317ca54c3Smrg mkdir conf$$.dir 2>/dev/null 55417ca54c3Smrgfi 55517ca54c3Smrgif (echo >conf$$.file) 2>/dev/null; then 55617ca54c3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 55717ca54c3Smrg as_ln_s='ln -s' 55817ca54c3Smrg # ... but there are two gotchas: 55917ca54c3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 56017ca54c3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 56117ca54c3Smrg # In both cases, we have to default to `cp -pR'. 56217ca54c3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 56317ca54c3Smrg as_ln_s='cp -pR' 56417ca54c3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 56517ca54c3Smrg as_ln_s=ln 56617ca54c3Smrg else 56717ca54c3Smrg as_ln_s='cp -pR' 56817ca54c3Smrg fi 56917ca54c3Smrgelse 57017ca54c3Smrg as_ln_s='cp -pR' 57117ca54c3Smrgfi 57217ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 57317ca54c3Smrgrmdir conf$$.dir 2>/dev/null 57417ca54c3Smrg 57517ca54c3Smrgif mkdir -p . 2>/dev/null; then 57617ca54c3Smrg as_mkdir_p='mkdir -p "$as_dir"' 57717ca54c3Smrgelse 57817ca54c3Smrg test -d ./-p && rmdir ./-p 57917ca54c3Smrg as_mkdir_p=false 58017ca54c3Smrgfi 58117ca54c3Smrg 58217ca54c3Smrgas_test_x='test -x' 58317ca54c3Smrgas_executable_p=as_fn_executable_p 58417ca54c3Smrg 58517ca54c3Smrg# Sed expression to map a string onto a valid CPP name. 58617ca54c3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 58717ca54c3Smrg 58817ca54c3Smrg# Sed expression to map a string onto a valid variable name. 58917ca54c3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59017ca54c3Smrg 59117ca54c3Smrgas_awk_strverscmp=' 59217ca54c3Smrg # Use only awk features that work with 7th edition Unix awk (1978). 59317ca54c3Smrg # My, what an old awk you have, Mr. Solaris! 59417ca54c3Smrg END { 59517ca54c3Smrg while (length(v1) && length(v2)) { 59617ca54c3Smrg # Set d1 to be the next thing to compare from v1, and likewise for d2. 59717ca54c3Smrg # Normally this is a single character, but if v1 and v2 contain digits, 59817ca54c3Smrg # compare them as integers and fractions as strverscmp does. 59917ca54c3Smrg if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 60017ca54c3Smrg # Split v1 and v2 into their leading digit string components d1 and d2, 60117ca54c3Smrg # and advance v1 and v2 past the leading digit strings. 60217ca54c3Smrg for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 60317ca54c3Smrg for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 60417ca54c3Smrg d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 60517ca54c3Smrg d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 60617ca54c3Smrg if (d1 ~ /^0/) { 60717ca54c3Smrg if (d2 ~ /^0/) { 60817ca54c3Smrg # Compare two fractions. 60917ca54c3Smrg while (d1 ~ /^0/ && d2 ~ /^0/) { 61017ca54c3Smrg d1 = substr(d1, 2); len1-- 61117ca54c3Smrg d2 = substr(d2, 2); len2-- 61217ca54c3Smrg } 61317ca54c3Smrg if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 61417ca54c3Smrg # The two components differ in length, and the common prefix 61517ca54c3Smrg # contains only leading zeros. Consider the longer to be less. 61617ca54c3Smrg d1 = -len1 61717ca54c3Smrg d2 = -len2 61817ca54c3Smrg } else { 61917ca54c3Smrg # Otherwise, compare as strings. 62017ca54c3Smrg d1 = "x" d1 62117ca54c3Smrg d2 = "x" d2 62217ca54c3Smrg } 62317ca54c3Smrg } else { 62417ca54c3Smrg # A fraction is less than an integer. 62517ca54c3Smrg exit 1 62617ca54c3Smrg } 62717ca54c3Smrg } else { 62817ca54c3Smrg if (d2 ~ /^0/) { 62917ca54c3Smrg # An integer is greater than a fraction. 63017ca54c3Smrg exit 2 63117ca54c3Smrg } else { 63217ca54c3Smrg # Compare two integers. 63317ca54c3Smrg d1 += 0 63417ca54c3Smrg d2 += 0 63517ca54c3Smrg } 63617ca54c3Smrg } 63717ca54c3Smrg } else { 63817ca54c3Smrg # The normal case, without worrying about digits. 63917ca54c3Smrg d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 64017ca54c3Smrg d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 64117ca54c3Smrg } 64217ca54c3Smrg if (d1 < d2) exit 1 64317ca54c3Smrg if (d1 > d2) exit 2 64417ca54c3Smrg } 64517ca54c3Smrg # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 64617ca54c3Smrg # which mishandles some comparisons of empty strings to integers. 64717ca54c3Smrg if (length(v2)) exit 1 64817ca54c3Smrg if (length(v1)) exit 2 64917ca54c3Smrg } 65017ca54c3Smrg' 65117ca54c3Smrg 65217ca54c3Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 65317ca54c3Smrgexec 6>&1 65417ca54c3Smrg 65517ca54c3Smrg# Name of the host. 65617ca54c3Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 65717ca54c3Smrg# so uname gets run too. 65817ca54c3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 65917ca54c3Smrg 66017ca54c3Smrg# 66117ca54c3Smrg# Initializations. 66217ca54c3Smrg# 66317ca54c3Smrgac_default_prefix=/usr/local 66417ca54c3Smrgac_clean_files= 66517ca54c3Smrgac_config_libobj_dir=. 66617ca54c3SmrgLIBOBJS= 66717ca54c3Smrgcross_compiling=no 66817ca54c3Smrgsubdirs= 66917ca54c3SmrgMFLAGS= 67017ca54c3SmrgMAKEFLAGS= 67117ca54c3Smrg 67217ca54c3Smrg# Identity of this package. 67317ca54c3SmrgPACKAGE_NAME='xorgproto' 67417ca54c3SmrgPACKAGE_TARNAME='xorgproto' 675452262e1SmrgPACKAGE_VERSION='2022.2' 676452262e1SmrgPACKAGE_STRING='xorgproto 2022.2' 677ea1d6981SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues' 67817ca54c3SmrgPACKAGE_URL='' 67917ca54c3Smrg 68017ca54c3Smrg# Factoring default headers for most tests. 68117ca54c3Smrgac_includes_default="\ 682ffe57424Smrg#include <stddef.h> 683ffe57424Smrg#ifdef HAVE_STDIO_H 684ffe57424Smrg# include <stdio.h> 68517ca54c3Smrg#endif 686ffe57424Smrg#ifdef HAVE_STDLIB_H 68717ca54c3Smrg# include <stdlib.h> 68817ca54c3Smrg#endif 68917ca54c3Smrg#ifdef HAVE_STRING_H 69017ca54c3Smrg# include <string.h> 69117ca54c3Smrg#endif 69217ca54c3Smrg#ifdef HAVE_INTTYPES_H 69317ca54c3Smrg# include <inttypes.h> 69417ca54c3Smrg#endif 69517ca54c3Smrg#ifdef HAVE_STDINT_H 69617ca54c3Smrg# include <stdint.h> 69717ca54c3Smrg#endif 698ffe57424Smrg#ifdef HAVE_STRINGS_H 699ffe57424Smrg# include <strings.h> 700ffe57424Smrg#endif 701ffe57424Smrg#ifdef HAVE_SYS_TYPES_H 702ffe57424Smrg# include <sys/types.h> 703ffe57424Smrg#endif 704ffe57424Smrg#ifdef HAVE_SYS_STAT_H 705ffe57424Smrg# include <sys/stat.h> 706ffe57424Smrg#endif 70717ca54c3Smrg#ifdef HAVE_UNISTD_H 70817ca54c3Smrg# include <unistd.h> 70917ca54c3Smrg#endif" 71017ca54c3Smrg 711ffe57424Smrgac_header_c_list= 71217ca54c3Smrgac_subst_vars='am__EXEEXT_FALSE 71317ca54c3Smrgam__EXEEXT_TRUE 71417ca54c3SmrgLTLIBOBJS 71517ca54c3SmrgLIBOBJS 71617ca54c3SmrgUSE_FDS_BITS 71717ca54c3SmrgLEGACY_FALSE 71817ca54c3SmrgLEGACY_TRUE 7195395ea76SmrgHAVE_PYTHON_FALSE 7205395ea76SmrgHAVE_PYTHON_TRUE 7215395ea76Smrgpkgpyexecdir 7225395ea76Smrgpyexecdir 7235395ea76Smrgpkgpythondir 7245395ea76Smrgpythondir 7255395ea76SmrgPYTHON_EXEC_PREFIX 7265395ea76SmrgPYTHON_PREFIX 727ffe57424SmrgPYTHON_PLATFORM 7285395ea76SmrgPYTHON_VERSION 7295395ea76SmrgPYTHON 73017ca54c3SmrgHAVE_STYLESHEETS_FALSE 73117ca54c3SmrgHAVE_STYLESHEETS_TRUE 73217ca54c3SmrgXSL_STYLESHEET 73317ca54c3SmrgSTYLESHEET_SRCDIR 73417ca54c3SmrgXORG_SGML_PATH 73517ca54c3SmrgHAVE_XSLTPROC_FALSE 73617ca54c3SmrgHAVE_XSLTPROC_TRUE 73717ca54c3SmrgXSLTPROC 73817ca54c3SmrgHAVE_FOP_FALSE 73917ca54c3SmrgHAVE_FOP_TRUE 74017ca54c3SmrgFOP 74117ca54c3SmrgHAVE_XMLTO_FALSE 74217ca54c3SmrgHAVE_XMLTO_TRUE 74317ca54c3SmrgHAVE_XMLTO_TEXT_FALSE 74417ca54c3SmrgHAVE_XMLTO_TEXT_TRUE 74517ca54c3SmrgXMLTO 74617ca54c3SmrgENABLE_SPECS_FALSE 74717ca54c3SmrgENABLE_SPECS_TRUE 74817ca54c3SmrgMAN_SUBSTS 74917ca54c3SmrgXORG_MAN_PAGE 75017ca54c3SmrgADMIN_MAN_DIR 75117ca54c3SmrgDRIVER_MAN_DIR 75217ca54c3SmrgMISC_MAN_DIR 75317ca54c3SmrgFILE_MAN_DIR 75417ca54c3SmrgLIB_MAN_DIR 75517ca54c3SmrgAPP_MAN_DIR 75617ca54c3SmrgADMIN_MAN_SUFFIX 75717ca54c3SmrgDRIVER_MAN_SUFFIX 75817ca54c3SmrgMISC_MAN_SUFFIX 75917ca54c3SmrgFILE_MAN_SUFFIX 76017ca54c3SmrgLIB_MAN_SUFFIX 76117ca54c3SmrgAPP_MAN_SUFFIX 76217ca54c3SmrgSED 76317ca54c3Smrghost_os 76417ca54c3Smrghost_vendor 76517ca54c3Smrghost_cpu 76617ca54c3Smrghost 76717ca54c3Smrgbuild_os 76817ca54c3Smrgbuild_vendor 76917ca54c3Smrgbuild_cpu 77017ca54c3Smrgbuild 77117ca54c3SmrgINSTALL_CMD 77217ca54c3SmrgPKG_CONFIG_LIBDIR 77317ca54c3SmrgPKG_CONFIG_PATH 77417ca54c3SmrgPKG_CONFIG 77517ca54c3SmrgCHANGELOG_CMD 77617ca54c3SmrgSTRICT_CFLAGS 77717ca54c3SmrgCWARNFLAGS 77817ca54c3SmrgBASE_CFLAGS 77917ca54c3Smrgam__fastdepCC_FALSE 78017ca54c3Smrgam__fastdepCC_TRUE 78117ca54c3SmrgCCDEPMODE 78217ca54c3Smrgam__nodep 78317ca54c3SmrgAMDEPBACKSLASH 78417ca54c3SmrgAMDEP_FALSE 78517ca54c3SmrgAMDEP_TRUE 78617ca54c3Smrgam__include 78717ca54c3SmrgDEPDIR 78817ca54c3SmrgOBJEXT 78917ca54c3SmrgEXEEXT 79017ca54c3Smrgac_ct_CC 79117ca54c3SmrgCPPFLAGS 79217ca54c3SmrgLDFLAGS 79317ca54c3SmrgCFLAGS 79417ca54c3SmrgCC 79517ca54c3SmrgAM_BACKSLASH 79617ca54c3SmrgAM_DEFAULT_VERBOSITY 79717ca54c3SmrgAM_DEFAULT_V 79817ca54c3SmrgAM_V 799ffe57424SmrgCSCOPE 800ffe57424SmrgETAGS 801ffe57424SmrgCTAGS 80217ca54c3Smrgam__untar 80317ca54c3Smrgam__tar 80417ca54c3SmrgAMTAR 80517ca54c3Smrgam__leading_dot 80617ca54c3SmrgSET_MAKE 80717ca54c3SmrgAWK 80817ca54c3Smrgmkdir_p 80917ca54c3SmrgMKDIR_P 81017ca54c3SmrgINSTALL_STRIP_PROGRAM 81117ca54c3SmrgSTRIP 81217ca54c3Smrginstall_sh 81317ca54c3SmrgMAKEINFO 81417ca54c3SmrgAUTOHEADER 81517ca54c3SmrgAUTOMAKE 81617ca54c3SmrgAUTOCONF 81717ca54c3SmrgACLOCAL 81817ca54c3SmrgVERSION 81917ca54c3SmrgPACKAGE 82017ca54c3SmrgCYGPATH_W 82117ca54c3Smrgam__isrc 82217ca54c3SmrgINSTALL_DATA 82317ca54c3SmrgINSTALL_SCRIPT 82417ca54c3SmrgINSTALL_PROGRAM 82517ca54c3Smrgtarget_alias 82617ca54c3Smrghost_alias 82717ca54c3Smrgbuild_alias 82817ca54c3SmrgLIBS 82917ca54c3SmrgECHO_T 83017ca54c3SmrgECHO_N 83117ca54c3SmrgECHO_C 83217ca54c3SmrgDEFS 83317ca54c3Smrgmandir 83417ca54c3Smrglocaledir 83517ca54c3Smrglibdir 83617ca54c3Smrgpsdir 83717ca54c3Smrgpdfdir 83817ca54c3Smrgdvidir 83917ca54c3Smrghtmldir 84017ca54c3Smrginfodir 84117ca54c3Smrgdocdir 84217ca54c3Smrgoldincludedir 84317ca54c3Smrgincludedir 8445395ea76Smrgrunstatedir 84517ca54c3Smrglocalstatedir 84617ca54c3Smrgsharedstatedir 84717ca54c3Smrgsysconfdir 84817ca54c3Smrgdatadir 84917ca54c3Smrgdatarootdir 85017ca54c3Smrglibexecdir 85117ca54c3Smrgsbindir 85217ca54c3Smrgbindir 85317ca54c3Smrgprogram_transform_name 85417ca54c3Smrgprefix 85517ca54c3Smrgexec_prefix 85617ca54c3SmrgPACKAGE_URL 85717ca54c3SmrgPACKAGE_BUGREPORT 85817ca54c3SmrgPACKAGE_STRING 85917ca54c3SmrgPACKAGE_VERSION 86017ca54c3SmrgPACKAGE_TARNAME 86117ca54c3SmrgPACKAGE_NAME 86217ca54c3SmrgPATH_SEPARATOR 863ea1d6981SmrgSHELL 864ea1d6981Smrgam__quote' 86517ca54c3Smrgac_subst_files='' 86617ca54c3Smrgac_user_opts=' 86717ca54c3Smrgenable_option_checking 86817ca54c3Smrgenable_silent_rules 86917ca54c3Smrgenable_dependency_tracking 87017ca54c3Smrgenable_selective_werror 87117ca54c3Smrgenable_strict_compilation 87217ca54c3Smrgenable_specs 87317ca54c3Smrgwith_xmlto 87417ca54c3Smrgwith_fop 87517ca54c3Smrgwith_xsltproc 876ffe57424Smrgwith_python_sys_prefix 877ffe57424Smrgwith_python_prefix 878ffe57424Smrgwith_python_exec_prefix 87917ca54c3Smrgenable_legacy 88017ca54c3Smrg' 88117ca54c3Smrg ac_precious_vars='build_alias 88217ca54c3Smrghost_alias 88317ca54c3Smrgtarget_alias 88417ca54c3SmrgCC 88517ca54c3SmrgCFLAGS 88617ca54c3SmrgLDFLAGS 88717ca54c3SmrgLIBS 88817ca54c3SmrgCPPFLAGS 88917ca54c3SmrgPKG_CONFIG 89017ca54c3SmrgPKG_CONFIG_PATH 89117ca54c3SmrgPKG_CONFIG_LIBDIR 89217ca54c3SmrgXMLTO 89317ca54c3SmrgFOP 8945395ea76SmrgXSLTPROC 8955395ea76SmrgPYTHON' 89617ca54c3Smrg 89717ca54c3Smrg 89817ca54c3Smrg# Initialize some variables set by options. 89917ca54c3Smrgac_init_help= 90017ca54c3Smrgac_init_version=false 90117ca54c3Smrgac_unrecognized_opts= 90217ca54c3Smrgac_unrecognized_sep= 90317ca54c3Smrg# The variables have the same names as the options, with 90417ca54c3Smrg# dashes changed to underlines. 90517ca54c3Smrgcache_file=/dev/null 90617ca54c3Smrgexec_prefix=NONE 90717ca54c3Smrgno_create= 90817ca54c3Smrgno_recursion= 90917ca54c3Smrgprefix=NONE 91017ca54c3Smrgprogram_prefix=NONE 91117ca54c3Smrgprogram_suffix=NONE 91217ca54c3Smrgprogram_transform_name=s,x,x, 91317ca54c3Smrgsilent= 91417ca54c3Smrgsite= 91517ca54c3Smrgsrcdir= 91617ca54c3Smrgverbose= 91717ca54c3Smrgx_includes=NONE 91817ca54c3Smrgx_libraries=NONE 91917ca54c3Smrg 92017ca54c3Smrg# Installation directory options. 92117ca54c3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 92217ca54c3Smrg# and all the variables that are supposed to be based on exec_prefix 92317ca54c3Smrg# by default will actually change. 92417ca54c3Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 92517ca54c3Smrg# (The list follows the same order as the GNU Coding Standards.) 92617ca54c3Smrgbindir='${exec_prefix}/bin' 92717ca54c3Smrgsbindir='${exec_prefix}/sbin' 92817ca54c3Smrglibexecdir='${exec_prefix}/libexec' 92917ca54c3Smrgdatarootdir='${prefix}/share' 93017ca54c3Smrgdatadir='${datarootdir}' 93117ca54c3Smrgsysconfdir='${prefix}/etc' 93217ca54c3Smrgsharedstatedir='${prefix}/com' 93317ca54c3Smrglocalstatedir='${prefix}/var' 9345395ea76Smrgrunstatedir='${localstatedir}/run' 93517ca54c3Smrgincludedir='${prefix}/include' 93617ca54c3Smrgoldincludedir='/usr/include' 93717ca54c3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 93817ca54c3Smrginfodir='${datarootdir}/info' 93917ca54c3Smrghtmldir='${docdir}' 94017ca54c3Smrgdvidir='${docdir}' 94117ca54c3Smrgpdfdir='${docdir}' 94217ca54c3Smrgpsdir='${docdir}' 94317ca54c3Smrglibdir='${exec_prefix}/lib' 94417ca54c3Smrglocaledir='${datarootdir}/locale' 94517ca54c3Smrgmandir='${datarootdir}/man' 94617ca54c3Smrg 94717ca54c3Smrgac_prev= 94817ca54c3Smrgac_dashdash= 94917ca54c3Smrgfor ac_option 95017ca54c3Smrgdo 95117ca54c3Smrg # If the previous option needs an argument, assign it. 95217ca54c3Smrg if test -n "$ac_prev"; then 95317ca54c3Smrg eval $ac_prev=\$ac_option 95417ca54c3Smrg ac_prev= 95517ca54c3Smrg continue 95617ca54c3Smrg fi 95717ca54c3Smrg 95817ca54c3Smrg case $ac_option in 95917ca54c3Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 96017ca54c3Smrg *=) ac_optarg= ;; 96117ca54c3Smrg *) ac_optarg=yes ;; 96217ca54c3Smrg esac 96317ca54c3Smrg 96417ca54c3Smrg case $ac_dashdash$ac_option in 96517ca54c3Smrg --) 96617ca54c3Smrg ac_dashdash=yes ;; 96717ca54c3Smrg 96817ca54c3Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 96917ca54c3Smrg ac_prev=bindir ;; 97017ca54c3Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 97117ca54c3Smrg bindir=$ac_optarg ;; 97217ca54c3Smrg 97317ca54c3Smrg -build | --build | --buil | --bui | --bu) 97417ca54c3Smrg ac_prev=build_alias ;; 97517ca54c3Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 97617ca54c3Smrg build_alias=$ac_optarg ;; 97717ca54c3Smrg 97817ca54c3Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 97917ca54c3Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 98017ca54c3Smrg ac_prev=cache_file ;; 98117ca54c3Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 98217ca54c3Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 98317ca54c3Smrg cache_file=$ac_optarg ;; 98417ca54c3Smrg 98517ca54c3Smrg --config-cache | -C) 98617ca54c3Smrg cache_file=config.cache ;; 98717ca54c3Smrg 98817ca54c3Smrg -datadir | --datadir | --datadi | --datad) 98917ca54c3Smrg ac_prev=datadir ;; 99017ca54c3Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 99117ca54c3Smrg datadir=$ac_optarg ;; 99217ca54c3Smrg 99317ca54c3Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 99417ca54c3Smrg | --dataroo | --dataro | --datar) 99517ca54c3Smrg ac_prev=datarootdir ;; 99617ca54c3Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 99717ca54c3Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 99817ca54c3Smrg datarootdir=$ac_optarg ;; 99917ca54c3Smrg 100017ca54c3Smrg -disable-* | --disable-*) 100117ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 100217ca54c3Smrg # Reject names that are not valid shell variable names. 100317ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004ffe57424Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 100517ca54c3Smrg ac_useropt_orig=$ac_useropt 1006ffe57424Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 100717ca54c3Smrg case $ac_user_opts in 100817ca54c3Smrg *" 100917ca54c3Smrg"enable_$ac_useropt" 101017ca54c3Smrg"*) ;; 101117ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 101217ca54c3Smrg ac_unrecognized_sep=', ';; 101317ca54c3Smrg esac 101417ca54c3Smrg eval enable_$ac_useropt=no ;; 101517ca54c3Smrg 101617ca54c3Smrg -docdir | --docdir | --docdi | --doc | --do) 101717ca54c3Smrg ac_prev=docdir ;; 101817ca54c3Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 101917ca54c3Smrg docdir=$ac_optarg ;; 102017ca54c3Smrg 102117ca54c3Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 102217ca54c3Smrg ac_prev=dvidir ;; 102317ca54c3Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 102417ca54c3Smrg dvidir=$ac_optarg ;; 102517ca54c3Smrg 102617ca54c3Smrg -enable-* | --enable-*) 102717ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 102817ca54c3Smrg # Reject names that are not valid shell variable names. 102917ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1030ffe57424Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 103117ca54c3Smrg ac_useropt_orig=$ac_useropt 1032ffe57424Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 103317ca54c3Smrg case $ac_user_opts in 103417ca54c3Smrg *" 103517ca54c3Smrg"enable_$ac_useropt" 103617ca54c3Smrg"*) ;; 103717ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 103817ca54c3Smrg ac_unrecognized_sep=', ';; 103917ca54c3Smrg esac 104017ca54c3Smrg eval enable_$ac_useropt=\$ac_optarg ;; 104117ca54c3Smrg 104217ca54c3Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 104317ca54c3Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 104417ca54c3Smrg | --exec | --exe | --ex) 104517ca54c3Smrg ac_prev=exec_prefix ;; 104617ca54c3Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 104717ca54c3Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 104817ca54c3Smrg | --exec=* | --exe=* | --ex=*) 104917ca54c3Smrg exec_prefix=$ac_optarg ;; 105017ca54c3Smrg 105117ca54c3Smrg -gas | --gas | --ga | --g) 105217ca54c3Smrg # Obsolete; use --with-gas. 105317ca54c3Smrg with_gas=yes ;; 105417ca54c3Smrg 105517ca54c3Smrg -help | --help | --hel | --he | -h) 105617ca54c3Smrg ac_init_help=long ;; 105717ca54c3Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 105817ca54c3Smrg ac_init_help=recursive ;; 105917ca54c3Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 106017ca54c3Smrg ac_init_help=short ;; 106117ca54c3Smrg 106217ca54c3Smrg -host | --host | --hos | --ho) 106317ca54c3Smrg ac_prev=host_alias ;; 106417ca54c3Smrg -host=* | --host=* | --hos=* | --ho=*) 106517ca54c3Smrg host_alias=$ac_optarg ;; 106617ca54c3Smrg 106717ca54c3Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 106817ca54c3Smrg ac_prev=htmldir ;; 106917ca54c3Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 107017ca54c3Smrg | --ht=*) 107117ca54c3Smrg htmldir=$ac_optarg ;; 107217ca54c3Smrg 107317ca54c3Smrg -includedir | --includedir | --includedi | --included | --include \ 107417ca54c3Smrg | --includ | --inclu | --incl | --inc) 107517ca54c3Smrg ac_prev=includedir ;; 107617ca54c3Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 107717ca54c3Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 107817ca54c3Smrg includedir=$ac_optarg ;; 107917ca54c3Smrg 108017ca54c3Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 108117ca54c3Smrg ac_prev=infodir ;; 108217ca54c3Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 108317ca54c3Smrg infodir=$ac_optarg ;; 108417ca54c3Smrg 108517ca54c3Smrg -libdir | --libdir | --libdi | --libd) 108617ca54c3Smrg ac_prev=libdir ;; 108717ca54c3Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 108817ca54c3Smrg libdir=$ac_optarg ;; 108917ca54c3Smrg 109017ca54c3Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 109117ca54c3Smrg | --libexe | --libex | --libe) 109217ca54c3Smrg ac_prev=libexecdir ;; 109317ca54c3Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 109417ca54c3Smrg | --libexe=* | --libex=* | --libe=*) 109517ca54c3Smrg libexecdir=$ac_optarg ;; 109617ca54c3Smrg 109717ca54c3Smrg -localedir | --localedir | --localedi | --localed | --locale) 109817ca54c3Smrg ac_prev=localedir ;; 109917ca54c3Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 110017ca54c3Smrg localedir=$ac_optarg ;; 110117ca54c3Smrg 110217ca54c3Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 110317ca54c3Smrg | --localstate | --localstat | --localsta | --localst | --locals) 110417ca54c3Smrg ac_prev=localstatedir ;; 110517ca54c3Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 110617ca54c3Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 110717ca54c3Smrg localstatedir=$ac_optarg ;; 110817ca54c3Smrg 110917ca54c3Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 111017ca54c3Smrg ac_prev=mandir ;; 111117ca54c3Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 111217ca54c3Smrg mandir=$ac_optarg ;; 111317ca54c3Smrg 111417ca54c3Smrg -nfp | --nfp | --nf) 111517ca54c3Smrg # Obsolete; use --without-fp. 111617ca54c3Smrg with_fp=no ;; 111717ca54c3Smrg 111817ca54c3Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 111917ca54c3Smrg | --no-cr | --no-c | -n) 112017ca54c3Smrg no_create=yes ;; 112117ca54c3Smrg 112217ca54c3Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 112317ca54c3Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 112417ca54c3Smrg no_recursion=yes ;; 112517ca54c3Smrg 112617ca54c3Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 112717ca54c3Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 112817ca54c3Smrg | --oldin | --oldi | --old | --ol | --o) 112917ca54c3Smrg ac_prev=oldincludedir ;; 113017ca54c3Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 113117ca54c3Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 113217ca54c3Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 113317ca54c3Smrg oldincludedir=$ac_optarg ;; 113417ca54c3Smrg 113517ca54c3Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 113617ca54c3Smrg ac_prev=prefix ;; 113717ca54c3Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 113817ca54c3Smrg prefix=$ac_optarg ;; 113917ca54c3Smrg 114017ca54c3Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 114117ca54c3Smrg | --program-pre | --program-pr | --program-p) 114217ca54c3Smrg ac_prev=program_prefix ;; 114317ca54c3Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 114417ca54c3Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 114517ca54c3Smrg program_prefix=$ac_optarg ;; 114617ca54c3Smrg 114717ca54c3Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 114817ca54c3Smrg | --program-suf | --program-su | --program-s) 114917ca54c3Smrg ac_prev=program_suffix ;; 115017ca54c3Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 115117ca54c3Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 115217ca54c3Smrg program_suffix=$ac_optarg ;; 115317ca54c3Smrg 115417ca54c3Smrg -program-transform-name | --program-transform-name \ 115517ca54c3Smrg | --program-transform-nam | --program-transform-na \ 115617ca54c3Smrg | --program-transform-n | --program-transform- \ 115717ca54c3Smrg | --program-transform | --program-transfor \ 115817ca54c3Smrg | --program-transfo | --program-transf \ 115917ca54c3Smrg | --program-trans | --program-tran \ 116017ca54c3Smrg | --progr-tra | --program-tr | --program-t) 116117ca54c3Smrg ac_prev=program_transform_name ;; 116217ca54c3Smrg -program-transform-name=* | --program-transform-name=* \ 116317ca54c3Smrg | --program-transform-nam=* | --program-transform-na=* \ 116417ca54c3Smrg | --program-transform-n=* | --program-transform-=* \ 116517ca54c3Smrg | --program-transform=* | --program-transfor=* \ 116617ca54c3Smrg | --program-transfo=* | --program-transf=* \ 116717ca54c3Smrg | --program-trans=* | --program-tran=* \ 116817ca54c3Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 116917ca54c3Smrg program_transform_name=$ac_optarg ;; 117017ca54c3Smrg 117117ca54c3Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 117217ca54c3Smrg ac_prev=pdfdir ;; 117317ca54c3Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 117417ca54c3Smrg pdfdir=$ac_optarg ;; 117517ca54c3Smrg 117617ca54c3Smrg -psdir | --psdir | --psdi | --psd | --ps) 117717ca54c3Smrg ac_prev=psdir ;; 117817ca54c3Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 117917ca54c3Smrg psdir=$ac_optarg ;; 118017ca54c3Smrg 118117ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 118217ca54c3Smrg | -silent | --silent | --silen | --sile | --sil) 118317ca54c3Smrg silent=yes ;; 118417ca54c3Smrg 11855395ea76Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 11865395ea76Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 11875395ea76Smrg | --run | --ru | --r) 11885395ea76Smrg ac_prev=runstatedir ;; 11895395ea76Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 11905395ea76Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 11915395ea76Smrg | --run=* | --ru=* | --r=*) 11925395ea76Smrg runstatedir=$ac_optarg ;; 11935395ea76Smrg 119417ca54c3Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 119517ca54c3Smrg ac_prev=sbindir ;; 119617ca54c3Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 119717ca54c3Smrg | --sbi=* | --sb=*) 119817ca54c3Smrg sbindir=$ac_optarg ;; 119917ca54c3Smrg 120017ca54c3Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 120117ca54c3Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 120217ca54c3Smrg | --sharedst | --shareds | --shared | --share | --shar \ 120317ca54c3Smrg | --sha | --sh) 120417ca54c3Smrg ac_prev=sharedstatedir ;; 120517ca54c3Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 120617ca54c3Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 120717ca54c3Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 120817ca54c3Smrg | --sha=* | --sh=*) 120917ca54c3Smrg sharedstatedir=$ac_optarg ;; 121017ca54c3Smrg 121117ca54c3Smrg -site | --site | --sit) 121217ca54c3Smrg ac_prev=site ;; 121317ca54c3Smrg -site=* | --site=* | --sit=*) 121417ca54c3Smrg site=$ac_optarg ;; 121517ca54c3Smrg 121617ca54c3Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 121717ca54c3Smrg ac_prev=srcdir ;; 121817ca54c3Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 121917ca54c3Smrg srcdir=$ac_optarg ;; 122017ca54c3Smrg 122117ca54c3Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 122217ca54c3Smrg | --syscon | --sysco | --sysc | --sys | --sy) 122317ca54c3Smrg ac_prev=sysconfdir ;; 122417ca54c3Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 122517ca54c3Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 122617ca54c3Smrg sysconfdir=$ac_optarg ;; 122717ca54c3Smrg 122817ca54c3Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 122917ca54c3Smrg ac_prev=target_alias ;; 123017ca54c3Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 123117ca54c3Smrg target_alias=$ac_optarg ;; 123217ca54c3Smrg 123317ca54c3Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 123417ca54c3Smrg verbose=yes ;; 123517ca54c3Smrg 123617ca54c3Smrg -version | --version | --versio | --versi | --vers | -V) 123717ca54c3Smrg ac_init_version=: ;; 123817ca54c3Smrg 123917ca54c3Smrg -with-* | --with-*) 124017ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 124117ca54c3Smrg # Reject names that are not valid shell variable names. 124217ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243ffe57424Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 124417ca54c3Smrg ac_useropt_orig=$ac_useropt 1245ffe57424Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 124617ca54c3Smrg case $ac_user_opts in 124717ca54c3Smrg *" 124817ca54c3Smrg"with_$ac_useropt" 124917ca54c3Smrg"*) ;; 125017ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 125117ca54c3Smrg ac_unrecognized_sep=', ';; 125217ca54c3Smrg esac 125317ca54c3Smrg eval with_$ac_useropt=\$ac_optarg ;; 125417ca54c3Smrg 125517ca54c3Smrg -without-* | --without-*) 125617ca54c3Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 125717ca54c3Smrg # Reject names that are not valid shell variable names. 125817ca54c3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259ffe57424Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 126017ca54c3Smrg ac_useropt_orig=$ac_useropt 1261ffe57424Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 126217ca54c3Smrg case $ac_user_opts in 126317ca54c3Smrg *" 126417ca54c3Smrg"with_$ac_useropt" 126517ca54c3Smrg"*) ;; 126617ca54c3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 126717ca54c3Smrg ac_unrecognized_sep=', ';; 126817ca54c3Smrg esac 126917ca54c3Smrg eval with_$ac_useropt=no ;; 127017ca54c3Smrg 127117ca54c3Smrg --x) 127217ca54c3Smrg # Obsolete; use --with-x. 127317ca54c3Smrg with_x=yes ;; 127417ca54c3Smrg 127517ca54c3Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 127617ca54c3Smrg | --x-incl | --x-inc | --x-in | --x-i) 127717ca54c3Smrg ac_prev=x_includes ;; 127817ca54c3Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 127917ca54c3Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 128017ca54c3Smrg x_includes=$ac_optarg ;; 128117ca54c3Smrg 128217ca54c3Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 128317ca54c3Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 128417ca54c3Smrg ac_prev=x_libraries ;; 128517ca54c3Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 128617ca54c3Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 128717ca54c3Smrg x_libraries=$ac_optarg ;; 128817ca54c3Smrg 128917ca54c3Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 129017ca54c3SmrgTry \`$0 --help' for more information" 129117ca54c3Smrg ;; 129217ca54c3Smrg 129317ca54c3Smrg *=*) 129417ca54c3Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 129517ca54c3Smrg # Reject names that are not valid shell variable names. 129617ca54c3Smrg case $ac_envvar in #( 129717ca54c3Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 129817ca54c3Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 129917ca54c3Smrg esac 130017ca54c3Smrg eval $ac_envvar=\$ac_optarg 130117ca54c3Smrg export $ac_envvar ;; 130217ca54c3Smrg 130317ca54c3Smrg *) 130417ca54c3Smrg # FIXME: should be removed in autoconf 3.0. 1305ffe57424Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 130617ca54c3Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1307ffe57424Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 130817ca54c3Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 130917ca54c3Smrg ;; 131017ca54c3Smrg 131117ca54c3Smrg esac 131217ca54c3Smrgdone 131317ca54c3Smrg 131417ca54c3Smrgif test -n "$ac_prev"; then 131517ca54c3Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 131617ca54c3Smrg as_fn_error $? "missing argument to $ac_option" 131717ca54c3Smrgfi 131817ca54c3Smrg 131917ca54c3Smrgif test -n "$ac_unrecognized_opts"; then 132017ca54c3Smrg case $enable_option_checking in 132117ca54c3Smrg no) ;; 132217ca54c3Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1323ffe57424Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 132417ca54c3Smrg esac 132517ca54c3Smrgfi 132617ca54c3Smrg 132717ca54c3Smrg# Check all directory arguments for consistency. 132817ca54c3Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 132917ca54c3Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 133017ca54c3Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 13315395ea76Smrg libdir localedir mandir runstatedir 133217ca54c3Smrgdo 133317ca54c3Smrg eval ac_val=\$$ac_var 133417ca54c3Smrg # Remove trailing slashes. 133517ca54c3Smrg case $ac_val in 133617ca54c3Smrg */ ) 133717ca54c3Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 133817ca54c3Smrg eval $ac_var=\$ac_val;; 133917ca54c3Smrg esac 134017ca54c3Smrg # Be sure to have absolute directory names. 134117ca54c3Smrg case $ac_val in 134217ca54c3Smrg [\\/$]* | ?:[\\/]* ) continue;; 134317ca54c3Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 134417ca54c3Smrg esac 134517ca54c3Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 134617ca54c3Smrgdone 134717ca54c3Smrg 134817ca54c3Smrg# There might be people who depend on the old broken behavior: `$host' 134917ca54c3Smrg# used to hold the argument of --host etc. 135017ca54c3Smrg# FIXME: To remove some day. 135117ca54c3Smrgbuild=$build_alias 135217ca54c3Smrghost=$host_alias 135317ca54c3Smrgtarget=$target_alias 135417ca54c3Smrg 135517ca54c3Smrg# FIXME: To remove some day. 135617ca54c3Smrgif test "x$host_alias" != x; then 135717ca54c3Smrg if test "x$build_alias" = x; then 135817ca54c3Smrg cross_compiling=maybe 135917ca54c3Smrg elif test "x$build_alias" != "x$host_alias"; then 136017ca54c3Smrg cross_compiling=yes 136117ca54c3Smrg fi 136217ca54c3Smrgfi 136317ca54c3Smrg 136417ca54c3Smrgac_tool_prefix= 136517ca54c3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 136617ca54c3Smrg 136717ca54c3Smrgtest "$silent" = yes && exec 6>/dev/null 136817ca54c3Smrg 136917ca54c3Smrg 137017ca54c3Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 137117ca54c3Smrgac_ls_di=`ls -di .` && 137217ca54c3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 137317ca54c3Smrg as_fn_error $? "working directory cannot be determined" 137417ca54c3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 137517ca54c3Smrg as_fn_error $? "pwd does not report name of working directory" 137617ca54c3Smrg 137717ca54c3Smrg 137817ca54c3Smrg# Find the source files, if location was not specified. 137917ca54c3Smrgif test -z "$srcdir"; then 138017ca54c3Smrg ac_srcdir_defaulted=yes 138117ca54c3Smrg # Try the directory containing this script, then the parent directory. 138217ca54c3Smrg ac_confdir=`$as_dirname -- "$as_myself" || 138317ca54c3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 138417ca54c3Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 138517ca54c3Smrg X"$as_myself" : 'X\(//\)$' \| \ 138617ca54c3Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1387ffe57424Smrgprintf "%s\n" X"$as_myself" | 138817ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 138917ca54c3Smrg s//\1/ 139017ca54c3Smrg q 139117ca54c3Smrg } 139217ca54c3Smrg /^X\(\/\/\)[^/].*/{ 139317ca54c3Smrg s//\1/ 139417ca54c3Smrg q 139517ca54c3Smrg } 139617ca54c3Smrg /^X\(\/\/\)$/{ 139717ca54c3Smrg s//\1/ 139817ca54c3Smrg q 139917ca54c3Smrg } 140017ca54c3Smrg /^X\(\/\).*/{ 140117ca54c3Smrg s//\1/ 140217ca54c3Smrg q 140317ca54c3Smrg } 140417ca54c3Smrg s/.*/./; q'` 140517ca54c3Smrg srcdir=$ac_confdir 140617ca54c3Smrg if test ! -r "$srcdir/$ac_unique_file"; then 140717ca54c3Smrg srcdir=.. 140817ca54c3Smrg fi 140917ca54c3Smrgelse 141017ca54c3Smrg ac_srcdir_defaulted=no 141117ca54c3Smrgfi 141217ca54c3Smrgif test ! -r "$srcdir/$ac_unique_file"; then 141317ca54c3Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 141417ca54c3Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 141517ca54c3Smrgfi 141617ca54c3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 141717ca54c3Smrgac_abs_confdir=`( 141817ca54c3Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 141917ca54c3Smrg pwd)` 142017ca54c3Smrg# When building in place, set srcdir=. 142117ca54c3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 142217ca54c3Smrg srcdir=. 142317ca54c3Smrgfi 142417ca54c3Smrg# Remove unnecessary trailing slashes from srcdir. 142517ca54c3Smrg# Double slashes in file names in object file debugging info 142617ca54c3Smrg# mess up M-x gdb in Emacs. 142717ca54c3Smrgcase $srcdir in 142817ca54c3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 142917ca54c3Smrgesac 143017ca54c3Smrgfor ac_var in $ac_precious_vars; do 143117ca54c3Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 143217ca54c3Smrg eval ac_env_${ac_var}_value=\$${ac_var} 143317ca54c3Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 143417ca54c3Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 143517ca54c3Smrgdone 143617ca54c3Smrg 143717ca54c3Smrg# 143817ca54c3Smrg# Report the --help message. 143917ca54c3Smrg# 144017ca54c3Smrgif test "$ac_init_help" = "long"; then 144117ca54c3Smrg # Omit some internal or obsolete options to make the list less imposing. 144217ca54c3Smrg # This message is too long to be a string in the A/UX 3.1 sh. 144317ca54c3Smrg cat <<_ACEOF 1444452262e1Smrg\`configure' configures xorgproto 2022.2 to adapt to many kinds of systems. 144517ca54c3Smrg 144617ca54c3SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 144717ca54c3Smrg 144817ca54c3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 144917ca54c3SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 145017ca54c3Smrg 145117ca54c3SmrgDefaults for the options are specified in brackets. 145217ca54c3Smrg 145317ca54c3SmrgConfiguration: 145417ca54c3Smrg -h, --help display this help and exit 145517ca54c3Smrg --help=short display options specific to this package 145617ca54c3Smrg --help=recursive display the short help of all the included packages 145717ca54c3Smrg -V, --version display version information and exit 145817ca54c3Smrg -q, --quiet, --silent do not print \`checking ...' messages 145917ca54c3Smrg --cache-file=FILE cache test results in FILE [disabled] 146017ca54c3Smrg -C, --config-cache alias for \`--cache-file=config.cache' 146117ca54c3Smrg -n, --no-create do not create output files 146217ca54c3Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 146317ca54c3Smrg 146417ca54c3SmrgInstallation directories: 146517ca54c3Smrg --prefix=PREFIX install architecture-independent files in PREFIX 146617ca54c3Smrg [$ac_default_prefix] 146717ca54c3Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 146817ca54c3Smrg [PREFIX] 146917ca54c3Smrg 147017ca54c3SmrgBy default, \`make install' will install all the files in 147117ca54c3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 147217ca54c3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 147317ca54c3Smrgfor instance \`--prefix=\$HOME'. 147417ca54c3Smrg 147517ca54c3SmrgFor better control, use the options below. 147617ca54c3Smrg 147717ca54c3SmrgFine tuning of the installation directories: 147817ca54c3Smrg --bindir=DIR user executables [EPREFIX/bin] 147917ca54c3Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 148017ca54c3Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 148117ca54c3Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 148217ca54c3Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 148317ca54c3Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 14845395ea76Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 148517ca54c3Smrg --libdir=DIR object code libraries [EPREFIX/lib] 148617ca54c3Smrg --includedir=DIR C header files [PREFIX/include] 148717ca54c3Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 148817ca54c3Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 148917ca54c3Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 149017ca54c3Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 149117ca54c3Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 149217ca54c3Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 149317ca54c3Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto] 149417ca54c3Smrg --htmldir=DIR html documentation [DOCDIR] 149517ca54c3Smrg --dvidir=DIR dvi documentation [DOCDIR] 149617ca54c3Smrg --pdfdir=DIR pdf documentation [DOCDIR] 149717ca54c3Smrg --psdir=DIR ps documentation [DOCDIR] 149817ca54c3Smrg_ACEOF 149917ca54c3Smrg 150017ca54c3Smrg cat <<\_ACEOF 150117ca54c3Smrg 150217ca54c3SmrgProgram names: 150317ca54c3Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 150417ca54c3Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 150517ca54c3Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 150617ca54c3Smrg 150717ca54c3SmrgSystem types: 150817ca54c3Smrg --build=BUILD configure for building on BUILD [guessed] 150917ca54c3Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 151017ca54c3Smrg_ACEOF 151117ca54c3Smrgfi 151217ca54c3Smrg 151317ca54c3Smrgif test -n "$ac_init_help"; then 151417ca54c3Smrg case $ac_init_help in 1515452262e1Smrg short | recursive ) echo "Configuration of xorgproto 2022.2:";; 151617ca54c3Smrg esac 151717ca54c3Smrg cat <<\_ACEOF 151817ca54c3Smrg 151917ca54c3SmrgOptional Features: 152017ca54c3Smrg --disable-option-checking ignore unrecognized --enable/--with options 152117ca54c3Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 152217ca54c3Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 152317ca54c3Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 152417ca54c3Smrg --disable-silent-rules verbose build output (undo: "make V=0") 152517ca54c3Smrg --enable-dependency-tracking 152617ca54c3Smrg do not reject slow dependency extractors 152717ca54c3Smrg --disable-dependency-tracking 152817ca54c3Smrg speeds up one-time build 152917ca54c3Smrg --disable-selective-werror 153017ca54c3Smrg Turn off selective compiler errors. (default: 153117ca54c3Smrg enabled) 153217ca54c3Smrg --enable-strict-compilation 153317ca54c3Smrg Enable all warnings from compiler and make them 153417ca54c3Smrg errors (default: disabled) 153517ca54c3Smrg --enable-specs Enable building the specs (default: yes) 153617ca54c3Smrg --enable-legacy Install legacy protocol headers (default: false) 153717ca54c3Smrg 153817ca54c3SmrgOptional Packages: 153917ca54c3Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 154017ca54c3Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 154117ca54c3Smrg --with-xmlto Use xmlto to regenerate documentation (default: 154217ca54c3Smrg auto) 154317ca54c3Smrg --with-fop Use fop to regenerate documentation (default: auto) 154417ca54c3Smrg --with-xsltproc Use xsltproc for the transformation of XML documents 154517ca54c3Smrg (default: auto) 1546ffe57424Smrg --with-python-sys-prefix 1547ffe57424Smrg use Python's sys.prefix and sys.exec_prefix values 1548ffe57424Smrg --with-python_prefix override the default PYTHON_PREFIX 1549ffe57424Smrg --with-python_exec_prefix 1550ffe57424Smrg override the default PYTHON_EXEC_PREFIX 155117ca54c3Smrg 155217ca54c3SmrgSome influential environment variables: 155317ca54c3Smrg CC C compiler command 155417ca54c3Smrg CFLAGS C compiler flags 155517ca54c3Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 155617ca54c3Smrg nonstandard directory <lib dir> 155717ca54c3Smrg LIBS libraries to pass to the linker, e.g. -l<library> 155817ca54c3Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 155917ca54c3Smrg you have headers in a nonstandard directory <include dir> 156017ca54c3Smrg PKG_CONFIG path to pkg-config utility 156117ca54c3Smrg PKG_CONFIG_PATH 156217ca54c3Smrg directories to add to pkg-config's search path 156317ca54c3Smrg PKG_CONFIG_LIBDIR 156417ca54c3Smrg path overriding pkg-config's built-in search path 156517ca54c3Smrg XMLTO Path to xmlto command 156617ca54c3Smrg FOP Path to fop command 156717ca54c3Smrg XSLTPROC Path to xsltproc command 15685395ea76Smrg PYTHON the Python interpreter 156917ca54c3Smrg 157017ca54c3SmrgUse these variables to override the choices made by `configure' or to help 157117ca54c3Smrgit to find libraries and programs with nonstandard names/locations. 157217ca54c3Smrg 1573ea1d6981SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 157417ca54c3Smrg_ACEOF 157517ca54c3Smrgac_status=$? 157617ca54c3Smrgfi 157717ca54c3Smrg 157817ca54c3Smrgif test "$ac_init_help" = "recursive"; then 157917ca54c3Smrg # If there are subdirs, report their specific --help. 158017ca54c3Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 158117ca54c3Smrg test -d "$ac_dir" || 158217ca54c3Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 158317ca54c3Smrg continue 158417ca54c3Smrg ac_builddir=. 158517ca54c3Smrg 158617ca54c3Smrgcase "$ac_dir" in 158717ca54c3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 158817ca54c3Smrg*) 1589ffe57424Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 159017ca54c3Smrg # A ".." for each directory in $ac_dir_suffix. 1591ffe57424Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 159217ca54c3Smrg case $ac_top_builddir_sub in 159317ca54c3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 159417ca54c3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 159517ca54c3Smrg esac ;; 159617ca54c3Smrgesac 159717ca54c3Smrgac_abs_top_builddir=$ac_pwd 159817ca54c3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 159917ca54c3Smrg# for backward compatibility: 160017ca54c3Smrgac_top_builddir=$ac_top_build_prefix 160117ca54c3Smrg 160217ca54c3Smrgcase $srcdir in 160317ca54c3Smrg .) # We are building in place. 160417ca54c3Smrg ac_srcdir=. 160517ca54c3Smrg ac_top_srcdir=$ac_top_builddir_sub 160617ca54c3Smrg ac_abs_top_srcdir=$ac_pwd ;; 160717ca54c3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 160817ca54c3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 160917ca54c3Smrg ac_top_srcdir=$srcdir 161017ca54c3Smrg ac_abs_top_srcdir=$srcdir ;; 161117ca54c3Smrg *) # Relative name. 161217ca54c3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 161317ca54c3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 161417ca54c3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 161517ca54c3Smrgesac 161617ca54c3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 161717ca54c3Smrg 161817ca54c3Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1619ffe57424Smrg # Check for configure.gnu first; this name is used for a wrapper for 1620ffe57424Smrg # Metaconfig's "Configure" on case-insensitive file systems. 162117ca54c3Smrg if test -f "$ac_srcdir/configure.gnu"; then 162217ca54c3Smrg echo && 162317ca54c3Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 162417ca54c3Smrg elif test -f "$ac_srcdir/configure"; then 162517ca54c3Smrg echo && 162617ca54c3Smrg $SHELL "$ac_srcdir/configure" --help=recursive 162717ca54c3Smrg else 1628ffe57424Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 162917ca54c3Smrg fi || ac_status=$? 163017ca54c3Smrg cd "$ac_pwd" || { ac_status=$?; break; } 163117ca54c3Smrg done 163217ca54c3Smrgfi 163317ca54c3Smrg 163417ca54c3Smrgtest -n "$ac_init_help" && exit $ac_status 163517ca54c3Smrgif $ac_init_version; then 163617ca54c3Smrg cat <<\_ACEOF 1637452262e1Smrgxorgproto configure 2022.2 1638ffe57424Smrggenerated by GNU Autoconf 2.71 163917ca54c3Smrg 1640ffe57424SmrgCopyright (C) 2021 Free Software Foundation, Inc. 164117ca54c3SmrgThis configure script is free software; the Free Software Foundation 164217ca54c3Smrggives unlimited permission to copy, distribute and modify it. 164317ca54c3Smrg_ACEOF 164417ca54c3Smrg exit 164517ca54c3Smrgfi 164617ca54c3Smrg 164717ca54c3Smrg## ------------------------ ## 164817ca54c3Smrg## Autoconf initialization. ## 164917ca54c3Smrg## ------------------------ ## 165017ca54c3Smrg 165117ca54c3Smrg# ac_fn_c_try_compile LINENO 165217ca54c3Smrg# -------------------------- 165317ca54c3Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 165417ca54c3Smrgac_fn_c_try_compile () 165517ca54c3Smrg{ 165617ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657ffe57424Smrg rm -f conftest.$ac_objext conftest.beam 165817ca54c3Smrg if { { ac_try="$ac_compile" 165917ca54c3Smrgcase "(($ac_try" in 166017ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 166117ca54c3Smrg *) ac_try_echo=$ac_try;; 166217ca54c3Smrgesac 166317ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 166517ca54c3Smrg (eval "$ac_compile") 2>conftest.err 166617ca54c3Smrg ac_status=$? 166717ca54c3Smrg if test -s conftest.err; then 166817ca54c3Smrg grep -v '^ *+' conftest.err >conftest.er1 166917ca54c3Smrg cat conftest.er1 >&5 167017ca54c3Smrg mv -f conftest.er1 conftest.err 167117ca54c3Smrg fi 1672ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 167317ca54c3Smrg test $ac_status = 0; } && { 167417ca54c3Smrg test -z "$ac_c_werror_flag" || 167517ca54c3Smrg test ! -s conftest.err 1676ffe57424Smrg } && test -s conftest.$ac_objext 1677ffe57424Smrgthen : 167817ca54c3Smrg ac_retval=0 1679ffe57424Smrgelse $as_nop 1680ffe57424Smrg printf "%s\n" "$as_me: failed program was:" >&5 168117ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 168217ca54c3Smrg 168317ca54c3Smrg ac_retval=1 168417ca54c3Smrgfi 168517ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 168617ca54c3Smrg as_fn_set_status $ac_retval 168717ca54c3Smrg 168817ca54c3Smrg} # ac_fn_c_try_compile 168917ca54c3Smrg 1690ffe57424Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1691ffe57424Smrg# ------------------------------------------------------------------ 169217ca54c3Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1693ffe57424Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1694ffe57424Smrgac_fn_check_decl () 169517ca54c3Smrg{ 169617ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 169717ca54c3Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1698ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1699ffe57424Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1700ffe57424Smrgif eval test \${$3+y} 1701ffe57424Smrgthen : 1702ffe57424Smrg printf %s "(cached) " >&6 1703ffe57424Smrgelse $as_nop 170417ca54c3Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1705ffe57424Smrg eval ac_save_FLAGS=\$$6 1706ffe57424Smrg as_fn_append $6 " $5" 170717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 170817ca54c3Smrg/* end confdefs.h. */ 170917ca54c3Smrg$4 171017ca54c3Smrgint 1711ffe57424Smrgmain (void) 171217ca54c3Smrg{ 171317ca54c3Smrg#ifndef $as_decl_name 171417ca54c3Smrg#ifdef __cplusplus 171517ca54c3Smrg (void) $as_decl_use; 171617ca54c3Smrg#else 171717ca54c3Smrg (void) $as_decl_name; 171817ca54c3Smrg#endif 171917ca54c3Smrg#endif 172017ca54c3Smrg 172117ca54c3Smrg ; 172217ca54c3Smrg return 0; 172317ca54c3Smrg} 172417ca54c3Smrg_ACEOF 1725ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 1726ffe57424Smrgthen : 172717ca54c3Smrg eval "$3=yes" 1728ffe57424Smrgelse $as_nop 172917ca54c3Smrg eval "$3=no" 173017ca54c3Smrgfi 1731ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1732ffe57424Smrg eval $6=\$ac_save_FLAGS 173317ca54c3Smrg 173417ca54c3Smrgfi 1735ffe57424Smrgeval ac_res=\$$3 1736ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737ffe57424Smrgprintf "%s\n" "$ac_res" >&6; } 173817ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 173917ca54c3Smrg 1740ffe57424Smrg} # ac_fn_check_decl 174117ca54c3Smrg 174217ca54c3Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 174317ca54c3Smrg# ------------------------------------------------------- 174417ca54c3Smrg# Tests whether HEADER exists and can be compiled using the include files in 174517ca54c3Smrg# INCLUDES, setting the cache variable VAR accordingly. 174617ca54c3Smrgac_fn_c_check_header_compile () 174717ca54c3Smrg{ 174817ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750ffe57424Smrgprintf %s "checking for $2... " >&6; } 1751ffe57424Smrgif eval test \${$3+y} 1752ffe57424Smrgthen : 1753ffe57424Smrg printf %s "(cached) " >&6 1754ffe57424Smrgelse $as_nop 175517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 175617ca54c3Smrg/* end confdefs.h. */ 175717ca54c3Smrg$4 175817ca54c3Smrg#include <$2> 175917ca54c3Smrg_ACEOF 1760ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 1761ffe57424Smrgthen : 176217ca54c3Smrg eval "$3=yes" 1763ffe57424Smrgelse $as_nop 176417ca54c3Smrg eval "$3=no" 176517ca54c3Smrgfi 1766ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 176717ca54c3Smrgfi 176817ca54c3Smrgeval ac_res=\$$3 1769ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770ffe57424Smrgprintf "%s\n" "$ac_res" >&6; } 177117ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 177217ca54c3Smrg 177317ca54c3Smrg} # ac_fn_c_check_header_compile 177417ca54c3Smrg 177517ca54c3Smrg# ac_fn_c_try_link LINENO 177617ca54c3Smrg# ----------------------- 177717ca54c3Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 177817ca54c3Smrgac_fn_c_try_link () 177917ca54c3Smrg{ 178017ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781ffe57424Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 178217ca54c3Smrg if { { ac_try="$ac_link" 178317ca54c3Smrgcase "(($ac_try" in 178417ca54c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 178517ca54c3Smrg *) ac_try_echo=$ac_try;; 178617ca54c3Smrgesac 178717ca54c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 178917ca54c3Smrg (eval "$ac_link") 2>conftest.err 179017ca54c3Smrg ac_status=$? 179117ca54c3Smrg if test -s conftest.err; then 179217ca54c3Smrg grep -v '^ *+' conftest.err >conftest.er1 179317ca54c3Smrg cat conftest.er1 >&5 179417ca54c3Smrg mv -f conftest.er1 conftest.err 179517ca54c3Smrg fi 1796ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 179717ca54c3Smrg test $ac_status = 0; } && { 179817ca54c3Smrg test -z "$ac_c_werror_flag" || 179917ca54c3Smrg test ! -s conftest.err 180017ca54c3Smrg } && test -s conftest$ac_exeext && { 180117ca54c3Smrg test "$cross_compiling" = yes || 180217ca54c3Smrg test -x conftest$ac_exeext 1803ffe57424Smrg } 1804ffe57424Smrgthen : 180517ca54c3Smrg ac_retval=0 1806ffe57424Smrgelse $as_nop 1807ffe57424Smrg printf "%s\n" "$as_me: failed program was:" >&5 180817ca54c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 180917ca54c3Smrg 181017ca54c3Smrg ac_retval=1 181117ca54c3Smrgfi 181217ca54c3Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 181317ca54c3Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 181417ca54c3Smrg # interfere with the next link command; also delete a directory that is 181517ca54c3Smrg # left behind by Apple's compiler. We do this before executing the actions. 181617ca54c3Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 181717ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 181817ca54c3Smrg as_fn_set_status $ac_retval 181917ca54c3Smrg 182017ca54c3Smrg} # ac_fn_c_try_link 182117ca54c3Smrg 182217ca54c3Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 182317ca54c3Smrg# ---------------------------------------------------- 182417ca54c3Smrg# Tries to find if the field MEMBER exists in type AGGR, after including 182517ca54c3Smrg# INCLUDES, setting cache variable VAR accordingly. 182617ca54c3Smrgac_fn_c_check_member () 182717ca54c3Smrg{ 182817ca54c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1830ffe57424Smrgprintf %s "checking for $2.$3... " >&6; } 1831ffe57424Smrgif eval test \${$4+y} 1832ffe57424Smrgthen : 1833ffe57424Smrg printf %s "(cached) " >&6 1834ffe57424Smrgelse $as_nop 183517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 183617ca54c3Smrg/* end confdefs.h. */ 183717ca54c3Smrg$5 183817ca54c3Smrgint 1839ffe57424Smrgmain (void) 184017ca54c3Smrg{ 184117ca54c3Smrgstatic $2 ac_aggr; 184217ca54c3Smrgif (ac_aggr.$3) 184317ca54c3Smrgreturn 0; 184417ca54c3Smrg ; 184517ca54c3Smrg return 0; 184617ca54c3Smrg} 184717ca54c3Smrg_ACEOF 1848ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 1849ffe57424Smrgthen : 185017ca54c3Smrg eval "$4=yes" 1851ffe57424Smrgelse $as_nop 185217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 185317ca54c3Smrg/* end confdefs.h. */ 185417ca54c3Smrg$5 185517ca54c3Smrgint 1856ffe57424Smrgmain (void) 185717ca54c3Smrg{ 185817ca54c3Smrgstatic $2 ac_aggr; 185917ca54c3Smrgif (sizeof ac_aggr.$3) 186017ca54c3Smrgreturn 0; 186117ca54c3Smrg ; 186217ca54c3Smrg return 0; 186317ca54c3Smrg} 186417ca54c3Smrg_ACEOF 1865ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 1866ffe57424Smrgthen : 186717ca54c3Smrg eval "$4=yes" 1868ffe57424Smrgelse $as_nop 186917ca54c3Smrg eval "$4=no" 187017ca54c3Smrgfi 1871ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 187217ca54c3Smrgfi 1873ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 187417ca54c3Smrgfi 187517ca54c3Smrgeval ac_res=\$$4 1876ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877ffe57424Smrgprintf "%s\n" "$ac_res" >&6; } 187817ca54c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 187917ca54c3Smrg 188017ca54c3Smrg} # ac_fn_c_check_member 1881ffe57424Smrgac_configure_args_raw= 1882ffe57424Smrgfor ac_arg 1883ffe57424Smrgdo 1884ffe57424Smrg case $ac_arg in 1885ffe57424Smrg *\'*) 1886ffe57424Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1887ffe57424Smrg esac 1888ffe57424Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1889ffe57424Smrgdone 1890ffe57424Smrg 1891ffe57424Smrgcase $ac_configure_args_raw in 1892ffe57424Smrg *$as_nl*) 1893ffe57424Smrg ac_safe_unquote= ;; 1894ffe57424Smrg *) 1895ffe57424Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1896ffe57424Smrg ac_unsafe_a="$ac_unsafe_z#~" 1897ffe57424Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1898ffe57424Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1899ffe57424Smrgesac 1900ffe57424Smrg 190117ca54c3Smrgcat >config.log <<_ACEOF 190217ca54c3SmrgThis file contains any messages produced by compilers while 190317ca54c3Smrgrunning configure, to aid debugging if configure makes a mistake. 190417ca54c3Smrg 1905452262e1SmrgIt was created by xorgproto $as_me 2022.2, which was 1906ffe57424Smrggenerated by GNU Autoconf 2.71. Invocation command line was 190717ca54c3Smrg 1908ffe57424Smrg $ $0$ac_configure_args_raw 190917ca54c3Smrg 191017ca54c3Smrg_ACEOF 191117ca54c3Smrgexec 5>>config.log 191217ca54c3Smrg{ 191317ca54c3Smrgcat <<_ASUNAME 191417ca54c3Smrg## --------- ## 191517ca54c3Smrg## Platform. ## 191617ca54c3Smrg## --------- ## 191717ca54c3Smrg 191817ca54c3Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 191917ca54c3Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 192017ca54c3Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 192117ca54c3Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 192217ca54c3Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 192317ca54c3Smrg 192417ca54c3Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 192517ca54c3Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 192617ca54c3Smrg 192717ca54c3Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 192817ca54c3Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 192917ca54c3Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 193017ca54c3Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 193117ca54c3Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 193217ca54c3Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 193317ca54c3Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 193417ca54c3Smrg 193517ca54c3Smrg_ASUNAME 193617ca54c3Smrg 193717ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193817ca54c3Smrgfor as_dir in $PATH 193917ca54c3Smrgdo 194017ca54c3Smrg IFS=$as_save_IFS 1941ffe57424Smrg case $as_dir in #((( 1942ffe57424Smrg '') as_dir=./ ;; 1943ffe57424Smrg */) ;; 1944ffe57424Smrg *) as_dir=$as_dir/ ;; 1945ffe57424Smrg esac 1946ffe57424Smrg printf "%s\n" "PATH: $as_dir" 194717ca54c3Smrg done 194817ca54c3SmrgIFS=$as_save_IFS 194917ca54c3Smrg 195017ca54c3Smrg} >&5 195117ca54c3Smrg 195217ca54c3Smrgcat >&5 <<_ACEOF 195317ca54c3Smrg 195417ca54c3Smrg 195517ca54c3Smrg## ----------- ## 195617ca54c3Smrg## Core tests. ## 195717ca54c3Smrg## ----------- ## 195817ca54c3Smrg 195917ca54c3Smrg_ACEOF 196017ca54c3Smrg 196117ca54c3Smrg 196217ca54c3Smrg# Keep a trace of the command line. 196317ca54c3Smrg# Strip out --no-create and --no-recursion so they do not pile up. 196417ca54c3Smrg# Strip out --silent because we don't want to record it for future runs. 196517ca54c3Smrg# Also quote any args containing shell meta-characters. 196617ca54c3Smrg# Make two passes to allow for proper duplicate-argument suppression. 196717ca54c3Smrgac_configure_args= 196817ca54c3Smrgac_configure_args0= 196917ca54c3Smrgac_configure_args1= 197017ca54c3Smrgac_must_keep_next=false 197117ca54c3Smrgfor ac_pass in 1 2 197217ca54c3Smrgdo 197317ca54c3Smrg for ac_arg 197417ca54c3Smrg do 197517ca54c3Smrg case $ac_arg in 197617ca54c3Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 197717ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 197817ca54c3Smrg | -silent | --silent | --silen | --sile | --sil) 197917ca54c3Smrg continue ;; 198017ca54c3Smrg *\'*) 1981ffe57424Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 198217ca54c3Smrg esac 198317ca54c3Smrg case $ac_pass in 198417ca54c3Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 198517ca54c3Smrg 2) 198617ca54c3Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 198717ca54c3Smrg if test $ac_must_keep_next = true; then 198817ca54c3Smrg ac_must_keep_next=false # Got value, back to normal. 198917ca54c3Smrg else 199017ca54c3Smrg case $ac_arg in 199117ca54c3Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 199217ca54c3Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 199317ca54c3Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 199417ca54c3Smrg | -with-* | --with-* | -without-* | --without-* | --x) 199517ca54c3Smrg case "$ac_configure_args0 " in 199617ca54c3Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 199717ca54c3Smrg esac 199817ca54c3Smrg ;; 199917ca54c3Smrg -* ) ac_must_keep_next=true ;; 200017ca54c3Smrg esac 200117ca54c3Smrg fi 200217ca54c3Smrg as_fn_append ac_configure_args " '$ac_arg'" 200317ca54c3Smrg ;; 200417ca54c3Smrg esac 200517ca54c3Smrg done 200617ca54c3Smrgdone 200717ca54c3Smrg{ ac_configure_args0=; unset ac_configure_args0;} 200817ca54c3Smrg{ ac_configure_args1=; unset ac_configure_args1;} 200917ca54c3Smrg 201017ca54c3Smrg# When interrupted or exit'd, cleanup temporary files, and complete 201117ca54c3Smrg# config.log. We remove comments because anyway the quotes in there 201217ca54c3Smrg# would cause problems or look ugly. 201317ca54c3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 201417ca54c3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 201517ca54c3Smrgtrap 'exit_status=$? 2016ffe57424Smrg # Sanitize IFS. 2017ffe57424Smrg IFS=" "" $as_nl" 201817ca54c3Smrg # Save into config.log some information that might help in debugging. 201917ca54c3Smrg { 202017ca54c3Smrg echo 202117ca54c3Smrg 2022ffe57424Smrg printf "%s\n" "## ---------------- ## 202317ca54c3Smrg## Cache variables. ## 202417ca54c3Smrg## ---------------- ##" 202517ca54c3Smrg echo 202617ca54c3Smrg # The following way of writing the cache mishandles newlines in values, 202717ca54c3Smrg( 202817ca54c3Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 202917ca54c3Smrg eval ac_val=\$$ac_var 203017ca54c3Smrg case $ac_val in #( 203117ca54c3Smrg *${as_nl}*) 203217ca54c3Smrg case $ac_var in #( 2033ffe57424Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2034ffe57424Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 203517ca54c3Smrg esac 203617ca54c3Smrg case $ac_var in #( 203717ca54c3Smrg _ | IFS | as_nl) ;; #( 203817ca54c3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 203917ca54c3Smrg *) { eval $ac_var=; unset $ac_var;} ;; 204017ca54c3Smrg esac ;; 204117ca54c3Smrg esac 204217ca54c3Smrg done 204317ca54c3Smrg (set) 2>&1 | 204417ca54c3Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 204517ca54c3Smrg *${as_nl}ac_space=\ *) 204617ca54c3Smrg sed -n \ 204717ca54c3Smrg "s/'\''/'\''\\\\'\'''\''/g; 204817ca54c3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 204917ca54c3Smrg ;; #( 205017ca54c3Smrg *) 205117ca54c3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 205217ca54c3Smrg ;; 205317ca54c3Smrg esac | 205417ca54c3Smrg sort 205517ca54c3Smrg) 205617ca54c3Smrg echo 205717ca54c3Smrg 2058ffe57424Smrg printf "%s\n" "## ----------------- ## 205917ca54c3Smrg## Output variables. ## 206017ca54c3Smrg## ----------------- ##" 206117ca54c3Smrg echo 206217ca54c3Smrg for ac_var in $ac_subst_vars 206317ca54c3Smrg do 206417ca54c3Smrg eval ac_val=\$$ac_var 206517ca54c3Smrg case $ac_val in 2066ffe57424Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 206717ca54c3Smrg esac 2068ffe57424Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 206917ca54c3Smrg done | sort 207017ca54c3Smrg echo 207117ca54c3Smrg 207217ca54c3Smrg if test -n "$ac_subst_files"; then 2073ffe57424Smrg printf "%s\n" "## ------------------- ## 207417ca54c3Smrg## File substitutions. ## 207517ca54c3Smrg## ------------------- ##" 207617ca54c3Smrg echo 207717ca54c3Smrg for ac_var in $ac_subst_files 207817ca54c3Smrg do 207917ca54c3Smrg eval ac_val=\$$ac_var 208017ca54c3Smrg case $ac_val in 2081ffe57424Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 208217ca54c3Smrg esac 2083ffe57424Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 208417ca54c3Smrg done | sort 208517ca54c3Smrg echo 208617ca54c3Smrg fi 208717ca54c3Smrg 208817ca54c3Smrg if test -s confdefs.h; then 2089ffe57424Smrg printf "%s\n" "## ----------- ## 209017ca54c3Smrg## confdefs.h. ## 209117ca54c3Smrg## ----------- ##" 209217ca54c3Smrg echo 209317ca54c3Smrg cat confdefs.h 209417ca54c3Smrg echo 209517ca54c3Smrg fi 209617ca54c3Smrg test "$ac_signal" != 0 && 2097ffe57424Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 2098ffe57424Smrg printf "%s\n" "$as_me: exit $exit_status" 209917ca54c3Smrg } >&5 210017ca54c3Smrg rm -f core *.core core.conftest.* && 210117ca54c3Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 210217ca54c3Smrg exit $exit_status 210317ca54c3Smrg' 0 210417ca54c3Smrgfor ac_signal in 1 2 13 15; do 210517ca54c3Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 210617ca54c3Smrgdone 210717ca54c3Smrgac_signal=0 210817ca54c3Smrg 210917ca54c3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 211017ca54c3Smrgrm -f -r conftest* confdefs.h 211117ca54c3Smrg 2112ffe57424Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 211317ca54c3Smrg 211417ca54c3Smrg# Predefined preprocessor variables. 211517ca54c3Smrg 2116ffe57424Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 211717ca54c3Smrg 2118ffe57424Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 211917ca54c3Smrg 2120ffe57424Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 212117ca54c3Smrg 2122ffe57424Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 212317ca54c3Smrg 2124ffe57424Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 212517ca54c3Smrg 2126ffe57424Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 212717ca54c3Smrg 212817ca54c3Smrg 212917ca54c3Smrg# Let the site file select an alternate cache file if it wants to. 213017ca54c3Smrg# Prefer an explicitly selected file to automatically selected ones. 213117ca54c3Smrgif test -n "$CONFIG_SITE"; then 2132ffe57424Smrg ac_site_files="$CONFIG_SITE" 213317ca54c3Smrgelif test "x$prefix" != xNONE; then 2134ffe57424Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 213517ca54c3Smrgelse 2136ffe57424Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 213717ca54c3Smrgfi 2138ffe57424Smrg 2139ffe57424Smrgfor ac_site_file in $ac_site_files 214017ca54c3Smrgdo 2141ffe57424Smrg case $ac_site_file in #( 2142ffe57424Smrg */*) : 2143ffe57424Smrg ;; #( 2144ffe57424Smrg *) : 2145ffe57424Smrg ac_site_file=./$ac_site_file ;; 2146ffe57424Smrgesac 2147ffe57424Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2148ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2149ffe57424Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 215017ca54c3Smrg sed 's/^/| /' "$ac_site_file" >&5 215117ca54c3Smrg . "$ac_site_file" \ 2152ffe57424Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2153ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 215417ca54c3Smrgas_fn_error $? "failed to load site script $ac_site_file 215517ca54c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 215617ca54c3Smrg fi 215717ca54c3Smrgdone 215817ca54c3Smrg 215917ca54c3Smrgif test -r "$cache_file"; then 216017ca54c3Smrg # Some versions of bash will fail to source /dev/null (special files 216117ca54c3Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 216217ca54c3Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2163ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2164ffe57424Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 216517ca54c3Smrg case $cache_file in 216617ca54c3Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 216717ca54c3Smrg *) . "./$cache_file";; 216817ca54c3Smrg esac 216917ca54c3Smrg fi 217017ca54c3Smrgelse 2171ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2172ffe57424Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 217317ca54c3Smrg >$cache_file 217417ca54c3Smrgfi 217517ca54c3Smrg 2176ffe57424Smrg# Test code for whether the C compiler supports C89 (global declarations) 2177ffe57424Smrgac_c_conftest_c89_globals=' 2178ffe57424Smrg/* Does the compiler advertise C89 conformance? 2179ffe57424Smrg Do not test the value of __STDC__, because some compilers set it to 0 2180ffe57424Smrg while being otherwise adequately conformant. */ 2181ffe57424Smrg#if !defined __STDC__ 2182ffe57424Smrg# error "Compiler does not advertise C89 conformance" 2183ffe57424Smrg#endif 218417ca54c3Smrg 2185ffe57424Smrg#include <stddef.h> 2186ffe57424Smrg#include <stdarg.h> 2187ffe57424Smrgstruct stat; 2188ffe57424Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2189ffe57424Smrgstruct buf { int x; }; 2190ffe57424Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2191ffe57424Smrgstatic char *e (p, i) 2192ffe57424Smrg char **p; 2193ffe57424Smrg int i; 2194ffe57424Smrg{ 2195ffe57424Smrg return p[i]; 2196ffe57424Smrg} 2197ffe57424Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2198ffe57424Smrg{ 2199ffe57424Smrg char *s; 2200ffe57424Smrg va_list v; 2201ffe57424Smrg va_start (v,p); 2202ffe57424Smrg s = g (p, va_arg (v,int)); 2203ffe57424Smrg va_end (v); 2204ffe57424Smrg return s; 2205ffe57424Smrg} 2206ffe57424Smrg 2207ffe57424Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2208ffe57424Smrg function prototypes and stuff, but not \xHH hex character constants. 2209ffe57424Smrg These do not provoke an error unfortunately, instead are silently treated 2210ffe57424Smrg as an "x". The following induces an error, until -std is added to get 2211ffe57424Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2212ffe57424Smrg array size at least. It is necessary to write \x00 == 0 to get something 2213ffe57424Smrg that is true only with -std. */ 2214ffe57424Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2215ffe57424Smrg 2216ffe57424Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2217ffe57424Smrg inside strings and character constants. */ 2218ffe57424Smrg#define FOO(x) '\''x'\'' 2219ffe57424Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2220ffe57424Smrg 2221ffe57424Smrgint test (int i, double x); 2222ffe57424Smrgstruct s1 {int (*f) (int a);}; 2223ffe57424Smrgstruct s2 {int (*f) (double a);}; 2224ffe57424Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2225ffe57424Smrg int, int);' 2226ffe57424Smrg 2227ffe57424Smrg# Test code for whether the C compiler supports C89 (body of main). 2228ffe57424Smrgac_c_conftest_c89_main=' 2229ffe57424Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2230ffe57424Smrg' 2231ffe57424Smrg 2232ffe57424Smrg# Test code for whether the C compiler supports C99 (global declarations) 2233ffe57424Smrgac_c_conftest_c99_globals=' 2234ffe57424Smrg// Does the compiler advertise C99 conformance? 2235ffe57424Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2236ffe57424Smrg# error "Compiler does not advertise C99 conformance" 2237ffe57424Smrg#endif 2238ffe57424Smrg 2239ffe57424Smrg#include <stdbool.h> 2240ffe57424Smrgextern int puts (const char *); 2241ffe57424Smrgextern int printf (const char *, ...); 2242ffe57424Smrgextern int dprintf (int, const char *, ...); 2243ffe57424Smrgextern void *malloc (size_t); 2244ffe57424Smrg 2245ffe57424Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2246ffe57424Smrg// dprintf is used instead of fprintf to avoid needing to declare 2247ffe57424Smrg// FILE and stderr. 2248ffe57424Smrg#define debug(...) dprintf (2, __VA_ARGS__) 2249ffe57424Smrg#define showlist(...) puts (#__VA_ARGS__) 2250ffe57424Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2251ffe57424Smrgstatic void 2252ffe57424Smrgtest_varargs_macros (void) 2253ffe57424Smrg{ 2254ffe57424Smrg int x = 1234; 2255ffe57424Smrg int y = 5678; 2256ffe57424Smrg debug ("Flag"); 2257ffe57424Smrg debug ("X = %d\n", x); 2258ffe57424Smrg showlist (The first, second, and third items.); 2259ffe57424Smrg report (x>y, "x is %d but y is %d", x, y); 2260ffe57424Smrg} 2261ffe57424Smrg 2262ffe57424Smrg// Check long long types. 2263ffe57424Smrg#define BIG64 18446744073709551615ull 2264ffe57424Smrg#define BIG32 4294967295ul 2265ffe57424Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2266ffe57424Smrg#if !BIG_OK 2267ffe57424Smrg #error "your preprocessor is broken" 2268ffe57424Smrg#endif 2269ffe57424Smrg#if BIG_OK 2270ffe57424Smrg#else 2271ffe57424Smrg #error "your preprocessor is broken" 2272ffe57424Smrg#endif 2273ffe57424Smrgstatic long long int bignum = -9223372036854775807LL; 2274ffe57424Smrgstatic unsigned long long int ubignum = BIG64; 2275ffe57424Smrg 2276ffe57424Smrgstruct incomplete_array 2277ffe57424Smrg{ 2278ffe57424Smrg int datasize; 2279ffe57424Smrg double data[]; 2280ffe57424Smrg}; 2281ffe57424Smrg 2282ffe57424Smrgstruct named_init { 2283ffe57424Smrg int number; 2284ffe57424Smrg const wchar_t *name; 2285ffe57424Smrg double average; 2286ffe57424Smrg}; 2287ffe57424Smrg 2288ffe57424Smrgtypedef const char *ccp; 2289ffe57424Smrg 2290ffe57424Smrgstatic inline int 2291ffe57424Smrgtest_restrict (ccp restrict text) 2292ffe57424Smrg{ 2293ffe57424Smrg // See if C++-style comments work. 2294ffe57424Smrg // Iterate through items via the restricted pointer. 2295ffe57424Smrg // Also check for declarations in for loops. 2296ffe57424Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2297ffe57424Smrg continue; 2298ffe57424Smrg return 0; 2299ffe57424Smrg} 2300ffe57424Smrg 2301ffe57424Smrg// Check varargs and va_copy. 2302ffe57424Smrgstatic bool 2303ffe57424Smrgtest_varargs (const char *format, ...) 2304ffe57424Smrg{ 2305ffe57424Smrg va_list args; 2306ffe57424Smrg va_start (args, format); 2307ffe57424Smrg va_list args_copy; 2308ffe57424Smrg va_copy (args_copy, args); 2309ffe57424Smrg 2310ffe57424Smrg const char *str = ""; 2311ffe57424Smrg int number = 0; 2312ffe57424Smrg float fnumber = 0; 2313ffe57424Smrg 2314ffe57424Smrg while (*format) 2315ffe57424Smrg { 2316ffe57424Smrg switch (*format++) 2317ffe57424Smrg { 2318ffe57424Smrg case '\''s'\'': // string 2319ffe57424Smrg str = va_arg (args_copy, const char *); 2320ffe57424Smrg break; 2321ffe57424Smrg case '\''d'\'': // int 2322ffe57424Smrg number = va_arg (args_copy, int); 2323ffe57424Smrg break; 2324ffe57424Smrg case '\''f'\'': // float 2325ffe57424Smrg fnumber = va_arg (args_copy, double); 2326ffe57424Smrg break; 2327ffe57424Smrg default: 2328ffe57424Smrg break; 2329ffe57424Smrg } 2330ffe57424Smrg } 2331ffe57424Smrg va_end (args_copy); 2332ffe57424Smrg va_end (args); 2333ffe57424Smrg 2334ffe57424Smrg return *str && number && fnumber; 2335ffe57424Smrg} 2336ffe57424Smrg' 2337ffe57424Smrg 2338ffe57424Smrg# Test code for whether the C compiler supports C99 (body of main). 2339ffe57424Smrgac_c_conftest_c99_main=' 2340ffe57424Smrg // Check bool. 2341ffe57424Smrg _Bool success = false; 2342ffe57424Smrg success |= (argc != 0); 2343ffe57424Smrg 2344ffe57424Smrg // Check restrict. 2345ffe57424Smrg if (test_restrict ("String literal") == 0) 2346ffe57424Smrg success = true; 2347ffe57424Smrg char *restrict newvar = "Another string"; 2348ffe57424Smrg 2349ffe57424Smrg // Check varargs. 2350ffe57424Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2351ffe57424Smrg test_varargs_macros (); 2352ffe57424Smrg 2353ffe57424Smrg // Check flexible array members. 2354ffe57424Smrg struct incomplete_array *ia = 2355ffe57424Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2356ffe57424Smrg ia->datasize = 10; 2357ffe57424Smrg for (int i = 0; i < ia->datasize; ++i) 2358ffe57424Smrg ia->data[i] = i * 1.234; 2359ffe57424Smrg 2360ffe57424Smrg // Check named initializers. 2361ffe57424Smrg struct named_init ni = { 2362ffe57424Smrg .number = 34, 2363ffe57424Smrg .name = L"Test wide string", 2364ffe57424Smrg .average = 543.34343, 2365ffe57424Smrg }; 2366ffe57424Smrg 2367ffe57424Smrg ni.number = 58; 2368ffe57424Smrg 2369ffe57424Smrg int dynamic_array[ni.number]; 2370ffe57424Smrg dynamic_array[0] = argv[0][0]; 2371ffe57424Smrg dynamic_array[ni.number - 1] = 543; 2372ffe57424Smrg 2373ffe57424Smrg // work around unused variable warnings 2374ffe57424Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2375ffe57424Smrg || dynamic_array[ni.number - 1] != 543); 2376ffe57424Smrg' 2377ffe57424Smrg 2378ffe57424Smrg# Test code for whether the C compiler supports C11 (global declarations) 2379ffe57424Smrgac_c_conftest_c11_globals=' 2380ffe57424Smrg// Does the compiler advertise C11 conformance? 2381ffe57424Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2382ffe57424Smrg# error "Compiler does not advertise C11 conformance" 2383ffe57424Smrg#endif 2384ffe57424Smrg 2385ffe57424Smrg// Check _Alignas. 2386ffe57424Smrgchar _Alignas (double) aligned_as_double; 2387ffe57424Smrgchar _Alignas (0) no_special_alignment; 2388ffe57424Smrgextern char aligned_as_int; 2389ffe57424Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2390ffe57424Smrg 2391ffe57424Smrg// Check _Alignof. 2392ffe57424Smrgenum 2393ffe57424Smrg{ 2394ffe57424Smrg int_alignment = _Alignof (int), 2395ffe57424Smrg int_array_alignment = _Alignof (int[100]), 2396ffe57424Smrg char_alignment = _Alignof (char) 2397ffe57424Smrg}; 2398ffe57424Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2399ffe57424Smrg 2400ffe57424Smrg// Check _Noreturn. 2401ffe57424Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 2402ffe57424Smrg 2403ffe57424Smrg// Check _Static_assert. 2404ffe57424Smrgstruct test_static_assert 2405ffe57424Smrg{ 2406ffe57424Smrg int x; 2407ffe57424Smrg _Static_assert (sizeof (int) <= sizeof (long int), 2408ffe57424Smrg "_Static_assert does not work in struct"); 2409ffe57424Smrg long int y; 2410ffe57424Smrg}; 2411ffe57424Smrg 2412ffe57424Smrg// Check UTF-8 literals. 2413ffe57424Smrg#define u8 syntax error! 2414ffe57424Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2415ffe57424Smrg 2416ffe57424Smrg// Check duplicate typedefs. 2417ffe57424Smrgtypedef long *long_ptr; 2418ffe57424Smrgtypedef long int *long_ptr; 2419ffe57424Smrgtypedef long_ptr long_ptr; 2420ffe57424Smrg 2421ffe57424Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2422ffe57424Smrgstruct anonymous 2423ffe57424Smrg{ 2424ffe57424Smrg union { 2425ffe57424Smrg struct { int i; int j; }; 2426ffe57424Smrg struct { int k; long int l; } w; 2427ffe57424Smrg }; 2428ffe57424Smrg int m; 2429ffe57424Smrg} v1; 2430ffe57424Smrg' 2431ffe57424Smrg 2432ffe57424Smrg# Test code for whether the C compiler supports C11 (body of main). 2433ffe57424Smrgac_c_conftest_c11_main=' 2434ffe57424Smrg _Static_assert ((offsetof (struct anonymous, i) 2435ffe57424Smrg == offsetof (struct anonymous, w.k)), 2436ffe57424Smrg "Anonymous union alignment botch"); 2437ffe57424Smrg v1.i = 2; 2438ffe57424Smrg v1.w.k = 5; 2439ffe57424Smrg ok |= v1.i != 5; 2440ffe57424Smrg' 2441ffe57424Smrg 2442ffe57424Smrg# Test code for whether the C compiler supports C11 (complete). 2443ffe57424Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2444ffe57424Smrg${ac_c_conftest_c99_globals} 2445ffe57424Smrg${ac_c_conftest_c11_globals} 2446ffe57424Smrg 2447ffe57424Smrgint 2448ffe57424Smrgmain (int argc, char **argv) 2449ffe57424Smrg{ 2450ffe57424Smrg int ok = 0; 2451ffe57424Smrg ${ac_c_conftest_c89_main} 2452ffe57424Smrg ${ac_c_conftest_c99_main} 2453ffe57424Smrg ${ac_c_conftest_c11_main} 2454ffe57424Smrg return ok; 2455ffe57424Smrg} 2456ffe57424Smrg" 2457ffe57424Smrg 2458ffe57424Smrg# Test code for whether the C compiler supports C99 (complete). 2459ffe57424Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2460ffe57424Smrg${ac_c_conftest_c99_globals} 2461ffe57424Smrg 2462ffe57424Smrgint 2463ffe57424Smrgmain (int argc, char **argv) 2464ffe57424Smrg{ 2465ffe57424Smrg int ok = 0; 2466ffe57424Smrg ${ac_c_conftest_c89_main} 2467ffe57424Smrg ${ac_c_conftest_c99_main} 2468ffe57424Smrg return ok; 2469ffe57424Smrg} 2470ffe57424Smrg" 2471ffe57424Smrg 2472ffe57424Smrg# Test code for whether the C compiler supports C89 (complete). 2473ffe57424Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2474ffe57424Smrg 2475ffe57424Smrgint 2476ffe57424Smrgmain (int argc, char **argv) 2477ffe57424Smrg{ 2478ffe57424Smrg int ok = 0; 2479ffe57424Smrg ${ac_c_conftest_c89_main} 2480ffe57424Smrg return ok; 2481ffe57424Smrg} 2482ffe57424Smrg" 2483ffe57424Smrg 2484ffe57424Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2485ffe57424Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2486ffe57424Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2487ffe57424Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2488ffe57424Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2489ffe57424Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2490ffe57424Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2491ffe57424Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2492ffe57424Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2493ffe57424Smrg 2494ffe57424Smrg# Auxiliary files required by this configure script. 2495ffe57424Smrgac_aux_files="config.guess config.sub compile missing install-sh" 2496ffe57424Smrg 2497ffe57424Smrg# Locations in which to look for auxiliary files. 2498ffe57424Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2499ffe57424Smrg 2500ffe57424Smrg# Search for a directory containing all of the required auxiliary files, 2501ffe57424Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2502ffe57424Smrg# If we don't find one directory that contains all the files we need, 2503ffe57424Smrg# we report the set of missing files from the *first* directory in 2504ffe57424Smrg# $ac_aux_dir_candidates and give up. 2505ffe57424Smrgac_missing_aux_files="" 2506ffe57424Smrgac_first_candidate=: 2507ffe57424Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2508ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509ffe57424Smrgas_found=false 2510ffe57424Smrgfor as_dir in $ac_aux_dir_candidates 2511ffe57424Smrgdo 2512ffe57424Smrg IFS=$as_save_IFS 2513ffe57424Smrg case $as_dir in #((( 2514ffe57424Smrg '') as_dir=./ ;; 2515ffe57424Smrg */) ;; 2516ffe57424Smrg *) as_dir=$as_dir/ ;; 2517ffe57424Smrg esac 2518ffe57424Smrg as_found=: 2519ffe57424Smrg 2520ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2521ffe57424Smrg ac_aux_dir_found=yes 2522ffe57424Smrg ac_install_sh= 2523ffe57424Smrg for ac_aux in $ac_aux_files 2524ffe57424Smrg do 2525ffe57424Smrg # As a special case, if "install-sh" is required, that requirement 2526ffe57424Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2527ffe57424Smrg # and $ac_install_sh is set appropriately for whichever one is found. 2528ffe57424Smrg if test x"$ac_aux" = x"install-sh" 2529ffe57424Smrg then 2530ffe57424Smrg if test -f "${as_dir}install-sh"; then 2531ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2532ffe57424Smrg ac_install_sh="${as_dir}install-sh -c" 2533ffe57424Smrg elif test -f "${as_dir}install.sh"; then 2534ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2535ffe57424Smrg ac_install_sh="${as_dir}install.sh -c" 2536ffe57424Smrg elif test -f "${as_dir}shtool"; then 2537ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2538ffe57424Smrg ac_install_sh="${as_dir}shtool install -c" 2539ffe57424Smrg else 2540ffe57424Smrg ac_aux_dir_found=no 2541ffe57424Smrg if $ac_first_candidate; then 2542ffe57424Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2543ffe57424Smrg else 2544ffe57424Smrg break 2545ffe57424Smrg fi 2546ffe57424Smrg fi 2547ffe57424Smrg else 2548ffe57424Smrg if test -f "${as_dir}${ac_aux}"; then 2549ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2550ffe57424Smrg else 2551ffe57424Smrg ac_aux_dir_found=no 2552ffe57424Smrg if $ac_first_candidate; then 2553ffe57424Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2554ffe57424Smrg else 2555ffe57424Smrg break 2556ffe57424Smrg fi 2557ffe57424Smrg fi 2558ffe57424Smrg fi 2559ffe57424Smrg done 2560ffe57424Smrg if test "$ac_aux_dir_found" = yes; then 2561ffe57424Smrg ac_aux_dir="$as_dir" 2562ffe57424Smrg break 2563ffe57424Smrg fi 2564ffe57424Smrg ac_first_candidate=false 2565ffe57424Smrg 2566ffe57424Smrg as_found=false 2567ffe57424Smrgdone 2568ffe57424SmrgIFS=$as_save_IFS 2569ffe57424Smrgif $as_found 2570ffe57424Smrgthen : 2571ffe57424Smrg 2572ffe57424Smrgelse $as_nop 2573ffe57424Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2574ffe57424Smrgfi 2575ffe57424Smrg 2576ffe57424Smrg 2577ffe57424Smrg# These three variables are undocumented and unsupported, 2578ffe57424Smrg# and are intended to be withdrawn in a future Autoconf release. 257917ca54c3Smrg# They can cause serious problems if a builder's source tree is in a directory 258017ca54c3Smrg# whose full name contains unusual characters. 2581ffe57424Smrgif test -f "${ac_aux_dir}config.guess"; then 2582ffe57424Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2583ffe57424Smrgfi 2584ffe57424Smrgif test -f "${ac_aux_dir}config.sub"; then 2585ffe57424Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2586ffe57424Smrgfi 2587ffe57424Smrgif test -f "$ac_aux_dir/configure"; then 2588ffe57424Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 2589ffe57424Smrgfi 2590ffe57424Smrg 2591ffe57424Smrg# Check that the precious variables saved in the cache have kept the same 2592ffe57424Smrg# value. 2593ffe57424Smrgac_cache_corrupted=false 2594ffe57424Smrgfor ac_var in $ac_precious_vars; do 2595ffe57424Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2596ffe57424Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2597ffe57424Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2598ffe57424Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2599ffe57424Smrg case $ac_old_set,$ac_new_set in 2600ffe57424Smrg set,) 2601ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2602ffe57424Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2603ffe57424Smrg ac_cache_corrupted=: ;; 2604ffe57424Smrg ,set) 2605ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2606ffe57424Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2607ffe57424Smrg ac_cache_corrupted=: ;; 2608ffe57424Smrg ,);; 2609ffe57424Smrg *) 2610ffe57424Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2611ffe57424Smrg # differences in whitespace do not lead to failure. 2612ffe57424Smrg ac_old_val_w=`echo x $ac_old_val` 2613ffe57424Smrg ac_new_val_w=`echo x $ac_new_val` 2614ffe57424Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2615ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2616ffe57424Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2617ffe57424Smrg ac_cache_corrupted=: 2618ffe57424Smrg else 2619ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2620ffe57424Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2621ffe57424Smrg eval $ac_var=\$ac_old_val 2622ffe57424Smrg fi 2623ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2624ffe57424Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2625ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2626ffe57424Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2627ffe57424Smrg fi;; 2628ffe57424Smrg esac 2629ffe57424Smrg # Pass precious variables to config.status. 2630ffe57424Smrg if test "$ac_new_set" = set; then 2631ffe57424Smrg case $ac_new_val in 2632ffe57424Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2633ffe57424Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2634ffe57424Smrg esac 2635ffe57424Smrg case " $ac_configure_args " in 2636ffe57424Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2637ffe57424Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2638ffe57424Smrg esac 2639ffe57424Smrg fi 2640ffe57424Smrgdone 2641ffe57424Smrgif $ac_cache_corrupted; then 2642ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2643ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2644ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2645ffe57424Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2646ffe57424Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2647ffe57424Smrg and start over" "$LINENO" 5 2648ffe57424Smrgfi 2649ffe57424Smrg## -------------------- ## 2650ffe57424Smrg## Main body of script. ## 2651ffe57424Smrg## -------------------- ## 2652ffe57424Smrg 2653ffe57424Smrgac_ext=c 2654ffe57424Smrgac_cpp='$CPP $CPPFLAGS' 2655ffe57424Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2656ffe57424Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2657ffe57424Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2658ffe57424Smrg 2659ffe57424Smrg 2660ffe57424Smrgam__api_version='1.16' 266117ca54c3Smrg 266217ca54c3Smrg 2663ffe57424Smrg 2664ffe57424Smrg # Find a good install program. We prefer a C program (faster), 266517ca54c3Smrg# so one script is as good as another. But avoid the broken or 266617ca54c3Smrg# incompatible versions: 266717ca54c3Smrg# SysV /etc/install, /usr/sbin/install 266817ca54c3Smrg# SunOS /usr/etc/install 266917ca54c3Smrg# IRIX /sbin/install 267017ca54c3Smrg# AIX /bin/install 267117ca54c3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 267217ca54c3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 267317ca54c3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 267417ca54c3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 267517ca54c3Smrg# OS/2's system install, which has a completely different semantic 267617ca54c3Smrg# ./install, which can be erroneously created by make from ./install.sh. 267717ca54c3Smrg# Reject install programs that cannot install multiple files. 2678ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2679ffe57424Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 268017ca54c3Smrgif test -z "$INSTALL"; then 2681ffe57424Smrgif test ${ac_cv_path_install+y} 2682ffe57424Smrgthen : 2683ffe57424Smrg printf %s "(cached) " >&6 2684ffe57424Smrgelse $as_nop 268517ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 268617ca54c3Smrgfor as_dir in $PATH 268717ca54c3Smrgdo 268817ca54c3Smrg IFS=$as_save_IFS 2689ffe57424Smrg case $as_dir in #((( 2690ffe57424Smrg '') as_dir=./ ;; 2691ffe57424Smrg */) ;; 2692ffe57424Smrg *) as_dir=$as_dir/ ;; 2693ffe57424Smrg esac 2694ffe57424Smrg # Account for fact that we put trailing slashes in our PATH walk. 2695ffe57424Smrgcase $as_dir in #(( 2696ffe57424Smrg ./ | /[cC]/* | \ 269717ca54c3Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 269817ca54c3Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 269917ca54c3Smrg /usr/ucb/* ) ;; 270017ca54c3Smrg *) 270117ca54c3Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 270217ca54c3Smrg # Don't use installbsd from OSF since it installs stuff as root 270317ca54c3Smrg # by default. 270417ca54c3Smrg for ac_prog in ginstall scoinst install; do 270517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2706ffe57424Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 270717ca54c3Smrg if test $ac_prog = install && 2708ffe57424Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 270917ca54c3Smrg # AIX install. It has an incompatible calling convention. 271017ca54c3Smrg : 271117ca54c3Smrg elif test $ac_prog = install && 2712ffe57424Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 271317ca54c3Smrg # program-specific install script used by HP pwplus--don't use. 271417ca54c3Smrg : 271517ca54c3Smrg else 271617ca54c3Smrg rm -rf conftest.one conftest.two conftest.dir 271717ca54c3Smrg echo one > conftest.one 271817ca54c3Smrg echo two > conftest.two 271917ca54c3Smrg mkdir conftest.dir 2720ffe57424Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 272117ca54c3Smrg test -s conftest.one && test -s conftest.two && 272217ca54c3Smrg test -s conftest.dir/conftest.one && 272317ca54c3Smrg test -s conftest.dir/conftest.two 272417ca54c3Smrg then 2725ffe57424Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 272617ca54c3Smrg break 3 272717ca54c3Smrg fi 272817ca54c3Smrg fi 272917ca54c3Smrg fi 273017ca54c3Smrg done 273117ca54c3Smrg done 273217ca54c3Smrg ;; 273317ca54c3Smrgesac 273417ca54c3Smrg 273517ca54c3Smrg done 273617ca54c3SmrgIFS=$as_save_IFS 273717ca54c3Smrg 273817ca54c3Smrgrm -rf conftest.one conftest.two conftest.dir 273917ca54c3Smrg 274017ca54c3Smrgfi 2741ffe57424Smrg if test ${ac_cv_path_install+y}; then 274217ca54c3Smrg INSTALL=$ac_cv_path_install 274317ca54c3Smrg else 274417ca54c3Smrg # As a last resort, use the slow shell script. Don't cache a 274517ca54c3Smrg # value for INSTALL within a source directory, because that will 274617ca54c3Smrg # break other packages using the cache if that directory is 274717ca54c3Smrg # removed, or if the value is a relative name. 274817ca54c3Smrg INSTALL=$ac_install_sh 274917ca54c3Smrg fi 275017ca54c3Smrgfi 2751ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2752ffe57424Smrgprintf "%s\n" "$INSTALL" >&6; } 275317ca54c3Smrg 275417ca54c3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 275517ca54c3Smrg# It thinks the first close brace ends the variable substitution. 275617ca54c3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 275717ca54c3Smrg 275817ca54c3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 275917ca54c3Smrg 276017ca54c3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 276117ca54c3Smrg 2762ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2763ffe57424Smrgprintf %s "checking whether build environment is sane... " >&6; } 276417ca54c3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 276517ca54c3Smrg# name. Accept space and tab only in the latter. 276617ca54c3Smrgam_lf=' 276717ca54c3Smrg' 276817ca54c3Smrgcase `pwd` in 276917ca54c3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 277017ca54c3Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 277117ca54c3Smrgesac 277217ca54c3Smrgcase $srcdir in 277317ca54c3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 277417ca54c3Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 277517ca54c3Smrgesac 277617ca54c3Smrg 277717ca54c3Smrg# Do 'set' in a subshell so we don't clobber the current shell's 277817ca54c3Smrg# arguments. Must try -L first in case configure is actually a 277917ca54c3Smrg# symlink; some systems play weird games with the mod time of symlinks 278017ca54c3Smrg# (eg FreeBSD returns the mod time of the symlink's containing 278117ca54c3Smrg# directory). 278217ca54c3Smrgif ( 278317ca54c3Smrg am_has_slept=no 278417ca54c3Smrg for am_try in 1 2; do 278517ca54c3Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 278617ca54c3Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 278717ca54c3Smrg if test "$*" = "X"; then 278817ca54c3Smrg # -L didn't work. 278917ca54c3Smrg set X `ls -t "$srcdir/configure" conftest.file` 279017ca54c3Smrg fi 279117ca54c3Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 279217ca54c3Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 279317ca54c3Smrg 279417ca54c3Smrg # If neither matched, then we have a broken ls. This can happen 279517ca54c3Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 279617ca54c3Smrg # broken ls alias from the environment. This has actually 279717ca54c3Smrg # happened. Such a system could not be considered "sane". 279817ca54c3Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 279917ca54c3Smrg alias in your environment" "$LINENO" 5 280017ca54c3Smrg fi 280117ca54c3Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 280217ca54c3Smrg break 280317ca54c3Smrg fi 280417ca54c3Smrg # Just in case. 280517ca54c3Smrg sleep 1 280617ca54c3Smrg am_has_slept=yes 280717ca54c3Smrg done 280817ca54c3Smrg test "$2" = conftest.file 280917ca54c3Smrg ) 281017ca54c3Smrgthen 281117ca54c3Smrg # Ok. 281217ca54c3Smrg : 281317ca54c3Smrgelse 281417ca54c3Smrg as_fn_error $? "newly created file is older than distributed files! 281517ca54c3SmrgCheck your system clock" "$LINENO" 5 281617ca54c3Smrgfi 2817ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2818ffe57424Smrgprintf "%s\n" "yes" >&6; } 281917ca54c3Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 282017ca54c3Smrg# generated files are strictly newer. 282117ca54c3Smrgam_sleep_pid= 282217ca54c3Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 282317ca54c3Smrg ( sleep 1 ) & 282417ca54c3Smrg am_sleep_pid=$! 282517ca54c3Smrgfi 282617ca54c3Smrg 282717ca54c3Smrgrm -f conftest.file 282817ca54c3Smrg 282917ca54c3Smrgtest "$program_prefix" != NONE && 283017ca54c3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 283117ca54c3Smrg# Use a double $ so make ignores it. 283217ca54c3Smrgtest "$program_suffix" != NONE && 283317ca54c3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 283417ca54c3Smrg# Double any \ or $. 283517ca54c3Smrg# By default was `s,x,x', remove it if useless. 283617ca54c3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2837ffe57424Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2838ffe57424Smrg 283917ca54c3Smrg 284017ca54c3Smrg# Expand $ac_aux_dir to an absolute path. 284117ca54c3Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 284217ca54c3Smrg 2843ffe57424Smrg 2844ffe57424Smrg if test x"${MISSING+set}" != xset; then 2845ffe57424Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 284617ca54c3Smrgfi 284717ca54c3Smrg# Use eval to expand $SHELL 284817ca54c3Smrgif eval "$MISSING --is-lightweight"; then 284917ca54c3Smrg am_missing_run="$MISSING " 285017ca54c3Smrgelse 285117ca54c3Smrg am_missing_run= 2852ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2853ffe57424Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 285417ca54c3Smrgfi 285517ca54c3Smrg 285617ca54c3Smrgif test x"${install_sh+set}" != xset; then 285717ca54c3Smrg case $am_aux_dir in 285817ca54c3Smrg *\ * | *\ *) 285917ca54c3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 286017ca54c3Smrg *) 286117ca54c3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 286217ca54c3Smrg esac 286317ca54c3Smrgfi 286417ca54c3Smrg 286517ca54c3Smrg# Installed binaries are usually stripped using 'strip' when the user 286617ca54c3Smrg# run "make install-strip". However 'strip' might not be the right 286717ca54c3Smrg# tool to use in cross-compilation environments, therefore Automake 286817ca54c3Smrg# will honor the 'STRIP' environment variable to overrule this program. 286917ca54c3Smrgif test "$cross_compiling" != no; then 287017ca54c3Smrg if test -n "$ac_tool_prefix"; then 287117ca54c3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 287217ca54c3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2873ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 2875ffe57424Smrgif test ${ac_cv_prog_STRIP+y} 2876ffe57424Smrgthen : 2877ffe57424Smrg printf %s "(cached) " >&6 2878ffe57424Smrgelse $as_nop 287917ca54c3Smrg if test -n "$STRIP"; then 288017ca54c3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 288117ca54c3Smrgelse 288217ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 288317ca54c3Smrgfor as_dir in $PATH 288417ca54c3Smrgdo 288517ca54c3Smrg IFS=$as_save_IFS 2886ffe57424Smrg case $as_dir in #((( 2887ffe57424Smrg '') as_dir=./ ;; 2888ffe57424Smrg */) ;; 2889ffe57424Smrg *) as_dir=$as_dir/ ;; 2890ffe57424Smrg esac 289117ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2892ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 289317ca54c3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2894ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 289517ca54c3Smrg break 2 289617ca54c3Smrg fi 289717ca54c3Smrgdone 289817ca54c3Smrg done 289917ca54c3SmrgIFS=$as_save_IFS 290017ca54c3Smrg 290117ca54c3Smrgfi 290217ca54c3Smrgfi 290317ca54c3SmrgSTRIP=$ac_cv_prog_STRIP 290417ca54c3Smrgif test -n "$STRIP"; then 2905ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2906ffe57424Smrgprintf "%s\n" "$STRIP" >&6; } 290717ca54c3Smrgelse 2908ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909ffe57424Smrgprintf "%s\n" "no" >&6; } 291017ca54c3Smrgfi 291117ca54c3Smrg 291217ca54c3Smrg 291317ca54c3Smrgfi 291417ca54c3Smrgif test -z "$ac_cv_prog_STRIP"; then 291517ca54c3Smrg ac_ct_STRIP=$STRIP 291617ca54c3Smrg # Extract the first word of "strip", so it can be a program name with args. 291717ca54c3Smrgset dummy strip; ac_word=$2 2918ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 2920ffe57424Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 2921ffe57424Smrgthen : 2922ffe57424Smrg printf %s "(cached) " >&6 2923ffe57424Smrgelse $as_nop 292417ca54c3Smrg if test -n "$ac_ct_STRIP"; then 292517ca54c3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 292617ca54c3Smrgelse 292717ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 292817ca54c3Smrgfor as_dir in $PATH 292917ca54c3Smrgdo 293017ca54c3Smrg IFS=$as_save_IFS 2931ffe57424Smrg case $as_dir in #((( 2932ffe57424Smrg '') as_dir=./ ;; 2933ffe57424Smrg */) ;; 2934ffe57424Smrg *) as_dir=$as_dir/ ;; 2935ffe57424Smrg esac 293617ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2937ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 293817ca54c3Smrg ac_cv_prog_ac_ct_STRIP="strip" 2939ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 294017ca54c3Smrg break 2 294117ca54c3Smrg fi 294217ca54c3Smrgdone 294317ca54c3Smrg done 294417ca54c3SmrgIFS=$as_save_IFS 294517ca54c3Smrg 294617ca54c3Smrgfi 294717ca54c3Smrgfi 294817ca54c3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 294917ca54c3Smrgif test -n "$ac_ct_STRIP"; then 2950ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2951ffe57424Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 295217ca54c3Smrgelse 2953ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954ffe57424Smrgprintf "%s\n" "no" >&6; } 295517ca54c3Smrgfi 295617ca54c3Smrg 295717ca54c3Smrg if test "x$ac_ct_STRIP" = x; then 295817ca54c3Smrg STRIP=":" 295917ca54c3Smrg else 296017ca54c3Smrg case $cross_compiling:$ac_tool_warned in 296117ca54c3Smrgyes:) 2962ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2963ffe57424Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 296417ca54c3Smrgac_tool_warned=yes ;; 296517ca54c3Smrgesac 296617ca54c3Smrg STRIP=$ac_ct_STRIP 296717ca54c3Smrg fi 296817ca54c3Smrgelse 296917ca54c3Smrg STRIP="$ac_cv_prog_STRIP" 297017ca54c3Smrgfi 297117ca54c3Smrg 297217ca54c3Smrgfi 297317ca54c3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 297417ca54c3Smrg 2975ffe57424Smrg 2976ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2977ffe57424Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 297817ca54c3Smrgif test -z "$MKDIR_P"; then 2979ffe57424Smrg if test ${ac_cv_path_mkdir+y} 2980ffe57424Smrgthen : 2981ffe57424Smrg printf %s "(cached) " >&6 2982ffe57424Smrgelse $as_nop 298317ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 298417ca54c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 298517ca54c3Smrgdo 298617ca54c3Smrg IFS=$as_save_IFS 2987ffe57424Smrg case $as_dir in #((( 2988ffe57424Smrg '') as_dir=./ ;; 2989ffe57424Smrg */) ;; 2990ffe57424Smrg *) as_dir=$as_dir/ ;; 2991ffe57424Smrg esac 299217ca54c3Smrg for ac_prog in mkdir gmkdir; do 299317ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2994ffe57424Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2995ffe57424Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2996ffe57424Smrg 'mkdir ('*'coreutils) '* | \ 2997ffe57424Smrg 'BusyBox '* | \ 299817ca54c3Smrg 'mkdir (fileutils) '4.1*) 2999ffe57424Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 300017ca54c3Smrg break 3;; 300117ca54c3Smrg esac 300217ca54c3Smrg done 300317ca54c3Smrg done 300417ca54c3Smrg done 300517ca54c3SmrgIFS=$as_save_IFS 300617ca54c3Smrg 300717ca54c3Smrgfi 300817ca54c3Smrg 300917ca54c3Smrg test -d ./--version && rmdir ./--version 3010ffe57424Smrg if test ${ac_cv_path_mkdir+y}; then 301117ca54c3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 301217ca54c3Smrg else 301317ca54c3Smrg # As a last resort, use the slow shell script. Don't cache a 301417ca54c3Smrg # value for MKDIR_P within a source directory, because that will 301517ca54c3Smrg # break other packages using the cache if that directory is 301617ca54c3Smrg # removed, or if the value is a relative name. 301717ca54c3Smrg MKDIR_P="$ac_install_sh -d" 301817ca54c3Smrg fi 301917ca54c3Smrgfi 3020ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3021ffe57424Smrgprintf "%s\n" "$MKDIR_P" >&6; } 302217ca54c3Smrg 302317ca54c3Smrgfor ac_prog in gawk mawk nawk awk 302417ca54c3Smrgdo 302517ca54c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 302617ca54c3Smrgset dummy $ac_prog; ac_word=$2 3027ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3029ffe57424Smrgif test ${ac_cv_prog_AWK+y} 3030ffe57424Smrgthen : 3031ffe57424Smrg printf %s "(cached) " >&6 3032ffe57424Smrgelse $as_nop 303317ca54c3Smrg if test -n "$AWK"; then 303417ca54c3Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 303517ca54c3Smrgelse 303617ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 303717ca54c3Smrgfor as_dir in $PATH 303817ca54c3Smrgdo 303917ca54c3Smrg IFS=$as_save_IFS 3040ffe57424Smrg case $as_dir in #((( 3041ffe57424Smrg '') as_dir=./ ;; 3042ffe57424Smrg */) ;; 3043ffe57424Smrg *) as_dir=$as_dir/ ;; 3044ffe57424Smrg esac 304517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3046ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 304717ca54c3Smrg ac_cv_prog_AWK="$ac_prog" 3048ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 304917ca54c3Smrg break 2 305017ca54c3Smrg fi 305117ca54c3Smrgdone 305217ca54c3Smrg done 305317ca54c3SmrgIFS=$as_save_IFS 305417ca54c3Smrg 305517ca54c3Smrgfi 305617ca54c3Smrgfi 305717ca54c3SmrgAWK=$ac_cv_prog_AWK 305817ca54c3Smrgif test -n "$AWK"; then 3059ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3060ffe57424Smrgprintf "%s\n" "$AWK" >&6; } 306117ca54c3Smrgelse 3062ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063ffe57424Smrgprintf "%s\n" "no" >&6; } 306417ca54c3Smrgfi 306517ca54c3Smrg 306617ca54c3Smrg 306717ca54c3Smrg test -n "$AWK" && break 306817ca54c3Smrgdone 306917ca54c3Smrg 3070ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3071ffe57424Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 307217ca54c3Smrgset x ${MAKE-make} 3073ffe57424Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3074ffe57424Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 3075ffe57424Smrgthen : 3076ffe57424Smrg printf %s "(cached) " >&6 3077ffe57424Smrgelse $as_nop 307817ca54c3Smrg cat >conftest.make <<\_ACEOF 307917ca54c3SmrgSHELL = /bin/sh 308017ca54c3Smrgall: 308117ca54c3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 308217ca54c3Smrg_ACEOF 308317ca54c3Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 308417ca54c3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 308517ca54c3Smrg *@@@%%%=?*=@@@%%%*) 308617ca54c3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 308717ca54c3Smrg *) 308817ca54c3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 308917ca54c3Smrgesac 309017ca54c3Smrgrm -f conftest.make 309117ca54c3Smrgfi 309217ca54c3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3093ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3094ffe57424Smrgprintf "%s\n" "yes" >&6; } 309517ca54c3Smrg SET_MAKE= 309617ca54c3Smrgelse 3097ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098ffe57424Smrgprintf "%s\n" "no" >&6; } 309917ca54c3Smrg SET_MAKE="MAKE=${MAKE-make}" 310017ca54c3Smrgfi 310117ca54c3Smrg 310217ca54c3Smrgrm -rf .tst 2>/dev/null 310317ca54c3Smrgmkdir .tst 2>/dev/null 310417ca54c3Smrgif test -d .tst; then 310517ca54c3Smrg am__leading_dot=. 310617ca54c3Smrgelse 310717ca54c3Smrg am__leading_dot=_ 310817ca54c3Smrgfi 310917ca54c3Smrgrmdir .tst 2>/dev/null 311017ca54c3Smrg 311117ca54c3Smrg# Check whether --enable-silent-rules was given. 3112ffe57424Smrgif test ${enable_silent_rules+y} 3113ffe57424Smrgthen : 311417ca54c3Smrg enableval=$enable_silent_rules; 311517ca54c3Smrgfi 311617ca54c3Smrg 311717ca54c3Smrgcase $enable_silent_rules in # ((( 311817ca54c3Smrg yes) AM_DEFAULT_VERBOSITY=0;; 311917ca54c3Smrg no) AM_DEFAULT_VERBOSITY=1;; 312017ca54c3Smrg *) AM_DEFAULT_VERBOSITY=1;; 312117ca54c3Smrgesac 312217ca54c3Smrgam_make=${MAKE-make} 3123ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3124ffe57424Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 3125ffe57424Smrgif test ${am_cv_make_support_nested_variables+y} 3126ffe57424Smrgthen : 3127ffe57424Smrg printf %s "(cached) " >&6 3128ffe57424Smrgelse $as_nop 3129ffe57424Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 313017ca54c3SmrgBAR0=false 313117ca54c3SmrgBAR1=true 313217ca54c3SmrgV=1 313317ca54c3Smrgam__doit: 313417ca54c3Smrg @$(TRUE) 313517ca54c3Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 313617ca54c3Smrg am_cv_make_support_nested_variables=yes 313717ca54c3Smrgelse 313817ca54c3Smrg am_cv_make_support_nested_variables=no 313917ca54c3Smrgfi 314017ca54c3Smrgfi 3141ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3142ffe57424Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 314317ca54c3Smrgif test $am_cv_make_support_nested_variables = yes; then 314417ca54c3Smrg AM_V='$(V)' 314517ca54c3Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 314617ca54c3Smrgelse 314717ca54c3Smrg AM_V=$AM_DEFAULT_VERBOSITY 314817ca54c3Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 314917ca54c3Smrgfi 315017ca54c3SmrgAM_BACKSLASH='\' 315117ca54c3Smrg 315217ca54c3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 315317ca54c3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 315417ca54c3Smrg # is not polluted with repeated "-I." 315517ca54c3Smrg am__isrc=' -I$(srcdir)' 315617ca54c3Smrg # test to see if srcdir already configured 315717ca54c3Smrg if test -f $srcdir/config.status; then 315817ca54c3Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 315917ca54c3Smrg fi 316017ca54c3Smrgfi 316117ca54c3Smrg 316217ca54c3Smrg# test whether we have cygpath 316317ca54c3Smrgif test -z "$CYGPATH_W"; then 316417ca54c3Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 316517ca54c3Smrg CYGPATH_W='cygpath -w' 316617ca54c3Smrg else 316717ca54c3Smrg CYGPATH_W=echo 316817ca54c3Smrg fi 316917ca54c3Smrgfi 317017ca54c3Smrg 317117ca54c3Smrg 317217ca54c3Smrg# Define the identity of the package. 317317ca54c3Smrg PACKAGE='xorgproto' 3174452262e1Smrg VERSION='2022.2' 317517ca54c3Smrg 317617ca54c3Smrg 3177ffe57424Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 317817ca54c3Smrg 317917ca54c3Smrg 3180ffe57424Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 318117ca54c3Smrg 318217ca54c3Smrg# Some tools Automake needs. 318317ca54c3Smrg 318417ca54c3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 318517ca54c3Smrg 318617ca54c3Smrg 318717ca54c3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 318817ca54c3Smrg 318917ca54c3Smrg 319017ca54c3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 319117ca54c3Smrg 319217ca54c3Smrg 319317ca54c3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 319417ca54c3Smrg 319517ca54c3Smrg 319617ca54c3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 319717ca54c3Smrg 319817ca54c3Smrg# For better backward compatibility. To be removed once Automake 1.9.x 319917ca54c3Smrg# dies out for good. For more background, see: 3200ea1d6981Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3201ea1d6981Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 320217ca54c3Smrgmkdir_p='$(MKDIR_P)' 320317ca54c3Smrg 320417ca54c3Smrg# We need awk for the "check" target (and possibly the TAP driver). The 320517ca54c3Smrg# system "awk" is bad on some platforms. 320617ca54c3Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 320717ca54c3Smrg# in the wild :-( We should find a proper way to deprecate it ... 320817ca54c3SmrgAMTAR='$${TAR-tar}' 320917ca54c3Smrg 321017ca54c3Smrg 321117ca54c3Smrg# We'll loop over all known methods to create a tar archive until one works. 321217ca54c3Smrg_am_tools='gnutar pax cpio none' 321317ca54c3Smrg 321417ca54c3Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 321517ca54c3Smrg 321617ca54c3Smrg 321717ca54c3Smrg 321817ca54c3Smrg 321917ca54c3Smrg 3220ffe57424Smrg# Variables for tags utilities; see am/tags.am 3221ffe57424Smrgif test -z "$CTAGS"; then 3222ffe57424Smrg CTAGS=ctags 3223ffe57424Smrgfi 3224ffe57424Smrg 3225ffe57424Smrgif test -z "$ETAGS"; then 3226ffe57424Smrg ETAGS=etags 3227ffe57424Smrgfi 3228ffe57424Smrg 3229ffe57424Smrgif test -z "$CSCOPE"; then 3230ffe57424Smrg CSCOPE=cscope 3231ffe57424Smrgfi 3232ffe57424Smrg 3233ffe57424Smrg 323417ca54c3Smrg 323517ca54c3Smrg# POSIX will say in a future version that running "rm -f" with no argument 323617ca54c3Smrg# is OK; and we want to be able to make that assumption in our Makefile 323717ca54c3Smrg# recipes. So use an aggressive probe to check that the usage we want is 323817ca54c3Smrg# actually supported "in the wild" to an acceptable degree. 323917ca54c3Smrg# See automake bug#10828. 324017ca54c3Smrg# To make any issue more visible, cause the running configure to be aborted 324117ca54c3Smrg# by default if the 'rm' program in use doesn't match our expectations; the 324217ca54c3Smrg# user can still override this though. 324317ca54c3Smrgif rm -f && rm -fr && rm -rf; then : OK; else 324417ca54c3Smrg cat >&2 <<'END' 324517ca54c3SmrgOops! 324617ca54c3Smrg 324717ca54c3SmrgYour 'rm' program seems unable to run without file operands specified 324817ca54c3Smrgon the command line, even when the '-f' option is present. This is contrary 324917ca54c3Smrgto the behaviour of most rm programs out there, and not conforming with 325017ca54c3Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 325117ca54c3Smrg 325217ca54c3SmrgPlease tell bug-automake@gnu.org about your system, including the value 325317ca54c3Smrgof your $PATH and any error possibly output before this message. This 325417ca54c3Smrgcan help us improve future automake versions. 325517ca54c3Smrg 325617ca54c3SmrgEND 325717ca54c3Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 325817ca54c3Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 325917ca54c3Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 326017ca54c3Smrg echo >&2 326117ca54c3Smrg else 326217ca54c3Smrg cat >&2 <<'END' 326317ca54c3SmrgAborting the configuration process, to ensure you take notice of the issue. 326417ca54c3Smrg 326517ca54c3SmrgYou can download and install GNU coreutils to get an 'rm' implementation 3266ea1d6981Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 326717ca54c3Smrg 326817ca54c3SmrgIf you want to complete the configuration process using your problematic 326917ca54c3Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 327017ca54c3Smrgto "yes", and re-run configure. 327117ca54c3Smrg 327217ca54c3SmrgEND 327317ca54c3Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 327417ca54c3Smrg fi 327517ca54c3Smrgfi 327617ca54c3Smrg 327717ca54c3Smrg 327817ca54c3Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 327917ca54c3Smrg 328017ca54c3Smrg 328117ca54c3Smrg 328217ca54c3Smrg 328317ca54c3Smrg 328417ca54c3Smrg 328517ca54c3Smrg 328617ca54c3Smrg 328717ca54c3Smrg 328817ca54c3Smrg 328917ca54c3Smrg 3290ffe57424Smrg 3291ffe57424Smrg 3292ffe57424Smrg 3293ffe57424Smrg 3294ffe57424Smrg 3295ffe57424Smrg 3296ffe57424Smrg 3297ffe57424Smrg 3298ffe57424Smrg 329917ca54c3SmrgDEPDIR="${am__leading_dot}deps" 330017ca54c3Smrg 330117ca54c3Smrgac_config_commands="$ac_config_commands depfiles" 330217ca54c3Smrg 3303ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3304ffe57424Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3305ea1d6981Smrgcat > confinc.mk << 'END' 330617ca54c3Smrgam__doit: 3307ea1d6981Smrg @echo this is the am__doit target >confinc.out 330817ca54c3Smrg.PHONY: am__doit 330917ca54c3SmrgEND 331017ca54c3Smrgam__include="#" 331117ca54c3Smrgam__quote= 3312ea1d6981Smrg# BSD make does it like this. 3313ea1d6981Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 3314ea1d6981Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3315ea1d6981Smrgecho 'include confinc.mk # ignored' > confmf.GNU 3316ea1d6981Smrg_am_result=no 3317ea1d6981Smrgfor s in GNU BSD; do 3318ea1d6981Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3319ea1d6981Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3320ea1d6981Smrg ac_status=$? 3321ea1d6981Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3322ea1d6981Smrg (exit $ac_status); } 3323ea1d6981Smrg case $?:`cat confinc.out 2>/dev/null` in #( 3324ea1d6981Smrg '0:this is the am__doit target') : 3325ea1d6981Smrg case $s in #( 3326ea1d6981Smrg BSD) : 3327ea1d6981Smrg am__include='.include' am__quote='"' ;; #( 3328ea1d6981Smrg *) : 3329ea1d6981Smrg am__include='include' am__quote='' ;; 3330ea1d6981Smrgesac ;; #( 3331ea1d6981Smrg *) : 333217ca54c3Smrg ;; 3333ea1d6981Smrgesac 3334ea1d6981Smrg if test "$am__include" != "#"; then 3335ea1d6981Smrg _am_result="yes ($s style)" 3336ea1d6981Smrg break 3337ea1d6981Smrg fi 3338ea1d6981Smrgdone 3339ea1d6981Smrgrm -f confinc.* confmf.* 3340ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3341ffe57424Smrgprintf "%s\n" "${_am_result}" >&6; } 334217ca54c3Smrg 334317ca54c3Smrg# Check whether --enable-dependency-tracking was given. 3344ffe57424Smrgif test ${enable_dependency_tracking+y} 3345ffe57424Smrgthen : 334617ca54c3Smrg enableval=$enable_dependency_tracking; 334717ca54c3Smrgfi 334817ca54c3Smrg 334917ca54c3Smrgif test "x$enable_dependency_tracking" != xno; then 335017ca54c3Smrg am_depcomp="$ac_aux_dir/depcomp" 335117ca54c3Smrg AMDEPBACKSLASH='\' 335217ca54c3Smrg am__nodep='_no' 335317ca54c3Smrgfi 335417ca54c3Smrg if test "x$enable_dependency_tracking" != xno; then 335517ca54c3Smrg AMDEP_TRUE= 335617ca54c3Smrg AMDEP_FALSE='#' 335717ca54c3Smrgelse 335817ca54c3Smrg AMDEP_TRUE='#' 335917ca54c3Smrg AMDEP_FALSE= 336017ca54c3Smrgfi 336117ca54c3Smrg 336217ca54c3Smrg 336317ca54c3Smrgac_ext=c 336417ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 336517ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 336617ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 336717ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 336817ca54c3Smrgif test -n "$ac_tool_prefix"; then 336917ca54c3Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 337017ca54c3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3371ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3372ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3373ffe57424Smrgif test ${ac_cv_prog_CC+y} 3374ffe57424Smrgthen : 3375ffe57424Smrg printf %s "(cached) " >&6 3376ffe57424Smrgelse $as_nop 337717ca54c3Smrg if test -n "$CC"; then 337817ca54c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 337917ca54c3Smrgelse 338017ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 338117ca54c3Smrgfor as_dir in $PATH 338217ca54c3Smrgdo 338317ca54c3Smrg IFS=$as_save_IFS 3384ffe57424Smrg case $as_dir in #((( 3385ffe57424Smrg '') as_dir=./ ;; 3386ffe57424Smrg */) ;; 3387ffe57424Smrg *) as_dir=$as_dir/ ;; 3388ffe57424Smrg esac 338917ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3390ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 339117ca54c3Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3392ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 339317ca54c3Smrg break 2 339417ca54c3Smrg fi 339517ca54c3Smrgdone 339617ca54c3Smrg done 339717ca54c3SmrgIFS=$as_save_IFS 339817ca54c3Smrg 339917ca54c3Smrgfi 340017ca54c3Smrgfi 340117ca54c3SmrgCC=$ac_cv_prog_CC 340217ca54c3Smrgif test -n "$CC"; then 3403ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3404ffe57424Smrgprintf "%s\n" "$CC" >&6; } 340517ca54c3Smrgelse 3406ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407ffe57424Smrgprintf "%s\n" "no" >&6; } 340817ca54c3Smrgfi 340917ca54c3Smrg 341017ca54c3Smrg 341117ca54c3Smrgfi 341217ca54c3Smrgif test -z "$ac_cv_prog_CC"; then 341317ca54c3Smrg ac_ct_CC=$CC 341417ca54c3Smrg # Extract the first word of "gcc", so it can be a program name with args. 3415ffe57424Smrgset dummy gcc; ac_word=$2 3416ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3417ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3418ffe57424Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3419ffe57424Smrgthen : 3420ffe57424Smrg printf %s "(cached) " >&6 3421ffe57424Smrgelse $as_nop 342217ca54c3Smrg if test -n "$ac_ct_CC"; then 342317ca54c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 342417ca54c3Smrgelse 342517ca54c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 342617ca54c3Smrgfor as_dir in $PATH 342717ca54c3Smrgdo 342817ca54c3Smrg IFS=$as_save_IFS 3429ffe57424Smrg case $as_dir in #((( 3430ffe57424Smrg '') as_dir=./ ;; 3431ffe57424Smrg */) ;; 3432ffe57424Smrg *) as_dir=$as_dir/ ;; 3433ffe57424Smrg esac 343417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3435ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3436ffe57424Smrg ac_cv_prog_ac_ct_CC="gcc" 3437ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 343817ca54c3Smrg break 2 343917ca54c3Smrg fi 344017ca54c3Smrgdone 344117ca54c3Smrg done 344217ca54c3SmrgIFS=$as_save_IFS 344317ca54c3Smrg 344417ca54c3Smrgfi 344517ca54c3Smrgfi 344617ca54c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 344717ca54c3Smrgif test -n "$ac_ct_CC"; then 3448ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3449ffe57424Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 345017ca54c3Smrgelse 3451ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452ffe57424Smrgprintf "%s\n" "no" >&6; } 345317ca54c3Smrgfi 345417ca54c3Smrg 345517ca54c3Smrg if test "x$ac_ct_CC" = x; then 345617ca54c3Smrg CC="" 345717ca54c3Smrg else 345817ca54c3Smrg case $cross_compiling:$ac_tool_warned in 345917ca54c3Smrgyes:) 3460ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3461ffe57424Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 346217ca54c3Smrgac_tool_warned=yes ;; 346317ca54c3Smrgesac 346417ca54c3Smrg CC=$ac_ct_CC 346517ca54c3Smrg fi 3466ffe57424Smrgelse 3467ffe57424Smrg CC="$ac_cv_prog_CC" 346817ca54c3Smrgfi 346917ca54c3Smrg 3470ffe57424Smrgif test -z "$CC"; then 3471ffe57424Smrg if test -n "$ac_tool_prefix"; then 3472ffe57424Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3473ffe57424Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3474ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3476ffe57424Smrgif test ${ac_cv_prog_CC+y} 3477ffe57424Smrgthen : 3478ffe57424Smrg printf %s "(cached) " >&6 3479ffe57424Smrgelse $as_nop 3480ffe57424Smrg if test -n "$CC"; then 3481ffe57424Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3482ffe57424Smrgelse 3483ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3484ffe57424Smrgfor as_dir in $PATH 348517ca54c3Smrgdo 3486ffe57424Smrg IFS=$as_save_IFS 3487ffe57424Smrg case $as_dir in #((( 3488ffe57424Smrg '') as_dir=./ ;; 3489ffe57424Smrg */) ;; 3490ffe57424Smrg *) as_dir=$as_dir/ ;; 349117ca54c3Smrg esac 3492ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3493ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3494ffe57424Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3495ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3496ffe57424Smrg break 2 3497ffe57424Smrg fi 349817ca54c3Smrgdone 3499ffe57424Smrg done 3500ffe57424SmrgIFS=$as_save_IFS 350117ca54c3Smrg 350217ca54c3Smrgfi 350317ca54c3Smrgfi 3504ffe57424SmrgCC=$ac_cv_prog_CC 3505ffe57424Smrgif test -n "$CC"; then 3506ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3507ffe57424Smrgprintf "%s\n" "$CC" >&6; } 350817ca54c3Smrgelse 3509ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3510ffe57424Smrgprintf "%s\n" "no" >&6; } 351117ca54c3Smrgfi 351217ca54c3Smrg 351317ca54c3Smrg 351417ca54c3Smrg fi 351517ca54c3Smrgfi 3516ffe57424Smrgif test -z "$CC"; then 3517ffe57424Smrg # Extract the first word of "cc", so it can be a program name with args. 3518ffe57424Smrgset dummy cc; ac_word=$2 3519ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3520ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3521ffe57424Smrgif test ${ac_cv_prog_CC+y} 3522ffe57424Smrgthen : 3523ffe57424Smrg printf %s "(cached) " >&6 3524ffe57424Smrgelse $as_nop 3525ffe57424Smrg if test -n "$CC"; then 3526ffe57424Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 352717ca54c3Smrgelse 3528ffe57424Smrg ac_prog_rejected=no 3529ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3530ffe57424Smrgfor as_dir in $PATH 3531ffe57424Smrgdo 3532ffe57424Smrg IFS=$as_save_IFS 3533ffe57424Smrg case $as_dir in #((( 3534ffe57424Smrg '') as_dir=./ ;; 3535ffe57424Smrg */) ;; 3536ffe57424Smrg *) as_dir=$as_dir/ ;; 3537ffe57424Smrg esac 3538ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3539ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3540ffe57424Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3541ffe57424Smrg ac_prog_rejected=yes 3542ffe57424Smrg continue 3543ffe57424Smrg fi 3544ffe57424Smrg ac_cv_prog_CC="cc" 3545ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3546ffe57424Smrg break 2 3547ffe57424Smrg fi 3548ffe57424Smrgdone 3549ffe57424Smrg done 3550ffe57424SmrgIFS=$as_save_IFS 355117ca54c3Smrg 3552ffe57424Smrgif test $ac_prog_rejected = yes; then 3553ffe57424Smrg # We found a bogon in the path, so make sure we never use it. 3554ffe57424Smrg set dummy $ac_cv_prog_CC 3555ffe57424Smrg shift 3556ffe57424Smrg if test $# != 0; then 3557ffe57424Smrg # We chose a different compiler from the bogus one. 3558ffe57424Smrg # However, it has the same basename, so the bogon will be chosen 3559ffe57424Smrg # first if we set CC to just the basename; use the full file name. 3560ffe57424Smrg shift 3561ffe57424Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3562ffe57424Smrg fi 3563ffe57424Smrgfi 3564ffe57424Smrgfi 3565ffe57424Smrgfi 3566ffe57424SmrgCC=$ac_cv_prog_CC 3567ffe57424Smrgif test -n "$CC"; then 3568ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3569ffe57424Smrgprintf "%s\n" "$CC" >&6; } 3570ffe57424Smrgelse 3571ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3572ffe57424Smrgprintf "%s\n" "no" >&6; } 3573ffe57424Smrgfi 3574ffe57424Smrg 3575ffe57424Smrg 3576ffe57424Smrgfi 3577ffe57424Smrgif test -z "$CC"; then 3578ffe57424Smrg if test -n "$ac_tool_prefix"; then 3579ffe57424Smrg for ac_prog in cl.exe 3580ffe57424Smrg do 3581ffe57424Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3582ffe57424Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3583ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3585ffe57424Smrgif test ${ac_cv_prog_CC+y} 3586ffe57424Smrgthen : 3587ffe57424Smrg printf %s "(cached) " >&6 3588ffe57424Smrgelse $as_nop 3589ffe57424Smrg if test -n "$CC"; then 3590ffe57424Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3591ffe57424Smrgelse 3592ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593ffe57424Smrgfor as_dir in $PATH 3594ffe57424Smrgdo 3595ffe57424Smrg IFS=$as_save_IFS 3596ffe57424Smrg case $as_dir in #((( 3597ffe57424Smrg '') as_dir=./ ;; 3598ffe57424Smrg */) ;; 3599ffe57424Smrg *) as_dir=$as_dir/ ;; 360017ca54c3Smrg esac 3601ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3602ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3603ffe57424Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3604ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3605ffe57424Smrg break 2 3606ffe57424Smrg fi 360717ca54c3Smrgdone 3608ffe57424Smrg done 3609ffe57424SmrgIFS=$as_save_IFS 361017ca54c3Smrg 361117ca54c3Smrgfi 361217ca54c3Smrgfi 3613ffe57424SmrgCC=$ac_cv_prog_CC 3614ffe57424Smrgif test -n "$CC"; then 3615ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3616ffe57424Smrgprintf "%s\n" "$CC" >&6; } 361717ca54c3Smrgelse 3618ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619ffe57424Smrgprintf "%s\n" "no" >&6; } 3620ffe57424Smrgfi 362117ca54c3Smrg 362217ca54c3Smrg 3623ffe57424Smrg test -n "$CC" && break 3624ffe57424Smrg done 362517ca54c3Smrgfi 3626ffe57424Smrgif test -z "$CC"; then 3627ffe57424Smrg ac_ct_CC=$CC 3628ffe57424Smrg for ac_prog in cl.exe 3629ffe57424Smrgdo 3630ffe57424Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3631ffe57424Smrgset dummy $ac_prog; ac_word=$2 3632ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3634ffe57424Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3635ffe57424Smrgthen : 3636ffe57424Smrg printf %s "(cached) " >&6 3637ffe57424Smrgelse $as_nop 3638ffe57424Smrg if test -n "$ac_ct_CC"; then 3639ffe57424Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3640ffe57424Smrgelse 3641ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642ffe57424Smrgfor as_dir in $PATH 3643ffe57424Smrgdo 3644ffe57424Smrg IFS=$as_save_IFS 3645ffe57424Smrg case $as_dir in #((( 3646ffe57424Smrg '') as_dir=./ ;; 3647ffe57424Smrg */) ;; 3648ffe57424Smrg *) as_dir=$as_dir/ ;; 3649ffe57424Smrg esac 3650ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3651ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3652ffe57424Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3653ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3654ffe57424Smrg break 2 3655ffe57424Smrg fi 3656ffe57424Smrgdone 3657ffe57424Smrg done 3658ffe57424SmrgIFS=$as_save_IFS 365917ca54c3Smrg 366017ca54c3Smrgfi 366117ca54c3Smrgfi 3662ffe57424Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3663ffe57424Smrgif test -n "$ac_ct_CC"; then 3664ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3665ffe57424Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 366617ca54c3Smrgelse 3667ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3668ffe57424Smrgprintf "%s\n" "no" >&6; } 3669ffe57424Smrgfi 367017ca54c3Smrg 367117ca54c3Smrg 3672ffe57424Smrg test -n "$ac_ct_CC" && break 3673ffe57424Smrgdone 367417ca54c3Smrg 3675ffe57424Smrg if test "x$ac_ct_CC" = x; then 3676ffe57424Smrg CC="" 3677ffe57424Smrg else 3678ffe57424Smrg case $cross_compiling:$ac_tool_warned in 3679ffe57424Smrgyes:) 3680ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3681ffe57424Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3682ffe57424Smrgac_tool_warned=yes ;; 3683ffe57424Smrgesac 3684ffe57424Smrg CC=$ac_ct_CC 3685ffe57424Smrg fi 3686ffe57424Smrgfi 368717ca54c3Smrg 3688ffe57424Smrgfi 3689ffe57424Smrgif test -z "$CC"; then 3690ffe57424Smrg if test -n "$ac_tool_prefix"; then 3691ffe57424Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3692ffe57424Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 3693ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3694ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3695ffe57424Smrgif test ${ac_cv_prog_CC+y} 3696ffe57424Smrgthen : 3697ffe57424Smrg printf %s "(cached) " >&6 3698ffe57424Smrgelse $as_nop 3699ffe57424Smrg if test -n "$CC"; then 3700ffe57424Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3701ffe57424Smrgelse 3702ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703ffe57424Smrgfor as_dir in $PATH 3704ffe57424Smrgdo 3705ffe57424Smrg IFS=$as_save_IFS 3706ffe57424Smrg case $as_dir in #((( 3707ffe57424Smrg '') as_dir=./ ;; 3708ffe57424Smrg */) ;; 3709ffe57424Smrg *) as_dir=$as_dir/ ;; 3710ffe57424Smrg esac 3711ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3712ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3713ffe57424Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 3714ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3715ffe57424Smrg break 2 3716ffe57424Smrg fi 3717ffe57424Smrgdone 3718ffe57424Smrg done 3719ffe57424SmrgIFS=$as_save_IFS 372017ca54c3Smrg 3721ffe57424Smrgfi 3722ffe57424Smrgfi 3723ffe57424SmrgCC=$ac_cv_prog_CC 3724ffe57424Smrgif test -n "$CC"; then 3725ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3726ffe57424Smrgprintf "%s\n" "$CC" >&6; } 372717ca54c3Smrgelse 3728ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729ffe57424Smrgprintf "%s\n" "no" >&6; } 3730ffe57424Smrgfi 373117ca54c3Smrg 373217ca54c3Smrg 373317ca54c3Smrgfi 3734ffe57424Smrgif test -z "$ac_cv_prog_CC"; then 3735ffe57424Smrg ac_ct_CC=$CC 3736ffe57424Smrg # Extract the first word of "clang", so it can be a program name with args. 3737ffe57424Smrgset dummy clang; ac_word=$2 3738ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 3740ffe57424Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3741ffe57424Smrgthen : 3742ffe57424Smrg printf %s "(cached) " >&6 3743ffe57424Smrgelse $as_nop 3744ffe57424Smrg if test -n "$ac_ct_CC"; then 3745ffe57424Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3746ffe57424Smrgelse 3747ffe57424Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748ffe57424Smrgfor as_dir in $PATH 3749ffe57424Smrgdo 3750ffe57424Smrg IFS=$as_save_IFS 3751ffe57424Smrg case $as_dir in #((( 3752ffe57424Smrg '') as_dir=./ ;; 3753ffe57424Smrg */) ;; 3754ffe57424Smrg *) as_dir=$as_dir/ ;; 3755ffe57424Smrg esac 3756ffe57424Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3757ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3758ffe57424Smrg ac_cv_prog_ac_ct_CC="clang" 3759ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3760ffe57424Smrg break 2 3761ffe57424Smrg fi 3762ffe57424Smrgdone 3763ffe57424Smrg done 3764ffe57424SmrgIFS=$as_save_IFS 3765ffe57424Smrg 376617ca54c3Smrgfi 376717ca54c3Smrgfi 3768ffe57424Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3769ffe57424Smrgif test -n "$ac_ct_CC"; then 3770ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3771ffe57424Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3772ffe57424Smrgelse 3773ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774ffe57424Smrgprintf "%s\n" "no" >&6; } 377517ca54c3Smrgfi 3776ffe57424Smrg 3777ffe57424Smrg if test "x$ac_ct_CC" = x; then 3778ffe57424Smrg CC="" 377917ca54c3Smrg else 3780ffe57424Smrg case $cross_compiling:$ac_tool_warned in 3781ffe57424Smrgyes:) 3782ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3783ffe57424Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3784ffe57424Smrgac_tool_warned=yes ;; 3785ffe57424Smrgesac 3786ffe57424Smrg CC=$ac_ct_CC 378717ca54c3Smrg fi 378817ca54c3Smrgelse 3789ffe57424Smrg CC="$ac_cv_prog_CC" 379017ca54c3Smrgfi 379117ca54c3Smrg 379217ca54c3Smrgfi 379317ca54c3Smrg 379417ca54c3Smrg 3795ffe57424Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3796ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3797ffe57424Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3798ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } 379917ca54c3Smrg 3800ffe57424Smrg# Provide some information about the compiler. 3801ffe57424Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3802ffe57424Smrgset X $ac_compile 3803ffe57424Smrgac_compiler=$2 3804ffe57424Smrgfor ac_option in --version -v -V -qversion -version; do 3805ffe57424Smrg { { ac_try="$ac_compiler $ac_option >&5" 3806ffe57424Smrgcase "(($ac_try" in 3807ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3808ffe57424Smrg *) ac_try_echo=$ac_try;; 3809ffe57424Smrgesac 3810ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3811ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3812ffe57424Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3813ffe57424Smrg ac_status=$? 3814ffe57424Smrg if test -s conftest.err; then 3815ffe57424Smrg sed '10a\ 3816ffe57424Smrg... rest of stderr output deleted ... 3817ffe57424Smrg 10q' conftest.err >conftest.er1 3818ffe57424Smrg cat conftest.er1 >&5 3819ffe57424Smrg fi 3820ffe57424Smrg rm -f conftest.er1 conftest.err 3821ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3822ffe57424Smrg test $ac_status = 0; } 3823ffe57424Smrgdone 382417ca54c3Smrg 3825ffe57424Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 382617ca54c3Smrg/* end confdefs.h. */ 382717ca54c3Smrg 382817ca54c3Smrgint 3829ffe57424Smrgmain (void) 383017ca54c3Smrg{ 383117ca54c3Smrg 383217ca54c3Smrg ; 383317ca54c3Smrg return 0; 383417ca54c3Smrg} 383517ca54c3Smrg_ACEOF 3836ffe57424Smrgac_clean_files_save=$ac_clean_files 3837ffe57424Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3838ffe57424Smrg# Try to create an executable without -o first, disregard a.out. 3839ffe57424Smrg# It will help us diagnose broken compilers, and finding out an intuition 3840ffe57424Smrg# of exeext. 3841ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3842ffe57424Smrgprintf %s "checking whether the C compiler works... " >&6; } 3843ffe57424Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 384417ca54c3Smrg 3845ffe57424Smrg# The possible output files: 3846ffe57424Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 384717ca54c3Smrg 3848ffe57424Smrgac_rmfiles= 3849ffe57424Smrgfor ac_file in $ac_files 3850ffe57424Smrgdo 3851ffe57424Smrg case $ac_file in 3852ffe57424Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3853ffe57424Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3854ffe57424Smrg esac 3855ffe57424Smrgdone 3856ffe57424Smrgrm -f $ac_rmfiles 385717ca54c3Smrg 3858ffe57424Smrgif { { ac_try="$ac_link_default" 3859ffe57424Smrgcase "(($ac_try" in 3860ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3861ffe57424Smrg *) ac_try_echo=$ac_try;; 3862ffe57424Smrgesac 3863ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3864ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3865ffe57424Smrg (eval "$ac_link_default") 2>&5 3866ffe57424Smrg ac_status=$? 3867ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3868ffe57424Smrg test $ac_status = 0; } 3869ffe57424Smrgthen : 3870ffe57424Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3871ffe57424Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3872ffe57424Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3873ffe57424Smrg# so that the user can short-circuit this test for compilers unknown to 3874ffe57424Smrg# Autoconf. 3875ffe57424Smrgfor ac_file in $ac_files '' 3876ffe57424Smrgdo 3877ffe57424Smrg test -f "$ac_file" || continue 3878ffe57424Smrg case $ac_file in 3879ffe57424Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3880ffe57424Smrg ;; 3881ffe57424Smrg [ab].out ) 3882ffe57424Smrg # We found the default executable, but exeext='' is most 3883ffe57424Smrg # certainly right. 3884ffe57424Smrg break;; 3885ffe57424Smrg *.* ) 3886ffe57424Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3887ffe57424Smrg then :; else 3888ffe57424Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3889ffe57424Smrg fi 3890ffe57424Smrg # We set ac_cv_exeext here because the later test for it is not 3891ffe57424Smrg # safe: cross compilers may not add the suffix if given an `-o' 3892ffe57424Smrg # argument, so we may need to know it at that point already. 3893ffe57424Smrg # Even if this section looks crufty: it has the advantage of 3894ffe57424Smrg # actually working. 3895ffe57424Smrg break;; 3896ffe57424Smrg * ) 3897ffe57424Smrg break;; 3898ffe57424Smrg esac 3899ffe57424Smrgdone 3900ffe57424Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 390117ca54c3Smrg 3902ffe57424Smrgelse $as_nop 3903ffe57424Smrg ac_file='' 390417ca54c3Smrgfi 3905ffe57424Smrgif test -z "$ac_file" 3906ffe57424Smrgthen : 3907ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908ffe57424Smrgprintf "%s\n" "no" >&6; } 3909ffe57424Smrgprintf "%s\n" "$as_me: failed program was:" >&5 3910ffe57424Smrgsed 's/^/| /' conftest.$ac_ext >&5 391117ca54c3Smrg 3912ffe57424Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3913ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3914ffe57424Smrgas_fn_error 77 "C compiler cannot create executables 3915ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } 3916ffe57424Smrgelse $as_nop 3917ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3918ffe57424Smrgprintf "%s\n" "yes" >&6; } 3919ffe57424Smrgfi 3920ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3921ffe57424Smrgprintf %s "checking for C compiler default output file name... " >&6; } 3922ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3923ffe57424Smrgprintf "%s\n" "$ac_file" >&6; } 3924ffe57424Smrgac_exeext=$ac_cv_exeext 392517ca54c3Smrg 3926ffe57424Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3927ffe57424Smrgac_clean_files=$ac_clean_files_save 3928ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3929ffe57424Smrgprintf %s "checking for suffix of executables... " >&6; } 3930ffe57424Smrgif { { ac_try="$ac_link" 3931ffe57424Smrgcase "(($ac_try" in 3932ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933ffe57424Smrg *) ac_try_echo=$ac_try;; 3934ffe57424Smrgesac 3935ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3937ffe57424Smrg (eval "$ac_link") 2>&5 3938ffe57424Smrg ac_status=$? 3939ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940ffe57424Smrg test $ac_status = 0; } 3941ffe57424Smrgthen : 3942ffe57424Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3943ffe57424Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3944ffe57424Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3945ffe57424Smrg# `rm'. 3946ffe57424Smrgfor ac_file in conftest.exe conftest conftest.*; do 3947ffe57424Smrg test -f "$ac_file" || continue 3948ffe57424Smrg case $ac_file in 3949ffe57424Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3950ffe57424Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3951ffe57424Smrg break;; 3952ffe57424Smrg * ) break;; 3953ffe57424Smrg esac 3954ffe57424Smrgdone 3955ffe57424Smrgelse $as_nop 3956ffe57424Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3958ffe57424Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3959ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } 396017ca54c3Smrgfi 3961ffe57424Smrgrm -f conftest conftest$ac_cv_exeext 3962ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3963ffe57424Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 396417ca54c3Smrg 3965ffe57424Smrgrm -f conftest.$ac_ext 3966ffe57424SmrgEXEEXT=$ac_cv_exeext 3967ffe57424Smrgac_exeext=$EXEEXT 396817ca54c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 396917ca54c3Smrg/* end confdefs.h. */ 397017ca54c3Smrg#include <stdio.h> 3971ffe57424Smrgint 3972ffe57424Smrgmain (void) 397317ca54c3Smrg{ 3974ffe57424SmrgFILE *f = fopen ("conftest.out", "w"); 3975ffe57424Smrg return ferror (f) || fclose (f) != 0; 3976ffe57424Smrg 3977ffe57424Smrg ; 3978ffe57424Smrg return 0; 397917ca54c3Smrg} 3980ffe57424Smrg_ACEOF 3981ffe57424Smrgac_clean_files="$ac_clean_files conftest.out" 3982ffe57424Smrg# Check that the compiler produces executables we can run. If not, either 3983ffe57424Smrg# the compiler is broken, or we cross compile. 3984ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3985ffe57424Smrgprintf %s "checking whether we are cross compiling... " >&6; } 3986ffe57424Smrgif test "$cross_compiling" != yes; then 3987ffe57424Smrg { { ac_try="$ac_link" 3988ffe57424Smrgcase "(($ac_try" in 3989ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990ffe57424Smrg *) ac_try_echo=$ac_try;; 3991ffe57424Smrgesac 3992ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3994ffe57424Smrg (eval "$ac_link") 2>&5 3995ffe57424Smrg ac_status=$? 3996ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997ffe57424Smrg test $ac_status = 0; } 3998ffe57424Smrg if { ac_try='./conftest$ac_cv_exeext' 3999ffe57424Smrg { { case "(($ac_try" in 4000ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001ffe57424Smrg *) ac_try_echo=$ac_try;; 4002ffe57424Smrgesac 4003ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4004ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 4005ffe57424Smrg (eval "$ac_try") 2>&5 4006ffe57424Smrg ac_status=$? 4007ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4008ffe57424Smrg test $ac_status = 0; }; }; then 4009ffe57424Smrg cross_compiling=no 4010ffe57424Smrg else 4011ffe57424Smrg if test "$cross_compiling" = maybe; then 4012ffe57424Smrg cross_compiling=yes 4013ffe57424Smrg else 4014ffe57424Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4015ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4016ffe57424Smrgas_fn_error 77 "cannot run C compiled programs. 4017ffe57424SmrgIf you meant to cross compile, use \`--host'. 4018ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } 4019ffe57424Smrg fi 4020ffe57424Smrg fi 4021ffe57424Smrgfi 4022ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4023ffe57424Smrgprintf "%s\n" "$cross_compiling" >&6; } 402417ca54c3Smrg 4025ffe57424Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4026ffe57424Smrgac_clean_files=$ac_clean_files_save 4027ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4028ffe57424Smrgprintf %s "checking for suffix of object files... " >&6; } 4029ffe57424Smrgif test ${ac_cv_objext+y} 4030ffe57424Smrgthen : 4031ffe57424Smrg printf %s "(cached) " >&6 4032ffe57424Smrgelse $as_nop 4033ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034ffe57424Smrg/* end confdefs.h. */ 403517ca54c3Smrg 4036ffe57424Smrgint 4037ffe57424Smrgmain (void) 403817ca54c3Smrg{ 403917ca54c3Smrg 4040ffe57424Smrg ; 4041ffe57424Smrg return 0; 4042ffe57424Smrg} 4043ffe57424Smrg_ACEOF 4044ffe57424Smrgrm -f conftest.o conftest.obj 4045ffe57424Smrgif { { ac_try="$ac_compile" 4046ffe57424Smrgcase "(($ac_try" in 4047ffe57424Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4048ffe57424Smrg *) ac_try_echo=$ac_try;; 4049ffe57424Smrgesac 4050ffe57424Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4051ffe57424Smrgprintf "%s\n" "$ac_try_echo"; } >&5 4052ffe57424Smrg (eval "$ac_compile") 2>&5 4053ffe57424Smrg ac_status=$? 4054ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4055ffe57424Smrg test $ac_status = 0; } 4056ffe57424Smrgthen : 4057ffe57424Smrg for ac_file in conftest.o conftest.obj conftest.*; do 4058ffe57424Smrg test -f "$ac_file" || continue; 4059ffe57424Smrg case $ac_file in 4060ffe57424Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4061ffe57424Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4062ffe57424Smrg break;; 4063ffe57424Smrg esac 4064ffe57424Smrgdone 4065ffe57424Smrgelse $as_nop 4066ffe57424Smrg printf "%s\n" "$as_me: failed program was:" >&5 4067ffe57424Smrgsed 's/^/| /' conftest.$ac_ext >&5 406817ca54c3Smrg 4069ffe57424Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4070ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4071ffe57424Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 4072ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } 4073ffe57424Smrgfi 4074ffe57424Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 4075ffe57424Smrgfi 4076ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4077ffe57424Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 4078ffe57424SmrgOBJEXT=$ac_cv_objext 4079ffe57424Smrgac_objext=$OBJEXT 4080ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4081ffe57424Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 4082ffe57424Smrgif test ${ac_cv_c_compiler_gnu+y} 4083ffe57424Smrgthen : 4084ffe57424Smrg printf %s "(cached) " >&6 4085ffe57424Smrgelse $as_nop 4086ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087ffe57424Smrg/* end confdefs.h. */ 408817ca54c3Smrg 4089ffe57424Smrgint 4090ffe57424Smrgmain (void) 409117ca54c3Smrg{ 4092ffe57424Smrg#ifndef __GNUC__ 4093ffe57424Smrg choke me 4094ffe57424Smrg#endif 4095ffe57424Smrg 4096ffe57424Smrg ; 409717ca54c3Smrg return 0; 409817ca54c3Smrg} 4099ffe57424Smrg_ACEOF 4100ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4101ffe57424Smrgthen : 4102ffe57424Smrg ac_compiler_gnu=yes 4103ffe57424Smrgelse $as_nop 4104ffe57424Smrg ac_compiler_gnu=no 4105ffe57424Smrgfi 4106ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4107ffe57424Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 410817ca54c3Smrg 4109ffe57424Smrgfi 4110ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4111ffe57424Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4112ffe57424Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 411317ca54c3Smrg 4114ffe57424Smrgif test $ac_compiler_gnu = yes; then 4115ffe57424Smrg GCC=yes 4116ffe57424Smrgelse 4117ffe57424Smrg GCC= 4118ffe57424Smrgfi 4119ffe57424Smrgac_test_CFLAGS=${CFLAGS+y} 4120ffe57424Smrgac_save_CFLAGS=$CFLAGS 4121ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4122ffe57424Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 4123ffe57424Smrgif test ${ac_cv_prog_cc_g+y} 4124ffe57424Smrgthen : 4125ffe57424Smrg printf %s "(cached) " >&6 4126ffe57424Smrgelse $as_nop 4127ffe57424Smrg ac_save_c_werror_flag=$ac_c_werror_flag 4128ffe57424Smrg ac_c_werror_flag=yes 4129ffe57424Smrg ac_cv_prog_cc_g=no 4130ffe57424Smrg CFLAGS="-g" 4131ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132ffe57424Smrg/* end confdefs.h. */ 413317ca54c3Smrg 413417ca54c3Smrgint 4135ffe57424Smrgmain (void) 413617ca54c3Smrg{ 413717ca54c3Smrg 4138ffe57424Smrg ; 4139ffe57424Smrg return 0; 4140ffe57424Smrg} 4141ffe57424Smrg_ACEOF 4142ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4143ffe57424Smrgthen : 4144ffe57424Smrg ac_cv_prog_cc_g=yes 4145ffe57424Smrgelse $as_nop 4146ffe57424Smrg CFLAGS="" 4147ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148ffe57424Smrg/* end confdefs.h. */ 414917ca54c3Smrg 4150ffe57424Smrgint 4151ffe57424Smrgmain (void) 4152ffe57424Smrg{ 415317ca54c3Smrg 4154ffe57424Smrg ; 4155ffe57424Smrg return 0; 4156ffe57424Smrg} 4157ffe57424Smrg_ACEOF 4158ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4159ffe57424Smrgthen : 416017ca54c3Smrg 4161ffe57424Smrgelse $as_nop 4162ffe57424Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4163ffe57424Smrg CFLAGS="-g" 4164ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4165ffe57424Smrg/* end confdefs.h. */ 416617ca54c3Smrg 4167ffe57424Smrgint 4168ffe57424Smrgmain (void) 4169ffe57424Smrg{ 417017ca54c3Smrg 4171ffe57424Smrg ; 4172ffe57424Smrg return 0; 4173ffe57424Smrg} 4174ffe57424Smrg_ACEOF 4175ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4176ffe57424Smrgthen : 4177ffe57424Smrg ac_cv_prog_cc_g=yes 4178ffe57424Smrgfi 4179ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4180ffe57424Smrgfi 4181ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4182ffe57424Smrgfi 4183ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4184ffe57424Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4185ffe57424Smrgfi 4186ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4187ffe57424Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4188ffe57424Smrgif test $ac_test_CFLAGS; then 4189ffe57424Smrg CFLAGS=$ac_save_CFLAGS 4190ffe57424Smrgelif test $ac_cv_prog_cc_g = yes; then 4191ffe57424Smrg if test "$GCC" = yes; then 4192ffe57424Smrg CFLAGS="-g -O2" 4193ffe57424Smrg else 4194ffe57424Smrg CFLAGS="-g" 4195ffe57424Smrg fi 4196ffe57424Smrgelse 4197ffe57424Smrg if test "$GCC" = yes; then 4198ffe57424Smrg CFLAGS="-O2" 4199ffe57424Smrg else 4200ffe57424Smrg CFLAGS= 4201ffe57424Smrg fi 4202ffe57424Smrgfi 4203ffe57424Smrgac_prog_cc_stdc=no 4204ffe57424Smrgif test x$ac_prog_cc_stdc = xno 4205ffe57424Smrgthen : 4206ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4207ffe57424Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 4208ffe57424Smrgif test ${ac_cv_prog_cc_c11+y} 4209ffe57424Smrgthen : 4210ffe57424Smrg printf %s "(cached) " >&6 4211ffe57424Smrgelse $as_nop 4212ffe57424Smrg ac_cv_prog_cc_c11=no 4213ffe57424Smrgac_save_CC=$CC 4214ffe57424Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215ffe57424Smrg/* end confdefs.h. */ 4216ffe57424Smrg$ac_c_conftest_c11_program 4217ffe57424Smrg_ACEOF 4218ffe57424Smrgfor ac_arg in '' -std=gnu11 4219ffe57424Smrgdo 4220ffe57424Smrg CC="$ac_save_CC $ac_arg" 4221ffe57424Smrg if ac_fn_c_try_compile "$LINENO" 4222ffe57424Smrgthen : 4223ffe57424Smrg ac_cv_prog_cc_c11=$ac_arg 4224ffe57424Smrgfi 4225ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4226ffe57424Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 4227ffe57424Smrgdone 4228ffe57424Smrgrm -f conftest.$ac_ext 4229ffe57424SmrgCC=$ac_save_CC 4230ffe57424Smrgfi 423117ca54c3Smrg 4232ffe57424Smrgif test "x$ac_cv_prog_cc_c11" = xno 4233ffe57424Smrgthen : 4234ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4235ffe57424Smrgprintf "%s\n" "unsupported" >&6; } 4236ffe57424Smrgelse $as_nop 4237ffe57424Smrg if test "x$ac_cv_prog_cc_c11" = x 4238ffe57424Smrgthen : 4239ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4240ffe57424Smrgprintf "%s\n" "none needed" >&6; } 4241ffe57424Smrgelse $as_nop 4242ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4243ffe57424Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4244ffe57424Smrg CC="$CC $ac_cv_prog_cc_c11" 4245ffe57424Smrgfi 4246ffe57424Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4247ffe57424Smrg ac_prog_cc_stdc=c11 4248ffe57424Smrgfi 4249ffe57424Smrgfi 4250ffe57424Smrgif test x$ac_prog_cc_stdc = xno 4251ffe57424Smrgthen : 4252ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4253ffe57424Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 4254ffe57424Smrgif test ${ac_cv_prog_cc_c99+y} 4255ffe57424Smrgthen : 4256ffe57424Smrg printf %s "(cached) " >&6 4257ffe57424Smrgelse $as_nop 4258ffe57424Smrg ac_cv_prog_cc_c99=no 4259ffe57424Smrgac_save_CC=$CC 4260ffe57424Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261ffe57424Smrg/* end confdefs.h. */ 4262ffe57424Smrg$ac_c_conftest_c99_program 426317ca54c3Smrg_ACEOF 4264ffe57424Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 426517ca54c3Smrgdo 426617ca54c3Smrg CC="$ac_save_CC $ac_arg" 4267ffe57424Smrg if ac_fn_c_try_compile "$LINENO" 4268ffe57424Smrgthen : 426917ca54c3Smrg ac_cv_prog_cc_c99=$ac_arg 427017ca54c3Smrgfi 4271ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 427217ca54c3Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 427317ca54c3Smrgdone 427417ca54c3Smrgrm -f conftest.$ac_ext 427517ca54c3SmrgCC=$ac_save_CC 427617ca54c3Smrgfi 427717ca54c3Smrg 4278ffe57424Smrgif test "x$ac_cv_prog_cc_c99" = xno 4279ffe57424Smrgthen : 4280ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4281ffe57424Smrgprintf "%s\n" "unsupported" >&6; } 4282ffe57424Smrgelse $as_nop 4283ffe57424Smrg if test "x$ac_cv_prog_cc_c99" = x 4284ffe57424Smrgthen : 4285ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4286ffe57424Smrgprintf "%s\n" "none needed" >&6; } 4287ffe57424Smrgelse $as_nop 4288ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4289ffe57424Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4290ffe57424Smrg CC="$CC $ac_cv_prog_cc_c99" 4291ffe57424Smrgfi 4292ffe57424Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4293ffe57424Smrg ac_prog_cc_stdc=c99 4294ffe57424Smrgfi 4295ffe57424Smrgfi 4296ffe57424Smrgif test x$ac_prog_cc_stdc = xno 4297ffe57424Smrgthen : 4298ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4299ffe57424Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 4300ffe57424Smrgif test ${ac_cv_prog_cc_c89+y} 4301ffe57424Smrgthen : 4302ffe57424Smrg printf %s "(cached) " >&6 4303ffe57424Smrgelse $as_nop 4304ffe57424Smrg ac_cv_prog_cc_c89=no 4305ffe57424Smrgac_save_CC=$CC 4306ffe57424Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307ffe57424Smrg/* end confdefs.h. */ 4308ffe57424Smrg$ac_c_conftest_c89_program 4309ffe57424Smrg_ACEOF 4310ffe57424Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4311ffe57424Smrgdo 4312ffe57424Smrg CC="$ac_save_CC $ac_arg" 4313ffe57424Smrg if ac_fn_c_try_compile "$LINENO" 4314ffe57424Smrgthen : 4315ffe57424Smrg ac_cv_prog_cc_c89=$ac_arg 4316ffe57424Smrgfi 4317ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4318ffe57424Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 4319ffe57424Smrgdone 4320ffe57424Smrgrm -f conftest.$ac_ext 4321ffe57424SmrgCC=$ac_save_CC 432217ca54c3Smrgfi 432317ca54c3Smrg 4324ffe57424Smrgif test "x$ac_cv_prog_cc_c89" = xno 4325ffe57424Smrgthen : 4326ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4327ffe57424Smrgprintf "%s\n" "unsupported" >&6; } 4328ffe57424Smrgelse $as_nop 4329ffe57424Smrg if test "x$ac_cv_prog_cc_c89" = x 4330ffe57424Smrgthen : 4331ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4332ffe57424Smrgprintf "%s\n" "none needed" >&6; } 4333ffe57424Smrgelse $as_nop 4334ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4335ffe57424Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4336ffe57424Smrg CC="$CC $ac_cv_prog_cc_c89" 4337ffe57424Smrgfi 4338ffe57424Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4339ffe57424Smrg ac_prog_cc_stdc=c89 4340ffe57424Smrgfi 4341ffe57424Smrgfi 434217ca54c3Smrg 434317ca54c3Smrgac_ext=c 434417ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 434517ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 434617ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 434717ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 434817ca54c3Smrg 434917ca54c3Smrg 4350ffe57424Smrg ac_ext=c 4351ffe57424Smrgac_cpp='$CPP $CPPFLAGS' 4352ffe57424Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4353ffe57424Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4354ffe57424Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4355ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4356ffe57424Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 4357ffe57424Smrgif test ${am_cv_prog_cc_c_o+y} 4358ffe57424Smrgthen : 4359ffe57424Smrg printf %s "(cached) " >&6 4360ffe57424Smrgelse $as_nop 436117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 436217ca54c3Smrg/* end confdefs.h. */ 436317ca54c3Smrg 4364ffe57424Smrgint 4365ffe57424Smrgmain (void) 4366ffe57424Smrg{ 436717ca54c3Smrg 4368ffe57424Smrg ; 4369ffe57424Smrg return 0; 4370ffe57424Smrg} 437117ca54c3Smrg_ACEOF 4372ffe57424Smrg # Make sure it works both with $CC and with simple cc. 4373ffe57424Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 4374ffe57424Smrg # compilers refuse to overwrite an existing .o file with -o, 4375ffe57424Smrg # though they will create one. 4376ffe57424Smrg am_cv_prog_cc_c_o=yes 4377ffe57424Smrg for am_i in 1 2; do 4378ffe57424Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4379ffe57424Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4380ffe57424Smrg ac_status=$? 4381ffe57424Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382ffe57424Smrg (exit $ac_status); } \ 4383ffe57424Smrg && test -f conftest2.$ac_objext; then 4384ffe57424Smrg : OK 4385ffe57424Smrg else 4386ffe57424Smrg am_cv_prog_cc_c_o=no 4387ffe57424Smrg break 4388ffe57424Smrg fi 4389ffe57424Smrg done 4390ffe57424Smrg rm -f core conftest* 4391ffe57424Smrg unset am_i 439217ca54c3Smrgfi 4393ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4394ffe57424Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4395ffe57424Smrgif test "$am_cv_prog_cc_c_o" != yes; then 4396ffe57424Smrg # Losing compiler, so override with the script. 4397ffe57424Smrg # FIXME: It is wrong to rewrite CC. 4398ffe57424Smrg # But if we don't then we get into trouble of one sort or another. 4399ffe57424Smrg # A longer-term fix would be to have automake use am__CC in this case, 4400ffe57424Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4401ffe57424Smrg CC="$am_aux_dir/compile $CC" 440217ca54c3Smrgfi 440317ca54c3Smrgac_ext=c 440417ca54c3Smrgac_cpp='$CPP $CPPFLAGS' 440517ca54c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 440617ca54c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 440717ca54c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 440817ca54c3Smrg 440917ca54c3Smrg 4410ffe57424Smrgdepcc="$CC" am_compiler_list= 441117ca54c3Smrg 4412ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4413ffe57424Smrgprintf %s "checking dependency style of $depcc... " >&6; } 4414ffe57424Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 4415ffe57424Smrgthen : 4416ffe57424Smrg printf %s "(cached) " >&6 4417ffe57424Smrgelse $as_nop 4418ffe57424Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4419ffe57424Smrg # We make a subdir and do the tests there. Otherwise we can end up 4420ffe57424Smrg # making bogus files that we don't know about and never remove. For 4421ffe57424Smrg # instance it was reported that on HP-UX the gcc test will end up 4422ffe57424Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 4423ffe57424Smrg # in D". 4424ffe57424Smrg rm -rf conftest.dir 4425ffe57424Smrg mkdir conftest.dir 4426ffe57424Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 4427ffe57424Smrg # using a relative directory. 4428ffe57424Smrg cp "$am_depcomp" conftest.dir 4429ffe57424Smrg cd conftest.dir 4430ffe57424Smrg # We will build objects and dependencies in a subdirectory because 4431ffe57424Smrg # it helps to detect inapplicable dependency modes. For instance 4432ffe57424Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 4433ffe57424Smrg # side effect of compilation, but ICC will put the dependencies in 4434ffe57424Smrg # the current directory while Tru64 will put them in the object 4435ffe57424Smrg # directory. 4436ffe57424Smrg mkdir sub 443717ca54c3Smrg 4438ffe57424Smrg am_cv_CC_dependencies_compiler_type=none 4439ffe57424Smrg if test "$am_compiler_list" = ""; then 4440ffe57424Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4441ffe57424Smrg fi 4442ffe57424Smrg am__universal=false 4443ffe57424Smrg case " $depcc " in #( 4444ffe57424Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4445ffe57424Smrg esac 444617ca54c3Smrg 4447ffe57424Smrg for depmode in $am_compiler_list; do 4448ffe57424Smrg # Setup a source with many dependencies, because some compilers 4449ffe57424Smrg # like to wrap large dependency lists on column 80 (with \), and 4450ffe57424Smrg # we should not choose a depcomp mode which is confused by this. 4451ffe57424Smrg # 4452ffe57424Smrg # We need to recreate these files for each test, as the compiler may 4453ffe57424Smrg # overwrite some of them when testing with obscure command lines. 4454ffe57424Smrg # This happens at least with the AIX C compiler. 4455ffe57424Smrg : > sub/conftest.c 4456ffe57424Smrg for i in 1 2 3 4 5 6; do 4457ffe57424Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4458ffe57424Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4459ffe57424Smrg # Solaris 10 /bin/sh. 4460ffe57424Smrg echo '/* dummy */' > sub/conftst$i.h 4461ffe57424Smrg done 4462ffe57424Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 446317ca54c3Smrg 4464ffe57424Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4465ffe57424Smrg # mode. It turns out that the SunPro C++ compiler does not properly 4466ffe57424Smrg # handle '-M -o', and we need to detect this. Also, some Intel 4467ffe57424Smrg # versions had trouble with output in subdirs. 4468ffe57424Smrg am__obj=sub/conftest.${OBJEXT-o} 4469ffe57424Smrg am__minus_obj="-o $am__obj" 4470ffe57424Smrg case $depmode in 4471ffe57424Smrg gcc) 4472ffe57424Smrg # This depmode causes a compiler race in universal mode. 4473ffe57424Smrg test "$am__universal" = false || continue 4474ffe57424Smrg ;; 4475ffe57424Smrg nosideeffect) 4476ffe57424Smrg # After this tag, mechanisms are not by side-effect, so they'll 4477ffe57424Smrg # only be used when explicitly requested. 4478ffe57424Smrg if test "x$enable_dependency_tracking" = xyes; then 4479ffe57424Smrg continue 4480ffe57424Smrg else 4481ffe57424Smrg break 4482ffe57424Smrg fi 4483ffe57424Smrg ;; 4484ffe57424Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4485ffe57424Smrg # This compiler won't grok '-c -o', but also, the minuso test has 4486ffe57424Smrg # not run yet. These depmodes are late enough in the game, and 4487ffe57424Smrg # so weak that their functioning should not be impacted. 4488ffe57424Smrg am__obj=conftest.${OBJEXT-o} 4489ffe57424Smrg am__minus_obj= 4490ffe57424Smrg ;; 4491ffe57424Smrg none) break ;; 4492ffe57424Smrg esac 4493ffe57424Smrg if depmode=$depmode \ 4494ffe57424Smrg source=sub/conftest.c object=$am__obj \ 4495ffe57424Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4496ffe57424Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4497ffe57424Smrg >/dev/null 2>conftest.err && 4498ffe57424Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4499ffe57424Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4500ffe57424Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4501ffe57424Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4502ffe57424Smrg # icc doesn't choke on unknown options, it will just issue warnings 4503ffe57424Smrg # or remarks (even with -Werror). So we grep stderr for any message 4504ffe57424Smrg # that says an option was ignored or not supported. 4505ffe57424Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 4506ffe57424Smrg # icc: Command line warning: ignoring option '-M'; no argument required 4507ffe57424Smrg # The diagnosis changed in icc 8.0: 4508ffe57424Smrg # icc: Command line remark: option '-MP' not supported 4509ffe57424Smrg if (grep 'ignoring option' conftest.err || 4510ffe57424Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4511ffe57424Smrg am_cv_CC_dependencies_compiler_type=$depmode 4512ffe57424Smrg break 4513ffe57424Smrg fi 451417ca54c3Smrg fi 451517ca54c3Smrg done 451617ca54c3Smrg 4517ffe57424Smrg cd .. 4518ffe57424Smrg rm -rf conftest.dir 451917ca54c3Smrgelse 4520ffe57424Smrg am_cv_CC_dependencies_compiler_type=none 452117ca54c3Smrgfi 452217ca54c3Smrg 452317ca54c3Smrgfi 4524ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4525ffe57424Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4526ffe57424SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 452717ca54c3Smrg 4528ffe57424Smrg if 4529ffe57424Smrg test "x$enable_dependency_tracking" != xno \ 4530ffe57424Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4531ffe57424Smrg am__fastdepCC_TRUE= 4532ffe57424Smrg am__fastdepCC_FALSE='#' 453317ca54c3Smrgelse 4534ffe57424Smrg am__fastdepCC_TRUE='#' 4535ffe57424Smrg am__fastdepCC_FALSE= 453617ca54c3Smrgfi 453717ca54c3Smrg 453817ca54c3Smrg 453917ca54c3Smrg 454017ca54c3Smrg 4541ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4542ffe57424Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4543ffe57424Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 4544ffe57424Smrgthen : 4545ffe57424Smrg printf %s "(cached) " >&6 4546ffe57424Smrgelse $as_nop 4547ffe57424Smrg ac_save_CFLAGS=$CFLAGS 4548ffe57424Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 4549ffe57424Smrg for ac_arg in '' -fno-builtin; do 4550ffe57424Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4551ffe57424Smrg # This test program should *not* compile successfully. 4552ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 455317ca54c3Smrg/* end confdefs.h. */ 455417ca54c3Smrg 4555ffe57424Smrgint 4556ffe57424Smrgmain (void) 4557ffe57424Smrg{ 4558ffe57424Smrg(void) strchr; 4559ffe57424Smrg ; 4560ffe57424Smrg return 0; 4561ffe57424Smrg} 456217ca54c3Smrg_ACEOF 4563ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4564ffe57424Smrgthen : 456517ca54c3Smrg 4566ffe57424Smrgelse $as_nop 4567ffe57424Smrg # This test program should compile successfully. 4568ffe57424Smrg # No library function is consistently available on 4569ffe57424Smrg # freestanding implementations, so test against a dummy 4570ffe57424Smrg # declaration. Include always-available headers on the 4571ffe57424Smrg # off chance that they somehow elicit warnings. 4572ffe57424Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 457317ca54c3Smrg/* end confdefs.h. */ 4574ffe57424Smrg#include <float.h> 4575ffe57424Smrg#include <limits.h> 4576ffe57424Smrg#include <stdarg.h> 4577ffe57424Smrg#include <stddef.h> 4578ffe57424Smrgextern void ac_decl (int, char *); 457917ca54c3Smrg 458017ca54c3Smrgint 4581ffe57424Smrgmain (void) 458217ca54c3Smrg{ 4583ffe57424Smrg(void) ac_decl (0, (char *) 0); 4584ffe57424Smrg (void) ac_decl; 4585ffe57424Smrg 4586ffe57424Smrg ; 458717ca54c3Smrg return 0; 458817ca54c3Smrg} 458917ca54c3Smrg_ACEOF 4590ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 4591ffe57424Smrgthen : 4592ffe57424Smrg if test x"$ac_arg" = x 4593ffe57424Smrgthen : 4594ffe57424Smrg ac_cv_c_undeclared_builtin_options='none needed' 4595ffe57424Smrgelse $as_nop 4596ffe57424Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 459717ca54c3Smrgfi 4598ffe57424Smrg break 459917ca54c3Smrgfi 4600ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 460117ca54c3Smrgfi 4602ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4603ffe57424Smrg done 4604ffe57424Smrg CFLAGS=$ac_save_CFLAGS 4605ffe57424Smrg 4606ffe57424Smrgfi 4607ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4608ffe57424Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4609ffe57424Smrg case $ac_cv_c_undeclared_builtin_options in #( 4610ffe57424Smrg 'cannot detect') : 4611ffe57424Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4612ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4613ffe57424Smrgas_fn_error $? "cannot make $CC report undeclared builtins 4614ffe57424SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 4615ffe57424Smrg 'none needed') : 4616ffe57424Smrg ac_c_undeclared_builtin_options='' ;; #( 4617ffe57424Smrg *) : 4618ffe57424Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4619ffe57424Smrgesac 4620ffe57424Smrg 4621ffe57424Smrgac_header= ac_cache= 4622ffe57424Smrgfor ac_item in $ac_header_c_list 4623ffe57424Smrgdo 4624ffe57424Smrg if test $ac_cache; then 4625ffe57424Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4626ffe57424Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4627ffe57424Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 4628ffe57424Smrg fi 4629ffe57424Smrg ac_header= ac_cache= 4630ffe57424Smrg elif test $ac_header; then 4631ffe57424Smrg ac_cache=$ac_item 4632ffe57424Smrg else 4633ffe57424Smrg ac_header=$ac_item 4634ffe57424Smrg fi 4635ffe57424Smrgdone 4636ffe57424Smrg 463717ca54c3Smrg 463817ca54c3Smrg 463917ca54c3Smrg 464017ca54c3Smrg 464117ca54c3Smrg 464217ca54c3Smrg 464317ca54c3Smrg 4644ffe57424Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4645ffe57424Smrgthen : 464617ca54c3Smrg 4647ffe57424Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4648ffe57424Smrg 4649ffe57424Smrgfi 465017ca54c3Smrg 465117ca54c3Smrg 465217ca54c3Smrg 4653ffe57424Smrg 4654ffe57424Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4655ffe57424Smrgif test "x$ac_cv_have_decl___clang__" = xyes 4656ffe57424Smrgthen : 465717ca54c3Smrg CLANGCC="yes" 4658ffe57424Smrgelse $as_nop 465917ca54c3Smrg CLANGCC="no" 466017ca54c3Smrgfi 4661ffe57424Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4662ffe57424Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4663ffe57424Smrgthen : 466417ca54c3Smrg INTELCC="yes" 4665ffe57424Smrgelse $as_nop 466617ca54c3Smrg INTELCC="no" 466717ca54c3Smrgfi 4668ffe57424Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4669ffe57424Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4670ffe57424Smrgthen : 467117ca54c3Smrg SUNCC="yes" 4672ffe57424Smrgelse $as_nop 467317ca54c3Smrg SUNCC="no" 467417ca54c3Smrgfi 467517ca54c3Smrg 467617ca54c3Smrg 467717ca54c3Smrg 467817ca54c3Smrg 467917ca54c3Smrg 468017ca54c3Smrg 468117ca54c3Smrg 468217ca54c3Smrg 468317ca54c3Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 468417ca54c3Smrg if test -n "$ac_tool_prefix"; then 468517ca54c3Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 468617ca54c3Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4687ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4688ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 4689ffe57424Smrgif test ${ac_cv_path_PKG_CONFIG+y} 4690ffe57424Smrgthen : 4691ffe57424Smrg printf %s "(cached) " >&6 4692ffe57424Smrgelse $as_nop 469317ca54c3Smrg case $PKG_CONFIG in 469417ca54c3Smrg [\\/]* | ?:[\\/]*) 469517ca54c3Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 469617ca54c3Smrg ;; 469717ca54c3Smrg *) 469817ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 469917ca54c3Smrgfor as_dir in $PATH 470017ca54c3Smrgdo 470117ca54c3Smrg IFS=$as_save_IFS 4702ffe57424Smrg case $as_dir in #((( 4703ffe57424Smrg '') as_dir=./ ;; 4704ffe57424Smrg */) ;; 4705ffe57424Smrg *) as_dir=$as_dir/ ;; 4706ffe57424Smrg esac 470717ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4708ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4709ffe57424Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4710ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 471117ca54c3Smrg break 2 471217ca54c3Smrg fi 471317ca54c3Smrgdone 471417ca54c3Smrg done 471517ca54c3SmrgIFS=$as_save_IFS 471617ca54c3Smrg 471717ca54c3Smrg ;; 471817ca54c3Smrgesac 471917ca54c3Smrgfi 472017ca54c3SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 472117ca54c3Smrgif test -n "$PKG_CONFIG"; then 4722ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4723ffe57424Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 472417ca54c3Smrgelse 4725ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4726ffe57424Smrgprintf "%s\n" "no" >&6; } 472717ca54c3Smrgfi 472817ca54c3Smrg 472917ca54c3Smrg 473017ca54c3Smrgfi 473117ca54c3Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 473217ca54c3Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 473317ca54c3Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 473417ca54c3Smrgset dummy pkg-config; ac_word=$2 4735ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4736ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 4737ffe57424Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4738ffe57424Smrgthen : 4739ffe57424Smrg printf %s "(cached) " >&6 4740ffe57424Smrgelse $as_nop 474117ca54c3Smrg case $ac_pt_PKG_CONFIG in 474217ca54c3Smrg [\\/]* | ?:[\\/]*) 474317ca54c3Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 474417ca54c3Smrg ;; 474517ca54c3Smrg *) 474617ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 474717ca54c3Smrgfor as_dir in $PATH 474817ca54c3Smrgdo 474917ca54c3Smrg IFS=$as_save_IFS 4750ffe57424Smrg case $as_dir in #((( 4751ffe57424Smrg '') as_dir=./ ;; 4752ffe57424Smrg */) ;; 4753ffe57424Smrg *) as_dir=$as_dir/ ;; 4754ffe57424Smrg esac 475517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4756ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4757ffe57424Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4758ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 475917ca54c3Smrg break 2 476017ca54c3Smrg fi 476117ca54c3Smrgdone 476217ca54c3Smrg done 476317ca54c3SmrgIFS=$as_save_IFS 476417ca54c3Smrg 476517ca54c3Smrg ;; 476617ca54c3Smrgesac 476717ca54c3Smrgfi 476817ca54c3Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 476917ca54c3Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4770ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4771ffe57424Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 477217ca54c3Smrgelse 4773ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774ffe57424Smrgprintf "%s\n" "no" >&6; } 477517ca54c3Smrgfi 477617ca54c3Smrg 477717ca54c3Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 477817ca54c3Smrg PKG_CONFIG="" 477917ca54c3Smrg else 478017ca54c3Smrg case $cross_compiling:$ac_tool_warned in 478117ca54c3Smrgyes:) 4782ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4783ffe57424Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 478417ca54c3Smrgac_tool_warned=yes ;; 478517ca54c3Smrgesac 478617ca54c3Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 478717ca54c3Smrg fi 478817ca54c3Smrgelse 478917ca54c3Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 479017ca54c3Smrgfi 479117ca54c3Smrg 479217ca54c3Smrgfi 479317ca54c3Smrgif test -n "$PKG_CONFIG"; then 479417ca54c3Smrg _pkg_min_version=0.9.0 4795ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4796ffe57424Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 479717ca54c3Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4798ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4799ffe57424Smrgprintf "%s\n" "yes" >&6; } 480017ca54c3Smrg else 4801ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4802ffe57424Smrgprintf "%s\n" "no" >&6; } 480317ca54c3Smrg PKG_CONFIG="" 480417ca54c3Smrg fi 480517ca54c3Smrgfi 480617ca54c3Smrg 4807ffe57424Smrg 4808ffe57424Smrg # Make sure we can run config.sub. 4809ffe57424Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4810ffe57424Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4811ffe57424Smrg 4812ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4813ffe57424Smrgprintf %s "checking build system type... " >&6; } 4814ffe57424Smrgif test ${ac_cv_build+y} 4815ffe57424Smrgthen : 4816ffe57424Smrg printf %s "(cached) " >&6 4817ffe57424Smrgelse $as_nop 481817ca54c3Smrg ac_build_alias=$build_alias 481917ca54c3Smrgtest "x$ac_build_alias" = x && 4820ffe57424Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 482117ca54c3Smrgtest "x$ac_build_alias" = x && 482217ca54c3Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4823ffe57424Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4824ffe57424Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 482517ca54c3Smrg 482617ca54c3Smrgfi 4827ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4828ffe57424Smrgprintf "%s\n" "$ac_cv_build" >&6; } 482917ca54c3Smrgcase $ac_cv_build in 483017ca54c3Smrg*-*-*) ;; 483117ca54c3Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 483217ca54c3Smrgesac 483317ca54c3Smrgbuild=$ac_cv_build 483417ca54c3Smrgac_save_IFS=$IFS; IFS='-' 483517ca54c3Smrgset x $ac_cv_build 483617ca54c3Smrgshift 483717ca54c3Smrgbuild_cpu=$1 483817ca54c3Smrgbuild_vendor=$2 483917ca54c3Smrgshift; shift 484017ca54c3Smrg# Remember, the first character of IFS is used to create $*, 484117ca54c3Smrg# except with old shells: 484217ca54c3Smrgbuild_os=$* 484317ca54c3SmrgIFS=$ac_save_IFS 484417ca54c3Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 484517ca54c3Smrg 484617ca54c3Smrg 4847ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4848ffe57424Smrgprintf %s "checking host system type... " >&6; } 4849ffe57424Smrgif test ${ac_cv_host+y} 4850ffe57424Smrgthen : 4851ffe57424Smrg printf %s "(cached) " >&6 4852ffe57424Smrgelse $as_nop 485317ca54c3Smrg if test "x$host_alias" = x; then 485417ca54c3Smrg ac_cv_host=$ac_cv_build 485517ca54c3Smrgelse 4856ffe57424Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4857ffe57424Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 485817ca54c3Smrgfi 485917ca54c3Smrg 486017ca54c3Smrgfi 4861ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4862ffe57424Smrgprintf "%s\n" "$ac_cv_host" >&6; } 486317ca54c3Smrgcase $ac_cv_host in 486417ca54c3Smrg*-*-*) ;; 486517ca54c3Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 486617ca54c3Smrgesac 486717ca54c3Smrghost=$ac_cv_host 486817ca54c3Smrgac_save_IFS=$IFS; IFS='-' 486917ca54c3Smrgset x $ac_cv_host 487017ca54c3Smrgshift 487117ca54c3Smrghost_cpu=$1 487217ca54c3Smrghost_vendor=$2 487317ca54c3Smrgshift; shift 487417ca54c3Smrg# Remember, the first character of IFS is used to create $*, 487517ca54c3Smrg# except with old shells: 487617ca54c3Smrghost_os=$* 487717ca54c3SmrgIFS=$ac_save_IFS 487817ca54c3Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 487917ca54c3Smrg 488017ca54c3Smrg 4881ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4882ffe57424Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4883ffe57424Smrgif test ${ac_cv_path_SED+y} 4884ffe57424Smrgthen : 4885ffe57424Smrg printf %s "(cached) " >&6 4886ffe57424Smrgelse $as_nop 488717ca54c3Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 488817ca54c3Smrg for ac_i in 1 2 3 4 5 6 7; do 488917ca54c3Smrg ac_script="$ac_script$as_nl$ac_script" 489017ca54c3Smrg done 489117ca54c3Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 489217ca54c3Smrg { ac_script=; unset ac_script;} 489317ca54c3Smrg if test -z "$SED"; then 489417ca54c3Smrg ac_path_SED_found=false 489517ca54c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 489617ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 489717ca54c3Smrgfor as_dir in $PATH 489817ca54c3Smrgdo 489917ca54c3Smrg IFS=$as_save_IFS 4900ffe57424Smrg case $as_dir in #((( 4901ffe57424Smrg '') as_dir=./ ;; 4902ffe57424Smrg */) ;; 4903ffe57424Smrg *) as_dir=$as_dir/ ;; 4904ffe57424Smrg esac 4905ffe57424Smrg for ac_prog in sed gsed 4906ffe57424Smrg do 490717ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4908ffe57424Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 490917ca54c3Smrg as_fn_executable_p "$ac_path_SED" || continue 491017ca54c3Smrg# Check for GNU ac_path_SED and select it if it is found. 491117ca54c3Smrg # Check for GNU $ac_path_SED 491217ca54c3Smrgcase `"$ac_path_SED" --version 2>&1` in 491317ca54c3Smrg*GNU*) 491417ca54c3Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 491517ca54c3Smrg*) 491617ca54c3Smrg ac_count=0 4917ffe57424Smrg printf %s 0123456789 >"conftest.in" 491817ca54c3Smrg while : 491917ca54c3Smrg do 492017ca54c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 492117ca54c3Smrg mv "conftest.tmp" "conftest.in" 492217ca54c3Smrg cp "conftest.in" "conftest.nl" 4923ffe57424Smrg printf "%s\n" '' >> "conftest.nl" 492417ca54c3Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 492517ca54c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 492617ca54c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 492717ca54c3Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 492817ca54c3Smrg # Best one so far, save it but keep looking for a better one 492917ca54c3Smrg ac_cv_path_SED="$ac_path_SED" 493017ca54c3Smrg ac_path_SED_max=$ac_count 493117ca54c3Smrg fi 493217ca54c3Smrg # 10*(2^10) chars as input seems more than enough 493317ca54c3Smrg test $ac_count -gt 10 && break 493417ca54c3Smrg done 493517ca54c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 493617ca54c3Smrgesac 493717ca54c3Smrg 493817ca54c3Smrg $ac_path_SED_found && break 3 493917ca54c3Smrg done 494017ca54c3Smrg done 494117ca54c3Smrg done 494217ca54c3SmrgIFS=$as_save_IFS 494317ca54c3Smrg if test -z "$ac_cv_path_SED"; then 494417ca54c3Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 494517ca54c3Smrg fi 494617ca54c3Smrgelse 494717ca54c3Smrg ac_cv_path_SED=$SED 494817ca54c3Smrgfi 494917ca54c3Smrg 495017ca54c3Smrgfi 4951ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4952ffe57424Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 495317ca54c3Smrg SED="$ac_cv_path_SED" 495417ca54c3Smrg rm -f conftest.sed 495517ca54c3Smrg 495617ca54c3Smrg 495717ca54c3Smrg 495817ca54c3Smrg 495917ca54c3Smrg 496017ca54c3Smrg 496117ca54c3Smrg# Check whether --enable-selective-werror was given. 4962ffe57424Smrgif test ${enable_selective_werror+y} 4963ffe57424Smrgthen : 496417ca54c3Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4965ffe57424Smrgelse $as_nop 496617ca54c3Smrg SELECTIVE_WERROR=yes 496717ca54c3Smrgfi 496817ca54c3Smrg 496917ca54c3Smrg 497017ca54c3Smrg 497117ca54c3Smrg 497217ca54c3Smrg 497317ca54c3Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 497417ca54c3Smrgif test "x$SUNCC" = "xyes"; then 497517ca54c3Smrg BASE_CFLAGS="-v" 497617ca54c3Smrgelse 497717ca54c3Smrg BASE_CFLAGS="" 497817ca54c3Smrgfi 497917ca54c3Smrg 498017ca54c3Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 498117ca54c3Smrg 498217ca54c3Smrg 498317ca54c3Smrg 498417ca54c3Smrg 498517ca54c3Smrg 498617ca54c3Smrg 498717ca54c3Smrg 498817ca54c3Smrg 498917ca54c3Smrg 499017ca54c3Smrg 499117ca54c3Smrg 499217ca54c3Smrg 499317ca54c3Smrg 499417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 499517ca54c3Smrg 499617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 499717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4998ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4999ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5000ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5001ffe57424Smrgthen : 5002ffe57424Smrg printf %s "(cached) " >&6 5003ffe57424Smrgelse $as_nop 500417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 500517ca54c3Smrg/* end confdefs.h. */ 500617ca54c3Smrgint i; 500717ca54c3Smrg_ACEOF 5008ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5009ffe57424Smrgthen : 501017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5011ffe57424Smrgelse $as_nop 501217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 501317ca54c3Smrgfi 5014ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 501517ca54c3Smrgfi 5016ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5017ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 501817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 501917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 502017ca54c3Smrgfi 502117ca54c3Smrg 502217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 502317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 502417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 502517ca54c3Smrg fi 502617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5027ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5028ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5029ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5030ffe57424Smrgthen : 5031ffe57424Smrg printf %s "(cached) " >&6 5032ffe57424Smrgelse $as_nop 503317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 503417ca54c3Smrg/* end confdefs.h. */ 503517ca54c3Smrgint i; 503617ca54c3Smrg_ACEOF 5037ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5038ffe57424Smrgthen : 503917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5040ffe57424Smrgelse $as_nop 504117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 504217ca54c3Smrgfi 5043ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 504417ca54c3Smrgfi 5045ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5046ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 504717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 504817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 504917ca54c3Smrgfi 505017ca54c3Smrg 505117ca54c3Smrgfound="no" 505217ca54c3Smrg 505317ca54c3Smrg if test $found = "no" ; then 505417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 505517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 505617ca54c3Smrg fi 505717ca54c3Smrg 505817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 505917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 506017ca54c3Smrg fi 506117ca54c3Smrg 506217ca54c3Smrg CFLAGS="$CFLAGS -Wall" 506317ca54c3Smrg 5064ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5065ffe57424Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 506617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wall 5067ffe57424Smrg if eval test \${$cacheid+y} 5068ffe57424Smrgthen : 5069ffe57424Smrg printf %s "(cached) " >&6 5070ffe57424Smrgelse $as_nop 507117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 507217ca54c3Smrg/* end confdefs.h. */ 507317ca54c3Smrgint i; 507417ca54c3Smrgint 5075ffe57424Smrgmain (void) 507617ca54c3Smrg{ 507717ca54c3Smrg 507817ca54c3Smrg ; 507917ca54c3Smrg return 0; 508017ca54c3Smrg} 508117ca54c3Smrg_ACEOF 5082ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5083ffe57424Smrgthen : 508417ca54c3Smrg eval $cacheid=yes 5085ffe57424Smrgelse $as_nop 508617ca54c3Smrg eval $cacheid=no 508717ca54c3Smrgfi 5088ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 508917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 509017ca54c3Smrgfi 509117ca54c3Smrg 509217ca54c3Smrg 509317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 509417ca54c3Smrg 509517ca54c3Smrg eval supported=\$$cacheid 5096ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5097ffe57424Smrgprintf "%s\n" "$supported" >&6; } 509817ca54c3Smrg if test "$supported" = "yes" ; then 509917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 510017ca54c3Smrg found="yes" 510117ca54c3Smrg fi 510217ca54c3Smrg fi 510317ca54c3Smrg 510417ca54c3Smrg 510517ca54c3Smrg 510617ca54c3Smrg 510717ca54c3Smrg 510817ca54c3Smrg 510917ca54c3Smrg 511017ca54c3Smrg 511117ca54c3Smrg 511217ca54c3Smrg 511317ca54c3Smrg 511417ca54c3Smrg 511517ca54c3Smrg 511617ca54c3Smrg 511717ca54c3Smrg 511817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 511917ca54c3Smrg 512017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 512117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5122ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5123ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5124ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5125ffe57424Smrgthen : 5126ffe57424Smrg printf %s "(cached) " >&6 5127ffe57424Smrgelse $as_nop 512817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 512917ca54c3Smrg/* end confdefs.h. */ 513017ca54c3Smrgint i; 513117ca54c3Smrg_ACEOF 5132ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5133ffe57424Smrgthen : 513417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5135ffe57424Smrgelse $as_nop 513617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 513717ca54c3Smrgfi 5138ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 513917ca54c3Smrgfi 5140ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5141ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 514217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 514317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 514417ca54c3Smrgfi 514517ca54c3Smrg 514617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 514717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 514817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 514917ca54c3Smrg fi 515017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5152ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5153ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5154ffe57424Smrgthen : 5155ffe57424Smrg printf %s "(cached) " >&6 5156ffe57424Smrgelse $as_nop 515717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 515817ca54c3Smrg/* end confdefs.h. */ 515917ca54c3Smrgint i; 516017ca54c3Smrg_ACEOF 5161ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5162ffe57424Smrgthen : 516317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5164ffe57424Smrgelse $as_nop 516517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 516617ca54c3Smrgfi 5167ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 516817ca54c3Smrgfi 5169ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5170ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 517117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 517217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 517317ca54c3Smrgfi 517417ca54c3Smrg 517517ca54c3Smrgfound="no" 517617ca54c3Smrg 517717ca54c3Smrg if test $found = "no" ; then 517817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 517917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 518017ca54c3Smrg fi 518117ca54c3Smrg 518217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 518317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 518417ca54c3Smrg fi 518517ca54c3Smrg 518617ca54c3Smrg CFLAGS="$CFLAGS -Wpointer-arith" 518717ca54c3Smrg 5188ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5189ffe57424Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 519017ca54c3Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5191ffe57424Smrg if eval test \${$cacheid+y} 5192ffe57424Smrgthen : 5193ffe57424Smrg printf %s "(cached) " >&6 5194ffe57424Smrgelse $as_nop 519517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 519617ca54c3Smrg/* end confdefs.h. */ 519717ca54c3Smrgint i; 519817ca54c3Smrgint 5199ffe57424Smrgmain (void) 520017ca54c3Smrg{ 520117ca54c3Smrg 520217ca54c3Smrg ; 520317ca54c3Smrg return 0; 520417ca54c3Smrg} 520517ca54c3Smrg_ACEOF 5206ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5207ffe57424Smrgthen : 520817ca54c3Smrg eval $cacheid=yes 5209ffe57424Smrgelse $as_nop 521017ca54c3Smrg eval $cacheid=no 521117ca54c3Smrgfi 5212ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 521317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 521417ca54c3Smrgfi 521517ca54c3Smrg 521617ca54c3Smrg 521717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 521817ca54c3Smrg 521917ca54c3Smrg eval supported=\$$cacheid 5220ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5221ffe57424Smrgprintf "%s\n" "$supported" >&6; } 522217ca54c3Smrg if test "$supported" = "yes" ; then 522317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 522417ca54c3Smrg found="yes" 522517ca54c3Smrg fi 522617ca54c3Smrg fi 522717ca54c3Smrg 522817ca54c3Smrg 522917ca54c3Smrg 523017ca54c3Smrg 523117ca54c3Smrg 523217ca54c3Smrg 523317ca54c3Smrg 523417ca54c3Smrg 523517ca54c3Smrg 523617ca54c3Smrg 523717ca54c3Smrg 523817ca54c3Smrg 523917ca54c3Smrg 524017ca54c3Smrg 524117ca54c3Smrg 524217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 524317ca54c3Smrg 524417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 524517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5246ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5247ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5248ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5249ffe57424Smrgthen : 5250ffe57424Smrg printf %s "(cached) " >&6 5251ffe57424Smrgelse $as_nop 525217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525317ca54c3Smrg/* end confdefs.h. */ 525417ca54c3Smrgint i; 525517ca54c3Smrg_ACEOF 5256ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5257ffe57424Smrgthen : 525817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5259ffe57424Smrgelse $as_nop 526017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 526117ca54c3Smrgfi 5262ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 526317ca54c3Smrgfi 5264ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5265ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 526617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 526717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 526817ca54c3Smrgfi 526917ca54c3Smrg 527017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 527117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 527217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 527317ca54c3Smrg fi 527417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5275ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5276ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5277ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5278ffe57424Smrgthen : 5279ffe57424Smrg printf %s "(cached) " >&6 5280ffe57424Smrgelse $as_nop 528117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 528217ca54c3Smrg/* end confdefs.h. */ 528317ca54c3Smrgint i; 528417ca54c3Smrg_ACEOF 5285ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5286ffe57424Smrgthen : 528717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5288ffe57424Smrgelse $as_nop 528917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 529017ca54c3Smrgfi 5291ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 529217ca54c3Smrgfi 5293ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5294ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 529517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 529617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 529717ca54c3Smrgfi 529817ca54c3Smrg 529917ca54c3Smrgfound="no" 530017ca54c3Smrg 530117ca54c3Smrg if test $found = "no" ; then 530217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 530317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 530417ca54c3Smrg fi 530517ca54c3Smrg 530617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 530717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 530817ca54c3Smrg fi 530917ca54c3Smrg 531017ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 531117ca54c3Smrg 5312ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5313ffe57424Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 531417ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5315ffe57424Smrg if eval test \${$cacheid+y} 5316ffe57424Smrgthen : 5317ffe57424Smrg printf %s "(cached) " >&6 5318ffe57424Smrgelse $as_nop 531917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 532017ca54c3Smrg/* end confdefs.h. */ 532117ca54c3Smrgint i; 532217ca54c3Smrgint 5323ffe57424Smrgmain (void) 532417ca54c3Smrg{ 532517ca54c3Smrg 532617ca54c3Smrg ; 532717ca54c3Smrg return 0; 532817ca54c3Smrg} 532917ca54c3Smrg_ACEOF 5330ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5331ffe57424Smrgthen : 533217ca54c3Smrg eval $cacheid=yes 5333ffe57424Smrgelse $as_nop 533417ca54c3Smrg eval $cacheid=no 533517ca54c3Smrgfi 5336ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 533717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 533817ca54c3Smrgfi 533917ca54c3Smrg 534017ca54c3Smrg 534117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 534217ca54c3Smrg 534317ca54c3Smrg eval supported=\$$cacheid 5344ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345ffe57424Smrgprintf "%s\n" "$supported" >&6; } 534617ca54c3Smrg if test "$supported" = "yes" ; then 534717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 534817ca54c3Smrg found="yes" 534917ca54c3Smrg fi 535017ca54c3Smrg fi 535117ca54c3Smrg 535217ca54c3Smrg 535317ca54c3Smrg 535417ca54c3Smrg 535517ca54c3Smrg 535617ca54c3Smrg 535717ca54c3Smrg 535817ca54c3Smrg 535917ca54c3Smrg 536017ca54c3Smrg 536117ca54c3Smrg 536217ca54c3Smrg 536317ca54c3Smrg 536417ca54c3Smrg 536517ca54c3Smrg 536617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 536717ca54c3Smrg 536817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 536917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5371ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5372ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5373ffe57424Smrgthen : 5374ffe57424Smrg printf %s "(cached) " >&6 5375ffe57424Smrgelse $as_nop 537617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 537717ca54c3Smrg/* end confdefs.h. */ 537817ca54c3Smrgint i; 537917ca54c3Smrg_ACEOF 5380ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5381ffe57424Smrgthen : 538217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5383ffe57424Smrgelse $as_nop 538417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 538517ca54c3Smrgfi 5386ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 538717ca54c3Smrgfi 5388ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5389ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 539017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 539117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 539217ca54c3Smrgfi 539317ca54c3Smrg 539417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 539517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 539617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 539717ca54c3Smrg fi 539817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5399ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5400ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5401ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5402ffe57424Smrgthen : 5403ffe57424Smrg printf %s "(cached) " >&6 5404ffe57424Smrgelse $as_nop 540517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 540617ca54c3Smrg/* end confdefs.h. */ 540717ca54c3Smrgint i; 540817ca54c3Smrg_ACEOF 5409ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5410ffe57424Smrgthen : 541117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5412ffe57424Smrgelse $as_nop 541317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 541417ca54c3Smrgfi 5415ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 541617ca54c3Smrgfi 5417ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5418ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 541917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 542017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 542117ca54c3Smrgfi 542217ca54c3Smrg 542317ca54c3Smrgfound="no" 542417ca54c3Smrg 542517ca54c3Smrg if test $found = "no" ; then 542617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 542717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 542817ca54c3Smrg fi 542917ca54c3Smrg 543017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 543117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 543217ca54c3Smrg fi 543317ca54c3Smrg 543417ca54c3Smrg CFLAGS="$CFLAGS -Wformat=2" 543517ca54c3Smrg 5436ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5437ffe57424Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 543817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wformat_2 5439ffe57424Smrg if eval test \${$cacheid+y} 5440ffe57424Smrgthen : 5441ffe57424Smrg printf %s "(cached) " >&6 5442ffe57424Smrgelse $as_nop 544317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 544417ca54c3Smrg/* end confdefs.h. */ 544517ca54c3Smrgint i; 544617ca54c3Smrgint 5447ffe57424Smrgmain (void) 544817ca54c3Smrg{ 544917ca54c3Smrg 545017ca54c3Smrg ; 545117ca54c3Smrg return 0; 545217ca54c3Smrg} 545317ca54c3Smrg_ACEOF 5454ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5455ffe57424Smrgthen : 545617ca54c3Smrg eval $cacheid=yes 5457ffe57424Smrgelse $as_nop 545817ca54c3Smrg eval $cacheid=no 545917ca54c3Smrgfi 5460ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 546117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 546217ca54c3Smrgfi 546317ca54c3Smrg 546417ca54c3Smrg 546517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546617ca54c3Smrg 546717ca54c3Smrg eval supported=\$$cacheid 5468ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5469ffe57424Smrgprintf "%s\n" "$supported" >&6; } 547017ca54c3Smrg if test "$supported" = "yes" ; then 547117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 547217ca54c3Smrg found="yes" 547317ca54c3Smrg fi 547417ca54c3Smrg fi 547517ca54c3Smrg 547617ca54c3Smrg if test $found = "no" ; then 547717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 547817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 547917ca54c3Smrg fi 548017ca54c3Smrg 548117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 548217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 548317ca54c3Smrg fi 548417ca54c3Smrg 548517ca54c3Smrg CFLAGS="$CFLAGS -Wformat" 548617ca54c3Smrg 5487ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5488ffe57424Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 548917ca54c3Smrg cacheid=xorg_cv_cc_flag__Wformat 5490ffe57424Smrg if eval test \${$cacheid+y} 5491ffe57424Smrgthen : 5492ffe57424Smrg printf %s "(cached) " >&6 5493ffe57424Smrgelse $as_nop 549417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 549517ca54c3Smrg/* end confdefs.h. */ 549617ca54c3Smrgint i; 549717ca54c3Smrgint 5498ffe57424Smrgmain (void) 549917ca54c3Smrg{ 550017ca54c3Smrg 550117ca54c3Smrg ; 550217ca54c3Smrg return 0; 550317ca54c3Smrg} 550417ca54c3Smrg_ACEOF 5505ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5506ffe57424Smrgthen : 550717ca54c3Smrg eval $cacheid=yes 5508ffe57424Smrgelse $as_nop 550917ca54c3Smrg eval $cacheid=no 551017ca54c3Smrgfi 5511ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 551217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 551317ca54c3Smrgfi 551417ca54c3Smrg 551517ca54c3Smrg 551617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 551717ca54c3Smrg 551817ca54c3Smrg eval supported=\$$cacheid 5519ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5520ffe57424Smrgprintf "%s\n" "$supported" >&6; } 552117ca54c3Smrg if test "$supported" = "yes" ; then 552217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 552317ca54c3Smrg found="yes" 552417ca54c3Smrg fi 552517ca54c3Smrg fi 552617ca54c3Smrg 552717ca54c3Smrg 552817ca54c3Smrg 552917ca54c3Smrg 553017ca54c3Smrg 553117ca54c3Smrg 553217ca54c3Smrg 553317ca54c3Smrg 553417ca54c3Smrg 553517ca54c3Smrg 553617ca54c3Smrg 553717ca54c3Smrg 553817ca54c3Smrg 553917ca54c3Smrg 554017ca54c3Smrg 554117ca54c3Smrg 554217ca54c3Smrg 554317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 554417ca54c3Smrg 554517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 554617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5548ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5549ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5550ffe57424Smrgthen : 5551ffe57424Smrg printf %s "(cached) " >&6 5552ffe57424Smrgelse $as_nop 555317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 555417ca54c3Smrg/* end confdefs.h. */ 555517ca54c3Smrgint i; 555617ca54c3Smrg_ACEOF 5557ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5558ffe57424Smrgthen : 555917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5560ffe57424Smrgelse $as_nop 556117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 556217ca54c3Smrgfi 5563ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 556417ca54c3Smrgfi 5565ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5566ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 556717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 556817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 556917ca54c3Smrgfi 557017ca54c3Smrg 557117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 557217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 557317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 557417ca54c3Smrg fi 557517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5576ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5577ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5578ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5579ffe57424Smrgthen : 5580ffe57424Smrg printf %s "(cached) " >&6 5581ffe57424Smrgelse $as_nop 558217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 558317ca54c3Smrg/* end confdefs.h. */ 558417ca54c3Smrgint i; 558517ca54c3Smrg_ACEOF 5586ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5587ffe57424Smrgthen : 558817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5589ffe57424Smrgelse $as_nop 559017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 559117ca54c3Smrgfi 5592ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 559317ca54c3Smrgfi 5594ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5595ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 559617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 559717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 559817ca54c3Smrgfi 559917ca54c3Smrg 560017ca54c3Smrgfound="no" 560117ca54c3Smrg 560217ca54c3Smrg if test $found = "no" ; then 560317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 560417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 560517ca54c3Smrg fi 560617ca54c3Smrg 560717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 560817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 560917ca54c3Smrg fi 561017ca54c3Smrg 561117ca54c3Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 561217ca54c3Smrg 5613ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5614ffe57424Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 561517ca54c3Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5616ffe57424Smrg if eval test \${$cacheid+y} 5617ffe57424Smrgthen : 5618ffe57424Smrg printf %s "(cached) " >&6 5619ffe57424Smrgelse $as_nop 562017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 562117ca54c3Smrg/* end confdefs.h. */ 562217ca54c3Smrgint i; 562317ca54c3Smrgint 5624ffe57424Smrgmain (void) 562517ca54c3Smrg{ 562617ca54c3Smrg 562717ca54c3Smrg ; 562817ca54c3Smrg return 0; 562917ca54c3Smrg} 563017ca54c3Smrg_ACEOF 5631ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5632ffe57424Smrgthen : 563317ca54c3Smrg eval $cacheid=yes 5634ffe57424Smrgelse $as_nop 563517ca54c3Smrg eval $cacheid=no 563617ca54c3Smrgfi 5637ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 563817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 563917ca54c3Smrgfi 564017ca54c3Smrg 564117ca54c3Smrg 564217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 564317ca54c3Smrg 564417ca54c3Smrg eval supported=\$$cacheid 5645ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5646ffe57424Smrgprintf "%s\n" "$supported" >&6; } 564717ca54c3Smrg if test "$supported" = "yes" ; then 564817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 564917ca54c3Smrg found="yes" 565017ca54c3Smrg fi 565117ca54c3Smrg fi 565217ca54c3Smrg 565317ca54c3Smrg 565417ca54c3Smrg 565517ca54c3Smrg 565617ca54c3Smrg 565717ca54c3Smrg 565817ca54c3Smrg 565917ca54c3Smrg 566017ca54c3Smrg 566117ca54c3Smrg 566217ca54c3Smrg 566317ca54c3Smrg 566417ca54c3Smrg 566517ca54c3Smrg 566617ca54c3Smrg 566717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 566817ca54c3Smrg 566917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 567017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5671ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5672ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5673ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5674ffe57424Smrgthen : 5675ffe57424Smrg printf %s "(cached) " >&6 5676ffe57424Smrgelse $as_nop 567717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 567817ca54c3Smrg/* end confdefs.h. */ 567917ca54c3Smrgint i; 568017ca54c3Smrg_ACEOF 5681ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5682ffe57424Smrgthen : 568317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5684ffe57424Smrgelse $as_nop 568517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 568617ca54c3Smrgfi 5687ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 568817ca54c3Smrgfi 5689ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5690ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 569117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 569217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 569317ca54c3Smrgfi 569417ca54c3Smrg 569517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 569617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 569717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 569817ca54c3Smrg fi 569917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5701ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5702ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5703ffe57424Smrgthen : 5704ffe57424Smrg printf %s "(cached) " >&6 5705ffe57424Smrgelse $as_nop 570617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 570717ca54c3Smrg/* end confdefs.h. */ 570817ca54c3Smrgint i; 570917ca54c3Smrg_ACEOF 5710ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5711ffe57424Smrgthen : 571217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5713ffe57424Smrgelse $as_nop 571417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 571517ca54c3Smrgfi 5716ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 571717ca54c3Smrgfi 5718ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5719ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 572017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 572117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 572217ca54c3Smrgfi 572317ca54c3Smrg 572417ca54c3Smrgfound="no" 572517ca54c3Smrg 572617ca54c3Smrg if test $found = "no" ; then 572717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 572817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 572917ca54c3Smrg fi 573017ca54c3Smrg 573117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 573217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 573317ca54c3Smrg fi 573417ca54c3Smrg 573517ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 573617ca54c3Smrg 5737ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5738ffe57424Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 573917ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5740ffe57424Smrg if eval test \${$cacheid+y} 5741ffe57424Smrgthen : 5742ffe57424Smrg printf %s "(cached) " >&6 5743ffe57424Smrgelse $as_nop 574417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 574517ca54c3Smrg/* end confdefs.h. */ 574617ca54c3Smrgint i; 574717ca54c3Smrgint 5748ffe57424Smrgmain (void) 574917ca54c3Smrg{ 575017ca54c3Smrg 575117ca54c3Smrg ; 575217ca54c3Smrg return 0; 575317ca54c3Smrg} 575417ca54c3Smrg_ACEOF 5755ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5756ffe57424Smrgthen : 575717ca54c3Smrg eval $cacheid=yes 5758ffe57424Smrgelse $as_nop 575917ca54c3Smrg eval $cacheid=no 576017ca54c3Smrgfi 5761ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 576217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 576317ca54c3Smrgfi 576417ca54c3Smrg 576517ca54c3Smrg 576617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 576717ca54c3Smrg 576817ca54c3Smrg eval supported=\$$cacheid 5769ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5770ffe57424Smrgprintf "%s\n" "$supported" >&6; } 577117ca54c3Smrg if test "$supported" = "yes" ; then 577217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 577317ca54c3Smrg found="yes" 577417ca54c3Smrg fi 577517ca54c3Smrg fi 577617ca54c3Smrg 577717ca54c3Smrg 577817ca54c3Smrg 577917ca54c3Smrg 578017ca54c3Smrg 578117ca54c3Smrg 578217ca54c3Smrg 578317ca54c3Smrg 578417ca54c3Smrg 578517ca54c3Smrg 578617ca54c3Smrg 578717ca54c3Smrg 578817ca54c3Smrg 578917ca54c3Smrg 579017ca54c3Smrg 579117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 579217ca54c3Smrg 579317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 579417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5795ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5796ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5797ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5798ffe57424Smrgthen : 5799ffe57424Smrg printf %s "(cached) " >&6 5800ffe57424Smrgelse $as_nop 580117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 580217ca54c3Smrg/* end confdefs.h. */ 580317ca54c3Smrgint i; 580417ca54c3Smrg_ACEOF 5805ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5806ffe57424Smrgthen : 580717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5808ffe57424Smrgelse $as_nop 580917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 581017ca54c3Smrgfi 5811ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 581217ca54c3Smrgfi 5813ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5814ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 581517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 581617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 581717ca54c3Smrgfi 581817ca54c3Smrg 581917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 582017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 582117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582217ca54c3Smrg fi 582317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5824ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5825ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5826ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5827ffe57424Smrgthen : 5828ffe57424Smrg printf %s "(cached) " >&6 5829ffe57424Smrgelse $as_nop 583017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 583117ca54c3Smrg/* end confdefs.h. */ 583217ca54c3Smrgint i; 583317ca54c3Smrg_ACEOF 5834ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5835ffe57424Smrgthen : 583617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5837ffe57424Smrgelse $as_nop 583817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 583917ca54c3Smrgfi 5840ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 584117ca54c3Smrgfi 5842ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5843ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 584417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 584517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 584617ca54c3Smrgfi 584717ca54c3Smrg 584817ca54c3Smrgfound="no" 584917ca54c3Smrg 585017ca54c3Smrg if test $found = "no" ; then 585117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 585217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 585317ca54c3Smrg fi 585417ca54c3Smrg 585517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 585617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 585717ca54c3Smrg fi 585817ca54c3Smrg 585917ca54c3Smrg CFLAGS="$CFLAGS -Wnested-externs" 586017ca54c3Smrg 5861ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5862ffe57424Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 586317ca54c3Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5864ffe57424Smrg if eval test \${$cacheid+y} 5865ffe57424Smrgthen : 5866ffe57424Smrg printf %s "(cached) " >&6 5867ffe57424Smrgelse $as_nop 586817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 586917ca54c3Smrg/* end confdefs.h. */ 587017ca54c3Smrgint i; 587117ca54c3Smrgint 5872ffe57424Smrgmain (void) 587317ca54c3Smrg{ 587417ca54c3Smrg 587517ca54c3Smrg ; 587617ca54c3Smrg return 0; 587717ca54c3Smrg} 587817ca54c3Smrg_ACEOF 5879ffe57424Smrgif ac_fn_c_try_link "$LINENO" 5880ffe57424Smrgthen : 588117ca54c3Smrg eval $cacheid=yes 5882ffe57424Smrgelse $as_nop 588317ca54c3Smrg eval $cacheid=no 588417ca54c3Smrgfi 5885ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 588617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 588717ca54c3Smrgfi 588817ca54c3Smrg 588917ca54c3Smrg 589017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 589117ca54c3Smrg 589217ca54c3Smrg eval supported=\$$cacheid 5893ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5894ffe57424Smrgprintf "%s\n" "$supported" >&6; } 589517ca54c3Smrg if test "$supported" = "yes" ; then 589617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 589717ca54c3Smrg found="yes" 589817ca54c3Smrg fi 589917ca54c3Smrg fi 590017ca54c3Smrg 590117ca54c3Smrg 590217ca54c3Smrg 590317ca54c3Smrg 590417ca54c3Smrg 590517ca54c3Smrg 590617ca54c3Smrg 590717ca54c3Smrg 590817ca54c3Smrg 590917ca54c3Smrg 591017ca54c3Smrg 591117ca54c3Smrg 591217ca54c3Smrg 591317ca54c3Smrg 591417ca54c3Smrg 591517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 591617ca54c3Smrg 591717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 591817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5919ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5920ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5921ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5922ffe57424Smrgthen : 5923ffe57424Smrg printf %s "(cached) " >&6 5924ffe57424Smrgelse $as_nop 592517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 592617ca54c3Smrg/* end confdefs.h. */ 592717ca54c3Smrgint i; 592817ca54c3Smrg_ACEOF 5929ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5930ffe57424Smrgthen : 593117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5932ffe57424Smrgelse $as_nop 593317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 593417ca54c3Smrgfi 5935ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 593617ca54c3Smrgfi 5937ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5938ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 593917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 594017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 594117ca54c3Smrgfi 594217ca54c3Smrg 594317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 594417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 594517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594617ca54c3Smrg fi 594717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5948ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5949ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5950ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5951ffe57424Smrgthen : 5952ffe57424Smrg printf %s "(cached) " >&6 5953ffe57424Smrgelse $as_nop 595417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595517ca54c3Smrg/* end confdefs.h. */ 595617ca54c3Smrgint i; 595717ca54c3Smrg_ACEOF 5958ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 5959ffe57424Smrgthen : 596017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5961ffe57424Smrgelse $as_nop 596217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 596317ca54c3Smrgfi 5964ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 596517ca54c3Smrgfi 5966ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5967ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 596817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 596917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 597017ca54c3Smrgfi 597117ca54c3Smrg 597217ca54c3Smrgfound="no" 597317ca54c3Smrg 597417ca54c3Smrg if test $found = "no" ; then 597517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 597617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 597717ca54c3Smrg fi 597817ca54c3Smrg 597917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 598017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 598117ca54c3Smrg fi 598217ca54c3Smrg 598317ca54c3Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 598417ca54c3Smrg 5985ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5986ffe57424Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 598717ca54c3Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 5988ffe57424Smrg if eval test \${$cacheid+y} 5989ffe57424Smrgthen : 5990ffe57424Smrg printf %s "(cached) " >&6 5991ffe57424Smrgelse $as_nop 599217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 599317ca54c3Smrg/* end confdefs.h. */ 599417ca54c3Smrgint i; 599517ca54c3Smrgint 5996ffe57424Smrgmain (void) 599717ca54c3Smrg{ 599817ca54c3Smrg 599917ca54c3Smrg ; 600017ca54c3Smrg return 0; 600117ca54c3Smrg} 600217ca54c3Smrg_ACEOF 6003ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6004ffe57424Smrgthen : 600517ca54c3Smrg eval $cacheid=yes 6006ffe57424Smrgelse $as_nop 600717ca54c3Smrg eval $cacheid=no 600817ca54c3Smrgfi 6009ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 601017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 601117ca54c3Smrgfi 601217ca54c3Smrg 601317ca54c3Smrg 601417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 601517ca54c3Smrg 601617ca54c3Smrg eval supported=\$$cacheid 6017ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6018ffe57424Smrgprintf "%s\n" "$supported" >&6; } 601917ca54c3Smrg if test "$supported" = "yes" ; then 602017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 602117ca54c3Smrg found="yes" 602217ca54c3Smrg fi 602317ca54c3Smrg fi 602417ca54c3Smrg 602517ca54c3Smrg 602617ca54c3Smrg 602717ca54c3Smrg 602817ca54c3Smrg 602917ca54c3Smrg 603017ca54c3Smrg 603117ca54c3Smrg 603217ca54c3Smrg 603317ca54c3Smrg 603417ca54c3Smrg 603517ca54c3Smrg 603617ca54c3Smrg 603717ca54c3Smrg 603817ca54c3Smrg 603917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 604017ca54c3Smrg 604117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 604217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6043ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6044ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6045ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6046ffe57424Smrgthen : 6047ffe57424Smrg printf %s "(cached) " >&6 6048ffe57424Smrgelse $as_nop 604917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 605017ca54c3Smrg/* end confdefs.h. */ 605117ca54c3Smrgint i; 605217ca54c3Smrg_ACEOF 6053ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6054ffe57424Smrgthen : 605517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6056ffe57424Smrgelse $as_nop 605717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 605817ca54c3Smrgfi 6059ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 606017ca54c3Smrgfi 6061ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6062ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 606317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 606417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 606517ca54c3Smrgfi 606617ca54c3Smrg 606717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 606817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 606917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 607017ca54c3Smrg fi 607117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6072ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6073ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6074ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6075ffe57424Smrgthen : 6076ffe57424Smrg printf %s "(cached) " >&6 6077ffe57424Smrgelse $as_nop 607817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 607917ca54c3Smrg/* end confdefs.h. */ 608017ca54c3Smrgint i; 608117ca54c3Smrg_ACEOF 6082ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6083ffe57424Smrgthen : 608417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6085ffe57424Smrgelse $as_nop 608617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 608717ca54c3Smrgfi 6088ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 608917ca54c3Smrgfi 6090ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6091ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 609217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 609317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 609417ca54c3Smrgfi 609517ca54c3Smrg 609617ca54c3Smrgfound="no" 609717ca54c3Smrg 609817ca54c3Smrg if test $found = "no" ; then 609917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610117ca54c3Smrg fi 610217ca54c3Smrg 610317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 610417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 610517ca54c3Smrg fi 610617ca54c3Smrg 610717ca54c3Smrg CFLAGS="$CFLAGS -Wold-style-definition" 610817ca54c3Smrg 6109ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6110ffe57424Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 611117ca54c3Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 6112ffe57424Smrg if eval test \${$cacheid+y} 6113ffe57424Smrgthen : 6114ffe57424Smrg printf %s "(cached) " >&6 6115ffe57424Smrgelse $as_nop 611617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 611717ca54c3Smrg/* end confdefs.h. */ 611817ca54c3Smrgint i; 611917ca54c3Smrgint 6120ffe57424Smrgmain (void) 612117ca54c3Smrg{ 612217ca54c3Smrg 612317ca54c3Smrg ; 612417ca54c3Smrg return 0; 612517ca54c3Smrg} 612617ca54c3Smrg_ACEOF 6127ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6128ffe57424Smrgthen : 612917ca54c3Smrg eval $cacheid=yes 6130ffe57424Smrgelse $as_nop 613117ca54c3Smrg eval $cacheid=no 613217ca54c3Smrgfi 6133ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 613417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 613517ca54c3Smrgfi 613617ca54c3Smrg 613717ca54c3Smrg 613817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 613917ca54c3Smrg 614017ca54c3Smrg eval supported=\$$cacheid 6141ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6142ffe57424Smrgprintf "%s\n" "$supported" >&6; } 614317ca54c3Smrg if test "$supported" = "yes" ; then 614417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 614517ca54c3Smrg found="yes" 614617ca54c3Smrg fi 614717ca54c3Smrg fi 614817ca54c3Smrg 614917ca54c3Smrg if test $found = "no" ; then 615017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 615117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 615217ca54c3Smrg fi 615317ca54c3Smrg 615417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 615517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 615617ca54c3Smrg fi 615717ca54c3Smrg 615817ca54c3Smrg CFLAGS="$CFLAGS -fd" 615917ca54c3Smrg 6160ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6161ffe57424Smrgprintf %s "checking if $CC supports -fd... " >&6; } 616217ca54c3Smrg cacheid=xorg_cv_cc_flag__fd 6163ffe57424Smrg if eval test \${$cacheid+y} 6164ffe57424Smrgthen : 6165ffe57424Smrg printf %s "(cached) " >&6 6166ffe57424Smrgelse $as_nop 616717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 616817ca54c3Smrg/* end confdefs.h. */ 616917ca54c3Smrgint i; 617017ca54c3Smrgint 6171ffe57424Smrgmain (void) 617217ca54c3Smrg{ 617317ca54c3Smrg 617417ca54c3Smrg ; 617517ca54c3Smrg return 0; 617617ca54c3Smrg} 617717ca54c3Smrg_ACEOF 6178ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6179ffe57424Smrgthen : 618017ca54c3Smrg eval $cacheid=yes 6181ffe57424Smrgelse $as_nop 618217ca54c3Smrg eval $cacheid=no 618317ca54c3Smrgfi 6184ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 618517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 618617ca54c3Smrgfi 618717ca54c3Smrg 618817ca54c3Smrg 618917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 619017ca54c3Smrg 619117ca54c3Smrg eval supported=\$$cacheid 6192ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6193ffe57424Smrgprintf "%s\n" "$supported" >&6; } 619417ca54c3Smrg if test "$supported" = "yes" ; then 619517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 619617ca54c3Smrg found="yes" 619717ca54c3Smrg fi 619817ca54c3Smrg fi 619917ca54c3Smrg 620017ca54c3Smrg 620117ca54c3Smrg 620217ca54c3Smrg 620317ca54c3Smrg 620417ca54c3Smrg 620517ca54c3Smrg 620617ca54c3Smrg 620717ca54c3Smrg 620817ca54c3Smrg 620917ca54c3Smrg 621017ca54c3Smrg 621117ca54c3Smrg 621217ca54c3Smrg 621317ca54c3Smrg 621417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 621517ca54c3Smrg 621617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 621717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6219ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6220ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6221ffe57424Smrgthen : 6222ffe57424Smrg printf %s "(cached) " >&6 6223ffe57424Smrgelse $as_nop 622417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 622517ca54c3Smrg/* end confdefs.h. */ 622617ca54c3Smrgint i; 622717ca54c3Smrg_ACEOF 6228ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6229ffe57424Smrgthen : 623017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6231ffe57424Smrgelse $as_nop 623217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 623317ca54c3Smrgfi 6234ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 623517ca54c3Smrgfi 6236ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6237ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 623817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 623917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 624017ca54c3Smrgfi 624117ca54c3Smrg 624217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 624317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 624417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 624517ca54c3Smrg fi 624617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6247ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6248ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6249ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6250ffe57424Smrgthen : 6251ffe57424Smrg printf %s "(cached) " >&6 6252ffe57424Smrgelse $as_nop 625317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 625417ca54c3Smrg/* end confdefs.h. */ 625517ca54c3Smrgint i; 625617ca54c3Smrg_ACEOF 6257ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6258ffe57424Smrgthen : 625917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6260ffe57424Smrgelse $as_nop 626117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 626217ca54c3Smrgfi 6263ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 626417ca54c3Smrgfi 6265ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6266ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 626717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 626817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 626917ca54c3Smrgfi 627017ca54c3Smrg 627117ca54c3Smrgfound="no" 627217ca54c3Smrg 627317ca54c3Smrg if test $found = "no" ; then 627417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 627517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 627617ca54c3Smrg fi 627717ca54c3Smrg 627817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 627917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 628017ca54c3Smrg fi 628117ca54c3Smrg 628217ca54c3Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 628317ca54c3Smrg 6284ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6285ffe57424Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 628617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6287ffe57424Smrg if eval test \${$cacheid+y} 6288ffe57424Smrgthen : 6289ffe57424Smrg printf %s "(cached) " >&6 6290ffe57424Smrgelse $as_nop 629117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 629217ca54c3Smrg/* end confdefs.h. */ 629317ca54c3Smrgint i; 629417ca54c3Smrgint 6295ffe57424Smrgmain (void) 629617ca54c3Smrg{ 629717ca54c3Smrg 629817ca54c3Smrg ; 629917ca54c3Smrg return 0; 630017ca54c3Smrg} 630117ca54c3Smrg_ACEOF 6302ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6303ffe57424Smrgthen : 630417ca54c3Smrg eval $cacheid=yes 6305ffe57424Smrgelse $as_nop 630617ca54c3Smrg eval $cacheid=no 630717ca54c3Smrgfi 6308ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 630917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 631017ca54c3Smrgfi 631117ca54c3Smrg 631217ca54c3Smrg 631317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 631417ca54c3Smrg 631517ca54c3Smrg eval supported=\$$cacheid 6316ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6317ffe57424Smrgprintf "%s\n" "$supported" >&6; } 631817ca54c3Smrg if test "$supported" = "yes" ; then 631917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 632017ca54c3Smrg found="yes" 632117ca54c3Smrg fi 632217ca54c3Smrg fi 632317ca54c3Smrg 632417ca54c3Smrg 632517ca54c3Smrg 632617ca54c3Smrg 632717ca54c3Smrg 632817ca54c3Smrg# This chunk adds additional warnings that could catch undesired effects. 632917ca54c3Smrg 633017ca54c3Smrg 633117ca54c3Smrg 633217ca54c3Smrg 633317ca54c3Smrg 633417ca54c3Smrg 633517ca54c3Smrg 633617ca54c3Smrg 633717ca54c3Smrg 633817ca54c3Smrg 633917ca54c3Smrg 634017ca54c3Smrg 634117ca54c3Smrg 634217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 634317ca54c3Smrg 634417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 634517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6347ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6348ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6349ffe57424Smrgthen : 6350ffe57424Smrg printf %s "(cached) " >&6 6351ffe57424Smrgelse $as_nop 635217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 635317ca54c3Smrg/* end confdefs.h. */ 635417ca54c3Smrgint i; 635517ca54c3Smrg_ACEOF 6356ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6357ffe57424Smrgthen : 635817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6359ffe57424Smrgelse $as_nop 636017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 636117ca54c3Smrgfi 6362ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 636317ca54c3Smrgfi 6364ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6365ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 636617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 636717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 636817ca54c3Smrgfi 636917ca54c3Smrg 637017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 637117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 637217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 637317ca54c3Smrg fi 637417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6375ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6376ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6377ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6378ffe57424Smrgthen : 6379ffe57424Smrg printf %s "(cached) " >&6 6380ffe57424Smrgelse $as_nop 638117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 638217ca54c3Smrg/* end confdefs.h. */ 638317ca54c3Smrgint i; 638417ca54c3Smrg_ACEOF 6385ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6386ffe57424Smrgthen : 638717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6388ffe57424Smrgelse $as_nop 638917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 639017ca54c3Smrgfi 6391ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 639217ca54c3Smrgfi 6393ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6394ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 639517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 639617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 639717ca54c3Smrgfi 639817ca54c3Smrg 639917ca54c3Smrgfound="no" 640017ca54c3Smrg 640117ca54c3Smrg if test $found = "no" ; then 640217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 640317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 640417ca54c3Smrg fi 640517ca54c3Smrg 640617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 640717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 640817ca54c3Smrg fi 640917ca54c3Smrg 641017ca54c3Smrg CFLAGS="$CFLAGS -Wunused" 641117ca54c3Smrg 6412ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6413ffe57424Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 641417ca54c3Smrg cacheid=xorg_cv_cc_flag__Wunused 6415ffe57424Smrg if eval test \${$cacheid+y} 6416ffe57424Smrgthen : 6417ffe57424Smrg printf %s "(cached) " >&6 6418ffe57424Smrgelse $as_nop 641917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 642017ca54c3Smrg/* end confdefs.h. */ 642117ca54c3Smrgint i; 642217ca54c3Smrgint 6423ffe57424Smrgmain (void) 642417ca54c3Smrg{ 642517ca54c3Smrg 642617ca54c3Smrg ; 642717ca54c3Smrg return 0; 642817ca54c3Smrg} 642917ca54c3Smrg_ACEOF 6430ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6431ffe57424Smrgthen : 643217ca54c3Smrg eval $cacheid=yes 6433ffe57424Smrgelse $as_nop 643417ca54c3Smrg eval $cacheid=no 643517ca54c3Smrgfi 6436ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 643717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 643817ca54c3Smrgfi 643917ca54c3Smrg 644017ca54c3Smrg 644117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 644217ca54c3Smrg 644317ca54c3Smrg eval supported=\$$cacheid 6444ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6445ffe57424Smrgprintf "%s\n" "$supported" >&6; } 644617ca54c3Smrg if test "$supported" = "yes" ; then 644717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 644817ca54c3Smrg found="yes" 644917ca54c3Smrg fi 645017ca54c3Smrg fi 645117ca54c3Smrg 645217ca54c3Smrg 645317ca54c3Smrg 645417ca54c3Smrg 645517ca54c3Smrg 645617ca54c3Smrg 645717ca54c3Smrg 645817ca54c3Smrg 645917ca54c3Smrg 646017ca54c3Smrg 646117ca54c3Smrg 646217ca54c3Smrg 646317ca54c3Smrg 646417ca54c3Smrg 646517ca54c3Smrg 646617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 646717ca54c3Smrg 646817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 646917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6471ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6472ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6473ffe57424Smrgthen : 6474ffe57424Smrg printf %s "(cached) " >&6 6475ffe57424Smrgelse $as_nop 647617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 647717ca54c3Smrg/* end confdefs.h. */ 647817ca54c3Smrgint i; 647917ca54c3Smrg_ACEOF 6480ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6481ffe57424Smrgthen : 648217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6483ffe57424Smrgelse $as_nop 648417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 648517ca54c3Smrgfi 6486ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 648717ca54c3Smrgfi 6488ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6489ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 649017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 649117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 649217ca54c3Smrgfi 649317ca54c3Smrg 649417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 649517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 649617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 649717ca54c3Smrg fi 649817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6499ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6500ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6501ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6502ffe57424Smrgthen : 6503ffe57424Smrg printf %s "(cached) " >&6 6504ffe57424Smrgelse $as_nop 650517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 650617ca54c3Smrg/* end confdefs.h. */ 650717ca54c3Smrgint i; 650817ca54c3Smrg_ACEOF 6509ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6510ffe57424Smrgthen : 651117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6512ffe57424Smrgelse $as_nop 651317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 651417ca54c3Smrgfi 6515ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 651617ca54c3Smrgfi 6517ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6518ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 651917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 652017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 652117ca54c3Smrgfi 652217ca54c3Smrg 652317ca54c3Smrgfound="no" 652417ca54c3Smrg 652517ca54c3Smrg if test $found = "no" ; then 652617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 652717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 652817ca54c3Smrg fi 652917ca54c3Smrg 653017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 653117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 653217ca54c3Smrg fi 653317ca54c3Smrg 653417ca54c3Smrg CFLAGS="$CFLAGS -Wuninitialized" 653517ca54c3Smrg 6536ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6537ffe57424Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 653817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6539ffe57424Smrg if eval test \${$cacheid+y} 6540ffe57424Smrgthen : 6541ffe57424Smrg printf %s "(cached) " >&6 6542ffe57424Smrgelse $as_nop 654317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 654417ca54c3Smrg/* end confdefs.h. */ 654517ca54c3Smrgint i; 654617ca54c3Smrgint 6547ffe57424Smrgmain (void) 654817ca54c3Smrg{ 654917ca54c3Smrg 655017ca54c3Smrg ; 655117ca54c3Smrg return 0; 655217ca54c3Smrg} 655317ca54c3Smrg_ACEOF 6554ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6555ffe57424Smrgthen : 655617ca54c3Smrg eval $cacheid=yes 6557ffe57424Smrgelse $as_nop 655817ca54c3Smrg eval $cacheid=no 655917ca54c3Smrgfi 6560ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 656117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 656217ca54c3Smrgfi 656317ca54c3Smrg 656417ca54c3Smrg 656517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 656617ca54c3Smrg 656717ca54c3Smrg eval supported=\$$cacheid 6568ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6569ffe57424Smrgprintf "%s\n" "$supported" >&6; } 657017ca54c3Smrg if test "$supported" = "yes" ; then 657117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 657217ca54c3Smrg found="yes" 657317ca54c3Smrg fi 657417ca54c3Smrg fi 657517ca54c3Smrg 657617ca54c3Smrg 657717ca54c3Smrg 657817ca54c3Smrg 657917ca54c3Smrg 658017ca54c3Smrg 658117ca54c3Smrg 658217ca54c3Smrg 658317ca54c3Smrg 658417ca54c3Smrg 658517ca54c3Smrg 658617ca54c3Smrg 658717ca54c3Smrg 658817ca54c3Smrg 658917ca54c3Smrg 659017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 659117ca54c3Smrg 659217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 659317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6595ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6596ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6597ffe57424Smrgthen : 6598ffe57424Smrg printf %s "(cached) " >&6 6599ffe57424Smrgelse $as_nop 660017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 660117ca54c3Smrg/* end confdefs.h. */ 660217ca54c3Smrgint i; 660317ca54c3Smrg_ACEOF 6604ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6605ffe57424Smrgthen : 660617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6607ffe57424Smrgelse $as_nop 660817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 660917ca54c3Smrgfi 6610ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 661117ca54c3Smrgfi 6612ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6613ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 661417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 661517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 661617ca54c3Smrgfi 661717ca54c3Smrg 661817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 661917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 662017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 662117ca54c3Smrg fi 662217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6623ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6624ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6625ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6626ffe57424Smrgthen : 6627ffe57424Smrg printf %s "(cached) " >&6 6628ffe57424Smrgelse $as_nop 662917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 663017ca54c3Smrg/* end confdefs.h. */ 663117ca54c3Smrgint i; 663217ca54c3Smrg_ACEOF 6633ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6634ffe57424Smrgthen : 663517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6636ffe57424Smrgelse $as_nop 663717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 663817ca54c3Smrgfi 6639ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 664017ca54c3Smrgfi 6641ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6642ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 664317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 664417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 664517ca54c3Smrgfi 664617ca54c3Smrg 664717ca54c3Smrgfound="no" 664817ca54c3Smrg 664917ca54c3Smrg if test $found = "no" ; then 665017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 665117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 665217ca54c3Smrg fi 665317ca54c3Smrg 665417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 665517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 665617ca54c3Smrg fi 665717ca54c3Smrg 665817ca54c3Smrg CFLAGS="$CFLAGS -Wshadow" 665917ca54c3Smrg 6660ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6661ffe57424Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 666217ca54c3Smrg cacheid=xorg_cv_cc_flag__Wshadow 6663ffe57424Smrg if eval test \${$cacheid+y} 6664ffe57424Smrgthen : 6665ffe57424Smrg printf %s "(cached) " >&6 6666ffe57424Smrgelse $as_nop 666717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 666817ca54c3Smrg/* end confdefs.h. */ 666917ca54c3Smrgint i; 667017ca54c3Smrgint 6671ffe57424Smrgmain (void) 667217ca54c3Smrg{ 667317ca54c3Smrg 667417ca54c3Smrg ; 667517ca54c3Smrg return 0; 667617ca54c3Smrg} 667717ca54c3Smrg_ACEOF 6678ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6679ffe57424Smrgthen : 668017ca54c3Smrg eval $cacheid=yes 6681ffe57424Smrgelse $as_nop 668217ca54c3Smrg eval $cacheid=no 668317ca54c3Smrgfi 6684ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 668517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 668617ca54c3Smrgfi 668717ca54c3Smrg 668817ca54c3Smrg 668917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669017ca54c3Smrg 669117ca54c3Smrg eval supported=\$$cacheid 6692ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6693ffe57424Smrgprintf "%s\n" "$supported" >&6; } 669417ca54c3Smrg if test "$supported" = "yes" ; then 669517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 669617ca54c3Smrg found="yes" 669717ca54c3Smrg fi 669817ca54c3Smrg fi 669917ca54c3Smrg 670017ca54c3Smrg 670117ca54c3Smrg 670217ca54c3Smrg 670317ca54c3Smrg 670417ca54c3Smrg 670517ca54c3Smrg 670617ca54c3Smrg 670717ca54c3Smrg 670817ca54c3Smrg 670917ca54c3Smrg 671017ca54c3Smrg 671117ca54c3Smrg 671217ca54c3Smrg 671317ca54c3Smrg 671417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 671517ca54c3Smrg 671617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 671717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6718ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6719ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6720ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6721ffe57424Smrgthen : 6722ffe57424Smrg printf %s "(cached) " >&6 6723ffe57424Smrgelse $as_nop 672417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 672517ca54c3Smrg/* end confdefs.h. */ 672617ca54c3Smrgint i; 672717ca54c3Smrg_ACEOF 6728ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6729ffe57424Smrgthen : 673017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6731ffe57424Smrgelse $as_nop 673217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 673317ca54c3Smrgfi 6734ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 673517ca54c3Smrgfi 6736ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6737ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 673817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 673917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 674017ca54c3Smrgfi 674117ca54c3Smrg 674217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 674317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 674417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 674517ca54c3Smrg fi 674617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6747ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6748ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6749ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6750ffe57424Smrgthen : 6751ffe57424Smrg printf %s "(cached) " >&6 6752ffe57424Smrgelse $as_nop 675317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 675417ca54c3Smrg/* end confdefs.h. */ 675517ca54c3Smrgint i; 675617ca54c3Smrg_ACEOF 6757ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6758ffe57424Smrgthen : 675917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6760ffe57424Smrgelse $as_nop 676117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 676217ca54c3Smrgfi 6763ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 676417ca54c3Smrgfi 6765ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6766ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 676717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 676817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 676917ca54c3Smrgfi 677017ca54c3Smrg 677117ca54c3Smrgfound="no" 677217ca54c3Smrg 677317ca54c3Smrg if test $found = "no" ; then 677417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 677517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 677617ca54c3Smrg fi 677717ca54c3Smrg 677817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 677917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 678017ca54c3Smrg fi 678117ca54c3Smrg 678217ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 678317ca54c3Smrg 6784ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6785ffe57424Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 678617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6787ffe57424Smrg if eval test \${$cacheid+y} 6788ffe57424Smrgthen : 6789ffe57424Smrg printf %s "(cached) " >&6 6790ffe57424Smrgelse $as_nop 679117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679217ca54c3Smrg/* end confdefs.h. */ 679317ca54c3Smrgint i; 679417ca54c3Smrgint 6795ffe57424Smrgmain (void) 679617ca54c3Smrg{ 679717ca54c3Smrg 679817ca54c3Smrg ; 679917ca54c3Smrg return 0; 680017ca54c3Smrg} 680117ca54c3Smrg_ACEOF 6802ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6803ffe57424Smrgthen : 680417ca54c3Smrg eval $cacheid=yes 6805ffe57424Smrgelse $as_nop 680617ca54c3Smrg eval $cacheid=no 680717ca54c3Smrgfi 6808ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 680917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 681017ca54c3Smrgfi 681117ca54c3Smrg 681217ca54c3Smrg 681317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681417ca54c3Smrg 681517ca54c3Smrg eval supported=\$$cacheid 6816ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6817ffe57424Smrgprintf "%s\n" "$supported" >&6; } 681817ca54c3Smrg if test "$supported" = "yes" ; then 681917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 682017ca54c3Smrg found="yes" 682117ca54c3Smrg fi 682217ca54c3Smrg fi 682317ca54c3Smrg 682417ca54c3Smrg 682517ca54c3Smrg 682617ca54c3Smrg 682717ca54c3Smrg 682817ca54c3Smrg 682917ca54c3Smrg 683017ca54c3Smrg 683117ca54c3Smrg 683217ca54c3Smrg 683317ca54c3Smrg 683417ca54c3Smrg 683517ca54c3Smrg 683617ca54c3Smrg 683717ca54c3Smrg 683817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 683917ca54c3Smrg 684017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 684117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6842ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6843ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6844ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6845ffe57424Smrgthen : 6846ffe57424Smrg printf %s "(cached) " >&6 6847ffe57424Smrgelse $as_nop 684817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 684917ca54c3Smrg/* end confdefs.h. */ 685017ca54c3Smrgint i; 685117ca54c3Smrg_ACEOF 6852ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6853ffe57424Smrgthen : 685417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6855ffe57424Smrgelse $as_nop 685617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 685717ca54c3Smrgfi 6858ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 685917ca54c3Smrgfi 6860ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6861ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 686217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 686317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 686417ca54c3Smrgfi 686517ca54c3Smrg 686617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 686717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 686817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 686917ca54c3Smrg fi 687017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6871ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6872ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6873ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6874ffe57424Smrgthen : 6875ffe57424Smrg printf %s "(cached) " >&6 6876ffe57424Smrgelse $as_nop 687717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 687817ca54c3Smrg/* end confdefs.h. */ 687917ca54c3Smrgint i; 688017ca54c3Smrg_ACEOF 6881ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6882ffe57424Smrgthen : 688317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6884ffe57424Smrgelse $as_nop 688517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 688617ca54c3Smrgfi 6887ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 688817ca54c3Smrgfi 6889ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6890ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 689117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 689217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 689317ca54c3Smrgfi 689417ca54c3Smrg 689517ca54c3Smrgfound="no" 689617ca54c3Smrg 689717ca54c3Smrg if test $found = "no" ; then 689817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 689917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 690017ca54c3Smrg fi 690117ca54c3Smrg 690217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 690317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 690417ca54c3Smrg fi 690517ca54c3Smrg 690617ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 690717ca54c3Smrg 6908ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6909ffe57424Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 691017ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6911ffe57424Smrg if eval test \${$cacheid+y} 6912ffe57424Smrgthen : 6913ffe57424Smrg printf %s "(cached) " >&6 6914ffe57424Smrgelse $as_nop 691517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 691617ca54c3Smrg/* end confdefs.h. */ 691717ca54c3Smrgint i; 691817ca54c3Smrgint 6919ffe57424Smrgmain (void) 692017ca54c3Smrg{ 692117ca54c3Smrg 692217ca54c3Smrg ; 692317ca54c3Smrg return 0; 692417ca54c3Smrg} 692517ca54c3Smrg_ACEOF 6926ffe57424Smrgif ac_fn_c_try_link "$LINENO" 6927ffe57424Smrgthen : 692817ca54c3Smrg eval $cacheid=yes 6929ffe57424Smrgelse $as_nop 693017ca54c3Smrg eval $cacheid=no 693117ca54c3Smrgfi 6932ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 693317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 693417ca54c3Smrgfi 693517ca54c3Smrg 693617ca54c3Smrg 693717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 693817ca54c3Smrg 693917ca54c3Smrg eval supported=\$$cacheid 6940ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6941ffe57424Smrgprintf "%s\n" "$supported" >&6; } 694217ca54c3Smrg if test "$supported" = "yes" ; then 694317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 694417ca54c3Smrg found="yes" 694517ca54c3Smrg fi 694617ca54c3Smrg fi 694717ca54c3Smrg 694817ca54c3Smrg 694917ca54c3Smrg 695017ca54c3Smrg 695117ca54c3Smrg 695217ca54c3Smrg 695317ca54c3Smrg 695417ca54c3Smrg 695517ca54c3Smrg 695617ca54c3Smrg 695717ca54c3Smrg 695817ca54c3Smrg 695917ca54c3Smrg 696017ca54c3Smrg 696117ca54c3Smrg 696217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 696317ca54c3Smrg 696417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 696517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6967ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6968ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6969ffe57424Smrgthen : 6970ffe57424Smrg printf %s "(cached) " >&6 6971ffe57424Smrgelse $as_nop 697217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 697317ca54c3Smrg/* end confdefs.h. */ 697417ca54c3Smrgint i; 697517ca54c3Smrg_ACEOF 6976ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 6977ffe57424Smrgthen : 697817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6979ffe57424Smrgelse $as_nop 698017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 698117ca54c3Smrgfi 6982ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 698317ca54c3Smrgfi 6984ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6985ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 698617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 698717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 698817ca54c3Smrgfi 698917ca54c3Smrg 699017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 699117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 699217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 699317ca54c3Smrg fi 699417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6995ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6996ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6997ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6998ffe57424Smrgthen : 6999ffe57424Smrg printf %s "(cached) " >&6 7000ffe57424Smrgelse $as_nop 700117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 700217ca54c3Smrg/* end confdefs.h. */ 700317ca54c3Smrgint i; 700417ca54c3Smrg_ACEOF 7005ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7006ffe57424Smrgthen : 700717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7008ffe57424Smrgelse $as_nop 700917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 701017ca54c3Smrgfi 7011ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 701217ca54c3Smrgfi 7013ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7014ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 701517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 701617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 701717ca54c3Smrgfi 701817ca54c3Smrg 701917ca54c3Smrgfound="no" 702017ca54c3Smrg 702117ca54c3Smrg if test $found = "no" ; then 702217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 702317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 702417ca54c3Smrg fi 702517ca54c3Smrg 702617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 702717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 702817ca54c3Smrg fi 702917ca54c3Smrg 703017ca54c3Smrg CFLAGS="$CFLAGS -Wredundant-decls" 703117ca54c3Smrg 7032ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7033ffe57424Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 703417ca54c3Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 7035ffe57424Smrg if eval test \${$cacheid+y} 7036ffe57424Smrgthen : 7037ffe57424Smrg printf %s "(cached) " >&6 7038ffe57424Smrgelse $as_nop 703917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 704017ca54c3Smrg/* end confdefs.h. */ 704117ca54c3Smrgint i; 704217ca54c3Smrgint 7043ffe57424Smrgmain (void) 704417ca54c3Smrg{ 704517ca54c3Smrg 704617ca54c3Smrg ; 704717ca54c3Smrg return 0; 704817ca54c3Smrg} 704917ca54c3Smrg_ACEOF 7050ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7051ffe57424Smrgthen : 705217ca54c3Smrg eval $cacheid=yes 7053ffe57424Smrgelse $as_nop 705417ca54c3Smrg eval $cacheid=no 705517ca54c3Smrgfi 7056ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 705717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 705817ca54c3Smrgfi 705917ca54c3Smrg 706017ca54c3Smrg 706117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706217ca54c3Smrg 706317ca54c3Smrg eval supported=\$$cacheid 7064ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7065ffe57424Smrgprintf "%s\n" "$supported" >&6; } 706617ca54c3Smrg if test "$supported" = "yes" ; then 706717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 706817ca54c3Smrg found="yes" 706917ca54c3Smrg fi 707017ca54c3Smrg fi 707117ca54c3Smrg 707217ca54c3Smrg 707317ca54c3Smrg 707417ca54c3Smrg 707517ca54c3Smrg 707617ca54c3Smrg 707717ca54c3Smrg 707817ca54c3Smrg 707917ca54c3Smrg 708017ca54c3Smrg 708117ca54c3Smrg 708217ca54c3Smrg 708317ca54c3Smrg 708417ca54c3Smrg 708517ca54c3Smrg 708617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 708717ca54c3Smrg 708817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 708917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7090ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7091ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7092ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7093ffe57424Smrgthen : 7094ffe57424Smrg printf %s "(cached) " >&6 7095ffe57424Smrgelse $as_nop 709617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 709717ca54c3Smrg/* end confdefs.h. */ 709817ca54c3Smrgint i; 709917ca54c3Smrg_ACEOF 7100ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7101ffe57424Smrgthen : 710217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7103ffe57424Smrgelse $as_nop 710417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 710517ca54c3Smrgfi 7106ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 710717ca54c3Smrgfi 7108ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7109ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 711017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 711117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 711217ca54c3Smrgfi 711317ca54c3Smrg 711417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 711517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 711617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 711717ca54c3Smrg fi 711817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7119ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7120ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7121ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7122ffe57424Smrgthen : 7123ffe57424Smrg printf %s "(cached) " >&6 7124ffe57424Smrgelse $as_nop 712517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 712617ca54c3Smrg/* end confdefs.h. */ 712717ca54c3Smrgint i; 712817ca54c3Smrg_ACEOF 7129ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7130ffe57424Smrgthen : 713117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7132ffe57424Smrgelse $as_nop 713317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 713417ca54c3Smrgfi 7135ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 713617ca54c3Smrgfi 7137ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7138ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 713917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 714017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 714117ca54c3Smrgfi 714217ca54c3Smrg 714317ca54c3Smrgfound="no" 714417ca54c3Smrg 714517ca54c3Smrg if test $found = "no" ; then 714617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 714717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 714817ca54c3Smrg fi 714917ca54c3Smrg 715017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 715117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 715217ca54c3Smrg fi 715317ca54c3Smrg 715417ca54c3Smrg CFLAGS="$CFLAGS -Wlogical-op" 715517ca54c3Smrg 7156ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7157ffe57424Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 715817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 7159ffe57424Smrg if eval test \${$cacheid+y} 7160ffe57424Smrgthen : 7161ffe57424Smrg printf %s "(cached) " >&6 7162ffe57424Smrgelse $as_nop 716317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 716417ca54c3Smrg/* end confdefs.h. */ 716517ca54c3Smrgint i; 716617ca54c3Smrgint 7167ffe57424Smrgmain (void) 716817ca54c3Smrg{ 716917ca54c3Smrg 717017ca54c3Smrg ; 717117ca54c3Smrg return 0; 717217ca54c3Smrg} 717317ca54c3Smrg_ACEOF 7174ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7175ffe57424Smrgthen : 717617ca54c3Smrg eval $cacheid=yes 7177ffe57424Smrgelse $as_nop 717817ca54c3Smrg eval $cacheid=no 717917ca54c3Smrgfi 7180ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 718117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 718217ca54c3Smrgfi 718317ca54c3Smrg 718417ca54c3Smrg 718517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 718617ca54c3Smrg 718717ca54c3Smrg eval supported=\$$cacheid 7188ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7189ffe57424Smrgprintf "%s\n" "$supported" >&6; } 719017ca54c3Smrg if test "$supported" = "yes" ; then 719117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 719217ca54c3Smrg found="yes" 719317ca54c3Smrg fi 719417ca54c3Smrg fi 719517ca54c3Smrg 719617ca54c3Smrg 719717ca54c3Smrg 719817ca54c3Smrg# These are currently disabled because they are noisy. They will be enabled 719917ca54c3Smrg# in the future once the codebase is sufficiently modernized to silence 720017ca54c3Smrg# them. For now, I don't want them to drown out the other warnings. 720117ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 720217ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 720317ca54c3Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 720417ca54c3Smrg 720517ca54c3Smrg# Turn some warnings into errors, so we don't accidently get successful builds 720617ca54c3Smrg# when there are problems that should be fixed. 720717ca54c3Smrg 720817ca54c3Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 720917ca54c3Smrg 721017ca54c3Smrg 721117ca54c3Smrg 721217ca54c3Smrg 721317ca54c3Smrg 721417ca54c3Smrg 721517ca54c3Smrg 721617ca54c3Smrg 721717ca54c3Smrg 721817ca54c3Smrg 721917ca54c3Smrg 722017ca54c3Smrg 722117ca54c3Smrg 722217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 722317ca54c3Smrg 722417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 722517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7227ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7228ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7229ffe57424Smrgthen : 7230ffe57424Smrg printf %s "(cached) " >&6 7231ffe57424Smrgelse $as_nop 723217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 723317ca54c3Smrg/* end confdefs.h. */ 723417ca54c3Smrgint i; 723517ca54c3Smrg_ACEOF 7236ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7237ffe57424Smrgthen : 723817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7239ffe57424Smrgelse $as_nop 724017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 724117ca54c3Smrgfi 7242ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 724317ca54c3Smrgfi 7244ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7245ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 724617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 724717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 724817ca54c3Smrgfi 724917ca54c3Smrg 725017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 725117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 725217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 725317ca54c3Smrg fi 725417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7255ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7256ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7257ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7258ffe57424Smrgthen : 7259ffe57424Smrg printf %s "(cached) " >&6 7260ffe57424Smrgelse $as_nop 726117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 726217ca54c3Smrg/* end confdefs.h. */ 726317ca54c3Smrgint i; 726417ca54c3Smrg_ACEOF 7265ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7266ffe57424Smrgthen : 726717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7268ffe57424Smrgelse $as_nop 726917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 727017ca54c3Smrgfi 7271ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 727217ca54c3Smrgfi 7273ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7274ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 727517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 727617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727717ca54c3Smrgfi 727817ca54c3Smrg 727917ca54c3Smrgfound="no" 728017ca54c3Smrg 728117ca54c3Smrg if test $found = "no" ; then 728217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 728317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 728417ca54c3Smrg fi 728517ca54c3Smrg 728617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 728717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 728817ca54c3Smrg fi 728917ca54c3Smrg 729017ca54c3Smrg CFLAGS="$CFLAGS -Werror=implicit" 729117ca54c3Smrg 7292ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7293ffe57424Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 729417ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 7295ffe57424Smrg if eval test \${$cacheid+y} 7296ffe57424Smrgthen : 7297ffe57424Smrg printf %s "(cached) " >&6 7298ffe57424Smrgelse $as_nop 729917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730017ca54c3Smrg/* end confdefs.h. */ 730117ca54c3Smrgint i; 730217ca54c3Smrgint 7303ffe57424Smrgmain (void) 730417ca54c3Smrg{ 730517ca54c3Smrg 730617ca54c3Smrg ; 730717ca54c3Smrg return 0; 730817ca54c3Smrg} 730917ca54c3Smrg_ACEOF 7310ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7311ffe57424Smrgthen : 731217ca54c3Smrg eval $cacheid=yes 7313ffe57424Smrgelse $as_nop 731417ca54c3Smrg eval $cacheid=no 731517ca54c3Smrgfi 7316ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 731717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 731817ca54c3Smrgfi 731917ca54c3Smrg 732017ca54c3Smrg 732117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 732217ca54c3Smrg 732317ca54c3Smrg eval supported=\$$cacheid 7324ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7325ffe57424Smrgprintf "%s\n" "$supported" >&6; } 732617ca54c3Smrg if test "$supported" = "yes" ; then 732717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 732817ca54c3Smrg found="yes" 732917ca54c3Smrg fi 733017ca54c3Smrg fi 733117ca54c3Smrg 733217ca54c3Smrg if test $found = "no" ; then 733317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 733417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 733517ca54c3Smrg fi 733617ca54c3Smrg 733717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 733817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 733917ca54c3Smrg fi 734017ca54c3Smrg 734117ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 734217ca54c3Smrg 7343ffe57424Smrg { 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 7344ffe57424Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 734517ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7346ffe57424Smrg if eval test \${$cacheid+y} 7347ffe57424Smrgthen : 7348ffe57424Smrg printf %s "(cached) " >&6 7349ffe57424Smrgelse $as_nop 735017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 735117ca54c3Smrg/* end confdefs.h. */ 735217ca54c3Smrgint i; 735317ca54c3Smrgint 7354ffe57424Smrgmain (void) 735517ca54c3Smrg{ 735617ca54c3Smrg 735717ca54c3Smrg ; 735817ca54c3Smrg return 0; 735917ca54c3Smrg} 736017ca54c3Smrg_ACEOF 7361ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7362ffe57424Smrgthen : 736317ca54c3Smrg eval $cacheid=yes 7364ffe57424Smrgelse $as_nop 736517ca54c3Smrg eval $cacheid=no 736617ca54c3Smrgfi 7367ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 736817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 736917ca54c3Smrgfi 737017ca54c3Smrg 737117ca54c3Smrg 737217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 737317ca54c3Smrg 737417ca54c3Smrg eval supported=\$$cacheid 7375ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7376ffe57424Smrgprintf "%s\n" "$supported" >&6; } 737717ca54c3Smrg if test "$supported" = "yes" ; then 737817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 737917ca54c3Smrg found="yes" 738017ca54c3Smrg fi 738117ca54c3Smrg fi 738217ca54c3Smrg 738317ca54c3Smrg 738417ca54c3Smrg 738517ca54c3Smrg 738617ca54c3Smrg 738717ca54c3Smrg 738817ca54c3Smrg 738917ca54c3Smrg 739017ca54c3Smrg 739117ca54c3Smrg 739217ca54c3Smrg 739317ca54c3Smrg 739417ca54c3Smrg 739517ca54c3Smrg 739617ca54c3Smrg 739717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 739817ca54c3Smrg 739917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 740017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7402ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7403ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7404ffe57424Smrgthen : 7405ffe57424Smrg printf %s "(cached) " >&6 7406ffe57424Smrgelse $as_nop 740717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 740817ca54c3Smrg/* end confdefs.h. */ 740917ca54c3Smrgint i; 741017ca54c3Smrg_ACEOF 7411ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7412ffe57424Smrgthen : 741317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7414ffe57424Smrgelse $as_nop 741517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 741617ca54c3Smrgfi 7417ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 741817ca54c3Smrgfi 7419ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7420ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 742117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 742217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 742317ca54c3Smrgfi 742417ca54c3Smrg 742517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 742617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 742717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 742817ca54c3Smrg fi 742917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7430ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7431ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7432ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7433ffe57424Smrgthen : 7434ffe57424Smrg printf %s "(cached) " >&6 7435ffe57424Smrgelse $as_nop 743617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 743717ca54c3Smrg/* end confdefs.h. */ 743817ca54c3Smrgint i; 743917ca54c3Smrg_ACEOF 7440ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7441ffe57424Smrgthen : 744217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7443ffe57424Smrgelse $as_nop 744417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 744517ca54c3Smrgfi 7446ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 744717ca54c3Smrgfi 7448ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7449ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 745017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 745117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 745217ca54c3Smrgfi 745317ca54c3Smrg 745417ca54c3Smrgfound="no" 745517ca54c3Smrg 745617ca54c3Smrg if test $found = "no" ; then 745717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 745817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 745917ca54c3Smrg fi 746017ca54c3Smrg 746117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 746217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 746317ca54c3Smrg fi 746417ca54c3Smrg 746517ca54c3Smrg CFLAGS="$CFLAGS -Werror=nonnull" 746617ca54c3Smrg 7467ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7468ffe57424Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 746917ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7470ffe57424Smrg if eval test \${$cacheid+y} 7471ffe57424Smrgthen : 7472ffe57424Smrg printf %s "(cached) " >&6 7473ffe57424Smrgelse $as_nop 747417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 747517ca54c3Smrg/* end confdefs.h. */ 747617ca54c3Smrgint i; 747717ca54c3Smrgint 7478ffe57424Smrgmain (void) 747917ca54c3Smrg{ 748017ca54c3Smrg 748117ca54c3Smrg ; 748217ca54c3Smrg return 0; 748317ca54c3Smrg} 748417ca54c3Smrg_ACEOF 7485ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7486ffe57424Smrgthen : 748717ca54c3Smrg eval $cacheid=yes 7488ffe57424Smrgelse $as_nop 748917ca54c3Smrg eval $cacheid=no 749017ca54c3Smrgfi 7491ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 749217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 749317ca54c3Smrgfi 749417ca54c3Smrg 749517ca54c3Smrg 749617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 749717ca54c3Smrg 749817ca54c3Smrg eval supported=\$$cacheid 7499ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7500ffe57424Smrgprintf "%s\n" "$supported" >&6; } 750117ca54c3Smrg if test "$supported" = "yes" ; then 750217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 750317ca54c3Smrg found="yes" 750417ca54c3Smrg fi 750517ca54c3Smrg fi 750617ca54c3Smrg 750717ca54c3Smrg 750817ca54c3Smrg 750917ca54c3Smrg 751017ca54c3Smrg 751117ca54c3Smrg 751217ca54c3Smrg 751317ca54c3Smrg 751417ca54c3Smrg 751517ca54c3Smrg 751617ca54c3Smrg 751717ca54c3Smrg 751817ca54c3Smrg 751917ca54c3Smrg 752017ca54c3Smrg 752117ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 752217ca54c3Smrg 752317ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 752417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7525ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7526ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7527ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7528ffe57424Smrgthen : 7529ffe57424Smrg printf %s "(cached) " >&6 7530ffe57424Smrgelse $as_nop 753117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 753217ca54c3Smrg/* end confdefs.h. */ 753317ca54c3Smrgint i; 753417ca54c3Smrg_ACEOF 7535ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7536ffe57424Smrgthen : 753717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7538ffe57424Smrgelse $as_nop 753917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 754017ca54c3Smrgfi 7541ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 754217ca54c3Smrgfi 7543ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7544ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 754517ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 754617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 754717ca54c3Smrgfi 754817ca54c3Smrg 754917ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 755017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 755117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 755217ca54c3Smrg fi 755317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7554ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7555ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7556ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7557ffe57424Smrgthen : 7558ffe57424Smrg printf %s "(cached) " >&6 7559ffe57424Smrgelse $as_nop 756017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 756117ca54c3Smrg/* end confdefs.h. */ 756217ca54c3Smrgint i; 756317ca54c3Smrg_ACEOF 7564ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7565ffe57424Smrgthen : 756617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7567ffe57424Smrgelse $as_nop 756817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 756917ca54c3Smrgfi 7570ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 757117ca54c3Smrgfi 7572ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7573ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 757417ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 757517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 757617ca54c3Smrgfi 757717ca54c3Smrg 757817ca54c3Smrgfound="no" 757917ca54c3Smrg 758017ca54c3Smrg if test $found = "no" ; then 758117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 758217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 758317ca54c3Smrg fi 758417ca54c3Smrg 758517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 758617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 758717ca54c3Smrg fi 758817ca54c3Smrg 758917ca54c3Smrg CFLAGS="$CFLAGS -Werror=init-self" 759017ca54c3Smrg 7591ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7592ffe57424Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 759317ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 7594ffe57424Smrg if eval test \${$cacheid+y} 7595ffe57424Smrgthen : 7596ffe57424Smrg printf %s "(cached) " >&6 7597ffe57424Smrgelse $as_nop 759817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 759917ca54c3Smrg/* end confdefs.h. */ 760017ca54c3Smrgint i; 760117ca54c3Smrgint 7602ffe57424Smrgmain (void) 760317ca54c3Smrg{ 760417ca54c3Smrg 760517ca54c3Smrg ; 760617ca54c3Smrg return 0; 760717ca54c3Smrg} 760817ca54c3Smrg_ACEOF 7609ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7610ffe57424Smrgthen : 761117ca54c3Smrg eval $cacheid=yes 7612ffe57424Smrgelse $as_nop 761317ca54c3Smrg eval $cacheid=no 761417ca54c3Smrgfi 7615ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 761617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 761717ca54c3Smrgfi 761817ca54c3Smrg 761917ca54c3Smrg 762017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 762117ca54c3Smrg 762217ca54c3Smrg eval supported=\$$cacheid 7623ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7624ffe57424Smrgprintf "%s\n" "$supported" >&6; } 762517ca54c3Smrg if test "$supported" = "yes" ; then 762617ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 762717ca54c3Smrg found="yes" 762817ca54c3Smrg fi 762917ca54c3Smrg fi 763017ca54c3Smrg 763117ca54c3Smrg 763217ca54c3Smrg 763317ca54c3Smrg 763417ca54c3Smrg 763517ca54c3Smrg 763617ca54c3Smrg 763717ca54c3Smrg 763817ca54c3Smrg 763917ca54c3Smrg 764017ca54c3Smrg 764117ca54c3Smrg 764217ca54c3Smrg 764317ca54c3Smrg 764417ca54c3Smrg 764517ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 764617ca54c3Smrg 764717ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 764817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7650ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7651ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7652ffe57424Smrgthen : 7653ffe57424Smrg printf %s "(cached) " >&6 7654ffe57424Smrgelse $as_nop 765517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 765617ca54c3Smrg/* end confdefs.h. */ 765717ca54c3Smrgint i; 765817ca54c3Smrg_ACEOF 7659ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7660ffe57424Smrgthen : 766117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7662ffe57424Smrgelse $as_nop 766317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 766417ca54c3Smrgfi 7665ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 766617ca54c3Smrgfi 7667ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7668ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 766917ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 767017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 767117ca54c3Smrgfi 767217ca54c3Smrg 767317ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 767417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 767517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 767617ca54c3Smrg fi 767717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7678ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7679ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7680ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7681ffe57424Smrgthen : 7682ffe57424Smrg printf %s "(cached) " >&6 7683ffe57424Smrgelse $as_nop 768417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 768517ca54c3Smrg/* end confdefs.h. */ 768617ca54c3Smrgint i; 768717ca54c3Smrg_ACEOF 7688ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7689ffe57424Smrgthen : 769017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7691ffe57424Smrgelse $as_nop 769217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 769317ca54c3Smrgfi 7694ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 769517ca54c3Smrgfi 7696ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7697ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 769817ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 769917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 770017ca54c3Smrgfi 770117ca54c3Smrg 770217ca54c3Smrgfound="no" 770317ca54c3Smrg 770417ca54c3Smrg if test $found = "no" ; then 770517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 770617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 770717ca54c3Smrg fi 770817ca54c3Smrg 770917ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 771017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 771117ca54c3Smrg fi 771217ca54c3Smrg 771317ca54c3Smrg CFLAGS="$CFLAGS -Werror=main" 771417ca54c3Smrg 7715ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7716ffe57424Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 771717ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_main 7718ffe57424Smrg if eval test \${$cacheid+y} 7719ffe57424Smrgthen : 7720ffe57424Smrg printf %s "(cached) " >&6 7721ffe57424Smrgelse $as_nop 772217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 772317ca54c3Smrg/* end confdefs.h. */ 772417ca54c3Smrgint i; 772517ca54c3Smrgint 7726ffe57424Smrgmain (void) 772717ca54c3Smrg{ 772817ca54c3Smrg 772917ca54c3Smrg ; 773017ca54c3Smrg return 0; 773117ca54c3Smrg} 773217ca54c3Smrg_ACEOF 7733ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7734ffe57424Smrgthen : 773517ca54c3Smrg eval $cacheid=yes 7736ffe57424Smrgelse $as_nop 773717ca54c3Smrg eval $cacheid=no 773817ca54c3Smrgfi 7739ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 774017ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 774117ca54c3Smrgfi 774217ca54c3Smrg 774317ca54c3Smrg 774417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 774517ca54c3Smrg 774617ca54c3Smrg eval supported=\$$cacheid 7747ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7748ffe57424Smrgprintf "%s\n" "$supported" >&6; } 774917ca54c3Smrg if test "$supported" = "yes" ; then 775017ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 775117ca54c3Smrg found="yes" 775217ca54c3Smrg fi 775317ca54c3Smrg fi 775417ca54c3Smrg 775517ca54c3Smrg 775617ca54c3Smrg 775717ca54c3Smrg 775817ca54c3Smrg 775917ca54c3Smrg 776017ca54c3Smrg 776117ca54c3Smrg 776217ca54c3Smrg 776317ca54c3Smrg 776417ca54c3Smrg 776517ca54c3Smrg 776617ca54c3Smrg 776717ca54c3Smrg 776817ca54c3Smrg 776917ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 777017ca54c3Smrg 777117ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 777217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7773ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7774ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7775ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7776ffe57424Smrgthen : 7777ffe57424Smrg printf %s "(cached) " >&6 7778ffe57424Smrgelse $as_nop 777917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 778017ca54c3Smrg/* end confdefs.h. */ 778117ca54c3Smrgint i; 778217ca54c3Smrg_ACEOF 7783ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7784ffe57424Smrgthen : 778517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7786ffe57424Smrgelse $as_nop 778717ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 778817ca54c3Smrgfi 7789ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 779017ca54c3Smrgfi 7791ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7792ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 779317ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 779417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 779517ca54c3Smrgfi 779617ca54c3Smrg 779717ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 779817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 779917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 780017ca54c3Smrg fi 780117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7802ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7803ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7804ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7805ffe57424Smrgthen : 7806ffe57424Smrg printf %s "(cached) " >&6 7807ffe57424Smrgelse $as_nop 780817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 780917ca54c3Smrg/* end confdefs.h. */ 781017ca54c3Smrgint i; 781117ca54c3Smrg_ACEOF 7812ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7813ffe57424Smrgthen : 781417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7815ffe57424Smrgelse $as_nop 781617ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 781717ca54c3Smrgfi 7818ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 781917ca54c3Smrgfi 7820ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7821ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 782217ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 782317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 782417ca54c3Smrgfi 782517ca54c3Smrg 782617ca54c3Smrgfound="no" 782717ca54c3Smrg 782817ca54c3Smrg if test $found = "no" ; then 782917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 783017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 783117ca54c3Smrg fi 783217ca54c3Smrg 783317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 783417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 783517ca54c3Smrg fi 783617ca54c3Smrg 783717ca54c3Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 783817ca54c3Smrg 7839ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7840ffe57424Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 784117ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7842ffe57424Smrg if eval test \${$cacheid+y} 7843ffe57424Smrgthen : 7844ffe57424Smrg printf %s "(cached) " >&6 7845ffe57424Smrgelse $as_nop 784617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 784717ca54c3Smrg/* end confdefs.h. */ 784817ca54c3Smrgint i; 784917ca54c3Smrgint 7850ffe57424Smrgmain (void) 785117ca54c3Smrg{ 785217ca54c3Smrg 785317ca54c3Smrg ; 785417ca54c3Smrg return 0; 785517ca54c3Smrg} 785617ca54c3Smrg_ACEOF 7857ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7858ffe57424Smrgthen : 785917ca54c3Smrg eval $cacheid=yes 7860ffe57424Smrgelse $as_nop 786117ca54c3Smrg eval $cacheid=no 786217ca54c3Smrgfi 7863ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 786417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 786517ca54c3Smrgfi 786617ca54c3Smrg 786717ca54c3Smrg 786817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786917ca54c3Smrg 787017ca54c3Smrg eval supported=\$$cacheid 7871ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7872ffe57424Smrgprintf "%s\n" "$supported" >&6; } 787317ca54c3Smrg if test "$supported" = "yes" ; then 787417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 787517ca54c3Smrg found="yes" 787617ca54c3Smrg fi 787717ca54c3Smrg fi 787817ca54c3Smrg 787917ca54c3Smrg 788017ca54c3Smrg 788117ca54c3Smrg 788217ca54c3Smrg 788317ca54c3Smrg 788417ca54c3Smrg 788517ca54c3Smrg 788617ca54c3Smrg 788717ca54c3Smrg 788817ca54c3Smrg 788917ca54c3Smrg 789017ca54c3Smrg 789117ca54c3Smrg 789217ca54c3Smrg 789317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 789417ca54c3Smrg 789517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 789617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7897ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7898ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7899ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7900ffe57424Smrgthen : 7901ffe57424Smrg printf %s "(cached) " >&6 7902ffe57424Smrgelse $as_nop 790317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 790417ca54c3Smrg/* end confdefs.h. */ 790517ca54c3Smrgint i; 790617ca54c3Smrg_ACEOF 7907ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7908ffe57424Smrgthen : 790917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7910ffe57424Smrgelse $as_nop 791117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 791217ca54c3Smrgfi 7913ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 791417ca54c3Smrgfi 7915ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7916ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 791717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 791817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 791917ca54c3Smrgfi 792017ca54c3Smrg 792117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 792217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 792317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 792417ca54c3Smrg fi 792517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7927ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7928ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7929ffe57424Smrgthen : 7930ffe57424Smrg printf %s "(cached) " >&6 7931ffe57424Smrgelse $as_nop 793217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 793317ca54c3Smrg/* end confdefs.h. */ 793417ca54c3Smrgint i; 793517ca54c3Smrg_ACEOF 7936ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 7937ffe57424Smrgthen : 793817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7939ffe57424Smrgelse $as_nop 794017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 794117ca54c3Smrgfi 7942ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 794317ca54c3Smrgfi 7944ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7945ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 794617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 794717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 794817ca54c3Smrgfi 794917ca54c3Smrg 795017ca54c3Smrgfound="no" 795117ca54c3Smrg 795217ca54c3Smrg if test $found = "no" ; then 795317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 795417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 795517ca54c3Smrg fi 795617ca54c3Smrg 795717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 795817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 795917ca54c3Smrg fi 796017ca54c3Smrg 796117ca54c3Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 796217ca54c3Smrg 7963ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7964ffe57424Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 796517ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 7966ffe57424Smrg if eval test \${$cacheid+y} 7967ffe57424Smrgthen : 7968ffe57424Smrg printf %s "(cached) " >&6 7969ffe57424Smrgelse $as_nop 797017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 797117ca54c3Smrg/* end confdefs.h. */ 797217ca54c3Smrgint i; 797317ca54c3Smrgint 7974ffe57424Smrgmain (void) 797517ca54c3Smrg{ 797617ca54c3Smrg 797717ca54c3Smrg ; 797817ca54c3Smrg return 0; 797917ca54c3Smrg} 798017ca54c3Smrg_ACEOF 7981ffe57424Smrgif ac_fn_c_try_link "$LINENO" 7982ffe57424Smrgthen : 798317ca54c3Smrg eval $cacheid=yes 7984ffe57424Smrgelse $as_nop 798517ca54c3Smrg eval $cacheid=no 798617ca54c3Smrgfi 7987ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 798817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 798917ca54c3Smrgfi 799017ca54c3Smrg 799117ca54c3Smrg 799217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 799317ca54c3Smrg 799417ca54c3Smrg eval supported=\$$cacheid 7995ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7996ffe57424Smrgprintf "%s\n" "$supported" >&6; } 799717ca54c3Smrg if test "$supported" = "yes" ; then 799817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 799917ca54c3Smrg found="yes" 800017ca54c3Smrg fi 800117ca54c3Smrg fi 800217ca54c3Smrg 800317ca54c3Smrg 800417ca54c3Smrg 800517ca54c3Smrg 800617ca54c3Smrg 800717ca54c3Smrg 800817ca54c3Smrg 800917ca54c3Smrg 801017ca54c3Smrg 801117ca54c3Smrg 801217ca54c3Smrg 801317ca54c3Smrg 801417ca54c3Smrg 801517ca54c3Smrg 801617ca54c3Smrg 801717ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 801817ca54c3Smrg 801917ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 802017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8022ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8023ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8024ffe57424Smrgthen : 8025ffe57424Smrg printf %s "(cached) " >&6 8026ffe57424Smrgelse $as_nop 802717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 802817ca54c3Smrg/* end confdefs.h. */ 802917ca54c3Smrgint i; 803017ca54c3Smrg_ACEOF 8031ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8032ffe57424Smrgthen : 803317ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8034ffe57424Smrgelse $as_nop 803517ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 803617ca54c3Smrgfi 8037ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 803817ca54c3Smrgfi 8039ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8040ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 804117ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 804217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 804317ca54c3Smrgfi 804417ca54c3Smrg 804517ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 804617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 804717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 804817ca54c3Smrg fi 804917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8050ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8051ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8052ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8053ffe57424Smrgthen : 8054ffe57424Smrg printf %s "(cached) " >&6 8055ffe57424Smrgelse $as_nop 805617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 805717ca54c3Smrg/* end confdefs.h. */ 805817ca54c3Smrgint i; 805917ca54c3Smrg_ACEOF 8060ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8061ffe57424Smrgthen : 806217ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8063ffe57424Smrgelse $as_nop 806417ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 806517ca54c3Smrgfi 8066ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 806717ca54c3Smrgfi 8068ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8069ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 807017ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 807117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807217ca54c3Smrgfi 807317ca54c3Smrg 807417ca54c3Smrgfound="no" 807517ca54c3Smrg 807617ca54c3Smrg if test $found = "no" ; then 807717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 807817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 807917ca54c3Smrg fi 808017ca54c3Smrg 808117ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 808217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808317ca54c3Smrg fi 808417ca54c3Smrg 808517ca54c3Smrg CFLAGS="$CFLAGS -Werror=return-type" 808617ca54c3Smrg 8087ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8088ffe57424Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 808917ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 8090ffe57424Smrg if eval test \${$cacheid+y} 8091ffe57424Smrgthen : 8092ffe57424Smrg printf %s "(cached) " >&6 8093ffe57424Smrgelse $as_nop 809417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 809517ca54c3Smrg/* end confdefs.h. */ 809617ca54c3Smrgint i; 809717ca54c3Smrgint 8098ffe57424Smrgmain (void) 809917ca54c3Smrg{ 810017ca54c3Smrg 810117ca54c3Smrg ; 810217ca54c3Smrg return 0; 810317ca54c3Smrg} 810417ca54c3Smrg_ACEOF 8105ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8106ffe57424Smrgthen : 810717ca54c3Smrg eval $cacheid=yes 8108ffe57424Smrgelse $as_nop 810917ca54c3Smrg eval $cacheid=no 811017ca54c3Smrgfi 8111ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 811217ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 811317ca54c3Smrgfi 811417ca54c3Smrg 811517ca54c3Smrg 811617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 811717ca54c3Smrg 811817ca54c3Smrg eval supported=\$$cacheid 8119ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8120ffe57424Smrgprintf "%s\n" "$supported" >&6; } 812117ca54c3Smrg if test "$supported" = "yes" ; then 812217ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 812317ca54c3Smrg found="yes" 812417ca54c3Smrg fi 812517ca54c3Smrg fi 812617ca54c3Smrg 812717ca54c3Smrg if test $found = "no" ; then 812817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 812917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 813017ca54c3Smrg fi 813117ca54c3Smrg 813217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 813317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 813417ca54c3Smrg fi 813517ca54c3Smrg 813617ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 813717ca54c3Smrg 8138ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8139ffe57424Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 814017ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8141ffe57424Smrg if eval test \${$cacheid+y} 8142ffe57424Smrgthen : 8143ffe57424Smrg printf %s "(cached) " >&6 8144ffe57424Smrgelse $as_nop 814517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 814617ca54c3Smrg/* end confdefs.h. */ 814717ca54c3Smrgint i; 814817ca54c3Smrgint 8149ffe57424Smrgmain (void) 815017ca54c3Smrg{ 815117ca54c3Smrg 815217ca54c3Smrg ; 815317ca54c3Smrg return 0; 815417ca54c3Smrg} 815517ca54c3Smrg_ACEOF 8156ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8157ffe57424Smrgthen : 815817ca54c3Smrg eval $cacheid=yes 8159ffe57424Smrgelse $as_nop 816017ca54c3Smrg eval $cacheid=no 816117ca54c3Smrgfi 8162ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 816317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 816417ca54c3Smrgfi 816517ca54c3Smrg 816617ca54c3Smrg 816717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 816817ca54c3Smrg 816917ca54c3Smrg eval supported=\$$cacheid 8170ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8171ffe57424Smrgprintf "%s\n" "$supported" >&6; } 817217ca54c3Smrg if test "$supported" = "yes" ; then 817317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 817417ca54c3Smrg found="yes" 817517ca54c3Smrg fi 817617ca54c3Smrg fi 817717ca54c3Smrg 817817ca54c3Smrg 817917ca54c3Smrg 818017ca54c3Smrg 818117ca54c3Smrg 818217ca54c3Smrg 818317ca54c3Smrg 818417ca54c3Smrg 818517ca54c3Smrg 818617ca54c3Smrg 818717ca54c3Smrg 818817ca54c3Smrg 818917ca54c3Smrg 819017ca54c3Smrg 819117ca54c3Smrg 819217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 819317ca54c3Smrg 819417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 819517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8197ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8198ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8199ffe57424Smrgthen : 8200ffe57424Smrg printf %s "(cached) " >&6 8201ffe57424Smrgelse $as_nop 820217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820317ca54c3Smrg/* end confdefs.h. */ 820417ca54c3Smrgint i; 820517ca54c3Smrg_ACEOF 8206ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8207ffe57424Smrgthen : 820817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8209ffe57424Smrgelse $as_nop 821017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 821117ca54c3Smrgfi 8212ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 821317ca54c3Smrgfi 8214ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8215ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 821617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 821717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 821817ca54c3Smrgfi 821917ca54c3Smrg 822017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 822117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 822217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 822317ca54c3Smrg fi 822417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8225ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8226ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8227ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8228ffe57424Smrgthen : 8229ffe57424Smrg printf %s "(cached) " >&6 8230ffe57424Smrgelse $as_nop 823117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 823217ca54c3Smrg/* end confdefs.h. */ 823317ca54c3Smrgint i; 823417ca54c3Smrg_ACEOF 8235ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8236ffe57424Smrgthen : 823717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8238ffe57424Smrgelse $as_nop 823917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 824017ca54c3Smrgfi 8241ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 824217ca54c3Smrgfi 8243ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8244ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 824517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 824617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 824717ca54c3Smrgfi 824817ca54c3Smrg 824917ca54c3Smrgfound="no" 825017ca54c3Smrg 825117ca54c3Smrg if test $found = "no" ; then 825217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 825317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 825417ca54c3Smrg fi 825517ca54c3Smrg 825617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 825717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 825817ca54c3Smrg fi 825917ca54c3Smrg 826017ca54c3Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 826117ca54c3Smrg 8262ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8263ffe57424Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 826417ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8265ffe57424Smrg if eval test \${$cacheid+y} 8266ffe57424Smrgthen : 8267ffe57424Smrg printf %s "(cached) " >&6 8268ffe57424Smrgelse $as_nop 826917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 827017ca54c3Smrg/* end confdefs.h. */ 827117ca54c3Smrgint i; 827217ca54c3Smrgint 8273ffe57424Smrgmain (void) 827417ca54c3Smrg{ 827517ca54c3Smrg 827617ca54c3Smrg ; 827717ca54c3Smrg return 0; 827817ca54c3Smrg} 827917ca54c3Smrg_ACEOF 8280ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8281ffe57424Smrgthen : 828217ca54c3Smrg eval $cacheid=yes 8283ffe57424Smrgelse $as_nop 828417ca54c3Smrg eval $cacheid=no 828517ca54c3Smrgfi 8286ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 828717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 828817ca54c3Smrgfi 828917ca54c3Smrg 829017ca54c3Smrg 829117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 829217ca54c3Smrg 829317ca54c3Smrg eval supported=\$$cacheid 8294ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8295ffe57424Smrgprintf "%s\n" "$supported" >&6; } 829617ca54c3Smrg if test "$supported" = "yes" ; then 829717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 829817ca54c3Smrg found="yes" 829917ca54c3Smrg fi 830017ca54c3Smrg fi 830117ca54c3Smrg 830217ca54c3Smrg 830317ca54c3Smrg 830417ca54c3Smrg 830517ca54c3Smrg 830617ca54c3Smrg 830717ca54c3Smrg 830817ca54c3Smrg 830917ca54c3Smrg 831017ca54c3Smrg 831117ca54c3Smrg 831217ca54c3Smrg 831317ca54c3Smrg 831417ca54c3Smrg 831517ca54c3Smrg 831617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 831717ca54c3Smrg 831817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 831917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8321ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8322ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8323ffe57424Smrgthen : 8324ffe57424Smrg printf %s "(cached) " >&6 8325ffe57424Smrgelse $as_nop 832617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 832717ca54c3Smrg/* end confdefs.h. */ 832817ca54c3Smrgint i; 832917ca54c3Smrg_ACEOF 8330ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8331ffe57424Smrgthen : 833217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8333ffe57424Smrgelse $as_nop 833417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 833517ca54c3Smrgfi 8336ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 833717ca54c3Smrgfi 8338ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8339ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 834017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 834117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 834217ca54c3Smrgfi 834317ca54c3Smrg 834417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 834517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 834617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834717ca54c3Smrg fi 834817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8349ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8350ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8351ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8352ffe57424Smrgthen : 8353ffe57424Smrg printf %s "(cached) " >&6 8354ffe57424Smrgelse $as_nop 835517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 835617ca54c3Smrg/* end confdefs.h. */ 835717ca54c3Smrgint i; 835817ca54c3Smrg_ACEOF 8359ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8360ffe57424Smrgthen : 836117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8362ffe57424Smrgelse $as_nop 836317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 836417ca54c3Smrgfi 8365ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 836617ca54c3Smrgfi 8367ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8368ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 836917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 837017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 837117ca54c3Smrgfi 837217ca54c3Smrg 837317ca54c3Smrgfound="no" 837417ca54c3Smrg 837517ca54c3Smrg if test $found = "no" ; then 837617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 837717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 837817ca54c3Smrg fi 837917ca54c3Smrg 838017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 838117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 838217ca54c3Smrg fi 838317ca54c3Smrg 838417ca54c3Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 838517ca54c3Smrg 8386ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8387ffe57424Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 838817ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8389ffe57424Smrg if eval test \${$cacheid+y} 8390ffe57424Smrgthen : 8391ffe57424Smrg printf %s "(cached) " >&6 8392ffe57424Smrgelse $as_nop 839317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 839417ca54c3Smrg/* end confdefs.h. */ 839517ca54c3Smrgint i; 839617ca54c3Smrgint 8397ffe57424Smrgmain (void) 839817ca54c3Smrg{ 839917ca54c3Smrg 840017ca54c3Smrg ; 840117ca54c3Smrg return 0; 840217ca54c3Smrg} 840317ca54c3Smrg_ACEOF 8404ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8405ffe57424Smrgthen : 840617ca54c3Smrg eval $cacheid=yes 8407ffe57424Smrgelse $as_nop 840817ca54c3Smrg eval $cacheid=no 840917ca54c3Smrgfi 8410ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 841117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 841217ca54c3Smrgfi 841317ca54c3Smrg 841417ca54c3Smrg 841517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 841617ca54c3Smrg 841717ca54c3Smrg eval supported=\$$cacheid 8418ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8419ffe57424Smrgprintf "%s\n" "$supported" >&6; } 842017ca54c3Smrg if test "$supported" = "yes" ; then 842117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 842217ca54c3Smrg found="yes" 842317ca54c3Smrg fi 842417ca54c3Smrg fi 842517ca54c3Smrg 842617ca54c3Smrg 842717ca54c3Smrg 842817ca54c3Smrg 842917ca54c3Smrg 843017ca54c3Smrg 843117ca54c3Smrg 843217ca54c3Smrg 843317ca54c3Smrg 843417ca54c3Smrg 843517ca54c3Smrg 843617ca54c3Smrg 843717ca54c3Smrg 843817ca54c3Smrg 843917ca54c3Smrg 844017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 844117ca54c3Smrg 844217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 844317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8444ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8445ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8446ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8447ffe57424Smrgthen : 8448ffe57424Smrg printf %s "(cached) " >&6 8449ffe57424Smrgelse $as_nop 845017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 845117ca54c3Smrg/* end confdefs.h. */ 845217ca54c3Smrgint i; 845317ca54c3Smrg_ACEOF 8454ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8455ffe57424Smrgthen : 845617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8457ffe57424Smrgelse $as_nop 845817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 845917ca54c3Smrgfi 8460ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 846117ca54c3Smrgfi 8462ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8463ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 846417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 846517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 846617ca54c3Smrgfi 846717ca54c3Smrg 846817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 846917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 847017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 847117ca54c3Smrg fi 847217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8474ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8475ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8476ffe57424Smrgthen : 8477ffe57424Smrg printf %s "(cached) " >&6 8478ffe57424Smrgelse $as_nop 847917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 848017ca54c3Smrg/* end confdefs.h. */ 848117ca54c3Smrgint i; 848217ca54c3Smrg_ACEOF 8483ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8484ffe57424Smrgthen : 848517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8486ffe57424Smrgelse $as_nop 848717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 848817ca54c3Smrgfi 8489ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 849017ca54c3Smrgfi 8491ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8492ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 849317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 849417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 849517ca54c3Smrgfi 849617ca54c3Smrg 849717ca54c3Smrgfound="no" 849817ca54c3Smrg 849917ca54c3Smrg if test $found = "no" ; then 850017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 850117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 850217ca54c3Smrg fi 850317ca54c3Smrg 850417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 850517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 850617ca54c3Smrg fi 850717ca54c3Smrg 850817ca54c3Smrg CFLAGS="$CFLAGS -Werror=write-strings" 850917ca54c3Smrg 8510ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8511ffe57424Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 851217ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8513ffe57424Smrg if eval test \${$cacheid+y} 8514ffe57424Smrgthen : 8515ffe57424Smrg printf %s "(cached) " >&6 8516ffe57424Smrgelse $as_nop 851717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 851817ca54c3Smrg/* end confdefs.h. */ 851917ca54c3Smrgint i; 852017ca54c3Smrgint 8521ffe57424Smrgmain (void) 852217ca54c3Smrg{ 852317ca54c3Smrg 852417ca54c3Smrg ; 852517ca54c3Smrg return 0; 852617ca54c3Smrg} 852717ca54c3Smrg_ACEOF 8528ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8529ffe57424Smrgthen : 853017ca54c3Smrg eval $cacheid=yes 8531ffe57424Smrgelse $as_nop 853217ca54c3Smrg eval $cacheid=no 853317ca54c3Smrgfi 8534ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 853517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 853617ca54c3Smrgfi 853717ca54c3Smrg 853817ca54c3Smrg 853917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 854017ca54c3Smrg 854117ca54c3Smrg eval supported=\$$cacheid 8542ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8543ffe57424Smrgprintf "%s\n" "$supported" >&6; } 854417ca54c3Smrg if test "$supported" = "yes" ; then 854517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 854617ca54c3Smrg found="yes" 854717ca54c3Smrg fi 854817ca54c3Smrg fi 854917ca54c3Smrg 855017ca54c3Smrg 855117ca54c3Smrg 855217ca54c3Smrg 855317ca54c3Smrg 855417ca54c3Smrg 855517ca54c3Smrg 855617ca54c3Smrg 855717ca54c3Smrg 855817ca54c3Smrg 855917ca54c3Smrg 856017ca54c3Smrg 856117ca54c3Smrg 856217ca54c3Smrg 856317ca54c3Smrg 856417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 856517ca54c3Smrg 856617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 856717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8569ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8570ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8571ffe57424Smrgthen : 8572ffe57424Smrg printf %s "(cached) " >&6 8573ffe57424Smrgelse $as_nop 857417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 857517ca54c3Smrg/* end confdefs.h. */ 857617ca54c3Smrgint i; 857717ca54c3Smrg_ACEOF 8578ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8579ffe57424Smrgthen : 858017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8581ffe57424Smrgelse $as_nop 858217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 858317ca54c3Smrgfi 8584ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 858517ca54c3Smrgfi 8586ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8587ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 858817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 858917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 859017ca54c3Smrgfi 859117ca54c3Smrg 859217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 859317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 859417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 859517ca54c3Smrg fi 859617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8598ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8599ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8600ffe57424Smrgthen : 8601ffe57424Smrg printf %s "(cached) " >&6 8602ffe57424Smrgelse $as_nop 860317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 860417ca54c3Smrg/* end confdefs.h. */ 860517ca54c3Smrgint i; 860617ca54c3Smrg_ACEOF 8607ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8608ffe57424Smrgthen : 860917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8610ffe57424Smrgelse $as_nop 861117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 861217ca54c3Smrgfi 8613ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 861417ca54c3Smrgfi 8615ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8616ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 861717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 861817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 861917ca54c3Smrgfi 862017ca54c3Smrg 862117ca54c3Smrgfound="no" 862217ca54c3Smrg 862317ca54c3Smrg if test $found = "no" ; then 862417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 862517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 862617ca54c3Smrg fi 862717ca54c3Smrg 862817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 862917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 863017ca54c3Smrg fi 863117ca54c3Smrg 863217ca54c3Smrg CFLAGS="$CFLAGS -Werror=address" 863317ca54c3Smrg 8634ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8635ffe57424Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 863617ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_address 8637ffe57424Smrg if eval test \${$cacheid+y} 8638ffe57424Smrgthen : 8639ffe57424Smrg printf %s "(cached) " >&6 8640ffe57424Smrgelse $as_nop 864117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 864217ca54c3Smrg/* end confdefs.h. */ 864317ca54c3Smrgint i; 864417ca54c3Smrgint 8645ffe57424Smrgmain (void) 864617ca54c3Smrg{ 864717ca54c3Smrg 864817ca54c3Smrg ; 864917ca54c3Smrg return 0; 865017ca54c3Smrg} 865117ca54c3Smrg_ACEOF 8652ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8653ffe57424Smrgthen : 865417ca54c3Smrg eval $cacheid=yes 8655ffe57424Smrgelse $as_nop 865617ca54c3Smrg eval $cacheid=no 865717ca54c3Smrgfi 8658ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 865917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 866017ca54c3Smrgfi 866117ca54c3Smrg 866217ca54c3Smrg 866317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 866417ca54c3Smrg 866517ca54c3Smrg eval supported=\$$cacheid 8666ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8667ffe57424Smrgprintf "%s\n" "$supported" >&6; } 866817ca54c3Smrg if test "$supported" = "yes" ; then 866917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 867017ca54c3Smrg found="yes" 867117ca54c3Smrg fi 867217ca54c3Smrg fi 867317ca54c3Smrg 867417ca54c3Smrg 867517ca54c3Smrg 867617ca54c3Smrg 867717ca54c3Smrg 867817ca54c3Smrg 867917ca54c3Smrg 868017ca54c3Smrg 868117ca54c3Smrg 868217ca54c3Smrg 868317ca54c3Smrg 868417ca54c3Smrg 868517ca54c3Smrg 868617ca54c3Smrg 868717ca54c3Smrg 868817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 868917ca54c3Smrg 869017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 869117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8693ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8694ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8695ffe57424Smrgthen : 8696ffe57424Smrg printf %s "(cached) " >&6 8697ffe57424Smrgelse $as_nop 869817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 869917ca54c3Smrg/* end confdefs.h. */ 870017ca54c3Smrgint i; 870117ca54c3Smrg_ACEOF 8702ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8703ffe57424Smrgthen : 870417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8705ffe57424Smrgelse $as_nop 870617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 870717ca54c3Smrgfi 8708ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 870917ca54c3Smrgfi 8710ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8711ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 871217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 871317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 871417ca54c3Smrgfi 871517ca54c3Smrg 871617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 871717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 871817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 871917ca54c3Smrg fi 872017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8721ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8722ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8723ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8724ffe57424Smrgthen : 8725ffe57424Smrg printf %s "(cached) " >&6 8726ffe57424Smrgelse $as_nop 872717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872817ca54c3Smrg/* end confdefs.h. */ 872917ca54c3Smrgint i; 873017ca54c3Smrg_ACEOF 8731ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8732ffe57424Smrgthen : 873317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8734ffe57424Smrgelse $as_nop 873517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 873617ca54c3Smrgfi 8737ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 873817ca54c3Smrgfi 8739ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8740ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 874117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 874217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874317ca54c3Smrgfi 874417ca54c3Smrg 874517ca54c3Smrgfound="no" 874617ca54c3Smrg 874717ca54c3Smrg if test $found = "no" ; then 874817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 874917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 875017ca54c3Smrg fi 875117ca54c3Smrg 875217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 875317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 875417ca54c3Smrg fi 875517ca54c3Smrg 875617ca54c3Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 875717ca54c3Smrg 8758ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8759ffe57424Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 876017ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8761ffe57424Smrg if eval test \${$cacheid+y} 8762ffe57424Smrgthen : 8763ffe57424Smrg printf %s "(cached) " >&6 8764ffe57424Smrgelse $as_nop 876517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 876617ca54c3Smrg/* end confdefs.h. */ 876717ca54c3Smrgint i; 876817ca54c3Smrgint 8769ffe57424Smrgmain (void) 877017ca54c3Smrg{ 877117ca54c3Smrg 877217ca54c3Smrg ; 877317ca54c3Smrg return 0; 877417ca54c3Smrg} 877517ca54c3Smrg_ACEOF 8776ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8777ffe57424Smrgthen : 877817ca54c3Smrg eval $cacheid=yes 8779ffe57424Smrgelse $as_nop 878017ca54c3Smrg eval $cacheid=no 878117ca54c3Smrgfi 8782ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 878317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 878417ca54c3Smrgfi 878517ca54c3Smrg 878617ca54c3Smrg 878717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 878817ca54c3Smrg 878917ca54c3Smrg eval supported=\$$cacheid 8790ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8791ffe57424Smrgprintf "%s\n" "$supported" >&6; } 879217ca54c3Smrg if test "$supported" = "yes" ; then 879317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 879417ca54c3Smrg found="yes" 879517ca54c3Smrg fi 879617ca54c3Smrg fi 879717ca54c3Smrg 879817ca54c3Smrg if test $found = "no" ; then 879917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 880017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 880117ca54c3Smrg fi 880217ca54c3Smrg 880317ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 880417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 880517ca54c3Smrg fi 880617ca54c3Smrg 880717ca54c3Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 880817ca54c3Smrg 8809ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8810ffe57424Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 881117ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8812ffe57424Smrg if eval test \${$cacheid+y} 8813ffe57424Smrgthen : 8814ffe57424Smrg printf %s "(cached) " >&6 8815ffe57424Smrgelse $as_nop 881617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 881717ca54c3Smrg/* end confdefs.h. */ 881817ca54c3Smrgint i; 881917ca54c3Smrgint 8820ffe57424Smrgmain (void) 882117ca54c3Smrg{ 882217ca54c3Smrg 882317ca54c3Smrg ; 882417ca54c3Smrg return 0; 882517ca54c3Smrg} 882617ca54c3Smrg_ACEOF 8827ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8828ffe57424Smrgthen : 882917ca54c3Smrg eval $cacheid=yes 8830ffe57424Smrgelse $as_nop 883117ca54c3Smrg eval $cacheid=no 883217ca54c3Smrgfi 8833ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 883417ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 883517ca54c3Smrgfi 883617ca54c3Smrg 883717ca54c3Smrg 883817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 883917ca54c3Smrg 884017ca54c3Smrg eval supported=\$$cacheid 8841ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8842ffe57424Smrgprintf "%s\n" "$supported" >&6; } 884317ca54c3Smrg if test "$supported" = "yes" ; then 884417ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 884517ca54c3Smrg found="yes" 884617ca54c3Smrg fi 884717ca54c3Smrg fi 884817ca54c3Smrg 884917ca54c3Smrg 885017ca54c3Smrg 885117ca54c3Smrg 885217ca54c3Smrg 885317ca54c3Smrg 885417ca54c3Smrg 885517ca54c3Smrg 885617ca54c3Smrg 885717ca54c3Smrg 885817ca54c3Smrg 885917ca54c3Smrg 886017ca54c3Smrg 886117ca54c3Smrg 886217ca54c3Smrg 886317ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 886417ca54c3Smrg 886517ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 886617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8867ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8868ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8869ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8870ffe57424Smrgthen : 8871ffe57424Smrg printf %s "(cached) " >&6 8872ffe57424Smrgelse $as_nop 887317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 887417ca54c3Smrg/* end confdefs.h. */ 887517ca54c3Smrgint i; 887617ca54c3Smrg_ACEOF 8877ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8878ffe57424Smrgthen : 887917ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8880ffe57424Smrgelse $as_nop 888117ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 888217ca54c3Smrgfi 8883ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 888417ca54c3Smrgfi 8885ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8886ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 888717ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 888817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 888917ca54c3Smrgfi 889017ca54c3Smrg 889117ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 889217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 889317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 889417ca54c3Smrg fi 889517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8897ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8898ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8899ffe57424Smrgthen : 8900ffe57424Smrg printf %s "(cached) " >&6 8901ffe57424Smrgelse $as_nop 890217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 890317ca54c3Smrg/* end confdefs.h. */ 890417ca54c3Smrgint i; 890517ca54c3Smrg_ACEOF 8906ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 8907ffe57424Smrgthen : 890817ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8909ffe57424Smrgelse $as_nop 891017ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 891117ca54c3Smrgfi 8912ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 891317ca54c3Smrgfi 8914ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8915ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 891617ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 891717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 891817ca54c3Smrgfi 891917ca54c3Smrg 892017ca54c3Smrgfound="no" 892117ca54c3Smrg 892217ca54c3Smrg if test $found = "no" ; then 892317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 892417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 892517ca54c3Smrg fi 892617ca54c3Smrg 892717ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 892817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 892917ca54c3Smrg fi 893017ca54c3Smrg 893117ca54c3Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 893217ca54c3Smrg 8933ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8934ffe57424Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 893517ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8936ffe57424Smrg if eval test \${$cacheid+y} 8937ffe57424Smrgthen : 8938ffe57424Smrg printf %s "(cached) " >&6 8939ffe57424Smrgelse $as_nop 894017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 894117ca54c3Smrg/* end confdefs.h. */ 894217ca54c3Smrgint i; 894317ca54c3Smrgint 8944ffe57424Smrgmain (void) 894517ca54c3Smrg{ 894617ca54c3Smrg 894717ca54c3Smrg ; 894817ca54c3Smrg return 0; 894917ca54c3Smrg} 895017ca54c3Smrg_ACEOF 8951ffe57424Smrgif ac_fn_c_try_link "$LINENO" 8952ffe57424Smrgthen : 895317ca54c3Smrg eval $cacheid=yes 8954ffe57424Smrgelse $as_nop 895517ca54c3Smrg eval $cacheid=no 895617ca54c3Smrgfi 8957ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 895817ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 895917ca54c3Smrgfi 896017ca54c3Smrg 896117ca54c3Smrg 896217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 896317ca54c3Smrg 896417ca54c3Smrg eval supported=\$$cacheid 8965ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8966ffe57424Smrgprintf "%s\n" "$supported" >&6; } 896717ca54c3Smrg if test "$supported" = "yes" ; then 896817ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 896917ca54c3Smrg found="yes" 897017ca54c3Smrg fi 897117ca54c3Smrg fi 897217ca54c3Smrg 897317ca54c3Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 897417ca54c3Smrgelse 8975ffe57424Smrg{ 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 8976ffe57424Smrgprintf "%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;} 897717ca54c3Smrg 897817ca54c3Smrg 897917ca54c3Smrg 898017ca54c3Smrg 898117ca54c3Smrg 898217ca54c3Smrg 898317ca54c3Smrg 898417ca54c3Smrg 898517ca54c3Smrg 898617ca54c3Smrg 898717ca54c3Smrg 898817ca54c3Smrg 898917ca54c3Smrg 899017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 899117ca54c3Smrg 899217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 899317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8995ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8996ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8997ffe57424Smrgthen : 8998ffe57424Smrg printf %s "(cached) " >&6 8999ffe57424Smrgelse $as_nop 900017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900117ca54c3Smrg/* end confdefs.h. */ 900217ca54c3Smrgint i; 900317ca54c3Smrg_ACEOF 9004ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9005ffe57424Smrgthen : 900617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9007ffe57424Smrgelse $as_nop 900817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 900917ca54c3Smrgfi 9010ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 901117ca54c3Smrgfi 9012ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9013ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 901417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 901517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 901617ca54c3Smrgfi 901717ca54c3Smrg 901817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 901917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 902017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 902117ca54c3Smrg fi 902217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9023ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9024ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9025ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9026ffe57424Smrgthen : 9027ffe57424Smrg printf %s "(cached) " >&6 9028ffe57424Smrgelse $as_nop 902917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 903017ca54c3Smrg/* end confdefs.h. */ 903117ca54c3Smrgint i; 903217ca54c3Smrg_ACEOF 9033ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9034ffe57424Smrgthen : 903517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9036ffe57424Smrgelse $as_nop 903717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 903817ca54c3Smrgfi 9039ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 904017ca54c3Smrgfi 9041ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9042ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 904317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 904417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 904517ca54c3Smrgfi 904617ca54c3Smrg 904717ca54c3Smrgfound="no" 904817ca54c3Smrg 904917ca54c3Smrg if test $found = "no" ; then 905017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 905117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 905217ca54c3Smrg fi 905317ca54c3Smrg 905417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 905517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 905617ca54c3Smrg fi 905717ca54c3Smrg 905817ca54c3Smrg CFLAGS="$CFLAGS -Wimplicit" 905917ca54c3Smrg 9060ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9061ffe57424Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 906217ca54c3Smrg cacheid=xorg_cv_cc_flag__Wimplicit 9063ffe57424Smrg if eval test \${$cacheid+y} 9064ffe57424Smrgthen : 9065ffe57424Smrg printf %s "(cached) " >&6 9066ffe57424Smrgelse $as_nop 906717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 906817ca54c3Smrg/* end confdefs.h. */ 906917ca54c3Smrgint i; 907017ca54c3Smrgint 9071ffe57424Smrgmain (void) 907217ca54c3Smrg{ 907317ca54c3Smrg 907417ca54c3Smrg ; 907517ca54c3Smrg return 0; 907617ca54c3Smrg} 907717ca54c3Smrg_ACEOF 9078ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9079ffe57424Smrgthen : 908017ca54c3Smrg eval $cacheid=yes 9081ffe57424Smrgelse $as_nop 908217ca54c3Smrg eval $cacheid=no 908317ca54c3Smrgfi 9084ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 908517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 908617ca54c3Smrgfi 908717ca54c3Smrg 908817ca54c3Smrg 908917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 909017ca54c3Smrg 909117ca54c3Smrg eval supported=\$$cacheid 9092ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9093ffe57424Smrgprintf "%s\n" "$supported" >&6; } 909417ca54c3Smrg if test "$supported" = "yes" ; then 909517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 909617ca54c3Smrg found="yes" 909717ca54c3Smrg fi 909817ca54c3Smrg fi 909917ca54c3Smrg 910017ca54c3Smrg 910117ca54c3Smrg 910217ca54c3Smrg 910317ca54c3Smrg 910417ca54c3Smrg 910517ca54c3Smrg 910617ca54c3Smrg 910717ca54c3Smrg 910817ca54c3Smrg 910917ca54c3Smrg 911017ca54c3Smrg 911117ca54c3Smrg 911217ca54c3Smrg 911317ca54c3Smrg 911417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 911517ca54c3Smrg 911617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 911717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9118ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9119ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9120ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9121ffe57424Smrgthen : 9122ffe57424Smrg printf %s "(cached) " >&6 9123ffe57424Smrgelse $as_nop 912417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 912517ca54c3Smrg/* end confdefs.h. */ 912617ca54c3Smrgint i; 912717ca54c3Smrg_ACEOF 9128ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9129ffe57424Smrgthen : 913017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9131ffe57424Smrgelse $as_nop 913217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 913317ca54c3Smrgfi 9134ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 913517ca54c3Smrgfi 9136ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9137ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 913817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 913917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 914017ca54c3Smrgfi 914117ca54c3Smrg 914217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 914317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 914417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 914517ca54c3Smrg fi 914617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9147ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9148ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9149ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9150ffe57424Smrgthen : 9151ffe57424Smrg printf %s "(cached) " >&6 9152ffe57424Smrgelse $as_nop 915317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 915417ca54c3Smrg/* end confdefs.h. */ 915517ca54c3Smrgint i; 915617ca54c3Smrg_ACEOF 9157ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9158ffe57424Smrgthen : 915917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9160ffe57424Smrgelse $as_nop 916117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 916217ca54c3Smrgfi 9163ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 916417ca54c3Smrgfi 9165ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9166ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 916717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 916817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 916917ca54c3Smrgfi 917017ca54c3Smrg 917117ca54c3Smrgfound="no" 917217ca54c3Smrg 917317ca54c3Smrg if test $found = "no" ; then 917417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 917517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 917617ca54c3Smrg fi 917717ca54c3Smrg 917817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 917917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 918017ca54c3Smrg fi 918117ca54c3Smrg 918217ca54c3Smrg CFLAGS="$CFLAGS -Wnonnull" 918317ca54c3Smrg 9184ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9185ffe57424Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 918617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wnonnull 9187ffe57424Smrg if eval test \${$cacheid+y} 9188ffe57424Smrgthen : 9189ffe57424Smrg printf %s "(cached) " >&6 9190ffe57424Smrgelse $as_nop 919117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 919217ca54c3Smrg/* end confdefs.h. */ 919317ca54c3Smrgint i; 919417ca54c3Smrgint 9195ffe57424Smrgmain (void) 919617ca54c3Smrg{ 919717ca54c3Smrg 919817ca54c3Smrg ; 919917ca54c3Smrg return 0; 920017ca54c3Smrg} 920117ca54c3Smrg_ACEOF 9202ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9203ffe57424Smrgthen : 920417ca54c3Smrg eval $cacheid=yes 9205ffe57424Smrgelse $as_nop 920617ca54c3Smrg eval $cacheid=no 920717ca54c3Smrgfi 9208ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 920917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 921017ca54c3Smrgfi 921117ca54c3Smrg 921217ca54c3Smrg 921317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 921417ca54c3Smrg 921517ca54c3Smrg eval supported=\$$cacheid 9216ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9217ffe57424Smrgprintf "%s\n" "$supported" >&6; } 921817ca54c3Smrg if test "$supported" = "yes" ; then 921917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 922017ca54c3Smrg found="yes" 922117ca54c3Smrg fi 922217ca54c3Smrg fi 922317ca54c3Smrg 922417ca54c3Smrg 922517ca54c3Smrg 922617ca54c3Smrg 922717ca54c3Smrg 922817ca54c3Smrg 922917ca54c3Smrg 923017ca54c3Smrg 923117ca54c3Smrg 923217ca54c3Smrg 923317ca54c3Smrg 923417ca54c3Smrg 923517ca54c3Smrg 923617ca54c3Smrg 923717ca54c3Smrg 923817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 923917ca54c3Smrg 924017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 924117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9243ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9244ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9245ffe57424Smrgthen : 9246ffe57424Smrg printf %s "(cached) " >&6 9247ffe57424Smrgelse $as_nop 924817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 924917ca54c3Smrg/* end confdefs.h. */ 925017ca54c3Smrgint i; 925117ca54c3Smrg_ACEOF 9252ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9253ffe57424Smrgthen : 925417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9255ffe57424Smrgelse $as_nop 925617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 925717ca54c3Smrgfi 9258ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 925917ca54c3Smrgfi 9260ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9261ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 926217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 926317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 926417ca54c3Smrgfi 926517ca54c3Smrg 926617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 926717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 926817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 926917ca54c3Smrg fi 927017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9272ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9273ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9274ffe57424Smrgthen : 9275ffe57424Smrg printf %s "(cached) " >&6 9276ffe57424Smrgelse $as_nop 927717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 927817ca54c3Smrg/* end confdefs.h. */ 927917ca54c3Smrgint i; 928017ca54c3Smrg_ACEOF 9281ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9282ffe57424Smrgthen : 928317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9284ffe57424Smrgelse $as_nop 928517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 928617ca54c3Smrgfi 9287ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 928817ca54c3Smrgfi 9289ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9290ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 929117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 929217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 929317ca54c3Smrgfi 929417ca54c3Smrg 929517ca54c3Smrgfound="no" 929617ca54c3Smrg 929717ca54c3Smrg if test $found = "no" ; then 929817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 929917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 930017ca54c3Smrg fi 930117ca54c3Smrg 930217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 930317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 930417ca54c3Smrg fi 930517ca54c3Smrg 930617ca54c3Smrg CFLAGS="$CFLAGS -Winit-self" 930717ca54c3Smrg 9308ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9309ffe57424Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 931017ca54c3Smrg cacheid=xorg_cv_cc_flag__Winit_self 9311ffe57424Smrg if eval test \${$cacheid+y} 9312ffe57424Smrgthen : 9313ffe57424Smrg printf %s "(cached) " >&6 9314ffe57424Smrgelse $as_nop 931517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 931617ca54c3Smrg/* end confdefs.h. */ 931717ca54c3Smrgint i; 931817ca54c3Smrgint 9319ffe57424Smrgmain (void) 932017ca54c3Smrg{ 932117ca54c3Smrg 932217ca54c3Smrg ; 932317ca54c3Smrg return 0; 932417ca54c3Smrg} 932517ca54c3Smrg_ACEOF 9326ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9327ffe57424Smrgthen : 932817ca54c3Smrg eval $cacheid=yes 9329ffe57424Smrgelse $as_nop 933017ca54c3Smrg eval $cacheid=no 933117ca54c3Smrgfi 9332ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 933317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 933417ca54c3Smrgfi 933517ca54c3Smrg 933617ca54c3Smrg 933717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933817ca54c3Smrg 933917ca54c3Smrg eval supported=\$$cacheid 9340ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9341ffe57424Smrgprintf "%s\n" "$supported" >&6; } 934217ca54c3Smrg if test "$supported" = "yes" ; then 934317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 934417ca54c3Smrg found="yes" 934517ca54c3Smrg fi 934617ca54c3Smrg fi 934717ca54c3Smrg 934817ca54c3Smrg 934917ca54c3Smrg 935017ca54c3Smrg 935117ca54c3Smrg 935217ca54c3Smrg 935317ca54c3Smrg 935417ca54c3Smrg 935517ca54c3Smrg 935617ca54c3Smrg 935717ca54c3Smrg 935817ca54c3Smrg 935917ca54c3Smrg 936017ca54c3Smrg 936117ca54c3Smrg 936217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 936317ca54c3Smrg 936417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 936517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9366ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9367ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9368ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9369ffe57424Smrgthen : 9370ffe57424Smrg printf %s "(cached) " >&6 9371ffe57424Smrgelse $as_nop 937217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 937317ca54c3Smrg/* end confdefs.h. */ 937417ca54c3Smrgint i; 937517ca54c3Smrg_ACEOF 9376ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9377ffe57424Smrgthen : 937817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9379ffe57424Smrgelse $as_nop 938017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 938117ca54c3Smrgfi 9382ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 938317ca54c3Smrgfi 9384ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9385ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 938617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 938717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 938817ca54c3Smrgfi 938917ca54c3Smrg 939017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 939117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 939217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 939317ca54c3Smrg fi 939417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9395ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9396ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9397ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9398ffe57424Smrgthen : 9399ffe57424Smrg printf %s "(cached) " >&6 9400ffe57424Smrgelse $as_nop 940117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 940217ca54c3Smrg/* end confdefs.h. */ 940317ca54c3Smrgint i; 940417ca54c3Smrg_ACEOF 9405ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9406ffe57424Smrgthen : 940717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9408ffe57424Smrgelse $as_nop 940917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 941017ca54c3Smrgfi 9411ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 941217ca54c3Smrgfi 9413ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9414ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 941517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 941617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 941717ca54c3Smrgfi 941817ca54c3Smrg 941917ca54c3Smrgfound="no" 942017ca54c3Smrg 942117ca54c3Smrg if test $found = "no" ; then 942217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 942317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 942417ca54c3Smrg fi 942517ca54c3Smrg 942617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 942717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 942817ca54c3Smrg fi 942917ca54c3Smrg 943017ca54c3Smrg CFLAGS="$CFLAGS -Wmain" 943117ca54c3Smrg 9432ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9433ffe57424Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 943417ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmain 9435ffe57424Smrg if eval test \${$cacheid+y} 9436ffe57424Smrgthen : 9437ffe57424Smrg printf %s "(cached) " >&6 9438ffe57424Smrgelse $as_nop 943917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 944017ca54c3Smrg/* end confdefs.h. */ 944117ca54c3Smrgint i; 944217ca54c3Smrgint 9443ffe57424Smrgmain (void) 944417ca54c3Smrg{ 944517ca54c3Smrg 944617ca54c3Smrg ; 944717ca54c3Smrg return 0; 944817ca54c3Smrg} 944917ca54c3Smrg_ACEOF 9450ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9451ffe57424Smrgthen : 945217ca54c3Smrg eval $cacheid=yes 9453ffe57424Smrgelse $as_nop 945417ca54c3Smrg eval $cacheid=no 945517ca54c3Smrgfi 9456ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 945717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 945817ca54c3Smrgfi 945917ca54c3Smrg 946017ca54c3Smrg 946117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 946217ca54c3Smrg 946317ca54c3Smrg eval supported=\$$cacheid 9464ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9465ffe57424Smrgprintf "%s\n" "$supported" >&6; } 946617ca54c3Smrg if test "$supported" = "yes" ; then 946717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 946817ca54c3Smrg found="yes" 946917ca54c3Smrg fi 947017ca54c3Smrg fi 947117ca54c3Smrg 947217ca54c3Smrg 947317ca54c3Smrg 947417ca54c3Smrg 947517ca54c3Smrg 947617ca54c3Smrg 947717ca54c3Smrg 947817ca54c3Smrg 947917ca54c3Smrg 948017ca54c3Smrg 948117ca54c3Smrg 948217ca54c3Smrg 948317ca54c3Smrg 948417ca54c3Smrg 948517ca54c3Smrg 948617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 948717ca54c3Smrg 948817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 948917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9491ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9492ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9493ffe57424Smrgthen : 9494ffe57424Smrg printf %s "(cached) " >&6 9495ffe57424Smrgelse $as_nop 949617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 949717ca54c3Smrg/* end confdefs.h. */ 949817ca54c3Smrgint i; 949917ca54c3Smrg_ACEOF 9500ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9501ffe57424Smrgthen : 950217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9503ffe57424Smrgelse $as_nop 950417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 950517ca54c3Smrgfi 9506ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 950717ca54c3Smrgfi 9508ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9509ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 951017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 951117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 951217ca54c3Smrgfi 951317ca54c3Smrg 951417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 951517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 951617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 951717ca54c3Smrg fi 951817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9520ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9521ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9522ffe57424Smrgthen : 9523ffe57424Smrg printf %s "(cached) " >&6 9524ffe57424Smrgelse $as_nop 952517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 952617ca54c3Smrg/* end confdefs.h. */ 952717ca54c3Smrgint i; 952817ca54c3Smrg_ACEOF 9529ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9530ffe57424Smrgthen : 953117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9532ffe57424Smrgelse $as_nop 953317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 953417ca54c3Smrgfi 9535ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 953617ca54c3Smrgfi 9537ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9538ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 953917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 954017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954117ca54c3Smrgfi 954217ca54c3Smrg 954317ca54c3Smrgfound="no" 954417ca54c3Smrg 954517ca54c3Smrg if test $found = "no" ; then 954617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 954717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 954817ca54c3Smrg fi 954917ca54c3Smrg 955017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 955117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 955217ca54c3Smrg fi 955317ca54c3Smrg 955417ca54c3Smrg CFLAGS="$CFLAGS -Wmissing-braces" 955517ca54c3Smrg 9556ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9557ffe57424Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 955817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9559ffe57424Smrg if eval test \${$cacheid+y} 9560ffe57424Smrgthen : 9561ffe57424Smrg printf %s "(cached) " >&6 9562ffe57424Smrgelse $as_nop 956317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 956417ca54c3Smrg/* end confdefs.h. */ 956517ca54c3Smrgint i; 956617ca54c3Smrgint 9567ffe57424Smrgmain (void) 956817ca54c3Smrg{ 956917ca54c3Smrg 957017ca54c3Smrg ; 957117ca54c3Smrg return 0; 957217ca54c3Smrg} 957317ca54c3Smrg_ACEOF 9574ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9575ffe57424Smrgthen : 957617ca54c3Smrg eval $cacheid=yes 9577ffe57424Smrgelse $as_nop 957817ca54c3Smrg eval $cacheid=no 957917ca54c3Smrgfi 9580ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 958117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 958217ca54c3Smrgfi 958317ca54c3Smrg 958417ca54c3Smrg 958517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 958617ca54c3Smrg 958717ca54c3Smrg eval supported=\$$cacheid 9588ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9589ffe57424Smrgprintf "%s\n" "$supported" >&6; } 959017ca54c3Smrg if test "$supported" = "yes" ; then 959117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 959217ca54c3Smrg found="yes" 959317ca54c3Smrg fi 959417ca54c3Smrg fi 959517ca54c3Smrg 959617ca54c3Smrg 959717ca54c3Smrg 959817ca54c3Smrg 959917ca54c3Smrg 960017ca54c3Smrg 960117ca54c3Smrg 960217ca54c3Smrg 960317ca54c3Smrg 960417ca54c3Smrg 960517ca54c3Smrg 960617ca54c3Smrg 960717ca54c3Smrg 960817ca54c3Smrg 960917ca54c3Smrg 961017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 961117ca54c3Smrg 961217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 961317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9614ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9615ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9616ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9617ffe57424Smrgthen : 9618ffe57424Smrg printf %s "(cached) " >&6 9619ffe57424Smrgelse $as_nop 962017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 962117ca54c3Smrg/* end confdefs.h. */ 962217ca54c3Smrgint i; 962317ca54c3Smrg_ACEOF 9624ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9625ffe57424Smrgthen : 962617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9627ffe57424Smrgelse $as_nop 962817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 962917ca54c3Smrgfi 9630ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 963117ca54c3Smrgfi 9632ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9633ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 963417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 963517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 963617ca54c3Smrgfi 963717ca54c3Smrg 963817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 963917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 964017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 964117ca54c3Smrg fi 964217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9643ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9644ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9645ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9646ffe57424Smrgthen : 9647ffe57424Smrg printf %s "(cached) " >&6 9648ffe57424Smrgelse $as_nop 964917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 965017ca54c3Smrg/* end confdefs.h. */ 965117ca54c3Smrgint i; 965217ca54c3Smrg_ACEOF 9653ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9654ffe57424Smrgthen : 965517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9656ffe57424Smrgelse $as_nop 965717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 965817ca54c3Smrgfi 9659ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 966017ca54c3Smrgfi 9661ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9662ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 966317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 966417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 966517ca54c3Smrgfi 966617ca54c3Smrg 966717ca54c3Smrgfound="no" 966817ca54c3Smrg 966917ca54c3Smrg if test $found = "no" ; then 967017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 967117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 967217ca54c3Smrg fi 967317ca54c3Smrg 967417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 967517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 967617ca54c3Smrg fi 967717ca54c3Smrg 967817ca54c3Smrg CFLAGS="$CFLAGS -Wsequence-point" 967917ca54c3Smrg 9680ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9681ffe57424Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 968217ca54c3Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9683ffe57424Smrg if eval test \${$cacheid+y} 9684ffe57424Smrgthen : 9685ffe57424Smrg printf %s "(cached) " >&6 9686ffe57424Smrgelse $as_nop 968717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 968817ca54c3Smrg/* end confdefs.h. */ 968917ca54c3Smrgint i; 969017ca54c3Smrgint 9691ffe57424Smrgmain (void) 969217ca54c3Smrg{ 969317ca54c3Smrg 969417ca54c3Smrg ; 969517ca54c3Smrg return 0; 969617ca54c3Smrg} 969717ca54c3Smrg_ACEOF 9698ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9699ffe57424Smrgthen : 970017ca54c3Smrg eval $cacheid=yes 9701ffe57424Smrgelse $as_nop 970217ca54c3Smrg eval $cacheid=no 970317ca54c3Smrgfi 9704ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 970517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 970617ca54c3Smrgfi 970717ca54c3Smrg 970817ca54c3Smrg 970917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 971017ca54c3Smrg 971117ca54c3Smrg eval supported=\$$cacheid 9712ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9713ffe57424Smrgprintf "%s\n" "$supported" >&6; } 971417ca54c3Smrg if test "$supported" = "yes" ; then 971517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 971617ca54c3Smrg found="yes" 971717ca54c3Smrg fi 971817ca54c3Smrg fi 971917ca54c3Smrg 972017ca54c3Smrg 972117ca54c3Smrg 972217ca54c3Smrg 972317ca54c3Smrg 972417ca54c3Smrg 972517ca54c3Smrg 972617ca54c3Smrg 972717ca54c3Smrg 972817ca54c3Smrg 972917ca54c3Smrg 973017ca54c3Smrg 973117ca54c3Smrg 973217ca54c3Smrg 973317ca54c3Smrg 973417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 973517ca54c3Smrg 973617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 973717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9738ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9739ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9740ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9741ffe57424Smrgthen : 9742ffe57424Smrg printf %s "(cached) " >&6 9743ffe57424Smrgelse $as_nop 974417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 974517ca54c3Smrg/* end confdefs.h. */ 974617ca54c3Smrgint i; 974717ca54c3Smrg_ACEOF 9748ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9749ffe57424Smrgthen : 975017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9751ffe57424Smrgelse $as_nop 975217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 975317ca54c3Smrgfi 9754ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 975517ca54c3Smrgfi 9756ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9757ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 975817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 975917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 976017ca54c3Smrgfi 976117ca54c3Smrg 976217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 976317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 976417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 976517ca54c3Smrg fi 976617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9767ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9768ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9769ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9770ffe57424Smrgthen : 9771ffe57424Smrg printf %s "(cached) " >&6 9772ffe57424Smrgelse $as_nop 977317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 977417ca54c3Smrg/* end confdefs.h. */ 977517ca54c3Smrgint i; 977617ca54c3Smrg_ACEOF 9777ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9778ffe57424Smrgthen : 977917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9780ffe57424Smrgelse $as_nop 978117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 978217ca54c3Smrgfi 9783ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 978417ca54c3Smrgfi 9785ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9786ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 978717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 978817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 978917ca54c3Smrgfi 979017ca54c3Smrg 979117ca54c3Smrgfound="no" 979217ca54c3Smrg 979317ca54c3Smrg if test $found = "no" ; then 979417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 979517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 979617ca54c3Smrg fi 979717ca54c3Smrg 979817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 979917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 980017ca54c3Smrg fi 980117ca54c3Smrg 980217ca54c3Smrg CFLAGS="$CFLAGS -Wreturn-type" 980317ca54c3Smrg 9804ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9805ffe57424Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 980617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9807ffe57424Smrg if eval test \${$cacheid+y} 9808ffe57424Smrgthen : 9809ffe57424Smrg printf %s "(cached) " >&6 9810ffe57424Smrgelse $as_nop 981117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 981217ca54c3Smrg/* end confdefs.h. */ 981317ca54c3Smrgint i; 981417ca54c3Smrgint 9815ffe57424Smrgmain (void) 981617ca54c3Smrg{ 981717ca54c3Smrg 981817ca54c3Smrg ; 981917ca54c3Smrg return 0; 982017ca54c3Smrg} 982117ca54c3Smrg_ACEOF 9822ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9823ffe57424Smrgthen : 982417ca54c3Smrg eval $cacheid=yes 9825ffe57424Smrgelse $as_nop 982617ca54c3Smrg eval $cacheid=no 982717ca54c3Smrgfi 9828ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 982917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 983017ca54c3Smrgfi 983117ca54c3Smrg 983217ca54c3Smrg 983317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 983417ca54c3Smrg 983517ca54c3Smrg eval supported=\$$cacheid 9836ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9837ffe57424Smrgprintf "%s\n" "$supported" >&6; } 983817ca54c3Smrg if test "$supported" = "yes" ; then 983917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 984017ca54c3Smrg found="yes" 984117ca54c3Smrg fi 984217ca54c3Smrg fi 984317ca54c3Smrg 984417ca54c3Smrg 984517ca54c3Smrg 984617ca54c3Smrg 984717ca54c3Smrg 984817ca54c3Smrg 984917ca54c3Smrg 985017ca54c3Smrg 985117ca54c3Smrg 985217ca54c3Smrg 985317ca54c3Smrg 985417ca54c3Smrg 985517ca54c3Smrg 985617ca54c3Smrg 985717ca54c3Smrg 985817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 985917ca54c3Smrg 986017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 986117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9863ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9864ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9865ffe57424Smrgthen : 9866ffe57424Smrg printf %s "(cached) " >&6 9867ffe57424Smrgelse $as_nop 986817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 986917ca54c3Smrg/* end confdefs.h. */ 987017ca54c3Smrgint i; 987117ca54c3Smrg_ACEOF 9872ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9873ffe57424Smrgthen : 987417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9875ffe57424Smrgelse $as_nop 987617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 987717ca54c3Smrgfi 9878ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 987917ca54c3Smrgfi 9880ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9881ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 988217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 988317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 988417ca54c3Smrgfi 988517ca54c3Smrg 988617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 988717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 988817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 988917ca54c3Smrg fi 989017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9891ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9892ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9893ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9894ffe57424Smrgthen : 9895ffe57424Smrg printf %s "(cached) " >&6 9896ffe57424Smrgelse $as_nop 989717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 989817ca54c3Smrg/* end confdefs.h. */ 989917ca54c3Smrgint i; 990017ca54c3Smrg_ACEOF 9901ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9902ffe57424Smrgthen : 990317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9904ffe57424Smrgelse $as_nop 990517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 990617ca54c3Smrgfi 9907ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 990817ca54c3Smrgfi 9909ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9910ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 991117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 991217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 991317ca54c3Smrgfi 991417ca54c3Smrg 991517ca54c3Smrgfound="no" 991617ca54c3Smrg 991717ca54c3Smrg if test $found = "no" ; then 991817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 991917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 992017ca54c3Smrg fi 992117ca54c3Smrg 992217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 992317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 992417ca54c3Smrg fi 992517ca54c3Smrg 992617ca54c3Smrg CFLAGS="$CFLAGS -Wtrigraphs" 992717ca54c3Smrg 9928ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9929ffe57424Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 993017ca54c3Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9931ffe57424Smrg if eval test \${$cacheid+y} 9932ffe57424Smrgthen : 9933ffe57424Smrg printf %s "(cached) " >&6 9934ffe57424Smrgelse $as_nop 993517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 993617ca54c3Smrg/* end confdefs.h. */ 993717ca54c3Smrgint i; 993817ca54c3Smrgint 9939ffe57424Smrgmain (void) 994017ca54c3Smrg{ 994117ca54c3Smrg 994217ca54c3Smrg ; 994317ca54c3Smrg return 0; 994417ca54c3Smrg} 994517ca54c3Smrg_ACEOF 9946ffe57424Smrgif ac_fn_c_try_link "$LINENO" 9947ffe57424Smrgthen : 994817ca54c3Smrg eval $cacheid=yes 9949ffe57424Smrgelse $as_nop 995017ca54c3Smrg eval $cacheid=no 995117ca54c3Smrgfi 9952ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 995317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 995417ca54c3Smrgfi 995517ca54c3Smrg 995617ca54c3Smrg 995717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 995817ca54c3Smrg 995917ca54c3Smrg eval supported=\$$cacheid 9960ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9961ffe57424Smrgprintf "%s\n" "$supported" >&6; } 996217ca54c3Smrg if test "$supported" = "yes" ; then 996317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 996417ca54c3Smrg found="yes" 996517ca54c3Smrg fi 996617ca54c3Smrg fi 996717ca54c3Smrg 996817ca54c3Smrg 996917ca54c3Smrg 997017ca54c3Smrg 997117ca54c3Smrg 997217ca54c3Smrg 997317ca54c3Smrg 997417ca54c3Smrg 997517ca54c3Smrg 997617ca54c3Smrg 997717ca54c3Smrg 997817ca54c3Smrg 997917ca54c3Smrg 998017ca54c3Smrg 998117ca54c3Smrg 998217ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 998317ca54c3Smrg 998417ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 998517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9986ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9987ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9988ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9989ffe57424Smrgthen : 9990ffe57424Smrg printf %s "(cached) " >&6 9991ffe57424Smrgelse $as_nop 999217ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 999317ca54c3Smrg/* end confdefs.h. */ 999417ca54c3Smrgint i; 999517ca54c3Smrg_ACEOF 9996ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 9997ffe57424Smrgthen : 999817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9999ffe57424Smrgelse $as_nop 1000017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1000117ca54c3Smrgfi 10002ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1000317ca54c3Smrgfi 10004ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10005ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1000617ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1000717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1000817ca54c3Smrgfi 1000917ca54c3Smrg 1001017ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1001117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1001217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1001317ca54c3Smrg fi 1001417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10015ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10016ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10017ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10018ffe57424Smrgthen : 10019ffe57424Smrg printf %s "(cached) " >&6 10020ffe57424Smrgelse $as_nop 1002117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1002217ca54c3Smrg/* end confdefs.h. */ 1002317ca54c3Smrgint i; 1002417ca54c3Smrg_ACEOF 10025ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10026ffe57424Smrgthen : 1002717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10028ffe57424Smrgelse $as_nop 1002917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1003017ca54c3Smrgfi 10031ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1003217ca54c3Smrgfi 10033ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10034ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1003517ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1003617ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1003717ca54c3Smrgfi 1003817ca54c3Smrg 1003917ca54c3Smrgfound="no" 1004017ca54c3Smrg 1004117ca54c3Smrg if test $found = "no" ; then 1004217ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1004317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1004417ca54c3Smrg fi 1004517ca54c3Smrg 1004617ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1004717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1004817ca54c3Smrg fi 1004917ca54c3Smrg 1005017ca54c3Smrg CFLAGS="$CFLAGS -Warray-bounds" 1005117ca54c3Smrg 10052ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10053ffe57424Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 1005417ca54c3Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 10055ffe57424Smrg if eval test \${$cacheid+y} 10056ffe57424Smrgthen : 10057ffe57424Smrg printf %s "(cached) " >&6 10058ffe57424Smrgelse $as_nop 1005917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006017ca54c3Smrg/* end confdefs.h. */ 1006117ca54c3Smrgint i; 1006217ca54c3Smrgint 10063ffe57424Smrgmain (void) 1006417ca54c3Smrg{ 1006517ca54c3Smrg 1006617ca54c3Smrg ; 1006717ca54c3Smrg return 0; 1006817ca54c3Smrg} 1006917ca54c3Smrg_ACEOF 10070ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10071ffe57424Smrgthen : 1007217ca54c3Smrg eval $cacheid=yes 10073ffe57424Smrgelse $as_nop 1007417ca54c3Smrg eval $cacheid=no 1007517ca54c3Smrgfi 10076ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1007717ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1007817ca54c3Smrgfi 1007917ca54c3Smrg 1008017ca54c3Smrg 1008117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1008217ca54c3Smrg 1008317ca54c3Smrg eval supported=\$$cacheid 10084ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10085ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1008617ca54c3Smrg if test "$supported" = "yes" ; then 1008717ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1008817ca54c3Smrg found="yes" 1008917ca54c3Smrg fi 1009017ca54c3Smrg fi 1009117ca54c3Smrg 1009217ca54c3Smrg 1009317ca54c3Smrg 1009417ca54c3Smrg 1009517ca54c3Smrg 1009617ca54c3Smrg 1009717ca54c3Smrg 1009817ca54c3Smrg 1009917ca54c3Smrg 1010017ca54c3Smrg 1010117ca54c3Smrg 1010217ca54c3Smrg 1010317ca54c3Smrg 1010417ca54c3Smrg 1010517ca54c3Smrg 1010617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1010717ca54c3Smrg 1010817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1010917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10110ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10111ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10112ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10113ffe57424Smrgthen : 10114ffe57424Smrg printf %s "(cached) " >&6 10115ffe57424Smrgelse $as_nop 1011617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1011717ca54c3Smrg/* end confdefs.h. */ 1011817ca54c3Smrgint i; 1011917ca54c3Smrg_ACEOF 10120ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10121ffe57424Smrgthen : 1012217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10123ffe57424Smrgelse $as_nop 1012417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1012517ca54c3Smrgfi 10126ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1012717ca54c3Smrgfi 10128ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10129ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1013017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1013117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1013217ca54c3Smrgfi 1013317ca54c3Smrg 1013417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1013517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1013617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1013717ca54c3Smrg fi 1013817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10139ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10140ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10141ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10142ffe57424Smrgthen : 10143ffe57424Smrg printf %s "(cached) " >&6 10144ffe57424Smrgelse $as_nop 1014517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1014617ca54c3Smrg/* end confdefs.h. */ 1014717ca54c3Smrgint i; 1014817ca54c3Smrg_ACEOF 10149ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10150ffe57424Smrgthen : 1015117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10152ffe57424Smrgelse $as_nop 1015317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1015417ca54c3Smrgfi 10155ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1015617ca54c3Smrgfi 10157ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10158ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1015917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1016017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016117ca54c3Smrgfi 1016217ca54c3Smrg 1016317ca54c3Smrgfound="no" 1016417ca54c3Smrg 1016517ca54c3Smrg if test $found = "no" ; then 1016617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1016717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1016817ca54c3Smrg fi 1016917ca54c3Smrg 1017017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1017117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1017217ca54c3Smrg fi 1017317ca54c3Smrg 1017417ca54c3Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1017517ca54c3Smrg 10176ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10177ffe57424Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 1017817ca54c3Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10179ffe57424Smrg if eval test \${$cacheid+y} 10180ffe57424Smrgthen : 10181ffe57424Smrg printf %s "(cached) " >&6 10182ffe57424Smrgelse $as_nop 1018317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018417ca54c3Smrg/* end confdefs.h. */ 1018517ca54c3Smrgint i; 1018617ca54c3Smrgint 10187ffe57424Smrgmain (void) 1018817ca54c3Smrg{ 1018917ca54c3Smrg 1019017ca54c3Smrg ; 1019117ca54c3Smrg return 0; 1019217ca54c3Smrg} 1019317ca54c3Smrg_ACEOF 10194ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10195ffe57424Smrgthen : 1019617ca54c3Smrg eval $cacheid=yes 10197ffe57424Smrgelse $as_nop 1019817ca54c3Smrg eval $cacheid=no 1019917ca54c3Smrgfi 10200ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1020117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1020217ca54c3Smrgfi 1020317ca54c3Smrg 1020417ca54c3Smrg 1020517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1020617ca54c3Smrg 1020717ca54c3Smrg eval supported=\$$cacheid 10208ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10209ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1021017ca54c3Smrg if test "$supported" = "yes" ; then 1021117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1021217ca54c3Smrg found="yes" 1021317ca54c3Smrg fi 1021417ca54c3Smrg fi 1021517ca54c3Smrg 1021617ca54c3Smrg 1021717ca54c3Smrg 1021817ca54c3Smrg 1021917ca54c3Smrg 1022017ca54c3Smrg 1022117ca54c3Smrg 1022217ca54c3Smrg 1022317ca54c3Smrg 1022417ca54c3Smrg 1022517ca54c3Smrg 1022617ca54c3Smrg 1022717ca54c3Smrg 1022817ca54c3Smrg 1022917ca54c3Smrg 1023017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1023117ca54c3Smrg 1023217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1023317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10234ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10235ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10236ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10237ffe57424Smrgthen : 10238ffe57424Smrg printf %s "(cached) " >&6 10239ffe57424Smrgelse $as_nop 1024017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1024117ca54c3Smrg/* end confdefs.h. */ 1024217ca54c3Smrgint i; 1024317ca54c3Smrg_ACEOF 10244ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10245ffe57424Smrgthen : 1024617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10247ffe57424Smrgelse $as_nop 1024817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1024917ca54c3Smrgfi 10250ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1025117ca54c3Smrgfi 10252ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10253ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1025417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1025517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1025617ca54c3Smrgfi 1025717ca54c3Smrg 1025817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1025917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1026017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1026117ca54c3Smrg fi 1026217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10264ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10265ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10266ffe57424Smrgthen : 10267ffe57424Smrg printf %s "(cached) " >&6 10268ffe57424Smrgelse $as_nop 1026917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1027017ca54c3Smrg/* end confdefs.h. */ 1027117ca54c3Smrgint i; 1027217ca54c3Smrg_ACEOF 10273ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10274ffe57424Smrgthen : 1027517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10276ffe57424Smrgelse $as_nop 1027717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1027817ca54c3Smrgfi 10279ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1028017ca54c3Smrgfi 10281ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10282ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1028317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1028417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1028517ca54c3Smrgfi 1028617ca54c3Smrg 1028717ca54c3Smrgfound="no" 1028817ca54c3Smrg 1028917ca54c3Smrg if test $found = "no" ; then 1029017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1029117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1029217ca54c3Smrg fi 1029317ca54c3Smrg 1029417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1029517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1029617ca54c3Smrg fi 1029717ca54c3Smrg 1029817ca54c3Smrg CFLAGS="$CFLAGS -Waddress" 1029917ca54c3Smrg 10300ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10301ffe57424Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 1030217ca54c3Smrg cacheid=xorg_cv_cc_flag__Waddress 10303ffe57424Smrg if eval test \${$cacheid+y} 10304ffe57424Smrgthen : 10305ffe57424Smrg printf %s "(cached) " >&6 10306ffe57424Smrgelse $as_nop 1030717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1030817ca54c3Smrg/* end confdefs.h. */ 1030917ca54c3Smrgint i; 1031017ca54c3Smrgint 10311ffe57424Smrgmain (void) 1031217ca54c3Smrg{ 1031317ca54c3Smrg 1031417ca54c3Smrg ; 1031517ca54c3Smrg return 0; 1031617ca54c3Smrg} 1031717ca54c3Smrg_ACEOF 10318ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10319ffe57424Smrgthen : 1032017ca54c3Smrg eval $cacheid=yes 10321ffe57424Smrgelse $as_nop 1032217ca54c3Smrg eval $cacheid=no 1032317ca54c3Smrgfi 10324ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1032517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1032617ca54c3Smrgfi 1032717ca54c3Smrg 1032817ca54c3Smrg 1032917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1033017ca54c3Smrg 1033117ca54c3Smrg eval supported=\$$cacheid 10332ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10333ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1033417ca54c3Smrg if test "$supported" = "yes" ; then 1033517ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1033617ca54c3Smrg found="yes" 1033717ca54c3Smrg fi 1033817ca54c3Smrg fi 1033917ca54c3Smrg 1034017ca54c3Smrg 1034117ca54c3Smrg 1034217ca54c3Smrg 1034317ca54c3Smrg 1034417ca54c3Smrg 1034517ca54c3Smrg 1034617ca54c3Smrg 1034717ca54c3Smrg 1034817ca54c3Smrg 1034917ca54c3Smrg 1035017ca54c3Smrg 1035117ca54c3Smrg 1035217ca54c3Smrg 1035317ca54c3Smrg 1035417ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1035517ca54c3Smrg 1035617ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1035717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10358ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10359ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10360ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10361ffe57424Smrgthen : 10362ffe57424Smrg printf %s "(cached) " >&6 10363ffe57424Smrgelse $as_nop 1036417ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1036517ca54c3Smrg/* end confdefs.h. */ 1036617ca54c3Smrgint i; 1036717ca54c3Smrg_ACEOF 10368ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10369ffe57424Smrgthen : 1037017ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10371ffe57424Smrgelse $as_nop 1037217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1037317ca54c3Smrgfi 10374ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1037517ca54c3Smrgfi 10376ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10377ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1037817ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1037917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1038017ca54c3Smrgfi 1038117ca54c3Smrg 1038217ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1038317ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1038417ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1038517ca54c3Smrg fi 1038617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10387ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10388ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10389ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10390ffe57424Smrgthen : 10391ffe57424Smrg printf %s "(cached) " >&6 10392ffe57424Smrgelse $as_nop 1039317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1039417ca54c3Smrg/* end confdefs.h. */ 1039517ca54c3Smrgint i; 1039617ca54c3Smrg_ACEOF 10397ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10398ffe57424Smrgthen : 1039917ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10400ffe57424Smrgelse $as_nop 1040117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1040217ca54c3Smrgfi 10403ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1040417ca54c3Smrgfi 10405ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10406ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1040717ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1040817ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1040917ca54c3Smrgfi 1041017ca54c3Smrg 1041117ca54c3Smrgfound="no" 1041217ca54c3Smrg 1041317ca54c3Smrg if test $found = "no" ; then 1041417ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1041517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1041617ca54c3Smrg fi 1041717ca54c3Smrg 1041817ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1041917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1042017ca54c3Smrg fi 1042117ca54c3Smrg 1042217ca54c3Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1042317ca54c3Smrg 10424ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10425ffe57424Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1042617ca54c3Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10427ffe57424Smrg if eval test \${$cacheid+y} 10428ffe57424Smrgthen : 10429ffe57424Smrg printf %s "(cached) " >&6 10430ffe57424Smrgelse $as_nop 1043117ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1043217ca54c3Smrg/* end confdefs.h. */ 1043317ca54c3Smrgint i; 1043417ca54c3Smrgint 10435ffe57424Smrgmain (void) 1043617ca54c3Smrg{ 1043717ca54c3Smrg 1043817ca54c3Smrg ; 1043917ca54c3Smrg return 0; 1044017ca54c3Smrg} 1044117ca54c3Smrg_ACEOF 10442ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10443ffe57424Smrgthen : 1044417ca54c3Smrg eval $cacheid=yes 10445ffe57424Smrgelse $as_nop 1044617ca54c3Smrg eval $cacheid=no 1044717ca54c3Smrgfi 10448ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1044917ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1045017ca54c3Smrgfi 1045117ca54c3Smrg 1045217ca54c3Smrg 1045317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1045417ca54c3Smrg 1045517ca54c3Smrg eval supported=\$$cacheid 10456ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10457ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1045817ca54c3Smrg if test "$supported" = "yes" ; then 1045917ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1046017ca54c3Smrg found="yes" 1046117ca54c3Smrg fi 1046217ca54c3Smrg fi 1046317ca54c3Smrg 1046417ca54c3Smrg 1046517ca54c3Smrg 1046617ca54c3Smrg 1046717ca54c3Smrg 1046817ca54c3Smrg 1046917ca54c3Smrg 1047017ca54c3Smrg 1047117ca54c3Smrg 1047217ca54c3Smrg 1047317ca54c3Smrg 1047417ca54c3Smrg 1047517ca54c3Smrg 1047617ca54c3Smrg 1047717ca54c3Smrg 1047817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1047917ca54c3Smrg 1048017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1048117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10482ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10483ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10484ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10485ffe57424Smrgthen : 10486ffe57424Smrg printf %s "(cached) " >&6 10487ffe57424Smrgelse $as_nop 1048817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1048917ca54c3Smrg/* end confdefs.h. */ 1049017ca54c3Smrgint i; 1049117ca54c3Smrg_ACEOF 10492ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10493ffe57424Smrgthen : 1049417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10495ffe57424Smrgelse $as_nop 1049617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1049717ca54c3Smrgfi 10498ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1049917ca54c3Smrgfi 10500ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10501ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1050217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1050317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1050417ca54c3Smrgfi 1050517ca54c3Smrg 1050617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1050717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1050817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1050917ca54c3Smrg fi 1051017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10511ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10512ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10513ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10514ffe57424Smrgthen : 10515ffe57424Smrg printf %s "(cached) " >&6 10516ffe57424Smrgelse $as_nop 1051717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1051817ca54c3Smrg/* end confdefs.h. */ 1051917ca54c3Smrgint i; 1052017ca54c3Smrg_ACEOF 10521ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10522ffe57424Smrgthen : 1052317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10524ffe57424Smrgelse $as_nop 1052517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1052617ca54c3Smrgfi 10527ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1052817ca54c3Smrgfi 10529ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10530ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1053117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1053217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1053317ca54c3Smrgfi 1053417ca54c3Smrg 1053517ca54c3Smrgfound="no" 1053617ca54c3Smrg 1053717ca54c3Smrg if test $found = "no" ; then 1053817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1053917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1054017ca54c3Smrg fi 1054117ca54c3Smrg 1054217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1054317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1054417ca54c3Smrg fi 1054517ca54c3Smrg 1054617ca54c3Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1054717ca54c3Smrg 10548ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10549ffe57424Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1055017ca54c3Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10551ffe57424Smrg if eval test \${$cacheid+y} 10552ffe57424Smrgthen : 10553ffe57424Smrg printf %s "(cached) " >&6 10554ffe57424Smrgelse $as_nop 1055517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1055617ca54c3Smrg/* end confdefs.h. */ 1055717ca54c3Smrgint i; 1055817ca54c3Smrgint 10559ffe57424Smrgmain (void) 1056017ca54c3Smrg{ 1056117ca54c3Smrg 1056217ca54c3Smrg ; 1056317ca54c3Smrg return 0; 1056417ca54c3Smrg} 1056517ca54c3Smrg_ACEOF 10566ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10567ffe57424Smrgthen : 1056817ca54c3Smrg eval $cacheid=yes 10569ffe57424Smrgelse $as_nop 1057017ca54c3Smrg eval $cacheid=no 1057117ca54c3Smrgfi 10572ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1057317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1057417ca54c3Smrgfi 1057517ca54c3Smrg 1057617ca54c3Smrg 1057717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1057817ca54c3Smrg 1057917ca54c3Smrg eval supported=\$$cacheid 10580ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10581ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1058217ca54c3Smrg if test "$supported" = "yes" ; then 1058317ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1058417ca54c3Smrg found="yes" 1058517ca54c3Smrg fi 1058617ca54c3Smrg fi 1058717ca54c3Smrg 1058817ca54c3Smrg 1058917ca54c3Smrgfi 1059017ca54c3Smrg 1059117ca54c3Smrg 1059217ca54c3Smrg 1059317ca54c3Smrg 1059417ca54c3Smrg 1059517ca54c3Smrg 1059617ca54c3Smrg 1059717ca54c3Smrg CWARNFLAGS="$BASE_CFLAGS" 1059817ca54c3Smrg if test "x$GCC" = xyes ; then 1059917ca54c3Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1060017ca54c3Smrg fi 1060117ca54c3Smrg 1060217ca54c3Smrg 1060317ca54c3Smrg 1060417ca54c3Smrg 1060517ca54c3Smrg 1060617ca54c3Smrg 1060717ca54c3Smrg 1060817ca54c3Smrg 1060917ca54c3Smrg# Check whether --enable-strict-compilation was given. 10610ffe57424Smrgif test ${enable_strict_compilation+y} 10611ffe57424Smrgthen : 1061217ca54c3Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10613ffe57424Smrgelse $as_nop 1061417ca54c3Smrg STRICT_COMPILE=no 1061517ca54c3Smrgfi 1061617ca54c3Smrg 1061717ca54c3Smrg 1061817ca54c3Smrg 1061917ca54c3Smrg 1062017ca54c3Smrg 1062117ca54c3Smrg 1062217ca54c3SmrgSTRICT_CFLAGS="" 1062317ca54c3Smrg 1062417ca54c3Smrg 1062517ca54c3Smrg 1062617ca54c3Smrg 1062717ca54c3Smrg 1062817ca54c3Smrg 1062917ca54c3Smrg 1063017ca54c3Smrg 1063117ca54c3Smrg 1063217ca54c3Smrg 1063317ca54c3Smrg 1063417ca54c3Smrg 1063517ca54c3Smrg 1063617ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1063717ca54c3Smrg 1063817ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1063917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10640ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10641ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10642ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10643ffe57424Smrgthen : 10644ffe57424Smrg printf %s "(cached) " >&6 10645ffe57424Smrgelse $as_nop 1064617ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1064717ca54c3Smrg/* end confdefs.h. */ 1064817ca54c3Smrgint i; 1064917ca54c3Smrg_ACEOF 10650ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10651ffe57424Smrgthen : 1065217ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10653ffe57424Smrgelse $as_nop 1065417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1065517ca54c3Smrgfi 10656ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1065717ca54c3Smrgfi 10658ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10659ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1066017ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1066117ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1066217ca54c3Smrgfi 1066317ca54c3Smrg 1066417ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1066517ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1066617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1066717ca54c3Smrg fi 1066817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10669ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10670ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10671ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10672ffe57424Smrgthen : 10673ffe57424Smrg printf %s "(cached) " >&6 10674ffe57424Smrgelse $as_nop 1067517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1067617ca54c3Smrg/* end confdefs.h. */ 1067717ca54c3Smrgint i; 1067817ca54c3Smrg_ACEOF 10679ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10680ffe57424Smrgthen : 1068117ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10682ffe57424Smrgelse $as_nop 1068317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1068417ca54c3Smrgfi 10685ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1068617ca54c3Smrgfi 10687ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10688ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1068917ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1069017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1069117ca54c3Smrgfi 1069217ca54c3Smrg 1069317ca54c3Smrgfound="no" 1069417ca54c3Smrg 1069517ca54c3Smrg if test $found = "no" ; then 1069617ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1069717ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1069817ca54c3Smrg fi 1069917ca54c3Smrg 1070017ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1070117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1070217ca54c3Smrg fi 1070317ca54c3Smrg 1070417ca54c3Smrg CFLAGS="$CFLAGS -pedantic" 1070517ca54c3Smrg 10706ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10707ffe57424Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 1070817ca54c3Smrg cacheid=xorg_cv_cc_flag__pedantic 10709ffe57424Smrg if eval test \${$cacheid+y} 10710ffe57424Smrgthen : 10711ffe57424Smrg printf %s "(cached) " >&6 10712ffe57424Smrgelse $as_nop 1071317ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1071417ca54c3Smrg/* end confdefs.h. */ 1071517ca54c3Smrgint i; 1071617ca54c3Smrgint 10717ffe57424Smrgmain (void) 1071817ca54c3Smrg{ 1071917ca54c3Smrg 1072017ca54c3Smrg ; 1072117ca54c3Smrg return 0; 1072217ca54c3Smrg} 1072317ca54c3Smrg_ACEOF 10724ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10725ffe57424Smrgthen : 1072617ca54c3Smrg eval $cacheid=yes 10727ffe57424Smrgelse $as_nop 1072817ca54c3Smrg eval $cacheid=no 1072917ca54c3Smrgfi 10730ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1073117ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1073217ca54c3Smrgfi 1073317ca54c3Smrg 1073417ca54c3Smrg 1073517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1073617ca54c3Smrg 1073717ca54c3Smrg eval supported=\$$cacheid 10738ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10739ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1074017ca54c3Smrg if test "$supported" = "yes" ; then 1074117ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1074217ca54c3Smrg found="yes" 1074317ca54c3Smrg fi 1074417ca54c3Smrg fi 1074517ca54c3Smrg 1074617ca54c3Smrg 1074717ca54c3Smrg 1074817ca54c3Smrg 1074917ca54c3Smrg 1075017ca54c3Smrg 1075117ca54c3Smrg 1075217ca54c3Smrg 1075317ca54c3Smrg 1075417ca54c3Smrg 1075517ca54c3Smrg 1075617ca54c3Smrg 1075717ca54c3Smrg 1075817ca54c3Smrg 1075917ca54c3Smrg 1076017ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1076117ca54c3Smrg 1076217ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1076317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10765ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10766ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10767ffe57424Smrgthen : 10768ffe57424Smrg printf %s "(cached) " >&6 10769ffe57424Smrgelse $as_nop 1077017ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1077117ca54c3Smrg/* end confdefs.h. */ 1077217ca54c3Smrgint i; 1077317ca54c3Smrg_ACEOF 10774ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10775ffe57424Smrgthen : 1077617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10777ffe57424Smrgelse $as_nop 1077817ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1077917ca54c3Smrgfi 10780ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1078117ca54c3Smrgfi 10782ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10783ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1078417ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1078517ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1078617ca54c3Smrgfi 1078717ca54c3Smrg 1078817ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1078917ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1079017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1079117ca54c3Smrg fi 1079217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10793ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10794ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10795ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10796ffe57424Smrgthen : 10797ffe57424Smrg printf %s "(cached) " >&6 10798ffe57424Smrgelse $as_nop 1079917ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1080017ca54c3Smrg/* end confdefs.h. */ 1080117ca54c3Smrgint i; 1080217ca54c3Smrg_ACEOF 10803ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10804ffe57424Smrgthen : 1080517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10806ffe57424Smrgelse $as_nop 1080717ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1080817ca54c3Smrgfi 10809ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1081017ca54c3Smrgfi 10811ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10812ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1081317ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1081417ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1081517ca54c3Smrgfi 1081617ca54c3Smrg 1081717ca54c3Smrgfound="no" 1081817ca54c3Smrg 1081917ca54c3Smrg if test $found = "no" ; then 1082017ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1082117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1082217ca54c3Smrg fi 1082317ca54c3Smrg 1082417ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1082517ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1082617ca54c3Smrg fi 1082717ca54c3Smrg 1082817ca54c3Smrg CFLAGS="$CFLAGS -Werror" 1082917ca54c3Smrg 10830ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10831ffe57424Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 1083217ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror 10833ffe57424Smrg if eval test \${$cacheid+y} 10834ffe57424Smrgthen : 10835ffe57424Smrg printf %s "(cached) " >&6 10836ffe57424Smrgelse $as_nop 1083717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1083817ca54c3Smrg/* end confdefs.h. */ 1083917ca54c3Smrgint i; 1084017ca54c3Smrgint 10841ffe57424Smrgmain (void) 1084217ca54c3Smrg{ 1084317ca54c3Smrg 1084417ca54c3Smrg ; 1084517ca54c3Smrg return 0; 1084617ca54c3Smrg} 1084717ca54c3Smrg_ACEOF 10848ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10849ffe57424Smrgthen : 1085017ca54c3Smrg eval $cacheid=yes 10851ffe57424Smrgelse $as_nop 1085217ca54c3Smrg eval $cacheid=no 1085317ca54c3Smrgfi 10854ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1085517ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1085617ca54c3Smrgfi 1085717ca54c3Smrg 1085817ca54c3Smrg 1085917ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1086017ca54c3Smrg 1086117ca54c3Smrg eval supported=\$$cacheid 10862ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10863ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1086417ca54c3Smrg if test "$supported" = "yes" ; then 1086517ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1086617ca54c3Smrg found="yes" 1086717ca54c3Smrg fi 1086817ca54c3Smrg fi 1086917ca54c3Smrg 1087017ca54c3Smrg if test $found = "no" ; then 1087117ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1087217ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1087317ca54c3Smrg fi 1087417ca54c3Smrg 1087517ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1087617ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1087717ca54c3Smrg fi 1087817ca54c3Smrg 1087917ca54c3Smrg CFLAGS="$CFLAGS -errwarn" 1088017ca54c3Smrg 10881ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10882ffe57424Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 1088317ca54c3Smrg cacheid=xorg_cv_cc_flag__errwarn 10884ffe57424Smrg if eval test \${$cacheid+y} 10885ffe57424Smrgthen : 10886ffe57424Smrg printf %s "(cached) " >&6 10887ffe57424Smrgelse $as_nop 1088817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1088917ca54c3Smrg/* end confdefs.h. */ 1089017ca54c3Smrgint i; 1089117ca54c3Smrgint 10892ffe57424Smrgmain (void) 1089317ca54c3Smrg{ 1089417ca54c3Smrg 1089517ca54c3Smrg ; 1089617ca54c3Smrg return 0; 1089717ca54c3Smrg} 1089817ca54c3Smrg_ACEOF 10899ffe57424Smrgif ac_fn_c_try_link "$LINENO" 10900ffe57424Smrgthen : 1090117ca54c3Smrg eval $cacheid=yes 10902ffe57424Smrgelse $as_nop 1090317ca54c3Smrg eval $cacheid=no 1090417ca54c3Smrgfi 10905ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1090617ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1090717ca54c3Smrgfi 1090817ca54c3Smrg 1090917ca54c3Smrg 1091017ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1091117ca54c3Smrg 1091217ca54c3Smrg eval supported=\$$cacheid 10913ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10914ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1091517ca54c3Smrg if test "$supported" = "yes" ; then 1091617ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1091717ca54c3Smrg found="yes" 1091817ca54c3Smrg fi 1091917ca54c3Smrg fi 1092017ca54c3Smrg 1092117ca54c3Smrg 1092217ca54c3Smrg 1092317ca54c3Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1092417ca54c3Smrg# activate it with -Werror, so we add it here explicitly. 1092517ca54c3Smrg 1092617ca54c3Smrg 1092717ca54c3Smrg 1092817ca54c3Smrg 1092917ca54c3Smrg 1093017ca54c3Smrg 1093117ca54c3Smrg 1093217ca54c3Smrg 1093317ca54c3Smrg 1093417ca54c3Smrg 1093517ca54c3Smrg 1093617ca54c3Smrg 1093717ca54c3Smrg 1093817ca54c3Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1093917ca54c3Smrg 1094017ca54c3Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1094117ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10942ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10943ffe57424Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10944ffe57424Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10945ffe57424Smrgthen : 10946ffe57424Smrg printf %s "(cached) " >&6 10947ffe57424Smrgelse $as_nop 1094817ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1094917ca54c3Smrg/* end confdefs.h. */ 1095017ca54c3Smrgint i; 1095117ca54c3Smrg_ACEOF 10952ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10953ffe57424Smrgthen : 1095417ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10955ffe57424Smrgelse $as_nop 1095617ca54c3Smrg xorg_cv_cc_flag_unknown_warning_option=no 1095717ca54c3Smrgfi 10958ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1095917ca54c3Smrgfi 10960ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10961ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1096217ca54c3Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1096317ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1096417ca54c3Smrgfi 1096517ca54c3Smrg 1096617ca54c3Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1096717ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1096817ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1096917ca54c3Smrg fi 1097017ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10971ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10972ffe57424Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10973ffe57424Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10974ffe57424Smrgthen : 10975ffe57424Smrg printf %s "(cached) " >&6 10976ffe57424Smrgelse $as_nop 1097717ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1097817ca54c3Smrg/* end confdefs.h. */ 1097917ca54c3Smrgint i; 1098017ca54c3Smrg_ACEOF 10981ffe57424Smrgif ac_fn_c_try_compile "$LINENO" 10982ffe57424Smrgthen : 1098317ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10984ffe57424Smrgelse $as_nop 1098517ca54c3Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1098617ca54c3Smrgfi 10987ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1098817ca54c3Smrgfi 10989ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10990ffe57424Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1099117ca54c3Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1099217ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1099317ca54c3Smrgfi 1099417ca54c3Smrg 1099517ca54c3Smrgfound="no" 1099617ca54c3Smrg 1099717ca54c3Smrg if test $found = "no" ; then 1099817ca54c3Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1099917ca54c3Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1100017ca54c3Smrg fi 1100117ca54c3Smrg 1100217ca54c3Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1100317ca54c3Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1100417ca54c3Smrg fi 1100517ca54c3Smrg 1100617ca54c3Smrg CFLAGS="$CFLAGS -Werror=attributes" 1100717ca54c3Smrg 11008ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11009ffe57424Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 1101017ca54c3Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 11011ffe57424Smrg if eval test \${$cacheid+y} 11012ffe57424Smrgthen : 11013ffe57424Smrg printf %s "(cached) " >&6 11014ffe57424Smrgelse $as_nop 1101517ca54c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1101617ca54c3Smrg/* end confdefs.h. */ 1101717ca54c3Smrgint i; 1101817ca54c3Smrgint 11019ffe57424Smrgmain (void) 1102017ca54c3Smrg{ 1102117ca54c3Smrg 1102217ca54c3Smrg ; 1102317ca54c3Smrg return 0; 1102417ca54c3Smrg} 1102517ca54c3Smrg_ACEOF 11026ffe57424Smrgif ac_fn_c_try_link "$LINENO" 11027ffe57424Smrgthen : 1102817ca54c3Smrg eval $cacheid=yes 11029ffe57424Smrgelse $as_nop 1103017ca54c3Smrg eval $cacheid=no 1103117ca54c3Smrgfi 11032ffe57424Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 1103317ca54c3Smrg conftest$ac_exeext conftest.$ac_ext 1103417ca54c3Smrgfi 1103517ca54c3Smrg 1103617ca54c3Smrg 1103717ca54c3Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1103817ca54c3Smrg 1103917ca54c3Smrg eval supported=\$$cacheid 11040ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11041ffe57424Smrgprintf "%s\n" "$supported" >&6; } 1104217ca54c3Smrg if test "$supported" = "yes" ; then 1104317ca54c3Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1104417ca54c3Smrg found="yes" 1104517ca54c3Smrg fi 1104617ca54c3Smrg fi 1104717ca54c3Smrg 1104817ca54c3Smrg 1104917ca54c3Smrg 1105017ca54c3Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1105117ca54c3Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1105217ca54c3Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1105317ca54c3Smrgfi 1105417ca54c3Smrg 1105517ca54c3Smrg 1105617ca54c3Smrg 1105717ca54c3Smrg 1105817ca54c3Smrg 1105917ca54c3Smrg 1106017ca54c3Smrgcat >>confdefs.h <<_ACEOF 1106117ca54c3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1106217ca54c3Smrg_ACEOF 1106317ca54c3Smrg 1106417ca54c3Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1106517ca54c3Smrg if test "x$PVM" = "x"; then 1106617ca54c3Smrg PVM="0" 1106717ca54c3Smrg fi 1106817ca54c3Smrg 11069ffe57424Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 1107017ca54c3Smrg 1107117ca54c3Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1107217ca54c3Smrg if test "x$PVP" = "x"; then 1107317ca54c3Smrg PVP="0" 1107417ca54c3Smrg fi 1107517ca54c3Smrg 11076ffe57424Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 1107717ca54c3Smrg 1107817ca54c3Smrg 1107917ca54c3Smrg 11080ffe57424SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1108117ca54c3Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11082ffe57424Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11083ffe57424Smrgtouch \$(top_srcdir)/ChangeLog; \ 11084ffe57424Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1108517ca54c3Smrg 1108617ca54c3Smrg 1108717ca54c3Smrg 1108817ca54c3Smrg 1108917ca54c3Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1109017ca54c3SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1109117ca54c3Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11092ffe57424Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11093ffe57424Smrgtouch \$(top_srcdir)/INSTALL; \ 11094ffe57424Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11095ffe57424Smrg 11096ea1d6981Smrg 11097ea1d6981Smrg 1109817ca54c3Smrg 1109917ca54c3Smrg 1110017ca54c3Smrg 11101ffe57424Smrgcase $host_os in 11102ffe57424Smrg solaris*) 11103ffe57424Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11104ffe57424Smrg # check for a man page file found in later versions that use 11105ffe57424Smrg # traditional section numbers instead 11106ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11107ffe57424Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11108ffe57424Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11109ffe57424Smrgthen : 11110ffe57424Smrg printf %s "(cached) " >&6 11111ffe57424Smrgelse $as_nop 11112ffe57424Smrg test "$cross_compiling" = yes && 11113ffe57424Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11114ffe57424Smrgif test -r "/usr/share/man/man7/attributes.7"; then 11115ffe57424Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 11116ffe57424Smrgelse 11117ffe57424Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 11118ffe57424Smrgfi 11119ffe57424Smrgfi 11120ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11121ffe57424Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11122ffe57424Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11123ffe57424Smrgthen : 11124ffe57424Smrg SYSV_MAN_SECTIONS=false 11125ffe57424Smrgelse $as_nop 11126ffe57424Smrg SYSV_MAN_SECTIONS=true 11127ffe57424Smrgfi 11128ffe57424Smrg 11129ffe57424Smrg ;; 11130ffe57424Smrg *) SYSV_MAN_SECTIONS=false ;; 11131ffe57424Smrgesac 1113217ca54c3Smrg 1113317ca54c3Smrgif test x$APP_MAN_SUFFIX = x ; then 1113417ca54c3Smrg APP_MAN_SUFFIX=1 1113517ca54c3Smrgfi 1113617ca54c3Smrgif test x$APP_MAN_DIR = x ; then 1113717ca54c3Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1113817ca54c3Smrgfi 1113917ca54c3Smrg 1114017ca54c3Smrgif test x$LIB_MAN_SUFFIX = x ; then 1114117ca54c3Smrg LIB_MAN_SUFFIX=3 1114217ca54c3Smrgfi 1114317ca54c3Smrgif test x$LIB_MAN_DIR = x ; then 1114417ca54c3Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1114517ca54c3Smrgfi 1114617ca54c3Smrg 1114717ca54c3Smrgif test x$FILE_MAN_SUFFIX = x ; then 11148ffe57424Smrg case $SYSV_MAN_SECTIONS in 11149ffe57424Smrg true) FILE_MAN_SUFFIX=4 ;; 11150ffe57424Smrg *) FILE_MAN_SUFFIX=5 ;; 1115117ca54c3Smrg esac 1115217ca54c3Smrgfi 1115317ca54c3Smrgif test x$FILE_MAN_DIR = x ; then 1115417ca54c3Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1115517ca54c3Smrgfi 1115617ca54c3Smrg 1115717ca54c3Smrgif test x$MISC_MAN_SUFFIX = x ; then 11158ffe57424Smrg case $SYSV_MAN_SECTIONS in 11159ffe57424Smrg true) MISC_MAN_SUFFIX=5 ;; 11160ffe57424Smrg *) MISC_MAN_SUFFIX=7 ;; 1116117ca54c3Smrg esac 1116217ca54c3Smrgfi 1116317ca54c3Smrgif test x$MISC_MAN_DIR = x ; then 1116417ca54c3Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1116517ca54c3Smrgfi 1116617ca54c3Smrg 1116717ca54c3Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 11168ffe57424Smrg case $SYSV_MAN_SECTIONS in 11169ffe57424Smrg true) DRIVER_MAN_SUFFIX=7 ;; 11170ffe57424Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1117117ca54c3Smrg esac 1117217ca54c3Smrgfi 1117317ca54c3Smrgif test x$DRIVER_MAN_DIR = x ; then 1117417ca54c3Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1117517ca54c3Smrgfi 1117617ca54c3Smrg 1117717ca54c3Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 11178ffe57424Smrg case $SYSV_MAN_SECTIONS in 11179ffe57424Smrg true) ADMIN_MAN_SUFFIX=1m ;; 11180ffe57424Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1118117ca54c3Smrg esac 1118217ca54c3Smrgfi 1118317ca54c3Smrgif test x$ADMIN_MAN_DIR = x ; then 1118417ca54c3Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1118517ca54c3Smrgfi 1118617ca54c3Smrg 1118717ca54c3Smrg 1118817ca54c3Smrg 1118917ca54c3Smrg 1119017ca54c3Smrg 1119117ca54c3Smrg 1119217ca54c3Smrg 1119317ca54c3Smrg 1119417ca54c3Smrg 1119517ca54c3Smrg 1119617ca54c3Smrg 1119717ca54c3Smrg 1119817ca54c3Smrg 1119917ca54c3Smrg 1120017ca54c3Smrg 1120117ca54c3SmrgXORG_MAN_PAGE="X Version 11" 1120217ca54c3Smrg 1120317ca54c3SmrgMAN_SUBSTS="\ 1120417ca54c3Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1120517ca54c3Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1120617ca54c3Smrg -e 's|__xservername__|Xorg|g' \ 1120717ca54c3Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1120817ca54c3Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1120917ca54c3Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1121017ca54c3Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1121117ca54c3Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1121217ca54c3Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1121317ca54c3Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1121417ca54c3Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1121517ca54c3Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1121617ca54c3Smrg 1121717ca54c3Smrg 1121817ca54c3Smrg 1121917ca54c3Smrg# Check whether --enable-silent-rules was given. 11220ffe57424Smrgif test ${enable_silent_rules+y} 11221ffe57424Smrgthen : 1122217ca54c3Smrg enableval=$enable_silent_rules; 1122317ca54c3Smrgfi 1122417ca54c3Smrg 1122517ca54c3Smrgcase $enable_silent_rules in # ((( 1122617ca54c3Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1122717ca54c3Smrg no) AM_DEFAULT_VERBOSITY=1;; 1122817ca54c3Smrg *) AM_DEFAULT_VERBOSITY=0;; 1122917ca54c3Smrgesac 1123017ca54c3Smrgam_make=${MAKE-make} 11231ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11232ffe57424Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 11233ffe57424Smrgif test ${am_cv_make_support_nested_variables+y} 11234ffe57424Smrgthen : 11235ffe57424Smrg printf %s "(cached) " >&6 11236ffe57424Smrgelse $as_nop 11237ffe57424Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 1123817ca54c3SmrgBAR0=false 1123917ca54c3SmrgBAR1=true 1124017ca54c3SmrgV=1 1124117ca54c3Smrgam__doit: 1124217ca54c3Smrg @$(TRUE) 1124317ca54c3Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1124417ca54c3Smrg am_cv_make_support_nested_variables=yes 1124517ca54c3Smrgelse 1124617ca54c3Smrg am_cv_make_support_nested_variables=no 1124717ca54c3Smrgfi 1124817ca54c3Smrgfi 11249ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11250ffe57424Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 1125117ca54c3Smrgif test $am_cv_make_support_nested_variables = yes; then 1125217ca54c3Smrg AM_V='$(V)' 1125317ca54c3Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1125417ca54c3Smrgelse 1125517ca54c3Smrg AM_V=$AM_DEFAULT_VERBOSITY 1125617ca54c3Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1125717ca54c3Smrgfi 1125817ca54c3SmrgAM_BACKSLASH='\' 1125917ca54c3Smrg 1126017ca54c3Smrg 1126117ca54c3Smrg 1126217ca54c3Smrg 1126317ca54c3Smrg# Check whether --enable-specs was given. 11264ffe57424Smrgif test ${enable_specs+y} 11265ffe57424Smrgthen : 1126617ca54c3Smrg enableval=$enable_specs; build_specs=$enableval 11267ffe57424Smrgelse $as_nop 1126817ca54c3Smrg build_specs=yes 1126917ca54c3Smrgfi 1127017ca54c3Smrg 1127117ca54c3Smrg 1127217ca54c3Smrg if test x$build_specs = xyes; then 1127317ca54c3Smrg ENABLE_SPECS_TRUE= 1127417ca54c3Smrg ENABLE_SPECS_FALSE='#' 1127517ca54c3Smrgelse 1127617ca54c3Smrg ENABLE_SPECS_TRUE='#' 1127717ca54c3Smrg ENABLE_SPECS_FALSE= 1127817ca54c3Smrgfi 1127917ca54c3Smrg 11280ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 11281ffe57424Smrgprintf %s "checking whether to build functional specifications... " >&6; } 11282ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 11283ffe57424Smrgprintf "%s\n" "$build_specs" >&6; } 1128417ca54c3Smrg 1128517ca54c3Smrg 1128617ca54c3Smrg 1128717ca54c3Smrg 1128817ca54c3Smrg 1128917ca54c3Smrg# Check whether --with-xmlto was given. 11290ffe57424Smrgif test ${with_xmlto+y} 11291ffe57424Smrgthen : 1129217ca54c3Smrg withval=$with_xmlto; use_xmlto=$withval 11293ffe57424Smrgelse $as_nop 1129417ca54c3Smrg use_xmlto=auto 1129517ca54c3Smrgfi 1129617ca54c3Smrg 1129717ca54c3Smrg 1129817ca54c3Smrg 1129917ca54c3Smrgif test "x$use_xmlto" = x"auto"; then 1130017ca54c3Smrg # Extract the first word of "xmlto", so it can be a program name with args. 1130117ca54c3Smrgset dummy xmlto; ac_word=$2 11302ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11303ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11304ffe57424Smrgif test ${ac_cv_path_XMLTO+y} 11305ffe57424Smrgthen : 11306ffe57424Smrg printf %s "(cached) " >&6 11307ffe57424Smrgelse $as_nop 1130817ca54c3Smrg case $XMLTO in 1130917ca54c3Smrg [\\/]* | ?:[\\/]*) 1131017ca54c3Smrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 1131117ca54c3Smrg ;; 1131217ca54c3Smrg *) 1131317ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1131417ca54c3Smrgfor as_dir in $PATH 1131517ca54c3Smrgdo 1131617ca54c3Smrg IFS=$as_save_IFS 11317ffe57424Smrg case $as_dir in #((( 11318ffe57424Smrg '') as_dir=./ ;; 11319ffe57424Smrg */) ;; 11320ffe57424Smrg *) as_dir=$as_dir/ ;; 11321ffe57424Smrg esac 1132217ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11323ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11324ffe57424Smrg ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11325ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1132617ca54c3Smrg break 2 1132717ca54c3Smrg fi 1132817ca54c3Smrgdone 1132917ca54c3Smrg done 1133017ca54c3SmrgIFS=$as_save_IFS 1133117ca54c3Smrg 1133217ca54c3Smrg ;; 1133317ca54c3Smrgesac 1133417ca54c3Smrgfi 1133517ca54c3SmrgXMLTO=$ac_cv_path_XMLTO 1133617ca54c3Smrgif test -n "$XMLTO"; then 11337ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11338ffe57424Smrgprintf "%s\n" "$XMLTO" >&6; } 1133917ca54c3Smrgelse 11340ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341ffe57424Smrgprintf "%s\n" "no" >&6; } 1134217ca54c3Smrgfi 1134317ca54c3Smrg 1134417ca54c3Smrg 1134517ca54c3Smrg if test "x$XMLTO" = "x"; then 11346ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11347ffe57424Smrgprintf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 1134817ca54c3Smrg have_xmlto=no 1134917ca54c3Smrg else 1135017ca54c3Smrg have_xmlto=yes 1135117ca54c3Smrg fi 1135217ca54c3Smrgelif test "x$use_xmlto" = x"yes" ; then 1135317ca54c3Smrg # Extract the first word of "xmlto", so it can be a program name with args. 1135417ca54c3Smrgset dummy xmlto; ac_word=$2 11355ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11356ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11357ffe57424Smrgif test ${ac_cv_path_XMLTO+y} 11358ffe57424Smrgthen : 11359ffe57424Smrg printf %s "(cached) " >&6 11360ffe57424Smrgelse $as_nop 1136117ca54c3Smrg case $XMLTO in 1136217ca54c3Smrg [\\/]* | ?:[\\/]*) 1136317ca54c3Smrg ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 1136417ca54c3Smrg ;; 1136517ca54c3Smrg *) 1136617ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1136717ca54c3Smrgfor as_dir in $PATH 1136817ca54c3Smrgdo 1136917ca54c3Smrg IFS=$as_save_IFS 11370ffe57424Smrg case $as_dir in #((( 11371ffe57424Smrg '') as_dir=./ ;; 11372ffe57424Smrg */) ;; 11373ffe57424Smrg *) as_dir=$as_dir/ ;; 11374ffe57424Smrg esac 1137517ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11376ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11377ffe57424Smrg ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11378ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1137917ca54c3Smrg break 2 1138017ca54c3Smrg fi 1138117ca54c3Smrgdone 1138217ca54c3Smrg done 1138317ca54c3SmrgIFS=$as_save_IFS 1138417ca54c3Smrg 1138517ca54c3Smrg ;; 1138617ca54c3Smrgesac 1138717ca54c3Smrgfi 1138817ca54c3SmrgXMLTO=$ac_cv_path_XMLTO 1138917ca54c3Smrgif test -n "$XMLTO"; then 11390ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11391ffe57424Smrgprintf "%s\n" "$XMLTO" >&6; } 1139217ca54c3Smrgelse 11393ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394ffe57424Smrgprintf "%s\n" "no" >&6; } 1139517ca54c3Smrgfi 1139617ca54c3Smrg 1139717ca54c3Smrg 1139817ca54c3Smrg if test "x$XMLTO" = "x"; then 1139917ca54c3Smrg as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 1140017ca54c3Smrg fi 1140117ca54c3Smrg have_xmlto=yes 1140217ca54c3Smrgelif test "x$use_xmlto" = x"no" ; then 1140317ca54c3Smrg if test "x$XMLTO" != "x"; then 11404ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11405ffe57424Smrgprintf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 1140617ca54c3Smrg fi 1140717ca54c3Smrg have_xmlto=no 1140817ca54c3Smrgelse 1140917ca54c3Smrg as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 1141017ca54c3Smrgfi 1141117ca54c3Smrg 1141217ca54c3Smrg# Test for a minimum version of xmlto, if provided. 1141317ca54c3Smrgif test "$have_xmlto" = yes; then 1141417ca54c3Smrg # scrape the xmlto version 11415ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11416ffe57424Smrgprintf %s "checking the xmlto version... " >&6; } 1141717ca54c3Smrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11418ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11419ffe57424Smrgprintf "%s\n" "$xmlto_version" >&6; } 1142017ca54c3Smrg as_arg_v1=$xmlto_version 1142117ca54c3Smrgas_arg_v2=0.0.22 1142217ca54c3Smrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 1142317ca54c3Smrgcase $? in #( 1142417ca54c3Smrg 1) : 1142517ca54c3Smrg if test "x$use_xmlto" = xauto; then 11426ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 11427ffe57424Smrgprintf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 1142817ca54c3Smrg have_xmlto=no 1142917ca54c3Smrg else 1143017ca54c3Smrg as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 1143117ca54c3Smrg fi ;; #( 1143217ca54c3Smrg 0) : 1143317ca54c3Smrg ;; #( 1143417ca54c3Smrg 2) : 1143517ca54c3Smrg ;; #( 1143617ca54c3Smrg *) : 1143717ca54c3Smrg ;; 1143817ca54c3Smrgesac 1143917ca54c3Smrgfi 1144017ca54c3Smrg 1144117ca54c3Smrg# Test for the ability of xmlto to generate a text target 11442ea1d6981Smrg# 11443ea1d6981Smrg# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11444ea1d6981Smrg# following test for empty XML docbook files. 11445ea1d6981Smrg# For compatibility reasons use the following empty XML docbook file and if 11446ea1d6981Smrg# it fails try it again with a non-empty XML file. 1144717ca54c3Smrghave_xmlto_text=no 1144817ca54c3Smrgcat > conftest.xml << "EOF" 1144917ca54c3SmrgEOF 11450ffe57424Smrgif test "$have_xmlto" = yes 11451ffe57424Smrgthen : 11452ffe57424Smrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11453ffe57424Smrgthen : 1145417ca54c3Smrg have_xmlto_text=yes 11455ffe57424Smrgelse $as_nop 11456ea1d6981Smrg # Try it again with a non-empty XML file. 11457ea1d6981Smrg cat > conftest.xml << "EOF" 11458ea1d6981Smrg<x></x> 11459ea1d6981SmrgEOF 11460ffe57424Smrg if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11461ffe57424Smrgthen : 11462ea1d6981Smrg have_xmlto_text=yes 11463ffe57424Smrgelse $as_nop 11464ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11465ffe57424Smrgprintf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 1146617ca54c3Smrgfi 1146717ca54c3Smrgfi 11468ea1d6981Smrgfi 1146917ca54c3Smrgrm -f conftest.xml 1147017ca54c3Smrg if test $have_xmlto_text = yes; then 1147117ca54c3Smrg HAVE_XMLTO_TEXT_TRUE= 1147217ca54c3Smrg HAVE_XMLTO_TEXT_FALSE='#' 1147317ca54c3Smrgelse 1147417ca54c3Smrg HAVE_XMLTO_TEXT_TRUE='#' 1147517ca54c3Smrg HAVE_XMLTO_TEXT_FALSE= 1147617ca54c3Smrgfi 1147717ca54c3Smrg 1147817ca54c3Smrg if test "$have_xmlto" = yes; then 1147917ca54c3Smrg HAVE_XMLTO_TRUE= 1148017ca54c3Smrg HAVE_XMLTO_FALSE='#' 1148117ca54c3Smrgelse 1148217ca54c3Smrg HAVE_XMLTO_TRUE='#' 1148317ca54c3Smrg HAVE_XMLTO_FALSE= 1148417ca54c3Smrgfi 1148517ca54c3Smrg 1148617ca54c3Smrg 1148717ca54c3Smrg 1148817ca54c3Smrg 1148917ca54c3Smrg 1149017ca54c3Smrg 1149117ca54c3Smrg# Check whether --with-fop was given. 11492ffe57424Smrgif test ${with_fop+y} 11493ffe57424Smrgthen : 1149417ca54c3Smrg withval=$with_fop; use_fop=$withval 11495ffe57424Smrgelse $as_nop 1149617ca54c3Smrg use_fop=auto 1149717ca54c3Smrgfi 1149817ca54c3Smrg 1149917ca54c3Smrg 1150017ca54c3Smrg 1150117ca54c3Smrgif test "x$use_fop" = x"auto"; then 1150217ca54c3Smrg # Extract the first word of "fop", so it can be a program name with args. 1150317ca54c3Smrgset dummy fop; ac_word=$2 11504ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11505ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11506ffe57424Smrgif test ${ac_cv_path_FOP+y} 11507ffe57424Smrgthen : 11508ffe57424Smrg printf %s "(cached) " >&6 11509ffe57424Smrgelse $as_nop 1151017ca54c3Smrg case $FOP in 1151117ca54c3Smrg [\\/]* | ?:[\\/]*) 1151217ca54c3Smrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 1151317ca54c3Smrg ;; 1151417ca54c3Smrg *) 1151517ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1151617ca54c3Smrgfor as_dir in $PATH 1151717ca54c3Smrgdo 1151817ca54c3Smrg IFS=$as_save_IFS 11519ffe57424Smrg case $as_dir in #((( 11520ffe57424Smrg '') as_dir=./ ;; 11521ffe57424Smrg */) ;; 11522ffe57424Smrg *) as_dir=$as_dir/ ;; 11523ffe57424Smrg esac 1152417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11525ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11526ffe57424Smrg ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11527ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1152817ca54c3Smrg break 2 1152917ca54c3Smrg fi 1153017ca54c3Smrgdone 1153117ca54c3Smrg done 1153217ca54c3SmrgIFS=$as_save_IFS 1153317ca54c3Smrg 1153417ca54c3Smrg ;; 1153517ca54c3Smrgesac 1153617ca54c3Smrgfi 1153717ca54c3SmrgFOP=$ac_cv_path_FOP 1153817ca54c3Smrgif test -n "$FOP"; then 11539ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11540ffe57424Smrgprintf "%s\n" "$FOP" >&6; } 1154117ca54c3Smrgelse 11542ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11543ffe57424Smrgprintf "%s\n" "no" >&6; } 1154417ca54c3Smrgfi 1154517ca54c3Smrg 1154617ca54c3Smrg 1154717ca54c3Smrg if test "x$FOP" = "x"; then 11548ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 11549ffe57424Smrgprintf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 1155017ca54c3Smrg have_fop=no 1155117ca54c3Smrg else 1155217ca54c3Smrg have_fop=yes 1155317ca54c3Smrg fi 1155417ca54c3Smrgelif test "x$use_fop" = x"yes" ; then 1155517ca54c3Smrg # Extract the first word of "fop", so it can be a program name with args. 1155617ca54c3Smrgset dummy fop; ac_word=$2 11557ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11558ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11559ffe57424Smrgif test ${ac_cv_path_FOP+y} 11560ffe57424Smrgthen : 11561ffe57424Smrg printf %s "(cached) " >&6 11562ffe57424Smrgelse $as_nop 1156317ca54c3Smrg case $FOP in 1156417ca54c3Smrg [\\/]* | ?:[\\/]*) 1156517ca54c3Smrg ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 1156617ca54c3Smrg ;; 1156717ca54c3Smrg *) 1156817ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1156917ca54c3Smrgfor as_dir in $PATH 1157017ca54c3Smrgdo 1157117ca54c3Smrg IFS=$as_save_IFS 11572ffe57424Smrg case $as_dir in #((( 11573ffe57424Smrg '') as_dir=./ ;; 11574ffe57424Smrg */) ;; 11575ffe57424Smrg *) as_dir=$as_dir/ ;; 11576ffe57424Smrg esac 1157717ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11578ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11579ffe57424Smrg ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11580ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1158117ca54c3Smrg break 2 1158217ca54c3Smrg fi 1158317ca54c3Smrgdone 1158417ca54c3Smrg done 1158517ca54c3SmrgIFS=$as_save_IFS 1158617ca54c3Smrg 1158717ca54c3Smrg ;; 1158817ca54c3Smrgesac 1158917ca54c3Smrgfi 1159017ca54c3SmrgFOP=$ac_cv_path_FOP 1159117ca54c3Smrgif test -n "$FOP"; then 11592ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11593ffe57424Smrgprintf "%s\n" "$FOP" >&6; } 1159417ca54c3Smrgelse 11595ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11596ffe57424Smrgprintf "%s\n" "no" >&6; } 1159717ca54c3Smrgfi 1159817ca54c3Smrg 1159917ca54c3Smrg 1160017ca54c3Smrg if test "x$FOP" = "x"; then 1160117ca54c3Smrg as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 1160217ca54c3Smrg fi 1160317ca54c3Smrg have_fop=yes 1160417ca54c3Smrgelif test "x$use_fop" = x"no" ; then 1160517ca54c3Smrg if test "x$FOP" != "x"; then 11606ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 11607ffe57424Smrgprintf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 1160817ca54c3Smrg fi 1160917ca54c3Smrg have_fop=no 1161017ca54c3Smrgelse 1161117ca54c3Smrg as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 1161217ca54c3Smrgfi 1161317ca54c3Smrg 1161417ca54c3Smrg# Test for a minimum version of fop, if provided. 1161517ca54c3Smrg 1161617ca54c3Smrg if test "$have_fop" = yes; then 1161717ca54c3Smrg HAVE_FOP_TRUE= 1161817ca54c3Smrg HAVE_FOP_FALSE='#' 1161917ca54c3Smrgelse 1162017ca54c3Smrg HAVE_FOP_TRUE='#' 1162117ca54c3Smrg HAVE_FOP_FALSE= 1162217ca54c3Smrgfi 1162317ca54c3Smrg 1162417ca54c3Smrg 1162517ca54c3Smrg 1162617ca54c3Smrg 1162717ca54c3Smrg# Preserves the interface, should it be implemented later 1162817ca54c3Smrg 1162917ca54c3Smrg 1163017ca54c3Smrg 1163117ca54c3Smrg# Check whether --with-xsltproc was given. 11632ffe57424Smrgif test ${with_xsltproc+y} 11633ffe57424Smrgthen : 1163417ca54c3Smrg withval=$with_xsltproc; use_xsltproc=$withval 11635ffe57424Smrgelse $as_nop 1163617ca54c3Smrg use_xsltproc=auto 1163717ca54c3Smrgfi 1163817ca54c3Smrg 1163917ca54c3Smrg 1164017ca54c3Smrg 1164117ca54c3Smrgif test "x$use_xsltproc" = x"auto"; then 1164217ca54c3Smrg # Extract the first word of "xsltproc", so it can be a program name with args. 1164317ca54c3Smrgset dummy xsltproc; ac_word=$2 11644ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11645ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11646ffe57424Smrgif test ${ac_cv_path_XSLTPROC+y} 11647ffe57424Smrgthen : 11648ffe57424Smrg printf %s "(cached) " >&6 11649ffe57424Smrgelse $as_nop 1165017ca54c3Smrg case $XSLTPROC in 1165117ca54c3Smrg [\\/]* | ?:[\\/]*) 1165217ca54c3Smrg ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 1165317ca54c3Smrg ;; 1165417ca54c3Smrg *) 1165517ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1165617ca54c3Smrgfor as_dir in $PATH 1165717ca54c3Smrgdo 1165817ca54c3Smrg IFS=$as_save_IFS 11659ffe57424Smrg case $as_dir in #((( 11660ffe57424Smrg '') as_dir=./ ;; 11661ffe57424Smrg */) ;; 11662ffe57424Smrg *) as_dir=$as_dir/ ;; 11663ffe57424Smrg esac 1166417ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11665ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11666ffe57424Smrg ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11667ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1166817ca54c3Smrg break 2 1166917ca54c3Smrg fi 1167017ca54c3Smrgdone 1167117ca54c3Smrg done 1167217ca54c3SmrgIFS=$as_save_IFS 1167317ca54c3Smrg 1167417ca54c3Smrg ;; 1167517ca54c3Smrgesac 1167617ca54c3Smrgfi 1167717ca54c3SmrgXSLTPROC=$ac_cv_path_XSLTPROC 1167817ca54c3Smrgif test -n "$XSLTPROC"; then 11679ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11680ffe57424Smrgprintf "%s\n" "$XSLTPROC" >&6; } 1168117ca54c3Smrgelse 11682ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11683ffe57424Smrgprintf "%s\n" "no" >&6; } 1168417ca54c3Smrgfi 1168517ca54c3Smrg 1168617ca54c3Smrg 1168717ca54c3Smrg if test "x$XSLTPROC" = "x"; then 11688ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 11689ffe57424Smrgprintf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 1169017ca54c3Smrg have_xsltproc=no 1169117ca54c3Smrg else 1169217ca54c3Smrg have_xsltproc=yes 1169317ca54c3Smrg fi 1169417ca54c3Smrgelif test "x$use_xsltproc" = x"yes" ; then 1169517ca54c3Smrg # Extract the first word of "xsltproc", so it can be a program name with args. 1169617ca54c3Smrgset dummy xsltproc; ac_word=$2 11697ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11698ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11699ffe57424Smrgif test ${ac_cv_path_XSLTPROC+y} 11700ffe57424Smrgthen : 11701ffe57424Smrg printf %s "(cached) " >&6 11702ffe57424Smrgelse $as_nop 1170317ca54c3Smrg case $XSLTPROC in 1170417ca54c3Smrg [\\/]* | ?:[\\/]*) 1170517ca54c3Smrg ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 1170617ca54c3Smrg ;; 1170717ca54c3Smrg *) 1170817ca54c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1170917ca54c3Smrgfor as_dir in $PATH 1171017ca54c3Smrgdo 1171117ca54c3Smrg IFS=$as_save_IFS 11712ffe57424Smrg case $as_dir in #((( 11713ffe57424Smrg '') as_dir=./ ;; 11714ffe57424Smrg */) ;; 11715ffe57424Smrg *) as_dir=$as_dir/ ;; 11716ffe57424Smrg esac 1171717ca54c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11718ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11719ffe57424Smrg ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11720ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 1172117ca54c3Smrg break 2 1172217ca54c3Smrg fi 1172317ca54c3Smrgdone 1172417ca54c3Smrg done 1172517ca54c3SmrgIFS=$as_save_IFS 1172617ca54c3Smrg 1172717ca54c3Smrg ;; 1172817ca54c3Smrgesac 1172917ca54c3Smrgfi 1173017ca54c3SmrgXSLTPROC=$ac_cv_path_XSLTPROC 1173117ca54c3Smrgif test -n "$XSLTPROC"; then 11732ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11733ffe57424Smrgprintf "%s\n" "$XSLTPROC" >&6; } 1173417ca54c3Smrgelse 11735ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11736ffe57424Smrgprintf "%s\n" "no" >&6; } 1173717ca54c3Smrgfi 1173817ca54c3Smrg 1173917ca54c3Smrg 1174017ca54c3Smrg if test "x$XSLTPROC" = "x"; then 1174117ca54c3Smrg as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 1174217ca54c3Smrg fi 1174317ca54c3Smrg have_xsltproc=yes 1174417ca54c3Smrgelif test "x$use_xsltproc" = x"no" ; then 1174517ca54c3Smrg if test "x$XSLTPROC" != "x"; then 11746ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 11747ffe57424Smrgprintf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 1174817ca54c3Smrg fi 1174917ca54c3Smrg have_xsltproc=no 1175017ca54c3Smrgelse 1175117ca54c3Smrg as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 1175217ca54c3Smrgfi 1175317ca54c3Smrg 1175417ca54c3Smrg if test "$have_xsltproc" = yes; then 1175517ca54c3Smrg HAVE_XSLTPROC_TRUE= 1175617ca54c3Smrg HAVE_XSLTPROC_FALSE='#' 1175717ca54c3Smrgelse 1175817ca54c3Smrg HAVE_XSLTPROC_TRUE='#' 1175917ca54c3Smrg HAVE_XSLTPROC_FALSE= 1176017ca54c3Smrgfi 1176117ca54c3Smrg 1176217ca54c3Smrg 1176317ca54c3Smrg 11764ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 11765ffe57424Smrgprintf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 1176617ca54c3SmrgXORG_SGML_PATH= 1176717ca54c3Smrgif test -n "$PKG_CONFIG" && \ 11768ffe57424Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 1176917ca54c3Smrg ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 1177017ca54c3Smrg ac_status=$? 11771ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1177217ca54c3Smrg test $ac_status = 0; }; then 1177317ca54c3Smrg XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 1177417ca54c3Smrgelse 1177517ca54c3Smrg : 1177617ca54c3Smrg 1177717ca54c3Smrgfi 1177817ca54c3Smrg 1177917ca54c3Smrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1178017ca54c3Smrg# the path and the name of the doc stylesheet 1178117ca54c3Smrgif test "x$XORG_SGML_PATH" != "x" ; then 11782ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 11783ffe57424Smrgprintf "%s\n" "$XORG_SGML_PATH" >&6; } 1178417ca54c3Smrg STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1178517ca54c3Smrg XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1178617ca54c3Smrgelse 11787ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788ffe57424Smrgprintf "%s\n" "no" >&6; } 1178917ca54c3Smrgfi 1179017ca54c3Smrg 1179117ca54c3Smrg 1179217ca54c3Smrg 1179317ca54c3Smrg 1179417ca54c3Smrg if test "x$XSL_STYLESHEET" != "x"; then 1179517ca54c3Smrg HAVE_STYLESHEETS_TRUE= 1179617ca54c3Smrg HAVE_STYLESHEETS_FALSE='#' 1179717ca54c3Smrgelse 1179817ca54c3Smrg HAVE_STYLESHEETS_TRUE='#' 1179917ca54c3Smrg HAVE_STYLESHEETS_FALSE= 1180017ca54c3Smrgfi 1180117ca54c3Smrg 1180217ca54c3Smrg 1180317ca54c3Smrg 1180417ca54c3Smrg 1180517ca54c3Smrg 118065395ea76Smrg 118075395ea76Smrg 118085395ea76Smrg 118095395ea76Smrg 118105395ea76Smrg if test -n "$PYTHON"; then 118115395ea76Smrg # If the user set $PYTHON, use it and don't search something else. 11812ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5 11813ffe57424Smrgprintf %s "checking whether $PYTHON version is >= 3.6... " >&6; } 118145395ea76Smrg prog="import sys 118155395ea76Smrg# split strings by '.' and convert to numeric. Append some zeros 118165395ea76Smrg# because we need at least 4 digits for the hex conversion. 118175395ea76Smrg# map returns an iterator in Python 3.0 and a list in 2.x 118185395ea76Smrgminver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 118195395ea76Smrgminverhex = 0 118205395ea76Smrg# xrange is not present in Python 3.0 and range returns an iterator 118215395ea76Smrgfor i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 118225395ea76Smrgsys.exit(sys.hexversion < minverhex)" 118235395ea76Smrg if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 118245395ea76Smrg ($PYTHON -c "$prog") >&5 2>&5 118255395ea76Smrg ac_status=$? 118265395ea76Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 11827ffe57424Smrg (exit $ac_status); } 11828ffe57424Smrgthen : 11829ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11830ffe57424Smrgprintf "%s\n" "yes" >&6; } 11831ffe57424Smrgelse $as_nop 11832ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11833ffe57424Smrgprintf "%s\n" "no" >&6; } 118345395ea76Smrg as_fn_error $? "Python interpreter is too old" "$LINENO" 5 118355395ea76Smrgfi 118365395ea76Smrg am_display_PYTHON=$PYTHON 118375395ea76Smrg else 118385395ea76Smrg # Otherwise, try each interpreter until we find one that satisfies 118395395ea76Smrg # VERSION. 11840ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5 11841ffe57424Smrgprintf %s "checking for a Python interpreter with version >= 3.6... " >&6; } 11842ffe57424Smrgif test ${am_cv_pathless_PYTHON+y} 11843ffe57424Smrgthen : 11844ffe57424Smrg printf %s "(cached) " >&6 11845ffe57424Smrgelse $as_nop 118465395ea76Smrg 118475395ea76Smrg for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 118485395ea76Smrg test "$am_cv_pathless_PYTHON" = none && break 118495395ea76Smrg prog="import sys 118505395ea76Smrg# split strings by '.' and convert to numeric. Append some zeros 118515395ea76Smrg# because we need at least 4 digits for the hex conversion. 118525395ea76Smrg# map returns an iterator in Python 3.0 and a list in 2.x 118535395ea76Smrgminver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 118545395ea76Smrgminverhex = 0 118555395ea76Smrg# xrange is not present in Python 3.0 and range returns an iterator 118565395ea76Smrgfor i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 118575395ea76Smrgsys.exit(sys.hexversion < minverhex)" 118585395ea76Smrg if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 118595395ea76Smrg ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 118605395ea76Smrg ac_status=$? 118615395ea76Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 11862ffe57424Smrg (exit $ac_status); } 11863ffe57424Smrgthen : 118645395ea76Smrg break 118655395ea76Smrgfi 118665395ea76Smrg done 118675395ea76Smrgfi 11868ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 11869ffe57424Smrgprintf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 118705395ea76Smrg # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 118715395ea76Smrg if test "$am_cv_pathless_PYTHON" = none; then 118725395ea76Smrg PYTHON=: 118735395ea76Smrg else 118745395ea76Smrg # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 118755395ea76Smrgset dummy $am_cv_pathless_PYTHON; ac_word=$2 11876ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11877ffe57424Smrgprintf %s "checking for $ac_word... " >&6; } 11878ffe57424Smrgif test ${ac_cv_path_PYTHON+y} 11879ffe57424Smrgthen : 11880ffe57424Smrg printf %s "(cached) " >&6 11881ffe57424Smrgelse $as_nop 118825395ea76Smrg case $PYTHON in 118835395ea76Smrg [\\/]* | ?:[\\/]*) 118845395ea76Smrg ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 118855395ea76Smrg ;; 118865395ea76Smrg *) 118875395ea76Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 118885395ea76Smrgfor as_dir in $PATH 118895395ea76Smrgdo 118905395ea76Smrg IFS=$as_save_IFS 11891ffe57424Smrg case $as_dir in #((( 11892ffe57424Smrg '') as_dir=./ ;; 11893ffe57424Smrg */) ;; 11894ffe57424Smrg *) as_dir=$as_dir/ ;; 11895ffe57424Smrg esac 118965395ea76Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11897ffe57424Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11898ffe57424Smrg ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 11899ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 119005395ea76Smrg break 2 119015395ea76Smrg fi 119025395ea76Smrgdone 119035395ea76Smrg done 119045395ea76SmrgIFS=$as_save_IFS 119055395ea76Smrg 119065395ea76Smrg ;; 119075395ea76Smrgesac 119085395ea76Smrgfi 119095395ea76SmrgPYTHON=$ac_cv_path_PYTHON 119105395ea76Smrgif test -n "$PYTHON"; then 11911ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 11912ffe57424Smrgprintf "%s\n" "$PYTHON" >&6; } 119135395ea76Smrgelse 11914ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11915ffe57424Smrgprintf "%s\n" "no" >&6; } 119165395ea76Smrgfi 119175395ea76Smrg 119185395ea76Smrg 119195395ea76Smrg fi 119205395ea76Smrg am_display_PYTHON=$am_cv_pathless_PYTHON 119215395ea76Smrg fi 119225395ea76Smrg 119235395ea76Smrg 119245395ea76Smrg if test "$PYTHON" = :; then 11925ffe57424Smrg : 119265395ea76Smrg else 119275395ea76Smrg 11928ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 11929ffe57424Smrgprintf %s "checking for $am_display_PYTHON version... " >&6; } 11930ffe57424Smrgif test ${am_cv_python_version+y} 11931ffe57424Smrgthen : 11932ffe57424Smrg printf %s "(cached) " >&6 11933ffe57424Smrgelse $as_nop 11934ffe57424Smrg am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 119355395ea76Smrgfi 11936ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 11937ffe57424Smrgprintf "%s\n" "$am_cv_python_version" >&6; } 119385395ea76Smrg PYTHON_VERSION=$am_cv_python_version 119395395ea76Smrg 119405395ea76Smrg 11941ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 11942ffe57424Smrgprintf %s "checking for $am_display_PYTHON platform... " >&6; } 11943ffe57424Smrgif test ${am_cv_python_platform+y} 11944ffe57424Smrgthen : 11945ffe57424Smrg printf %s "(cached) " >&6 11946ffe57424Smrgelse $as_nop 11947ffe57424Smrg am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 11948ffe57424Smrgfi 11949ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 11950ffe57424Smrgprintf "%s\n" "$am_cv_python_platform" >&6; } 11951ffe57424Smrg PYTHON_PLATFORM=$am_cv_python_platform 119525395ea76Smrg 119535395ea76Smrg 11954ffe57424Smrg if test "x$prefix" = xNONE; then 11955ffe57424Smrg am__usable_prefix=$ac_default_prefix 11956ffe57424Smrg else 11957ffe57424Smrg am__usable_prefix=$prefix 11958ffe57424Smrg fi 119595395ea76Smrg 11960ffe57424Smrg # Allow user to request using sys.* values from Python, 11961ffe57424Smrg # instead of the GNU $prefix values. 11962ffe57424Smrg 11963ffe57424Smrg# Check whether --with-python-sys-prefix was given. 11964ffe57424Smrgif test ${with_python_sys_prefix+y} 11965ffe57424Smrgthen : 11966ffe57424Smrg withval=$with_python_sys_prefix; am_use_python_sys=: 11967ffe57424Smrgelse $as_nop 11968ffe57424Smrg am_use_python_sys=false 11969ffe57424Smrgfi 11970ffe57424Smrg 11971ffe57424Smrg 11972ffe57424Smrg # Allow user to override whatever the default Python prefix is. 11973ffe57424Smrg 11974ffe57424Smrg# Check whether --with-python_prefix was given. 11975ffe57424Smrgif test ${with_python_prefix+y} 11976ffe57424Smrgthen : 11977ffe57424Smrg withval=$with_python_prefix; am_python_prefix_subst=$withval 11978ffe57424Smrg am_cv_python_prefix=$withval 11979ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 11980ffe57424Smrgprintf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 11981ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 11982ffe57424Smrgprintf "%s\n" "$am_cv_python_prefix" >&6; } 11983ffe57424Smrgelse $as_nop 11984ffe57424Smrg 11985ffe57424Smrg if $am_use_python_sys; then 11986ffe57424Smrg # using python sys.prefix value, not GNU 11987ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 11988ffe57424Smrgprintf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 11989ffe57424Smrgif test ${am_cv_python_prefix+y} 11990ffe57424Smrgthen : 11991ffe57424Smrg printf %s "(cached) " >&6 11992ffe57424Smrgelse $as_nop 11993ffe57424Smrg am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 11994ffe57424Smrgfi 11995ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 11996ffe57424Smrgprintf "%s\n" "$am_cv_python_prefix" >&6; } 11997ffe57424Smrg 11998ffe57424Smrg case $am_cv_python_prefix in 11999ffe57424Smrg $am__usable_prefix*) 12000ffe57424Smrg am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 12001ffe57424Smrg am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 12002ffe57424Smrg ;; 12003ffe57424Smrg *) 12004ffe57424Smrg am_python_prefix_subst=$am_cv_python_prefix 12005ffe57424Smrg ;; 12006ffe57424Smrg esac 12007ffe57424Smrg else # using GNU prefix value, not python sys.prefix 12008ffe57424Smrg am_python_prefix_subst='${prefix}' 12009ffe57424Smrg am_python_prefix=$am_python_prefix_subst 12010ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 12011ffe57424Smrgprintf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 12012ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 12013ffe57424Smrgprintf "%s\n" "$am_python_prefix" >&6; } 12014ffe57424Smrg fi 12015ffe57424Smrgfi 120165395ea76Smrg 12017ffe57424Smrg # Substituting python_prefix_subst value. 12018ffe57424Smrg PYTHON_PREFIX=$am_python_prefix_subst 12019ffe57424Smrg 12020ffe57424Smrg 12021ffe57424Smrg # emacs-page Now do it all over again for Python exec_prefix, but with yet 12022ffe57424Smrg # another conditional: fall back to regular prefix if that was specified. 12023ffe57424Smrg 12024ffe57424Smrg# Check whether --with-python_exec_prefix was given. 12025ffe57424Smrgif test ${with_python_exec_prefix+y} 12026ffe57424Smrgthen : 12027ffe57424Smrg withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 12028ffe57424Smrg am_cv_python_exec_prefix=$withval 12029ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 12030ffe57424Smrgprintf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 12031ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12032ffe57424Smrgprintf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12033ffe57424Smrgelse $as_nop 12034ffe57424Smrg 12035ffe57424Smrg # no explicit --with-python_exec_prefix, but if 12036ffe57424Smrg # --with-python_prefix was given, use its value for python_exec_prefix too. 12037ffe57424Smrg if test -n "$with_python_prefix" 12038ffe57424Smrgthen : 12039ffe57424Smrg am_python_exec_prefix_subst=$with_python_prefix 12040ffe57424Smrg am_cv_python_exec_prefix=$with_python_prefix 12041ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 12042ffe57424Smrgprintf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 12043ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12044ffe57424Smrgprintf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12045ffe57424Smrgelse $as_nop 12046ffe57424Smrg 12047ffe57424Smrg # Set am__usable_exec_prefix whether using GNU or Python values, 12048ffe57424Smrg # since we use that variable for pyexecdir. 12049ffe57424Smrg if test "x$exec_prefix" = xNONE; then 12050ffe57424Smrg am__usable_exec_prefix=$am__usable_prefix 12051ffe57424Smrg else 12052ffe57424Smrg am__usable_exec_prefix=$exec_prefix 12053ffe57424Smrg fi 12054ffe57424Smrg # 12055ffe57424Smrg if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 12056ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 12057ffe57424Smrgprintf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 12058ffe57424Smrgif test ${am_cv_python_exec_prefix+y} 12059ffe57424Smrgthen : 12060ffe57424Smrg printf %s "(cached) " >&6 12061ffe57424Smrgelse $as_nop 12062ffe57424Smrg am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 12063ffe57424Smrgfi 12064ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12065ffe57424Smrgprintf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12066ffe57424Smrg case $am_cv_python_exec_prefix in 12067ffe57424Smrg $am__usable_exec_prefix*) 12068ffe57424Smrg am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 12069ffe57424Smrg am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 12070ffe57424Smrg ;; 12071ffe57424Smrg *) 12072ffe57424Smrg am_python_exec_prefix_subst=$am_cv_python_exec_prefix 12073ffe57424Smrg ;; 12074ffe57424Smrg esac 12075ffe57424Smrg else # using GNU $exec_prefix, not python sys.exec_prefix 12076ffe57424Smrg am_python_exec_prefix_subst='${exec_prefix}' 12077ffe57424Smrg am_python_exec_prefix=$am_python_exec_prefix_subst 12078ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 12079ffe57424Smrgprintf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 12080ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 12081ffe57424Smrgprintf "%s\n" "$am_python_exec_prefix" >&6; } 12082ffe57424Smrg fi 12083ffe57424Smrgfi 120845395ea76Smrgfi 120855395ea76Smrg 12086ffe57424Smrg # Substituting python_exec_prefix_subst. 12087ffe57424Smrg PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 120885395ea76Smrg 12089ffe57424Smrg 12090ffe57424Smrg # Factor out some code duplication into this shell variable. 120915395ea76Smrg am_python_setup_sysconfig="\ 120925395ea76Smrgimport sys 120935395ea76Smrg# Prefer sysconfig over distutils.sysconfig, for better compatibility 120945395ea76Smrg# with python 3.x. See automake bug#10227. 120955395ea76Smrgtry: 120965395ea76Smrg import sysconfig 120975395ea76Smrgexcept ImportError: 120985395ea76Smrg can_use_sysconfig = 0 120995395ea76Smrgelse: 121005395ea76Smrg can_use_sysconfig = 1 121015395ea76Smrg# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 121025395ea76Smrg# <https://github.com/pypa/virtualenv/issues/118> 121035395ea76Smrgtry: 121045395ea76Smrg from platform import python_implementation 121055395ea76Smrg if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 121065395ea76Smrg can_use_sysconfig = 0 121075395ea76Smrgexcept ImportError: 121085395ea76Smrg pass" 121095395ea76Smrg 121105395ea76Smrg 12111ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 12112ffe57424Smrgprintf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 12113ffe57424Smrgif test ${am_cv_python_pythondir+y} 12114ffe57424Smrgthen : 12115ffe57424Smrg printf %s "(cached) " >&6 12116ffe57424Smrgelse $as_nop 12117ffe57424Smrg if test "x$am_cv_python_prefix" = x; then 12118ffe57424Smrg am_py_prefix=$am__usable_prefix 12119ffe57424Smrg else 12120ffe57424Smrg am_py_prefix=$am_cv_python_prefix 12121ffe57424Smrg fi 12122ffe57424Smrg am_cv_python_pythondir=`$PYTHON -c " 121235395ea76Smrg$am_python_setup_sysconfig 121245395ea76Smrgif can_use_sysconfig: 12125ffe57424Smrg sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 121265395ea76Smrgelse: 12127ffe57424Smrg from distutils import sysconfig 12128ffe57424Smrg sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 121295395ea76Smrgsys.stdout.write(sitedir)"` 12130ffe57424Smrg # 12131ffe57424Smrg case $am_cv_python_pythondir in 12132ffe57424Smrg $am_py_prefix*) 12133ffe57424Smrg am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 12134ffe57424Smrg am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 12135ffe57424Smrg ;; 12136ffe57424Smrg *) 12137ffe57424Smrg case $am_py_prefix in 12138ffe57424Smrg /usr|/System*) ;; 12139ffe57424Smrg *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 12140ffe57424Smrg ;; 121415395ea76Smrg esac 12142ffe57424Smrg ;; 12143ffe57424Smrg esac 121445395ea76Smrg 121455395ea76Smrgfi 12146ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 12147ffe57424Smrgprintf "%s\n" "$am_cv_python_pythondir" >&6; } 121485395ea76Smrg pythondir=$am_cv_python_pythondir 121495395ea76Smrg 121505395ea76Smrg 12151ffe57424Smrg pkgpythondir=\${pythondir}/$PACKAGE 121525395ea76Smrg 121535395ea76Smrg 12154ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 12155ffe57424Smrgprintf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 12156ffe57424Smrgif test ${am_cv_python_pyexecdir+y} 12157ffe57424Smrgthen : 12158ffe57424Smrg printf %s "(cached) " >&6 12159ffe57424Smrgelse $as_nop 12160ffe57424Smrg if test "x$am_cv_python_exec_prefix" = x; then 12161ffe57424Smrg am_py_exec_prefix=$am__usable_exec_prefix 12162ffe57424Smrg else 12163ffe57424Smrg am_py_exec_prefix=$am_cv_python_exec_prefix 12164ffe57424Smrg fi 12165ffe57424Smrg am_cv_python_pyexecdir=`$PYTHON -c " 121665395ea76Smrg$am_python_setup_sysconfig 121675395ea76Smrgif can_use_sysconfig: 12168ffe57424Smrg sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 121695395ea76Smrgelse: 12170ffe57424Smrg from distutils import sysconfig 12171ffe57424Smrg sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 121725395ea76Smrgsys.stdout.write(sitedir)"` 12173ffe57424Smrg # 12174ffe57424Smrg case $am_cv_python_pyexecdir in 12175ffe57424Smrg $am_py_exec_prefix*) 12176ffe57424Smrg am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 12177ffe57424Smrg am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 12178ffe57424Smrg ;; 12179ffe57424Smrg *) 12180ffe57424Smrg case $am_py_exec_prefix in 12181ffe57424Smrg /usr|/System*) ;; 12182ffe57424Smrg *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 12183ffe57424Smrg ;; 121845395ea76Smrg esac 12185ffe57424Smrg ;; 12186ffe57424Smrg esac 121875395ea76Smrg 121885395ea76Smrgfi 12189ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 12190ffe57424Smrgprintf "%s\n" "$am_cv_python_pyexecdir" >&6; } 121915395ea76Smrg pyexecdir=$am_cv_python_pyexecdir 121925395ea76Smrg 121935395ea76Smrg 12194ffe57424Smrg pkgpyexecdir=\${pyexecdir}/$PACKAGE 121955395ea76Smrg 121965395ea76Smrg 121975395ea76Smrg 121985395ea76Smrg fi 121995395ea76Smrg 122005395ea76Smrg if test "$PYTHON" != :; then 122015395ea76Smrg HAVE_PYTHON_TRUE= 122025395ea76Smrg HAVE_PYTHON_FALSE='#' 122035395ea76Smrgelse 122045395ea76Smrg HAVE_PYTHON_TRUE='#' 122055395ea76Smrg HAVE_PYTHON_FALSE= 122065395ea76Smrgfi 122075395ea76Smrg 122085395ea76Smrg 122095395ea76Smrg 122105395ea76Smrg 1221117ca54c3Smrg# Check whether --enable-legacy was given. 12212ffe57424Smrgif test ${enable_legacy+y} 12213ffe57424Smrgthen : 1221417ca54c3Smrg enableval=$enable_legacy; LEGACY=$enableval 12215ffe57424Smrgelse $as_nop 1221617ca54c3Smrg LEGACY=no 1221717ca54c3Smrgfi 1221817ca54c3Smrg 1221917ca54c3Smrg if test "x$LEGACY" = "xyes"; then 1222017ca54c3Smrg LEGACY_TRUE= 1222117ca54c3Smrg LEGACY_FALSE='#' 1222217ca54c3Smrgelse 1222317ca54c3Smrg LEGACY_TRUE='#' 1222417ca54c3Smrg LEGACY_FALSE= 1222517ca54c3Smrgfi 1222617ca54c3Smrg 1222717ca54c3Smrg 12228ffe57424Smrgac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 12229ffe57424Smrgif test "x$ac_cv_header_sys_select_h" = xyes 12230ffe57424Smrgthen : 12231ffe57424Smrg printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 1223217ca54c3Smrg 1223317ca54c3Smrgfi 12234ffe57424Smrgac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 12235ffe57424Smrgif test "x$ac_cv_header_sys_param_h" = xyes 12236ffe57424Smrgthen : 12237ffe57424Smrg printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 1223817ca54c3Smrg 12239ffe57424Smrgfi 12240ffe57424Smrgac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 12241ffe57424Smrgif test "x$ac_cv_header_sys_types_h" = xyes 12242ffe57424Smrgthen : 12243ffe57424Smrg printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 12244ffe57424Smrg 12245ffe57424Smrgfi 12246ffe57424Smrgac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 12247ffe57424Smrgif test "x$ac_cv_header_sys_time_h" = xyes 12248ffe57424Smrgthen : 12249ffe57424Smrg printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 12250ffe57424Smrg 12251ffe57424Smrgfi 1225217ca54c3Smrg 1225317ca54c3Smrg 1225417ca54c3Smrg# Handle Xpoll.h.in 1225517ca54c3Smrg# Avoid determining fds_bits on WIN32 hosts (not including cygwin) 1225617ca54c3Smrgcase $host_os in 1225717ca54c3Smrg mingw*) fds_bits_found=true;; 1225817ca54c3Smrg *) fds_bits_found=false;; 1225917ca54c3Smrgesac 1226017ca54c3Smrg 1226117ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1226217ca54c3Smrg ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" " 1226317ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 1226417ca54c3Smrg #include <sys/param.h> 1226517ca54c3Smrg #endif 1226617ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 1226717ca54c3Smrg #include <sys/types.h> 1226817ca54c3Smrg #endif 1226917ca54c3Smrg #ifdef HAVE_SYS_TIME_H 1227017ca54c3Smrg #include <sys/time.h> 1227117ca54c3Smrg #endif 1227217ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 1227317ca54c3Smrg #include <sys/select.h> 1227417ca54c3Smrg #endif 1227517ca54c3Smrg 1227617ca54c3Smrg" 12277ffe57424Smrgif test "x$ac_cv_member_fd_set_fds_bits" = xyes 12278ffe57424Smrgthen : 1227917ca54c3Smrg 1228017ca54c3Smrg fds_bits_found=plain 1228117ca54c3Smrg USE_FDS_BITS="fds_bits" 1228217ca54c3Smrg 1228317ca54c3Smrgfi 1228417ca54c3Smrg 1228517ca54c3Smrgfi 1228617ca54c3Smrg 1228717ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1228817ca54c3Smrg ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" " 1228917ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 1229017ca54c3Smrg #include <sys/param.h> 1229117ca54c3Smrg #endif 1229217ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 1229317ca54c3Smrg #include <sys/types.h> 1229417ca54c3Smrg #endif 1229517ca54c3Smrg #ifdef HAVE_SYS_TIME_H 1229617ca54c3Smrg #include <sys/time.h> 1229717ca54c3Smrg #endif 1229817ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 1229917ca54c3Smrg #include <sys/select.h> 1230017ca54c3Smrg #endif 1230117ca54c3Smrg 1230217ca54c3Smrg" 12303ffe57424Smrgif test "x$ac_cv_member_fd_set___fds_bits" = xyes 12304ffe57424Smrgthen : 1230517ca54c3Smrg 1230617ca54c3Smrg fds_bits_found=underscores 1230717ca54c3Smrg USE_FDS_BITS="__fds_bits" 1230817ca54c3Smrg 1230917ca54c3Smrgfi 1231017ca54c3Smrg 1231117ca54c3Smrgfi 1231217ca54c3Smrg 1231317ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 1231417ca54c3Smrg as_fn_error $? "Could not determine how to access the fds_bits or equivalent 1231517ca54c3Smrg structure in fd_set on your platform." "$LINENO" 5 1231617ca54c3Smrgfi 1231717ca54c3Smrg 1231817ca54c3Smrg 1231917ca54c3Smrg 12320452262e1Smrgac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc" 1232117ca54c3Smrg 1232217ca54c3Smrg 1232317ca54c3Smrgcat >confcache <<\_ACEOF 1232417ca54c3Smrg# This file is a shell script that caches the results of configure 1232517ca54c3Smrg# tests run on this system so they can be shared between configure 1232617ca54c3Smrg# scripts and configure runs, see configure's option --config-cache. 1232717ca54c3Smrg# It is not useful on other systems. If it contains results you don't 1232817ca54c3Smrg# want to keep, you may remove or edit it. 1232917ca54c3Smrg# 1233017ca54c3Smrg# config.status only pays attention to the cache file if you give it 1233117ca54c3Smrg# the --recheck option to rerun configure. 1233217ca54c3Smrg# 1233317ca54c3Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1233417ca54c3Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1233517ca54c3Smrg# following values. 1233617ca54c3Smrg 1233717ca54c3Smrg_ACEOF 1233817ca54c3Smrg 1233917ca54c3Smrg# The following way of writing the cache mishandles newlines in values, 1234017ca54c3Smrg# but we know of no workaround that is simple, portable, and efficient. 1234117ca54c3Smrg# So, we kill variables containing newlines. 1234217ca54c3Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 1234317ca54c3Smrg# and sets the high bit in the cache file unless we assign to the vars. 1234417ca54c3Smrg( 1234517ca54c3Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1234617ca54c3Smrg eval ac_val=\$$ac_var 1234717ca54c3Smrg case $ac_val in #( 1234817ca54c3Smrg *${as_nl}*) 1234917ca54c3Smrg case $ac_var in #( 12350ffe57424Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12351ffe57424Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1235217ca54c3Smrg esac 1235317ca54c3Smrg case $ac_var in #( 1235417ca54c3Smrg _ | IFS | as_nl) ;; #( 1235517ca54c3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1235617ca54c3Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1235717ca54c3Smrg esac ;; 1235817ca54c3Smrg esac 1235917ca54c3Smrg done 1236017ca54c3Smrg 1236117ca54c3Smrg (set) 2>&1 | 1236217ca54c3Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 1236317ca54c3Smrg *${as_nl}ac_space=\ *) 1236417ca54c3Smrg # `set' does not quote correctly, so add quotes: double-quote 1236517ca54c3Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1236617ca54c3Smrg sed -n \ 1236717ca54c3Smrg "s/'/'\\\\''/g; 1236817ca54c3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1236917ca54c3Smrg ;; #( 1237017ca54c3Smrg *) 1237117ca54c3Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 1237217ca54c3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1237317ca54c3Smrg ;; 1237417ca54c3Smrg esac | 1237517ca54c3Smrg sort 1237617ca54c3Smrg) | 1237717ca54c3Smrg sed ' 1237817ca54c3Smrg /^ac_cv_env_/b end 1237917ca54c3Smrg t clear 1238017ca54c3Smrg :clear 12381ffe57424Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 1238217ca54c3Smrg t end 1238317ca54c3Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1238417ca54c3Smrg :end' >>confcache 1238517ca54c3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1238617ca54c3Smrg if test -w "$cache_file"; then 1238717ca54c3Smrg if test "x$cache_file" != "x/dev/null"; then 12388ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12389ffe57424Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1239017ca54c3Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1239117ca54c3Smrg cat confcache >"$cache_file" 1239217ca54c3Smrg else 1239317ca54c3Smrg case $cache_file in #( 1239417ca54c3Smrg */* | ?:*) 1239517ca54c3Smrg mv -f confcache "$cache_file"$$ && 1239617ca54c3Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1239717ca54c3Smrg *) 1239817ca54c3Smrg mv -f confcache "$cache_file" ;; 1239917ca54c3Smrg esac 1240017ca54c3Smrg fi 1240117ca54c3Smrg fi 1240217ca54c3Smrg else 12403ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12404ffe57424Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 1240517ca54c3Smrg fi 1240617ca54c3Smrgfi 1240717ca54c3Smrgrm -f confcache 1240817ca54c3Smrg 1240917ca54c3Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1241017ca54c3Smrg# Let make expand exec_prefix. 1241117ca54c3Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1241217ca54c3Smrg 1241317ca54c3Smrg# Transform confdefs.h into DEFS. 1241417ca54c3Smrg# Protect against shell expansion while executing Makefile rules. 1241517ca54c3Smrg# Protect against Makefile macro expansion. 1241617ca54c3Smrg# 1241717ca54c3Smrg# If the first sed substitution is executed (which looks for macros that 1241817ca54c3Smrg# take arguments), then branch to the quote section. Otherwise, 1241917ca54c3Smrg# look for a macro that doesn't take arguments. 1242017ca54c3Smrgac_script=' 1242117ca54c3Smrg:mline 1242217ca54c3Smrg/\\$/{ 1242317ca54c3Smrg N 1242417ca54c3Smrg s,\\\n,, 1242517ca54c3Smrg b mline 1242617ca54c3Smrg} 1242717ca54c3Smrgt clear 1242817ca54c3Smrg:clear 1242917ca54c3Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 1243017ca54c3Smrgt quote 1243117ca54c3Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 1243217ca54c3Smrgt quote 1243317ca54c3Smrgb any 1243417ca54c3Smrg:quote 1243517ca54c3Smrgs/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 1243617ca54c3Smrgs/\[/\\&/g 1243717ca54c3Smrgs/\]/\\&/g 1243817ca54c3Smrgs/\$/$$/g 1243917ca54c3SmrgH 1244017ca54c3Smrg:any 1244117ca54c3Smrg${ 1244217ca54c3Smrg g 1244317ca54c3Smrg s/^\n// 1244417ca54c3Smrg s/\n/ /g 1244517ca54c3Smrg p 1244617ca54c3Smrg} 1244717ca54c3Smrg' 1244817ca54c3SmrgDEFS=`sed -n "$ac_script" confdefs.h` 1244917ca54c3Smrg 1245017ca54c3Smrg 1245117ca54c3Smrgac_libobjs= 1245217ca54c3Smrgac_ltlibobjs= 1245317ca54c3SmrgU= 1245417ca54c3Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1245517ca54c3Smrg # 1. Remove the extension, and $U if already installed. 1245617ca54c3Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12457ffe57424Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 1245817ca54c3Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1245917ca54c3Smrg # will be set to the directory where LIBOBJS objects are built. 1246017ca54c3Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1246117ca54c3Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1246217ca54c3Smrgdone 1246317ca54c3SmrgLIBOBJS=$ac_libobjs 1246417ca54c3Smrg 1246517ca54c3SmrgLTLIBOBJS=$ac_ltlibobjs 1246617ca54c3Smrg 1246717ca54c3Smrg 12468ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12469ffe57424Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 1247017ca54c3Smrg if test -n "$am_sleep_pid"; then 1247117ca54c3Smrg # Hide warnings about reused PIDs. 1247217ca54c3Smrg wait $am_sleep_pid 2>/dev/null 1247317ca54c3Smrg fi 12474ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12475ffe57424Smrgprintf "%s\n" "done" >&6; } 1247617ca54c3Smrg if test -n "$EXEEXT"; then 1247717ca54c3Smrg am__EXEEXT_TRUE= 1247817ca54c3Smrg am__EXEEXT_FALSE='#' 1247917ca54c3Smrgelse 1248017ca54c3Smrg am__EXEEXT_TRUE='#' 1248117ca54c3Smrg am__EXEEXT_FALSE= 1248217ca54c3Smrgfi 1248317ca54c3Smrg 1248417ca54c3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1248517ca54c3Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1248617ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1248717ca54c3Smrgfi 1248817ca54c3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1248917ca54c3Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1249017ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1249117ca54c3Smrgfi 1249217ca54c3Smrgif test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 1249317ca54c3Smrg as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 1249417ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1249517ca54c3Smrgfi 1249617ca54c3Smrgif test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 1249717ca54c3Smrg as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 1249817ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1249917ca54c3Smrgfi 1250017ca54c3Smrgif test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 1250117ca54c3Smrg as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 1250217ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1250317ca54c3Smrgfi 1250417ca54c3Smrgif test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 1250517ca54c3Smrg as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 1250617ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1250717ca54c3Smrgfi 1250817ca54c3Smrgif test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 1250917ca54c3Smrg as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 1251017ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1251117ca54c3Smrgfi 1251217ca54c3Smrgif test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 1251317ca54c3Smrg as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 1251417ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1251517ca54c3Smrgfi 125165395ea76Smrgif test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 125175395ea76Smrg as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 125185395ea76SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 125195395ea76Smrgfi 1252017ca54c3Smrgif test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then 1252117ca54c3Smrg as_fn_error $? "conditional \"LEGACY\" was never defined. 1252217ca54c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1252317ca54c3Smrgfi 1252417ca54c3Smrg 1252517ca54c3Smrg: "${CONFIG_STATUS=./config.status}" 1252617ca54c3Smrgac_write_fail=0 1252717ca54c3Smrgac_clean_files_save=$ac_clean_files 1252817ca54c3Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 12529ffe57424Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12530ffe57424Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1253117ca54c3Smrgas_write_fail=0 1253217ca54c3Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1253317ca54c3Smrg#! $SHELL 1253417ca54c3Smrg# Generated by $as_me. 1253517ca54c3Smrg# Run this file to recreate the current configuration. 1253617ca54c3Smrg# Compiler output produced by configure, useful for debugging 1253717ca54c3Smrg# configure, is in config.log if it exists. 1253817ca54c3Smrg 1253917ca54c3Smrgdebug=false 1254017ca54c3Smrgac_cs_recheck=false 1254117ca54c3Smrgac_cs_silent=false 1254217ca54c3Smrg 1254317ca54c3SmrgSHELL=\${CONFIG_SHELL-$SHELL} 1254417ca54c3Smrgexport SHELL 1254517ca54c3Smrg_ASEOF 1254617ca54c3Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1254717ca54c3Smrg## -------------------- ## 1254817ca54c3Smrg## M4sh Initialization. ## 1254917ca54c3Smrg## -------------------- ## 1255017ca54c3Smrg 1255117ca54c3Smrg# Be more Bourne compatible 1255217ca54c3SmrgDUALCASE=1; export DUALCASE # for MKS sh 12553ffe57424Smrgas_nop=: 12554ffe57424Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12555ffe57424Smrgthen : 1255617ca54c3Smrg emulate sh 1255717ca54c3Smrg NULLCMD=: 1255817ca54c3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1255917ca54c3Smrg # is contrary to our usage. Disable this feature. 1256017ca54c3Smrg alias -g '${1+"$@"}'='"$@"' 1256117ca54c3Smrg setopt NO_GLOB_SUBST 12562ffe57424Smrgelse $as_nop 1256317ca54c3Smrg case `(set -o) 2>/dev/null` in #( 1256417ca54c3Smrg *posix*) : 1256517ca54c3Smrg set -o posix ;; #( 1256617ca54c3Smrg *) : 1256717ca54c3Smrg ;; 1256817ca54c3Smrgesac 1256917ca54c3Smrgfi 1257017ca54c3Smrg 1257117ca54c3Smrg 12572ffe57424Smrg 12573ffe57424Smrg# Reset variables that may have inherited troublesome values from 12574ffe57424Smrg# the environment. 12575ffe57424Smrg 12576ffe57424Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 12577ffe57424Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 12578ffe57424Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 12579ffe57424Smrg# Quoting is to prevent editors from complaining about space-tab. 1258017ca54c3Smrgas_nl=' 1258117ca54c3Smrg' 1258217ca54c3Smrgexport as_nl 12583ffe57424SmrgIFS=" "" $as_nl" 12584ffe57424Smrg 12585ffe57424SmrgPS1='$ ' 12586ffe57424SmrgPS2='> ' 12587ffe57424SmrgPS4='+ ' 12588ffe57424Smrg 12589ffe57424Smrg# Ensure predictable behavior from utilities with locale-dependent output. 12590ffe57424SmrgLC_ALL=C 12591ffe57424Smrgexport LC_ALL 12592ffe57424SmrgLANGUAGE=C 12593ffe57424Smrgexport LANGUAGE 12594ffe57424Smrg 12595ffe57424Smrg# We cannot yet rely on "unset" to work, but we need these variables 12596ffe57424Smrg# to be unset--not just set to an empty or harmless value--now, to 12597ffe57424Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12598ffe57424Smrg# also avoids known problems related to "unset" and subshell syntax 12599ffe57424Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12600ffe57424Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12601ffe57424Smrgdo eval test \${$as_var+y} \ 12602ffe57424Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12603ffe57424Smrgdone 12604ffe57424Smrg 12605ffe57424Smrg# Ensure that fds 0, 1, and 2 are open. 12606ffe57424Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12607ffe57424Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12608ffe57424Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 1260917ca54c3Smrg 1261017ca54c3Smrg# The user is always right. 12611ffe57424Smrgif ${PATH_SEPARATOR+false} :; then 1261217ca54c3Smrg PATH_SEPARATOR=: 1261317ca54c3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1261417ca54c3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1261517ca54c3Smrg PATH_SEPARATOR=';' 1261617ca54c3Smrg } 1261717ca54c3Smrgfi 1261817ca54c3Smrg 1261917ca54c3Smrg 1262017ca54c3Smrg# Find who we are. Look in the path if we contain no directory separator. 1262117ca54c3Smrgas_myself= 1262217ca54c3Smrgcase $0 in #(( 1262317ca54c3Smrg *[\\/]* ) as_myself=$0 ;; 1262417ca54c3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1262517ca54c3Smrgfor as_dir in $PATH 1262617ca54c3Smrgdo 1262717ca54c3Smrg IFS=$as_save_IFS 12628ffe57424Smrg case $as_dir in #((( 12629ffe57424Smrg '') as_dir=./ ;; 12630ffe57424Smrg */) ;; 12631ffe57424Smrg *) as_dir=$as_dir/ ;; 12632ffe57424Smrg esac 12633ffe57424Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1263417ca54c3Smrg done 1263517ca54c3SmrgIFS=$as_save_IFS 1263617ca54c3Smrg 1263717ca54c3Smrg ;; 1263817ca54c3Smrgesac 1263917ca54c3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1264017ca54c3Smrg# in which case we are not to be found in the path. 1264117ca54c3Smrgif test "x$as_myself" = x; then 1264217ca54c3Smrg as_myself=$0 1264317ca54c3Smrgfi 1264417ca54c3Smrgif test ! -f "$as_myself"; then 12645ffe57424Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1264617ca54c3Smrg exit 1 1264717ca54c3Smrgfi 1264817ca54c3Smrg 1264917ca54c3Smrg 1265017ca54c3Smrg 1265117ca54c3Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1265217ca54c3Smrg# ---------------------------------------- 1265317ca54c3Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1265417ca54c3Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1265517ca54c3Smrg# script with STATUS, using 1 if that was 0. 1265617ca54c3Smrgas_fn_error () 1265717ca54c3Smrg{ 1265817ca54c3Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1265917ca54c3Smrg if test "$4"; then 1266017ca54c3Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12661ffe57424Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1266217ca54c3Smrg fi 12663ffe57424Smrg printf "%s\n" "$as_me: error: $2" >&2 1266417ca54c3Smrg as_fn_exit $as_status 1266517ca54c3Smrg} # as_fn_error 1266617ca54c3Smrg 1266717ca54c3Smrg 12668ffe57424Smrg 1266917ca54c3Smrg# as_fn_set_status STATUS 1267017ca54c3Smrg# ----------------------- 1267117ca54c3Smrg# Set $? to STATUS, without forking. 1267217ca54c3Smrgas_fn_set_status () 1267317ca54c3Smrg{ 1267417ca54c3Smrg return $1 1267517ca54c3Smrg} # as_fn_set_status 1267617ca54c3Smrg 1267717ca54c3Smrg# as_fn_exit STATUS 1267817ca54c3Smrg# ----------------- 1267917ca54c3Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1268017ca54c3Smrgas_fn_exit () 1268117ca54c3Smrg{ 1268217ca54c3Smrg set +e 1268317ca54c3Smrg as_fn_set_status $1 1268417ca54c3Smrg exit $1 1268517ca54c3Smrg} # as_fn_exit 1268617ca54c3Smrg 1268717ca54c3Smrg# as_fn_unset VAR 1268817ca54c3Smrg# --------------- 1268917ca54c3Smrg# Portably unset VAR. 1269017ca54c3Smrgas_fn_unset () 1269117ca54c3Smrg{ 1269217ca54c3Smrg { eval $1=; unset $1;} 1269317ca54c3Smrg} 1269417ca54c3Smrgas_unset=as_fn_unset 12695ffe57424Smrg 1269617ca54c3Smrg# as_fn_append VAR VALUE 1269717ca54c3Smrg# ---------------------- 1269817ca54c3Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1269917ca54c3Smrg# advantage of any shell optimizations that allow amortized linear growth over 1270017ca54c3Smrg# repeated appends, instead of the typical quadratic growth present in naive 1270117ca54c3Smrg# implementations. 12702ffe57424Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12703ffe57424Smrgthen : 1270417ca54c3Smrg eval 'as_fn_append () 1270517ca54c3Smrg { 1270617ca54c3Smrg eval $1+=\$2 1270717ca54c3Smrg }' 12708ffe57424Smrgelse $as_nop 1270917ca54c3Smrg as_fn_append () 1271017ca54c3Smrg { 1271117ca54c3Smrg eval $1=\$$1\$2 1271217ca54c3Smrg } 1271317ca54c3Smrgfi # as_fn_append 1271417ca54c3Smrg 1271517ca54c3Smrg# as_fn_arith ARG... 1271617ca54c3Smrg# ------------------ 1271717ca54c3Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1271817ca54c3Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1271917ca54c3Smrg# must be portable across $(()) and expr. 12720ffe57424Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12721ffe57424Smrgthen : 1272217ca54c3Smrg eval 'as_fn_arith () 1272317ca54c3Smrg { 1272417ca54c3Smrg as_val=$(( $* )) 1272517ca54c3Smrg }' 12726ffe57424Smrgelse $as_nop 1272717ca54c3Smrg as_fn_arith () 1272817ca54c3Smrg { 1272917ca54c3Smrg as_val=`expr "$@" || test $? -eq 1` 1273017ca54c3Smrg } 1273117ca54c3Smrgfi # as_fn_arith 1273217ca54c3Smrg 1273317ca54c3Smrg 1273417ca54c3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 1273517ca54c3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1273617ca54c3Smrg as_expr=expr 1273717ca54c3Smrgelse 1273817ca54c3Smrg as_expr=false 1273917ca54c3Smrgfi 1274017ca54c3Smrg 1274117ca54c3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1274217ca54c3Smrg as_basename=basename 1274317ca54c3Smrgelse 1274417ca54c3Smrg as_basename=false 1274517ca54c3Smrgfi 1274617ca54c3Smrg 1274717ca54c3Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1274817ca54c3Smrg as_dirname=dirname 1274917ca54c3Smrgelse 1275017ca54c3Smrg as_dirname=false 1275117ca54c3Smrgfi 1275217ca54c3Smrg 1275317ca54c3Smrgas_me=`$as_basename -- "$0" || 1275417ca54c3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1275517ca54c3Smrg X"$0" : 'X\(//\)$' \| \ 1275617ca54c3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12757ffe57424Smrgprintf "%s\n" X/"$0" | 1275817ca54c3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1275917ca54c3Smrg s//\1/ 1276017ca54c3Smrg q 1276117ca54c3Smrg } 1276217ca54c3Smrg /^X\/\(\/\/\)$/{ 1276317ca54c3Smrg s//\1/ 1276417ca54c3Smrg q 1276517ca54c3Smrg } 1276617ca54c3Smrg /^X\/\(\/\).*/{ 1276717ca54c3Smrg s//\1/ 1276817ca54c3Smrg q 1276917ca54c3Smrg } 1277017ca54c3Smrg s/.*/./; q'` 1277117ca54c3Smrg 1277217ca54c3Smrg# Avoid depending upon Character Ranges. 1277317ca54c3Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1277417ca54c3Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1277517ca54c3Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1277617ca54c3Smrgas_cr_digits='0123456789' 1277717ca54c3Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1277817ca54c3Smrg 12779ffe57424Smrg 12780ffe57424Smrg# Determine whether it's possible to make 'echo' print without a newline. 12781ffe57424Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12782ffe57424Smrg# for compatibility with existing Makefiles. 1278317ca54c3SmrgECHO_C= ECHO_N= ECHO_T= 1278417ca54c3Smrgcase `echo -n x` in #((((( 1278517ca54c3Smrg-n*) 1278617ca54c3Smrg case `echo 'xy\c'` in 1278717ca54c3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1278817ca54c3Smrg xy) ECHO_C='\c';; 1278917ca54c3Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1279017ca54c3Smrg ECHO_T=' ';; 1279117ca54c3Smrg esac;; 1279217ca54c3Smrg*) 1279317ca54c3Smrg ECHO_N='-n';; 1279417ca54c3Smrgesac 1279517ca54c3Smrg 12796ffe57424Smrg# For backward compatibility with old third-party macros, we provide 12797ffe57424Smrg# the shell variables $as_echo and $as_echo_n. New code should use 12798ffe57424Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12799ffe57424Smrgas_echo='printf %s\n' 12800ffe57424Smrgas_echo_n='printf %s' 12801ffe57424Smrg 1280217ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.file 1280317ca54c3Smrgif test -d conf$$.dir; then 1280417ca54c3Smrg rm -f conf$$.dir/conf$$.file 1280517ca54c3Smrgelse 1280617ca54c3Smrg rm -f conf$$.dir 1280717ca54c3Smrg mkdir conf$$.dir 2>/dev/null 1280817ca54c3Smrgfi 1280917ca54c3Smrgif (echo >conf$$.file) 2>/dev/null; then 1281017ca54c3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1281117ca54c3Smrg as_ln_s='ln -s' 1281217ca54c3Smrg # ... but there are two gotchas: 1281317ca54c3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1281417ca54c3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1281517ca54c3Smrg # In both cases, we have to default to `cp -pR'. 1281617ca54c3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1281717ca54c3Smrg as_ln_s='cp -pR' 1281817ca54c3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 1281917ca54c3Smrg as_ln_s=ln 1282017ca54c3Smrg else 1282117ca54c3Smrg as_ln_s='cp -pR' 1282217ca54c3Smrg fi 1282317ca54c3Smrgelse 1282417ca54c3Smrg as_ln_s='cp -pR' 1282517ca54c3Smrgfi 1282617ca54c3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 1282717ca54c3Smrgrmdir conf$$.dir 2>/dev/null 1282817ca54c3Smrg 1282917ca54c3Smrg 1283017ca54c3Smrg# as_fn_mkdir_p 1283117ca54c3Smrg# ------------- 1283217ca54c3Smrg# Create "$as_dir" as a directory, including parents if necessary. 1283317ca54c3Smrgas_fn_mkdir_p () 1283417ca54c3Smrg{ 1283517ca54c3Smrg 1283617ca54c3Smrg case $as_dir in #( 1283717ca54c3Smrg -*) as_dir=./$as_dir;; 1283817ca54c3Smrg esac 1283917ca54c3Smrg test -d "$as_dir" || eval $as_mkdir_p || { 1284017ca54c3Smrg as_dirs= 1284117ca54c3Smrg while :; do 1284217ca54c3Smrg case $as_dir in #( 12843ffe57424Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1284417ca54c3Smrg *) as_qdir=$as_dir;; 1284517ca54c3Smrg esac 1284617ca54c3Smrg as_dirs="'$as_qdir' $as_dirs" 1284717ca54c3Smrg as_dir=`$as_dirname -- "$as_dir" || 1284817ca54c3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1284917ca54c3Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1285017ca54c3Smrg X"$as_dir" : 'X\(//\)$' \| \ 1285117ca54c3Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12852ffe57424Smrgprintf "%s\n" X"$as_dir" | 1285317ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285417ca54c3Smrg s//\1/ 1285517ca54c3Smrg q 1285617ca54c3Smrg } 1285717ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1285817ca54c3Smrg s//\1/ 1285917ca54c3Smrg q 1286017ca54c3Smrg } 1286117ca54c3Smrg /^X\(\/\/\)$/{ 1286217ca54c3Smrg s//\1/ 1286317ca54c3Smrg q 1286417ca54c3Smrg } 1286517ca54c3Smrg /^X\(\/\).*/{ 1286617ca54c3Smrg s//\1/ 1286717ca54c3Smrg q 1286817ca54c3Smrg } 1286917ca54c3Smrg s/.*/./; q'` 1287017ca54c3Smrg test -d "$as_dir" && break 1287117ca54c3Smrg done 1287217ca54c3Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1287317ca54c3Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1287417ca54c3Smrg 1287517ca54c3Smrg 1287617ca54c3Smrg} # as_fn_mkdir_p 1287717ca54c3Smrgif mkdir -p . 2>/dev/null; then 1287817ca54c3Smrg as_mkdir_p='mkdir -p "$as_dir"' 1287917ca54c3Smrgelse 1288017ca54c3Smrg test -d ./-p && rmdir ./-p 1288117ca54c3Smrg as_mkdir_p=false 1288217ca54c3Smrgfi 1288317ca54c3Smrg 1288417ca54c3Smrg 1288517ca54c3Smrg# as_fn_executable_p FILE 1288617ca54c3Smrg# ----------------------- 1288717ca54c3Smrg# Test if FILE is an executable regular file. 1288817ca54c3Smrgas_fn_executable_p () 1288917ca54c3Smrg{ 1289017ca54c3Smrg test -f "$1" && test -x "$1" 1289117ca54c3Smrg} # as_fn_executable_p 1289217ca54c3Smrgas_test_x='test -x' 1289317ca54c3Smrgas_executable_p=as_fn_executable_p 1289417ca54c3Smrg 1289517ca54c3Smrg# Sed expression to map a string onto a valid CPP name. 1289617ca54c3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1289717ca54c3Smrg 1289817ca54c3Smrg# Sed expression to map a string onto a valid variable name. 1289917ca54c3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1290017ca54c3Smrg 1290117ca54c3Smrg 1290217ca54c3Smrgexec 6>&1 1290317ca54c3Smrg## ----------------------------------- ## 1290417ca54c3Smrg## Main body of $CONFIG_STATUS script. ## 1290517ca54c3Smrg## ----------------------------------- ## 1290617ca54c3Smrg_ASEOF 1290717ca54c3Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1290817ca54c3Smrg 1290917ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1291017ca54c3Smrg# Save the log message, to keep $0 and so on meaningful, and to 1291117ca54c3Smrg# report actual input values of CONFIG_FILES etc. instead of their 1291217ca54c3Smrg# values after options handling. 1291317ca54c3Smrgac_log=" 12914452262e1SmrgThis file was extended by xorgproto $as_me 2022.2, which was 12915ffe57424Smrggenerated by GNU Autoconf 2.71. Invocation command line was 1291617ca54c3Smrg 1291717ca54c3Smrg CONFIG_FILES = $CONFIG_FILES 1291817ca54c3Smrg CONFIG_HEADERS = $CONFIG_HEADERS 1291917ca54c3Smrg CONFIG_LINKS = $CONFIG_LINKS 1292017ca54c3Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1292117ca54c3Smrg $ $0 $@ 1292217ca54c3Smrg 1292317ca54c3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 1292417ca54c3Smrg" 1292517ca54c3Smrg 1292617ca54c3Smrg_ACEOF 1292717ca54c3Smrg 1292817ca54c3Smrgcase $ac_config_files in *" 1292917ca54c3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1293017ca54c3Smrgesac 1293117ca54c3Smrg 1293217ca54c3Smrg 1293317ca54c3Smrg 1293417ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1293517ca54c3Smrg# Files that config.status was made for. 1293617ca54c3Smrgconfig_files="$ac_config_files" 1293717ca54c3Smrgconfig_commands="$ac_config_commands" 1293817ca54c3Smrg 1293917ca54c3Smrg_ACEOF 1294017ca54c3Smrg 1294117ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1294217ca54c3Smrgac_cs_usage="\ 1294317ca54c3Smrg\`$as_me' instantiates files and other configuration actions 1294417ca54c3Smrgfrom templates according to the current configuration. Unless the files 1294517ca54c3Smrgand actions are specified as TAGs, all are instantiated by default. 1294617ca54c3Smrg 1294717ca54c3SmrgUsage: $0 [OPTION]... [TAG]... 1294817ca54c3Smrg 1294917ca54c3Smrg -h, --help print this help, then exit 1295017ca54c3Smrg -V, --version print version number and configuration settings, then exit 1295117ca54c3Smrg --config print configuration, then exit 1295217ca54c3Smrg -q, --quiet, --silent 1295317ca54c3Smrg do not print progress messages 1295417ca54c3Smrg -d, --debug don't remove temporary files 1295517ca54c3Smrg --recheck update $as_me by reconfiguring in the same conditions 1295617ca54c3Smrg --file=FILE[:TEMPLATE] 1295717ca54c3Smrg instantiate the configuration file FILE 1295817ca54c3Smrg 1295917ca54c3SmrgConfiguration files: 1296017ca54c3Smrg$config_files 1296117ca54c3Smrg 1296217ca54c3SmrgConfiguration commands: 1296317ca54c3Smrg$config_commands 1296417ca54c3Smrg 12965ea1d6981SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>." 1296617ca54c3Smrg 1296717ca54c3Smrg_ACEOF 12968ffe57424Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12969ffe57424Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 1297017ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12971ffe57424Smrgac_cs_config='$ac_cs_config_escaped' 1297217ca54c3Smrgac_cs_version="\\ 12973452262e1Smrgxorgproto config.status 2022.2 12974ffe57424Smrgconfigured by $0, generated by GNU Autoconf 2.71, 1297517ca54c3Smrg with options \\"\$ac_cs_config\\" 1297617ca54c3Smrg 12977ffe57424SmrgCopyright (C) 2021 Free Software Foundation, Inc. 1297817ca54c3SmrgThis config.status script is free software; the Free Software Foundation 1297917ca54c3Smrggives unlimited permission to copy, distribute and modify it." 1298017ca54c3Smrg 1298117ca54c3Smrgac_pwd='$ac_pwd' 1298217ca54c3Smrgsrcdir='$srcdir' 1298317ca54c3SmrgINSTALL='$INSTALL' 1298417ca54c3SmrgMKDIR_P='$MKDIR_P' 1298517ca54c3SmrgAWK='$AWK' 1298617ca54c3Smrgtest -n "\$AWK" || AWK=awk 1298717ca54c3Smrg_ACEOF 1298817ca54c3Smrg 1298917ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1299017ca54c3Smrg# The default lists apply if the user does not specify any file. 1299117ca54c3Smrgac_need_defaults=: 1299217ca54c3Smrgwhile test $# != 0 1299317ca54c3Smrgdo 1299417ca54c3Smrg case $1 in 1299517ca54c3Smrg --*=?*) 1299617ca54c3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1299717ca54c3Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1299817ca54c3Smrg ac_shift=: 1299917ca54c3Smrg ;; 1300017ca54c3Smrg --*=) 1300117ca54c3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1300217ca54c3Smrg ac_optarg= 1300317ca54c3Smrg ac_shift=: 1300417ca54c3Smrg ;; 1300517ca54c3Smrg *) 1300617ca54c3Smrg ac_option=$1 1300717ca54c3Smrg ac_optarg=$2 1300817ca54c3Smrg ac_shift=shift 1300917ca54c3Smrg ;; 1301017ca54c3Smrg esac 1301117ca54c3Smrg 1301217ca54c3Smrg case $ac_option in 1301317ca54c3Smrg # Handling of the options. 1301417ca54c3Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1301517ca54c3Smrg ac_cs_recheck=: ;; 1301617ca54c3Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13017ffe57424Smrg printf "%s\n" "$ac_cs_version"; exit ;; 1301817ca54c3Smrg --config | --confi | --conf | --con | --co | --c ) 13019ffe57424Smrg printf "%s\n" "$ac_cs_config"; exit ;; 1302017ca54c3Smrg --debug | --debu | --deb | --de | --d | -d ) 1302117ca54c3Smrg debug=: ;; 1302217ca54c3Smrg --file | --fil | --fi | --f ) 1302317ca54c3Smrg $ac_shift 1302417ca54c3Smrg case $ac_optarg in 13025ffe57424Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1302617ca54c3Smrg '') as_fn_error $? "missing file argument" ;; 1302717ca54c3Smrg esac 1302817ca54c3Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1302917ca54c3Smrg ac_need_defaults=false;; 1303017ca54c3Smrg --he | --h | --help | --hel | -h ) 13031ffe57424Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 1303217ca54c3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1303317ca54c3Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1303417ca54c3Smrg ac_cs_silent=: ;; 1303517ca54c3Smrg 1303617ca54c3Smrg # This is an error. 1303717ca54c3Smrg -*) as_fn_error $? "unrecognized option: \`$1' 1303817ca54c3SmrgTry \`$0 --help' for more information." ;; 1303917ca54c3Smrg 1304017ca54c3Smrg *) as_fn_append ac_config_targets " $1" 1304117ca54c3Smrg ac_need_defaults=false ;; 1304217ca54c3Smrg 1304317ca54c3Smrg esac 1304417ca54c3Smrg shift 1304517ca54c3Smrgdone 1304617ca54c3Smrg 1304717ca54c3Smrgac_configure_extra_args= 1304817ca54c3Smrg 1304917ca54c3Smrgif $ac_cs_silent; then 1305017ca54c3Smrg exec 6>/dev/null 1305117ca54c3Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1305217ca54c3Smrgfi 1305317ca54c3Smrg 1305417ca54c3Smrg_ACEOF 1305517ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1305617ca54c3Smrgif \$ac_cs_recheck; then 1305717ca54c3Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1305817ca54c3Smrg shift 13059ffe57424Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 1306017ca54c3Smrg CONFIG_SHELL='$SHELL' 1306117ca54c3Smrg export CONFIG_SHELL 1306217ca54c3Smrg exec "\$@" 1306317ca54c3Smrgfi 1306417ca54c3Smrg 1306517ca54c3Smrg_ACEOF 1306617ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1306717ca54c3Smrgexec 5>>config.log 1306817ca54c3Smrg{ 1306917ca54c3Smrg echo 1307017ca54c3Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1307117ca54c3Smrg## Running $as_me. ## 1307217ca54c3Smrg_ASBOX 13073ffe57424Smrg printf "%s\n" "$ac_log" 1307417ca54c3Smrg} >&5 1307517ca54c3Smrg 1307617ca54c3Smrg_ACEOF 1307717ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1307817ca54c3Smrg# 1307917ca54c3Smrg# INIT-COMMANDS 1308017ca54c3Smrg# 13081ea1d6981SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1308217ca54c3Smrg 1308317ca54c3Smrg_ACEOF 1308417ca54c3Smrg 1308517ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1308617ca54c3Smrg 1308717ca54c3Smrg# Handling of arguments. 1308817ca54c3Smrgfor ac_config_target in $ac_config_targets 1308917ca54c3Smrgdo 1309017ca54c3Smrg case $ac_config_target in 1309117ca54c3Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1309217ca54c3Smrg "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;; 1309317ca54c3Smrg "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;; 1309417ca54c3Smrg "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;; 1309517ca54c3Smrg "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;; 1309617ca54c3Smrg "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;; 130974627b59cSmrg "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;; 1309817ca54c3Smrg "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;; 1309917ca54c3Smrg "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;; 1310017ca54c3Smrg "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;; 1310117ca54c3Smrg "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;; 1310217ca54c3Smrg "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;; 1310317ca54c3Smrg "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;; 1310417ca54c3Smrg "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;; 1310517ca54c3Smrg "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;; 1310617ca54c3Smrg "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;; 1310717ca54c3Smrg "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;; 1310817ca54c3Smrg "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;; 1310917ca54c3Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1311017ca54c3Smrg "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;; 1311117ca54c3Smrg "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;; 1311217ca54c3Smrg "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;; 1311317ca54c3Smrg "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;; 1311417ca54c3Smrg "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;; 1311517ca54c3Smrg "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;; 1311617ca54c3Smrg "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;; 13117ea1d6981Smrg "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 13118ea1d6981Smrg "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;; 13119ea1d6981Smrg "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;; 13120ea1d6981Smrg "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;; 13121ea1d6981Smrg "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;; 13122ea1d6981Smrg "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;; 13123ea1d6981Smrg "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;; 13124ea1d6981Smrg "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;; 13125ea1d6981Smrg "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;; 1312617ca54c3Smrg "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;; 1312717ca54c3Smrg "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;; 1312817ca54c3Smrg "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;; 1312917ca54c3Smrg "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;; 1313017ca54c3Smrg "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;; 1313117ca54c3Smrg "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;; 1313217ca54c3Smrg "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;; 1313317ca54c3Smrg "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;; 1313417ca54c3Smrg "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;; 1313517ca54c3Smrg "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;; 1313617ca54c3Smrg "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;; 1313717ca54c3Smrg "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;; 1313817ca54c3Smrg "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;; 1313917ca54c3Smrg "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;; 1314017ca54c3Smrg "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;; 13141452262e1Smrg "xwaylandproto.pc") CONFIG_FILES="$CONFIG_FILES xwaylandproto.pc" ;; 1314217ca54c3Smrg 1314317ca54c3Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1314417ca54c3Smrg esac 1314517ca54c3Smrgdone 1314617ca54c3Smrg 1314717ca54c3Smrg 1314817ca54c3Smrg# If the user did not use the arguments to specify the items to instantiate, 1314917ca54c3Smrg# then the envvar interface is used. Set only those that are not. 1315017ca54c3Smrg# We use the long form for the default assignment because of an extremely 1315117ca54c3Smrg# bizarre bug on SunOS 4.1.3. 1315217ca54c3Smrgif $ac_need_defaults; then 13153ffe57424Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13154ffe57424Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 1315517ca54c3Smrgfi 1315617ca54c3Smrg 1315717ca54c3Smrg# Have a temporary directory for convenience. Make it in the build tree 1315817ca54c3Smrg# simply because there is no reason against having it here, and in addition, 1315917ca54c3Smrg# creating and moving files from /tmp can sometimes cause problems. 1316017ca54c3Smrg# Hook for its removal unless debugging. 1316117ca54c3Smrg# Note that there is a small window in which the directory will not be cleaned: 1316217ca54c3Smrg# after its creation but before its name has been assigned to `$tmp'. 1316317ca54c3Smrg$debug || 1316417ca54c3Smrg{ 1316517ca54c3Smrg tmp= ac_tmp= 1316617ca54c3Smrg trap 'exit_status=$? 1316717ca54c3Smrg : "${ac_tmp:=$tmp}" 1316817ca54c3Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 1316917ca54c3Smrg' 0 1317017ca54c3Smrg trap 'as_fn_exit 1' 1 2 13 15 1317117ca54c3Smrg} 1317217ca54c3Smrg# Create a (secure) tmp directory for tmp files. 1317317ca54c3Smrg 1317417ca54c3Smrg{ 1317517ca54c3Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1317617ca54c3Smrg test -d "$tmp" 1317717ca54c3Smrg} || 1317817ca54c3Smrg{ 1317917ca54c3Smrg tmp=./conf$$-$RANDOM 1318017ca54c3Smrg (umask 077 && mkdir "$tmp") 1318117ca54c3Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1318217ca54c3Smrgac_tmp=$tmp 1318317ca54c3Smrg 1318417ca54c3Smrg# Set up the scripts for CONFIG_FILES section. 1318517ca54c3Smrg# No need to generate them if there are no CONFIG_FILES. 1318617ca54c3Smrg# This happens for instance with `./config.status config.h'. 1318717ca54c3Smrgif test -n "$CONFIG_FILES"; then 1318817ca54c3Smrg 1318917ca54c3Smrg 1319017ca54c3Smrgac_cr=`echo X | tr X '\015'` 1319117ca54c3Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1319217ca54c3Smrg# But we know of no other shell where ac_cr would be empty at this 1319317ca54c3Smrg# point, so we can use a bashism as a fallback. 1319417ca54c3Smrgif test "x$ac_cr" = x; then 1319517ca54c3Smrg eval ac_cr=\$\'\\r\' 1319617ca54c3Smrgfi 1319717ca54c3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1319817ca54c3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1319917ca54c3Smrg ac_cs_awk_cr='\\r' 1320017ca54c3Smrgelse 1320117ca54c3Smrg ac_cs_awk_cr=$ac_cr 1320217ca54c3Smrgfi 1320317ca54c3Smrg 1320417ca54c3Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1320517ca54c3Smrg_ACEOF 1320617ca54c3Smrg 1320717ca54c3Smrg 1320817ca54c3Smrg{ 1320917ca54c3Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 1321017ca54c3Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1321117ca54c3Smrg echo "_ACEOF" 1321217ca54c3Smrg} >conf$$subs.sh || 1321317ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1321417ca54c3Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1321517ca54c3Smrgac_delim='%!_!# ' 1321617ca54c3Smrgfor ac_last_try in false false false false false :; do 1321717ca54c3Smrg . ./conf$$subs.sh || 1321817ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1321917ca54c3Smrg 1322017ca54c3Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1322117ca54c3Smrg if test $ac_delim_n = $ac_delim_num; then 1322217ca54c3Smrg break 1322317ca54c3Smrg elif $ac_last_try; then 1322417ca54c3Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1322517ca54c3Smrg else 1322617ca54c3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1322717ca54c3Smrg fi 1322817ca54c3Smrgdone 1322917ca54c3Smrgrm -f conf$$subs.sh 1323017ca54c3Smrg 1323117ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1323217ca54c3Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1323317ca54c3Smrg_ACEOF 1323417ca54c3Smrgsed -n ' 1323517ca54c3Smrgh 1323617ca54c3Smrgs/^/S["/; s/!.*/"]=/ 1323717ca54c3Smrgp 1323817ca54c3Smrgg 1323917ca54c3Smrgs/^[^!]*!// 1324017ca54c3Smrg:repl 1324117ca54c3Smrgt repl 1324217ca54c3Smrgs/'"$ac_delim"'$// 1324317ca54c3Smrgt delim 1324417ca54c3Smrg:nl 1324517ca54c3Smrgh 1324617ca54c3Smrgs/\(.\{148\}\)..*/\1/ 1324717ca54c3Smrgt more1 1324817ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1324917ca54c3Smrgp 1325017ca54c3Smrgn 1325117ca54c3Smrgb repl 1325217ca54c3Smrg:more1 1325317ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1325417ca54c3Smrgp 1325517ca54c3Smrgg 1325617ca54c3Smrgs/.\{148\}// 1325717ca54c3Smrgt nl 1325817ca54c3Smrg:delim 1325917ca54c3Smrgh 1326017ca54c3Smrgs/\(.\{148\}\)..*/\1/ 1326117ca54c3Smrgt more2 1326217ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1326317ca54c3Smrgp 1326417ca54c3Smrgb 1326517ca54c3Smrg:more2 1326617ca54c3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1326717ca54c3Smrgp 1326817ca54c3Smrgg 1326917ca54c3Smrgs/.\{148\}// 1327017ca54c3Smrgt delim 1327117ca54c3Smrg' <conf$$subs.awk | sed ' 1327217ca54c3Smrg/^[^""]/{ 1327317ca54c3Smrg N 1327417ca54c3Smrg s/\n// 1327517ca54c3Smrg} 1327617ca54c3Smrg' >>$CONFIG_STATUS || ac_write_fail=1 1327717ca54c3Smrgrm -f conf$$subs.awk 1327817ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1327917ca54c3Smrg_ACAWK 1328017ca54c3Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1328117ca54c3Smrg for (key in S) S_is_set[key] = 1 1328217ca54c3Smrg FS = "" 1328317ca54c3Smrg 1328417ca54c3Smrg} 1328517ca54c3Smrg{ 1328617ca54c3Smrg line = $ 0 1328717ca54c3Smrg nfields = split(line, field, "@") 1328817ca54c3Smrg substed = 0 1328917ca54c3Smrg len = length(field[1]) 1329017ca54c3Smrg for (i = 2; i < nfields; i++) { 1329117ca54c3Smrg key = field[i] 1329217ca54c3Smrg keylen = length(key) 1329317ca54c3Smrg if (S_is_set[key]) { 1329417ca54c3Smrg value = S[key] 1329517ca54c3Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1329617ca54c3Smrg len += length(value) + length(field[++i]) 1329717ca54c3Smrg substed = 1 1329817ca54c3Smrg } else 1329917ca54c3Smrg len += 1 + keylen 1330017ca54c3Smrg } 1330117ca54c3Smrg 1330217ca54c3Smrg print line 1330317ca54c3Smrg} 1330417ca54c3Smrg 1330517ca54c3Smrg_ACAWK 1330617ca54c3Smrg_ACEOF 1330717ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1330817ca54c3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1330917ca54c3Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1331017ca54c3Smrgelse 1331117ca54c3Smrg cat 1331217ca54c3Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1331317ca54c3Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 1331417ca54c3Smrg_ACEOF 1331517ca54c3Smrg 1331617ca54c3Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1331717ca54c3Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1331817ca54c3Smrg# trailing colons and then remove the whole line if VPATH becomes empty 1331917ca54c3Smrg# (actually we leave an empty line to preserve line numbers). 1332017ca54c3Smrgif test "x$srcdir" = x.; then 1332117ca54c3Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1332217ca54c3Smrgh 1332317ca54c3Smrgs/// 1332417ca54c3Smrgs/^/:/ 1332517ca54c3Smrgs/[ ]*$/:/ 1332617ca54c3Smrgs/:\$(srcdir):/:/g 1332717ca54c3Smrgs/:\${srcdir}:/:/g 1332817ca54c3Smrgs/:@srcdir@:/:/g 1332917ca54c3Smrgs/^:*// 1333017ca54c3Smrgs/:*$// 1333117ca54c3Smrgx 1333217ca54c3Smrgs/\(=[ ]*\).*/\1/ 1333317ca54c3SmrgG 1333417ca54c3Smrgs/\n// 1333517ca54c3Smrgs/^[^=]*=[ ]*$// 1333617ca54c3Smrg}' 1333717ca54c3Smrgfi 1333817ca54c3Smrg 1333917ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1334017ca54c3Smrgfi # test -n "$CONFIG_FILES" 1334117ca54c3Smrg 1334217ca54c3Smrg 1334317ca54c3Smrgeval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 1334417ca54c3Smrgshift 1334517ca54c3Smrgfor ac_tag 1334617ca54c3Smrgdo 1334717ca54c3Smrg case $ac_tag in 1334817ca54c3Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 1334917ca54c3Smrg esac 1335017ca54c3Smrg case $ac_mode$ac_tag in 1335117ca54c3Smrg :[FHL]*:*);; 1335217ca54c3Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 1335317ca54c3Smrg :[FH]-) ac_tag=-:-;; 1335417ca54c3Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 1335517ca54c3Smrg esac 1335617ca54c3Smrg ac_save_IFS=$IFS 1335717ca54c3Smrg IFS=: 1335817ca54c3Smrg set x $ac_tag 1335917ca54c3Smrg IFS=$ac_save_IFS 1336017ca54c3Smrg shift 1336117ca54c3Smrg ac_file=$1 1336217ca54c3Smrg shift 1336317ca54c3Smrg 1336417ca54c3Smrg case $ac_mode in 1336517ca54c3Smrg :L) ac_source=$1;; 1336617ca54c3Smrg :[FH]) 1336717ca54c3Smrg ac_file_inputs= 1336817ca54c3Smrg for ac_f 1336917ca54c3Smrg do 1337017ca54c3Smrg case $ac_f in 1337117ca54c3Smrg -) ac_f="$ac_tmp/stdin";; 1337217ca54c3Smrg *) # Look for the file first in the build tree, then in the source tree 1337317ca54c3Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1337417ca54c3Smrg # because $ac_f cannot contain `:'. 1337517ca54c3Smrg test -f "$ac_f" || 1337617ca54c3Smrg case $ac_f in 1337717ca54c3Smrg [\\/$]*) false;; 1337817ca54c3Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 1337917ca54c3Smrg esac || 1338017ca54c3Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 1338117ca54c3Smrg esac 13382ffe57424Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1338317ca54c3Smrg as_fn_append ac_file_inputs " '$ac_f'" 1338417ca54c3Smrg done 1338517ca54c3Smrg 1338617ca54c3Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 1338717ca54c3Smrg # use $as_me), people would be surprised to read: 1338817ca54c3Smrg # /* config.h. Generated by config.status. */ 1338917ca54c3Smrg configure_input='Generated from '` 13390ffe57424Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1339117ca54c3Smrg `' by configure.' 1339217ca54c3Smrg if test x"$ac_file" != x-; then 1339317ca54c3Smrg configure_input="$ac_file. $configure_input" 13394ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13395ffe57424Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 1339617ca54c3Smrg fi 1339717ca54c3Smrg # Neutralize special characters interpreted by sed in replacement strings. 1339817ca54c3Smrg case $configure_input in #( 1339917ca54c3Smrg *\&* | *\|* | *\\* ) 13400ffe57424Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 1340117ca54c3Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1340217ca54c3Smrg *) ac_sed_conf_input=$configure_input;; 1340317ca54c3Smrg esac 1340417ca54c3Smrg 1340517ca54c3Smrg case $ac_tag in 1340617ca54c3Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1340717ca54c3Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 1340817ca54c3Smrg esac 1340917ca54c3Smrg ;; 1341017ca54c3Smrg esac 1341117ca54c3Smrg 1341217ca54c3Smrg ac_dir=`$as_dirname -- "$ac_file" || 1341317ca54c3Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341417ca54c3Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1341517ca54c3Smrg X"$ac_file" : 'X\(//\)$' \| \ 1341617ca54c3Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13417ffe57424Smrgprintf "%s\n" X"$ac_file" | 1341817ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1341917ca54c3Smrg s//\1/ 1342017ca54c3Smrg q 1342117ca54c3Smrg } 1342217ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1342317ca54c3Smrg s//\1/ 1342417ca54c3Smrg q 1342517ca54c3Smrg } 1342617ca54c3Smrg /^X\(\/\/\)$/{ 1342717ca54c3Smrg s//\1/ 1342817ca54c3Smrg q 1342917ca54c3Smrg } 1343017ca54c3Smrg /^X\(\/\).*/{ 1343117ca54c3Smrg s//\1/ 1343217ca54c3Smrg q 1343317ca54c3Smrg } 1343417ca54c3Smrg s/.*/./; q'` 1343517ca54c3Smrg as_dir="$ac_dir"; as_fn_mkdir_p 1343617ca54c3Smrg ac_builddir=. 1343717ca54c3Smrg 1343817ca54c3Smrgcase "$ac_dir" in 1343917ca54c3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1344017ca54c3Smrg*) 13441ffe57424Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1344217ca54c3Smrg # A ".." for each directory in $ac_dir_suffix. 13443ffe57424Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1344417ca54c3Smrg case $ac_top_builddir_sub in 1344517ca54c3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1344617ca54c3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1344717ca54c3Smrg esac ;; 1344817ca54c3Smrgesac 1344917ca54c3Smrgac_abs_top_builddir=$ac_pwd 1345017ca54c3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1345117ca54c3Smrg# for backward compatibility: 1345217ca54c3Smrgac_top_builddir=$ac_top_build_prefix 1345317ca54c3Smrg 1345417ca54c3Smrgcase $srcdir in 1345517ca54c3Smrg .) # We are building in place. 1345617ca54c3Smrg ac_srcdir=. 1345717ca54c3Smrg ac_top_srcdir=$ac_top_builddir_sub 1345817ca54c3Smrg ac_abs_top_srcdir=$ac_pwd ;; 1345917ca54c3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1346017ca54c3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1346117ca54c3Smrg ac_top_srcdir=$srcdir 1346217ca54c3Smrg ac_abs_top_srcdir=$srcdir ;; 1346317ca54c3Smrg *) # Relative name. 1346417ca54c3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1346517ca54c3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1346617ca54c3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1346717ca54c3Smrgesac 1346817ca54c3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1346917ca54c3Smrg 1347017ca54c3Smrg 1347117ca54c3Smrg case $ac_mode in 1347217ca54c3Smrg :F) 1347317ca54c3Smrg # 1347417ca54c3Smrg # CONFIG_FILE 1347517ca54c3Smrg # 1347617ca54c3Smrg 1347717ca54c3Smrg case $INSTALL in 1347817ca54c3Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 1347917ca54c3Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1348017ca54c3Smrg esac 1348117ca54c3Smrg ac_MKDIR_P=$MKDIR_P 1348217ca54c3Smrg case $MKDIR_P in 1348317ca54c3Smrg [\\/$]* | ?:[\\/]* ) ;; 1348417ca54c3Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 1348517ca54c3Smrg esac 1348617ca54c3Smrg_ACEOF 1348717ca54c3Smrg 1348817ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1348917ca54c3Smrg# If the template does not know about datarootdir, expand it. 1349017ca54c3Smrg# FIXME: This hack should be removed a few years after 2.60. 1349117ca54c3Smrgac_datarootdir_hack=; ac_datarootdir_seen= 1349217ca54c3Smrgac_sed_dataroot=' 1349317ca54c3Smrg/datarootdir/ { 1349417ca54c3Smrg p 1349517ca54c3Smrg q 1349617ca54c3Smrg} 1349717ca54c3Smrg/@datadir@/p 1349817ca54c3Smrg/@docdir@/p 1349917ca54c3Smrg/@infodir@/p 1350017ca54c3Smrg/@localedir@/p 1350117ca54c3Smrg/@mandir@/p' 1350217ca54c3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 1350317ca54c3Smrg*datarootdir*) ac_datarootdir_seen=yes;; 1350417ca54c3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13505ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13506ffe57424Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 1350717ca54c3Smrg_ACEOF 1350817ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1350917ca54c3Smrg ac_datarootdir_hack=' 1351017ca54c3Smrg s&@datadir@&$datadir&g 1351117ca54c3Smrg s&@docdir@&$docdir&g 1351217ca54c3Smrg s&@infodir@&$infodir&g 1351317ca54c3Smrg s&@localedir@&$localedir&g 1351417ca54c3Smrg s&@mandir@&$mandir&g 1351517ca54c3Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 1351617ca54c3Smrgesac 1351717ca54c3Smrg_ACEOF 1351817ca54c3Smrg 1351917ca54c3Smrg# Neutralize VPATH when `$srcdir' = `.'. 1352017ca54c3Smrg# Shell code in configure.ac might set extrasub. 1352117ca54c3Smrg# FIXME: do we really want to maintain this feature? 1352217ca54c3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1352317ca54c3Smrgac_sed_extra="$ac_vpsub 1352417ca54c3Smrg$extrasub 1352517ca54c3Smrg_ACEOF 1352617ca54c3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1352717ca54c3Smrg:t 1352817ca54c3Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1352917ca54c3Smrgs|@configure_input@|$ac_sed_conf_input|;t t 1353017ca54c3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1353117ca54c3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 1353217ca54c3Smrgs&@srcdir@&$ac_srcdir&;t t 1353317ca54c3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 1353417ca54c3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 1353517ca54c3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 1353617ca54c3Smrgs&@builddir@&$ac_builddir&;t t 1353717ca54c3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 1353817ca54c3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 1353917ca54c3Smrgs&@INSTALL@&$ac_INSTALL&;t t 1354017ca54c3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 1354117ca54c3Smrg$ac_datarootdir_hack 1354217ca54c3Smrg" 1354317ca54c3Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1354417ca54c3Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1354517ca54c3Smrg 1354617ca54c3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1354717ca54c3Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1354817ca54c3Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1354917ca54c3Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 13550ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1355117ca54c3Smrgwhich seems to be undefined. Please make sure it is defined" >&5 13552ffe57424Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1355317ca54c3Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1355417ca54c3Smrg 1355517ca54c3Smrg rm -f "$ac_tmp/stdin" 1355617ca54c3Smrg case $ac_file in 1355717ca54c3Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1355817ca54c3Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1355917ca54c3Smrg esac \ 1356017ca54c3Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1356117ca54c3Smrg ;; 1356217ca54c3Smrg 1356317ca54c3Smrg 13564ffe57424Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13565ffe57424Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 1356617ca54c3Smrg ;; 1356717ca54c3Smrg esac 1356817ca54c3Smrg 1356917ca54c3Smrg 1357017ca54c3Smrg case $ac_file$ac_mode in 1357117ca54c3Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1357217ca54c3Smrg # Older Autoconf quotes --file arguments for eval, but not when files 1357317ca54c3Smrg # are listed without --file. Let's play safe and only enable the eval 1357417ca54c3Smrg # if we detect the quoting. 13575ea1d6981Smrg # TODO: see whether this extra hack can be removed once we start 13576ea1d6981Smrg # requiring Autoconf 2.70 or later. 13577ea1d6981Smrg case $CONFIG_FILES in #( 13578ea1d6981Smrg *\'*) : 13579ea1d6981Smrg eval set x "$CONFIG_FILES" ;; #( 13580ea1d6981Smrg *) : 13581ea1d6981Smrg set x $CONFIG_FILES ;; #( 13582ea1d6981Smrg *) : 13583ea1d6981Smrg ;; 13584ea1d6981Smrgesac 1358517ca54c3Smrg shift 13586ea1d6981Smrg # Used to flag and report bootstrapping failures. 13587ea1d6981Smrg am_rc=0 13588ea1d6981Smrg for am_mf 1358917ca54c3Smrg do 1359017ca54c3Smrg # Strip MF so we end up with the name of the file. 13591ffe57424Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13592ea1d6981Smrg # Check whether this is an Automake generated Makefile which includes 13593ea1d6981Smrg # dependency-tracking related rules and includes. 13594ea1d6981Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 1359517ca54c3Smrg # limit of 2048, but all sed's we know have understand at least 4000. 13596ea1d6981Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13597ea1d6981Smrg || continue 13598ea1d6981Smrg am_dirpart=`$as_dirname -- "$am_mf" || 13599ea1d6981Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13600ea1d6981Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 13601ea1d6981Smrg X"$am_mf" : 'X\(//\)$' \| \ 13602ea1d6981Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13603ffe57424Smrgprintf "%s\n" X"$am_mf" | 1360417ca54c3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1360517ca54c3Smrg s//\1/ 1360617ca54c3Smrg q 1360717ca54c3Smrg } 1360817ca54c3Smrg /^X\(\/\/\)[^/].*/{ 1360917ca54c3Smrg s//\1/ 1361017ca54c3Smrg q 1361117ca54c3Smrg } 1361217ca54c3Smrg /^X\(\/\/\)$/{ 1361317ca54c3Smrg s//\1/ 1361417ca54c3Smrg q 1361517ca54c3Smrg } 1361617ca54c3Smrg /^X\(\/\).*/{ 1361717ca54c3Smrg s//\1/ 1361817ca54c3Smrg q 1361917ca54c3Smrg } 1362017ca54c3Smrg s/.*/./; q'` 13621ea1d6981Smrg am_filepart=`$as_basename -- "$am_mf" || 13622ea1d6981Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13623ea1d6981Smrg X"$am_mf" : 'X\(//\)$' \| \ 13624ea1d6981Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13625ffe57424Smrgprintf "%s\n" X/"$am_mf" | 13626ea1d6981Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1362717ca54c3Smrg s//\1/ 1362817ca54c3Smrg q 1362917ca54c3Smrg } 13630ea1d6981Smrg /^X\/\(\/\/\)$/{ 1363117ca54c3Smrg s//\1/ 1363217ca54c3Smrg q 1363317ca54c3Smrg } 13634ea1d6981Smrg /^X\/\(\/\).*/{ 1363517ca54c3Smrg s//\1/ 1363617ca54c3Smrg q 1363717ca54c3Smrg } 1363817ca54c3Smrg s/.*/./; q'` 13639ea1d6981Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13640ea1d6981Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13641ea1d6981Smrg | $MAKE -f - am--depfiles" >&5 13642ea1d6981Smrg (cd "$am_dirpart" \ 13643ea1d6981Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 13644ea1d6981Smrg | $MAKE -f - am--depfiles) >&5 2>&5 13645ea1d6981Smrg ac_status=$? 13646ea1d6981Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 13647ea1d6981Smrg (exit $ac_status); } || am_rc=$? 1364817ca54c3Smrg done 13649ea1d6981Smrg if test $am_rc -ne 0; then 13650ffe57424Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13651ffe57424Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13652ea1d6981Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 13653ffe57424Smrg for automatic dependency tracking. If GNU make was not used, consider 13654ffe57424Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 13655ffe57424Smrg necessary). You can also try re-running configure with the 13656ea1d6981Smrg '--disable-dependency-tracking' option to at least be able to build 13657ea1d6981Smrg the package (albeit without support for automatic dependency tracking). 13658ea1d6981SmrgSee \`config.log' for more details" "$LINENO" 5; } 13659ea1d6981Smrg fi 13660ea1d6981Smrg { am_dirpart=; unset am_dirpart;} 13661ea1d6981Smrg { am_filepart=; unset am_filepart;} 13662ea1d6981Smrg { am_mf=; unset am_mf;} 13663ea1d6981Smrg { am_rc=; unset am_rc;} 13664ea1d6981Smrg rm -f conftest-deps.mk 1366517ca54c3Smrg} 1366617ca54c3Smrg ;; 1366717ca54c3Smrg 1366817ca54c3Smrg esac 1366917ca54c3Smrgdone # for ac_tag 1367017ca54c3Smrg 1367117ca54c3Smrg 1367217ca54c3Smrgas_fn_exit 0 1367317ca54c3Smrg_ACEOF 1367417ca54c3Smrgac_clean_files=$ac_clean_files_save 1367517ca54c3Smrg 1367617ca54c3Smrgtest $ac_write_fail = 0 || 1367717ca54c3Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1367817ca54c3Smrg 1367917ca54c3Smrg 1368017ca54c3Smrg# configure is writing to config.log, and then calls config.status. 1368117ca54c3Smrg# config.status does its own redirection, appending to config.log. 1368217ca54c3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 1368317ca54c3Smrg# by configure, so config.status won't be able to write to it; its 1368417ca54c3Smrg# output is simply discarded. So we exec the FD to /dev/null, 1368517ca54c3Smrg# effectively closing config.log, so it can be properly (re)opened and 1368617ca54c3Smrg# appended to by config.status. When coming back to configure, we 1368717ca54c3Smrg# need to make the FD available again. 1368817ca54c3Smrgif test "$no_create" != yes; then 1368917ca54c3Smrg ac_cs_success=: 1369017ca54c3Smrg ac_config_status_args= 1369117ca54c3Smrg test "$silent" = yes && 1369217ca54c3Smrg ac_config_status_args="$ac_config_status_args --quiet" 1369317ca54c3Smrg exec 5>/dev/null 1369417ca54c3Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1369517ca54c3Smrg exec 5>>config.log 1369617ca54c3Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1369717ca54c3Smrg # would make configure fail if this is the last instruction. 1369817ca54c3Smrg $ac_cs_success || as_fn_exit 1 1369917ca54c3Smrgfi 1370017ca54c3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13701ffe57424Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13702ffe57424Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1370317ca54c3Smrgfi 1370417ca54c3Smrg 13705ffe57424Smrg 13706