12c7c4e3dSmrg#! /bin/sh 22c7c4e3dSmrg# Guess values for system-dependent variables and create Makefiles. 3c1e8faa6Smrg# Generated by GNU Autoconf 2.72 for xcmsdb 1.0.7. 42c7c4e3dSmrg# 5c1e8faa6Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues>. 62c7c4e3dSmrg# 716d7e2f1Smrg# 8c1e8faa6Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 93458e6c2Smrg# Inc. 1016d7e2f1Smrg# 1116d7e2f1Smrg# 122c7c4e3dSmrg# This configure script is free software; the Free Software Foundation 132c7c4e3dSmrg# gives unlimited permission to copy, distribute and modify it. 1416d7e2f1Smrg## -------------------- ## 1516d7e2f1Smrg## M4sh Initialization. ## 1616d7e2f1Smrg## -------------------- ## 172c7c4e3dSmrg 188650bb69Smrg# Be more Bourne compatible 198650bb69SmrgDUALCASE=1; export DUALCASE # for MKS sh 203458e6c2Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 213458e6c2Smrgthen : 222c7c4e3dSmrg emulate sh 232c7c4e3dSmrg NULLCMD=: 248650bb69Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 252c7c4e3dSmrg # is contrary to our usage. Disable this feature. 262c7c4e3dSmrg alias -g '${1+"$@"}'='"$@"' 278650bb69Smrg setopt NO_GLOB_SUBST 28c1e8faa6Smrgelse case e in #( 29c1e8faa6Smrg e) case `(set -o) 2>/dev/null` in #( 3016d7e2f1Smrg *posix*) : 3116d7e2f1Smrg set -o posix ;; #( 3216d7e2f1Smrg *) : 3316d7e2f1Smrg ;; 34c1e8faa6Smrgesac ;; 358650bb69Smrgesac 368650bb69Smrgfi 378650bb69Smrg 388650bb69Smrg 393458e6c2Smrg 403458e6c2Smrg# Reset variables that may have inherited troublesome values from 413458e6c2Smrg# the environment. 423458e6c2Smrg 433458e6c2Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 443458e6c2Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 453458e6c2Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 463458e6c2Smrg# Quoting is to prevent editors from complaining about space-tab. 478650bb69Smrgas_nl=' 488650bb69Smrg' 498650bb69Smrgexport as_nl 503458e6c2SmrgIFS=" "" $as_nl" 513458e6c2Smrg 523458e6c2SmrgPS1='$ ' 533458e6c2SmrgPS2='> ' 543458e6c2SmrgPS4='+ ' 553458e6c2Smrg 563458e6c2Smrg# Ensure predictable behavior from utilities with locale-dependent output. 573458e6c2SmrgLC_ALL=C 583458e6c2Smrgexport LC_ALL 593458e6c2SmrgLANGUAGE=C 603458e6c2Smrgexport LANGUAGE 613458e6c2Smrg 623458e6c2Smrg# We cannot yet rely on "unset" to work, but we need these variables 633458e6c2Smrg# to be unset--not just set to an empty or harmless value--now, to 643458e6c2Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 653458e6c2Smrg# also avoids known problems related to "unset" and subshell syntax 663458e6c2Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 673458e6c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 683458e6c2Smrgdo eval test \${$as_var+y} \ 693458e6c2Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 703458e6c2Smrgdone 713458e6c2Smrg 723458e6c2Smrg# Ensure that fds 0, 1, and 2 are open. 733458e6c2Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 743458e6c2Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 753458e6c2Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 768650bb69Smrg 778650bb69Smrg# The user is always right. 783458e6c2Smrgif ${PATH_SEPARATOR+false} :; then 798650bb69Smrg PATH_SEPARATOR=: 808650bb69Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 818650bb69Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 828650bb69Smrg PATH_SEPARATOR=';' 838650bb69Smrg } 842c7c4e3dSmrgfi 852c7c4e3dSmrg 862c7c4e3dSmrg 878650bb69Smrg# Find who we are. Look in the path if we contain no directory separator. 8816d7e2f1Smrgas_myself= 8916d7e2f1Smrgcase $0 in #(( 908650bb69Smrg *[\\/]* ) as_myself=$0 ;; 918650bb69Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 928650bb69Smrgfor as_dir in $PATH 938650bb69Smrgdo 948650bb69Smrg IFS=$as_save_IFS 953458e6c2Smrg case $as_dir in #((( 963458e6c2Smrg '') as_dir=./ ;; 973458e6c2Smrg */) ;; 983458e6c2Smrg *) as_dir=$as_dir/ ;; 993458e6c2Smrg esac 1003458e6c2Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10116d7e2f1Smrg done 1028650bb69SmrgIFS=$as_save_IFS 1038650bb69Smrg 1048650bb69Smrg ;; 1058650bb69Smrgesac 106c1e8faa6Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 1078650bb69Smrg# in which case we are not to be found in the path. 1088650bb69Smrgif test "x$as_myself" = x; then 1098650bb69Smrg as_myself=$0 1108650bb69Smrgfi 1118650bb69Smrgif test ! -f "$as_myself"; then 1123458e6c2Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11316d7e2f1Smrg exit 1 1148650bb69Smrgfi 1158650bb69Smrg 11616d7e2f1Smrg 1172becc446Smrg# Use a proper internal environment variable to ensure we don't fall 1182becc446Smrg # into an infinite loop, continuously re-executing ourselves. 1192becc446Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1202becc446Smrg _as_can_reexec=no; export _as_can_reexec; 1212becc446Smrg # We cannot yet assume a decent shell, so we have to provide a 1222becc446Smrg# neutralization value for shells without unset; and this also 1232becc446Smrg# works around shells that cannot unset nonexistent variables. 1242becc446Smrg# Preserve -v and -x to the replacement shell. 1252becc446SmrgBASH_ENV=/dev/null 1262becc446SmrgENV=/dev/null 1272becc446Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1282becc446Smrgcase $- in # (((( 1292becc446Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1302becc446Smrg *v* ) as_opts=-v ;; 1312becc446Smrg *x* ) as_opts=-x ;; 1322becc446Smrg * ) as_opts= ;; 1332becc446Smrgesac 1342becc446Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1352becc446Smrg# Admittedly, this is quite paranoid, since all the known shells bail 136c1e8faa6Smrg# out after a failed 'exec'. 1373458e6c2Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1383458e6c2Smrgexit 255 1392becc446Smrg fi 1402becc446Smrg # We don't want this to propagate to other subprocesses. 1412becc446Smrg { _as_can_reexec=; unset _as_can_reexec;} 14216d7e2f1Smrgif test "x$CONFIG_SHELL" = x; then 143c1e8faa6Smrg as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1443458e6c2Smrgthen : 14516d7e2f1Smrg emulate sh 14616d7e2f1Smrg NULLCMD=: 14716d7e2f1Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14816d7e2f1Smrg # is contrary to our usage. Disable this feature. 14916d7e2f1Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15016d7e2f1Smrg setopt NO_GLOB_SUBST 151c1e8faa6Smrgelse case e in #( 152c1e8faa6Smrg e) case \`(set -o) 2>/dev/null\` in #( 15316d7e2f1Smrg *posix*) : 15416d7e2f1Smrg set -o posix ;; #( 15516d7e2f1Smrg *) : 15616d7e2f1Smrg ;; 157c1e8faa6Smrgesac ;; 15816d7e2f1Smrgesac 15916d7e2f1Smrgfi 16016d7e2f1Smrg" 16116d7e2f1Smrg as_required="as_fn_return () { (exit \$1); } 16216d7e2f1Smrgas_fn_success () { as_fn_return 0; } 16316d7e2f1Smrgas_fn_failure () { as_fn_return 1; } 16416d7e2f1Smrgas_fn_ret_success () { return 0; } 16516d7e2f1Smrgas_fn_ret_failure () { return 1; } 16616d7e2f1Smrg 16716d7e2f1Smrgexitcode=0 16816d7e2f1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16916d7e2f1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17016d7e2f1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17116d7e2f1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1723458e6c2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1733458e6c2Smrgthen : 17416d7e2f1Smrg 175c1e8faa6Smrgelse case e in #( 176c1e8faa6Smrg e) exitcode=1; echo positional parameters were not saved. ;; 177c1e8faa6Smrgesac 17816d7e2f1Smrgfi 1792becc446Smrgtest x\$exitcode = x0 || exit 1 1803458e6c2Smrgblah=\$(echo \$(echo blah)) 1813458e6c2Smrgtest x\"\$blah\" = xblah || exit 1 1822becc446Smrgtest -x / || exit 1" 18316d7e2f1Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18416d7e2f1Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18516d7e2f1Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18616d7e2f1Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18716d7e2f1Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1883458e6c2Smrg if (eval "$as_required") 2>/dev/null 1893458e6c2Smrgthen : 19016d7e2f1Smrg as_have_required=yes 191c1e8faa6Smrgelse case e in #( 192c1e8faa6Smrg e) as_have_required=no ;; 193c1e8faa6Smrgesac 19416d7e2f1Smrgfi 1953458e6c2Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1963458e6c2Smrgthen : 19716d7e2f1Smrg 198c1e8faa6Smrgelse case e in #( 199c1e8faa6Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20016d7e2f1Smrgas_found=false 20116d7e2f1Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20216d7e2f1Smrgdo 20316d7e2f1Smrg IFS=$as_save_IFS 2043458e6c2Smrg case $as_dir in #((( 2053458e6c2Smrg '') as_dir=./ ;; 2063458e6c2Smrg */) ;; 2073458e6c2Smrg *) as_dir=$as_dir/ ;; 2083458e6c2Smrg esac 20916d7e2f1Smrg as_found=: 21016d7e2f1Smrg case $as_dir in #( 21116d7e2f1Smrg /*) 21216d7e2f1Smrg for as_base in sh bash ksh sh5; do 21316d7e2f1Smrg # Try only shells that exist, to save several forks. 2143458e6c2Smrg as_shell=$as_dir$as_base 21516d7e2f1Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2163458e6c2Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2173458e6c2Smrgthen : 21816d7e2f1Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2193458e6c2Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2203458e6c2Smrgthen : 22116d7e2f1Smrg break 2 22216d7e2f1Smrgfi 22316d7e2f1Smrgfi 22416d7e2f1Smrg done;; 22516d7e2f1Smrg esac 22616d7e2f1Smrg as_found=false 22716d7e2f1Smrgdone 22816d7e2f1SmrgIFS=$as_save_IFS 2293458e6c2Smrgif $as_found 2303458e6c2Smrgthen : 2313458e6c2Smrg 232c1e8faa6Smrgelse case e in #( 233c1e8faa6Smrg e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2343458e6c2Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2353458e6c2Smrgthen : 2363458e6c2Smrg CONFIG_SHELL=$SHELL as_have_required=yes 237c1e8faa6Smrgfi ;; 238c1e8faa6Smrgesac 2393458e6c2Smrgfi 24016d7e2f1Smrg 24116d7e2f1Smrg 2423458e6c2Smrg if test "x$CONFIG_SHELL" != x 2433458e6c2Smrgthen : 2442becc446Smrg export CONFIG_SHELL 2452becc446Smrg # We cannot yet assume a decent shell, so we have to provide a 2462becc446Smrg# neutralization value for shells without unset; and this also 2472becc446Smrg# works around shells that cannot unset nonexistent variables. 2482becc446Smrg# Preserve -v and -x to the replacement shell. 2492becc446SmrgBASH_ENV=/dev/null 2502becc446SmrgENV=/dev/null 2512becc446Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2522becc446Smrgcase $- in # (((( 2532becc446Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2542becc446Smrg *v* ) as_opts=-v ;; 2552becc446Smrg *x* ) as_opts=-x ;; 2562becc446Smrg * ) as_opts= ;; 2572becc446Smrgesac 2582becc446Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2592becc446Smrg# Admittedly, this is quite paranoid, since all the known shells bail 260c1e8faa6Smrg# out after a failed 'exec'. 2613458e6c2Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2622becc446Smrgexit 255 26316d7e2f1Smrgfi 26416d7e2f1Smrg 2653458e6c2Smrg if test x$as_have_required = xno 2663458e6c2Smrgthen : 2673458e6c2Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 2683458e6c2Smrg printf "%s\n" "$0: the shells that I found on your system." 2693458e6c2Smrg if test ${ZSH_VERSION+y} ; then 2703458e6c2Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2713458e6c2Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 27216d7e2f1Smrg else 2733458e6c2Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274c1e8faa6Smrg$0: https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues 27516d7e2f1Smrg$0: about your system, including any error possibly output 27616d7e2f1Smrg$0: before this message. Then install a modern shell, or 27716d7e2f1Smrg$0: manually run the script under such a shell if you do 27816d7e2f1Smrg$0: have one." 27916d7e2f1Smrg fi 28016d7e2f1Smrg exit 1 281c1e8faa6Smrgfi ;; 282c1e8faa6Smrgesac 28316d7e2f1Smrgfi 28416d7e2f1Smrgfi 28516d7e2f1SmrgSHELL=${CONFIG_SHELL-/bin/sh} 28616d7e2f1Smrgexport SHELL 28716d7e2f1Smrg# Unset more variables known to interfere with behavior of common tools. 28816d7e2f1SmrgCLICOLOR_FORCE= GREP_OPTIONS= 28916d7e2f1Smrgunset CLICOLOR_FORCE GREP_OPTIONS 29016d7e2f1Smrg 29116d7e2f1Smrg## --------------------- ## 29216d7e2f1Smrg## M4sh Shell Functions. ## 29316d7e2f1Smrg## --------------------- ## 29416d7e2f1Smrg# as_fn_unset VAR 29516d7e2f1Smrg# --------------- 29616d7e2f1Smrg# Portably unset VAR. 29716d7e2f1Smrgas_fn_unset () 29816d7e2f1Smrg{ 29916d7e2f1Smrg { eval $1=; unset $1;} 30016d7e2f1Smrg} 30116d7e2f1Smrgas_unset=as_fn_unset 30216d7e2f1Smrg 3033458e6c2Smrg 30416d7e2f1Smrg# as_fn_set_status STATUS 30516d7e2f1Smrg# ----------------------- 30616d7e2f1Smrg# Set $? to STATUS, without forking. 30716d7e2f1Smrgas_fn_set_status () 30816d7e2f1Smrg{ 30916d7e2f1Smrg return $1 31016d7e2f1Smrg} # as_fn_set_status 31116d7e2f1Smrg 31216d7e2f1Smrg# as_fn_exit STATUS 31316d7e2f1Smrg# ----------------- 31416d7e2f1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31516d7e2f1Smrgas_fn_exit () 31616d7e2f1Smrg{ 31716d7e2f1Smrg set +e 31816d7e2f1Smrg as_fn_set_status $1 31916d7e2f1Smrg exit $1 32016d7e2f1Smrg} # as_fn_exit 32116d7e2f1Smrg 32216d7e2f1Smrg# as_fn_mkdir_p 32316d7e2f1Smrg# ------------- 32416d7e2f1Smrg# Create "$as_dir" as a directory, including parents if necessary. 32516d7e2f1Smrgas_fn_mkdir_p () 32616d7e2f1Smrg{ 32716d7e2f1Smrg 32816d7e2f1Smrg case $as_dir in #( 32916d7e2f1Smrg -*) as_dir=./$as_dir;; 33016d7e2f1Smrg esac 33116d7e2f1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 33216d7e2f1Smrg as_dirs= 33316d7e2f1Smrg while :; do 33416d7e2f1Smrg case $as_dir in #( 3353458e6c2Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33616d7e2f1Smrg *) as_qdir=$as_dir;; 33716d7e2f1Smrg esac 33816d7e2f1Smrg as_dirs="'$as_qdir' $as_dirs" 33916d7e2f1Smrg as_dir=`$as_dirname -- "$as_dir" || 34016d7e2f1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34116d7e2f1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34216d7e2f1Smrg X"$as_dir" : 'X\(//\)$' \| \ 34316d7e2f1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3443458e6c2Smrgprintf "%s\n" X"$as_dir" | 34516d7e2f1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34616d7e2f1Smrg s//\1/ 34716d7e2f1Smrg q 34816d7e2f1Smrg } 34916d7e2f1Smrg /^X\(\/\/\)[^/].*/{ 35016d7e2f1Smrg s//\1/ 35116d7e2f1Smrg q 35216d7e2f1Smrg } 35316d7e2f1Smrg /^X\(\/\/\)$/{ 35416d7e2f1Smrg s//\1/ 35516d7e2f1Smrg q 35616d7e2f1Smrg } 35716d7e2f1Smrg /^X\(\/\).*/{ 35816d7e2f1Smrg s//\1/ 35916d7e2f1Smrg q 36016d7e2f1Smrg } 36116d7e2f1Smrg s/.*/./; q'` 36216d7e2f1Smrg test -d "$as_dir" && break 36316d7e2f1Smrg done 36416d7e2f1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36516d7e2f1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 36616d7e2f1Smrg 36716d7e2f1Smrg 36816d7e2f1Smrg} # as_fn_mkdir_p 3692becc446Smrg 3702becc446Smrg# as_fn_executable_p FILE 3712becc446Smrg# ----------------------- 3722becc446Smrg# Test if FILE is an executable regular file. 3732becc446Smrgas_fn_executable_p () 3742becc446Smrg{ 3752becc446Smrg test -f "$1" && test -x "$1" 3762becc446Smrg} # as_fn_executable_p 37716d7e2f1Smrg# as_fn_append VAR VALUE 37816d7e2f1Smrg# ---------------------- 37916d7e2f1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38016d7e2f1Smrg# advantage of any shell optimizations that allow amortized linear growth over 38116d7e2f1Smrg# repeated appends, instead of the typical quadratic growth present in naive 38216d7e2f1Smrg# implementations. 3833458e6c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3843458e6c2Smrgthen : 38516d7e2f1Smrg eval 'as_fn_append () 38616d7e2f1Smrg { 38716d7e2f1Smrg eval $1+=\$2 38816d7e2f1Smrg }' 389c1e8faa6Smrgelse case e in #( 390c1e8faa6Smrg e) as_fn_append () 39116d7e2f1Smrg { 39216d7e2f1Smrg eval $1=\$$1\$2 393c1e8faa6Smrg } ;; 394c1e8faa6Smrgesac 39516d7e2f1Smrgfi # as_fn_append 39616d7e2f1Smrg 39716d7e2f1Smrg# as_fn_arith ARG... 39816d7e2f1Smrg# ------------------ 39916d7e2f1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40016d7e2f1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40116d7e2f1Smrg# must be portable across $(()) and expr. 4023458e6c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4033458e6c2Smrgthen : 40416d7e2f1Smrg eval 'as_fn_arith () 40516d7e2f1Smrg { 40616d7e2f1Smrg as_val=$(( $* )) 40716d7e2f1Smrg }' 408c1e8faa6Smrgelse case e in #( 409c1e8faa6Smrg e) as_fn_arith () 41016d7e2f1Smrg { 41116d7e2f1Smrg as_val=`expr "$@" || test $? -eq 1` 412c1e8faa6Smrg } ;; 413c1e8faa6Smrgesac 41416d7e2f1Smrgfi # as_fn_arith 41516d7e2f1Smrg 41616d7e2f1Smrg 41716d7e2f1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 41816d7e2f1Smrg# ---------------------------------------- 41916d7e2f1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 42016d7e2f1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 42116d7e2f1Smrg# script with STATUS, using 1 if that was 0. 42216d7e2f1Smrgas_fn_error () 42316d7e2f1Smrg{ 42416d7e2f1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 42516d7e2f1Smrg if test "$4"; then 42616d7e2f1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4273458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 42816d7e2f1Smrg fi 4293458e6c2Smrg printf "%s\n" "$as_me: error: $2" >&2 43016d7e2f1Smrg as_fn_exit $as_status 43116d7e2f1Smrg} # as_fn_error 43216d7e2f1Smrg 4338650bb69Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 4348650bb69Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4352c7c4e3dSmrg as_expr=expr 4362c7c4e3dSmrgelse 4372c7c4e3dSmrg as_expr=false 4382c7c4e3dSmrgfi 4392c7c4e3dSmrg 4408650bb69Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4412c7c4e3dSmrg as_basename=basename 4422c7c4e3dSmrgelse 4432c7c4e3dSmrg as_basename=false 4442c7c4e3dSmrgfi 4452c7c4e3dSmrg 44616d7e2f1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 44716d7e2f1Smrg as_dirname=dirname 44816d7e2f1Smrgelse 44916d7e2f1Smrg as_dirname=false 45016d7e2f1Smrgfi 4512c7c4e3dSmrg 4528650bb69Smrgas_me=`$as_basename -- "$0" || 4532c7c4e3dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4542c7c4e3dSmrg X"$0" : 'X\(//\)$' \| \ 4558650bb69Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4563458e6c2Smrgprintf "%s\n" X/"$0" | 4578650bb69Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4588650bb69Smrg s//\1/ 4598650bb69Smrg q 4608650bb69Smrg } 4618650bb69Smrg /^X\/\(\/\/\)$/{ 4628650bb69Smrg s//\1/ 4638650bb69Smrg q 4648650bb69Smrg } 4658650bb69Smrg /^X\/\(\/\).*/{ 4668650bb69Smrg s//\1/ 4678650bb69Smrg q 4688650bb69Smrg } 4698650bb69Smrg s/.*/./; q'` 4702c7c4e3dSmrg 47116d7e2f1Smrg# Avoid depending upon Character Ranges. 47216d7e2f1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 47316d7e2f1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 47416d7e2f1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 47516d7e2f1Smrgas_cr_digits='0123456789' 47616d7e2f1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4772c7c4e3dSmrg 4782c7c4e3dSmrg 47916d7e2f1Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 48016d7e2f1Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 48116d7e2f1Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 48216d7e2f1Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 48316d7e2f1Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 48416d7e2f1Smrg sed -n ' 48516d7e2f1Smrg p 48616d7e2f1Smrg /[$]LINENO/= 48716d7e2f1Smrg ' <$as_myself | 48816d7e2f1Smrg sed ' 489c1e8faa6Smrg t clear 490c1e8faa6Smrg :clear 49116d7e2f1Smrg s/[$]LINENO.*/&-/ 49216d7e2f1Smrg t lineno 49316d7e2f1Smrg b 49416d7e2f1Smrg :lineno 49516d7e2f1Smrg N 49616d7e2f1Smrg :loop 49716d7e2f1Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 49816d7e2f1Smrg t loop 49916d7e2f1Smrg s/-\n.*// 50016d7e2f1Smrg ' >$as_me.lineno && 50116d7e2f1Smrg chmod +x "$as_me.lineno" || 5023458e6c2Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5032c7c4e3dSmrg 5042becc446Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5052becc446Smrg # already done that, so ensure we don't try to do so again and fall 5062becc446Smrg # in an infinite loop. This has already happened in practice. 5072becc446Smrg _as_can_reexec=no; export _as_can_reexec 50816d7e2f1Smrg # Don't try to exec as it changes $[0], causing all sort of problems 50916d7e2f1Smrg # (the dirname of $[0] is not the place where we might find the 51016d7e2f1Smrg # original and so on. Autoconf is especially sensitive to this). 51116d7e2f1Smrg . "./$as_me.lineno" 51216d7e2f1Smrg # Exit status is that of the last command. 51316d7e2f1Smrg exit 5148650bb69Smrg} 5152c7c4e3dSmrg 5163458e6c2Smrg 5173458e6c2Smrg# Determine whether it's possible to make 'echo' print without a newline. 5183458e6c2Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5193458e6c2Smrg# for compatibility with existing Makefiles. 52016d7e2f1SmrgECHO_C= ECHO_N= ECHO_T= 52116d7e2f1Smrgcase `echo -n x` in #((((( 52216d7e2f1Smrg-n*) 52316d7e2f1Smrg case `echo 'xy\c'` in 52416d7e2f1Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52516d7e2f1Smrg xy) ECHO_C='\c';; 52616d7e2f1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52716d7e2f1Smrg ECHO_T=' ';; 52816d7e2f1Smrg esac;; 52916d7e2f1Smrg*) 53016d7e2f1Smrg ECHO_N='-n';; 53116d7e2f1Smrgesac 5322c7c4e3dSmrg 5333458e6c2Smrg# For backward compatibility with old third-party macros, we provide 5343458e6c2Smrg# the shell variables $as_echo and $as_echo_n. New code should use 5353458e6c2Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5363458e6c2Smrgas_echo='printf %s\n' 5373458e6c2Smrgas_echo_n='printf %s' 5383458e6c2Smrg 53916d7e2f1Smrgrm -f conf$$ conf$$.exe conf$$.file 54016d7e2f1Smrgif test -d conf$$.dir; then 54116d7e2f1Smrg rm -f conf$$.dir/conf$$.file 54216d7e2f1Smrgelse 54316d7e2f1Smrg rm -f conf$$.dir 54416d7e2f1Smrg mkdir conf$$.dir 2>/dev/null 5458650bb69Smrgfi 54616d7e2f1Smrgif (echo >conf$$.file) 2>/dev/null; then 54716d7e2f1Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 54816d7e2f1Smrg as_ln_s='ln -s' 54916d7e2f1Smrg # ... but there are two gotchas: 550c1e8faa6Smrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551c1e8faa6Smrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552c1e8faa6Smrg # In both cases, we have to default to 'cp -pR'. 55316d7e2f1Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5542becc446Smrg as_ln_s='cp -pR' 55516d7e2f1Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 55616d7e2f1Smrg as_ln_s=ln 55716d7e2f1Smrg else 5582becc446Smrg as_ln_s='cp -pR' 55916d7e2f1Smrg fi 5608650bb69Smrgelse 5612becc446Smrg as_ln_s='cp -pR' 5628650bb69Smrgfi 56316d7e2f1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 56416d7e2f1Smrgrmdir conf$$.dir 2>/dev/null 5658650bb69Smrg 56616d7e2f1Smrgif mkdir -p . 2>/dev/null; then 56716d7e2f1Smrg as_mkdir_p='mkdir -p "$as_dir"' 56816d7e2f1Smrgelse 56916d7e2f1Smrg test -d ./-p && rmdir ./-p 57016d7e2f1Smrg as_mkdir_p=false 5718650bb69Smrgfi 5728650bb69Smrg 5732becc446Smrgas_test_x='test -x' 5742becc446Smrgas_executable_p=as_fn_executable_p 5758650bb69Smrg 57616d7e2f1Smrg# Sed expression to map a string onto a valid CPP name. 577c1e8faa6Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578c1e8faa6Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 5798650bb69Smrg 58016d7e2f1Smrg# Sed expression to map a string onto a valid variable name. 581c1e8faa6Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582c1e8faa6Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 5838650bb69Smrg 5848650bb69Smrg 58516d7e2f1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 58616d7e2f1Smrgexec 6>&1 5872c7c4e3dSmrg 5882c7c4e3dSmrg# Name of the host. 58916d7e2f1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5902c7c4e3dSmrg# so uname gets run too. 5912c7c4e3dSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5922c7c4e3dSmrg 5932c7c4e3dSmrg# 5942c7c4e3dSmrg# Initializations. 5952c7c4e3dSmrg# 5962c7c4e3dSmrgac_default_prefix=/usr/local 5978650bb69Smrgac_clean_files= 5982c7c4e3dSmrgac_config_libobj_dir=. 5998650bb69SmrgLIBOBJS= 6002c7c4e3dSmrgcross_compiling=no 6012c7c4e3dSmrgsubdirs= 6022c7c4e3dSmrgMFLAGS= 6032c7c4e3dSmrgMAKEFLAGS= 6042c7c4e3dSmrg 6052c7c4e3dSmrg# Identity of this package. 6062c7c4e3dSmrgPACKAGE_NAME='xcmsdb' 6072c7c4e3dSmrgPACKAGE_TARNAME='xcmsdb' 608c1e8faa6SmrgPACKAGE_VERSION='1.0.7' 609c1e8faa6SmrgPACKAGE_STRING='xcmsdb 1.0.7' 610c1e8faa6SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues' 61116d7e2f1SmrgPACKAGE_URL='' 6122c7c4e3dSmrg 6132becc446Smrgac_unique_file="Makefile.am" 6148650bb69Smrg# Factoring default headers for most tests. 6158650bb69Smrgac_includes_default="\ 6163458e6c2Smrg#include <stddef.h> 6173458e6c2Smrg#ifdef HAVE_STDIO_H 6183458e6c2Smrg# include <stdio.h> 6198650bb69Smrg#endif 6203458e6c2Smrg#ifdef HAVE_STDLIB_H 6218650bb69Smrg# include <stdlib.h> 6228650bb69Smrg#endif 6238650bb69Smrg#ifdef HAVE_STRING_H 6248650bb69Smrg# include <string.h> 6258650bb69Smrg#endif 6268650bb69Smrg#ifdef HAVE_INTTYPES_H 6278650bb69Smrg# include <inttypes.h> 6288650bb69Smrg#endif 6298650bb69Smrg#ifdef HAVE_STDINT_H 6308650bb69Smrg# include <stdint.h> 6318650bb69Smrg#endif 6323458e6c2Smrg#ifdef HAVE_STRINGS_H 6333458e6c2Smrg# include <strings.h> 6343458e6c2Smrg#endif 6353458e6c2Smrg#ifdef HAVE_SYS_TYPES_H 6363458e6c2Smrg# include <sys/types.h> 6373458e6c2Smrg#endif 6383458e6c2Smrg#ifdef HAVE_SYS_STAT_H 6393458e6c2Smrg# include <sys/stat.h> 6403458e6c2Smrg#endif 6418650bb69Smrg#ifdef HAVE_UNISTD_H 6428650bb69Smrg# include <unistd.h> 6438650bb69Smrg#endif" 6448650bb69Smrg 6453458e6c2Smrgac_header_c_list= 646c1e8faa6Smrgenable_year2038=no 6478650bb69Smrgac_subst_vars='am__EXEEXT_FALSE 6488650bb69Smrgam__EXEEXT_TRUE 6498650bb69SmrgLTLIBOBJS 6508650bb69SmrgLIBOBJS 6518650bb69SmrgXCMSDB_LIBS 6528650bb69SmrgXCMSDB_CFLAGS 65316d7e2f1SmrgMAN_SUBSTS 65416d7e2f1SmrgXORG_MAN_PAGE 6558650bb69SmrgADMIN_MAN_DIR 6568650bb69SmrgDRIVER_MAN_DIR 6578650bb69SmrgMISC_MAN_DIR 6588650bb69SmrgFILE_MAN_DIR 6598650bb69SmrgLIB_MAN_DIR 6608650bb69SmrgAPP_MAN_DIR 6618650bb69SmrgADMIN_MAN_SUFFIX 6628650bb69SmrgDRIVER_MAN_SUFFIX 6638650bb69SmrgMISC_MAN_SUFFIX 6648650bb69SmrgFILE_MAN_SUFFIX 6658650bb69SmrgLIB_MAN_SUFFIX 6668650bb69SmrgAPP_MAN_SUFFIX 66716d7e2f1SmrgSED 6688650bb69Smrghost_os 6698650bb69Smrghost_vendor 6708650bb69Smrghost_cpu 6718650bb69Smrghost 6728650bb69Smrgbuild_os 6738650bb69Smrgbuild_vendor 6748650bb69Smrgbuild_cpu 6758650bb69Smrgbuild 67616d7e2f1SmrgINSTALL_CMD 6773458e6c2SmrgPKG_CONFIG_LIBDIR 6783458e6c2SmrgPKG_CONFIG_PATH 67916d7e2f1SmrgPKG_CONFIG 6808650bb69SmrgCHANGELOG_CMD 68116d7e2f1SmrgSTRICT_CFLAGS 6828650bb69SmrgCWARNFLAGS 68316d7e2f1SmrgBASE_CFLAGS 6848650bb69Smrgam__fastdepCC_FALSE 6858650bb69Smrgam__fastdepCC_TRUE 6868650bb69SmrgCCDEPMODE 6872becc446Smrgam__nodep 6888650bb69SmrgAMDEPBACKSLASH 6898650bb69SmrgAMDEP_FALSE 6908650bb69SmrgAMDEP_TRUE 6918650bb69Smrgam__include 6928650bb69SmrgDEPDIR 6938650bb69SmrgOBJEXT 6948650bb69SmrgEXEEXT 6958650bb69Smrgac_ct_CC 6968650bb69SmrgCPPFLAGS 6978650bb69SmrgLDFLAGS 6988650bb69SmrgCFLAGS 6998650bb69SmrgCC 700c1e8faa6Smrgam__xargs_n 701c1e8faa6Smrgam__rm_f_notfound 7022becc446SmrgAM_BACKSLASH 7032becc446SmrgAM_DEFAULT_VERBOSITY 7042becc446SmrgAM_DEFAULT_V 7052becc446SmrgAM_V 7063458e6c2SmrgCSCOPE 7073458e6c2SmrgETAGS 7083458e6c2SmrgCTAGS 7098650bb69Smrgam__untar 7108650bb69Smrgam__tar 7118650bb69SmrgAMTAR 7128650bb69Smrgam__leading_dot 7138650bb69SmrgSET_MAKE 7148650bb69SmrgAWK 7158650bb69Smrgmkdir_p 7168650bb69SmrgMKDIR_P 7178650bb69SmrgINSTALL_STRIP_PROGRAM 7188650bb69SmrgSTRIP 7198650bb69Smrginstall_sh 7208650bb69SmrgMAKEINFO 7218650bb69SmrgAUTOHEADER 7228650bb69SmrgAUTOMAKE 7238650bb69SmrgAUTOCONF 7248650bb69SmrgACLOCAL 7258650bb69SmrgVERSION 7268650bb69SmrgPACKAGE 7278650bb69SmrgCYGPATH_W 7288650bb69Smrgam__isrc 7298650bb69SmrgINSTALL_DATA 7308650bb69SmrgINSTALL_SCRIPT 7318650bb69SmrgINSTALL_PROGRAM 7328650bb69Smrgtarget_alias 7338650bb69Smrghost_alias 7348650bb69Smrgbuild_alias 7358650bb69SmrgLIBS 7368650bb69SmrgECHO_T 7378650bb69SmrgECHO_N 7388650bb69SmrgECHO_C 7398650bb69SmrgDEFS 7408650bb69Smrgmandir 7418650bb69Smrglocaledir 7428650bb69Smrglibdir 7438650bb69Smrgpsdir 7448650bb69Smrgpdfdir 7458650bb69Smrgdvidir 7468650bb69Smrghtmldir 7478650bb69Smrginfodir 7488650bb69Smrgdocdir 7498650bb69Smrgoldincludedir 7508650bb69Smrgincludedir 7513458e6c2Smrgrunstatedir 7528650bb69Smrglocalstatedir 7538650bb69Smrgsharedstatedir 7548650bb69Smrgsysconfdir 7558650bb69Smrgdatadir 7568650bb69Smrgdatarootdir 7578650bb69Smrglibexecdir 7588650bb69Smrgsbindir 7598650bb69Smrgbindir 7608650bb69Smrgprogram_transform_name 7618650bb69Smrgprefix 7628650bb69Smrgexec_prefix 76316d7e2f1SmrgPACKAGE_URL 7648650bb69SmrgPACKAGE_BUGREPORT 7658650bb69SmrgPACKAGE_STRING 7668650bb69SmrgPACKAGE_VERSION 7678650bb69SmrgPACKAGE_TARNAME 7688650bb69SmrgPACKAGE_NAME 7698650bb69SmrgPATH_SEPARATOR 7703458e6c2SmrgSHELL 7713458e6c2Smrgam__quote' 7722c7c4e3dSmrgac_subst_files='' 7738650bb69Smrgac_user_opts=' 7748650bb69Smrgenable_option_checking 7752becc446Smrgenable_silent_rules 7768650bb69Smrgenable_dependency_tracking 77716d7e2f1Smrgenable_selective_werror 7788650bb69Smrgenable_strict_compilation 779c1e8faa6Smrgenable_largefile 780c1e8faa6Smrgenable_year2038 7818650bb69Smrg' 7828650bb69Smrg ac_precious_vars='build_alias 7838650bb69Smrghost_alias 7848650bb69Smrgtarget_alias 7858650bb69SmrgCC 7868650bb69SmrgCFLAGS 7878650bb69SmrgLDFLAGS 7888650bb69SmrgLIBS 7898650bb69SmrgCPPFLAGS 7908650bb69SmrgPKG_CONFIG 7913458e6c2SmrgPKG_CONFIG_PATH 7923458e6c2SmrgPKG_CONFIG_LIBDIR 7938650bb69SmrgXCMSDB_CFLAGS 7948650bb69SmrgXCMSDB_LIBS' 7958650bb69Smrg 7962c7c4e3dSmrg 7972c7c4e3dSmrg# Initialize some variables set by options. 7982c7c4e3dSmrgac_init_help= 7992c7c4e3dSmrgac_init_version=false 8008650bb69Smrgac_unrecognized_opts= 8018650bb69Smrgac_unrecognized_sep= 8022c7c4e3dSmrg# The variables have the same names as the options, with 8032c7c4e3dSmrg# dashes changed to underlines. 8042c7c4e3dSmrgcache_file=/dev/null 8052c7c4e3dSmrgexec_prefix=NONE 8062c7c4e3dSmrgno_create= 8072c7c4e3dSmrgno_recursion= 8082c7c4e3dSmrgprefix=NONE 8092c7c4e3dSmrgprogram_prefix=NONE 8102c7c4e3dSmrgprogram_suffix=NONE 8112c7c4e3dSmrgprogram_transform_name=s,x,x, 8122c7c4e3dSmrgsilent= 8132c7c4e3dSmrgsite= 8142c7c4e3dSmrgsrcdir= 8152c7c4e3dSmrgverbose= 8162c7c4e3dSmrgx_includes=NONE 8172c7c4e3dSmrgx_libraries=NONE 8182c7c4e3dSmrg 8192c7c4e3dSmrg# Installation directory options. 8202c7c4e3dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8212c7c4e3dSmrg# and all the variables that are supposed to be based on exec_prefix 8222c7c4e3dSmrg# by default will actually change. 8232c7c4e3dSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 8248650bb69Smrg# (The list follows the same order as the GNU Coding Standards.) 8252c7c4e3dSmrgbindir='${exec_prefix}/bin' 8262c7c4e3dSmrgsbindir='${exec_prefix}/sbin' 8272c7c4e3dSmrglibexecdir='${exec_prefix}/libexec' 8288650bb69Smrgdatarootdir='${prefix}/share' 8298650bb69Smrgdatadir='${datarootdir}' 8302c7c4e3dSmrgsysconfdir='${prefix}/etc' 8312c7c4e3dSmrgsharedstatedir='${prefix}/com' 8322c7c4e3dSmrglocalstatedir='${prefix}/var' 8333458e6c2Smrgrunstatedir='${localstatedir}/run' 8342c7c4e3dSmrgincludedir='${prefix}/include' 8352c7c4e3dSmrgoldincludedir='/usr/include' 8368650bb69Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8378650bb69Smrginfodir='${datarootdir}/info' 8388650bb69Smrghtmldir='${docdir}' 8398650bb69Smrgdvidir='${docdir}' 8408650bb69Smrgpdfdir='${docdir}' 8418650bb69Smrgpsdir='${docdir}' 8428650bb69Smrglibdir='${exec_prefix}/lib' 8438650bb69Smrglocaledir='${datarootdir}/locale' 8448650bb69Smrgmandir='${datarootdir}/man' 8452c7c4e3dSmrg 8462c7c4e3dSmrgac_prev= 8478650bb69Smrgac_dashdash= 8482c7c4e3dSmrgfor ac_option 8492c7c4e3dSmrgdo 8502c7c4e3dSmrg # If the previous option needs an argument, assign it. 8512c7c4e3dSmrg if test -n "$ac_prev"; then 8528650bb69Smrg eval $ac_prev=\$ac_option 8532c7c4e3dSmrg ac_prev= 8542c7c4e3dSmrg continue 8552c7c4e3dSmrg fi 8562c7c4e3dSmrg 8578650bb69Smrg case $ac_option in 85816d7e2f1Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 85916d7e2f1Smrg *=) ac_optarg= ;; 86016d7e2f1Smrg *) ac_optarg=yes ;; 8618650bb69Smrg esac 8622c7c4e3dSmrg 8638650bb69Smrg case $ac_dashdash$ac_option in 8648650bb69Smrg --) 8658650bb69Smrg ac_dashdash=yes ;; 8662c7c4e3dSmrg 8672c7c4e3dSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8682c7c4e3dSmrg ac_prev=bindir ;; 8692c7c4e3dSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8702c7c4e3dSmrg bindir=$ac_optarg ;; 8712c7c4e3dSmrg 8722c7c4e3dSmrg -build | --build | --buil | --bui | --bu) 8732c7c4e3dSmrg ac_prev=build_alias ;; 8742c7c4e3dSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8752c7c4e3dSmrg build_alias=$ac_optarg ;; 8762c7c4e3dSmrg 8772c7c4e3dSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8782c7c4e3dSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8792c7c4e3dSmrg ac_prev=cache_file ;; 8802c7c4e3dSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8812c7c4e3dSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8822c7c4e3dSmrg cache_file=$ac_optarg ;; 8832c7c4e3dSmrg 8842c7c4e3dSmrg --config-cache | -C) 8852c7c4e3dSmrg cache_file=config.cache ;; 8862c7c4e3dSmrg 8878650bb69Smrg -datadir | --datadir | --datadi | --datad) 8882c7c4e3dSmrg ac_prev=datadir ;; 8898650bb69Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8902c7c4e3dSmrg datadir=$ac_optarg ;; 8912c7c4e3dSmrg 8928650bb69Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8938650bb69Smrg | --dataroo | --dataro | --datar) 8948650bb69Smrg ac_prev=datarootdir ;; 8958650bb69Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8968650bb69Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8978650bb69Smrg datarootdir=$ac_optarg ;; 8988650bb69Smrg 8992c7c4e3dSmrg -disable-* | --disable-*) 9008650bb69Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9012c7c4e3dSmrg # Reject names that are not valid shell variable names. 9028650bb69Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903c1e8faa6Smrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9048650bb69Smrg ac_useropt_orig=$ac_useropt 9053458e6c2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9068650bb69Smrg case $ac_user_opts in 9078650bb69Smrg *" 9088650bb69Smrg"enable_$ac_useropt" 9098650bb69Smrg"*) ;; 9108650bb69Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9118650bb69Smrg ac_unrecognized_sep=', ';; 9128650bb69Smrg esac 9138650bb69Smrg eval enable_$ac_useropt=no ;; 9148650bb69Smrg 9158650bb69Smrg -docdir | --docdir | --docdi | --doc | --do) 9168650bb69Smrg ac_prev=docdir ;; 9178650bb69Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9188650bb69Smrg docdir=$ac_optarg ;; 9198650bb69Smrg 9208650bb69Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9218650bb69Smrg ac_prev=dvidir ;; 9228650bb69Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9238650bb69Smrg dvidir=$ac_optarg ;; 9242c7c4e3dSmrg 9252c7c4e3dSmrg -enable-* | --enable-*) 9268650bb69Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9272c7c4e3dSmrg # Reject names that are not valid shell variable names. 9288650bb69Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929c1e8faa6Smrg as_fn_error $? "invalid feature name: '$ac_useropt'" 9308650bb69Smrg ac_useropt_orig=$ac_useropt 9313458e6c2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9328650bb69Smrg case $ac_user_opts in 9338650bb69Smrg *" 9348650bb69Smrg"enable_$ac_useropt" 9358650bb69Smrg"*) ;; 9368650bb69Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9378650bb69Smrg ac_unrecognized_sep=', ';; 9382c7c4e3dSmrg esac 9398650bb69Smrg eval enable_$ac_useropt=\$ac_optarg ;; 9402c7c4e3dSmrg 9412c7c4e3dSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9422c7c4e3dSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9432c7c4e3dSmrg | --exec | --exe | --ex) 9442c7c4e3dSmrg ac_prev=exec_prefix ;; 9452c7c4e3dSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9462c7c4e3dSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9472c7c4e3dSmrg | --exec=* | --exe=* | --ex=*) 9482c7c4e3dSmrg exec_prefix=$ac_optarg ;; 9492c7c4e3dSmrg 9502c7c4e3dSmrg -gas | --gas | --ga | --g) 9512c7c4e3dSmrg # Obsolete; use --with-gas. 9522c7c4e3dSmrg with_gas=yes ;; 9532c7c4e3dSmrg 9542c7c4e3dSmrg -help | --help | --hel | --he | -h) 9552c7c4e3dSmrg ac_init_help=long ;; 9562c7c4e3dSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9572c7c4e3dSmrg ac_init_help=recursive ;; 9582c7c4e3dSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9592c7c4e3dSmrg ac_init_help=short ;; 9602c7c4e3dSmrg 9612c7c4e3dSmrg -host | --host | --hos | --ho) 9622c7c4e3dSmrg ac_prev=host_alias ;; 9632c7c4e3dSmrg -host=* | --host=* | --hos=* | --ho=*) 9642c7c4e3dSmrg host_alias=$ac_optarg ;; 9652c7c4e3dSmrg 9668650bb69Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9678650bb69Smrg ac_prev=htmldir ;; 9688650bb69Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9698650bb69Smrg | --ht=*) 9708650bb69Smrg htmldir=$ac_optarg ;; 9718650bb69Smrg 9722c7c4e3dSmrg -includedir | --includedir | --includedi | --included | --include \ 9732c7c4e3dSmrg | --includ | --inclu | --incl | --inc) 9742c7c4e3dSmrg ac_prev=includedir ;; 9752c7c4e3dSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9762c7c4e3dSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9772c7c4e3dSmrg includedir=$ac_optarg ;; 9782c7c4e3dSmrg 9792c7c4e3dSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9802c7c4e3dSmrg ac_prev=infodir ;; 9812c7c4e3dSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9822c7c4e3dSmrg infodir=$ac_optarg ;; 9832c7c4e3dSmrg 9842c7c4e3dSmrg -libdir | --libdir | --libdi | --libd) 9852c7c4e3dSmrg ac_prev=libdir ;; 9862c7c4e3dSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9872c7c4e3dSmrg libdir=$ac_optarg ;; 9882c7c4e3dSmrg 9892c7c4e3dSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9902c7c4e3dSmrg | --libexe | --libex | --libe) 9912c7c4e3dSmrg ac_prev=libexecdir ;; 9922c7c4e3dSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9932c7c4e3dSmrg | --libexe=* | --libex=* | --libe=*) 9942c7c4e3dSmrg libexecdir=$ac_optarg ;; 9952c7c4e3dSmrg 9968650bb69Smrg -localedir | --localedir | --localedi | --localed | --locale) 9978650bb69Smrg ac_prev=localedir ;; 9988650bb69Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9998650bb69Smrg localedir=$ac_optarg ;; 10008650bb69Smrg 10012c7c4e3dSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 10028650bb69Smrg | --localstate | --localstat | --localsta | --localst | --locals) 10032c7c4e3dSmrg ac_prev=localstatedir ;; 10042c7c4e3dSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10058650bb69Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10062c7c4e3dSmrg localstatedir=$ac_optarg ;; 10072c7c4e3dSmrg 10082c7c4e3dSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10092c7c4e3dSmrg ac_prev=mandir ;; 10102c7c4e3dSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10112c7c4e3dSmrg mandir=$ac_optarg ;; 10122c7c4e3dSmrg 10132c7c4e3dSmrg -nfp | --nfp | --nf) 10142c7c4e3dSmrg # Obsolete; use --without-fp. 10152c7c4e3dSmrg with_fp=no ;; 10162c7c4e3dSmrg 10172c7c4e3dSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10182c7c4e3dSmrg | --no-cr | --no-c | -n) 10192c7c4e3dSmrg no_create=yes ;; 10202c7c4e3dSmrg 10212c7c4e3dSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10222c7c4e3dSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10232c7c4e3dSmrg no_recursion=yes ;; 10242c7c4e3dSmrg 10252c7c4e3dSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10262c7c4e3dSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10272c7c4e3dSmrg | --oldin | --oldi | --old | --ol | --o) 10282c7c4e3dSmrg ac_prev=oldincludedir ;; 10292c7c4e3dSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10302c7c4e3dSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10312c7c4e3dSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10322c7c4e3dSmrg oldincludedir=$ac_optarg ;; 10332c7c4e3dSmrg 10342c7c4e3dSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10352c7c4e3dSmrg ac_prev=prefix ;; 10362c7c4e3dSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10372c7c4e3dSmrg prefix=$ac_optarg ;; 10382c7c4e3dSmrg 10392c7c4e3dSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10402c7c4e3dSmrg | --program-pre | --program-pr | --program-p) 10412c7c4e3dSmrg ac_prev=program_prefix ;; 10422c7c4e3dSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10432c7c4e3dSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10442c7c4e3dSmrg program_prefix=$ac_optarg ;; 10452c7c4e3dSmrg 10462c7c4e3dSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10472c7c4e3dSmrg | --program-suf | --program-su | --program-s) 10482c7c4e3dSmrg ac_prev=program_suffix ;; 10492c7c4e3dSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10502c7c4e3dSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10512c7c4e3dSmrg program_suffix=$ac_optarg ;; 10522c7c4e3dSmrg 10532c7c4e3dSmrg -program-transform-name | --program-transform-name \ 10542c7c4e3dSmrg | --program-transform-nam | --program-transform-na \ 10552c7c4e3dSmrg | --program-transform-n | --program-transform- \ 10562c7c4e3dSmrg | --program-transform | --program-transfor \ 10572c7c4e3dSmrg | --program-transfo | --program-transf \ 10582c7c4e3dSmrg | --program-trans | --program-tran \ 10592c7c4e3dSmrg | --progr-tra | --program-tr | --program-t) 10602c7c4e3dSmrg ac_prev=program_transform_name ;; 10612c7c4e3dSmrg -program-transform-name=* | --program-transform-name=* \ 10622c7c4e3dSmrg | --program-transform-nam=* | --program-transform-na=* \ 10632c7c4e3dSmrg | --program-transform-n=* | --program-transform-=* \ 10642c7c4e3dSmrg | --program-transform=* | --program-transfor=* \ 10652c7c4e3dSmrg | --program-transfo=* | --program-transf=* \ 10662c7c4e3dSmrg | --program-trans=* | --program-tran=* \ 10672c7c4e3dSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10682c7c4e3dSmrg program_transform_name=$ac_optarg ;; 10692c7c4e3dSmrg 10708650bb69Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10718650bb69Smrg ac_prev=pdfdir ;; 10728650bb69Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10738650bb69Smrg pdfdir=$ac_optarg ;; 10748650bb69Smrg 10758650bb69Smrg -psdir | --psdir | --psdi | --psd | --ps) 10768650bb69Smrg ac_prev=psdir ;; 10778650bb69Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10788650bb69Smrg psdir=$ac_optarg ;; 10798650bb69Smrg 10802c7c4e3dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10812c7c4e3dSmrg | -silent | --silent | --silen | --sile | --sil) 10822c7c4e3dSmrg silent=yes ;; 10832c7c4e3dSmrg 10843458e6c2Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 10853458e6c2Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 10863458e6c2Smrg | --run | --ru | --r) 10873458e6c2Smrg ac_prev=runstatedir ;; 10883458e6c2Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 10893458e6c2Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 10903458e6c2Smrg | --run=* | --ru=* | --r=*) 10913458e6c2Smrg runstatedir=$ac_optarg ;; 10923458e6c2Smrg 10932c7c4e3dSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10942c7c4e3dSmrg ac_prev=sbindir ;; 10952c7c4e3dSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10962c7c4e3dSmrg | --sbi=* | --sb=*) 10972c7c4e3dSmrg sbindir=$ac_optarg ;; 10982c7c4e3dSmrg 10992c7c4e3dSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 11002c7c4e3dSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11012c7c4e3dSmrg | --sharedst | --shareds | --shared | --share | --shar \ 11022c7c4e3dSmrg | --sha | --sh) 11032c7c4e3dSmrg ac_prev=sharedstatedir ;; 11042c7c4e3dSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11052c7c4e3dSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11062c7c4e3dSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11072c7c4e3dSmrg | --sha=* | --sh=*) 11082c7c4e3dSmrg sharedstatedir=$ac_optarg ;; 11092c7c4e3dSmrg 11102c7c4e3dSmrg -site | --site | --sit) 11112c7c4e3dSmrg ac_prev=site ;; 11122c7c4e3dSmrg -site=* | --site=* | --sit=*) 11132c7c4e3dSmrg site=$ac_optarg ;; 11142c7c4e3dSmrg 11152c7c4e3dSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11162c7c4e3dSmrg ac_prev=srcdir ;; 11172c7c4e3dSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11182c7c4e3dSmrg srcdir=$ac_optarg ;; 11192c7c4e3dSmrg 11202c7c4e3dSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11212c7c4e3dSmrg | --syscon | --sysco | --sysc | --sys | --sy) 11222c7c4e3dSmrg ac_prev=sysconfdir ;; 11232c7c4e3dSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11242c7c4e3dSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11252c7c4e3dSmrg sysconfdir=$ac_optarg ;; 11262c7c4e3dSmrg 11272c7c4e3dSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 11282c7c4e3dSmrg ac_prev=target_alias ;; 11292c7c4e3dSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11302c7c4e3dSmrg target_alias=$ac_optarg ;; 11312c7c4e3dSmrg 11322c7c4e3dSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11332c7c4e3dSmrg verbose=yes ;; 11342c7c4e3dSmrg 11352c7c4e3dSmrg -version | --version | --versio | --versi | --vers | -V) 11362c7c4e3dSmrg ac_init_version=: ;; 11372c7c4e3dSmrg 11382c7c4e3dSmrg -with-* | --with-*) 11398650bb69Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11402c7c4e3dSmrg # Reject names that are not valid shell variable names. 11418650bb69Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142c1e8faa6Smrg as_fn_error $? "invalid package name: '$ac_useropt'" 11438650bb69Smrg ac_useropt_orig=$ac_useropt 11443458e6c2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11458650bb69Smrg case $ac_user_opts in 11468650bb69Smrg *" 11478650bb69Smrg"with_$ac_useropt" 11488650bb69Smrg"*) ;; 11498650bb69Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11508650bb69Smrg ac_unrecognized_sep=', ';; 11512c7c4e3dSmrg esac 11528650bb69Smrg eval with_$ac_useropt=\$ac_optarg ;; 11532c7c4e3dSmrg 11542c7c4e3dSmrg -without-* | --without-*) 11558650bb69Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11562c7c4e3dSmrg # Reject names that are not valid shell variable names. 11578650bb69Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158c1e8faa6Smrg as_fn_error $? "invalid package name: '$ac_useropt'" 11598650bb69Smrg ac_useropt_orig=$ac_useropt 11603458e6c2Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11618650bb69Smrg case $ac_user_opts in 11628650bb69Smrg *" 11638650bb69Smrg"with_$ac_useropt" 11648650bb69Smrg"*) ;; 11658650bb69Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11668650bb69Smrg ac_unrecognized_sep=', ';; 11678650bb69Smrg esac 11688650bb69Smrg eval with_$ac_useropt=no ;; 11692c7c4e3dSmrg 11702c7c4e3dSmrg --x) 11712c7c4e3dSmrg # Obsolete; use --with-x. 11722c7c4e3dSmrg with_x=yes ;; 11732c7c4e3dSmrg 11742c7c4e3dSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11752c7c4e3dSmrg | --x-incl | --x-inc | --x-in | --x-i) 11762c7c4e3dSmrg ac_prev=x_includes ;; 11772c7c4e3dSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11782c7c4e3dSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11792c7c4e3dSmrg x_includes=$ac_optarg ;; 11802c7c4e3dSmrg 11812c7c4e3dSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11822c7c4e3dSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11832c7c4e3dSmrg ac_prev=x_libraries ;; 11842c7c4e3dSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11852c7c4e3dSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11862c7c4e3dSmrg x_libraries=$ac_optarg ;; 11872c7c4e3dSmrg 1188c1e8faa6Smrg -*) as_fn_error $? "unrecognized option: '$ac_option' 1189c1e8faa6SmrgTry '$0 --help' for more information" 11902c7c4e3dSmrg ;; 11912c7c4e3dSmrg 11922c7c4e3dSmrg *=*) 11932c7c4e3dSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11942c7c4e3dSmrg # Reject names that are not valid shell variable names. 119516d7e2f1Smrg case $ac_envvar in #( 119616d7e2f1Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197c1e8faa6Smrg as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 119816d7e2f1Smrg esac 11998650bb69Smrg eval $ac_envvar=\$ac_optarg 12002c7c4e3dSmrg export $ac_envvar ;; 12012c7c4e3dSmrg 12022c7c4e3dSmrg *) 12032c7c4e3dSmrg # FIXME: should be removed in autoconf 3.0. 12043458e6c2Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12052c7c4e3dSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12063458e6c2Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 120716d7e2f1Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12082c7c4e3dSmrg ;; 12092c7c4e3dSmrg 12102c7c4e3dSmrg esac 12112c7c4e3dSmrgdone 12122c7c4e3dSmrg 12132c7c4e3dSmrgif test -n "$ac_prev"; then 12142c7c4e3dSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 121516d7e2f1Smrg as_fn_error $? "missing argument to $ac_option" 12162c7c4e3dSmrgfi 12172c7c4e3dSmrg 12188650bb69Smrgif test -n "$ac_unrecognized_opts"; then 12198650bb69Smrg case $enable_option_checking in 12208650bb69Smrg no) ;; 122116d7e2f1Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12223458e6c2Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12232c7c4e3dSmrg esac 12248650bb69Smrgfi 12252c7c4e3dSmrg 12268650bb69Smrg# Check all directory arguments for consistency. 12278650bb69Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12288650bb69Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12298650bb69Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12303458e6c2Smrg libdir localedir mandir runstatedir 12312c7c4e3dSmrgdo 12328650bb69Smrg eval ac_val=\$$ac_var 12338650bb69Smrg # Remove trailing slashes. 12342c7c4e3dSmrg case $ac_val in 12358650bb69Smrg */ ) 12368650bb69Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12378650bb69Smrg eval $ac_var=\$ac_val;; 12388650bb69Smrg esac 12398650bb69Smrg # Be sure to have absolute directory names. 12408650bb69Smrg case $ac_val in 12418650bb69Smrg [\\/$]* | ?:[\\/]* ) continue;; 12428650bb69Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12432c7c4e3dSmrg esac 124416d7e2f1Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12452c7c4e3dSmrgdone 12462c7c4e3dSmrg 1247c1e8faa6Smrg# There might be people who depend on the old broken behavior: '$host' 12482c7c4e3dSmrg# used to hold the argument of --host etc. 12492c7c4e3dSmrg# FIXME: To remove some day. 12502c7c4e3dSmrgbuild=$build_alias 12512c7c4e3dSmrghost=$host_alias 12522c7c4e3dSmrgtarget=$target_alias 12532c7c4e3dSmrg 12542c7c4e3dSmrg# FIXME: To remove some day. 12552c7c4e3dSmrgif test "x$host_alias" != x; then 12562c7c4e3dSmrg if test "x$build_alias" = x; then 12572c7c4e3dSmrg cross_compiling=maybe 12582c7c4e3dSmrg elif test "x$build_alias" != "x$host_alias"; then 12592c7c4e3dSmrg cross_compiling=yes 12602c7c4e3dSmrg fi 12612c7c4e3dSmrgfi 12622c7c4e3dSmrg 12632c7c4e3dSmrgac_tool_prefix= 12642c7c4e3dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12652c7c4e3dSmrg 12662c7c4e3dSmrgtest "$silent" = yes && exec 6>/dev/null 12672c7c4e3dSmrg 12682c7c4e3dSmrg 12698650bb69Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12708650bb69Smrgac_ls_di=`ls -di .` && 12718650bb69Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 127216d7e2f1Smrg as_fn_error $? "working directory cannot be determined" 12738650bb69Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 127416d7e2f1Smrg as_fn_error $? "pwd does not report name of working directory" 12758650bb69Smrg 12768650bb69Smrg 12778650bb69Smrg# Find the source files, if location was not specified. 12788650bb69Smrgif test -z "$srcdir"; then 12792c7c4e3dSmrg ac_srcdir_defaulted=yes 12808650bb69Smrg # Try the directory containing this script, then the parent directory. 12818650bb69Smrg ac_confdir=`$as_dirname -- "$as_myself" || 12828650bb69Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12838650bb69Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12848650bb69Smrg X"$as_myself" : 'X\(//\)$' \| \ 12858650bb69Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12863458e6c2Smrgprintf "%s\n" X"$as_myself" | 12878650bb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12888650bb69Smrg s//\1/ 12898650bb69Smrg q 12908650bb69Smrg } 12918650bb69Smrg /^X\(\/\/\)[^/].*/{ 12928650bb69Smrg s//\1/ 12938650bb69Smrg q 12948650bb69Smrg } 12958650bb69Smrg /^X\(\/\/\)$/{ 12968650bb69Smrg s//\1/ 12978650bb69Smrg q 12988650bb69Smrg } 12998650bb69Smrg /^X\(\/\).*/{ 13008650bb69Smrg s//\1/ 13018650bb69Smrg q 13028650bb69Smrg } 13038650bb69Smrg s/.*/./; q'` 13042c7c4e3dSmrg srcdir=$ac_confdir 13058650bb69Smrg if test ! -r "$srcdir/$ac_unique_file"; then 13062c7c4e3dSmrg srcdir=.. 13072c7c4e3dSmrg fi 13082c7c4e3dSmrgelse 13092c7c4e3dSmrg ac_srcdir_defaulted=no 13102c7c4e3dSmrgfi 13118650bb69Smrgif test ! -r "$srcdir/$ac_unique_file"; then 13128650bb69Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 131316d7e2f1Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13142c7c4e3dSmrgfi 1315c1e8faa6Smrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 13168650bb69Smrgac_abs_confdir=`( 131716d7e2f1Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13188650bb69Smrg pwd)` 13198650bb69Smrg# When building in place, set srcdir=. 13208650bb69Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 13218650bb69Smrg srcdir=. 13228650bb69Smrgfi 13238650bb69Smrg# Remove unnecessary trailing slashes from srcdir. 13248650bb69Smrg# Double slashes in file names in object file debugging info 13258650bb69Smrg# mess up M-x gdb in Emacs. 13268650bb69Smrgcase $srcdir in 13278650bb69Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13288650bb69Smrgesac 13298650bb69Smrgfor ac_var in $ac_precious_vars; do 13308650bb69Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13318650bb69Smrg eval ac_env_${ac_var}_value=\$${ac_var} 13328650bb69Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13338650bb69Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13348650bb69Smrgdone 13352c7c4e3dSmrg 13362c7c4e3dSmrg# 13372c7c4e3dSmrg# Report the --help message. 13382c7c4e3dSmrg# 13392c7c4e3dSmrgif test "$ac_init_help" = "long"; then 13402c7c4e3dSmrg # Omit some internal or obsolete options to make the list less imposing. 13412c7c4e3dSmrg # This message is too long to be a string in the A/UX 3.1 sh. 13422c7c4e3dSmrg cat <<_ACEOF 1343c1e8faa6Smrg'configure' configures xcmsdb 1.0.7 to adapt to many kinds of systems. 13442c7c4e3dSmrg 13452c7c4e3dSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13462c7c4e3dSmrg 13472c7c4e3dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13482c7c4e3dSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13492c7c4e3dSmrg 13502c7c4e3dSmrgDefaults for the options are specified in brackets. 13512c7c4e3dSmrg 13522c7c4e3dSmrgConfiguration: 13532c7c4e3dSmrg -h, --help display this help and exit 13542c7c4e3dSmrg --help=short display options specific to this package 13552c7c4e3dSmrg --help=recursive display the short help of all the included packages 13562c7c4e3dSmrg -V, --version display version information and exit 1357c1e8faa6Smrg -q, --quiet, --silent do not print 'checking ...' messages 13582c7c4e3dSmrg --cache-file=FILE cache test results in FILE [disabled] 1359c1e8faa6Smrg -C, --config-cache alias for '--cache-file=config.cache' 13602c7c4e3dSmrg -n, --no-create do not create output files 1361c1e8faa6Smrg --srcdir=DIR find the sources in DIR [configure dir or '..'] 13622c7c4e3dSmrg 13632c7c4e3dSmrgInstallation directories: 13642c7c4e3dSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13658650bb69Smrg [$ac_default_prefix] 13662c7c4e3dSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13678650bb69Smrg [PREFIX] 13682c7c4e3dSmrg 1369c1e8faa6SmrgBy default, 'make install' will install all the files in 1370c1e8faa6Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1371c1e8faa6Smrgan installation prefix other than '$ac_default_prefix' using '--prefix', 1372c1e8faa6Smrgfor instance '--prefix=\$HOME'. 13732c7c4e3dSmrg 13742c7c4e3dSmrgFor better control, use the options below. 13752c7c4e3dSmrg 13762c7c4e3dSmrgFine tuning of the installation directories: 13778650bb69Smrg --bindir=DIR user executables [EPREFIX/bin] 13788650bb69Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13798650bb69Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 13808650bb69Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13818650bb69Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13828650bb69Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13833458e6c2Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13848650bb69Smrg --libdir=DIR object code libraries [EPREFIX/lib] 13858650bb69Smrg --includedir=DIR C header files [PREFIX/include] 13868650bb69Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13878650bb69Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13888650bb69Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13898650bb69Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 13908650bb69Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13918650bb69Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 13928650bb69Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xcmsdb] 13938650bb69Smrg --htmldir=DIR html documentation [DOCDIR] 13948650bb69Smrg --dvidir=DIR dvi documentation [DOCDIR] 13958650bb69Smrg --pdfdir=DIR pdf documentation [DOCDIR] 13968650bb69Smrg --psdir=DIR ps documentation [DOCDIR] 13972c7c4e3dSmrg_ACEOF 13982c7c4e3dSmrg 13992c7c4e3dSmrg cat <<\_ACEOF 14002c7c4e3dSmrg 14012c7c4e3dSmrgProgram names: 14022c7c4e3dSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 14032c7c4e3dSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 14042c7c4e3dSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14052c7c4e3dSmrg 14062c7c4e3dSmrgSystem types: 14072c7c4e3dSmrg --build=BUILD configure for building on BUILD [guessed] 14082c7c4e3dSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 14092c7c4e3dSmrg_ACEOF 14102c7c4e3dSmrgfi 14112c7c4e3dSmrg 14122c7c4e3dSmrgif test -n "$ac_init_help"; then 14132c7c4e3dSmrg case $ac_init_help in 1414c1e8faa6Smrg short | recursive ) echo "Configuration of xcmsdb 1.0.7:";; 14152c7c4e3dSmrg esac 14162c7c4e3dSmrg cat <<\_ACEOF 14172c7c4e3dSmrg 14182c7c4e3dSmrgOptional Features: 14198650bb69Smrg --disable-option-checking ignore unrecognized --enable/--with options 14202c7c4e3dSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14212c7c4e3dSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14222becc446Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 14232becc446Smrg --disable-silent-rules verbose build output (undo: "make V=0") 14242becc446Smrg --enable-dependency-tracking 14252becc446Smrg do not reject slow dependency extractors 14262becc446Smrg --disable-dependency-tracking 14272becc446Smrg speeds up one-time build 142816d7e2f1Smrg --disable-selective-werror 142916d7e2f1Smrg Turn off selective compiler errors. (default: 143016d7e2f1Smrg enabled) 14318650bb69Smrg --enable-strict-compilation 14328650bb69Smrg Enable all warnings from compiler and make them 14338650bb69Smrg errors (default: disabled) 1434c1e8faa6Smrg --disable-largefile omit support for large files 1435c1e8faa6Smrg --enable-year2038 support timestamps after 2038 14362c7c4e3dSmrg 14372c7c4e3dSmrgSome influential environment variables: 14382c7c4e3dSmrg CC C compiler command 14392c7c4e3dSmrg CFLAGS C compiler flags 14402c7c4e3dSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14412c7c4e3dSmrg nonstandard directory <lib dir> 14428650bb69Smrg LIBS libraries to pass to the linker, e.g. -l<library> 144316d7e2f1Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14448650bb69Smrg you have headers in a nonstandard directory <include dir> 14452c7c4e3dSmrg PKG_CONFIG path to pkg-config utility 14463458e6c2Smrg PKG_CONFIG_PATH 14473458e6c2Smrg directories to add to pkg-config's search path 14483458e6c2Smrg PKG_CONFIG_LIBDIR 14493458e6c2Smrg path overriding pkg-config's built-in search path 14502c7c4e3dSmrg XCMSDB_CFLAGS 14512c7c4e3dSmrg C compiler flags for XCMSDB, overriding pkg-config 14522c7c4e3dSmrg XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config 14532c7c4e3dSmrg 1454c1e8faa6SmrgUse these variables to override the choices made by 'configure' or to help 14552c7c4e3dSmrgit to find libraries and programs with nonstandard names/locations. 14562c7c4e3dSmrg 1457c1e8faa6SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues>. 14582c7c4e3dSmrg_ACEOF 14598650bb69Smrgac_status=$? 14602c7c4e3dSmrgfi 14612c7c4e3dSmrg 14622c7c4e3dSmrgif test "$ac_init_help" = "recursive"; then 14632c7c4e3dSmrg # If there are subdirs, report their specific --help. 14642c7c4e3dSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14658650bb69Smrg test -d "$ac_dir" || 14668650bb69Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14678650bb69Smrg continue 14682c7c4e3dSmrg ac_builddir=. 14692c7c4e3dSmrg 14708650bb69Smrgcase "$ac_dir" in 14718650bb69Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14728650bb69Smrg*) 14733458e6c2Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14748650bb69Smrg # A ".." for each directory in $ac_dir_suffix. 14753458e6c2Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14768650bb69Smrg case $ac_top_builddir_sub in 14778650bb69Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14788650bb69Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14798650bb69Smrg esac ;; 14808650bb69Smrgesac 14818650bb69Smrgac_abs_top_builddir=$ac_pwd 14828650bb69Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14838650bb69Smrg# for backward compatibility: 14848650bb69Smrgac_top_builddir=$ac_top_build_prefix 14852c7c4e3dSmrg 14862c7c4e3dSmrgcase $srcdir in 14878650bb69Smrg .) # We are building in place. 14882c7c4e3dSmrg ac_srcdir=. 14898650bb69Smrg ac_top_srcdir=$ac_top_builddir_sub 14908650bb69Smrg ac_abs_top_srcdir=$ac_pwd ;; 14918650bb69Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14922c7c4e3dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14938650bb69Smrg ac_top_srcdir=$srcdir 14948650bb69Smrg ac_abs_top_srcdir=$srcdir ;; 14958650bb69Smrg *) # Relative name. 14968650bb69Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14978650bb69Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14988650bb69Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14992c7c4e3dSmrgesac 15008650bb69Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15018650bb69Smrg 15028650bb69Smrg cd "$ac_dir" || { ac_status=$?; continue; } 15033458e6c2Smrg # Check for configure.gnu first; this name is used for a wrapper for 15043458e6c2Smrg # Metaconfig's "Configure" on case-insensitive file systems. 15058650bb69Smrg if test -f "$ac_srcdir/configure.gnu"; then 15068650bb69Smrg echo && 15078650bb69Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15088650bb69Smrg elif test -f "$ac_srcdir/configure"; then 15098650bb69Smrg echo && 15108650bb69Smrg $SHELL "$ac_srcdir/configure" --help=recursive 15112c7c4e3dSmrg else 15123458e6c2Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15138650bb69Smrg fi || ac_status=$? 15148650bb69Smrg cd "$ac_pwd" || { ac_status=$?; break; } 15152c7c4e3dSmrg done 15162c7c4e3dSmrgfi 15172c7c4e3dSmrg 15188650bb69Smrgtest -n "$ac_init_help" && exit $ac_status 15192c7c4e3dSmrgif $ac_init_version; then 15202c7c4e3dSmrg cat <<\_ACEOF 1521c1e8faa6Smrgxcmsdb configure 1.0.7 1522c1e8faa6Smrggenerated by GNU Autoconf 2.72 15232c7c4e3dSmrg 1524c1e8faa6SmrgCopyright (C) 2023 Free Software Foundation, Inc. 15252c7c4e3dSmrgThis configure script is free software; the Free Software Foundation 15262c7c4e3dSmrggives unlimited permission to copy, distribute and modify it. 15272c7c4e3dSmrg_ACEOF 15288650bb69Smrg exit 15292c7c4e3dSmrgfi 15302c7c4e3dSmrg 153116d7e2f1Smrg## ------------------------ ## 153216d7e2f1Smrg## Autoconf initialization. ## 153316d7e2f1Smrg## ------------------------ ## 15342c7c4e3dSmrg 153516d7e2f1Smrg# ac_fn_c_try_compile LINENO 153616d7e2f1Smrg# -------------------------- 153716d7e2f1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 153816d7e2f1Smrgac_fn_c_try_compile () 15392c7c4e3dSmrg{ 154016d7e2f1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15413458e6c2Smrg rm -f conftest.$ac_objext conftest.beam 154216d7e2f1Smrg if { { ac_try="$ac_compile" 154316d7e2f1Smrgcase "(($ac_try" in 154416d7e2f1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 154516d7e2f1Smrg *) ac_try_echo=$ac_try;; 154616d7e2f1Smrgesac 154716d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15483458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 154916d7e2f1Smrg (eval "$ac_compile") 2>conftest.err 155016d7e2f1Smrg ac_status=$? 155116d7e2f1Smrg if test -s conftest.err; then 155216d7e2f1Smrg grep -v '^ *+' conftest.err >conftest.er1 155316d7e2f1Smrg cat conftest.er1 >&5 155416d7e2f1Smrg mv -f conftest.er1 conftest.err 155516d7e2f1Smrg fi 15563458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 155716d7e2f1Smrg test $ac_status = 0; } && { 155816d7e2f1Smrg test -z "$ac_c_werror_flag" || 155916d7e2f1Smrg test ! -s conftest.err 15603458e6c2Smrg } && test -s conftest.$ac_objext 15613458e6c2Smrgthen : 156216d7e2f1Smrg ac_retval=0 1563c1e8faa6Smrgelse case e in #( 1564c1e8faa6Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 156516d7e2f1Smrgsed 's/^/| /' conftest.$ac_ext >&5 15662c7c4e3dSmrg 1567c1e8faa6Smrg ac_retval=1 ;; 1568c1e8faa6Smrgesac 156916d7e2f1Smrgfi 157016d7e2f1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 157116d7e2f1Smrg as_fn_set_status $ac_retval 15722c7c4e3dSmrg 157316d7e2f1Smrg} # ac_fn_c_try_compile 15742c7c4e3dSmrg 15753458e6c2Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 15763458e6c2Smrg# ------------------------------------------------------------------ 157716d7e2f1Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15783458e6c2Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 15793458e6c2Smrgac_fn_check_decl () 158016d7e2f1Smrg{ 158116d7e2f1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 158216d7e2f1Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15833458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15843458e6c2Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 15853458e6c2Smrgif eval test \${$3+y} 15863458e6c2Smrgthen : 15873458e6c2Smrg printf %s "(cached) " >&6 1588c1e8faa6Smrgelse case e in #( 1589c1e8faa6Smrg e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15903458e6c2Smrg eval ac_save_FLAGS=\$$6 15913458e6c2Smrg as_fn_append $6 " $5" 159216d7e2f1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 159316d7e2f1Smrg/* end confdefs.h. */ 159416d7e2f1Smrg$4 159516d7e2f1Smrgint 15963458e6c2Smrgmain (void) 159716d7e2f1Smrg{ 159816d7e2f1Smrg#ifndef $as_decl_name 159916d7e2f1Smrg#ifdef __cplusplus 160016d7e2f1Smrg (void) $as_decl_use; 160116d7e2f1Smrg#else 160216d7e2f1Smrg (void) $as_decl_name; 160316d7e2f1Smrg#endif 160416d7e2f1Smrg#endif 160516d7e2f1Smrg 160616d7e2f1Smrg ; 160716d7e2f1Smrg return 0; 160816d7e2f1Smrg} 160916d7e2f1Smrg_ACEOF 16103458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 16113458e6c2Smrgthen : 161216d7e2f1Smrg eval "$3=yes" 1613c1e8faa6Smrgelse case e in #( 1614c1e8faa6Smrg e) eval "$3=no" ;; 1615c1e8faa6Smrgesac 161616d7e2f1Smrgfi 16173458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16183458e6c2Smrg eval $6=\$ac_save_FLAGS 1619c1e8faa6Smrg ;; 1620c1e8faa6Smrgesac 162116d7e2f1Smrgfi 16223458e6c2Smrgeval ac_res=\$$3 16233458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16243458e6c2Smrgprintf "%s\n" "$ac_res" >&6; } 162516d7e2f1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 162616d7e2f1Smrg 16273458e6c2Smrg} # ac_fn_check_decl 162816d7e2f1Smrg 162916d7e2f1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 163016d7e2f1Smrg# ------------------------------------------------------- 163116d7e2f1Smrg# Tests whether HEADER exists and can be compiled using the include files in 163216d7e2f1Smrg# INCLUDES, setting the cache variable VAR accordingly. 163316d7e2f1Smrgac_fn_c_check_header_compile () 163416d7e2f1Smrg{ 163516d7e2f1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16363458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16373458e6c2Smrgprintf %s "checking for $2... " >&6; } 16383458e6c2Smrgif eval test \${$3+y} 16393458e6c2Smrgthen : 16403458e6c2Smrg printf %s "(cached) " >&6 1641c1e8faa6Smrgelse case e in #( 1642c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 164316d7e2f1Smrg/* end confdefs.h. */ 164416d7e2f1Smrg$4 164516d7e2f1Smrg#include <$2> 164616d7e2f1Smrg_ACEOF 16473458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 16483458e6c2Smrgthen : 164916d7e2f1Smrg eval "$3=yes" 1650c1e8faa6Smrgelse case e in #( 1651c1e8faa6Smrg e) eval "$3=no" ;; 1652c1e8faa6Smrgesac 165316d7e2f1Smrgfi 1654c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1655c1e8faa6Smrgesac 165616d7e2f1Smrgfi 165716d7e2f1Smrgeval ac_res=\$$3 16583458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16593458e6c2Smrgprintf "%s\n" "$ac_res" >&6; } 166016d7e2f1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 166116d7e2f1Smrg 166216d7e2f1Smrg} # ac_fn_c_check_header_compile 166316d7e2f1Smrg 166416d7e2f1Smrg# ac_fn_c_try_link LINENO 166516d7e2f1Smrg# ----------------------- 166616d7e2f1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 166716d7e2f1Smrgac_fn_c_try_link () 166816d7e2f1Smrg{ 166916d7e2f1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16703458e6c2Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 167116d7e2f1Smrg if { { ac_try="$ac_link" 167216d7e2f1Smrgcase "(($ac_try" in 167316d7e2f1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 167416d7e2f1Smrg *) ac_try_echo=$ac_try;; 167516d7e2f1Smrgesac 167616d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16773458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 167816d7e2f1Smrg (eval "$ac_link") 2>conftest.err 167916d7e2f1Smrg ac_status=$? 168016d7e2f1Smrg if test -s conftest.err; then 168116d7e2f1Smrg grep -v '^ *+' conftest.err >conftest.er1 168216d7e2f1Smrg cat conftest.er1 >&5 168316d7e2f1Smrg mv -f conftest.er1 conftest.err 168416d7e2f1Smrg fi 16853458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 168616d7e2f1Smrg test $ac_status = 0; } && { 168716d7e2f1Smrg test -z "$ac_c_werror_flag" || 168816d7e2f1Smrg test ! -s conftest.err 168916d7e2f1Smrg } && test -s conftest$ac_exeext && { 169016d7e2f1Smrg test "$cross_compiling" = yes || 16912becc446Smrg test -x conftest$ac_exeext 16923458e6c2Smrg } 16933458e6c2Smrgthen : 169416d7e2f1Smrg ac_retval=0 1695c1e8faa6Smrgelse case e in #( 1696c1e8faa6Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 169716d7e2f1Smrgsed 's/^/| /' conftest.$ac_ext >&5 169816d7e2f1Smrg 1699c1e8faa6Smrg ac_retval=1 ;; 1700c1e8faa6Smrgesac 170116d7e2f1Smrgfi 170216d7e2f1Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 170316d7e2f1Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 170416d7e2f1Smrg # interfere with the next link command; also delete a directory that is 170516d7e2f1Smrg # left behind by Apple's compiler. We do this before executing the actions. 170616d7e2f1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 170716d7e2f1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 170816d7e2f1Smrg as_fn_set_status $ac_retval 170916d7e2f1Smrg 171016d7e2f1Smrg} # ac_fn_c_try_link 17113458e6c2Smrgac_configure_args_raw= 17123458e6c2Smrgfor ac_arg 17133458e6c2Smrgdo 17143458e6c2Smrg case $ac_arg in 17153458e6c2Smrg *\'*) 17163458e6c2Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17173458e6c2Smrg esac 17183458e6c2Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 17193458e6c2Smrgdone 17203458e6c2Smrg 17213458e6c2Smrgcase $ac_configure_args_raw in 17223458e6c2Smrg *$as_nl*) 17233458e6c2Smrg ac_safe_unquote= ;; 17243458e6c2Smrg *) 17253458e6c2Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 17263458e6c2Smrg ac_unsafe_a="$ac_unsafe_z#~" 17273458e6c2Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 17283458e6c2Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 17293458e6c2Smrgesac 17303458e6c2Smrg 173116d7e2f1Smrgcat >config.log <<_ACEOF 173216d7e2f1SmrgThis file contains any messages produced by compilers while 173316d7e2f1Smrgrunning configure, to aid debugging if configure makes a mistake. 173416d7e2f1Smrg 1735c1e8faa6SmrgIt was created by xcmsdb $as_me 1.0.7, which was 1736c1e8faa6Smrggenerated by GNU Autoconf 2.72. Invocation command line was 173716d7e2f1Smrg 17383458e6c2Smrg $ $0$ac_configure_args_raw 173916d7e2f1Smrg 174016d7e2f1Smrg_ACEOF 174116d7e2f1Smrgexec 5>>config.log 174216d7e2f1Smrg{ 174316d7e2f1Smrgcat <<_ASUNAME 174416d7e2f1Smrg## --------- ## 174516d7e2f1Smrg## Platform. ## 174616d7e2f1Smrg## --------- ## 174716d7e2f1Smrg 174816d7e2f1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 174916d7e2f1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 175016d7e2f1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 175116d7e2f1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 175216d7e2f1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 175316d7e2f1Smrg 175416d7e2f1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 175516d7e2f1Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 175616d7e2f1Smrg 175716d7e2f1Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 175816d7e2f1Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 175916d7e2f1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 176016d7e2f1Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 176116d7e2f1Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 176216d7e2f1Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 176316d7e2f1Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 176416d7e2f1Smrg 176516d7e2f1Smrg_ASUNAME 176616d7e2f1Smrg 176716d7e2f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17682c7c4e3dSmrgfor as_dir in $PATH 17692c7c4e3dSmrgdo 17702c7c4e3dSmrg IFS=$as_save_IFS 17713458e6c2Smrg case $as_dir in #((( 17723458e6c2Smrg '') as_dir=./ ;; 17733458e6c2Smrg */) ;; 17743458e6c2Smrg *) as_dir=$as_dir/ ;; 17753458e6c2Smrg esac 17763458e6c2Smrg printf "%s\n" "PATH: $as_dir" 177716d7e2f1Smrg done 17788650bb69SmrgIFS=$as_save_IFS 17792c7c4e3dSmrg 17802c7c4e3dSmrg} >&5 17812c7c4e3dSmrg 17822c7c4e3dSmrgcat >&5 <<_ACEOF 17832c7c4e3dSmrg 17842c7c4e3dSmrg 17852c7c4e3dSmrg## ----------- ## 17862c7c4e3dSmrg## Core tests. ## 17872c7c4e3dSmrg## ----------- ## 17882c7c4e3dSmrg 17892c7c4e3dSmrg_ACEOF 17902c7c4e3dSmrg 17912c7c4e3dSmrg 17922c7c4e3dSmrg# Keep a trace of the command line. 17932c7c4e3dSmrg# Strip out --no-create and --no-recursion so they do not pile up. 17942c7c4e3dSmrg# Strip out --silent because we don't want to record it for future runs. 17952c7c4e3dSmrg# Also quote any args containing shell meta-characters. 17962c7c4e3dSmrg# Make two passes to allow for proper duplicate-argument suppression. 17972c7c4e3dSmrgac_configure_args= 17982c7c4e3dSmrgac_configure_args0= 17992c7c4e3dSmrgac_configure_args1= 18002c7c4e3dSmrgac_must_keep_next=false 18012c7c4e3dSmrgfor ac_pass in 1 2 18022c7c4e3dSmrgdo 18032c7c4e3dSmrg for ac_arg 18042c7c4e3dSmrg do 18052c7c4e3dSmrg case $ac_arg in 18062c7c4e3dSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18072c7c4e3dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18082c7c4e3dSmrg | -silent | --silent | --silen | --sile | --sil) 18092c7c4e3dSmrg continue ;; 18108650bb69Smrg *\'*) 18113458e6c2Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18122c7c4e3dSmrg esac 18132c7c4e3dSmrg case $ac_pass in 181416d7e2f1Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18152c7c4e3dSmrg 2) 181616d7e2f1Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 18172c7c4e3dSmrg if test $ac_must_keep_next = true; then 18182c7c4e3dSmrg ac_must_keep_next=false # Got value, back to normal. 18192c7c4e3dSmrg else 18202c7c4e3dSmrg case $ac_arg in 18212c7c4e3dSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18222c7c4e3dSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18232c7c4e3dSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18242c7c4e3dSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18252c7c4e3dSmrg case "$ac_configure_args0 " in 18262c7c4e3dSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18272c7c4e3dSmrg esac 18282c7c4e3dSmrg ;; 18292c7c4e3dSmrg -* ) ac_must_keep_next=true ;; 18302c7c4e3dSmrg esac 18312c7c4e3dSmrg fi 183216d7e2f1Smrg as_fn_append ac_configure_args " '$ac_arg'" 18332c7c4e3dSmrg ;; 18342c7c4e3dSmrg esac 18352c7c4e3dSmrg done 18362c7c4e3dSmrgdone 183716d7e2f1Smrg{ ac_configure_args0=; unset ac_configure_args0;} 183816d7e2f1Smrg{ ac_configure_args1=; unset ac_configure_args1;} 18392c7c4e3dSmrg 18402c7c4e3dSmrg# When interrupted or exit'd, cleanup temporary files, and complete 18412c7c4e3dSmrg# config.log. We remove comments because anyway the quotes in there 18422c7c4e3dSmrg# would cause problems or look ugly. 18438650bb69Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18448650bb69Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18452c7c4e3dSmrgtrap 'exit_status=$? 18463458e6c2Smrg # Sanitize IFS. 18473458e6c2Smrg IFS=" "" $as_nl" 18482c7c4e3dSmrg # Save into config.log some information that might help in debugging. 18492c7c4e3dSmrg { 18502c7c4e3dSmrg echo 18512c7c4e3dSmrg 18523458e6c2Smrg printf "%s\n" "## ---------------- ## 18532c7c4e3dSmrg## Cache variables. ## 185416d7e2f1Smrg## ---------------- ##" 18552c7c4e3dSmrg echo 18562c7c4e3dSmrg # The following way of writing the cache mishandles newlines in values, 18578650bb69Smrg( 18588650bb69Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 18598650bb69Smrg eval ac_val=\$$ac_var 18608650bb69Smrg case $ac_val in #( 18618650bb69Smrg *${as_nl}*) 18628650bb69Smrg case $ac_var in #( 18633458e6c2Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18643458e6c2Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18658650bb69Smrg esac 18668650bb69Smrg case $ac_var in #( 18678650bb69Smrg _ | IFS | as_nl) ;; #( 18688650bb69Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 186916d7e2f1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 18708650bb69Smrg esac ;; 18718650bb69Smrg esac 18728650bb69Smrg done 18732c7c4e3dSmrg (set) 2>&1 | 18748650bb69Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 18758650bb69Smrg *${as_nl}ac_space=\ *) 18762c7c4e3dSmrg sed -n \ 18778650bb69Smrg "s/'\''/'\''\\\\'\'''\''/g; 18788650bb69Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 18798650bb69Smrg ;; #( 18802c7c4e3dSmrg *) 18818650bb69Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18822c7c4e3dSmrg ;; 18838650bb69Smrg esac | 18848650bb69Smrg sort 18858650bb69Smrg) 18862c7c4e3dSmrg echo 18872c7c4e3dSmrg 18883458e6c2Smrg printf "%s\n" "## ----------------- ## 18892c7c4e3dSmrg## Output variables. ## 189016d7e2f1Smrg## ----------------- ##" 18912c7c4e3dSmrg echo 18922c7c4e3dSmrg for ac_var in $ac_subst_vars 18932c7c4e3dSmrg do 18948650bb69Smrg eval ac_val=\$$ac_var 18958650bb69Smrg case $ac_val in 18963458e6c2Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 18978650bb69Smrg esac 18983458e6c2Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 18992c7c4e3dSmrg done | sort 19002c7c4e3dSmrg echo 19012c7c4e3dSmrg 19022c7c4e3dSmrg if test -n "$ac_subst_files"; then 19033458e6c2Smrg printf "%s\n" "## ------------------- ## 19048650bb69Smrg## File substitutions. ## 190516d7e2f1Smrg## ------------------- ##" 19062c7c4e3dSmrg echo 19072c7c4e3dSmrg for ac_var in $ac_subst_files 19082c7c4e3dSmrg do 19098650bb69Smrg eval ac_val=\$$ac_var 19108650bb69Smrg case $ac_val in 19113458e6c2Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19128650bb69Smrg esac 19133458e6c2Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 19142c7c4e3dSmrg done | sort 19152c7c4e3dSmrg echo 19162c7c4e3dSmrg fi 19172c7c4e3dSmrg 19182c7c4e3dSmrg if test -s confdefs.h; then 19193458e6c2Smrg printf "%s\n" "## ----------- ## 19202c7c4e3dSmrg## confdefs.h. ## 192116d7e2f1Smrg## ----------- ##" 19222c7c4e3dSmrg echo 19238650bb69Smrg cat confdefs.h 19242c7c4e3dSmrg echo 19252c7c4e3dSmrg fi 19262c7c4e3dSmrg test "$ac_signal" != 0 && 19273458e6c2Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 19283458e6c2Smrg printf "%s\n" "$as_me: exit $exit_status" 19292c7c4e3dSmrg } >&5 19308650bb69Smrg rm -f core *.core core.conftest.* && 19318650bb69Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19322c7c4e3dSmrg exit $exit_status 19338650bb69Smrg' 0 19342c7c4e3dSmrgfor ac_signal in 1 2 13 15; do 193516d7e2f1Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19362c7c4e3dSmrgdone 19372c7c4e3dSmrgac_signal=0 19382c7c4e3dSmrg 19392c7c4e3dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19408650bb69Smrgrm -f -r conftest* confdefs.h 19412c7c4e3dSmrg 19423458e6c2Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 194316d7e2f1Smrg 19442c7c4e3dSmrg# Predefined preprocessor variables. 19452c7c4e3dSmrg 19463458e6c2Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 19472c7c4e3dSmrg 19483458e6c2Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 19492c7c4e3dSmrg 19503458e6c2Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 19512c7c4e3dSmrg 19523458e6c2Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 19532c7c4e3dSmrg 19543458e6c2Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 19552c7c4e3dSmrg 19563458e6c2Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 195716d7e2f1Smrg 19582c7c4e3dSmrg 19592c7c4e3dSmrg# Let the site file select an alternate cache file if it wants to. 19608650bb69Smrg# Prefer an explicitly selected file to automatically selected ones. 19618650bb69Smrgif test -n "$CONFIG_SITE"; then 19623458e6c2Smrg ac_site_files="$CONFIG_SITE" 19638650bb69Smrgelif test "x$prefix" != xNONE; then 19643458e6c2Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 19658650bb69Smrgelse 19663458e6c2Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 19672c7c4e3dSmrgfi 19683458e6c2Smrg 19693458e6c2Smrgfor ac_site_file in $ac_site_files 19708650bb69Smrgdo 19713458e6c2Smrg case $ac_site_file in #( 19723458e6c2Smrg */*) : 19733458e6c2Smrg ;; #( 19743458e6c2Smrg *) : 19753458e6c2Smrg ac_site_file=./$ac_site_file ;; 19763458e6c2Smrgesac 19773458e6c2Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 19783458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 19793458e6c2Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 19802c7c4e3dSmrg sed 's/^/| /' "$ac_site_file" >&5 198116d7e2f1Smrg . "$ac_site_file" \ 1982c1e8faa6Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1983c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 198416d7e2f1Smrgas_fn_error $? "failed to load site script $ac_site_file 1985c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 19862c7c4e3dSmrg fi 19872c7c4e3dSmrgdone 19882c7c4e3dSmrg 19892c7c4e3dSmrgif test -r "$cache_file"; then 199016d7e2f1Smrg # Some versions of bash will fail to source /dev/null (special files 199116d7e2f1Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 199216d7e2f1Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 19933458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 19943458e6c2Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 19952c7c4e3dSmrg case $cache_file in 19968650bb69Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 19978650bb69Smrg *) . "./$cache_file";; 19982c7c4e3dSmrg esac 19992c7c4e3dSmrg fi 20002c7c4e3dSmrgelse 20013458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20023458e6c2Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 20032c7c4e3dSmrg >$cache_file 20042c7c4e3dSmrgfi 20052c7c4e3dSmrg 20063458e6c2Smrg# Test code for whether the C compiler supports C89 (global declarations) 20073458e6c2Smrgac_c_conftest_c89_globals=' 20083458e6c2Smrg/* Does the compiler advertise C89 conformance? 20093458e6c2Smrg Do not test the value of __STDC__, because some compilers set it to 0 20103458e6c2Smrg while being otherwise adequately conformant. */ 20113458e6c2Smrg#if !defined __STDC__ 20123458e6c2Smrg# error "Compiler does not advertise C89 conformance" 20133458e6c2Smrg#endif 20142c7c4e3dSmrg 20153458e6c2Smrg#include <stddef.h> 20163458e6c2Smrg#include <stdarg.h> 20173458e6c2Smrgstruct stat; 20183458e6c2Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 20193458e6c2Smrgstruct buf { int x; }; 20203458e6c2Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2021c1e8faa6Smrgstatic char *e (char **p, int i) 20223458e6c2Smrg{ 20233458e6c2Smrg return p[i]; 20243458e6c2Smrg} 20253458e6c2Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 20263458e6c2Smrg{ 20273458e6c2Smrg char *s; 20283458e6c2Smrg va_list v; 20293458e6c2Smrg va_start (v,p); 20303458e6c2Smrg s = g (p, va_arg (v,int)); 20313458e6c2Smrg va_end (v); 20323458e6c2Smrg return s; 20333458e6c2Smrg} 20342becc446Smrg 2035c1e8faa6Smrg/* C89 style stringification. */ 2036c1e8faa6Smrg#define noexpand_stringify(a) #a 2037c1e8faa6Smrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence); 2038c1e8faa6Smrg 2039c1e8faa6Smrg/* C89 style token pasting. Exercises some of the corner cases that 2040c1e8faa6Smrg e.g. old MSVC gets wrong, but not very hard. */ 2041c1e8faa6Smrg#define noexpand_concat(a,b) a##b 2042c1e8faa6Smrg#define expand_concat(a,b) noexpand_concat(a,b) 2043c1e8faa6Smrgextern int vA; 2044c1e8faa6Smrgextern int vbee; 2045c1e8faa6Smrg#define aye A 2046c1e8faa6Smrg#define bee B 2047c1e8faa6Smrgint *pvA = &expand_concat(v,aye); 2048c1e8faa6Smrgint *pvbee = &noexpand_concat(v,bee); 2049c1e8faa6Smrg 20503458e6c2Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20513458e6c2Smrg function prototypes and stuff, but not \xHH hex character constants. 20523458e6c2Smrg These do not provoke an error unfortunately, instead are silently treated 20533458e6c2Smrg as an "x". The following induces an error, until -std is added to get 20543458e6c2Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 20553458e6c2Smrg array size at least. It is necessary to write \x00 == 0 to get something 20563458e6c2Smrg that is true only with -std. */ 20573458e6c2Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 20582becc446Smrg 20593458e6c2Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20603458e6c2Smrg inside strings and character constants. */ 20613458e6c2Smrg#define FOO(x) '\''x'\'' 20623458e6c2Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 20632becc446Smrg 20643458e6c2Smrgint test (int i, double x); 20653458e6c2Smrgstruct s1 {int (*f) (int a);}; 20663458e6c2Smrgstruct s2 {int (*f) (double a);}; 20673458e6c2Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 20683458e6c2Smrg int, int);' 20692c7c4e3dSmrg 20703458e6c2Smrg# Test code for whether the C compiler supports C89 (body of main). 20713458e6c2Smrgac_c_conftest_c89_main=' 20723458e6c2Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 20733458e6c2Smrg' 20748650bb69Smrg 20753458e6c2Smrg# Test code for whether the C compiler supports C99 (global declarations) 20763458e6c2Smrgac_c_conftest_c99_globals=' 2077c1e8faa6Smrg/* Does the compiler advertise C99 conformance? */ 20783458e6c2Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 20793458e6c2Smrg# error "Compiler does not advertise C99 conformance" 20803458e6c2Smrg#endif 20818650bb69Smrg 2082c1e8faa6Smrg// See if C++-style comments work. 2083c1e8faa6Smrg 20843458e6c2Smrg#include <stdbool.h> 20853458e6c2Smrgextern int puts (const char *); 20863458e6c2Smrgextern int printf (const char *, ...); 20873458e6c2Smrgextern int dprintf (int, const char *, ...); 20883458e6c2Smrgextern void *malloc (size_t); 2089c1e8faa6Smrgextern void free (void *); 20902c7c4e3dSmrg 20913458e6c2Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 20923458e6c2Smrg// dprintf is used instead of fprintf to avoid needing to declare 20933458e6c2Smrg// FILE and stderr. 20943458e6c2Smrg#define debug(...) dprintf (2, __VA_ARGS__) 20953458e6c2Smrg#define showlist(...) puts (#__VA_ARGS__) 20963458e6c2Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 20973458e6c2Smrgstatic void 20983458e6c2Smrgtest_varargs_macros (void) 20993458e6c2Smrg{ 21003458e6c2Smrg int x = 1234; 21013458e6c2Smrg int y = 5678; 21023458e6c2Smrg debug ("Flag"); 21033458e6c2Smrg debug ("X = %d\n", x); 21043458e6c2Smrg showlist (The first, second, and third items.); 21053458e6c2Smrg report (x>y, "x is %d but y is %d", x, y); 21063458e6c2Smrg} 21073458e6c2Smrg 21083458e6c2Smrg// Check long long types. 21093458e6c2Smrg#define BIG64 18446744073709551615ull 21103458e6c2Smrg#define BIG32 4294967295ul 21113458e6c2Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 21123458e6c2Smrg#if !BIG_OK 21133458e6c2Smrg #error "your preprocessor is broken" 21143458e6c2Smrg#endif 21153458e6c2Smrg#if BIG_OK 21163458e6c2Smrg#else 21173458e6c2Smrg #error "your preprocessor is broken" 21183458e6c2Smrg#endif 21193458e6c2Smrgstatic long long int bignum = -9223372036854775807LL; 21203458e6c2Smrgstatic unsigned long long int ubignum = BIG64; 21213458e6c2Smrg 21223458e6c2Smrgstruct incomplete_array 21233458e6c2Smrg{ 21243458e6c2Smrg int datasize; 21253458e6c2Smrg double data[]; 21263458e6c2Smrg}; 21273458e6c2Smrg 21283458e6c2Smrgstruct named_init { 21293458e6c2Smrg int number; 21303458e6c2Smrg const wchar_t *name; 21313458e6c2Smrg double average; 21323458e6c2Smrg}; 21333458e6c2Smrg 21343458e6c2Smrgtypedef const char *ccp; 21353458e6c2Smrg 21363458e6c2Smrgstatic inline int 21373458e6c2Smrgtest_restrict (ccp restrict text) 21383458e6c2Smrg{ 21393458e6c2Smrg // Iterate through items via the restricted pointer. 21403458e6c2Smrg // Also check for declarations in for loops. 21413458e6c2Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 21423458e6c2Smrg continue; 21433458e6c2Smrg return 0; 21443458e6c2Smrg} 21453458e6c2Smrg 21463458e6c2Smrg// Check varargs and va_copy. 21473458e6c2Smrgstatic bool 21483458e6c2Smrgtest_varargs (const char *format, ...) 21493458e6c2Smrg{ 21503458e6c2Smrg va_list args; 21513458e6c2Smrg va_start (args, format); 21523458e6c2Smrg va_list args_copy; 21533458e6c2Smrg va_copy (args_copy, args); 21543458e6c2Smrg 21553458e6c2Smrg const char *str = ""; 21563458e6c2Smrg int number = 0; 21573458e6c2Smrg float fnumber = 0; 21583458e6c2Smrg 21593458e6c2Smrg while (*format) 21603458e6c2Smrg { 21613458e6c2Smrg switch (*format++) 21623458e6c2Smrg { 21633458e6c2Smrg case '\''s'\'': // string 21643458e6c2Smrg str = va_arg (args_copy, const char *); 21653458e6c2Smrg break; 21663458e6c2Smrg case '\''d'\'': // int 21673458e6c2Smrg number = va_arg (args_copy, int); 21683458e6c2Smrg break; 21693458e6c2Smrg case '\''f'\'': // float 21703458e6c2Smrg fnumber = va_arg (args_copy, double); 21713458e6c2Smrg break; 21723458e6c2Smrg default: 21733458e6c2Smrg break; 21743458e6c2Smrg } 21753458e6c2Smrg } 21763458e6c2Smrg va_end (args_copy); 21773458e6c2Smrg va_end (args); 21783458e6c2Smrg 21793458e6c2Smrg return *str && number && fnumber; 21803458e6c2Smrg} 21813458e6c2Smrg' 21823458e6c2Smrg 21833458e6c2Smrg# Test code for whether the C compiler supports C99 (body of main). 21843458e6c2Smrgac_c_conftest_c99_main=' 21853458e6c2Smrg // Check bool. 21863458e6c2Smrg _Bool success = false; 21873458e6c2Smrg success |= (argc != 0); 21883458e6c2Smrg 21893458e6c2Smrg // Check restrict. 21903458e6c2Smrg if (test_restrict ("String literal") == 0) 21913458e6c2Smrg success = true; 21923458e6c2Smrg char *restrict newvar = "Another string"; 21933458e6c2Smrg 21943458e6c2Smrg // Check varargs. 21953458e6c2Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 21963458e6c2Smrg test_varargs_macros (); 21973458e6c2Smrg 21983458e6c2Smrg // Check flexible array members. 21993458e6c2Smrg struct incomplete_array *ia = 22003458e6c2Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 22013458e6c2Smrg ia->datasize = 10; 22023458e6c2Smrg for (int i = 0; i < ia->datasize; ++i) 22033458e6c2Smrg ia->data[i] = i * 1.234; 2204c1e8faa6Smrg // Work around memory leak warnings. 2205c1e8faa6Smrg free (ia); 22063458e6c2Smrg 22073458e6c2Smrg // Check named initializers. 22083458e6c2Smrg struct named_init ni = { 22093458e6c2Smrg .number = 34, 22103458e6c2Smrg .name = L"Test wide string", 22113458e6c2Smrg .average = 543.34343, 22123458e6c2Smrg }; 22133458e6c2Smrg 22143458e6c2Smrg ni.number = 58; 22153458e6c2Smrg 22163458e6c2Smrg int dynamic_array[ni.number]; 22173458e6c2Smrg dynamic_array[0] = argv[0][0]; 22183458e6c2Smrg dynamic_array[ni.number - 1] = 543; 22193458e6c2Smrg 22203458e6c2Smrg // work around unused variable warnings 22213458e6c2Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 22223458e6c2Smrg || dynamic_array[ni.number - 1] != 543); 22233458e6c2Smrg' 22243458e6c2Smrg 22253458e6c2Smrg# Test code for whether the C compiler supports C11 (global declarations) 22263458e6c2Smrgac_c_conftest_c11_globals=' 2227c1e8faa6Smrg/* Does the compiler advertise C11 conformance? */ 22283458e6c2Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 22293458e6c2Smrg# error "Compiler does not advertise C11 conformance" 22303458e6c2Smrg#endif 22313458e6c2Smrg 22323458e6c2Smrg// Check _Alignas. 22333458e6c2Smrgchar _Alignas (double) aligned_as_double; 22343458e6c2Smrgchar _Alignas (0) no_special_alignment; 22353458e6c2Smrgextern char aligned_as_int; 22363458e6c2Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 22373458e6c2Smrg 22383458e6c2Smrg// Check _Alignof. 22393458e6c2Smrgenum 22403458e6c2Smrg{ 22413458e6c2Smrg int_alignment = _Alignof (int), 22423458e6c2Smrg int_array_alignment = _Alignof (int[100]), 22433458e6c2Smrg char_alignment = _Alignof (char) 22443458e6c2Smrg}; 22453458e6c2Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 22463458e6c2Smrg 22473458e6c2Smrg// Check _Noreturn. 22483458e6c2Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 22493458e6c2Smrg 22503458e6c2Smrg// Check _Static_assert. 22513458e6c2Smrgstruct test_static_assert 22523458e6c2Smrg{ 22533458e6c2Smrg int x; 22543458e6c2Smrg _Static_assert (sizeof (int) <= sizeof (long int), 22553458e6c2Smrg "_Static_assert does not work in struct"); 22563458e6c2Smrg long int y; 22573458e6c2Smrg}; 22583458e6c2Smrg 22593458e6c2Smrg// Check UTF-8 literals. 22603458e6c2Smrg#define u8 syntax error! 22613458e6c2Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 22623458e6c2Smrg 22633458e6c2Smrg// Check duplicate typedefs. 22643458e6c2Smrgtypedef long *long_ptr; 22653458e6c2Smrgtypedef long int *long_ptr; 22663458e6c2Smrgtypedef long_ptr long_ptr; 22673458e6c2Smrg 22683458e6c2Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 22693458e6c2Smrgstruct anonymous 22703458e6c2Smrg{ 22713458e6c2Smrg union { 22723458e6c2Smrg struct { int i; int j; }; 22733458e6c2Smrg struct { int k; long int l; } w; 22743458e6c2Smrg }; 22753458e6c2Smrg int m; 22763458e6c2Smrg} v1; 22773458e6c2Smrg' 22783458e6c2Smrg 22793458e6c2Smrg# Test code for whether the C compiler supports C11 (body of main). 22803458e6c2Smrgac_c_conftest_c11_main=' 22813458e6c2Smrg _Static_assert ((offsetof (struct anonymous, i) 22823458e6c2Smrg == offsetof (struct anonymous, w.k)), 22833458e6c2Smrg "Anonymous union alignment botch"); 22843458e6c2Smrg v1.i = 2; 22853458e6c2Smrg v1.w.k = 5; 22863458e6c2Smrg ok |= v1.i != 5; 22873458e6c2Smrg' 22883458e6c2Smrg 22893458e6c2Smrg# Test code for whether the C compiler supports C11 (complete). 22903458e6c2Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 22913458e6c2Smrg${ac_c_conftest_c99_globals} 22923458e6c2Smrg${ac_c_conftest_c11_globals} 22933458e6c2Smrg 22943458e6c2Smrgint 22953458e6c2Smrgmain (int argc, char **argv) 22963458e6c2Smrg{ 22973458e6c2Smrg int ok = 0; 22983458e6c2Smrg ${ac_c_conftest_c89_main} 22993458e6c2Smrg ${ac_c_conftest_c99_main} 23003458e6c2Smrg ${ac_c_conftest_c11_main} 23013458e6c2Smrg return ok; 23023458e6c2Smrg} 23033458e6c2Smrg" 23043458e6c2Smrg 23053458e6c2Smrg# Test code for whether the C compiler supports C99 (complete). 23063458e6c2Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 23073458e6c2Smrg${ac_c_conftest_c99_globals} 23083458e6c2Smrg 23093458e6c2Smrgint 23103458e6c2Smrgmain (int argc, char **argv) 23113458e6c2Smrg{ 23123458e6c2Smrg int ok = 0; 23133458e6c2Smrg ${ac_c_conftest_c89_main} 23143458e6c2Smrg ${ac_c_conftest_c99_main} 23153458e6c2Smrg return ok; 23163458e6c2Smrg} 23173458e6c2Smrg" 23183458e6c2Smrg 23193458e6c2Smrg# Test code for whether the C compiler supports C89 (complete). 23203458e6c2Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 23213458e6c2Smrg 23223458e6c2Smrgint 23233458e6c2Smrgmain (int argc, char **argv) 23243458e6c2Smrg{ 23253458e6c2Smrg int ok = 0; 23263458e6c2Smrg ${ac_c_conftest_c89_main} 23273458e6c2Smrg return ok; 23283458e6c2Smrg} 23293458e6c2Smrg" 23303458e6c2Smrg 23313458e6c2Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 23323458e6c2Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 23333458e6c2Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 23343458e6c2Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 23353458e6c2Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 23363458e6c2Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 23373458e6c2Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 23383458e6c2Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 23393458e6c2Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 23403458e6c2Smrg 23413458e6c2Smrg# Auxiliary files required by this configure script. 23423458e6c2Smrgac_aux_files="config.guess config.sub compile missing install-sh" 23433458e6c2Smrg 23443458e6c2Smrg# Locations in which to look for auxiliary files. 23453458e6c2Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 23463458e6c2Smrg 23473458e6c2Smrg# Search for a directory containing all of the required auxiliary files, 23483458e6c2Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 23493458e6c2Smrg# If we don't find one directory that contains all the files we need, 23503458e6c2Smrg# we report the set of missing files from the *first* directory in 23513458e6c2Smrg# $ac_aux_dir_candidates and give up. 23523458e6c2Smrgac_missing_aux_files="" 23533458e6c2Smrgac_first_candidate=: 23543458e6c2Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 23553458e6c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23563458e6c2Smrgas_found=false 23573458e6c2Smrgfor as_dir in $ac_aux_dir_candidates 23583458e6c2Smrgdo 23593458e6c2Smrg IFS=$as_save_IFS 23603458e6c2Smrg case $as_dir in #((( 23613458e6c2Smrg '') as_dir=./ ;; 23623458e6c2Smrg */) ;; 23633458e6c2Smrg *) as_dir=$as_dir/ ;; 23643458e6c2Smrg esac 23653458e6c2Smrg as_found=: 23663458e6c2Smrg 23673458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 23683458e6c2Smrg ac_aux_dir_found=yes 23693458e6c2Smrg ac_install_sh= 23703458e6c2Smrg for ac_aux in $ac_aux_files 23713458e6c2Smrg do 23723458e6c2Smrg # As a special case, if "install-sh" is required, that requirement 23733458e6c2Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 23743458e6c2Smrg # and $ac_install_sh is set appropriately for whichever one is found. 23753458e6c2Smrg if test x"$ac_aux" = x"install-sh" 23763458e6c2Smrg then 23773458e6c2Smrg if test -f "${as_dir}install-sh"; then 23783458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 23793458e6c2Smrg ac_install_sh="${as_dir}install-sh -c" 23803458e6c2Smrg elif test -f "${as_dir}install.sh"; then 23813458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 23823458e6c2Smrg ac_install_sh="${as_dir}install.sh -c" 23833458e6c2Smrg elif test -f "${as_dir}shtool"; then 23843458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 23853458e6c2Smrg ac_install_sh="${as_dir}shtool install -c" 23863458e6c2Smrg else 23873458e6c2Smrg ac_aux_dir_found=no 23883458e6c2Smrg if $ac_first_candidate; then 23893458e6c2Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 23903458e6c2Smrg else 23913458e6c2Smrg break 23923458e6c2Smrg fi 23933458e6c2Smrg fi 23943458e6c2Smrg else 23953458e6c2Smrg if test -f "${as_dir}${ac_aux}"; then 23963458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 23973458e6c2Smrg else 23983458e6c2Smrg ac_aux_dir_found=no 23993458e6c2Smrg if $ac_first_candidate; then 24003458e6c2Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 24013458e6c2Smrg else 24023458e6c2Smrg break 24033458e6c2Smrg fi 24043458e6c2Smrg fi 24053458e6c2Smrg fi 24063458e6c2Smrg done 24073458e6c2Smrg if test "$ac_aux_dir_found" = yes; then 24083458e6c2Smrg ac_aux_dir="$as_dir" 24093458e6c2Smrg break 24103458e6c2Smrg fi 24113458e6c2Smrg ac_first_candidate=false 24123458e6c2Smrg 24133458e6c2Smrg as_found=false 24143458e6c2Smrgdone 24153458e6c2SmrgIFS=$as_save_IFS 24163458e6c2Smrgif $as_found 24173458e6c2Smrgthen : 24183458e6c2Smrg 2419c1e8faa6Smrgelse case e in #( 2420c1e8faa6Smrg e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2421c1e8faa6Smrgesac 24223458e6c2Smrgfi 24233458e6c2Smrg 24243458e6c2Smrg 24253458e6c2Smrg# These three variables are undocumented and unsupported, 24263458e6c2Smrg# and are intended to be withdrawn in a future Autoconf release. 24273458e6c2Smrg# They can cause serious problems if a builder's source tree is in a directory 24283458e6c2Smrg# whose full name contains unusual characters. 24293458e6c2Smrgif test -f "${ac_aux_dir}config.guess"; then 24303458e6c2Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 24313458e6c2Smrgfi 24323458e6c2Smrgif test -f "${ac_aux_dir}config.sub"; then 24333458e6c2Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 24343458e6c2Smrgfi 24353458e6c2Smrgif test -f "$ac_aux_dir/configure"; then 24363458e6c2Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 24373458e6c2Smrgfi 24383458e6c2Smrg 24393458e6c2Smrg# Check that the precious variables saved in the cache have kept the same 24403458e6c2Smrg# value. 24413458e6c2Smrgac_cache_corrupted=false 24423458e6c2Smrgfor ac_var in $ac_precious_vars; do 24433458e6c2Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 24443458e6c2Smrg eval ac_new_set=\$ac_env_${ac_var}_set 24453458e6c2Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 24463458e6c2Smrg eval ac_new_val=\$ac_env_${ac_var}_value 24473458e6c2Smrg case $ac_old_set,$ac_new_set in 24483458e6c2Smrg set,) 2449c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2450c1e8faa6Smrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 24513458e6c2Smrg ac_cache_corrupted=: ;; 24523458e6c2Smrg ,set) 2453c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2454c1e8faa6Smrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 24553458e6c2Smrg ac_cache_corrupted=: ;; 24563458e6c2Smrg ,);; 24573458e6c2Smrg *) 24583458e6c2Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 24593458e6c2Smrg # differences in whitespace do not lead to failure. 24603458e6c2Smrg ac_old_val_w=`echo x $ac_old_val` 24613458e6c2Smrg ac_new_val_w=`echo x $ac_new_val` 24623458e6c2Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2463c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2464c1e8faa6Smrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 24653458e6c2Smrg ac_cache_corrupted=: 24663458e6c2Smrg else 2467c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2468c1e8faa6Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 24693458e6c2Smrg eval $ac_var=\$ac_old_val 24703458e6c2Smrg fi 2471c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2472c1e8faa6Smrgprintf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2473c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2474c1e8faa6Smrgprintf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 24753458e6c2Smrg fi;; 24763458e6c2Smrg esac 24773458e6c2Smrg # Pass precious variables to config.status. 24783458e6c2Smrg if test "$ac_new_set" = set; then 24793458e6c2Smrg case $ac_new_val in 24803458e6c2Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 24813458e6c2Smrg *) ac_arg=$ac_var=$ac_new_val ;; 24823458e6c2Smrg esac 24833458e6c2Smrg case " $ac_configure_args " in 24843458e6c2Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 24853458e6c2Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 24863458e6c2Smrg esac 24873458e6c2Smrg fi 24883458e6c2Smrgdone 24893458e6c2Smrgif $ac_cache_corrupted; then 2490c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2491c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24923458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 24933458e6c2Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2494c1e8faa6Smrg as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 24953458e6c2Smrg and start over" "$LINENO" 5 24963458e6c2Smrgfi 24973458e6c2Smrg## -------------------- ## 24983458e6c2Smrg## Main body of script. ## 24993458e6c2Smrg## -------------------- ## 25003458e6c2Smrg 25013458e6c2Smrgac_ext=c 25023458e6c2Smrgac_cpp='$CPP $CPPFLAGS' 25033458e6c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25043458e6c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25053458e6c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 25063458e6c2Smrg 25073458e6c2Smrg 25083458e6c2Smrgac_config_headers="$ac_config_headers config.h" 25093458e6c2Smrg 25103458e6c2Smrg 25113458e6c2Smrg 25123458e6c2Smrg# Initialize Automake 2513c1e8faa6Smrgam__api_version='1.17' 25143458e6c2Smrg 25153458e6c2Smrg 25163458e6c2Smrg 25173458e6c2Smrg # Find a good install program. We prefer a C program (faster), 25183458e6c2Smrg# so one script is as good as another. But avoid the broken or 25193458e6c2Smrg# incompatible versions: 25203458e6c2Smrg# SysV /etc/install, /usr/sbin/install 25213458e6c2Smrg# SunOS /usr/etc/install 25223458e6c2Smrg# IRIX /sbin/install 25233458e6c2Smrg# AIX /bin/install 25242c7c4e3dSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 25252c7c4e3dSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 25262c7c4e3dSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 25272c7c4e3dSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 25282c7c4e3dSmrg# OS/2's system install, which has a completely different semantic 25292c7c4e3dSmrg# ./install, which can be erroneously created by make from ./install.sh. 25308650bb69Smrg# Reject install programs that cannot install multiple files. 25313458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 25323458e6c2Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 25332c7c4e3dSmrgif test -z "$INSTALL"; then 25343458e6c2Smrgif test ${ac_cv_path_install+y} 25353458e6c2Smrgthen : 25363458e6c2Smrg printf %s "(cached) " >&6 2537c1e8faa6Smrgelse case e in #( 2538c1e8faa6Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25392c7c4e3dSmrgfor as_dir in $PATH 25402c7c4e3dSmrgdo 25412c7c4e3dSmrg IFS=$as_save_IFS 25423458e6c2Smrg case $as_dir in #((( 25433458e6c2Smrg '') as_dir=./ ;; 25443458e6c2Smrg */) ;; 25453458e6c2Smrg *) as_dir=$as_dir/ ;; 25463458e6c2Smrg esac 25473458e6c2Smrg # Account for fact that we put trailing slashes in our PATH walk. 25483458e6c2Smrgcase $as_dir in #(( 25493458e6c2Smrg ./ | /[cC]/* | \ 25502c7c4e3dSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 255116d7e2f1Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 25522c7c4e3dSmrg /usr/ucb/* ) ;; 25532c7c4e3dSmrg *) 25542c7c4e3dSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 25552c7c4e3dSmrg # Don't use installbsd from OSF since it installs stuff as root 25562c7c4e3dSmrg # by default. 25572c7c4e3dSmrg for ac_prog in ginstall scoinst install; do 25582c7c4e3dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25593458e6c2Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 25602c7c4e3dSmrg if test $ac_prog = install && 25613458e6c2Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 25622c7c4e3dSmrg # AIX install. It has an incompatible calling convention. 25632c7c4e3dSmrg : 25642c7c4e3dSmrg elif test $ac_prog = install && 25653458e6c2Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 25662c7c4e3dSmrg # program-specific install script used by HP pwplus--don't use. 25672c7c4e3dSmrg : 25682c7c4e3dSmrg else 25698650bb69Smrg rm -rf conftest.one conftest.two conftest.dir 25708650bb69Smrg echo one > conftest.one 25718650bb69Smrg echo two > conftest.two 25728650bb69Smrg mkdir conftest.dir 25733458e6c2Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 25748650bb69Smrg test -s conftest.one && test -s conftest.two && 25758650bb69Smrg test -s conftest.dir/conftest.one && 25768650bb69Smrg test -s conftest.dir/conftest.two 25778650bb69Smrg then 25783458e6c2Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 25798650bb69Smrg break 3 25808650bb69Smrg fi 25812c7c4e3dSmrg fi 25822c7c4e3dSmrg fi 25832c7c4e3dSmrg done 25842c7c4e3dSmrg done 25852c7c4e3dSmrg ;; 25862c7c4e3dSmrgesac 25878650bb69Smrg 258816d7e2f1Smrg done 25898650bb69SmrgIFS=$as_save_IFS 25902c7c4e3dSmrg 25918650bb69Smrgrm -rf conftest.one conftest.two conftest.dir 2592c1e8faa6Smrg ;; 2593c1e8faa6Smrgesac 25942c7c4e3dSmrgfi 25953458e6c2Smrg if test ${ac_cv_path_install+y}; then 25962c7c4e3dSmrg INSTALL=$ac_cv_path_install 25972c7c4e3dSmrg else 25988650bb69Smrg # As a last resort, use the slow shell script. Don't cache a 25998650bb69Smrg # value for INSTALL within a source directory, because that will 26002c7c4e3dSmrg # break other packages using the cache if that directory is 26018650bb69Smrg # removed, or if the value is a relative name. 26022c7c4e3dSmrg INSTALL=$ac_install_sh 26032c7c4e3dSmrg fi 26042c7c4e3dSmrgfi 26053458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 26063458e6c2Smrgprintf "%s\n" "$INSTALL" >&6; } 26072c7c4e3dSmrg 26082c7c4e3dSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 26092c7c4e3dSmrg# It thinks the first close brace ends the variable substitution. 26102c7c4e3dSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 26112c7c4e3dSmrg 26122c7c4e3dSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 26132c7c4e3dSmrg 26142c7c4e3dSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 26152c7c4e3dSmrg 2616c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2617c1e8faa6Smrgprintf %s "checking whether sleep supports fractional seconds... " >&6; } 2618c1e8faa6Smrgif test ${am_cv_sleep_fractional_seconds+y} 2619c1e8faa6Smrgthen : 2620c1e8faa6Smrg printf %s "(cached) " >&6 2621c1e8faa6Smrgelse case e in #( 2622c1e8faa6Smrg e) if sleep 0.001 2>/dev/null 2623c1e8faa6Smrgthen : 2624c1e8faa6Smrg am_cv_sleep_fractional_seconds=yes 2625c1e8faa6Smrgelse case e in #( 2626c1e8faa6Smrg e) am_cv_sleep_fractional_seconds=no ;; 2627c1e8faa6Smrgesac 2628c1e8faa6Smrgfi 2629c1e8faa6Smrg ;; 2630c1e8faa6Smrgesac 2631c1e8faa6Smrgfi 2632c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2633c1e8faa6Smrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2634c1e8faa6Smrg 2635c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2636c1e8faa6Smrgprintf %s "checking filesystem timestamp resolution... " >&6; } 2637c1e8faa6Smrgif test ${am_cv_filesystem_timestamp_resolution+y} 2638c1e8faa6Smrgthen : 2639c1e8faa6Smrg printf %s "(cached) " >&6 2640c1e8faa6Smrgelse case e in #( 2641c1e8faa6Smrg e) # Default to the worst case. 2642c1e8faa6Smrgam_cv_filesystem_timestamp_resolution=2 2643c1e8faa6Smrg 2644c1e8faa6Smrg# Only try to go finer than 1 sec if sleep can do it. 2645c1e8faa6Smrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2646c1e8faa6Smrg# - 1 sec is not much of a win compared to 2 sec, and 2647c1e8faa6Smrg# - it takes 2 seconds to perform the test whether 1 sec works. 2648c1e8faa6Smrg# 2649c1e8faa6Smrg# Instead, just use the default 2s on platforms that have 1s resolution, 2650c1e8faa6Smrg# accept the extra 1s delay when using $sleep in the Automake tests, in 2651c1e8faa6Smrg# exchange for not incurring the 2s delay for running the test for all 2652c1e8faa6Smrg# packages. 2653c1e8faa6Smrg# 2654c1e8faa6Smrgam_try_resolutions= 2655c1e8faa6Smrgif test "$am_cv_sleep_fractional_seconds" = yes; then 2656c1e8faa6Smrg # Even a millisecond often causes a bunch of false positives, 2657c1e8faa6Smrg # so just try a hundredth of a second. The time saved between .001 and 2658c1e8faa6Smrg # .01 is not terribly consequential. 2659c1e8faa6Smrg am_try_resolutions="0.01 0.1 $am_try_resolutions" 2660c1e8faa6Smrgfi 2661c1e8faa6Smrg 2662c1e8faa6Smrg# In order to catch current-generation FAT out, we must *modify* files 2663c1e8faa6Smrg# that already exist; the *creation* timestamp is finer. Use names 2664c1e8faa6Smrg# that make ls -t sort them differently when they have equal 2665c1e8faa6Smrg# timestamps than when they have distinct timestamps, keeping 2666c1e8faa6Smrg# in mind that ls -t prints the *newest* file first. 2667c1e8faa6Smrgrm -f conftest.ts? 2668c1e8faa6Smrg: > conftest.ts1 2669c1e8faa6Smrg: > conftest.ts2 2670c1e8faa6Smrg: > conftest.ts3 2671c1e8faa6Smrg 2672c1e8faa6Smrg# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2673c1e8faa6Smrg# clobber the current shell's arguments. (Outer-level square brackets 2674c1e8faa6Smrg# are removed by m4; they're present so that m4 does not expand 2675c1e8faa6Smrg# <dollar><star>; be careful, easy to get confused.) 2676c1e8faa6Smrgif ( 2677c1e8faa6Smrg set X `ls -t conftest.ts[12]` && 2678c1e8faa6Smrg { 2679c1e8faa6Smrg test "$*" != "X conftest.ts1 conftest.ts2" || 2680c1e8faa6Smrg test "$*" != "X conftest.ts2 conftest.ts1"; 2681c1e8faa6Smrg } 2682c1e8faa6Smrg); then :; else 2683c1e8faa6Smrg # If neither matched, then we have a broken ls. This can happen 2684c1e8faa6Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2685c1e8faa6Smrg # broken ls alias from the environment. This has actually 2686c1e8faa6Smrg # happened. Such a system could not be considered "sane". 2687c1e8faa6Smrg printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2688c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2689c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2690c1e8faa6Smrgas_fn_error $? "ls -t produces unexpected output. 2691c1e8faa6SmrgMake sure there is not a broken ls alias in your environment. 2692c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 2693c1e8faa6Smrgfi 2694c1e8faa6Smrg 2695c1e8faa6Smrgfor am_try_res in $am_try_resolutions; do 2696c1e8faa6Smrg # Any one fine-grained sleep might happen to cross the boundary 2697c1e8faa6Smrg # between two values of a coarser actual resolution, but if we do 2698c1e8faa6Smrg # two fine-grained sleeps in a row, at least one of them will fall 2699c1e8faa6Smrg # entirely within a coarse interval. 2700c1e8faa6Smrg echo alpha > conftest.ts1 2701c1e8faa6Smrg sleep $am_try_res 2702c1e8faa6Smrg echo beta > conftest.ts2 2703c1e8faa6Smrg sleep $am_try_res 2704c1e8faa6Smrg echo gamma > conftest.ts3 2705c1e8faa6Smrg 2706c1e8faa6Smrg # We assume that 'ls -t' will make use of high-resolution 2707c1e8faa6Smrg # timestamps if the operating system supports them at all. 2708c1e8faa6Smrg if (set X `ls -t conftest.ts?` && 2709c1e8faa6Smrg test "$2" = conftest.ts3 && 2710c1e8faa6Smrg test "$3" = conftest.ts2 && 2711c1e8faa6Smrg test "$4" = conftest.ts1); then 2712c1e8faa6Smrg # 2713c1e8faa6Smrg # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2714c1e8faa6Smrg # because we don't need to test make. 2715c1e8faa6Smrg make_ok=true 2716c1e8faa6Smrg if test $am_try_res != 1; then 2717c1e8faa6Smrg # But if we've succeeded so far with a subsecond resolution, we 2718c1e8faa6Smrg # have one more thing to check: make. It can happen that 2719c1e8faa6Smrg # everything else supports the subsecond mtimes, but make doesn't; 2720c1e8faa6Smrg # notably on macOS, which ships make 3.81 from 2006 (the last one 2721c1e8faa6Smrg # released under GPLv2). https://bugs.gnu.org/68808 2722c1e8faa6Smrg # 2723c1e8faa6Smrg # We test $MAKE if it is defined in the environment, else "make". 2724c1e8faa6Smrg # It might get overridden later, but our hope is that in practice 2725c1e8faa6Smrg # it does not matter: it is the system "make" which is (by far) 2726c1e8faa6Smrg # the most likely to be broken, whereas if the user overrides it, 2727c1e8faa6Smrg # probably they did so with a better, or at least not worse, make. 2728c1e8faa6Smrg # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2729c1e8faa6Smrg # 2730c1e8faa6Smrg # Create a Makefile (real tab character here): 2731c1e8faa6Smrg rm -f conftest.mk 2732c1e8faa6Smrg echo 'conftest.ts1: conftest.ts2' >conftest.mk 2733c1e8faa6Smrg echo ' touch conftest.ts2' >>conftest.mk 2734c1e8faa6Smrg # 2735c1e8faa6Smrg # Now, running 2736c1e8faa6Smrg # touch conftest.ts1; touch conftest.ts2; make 2737c1e8faa6Smrg # should touch ts1 because ts2 is newer. This could happen by luck, 2738c1e8faa6Smrg # but most often, it will fail if make's support is insufficient. So 2739c1e8faa6Smrg # test for several consecutive successes. 2740c1e8faa6Smrg # 2741c1e8faa6Smrg # (We reuse conftest.ts[12] because we still want to modify existing 2742c1e8faa6Smrg # files, not create new ones, per above.) 2743c1e8faa6Smrg n=0 2744c1e8faa6Smrg make=${MAKE-make} 2745c1e8faa6Smrg until test $n -eq 3; do 2746c1e8faa6Smrg echo one > conftest.ts1 2747c1e8faa6Smrg sleep $am_try_res 2748c1e8faa6Smrg echo two > conftest.ts2 # ts2 should now be newer than ts1 2749c1e8faa6Smrg if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2750c1e8faa6Smrg make_ok=false 2751c1e8faa6Smrg break # out of $n loop 2752c1e8faa6Smrg fi 2753c1e8faa6Smrg n=`expr $n + 1` 2754c1e8faa6Smrg done 2755c1e8faa6Smrg fi 2756c1e8faa6Smrg # 2757c1e8faa6Smrg if $make_ok; then 2758c1e8faa6Smrg # Everything we know to check worked out, so call this resolution good. 2759c1e8faa6Smrg am_cv_filesystem_timestamp_resolution=$am_try_res 2760c1e8faa6Smrg break # out of $am_try_res loop 2761c1e8faa6Smrg fi 2762c1e8faa6Smrg # Otherwise, we'll go on to check the next resolution. 2763c1e8faa6Smrg fi 2764c1e8faa6Smrgdone 2765c1e8faa6Smrgrm -f conftest.ts? 2766c1e8faa6Smrg# (end _am_filesystem_timestamp_resolution) 2767c1e8faa6Smrg ;; 2768c1e8faa6Smrgesac 2769c1e8faa6Smrgfi 2770c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2771c1e8faa6Smrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2772c1e8faa6Smrg 2773c1e8faa6Smrg# This check should not be cached, as it may vary across builds of 2774c1e8faa6Smrg# different projects. 27753458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 27763458e6c2Smrgprintf %s "checking whether build environment is sane... " >&6; } 27778650bb69Smrg# Reject unsafe characters in $srcdir or the absolute working directory 27788650bb69Smrg# name. Accept space and tab only in the latter. 27798650bb69Smrgam_lf=' 27808650bb69Smrg' 27818650bb69Smrgcase `pwd` in 27828650bb69Smrg *[\\\"\#\$\&\'\`$am_lf]*) 278316d7e2f1Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 27848650bb69Smrgesac 27858650bb69Smrgcase $srcdir in 27868650bb69Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 27872becc446Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 27888650bb69Smrgesac 27898650bb69Smrg 27902becc446Smrg# Do 'set' in a subshell so we don't clobber the current shell's 27912c7c4e3dSmrg# arguments. Must try -L first in case configure is actually a 27922c7c4e3dSmrg# symlink; some systems play weird games with the mod time of symlinks 27932c7c4e3dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 27942c7c4e3dSmrg# directory). 2795c1e8faa6Smrgam_build_env_is_sane=no 2796c1e8faa6Smrgam_has_slept=no 2797c1e8faa6Smrgrm -f conftest.file 2798c1e8faa6Smrgfor am_try in 1 2; do 2799c1e8faa6Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 2800c1e8faa6Smrg if ( 2801c1e8faa6Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2802c1e8faa6Smrg if test "$*" = "X"; then 2803c1e8faa6Smrg # -L didn't work. 2804c1e8faa6Smrg set X `ls -t "$srcdir/configure" conftest.file` 2805c1e8faa6Smrg fi 2806c1e8faa6Smrg test "$2" = conftest.file 2807c1e8faa6Smrg ); then 2808c1e8faa6Smrg am_build_env_is_sane=yes 2809c1e8faa6Smrg break 2810c1e8faa6Smrg fi 2811c1e8faa6Smrg # Just in case. 2812c1e8faa6Smrg sleep "$am_cv_filesystem_timestamp_resolution" 2813c1e8faa6Smrg am_has_slept=yes 2814c1e8faa6Smrgdone 2815c1e8faa6Smrg 2816c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2817c1e8faa6Smrgprintf "%s\n" "$am_build_env_is_sane" >&6; } 2818c1e8faa6Smrgif test "$am_build_env_is_sane" = no; then 2819c1e8faa6Smrg as_fn_error $? "newly created file is older than distributed files! 282016d7e2f1SmrgCheck your system clock" "$LINENO" 5 28212c7c4e3dSmrgfi 2822c1e8faa6Smrg 28232becc446Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 28242becc446Smrg# generated files are strictly newer. 28252becc446Smrgam_sleep_pid= 2826c1e8faa6Smrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2827c1e8faa6Smrgthen : 2828c1e8faa6Smrg 2829c1e8faa6Smrgelse case e in #( 2830c1e8faa6Smrg e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 28312becc446Smrg am_sleep_pid=$! 2832c1e8faa6Smrg ;; 2833c1e8faa6Smrgesac 28342becc446Smrgfi 28352becc446Smrg 28362becc446Smrgrm -f conftest.file 28372becc446Smrg 28382c7c4e3dSmrgtest "$program_prefix" != NONE && 28398650bb69Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 28402c7c4e3dSmrg# Use a double $ so make ignores it. 28412c7c4e3dSmrgtest "$program_suffix" != NONE && 28428650bb69Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 28438650bb69Smrg# Double any \ or $. 2844c1e8faa6Smrg# By default was 's,x,x', remove it if useless. 28458650bb69Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 28463458e6c2Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 28473458e6c2Smrg 28482c7c4e3dSmrg 28492becc446Smrg# Expand $ac_aux_dir to an absolute path. 28502becc446Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 28512c7c4e3dSmrg 28523458e6c2Smrg 28533458e6c2Smrg if test x"${MISSING+set}" != xset; then 28543458e6c2Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 28558650bb69Smrgfi 28562c7c4e3dSmrg# Use eval to expand $SHELL 28572becc446Smrgif eval "$MISSING --is-lightweight"; then 28582becc446Smrg am_missing_run="$MISSING " 28592c7c4e3dSmrgelse 28602c7c4e3dSmrg am_missing_run= 28613458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 28623458e6c2Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 28638650bb69Smrgfi 28648650bb69Smrg 28652becc446Smrgif test x"${install_sh+set}" != xset; then 28668650bb69Smrg case $am_aux_dir in 28678650bb69Smrg *\ * | *\ *) 28688650bb69Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 28698650bb69Smrg *) 28708650bb69Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 28718650bb69Smrg esac 28728650bb69Smrgfi 28738650bb69Smrg 28742becc446Smrg# Installed binaries are usually stripped using 'strip' when the user 28752becc446Smrg# run "make install-strip". However 'strip' might not be the right 28768650bb69Smrg# tool to use in cross-compilation environments, therefore Automake 28772becc446Smrg# will honor the 'STRIP' environment variable to overrule this program. 28788650bb69Smrgif test "$cross_compiling" != no; then 28798650bb69Smrg if test -n "$ac_tool_prefix"; then 28808650bb69Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 28818650bb69Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 28823458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28833458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 28843458e6c2Smrgif test ${ac_cv_prog_STRIP+y} 28853458e6c2Smrgthen : 28863458e6c2Smrg printf %s "(cached) " >&6 2887c1e8faa6Smrgelse case e in #( 2888c1e8faa6Smrg e) if test -n "$STRIP"; then 28898650bb69Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 28908650bb69Smrgelse 28918650bb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28928650bb69Smrgfor as_dir in $PATH 28938650bb69Smrgdo 28948650bb69Smrg IFS=$as_save_IFS 28953458e6c2Smrg case $as_dir in #((( 28963458e6c2Smrg '') as_dir=./ ;; 28973458e6c2Smrg */) ;; 28983458e6c2Smrg *) as_dir=$as_dir/ ;; 28993458e6c2Smrg esac 290016d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29013458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29028650bb69Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 29033458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29048650bb69Smrg break 2 29058650bb69Smrg fi 29068650bb69Smrgdone 290716d7e2f1Smrg done 29088650bb69SmrgIFS=$as_save_IFS 29098650bb69Smrg 2910c1e8faa6Smrgfi ;; 2911c1e8faa6Smrgesac 29128650bb69Smrgfi 29138650bb69SmrgSTRIP=$ac_cv_prog_STRIP 29148650bb69Smrgif test -n "$STRIP"; then 29153458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 29163458e6c2Smrgprintf "%s\n" "$STRIP" >&6; } 29178650bb69Smrgelse 29183458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29193458e6c2Smrgprintf "%s\n" "no" >&6; } 29208650bb69Smrgfi 29218650bb69Smrg 29228650bb69Smrg 29238650bb69Smrgfi 29248650bb69Smrgif test -z "$ac_cv_prog_STRIP"; then 29258650bb69Smrg ac_ct_STRIP=$STRIP 29268650bb69Smrg # Extract the first word of "strip", so it can be a program name with args. 29278650bb69Smrgset dummy strip; ac_word=$2 29283458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29293458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 29303458e6c2Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 29313458e6c2Smrgthen : 29323458e6c2Smrg printf %s "(cached) " >&6 2933c1e8faa6Smrgelse case e in #( 2934c1e8faa6Smrg e) if test -n "$ac_ct_STRIP"; then 29358650bb69Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 29368650bb69Smrgelse 29378650bb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29388650bb69Smrgfor as_dir in $PATH 29398650bb69Smrgdo 29408650bb69Smrg IFS=$as_save_IFS 29413458e6c2Smrg case $as_dir in #((( 29423458e6c2Smrg '') as_dir=./ ;; 29433458e6c2Smrg */) ;; 29443458e6c2Smrg *) as_dir=$as_dir/ ;; 29453458e6c2Smrg esac 294616d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29473458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29488650bb69Smrg ac_cv_prog_ac_ct_STRIP="strip" 29493458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29508650bb69Smrg break 2 29518650bb69Smrg fi 29528650bb69Smrgdone 295316d7e2f1Smrg done 29548650bb69SmrgIFS=$as_save_IFS 29558650bb69Smrg 2956c1e8faa6Smrgfi ;; 2957c1e8faa6Smrgesac 29588650bb69Smrgfi 29598650bb69Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 29608650bb69Smrgif test -n "$ac_ct_STRIP"; then 29613458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 29623458e6c2Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 29638650bb69Smrgelse 29643458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29653458e6c2Smrgprintf "%s\n" "no" >&6; } 29668650bb69Smrgfi 29678650bb69Smrg 29688650bb69Smrg if test "x$ac_ct_STRIP" = x; then 29698650bb69Smrg STRIP=":" 29708650bb69Smrg else 29718650bb69Smrg case $cross_compiling:$ac_tool_warned in 29728650bb69Smrgyes:) 29733458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29743458e6c2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29758650bb69Smrgac_tool_warned=yes ;; 29768650bb69Smrgesac 29778650bb69Smrg STRIP=$ac_ct_STRIP 29788650bb69Smrg fi 29798650bb69Smrgelse 29808650bb69Smrg STRIP="$ac_cv_prog_STRIP" 29818650bb69Smrgfi 29828650bb69Smrg 29838650bb69Smrgfi 29848650bb69SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 29858650bb69Smrg 29863458e6c2Smrg 29873458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 29883458e6c2Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 29898650bb69Smrgif test -z "$MKDIR_P"; then 29903458e6c2Smrg if test ${ac_cv_path_mkdir+y} 29913458e6c2Smrgthen : 29923458e6c2Smrg printf %s "(cached) " >&6 2993c1e8faa6Smrgelse case e in #( 2994c1e8faa6Smrg e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29958650bb69Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 29968650bb69Smrgdo 29978650bb69Smrg IFS=$as_save_IFS 29983458e6c2Smrg case $as_dir in #((( 29993458e6c2Smrg '') as_dir=./ ;; 30003458e6c2Smrg */) ;; 30013458e6c2Smrg *) as_dir=$as_dir/ ;; 30023458e6c2Smrg esac 300316d7e2f1Smrg for ac_prog in mkdir gmkdir; do 30048650bb69Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30053458e6c2Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 30063458e6c2Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 30073458e6c2Smrg 'mkdir ('*'coreutils) '* | \ 3008c1e8faa6Smrg *'BusyBox '* | \ 30098650bb69Smrg 'mkdir (fileutils) '4.1*) 30103458e6c2Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 30118650bb69Smrg break 3;; 30128650bb69Smrg esac 30138650bb69Smrg done 30148650bb69Smrg done 301516d7e2f1Smrg done 30168650bb69SmrgIFS=$as_save_IFS 3017c1e8faa6Smrg ;; 3018c1e8faa6Smrgesac 30198650bb69Smrgfi 30208650bb69Smrg 302116d7e2f1Smrg test -d ./--version && rmdir ./--version 30223458e6c2Smrg if test ${ac_cv_path_mkdir+y}; then 30238650bb69Smrg MKDIR_P="$ac_cv_path_mkdir -p" 30248650bb69Smrg else 3025c1e8faa6Smrg # As a last resort, use plain mkdir -p, 3026c1e8faa6Smrg # in the hope it doesn't have the bugs of ancient mkdir. 3027c1e8faa6Smrg MKDIR_P='mkdir -p' 30288650bb69Smrg fi 30292c7c4e3dSmrgfi 30303458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 30313458e6c2Smrgprintf "%s\n" "$MKDIR_P" >&6; } 30328650bb69Smrg 30332c7c4e3dSmrgfor ac_prog in gawk mawk nawk awk 30342c7c4e3dSmrgdo 30352c7c4e3dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 30362c7c4e3dSmrgset dummy $ac_prog; ac_word=$2 30373458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30383458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 30393458e6c2Smrgif test ${ac_cv_prog_AWK+y} 30403458e6c2Smrgthen : 30413458e6c2Smrg printf %s "(cached) " >&6 3042c1e8faa6Smrgelse case e in #( 3043c1e8faa6Smrg e) if test -n "$AWK"; then 30442c7c4e3dSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 30452c7c4e3dSmrgelse 30462c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30472c7c4e3dSmrgfor as_dir in $PATH 30482c7c4e3dSmrgdo 30492c7c4e3dSmrg IFS=$as_save_IFS 30503458e6c2Smrg case $as_dir in #((( 30513458e6c2Smrg '') as_dir=./ ;; 30523458e6c2Smrg */) ;; 30533458e6c2Smrg *) as_dir=$as_dir/ ;; 30543458e6c2Smrg esac 305516d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30563458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30572c7c4e3dSmrg ac_cv_prog_AWK="$ac_prog" 30583458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30592c7c4e3dSmrg break 2 30602c7c4e3dSmrg fi 30612c7c4e3dSmrgdone 306216d7e2f1Smrg done 30638650bb69SmrgIFS=$as_save_IFS 30642c7c4e3dSmrg 3065c1e8faa6Smrgfi ;; 3066c1e8faa6Smrgesac 30672c7c4e3dSmrgfi 30682c7c4e3dSmrgAWK=$ac_cv_prog_AWK 30692c7c4e3dSmrgif test -n "$AWK"; then 30703458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 30713458e6c2Smrgprintf "%s\n" "$AWK" >&6; } 30722c7c4e3dSmrgelse 30733458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30743458e6c2Smrgprintf "%s\n" "no" >&6; } 30752c7c4e3dSmrgfi 30762c7c4e3dSmrg 30778650bb69Smrg 30782c7c4e3dSmrg test -n "$AWK" && break 30792c7c4e3dSmrgdone 30802c7c4e3dSmrg 30813458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 30823458e6c2Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 30838650bb69Smrgset x ${MAKE-make} 30843458e6c2Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 30853458e6c2Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 30863458e6c2Smrgthen : 30873458e6c2Smrg printf %s "(cached) " >&6 3088c1e8faa6Smrgelse case e in #( 3089c1e8faa6Smrg e) cat >conftest.make <<\_ACEOF 30908650bb69SmrgSHELL = /bin/sh 30912c7c4e3dSmrgall: 30928650bb69Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 30932c7c4e3dSmrg_ACEOF 309416d7e2f1Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 30958650bb69Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 30968650bb69Smrg *@@@%%%=?*=@@@%%%*) 30978650bb69Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 30988650bb69Smrg *) 30998650bb69Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 31008650bb69Smrgesac 3101c1e8faa6Smrgrm -f conftest.make ;; 3102c1e8faa6Smrgesac 31032c7c4e3dSmrgfi 31048650bb69Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 31053458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31063458e6c2Smrgprintf "%s\n" "yes" >&6; } 31072c7c4e3dSmrg SET_MAKE= 31082c7c4e3dSmrgelse 31093458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31103458e6c2Smrgprintf "%s\n" "no" >&6; } 31112c7c4e3dSmrg SET_MAKE="MAKE=${MAKE-make}" 31122c7c4e3dSmrgfi 31132c7c4e3dSmrg 31142c7c4e3dSmrgrm -rf .tst 2>/dev/null 31152c7c4e3dSmrgmkdir .tst 2>/dev/null 31162c7c4e3dSmrgif test -d .tst; then 31172c7c4e3dSmrg am__leading_dot=. 31182c7c4e3dSmrgelse 31192c7c4e3dSmrg am__leading_dot=_ 31202c7c4e3dSmrgfi 31212c7c4e3dSmrgrmdir .tst 2>/dev/null 31222c7c4e3dSmrg 3123c1e8faa6SmrgAM_DEFAULT_VERBOSITY=1 31242becc446Smrg# Check whether --enable-silent-rules was given. 31253458e6c2Smrgif test ${enable_silent_rules+y} 31263458e6c2Smrgthen : 31272becc446Smrg enableval=$enable_silent_rules; 31282becc446Smrgfi 31292becc446Smrg 31302becc446Smrgam_make=${MAKE-make} 31313458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 31323458e6c2Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 31333458e6c2Smrgif test ${am_cv_make_support_nested_variables+y} 31343458e6c2Smrgthen : 31353458e6c2Smrg printf %s "(cached) " >&6 3136c1e8faa6Smrgelse case e in #( 3137c1e8faa6Smrg e) if printf "%s\n" 'TRUE=$(BAR$(V)) 31382becc446SmrgBAR0=false 31392becc446SmrgBAR1=true 31402becc446SmrgV=1 31412becc446Smrgam__doit: 31422becc446Smrg @$(TRUE) 31432becc446Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 31442becc446Smrg am_cv_make_support_nested_variables=yes 31452becc446Smrgelse 31462becc446Smrg am_cv_make_support_nested_variables=no 3147c1e8faa6Smrgfi ;; 3148c1e8faa6Smrgesac 31492becc446Smrgfi 31503458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 31513458e6c2Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 31522becc446SmrgAM_BACKSLASH='\' 31532becc446Smrg 3154c1e8faa6Smrgam__rm_f_notfound= 3155c1e8faa6Smrgif (rm -f && rm -fr && rm -rf) 2>/dev/null 3156c1e8faa6Smrgthen : 3157c1e8faa6Smrg 3158c1e8faa6Smrgelse case e in #( 3159c1e8faa6Smrg e) am__rm_f_notfound='""' ;; 3160c1e8faa6Smrgesac 3161c1e8faa6Smrgfi 3162c1e8faa6Smrg 3163c1e8faa6Smrg 3164c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3165c1e8faa6Smrgprintf %s "checking xargs -n works... " >&6; } 3166c1e8faa6Smrgif test ${am_cv_xargs_n_works+y} 3167c1e8faa6Smrgthen : 3168c1e8faa6Smrg printf %s "(cached) " >&6 3169c1e8faa6Smrgelse case e in #( 3170c1e8faa6Smrg e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3171c1e8faa6Smrg3" 3172c1e8faa6Smrgthen : 3173c1e8faa6Smrg am_cv_xargs_n_works=yes 3174c1e8faa6Smrgelse case e in #( 3175c1e8faa6Smrg e) am_cv_xargs_n_works=no ;; 3176c1e8faa6Smrgesac 3177c1e8faa6Smrgfi ;; 3178c1e8faa6Smrgesac 3179c1e8faa6Smrgfi 3180c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3181c1e8faa6Smrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; } 3182c1e8faa6Smrgif test "$am_cv_xargs_n_works" = yes 3183c1e8faa6Smrgthen : 3184c1e8faa6Smrg am__xargs_n='xargs -n' 3185c1e8faa6Smrgelse case e in #( 3186c1e8faa6Smrg e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3187c1e8faa6Smrg ;; 3188c1e8faa6Smrgesac 3189c1e8faa6Smrgfi 3190c1e8faa6Smrg 31918650bb69Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 31928650bb69Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 31938650bb69Smrg # is not polluted with repeated "-I." 31948650bb69Smrg am__isrc=' -I$(srcdir)' 31958650bb69Smrg # test to see if srcdir already configured 31968650bb69Smrg if test -f $srcdir/config.status; then 319716d7e2f1Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 31988650bb69Smrg fi 31992c7c4e3dSmrgfi 32002c7c4e3dSmrg 32012c7c4e3dSmrg# test whether we have cygpath 32022c7c4e3dSmrgif test -z "$CYGPATH_W"; then 32032c7c4e3dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 32042c7c4e3dSmrg CYGPATH_W='cygpath -w' 32052c7c4e3dSmrg else 32062c7c4e3dSmrg CYGPATH_W=echo 32072c7c4e3dSmrg fi 32082c7c4e3dSmrgfi 32092c7c4e3dSmrg 32102c7c4e3dSmrg 32112c7c4e3dSmrg# Define the identity of the package. 32122c7c4e3dSmrg PACKAGE='xcmsdb' 3213c1e8faa6Smrg VERSION='1.0.7' 32142c7c4e3dSmrg 32152c7c4e3dSmrg 32163458e6c2Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 32172c7c4e3dSmrg 32182c7c4e3dSmrg 32193458e6c2Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 32202c7c4e3dSmrg 32212c7c4e3dSmrg# Some tools Automake needs. 32222c7c4e3dSmrg 32232c7c4e3dSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 32242c7c4e3dSmrg 32252c7c4e3dSmrg 32262c7c4e3dSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 32272c7c4e3dSmrg 32282c7c4e3dSmrg 32292c7c4e3dSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 32302c7c4e3dSmrg 32312c7c4e3dSmrg 32322c7c4e3dSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 32332c7c4e3dSmrg 32342c7c4e3dSmrg 32352c7c4e3dSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 32362c7c4e3dSmrg 32372becc446Smrg# For better backward compatibility. To be removed once Automake 1.9.x 32382becc446Smrg# dies out for good. For more background, see: 32393458e6c2Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 32403458e6c2Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 32412becc446Smrgmkdir_p='$(MKDIR_P)' 32422c7c4e3dSmrg 32432becc446Smrg# We need awk for the "check" target (and possibly the TAP driver). The 32442becc446Smrg# system "awk" is bad on some platforms. 32452becc446Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 32462becc446Smrg# in the wild :-( We should find a proper way to deprecate it ... 32472becc446SmrgAMTAR='$${TAR-tar}' 32482c7c4e3dSmrg 32492c7c4e3dSmrg 32502becc446Smrg# We'll loop over all known methods to create a tar archive until one works. 32512becc446Smrg_am_tools='gnutar pax cpio none' 32522c7c4e3dSmrg 32532becc446Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 32542c7c4e3dSmrg 32552c7c4e3dSmrg 32562c7c4e3dSmrg 32572c7c4e3dSmrg 32582c7c4e3dSmrg 32593458e6c2Smrg# Variables for tags utilities; see am/tags.am 32603458e6c2Smrgif test -z "$CTAGS"; then 32613458e6c2Smrg CTAGS=ctags 32623458e6c2Smrgfi 32633458e6c2Smrg 32643458e6c2Smrgif test -z "$ETAGS"; then 32653458e6c2Smrg ETAGS=etags 32663458e6c2Smrgfi 32673458e6c2Smrg 32683458e6c2Smrgif test -z "$CSCOPE"; then 32693458e6c2Smrg CSCOPE=cscope 32703458e6c2Smrgfi 32713458e6c2Smrg 32723458e6c2Smrg 32732c7c4e3dSmrg 32742c7c4e3dSmrg 32752c7c4e3dSmrg 32762becc446Smrg 32778650bb69Smrg 32788650bb69Smrg 32792becc446Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 32802becc446Smrg 32818650bb69Smrg 32828650bb69Smrg 32838650bb69Smrg 32848650bb69Smrg 32858650bb69Smrg 32868650bb69Smrg 32878650bb69Smrg 32888650bb69Smrg 32898650bb69Smrg 32908650bb69Smrg 32913458e6c2Smrg 32923458e6c2Smrg 32933458e6c2Smrg 32943458e6c2Smrg 32953458e6c2Smrg 32963458e6c2Smrg 32973458e6c2Smrg 32983458e6c2Smrg 32993458e6c2Smrg 330016d7e2f1SmrgDEPDIR="${am__leading_dot}deps" 330116d7e2f1Smrg 330216d7e2f1Smrgac_config_commands="$ac_config_commands depfiles" 330316d7e2f1Smrg 33043458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 33053458e6c2Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 33063458e6c2Smrgcat > confinc.mk << 'END' 330716d7e2f1Smrgam__doit: 33083458e6c2Smrg @echo this is the am__doit target >confinc.out 330916d7e2f1Smrg.PHONY: am__doit 331016d7e2f1SmrgEND 331116d7e2f1Smrgam__include="#" 331216d7e2f1Smrgam__quote= 33133458e6c2Smrg# BSD make does it like this. 33143458e6c2Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 33153458e6c2Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 33163458e6c2Smrgecho 'include confinc.mk # ignored' > confmf.GNU 33173458e6c2Smrg_am_result=no 33183458e6c2Smrgfor s in GNU BSD; do 33193458e6c2Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 33203458e6c2Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 33213458e6c2Smrg ac_status=$? 33223458e6c2Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 33233458e6c2Smrg (exit $ac_status); } 33243458e6c2Smrg case $?:`cat confinc.out 2>/dev/null` in #( 33253458e6c2Smrg '0:this is the am__doit target') : 33263458e6c2Smrg case $s in #( 33273458e6c2Smrg BSD) : 33283458e6c2Smrg am__include='.include' am__quote='"' ;; #( 33293458e6c2Smrg *) : 33303458e6c2Smrg am__include='include' am__quote='' ;; 33313458e6c2Smrgesac ;; #( 33323458e6c2Smrg *) : 333316d7e2f1Smrg ;; 33343458e6c2Smrgesac 33353458e6c2Smrg if test "$am__include" != "#"; then 33363458e6c2Smrg _am_result="yes ($s style)" 33373458e6c2Smrg break 33383458e6c2Smrg fi 33393458e6c2Smrgdone 33403458e6c2Smrgrm -f confinc.* confmf.* 33413458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 33423458e6c2Smrgprintf "%s\n" "${_am_result}" >&6; } 334316d7e2f1Smrg 334416d7e2f1Smrg# Check whether --enable-dependency-tracking was given. 33453458e6c2Smrgif test ${enable_dependency_tracking+y} 33463458e6c2Smrgthen : 334716d7e2f1Smrg enableval=$enable_dependency_tracking; 334816d7e2f1Smrgfi 334916d7e2f1Smrg 335016d7e2f1Smrgif test "x$enable_dependency_tracking" != xno; then 335116d7e2f1Smrg am_depcomp="$ac_aux_dir/depcomp" 335216d7e2f1Smrg AMDEPBACKSLASH='\' 33532becc446Smrg am__nodep='_no' 335416d7e2f1Smrgfi 335516d7e2f1Smrg if test "x$enable_dependency_tracking" != xno; then 335616d7e2f1Smrg AMDEP_TRUE= 335716d7e2f1Smrg AMDEP_FALSE='#' 335816d7e2f1Smrgelse 335916d7e2f1Smrg AMDEP_TRUE='#' 336016d7e2f1Smrg AMDEP_FALSE= 336116d7e2f1Smrgfi 336216d7e2f1Smrg 336316d7e2f1Smrg 33648650bb69Smrgac_ext=c 33658650bb69Smrgac_cpp='$CPP $CPPFLAGS' 33668650bb69Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33672c7c4e3dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33682c7c4e3dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 33692c7c4e3dSmrgif test -n "$ac_tool_prefix"; then 33702c7c4e3dSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 33712c7c4e3dSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 33723458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33733458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 33743458e6c2Smrgif test ${ac_cv_prog_CC+y} 33753458e6c2Smrgthen : 33763458e6c2Smrg printf %s "(cached) " >&6 3377c1e8faa6Smrgelse case e in #( 3378c1e8faa6Smrg e) if test -n "$CC"; then 33792c7c4e3dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 33802c7c4e3dSmrgelse 33812c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33822c7c4e3dSmrgfor as_dir in $PATH 33832c7c4e3dSmrgdo 33842c7c4e3dSmrg IFS=$as_save_IFS 33853458e6c2Smrg case $as_dir in #((( 33863458e6c2Smrg '') as_dir=./ ;; 33873458e6c2Smrg */) ;; 33883458e6c2Smrg *) as_dir=$as_dir/ ;; 33893458e6c2Smrg esac 339016d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 33913458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33922c7c4e3dSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 33933458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33942c7c4e3dSmrg break 2 33952c7c4e3dSmrg fi 33962c7c4e3dSmrgdone 339716d7e2f1Smrg done 33988650bb69SmrgIFS=$as_save_IFS 33992c7c4e3dSmrg 3400c1e8faa6Smrgfi ;; 3401c1e8faa6Smrgesac 34022c7c4e3dSmrgfi 34032c7c4e3dSmrgCC=$ac_cv_prog_CC 34042c7c4e3dSmrgif test -n "$CC"; then 34053458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34063458e6c2Smrgprintf "%s\n" "$CC" >&6; } 34072c7c4e3dSmrgelse 34083458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34093458e6c2Smrgprintf "%s\n" "no" >&6; } 34102c7c4e3dSmrgfi 34112c7c4e3dSmrg 34128650bb69Smrg 34132c7c4e3dSmrgfi 34142c7c4e3dSmrgif test -z "$ac_cv_prog_CC"; then 34152c7c4e3dSmrg ac_ct_CC=$CC 34162c7c4e3dSmrg # Extract the first word of "gcc", so it can be a program name with args. 34172c7c4e3dSmrgset dummy gcc; ac_word=$2 34183458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34193458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 34203458e6c2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 34213458e6c2Smrgthen : 34223458e6c2Smrg printf %s "(cached) " >&6 3423c1e8faa6Smrgelse case e in #( 3424c1e8faa6Smrg e) if test -n "$ac_ct_CC"; then 34252c7c4e3dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34262c7c4e3dSmrgelse 34272c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34282c7c4e3dSmrgfor as_dir in $PATH 34292c7c4e3dSmrgdo 34302c7c4e3dSmrg IFS=$as_save_IFS 34313458e6c2Smrg case $as_dir in #((( 34323458e6c2Smrg '') as_dir=./ ;; 34333458e6c2Smrg */) ;; 34343458e6c2Smrg *) as_dir=$as_dir/ ;; 34353458e6c2Smrg esac 343616d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 34373458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34382c7c4e3dSmrg ac_cv_prog_ac_ct_CC="gcc" 34393458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34402c7c4e3dSmrg break 2 34412c7c4e3dSmrg fi 34422c7c4e3dSmrgdone 344316d7e2f1Smrg done 34448650bb69SmrgIFS=$as_save_IFS 34452c7c4e3dSmrg 3446c1e8faa6Smrgfi ;; 3447c1e8faa6Smrgesac 34482c7c4e3dSmrgfi 34492c7c4e3dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 34502c7c4e3dSmrgif test -n "$ac_ct_CC"; then 34513458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34523458e6c2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 34532c7c4e3dSmrgelse 34543458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34553458e6c2Smrgprintf "%s\n" "no" >&6; } 34562c7c4e3dSmrgfi 34572c7c4e3dSmrg 34588650bb69Smrg if test "x$ac_ct_CC" = x; then 34598650bb69Smrg CC="" 34608650bb69Smrg else 34618650bb69Smrg case $cross_compiling:$ac_tool_warned in 34628650bb69Smrgyes:) 34633458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34643458e6c2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34658650bb69Smrgac_tool_warned=yes ;; 34668650bb69Smrgesac 34678650bb69Smrg CC=$ac_ct_CC 34688650bb69Smrg fi 34692c7c4e3dSmrgelse 34702c7c4e3dSmrg CC="$ac_cv_prog_CC" 34712c7c4e3dSmrgfi 34722c7c4e3dSmrg 34732c7c4e3dSmrgif test -z "$CC"; then 34748650bb69Smrg if test -n "$ac_tool_prefix"; then 34758650bb69Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 34762c7c4e3dSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 34773458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34783458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 34793458e6c2Smrgif test ${ac_cv_prog_CC+y} 34803458e6c2Smrgthen : 34813458e6c2Smrg printf %s "(cached) " >&6 3482c1e8faa6Smrgelse case e in #( 3483c1e8faa6Smrg e) if test -n "$CC"; then 34842c7c4e3dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 34852c7c4e3dSmrgelse 34862c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34872c7c4e3dSmrgfor as_dir in $PATH 34882c7c4e3dSmrgdo 34892c7c4e3dSmrg IFS=$as_save_IFS 34903458e6c2Smrg case $as_dir in #((( 34913458e6c2Smrg '') as_dir=./ ;; 34923458e6c2Smrg */) ;; 34933458e6c2Smrg *) as_dir=$as_dir/ ;; 34943458e6c2Smrg esac 349516d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 34963458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34972c7c4e3dSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 34983458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34992c7c4e3dSmrg break 2 35002c7c4e3dSmrg fi 35012c7c4e3dSmrgdone 350216d7e2f1Smrg done 35038650bb69SmrgIFS=$as_save_IFS 35042c7c4e3dSmrg 3505c1e8faa6Smrgfi ;; 3506c1e8faa6Smrgesac 35072c7c4e3dSmrgfi 35082c7c4e3dSmrgCC=$ac_cv_prog_CC 35092c7c4e3dSmrgif test -n "$CC"; then 35103458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 35113458e6c2Smrgprintf "%s\n" "$CC" >&6; } 35122c7c4e3dSmrgelse 35133458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35143458e6c2Smrgprintf "%s\n" "no" >&6; } 35152c7c4e3dSmrgfi 35162c7c4e3dSmrg 35172c7c4e3dSmrg 35188650bb69Smrg fi 35192c7c4e3dSmrgfi 35202c7c4e3dSmrgif test -z "$CC"; then 35212c7c4e3dSmrg # Extract the first word of "cc", so it can be a program name with args. 35222c7c4e3dSmrgset dummy cc; ac_word=$2 35233458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35243458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 35253458e6c2Smrgif test ${ac_cv_prog_CC+y} 35263458e6c2Smrgthen : 35273458e6c2Smrg printf %s "(cached) " >&6 3528c1e8faa6Smrgelse case e in #( 3529c1e8faa6Smrg e) if test -n "$CC"; then 35302c7c4e3dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 35312c7c4e3dSmrgelse 35322c7c4e3dSmrg ac_prog_rejected=no 35332c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35342c7c4e3dSmrgfor as_dir in $PATH 35352c7c4e3dSmrgdo 35362c7c4e3dSmrg IFS=$as_save_IFS 35373458e6c2Smrg case $as_dir in #((( 35383458e6c2Smrg '') as_dir=./ ;; 35393458e6c2Smrg */) ;; 35403458e6c2Smrg *) as_dir=$as_dir/ ;; 35413458e6c2Smrg esac 354216d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 35433458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 35443458e6c2Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 35452c7c4e3dSmrg ac_prog_rejected=yes 35462c7c4e3dSmrg continue 35472c7c4e3dSmrg fi 35482c7c4e3dSmrg ac_cv_prog_CC="cc" 35493458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 35502c7c4e3dSmrg break 2 35512c7c4e3dSmrg fi 35522c7c4e3dSmrgdone 355316d7e2f1Smrg done 35548650bb69SmrgIFS=$as_save_IFS 35552c7c4e3dSmrg 35562c7c4e3dSmrgif test $ac_prog_rejected = yes; then 35572c7c4e3dSmrg # We found a bogon in the path, so make sure we never use it. 35582c7c4e3dSmrg set dummy $ac_cv_prog_CC 35592c7c4e3dSmrg shift 35602c7c4e3dSmrg if test $# != 0; then 35612c7c4e3dSmrg # We chose a different compiler from the bogus one. 35622c7c4e3dSmrg # However, it has the same basename, so the bogon will be chosen 35632c7c4e3dSmrg # first if we set CC to just the basename; use the full file name. 35642c7c4e3dSmrg shift 35653458e6c2Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 35662c7c4e3dSmrg fi 35672c7c4e3dSmrgfi 3568c1e8faa6Smrgfi ;; 3569c1e8faa6Smrgesac 35702c7c4e3dSmrgfi 35712c7c4e3dSmrgCC=$ac_cv_prog_CC 35722c7c4e3dSmrgif test -n "$CC"; then 35733458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 35743458e6c2Smrgprintf "%s\n" "$CC" >&6; } 35752c7c4e3dSmrgelse 35763458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35773458e6c2Smrgprintf "%s\n" "no" >&6; } 35782c7c4e3dSmrgfi 35792c7c4e3dSmrg 35808650bb69Smrg 35812c7c4e3dSmrgfi 35822c7c4e3dSmrgif test -z "$CC"; then 35832c7c4e3dSmrg if test -n "$ac_tool_prefix"; then 35848650bb69Smrg for ac_prog in cl.exe 35852c7c4e3dSmrg do 35862c7c4e3dSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35872c7c4e3dSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 35883458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35893458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 35903458e6c2Smrgif test ${ac_cv_prog_CC+y} 35913458e6c2Smrgthen : 35923458e6c2Smrg printf %s "(cached) " >&6 3593c1e8faa6Smrgelse case e in #( 3594c1e8faa6Smrg e) if test -n "$CC"; then 35952c7c4e3dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 35962c7c4e3dSmrgelse 35972c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35982c7c4e3dSmrgfor as_dir in $PATH 35992c7c4e3dSmrgdo 36002c7c4e3dSmrg IFS=$as_save_IFS 36013458e6c2Smrg case $as_dir in #((( 36023458e6c2Smrg '') as_dir=./ ;; 36033458e6c2Smrg */) ;; 36043458e6c2Smrg *) as_dir=$as_dir/ ;; 36053458e6c2Smrg esac 360616d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 36073458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 36082c7c4e3dSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 36093458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36102c7c4e3dSmrg break 2 36112c7c4e3dSmrg fi 36122c7c4e3dSmrgdone 361316d7e2f1Smrg done 36148650bb69SmrgIFS=$as_save_IFS 36152c7c4e3dSmrg 3616c1e8faa6Smrgfi ;; 3617c1e8faa6Smrgesac 36182c7c4e3dSmrgfi 36192c7c4e3dSmrgCC=$ac_cv_prog_CC 36202c7c4e3dSmrgif test -n "$CC"; then 36213458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 36223458e6c2Smrgprintf "%s\n" "$CC" >&6; } 36232c7c4e3dSmrgelse 36243458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36253458e6c2Smrgprintf "%s\n" "no" >&6; } 36262c7c4e3dSmrgfi 36272c7c4e3dSmrg 36288650bb69Smrg 36292c7c4e3dSmrg test -n "$CC" && break 36302c7c4e3dSmrg done 36312c7c4e3dSmrgfi 36322c7c4e3dSmrgif test -z "$CC"; then 36332c7c4e3dSmrg ac_ct_CC=$CC 36348650bb69Smrg for ac_prog in cl.exe 36352c7c4e3dSmrgdo 36362c7c4e3dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 36372c7c4e3dSmrgset dummy $ac_prog; ac_word=$2 36383458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36393458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 36403458e6c2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 36413458e6c2Smrgthen : 36423458e6c2Smrg printf %s "(cached) " >&6 3643c1e8faa6Smrgelse case e in #( 3644c1e8faa6Smrg e) if test -n "$ac_ct_CC"; then 36452c7c4e3dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 36462c7c4e3dSmrgelse 36472c7c4e3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36482c7c4e3dSmrgfor as_dir in $PATH 36492c7c4e3dSmrgdo 36502c7c4e3dSmrg IFS=$as_save_IFS 36513458e6c2Smrg case $as_dir in #((( 36523458e6c2Smrg '') as_dir=./ ;; 36533458e6c2Smrg */) ;; 36543458e6c2Smrg *) as_dir=$as_dir/ ;; 36553458e6c2Smrg esac 365616d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 36573458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 36582c7c4e3dSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 36593458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36602c7c4e3dSmrg break 2 36612c7c4e3dSmrg fi 36622c7c4e3dSmrgdone 366316d7e2f1Smrg done 36648650bb69SmrgIFS=$as_save_IFS 36652c7c4e3dSmrg 3666c1e8faa6Smrgfi ;; 3667c1e8faa6Smrgesac 36682c7c4e3dSmrgfi 36692c7c4e3dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 36702c7c4e3dSmrgif test -n "$ac_ct_CC"; then 36713458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 36723458e6c2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 36732c7c4e3dSmrgelse 36743458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36753458e6c2Smrgprintf "%s\n" "no" >&6; } 36762c7c4e3dSmrgfi 36772c7c4e3dSmrg 36788650bb69Smrg 36792c7c4e3dSmrg test -n "$ac_ct_CC" && break 36802c7c4e3dSmrgdone 36812c7c4e3dSmrg 36828650bb69Smrg if test "x$ac_ct_CC" = x; then 36838650bb69Smrg CC="" 36848650bb69Smrg else 36858650bb69Smrg case $cross_compiling:$ac_tool_warned in 36868650bb69Smrgyes:) 36873458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36883458e6c2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36898650bb69Smrgac_tool_warned=yes ;; 36908650bb69Smrgesac 36918650bb69Smrg CC=$ac_ct_CC 36928650bb69Smrg fi 36932c7c4e3dSmrgfi 36942c7c4e3dSmrg 36952c7c4e3dSmrgfi 36963458e6c2Smrgif test -z "$CC"; then 36973458e6c2Smrg if test -n "$ac_tool_prefix"; then 36983458e6c2Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 36993458e6c2Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 37003458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37013458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 37023458e6c2Smrgif test ${ac_cv_prog_CC+y} 37033458e6c2Smrgthen : 37043458e6c2Smrg printf %s "(cached) " >&6 3705c1e8faa6Smrgelse case e in #( 3706c1e8faa6Smrg e) if test -n "$CC"; then 37073458e6c2Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 37083458e6c2Smrgelse 37093458e6c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37103458e6c2Smrgfor as_dir in $PATH 37113458e6c2Smrgdo 37123458e6c2Smrg IFS=$as_save_IFS 37133458e6c2Smrg case $as_dir in #((( 37143458e6c2Smrg '') as_dir=./ ;; 37153458e6c2Smrg */) ;; 37163458e6c2Smrg *) as_dir=$as_dir/ ;; 37173458e6c2Smrg esac 37183458e6c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 37193458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 37203458e6c2Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 37213458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 37223458e6c2Smrg break 2 37233458e6c2Smrg fi 37243458e6c2Smrgdone 37253458e6c2Smrg done 37263458e6c2SmrgIFS=$as_save_IFS 37273458e6c2Smrg 3728c1e8faa6Smrgfi ;; 3729c1e8faa6Smrgesac 37303458e6c2Smrgfi 37313458e6c2SmrgCC=$ac_cv_prog_CC 37323458e6c2Smrgif test -n "$CC"; then 37333458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 37343458e6c2Smrgprintf "%s\n" "$CC" >&6; } 37353458e6c2Smrgelse 37363458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37373458e6c2Smrgprintf "%s\n" "no" >&6; } 37383458e6c2Smrgfi 37393458e6c2Smrg 37403458e6c2Smrg 37413458e6c2Smrgfi 37423458e6c2Smrgif test -z "$ac_cv_prog_CC"; then 37433458e6c2Smrg ac_ct_CC=$CC 37443458e6c2Smrg # Extract the first word of "clang", so it can be a program name with args. 37453458e6c2Smrgset dummy clang; ac_word=$2 37463458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37473458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 37483458e6c2Smrgif test ${ac_cv_prog_ac_ct_CC+y} 37493458e6c2Smrgthen : 37503458e6c2Smrg printf %s "(cached) " >&6 3751c1e8faa6Smrgelse case e in #( 3752c1e8faa6Smrg e) if test -n "$ac_ct_CC"; then 37533458e6c2Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 37543458e6c2Smrgelse 37553458e6c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37563458e6c2Smrgfor as_dir in $PATH 37573458e6c2Smrgdo 37583458e6c2Smrg IFS=$as_save_IFS 37593458e6c2Smrg case $as_dir in #((( 37603458e6c2Smrg '') as_dir=./ ;; 37613458e6c2Smrg */) ;; 37623458e6c2Smrg *) as_dir=$as_dir/ ;; 37633458e6c2Smrg esac 37643458e6c2Smrg for ac_exec_ext in '' $ac_executable_extensions; do 37653458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 37663458e6c2Smrg ac_cv_prog_ac_ct_CC="clang" 37673458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 37683458e6c2Smrg break 2 37693458e6c2Smrg fi 37703458e6c2Smrgdone 37713458e6c2Smrg done 37723458e6c2SmrgIFS=$as_save_IFS 37732c7c4e3dSmrg 3774c1e8faa6Smrgfi ;; 3775c1e8faa6Smrgesac 37763458e6c2Smrgfi 37773458e6c2Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 37783458e6c2Smrgif test -n "$ac_ct_CC"; then 37793458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 37803458e6c2Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 37813458e6c2Smrgelse 37823458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37833458e6c2Smrgprintf "%s\n" "no" >&6; } 37843458e6c2Smrgfi 37852c7c4e3dSmrg 37863458e6c2Smrg if test "x$ac_ct_CC" = x; then 37873458e6c2Smrg CC="" 37883458e6c2Smrg else 37893458e6c2Smrg case $cross_compiling:$ac_tool_warned in 37903458e6c2Smrgyes:) 37913458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37923458e6c2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37933458e6c2Smrgac_tool_warned=yes ;; 37943458e6c2Smrgesac 37953458e6c2Smrg CC=$ac_ct_CC 37963458e6c2Smrg fi 37973458e6c2Smrgelse 37983458e6c2Smrg CC="$ac_cv_prog_CC" 37993458e6c2Smrgfi 38003458e6c2Smrg 38013458e6c2Smrgfi 38023458e6c2Smrg 38033458e6c2Smrg 3804c1e8faa6Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3805c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 380616d7e2f1Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3807c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 38082c7c4e3dSmrg 38092c7c4e3dSmrg# Provide some information about the compiler. 38103458e6c2Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 38118650bb69Smrgset X $ac_compile 38128650bb69Smrgac_compiler=$2 38133458e6c2Smrgfor ac_option in --version -v -V -qversion -version; do 381416d7e2f1Smrg { { ac_try="$ac_compiler $ac_option >&5" 38158650bb69Smrgcase "(($ac_try" in 38168650bb69Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38178650bb69Smrg *) ac_try_echo=$ac_try;; 38188650bb69Smrgesac 381916d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38203458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 382116d7e2f1Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 38222c7c4e3dSmrg ac_status=$? 382316d7e2f1Smrg if test -s conftest.err; then 382416d7e2f1Smrg sed '10a\ 382516d7e2f1Smrg... rest of stderr output deleted ... 382616d7e2f1Smrg 10q' conftest.err >conftest.er1 382716d7e2f1Smrg cat conftest.er1 >&5 382816d7e2f1Smrg fi 382916d7e2f1Smrg rm -f conftest.er1 conftest.err 38303458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 383116d7e2f1Smrg test $ac_status = 0; } 383216d7e2f1Smrgdone 38332c7c4e3dSmrg 383416d7e2f1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 38352c7c4e3dSmrg/* end confdefs.h. */ 38362c7c4e3dSmrg 38372c7c4e3dSmrgint 38383458e6c2Smrgmain (void) 38392c7c4e3dSmrg{ 38402c7c4e3dSmrg 38412c7c4e3dSmrg ; 38422c7c4e3dSmrg return 0; 38432c7c4e3dSmrg} 38442c7c4e3dSmrg_ACEOF 38452c7c4e3dSmrgac_clean_files_save=$ac_clean_files 38468650bb69Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 38472c7c4e3dSmrg# Try to create an executable without -o first, disregard a.out. 38482c7c4e3dSmrg# It will help us diagnose broken compilers, and finding out an intuition 38492c7c4e3dSmrg# of exeext. 38503458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 38513458e6c2Smrgprintf %s "checking whether the C compiler works... " >&6; } 38523458e6c2Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 38538650bb69Smrg 38548650bb69Smrg# The possible output files: 38558650bb69Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 38568650bb69Smrg 38578650bb69Smrgac_rmfiles= 38588650bb69Smrgfor ac_file in $ac_files 38598650bb69Smrgdo 38608650bb69Smrg case $ac_file in 38618650bb69Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 38628650bb69Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 38638650bb69Smrg esac 38648650bb69Smrgdone 38658650bb69Smrgrm -f $ac_rmfiles 38668650bb69Smrg 386716d7e2f1Smrgif { { ac_try="$ac_link_default" 38688650bb69Smrgcase "(($ac_try" in 38698650bb69Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38708650bb69Smrg *) ac_try_echo=$ac_try;; 38718650bb69Smrgesac 387216d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38733458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 38748650bb69Smrg (eval "$ac_link_default") 2>&5 38752c7c4e3dSmrg ac_status=$? 38763458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38773458e6c2Smrg test $ac_status = 0; } 38783458e6c2Smrgthen : 3879c1e8faa6Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3880c1e8faa6Smrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 38818650bb69Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 38828650bb69Smrg# so that the user can short-circuit this test for compilers unknown to 38838650bb69Smrg# Autoconf. 38848650bb69Smrgfor ac_file in $ac_files '' 38852c7c4e3dSmrgdo 38862c7c4e3dSmrg test -f "$ac_file" || continue 38872c7c4e3dSmrg case $ac_file in 38888650bb69Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 38892c7c4e3dSmrg ;; 38902c7c4e3dSmrg [ab].out ) 38912c7c4e3dSmrg # We found the default executable, but exeext='' is most 38922c7c4e3dSmrg # certainly right. 38932c7c4e3dSmrg break;; 38942c7c4e3dSmrg *.* ) 38953458e6c2Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 38968650bb69Smrg then :; else 38978650bb69Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 38988650bb69Smrg fi 38998650bb69Smrg # We set ac_cv_exeext here because the later test for it is not 3900c1e8faa6Smrg # safe: cross compilers may not add the suffix if given an '-o' 39018650bb69Smrg # argument, so we may need to know it at that point already. 39028650bb69Smrg # Even if this section looks crufty: it has the advantage of 39038650bb69Smrg # actually working. 39042c7c4e3dSmrg break;; 39052c7c4e3dSmrg * ) 39062c7c4e3dSmrg break;; 39072c7c4e3dSmrg esac 39082c7c4e3dSmrgdone 39098650bb69Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 39108650bb69Smrg 3911c1e8faa6Smrgelse case e in #( 3912c1e8faa6Smrg e) ac_file='' ;; 3913c1e8faa6Smrgesac 39148650bb69Smrgfi 39153458e6c2Smrgif test -z "$ac_file" 39163458e6c2Smrgthen : 39173458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39183458e6c2Smrgprintf "%s\n" "no" >&6; } 39193458e6c2Smrgprintf "%s\n" "$as_me: failed program was:" >&5 39202c7c4e3dSmrgsed 's/^/| /' conftest.$ac_ext >&5 39212c7c4e3dSmrg 3922c1e8faa6Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3923c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 392416d7e2f1Smrgas_fn_error 77 "C compiler cannot create executables 3925c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 3926c1e8faa6Smrgelse case e in #( 3927c1e8faa6Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3928c1e8faa6Smrgprintf "%s\n" "yes" >&6; } ;; 3929c1e8faa6Smrgesac 39303458e6c2Smrgfi 39313458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 39323458e6c2Smrgprintf %s "checking for C compiler default output file name... " >&6; } 39333458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 39343458e6c2Smrgprintf "%s\n" "$ac_file" >&6; } 39352c7c4e3dSmrgac_exeext=$ac_cv_exeext 39362c7c4e3dSmrg 39378650bb69Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 39382c7c4e3dSmrgac_clean_files=$ac_clean_files_save 39393458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 39403458e6c2Smrgprintf %s "checking for suffix of executables... " >&6; } 394116d7e2f1Smrgif { { ac_try="$ac_link" 39428650bb69Smrgcase "(($ac_try" in 39438650bb69Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39448650bb69Smrg *) ac_try_echo=$ac_try;; 39458650bb69Smrgesac 394616d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 39473458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 39488650bb69Smrg (eval "$ac_link") 2>&5 39492c7c4e3dSmrg ac_status=$? 39503458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39513458e6c2Smrg test $ac_status = 0; } 39523458e6c2Smrgthen : 3953c1e8faa6Smrg # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3954c1e8faa6Smrg# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3955c1e8faa6Smrg# work properly (i.e., refer to 'conftest.exe'), while it won't with 3956c1e8faa6Smrg# 'rm'. 39572c7c4e3dSmrgfor ac_file in conftest.exe conftest conftest.*; do 39582c7c4e3dSmrg test -f "$ac_file" || continue 39592c7c4e3dSmrg case $ac_file in 39608650bb69Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 39612c7c4e3dSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 39622c7c4e3dSmrg break;; 39632c7c4e3dSmrg * ) break;; 39642c7c4e3dSmrg esac 39652c7c4e3dSmrgdone 3966c1e8faa6Smrgelse case e in #( 3967c1e8faa6Smrg e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3968c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 396916d7e2f1Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3970c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 3971c1e8faa6Smrgesac 39722c7c4e3dSmrgfi 397316d7e2f1Smrgrm -f conftest conftest$ac_cv_exeext 39743458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 39753458e6c2Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 39762c7c4e3dSmrg 39772c7c4e3dSmrgrm -f conftest.$ac_ext 39782c7c4e3dSmrgEXEEXT=$ac_cv_exeext 39792c7c4e3dSmrgac_exeext=$EXEEXT 398016d7e2f1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 398116d7e2f1Smrg/* end confdefs.h. */ 398216d7e2f1Smrg#include <stdio.h> 398316d7e2f1Smrgint 39843458e6c2Smrgmain (void) 398516d7e2f1Smrg{ 398616d7e2f1SmrgFILE *f = fopen ("conftest.out", "w"); 3987c1e8faa6Smrg if (!f) 3988c1e8faa6Smrg return 1; 398916d7e2f1Smrg return ferror (f) || fclose (f) != 0; 399016d7e2f1Smrg 399116d7e2f1Smrg ; 399216d7e2f1Smrg return 0; 399316d7e2f1Smrg} 399416d7e2f1Smrg_ACEOF 399516d7e2f1Smrgac_clean_files="$ac_clean_files conftest.out" 399616d7e2f1Smrg# Check that the compiler produces executables we can run. If not, either 399716d7e2f1Smrg# the compiler is broken, or we cross compile. 39983458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 39993458e6c2Smrgprintf %s "checking whether we are cross compiling... " >&6; } 400016d7e2f1Smrgif test "$cross_compiling" != yes; then 400116d7e2f1Smrg { { ac_try="$ac_link" 400216d7e2f1Smrgcase "(($ac_try" in 400316d7e2f1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 400416d7e2f1Smrg *) ac_try_echo=$ac_try;; 400516d7e2f1Smrgesac 400616d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 40073458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 400816d7e2f1Smrg (eval "$ac_link") 2>&5 400916d7e2f1Smrg ac_status=$? 40103458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 401116d7e2f1Smrg test $ac_status = 0; } 401216d7e2f1Smrg if { ac_try='./conftest$ac_cv_exeext' 401316d7e2f1Smrg { { case "(($ac_try" in 401416d7e2f1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 401516d7e2f1Smrg *) ac_try_echo=$ac_try;; 401616d7e2f1Smrgesac 401716d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 40183458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 401916d7e2f1Smrg (eval "$ac_try") 2>&5 402016d7e2f1Smrg ac_status=$? 40213458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 402216d7e2f1Smrg test $ac_status = 0; }; }; then 402316d7e2f1Smrg cross_compiling=no 402416d7e2f1Smrg else 402516d7e2f1Smrg if test "$cross_compiling" = maybe; then 402616d7e2f1Smrg cross_compiling=yes 402716d7e2f1Smrg else 4028c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4029c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 40303458e6c2Smrgas_fn_error 77 "cannot run C compiled programs. 4031c1e8faa6SmrgIf you meant to cross compile, use '--host'. 4032c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 403316d7e2f1Smrg fi 403416d7e2f1Smrg fi 403516d7e2f1Smrgfi 40363458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 40373458e6c2Smrgprintf "%s\n" "$cross_compiling" >&6; } 403816d7e2f1Smrg 4039c1e8faa6Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4040c1e8faa6Smrg conftest.o conftest.obj conftest.out 404116d7e2f1Smrgac_clean_files=$ac_clean_files_save 40423458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 40433458e6c2Smrgprintf %s "checking for suffix of object files... " >&6; } 40443458e6c2Smrgif test ${ac_cv_objext+y} 40453458e6c2Smrgthen : 40463458e6c2Smrg printf %s "(cached) " >&6 4047c1e8faa6Smrgelse case e in #( 4048c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40492c7c4e3dSmrg/* end confdefs.h. */ 40502c7c4e3dSmrg 40512c7c4e3dSmrgint 40523458e6c2Smrgmain (void) 40532c7c4e3dSmrg{ 40542c7c4e3dSmrg 40552c7c4e3dSmrg ; 40562c7c4e3dSmrg return 0; 40572c7c4e3dSmrg} 40582c7c4e3dSmrg_ACEOF 40592c7c4e3dSmrgrm -f conftest.o conftest.obj 406016d7e2f1Smrgif { { ac_try="$ac_compile" 40618650bb69Smrgcase "(($ac_try" in 40628650bb69Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40638650bb69Smrg *) ac_try_echo=$ac_try;; 40648650bb69Smrgesac 406516d7e2f1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 40663458e6c2Smrgprintf "%s\n" "$ac_try_echo"; } >&5 40678650bb69Smrg (eval "$ac_compile") 2>&5 40682c7c4e3dSmrg ac_status=$? 40693458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 40703458e6c2Smrg test $ac_status = 0; } 40713458e6c2Smrgthen : 40728650bb69Smrg for ac_file in conftest.o conftest.obj conftest.*; do 40738650bb69Smrg test -f "$ac_file" || continue; 40742c7c4e3dSmrg case $ac_file in 40758650bb69Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 40762c7c4e3dSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 40772c7c4e3dSmrg break;; 40782c7c4e3dSmrg esac 40792c7c4e3dSmrgdone 4080c1e8faa6Smrgelse case e in #( 4081c1e8faa6Smrg e) printf "%s\n" "$as_me: failed program was:" >&5 40822c7c4e3dSmrgsed 's/^/| /' conftest.$ac_ext >&5 40832c7c4e3dSmrg 4084c1e8faa6Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4085c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 408616d7e2f1Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 4087c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; 4088c1e8faa6Smrgesac 40892c7c4e3dSmrgfi 4090c1e8faa6Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4091c1e8faa6Smrgesac 40922c7c4e3dSmrgfi 40933458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 40943458e6c2Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 40952c7c4e3dSmrgOBJEXT=$ac_cv_objext 40962c7c4e3dSmrgac_objext=$OBJEXT 40973458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 40983458e6c2Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 40993458e6c2Smrgif test ${ac_cv_c_compiler_gnu+y} 41003458e6c2Smrgthen : 41013458e6c2Smrg printf %s "(cached) " >&6 4102c1e8faa6Smrgelse case e in #( 4103c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41042c7c4e3dSmrg/* end confdefs.h. */ 41052c7c4e3dSmrg 41062c7c4e3dSmrgint 41073458e6c2Smrgmain (void) 41082c7c4e3dSmrg{ 41092c7c4e3dSmrg#ifndef __GNUC__ 41102c7c4e3dSmrg choke me 41112c7c4e3dSmrg#endif 41122c7c4e3dSmrg 41132c7c4e3dSmrg ; 41142c7c4e3dSmrg return 0; 41152c7c4e3dSmrg} 41162c7c4e3dSmrg_ACEOF 41173458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 41183458e6c2Smrgthen : 41192c7c4e3dSmrg ac_compiler_gnu=yes 4120c1e8faa6Smrgelse case e in #( 4121c1e8faa6Smrg e) ac_compiler_gnu=no ;; 4122c1e8faa6Smrgesac 41232c7c4e3dSmrgfi 41243458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41252c7c4e3dSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 4126c1e8faa6Smrg ;; 4127c1e8faa6Smrgesac 41282c7c4e3dSmrgfi 41293458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 41303458e6c2Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 41313458e6c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41323458e6c2Smrg 41338650bb69Smrgif test $ac_compiler_gnu = yes; then 41348650bb69Smrg GCC=yes 41358650bb69Smrgelse 41368650bb69Smrg GCC= 41378650bb69Smrgfi 41383458e6c2Smrgac_test_CFLAGS=${CFLAGS+y} 41392c7c4e3dSmrgac_save_CFLAGS=$CFLAGS 41403458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 41413458e6c2Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 41423458e6c2Smrgif test ${ac_cv_prog_cc_g+y} 41433458e6c2Smrgthen : 41443458e6c2Smrg printf %s "(cached) " >&6 4145c1e8faa6Smrgelse case e in #( 4146c1e8faa6Smrg e) ac_save_c_werror_flag=$ac_c_werror_flag 41478650bb69Smrg ac_c_werror_flag=yes 41488650bb69Smrg ac_cv_prog_cc_g=no 41498650bb69Smrg CFLAGS="-g" 415016d7e2f1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41512c7c4e3dSmrg/* end confdefs.h. */ 41522c7c4e3dSmrg 41532c7c4e3dSmrgint 41543458e6c2Smrgmain (void) 41552c7c4e3dSmrg{ 41562c7c4e3dSmrg 41572c7c4e3dSmrg ; 41582c7c4e3dSmrg return 0; 41592c7c4e3dSmrg} 41602c7c4e3dSmrg_ACEOF 41613458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 41623458e6c2Smrgthen : 41638650bb69Smrg ac_cv_prog_cc_g=yes 4164c1e8faa6Smrgelse case e in #( 4165c1e8faa6Smrg e) CFLAGS="" 416616d7e2f1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41678650bb69Smrg/* end confdefs.h. */ 41688650bb69Smrg 41698650bb69Smrgint 41703458e6c2Smrgmain (void) 41718650bb69Smrg{ 41728650bb69Smrg 41738650bb69Smrg ; 41748650bb69Smrg return 0; 41758650bb69Smrg} 41768650bb69Smrg_ACEOF 41773458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 41783458e6c2Smrgthen : 41798650bb69Smrg 4180c1e8faa6Smrgelse case e in #( 4181c1e8faa6Smrg e) ac_c_werror_flag=$ac_save_c_werror_flag 41828650bb69Smrg CFLAGS="-g" 418316d7e2f1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41848650bb69Smrg/* end confdefs.h. */ 41858650bb69Smrg 41868650bb69Smrgint 41873458e6c2Smrgmain (void) 41888650bb69Smrg{ 41898650bb69Smrg 41908650bb69Smrg ; 41918650bb69Smrg return 0; 41928650bb69Smrg} 41938650bb69Smrg_ACEOF 41943458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 41953458e6c2Smrgthen : 41962c7c4e3dSmrg ac_cv_prog_cc_g=yes 41978650bb69Smrgfi 4198c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4199c1e8faa6Smrgesac 42002c7c4e3dSmrgfi 4201c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4202c1e8faa6Smrgesac 42038650bb69Smrgfi 42043458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4205c1e8faa6Smrg ac_c_werror_flag=$ac_save_c_werror_flag ;; 4206c1e8faa6Smrgesac 42072c7c4e3dSmrgfi 42083458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 42093458e6c2Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 42103458e6c2Smrgif test $ac_test_CFLAGS; then 42112c7c4e3dSmrg CFLAGS=$ac_save_CFLAGS 42122c7c4e3dSmrgelif test $ac_cv_prog_cc_g = yes; then 42132c7c4e3dSmrg if test "$GCC" = yes; then 42142c7c4e3dSmrg CFLAGS="-g -O2" 42152c7c4e3dSmrg else 42162c7c4e3dSmrg CFLAGS="-g" 42172c7c4e3dSmrg fi 42182c7c4e3dSmrgelse 42192c7c4e3dSmrg if test "$GCC" = yes; then 42202c7c4e3dSmrg CFLAGS="-O2" 42212c7c4e3dSmrg else 42222c7c4e3dSmrg CFLAGS= 42232c7c4e3dSmrg fi 42242c7c4e3dSmrgfi 42253458e6c2Smrgac_prog_cc_stdc=no 42263458e6c2Smrgif test x$ac_prog_cc_stdc = xno 42273458e6c2Smrgthen : 42283458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 42293458e6c2Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 42303458e6c2Smrgif test ${ac_cv_prog_cc_c11+y} 42313458e6c2Smrgthen : 42323458e6c2Smrg printf %s "(cached) " >&6 4233c1e8faa6Smrgelse case e in #( 4234c1e8faa6Smrg e) ac_cv_prog_cc_c11=no 42352c7c4e3dSmrgac_save_CC=$CC 423616d7e2f1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 42372c7c4e3dSmrg/* end confdefs.h. */ 42383458e6c2Smrg$ac_c_conftest_c11_program 42393458e6c2Smrg_ACEOF 42403458e6c2Smrgfor ac_arg in '' -std=gnu11 42413458e6c2Smrgdo 42423458e6c2Smrg CC="$ac_save_CC $ac_arg" 42433458e6c2Smrg if ac_fn_c_try_compile "$LINENO" 42443458e6c2Smrgthen : 42453458e6c2Smrg ac_cv_prog_cc_c11=$ac_arg 42463458e6c2Smrgfi 42473458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 42483458e6c2Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 42493458e6c2Smrgdone 42503458e6c2Smrgrm -f conftest.$ac_ext 4251c1e8faa6SmrgCC=$ac_save_CC ;; 4252c1e8faa6Smrgesac 42533458e6c2Smrgfi 42542c7c4e3dSmrg 42553458e6c2Smrgif test "x$ac_cv_prog_cc_c11" = xno 42563458e6c2Smrgthen : 42573458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 42583458e6c2Smrgprintf "%s\n" "unsupported" >&6; } 4259c1e8faa6Smrgelse case e in #( 4260c1e8faa6Smrg e) if test "x$ac_cv_prog_cc_c11" = x 42613458e6c2Smrgthen : 42623458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 42633458e6c2Smrgprintf "%s\n" "none needed" >&6; } 4264c1e8faa6Smrgelse case e in #( 4265c1e8faa6Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 42663458e6c2Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4267c1e8faa6Smrg CC="$CC $ac_cv_prog_cc_c11" ;; 4268c1e8faa6Smrgesac 42693458e6c2Smrgfi 42703458e6c2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4271c1e8faa6Smrg ac_prog_cc_stdc=c11 ;; 4272c1e8faa6Smrgesac 42733458e6c2Smrgfi 42743458e6c2Smrgfi 42753458e6c2Smrgif test x$ac_prog_cc_stdc = xno 42763458e6c2Smrgthen : 42773458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 42783458e6c2Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 42793458e6c2Smrgif test ${ac_cv_prog_cc_c99+y} 42803458e6c2Smrgthen : 42813458e6c2Smrg printf %s "(cached) " >&6 4282c1e8faa6Smrgelse case e in #( 4283c1e8faa6Smrg e) ac_cv_prog_cc_c99=no 42843458e6c2Smrgac_save_CC=$CC 42853458e6c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 42863458e6c2Smrg/* end confdefs.h. */ 42873458e6c2Smrg$ac_c_conftest_c99_program 42883458e6c2Smrg_ACEOF 42893458e6c2Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 42903458e6c2Smrgdo 42913458e6c2Smrg CC="$ac_save_CC $ac_arg" 42923458e6c2Smrg if ac_fn_c_try_compile "$LINENO" 42933458e6c2Smrgthen : 42943458e6c2Smrg ac_cv_prog_cc_c99=$ac_arg 42953458e6c2Smrgfi 42963458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 42973458e6c2Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 42983458e6c2Smrgdone 42993458e6c2Smrgrm -f conftest.$ac_ext 4300c1e8faa6SmrgCC=$ac_save_CC ;; 4301c1e8faa6Smrgesac 43023458e6c2Smrgfi 43038650bb69Smrg 43043458e6c2Smrgif test "x$ac_cv_prog_cc_c99" = xno 43053458e6c2Smrgthen : 43063458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 43073458e6c2Smrgprintf "%s\n" "unsupported" >&6; } 4308c1e8faa6Smrgelse case e in #( 4309c1e8faa6Smrg e) if test "x$ac_cv_prog_cc_c99" = x 43103458e6c2Smrgthen : 43113458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 43123458e6c2Smrgprintf "%s\n" "none needed" >&6; } 4313c1e8faa6Smrgelse case e in #( 4314c1e8faa6Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 43153458e6c2Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4316c1e8faa6Smrg CC="$CC $ac_cv_prog_cc_c99" ;; 4317c1e8faa6Smrgesac 43183458e6c2Smrgfi 43193458e6c2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4320c1e8faa6Smrg ac_prog_cc_stdc=c99 ;; 4321c1e8faa6Smrgesac 43223458e6c2Smrgfi 43233458e6c2Smrgfi 43243458e6c2Smrgif test x$ac_prog_cc_stdc = xno 43253458e6c2Smrgthen : 43263458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 43273458e6c2Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 43283458e6c2Smrgif test ${ac_cv_prog_cc_c89+y} 43293458e6c2Smrgthen : 43303458e6c2Smrg printf %s "(cached) " >&6 4331c1e8faa6Smrgelse case e in #( 4332c1e8faa6Smrg e) ac_cv_prog_cc_c89=no 43333458e6c2Smrgac_save_CC=$CC 43343458e6c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 43353458e6c2Smrg/* end confdefs.h. */ 43363458e6c2Smrg$ac_c_conftest_c89_program 43372c7c4e3dSmrg_ACEOF 43383458e6c2Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 43392c7c4e3dSmrgdo 43402c7c4e3dSmrg CC="$ac_save_CC $ac_arg" 43413458e6c2Smrg if ac_fn_c_try_compile "$LINENO" 43423458e6c2Smrgthen : 43438650bb69Smrg ac_cv_prog_cc_c89=$ac_arg 43442c7c4e3dSmrgfi 43453458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 43468650bb69Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 43472c7c4e3dSmrgdone 43488650bb69Smrgrm -f conftest.$ac_ext 4349c1e8faa6SmrgCC=$ac_save_CC ;; 4350c1e8faa6Smrgesac 43512c7c4e3dSmrgfi 43522c7c4e3dSmrg 43533458e6c2Smrgif test "x$ac_cv_prog_cc_c89" = xno 43543458e6c2Smrgthen : 43553458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 43563458e6c2Smrgprintf "%s\n" "unsupported" >&6; } 4357c1e8faa6Smrgelse case e in #( 4358c1e8faa6Smrg e) if test "x$ac_cv_prog_cc_c89" = x 43593458e6c2Smrgthen : 43603458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 43613458e6c2Smrgprintf "%s\n" "none needed" >&6; } 4362c1e8faa6Smrgelse case e in #( 4363c1e8faa6Smrg e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 43643458e6c2Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4365c1e8faa6Smrg CC="$CC $ac_cv_prog_cc_c89" ;; 4366c1e8faa6Smrgesac 43673458e6c2Smrgfi 43683458e6c2Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4369c1e8faa6Smrg ac_prog_cc_stdc=c89 ;; 4370c1e8faa6Smrgesac 43713458e6c2Smrgfi 437216d7e2f1Smrgfi 43732c7c4e3dSmrg 43742c7c4e3dSmrgac_ext=c 43752c7c4e3dSmrgac_cpp='$CPP $CPPFLAGS' 43762c7c4e3dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43772c7c4e3dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43782c7c4e3dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 43792c7c4e3dSmrg 43803458e6c2Smrg 43813458e6c2Smrg ac_ext=c 43822becc446Smrgac_cpp='$CPP $CPPFLAGS' 43832becc446Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43842becc446Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43852becc446Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 43863458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 43873458e6c2Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 43883458e6c2Smrgif test ${am_cv_prog_cc_c_o+y} 43893458e6c2Smrgthen : 43903458e6c2Smrg printf %s "(cached) " >&6 4391c1e8faa6Smrgelse case e in #( 4392c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43932becc446Smrg/* end confdefs.h. */ 43942becc446Smrg 43952becc446Smrgint 43963458e6c2Smrgmain (void) 43972becc446Smrg{ 43982becc446Smrg 43992becc446Smrg ; 44002becc446Smrg return 0; 44012becc446Smrg} 44022becc446Smrg_ACEOF 44032becc446Smrg # Make sure it works both with $CC and with simple cc. 44042becc446Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 44052becc446Smrg # compilers refuse to overwrite an existing .o file with -o, 44062becc446Smrg # though they will create one. 44072becc446Smrg am_cv_prog_cc_c_o=yes 44082becc446Smrg for am_i in 1 2; do 44092becc446Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 44102becc446Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 44112becc446Smrg ac_status=$? 44122becc446Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 44132becc446Smrg (exit $ac_status); } \ 44142becc446Smrg && test -f conftest2.$ac_objext; then 44152becc446Smrg : OK 44162becc446Smrg else 44172becc446Smrg am_cv_prog_cc_c_o=no 44182becc446Smrg break 44192becc446Smrg fi 44202becc446Smrg done 44212becc446Smrg rm -f core conftest* 4422c1e8faa6Smrg unset am_i ;; 4423c1e8faa6Smrgesac 44242becc446Smrgfi 44253458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 44263458e6c2Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 44272becc446Smrgif test "$am_cv_prog_cc_c_o" != yes; then 44282becc446Smrg # Losing compiler, so override with the script. 44292becc446Smrg # FIXME: It is wrong to rewrite CC. 44302becc446Smrg # But if we don't then we get into trouble of one sort or another. 44312becc446Smrg # A longer-term fix would be to have automake use am__CC in this case, 44322becc446Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 44332becc446Smrg CC="$am_aux_dir/compile $CC" 44342becc446Smrgfi 44352becc446Smrgac_ext=c 44362becc446Smrgac_cpp='$CPP $CPPFLAGS' 44372becc446Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44382becc446Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44392becc446Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 44402becc446Smrg 44412becc446Smrg 44422c7c4e3dSmrgdepcc="$CC" am_compiler_list= 44432c7c4e3dSmrg 44443458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 44453458e6c2Smrgprintf %s "checking dependency style of $depcc... " >&6; } 44463458e6c2Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 44473458e6c2Smrgthen : 44483458e6c2Smrg printf %s "(cached) " >&6 4449c1e8faa6Smrgelse case e in #( 4450c1e8faa6Smrg e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 44512c7c4e3dSmrg # We make a subdir and do the tests there. Otherwise we can end up 44522c7c4e3dSmrg # making bogus files that we don't know about and never remove. For 44532c7c4e3dSmrg # instance it was reported that on HP-UX the gcc test will end up 44542becc446Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 44552becc446Smrg # in D". 44562becc446Smrg rm -rf conftest.dir 44572c7c4e3dSmrg mkdir conftest.dir 44582c7c4e3dSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 44592c7c4e3dSmrg # using a relative directory. 44602c7c4e3dSmrg cp "$am_depcomp" conftest.dir 44612c7c4e3dSmrg cd conftest.dir 44622c7c4e3dSmrg # We will build objects and dependencies in a subdirectory because 44632c7c4e3dSmrg # it helps to detect inapplicable dependency modes. For instance 44642c7c4e3dSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 44652c7c4e3dSmrg # side effect of compilation, but ICC will put the dependencies in 44662c7c4e3dSmrg # the current directory while Tru64 will put them in the object 44672c7c4e3dSmrg # directory. 44682c7c4e3dSmrg mkdir sub 44692c7c4e3dSmrg 44702c7c4e3dSmrg am_cv_CC_dependencies_compiler_type=none 44712c7c4e3dSmrg if test "$am_compiler_list" = ""; then 44722c7c4e3dSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 44732c7c4e3dSmrg fi 44748650bb69Smrg am__universal=false 44758650bb69Smrg case " $depcc " in #( 44768650bb69Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 44778650bb69Smrg esac 44788650bb69Smrg 44792c7c4e3dSmrg for depmode in $am_compiler_list; do 44802c7c4e3dSmrg # Setup a source with many dependencies, because some compilers 44812c7c4e3dSmrg # like to wrap large dependency lists on column 80 (with \), and 44822c7c4e3dSmrg # we should not choose a depcomp mode which is confused by this. 44832c7c4e3dSmrg # 44842c7c4e3dSmrg # We need to recreate these files for each test, as the compiler may 44852c7c4e3dSmrg # overwrite some of them when testing with obscure command lines. 44862c7c4e3dSmrg # This happens at least with the AIX C compiler. 44872c7c4e3dSmrg : > sub/conftest.c 44882c7c4e3dSmrg for i in 1 2 3 4 5 6; do 44892c7c4e3dSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 44902becc446Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 44912becc446Smrg # Solaris 10 /bin/sh. 44922becc446Smrg echo '/* dummy */' > sub/conftst$i.h 44932c7c4e3dSmrg done 44942c7c4e3dSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 44952c7c4e3dSmrg 44962becc446Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 44978650bb69Smrg # mode. It turns out that the SunPro C++ compiler does not properly 44982becc446Smrg # handle '-M -o', and we need to detect this. Also, some Intel 44992becc446Smrg # versions had trouble with output in subdirs. 45008650bb69Smrg am__obj=sub/conftest.${OBJEXT-o} 45018650bb69Smrg am__minus_obj="-o $am__obj" 45022c7c4e3dSmrg case $depmode in 45038650bb69Smrg gcc) 45048650bb69Smrg # This depmode causes a compiler race in universal mode. 45058650bb69Smrg test "$am__universal" = false || continue 45068650bb69Smrg ;; 45072c7c4e3dSmrg nosideeffect) 45082becc446Smrg # After this tag, mechanisms are not by side-effect, so they'll 45092becc446Smrg # only be used when explicitly requested. 45102c7c4e3dSmrg if test "x$enable_dependency_tracking" = xyes; then 45112c7c4e3dSmrg continue 45122c7c4e3dSmrg else 45132c7c4e3dSmrg break 45142c7c4e3dSmrg fi 45152c7c4e3dSmrg ;; 45162becc446Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 45172becc446Smrg # This compiler won't grok '-c -o', but also, the minuso test has 45188650bb69Smrg # not run yet. These depmodes are late enough in the game, and 45198650bb69Smrg # so weak that their functioning should not be impacted. 45208650bb69Smrg am__obj=conftest.${OBJEXT-o} 45218650bb69Smrg am__minus_obj= 45228650bb69Smrg ;; 45232c7c4e3dSmrg none) break ;; 45242c7c4e3dSmrg esac 45252c7c4e3dSmrg if depmode=$depmode \ 45268650bb69Smrg source=sub/conftest.c object=$am__obj \ 45272c7c4e3dSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 45288650bb69Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 45292c7c4e3dSmrg >/dev/null 2>conftest.err && 45308650bb69Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 45312c7c4e3dSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 45328650bb69Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 45333458e6c2Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 45343458e6c2Smrg # icc doesn't choke on unknown options, it will just issue warnings 45353458e6c2Smrg # or remarks (even with -Werror). So we grep stderr for any message 45363458e6c2Smrg # that says an option was ignored or not supported. 4537c1e8faa6Smrg # When given -MP, icc 7.0 and 7.1 complain thus: 45383458e6c2Smrg # icc: Command line warning: ignoring option '-M'; no argument required 45393458e6c2Smrg # The diagnosis changed in icc 8.0: 45403458e6c2Smrg # icc: Command line remark: option '-MP' not supported 45413458e6c2Smrg if (grep 'ignoring option' conftest.err || 45423458e6c2Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 45433458e6c2Smrg am_cv_CC_dependencies_compiler_type=$depmode 45443458e6c2Smrg break 45453458e6c2Smrg fi 45468650bb69Smrg fi 45478650bb69Smrg done 45488650bb69Smrg 45493458e6c2Smrg cd .. 45503458e6c2Smrg rm -rf conftest.dir 45518650bb69Smrgelse 45523458e6c2Smrg am_cv_CC_dependencies_compiler_type=none 45538650bb69Smrgfi 4554c1e8faa6Smrg ;; 4555c1e8faa6Smrgesac 45568650bb69Smrgfi 45573458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 45583458e6c2Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 45593458e6c2SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 45608650bb69Smrg 45613458e6c2Smrg if 45623458e6c2Smrg test "x$enable_dependency_tracking" != xno \ 45633458e6c2Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 45643458e6c2Smrg am__fastdepCC_TRUE= 45653458e6c2Smrg am__fastdepCC_FALSE='#' 45668650bb69Smrgelse 45673458e6c2Smrg am__fastdepCC_TRUE='#' 45683458e6c2Smrg am__fastdepCC_FALSE= 45698650bb69Smrgfi 45708650bb69Smrg 45718650bb69Smrg 45728650bb69Smrg 45733458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 45743458e6c2Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 45753458e6c2Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 45763458e6c2Smrgthen : 45773458e6c2Smrg printf %s "(cached) " >&6 4578c1e8faa6Smrgelse case e in #( 4579c1e8faa6Smrg e) ac_save_CFLAGS=$CFLAGS 45803458e6c2Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 45813458e6c2Smrg for ac_arg in '' -fno-builtin; do 45823458e6c2Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 45833458e6c2Smrg # This test program should *not* compile successfully. 45843458e6c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45858650bb69Smrg/* end confdefs.h. */ 45868650bb69Smrg 45878650bb69Smrgint 45883458e6c2Smrgmain (void) 45898650bb69Smrg{ 45903458e6c2Smrg(void) strchr; 45918650bb69Smrg ; 45928650bb69Smrg return 0; 45938650bb69Smrg} 45948650bb69Smrg_ACEOF 45953458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 45963458e6c2Smrgthen : 459716d7e2f1Smrg 4598c1e8faa6Smrgelse case e in #( 4599c1e8faa6Smrg e) # This test program should compile successfully. 46003458e6c2Smrg # No library function is consistently available on 46013458e6c2Smrg # freestanding implementations, so test against a dummy 46023458e6c2Smrg # declaration. Include always-available headers on the 46033458e6c2Smrg # off chance that they somehow elicit warnings. 46043458e6c2Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46058650bb69Smrg/* end confdefs.h. */ 46063458e6c2Smrg#include <float.h> 46073458e6c2Smrg#include <limits.h> 46083458e6c2Smrg#include <stdarg.h> 46093458e6c2Smrg#include <stddef.h> 46103458e6c2Smrgextern void ac_decl (int, char *); 46118650bb69Smrg 46128650bb69Smrgint 46133458e6c2Smrgmain (void) 46148650bb69Smrg{ 46153458e6c2Smrg(void) ac_decl (0, (char *) 0); 46163458e6c2Smrg (void) ac_decl; 46173458e6c2Smrg 46183458e6c2Smrg ; 46198650bb69Smrg return 0; 46208650bb69Smrg} 46218650bb69Smrg_ACEOF 46223458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 46233458e6c2Smrgthen : 46243458e6c2Smrg if test x"$ac_arg" = x 46253458e6c2Smrgthen : 46263458e6c2Smrg ac_cv_c_undeclared_builtin_options='none needed' 4627c1e8faa6Smrgelse case e in #( 4628c1e8faa6Smrg e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4629c1e8faa6Smrgesac 46308650bb69Smrgfi 46313458e6c2Smrg break 46328650bb69Smrgfi 4633c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4634c1e8faa6Smrgesac 46358650bb69Smrgfi 46363458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46373458e6c2Smrg done 46383458e6c2Smrg CFLAGS=$ac_save_CFLAGS 4639c1e8faa6Smrg ;; 4640c1e8faa6Smrgesac 46413458e6c2Smrgfi 46423458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 46433458e6c2Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 46443458e6c2Smrg case $ac_cv_c_undeclared_builtin_options in #( 46453458e6c2Smrg 'cannot detect') : 4646c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4647c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 46483458e6c2Smrgas_fn_error $? "cannot make $CC report undeclared builtins 4649c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #( 46503458e6c2Smrg 'none needed') : 46513458e6c2Smrg ac_c_undeclared_builtin_options='' ;; #( 46523458e6c2Smrg *) : 46533458e6c2Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 46543458e6c2Smrgesac 46553458e6c2Smrg 46563458e6c2Smrgac_header= ac_cache= 46573458e6c2Smrgfor ac_item in $ac_header_c_list 46583458e6c2Smrgdo 46593458e6c2Smrg if test $ac_cache; then 46603458e6c2Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 46613458e6c2Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 46623458e6c2Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 46633458e6c2Smrg fi 46643458e6c2Smrg ac_header= ac_cache= 46653458e6c2Smrg elif test $ac_header; then 46663458e6c2Smrg ac_cache=$ac_item 46673458e6c2Smrg else 46683458e6c2Smrg ac_header=$ac_item 46693458e6c2Smrg fi 46703458e6c2Smrgdone 46713458e6c2Smrg 46728650bb69Smrg 46738650bb69Smrg 46748650bb69Smrg 467516d7e2f1Smrg 467616d7e2f1Smrg 46778650bb69Smrg 46788650bb69Smrg 46793458e6c2Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 46803458e6c2Smrgthen : 46818650bb69Smrg 46823458e6c2Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 46833458e6c2Smrg 46843458e6c2Smrgfi 46858650bb69Smrg 46862becc446Smrg 46872becc446Smrg 46883458e6c2Smrg 46893458e6c2Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 46903458e6c2Smrgif test "x$ac_cv_have_decl___clang__" = xyes 46913458e6c2Smrgthen : 469216d7e2f1Smrg CLANGCC="yes" 4693c1e8faa6Smrgelse case e in #( 4694c1e8faa6Smrg e) CLANGCC="no" ;; 4695c1e8faa6Smrgesac 469616d7e2f1Smrgfi 46973458e6c2Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 46983458e6c2Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 46993458e6c2Smrgthen : 470016d7e2f1Smrg INTELCC="yes" 4701c1e8faa6Smrgelse case e in #( 4702c1e8faa6Smrg e) INTELCC="no" ;; 4703c1e8faa6Smrgesac 470416d7e2f1Smrgfi 47053458e6c2Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 47063458e6c2Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 47073458e6c2Smrgthen : 470816d7e2f1Smrg SUNCC="yes" 4709c1e8faa6Smrgelse case e in #( 4710c1e8faa6Smrg e) SUNCC="no" ;; 4711c1e8faa6Smrgesac 471216d7e2f1Smrgfi 47138650bb69Smrg 47148650bb69Smrg 47158650bb69Smrg 47168650bb69Smrg 47173458e6c2Smrg 47183458e6c2Smrg 47193458e6c2Smrg 47203458e6c2Smrg 472116d7e2f1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 472216d7e2f1Smrg if test -n "$ac_tool_prefix"; then 472316d7e2f1Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 472416d7e2f1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 47253458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47263458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 47273458e6c2Smrgif test ${ac_cv_path_PKG_CONFIG+y} 47283458e6c2Smrgthen : 47293458e6c2Smrg printf %s "(cached) " >&6 4730c1e8faa6Smrgelse case e in #( 4731c1e8faa6Smrg e) case $PKG_CONFIG in 473216d7e2f1Smrg [\\/]* | ?:[\\/]*) 473316d7e2f1Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 473416d7e2f1Smrg ;; 473516d7e2f1Smrg *) 473616d7e2f1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 473716d7e2f1Smrgfor as_dir in $PATH 473816d7e2f1Smrgdo 473916d7e2f1Smrg IFS=$as_save_IFS 47403458e6c2Smrg case $as_dir in #((( 47413458e6c2Smrg '') as_dir=./ ;; 47423458e6c2Smrg */) ;; 47433458e6c2Smrg *) as_dir=$as_dir/ ;; 47443458e6c2Smrg esac 474516d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47463458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 47473458e6c2Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 47483458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 474916d7e2f1Smrg break 2 475016d7e2f1Smrg fi 475116d7e2f1Smrgdone 475216d7e2f1Smrg done 475316d7e2f1SmrgIFS=$as_save_IFS 47548650bb69Smrg 475516d7e2f1Smrg ;; 4756c1e8faa6Smrgesac ;; 47578650bb69Smrgesac 475816d7e2f1Smrgfi 475916d7e2f1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 476016d7e2f1Smrgif test -n "$PKG_CONFIG"; then 47613458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 47623458e6c2Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 47638650bb69Smrgelse 47643458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 47653458e6c2Smrgprintf "%s\n" "no" >&6; } 476616d7e2f1Smrgfi 476716d7e2f1Smrg 47688650bb69Smrg 47698650bb69Smrgfi 477016d7e2f1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 477116d7e2f1Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 477216d7e2f1Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 477316d7e2f1Smrgset dummy pkg-config; ac_word=$2 47743458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47753458e6c2Smrgprintf %s "checking for $ac_word... " >&6; } 47763458e6c2Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 47773458e6c2Smrgthen : 47783458e6c2Smrg printf %s "(cached) " >&6 4779c1e8faa6Smrgelse case e in #( 4780c1e8faa6Smrg e) case $ac_pt_PKG_CONFIG in 478116d7e2f1Smrg [\\/]* | ?:[\\/]*) 478216d7e2f1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 478316d7e2f1Smrg ;; 478416d7e2f1Smrg *) 478516d7e2f1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 478616d7e2f1Smrgfor as_dir in $PATH 478716d7e2f1Smrgdo 478816d7e2f1Smrg IFS=$as_save_IFS 47893458e6c2Smrg case $as_dir in #((( 47903458e6c2Smrg '') as_dir=./ ;; 47913458e6c2Smrg */) ;; 47923458e6c2Smrg *) as_dir=$as_dir/ ;; 47933458e6c2Smrg esac 479416d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47953458e6c2Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 47963458e6c2Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 47973458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 479816d7e2f1Smrg break 2 479916d7e2f1Smrg fi 480016d7e2f1Smrgdone 480116d7e2f1Smrg done 480216d7e2f1SmrgIFS=$as_save_IFS 48038650bb69Smrg 480416d7e2f1Smrg ;; 4805c1e8faa6Smrgesac ;; 480616d7e2f1Smrgesac 480716d7e2f1Smrgfi 480816d7e2f1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 480916d7e2f1Smrgif test -n "$ac_pt_PKG_CONFIG"; then 48103458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 48113458e6c2Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 481216d7e2f1Smrgelse 48133458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48143458e6c2Smrgprintf "%s\n" "no" >&6; } 48158650bb69Smrgfi 48168650bb69Smrg 481716d7e2f1Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 481816d7e2f1Smrg PKG_CONFIG="" 481916d7e2f1Smrg else 482016d7e2f1Smrg case $cross_compiling:$ac_tool_warned in 482116d7e2f1Smrgyes:) 48223458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 48233458e6c2Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 482416d7e2f1Smrgac_tool_warned=yes ;; 482516d7e2f1Smrgesac 482616d7e2f1Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 482716d7e2f1Smrg fi 482816d7e2f1Smrgelse 482916d7e2f1Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 48308650bb69Smrgfi 48318650bb69Smrg 483216d7e2f1Smrgfi 483316d7e2f1Smrgif test -n "$PKG_CONFIG"; then 483416d7e2f1Smrg _pkg_min_version=0.9.0 48353458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 48363458e6c2Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 483716d7e2f1Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 48383458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48393458e6c2Smrgprintf "%s\n" "yes" >&6; } 484016d7e2f1Smrg else 48413458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48423458e6c2Smrgprintf "%s\n" "no" >&6; } 484316d7e2f1Smrg PKG_CONFIG="" 484416d7e2f1Smrg fi 484516d7e2f1Smrgfi 48468650bb69Smrg 48473458e6c2Smrg 48483458e6c2Smrg # Make sure we can run config.sub. 48493458e6c2Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 48503458e6c2Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 48513458e6c2Smrg 48523458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 48533458e6c2Smrgprintf %s "checking build system type... " >&6; } 48543458e6c2Smrgif test ${ac_cv_build+y} 48553458e6c2Smrgthen : 48563458e6c2Smrg printf %s "(cached) " >&6 4857c1e8faa6Smrgelse case e in #( 4858c1e8faa6Smrg e) ac_build_alias=$build_alias 485916d7e2f1Smrgtest "x$ac_build_alias" = x && 48603458e6c2Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 486116d7e2f1Smrgtest "x$ac_build_alias" = x && 486216d7e2f1Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 48633458e6c2Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 48643458e6c2Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4865c1e8faa6Smrg ;; 4866c1e8faa6Smrgesac 486716d7e2f1Smrgfi 48683458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 48693458e6c2Smrgprintf "%s\n" "$ac_cv_build" >&6; } 487016d7e2f1Smrgcase $ac_cv_build in 487116d7e2f1Smrg*-*-*) ;; 487216d7e2f1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 487316d7e2f1Smrgesac 487416d7e2f1Smrgbuild=$ac_cv_build 487516d7e2f1Smrgac_save_IFS=$IFS; IFS='-' 487616d7e2f1Smrgset x $ac_cv_build 487716d7e2f1Smrgshift 487816d7e2f1Smrgbuild_cpu=$1 487916d7e2f1Smrgbuild_vendor=$2 488016d7e2f1Smrgshift; shift 488116d7e2f1Smrg# Remember, the first character of IFS is used to create $*, 488216d7e2f1Smrg# except with old shells: 488316d7e2f1Smrgbuild_os=$* 488416d7e2f1SmrgIFS=$ac_save_IFS 488516d7e2f1Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 48868650bb69Smrg 48878650bb69Smrg 48883458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 48893458e6c2Smrgprintf %s "checking host system type... " >&6; } 48903458e6c2Smrgif test ${ac_cv_host+y} 48913458e6c2Smrgthen : 48923458e6c2Smrg printf %s "(cached) " >&6 4893c1e8faa6Smrgelse case e in #( 4894c1e8faa6Smrg e) if test "x$host_alias" = x; then 489516d7e2f1Smrg ac_cv_host=$ac_cv_build 489616d7e2f1Smrgelse 48973458e6c2Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 48983458e6c2Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 489916d7e2f1Smrgfi 4900c1e8faa6Smrg ;; 4901c1e8faa6Smrgesac 490216d7e2f1Smrgfi 49033458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 49043458e6c2Smrgprintf "%s\n" "$ac_cv_host" >&6; } 490516d7e2f1Smrgcase $ac_cv_host in 490616d7e2f1Smrg*-*-*) ;; 490716d7e2f1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 490816d7e2f1Smrgesac 490916d7e2f1Smrghost=$ac_cv_host 491016d7e2f1Smrgac_save_IFS=$IFS; IFS='-' 491116d7e2f1Smrgset x $ac_cv_host 491216d7e2f1Smrgshift 491316d7e2f1Smrghost_cpu=$1 491416d7e2f1Smrghost_vendor=$2 491516d7e2f1Smrgshift; shift 491616d7e2f1Smrg# Remember, the first character of IFS is used to create $*, 491716d7e2f1Smrg# except with old shells: 491816d7e2f1Smrghost_os=$* 491916d7e2f1SmrgIFS=$ac_save_IFS 492016d7e2f1Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 492116d7e2f1Smrg 492216d7e2f1Smrg 49233458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 49243458e6c2Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 49253458e6c2Smrgif test ${ac_cv_path_SED+y} 49263458e6c2Smrgthen : 49273458e6c2Smrg printf %s "(cached) " >&6 4928c1e8faa6Smrgelse case e in #( 4929c1e8faa6Smrg e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 493016d7e2f1Smrg for ac_i in 1 2 3 4 5 6 7; do 493116d7e2f1Smrg ac_script="$ac_script$as_nl$ac_script" 493216d7e2f1Smrg done 493316d7e2f1Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 493416d7e2f1Smrg { ac_script=; unset ac_script;} 493516d7e2f1Smrg if test -z "$SED"; then 493616d7e2f1Smrg ac_path_SED_found=false 493716d7e2f1Smrg # Loop through the user's path and test for each of PROGNAME-LIST 493816d7e2f1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 493916d7e2f1Smrgfor as_dir in $PATH 494016d7e2f1Smrgdo 494116d7e2f1Smrg IFS=$as_save_IFS 49423458e6c2Smrg case $as_dir in #((( 49433458e6c2Smrg '') as_dir=./ ;; 49443458e6c2Smrg */) ;; 49453458e6c2Smrg *) as_dir=$as_dir/ ;; 49463458e6c2Smrg esac 49473458e6c2Smrg for ac_prog in sed gsed 49483458e6c2Smrg do 494916d7e2f1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 49503458e6c2Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 49512becc446Smrg as_fn_executable_p "$ac_path_SED" || continue 495216d7e2f1Smrg# Check for GNU ac_path_SED and select it if it is found. 495316d7e2f1Smrg # Check for GNU $ac_path_SED 4954c1e8faa6Smrgcase `"$ac_path_SED" --version 2>&1` in #( 495516d7e2f1Smrg*GNU*) 495616d7e2f1Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4957c1e8faa6Smrg#( 495816d7e2f1Smrg*) 495916d7e2f1Smrg ac_count=0 49603458e6c2Smrg printf %s 0123456789 >"conftest.in" 496116d7e2f1Smrg while : 496216d7e2f1Smrg do 496316d7e2f1Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 496416d7e2f1Smrg mv "conftest.tmp" "conftest.in" 496516d7e2f1Smrg cp "conftest.in" "conftest.nl" 49663458e6c2Smrg printf "%s\n" '' >> "conftest.nl" 496716d7e2f1Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 496816d7e2f1Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 496916d7e2f1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 497016d7e2f1Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 497116d7e2f1Smrg # Best one so far, save it but keep looking for a better one 497216d7e2f1Smrg ac_cv_path_SED="$ac_path_SED" 497316d7e2f1Smrg ac_path_SED_max=$ac_count 497416d7e2f1Smrg fi 497516d7e2f1Smrg # 10*(2^10) chars as input seems more than enough 497616d7e2f1Smrg test $ac_count -gt 10 && break 497716d7e2f1Smrg done 497816d7e2f1Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 497916d7e2f1Smrgesac 498016d7e2f1Smrg 498116d7e2f1Smrg $ac_path_SED_found && break 3 498216d7e2f1Smrg done 498316d7e2f1Smrg done 498416d7e2f1Smrg done 498516d7e2f1SmrgIFS=$as_save_IFS 498616d7e2f1Smrg if test -z "$ac_cv_path_SED"; then 498716d7e2f1Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 498816d7e2f1Smrg fi 498916d7e2f1Smrgelse 499016d7e2f1Smrg ac_cv_path_SED=$SED 499116d7e2f1Smrgfi 4992c1e8faa6Smrg ;; 4993c1e8faa6Smrgesac 499416d7e2f1Smrgfi 49953458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 49963458e6c2Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 499716d7e2f1Smrg SED="$ac_cv_path_SED" 499816d7e2f1Smrg rm -f conftest.sed 499916d7e2f1Smrg 500016d7e2f1Smrg 500116d7e2f1Smrg 500216d7e2f1Smrg 500316d7e2f1Smrg 500416d7e2f1Smrg 500516d7e2f1Smrg# Check whether --enable-selective-werror was given. 50063458e6c2Smrgif test ${enable_selective_werror+y} 50073458e6c2Smrgthen : 500816d7e2f1Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5009c1e8faa6Smrgelse case e in #( 5010c1e8faa6Smrg e) SELECTIVE_WERROR=yes ;; 5011c1e8faa6Smrgesac 501216d7e2f1Smrgfi 501316d7e2f1Smrg 501416d7e2f1Smrg 50152becc446Smrg 50162becc446Smrg 50172becc446Smrg 501816d7e2f1Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 501916d7e2f1Smrgif test "x$SUNCC" = "xyes"; then 502016d7e2f1Smrg BASE_CFLAGS="-v" 502116d7e2f1Smrgelse 502216d7e2f1Smrg BASE_CFLAGS="" 502316d7e2f1Smrgfi 502416d7e2f1Smrg 502516d7e2f1Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 502616d7e2f1Smrg 502716d7e2f1Smrg 502816d7e2f1Smrg 502916d7e2f1Smrg 503016d7e2f1Smrg 50312becc446Smrg 50322becc446Smrg 50332becc446Smrg 50342becc446Smrg 50352becc446Smrg 50362becc446Smrg 50372becc446Smrg 50382becc446Smrg 503916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 504016d7e2f1Smrg 50412becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 504216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50433458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50443458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50453458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50463458e6c2Smrgthen : 50473458e6c2Smrg printf %s "(cached) " >&6 5048c1e8faa6Smrgelse case e in #( 5049c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 505016d7e2f1Smrg/* end confdefs.h. */ 505116d7e2f1Smrgint i; 505216d7e2f1Smrg_ACEOF 50533458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 50543458e6c2Smrgthen : 505516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5056c1e8faa6Smrgelse case e in #( 5057c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5058c1e8faa6Smrgesac 505916d7e2f1Smrgfi 5060c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5061c1e8faa6Smrgesac 506216d7e2f1Smrgfi 50633458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50643458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50652becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 506616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 506716d7e2f1Smrgfi 506816d7e2f1Smrg 50692becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50702becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 507116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 507216d7e2f1Smrg fi 507316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50743458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50753458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50763458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 50773458e6c2Smrgthen : 50783458e6c2Smrg printf %s "(cached) " >&6 5079c1e8faa6Smrgelse case e in #( 5080c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508116d7e2f1Smrg/* end confdefs.h. */ 508216d7e2f1Smrgint i; 508316d7e2f1Smrg_ACEOF 50843458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 50853458e6c2Smrgthen : 508616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5087c1e8faa6Smrgelse case e in #( 5088c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5089c1e8faa6Smrgesac 509016d7e2f1Smrgfi 5091c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5092c1e8faa6Smrgesac 509316d7e2f1Smrgfi 50943458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50953458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50962becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 509716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 509816d7e2f1Smrgfi 509916d7e2f1Smrg 510016d7e2f1Smrgfound="no" 510116d7e2f1Smrg 510216d7e2f1Smrg if test $found = "no" ; then 51032becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 510416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 510516d7e2f1Smrg fi 510616d7e2f1Smrg 51072becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 510816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 510916d7e2f1Smrg fi 511016d7e2f1Smrg 511116d7e2f1Smrg CFLAGS="$CFLAGS -Wall" 511216d7e2f1Smrg 51133458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 51143458e6c2Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 51152becc446Smrg cacheid=xorg_cv_cc_flag__Wall 51163458e6c2Smrg if eval test \${$cacheid+y} 51173458e6c2Smrgthen : 51183458e6c2Smrg printf %s "(cached) " >&6 5119c1e8faa6Smrgelse case e in #( 5120c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 512116d7e2f1Smrg/* end confdefs.h. */ 512216d7e2f1Smrgint i; 512316d7e2f1Smrgint 51243458e6c2Smrgmain (void) 512516d7e2f1Smrg{ 512616d7e2f1Smrg 512716d7e2f1Smrg ; 512816d7e2f1Smrg return 0; 512916d7e2f1Smrg} 513016d7e2f1Smrg_ACEOF 51313458e6c2Smrgif ac_fn_c_try_link "$LINENO" 51323458e6c2Smrgthen : 51332becc446Smrg eval $cacheid=yes 5134c1e8faa6Smrgelse case e in #( 5135c1e8faa6Smrg e) eval $cacheid=no ;; 5136c1e8faa6Smrgesac 513716d7e2f1Smrgfi 51383458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5139c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5140c1e8faa6Smrgesac 514116d7e2f1Smrgfi 514216d7e2f1Smrg 514316d7e2f1Smrg 514416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 514516d7e2f1Smrg 51462becc446Smrg eval supported=\$$cacheid 51473458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51483458e6c2Smrgprintf "%s\n" "$supported" >&6; } 514916d7e2f1Smrg if test "$supported" = "yes" ; then 515016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 515116d7e2f1Smrg found="yes" 515216d7e2f1Smrg fi 515316d7e2f1Smrg fi 515416d7e2f1Smrg 515516d7e2f1Smrg 515616d7e2f1Smrg 515716d7e2f1Smrg 515816d7e2f1Smrg 515916d7e2f1Smrg 516016d7e2f1Smrg 51612becc446Smrg 51622becc446Smrg 51632becc446Smrg 51642becc446Smrg 51652becc446Smrg 51662becc446Smrg 51672becc446Smrg 51682becc446Smrg 516916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 517016d7e2f1Smrg 51712becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 517216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51733458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51743458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51753458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 51763458e6c2Smrgthen : 51773458e6c2Smrg printf %s "(cached) " >&6 5178c1e8faa6Smrgelse case e in #( 5179c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 518016d7e2f1Smrg/* end confdefs.h. */ 518116d7e2f1Smrgint i; 518216d7e2f1Smrg_ACEOF 51833458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 51843458e6c2Smrgthen : 518516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5186c1e8faa6Smrgelse case e in #( 5187c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5188c1e8faa6Smrgesac 518916d7e2f1Smrgfi 5190c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5191c1e8faa6Smrgesac 519216d7e2f1Smrgfi 51933458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51943458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51952becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 519616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 519716d7e2f1Smrgfi 519816d7e2f1Smrg 51992becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52002becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 520116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 520216d7e2f1Smrg fi 520316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52043458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52053458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52063458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52073458e6c2Smrgthen : 52083458e6c2Smrg printf %s "(cached) " >&6 5209c1e8faa6Smrgelse case e in #( 5210c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 521116d7e2f1Smrg/* end confdefs.h. */ 521216d7e2f1Smrgint i; 521316d7e2f1Smrg_ACEOF 52143458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 52153458e6c2Smrgthen : 521616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5217c1e8faa6Smrgelse case e in #( 5218c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5219c1e8faa6Smrgesac 522016d7e2f1Smrgfi 5221c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5222c1e8faa6Smrgesac 522316d7e2f1Smrgfi 52243458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52253458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 52262becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 522716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 522816d7e2f1Smrgfi 522916d7e2f1Smrg 523016d7e2f1Smrgfound="no" 523116d7e2f1Smrg 523216d7e2f1Smrg if test $found = "no" ; then 52332becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 523416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 523516d7e2f1Smrg fi 523616d7e2f1Smrg 52372becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 523816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 523916d7e2f1Smrg fi 524016d7e2f1Smrg 524116d7e2f1Smrg CFLAGS="$CFLAGS -Wpointer-arith" 524216d7e2f1Smrg 52433458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 52443458e6c2Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 52452becc446Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 52463458e6c2Smrg if eval test \${$cacheid+y} 52473458e6c2Smrgthen : 52483458e6c2Smrg printf %s "(cached) " >&6 5249c1e8faa6Smrgelse case e in #( 5250c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525116d7e2f1Smrg/* end confdefs.h. */ 525216d7e2f1Smrgint i; 525316d7e2f1Smrgint 52543458e6c2Smrgmain (void) 525516d7e2f1Smrg{ 525616d7e2f1Smrg 525716d7e2f1Smrg ; 525816d7e2f1Smrg return 0; 525916d7e2f1Smrg} 526016d7e2f1Smrg_ACEOF 52613458e6c2Smrgif ac_fn_c_try_link "$LINENO" 52623458e6c2Smrgthen : 52632becc446Smrg eval $cacheid=yes 5264c1e8faa6Smrgelse case e in #( 5265c1e8faa6Smrg e) eval $cacheid=no ;; 5266c1e8faa6Smrgesac 526716d7e2f1Smrgfi 52683458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5269c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5270c1e8faa6Smrgesac 527116d7e2f1Smrgfi 527216d7e2f1Smrg 527316d7e2f1Smrg 527416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 527516d7e2f1Smrg 52762becc446Smrg eval supported=\$$cacheid 52773458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52783458e6c2Smrgprintf "%s\n" "$supported" >&6; } 527916d7e2f1Smrg if test "$supported" = "yes" ; then 528016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 528116d7e2f1Smrg found="yes" 528216d7e2f1Smrg fi 528316d7e2f1Smrg fi 528416d7e2f1Smrg 528516d7e2f1Smrg 528616d7e2f1Smrg 528716d7e2f1Smrg 528816d7e2f1Smrg 528916d7e2f1Smrg 529016d7e2f1Smrg 52912becc446Smrg 52922becc446Smrg 52932becc446Smrg 52942becc446Smrg 52952becc446Smrg 52962becc446Smrg 52972becc446Smrg 52982becc446Smrg 529916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 530016d7e2f1Smrg 53012becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 530216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53033458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53043458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53053458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 53063458e6c2Smrgthen : 53073458e6c2Smrg printf %s "(cached) " >&6 5308c1e8faa6Smrgelse case e in #( 5309c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 531016d7e2f1Smrg/* end confdefs.h. */ 531116d7e2f1Smrgint i; 531216d7e2f1Smrg_ACEOF 53133458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 53143458e6c2Smrgthen : 531516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5316c1e8faa6Smrgelse case e in #( 5317c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5318c1e8faa6Smrgesac 531916d7e2f1Smrgfi 5320c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5321c1e8faa6Smrgesac 532216d7e2f1Smrgfi 53233458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53243458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53252becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 532616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 532716d7e2f1Smrgfi 532816d7e2f1Smrg 53292becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53302becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 533116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 533216d7e2f1Smrg fi 533316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53343458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53353458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53363458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 53373458e6c2Smrgthen : 53383458e6c2Smrg printf %s "(cached) " >&6 5339c1e8faa6Smrgelse case e in #( 5340c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 534116d7e2f1Smrg/* end confdefs.h. */ 534216d7e2f1Smrgint i; 534316d7e2f1Smrg_ACEOF 53443458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 53453458e6c2Smrgthen : 534616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5347c1e8faa6Smrgelse case e in #( 5348c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5349c1e8faa6Smrgesac 535016d7e2f1Smrgfi 5351c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5352c1e8faa6Smrgesac 535316d7e2f1Smrgfi 53543458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53553458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53562becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 535716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 535816d7e2f1Smrgfi 535916d7e2f1Smrg 536016d7e2f1Smrgfound="no" 536116d7e2f1Smrg 536216d7e2f1Smrg if test $found = "no" ; then 53632becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 536416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 536516d7e2f1Smrg fi 536616d7e2f1Smrg 53672becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 536816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 536916d7e2f1Smrg fi 537016d7e2f1Smrg 53712becc446Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 537216d7e2f1Smrg 53733458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 53743458e6c2Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 53752becc446Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 53763458e6c2Smrg if eval test \${$cacheid+y} 53773458e6c2Smrgthen : 53783458e6c2Smrg printf %s "(cached) " >&6 5379c1e8faa6Smrgelse case e in #( 5380c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 538116d7e2f1Smrg/* end confdefs.h. */ 538216d7e2f1Smrgint i; 538316d7e2f1Smrgint 53843458e6c2Smrgmain (void) 538516d7e2f1Smrg{ 538616d7e2f1Smrg 538716d7e2f1Smrg ; 538816d7e2f1Smrg return 0; 538916d7e2f1Smrg} 539016d7e2f1Smrg_ACEOF 53913458e6c2Smrgif ac_fn_c_try_link "$LINENO" 53923458e6c2Smrgthen : 53932becc446Smrg eval $cacheid=yes 5394c1e8faa6Smrgelse case e in #( 5395c1e8faa6Smrg e) eval $cacheid=no ;; 5396c1e8faa6Smrgesac 539716d7e2f1Smrgfi 53983458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5399c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5400c1e8faa6Smrgesac 540116d7e2f1Smrgfi 540216d7e2f1Smrg 540316d7e2f1Smrg 540416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 540516d7e2f1Smrg 54062becc446Smrg eval supported=\$$cacheid 54073458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54083458e6c2Smrgprintf "%s\n" "$supported" >&6; } 540916d7e2f1Smrg if test "$supported" = "yes" ; then 54102becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 541116d7e2f1Smrg found="yes" 541216d7e2f1Smrg fi 541316d7e2f1Smrg fi 541416d7e2f1Smrg 541516d7e2f1Smrg 541616d7e2f1Smrg 541716d7e2f1Smrg 541816d7e2f1Smrg 541916d7e2f1Smrg 542016d7e2f1Smrg 54212becc446Smrg 54222becc446Smrg 54232becc446Smrg 54242becc446Smrg 54252becc446Smrg 54262becc446Smrg 54272becc446Smrg 54282becc446Smrg 542916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 543016d7e2f1Smrg 54312becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 543216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54333458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54343458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54353458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 54363458e6c2Smrgthen : 54373458e6c2Smrg printf %s "(cached) " >&6 5438c1e8faa6Smrgelse case e in #( 5439c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 544016d7e2f1Smrg/* end confdefs.h. */ 544116d7e2f1Smrgint i; 544216d7e2f1Smrg_ACEOF 54433458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 54443458e6c2Smrgthen : 544516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5446c1e8faa6Smrgelse case e in #( 5447c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5448c1e8faa6Smrgesac 544916d7e2f1Smrgfi 5450c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5451c1e8faa6Smrgesac 545216d7e2f1Smrgfi 54533458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54543458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54552becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 545616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 545716d7e2f1Smrgfi 545816d7e2f1Smrg 54592becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54602becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 546116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 546216d7e2f1Smrg fi 546316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54643458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54653458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54663458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54673458e6c2Smrgthen : 54683458e6c2Smrg printf %s "(cached) " >&6 5469c1e8faa6Smrgelse case e in #( 5470c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 547116d7e2f1Smrg/* end confdefs.h. */ 547216d7e2f1Smrgint i; 547316d7e2f1Smrg_ACEOF 54743458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 54753458e6c2Smrgthen : 547616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5477c1e8faa6Smrgelse case e in #( 5478c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5479c1e8faa6Smrgesac 548016d7e2f1Smrgfi 5481c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5482c1e8faa6Smrgesac 548316d7e2f1Smrgfi 54843458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54853458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54862becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 548716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 548816d7e2f1Smrgfi 548916d7e2f1Smrg 549016d7e2f1Smrgfound="no" 549116d7e2f1Smrg 549216d7e2f1Smrg if test $found = "no" ; then 54932becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 549416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 549516d7e2f1Smrg fi 549616d7e2f1Smrg 54972becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 549816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 549916d7e2f1Smrg fi 550016d7e2f1Smrg 55012becc446Smrg CFLAGS="$CFLAGS -Wformat=2" 550216d7e2f1Smrg 55033458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 55043458e6c2Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 55052becc446Smrg cacheid=xorg_cv_cc_flag__Wformat_2 55063458e6c2Smrg if eval test \${$cacheid+y} 55073458e6c2Smrgthen : 55083458e6c2Smrg printf %s "(cached) " >&6 5509c1e8faa6Smrgelse case e in #( 5510c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 551116d7e2f1Smrg/* end confdefs.h. */ 551216d7e2f1Smrgint i; 551316d7e2f1Smrgint 55143458e6c2Smrgmain (void) 551516d7e2f1Smrg{ 551616d7e2f1Smrg 551716d7e2f1Smrg ; 551816d7e2f1Smrg return 0; 551916d7e2f1Smrg} 552016d7e2f1Smrg_ACEOF 55213458e6c2Smrgif ac_fn_c_try_link "$LINENO" 55223458e6c2Smrgthen : 55232becc446Smrg eval $cacheid=yes 5524c1e8faa6Smrgelse case e in #( 5525c1e8faa6Smrg e) eval $cacheid=no ;; 5526c1e8faa6Smrgesac 552716d7e2f1Smrgfi 55283458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5529c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5530c1e8faa6Smrgesac 553116d7e2f1Smrgfi 553216d7e2f1Smrg 553316d7e2f1Smrg 553416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 553516d7e2f1Smrg 55362becc446Smrg eval supported=\$$cacheid 55373458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55383458e6c2Smrgprintf "%s\n" "$supported" >&6; } 553916d7e2f1Smrg if test "$supported" = "yes" ; then 55402becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 55412becc446Smrg found="yes" 55422becc446Smrg fi 55432becc446Smrg fi 55442becc446Smrg 55452becc446Smrg if test $found = "no" ; then 55462becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55472becc446Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55482becc446Smrg fi 55492becc446Smrg 55502becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 55512becc446Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55522becc446Smrg fi 55532becc446Smrg 55542becc446Smrg CFLAGS="$CFLAGS -Wformat" 55552becc446Smrg 55563458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 55573458e6c2Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 55582becc446Smrg cacheid=xorg_cv_cc_flag__Wformat 55593458e6c2Smrg if eval test \${$cacheid+y} 55603458e6c2Smrgthen : 55613458e6c2Smrg printf %s "(cached) " >&6 5562c1e8faa6Smrgelse case e in #( 5563c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55642becc446Smrg/* end confdefs.h. */ 55652becc446Smrgint i; 55662becc446Smrgint 55673458e6c2Smrgmain (void) 55682becc446Smrg{ 55692becc446Smrg 55702becc446Smrg ; 55712becc446Smrg return 0; 55722becc446Smrg} 55732becc446Smrg_ACEOF 55743458e6c2Smrgif ac_fn_c_try_link "$LINENO" 55753458e6c2Smrgthen : 55762becc446Smrg eval $cacheid=yes 5577c1e8faa6Smrgelse case e in #( 5578c1e8faa6Smrg e) eval $cacheid=no ;; 5579c1e8faa6Smrgesac 55802becc446Smrgfi 55813458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5582c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5583c1e8faa6Smrgesac 55842becc446Smrgfi 55852becc446Smrg 55862becc446Smrg 55872becc446Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55882becc446Smrg 55892becc446Smrg eval supported=\$$cacheid 55903458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55913458e6c2Smrgprintf "%s\n" "$supported" >&6; } 55922becc446Smrg if test "$supported" = "yes" ; then 55932becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 559416d7e2f1Smrg found="yes" 559516d7e2f1Smrg fi 559616d7e2f1Smrg fi 559716d7e2f1Smrg 559816d7e2f1Smrg 559916d7e2f1Smrg 560016d7e2f1Smrg 560116d7e2f1Smrg 560216d7e2f1Smrg 560316d7e2f1Smrg 56042becc446Smrg 56052becc446Smrg 56062becc446Smrg 56072becc446Smrg 56082becc446Smrg 56092becc446Smrg 56102becc446Smrg 56112becc446Smrg 56122becc446Smrg 56132becc446Smrg 561416d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 561516d7e2f1Smrg 56162becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 561716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56183458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56193458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56203458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56213458e6c2Smrgthen : 56223458e6c2Smrg printf %s "(cached) " >&6 5623c1e8faa6Smrgelse case e in #( 5624c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 562516d7e2f1Smrg/* end confdefs.h. */ 562616d7e2f1Smrgint i; 562716d7e2f1Smrg_ACEOF 56283458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 56293458e6c2Smrgthen : 563016d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5631c1e8faa6Smrgelse case e in #( 5632c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5633c1e8faa6Smrgesac 563416d7e2f1Smrgfi 5635c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5636c1e8faa6Smrgesac 563716d7e2f1Smrgfi 56383458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56393458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56402becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 564116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 564216d7e2f1Smrgfi 564316d7e2f1Smrg 56442becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56452becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 564616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 564716d7e2f1Smrg fi 564816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56493458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56503458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56513458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 56523458e6c2Smrgthen : 56533458e6c2Smrg printf %s "(cached) " >&6 5654c1e8faa6Smrgelse case e in #( 5655c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 565616d7e2f1Smrg/* end confdefs.h. */ 565716d7e2f1Smrgint i; 565816d7e2f1Smrg_ACEOF 56593458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 56603458e6c2Smrgthen : 566116d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5662c1e8faa6Smrgelse case e in #( 5663c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5664c1e8faa6Smrgesac 566516d7e2f1Smrgfi 5666c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5667c1e8faa6Smrgesac 566816d7e2f1Smrgfi 56693458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56703458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56712becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 567216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 567316d7e2f1Smrgfi 567416d7e2f1Smrg 567516d7e2f1Smrgfound="no" 567616d7e2f1Smrg 567716d7e2f1Smrg if test $found = "no" ; then 56782becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 567916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 568016d7e2f1Smrg fi 568116d7e2f1Smrg 56822becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 568316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 568416d7e2f1Smrg fi 568516d7e2f1Smrg 56862becc446Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 568716d7e2f1Smrg 56883458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 56893458e6c2Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 56902becc446Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 56913458e6c2Smrg if eval test \${$cacheid+y} 56923458e6c2Smrgthen : 56933458e6c2Smrg printf %s "(cached) " >&6 5694c1e8faa6Smrgelse case e in #( 5695c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 569616d7e2f1Smrg/* end confdefs.h. */ 569716d7e2f1Smrgint i; 569816d7e2f1Smrgint 56993458e6c2Smrgmain (void) 570016d7e2f1Smrg{ 570116d7e2f1Smrg 570216d7e2f1Smrg ; 570316d7e2f1Smrg return 0; 570416d7e2f1Smrg} 570516d7e2f1Smrg_ACEOF 57063458e6c2Smrgif ac_fn_c_try_link "$LINENO" 57073458e6c2Smrgthen : 57082becc446Smrg eval $cacheid=yes 5709c1e8faa6Smrgelse case e in #( 5710c1e8faa6Smrg e) eval $cacheid=no ;; 5711c1e8faa6Smrgesac 571216d7e2f1Smrgfi 57133458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5714c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5715c1e8faa6Smrgesac 571616d7e2f1Smrgfi 571716d7e2f1Smrg 571816d7e2f1Smrg 571916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 572016d7e2f1Smrg 57212becc446Smrg eval supported=\$$cacheid 57223458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57233458e6c2Smrgprintf "%s\n" "$supported" >&6; } 572416d7e2f1Smrg if test "$supported" = "yes" ; then 57252becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 572616d7e2f1Smrg found="yes" 572716d7e2f1Smrg fi 572816d7e2f1Smrg fi 572916d7e2f1Smrg 573016d7e2f1Smrg 573116d7e2f1Smrg 573216d7e2f1Smrg 573316d7e2f1Smrg 573416d7e2f1Smrg 573516d7e2f1Smrg 57362becc446Smrg 57372becc446Smrg 57382becc446Smrg 57392becc446Smrg 57402becc446Smrg 57412becc446Smrg 57422becc446Smrg 57432becc446Smrg 574416d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 574516d7e2f1Smrg 57462becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 574716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57483458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57493458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57503458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 57513458e6c2Smrgthen : 57523458e6c2Smrg printf %s "(cached) " >&6 5753c1e8faa6Smrgelse case e in #( 5754c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 575516d7e2f1Smrg/* end confdefs.h. */ 575616d7e2f1Smrgint i; 575716d7e2f1Smrg_ACEOF 57583458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 57593458e6c2Smrgthen : 576016d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5761c1e8faa6Smrgelse case e in #( 5762c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5763c1e8faa6Smrgesac 576416d7e2f1Smrgfi 5765c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5766c1e8faa6Smrgesac 576716d7e2f1Smrgfi 57683458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57693458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57702becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 577116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 577216d7e2f1Smrgfi 577316d7e2f1Smrg 57742becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57752becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 577616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 577716d7e2f1Smrg fi 577816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57793458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57803458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57813458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57823458e6c2Smrgthen : 57833458e6c2Smrg printf %s "(cached) " >&6 5784c1e8faa6Smrgelse case e in #( 5785c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 578616d7e2f1Smrg/* end confdefs.h. */ 578716d7e2f1Smrgint i; 578816d7e2f1Smrg_ACEOF 57893458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 57903458e6c2Smrgthen : 579116d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5792c1e8faa6Smrgelse case e in #( 5793c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5794c1e8faa6Smrgesac 579516d7e2f1Smrgfi 5796c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5797c1e8faa6Smrgesac 579816d7e2f1Smrgfi 57993458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58003458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58012becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 580216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 580316d7e2f1Smrgfi 580416d7e2f1Smrg 580516d7e2f1Smrgfound="no" 580616d7e2f1Smrg 580716d7e2f1Smrg if test $found = "no" ; then 58082becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 580916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 581016d7e2f1Smrg fi 581116d7e2f1Smrg 58122becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 581316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 581416d7e2f1Smrg fi 581516d7e2f1Smrg 58162becc446Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 581716d7e2f1Smrg 58183458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 58193458e6c2Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 58202becc446Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 58213458e6c2Smrg if eval test \${$cacheid+y} 58223458e6c2Smrgthen : 58233458e6c2Smrg printf %s "(cached) " >&6 5824c1e8faa6Smrgelse case e in #( 5825c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582616d7e2f1Smrg/* end confdefs.h. */ 582716d7e2f1Smrgint i; 582816d7e2f1Smrgint 58293458e6c2Smrgmain (void) 583016d7e2f1Smrg{ 583116d7e2f1Smrg 583216d7e2f1Smrg ; 583316d7e2f1Smrg return 0; 583416d7e2f1Smrg} 583516d7e2f1Smrg_ACEOF 58363458e6c2Smrgif ac_fn_c_try_link "$LINENO" 58373458e6c2Smrgthen : 58382becc446Smrg eval $cacheid=yes 5839c1e8faa6Smrgelse case e in #( 5840c1e8faa6Smrg e) eval $cacheid=no ;; 5841c1e8faa6Smrgesac 584216d7e2f1Smrgfi 58433458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5844c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5845c1e8faa6Smrgesac 584616d7e2f1Smrgfi 584716d7e2f1Smrg 584816d7e2f1Smrg 584916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 585016d7e2f1Smrg 58512becc446Smrg eval supported=\$$cacheid 58523458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58533458e6c2Smrgprintf "%s\n" "$supported" >&6; } 585416d7e2f1Smrg if test "$supported" = "yes" ; then 58552becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 585616d7e2f1Smrg found="yes" 585716d7e2f1Smrg fi 585816d7e2f1Smrg fi 585916d7e2f1Smrg 586016d7e2f1Smrg 586116d7e2f1Smrg 586216d7e2f1Smrg 586316d7e2f1Smrg 586416d7e2f1Smrg 586516d7e2f1Smrg 58662becc446Smrg 58672becc446Smrg 58682becc446Smrg 58692becc446Smrg 58702becc446Smrg 58712becc446Smrg 58722becc446Smrg 58732becc446Smrg 587416d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 587516d7e2f1Smrg 58762becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 587716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58783458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58793458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58803458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58813458e6c2Smrgthen : 58823458e6c2Smrg printf %s "(cached) " >&6 5883c1e8faa6Smrgelse case e in #( 5884c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 588516d7e2f1Smrg/* end confdefs.h. */ 588616d7e2f1Smrgint i; 588716d7e2f1Smrg_ACEOF 58883458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 58893458e6c2Smrgthen : 589016d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5891c1e8faa6Smrgelse case e in #( 5892c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5893c1e8faa6Smrgesac 589416d7e2f1Smrgfi 5895c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5896c1e8faa6Smrgesac 589716d7e2f1Smrgfi 58983458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58993458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59002becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 590116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 590216d7e2f1Smrgfi 590316d7e2f1Smrg 59042becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59052becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 590616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 590716d7e2f1Smrg fi 590816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59093458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59103458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59113458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 59123458e6c2Smrgthen : 59133458e6c2Smrg printf %s "(cached) " >&6 5914c1e8faa6Smrgelse case e in #( 5915c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 591616d7e2f1Smrg/* end confdefs.h. */ 591716d7e2f1Smrgint i; 591816d7e2f1Smrg_ACEOF 59193458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 59203458e6c2Smrgthen : 592116d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5922c1e8faa6Smrgelse case e in #( 5923c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5924c1e8faa6Smrgesac 592516d7e2f1Smrgfi 5926c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5927c1e8faa6Smrgesac 592816d7e2f1Smrgfi 59293458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59303458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59312becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 593216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 593316d7e2f1Smrgfi 593416d7e2f1Smrg 593516d7e2f1Smrgfound="no" 593616d7e2f1Smrg 593716d7e2f1Smrg if test $found = "no" ; then 59382becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 593916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594016d7e2f1Smrg fi 594116d7e2f1Smrg 59422becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 594316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 594416d7e2f1Smrg fi 594516d7e2f1Smrg 59462becc446Smrg CFLAGS="$CFLAGS -Wnested-externs" 594716d7e2f1Smrg 59483458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 59493458e6c2Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 59502becc446Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 59513458e6c2Smrg if eval test \${$cacheid+y} 59523458e6c2Smrgthen : 59533458e6c2Smrg printf %s "(cached) " >&6 5954c1e8faa6Smrgelse case e in #( 5955c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595616d7e2f1Smrg/* end confdefs.h. */ 595716d7e2f1Smrgint i; 595816d7e2f1Smrgint 59593458e6c2Smrgmain (void) 596016d7e2f1Smrg{ 596116d7e2f1Smrg 596216d7e2f1Smrg ; 596316d7e2f1Smrg return 0; 596416d7e2f1Smrg} 596516d7e2f1Smrg_ACEOF 59663458e6c2Smrgif ac_fn_c_try_link "$LINENO" 59673458e6c2Smrgthen : 59682becc446Smrg eval $cacheid=yes 5969c1e8faa6Smrgelse case e in #( 5970c1e8faa6Smrg e) eval $cacheid=no ;; 5971c1e8faa6Smrgesac 597216d7e2f1Smrgfi 59733458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5974c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 5975c1e8faa6Smrgesac 597616d7e2f1Smrgfi 597716d7e2f1Smrg 597816d7e2f1Smrg 597916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598016d7e2f1Smrg 59812becc446Smrg eval supported=\$$cacheid 59823458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59833458e6c2Smrgprintf "%s\n" "$supported" >&6; } 598416d7e2f1Smrg if test "$supported" = "yes" ; then 59852becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 598616d7e2f1Smrg found="yes" 598716d7e2f1Smrg fi 598816d7e2f1Smrg fi 598916d7e2f1Smrg 599016d7e2f1Smrg 599116d7e2f1Smrg 599216d7e2f1Smrg 599316d7e2f1Smrg 599416d7e2f1Smrg 599516d7e2f1Smrg 59962becc446Smrg 59972becc446Smrg 59982becc446Smrg 59992becc446Smrg 60002becc446Smrg 60012becc446Smrg 60022becc446Smrg 60032becc446Smrg 600416d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 600516d7e2f1Smrg 60062becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 600716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60083458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60093458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60103458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 60113458e6c2Smrgthen : 60123458e6c2Smrg printf %s "(cached) " >&6 6013c1e8faa6Smrgelse case e in #( 6014c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 601516d7e2f1Smrg/* end confdefs.h. */ 601616d7e2f1Smrgint i; 601716d7e2f1Smrg_ACEOF 60183458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 60193458e6c2Smrgthen : 602016d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6021c1e8faa6Smrgelse case e in #( 6022c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6023c1e8faa6Smrgesac 602416d7e2f1Smrgfi 6025c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6026c1e8faa6Smrgesac 602716d7e2f1Smrgfi 60283458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60293458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60302becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 603116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 603216d7e2f1Smrgfi 603316d7e2f1Smrg 60342becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 60352becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 603616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 603716d7e2f1Smrg fi 603816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60393458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60403458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60413458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 60423458e6c2Smrgthen : 60433458e6c2Smrg printf %s "(cached) " >&6 6044c1e8faa6Smrgelse case e in #( 6045c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 604616d7e2f1Smrg/* end confdefs.h. */ 604716d7e2f1Smrgint i; 604816d7e2f1Smrg_ACEOF 60493458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 60503458e6c2Smrgthen : 605116d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6052c1e8faa6Smrgelse case e in #( 6053c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6054c1e8faa6Smrgesac 605516d7e2f1Smrgfi 6056c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6057c1e8faa6Smrgesac 605816d7e2f1Smrgfi 60593458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60603458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60612becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 606216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 606316d7e2f1Smrgfi 606416d7e2f1Smrg 606516d7e2f1Smrgfound="no" 606616d7e2f1Smrg 606716d7e2f1Smrg if test $found = "no" ; then 60682becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 606916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 607016d7e2f1Smrg fi 607116d7e2f1Smrg 60722becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 607316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 607416d7e2f1Smrg fi 607516d7e2f1Smrg 60762becc446Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 607716d7e2f1Smrg 60783458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 60793458e6c2Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 60802becc446Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 60813458e6c2Smrg if eval test \${$cacheid+y} 60823458e6c2Smrgthen : 60833458e6c2Smrg printf %s "(cached) " >&6 6084c1e8faa6Smrgelse case e in #( 6085c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608616d7e2f1Smrg/* end confdefs.h. */ 608716d7e2f1Smrgint i; 608816d7e2f1Smrgint 60893458e6c2Smrgmain (void) 609016d7e2f1Smrg{ 609116d7e2f1Smrg 609216d7e2f1Smrg ; 609316d7e2f1Smrg return 0; 609416d7e2f1Smrg} 609516d7e2f1Smrg_ACEOF 60963458e6c2Smrgif ac_fn_c_try_link "$LINENO" 60973458e6c2Smrgthen : 60982becc446Smrg eval $cacheid=yes 6099c1e8faa6Smrgelse case e in #( 6100c1e8faa6Smrg e) eval $cacheid=no ;; 6101c1e8faa6Smrgesac 610216d7e2f1Smrgfi 61033458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6104c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6105c1e8faa6Smrgesac 610616d7e2f1Smrgfi 610716d7e2f1Smrg 610816d7e2f1Smrg 610916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 611016d7e2f1Smrg 61112becc446Smrg eval supported=\$$cacheid 61123458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61133458e6c2Smrgprintf "%s\n" "$supported" >&6; } 611416d7e2f1Smrg if test "$supported" = "yes" ; then 61152becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 611616d7e2f1Smrg found="yes" 611716d7e2f1Smrg fi 611816d7e2f1Smrg fi 611916d7e2f1Smrg 612016d7e2f1Smrg 612116d7e2f1Smrg 612216d7e2f1Smrg 612316d7e2f1Smrg 612416d7e2f1Smrg 612516d7e2f1Smrg 612616d7e2f1Smrg 612716d7e2f1Smrg 612816d7e2f1Smrg 612916d7e2f1Smrg 613016d7e2f1Smrg 613116d7e2f1Smrg 613216d7e2f1Smrg 613316d7e2f1Smrg 613416d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 613516d7e2f1Smrg 61362becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 613716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61383458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61393458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61403458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 61413458e6c2Smrgthen : 61423458e6c2Smrg printf %s "(cached) " >&6 6143c1e8faa6Smrgelse case e in #( 6144c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 614516d7e2f1Smrg/* end confdefs.h. */ 614616d7e2f1Smrgint i; 614716d7e2f1Smrg_ACEOF 61483458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 61493458e6c2Smrgthen : 615016d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6151c1e8faa6Smrgelse case e in #( 6152c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6153c1e8faa6Smrgesac 615416d7e2f1Smrgfi 6155c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6156c1e8faa6Smrgesac 615716d7e2f1Smrgfi 61583458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61593458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61602becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 616116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 616216d7e2f1Smrgfi 616316d7e2f1Smrg 61642becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61652becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 616616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 616716d7e2f1Smrg fi 616816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61693458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61703458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61713458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 61723458e6c2Smrgthen : 61733458e6c2Smrg printf %s "(cached) " >&6 6174c1e8faa6Smrgelse case e in #( 6175c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 617616d7e2f1Smrg/* end confdefs.h. */ 617716d7e2f1Smrgint i; 617816d7e2f1Smrg_ACEOF 61793458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 61803458e6c2Smrgthen : 618116d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6182c1e8faa6Smrgelse case e in #( 6183c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6184c1e8faa6Smrgesac 618516d7e2f1Smrgfi 6186c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6187c1e8faa6Smrgesac 618816d7e2f1Smrgfi 61893458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61903458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61912becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 619216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 619316d7e2f1Smrgfi 619416d7e2f1Smrg 619516d7e2f1Smrgfound="no" 619616d7e2f1Smrg 619716d7e2f1Smrg if test $found = "no" ; then 61982becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 619916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 620016d7e2f1Smrg fi 620116d7e2f1Smrg 62022becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 620316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 620416d7e2f1Smrg fi 620516d7e2f1Smrg 620616d7e2f1Smrg CFLAGS="$CFLAGS -Wold-style-definition" 620716d7e2f1Smrg 62083458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 62093458e6c2Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 62102becc446Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 62113458e6c2Smrg if eval test \${$cacheid+y} 62123458e6c2Smrgthen : 62133458e6c2Smrg printf %s "(cached) " >&6 6214c1e8faa6Smrgelse case e in #( 6215c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 621616d7e2f1Smrg/* end confdefs.h. */ 621716d7e2f1Smrgint i; 621816d7e2f1Smrgint 62193458e6c2Smrgmain (void) 622016d7e2f1Smrg{ 622116d7e2f1Smrg 622216d7e2f1Smrg ; 622316d7e2f1Smrg return 0; 622416d7e2f1Smrg} 622516d7e2f1Smrg_ACEOF 62263458e6c2Smrgif ac_fn_c_try_link "$LINENO" 62273458e6c2Smrgthen : 62282becc446Smrg eval $cacheid=yes 6229c1e8faa6Smrgelse case e in #( 6230c1e8faa6Smrg e) eval $cacheid=no ;; 6231c1e8faa6Smrgesac 623216d7e2f1Smrgfi 62333458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6234c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6235c1e8faa6Smrgesac 623616d7e2f1Smrgfi 623716d7e2f1Smrg 623816d7e2f1Smrg 623916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 624016d7e2f1Smrg 62412becc446Smrg eval supported=\$$cacheid 62423458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62433458e6c2Smrgprintf "%s\n" "$supported" >&6; } 624416d7e2f1Smrg if test "$supported" = "yes" ; then 624516d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 624616d7e2f1Smrg found="yes" 624716d7e2f1Smrg fi 624816d7e2f1Smrg fi 624916d7e2f1Smrg 62502becc446Smrg if test $found = "no" ; then 62512becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62522becc446Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62532becc446Smrg fi 62542becc446Smrg 62552becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 62562becc446Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62572becc446Smrg fi 62582becc446Smrg 62592becc446Smrg CFLAGS="$CFLAGS -fd" 62602becc446Smrg 62613458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 62623458e6c2Smrgprintf %s "checking if $CC supports -fd... " >&6; } 62632becc446Smrg cacheid=xorg_cv_cc_flag__fd 62643458e6c2Smrg if eval test \${$cacheid+y} 62653458e6c2Smrgthen : 62663458e6c2Smrg printf %s "(cached) " >&6 6267c1e8faa6Smrgelse case e in #( 6268c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62692becc446Smrg/* end confdefs.h. */ 62702becc446Smrgint i; 62712becc446Smrgint 62723458e6c2Smrgmain (void) 62732becc446Smrg{ 62742becc446Smrg 62752becc446Smrg ; 62762becc446Smrg return 0; 62772becc446Smrg} 62782becc446Smrg_ACEOF 62793458e6c2Smrgif ac_fn_c_try_link "$LINENO" 62803458e6c2Smrgthen : 62812becc446Smrg eval $cacheid=yes 6282c1e8faa6Smrgelse case e in #( 6283c1e8faa6Smrg e) eval $cacheid=no ;; 6284c1e8faa6Smrgesac 62852becc446Smrgfi 62863458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6287c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6288c1e8faa6Smrgesac 62892becc446Smrgfi 62902becc446Smrg 62912becc446Smrg 62922becc446Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62932becc446Smrg 62942becc446Smrg eval supported=\$$cacheid 62953458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62963458e6c2Smrgprintf "%s\n" "$supported" >&6; } 62972becc446Smrg if test "$supported" = "yes" ; then 62982becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 62992becc446Smrg found="yes" 63002becc446Smrg fi 63012becc446Smrg fi 63022becc446Smrg 63032becc446Smrg 63042becc446Smrg 63052becc446Smrg 63062becc446Smrg 630716d7e2f1Smrg# This chunk adds additional warnings that could catch undesired effects. 630816d7e2f1Smrg 630916d7e2f1Smrg 631016d7e2f1Smrg 631116d7e2f1Smrg 631216d7e2f1Smrg 63132becc446Smrg 63142becc446Smrg 63152becc446Smrg 63162becc446Smrg 63172becc446Smrg 63182becc446Smrg 63192becc446Smrg 63202becc446Smrg 632116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 632216d7e2f1Smrg 63232becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 632416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63253458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63263458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63273458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 63283458e6c2Smrgthen : 63293458e6c2Smrg printf %s "(cached) " >&6 6330c1e8faa6Smrgelse case e in #( 6331c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 633216d7e2f1Smrg/* end confdefs.h. */ 633316d7e2f1Smrgint i; 633416d7e2f1Smrg_ACEOF 63353458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 63363458e6c2Smrgthen : 633716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6338c1e8faa6Smrgelse case e in #( 6339c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6340c1e8faa6Smrgesac 634116d7e2f1Smrgfi 6342c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6343c1e8faa6Smrgesac 634416d7e2f1Smrgfi 63453458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63463458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63472becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 634816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 634916d7e2f1Smrgfi 635016d7e2f1Smrg 63512becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63522becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 635316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 635416d7e2f1Smrg fi 635516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63563458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63573458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63583458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63593458e6c2Smrgthen : 63603458e6c2Smrg printf %s "(cached) " >&6 6361c1e8faa6Smrgelse case e in #( 6362c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 636316d7e2f1Smrg/* end confdefs.h. */ 636416d7e2f1Smrgint i; 636516d7e2f1Smrg_ACEOF 63663458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 63673458e6c2Smrgthen : 636816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6369c1e8faa6Smrgelse case e in #( 6370c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6371c1e8faa6Smrgesac 637216d7e2f1Smrgfi 6373c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6374c1e8faa6Smrgesac 637516d7e2f1Smrgfi 63763458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63773458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63782becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 637916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 638016d7e2f1Smrgfi 638116d7e2f1Smrg 638216d7e2f1Smrgfound="no" 638316d7e2f1Smrg 638416d7e2f1Smrg if test $found = "no" ; then 63852becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 638616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 638716d7e2f1Smrg fi 638816d7e2f1Smrg 63892becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 639016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 639116d7e2f1Smrg fi 639216d7e2f1Smrg 639316d7e2f1Smrg CFLAGS="$CFLAGS -Wunused" 639416d7e2f1Smrg 63953458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 63963458e6c2Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 63972becc446Smrg cacheid=xorg_cv_cc_flag__Wunused 63983458e6c2Smrg if eval test \${$cacheid+y} 63993458e6c2Smrgthen : 64003458e6c2Smrg printf %s "(cached) " >&6 6401c1e8faa6Smrgelse case e in #( 6402c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 640316d7e2f1Smrg/* end confdefs.h. */ 640416d7e2f1Smrgint i; 640516d7e2f1Smrgint 64063458e6c2Smrgmain (void) 640716d7e2f1Smrg{ 640816d7e2f1Smrg 640916d7e2f1Smrg ; 641016d7e2f1Smrg return 0; 641116d7e2f1Smrg} 641216d7e2f1Smrg_ACEOF 64133458e6c2Smrgif ac_fn_c_try_link "$LINENO" 64143458e6c2Smrgthen : 64152becc446Smrg eval $cacheid=yes 6416c1e8faa6Smrgelse case e in #( 6417c1e8faa6Smrg e) eval $cacheid=no ;; 6418c1e8faa6Smrgesac 641916d7e2f1Smrgfi 64203458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6421c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6422c1e8faa6Smrgesac 642316d7e2f1Smrgfi 642416d7e2f1Smrg 642516d7e2f1Smrg 642616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 642716d7e2f1Smrg 64282becc446Smrg eval supported=\$$cacheid 64293458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64303458e6c2Smrgprintf "%s\n" "$supported" >&6; } 643116d7e2f1Smrg if test "$supported" = "yes" ; then 643216d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 643316d7e2f1Smrg found="yes" 643416d7e2f1Smrg fi 643516d7e2f1Smrg fi 643616d7e2f1Smrg 643716d7e2f1Smrg 643816d7e2f1Smrg 643916d7e2f1Smrg 644016d7e2f1Smrg 644116d7e2f1Smrg 644216d7e2f1Smrg 64432becc446Smrg 64442becc446Smrg 64452becc446Smrg 64462becc446Smrg 64472becc446Smrg 64482becc446Smrg 64492becc446Smrg 64502becc446Smrg 645116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 645216d7e2f1Smrg 64532becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 645416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64553458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64563458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64573458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64583458e6c2Smrgthen : 64593458e6c2Smrg printf %s "(cached) " >&6 6460c1e8faa6Smrgelse case e in #( 6461c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 646216d7e2f1Smrg/* end confdefs.h. */ 646316d7e2f1Smrgint i; 646416d7e2f1Smrg_ACEOF 64653458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 64663458e6c2Smrgthen : 646716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6468c1e8faa6Smrgelse case e in #( 6469c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6470c1e8faa6Smrgesac 647116d7e2f1Smrgfi 6472c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6473c1e8faa6Smrgesac 647416d7e2f1Smrgfi 64753458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64763458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64772becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 647816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 647916d7e2f1Smrgfi 648016d7e2f1Smrg 64812becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64822becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 648316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 648416d7e2f1Smrg fi 648516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64863458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64873458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64883458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 64893458e6c2Smrgthen : 64903458e6c2Smrg printf %s "(cached) " >&6 6491c1e8faa6Smrgelse case e in #( 6492c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 649316d7e2f1Smrg/* end confdefs.h. */ 649416d7e2f1Smrgint i; 649516d7e2f1Smrg_ACEOF 64963458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 64973458e6c2Smrgthen : 649816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6499c1e8faa6Smrgelse case e in #( 6500c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6501c1e8faa6Smrgesac 650216d7e2f1Smrgfi 6503c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6504c1e8faa6Smrgesac 650516d7e2f1Smrgfi 65063458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65073458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65082becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 650916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 651016d7e2f1Smrgfi 651116d7e2f1Smrg 651216d7e2f1Smrgfound="no" 651316d7e2f1Smrg 651416d7e2f1Smrg if test $found = "no" ; then 65152becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 651616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 651716d7e2f1Smrg fi 651816d7e2f1Smrg 65192becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 652016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 652116d7e2f1Smrg fi 652216d7e2f1Smrg 652316d7e2f1Smrg CFLAGS="$CFLAGS -Wuninitialized" 652416d7e2f1Smrg 65253458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 65263458e6c2Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 65272becc446Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 65283458e6c2Smrg if eval test \${$cacheid+y} 65293458e6c2Smrgthen : 65303458e6c2Smrg printf %s "(cached) " >&6 6531c1e8faa6Smrgelse case e in #( 6532c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 653316d7e2f1Smrg/* end confdefs.h. */ 653416d7e2f1Smrgint i; 653516d7e2f1Smrgint 65363458e6c2Smrgmain (void) 653716d7e2f1Smrg{ 653816d7e2f1Smrg 653916d7e2f1Smrg ; 654016d7e2f1Smrg return 0; 654116d7e2f1Smrg} 654216d7e2f1Smrg_ACEOF 65433458e6c2Smrgif ac_fn_c_try_link "$LINENO" 65443458e6c2Smrgthen : 65452becc446Smrg eval $cacheid=yes 6546c1e8faa6Smrgelse case e in #( 6547c1e8faa6Smrg e) eval $cacheid=no ;; 6548c1e8faa6Smrgesac 654916d7e2f1Smrgfi 65503458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6551c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6552c1e8faa6Smrgesac 655316d7e2f1Smrgfi 655416d7e2f1Smrg 655516d7e2f1Smrg 655616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 655716d7e2f1Smrg 65582becc446Smrg eval supported=\$$cacheid 65593458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65603458e6c2Smrgprintf "%s\n" "$supported" >&6; } 656116d7e2f1Smrg if test "$supported" = "yes" ; then 656216d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 656316d7e2f1Smrg found="yes" 656416d7e2f1Smrg fi 656516d7e2f1Smrg fi 656616d7e2f1Smrg 656716d7e2f1Smrg 656816d7e2f1Smrg 656916d7e2f1Smrg 657016d7e2f1Smrg 657116d7e2f1Smrg 657216d7e2f1Smrg 65732becc446Smrg 65742becc446Smrg 65752becc446Smrg 65762becc446Smrg 65772becc446Smrg 65782becc446Smrg 65792becc446Smrg 65802becc446Smrg 658116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 658216d7e2f1Smrg 65832becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 658416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65853458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65863458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65873458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 65883458e6c2Smrgthen : 65893458e6c2Smrg printf %s "(cached) " >&6 6590c1e8faa6Smrgelse case e in #( 6591c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 659216d7e2f1Smrg/* end confdefs.h. */ 659316d7e2f1Smrgint i; 659416d7e2f1Smrg_ACEOF 65953458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 65963458e6c2Smrgthen : 659716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6598c1e8faa6Smrgelse case e in #( 6599c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6600c1e8faa6Smrgesac 660116d7e2f1Smrgfi 6602c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6603c1e8faa6Smrgesac 660416d7e2f1Smrgfi 66053458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66063458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66072becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 660816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 660916d7e2f1Smrgfi 661016d7e2f1Smrg 66112becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66122becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 661316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 661416d7e2f1Smrg fi 661516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66163458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66173458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66183458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 66193458e6c2Smrgthen : 66203458e6c2Smrg printf %s "(cached) " >&6 6621c1e8faa6Smrgelse case e in #( 6622c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 662316d7e2f1Smrg/* end confdefs.h. */ 662416d7e2f1Smrgint i; 662516d7e2f1Smrg_ACEOF 66263458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 66273458e6c2Smrgthen : 662816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6629c1e8faa6Smrgelse case e in #( 6630c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6631c1e8faa6Smrgesac 663216d7e2f1Smrgfi 6633c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6634c1e8faa6Smrgesac 663516d7e2f1Smrgfi 66363458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66373458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66382becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 663916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 664016d7e2f1Smrgfi 664116d7e2f1Smrg 664216d7e2f1Smrgfound="no" 664316d7e2f1Smrg 664416d7e2f1Smrg if test $found = "no" ; then 66452becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 664616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 664716d7e2f1Smrg fi 664816d7e2f1Smrg 66492becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 665016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 665116d7e2f1Smrg fi 665216d7e2f1Smrg 665316d7e2f1Smrg CFLAGS="$CFLAGS -Wshadow" 665416d7e2f1Smrg 66553458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 66563458e6c2Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 66572becc446Smrg cacheid=xorg_cv_cc_flag__Wshadow 66583458e6c2Smrg if eval test \${$cacheid+y} 66593458e6c2Smrgthen : 66603458e6c2Smrg printf %s "(cached) " >&6 6661c1e8faa6Smrgelse case e in #( 6662c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 666316d7e2f1Smrg/* end confdefs.h. */ 666416d7e2f1Smrgint i; 666516d7e2f1Smrgint 66663458e6c2Smrgmain (void) 666716d7e2f1Smrg{ 666816d7e2f1Smrg 666916d7e2f1Smrg ; 667016d7e2f1Smrg return 0; 667116d7e2f1Smrg} 667216d7e2f1Smrg_ACEOF 66733458e6c2Smrgif ac_fn_c_try_link "$LINENO" 66743458e6c2Smrgthen : 66752becc446Smrg eval $cacheid=yes 6676c1e8faa6Smrgelse case e in #( 6677c1e8faa6Smrg e) eval $cacheid=no ;; 6678c1e8faa6Smrgesac 667916d7e2f1Smrgfi 66803458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6681c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6682c1e8faa6Smrgesac 668316d7e2f1Smrgfi 668416d7e2f1Smrg 668516d7e2f1Smrg 668616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 668716d7e2f1Smrg 66882becc446Smrg eval supported=\$$cacheid 66893458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66903458e6c2Smrgprintf "%s\n" "$supported" >&6; } 669116d7e2f1Smrg if test "$supported" = "yes" ; then 669216d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 669316d7e2f1Smrg found="yes" 669416d7e2f1Smrg fi 669516d7e2f1Smrg fi 669616d7e2f1Smrg 669716d7e2f1Smrg 669816d7e2f1Smrg 669916d7e2f1Smrg 670016d7e2f1Smrg 670116d7e2f1Smrg 670216d7e2f1Smrg 67032becc446Smrg 67042becc446Smrg 67052becc446Smrg 67062becc446Smrg 67072becc446Smrg 67082becc446Smrg 67092becc446Smrg 67102becc446Smrg 671116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 671216d7e2f1Smrg 67132becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 671416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67153458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67163458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67173458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 67183458e6c2Smrgthen : 67193458e6c2Smrg printf %s "(cached) " >&6 6720c1e8faa6Smrgelse case e in #( 6721c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 672216d7e2f1Smrg/* end confdefs.h. */ 672316d7e2f1Smrgint i; 672416d7e2f1Smrg_ACEOF 67253458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 67263458e6c2Smrgthen : 672716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6728c1e8faa6Smrgelse case e in #( 6729c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6730c1e8faa6Smrgesac 673116d7e2f1Smrgfi 6732c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6733c1e8faa6Smrgesac 673416d7e2f1Smrgfi 67353458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67363458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67372becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 673816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 673916d7e2f1Smrgfi 674016d7e2f1Smrg 67412becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67422becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 674316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 674416d7e2f1Smrg fi 674516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67463458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67473458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67483458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 67493458e6c2Smrgthen : 67503458e6c2Smrg printf %s "(cached) " >&6 6751c1e8faa6Smrgelse case e in #( 6752c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 675316d7e2f1Smrg/* end confdefs.h. */ 675416d7e2f1Smrgint i; 675516d7e2f1Smrg_ACEOF 67563458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 67573458e6c2Smrgthen : 675816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6759c1e8faa6Smrgelse case e in #( 6760c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6761c1e8faa6Smrgesac 676216d7e2f1Smrgfi 6763c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6764c1e8faa6Smrgesac 676516d7e2f1Smrgfi 67663458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67673458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67682becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 676916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 677016d7e2f1Smrgfi 677116d7e2f1Smrg 677216d7e2f1Smrgfound="no" 677316d7e2f1Smrg 677416d7e2f1Smrg if test $found = "no" ; then 67752becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 677616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 677716d7e2f1Smrg fi 677816d7e2f1Smrg 67792becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 678016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 678116d7e2f1Smrg fi 678216d7e2f1Smrg 67832becc446Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 678416d7e2f1Smrg 67853458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 67863458e6c2Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 67872becc446Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 67883458e6c2Smrg if eval test \${$cacheid+y} 67893458e6c2Smrgthen : 67903458e6c2Smrg printf %s "(cached) " >&6 6791c1e8faa6Smrgelse case e in #( 6792c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679316d7e2f1Smrg/* end confdefs.h. */ 679416d7e2f1Smrgint i; 679516d7e2f1Smrgint 67963458e6c2Smrgmain (void) 679716d7e2f1Smrg{ 679816d7e2f1Smrg 679916d7e2f1Smrg ; 680016d7e2f1Smrg return 0; 680116d7e2f1Smrg} 680216d7e2f1Smrg_ACEOF 68033458e6c2Smrgif ac_fn_c_try_link "$LINENO" 68043458e6c2Smrgthen : 68052becc446Smrg eval $cacheid=yes 6806c1e8faa6Smrgelse case e in #( 6807c1e8faa6Smrg e) eval $cacheid=no ;; 6808c1e8faa6Smrgesac 680916d7e2f1Smrgfi 68103458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6811c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6812c1e8faa6Smrgesac 681316d7e2f1Smrgfi 681416d7e2f1Smrg 681516d7e2f1Smrg 681616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681716d7e2f1Smrg 68182becc446Smrg eval supported=\$$cacheid 68193458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68203458e6c2Smrgprintf "%s\n" "$supported" >&6; } 682116d7e2f1Smrg if test "$supported" = "yes" ; then 68222becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 682316d7e2f1Smrg found="yes" 682416d7e2f1Smrg fi 682516d7e2f1Smrg fi 682616d7e2f1Smrg 682716d7e2f1Smrg 682816d7e2f1Smrg 682916d7e2f1Smrg 683016d7e2f1Smrg 683116d7e2f1Smrg 683216d7e2f1Smrg 68332becc446Smrg 68342becc446Smrg 68352becc446Smrg 68362becc446Smrg 68372becc446Smrg 68382becc446Smrg 68392becc446Smrg 68402becc446Smrg 684116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 684216d7e2f1Smrg 68432becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 684416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68453458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68463458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68473458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 68483458e6c2Smrgthen : 68493458e6c2Smrg printf %s "(cached) " >&6 6850c1e8faa6Smrgelse case e in #( 6851c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 685216d7e2f1Smrg/* end confdefs.h. */ 685316d7e2f1Smrgint i; 685416d7e2f1Smrg_ACEOF 68553458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 68563458e6c2Smrgthen : 685716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6858c1e8faa6Smrgelse case e in #( 6859c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6860c1e8faa6Smrgesac 686116d7e2f1Smrgfi 6862c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6863c1e8faa6Smrgesac 686416d7e2f1Smrgfi 68653458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68663458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68672becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 686816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 686916d7e2f1Smrgfi 687016d7e2f1Smrg 68712becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68722becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 687316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 687416d7e2f1Smrg fi 687516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68763458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68773458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68783458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68793458e6c2Smrgthen : 68803458e6c2Smrg printf %s "(cached) " >&6 6881c1e8faa6Smrgelse case e in #( 6882c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 688316d7e2f1Smrg/* end confdefs.h. */ 688416d7e2f1Smrgint i; 688516d7e2f1Smrg_ACEOF 68863458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 68873458e6c2Smrgthen : 688816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6889c1e8faa6Smrgelse case e in #( 6890c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6891c1e8faa6Smrgesac 689216d7e2f1Smrgfi 6893c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6894c1e8faa6Smrgesac 689516d7e2f1Smrgfi 68963458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68973458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 68982becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 689916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 690016d7e2f1Smrgfi 690116d7e2f1Smrg 690216d7e2f1Smrgfound="no" 690316d7e2f1Smrg 690416d7e2f1Smrg if test $found = "no" ; then 69052becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 690616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 690716d7e2f1Smrg fi 690816d7e2f1Smrg 69092becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 691016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 691116d7e2f1Smrg fi 691216d7e2f1Smrg 69132becc446Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 691416d7e2f1Smrg 69153458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 69163458e6c2Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 69172becc446Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 69183458e6c2Smrg if eval test \${$cacheid+y} 69193458e6c2Smrgthen : 69203458e6c2Smrg printf %s "(cached) " >&6 6921c1e8faa6Smrgelse case e in #( 6922c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 692316d7e2f1Smrg/* end confdefs.h. */ 692416d7e2f1Smrgint i; 692516d7e2f1Smrgint 69263458e6c2Smrgmain (void) 692716d7e2f1Smrg{ 692816d7e2f1Smrg 692916d7e2f1Smrg ; 693016d7e2f1Smrg return 0; 693116d7e2f1Smrg} 693216d7e2f1Smrg_ACEOF 69333458e6c2Smrgif ac_fn_c_try_link "$LINENO" 69343458e6c2Smrgthen : 69352becc446Smrg eval $cacheid=yes 6936c1e8faa6Smrgelse case e in #( 6937c1e8faa6Smrg e) eval $cacheid=no ;; 6938c1e8faa6Smrgesac 693916d7e2f1Smrgfi 69403458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6941c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 6942c1e8faa6Smrgesac 694316d7e2f1Smrgfi 694416d7e2f1Smrg 694516d7e2f1Smrg 694616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 694716d7e2f1Smrg 69482becc446Smrg eval supported=\$$cacheid 69493458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69503458e6c2Smrgprintf "%s\n" "$supported" >&6; } 695116d7e2f1Smrg if test "$supported" = "yes" ; then 69522becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 695316d7e2f1Smrg found="yes" 695416d7e2f1Smrg fi 695516d7e2f1Smrg fi 695616d7e2f1Smrg 695716d7e2f1Smrg 695816d7e2f1Smrg 695916d7e2f1Smrg 696016d7e2f1Smrg 696116d7e2f1Smrg 696216d7e2f1Smrg 69632becc446Smrg 69642becc446Smrg 69652becc446Smrg 69662becc446Smrg 69672becc446Smrg 69682becc446Smrg 69692becc446Smrg 69702becc446Smrg 697116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 697216d7e2f1Smrg 69732becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 697416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69753458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69763458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69773458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 69783458e6c2Smrgthen : 69793458e6c2Smrg printf %s "(cached) " >&6 6980c1e8faa6Smrgelse case e in #( 6981c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 698216d7e2f1Smrg/* end confdefs.h. */ 698316d7e2f1Smrgint i; 698416d7e2f1Smrg_ACEOF 69853458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 69863458e6c2Smrgthen : 698716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6988c1e8faa6Smrgelse case e in #( 6989c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6990c1e8faa6Smrgesac 699116d7e2f1Smrgfi 6992c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6993c1e8faa6Smrgesac 699416d7e2f1Smrgfi 69953458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69963458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69972becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 699816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 699916d7e2f1Smrgfi 700016d7e2f1Smrg 70012becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70022becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 700316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 700416d7e2f1Smrg fi 700516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70063458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70073458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70083458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70093458e6c2Smrgthen : 70103458e6c2Smrg printf %s "(cached) " >&6 7011c1e8faa6Smrgelse case e in #( 7012c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 701316d7e2f1Smrg/* end confdefs.h. */ 701416d7e2f1Smrgint i; 701516d7e2f1Smrg_ACEOF 70163458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 70173458e6c2Smrgthen : 701816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7019c1e8faa6Smrgelse case e in #( 7020c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7021c1e8faa6Smrgesac 702216d7e2f1Smrgfi 7023c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7024c1e8faa6Smrgesac 702516d7e2f1Smrgfi 70263458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70273458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70282becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 702916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 703016d7e2f1Smrgfi 703116d7e2f1Smrg 703216d7e2f1Smrgfound="no" 703316d7e2f1Smrg 703416d7e2f1Smrg if test $found = "no" ; then 70352becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 703616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 703716d7e2f1Smrg fi 703816d7e2f1Smrg 70392becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 704016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 704116d7e2f1Smrg fi 704216d7e2f1Smrg 70432becc446Smrg CFLAGS="$CFLAGS -Wredundant-decls" 704416d7e2f1Smrg 70453458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 70463458e6c2Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 70472becc446Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 70483458e6c2Smrg if eval test \${$cacheid+y} 70493458e6c2Smrgthen : 70503458e6c2Smrg printf %s "(cached) " >&6 7051c1e8faa6Smrgelse case e in #( 7052c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 705316d7e2f1Smrg/* end confdefs.h. */ 705416d7e2f1Smrgint i; 705516d7e2f1Smrgint 70563458e6c2Smrgmain (void) 705716d7e2f1Smrg{ 705816d7e2f1Smrg 705916d7e2f1Smrg ; 706016d7e2f1Smrg return 0; 706116d7e2f1Smrg} 706216d7e2f1Smrg_ACEOF 70633458e6c2Smrgif ac_fn_c_try_link "$LINENO" 70643458e6c2Smrgthen : 70652becc446Smrg eval $cacheid=yes 7066c1e8faa6Smrgelse case e in #( 7067c1e8faa6Smrg e) eval $cacheid=no ;; 7068c1e8faa6Smrgesac 706916d7e2f1Smrgfi 70703458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7071c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7072c1e8faa6Smrgesac 707316d7e2f1Smrgfi 707416d7e2f1Smrg 707516d7e2f1Smrg 707616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 707716d7e2f1Smrg 70782becc446Smrg eval supported=\$$cacheid 70793458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70803458e6c2Smrgprintf "%s\n" "$supported" >&6; } 708116d7e2f1Smrg if test "$supported" = "yes" ; then 70822becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 708316d7e2f1Smrg found="yes" 708416d7e2f1Smrg fi 708516d7e2f1Smrg fi 708616d7e2f1Smrg 708716d7e2f1Smrg 708816d7e2f1Smrg 708916d7e2f1Smrg 709016d7e2f1Smrg 709116d7e2f1Smrg 709216d7e2f1Smrg 70932becc446Smrg 70942becc446Smrg 70952becc446Smrg 70962becc446Smrg 70972becc446Smrg 70982becc446Smrg 70992becc446Smrg 71002becc446Smrg 710116d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 710216d7e2f1Smrg 71032becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 710416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71053458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71063458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71073458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 71083458e6c2Smrgthen : 71093458e6c2Smrg printf %s "(cached) " >&6 7110c1e8faa6Smrgelse case e in #( 7111c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 711216d7e2f1Smrg/* end confdefs.h. */ 711316d7e2f1Smrgint i; 711416d7e2f1Smrg_ACEOF 71153458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 71163458e6c2Smrgthen : 711716d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7118c1e8faa6Smrgelse case e in #( 7119c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7120c1e8faa6Smrgesac 712116d7e2f1Smrgfi 7122c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7123c1e8faa6Smrgesac 712416d7e2f1Smrgfi 71253458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71263458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71272becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 712816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 712916d7e2f1Smrgfi 713016d7e2f1Smrg 71312becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71322becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 713316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 713416d7e2f1Smrg fi 713516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71363458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71373458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71383458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 71393458e6c2Smrgthen : 71403458e6c2Smrg printf %s "(cached) " >&6 7141c1e8faa6Smrgelse case e in #( 7142c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 714316d7e2f1Smrg/* end confdefs.h. */ 714416d7e2f1Smrgint i; 714516d7e2f1Smrg_ACEOF 71463458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 71473458e6c2Smrgthen : 714816d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7149c1e8faa6Smrgelse case e in #( 7150c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7151c1e8faa6Smrgesac 715216d7e2f1Smrgfi 7153c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7154c1e8faa6Smrgesac 715516d7e2f1Smrgfi 71563458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71573458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71582becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 715916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 716016d7e2f1Smrgfi 716116d7e2f1Smrg 716216d7e2f1Smrgfound="no" 716316d7e2f1Smrg 716416d7e2f1Smrg if test $found = "no" ; then 71652becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 716616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 716716d7e2f1Smrg fi 716816d7e2f1Smrg 71692becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 717016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 717116d7e2f1Smrg fi 717216d7e2f1Smrg 71732becc446Smrg CFLAGS="$CFLAGS -Wlogical-op" 717416d7e2f1Smrg 71753458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 71763458e6c2Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 71772becc446Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 71783458e6c2Smrg if eval test \${$cacheid+y} 71793458e6c2Smrgthen : 71803458e6c2Smrg printf %s "(cached) " >&6 7181c1e8faa6Smrgelse case e in #( 7182c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 718316d7e2f1Smrg/* end confdefs.h. */ 718416d7e2f1Smrgint i; 718516d7e2f1Smrgint 71863458e6c2Smrgmain (void) 718716d7e2f1Smrg{ 718816d7e2f1Smrg 718916d7e2f1Smrg ; 719016d7e2f1Smrg return 0; 719116d7e2f1Smrg} 719216d7e2f1Smrg_ACEOF 71933458e6c2Smrgif ac_fn_c_try_link "$LINENO" 71943458e6c2Smrgthen : 71952becc446Smrg eval $cacheid=yes 7196c1e8faa6Smrgelse case e in #( 7197c1e8faa6Smrg e) eval $cacheid=no ;; 7198c1e8faa6Smrgesac 719916d7e2f1Smrgfi 72003458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7201c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7202c1e8faa6Smrgesac 720316d7e2f1Smrgfi 720416d7e2f1Smrg 720516d7e2f1Smrg 720616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 720716d7e2f1Smrg 72082becc446Smrg eval supported=\$$cacheid 72093458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72103458e6c2Smrgprintf "%s\n" "$supported" >&6; } 721116d7e2f1Smrg if test "$supported" = "yes" ; then 72122becc446Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 721316d7e2f1Smrg found="yes" 721416d7e2f1Smrg fi 721516d7e2f1Smrg fi 721616d7e2f1Smrg 721716d7e2f1Smrg 721816d7e2f1Smrg 721916d7e2f1Smrg# These are currently disabled because they are noisy. They will be enabled 722016d7e2f1Smrg# in the future once the codebase is sufficiently modernized to silence 722116d7e2f1Smrg# them. For now, I don't want them to drown out the other warnings. 72222becc446Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 72232becc446Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 72242becc446Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 722516d7e2f1Smrg 7226c1e8faa6Smrg# Turn some warnings into errors, so we don't accidentally get successful builds 722716d7e2f1Smrg# when there are problems that should be fixed. 722816d7e2f1Smrg 722916d7e2f1Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 723016d7e2f1Smrg 723116d7e2f1Smrg 723216d7e2f1Smrg 723316d7e2f1Smrg 723416d7e2f1Smrg 72352becc446Smrg 72362becc446Smrg 72372becc446Smrg 72382becc446Smrg 72392becc446Smrg 72402becc446Smrg 72412becc446Smrg 72422becc446Smrg 724316d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 724416d7e2f1Smrg 72452becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 724616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72473458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72483458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72493458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 72503458e6c2Smrgthen : 72513458e6c2Smrg printf %s "(cached) " >&6 7252c1e8faa6Smrgelse case e in #( 7253c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 725416d7e2f1Smrg/* end confdefs.h. */ 725516d7e2f1Smrgint i; 725616d7e2f1Smrg_ACEOF 72573458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 72583458e6c2Smrgthen : 725916d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7260c1e8faa6Smrgelse case e in #( 7261c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7262c1e8faa6Smrgesac 726316d7e2f1Smrgfi 7264c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7265c1e8faa6Smrgesac 726616d7e2f1Smrgfi 72673458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72683458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72692becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 727016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727116d7e2f1Smrgfi 727216d7e2f1Smrg 72732becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72742becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 727516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 727616d7e2f1Smrg fi 727716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72783458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72793458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72803458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 72813458e6c2Smrgthen : 72823458e6c2Smrg printf %s "(cached) " >&6 7283c1e8faa6Smrgelse case e in #( 7284c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 728516d7e2f1Smrg/* end confdefs.h. */ 728616d7e2f1Smrgint i; 728716d7e2f1Smrg_ACEOF 72883458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 72893458e6c2Smrgthen : 729016d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7291c1e8faa6Smrgelse case e in #( 7292c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7293c1e8faa6Smrgesac 729416d7e2f1Smrgfi 7295c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7296c1e8faa6Smrgesac 729716d7e2f1Smrgfi 72983458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72993458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73002becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 730116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 730216d7e2f1Smrgfi 730316d7e2f1Smrg 730416d7e2f1Smrgfound="no" 730516d7e2f1Smrg 730616d7e2f1Smrg if test $found = "no" ; then 73072becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 730816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 730916d7e2f1Smrg fi 731016d7e2f1Smrg 73112becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 731216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 731316d7e2f1Smrg fi 731416d7e2f1Smrg 731516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=implicit" 731616d7e2f1Smrg 73173458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 73183458e6c2Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 73192becc446Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 73203458e6c2Smrg if eval test \${$cacheid+y} 73213458e6c2Smrgthen : 73223458e6c2Smrg printf %s "(cached) " >&6 7323c1e8faa6Smrgelse case e in #( 7324c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 732516d7e2f1Smrg/* end confdefs.h. */ 732616d7e2f1Smrgint i; 732716d7e2f1Smrgint 73283458e6c2Smrgmain (void) 732916d7e2f1Smrg{ 733016d7e2f1Smrg 733116d7e2f1Smrg ; 733216d7e2f1Smrg return 0; 733316d7e2f1Smrg} 733416d7e2f1Smrg_ACEOF 73353458e6c2Smrgif ac_fn_c_try_link "$LINENO" 73363458e6c2Smrgthen : 73372becc446Smrg eval $cacheid=yes 7338c1e8faa6Smrgelse case e in #( 7339c1e8faa6Smrg e) eval $cacheid=no ;; 7340c1e8faa6Smrgesac 734116d7e2f1Smrgfi 73423458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7343c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7344c1e8faa6Smrgesac 734516d7e2f1Smrgfi 734616d7e2f1Smrg 734716d7e2f1Smrg 734816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734916d7e2f1Smrg 73502becc446Smrg eval supported=\$$cacheid 73513458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73523458e6c2Smrgprintf "%s\n" "$supported" >&6; } 735316d7e2f1Smrg if test "$supported" = "yes" ; then 735416d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 735516d7e2f1Smrg found="yes" 735616d7e2f1Smrg fi 735716d7e2f1Smrg fi 735816d7e2f1Smrg 735916d7e2f1Smrg if test $found = "no" ; then 73602becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 736116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 736216d7e2f1Smrg fi 736316d7e2f1Smrg 73642becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 736516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 736616d7e2f1Smrg fi 736716d7e2f1Smrg 736816d7e2f1Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 736916d7e2f1Smrg 73703458e6c2Smrg { 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 73713458e6c2Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 73722becc446Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 73733458e6c2Smrg if eval test \${$cacheid+y} 73743458e6c2Smrgthen : 73753458e6c2Smrg printf %s "(cached) " >&6 7376c1e8faa6Smrgelse case e in #( 7377c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 737816d7e2f1Smrg/* end confdefs.h. */ 737916d7e2f1Smrgint i; 738016d7e2f1Smrgint 73813458e6c2Smrgmain (void) 738216d7e2f1Smrg{ 738316d7e2f1Smrg 738416d7e2f1Smrg ; 738516d7e2f1Smrg return 0; 738616d7e2f1Smrg} 738716d7e2f1Smrg_ACEOF 73883458e6c2Smrgif ac_fn_c_try_link "$LINENO" 73893458e6c2Smrgthen : 73902becc446Smrg eval $cacheid=yes 7391c1e8faa6Smrgelse case e in #( 7392c1e8faa6Smrg e) eval $cacheid=no ;; 7393c1e8faa6Smrgesac 739416d7e2f1Smrgfi 73953458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7396c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7397c1e8faa6Smrgesac 739816d7e2f1Smrgfi 739916d7e2f1Smrg 740016d7e2f1Smrg 740116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 740216d7e2f1Smrg 74032becc446Smrg eval supported=\$$cacheid 74043458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74053458e6c2Smrgprintf "%s\n" "$supported" >&6; } 740616d7e2f1Smrg if test "$supported" = "yes" ; then 740716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 740816d7e2f1Smrg found="yes" 740916d7e2f1Smrg fi 741016d7e2f1Smrg fi 741116d7e2f1Smrg 741216d7e2f1Smrg 741316d7e2f1Smrg 741416d7e2f1Smrg 741516d7e2f1Smrg 741616d7e2f1Smrg 741716d7e2f1Smrg 74182becc446Smrg 74192becc446Smrg 74202becc446Smrg 74212becc446Smrg 74222becc446Smrg 74232becc446Smrg 74242becc446Smrg 74252becc446Smrg 742616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 742716d7e2f1Smrg 74282becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 742916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74303458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74313458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74323458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74333458e6c2Smrgthen : 74343458e6c2Smrg printf %s "(cached) " >&6 7435c1e8faa6Smrgelse case e in #( 7436c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 743716d7e2f1Smrg/* end confdefs.h. */ 743816d7e2f1Smrgint i; 743916d7e2f1Smrg_ACEOF 74403458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 74413458e6c2Smrgthen : 744216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7443c1e8faa6Smrgelse case e in #( 7444c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7445c1e8faa6Smrgesac 744616d7e2f1Smrgfi 7447c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7448c1e8faa6Smrgesac 744916d7e2f1Smrgfi 74503458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74513458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74522becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 745316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 745416d7e2f1Smrgfi 745516d7e2f1Smrg 74562becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74572becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 745816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 745916d7e2f1Smrg fi 746016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74613458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74623458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74633458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 74643458e6c2Smrgthen : 74653458e6c2Smrg printf %s "(cached) " >&6 7466c1e8faa6Smrgelse case e in #( 7467c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 746816d7e2f1Smrg/* end confdefs.h. */ 746916d7e2f1Smrgint i; 747016d7e2f1Smrg_ACEOF 74713458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 74723458e6c2Smrgthen : 747316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7474c1e8faa6Smrgelse case e in #( 7475c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7476c1e8faa6Smrgesac 747716d7e2f1Smrgfi 7478c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7479c1e8faa6Smrgesac 748016d7e2f1Smrgfi 74813458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74823458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74832becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 748416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 748516d7e2f1Smrgfi 748616d7e2f1Smrg 748716d7e2f1Smrgfound="no" 748816d7e2f1Smrg 748916d7e2f1Smrg if test $found = "no" ; then 74902becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 749116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 749216d7e2f1Smrg fi 749316d7e2f1Smrg 74942becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 749516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 749616d7e2f1Smrg fi 749716d7e2f1Smrg 749816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=nonnull" 749916d7e2f1Smrg 75003458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 75013458e6c2Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 75022becc446Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 75033458e6c2Smrg if eval test \${$cacheid+y} 75043458e6c2Smrgthen : 75053458e6c2Smrg printf %s "(cached) " >&6 7506c1e8faa6Smrgelse case e in #( 7507c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 750816d7e2f1Smrg/* end confdefs.h. */ 750916d7e2f1Smrgint i; 751016d7e2f1Smrgint 75113458e6c2Smrgmain (void) 751216d7e2f1Smrg{ 751316d7e2f1Smrg 751416d7e2f1Smrg ; 751516d7e2f1Smrg return 0; 751616d7e2f1Smrg} 751716d7e2f1Smrg_ACEOF 75183458e6c2Smrgif ac_fn_c_try_link "$LINENO" 75193458e6c2Smrgthen : 75202becc446Smrg eval $cacheid=yes 7521c1e8faa6Smrgelse case e in #( 7522c1e8faa6Smrg e) eval $cacheid=no ;; 7523c1e8faa6Smrgesac 752416d7e2f1Smrgfi 75253458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7526c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7527c1e8faa6Smrgesac 752816d7e2f1Smrgfi 752916d7e2f1Smrg 753016d7e2f1Smrg 753116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 753216d7e2f1Smrg 75332becc446Smrg eval supported=\$$cacheid 75343458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75353458e6c2Smrgprintf "%s\n" "$supported" >&6; } 753616d7e2f1Smrg if test "$supported" = "yes" ; then 753716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 753816d7e2f1Smrg found="yes" 753916d7e2f1Smrg fi 754016d7e2f1Smrg fi 754116d7e2f1Smrg 754216d7e2f1Smrg 754316d7e2f1Smrg 754416d7e2f1Smrg 754516d7e2f1Smrg 754616d7e2f1Smrg 754716d7e2f1Smrg 75482becc446Smrg 75492becc446Smrg 75502becc446Smrg 75512becc446Smrg 75522becc446Smrg 75532becc446Smrg 75542becc446Smrg 75552becc446Smrg 755616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 755716d7e2f1Smrg 75582becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 755916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75603458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75613458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75623458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 75633458e6c2Smrgthen : 75643458e6c2Smrg printf %s "(cached) " >&6 7565c1e8faa6Smrgelse case e in #( 7566c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 756716d7e2f1Smrg/* end confdefs.h. */ 756816d7e2f1Smrgint i; 756916d7e2f1Smrg_ACEOF 75703458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 75713458e6c2Smrgthen : 757216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7573c1e8faa6Smrgelse case e in #( 7574c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7575c1e8faa6Smrgesac 757616d7e2f1Smrgfi 7577c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7578c1e8faa6Smrgesac 757916d7e2f1Smrgfi 75803458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75813458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75822becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 758316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758416d7e2f1Smrgfi 758516d7e2f1Smrg 75862becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75872becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 758816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 758916d7e2f1Smrg fi 759016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75913458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75923458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75933458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 75943458e6c2Smrgthen : 75953458e6c2Smrg printf %s "(cached) " >&6 7596c1e8faa6Smrgelse case e in #( 7597c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 759816d7e2f1Smrg/* end confdefs.h. */ 759916d7e2f1Smrgint i; 760016d7e2f1Smrg_ACEOF 76013458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 76023458e6c2Smrgthen : 760316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7604c1e8faa6Smrgelse case e in #( 7605c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7606c1e8faa6Smrgesac 760716d7e2f1Smrgfi 7608c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7609c1e8faa6Smrgesac 761016d7e2f1Smrgfi 76113458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76123458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76132becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 761416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 761516d7e2f1Smrgfi 761616d7e2f1Smrg 761716d7e2f1Smrgfound="no" 761816d7e2f1Smrg 761916d7e2f1Smrg if test $found = "no" ; then 76202becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 762116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 762216d7e2f1Smrg fi 762316d7e2f1Smrg 76242becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 762516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 762616d7e2f1Smrg fi 762716d7e2f1Smrg 762816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=init-self" 762916d7e2f1Smrg 76303458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 76313458e6c2Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 76322becc446Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 76333458e6c2Smrg if eval test \${$cacheid+y} 76343458e6c2Smrgthen : 76353458e6c2Smrg printf %s "(cached) " >&6 7636c1e8faa6Smrgelse case e in #( 7637c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 763816d7e2f1Smrg/* end confdefs.h. */ 763916d7e2f1Smrgint i; 764016d7e2f1Smrgint 76413458e6c2Smrgmain (void) 764216d7e2f1Smrg{ 764316d7e2f1Smrg 764416d7e2f1Smrg ; 764516d7e2f1Smrg return 0; 764616d7e2f1Smrg} 764716d7e2f1Smrg_ACEOF 76483458e6c2Smrgif ac_fn_c_try_link "$LINENO" 76493458e6c2Smrgthen : 76502becc446Smrg eval $cacheid=yes 7651c1e8faa6Smrgelse case e in #( 7652c1e8faa6Smrg e) eval $cacheid=no ;; 7653c1e8faa6Smrgesac 765416d7e2f1Smrgfi 76553458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7656c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7657c1e8faa6Smrgesac 765816d7e2f1Smrgfi 765916d7e2f1Smrg 766016d7e2f1Smrg 766116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 766216d7e2f1Smrg 76632becc446Smrg eval supported=\$$cacheid 76643458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76653458e6c2Smrgprintf "%s\n" "$supported" >&6; } 766616d7e2f1Smrg if test "$supported" = "yes" ; then 766716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 766816d7e2f1Smrg found="yes" 766916d7e2f1Smrg fi 767016d7e2f1Smrg fi 767116d7e2f1Smrg 767216d7e2f1Smrg 767316d7e2f1Smrg 767416d7e2f1Smrg 767516d7e2f1Smrg 767616d7e2f1Smrg 767716d7e2f1Smrg 76782becc446Smrg 76792becc446Smrg 76802becc446Smrg 76812becc446Smrg 76822becc446Smrg 76832becc446Smrg 76842becc446Smrg 76852becc446Smrg 768616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 768716d7e2f1Smrg 76882becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 768916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76903458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76913458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76923458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 76933458e6c2Smrgthen : 76943458e6c2Smrg printf %s "(cached) " >&6 7695c1e8faa6Smrgelse case e in #( 7696c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 769716d7e2f1Smrg/* end confdefs.h. */ 769816d7e2f1Smrgint i; 769916d7e2f1Smrg_ACEOF 77003458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 77013458e6c2Smrgthen : 770216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7703c1e8faa6Smrgelse case e in #( 7704c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7705c1e8faa6Smrgesac 770616d7e2f1Smrgfi 7707c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7708c1e8faa6Smrgesac 770916d7e2f1Smrgfi 77103458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77113458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 77122becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 771316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 771416d7e2f1Smrgfi 771516d7e2f1Smrg 77162becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77172becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 771816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 771916d7e2f1Smrg fi 772016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77213458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77223458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77233458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 77243458e6c2Smrgthen : 77253458e6c2Smrg printf %s "(cached) " >&6 7726c1e8faa6Smrgelse case e in #( 7727c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 772816d7e2f1Smrg/* end confdefs.h. */ 772916d7e2f1Smrgint i; 773016d7e2f1Smrg_ACEOF 77313458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 77323458e6c2Smrgthen : 773316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7734c1e8faa6Smrgelse case e in #( 7735c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7736c1e8faa6Smrgesac 773716d7e2f1Smrgfi 7738c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7739c1e8faa6Smrgesac 774016d7e2f1Smrgfi 77413458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77423458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77432becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 774416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 774516d7e2f1Smrgfi 774616d7e2f1Smrg 774716d7e2f1Smrgfound="no" 774816d7e2f1Smrg 774916d7e2f1Smrg if test $found = "no" ; then 77502becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 775116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 775216d7e2f1Smrg fi 775316d7e2f1Smrg 77542becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 775516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 775616d7e2f1Smrg fi 775716d7e2f1Smrg 775816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=main" 775916d7e2f1Smrg 77603458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 77613458e6c2Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 77622becc446Smrg cacheid=xorg_cv_cc_flag__Werror_main 77633458e6c2Smrg if eval test \${$cacheid+y} 77643458e6c2Smrgthen : 77653458e6c2Smrg printf %s "(cached) " >&6 7766c1e8faa6Smrgelse case e in #( 7767c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 776816d7e2f1Smrg/* end confdefs.h. */ 776916d7e2f1Smrgint i; 777016d7e2f1Smrgint 77713458e6c2Smrgmain (void) 777216d7e2f1Smrg{ 777316d7e2f1Smrg 777416d7e2f1Smrg ; 777516d7e2f1Smrg return 0; 777616d7e2f1Smrg} 777716d7e2f1Smrg_ACEOF 77783458e6c2Smrgif ac_fn_c_try_link "$LINENO" 77793458e6c2Smrgthen : 77802becc446Smrg eval $cacheid=yes 7781c1e8faa6Smrgelse case e in #( 7782c1e8faa6Smrg e) eval $cacheid=no ;; 7783c1e8faa6Smrgesac 778416d7e2f1Smrgfi 77853458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7786c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7787c1e8faa6Smrgesac 778816d7e2f1Smrgfi 778916d7e2f1Smrg 779016d7e2f1Smrg 779116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 779216d7e2f1Smrg 77932becc446Smrg eval supported=\$$cacheid 77943458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77953458e6c2Smrgprintf "%s\n" "$supported" >&6; } 779616d7e2f1Smrg if test "$supported" = "yes" ; then 779716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 779816d7e2f1Smrg found="yes" 779916d7e2f1Smrg fi 780016d7e2f1Smrg fi 780116d7e2f1Smrg 780216d7e2f1Smrg 780316d7e2f1Smrg 780416d7e2f1Smrg 780516d7e2f1Smrg 780616d7e2f1Smrg 780716d7e2f1Smrg 78082becc446Smrg 78092becc446Smrg 78102becc446Smrg 78112becc446Smrg 78122becc446Smrg 78132becc446Smrg 78142becc446Smrg 78152becc446Smrg 781616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 781716d7e2f1Smrg 78182becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 781916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78203458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78213458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78223458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 78233458e6c2Smrgthen : 78243458e6c2Smrg printf %s "(cached) " >&6 7825c1e8faa6Smrgelse case e in #( 7826c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 782716d7e2f1Smrg/* end confdefs.h. */ 782816d7e2f1Smrgint i; 782916d7e2f1Smrg_ACEOF 78303458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 78313458e6c2Smrgthen : 783216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7833c1e8faa6Smrgelse case e in #( 7834c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7835c1e8faa6Smrgesac 783616d7e2f1Smrgfi 7837c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7838c1e8faa6Smrgesac 783916d7e2f1Smrgfi 78403458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78413458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78422becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 784316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 784416d7e2f1Smrgfi 784516d7e2f1Smrg 78462becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78472becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 784816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 784916d7e2f1Smrg fi 785016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78513458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78523458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78533458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78543458e6c2Smrgthen : 78553458e6c2Smrg printf %s "(cached) " >&6 7856c1e8faa6Smrgelse case e in #( 7857c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 785816d7e2f1Smrg/* end confdefs.h. */ 785916d7e2f1Smrgint i; 786016d7e2f1Smrg_ACEOF 78613458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 78623458e6c2Smrgthen : 786316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7864c1e8faa6Smrgelse case e in #( 7865c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7866c1e8faa6Smrgesac 786716d7e2f1Smrgfi 7868c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7869c1e8faa6Smrgesac 787016d7e2f1Smrgfi 78713458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78723458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78732becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 787416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 787516d7e2f1Smrgfi 787616d7e2f1Smrg 787716d7e2f1Smrgfound="no" 787816d7e2f1Smrg 787916d7e2f1Smrg if test $found = "no" ; then 78802becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 788116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 788216d7e2f1Smrg fi 788316d7e2f1Smrg 78842becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 788516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 788616d7e2f1Smrg fi 788716d7e2f1Smrg 788816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 788916d7e2f1Smrg 78903458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 78913458e6c2Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 78922becc446Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 78933458e6c2Smrg if eval test \${$cacheid+y} 78943458e6c2Smrgthen : 78953458e6c2Smrg printf %s "(cached) " >&6 7896c1e8faa6Smrgelse case e in #( 7897c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789816d7e2f1Smrg/* end confdefs.h. */ 789916d7e2f1Smrgint i; 790016d7e2f1Smrgint 79013458e6c2Smrgmain (void) 790216d7e2f1Smrg{ 790316d7e2f1Smrg 790416d7e2f1Smrg ; 790516d7e2f1Smrg return 0; 790616d7e2f1Smrg} 790716d7e2f1Smrg_ACEOF 79083458e6c2Smrgif ac_fn_c_try_link "$LINENO" 79093458e6c2Smrgthen : 79102becc446Smrg eval $cacheid=yes 7911c1e8faa6Smrgelse case e in #( 7912c1e8faa6Smrg e) eval $cacheid=no ;; 7913c1e8faa6Smrgesac 791416d7e2f1Smrgfi 79153458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7916c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 7917c1e8faa6Smrgesac 791816d7e2f1Smrgfi 791916d7e2f1Smrg 792016d7e2f1Smrg 792116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 792216d7e2f1Smrg 79232becc446Smrg eval supported=\$$cacheid 79243458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79253458e6c2Smrgprintf "%s\n" "$supported" >&6; } 792616d7e2f1Smrg if test "$supported" = "yes" ; then 792716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 792816d7e2f1Smrg found="yes" 792916d7e2f1Smrg fi 793016d7e2f1Smrg fi 793116d7e2f1Smrg 793216d7e2f1Smrg 793316d7e2f1Smrg 793416d7e2f1Smrg 793516d7e2f1Smrg 793616d7e2f1Smrg 793716d7e2f1Smrg 79382becc446Smrg 79392becc446Smrg 79402becc446Smrg 79412becc446Smrg 79422becc446Smrg 79432becc446Smrg 79442becc446Smrg 79452becc446Smrg 794616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 794716d7e2f1Smrg 79482becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 794916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79503458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79513458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79523458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 79533458e6c2Smrgthen : 79543458e6c2Smrg printf %s "(cached) " >&6 7955c1e8faa6Smrgelse case e in #( 7956c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 795716d7e2f1Smrg/* end confdefs.h. */ 795816d7e2f1Smrgint i; 795916d7e2f1Smrg_ACEOF 79603458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 79613458e6c2Smrgthen : 796216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7963c1e8faa6Smrgelse case e in #( 7964c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7965c1e8faa6Smrgesac 796616d7e2f1Smrgfi 7967c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7968c1e8faa6Smrgesac 796916d7e2f1Smrgfi 79703458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79713458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79722becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 797316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 797416d7e2f1Smrgfi 797516d7e2f1Smrg 79762becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79772becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 797816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 797916d7e2f1Smrg fi 798016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79813458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79823458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79833458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 79843458e6c2Smrgthen : 79853458e6c2Smrg printf %s "(cached) " >&6 7986c1e8faa6Smrgelse case e in #( 7987c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 798816d7e2f1Smrg/* end confdefs.h. */ 798916d7e2f1Smrgint i; 799016d7e2f1Smrg_ACEOF 79913458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 79923458e6c2Smrgthen : 799316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7994c1e8faa6Smrgelse case e in #( 7995c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7996c1e8faa6Smrgesac 799716d7e2f1Smrgfi 7998c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7999c1e8faa6Smrgesac 800016d7e2f1Smrgfi 80013458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80023458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80032becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 800416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 800516d7e2f1Smrgfi 800616d7e2f1Smrg 800716d7e2f1Smrgfound="no" 800816d7e2f1Smrg 800916d7e2f1Smrg if test $found = "no" ; then 80102becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 801116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 801216d7e2f1Smrg fi 801316d7e2f1Smrg 80142becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 801516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 801616d7e2f1Smrg fi 801716d7e2f1Smrg 801816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 801916d7e2f1Smrg 80203458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 80213458e6c2Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 80222becc446Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 80233458e6c2Smrg if eval test \${$cacheid+y} 80243458e6c2Smrgthen : 80253458e6c2Smrg printf %s "(cached) " >&6 8026c1e8faa6Smrgelse case e in #( 8027c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 802816d7e2f1Smrg/* end confdefs.h. */ 802916d7e2f1Smrgint i; 803016d7e2f1Smrgint 80313458e6c2Smrgmain (void) 803216d7e2f1Smrg{ 803316d7e2f1Smrg 803416d7e2f1Smrg ; 803516d7e2f1Smrg return 0; 803616d7e2f1Smrg} 803716d7e2f1Smrg_ACEOF 80383458e6c2Smrgif ac_fn_c_try_link "$LINENO" 80393458e6c2Smrgthen : 80402becc446Smrg eval $cacheid=yes 8041c1e8faa6Smrgelse case e in #( 8042c1e8faa6Smrg e) eval $cacheid=no ;; 8043c1e8faa6Smrgesac 804416d7e2f1Smrgfi 80453458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8046c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8047c1e8faa6Smrgesac 804816d7e2f1Smrgfi 804916d7e2f1Smrg 805016d7e2f1Smrg 805116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 805216d7e2f1Smrg 80532becc446Smrg eval supported=\$$cacheid 80543458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80553458e6c2Smrgprintf "%s\n" "$supported" >&6; } 805616d7e2f1Smrg if test "$supported" = "yes" ; then 805716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 805816d7e2f1Smrg found="yes" 805916d7e2f1Smrg fi 806016d7e2f1Smrg fi 806116d7e2f1Smrg 806216d7e2f1Smrg 806316d7e2f1Smrg 806416d7e2f1Smrg 806516d7e2f1Smrg 806616d7e2f1Smrg 806716d7e2f1Smrg 80682becc446Smrg 80692becc446Smrg 80702becc446Smrg 80712becc446Smrg 80722becc446Smrg 80732becc446Smrg 80742becc446Smrg 80752becc446Smrg 807616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 807716d7e2f1Smrg 80782becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 807916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80803458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80813458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80823458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 80833458e6c2Smrgthen : 80843458e6c2Smrg printf %s "(cached) " >&6 8085c1e8faa6Smrgelse case e in #( 8086c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 808716d7e2f1Smrg/* end confdefs.h. */ 808816d7e2f1Smrgint i; 808916d7e2f1Smrg_ACEOF 80903458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 80913458e6c2Smrgthen : 809216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8093c1e8faa6Smrgelse case e in #( 8094c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8095c1e8faa6Smrgesac 809616d7e2f1Smrgfi 8097c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8098c1e8faa6Smrgesac 809916d7e2f1Smrgfi 81003458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81013458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81022becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 810316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810416d7e2f1Smrgfi 810516d7e2f1Smrg 81062becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81072becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 810816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 810916d7e2f1Smrg fi 811016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81113458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81123458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81133458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81143458e6c2Smrgthen : 81153458e6c2Smrg printf %s "(cached) " >&6 8116c1e8faa6Smrgelse case e in #( 8117c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 811816d7e2f1Smrg/* end confdefs.h. */ 811916d7e2f1Smrgint i; 812016d7e2f1Smrg_ACEOF 81213458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 81223458e6c2Smrgthen : 812316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8124c1e8faa6Smrgelse case e in #( 8125c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8126c1e8faa6Smrgesac 812716d7e2f1Smrgfi 8128c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8129c1e8faa6Smrgesac 813016d7e2f1Smrgfi 81313458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81323458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81332becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 813416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 813516d7e2f1Smrgfi 813616d7e2f1Smrg 813716d7e2f1Smrgfound="no" 813816d7e2f1Smrg 813916d7e2f1Smrg if test $found = "no" ; then 81402becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 814116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 814216d7e2f1Smrg fi 814316d7e2f1Smrg 81442becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 814516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 814616d7e2f1Smrg fi 814716d7e2f1Smrg 814816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=return-type" 814916d7e2f1Smrg 81503458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 81513458e6c2Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 81522becc446Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 81533458e6c2Smrg if eval test \${$cacheid+y} 81543458e6c2Smrgthen : 81553458e6c2Smrg printf %s "(cached) " >&6 8156c1e8faa6Smrgelse case e in #( 8157c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 815816d7e2f1Smrg/* end confdefs.h. */ 815916d7e2f1Smrgint i; 816016d7e2f1Smrgint 81613458e6c2Smrgmain (void) 816216d7e2f1Smrg{ 816316d7e2f1Smrg 816416d7e2f1Smrg ; 816516d7e2f1Smrg return 0; 816616d7e2f1Smrg} 816716d7e2f1Smrg_ACEOF 81683458e6c2Smrgif ac_fn_c_try_link "$LINENO" 81693458e6c2Smrgthen : 81702becc446Smrg eval $cacheid=yes 8171c1e8faa6Smrgelse case e in #( 8172c1e8faa6Smrg e) eval $cacheid=no ;; 8173c1e8faa6Smrgesac 817416d7e2f1Smrgfi 81753458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8176c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8177c1e8faa6Smrgesac 817816d7e2f1Smrgfi 817916d7e2f1Smrg 818016d7e2f1Smrg 818116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 818216d7e2f1Smrg 81832becc446Smrg eval supported=\$$cacheid 81843458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81853458e6c2Smrgprintf "%s\n" "$supported" >&6; } 818616d7e2f1Smrg if test "$supported" = "yes" ; then 818716d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 818816d7e2f1Smrg found="yes" 818916d7e2f1Smrg fi 819016d7e2f1Smrg fi 819116d7e2f1Smrg 819216d7e2f1Smrg if test $found = "no" ; then 81932becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 819416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 819516d7e2f1Smrg fi 819616d7e2f1Smrg 81972becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 819816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 819916d7e2f1Smrg fi 820016d7e2f1Smrg 820116d7e2f1Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 820216d7e2f1Smrg 82033458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 82043458e6c2Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 82052becc446Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 82063458e6c2Smrg if eval test \${$cacheid+y} 82073458e6c2Smrgthen : 82083458e6c2Smrg printf %s "(cached) " >&6 8209c1e8faa6Smrgelse case e in #( 8210c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 821116d7e2f1Smrg/* end confdefs.h. */ 821216d7e2f1Smrgint i; 821316d7e2f1Smrgint 82143458e6c2Smrgmain (void) 821516d7e2f1Smrg{ 821616d7e2f1Smrg 821716d7e2f1Smrg ; 821816d7e2f1Smrg return 0; 821916d7e2f1Smrg} 822016d7e2f1Smrg_ACEOF 82213458e6c2Smrgif ac_fn_c_try_link "$LINENO" 82223458e6c2Smrgthen : 82232becc446Smrg eval $cacheid=yes 8224c1e8faa6Smrgelse case e in #( 8225c1e8faa6Smrg e) eval $cacheid=no ;; 8226c1e8faa6Smrgesac 822716d7e2f1Smrgfi 82283458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8229c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8230c1e8faa6Smrgesac 823116d7e2f1Smrgfi 823216d7e2f1Smrg 823316d7e2f1Smrg 823416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 823516d7e2f1Smrg 82362becc446Smrg eval supported=\$$cacheid 82373458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82383458e6c2Smrgprintf "%s\n" "$supported" >&6; } 823916d7e2f1Smrg if test "$supported" = "yes" ; then 824016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 824116d7e2f1Smrg found="yes" 824216d7e2f1Smrg fi 824316d7e2f1Smrg fi 824416d7e2f1Smrg 824516d7e2f1Smrg 824616d7e2f1Smrg 824716d7e2f1Smrg 824816d7e2f1Smrg 824916d7e2f1Smrg 825016d7e2f1Smrg 82512becc446Smrg 82522becc446Smrg 82532becc446Smrg 82542becc446Smrg 82552becc446Smrg 82562becc446Smrg 82572becc446Smrg 82582becc446Smrg 825916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 826016d7e2f1Smrg 82612becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 826216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82633458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82643458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82653458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82663458e6c2Smrgthen : 82673458e6c2Smrg printf %s "(cached) " >&6 8268c1e8faa6Smrgelse case e in #( 8269c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 827016d7e2f1Smrg/* end confdefs.h. */ 827116d7e2f1Smrgint i; 827216d7e2f1Smrg_ACEOF 82733458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 82743458e6c2Smrgthen : 827516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8276c1e8faa6Smrgelse case e in #( 8277c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8278c1e8faa6Smrgesac 827916d7e2f1Smrgfi 8280c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8281c1e8faa6Smrgesac 828216d7e2f1Smrgfi 82833458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82843458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82852becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 828616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 828716d7e2f1Smrgfi 828816d7e2f1Smrg 82892becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82902becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 829116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 829216d7e2f1Smrg fi 829316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82943458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82953458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82963458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 82973458e6c2Smrgthen : 82983458e6c2Smrg printf %s "(cached) " >&6 8299c1e8faa6Smrgelse case e in #( 8300c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 830116d7e2f1Smrg/* end confdefs.h. */ 830216d7e2f1Smrgint i; 830316d7e2f1Smrg_ACEOF 83043458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 83053458e6c2Smrgthen : 830616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8307c1e8faa6Smrgelse case e in #( 8308c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8309c1e8faa6Smrgesac 831016d7e2f1Smrgfi 8311c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8312c1e8faa6Smrgesac 831316d7e2f1Smrgfi 83143458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83153458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83162becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 831716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 831816d7e2f1Smrgfi 831916d7e2f1Smrg 832016d7e2f1Smrgfound="no" 832116d7e2f1Smrg 832216d7e2f1Smrg if test $found = "no" ; then 83232becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 832416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 832516d7e2f1Smrg fi 832616d7e2f1Smrg 83272becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 832816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 832916d7e2f1Smrg fi 833016d7e2f1Smrg 833116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 833216d7e2f1Smrg 83333458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 83343458e6c2Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 83352becc446Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 83363458e6c2Smrg if eval test \${$cacheid+y} 83373458e6c2Smrgthen : 83383458e6c2Smrg printf %s "(cached) " >&6 8339c1e8faa6Smrgelse case e in #( 8340c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 834116d7e2f1Smrg/* end confdefs.h. */ 834216d7e2f1Smrgint i; 834316d7e2f1Smrgint 83443458e6c2Smrgmain (void) 834516d7e2f1Smrg{ 834616d7e2f1Smrg 834716d7e2f1Smrg ; 834816d7e2f1Smrg return 0; 834916d7e2f1Smrg} 835016d7e2f1Smrg_ACEOF 83513458e6c2Smrgif ac_fn_c_try_link "$LINENO" 83523458e6c2Smrgthen : 83532becc446Smrg eval $cacheid=yes 8354c1e8faa6Smrgelse case e in #( 8355c1e8faa6Smrg e) eval $cacheid=no ;; 8356c1e8faa6Smrgesac 835716d7e2f1Smrgfi 83583458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8359c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8360c1e8faa6Smrgesac 836116d7e2f1Smrgfi 836216d7e2f1Smrg 836316d7e2f1Smrg 836416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 836516d7e2f1Smrg 83662becc446Smrg eval supported=\$$cacheid 83673458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83683458e6c2Smrgprintf "%s\n" "$supported" >&6; } 836916d7e2f1Smrg if test "$supported" = "yes" ; then 837016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 837116d7e2f1Smrg found="yes" 837216d7e2f1Smrg fi 837316d7e2f1Smrg fi 837416d7e2f1Smrg 837516d7e2f1Smrg 837616d7e2f1Smrg 837716d7e2f1Smrg 837816d7e2f1Smrg 837916d7e2f1Smrg 838016d7e2f1Smrg 83812becc446Smrg 83822becc446Smrg 83832becc446Smrg 83842becc446Smrg 83852becc446Smrg 83862becc446Smrg 83872becc446Smrg 83882becc446Smrg 838916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 839016d7e2f1Smrg 83912becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 839216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83933458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83943458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83953458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 83963458e6c2Smrgthen : 83973458e6c2Smrg printf %s "(cached) " >&6 8398c1e8faa6Smrgelse case e in #( 8399c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 840016d7e2f1Smrg/* end confdefs.h. */ 840116d7e2f1Smrgint i; 840216d7e2f1Smrg_ACEOF 84033458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 84043458e6c2Smrgthen : 840516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8406c1e8faa6Smrgelse case e in #( 8407c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8408c1e8faa6Smrgesac 840916d7e2f1Smrgfi 8410c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8411c1e8faa6Smrgesac 841216d7e2f1Smrgfi 84133458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84143458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84152becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 841616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 841716d7e2f1Smrgfi 841816d7e2f1Smrg 84192becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84202becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 842116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 842216d7e2f1Smrg fi 842316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84243458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84253458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84263458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84273458e6c2Smrgthen : 84283458e6c2Smrg printf %s "(cached) " >&6 8429c1e8faa6Smrgelse case e in #( 8430c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 843116d7e2f1Smrg/* end confdefs.h. */ 843216d7e2f1Smrgint i; 843316d7e2f1Smrg_ACEOF 84343458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 84353458e6c2Smrgthen : 843616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8437c1e8faa6Smrgelse case e in #( 8438c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8439c1e8faa6Smrgesac 844016d7e2f1Smrgfi 8441c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8442c1e8faa6Smrgesac 844316d7e2f1Smrgfi 84443458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84453458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84462becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 844716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 844816d7e2f1Smrgfi 844916d7e2f1Smrg 845016d7e2f1Smrgfound="no" 845116d7e2f1Smrg 845216d7e2f1Smrg if test $found = "no" ; then 84532becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 845416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 845516d7e2f1Smrg fi 845616d7e2f1Smrg 84572becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 845816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 845916d7e2f1Smrg fi 846016d7e2f1Smrg 846116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 846216d7e2f1Smrg 84633458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 84643458e6c2Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 84652becc446Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 84663458e6c2Smrg if eval test \${$cacheid+y} 84673458e6c2Smrgthen : 84683458e6c2Smrg printf %s "(cached) " >&6 8469c1e8faa6Smrgelse case e in #( 8470c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 847116d7e2f1Smrg/* end confdefs.h. */ 847216d7e2f1Smrgint i; 847316d7e2f1Smrgint 84743458e6c2Smrgmain (void) 847516d7e2f1Smrg{ 847616d7e2f1Smrg 847716d7e2f1Smrg ; 847816d7e2f1Smrg return 0; 847916d7e2f1Smrg} 848016d7e2f1Smrg_ACEOF 84813458e6c2Smrgif ac_fn_c_try_link "$LINENO" 84823458e6c2Smrgthen : 84832becc446Smrg eval $cacheid=yes 8484c1e8faa6Smrgelse case e in #( 8485c1e8faa6Smrg e) eval $cacheid=no ;; 8486c1e8faa6Smrgesac 848716d7e2f1Smrgfi 84883458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8489c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8490c1e8faa6Smrgesac 849116d7e2f1Smrgfi 849216d7e2f1Smrg 849316d7e2f1Smrg 849416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 849516d7e2f1Smrg 84962becc446Smrg eval supported=\$$cacheid 84973458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84983458e6c2Smrgprintf "%s\n" "$supported" >&6; } 849916d7e2f1Smrg if test "$supported" = "yes" ; then 850016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 850116d7e2f1Smrg found="yes" 850216d7e2f1Smrg fi 850316d7e2f1Smrg fi 850416d7e2f1Smrg 850516d7e2f1Smrg 850616d7e2f1Smrg 850716d7e2f1Smrg 850816d7e2f1Smrg 850916d7e2f1Smrg 851016d7e2f1Smrg 85112becc446Smrg 85122becc446Smrg 85132becc446Smrg 85142becc446Smrg 85152becc446Smrg 85162becc446Smrg 85172becc446Smrg 85182becc446Smrg 851916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 852016d7e2f1Smrg 85212becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 852216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85233458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85243458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85253458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 85263458e6c2Smrgthen : 85273458e6c2Smrg printf %s "(cached) " >&6 8528c1e8faa6Smrgelse case e in #( 8529c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853016d7e2f1Smrg/* end confdefs.h. */ 853116d7e2f1Smrgint i; 853216d7e2f1Smrg_ACEOF 85333458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 85343458e6c2Smrgthen : 853516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8536c1e8faa6Smrgelse case e in #( 8537c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8538c1e8faa6Smrgesac 853916d7e2f1Smrgfi 8540c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8541c1e8faa6Smrgesac 854216d7e2f1Smrgfi 85433458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85443458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85452becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 854616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 854716d7e2f1Smrgfi 854816d7e2f1Smrg 85492becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85502becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 855116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 855216d7e2f1Smrg fi 855316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85543458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85553458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85563458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 85573458e6c2Smrgthen : 85583458e6c2Smrg printf %s "(cached) " >&6 8559c1e8faa6Smrgelse case e in #( 8560c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 856116d7e2f1Smrg/* end confdefs.h. */ 856216d7e2f1Smrgint i; 856316d7e2f1Smrg_ACEOF 85643458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 85653458e6c2Smrgthen : 856616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8567c1e8faa6Smrgelse case e in #( 8568c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8569c1e8faa6Smrgesac 857016d7e2f1Smrgfi 8571c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8572c1e8faa6Smrgesac 857316d7e2f1Smrgfi 85743458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85753458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85762becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 857716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 857816d7e2f1Smrgfi 857916d7e2f1Smrg 858016d7e2f1Smrgfound="no" 858116d7e2f1Smrg 858216d7e2f1Smrg if test $found = "no" ; then 85832becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 858416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 858516d7e2f1Smrg fi 858616d7e2f1Smrg 85872becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 858816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 858916d7e2f1Smrg fi 859016d7e2f1Smrg 859116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=write-strings" 859216d7e2f1Smrg 85933458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 85943458e6c2Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 85952becc446Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 85963458e6c2Smrg if eval test \${$cacheid+y} 85973458e6c2Smrgthen : 85983458e6c2Smrg printf %s "(cached) " >&6 8599c1e8faa6Smrgelse case e in #( 8600c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 860116d7e2f1Smrg/* end confdefs.h. */ 860216d7e2f1Smrgint i; 860316d7e2f1Smrgint 86043458e6c2Smrgmain (void) 860516d7e2f1Smrg{ 860616d7e2f1Smrg 860716d7e2f1Smrg ; 860816d7e2f1Smrg return 0; 860916d7e2f1Smrg} 861016d7e2f1Smrg_ACEOF 86113458e6c2Smrgif ac_fn_c_try_link "$LINENO" 86123458e6c2Smrgthen : 86132becc446Smrg eval $cacheid=yes 8614c1e8faa6Smrgelse case e in #( 8615c1e8faa6Smrg e) eval $cacheid=no ;; 8616c1e8faa6Smrgesac 861716d7e2f1Smrgfi 86183458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8619c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8620c1e8faa6Smrgesac 862116d7e2f1Smrgfi 862216d7e2f1Smrg 862316d7e2f1Smrg 862416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862516d7e2f1Smrg 86262becc446Smrg eval supported=\$$cacheid 86273458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86283458e6c2Smrgprintf "%s\n" "$supported" >&6; } 862916d7e2f1Smrg if test "$supported" = "yes" ; then 863016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 863116d7e2f1Smrg found="yes" 863216d7e2f1Smrg fi 863316d7e2f1Smrg fi 863416d7e2f1Smrg 863516d7e2f1Smrg 863616d7e2f1Smrg 863716d7e2f1Smrg 863816d7e2f1Smrg 863916d7e2f1Smrg 864016d7e2f1Smrg 86412becc446Smrg 86422becc446Smrg 86432becc446Smrg 86442becc446Smrg 86452becc446Smrg 86462becc446Smrg 86472becc446Smrg 86482becc446Smrg 864916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 865016d7e2f1Smrg 86512becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 865216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86533458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86543458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86553458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 86563458e6c2Smrgthen : 86573458e6c2Smrg printf %s "(cached) " >&6 8658c1e8faa6Smrgelse case e in #( 8659c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 866016d7e2f1Smrg/* end confdefs.h. */ 866116d7e2f1Smrgint i; 866216d7e2f1Smrg_ACEOF 86633458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 86643458e6c2Smrgthen : 866516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8666c1e8faa6Smrgelse case e in #( 8667c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8668c1e8faa6Smrgesac 866916d7e2f1Smrgfi 8670c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8671c1e8faa6Smrgesac 867216d7e2f1Smrgfi 86733458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86743458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86752becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 867616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867716d7e2f1Smrgfi 867816d7e2f1Smrg 86792becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86802becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 868116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 868216d7e2f1Smrg fi 868316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86843458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86853458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86863458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 86873458e6c2Smrgthen : 86883458e6c2Smrg printf %s "(cached) " >&6 8689c1e8faa6Smrgelse case e in #( 8690c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 869116d7e2f1Smrg/* end confdefs.h. */ 869216d7e2f1Smrgint i; 869316d7e2f1Smrg_ACEOF 86943458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 86953458e6c2Smrgthen : 869616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8697c1e8faa6Smrgelse case e in #( 8698c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8699c1e8faa6Smrgesac 870016d7e2f1Smrgfi 8701c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8702c1e8faa6Smrgesac 870316d7e2f1Smrgfi 87043458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87053458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87062becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 870716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 870816d7e2f1Smrgfi 870916d7e2f1Smrg 871016d7e2f1Smrgfound="no" 871116d7e2f1Smrg 871216d7e2f1Smrg if test $found = "no" ; then 87132becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 871416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 871516d7e2f1Smrg fi 871616d7e2f1Smrg 87172becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 871816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 871916d7e2f1Smrg fi 872016d7e2f1Smrg 872116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=address" 872216d7e2f1Smrg 87233458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 87243458e6c2Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 87252becc446Smrg cacheid=xorg_cv_cc_flag__Werror_address 87263458e6c2Smrg if eval test \${$cacheid+y} 87273458e6c2Smrgthen : 87283458e6c2Smrg printf %s "(cached) " >&6 8729c1e8faa6Smrgelse case e in #( 8730c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 873116d7e2f1Smrg/* end confdefs.h. */ 873216d7e2f1Smrgint i; 873316d7e2f1Smrgint 87343458e6c2Smrgmain (void) 873516d7e2f1Smrg{ 873616d7e2f1Smrg 873716d7e2f1Smrg ; 873816d7e2f1Smrg return 0; 873916d7e2f1Smrg} 874016d7e2f1Smrg_ACEOF 87413458e6c2Smrgif ac_fn_c_try_link "$LINENO" 87423458e6c2Smrgthen : 87432becc446Smrg eval $cacheid=yes 8744c1e8faa6Smrgelse case e in #( 8745c1e8faa6Smrg e) eval $cacheid=no ;; 8746c1e8faa6Smrgesac 874716d7e2f1Smrgfi 87483458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8749c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8750c1e8faa6Smrgesac 875116d7e2f1Smrgfi 875216d7e2f1Smrg 875316d7e2f1Smrg 875416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 875516d7e2f1Smrg 87562becc446Smrg eval supported=\$$cacheid 87573458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87583458e6c2Smrgprintf "%s\n" "$supported" >&6; } 875916d7e2f1Smrg if test "$supported" = "yes" ; then 876016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 876116d7e2f1Smrg found="yes" 876216d7e2f1Smrg fi 876316d7e2f1Smrg fi 876416d7e2f1Smrg 876516d7e2f1Smrg 876616d7e2f1Smrg 876716d7e2f1Smrg 876816d7e2f1Smrg 876916d7e2f1Smrg 877016d7e2f1Smrg 87712becc446Smrg 87722becc446Smrg 87732becc446Smrg 87742becc446Smrg 87752becc446Smrg 87762becc446Smrg 87772becc446Smrg 87782becc446Smrg 877916d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 878016d7e2f1Smrg 87812becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 878216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87833458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87843458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87853458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87863458e6c2Smrgthen : 87873458e6c2Smrg printf %s "(cached) " >&6 8788c1e8faa6Smrgelse case e in #( 8789c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 879016d7e2f1Smrg/* end confdefs.h. */ 879116d7e2f1Smrgint i; 879216d7e2f1Smrg_ACEOF 87933458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 87943458e6c2Smrgthen : 879516d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8796c1e8faa6Smrgelse case e in #( 8797c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8798c1e8faa6Smrgesac 879916d7e2f1Smrgfi 8800c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8801c1e8faa6Smrgesac 880216d7e2f1Smrgfi 88033458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88043458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88052becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 880616d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 880716d7e2f1Smrgfi 880816d7e2f1Smrg 88092becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88102becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 881116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 881216d7e2f1Smrg fi 881316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88143458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88153458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88163458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 88173458e6c2Smrgthen : 88183458e6c2Smrg printf %s "(cached) " >&6 8819c1e8faa6Smrgelse case e in #( 8820c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 882116d7e2f1Smrg/* end confdefs.h. */ 882216d7e2f1Smrgint i; 882316d7e2f1Smrg_ACEOF 88243458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 88253458e6c2Smrgthen : 882616d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8827c1e8faa6Smrgelse case e in #( 8828c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8829c1e8faa6Smrgesac 883016d7e2f1Smrgfi 8831c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8832c1e8faa6Smrgesac 883316d7e2f1Smrgfi 88343458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88353458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88362becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 883716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 883816d7e2f1Smrgfi 883916d7e2f1Smrg 884016d7e2f1Smrgfound="no" 884116d7e2f1Smrg 884216d7e2f1Smrg if test $found = "no" ; then 88432becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 884416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 884516d7e2f1Smrg fi 884616d7e2f1Smrg 88472becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 884816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 884916d7e2f1Smrg fi 885016d7e2f1Smrg 885116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 885216d7e2f1Smrg 88533458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 88543458e6c2Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 88552becc446Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 88563458e6c2Smrg if eval test \${$cacheid+y} 88573458e6c2Smrgthen : 88583458e6c2Smrg printf %s "(cached) " >&6 8859c1e8faa6Smrgelse case e in #( 8860c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 886116d7e2f1Smrg/* end confdefs.h. */ 886216d7e2f1Smrgint i; 886316d7e2f1Smrgint 88643458e6c2Smrgmain (void) 886516d7e2f1Smrg{ 886616d7e2f1Smrg 886716d7e2f1Smrg ; 886816d7e2f1Smrg return 0; 886916d7e2f1Smrg} 887016d7e2f1Smrg_ACEOF 88713458e6c2Smrgif ac_fn_c_try_link "$LINENO" 88723458e6c2Smrgthen : 88732becc446Smrg eval $cacheid=yes 8874c1e8faa6Smrgelse case e in #( 8875c1e8faa6Smrg e) eval $cacheid=no ;; 8876c1e8faa6Smrgesac 887716d7e2f1Smrgfi 88783458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8879c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8880c1e8faa6Smrgesac 888116d7e2f1Smrgfi 888216d7e2f1Smrg 888316d7e2f1Smrg 888416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 888516d7e2f1Smrg 88862becc446Smrg eval supported=\$$cacheid 88873458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88883458e6c2Smrgprintf "%s\n" "$supported" >&6; } 888916d7e2f1Smrg if test "$supported" = "yes" ; then 889016d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 889116d7e2f1Smrg found="yes" 889216d7e2f1Smrg fi 889316d7e2f1Smrg fi 889416d7e2f1Smrg 889516d7e2f1Smrg if test $found = "no" ; then 88962becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 889716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 889816d7e2f1Smrg fi 889916d7e2f1Smrg 89002becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 890116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 890216d7e2f1Smrg fi 890316d7e2f1Smrg 890416d7e2f1Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 890516d7e2f1Smrg 89063458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 89073458e6c2Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 89082becc446Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 89093458e6c2Smrg if eval test \${$cacheid+y} 89103458e6c2Smrgthen : 89113458e6c2Smrg printf %s "(cached) " >&6 8912c1e8faa6Smrgelse case e in #( 8913c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 891416d7e2f1Smrg/* end confdefs.h. */ 891516d7e2f1Smrgint i; 891616d7e2f1Smrgint 89173458e6c2Smrgmain (void) 891816d7e2f1Smrg{ 891916d7e2f1Smrg 892016d7e2f1Smrg ; 892116d7e2f1Smrg return 0; 892216d7e2f1Smrg} 892316d7e2f1Smrg_ACEOF 89243458e6c2Smrgif ac_fn_c_try_link "$LINENO" 89253458e6c2Smrgthen : 89262becc446Smrg eval $cacheid=yes 8927c1e8faa6Smrgelse case e in #( 8928c1e8faa6Smrg e) eval $cacheid=no ;; 8929c1e8faa6Smrgesac 893016d7e2f1Smrgfi 89313458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8932c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 8933c1e8faa6Smrgesac 893416d7e2f1Smrgfi 893516d7e2f1Smrg 893616d7e2f1Smrg 893716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 893816d7e2f1Smrg 89392becc446Smrg eval supported=\$$cacheid 89403458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89413458e6c2Smrgprintf "%s\n" "$supported" >&6; } 894216d7e2f1Smrg if test "$supported" = "yes" ; then 894316d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 894416d7e2f1Smrg found="yes" 894516d7e2f1Smrg fi 894616d7e2f1Smrg fi 894716d7e2f1Smrg 894816d7e2f1Smrg 894916d7e2f1Smrg 895016d7e2f1Smrg 895116d7e2f1Smrg 895216d7e2f1Smrg 895316d7e2f1Smrg 89542becc446Smrg 89552becc446Smrg 89562becc446Smrg 89572becc446Smrg 89582becc446Smrg 89592becc446Smrg 89602becc446Smrg 89612becc446Smrg 896216d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 896316d7e2f1Smrg 89642becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 896516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89663458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89673458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89683458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 89693458e6c2Smrgthen : 89703458e6c2Smrg printf %s "(cached) " >&6 8971c1e8faa6Smrgelse case e in #( 8972c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 897316d7e2f1Smrg/* end confdefs.h. */ 897416d7e2f1Smrgint i; 897516d7e2f1Smrg_ACEOF 89763458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 89773458e6c2Smrgthen : 897816d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8979c1e8faa6Smrgelse case e in #( 8980c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8981c1e8faa6Smrgesac 898216d7e2f1Smrgfi 8983c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8984c1e8faa6Smrgesac 898516d7e2f1Smrgfi 89863458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89873458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89882becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 898916d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 899016d7e2f1Smrgfi 899116d7e2f1Smrg 89922becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89932becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 899416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 899516d7e2f1Smrg fi 899616d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89973458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89983458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89993458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 90003458e6c2Smrgthen : 90013458e6c2Smrg printf %s "(cached) " >&6 9002c1e8faa6Smrgelse case e in #( 9003c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900416d7e2f1Smrg/* end confdefs.h. */ 900516d7e2f1Smrgint i; 900616d7e2f1Smrg_ACEOF 90073458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 90083458e6c2Smrgthen : 900916d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9010c1e8faa6Smrgelse case e in #( 9011c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9012c1e8faa6Smrgesac 901316d7e2f1Smrgfi 9014c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9015c1e8faa6Smrgesac 901616d7e2f1Smrgfi 90173458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90183458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90192becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 902016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902116d7e2f1Smrgfi 902216d7e2f1Smrg 902316d7e2f1Smrgfound="no" 902416d7e2f1Smrg 902516d7e2f1Smrg if test $found = "no" ; then 90262becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 902716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 902816d7e2f1Smrg fi 902916d7e2f1Smrg 90302becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 903116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 903216d7e2f1Smrg fi 903316d7e2f1Smrg 903416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 903516d7e2f1Smrg 90363458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 90373458e6c2Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 90382becc446Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 90393458e6c2Smrg if eval test \${$cacheid+y} 90403458e6c2Smrgthen : 90413458e6c2Smrg printf %s "(cached) " >&6 9042c1e8faa6Smrgelse case e in #( 9043c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 904416d7e2f1Smrg/* end confdefs.h. */ 904516d7e2f1Smrgint i; 904616d7e2f1Smrgint 90473458e6c2Smrgmain (void) 904816d7e2f1Smrg{ 904916d7e2f1Smrg 905016d7e2f1Smrg ; 905116d7e2f1Smrg return 0; 905216d7e2f1Smrg} 905316d7e2f1Smrg_ACEOF 90543458e6c2Smrgif ac_fn_c_try_link "$LINENO" 90553458e6c2Smrgthen : 90562becc446Smrg eval $cacheid=yes 9057c1e8faa6Smrgelse case e in #( 9058c1e8faa6Smrg e) eval $cacheid=no ;; 9059c1e8faa6Smrgesac 906016d7e2f1Smrgfi 90613458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9062c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9063c1e8faa6Smrgesac 906416d7e2f1Smrgfi 906516d7e2f1Smrg 906616d7e2f1Smrg 906716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 906816d7e2f1Smrg 90692becc446Smrg eval supported=\$$cacheid 90703458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90713458e6c2Smrgprintf "%s\n" "$supported" >&6; } 907216d7e2f1Smrg if test "$supported" = "yes" ; then 907316d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 907416d7e2f1Smrg found="yes" 907516d7e2f1Smrg fi 907616d7e2f1Smrg fi 907716d7e2f1Smrg 907816d7e2f1Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 907916d7e2f1Smrgelse 90803458e6c2Smrg{ 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 90813458e6c2Smrgprintf "%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;} 908216d7e2f1Smrg 908316d7e2f1Smrg 908416d7e2f1Smrg 908516d7e2f1Smrg 908616d7e2f1Smrg 90872becc446Smrg 90882becc446Smrg 90892becc446Smrg 90902becc446Smrg 90912becc446Smrg 90922becc446Smrg 90932becc446Smrg 90942becc446Smrg 909516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 909616d7e2f1Smrg 90972becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 909816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90993458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91003458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91013458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 91023458e6c2Smrgthen : 91033458e6c2Smrg printf %s "(cached) " >&6 9104c1e8faa6Smrgelse case e in #( 9105c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 910616d7e2f1Smrg/* end confdefs.h. */ 910716d7e2f1Smrgint i; 910816d7e2f1Smrg_ACEOF 91093458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 91103458e6c2Smrgthen : 911116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9112c1e8faa6Smrgelse case e in #( 9113c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9114c1e8faa6Smrgesac 911516d7e2f1Smrgfi 9116c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9117c1e8faa6Smrgesac 911816d7e2f1Smrgfi 91193458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91203458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91212becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 912216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 912316d7e2f1Smrgfi 912416d7e2f1Smrg 91252becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91262becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 912716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 912816d7e2f1Smrg fi 912916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91303458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91313458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91323458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 91333458e6c2Smrgthen : 91343458e6c2Smrg printf %s "(cached) " >&6 9135c1e8faa6Smrgelse case e in #( 9136c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 913716d7e2f1Smrg/* end confdefs.h. */ 913816d7e2f1Smrgint i; 913916d7e2f1Smrg_ACEOF 91403458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 91413458e6c2Smrgthen : 914216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9143c1e8faa6Smrgelse case e in #( 9144c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9145c1e8faa6Smrgesac 914616d7e2f1Smrgfi 9147c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9148c1e8faa6Smrgesac 914916d7e2f1Smrgfi 91503458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91513458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91522becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 915316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 915416d7e2f1Smrgfi 915516d7e2f1Smrg 915616d7e2f1Smrgfound="no" 915716d7e2f1Smrg 915816d7e2f1Smrg if test $found = "no" ; then 91592becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 916016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 916116d7e2f1Smrg fi 916216d7e2f1Smrg 91632becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 916416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 916516d7e2f1Smrg fi 916616d7e2f1Smrg 916716d7e2f1Smrg CFLAGS="$CFLAGS -Wimplicit" 916816d7e2f1Smrg 91693458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 91703458e6c2Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 91712becc446Smrg cacheid=xorg_cv_cc_flag__Wimplicit 91723458e6c2Smrg if eval test \${$cacheid+y} 91733458e6c2Smrgthen : 91743458e6c2Smrg printf %s "(cached) " >&6 9175c1e8faa6Smrgelse case e in #( 9176c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 917716d7e2f1Smrg/* end confdefs.h. */ 917816d7e2f1Smrgint i; 917916d7e2f1Smrgint 91803458e6c2Smrgmain (void) 918116d7e2f1Smrg{ 918216d7e2f1Smrg 918316d7e2f1Smrg ; 918416d7e2f1Smrg return 0; 918516d7e2f1Smrg} 918616d7e2f1Smrg_ACEOF 91873458e6c2Smrgif ac_fn_c_try_link "$LINENO" 91883458e6c2Smrgthen : 91892becc446Smrg eval $cacheid=yes 9190c1e8faa6Smrgelse case e in #( 9191c1e8faa6Smrg e) eval $cacheid=no ;; 9192c1e8faa6Smrgesac 919316d7e2f1Smrgfi 91943458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9195c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9196c1e8faa6Smrgesac 919716d7e2f1Smrgfi 919816d7e2f1Smrg 919916d7e2f1Smrg 920016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 920116d7e2f1Smrg 92022becc446Smrg eval supported=\$$cacheid 92033458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92043458e6c2Smrgprintf "%s\n" "$supported" >&6; } 920516d7e2f1Smrg if test "$supported" = "yes" ; then 920616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 920716d7e2f1Smrg found="yes" 920816d7e2f1Smrg fi 920916d7e2f1Smrg fi 921016d7e2f1Smrg 921116d7e2f1Smrg 921216d7e2f1Smrg 921316d7e2f1Smrg 921416d7e2f1Smrg 921516d7e2f1Smrg 921616d7e2f1Smrg 92172becc446Smrg 92182becc446Smrg 92192becc446Smrg 92202becc446Smrg 92212becc446Smrg 92222becc446Smrg 92232becc446Smrg 92242becc446Smrg 922516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 922616d7e2f1Smrg 92272becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 922816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92293458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92303458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92313458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 92323458e6c2Smrgthen : 92333458e6c2Smrg printf %s "(cached) " >&6 9234c1e8faa6Smrgelse case e in #( 9235c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 923616d7e2f1Smrg/* end confdefs.h. */ 923716d7e2f1Smrgint i; 923816d7e2f1Smrg_ACEOF 92393458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 92403458e6c2Smrgthen : 924116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9242c1e8faa6Smrgelse case e in #( 9243c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9244c1e8faa6Smrgesac 924516d7e2f1Smrgfi 9246c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9247c1e8faa6Smrgesac 924816d7e2f1Smrgfi 92493458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92503458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92512becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 925216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 925316d7e2f1Smrgfi 925416d7e2f1Smrg 92552becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92562becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 925716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 925816d7e2f1Smrg fi 925916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92603458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92613458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92623458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92633458e6c2Smrgthen : 92643458e6c2Smrg printf %s "(cached) " >&6 9265c1e8faa6Smrgelse case e in #( 9266c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 926716d7e2f1Smrg/* end confdefs.h. */ 926816d7e2f1Smrgint i; 926916d7e2f1Smrg_ACEOF 92703458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 92713458e6c2Smrgthen : 927216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9273c1e8faa6Smrgelse case e in #( 9274c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9275c1e8faa6Smrgesac 927616d7e2f1Smrgfi 9277c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9278c1e8faa6Smrgesac 927916d7e2f1Smrgfi 92803458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92813458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92822becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 928316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 928416d7e2f1Smrgfi 928516d7e2f1Smrg 928616d7e2f1Smrgfound="no" 928716d7e2f1Smrg 928816d7e2f1Smrg if test $found = "no" ; then 92892becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 929016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 929116d7e2f1Smrg fi 929216d7e2f1Smrg 92932becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 929416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 929516d7e2f1Smrg fi 929616d7e2f1Smrg 929716d7e2f1Smrg CFLAGS="$CFLAGS -Wnonnull" 929816d7e2f1Smrg 92993458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 93003458e6c2Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 93012becc446Smrg cacheid=xorg_cv_cc_flag__Wnonnull 93023458e6c2Smrg if eval test \${$cacheid+y} 93033458e6c2Smrgthen : 93043458e6c2Smrg printf %s "(cached) " >&6 9305c1e8faa6Smrgelse case e in #( 9306c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 930716d7e2f1Smrg/* end confdefs.h. */ 930816d7e2f1Smrgint i; 930916d7e2f1Smrgint 93103458e6c2Smrgmain (void) 931116d7e2f1Smrg{ 931216d7e2f1Smrg 931316d7e2f1Smrg ; 931416d7e2f1Smrg return 0; 931516d7e2f1Smrg} 931616d7e2f1Smrg_ACEOF 93173458e6c2Smrgif ac_fn_c_try_link "$LINENO" 93183458e6c2Smrgthen : 93192becc446Smrg eval $cacheid=yes 9320c1e8faa6Smrgelse case e in #( 9321c1e8faa6Smrg e) eval $cacheid=no ;; 9322c1e8faa6Smrgesac 932316d7e2f1Smrgfi 93243458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9325c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9326c1e8faa6Smrgesac 932716d7e2f1Smrgfi 932816d7e2f1Smrg 932916d7e2f1Smrg 933016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933116d7e2f1Smrg 93322becc446Smrg eval supported=\$$cacheid 93333458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93343458e6c2Smrgprintf "%s\n" "$supported" >&6; } 933516d7e2f1Smrg if test "$supported" = "yes" ; then 933616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 933716d7e2f1Smrg found="yes" 933816d7e2f1Smrg fi 933916d7e2f1Smrg fi 934016d7e2f1Smrg 934116d7e2f1Smrg 934216d7e2f1Smrg 934316d7e2f1Smrg 934416d7e2f1Smrg 934516d7e2f1Smrg 934616d7e2f1Smrg 93472becc446Smrg 93482becc446Smrg 93492becc446Smrg 93502becc446Smrg 93512becc446Smrg 93522becc446Smrg 93532becc446Smrg 93542becc446Smrg 935516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 935616d7e2f1Smrg 93572becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 935816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93593458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93603458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93613458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 93623458e6c2Smrgthen : 93633458e6c2Smrg printf %s "(cached) " >&6 9364c1e8faa6Smrgelse case e in #( 9365c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 936616d7e2f1Smrg/* end confdefs.h. */ 936716d7e2f1Smrgint i; 936816d7e2f1Smrg_ACEOF 93693458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 93703458e6c2Smrgthen : 937116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9372c1e8faa6Smrgelse case e in #( 9373c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9374c1e8faa6Smrgesac 937516d7e2f1Smrgfi 9376c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9377c1e8faa6Smrgesac 937816d7e2f1Smrgfi 93793458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93803458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93812becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 938216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 938316d7e2f1Smrgfi 938416d7e2f1Smrg 93852becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93862becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 938716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 938816d7e2f1Smrg fi 938916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93903458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93913458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93923458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 93933458e6c2Smrgthen : 93943458e6c2Smrg printf %s "(cached) " >&6 9395c1e8faa6Smrgelse case e in #( 9396c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 939716d7e2f1Smrg/* end confdefs.h. */ 939816d7e2f1Smrgint i; 939916d7e2f1Smrg_ACEOF 94003458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 94013458e6c2Smrgthen : 940216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9403c1e8faa6Smrgelse case e in #( 9404c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9405c1e8faa6Smrgesac 940616d7e2f1Smrgfi 9407c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9408c1e8faa6Smrgesac 940916d7e2f1Smrgfi 94103458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94113458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94122becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 941316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 941416d7e2f1Smrgfi 941516d7e2f1Smrg 941616d7e2f1Smrgfound="no" 941716d7e2f1Smrg 941816d7e2f1Smrg if test $found = "no" ; then 94192becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 942016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 942116d7e2f1Smrg fi 942216d7e2f1Smrg 94232becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 942416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 942516d7e2f1Smrg fi 942616d7e2f1Smrg 942716d7e2f1Smrg CFLAGS="$CFLAGS -Winit-self" 942816d7e2f1Smrg 94293458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 94303458e6c2Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 94312becc446Smrg cacheid=xorg_cv_cc_flag__Winit_self 94323458e6c2Smrg if eval test \${$cacheid+y} 94333458e6c2Smrgthen : 94343458e6c2Smrg printf %s "(cached) " >&6 9435c1e8faa6Smrgelse case e in #( 9436c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943716d7e2f1Smrg/* end confdefs.h. */ 943816d7e2f1Smrgint i; 943916d7e2f1Smrgint 94403458e6c2Smrgmain (void) 944116d7e2f1Smrg{ 944216d7e2f1Smrg 944316d7e2f1Smrg ; 944416d7e2f1Smrg return 0; 944516d7e2f1Smrg} 944616d7e2f1Smrg_ACEOF 94473458e6c2Smrgif ac_fn_c_try_link "$LINENO" 94483458e6c2Smrgthen : 94492becc446Smrg eval $cacheid=yes 9450c1e8faa6Smrgelse case e in #( 9451c1e8faa6Smrg e) eval $cacheid=no ;; 9452c1e8faa6Smrgesac 945316d7e2f1Smrgfi 94543458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9455c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9456c1e8faa6Smrgesac 945716d7e2f1Smrgfi 945816d7e2f1Smrg 945916d7e2f1Smrg 946016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 946116d7e2f1Smrg 94622becc446Smrg eval supported=\$$cacheid 94633458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94643458e6c2Smrgprintf "%s\n" "$supported" >&6; } 946516d7e2f1Smrg if test "$supported" = "yes" ; then 946616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 946716d7e2f1Smrg found="yes" 946816d7e2f1Smrg fi 946916d7e2f1Smrg fi 947016d7e2f1Smrg 947116d7e2f1Smrg 947216d7e2f1Smrg 947316d7e2f1Smrg 947416d7e2f1Smrg 947516d7e2f1Smrg 947616d7e2f1Smrg 94772becc446Smrg 94782becc446Smrg 94792becc446Smrg 94802becc446Smrg 94812becc446Smrg 94822becc446Smrg 94832becc446Smrg 94842becc446Smrg 948516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 948616d7e2f1Smrg 94872becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 948816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94893458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94903458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94913458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 94923458e6c2Smrgthen : 94933458e6c2Smrg printf %s "(cached) " >&6 9494c1e8faa6Smrgelse case e in #( 9495c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 949616d7e2f1Smrg/* end confdefs.h. */ 949716d7e2f1Smrgint i; 949816d7e2f1Smrg_ACEOF 94993458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 95003458e6c2Smrgthen : 950116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9502c1e8faa6Smrgelse case e in #( 9503c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9504c1e8faa6Smrgesac 950516d7e2f1Smrgfi 9506c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9507c1e8faa6Smrgesac 950816d7e2f1Smrgfi 95093458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95103458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95112becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 951216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 951316d7e2f1Smrgfi 951416d7e2f1Smrg 95152becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95162becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 951716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 951816d7e2f1Smrg fi 951916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95203458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95213458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95223458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 95233458e6c2Smrgthen : 95243458e6c2Smrg printf %s "(cached) " >&6 9525c1e8faa6Smrgelse case e in #( 9526c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 952716d7e2f1Smrg/* end confdefs.h. */ 952816d7e2f1Smrgint i; 952916d7e2f1Smrg_ACEOF 95303458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 95313458e6c2Smrgthen : 953216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9533c1e8faa6Smrgelse case e in #( 9534c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9535c1e8faa6Smrgesac 953616d7e2f1Smrgfi 9537c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9538c1e8faa6Smrgesac 953916d7e2f1Smrgfi 95403458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95413458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95422becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 954316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954416d7e2f1Smrgfi 954516d7e2f1Smrg 954616d7e2f1Smrgfound="no" 954716d7e2f1Smrg 954816d7e2f1Smrg if test $found = "no" ; then 95492becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 955016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 955116d7e2f1Smrg fi 955216d7e2f1Smrg 95532becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 955416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 955516d7e2f1Smrg fi 955616d7e2f1Smrg 955716d7e2f1Smrg CFLAGS="$CFLAGS -Wmain" 955816d7e2f1Smrg 95593458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 95603458e6c2Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 95612becc446Smrg cacheid=xorg_cv_cc_flag__Wmain 95623458e6c2Smrg if eval test \${$cacheid+y} 95633458e6c2Smrgthen : 95643458e6c2Smrg printf %s "(cached) " >&6 9565c1e8faa6Smrgelse case e in #( 9566c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 956716d7e2f1Smrg/* end confdefs.h. */ 956816d7e2f1Smrgint i; 956916d7e2f1Smrgint 95703458e6c2Smrgmain (void) 957116d7e2f1Smrg{ 957216d7e2f1Smrg 957316d7e2f1Smrg ; 957416d7e2f1Smrg return 0; 957516d7e2f1Smrg} 957616d7e2f1Smrg_ACEOF 95773458e6c2Smrgif ac_fn_c_try_link "$LINENO" 95783458e6c2Smrgthen : 95792becc446Smrg eval $cacheid=yes 9580c1e8faa6Smrgelse case e in #( 9581c1e8faa6Smrg e) eval $cacheid=no ;; 9582c1e8faa6Smrgesac 958316d7e2f1Smrgfi 95843458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9585c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9586c1e8faa6Smrgesac 958716d7e2f1Smrgfi 958816d7e2f1Smrg 958916d7e2f1Smrg 959016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 959116d7e2f1Smrg 95922becc446Smrg eval supported=\$$cacheid 95933458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95943458e6c2Smrgprintf "%s\n" "$supported" >&6; } 959516d7e2f1Smrg if test "$supported" = "yes" ; then 959616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 959716d7e2f1Smrg found="yes" 959816d7e2f1Smrg fi 959916d7e2f1Smrg fi 960016d7e2f1Smrg 960116d7e2f1Smrg 960216d7e2f1Smrg 960316d7e2f1Smrg 960416d7e2f1Smrg 960516d7e2f1Smrg 960616d7e2f1Smrg 96072becc446Smrg 96082becc446Smrg 96092becc446Smrg 96102becc446Smrg 96112becc446Smrg 96122becc446Smrg 96132becc446Smrg 96142becc446Smrg 961516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 961616d7e2f1Smrg 96172becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 961816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96193458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96203458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96213458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96223458e6c2Smrgthen : 96233458e6c2Smrg printf %s "(cached) " >&6 9624c1e8faa6Smrgelse case e in #( 9625c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 962616d7e2f1Smrg/* end confdefs.h. */ 962716d7e2f1Smrgint i; 962816d7e2f1Smrg_ACEOF 96293458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 96303458e6c2Smrgthen : 963116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9632c1e8faa6Smrgelse case e in #( 9633c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9634c1e8faa6Smrgesac 963516d7e2f1Smrgfi 9636c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9637c1e8faa6Smrgesac 963816d7e2f1Smrgfi 96393458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96403458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96412becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 964216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 964316d7e2f1Smrgfi 964416d7e2f1Smrg 96452becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96462becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 964716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 964816d7e2f1Smrg fi 964916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96503458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96513458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96523458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 96533458e6c2Smrgthen : 96543458e6c2Smrg printf %s "(cached) " >&6 9655c1e8faa6Smrgelse case e in #( 9656c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 965716d7e2f1Smrg/* end confdefs.h. */ 965816d7e2f1Smrgint i; 965916d7e2f1Smrg_ACEOF 96603458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 96613458e6c2Smrgthen : 966216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9663c1e8faa6Smrgelse case e in #( 9664c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9665c1e8faa6Smrgesac 966616d7e2f1Smrgfi 9667c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9668c1e8faa6Smrgesac 966916d7e2f1Smrgfi 96703458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96713458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96722becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 967316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 967416d7e2f1Smrgfi 967516d7e2f1Smrg 967616d7e2f1Smrgfound="no" 967716d7e2f1Smrg 967816d7e2f1Smrg if test $found = "no" ; then 96792becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 968016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 968116d7e2f1Smrg fi 968216d7e2f1Smrg 96832becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 968416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 968516d7e2f1Smrg fi 968616d7e2f1Smrg 968716d7e2f1Smrg CFLAGS="$CFLAGS -Wmissing-braces" 968816d7e2f1Smrg 96893458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 96903458e6c2Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 96912becc446Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 96923458e6c2Smrg if eval test \${$cacheid+y} 96933458e6c2Smrgthen : 96943458e6c2Smrg printf %s "(cached) " >&6 9695c1e8faa6Smrgelse case e in #( 9696c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 969716d7e2f1Smrg/* end confdefs.h. */ 969816d7e2f1Smrgint i; 969916d7e2f1Smrgint 97003458e6c2Smrgmain (void) 970116d7e2f1Smrg{ 970216d7e2f1Smrg 970316d7e2f1Smrg ; 970416d7e2f1Smrg return 0; 970516d7e2f1Smrg} 970616d7e2f1Smrg_ACEOF 97073458e6c2Smrgif ac_fn_c_try_link "$LINENO" 97083458e6c2Smrgthen : 97092becc446Smrg eval $cacheid=yes 9710c1e8faa6Smrgelse case e in #( 9711c1e8faa6Smrg e) eval $cacheid=no ;; 9712c1e8faa6Smrgesac 971316d7e2f1Smrgfi 97143458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9715c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9716c1e8faa6Smrgesac 971716d7e2f1Smrgfi 971816d7e2f1Smrg 971916d7e2f1Smrg 972016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 972116d7e2f1Smrg 97222becc446Smrg eval supported=\$$cacheid 97233458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97243458e6c2Smrgprintf "%s\n" "$supported" >&6; } 972516d7e2f1Smrg if test "$supported" = "yes" ; then 972616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 972716d7e2f1Smrg found="yes" 972816d7e2f1Smrg fi 972916d7e2f1Smrg fi 973016d7e2f1Smrg 973116d7e2f1Smrg 973216d7e2f1Smrg 973316d7e2f1Smrg 973416d7e2f1Smrg 973516d7e2f1Smrg 973616d7e2f1Smrg 97372becc446Smrg 97382becc446Smrg 97392becc446Smrg 97402becc446Smrg 97412becc446Smrg 97422becc446Smrg 97432becc446Smrg 97442becc446Smrg 974516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 974616d7e2f1Smrg 97472becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 974816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97493458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97503458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97513458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 97523458e6c2Smrgthen : 97533458e6c2Smrg printf %s "(cached) " >&6 9754c1e8faa6Smrgelse case e in #( 9755c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 975616d7e2f1Smrg/* end confdefs.h. */ 975716d7e2f1Smrgint i; 975816d7e2f1Smrg_ACEOF 97593458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 97603458e6c2Smrgthen : 976116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9762c1e8faa6Smrgelse case e in #( 9763c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9764c1e8faa6Smrgesac 976516d7e2f1Smrgfi 9766c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9767c1e8faa6Smrgesac 976816d7e2f1Smrgfi 97693458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97703458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97712becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 977216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 977316d7e2f1Smrgfi 977416d7e2f1Smrg 97752becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97762becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 977716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 977816d7e2f1Smrg fi 977916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97803458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97813458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97823458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 97833458e6c2Smrgthen : 97843458e6c2Smrg printf %s "(cached) " >&6 9785c1e8faa6Smrgelse case e in #( 9786c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 978716d7e2f1Smrg/* end confdefs.h. */ 978816d7e2f1Smrgint i; 978916d7e2f1Smrg_ACEOF 97903458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 97913458e6c2Smrgthen : 979216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9793c1e8faa6Smrgelse case e in #( 9794c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9795c1e8faa6Smrgesac 979616d7e2f1Smrgfi 9797c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9798c1e8faa6Smrgesac 979916d7e2f1Smrgfi 98003458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98013458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98022becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 980316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 980416d7e2f1Smrgfi 980516d7e2f1Smrg 980616d7e2f1Smrgfound="no" 980716d7e2f1Smrg 980816d7e2f1Smrg if test $found = "no" ; then 98092becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 981016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 981116d7e2f1Smrg fi 981216d7e2f1Smrg 98132becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 981416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 981516d7e2f1Smrg fi 981616d7e2f1Smrg 981716d7e2f1Smrg CFLAGS="$CFLAGS -Wsequence-point" 981816d7e2f1Smrg 98193458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 98203458e6c2Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 98212becc446Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 98223458e6c2Smrg if eval test \${$cacheid+y} 98233458e6c2Smrgthen : 98243458e6c2Smrg printf %s "(cached) " >&6 9825c1e8faa6Smrgelse case e in #( 9826c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 982716d7e2f1Smrg/* end confdefs.h. */ 982816d7e2f1Smrgint i; 982916d7e2f1Smrgint 98303458e6c2Smrgmain (void) 983116d7e2f1Smrg{ 983216d7e2f1Smrg 983316d7e2f1Smrg ; 983416d7e2f1Smrg return 0; 983516d7e2f1Smrg} 983616d7e2f1Smrg_ACEOF 98373458e6c2Smrgif ac_fn_c_try_link "$LINENO" 98383458e6c2Smrgthen : 98392becc446Smrg eval $cacheid=yes 9840c1e8faa6Smrgelse case e in #( 9841c1e8faa6Smrg e) eval $cacheid=no ;; 9842c1e8faa6Smrgesac 984316d7e2f1Smrgfi 98443458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9845c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9846c1e8faa6Smrgesac 984716d7e2f1Smrgfi 984816d7e2f1Smrg 984916d7e2f1Smrg 985016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 985116d7e2f1Smrg 98522becc446Smrg eval supported=\$$cacheid 98533458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98543458e6c2Smrgprintf "%s\n" "$supported" >&6; } 985516d7e2f1Smrg if test "$supported" = "yes" ; then 985616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 985716d7e2f1Smrg found="yes" 985816d7e2f1Smrg fi 985916d7e2f1Smrg fi 986016d7e2f1Smrg 986116d7e2f1Smrg 986216d7e2f1Smrg 986316d7e2f1Smrg 986416d7e2f1Smrg 986516d7e2f1Smrg 986616d7e2f1Smrg 98672becc446Smrg 98682becc446Smrg 98692becc446Smrg 98702becc446Smrg 98712becc446Smrg 98722becc446Smrg 98732becc446Smrg 98742becc446Smrg 987516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 987616d7e2f1Smrg 98772becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 987816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98793458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98803458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98813458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 98823458e6c2Smrgthen : 98833458e6c2Smrg printf %s "(cached) " >&6 9884c1e8faa6Smrgelse case e in #( 9885c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 988616d7e2f1Smrg/* end confdefs.h. */ 988716d7e2f1Smrgint i; 988816d7e2f1Smrg_ACEOF 98893458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 98903458e6c2Smrgthen : 989116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9892c1e8faa6Smrgelse case e in #( 9893c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9894c1e8faa6Smrgesac 989516d7e2f1Smrgfi 9896c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9897c1e8faa6Smrgesac 989816d7e2f1Smrgfi 98993458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99003458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99012becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 990216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 990316d7e2f1Smrgfi 990416d7e2f1Smrg 99052becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99062becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 990716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 990816d7e2f1Smrg fi 990916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99103458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99113458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99123458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99133458e6c2Smrgthen : 99143458e6c2Smrg printf %s "(cached) " >&6 9915c1e8faa6Smrgelse case e in #( 9916c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 991716d7e2f1Smrg/* end confdefs.h. */ 991816d7e2f1Smrgint i; 991916d7e2f1Smrg_ACEOF 99203458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 99213458e6c2Smrgthen : 992216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9923c1e8faa6Smrgelse case e in #( 9924c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9925c1e8faa6Smrgesac 992616d7e2f1Smrgfi 9927c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9928c1e8faa6Smrgesac 992916d7e2f1Smrgfi 99303458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99313458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99322becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 993316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 993416d7e2f1Smrgfi 993516d7e2f1Smrg 993616d7e2f1Smrgfound="no" 993716d7e2f1Smrg 993816d7e2f1Smrg if test $found = "no" ; then 99392becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 994016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 994116d7e2f1Smrg fi 994216d7e2f1Smrg 99432becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 994416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 994516d7e2f1Smrg fi 994616d7e2f1Smrg 994716d7e2f1Smrg CFLAGS="$CFLAGS -Wreturn-type" 994816d7e2f1Smrg 99493458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 99503458e6c2Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 99512becc446Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 99523458e6c2Smrg if eval test \${$cacheid+y} 99533458e6c2Smrgthen : 99543458e6c2Smrg printf %s "(cached) " >&6 9955c1e8faa6Smrgelse case e in #( 9956c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 995716d7e2f1Smrg/* end confdefs.h. */ 995816d7e2f1Smrgint i; 995916d7e2f1Smrgint 99603458e6c2Smrgmain (void) 996116d7e2f1Smrg{ 996216d7e2f1Smrg 996316d7e2f1Smrg ; 996416d7e2f1Smrg return 0; 996516d7e2f1Smrg} 996616d7e2f1Smrg_ACEOF 99673458e6c2Smrgif ac_fn_c_try_link "$LINENO" 99683458e6c2Smrgthen : 99692becc446Smrg eval $cacheid=yes 9970c1e8faa6Smrgelse case e in #( 9971c1e8faa6Smrg e) eval $cacheid=no ;; 9972c1e8faa6Smrgesac 997316d7e2f1Smrgfi 99743458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9975c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 9976c1e8faa6Smrgesac 997716d7e2f1Smrgfi 997816d7e2f1Smrg 997916d7e2f1Smrg 998016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 998116d7e2f1Smrg 99822becc446Smrg eval supported=\$$cacheid 99833458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99843458e6c2Smrgprintf "%s\n" "$supported" >&6; } 998516d7e2f1Smrg if test "$supported" = "yes" ; then 998616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 998716d7e2f1Smrg found="yes" 998816d7e2f1Smrg fi 998916d7e2f1Smrg fi 999016d7e2f1Smrg 999116d7e2f1Smrg 999216d7e2f1Smrg 999316d7e2f1Smrg 999416d7e2f1Smrg 999516d7e2f1Smrg 999616d7e2f1Smrg 99972becc446Smrg 99982becc446Smrg 99992becc446Smrg 100002becc446Smrg 100012becc446Smrg 100022becc446Smrg 100032becc446Smrg 100042becc446Smrg 1000516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1000616d7e2f1Smrg 100072becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1000816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100093458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100103458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100113458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100123458e6c2Smrgthen : 100133458e6c2Smrg printf %s "(cached) " >&6 10014c1e8faa6Smrgelse case e in #( 10015c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1001616d7e2f1Smrg/* end confdefs.h. */ 1001716d7e2f1Smrgint i; 1001816d7e2f1Smrg_ACEOF 100193458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 100203458e6c2Smrgthen : 1002116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10022c1e8faa6Smrgelse case e in #( 10023c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10024c1e8faa6Smrgesac 1002516d7e2f1Smrgfi 10026c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10027c1e8faa6Smrgesac 1002816d7e2f1Smrgfi 100293458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100303458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100312becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1003216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1003316d7e2f1Smrgfi 1003416d7e2f1Smrg 100352becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100362becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1003716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1003816d7e2f1Smrg fi 1003916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100403458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100413458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100423458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100433458e6c2Smrgthen : 100443458e6c2Smrg printf %s "(cached) " >&6 10045c1e8faa6Smrgelse case e in #( 10046c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1004716d7e2f1Smrg/* end confdefs.h. */ 1004816d7e2f1Smrgint i; 1004916d7e2f1Smrg_ACEOF 100503458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 100513458e6c2Smrgthen : 1005216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10053c1e8faa6Smrgelse case e in #( 10054c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10055c1e8faa6Smrgesac 1005616d7e2f1Smrgfi 10057c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10058c1e8faa6Smrgesac 1005916d7e2f1Smrgfi 100603458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100613458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100622becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1006316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1006416d7e2f1Smrgfi 1006516d7e2f1Smrg 1006616d7e2f1Smrgfound="no" 1006716d7e2f1Smrg 1006816d7e2f1Smrg if test $found = "no" ; then 100692becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1007016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1007116d7e2f1Smrg fi 1007216d7e2f1Smrg 100732becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1007416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1007516d7e2f1Smrg fi 1007616d7e2f1Smrg 1007716d7e2f1Smrg CFLAGS="$CFLAGS -Wtrigraphs" 1007816d7e2f1Smrg 100793458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 100803458e6c2Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 100812becc446Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 100823458e6c2Smrg if eval test \${$cacheid+y} 100833458e6c2Smrgthen : 100843458e6c2Smrg printf %s "(cached) " >&6 10085c1e8faa6Smrgelse case e in #( 10086c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1008716d7e2f1Smrg/* end confdefs.h. */ 1008816d7e2f1Smrgint i; 1008916d7e2f1Smrgint 100903458e6c2Smrgmain (void) 1009116d7e2f1Smrg{ 1009216d7e2f1Smrg 1009316d7e2f1Smrg ; 1009416d7e2f1Smrg return 0; 1009516d7e2f1Smrg} 1009616d7e2f1Smrg_ACEOF 100973458e6c2Smrgif ac_fn_c_try_link "$LINENO" 100983458e6c2Smrgthen : 100992becc446Smrg eval $cacheid=yes 10100c1e8faa6Smrgelse case e in #( 10101c1e8faa6Smrg e) eval $cacheid=no ;; 10102c1e8faa6Smrgesac 1010316d7e2f1Smrgfi 101043458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10105c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10106c1e8faa6Smrgesac 1010716d7e2f1Smrgfi 1010816d7e2f1Smrg 1010916d7e2f1Smrg 1011016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1011116d7e2f1Smrg 101122becc446Smrg eval supported=\$$cacheid 101133458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101143458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1011516d7e2f1Smrg if test "$supported" = "yes" ; then 1011616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1011716d7e2f1Smrg found="yes" 1011816d7e2f1Smrg fi 1011916d7e2f1Smrg fi 1012016d7e2f1Smrg 1012116d7e2f1Smrg 1012216d7e2f1Smrg 1012316d7e2f1Smrg 1012416d7e2f1Smrg 1012516d7e2f1Smrg 1012616d7e2f1Smrg 101272becc446Smrg 101282becc446Smrg 101292becc446Smrg 101302becc446Smrg 101312becc446Smrg 101322becc446Smrg 101332becc446Smrg 101342becc446Smrg 1013516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1013616d7e2f1Smrg 101372becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1013816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101393458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101403458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101413458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101423458e6c2Smrgthen : 101433458e6c2Smrg printf %s "(cached) " >&6 10144c1e8faa6Smrgelse case e in #( 10145c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1014616d7e2f1Smrg/* end confdefs.h. */ 1014716d7e2f1Smrgint i; 1014816d7e2f1Smrg_ACEOF 101493458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 101503458e6c2Smrgthen : 1015116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10152c1e8faa6Smrgelse case e in #( 10153c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10154c1e8faa6Smrgesac 1015516d7e2f1Smrgfi 10156c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10157c1e8faa6Smrgesac 1015816d7e2f1Smrgfi 101593458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101603458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101612becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1016216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016316d7e2f1Smrgfi 1016416d7e2f1Smrg 101652becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101662becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1016716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1016816d7e2f1Smrg fi 1016916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101703458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101713458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101723458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 101733458e6c2Smrgthen : 101743458e6c2Smrg printf %s "(cached) " >&6 10175c1e8faa6Smrgelse case e in #( 10176c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1017716d7e2f1Smrg/* end confdefs.h. */ 1017816d7e2f1Smrgint i; 1017916d7e2f1Smrg_ACEOF 101803458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 101813458e6c2Smrgthen : 1018216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10183c1e8faa6Smrgelse case e in #( 10184c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10185c1e8faa6Smrgesac 1018616d7e2f1Smrgfi 10187c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10188c1e8faa6Smrgesac 1018916d7e2f1Smrgfi 101903458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101913458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101922becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1019316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1019416d7e2f1Smrgfi 1019516d7e2f1Smrg 1019616d7e2f1Smrgfound="no" 1019716d7e2f1Smrg 1019816d7e2f1Smrg if test $found = "no" ; then 101992becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1020016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1020116d7e2f1Smrg fi 1020216d7e2f1Smrg 102032becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1020416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1020516d7e2f1Smrg fi 1020616d7e2f1Smrg 1020716d7e2f1Smrg CFLAGS="$CFLAGS -Warray-bounds" 1020816d7e2f1Smrg 102093458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 102103458e6c2Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 102112becc446Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 102123458e6c2Smrg if eval test \${$cacheid+y} 102133458e6c2Smrgthen : 102143458e6c2Smrg printf %s "(cached) " >&6 10215c1e8faa6Smrgelse case e in #( 10216c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1021716d7e2f1Smrg/* end confdefs.h. */ 1021816d7e2f1Smrgint i; 1021916d7e2f1Smrgint 102203458e6c2Smrgmain (void) 1022116d7e2f1Smrg{ 1022216d7e2f1Smrg 1022316d7e2f1Smrg ; 1022416d7e2f1Smrg return 0; 1022516d7e2f1Smrg} 1022616d7e2f1Smrg_ACEOF 102273458e6c2Smrgif ac_fn_c_try_link "$LINENO" 102283458e6c2Smrgthen : 102292becc446Smrg eval $cacheid=yes 10230c1e8faa6Smrgelse case e in #( 10231c1e8faa6Smrg e) eval $cacheid=no ;; 10232c1e8faa6Smrgesac 1023316d7e2f1Smrgfi 102343458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10235c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10236c1e8faa6Smrgesac 1023716d7e2f1Smrgfi 1023816d7e2f1Smrg 1023916d7e2f1Smrg 1024016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1024116d7e2f1Smrg 102422becc446Smrg eval supported=\$$cacheid 102433458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102443458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1024516d7e2f1Smrg if test "$supported" = "yes" ; then 1024616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1024716d7e2f1Smrg found="yes" 1024816d7e2f1Smrg fi 1024916d7e2f1Smrg fi 1025016d7e2f1Smrg 1025116d7e2f1Smrg 1025216d7e2f1Smrg 1025316d7e2f1Smrg 1025416d7e2f1Smrg 1025516d7e2f1Smrg 1025616d7e2f1Smrg 102572becc446Smrg 102582becc446Smrg 102592becc446Smrg 102602becc446Smrg 102612becc446Smrg 102622becc446Smrg 102632becc446Smrg 102642becc446Smrg 1026516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1026616d7e2f1Smrg 102672becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1026816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102693458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102703458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102713458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 102723458e6c2Smrgthen : 102733458e6c2Smrg printf %s "(cached) " >&6 10274c1e8faa6Smrgelse case e in #( 10275c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1027616d7e2f1Smrg/* end confdefs.h. */ 1027716d7e2f1Smrgint i; 1027816d7e2f1Smrg_ACEOF 102793458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 102803458e6c2Smrgthen : 1028116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10282c1e8faa6Smrgelse case e in #( 10283c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10284c1e8faa6Smrgesac 1028516d7e2f1Smrgfi 10286c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10287c1e8faa6Smrgesac 1028816d7e2f1Smrgfi 102893458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102903458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 102912becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1029216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1029316d7e2f1Smrgfi 1029416d7e2f1Smrg 102952becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 102962becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1029716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1029816d7e2f1Smrg fi 1029916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103003458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103013458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103023458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 103033458e6c2Smrgthen : 103043458e6c2Smrg printf %s "(cached) " >&6 10305c1e8faa6Smrgelse case e in #( 10306c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1030716d7e2f1Smrg/* end confdefs.h. */ 1030816d7e2f1Smrgint i; 1030916d7e2f1Smrg_ACEOF 103103458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 103113458e6c2Smrgthen : 1031216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10313c1e8faa6Smrgelse case e in #( 10314c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10315c1e8faa6Smrgesac 1031616d7e2f1Smrgfi 10317c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10318c1e8faa6Smrgesac 1031916d7e2f1Smrgfi 103203458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103213458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103222becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1032316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1032416d7e2f1Smrgfi 1032516d7e2f1Smrg 1032616d7e2f1Smrgfound="no" 1032716d7e2f1Smrg 1032816d7e2f1Smrg if test $found = "no" ; then 103292becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1033016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1033116d7e2f1Smrg fi 1033216d7e2f1Smrg 103332becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1033416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1033516d7e2f1Smrg fi 1033616d7e2f1Smrg 1033716d7e2f1Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1033816d7e2f1Smrg 103393458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 103403458e6c2Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 103412becc446Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 103423458e6c2Smrg if eval test \${$cacheid+y} 103433458e6c2Smrgthen : 103443458e6c2Smrg printf %s "(cached) " >&6 10345c1e8faa6Smrgelse case e in #( 10346c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1034716d7e2f1Smrg/* end confdefs.h. */ 1034816d7e2f1Smrgint i; 1034916d7e2f1Smrgint 103503458e6c2Smrgmain (void) 1035116d7e2f1Smrg{ 1035216d7e2f1Smrg 1035316d7e2f1Smrg ; 1035416d7e2f1Smrg return 0; 1035516d7e2f1Smrg} 1035616d7e2f1Smrg_ACEOF 103573458e6c2Smrgif ac_fn_c_try_link "$LINENO" 103583458e6c2Smrgthen : 103592becc446Smrg eval $cacheid=yes 10360c1e8faa6Smrgelse case e in #( 10361c1e8faa6Smrg e) eval $cacheid=no ;; 10362c1e8faa6Smrgesac 1036316d7e2f1Smrgfi 103643458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10365c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10366c1e8faa6Smrgesac 1036716d7e2f1Smrgfi 1036816d7e2f1Smrg 1036916d7e2f1Smrg 1037016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1037116d7e2f1Smrg 103722becc446Smrg eval supported=\$$cacheid 103733458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103743458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1037516d7e2f1Smrg if test "$supported" = "yes" ; then 1037616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1037716d7e2f1Smrg found="yes" 1037816d7e2f1Smrg fi 1037916d7e2f1Smrg fi 1038016d7e2f1Smrg 1038116d7e2f1Smrg 1038216d7e2f1Smrg 1038316d7e2f1Smrg 1038416d7e2f1Smrg 1038516d7e2f1Smrg 1038616d7e2f1Smrg 103872becc446Smrg 103882becc446Smrg 103892becc446Smrg 103902becc446Smrg 103912becc446Smrg 103922becc446Smrg 103932becc446Smrg 103942becc446Smrg 1039516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1039616d7e2f1Smrg 103972becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1039816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103993458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104003458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104013458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 104023458e6c2Smrgthen : 104033458e6c2Smrg printf %s "(cached) " >&6 10404c1e8faa6Smrgelse case e in #( 10405c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1040616d7e2f1Smrg/* end confdefs.h. */ 1040716d7e2f1Smrgint i; 1040816d7e2f1Smrg_ACEOF 104093458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 104103458e6c2Smrgthen : 1041116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10412c1e8faa6Smrgelse case e in #( 10413c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10414c1e8faa6Smrgesac 1041516d7e2f1Smrgfi 10416c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10417c1e8faa6Smrgesac 1041816d7e2f1Smrgfi 104193458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104203458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104212becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1042216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1042316d7e2f1Smrgfi 1042416d7e2f1Smrg 104252becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 104262becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1042716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1042816d7e2f1Smrg fi 1042916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104303458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104313458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104323458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 104333458e6c2Smrgthen : 104343458e6c2Smrg printf %s "(cached) " >&6 10435c1e8faa6Smrgelse case e in #( 10436c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1043716d7e2f1Smrg/* end confdefs.h. */ 1043816d7e2f1Smrgint i; 1043916d7e2f1Smrg_ACEOF 104403458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 104413458e6c2Smrgthen : 1044216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10443c1e8faa6Smrgelse case e in #( 10444c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10445c1e8faa6Smrgesac 1044616d7e2f1Smrgfi 10447c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10448c1e8faa6Smrgesac 1044916d7e2f1Smrgfi 104503458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104513458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 104522becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1045316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1045416d7e2f1Smrgfi 1045516d7e2f1Smrg 1045616d7e2f1Smrgfound="no" 1045716d7e2f1Smrg 1045816d7e2f1Smrg if test $found = "no" ; then 104592becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1046016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1046116d7e2f1Smrg fi 1046216d7e2f1Smrg 104632becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1046416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1046516d7e2f1Smrg fi 1046616d7e2f1Smrg 1046716d7e2f1Smrg CFLAGS="$CFLAGS -Waddress" 1046816d7e2f1Smrg 104693458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 104703458e6c2Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 104712becc446Smrg cacheid=xorg_cv_cc_flag__Waddress 104723458e6c2Smrg if eval test \${$cacheid+y} 104733458e6c2Smrgthen : 104743458e6c2Smrg printf %s "(cached) " >&6 10475c1e8faa6Smrgelse case e in #( 10476c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1047716d7e2f1Smrg/* end confdefs.h. */ 1047816d7e2f1Smrgint i; 1047916d7e2f1Smrgint 104803458e6c2Smrgmain (void) 1048116d7e2f1Smrg{ 1048216d7e2f1Smrg 1048316d7e2f1Smrg ; 104848650bb69Smrg return 0; 104858650bb69Smrg} 1048616d7e2f1Smrg_ACEOF 104873458e6c2Smrgif ac_fn_c_try_link "$LINENO" 104883458e6c2Smrgthen : 104892becc446Smrg eval $cacheid=yes 10490c1e8faa6Smrgelse case e in #( 10491c1e8faa6Smrg e) eval $cacheid=no ;; 10492c1e8faa6Smrgesac 1049316d7e2f1Smrgfi 104943458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10495c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10496c1e8faa6Smrgesac 1049716d7e2f1Smrgfi 104988650bb69Smrg 104998650bb69Smrg 1050016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 105018650bb69Smrg 105022becc446Smrg eval supported=\$$cacheid 105033458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105043458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1050516d7e2f1Smrg if test "$supported" = "yes" ; then 1050616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1050716d7e2f1Smrg found="yes" 1050816d7e2f1Smrg fi 1050916d7e2f1Smrg fi 1051016d7e2f1Smrg 1051116d7e2f1Smrg 1051216d7e2f1Smrg 1051316d7e2f1Smrg 1051416d7e2f1Smrg 1051516d7e2f1Smrg 1051616d7e2f1Smrg 105172becc446Smrg 105182becc446Smrg 105192becc446Smrg 105202becc446Smrg 105212becc446Smrg 105222becc446Smrg 105232becc446Smrg 105242becc446Smrg 1052516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1052616d7e2f1Smrg 105272becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1052816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105293458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105303458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105313458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105323458e6c2Smrgthen : 105333458e6c2Smrg printf %s "(cached) " >&6 10534c1e8faa6Smrgelse case e in #( 10535c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1053616d7e2f1Smrg/* end confdefs.h. */ 1053716d7e2f1Smrgint i; 1053816d7e2f1Smrg_ACEOF 105393458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 105403458e6c2Smrgthen : 1054116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10542c1e8faa6Smrgelse case e in #( 10543c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10544c1e8faa6Smrgesac 1054516d7e2f1Smrgfi 10546c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10547c1e8faa6Smrgesac 1054816d7e2f1Smrgfi 105493458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 105503458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 105512becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1055216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1055316d7e2f1Smrgfi 1055416d7e2f1Smrg 105552becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 105562becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1055716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1055816d7e2f1Smrg fi 1055916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105603458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105613458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105623458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105633458e6c2Smrgthen : 105643458e6c2Smrg printf %s "(cached) " >&6 10565c1e8faa6Smrgelse case e in #( 10566c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1056716d7e2f1Smrg/* end confdefs.h. */ 1056816d7e2f1Smrgint i; 1056916d7e2f1Smrg_ACEOF 105703458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 105713458e6c2Smrgthen : 1057216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10573c1e8faa6Smrgelse case e in #( 10574c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10575c1e8faa6Smrgesac 1057616d7e2f1Smrgfi 10577c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10578c1e8faa6Smrgesac 1057916d7e2f1Smrgfi 105803458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105813458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 105822becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1058316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1058416d7e2f1Smrgfi 1058516d7e2f1Smrg 1058616d7e2f1Smrgfound="no" 1058716d7e2f1Smrg 1058816d7e2f1Smrg if test $found = "no" ; then 105892becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1059016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1059116d7e2f1Smrg fi 1059216d7e2f1Smrg 105932becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1059416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1059516d7e2f1Smrg fi 105968650bb69Smrg 1059716d7e2f1Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1059816d7e2f1Smrg 105993458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 106003458e6c2Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 106012becc446Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 106023458e6c2Smrg if eval test \${$cacheid+y} 106033458e6c2Smrgthen : 106043458e6c2Smrg printf %s "(cached) " >&6 10605c1e8faa6Smrgelse case e in #( 10606c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1060716d7e2f1Smrg/* end confdefs.h. */ 1060816d7e2f1Smrgint i; 106098650bb69Smrgint 106103458e6c2Smrgmain (void) 106118650bb69Smrg{ 106128650bb69Smrg 1061316d7e2f1Smrg ; 1061416d7e2f1Smrg return 0; 1061516d7e2f1Smrg} 1061616d7e2f1Smrg_ACEOF 106173458e6c2Smrgif ac_fn_c_try_link "$LINENO" 106183458e6c2Smrgthen : 106192becc446Smrg eval $cacheid=yes 10620c1e8faa6Smrgelse case e in #( 10621c1e8faa6Smrg e) eval $cacheid=no ;; 10622c1e8faa6Smrgesac 1062316d7e2f1Smrgfi 106243458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10625c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10626c1e8faa6Smrgesac 1062716d7e2f1Smrgfi 106288650bb69Smrg 106298650bb69Smrg 1063016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 106318650bb69Smrg 106322becc446Smrg eval supported=\$$cacheid 106333458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106343458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1063516d7e2f1Smrg if test "$supported" = "yes" ; then 1063616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1063716d7e2f1Smrg found="yes" 1063816d7e2f1Smrg fi 1063916d7e2f1Smrg fi 106408650bb69Smrg 106418650bb69Smrg 106428650bb69Smrg 106438650bb69Smrg 1064416d7e2f1Smrg 1064516d7e2f1Smrg 1064616d7e2f1Smrg 106472becc446Smrg 106482becc446Smrg 106492becc446Smrg 106502becc446Smrg 106512becc446Smrg 106522becc446Smrg 106532becc446Smrg 106542becc446Smrg 1065516d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1065616d7e2f1Smrg 106572becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1065816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106593458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 106603458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 106613458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 106623458e6c2Smrgthen : 106633458e6c2Smrg printf %s "(cached) " >&6 10664c1e8faa6Smrgelse case e in #( 10665c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1066616d7e2f1Smrg/* end confdefs.h. */ 1066716d7e2f1Smrgint i; 1066816d7e2f1Smrg_ACEOF 106693458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 106703458e6c2Smrgthen : 1067116d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10672c1e8faa6Smrgelse case e in #( 10673c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10674c1e8faa6Smrgesac 1067516d7e2f1Smrgfi 10676c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10677c1e8faa6Smrgesac 1067816d7e2f1Smrgfi 106793458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 106803458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 106812becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1068216d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1068316d7e2f1Smrgfi 1068416d7e2f1Smrg 106852becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 106862becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1068716d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1068816d7e2f1Smrg fi 1068916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 106903458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 106913458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 106923458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 106933458e6c2Smrgthen : 106943458e6c2Smrg printf %s "(cached) " >&6 10695c1e8faa6Smrgelse case e in #( 10696c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1069716d7e2f1Smrg/* end confdefs.h. */ 1069816d7e2f1Smrgint i; 1069916d7e2f1Smrg_ACEOF 107003458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 107013458e6c2Smrgthen : 1070216d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10703c1e8faa6Smrgelse case e in #( 10704c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10705c1e8faa6Smrgesac 1070616d7e2f1Smrgfi 10707c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10708c1e8faa6Smrgesac 1070916d7e2f1Smrgfi 107103458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 107113458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 107122becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1071316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1071416d7e2f1Smrgfi 1071516d7e2f1Smrg 1071616d7e2f1Smrgfound="no" 1071716d7e2f1Smrg 1071816d7e2f1Smrg if test $found = "no" ; then 107192becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1072016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1072116d7e2f1Smrg fi 1072216d7e2f1Smrg 107232becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1072416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1072516d7e2f1Smrg fi 1072616d7e2f1Smrg 1072716d7e2f1Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1072816d7e2f1Smrg 107293458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 107303458e6c2Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 107312becc446Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 107323458e6c2Smrg if eval test \${$cacheid+y} 107333458e6c2Smrgthen : 107343458e6c2Smrg printf %s "(cached) " >&6 10735c1e8faa6Smrgelse case e in #( 10736c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1073716d7e2f1Smrg/* end confdefs.h. */ 1073816d7e2f1Smrgint i; 1073916d7e2f1Smrgint 107403458e6c2Smrgmain (void) 1074116d7e2f1Smrg{ 107428650bb69Smrg 107438650bb69Smrg ; 107448650bb69Smrg return 0; 107458650bb69Smrg} 107468650bb69Smrg_ACEOF 107473458e6c2Smrgif ac_fn_c_try_link "$LINENO" 107483458e6c2Smrgthen : 107492becc446Smrg eval $cacheid=yes 10750c1e8faa6Smrgelse case e in #( 10751c1e8faa6Smrg e) eval $cacheid=no ;; 10752c1e8faa6Smrgesac 1075316d7e2f1Smrgfi 107543458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10755c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10756c1e8faa6Smrgesac 1075716d7e2f1Smrgfi 1075816d7e2f1Smrg 1075916d7e2f1Smrg 1076016d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1076116d7e2f1Smrg 107622becc446Smrg eval supported=\$$cacheid 107633458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 107643458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1076516d7e2f1Smrg if test "$supported" = "yes" ; then 1076616d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1076716d7e2f1Smrg found="yes" 1076816d7e2f1Smrg fi 1076916d7e2f1Smrg fi 107708650bb69Smrg 107718650bb69Smrg 107728650bb69Smrgfi 107738650bb69Smrg 107748650bb69Smrg 1077516d7e2f1Smrg 1077616d7e2f1Smrg 1077716d7e2f1Smrg 1077816d7e2f1Smrg 107792becc446Smrg 107802becc446Smrg CWARNFLAGS="$BASE_CFLAGS" 107812becc446Smrg if test "x$GCC" = xyes ; then 107822becc446Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 107832becc446Smrg fi 107842becc446Smrg 107852becc446Smrg 107868650bb69Smrg 107878650bb69Smrg 107888650bb69Smrg 107898650bb69Smrg 107908650bb69Smrg 1079116d7e2f1Smrg 1079216d7e2f1Smrg# Check whether --enable-strict-compilation was given. 107933458e6c2Smrgif test ${enable_strict_compilation+y} 107943458e6c2Smrgthen : 1079516d7e2f1Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10796c1e8faa6Smrgelse case e in #( 10797c1e8faa6Smrg e) STRICT_COMPILE=no ;; 10798c1e8faa6Smrgesac 107998650bb69Smrgfi 108008650bb69Smrg 108018650bb69Smrg 108022becc446Smrg 108032becc446Smrg 108042becc446Smrg 108052becc446Smrg 1080616d7e2f1SmrgSTRICT_CFLAGS="" 1080716d7e2f1Smrg 1080816d7e2f1Smrg 1080916d7e2f1Smrg 1081016d7e2f1Smrg 1081116d7e2f1Smrg 108122becc446Smrg 108132becc446Smrg 108142becc446Smrg 108152becc446Smrg 108162becc446Smrg 108172becc446Smrg 108182becc446Smrg 108192becc446Smrg 1082016d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1082116d7e2f1Smrg 108222becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1082316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108243458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 108253458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 108263458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 108273458e6c2Smrgthen : 108283458e6c2Smrg printf %s "(cached) " >&6 10829c1e8faa6Smrgelse case e in #( 10830c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1083116d7e2f1Smrg/* end confdefs.h. */ 1083216d7e2f1Smrgint i; 1083316d7e2f1Smrg_ACEOF 108343458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 108353458e6c2Smrgthen : 1083616d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10837c1e8faa6Smrgelse case e in #( 10838c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10839c1e8faa6Smrgesac 1084016d7e2f1Smrgfi 10841c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10842c1e8faa6Smrgesac 1084316d7e2f1Smrgfi 108443458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 108453458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 108462becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1084716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108488650bb69Smrgfi 108498650bb69Smrg 108502becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 108512becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1085216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1085316d7e2f1Smrg fi 1085416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108553458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108563458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108573458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108583458e6c2Smrgthen : 108593458e6c2Smrg printf %s "(cached) " >&6 10860c1e8faa6Smrgelse case e in #( 10861c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1086216d7e2f1Smrg/* end confdefs.h. */ 1086316d7e2f1Smrgint i; 1086416d7e2f1Smrg_ACEOF 108653458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 108663458e6c2Smrgthen : 1086716d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10868c1e8faa6Smrgelse case e in #( 10869c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10870c1e8faa6Smrgesac 1087116d7e2f1Smrgfi 10872c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10873c1e8faa6Smrgesac 1087416d7e2f1Smrgfi 108753458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108763458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 108772becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1087816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 108798650bb69Smrgfi 108808650bb69Smrg 1088116d7e2f1Smrgfound="no" 108828650bb69Smrg 1088316d7e2f1Smrg if test $found = "no" ; then 108842becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1088516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1088616d7e2f1Smrg fi 108878650bb69Smrg 108882becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1088916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1089016d7e2f1Smrg fi 108918650bb69Smrg 1089216d7e2f1Smrg CFLAGS="$CFLAGS -pedantic" 108938650bb69Smrg 108943458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 108953458e6c2Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 108962becc446Smrg cacheid=xorg_cv_cc_flag__pedantic 108973458e6c2Smrg if eval test \${$cacheid+y} 108983458e6c2Smrgthen : 108993458e6c2Smrg printf %s "(cached) " >&6 10900c1e8faa6Smrgelse case e in #( 10901c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 109028650bb69Smrg/* end confdefs.h. */ 1090316d7e2f1Smrgint i; 109048650bb69Smrgint 109053458e6c2Smrgmain (void) 109068650bb69Smrg{ 109078650bb69Smrg 109088650bb69Smrg ; 109098650bb69Smrg return 0; 109108650bb69Smrg} 109118650bb69Smrg_ACEOF 109123458e6c2Smrgif ac_fn_c_try_link "$LINENO" 109133458e6c2Smrgthen : 109142becc446Smrg eval $cacheid=yes 10915c1e8faa6Smrgelse case e in #( 10916c1e8faa6Smrg e) eval $cacheid=no ;; 10917c1e8faa6Smrgesac 109188650bb69Smrgfi 109193458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10920c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 10921c1e8faa6Smrgesac 109228650bb69Smrgfi 109238650bb69Smrg 109248650bb69Smrg 1092516d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 109268650bb69Smrg 109272becc446Smrg eval supported=\$$cacheid 109283458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109293458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1093016d7e2f1Smrg if test "$supported" = "yes" ; then 1093116d7e2f1Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1093216d7e2f1Smrg found="yes" 1093316d7e2f1Smrg fi 1093416d7e2f1Smrg fi 109358650bb69Smrg 109368650bb69Smrg 109378650bb69Smrg 109388650bb69Smrg 109398650bb69Smrg 109408650bb69Smrg 109418650bb69Smrg 109422becc446Smrg 109432becc446Smrg 109442becc446Smrg 109452becc446Smrg 109462becc446Smrg 109472becc446Smrg 109482becc446Smrg 109492becc446Smrg 1095016d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1095116d7e2f1Smrg 109522becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1095316d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 109543458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 109553458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 109563458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 109573458e6c2Smrgthen : 109583458e6c2Smrg printf %s "(cached) " >&6 10959c1e8faa6Smrgelse case e in #( 10960c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1096116d7e2f1Smrg/* end confdefs.h. */ 1096216d7e2f1Smrgint i; 1096316d7e2f1Smrg_ACEOF 109643458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 109653458e6c2Smrgthen : 1096616d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10967c1e8faa6Smrgelse case e in #( 10968c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10969c1e8faa6Smrgesac 1097016d7e2f1Smrgfi 10971c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10972c1e8faa6Smrgesac 1097316d7e2f1Smrgfi 109743458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 109753458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 109762becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1097716d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 109788650bb69Smrgfi 109798650bb69Smrg 109802becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 109812becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1098216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1098316d7e2f1Smrg fi 1098416d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 109853458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 109863458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 109873458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 109883458e6c2Smrgthen : 109893458e6c2Smrg printf %s "(cached) " >&6 10990c1e8faa6Smrgelse case e in #( 10991c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1099216d7e2f1Smrg/* end confdefs.h. */ 1099316d7e2f1Smrgint i; 109948650bb69Smrg_ACEOF 109953458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 109963458e6c2Smrgthen : 1099716d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10998c1e8faa6Smrgelse case e in #( 10999c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11000c1e8faa6Smrgesac 1100116d7e2f1Smrgfi 11002c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11003c1e8faa6Smrgesac 1100416d7e2f1Smrgfi 110053458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 110063458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 110072becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1100816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1100916d7e2f1Smrgfi 1101016d7e2f1Smrg 1101116d7e2f1Smrgfound="no" 1101216d7e2f1Smrg 1101316d7e2f1Smrg if test $found = "no" ; then 110142becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1101516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1101616d7e2f1Smrg fi 1101716d7e2f1Smrg 110182becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1101916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1102016d7e2f1Smrg fi 1102116d7e2f1Smrg 1102216d7e2f1Smrg CFLAGS="$CFLAGS -Werror" 1102316d7e2f1Smrg 110243458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 110253458e6c2Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 110262becc446Smrg cacheid=xorg_cv_cc_flag__Werror 110273458e6c2Smrg if eval test \${$cacheid+y} 110283458e6c2Smrgthen : 110293458e6c2Smrg printf %s "(cached) " >&6 11030c1e8faa6Smrgelse case e in #( 11031c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 110328650bb69Smrg/* end confdefs.h. */ 1103316d7e2f1Smrgint i; 110348650bb69Smrgint 110353458e6c2Smrgmain (void) 110368650bb69Smrg{ 110378650bb69Smrg 110388650bb69Smrg ; 110398650bb69Smrg return 0; 110408650bb69Smrg} 110418650bb69Smrg_ACEOF 110423458e6c2Smrgif ac_fn_c_try_link "$LINENO" 110433458e6c2Smrgthen : 110442becc446Smrg eval $cacheid=yes 11045c1e8faa6Smrgelse case e in #( 11046c1e8faa6Smrg e) eval $cacheid=no ;; 11047c1e8faa6Smrgesac 110488650bb69Smrgfi 110493458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11050c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 11051c1e8faa6Smrgesac 110528650bb69Smrgfi 110538650bb69Smrg 1105416d7e2f1Smrg 1105516d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1105616d7e2f1Smrg 110572becc446Smrg eval supported=\$$cacheid 110583458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 110593458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1106016d7e2f1Smrg if test "$supported" = "yes" ; then 1106116d7e2f1Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1106216d7e2f1Smrg found="yes" 1106316d7e2f1Smrg fi 1106416d7e2f1Smrg fi 1106516d7e2f1Smrg 1106616d7e2f1Smrg if test $found = "no" ; then 110672becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1106816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1106916d7e2f1Smrg fi 1107016d7e2f1Smrg 110712becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1107216d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1107316d7e2f1Smrg fi 1107416d7e2f1Smrg 1107516d7e2f1Smrg CFLAGS="$CFLAGS -errwarn" 1107616d7e2f1Smrg 110773458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 110783458e6c2Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 110792becc446Smrg cacheid=xorg_cv_cc_flag__errwarn 110803458e6c2Smrg if eval test \${$cacheid+y} 110813458e6c2Smrgthen : 110823458e6c2Smrg printf %s "(cached) " >&6 11083c1e8faa6Smrgelse case e in #( 11084c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 110858650bb69Smrg/* end confdefs.h. */ 1108616d7e2f1Smrgint i; 110878650bb69Smrgint 110883458e6c2Smrgmain (void) 110898650bb69Smrg{ 110908650bb69Smrg 110918650bb69Smrg ; 110928650bb69Smrg return 0; 110938650bb69Smrg} 110948650bb69Smrg_ACEOF 110953458e6c2Smrgif ac_fn_c_try_link "$LINENO" 110963458e6c2Smrgthen : 110972becc446Smrg eval $cacheid=yes 11098c1e8faa6Smrgelse case e in #( 11099c1e8faa6Smrg e) eval $cacheid=no ;; 11100c1e8faa6Smrgesac 1110116d7e2f1Smrgfi 111023458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11103c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 11104c1e8faa6Smrgesac 111058650bb69Smrgfi 111068650bb69Smrg 1110716d7e2f1Smrg 1110816d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1110916d7e2f1Smrg 111102becc446Smrg eval supported=\$$cacheid 111113458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 111123458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1111316d7e2f1Smrg if test "$supported" = "yes" ; then 1111416d7e2f1Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1111516d7e2f1Smrg found="yes" 1111616d7e2f1Smrg fi 1111716d7e2f1Smrg fi 1111816d7e2f1Smrg 1111916d7e2f1Smrg 1112016d7e2f1Smrg 1112116d7e2f1Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1112216d7e2f1Smrg# activate it with -Werror, so we add it here explicitly. 1112316d7e2f1Smrg 1112416d7e2f1Smrg 1112516d7e2f1Smrg 1112616d7e2f1Smrg 1112716d7e2f1Smrg 111282becc446Smrg 111292becc446Smrg 111302becc446Smrg 111312becc446Smrg 111322becc446Smrg 111332becc446Smrg 111342becc446Smrg 111352becc446Smrg 1113616d7e2f1Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1113716d7e2f1Smrg 111382becc446Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1113916d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 111403458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 111413458e6c2Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 111423458e6c2Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 111433458e6c2Smrgthen : 111443458e6c2Smrg printf %s "(cached) " >&6 11145c1e8faa6Smrgelse case e in #( 11146c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1114716d7e2f1Smrg/* end confdefs.h. */ 1114816d7e2f1Smrgint i; 1114916d7e2f1Smrg_ACEOF 111503458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 111513458e6c2Smrgthen : 1115216d7e2f1Smrg xorg_cv_cc_flag_unknown_warning_option=yes 11153c1e8faa6Smrgelse case e in #( 11154c1e8faa6Smrg e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11155c1e8faa6Smrgesac 1115616d7e2f1Smrgfi 11157c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11158c1e8faa6Smrgesac 111598650bb69Smrgfi 111603458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 111613458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 111622becc446Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1116316d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 111648650bb69Smrgfi 111658650bb69Smrg 111662becc446Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 111672becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1116816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 111698650bb69Smrg fi 1117016d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 111713458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 111723458e6c2Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 111733458e6c2Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 111743458e6c2Smrgthen : 111753458e6c2Smrg printf %s "(cached) " >&6 11176c1e8faa6Smrgelse case e in #( 11177c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1117816d7e2f1Smrg/* end confdefs.h. */ 1117916d7e2f1Smrgint i; 1118016d7e2f1Smrg_ACEOF 111813458e6c2Smrgif ac_fn_c_try_compile "$LINENO" 111823458e6c2Smrgthen : 1118316d7e2f1Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 11184c1e8faa6Smrgelse case e in #( 11185c1e8faa6Smrg e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11186c1e8faa6Smrgesac 111878650bb69Smrgfi 11188c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11189c1e8faa6Smrgesac 1119016d7e2f1Smrgfi 111913458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 111923458e6c2Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 111932becc446Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1119416d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1119516d7e2f1Smrgfi 1119616d7e2f1Smrg 1119716d7e2f1Smrgfound="no" 111988650bb69Smrg 1119916d7e2f1Smrg if test $found = "no" ; then 112002becc446Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1120116d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1120216d7e2f1Smrg fi 112038650bb69Smrg 112042becc446Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1120516d7e2f1Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1120616d7e2f1Smrg fi 112078650bb69Smrg 1120816d7e2f1Smrg CFLAGS="$CFLAGS -Werror=attributes" 112098650bb69Smrg 112103458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 112113458e6c2Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 112122becc446Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 112133458e6c2Smrg if eval test \${$cacheid+y} 112143458e6c2Smrgthen : 112153458e6c2Smrg printf %s "(cached) " >&6 11216c1e8faa6Smrgelse case e in #( 11217c1e8faa6Smrg e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1121816d7e2f1Smrg/* end confdefs.h. */ 1121916d7e2f1Smrgint i; 1122016d7e2f1Smrgint 112213458e6c2Smrgmain (void) 1122216d7e2f1Smrg{ 1122316d7e2f1Smrg 1122416d7e2f1Smrg ; 1122516d7e2f1Smrg return 0; 1122616d7e2f1Smrg} 1122716d7e2f1Smrg_ACEOF 112283458e6c2Smrgif ac_fn_c_try_link "$LINENO" 112293458e6c2Smrgthen : 112302becc446Smrg eval $cacheid=yes 11231c1e8faa6Smrgelse case e in #( 11232c1e8faa6Smrg e) eval $cacheid=no ;; 11233c1e8faa6Smrgesac 1123416d7e2f1Smrgfi 112353458e6c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 11236c1e8faa6Smrg conftest$ac_exeext conftest.$ac_ext ;; 11237c1e8faa6Smrgesac 112388650bb69Smrgfi 112398650bb69Smrg 1124016d7e2f1Smrg 1124116d7e2f1Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1124216d7e2f1Smrg 112432becc446Smrg eval supported=\$$cacheid 112443458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 112453458e6c2Smrgprintf "%s\n" "$supported" >&6; } 1124616d7e2f1Smrg if test "$supported" = "yes" ; then 1124716d7e2f1Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1124816d7e2f1Smrg found="yes" 1124916d7e2f1Smrg fi 112508650bb69Smrg fi 112518650bb69Smrg 1125216d7e2f1Smrg 1125316d7e2f1Smrg 1125416d7e2f1Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1125516d7e2f1Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1125616d7e2f1Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1125716d7e2f1Smrgfi 1125816d7e2f1Smrg 1125916d7e2f1Smrg 1126016d7e2f1Smrg 1126116d7e2f1Smrg 1126216d7e2f1Smrg 1126316d7e2f1Smrg 11264c1e8faa6Smrg 11265c1e8faa6Smrg 112668650bb69Smrgcat >>confdefs.h <<_ACEOF 112678650bb69Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 112688650bb69Smrg_ACEOF 112698650bb69Smrg 112708650bb69Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 112718650bb69Smrg if test "x$PVM" = "x"; then 112728650bb69Smrg PVM="0" 112738650bb69Smrg fi 112748650bb69Smrg 112753458e6c2Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 112768650bb69Smrg 112778650bb69Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 112788650bb69Smrg if test "x$PVP" = "x"; then 112798650bb69Smrg PVP="0" 112808650bb69Smrg fi 112818650bb69Smrg 112823458e6c2Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 112838650bb69Smrg 112848650bb69Smrg 112858650bb69Smrg 112863458e6c2SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1128716d7e2f1Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 112883458e6c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 112893458e6c2Smrgtouch \$(top_srcdir)/ChangeLog; \ 112903458e6c2Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 112918650bb69Smrg 1129216d7e2f1Smrg 1129316d7e2f1Smrg 1129416d7e2f1Smrg 1129516d7e2f1Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1129616d7e2f1SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1129716d7e2f1Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 112983458e6c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 112993458e6c2Smrgtouch \$(top_srcdir)/INSTALL; \ 113003458e6c2Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 113013458e6c2Smrg 1130216d7e2f1Smrg 113038650bb69Smrg 113048650bb69Smrg 113058650bb69Smrg 113068650bb69Smrg 113073458e6c2Smrgcase $host_os in 113083458e6c2Smrg solaris*) 113093458e6c2Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 113103458e6c2Smrg # check for a man page file found in later versions that use 113113458e6c2Smrg # traditional section numbers instead 113123458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 113133458e6c2Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 113143458e6c2Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 113153458e6c2Smrgthen : 113163458e6c2Smrg printf %s "(cached) " >&6 11317c1e8faa6Smrgelse case e in #( 11318c1e8faa6Smrg e) test "$cross_compiling" = yes && 113193458e6c2Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 113203458e6c2Smrgif test -r "/usr/share/man/man7/attributes.7"; then 113213458e6c2Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 113223458e6c2Smrgelse 113233458e6c2Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 11324c1e8faa6Smrgfi ;; 11325c1e8faa6Smrgesac 113263458e6c2Smrgfi 113273458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 113283458e6c2Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 113293458e6c2Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 113303458e6c2Smrgthen : 113313458e6c2Smrg SYSV_MAN_SECTIONS=false 11332c1e8faa6Smrgelse case e in #( 11333c1e8faa6Smrg e) SYSV_MAN_SECTIONS=true ;; 11334c1e8faa6Smrgesac 113353458e6c2Smrgfi 113363458e6c2Smrg 113373458e6c2Smrg ;; 113383458e6c2Smrg *) SYSV_MAN_SECTIONS=false ;; 113393458e6c2Smrgesac 113408650bb69Smrg 113418650bb69Smrgif test x$APP_MAN_SUFFIX = x ; then 113428650bb69Smrg APP_MAN_SUFFIX=1 113438650bb69Smrgfi 113448650bb69Smrgif test x$APP_MAN_DIR = x ; then 113458650bb69Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 113468650bb69Smrgfi 113478650bb69Smrg 113488650bb69Smrgif test x$LIB_MAN_SUFFIX = x ; then 113498650bb69Smrg LIB_MAN_SUFFIX=3 113508650bb69Smrgfi 113518650bb69Smrgif test x$LIB_MAN_DIR = x ; then 113528650bb69Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 113538650bb69Smrgfi 113548650bb69Smrg 113558650bb69Smrgif test x$FILE_MAN_SUFFIX = x ; then 113563458e6c2Smrg case $SYSV_MAN_SECTIONS in 113573458e6c2Smrg true) FILE_MAN_SUFFIX=4 ;; 113583458e6c2Smrg *) FILE_MAN_SUFFIX=5 ;; 113598650bb69Smrg esac 113608650bb69Smrgfi 113618650bb69Smrgif test x$FILE_MAN_DIR = x ; then 113628650bb69Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 113638650bb69Smrgfi 113648650bb69Smrg 113658650bb69Smrgif test x$MISC_MAN_SUFFIX = x ; then 113663458e6c2Smrg case $SYSV_MAN_SECTIONS in 113673458e6c2Smrg true) MISC_MAN_SUFFIX=5 ;; 113683458e6c2Smrg *) MISC_MAN_SUFFIX=7 ;; 113698650bb69Smrg esac 113708650bb69Smrgfi 113718650bb69Smrgif test x$MISC_MAN_DIR = x ; then 113728650bb69Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 113738650bb69Smrgfi 113748650bb69Smrg 113758650bb69Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 113763458e6c2Smrg case $SYSV_MAN_SECTIONS in 113773458e6c2Smrg true) DRIVER_MAN_SUFFIX=7 ;; 113783458e6c2Smrg *) DRIVER_MAN_SUFFIX=4 ;; 113798650bb69Smrg esac 113808650bb69Smrgfi 113818650bb69Smrgif test x$DRIVER_MAN_DIR = x ; then 113828650bb69Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 113838650bb69Smrgfi 113848650bb69Smrg 113858650bb69Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 113863458e6c2Smrg case $SYSV_MAN_SECTIONS in 113873458e6c2Smrg true) ADMIN_MAN_SUFFIX=1m ;; 113883458e6c2Smrg *) ADMIN_MAN_SUFFIX=8 ;; 113898650bb69Smrg esac 113908650bb69Smrgfi 113918650bb69Smrgif test x$ADMIN_MAN_DIR = x ; then 113928650bb69Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 113938650bb69Smrgfi 113948650bb69Smrg 113958650bb69Smrg 113968650bb69Smrg 113978650bb69Smrg 113988650bb69Smrg 113998650bb69Smrg 114008650bb69Smrg 114018650bb69Smrg 114028650bb69Smrg 114038650bb69Smrg 114048650bb69Smrg 114058650bb69Smrg 114068650bb69Smrg 114078650bb69Smrg 114088650bb69Smrg 1140916d7e2f1SmrgXORG_MAN_PAGE="X Version 11" 114108650bb69Smrg 1141116d7e2f1SmrgMAN_SUBSTS="\ 1141216d7e2f1Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1141316d7e2f1Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1141416d7e2f1Smrg -e 's|__xservername__|Xorg|g' \ 1141516d7e2f1Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1141616d7e2f1Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1141716d7e2f1Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1141816d7e2f1Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1141916d7e2f1Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1142016d7e2f1Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1142116d7e2f1Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1142216d7e2f1Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1142316d7e2f1Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 114248650bb69Smrg 114252c7c4e3dSmrg 114262c7c4e3dSmrg 11427c1e8faa6Smrg 11428c1e8faa6SmrgAM_DEFAULT_VERBOSITY=0 11429c1e8faa6Smrg 11430c1e8faa6Smrg 11431c1e8faa6Smrg 11432c1e8faa6Smrg# Checks for typedefs, structures, and compiler characteristics. 11433c1e8faa6Smrg# Check whether --enable-largefile was given. 11434c1e8faa6Smrgif test ${enable_largefile+y} 114353458e6c2Smrgthen : 11436c1e8faa6Smrg enableval=$enable_largefile; 11437c1e8faa6Smrgfi 11438c1e8faa6Smrgif test "$enable_largefile,$enable_year2038" != no,no 11439c1e8faa6Smrgthen : 11440c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11441c1e8faa6Smrgprintf %s "checking for $CC option to enable large file support... " >&6; } 11442c1e8faa6Smrgif test ${ac_cv_sys_largefile_opts+y} 11443c1e8faa6Smrgthen : 11444c1e8faa6Smrg printf %s "(cached) " >&6 11445c1e8faa6Smrgelse case e in #( 11446c1e8faa6Smrg e) ac_save_CC="$CC" 11447c1e8faa6Smrg ac_opt_found=no 11448c1e8faa6Smrg for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11449c1e8faa6Smrg if test x"$ac_opt" != x"none needed" 11450c1e8faa6Smrgthen : 11451c1e8faa6Smrg CC="$ac_save_CC $ac_opt" 11452c1e8faa6Smrgfi 11453c1e8faa6Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454c1e8faa6Smrg/* end confdefs.h. */ 11455c1e8faa6Smrg#include <sys/types.h> 11456c1e8faa6Smrg#ifndef FTYPE 11457c1e8faa6Smrg# define FTYPE off_t 11458c1e8faa6Smrg#endif 11459c1e8faa6Smrg /* Check that FTYPE can represent 2**63 - 1 correctly. 11460c1e8faa6Smrg We can't simply define LARGE_FTYPE to be 9223372036854775807, 11461c1e8faa6Smrg since some C++ compilers masquerading as C compilers 11462c1e8faa6Smrg incorrectly reject 9223372036854775807. */ 11463c1e8faa6Smrg#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11464c1e8faa6Smrg int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11465c1e8faa6Smrg && LARGE_FTYPE % 2147483647 == 1) 11466c1e8faa6Smrg ? 1 : -1]; 11467c1e8faa6Smrgint 11468c1e8faa6Smrgmain (void) 11469c1e8faa6Smrg{ 11470c1e8faa6Smrg 11471c1e8faa6Smrg ; 11472c1e8faa6Smrg return 0; 11473c1e8faa6Smrg} 11474c1e8faa6Smrg_ACEOF 11475c1e8faa6Smrgif ac_fn_c_try_compile "$LINENO" 11476c1e8faa6Smrgthen : 11477c1e8faa6Smrg if test x"$ac_opt" = x"none needed" 11478c1e8faa6Smrgthen : 11479c1e8faa6Smrg # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11480c1e8faa6Smrg CC="$CC -DFTYPE=ino_t" 11481c1e8faa6Smrg if ac_fn_c_try_compile "$LINENO" 11482c1e8faa6Smrgthen : 11483c1e8faa6Smrg 11484c1e8faa6Smrgelse case e in #( 11485c1e8faa6Smrg e) CC="$CC -D_FILE_OFFSET_BITS=64" 11486c1e8faa6Smrg if ac_fn_c_try_compile "$LINENO" 11487c1e8faa6Smrgthen : 11488c1e8faa6Smrg ac_opt='-D_FILE_OFFSET_BITS=64' 11489c1e8faa6Smrgfi 11490c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11491c1e8faa6Smrgesac 11492c1e8faa6Smrgfi 11493c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 11494c1e8faa6Smrgfi 11495c1e8faa6Smrg ac_cv_sys_largefile_opts=$ac_opt 11496c1e8faa6Smrg ac_opt_found=yes 114972c7c4e3dSmrgfi 11498c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11499c1e8faa6Smrg test $ac_opt_found = no || break 11500c1e8faa6Smrg done 11501c1e8faa6Smrg CC="$ac_save_CC" 115022c7c4e3dSmrg 11503c1e8faa6Smrg test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 1150416d7e2f1Smrgesac 11505c1e8faa6Smrgfi 11506c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11507c1e8faa6Smrgprintf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11508c1e8faa6Smrg 11509c1e8faa6Smrgac_have_largefile=yes 11510c1e8faa6Smrgcase $ac_cv_sys_largefile_opts in #( 11511c1e8faa6Smrg "none needed") : 11512c1e8faa6Smrg ;; #( 11513c1e8faa6Smrg "supported through gnulib") : 11514c1e8faa6Smrg ;; #( 11515c1e8faa6Smrg "support not detected") : 11516c1e8faa6Smrg ac_have_largefile=no ;; #( 11517c1e8faa6Smrg "-D_FILE_OFFSET_BITS=64") : 11518c1e8faa6Smrg 11519c1e8faa6Smrgprintf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11520c1e8faa6Smrg ;; #( 11521c1e8faa6Smrg "-D_LARGE_FILES=1") : 11522c1e8faa6Smrg 11523c1e8faa6Smrgprintf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11524c1e8faa6Smrg ;; #( 11525c1e8faa6Smrg "-n32") : 11526c1e8faa6Smrg CC="$CC -n32" ;; #( 11527c1e8faa6Smrg *) : 11528c1e8faa6Smrg as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11529c1e8faa6Smrgesac 11530c1e8faa6Smrg 11531c1e8faa6Smrgif test "$enable_year2038" != no 11532c1e8faa6Smrgthen : 11533c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11534c1e8faa6Smrgprintf %s "checking for $CC option for timestamps after 2038... " >&6; } 11535c1e8faa6Smrgif test ${ac_cv_sys_year2038_opts+y} 115363458e6c2Smrgthen : 115373458e6c2Smrg printf %s "(cached) " >&6 11538c1e8faa6Smrgelse case e in #( 11539c1e8faa6Smrg e) ac_save_CPPFLAGS="$CPPFLAGS" 11540c1e8faa6Smrg ac_opt_found=no 11541c1e8faa6Smrg for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11542c1e8faa6Smrg if test x"$ac_opt" != x"none needed" 11543c1e8faa6Smrgthen : 11544c1e8faa6Smrg CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 115452becc446Smrgfi 11546c1e8faa6Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11547c1e8faa6Smrg/* end confdefs.h. */ 11548c1e8faa6Smrg 11549c1e8faa6Smrg #include <time.h> 11550c1e8faa6Smrg /* Check that time_t can represent 2**32 - 1 correctly. */ 11551c1e8faa6Smrg #define LARGE_TIME_T \\ 11552c1e8faa6Smrg ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11553c1e8faa6Smrg int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11554c1e8faa6Smrg && LARGE_TIME_T % 65537 == 0) 11555c1e8faa6Smrg ? 1 : -1]; 11556c1e8faa6Smrg 11557c1e8faa6Smrgint 11558c1e8faa6Smrgmain (void) 11559c1e8faa6Smrg{ 11560c1e8faa6Smrg 11561c1e8faa6Smrg ; 11562c1e8faa6Smrg return 0; 11563c1e8faa6Smrg} 11564c1e8faa6Smrg_ACEOF 11565c1e8faa6Smrgif ac_fn_c_try_compile "$LINENO" 11566c1e8faa6Smrgthen : 11567c1e8faa6Smrg ac_cv_sys_year2038_opts="$ac_opt" 11568c1e8faa6Smrg ac_opt_found=yes 115692becc446Smrgfi 11570c1e8faa6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11571c1e8faa6Smrg test $ac_opt_found = no || break 11572c1e8faa6Smrg done 11573c1e8faa6Smrg CPPFLAGS="$ac_save_CPPFLAGS" 11574c1e8faa6Smrg test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11575c1e8faa6Smrgesac 115762becc446Smrgfi 11577c1e8faa6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11578c1e8faa6Smrgprintf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11579c1e8faa6Smrg 11580c1e8faa6Smrgac_have_year2038=yes 11581c1e8faa6Smrgcase $ac_cv_sys_year2038_opts in #( 11582c1e8faa6Smrg "none needed") : 11583c1e8faa6Smrg ;; #( 11584c1e8faa6Smrg "support not detected") : 11585c1e8faa6Smrg ac_have_year2038=no ;; #( 11586c1e8faa6Smrg "-D_TIME_BITS=64") : 11587c1e8faa6Smrg 11588c1e8faa6Smrgprintf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11589c1e8faa6Smrg ;; #( 11590c1e8faa6Smrg "-D__MINGW_USE_VC2005_COMPAT") : 11591c1e8faa6Smrg 11592c1e8faa6Smrgprintf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11593c1e8faa6Smrg ;; #( 11594c1e8faa6Smrg "-U_USE_32_BIT_TIME_T"*) : 11595c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11596c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11597c1e8faa6Smrgas_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11598c1e8faa6Smrgwill stop working after mid-January 2038. Remove 11599c1e8faa6Smrg_USE_32BIT_TIME_T from the compiler flags. 11600c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #( 11601c1e8faa6Smrg *) : 11602c1e8faa6Smrg as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11603c1e8faa6Smrgesac 1160416d7e2f1Smrg 11605c1e8faa6Smrgfi 1160616d7e2f1Smrg 11607c1e8faa6Smrgfi 1160816d7e2f1Smrg 1160916d7e2f1Smrg# Checks for pkg-config packages 1161016d7e2f1Smrg 116112c7c4e3dSmrgpkg_failed=no 116123458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5 116133458e6c2Smrgprintf %s "checking for XCMSDB... " >&6; } 116148650bb69Smrg 116158650bb69Smrgif test -n "$XCMSDB_CFLAGS"; then 116168650bb69Smrg pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS" 116178650bb69Smrg elif test -n "$PKG_CONFIG"; then 116188650bb69Smrg if test -n "$PKG_CONFIG" && \ 116193458e6c2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 116202c7c4e3dSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 116212c7c4e3dSmrg ac_status=$? 116223458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1162316d7e2f1Smrg test $ac_status = 0; }; then 116242c7c4e3dSmrg pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 116253458e6c2Smrg test "x$?" != "x0" && pkg_failed=yes 116262c7c4e3dSmrgelse 116272c7c4e3dSmrg pkg_failed=yes 116282c7c4e3dSmrgfi 116298650bb69Smrg else 116308650bb69Smrg pkg_failed=untried 116312c7c4e3dSmrgfi 116328650bb69Smrgif test -n "$XCMSDB_LIBS"; then 116338650bb69Smrg pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS" 116348650bb69Smrg elif test -n "$PKG_CONFIG"; then 116358650bb69Smrg if test -n "$PKG_CONFIG" && \ 116363458e6c2Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 116372c7c4e3dSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 116382c7c4e3dSmrg ac_status=$? 116393458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1164016d7e2f1Smrg test $ac_status = 0; }; then 116412c7c4e3dSmrg pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 116423458e6c2Smrg test "x$?" != "x0" && pkg_failed=yes 116432c7c4e3dSmrgelse 116442c7c4e3dSmrg pkg_failed=yes 116452c7c4e3dSmrgfi 116468650bb69Smrg else 116478650bb69Smrg pkg_failed=untried 116482c7c4e3dSmrgfi 116492c7c4e3dSmrg 116502c7c4e3dSmrg 116512c7c4e3dSmrg 116522c7c4e3dSmrgif test $pkg_failed = yes; then 116533458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116543458e6c2Smrgprintf "%s\n" "no" >&6; } 116552c7c4e3dSmrg 116562c7c4e3dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 116572c7c4e3dSmrg _pkg_short_errors_supported=yes 116582c7c4e3dSmrgelse 116592c7c4e3dSmrg _pkg_short_errors_supported=no 116602c7c4e3dSmrgfi 116612c7c4e3dSmrg if test $_pkg_short_errors_supported = yes; then 116623458e6c2Smrg XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 116632c7c4e3dSmrg else 116643458e6c2Smrg XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 116652c7c4e3dSmrg fi 116662c7c4e3dSmrg # Put the nasty error message in config.log where it belongs 116672c7c4e3dSmrg echo "$XCMSDB_PKG_ERRORS" >&5 116682c7c4e3dSmrg 1166916d7e2f1Smrg as_fn_error $? "Package requirements (x11) were not met: 116702c7c4e3dSmrg 116712c7c4e3dSmrg$XCMSDB_PKG_ERRORS 116722c7c4e3dSmrg 116732c7c4e3dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 116742c7c4e3dSmrginstalled software in a non-standard prefix. 116752c7c4e3dSmrg 116762c7c4e3dSmrgAlternatively, you may set the environment variables XCMSDB_CFLAGS 116772c7c4e3dSmrgand XCMSDB_LIBS to avoid the need to call pkg-config. 116783458e6c2SmrgSee the pkg-config man page for more details." "$LINENO" 5 116792c7c4e3dSmrgelif test $pkg_failed = untried; then 116803458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 116813458e6c2Smrgprintf "%s\n" "no" >&6; } 11682c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11683c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1168416d7e2f1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 116852c7c4e3dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 116862c7c4e3dSmrgpath to pkg-config. 116872c7c4e3dSmrg 116882c7c4e3dSmrgAlternatively, you may set the environment variables XCMSDB_CFLAGS 116892c7c4e3dSmrgand XCMSDB_LIBS to avoid the need to call pkg-config. 116902c7c4e3dSmrgSee the pkg-config man page for more details. 116912c7c4e3dSmrg 116928650bb69SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11693c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 116942c7c4e3dSmrgelse 116952c7c4e3dSmrg XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS 116962c7c4e3dSmrg XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS 116973458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 116983458e6c2Smrgprintf "%s\n" "yes" >&6; } 116993458e6c2Smrg 117002c7c4e3dSmrgfi 117012c7c4e3dSmrg 1170216d7e2f1Smrgac_config_files="$ac_config_files Makefile man/Makefile" 117032c7c4e3dSmrg 117042c7c4e3dSmrgcat >confcache <<\_ACEOF 117052c7c4e3dSmrg# This file is a shell script that caches the results of configure 117062c7c4e3dSmrg# tests run on this system so they can be shared between configure 117072c7c4e3dSmrg# scripts and configure runs, see configure's option --config-cache. 117082c7c4e3dSmrg# It is not useful on other systems. If it contains results you don't 117092c7c4e3dSmrg# want to keep, you may remove or edit it. 117102c7c4e3dSmrg# 117112c7c4e3dSmrg# config.status only pays attention to the cache file if you give it 117122c7c4e3dSmrg# the --recheck option to rerun configure. 117132c7c4e3dSmrg# 11714c1e8faa6Smrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11715c1e8faa6Smrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the 117162c7c4e3dSmrg# following values. 117172c7c4e3dSmrg 117182c7c4e3dSmrg_ACEOF 117192c7c4e3dSmrg 117202c7c4e3dSmrg# The following way of writing the cache mishandles newlines in values, 117212c7c4e3dSmrg# but we know of no workaround that is simple, portable, and efficient. 117228650bb69Smrg# So, we kill variables containing newlines. 117232c7c4e3dSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 117242c7c4e3dSmrg# and sets the high bit in the cache file unless we assign to the vars. 117258650bb69Smrg( 117268650bb69Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 117278650bb69Smrg eval ac_val=\$$ac_var 117288650bb69Smrg case $ac_val in #( 117298650bb69Smrg *${as_nl}*) 117308650bb69Smrg case $ac_var in #( 117313458e6c2Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 117323458e6c2Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 117338650bb69Smrg esac 117348650bb69Smrg case $ac_var in #( 117358650bb69Smrg _ | IFS | as_nl) ;; #( 117368650bb69Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1173716d7e2f1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 117388650bb69Smrg esac ;; 117398650bb69Smrg esac 117408650bb69Smrg done 117418650bb69Smrg 117422c7c4e3dSmrg (set) 2>&1 | 117438650bb69Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 117448650bb69Smrg *${as_nl}ac_space=\ *) 11745c1e8faa6Smrg # 'set' does not quote correctly, so add quotes: double-quote 1174616d7e2f1Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 117472c7c4e3dSmrg sed -n \ 117482c7c4e3dSmrg "s/'/'\\\\''/g; 117492c7c4e3dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 117508650bb69Smrg ;; #( 117512c7c4e3dSmrg *) 11752c1e8faa6Smrg # 'set' quotes correctly as required by POSIX, so do not add quotes. 117538650bb69Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 117542c7c4e3dSmrg ;; 117558650bb69Smrg esac | 117568650bb69Smrg sort 117578650bb69Smrg) | 117582c7c4e3dSmrg sed ' 117598650bb69Smrg /^ac_cv_env_/b end 117602c7c4e3dSmrg t clear 117618650bb69Smrg :clear 117623458e6c2Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 117632c7c4e3dSmrg t end 117648650bb69Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 117658650bb69Smrg :end' >>confcache 117668650bb69Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 117678650bb69Smrg if test -w "$cache_file"; then 1176816d7e2f1Smrg if test "x$cache_file" != "x/dev/null"; then 117693458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 117703458e6c2Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1177116d7e2f1Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1177216d7e2f1Smrg cat confcache >"$cache_file" 1177316d7e2f1Smrg else 1177416d7e2f1Smrg case $cache_file in #( 1177516d7e2f1Smrg */* | ?:*) 1177616d7e2f1Smrg mv -f confcache "$cache_file"$$ && 1177716d7e2f1Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1177816d7e2f1Smrg *) 1177916d7e2f1Smrg mv -f confcache "$cache_file" ;; 1178016d7e2f1Smrg esac 1178116d7e2f1Smrg fi 1178216d7e2f1Smrg fi 117832c7c4e3dSmrg else 117843458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 117853458e6c2Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 117862c7c4e3dSmrg fi 117872c7c4e3dSmrgfi 117882c7c4e3dSmrgrm -f confcache 117892c7c4e3dSmrg 117902c7c4e3dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 117912c7c4e3dSmrg# Let make expand exec_prefix. 117922c7c4e3dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 117932c7c4e3dSmrg 117942c7c4e3dSmrgDEFS=-DHAVE_CONFIG_H 117952c7c4e3dSmrg 117962c7c4e3dSmrgac_libobjs= 117972c7c4e3dSmrgac_ltlibobjs= 1179816d7e2f1SmrgU= 117992c7c4e3dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 118002c7c4e3dSmrg # 1. Remove the extension, and $U if already installed. 118018650bb69Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 118023458e6c2Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 118038650bb69Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 118048650bb69Smrg # will be set to the directory where LIBOBJS objects are built. 1180516d7e2f1Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1180616d7e2f1Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 118072c7c4e3dSmrgdone 118082c7c4e3dSmrgLIBOBJS=$ac_libobjs 118092c7c4e3dSmrg 118102c7c4e3dSmrgLTLIBOBJS=$ac_ltlibobjs 118112c7c4e3dSmrg 118122c7c4e3dSmrg 118133458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 118143458e6c2Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 118152becc446Smrg if test -n "$am_sleep_pid"; then 118162becc446Smrg # Hide warnings about reused PIDs. 118172becc446Smrg wait $am_sleep_pid 2>/dev/null 118182becc446Smrg fi 118193458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 118203458e6c2Smrgprintf "%s\n" "done" >&6; } 11821c1e8faa6Smrgcase $enable_silent_rules in # ((( 11822c1e8faa6Smrg yes) AM_DEFAULT_VERBOSITY=0;; 11823c1e8faa6Smrg no) AM_DEFAULT_VERBOSITY=1;; 11824c1e8faa6Smrgesac 11825c1e8faa6Smrgif test $am_cv_make_support_nested_variables = yes; then 11826c1e8faa6Smrg AM_V='$(V)' 11827c1e8faa6Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11828c1e8faa6Smrgelse 11829c1e8faa6Smrg AM_V=$AM_DEFAULT_VERBOSITY 11830c1e8faa6Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11831c1e8faa6Smrgfi 11832c1e8faa6Smrg 118338650bb69Smrg if test -n "$EXEEXT"; then 118348650bb69Smrg am__EXEEXT_TRUE= 118358650bb69Smrg am__EXEEXT_FALSE='#' 118368650bb69Smrgelse 118378650bb69Smrg am__EXEEXT_TRUE='#' 118388650bb69Smrg am__EXEEXT_FALSE= 118398650bb69Smrgfi 118408650bb69Smrg 118412c7c4e3dSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1184216d7e2f1Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1184316d7e2f1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 118442c7c4e3dSmrgfi 118452c7c4e3dSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1184616d7e2f1Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1184716d7e2f1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 118482c7c4e3dSmrgfi 11849c1e8faa6Smrg# Check whether --enable-year2038 was given. 11850c1e8faa6Smrgif test ${enable_year2038+y} 11851c1e8faa6Smrgthen : 11852c1e8faa6Smrg enableval=$enable_year2038; 11853c1e8faa6Smrgfi 11854c1e8faa6Smrg 118552c7c4e3dSmrg 1185616d7e2f1Smrg: "${CONFIG_STATUS=./config.status}" 118578650bb69Smrgac_write_fail=0 118582c7c4e3dSmrgac_clean_files_save=$ac_clean_files 118592c7c4e3dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 118603458e6c2Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 118613458e6c2Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1186216d7e2f1Smrgas_write_fail=0 1186316d7e2f1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 118642c7c4e3dSmrg#! $SHELL 118652c7c4e3dSmrg# Generated by $as_me. 118662c7c4e3dSmrg# Run this file to recreate the current configuration. 118672c7c4e3dSmrg# Compiler output produced by configure, useful for debugging 118682c7c4e3dSmrg# configure, is in config.log if it exists. 118692c7c4e3dSmrg 118702c7c4e3dSmrgdebug=false 118712c7c4e3dSmrgac_cs_recheck=false 118722c7c4e3dSmrgac_cs_silent=false 118732c7c4e3dSmrg 1187416d7e2f1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 1187516d7e2f1Smrgexport SHELL 1187616d7e2f1Smrg_ASEOF 1187716d7e2f1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1187816d7e2f1Smrg## -------------------- ## 1187916d7e2f1Smrg## M4sh Initialization. ## 1188016d7e2f1Smrg## -------------------- ## 118812c7c4e3dSmrg 118828650bb69Smrg# Be more Bourne compatible 118838650bb69SmrgDUALCASE=1; export DUALCASE # for MKS sh 118843458e6c2Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 118853458e6c2Smrgthen : 118862c7c4e3dSmrg emulate sh 118872c7c4e3dSmrg NULLCMD=: 118888650bb69Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 118892c7c4e3dSmrg # is contrary to our usage. Disable this feature. 118902c7c4e3dSmrg alias -g '${1+"$@"}'='"$@"' 118918650bb69Smrg setopt NO_GLOB_SUBST 11892c1e8faa6Smrgelse case e in #( 11893c1e8faa6Smrg e) case `(set -o) 2>/dev/null` in #( 1189416d7e2f1Smrg *posix*) : 1189516d7e2f1Smrg set -o posix ;; #( 1189616d7e2f1Smrg *) : 1189716d7e2f1Smrg ;; 11898c1e8faa6Smrgesac ;; 118998650bb69Smrgesac 119008650bb69Smrgfi 119018650bb69Smrg 119028650bb69Smrg 119033458e6c2Smrg 119043458e6c2Smrg# Reset variables that may have inherited troublesome values from 119053458e6c2Smrg# the environment. 119063458e6c2Smrg 119073458e6c2Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 119083458e6c2Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 119093458e6c2Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 119103458e6c2Smrg# Quoting is to prevent editors from complaining about space-tab. 119118650bb69Smrgas_nl=' 119128650bb69Smrg' 119138650bb69Smrgexport as_nl 119143458e6c2SmrgIFS=" "" $as_nl" 119153458e6c2Smrg 119163458e6c2SmrgPS1='$ ' 119173458e6c2SmrgPS2='> ' 119183458e6c2SmrgPS4='+ ' 119193458e6c2Smrg 119203458e6c2Smrg# Ensure predictable behavior from utilities with locale-dependent output. 119213458e6c2SmrgLC_ALL=C 119223458e6c2Smrgexport LC_ALL 119233458e6c2SmrgLANGUAGE=C 119243458e6c2Smrgexport LANGUAGE 119253458e6c2Smrg 119263458e6c2Smrg# We cannot yet rely on "unset" to work, but we need these variables 119273458e6c2Smrg# to be unset--not just set to an empty or harmless value--now, to 119283458e6c2Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 119293458e6c2Smrg# also avoids known problems related to "unset" and subshell syntax 119303458e6c2Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 119313458e6c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 119323458e6c2Smrgdo eval test \${$as_var+y} \ 119333458e6c2Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 119343458e6c2Smrgdone 119353458e6c2Smrg 119363458e6c2Smrg# Ensure that fds 0, 1, and 2 are open. 119373458e6c2Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 119383458e6c2Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 119393458e6c2Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 119408650bb69Smrg 119418650bb69Smrg# The user is always right. 119423458e6c2Smrgif ${PATH_SEPARATOR+false} :; then 119438650bb69Smrg PATH_SEPARATOR=: 119448650bb69Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 119458650bb69Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 119468650bb69Smrg PATH_SEPARATOR=';' 119478650bb69Smrg } 119482c7c4e3dSmrgfi 119492c7c4e3dSmrg 119502c7c4e3dSmrg 119518650bb69Smrg# Find who we are. Look in the path if we contain no directory separator. 1195216d7e2f1Smrgas_myself= 1195316d7e2f1Smrgcase $0 in #(( 119548650bb69Smrg *[\\/]* ) as_myself=$0 ;; 119558650bb69Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 119568650bb69Smrgfor as_dir in $PATH 119578650bb69Smrgdo 119588650bb69Smrg IFS=$as_save_IFS 119593458e6c2Smrg case $as_dir in #((( 119603458e6c2Smrg '') as_dir=./ ;; 119613458e6c2Smrg */) ;; 119623458e6c2Smrg *) as_dir=$as_dir/ ;; 119633458e6c2Smrg esac 119643458e6c2Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1196516d7e2f1Smrg done 119668650bb69SmrgIFS=$as_save_IFS 119678650bb69Smrg 119688650bb69Smrg ;; 119698650bb69Smrgesac 11970c1e8faa6Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND' 119718650bb69Smrg# in which case we are not to be found in the path. 119728650bb69Smrgif test "x$as_myself" = x; then 119738650bb69Smrg as_myself=$0 119748650bb69Smrgfi 119758650bb69Smrgif test ! -f "$as_myself"; then 119763458e6c2Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1197716d7e2f1Smrg exit 1 119788650bb69Smrgfi 119798650bb69Smrg 1198016d7e2f1Smrg 1198116d7e2f1Smrg 1198216d7e2f1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1198316d7e2f1Smrg# ---------------------------------------- 1198416d7e2f1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1198516d7e2f1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1198616d7e2f1Smrg# script with STATUS, using 1 if that was 0. 1198716d7e2f1Smrgas_fn_error () 1198816d7e2f1Smrg{ 1198916d7e2f1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1199016d7e2f1Smrg if test "$4"; then 1199116d7e2f1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 119923458e6c2Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1199316d7e2f1Smrg fi 119943458e6c2Smrg printf "%s\n" "$as_me: error: $2" >&2 1199516d7e2f1Smrg as_fn_exit $as_status 1199616d7e2f1Smrg} # as_fn_error 1199716d7e2f1Smrg 1199816d7e2f1Smrg 1199916d7e2f1Smrg# as_fn_set_status STATUS 1200016d7e2f1Smrg# ----------------------- 1200116d7e2f1Smrg# Set $? to STATUS, without forking. 1200216d7e2f1Smrgas_fn_set_status () 1200316d7e2f1Smrg{ 1200416d7e2f1Smrg return $1 1200516d7e2f1Smrg} # as_fn_set_status 1200616d7e2f1Smrg 1200716d7e2f1Smrg# as_fn_exit STATUS 1200816d7e2f1Smrg# ----------------- 1200916d7e2f1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1201016d7e2f1Smrgas_fn_exit () 1201116d7e2f1Smrg{ 1201216d7e2f1Smrg set +e 1201316d7e2f1Smrg as_fn_set_status $1 1201416d7e2f1Smrg exit $1 1201516d7e2f1Smrg} # as_fn_exit 1201616d7e2f1Smrg 1201716d7e2f1Smrg# as_fn_unset VAR 1201816d7e2f1Smrg# --------------- 1201916d7e2f1Smrg# Portably unset VAR. 1202016d7e2f1Smrgas_fn_unset () 1202116d7e2f1Smrg{ 1202216d7e2f1Smrg { eval $1=; unset $1;} 1202316d7e2f1Smrg} 1202416d7e2f1Smrgas_unset=as_fn_unset 120253458e6c2Smrg 1202616d7e2f1Smrg# as_fn_append VAR VALUE 1202716d7e2f1Smrg# ---------------------- 1202816d7e2f1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1202916d7e2f1Smrg# advantage of any shell optimizations that allow amortized linear growth over 1203016d7e2f1Smrg# repeated appends, instead of the typical quadratic growth present in naive 1203116d7e2f1Smrg# implementations. 120323458e6c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 120333458e6c2Smrgthen : 1203416d7e2f1Smrg eval 'as_fn_append () 1203516d7e2f1Smrg { 1203616d7e2f1Smrg eval $1+=\$2 1203716d7e2f1Smrg }' 12038c1e8faa6Smrgelse case e in #( 12039c1e8faa6Smrg e) as_fn_append () 1204016d7e2f1Smrg { 1204116d7e2f1Smrg eval $1=\$$1\$2 12042c1e8faa6Smrg } ;; 12043c1e8faa6Smrgesac 1204416d7e2f1Smrgfi # as_fn_append 1204516d7e2f1Smrg 1204616d7e2f1Smrg# as_fn_arith ARG... 1204716d7e2f1Smrg# ------------------ 1204816d7e2f1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1204916d7e2f1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1205016d7e2f1Smrg# must be portable across $(()) and expr. 120513458e6c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 120523458e6c2Smrgthen : 1205316d7e2f1Smrg eval 'as_fn_arith () 1205416d7e2f1Smrg { 1205516d7e2f1Smrg as_val=$(( $* )) 1205616d7e2f1Smrg }' 12057c1e8faa6Smrgelse case e in #( 12058c1e8faa6Smrg e) as_fn_arith () 1205916d7e2f1Smrg { 1206016d7e2f1Smrg as_val=`expr "$@" || test $? -eq 1` 12061c1e8faa6Smrg } ;; 12062c1e8faa6Smrgesac 1206316d7e2f1Smrgfi # as_fn_arith 1206416d7e2f1Smrg 1206516d7e2f1Smrg 120668650bb69Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 120678650bb69Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 120682c7c4e3dSmrg as_expr=expr 120692c7c4e3dSmrgelse 120702c7c4e3dSmrg as_expr=false 120712c7c4e3dSmrgfi 120722c7c4e3dSmrg 120738650bb69Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120742c7c4e3dSmrg as_basename=basename 120752c7c4e3dSmrgelse 120762c7c4e3dSmrg as_basename=false 120772c7c4e3dSmrgfi 120782c7c4e3dSmrg 1207916d7e2f1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1208016d7e2f1Smrg as_dirname=dirname 1208116d7e2f1Smrgelse 1208216d7e2f1Smrg as_dirname=false 1208316d7e2f1Smrgfi 120842c7c4e3dSmrg 120858650bb69Smrgas_me=`$as_basename -- "$0" || 120862c7c4e3dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 120872c7c4e3dSmrg X"$0" : 'X\(//\)$' \| \ 120888650bb69Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 120893458e6c2Smrgprintf "%s\n" X/"$0" | 120908650bb69Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 120918650bb69Smrg s//\1/ 120928650bb69Smrg q 120938650bb69Smrg } 120948650bb69Smrg /^X\/\(\/\/\)$/{ 120958650bb69Smrg s//\1/ 120968650bb69Smrg q 120978650bb69Smrg } 120988650bb69Smrg /^X\/\(\/\).*/{ 120998650bb69Smrg s//\1/ 121008650bb69Smrg q 121018650bb69Smrg } 121028650bb69Smrg s/.*/./; q'` 121032c7c4e3dSmrg 1210416d7e2f1Smrg# Avoid depending upon Character Ranges. 1210516d7e2f1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1210616d7e2f1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1210716d7e2f1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1210816d7e2f1Smrgas_cr_digits='0123456789' 1210916d7e2f1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 121102c7c4e3dSmrg 121113458e6c2Smrg 121123458e6c2Smrg# Determine whether it's possible to make 'echo' print without a newline. 121133458e6c2Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 121143458e6c2Smrg# for compatibility with existing Makefiles. 121158650bb69SmrgECHO_C= ECHO_N= ECHO_T= 1211616d7e2f1Smrgcase `echo -n x` in #((((( 121178650bb69Smrg-n*) 1211816d7e2f1Smrg case `echo 'xy\c'` in 121198650bb69Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1212016d7e2f1Smrg xy) ECHO_C='\c';; 1212116d7e2f1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1212216d7e2f1Smrg ECHO_T=' ';; 121238650bb69Smrg esac;; 121248650bb69Smrg*) 121258650bb69Smrg ECHO_N='-n';; 121268650bb69Smrgesac 121272c7c4e3dSmrg 121283458e6c2Smrg# For backward compatibility with old third-party macros, we provide 121293458e6c2Smrg# the shell variables $as_echo and $as_echo_n. New code should use 121303458e6c2Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 121313458e6c2Smrgas_echo='printf %s\n' 121323458e6c2Smrgas_echo_n='printf %s' 121333458e6c2Smrg 121342c7c4e3dSmrgrm -f conf$$ conf$$.exe conf$$.file 121358650bb69Smrgif test -d conf$$.dir; then 121368650bb69Smrg rm -f conf$$.dir/conf$$.file 121378650bb69Smrgelse 121388650bb69Smrg rm -f conf$$.dir 121398650bb69Smrg mkdir conf$$.dir 2>/dev/null 121408650bb69Smrgfi 121418650bb69Smrgif (echo >conf$$.file) 2>/dev/null; then 121428650bb69Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 121432c7c4e3dSmrg as_ln_s='ln -s' 121448650bb69Smrg # ... but there are two gotchas: 12145c1e8faa6Smrg # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12146c1e8faa6Smrg # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12147c1e8faa6Smrg # In both cases, we have to default to 'cp -pR'. 121488650bb69Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 121492becc446Smrg as_ln_s='cp -pR' 121508650bb69Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 121518650bb69Smrg as_ln_s=ln 121528650bb69Smrg else 121532becc446Smrg as_ln_s='cp -pR' 121542c7c4e3dSmrg fi 121552c7c4e3dSmrgelse 121562becc446Smrg as_ln_s='cp -pR' 121572c7c4e3dSmrgfi 121588650bb69Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 121598650bb69Smrgrmdir conf$$.dir 2>/dev/null 121602c7c4e3dSmrg 1216116d7e2f1Smrg 1216216d7e2f1Smrg# as_fn_mkdir_p 1216316d7e2f1Smrg# ------------- 1216416d7e2f1Smrg# Create "$as_dir" as a directory, including parents if necessary. 1216516d7e2f1Smrgas_fn_mkdir_p () 1216616d7e2f1Smrg{ 1216716d7e2f1Smrg 1216816d7e2f1Smrg case $as_dir in #( 1216916d7e2f1Smrg -*) as_dir=./$as_dir;; 1217016d7e2f1Smrg esac 1217116d7e2f1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 1217216d7e2f1Smrg as_dirs= 1217316d7e2f1Smrg while :; do 1217416d7e2f1Smrg case $as_dir in #( 121753458e6c2Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1217616d7e2f1Smrg *) as_qdir=$as_dir;; 1217716d7e2f1Smrg esac 1217816d7e2f1Smrg as_dirs="'$as_qdir' $as_dirs" 1217916d7e2f1Smrg as_dir=`$as_dirname -- "$as_dir" || 1218016d7e2f1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1218116d7e2f1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1218216d7e2f1Smrg X"$as_dir" : 'X\(//\)$' \| \ 1218316d7e2f1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 121843458e6c2Smrgprintf "%s\n" X"$as_dir" | 1218516d7e2f1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1218616d7e2f1Smrg s//\1/ 1218716d7e2f1Smrg q 1218816d7e2f1Smrg } 1218916d7e2f1Smrg /^X\(\/\/\)[^/].*/{ 1219016d7e2f1Smrg s//\1/ 1219116d7e2f1Smrg q 1219216d7e2f1Smrg } 1219316d7e2f1Smrg /^X\(\/\/\)$/{ 1219416d7e2f1Smrg s//\1/ 1219516d7e2f1Smrg q 1219616d7e2f1Smrg } 1219716d7e2f1Smrg /^X\(\/\).*/{ 1219816d7e2f1Smrg s//\1/ 1219916d7e2f1Smrg q 1220016d7e2f1Smrg } 1220116d7e2f1Smrg s/.*/./; q'` 1220216d7e2f1Smrg test -d "$as_dir" && break 1220316d7e2f1Smrg done 1220416d7e2f1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1220516d7e2f1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1220616d7e2f1Smrg 1220716d7e2f1Smrg 1220816d7e2f1Smrg} # as_fn_mkdir_p 122092c7c4e3dSmrgif mkdir -p . 2>/dev/null; then 1221016d7e2f1Smrg as_mkdir_p='mkdir -p "$as_dir"' 122112c7c4e3dSmrgelse 122122c7c4e3dSmrg test -d ./-p && rmdir ./-p 122132c7c4e3dSmrg as_mkdir_p=false 122142c7c4e3dSmrgfi 122152c7c4e3dSmrg 122162becc446Smrg 122172becc446Smrg# as_fn_executable_p FILE 122182becc446Smrg# ----------------------- 122192becc446Smrg# Test if FILE is an executable regular file. 122202becc446Smrgas_fn_executable_p () 122212becc446Smrg{ 122222becc446Smrg test -f "$1" && test -x "$1" 122232becc446Smrg} # as_fn_executable_p 122242becc446Smrgas_test_x='test -x' 122252becc446Smrgas_executable_p=as_fn_executable_p 122262c7c4e3dSmrg 122272c7c4e3dSmrg# Sed expression to map a string onto a valid CPP name. 12228c1e8faa6Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12229c1e8faa6Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 122302c7c4e3dSmrg 122312c7c4e3dSmrg# Sed expression to map a string onto a valid variable name. 12232c1e8faa6Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12233c1e8faa6Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated 122342c7c4e3dSmrg 122352c7c4e3dSmrg 122362c7c4e3dSmrgexec 6>&1 1223716d7e2f1Smrg## ----------------------------------- ## 1223816d7e2f1Smrg## Main body of $CONFIG_STATUS script. ## 1223916d7e2f1Smrg## ----------------------------------- ## 1224016d7e2f1Smrg_ASEOF 1224116d7e2f1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 122422c7c4e3dSmrg 1224316d7e2f1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1224416d7e2f1Smrg# Save the log message, to keep $0 and so on meaningful, and to 122452c7c4e3dSmrg# report actual input values of CONFIG_FILES etc. instead of their 122468650bb69Smrg# values after options handling. 122478650bb69Smrgac_log=" 12248c1e8faa6SmrgThis file was extended by xcmsdb $as_me 1.0.7, which was 12249c1e8faa6Smrggenerated by GNU Autoconf 2.72. Invocation command line was 122502c7c4e3dSmrg 122512c7c4e3dSmrg CONFIG_FILES = $CONFIG_FILES 122522c7c4e3dSmrg CONFIG_HEADERS = $CONFIG_HEADERS 122532c7c4e3dSmrg CONFIG_LINKS = $CONFIG_LINKS 122542c7c4e3dSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 122552c7c4e3dSmrg $ $0 $@ 122562c7c4e3dSmrg 122578650bb69Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 122588650bb69Smrg" 122598650bb69Smrg 122602c7c4e3dSmrg_ACEOF 122612c7c4e3dSmrg 122628650bb69Smrgcase $ac_config_files in *" 122638650bb69Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 122648650bb69Smrgesac 122652c7c4e3dSmrg 122668650bb69Smrgcase $ac_config_headers in *" 122678650bb69Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 122688650bb69Smrgesac 122692c7c4e3dSmrg 122702c7c4e3dSmrg 122718650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122728650bb69Smrg# Files that config.status was made for. 122738650bb69Smrgconfig_files="$ac_config_files" 122748650bb69Smrgconfig_headers="$ac_config_headers" 122758650bb69Smrgconfig_commands="$ac_config_commands" 122762c7c4e3dSmrg 122778650bb69Smrg_ACEOF 122782c7c4e3dSmrg 122798650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122802c7c4e3dSmrgac_cs_usage="\ 12281c1e8faa6Smrg'$as_me' instantiates files and other configuration actions 1228216d7e2f1Smrgfrom templates according to the current configuration. Unless the files 1228316d7e2f1Smrgand actions are specified as TAGs, all are instantiated by default. 122842c7c4e3dSmrg 1228516d7e2f1SmrgUsage: $0 [OPTION]... [TAG]... 122862c7c4e3dSmrg 122872c7c4e3dSmrg -h, --help print this help, then exit 122888650bb69Smrg -V, --version print version number and configuration settings, then exit 1228916d7e2f1Smrg --config print configuration, then exit 122908650bb69Smrg -q, --quiet, --silent 122918650bb69Smrg do not print progress messages 122922c7c4e3dSmrg -d, --debug don't remove temporary files 122932c7c4e3dSmrg --recheck update $as_me by reconfiguring in the same conditions 122948650bb69Smrg --file=FILE[:TEMPLATE] 122958650bb69Smrg instantiate the configuration file FILE 122968650bb69Smrg --header=FILE[:TEMPLATE] 122978650bb69Smrg instantiate the configuration header FILE 122982c7c4e3dSmrg 122992c7c4e3dSmrgConfiguration files: 123002c7c4e3dSmrg$config_files 123012c7c4e3dSmrg 123022c7c4e3dSmrgConfiguration headers: 123032c7c4e3dSmrg$config_headers 123042c7c4e3dSmrg 123052c7c4e3dSmrgConfiguration commands: 123062c7c4e3dSmrg$config_commands 123072c7c4e3dSmrg 12308c1e8faa6SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues>." 123092c7c4e3dSmrg 123108650bb69Smrg_ACEOF 123113458e6c2Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 123123458e6c2Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 123138650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123143458e6c2Smrgac_cs_config='$ac_cs_config_escaped' 123152c7c4e3dSmrgac_cs_version="\\ 12316c1e8faa6Smrgxcmsdb config.status 1.0.7 12317c1e8faa6Smrgconfigured by $0, generated by GNU Autoconf 2.72, 1231816d7e2f1Smrg with options \\"\$ac_cs_config\\" 123192c7c4e3dSmrg 12320c1e8faa6SmrgCopyright (C) 2023 Free Software Foundation, Inc. 123212c7c4e3dSmrgThis config.status script is free software; the Free Software Foundation 123222c7c4e3dSmrggives unlimited permission to copy, distribute and modify it." 123238650bb69Smrg 123248650bb69Smrgac_pwd='$ac_pwd' 123258650bb69Smrgsrcdir='$srcdir' 123268650bb69SmrgINSTALL='$INSTALL' 123278650bb69SmrgMKDIR_P='$MKDIR_P' 123288650bb69SmrgAWK='$AWK' 123298650bb69Smrgtest -n "\$AWK" || AWK=awk 123302c7c4e3dSmrg_ACEOF 123312c7c4e3dSmrg 123328650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123338650bb69Smrg# The default lists apply if the user does not specify any file. 123342c7c4e3dSmrgac_need_defaults=: 123352c7c4e3dSmrgwhile test $# != 0 123362c7c4e3dSmrgdo 123372c7c4e3dSmrg case $1 in 1233816d7e2f1Smrg --*=?*) 123398650bb69Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 123408650bb69Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 123412c7c4e3dSmrg ac_shift=: 123422c7c4e3dSmrg ;; 1234316d7e2f1Smrg --*=) 1234416d7e2f1Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1234516d7e2f1Smrg ac_optarg= 1234616d7e2f1Smrg ac_shift=: 1234716d7e2f1Smrg ;; 123488650bb69Smrg *) 123492c7c4e3dSmrg ac_option=$1 123502c7c4e3dSmrg ac_optarg=$2 123512c7c4e3dSmrg ac_shift=shift 123522c7c4e3dSmrg ;; 123532c7c4e3dSmrg esac 123542c7c4e3dSmrg 123552c7c4e3dSmrg case $ac_option in 123562c7c4e3dSmrg # Handling of the options. 123572c7c4e3dSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 123582c7c4e3dSmrg ac_cs_recheck=: ;; 123598650bb69Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 123603458e6c2Smrg printf "%s\n" "$ac_cs_version"; exit ;; 1236116d7e2f1Smrg --config | --confi | --conf | --con | --co | --c ) 123623458e6c2Smrg printf "%s\n" "$ac_cs_config"; exit ;; 123638650bb69Smrg --debug | --debu | --deb | --de | --d | -d ) 123642c7c4e3dSmrg debug=: ;; 123652c7c4e3dSmrg --file | --fil | --fi | --f ) 123662c7c4e3dSmrg $ac_shift 123678650bb69Smrg case $ac_optarg in 123683458e6c2Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1236916d7e2f1Smrg '') as_fn_error $? "missing file argument" ;; 123708650bb69Smrg esac 1237116d7e2f1Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 123722c7c4e3dSmrg ac_need_defaults=false;; 123732c7c4e3dSmrg --header | --heade | --head | --hea ) 123742c7c4e3dSmrg $ac_shift 123758650bb69Smrg case $ac_optarg in 123763458e6c2Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 123778650bb69Smrg esac 1237816d7e2f1Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 123792c7c4e3dSmrg ac_need_defaults=false;; 123808650bb69Smrg --he | --h) 123818650bb69Smrg # Conflict between --help and --header 12382c1e8faa6Smrg as_fn_error $? "ambiguous option: '$1' 12383c1e8faa6SmrgTry '$0 --help' for more information.";; 123848650bb69Smrg --help | --hel | -h ) 123853458e6c2Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 123862c7c4e3dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 123872c7c4e3dSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 123882c7c4e3dSmrg ac_cs_silent=: ;; 123892c7c4e3dSmrg 123902c7c4e3dSmrg # This is an error. 12391c1e8faa6Smrg -*) as_fn_error $? "unrecognized option: '$1' 12392c1e8faa6SmrgTry '$0 --help' for more information." ;; 123932c7c4e3dSmrg 1239416d7e2f1Smrg *) as_fn_append ac_config_targets " $1" 123958650bb69Smrg ac_need_defaults=false ;; 123962c7c4e3dSmrg 123972c7c4e3dSmrg esac 123982c7c4e3dSmrg shift 123992c7c4e3dSmrgdone 124002c7c4e3dSmrg 124012c7c4e3dSmrgac_configure_extra_args= 124022c7c4e3dSmrg 124032c7c4e3dSmrgif $ac_cs_silent; then 124042c7c4e3dSmrg exec 6>/dev/null 124052c7c4e3dSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 124062c7c4e3dSmrgfi 124072c7c4e3dSmrg 124082c7c4e3dSmrg_ACEOF 124098650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124102c7c4e3dSmrgif \$ac_cs_recheck; then 124112becc446Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 124128650bb69Smrg shift 124133458e6c2Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 124148650bb69Smrg CONFIG_SHELL='$SHELL' 124158650bb69Smrg export CONFIG_SHELL 124168650bb69Smrg exec "\$@" 124172c7c4e3dSmrgfi 124182c7c4e3dSmrg 124192c7c4e3dSmrg_ACEOF 124208650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124218650bb69Smrgexec 5>>config.log 124228650bb69Smrg{ 124238650bb69Smrg echo 124248650bb69Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 124258650bb69Smrg## Running $as_me. ## 124268650bb69Smrg_ASBOX 124273458e6c2Smrg printf "%s\n" "$ac_log" 124288650bb69Smrg} >&5 124292c7c4e3dSmrg 124308650bb69Smrg_ACEOF 124318650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124322c7c4e3dSmrg# 124338650bb69Smrg# INIT-COMMANDS 124342c7c4e3dSmrg# 124353458e6c2SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 124362c7c4e3dSmrg 124372c7c4e3dSmrg_ACEOF 124382c7c4e3dSmrg 124398650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124402c7c4e3dSmrg 124418650bb69Smrg# Handling of arguments. 124422c7c4e3dSmrgfor ac_config_target in $ac_config_targets 124432c7c4e3dSmrgdo 124448650bb69Smrg case $ac_config_target in 124458650bb69Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 124468650bb69Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 124478650bb69Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1244816d7e2f1Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 124498650bb69Smrg 12450c1e8faa6Smrg *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 124512c7c4e3dSmrg esac 124522c7c4e3dSmrgdone 124532c7c4e3dSmrg 124548650bb69Smrg 124552c7c4e3dSmrg# If the user did not use the arguments to specify the items to instantiate, 124562c7c4e3dSmrg# then the envvar interface is used. Set only those that are not. 124572c7c4e3dSmrg# We use the long form for the default assignment because of an extremely 124582c7c4e3dSmrg# bizarre bug on SunOS 4.1.3. 124592c7c4e3dSmrgif $ac_need_defaults; then 124603458e6c2Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 124613458e6c2Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 124623458e6c2Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 124632c7c4e3dSmrgfi 124642c7c4e3dSmrg 124652c7c4e3dSmrg# Have a temporary directory for convenience. Make it in the build tree 124668650bb69Smrg# simply because there is no reason against having it here, and in addition, 124672c7c4e3dSmrg# creating and moving files from /tmp can sometimes cause problems. 124688650bb69Smrg# Hook for its removal unless debugging. 124698650bb69Smrg# Note that there is a small window in which the directory will not be cleaned: 12470c1e8faa6Smrg# after its creation but before its name has been assigned to '$tmp'. 124712c7c4e3dSmrg$debug || 124722c7c4e3dSmrg{ 1247316d7e2f1Smrg tmp= ac_tmp= 124748650bb69Smrg trap 'exit_status=$? 1247516d7e2f1Smrg : "${ac_tmp:=$tmp}" 1247616d7e2f1Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 124778650bb69Smrg' 0 1247816d7e2f1Smrg trap 'as_fn_exit 1' 1 2 13 15 124792c7c4e3dSmrg} 124802c7c4e3dSmrg# Create a (secure) tmp directory for tmp files. 124812c7c4e3dSmrg 124822c7c4e3dSmrg{ 124838650bb69Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1248416d7e2f1Smrg test -d "$tmp" 124852c7c4e3dSmrg} || 124862c7c4e3dSmrg{ 124878650bb69Smrg tmp=./conf$$-$RANDOM 124888650bb69Smrg (umask 077 && mkdir "$tmp") 1248916d7e2f1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1249016d7e2f1Smrgac_tmp=$tmp 124912c7c4e3dSmrg 124928650bb69Smrg# Set up the scripts for CONFIG_FILES section. 124938650bb69Smrg# No need to generate them if there are no CONFIG_FILES. 12494c1e8faa6Smrg# This happens for instance with './config.status config.h'. 124958650bb69Smrgif test -n "$CONFIG_FILES"; then 124968650bb69Smrg 124978650bb69Smrg 1249816d7e2f1Smrgac_cr=`echo X | tr X '\015'` 1249916d7e2f1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1250016d7e2f1Smrg# But we know of no other shell where ac_cr would be empty at this 1250116d7e2f1Smrg# point, so we can use a bashism as a fallback. 1250216d7e2f1Smrgif test "x$ac_cr" = x; then 1250316d7e2f1Smrg eval ac_cr=\$\'\\r\' 1250416d7e2f1Smrgfi 125058650bb69Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 125068650bb69Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 125078650bb69Smrg ac_cs_awk_cr='\\r' 125088650bb69Smrgelse 125098650bb69Smrg ac_cs_awk_cr=$ac_cr 125108650bb69Smrgfi 125118650bb69Smrg 1251216d7e2f1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 125132c7c4e3dSmrg_ACEOF 125142c7c4e3dSmrg 125152c7c4e3dSmrg 125168650bb69Smrg{ 125178650bb69Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 125188650bb69Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 125198650bb69Smrg echo "_ACEOF" 125208650bb69Smrg} >conf$$subs.sh || 1252116d7e2f1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1252216d7e2f1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 125238650bb69Smrgac_delim='%!_!# ' 125248650bb69Smrgfor ac_last_try in false false false false false :; do 125258650bb69Smrg . ./conf$$subs.sh || 1252616d7e2f1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 125272c7c4e3dSmrg 125288650bb69Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 125298650bb69Smrg if test $ac_delim_n = $ac_delim_num; then 125308650bb69Smrg break 125318650bb69Smrg elif $ac_last_try; then 1253216d7e2f1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 125338650bb69Smrg else 125348650bb69Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 125358650bb69Smrg fi 125368650bb69Smrgdone 125378650bb69Smrgrm -f conf$$subs.sh 125382c7c4e3dSmrg 125398650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1254016d7e2f1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 125412c7c4e3dSmrg_ACEOF 125428650bb69Smrgsed -n ' 125438650bb69Smrgh 125448650bb69Smrgs/^/S["/; s/!.*/"]=/ 125458650bb69Smrgp 125468650bb69Smrgg 125478650bb69Smrgs/^[^!]*!// 125488650bb69Smrg:repl 125498650bb69Smrgt repl 125508650bb69Smrgs/'"$ac_delim"'$// 125518650bb69Smrgt delim 125528650bb69Smrg:nl 125538650bb69Smrgh 1255416d7e2f1Smrgs/\(.\{148\}\)..*/\1/ 125558650bb69Smrgt more1 125568650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 125578650bb69Smrgp 125588650bb69Smrgn 125598650bb69Smrgb repl 125608650bb69Smrg:more1 125618650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 125628650bb69Smrgp 125638650bb69Smrgg 125648650bb69Smrgs/.\{148\}// 125658650bb69Smrgt nl 125668650bb69Smrg:delim 125678650bb69Smrgh 1256816d7e2f1Smrgs/\(.\{148\}\)..*/\1/ 125698650bb69Smrgt more2 125708650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 125718650bb69Smrgp 125728650bb69Smrgb 125738650bb69Smrg:more2 125748650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 125758650bb69Smrgp 125768650bb69Smrgg 125778650bb69Smrgs/.\{148\}// 125788650bb69Smrgt delim 125798650bb69Smrg' <conf$$subs.awk | sed ' 125808650bb69Smrg/^[^""]/{ 125818650bb69Smrg N 125828650bb69Smrg s/\n// 125838650bb69Smrg} 125848650bb69Smrg' >>$CONFIG_STATUS || ac_write_fail=1 125858650bb69Smrgrm -f conf$$subs.awk 125868650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125878650bb69Smrg_ACAWK 1258816d7e2f1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 125898650bb69Smrg for (key in S) S_is_set[key] = 1 125908650bb69Smrg FS = "" 125912c7c4e3dSmrg 125928650bb69Smrg} 125938650bb69Smrg{ 125948650bb69Smrg line = $ 0 125958650bb69Smrg nfields = split(line, field, "@") 125968650bb69Smrg substed = 0 125978650bb69Smrg len = length(field[1]) 125988650bb69Smrg for (i = 2; i < nfields; i++) { 125998650bb69Smrg key = field[i] 126008650bb69Smrg keylen = length(key) 126018650bb69Smrg if (S_is_set[key]) { 126028650bb69Smrg value = S[key] 126038650bb69Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 126048650bb69Smrg len += length(value) + length(field[++i]) 126058650bb69Smrg substed = 1 126068650bb69Smrg } else 126078650bb69Smrg len += 1 + keylen 126088650bb69Smrg } 126098650bb69Smrg 126108650bb69Smrg print line 126118650bb69Smrg} 126128650bb69Smrg 126138650bb69Smrg_ACAWK 126148650bb69Smrg_ACEOF 126158650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 126168650bb69Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 126178650bb69Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 126188650bb69Smrgelse 126198650bb69Smrg cat 1262016d7e2f1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1262116d7e2f1Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 126228650bb69Smrg_ACEOF 126238650bb69Smrg 1262416d7e2f1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1262516d7e2f1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 126268650bb69Smrg# trailing colons and then remove the whole line if VPATH becomes empty 126278650bb69Smrg# (actually we leave an empty line to preserve line numbers). 126288650bb69Smrgif test "x$srcdir" = x.; then 1262916d7e2f1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1263016d7e2f1Smrgh 1263116d7e2f1Smrgs/// 1263216d7e2f1Smrgs/^/:/ 1263316d7e2f1Smrgs/[ ]*$/:/ 1263416d7e2f1Smrgs/:\$(srcdir):/:/g 1263516d7e2f1Smrgs/:\${srcdir}:/:/g 1263616d7e2f1Smrgs/:@srcdir@:/:/g 1263716d7e2f1Smrgs/^:*// 126388650bb69Smrgs/:*$// 1263916d7e2f1Smrgx 1264016d7e2f1Smrgs/\(=[ ]*\).*/\1/ 1264116d7e2f1SmrgG 1264216d7e2f1Smrgs/\n// 126438650bb69Smrgs/^[^=]*=[ ]*$// 126448650bb69Smrg}' 126458650bb69Smrgfi 126468650bb69Smrg 126478650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 126482c7c4e3dSmrgfi # test -n "$CONFIG_FILES" 126492c7c4e3dSmrg 126508650bb69Smrg# Set up the scripts for CONFIG_HEADERS section. 126518650bb69Smrg# No need to generate them if there are no CONFIG_HEADERS. 12652c1e8faa6Smrg# This happens for instance with './config.status Makefile'. 126538650bb69Smrgif test -n "$CONFIG_HEADERS"; then 1265416d7e2f1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 126558650bb69SmrgBEGIN { 126562c7c4e3dSmrg_ACEOF 126578650bb69Smrg 12658c1e8faa6Smrg# Transform confdefs.h into an awk script 'defines.awk', embedded as 126598650bb69Smrg# here-document in config.status, that substitutes the proper values into 126608650bb69Smrg# config.h.in to produce config.h. 126618650bb69Smrg 126628650bb69Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 126638650bb69Smrg# handling of long lines. 126648650bb69Smrgac_delim='%!_!# ' 126658650bb69Smrgfor ac_last_try in false false :; do 1266616d7e2f1Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1266716d7e2f1Smrg if test -z "$ac_tt"; then 126688650bb69Smrg break 126698650bb69Smrg elif $ac_last_try; then 1267016d7e2f1Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 126718650bb69Smrg else 126728650bb69Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 126738650bb69Smrg fi 126748650bb69Smrgdone 126758650bb69Smrg 126768650bb69Smrg# For the awk script, D is an array of macro values keyed by name, 126778650bb69Smrg# likewise P contains macro parameters if any. Preserve backslash 126788650bb69Smrg# newline sequences. 126798650bb69Smrg 126808650bb69Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 126818650bb69Smrgsed -n ' 126828650bb69Smrgs/.\{148\}/&'"$ac_delim"'/g 126838650bb69Smrgt rset 126848650bb69Smrg:rset 126858650bb69Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 126868650bb69Smrgt def 126878650bb69Smrgd 126888650bb69Smrg:def 126898650bb69Smrgs/\\$// 126908650bb69Smrgt bsnl 126918650bb69Smrgs/["\\]/\\&/g 126928650bb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 126938650bb69SmrgD["\1"]=" \3"/p 126948650bb69Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 126958650bb69Smrgd 126968650bb69Smrg:bsnl 126978650bb69Smrgs/["\\]/\\&/g 126988650bb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 126998650bb69SmrgD["\1"]=" \3\\\\\\n"\\/p 127008650bb69Smrgt cont 127018650bb69Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 127028650bb69Smrgt cont 127038650bb69Smrgd 127048650bb69Smrg:cont 127058650bb69Smrgn 127068650bb69Smrgs/.\{148\}/&'"$ac_delim"'/g 127078650bb69Smrgt clear 127088650bb69Smrg:clear 127098650bb69Smrgs/\\$// 127108650bb69Smrgt bsnlc 127118650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 127128650bb69Smrgd 127138650bb69Smrg:bsnlc 127148650bb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 127158650bb69Smrgb cont 127168650bb69Smrg' <confdefs.h | sed ' 127178650bb69Smrgs/'"$ac_delim"'/"\\\ 127188650bb69Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 127198650bb69Smrg 127208650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127218650bb69Smrg for (key in D) D_is_set[key] = 1 127228650bb69Smrg FS = "" 127238650bb69Smrg} 127248650bb69Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 127258650bb69Smrg line = \$ 0 127268650bb69Smrg split(line, arg, " ") 127278650bb69Smrg if (arg[1] == "#") { 127288650bb69Smrg defundef = arg[2] 127298650bb69Smrg mac1 = arg[3] 127308650bb69Smrg } else { 127318650bb69Smrg defundef = substr(arg[1], 2) 127328650bb69Smrg mac1 = arg[2] 127338650bb69Smrg } 127348650bb69Smrg split(mac1, mac2, "(") #) 127358650bb69Smrg macro = mac2[1] 127368650bb69Smrg prefix = substr(line, 1, index(line, defundef) - 1) 127378650bb69Smrg if (D_is_set[macro]) { 127388650bb69Smrg # Preserve the white space surrounding the "#". 127398650bb69Smrg print prefix "define", macro P[macro] D[macro] 127408650bb69Smrg next 127418650bb69Smrg } else { 127428650bb69Smrg # Replace #undef with comments. This is necessary, for example, 127438650bb69Smrg # in the case of _POSIX_SOURCE, which is predefined and required 127448650bb69Smrg # on some systems where configure will not decide to define it. 127458650bb69Smrg if (defundef == "undef") { 127468650bb69Smrg print "/*", prefix defundef, macro, "*/" 127478650bb69Smrg next 127488650bb69Smrg } 127498650bb69Smrg } 127508650bb69Smrg} 127518650bb69Smrg{ print } 127528650bb69Smrg_ACAWK 127538650bb69Smrg_ACEOF 127548650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1275516d7e2f1Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 127568650bb69Smrgfi # test -n "$CONFIG_HEADERS" 127578650bb69Smrg 127588650bb69Smrg 127598650bb69Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 127608650bb69Smrgshift 127618650bb69Smrgfor ac_tag 127628650bb69Smrgdo 127638650bb69Smrg case $ac_tag in 127648650bb69Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 127658650bb69Smrg esac 127668650bb69Smrg case $ac_mode$ac_tag in 127678650bb69Smrg :[FHL]*:*);; 12768c1e8faa6Smrg :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 127698650bb69Smrg :[FH]-) ac_tag=-:-;; 127708650bb69Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 127718650bb69Smrg esac 127728650bb69Smrg ac_save_IFS=$IFS 127738650bb69Smrg IFS=: 127748650bb69Smrg set x $ac_tag 127758650bb69Smrg IFS=$ac_save_IFS 127768650bb69Smrg shift 127778650bb69Smrg ac_file=$1 127788650bb69Smrg shift 127798650bb69Smrg 127808650bb69Smrg case $ac_mode in 127818650bb69Smrg :L) ac_source=$1;; 127828650bb69Smrg :[FH]) 127838650bb69Smrg ac_file_inputs= 127848650bb69Smrg for ac_f 127858650bb69Smrg do 127868650bb69Smrg case $ac_f in 1278716d7e2f1Smrg -) ac_f="$ac_tmp/stdin";; 127888650bb69Smrg *) # Look for the file first in the build tree, then in the source tree 127898650bb69Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12790c1e8faa6Smrg # because $ac_f cannot contain ':'. 127918650bb69Smrg test -f "$ac_f" || 127928650bb69Smrg case $ac_f in 127938650bb69Smrg [\\/$]*) false;; 127948650bb69Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 127958650bb69Smrg esac || 12796c1e8faa6Smrg as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 127978650bb69Smrg esac 127983458e6c2Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1279916d7e2f1Smrg as_fn_append ac_file_inputs " '$ac_f'" 128008650bb69Smrg done 128018650bb69Smrg 12802c1e8faa6Smrg # Let's still pretend it is 'configure' which instantiates (i.e., don't 128038650bb69Smrg # use $as_me), people would be surprised to read: 128048650bb69Smrg # /* config.h. Generated by config.status. */ 128058650bb69Smrg configure_input='Generated from '` 128063458e6c2Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 128078650bb69Smrg `' by configure.' 128088650bb69Smrg if test x"$ac_file" != x-; then 128098650bb69Smrg configure_input="$ac_file. $configure_input" 128103458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 128113458e6c2Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 128128650bb69Smrg fi 128138650bb69Smrg # Neutralize special characters interpreted by sed in replacement strings. 128148650bb69Smrg case $configure_input in #( 128158650bb69Smrg *\&* | *\|* | *\\* ) 128163458e6c2Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 128178650bb69Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 128188650bb69Smrg *) ac_sed_conf_input=$configure_input;; 128198650bb69Smrg esac 128208650bb69Smrg 128218650bb69Smrg case $ac_tag in 1282216d7e2f1Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1282316d7e2f1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 128248650bb69Smrg esac 128258650bb69Smrg ;; 128262c7c4e3dSmrg esac 128272c7c4e3dSmrg 128288650bb69Smrg ac_dir=`$as_dirname -- "$ac_file" || 128292c7c4e3dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 128302c7c4e3dSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 128312c7c4e3dSmrg X"$ac_file" : 'X\(//\)$' \| \ 128328650bb69Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 128333458e6c2Smrgprintf "%s\n" X"$ac_file" | 128348650bb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 128358650bb69Smrg s//\1/ 128368650bb69Smrg q 128378650bb69Smrg } 128388650bb69Smrg /^X\(\/\/\)[^/].*/{ 128398650bb69Smrg s//\1/ 128408650bb69Smrg q 128418650bb69Smrg } 128428650bb69Smrg /^X\(\/\/\)$/{ 128438650bb69Smrg s//\1/ 128448650bb69Smrg q 128458650bb69Smrg } 128468650bb69Smrg /^X\(\/\).*/{ 128478650bb69Smrg s//\1/ 128488650bb69Smrg q 128498650bb69Smrg } 128508650bb69Smrg s/.*/./; q'` 1285116d7e2f1Smrg as_dir="$ac_dir"; as_fn_mkdir_p 128522c7c4e3dSmrg ac_builddir=. 128532c7c4e3dSmrg 128548650bb69Smrgcase "$ac_dir" in 128558650bb69Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 128568650bb69Smrg*) 128573458e6c2Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 128588650bb69Smrg # A ".." for each directory in $ac_dir_suffix. 128593458e6c2Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 128608650bb69Smrg case $ac_top_builddir_sub in 128618650bb69Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 128628650bb69Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 128638650bb69Smrg esac ;; 128648650bb69Smrgesac 128658650bb69Smrgac_abs_top_builddir=$ac_pwd 128668650bb69Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 128678650bb69Smrg# for backward compatibility: 128688650bb69Smrgac_top_builddir=$ac_top_build_prefix 128692c7c4e3dSmrg 128702c7c4e3dSmrgcase $srcdir in 128718650bb69Smrg .) # We are building in place. 128722c7c4e3dSmrg ac_srcdir=. 128738650bb69Smrg ac_top_srcdir=$ac_top_builddir_sub 128748650bb69Smrg ac_abs_top_srcdir=$ac_pwd ;; 128758650bb69Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 128762c7c4e3dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 128778650bb69Smrg ac_top_srcdir=$srcdir 128788650bb69Smrg ac_abs_top_srcdir=$srcdir ;; 128798650bb69Smrg *) # Relative name. 128808650bb69Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 128818650bb69Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 128828650bb69Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 128832c7c4e3dSmrgesac 128848650bb69Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 128852c7c4e3dSmrg 128862c7c4e3dSmrg 128878650bb69Smrg case $ac_mode in 128888650bb69Smrg :F) 128898650bb69Smrg # 128908650bb69Smrg # CONFIG_FILE 128918650bb69Smrg # 128922c7c4e3dSmrg 128932c7c4e3dSmrg case $INSTALL in 128942c7c4e3dSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 128958650bb69Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 128962c7c4e3dSmrg esac 128978650bb69Smrg ac_MKDIR_P=$MKDIR_P 128988650bb69Smrg case $MKDIR_P in 128998650bb69Smrg [\\/$]* | ?:[\\/]* ) ;; 129008650bb69Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 129018650bb69Smrg esac 129028650bb69Smrg_ACEOF 129032c7c4e3dSmrg 129048650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 129058650bb69Smrg# If the template does not know about datarootdir, expand it. 129068650bb69Smrg# FIXME: This hack should be removed a few years after 2.60. 129078650bb69Smrgac_datarootdir_hack=; ac_datarootdir_seen= 129088650bb69Smrgac_sed_dataroot=' 129098650bb69Smrg/datarootdir/ { 129108650bb69Smrg p 129118650bb69Smrg q 129128650bb69Smrg} 129138650bb69Smrg/@datadir@/p 129148650bb69Smrg/@docdir@/p 129158650bb69Smrg/@infodir@/p 129168650bb69Smrg/@localedir@/p 1291716d7e2f1Smrg/@mandir@/p' 129188650bb69Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 129198650bb69Smrg*datarootdir*) ac_datarootdir_seen=yes;; 129208650bb69Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 129213458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 129223458e6c2Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 129232c7c4e3dSmrg_ACEOF 129248650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 129258650bb69Smrg ac_datarootdir_hack=' 129268650bb69Smrg s&@datadir@&$datadir&g 129278650bb69Smrg s&@docdir@&$docdir&g 129288650bb69Smrg s&@infodir@&$infodir&g 129298650bb69Smrg s&@localedir@&$localedir&g 129308650bb69Smrg s&@mandir@&$mandir&g 1293116d7e2f1Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 129328650bb69Smrgesac 129338650bb69Smrg_ACEOF 129348650bb69Smrg 12935c1e8faa6Smrg# Neutralize VPATH when '$srcdir' = '.'. 129368650bb69Smrg# Shell code in configure.ac might set extrasub. 129378650bb69Smrg# FIXME: do we really want to maintain this feature? 129388650bb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 129398650bb69Smrgac_sed_extra="$ac_vpsub 129402c7c4e3dSmrg$extrasub 129412c7c4e3dSmrg_ACEOF 129428650bb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 129432c7c4e3dSmrg:t 129442c7c4e3dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 129458650bb69Smrgs|@configure_input@|$ac_sed_conf_input|;t t 129468650bb69Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 129478650bb69Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 129488650bb69Smrgs&@srcdir@&$ac_srcdir&;t t 129498650bb69Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 129508650bb69Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 129518650bb69Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 129528650bb69Smrgs&@builddir@&$ac_builddir&;t t 129538650bb69Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 129548650bb69Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 129558650bb69Smrgs&@INSTALL@&$ac_INSTALL&;t t 129568650bb69Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 129578650bb69Smrg$ac_datarootdir_hack 129588650bb69Smrg" 1295916d7e2f1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1296016d7e2f1Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 129612c7c4e3dSmrg 129628650bb69Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1296316d7e2f1Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1296416d7e2f1Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1296516d7e2f1Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12966c1e8faa6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 1296716d7e2f1Smrgwhich seems to be undefined. Please make sure it is defined" >&5 12968c1e8faa6Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 1296916d7e2f1Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 129702c7c4e3dSmrg 1297116d7e2f1Smrg rm -f "$ac_tmp/stdin" 129722c7c4e3dSmrg case $ac_file in 1297316d7e2f1Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1297416d7e2f1Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 129758650bb69Smrg esac \ 1297616d7e2f1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 129778650bb69Smrg ;; 129788650bb69Smrg :H) 129798650bb69Smrg # 129808650bb69Smrg # CONFIG_HEADER 129818650bb69Smrg # 129822c7c4e3dSmrg if test x"$ac_file" != x-; then 129838650bb69Smrg { 129843458e6c2Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1298516d7e2f1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1298616d7e2f1Smrg } >"$ac_tmp/config.h" \ 1298716d7e2f1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1298816d7e2f1Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 129893458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 129903458e6c2Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 129912c7c4e3dSmrg else 129928650bb69Smrg rm -f "$ac_file" 1299316d7e2f1Smrg mv "$ac_tmp/config.h" "$ac_file" \ 1299416d7e2f1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 129952c7c4e3dSmrg fi 129962c7c4e3dSmrg else 129973458e6c2Smrg printf "%s\n" "/* $configure_input */" >&1 \ 1299816d7e2f1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1299916d7e2f1Smrg || as_fn_error $? "could not create -" "$LINENO" 5 130002c7c4e3dSmrg fi 130018650bb69Smrg# Compute "$ac_file"'s index in $config_headers. 130028650bb69Smrg_am_arg="$ac_file" 130032c7c4e3dSmrg_am_stamp_count=1 130042c7c4e3dSmrgfor _am_header in $config_headers :; do 130052c7c4e3dSmrg case $_am_header in 130068650bb69Smrg $_am_arg | $_am_arg:* ) 130072c7c4e3dSmrg break ;; 130082c7c4e3dSmrg * ) 130092c7c4e3dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 130102c7c4e3dSmrg esac 130112c7c4e3dSmrgdone 130128650bb69Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 130138650bb69Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 130148650bb69Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 130158650bb69Smrg X"$_am_arg" : 'X\(//\)$' \| \ 130168650bb69Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 130173458e6c2Smrgprintf "%s\n" X"$_am_arg" | 130188650bb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 130198650bb69Smrg s//\1/ 130208650bb69Smrg q 130218650bb69Smrg } 130228650bb69Smrg /^X\(\/\/\)[^/].*/{ 130238650bb69Smrg s//\1/ 130248650bb69Smrg q 130258650bb69Smrg } 130268650bb69Smrg /^X\(\/\/\)$/{ 130278650bb69Smrg s//\1/ 130288650bb69Smrg q 130298650bb69Smrg } 130308650bb69Smrg /^X\(\/\).*/{ 130318650bb69Smrg s//\1/ 130328650bb69Smrg q 130338650bb69Smrg } 130348650bb69Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 130358650bb69Smrg ;; 130362c7c4e3dSmrg 130373458e6c2Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 130383458e6c2Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 130398650bb69Smrg ;; 130408650bb69Smrg esac 130412c7c4e3dSmrg 130422c7c4e3dSmrg 130438650bb69Smrg case $ac_file$ac_mode in 130448650bb69Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 130452becc446Smrg # Older Autoconf quotes --file arguments for eval, but not when files 130468650bb69Smrg # are listed without --file. Let's play safe and only enable the eval 130478650bb69Smrg # if we detect the quoting. 130483458e6c2Smrg # TODO: see whether this extra hack can be removed once we start 130493458e6c2Smrg # requiring Autoconf 2.70 or later. 130503458e6c2Smrg case $CONFIG_FILES in #( 130513458e6c2Smrg *\'*) : 130523458e6c2Smrg eval set x "$CONFIG_FILES" ;; #( 130533458e6c2Smrg *) : 130543458e6c2Smrg set x $CONFIG_FILES ;; #( 130553458e6c2Smrg *) : 130563458e6c2Smrg ;; 130573458e6c2Smrgesac 130588650bb69Smrg shift 130593458e6c2Smrg # Used to flag and report bootstrapping failures. 130603458e6c2Smrg am_rc=0 130613458e6c2Smrg for am_mf 130628650bb69Smrg do 130638650bb69Smrg # Strip MF so we end up with the name of the file. 130643458e6c2Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 130653458e6c2Smrg # Check whether this is an Automake generated Makefile which includes 130663458e6c2Smrg # dependency-tracking related rules and includes. 130673458e6c2Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 130688650bb69Smrg # limit of 2048, but all sed's we know have understand at least 4000. 130693458e6c2Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 130703458e6c2Smrg || continue 130713458e6c2Smrg am_dirpart=`$as_dirname -- "$am_mf" || 130723458e6c2Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 130733458e6c2Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 130743458e6c2Smrg X"$am_mf" : 'X\(//\)$' \| \ 130753458e6c2Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 130763458e6c2Smrgprintf "%s\n" X"$am_mf" | 130778650bb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 130788650bb69Smrg s//\1/ 130798650bb69Smrg q 130808650bb69Smrg } 130818650bb69Smrg /^X\(\/\/\)[^/].*/{ 130828650bb69Smrg s//\1/ 130838650bb69Smrg q 130848650bb69Smrg } 130858650bb69Smrg /^X\(\/\/\)$/{ 130868650bb69Smrg s//\1/ 130878650bb69Smrg q 130888650bb69Smrg } 130898650bb69Smrg /^X\(\/\).*/{ 130908650bb69Smrg s//\1/ 130918650bb69Smrg q 130928650bb69Smrg } 130938650bb69Smrg s/.*/./; q'` 130943458e6c2Smrg am_filepart=`$as_basename -- "$am_mf" || 130953458e6c2Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 130963458e6c2Smrg X"$am_mf" : 'X\(//\)$' \| \ 130973458e6c2Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 130983458e6c2Smrgprintf "%s\n" X/"$am_mf" | 130993458e6c2Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 131008650bb69Smrg s//\1/ 131018650bb69Smrg q 131028650bb69Smrg } 131033458e6c2Smrg /^X\/\(\/\/\)$/{ 131048650bb69Smrg s//\1/ 131058650bb69Smrg q 131068650bb69Smrg } 131073458e6c2Smrg /^X\/\(\/\).*/{ 131088650bb69Smrg s//\1/ 131098650bb69Smrg q 131108650bb69Smrg } 131118650bb69Smrg s/.*/./; q'` 131123458e6c2Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 131133458e6c2Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 131143458e6c2Smrg | $MAKE -f - am--depfiles" >&5 131153458e6c2Smrg (cd "$am_dirpart" \ 131163458e6c2Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 131173458e6c2Smrg | $MAKE -f - am--depfiles) >&5 2>&5 131183458e6c2Smrg ac_status=$? 131193458e6c2Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 131203458e6c2Smrg (exit $ac_status); } || am_rc=$? 131212c7c4e3dSmrg done 131223458e6c2Smrg if test $am_rc -ne 0; then 13123c1e8faa6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13124c1e8faa6Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 131253458e6c2Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 131263458e6c2Smrg for automatic dependency tracking. If GNU make was not used, consider 131273458e6c2Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 131283458e6c2Smrg necessary). You can also try re-running configure with the 131293458e6c2Smrg '--disable-dependency-tracking' option to at least be able to build 131303458e6c2Smrg the package (albeit without support for automatic dependency tracking). 13131c1e8faa6SmrgSee 'config.log' for more details" "$LINENO" 5; } 131323458e6c2Smrg fi 131333458e6c2Smrg { am_dirpart=; unset am_dirpart;} 131343458e6c2Smrg { am_filepart=; unset am_filepart;} 131353458e6c2Smrg { am_mf=; unset am_mf;} 131363458e6c2Smrg { am_rc=; unset am_rc;} 131373458e6c2Smrg rm -f conftest-deps.mk 131388650bb69Smrg} 131392c7c4e3dSmrg ;; 131408650bb69Smrg 131412c7c4e3dSmrg esac 131428650bb69Smrgdone # for ac_tag 131432c7c4e3dSmrg 131442c7c4e3dSmrg 1314516d7e2f1Smrgas_fn_exit 0 131462c7c4e3dSmrg_ACEOF 131472c7c4e3dSmrgac_clean_files=$ac_clean_files_save 131482c7c4e3dSmrg 131498650bb69Smrgtest $ac_write_fail = 0 || 1315016d7e2f1Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 131518650bb69Smrg 131522c7c4e3dSmrg 131532c7c4e3dSmrg# configure is writing to config.log, and then calls config.status. 131542c7c4e3dSmrg# config.status does its own redirection, appending to config.log. 131552c7c4e3dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 131562c7c4e3dSmrg# by configure, so config.status won't be able to write to it; its 131572c7c4e3dSmrg# output is simply discarded. So we exec the FD to /dev/null, 131582c7c4e3dSmrg# effectively closing config.log, so it can be properly (re)opened and 131592c7c4e3dSmrg# appended to by config.status. When coming back to configure, we 131602c7c4e3dSmrg# need to make the FD available again. 131612c7c4e3dSmrgif test "$no_create" != yes; then 131622c7c4e3dSmrg ac_cs_success=: 131632c7c4e3dSmrg ac_config_status_args= 131642c7c4e3dSmrg test "$silent" = yes && 131652c7c4e3dSmrg ac_config_status_args="$ac_config_status_args --quiet" 131662c7c4e3dSmrg exec 5>/dev/null 131672c7c4e3dSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 131682c7c4e3dSmrg exec 5>>config.log 131692c7c4e3dSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 131702c7c4e3dSmrg # would make configure fail if this is the last instruction. 1317116d7e2f1Smrg $ac_cs_success || as_fn_exit 1 131722c7c4e3dSmrgfi 131738650bb69Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 131743458e6c2Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 131753458e6c2Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 131768650bb69Smrgfi 131772c7c4e3dSmrg 131783458e6c2Smrg 13179