configure revision bded5d25
17da8b7e3Smrg#! /bin/sh 27da8b7e3Smrg# Guess values for system-dependent variables and create Makefiles. 3bded5d25Smrg# Generated by GNU Autoconf 2.68 for xrefresh 1.0.4. 47da8b7e3Smrg# 57da8b7e3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 67da8b7e3Smrg# 7bded5d25Smrg# 8123e2cc7Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9bded5d25Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10bded5d25Smrg# Foundation, Inc. 11bded5d25Smrg# 12bded5d25Smrg# 137da8b7e3Smrg# This configure script is free software; the Free Software Foundation 147da8b7e3Smrg# gives unlimited permission to copy, distribute and modify it. 15bded5d25Smrg## -------------------- ## 16bded5d25Smrg## M4sh Initialization. ## 17bded5d25Smrg## -------------------- ## 187da8b7e3Smrg 19123e2cc7Smrg# Be more Bourne compatible 20123e2cc7SmrgDUALCASE=1; export DUALCASE # for MKS sh 21bded5d25Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 227da8b7e3Smrg emulate sh 237da8b7e3Smrg NULLCMD=: 24123e2cc7Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 257da8b7e3Smrg # is contrary to our usage. Disable this feature. 267da8b7e3Smrg alias -g '${1+"$@"}'='"$@"' 27123e2cc7Smrg setopt NO_GLOB_SUBST 28123e2cc7Smrgelse 29bded5d25Smrg case `(set -o) 2>/dev/null` in #( 30bded5d25Smrg *posix*) : 31bded5d25Smrg set -o posix ;; #( 32bded5d25Smrg *) : 33bded5d25Smrg ;; 34123e2cc7Smrgesac 35123e2cc7Smrgfi 36123e2cc7Smrg 37123e2cc7Smrg 38123e2cc7Smrgas_nl=' 39123e2cc7Smrg' 40123e2cc7Smrgexport as_nl 41123e2cc7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42123e2cc7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45bded5d25Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46bded5d25Smrg# but without wasting forks for bash or zsh. 47bded5d25Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48bded5d25Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49bded5d25Smrg as_echo='print -r --' 50bded5d25Smrg as_echo_n='print -rn --' 51bded5d25Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52123e2cc7Smrg as_echo='printf %s\n' 53123e2cc7Smrg as_echo_n='printf %s' 54123e2cc7Smrgelse 55123e2cc7Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56123e2cc7Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57123e2cc7Smrg as_echo_n='/usr/ucb/echo -n' 58123e2cc7Smrg else 59123e2cc7Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60123e2cc7Smrg as_echo_n_body='eval 61123e2cc7Smrg arg=$1; 62bded5d25Smrg case $arg in #( 63123e2cc7Smrg *"$as_nl"*) 64123e2cc7Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65123e2cc7Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66123e2cc7Smrg esac; 67123e2cc7Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68123e2cc7Smrg ' 69123e2cc7Smrg export as_echo_n_body 70123e2cc7Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71123e2cc7Smrg fi 72123e2cc7Smrg export as_echo_body 73123e2cc7Smrg as_echo='sh -c $as_echo_body as_echo' 74123e2cc7Smrgfi 75123e2cc7Smrg 76123e2cc7Smrg# The user is always right. 77123e2cc7Smrgif test "${PATH_SEPARATOR+set}" != set; then 78123e2cc7Smrg PATH_SEPARATOR=: 79123e2cc7Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80123e2cc7Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81123e2cc7Smrg PATH_SEPARATOR=';' 82123e2cc7Smrg } 837da8b7e3Smrgfi 847da8b7e3Smrg 857da8b7e3Smrg 86123e2cc7Smrg# IFS 87123e2cc7Smrg# We need space, tab and new line, in precisely that order. Quoting is 88123e2cc7Smrg# there to prevent editors from complaining about space-tab. 89123e2cc7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90123e2cc7Smrg# splitting by setting IFS to empty value.) 91123e2cc7SmrgIFS=" "" $as_nl" 92123e2cc7Smrg 93123e2cc7Smrg# Find who we are. Look in the path if we contain no directory separator. 94bded5d25Smrgas_myself= 95bded5d25Smrgcase $0 in #(( 96123e2cc7Smrg *[\\/]* ) as_myself=$0 ;; 97123e2cc7Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98123e2cc7Smrgfor as_dir in $PATH 99123e2cc7Smrgdo 100123e2cc7Smrg IFS=$as_save_IFS 101123e2cc7Smrg test -z "$as_dir" && as_dir=. 102bded5d25Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103bded5d25Smrg done 104123e2cc7SmrgIFS=$as_save_IFS 105123e2cc7Smrg 106123e2cc7Smrg ;; 107123e2cc7Smrgesac 108123e2cc7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109123e2cc7Smrg# in which case we are not to be found in the path. 110123e2cc7Smrgif test "x$as_myself" = x; then 111123e2cc7Smrg as_myself=$0 112123e2cc7Smrgfi 113123e2cc7Smrgif test ! -f "$as_myself"; then 114123e2cc7Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115bded5d25Smrg exit 1 116123e2cc7Smrgfi 117123e2cc7Smrg 118bded5d25Smrg# Unset variables that we do not need and which cause bugs (e.g. in 119bded5d25Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120bded5d25Smrg# suppresses any "Segmentation fault" message there. '((' could 121bded5d25Smrg# trigger a bug in pdksh 5.2.14. 122bded5d25Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123bded5d25Smrgdo eval test x\${$as_var+set} = xset \ 124bded5d25Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125123e2cc7Smrgdone 1267da8b7e3SmrgPS1='$ ' 1277da8b7e3SmrgPS2='> ' 1287da8b7e3SmrgPS4='+ ' 1297da8b7e3Smrg 1307da8b7e3Smrg# NLS nuisances. 131123e2cc7SmrgLC_ALL=C 132123e2cc7Smrgexport LC_ALL 133123e2cc7SmrgLANGUAGE=C 134123e2cc7Smrgexport LANGUAGE 1357da8b7e3Smrg 136bded5d25Smrg# CDPATH. 137bded5d25Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138bded5d25Smrg 139bded5d25Smrgif test "x$CONFIG_SHELL" = x; then 140bded5d25Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141bded5d25Smrg emulate sh 142bded5d25Smrg NULLCMD=: 143bded5d25Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144bded5d25Smrg # is contrary to our usage. Disable this feature. 145bded5d25Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146bded5d25Smrg setopt NO_GLOB_SUBST 147bded5d25Smrgelse 148bded5d25Smrg case \`(set -o) 2>/dev/null\` in #( 149bded5d25Smrg *posix*) : 150bded5d25Smrg set -o posix ;; #( 151bded5d25Smrg *) : 152bded5d25Smrg ;; 153bded5d25Smrgesac 154bded5d25Smrgfi 155bded5d25Smrg" 156bded5d25Smrg as_required="as_fn_return () { (exit \$1); } 157bded5d25Smrgas_fn_success () { as_fn_return 0; } 158bded5d25Smrgas_fn_failure () { as_fn_return 1; } 159bded5d25Smrgas_fn_ret_success () { return 0; } 160bded5d25Smrgas_fn_ret_failure () { return 1; } 161bded5d25Smrg 162bded5d25Smrgexitcode=0 163bded5d25Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164bded5d25Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165bded5d25Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166bded5d25Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167bded5d25Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168bded5d25Smrg 169bded5d25Smrgelse 170bded5d25Smrg exitcode=1; echo positional parameters were not saved. 171bded5d25Smrgfi 172bded5d25Smrgtest x\$exitcode = x0 || exit 1" 173bded5d25Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174bded5d25Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175bded5d25Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176bded5d25Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177bded5d25Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 178bded5d25Smrg if (eval "$as_required") 2>/dev/null; then : 179bded5d25Smrg as_have_required=yes 180bded5d25Smrgelse 181bded5d25Smrg as_have_required=no 182bded5d25Smrgfi 183bded5d25Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184bded5d25Smrg 185bded5d25Smrgelse 186bded5d25Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187bded5d25Smrgas_found=false 188bded5d25Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189bded5d25Smrgdo 190bded5d25Smrg IFS=$as_save_IFS 191bded5d25Smrg test -z "$as_dir" && as_dir=. 192bded5d25Smrg as_found=: 193bded5d25Smrg case $as_dir in #( 194bded5d25Smrg /*) 195bded5d25Smrg for as_base in sh bash ksh sh5; do 196bded5d25Smrg # Try only shells that exist, to save several forks. 197bded5d25Smrg as_shell=$as_dir/$as_base 198bded5d25Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199bded5d25Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200bded5d25Smrg CONFIG_SHELL=$as_shell as_have_required=yes 201bded5d25Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202bded5d25Smrg break 2 203bded5d25Smrgfi 204bded5d25Smrgfi 205bded5d25Smrg done;; 206bded5d25Smrg esac 207bded5d25Smrg as_found=false 208bded5d25Smrgdone 209bded5d25Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210bded5d25Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211bded5d25Smrg CONFIG_SHELL=$SHELL as_have_required=yes 212bded5d25Smrgfi; } 213bded5d25SmrgIFS=$as_save_IFS 214bded5d25Smrg 215bded5d25Smrg 216bded5d25Smrg if test "x$CONFIG_SHELL" != x; then : 217bded5d25Smrg # We cannot yet assume a decent shell, so we have to provide a 218bded5d25Smrg # neutralization value for shells without unset; and this also 219bded5d25Smrg # works around shells that cannot unset nonexistent variables. 220bded5d25Smrg # Preserve -v and -x to the replacement shell. 221bded5d25Smrg BASH_ENV=/dev/null 222bded5d25Smrg ENV=/dev/null 223bded5d25Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224bded5d25Smrg export CONFIG_SHELL 225bded5d25Smrg case $- in # (((( 226bded5d25Smrg *v*x* | *x*v* ) as_opts=-vx ;; 227bded5d25Smrg *v* ) as_opts=-v ;; 228bded5d25Smrg *x* ) as_opts=-x ;; 229bded5d25Smrg * ) as_opts= ;; 230bded5d25Smrg esac 231bded5d25Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232bded5d25Smrgfi 233bded5d25Smrg 234bded5d25Smrg if test x$as_have_required = xno; then : 235bded5d25Smrg $as_echo "$0: This script requires a shell more modern than all" 236bded5d25Smrg $as_echo "$0: the shells that I found on your system." 237bded5d25Smrg if test x${ZSH_VERSION+set} = xset ; then 238bded5d25Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239bded5d25Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240bded5d25Smrg else 241bded5d25Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242bded5d25Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243bded5d25Smrg$0: about your system, including any error possibly output 244bded5d25Smrg$0: before this message. Then install a modern shell, or 245bded5d25Smrg$0: manually run the script under such a shell if you do 246bded5d25Smrg$0: have one." 247bded5d25Smrg fi 248bded5d25Smrg exit 1 249bded5d25Smrgfi 250bded5d25Smrgfi 251bded5d25Smrgfi 252bded5d25SmrgSHELL=${CONFIG_SHELL-/bin/sh} 253bded5d25Smrgexport SHELL 254bded5d25Smrg# Unset more variables known to interfere with behavior of common tools. 255bded5d25SmrgCLICOLOR_FORCE= GREP_OPTIONS= 256bded5d25Smrgunset CLICOLOR_FORCE GREP_OPTIONS 257bded5d25Smrg 258bded5d25Smrg## --------------------- ## 259bded5d25Smrg## M4sh Shell Functions. ## 260bded5d25Smrg## --------------------- ## 261bded5d25Smrg# as_fn_unset VAR 262bded5d25Smrg# --------------- 263bded5d25Smrg# Portably unset VAR. 264bded5d25Smrgas_fn_unset () 265bded5d25Smrg{ 266bded5d25Smrg { eval $1=; unset $1;} 267bded5d25Smrg} 268bded5d25Smrgas_unset=as_fn_unset 269bded5d25Smrg 270bded5d25Smrg# as_fn_set_status STATUS 271bded5d25Smrg# ----------------------- 272bded5d25Smrg# Set $? to STATUS, without forking. 273bded5d25Smrgas_fn_set_status () 274bded5d25Smrg{ 275bded5d25Smrg return $1 276bded5d25Smrg} # as_fn_set_status 277bded5d25Smrg 278bded5d25Smrg# as_fn_exit STATUS 279bded5d25Smrg# ----------------- 280bded5d25Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281bded5d25Smrgas_fn_exit () 282bded5d25Smrg{ 283bded5d25Smrg set +e 284bded5d25Smrg as_fn_set_status $1 285bded5d25Smrg exit $1 286bded5d25Smrg} # as_fn_exit 287bded5d25Smrg 288bded5d25Smrg# as_fn_mkdir_p 289bded5d25Smrg# ------------- 290bded5d25Smrg# Create "$as_dir" as a directory, including parents if necessary. 291bded5d25Smrgas_fn_mkdir_p () 292bded5d25Smrg{ 293bded5d25Smrg 294bded5d25Smrg case $as_dir in #( 295bded5d25Smrg -*) as_dir=./$as_dir;; 296bded5d25Smrg esac 297bded5d25Smrg test -d "$as_dir" || eval $as_mkdir_p || { 298bded5d25Smrg as_dirs= 299bded5d25Smrg while :; do 300bded5d25Smrg case $as_dir in #( 301bded5d25Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302bded5d25Smrg *) as_qdir=$as_dir;; 303bded5d25Smrg esac 304bded5d25Smrg as_dirs="'$as_qdir' $as_dirs" 305bded5d25Smrg as_dir=`$as_dirname -- "$as_dir" || 306bded5d25Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307bded5d25Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308bded5d25Smrg X"$as_dir" : 'X\(//\)$' \| \ 309bded5d25Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310bded5d25Smrg$as_echo X"$as_dir" | 311bded5d25Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312bded5d25Smrg s//\1/ 313bded5d25Smrg q 314bded5d25Smrg } 315bded5d25Smrg /^X\(\/\/\)[^/].*/{ 316bded5d25Smrg s//\1/ 317bded5d25Smrg q 318bded5d25Smrg } 319bded5d25Smrg /^X\(\/\/\)$/{ 320bded5d25Smrg s//\1/ 321bded5d25Smrg q 322bded5d25Smrg } 323bded5d25Smrg /^X\(\/\).*/{ 324bded5d25Smrg s//\1/ 325bded5d25Smrg q 326bded5d25Smrg } 327bded5d25Smrg s/.*/./; q'` 328bded5d25Smrg test -d "$as_dir" && break 329bded5d25Smrg done 330bded5d25Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331bded5d25Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332bded5d25Smrg 333bded5d25Smrg 334bded5d25Smrg} # as_fn_mkdir_p 335bded5d25Smrg# as_fn_append VAR VALUE 336bded5d25Smrg# ---------------------- 337bded5d25Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338bded5d25Smrg# advantage of any shell optimizations that allow amortized linear growth over 339bded5d25Smrg# repeated appends, instead of the typical quadratic growth present in naive 340bded5d25Smrg# implementations. 341bded5d25Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342bded5d25Smrg eval 'as_fn_append () 343bded5d25Smrg { 344bded5d25Smrg eval $1+=\$2 345bded5d25Smrg }' 346bded5d25Smrgelse 347bded5d25Smrg as_fn_append () 348bded5d25Smrg { 349bded5d25Smrg eval $1=\$$1\$2 350bded5d25Smrg } 351bded5d25Smrgfi # as_fn_append 352bded5d25Smrg 353bded5d25Smrg# as_fn_arith ARG... 354bded5d25Smrg# ------------------ 355bded5d25Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356bded5d25Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357bded5d25Smrg# must be portable across $(()) and expr. 358bded5d25Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359bded5d25Smrg eval 'as_fn_arith () 360bded5d25Smrg { 361bded5d25Smrg as_val=$(( $* )) 362bded5d25Smrg }' 363bded5d25Smrgelse 364bded5d25Smrg as_fn_arith () 365bded5d25Smrg { 366bded5d25Smrg as_val=`expr "$@" || test $? -eq 1` 367bded5d25Smrg } 368bded5d25Smrgfi # as_fn_arith 369bded5d25Smrg 370bded5d25Smrg 371bded5d25Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372bded5d25Smrg# ---------------------------------------- 373bded5d25Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374bded5d25Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375bded5d25Smrg# script with STATUS, using 1 if that was 0. 376bded5d25Smrgas_fn_error () 377bded5d25Smrg{ 378bded5d25Smrg as_status=$1; test $as_status -eq 0 && as_status=1 379bded5d25Smrg if test "$4"; then 380bded5d25Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382bded5d25Smrg fi 383bded5d25Smrg $as_echo "$as_me: error: $2" >&2 384bded5d25Smrg as_fn_exit $as_status 385bded5d25Smrg} # as_fn_error 386bded5d25Smrg 387123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 388123e2cc7Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3897da8b7e3Smrg as_expr=expr 3907da8b7e3Smrgelse 3917da8b7e3Smrg as_expr=false 3927da8b7e3Smrgfi 3937da8b7e3Smrg 394123e2cc7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3957da8b7e3Smrg as_basename=basename 3967da8b7e3Smrgelse 3977da8b7e3Smrg as_basename=false 3987da8b7e3Smrgfi 3997da8b7e3Smrg 400bded5d25Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401bded5d25Smrg as_dirname=dirname 402bded5d25Smrgelse 403bded5d25Smrg as_dirname=false 404bded5d25Smrgfi 4057da8b7e3Smrg 406123e2cc7Smrgas_me=`$as_basename -- "$0" || 4077da8b7e3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4087da8b7e3Smrg X"$0" : 'X\(//\)$' \| \ 409123e2cc7Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410123e2cc7Smrg$as_echo X/"$0" | 411123e2cc7Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412123e2cc7Smrg s//\1/ 413123e2cc7Smrg q 414123e2cc7Smrg } 415123e2cc7Smrg /^X\/\(\/\/\)$/{ 416123e2cc7Smrg s//\1/ 417123e2cc7Smrg q 418123e2cc7Smrg } 419123e2cc7Smrg /^X\/\(\/\).*/{ 420123e2cc7Smrg s//\1/ 421123e2cc7Smrg q 422123e2cc7Smrg } 423123e2cc7Smrg s/.*/./; q'` 4247da8b7e3Smrg 425bded5d25Smrg# Avoid depending upon Character Ranges. 426bded5d25Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427bded5d25Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428bded5d25Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429bded5d25Smrgas_cr_digits='0123456789' 430bded5d25Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4317da8b7e3Smrg 4327da8b7e3Smrg 433bded5d25Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434bded5d25Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435bded5d25Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436bded5d25Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437bded5d25Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438bded5d25Smrg sed -n ' 439bded5d25Smrg p 440bded5d25Smrg /[$]LINENO/= 441bded5d25Smrg ' <$as_myself | 442bded5d25Smrg sed ' 443bded5d25Smrg s/[$]LINENO.*/&-/ 444bded5d25Smrg t lineno 445bded5d25Smrg b 446bded5d25Smrg :lineno 447bded5d25Smrg N 448bded5d25Smrg :loop 449bded5d25Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450bded5d25Smrg t loop 451bded5d25Smrg s/-\n.*// 452bded5d25Smrg ' >$as_me.lineno && 453bded5d25Smrg chmod +x "$as_me.lineno" || 454bded5d25Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4557da8b7e3Smrg 456bded5d25Smrg # Don't try to exec as it changes $[0], causing all sort of problems 457bded5d25Smrg # (the dirname of $[0] is not the place where we might find the 458bded5d25Smrg # original and so on. Autoconf is especially sensitive to this). 459bded5d25Smrg . "./$as_me.lineno" 460bded5d25Smrg # Exit status is that of the last command. 461bded5d25Smrg exit 462123e2cc7Smrg} 4637da8b7e3Smrg 464bded5d25SmrgECHO_C= ECHO_N= ECHO_T= 465bded5d25Smrgcase `echo -n x` in #((((( 466bded5d25Smrg-n*) 467bded5d25Smrg case `echo 'xy\c'` in 468bded5d25Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469bded5d25Smrg xy) ECHO_C='\c';; 470bded5d25Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471bded5d25Smrg ECHO_T=' ';; 472bded5d25Smrg esac;; 473bded5d25Smrg*) 474bded5d25Smrg ECHO_N='-n';; 475bded5d25Smrgesac 4767da8b7e3Smrg 477bded5d25Smrgrm -f conf$$ conf$$.exe conf$$.file 478bded5d25Smrgif test -d conf$$.dir; then 479bded5d25Smrg rm -f conf$$.dir/conf$$.file 480bded5d25Smrgelse 481bded5d25Smrg rm -f conf$$.dir 482bded5d25Smrg mkdir conf$$.dir 2>/dev/null 483123e2cc7Smrgfi 484bded5d25Smrgif (echo >conf$$.file) 2>/dev/null; then 485bded5d25Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486bded5d25Smrg as_ln_s='ln -s' 487bded5d25Smrg # ... but there are two gotchas: 488bded5d25Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489bded5d25Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490bded5d25Smrg # In both cases, we have to default to `cp -p'. 491bded5d25Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492bded5d25Smrg as_ln_s='cp -p' 493bded5d25Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 494bded5d25Smrg as_ln_s=ln 495bded5d25Smrg else 496bded5d25Smrg as_ln_s='cp -p' 497bded5d25Smrg fi 498123e2cc7Smrgelse 499bded5d25Smrg as_ln_s='cp -p' 500123e2cc7Smrgfi 501bded5d25Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502bded5d25Smrgrmdir conf$$.dir 2>/dev/null 503123e2cc7Smrg 504bded5d25Smrgif mkdir -p . 2>/dev/null; then 505bded5d25Smrg as_mkdir_p='mkdir -p "$as_dir"' 506bded5d25Smrgelse 507bded5d25Smrg test -d ./-p && rmdir ./-p 508bded5d25Smrg as_mkdir_p=false 509123e2cc7Smrgfi 510123e2cc7Smrg 511bded5d25Smrgif test -x / >/dev/null 2>&1; then 512bded5d25Smrg as_test_x='test -x' 513123e2cc7Smrgelse 514bded5d25Smrg if ls -dL / >/dev/null 2>&1; then 515bded5d25Smrg as_ls_L_option=L 516bded5d25Smrg else 517bded5d25Smrg as_ls_L_option= 518bded5d25Smrg fi 519bded5d25Smrg as_test_x=' 520bded5d25Smrg eval sh -c '\'' 521bded5d25Smrg if test -d "$1"; then 522bded5d25Smrg test -d "$1/."; 523bded5d25Smrg else 524bded5d25Smrg case $1 in #( 525bded5d25Smrg -*)set "./$1";; 526bded5d25Smrg esac; 527bded5d25Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528bded5d25Smrg ???[sx]*):;;*)false;;esac;fi 529bded5d25Smrg '\'' sh 530bded5d25Smrg ' 531123e2cc7Smrgfi 532bded5d25Smrgas_executable_p=$as_test_x 533123e2cc7Smrg 534bded5d25Smrg# Sed expression to map a string onto a valid CPP name. 535bded5d25Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536123e2cc7Smrg 537bded5d25Smrg# Sed expression to map a string onto a valid variable name. 538bded5d25Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539123e2cc7Smrg 540123e2cc7Smrg 541bded5d25Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542bded5d25Smrgexec 6>&1 5437da8b7e3Smrg 5447da8b7e3Smrg# Name of the host. 545bded5d25Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5467da8b7e3Smrg# so uname gets run too. 5477da8b7e3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5487da8b7e3Smrg 5497da8b7e3Smrg# 5507da8b7e3Smrg# Initializations. 5517da8b7e3Smrg# 5527da8b7e3Smrgac_default_prefix=/usr/local 553123e2cc7Smrgac_clean_files= 5547da8b7e3Smrgac_config_libobj_dir=. 555123e2cc7SmrgLIBOBJS= 5567da8b7e3Smrgcross_compiling=no 5577da8b7e3Smrgsubdirs= 5587da8b7e3SmrgMFLAGS= 5597da8b7e3SmrgMAKEFLAGS= 5607da8b7e3Smrg 5617da8b7e3Smrg# Identity of this package. 5627da8b7e3SmrgPACKAGE_NAME='xrefresh' 5637da8b7e3SmrgPACKAGE_TARNAME='xrefresh' 564bded5d25SmrgPACKAGE_VERSION='1.0.4' 565bded5d25SmrgPACKAGE_STRING='xrefresh 1.0.4' 5667da8b7e3SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567bded5d25SmrgPACKAGE_URL='' 5687da8b7e3Smrg 569bded5d25Smrgac_unique_file="Makefile.am" 570123e2cc7Smrg# Factoring default headers for most tests. 571123e2cc7Smrgac_includes_default="\ 572123e2cc7Smrg#include <stdio.h> 573123e2cc7Smrg#ifdef HAVE_SYS_TYPES_H 574123e2cc7Smrg# include <sys/types.h> 575123e2cc7Smrg#endif 576123e2cc7Smrg#ifdef HAVE_SYS_STAT_H 577123e2cc7Smrg# include <sys/stat.h> 578123e2cc7Smrg#endif 579123e2cc7Smrg#ifdef STDC_HEADERS 580123e2cc7Smrg# include <stdlib.h> 581123e2cc7Smrg# include <stddef.h> 582123e2cc7Smrg#else 583123e2cc7Smrg# ifdef HAVE_STDLIB_H 584123e2cc7Smrg# include <stdlib.h> 585123e2cc7Smrg# endif 586123e2cc7Smrg#endif 587123e2cc7Smrg#ifdef HAVE_STRING_H 588123e2cc7Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589123e2cc7Smrg# include <memory.h> 590123e2cc7Smrg# endif 591123e2cc7Smrg# include <string.h> 592123e2cc7Smrg#endif 593123e2cc7Smrg#ifdef HAVE_STRINGS_H 594123e2cc7Smrg# include <strings.h> 595123e2cc7Smrg#endif 596123e2cc7Smrg#ifdef HAVE_INTTYPES_H 597123e2cc7Smrg# include <inttypes.h> 598123e2cc7Smrg#endif 599123e2cc7Smrg#ifdef HAVE_STDINT_H 600123e2cc7Smrg# include <stdint.h> 601123e2cc7Smrg#endif 602123e2cc7Smrg#ifdef HAVE_UNISTD_H 603123e2cc7Smrg# include <unistd.h> 604123e2cc7Smrg#endif" 605123e2cc7Smrg 606123e2cc7Smrgac_subst_vars='am__EXEEXT_FALSE 607123e2cc7Smrgam__EXEEXT_TRUE 608123e2cc7SmrgLTLIBOBJS 609123e2cc7SmrgLIBOBJS 610123e2cc7SmrgXREFRESH_LIBS 611123e2cc7SmrgXREFRESH_CFLAGS 612bded5d25SmrgAM_BACKSLASH 613bded5d25SmrgAM_DEFAULT_VERBOSITY 614bded5d25SmrgMAN_SUBSTS 615bded5d25SmrgXORG_MAN_PAGE 616123e2cc7SmrgADMIN_MAN_DIR 617123e2cc7SmrgDRIVER_MAN_DIR 618123e2cc7SmrgMISC_MAN_DIR 619123e2cc7SmrgFILE_MAN_DIR 620123e2cc7SmrgLIB_MAN_DIR 621123e2cc7SmrgAPP_MAN_DIR 622123e2cc7SmrgADMIN_MAN_SUFFIX 623123e2cc7SmrgDRIVER_MAN_SUFFIX 624123e2cc7SmrgMISC_MAN_SUFFIX 625123e2cc7SmrgFILE_MAN_SUFFIX 626123e2cc7SmrgLIB_MAN_SUFFIX 627123e2cc7SmrgAPP_MAN_SUFFIX 628bded5d25SmrgSED 629123e2cc7Smrghost_os 630123e2cc7Smrghost_vendor 631123e2cc7Smrghost_cpu 632123e2cc7Smrghost 633123e2cc7Smrgbuild_os 634123e2cc7Smrgbuild_vendor 635123e2cc7Smrgbuild_cpu 636123e2cc7Smrgbuild 637bded5d25SmrgINSTALL_CMD 638bded5d25SmrgPKG_CONFIG 639123e2cc7SmrgCHANGELOG_CMD 640123e2cc7SmrgCWARNFLAGS 641123e2cc7SmrgEGREP 642123e2cc7SmrgGREP 643123e2cc7SmrgCPP 644123e2cc7Smrgam__fastdepCC_FALSE 645123e2cc7Smrgam__fastdepCC_TRUE 646123e2cc7SmrgCCDEPMODE 647123e2cc7SmrgAMDEPBACKSLASH 648123e2cc7SmrgAMDEP_FALSE 649123e2cc7SmrgAMDEP_TRUE 650123e2cc7Smrgam__quote 651123e2cc7Smrgam__include 652123e2cc7SmrgDEPDIR 653123e2cc7SmrgOBJEXT 654123e2cc7SmrgEXEEXT 655123e2cc7Smrgac_ct_CC 656123e2cc7SmrgCPPFLAGS 657123e2cc7SmrgLDFLAGS 658123e2cc7SmrgCFLAGS 659123e2cc7SmrgCC 660123e2cc7SmrgMAINT 661123e2cc7SmrgMAINTAINER_MODE_FALSE 662123e2cc7SmrgMAINTAINER_MODE_TRUE 663123e2cc7Smrgam__untar 664123e2cc7Smrgam__tar 665123e2cc7SmrgAMTAR 666123e2cc7Smrgam__leading_dot 667123e2cc7SmrgSET_MAKE 668123e2cc7SmrgAWK 669123e2cc7Smrgmkdir_p 670123e2cc7SmrgMKDIR_P 671123e2cc7SmrgINSTALL_STRIP_PROGRAM 672123e2cc7SmrgSTRIP 673123e2cc7Smrginstall_sh 674123e2cc7SmrgMAKEINFO 675123e2cc7SmrgAUTOHEADER 676123e2cc7SmrgAUTOMAKE 677123e2cc7SmrgAUTOCONF 678123e2cc7SmrgACLOCAL 679123e2cc7SmrgVERSION 680123e2cc7SmrgPACKAGE 681123e2cc7SmrgCYGPATH_W 682123e2cc7Smrgam__isrc 683123e2cc7SmrgINSTALL_DATA 684123e2cc7SmrgINSTALL_SCRIPT 685123e2cc7SmrgINSTALL_PROGRAM 686123e2cc7Smrgtarget_alias 687123e2cc7Smrghost_alias 688123e2cc7Smrgbuild_alias 689123e2cc7SmrgLIBS 690123e2cc7SmrgECHO_T 691123e2cc7SmrgECHO_N 692123e2cc7SmrgECHO_C 693123e2cc7SmrgDEFS 694123e2cc7Smrgmandir 695123e2cc7Smrglocaledir 696123e2cc7Smrglibdir 697123e2cc7Smrgpsdir 698123e2cc7Smrgpdfdir 699123e2cc7Smrgdvidir 700123e2cc7Smrghtmldir 701123e2cc7Smrginfodir 702123e2cc7Smrgdocdir 703123e2cc7Smrgoldincludedir 704123e2cc7Smrgincludedir 705123e2cc7Smrglocalstatedir 706123e2cc7Smrgsharedstatedir 707123e2cc7Smrgsysconfdir 708123e2cc7Smrgdatadir 709123e2cc7Smrgdatarootdir 710123e2cc7Smrglibexecdir 711123e2cc7Smrgsbindir 712123e2cc7Smrgbindir 713123e2cc7Smrgprogram_transform_name 714123e2cc7Smrgprefix 715123e2cc7Smrgexec_prefix 716bded5d25SmrgPACKAGE_URL 717123e2cc7SmrgPACKAGE_BUGREPORT 718123e2cc7SmrgPACKAGE_STRING 719123e2cc7SmrgPACKAGE_VERSION 720123e2cc7SmrgPACKAGE_TARNAME 721123e2cc7SmrgPACKAGE_NAME 722123e2cc7SmrgPATH_SEPARATOR 723123e2cc7SmrgSHELL' 7247da8b7e3Smrgac_subst_files='' 725123e2cc7Smrgac_user_opts=' 726123e2cc7Smrgenable_option_checking 727123e2cc7Smrgenable_maintainer_mode 728123e2cc7Smrgenable_dependency_tracking 729123e2cc7Smrgenable_strict_compilation 730bded5d25Smrgenable_silent_rules 731123e2cc7Smrg' 732123e2cc7Smrg ac_precious_vars='build_alias 733123e2cc7Smrghost_alias 734123e2cc7Smrgtarget_alias 735123e2cc7SmrgCC 736123e2cc7SmrgCFLAGS 737123e2cc7SmrgLDFLAGS 738123e2cc7SmrgLIBS 739123e2cc7SmrgCPPFLAGS 740123e2cc7SmrgCPP 741123e2cc7SmrgPKG_CONFIG 742123e2cc7SmrgXREFRESH_CFLAGS 743123e2cc7SmrgXREFRESH_LIBS' 744123e2cc7Smrg 7457da8b7e3Smrg 7467da8b7e3Smrg# Initialize some variables set by options. 7477da8b7e3Smrgac_init_help= 7487da8b7e3Smrgac_init_version=false 749123e2cc7Smrgac_unrecognized_opts= 750123e2cc7Smrgac_unrecognized_sep= 7517da8b7e3Smrg# The variables have the same names as the options, with 7527da8b7e3Smrg# dashes changed to underlines. 7537da8b7e3Smrgcache_file=/dev/null 7547da8b7e3Smrgexec_prefix=NONE 7557da8b7e3Smrgno_create= 7567da8b7e3Smrgno_recursion= 7577da8b7e3Smrgprefix=NONE 7587da8b7e3Smrgprogram_prefix=NONE 7597da8b7e3Smrgprogram_suffix=NONE 7607da8b7e3Smrgprogram_transform_name=s,x,x, 7617da8b7e3Smrgsilent= 7627da8b7e3Smrgsite= 7637da8b7e3Smrgsrcdir= 7647da8b7e3Smrgverbose= 7657da8b7e3Smrgx_includes=NONE 7667da8b7e3Smrgx_libraries=NONE 7677da8b7e3Smrg 7687da8b7e3Smrg# Installation directory options. 7697da8b7e3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7707da8b7e3Smrg# and all the variables that are supposed to be based on exec_prefix 7717da8b7e3Smrg# by default will actually change. 7727da8b7e3Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 773123e2cc7Smrg# (The list follows the same order as the GNU Coding Standards.) 7747da8b7e3Smrgbindir='${exec_prefix}/bin' 7757da8b7e3Smrgsbindir='${exec_prefix}/sbin' 7767da8b7e3Smrglibexecdir='${exec_prefix}/libexec' 777123e2cc7Smrgdatarootdir='${prefix}/share' 778123e2cc7Smrgdatadir='${datarootdir}' 7797da8b7e3Smrgsysconfdir='${prefix}/etc' 7807da8b7e3Smrgsharedstatedir='${prefix}/com' 7817da8b7e3Smrglocalstatedir='${prefix}/var' 7827da8b7e3Smrgincludedir='${prefix}/include' 7837da8b7e3Smrgoldincludedir='/usr/include' 784123e2cc7Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 785123e2cc7Smrginfodir='${datarootdir}/info' 786123e2cc7Smrghtmldir='${docdir}' 787123e2cc7Smrgdvidir='${docdir}' 788123e2cc7Smrgpdfdir='${docdir}' 789123e2cc7Smrgpsdir='${docdir}' 790123e2cc7Smrglibdir='${exec_prefix}/lib' 791123e2cc7Smrglocaledir='${datarootdir}/locale' 792123e2cc7Smrgmandir='${datarootdir}/man' 7937da8b7e3Smrg 7947da8b7e3Smrgac_prev= 795123e2cc7Smrgac_dashdash= 7967da8b7e3Smrgfor ac_option 7977da8b7e3Smrgdo 7987da8b7e3Smrg # If the previous option needs an argument, assign it. 7997da8b7e3Smrg if test -n "$ac_prev"; then 800123e2cc7Smrg eval $ac_prev=\$ac_option 8017da8b7e3Smrg ac_prev= 8027da8b7e3Smrg continue 8037da8b7e3Smrg fi 8047da8b7e3Smrg 805123e2cc7Smrg case $ac_option in 806bded5d25Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 807bded5d25Smrg *=) ac_optarg= ;; 808bded5d25Smrg *) ac_optarg=yes ;; 809123e2cc7Smrg esac 8107da8b7e3Smrg 8117da8b7e3Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8127da8b7e3Smrg 813123e2cc7Smrg case $ac_dashdash$ac_option in 814123e2cc7Smrg --) 815123e2cc7Smrg ac_dashdash=yes ;; 8167da8b7e3Smrg 8177da8b7e3Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8187da8b7e3Smrg ac_prev=bindir ;; 8197da8b7e3Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8207da8b7e3Smrg bindir=$ac_optarg ;; 8217da8b7e3Smrg 8227da8b7e3Smrg -build | --build | --buil | --bui | --bu) 8237da8b7e3Smrg ac_prev=build_alias ;; 8247da8b7e3Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8257da8b7e3Smrg build_alias=$ac_optarg ;; 8267da8b7e3Smrg 8277da8b7e3Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8287da8b7e3Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8297da8b7e3Smrg ac_prev=cache_file ;; 8307da8b7e3Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8317da8b7e3Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8327da8b7e3Smrg cache_file=$ac_optarg ;; 8337da8b7e3Smrg 8347da8b7e3Smrg --config-cache | -C) 8357da8b7e3Smrg cache_file=config.cache ;; 8367da8b7e3Smrg 837123e2cc7Smrg -datadir | --datadir | --datadi | --datad) 8387da8b7e3Smrg ac_prev=datadir ;; 839123e2cc7Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8407da8b7e3Smrg datadir=$ac_optarg ;; 8417da8b7e3Smrg 842123e2cc7Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 843123e2cc7Smrg | --dataroo | --dataro | --datar) 844123e2cc7Smrg ac_prev=datarootdir ;; 845123e2cc7Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 846123e2cc7Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 847123e2cc7Smrg datarootdir=$ac_optarg ;; 848123e2cc7Smrg 8497da8b7e3Smrg -disable-* | --disable-*) 850123e2cc7Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8517da8b7e3Smrg # Reject names that are not valid shell variable names. 852123e2cc7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 853bded5d25Smrg as_fn_error $? "invalid feature name: $ac_useropt" 854123e2cc7Smrg ac_useropt_orig=$ac_useropt 855123e2cc7Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 856123e2cc7Smrg case $ac_user_opts in 857123e2cc7Smrg *" 858123e2cc7Smrg"enable_$ac_useropt" 859123e2cc7Smrg"*) ;; 860123e2cc7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 861123e2cc7Smrg ac_unrecognized_sep=', ';; 862123e2cc7Smrg esac 863123e2cc7Smrg eval enable_$ac_useropt=no ;; 864123e2cc7Smrg 865123e2cc7Smrg -docdir | --docdir | --docdi | --doc | --do) 866123e2cc7Smrg ac_prev=docdir ;; 867123e2cc7Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 868123e2cc7Smrg docdir=$ac_optarg ;; 869123e2cc7Smrg 870123e2cc7Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 871123e2cc7Smrg ac_prev=dvidir ;; 872123e2cc7Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 873123e2cc7Smrg dvidir=$ac_optarg ;; 8747da8b7e3Smrg 8757da8b7e3Smrg -enable-* | --enable-*) 876123e2cc7Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8777da8b7e3Smrg # Reject names that are not valid shell variable names. 878123e2cc7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879bded5d25Smrg as_fn_error $? "invalid feature name: $ac_useropt" 880123e2cc7Smrg ac_useropt_orig=$ac_useropt 881123e2cc7Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882123e2cc7Smrg case $ac_user_opts in 883123e2cc7Smrg *" 884123e2cc7Smrg"enable_$ac_useropt" 885123e2cc7Smrg"*) ;; 886123e2cc7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 887123e2cc7Smrg ac_unrecognized_sep=', ';; 8887da8b7e3Smrg esac 889123e2cc7Smrg eval enable_$ac_useropt=\$ac_optarg ;; 8907da8b7e3Smrg 8917da8b7e3Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 8927da8b7e3Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 8937da8b7e3Smrg | --exec | --exe | --ex) 8947da8b7e3Smrg ac_prev=exec_prefix ;; 8957da8b7e3Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 8967da8b7e3Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 8977da8b7e3Smrg | --exec=* | --exe=* | --ex=*) 8987da8b7e3Smrg exec_prefix=$ac_optarg ;; 8997da8b7e3Smrg 9007da8b7e3Smrg -gas | --gas | --ga | --g) 9017da8b7e3Smrg # Obsolete; use --with-gas. 9027da8b7e3Smrg with_gas=yes ;; 9037da8b7e3Smrg 9047da8b7e3Smrg -help | --help | --hel | --he | -h) 9057da8b7e3Smrg ac_init_help=long ;; 9067da8b7e3Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9077da8b7e3Smrg ac_init_help=recursive ;; 9087da8b7e3Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9097da8b7e3Smrg ac_init_help=short ;; 9107da8b7e3Smrg 9117da8b7e3Smrg -host | --host | --hos | --ho) 9127da8b7e3Smrg ac_prev=host_alias ;; 9137da8b7e3Smrg -host=* | --host=* | --hos=* | --ho=*) 9147da8b7e3Smrg host_alias=$ac_optarg ;; 9157da8b7e3Smrg 916123e2cc7Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 917123e2cc7Smrg ac_prev=htmldir ;; 918123e2cc7Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 919123e2cc7Smrg | --ht=*) 920123e2cc7Smrg htmldir=$ac_optarg ;; 921123e2cc7Smrg 9227da8b7e3Smrg -includedir | --includedir | --includedi | --included | --include \ 9237da8b7e3Smrg | --includ | --inclu | --incl | --inc) 9247da8b7e3Smrg ac_prev=includedir ;; 9257da8b7e3Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9267da8b7e3Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9277da8b7e3Smrg includedir=$ac_optarg ;; 9287da8b7e3Smrg 9297da8b7e3Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9307da8b7e3Smrg ac_prev=infodir ;; 9317da8b7e3Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9327da8b7e3Smrg infodir=$ac_optarg ;; 9337da8b7e3Smrg 9347da8b7e3Smrg -libdir | --libdir | --libdi | --libd) 9357da8b7e3Smrg ac_prev=libdir ;; 9367da8b7e3Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9377da8b7e3Smrg libdir=$ac_optarg ;; 9387da8b7e3Smrg 9397da8b7e3Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9407da8b7e3Smrg | --libexe | --libex | --libe) 9417da8b7e3Smrg ac_prev=libexecdir ;; 9427da8b7e3Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9437da8b7e3Smrg | --libexe=* | --libex=* | --libe=*) 9447da8b7e3Smrg libexecdir=$ac_optarg ;; 9457da8b7e3Smrg 946123e2cc7Smrg -localedir | --localedir | --localedi | --localed | --locale) 947123e2cc7Smrg ac_prev=localedir ;; 948123e2cc7Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 949123e2cc7Smrg localedir=$ac_optarg ;; 950123e2cc7Smrg 9517da8b7e3Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 952123e2cc7Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9537da8b7e3Smrg ac_prev=localstatedir ;; 9547da8b7e3Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 955123e2cc7Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9567da8b7e3Smrg localstatedir=$ac_optarg ;; 9577da8b7e3Smrg 9587da8b7e3Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9597da8b7e3Smrg ac_prev=mandir ;; 9607da8b7e3Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9617da8b7e3Smrg mandir=$ac_optarg ;; 9627da8b7e3Smrg 9637da8b7e3Smrg -nfp | --nfp | --nf) 9647da8b7e3Smrg # Obsolete; use --without-fp. 9657da8b7e3Smrg with_fp=no ;; 9667da8b7e3Smrg 9677da8b7e3Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9687da8b7e3Smrg | --no-cr | --no-c | -n) 9697da8b7e3Smrg no_create=yes ;; 9707da8b7e3Smrg 9717da8b7e3Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9727da8b7e3Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9737da8b7e3Smrg no_recursion=yes ;; 9747da8b7e3Smrg 9757da8b7e3Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9767da8b7e3Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9777da8b7e3Smrg | --oldin | --oldi | --old | --ol | --o) 9787da8b7e3Smrg ac_prev=oldincludedir ;; 9797da8b7e3Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9807da8b7e3Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9817da8b7e3Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9827da8b7e3Smrg oldincludedir=$ac_optarg ;; 9837da8b7e3Smrg 9847da8b7e3Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9857da8b7e3Smrg ac_prev=prefix ;; 9867da8b7e3Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 9877da8b7e3Smrg prefix=$ac_optarg ;; 9887da8b7e3Smrg 9897da8b7e3Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 9907da8b7e3Smrg | --program-pre | --program-pr | --program-p) 9917da8b7e3Smrg ac_prev=program_prefix ;; 9927da8b7e3Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 9937da8b7e3Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 9947da8b7e3Smrg program_prefix=$ac_optarg ;; 9957da8b7e3Smrg 9967da8b7e3Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 9977da8b7e3Smrg | --program-suf | --program-su | --program-s) 9987da8b7e3Smrg ac_prev=program_suffix ;; 9997da8b7e3Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10007da8b7e3Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10017da8b7e3Smrg program_suffix=$ac_optarg ;; 10027da8b7e3Smrg 10037da8b7e3Smrg -program-transform-name | --program-transform-name \ 10047da8b7e3Smrg | --program-transform-nam | --program-transform-na \ 10057da8b7e3Smrg | --program-transform-n | --program-transform- \ 10067da8b7e3Smrg | --program-transform | --program-transfor \ 10077da8b7e3Smrg | --program-transfo | --program-transf \ 10087da8b7e3Smrg | --program-trans | --program-tran \ 10097da8b7e3Smrg | --progr-tra | --program-tr | --program-t) 10107da8b7e3Smrg ac_prev=program_transform_name ;; 10117da8b7e3Smrg -program-transform-name=* | --program-transform-name=* \ 10127da8b7e3Smrg | --program-transform-nam=* | --program-transform-na=* \ 10137da8b7e3Smrg | --program-transform-n=* | --program-transform-=* \ 10147da8b7e3Smrg | --program-transform=* | --program-transfor=* \ 10157da8b7e3Smrg | --program-transfo=* | --program-transf=* \ 10167da8b7e3Smrg | --program-trans=* | --program-tran=* \ 10177da8b7e3Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10187da8b7e3Smrg program_transform_name=$ac_optarg ;; 10197da8b7e3Smrg 1020123e2cc7Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1021123e2cc7Smrg ac_prev=pdfdir ;; 1022123e2cc7Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1023123e2cc7Smrg pdfdir=$ac_optarg ;; 1024123e2cc7Smrg 1025123e2cc7Smrg -psdir | --psdir | --psdi | --psd | --ps) 1026123e2cc7Smrg ac_prev=psdir ;; 1027123e2cc7Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1028123e2cc7Smrg psdir=$ac_optarg ;; 1029123e2cc7Smrg 10307da8b7e3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10317da8b7e3Smrg | -silent | --silent | --silen | --sile | --sil) 10327da8b7e3Smrg silent=yes ;; 10337da8b7e3Smrg 10347da8b7e3Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10357da8b7e3Smrg ac_prev=sbindir ;; 10367da8b7e3Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10377da8b7e3Smrg | --sbi=* | --sb=*) 10387da8b7e3Smrg sbindir=$ac_optarg ;; 10397da8b7e3Smrg 10407da8b7e3Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10417da8b7e3Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10427da8b7e3Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10437da8b7e3Smrg | --sha | --sh) 10447da8b7e3Smrg ac_prev=sharedstatedir ;; 10457da8b7e3Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10467da8b7e3Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10477da8b7e3Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10487da8b7e3Smrg | --sha=* | --sh=*) 10497da8b7e3Smrg sharedstatedir=$ac_optarg ;; 10507da8b7e3Smrg 10517da8b7e3Smrg -site | --site | --sit) 10527da8b7e3Smrg ac_prev=site ;; 10537da8b7e3Smrg -site=* | --site=* | --sit=*) 10547da8b7e3Smrg site=$ac_optarg ;; 10557da8b7e3Smrg 10567da8b7e3Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10577da8b7e3Smrg ac_prev=srcdir ;; 10587da8b7e3Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10597da8b7e3Smrg srcdir=$ac_optarg ;; 10607da8b7e3Smrg 10617da8b7e3Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10627da8b7e3Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10637da8b7e3Smrg ac_prev=sysconfdir ;; 10647da8b7e3Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10657da8b7e3Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10667da8b7e3Smrg sysconfdir=$ac_optarg ;; 10677da8b7e3Smrg 10687da8b7e3Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10697da8b7e3Smrg ac_prev=target_alias ;; 10707da8b7e3Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10717da8b7e3Smrg target_alias=$ac_optarg ;; 10727da8b7e3Smrg 10737da8b7e3Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10747da8b7e3Smrg verbose=yes ;; 10757da8b7e3Smrg 10767da8b7e3Smrg -version | --version | --versio | --versi | --vers | -V) 10777da8b7e3Smrg ac_init_version=: ;; 10787da8b7e3Smrg 10797da8b7e3Smrg -with-* | --with-*) 1080123e2cc7Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10817da8b7e3Smrg # Reject names that are not valid shell variable names. 1082123e2cc7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083bded5d25Smrg as_fn_error $? "invalid package name: $ac_useropt" 1084123e2cc7Smrg ac_useropt_orig=$ac_useropt 1085123e2cc7Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086123e2cc7Smrg case $ac_user_opts in 1087123e2cc7Smrg *" 1088123e2cc7Smrg"with_$ac_useropt" 1089123e2cc7Smrg"*) ;; 1090123e2cc7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1091123e2cc7Smrg ac_unrecognized_sep=', ';; 10927da8b7e3Smrg esac 1093123e2cc7Smrg eval with_$ac_useropt=\$ac_optarg ;; 10947da8b7e3Smrg 10957da8b7e3Smrg -without-* | --without-*) 1096123e2cc7Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 10977da8b7e3Smrg # Reject names that are not valid shell variable names. 1098123e2cc7Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099bded5d25Smrg as_fn_error $? "invalid package name: $ac_useropt" 1100123e2cc7Smrg ac_useropt_orig=$ac_useropt 1101123e2cc7Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102123e2cc7Smrg case $ac_user_opts in 1103123e2cc7Smrg *" 1104123e2cc7Smrg"with_$ac_useropt" 1105123e2cc7Smrg"*) ;; 1106123e2cc7Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1107123e2cc7Smrg ac_unrecognized_sep=', ';; 1108123e2cc7Smrg esac 1109123e2cc7Smrg eval with_$ac_useropt=no ;; 11107da8b7e3Smrg 11117da8b7e3Smrg --x) 11127da8b7e3Smrg # Obsolete; use --with-x. 11137da8b7e3Smrg with_x=yes ;; 11147da8b7e3Smrg 11157da8b7e3Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11167da8b7e3Smrg | --x-incl | --x-inc | --x-in | --x-i) 11177da8b7e3Smrg ac_prev=x_includes ;; 11187da8b7e3Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11197da8b7e3Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11207da8b7e3Smrg x_includes=$ac_optarg ;; 11217da8b7e3Smrg 11227da8b7e3Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11237da8b7e3Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11247da8b7e3Smrg ac_prev=x_libraries ;; 11257da8b7e3Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11267da8b7e3Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11277da8b7e3Smrg x_libraries=$ac_optarg ;; 11287da8b7e3Smrg 1129bded5d25Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1130bded5d25SmrgTry \`$0 --help' for more information" 11317da8b7e3Smrg ;; 11327da8b7e3Smrg 11337da8b7e3Smrg *=*) 11347da8b7e3Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11357da8b7e3Smrg # Reject names that are not valid shell variable names. 1136bded5d25Smrg case $ac_envvar in #( 1137bded5d25Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1138bded5d25Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1139bded5d25Smrg esac 1140123e2cc7Smrg eval $ac_envvar=\$ac_optarg 11417da8b7e3Smrg export $ac_envvar ;; 11427da8b7e3Smrg 11437da8b7e3Smrg *) 11447da8b7e3Smrg # FIXME: should be removed in autoconf 3.0. 1145123e2cc7Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11467da8b7e3Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1147123e2cc7Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1148bded5d25Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11497da8b7e3Smrg ;; 11507da8b7e3Smrg 11517da8b7e3Smrg esac 11527da8b7e3Smrgdone 11537da8b7e3Smrg 11547da8b7e3Smrgif test -n "$ac_prev"; then 11557da8b7e3Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1156bded5d25Smrg as_fn_error $? "missing argument to $ac_option" 11577da8b7e3Smrgfi 11587da8b7e3Smrg 1159123e2cc7Smrgif test -n "$ac_unrecognized_opts"; then 1160123e2cc7Smrg case $enable_option_checking in 1161123e2cc7Smrg no) ;; 1162bded5d25Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1163123e2cc7Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11647da8b7e3Smrg esac 1165123e2cc7Smrgfi 11667da8b7e3Smrg 1167123e2cc7Smrg# Check all directory arguments for consistency. 1168123e2cc7Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1169123e2cc7Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1170123e2cc7Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1171123e2cc7Smrg libdir localedir mandir 11727da8b7e3Smrgdo 1173123e2cc7Smrg eval ac_val=\$$ac_var 1174123e2cc7Smrg # Remove trailing slashes. 11757da8b7e3Smrg case $ac_val in 1176123e2cc7Smrg */ ) 1177123e2cc7Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1178123e2cc7Smrg eval $ac_var=\$ac_val;; 1179123e2cc7Smrg esac 1180123e2cc7Smrg # Be sure to have absolute directory names. 1181123e2cc7Smrg case $ac_val in 1182123e2cc7Smrg [\\/$]* | ?:[\\/]* ) continue;; 1183123e2cc7Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11847da8b7e3Smrg esac 1185bded5d25Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11867da8b7e3Smrgdone 11877da8b7e3Smrg 11887da8b7e3Smrg# There might be people who depend on the old broken behavior: `$host' 11897da8b7e3Smrg# used to hold the argument of --host etc. 11907da8b7e3Smrg# FIXME: To remove some day. 11917da8b7e3Smrgbuild=$build_alias 11927da8b7e3Smrghost=$host_alias 11937da8b7e3Smrgtarget=$target_alias 11947da8b7e3Smrg 11957da8b7e3Smrg# FIXME: To remove some day. 11967da8b7e3Smrgif test "x$host_alias" != x; then 11977da8b7e3Smrg if test "x$build_alias" = x; then 11987da8b7e3Smrg cross_compiling=maybe 1199bded5d25Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1200bded5d25Smrg If a cross compiler is detected then cross compile mode will be used" >&2 12017da8b7e3Smrg elif test "x$build_alias" != "x$host_alias"; then 12027da8b7e3Smrg cross_compiling=yes 12037da8b7e3Smrg fi 12047da8b7e3Smrgfi 12057da8b7e3Smrg 12067da8b7e3Smrgac_tool_prefix= 12077da8b7e3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12087da8b7e3Smrg 12097da8b7e3Smrgtest "$silent" = yes && exec 6>/dev/null 12107da8b7e3Smrg 12117da8b7e3Smrg 1212123e2cc7Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1213123e2cc7Smrgac_ls_di=`ls -di .` && 1214123e2cc7Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215bded5d25Smrg as_fn_error $? "working directory cannot be determined" 1216123e2cc7Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1217bded5d25Smrg as_fn_error $? "pwd does not report name of working directory" 1218123e2cc7Smrg 1219123e2cc7Smrg 1220123e2cc7Smrg# Find the source files, if location was not specified. 1221123e2cc7Smrgif test -z "$srcdir"; then 1222123e2cc7Smrg ac_srcdir_defaulted=yes 1223123e2cc7Smrg # Try the directory containing this script, then the parent directory. 1224123e2cc7Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1225123e2cc7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1226123e2cc7Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1227123e2cc7Smrg X"$as_myself" : 'X\(//\)$' \| \ 1228123e2cc7Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1229123e2cc7Smrg$as_echo X"$as_myself" | 1230123e2cc7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1231123e2cc7Smrg s//\1/ 1232123e2cc7Smrg q 1233123e2cc7Smrg } 1234123e2cc7Smrg /^X\(\/\/\)[^/].*/{ 1235123e2cc7Smrg s//\1/ 1236123e2cc7Smrg q 1237123e2cc7Smrg } 1238123e2cc7Smrg /^X\(\/\/\)$/{ 1239123e2cc7Smrg s//\1/ 1240123e2cc7Smrg q 1241123e2cc7Smrg } 1242123e2cc7Smrg /^X\(\/\).*/{ 1243123e2cc7Smrg s//\1/ 1244123e2cc7Smrg q 1245123e2cc7Smrg } 1246123e2cc7Smrg s/.*/./; q'` 12477da8b7e3Smrg srcdir=$ac_confdir 1248123e2cc7Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12497da8b7e3Smrg srcdir=.. 12507da8b7e3Smrg fi 12517da8b7e3Smrgelse 12527da8b7e3Smrg ac_srcdir_defaulted=no 12537da8b7e3Smrgfi 1254123e2cc7Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1255123e2cc7Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1256bded5d25Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12577da8b7e3Smrgfi 1258123e2cc7Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1259123e2cc7Smrgac_abs_confdir=`( 1260bded5d25Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1261123e2cc7Smrg pwd)` 1262123e2cc7Smrg# When building in place, set srcdir=. 1263123e2cc7Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1264123e2cc7Smrg srcdir=. 1265123e2cc7Smrgfi 1266123e2cc7Smrg# Remove unnecessary trailing slashes from srcdir. 1267123e2cc7Smrg# Double slashes in file names in object file debugging info 1268123e2cc7Smrg# mess up M-x gdb in Emacs. 1269123e2cc7Smrgcase $srcdir in 1270123e2cc7Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1271123e2cc7Smrgesac 1272123e2cc7Smrgfor ac_var in $ac_precious_vars; do 1273123e2cc7Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1274123e2cc7Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1275123e2cc7Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1276123e2cc7Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1277123e2cc7Smrgdone 12787da8b7e3Smrg 12797da8b7e3Smrg# 12807da8b7e3Smrg# Report the --help message. 12817da8b7e3Smrg# 12827da8b7e3Smrgif test "$ac_init_help" = "long"; then 12837da8b7e3Smrg # Omit some internal or obsolete options to make the list less imposing. 12847da8b7e3Smrg # This message is too long to be a string in the A/UX 3.1 sh. 12857da8b7e3Smrg cat <<_ACEOF 1286bded5d25Smrg\`configure' configures xrefresh 1.0.4 to adapt to many kinds of systems. 12877da8b7e3Smrg 12887da8b7e3SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 12897da8b7e3Smrg 12907da8b7e3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 12917da8b7e3SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 12927da8b7e3Smrg 12937da8b7e3SmrgDefaults for the options are specified in brackets. 12947da8b7e3Smrg 12957da8b7e3SmrgConfiguration: 12967da8b7e3Smrg -h, --help display this help and exit 12977da8b7e3Smrg --help=short display options specific to this package 12987da8b7e3Smrg --help=recursive display the short help of all the included packages 12997da8b7e3Smrg -V, --version display version information and exit 1300bded5d25Smrg -q, --quiet, --silent do not print \`checking ...' messages 13017da8b7e3Smrg --cache-file=FILE cache test results in FILE [disabled] 13027da8b7e3Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13037da8b7e3Smrg -n, --no-create do not create output files 13047da8b7e3Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13057da8b7e3Smrg 13067da8b7e3SmrgInstallation directories: 13077da8b7e3Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1308123e2cc7Smrg [$ac_default_prefix] 13097da8b7e3Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1310123e2cc7Smrg [PREFIX] 13117da8b7e3Smrg 13127da8b7e3SmrgBy default, \`make install' will install all the files in 13137da8b7e3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13147da8b7e3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13157da8b7e3Smrgfor instance \`--prefix=\$HOME'. 13167da8b7e3Smrg 13177da8b7e3SmrgFor better control, use the options below. 13187da8b7e3Smrg 13197da8b7e3SmrgFine tuning of the installation directories: 1320123e2cc7Smrg --bindir=DIR user executables [EPREFIX/bin] 1321123e2cc7Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1322123e2cc7Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1323123e2cc7Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1324123e2cc7Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1325123e2cc7Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1326123e2cc7Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1327123e2cc7Smrg --includedir=DIR C header files [PREFIX/include] 1328123e2cc7Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1329123e2cc7Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1330123e2cc7Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1331123e2cc7Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1332123e2cc7Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1333123e2cc7Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1334123e2cc7Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xrefresh] 1335123e2cc7Smrg --htmldir=DIR html documentation [DOCDIR] 1336123e2cc7Smrg --dvidir=DIR dvi documentation [DOCDIR] 1337123e2cc7Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1338123e2cc7Smrg --psdir=DIR ps documentation [DOCDIR] 13397da8b7e3Smrg_ACEOF 13407da8b7e3Smrg 13417da8b7e3Smrg cat <<\_ACEOF 13427da8b7e3Smrg 13437da8b7e3SmrgProgram names: 13447da8b7e3Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13457da8b7e3Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13467da8b7e3Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13477da8b7e3Smrg 13487da8b7e3SmrgSystem types: 13497da8b7e3Smrg --build=BUILD configure for building on BUILD [guessed] 13507da8b7e3Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13517da8b7e3Smrg_ACEOF 13527da8b7e3Smrgfi 13537da8b7e3Smrg 13547da8b7e3Smrgif test -n "$ac_init_help"; then 13557da8b7e3Smrg case $ac_init_help in 1356bded5d25Smrg short | recursive ) echo "Configuration of xrefresh 1.0.4:";; 13577da8b7e3Smrg esac 13587da8b7e3Smrg cat <<\_ACEOF 13597da8b7e3Smrg 13607da8b7e3SmrgOptional Features: 1361123e2cc7Smrg --disable-option-checking ignore unrecognized --enable/--with options 13627da8b7e3Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13637da8b7e3Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13647da8b7e3Smrg --enable-maintainer-mode enable make rules and dependencies not useful 13657da8b7e3Smrg (and sometimes confusing) to the casual installer 13667da8b7e3Smrg --disable-dependency-tracking speeds up one-time build 13677da8b7e3Smrg --enable-dependency-tracking do not reject slow dependency extractors 1368123e2cc7Smrg --enable-strict-compilation 1369123e2cc7Smrg Enable all warnings from compiler and make them 1370123e2cc7Smrg errors (default: disabled) 1371bded5d25Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1372bded5d25Smrg --disable-silent-rules verbose build output (undo: `make V=0') 13737da8b7e3Smrg 13747da8b7e3SmrgSome influential environment variables: 13757da8b7e3Smrg CC C compiler command 13767da8b7e3Smrg CFLAGS C compiler flags 13777da8b7e3Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 13787da8b7e3Smrg nonstandard directory <lib dir> 1379123e2cc7Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1380bded5d25Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1381123e2cc7Smrg you have headers in a nonstandard directory <include dir> 1382123e2cc7Smrg CPP C preprocessor 13837da8b7e3Smrg PKG_CONFIG path to pkg-config utility 13847da8b7e3Smrg XREFRESH_CFLAGS 13857da8b7e3Smrg C compiler flags for XREFRESH, overriding pkg-config 13867da8b7e3Smrg XREFRESH_LIBS 13877da8b7e3Smrg linker flags for XREFRESH, overriding pkg-config 13887da8b7e3Smrg 13897da8b7e3SmrgUse these variables to override the choices made by `configure' or to help 13907da8b7e3Smrgit to find libraries and programs with nonstandard names/locations. 13917da8b7e3Smrg 13927da8b7e3SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 13937da8b7e3Smrg_ACEOF 1394123e2cc7Smrgac_status=$? 13957da8b7e3Smrgfi 13967da8b7e3Smrg 13977da8b7e3Smrgif test "$ac_init_help" = "recursive"; then 13987da8b7e3Smrg # If there are subdirs, report their specific --help. 13997da8b7e3Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1400123e2cc7Smrg test -d "$ac_dir" || 1401123e2cc7Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1402123e2cc7Smrg continue 14037da8b7e3Smrg ac_builddir=. 14047da8b7e3Smrg 1405123e2cc7Smrgcase "$ac_dir" in 1406123e2cc7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1407123e2cc7Smrg*) 1408123e2cc7Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1409123e2cc7Smrg # A ".." for each directory in $ac_dir_suffix. 1410123e2cc7Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1411123e2cc7Smrg case $ac_top_builddir_sub in 1412123e2cc7Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1413123e2cc7Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1414123e2cc7Smrg esac ;; 1415123e2cc7Smrgesac 1416123e2cc7Smrgac_abs_top_builddir=$ac_pwd 1417123e2cc7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1418123e2cc7Smrg# for backward compatibility: 1419123e2cc7Smrgac_top_builddir=$ac_top_build_prefix 14207da8b7e3Smrg 14217da8b7e3Smrgcase $srcdir in 1422123e2cc7Smrg .) # We are building in place. 14237da8b7e3Smrg ac_srcdir=. 1424123e2cc7Smrg ac_top_srcdir=$ac_top_builddir_sub 1425123e2cc7Smrg ac_abs_top_srcdir=$ac_pwd ;; 1426123e2cc7Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14277da8b7e3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1428123e2cc7Smrg ac_top_srcdir=$srcdir 1429123e2cc7Smrg ac_abs_top_srcdir=$srcdir ;; 1430123e2cc7Smrg *) # Relative name. 1431123e2cc7Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1432123e2cc7Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1433123e2cc7Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14347da8b7e3Smrgesac 1435123e2cc7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1436123e2cc7Smrg 1437123e2cc7Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1438123e2cc7Smrg # Check for guested configure. 1439123e2cc7Smrg if test -f "$ac_srcdir/configure.gnu"; then 1440123e2cc7Smrg echo && 1441123e2cc7Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1442123e2cc7Smrg elif test -f "$ac_srcdir/configure"; then 1443123e2cc7Smrg echo && 1444123e2cc7Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14457da8b7e3Smrg else 1446123e2cc7Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1447123e2cc7Smrg fi || ac_status=$? 1448123e2cc7Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14497da8b7e3Smrg done 14507da8b7e3Smrgfi 14517da8b7e3Smrg 1452123e2cc7Smrgtest -n "$ac_init_help" && exit $ac_status 14537da8b7e3Smrgif $ac_init_version; then 14547da8b7e3Smrg cat <<\_ACEOF 1455bded5d25Smrgxrefresh configure 1.0.4 1456bded5d25Smrggenerated by GNU Autoconf 2.68 14577da8b7e3Smrg 1458bded5d25SmrgCopyright (C) 2010 Free Software Foundation, Inc. 14597da8b7e3SmrgThis configure script is free software; the Free Software Foundation 14607da8b7e3Smrggives unlimited permission to copy, distribute and modify it. 14617da8b7e3Smrg_ACEOF 1462123e2cc7Smrg exit 14637da8b7e3Smrgfi 14647da8b7e3Smrg 1465bded5d25Smrg## ------------------------ ## 1466bded5d25Smrg## Autoconf initialization. ## 1467bded5d25Smrg## ------------------------ ## 14687da8b7e3Smrg 1469bded5d25Smrg# ac_fn_c_try_compile LINENO 1470bded5d25Smrg# -------------------------- 1471bded5d25Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1472bded5d25Smrgac_fn_c_try_compile () 14737da8b7e3Smrg{ 1474bded5d25Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1475bded5d25Smrg rm -f conftest.$ac_objext 1476bded5d25Smrg if { { ac_try="$ac_compile" 1477bded5d25Smrgcase "(($ac_try" in 1478bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1479bded5d25Smrg *) ac_try_echo=$ac_try;; 1480bded5d25Smrgesac 1481bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1482bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 1483bded5d25Smrg (eval "$ac_compile") 2>conftest.err 1484bded5d25Smrg ac_status=$? 1485bded5d25Smrg if test -s conftest.err; then 1486bded5d25Smrg grep -v '^ *+' conftest.err >conftest.er1 1487bded5d25Smrg cat conftest.er1 >&5 1488bded5d25Smrg mv -f conftest.er1 conftest.err 1489bded5d25Smrg fi 1490bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1491bded5d25Smrg test $ac_status = 0; } && { 1492bded5d25Smrg test -z "$ac_c_werror_flag" || 1493bded5d25Smrg test ! -s conftest.err 1494bded5d25Smrg } && test -s conftest.$ac_objext; then : 1495bded5d25Smrg ac_retval=0 1496bded5d25Smrgelse 1497bded5d25Smrg $as_echo "$as_me: failed program was:" >&5 1498bded5d25Smrgsed 's/^/| /' conftest.$ac_ext >&5 14997da8b7e3Smrg 1500bded5d25Smrg ac_retval=1 1501bded5d25Smrgfi 1502bded5d25Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1503bded5d25Smrg as_fn_set_status $ac_retval 15047da8b7e3Smrg 1505bded5d25Smrg} # ac_fn_c_try_compile 15067da8b7e3Smrg 1507bded5d25Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1508bded5d25Smrg# --------------------------------------------- 1509bded5d25Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1510bded5d25Smrg# accordingly. 1511bded5d25Smrgac_fn_c_check_decl () 1512bded5d25Smrg{ 1513bded5d25Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514bded5d25Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1515bded5d25Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1516bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1517bded5d25Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1518bded5d25Smrgif eval \${$3+:} false; then : 1519bded5d25Smrg $as_echo_n "(cached) " >&6 1520bded5d25Smrgelse 1521bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1522bded5d25Smrg/* end confdefs.h. */ 1523bded5d25Smrg$4 1524bded5d25Smrgint 1525bded5d25Smrgmain () 1526bded5d25Smrg{ 1527bded5d25Smrg#ifndef $as_decl_name 1528bded5d25Smrg#ifdef __cplusplus 1529bded5d25Smrg (void) $as_decl_use; 1530bded5d25Smrg#else 1531bded5d25Smrg (void) $as_decl_name; 1532bded5d25Smrg#endif 1533bded5d25Smrg#endif 1534bded5d25Smrg 1535bded5d25Smrg ; 1536bded5d25Smrg return 0; 1537bded5d25Smrg} 1538bded5d25Smrg_ACEOF 1539bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 1540bded5d25Smrg eval "$3=yes" 1541bded5d25Smrgelse 1542bded5d25Smrg eval "$3=no" 1543bded5d25Smrgfi 1544bded5d25Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1545bded5d25Smrgfi 1546bded5d25Smrgeval ac_res=\$$3 1547bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1548bded5d25Smrg$as_echo "$ac_res" >&6; } 1549bded5d25Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550bded5d25Smrg 1551bded5d25Smrg} # ac_fn_c_check_decl 1552bded5d25Smrg 1553bded5d25Smrg# ac_fn_c_try_cpp LINENO 1554bded5d25Smrg# ---------------------- 1555bded5d25Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1556bded5d25Smrgac_fn_c_try_cpp () 1557bded5d25Smrg{ 1558bded5d25Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559bded5d25Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1560bded5d25Smrgcase "(($ac_try" in 1561bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562bded5d25Smrg *) ac_try_echo=$ac_try;; 1563bded5d25Smrgesac 1564bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 1566bded5d25Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1567bded5d25Smrg ac_status=$? 1568bded5d25Smrg if test -s conftest.err; then 1569bded5d25Smrg grep -v '^ *+' conftest.err >conftest.er1 1570bded5d25Smrg cat conftest.er1 >&5 1571bded5d25Smrg mv -f conftest.er1 conftest.err 1572bded5d25Smrg fi 1573bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574bded5d25Smrg test $ac_status = 0; } > conftest.i && { 1575bded5d25Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1576bded5d25Smrg test ! -s conftest.err 1577bded5d25Smrg }; then : 1578bded5d25Smrg ac_retval=0 1579bded5d25Smrgelse 1580bded5d25Smrg $as_echo "$as_me: failed program was:" >&5 1581bded5d25Smrgsed 's/^/| /' conftest.$ac_ext >&5 1582bded5d25Smrg 1583bded5d25Smrg ac_retval=1 1584bded5d25Smrgfi 1585bded5d25Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586bded5d25Smrg as_fn_set_status $ac_retval 1587bded5d25Smrg 1588bded5d25Smrg} # ac_fn_c_try_cpp 1589bded5d25Smrg 1590bded5d25Smrg# ac_fn_c_try_run LINENO 1591bded5d25Smrg# ---------------------- 1592bded5d25Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1593bded5d25Smrg# that executables *can* be run. 1594bded5d25Smrgac_fn_c_try_run () 1595bded5d25Smrg{ 1596bded5d25Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597bded5d25Smrg if { { ac_try="$ac_link" 1598bded5d25Smrgcase "(($ac_try" in 1599bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600bded5d25Smrg *) ac_try_echo=$ac_try;; 1601bded5d25Smrgesac 1602bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 1604bded5d25Smrg (eval "$ac_link") 2>&5 1605bded5d25Smrg ac_status=$? 1606bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607bded5d25Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1608bded5d25Smrg { { case "(($ac_try" in 1609bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610bded5d25Smrg *) ac_try_echo=$ac_try;; 1611bded5d25Smrgesac 1612bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 1614bded5d25Smrg (eval "$ac_try") 2>&5 1615bded5d25Smrg ac_status=$? 1616bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617bded5d25Smrg test $ac_status = 0; }; }; then : 1618bded5d25Smrg ac_retval=0 1619bded5d25Smrgelse 1620bded5d25Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1621bded5d25Smrg $as_echo "$as_me: failed program was:" >&5 1622bded5d25Smrgsed 's/^/| /' conftest.$ac_ext >&5 1623bded5d25Smrg 1624bded5d25Smrg ac_retval=$ac_status 1625bded5d25Smrgfi 1626bded5d25Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1627bded5d25Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628bded5d25Smrg as_fn_set_status $ac_retval 1629bded5d25Smrg 1630bded5d25Smrg} # ac_fn_c_try_run 1631bded5d25Smrg 1632bded5d25Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633bded5d25Smrg# ------------------------------------------------------- 1634bded5d25Smrg# Tests whether HEADER exists and can be compiled using the include files in 1635bded5d25Smrg# INCLUDES, setting the cache variable VAR accordingly. 1636bded5d25Smrgac_fn_c_check_header_compile () 1637bded5d25Smrg{ 1638bded5d25Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640bded5d25Smrg$as_echo_n "checking for $2... " >&6; } 1641bded5d25Smrgif eval \${$3+:} false; then : 1642bded5d25Smrg $as_echo_n "(cached) " >&6 1643bded5d25Smrgelse 1644bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645bded5d25Smrg/* end confdefs.h. */ 1646bded5d25Smrg$4 1647bded5d25Smrg#include <$2> 1648bded5d25Smrg_ACEOF 1649bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 1650bded5d25Smrg eval "$3=yes" 1651bded5d25Smrgelse 1652bded5d25Smrg eval "$3=no" 1653bded5d25Smrgfi 1654bded5d25Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1655bded5d25Smrgfi 1656bded5d25Smrgeval ac_res=\$$3 1657bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1658bded5d25Smrg$as_echo "$ac_res" >&6; } 1659bded5d25Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660bded5d25Smrg 1661bded5d25Smrg} # ac_fn_c_check_header_compile 1662bded5d25Smrgcat >config.log <<_ACEOF 1663bded5d25SmrgThis file contains any messages produced by compilers while 1664bded5d25Smrgrunning configure, to aid debugging if configure makes a mistake. 1665bded5d25Smrg 1666bded5d25SmrgIt was created by xrefresh $as_me 1.0.4, which was 1667bded5d25Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1668bded5d25Smrg 1669bded5d25Smrg $ $0 $@ 1670bded5d25Smrg 1671bded5d25Smrg_ACEOF 1672bded5d25Smrgexec 5>>config.log 1673bded5d25Smrg{ 1674bded5d25Smrgcat <<_ASUNAME 1675bded5d25Smrg## --------- ## 1676bded5d25Smrg## Platform. ## 1677bded5d25Smrg## --------- ## 1678bded5d25Smrg 1679bded5d25Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1680bded5d25Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1681bded5d25Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1682bded5d25Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1683bded5d25Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1684bded5d25Smrg 1685bded5d25Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1686bded5d25Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1687bded5d25Smrg 1688bded5d25Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1689bded5d25Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1690bded5d25Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1691bded5d25Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1692bded5d25Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1693bded5d25Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1694bded5d25Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1695bded5d25Smrg 1696bded5d25Smrg_ASUNAME 1697bded5d25Smrg 1698bded5d25Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16997da8b7e3Smrgfor as_dir in $PATH 17007da8b7e3Smrgdo 17017da8b7e3Smrg IFS=$as_save_IFS 17027da8b7e3Smrg test -z "$as_dir" && as_dir=. 1703bded5d25Smrg $as_echo "PATH: $as_dir" 1704bded5d25Smrg done 1705123e2cc7SmrgIFS=$as_save_IFS 17067da8b7e3Smrg 17077da8b7e3Smrg} >&5 17087da8b7e3Smrg 17097da8b7e3Smrgcat >&5 <<_ACEOF 17107da8b7e3Smrg 17117da8b7e3Smrg 17127da8b7e3Smrg## ----------- ## 17137da8b7e3Smrg## Core tests. ## 17147da8b7e3Smrg## ----------- ## 17157da8b7e3Smrg 17167da8b7e3Smrg_ACEOF 17177da8b7e3Smrg 17187da8b7e3Smrg 17197da8b7e3Smrg# Keep a trace of the command line. 17207da8b7e3Smrg# Strip out --no-create and --no-recursion so they do not pile up. 17217da8b7e3Smrg# Strip out --silent because we don't want to record it for future runs. 17227da8b7e3Smrg# Also quote any args containing shell meta-characters. 17237da8b7e3Smrg# Make two passes to allow for proper duplicate-argument suppression. 17247da8b7e3Smrgac_configure_args= 17257da8b7e3Smrgac_configure_args0= 17267da8b7e3Smrgac_configure_args1= 17277da8b7e3Smrgac_must_keep_next=false 17287da8b7e3Smrgfor ac_pass in 1 2 17297da8b7e3Smrgdo 17307da8b7e3Smrg for ac_arg 17317da8b7e3Smrg do 17327da8b7e3Smrg case $ac_arg in 17337da8b7e3Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 17347da8b7e3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17357da8b7e3Smrg | -silent | --silent | --silen | --sile | --sil) 17367da8b7e3Smrg continue ;; 1737123e2cc7Smrg *\'*) 1738123e2cc7Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17397da8b7e3Smrg esac 17407da8b7e3Smrg case $ac_pass in 1741bded5d25Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 17427da8b7e3Smrg 2) 1743bded5d25Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 17447da8b7e3Smrg if test $ac_must_keep_next = true; then 17457da8b7e3Smrg ac_must_keep_next=false # Got value, back to normal. 17467da8b7e3Smrg else 17477da8b7e3Smrg case $ac_arg in 17487da8b7e3Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 17497da8b7e3Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 17507da8b7e3Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 17517da8b7e3Smrg | -with-* | --with-* | -without-* | --without-* | --x) 17527da8b7e3Smrg case "$ac_configure_args0 " in 17537da8b7e3Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 17547da8b7e3Smrg esac 17557da8b7e3Smrg ;; 17567da8b7e3Smrg -* ) ac_must_keep_next=true ;; 17577da8b7e3Smrg esac 17587da8b7e3Smrg fi 1759bded5d25Smrg as_fn_append ac_configure_args " '$ac_arg'" 17607da8b7e3Smrg ;; 17617da8b7e3Smrg esac 17627da8b7e3Smrg done 17637da8b7e3Smrgdone 1764bded5d25Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1765bded5d25Smrg{ ac_configure_args1=; unset ac_configure_args1;} 17667da8b7e3Smrg 17677da8b7e3Smrg# When interrupted or exit'd, cleanup temporary files, and complete 17687da8b7e3Smrg# config.log. We remove comments because anyway the quotes in there 17697da8b7e3Smrg# would cause problems or look ugly. 1770123e2cc7Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1771123e2cc7Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 17727da8b7e3Smrgtrap 'exit_status=$? 17737da8b7e3Smrg # Save into config.log some information that might help in debugging. 17747da8b7e3Smrg { 17757da8b7e3Smrg echo 17767da8b7e3Smrg 1777bded5d25Smrg $as_echo "## ---------------- ## 17787da8b7e3Smrg## Cache variables. ## 1779bded5d25Smrg## ---------------- ##" 17807da8b7e3Smrg echo 17817da8b7e3Smrg # The following way of writing the cache mishandles newlines in values, 1782123e2cc7Smrg( 1783123e2cc7Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1784123e2cc7Smrg eval ac_val=\$$ac_var 1785123e2cc7Smrg case $ac_val in #( 1786123e2cc7Smrg *${as_nl}*) 1787123e2cc7Smrg case $ac_var in #( 1788bded5d25Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1789123e2cc7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1790123e2cc7Smrg esac 1791123e2cc7Smrg case $ac_var in #( 1792123e2cc7Smrg _ | IFS | as_nl) ;; #( 1793123e2cc7Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1794bded5d25Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1795123e2cc7Smrg esac ;; 1796123e2cc7Smrg esac 1797123e2cc7Smrg done 17987da8b7e3Smrg (set) 2>&1 | 1799123e2cc7Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1800123e2cc7Smrg *${as_nl}ac_space=\ *) 18017da8b7e3Smrg sed -n \ 1802123e2cc7Smrg "s/'\''/'\''\\\\'\'''\''/g; 1803123e2cc7Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1804123e2cc7Smrg ;; #( 18057da8b7e3Smrg *) 1806123e2cc7Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18077da8b7e3Smrg ;; 1808123e2cc7Smrg esac | 1809123e2cc7Smrg sort 1810123e2cc7Smrg) 18117da8b7e3Smrg echo 18127da8b7e3Smrg 1813bded5d25Smrg $as_echo "## ----------------- ## 18147da8b7e3Smrg## Output variables. ## 1815bded5d25Smrg## ----------------- ##" 18167da8b7e3Smrg echo 18177da8b7e3Smrg for ac_var in $ac_subst_vars 18187da8b7e3Smrg do 1819123e2cc7Smrg eval ac_val=\$$ac_var 1820123e2cc7Smrg case $ac_val in 1821123e2cc7Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1822123e2cc7Smrg esac 1823123e2cc7Smrg $as_echo "$ac_var='\''$ac_val'\''" 18247da8b7e3Smrg done | sort 18257da8b7e3Smrg echo 18267da8b7e3Smrg 18277da8b7e3Smrg if test -n "$ac_subst_files"; then 1828bded5d25Smrg $as_echo "## ------------------- ## 1829123e2cc7Smrg## File substitutions. ## 1830bded5d25Smrg## ------------------- ##" 18317da8b7e3Smrg echo 18327da8b7e3Smrg for ac_var in $ac_subst_files 18337da8b7e3Smrg do 1834123e2cc7Smrg eval ac_val=\$$ac_var 1835123e2cc7Smrg case $ac_val in 1836123e2cc7Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1837123e2cc7Smrg esac 1838123e2cc7Smrg $as_echo "$ac_var='\''$ac_val'\''" 18397da8b7e3Smrg done | sort 18407da8b7e3Smrg echo 18417da8b7e3Smrg fi 18427da8b7e3Smrg 18437da8b7e3Smrg if test -s confdefs.h; then 1844bded5d25Smrg $as_echo "## ----------- ## 18457da8b7e3Smrg## confdefs.h. ## 1846bded5d25Smrg## ----------- ##" 18477da8b7e3Smrg echo 1848123e2cc7Smrg cat confdefs.h 18497da8b7e3Smrg echo 18507da8b7e3Smrg fi 18517da8b7e3Smrg test "$ac_signal" != 0 && 1852123e2cc7Smrg $as_echo "$as_me: caught signal $ac_signal" 1853123e2cc7Smrg $as_echo "$as_me: exit $exit_status" 18547da8b7e3Smrg } >&5 1855123e2cc7Smrg rm -f core *.core core.conftest.* && 1856123e2cc7Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 18577da8b7e3Smrg exit $exit_status 1858123e2cc7Smrg' 0 18597da8b7e3Smrgfor ac_signal in 1 2 13 15; do 1860bded5d25Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 18617da8b7e3Smrgdone 18627da8b7e3Smrgac_signal=0 18637da8b7e3Smrg 18647da8b7e3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1865123e2cc7Smrgrm -f -r conftest* confdefs.h 18667da8b7e3Smrg 1867bded5d25Smrg$as_echo "/* confdefs.h */" > confdefs.h 1868bded5d25Smrg 18697da8b7e3Smrg# Predefined preprocessor variables. 18707da8b7e3Smrg 18717da8b7e3Smrgcat >>confdefs.h <<_ACEOF 18727da8b7e3Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 18737da8b7e3Smrg_ACEOF 18747da8b7e3Smrg 18757da8b7e3Smrgcat >>confdefs.h <<_ACEOF 18767da8b7e3Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 18777da8b7e3Smrg_ACEOF 18787da8b7e3Smrg 18797da8b7e3Smrgcat >>confdefs.h <<_ACEOF 18807da8b7e3Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 18817da8b7e3Smrg_ACEOF 18827da8b7e3Smrg 18837da8b7e3Smrgcat >>confdefs.h <<_ACEOF 18847da8b7e3Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 18857da8b7e3Smrg_ACEOF 18867da8b7e3Smrg 18877da8b7e3Smrgcat >>confdefs.h <<_ACEOF 18887da8b7e3Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 18897da8b7e3Smrg_ACEOF 18907da8b7e3Smrg 1891bded5d25Smrgcat >>confdefs.h <<_ACEOF 1892bded5d25Smrg#define PACKAGE_URL "$PACKAGE_URL" 1893bded5d25Smrg_ACEOF 1894bded5d25Smrg 18957da8b7e3Smrg 18967da8b7e3Smrg# Let the site file select an alternate cache file if it wants to. 1897123e2cc7Smrg# Prefer an explicitly selected file to automatically selected ones. 1898123e2cc7Smrgac_site_file1=NONE 1899123e2cc7Smrgac_site_file2=NONE 1900123e2cc7Smrgif test -n "$CONFIG_SITE"; then 1901bded5d25Smrg # We do not want a PATH search for config.site. 1902bded5d25Smrg case $CONFIG_SITE in #(( 1903bded5d25Smrg -*) ac_site_file1=./$CONFIG_SITE;; 1904bded5d25Smrg */*) ac_site_file1=$CONFIG_SITE;; 1905bded5d25Smrg *) ac_site_file1=./$CONFIG_SITE;; 1906bded5d25Smrg esac 1907123e2cc7Smrgelif test "x$prefix" != xNONE; then 1908123e2cc7Smrg ac_site_file1=$prefix/share/config.site 1909123e2cc7Smrg ac_site_file2=$prefix/etc/config.site 1910123e2cc7Smrgelse 1911123e2cc7Smrg ac_site_file1=$ac_default_prefix/share/config.site 1912123e2cc7Smrg ac_site_file2=$ac_default_prefix/etc/config.site 19137da8b7e3Smrgfi 1914123e2cc7Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1915123e2cc7Smrgdo 1916123e2cc7Smrg test "x$ac_site_file" = xNONE && continue 1917bded5d25Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1918bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1919123e2cc7Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 19207da8b7e3Smrg sed 's/^/| /' "$ac_site_file" >&5 1921bded5d25Smrg . "$ac_site_file" \ 1922bded5d25Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1923bded5d25Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1924bded5d25Smrgas_fn_error $? "failed to load site script $ac_site_file 1925bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 19267da8b7e3Smrg fi 19277da8b7e3Smrgdone 19287da8b7e3Smrg 19297da8b7e3Smrgif test -r "$cache_file"; then 1930bded5d25Smrg # Some versions of bash will fail to source /dev/null (special files 1931bded5d25Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1932bded5d25Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1933bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1934123e2cc7Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 19357da8b7e3Smrg case $cache_file in 1936123e2cc7Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1937123e2cc7Smrg *) . "./$cache_file";; 19387da8b7e3Smrg esac 19397da8b7e3Smrg fi 19407da8b7e3Smrgelse 1941bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1942123e2cc7Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 19437da8b7e3Smrg >$cache_file 19447da8b7e3Smrgfi 19457da8b7e3Smrg 19467da8b7e3Smrg# Check that the precious variables saved in the cache have kept the same 19477da8b7e3Smrg# value. 19487da8b7e3Smrgac_cache_corrupted=false 1949123e2cc7Smrgfor ac_var in $ac_precious_vars; do 19507da8b7e3Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 19517da8b7e3Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1952123e2cc7Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1953123e2cc7Smrg eval ac_new_val=\$ac_env_${ac_var}_value 19547da8b7e3Smrg case $ac_old_set,$ac_new_set in 19557da8b7e3Smrg set,) 1956bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1957123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 19587da8b7e3Smrg ac_cache_corrupted=: ;; 19597da8b7e3Smrg ,set) 1960bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1961123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 19627da8b7e3Smrg ac_cache_corrupted=: ;; 19637da8b7e3Smrg ,);; 19647da8b7e3Smrg *) 19657da8b7e3Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1966123e2cc7Smrg # differences in whitespace do not lead to failure. 1967123e2cc7Smrg ac_old_val_w=`echo x $ac_old_val` 1968123e2cc7Smrg ac_new_val_w=`echo x $ac_new_val` 1969123e2cc7Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1970bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1971123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1972123e2cc7Smrg ac_cache_corrupted=: 1973123e2cc7Smrg else 1974bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1975123e2cc7Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1976123e2cc7Smrg eval $ac_var=\$ac_old_val 1977123e2cc7Smrg fi 1978bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1979123e2cc7Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1980bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1981123e2cc7Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 19827da8b7e3Smrg fi;; 19837da8b7e3Smrg esac 19847da8b7e3Smrg # Pass precious variables to config.status. 19857da8b7e3Smrg if test "$ac_new_set" = set; then 19867da8b7e3Smrg case $ac_new_val in 1987123e2cc7Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 19887da8b7e3Smrg *) ac_arg=$ac_var=$ac_new_val ;; 19897da8b7e3Smrg esac 19907da8b7e3Smrg case " $ac_configure_args " in 19917da8b7e3Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1992bded5d25Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 19937da8b7e3Smrg esac 19947da8b7e3Smrg fi 19957da8b7e3Smrgdone 19967da8b7e3Smrgif $ac_cache_corrupted; then 1997bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1998123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1999bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2000123e2cc7Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2001bded5d25Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 20027da8b7e3Smrgfi 2003bded5d25Smrg## -------------------- ## 2004bded5d25Smrg## Main body of script. ## 2005bded5d25Smrg## -------------------- ## 20067da8b7e3Smrg 2007123e2cc7Smrgac_ext=c 2008123e2cc7Smrgac_cpp='$CPP $CPPFLAGS' 2009123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2010123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2011123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 20127da8b7e3Smrg 20137da8b7e3Smrg 2014bded5d25Smrg 2015bded5d25Smrgac_config_headers="$ac_config_headers config.h" 2016bded5d25Smrg 2017bded5d25Smrg 2018bded5d25Smrg# Initialize Automake 2019123e2cc7Smrgam__api_version='1.11' 20207da8b7e3Smrg 20217da8b7e3Smrgac_aux_dir= 2022123e2cc7Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2023123e2cc7Smrg if test -f "$ac_dir/install-sh"; then 20247da8b7e3Smrg ac_aux_dir=$ac_dir 20257da8b7e3Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 20267da8b7e3Smrg break 2027123e2cc7Smrg elif test -f "$ac_dir/install.sh"; then 20287da8b7e3Smrg ac_aux_dir=$ac_dir 20297da8b7e3Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 20307da8b7e3Smrg break 2031123e2cc7Smrg elif test -f "$ac_dir/shtool"; then 20327da8b7e3Smrg ac_aux_dir=$ac_dir 20337da8b7e3Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 20347da8b7e3Smrg break 20357da8b7e3Smrg fi 20367da8b7e3Smrgdone 20377da8b7e3Smrgif test -z "$ac_aux_dir"; then 2038bded5d25Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 20397da8b7e3Smrgfi 2040123e2cc7Smrg 2041123e2cc7Smrg# These three variables are undocumented and unsupported, 2042123e2cc7Smrg# and are intended to be withdrawn in a future Autoconf release. 2043123e2cc7Smrg# They can cause serious problems if a builder's source tree is in a directory 2044123e2cc7Smrg# whose full name contains unusual characters. 2045123e2cc7Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2046123e2cc7Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2047123e2cc7Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2048123e2cc7Smrg 20497da8b7e3Smrg 20507da8b7e3Smrg# Find a good install program. We prefer a C program (faster), 20517da8b7e3Smrg# so one script is as good as another. But avoid the broken or 20527da8b7e3Smrg# incompatible versions: 20537da8b7e3Smrg# SysV /etc/install, /usr/sbin/install 20547da8b7e3Smrg# SunOS /usr/etc/install 20557da8b7e3Smrg# IRIX /sbin/install 20567da8b7e3Smrg# AIX /bin/install 20577da8b7e3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 20587da8b7e3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 20597da8b7e3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 20607da8b7e3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 20617da8b7e3Smrg# OS/2's system install, which has a completely different semantic 20627da8b7e3Smrg# ./install, which can be erroneously created by make from ./install.sh. 2063123e2cc7Smrg# Reject install programs that cannot install multiple files. 2064bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2065123e2cc7Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 20667da8b7e3Smrgif test -z "$INSTALL"; then 2067bded5d25Smrgif ${ac_cv_path_install+:} false; then : 2068123e2cc7Smrg $as_echo_n "(cached) " >&6 20697da8b7e3Smrgelse 20707da8b7e3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20717da8b7e3Smrgfor as_dir in $PATH 20727da8b7e3Smrgdo 20737da8b7e3Smrg IFS=$as_save_IFS 20747da8b7e3Smrg test -z "$as_dir" && as_dir=. 2075bded5d25Smrg # Account for people who put trailing slashes in PATH elements. 2076bded5d25Smrgcase $as_dir/ in #(( 2077bded5d25Smrg ./ | .// | /[cC]/* | \ 20787da8b7e3Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2079bded5d25Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 20807da8b7e3Smrg /usr/ucb/* ) ;; 20817da8b7e3Smrg *) 20827da8b7e3Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 20837da8b7e3Smrg # Don't use installbsd from OSF since it installs stuff as root 20847da8b7e3Smrg # by default. 20857da8b7e3Smrg for ac_prog in ginstall scoinst install; do 20867da8b7e3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2087123e2cc7Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 20887da8b7e3Smrg if test $ac_prog = install && 20897da8b7e3Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20907da8b7e3Smrg # AIX install. It has an incompatible calling convention. 20917da8b7e3Smrg : 20927da8b7e3Smrg elif test $ac_prog = install && 20937da8b7e3Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20947da8b7e3Smrg # program-specific install script used by HP pwplus--don't use. 20957da8b7e3Smrg : 20967da8b7e3Smrg else 2097123e2cc7Smrg rm -rf conftest.one conftest.two conftest.dir 2098123e2cc7Smrg echo one > conftest.one 2099123e2cc7Smrg echo two > conftest.two 2100123e2cc7Smrg mkdir conftest.dir 2101123e2cc7Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2102123e2cc7Smrg test -s conftest.one && test -s conftest.two && 2103123e2cc7Smrg test -s conftest.dir/conftest.one && 2104123e2cc7Smrg test -s conftest.dir/conftest.two 2105123e2cc7Smrg then 2106123e2cc7Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2107123e2cc7Smrg break 3 2108123e2cc7Smrg fi 21097da8b7e3Smrg fi 21107da8b7e3Smrg fi 21117da8b7e3Smrg done 21127da8b7e3Smrg done 21137da8b7e3Smrg ;; 21147da8b7e3Smrgesac 2115123e2cc7Smrg 2116bded5d25Smrg done 2117123e2cc7SmrgIFS=$as_save_IFS 21187da8b7e3Smrg 2119123e2cc7Smrgrm -rf conftest.one conftest.two conftest.dir 21207da8b7e3Smrg 21217da8b7e3Smrgfi 21227da8b7e3Smrg if test "${ac_cv_path_install+set}" = set; then 21237da8b7e3Smrg INSTALL=$ac_cv_path_install 21247da8b7e3Smrg else 2125123e2cc7Smrg # As a last resort, use the slow shell script. Don't cache a 2126123e2cc7Smrg # value for INSTALL within a source directory, because that will 21277da8b7e3Smrg # break other packages using the cache if that directory is 2128123e2cc7Smrg # removed, or if the value is a relative name. 21297da8b7e3Smrg INSTALL=$ac_install_sh 21307da8b7e3Smrg fi 21317da8b7e3Smrgfi 2132bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2133123e2cc7Smrg$as_echo "$INSTALL" >&6; } 21347da8b7e3Smrg 21357da8b7e3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 21367da8b7e3Smrg# It thinks the first close brace ends the variable substitution. 21377da8b7e3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 21387da8b7e3Smrg 21397da8b7e3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 21407da8b7e3Smrg 21417da8b7e3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 21427da8b7e3Smrg 2143bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2144123e2cc7Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 21457da8b7e3Smrg# Just in case 21467da8b7e3Smrgsleep 1 21477da8b7e3Smrgecho timestamp > conftest.file 2148123e2cc7Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2149123e2cc7Smrg# name. Accept space and tab only in the latter. 2150123e2cc7Smrgam_lf=' 2151123e2cc7Smrg' 2152123e2cc7Smrgcase `pwd` in 2153123e2cc7Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2154bded5d25Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2155123e2cc7Smrgesac 2156123e2cc7Smrgcase $srcdir in 2157123e2cc7Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2158bded5d25Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2159123e2cc7Smrgesac 2160123e2cc7Smrg 21617da8b7e3Smrg# Do `set' in a subshell so we don't clobber the current shell's 21627da8b7e3Smrg# arguments. Must try -L first in case configure is actually a 21637da8b7e3Smrg# symlink; some systems play weird games with the mod time of symlinks 21647da8b7e3Smrg# (eg FreeBSD returns the mod time of the symlink's containing 21657da8b7e3Smrg# directory). 21667da8b7e3Smrgif ( 2167123e2cc7Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 21687da8b7e3Smrg if test "$*" = "X"; then 21697da8b7e3Smrg # -L didn't work. 2170123e2cc7Smrg set X `ls -t "$srcdir/configure" conftest.file` 21717da8b7e3Smrg fi 21727da8b7e3Smrg rm -f conftest.file 21737da8b7e3Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 21747da8b7e3Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 21757da8b7e3Smrg 21767da8b7e3Smrg # If neither matched, then we have a broken ls. This can happen 21777da8b7e3Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 21787da8b7e3Smrg # broken ls alias from the environment. This has actually 21797da8b7e3Smrg # happened. Such a system could not be considered "sane". 2180bded5d25Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2181bded5d25Smrgalias in your environment" "$LINENO" 5 21827da8b7e3Smrg fi 21837da8b7e3Smrg 21847da8b7e3Smrg test "$2" = conftest.file 21857da8b7e3Smrg ) 21867da8b7e3Smrgthen 21877da8b7e3Smrg # Ok. 21887da8b7e3Smrg : 21897da8b7e3Smrgelse 2190bded5d25Smrg as_fn_error $? "newly created file is older than distributed files! 2191bded5d25SmrgCheck your system clock" "$LINENO" 5 21927da8b7e3Smrgfi 2193bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2194123e2cc7Smrg$as_echo "yes" >&6; } 21957da8b7e3Smrgtest "$program_prefix" != NONE && 2196123e2cc7Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 21977da8b7e3Smrg# Use a double $ so make ignores it. 21987da8b7e3Smrgtest "$program_suffix" != NONE && 2199123e2cc7Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2200123e2cc7Smrg# Double any \ or $. 22017da8b7e3Smrg# By default was `s,x,x', remove it if useless. 2202123e2cc7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2203123e2cc7Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 22047da8b7e3Smrg 22057da8b7e3Smrg# expand $ac_aux_dir to an absolute path 22067da8b7e3Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 22077da8b7e3Smrg 2208123e2cc7Smrgif test x"${MISSING+set}" != xset; then 2209123e2cc7Smrg case $am_aux_dir in 2210123e2cc7Smrg *\ * | *\ *) 2211123e2cc7Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2212123e2cc7Smrg *) 2213123e2cc7Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2214123e2cc7Smrg esac 2215123e2cc7Smrgfi 22167da8b7e3Smrg# Use eval to expand $SHELL 22177da8b7e3Smrgif eval "$MISSING --run true"; then 22187da8b7e3Smrg am_missing_run="$MISSING --run " 22197da8b7e3Smrgelse 22207da8b7e3Smrg am_missing_run= 2221bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2222123e2cc7Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2223123e2cc7Smrgfi 2224123e2cc7Smrg 2225123e2cc7Smrgif test x"${install_sh}" != xset; then 2226123e2cc7Smrg case $am_aux_dir in 2227123e2cc7Smrg *\ * | *\ *) 2228123e2cc7Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2229123e2cc7Smrg *) 2230123e2cc7Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2231123e2cc7Smrg esac 2232123e2cc7Smrgfi 2233123e2cc7Smrg 2234123e2cc7Smrg# Installed binaries are usually stripped using `strip' when the user 2235123e2cc7Smrg# run `make install-strip'. However `strip' might not be the right 2236123e2cc7Smrg# tool to use in cross-compilation environments, therefore Automake 2237123e2cc7Smrg# will honor the `STRIP' environment variable to overrule this program. 2238123e2cc7Smrgif test "$cross_compiling" != no; then 2239123e2cc7Smrg if test -n "$ac_tool_prefix"; then 2240123e2cc7Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2241123e2cc7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2242bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2243123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2244bded5d25Smrgif ${ac_cv_prog_STRIP+:} false; then : 2245123e2cc7Smrg $as_echo_n "(cached) " >&6 2246123e2cc7Smrgelse 2247123e2cc7Smrg if test -n "$STRIP"; then 2248123e2cc7Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2249123e2cc7Smrgelse 2250123e2cc7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2251123e2cc7Smrgfor as_dir in $PATH 2252123e2cc7Smrgdo 2253123e2cc7Smrg IFS=$as_save_IFS 2254123e2cc7Smrg test -z "$as_dir" && as_dir=. 2255bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2256123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2257123e2cc7Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2258bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2259123e2cc7Smrg break 2 2260123e2cc7Smrg fi 2261123e2cc7Smrgdone 2262bded5d25Smrg done 2263123e2cc7SmrgIFS=$as_save_IFS 2264123e2cc7Smrg 2265123e2cc7Smrgfi 2266123e2cc7Smrgfi 2267123e2cc7SmrgSTRIP=$ac_cv_prog_STRIP 2268123e2cc7Smrgif test -n "$STRIP"; then 2269bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2270123e2cc7Smrg$as_echo "$STRIP" >&6; } 2271123e2cc7Smrgelse 2272bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2273123e2cc7Smrg$as_echo "no" >&6; } 2274123e2cc7Smrgfi 2275123e2cc7Smrg 2276123e2cc7Smrg 2277123e2cc7Smrgfi 2278123e2cc7Smrgif test -z "$ac_cv_prog_STRIP"; then 2279123e2cc7Smrg ac_ct_STRIP=$STRIP 2280123e2cc7Smrg # Extract the first word of "strip", so it can be a program name with args. 2281123e2cc7Smrgset dummy strip; ac_word=$2 2282bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2283123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2284bded5d25Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2285123e2cc7Smrg $as_echo_n "(cached) " >&6 2286123e2cc7Smrgelse 2287123e2cc7Smrg if test -n "$ac_ct_STRIP"; then 2288123e2cc7Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2289123e2cc7Smrgelse 2290123e2cc7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2291123e2cc7Smrgfor as_dir in $PATH 2292123e2cc7Smrgdo 2293123e2cc7Smrg IFS=$as_save_IFS 2294123e2cc7Smrg test -z "$as_dir" && as_dir=. 2295bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2296123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2297123e2cc7Smrg ac_cv_prog_ac_ct_STRIP="strip" 2298bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2299123e2cc7Smrg break 2 2300123e2cc7Smrg fi 2301123e2cc7Smrgdone 2302bded5d25Smrg done 2303123e2cc7SmrgIFS=$as_save_IFS 2304123e2cc7Smrg 2305123e2cc7Smrgfi 2306123e2cc7Smrgfi 2307123e2cc7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2308123e2cc7Smrgif test -n "$ac_ct_STRIP"; then 2309bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2310123e2cc7Smrg$as_echo "$ac_ct_STRIP" >&6; } 2311123e2cc7Smrgelse 2312bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2313123e2cc7Smrg$as_echo "no" >&6; } 2314123e2cc7Smrgfi 2315123e2cc7Smrg 2316123e2cc7Smrg if test "x$ac_ct_STRIP" = x; then 2317123e2cc7Smrg STRIP=":" 2318123e2cc7Smrg else 2319123e2cc7Smrg case $cross_compiling:$ac_tool_warned in 2320123e2cc7Smrgyes:) 2321bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2322123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2323123e2cc7Smrgac_tool_warned=yes ;; 2324123e2cc7Smrgesac 2325123e2cc7Smrg STRIP=$ac_ct_STRIP 2326123e2cc7Smrg fi 2327123e2cc7Smrgelse 2328123e2cc7Smrg STRIP="$ac_cv_prog_STRIP" 2329123e2cc7Smrgfi 2330123e2cc7Smrg 2331123e2cc7Smrgfi 2332123e2cc7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2333123e2cc7Smrg 2334bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2335123e2cc7Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2336123e2cc7Smrgif test -z "$MKDIR_P"; then 2337bded5d25Smrg if ${ac_cv_path_mkdir+:} false; then : 2338123e2cc7Smrg $as_echo_n "(cached) " >&6 2339123e2cc7Smrgelse 2340123e2cc7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2342123e2cc7Smrgdo 2343123e2cc7Smrg IFS=$as_save_IFS 2344123e2cc7Smrg test -z "$as_dir" && as_dir=. 2345bded5d25Smrg for ac_prog in mkdir gmkdir; do 2346123e2cc7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2347123e2cc7Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2348123e2cc7Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2349123e2cc7Smrg 'mkdir (GNU coreutils) '* | \ 2350123e2cc7Smrg 'mkdir (coreutils) '* | \ 2351123e2cc7Smrg 'mkdir (fileutils) '4.1*) 2352123e2cc7Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2353123e2cc7Smrg break 3;; 2354123e2cc7Smrg esac 2355123e2cc7Smrg done 2356123e2cc7Smrg done 2357bded5d25Smrg done 2358123e2cc7SmrgIFS=$as_save_IFS 2359123e2cc7Smrg 2360123e2cc7Smrgfi 2361123e2cc7Smrg 2362bded5d25Smrg test -d ./--version && rmdir ./--version 2363123e2cc7Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2364123e2cc7Smrg MKDIR_P="$ac_cv_path_mkdir -p" 23657da8b7e3Smrg else 2366123e2cc7Smrg # As a last resort, use the slow shell script. Don't cache a 2367123e2cc7Smrg # value for MKDIR_P within a source directory, because that will 2368123e2cc7Smrg # break other packages using the cache if that directory is 2369123e2cc7Smrg # removed, or if the value is a relative name. 2370123e2cc7Smrg MKDIR_P="$ac_install_sh -d" 23717da8b7e3Smrg fi 23727da8b7e3Smrgfi 2373bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2374123e2cc7Smrg$as_echo "$MKDIR_P" >&6; } 2375123e2cc7Smrg 2376123e2cc7Smrgmkdir_p="$MKDIR_P" 2377123e2cc7Smrgcase $mkdir_p in 2378123e2cc7Smrg [\\/$]* | ?:[\\/]*) ;; 2379123e2cc7Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2380123e2cc7Smrgesac 23817da8b7e3Smrg 23827da8b7e3Smrgfor ac_prog in gawk mawk nawk awk 23837da8b7e3Smrgdo 23847da8b7e3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 23857da8b7e3Smrgset dummy $ac_prog; ac_word=$2 2386bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2387123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2388bded5d25Smrgif ${ac_cv_prog_AWK+:} false; then : 2389123e2cc7Smrg $as_echo_n "(cached) " >&6 23907da8b7e3Smrgelse 23917da8b7e3Smrg if test -n "$AWK"; then 23927da8b7e3Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 23937da8b7e3Smrgelse 23947da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23957da8b7e3Smrgfor as_dir in $PATH 23967da8b7e3Smrgdo 23977da8b7e3Smrg IFS=$as_save_IFS 23987da8b7e3Smrg test -z "$as_dir" && as_dir=. 2399bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2400123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24017da8b7e3Smrg ac_cv_prog_AWK="$ac_prog" 2402bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24037da8b7e3Smrg break 2 24047da8b7e3Smrg fi 24057da8b7e3Smrgdone 2406bded5d25Smrg done 2407123e2cc7SmrgIFS=$as_save_IFS 24087da8b7e3Smrg 24097da8b7e3Smrgfi 24107da8b7e3Smrgfi 24117da8b7e3SmrgAWK=$ac_cv_prog_AWK 24127da8b7e3Smrgif test -n "$AWK"; then 2413bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2414123e2cc7Smrg$as_echo "$AWK" >&6; } 24157da8b7e3Smrgelse 2416bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2417123e2cc7Smrg$as_echo "no" >&6; } 24187da8b7e3Smrgfi 24197da8b7e3Smrg 2420123e2cc7Smrg 24217da8b7e3Smrg test -n "$AWK" && break 24227da8b7e3Smrgdone 24237da8b7e3Smrg 2424bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2425123e2cc7Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2426123e2cc7Smrgset x ${MAKE-make} 2427123e2cc7Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2428bded5d25Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2429123e2cc7Smrg $as_echo_n "(cached) " >&6 24307da8b7e3Smrgelse 24317da8b7e3Smrg cat >conftest.make <<\_ACEOF 2432123e2cc7SmrgSHELL = /bin/sh 24337da8b7e3Smrgall: 2434123e2cc7Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 24357da8b7e3Smrg_ACEOF 2436bded5d25Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2437123e2cc7Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2438123e2cc7Smrg *@@@%%%=?*=@@@%%%*) 2439123e2cc7Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2440123e2cc7Smrg *) 2441123e2cc7Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2442123e2cc7Smrgesac 24437da8b7e3Smrgrm -f conftest.make 24447da8b7e3Smrgfi 2445123e2cc7Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2446bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2447123e2cc7Smrg$as_echo "yes" >&6; } 24487da8b7e3Smrg SET_MAKE= 24497da8b7e3Smrgelse 2450bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2451123e2cc7Smrg$as_echo "no" >&6; } 24527da8b7e3Smrg SET_MAKE="MAKE=${MAKE-make}" 24537da8b7e3Smrgfi 24547da8b7e3Smrg 24557da8b7e3Smrgrm -rf .tst 2>/dev/null 24567da8b7e3Smrgmkdir .tst 2>/dev/null 24577da8b7e3Smrgif test -d .tst; then 24587da8b7e3Smrg am__leading_dot=. 24597da8b7e3Smrgelse 24607da8b7e3Smrg am__leading_dot=_ 24617da8b7e3Smrgfi 24627da8b7e3Smrgrmdir .tst 2>/dev/null 24637da8b7e3Smrg 2464123e2cc7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2465123e2cc7Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2466123e2cc7Smrg # is not polluted with repeated "-I." 2467123e2cc7Smrg am__isrc=' -I$(srcdir)' 2468123e2cc7Smrg # test to see if srcdir already configured 2469123e2cc7Smrg if test -f $srcdir/config.status; then 2470bded5d25Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2471123e2cc7Smrg fi 24727da8b7e3Smrgfi 24737da8b7e3Smrg 24747da8b7e3Smrg# test whether we have cygpath 24757da8b7e3Smrgif test -z "$CYGPATH_W"; then 24767da8b7e3Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 24777da8b7e3Smrg CYGPATH_W='cygpath -w' 24787da8b7e3Smrg else 24797da8b7e3Smrg CYGPATH_W=echo 24807da8b7e3Smrg fi 24817da8b7e3Smrgfi 24827da8b7e3Smrg 24837da8b7e3Smrg 24847da8b7e3Smrg# Define the identity of the package. 24857da8b7e3Smrg PACKAGE='xrefresh' 2486bded5d25Smrg VERSION='1.0.4' 24877da8b7e3Smrg 24887da8b7e3Smrg 24897da8b7e3Smrgcat >>confdefs.h <<_ACEOF 24907da8b7e3Smrg#define PACKAGE "$PACKAGE" 24917da8b7e3Smrg_ACEOF 24927da8b7e3Smrg 24937da8b7e3Smrg 24947da8b7e3Smrgcat >>confdefs.h <<_ACEOF 24957da8b7e3Smrg#define VERSION "$VERSION" 24967da8b7e3Smrg_ACEOF 24977da8b7e3Smrg 24987da8b7e3Smrg# Some tools Automake needs. 24997da8b7e3Smrg 25007da8b7e3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 25017da8b7e3Smrg 25027da8b7e3Smrg 25037da8b7e3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 25047da8b7e3Smrg 25057da8b7e3Smrg 25067da8b7e3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 25077da8b7e3Smrg 25087da8b7e3Smrg 25097da8b7e3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 25107da8b7e3Smrg 25117da8b7e3Smrg 25127da8b7e3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 25137da8b7e3Smrg 25147da8b7e3Smrg# We need awk for the "check" target. The system "awk" is bad on 25157da8b7e3Smrg# some platforms. 25167da8b7e3Smrg# Always define AMTAR for backward compatibility. 25177da8b7e3Smrg 25187da8b7e3SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 25197da8b7e3Smrg 25207da8b7e3Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 25217da8b7e3Smrg 25227da8b7e3Smrg 25237da8b7e3Smrg 25247da8b7e3Smrg 25257da8b7e3Smrg 2526123e2cc7Smrg 2527bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2528123e2cc7Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2529123e2cc7Smrg # Check whether --enable-maintainer-mode was given. 2530bded5d25Smrgif test "${enable_maintainer_mode+set}" = set; then : 2531123e2cc7Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 25327da8b7e3Smrgelse 25337da8b7e3Smrg USE_MAINTAINER_MODE=no 2534123e2cc7Smrgfi 25357da8b7e3Smrg 2536bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2537123e2cc7Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2538123e2cc7Smrg if test $USE_MAINTAINER_MODE = yes; then 25397da8b7e3Smrg MAINTAINER_MODE_TRUE= 25407da8b7e3Smrg MAINTAINER_MODE_FALSE='#' 25417da8b7e3Smrgelse 25427da8b7e3Smrg MAINTAINER_MODE_TRUE='#' 25437da8b7e3Smrg MAINTAINER_MODE_FALSE= 25447da8b7e3Smrgfi 25457da8b7e3Smrg 25467da8b7e3Smrg MAINT=$MAINTAINER_MODE_TRUE 25477da8b7e3Smrg 25487da8b7e3Smrg 25497da8b7e3Smrg 2550bded5d25Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2551bded5d25Smrg 25527da8b7e3Smrg 25537da8b7e3Smrg 2554123e2cc7Smrg 2555123e2cc7Smrg 2556123e2cc7Smrg 2557123e2cc7Smrg 2558123e2cc7Smrg 2559123e2cc7Smrg 2560123e2cc7Smrg 2561123e2cc7Smrg 2562bded5d25SmrgDEPDIR="${am__leading_dot}deps" 2563bded5d25Smrg 2564bded5d25Smrgac_config_commands="$ac_config_commands depfiles" 2565123e2cc7Smrg 2566123e2cc7Smrg 2567bded5d25Smrgam_make=${MAKE-make} 2568bded5d25Smrgcat > confinc << 'END' 2569bded5d25Smrgam__doit: 2570bded5d25Smrg @echo this is the am__doit target 2571bded5d25Smrg.PHONY: am__doit 2572bded5d25SmrgEND 2573bded5d25Smrg# If we don't find an include directive, just comment out the code. 2574bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2575bded5d25Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2576bded5d25Smrgam__include="#" 2577bded5d25Smrgam__quote= 2578bded5d25Smrg_am_result=none 2579bded5d25Smrg# First try GNU make style include. 2580bded5d25Smrgecho "include confinc" > confmf 2581bded5d25Smrg# Ignore all kinds of additional output from `make'. 2582bded5d25Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2583bded5d25Smrg*the\ am__doit\ target*) 2584bded5d25Smrg am__include=include 2585bded5d25Smrg am__quote= 2586bded5d25Smrg _am_result=GNU 2587bded5d25Smrg ;; 2588bded5d25Smrgesac 2589bded5d25Smrg# Now try BSD make style include. 2590bded5d25Smrgif test "$am__include" = "#"; then 2591bded5d25Smrg echo '.include "confinc"' > confmf 2592bded5d25Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2593bded5d25Smrg *the\ am__doit\ target*) 2594bded5d25Smrg am__include=.include 2595bded5d25Smrg am__quote="\"" 2596bded5d25Smrg _am_result=BSD 2597bded5d25Smrg ;; 2598bded5d25Smrg esac 2599bded5d25Smrgfi 2600bded5d25Smrg 2601bded5d25Smrg 2602bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2603bded5d25Smrg$as_echo "$_am_result" >&6; } 2604bded5d25Smrgrm -f confinc confmf 2605bded5d25Smrg 2606bded5d25Smrg# Check whether --enable-dependency-tracking was given. 2607bded5d25Smrgif test "${enable_dependency_tracking+set}" = set; then : 2608bded5d25Smrg enableval=$enable_dependency_tracking; 2609bded5d25Smrgfi 2610bded5d25Smrg 2611bded5d25Smrgif test "x$enable_dependency_tracking" != xno; then 2612bded5d25Smrg am_depcomp="$ac_aux_dir/depcomp" 2613bded5d25Smrg AMDEPBACKSLASH='\' 2614bded5d25Smrgfi 2615bded5d25Smrg if test "x$enable_dependency_tracking" != xno; then 2616bded5d25Smrg AMDEP_TRUE= 2617bded5d25Smrg AMDEP_FALSE='#' 2618bded5d25Smrgelse 2619bded5d25Smrg AMDEP_TRUE='#' 2620bded5d25Smrg AMDEP_FALSE= 2621bded5d25Smrgfi 2622123e2cc7Smrg 2623123e2cc7Smrg 2624123e2cc7Smrgac_ext=c 2625123e2cc7Smrgac_cpp='$CPP $CPPFLAGS' 2626123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26277da8b7e3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26287da8b7e3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 26297da8b7e3Smrgif test -n "$ac_tool_prefix"; then 26307da8b7e3Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 26317da8b7e3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2632bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2634bded5d25Smrgif ${ac_cv_prog_CC+:} false; then : 2635123e2cc7Smrg $as_echo_n "(cached) " >&6 26367da8b7e3Smrgelse 26377da8b7e3Smrg if test -n "$CC"; then 26387da8b7e3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 26397da8b7e3Smrgelse 26407da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26417da8b7e3Smrgfor as_dir in $PATH 26427da8b7e3Smrgdo 26437da8b7e3Smrg IFS=$as_save_IFS 26447da8b7e3Smrg test -z "$as_dir" && as_dir=. 2645bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2646123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26477da8b7e3Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2648bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26497da8b7e3Smrg break 2 26507da8b7e3Smrg fi 26517da8b7e3Smrgdone 2652bded5d25Smrg done 2653123e2cc7SmrgIFS=$as_save_IFS 26547da8b7e3Smrg 26557da8b7e3Smrgfi 26567da8b7e3Smrgfi 26577da8b7e3SmrgCC=$ac_cv_prog_CC 26587da8b7e3Smrgif test -n "$CC"; then 2659bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2660123e2cc7Smrg$as_echo "$CC" >&6; } 26617da8b7e3Smrgelse 2662bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663123e2cc7Smrg$as_echo "no" >&6; } 26647da8b7e3Smrgfi 26657da8b7e3Smrg 2666123e2cc7Smrg 26677da8b7e3Smrgfi 26687da8b7e3Smrgif test -z "$ac_cv_prog_CC"; then 26697da8b7e3Smrg ac_ct_CC=$CC 26707da8b7e3Smrg # Extract the first word of "gcc", so it can be a program name with args. 26717da8b7e3Smrgset dummy gcc; ac_word=$2 2672bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2673123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2674bded5d25Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2675123e2cc7Smrg $as_echo_n "(cached) " >&6 26767da8b7e3Smrgelse 26777da8b7e3Smrg if test -n "$ac_ct_CC"; then 26787da8b7e3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 26797da8b7e3Smrgelse 26807da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26817da8b7e3Smrgfor as_dir in $PATH 26827da8b7e3Smrgdo 26837da8b7e3Smrg IFS=$as_save_IFS 26847da8b7e3Smrg test -z "$as_dir" && as_dir=. 2685bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2686123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26877da8b7e3Smrg ac_cv_prog_ac_ct_CC="gcc" 2688bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26897da8b7e3Smrg break 2 26907da8b7e3Smrg fi 26917da8b7e3Smrgdone 2692bded5d25Smrg done 2693123e2cc7SmrgIFS=$as_save_IFS 26947da8b7e3Smrg 26957da8b7e3Smrgfi 26967da8b7e3Smrgfi 26977da8b7e3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 26987da8b7e3Smrgif test -n "$ac_ct_CC"; then 2699bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2700123e2cc7Smrg$as_echo "$ac_ct_CC" >&6; } 27017da8b7e3Smrgelse 2702bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703123e2cc7Smrg$as_echo "no" >&6; } 27047da8b7e3Smrgfi 27057da8b7e3Smrg 2706123e2cc7Smrg if test "x$ac_ct_CC" = x; then 2707123e2cc7Smrg CC="" 2708123e2cc7Smrg else 2709123e2cc7Smrg case $cross_compiling:$ac_tool_warned in 2710123e2cc7Smrgyes:) 2711bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2712123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2713123e2cc7Smrgac_tool_warned=yes ;; 2714123e2cc7Smrgesac 2715123e2cc7Smrg CC=$ac_ct_CC 2716123e2cc7Smrg fi 27177da8b7e3Smrgelse 27187da8b7e3Smrg CC="$ac_cv_prog_CC" 27197da8b7e3Smrgfi 27207da8b7e3Smrg 27217da8b7e3Smrgif test -z "$CC"; then 2722123e2cc7Smrg if test -n "$ac_tool_prefix"; then 2723123e2cc7Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 27247da8b7e3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2725bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2727bded5d25Smrgif ${ac_cv_prog_CC+:} false; then : 2728123e2cc7Smrg $as_echo_n "(cached) " >&6 27297da8b7e3Smrgelse 27307da8b7e3Smrg if test -n "$CC"; then 27317da8b7e3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 27327da8b7e3Smrgelse 27337da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27347da8b7e3Smrgfor as_dir in $PATH 27357da8b7e3Smrgdo 27367da8b7e3Smrg IFS=$as_save_IFS 27377da8b7e3Smrg test -z "$as_dir" && as_dir=. 2738bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2739123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27407da8b7e3Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2741bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27427da8b7e3Smrg break 2 27437da8b7e3Smrg fi 27447da8b7e3Smrgdone 2745bded5d25Smrg done 2746123e2cc7SmrgIFS=$as_save_IFS 27477da8b7e3Smrg 27487da8b7e3Smrgfi 27497da8b7e3Smrgfi 27507da8b7e3SmrgCC=$ac_cv_prog_CC 27517da8b7e3Smrgif test -n "$CC"; then 2752bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2753123e2cc7Smrg$as_echo "$CC" >&6; } 27547da8b7e3Smrgelse 2755bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756123e2cc7Smrg$as_echo "no" >&6; } 27577da8b7e3Smrgfi 27587da8b7e3Smrg 27597da8b7e3Smrg 2760123e2cc7Smrg fi 27617da8b7e3Smrgfi 27627da8b7e3Smrgif test -z "$CC"; then 27637da8b7e3Smrg # Extract the first word of "cc", so it can be a program name with args. 27647da8b7e3Smrgset dummy cc; ac_word=$2 2765bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2767bded5d25Smrgif ${ac_cv_prog_CC+:} false; then : 2768123e2cc7Smrg $as_echo_n "(cached) " >&6 27697da8b7e3Smrgelse 27707da8b7e3Smrg if test -n "$CC"; then 27717da8b7e3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 27727da8b7e3Smrgelse 27737da8b7e3Smrg ac_prog_rejected=no 27747da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27757da8b7e3Smrgfor as_dir in $PATH 27767da8b7e3Smrgdo 27777da8b7e3Smrg IFS=$as_save_IFS 27787da8b7e3Smrg test -z "$as_dir" && as_dir=. 2779bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2780123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27817da8b7e3Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 27827da8b7e3Smrg ac_prog_rejected=yes 27837da8b7e3Smrg continue 27847da8b7e3Smrg fi 27857da8b7e3Smrg ac_cv_prog_CC="cc" 2786bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27877da8b7e3Smrg break 2 27887da8b7e3Smrg fi 27897da8b7e3Smrgdone 2790bded5d25Smrg done 2791123e2cc7SmrgIFS=$as_save_IFS 27927da8b7e3Smrg 27937da8b7e3Smrgif test $ac_prog_rejected = yes; then 27947da8b7e3Smrg # We found a bogon in the path, so make sure we never use it. 27957da8b7e3Smrg set dummy $ac_cv_prog_CC 27967da8b7e3Smrg shift 27977da8b7e3Smrg if test $# != 0; then 27987da8b7e3Smrg # We chose a different compiler from the bogus one. 27997da8b7e3Smrg # However, it has the same basename, so the bogon will be chosen 28007da8b7e3Smrg # first if we set CC to just the basename; use the full file name. 28017da8b7e3Smrg shift 28027da8b7e3Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 28037da8b7e3Smrg fi 28047da8b7e3Smrgfi 28057da8b7e3Smrgfi 28067da8b7e3Smrgfi 28077da8b7e3SmrgCC=$ac_cv_prog_CC 28087da8b7e3Smrgif test -n "$CC"; then 2809bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2810123e2cc7Smrg$as_echo "$CC" >&6; } 28117da8b7e3Smrgelse 2812bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813123e2cc7Smrg$as_echo "no" >&6; } 28147da8b7e3Smrgfi 28157da8b7e3Smrg 2816123e2cc7Smrg 28177da8b7e3Smrgfi 28187da8b7e3Smrgif test -z "$CC"; then 28197da8b7e3Smrg if test -n "$ac_tool_prefix"; then 2820123e2cc7Smrg for ac_prog in cl.exe 28217da8b7e3Smrg do 28227da8b7e3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28237da8b7e3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2824bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2826bded5d25Smrgif ${ac_cv_prog_CC+:} false; then : 2827123e2cc7Smrg $as_echo_n "(cached) " >&6 28287da8b7e3Smrgelse 28297da8b7e3Smrg if test -n "$CC"; then 28307da8b7e3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28317da8b7e3Smrgelse 28327da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28337da8b7e3Smrgfor as_dir in $PATH 28347da8b7e3Smrgdo 28357da8b7e3Smrg IFS=$as_save_IFS 28367da8b7e3Smrg test -z "$as_dir" && as_dir=. 2837bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2838123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28397da8b7e3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2840bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28417da8b7e3Smrg break 2 28427da8b7e3Smrg fi 28437da8b7e3Smrgdone 2844bded5d25Smrg done 2845123e2cc7SmrgIFS=$as_save_IFS 28467da8b7e3Smrg 28477da8b7e3Smrgfi 28487da8b7e3Smrgfi 28497da8b7e3SmrgCC=$ac_cv_prog_CC 28507da8b7e3Smrgif test -n "$CC"; then 2851bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2852123e2cc7Smrg$as_echo "$CC" >&6; } 28537da8b7e3Smrgelse 2854bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855123e2cc7Smrg$as_echo "no" >&6; } 28567da8b7e3Smrgfi 28577da8b7e3Smrg 2858123e2cc7Smrg 28597da8b7e3Smrg test -n "$CC" && break 28607da8b7e3Smrg done 28617da8b7e3Smrgfi 28627da8b7e3Smrgif test -z "$CC"; then 28637da8b7e3Smrg ac_ct_CC=$CC 2864123e2cc7Smrg for ac_prog in cl.exe 28657da8b7e3Smrgdo 28667da8b7e3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 28677da8b7e3Smrgset dummy $ac_prog; ac_word=$2 2868bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2870bded5d25Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2871123e2cc7Smrg $as_echo_n "(cached) " >&6 28727da8b7e3Smrgelse 28737da8b7e3Smrg if test -n "$ac_ct_CC"; then 28747da8b7e3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28757da8b7e3Smrgelse 28767da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28777da8b7e3Smrgfor as_dir in $PATH 28787da8b7e3Smrgdo 28797da8b7e3Smrg IFS=$as_save_IFS 28807da8b7e3Smrg test -z "$as_dir" && as_dir=. 2881bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2882123e2cc7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28837da8b7e3Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2884bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28857da8b7e3Smrg break 2 28867da8b7e3Smrg fi 28877da8b7e3Smrgdone 2888bded5d25Smrg done 2889123e2cc7SmrgIFS=$as_save_IFS 28907da8b7e3Smrg 28917da8b7e3Smrgfi 28927da8b7e3Smrgfi 28937da8b7e3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28947da8b7e3Smrgif test -n "$ac_ct_CC"; then 2895bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2896123e2cc7Smrg$as_echo "$ac_ct_CC" >&6; } 28977da8b7e3Smrgelse 2898bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899123e2cc7Smrg$as_echo "no" >&6; } 29007da8b7e3Smrgfi 29017da8b7e3Smrg 2902123e2cc7Smrg 29037da8b7e3Smrg test -n "$ac_ct_CC" && break 29047da8b7e3Smrgdone 29057da8b7e3Smrg 2906123e2cc7Smrg if test "x$ac_ct_CC" = x; then 2907123e2cc7Smrg CC="" 2908123e2cc7Smrg else 2909123e2cc7Smrg case $cross_compiling:$ac_tool_warned in 2910123e2cc7Smrgyes:) 2911bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2912123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2913123e2cc7Smrgac_tool_warned=yes ;; 2914123e2cc7Smrgesac 2915123e2cc7Smrg CC=$ac_ct_CC 2916123e2cc7Smrg fi 29177da8b7e3Smrgfi 29187da8b7e3Smrg 29197da8b7e3Smrgfi 29207da8b7e3Smrg 29217da8b7e3Smrg 2922bded5d25Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2923123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2924bded5d25Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 2925bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 29267da8b7e3Smrg 29277da8b7e3Smrg# Provide some information about the compiler. 2928bded5d25Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2929123e2cc7Smrgset X $ac_compile 2930123e2cc7Smrgac_compiler=$2 2931bded5d25Smrgfor ac_option in --version -v -V -qversion; do 2932bded5d25Smrg { { ac_try="$ac_compiler $ac_option >&5" 2933123e2cc7Smrgcase "(($ac_try" in 2934123e2cc7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935123e2cc7Smrg *) ac_try_echo=$ac_try;; 2936123e2cc7Smrgesac 2937bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2938bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 2939bded5d25Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29407da8b7e3Smrg ac_status=$? 2941bded5d25Smrg if test -s conftest.err; then 2942bded5d25Smrg sed '10a\ 2943bded5d25Smrg... rest of stderr output deleted ... 2944bded5d25Smrg 10q' conftest.err >conftest.er1 2945bded5d25Smrg cat conftest.er1 >&5 2946bded5d25Smrg fi 2947bded5d25Smrg rm -f conftest.er1 conftest.err 2948bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2949bded5d25Smrg test $ac_status = 0; } 2950bded5d25Smrgdone 29517da8b7e3Smrg 2952bded5d25Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 29537da8b7e3Smrg/* end confdefs.h. */ 29547da8b7e3Smrg 29557da8b7e3Smrgint 29567da8b7e3Smrgmain () 29577da8b7e3Smrg{ 29587da8b7e3Smrg 29597da8b7e3Smrg ; 29607da8b7e3Smrg return 0; 29617da8b7e3Smrg} 29627da8b7e3Smrg_ACEOF 29637da8b7e3Smrgac_clean_files_save=$ac_clean_files 2964123e2cc7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29657da8b7e3Smrg# Try to create an executable without -o first, disregard a.out. 29667da8b7e3Smrg# It will help us diagnose broken compilers, and finding out an intuition 29677da8b7e3Smrg# of exeext. 2968bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2969bded5d25Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2970123e2cc7Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2971123e2cc7Smrg 2972123e2cc7Smrg# The possible output files: 2973123e2cc7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2974123e2cc7Smrg 2975123e2cc7Smrgac_rmfiles= 2976123e2cc7Smrgfor ac_file in $ac_files 2977123e2cc7Smrgdo 2978123e2cc7Smrg case $ac_file in 2979123e2cc7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2980123e2cc7Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2981123e2cc7Smrg esac 2982123e2cc7Smrgdone 2983123e2cc7Smrgrm -f $ac_rmfiles 2984123e2cc7Smrg 2985bded5d25Smrgif { { ac_try="$ac_link_default" 2986123e2cc7Smrgcase "(($ac_try" in 2987123e2cc7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988123e2cc7Smrg *) ac_try_echo=$ac_try;; 2989123e2cc7Smrgesac 2990bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2991bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 2992123e2cc7Smrg (eval "$ac_link_default") 2>&5 29937da8b7e3Smrg ac_status=$? 2994bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2995bded5d25Smrg test $ac_status = 0; }; then : 2996123e2cc7Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2997123e2cc7Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2998123e2cc7Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2999123e2cc7Smrg# so that the user can short-circuit this test for compilers unknown to 3000123e2cc7Smrg# Autoconf. 3001123e2cc7Smrgfor ac_file in $ac_files '' 30027da8b7e3Smrgdo 30037da8b7e3Smrg test -f "$ac_file" || continue 30047da8b7e3Smrg case $ac_file in 3005123e2cc7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 30067da8b7e3Smrg ;; 30077da8b7e3Smrg [ab].out ) 30087da8b7e3Smrg # We found the default executable, but exeext='' is most 30097da8b7e3Smrg # certainly right. 30107da8b7e3Smrg break;; 30117da8b7e3Smrg *.* ) 3012bded5d25Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3013123e2cc7Smrg then :; else 3014123e2cc7Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3015123e2cc7Smrg fi 3016123e2cc7Smrg # We set ac_cv_exeext here because the later test for it is not 3017123e2cc7Smrg # safe: cross compilers may not add the suffix if given an `-o' 3018123e2cc7Smrg # argument, so we may need to know it at that point already. 3019123e2cc7Smrg # Even if this section looks crufty: it has the advantage of 3020123e2cc7Smrg # actually working. 30217da8b7e3Smrg break;; 30227da8b7e3Smrg * ) 30237da8b7e3Smrg break;; 30247da8b7e3Smrg esac 30257da8b7e3Smrgdone 3026123e2cc7Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3027123e2cc7Smrg 30287da8b7e3Smrgelse 3029123e2cc7Smrg ac_file='' 3030123e2cc7Smrgfi 3031bded5d25Smrgif test -z "$ac_file"; then : 3032bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033bded5d25Smrg$as_echo "no" >&6; } 3034bded5d25Smrg$as_echo "$as_me: failed program was:" >&5 3035bded5d25Smrgsed 's/^/| /' conftest.$ac_ext >&5 3036123e2cc7Smrg 3037bded5d25Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3038123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3039bded5d25Smrgas_fn_error 77 "C compiler cannot create executables 3040bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 3041bded5d25Smrgelse 3042bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3043bded5d25Smrg$as_echo "yes" >&6; } 30447da8b7e3Smrgfi 3045bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3046bded5d25Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3047bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3048bded5d25Smrg$as_echo "$ac_file" >&6; } 30497da8b7e3Smrgac_exeext=$ac_cv_exeext 30507da8b7e3Smrg 3051123e2cc7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 30527da8b7e3Smrgac_clean_files=$ac_clean_files_save 3053bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3054123e2cc7Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3055bded5d25Smrgif { { ac_try="$ac_link" 3056123e2cc7Smrgcase "(($ac_try" in 3057123e2cc7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058123e2cc7Smrg *) ac_try_echo=$ac_try;; 3059123e2cc7Smrgesac 3060bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 3062123e2cc7Smrg (eval "$ac_link") 2>&5 30637da8b7e3Smrg ac_status=$? 3064bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065bded5d25Smrg test $ac_status = 0; }; then : 30667da8b7e3Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 30677da8b7e3Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 30687da8b7e3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 30697da8b7e3Smrg# `rm'. 30707da8b7e3Smrgfor ac_file in conftest.exe conftest conftest.*; do 30717da8b7e3Smrg test -f "$ac_file" || continue 30727da8b7e3Smrg case $ac_file in 3073123e2cc7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30747da8b7e3Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 30757da8b7e3Smrg break;; 30767da8b7e3Smrg * ) break;; 30777da8b7e3Smrg esac 30787da8b7e3Smrgdone 30797da8b7e3Smrgelse 3080bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082bded5d25Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3083bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 30847da8b7e3Smrgfi 3085bded5d25Smrgrm -f conftest conftest$ac_cv_exeext 3086bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3087123e2cc7Smrg$as_echo "$ac_cv_exeext" >&6; } 30887da8b7e3Smrg 30897da8b7e3Smrgrm -f conftest.$ac_ext 30907da8b7e3SmrgEXEEXT=$ac_cv_exeext 30917da8b7e3Smrgac_exeext=$EXEEXT 3092bded5d25Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3093bded5d25Smrg/* end confdefs.h. */ 3094bded5d25Smrg#include <stdio.h> 3095bded5d25Smrgint 3096bded5d25Smrgmain () 3097bded5d25Smrg{ 3098bded5d25SmrgFILE *f = fopen ("conftest.out", "w"); 3099bded5d25Smrg return ferror (f) || fclose (f) != 0; 3100bded5d25Smrg 3101bded5d25Smrg ; 3102bded5d25Smrg return 0; 3103bded5d25Smrg} 3104bded5d25Smrg_ACEOF 3105bded5d25Smrgac_clean_files="$ac_clean_files conftest.out" 3106bded5d25Smrg# Check that the compiler produces executables we can run. If not, either 3107bded5d25Smrg# the compiler is broken, or we cross compile. 3108bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3109bded5d25Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3110bded5d25Smrgif test "$cross_compiling" != yes; then 3111bded5d25Smrg { { ac_try="$ac_link" 3112bded5d25Smrgcase "(($ac_try" in 3113bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114bded5d25Smrg *) ac_try_echo=$ac_try;; 3115bded5d25Smrgesac 3116bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3117bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 3118bded5d25Smrg (eval "$ac_link") 2>&5 3119bded5d25Smrg ac_status=$? 3120bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121bded5d25Smrg test $ac_status = 0; } 3122bded5d25Smrg if { ac_try='./conftest$ac_cv_exeext' 3123bded5d25Smrg { { case "(($ac_try" in 3124bded5d25Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125bded5d25Smrg *) ac_try_echo=$ac_try;; 3126bded5d25Smrgesac 3127bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3128bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 3129bded5d25Smrg (eval "$ac_try") 2>&5 3130bded5d25Smrg ac_status=$? 3131bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3132bded5d25Smrg test $ac_status = 0; }; }; then 3133bded5d25Smrg cross_compiling=no 3134bded5d25Smrg else 3135bded5d25Smrg if test "$cross_compiling" = maybe; then 3136bded5d25Smrg cross_compiling=yes 3137bded5d25Smrg else 3138bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3139bded5d25Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140bded5d25Smrgas_fn_error $? "cannot run C compiled programs. 3141bded5d25SmrgIf you meant to cross compile, use \`--host'. 3142bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 3143bded5d25Smrg fi 3144bded5d25Smrg fi 3145bded5d25Smrgfi 3146bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3147bded5d25Smrg$as_echo "$cross_compiling" >&6; } 3148bded5d25Smrg 3149bded5d25Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3150bded5d25Smrgac_clean_files=$ac_clean_files_save 3151bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3152123e2cc7Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3153bded5d25Smrgif ${ac_cv_objext+:} false; then : 3154123e2cc7Smrg $as_echo_n "(cached) " >&6 31557da8b7e3Smrgelse 3156bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31577da8b7e3Smrg/* end confdefs.h. */ 31587da8b7e3Smrg 31597da8b7e3Smrgint 31607da8b7e3Smrgmain () 31617da8b7e3Smrg{ 31627da8b7e3Smrg 31637da8b7e3Smrg ; 31647da8b7e3Smrg return 0; 31657da8b7e3Smrg} 31667da8b7e3Smrg_ACEOF 31677da8b7e3Smrgrm -f conftest.o conftest.obj 3168bded5d25Smrgif { { ac_try="$ac_compile" 3169123e2cc7Smrgcase "(($ac_try" in 3170123e2cc7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171123e2cc7Smrg *) ac_try_echo=$ac_try;; 3172123e2cc7Smrgesac 3173bded5d25Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3174bded5d25Smrg$as_echo "$ac_try_echo"; } >&5 3175123e2cc7Smrg (eval "$ac_compile") 2>&5 31767da8b7e3Smrg ac_status=$? 3177bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3178bded5d25Smrg test $ac_status = 0; }; then : 3179123e2cc7Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3180123e2cc7Smrg test -f "$ac_file" || continue; 31817da8b7e3Smrg case $ac_file in 3182123e2cc7Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 31837da8b7e3Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 31847da8b7e3Smrg break;; 31857da8b7e3Smrg esac 31867da8b7e3Smrgdone 31877da8b7e3Smrgelse 3188123e2cc7Smrg $as_echo "$as_me: failed program was:" >&5 31897da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5 31907da8b7e3Smrg 3191bded5d25Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193bded5d25Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3194bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 31957da8b7e3Smrgfi 31967da8b7e3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 31977da8b7e3Smrgfi 3198bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3199123e2cc7Smrg$as_echo "$ac_cv_objext" >&6; } 32007da8b7e3SmrgOBJEXT=$ac_cv_objext 32017da8b7e3Smrgac_objext=$OBJEXT 3202bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3203123e2cc7Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3204bded5d25Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3205123e2cc7Smrg $as_echo_n "(cached) " >&6 32067da8b7e3Smrgelse 3207bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32087da8b7e3Smrg/* end confdefs.h. */ 32097da8b7e3Smrg 32107da8b7e3Smrgint 32117da8b7e3Smrgmain () 32127da8b7e3Smrg{ 32137da8b7e3Smrg#ifndef __GNUC__ 32147da8b7e3Smrg choke me 32157da8b7e3Smrg#endif 32167da8b7e3Smrg 32177da8b7e3Smrg ; 32187da8b7e3Smrg return 0; 32197da8b7e3Smrg} 32207da8b7e3Smrg_ACEOF 3221bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 32227da8b7e3Smrg ac_compiler_gnu=yes 32237da8b7e3Smrgelse 3224bded5d25Smrg ac_compiler_gnu=no 32257da8b7e3Smrgfi 3226123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32277da8b7e3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 32287da8b7e3Smrg 32297da8b7e3Smrgfi 3230bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3231123e2cc7Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3232123e2cc7Smrgif test $ac_compiler_gnu = yes; then 3233123e2cc7Smrg GCC=yes 3234123e2cc7Smrgelse 3235123e2cc7Smrg GCC= 3236123e2cc7Smrgfi 32377da8b7e3Smrgac_test_CFLAGS=${CFLAGS+set} 32387da8b7e3Smrgac_save_CFLAGS=$CFLAGS 3239bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3240123e2cc7Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3241bded5d25Smrgif ${ac_cv_prog_cc_g+:} false; then : 3242123e2cc7Smrg $as_echo_n "(cached) " >&6 32437da8b7e3Smrgelse 3244123e2cc7Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3245123e2cc7Smrg ac_c_werror_flag=yes 3246123e2cc7Smrg ac_cv_prog_cc_g=no 3247123e2cc7Smrg CFLAGS="-g" 3248bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32497da8b7e3Smrg/* end confdefs.h. */ 32507da8b7e3Smrg 32517da8b7e3Smrgint 32527da8b7e3Smrgmain () 32537da8b7e3Smrg{ 32547da8b7e3Smrg 32557da8b7e3Smrg ; 32567da8b7e3Smrg return 0; 32577da8b7e3Smrg} 32587da8b7e3Smrg_ACEOF 3259bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 3260123e2cc7Smrg ac_cv_prog_cc_g=yes 3261123e2cc7Smrgelse 3262bded5d25Smrg CFLAGS="" 3263bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3264123e2cc7Smrg/* end confdefs.h. */ 3265123e2cc7Smrg 3266123e2cc7Smrgint 3267123e2cc7Smrgmain () 3268123e2cc7Smrg{ 3269123e2cc7Smrg 3270123e2cc7Smrg ; 3271123e2cc7Smrg return 0; 3272123e2cc7Smrg} 3273123e2cc7Smrg_ACEOF 3274bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 3275123e2cc7Smrg 3276bded5d25Smrgelse 3277bded5d25Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3278123e2cc7Smrg CFLAGS="-g" 3279bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3280123e2cc7Smrg/* end confdefs.h. */ 3281123e2cc7Smrg 3282123e2cc7Smrgint 3283123e2cc7Smrgmain () 3284123e2cc7Smrg{ 3285123e2cc7Smrg 3286123e2cc7Smrg ; 3287123e2cc7Smrg return 0; 3288123e2cc7Smrg} 3289123e2cc7Smrg_ACEOF 3290bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 32917da8b7e3Smrg ac_cv_prog_cc_g=yes 3292123e2cc7Smrgfi 3293123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32947da8b7e3Smrgfi 3295123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296123e2cc7Smrgfi 3297123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3298123e2cc7Smrg ac_c_werror_flag=$ac_save_c_werror_flag 32997da8b7e3Smrgfi 3300bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3301123e2cc7Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 33027da8b7e3Smrgif test "$ac_test_CFLAGS" = set; then 33037da8b7e3Smrg CFLAGS=$ac_save_CFLAGS 33047da8b7e3Smrgelif test $ac_cv_prog_cc_g = yes; then 33057da8b7e3Smrg if test "$GCC" = yes; then 33067da8b7e3Smrg CFLAGS="-g -O2" 33077da8b7e3Smrg else 33087da8b7e3Smrg CFLAGS="-g" 33097da8b7e3Smrg fi 33107da8b7e3Smrgelse 33117da8b7e3Smrg if test "$GCC" = yes; then 33127da8b7e3Smrg CFLAGS="-O2" 33137da8b7e3Smrg else 33147da8b7e3Smrg CFLAGS= 33157da8b7e3Smrg fi 33167da8b7e3Smrgfi 3317bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3318123e2cc7Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3319bded5d25Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3320123e2cc7Smrg $as_echo_n "(cached) " >&6 33217da8b7e3Smrgelse 3322123e2cc7Smrg ac_cv_prog_cc_c89=no 33237da8b7e3Smrgac_save_CC=$CC 3324bded5d25Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 33257da8b7e3Smrg/* end confdefs.h. */ 33267da8b7e3Smrg#include <stdarg.h> 33277da8b7e3Smrg#include <stdio.h> 33287da8b7e3Smrg#include <sys/types.h> 33297da8b7e3Smrg#include <sys/stat.h> 33307da8b7e3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 33317da8b7e3Smrgstruct buf { int x; }; 33327da8b7e3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 33337da8b7e3Smrgstatic char *e (p, i) 33347da8b7e3Smrg char **p; 33357da8b7e3Smrg int i; 33367da8b7e3Smrg{ 33377da8b7e3Smrg return p[i]; 33387da8b7e3Smrg} 33397da8b7e3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 33407da8b7e3Smrg{ 33417da8b7e3Smrg char *s; 33427da8b7e3Smrg va_list v; 33437da8b7e3Smrg va_start (v,p); 33447da8b7e3Smrg s = g (p, va_arg (v,int)); 33457da8b7e3Smrg va_end (v); 33467da8b7e3Smrg return s; 33477da8b7e3Smrg} 33487da8b7e3Smrg 33497da8b7e3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 33507da8b7e3Smrg function prototypes and stuff, but not '\xHH' hex character constants. 33517da8b7e3Smrg These don't provoke an error unfortunately, instead are silently treated 3352123e2cc7Smrg as 'x'. The following induces an error, until -std is added to get 33537da8b7e3Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 33547da8b7e3Smrg array size at least. It's necessary to write '\x00'==0 to get something 3355123e2cc7Smrg that's true only with -std. */ 33567da8b7e3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 33577da8b7e3Smrg 3358123e2cc7Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3359123e2cc7Smrg inside strings and character constants. */ 3360123e2cc7Smrg#define FOO(x) 'x' 3361123e2cc7Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3362123e2cc7Smrg 33637da8b7e3Smrgint test (int i, double x); 33647da8b7e3Smrgstruct s1 {int (*f) (int a);}; 33657da8b7e3Smrgstruct s2 {int (*f) (double a);}; 33667da8b7e3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 33677da8b7e3Smrgint argc; 33687da8b7e3Smrgchar **argv; 33697da8b7e3Smrgint 33707da8b7e3Smrgmain () 33717da8b7e3Smrg{ 33727da8b7e3Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 33737da8b7e3Smrg ; 33747da8b7e3Smrg return 0; 33757da8b7e3Smrg} 33767da8b7e3Smrg_ACEOF 3377123e2cc7Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3378123e2cc7Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 33797da8b7e3Smrgdo 33807da8b7e3Smrg CC="$ac_save_CC $ac_arg" 3381bded5d25Smrg if ac_fn_c_try_compile "$LINENO"; then : 3382123e2cc7Smrg ac_cv_prog_cc_c89=$ac_arg 33837da8b7e3Smrgfi 3384123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext 3385123e2cc7Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 33867da8b7e3Smrgdone 3387123e2cc7Smrgrm -f conftest.$ac_ext 33887da8b7e3SmrgCC=$ac_save_CC 33897da8b7e3Smrg 33907da8b7e3Smrgfi 3391123e2cc7Smrg# AC_CACHE_VAL 3392123e2cc7Smrgcase "x$ac_cv_prog_cc_c89" in 3393123e2cc7Smrg x) 3394bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3395123e2cc7Smrg$as_echo "none needed" >&6; } ;; 3396123e2cc7Smrg xno) 3397bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3398123e2cc7Smrg$as_echo "unsupported" >&6; } ;; 33997da8b7e3Smrg *) 3400123e2cc7Smrg CC="$CC $ac_cv_prog_cc_c89" 3401bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3402123e2cc7Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34037da8b7e3Smrgesac 3404bded5d25Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 34057da8b7e3Smrg 3406bded5d25Smrgfi 34077da8b7e3Smrg 34087da8b7e3Smrgac_ext=c 34097da8b7e3Smrgac_cpp='$CPP $CPPFLAGS' 34107da8b7e3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34117da8b7e3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34127da8b7e3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 34137da8b7e3Smrg 34147da8b7e3Smrgdepcc="$CC" am_compiler_list= 34157da8b7e3Smrg 3416bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3417123e2cc7Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3418bded5d25Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3419123e2cc7Smrg $as_echo_n "(cached) " >&6 34207da8b7e3Smrgelse 34217da8b7e3Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 34227da8b7e3Smrg # We make a subdir and do the tests there. Otherwise we can end up 34237da8b7e3Smrg # making bogus files that we don't know about and never remove. For 34247da8b7e3Smrg # instance it was reported that on HP-UX the gcc test will end up 34257da8b7e3Smrg # making a dummy file named `D' -- because `-MD' means `put the output 34267da8b7e3Smrg # in D'. 34277da8b7e3Smrg mkdir conftest.dir 34287da8b7e3Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 34297da8b7e3Smrg # using a relative directory. 34307da8b7e3Smrg cp "$am_depcomp" conftest.dir 34317da8b7e3Smrg cd conftest.dir 34327da8b7e3Smrg # We will build objects and dependencies in a subdirectory because 34337da8b7e3Smrg # it helps to detect inapplicable dependency modes. For instance 34347da8b7e3Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 34357da8b7e3Smrg # side effect of compilation, but ICC will put the dependencies in 34367da8b7e3Smrg # the current directory while Tru64 will put them in the object 34377da8b7e3Smrg # directory. 34387da8b7e3Smrg mkdir sub 34397da8b7e3Smrg 34407da8b7e3Smrg am_cv_CC_dependencies_compiler_type=none 34417da8b7e3Smrg if test "$am_compiler_list" = ""; then 34427da8b7e3Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 34437da8b7e3Smrg fi 3444123e2cc7Smrg am__universal=false 3445123e2cc7Smrg case " $depcc " in #( 3446123e2cc7Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3447123e2cc7Smrg esac 3448123e2cc7Smrg 34497da8b7e3Smrg for depmode in $am_compiler_list; do 34507da8b7e3Smrg # Setup a source with many dependencies, because some compilers 34517da8b7e3Smrg # like to wrap large dependency lists on column 80 (with \), and 34527da8b7e3Smrg # we should not choose a depcomp mode which is confused by this. 34537da8b7e3Smrg # 34547da8b7e3Smrg # We need to recreate these files for each test, as the compiler may 34557da8b7e3Smrg # overwrite some of them when testing with obscure command lines. 34567da8b7e3Smrg # This happens at least with the AIX C compiler. 34577da8b7e3Smrg : > sub/conftest.c 34587da8b7e3Smrg for i in 1 2 3 4 5 6; do 34597da8b7e3Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 34607da8b7e3Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 34617da8b7e3Smrg # Solaris 8's {/usr,}/bin/sh. 34627da8b7e3Smrg touch sub/conftst$i.h 34637da8b7e3Smrg done 34647da8b7e3Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 34657da8b7e3Smrg 3466123e2cc7Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3467123e2cc7Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3468123e2cc7Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3469123e2cc7Smrg # versions had trouble with output in subdirs 3470123e2cc7Smrg am__obj=sub/conftest.${OBJEXT-o} 3471123e2cc7Smrg am__minus_obj="-o $am__obj" 34727da8b7e3Smrg case $depmode in 3473123e2cc7Smrg gcc) 3474123e2cc7Smrg # This depmode causes a compiler race in universal mode. 3475123e2cc7Smrg test "$am__universal" = false || continue 3476123e2cc7Smrg ;; 34777da8b7e3Smrg nosideeffect) 34787da8b7e3Smrg # after this tag, mechanisms are not by side-effect, so they'll 34797da8b7e3Smrg # only be used when explicitly requested 34807da8b7e3Smrg if test "x$enable_dependency_tracking" = xyes; then 34817da8b7e3Smrg continue 34827da8b7e3Smrg else 34837da8b7e3Smrg break 34847da8b7e3Smrg fi 34857da8b7e3Smrg ;; 3486123e2cc7Smrg msvisualcpp | msvcmsys) 3487123e2cc7Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3488123e2cc7Smrg # not run yet. These depmodes are late enough in the game, and 3489123e2cc7Smrg # so weak that their functioning should not be impacted. 3490123e2cc7Smrg am__obj=conftest.${OBJEXT-o} 3491123e2cc7Smrg am__minus_obj= 3492123e2cc7Smrg ;; 34937da8b7e3Smrg none) break ;; 34947da8b7e3Smrg esac 34957da8b7e3Smrg if depmode=$depmode \ 3496123e2cc7Smrg source=sub/conftest.c object=$am__obj \ 34977da8b7e3Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3498123e2cc7Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 34997da8b7e3Smrg >/dev/null 2>conftest.err && 3500123e2cc7Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 35017da8b7e3Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3502123e2cc7Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 35037da8b7e3Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 35047da8b7e3Smrg # icc doesn't choke on unknown options, it will just issue warnings 35057da8b7e3Smrg # or remarks (even with -Werror). So we grep stderr for any message 35067da8b7e3Smrg # that says an option was ignored or not supported. 35077da8b7e3Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 35087da8b7e3Smrg # icc: Command line warning: ignoring option '-M'; no argument required 35097da8b7e3Smrg # The diagnosis changed in icc 8.0: 35107da8b7e3Smrg # icc: Command line remark: option '-MP' not supported 35117da8b7e3Smrg if (grep 'ignoring option' conftest.err || 35127da8b7e3Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 35137da8b7e3Smrg am_cv_CC_dependencies_compiler_type=$depmode 35147da8b7e3Smrg break 35157da8b7e3Smrg fi 35167da8b7e3Smrg fi 35177da8b7e3Smrg done 35187da8b7e3Smrg 35197da8b7e3Smrg cd .. 35207da8b7e3Smrg rm -rf conftest.dir 35217da8b7e3Smrgelse 35227da8b7e3Smrg am_cv_CC_dependencies_compiler_type=none 35237da8b7e3Smrgfi 35247da8b7e3Smrg 35257da8b7e3Smrgfi 3526bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3527123e2cc7Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 35287da8b7e3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 35297da8b7e3Smrg 3530123e2cc7Smrg if 35317da8b7e3Smrg test "x$enable_dependency_tracking" != xno \ 35327da8b7e3Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 35337da8b7e3Smrg am__fastdepCC_TRUE= 35347da8b7e3Smrg am__fastdepCC_FALSE='#' 35357da8b7e3Smrgelse 35367da8b7e3Smrg am__fastdepCC_TRUE='#' 35377da8b7e3Smrg am__fastdepCC_FALSE= 35387da8b7e3Smrgfi 35397da8b7e3Smrg 35407da8b7e3Smrg 3541bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3542bded5d25Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3543bded5d25Smrgif ${ac_cv_prog_cc_c99+:} false; then : 3544123e2cc7Smrg $as_echo_n "(cached) " >&6 35457da8b7e3Smrgelse 3546bded5d25Smrg ac_cv_prog_cc_c99=no 3547bded5d25Smrgac_save_CC=$CC 3548bded5d25Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549bded5d25Smrg/* end confdefs.h. */ 3550bded5d25Smrg#include <stdarg.h> 3551bded5d25Smrg#include <stdbool.h> 3552bded5d25Smrg#include <stdlib.h> 3553bded5d25Smrg#include <wchar.h> 3554bded5d25Smrg#include <stdio.h> 3555123e2cc7Smrg 3556bded5d25Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3557bded5d25Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3558bded5d25Smrg#define showlist(...) puts (#__VA_ARGS__) 3559bded5d25Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3560bded5d25Smrgstatic void 3561bded5d25Smrgtest_varargs_macros (void) 3562bded5d25Smrg{ 3563bded5d25Smrg int x = 1234; 3564bded5d25Smrg int y = 5678; 3565bded5d25Smrg debug ("Flag"); 3566bded5d25Smrg debug ("X = %d\n", x); 3567bded5d25Smrg showlist (The first, second, and third items.); 3568bded5d25Smrg report (x>y, "x is %d but y is %d", x, y); 3569bded5d25Smrg} 35707da8b7e3Smrg 3571bded5d25Smrg// Check long long types. 3572bded5d25Smrg#define BIG64 18446744073709551615ull 3573bded5d25Smrg#define BIG32 4294967295ul 3574bded5d25Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3575bded5d25Smrg#if !BIG_OK 3576bded5d25Smrg your preprocessor is broken; 3577bded5d25Smrg#endif 3578bded5d25Smrg#if BIG_OK 3579bded5d25Smrg#else 3580bded5d25Smrg your preprocessor is broken; 3581bded5d25Smrg#endif 3582bded5d25Smrgstatic long long int bignum = -9223372036854775807LL; 3583bded5d25Smrgstatic unsigned long long int ubignum = BIG64; 35847da8b7e3Smrg 3585bded5d25Smrgstruct incomplete_array 3586bded5d25Smrg{ 3587bded5d25Smrg int datasize; 3588bded5d25Smrg double data[]; 3589bded5d25Smrg}; 35907da8b7e3Smrg 3591bded5d25Smrgstruct named_init { 3592bded5d25Smrg int number; 3593bded5d25Smrg const wchar_t *name; 3594bded5d25Smrg double average; 3595bded5d25Smrg}; 35967da8b7e3Smrg 3597bded5d25Smrgtypedef const char *ccp; 35987da8b7e3Smrg 3599bded5d25Smrgstatic inline int 3600bded5d25Smrgtest_restrict (ccp restrict text) 3601bded5d25Smrg{ 3602bded5d25Smrg // See if C++-style comments work. 3603bded5d25Smrg // Iterate through items via the restricted pointer. 3604bded5d25Smrg // Also check for declarations in for loops. 3605bded5d25Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3606bded5d25Smrg continue; 3607bded5d25Smrg return 0; 3608bded5d25Smrg} 3609bded5d25Smrg 3610bded5d25Smrg// Check varargs and va_copy. 3611bded5d25Smrgstatic void 3612bded5d25Smrgtest_varargs (const char *format, ...) 3613bded5d25Smrg{ 3614bded5d25Smrg va_list args; 3615bded5d25Smrg va_start (args, format); 3616bded5d25Smrg va_list args_copy; 3617bded5d25Smrg va_copy (args_copy, args); 3618bded5d25Smrg 3619bded5d25Smrg const char *str; 3620bded5d25Smrg int number; 3621bded5d25Smrg float fnumber; 3622bded5d25Smrg 3623bded5d25Smrg while (*format) 3624bded5d25Smrg { 3625bded5d25Smrg switch (*format++) 3626bded5d25Smrg { 3627bded5d25Smrg case 's': // string 3628bded5d25Smrg str = va_arg (args_copy, const char *); 3629bded5d25Smrg break; 3630bded5d25Smrg case 'd': // int 3631bded5d25Smrg number = va_arg (args_copy, int); 3632bded5d25Smrg break; 3633bded5d25Smrg case 'f': // float 3634bded5d25Smrg fnumber = va_arg (args_copy, double); 3635bded5d25Smrg break; 3636bded5d25Smrg default: 3637bded5d25Smrg break; 3638bded5d25Smrg } 3639bded5d25Smrg } 3640bded5d25Smrg va_end (args_copy); 3641bded5d25Smrg va_end (args); 3642bded5d25Smrg} 3643bded5d25Smrg 3644bded5d25Smrgint 3645bded5d25Smrgmain () 3646bded5d25Smrg{ 3647bded5d25Smrg 3648bded5d25Smrg // Check bool. 3649bded5d25Smrg _Bool success = false; 3650bded5d25Smrg 3651bded5d25Smrg // Check restrict. 3652bded5d25Smrg if (test_restrict ("String literal") == 0) 3653bded5d25Smrg success = true; 3654bded5d25Smrg char *restrict newvar = "Another string"; 3655bded5d25Smrg 3656bded5d25Smrg // Check varargs. 3657bded5d25Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 3658bded5d25Smrg test_varargs_macros (); 3659bded5d25Smrg 3660bded5d25Smrg // Check flexible array members. 3661bded5d25Smrg struct incomplete_array *ia = 3662bded5d25Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3663bded5d25Smrg ia->datasize = 10; 3664bded5d25Smrg for (int i = 0; i < ia->datasize; ++i) 3665bded5d25Smrg ia->data[i] = i * 1.234; 3666bded5d25Smrg 3667bded5d25Smrg // Check named initializers. 3668bded5d25Smrg struct named_init ni = { 3669bded5d25Smrg .number = 34, 3670bded5d25Smrg .name = L"Test wide string", 3671bded5d25Smrg .average = 543.34343, 3672bded5d25Smrg }; 3673bded5d25Smrg 3674bded5d25Smrg ni.number = 58; 3675bded5d25Smrg 3676bded5d25Smrg int dynamic_array[ni.number]; 3677bded5d25Smrg dynamic_array[ni.number - 1] = 543; 3678bded5d25Smrg 3679bded5d25Smrg // work around unused variable warnings 3680bded5d25Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3681bded5d25Smrg || dynamic_array[ni.number - 1] != 543); 3682bded5d25Smrg 3683bded5d25Smrg ; 3684bded5d25Smrg return 0; 3685bded5d25Smrg} 3686bded5d25Smrg_ACEOF 3687bded5d25Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3688bded5d25Smrgdo 3689bded5d25Smrg CC="$ac_save_CC $ac_arg" 3690bded5d25Smrg if ac_fn_c_try_compile "$LINENO"; then : 3691bded5d25Smrg ac_cv_prog_cc_c99=$ac_arg 3692bded5d25Smrgfi 3693bded5d25Smrgrm -f core conftest.err conftest.$ac_objext 3694bded5d25Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3695bded5d25Smrgdone 3696bded5d25Smrgrm -f conftest.$ac_ext 3697bded5d25SmrgCC=$ac_save_CC 3698bded5d25Smrg 3699bded5d25Smrgfi 3700bded5d25Smrg# AC_CACHE_VAL 3701bded5d25Smrgcase "x$ac_cv_prog_cc_c99" in 3702bded5d25Smrg x) 3703bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3704bded5d25Smrg$as_echo "none needed" >&6; } ;; 3705bded5d25Smrg xno) 3706bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3707bded5d25Smrg$as_echo "unsupported" >&6; } ;; 3708bded5d25Smrg *) 3709bded5d25Smrg CC="$CC $ac_cv_prog_cc_c99" 3710bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3711bded5d25Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3712bded5d25Smrgesac 3713bded5d25Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3714bded5d25Smrg 3715bded5d25Smrgfi 37167da8b7e3Smrg 37177da8b7e3Smrg 37187da8b7e3Smrg 3719123e2cc7Smrgac_ext=c 3720123e2cc7Smrgac_cpp='$CPP $CPPFLAGS' 3721123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3722123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3723123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3724bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3725123e2cc7Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3726123e2cc7Smrg# On Suns, sometimes $CPP names a directory. 3727123e2cc7Smrgif test -n "$CPP" && test -d "$CPP"; then 3728123e2cc7Smrg CPP= 3729123e2cc7Smrgfi 3730123e2cc7Smrgif test -z "$CPP"; then 3731bded5d25Smrg if ${ac_cv_prog_CPP+:} false; then : 3732123e2cc7Smrg $as_echo_n "(cached) " >&6 3733123e2cc7Smrgelse 3734123e2cc7Smrg # Double quotes because CPP needs to be expanded 3735123e2cc7Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3736123e2cc7Smrg do 3737123e2cc7Smrg ac_preproc_ok=false 3738123e2cc7Smrgfor ac_c_preproc_warn_flag in '' yes 3739123e2cc7Smrgdo 3740123e2cc7Smrg # Use a header file that comes with gcc, so configuring glibc 3741123e2cc7Smrg # with a fresh cross-compiler works. 3742123e2cc7Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3743123e2cc7Smrg # <limits.h> exists even on freestanding compilers. 3744123e2cc7Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3745123e2cc7Smrg # not just through cpp. "Syntax error" is here to catch this case. 3746bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747123e2cc7Smrg/* end confdefs.h. */ 3748123e2cc7Smrg#ifdef __STDC__ 3749123e2cc7Smrg# include <limits.h> 3750123e2cc7Smrg#else 3751123e2cc7Smrg# include <assert.h> 3752123e2cc7Smrg#endif 3753123e2cc7Smrg Syntax error 3754123e2cc7Smrg_ACEOF 3755bded5d25Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3756123e2cc7Smrg 3757bded5d25Smrgelse 3758123e2cc7Smrg # Broken: fails on valid input. 3759123e2cc7Smrgcontinue 3760123e2cc7Smrgfi 3761bded5d25Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3762123e2cc7Smrg 3763123e2cc7Smrg # OK, works on sane cases. Now check whether nonexistent headers 3764123e2cc7Smrg # can be detected and how. 3765bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766123e2cc7Smrg/* end confdefs.h. */ 3767123e2cc7Smrg#include <ac_nonexistent.h> 3768123e2cc7Smrg_ACEOF 3769bded5d25Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3770123e2cc7Smrg # Broken: success on invalid input. 3771123e2cc7Smrgcontinue 3772123e2cc7Smrgelse 3773123e2cc7Smrg # Passes both tests. 3774123e2cc7Smrgac_preproc_ok=: 3775123e2cc7Smrgbreak 3776123e2cc7Smrgfi 3777bded5d25Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3778123e2cc7Smrg 3779123e2cc7Smrgdone 3780123e2cc7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3781bded5d25Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3782bded5d25Smrgif $ac_preproc_ok; then : 3783123e2cc7Smrg break 3784123e2cc7Smrgfi 3785123e2cc7Smrg 3786123e2cc7Smrg done 3787123e2cc7Smrg ac_cv_prog_CPP=$CPP 3788123e2cc7Smrg 3789123e2cc7Smrgfi 3790123e2cc7Smrg CPP=$ac_cv_prog_CPP 3791123e2cc7Smrgelse 3792123e2cc7Smrg ac_cv_prog_CPP=$CPP 3793123e2cc7Smrgfi 3794bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3795123e2cc7Smrg$as_echo "$CPP" >&6; } 3796123e2cc7Smrgac_preproc_ok=false 3797123e2cc7Smrgfor ac_c_preproc_warn_flag in '' yes 3798123e2cc7Smrgdo 3799123e2cc7Smrg # Use a header file that comes with gcc, so configuring glibc 3800123e2cc7Smrg # with a fresh cross-compiler works. 3801123e2cc7Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3802123e2cc7Smrg # <limits.h> exists even on freestanding compilers. 3803123e2cc7Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3804123e2cc7Smrg # not just through cpp. "Syntax error" is here to catch this case. 3805bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806123e2cc7Smrg/* end confdefs.h. */ 3807123e2cc7Smrg#ifdef __STDC__ 3808123e2cc7Smrg# include <limits.h> 3809123e2cc7Smrg#else 3810123e2cc7Smrg# include <assert.h> 3811123e2cc7Smrg#endif 3812123e2cc7Smrg Syntax error 3813123e2cc7Smrg_ACEOF 3814bded5d25Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3815123e2cc7Smrg 3816bded5d25Smrgelse 3817123e2cc7Smrg # Broken: fails on valid input. 3818123e2cc7Smrgcontinue 3819123e2cc7Smrgfi 3820bded5d25Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3821123e2cc7Smrg 3822123e2cc7Smrg # OK, works on sane cases. Now check whether nonexistent headers 3823123e2cc7Smrg # can be detected and how. 3824bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825123e2cc7Smrg/* end confdefs.h. */ 3826123e2cc7Smrg#include <ac_nonexistent.h> 3827123e2cc7Smrg_ACEOF 3828bded5d25Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3829123e2cc7Smrg # Broken: success on invalid input. 3830123e2cc7Smrgcontinue 3831123e2cc7Smrgelse 3832123e2cc7Smrg # Passes both tests. 3833123e2cc7Smrgac_preproc_ok=: 3834123e2cc7Smrgbreak 3835123e2cc7Smrgfi 3836bded5d25Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3837123e2cc7Smrg 3838123e2cc7Smrgdone 3839123e2cc7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3840bded5d25Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3841bded5d25Smrgif $ac_preproc_ok; then : 3842bded5d25Smrg 3843123e2cc7Smrgelse 3844bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3845123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3846bded5d25Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3847bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 3848123e2cc7Smrgfi 3849123e2cc7Smrg 3850123e2cc7Smrgac_ext=c 3851123e2cc7Smrgac_cpp='$CPP $CPPFLAGS' 3852123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3853123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3854123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3855123e2cc7Smrg 3856123e2cc7Smrg 3857bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3858123e2cc7Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3859bded5d25Smrgif ${ac_cv_path_GREP+:} false; then : 3860123e2cc7Smrg $as_echo_n "(cached) " >&6 3861123e2cc7Smrgelse 3862123e2cc7Smrg if test -z "$GREP"; then 3863123e2cc7Smrg ac_path_GREP_found=false 3864123e2cc7Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3865123e2cc7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3867123e2cc7Smrgdo 3868123e2cc7Smrg IFS=$as_save_IFS 3869123e2cc7Smrg test -z "$as_dir" && as_dir=. 3870bded5d25Smrg for ac_prog in grep ggrep; do 3871123e2cc7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3872123e2cc7Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3873123e2cc7Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3874123e2cc7Smrg# Check for GNU ac_path_GREP and select it if it is found. 3875123e2cc7Smrg # Check for GNU $ac_path_GREP 3876123e2cc7Smrgcase `"$ac_path_GREP" --version 2>&1` in 3877123e2cc7Smrg*GNU*) 3878123e2cc7Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3879123e2cc7Smrg*) 3880123e2cc7Smrg ac_count=0 3881123e2cc7Smrg $as_echo_n 0123456789 >"conftest.in" 3882123e2cc7Smrg while : 3883123e2cc7Smrg do 3884123e2cc7Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3885123e2cc7Smrg mv "conftest.tmp" "conftest.in" 3886123e2cc7Smrg cp "conftest.in" "conftest.nl" 3887123e2cc7Smrg $as_echo 'GREP' >> "conftest.nl" 3888123e2cc7Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3889123e2cc7Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3890bded5d25Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3891123e2cc7Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3892123e2cc7Smrg # Best one so far, save it but keep looking for a better one 3893123e2cc7Smrg ac_cv_path_GREP="$ac_path_GREP" 3894123e2cc7Smrg ac_path_GREP_max=$ac_count 3895123e2cc7Smrg fi 3896123e2cc7Smrg # 10*(2^10) chars as input seems more than enough 3897123e2cc7Smrg test $ac_count -gt 10 && break 3898123e2cc7Smrg done 3899123e2cc7Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3900123e2cc7Smrgesac 3901123e2cc7Smrg 3902123e2cc7Smrg $ac_path_GREP_found && break 3 3903123e2cc7Smrg done 3904123e2cc7Smrg done 3905bded5d25Smrg done 3906123e2cc7SmrgIFS=$as_save_IFS 3907123e2cc7Smrg if test -z "$ac_cv_path_GREP"; then 3908bded5d25Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3909123e2cc7Smrg fi 3910123e2cc7Smrgelse 3911123e2cc7Smrg ac_cv_path_GREP=$GREP 3912123e2cc7Smrgfi 3913123e2cc7Smrg 3914123e2cc7Smrgfi 3915bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3916123e2cc7Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3917123e2cc7Smrg GREP="$ac_cv_path_GREP" 3918123e2cc7Smrg 3919123e2cc7Smrg 3920bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3921123e2cc7Smrg$as_echo_n "checking for egrep... " >&6; } 3922bded5d25Smrgif ${ac_cv_path_EGREP+:} false; then : 3923123e2cc7Smrg $as_echo_n "(cached) " >&6 3924123e2cc7Smrgelse 3925123e2cc7Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3926123e2cc7Smrg then ac_cv_path_EGREP="$GREP -E" 3927123e2cc7Smrg else 3928123e2cc7Smrg if test -z "$EGREP"; then 3929123e2cc7Smrg ac_path_EGREP_found=false 3930123e2cc7Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3931123e2cc7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3933123e2cc7Smrgdo 3934123e2cc7Smrg IFS=$as_save_IFS 3935123e2cc7Smrg test -z "$as_dir" && as_dir=. 3936bded5d25Smrg for ac_prog in egrep; do 3937123e2cc7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3938123e2cc7Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3939123e2cc7Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3940123e2cc7Smrg# Check for GNU ac_path_EGREP and select it if it is found. 3941123e2cc7Smrg # Check for GNU $ac_path_EGREP 3942123e2cc7Smrgcase `"$ac_path_EGREP" --version 2>&1` in 3943123e2cc7Smrg*GNU*) 3944123e2cc7Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3945123e2cc7Smrg*) 3946123e2cc7Smrg ac_count=0 3947123e2cc7Smrg $as_echo_n 0123456789 >"conftest.in" 3948123e2cc7Smrg while : 3949123e2cc7Smrg do 3950123e2cc7Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3951123e2cc7Smrg mv "conftest.tmp" "conftest.in" 3952123e2cc7Smrg cp "conftest.in" "conftest.nl" 3953123e2cc7Smrg $as_echo 'EGREP' >> "conftest.nl" 3954123e2cc7Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3955123e2cc7Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3956bded5d25Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3957123e2cc7Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3958123e2cc7Smrg # Best one so far, save it but keep looking for a better one 3959123e2cc7Smrg ac_cv_path_EGREP="$ac_path_EGREP" 3960123e2cc7Smrg ac_path_EGREP_max=$ac_count 3961123e2cc7Smrg fi 3962123e2cc7Smrg # 10*(2^10) chars as input seems more than enough 3963123e2cc7Smrg test $ac_count -gt 10 && break 3964123e2cc7Smrg done 3965123e2cc7Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3966123e2cc7Smrgesac 3967123e2cc7Smrg 3968123e2cc7Smrg $ac_path_EGREP_found && break 3 3969123e2cc7Smrg done 3970123e2cc7Smrg done 3971bded5d25Smrg done 3972123e2cc7SmrgIFS=$as_save_IFS 3973123e2cc7Smrg if test -z "$ac_cv_path_EGREP"; then 3974bded5d25Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3975123e2cc7Smrg fi 3976123e2cc7Smrgelse 3977123e2cc7Smrg ac_cv_path_EGREP=$EGREP 3978123e2cc7Smrgfi 3979123e2cc7Smrg 3980123e2cc7Smrg fi 3981123e2cc7Smrgfi 3982bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3983123e2cc7Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 3984123e2cc7Smrg EGREP="$ac_cv_path_EGREP" 3985123e2cc7Smrg 3986123e2cc7Smrg 3987bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3988123e2cc7Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 3989bded5d25Smrgif ${ac_cv_header_stdc+:} false; then : 3990123e2cc7Smrg $as_echo_n "(cached) " >&6 3991123e2cc7Smrgelse 3992bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993123e2cc7Smrg/* end confdefs.h. */ 3994123e2cc7Smrg#include <stdlib.h> 3995123e2cc7Smrg#include <stdarg.h> 3996123e2cc7Smrg#include <string.h> 3997123e2cc7Smrg#include <float.h> 3998123e2cc7Smrg 3999123e2cc7Smrgint 4000123e2cc7Smrgmain () 4001123e2cc7Smrg{ 4002123e2cc7Smrg 4003123e2cc7Smrg ; 4004123e2cc7Smrg return 0; 4005123e2cc7Smrg} 4006123e2cc7Smrg_ACEOF 4007bded5d25Smrgif ac_fn_c_try_compile "$LINENO"; then : 4008123e2cc7Smrg ac_cv_header_stdc=yes 4009123e2cc7Smrgelse 4010bded5d25Smrg ac_cv_header_stdc=no 4011123e2cc7Smrgfi 4012123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013123e2cc7Smrg 4014123e2cc7Smrgif test $ac_cv_header_stdc = yes; then 4015123e2cc7Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4016bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017123e2cc7Smrg/* end confdefs.h. */ 4018123e2cc7Smrg#include <string.h> 4019123e2cc7Smrg 4020123e2cc7Smrg_ACEOF 4021123e2cc7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4022bded5d25Smrg $EGREP "memchr" >/dev/null 2>&1; then : 4023bded5d25Smrg 4024123e2cc7Smrgelse 4025123e2cc7Smrg ac_cv_header_stdc=no 4026123e2cc7Smrgfi 4027123e2cc7Smrgrm -f conftest* 4028123e2cc7Smrg 4029123e2cc7Smrgfi 4030123e2cc7Smrg 4031123e2cc7Smrgif test $ac_cv_header_stdc = yes; then 4032123e2cc7Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4033bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034123e2cc7Smrg/* end confdefs.h. */ 4035123e2cc7Smrg#include <stdlib.h> 4036123e2cc7Smrg 4037123e2cc7Smrg_ACEOF 4038123e2cc7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4039bded5d25Smrg $EGREP "free" >/dev/null 2>&1; then : 4040bded5d25Smrg 4041123e2cc7Smrgelse 4042123e2cc7Smrg ac_cv_header_stdc=no 4043123e2cc7Smrgfi 4044123e2cc7Smrgrm -f conftest* 4045123e2cc7Smrg 4046123e2cc7Smrgfi 4047123e2cc7Smrg 4048123e2cc7Smrgif test $ac_cv_header_stdc = yes; then 4049123e2cc7Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4050bded5d25Smrg if test "$cross_compiling" = yes; then : 4051123e2cc7Smrg : 4052123e2cc7Smrgelse 4053bded5d25Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054123e2cc7Smrg/* end confdefs.h. */ 4055123e2cc7Smrg#include <ctype.h> 4056123e2cc7Smrg#include <stdlib.h> 4057123e2cc7Smrg#if ((' ' & 0x0FF) == 0x020) 4058123e2cc7Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4059123e2cc7Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4060123e2cc7Smrg#else 4061123e2cc7Smrg# define ISLOWER(c) \ 4062123e2cc7Smrg (('a' <= (c) && (c) <= 'i') \ 4063123e2cc7Smrg || ('j' <= (c) && (c) <= 'r') \ 4064123e2cc7Smrg || ('s' <= (c) && (c) <= 'z')) 4065123e2cc7Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4066123e2cc7Smrg#endif 4067123e2cc7Smrg 4068123e2cc7Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4069123e2cc7Smrgint 4070123e2cc7Smrgmain () 4071123e2cc7Smrg{ 4072123e2cc7Smrg int i; 4073123e2cc7Smrg for (i = 0; i < 256; i++) 4074123e2cc7Smrg if (XOR (islower (i), ISLOWER (i)) 4075123e2cc7Smrg || toupper (i) != TOUPPER (i)) 4076123e2cc7Smrg return 2; 4077123e2cc7Smrg return 0; 4078123e2cc7Smrg} 4079123e2cc7Smrg_ACEOF 4080bded5d25Smrgif ac_fn_c_try_run "$LINENO"; then : 4081123e2cc7Smrg 4082bded5d25Smrgelse 4083bded5d25Smrg ac_cv_header_stdc=no 4084123e2cc7Smrgfi 4085bded5d25Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4086bded5d25Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4087123e2cc7Smrgfi 4088123e2cc7Smrg 4089123e2cc7Smrgfi 4090123e2cc7Smrgfi 4091bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4092123e2cc7Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4093123e2cc7Smrgif test $ac_cv_header_stdc = yes; then 4094123e2cc7Smrg 4095bded5d25Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4096123e2cc7Smrg 4097123e2cc7Smrgfi 4098123e2cc7Smrg 4099123e2cc7Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4100123e2cc7Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4101123e2cc7Smrg inttypes.h stdint.h unistd.h 4102bded5d25Smrgdo : 4103bded5d25Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4104bded5d25Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4105bded5d25Smrg" 4106bded5d25Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4107123e2cc7Smrg cat >>confdefs.h <<_ACEOF 4108123e2cc7Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4109123e2cc7Smrg_ACEOF 4110123e2cc7Smrg 4111123e2cc7Smrgfi 4112123e2cc7Smrg 4113123e2cc7Smrgdone 4114123e2cc7Smrg 4115123e2cc7Smrg 4116123e2cc7Smrg 4117123e2cc7Smrg 4118bded5d25Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4119bded5d25Smrg if test -n "$ac_tool_prefix"; then 4120bded5d25Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4121bded5d25Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4122bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4123bded5d25Smrg$as_echo_n "checking for $ac_word... " >&6; } 4124bded5d25Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4125bded5d25Smrg $as_echo_n "(cached) " >&6 4126bded5d25Smrgelse 4127bded5d25Smrg case $PKG_CONFIG in 4128bded5d25Smrg [\\/]* | ?:[\\/]*) 4129bded5d25Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4130bded5d25Smrg ;; 4131bded5d25Smrg *) 4132bded5d25Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4133bded5d25Smrgfor as_dir in $PATH 4134123e2cc7Smrgdo 4135bded5d25Smrg IFS=$as_save_IFS 4136bded5d25Smrg test -z "$as_dir" && as_dir=. 4137bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4138bded5d25Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4139bded5d25Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4140bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4141bded5d25Smrg break 2 4142bded5d25Smrg fi 4143bded5d25Smrgdone 4144bded5d25Smrg done 4145bded5d25SmrgIFS=$as_save_IFS 4146bded5d25Smrg 4147bded5d25Smrg ;; 4148123e2cc7Smrgesac 4149bded5d25Smrgfi 4150bded5d25SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4151bded5d25Smrgif test -n "$PKG_CONFIG"; then 4152bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4153bded5d25Smrg$as_echo "$PKG_CONFIG" >&6; } 4154123e2cc7Smrgelse 4155bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4156bded5d25Smrg$as_echo "no" >&6; } 4157123e2cc7Smrgfi 4158123e2cc7Smrg 4159123e2cc7Smrg 4160123e2cc7Smrgfi 4161bded5d25Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4162bded5d25Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4163bded5d25Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4164bded5d25Smrgset dummy pkg-config; ac_word=$2 4165bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4166bded5d25Smrg$as_echo_n "checking for $ac_word... " >&6; } 4167bded5d25Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4168bded5d25Smrg $as_echo_n "(cached) " >&6 4169bded5d25Smrgelse 4170bded5d25Smrg case $ac_pt_PKG_CONFIG in 4171bded5d25Smrg [\\/]* | ?:[\\/]*) 4172bded5d25Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4173bded5d25Smrg ;; 4174123e2cc7Smrg *) 4175bded5d25Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176bded5d25Smrgfor as_dir in $PATH 4177bded5d25Smrgdo 4178bded5d25Smrg IFS=$as_save_IFS 4179bded5d25Smrg test -z "$as_dir" && as_dir=. 4180bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4181bded5d25Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4182bded5d25Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4183bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4184bded5d25Smrg break 2 4185bded5d25Smrg fi 4186bded5d25Smrgdone 4187bded5d25Smrg done 4188bded5d25SmrgIFS=$as_save_IFS 4189bded5d25Smrg 4190bded5d25Smrg ;; 4191123e2cc7Smrgesac 4192bded5d25Smrgfi 4193bded5d25Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4194bded5d25Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4195bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4196bded5d25Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4197bded5d25Smrgelse 4198bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4199bded5d25Smrg$as_echo "no" >&6; } 4200bded5d25Smrgfi 4201123e2cc7Smrg 4202bded5d25Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4203bded5d25Smrg PKG_CONFIG="" 4204bded5d25Smrg else 4205bded5d25Smrg case $cross_compiling:$ac_tool_warned in 4206bded5d25Smrgyes:) 4207bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4208bded5d25Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4209bded5d25Smrgac_tool_warned=yes ;; 4210bded5d25Smrgesac 4211bded5d25Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4212bded5d25Smrg fi 4213bded5d25Smrgelse 4214bded5d25Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4215bded5d25Smrgfi 4216123e2cc7Smrg 4217bded5d25Smrgfi 4218bded5d25Smrgif test -n "$PKG_CONFIG"; then 4219bded5d25Smrg _pkg_min_version=0.9.0 4220bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4221bded5d25Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4222bded5d25Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4223bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4224bded5d25Smrg$as_echo "yes" >&6; } 4225bded5d25Smrg else 4226bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227bded5d25Smrg$as_echo "no" >&6; } 4228bded5d25Smrg PKG_CONFIG="" 4229bded5d25Smrg fi 4230123e2cc7Smrg 4231bded5d25Smrgfi 4232123e2cc7Smrg# Make sure we can run config.sub. 4233123e2cc7Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4234bded5d25Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4235123e2cc7Smrg 4236bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4237123e2cc7Smrg$as_echo_n "checking build system type... " >&6; } 4238bded5d25Smrgif ${ac_cv_build+:} false; then : 4239123e2cc7Smrg $as_echo_n "(cached) " >&6 4240123e2cc7Smrgelse 4241123e2cc7Smrg ac_build_alias=$build_alias 4242123e2cc7Smrgtest "x$ac_build_alias" = x && 4243123e2cc7Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4244123e2cc7Smrgtest "x$ac_build_alias" = x && 4245bded5d25Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4246123e2cc7Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4247bded5d25Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4248123e2cc7Smrg 4249123e2cc7Smrgfi 4250bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4251123e2cc7Smrg$as_echo "$ac_cv_build" >&6; } 4252123e2cc7Smrgcase $ac_cv_build in 4253123e2cc7Smrg*-*-*) ;; 4254bded5d25Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4255123e2cc7Smrgesac 4256123e2cc7Smrgbuild=$ac_cv_build 4257123e2cc7Smrgac_save_IFS=$IFS; IFS='-' 4258123e2cc7Smrgset x $ac_cv_build 4259123e2cc7Smrgshift 4260123e2cc7Smrgbuild_cpu=$1 4261123e2cc7Smrgbuild_vendor=$2 4262123e2cc7Smrgshift; shift 4263123e2cc7Smrg# Remember, the first character of IFS is used to create $*, 4264123e2cc7Smrg# except with old shells: 4265123e2cc7Smrgbuild_os=$* 4266123e2cc7SmrgIFS=$ac_save_IFS 4267123e2cc7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4268123e2cc7Smrg 4269123e2cc7Smrg 4270bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4271123e2cc7Smrg$as_echo_n "checking host system type... " >&6; } 4272bded5d25Smrgif ${ac_cv_host+:} false; then : 4273123e2cc7Smrg $as_echo_n "(cached) " >&6 4274123e2cc7Smrgelse 4275123e2cc7Smrg if test "x$host_alias" = x; then 4276123e2cc7Smrg ac_cv_host=$ac_cv_build 4277123e2cc7Smrgelse 4278123e2cc7Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4279bded5d25Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4280123e2cc7Smrgfi 4281123e2cc7Smrg 4282123e2cc7Smrgfi 4283bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4284123e2cc7Smrg$as_echo "$ac_cv_host" >&6; } 4285123e2cc7Smrgcase $ac_cv_host in 4286123e2cc7Smrg*-*-*) ;; 4287bded5d25Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4288123e2cc7Smrgesac 4289123e2cc7Smrghost=$ac_cv_host 4290123e2cc7Smrgac_save_IFS=$IFS; IFS='-' 4291123e2cc7Smrgset x $ac_cv_host 4292123e2cc7Smrgshift 4293123e2cc7Smrghost_cpu=$1 4294123e2cc7Smrghost_vendor=$2 4295123e2cc7Smrgshift; shift 4296123e2cc7Smrg# Remember, the first character of IFS is used to create $*, 4297123e2cc7Smrg# except with old shells: 4298123e2cc7Smrghost_os=$* 4299123e2cc7SmrgIFS=$ac_save_IFS 4300123e2cc7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4301123e2cc7Smrg 4302123e2cc7Smrg 4303bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4304bded5d25Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4305bded5d25Smrgif ${ac_cv_path_SED+:} false; then : 4306bded5d25Smrg $as_echo_n "(cached) " >&6 4307bded5d25Smrgelse 4308bded5d25Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4309bded5d25Smrg for ac_i in 1 2 3 4 5 6 7; do 4310bded5d25Smrg ac_script="$ac_script$as_nl$ac_script" 4311bded5d25Smrg done 4312bded5d25Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4313bded5d25Smrg { ac_script=; unset ac_script;} 4314bded5d25Smrg if test -z "$SED"; then 4315bded5d25Smrg ac_path_SED_found=false 4316bded5d25Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4317bded5d25Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318bded5d25Smrgfor as_dir in $PATH 4319bded5d25Smrgdo 4320bded5d25Smrg IFS=$as_save_IFS 4321bded5d25Smrg test -z "$as_dir" && as_dir=. 4322bded5d25Smrg for ac_prog in sed gsed; do 4323bded5d25Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4324bded5d25Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4325bded5d25Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4326bded5d25Smrg# Check for GNU ac_path_SED and select it if it is found. 4327bded5d25Smrg # Check for GNU $ac_path_SED 4328bded5d25Smrgcase `"$ac_path_SED" --version 2>&1` in 4329bded5d25Smrg*GNU*) 4330bded5d25Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4331bded5d25Smrg*) 4332bded5d25Smrg ac_count=0 4333bded5d25Smrg $as_echo_n 0123456789 >"conftest.in" 4334bded5d25Smrg while : 4335bded5d25Smrg do 4336bded5d25Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4337bded5d25Smrg mv "conftest.tmp" "conftest.in" 4338bded5d25Smrg cp "conftest.in" "conftest.nl" 4339bded5d25Smrg $as_echo '' >> "conftest.nl" 4340bded5d25Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4341bded5d25Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4342bded5d25Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4343bded5d25Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4344bded5d25Smrg # Best one so far, save it but keep looking for a better one 4345bded5d25Smrg ac_cv_path_SED="$ac_path_SED" 4346bded5d25Smrg ac_path_SED_max=$ac_count 4347bded5d25Smrg fi 4348bded5d25Smrg # 10*(2^10) chars as input seems more than enough 4349bded5d25Smrg test $ac_count -gt 10 && break 4350bded5d25Smrg done 4351bded5d25Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4352bded5d25Smrgesac 4353bded5d25Smrg 4354bded5d25Smrg $ac_path_SED_found && break 3 4355bded5d25Smrg done 4356bded5d25Smrg done 4357bded5d25Smrg done 4358bded5d25SmrgIFS=$as_save_IFS 4359bded5d25Smrg if test -z "$ac_cv_path_SED"; then 4360bded5d25Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4361bded5d25Smrg fi 4362bded5d25Smrgelse 4363bded5d25Smrg ac_cv_path_SED=$SED 4364bded5d25Smrgfi 4365bded5d25Smrg 4366bded5d25Smrgfi 4367bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4368bded5d25Smrg$as_echo "$ac_cv_path_SED" >&6; } 4369bded5d25Smrg SED="$ac_cv_path_SED" 4370bded5d25Smrg rm -f conftest.sed 4371bded5d25Smrg 4372bded5d25Smrg 4373123e2cc7Smrg 4374123e2cc7Smrg 4375123e2cc7Smrg 4376123e2cc7Smrgif test "x$GCC" = xyes ; then 4377123e2cc7Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4378123e2cc7Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4379bded5d25Smrg-Wbad-function-cast -Wformat=2" 4380123e2cc7Smrg case `$CC -dumpversion` in 4381123e2cc7Smrg 3.4.* | 4.*) 4382123e2cc7Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4383123e2cc7Smrg ;; 4384123e2cc7Smrg esac 4385123e2cc7Smrgelse 4386bded5d25Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4387bded5d25Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4388123e2cc7Smrg SUNCC="yes" 4389123e2cc7Smrgelse 4390123e2cc7Smrg SUNCC="no" 4391123e2cc7Smrgfi 4392123e2cc7Smrg 4393123e2cc7Smrg if test "x$SUNCC" = "xyes"; then 4394123e2cc7Smrg CWARNFLAGS="-v" 4395123e2cc7Smrg fi 4396123e2cc7Smrgfi 4397123e2cc7Smrg 4398123e2cc7Smrg 4399123e2cc7Smrg 4400bded5d25Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4401123e2cc7Smrg 4402123e2cc7Smrg 4403123e2cc7Smrg 4404123e2cc7Smrg# Check whether --enable-strict-compilation was given. 4405bded5d25Smrgif test "${enable_strict_compilation+set}" = set; then : 4406123e2cc7Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4407123e2cc7Smrgelse 4408123e2cc7Smrg STRICT_COMPILE=no 4409123e2cc7Smrgfi 4410123e2cc7Smrg 4411123e2cc7Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4412bded5d25Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4413bded5d25Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4414123e2cc7Smrg SUNCC="yes" 4415123e2cc7Smrgelse 4416123e2cc7Smrg SUNCC="no" 4417123e2cc7Smrgfi 4418123e2cc7Smrg 4419bded5d25Smrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4420bded5d25Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4421123e2cc7Smrg INTELCC="yes" 4422123e2cc7Smrgelse 4423123e2cc7Smrg INTELCC="no" 4424123e2cc7Smrgfi 4425123e2cc7Smrg 4426123e2cc7Smrg if test "x$GCC" = xyes ; then 4427123e2cc7Smrg STRICT_CFLAGS="-pedantic -Werror" 4428123e2cc7Smrg elif test "x$SUNCC" = "xyes"; then 4429123e2cc7Smrg STRICT_CFLAGS="-errwarn" 4430123e2cc7Smrg elif test "x$INTELCC" = "xyes"; then 4431123e2cc7Smrg STRICT_CFLAGS="-Werror" 4432123e2cc7Smrg fi 4433123e2cc7Smrgfi 4434123e2cc7SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4435123e2cc7Smrg 4436123e2cc7Smrg 4437123e2cc7Smrg 4438123e2cc7Smrg 4439123e2cc7Smrgcat >>confdefs.h <<_ACEOF 4440123e2cc7Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4441123e2cc7Smrg_ACEOF 4442123e2cc7Smrg 4443123e2cc7Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4444123e2cc7Smrg if test "x$PVM" = "x"; then 4445123e2cc7Smrg PVM="0" 4446123e2cc7Smrg fi 4447123e2cc7Smrg 4448123e2cc7Smrgcat >>confdefs.h <<_ACEOF 4449123e2cc7Smrg#define PACKAGE_VERSION_MINOR $PVM 4450123e2cc7Smrg_ACEOF 4451123e2cc7Smrg 4452123e2cc7Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4453123e2cc7Smrg if test "x$PVP" = "x"; then 4454123e2cc7Smrg PVP="0" 4455123e2cc7Smrg fi 4456123e2cc7Smrg 4457123e2cc7Smrgcat >>confdefs.h <<_ACEOF 4458123e2cc7Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4459123e2cc7Smrg_ACEOF 4460123e2cc7Smrg 4461123e2cc7Smrg 4462123e2cc7Smrg 4463bded5d25SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4464bded5d25Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4465bded5d25Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4466123e2cc7Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4467123e2cc7Smrg 4468bded5d25Smrg 4469bded5d25Smrg 4470bded5d25Smrg 4471bded5d25Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4472bded5d25SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4473bded5d25Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4474bded5d25Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4475bded5d25Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4476bded5d25Smrg 4477123e2cc7Smrg 4478123e2cc7Smrg 4479123e2cc7Smrg 4480123e2cc7Smrg 4481123e2cc7Smrg 4482123e2cc7Smrgif test x$APP_MAN_SUFFIX = x ; then 4483123e2cc7Smrg APP_MAN_SUFFIX=1 4484123e2cc7Smrgfi 4485123e2cc7Smrgif test x$APP_MAN_DIR = x ; then 4486123e2cc7Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4487123e2cc7Smrgfi 4488123e2cc7Smrg 4489123e2cc7Smrgif test x$LIB_MAN_SUFFIX = x ; then 4490123e2cc7Smrg LIB_MAN_SUFFIX=3 4491123e2cc7Smrgfi 4492123e2cc7Smrgif test x$LIB_MAN_DIR = x ; then 4493123e2cc7Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4494123e2cc7Smrgfi 4495123e2cc7Smrg 4496123e2cc7Smrgif test x$FILE_MAN_SUFFIX = x ; then 4497123e2cc7Smrg case $host_os in 4498123e2cc7Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4499123e2cc7Smrg *) FILE_MAN_SUFFIX=5 ;; 4500123e2cc7Smrg esac 4501123e2cc7Smrgfi 4502123e2cc7Smrgif test x$FILE_MAN_DIR = x ; then 4503123e2cc7Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4504123e2cc7Smrgfi 4505123e2cc7Smrg 4506123e2cc7Smrgif test x$MISC_MAN_SUFFIX = x ; then 4507123e2cc7Smrg case $host_os in 4508123e2cc7Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4509123e2cc7Smrg *) MISC_MAN_SUFFIX=7 ;; 4510123e2cc7Smrg esac 4511123e2cc7Smrgfi 4512123e2cc7Smrgif test x$MISC_MAN_DIR = x ; then 4513123e2cc7Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4514123e2cc7Smrgfi 4515123e2cc7Smrg 4516123e2cc7Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4517123e2cc7Smrg case $host_os in 4518123e2cc7Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4519123e2cc7Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4520123e2cc7Smrg esac 4521123e2cc7Smrgfi 4522123e2cc7Smrgif test x$DRIVER_MAN_DIR = x ; then 4523123e2cc7Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4524123e2cc7Smrgfi 4525123e2cc7Smrg 4526123e2cc7Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4527123e2cc7Smrg case $host_os in 4528123e2cc7Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4529123e2cc7Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4530123e2cc7Smrg esac 4531123e2cc7Smrgfi 4532123e2cc7Smrgif test x$ADMIN_MAN_DIR = x ; then 4533123e2cc7Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4534123e2cc7Smrgfi 4535123e2cc7Smrg 4536123e2cc7Smrg 4537123e2cc7Smrg 4538123e2cc7Smrg 4539123e2cc7Smrg 4540123e2cc7Smrg 4541123e2cc7Smrg 4542123e2cc7Smrg 4543123e2cc7Smrg 4544123e2cc7Smrg 4545123e2cc7Smrg 4546123e2cc7Smrg 4547123e2cc7Smrg 4548123e2cc7Smrg 4549123e2cc7Smrg 4550bded5d25SmrgXORG_MAN_PAGE="X Version 11" 4551123e2cc7Smrg 4552bded5d25SmrgMAN_SUBSTS="\ 4553bded5d25Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4554bded5d25Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4555bded5d25Smrg -e 's|__xservername__|Xorg|g' \ 4556bded5d25Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4557bded5d25Smrg -e 's|__projectroot__|\$(prefix)|g' \ 4558bded5d25Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4559bded5d25Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4560bded5d25Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4561bded5d25Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4562bded5d25Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4563bded5d25Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4564bded5d25Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4565123e2cc7Smrg 45667da8b7e3Smrg 45677da8b7e3Smrg 4568bded5d25Smrg# Check whether --enable-silent-rules was given. 4569bded5d25Smrgif test "${enable_silent_rules+set}" = set; then : 4570bded5d25Smrg enableval=$enable_silent_rules; 45717da8b7e3Smrgfi 45727da8b7e3Smrg 4573bded5d25Smrgcase $enable_silent_rules in 4574bded5d25Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4575bded5d25Smrgno) AM_DEFAULT_VERBOSITY=1;; 4576bded5d25Smrg*) AM_DEFAULT_VERBOSITY=0;; 4577bded5d25Smrgesac 4578bded5d25SmrgAM_BACKSLASH='\' 4579bded5d25Smrg 4580bded5d25Smrg 4581bded5d25Smrg 4582bded5d25Smrg# Checks for pkg-config packages 4583bded5d25Smrg 45847da8b7e3Smrgpkg_failed=no 4585bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5 4586123e2cc7Smrg$as_echo_n "checking for XREFRESH... " >&6; } 4587123e2cc7Smrg 4588123e2cc7Smrgif test -n "$XREFRESH_CFLAGS"; then 4589123e2cc7Smrg pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS" 4590123e2cc7Smrg elif test -n "$PKG_CONFIG"; then 4591123e2cc7Smrg if test -n "$PKG_CONFIG" && \ 4592bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 45937da8b7e3Smrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 45947da8b7e3Smrg ac_status=$? 4595bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4596bded5d25Smrg test $ac_status = 0; }; then 45977da8b7e3Smrg pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 45987da8b7e3Smrgelse 45997da8b7e3Smrg pkg_failed=yes 46007da8b7e3Smrgfi 4601123e2cc7Smrg else 4602123e2cc7Smrg pkg_failed=untried 46037da8b7e3Smrgfi 4604123e2cc7Smrgif test -n "$XREFRESH_LIBS"; then 4605123e2cc7Smrg pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS" 4606123e2cc7Smrg elif test -n "$PKG_CONFIG"; then 4607123e2cc7Smrg if test -n "$PKG_CONFIG" && \ 4608bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 46097da8b7e3Smrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 46107da8b7e3Smrg ac_status=$? 4611bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4612bded5d25Smrg test $ac_status = 0; }; then 46137da8b7e3Smrg pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 46147da8b7e3Smrgelse 46157da8b7e3Smrg pkg_failed=yes 46167da8b7e3Smrgfi 4617123e2cc7Smrg else 4618123e2cc7Smrg pkg_failed=untried 46197da8b7e3Smrgfi 46207da8b7e3Smrg 46217da8b7e3Smrg 46227da8b7e3Smrg 46237da8b7e3Smrgif test $pkg_failed = yes; then 46247da8b7e3Smrg 46257da8b7e3Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46267da8b7e3Smrg _pkg_short_errors_supported=yes 46277da8b7e3Smrgelse 46287da8b7e3Smrg _pkg_short_errors_supported=no 46297da8b7e3Smrgfi 46307da8b7e3Smrg if test $_pkg_short_errors_supported = yes; then 4631123e2cc7Smrg XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 46327da8b7e3Smrg else 4633123e2cc7Smrg XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 46347da8b7e3Smrg fi 46357da8b7e3Smrg # Put the nasty error message in config.log where it belongs 46367da8b7e3Smrg echo "$XREFRESH_PKG_ERRORS" >&5 46377da8b7e3Smrg 4638bded5d25Smrg as_fn_error $? "Package requirements (x11) were not met: 46397da8b7e3Smrg 46407da8b7e3Smrg$XREFRESH_PKG_ERRORS 46417da8b7e3Smrg 46427da8b7e3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 46437da8b7e3Smrginstalled software in a non-standard prefix. 46447da8b7e3Smrg 46457da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS 46467da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config. 46477da8b7e3SmrgSee the pkg-config man page for more details. 4648bded5d25Smrg" "$LINENO" 5 46497da8b7e3Smrgelif test $pkg_failed = untried; then 4650bded5d25Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4651123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4652bded5d25Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 46537da8b7e3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 46547da8b7e3Smrgpath to pkg-config. 46557da8b7e3Smrg 46567da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS 46577da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config. 46587da8b7e3SmrgSee the pkg-config man page for more details. 46597da8b7e3Smrg 4660123e2cc7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4661bded5d25SmrgSee \`config.log' for more details" "$LINENO" 5; } 46627da8b7e3Smrgelse 46637da8b7e3Smrg XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS 46647da8b7e3Smrg XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS 4665bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4666123e2cc7Smrg$as_echo "yes" >&6; } 46677da8b7e3Smrg : 46687da8b7e3Smrgfi 46697da8b7e3Smrg 4670123e2cc7Smrgac_config_files="$ac_config_files Makefile" 46717da8b7e3Smrg 46727da8b7e3Smrgcat >confcache <<\_ACEOF 46737da8b7e3Smrg# This file is a shell script that caches the results of configure 46747da8b7e3Smrg# tests run on this system so they can be shared between configure 46757da8b7e3Smrg# scripts and configure runs, see configure's option --config-cache. 46767da8b7e3Smrg# It is not useful on other systems. If it contains results you don't 46777da8b7e3Smrg# want to keep, you may remove or edit it. 46787da8b7e3Smrg# 46797da8b7e3Smrg# config.status only pays attention to the cache file if you give it 46807da8b7e3Smrg# the --recheck option to rerun configure. 46817da8b7e3Smrg# 46827da8b7e3Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 46837da8b7e3Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 46847da8b7e3Smrg# following values. 46857da8b7e3Smrg 46867da8b7e3Smrg_ACEOF 46877da8b7e3Smrg 46887da8b7e3Smrg# The following way of writing the cache mishandles newlines in values, 46897da8b7e3Smrg# but we know of no workaround that is simple, portable, and efficient. 4690123e2cc7Smrg# So, we kill variables containing newlines. 46917da8b7e3Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 46927da8b7e3Smrg# and sets the high bit in the cache file unless we assign to the vars. 4693123e2cc7Smrg( 4694123e2cc7Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4695123e2cc7Smrg eval ac_val=\$$ac_var 4696123e2cc7Smrg case $ac_val in #( 4697123e2cc7Smrg *${as_nl}*) 4698123e2cc7Smrg case $ac_var in #( 4699bded5d25Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4700123e2cc7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4701123e2cc7Smrg esac 4702123e2cc7Smrg case $ac_var in #( 4703123e2cc7Smrg _ | IFS | as_nl) ;; #( 4704123e2cc7Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4705bded5d25Smrg *) { eval $ac_var=; unset $ac_var;} ;; 4706123e2cc7Smrg esac ;; 4707123e2cc7Smrg esac 4708123e2cc7Smrg done 4709123e2cc7Smrg 47107da8b7e3Smrg (set) 2>&1 | 4711123e2cc7Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 4712123e2cc7Smrg *${as_nl}ac_space=\ *) 4713bded5d25Smrg # `set' does not quote correctly, so add quotes: double-quote 4714bded5d25Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 47157da8b7e3Smrg sed -n \ 47167da8b7e3Smrg "s/'/'\\\\''/g; 47177da8b7e3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4718123e2cc7Smrg ;; #( 47197da8b7e3Smrg *) 47207da8b7e3Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 4721123e2cc7Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 47227da8b7e3Smrg ;; 4723123e2cc7Smrg esac | 4724123e2cc7Smrg sort 4725123e2cc7Smrg) | 47267da8b7e3Smrg sed ' 4727123e2cc7Smrg /^ac_cv_env_/b end 47287da8b7e3Smrg t clear 4729123e2cc7Smrg :clear 47307da8b7e3Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 47317da8b7e3Smrg t end 4732123e2cc7Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4733123e2cc7Smrg :end' >>confcache 4734123e2cc7Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4735123e2cc7Smrg if test -w "$cache_file"; then 4736bded5d25Smrg if test "x$cache_file" != "x/dev/null"; then 4737bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4738123e2cc7Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 4739bded5d25Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 4740bded5d25Smrg cat confcache >"$cache_file" 4741bded5d25Smrg else 4742bded5d25Smrg case $cache_file in #( 4743bded5d25Smrg */* | ?:*) 4744bded5d25Smrg mv -f confcache "$cache_file"$$ && 4745bded5d25Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 4746bded5d25Smrg *) 4747bded5d25Smrg mv -f confcache "$cache_file" ;; 4748bded5d25Smrg esac 4749bded5d25Smrg fi 4750bded5d25Smrg fi 47517da8b7e3Smrg else 4752bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4753123e2cc7Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 47547da8b7e3Smrg fi 47557da8b7e3Smrgfi 47567da8b7e3Smrgrm -f confcache 47577da8b7e3Smrg 47587da8b7e3Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 47597da8b7e3Smrg# Let make expand exec_prefix. 47607da8b7e3Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 47617da8b7e3Smrg 47627da8b7e3SmrgDEFS=-DHAVE_CONFIG_H 47637da8b7e3Smrg 47647da8b7e3Smrgac_libobjs= 47657da8b7e3Smrgac_ltlibobjs= 4766bded5d25SmrgU= 47677da8b7e3Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 47687da8b7e3Smrg # 1. Remove the extension, and $U if already installed. 4769123e2cc7Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4770123e2cc7Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4771123e2cc7Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4772123e2cc7Smrg # will be set to the directory where LIBOBJS objects are built. 4773bded5d25Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4774bded5d25Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 47757da8b7e3Smrgdone 47767da8b7e3SmrgLIBOBJS=$ac_libobjs 47777da8b7e3Smrg 47787da8b7e3SmrgLTLIBOBJS=$ac_ltlibobjs 47797da8b7e3Smrg 47807da8b7e3Smrg 4781123e2cc7Smrg if test -n "$EXEEXT"; then 4782123e2cc7Smrg am__EXEEXT_TRUE= 4783123e2cc7Smrg am__EXEEXT_FALSE='#' 4784123e2cc7Smrgelse 4785123e2cc7Smrg am__EXEEXT_TRUE='#' 4786123e2cc7Smrg am__EXEEXT_FALSE= 4787123e2cc7Smrgfi 4788123e2cc7Smrg 47897da8b7e3Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 4790bded5d25Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 4791bded5d25SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 47927da8b7e3Smrgfi 47937da8b7e3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 4794bded5d25Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 4795bded5d25SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 47967da8b7e3Smrgfi 47977da8b7e3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 4798bded5d25Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 4799bded5d25SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 48007da8b7e3Smrgfi 48017da8b7e3Smrg 4802bded5d25Smrg: "${CONFIG_STATUS=./config.status}" 4803123e2cc7Smrgac_write_fail=0 48047da8b7e3Smrgac_clean_files_save=$ac_clean_files 48057da8b7e3Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 4806bded5d25Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4807123e2cc7Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4808bded5d25Smrgas_write_fail=0 4809bded5d25Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 48107da8b7e3Smrg#! $SHELL 48117da8b7e3Smrg# Generated by $as_me. 48127da8b7e3Smrg# Run this file to recreate the current configuration. 48137da8b7e3Smrg# Compiler output produced by configure, useful for debugging 48147da8b7e3Smrg# configure, is in config.log if it exists. 48157da8b7e3Smrg 48167da8b7e3Smrgdebug=false 48177da8b7e3Smrgac_cs_recheck=false 48187da8b7e3Smrgac_cs_silent=false 48197da8b7e3Smrg 4820bded5d25SmrgSHELL=\${CONFIG_SHELL-$SHELL} 4821bded5d25Smrgexport SHELL 4822bded5d25Smrg_ASEOF 4823bded5d25Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4824bded5d25Smrg## -------------------- ## 4825bded5d25Smrg## M4sh Initialization. ## 4826bded5d25Smrg## -------------------- ## 48277da8b7e3Smrg 4828123e2cc7Smrg# Be more Bourne compatible 4829123e2cc7SmrgDUALCASE=1; export DUALCASE # for MKS sh 4830bded5d25Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 48317da8b7e3Smrg emulate sh 48327da8b7e3Smrg NULLCMD=: 4833123e2cc7Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 48347da8b7e3Smrg # is contrary to our usage. Disable this feature. 48357da8b7e3Smrg alias -g '${1+"$@"}'='"$@"' 4836123e2cc7Smrg setopt NO_GLOB_SUBST 4837123e2cc7Smrgelse 4838bded5d25Smrg case `(set -o) 2>/dev/null` in #( 4839bded5d25Smrg *posix*) : 4840bded5d25Smrg set -o posix ;; #( 4841bded5d25Smrg *) : 4842bded5d25Smrg ;; 4843123e2cc7Smrgesac 4844123e2cc7Smrgfi 4845123e2cc7Smrg 4846123e2cc7Smrg 4847123e2cc7Smrgas_nl=' 4848123e2cc7Smrg' 4849123e2cc7Smrgexport as_nl 4850123e2cc7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4851123e2cc7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4852123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4853123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4854bded5d25Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 4855bded5d25Smrg# but without wasting forks for bash or zsh. 4856bded5d25Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 4857bded5d25Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4858bded5d25Smrg as_echo='print -r --' 4859bded5d25Smrg as_echo_n='print -rn --' 4860bded5d25Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4861123e2cc7Smrg as_echo='printf %s\n' 4862123e2cc7Smrg as_echo_n='printf %s' 4863123e2cc7Smrgelse 4864123e2cc7Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4865123e2cc7Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4866123e2cc7Smrg as_echo_n='/usr/ucb/echo -n' 4867123e2cc7Smrg else 4868123e2cc7Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4869123e2cc7Smrg as_echo_n_body='eval 4870123e2cc7Smrg arg=$1; 4871bded5d25Smrg case $arg in #( 4872123e2cc7Smrg *"$as_nl"*) 4873123e2cc7Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 4874123e2cc7Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4875123e2cc7Smrg esac; 4876123e2cc7Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4877123e2cc7Smrg ' 4878123e2cc7Smrg export as_echo_n_body 4879123e2cc7Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 4880123e2cc7Smrg fi 4881123e2cc7Smrg export as_echo_body 4882123e2cc7Smrg as_echo='sh -c $as_echo_body as_echo' 4883123e2cc7Smrgfi 4884123e2cc7Smrg 4885123e2cc7Smrg# The user is always right. 4886123e2cc7Smrgif test "${PATH_SEPARATOR+set}" != set; then 4887123e2cc7Smrg PATH_SEPARATOR=: 4888123e2cc7Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4889123e2cc7Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4890123e2cc7Smrg PATH_SEPARATOR=';' 4891123e2cc7Smrg } 48927da8b7e3Smrgfi 48937da8b7e3Smrg 48947da8b7e3Smrg 4895123e2cc7Smrg# IFS 4896123e2cc7Smrg# We need space, tab and new line, in precisely that order. Quoting is 4897123e2cc7Smrg# there to prevent editors from complaining about space-tab. 4898123e2cc7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4899123e2cc7Smrg# splitting by setting IFS to empty value.) 4900123e2cc7SmrgIFS=" "" $as_nl" 4901123e2cc7Smrg 4902123e2cc7Smrg# Find who we are. Look in the path if we contain no directory separator. 4903bded5d25Smrgas_myself= 4904bded5d25Smrgcase $0 in #(( 4905123e2cc7Smrg *[\\/]* ) as_myself=$0 ;; 4906123e2cc7Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4907123e2cc7Smrgfor as_dir in $PATH 4908123e2cc7Smrgdo 4909123e2cc7Smrg IFS=$as_save_IFS 4910123e2cc7Smrg test -z "$as_dir" && as_dir=. 4911bded5d25Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4912bded5d25Smrg done 4913123e2cc7SmrgIFS=$as_save_IFS 4914123e2cc7Smrg 4915123e2cc7Smrg ;; 4916123e2cc7Smrgesac 4917123e2cc7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 4918123e2cc7Smrg# in which case we are not to be found in the path. 4919123e2cc7Smrgif test "x$as_myself" = x; then 4920123e2cc7Smrg as_myself=$0 4921123e2cc7Smrgfi 4922123e2cc7Smrgif test ! -f "$as_myself"; then 4923123e2cc7Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4924bded5d25Smrg exit 1 4925123e2cc7Smrgfi 4926123e2cc7Smrg 4927bded5d25Smrg# Unset variables that we do not need and which cause bugs (e.g. in 4928bded5d25Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4929bded5d25Smrg# suppresses any "Segmentation fault" message there. '((' could 4930bded5d25Smrg# trigger a bug in pdksh 5.2.14. 4931bded5d25Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 4932bded5d25Smrgdo eval test x\${$as_var+set} = xset \ 4933bded5d25Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4934123e2cc7Smrgdone 49357da8b7e3SmrgPS1='$ ' 49367da8b7e3SmrgPS2='> ' 49377da8b7e3SmrgPS4='+ ' 49387da8b7e3Smrg 49397da8b7e3Smrg# NLS nuisances. 4940123e2cc7SmrgLC_ALL=C 4941123e2cc7Smrgexport LC_ALL 4942123e2cc7SmrgLANGUAGE=C 4943123e2cc7Smrgexport LANGUAGE 49447da8b7e3Smrg 4945bded5d25Smrg# CDPATH. 4946bded5d25Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4947bded5d25Smrg 4948bded5d25Smrg 4949bded5d25Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4950bded5d25Smrg# ---------------------------------------- 4951bded5d25Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4952bded5d25Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4953bded5d25Smrg# script with STATUS, using 1 if that was 0. 4954bded5d25Smrgas_fn_error () 4955bded5d25Smrg{ 4956bded5d25Smrg as_status=$1; test $as_status -eq 0 && as_status=1 4957bded5d25Smrg if test "$4"; then 4958bded5d25Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4959bded5d25Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4960bded5d25Smrg fi 4961bded5d25Smrg $as_echo "$as_me: error: $2" >&2 4962bded5d25Smrg as_fn_exit $as_status 4963bded5d25Smrg} # as_fn_error 4964bded5d25Smrg 4965bded5d25Smrg 4966bded5d25Smrg# as_fn_set_status STATUS 4967bded5d25Smrg# ----------------------- 4968bded5d25Smrg# Set $? to STATUS, without forking. 4969bded5d25Smrgas_fn_set_status () 4970bded5d25Smrg{ 4971bded5d25Smrg return $1 4972bded5d25Smrg} # as_fn_set_status 4973bded5d25Smrg 4974bded5d25Smrg# as_fn_exit STATUS 4975bded5d25Smrg# ----------------- 4976bded5d25Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4977bded5d25Smrgas_fn_exit () 4978bded5d25Smrg{ 4979bded5d25Smrg set +e 4980bded5d25Smrg as_fn_set_status $1 4981bded5d25Smrg exit $1 4982bded5d25Smrg} # as_fn_exit 4983bded5d25Smrg 4984bded5d25Smrg# as_fn_unset VAR 4985bded5d25Smrg# --------------- 4986bded5d25Smrg# Portably unset VAR. 4987bded5d25Smrgas_fn_unset () 4988bded5d25Smrg{ 4989bded5d25Smrg { eval $1=; unset $1;} 4990bded5d25Smrg} 4991bded5d25Smrgas_unset=as_fn_unset 4992bded5d25Smrg# as_fn_append VAR VALUE 4993bded5d25Smrg# ---------------------- 4994bded5d25Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 4995bded5d25Smrg# advantage of any shell optimizations that allow amortized linear growth over 4996bded5d25Smrg# repeated appends, instead of the typical quadratic growth present in naive 4997bded5d25Smrg# implementations. 4998bded5d25Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4999bded5d25Smrg eval 'as_fn_append () 5000bded5d25Smrg { 5001bded5d25Smrg eval $1+=\$2 5002bded5d25Smrg }' 5003bded5d25Smrgelse 5004bded5d25Smrg as_fn_append () 5005bded5d25Smrg { 5006bded5d25Smrg eval $1=\$$1\$2 5007bded5d25Smrg } 5008bded5d25Smrgfi # as_fn_append 5009bded5d25Smrg 5010bded5d25Smrg# as_fn_arith ARG... 5011bded5d25Smrg# ------------------ 5012bded5d25Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5013bded5d25Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5014bded5d25Smrg# must be portable across $(()) and expr. 5015bded5d25Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5016bded5d25Smrg eval 'as_fn_arith () 5017bded5d25Smrg { 5018bded5d25Smrg as_val=$(( $* )) 5019bded5d25Smrg }' 5020bded5d25Smrgelse 5021bded5d25Smrg as_fn_arith () 5022bded5d25Smrg { 5023bded5d25Smrg as_val=`expr "$@" || test $? -eq 1` 5024bded5d25Smrg } 5025bded5d25Smrgfi # as_fn_arith 5026bded5d25Smrg 5027bded5d25Smrg 5028123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5029123e2cc7Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 50307da8b7e3Smrg as_expr=expr 50317da8b7e3Smrgelse 50327da8b7e3Smrg as_expr=false 50337da8b7e3Smrgfi 50347da8b7e3Smrg 5035123e2cc7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 50367da8b7e3Smrg as_basename=basename 50377da8b7e3Smrgelse 50387da8b7e3Smrg as_basename=false 50397da8b7e3Smrgfi 50407da8b7e3Smrg 5041bded5d25Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5042bded5d25Smrg as_dirname=dirname 5043bded5d25Smrgelse 5044bded5d25Smrg as_dirname=false 5045bded5d25Smrgfi 50467da8b7e3Smrg 5047123e2cc7Smrgas_me=`$as_basename -- "$0" || 50487da8b7e3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 50497da8b7e3Smrg X"$0" : 'X\(//\)$' \| \ 5050123e2cc7Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5051123e2cc7Smrg$as_echo X/"$0" | 5052123e2cc7Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5053123e2cc7Smrg s//\1/ 5054123e2cc7Smrg q 5055123e2cc7Smrg } 5056123e2cc7Smrg /^X\/\(\/\/\)$/{ 5057123e2cc7Smrg s//\1/ 5058123e2cc7Smrg q 5059123e2cc7Smrg } 5060123e2cc7Smrg /^X\/\(\/\).*/{ 5061123e2cc7Smrg s//\1/ 5062123e2cc7Smrg q 5063123e2cc7Smrg } 5064123e2cc7Smrg s/.*/./; q'` 50657da8b7e3Smrg 5066bded5d25Smrg# Avoid depending upon Character Ranges. 5067bded5d25Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5068bded5d25Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5069bded5d25Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5070bded5d25Smrgas_cr_digits='0123456789' 5071bded5d25Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 50727da8b7e3Smrg 5073123e2cc7SmrgECHO_C= ECHO_N= ECHO_T= 5074bded5d25Smrgcase `echo -n x` in #((((( 5075123e2cc7Smrg-n*) 5076bded5d25Smrg case `echo 'xy\c'` in 5077123e2cc7Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5078bded5d25Smrg xy) ECHO_C='\c';; 5079bded5d25Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5080bded5d25Smrg ECHO_T=' ';; 5081123e2cc7Smrg esac;; 5082123e2cc7Smrg*) 5083123e2cc7Smrg ECHO_N='-n';; 5084123e2cc7Smrgesac 50857da8b7e3Smrg 50867da8b7e3Smrgrm -f conf$$ conf$$.exe conf$$.file 5087123e2cc7Smrgif test -d conf$$.dir; then 5088123e2cc7Smrg rm -f conf$$.dir/conf$$.file 5089123e2cc7Smrgelse 5090123e2cc7Smrg rm -f conf$$.dir 5091123e2cc7Smrg mkdir conf$$.dir 2>/dev/null 5092123e2cc7Smrgfi 5093123e2cc7Smrgif (echo >conf$$.file) 2>/dev/null; then 5094123e2cc7Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 50957da8b7e3Smrg as_ln_s='ln -s' 5096123e2cc7Smrg # ... but there are two gotchas: 5097123e2cc7Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5098123e2cc7Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5099123e2cc7Smrg # In both cases, we have to default to `cp -p'. 5100123e2cc7Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5101123e2cc7Smrg as_ln_s='cp -p' 5102123e2cc7Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5103123e2cc7Smrg as_ln_s=ln 5104123e2cc7Smrg else 5105123e2cc7Smrg as_ln_s='cp -p' 51067da8b7e3Smrg fi 51077da8b7e3Smrgelse 51087da8b7e3Smrg as_ln_s='cp -p' 51097da8b7e3Smrgfi 5110123e2cc7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5111123e2cc7Smrgrmdir conf$$.dir 2>/dev/null 51127da8b7e3Smrg 5113bded5d25Smrg 5114bded5d25Smrg# as_fn_mkdir_p 5115bded5d25Smrg# ------------- 5116bded5d25Smrg# Create "$as_dir" as a directory, including parents if necessary. 5117bded5d25Smrgas_fn_mkdir_p () 5118bded5d25Smrg{ 5119bded5d25Smrg 5120bded5d25Smrg case $as_dir in #( 5121bded5d25Smrg -*) as_dir=./$as_dir;; 5122bded5d25Smrg esac 5123bded5d25Smrg test -d "$as_dir" || eval $as_mkdir_p || { 5124bded5d25Smrg as_dirs= 5125bded5d25Smrg while :; do 5126bded5d25Smrg case $as_dir in #( 5127bded5d25Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5128bded5d25Smrg *) as_qdir=$as_dir;; 5129bded5d25Smrg esac 5130bded5d25Smrg as_dirs="'$as_qdir' $as_dirs" 5131bded5d25Smrg as_dir=`$as_dirname -- "$as_dir" || 5132bded5d25Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5133bded5d25Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5134bded5d25Smrg X"$as_dir" : 'X\(//\)$' \| \ 5135bded5d25Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5136bded5d25Smrg$as_echo X"$as_dir" | 5137bded5d25Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5138bded5d25Smrg s//\1/ 5139bded5d25Smrg q 5140bded5d25Smrg } 5141bded5d25Smrg /^X\(\/\/\)[^/].*/{ 5142bded5d25Smrg s//\1/ 5143bded5d25Smrg q 5144bded5d25Smrg } 5145bded5d25Smrg /^X\(\/\/\)$/{ 5146bded5d25Smrg s//\1/ 5147bded5d25Smrg q 5148bded5d25Smrg } 5149bded5d25Smrg /^X\(\/\).*/{ 5150bded5d25Smrg s//\1/ 5151bded5d25Smrg q 5152bded5d25Smrg } 5153bded5d25Smrg s/.*/./; q'` 5154bded5d25Smrg test -d "$as_dir" && break 5155bded5d25Smrg done 5156bded5d25Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5157bded5d25Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5158bded5d25Smrg 5159bded5d25Smrg 5160bded5d25Smrg} # as_fn_mkdir_p 51617da8b7e3Smrgif mkdir -p . 2>/dev/null; then 5162bded5d25Smrg as_mkdir_p='mkdir -p "$as_dir"' 51637da8b7e3Smrgelse 51647da8b7e3Smrg test -d ./-p && rmdir ./-p 51657da8b7e3Smrg as_mkdir_p=false 51667da8b7e3Smrgfi 51677da8b7e3Smrg 5168123e2cc7Smrgif test -x / >/dev/null 2>&1; then 5169123e2cc7Smrg as_test_x='test -x' 5170123e2cc7Smrgelse 5171123e2cc7Smrg if ls -dL / >/dev/null 2>&1; then 5172123e2cc7Smrg as_ls_L_option=L 5173123e2cc7Smrg else 5174123e2cc7Smrg as_ls_L_option= 5175123e2cc7Smrg fi 5176123e2cc7Smrg as_test_x=' 5177123e2cc7Smrg eval sh -c '\'' 5178123e2cc7Smrg if test -d "$1"; then 5179123e2cc7Smrg test -d "$1/."; 5180123e2cc7Smrg else 5181bded5d25Smrg case $1 in #( 5182123e2cc7Smrg -*)set "./$1";; 5183123e2cc7Smrg esac; 5184bded5d25Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5185123e2cc7Smrg ???[sx]*):;;*)false;;esac;fi 5186123e2cc7Smrg '\'' sh 5187123e2cc7Smrg ' 5188123e2cc7Smrgfi 5189123e2cc7Smrgas_executable_p=$as_test_x 51907da8b7e3Smrg 51917da8b7e3Smrg# Sed expression to map a string onto a valid CPP name. 51927da8b7e3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51937da8b7e3Smrg 51947da8b7e3Smrg# Sed expression to map a string onto a valid variable name. 51957da8b7e3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51967da8b7e3Smrg 51977da8b7e3Smrg 51987da8b7e3Smrgexec 6>&1 5199bded5d25Smrg## ----------------------------------- ## 5200bded5d25Smrg## Main body of $CONFIG_STATUS script. ## 5201bded5d25Smrg## ----------------------------------- ## 5202bded5d25Smrg_ASEOF 5203bded5d25Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 52047da8b7e3Smrg 5205bded5d25Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5206bded5d25Smrg# Save the log message, to keep $0 and so on meaningful, and to 52077da8b7e3Smrg# report actual input values of CONFIG_FILES etc. instead of their 5208123e2cc7Smrg# values after options handling. 5209123e2cc7Smrgac_log=" 5210bded5d25SmrgThis file was extended by xrefresh $as_me 1.0.4, which was 5211bded5d25Smrggenerated by GNU Autoconf 2.68. Invocation command line was 52127da8b7e3Smrg 52137da8b7e3Smrg CONFIG_FILES = $CONFIG_FILES 52147da8b7e3Smrg CONFIG_HEADERS = $CONFIG_HEADERS 52157da8b7e3Smrg CONFIG_LINKS = $CONFIG_LINKS 52167da8b7e3Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 52177da8b7e3Smrg $ $0 $@ 52187da8b7e3Smrg 5219123e2cc7Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5220123e2cc7Smrg" 5221123e2cc7Smrg 52227da8b7e3Smrg_ACEOF 52237da8b7e3Smrg 5224123e2cc7Smrgcase $ac_config_files in *" 5225123e2cc7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5226123e2cc7Smrgesac 52277da8b7e3Smrg 5228123e2cc7Smrgcase $ac_config_headers in *" 5229123e2cc7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5230123e2cc7Smrgesac 52317da8b7e3Smrg 52327da8b7e3Smrg 5233123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5234123e2cc7Smrg# Files that config.status was made for. 5235123e2cc7Smrgconfig_files="$ac_config_files" 5236123e2cc7Smrgconfig_headers="$ac_config_headers" 5237123e2cc7Smrgconfig_commands="$ac_config_commands" 52387da8b7e3Smrg 5239123e2cc7Smrg_ACEOF 52407da8b7e3Smrg 5241123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52427da8b7e3Smrgac_cs_usage="\ 5243bded5d25Smrg\`$as_me' instantiates files and other configuration actions 5244bded5d25Smrgfrom templates according to the current configuration. Unless the files 5245bded5d25Smrgand actions are specified as TAGs, all are instantiated by default. 52467da8b7e3Smrg 5247bded5d25SmrgUsage: $0 [OPTION]... [TAG]... 52487da8b7e3Smrg 52497da8b7e3Smrg -h, --help print this help, then exit 5250123e2cc7Smrg -V, --version print version number and configuration settings, then exit 5251bded5d25Smrg --config print configuration, then exit 5252123e2cc7Smrg -q, --quiet, --silent 5253123e2cc7Smrg do not print progress messages 52547da8b7e3Smrg -d, --debug don't remove temporary files 52557da8b7e3Smrg --recheck update $as_me by reconfiguring in the same conditions 5256123e2cc7Smrg --file=FILE[:TEMPLATE] 5257123e2cc7Smrg instantiate the configuration file FILE 5258123e2cc7Smrg --header=FILE[:TEMPLATE] 5259123e2cc7Smrg instantiate the configuration header FILE 52607da8b7e3Smrg 52617da8b7e3SmrgConfiguration files: 52627da8b7e3Smrg$config_files 52637da8b7e3Smrg 52647da8b7e3SmrgConfiguration headers: 52657da8b7e3Smrg$config_headers 52667da8b7e3Smrg 52677da8b7e3SmrgConfiguration commands: 52687da8b7e3Smrg$config_commands 52697da8b7e3Smrg 5270bded5d25SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 52717da8b7e3Smrg 5272123e2cc7Smrg_ACEOF 5273123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5274bded5d25Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 52757da8b7e3Smrgac_cs_version="\\ 5276bded5d25Smrgxrefresh config.status 1.0.4 5277bded5d25Smrgconfigured by $0, generated by GNU Autoconf 2.68, 5278bded5d25Smrg with options \\"\$ac_cs_config\\" 52797da8b7e3Smrg 5280bded5d25SmrgCopyright (C) 2010 Free Software Foundation, Inc. 52817da8b7e3SmrgThis config.status script is free software; the Free Software Foundation 52827da8b7e3Smrggives unlimited permission to copy, distribute and modify it." 5283123e2cc7Smrg 5284123e2cc7Smrgac_pwd='$ac_pwd' 5285123e2cc7Smrgsrcdir='$srcdir' 5286123e2cc7SmrgINSTALL='$INSTALL' 5287123e2cc7SmrgMKDIR_P='$MKDIR_P' 5288123e2cc7SmrgAWK='$AWK' 5289123e2cc7Smrgtest -n "\$AWK" || AWK=awk 52907da8b7e3Smrg_ACEOF 52917da8b7e3Smrg 5292123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5293123e2cc7Smrg# The default lists apply if the user does not specify any file. 52947da8b7e3Smrgac_need_defaults=: 52957da8b7e3Smrgwhile test $# != 0 52967da8b7e3Smrgdo 52977da8b7e3Smrg case $1 in 5298bded5d25Smrg --*=?*) 5299123e2cc7Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5300123e2cc7Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53017da8b7e3Smrg ac_shift=: 53027da8b7e3Smrg ;; 5303bded5d25Smrg --*=) 5304bded5d25Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5305bded5d25Smrg ac_optarg= 5306bded5d25Smrg ac_shift=: 5307bded5d25Smrg ;; 5308123e2cc7Smrg *) 53097da8b7e3Smrg ac_option=$1 53107da8b7e3Smrg ac_optarg=$2 53117da8b7e3Smrg ac_shift=shift 53127da8b7e3Smrg ;; 53137da8b7e3Smrg esac 53147da8b7e3Smrg 53157da8b7e3Smrg case $ac_option in 53167da8b7e3Smrg # Handling of the options. 53177da8b7e3Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53187da8b7e3Smrg ac_cs_recheck=: ;; 5319123e2cc7Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5320123e2cc7Smrg $as_echo "$ac_cs_version"; exit ;; 5321bded5d25Smrg --config | --confi | --conf | --con | --co | --c ) 5322bded5d25Smrg $as_echo "$ac_cs_config"; exit ;; 5323123e2cc7Smrg --debug | --debu | --deb | --de | --d | -d ) 53247da8b7e3Smrg debug=: ;; 53257da8b7e3Smrg --file | --fil | --fi | --f ) 53267da8b7e3Smrg $ac_shift 5327123e2cc7Smrg case $ac_optarg in 5328123e2cc7Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5329bded5d25Smrg '') as_fn_error $? "missing file argument" ;; 5330123e2cc7Smrg esac 5331bded5d25Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 53327da8b7e3Smrg ac_need_defaults=false;; 53337da8b7e3Smrg --header | --heade | --head | --hea ) 53347da8b7e3Smrg $ac_shift 5335123e2cc7Smrg case $ac_optarg in 5336123e2cc7Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5337123e2cc7Smrg esac 5338bded5d25Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 53397da8b7e3Smrg ac_need_defaults=false;; 5340123e2cc7Smrg --he | --h) 5341123e2cc7Smrg # Conflict between --help and --header 5342bded5d25Smrg as_fn_error $? "ambiguous option: \`$1' 5343bded5d25SmrgTry \`$0 --help' for more information.";; 5344123e2cc7Smrg --help | --hel | -h ) 5345123e2cc7Smrg $as_echo "$ac_cs_usage"; exit ;; 53467da8b7e3Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53477da8b7e3Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 53487da8b7e3Smrg ac_cs_silent=: ;; 53497da8b7e3Smrg 53507da8b7e3Smrg # This is an error. 5351bded5d25Smrg -*) as_fn_error $? "unrecognized option: \`$1' 5352bded5d25SmrgTry \`$0 --help' for more information." ;; 53537da8b7e3Smrg 5354bded5d25Smrg *) as_fn_append ac_config_targets " $1" 5355123e2cc7Smrg ac_need_defaults=false ;; 53567da8b7e3Smrg 53577da8b7e3Smrg esac 53587da8b7e3Smrg shift 53597da8b7e3Smrgdone 53607da8b7e3Smrg 53617da8b7e3Smrgac_configure_extra_args= 53627da8b7e3Smrg 53637da8b7e3Smrgif $ac_cs_silent; then 53647da8b7e3Smrg exec 6>/dev/null 53657da8b7e3Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 53667da8b7e3Smrgfi 53677da8b7e3Smrg 53687da8b7e3Smrg_ACEOF 5369123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53707da8b7e3Smrgif \$ac_cs_recheck; then 5371123e2cc7Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5372123e2cc7Smrg shift 5373123e2cc7Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5374123e2cc7Smrg CONFIG_SHELL='$SHELL' 5375123e2cc7Smrg export CONFIG_SHELL 5376123e2cc7Smrg exec "\$@" 53777da8b7e3Smrgfi 53787da8b7e3Smrg 53797da8b7e3Smrg_ACEOF 5380123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5381123e2cc7Smrgexec 5>>config.log 5382123e2cc7Smrg{ 5383123e2cc7Smrg echo 5384123e2cc7Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5385123e2cc7Smrg## Running $as_me. ## 5386123e2cc7Smrg_ASBOX 5387123e2cc7Smrg $as_echo "$ac_log" 5388123e2cc7Smrg} >&5 53897da8b7e3Smrg 5390123e2cc7Smrg_ACEOF 5391123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53927da8b7e3Smrg# 5393123e2cc7Smrg# INIT-COMMANDS 53947da8b7e3Smrg# 53957da8b7e3SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 53967da8b7e3Smrg 53977da8b7e3Smrg_ACEOF 53987da8b7e3Smrg 5399123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54007da8b7e3Smrg 5401123e2cc7Smrg# Handling of arguments. 54027da8b7e3Smrgfor ac_config_target in $ac_config_targets 54037da8b7e3Smrgdo 5404123e2cc7Smrg case $ac_config_target in 5405123e2cc7Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5406123e2cc7Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5407123e2cc7Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5408123e2cc7Smrg 5409bded5d25Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 54107da8b7e3Smrg esac 54117da8b7e3Smrgdone 54127da8b7e3Smrg 5413123e2cc7Smrg 54147da8b7e3Smrg# If the user did not use the arguments to specify the items to instantiate, 54157da8b7e3Smrg# then the envvar interface is used. Set only those that are not. 54167da8b7e3Smrg# We use the long form for the default assignment because of an extremely 54177da8b7e3Smrg# bizarre bug on SunOS 4.1.3. 54187da8b7e3Smrgif $ac_need_defaults; then 54197da8b7e3Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 54207da8b7e3Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 54217da8b7e3Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 54227da8b7e3Smrgfi 54237da8b7e3Smrg 54247da8b7e3Smrg# Have a temporary directory for convenience. Make it in the build tree 5425123e2cc7Smrg# simply because there is no reason against having it here, and in addition, 54267da8b7e3Smrg# creating and moving files from /tmp can sometimes cause problems. 5427123e2cc7Smrg# Hook for its removal unless debugging. 5428123e2cc7Smrg# Note that there is a small window in which the directory will not be cleaned: 5429123e2cc7Smrg# after its creation but before its name has been assigned to `$tmp'. 54307da8b7e3Smrg$debug || 54317da8b7e3Smrg{ 5432bded5d25Smrg tmp= ac_tmp= 5433123e2cc7Smrg trap 'exit_status=$? 5434bded5d25Smrg : "${ac_tmp:=$tmp}" 5435bded5d25Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5436123e2cc7Smrg' 0 5437bded5d25Smrg trap 'as_fn_exit 1' 1 2 13 15 54387da8b7e3Smrg} 54397da8b7e3Smrg# Create a (secure) tmp directory for tmp files. 54407da8b7e3Smrg 54417da8b7e3Smrg{ 5442123e2cc7Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5443bded5d25Smrg test -d "$tmp" 54447da8b7e3Smrg} || 54457da8b7e3Smrg{ 5446123e2cc7Smrg tmp=./conf$$-$RANDOM 5447123e2cc7Smrg (umask 077 && mkdir "$tmp") 5448bded5d25Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5449bded5d25Smrgac_tmp=$tmp 54507da8b7e3Smrg 5451123e2cc7Smrg# Set up the scripts for CONFIG_FILES section. 5452123e2cc7Smrg# No need to generate them if there are no CONFIG_FILES. 5453123e2cc7Smrg# This happens for instance with `./config.status config.h'. 5454123e2cc7Smrgif test -n "$CONFIG_FILES"; then 5455123e2cc7Smrg 5456123e2cc7Smrg 5457bded5d25Smrgac_cr=`echo X | tr X '\015'` 5458bded5d25Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 5459bded5d25Smrg# But we know of no other shell where ac_cr would be empty at this 5460bded5d25Smrg# point, so we can use a bashism as a fallback. 5461bded5d25Smrgif test "x$ac_cr" = x; then 5462bded5d25Smrg eval ac_cr=\$\'\\r\' 5463bded5d25Smrgfi 5464123e2cc7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5465123e2cc7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5466123e2cc7Smrg ac_cs_awk_cr='\\r' 5467123e2cc7Smrgelse 5468123e2cc7Smrg ac_cs_awk_cr=$ac_cr 5469123e2cc7Smrgfi 5470123e2cc7Smrg 5471bded5d25Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 54727da8b7e3Smrg_ACEOF 54737da8b7e3Smrg 54747da8b7e3Smrg 5475123e2cc7Smrg{ 5476123e2cc7Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 5477123e2cc7Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5478123e2cc7Smrg echo "_ACEOF" 5479123e2cc7Smrg} >conf$$subs.sh || 5480bded5d25Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5481bded5d25Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5482123e2cc7Smrgac_delim='%!_!# ' 5483123e2cc7Smrgfor ac_last_try in false false false false false :; do 5484123e2cc7Smrg . ./conf$$subs.sh || 5485bded5d25Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54867da8b7e3Smrg 5487123e2cc7Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5488123e2cc7Smrg if test $ac_delim_n = $ac_delim_num; then 5489123e2cc7Smrg break 5490123e2cc7Smrg elif $ac_last_try; then 5491bded5d25Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5492123e2cc7Smrg else 5493123e2cc7Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5494123e2cc7Smrg fi 5495123e2cc7Smrgdone 5496123e2cc7Smrgrm -f conf$$subs.sh 54977da8b7e3Smrg 5498123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5499bded5d25Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 55007da8b7e3Smrg_ACEOF 5501123e2cc7Smrgsed -n ' 5502123e2cc7Smrgh 5503123e2cc7Smrgs/^/S["/; s/!.*/"]=/ 5504123e2cc7Smrgp 5505123e2cc7Smrgg 5506123e2cc7Smrgs/^[^!]*!// 5507123e2cc7Smrg:repl 5508123e2cc7Smrgt repl 5509123e2cc7Smrgs/'"$ac_delim"'$// 5510123e2cc7Smrgt delim 5511123e2cc7Smrg:nl 5512123e2cc7Smrgh 5513bded5d25Smrgs/\(.\{148\}\)..*/\1/ 5514123e2cc7Smrgt more1 5515123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5516123e2cc7Smrgp 5517123e2cc7Smrgn 5518123e2cc7Smrgb repl 5519123e2cc7Smrg:more1 5520123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5521123e2cc7Smrgp 5522123e2cc7Smrgg 5523123e2cc7Smrgs/.\{148\}// 5524123e2cc7Smrgt nl 5525123e2cc7Smrg:delim 5526123e2cc7Smrgh 5527bded5d25Smrgs/\(.\{148\}\)..*/\1/ 5528123e2cc7Smrgt more2 5529123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 5530123e2cc7Smrgp 5531123e2cc7Smrgb 5532123e2cc7Smrg:more2 5533123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5534123e2cc7Smrgp 5535123e2cc7Smrgg 5536123e2cc7Smrgs/.\{148\}// 5537123e2cc7Smrgt delim 5538123e2cc7Smrg' <conf$$subs.awk | sed ' 5539123e2cc7Smrg/^[^""]/{ 5540123e2cc7Smrg N 5541123e2cc7Smrg s/\n// 5542123e2cc7Smrg} 5543123e2cc7Smrg' >>$CONFIG_STATUS || ac_write_fail=1 5544123e2cc7Smrgrm -f conf$$subs.awk 5545123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5546123e2cc7Smrg_ACAWK 5547bded5d25Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5548123e2cc7Smrg for (key in S) S_is_set[key] = 1 5549123e2cc7Smrg FS = "" 55507da8b7e3Smrg 5551123e2cc7Smrg} 5552123e2cc7Smrg{ 5553123e2cc7Smrg line = $ 0 5554123e2cc7Smrg nfields = split(line, field, "@") 5555123e2cc7Smrg substed = 0 5556123e2cc7Smrg len = length(field[1]) 5557123e2cc7Smrg for (i = 2; i < nfields; i++) { 5558123e2cc7Smrg key = field[i] 5559123e2cc7Smrg keylen = length(key) 5560123e2cc7Smrg if (S_is_set[key]) { 5561123e2cc7Smrg value = S[key] 5562123e2cc7Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5563123e2cc7Smrg len += length(value) + length(field[++i]) 5564123e2cc7Smrg substed = 1 5565123e2cc7Smrg } else 5566123e2cc7Smrg len += 1 + keylen 5567123e2cc7Smrg } 5568123e2cc7Smrg 5569123e2cc7Smrg print line 5570123e2cc7Smrg} 5571123e2cc7Smrg 5572123e2cc7Smrg_ACAWK 5573123e2cc7Smrg_ACEOF 5574123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5575123e2cc7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5576123e2cc7Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5577123e2cc7Smrgelse 5578123e2cc7Smrg cat 5579bded5d25Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5580bded5d25Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5581123e2cc7Smrg_ACEOF 5582123e2cc7Smrg 5583bded5d25Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5584bded5d25Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5585123e2cc7Smrg# trailing colons and then remove the whole line if VPATH becomes empty 5586123e2cc7Smrg# (actually we leave an empty line to preserve line numbers). 5587123e2cc7Smrgif test "x$srcdir" = x.; then 5588bded5d25Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5589bded5d25Smrgh 5590bded5d25Smrgs/// 5591bded5d25Smrgs/^/:/ 5592bded5d25Smrgs/[ ]*$/:/ 5593bded5d25Smrgs/:\$(srcdir):/:/g 5594bded5d25Smrgs/:\${srcdir}:/:/g 5595bded5d25Smrgs/:@srcdir@:/:/g 5596bded5d25Smrgs/^:*// 5597123e2cc7Smrgs/:*$// 5598bded5d25Smrgx 5599bded5d25Smrgs/\(=[ ]*\).*/\1/ 5600bded5d25SmrgG 5601bded5d25Smrgs/\n// 5602123e2cc7Smrgs/^[^=]*=[ ]*$// 5603123e2cc7Smrg}' 5604123e2cc7Smrgfi 5605123e2cc7Smrg 5606123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56077da8b7e3Smrgfi # test -n "$CONFIG_FILES" 56087da8b7e3Smrg 5609123e2cc7Smrg# Set up the scripts for CONFIG_HEADERS section. 5610123e2cc7Smrg# No need to generate them if there are no CONFIG_HEADERS. 5611123e2cc7Smrg# This happens for instance with `./config.status Makefile'. 5612123e2cc7Smrgif test -n "$CONFIG_HEADERS"; then 5613bded5d25Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 5614123e2cc7SmrgBEGIN { 56157da8b7e3Smrg_ACEOF 5616123e2cc7Smrg 5617123e2cc7Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 5618123e2cc7Smrg# here-document in config.status, that substitutes the proper values into 5619123e2cc7Smrg# config.h.in to produce config.h. 5620123e2cc7Smrg 5621123e2cc7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 5622123e2cc7Smrg# handling of long lines. 5623123e2cc7Smrgac_delim='%!_!# ' 5624123e2cc7Smrgfor ac_last_try in false false :; do 5625bded5d25Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5626bded5d25Smrg if test -z "$ac_tt"; then 5627123e2cc7Smrg break 5628123e2cc7Smrg elif $ac_last_try; then 5629bded5d25Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5630123e2cc7Smrg else 5631123e2cc7Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5632123e2cc7Smrg fi 5633123e2cc7Smrgdone 5634123e2cc7Smrg 5635123e2cc7Smrg# For the awk script, D is an array of macro values keyed by name, 5636123e2cc7Smrg# likewise P contains macro parameters if any. Preserve backslash 5637123e2cc7Smrg# newline sequences. 5638123e2cc7Smrg 5639123e2cc7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5640123e2cc7Smrgsed -n ' 5641123e2cc7Smrgs/.\{148\}/&'"$ac_delim"'/g 5642123e2cc7Smrgt rset 5643123e2cc7Smrg:rset 5644123e2cc7Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 5645123e2cc7Smrgt def 5646123e2cc7Smrgd 5647123e2cc7Smrg:def 5648123e2cc7Smrgs/\\$// 5649123e2cc7Smrgt bsnl 5650123e2cc7Smrgs/["\\]/\\&/g 5651123e2cc7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5652123e2cc7SmrgD["\1"]=" \3"/p 5653123e2cc7Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5654123e2cc7Smrgd 5655123e2cc7Smrg:bsnl 5656123e2cc7Smrgs/["\\]/\\&/g 5657123e2cc7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5658123e2cc7SmrgD["\1"]=" \3\\\\\\n"\\/p 5659123e2cc7Smrgt cont 5660123e2cc7Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5661123e2cc7Smrgt cont 5662123e2cc7Smrgd 5663123e2cc7Smrg:cont 5664123e2cc7Smrgn 5665123e2cc7Smrgs/.\{148\}/&'"$ac_delim"'/g 5666123e2cc7Smrgt clear 5667123e2cc7Smrg:clear 5668123e2cc7Smrgs/\\$// 5669123e2cc7Smrgt bsnlc 5670123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 5671123e2cc7Smrgd 5672123e2cc7Smrg:bsnlc 5673123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5674123e2cc7Smrgb cont 5675123e2cc7Smrg' <confdefs.h | sed ' 5676123e2cc7Smrgs/'"$ac_delim"'/"\\\ 5677123e2cc7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 5678123e2cc7Smrg 5679123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5680123e2cc7Smrg for (key in D) D_is_set[key] = 1 5681123e2cc7Smrg FS = "" 5682123e2cc7Smrg} 5683123e2cc7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5684123e2cc7Smrg line = \$ 0 5685123e2cc7Smrg split(line, arg, " ") 5686123e2cc7Smrg if (arg[1] == "#") { 5687123e2cc7Smrg defundef = arg[2] 5688123e2cc7Smrg mac1 = arg[3] 5689123e2cc7Smrg } else { 5690123e2cc7Smrg defundef = substr(arg[1], 2) 5691123e2cc7Smrg mac1 = arg[2] 5692123e2cc7Smrg } 5693123e2cc7Smrg split(mac1, mac2, "(") #) 5694123e2cc7Smrg macro = mac2[1] 5695123e2cc7Smrg prefix = substr(line, 1, index(line, defundef) - 1) 5696123e2cc7Smrg if (D_is_set[macro]) { 5697123e2cc7Smrg # Preserve the white space surrounding the "#". 5698123e2cc7Smrg print prefix "define", macro P[macro] D[macro] 5699123e2cc7Smrg next 5700123e2cc7Smrg } else { 5701123e2cc7Smrg # Replace #undef with comments. This is necessary, for example, 5702123e2cc7Smrg # in the case of _POSIX_SOURCE, which is predefined and required 5703123e2cc7Smrg # on some systems where configure will not decide to define it. 5704123e2cc7Smrg if (defundef == "undef") { 5705123e2cc7Smrg print "/*", prefix defundef, macro, "*/" 5706123e2cc7Smrg next 5707123e2cc7Smrg } 5708123e2cc7Smrg } 5709123e2cc7Smrg} 5710123e2cc7Smrg{ print } 5711123e2cc7Smrg_ACAWK 5712123e2cc7Smrg_ACEOF 5713123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5714bded5d25Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5715123e2cc7Smrgfi # test -n "$CONFIG_HEADERS" 5716123e2cc7Smrg 5717123e2cc7Smrg 5718123e2cc7Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 5719123e2cc7Smrgshift 5720123e2cc7Smrgfor ac_tag 5721123e2cc7Smrgdo 5722123e2cc7Smrg case $ac_tag in 5723123e2cc7Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 5724123e2cc7Smrg esac 5725123e2cc7Smrg case $ac_mode$ac_tag in 5726123e2cc7Smrg :[FHL]*:*);; 5727bded5d25Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 5728123e2cc7Smrg :[FH]-) ac_tag=-:-;; 5729123e2cc7Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5730123e2cc7Smrg esac 5731123e2cc7Smrg ac_save_IFS=$IFS 5732123e2cc7Smrg IFS=: 5733123e2cc7Smrg set x $ac_tag 5734123e2cc7Smrg IFS=$ac_save_IFS 5735123e2cc7Smrg shift 5736123e2cc7Smrg ac_file=$1 5737123e2cc7Smrg shift 5738123e2cc7Smrg 5739123e2cc7Smrg case $ac_mode in 5740123e2cc7Smrg :L) ac_source=$1;; 5741123e2cc7Smrg :[FH]) 5742123e2cc7Smrg ac_file_inputs= 5743123e2cc7Smrg for ac_f 5744123e2cc7Smrg do 5745123e2cc7Smrg case $ac_f in 5746bded5d25Smrg -) ac_f="$ac_tmp/stdin";; 5747123e2cc7Smrg *) # Look for the file first in the build tree, then in the source tree 5748123e2cc7Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 5749123e2cc7Smrg # because $ac_f cannot contain `:'. 5750123e2cc7Smrg test -f "$ac_f" || 5751123e2cc7Smrg case $ac_f in 5752123e2cc7Smrg [\\/$]*) false;; 5753123e2cc7Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5754123e2cc7Smrg esac || 5755bded5d25Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 5756123e2cc7Smrg esac 5757123e2cc7Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5758bded5d25Smrg as_fn_append ac_file_inputs " '$ac_f'" 5759123e2cc7Smrg done 5760123e2cc7Smrg 5761123e2cc7Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 5762123e2cc7Smrg # use $as_me), people would be surprised to read: 5763123e2cc7Smrg # /* config.h. Generated by config.status. */ 5764123e2cc7Smrg configure_input='Generated from '` 5765123e2cc7Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5766123e2cc7Smrg `' by configure.' 5767123e2cc7Smrg if test x"$ac_file" != x-; then 5768123e2cc7Smrg configure_input="$ac_file. $configure_input" 5769bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5770123e2cc7Smrg$as_echo "$as_me: creating $ac_file" >&6;} 5771123e2cc7Smrg fi 5772123e2cc7Smrg # Neutralize special characters interpreted by sed in replacement strings. 5773123e2cc7Smrg case $configure_input in #( 5774123e2cc7Smrg *\&* | *\|* | *\\* ) 5775123e2cc7Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 5776123e2cc7Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 5777123e2cc7Smrg *) ac_sed_conf_input=$configure_input;; 5778123e2cc7Smrg esac 5779123e2cc7Smrg 5780123e2cc7Smrg case $ac_tag in 5781bded5d25Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 5782bded5d25Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5783123e2cc7Smrg esac 5784123e2cc7Smrg ;; 57857da8b7e3Smrg esac 57867da8b7e3Smrg 5787123e2cc7Smrg ac_dir=`$as_dirname -- "$ac_file" || 57887da8b7e3Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 57897da8b7e3Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 57907da8b7e3Smrg X"$ac_file" : 'X\(//\)$' \| \ 5791123e2cc7Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5792123e2cc7Smrg$as_echo X"$ac_file" | 5793123e2cc7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5794123e2cc7Smrg s//\1/ 5795123e2cc7Smrg q 5796123e2cc7Smrg } 5797123e2cc7Smrg /^X\(\/\/\)[^/].*/{ 5798123e2cc7Smrg s//\1/ 5799123e2cc7Smrg q 5800123e2cc7Smrg } 5801123e2cc7Smrg /^X\(\/\/\)$/{ 5802123e2cc7Smrg s//\1/ 5803123e2cc7Smrg q 5804123e2cc7Smrg } 5805123e2cc7Smrg /^X\(\/\).*/{ 5806123e2cc7Smrg s//\1/ 5807123e2cc7Smrg q 5808123e2cc7Smrg } 5809123e2cc7Smrg s/.*/./; q'` 5810bded5d25Smrg as_dir="$ac_dir"; as_fn_mkdir_p 58117da8b7e3Smrg ac_builddir=. 58127da8b7e3Smrg 5813123e2cc7Smrgcase "$ac_dir" in 5814123e2cc7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5815123e2cc7Smrg*) 5816123e2cc7Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5817123e2cc7Smrg # A ".." for each directory in $ac_dir_suffix. 5818123e2cc7Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5819123e2cc7Smrg case $ac_top_builddir_sub in 5820123e2cc7Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5821123e2cc7Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5822123e2cc7Smrg esac ;; 5823123e2cc7Smrgesac 5824123e2cc7Smrgac_abs_top_builddir=$ac_pwd 5825123e2cc7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 5826123e2cc7Smrg# for backward compatibility: 5827123e2cc7Smrgac_top_builddir=$ac_top_build_prefix 58287da8b7e3Smrg 58297da8b7e3Smrgcase $srcdir in 5830123e2cc7Smrg .) # We are building in place. 58317da8b7e3Smrg ac_srcdir=. 5832123e2cc7Smrg ac_top_srcdir=$ac_top_builddir_sub 5833123e2cc7Smrg ac_abs_top_srcdir=$ac_pwd ;; 5834123e2cc7Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 58357da8b7e3Smrg ac_srcdir=$srcdir$ac_dir_suffix; 5836123e2cc7Smrg ac_top_srcdir=$srcdir 5837123e2cc7Smrg ac_abs_top_srcdir=$srcdir ;; 5838123e2cc7Smrg *) # Relative name. 5839123e2cc7Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5840123e2cc7Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 5841123e2cc7Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 58427da8b7e3Smrgesac 5843123e2cc7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 58447da8b7e3Smrg 58457da8b7e3Smrg 5846123e2cc7Smrg case $ac_mode in 5847123e2cc7Smrg :F) 5848123e2cc7Smrg # 5849123e2cc7Smrg # CONFIG_FILE 5850123e2cc7Smrg # 58517da8b7e3Smrg 58527da8b7e3Smrg case $INSTALL in 58537da8b7e3Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5854123e2cc7Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 58557da8b7e3Smrg esac 5856123e2cc7Smrg ac_MKDIR_P=$MKDIR_P 5857123e2cc7Smrg case $MKDIR_P in 5858123e2cc7Smrg [\\/$]* | ?:[\\/]* ) ;; 5859123e2cc7Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 5860123e2cc7Smrg esac 5861123e2cc7Smrg_ACEOF 58627da8b7e3Smrg 5863123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5864123e2cc7Smrg# If the template does not know about datarootdir, expand it. 5865123e2cc7Smrg# FIXME: This hack should be removed a few years after 2.60. 5866123e2cc7Smrgac_datarootdir_hack=; ac_datarootdir_seen= 5867123e2cc7Smrgac_sed_dataroot=' 5868123e2cc7Smrg/datarootdir/ { 5869123e2cc7Smrg p 5870123e2cc7Smrg q 5871123e2cc7Smrg} 5872123e2cc7Smrg/@datadir@/p 5873123e2cc7Smrg/@docdir@/p 5874123e2cc7Smrg/@infodir@/p 5875123e2cc7Smrg/@localedir@/p 5876bded5d25Smrg/@mandir@/p' 5877123e2cc7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5878123e2cc7Smrg*datarootdir*) ac_datarootdir_seen=yes;; 5879123e2cc7Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5880bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5881123e2cc7Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5882123e2cc7Smrg_ACEOF 5883123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5884123e2cc7Smrg ac_datarootdir_hack=' 5885123e2cc7Smrg s&@datadir@&$datadir&g 5886123e2cc7Smrg s&@docdir@&$docdir&g 5887123e2cc7Smrg s&@infodir@&$infodir&g 5888123e2cc7Smrg s&@localedir@&$localedir&g 5889123e2cc7Smrg s&@mandir@&$mandir&g 5890bded5d25Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 5891123e2cc7Smrgesac 58927da8b7e3Smrg_ACEOF 5893123e2cc7Smrg 5894123e2cc7Smrg# Neutralize VPATH when `$srcdir' = `.'. 5895123e2cc7Smrg# Shell code in configure.ac might set extrasub. 5896123e2cc7Smrg# FIXME: do we really want to maintain this feature? 5897123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5898123e2cc7Smrgac_sed_extra="$ac_vpsub 58997da8b7e3Smrg$extrasub 59007da8b7e3Smrg_ACEOF 5901123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59027da8b7e3Smrg:t 59037da8b7e3Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5904123e2cc7Smrgs|@configure_input@|$ac_sed_conf_input|;t t 5905123e2cc7Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 5906123e2cc7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 5907123e2cc7Smrgs&@srcdir@&$ac_srcdir&;t t 5908123e2cc7Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 5909123e2cc7Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 5910123e2cc7Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5911123e2cc7Smrgs&@builddir@&$ac_builddir&;t t 5912123e2cc7Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 5913123e2cc7Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5914123e2cc7Smrgs&@INSTALL@&$ac_INSTALL&;t t 5915123e2cc7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 5916123e2cc7Smrg$ac_datarootdir_hack 5917123e2cc7Smrg" 5918bded5d25Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 5919bded5d25Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 59207da8b7e3Smrg 5921123e2cc7Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5922bded5d25Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 5923bded5d25Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 5924bded5d25Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 5925bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5926bded5d25Smrgwhich seems to be undefined. Please make sure it is defined" >&5 5927123e2cc7Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5928bded5d25Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 59297da8b7e3Smrg 5930bded5d25Smrg rm -f "$ac_tmp/stdin" 59317da8b7e3Smrg case $ac_file in 5932bded5d25Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 5933bded5d25Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 5934123e2cc7Smrg esac \ 5935bded5d25Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5936123e2cc7Smrg ;; 5937123e2cc7Smrg :H) 5938123e2cc7Smrg # 5939123e2cc7Smrg # CONFIG_HEADER 5940123e2cc7Smrg # 59417da8b7e3Smrg if test x"$ac_file" != x-; then 5942123e2cc7Smrg { 5943123e2cc7Smrg $as_echo "/* $configure_input */" \ 5944bded5d25Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 5945bded5d25Smrg } >"$ac_tmp/config.h" \ 5946bded5d25Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5947bded5d25Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 5948bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5949123e2cc7Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 59507da8b7e3Smrg else 5951123e2cc7Smrg rm -f "$ac_file" 5952bded5d25Smrg mv "$ac_tmp/config.h" "$ac_file" \ 5953bded5d25Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 59547da8b7e3Smrg fi 59557da8b7e3Smrg else 5956123e2cc7Smrg $as_echo "/* $configure_input */" \ 5957bded5d25Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 5958bded5d25Smrg || as_fn_error $? "could not create -" "$LINENO" 5 59597da8b7e3Smrg fi 5960123e2cc7Smrg# Compute "$ac_file"'s index in $config_headers. 5961123e2cc7Smrg_am_arg="$ac_file" 59627da8b7e3Smrg_am_stamp_count=1 59637da8b7e3Smrgfor _am_header in $config_headers :; do 59647da8b7e3Smrg case $_am_header in 5965123e2cc7Smrg $_am_arg | $_am_arg:* ) 59667da8b7e3Smrg break ;; 59677da8b7e3Smrg * ) 59687da8b7e3Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 59697da8b7e3Smrg esac 59707da8b7e3Smrgdone 5971123e2cc7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 5972123e2cc7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5973123e2cc7Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 5974123e2cc7Smrg X"$_am_arg" : 'X\(//\)$' \| \ 5975123e2cc7Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 5976123e2cc7Smrg$as_echo X"$_am_arg" | 5977123e2cc7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5978123e2cc7Smrg s//\1/ 5979123e2cc7Smrg q 5980123e2cc7Smrg } 5981123e2cc7Smrg /^X\(\/\/\)[^/].*/{ 5982123e2cc7Smrg s//\1/ 5983123e2cc7Smrg q 5984123e2cc7Smrg } 5985123e2cc7Smrg /^X\(\/\/\)$/{ 5986123e2cc7Smrg s//\1/ 5987123e2cc7Smrg q 5988123e2cc7Smrg } 5989123e2cc7Smrg /^X\(\/\).*/{ 5990123e2cc7Smrg s//\1/ 5991123e2cc7Smrg q 5992123e2cc7Smrg } 5993123e2cc7Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 5994123e2cc7Smrg ;; 59957da8b7e3Smrg 5996bded5d25Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 5997123e2cc7Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 5998123e2cc7Smrg ;; 5999123e2cc7Smrg esac 60007da8b7e3Smrg 60017da8b7e3Smrg 6002123e2cc7Smrg case $ac_file$ac_mode in 6003123e2cc7Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6004123e2cc7Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6005123e2cc7Smrg # are listed without --file. Let's play safe and only enable the eval 6006123e2cc7Smrg # if we detect the quoting. 6007123e2cc7Smrg case $CONFIG_FILES in 6008123e2cc7Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6009123e2cc7Smrg *) set x $CONFIG_FILES ;; 6010123e2cc7Smrg esac 6011123e2cc7Smrg shift 6012123e2cc7Smrg for mf 6013123e2cc7Smrg do 6014123e2cc7Smrg # Strip MF so we end up with the name of the file. 6015123e2cc7Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6016123e2cc7Smrg # Check whether this is an Automake generated Makefile or not. 6017123e2cc7Smrg # We used to match only the files named `Makefile.in', but 6018123e2cc7Smrg # some people rename them; so instead we look at the file content. 6019123e2cc7Smrg # Grep'ing the first line is not enough: some people post-process 6020123e2cc7Smrg # each Makefile.in and add a new line on top of each file to say so. 6021123e2cc7Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6022123e2cc7Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6023123e2cc7Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6024123e2cc7Smrg dirpart=`$as_dirname -- "$mf" || 60257da8b7e3Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 60267da8b7e3Smrg X"$mf" : 'X\(//\)[^/]' \| \ 60277da8b7e3Smrg X"$mf" : 'X\(//\)$' \| \ 6028123e2cc7Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6029123e2cc7Smrg$as_echo X"$mf" | 6030123e2cc7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6031123e2cc7Smrg s//\1/ 6032123e2cc7Smrg q 6033123e2cc7Smrg } 6034123e2cc7Smrg /^X\(\/\/\)[^/].*/{ 6035123e2cc7Smrg s//\1/ 6036123e2cc7Smrg q 6037123e2cc7Smrg } 6038123e2cc7Smrg /^X\(\/\/\)$/{ 6039123e2cc7Smrg s//\1/ 6040123e2cc7Smrg q 6041123e2cc7Smrg } 6042123e2cc7Smrg /^X\(\/\).*/{ 6043123e2cc7Smrg s//\1/ 6044123e2cc7Smrg q 6045123e2cc7Smrg } 6046123e2cc7Smrg s/.*/./; q'` 6047123e2cc7Smrg else 6048123e2cc7Smrg continue 6049123e2cc7Smrg fi 6050123e2cc7Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6051123e2cc7Smrg # from the Makefile without running `make'. 6052123e2cc7Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6053123e2cc7Smrg test -z "$DEPDIR" && continue 6054123e2cc7Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6055123e2cc7Smrg test -z "am__include" && continue 6056123e2cc7Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6057123e2cc7Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6058123e2cc7Smrg U=`sed -n 's/^U = //p' < "$mf"` 6059123e2cc7Smrg # Find all dependency output files, they are included files with 6060123e2cc7Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6061123e2cc7Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6062123e2cc7Smrg # expansion. 6063123e2cc7Smrg for file in `sed -n " 6064123e2cc7Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6065123e2cc7Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6066123e2cc7Smrg # Make sure the directory exists. 6067123e2cc7Smrg test -f "$dirpart/$file" && continue 6068123e2cc7Smrg fdir=`$as_dirname -- "$file" || 60697da8b7e3Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 60707da8b7e3Smrg X"$file" : 'X\(//\)[^/]' \| \ 60717da8b7e3Smrg X"$file" : 'X\(//\)$' \| \ 6072123e2cc7Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6073123e2cc7Smrg$as_echo X"$file" | 6074123e2cc7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6075123e2cc7Smrg s//\1/ 6076123e2cc7Smrg q 6077123e2cc7Smrg } 6078123e2cc7Smrg /^X\(\/\/\)[^/].*/{ 6079123e2cc7Smrg s//\1/ 6080123e2cc7Smrg q 6081123e2cc7Smrg } 6082123e2cc7Smrg /^X\(\/\/\)$/{ 6083123e2cc7Smrg s//\1/ 6084123e2cc7Smrg q 6085123e2cc7Smrg } 6086123e2cc7Smrg /^X\(\/\).*/{ 6087123e2cc7Smrg s//\1/ 6088123e2cc7Smrg q 6089123e2cc7Smrg } 6090123e2cc7Smrg s/.*/./; q'` 6091bded5d25Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6092123e2cc7Smrg # echo "creating $dirpart/$file" 6093123e2cc7Smrg echo '# dummy' > "$dirpart/$file" 6094123e2cc7Smrg done 60957da8b7e3Smrg done 6096123e2cc7Smrg} 60977da8b7e3Smrg ;; 6098123e2cc7Smrg 60997da8b7e3Smrg esac 6100123e2cc7Smrgdone # for ac_tag 61017da8b7e3Smrg 61027da8b7e3Smrg 6103bded5d25Smrgas_fn_exit 0 61047da8b7e3Smrg_ACEOF 61057da8b7e3Smrgac_clean_files=$ac_clean_files_save 61067da8b7e3Smrg 6107123e2cc7Smrgtest $ac_write_fail = 0 || 6108bded5d25Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6109123e2cc7Smrg 61107da8b7e3Smrg 61117da8b7e3Smrg# configure is writing to config.log, and then calls config.status. 61127da8b7e3Smrg# config.status does its own redirection, appending to config.log. 61137da8b7e3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 61147da8b7e3Smrg# by configure, so config.status won't be able to write to it; its 61157da8b7e3Smrg# output is simply discarded. So we exec the FD to /dev/null, 61167da8b7e3Smrg# effectively closing config.log, so it can be properly (re)opened and 61177da8b7e3Smrg# appended to by config.status. When coming back to configure, we 61187da8b7e3Smrg# need to make the FD available again. 61197da8b7e3Smrgif test "$no_create" != yes; then 61207da8b7e3Smrg ac_cs_success=: 61217da8b7e3Smrg ac_config_status_args= 61227da8b7e3Smrg test "$silent" = yes && 61237da8b7e3Smrg ac_config_status_args="$ac_config_status_args --quiet" 61247da8b7e3Smrg exec 5>/dev/null 61257da8b7e3Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 61267da8b7e3Smrg exec 5>>config.log 61277da8b7e3Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 61287da8b7e3Smrg # would make configure fail if this is the last instruction. 6129bded5d25Smrg $ac_cs_success || as_fn_exit 1 61307da8b7e3Smrgfi 6131123e2cc7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6132bded5d25Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6133123e2cc7Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6134123e2cc7Smrgfi 61357da8b7e3Smrg 6136