configure revision bf4a254e
1a73027baSmrg#! /bin/sh 2a73027baSmrg# Guess values for system-dependent variables and create Makefiles. 3bf4a254eSmrg# Generated by GNU Autoconf 2.65 for xinit 1.2.1. 4a73027baSmrg# 5a73027baSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6a73027baSmrg# 7bf4a254eSmrg# 8a73027baSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9bf4a254eSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10bf4a254eSmrg# Inc. 11bf4a254eSmrg# 12bf4a254eSmrg# 13a73027baSmrg# This configure script is free software; the Free Software Foundation 14a73027baSmrg# gives unlimited permission to copy, distribute and modify it. 15bf4a254eSmrg## -------------------- ## 16bf4a254eSmrg## M4sh Initialization. ## 17bf4a254eSmrg## -------------------- ## 18a73027baSmrg 19a73027baSmrg# Be more Bourne compatible 20a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 21bf4a254eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22a73027baSmrg emulate sh 23a73027baSmrg NULLCMD=: 24bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25a73027baSmrg # is contrary to our usage. Disable this feature. 26a73027baSmrg alias -g '${1+"$@"}'='"$@"' 27a73027baSmrg setopt NO_GLOB_SUBST 28a73027baSmrgelse 29bf4a254eSmrg case `(set -o) 2>/dev/null` in #( 30bf4a254eSmrg *posix*) : 31bf4a254eSmrg set -o posix ;; #( 32bf4a254eSmrg *) : 33bf4a254eSmrg ;; 34a73027baSmrgesac 35a73027baSmrgfi 36a73027baSmrg 37a73027baSmrg 38bf4a254eSmrgas_nl=' 39bf4a254eSmrg' 40bf4a254eSmrgexport as_nl 41bf4a254eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42bf4a254eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45bf4a254eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46bf4a254eSmrg# but without wasting forks for bash or zsh. 47bf4a254eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48bf4a254eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49bf4a254eSmrg as_echo='print -r --' 50bf4a254eSmrg as_echo_n='print -rn --' 51bf4a254eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52bf4a254eSmrg as_echo='printf %s\n' 53bf4a254eSmrg as_echo_n='printf %s' 54bf4a254eSmrgelse 55bf4a254eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56bf4a254eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57bf4a254eSmrg as_echo_n='/usr/ucb/echo -n' 58a73027baSmrg else 59bf4a254eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60bf4a254eSmrg as_echo_n_body='eval 61bf4a254eSmrg arg=$1; 62bf4a254eSmrg case $arg in #( 63bf4a254eSmrg *"$as_nl"*) 64bf4a254eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65bf4a254eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66bf4a254eSmrg esac; 67bf4a254eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68bf4a254eSmrg ' 69bf4a254eSmrg export as_echo_n_body 70bf4a254eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 71a73027baSmrg fi 72bf4a254eSmrg export as_echo_body 73bf4a254eSmrg as_echo='sh -c $as_echo_body as_echo' 74a73027baSmrgfi 75a73027baSmrg 76bf4a254eSmrg# The user is always right. 77bf4a254eSmrgif test "${PATH_SEPARATOR+set}" != set; then 78bf4a254eSmrg PATH_SEPARATOR=: 79bf4a254eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80bf4a254eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81bf4a254eSmrg PATH_SEPARATOR=';' 82bf4a254eSmrg } 83a73027baSmrgfi 84a73027baSmrg 85a73027baSmrg 86a73027baSmrg# IFS 87a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 88a73027baSmrg# there to prevent editors from complaining about space-tab. 89a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90a73027baSmrg# splitting by setting IFS to empty value.) 91a73027baSmrgIFS=" "" $as_nl" 92a73027baSmrg 93a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 94bf4a254eSmrgcase $0 in #(( 95a73027baSmrg *[\\/]* ) as_myself=$0 ;; 96a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97a73027baSmrgfor as_dir in $PATH 98a73027baSmrgdo 99a73027baSmrg IFS=$as_save_IFS 100a73027baSmrg test -z "$as_dir" && as_dir=. 101bf4a254eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102bf4a254eSmrg done 103a73027baSmrgIFS=$as_save_IFS 104a73027baSmrg 105a73027baSmrg ;; 106a73027baSmrgesac 107a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 108a73027baSmrg# in which case we are not to be found in the path. 109a73027baSmrgif test "x$as_myself" = x; then 110a73027baSmrg as_myself=$0 111a73027baSmrgfi 112a73027baSmrgif test ! -f "$as_myself"; then 113bf4a254eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114bf4a254eSmrg exit 1 115a73027baSmrgfi 116a73027baSmrg 117bf4a254eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 118bf4a254eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119bf4a254eSmrg# suppresses any "Segmentation fault" message there. '((' could 120bf4a254eSmrg# trigger a bug in pdksh 5.2.14. 121bf4a254eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 122bf4a254eSmrgdo eval test x\${$as_var+set} = xset \ 123bf4a254eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124a73027baSmrgdone 125a73027baSmrgPS1='$ ' 126a73027baSmrgPS2='> ' 127a73027baSmrgPS4='+ ' 128a73027baSmrg 129a73027baSmrg# NLS nuisances. 130bf4a254eSmrgLC_ALL=C 131bf4a254eSmrgexport LC_ALL 132bf4a254eSmrgLANGUAGE=C 133bf4a254eSmrgexport LANGUAGE 134bf4a254eSmrg 135bf4a254eSmrg# CDPATH. 136bf4a254eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137bf4a254eSmrg 138bf4a254eSmrgif test "x$CONFIG_SHELL" = x; then 139bf4a254eSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140bf4a254eSmrg emulate sh 141bf4a254eSmrg NULLCMD=: 142bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143bf4a254eSmrg # is contrary to our usage. Disable this feature. 144bf4a254eSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 145bf4a254eSmrg setopt NO_GLOB_SUBST 146bf4a254eSmrgelse 147bf4a254eSmrg case \`(set -o) 2>/dev/null\` in #( 148bf4a254eSmrg *posix*) : 149bf4a254eSmrg set -o posix ;; #( 150bf4a254eSmrg *) : 151bf4a254eSmrg ;; 152bf4a254eSmrgesac 153bf4a254eSmrgfi 154bf4a254eSmrg" 155bf4a254eSmrg as_required="as_fn_return () { (exit \$1); } 156bf4a254eSmrgas_fn_success () { as_fn_return 0; } 157bf4a254eSmrgas_fn_failure () { as_fn_return 1; } 158bf4a254eSmrgas_fn_ret_success () { return 0; } 159bf4a254eSmrgas_fn_ret_failure () { return 1; } 160bf4a254eSmrg 161bf4a254eSmrgexitcode=0 162bf4a254eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 163bf4a254eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164bf4a254eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165bf4a254eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166bf4a254eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167bf4a254eSmrg 168bf4a254eSmrgelse 169bf4a254eSmrg exitcode=1; echo positional parameters were not saved. 170bf4a254eSmrgfi 171bf4a254eSmrgtest x\$exitcode = x0 || exit 1" 172bf4a254eSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173bf4a254eSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174bf4a254eSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175bf4a254eSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176bf4a254eSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 177bf4a254eSmrg if (eval "$as_required") 2>/dev/null; then : 178bf4a254eSmrg as_have_required=yes 179bf4a254eSmrgelse 180bf4a254eSmrg as_have_required=no 181bf4a254eSmrgfi 182bf4a254eSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183bf4a254eSmrg 184bf4a254eSmrgelse 185bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186bf4a254eSmrgas_found=false 187bf4a254eSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188a73027baSmrgdo 189bf4a254eSmrg IFS=$as_save_IFS 190bf4a254eSmrg test -z "$as_dir" && as_dir=. 191bf4a254eSmrg as_found=: 192bf4a254eSmrg case $as_dir in #( 193bf4a254eSmrg /*) 194bf4a254eSmrg for as_base in sh bash ksh sh5; do 195bf4a254eSmrg # Try only shells that exist, to save several forks. 196bf4a254eSmrg as_shell=$as_dir/$as_base 197bf4a254eSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198bf4a254eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199bf4a254eSmrg CONFIG_SHELL=$as_shell as_have_required=yes 200bf4a254eSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201bf4a254eSmrg break 2 202bf4a254eSmrgfi 203bf4a254eSmrgfi 204bf4a254eSmrg done;; 205bf4a254eSmrg esac 206bf4a254eSmrg as_found=false 207bf4a254eSmrgdone 208bf4a254eSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209bf4a254eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210bf4a254eSmrg CONFIG_SHELL=$SHELL as_have_required=yes 211bf4a254eSmrgfi; } 212bf4a254eSmrgIFS=$as_save_IFS 213bf4a254eSmrg 214bf4a254eSmrg 215bf4a254eSmrg if test "x$CONFIG_SHELL" != x; then : 216bf4a254eSmrg # We cannot yet assume a decent shell, so we have to provide a 217bf4a254eSmrg # neutralization value for shells without unset; and this also 218bf4a254eSmrg # works around shells that cannot unset nonexistent variables. 219bf4a254eSmrg BASH_ENV=/dev/null 220bf4a254eSmrg ENV=/dev/null 221bf4a254eSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222bf4a254eSmrg export CONFIG_SHELL 223bf4a254eSmrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224bf4a254eSmrgfi 225bf4a254eSmrg 226bf4a254eSmrg if test x$as_have_required = xno; then : 227bf4a254eSmrg $as_echo "$0: This script requires a shell more modern than all" 228bf4a254eSmrg $as_echo "$0: the shells that I found on your system." 229bf4a254eSmrg if test x${ZSH_VERSION+set} = xset ; then 230bf4a254eSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231bf4a254eSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232a73027baSmrg else 233bf4a254eSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 234bf4a254eSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235bf4a254eSmrg$0: about your system, including any error possibly output 236bf4a254eSmrg$0: before this message. Then install a modern shell, or 237bf4a254eSmrg$0: manually run the script under such a shell if you do 238bf4a254eSmrg$0: have one." 239a73027baSmrg fi 240bf4a254eSmrg exit 1 241bf4a254eSmrgfi 242bf4a254eSmrgfi 243bf4a254eSmrgfi 244bf4a254eSmrgSHELL=${CONFIG_SHELL-/bin/sh} 245bf4a254eSmrgexport SHELL 246bf4a254eSmrg# Unset more variables known to interfere with behavior of common tools. 247bf4a254eSmrgCLICOLOR_FORCE= GREP_OPTIONS= 248bf4a254eSmrgunset CLICOLOR_FORCE GREP_OPTIONS 249bf4a254eSmrg 250bf4a254eSmrg## --------------------- ## 251bf4a254eSmrg## M4sh Shell Functions. ## 252bf4a254eSmrg## --------------------- ## 253bf4a254eSmrg# as_fn_unset VAR 254bf4a254eSmrg# --------------- 255bf4a254eSmrg# Portably unset VAR. 256bf4a254eSmrgas_fn_unset () 257bf4a254eSmrg{ 258bf4a254eSmrg { eval $1=; unset $1;} 259bf4a254eSmrg} 260bf4a254eSmrgas_unset=as_fn_unset 261bf4a254eSmrg 262bf4a254eSmrg# as_fn_set_status STATUS 263bf4a254eSmrg# ----------------------- 264bf4a254eSmrg# Set $? to STATUS, without forking. 265bf4a254eSmrgas_fn_set_status () 266bf4a254eSmrg{ 267bf4a254eSmrg return $1 268bf4a254eSmrg} # as_fn_set_status 269bf4a254eSmrg 270bf4a254eSmrg# as_fn_exit STATUS 271bf4a254eSmrg# ----------------- 272bf4a254eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273bf4a254eSmrgas_fn_exit () 274bf4a254eSmrg{ 275bf4a254eSmrg set +e 276bf4a254eSmrg as_fn_set_status $1 277bf4a254eSmrg exit $1 278bf4a254eSmrg} # as_fn_exit 279bf4a254eSmrg 280bf4a254eSmrg# as_fn_mkdir_p 281bf4a254eSmrg# ------------- 282bf4a254eSmrg# Create "$as_dir" as a directory, including parents if necessary. 283bf4a254eSmrgas_fn_mkdir_p () 284bf4a254eSmrg{ 285bf4a254eSmrg 286bf4a254eSmrg case $as_dir in #( 287bf4a254eSmrg -*) as_dir=./$as_dir;; 288bf4a254eSmrg esac 289bf4a254eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 290bf4a254eSmrg as_dirs= 291bf4a254eSmrg while :; do 292bf4a254eSmrg case $as_dir in #( 293bf4a254eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294bf4a254eSmrg *) as_qdir=$as_dir;; 295bf4a254eSmrg esac 296bf4a254eSmrg as_dirs="'$as_qdir' $as_dirs" 297bf4a254eSmrg as_dir=`$as_dirname -- "$as_dir" || 298bf4a254eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299bf4a254eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 300bf4a254eSmrg X"$as_dir" : 'X\(//\)$' \| \ 301bf4a254eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302bf4a254eSmrg$as_echo X"$as_dir" | 303bf4a254eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304bf4a254eSmrg s//\1/ 305bf4a254eSmrg q 306bf4a254eSmrg } 307bf4a254eSmrg /^X\(\/\/\)[^/].*/{ 308bf4a254eSmrg s//\1/ 309bf4a254eSmrg q 310bf4a254eSmrg } 311bf4a254eSmrg /^X\(\/\/\)$/{ 312bf4a254eSmrg s//\1/ 313bf4a254eSmrg q 314bf4a254eSmrg } 315bf4a254eSmrg /^X\(\/\).*/{ 316bf4a254eSmrg s//\1/ 317bf4a254eSmrg q 318bf4a254eSmrg } 319bf4a254eSmrg s/.*/./; q'` 320bf4a254eSmrg test -d "$as_dir" && break 321bf4a254eSmrg done 322bf4a254eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 323bf4a254eSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324bf4a254eSmrg 325bf4a254eSmrg 326bf4a254eSmrg} # as_fn_mkdir_p 327bf4a254eSmrg# as_fn_append VAR VALUE 328bf4a254eSmrg# ---------------------- 329bf4a254eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 330bf4a254eSmrg# advantage of any shell optimizations that allow amortized linear growth over 331bf4a254eSmrg# repeated appends, instead of the typical quadratic growth present in naive 332bf4a254eSmrg# implementations. 333bf4a254eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334bf4a254eSmrg eval 'as_fn_append () 335bf4a254eSmrg { 336bf4a254eSmrg eval $1+=\$2 337bf4a254eSmrg }' 338bf4a254eSmrgelse 339bf4a254eSmrg as_fn_append () 340bf4a254eSmrg { 341bf4a254eSmrg eval $1=\$$1\$2 342bf4a254eSmrg } 343bf4a254eSmrgfi # as_fn_append 344bf4a254eSmrg 345bf4a254eSmrg# as_fn_arith ARG... 346bf4a254eSmrg# ------------------ 347bf4a254eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 348bf4a254eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 349bf4a254eSmrg# must be portable across $(()) and expr. 350bf4a254eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351bf4a254eSmrg eval 'as_fn_arith () 352bf4a254eSmrg { 353bf4a254eSmrg as_val=$(( $* )) 354bf4a254eSmrg }' 355bf4a254eSmrgelse 356bf4a254eSmrg as_fn_arith () 357bf4a254eSmrg { 358bf4a254eSmrg as_val=`expr "$@" || test $? -eq 1` 359bf4a254eSmrg } 360bf4a254eSmrgfi # as_fn_arith 361bf4a254eSmrg 362bf4a254eSmrg 363bf4a254eSmrg# as_fn_error ERROR [LINENO LOG_FD] 364bf4a254eSmrg# --------------------------------- 365bf4a254eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366bf4a254eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367bf4a254eSmrg# script with status $?, using 1 if that was 0. 368bf4a254eSmrgas_fn_error () 369bf4a254eSmrg{ 370bf4a254eSmrg as_status=$?; test $as_status -eq 0 && as_status=1 371bf4a254eSmrg if test "$3"; then 372bf4a254eSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374bf4a254eSmrg fi 375bf4a254eSmrg $as_echo "$as_me: error: $1" >&2 376bf4a254eSmrg as_fn_exit $as_status 377bf4a254eSmrg} # as_fn_error 378a73027baSmrg 379a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 380a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 381a73027baSmrg as_expr=expr 382a73027baSmrgelse 383a73027baSmrg as_expr=false 384a73027baSmrgfi 385a73027baSmrg 386a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387a73027baSmrg as_basename=basename 388a73027baSmrgelse 389a73027baSmrg as_basename=false 390a73027baSmrgfi 391a73027baSmrg 392bf4a254eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393bf4a254eSmrg as_dirname=dirname 394bf4a254eSmrgelse 395bf4a254eSmrg as_dirname=false 396bf4a254eSmrgfi 397a73027baSmrg 398a73027baSmrgas_me=`$as_basename -- "$0" || 399a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400a73027baSmrg X"$0" : 'X\(//\)$' \| \ 401a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 402bf4a254eSmrg$as_echo X/"$0" | 403a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 404a73027baSmrg s//\1/ 405a73027baSmrg q 406a73027baSmrg } 407a73027baSmrg /^X\/\(\/\/\)$/{ 408a73027baSmrg s//\1/ 409a73027baSmrg q 410a73027baSmrg } 411a73027baSmrg /^X\/\(\/\).*/{ 412a73027baSmrg s//\1/ 413a73027baSmrg q 414a73027baSmrg } 415a73027baSmrg s/.*/./; q'` 416a73027baSmrg 417bf4a254eSmrg# Avoid depending upon Character Ranges. 418bf4a254eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 419bf4a254eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420bf4a254eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 421bf4a254eSmrgas_cr_digits='0123456789' 422bf4a254eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 423a73027baSmrg 424a73027baSmrg 425bf4a254eSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 426bf4a254eSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 427bf4a254eSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428bf4a254eSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429bf4a254eSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430bf4a254eSmrg sed -n ' 431bf4a254eSmrg p 432bf4a254eSmrg /[$]LINENO/= 433bf4a254eSmrg ' <$as_myself | 434bf4a254eSmrg sed ' 435bf4a254eSmrg s/[$]LINENO.*/&-/ 436bf4a254eSmrg t lineno 437bf4a254eSmrg b 438bf4a254eSmrg :lineno 439bf4a254eSmrg N 440bf4a254eSmrg :loop 441bf4a254eSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442bf4a254eSmrg t loop 443bf4a254eSmrg s/-\n.*// 444bf4a254eSmrg ' >$as_me.lineno && 445bf4a254eSmrg chmod +x "$as_me.lineno" || 446bf4a254eSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447a73027baSmrg 448bf4a254eSmrg # Don't try to exec as it changes $[0], causing all sort of problems 449bf4a254eSmrg # (the dirname of $[0] is not the place where we might find the 450bf4a254eSmrg # original and so on. Autoconf is especially sensitive to this). 451bf4a254eSmrg . "./$as_me.lineno" 452bf4a254eSmrg # Exit status is that of the last command. 453bf4a254eSmrg exit 454a73027baSmrg} 455a73027baSmrg 456bf4a254eSmrgECHO_C= ECHO_N= ECHO_T= 457bf4a254eSmrgcase `echo -n x` in #((((( 458bf4a254eSmrg-n*) 459bf4a254eSmrg case `echo 'xy\c'` in 460bf4a254eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461bf4a254eSmrg xy) ECHO_C='\c';; 462bf4a254eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463bf4a254eSmrg ECHO_T=' ';; 464bf4a254eSmrg esac;; 465bf4a254eSmrg*) 466bf4a254eSmrg ECHO_N='-n';; 467bf4a254eSmrgesac 468a73027baSmrg 469bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file 470bf4a254eSmrgif test -d conf$$.dir; then 471bf4a254eSmrg rm -f conf$$.dir/conf$$.file 472a73027baSmrgelse 473bf4a254eSmrg rm -f conf$$.dir 474bf4a254eSmrg mkdir conf$$.dir 2>/dev/null 475bf4a254eSmrgfi 476bf4a254eSmrgif (echo >conf$$.file) 2>/dev/null; then 477bf4a254eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 478bf4a254eSmrg as_ln_s='ln -s' 479bf4a254eSmrg # ... but there are two gotchas: 480bf4a254eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481bf4a254eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482bf4a254eSmrg # In both cases, we have to default to `cp -p'. 483bf4a254eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484bf4a254eSmrg as_ln_s='cp -p' 485bf4a254eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 486bf4a254eSmrg as_ln_s=ln 487bf4a254eSmrg else 488bf4a254eSmrg as_ln_s='cp -p' 489bf4a254eSmrg fi 490a73027baSmrgelse 491bf4a254eSmrg as_ln_s='cp -p' 492a73027baSmrgfi 493bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494bf4a254eSmrgrmdir conf$$.dir 2>/dev/null 495a73027baSmrg 496bf4a254eSmrgif mkdir -p . 2>/dev/null; then 497bf4a254eSmrg as_mkdir_p='mkdir -p "$as_dir"' 498a73027baSmrgelse 499bf4a254eSmrg test -d ./-p && rmdir ./-p 500bf4a254eSmrg as_mkdir_p=false 501bf4a254eSmrgfi 502a73027baSmrg 503bf4a254eSmrgif test -x / >/dev/null 2>&1; then 504bf4a254eSmrg as_test_x='test -x' 505a73027baSmrgelse 506bf4a254eSmrg if ls -dL / >/dev/null 2>&1; then 507bf4a254eSmrg as_ls_L_option=L 508bf4a254eSmrg else 509bf4a254eSmrg as_ls_L_option= 510bf4a254eSmrg fi 511bf4a254eSmrg as_test_x=' 512bf4a254eSmrg eval sh -c '\'' 513bf4a254eSmrg if test -d "$1"; then 514bf4a254eSmrg test -d "$1/."; 515bf4a254eSmrg else 516bf4a254eSmrg case $1 in #( 517bf4a254eSmrg -*)set "./$1";; 518bf4a254eSmrg esac; 519bf4a254eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520bf4a254eSmrg ???[sx]*):;;*)false;;esac;fi 521bf4a254eSmrg '\'' sh 522bf4a254eSmrg ' 523a73027baSmrgfi 524bf4a254eSmrgas_executable_p=$as_test_x 525a73027baSmrg 526bf4a254eSmrg# Sed expression to map a string onto a valid CPP name. 527bf4a254eSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528a73027baSmrg 529bf4a254eSmrg# Sed expression to map a string onto a valid variable name. 530bf4a254eSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531a73027baSmrg 532a73027baSmrg 533bf4a254eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 534bf4a254eSmrgexec 6>&1 535a73027baSmrg 536a73027baSmrg# Name of the host. 537a73027baSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 538a73027baSmrg# so uname gets run too. 539a73027baSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 540a73027baSmrg 541a73027baSmrg# 542a73027baSmrg# Initializations. 543a73027baSmrg# 544a73027baSmrgac_default_prefix=/usr/local 545a73027baSmrgac_clean_files= 546a73027baSmrgac_config_libobj_dir=. 547a73027baSmrgLIBOBJS= 548a73027baSmrgcross_compiling=no 549a73027baSmrgsubdirs= 550a73027baSmrgMFLAGS= 551a73027baSmrgMAKEFLAGS= 552a73027baSmrg 553a73027baSmrg# Identity of this package. 554a73027baSmrgPACKAGE_NAME='xinit' 555a73027baSmrgPACKAGE_TARNAME='xinit' 556bf4a254eSmrgPACKAGE_VERSION='1.2.1' 557bf4a254eSmrgPACKAGE_STRING='xinit 1.2.1' 558a73027baSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 559bf4a254eSmrgPACKAGE_URL='' 560a73027baSmrg 561a73027baSmrg# Factoring default headers for most tests. 562a73027baSmrgac_includes_default="\ 563a73027baSmrg#include <stdio.h> 564a73027baSmrg#ifdef HAVE_SYS_TYPES_H 565a73027baSmrg# include <sys/types.h> 566a73027baSmrg#endif 567a73027baSmrg#ifdef HAVE_SYS_STAT_H 568a73027baSmrg# include <sys/stat.h> 569a73027baSmrg#endif 570a73027baSmrg#ifdef STDC_HEADERS 571a73027baSmrg# include <stdlib.h> 572a73027baSmrg# include <stddef.h> 573a73027baSmrg#else 574a73027baSmrg# ifdef HAVE_STDLIB_H 575a73027baSmrg# include <stdlib.h> 576a73027baSmrg# endif 577a73027baSmrg#endif 578a73027baSmrg#ifdef HAVE_STRING_H 579a73027baSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 580a73027baSmrg# include <memory.h> 581a73027baSmrg# endif 582a73027baSmrg# include <string.h> 583a73027baSmrg#endif 584a73027baSmrg#ifdef HAVE_STRINGS_H 585a73027baSmrg# include <strings.h> 586a73027baSmrg#endif 587a73027baSmrg#ifdef HAVE_INTTYPES_H 588a73027baSmrg# include <inttypes.h> 589a73027baSmrg#endif 590a73027baSmrg#ifdef HAVE_STDINT_H 591a73027baSmrg# include <stdint.h> 592a73027baSmrg#endif 593a73027baSmrg#ifdef HAVE_UNISTD_H 594a73027baSmrg# include <unistd.h> 595a73027baSmrg#endif" 596a73027baSmrg 597bf4a254eSmrgac_subst_vars='am__EXEEXT_FALSE 598bf4a254eSmrgam__EXEEXT_TRUE 599bf4a254eSmrgLTLIBOBJS 600bf4a254eSmrgLIBOBJS 601bf4a254eSmrgXINITDIR 602a73027baSmrgXINIT 603bf4a254eSmrgXAUTH 604bf4a254eSmrgXSERVER 605bf4a254eSmrgXTERM 606bf4a254eSmrgXCLOCK 607bf4a254eSmrgTWM 608bf4a254eSmrgXMODMAP 609bf4a254eSmrgXRDB 610bf4a254eSmrgXCONFIGFILEMAN 611bf4a254eSmrgXCONFIGFILE 612bf4a254eSmrgXSERVERNAME 613bf4a254eSmrgARCHMANDEFS 614bf4a254eSmrgSHELL_CMD 615bf4a254eSmrgSTARTX_COOKIE_FLAGS 616bf4a254eSmrgMCOOKIE 617bf4a254eSmrgXINIT_LIBS 618bf4a254eSmrgXINIT_CFLAGS 619bf4a254eSmrgTIGER_LAUNCHD_FALSE 620bf4a254eSmrgTIGER_LAUNCHD_TRUE 621bf4a254eSmrgLAUNCHD_FALSE 622bf4a254eSmrgLAUNCHD_TRUE 623bf4a254eSmrglaunchdidprefix 624bf4a254eSmrglaunchdaemonsdir 625bf4a254eSmrglaunchagentsdir 626bf4a254eSmrgLAUNCHD 627bf4a254eSmrgSED 628bf4a254eSmrgRAWCPPFLAGS 629bf4a254eSmrgRAWCPP 630a73027baSmrgADMIN_MAN_DIR 631bf4a254eSmrgDRIVER_MAN_DIR 632bf4a254eSmrgMISC_MAN_DIR 633bf4a254eSmrgFILE_MAN_DIR 634bf4a254eSmrgLIB_MAN_DIR 635bf4a254eSmrgAPP_MAN_DIR 636bf4a254eSmrgADMIN_MAN_SUFFIX 637bf4a254eSmrgDRIVER_MAN_SUFFIX 638bf4a254eSmrgMISC_MAN_SUFFIX 639bf4a254eSmrgFILE_MAN_SUFFIX 640bf4a254eSmrgLIB_MAN_SUFFIX 641bf4a254eSmrgAPP_MAN_SUFFIX 642bf4a254eSmrghost_os 643bf4a254eSmrghost_vendor 644bf4a254eSmrghost_cpu 645bf4a254eSmrghost 646bf4a254eSmrgbuild_os 647bf4a254eSmrgbuild_vendor 648bf4a254eSmrgbuild_cpu 649bf4a254eSmrgbuild 650bf4a254eSmrgINSTALL_CMD 651bf4a254eSmrgPKG_CONFIG 652bf4a254eSmrgCHANGELOG_CMD 653bf4a254eSmrgAM_BACKSLASH 654bf4a254eSmrgAM_DEFAULT_VERBOSITY 655bf4a254eSmrgCWARNFLAGS 656bf4a254eSmrgEGREP 657bf4a254eSmrgGREP 658bf4a254eSmrgCPP 659bf4a254eSmrgam__fastdepCC_FALSE 660bf4a254eSmrgam__fastdepCC_TRUE 661bf4a254eSmrgCCDEPMODE 662bf4a254eSmrgAMDEPBACKSLASH 663bf4a254eSmrgAMDEP_FALSE 664bf4a254eSmrgAMDEP_TRUE 665bf4a254eSmrgam__quote 666bf4a254eSmrgam__include 667bf4a254eSmrgDEPDIR 668bf4a254eSmrgOBJEXT 669bf4a254eSmrgEXEEXT 670bf4a254eSmrgac_ct_CC 671bf4a254eSmrgCPPFLAGS 672bf4a254eSmrgLDFLAGS 673bf4a254eSmrgCFLAGS 674bf4a254eSmrgCC 675bf4a254eSmrgMAINT 676bf4a254eSmrgMAINTAINER_MODE_FALSE 677bf4a254eSmrgMAINTAINER_MODE_TRUE 678bf4a254eSmrgam__untar 679bf4a254eSmrgam__tar 680bf4a254eSmrgAMTAR 681bf4a254eSmrgam__leading_dot 682bf4a254eSmrgSET_MAKE 683bf4a254eSmrgAWK 684bf4a254eSmrgmkdir_p 685bf4a254eSmrgMKDIR_P 686bf4a254eSmrgINSTALL_STRIP_PROGRAM 687bf4a254eSmrgSTRIP 688bf4a254eSmrginstall_sh 689bf4a254eSmrgMAKEINFO 690bf4a254eSmrgAUTOHEADER 691bf4a254eSmrgAUTOMAKE 692bf4a254eSmrgAUTOCONF 693bf4a254eSmrgACLOCAL 694bf4a254eSmrgVERSION 695bf4a254eSmrgPACKAGE 696bf4a254eSmrgCYGPATH_W 697bf4a254eSmrgam__isrc 698bf4a254eSmrgINSTALL_DATA 699bf4a254eSmrgINSTALL_SCRIPT 700bf4a254eSmrgINSTALL_PROGRAM 701bf4a254eSmrgtarget_alias 702bf4a254eSmrghost_alias 703bf4a254eSmrgbuild_alias 704bf4a254eSmrgLIBS 705bf4a254eSmrgECHO_T 706bf4a254eSmrgECHO_N 707bf4a254eSmrgECHO_C 708bf4a254eSmrgDEFS 709bf4a254eSmrgmandir 710bf4a254eSmrglocaledir 711bf4a254eSmrglibdir 712bf4a254eSmrgpsdir 713bf4a254eSmrgpdfdir 714bf4a254eSmrgdvidir 715bf4a254eSmrghtmldir 716bf4a254eSmrginfodir 717bf4a254eSmrgdocdir 718bf4a254eSmrgoldincludedir 719bf4a254eSmrgincludedir 720bf4a254eSmrglocalstatedir 721bf4a254eSmrgsharedstatedir 722bf4a254eSmrgsysconfdir 723bf4a254eSmrgdatadir 724bf4a254eSmrgdatarootdir 725bf4a254eSmrglibexecdir 726bf4a254eSmrgsbindir 727bf4a254eSmrgbindir 728bf4a254eSmrgprogram_transform_name 729bf4a254eSmrgprefix 730bf4a254eSmrgexec_prefix 731bf4a254eSmrgPACKAGE_URL 732bf4a254eSmrgPACKAGE_BUGREPORT 733bf4a254eSmrgPACKAGE_STRING 734bf4a254eSmrgPACKAGE_VERSION 735bf4a254eSmrgPACKAGE_TARNAME 736bf4a254eSmrgPACKAGE_NAME 737bf4a254eSmrgPATH_SEPARATOR 738bf4a254eSmrgSHELL' 739a73027baSmrgac_subst_files='' 740bf4a254eSmrgac_user_opts=' 741bf4a254eSmrgenable_option_checking 742bf4a254eSmrgenable_maintainer_mode 743bf4a254eSmrgenable_dependency_tracking 744bf4a254eSmrgenable_silent_rules 745bf4a254eSmrgenable_strict_compilation 746bf4a254eSmrgwith_release_version 747bf4a254eSmrgwith_xrdb 748bf4a254eSmrgwith_xmodmap 749bf4a254eSmrgwith_twm 750bf4a254eSmrgwith_xclock 751bf4a254eSmrgwith_xterm 752bf4a254eSmrgwith_xserver 753bf4a254eSmrgwith_xauth 754bf4a254eSmrgwith_xinit 755bf4a254eSmrgwith_xinitdir 756bf4a254eSmrgwith_launchd 757bf4a254eSmrgwith_launchagents_dir 758bf4a254eSmrgwith_launchdaemons_dir 759bf4a254eSmrgwith_launchd_id_prefix 760bf4a254eSmrg' 761a73027baSmrg ac_precious_vars='build_alias 762a73027baSmrghost_alias 763a73027baSmrgtarget_alias 764a73027baSmrgCC 765a73027baSmrgCFLAGS 766a73027baSmrgLDFLAGS 767a73027baSmrgLIBS 768a73027baSmrgCPPFLAGS 769a73027baSmrgCPP 770a73027baSmrgPKG_CONFIG 771a73027baSmrgXINIT_CFLAGS 772a73027baSmrgXINIT_LIBS' 773a73027baSmrg 774a73027baSmrg 775a73027baSmrg# Initialize some variables set by options. 776a73027baSmrgac_init_help= 777a73027baSmrgac_init_version=false 778bf4a254eSmrgac_unrecognized_opts= 779bf4a254eSmrgac_unrecognized_sep= 780a73027baSmrg# The variables have the same names as the options, with 781a73027baSmrg# dashes changed to underlines. 782a73027baSmrgcache_file=/dev/null 783a73027baSmrgexec_prefix=NONE 784a73027baSmrgno_create= 785a73027baSmrgno_recursion= 786a73027baSmrgprefix=NONE 787a73027baSmrgprogram_prefix=NONE 788a73027baSmrgprogram_suffix=NONE 789a73027baSmrgprogram_transform_name=s,x,x, 790a73027baSmrgsilent= 791a73027baSmrgsite= 792a73027baSmrgsrcdir= 793a73027baSmrgverbose= 794a73027baSmrgx_includes=NONE 795a73027baSmrgx_libraries=NONE 796a73027baSmrg 797a73027baSmrg# Installation directory options. 798a73027baSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 799a73027baSmrg# and all the variables that are supposed to be based on exec_prefix 800a73027baSmrg# by default will actually change. 801a73027baSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 802a73027baSmrg# (The list follows the same order as the GNU Coding Standards.) 803a73027baSmrgbindir='${exec_prefix}/bin' 804a73027baSmrgsbindir='${exec_prefix}/sbin' 805a73027baSmrglibexecdir='${exec_prefix}/libexec' 806a73027baSmrgdatarootdir='${prefix}/share' 807a73027baSmrgdatadir='${datarootdir}' 808a73027baSmrgsysconfdir='${prefix}/etc' 809a73027baSmrgsharedstatedir='${prefix}/com' 810a73027baSmrglocalstatedir='${prefix}/var' 811a73027baSmrgincludedir='${prefix}/include' 812a73027baSmrgoldincludedir='/usr/include' 813a73027baSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 814a73027baSmrginfodir='${datarootdir}/info' 815a73027baSmrghtmldir='${docdir}' 816a73027baSmrgdvidir='${docdir}' 817a73027baSmrgpdfdir='${docdir}' 818a73027baSmrgpsdir='${docdir}' 819a73027baSmrglibdir='${exec_prefix}/lib' 820a73027baSmrglocaledir='${datarootdir}/locale' 821a73027baSmrgmandir='${datarootdir}/man' 822a73027baSmrg 823a73027baSmrgac_prev= 824a73027baSmrgac_dashdash= 825a73027baSmrgfor ac_option 826a73027baSmrgdo 827a73027baSmrg # If the previous option needs an argument, assign it. 828a73027baSmrg if test -n "$ac_prev"; then 829a73027baSmrg eval $ac_prev=\$ac_option 830a73027baSmrg ac_prev= 831a73027baSmrg continue 832a73027baSmrg fi 833a73027baSmrg 834a73027baSmrg case $ac_option in 835a73027baSmrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 836a73027baSmrg *) ac_optarg=yes ;; 837a73027baSmrg esac 838a73027baSmrg 839a73027baSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 840a73027baSmrg 841a73027baSmrg case $ac_dashdash$ac_option in 842a73027baSmrg --) 843a73027baSmrg ac_dashdash=yes ;; 844a73027baSmrg 845a73027baSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 846a73027baSmrg ac_prev=bindir ;; 847a73027baSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 848a73027baSmrg bindir=$ac_optarg ;; 849a73027baSmrg 850a73027baSmrg -build | --build | --buil | --bui | --bu) 851a73027baSmrg ac_prev=build_alias ;; 852a73027baSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 853a73027baSmrg build_alias=$ac_optarg ;; 854a73027baSmrg 855a73027baSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 856a73027baSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 857a73027baSmrg ac_prev=cache_file ;; 858a73027baSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 859a73027baSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 860a73027baSmrg cache_file=$ac_optarg ;; 861a73027baSmrg 862a73027baSmrg --config-cache | -C) 863a73027baSmrg cache_file=config.cache ;; 864a73027baSmrg 865a73027baSmrg -datadir | --datadir | --datadi | --datad) 866a73027baSmrg ac_prev=datadir ;; 867a73027baSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 868a73027baSmrg datadir=$ac_optarg ;; 869a73027baSmrg 870a73027baSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 871a73027baSmrg | --dataroo | --dataro | --datar) 872a73027baSmrg ac_prev=datarootdir ;; 873a73027baSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 874a73027baSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 875a73027baSmrg datarootdir=$ac_optarg ;; 876a73027baSmrg 877a73027baSmrg -disable-* | --disable-*) 878bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 879a73027baSmrg # Reject names that are not valid shell variable names. 880bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881bf4a254eSmrg as_fn_error "invalid feature name: $ac_useropt" 882bf4a254eSmrg ac_useropt_orig=$ac_useropt 883bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884bf4a254eSmrg case $ac_user_opts in 885bf4a254eSmrg *" 886bf4a254eSmrg"enable_$ac_useropt" 887bf4a254eSmrg"*) ;; 888bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 889bf4a254eSmrg ac_unrecognized_sep=', ';; 890bf4a254eSmrg esac 891bf4a254eSmrg eval enable_$ac_useropt=no ;; 892a73027baSmrg 893a73027baSmrg -docdir | --docdir | --docdi | --doc | --do) 894a73027baSmrg ac_prev=docdir ;; 895a73027baSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 896a73027baSmrg docdir=$ac_optarg ;; 897a73027baSmrg 898a73027baSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 899a73027baSmrg ac_prev=dvidir ;; 900a73027baSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 901a73027baSmrg dvidir=$ac_optarg ;; 902a73027baSmrg 903a73027baSmrg -enable-* | --enable-*) 904bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 905a73027baSmrg # Reject names that are not valid shell variable names. 906bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907bf4a254eSmrg as_fn_error "invalid feature name: $ac_useropt" 908bf4a254eSmrg ac_useropt_orig=$ac_useropt 909bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910bf4a254eSmrg case $ac_user_opts in 911bf4a254eSmrg *" 912bf4a254eSmrg"enable_$ac_useropt" 913bf4a254eSmrg"*) ;; 914bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 915bf4a254eSmrg ac_unrecognized_sep=', ';; 916bf4a254eSmrg esac 917bf4a254eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 918a73027baSmrg 919a73027baSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 920a73027baSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 921a73027baSmrg | --exec | --exe | --ex) 922a73027baSmrg ac_prev=exec_prefix ;; 923a73027baSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 924a73027baSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 925a73027baSmrg | --exec=* | --exe=* | --ex=*) 926a73027baSmrg exec_prefix=$ac_optarg ;; 927a73027baSmrg 928a73027baSmrg -gas | --gas | --ga | --g) 929a73027baSmrg # Obsolete; use --with-gas. 930a73027baSmrg with_gas=yes ;; 931a73027baSmrg 932a73027baSmrg -help | --help | --hel | --he | -h) 933a73027baSmrg ac_init_help=long ;; 934a73027baSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 935a73027baSmrg ac_init_help=recursive ;; 936a73027baSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 937a73027baSmrg ac_init_help=short ;; 938a73027baSmrg 939a73027baSmrg -host | --host | --hos | --ho) 940a73027baSmrg ac_prev=host_alias ;; 941a73027baSmrg -host=* | --host=* | --hos=* | --ho=*) 942a73027baSmrg host_alias=$ac_optarg ;; 943a73027baSmrg 944a73027baSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 945a73027baSmrg ac_prev=htmldir ;; 946a73027baSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 947a73027baSmrg | --ht=*) 948a73027baSmrg htmldir=$ac_optarg ;; 949a73027baSmrg 950a73027baSmrg -includedir | --includedir | --includedi | --included | --include \ 951a73027baSmrg | --includ | --inclu | --incl | --inc) 952a73027baSmrg ac_prev=includedir ;; 953a73027baSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 954a73027baSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 955a73027baSmrg includedir=$ac_optarg ;; 956a73027baSmrg 957a73027baSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 958a73027baSmrg ac_prev=infodir ;; 959a73027baSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 960a73027baSmrg infodir=$ac_optarg ;; 961a73027baSmrg 962a73027baSmrg -libdir | --libdir | --libdi | --libd) 963a73027baSmrg ac_prev=libdir ;; 964a73027baSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 965a73027baSmrg libdir=$ac_optarg ;; 966a73027baSmrg 967a73027baSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 968a73027baSmrg | --libexe | --libex | --libe) 969a73027baSmrg ac_prev=libexecdir ;; 970a73027baSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 971a73027baSmrg | --libexe=* | --libex=* | --libe=*) 972a73027baSmrg libexecdir=$ac_optarg ;; 973a73027baSmrg 974a73027baSmrg -localedir | --localedir | --localedi | --localed | --locale) 975a73027baSmrg ac_prev=localedir ;; 976a73027baSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 977a73027baSmrg localedir=$ac_optarg ;; 978a73027baSmrg 979a73027baSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 980a73027baSmrg | --localstate | --localstat | --localsta | --localst | --locals) 981a73027baSmrg ac_prev=localstatedir ;; 982a73027baSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 983a73027baSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 984a73027baSmrg localstatedir=$ac_optarg ;; 985a73027baSmrg 986a73027baSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 987a73027baSmrg ac_prev=mandir ;; 988a73027baSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 989a73027baSmrg mandir=$ac_optarg ;; 990a73027baSmrg 991a73027baSmrg -nfp | --nfp | --nf) 992a73027baSmrg # Obsolete; use --without-fp. 993a73027baSmrg with_fp=no ;; 994a73027baSmrg 995a73027baSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 996a73027baSmrg | --no-cr | --no-c | -n) 997a73027baSmrg no_create=yes ;; 998a73027baSmrg 999a73027baSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1000a73027baSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1001a73027baSmrg no_recursion=yes ;; 1002a73027baSmrg 1003a73027baSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1004a73027baSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1005a73027baSmrg | --oldin | --oldi | --old | --ol | --o) 1006a73027baSmrg ac_prev=oldincludedir ;; 1007a73027baSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1008a73027baSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1009a73027baSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1010a73027baSmrg oldincludedir=$ac_optarg ;; 1011a73027baSmrg 1012a73027baSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1013a73027baSmrg ac_prev=prefix ;; 1014a73027baSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1015a73027baSmrg prefix=$ac_optarg ;; 1016a73027baSmrg 1017a73027baSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1018a73027baSmrg | --program-pre | --program-pr | --program-p) 1019a73027baSmrg ac_prev=program_prefix ;; 1020a73027baSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1021a73027baSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1022a73027baSmrg program_prefix=$ac_optarg ;; 1023a73027baSmrg 1024a73027baSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1025a73027baSmrg | --program-suf | --program-su | --program-s) 1026a73027baSmrg ac_prev=program_suffix ;; 1027a73027baSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1028a73027baSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1029a73027baSmrg program_suffix=$ac_optarg ;; 1030a73027baSmrg 1031a73027baSmrg -program-transform-name | --program-transform-name \ 1032a73027baSmrg | --program-transform-nam | --program-transform-na \ 1033a73027baSmrg | --program-transform-n | --program-transform- \ 1034a73027baSmrg | --program-transform | --program-transfor \ 1035a73027baSmrg | --program-transfo | --program-transf \ 1036a73027baSmrg | --program-trans | --program-tran \ 1037a73027baSmrg | --progr-tra | --program-tr | --program-t) 1038a73027baSmrg ac_prev=program_transform_name ;; 1039a73027baSmrg -program-transform-name=* | --program-transform-name=* \ 1040a73027baSmrg | --program-transform-nam=* | --program-transform-na=* \ 1041a73027baSmrg | --program-transform-n=* | --program-transform-=* \ 1042a73027baSmrg | --program-transform=* | --program-transfor=* \ 1043a73027baSmrg | --program-transfo=* | --program-transf=* \ 1044a73027baSmrg | --program-trans=* | --program-tran=* \ 1045a73027baSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1046a73027baSmrg program_transform_name=$ac_optarg ;; 1047a73027baSmrg 1048a73027baSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1049a73027baSmrg ac_prev=pdfdir ;; 1050a73027baSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1051a73027baSmrg pdfdir=$ac_optarg ;; 1052a73027baSmrg 1053a73027baSmrg -psdir | --psdir | --psdi | --psd | --ps) 1054a73027baSmrg ac_prev=psdir ;; 1055a73027baSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1056a73027baSmrg psdir=$ac_optarg ;; 1057a73027baSmrg 1058a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 1060a73027baSmrg silent=yes ;; 1061a73027baSmrg 1062a73027baSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1063a73027baSmrg ac_prev=sbindir ;; 1064a73027baSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1065a73027baSmrg | --sbi=* | --sb=*) 1066a73027baSmrg sbindir=$ac_optarg ;; 1067a73027baSmrg 1068a73027baSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1069a73027baSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1070a73027baSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1071a73027baSmrg | --sha | --sh) 1072a73027baSmrg ac_prev=sharedstatedir ;; 1073a73027baSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1074a73027baSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1075a73027baSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1076a73027baSmrg | --sha=* | --sh=*) 1077a73027baSmrg sharedstatedir=$ac_optarg ;; 1078a73027baSmrg 1079a73027baSmrg -site | --site | --sit) 1080a73027baSmrg ac_prev=site ;; 1081a73027baSmrg -site=* | --site=* | --sit=*) 1082a73027baSmrg site=$ac_optarg ;; 1083a73027baSmrg 1084a73027baSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1085a73027baSmrg ac_prev=srcdir ;; 1086a73027baSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1087a73027baSmrg srcdir=$ac_optarg ;; 1088a73027baSmrg 1089a73027baSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1090a73027baSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1091a73027baSmrg ac_prev=sysconfdir ;; 1092a73027baSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1093a73027baSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1094a73027baSmrg sysconfdir=$ac_optarg ;; 1095a73027baSmrg 1096a73027baSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1097a73027baSmrg ac_prev=target_alias ;; 1098a73027baSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1099a73027baSmrg target_alias=$ac_optarg ;; 1100a73027baSmrg 1101a73027baSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1102a73027baSmrg verbose=yes ;; 1103a73027baSmrg 1104a73027baSmrg -version | --version | --versio | --versi | --vers | -V) 1105a73027baSmrg ac_init_version=: ;; 1106a73027baSmrg 1107a73027baSmrg -with-* | --with-*) 1108bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1109a73027baSmrg # Reject names that are not valid shell variable names. 1110bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111bf4a254eSmrg as_fn_error "invalid package name: $ac_useropt" 1112bf4a254eSmrg ac_useropt_orig=$ac_useropt 1113bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114bf4a254eSmrg case $ac_user_opts in 1115bf4a254eSmrg *" 1116bf4a254eSmrg"with_$ac_useropt" 1117bf4a254eSmrg"*) ;; 1118bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1119bf4a254eSmrg ac_unrecognized_sep=', ';; 1120bf4a254eSmrg esac 1121bf4a254eSmrg eval with_$ac_useropt=\$ac_optarg ;; 1122a73027baSmrg 1123a73027baSmrg -without-* | --without-*) 1124bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1125a73027baSmrg # Reject names that are not valid shell variable names. 1126bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127bf4a254eSmrg as_fn_error "invalid package name: $ac_useropt" 1128bf4a254eSmrg ac_useropt_orig=$ac_useropt 1129bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130bf4a254eSmrg case $ac_user_opts in 1131bf4a254eSmrg *" 1132bf4a254eSmrg"with_$ac_useropt" 1133bf4a254eSmrg"*) ;; 1134bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1135bf4a254eSmrg ac_unrecognized_sep=', ';; 1136bf4a254eSmrg esac 1137bf4a254eSmrg eval with_$ac_useropt=no ;; 1138a73027baSmrg 1139a73027baSmrg --x) 1140a73027baSmrg # Obsolete; use --with-x. 1141a73027baSmrg with_x=yes ;; 1142a73027baSmrg 1143a73027baSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1144a73027baSmrg | --x-incl | --x-inc | --x-in | --x-i) 1145a73027baSmrg ac_prev=x_includes ;; 1146a73027baSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1147a73027baSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1148a73027baSmrg x_includes=$ac_optarg ;; 1149a73027baSmrg 1150a73027baSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1151a73027baSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1152a73027baSmrg ac_prev=x_libraries ;; 1153a73027baSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1154a73027baSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1155a73027baSmrg x_libraries=$ac_optarg ;; 1156a73027baSmrg 1157bf4a254eSmrg -*) as_fn_error "unrecognized option: \`$ac_option' 1158bf4a254eSmrgTry \`$0 --help' for more information." 1159a73027baSmrg ;; 1160a73027baSmrg 1161a73027baSmrg *=*) 1162a73027baSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163a73027baSmrg # Reject names that are not valid shell variable names. 1164bf4a254eSmrg case $ac_envvar in #( 1165bf4a254eSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1166bf4a254eSmrg as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1167bf4a254eSmrg esac 1168a73027baSmrg eval $ac_envvar=\$ac_optarg 1169a73027baSmrg export $ac_envvar ;; 1170a73027baSmrg 1171a73027baSmrg *) 1172a73027baSmrg # FIXME: should be removed in autoconf 3.0. 1173bf4a254eSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1174a73027baSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1175bf4a254eSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1176a73027baSmrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1177a73027baSmrg ;; 1178a73027baSmrg 1179a73027baSmrg esac 1180a73027baSmrgdone 1181a73027baSmrg 1182a73027baSmrgif test -n "$ac_prev"; then 1183a73027baSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1184bf4a254eSmrg as_fn_error "missing argument to $ac_option" 1185bf4a254eSmrgfi 1186bf4a254eSmrg 1187bf4a254eSmrgif test -n "$ac_unrecognized_opts"; then 1188bf4a254eSmrg case $enable_option_checking in 1189bf4a254eSmrg no) ;; 1190bf4a254eSmrg fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1191bf4a254eSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1192bf4a254eSmrg esac 1193a73027baSmrgfi 1194a73027baSmrg 1195bf4a254eSmrg# Check all directory arguments for consistency. 1196a73027baSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1197a73027baSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1198a73027baSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1199a73027baSmrg libdir localedir mandir 1200a73027baSmrgdo 1201a73027baSmrg eval ac_val=\$$ac_var 1202bf4a254eSmrg # Remove trailing slashes. 1203bf4a254eSmrg case $ac_val in 1204bf4a254eSmrg */ ) 1205bf4a254eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1206bf4a254eSmrg eval $ac_var=\$ac_val;; 1207bf4a254eSmrg esac 1208bf4a254eSmrg # Be sure to have absolute directory names. 1209a73027baSmrg case $ac_val in 1210a73027baSmrg [\\/$]* | ?:[\\/]* ) continue;; 1211a73027baSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1212a73027baSmrg esac 1213bf4a254eSmrg as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1214a73027baSmrgdone 1215a73027baSmrg 1216a73027baSmrg# There might be people who depend on the old broken behavior: `$host' 1217a73027baSmrg# used to hold the argument of --host etc. 1218a73027baSmrg# FIXME: To remove some day. 1219a73027baSmrgbuild=$build_alias 1220a73027baSmrghost=$host_alias 1221a73027baSmrgtarget=$target_alias 1222a73027baSmrg 1223a73027baSmrg# FIXME: To remove some day. 1224a73027baSmrgif test "x$host_alias" != x; then 1225a73027baSmrg if test "x$build_alias" = x; then 1226a73027baSmrg cross_compiling=maybe 1227bf4a254eSmrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1228a73027baSmrg If a cross compiler is detected then cross compile mode will be used." >&2 1229a73027baSmrg elif test "x$build_alias" != "x$host_alias"; then 1230a73027baSmrg cross_compiling=yes 1231a73027baSmrg fi 1232a73027baSmrgfi 1233a73027baSmrg 1234a73027baSmrgac_tool_prefix= 1235a73027baSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1236a73027baSmrg 1237a73027baSmrgtest "$silent" = yes && exec 6>/dev/null 1238a73027baSmrg 1239a73027baSmrg 1240a73027baSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1241a73027baSmrgac_ls_di=`ls -di .` && 1242a73027baSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243bf4a254eSmrg as_fn_error "working directory cannot be determined" 1244a73027baSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1245bf4a254eSmrg as_fn_error "pwd does not report name of working directory" 1246a73027baSmrg 1247a73027baSmrg 1248a73027baSmrg# Find the source files, if location was not specified. 1249a73027baSmrgif test -z "$srcdir"; then 1250a73027baSmrg ac_srcdir_defaulted=yes 1251a73027baSmrg # Try the directory containing this script, then the parent directory. 1252bf4a254eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1253bf4a254eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1254bf4a254eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1255bf4a254eSmrg X"$as_myself" : 'X\(//\)$' \| \ 1256bf4a254eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1257bf4a254eSmrg$as_echo X"$as_myself" | 1258a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1259a73027baSmrg s//\1/ 1260a73027baSmrg q 1261a73027baSmrg } 1262a73027baSmrg /^X\(\/\/\)[^/].*/{ 1263a73027baSmrg s//\1/ 1264a73027baSmrg q 1265a73027baSmrg } 1266a73027baSmrg /^X\(\/\/\)$/{ 1267a73027baSmrg s//\1/ 1268a73027baSmrg q 1269a73027baSmrg } 1270a73027baSmrg /^X\(\/\).*/{ 1271a73027baSmrg s//\1/ 1272a73027baSmrg q 1273a73027baSmrg } 1274a73027baSmrg s/.*/./; q'` 1275a73027baSmrg srcdir=$ac_confdir 1276a73027baSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1277a73027baSmrg srcdir=.. 1278a73027baSmrg fi 1279a73027baSmrgelse 1280a73027baSmrg ac_srcdir_defaulted=no 1281a73027baSmrgfi 1282a73027baSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1283a73027baSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1284bf4a254eSmrg as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1285a73027baSmrgfi 1286a73027baSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1287a73027baSmrgac_abs_confdir=`( 1288bf4a254eSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1289a73027baSmrg pwd)` 1290a73027baSmrg# When building in place, set srcdir=. 1291a73027baSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1292a73027baSmrg srcdir=. 1293a73027baSmrgfi 1294a73027baSmrg# Remove unnecessary trailing slashes from srcdir. 1295a73027baSmrg# Double slashes in file names in object file debugging info 1296a73027baSmrg# mess up M-x gdb in Emacs. 1297a73027baSmrgcase $srcdir in 1298a73027baSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1299a73027baSmrgesac 1300a73027baSmrgfor ac_var in $ac_precious_vars; do 1301a73027baSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1302a73027baSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1303a73027baSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1304a73027baSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1305a73027baSmrgdone 1306a73027baSmrg 1307a73027baSmrg# 1308a73027baSmrg# Report the --help message. 1309a73027baSmrg# 1310a73027baSmrgif test "$ac_init_help" = "long"; then 1311a73027baSmrg # Omit some internal or obsolete options to make the list less imposing. 1312a73027baSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1313a73027baSmrg cat <<_ACEOF 1314bf4a254eSmrg\`configure' configures xinit 1.2.1 to adapt to many kinds of systems. 1315a73027baSmrg 1316a73027baSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1317a73027baSmrg 1318a73027baSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1319a73027baSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1320a73027baSmrg 1321a73027baSmrgDefaults for the options are specified in brackets. 1322a73027baSmrg 1323a73027baSmrgConfiguration: 1324a73027baSmrg -h, --help display this help and exit 1325a73027baSmrg --help=short display options specific to this package 1326a73027baSmrg --help=recursive display the short help of all the included packages 1327a73027baSmrg -V, --version display version information and exit 1328a73027baSmrg -q, --quiet, --silent do not print \`checking...' messages 1329a73027baSmrg --cache-file=FILE cache test results in FILE [disabled] 1330a73027baSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1331a73027baSmrg -n, --no-create do not create output files 1332a73027baSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1333a73027baSmrg 1334a73027baSmrgInstallation directories: 1335a73027baSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1336bf4a254eSmrg [$ac_default_prefix] 1337a73027baSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1338bf4a254eSmrg [PREFIX] 1339a73027baSmrg 1340a73027baSmrgBy default, \`make install' will install all the files in 1341a73027baSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1342a73027baSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1343a73027baSmrgfor instance \`--prefix=\$HOME'. 1344a73027baSmrg 1345a73027baSmrgFor better control, use the options below. 1346a73027baSmrg 1347a73027baSmrgFine tuning of the installation directories: 1348bf4a254eSmrg --bindir=DIR user executables [EPREFIX/bin] 1349bf4a254eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1350bf4a254eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1351bf4a254eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1352bf4a254eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1353bf4a254eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1354bf4a254eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1355bf4a254eSmrg --includedir=DIR C header files [PREFIX/include] 1356bf4a254eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1357bf4a254eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1358bf4a254eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1359bf4a254eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1360bf4a254eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1361bf4a254eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1362bf4a254eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 1363bf4a254eSmrg --htmldir=DIR html documentation [DOCDIR] 1364bf4a254eSmrg --dvidir=DIR dvi documentation [DOCDIR] 1365bf4a254eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1366bf4a254eSmrg --psdir=DIR ps documentation [DOCDIR] 1367a73027baSmrg_ACEOF 1368a73027baSmrg 1369a73027baSmrg cat <<\_ACEOF 1370a73027baSmrg 1371a73027baSmrgProgram names: 1372a73027baSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1373a73027baSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1374a73027baSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1375a73027baSmrg 1376a73027baSmrgSystem types: 1377a73027baSmrg --build=BUILD configure for building on BUILD [guessed] 1378a73027baSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1379a73027baSmrg_ACEOF 1380a73027baSmrgfi 1381a73027baSmrg 1382a73027baSmrgif test -n "$ac_init_help"; then 1383a73027baSmrg case $ac_init_help in 1384bf4a254eSmrg short | recursive ) echo "Configuration of xinit 1.2.1:";; 1385a73027baSmrg esac 1386a73027baSmrg cat <<\_ACEOF 1387a73027baSmrg 1388a73027baSmrgOptional Features: 1389bf4a254eSmrg --disable-option-checking ignore unrecognized --enable/--with options 1390a73027baSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391a73027baSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392a73027baSmrg --enable-maintainer-mode enable make rules and dependencies not useful 1393a73027baSmrg (and sometimes confusing) to the casual installer 1394a73027baSmrg --disable-dependency-tracking speeds up one-time build 1395a73027baSmrg --enable-dependency-tracking do not reject slow dependency extractors 1396bf4a254eSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 1397bf4a254eSmrg --disable-silent-rules verbose build output (undo: `make V=0') 1398bf4a254eSmrg --enable-strict-compilation 1399bf4a254eSmrg Enable all warnings from compiler and make them 1400bf4a254eSmrg errors (default: disabled) 1401a73027baSmrg 1402a73027baSmrgOptional Packages: 1403a73027baSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1404a73027baSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1405bf4a254eSmrg --with-release-version=STRING 1406bf4a254eSmrg Use release version string in package name 1407a73027baSmrg --with-xrdb=XRDB Path to xrdb 1408a73027baSmrg --with-xmodmap=XMODMAP Path to xmodmap 1409a73027baSmrg --with-twm=TWM Path to twm 1410a73027baSmrg --with-xclock=XCLOCK Path to xclock 1411a73027baSmrg --with-xterm=XTERM Path to xterm 1412a73027baSmrg --with-xserver=XSERVER Path to default X server 1413a73027baSmrg --with-xauth=XAUTH Path to xauth 1414a73027baSmrg --with-xinit=XINIT Path to xinit 1415bf4a254eSmrg --with-xinitdir=XINITDIR 1416bf4a254eSmrg Path to xinitdir 1417a73027baSmrg --with-launchd Build with support for Apple's launchd (default: 1418a73027baSmrg auto) 1419a73027baSmrg --with-launchagents-dir=PATH 1420a73027baSmrg Path to launchd's LaunchAgents directory (default: 1421a73027baSmrg /Library/LaunchAgents) 1422a73027baSmrg --with-launchdaemons-dir=PATH 1423a73027baSmrg Path to launchd's LaunchDaemonss directory (default: 1424a73027baSmrg /Library/LaunchDaemons) 1425bf4a254eSmrg --with-launchd-id-prefix=PATH 1426bf4a254eSmrg Prefix to use for launchd identifiers (default: 1427bf4a254eSmrg org.x) 1428a73027baSmrg 1429a73027baSmrgSome influential environment variables: 1430a73027baSmrg CC C compiler command 1431a73027baSmrg CFLAGS C compiler flags 1432a73027baSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433a73027baSmrg nonstandard directory <lib dir> 1434a73027baSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1435bf4a254eSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436a73027baSmrg you have headers in a nonstandard directory <include dir> 1437a73027baSmrg CPP C preprocessor 1438a73027baSmrg PKG_CONFIG path to pkg-config utility 1439a73027baSmrg XINIT_CFLAGS 1440a73027baSmrg C compiler flags for XINIT, overriding pkg-config 1441a73027baSmrg XINIT_LIBS linker flags for XINIT, overriding pkg-config 1442a73027baSmrg 1443a73027baSmrgUse these variables to override the choices made by `configure' or to help 1444a73027baSmrgit to find libraries and programs with nonstandard names/locations. 1445a73027baSmrg 1446a73027baSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1447a73027baSmrg_ACEOF 1448a73027baSmrgac_status=$? 1449a73027baSmrgfi 1450a73027baSmrg 1451a73027baSmrgif test "$ac_init_help" = "recursive"; then 1452a73027baSmrg # If there are subdirs, report their specific --help. 1453a73027baSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1454bf4a254eSmrg test -d "$ac_dir" || 1455bf4a254eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1456bf4a254eSmrg continue 1457a73027baSmrg ac_builddir=. 1458a73027baSmrg 1459a73027baSmrgcase "$ac_dir" in 1460a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461a73027baSmrg*) 1462bf4a254eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1463a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 1464bf4a254eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1465a73027baSmrg case $ac_top_builddir_sub in 1466a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1468a73027baSmrg esac ;; 1469a73027baSmrgesac 1470a73027baSmrgac_abs_top_builddir=$ac_pwd 1471a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1472a73027baSmrg# for backward compatibility: 1473a73027baSmrgac_top_builddir=$ac_top_build_prefix 1474a73027baSmrg 1475a73027baSmrgcase $srcdir in 1476a73027baSmrg .) # We are building in place. 1477a73027baSmrg ac_srcdir=. 1478a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 1479a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 1480a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1481a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1482a73027baSmrg ac_top_srcdir=$srcdir 1483a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 1484a73027baSmrg *) # Relative name. 1485a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1486a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1487a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1488a73027baSmrgesac 1489a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1490a73027baSmrg 1491a73027baSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1492a73027baSmrg # Check for guested configure. 1493a73027baSmrg if test -f "$ac_srcdir/configure.gnu"; then 1494a73027baSmrg echo && 1495a73027baSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1496a73027baSmrg elif test -f "$ac_srcdir/configure"; then 1497a73027baSmrg echo && 1498a73027baSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1499a73027baSmrg else 1500bf4a254eSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1501a73027baSmrg fi || ac_status=$? 1502a73027baSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1503a73027baSmrg done 1504a73027baSmrgfi 1505a73027baSmrg 1506a73027baSmrgtest -n "$ac_init_help" && exit $ac_status 1507a73027baSmrgif $ac_init_version; then 1508a73027baSmrg cat <<\_ACEOF 1509bf4a254eSmrgxinit configure 1.2.1 1510bf4a254eSmrggenerated by GNU Autoconf 2.65 1511a73027baSmrg 1512bf4a254eSmrgCopyright (C) 2009 Free Software Foundation, Inc. 1513a73027baSmrgThis configure script is free software; the Free Software Foundation 1514a73027baSmrggives unlimited permission to copy, distribute and modify it. 1515a73027baSmrg_ACEOF 1516a73027baSmrg exit 1517a73027baSmrgfi 1518a73027baSmrg 1519bf4a254eSmrg## ------------------------ ## 1520bf4a254eSmrg## Autoconf initialization. ## 1521bf4a254eSmrg## ------------------------ ## 1522a73027baSmrg 1523bf4a254eSmrg# ac_fn_c_try_compile LINENO 1524bf4a254eSmrg# -------------------------- 1525bf4a254eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1526bf4a254eSmrgac_fn_c_try_compile () 1527a73027baSmrg{ 1528bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529bf4a254eSmrg rm -f conftest.$ac_objext 1530bf4a254eSmrg if { { ac_try="$ac_compile" 1531bf4a254eSmrgcase "(($ac_try" in 1532bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533bf4a254eSmrg *) ac_try_echo=$ac_try;; 1534bf4a254eSmrgesac 1535bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1537bf4a254eSmrg (eval "$ac_compile") 2>conftest.err 1538bf4a254eSmrg ac_status=$? 1539bf4a254eSmrg if test -s conftest.err; then 1540bf4a254eSmrg grep -v '^ *+' conftest.err >conftest.er1 1541bf4a254eSmrg cat conftest.er1 >&5 1542bf4a254eSmrg mv -f conftest.er1 conftest.err 1543bf4a254eSmrg fi 1544bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1545bf4a254eSmrg test $ac_status = 0; } && { 1546bf4a254eSmrg test -z "$ac_c_werror_flag" || 1547bf4a254eSmrg test ! -s conftest.err 1548bf4a254eSmrg } && test -s conftest.$ac_objext; then : 1549bf4a254eSmrg ac_retval=0 1550bf4a254eSmrgelse 1551bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1552bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1553a73027baSmrg 1554bf4a254eSmrg ac_retval=1 1555bf4a254eSmrgfi 1556bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1557bf4a254eSmrg as_fn_set_status $ac_retval 1558a73027baSmrg 1559bf4a254eSmrg} # ac_fn_c_try_compile 1560a73027baSmrg 1561bf4a254eSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR 1562bf4a254eSmrg# ------------------------------------ 1563bf4a254eSmrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1564bf4a254eSmrgac_fn_c_check_decl () 1565bf4a254eSmrg{ 1566bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1568bf4a254eSmrg$as_echo_n "checking whether $2 is declared... " >&6; } 1569bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1570bf4a254eSmrg $as_echo_n "(cached) " >&6 1571bf4a254eSmrgelse 1572bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573bf4a254eSmrg/* end confdefs.h. */ 1574bf4a254eSmrg$4 1575bf4a254eSmrgint 1576bf4a254eSmrgmain () 1577bf4a254eSmrg{ 1578bf4a254eSmrg#ifndef $2 1579bf4a254eSmrg (void) $2; 1580bf4a254eSmrg#endif 1581a73027baSmrg 1582bf4a254eSmrg ; 1583bf4a254eSmrg return 0; 1584bf4a254eSmrg} 1585bf4a254eSmrg_ACEOF 1586bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1587bf4a254eSmrg eval "$3=yes" 1588bf4a254eSmrgelse 1589bf4a254eSmrg eval "$3=no" 1590bf4a254eSmrgfi 1591bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1592bf4a254eSmrgfi 1593bf4a254eSmrgeval ac_res=\$$3 1594bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1595bf4a254eSmrg$as_echo "$ac_res" >&6; } 1596bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1597a73027baSmrg 1598bf4a254eSmrg} # ac_fn_c_check_decl 1599a73027baSmrg 1600bf4a254eSmrg# ac_fn_c_try_cpp LINENO 1601bf4a254eSmrg# ---------------------- 1602bf4a254eSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1603bf4a254eSmrgac_fn_c_try_cpp () 1604bf4a254eSmrg{ 1605bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606bf4a254eSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1607bf4a254eSmrgcase "(($ac_try" in 1608bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609bf4a254eSmrg *) ac_try_echo=$ac_try;; 1610bf4a254eSmrgesac 1611bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1613bf4a254eSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1614bf4a254eSmrg ac_status=$? 1615bf4a254eSmrg if test -s conftest.err; then 1616bf4a254eSmrg grep -v '^ *+' conftest.err >conftest.er1 1617bf4a254eSmrg cat conftest.er1 >&5 1618bf4a254eSmrg mv -f conftest.er1 conftest.err 1619bf4a254eSmrg fi 1620bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621bf4a254eSmrg test $ac_status = 0; } >/dev/null && { 1622bf4a254eSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1623bf4a254eSmrg test ! -s conftest.err 1624bf4a254eSmrg }; then : 1625bf4a254eSmrg ac_retval=0 1626bf4a254eSmrgelse 1627bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1628bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1629a73027baSmrg 1630bf4a254eSmrg ac_retval=1 1631bf4a254eSmrgfi 1632bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1633bf4a254eSmrg as_fn_set_status $ac_retval 1634a73027baSmrg 1635bf4a254eSmrg} # ac_fn_c_try_cpp 1636bf4a254eSmrg 1637bf4a254eSmrg# ac_fn_c_try_run LINENO 1638bf4a254eSmrg# ---------------------- 1639bf4a254eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1640bf4a254eSmrg# that executables *can* be run. 1641bf4a254eSmrgac_fn_c_try_run () 1642bf4a254eSmrg{ 1643bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644bf4a254eSmrg if { { ac_try="$ac_link" 1645bf4a254eSmrgcase "(($ac_try" in 1646bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647bf4a254eSmrg *) ac_try_echo=$ac_try;; 1648bf4a254eSmrgesac 1649bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1651bf4a254eSmrg (eval "$ac_link") 2>&5 1652bf4a254eSmrg ac_status=$? 1653bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654bf4a254eSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1655bf4a254eSmrg { { case "(($ac_try" in 1656bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657bf4a254eSmrg *) ac_try_echo=$ac_try;; 1658bf4a254eSmrgesac 1659bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1661bf4a254eSmrg (eval "$ac_try") 2>&5 1662bf4a254eSmrg ac_status=$? 1663bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664bf4a254eSmrg test $ac_status = 0; }; }; then : 1665bf4a254eSmrg ac_retval=0 1666bf4a254eSmrgelse 1667bf4a254eSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1668bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1669bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1670bf4a254eSmrg 1671bf4a254eSmrg ac_retval=$ac_status 1672bf4a254eSmrgfi 1673bf4a254eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1674bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1675bf4a254eSmrg as_fn_set_status $ac_retval 1676bf4a254eSmrg 1677bf4a254eSmrg} # ac_fn_c_try_run 1678bf4a254eSmrg 1679bf4a254eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1680bf4a254eSmrg# ------------------------------------------------------- 1681bf4a254eSmrg# Tests whether HEADER exists and can be compiled using the include files in 1682bf4a254eSmrg# INCLUDES, setting the cache variable VAR accordingly. 1683bf4a254eSmrgac_fn_c_check_header_compile () 1684bf4a254eSmrg{ 1685bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 1688bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1689bf4a254eSmrg $as_echo_n "(cached) " >&6 1690bf4a254eSmrgelse 1691bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692bf4a254eSmrg/* end confdefs.h. */ 1693bf4a254eSmrg$4 1694bf4a254eSmrg#include <$2> 1695bf4a254eSmrg_ACEOF 1696bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1697bf4a254eSmrg eval "$3=yes" 1698bf4a254eSmrgelse 1699bf4a254eSmrg eval "$3=no" 1700bf4a254eSmrgfi 1701bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1702bf4a254eSmrgfi 1703bf4a254eSmrgeval ac_res=\$$3 1704bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1705bf4a254eSmrg$as_echo "$ac_res" >&6; } 1706bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707bf4a254eSmrg 1708bf4a254eSmrg} # ac_fn_c_check_header_compile 1709bf4a254eSmrg 1710bf4a254eSmrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1711bf4a254eSmrg# ------------------------------------------- 1712bf4a254eSmrg# Tests whether TYPE exists after having included INCLUDES, setting cache 1713bf4a254eSmrg# variable VAR accordingly. 1714bf4a254eSmrgac_fn_c_check_type () 1715bf4a254eSmrg{ 1716bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1718bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 1719bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1720bf4a254eSmrg $as_echo_n "(cached) " >&6 1721bf4a254eSmrgelse 1722bf4a254eSmrg eval "$3=no" 1723bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1724bf4a254eSmrg/* end confdefs.h. */ 1725bf4a254eSmrg$4 1726bf4a254eSmrgint 1727bf4a254eSmrgmain () 1728bf4a254eSmrg{ 1729bf4a254eSmrgif (sizeof ($2)) 1730bf4a254eSmrg return 0; 1731bf4a254eSmrg ; 1732bf4a254eSmrg return 0; 1733bf4a254eSmrg} 1734bf4a254eSmrg_ACEOF 1735bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1736bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737bf4a254eSmrg/* end confdefs.h. */ 1738bf4a254eSmrg$4 1739bf4a254eSmrgint 1740bf4a254eSmrgmain () 1741bf4a254eSmrg{ 1742bf4a254eSmrgif (sizeof (($2))) 1743bf4a254eSmrg return 0; 1744bf4a254eSmrg ; 1745bf4a254eSmrg return 0; 1746bf4a254eSmrg} 1747bf4a254eSmrg_ACEOF 1748bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1749bf4a254eSmrg 1750bf4a254eSmrgelse 1751bf4a254eSmrg eval "$3=yes" 1752bf4a254eSmrgfi 1753bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754bf4a254eSmrgfi 1755bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1756bf4a254eSmrgfi 1757bf4a254eSmrgeval ac_res=\$$3 1758bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759bf4a254eSmrg$as_echo "$ac_res" >&6; } 1760bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1761bf4a254eSmrg 1762bf4a254eSmrg} # ac_fn_c_check_type 1763bf4a254eSmrg 1764bf4a254eSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1765bf4a254eSmrg# ------------------------------------------------------- 1766bf4a254eSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1767bf4a254eSmrg# the include files in INCLUDES and setting the cache variable VAR 1768bf4a254eSmrg# accordingly. 1769bf4a254eSmrgac_fn_c_check_header_mongrel () 1770bf4a254eSmrg{ 1771bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772bf4a254eSmrg if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1773bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 1775bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1776bf4a254eSmrg $as_echo_n "(cached) " >&6 1777bf4a254eSmrgfi 1778bf4a254eSmrgeval ac_res=\$$3 1779bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780bf4a254eSmrg$as_echo "$ac_res" >&6; } 1781bf4a254eSmrgelse 1782bf4a254eSmrg # Is the header compilable? 1783bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1784bf4a254eSmrg$as_echo_n "checking $2 usability... " >&6; } 1785bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786bf4a254eSmrg/* end confdefs.h. */ 1787bf4a254eSmrg$4 1788bf4a254eSmrg#include <$2> 1789bf4a254eSmrg_ACEOF 1790bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1791bf4a254eSmrg ac_header_compiler=yes 1792bf4a254eSmrgelse 1793bf4a254eSmrg ac_header_compiler=no 1794bf4a254eSmrgfi 1795bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1797bf4a254eSmrg$as_echo "$ac_header_compiler" >&6; } 1798bf4a254eSmrg 1799bf4a254eSmrg# Is the header present? 1800bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1801bf4a254eSmrg$as_echo_n "checking $2 presence... " >&6; } 1802bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803bf4a254eSmrg/* end confdefs.h. */ 1804bf4a254eSmrg#include <$2> 1805bf4a254eSmrg_ACEOF 1806bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 1807bf4a254eSmrg ac_header_preproc=yes 1808bf4a254eSmrgelse 1809bf4a254eSmrg ac_header_preproc=no 1810bf4a254eSmrgfi 1811bf4a254eSmrgrm -f conftest.err conftest.$ac_ext 1812bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1813bf4a254eSmrg$as_echo "$ac_header_preproc" >&6; } 1814bf4a254eSmrg 1815bf4a254eSmrg# So? What about this header? 1816bf4a254eSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1817bf4a254eSmrg yes:no: ) 1818bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1819bf4a254eSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1820bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1821bf4a254eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1822bf4a254eSmrg ;; 1823bf4a254eSmrg no:yes:* ) 1824bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1825bf4a254eSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1826bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1827bf4a254eSmrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1828bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1829bf4a254eSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1830bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1831bf4a254eSmrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1832bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1833bf4a254eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1834bf4a254eSmrg( cat <<\_ASBOX 1835bf4a254eSmrg## ---------------------------------------------------------------------- ## 1836bf4a254eSmrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1837bf4a254eSmrg## ---------------------------------------------------------------------- ## 1838bf4a254eSmrg_ASBOX 1839bf4a254eSmrg ) | sed "s/^/$as_me: WARNING: /" >&2 1840bf4a254eSmrg ;; 1841bf4a254eSmrgesac 1842bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 1844bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1845bf4a254eSmrg $as_echo_n "(cached) " >&6 1846bf4a254eSmrgelse 1847bf4a254eSmrg eval "$3=\$ac_header_compiler" 1848bf4a254eSmrgfi 1849bf4a254eSmrgeval ac_res=\$$3 1850bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851bf4a254eSmrg$as_echo "$ac_res" >&6; } 1852bf4a254eSmrgfi 1853bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1854bf4a254eSmrg 1855bf4a254eSmrg} # ac_fn_c_check_header_mongrel 1856bf4a254eSmrg 1857bf4a254eSmrg# ac_fn_c_try_link LINENO 1858bf4a254eSmrg# ----------------------- 1859bf4a254eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1860bf4a254eSmrgac_fn_c_try_link () 1861bf4a254eSmrg{ 1862bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863bf4a254eSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1864bf4a254eSmrg if { { ac_try="$ac_link" 1865bf4a254eSmrgcase "(($ac_try" in 1866bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1867bf4a254eSmrg *) ac_try_echo=$ac_try;; 1868bf4a254eSmrgesac 1869bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1870bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1871bf4a254eSmrg (eval "$ac_link") 2>conftest.err 1872bf4a254eSmrg ac_status=$? 1873bf4a254eSmrg if test -s conftest.err; then 1874bf4a254eSmrg grep -v '^ *+' conftest.err >conftest.er1 1875bf4a254eSmrg cat conftest.er1 >&5 1876bf4a254eSmrg mv -f conftest.er1 conftest.err 1877bf4a254eSmrg fi 1878bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1879bf4a254eSmrg test $ac_status = 0; } && { 1880bf4a254eSmrg test -z "$ac_c_werror_flag" || 1881bf4a254eSmrg test ! -s conftest.err 1882bf4a254eSmrg } && test -s conftest$ac_exeext && { 1883bf4a254eSmrg test "$cross_compiling" = yes || 1884bf4a254eSmrg $as_test_x conftest$ac_exeext 1885bf4a254eSmrg }; then : 1886bf4a254eSmrg ac_retval=0 1887bf4a254eSmrgelse 1888bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1889bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1890bf4a254eSmrg 1891bf4a254eSmrg ac_retval=1 1892bf4a254eSmrgfi 1893bf4a254eSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1894bf4a254eSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1895bf4a254eSmrg # interfere with the next link command; also delete a directory that is 1896bf4a254eSmrg # left behind by Apple's compiler. We do this before executing the actions. 1897bf4a254eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1898bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1899bf4a254eSmrg as_fn_set_status $ac_retval 1900bf4a254eSmrg 1901bf4a254eSmrg} # ac_fn_c_try_link 1902bf4a254eSmrg 1903bf4a254eSmrg# ac_fn_c_check_func LINENO FUNC VAR 1904bf4a254eSmrg# ---------------------------------- 1905bf4a254eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1906bf4a254eSmrgac_fn_c_check_func () 1907bf4a254eSmrg{ 1908bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 1911bf4a254eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1912bf4a254eSmrg $as_echo_n "(cached) " >&6 1913bf4a254eSmrgelse 1914bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915bf4a254eSmrg/* end confdefs.h. */ 1916bf4a254eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1917bf4a254eSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1918bf4a254eSmrg#define $2 innocuous_$2 1919bf4a254eSmrg 1920bf4a254eSmrg/* System header to define __stub macros and hopefully few prototypes, 1921bf4a254eSmrg which can conflict with char $2 (); below. 1922bf4a254eSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1923bf4a254eSmrg <limits.h> exists even on freestanding compilers. */ 1924bf4a254eSmrg 1925bf4a254eSmrg#ifdef __STDC__ 1926bf4a254eSmrg# include <limits.h> 1927bf4a254eSmrg#else 1928bf4a254eSmrg# include <assert.h> 1929bf4a254eSmrg#endif 1930bf4a254eSmrg 1931bf4a254eSmrg#undef $2 1932bf4a254eSmrg 1933bf4a254eSmrg/* Override any GCC internal prototype to avoid an error. 1934bf4a254eSmrg Use char because int might match the return type of a GCC 1935bf4a254eSmrg builtin and then its argument prototype would still apply. */ 1936bf4a254eSmrg#ifdef __cplusplus 1937bf4a254eSmrgextern "C" 1938bf4a254eSmrg#endif 1939bf4a254eSmrgchar $2 (); 1940bf4a254eSmrg/* The GNU C library defines this for functions which it implements 1941bf4a254eSmrg to always fail with ENOSYS. Some functions are actually named 1942bf4a254eSmrg something starting with __ and the normal name is an alias. */ 1943bf4a254eSmrg#if defined __stub_$2 || defined __stub___$2 1944bf4a254eSmrgchoke me 1945bf4a254eSmrg#endif 1946bf4a254eSmrg 1947bf4a254eSmrgint 1948bf4a254eSmrgmain () 1949bf4a254eSmrg{ 1950bf4a254eSmrgreturn $2 (); 1951bf4a254eSmrg ; 1952bf4a254eSmrg return 0; 1953bf4a254eSmrg} 1954bf4a254eSmrg_ACEOF 1955bf4a254eSmrgif ac_fn_c_try_link "$LINENO"; then : 1956bf4a254eSmrg eval "$3=yes" 1957bf4a254eSmrgelse 1958bf4a254eSmrg eval "$3=no" 1959bf4a254eSmrgfi 1960bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext \ 1961bf4a254eSmrg conftest$ac_exeext conftest.$ac_ext 1962bf4a254eSmrgfi 1963bf4a254eSmrgeval ac_res=\$$3 1964bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965bf4a254eSmrg$as_echo "$ac_res" >&6; } 1966bf4a254eSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1967bf4a254eSmrg 1968bf4a254eSmrg} # ac_fn_c_check_func 1969bf4a254eSmrgcat >config.log <<_ACEOF 1970bf4a254eSmrgThis file contains any messages produced by compilers while 1971bf4a254eSmrgrunning configure, to aid debugging if configure makes a mistake. 1972bf4a254eSmrg 1973bf4a254eSmrgIt was created by xinit $as_me 1.2.1, which was 1974bf4a254eSmrggenerated by GNU Autoconf 2.65. Invocation command line was 1975bf4a254eSmrg 1976bf4a254eSmrg $ $0 $@ 1977bf4a254eSmrg 1978bf4a254eSmrg_ACEOF 1979bf4a254eSmrgexec 5>>config.log 1980bf4a254eSmrg{ 1981bf4a254eSmrgcat <<_ASUNAME 1982bf4a254eSmrg## --------- ## 1983bf4a254eSmrg## Platform. ## 1984bf4a254eSmrg## --------- ## 1985bf4a254eSmrg 1986bf4a254eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1987bf4a254eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1988bf4a254eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1989bf4a254eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1990bf4a254eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1991bf4a254eSmrg 1992bf4a254eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1993bf4a254eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1994bf4a254eSmrg 1995bf4a254eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1996bf4a254eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1997bf4a254eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1998bf4a254eSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1999bf4a254eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2000bf4a254eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2001bf4a254eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2002bf4a254eSmrg 2003bf4a254eSmrg_ASUNAME 2004bf4a254eSmrg 2005bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006bf4a254eSmrgfor as_dir in $PATH 2007bf4a254eSmrgdo 2008bf4a254eSmrg IFS=$as_save_IFS 2009bf4a254eSmrg test -z "$as_dir" && as_dir=. 2010bf4a254eSmrg $as_echo "PATH: $as_dir" 2011bf4a254eSmrg done 2012bf4a254eSmrgIFS=$as_save_IFS 2013bf4a254eSmrg 2014bf4a254eSmrg} >&5 2015bf4a254eSmrg 2016bf4a254eSmrgcat >&5 <<_ACEOF 2017bf4a254eSmrg 2018bf4a254eSmrg 2019bf4a254eSmrg## ----------- ## 2020bf4a254eSmrg## Core tests. ## 2021bf4a254eSmrg## ----------- ## 2022bf4a254eSmrg 2023bf4a254eSmrg_ACEOF 2024a73027baSmrg 2025a73027baSmrg 2026a73027baSmrg# Keep a trace of the command line. 2027a73027baSmrg# Strip out --no-create and --no-recursion so they do not pile up. 2028a73027baSmrg# Strip out --silent because we don't want to record it for future runs. 2029a73027baSmrg# Also quote any args containing shell meta-characters. 2030a73027baSmrg# Make two passes to allow for proper duplicate-argument suppression. 2031a73027baSmrgac_configure_args= 2032a73027baSmrgac_configure_args0= 2033a73027baSmrgac_configure_args1= 2034a73027baSmrgac_must_keep_next=false 2035a73027baSmrgfor ac_pass in 1 2 2036a73027baSmrgdo 2037a73027baSmrg for ac_arg 2038a73027baSmrg do 2039a73027baSmrg case $ac_arg in 2040a73027baSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2041a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2042a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 2043a73027baSmrg continue ;; 2044a73027baSmrg *\'*) 2045bf4a254eSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2046a73027baSmrg esac 2047a73027baSmrg case $ac_pass in 2048bf4a254eSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2049a73027baSmrg 2) 2050bf4a254eSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 2051a73027baSmrg if test $ac_must_keep_next = true; then 2052a73027baSmrg ac_must_keep_next=false # Got value, back to normal. 2053a73027baSmrg else 2054a73027baSmrg case $ac_arg in 2055a73027baSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 2056a73027baSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2057a73027baSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2058a73027baSmrg | -with-* | --with-* | -without-* | --without-* | --x) 2059a73027baSmrg case "$ac_configure_args0 " in 2060a73027baSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2061a73027baSmrg esac 2062a73027baSmrg ;; 2063a73027baSmrg -* ) ac_must_keep_next=true ;; 2064a73027baSmrg esac 2065a73027baSmrg fi 2066bf4a254eSmrg as_fn_append ac_configure_args " '$ac_arg'" 2067a73027baSmrg ;; 2068a73027baSmrg esac 2069a73027baSmrg done 2070a73027baSmrgdone 2071bf4a254eSmrg{ ac_configure_args0=; unset ac_configure_args0;} 2072bf4a254eSmrg{ ac_configure_args1=; unset ac_configure_args1;} 2073a73027baSmrg 2074a73027baSmrg# When interrupted or exit'd, cleanup temporary files, and complete 2075a73027baSmrg# config.log. We remove comments because anyway the quotes in there 2076a73027baSmrg# would cause problems or look ugly. 2077a73027baSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 2078a73027baSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2079a73027baSmrgtrap 'exit_status=$? 2080a73027baSmrg # Save into config.log some information that might help in debugging. 2081a73027baSmrg { 2082a73027baSmrg echo 2083a73027baSmrg 2084a73027baSmrg cat <<\_ASBOX 2085a73027baSmrg## ---------------- ## 2086a73027baSmrg## Cache variables. ## 2087a73027baSmrg## ---------------- ## 2088a73027baSmrg_ASBOX 2089a73027baSmrg echo 2090a73027baSmrg # The following way of writing the cache mishandles newlines in values, 2091a73027baSmrg( 2092a73027baSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2093a73027baSmrg eval ac_val=\$$ac_var 2094a73027baSmrg case $ac_val in #( 2095a73027baSmrg *${as_nl}*) 2096a73027baSmrg case $ac_var in #( 2097bf4a254eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2098bf4a254eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2099a73027baSmrg esac 2100a73027baSmrg case $ac_var in #( 2101a73027baSmrg _ | IFS | as_nl) ;; #( 2102bf4a254eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2103bf4a254eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 2104a73027baSmrg esac ;; 2105a73027baSmrg esac 2106a73027baSmrg done 2107a73027baSmrg (set) 2>&1 | 2108a73027baSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2109a73027baSmrg *${as_nl}ac_space=\ *) 2110a73027baSmrg sed -n \ 2111a73027baSmrg "s/'\''/'\''\\\\'\'''\''/g; 2112a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2113a73027baSmrg ;; #( 2114a73027baSmrg *) 2115a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2116a73027baSmrg ;; 2117a73027baSmrg esac | 2118a73027baSmrg sort 2119a73027baSmrg) 2120a73027baSmrg echo 2121a73027baSmrg 2122a73027baSmrg cat <<\_ASBOX 2123a73027baSmrg## ----------------- ## 2124a73027baSmrg## Output variables. ## 2125a73027baSmrg## ----------------- ## 2126a73027baSmrg_ASBOX 2127a73027baSmrg echo 2128a73027baSmrg for ac_var in $ac_subst_vars 2129a73027baSmrg do 2130a73027baSmrg eval ac_val=\$$ac_var 2131a73027baSmrg case $ac_val in 2132bf4a254eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2133a73027baSmrg esac 2134bf4a254eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2135a73027baSmrg done | sort 2136a73027baSmrg echo 2137a73027baSmrg 2138a73027baSmrg if test -n "$ac_subst_files"; then 2139a73027baSmrg cat <<\_ASBOX 2140a73027baSmrg## ------------------- ## 2141a73027baSmrg## File substitutions. ## 2142a73027baSmrg## ------------------- ## 2143a73027baSmrg_ASBOX 2144a73027baSmrg echo 2145a73027baSmrg for ac_var in $ac_subst_files 2146a73027baSmrg do 2147a73027baSmrg eval ac_val=\$$ac_var 2148a73027baSmrg case $ac_val in 2149bf4a254eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2150a73027baSmrg esac 2151bf4a254eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2152a73027baSmrg done | sort 2153a73027baSmrg echo 2154a73027baSmrg fi 2155a73027baSmrg 2156a73027baSmrg if test -s confdefs.h; then 2157a73027baSmrg cat <<\_ASBOX 2158a73027baSmrg## ----------- ## 2159a73027baSmrg## confdefs.h. ## 2160a73027baSmrg## ----------- ## 2161a73027baSmrg_ASBOX 2162a73027baSmrg echo 2163a73027baSmrg cat confdefs.h 2164a73027baSmrg echo 2165a73027baSmrg fi 2166a73027baSmrg test "$ac_signal" != 0 && 2167bf4a254eSmrg $as_echo "$as_me: caught signal $ac_signal" 2168bf4a254eSmrg $as_echo "$as_me: exit $exit_status" 2169a73027baSmrg } >&5 2170a73027baSmrg rm -f core *.core core.conftest.* && 2171a73027baSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2172a73027baSmrg exit $exit_status 2173a73027baSmrg' 0 2174a73027baSmrgfor ac_signal in 1 2 13 15; do 2175bf4a254eSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2176a73027baSmrgdone 2177a73027baSmrgac_signal=0 2178a73027baSmrg 2179a73027baSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2180a73027baSmrgrm -f -r conftest* confdefs.h 2181a73027baSmrg 2182bf4a254eSmrg$as_echo "/* confdefs.h */" > confdefs.h 2183bf4a254eSmrg 2184a73027baSmrg# Predefined preprocessor variables. 2185a73027baSmrg 2186a73027baSmrgcat >>confdefs.h <<_ACEOF 2187a73027baSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2188a73027baSmrg_ACEOF 2189a73027baSmrg 2190a73027baSmrgcat >>confdefs.h <<_ACEOF 2191a73027baSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2192a73027baSmrg_ACEOF 2193a73027baSmrg 2194a73027baSmrgcat >>confdefs.h <<_ACEOF 2195a73027baSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2196a73027baSmrg_ACEOF 2197a73027baSmrg 2198a73027baSmrgcat >>confdefs.h <<_ACEOF 2199a73027baSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2200a73027baSmrg_ACEOF 2201a73027baSmrg 2202a73027baSmrgcat >>confdefs.h <<_ACEOF 2203a73027baSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2204a73027baSmrg_ACEOF 2205a73027baSmrg 2206bf4a254eSmrgcat >>confdefs.h <<_ACEOF 2207bf4a254eSmrg#define PACKAGE_URL "$PACKAGE_URL" 2208bf4a254eSmrg_ACEOF 2209bf4a254eSmrg 2210a73027baSmrg 2211a73027baSmrg# Let the site file select an alternate cache file if it wants to. 2212bf4a254eSmrg# Prefer an explicitly selected file to automatically selected ones. 2213bf4a254eSmrgac_site_file1=NONE 2214bf4a254eSmrgac_site_file2=NONE 2215a73027baSmrgif test -n "$CONFIG_SITE"; then 2216bf4a254eSmrg ac_site_file1=$CONFIG_SITE 2217a73027baSmrgelif test "x$prefix" != xNONE; then 2218bf4a254eSmrg ac_site_file1=$prefix/share/config.site 2219bf4a254eSmrg ac_site_file2=$prefix/etc/config.site 2220a73027baSmrgelse 2221bf4a254eSmrg ac_site_file1=$ac_default_prefix/share/config.site 2222bf4a254eSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2223a73027baSmrgfi 2224bf4a254eSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2225a73027baSmrgdo 2226bf4a254eSmrg test "x$ac_site_file" = xNONE && continue 2227bf4a254eSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2228bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2229bf4a254eSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2230a73027baSmrg sed 's/^/| /' "$ac_site_file" >&5 2231a73027baSmrg . "$ac_site_file" 2232a73027baSmrg fi 2233a73027baSmrgdone 2234a73027baSmrg 2235a73027baSmrgif test -r "$cache_file"; then 2236bf4a254eSmrg # Some versions of bash will fail to source /dev/null (special files 2237bf4a254eSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2238bf4a254eSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2239bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2240bf4a254eSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2241a73027baSmrg case $cache_file in 2242a73027baSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2243a73027baSmrg *) . "./$cache_file";; 2244a73027baSmrg esac 2245a73027baSmrg fi 2246a73027baSmrgelse 2247bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2248bf4a254eSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2249a73027baSmrg >$cache_file 2250a73027baSmrgfi 2251a73027baSmrg 2252a73027baSmrg# Check that the precious variables saved in the cache have kept the same 2253a73027baSmrg# value. 2254a73027baSmrgac_cache_corrupted=false 2255a73027baSmrgfor ac_var in $ac_precious_vars; do 2256a73027baSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2257a73027baSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2258a73027baSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2259a73027baSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2260a73027baSmrg case $ac_old_set,$ac_new_set in 2261a73027baSmrg set,) 2262bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2263bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2264a73027baSmrg ac_cache_corrupted=: ;; 2265a73027baSmrg ,set) 2266bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2267bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2268a73027baSmrg ac_cache_corrupted=: ;; 2269a73027baSmrg ,);; 2270a73027baSmrg *) 2271a73027baSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2272bf4a254eSmrg # differences in whitespace do not lead to failure. 2273bf4a254eSmrg ac_old_val_w=`echo x $ac_old_val` 2274bf4a254eSmrg ac_new_val_w=`echo x $ac_new_val` 2275bf4a254eSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2276bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2277bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2278bf4a254eSmrg ac_cache_corrupted=: 2279bf4a254eSmrg else 2280bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2281bf4a254eSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2282bf4a254eSmrg eval $ac_var=\$ac_old_val 2283bf4a254eSmrg fi 2284bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2285bf4a254eSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2286bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2287bf4a254eSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2288a73027baSmrg fi;; 2289a73027baSmrg esac 2290a73027baSmrg # Pass precious variables to config.status. 2291a73027baSmrg if test "$ac_new_set" = set; then 2292a73027baSmrg case $ac_new_val in 2293bf4a254eSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2294a73027baSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2295a73027baSmrg esac 2296a73027baSmrg case " $ac_configure_args " in 2297a73027baSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2298bf4a254eSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2299a73027baSmrg esac 2300a73027baSmrg fi 2301a73027baSmrgdone 2302a73027baSmrgif $ac_cache_corrupted; then 2303bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2304bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2305bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2306bf4a254eSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2307bf4a254eSmrg as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2308a73027baSmrgfi 2309bf4a254eSmrg## -------------------- ## 2310bf4a254eSmrg## Main body of script. ## 2311bf4a254eSmrg## -------------------- ## 2312a73027baSmrg 2313a73027baSmrgac_ext=c 2314a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2315a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2316a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2317a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2318a73027baSmrg 2319a73027baSmrg 2320bf4a254eSmrgam__api_version='1.11' 2321a73027baSmrg 2322a73027baSmrgac_aux_dir= 2323a73027baSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2324bf4a254eSmrg for ac_t in install-sh install.sh shtool; do 2325bf4a254eSmrg if test -f "$ac_dir/$ac_t"; then 2326bf4a254eSmrg ac_aux_dir=$ac_dir 2327bf4a254eSmrg ac_install_sh="$ac_aux_dir/$ac_t -c" 2328bf4a254eSmrg break 2 2329bf4a254eSmrg fi 2330bf4a254eSmrg done 2331a73027baSmrgdone 2332a73027baSmrgif test -z "$ac_aux_dir"; then 2333bf4a254eSmrg as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2334a73027baSmrgfi 2335a73027baSmrg 2336a73027baSmrg# These three variables are undocumented and unsupported, 2337a73027baSmrg# and are intended to be withdrawn in a future Autoconf release. 2338a73027baSmrg# They can cause serious problems if a builder's source tree is in a directory 2339a73027baSmrg# whose full name contains unusual characters. 2340a73027baSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2341a73027baSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2342a73027baSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2343a73027baSmrg 2344a73027baSmrg 2345a73027baSmrg# Find a good install program. We prefer a C program (faster), 2346a73027baSmrg# so one script is as good as another. But avoid the broken or 2347a73027baSmrg# incompatible versions: 2348a73027baSmrg# SysV /etc/install, /usr/sbin/install 2349a73027baSmrg# SunOS /usr/etc/install 2350a73027baSmrg# IRIX /sbin/install 2351a73027baSmrg# AIX /bin/install 2352a73027baSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2353a73027baSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2354a73027baSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2355a73027baSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2356a73027baSmrg# OS/2's system install, which has a completely different semantic 2357a73027baSmrg# ./install, which can be erroneously created by make from ./install.sh. 2358bf4a254eSmrg# Reject install programs that cannot install multiple files. 2359bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2360bf4a254eSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2361a73027baSmrgif test -z "$INSTALL"; then 2362bf4a254eSmrgif test "${ac_cv_path_install+set}" = set; then : 2363bf4a254eSmrg $as_echo_n "(cached) " >&6 2364a73027baSmrgelse 2365a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2366a73027baSmrgfor as_dir in $PATH 2367a73027baSmrgdo 2368a73027baSmrg IFS=$as_save_IFS 2369a73027baSmrg test -z "$as_dir" && as_dir=. 2370bf4a254eSmrg # Account for people who put trailing slashes in PATH elements. 2371bf4a254eSmrgcase $as_dir/ in #(( 2372bf4a254eSmrg ./ | .// | /[cC]/* | \ 2373a73027baSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2374bf4a254eSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2375a73027baSmrg /usr/ucb/* ) ;; 2376a73027baSmrg *) 2377a73027baSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2378a73027baSmrg # Don't use installbsd from OSF since it installs stuff as root 2379a73027baSmrg # by default. 2380a73027baSmrg for ac_prog in ginstall scoinst install; do 2381a73027baSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2382a73027baSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2383a73027baSmrg if test $ac_prog = install && 2384a73027baSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2385a73027baSmrg # AIX install. It has an incompatible calling convention. 2386a73027baSmrg : 2387a73027baSmrg elif test $ac_prog = install && 2388a73027baSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2389a73027baSmrg # program-specific install script used by HP pwplus--don't use. 2390a73027baSmrg : 2391a73027baSmrg else 2392bf4a254eSmrg rm -rf conftest.one conftest.two conftest.dir 2393bf4a254eSmrg echo one > conftest.one 2394bf4a254eSmrg echo two > conftest.two 2395bf4a254eSmrg mkdir conftest.dir 2396bf4a254eSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2397bf4a254eSmrg test -s conftest.one && test -s conftest.two && 2398bf4a254eSmrg test -s conftest.dir/conftest.one && 2399bf4a254eSmrg test -s conftest.dir/conftest.two 2400bf4a254eSmrg then 2401bf4a254eSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2402bf4a254eSmrg break 3 2403bf4a254eSmrg fi 2404a73027baSmrg fi 2405a73027baSmrg fi 2406a73027baSmrg done 2407a73027baSmrg done 2408a73027baSmrg ;; 2409a73027baSmrgesac 2410bf4a254eSmrg 2411bf4a254eSmrg done 2412a73027baSmrgIFS=$as_save_IFS 2413a73027baSmrg 2414bf4a254eSmrgrm -rf conftest.one conftest.two conftest.dir 2415a73027baSmrg 2416a73027baSmrgfi 2417a73027baSmrg if test "${ac_cv_path_install+set}" = set; then 2418a73027baSmrg INSTALL=$ac_cv_path_install 2419a73027baSmrg else 2420a73027baSmrg # As a last resort, use the slow shell script. Don't cache a 2421a73027baSmrg # value for INSTALL within a source directory, because that will 2422a73027baSmrg # break other packages using the cache if that directory is 2423a73027baSmrg # removed, or if the value is a relative name. 2424a73027baSmrg INSTALL=$ac_install_sh 2425a73027baSmrg fi 2426a73027baSmrgfi 2427bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2428bf4a254eSmrg$as_echo "$INSTALL" >&6; } 2429a73027baSmrg 2430a73027baSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2431a73027baSmrg# It thinks the first close brace ends the variable substitution. 2432a73027baSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2433a73027baSmrg 2434a73027baSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2435a73027baSmrg 2436a73027baSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2437a73027baSmrg 2438bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2439bf4a254eSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2440a73027baSmrg# Just in case 2441a73027baSmrgsleep 1 2442a73027baSmrgecho timestamp > conftest.file 2443bf4a254eSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2444bf4a254eSmrg# name. Accept space and tab only in the latter. 2445bf4a254eSmrgam_lf=' 2446bf4a254eSmrg' 2447bf4a254eSmrgcase `pwd` in 2448bf4a254eSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2449bf4a254eSmrg as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2450bf4a254eSmrgesac 2451bf4a254eSmrgcase $srcdir in 2452bf4a254eSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2453bf4a254eSmrg as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2454bf4a254eSmrgesac 2455bf4a254eSmrg 2456a73027baSmrg# Do `set' in a subshell so we don't clobber the current shell's 2457a73027baSmrg# arguments. Must try -L first in case configure is actually a 2458a73027baSmrg# symlink; some systems play weird games with the mod time of symlinks 2459a73027baSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2460a73027baSmrg# directory). 2461a73027baSmrgif ( 2462bf4a254eSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2463a73027baSmrg if test "$*" = "X"; then 2464a73027baSmrg # -L didn't work. 2465bf4a254eSmrg set X `ls -t "$srcdir/configure" conftest.file` 2466a73027baSmrg fi 2467a73027baSmrg rm -f conftest.file 2468a73027baSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2469a73027baSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2470a73027baSmrg 2471a73027baSmrg # If neither matched, then we have a broken ls. This can happen 2472a73027baSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2473a73027baSmrg # broken ls alias from the environment. This has actually 2474a73027baSmrg # happened. Such a system could not be considered "sane". 2475bf4a254eSmrg as_fn_error "ls -t appears to fail. Make sure there is not a broken 2476bf4a254eSmrgalias in your environment" "$LINENO" 5 2477a73027baSmrg fi 2478a73027baSmrg 2479a73027baSmrg test "$2" = conftest.file 2480a73027baSmrg ) 2481a73027baSmrgthen 2482a73027baSmrg # Ok. 2483a73027baSmrg : 2484a73027baSmrgelse 2485bf4a254eSmrg as_fn_error "newly created file is older than distributed files! 2486bf4a254eSmrgCheck your system clock" "$LINENO" 5 2487a73027baSmrgfi 2488bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2489bf4a254eSmrg$as_echo "yes" >&6; } 2490a73027baSmrgtest "$program_prefix" != NONE && 2491a73027baSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2492a73027baSmrg# Use a double $ so make ignores it. 2493a73027baSmrgtest "$program_suffix" != NONE && 2494a73027baSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2495bf4a254eSmrg# Double any \ or $. 2496a73027baSmrg# By default was `s,x,x', remove it if useless. 2497bf4a254eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2498bf4a254eSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2499a73027baSmrg 2500a73027baSmrg# expand $ac_aux_dir to an absolute path 2501a73027baSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2502a73027baSmrg 2503bf4a254eSmrgif test x"${MISSING+set}" != xset; then 2504bf4a254eSmrg case $am_aux_dir in 2505bf4a254eSmrg *\ * | *\ *) 2506bf4a254eSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2507bf4a254eSmrg *) 2508bf4a254eSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2509bf4a254eSmrg esac 2510bf4a254eSmrgfi 2511a73027baSmrg# Use eval to expand $SHELL 2512a73027baSmrgif eval "$MISSING --run true"; then 2513a73027baSmrg am_missing_run="$MISSING --run " 2514a73027baSmrgelse 2515a73027baSmrg am_missing_run= 2516bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2517bf4a254eSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2518a73027baSmrgfi 2519a73027baSmrg 2520bf4a254eSmrgif test x"${install_sh}" != xset; then 2521bf4a254eSmrg case $am_aux_dir in 2522bf4a254eSmrg *\ * | *\ *) 2523bf4a254eSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2524bf4a254eSmrg *) 2525bf4a254eSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2526bf4a254eSmrg esac 2527bf4a254eSmrgfi 2528bf4a254eSmrg 2529bf4a254eSmrg# Installed binaries are usually stripped using `strip' when the user 2530bf4a254eSmrg# run `make install-strip'. However `strip' might not be the right 2531bf4a254eSmrg# tool to use in cross-compilation environments, therefore Automake 2532bf4a254eSmrg# will honor the `STRIP' environment variable to overrule this program. 2533bf4a254eSmrgif test "$cross_compiling" != no; then 2534bf4a254eSmrg if test -n "$ac_tool_prefix"; then 2535bf4a254eSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2536bf4a254eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2537bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2538bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 2539bf4a254eSmrgif test "${ac_cv_prog_STRIP+set}" = set; then : 2540bf4a254eSmrg $as_echo_n "(cached) " >&6 2541bf4a254eSmrgelse 2542bf4a254eSmrg if test -n "$STRIP"; then 2543bf4a254eSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2544bf4a254eSmrgelse 2545bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2546bf4a254eSmrgfor as_dir in $PATH 2547bf4a254eSmrgdo 2548bf4a254eSmrg IFS=$as_save_IFS 2549bf4a254eSmrg test -z "$as_dir" && as_dir=. 2550bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2551bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2552bf4a254eSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2553bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2554bf4a254eSmrg break 2 2555bf4a254eSmrg fi 2556bf4a254eSmrgdone 2557bf4a254eSmrg done 2558bf4a254eSmrgIFS=$as_save_IFS 2559bf4a254eSmrg 2560bf4a254eSmrgfi 2561bf4a254eSmrgfi 2562bf4a254eSmrgSTRIP=$ac_cv_prog_STRIP 2563bf4a254eSmrgif test -n "$STRIP"; then 2564bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2565bf4a254eSmrg$as_echo "$STRIP" >&6; } 2566bf4a254eSmrgelse 2567bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2568bf4a254eSmrg$as_echo "no" >&6; } 2569bf4a254eSmrgfi 2570bf4a254eSmrg 2571bf4a254eSmrg 2572bf4a254eSmrgfi 2573bf4a254eSmrgif test -z "$ac_cv_prog_STRIP"; then 2574bf4a254eSmrg ac_ct_STRIP=$STRIP 2575bf4a254eSmrg # Extract the first word of "strip", so it can be a program name with args. 2576bf4a254eSmrgset dummy strip; ac_word=$2 2577bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2578bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 2579bf4a254eSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2580bf4a254eSmrg $as_echo_n "(cached) " >&6 2581bf4a254eSmrgelse 2582bf4a254eSmrg if test -n "$ac_ct_STRIP"; then 2583bf4a254eSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2584bf4a254eSmrgelse 2585bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586bf4a254eSmrgfor as_dir in $PATH 2587bf4a254eSmrgdo 2588bf4a254eSmrg IFS=$as_save_IFS 2589bf4a254eSmrg test -z "$as_dir" && as_dir=. 2590bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2591bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2592bf4a254eSmrg ac_cv_prog_ac_ct_STRIP="strip" 2593bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2594bf4a254eSmrg break 2 2595bf4a254eSmrg fi 2596bf4a254eSmrgdone 2597bf4a254eSmrg done 2598bf4a254eSmrgIFS=$as_save_IFS 2599bf4a254eSmrg 2600bf4a254eSmrgfi 2601bf4a254eSmrgfi 2602bf4a254eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2603bf4a254eSmrgif test -n "$ac_ct_STRIP"; then 2604bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2605bf4a254eSmrg$as_echo "$ac_ct_STRIP" >&6; } 2606bf4a254eSmrgelse 2607bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2608bf4a254eSmrg$as_echo "no" >&6; } 2609bf4a254eSmrgfi 2610bf4a254eSmrg 2611bf4a254eSmrg if test "x$ac_ct_STRIP" = x; then 2612bf4a254eSmrg STRIP=":" 2613bf4a254eSmrg else 2614bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 2615bf4a254eSmrgyes:) 2616bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2617bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2618bf4a254eSmrgac_tool_warned=yes ;; 2619bf4a254eSmrgesac 2620bf4a254eSmrg STRIP=$ac_ct_STRIP 2621bf4a254eSmrg fi 2622bf4a254eSmrgelse 2623bf4a254eSmrg STRIP="$ac_cv_prog_STRIP" 2624bf4a254eSmrgfi 2625bf4a254eSmrg 2626bf4a254eSmrgfi 2627bf4a254eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2628bf4a254eSmrg 2629bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2630bf4a254eSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2631bf4a254eSmrgif test -z "$MKDIR_P"; then 2632bf4a254eSmrg if test "${ac_cv_path_mkdir+set}" = set; then : 2633bf4a254eSmrg $as_echo_n "(cached) " >&6 2634bf4a254eSmrgelse 2635bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2637bf4a254eSmrgdo 2638a73027baSmrg IFS=$as_save_IFS 2639a73027baSmrg test -z "$as_dir" && as_dir=. 2640bf4a254eSmrg for ac_prog in mkdir gmkdir; do 2641a73027baSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2642a73027baSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2643a73027baSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2644a73027baSmrg 'mkdir (GNU coreutils) '* | \ 2645a73027baSmrg 'mkdir (coreutils) '* | \ 2646a73027baSmrg 'mkdir (fileutils) '4.1*) 2647a73027baSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2648a73027baSmrg break 3;; 2649a73027baSmrg esac 2650a73027baSmrg done 2651a73027baSmrg done 2652bf4a254eSmrg done 2653a73027baSmrgIFS=$as_save_IFS 2654a73027baSmrg 2655a73027baSmrgfi 2656a73027baSmrg 2657bf4a254eSmrg test -d ./--version && rmdir ./--version 2658a73027baSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2659a73027baSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2660a73027baSmrg else 2661a73027baSmrg # As a last resort, use the slow shell script. Don't cache a 2662a73027baSmrg # value for MKDIR_P within a source directory, because that will 2663a73027baSmrg # break other packages using the cache if that directory is 2664a73027baSmrg # removed, or if the value is a relative name. 2665a73027baSmrg MKDIR_P="$ac_install_sh -d" 2666a73027baSmrg fi 2667a73027baSmrgfi 2668bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2669bf4a254eSmrg$as_echo "$MKDIR_P" >&6; } 2670a73027baSmrg 2671a73027baSmrgmkdir_p="$MKDIR_P" 2672a73027baSmrgcase $mkdir_p in 2673a73027baSmrg [\\/$]* | ?:[\\/]*) ;; 2674a73027baSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2675a73027baSmrgesac 2676a73027baSmrg 2677a73027baSmrgfor ac_prog in gawk mawk nawk awk 2678a73027baSmrgdo 2679a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2680a73027baSmrgset dummy $ac_prog; ac_word=$2 2681bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 2683bf4a254eSmrgif test "${ac_cv_prog_AWK+set}" = set; then : 2684bf4a254eSmrg $as_echo_n "(cached) " >&6 2685a73027baSmrgelse 2686a73027baSmrg if test -n "$AWK"; then 2687a73027baSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2688a73027baSmrgelse 2689a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690a73027baSmrgfor as_dir in $PATH 2691a73027baSmrgdo 2692a73027baSmrg IFS=$as_save_IFS 2693a73027baSmrg test -z "$as_dir" && as_dir=. 2694bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2695a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2696a73027baSmrg ac_cv_prog_AWK="$ac_prog" 2697bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2698a73027baSmrg break 2 2699a73027baSmrg fi 2700a73027baSmrgdone 2701bf4a254eSmrg done 2702a73027baSmrgIFS=$as_save_IFS 2703a73027baSmrg 2704a73027baSmrgfi 2705a73027baSmrgfi 2706a73027baSmrgAWK=$ac_cv_prog_AWK 2707a73027baSmrgif test -n "$AWK"; then 2708bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2709bf4a254eSmrg$as_echo "$AWK" >&6; } 2710a73027baSmrgelse 2711bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712bf4a254eSmrg$as_echo "no" >&6; } 2713a73027baSmrgfi 2714a73027baSmrg 2715a73027baSmrg 2716a73027baSmrg test -n "$AWK" && break 2717a73027baSmrgdone 2718a73027baSmrg 2719bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2720bf4a254eSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2721bf4a254eSmrgset x ${MAKE-make} 2722bf4a254eSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2723bf4a254eSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2724bf4a254eSmrg $as_echo_n "(cached) " >&6 2725a73027baSmrgelse 2726a73027baSmrg cat >conftest.make <<\_ACEOF 2727a73027baSmrgSHELL = /bin/sh 2728a73027baSmrgall: 2729a73027baSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2730a73027baSmrg_ACEOF 2731a73027baSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2732a73027baSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2733a73027baSmrg *@@@%%%=?*=@@@%%%*) 2734a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2735a73027baSmrg *) 2736a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2737a73027baSmrgesac 2738a73027baSmrgrm -f conftest.make 2739a73027baSmrgfi 2740a73027baSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2741bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2742bf4a254eSmrg$as_echo "yes" >&6; } 2743a73027baSmrg SET_MAKE= 2744a73027baSmrgelse 2745bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746bf4a254eSmrg$as_echo "no" >&6; } 2747a73027baSmrg SET_MAKE="MAKE=${MAKE-make}" 2748a73027baSmrgfi 2749a73027baSmrg 2750a73027baSmrgrm -rf .tst 2>/dev/null 2751a73027baSmrgmkdir .tst 2>/dev/null 2752a73027baSmrgif test -d .tst; then 2753a73027baSmrg am__leading_dot=. 2754a73027baSmrgelse 2755a73027baSmrg am__leading_dot=_ 2756a73027baSmrgfi 2757a73027baSmrgrmdir .tst 2>/dev/null 2758a73027baSmrg 2759a73027baSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2760a73027baSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2761a73027baSmrg # is not polluted with repeated "-I." 2762a73027baSmrg am__isrc=' -I$(srcdir)' 2763a73027baSmrg # test to see if srcdir already configured 2764a73027baSmrg if test -f $srcdir/config.status; then 2765bf4a254eSmrg as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2766a73027baSmrg fi 2767a73027baSmrgfi 2768a73027baSmrg 2769a73027baSmrg# test whether we have cygpath 2770a73027baSmrgif test -z "$CYGPATH_W"; then 2771a73027baSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2772a73027baSmrg CYGPATH_W='cygpath -w' 2773a73027baSmrg else 2774a73027baSmrg CYGPATH_W=echo 2775a73027baSmrg fi 2776a73027baSmrgfi 2777a73027baSmrg 2778a73027baSmrg 2779a73027baSmrg# Define the identity of the package. 2780a73027baSmrg PACKAGE='xinit' 2781bf4a254eSmrg VERSION='1.2.1' 2782a73027baSmrg 2783a73027baSmrg 2784a73027baSmrgcat >>confdefs.h <<_ACEOF 2785a73027baSmrg#define PACKAGE "$PACKAGE" 2786a73027baSmrg_ACEOF 2787a73027baSmrg 2788a73027baSmrg 2789a73027baSmrgcat >>confdefs.h <<_ACEOF 2790a73027baSmrg#define VERSION "$VERSION" 2791a73027baSmrg_ACEOF 2792a73027baSmrg 2793a73027baSmrg# Some tools Automake needs. 2794a73027baSmrg 2795a73027baSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2796a73027baSmrg 2797a73027baSmrg 2798a73027baSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2799a73027baSmrg 2800a73027baSmrg 2801a73027baSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2802a73027baSmrg 2803a73027baSmrg 2804a73027baSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2805a73027baSmrg 2806a73027baSmrg 2807a73027baSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2808a73027baSmrg 2809a73027baSmrg# We need awk for the "check" target. The system "awk" is bad on 2810a73027baSmrg# some platforms. 2811a73027baSmrg# Always define AMTAR for backward compatibility. 2812a73027baSmrg 2813a73027baSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2814a73027baSmrg 2815a73027baSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2816a73027baSmrg 2817a73027baSmrg 2818a73027baSmrg 2819a73027baSmrg 2820a73027baSmrg 2821bf4a254eSmrg 2822bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2823bf4a254eSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2824a73027baSmrg # Check whether --enable-maintainer-mode was given. 2825bf4a254eSmrgif test "${enable_maintainer_mode+set}" = set; then : 2826a73027baSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2827a73027baSmrgelse 2828a73027baSmrg USE_MAINTAINER_MODE=no 2829a73027baSmrgfi 2830a73027baSmrg 2831bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2832bf4a254eSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2833a73027baSmrg if test $USE_MAINTAINER_MODE = yes; then 2834a73027baSmrg MAINTAINER_MODE_TRUE= 2835a73027baSmrg MAINTAINER_MODE_FALSE='#' 2836a73027baSmrgelse 2837a73027baSmrg MAINTAINER_MODE_TRUE='#' 2838a73027baSmrg MAINTAINER_MODE_FALSE= 2839a73027baSmrgfi 2840a73027baSmrg 2841a73027baSmrg MAINT=$MAINTAINER_MODE_TRUE 2842a73027baSmrg 2843a73027baSmrg 2844a73027baSmrg 2845bf4a254eSmrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 2846bf4a254eSmrg 2847bf4a254eSmrg 2848bf4a254eSmrg 2849bf4a254eSmrg 2850bf4a254eSmrg 2851bf4a254eSmrg 2852bf4a254eSmrg 2853bf4a254eSmrg 2854bf4a254eSmrg 2855bf4a254eSmrg 2856bf4a254eSmrg 2857bf4a254eSmrgDEPDIR="${am__leading_dot}deps" 2858bf4a254eSmrg 2859bf4a254eSmrgac_config_commands="$ac_config_commands depfiles" 2860bf4a254eSmrg 2861bf4a254eSmrg 2862bf4a254eSmrgam_make=${MAKE-make} 2863bf4a254eSmrgcat > confinc << 'END' 2864bf4a254eSmrgam__doit: 2865bf4a254eSmrg @echo this is the am__doit target 2866bf4a254eSmrg.PHONY: am__doit 2867bf4a254eSmrgEND 2868bf4a254eSmrg# If we don't find an include directive, just comment out the code. 2869bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2870bf4a254eSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2871bf4a254eSmrgam__include="#" 2872bf4a254eSmrgam__quote= 2873bf4a254eSmrg_am_result=none 2874bf4a254eSmrg# First try GNU make style include. 2875bf4a254eSmrgecho "include confinc" > confmf 2876bf4a254eSmrg# Ignore all kinds of additional output from `make'. 2877bf4a254eSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2878bf4a254eSmrg*the\ am__doit\ target*) 2879bf4a254eSmrg am__include=include 2880bf4a254eSmrg am__quote= 2881bf4a254eSmrg _am_result=GNU 2882bf4a254eSmrg ;; 2883bf4a254eSmrgesac 2884bf4a254eSmrg# Now try BSD make style include. 2885bf4a254eSmrgif test "$am__include" = "#"; then 2886bf4a254eSmrg echo '.include "confinc"' > confmf 2887bf4a254eSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2888bf4a254eSmrg *the\ am__doit\ target*) 2889bf4a254eSmrg am__include=.include 2890bf4a254eSmrg am__quote="\"" 2891bf4a254eSmrg _am_result=BSD 2892bf4a254eSmrg ;; 2893bf4a254eSmrg esac 2894bf4a254eSmrgfi 2895bf4a254eSmrg 2896bf4a254eSmrg 2897bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2898bf4a254eSmrg$as_echo "$_am_result" >&6; } 2899bf4a254eSmrgrm -f confinc confmf 2900bf4a254eSmrg 2901bf4a254eSmrg# Check whether --enable-dependency-tracking was given. 2902bf4a254eSmrgif test "${enable_dependency_tracking+set}" = set; then : 2903bf4a254eSmrg enableval=$enable_dependency_tracking; 2904bf4a254eSmrgfi 2905bf4a254eSmrg 2906bf4a254eSmrgif test "x$enable_dependency_tracking" != xno; then 2907bf4a254eSmrg am_depcomp="$ac_aux_dir/depcomp" 2908bf4a254eSmrg AMDEPBACKSLASH='\' 2909bf4a254eSmrgfi 2910bf4a254eSmrg if test "x$enable_dependency_tracking" != xno; then 2911bf4a254eSmrg AMDEP_TRUE= 2912bf4a254eSmrg AMDEP_FALSE='#' 2913bf4a254eSmrgelse 2914bf4a254eSmrg AMDEP_TRUE='#' 2915bf4a254eSmrg AMDEP_FALSE= 2916bf4a254eSmrgfi 2917a73027baSmrg 2918a73027baSmrg 2919a73027baSmrgac_ext=c 2920a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2921a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2922a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2923a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2924a73027baSmrgif test -n "$ac_tool_prefix"; then 2925a73027baSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2926a73027baSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2927bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2928bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 2929bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 2930bf4a254eSmrg $as_echo_n "(cached) " >&6 2931a73027baSmrgelse 2932a73027baSmrg if test -n "$CC"; then 2933a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2934a73027baSmrgelse 2935a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936a73027baSmrgfor as_dir in $PATH 2937a73027baSmrgdo 2938a73027baSmrg IFS=$as_save_IFS 2939a73027baSmrg test -z "$as_dir" && as_dir=. 2940bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2941a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2942a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2943bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2944a73027baSmrg break 2 2945a73027baSmrg fi 2946a73027baSmrgdone 2947bf4a254eSmrg done 2948a73027baSmrgIFS=$as_save_IFS 2949a73027baSmrg 2950a73027baSmrgfi 2951a73027baSmrgfi 2952a73027baSmrgCC=$ac_cv_prog_CC 2953a73027baSmrgif test -n "$CC"; then 2954bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2955bf4a254eSmrg$as_echo "$CC" >&6; } 2956a73027baSmrgelse 2957bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2958bf4a254eSmrg$as_echo "no" >&6; } 2959a73027baSmrgfi 2960a73027baSmrg 2961a73027baSmrg 2962a73027baSmrgfi 2963a73027baSmrgif test -z "$ac_cv_prog_CC"; then 2964a73027baSmrg ac_ct_CC=$CC 2965a73027baSmrg # Extract the first word of "gcc", so it can be a program name with args. 2966a73027baSmrgset dummy gcc; ac_word=$2 2967bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 2969bf4a254eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2970bf4a254eSmrg $as_echo_n "(cached) " >&6 2971a73027baSmrgelse 2972a73027baSmrg if test -n "$ac_ct_CC"; then 2973a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2974a73027baSmrgelse 2975a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976a73027baSmrgfor as_dir in $PATH 2977a73027baSmrgdo 2978a73027baSmrg IFS=$as_save_IFS 2979a73027baSmrg test -z "$as_dir" && as_dir=. 2980bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2981a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2982a73027baSmrg ac_cv_prog_ac_ct_CC="gcc" 2983bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2984a73027baSmrg break 2 2985a73027baSmrg fi 2986a73027baSmrgdone 2987bf4a254eSmrg done 2988a73027baSmrgIFS=$as_save_IFS 2989a73027baSmrg 2990a73027baSmrgfi 2991a73027baSmrgfi 2992a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2993a73027baSmrgif test -n "$ac_ct_CC"; then 2994bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2995bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 2996a73027baSmrgelse 2997bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2998bf4a254eSmrg$as_echo "no" >&6; } 2999a73027baSmrgfi 3000a73027baSmrg 3001a73027baSmrg if test "x$ac_ct_CC" = x; then 3002a73027baSmrg CC="" 3003a73027baSmrg else 3004a73027baSmrg case $cross_compiling:$ac_tool_warned in 3005a73027baSmrgyes:) 3006bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3007bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3008a73027baSmrgac_tool_warned=yes ;; 3009a73027baSmrgesac 3010a73027baSmrg CC=$ac_ct_CC 3011a73027baSmrg fi 3012a73027baSmrgelse 3013a73027baSmrg CC="$ac_cv_prog_CC" 3014a73027baSmrgfi 3015a73027baSmrg 3016a73027baSmrgif test -z "$CC"; then 3017a73027baSmrg if test -n "$ac_tool_prefix"; then 3018a73027baSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3019a73027baSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3020bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 3022bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3023bf4a254eSmrg $as_echo_n "(cached) " >&6 3024a73027baSmrgelse 3025a73027baSmrg if test -n "$CC"; then 3026a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3027a73027baSmrgelse 3028a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029a73027baSmrgfor as_dir in $PATH 3030a73027baSmrgdo 3031a73027baSmrg IFS=$as_save_IFS 3032a73027baSmrg test -z "$as_dir" && as_dir=. 3033bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3034a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3035a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3036bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037a73027baSmrg break 2 3038a73027baSmrg fi 3039a73027baSmrgdone 3040bf4a254eSmrg done 3041a73027baSmrgIFS=$as_save_IFS 3042a73027baSmrg 3043a73027baSmrgfi 3044a73027baSmrgfi 3045a73027baSmrgCC=$ac_cv_prog_CC 3046a73027baSmrgif test -n "$CC"; then 3047bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3048bf4a254eSmrg$as_echo "$CC" >&6; } 3049a73027baSmrgelse 3050bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051bf4a254eSmrg$as_echo "no" >&6; } 3052a73027baSmrgfi 3053a73027baSmrg 3054a73027baSmrg 3055a73027baSmrg fi 3056a73027baSmrgfi 3057a73027baSmrgif test -z "$CC"; then 3058a73027baSmrg # Extract the first word of "cc", so it can be a program name with args. 3059a73027baSmrgset dummy cc; ac_word=$2 3060bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3061bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 3062bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3063bf4a254eSmrg $as_echo_n "(cached) " >&6 3064a73027baSmrgelse 3065a73027baSmrg if test -n "$CC"; then 3066a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3067a73027baSmrgelse 3068a73027baSmrg ac_prog_rejected=no 3069a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070a73027baSmrgfor as_dir in $PATH 3071a73027baSmrgdo 3072a73027baSmrg IFS=$as_save_IFS 3073a73027baSmrg test -z "$as_dir" && as_dir=. 3074bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3075a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3076a73027baSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3077a73027baSmrg ac_prog_rejected=yes 3078a73027baSmrg continue 3079a73027baSmrg fi 3080a73027baSmrg ac_cv_prog_CC="cc" 3081bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3082a73027baSmrg break 2 3083a73027baSmrg fi 3084a73027baSmrgdone 3085bf4a254eSmrg done 3086a73027baSmrgIFS=$as_save_IFS 3087a73027baSmrg 3088a73027baSmrgif test $ac_prog_rejected = yes; then 3089a73027baSmrg # We found a bogon in the path, so make sure we never use it. 3090a73027baSmrg set dummy $ac_cv_prog_CC 3091a73027baSmrg shift 3092a73027baSmrg if test $# != 0; then 3093a73027baSmrg # We chose a different compiler from the bogus one. 3094a73027baSmrg # However, it has the same basename, so the bogon will be chosen 3095a73027baSmrg # first if we set CC to just the basename; use the full file name. 3096a73027baSmrg shift 3097a73027baSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3098a73027baSmrg fi 3099a73027baSmrgfi 3100a73027baSmrgfi 3101a73027baSmrgfi 3102a73027baSmrgCC=$ac_cv_prog_CC 3103a73027baSmrgif test -n "$CC"; then 3104bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3105bf4a254eSmrg$as_echo "$CC" >&6; } 3106a73027baSmrgelse 3107bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108bf4a254eSmrg$as_echo "no" >&6; } 3109a73027baSmrgfi 3110a73027baSmrg 3111a73027baSmrg 3112a73027baSmrgfi 3113a73027baSmrgif test -z "$CC"; then 3114a73027baSmrg if test -n "$ac_tool_prefix"; then 3115a73027baSmrg for ac_prog in cl.exe 3116a73027baSmrg do 3117a73027baSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3118a73027baSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3119bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 3121bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 3122bf4a254eSmrg $as_echo_n "(cached) " >&6 3123a73027baSmrgelse 3124a73027baSmrg if test -n "$CC"; then 3125a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3126a73027baSmrgelse 3127a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3128a73027baSmrgfor as_dir in $PATH 3129a73027baSmrgdo 3130a73027baSmrg IFS=$as_save_IFS 3131a73027baSmrg test -z "$as_dir" && as_dir=. 3132bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3133a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3134a73027baSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3135bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3136a73027baSmrg break 2 3137a73027baSmrg fi 3138a73027baSmrgdone 3139bf4a254eSmrg done 3140a73027baSmrgIFS=$as_save_IFS 3141a73027baSmrg 3142a73027baSmrgfi 3143a73027baSmrgfi 3144a73027baSmrgCC=$ac_cv_prog_CC 3145a73027baSmrgif test -n "$CC"; then 3146bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3147bf4a254eSmrg$as_echo "$CC" >&6; } 3148a73027baSmrgelse 3149bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150bf4a254eSmrg$as_echo "no" >&6; } 3151a73027baSmrgfi 3152a73027baSmrg 3153a73027baSmrg 3154a73027baSmrg test -n "$CC" && break 3155a73027baSmrg done 3156a73027baSmrgfi 3157a73027baSmrgif test -z "$CC"; then 3158a73027baSmrg ac_ct_CC=$CC 3159a73027baSmrg for ac_prog in cl.exe 3160a73027baSmrgdo 3161a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3162a73027baSmrgset dummy $ac_prog; ac_word=$2 3163bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 3165bf4a254eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3166bf4a254eSmrg $as_echo_n "(cached) " >&6 3167a73027baSmrgelse 3168a73027baSmrg if test -n "$ac_ct_CC"; then 3169a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3170a73027baSmrgelse 3171a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172a73027baSmrgfor as_dir in $PATH 3173a73027baSmrgdo 3174a73027baSmrg IFS=$as_save_IFS 3175a73027baSmrg test -z "$as_dir" && as_dir=. 3176bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3177a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3178a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3179bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180a73027baSmrg break 2 3181a73027baSmrg fi 3182a73027baSmrgdone 3183bf4a254eSmrg done 3184a73027baSmrgIFS=$as_save_IFS 3185a73027baSmrg 3186a73027baSmrgfi 3187a73027baSmrgfi 3188a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3189a73027baSmrgif test -n "$ac_ct_CC"; then 3190bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3191bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 3192a73027baSmrgelse 3193bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194bf4a254eSmrg$as_echo "no" >&6; } 3195a73027baSmrgfi 3196a73027baSmrg 3197a73027baSmrg 3198a73027baSmrg test -n "$ac_ct_CC" && break 3199a73027baSmrgdone 3200a73027baSmrg 3201a73027baSmrg if test "x$ac_ct_CC" = x; then 3202a73027baSmrg CC="" 3203a73027baSmrg else 3204a73027baSmrg case $cross_compiling:$ac_tool_warned in 3205a73027baSmrgyes:) 3206bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3207bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3208a73027baSmrgac_tool_warned=yes ;; 3209a73027baSmrgesac 3210a73027baSmrg CC=$ac_ct_CC 3211a73027baSmrg fi 3212a73027baSmrgfi 3213a73027baSmrg 3214a73027baSmrgfi 3215a73027baSmrg 3216a73027baSmrg 3217bf4a254eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3218bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219bf4a254eSmrgas_fn_error "no acceptable C compiler found in \$PATH 3220bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 3221a73027baSmrg 3222a73027baSmrg# Provide some information about the compiler. 3223bf4a254eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3224bf4a254eSmrgset X $ac_compile 3225bf4a254eSmrgac_compiler=$2 3226bf4a254eSmrgfor ac_option in --version -v -V -qversion; do 3227bf4a254eSmrg { { ac_try="$ac_compiler $ac_option >&5" 3228a73027baSmrgcase "(($ac_try" in 3229a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230a73027baSmrg *) ac_try_echo=$ac_try;; 3231a73027baSmrgesac 3232bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3233bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3234bf4a254eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3235a73027baSmrg ac_status=$? 3236bf4a254eSmrg if test -s conftest.err; then 3237bf4a254eSmrg sed '10a\ 3238bf4a254eSmrg... rest of stderr output deleted ... 3239bf4a254eSmrg 10q' conftest.err >conftest.er1 3240bf4a254eSmrg cat conftest.er1 >&5 3241bf4a254eSmrg fi 3242bf4a254eSmrg rm -f conftest.er1 conftest.err 3243bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3244bf4a254eSmrg test $ac_status = 0; } 3245bf4a254eSmrgdone 3246a73027baSmrg 3247bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248a73027baSmrg/* end confdefs.h. */ 3249a73027baSmrg 3250a73027baSmrgint 3251a73027baSmrgmain () 3252a73027baSmrg{ 3253a73027baSmrg 3254a73027baSmrg ; 3255a73027baSmrg return 0; 3256a73027baSmrg} 3257a73027baSmrg_ACEOF 3258a73027baSmrgac_clean_files_save=$ac_clean_files 3259bf4a254eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3260a73027baSmrg# Try to create an executable without -o first, disregard a.out. 3261a73027baSmrg# It will help us diagnose broken compilers, and finding out an intuition 3262a73027baSmrg# of exeext. 3263bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3264bf4a254eSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3265bf4a254eSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3266bf4a254eSmrg 3267bf4a254eSmrg# The possible output files: 3268bf4a254eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3269bf4a254eSmrg 3270a73027baSmrgac_rmfiles= 3271a73027baSmrgfor ac_file in $ac_files 3272a73027baSmrgdo 3273a73027baSmrg case $ac_file in 3274bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3275a73027baSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3276a73027baSmrg esac 3277a73027baSmrgdone 3278a73027baSmrgrm -f $ac_rmfiles 3279a73027baSmrg 3280bf4a254eSmrgif { { ac_try="$ac_link_default" 3281a73027baSmrgcase "(($ac_try" in 3282a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283a73027baSmrg *) ac_try_echo=$ac_try;; 3284a73027baSmrgesac 3285bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3287a73027baSmrg (eval "$ac_link_default") 2>&5 3288a73027baSmrg ac_status=$? 3289bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290bf4a254eSmrg test $ac_status = 0; }; then : 3291a73027baSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3292a73027baSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3293a73027baSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3294a73027baSmrg# so that the user can short-circuit this test for compilers unknown to 3295a73027baSmrg# Autoconf. 3296a73027baSmrgfor ac_file in $ac_files '' 3297a73027baSmrgdo 3298a73027baSmrg test -f "$ac_file" || continue 3299a73027baSmrg case $ac_file in 3300bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3301a73027baSmrg ;; 3302a73027baSmrg [ab].out ) 3303a73027baSmrg # We found the default executable, but exeext='' is most 3304a73027baSmrg # certainly right. 3305a73027baSmrg break;; 3306a73027baSmrg *.* ) 3307bf4a254eSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3308a73027baSmrg then :; else 3309a73027baSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3310a73027baSmrg fi 3311a73027baSmrg # We set ac_cv_exeext here because the later test for it is not 3312a73027baSmrg # safe: cross compilers may not add the suffix if given an `-o' 3313a73027baSmrg # argument, so we may need to know it at that point already. 3314a73027baSmrg # Even if this section looks crufty: it has the advantage of 3315a73027baSmrg # actually working. 3316a73027baSmrg break;; 3317a73027baSmrg * ) 3318a73027baSmrg break;; 3319a73027baSmrg esac 3320a73027baSmrgdone 3321a73027baSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3322a73027baSmrg 3323a73027baSmrgelse 3324a73027baSmrg ac_file='' 3325a73027baSmrgfi 3326bf4a254eSmrgif test -z "$ac_file"; then : 3327bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328bf4a254eSmrg$as_echo "no" >&6; } 3329bf4a254eSmrg$as_echo "$as_me: failed program was:" >&5 3330a73027baSmrgsed 's/^/| /' conftest.$ac_ext >&5 3331a73027baSmrg 3332bf4a254eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3333bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3334bf4a254eSmrg{ as_fn_set_status 77 3335bf4a254eSmrgas_fn_error "C compiler cannot create executables 3336bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; }; } 3337bf4a254eSmrgelse 3338bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3339bf4a254eSmrg$as_echo "yes" >&6; } 3340a73027baSmrgfi 3341bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3342bf4a254eSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3343bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3344bf4a254eSmrg$as_echo "$ac_file" >&6; } 3345a73027baSmrgac_exeext=$ac_cv_exeext 3346a73027baSmrg 3347bf4a254eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3348a73027baSmrgac_clean_files=$ac_clean_files_save 3349bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3350bf4a254eSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3351bf4a254eSmrgif { { ac_try="$ac_link" 3352a73027baSmrgcase "(($ac_try" in 3353a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354a73027baSmrg *) ac_try_echo=$ac_try;; 3355a73027baSmrgesac 3356bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3357bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3358a73027baSmrg (eval "$ac_link") 2>&5 3359a73027baSmrg ac_status=$? 3360bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3361bf4a254eSmrg test $ac_status = 0; }; then : 3362a73027baSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3363a73027baSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3364a73027baSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3365a73027baSmrg# `rm'. 3366a73027baSmrgfor ac_file in conftest.exe conftest conftest.*; do 3367a73027baSmrg test -f "$ac_file" || continue 3368a73027baSmrg case $ac_file in 3369bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3370a73027baSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3371a73027baSmrg break;; 3372a73027baSmrg * ) break;; 3373a73027baSmrg esac 3374a73027baSmrgdone 3375a73027baSmrgelse 3376bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3377bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3378bf4a254eSmrgas_fn_error "cannot compute suffix of executables: cannot compile and link 3379bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 3380a73027baSmrgfi 3381bf4a254eSmrgrm -f conftest conftest$ac_cv_exeext 3382bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3383bf4a254eSmrg$as_echo "$ac_cv_exeext" >&6; } 3384a73027baSmrg 3385a73027baSmrgrm -f conftest.$ac_ext 3386a73027baSmrgEXEEXT=$ac_cv_exeext 3387a73027baSmrgac_exeext=$EXEEXT 3388bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3389bf4a254eSmrg/* end confdefs.h. */ 3390bf4a254eSmrg#include <stdio.h> 3391bf4a254eSmrgint 3392bf4a254eSmrgmain () 3393bf4a254eSmrg{ 3394bf4a254eSmrgFILE *f = fopen ("conftest.out", "w"); 3395bf4a254eSmrg return ferror (f) || fclose (f) != 0; 3396bf4a254eSmrg 3397bf4a254eSmrg ; 3398bf4a254eSmrg return 0; 3399bf4a254eSmrg} 3400a73027baSmrg_ACEOF 3401bf4a254eSmrgac_clean_files="$ac_clean_files conftest.out" 3402bf4a254eSmrg# Check that the compiler produces executables we can run. If not, either 3403bf4a254eSmrg# the compiler is broken, or we cross compile. 3404bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3405bf4a254eSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3406bf4a254eSmrgif test "$cross_compiling" != yes; then 3407bf4a254eSmrg { { ac_try="$ac_link" 3408bf4a254eSmrgcase "(($ac_try" in 3409bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3410bf4a254eSmrg *) ac_try_echo=$ac_try;; 3411bf4a254eSmrgesac 3412bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3413bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3414bf4a254eSmrg (eval "$ac_link") 2>&5 3415bf4a254eSmrg ac_status=$? 3416bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3417bf4a254eSmrg test $ac_status = 0; } 3418bf4a254eSmrg if { ac_try='./conftest$ac_cv_exeext' 3419bf4a254eSmrg { { case "(($ac_try" in 3420bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421bf4a254eSmrg *) ac_try_echo=$ac_try;; 3422bf4a254eSmrgesac 3423bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3425bf4a254eSmrg (eval "$ac_try") 2>&5 3426bf4a254eSmrg ac_status=$? 3427bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3428bf4a254eSmrg test $ac_status = 0; }; }; then 3429bf4a254eSmrg cross_compiling=no 3430bf4a254eSmrg else 3431bf4a254eSmrg if test "$cross_compiling" = maybe; then 3432bf4a254eSmrg cross_compiling=yes 3433bf4a254eSmrg else 3434bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3435bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3436bf4a254eSmrgas_fn_error "cannot run C compiled programs. 3437bf4a254eSmrgIf you meant to cross compile, use \`--host'. 3438bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 3439bf4a254eSmrg fi 3440bf4a254eSmrg fi 3441bf4a254eSmrgfi 3442bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3443bf4a254eSmrg$as_echo "$cross_compiling" >&6; } 3444bf4a254eSmrg 3445bf4a254eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3446bf4a254eSmrgac_clean_files=$ac_clean_files_save 3447bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3448bf4a254eSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3449bf4a254eSmrgif test "${ac_cv_objext+set}" = set; then : 3450bf4a254eSmrg $as_echo_n "(cached) " >&6 3451bf4a254eSmrgelse 3452bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453a73027baSmrg/* end confdefs.h. */ 3454a73027baSmrg 3455a73027baSmrgint 3456a73027baSmrgmain () 3457a73027baSmrg{ 3458a73027baSmrg 3459a73027baSmrg ; 3460a73027baSmrg return 0; 3461a73027baSmrg} 3462a73027baSmrg_ACEOF 3463a73027baSmrgrm -f conftest.o conftest.obj 3464bf4a254eSmrgif { { ac_try="$ac_compile" 3465a73027baSmrgcase "(($ac_try" in 3466a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467a73027baSmrg *) ac_try_echo=$ac_try;; 3468a73027baSmrgesac 3469bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3471a73027baSmrg (eval "$ac_compile") 2>&5 3472a73027baSmrg ac_status=$? 3473bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3474bf4a254eSmrg test $ac_status = 0; }; then : 3475a73027baSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3476a73027baSmrg test -f "$ac_file" || continue; 3477a73027baSmrg case $ac_file in 3478bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3479a73027baSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3480a73027baSmrg break;; 3481a73027baSmrg esac 3482a73027baSmrgdone 3483a73027baSmrgelse 3484bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 3485a73027baSmrgsed 's/^/| /' conftest.$ac_ext >&5 3486a73027baSmrg 3487bf4a254eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489bf4a254eSmrgas_fn_error "cannot compute suffix of object files: cannot compile 3490bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 3491a73027baSmrgfi 3492a73027baSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3493a73027baSmrgfi 3494bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3495bf4a254eSmrg$as_echo "$ac_cv_objext" >&6; } 3496a73027baSmrgOBJEXT=$ac_cv_objext 3497a73027baSmrgac_objext=$OBJEXT 3498bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3499bf4a254eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3500bf4a254eSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 3501bf4a254eSmrg $as_echo_n "(cached) " >&6 3502a73027baSmrgelse 3503bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504a73027baSmrg/* end confdefs.h. */ 3505a73027baSmrg 3506a73027baSmrgint 3507a73027baSmrgmain () 3508a73027baSmrg{ 3509a73027baSmrg#ifndef __GNUC__ 3510a73027baSmrg choke me 3511a73027baSmrg#endif 3512a73027baSmrg 3513a73027baSmrg ; 3514a73027baSmrg return 0; 3515a73027baSmrg} 3516a73027baSmrg_ACEOF 3517bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3518a73027baSmrg ac_compiler_gnu=yes 3519a73027baSmrgelse 3520bf4a254eSmrg ac_compiler_gnu=no 3521a73027baSmrgfi 3522a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523a73027baSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3524a73027baSmrg 3525a73027baSmrgfi 3526bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3527bf4a254eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3528bf4a254eSmrgif test $ac_compiler_gnu = yes; then 3529bf4a254eSmrg GCC=yes 3530bf4a254eSmrgelse 3531bf4a254eSmrg GCC= 3532bf4a254eSmrgfi 3533a73027baSmrgac_test_CFLAGS=${CFLAGS+set} 3534a73027baSmrgac_save_CFLAGS=$CFLAGS 3535bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3536bf4a254eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3537bf4a254eSmrgif test "${ac_cv_prog_cc_g+set}" = set; then : 3538bf4a254eSmrg $as_echo_n "(cached) " >&6 3539a73027baSmrgelse 3540a73027baSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3541a73027baSmrg ac_c_werror_flag=yes 3542a73027baSmrg ac_cv_prog_cc_g=no 3543a73027baSmrg CFLAGS="-g" 3544bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545a73027baSmrg/* end confdefs.h. */ 3546a73027baSmrg 3547a73027baSmrgint 3548a73027baSmrgmain () 3549a73027baSmrg{ 3550a73027baSmrg 3551a73027baSmrg ; 3552a73027baSmrg return 0; 3553a73027baSmrg} 3554a73027baSmrg_ACEOF 3555bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3556a73027baSmrg ac_cv_prog_cc_g=yes 3557a73027baSmrgelse 3558bf4a254eSmrg CFLAGS="" 3559bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3560a73027baSmrg/* end confdefs.h. */ 3561a73027baSmrg 3562a73027baSmrgint 3563a73027baSmrgmain () 3564a73027baSmrg{ 3565a73027baSmrg 3566a73027baSmrg ; 3567a73027baSmrg return 0; 3568a73027baSmrg} 3569a73027baSmrg_ACEOF 3570bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3571a73027baSmrg 3572bf4a254eSmrgelse 3573bf4a254eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3574a73027baSmrg CFLAGS="-g" 3575bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576a73027baSmrg/* end confdefs.h. */ 3577a73027baSmrg 3578a73027baSmrgint 3579a73027baSmrgmain () 3580a73027baSmrg{ 3581a73027baSmrg 3582a73027baSmrg ; 3583a73027baSmrg return 0; 3584a73027baSmrg} 3585a73027baSmrg_ACEOF 3586bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3587a73027baSmrg ac_cv_prog_cc_g=yes 3588a73027baSmrgfi 3589a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590a73027baSmrgfi 3591a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3592a73027baSmrgfi 3593a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594a73027baSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3595a73027baSmrgfi 3596bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3597bf4a254eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3598a73027baSmrgif test "$ac_test_CFLAGS" = set; then 3599a73027baSmrg CFLAGS=$ac_save_CFLAGS 3600a73027baSmrgelif test $ac_cv_prog_cc_g = yes; then 3601a73027baSmrg if test "$GCC" = yes; then 3602a73027baSmrg CFLAGS="-g -O2" 3603a73027baSmrg else 3604a73027baSmrg CFLAGS="-g" 3605a73027baSmrg fi 3606a73027baSmrgelse 3607a73027baSmrg if test "$GCC" = yes; then 3608a73027baSmrg CFLAGS="-O2" 3609a73027baSmrg else 3610a73027baSmrg CFLAGS= 3611a73027baSmrg fi 3612a73027baSmrgfi 3613bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3614bf4a254eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3615bf4a254eSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 3616bf4a254eSmrg $as_echo_n "(cached) " >&6 3617a73027baSmrgelse 3618a73027baSmrg ac_cv_prog_cc_c89=no 3619a73027baSmrgac_save_CC=$CC 3620bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621a73027baSmrg/* end confdefs.h. */ 3622a73027baSmrg#include <stdarg.h> 3623a73027baSmrg#include <stdio.h> 3624a73027baSmrg#include <sys/types.h> 3625a73027baSmrg#include <sys/stat.h> 3626a73027baSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627a73027baSmrgstruct buf { int x; }; 3628a73027baSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3629a73027baSmrgstatic char *e (p, i) 3630a73027baSmrg char **p; 3631a73027baSmrg int i; 3632a73027baSmrg{ 3633a73027baSmrg return p[i]; 3634a73027baSmrg} 3635a73027baSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3636a73027baSmrg{ 3637a73027baSmrg char *s; 3638a73027baSmrg va_list v; 3639a73027baSmrg va_start (v,p); 3640a73027baSmrg s = g (p, va_arg (v,int)); 3641a73027baSmrg va_end (v); 3642a73027baSmrg return s; 3643a73027baSmrg} 3644a73027baSmrg 3645a73027baSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646a73027baSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3647a73027baSmrg These don't provoke an error unfortunately, instead are silently treated 3648a73027baSmrg as 'x'. The following induces an error, until -std is added to get 3649a73027baSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650a73027baSmrg array size at least. It's necessary to write '\x00'==0 to get something 3651a73027baSmrg that's true only with -std. */ 3652a73027baSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653a73027baSmrg 3654a73027baSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655a73027baSmrg inside strings and character constants. */ 3656a73027baSmrg#define FOO(x) 'x' 3657a73027baSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658a73027baSmrg 3659a73027baSmrgint test (int i, double x); 3660a73027baSmrgstruct s1 {int (*f) (int a);}; 3661a73027baSmrgstruct s2 {int (*f) (double a);}; 3662a73027baSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663a73027baSmrgint argc; 3664a73027baSmrgchar **argv; 3665a73027baSmrgint 3666a73027baSmrgmain () 3667a73027baSmrg{ 3668a73027baSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669a73027baSmrg ; 3670a73027baSmrg return 0; 3671a73027baSmrg} 3672a73027baSmrg_ACEOF 3673a73027baSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674a73027baSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675a73027baSmrgdo 3676a73027baSmrg CC="$ac_save_CC $ac_arg" 3677bf4a254eSmrg if ac_fn_c_try_compile "$LINENO"; then : 3678a73027baSmrg ac_cv_prog_cc_c89=$ac_arg 3679a73027baSmrgfi 3680a73027baSmrgrm -f core conftest.err conftest.$ac_objext 3681a73027baSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3682a73027baSmrgdone 3683a73027baSmrgrm -f conftest.$ac_ext 3684a73027baSmrgCC=$ac_save_CC 3685a73027baSmrg 3686a73027baSmrgfi 3687a73027baSmrg# AC_CACHE_VAL 3688a73027baSmrgcase "x$ac_cv_prog_cc_c89" in 3689a73027baSmrg x) 3690bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3691bf4a254eSmrg$as_echo "none needed" >&6; } ;; 3692a73027baSmrg xno) 3693bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3694bf4a254eSmrg$as_echo "unsupported" >&6; } ;; 3695a73027baSmrg *) 3696a73027baSmrg CC="$CC $ac_cv_prog_cc_c89" 3697bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3698bf4a254eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3699a73027baSmrgesac 3700bf4a254eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3701a73027baSmrg 3702bf4a254eSmrgfi 3703a73027baSmrg 3704a73027baSmrgac_ext=c 3705a73027baSmrgac_cpp='$CPP $CPPFLAGS' 3706a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3709a73027baSmrg 3710a73027baSmrgdepcc="$CC" am_compiler_list= 3711a73027baSmrg 3712bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3713bf4a254eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3714bf4a254eSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3715bf4a254eSmrg $as_echo_n "(cached) " >&6 3716a73027baSmrgelse 3717a73027baSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3718a73027baSmrg # We make a subdir and do the tests there. Otherwise we can end up 3719a73027baSmrg # making bogus files that we don't know about and never remove. For 3720a73027baSmrg # instance it was reported that on HP-UX the gcc test will end up 3721a73027baSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3722a73027baSmrg # in D'. 3723a73027baSmrg mkdir conftest.dir 3724a73027baSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3725a73027baSmrg # using a relative directory. 3726a73027baSmrg cp "$am_depcomp" conftest.dir 3727a73027baSmrg cd conftest.dir 3728a73027baSmrg # We will build objects and dependencies in a subdirectory because 3729a73027baSmrg # it helps to detect inapplicable dependency modes. For instance 3730a73027baSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3731a73027baSmrg # side effect of compilation, but ICC will put the dependencies in 3732a73027baSmrg # the current directory while Tru64 will put them in the object 3733a73027baSmrg # directory. 3734a73027baSmrg mkdir sub 3735a73027baSmrg 3736a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3737a73027baSmrg if test "$am_compiler_list" = ""; then 3738a73027baSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3739a73027baSmrg fi 3740bf4a254eSmrg am__universal=false 3741bf4a254eSmrg case " $depcc " in #( 3742bf4a254eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3743bf4a254eSmrg esac 3744bf4a254eSmrg 3745a73027baSmrg for depmode in $am_compiler_list; do 3746a73027baSmrg # Setup a source with many dependencies, because some compilers 3747a73027baSmrg # like to wrap large dependency lists on column 80 (with \), and 3748a73027baSmrg # we should not choose a depcomp mode which is confused by this. 3749a73027baSmrg # 3750a73027baSmrg # We need to recreate these files for each test, as the compiler may 3751a73027baSmrg # overwrite some of them when testing with obscure command lines. 3752a73027baSmrg # This happens at least with the AIX C compiler. 3753a73027baSmrg : > sub/conftest.c 3754a73027baSmrg for i in 1 2 3 4 5 6; do 3755a73027baSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3756a73027baSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3757a73027baSmrg # Solaris 8's {/usr,}/bin/sh. 3758a73027baSmrg touch sub/conftst$i.h 3759a73027baSmrg done 3760a73027baSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3761a73027baSmrg 3762bf4a254eSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3763bf4a254eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3764bf4a254eSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3765bf4a254eSmrg # versions had trouble with output in subdirs 3766bf4a254eSmrg am__obj=sub/conftest.${OBJEXT-o} 3767bf4a254eSmrg am__minus_obj="-o $am__obj" 3768a73027baSmrg case $depmode in 3769bf4a254eSmrg gcc) 3770bf4a254eSmrg # This depmode causes a compiler race in universal mode. 3771bf4a254eSmrg test "$am__universal" = false || continue 3772bf4a254eSmrg ;; 3773a73027baSmrg nosideeffect) 3774a73027baSmrg # after this tag, mechanisms are not by side-effect, so they'll 3775a73027baSmrg # only be used when explicitly requested 3776a73027baSmrg if test "x$enable_dependency_tracking" = xyes; then 3777a73027baSmrg continue 3778a73027baSmrg else 3779a73027baSmrg break 3780a73027baSmrg fi 3781a73027baSmrg ;; 3782bf4a254eSmrg msvisualcpp | msvcmsys) 3783bf4a254eSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3784bf4a254eSmrg # not run yet. These depmodes are late enough in the game, and 3785bf4a254eSmrg # so weak that their functioning should not be impacted. 3786bf4a254eSmrg am__obj=conftest.${OBJEXT-o} 3787bf4a254eSmrg am__minus_obj= 3788bf4a254eSmrg ;; 3789a73027baSmrg none) break ;; 3790a73027baSmrg esac 3791a73027baSmrg if depmode=$depmode \ 3792bf4a254eSmrg source=sub/conftest.c object=$am__obj \ 3793a73027baSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794bf4a254eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3795a73027baSmrg >/dev/null 2>conftest.err && 3796a73027baSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797a73027baSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798bf4a254eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3799a73027baSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800a73027baSmrg # icc doesn't choke on unknown options, it will just issue warnings 3801a73027baSmrg # or remarks (even with -Werror). So we grep stderr for any message 3802a73027baSmrg # that says an option was ignored or not supported. 3803a73027baSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3804a73027baSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3805a73027baSmrg # The diagnosis changed in icc 8.0: 3806a73027baSmrg # icc: Command line remark: option '-MP' not supported 3807a73027baSmrg if (grep 'ignoring option' conftest.err || 3808a73027baSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809a73027baSmrg am_cv_CC_dependencies_compiler_type=$depmode 3810a73027baSmrg break 3811a73027baSmrg fi 3812a73027baSmrg fi 3813a73027baSmrg done 3814a73027baSmrg 3815a73027baSmrg cd .. 3816a73027baSmrg rm -rf conftest.dir 3817a73027baSmrgelse 3818a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3819a73027baSmrgfi 3820a73027baSmrg 3821a73027baSmrgfi 3822bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3823bf4a254eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824a73027baSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825a73027baSmrg 3826a73027baSmrg if 3827a73027baSmrg test "x$enable_dependency_tracking" != xno \ 3828a73027baSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829a73027baSmrg am__fastdepCC_TRUE= 3830a73027baSmrg am__fastdepCC_FALSE='#' 3831a73027baSmrgelse 3832a73027baSmrg am__fastdepCC_TRUE='#' 3833a73027baSmrg am__fastdepCC_FALSE= 3834a73027baSmrgfi 3835a73027baSmrg 3836a73027baSmrg 3837bf4a254eSmrg 3838bf4a254eSmrgac_ext=c 3839bf4a254eSmrgac_cpp='$CPP $CPPFLAGS' 3840bf4a254eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841bf4a254eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842bf4a254eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3843bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3844bf4a254eSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3845bf4a254eSmrg# On Suns, sometimes $CPP names a directory. 3846bf4a254eSmrgif test -n "$CPP" && test -d "$CPP"; then 3847bf4a254eSmrg CPP= 3848a73027baSmrgfi 3849bf4a254eSmrgif test -z "$CPP"; then 3850bf4a254eSmrg if test "${ac_cv_prog_CPP+set}" = set; then : 3851bf4a254eSmrg $as_echo_n "(cached) " >&6 3852a73027baSmrgelse 3853bf4a254eSmrg # Double quotes because CPP needs to be expanded 3854bf4a254eSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3855bf4a254eSmrg do 3856bf4a254eSmrg ac_preproc_ok=false 3857bf4a254eSmrgfor ac_c_preproc_warn_flag in '' yes 3858bf4a254eSmrgdo 3859bf4a254eSmrg # Use a header file that comes with gcc, so configuring glibc 3860bf4a254eSmrg # with a fresh cross-compiler works. 3861bf4a254eSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3862bf4a254eSmrg # <limits.h> exists even on freestanding compilers. 3863bf4a254eSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3864bf4a254eSmrg # not just through cpp. "Syntax error" is here to catch this case. 3865bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866a73027baSmrg/* end confdefs.h. */ 3867bf4a254eSmrg#ifdef __STDC__ 3868bf4a254eSmrg# include <limits.h> 3869bf4a254eSmrg#else 3870bf4a254eSmrg# include <assert.h> 3871bf4a254eSmrg#endif 3872bf4a254eSmrg Syntax error 3873bf4a254eSmrg_ACEOF 3874bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3875a73027baSmrg 3876bf4a254eSmrgelse 3877bf4a254eSmrg # Broken: fails on valid input. 3878bf4a254eSmrgcontinue 3879bf4a254eSmrgfi 3880bf4a254eSmrgrm -f conftest.err conftest.$ac_ext 3881a73027baSmrg 3882bf4a254eSmrg # OK, works on sane cases. Now check whether nonexistent headers 3883bf4a254eSmrg # can be detected and how. 3884bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885bf4a254eSmrg/* end confdefs.h. */ 3886bf4a254eSmrg#include <ac_nonexistent.h> 3887a73027baSmrg_ACEOF 3888bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3889a73027baSmrg # Broken: success on invalid input. 3890a73027baSmrgcontinue 3891a73027baSmrgelse 3892a73027baSmrg # Passes both tests. 3893a73027baSmrgac_preproc_ok=: 3894a73027baSmrgbreak 3895a73027baSmrgfi 3896a73027baSmrgrm -f conftest.err conftest.$ac_ext 3897a73027baSmrg 3898a73027baSmrgdone 3899a73027baSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3900a73027baSmrgrm -f conftest.err conftest.$ac_ext 3901bf4a254eSmrgif $ac_preproc_ok; then : 3902a73027baSmrg break 3903a73027baSmrgfi 3904a73027baSmrg 3905a73027baSmrg done 3906a73027baSmrg ac_cv_prog_CPP=$CPP 3907a73027baSmrg 3908a73027baSmrgfi 3909a73027baSmrg CPP=$ac_cv_prog_CPP 3910a73027baSmrgelse 3911a73027baSmrg ac_cv_prog_CPP=$CPP 3912a73027baSmrgfi 3913bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3914bf4a254eSmrg$as_echo "$CPP" >&6; } 3915a73027baSmrgac_preproc_ok=false 3916a73027baSmrgfor ac_c_preproc_warn_flag in '' yes 3917a73027baSmrgdo 3918a73027baSmrg # Use a header file that comes with gcc, so configuring glibc 3919a73027baSmrg # with a fresh cross-compiler works. 3920a73027baSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3921a73027baSmrg # <limits.h> exists even on freestanding compilers. 3922a73027baSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3923a73027baSmrg # not just through cpp. "Syntax error" is here to catch this case. 3924bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3925a73027baSmrg/* end confdefs.h. */ 3926a73027baSmrg#ifdef __STDC__ 3927a73027baSmrg# include <limits.h> 3928a73027baSmrg#else 3929a73027baSmrg# include <assert.h> 3930a73027baSmrg#endif 3931a73027baSmrg Syntax error 3932a73027baSmrg_ACEOF 3933bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3934a73027baSmrg 3935bf4a254eSmrgelse 3936a73027baSmrg # Broken: fails on valid input. 3937a73027baSmrgcontinue 3938a73027baSmrgfi 3939a73027baSmrgrm -f conftest.err conftest.$ac_ext 3940a73027baSmrg 3941a73027baSmrg # OK, works on sane cases. Now check whether nonexistent headers 3942a73027baSmrg # can be detected and how. 3943bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3944a73027baSmrg/* end confdefs.h. */ 3945a73027baSmrg#include <ac_nonexistent.h> 3946a73027baSmrg_ACEOF 3947bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3948a73027baSmrg # Broken: success on invalid input. 3949a73027baSmrgcontinue 3950a73027baSmrgelse 3951a73027baSmrg # Passes both tests. 3952a73027baSmrgac_preproc_ok=: 3953a73027baSmrgbreak 3954a73027baSmrgfi 3955a73027baSmrgrm -f conftest.err conftest.$ac_ext 3956a73027baSmrg 3957a73027baSmrgdone 3958a73027baSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3959a73027baSmrgrm -f conftest.err conftest.$ac_ext 3960bf4a254eSmrgif $ac_preproc_ok; then : 3961bf4a254eSmrg 3962a73027baSmrgelse 3963bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3964bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3965bf4a254eSmrgas_fn_error "C preprocessor \"$CPP\" fails sanity check 3966bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 3967a73027baSmrgfi 3968a73027baSmrg 3969a73027baSmrgac_ext=c 3970a73027baSmrgac_cpp='$CPP $CPPFLAGS' 3971a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3972a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3973a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3974a73027baSmrg 3975a73027baSmrg 3976bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3977bf4a254eSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3978bf4a254eSmrgif test "${ac_cv_path_GREP+set}" = set; then : 3979bf4a254eSmrg $as_echo_n "(cached) " >&6 3980a73027baSmrgelse 3981bf4a254eSmrg if test -z "$GREP"; then 3982bf4a254eSmrg ac_path_GREP_found=false 3983bf4a254eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 3984a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3985bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3986a73027baSmrgdo 3987a73027baSmrg IFS=$as_save_IFS 3988a73027baSmrg test -z "$as_dir" && as_dir=. 3989bf4a254eSmrg for ac_prog in grep ggrep; do 3990bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3991bf4a254eSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3992bf4a254eSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3993bf4a254eSmrg# Check for GNU ac_path_GREP and select it if it is found. 3994bf4a254eSmrg # Check for GNU $ac_path_GREP 3995bf4a254eSmrgcase `"$ac_path_GREP" --version 2>&1` in 3996bf4a254eSmrg*GNU*) 3997bf4a254eSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3998bf4a254eSmrg*) 3999bf4a254eSmrg ac_count=0 4000bf4a254eSmrg $as_echo_n 0123456789 >"conftest.in" 4001bf4a254eSmrg while : 4002bf4a254eSmrg do 4003bf4a254eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4004bf4a254eSmrg mv "conftest.tmp" "conftest.in" 4005bf4a254eSmrg cp "conftest.in" "conftest.nl" 4006bf4a254eSmrg $as_echo 'GREP' >> "conftest.nl" 4007bf4a254eSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4008bf4a254eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4009bf4a254eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4010bf4a254eSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4011bf4a254eSmrg # Best one so far, save it but keep looking for a better one 4012bf4a254eSmrg ac_cv_path_GREP="$ac_path_GREP" 4013bf4a254eSmrg ac_path_GREP_max=$ac_count 4014bf4a254eSmrg fi 4015bf4a254eSmrg # 10*(2^10) chars as input seems more than enough 4016bf4a254eSmrg test $ac_count -gt 10 && break 4017bf4a254eSmrg done 4018bf4a254eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4019a73027baSmrgesac 4020a73027baSmrg 4021bf4a254eSmrg $ac_path_GREP_found && break 3 4022bf4a254eSmrg done 4023bf4a254eSmrg done 4024bf4a254eSmrg done 4025bf4a254eSmrgIFS=$as_save_IFS 4026bf4a254eSmrg if test -z "$ac_cv_path_GREP"; then 4027bf4a254eSmrg as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4028bf4a254eSmrg fi 4029a73027baSmrgelse 4030bf4a254eSmrg ac_cv_path_GREP=$GREP 4031a73027baSmrgfi 4032a73027baSmrg 4033a73027baSmrgfi 4034bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4035bf4a254eSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4036bf4a254eSmrg GREP="$ac_cv_path_GREP" 4037a73027baSmrg 4038a73027baSmrg 4039bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4040bf4a254eSmrg$as_echo_n "checking for egrep... " >&6; } 4041bf4a254eSmrgif test "${ac_cv_path_EGREP+set}" = set; then : 4042bf4a254eSmrg $as_echo_n "(cached) " >&6 4043a73027baSmrgelse 4044bf4a254eSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4045bf4a254eSmrg then ac_cv_path_EGREP="$GREP -E" 4046bf4a254eSmrg else 4047bf4a254eSmrg if test -z "$EGREP"; then 4048bf4a254eSmrg ac_path_EGREP_found=false 4049bf4a254eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4050a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4051bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4052a73027baSmrgdo 4053a73027baSmrg IFS=$as_save_IFS 4054a73027baSmrg test -z "$as_dir" && as_dir=. 4055bf4a254eSmrg for ac_prog in egrep; do 4056bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4057bf4a254eSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4058bf4a254eSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4059bf4a254eSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4060a73027baSmrg # Check for GNU $ac_path_EGREP 4061a73027baSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4062a73027baSmrg*GNU*) 4063a73027baSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4064a73027baSmrg*) 4065a73027baSmrg ac_count=0 4066bf4a254eSmrg $as_echo_n 0123456789 >"conftest.in" 4067a73027baSmrg while : 4068a73027baSmrg do 4069a73027baSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4070a73027baSmrg mv "conftest.tmp" "conftest.in" 4071a73027baSmrg cp "conftest.in" "conftest.nl" 4072bf4a254eSmrg $as_echo 'EGREP' >> "conftest.nl" 4073a73027baSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4074a73027baSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4075bf4a254eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4076a73027baSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4077a73027baSmrg # Best one so far, save it but keep looking for a better one 4078a73027baSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4079a73027baSmrg ac_path_EGREP_max=$ac_count 4080a73027baSmrg fi 4081a73027baSmrg # 10*(2^10) chars as input seems more than enough 4082a73027baSmrg test $ac_count -gt 10 && break 4083a73027baSmrg done 4084a73027baSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4085a73027baSmrgesac 4086a73027baSmrg 4087bf4a254eSmrg $ac_path_EGREP_found && break 3 4088bf4a254eSmrg done 4089bf4a254eSmrg done 4090a73027baSmrg done 4091a73027baSmrgIFS=$as_save_IFS 4092bf4a254eSmrg if test -z "$ac_cv_path_EGREP"; then 4093bf4a254eSmrg as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4094bf4a254eSmrg fi 4095a73027baSmrgelse 4096a73027baSmrg ac_cv_path_EGREP=$EGREP 4097a73027baSmrgfi 4098a73027baSmrg 4099a73027baSmrg fi 4100a73027baSmrgfi 4101bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4102bf4a254eSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4103a73027baSmrg EGREP="$ac_cv_path_EGREP" 4104a73027baSmrg 4105a73027baSmrg 4106bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4107bf4a254eSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 4108bf4a254eSmrgif test "${ac_cv_header_stdc+set}" = set; then : 4109bf4a254eSmrg $as_echo_n "(cached) " >&6 4110a73027baSmrgelse 4111bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112a73027baSmrg/* end confdefs.h. */ 4113a73027baSmrg#include <stdlib.h> 4114a73027baSmrg#include <stdarg.h> 4115a73027baSmrg#include <string.h> 4116a73027baSmrg#include <float.h> 4117a73027baSmrg 4118a73027baSmrgint 4119a73027baSmrgmain () 4120a73027baSmrg{ 4121a73027baSmrg 4122a73027baSmrg ; 4123a73027baSmrg return 0; 4124a73027baSmrg} 4125a73027baSmrg_ACEOF 4126bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 4127a73027baSmrg ac_cv_header_stdc=yes 4128a73027baSmrgelse 4129bf4a254eSmrg ac_cv_header_stdc=no 4130a73027baSmrgfi 4131a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4132a73027baSmrg 4133a73027baSmrgif test $ac_cv_header_stdc = yes; then 4134a73027baSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4135bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136a73027baSmrg/* end confdefs.h. */ 4137a73027baSmrg#include <string.h> 4138a73027baSmrg 4139a73027baSmrg_ACEOF 4140a73027baSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4141bf4a254eSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4142bf4a254eSmrg 4143a73027baSmrgelse 4144a73027baSmrg ac_cv_header_stdc=no 4145a73027baSmrgfi 4146a73027baSmrgrm -f conftest* 4147a73027baSmrg 4148a73027baSmrgfi 4149a73027baSmrg 4150a73027baSmrgif test $ac_cv_header_stdc = yes; then 4151a73027baSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4152bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4153a73027baSmrg/* end confdefs.h. */ 4154a73027baSmrg#include <stdlib.h> 4155a73027baSmrg 4156a73027baSmrg_ACEOF 4157a73027baSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4158bf4a254eSmrg $EGREP "free" >/dev/null 2>&1; then : 4159bf4a254eSmrg 4160a73027baSmrgelse 4161a73027baSmrg ac_cv_header_stdc=no 4162a73027baSmrgfi 4163a73027baSmrgrm -f conftest* 4164a73027baSmrg 4165a73027baSmrgfi 4166a73027baSmrg 4167a73027baSmrgif test $ac_cv_header_stdc = yes; then 4168a73027baSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4169bf4a254eSmrg if test "$cross_compiling" = yes; then : 4170a73027baSmrg : 4171a73027baSmrgelse 4172bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173a73027baSmrg/* end confdefs.h. */ 4174a73027baSmrg#include <ctype.h> 4175a73027baSmrg#include <stdlib.h> 4176a73027baSmrg#if ((' ' & 0x0FF) == 0x020) 4177a73027baSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4178a73027baSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4179a73027baSmrg#else 4180a73027baSmrg# define ISLOWER(c) \ 4181a73027baSmrg (('a' <= (c) && (c) <= 'i') \ 4182a73027baSmrg || ('j' <= (c) && (c) <= 'r') \ 4183a73027baSmrg || ('s' <= (c) && (c) <= 'z')) 4184a73027baSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4185a73027baSmrg#endif 4186a73027baSmrg 4187a73027baSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4188a73027baSmrgint 4189a73027baSmrgmain () 4190a73027baSmrg{ 4191a73027baSmrg int i; 4192a73027baSmrg for (i = 0; i < 256; i++) 4193a73027baSmrg if (XOR (islower (i), ISLOWER (i)) 4194a73027baSmrg || toupper (i) != TOUPPER (i)) 4195a73027baSmrg return 2; 4196a73027baSmrg return 0; 4197a73027baSmrg} 4198a73027baSmrg_ACEOF 4199bf4a254eSmrgif ac_fn_c_try_run "$LINENO"; then : 4200a73027baSmrg 4201bf4a254eSmrgelse 4202bf4a254eSmrg ac_cv_header_stdc=no 4203a73027baSmrgfi 4204bf4a254eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4205bf4a254eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4206a73027baSmrgfi 4207a73027baSmrg 4208a73027baSmrgfi 4209a73027baSmrgfi 4210bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4211bf4a254eSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4212a73027baSmrgif test $ac_cv_header_stdc = yes; then 4213a73027baSmrg 4214bf4a254eSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4215a73027baSmrg 4216a73027baSmrgfi 4217a73027baSmrg 4218a73027baSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4219bf4a254eSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4220bf4a254eSmrg inttypes.h stdint.h unistd.h 4221bf4a254eSmrgdo : 4222bf4a254eSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4223bf4a254eSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4224bf4a254eSmrg" 4225bf4a254eSmrgeval as_val=\$$as_ac_Header 4226bf4a254eSmrg if test "x$as_val" = x""yes; then : 4227bf4a254eSmrg cat >>confdefs.h <<_ACEOF 4228bf4a254eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4229bf4a254eSmrg_ACEOF 4230a73027baSmrg 4231bf4a254eSmrgfi 4232a73027baSmrg 4233bf4a254eSmrgdone 4234a73027baSmrg 4235a73027baSmrg 4236bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4237bf4a254eSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4238bf4a254eSmrgif test "${ac_cv_prog_cc_c99+set}" = set; then : 4239bf4a254eSmrg $as_echo_n "(cached) " >&6 4240bf4a254eSmrgelse 4241bf4a254eSmrg ac_cv_prog_cc_c99=no 4242bf4a254eSmrgac_save_CC=$CC 4243bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244bf4a254eSmrg/* end confdefs.h. */ 4245bf4a254eSmrg#include <stdarg.h> 4246bf4a254eSmrg#include <stdbool.h> 4247bf4a254eSmrg#include <stdlib.h> 4248bf4a254eSmrg#include <wchar.h> 4249bf4a254eSmrg#include <stdio.h> 4250a73027baSmrg 4251bf4a254eSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4252bf4a254eSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4253bf4a254eSmrg#define showlist(...) puts (#__VA_ARGS__) 4254bf4a254eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4255bf4a254eSmrgstatic void 4256bf4a254eSmrgtest_varargs_macros (void) 4257bf4a254eSmrg{ 4258bf4a254eSmrg int x = 1234; 4259bf4a254eSmrg int y = 5678; 4260bf4a254eSmrg debug ("Flag"); 4261bf4a254eSmrg debug ("X = %d\n", x); 4262bf4a254eSmrg showlist (The first, second, and third items.); 4263bf4a254eSmrg report (x>y, "x is %d but y is %d", x, y); 4264bf4a254eSmrg} 4265a73027baSmrg 4266bf4a254eSmrg// Check long long types. 4267bf4a254eSmrg#define BIG64 18446744073709551615ull 4268bf4a254eSmrg#define BIG32 4294967295ul 4269bf4a254eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4270bf4a254eSmrg#if !BIG_OK 4271bf4a254eSmrg your preprocessor is broken; 4272bf4a254eSmrg#endif 4273bf4a254eSmrg#if BIG_OK 4274bf4a254eSmrg#else 4275bf4a254eSmrg your preprocessor is broken; 4276bf4a254eSmrg#endif 4277bf4a254eSmrgstatic long long int bignum = -9223372036854775807LL; 4278bf4a254eSmrgstatic unsigned long long int ubignum = BIG64; 4279a73027baSmrg 4280bf4a254eSmrgstruct incomplete_array 4281bf4a254eSmrg{ 4282bf4a254eSmrg int datasize; 4283bf4a254eSmrg double data[]; 4284bf4a254eSmrg}; 4285a73027baSmrg 4286bf4a254eSmrgstruct named_init { 4287bf4a254eSmrg int number; 4288bf4a254eSmrg const wchar_t *name; 4289bf4a254eSmrg double average; 4290bf4a254eSmrg}; 4291a73027baSmrg 4292bf4a254eSmrgtypedef const char *ccp; 4293a73027baSmrg 4294bf4a254eSmrgstatic inline int 4295bf4a254eSmrgtest_restrict (ccp restrict text) 4296bf4a254eSmrg{ 4297bf4a254eSmrg // See if C++-style comments work. 4298bf4a254eSmrg // Iterate through items via the restricted pointer. 4299bf4a254eSmrg // Also check for declarations in for loops. 4300bf4a254eSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4301bf4a254eSmrg continue; 4302bf4a254eSmrg return 0; 4303bf4a254eSmrg} 4304a73027baSmrg 4305bf4a254eSmrg// Check varargs and va_copy. 4306bf4a254eSmrgstatic void 4307bf4a254eSmrgtest_varargs (const char *format, ...) 4308bf4a254eSmrg{ 4309bf4a254eSmrg va_list args; 4310bf4a254eSmrg va_start (args, format); 4311bf4a254eSmrg va_list args_copy; 4312bf4a254eSmrg va_copy (args_copy, args); 4313bf4a254eSmrg 4314bf4a254eSmrg const char *str; 4315bf4a254eSmrg int number; 4316bf4a254eSmrg float fnumber; 4317bf4a254eSmrg 4318bf4a254eSmrg while (*format) 4319bf4a254eSmrg { 4320bf4a254eSmrg switch (*format++) 4321bf4a254eSmrg { 4322bf4a254eSmrg case 's': // string 4323bf4a254eSmrg str = va_arg (args_copy, const char *); 4324bf4a254eSmrg break; 4325bf4a254eSmrg case 'd': // int 4326bf4a254eSmrg number = va_arg (args_copy, int); 4327bf4a254eSmrg break; 4328bf4a254eSmrg case 'f': // float 4329bf4a254eSmrg fnumber = va_arg (args_copy, double); 4330bf4a254eSmrg break; 4331bf4a254eSmrg default: 4332bf4a254eSmrg break; 4333bf4a254eSmrg } 4334bf4a254eSmrg } 4335bf4a254eSmrg va_end (args_copy); 4336bf4a254eSmrg va_end (args); 4337bf4a254eSmrg} 4338a73027baSmrg 4339bf4a254eSmrgint 4340bf4a254eSmrgmain () 4341bf4a254eSmrg{ 4342a73027baSmrg 4343bf4a254eSmrg // Check bool. 4344bf4a254eSmrg _Bool success = false; 4345a73027baSmrg 4346bf4a254eSmrg // Check restrict. 4347bf4a254eSmrg if (test_restrict ("String literal") == 0) 4348bf4a254eSmrg success = true; 4349bf4a254eSmrg char *restrict newvar = "Another string"; 4350a73027baSmrg 4351bf4a254eSmrg // Check varargs. 4352bf4a254eSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 4353bf4a254eSmrg test_varargs_macros (); 4354bf4a254eSmrg 4355bf4a254eSmrg // Check flexible array members. 4356bf4a254eSmrg struct incomplete_array *ia = 4357bf4a254eSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4358bf4a254eSmrg ia->datasize = 10; 4359bf4a254eSmrg for (int i = 0; i < ia->datasize; ++i) 4360bf4a254eSmrg ia->data[i] = i * 1.234; 4361bf4a254eSmrg 4362bf4a254eSmrg // Check named initializers. 4363bf4a254eSmrg struct named_init ni = { 4364bf4a254eSmrg .number = 34, 4365bf4a254eSmrg .name = L"Test wide string", 4366bf4a254eSmrg .average = 543.34343, 4367bf4a254eSmrg }; 4368bf4a254eSmrg 4369bf4a254eSmrg ni.number = 58; 4370bf4a254eSmrg 4371bf4a254eSmrg int dynamic_array[ni.number]; 4372bf4a254eSmrg dynamic_array[ni.number - 1] = 543; 4373bf4a254eSmrg 4374bf4a254eSmrg // work around unused variable warnings 4375bf4a254eSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4376bf4a254eSmrg || dynamic_array[ni.number - 1] != 543); 4377a73027baSmrg 4378a73027baSmrg ; 4379a73027baSmrg return 0; 4380a73027baSmrg} 4381a73027baSmrg_ACEOF 4382bf4a254eSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4383bf4a254eSmrgdo 4384bf4a254eSmrg CC="$ac_save_CC $ac_arg" 4385bf4a254eSmrg if ac_fn_c_try_compile "$LINENO"; then : 4386bf4a254eSmrg ac_cv_prog_cc_c99=$ac_arg 4387bf4a254eSmrgfi 4388bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext 4389bf4a254eSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4390bf4a254eSmrgdone 4391bf4a254eSmrgrm -f conftest.$ac_ext 4392bf4a254eSmrgCC=$ac_save_CC 4393a73027baSmrg 4394a73027baSmrgfi 4395bf4a254eSmrg# AC_CACHE_VAL 4396bf4a254eSmrgcase "x$ac_cv_prog_cc_c99" in 4397bf4a254eSmrg x) 4398bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4399bf4a254eSmrg$as_echo "none needed" >&6; } ;; 4400bf4a254eSmrg xno) 4401bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4402bf4a254eSmrg$as_echo "unsupported" >&6; } ;; 4403bf4a254eSmrg *) 4404bf4a254eSmrg CC="$CC $ac_cv_prog_cc_c99" 4405bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4406bf4a254eSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4407bf4a254eSmrgesac 4408bf4a254eSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 4409a73027baSmrg 4410a73027baSmrgfi 4411a73027baSmrg 4412a73027baSmrg 4413a73027baSmrg 4414a73027baSmrg 4415bf4a254eSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4416bf4a254eSmrg if test -n "$ac_tool_prefix"; then 4417bf4a254eSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4418bf4a254eSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4419bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4421bf4a254eSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4422bf4a254eSmrg $as_echo_n "(cached) " >&6 4423a73027baSmrgelse 4424bf4a254eSmrg case $PKG_CONFIG in 4425bf4a254eSmrg [\\/]* | ?:[\\/]*) 4426bf4a254eSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4427bf4a254eSmrg ;; 4428bf4a254eSmrg *) 4429bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4430bf4a254eSmrgfor as_dir in $PATH 4431bf4a254eSmrgdo 4432bf4a254eSmrg IFS=$as_save_IFS 4433bf4a254eSmrg test -z "$as_dir" && as_dir=. 4434bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4435bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4436bf4a254eSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4437bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4438bf4a254eSmrg break 2 4439bf4a254eSmrg fi 4440bf4a254eSmrgdone 4441bf4a254eSmrg done 4442bf4a254eSmrgIFS=$as_save_IFS 4443bf4a254eSmrg 4444bf4a254eSmrg ;; 4445a73027baSmrgesac 4446bf4a254eSmrgfi 4447bf4a254eSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4448bf4a254eSmrgif test -n "$PKG_CONFIG"; then 4449bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4450bf4a254eSmrg$as_echo "$PKG_CONFIG" >&6; } 4451a73027baSmrgelse 4452bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453bf4a254eSmrg$as_echo "no" >&6; } 4454a73027baSmrgfi 4455a73027baSmrg 4456a73027baSmrg 4457bf4a254eSmrgfi 4458bf4a254eSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4459bf4a254eSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4460bf4a254eSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4461bf4a254eSmrgset dummy pkg-config; ac_word=$2 4462bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4464bf4a254eSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4465bf4a254eSmrg $as_echo_n "(cached) " >&6 4466a73027baSmrgelse 4467bf4a254eSmrg case $ac_pt_PKG_CONFIG in 4468bf4a254eSmrg [\\/]* | ?:[\\/]*) 4469bf4a254eSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4470bf4a254eSmrg ;; 4471bf4a254eSmrg *) 4472bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473bf4a254eSmrgfor as_dir in $PATH 4474bf4a254eSmrgdo 4475bf4a254eSmrg IFS=$as_save_IFS 4476bf4a254eSmrg test -z "$as_dir" && as_dir=. 4477bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4478bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4479bf4a254eSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4480bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4481bf4a254eSmrg break 2 4482bf4a254eSmrg fi 4483bf4a254eSmrgdone 4484bf4a254eSmrg done 4485bf4a254eSmrgIFS=$as_save_IFS 4486a73027baSmrg 4487bf4a254eSmrg ;; 4488bf4a254eSmrgesac 4489bf4a254eSmrgfi 4490bf4a254eSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4491bf4a254eSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4492bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4493bf4a254eSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4494bf4a254eSmrgelse 4495bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496bf4a254eSmrg$as_echo "no" >&6; } 4497a73027baSmrgfi 4498a73027baSmrg 4499bf4a254eSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4500bf4a254eSmrg PKG_CONFIG="" 4501bf4a254eSmrg else 4502bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 4503bf4a254eSmrgyes:) 4504bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4505bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4506bf4a254eSmrgac_tool_warned=yes ;; 4507a73027baSmrgesac 4508bf4a254eSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4509bf4a254eSmrg fi 4510a73027baSmrgelse 4511bf4a254eSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4512a73027baSmrgfi 4513a73027baSmrg 4514a73027baSmrgfi 4515bf4a254eSmrgif test -n "$PKG_CONFIG"; then 4516bf4a254eSmrg _pkg_min_version=0.9.0 4517bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4518bf4a254eSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4519bf4a254eSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4520bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4521bf4a254eSmrg$as_echo "yes" >&6; } 4522bf4a254eSmrg else 4523bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524bf4a254eSmrg$as_echo "no" >&6; } 4525bf4a254eSmrg PKG_CONFIG="" 4526bf4a254eSmrg fi 4527a73027baSmrg 4528a73027baSmrgfi 4529bf4a254eSmrg# Make sure we can run config.sub. 4530bf4a254eSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4531bf4a254eSmrg as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4532a73027baSmrg 4533bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4534bf4a254eSmrg$as_echo_n "checking build system type... " >&6; } 4535bf4a254eSmrgif test "${ac_cv_build+set}" = set; then : 4536bf4a254eSmrg $as_echo_n "(cached) " >&6 4537bf4a254eSmrgelse 4538bf4a254eSmrg ac_build_alias=$build_alias 4539bf4a254eSmrgtest "x$ac_build_alias" = x && 4540bf4a254eSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4541bf4a254eSmrgtest "x$ac_build_alias" = x && 4542bf4a254eSmrg as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4543bf4a254eSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4544bf4a254eSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4545a73027baSmrg 4546bf4a254eSmrgfi 4547bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4548bf4a254eSmrg$as_echo "$ac_cv_build" >&6; } 4549bf4a254eSmrgcase $ac_cv_build in 4550bf4a254eSmrg*-*-*) ;; 4551bf4a254eSmrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4552bf4a254eSmrgesac 4553bf4a254eSmrgbuild=$ac_cv_build 4554bf4a254eSmrgac_save_IFS=$IFS; IFS='-' 4555bf4a254eSmrgset x $ac_cv_build 4556bf4a254eSmrgshift 4557bf4a254eSmrgbuild_cpu=$1 4558bf4a254eSmrgbuild_vendor=$2 4559bf4a254eSmrgshift; shift 4560bf4a254eSmrg# Remember, the first character of IFS is used to create $*, 4561bf4a254eSmrg# except with old shells: 4562bf4a254eSmrgbuild_os=$* 4563bf4a254eSmrgIFS=$ac_save_IFS 4564bf4a254eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4565a73027baSmrg 4566a73027baSmrg 4567bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4568bf4a254eSmrg$as_echo_n "checking host system type... " >&6; } 4569bf4a254eSmrgif test "${ac_cv_host+set}" = set; then : 4570bf4a254eSmrg $as_echo_n "(cached) " >&6 4571bf4a254eSmrgelse 4572bf4a254eSmrg if test "x$host_alias" = x; then 4573bf4a254eSmrg ac_cv_host=$ac_cv_build 4574bf4a254eSmrgelse 4575bf4a254eSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4576bf4a254eSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4577bf4a254eSmrgfi 4578a73027baSmrg 4579bf4a254eSmrgfi 4580bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4581bf4a254eSmrg$as_echo "$ac_cv_host" >&6; } 4582bf4a254eSmrgcase $ac_cv_host in 4583bf4a254eSmrg*-*-*) ;; 4584bf4a254eSmrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4585bf4a254eSmrgesac 4586bf4a254eSmrghost=$ac_cv_host 4587bf4a254eSmrgac_save_IFS=$IFS; IFS='-' 4588bf4a254eSmrgset x $ac_cv_host 4589bf4a254eSmrgshift 4590bf4a254eSmrghost_cpu=$1 4591bf4a254eSmrghost_vendor=$2 4592bf4a254eSmrgshift; shift 4593bf4a254eSmrg# Remember, the first character of IFS is used to create $*, 4594bf4a254eSmrg# except with old shells: 4595bf4a254eSmrghost_os=$* 4596bf4a254eSmrgIFS=$ac_save_IFS 4597bf4a254eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4598bf4a254eSmrg 4599bf4a254eSmrg 4600bf4a254eSmrg 4601bf4a254eSmrg 4602bf4a254eSmrg 4603bf4a254eSmrgif test "x$GCC" = xyes ; then 4604bf4a254eSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4605bf4a254eSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4606bf4a254eSmrg-Wbad-function-cast -Wformat=2" 4607bf4a254eSmrg case `$CC -dumpversion` in 4608bf4a254eSmrg 3.4.* | 4.*) 4609bf4a254eSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4610bf4a254eSmrg ;; 4611bf4a254eSmrg esac 4612bf4a254eSmrgelse 4613bf4a254eSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4614bf4a254eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4615bf4a254eSmrg SUNCC="yes" 4616bf4a254eSmrgelse 4617bf4a254eSmrg SUNCC="no" 4618bf4a254eSmrgfi 4619bf4a254eSmrg 4620bf4a254eSmrg if test "x$SUNCC" = "xyes"; then 4621bf4a254eSmrg CWARNFLAGS="-v" 4622bf4a254eSmrg fi 4623bf4a254eSmrgfi 4624bf4a254eSmrg 4625bf4a254eSmrg# Check whether --enable-silent-rules was given. 4626bf4a254eSmrgif test "${enable_silent_rules+set}" = set; then : 4627bf4a254eSmrg enableval=$enable_silent_rules; 4628bf4a254eSmrgfi 4629bf4a254eSmrg 4630bf4a254eSmrgcase $enable_silent_rules in 4631bf4a254eSmrgyes) AM_DEFAULT_VERBOSITY=0;; 4632bf4a254eSmrgno) AM_DEFAULT_VERBOSITY=1;; 4633bf4a254eSmrg*) AM_DEFAULT_VERBOSITY=0;; 4634bf4a254eSmrgesac 4635bf4a254eSmrgAM_BACKSLASH='\' 4636bf4a254eSmrg 4637bf4a254eSmrg 4638bf4a254eSmrg 4639bf4a254eSmrg 4640bf4a254eSmrg 4641bf4a254eSmrg 4642bf4a254eSmrg 4643bf4a254eSmrg# Check whether --enable-strict-compilation was given. 4644bf4a254eSmrgif test "${enable_strict_compilation+set}" = set; then : 4645bf4a254eSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4646bf4a254eSmrgelse 4647bf4a254eSmrg STRICT_COMPILE=no 4648bf4a254eSmrgfi 4649bf4a254eSmrg 4650bf4a254eSmrgif test "x$STRICT_COMPILE" = "xyes"; then 4651bf4a254eSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4652bf4a254eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4653bf4a254eSmrg SUNCC="yes" 4654bf4a254eSmrgelse 4655bf4a254eSmrg SUNCC="no" 4656bf4a254eSmrgfi 4657bf4a254eSmrg 4658bf4a254eSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4659bf4a254eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4660bf4a254eSmrg INTELCC="yes" 4661bf4a254eSmrgelse 4662bf4a254eSmrg INTELCC="no" 4663bf4a254eSmrgfi 4664bf4a254eSmrg 4665bf4a254eSmrg if test "x$GCC" = xyes ; then 4666bf4a254eSmrg STRICT_CFLAGS="-pedantic -Werror" 4667bf4a254eSmrg elif test "x$SUNCC" = "xyes"; then 4668bf4a254eSmrg STRICT_CFLAGS="-errwarn" 4669bf4a254eSmrg elif test "x$INTELCC" = "xyes"; then 4670bf4a254eSmrg STRICT_CFLAGS="-Werror" 4671bf4a254eSmrg fi 4672bf4a254eSmrgfi 4673bf4a254eSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4674bf4a254eSmrg 4675bf4a254eSmrg 4676bf4a254eSmrg 4677bf4a254eSmrg 4678bf4a254eSmrg# Check whether --with-release-version was given. 4679bf4a254eSmrgif test "${with_release_version+set}" = set; then : 4680bf4a254eSmrg withval=$with_release_version; RELEASE_VERSION="$withval" 4681bf4a254eSmrgelse 4682bf4a254eSmrg RELEASE_VERSION="" 4683bf4a254eSmrgfi 4684bf4a254eSmrg 4685bf4a254eSmrg if test "x$RELEASE_VERSION" != "x"; then 4686bf4a254eSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4687bf4a254eSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4688bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 4689bf4a254eSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4690bf4a254eSmrg fi 4691bf4a254eSmrg 4692bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4693bf4a254eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4694bf4a254eSmrg_ACEOF 4695bf4a254eSmrg 4696bf4a254eSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4697bf4a254eSmrg if test "x$PVM" = "x"; then 4698bf4a254eSmrg PVM="0" 4699bf4a254eSmrg fi 4700bf4a254eSmrg 4701bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4702bf4a254eSmrg#define PACKAGE_VERSION_MINOR $PVM 4703bf4a254eSmrg_ACEOF 4704bf4a254eSmrg 4705bf4a254eSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4706bf4a254eSmrg if test "x$PVP" = "x"; then 4707bf4a254eSmrg PVP="0" 4708bf4a254eSmrg fi 4709bf4a254eSmrg 4710bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4711bf4a254eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4712bf4a254eSmrg_ACEOF 4713bf4a254eSmrg 4714bf4a254eSmrg 4715bf4a254eSmrg 4716bf4a254eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4717bf4a254eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4718bf4a254eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4719bf4a254eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4720bf4a254eSmrg 4721bf4a254eSmrg 4722bf4a254eSmrg 4723bf4a254eSmrg 4724bf4a254eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4725bf4a254eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4726bf4a254eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4727bf4a254eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4728bf4a254eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4729bf4a254eSmrg 4730bf4a254eSmrg 4731bf4a254eSmrg 4732bf4a254eSmrg 4733bf4a254eSmrg 4734bf4a254eSmrgif test x$APP_MAN_SUFFIX = x ; then 4735bf4a254eSmrg APP_MAN_SUFFIX=1 4736bf4a254eSmrgfi 4737bf4a254eSmrgif test x$APP_MAN_DIR = x ; then 4738bf4a254eSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4739bf4a254eSmrgfi 4740bf4a254eSmrg 4741bf4a254eSmrgif test x$LIB_MAN_SUFFIX = x ; then 4742bf4a254eSmrg LIB_MAN_SUFFIX=3 4743bf4a254eSmrgfi 4744bf4a254eSmrgif test x$LIB_MAN_DIR = x ; then 4745bf4a254eSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4746bf4a254eSmrgfi 4747bf4a254eSmrg 4748bf4a254eSmrgif test x$FILE_MAN_SUFFIX = x ; then 4749bf4a254eSmrg case $host_os in 4750bf4a254eSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 4751bf4a254eSmrg *) FILE_MAN_SUFFIX=5 ;; 4752bf4a254eSmrg esac 4753bf4a254eSmrgfi 4754bf4a254eSmrgif test x$FILE_MAN_DIR = x ; then 4755bf4a254eSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4756bf4a254eSmrgfi 4757bf4a254eSmrg 4758bf4a254eSmrgif test x$MISC_MAN_SUFFIX = x ; then 4759bf4a254eSmrg case $host_os in 4760bf4a254eSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 4761bf4a254eSmrg *) MISC_MAN_SUFFIX=7 ;; 4762bf4a254eSmrg esac 4763bf4a254eSmrgfi 4764bf4a254eSmrgif test x$MISC_MAN_DIR = x ; then 4765bf4a254eSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4766bf4a254eSmrgfi 4767bf4a254eSmrg 4768bf4a254eSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 4769bf4a254eSmrg case $host_os in 4770bf4a254eSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4771bf4a254eSmrg *) DRIVER_MAN_SUFFIX=4 ;; 4772bf4a254eSmrg esac 4773bf4a254eSmrgfi 4774bf4a254eSmrgif test x$DRIVER_MAN_DIR = x ; then 4775bf4a254eSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4776bf4a254eSmrgfi 4777bf4a254eSmrg 4778bf4a254eSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 4779bf4a254eSmrg case $host_os in 4780bf4a254eSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4781bf4a254eSmrg *) ADMIN_MAN_SUFFIX=8 ;; 4782bf4a254eSmrg esac 4783bf4a254eSmrgfi 4784bf4a254eSmrgif test x$ADMIN_MAN_DIR = x ; then 4785bf4a254eSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4786bf4a254eSmrgfi 4787bf4a254eSmrg 4788bf4a254eSmrg 4789bf4a254eSmrg 4790bf4a254eSmrg 4791bf4a254eSmrg 4792bf4a254eSmrg 4793bf4a254eSmrg 4794bf4a254eSmrg 4795bf4a254eSmrg 4796bf4a254eSmrg 4797bf4a254eSmrg 4798bf4a254eSmrg 4799bf4a254eSmrg 4800bf4a254eSmrg 4801bf4a254eSmrg 4802bf4a254eSmrg 4803bf4a254eSmrg 4804bf4a254eSmrgac_config_headers="$ac_config_headers config.h" 4805bf4a254eSmrg 4806bf4a254eSmrg 4807bf4a254eSmrgac_ext=c 4808bf4a254eSmrgac_cpp='$CPP $CPPFLAGS' 4809bf4a254eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4810bf4a254eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4811bf4a254eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4812bf4a254eSmrgif test -n "$ac_tool_prefix"; then 4813bf4a254eSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4814bf4a254eSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 4815bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4816bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4817bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 4818bf4a254eSmrg $as_echo_n "(cached) " >&6 4819bf4a254eSmrgelse 4820bf4a254eSmrg if test -n "$CC"; then 4821bf4a254eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 4822bf4a254eSmrgelse 4823bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4824bf4a254eSmrgfor as_dir in $PATH 4825bf4a254eSmrgdo 4826bf4a254eSmrg IFS=$as_save_IFS 4827bf4a254eSmrg test -z "$as_dir" && as_dir=. 4828bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4829bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4830bf4a254eSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 4831bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4832bf4a254eSmrg break 2 4833bf4a254eSmrg fi 4834bf4a254eSmrgdone 4835bf4a254eSmrg done 4836bf4a254eSmrgIFS=$as_save_IFS 4837bf4a254eSmrg 4838bf4a254eSmrgfi 4839bf4a254eSmrgfi 4840bf4a254eSmrgCC=$ac_cv_prog_CC 4841bf4a254eSmrgif test -n "$CC"; then 4842bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4843bf4a254eSmrg$as_echo "$CC" >&6; } 4844bf4a254eSmrgelse 4845bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846bf4a254eSmrg$as_echo "no" >&6; } 4847bf4a254eSmrgfi 4848bf4a254eSmrg 4849bf4a254eSmrg 4850bf4a254eSmrgfi 4851bf4a254eSmrgif test -z "$ac_cv_prog_CC"; then 4852bf4a254eSmrg ac_ct_CC=$CC 4853bf4a254eSmrg # Extract the first word of "gcc", so it can be a program name with args. 4854bf4a254eSmrgset dummy gcc; ac_word=$2 4855bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4856bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4857bf4a254eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4858bf4a254eSmrg $as_echo_n "(cached) " >&6 4859bf4a254eSmrgelse 4860bf4a254eSmrg if test -n "$ac_ct_CC"; then 4861bf4a254eSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4862bf4a254eSmrgelse 4863bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864bf4a254eSmrgfor as_dir in $PATH 4865bf4a254eSmrgdo 4866bf4a254eSmrg IFS=$as_save_IFS 4867bf4a254eSmrg test -z "$as_dir" && as_dir=. 4868bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4869bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4870bf4a254eSmrg ac_cv_prog_ac_ct_CC="gcc" 4871bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4872bf4a254eSmrg break 2 4873bf4a254eSmrg fi 4874bf4a254eSmrgdone 4875bf4a254eSmrg done 4876bf4a254eSmrgIFS=$as_save_IFS 4877bf4a254eSmrg 4878bf4a254eSmrgfi 4879bf4a254eSmrgfi 4880bf4a254eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 4881bf4a254eSmrgif test -n "$ac_ct_CC"; then 4882bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4883bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 4884bf4a254eSmrgelse 4885bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4886bf4a254eSmrg$as_echo "no" >&6; } 4887bf4a254eSmrgfi 4888bf4a254eSmrg 4889bf4a254eSmrg if test "x$ac_ct_CC" = x; then 4890bf4a254eSmrg CC="" 4891bf4a254eSmrg else 4892bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 4893bf4a254eSmrgyes:) 4894bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4895bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4896bf4a254eSmrgac_tool_warned=yes ;; 4897bf4a254eSmrgesac 4898bf4a254eSmrg CC=$ac_ct_CC 4899bf4a254eSmrg fi 4900bf4a254eSmrgelse 4901bf4a254eSmrg CC="$ac_cv_prog_CC" 4902bf4a254eSmrgfi 4903bf4a254eSmrg 4904bf4a254eSmrgif test -z "$CC"; then 4905bf4a254eSmrg if test -n "$ac_tool_prefix"; then 4906bf4a254eSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4907bf4a254eSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 4908bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4909bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4910bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 4911bf4a254eSmrg $as_echo_n "(cached) " >&6 4912bf4a254eSmrgelse 4913bf4a254eSmrg if test -n "$CC"; then 4914bf4a254eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 4915bf4a254eSmrgelse 4916bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917bf4a254eSmrgfor as_dir in $PATH 4918bf4a254eSmrgdo 4919bf4a254eSmrg IFS=$as_save_IFS 4920bf4a254eSmrg test -z "$as_dir" && as_dir=. 4921bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4922bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4923bf4a254eSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 4924bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4925bf4a254eSmrg break 2 4926bf4a254eSmrg fi 4927bf4a254eSmrgdone 4928bf4a254eSmrg done 4929bf4a254eSmrgIFS=$as_save_IFS 4930bf4a254eSmrg 4931bf4a254eSmrgfi 4932bf4a254eSmrgfi 4933bf4a254eSmrgCC=$ac_cv_prog_CC 4934bf4a254eSmrgif test -n "$CC"; then 4935bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4936bf4a254eSmrg$as_echo "$CC" >&6; } 4937bf4a254eSmrgelse 4938bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4939bf4a254eSmrg$as_echo "no" >&6; } 4940bf4a254eSmrgfi 4941bf4a254eSmrg 4942bf4a254eSmrg 4943bf4a254eSmrg fi 4944bf4a254eSmrgfi 4945bf4a254eSmrgif test -z "$CC"; then 4946bf4a254eSmrg # Extract the first word of "cc", so it can be a program name with args. 4947bf4a254eSmrgset dummy cc; ac_word=$2 4948bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 4950bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 4951bf4a254eSmrg $as_echo_n "(cached) " >&6 4952bf4a254eSmrgelse 4953bf4a254eSmrg if test -n "$CC"; then 4954bf4a254eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 4955bf4a254eSmrgelse 4956bf4a254eSmrg ac_prog_rejected=no 4957bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958bf4a254eSmrgfor as_dir in $PATH 4959bf4a254eSmrgdo 4960bf4a254eSmrg IFS=$as_save_IFS 4961bf4a254eSmrg test -z "$as_dir" && as_dir=. 4962bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4963bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4964bf4a254eSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4965bf4a254eSmrg ac_prog_rejected=yes 4966bf4a254eSmrg continue 4967bf4a254eSmrg fi 4968bf4a254eSmrg ac_cv_prog_CC="cc" 4969bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4970bf4a254eSmrg break 2 4971bf4a254eSmrg fi 4972bf4a254eSmrgdone 4973bf4a254eSmrg done 4974bf4a254eSmrgIFS=$as_save_IFS 4975bf4a254eSmrg 4976bf4a254eSmrgif test $ac_prog_rejected = yes; then 4977bf4a254eSmrg # We found a bogon in the path, so make sure we never use it. 4978bf4a254eSmrg set dummy $ac_cv_prog_CC 4979bf4a254eSmrg shift 4980bf4a254eSmrg if test $# != 0; then 4981bf4a254eSmrg # We chose a different compiler from the bogus one. 4982bf4a254eSmrg # However, it has the same basename, so the bogon will be chosen 4983bf4a254eSmrg # first if we set CC to just the basename; use the full file name. 4984bf4a254eSmrg shift 4985bf4a254eSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4986bf4a254eSmrg fi 4987bf4a254eSmrgfi 4988bf4a254eSmrgfi 4989bf4a254eSmrgfi 4990bf4a254eSmrgCC=$ac_cv_prog_CC 4991bf4a254eSmrgif test -n "$CC"; then 4992bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4993bf4a254eSmrg$as_echo "$CC" >&6; } 4994bf4a254eSmrgelse 4995bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4996bf4a254eSmrg$as_echo "no" >&6; } 4997bf4a254eSmrgfi 4998bf4a254eSmrg 4999bf4a254eSmrg 5000bf4a254eSmrgfi 5001bf4a254eSmrgif test -z "$CC"; then 5002bf4a254eSmrg if test -n "$ac_tool_prefix"; then 5003bf4a254eSmrg for ac_prog in cl.exe 5004bf4a254eSmrg do 5005bf4a254eSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5006bf4a254eSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5007bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5008bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 5009bf4a254eSmrgif test "${ac_cv_prog_CC+set}" = set; then : 5010bf4a254eSmrg $as_echo_n "(cached) " >&6 5011bf4a254eSmrgelse 5012bf4a254eSmrg if test -n "$CC"; then 5013bf4a254eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 5014bf4a254eSmrgelse 5015bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016bf4a254eSmrgfor as_dir in $PATH 5017bf4a254eSmrgdo 5018bf4a254eSmrg IFS=$as_save_IFS 5019bf4a254eSmrg test -z "$as_dir" && as_dir=. 5020bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5021bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5022bf4a254eSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5023bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5024bf4a254eSmrg break 2 5025bf4a254eSmrg fi 5026bf4a254eSmrgdone 5027bf4a254eSmrg done 5028bf4a254eSmrgIFS=$as_save_IFS 5029bf4a254eSmrg 5030bf4a254eSmrgfi 5031bf4a254eSmrgfi 5032bf4a254eSmrgCC=$ac_cv_prog_CC 5033bf4a254eSmrgif test -n "$CC"; then 5034bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5035bf4a254eSmrg$as_echo "$CC" >&6; } 5036bf4a254eSmrgelse 5037bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5038bf4a254eSmrg$as_echo "no" >&6; } 5039bf4a254eSmrgfi 5040bf4a254eSmrg 5041bf4a254eSmrg 5042bf4a254eSmrg test -n "$CC" && break 5043bf4a254eSmrg done 5044bf4a254eSmrgfi 5045bf4a254eSmrgif test -z "$CC"; then 5046bf4a254eSmrg ac_ct_CC=$CC 5047bf4a254eSmrg for ac_prog in cl.exe 5048bf4a254eSmrgdo 5049bf4a254eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5050bf4a254eSmrgset dummy $ac_prog; ac_word=$2 5051bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5052bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 5053bf4a254eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5054bf4a254eSmrg $as_echo_n "(cached) " >&6 5055bf4a254eSmrgelse 5056bf4a254eSmrg if test -n "$ac_ct_CC"; then 5057bf4a254eSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5058bf4a254eSmrgelse 5059bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5060bf4a254eSmrgfor as_dir in $PATH 5061bf4a254eSmrgdo 5062bf4a254eSmrg IFS=$as_save_IFS 5063bf4a254eSmrg test -z "$as_dir" && as_dir=. 5064bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5065bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5066bf4a254eSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 5067bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5068bf4a254eSmrg break 2 5069bf4a254eSmrg fi 5070bf4a254eSmrgdone 5071bf4a254eSmrg done 5072bf4a254eSmrgIFS=$as_save_IFS 5073bf4a254eSmrg 5074bf4a254eSmrgfi 5075bf4a254eSmrgfi 5076bf4a254eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 5077bf4a254eSmrgif test -n "$ac_ct_CC"; then 5078bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5079bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 5080bf4a254eSmrgelse 5081bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082bf4a254eSmrg$as_echo "no" >&6; } 5083bf4a254eSmrgfi 5084bf4a254eSmrg 5085bf4a254eSmrg 5086bf4a254eSmrg test -n "$ac_ct_CC" && break 5087bf4a254eSmrgdone 5088bf4a254eSmrg 5089bf4a254eSmrg if test "x$ac_ct_CC" = x; then 5090bf4a254eSmrg CC="" 5091bf4a254eSmrg else 5092bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 5093bf4a254eSmrgyes:) 5094bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5095bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5096bf4a254eSmrgac_tool_warned=yes ;; 5097bf4a254eSmrgesac 5098bf4a254eSmrg CC=$ac_ct_CC 5099bf4a254eSmrg fi 5100bf4a254eSmrgfi 5101bf4a254eSmrg 5102bf4a254eSmrgfi 5103bf4a254eSmrg 5104bf4a254eSmrg 5105bf4a254eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5106bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5107bf4a254eSmrgas_fn_error "no acceptable C compiler found in \$PATH 5108bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 5109bf4a254eSmrg 5110bf4a254eSmrg# Provide some information about the compiler. 5111bf4a254eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5112bf4a254eSmrgset X $ac_compile 5113bf4a254eSmrgac_compiler=$2 5114bf4a254eSmrgfor ac_option in --version -v -V -qversion; do 5115bf4a254eSmrg { { ac_try="$ac_compiler $ac_option >&5" 5116bf4a254eSmrgcase "(($ac_try" in 5117bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5118bf4a254eSmrg *) ac_try_echo=$ac_try;; 5119bf4a254eSmrgesac 5120bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5121bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5122bf4a254eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5123bf4a254eSmrg ac_status=$? 5124bf4a254eSmrg if test -s conftest.err; then 5125bf4a254eSmrg sed '10a\ 5126bf4a254eSmrg... rest of stderr output deleted ... 5127bf4a254eSmrg 10q' conftest.err >conftest.er1 5128bf4a254eSmrg cat conftest.er1 >&5 5129bf4a254eSmrg fi 5130bf4a254eSmrg rm -f conftest.er1 conftest.err 5131bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5132bf4a254eSmrg test $ac_status = 0; } 5133bf4a254eSmrgdone 5134bf4a254eSmrg 5135bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5136bf4a254eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5137bf4a254eSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 5138bf4a254eSmrg $as_echo_n "(cached) " >&6 5139bf4a254eSmrgelse 5140bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141bf4a254eSmrg/* end confdefs.h. */ 5142bf4a254eSmrg 5143bf4a254eSmrgint 5144bf4a254eSmrgmain () 5145bf4a254eSmrg{ 5146bf4a254eSmrg#ifndef __GNUC__ 5147bf4a254eSmrg choke me 5148bf4a254eSmrg#endif 5149bf4a254eSmrg 5150bf4a254eSmrg ; 5151bf4a254eSmrg return 0; 5152bf4a254eSmrg} 5153bf4a254eSmrg_ACEOF 5154bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 5155bf4a254eSmrg ac_compiler_gnu=yes 5156bf4a254eSmrgelse 5157bf4a254eSmrg ac_compiler_gnu=no 5158bf4a254eSmrgfi 5159bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5160bf4a254eSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 5161bf4a254eSmrg 5162bf4a254eSmrgfi 5163bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5164bf4a254eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5165bf4a254eSmrgif test $ac_compiler_gnu = yes; then 5166bf4a254eSmrg GCC=yes 5167bf4a254eSmrgelse 5168bf4a254eSmrg GCC= 5169bf4a254eSmrgfi 5170bf4a254eSmrgac_test_CFLAGS=${CFLAGS+set} 5171bf4a254eSmrgac_save_CFLAGS=$CFLAGS 5172bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5173bf4a254eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 5174bf4a254eSmrgif test "${ac_cv_prog_cc_g+set}" = set; then : 5175bf4a254eSmrg $as_echo_n "(cached) " >&6 5176bf4a254eSmrgelse 5177bf4a254eSmrg ac_save_c_werror_flag=$ac_c_werror_flag 5178bf4a254eSmrg ac_c_werror_flag=yes 5179bf4a254eSmrg ac_cv_prog_cc_g=no 5180bf4a254eSmrg CFLAGS="-g" 5181bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182bf4a254eSmrg/* end confdefs.h. */ 5183bf4a254eSmrg 5184bf4a254eSmrgint 5185bf4a254eSmrgmain () 5186bf4a254eSmrg{ 5187bf4a254eSmrg 5188bf4a254eSmrg ; 5189bf4a254eSmrg return 0; 5190bf4a254eSmrg} 5191bf4a254eSmrg_ACEOF 5192bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 5193bf4a254eSmrg ac_cv_prog_cc_g=yes 5194bf4a254eSmrgelse 5195bf4a254eSmrg CFLAGS="" 5196bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197bf4a254eSmrg/* end confdefs.h. */ 5198bf4a254eSmrg 5199bf4a254eSmrgint 5200bf4a254eSmrgmain () 5201bf4a254eSmrg{ 5202bf4a254eSmrg 5203bf4a254eSmrg ; 5204bf4a254eSmrg return 0; 5205bf4a254eSmrg} 5206bf4a254eSmrg_ACEOF 5207bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 5208bf4a254eSmrg 5209bf4a254eSmrgelse 5210bf4a254eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 5211bf4a254eSmrg CFLAGS="-g" 5212bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213bf4a254eSmrg/* end confdefs.h. */ 5214bf4a254eSmrg 5215bf4a254eSmrgint 5216bf4a254eSmrgmain () 5217bf4a254eSmrg{ 5218bf4a254eSmrg 5219bf4a254eSmrg ; 5220bf4a254eSmrg return 0; 5221bf4a254eSmrg} 5222bf4a254eSmrg_ACEOF 5223bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 5224bf4a254eSmrg ac_cv_prog_cc_g=yes 5225bf4a254eSmrgfi 5226bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5227bf4a254eSmrgfi 5228bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5229bf4a254eSmrgfi 5230bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5231bf4a254eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 5232bf4a254eSmrgfi 5233bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5234bf4a254eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 5235bf4a254eSmrgif test "$ac_test_CFLAGS" = set; then 5236bf4a254eSmrg CFLAGS=$ac_save_CFLAGS 5237bf4a254eSmrgelif test $ac_cv_prog_cc_g = yes; then 5238bf4a254eSmrg if test "$GCC" = yes; then 5239bf4a254eSmrg CFLAGS="-g -O2" 5240bf4a254eSmrg else 5241bf4a254eSmrg CFLAGS="-g" 5242bf4a254eSmrg fi 5243bf4a254eSmrgelse 5244bf4a254eSmrg if test "$GCC" = yes; then 5245bf4a254eSmrg CFLAGS="-O2" 5246bf4a254eSmrg else 5247bf4a254eSmrg CFLAGS= 5248bf4a254eSmrg fi 5249bf4a254eSmrgfi 5250bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5251bf4a254eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5252bf4a254eSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 5253bf4a254eSmrg $as_echo_n "(cached) " >&6 5254bf4a254eSmrgelse 5255bf4a254eSmrg ac_cv_prog_cc_c89=no 5256bf4a254eSmrgac_save_CC=$CC 5257bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258bf4a254eSmrg/* end confdefs.h. */ 5259bf4a254eSmrg#include <stdarg.h> 5260bf4a254eSmrg#include <stdio.h> 5261bf4a254eSmrg#include <sys/types.h> 5262bf4a254eSmrg#include <sys/stat.h> 5263bf4a254eSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5264bf4a254eSmrgstruct buf { int x; }; 5265bf4a254eSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 5266bf4a254eSmrgstatic char *e (p, i) 5267bf4a254eSmrg char **p; 5268bf4a254eSmrg int i; 5269bf4a254eSmrg{ 5270bf4a254eSmrg return p[i]; 5271bf4a254eSmrg} 5272bf4a254eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 5273bf4a254eSmrg{ 5274bf4a254eSmrg char *s; 5275bf4a254eSmrg va_list v; 5276bf4a254eSmrg va_start (v,p); 5277bf4a254eSmrg s = g (p, va_arg (v,int)); 5278bf4a254eSmrg va_end (v); 5279bf4a254eSmrg return s; 5280bf4a254eSmrg} 5281bf4a254eSmrg 5282bf4a254eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5283bf4a254eSmrg function prototypes and stuff, but not '\xHH' hex character constants. 5284bf4a254eSmrg These don't provoke an error unfortunately, instead are silently treated 5285bf4a254eSmrg as 'x'. The following induces an error, until -std is added to get 5286bf4a254eSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5287bf4a254eSmrg array size at least. It's necessary to write '\x00'==0 to get something 5288bf4a254eSmrg that's true only with -std. */ 5289bf4a254eSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5290bf4a254eSmrg 5291bf4a254eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5292bf4a254eSmrg inside strings and character constants. */ 5293bf4a254eSmrg#define FOO(x) 'x' 5294bf4a254eSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5295bf4a254eSmrg 5296bf4a254eSmrgint test (int i, double x); 5297bf4a254eSmrgstruct s1 {int (*f) (int a);}; 5298bf4a254eSmrgstruct s2 {int (*f) (double a);}; 5299bf4a254eSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5300bf4a254eSmrgint argc; 5301bf4a254eSmrgchar **argv; 5302bf4a254eSmrgint 5303bf4a254eSmrgmain () 5304bf4a254eSmrg{ 5305bf4a254eSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5306bf4a254eSmrg ; 5307bf4a254eSmrg return 0; 5308bf4a254eSmrg} 5309bf4a254eSmrg_ACEOF 5310bf4a254eSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5311bf4a254eSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5312bf4a254eSmrgdo 5313bf4a254eSmrg CC="$ac_save_CC $ac_arg" 5314bf4a254eSmrg if ac_fn_c_try_compile "$LINENO"; then : 5315bf4a254eSmrg ac_cv_prog_cc_c89=$ac_arg 5316bf4a254eSmrgfi 5317bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext 5318bf4a254eSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 5319bf4a254eSmrgdone 5320bf4a254eSmrgrm -f conftest.$ac_ext 5321bf4a254eSmrgCC=$ac_save_CC 5322bf4a254eSmrg 5323bf4a254eSmrgfi 5324bf4a254eSmrg# AC_CACHE_VAL 5325bf4a254eSmrgcase "x$ac_cv_prog_cc_c89" in 5326bf4a254eSmrg x) 5327bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5328bf4a254eSmrg$as_echo "none needed" >&6; } ;; 5329bf4a254eSmrg xno) 5330bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5331bf4a254eSmrg$as_echo "unsupported" >&6; } ;; 5332bf4a254eSmrg *) 5333bf4a254eSmrg CC="$CC $ac_cv_prog_cc_c89" 5334bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5335bf4a254eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5336bf4a254eSmrgesac 5337bf4a254eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 5338bf4a254eSmrg 5339bf4a254eSmrgfi 5340bf4a254eSmrg 5341bf4a254eSmrgac_ext=c 5342bf4a254eSmrgac_cpp='$CPP $CPPFLAGS' 5343bf4a254eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5344bf4a254eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5345bf4a254eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 5346bf4a254eSmrg 5347bf4a254eSmrgdepcc="$CC" am_compiler_list= 5348bf4a254eSmrg 5349bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5350bf4a254eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 5351bf4a254eSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5352bf4a254eSmrg $as_echo_n "(cached) " >&6 5353bf4a254eSmrgelse 5354bf4a254eSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5355bf4a254eSmrg # We make a subdir and do the tests there. Otherwise we can end up 5356bf4a254eSmrg # making bogus files that we don't know about and never remove. For 5357bf4a254eSmrg # instance it was reported that on HP-UX the gcc test will end up 5358bf4a254eSmrg # making a dummy file named `D' -- because `-MD' means `put the output 5359bf4a254eSmrg # in D'. 5360bf4a254eSmrg mkdir conftest.dir 5361bf4a254eSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 5362bf4a254eSmrg # using a relative directory. 5363bf4a254eSmrg cp "$am_depcomp" conftest.dir 5364bf4a254eSmrg cd conftest.dir 5365bf4a254eSmrg # We will build objects and dependencies in a subdirectory because 5366bf4a254eSmrg # it helps to detect inapplicable dependency modes. For instance 5367bf4a254eSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 5368bf4a254eSmrg # side effect of compilation, but ICC will put the dependencies in 5369bf4a254eSmrg # the current directory while Tru64 will put them in the object 5370bf4a254eSmrg # directory. 5371bf4a254eSmrg mkdir sub 5372bf4a254eSmrg 5373bf4a254eSmrg am_cv_CC_dependencies_compiler_type=none 5374bf4a254eSmrg if test "$am_compiler_list" = ""; then 5375bf4a254eSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5376bf4a254eSmrg fi 5377bf4a254eSmrg am__universal=false 5378bf4a254eSmrg case " $depcc " in #( 5379bf4a254eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 5380bf4a254eSmrg esac 5381bf4a254eSmrg 5382bf4a254eSmrg for depmode in $am_compiler_list; do 5383bf4a254eSmrg # Setup a source with many dependencies, because some compilers 5384bf4a254eSmrg # like to wrap large dependency lists on column 80 (with \), and 5385bf4a254eSmrg # we should not choose a depcomp mode which is confused by this. 5386bf4a254eSmrg # 5387bf4a254eSmrg # We need to recreate these files for each test, as the compiler may 5388bf4a254eSmrg # overwrite some of them when testing with obscure command lines. 5389bf4a254eSmrg # This happens at least with the AIX C compiler. 5390bf4a254eSmrg : > sub/conftest.c 5391bf4a254eSmrg for i in 1 2 3 4 5 6; do 5392bf4a254eSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 5393bf4a254eSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5394bf4a254eSmrg # Solaris 8's {/usr,}/bin/sh. 5395bf4a254eSmrg touch sub/conftst$i.h 5396bf4a254eSmrg done 5397bf4a254eSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5398bf4a254eSmrg 5399bf4a254eSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 5400bf4a254eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 5401bf4a254eSmrg # handle `-M -o', and we need to detect this. Also, some Intel 5402bf4a254eSmrg # versions had trouble with output in subdirs 5403bf4a254eSmrg am__obj=sub/conftest.${OBJEXT-o} 5404bf4a254eSmrg am__minus_obj="-o $am__obj" 5405bf4a254eSmrg case $depmode in 5406bf4a254eSmrg gcc) 5407bf4a254eSmrg # This depmode causes a compiler race in universal mode. 5408bf4a254eSmrg test "$am__universal" = false || continue 5409bf4a254eSmrg ;; 5410bf4a254eSmrg nosideeffect) 5411bf4a254eSmrg # after this tag, mechanisms are not by side-effect, so they'll 5412bf4a254eSmrg # only be used when explicitly requested 5413bf4a254eSmrg if test "x$enable_dependency_tracking" = xyes; then 5414bf4a254eSmrg continue 5415bf4a254eSmrg else 5416bf4a254eSmrg break 5417bf4a254eSmrg fi 5418bf4a254eSmrg ;; 5419bf4a254eSmrg msvisualcpp | msvcmsys) 5420bf4a254eSmrg # This compiler won't grok `-c -o', but also, the minuso test has 5421bf4a254eSmrg # not run yet. These depmodes are late enough in the game, and 5422bf4a254eSmrg # so weak that their functioning should not be impacted. 5423bf4a254eSmrg am__obj=conftest.${OBJEXT-o} 5424bf4a254eSmrg am__minus_obj= 5425bf4a254eSmrg ;; 5426bf4a254eSmrg none) break ;; 5427bf4a254eSmrg esac 5428bf4a254eSmrg if depmode=$depmode \ 5429bf4a254eSmrg source=sub/conftest.c object=$am__obj \ 5430bf4a254eSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5431bf4a254eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5432bf4a254eSmrg >/dev/null 2>conftest.err && 5433bf4a254eSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5434bf4a254eSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5435bf4a254eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5436bf4a254eSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5437bf4a254eSmrg # icc doesn't choke on unknown options, it will just issue warnings 5438bf4a254eSmrg # or remarks (even with -Werror). So we grep stderr for any message 5439bf4a254eSmrg # that says an option was ignored or not supported. 5440bf4a254eSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 5441bf4a254eSmrg # icc: Command line warning: ignoring option '-M'; no argument required 5442bf4a254eSmrg # The diagnosis changed in icc 8.0: 5443bf4a254eSmrg # icc: Command line remark: option '-MP' not supported 5444bf4a254eSmrg if (grep 'ignoring option' conftest.err || 5445bf4a254eSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5446bf4a254eSmrg am_cv_CC_dependencies_compiler_type=$depmode 5447bf4a254eSmrg break 5448bf4a254eSmrg fi 5449bf4a254eSmrg fi 5450bf4a254eSmrg done 5451bf4a254eSmrg 5452bf4a254eSmrg cd .. 5453bf4a254eSmrg rm -rf conftest.dir 5454bf4a254eSmrgelse 5455bf4a254eSmrg am_cv_CC_dependencies_compiler_type=none 5456bf4a254eSmrgfi 5457bf4a254eSmrg 5458bf4a254eSmrgfi 5459bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5460bf4a254eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5461bf4a254eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5462bf4a254eSmrg 5463bf4a254eSmrg if 5464bf4a254eSmrg test "x$enable_dependency_tracking" != xno \ 5465bf4a254eSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5466bf4a254eSmrg am__fastdepCC_TRUE= 5467bf4a254eSmrg am__fastdepCC_FALSE='#' 5468bf4a254eSmrgelse 5469bf4a254eSmrg am__fastdepCC_TRUE='#' 5470bf4a254eSmrg am__fastdepCC_FALSE= 5471bf4a254eSmrgfi 5472bf4a254eSmrg 5473bf4a254eSmrg 5474bf4a254eSmrgif test "x$CC" != xcc; then 5475bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5476bf4a254eSmrg$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5477bf4a254eSmrgelse 5478bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5479bf4a254eSmrg$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5480bf4a254eSmrgfi 5481bf4a254eSmrgset dummy $CC; ac_cc=`$as_echo "$2" | 5482bf4a254eSmrg sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5483bf4a254eSmrgif { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5484bf4a254eSmrg $as_echo_n "(cached) " >&6 5485bf4a254eSmrgelse 5486bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487bf4a254eSmrg/* end confdefs.h. */ 5488bf4a254eSmrg 5489bf4a254eSmrgint 5490bf4a254eSmrgmain () 5491bf4a254eSmrg{ 5492bf4a254eSmrg 5493bf4a254eSmrg ; 5494bf4a254eSmrg return 0; 5495bf4a254eSmrg} 5496bf4a254eSmrg_ACEOF 5497bf4a254eSmrg# Make sure it works both with $CC and with simple cc. 5498bf4a254eSmrg# We do the test twice because some compilers refuse to overwrite an 5499bf4a254eSmrg# existing .o file with -o, though they will create one. 5500bf4a254eSmrgac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5501bf4a254eSmrgrm -f conftest2.* 5502bf4a254eSmrgif { { case "(($ac_try" in 5503bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504bf4a254eSmrg *) ac_try_echo=$ac_try;; 5505bf4a254eSmrgesac 5506bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5507bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5508bf4a254eSmrg (eval "$ac_try") 2>&5 5509bf4a254eSmrg ac_status=$? 5510bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5511bf4a254eSmrg test $ac_status = 0; } && 5512bf4a254eSmrg test -f conftest2.$ac_objext && { { case "(($ac_try" in 5513bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5514bf4a254eSmrg *) ac_try_echo=$ac_try;; 5515bf4a254eSmrgesac 5516bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5517bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5518bf4a254eSmrg (eval "$ac_try") 2>&5 5519bf4a254eSmrg ac_status=$? 5520bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5521bf4a254eSmrg test $ac_status = 0; }; 5522bf4a254eSmrgthen 5523bf4a254eSmrg eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5524bf4a254eSmrg if test "x$CC" != xcc; then 5525bf4a254eSmrg # Test first that cc exists at all. 5526bf4a254eSmrg if { ac_try='cc -c conftest.$ac_ext >&5' 5527bf4a254eSmrg { { case "(($ac_try" in 5528bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5529bf4a254eSmrg *) ac_try_echo=$ac_try;; 5530bf4a254eSmrgesac 5531bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5532bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5533bf4a254eSmrg (eval "$ac_try") 2>&5 5534bf4a254eSmrg ac_status=$? 5535bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5536bf4a254eSmrg test $ac_status = 0; }; }; then 5537bf4a254eSmrg ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5538bf4a254eSmrg rm -f conftest2.* 5539bf4a254eSmrg if { { case "(($ac_try" in 5540bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5541bf4a254eSmrg *) ac_try_echo=$ac_try;; 5542bf4a254eSmrgesac 5543bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5544bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5545bf4a254eSmrg (eval "$ac_try") 2>&5 5546bf4a254eSmrg ac_status=$? 5547bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5548bf4a254eSmrg test $ac_status = 0; } && 5549bf4a254eSmrg test -f conftest2.$ac_objext && { { case "(($ac_try" in 5550bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5551bf4a254eSmrg *) ac_try_echo=$ac_try;; 5552bf4a254eSmrgesac 5553bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5554bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 5555bf4a254eSmrg (eval "$ac_try") 2>&5 5556bf4a254eSmrg ac_status=$? 5557bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5558bf4a254eSmrg test $ac_status = 0; }; 5559bf4a254eSmrg then 5560bf4a254eSmrg # cc works too. 5561bf4a254eSmrg : 5562bf4a254eSmrg else 5563bf4a254eSmrg # cc exists but doesn't like -o. 5564bf4a254eSmrg eval ac_cv_prog_cc_${ac_cc}_c_o=no 5565bf4a254eSmrg fi 5566bf4a254eSmrg fi 5567bf4a254eSmrg fi 5568bf4a254eSmrgelse 5569bf4a254eSmrg eval ac_cv_prog_cc_${ac_cc}_c_o=no 5570bf4a254eSmrgfi 5571bf4a254eSmrgrm -f core conftest* 5572bf4a254eSmrg 5573bf4a254eSmrgfi 5574bf4a254eSmrgif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5575bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5576bf4a254eSmrg$as_echo "yes" >&6; } 5577bf4a254eSmrgelse 5578bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579bf4a254eSmrg$as_echo "no" >&6; } 5580bf4a254eSmrg 5581bf4a254eSmrg$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5582bf4a254eSmrg 5583bf4a254eSmrgfi 5584bf4a254eSmrg 5585bf4a254eSmrg# FIXME: we rely on the cache variable name because 5586bf4a254eSmrg# there is no other way. 5587bf4a254eSmrgset dummy $CC 5588bf4a254eSmrgam_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5589bf4a254eSmrgeval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5590bf4a254eSmrgif test "$am_t" != yes; then 5591bf4a254eSmrg # Losing compiler, so override with the script. 5592bf4a254eSmrg # FIXME: It is wrong to rewrite CC. 5593bf4a254eSmrg # But if we don't then we get into trouble of one sort or another. 5594bf4a254eSmrg # A longer-term fix would be to have automake use am__CC in this case, 5595bf4a254eSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5596bf4a254eSmrg CC="$am_aux_dir/compile $CC" 5597bf4a254eSmrgfi 5598bf4a254eSmrg 5599bf4a254eSmrg 5600bf4a254eSmrg 5601bf4a254eSmrg 5602bf4a254eSmrgfor ac_prog in cpp 5603bf4a254eSmrgdo 5604bf4a254eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5605bf4a254eSmrgset dummy $ac_prog; ac_word=$2 5606bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5607bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 5608bf4a254eSmrgif test "${ac_cv_path_RAWCPP+set}" = set; then : 5609bf4a254eSmrg $as_echo_n "(cached) " >&6 5610bf4a254eSmrgelse 5611bf4a254eSmrg case $RAWCPP in 5612bf4a254eSmrg [\\/]* | ?:[\\/]*) 5613bf4a254eSmrg ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 5614bf4a254eSmrg ;; 5615bf4a254eSmrg *) 5616bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5617bf4a254eSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 5618bf4a254eSmrgfor as_dir in $as_dummy 5619bf4a254eSmrgdo 5620bf4a254eSmrg IFS=$as_save_IFS 5621bf4a254eSmrg test -z "$as_dir" && as_dir=. 5622bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5623bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5624bf4a254eSmrg ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 5625bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5626bf4a254eSmrg break 2 5627bf4a254eSmrg fi 5628bf4a254eSmrgdone 5629bf4a254eSmrg done 5630bf4a254eSmrgIFS=$as_save_IFS 5631bf4a254eSmrg 5632bf4a254eSmrg ;; 5633bf4a254eSmrgesac 5634bf4a254eSmrgfi 5635bf4a254eSmrgRAWCPP=$ac_cv_path_RAWCPP 5636bf4a254eSmrgif test -n "$RAWCPP"; then 5637bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 5638bf4a254eSmrg$as_echo "$RAWCPP" >&6; } 5639bf4a254eSmrgelse 5640bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641bf4a254eSmrg$as_echo "no" >&6; } 5642bf4a254eSmrgfi 5643bf4a254eSmrg 5644bf4a254eSmrg 5645bf4a254eSmrg test -n "$RAWCPP" && break 5646bf4a254eSmrgdone 5647bf4a254eSmrgtest -n "$RAWCPP" || RAWCPP="${CPP}" 5648bf4a254eSmrg 5649bf4a254eSmrg 5650bf4a254eSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 5651bf4a254eSmrg# which is not the best choice for supporting other OS'es, but covers most 5652bf4a254eSmrg# of the ones we need for now. 5653bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 5654bf4a254eSmrg$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 5655bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656bf4a254eSmrg/* end confdefs.h. */ 5657bf4a254eSmrgDoes cpp redefine unix ? 5658bf4a254eSmrg_ACEOF 5659bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 5660bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661bf4a254eSmrg$as_echo "no" >&6; } 5662bf4a254eSmrgelse 5663bf4a254eSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 5664bf4a254eSmrg RAWCPPFLAGS=-undef 5665bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5666bf4a254eSmrg$as_echo "yes" >&6; } 5667bf4a254eSmrg # under Cygwin unix is still defined even with -undef 5668bf4a254eSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 5669bf4a254eSmrg RAWCPPFLAGS="-undef -ansi" 5670bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 5671bf4a254eSmrg$as_echo "yes, with -ansi" >&6; } 5672bf4a254eSmrg else 5673bf4a254eSmrg as_fn_error "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 5674bf4a254eSmrg fi 5675bf4a254eSmrgfi 5676bf4a254eSmrgrm -f conftest.$ac_ext 5677bf4a254eSmrg 5678bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 5679bf4a254eSmrg$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 5680bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681bf4a254eSmrg/* end confdefs.h. */ 5682bf4a254eSmrgDoes cpp preserve "whitespace"? 5683bf4a254eSmrg_ACEOF 5684bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 5685bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5686bf4a254eSmrg$as_echo "no" >&6; } 5687bf4a254eSmrgelse 5688bf4a254eSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 5689bf4a254eSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 5690bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5691bf4a254eSmrg$as_echo "yes" >&6; } 5692bf4a254eSmrg else 5693bf4a254eSmrg as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 5694bf4a254eSmrg fi 5695bf4a254eSmrgfi 5696bf4a254eSmrgrm -f conftest.$ac_ext 5697bf4a254eSmrg 5698bf4a254eSmrg 5699bf4a254eSmrg 5700bf4a254eSmrg# Extract the first word of "sed", so it can be a program name with args. 5701bf4a254eSmrgset dummy sed; ac_word=$2 5702bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5703bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 5704bf4a254eSmrgif test "${ac_cv_path_SED+set}" = set; then : 5705bf4a254eSmrg $as_echo_n "(cached) " >&6 5706bf4a254eSmrgelse 5707bf4a254eSmrg case $SED in 5708bf4a254eSmrg [\\/]* | ?:[\\/]*) 5709bf4a254eSmrg ac_cv_path_SED="$SED" # Let the user override the test with a path. 5710bf4a254eSmrg ;; 5711bf4a254eSmrg *) 5712bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713bf4a254eSmrgfor as_dir in $PATH 5714bf4a254eSmrgdo 5715bf4a254eSmrg IFS=$as_save_IFS 5716bf4a254eSmrg test -z "$as_dir" && as_dir=. 5717bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5718bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5719bf4a254eSmrg ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 5720bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721bf4a254eSmrg break 2 5722bf4a254eSmrg fi 5723bf4a254eSmrgdone 5724bf4a254eSmrg done 5725bf4a254eSmrgIFS=$as_save_IFS 5726bf4a254eSmrg 5727bf4a254eSmrg ;; 5728bf4a254eSmrgesac 5729bf4a254eSmrgfi 5730bf4a254eSmrgSED=$ac_cv_path_SED 5731bf4a254eSmrgif test -n "$SED"; then 5732bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 5733bf4a254eSmrg$as_echo "$SED" >&6; } 5734bf4a254eSmrgelse 5735bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5736bf4a254eSmrg$as_echo "no" >&6; } 5737bf4a254eSmrgfi 5738a73027baSmrg 5739a73027baSmrg 5740a73027baSmrg 5741bf4a254eSmrg 5742bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5743bf4a254eSmrg$as_echo_n "checking return type of signal handlers... " >&6; } 5744bf4a254eSmrgif test "${ac_cv_type_signal+set}" = set; then : 5745bf4a254eSmrg $as_echo_n "(cached) " >&6 5746bf4a254eSmrgelse 5747bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5748bf4a254eSmrg/* end confdefs.h. */ 5749bf4a254eSmrg#include <sys/types.h> 5750bf4a254eSmrg#include <signal.h> 5751a73027baSmrg 5752a73027baSmrgint 5753a73027baSmrgmain () 5754a73027baSmrg{ 5755bf4a254eSmrgreturn *(signal (0, 0)) (0) == 1; 5756a73027baSmrg ; 5757a73027baSmrg return 0; 5758a73027baSmrg} 5759a73027baSmrg_ACEOF 5760bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 5761bf4a254eSmrg ac_cv_type_signal=int 5762a73027baSmrgelse 5763bf4a254eSmrg ac_cv_type_signal=void 5764bf4a254eSmrgfi 5765bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5766bf4a254eSmrgfi 5767bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5768bf4a254eSmrg$as_echo "$ac_cv_type_signal" >&6; } 5769bf4a254eSmrg 5770bf4a254eSmrgcat >>confdefs.h <<_ACEOF 5771bf4a254eSmrg#define RETSIGTYPE $ac_cv_type_signal 5772bf4a254eSmrg_ACEOF 5773bf4a254eSmrg 5774bf4a254eSmrg 5775bf4a254eSmrgac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5776bf4a254eSmrgif test "x$ac_cv_type_pid_t" = x""yes; then : 5777bf4a254eSmrg 5778bf4a254eSmrgelse 5779bf4a254eSmrg 5780bf4a254eSmrgcat >>confdefs.h <<_ACEOF 5781bf4a254eSmrg#define pid_t int 5782bf4a254eSmrg_ACEOF 5783a73027baSmrg 5784a73027baSmrgfi 5785a73027baSmrg 5786bf4a254eSmrgfor ac_header in vfork.h 5787bf4a254eSmrgdo : 5788bf4a254eSmrg ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 5789bf4a254eSmrgif test "x$ac_cv_header_vfork_h" = x""yes; then : 5790bf4a254eSmrg cat >>confdefs.h <<_ACEOF 5791bf4a254eSmrg#define HAVE_VFORK_H 1 5792bf4a254eSmrg_ACEOF 5793bf4a254eSmrg 5794a73027baSmrgfi 5795bf4a254eSmrg 5796bf4a254eSmrgdone 5797bf4a254eSmrg 5798bf4a254eSmrgfor ac_func in fork vfork 5799bf4a254eSmrgdo : 5800bf4a254eSmrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5801bf4a254eSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5802bf4a254eSmrgeval as_val=\$$as_ac_var 5803bf4a254eSmrg if test "x$as_val" = x""yes; then : 5804a73027baSmrg cat >>confdefs.h <<_ACEOF 5805bf4a254eSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5806a73027baSmrg_ACEOF 5807a73027baSmrg 5808a73027baSmrgfi 5809a73027baSmrgdone 5810a73027baSmrg 5811a73027baSmrgif test "x$ac_cv_func_fork" = xyes; then 5812bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 5813bf4a254eSmrg$as_echo_n "checking for working fork... " >&6; } 5814bf4a254eSmrgif test "${ac_cv_func_fork_works+set}" = set; then : 5815bf4a254eSmrg $as_echo_n "(cached) " >&6 5816a73027baSmrgelse 5817bf4a254eSmrg if test "$cross_compiling" = yes; then : 5818a73027baSmrg ac_cv_func_fork_works=cross 5819a73027baSmrgelse 5820bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5821a73027baSmrg/* end confdefs.h. */ 5822a73027baSmrg$ac_includes_default 5823a73027baSmrgint 5824a73027baSmrgmain () 5825a73027baSmrg{ 5826a73027baSmrg 5827a73027baSmrg /* By Ruediger Kuhlmann. */ 5828a73027baSmrg return fork () < 0; 5829a73027baSmrg 5830a73027baSmrg ; 5831a73027baSmrg return 0; 5832a73027baSmrg} 5833a73027baSmrg_ACEOF 5834bf4a254eSmrgif ac_fn_c_try_run "$LINENO"; then : 5835a73027baSmrg ac_cv_func_fork_works=yes 5836a73027baSmrgelse 5837bf4a254eSmrg ac_cv_func_fork_works=no 5838a73027baSmrgfi 5839bf4a254eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5840bf4a254eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 5841a73027baSmrgfi 5842a73027baSmrg 5843a73027baSmrgfi 5844bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 5845bf4a254eSmrg$as_echo "$ac_cv_func_fork_works" >&6; } 5846a73027baSmrg 5847a73027baSmrgelse 5848a73027baSmrg ac_cv_func_fork_works=$ac_cv_func_fork 5849a73027baSmrgfi 5850a73027baSmrgif test "x$ac_cv_func_fork_works" = xcross; then 5851a73027baSmrg case $host in 5852a73027baSmrg *-*-amigaos* | *-*-msdosdjgpp*) 5853a73027baSmrg # Override, as these systems have only a dummy fork() stub 5854a73027baSmrg ac_cv_func_fork_works=no 5855a73027baSmrg ;; 5856a73027baSmrg *) 5857a73027baSmrg ac_cv_func_fork_works=yes 5858a73027baSmrg ;; 5859a73027baSmrg esac 5860bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 5861bf4a254eSmrg$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 5862a73027baSmrgfi 5863a73027baSmrgac_cv_func_vfork_works=$ac_cv_func_vfork 5864a73027baSmrgif test "x$ac_cv_func_vfork" = xyes; then 5865bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 5866bf4a254eSmrg$as_echo_n "checking for working vfork... " >&6; } 5867bf4a254eSmrgif test "${ac_cv_func_vfork_works+set}" = set; then : 5868bf4a254eSmrg $as_echo_n "(cached) " >&6 5869a73027baSmrgelse 5870bf4a254eSmrg if test "$cross_compiling" = yes; then : 5871a73027baSmrg ac_cv_func_vfork_works=cross 5872a73027baSmrgelse 5873bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874a73027baSmrg/* end confdefs.h. */ 5875a73027baSmrg/* Thanks to Paul Eggert for this test. */ 5876a73027baSmrg$ac_includes_default 5877a73027baSmrg#include <sys/wait.h> 5878a73027baSmrg#ifdef HAVE_VFORK_H 5879a73027baSmrg# include <vfork.h> 5880a73027baSmrg#endif 5881a73027baSmrg/* On some sparc systems, changes by the child to local and incoming 5882a73027baSmrg argument registers are propagated back to the parent. The compiler 5883a73027baSmrg is told about this with #include <vfork.h>, but some compilers 5884a73027baSmrg (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 5885a73027baSmrg static variable whose address is put into a register that is 5886a73027baSmrg clobbered by the vfork. */ 5887a73027baSmrgstatic void 5888a73027baSmrg#ifdef __cplusplus 5889a73027baSmrgsparc_address_test (int arg) 5890a73027baSmrg# else 5891a73027baSmrgsparc_address_test (arg) int arg; 5892a73027baSmrg#endif 5893a73027baSmrg{ 5894a73027baSmrg static pid_t child; 5895a73027baSmrg if (!child) { 5896a73027baSmrg child = vfork (); 5897a73027baSmrg if (child < 0) { 5898a73027baSmrg perror ("vfork"); 5899a73027baSmrg _exit(2); 5900a73027baSmrg } 5901a73027baSmrg if (!child) { 5902a73027baSmrg arg = getpid(); 5903a73027baSmrg write(-1, "", 0); 5904a73027baSmrg _exit (arg); 5905a73027baSmrg } 5906a73027baSmrg } 5907a73027baSmrg} 5908a73027baSmrg 5909a73027baSmrgint 5910a73027baSmrgmain () 5911a73027baSmrg{ 5912a73027baSmrg pid_t parent = getpid (); 5913a73027baSmrg pid_t child; 5914a73027baSmrg 5915a73027baSmrg sparc_address_test (0); 5916a73027baSmrg 5917a73027baSmrg child = vfork (); 5918a73027baSmrg 5919a73027baSmrg if (child == 0) { 5920a73027baSmrg /* Here is another test for sparc vfork register problems. This 5921a73027baSmrg test uses lots of local variables, at least as many local 5922a73027baSmrg variables as main has allocated so far including compiler 5923a73027baSmrg temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 5924a73027baSmrg 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 5925a73027baSmrg reuse the register of parent for one of the local variables, 5926a73027baSmrg since it will think that parent can't possibly be used any more 5927a73027baSmrg in this routine. Assigning to the local variable will thus 5928a73027baSmrg munge parent in the parent process. */ 5929a73027baSmrg pid_t 5930a73027baSmrg p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 5931a73027baSmrg p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 5932a73027baSmrg /* Convince the compiler that p..p7 are live; otherwise, it might 5933a73027baSmrg use the same hardware register for all 8 local variables. */ 5934a73027baSmrg if (p != p1 || p != p2 || p != p3 || p != p4 5935a73027baSmrg || p != p5 || p != p6 || p != p7) 5936a73027baSmrg _exit(1); 5937a73027baSmrg 5938a73027baSmrg /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 5939a73027baSmrg from child file descriptors. If the child closes a descriptor 5940a73027baSmrg before it execs or exits, this munges the parent's descriptor 5941a73027baSmrg as well. Test for this by closing stdout in the child. */ 5942a73027baSmrg _exit(close(fileno(stdout)) != 0); 5943a73027baSmrg } else { 5944a73027baSmrg int status; 5945a73027baSmrg struct stat st; 5946a73027baSmrg 5947a73027baSmrg while (wait(&status) != child) 5948a73027baSmrg ; 5949a73027baSmrg return ( 5950a73027baSmrg /* Was there some problem with vforking? */ 5951a73027baSmrg child < 0 5952a73027baSmrg 5953a73027baSmrg /* Did the child fail? (This shouldn't happen.) */ 5954a73027baSmrg || status 5955a73027baSmrg 5956a73027baSmrg /* Did the vfork/compiler bug occur? */ 5957a73027baSmrg || parent != getpid() 5958a73027baSmrg 5959a73027baSmrg /* Did the file descriptor bug occur? */ 5960a73027baSmrg || fstat(fileno(stdout), &st) != 0 5961a73027baSmrg ); 5962a73027baSmrg } 5963a73027baSmrg} 5964a73027baSmrg_ACEOF 5965bf4a254eSmrgif ac_fn_c_try_run "$LINENO"; then : 5966a73027baSmrg ac_cv_func_vfork_works=yes 5967a73027baSmrgelse 5968bf4a254eSmrg ac_cv_func_vfork_works=no 5969a73027baSmrgfi 5970bf4a254eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5971bf4a254eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 5972a73027baSmrgfi 5973a73027baSmrg 5974a73027baSmrgfi 5975bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 5976bf4a254eSmrg$as_echo "$ac_cv_func_vfork_works" >&6; } 5977a73027baSmrg 5978a73027baSmrgfi; 5979a73027baSmrgif test "x$ac_cv_func_fork_works" = xcross; then 5980a73027baSmrg ac_cv_func_vfork_works=$ac_cv_func_vfork 5981bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 5982bf4a254eSmrg$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 5983a73027baSmrgfi 5984a73027baSmrg 5985a73027baSmrgif test "x$ac_cv_func_vfork_works" = xyes; then 5986a73027baSmrg 5987bf4a254eSmrg$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 5988a73027baSmrg 5989a73027baSmrgelse 5990a73027baSmrg 5991bf4a254eSmrg$as_echo "#define vfork fork" >>confdefs.h 5992a73027baSmrg 5993a73027baSmrgfi 5994a73027baSmrgif test "x$ac_cv_func_fork_works" = xyes; then 5995a73027baSmrg 5996bf4a254eSmrg$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 5997a73027baSmrg 5998a73027baSmrgfi 5999a73027baSmrg 6000a73027baSmrg 6001a73027baSmrgfor ac_func in killpg 6002bf4a254eSmrgdo : 6003bf4a254eSmrg ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" 6004bf4a254eSmrgif test "x$ac_cv_func_killpg" = x""yes; then : 6005a73027baSmrg cat >>confdefs.h <<_ACEOF 6006bf4a254eSmrg#define HAVE_KILLPG 1 6007a73027baSmrg_ACEOF 6008a73027baSmrg 6009a73027baSmrgfi 6010a73027baSmrgdone 6011a73027baSmrg 6012a73027baSmrg 6013a73027baSmrg 6014a73027baSmrg 6015bf4a254eSmrg 6016a73027baSmrg# Build options 6017a73027baSmrgDEFAULT_XRDB=xrdb 6018a73027baSmrgDEFAULT_XMODMAP=xmodmap 6019a73027baSmrgDEFAULT_TWM=twm 6020a73027baSmrgDEFAULT_XCLOCK=xclock 6021a73027baSmrgDEFAULT_XTERM=xterm 6022a73027baSmrg# You always want to specify the full path to the X server 6023a73027baSmrgDEFAULT_XSERVER=${bindir}/X 6024a73027baSmrgDEFAULT_XAUTH=xauth 6025a73027baSmrgDEFAULT_XINIT=xinit 6026bf4a254eSmrgDEFAULT_XINITDIR=${libdir}/X11/xinit 6027a73027baSmrg 6028a73027baSmrg 6029a73027baSmrg# Check whether --with-xrdb was given. 6030bf4a254eSmrgif test "${with_xrdb+set}" = set; then : 6031a73027baSmrg withval=$with_xrdb; XRDB="$withval" 6032a73027baSmrgelse 6033a73027baSmrg XRDB="$DEFAULT_XRDB" 6034a73027baSmrgfi 6035a73027baSmrg 6036a73027baSmrg 6037a73027baSmrg 6038a73027baSmrg# Check whether --with-xmodmap was given. 6039bf4a254eSmrgif test "${with_xmodmap+set}" = set; then : 6040a73027baSmrg withval=$with_xmodmap; XMODMAP="$withval" 6041a73027baSmrgelse 6042a73027baSmrg XMODMAP="$DEFAULT_XMODMAP" 6043a73027baSmrgfi 6044a73027baSmrg 6045a73027baSmrg 6046a73027baSmrg 6047a73027baSmrg# Check whether --with-twm was given. 6048bf4a254eSmrgif test "${with_twm+set}" = set; then : 6049a73027baSmrg withval=$with_twm; TWM="$withval" 6050a73027baSmrgelse 6051a73027baSmrg TWM="$DEFAULT_TWM" 6052a73027baSmrgfi 6053a73027baSmrg 6054a73027baSmrg 6055a73027baSmrg 6056a73027baSmrg# Check whether --with-xclock was given. 6057bf4a254eSmrgif test "${with_xclock+set}" = set; then : 6058a73027baSmrg withval=$with_xclock; XCLOCK="$withval" 6059a73027baSmrgelse 6060a73027baSmrg XCLOCK="$DEFAULT_XCLOCK" 6061a73027baSmrgfi 6062a73027baSmrg 6063a73027baSmrg 6064a73027baSmrg 6065a73027baSmrg# Check whether --with-xterm was given. 6066bf4a254eSmrgif test "${with_xterm+set}" = set; then : 6067a73027baSmrg withval=$with_xterm; XTERM="$withval" 6068a73027baSmrgelse 6069a73027baSmrg XTERM="$DEFAULT_XTERM" 6070a73027baSmrgfi 6071a73027baSmrg 6072a73027baSmrg 6073a73027baSmrg 6074a73027baSmrg# Check whether --with-xserver was given. 6075bf4a254eSmrgif test "${with_xserver+set}" = set; then : 6076a73027baSmrg withval=$with_xserver; XSERVER="$withval" 6077a73027baSmrgelse 6078a73027baSmrg XSERVER="$DEFAULT_XSERVER" 6079a73027baSmrgfi 6080a73027baSmrg 6081a73027baSmrg 6082a73027baSmrg 6083a73027baSmrg# Check whether --with-xauth was given. 6084bf4a254eSmrgif test "${with_xauth+set}" = set; then : 6085a73027baSmrg withval=$with_xauth; XAUTH="$withval" 6086a73027baSmrgelse 6087a73027baSmrg XAUTH="$DEFAULT_XAUTH" 6088a73027baSmrgfi 6089a73027baSmrg 6090a73027baSmrg 6091a73027baSmrg 6092a73027baSmrg# Check whether --with-xinit was given. 6093bf4a254eSmrgif test "${with_xinit+set}" = set; then : 6094a73027baSmrg withval=$with_xinit; XINIT="$withval" 6095a73027baSmrgelse 6096a73027baSmrg XINIT="$DEFAULT_XINIT" 6097a73027baSmrgfi 6098a73027baSmrg 6099a73027baSmrg 6100a73027baSmrg 6101bf4a254eSmrg# Check whether --with-xinitdir was given. 6102bf4a254eSmrgif test "${with_xinitdir+set}" = set; then : 6103bf4a254eSmrg withval=$with_xinitdir; XINITDIR="$withval" 6104bf4a254eSmrgelse 6105bf4a254eSmrg XINITDIR="$DEFAULT_XINITDIR" 6106bf4a254eSmrgfi 6107bf4a254eSmrg 6108bf4a254eSmrg 6109bf4a254eSmrg 6110a73027baSmrg# Check whether --with-launchd was given. 6111bf4a254eSmrgif test "${with_launchd+set}" = set; then : 6112a73027baSmrg withval=$with_launchd; LAUNCHD=$withval 6113a73027baSmrgelse 6114a73027baSmrg LAUNCHD=auto 6115a73027baSmrgfi 6116a73027baSmrg 6117a73027baSmrg 6118a73027baSmrg# Check whether --with-launchagents-dir was given. 6119bf4a254eSmrgif test "${with_launchagents_dir+set}" = set; then : 6120a73027baSmrg withval=$with_launchagents_dir; launchagentsdir="${withval}" 6121a73027baSmrgelse 6122a73027baSmrg launchagentsdir="/Library/LaunchAgents" 6123a73027baSmrgfi 6124a73027baSmrg 6125a73027baSmrg 6126a73027baSmrg# Check whether --with-launchdaemons-dir was given. 6127bf4a254eSmrgif test "${with_launchdaemons_dir+set}" = set; then : 6128a73027baSmrg withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 6129a73027baSmrgelse 6130a73027baSmrg launchdaemonsdir="/Library/LaunchDaemons" 6131a73027baSmrgfi 6132a73027baSmrg 6133a73027baSmrg 6134bf4a254eSmrg# Check whether --with-launchd-id-prefix was given. 6135bf4a254eSmrgif test "${with_launchd_id_prefix+set}" = set; then : 6136bf4a254eSmrg withval=$with_launchd_id_prefix; launchdidprefix="${withval}" 6137bf4a254eSmrgelse 6138bf4a254eSmrg launchdidprefix="org.x" 6139bf4a254eSmrgfi 6140bf4a254eSmrg 6141bf4a254eSmrg 6142a73027baSmrgif test "x$LAUNCHD" = "xauto"; then 6143a73027baSmrg unset LAUNCHD 614472e81212Smrg # Extract the first word of "launchd", so it can be a program name with args. 6145a73027baSmrgset dummy launchd; ac_word=$2 6146bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6147bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 6148bf4a254eSmrgif test "${ac_cv_prog_LAUNCHD+set}" = set; then : 6149bf4a254eSmrg $as_echo_n "(cached) " >&6 6150a73027baSmrgelse 6151a73027baSmrg if test -n "$LAUNCHD"; then 6152a73027baSmrg ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 6153a73027baSmrgelse 6154a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155a73027baSmrgfor as_dir in $PATH 6156a73027baSmrgdo 6157a73027baSmrg IFS=$as_save_IFS 6158a73027baSmrg test -z "$as_dir" && as_dir=. 6159bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6160a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6161a73027baSmrg ac_cv_prog_LAUNCHD="yes" 6162bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6163a73027baSmrg break 2 6164a73027baSmrg fi 6165a73027baSmrgdone 6166bf4a254eSmrg done 6167a73027baSmrgIFS=$as_save_IFS 6168a73027baSmrg 6169a73027baSmrg test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 6170a73027baSmrgfi 6171a73027baSmrgfi 6172a73027baSmrgLAUNCHD=$ac_cv_prog_LAUNCHD 6173a73027baSmrgif test -n "$LAUNCHD"; then 6174bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 6175bf4a254eSmrg$as_echo "$LAUNCHD" >&6; } 6176a73027baSmrgelse 6177bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6178bf4a254eSmrg$as_echo "no" >&6; } 6179a73027baSmrgfi 6180a73027baSmrg 6181a73027baSmrg 6182a73027baSmrgfi 6183a73027baSmrg 618472e81212SmrgTIGER_LAUNCHD=no 6185a73027baSmrgif test "x$LAUNCHD" = "xyes" ; then 6186a73027baSmrg 6187bf4a254eSmrg$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 6188a73027baSmrg 618972e81212Smrg case $host_os in 619072e81212Smrg darwin8*) 619172e81212Smrg TIGER_LAUNCHD=yes 619272e81212Smrg ;; 619372e81212Smrg esac 6194a73027baSmrgelse 6195a73027baSmrg launchagentsdir="" 6196a73027baSmrg launchdaemonsdir="" 6197a73027baSmrgfi 6198a73027baSmrg 6199a73027baSmrg 6200bf4a254eSmrgcat >>confdefs.h <<_ACEOF 6201bf4a254eSmrg#define LAUNCHD_ID_PREFIX "$launchdidprefix" 6202bf4a254eSmrg_ACEOF 6203bf4a254eSmrg 6204bf4a254eSmrg 6205bf4a254eSmrg 6206bf4a254eSmrg 6207a73027baSmrg if test "x$LAUNCHD" = "xyes"; then 6208a73027baSmrg LAUNCHD_TRUE= 6209a73027baSmrg LAUNCHD_FALSE='#' 6210a73027baSmrgelse 6211a73027baSmrg LAUNCHD_TRUE='#' 6212a73027baSmrg LAUNCHD_FALSE= 6213a73027baSmrgfi 6214a73027baSmrg 621572e81212Smrg if test "x$TIGER_LAUNCHD" = "xyes"; then 621672e81212Smrg TIGER_LAUNCHD_TRUE= 621772e81212Smrg TIGER_LAUNCHD_FALSE='#' 621872e81212Smrgelse 621972e81212Smrg TIGER_LAUNCHD_TRUE='#' 622072e81212Smrg TIGER_LAUNCHD_FALSE= 622172e81212Smrgfi 622272e81212Smrg 6223a73027baSmrg 6224a73027baSmrg# Checks for pkg-config packages 6225a73027baSmrg 6226a73027baSmrgpkg_failed=no 6227bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 6228bf4a254eSmrg$as_echo_n "checking for XINIT... " >&6; } 6229a73027baSmrg 6230a73027baSmrgif test -n "$XINIT_CFLAGS"; then 6231a73027baSmrg pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 6232a73027baSmrg elif test -n "$PKG_CONFIG"; then 6233a73027baSmrg if test -n "$PKG_CONFIG" && \ 6234bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 6235a73027baSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 6236a73027baSmrg ac_status=$? 6237bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6238bf4a254eSmrg test $ac_status = 0; }; then 6239a73027baSmrg pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 6240a73027baSmrgelse 6241a73027baSmrg pkg_failed=yes 6242a73027baSmrgfi 6243a73027baSmrg else 6244a73027baSmrg pkg_failed=untried 6245a73027baSmrgfi 6246a73027baSmrgif test -n "$XINIT_LIBS"; then 6247a73027baSmrg pkg_cv_XINIT_LIBS="$XINIT_LIBS" 6248a73027baSmrg elif test -n "$PKG_CONFIG"; then 6249a73027baSmrg if test -n "$PKG_CONFIG" && \ 6250bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 6251a73027baSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 6252a73027baSmrg ac_status=$? 6253bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6254bf4a254eSmrg test $ac_status = 0; }; then 6255a73027baSmrg pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 6256a73027baSmrgelse 6257a73027baSmrg pkg_failed=yes 6258a73027baSmrgfi 6259a73027baSmrg else 6260a73027baSmrg pkg_failed=untried 6261a73027baSmrgfi 6262a73027baSmrg 6263a73027baSmrg 6264a73027baSmrg 6265a73027baSmrgif test $pkg_failed = yes; then 6266a73027baSmrg 6267a73027baSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 6268a73027baSmrg _pkg_short_errors_supported=yes 6269a73027baSmrgelse 6270a73027baSmrg _pkg_short_errors_supported=no 6271a73027baSmrgfi 6272a73027baSmrg if test $_pkg_short_errors_supported = yes; then 6273a73027baSmrg XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 6274a73027baSmrg else 6275a73027baSmrg XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 6276a73027baSmrg fi 6277a73027baSmrg # Put the nasty error message in config.log where it belongs 6278a73027baSmrg echo "$XINIT_PKG_ERRORS" >&5 6279a73027baSmrg 6280bf4a254eSmrg as_fn_error "Package requirements (x11) were not met: 6281a73027baSmrg 6282a73027baSmrg$XINIT_PKG_ERRORS 6283a73027baSmrg 6284a73027baSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 6285a73027baSmrginstalled software in a non-standard prefix. 6286a73027baSmrg 6287a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS 6288a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config. 6289a73027baSmrgSee the pkg-config man page for more details. 6290bf4a254eSmrg" "$LINENO" 5 6291bf4a254eSmrgelif test $pkg_failed = untried; then 6292bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6293bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6294bf4a254eSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 6295a73027baSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 6296a73027baSmrgpath to pkg-config. 6297a73027baSmrg 6298a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS 6299a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config. 6300a73027baSmrgSee the pkg-config man page for more details. 6301a73027baSmrg 6302a73027baSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 6303bf4a254eSmrgSee \`config.log' for more details." "$LINENO" 5; } 6304a73027baSmrgelse 6305a73027baSmrg XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 6306a73027baSmrg XINIT_LIBS=$pkg_cv_XINIT_LIBS 6307bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6308bf4a254eSmrg$as_echo "yes" >&6; } 6309a73027baSmrg : 6310a73027baSmrgfi 6311a73027baSmrg 6312a73027baSmrgcase $host_os in 6313a73027baSmrg *bsd*) 6314a73027baSmrg XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 6315a73027baSmrg ;; 6316a73027baSmrgesac 6317a73027baSmrg 6318a73027baSmrg 6319a73027baSmrg 6320a73027baSmrg 6321a73027baSmrgfor ac_prog in mcookie 6322a73027baSmrgdo 6323a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 6324a73027baSmrgset dummy $ac_prog; ac_word=$2 6325bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6326bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 6327bf4a254eSmrgif test "${ac_cv_path_MCOOKIE+set}" = set; then : 6328bf4a254eSmrg $as_echo_n "(cached) " >&6 6329a73027baSmrgelse 6330a73027baSmrg case $MCOOKIE in 6331a73027baSmrg [\\/]* | ?:[\\/]*) 6332a73027baSmrg ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 6333a73027baSmrg ;; 6334a73027baSmrg *) 6335a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336a73027baSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 6337a73027baSmrgfor as_dir in $as_dummy 6338a73027baSmrgdo 6339a73027baSmrg IFS=$as_save_IFS 6340a73027baSmrg test -z "$as_dir" && as_dir=. 6341bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6342a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6343a73027baSmrg ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext" 6344bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345a73027baSmrg break 2 6346a73027baSmrg fi 6347a73027baSmrgdone 6348bf4a254eSmrg done 6349a73027baSmrgIFS=$as_save_IFS 6350a73027baSmrg 6351a73027baSmrg ;; 6352a73027baSmrgesac 6353a73027baSmrgfi 6354a73027baSmrgMCOOKIE=$ac_cv_path_MCOOKIE 6355a73027baSmrgif test -n "$MCOOKIE"; then 6356bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 6357bf4a254eSmrg$as_echo "$MCOOKIE" >&6; } 6358a73027baSmrgelse 6359bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360bf4a254eSmrg$as_echo "no" >&6; } 6361a73027baSmrgfi 6362a73027baSmrg 6363a73027baSmrg 6364a73027baSmrg test -n "$MCOOKIE" && break 6365a73027baSmrgdone 6366a73027baSmrgtest -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 6367a73027baSmrg 6368a73027baSmrg 6369a73027baSmrgcase $host_os in 6370a73027baSmrg *openbsd*) 6371a73027baSmrg MCOOKIE='/usr/sbin/openssl rand -hex 16' 6372a73027baSmrg ;; 6373a73027baSmrg *solaris*) 6374a73027baSmrg MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 6375a73027baSmrg ;; 6376a73027baSmrgesac 6377a73027baSmrg 6378a73027baSmrgif test "x$MCOOKIE" != x ; then 6379a73027baSmrg STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 6380a73027baSmrgfi 6381a73027baSmrg 6382a73027baSmrg 6383a73027baSmrg# Additional substitutions in startx, xinitrc & man pages 6384bf4a254eSmrgARCHMANDEFS="" 6385bf4a254eSmrgSHELL_CMD="/bin/sh" 6386bf4a254eSmrgXSERVERNAME="Xorg" 6387bf4a254eSmrgXCONFIGFILE="xorg.conf" 6388bf4a254eSmrgXCONFIGFILEMAN='${XCONFIGFILE} (__filemansuffix__)' 6389a73027baSmrgcase $host_os in 6390bf4a254eSmrg cygwin*) 6391bf4a254eSmrg XSERVERNAME="XWin" 6392bf4a254eSmrg XCONFIGFILE="XWinrc" 6393bf4a254eSmrg ;; 6394bf4a254eSmrg darwin*) 6395bf4a254eSmrg XSERVERNAME="Xquartz" 6396bf4a254eSmrg XCONFIGFILE="defaults" 6397bf4a254eSmrg XCONFIGFILEMAN='defaults (1)' 6398bf4a254eSmrg ;; 6399a73027baSmrg *solaris*) 6400a73027baSmrg SHELL_CMD="/bin/ksh" 6401a73027baSmrg ;; 6402a73027baSmrg *sco*) 6403a73027baSmrg SHELL_CMD="/bin/ksh" 6404a73027baSmrg ARCHMANDEFS="-D__SCOMAN__" 6405a73027baSmrg ;; 6406a73027baSmrgesac 6407a73027baSmrg 6408a73027baSmrg 6409a73027baSmrg 6410a73027baSmrg 6411a73027baSmrg 6412a73027baSmrg 6413a73027baSmrg 6414a73027baSmrg 6415a73027baSmrg 6416a73027baSmrg 6417a73027baSmrg 6418a73027baSmrg 6419a73027baSmrg 6420a73027baSmrg 6421a73027baSmrg 6422a73027baSmrg 6423a73027baSmrgac_config_files="$ac_config_files Makefile" 6424a73027baSmrg 6425a73027baSmrgcat >confcache <<\_ACEOF 6426a73027baSmrg# This file is a shell script that caches the results of configure 6427a73027baSmrg# tests run on this system so they can be shared between configure 6428a73027baSmrg# scripts and configure runs, see configure's option --config-cache. 6429a73027baSmrg# It is not useful on other systems. If it contains results you don't 6430a73027baSmrg# want to keep, you may remove or edit it. 6431a73027baSmrg# 6432a73027baSmrg# config.status only pays attention to the cache file if you give it 6433a73027baSmrg# the --recheck option to rerun configure. 6434a73027baSmrg# 6435a73027baSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 6436a73027baSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 6437a73027baSmrg# following values. 6438a73027baSmrg 6439a73027baSmrg_ACEOF 6440a73027baSmrg 6441a73027baSmrg# The following way of writing the cache mishandles newlines in values, 6442a73027baSmrg# but we know of no workaround that is simple, portable, and efficient. 6443a73027baSmrg# So, we kill variables containing newlines. 6444a73027baSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 6445a73027baSmrg# and sets the high bit in the cache file unless we assign to the vars. 6446a73027baSmrg( 6447a73027baSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6448a73027baSmrg eval ac_val=\$$ac_var 6449a73027baSmrg case $ac_val in #( 6450a73027baSmrg *${as_nl}*) 6451a73027baSmrg case $ac_var in #( 6452bf4a254eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6453bf4a254eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6454a73027baSmrg esac 6455a73027baSmrg case $ac_var in #( 6456a73027baSmrg _ | IFS | as_nl) ;; #( 6457bf4a254eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6458bf4a254eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 6459a73027baSmrg esac ;; 6460a73027baSmrg esac 6461a73027baSmrg done 6462a73027baSmrg 6463a73027baSmrg (set) 2>&1 | 6464a73027baSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 6465a73027baSmrg *${as_nl}ac_space=\ *) 6466bf4a254eSmrg # `set' does not quote correctly, so add quotes: double-quote 6467bf4a254eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 6468a73027baSmrg sed -n \ 6469a73027baSmrg "s/'/'\\\\''/g; 6470a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6471a73027baSmrg ;; #( 6472a73027baSmrg *) 6473a73027baSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 6474a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6475a73027baSmrg ;; 6476a73027baSmrg esac | 6477a73027baSmrg sort 6478a73027baSmrg) | 6479a73027baSmrg sed ' 6480a73027baSmrg /^ac_cv_env_/b end 6481a73027baSmrg t clear 6482a73027baSmrg :clear 6483a73027baSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6484a73027baSmrg t end 6485a73027baSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6486a73027baSmrg :end' >>confcache 6487a73027baSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6488a73027baSmrg if test -w "$cache_file"; then 6489a73027baSmrg test "x$cache_file" != "x/dev/null" && 6490bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6491bf4a254eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 6492a73027baSmrg cat confcache >$cache_file 6493a73027baSmrg else 6494bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6495bf4a254eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6496a73027baSmrg fi 6497a73027baSmrgfi 6498a73027baSmrgrm -f confcache 6499a73027baSmrg 6500a73027baSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 6501a73027baSmrg# Let make expand exec_prefix. 6502a73027baSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6503a73027baSmrg 6504a73027baSmrgDEFS=-DHAVE_CONFIG_H 6505a73027baSmrg 6506a73027baSmrgac_libobjs= 6507a73027baSmrgac_ltlibobjs= 6508a73027baSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6509a73027baSmrg # 1. Remove the extension, and $U if already installed. 6510a73027baSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6511bf4a254eSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6512a73027baSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6513a73027baSmrg # will be set to the directory where LIBOBJS objects are built. 6514bf4a254eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6515bf4a254eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6516a73027baSmrgdone 6517a73027baSmrgLIBOBJS=$ac_libobjs 6518a73027baSmrg 6519a73027baSmrgLTLIBOBJS=$ac_ltlibobjs 6520a73027baSmrg 6521a73027baSmrg 6522bf4a254eSmrg if test -n "$EXEEXT"; then 6523bf4a254eSmrg am__EXEEXT_TRUE= 6524bf4a254eSmrg am__EXEEXT_FALSE='#' 6525bf4a254eSmrgelse 6526bf4a254eSmrg am__EXEEXT_TRUE='#' 6527bf4a254eSmrg am__EXEEXT_FALSE= 6528bf4a254eSmrgfi 6529bf4a254eSmrg 6530a73027baSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 6531bf4a254eSmrg as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 6532bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 6533a73027baSmrgfi 6534a73027baSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6535bf4a254eSmrg as_fn_error "conditional \"AMDEP\" was never defined. 6536bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 6537bf4a254eSmrgfi 6538bf4a254eSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6539bf4a254eSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 6540bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 6541a73027baSmrgfi 6542a73027baSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6543bf4a254eSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 6544bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 6545a73027baSmrgfi 6546a73027baSmrgif test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 6547bf4a254eSmrg as_fn_error "conditional \"LAUNCHD\" was never defined. 6548bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 6549a73027baSmrgfi 655072e81212Smrgif test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then 6551bf4a254eSmrg as_fn_error "conditional \"TIGER_LAUNCHD\" was never defined. 6552bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 655372e81212Smrgfi 6554a73027baSmrg 6555a73027baSmrg: ${CONFIG_STATUS=./config.status} 6556bf4a254eSmrgac_write_fail=0 6557a73027baSmrgac_clean_files_save=$ac_clean_files 6558a73027baSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 6559bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6560bf4a254eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6561bf4a254eSmrgas_write_fail=0 6562bf4a254eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6563a73027baSmrg#! $SHELL 6564a73027baSmrg# Generated by $as_me. 6565a73027baSmrg# Run this file to recreate the current configuration. 6566a73027baSmrg# Compiler output produced by configure, useful for debugging 6567a73027baSmrg# configure, is in config.log if it exists. 6568a73027baSmrg 6569a73027baSmrgdebug=false 6570a73027baSmrgac_cs_recheck=false 6571a73027baSmrgac_cs_silent=false 6572a73027baSmrg 6573bf4a254eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 6574bf4a254eSmrgexport SHELL 6575bf4a254eSmrg_ASEOF 6576bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6577bf4a254eSmrg## -------------------- ## 6578bf4a254eSmrg## M4sh Initialization. ## 6579bf4a254eSmrg## -------------------- ## 6580a73027baSmrg 6581a73027baSmrg# Be more Bourne compatible 6582a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 6583bf4a254eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6584a73027baSmrg emulate sh 6585a73027baSmrg NULLCMD=: 6586bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6587a73027baSmrg # is contrary to our usage. Disable this feature. 6588a73027baSmrg alias -g '${1+"$@"}'='"$@"' 6589a73027baSmrg setopt NO_GLOB_SUBST 6590a73027baSmrgelse 6591bf4a254eSmrg case `(set -o) 2>/dev/null` in #( 6592bf4a254eSmrg *posix*) : 6593bf4a254eSmrg set -o posix ;; #( 6594bf4a254eSmrg *) : 6595bf4a254eSmrg ;; 6596a73027baSmrgesac 6597a73027baSmrgfi 6598a73027baSmrg 6599a73027baSmrg 6600bf4a254eSmrgas_nl=' 6601bf4a254eSmrg' 6602bf4a254eSmrgexport as_nl 6603bf4a254eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 6604bf4a254eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6605bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6606bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6607bf4a254eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 6608bf4a254eSmrg# but without wasting forks for bash or zsh. 6609bf4a254eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 6610bf4a254eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6611bf4a254eSmrg as_echo='print -r --' 6612bf4a254eSmrg as_echo_n='print -rn --' 6613bf4a254eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6614bf4a254eSmrg as_echo='printf %s\n' 6615bf4a254eSmrg as_echo_n='printf %s' 6616bf4a254eSmrgelse 6617bf4a254eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6618bf4a254eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6619bf4a254eSmrg as_echo_n='/usr/ucb/echo -n' 6620a73027baSmrg else 6621bf4a254eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6622bf4a254eSmrg as_echo_n_body='eval 6623bf4a254eSmrg arg=$1; 6624bf4a254eSmrg case $arg in #( 6625bf4a254eSmrg *"$as_nl"*) 6626bf4a254eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6627bf4a254eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6628bf4a254eSmrg esac; 6629bf4a254eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6630bf4a254eSmrg ' 6631bf4a254eSmrg export as_echo_n_body 6632bf4a254eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 6633a73027baSmrg fi 6634bf4a254eSmrg export as_echo_body 6635bf4a254eSmrg as_echo='sh -c $as_echo_body as_echo' 6636a73027baSmrgfi 6637a73027baSmrg 6638bf4a254eSmrg# The user is always right. 6639bf4a254eSmrgif test "${PATH_SEPARATOR+set}" != set; then 6640bf4a254eSmrg PATH_SEPARATOR=: 6641bf4a254eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6642bf4a254eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6643bf4a254eSmrg PATH_SEPARATOR=';' 6644bf4a254eSmrg } 6645a73027baSmrgfi 6646a73027baSmrg 6647a73027baSmrg 6648a73027baSmrg# IFS 6649a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 6650a73027baSmrg# there to prevent editors from complaining about space-tab. 6651a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6652a73027baSmrg# splitting by setting IFS to empty value.) 6653a73027baSmrgIFS=" "" $as_nl" 6654a73027baSmrg 6655a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 6656bf4a254eSmrgcase $0 in #(( 6657a73027baSmrg *[\\/]* ) as_myself=$0 ;; 6658a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6659a73027baSmrgfor as_dir in $PATH 6660a73027baSmrgdo 6661a73027baSmrg IFS=$as_save_IFS 6662a73027baSmrg test -z "$as_dir" && as_dir=. 6663bf4a254eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6664bf4a254eSmrg done 6665a73027baSmrgIFS=$as_save_IFS 6666a73027baSmrg 6667a73027baSmrg ;; 6668a73027baSmrgesac 6669a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 6670a73027baSmrg# in which case we are not to be found in the path. 6671a73027baSmrgif test "x$as_myself" = x; then 6672a73027baSmrg as_myself=$0 6673a73027baSmrgfi 6674a73027baSmrgif test ! -f "$as_myself"; then 6675bf4a254eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6676bf4a254eSmrg exit 1 6677a73027baSmrgfi 6678a73027baSmrg 6679bf4a254eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 6680bf4a254eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6681bf4a254eSmrg# suppresses any "Segmentation fault" message there. '((' could 6682bf4a254eSmrg# trigger a bug in pdksh 5.2.14. 6683bf4a254eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 6684bf4a254eSmrgdo eval test x\${$as_var+set} = xset \ 6685bf4a254eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6686a73027baSmrgdone 6687a73027baSmrgPS1='$ ' 6688a73027baSmrgPS2='> ' 6689a73027baSmrgPS4='+ ' 6690a73027baSmrg 6691a73027baSmrg# NLS nuisances. 6692bf4a254eSmrgLC_ALL=C 6693bf4a254eSmrgexport LC_ALL 6694bf4a254eSmrgLANGUAGE=C 6695bf4a254eSmrgexport LANGUAGE 6696bf4a254eSmrg 6697bf4a254eSmrg# CDPATH. 6698bf4a254eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6699bf4a254eSmrg 6700bf4a254eSmrg 6701bf4a254eSmrg# as_fn_error ERROR [LINENO LOG_FD] 6702bf4a254eSmrg# --------------------------------- 6703bf4a254eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6704bf4a254eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6705bf4a254eSmrg# script with status $?, using 1 if that was 0. 6706bf4a254eSmrgas_fn_error () 6707bf4a254eSmrg{ 6708bf4a254eSmrg as_status=$?; test $as_status -eq 0 && as_status=1 6709bf4a254eSmrg if test "$3"; then 6710bf4a254eSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6711bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 6712a73027baSmrg fi 6713bf4a254eSmrg $as_echo "$as_me: error: $1" >&2 6714bf4a254eSmrg as_fn_exit $as_status 6715bf4a254eSmrg} # as_fn_error 6716bf4a254eSmrg 6717bf4a254eSmrg 6718bf4a254eSmrg# as_fn_set_status STATUS 6719bf4a254eSmrg# ----------------------- 6720bf4a254eSmrg# Set $? to STATUS, without forking. 6721bf4a254eSmrgas_fn_set_status () 6722bf4a254eSmrg{ 6723bf4a254eSmrg return $1 6724bf4a254eSmrg} # as_fn_set_status 6725bf4a254eSmrg 6726bf4a254eSmrg# as_fn_exit STATUS 6727bf4a254eSmrg# ----------------- 6728bf4a254eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6729bf4a254eSmrgas_fn_exit () 6730bf4a254eSmrg{ 6731bf4a254eSmrg set +e 6732bf4a254eSmrg as_fn_set_status $1 6733bf4a254eSmrg exit $1 6734bf4a254eSmrg} # as_fn_exit 6735bf4a254eSmrg 6736bf4a254eSmrg# as_fn_unset VAR 6737bf4a254eSmrg# --------------- 6738bf4a254eSmrg# Portably unset VAR. 6739bf4a254eSmrgas_fn_unset () 6740bf4a254eSmrg{ 6741bf4a254eSmrg { eval $1=; unset $1;} 6742bf4a254eSmrg} 6743bf4a254eSmrgas_unset=as_fn_unset 6744bf4a254eSmrg# as_fn_append VAR VALUE 6745bf4a254eSmrg# ---------------------- 6746bf4a254eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 6747bf4a254eSmrg# advantage of any shell optimizations that allow amortized linear growth over 6748bf4a254eSmrg# repeated appends, instead of the typical quadratic growth present in naive 6749bf4a254eSmrg# implementations. 6750bf4a254eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6751bf4a254eSmrg eval 'as_fn_append () 6752bf4a254eSmrg { 6753bf4a254eSmrg eval $1+=\$2 6754bf4a254eSmrg }' 6755bf4a254eSmrgelse 6756bf4a254eSmrg as_fn_append () 6757bf4a254eSmrg { 6758bf4a254eSmrg eval $1=\$$1\$2 6759bf4a254eSmrg } 6760bf4a254eSmrgfi # as_fn_append 6761bf4a254eSmrg 6762bf4a254eSmrg# as_fn_arith ARG... 6763bf4a254eSmrg# ------------------ 6764bf4a254eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 6765bf4a254eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 6766bf4a254eSmrg# must be portable across $(()) and expr. 6767bf4a254eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6768bf4a254eSmrg eval 'as_fn_arith () 6769bf4a254eSmrg { 6770bf4a254eSmrg as_val=$(( $* )) 6771bf4a254eSmrg }' 6772bf4a254eSmrgelse 6773bf4a254eSmrg as_fn_arith () 6774bf4a254eSmrg { 6775bf4a254eSmrg as_val=`expr "$@" || test $? -eq 1` 6776bf4a254eSmrg } 6777bf4a254eSmrgfi # as_fn_arith 6778bf4a254eSmrg 6779a73027baSmrg 6780a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 6781a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 6782a73027baSmrg as_expr=expr 6783a73027baSmrgelse 6784a73027baSmrg as_expr=false 6785a73027baSmrgfi 6786a73027baSmrg 6787a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6788a73027baSmrg as_basename=basename 6789a73027baSmrgelse 6790a73027baSmrg as_basename=false 6791a73027baSmrgfi 6792a73027baSmrg 6793bf4a254eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6794bf4a254eSmrg as_dirname=dirname 6795bf4a254eSmrgelse 6796bf4a254eSmrg as_dirname=false 6797bf4a254eSmrgfi 6798a73027baSmrg 6799a73027baSmrgas_me=`$as_basename -- "$0" || 6800a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6801a73027baSmrg X"$0" : 'X\(//\)$' \| \ 6802a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 6803bf4a254eSmrg$as_echo X/"$0" | 6804a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 6805a73027baSmrg s//\1/ 6806a73027baSmrg q 6807a73027baSmrg } 6808a73027baSmrg /^X\/\(\/\/\)$/{ 6809a73027baSmrg s//\1/ 6810a73027baSmrg q 6811a73027baSmrg } 6812a73027baSmrg /^X\/\(\/\).*/{ 6813a73027baSmrg s//\1/ 6814a73027baSmrg q 6815a73027baSmrg } 6816a73027baSmrg s/.*/./; q'` 6817a73027baSmrg 6818bf4a254eSmrg# Avoid depending upon Character Ranges. 6819bf4a254eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 6820bf4a254eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6821bf4a254eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 6822bf4a254eSmrgas_cr_digits='0123456789' 6823bf4a254eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 6824a73027baSmrg 6825a73027baSmrgECHO_C= ECHO_N= ECHO_T= 6826bf4a254eSmrgcase `echo -n x` in #((((( 6827a73027baSmrg-n*) 6828bf4a254eSmrg case `echo 'xy\c'` in 6829a73027baSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6830bf4a254eSmrg xy) ECHO_C='\c';; 6831bf4a254eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6832bf4a254eSmrg ECHO_T=' ';; 6833a73027baSmrg esac;; 6834a73027baSmrg*) 6835a73027baSmrg ECHO_N='-n';; 6836a73027baSmrgesac 6837a73027baSmrg 6838bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file 6839bf4a254eSmrgif test -d conf$$.dir; then 6840bf4a254eSmrg rm -f conf$$.dir/conf$$.file 6841a73027baSmrgelse 6842bf4a254eSmrg rm -f conf$$.dir 6843bf4a254eSmrg mkdir conf$$.dir 2>/dev/null 6844bf4a254eSmrgfi 6845bf4a254eSmrgif (echo >conf$$.file) 2>/dev/null; then 6846bf4a254eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 6847bf4a254eSmrg as_ln_s='ln -s' 6848bf4a254eSmrg # ... but there are two gotchas: 6849bf4a254eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6850bf4a254eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6851bf4a254eSmrg # In both cases, we have to default to `cp -p'. 6852bf4a254eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6853bf4a254eSmrg as_ln_s='cp -p' 6854bf4a254eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 6855bf4a254eSmrg as_ln_s=ln 6856bf4a254eSmrg else 6857bf4a254eSmrg as_ln_s='cp -p' 6858bf4a254eSmrg fi 6859bf4a254eSmrgelse 6860bf4a254eSmrg as_ln_s='cp -p' 6861a73027baSmrgfi 6862bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6863bf4a254eSmrgrmdir conf$$.dir 2>/dev/null 6864bf4a254eSmrg 6865bf4a254eSmrg 6866bf4a254eSmrg# as_fn_mkdir_p 6867bf4a254eSmrg# ------------- 6868bf4a254eSmrg# Create "$as_dir" as a directory, including parents if necessary. 6869bf4a254eSmrgas_fn_mkdir_p () 6870bf4a254eSmrg{ 6871bf4a254eSmrg 6872bf4a254eSmrg case $as_dir in #( 6873bf4a254eSmrg -*) as_dir=./$as_dir;; 6874bf4a254eSmrg esac 6875bf4a254eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 6876bf4a254eSmrg as_dirs= 6877bf4a254eSmrg while :; do 6878bf4a254eSmrg case $as_dir in #( 6879bf4a254eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6880bf4a254eSmrg *) as_qdir=$as_dir;; 6881bf4a254eSmrg esac 6882bf4a254eSmrg as_dirs="'$as_qdir' $as_dirs" 6883bf4a254eSmrg as_dir=`$as_dirname -- "$as_dir" || 6884bf4a254eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6885bf4a254eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 6886bf4a254eSmrg X"$as_dir" : 'X\(//\)$' \| \ 6887bf4a254eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6888bf4a254eSmrg$as_echo X"$as_dir" | 6889bf4a254eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6890bf4a254eSmrg s//\1/ 6891bf4a254eSmrg q 6892bf4a254eSmrg } 6893bf4a254eSmrg /^X\(\/\/\)[^/].*/{ 6894bf4a254eSmrg s//\1/ 6895bf4a254eSmrg q 6896bf4a254eSmrg } 6897bf4a254eSmrg /^X\(\/\/\)$/{ 6898bf4a254eSmrg s//\1/ 6899bf4a254eSmrg q 6900bf4a254eSmrg } 6901bf4a254eSmrg /^X\(\/\).*/{ 6902bf4a254eSmrg s//\1/ 6903bf4a254eSmrg q 6904bf4a254eSmrg } 6905bf4a254eSmrg s/.*/./; q'` 6906bf4a254eSmrg test -d "$as_dir" && break 6907bf4a254eSmrg done 6908bf4a254eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 6909bf4a254eSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 6910a73027baSmrg 6911a73027baSmrg 6912bf4a254eSmrg} # as_fn_mkdir_p 6913a73027baSmrgif mkdir -p . 2>/dev/null; then 6914bf4a254eSmrg as_mkdir_p='mkdir -p "$as_dir"' 6915a73027baSmrgelse 6916a73027baSmrg test -d ./-p && rmdir ./-p 6917a73027baSmrg as_mkdir_p=false 6918a73027baSmrgfi 6919a73027baSmrg 6920a73027baSmrgif test -x / >/dev/null 2>&1; then 6921a73027baSmrg as_test_x='test -x' 6922a73027baSmrgelse 6923a73027baSmrg if ls -dL / >/dev/null 2>&1; then 6924a73027baSmrg as_ls_L_option=L 6925a73027baSmrg else 6926a73027baSmrg as_ls_L_option= 6927a73027baSmrg fi 6928a73027baSmrg as_test_x=' 6929a73027baSmrg eval sh -c '\'' 6930a73027baSmrg if test -d "$1"; then 6931bf4a254eSmrg test -d "$1/."; 6932a73027baSmrg else 6933bf4a254eSmrg case $1 in #( 6934bf4a254eSmrg -*)set "./$1";; 6935a73027baSmrg esac; 6936bf4a254eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 6937a73027baSmrg ???[sx]*):;;*)false;;esac;fi 6938a73027baSmrg '\'' sh 6939a73027baSmrg ' 6940a73027baSmrgfi 6941a73027baSmrgas_executable_p=$as_test_x 6942a73027baSmrg 6943a73027baSmrg# Sed expression to map a string onto a valid CPP name. 6944a73027baSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6945a73027baSmrg 6946a73027baSmrg# Sed expression to map a string onto a valid variable name. 6947a73027baSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6948a73027baSmrg 6949a73027baSmrg 6950a73027baSmrgexec 6>&1 6951bf4a254eSmrg## ----------------------------------- ## 6952bf4a254eSmrg## Main body of $CONFIG_STATUS script. ## 6953bf4a254eSmrg## ----------------------------------- ## 6954bf4a254eSmrg_ASEOF 6955bf4a254eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6956a73027baSmrg 6957bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6958bf4a254eSmrg# Save the log message, to keep $0 and so on meaningful, and to 6959a73027baSmrg# report actual input values of CONFIG_FILES etc. instead of their 6960a73027baSmrg# values after options handling. 6961a73027baSmrgac_log=" 6962bf4a254eSmrgThis file was extended by xinit $as_me 1.2.1, which was 6963bf4a254eSmrggenerated by GNU Autoconf 2.65. Invocation command line was 6964a73027baSmrg 6965a73027baSmrg CONFIG_FILES = $CONFIG_FILES 6966a73027baSmrg CONFIG_HEADERS = $CONFIG_HEADERS 6967a73027baSmrg CONFIG_LINKS = $CONFIG_LINKS 6968a73027baSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 6969a73027baSmrg $ $0 $@ 6970a73027baSmrg 6971a73027baSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 6972a73027baSmrg" 6973a73027baSmrg 6974a73027baSmrg_ACEOF 6975a73027baSmrg 6976bf4a254eSmrgcase $ac_config_files in *" 6977bf4a254eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 6978bf4a254eSmrgesac 6979bf4a254eSmrg 6980bf4a254eSmrgcase $ac_config_headers in *" 6981bf4a254eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6982bf4a254eSmrgesac 6983bf4a254eSmrg 6984bf4a254eSmrg 6985bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6986a73027baSmrg# Files that config.status was made for. 6987a73027baSmrgconfig_files="$ac_config_files" 6988a73027baSmrgconfig_headers="$ac_config_headers" 6989a73027baSmrgconfig_commands="$ac_config_commands" 6990a73027baSmrg 6991a73027baSmrg_ACEOF 6992a73027baSmrg 6993bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6994a73027baSmrgac_cs_usage="\ 6995bf4a254eSmrg\`$as_me' instantiates files and other configuration actions 6996bf4a254eSmrgfrom templates according to the current configuration. Unless the files 6997bf4a254eSmrgand actions are specified as TAGs, all are instantiated by default. 6998a73027baSmrg 6999bf4a254eSmrgUsage: $0 [OPTION]... [TAG]... 7000a73027baSmrg 7001a73027baSmrg -h, --help print this help, then exit 7002a73027baSmrg -V, --version print version number and configuration settings, then exit 7003bf4a254eSmrg --config print configuration, then exit 7004bf4a254eSmrg -q, --quiet, --silent 7005bf4a254eSmrg do not print progress messages 7006a73027baSmrg -d, --debug don't remove temporary files 7007a73027baSmrg --recheck update $as_me by reconfiguring in the same conditions 7008bf4a254eSmrg --file=FILE[:TEMPLATE] 7009bf4a254eSmrg instantiate the configuration file FILE 7010bf4a254eSmrg --header=FILE[:TEMPLATE] 7011bf4a254eSmrg instantiate the configuration header FILE 7012a73027baSmrg 7013a73027baSmrgConfiguration files: 7014a73027baSmrg$config_files 7015a73027baSmrg 7016a73027baSmrgConfiguration headers: 7017a73027baSmrg$config_headers 7018a73027baSmrg 7019a73027baSmrgConfiguration commands: 7020a73027baSmrg$config_commands 7021a73027baSmrg 7022bf4a254eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 7023a73027baSmrg 7024a73027baSmrg_ACEOF 7025bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7026bf4a254eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7027a73027baSmrgac_cs_version="\\ 7028bf4a254eSmrgxinit config.status 1.2.1 7029bf4a254eSmrgconfigured by $0, generated by GNU Autoconf 2.65, 7030bf4a254eSmrg with options \\"\$ac_cs_config\\" 7031a73027baSmrg 7032bf4a254eSmrgCopyright (C) 2009 Free Software Foundation, Inc. 7033a73027baSmrgThis config.status script is free software; the Free Software Foundation 7034a73027baSmrggives unlimited permission to copy, distribute and modify it." 7035a73027baSmrg 7036a73027baSmrgac_pwd='$ac_pwd' 7037a73027baSmrgsrcdir='$srcdir' 7038a73027baSmrgINSTALL='$INSTALL' 7039a73027baSmrgMKDIR_P='$MKDIR_P' 7040bf4a254eSmrgAWK='$AWK' 7041bf4a254eSmrgtest -n "\$AWK" || AWK=awk 7042a73027baSmrg_ACEOF 7043a73027baSmrg 7044bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7045bf4a254eSmrg# The default lists apply if the user does not specify any file. 7046a73027baSmrgac_need_defaults=: 7047a73027baSmrgwhile test $# != 0 7048a73027baSmrgdo 7049a73027baSmrg case $1 in 7050a73027baSmrg --*=*) 7051a73027baSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 7052a73027baSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7053a73027baSmrg ac_shift=: 7054a73027baSmrg ;; 7055a73027baSmrg *) 7056a73027baSmrg ac_option=$1 7057a73027baSmrg ac_optarg=$2 7058a73027baSmrg ac_shift=shift 7059a73027baSmrg ;; 7060a73027baSmrg esac 7061a73027baSmrg 7062a73027baSmrg case $ac_option in 7063a73027baSmrg # Handling of the options. 7064a73027baSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7065a73027baSmrg ac_cs_recheck=: ;; 7066a73027baSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7067bf4a254eSmrg $as_echo "$ac_cs_version"; exit ;; 7068bf4a254eSmrg --config | --confi | --conf | --con | --co | --c ) 7069bf4a254eSmrg $as_echo "$ac_cs_config"; exit ;; 7070a73027baSmrg --debug | --debu | --deb | --de | --d | -d ) 7071a73027baSmrg debug=: ;; 7072a73027baSmrg --file | --fil | --fi | --f ) 7073a73027baSmrg $ac_shift 7074bf4a254eSmrg case $ac_optarg in 7075bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7076bf4a254eSmrg esac 7077bf4a254eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 7078a73027baSmrg ac_need_defaults=false;; 7079a73027baSmrg --header | --heade | --head | --hea ) 7080a73027baSmrg $ac_shift 7081bf4a254eSmrg case $ac_optarg in 7082bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7083bf4a254eSmrg esac 7084bf4a254eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7085a73027baSmrg ac_need_defaults=false;; 7086a73027baSmrg --he | --h) 7087a73027baSmrg # Conflict between --help and --header 7088bf4a254eSmrg as_fn_error "ambiguous option: \`$1' 7089bf4a254eSmrgTry \`$0 --help' for more information.";; 7090a73027baSmrg --help | --hel | -h ) 7091bf4a254eSmrg $as_echo "$ac_cs_usage"; exit ;; 7092a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7093a73027baSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 7094a73027baSmrg ac_cs_silent=: ;; 7095a73027baSmrg 7096a73027baSmrg # This is an error. 7097bf4a254eSmrg -*) as_fn_error "unrecognized option: \`$1' 7098bf4a254eSmrgTry \`$0 --help' for more information." ;; 7099a73027baSmrg 7100bf4a254eSmrg *) as_fn_append ac_config_targets " $1" 7101a73027baSmrg ac_need_defaults=false ;; 7102a73027baSmrg 7103a73027baSmrg esac 7104a73027baSmrg shift 7105a73027baSmrgdone 7106a73027baSmrg 7107a73027baSmrgac_configure_extra_args= 7108a73027baSmrg 7109a73027baSmrgif $ac_cs_silent; then 7110a73027baSmrg exec 6>/dev/null 7111a73027baSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 7112a73027baSmrgfi 7113a73027baSmrg 7114a73027baSmrg_ACEOF 7115bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7116a73027baSmrgif \$ac_cs_recheck; then 7117bf4a254eSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7118bf4a254eSmrg shift 7119bf4a254eSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7120bf4a254eSmrg CONFIG_SHELL='$SHELL' 7121a73027baSmrg export CONFIG_SHELL 7122bf4a254eSmrg exec "\$@" 7123a73027baSmrgfi 7124a73027baSmrg 7125a73027baSmrg_ACEOF 7126bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7127a73027baSmrgexec 5>>config.log 7128a73027baSmrg{ 7129a73027baSmrg echo 7130a73027baSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7131a73027baSmrg## Running $as_me. ## 7132a73027baSmrg_ASBOX 7133bf4a254eSmrg $as_echo "$ac_log" 7134a73027baSmrg} >&5 7135a73027baSmrg 7136a73027baSmrg_ACEOF 7137bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7138a73027baSmrg# 7139a73027baSmrg# INIT-COMMANDS 7140a73027baSmrg# 7141a73027baSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 7142a73027baSmrg 7143a73027baSmrg_ACEOF 7144a73027baSmrg 7145bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7146a73027baSmrg 7147a73027baSmrg# Handling of arguments. 7148a73027baSmrgfor ac_config_target in $ac_config_targets 7149a73027baSmrgdo 7150a73027baSmrg case $ac_config_target in 7151a73027baSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 7152bf4a254eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7153a73027baSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7154a73027baSmrg 7155bf4a254eSmrg *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7156a73027baSmrg esac 7157a73027baSmrgdone 7158a73027baSmrg 7159a73027baSmrg 7160a73027baSmrg# If the user did not use the arguments to specify the items to instantiate, 7161a73027baSmrg# then the envvar interface is used. Set only those that are not. 7162a73027baSmrg# We use the long form for the default assignment because of an extremely 7163a73027baSmrg# bizarre bug on SunOS 4.1.3. 7164a73027baSmrgif $ac_need_defaults; then 7165a73027baSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7166a73027baSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7167a73027baSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7168a73027baSmrgfi 7169a73027baSmrg 7170a73027baSmrg# Have a temporary directory for convenience. Make it in the build tree 7171a73027baSmrg# simply because there is no reason against having it here, and in addition, 7172a73027baSmrg# creating and moving files from /tmp can sometimes cause problems. 7173a73027baSmrg# Hook for its removal unless debugging. 7174a73027baSmrg# Note that there is a small window in which the directory will not be cleaned: 7175a73027baSmrg# after its creation but before its name has been assigned to `$tmp'. 7176a73027baSmrg$debug || 7177a73027baSmrg{ 7178a73027baSmrg tmp= 7179a73027baSmrg trap 'exit_status=$? 7180a73027baSmrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 7181a73027baSmrg' 0 7182bf4a254eSmrg trap 'as_fn_exit 1' 1 2 13 15 7183a73027baSmrg} 7184a73027baSmrg# Create a (secure) tmp directory for tmp files. 7185a73027baSmrg 7186a73027baSmrg{ 7187a73027baSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7188a73027baSmrg test -n "$tmp" && test -d "$tmp" 7189a73027baSmrg} || 7190a73027baSmrg{ 7191a73027baSmrg tmp=./conf$$-$RANDOM 7192a73027baSmrg (umask 077 && mkdir "$tmp") 7193bf4a254eSmrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 7194a73027baSmrg 7195bf4a254eSmrg# Set up the scripts for CONFIG_FILES section. 7196bf4a254eSmrg# No need to generate them if there are no CONFIG_FILES. 7197bf4a254eSmrg# This happens for instance with `./config.status config.h'. 7198a73027baSmrgif test -n "$CONFIG_FILES"; then 7199a73027baSmrg 7200a73027baSmrg 7201bf4a254eSmrgac_cr=`echo X | tr X '\015'` 7202bf4a254eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 7203bf4a254eSmrg# But we know of no other shell where ac_cr would be empty at this 7204bf4a254eSmrg# point, so we can use a bashism as a fallback. 7205bf4a254eSmrgif test "x$ac_cr" = x; then 7206bf4a254eSmrg eval ac_cr=\$\'\\r\' 7207bf4a254eSmrgfi 7208bf4a254eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7209bf4a254eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7210bf4a254eSmrg ac_cs_awk_cr='\r' 7211bf4a254eSmrgelse 7212bf4a254eSmrg ac_cs_awk_cr=$ac_cr 7213a73027baSmrgfi 7214a73027baSmrg 7215bf4a254eSmrgecho 'BEGIN {' >"$tmp/subs1.awk" && 7216a73027baSmrg_ACEOF 7217a73027baSmrg 7218a73027baSmrg 7219bf4a254eSmrg{ 7220bf4a254eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 7221bf4a254eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7222bf4a254eSmrg echo "_ACEOF" 7223bf4a254eSmrg} >conf$$subs.sh || 7224bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7225bf4a254eSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 7226a73027baSmrgac_delim='%!_!# ' 7227a73027baSmrgfor ac_last_try in false false false false false :; do 7228bf4a254eSmrg . ./conf$$subs.sh || 7229bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7230a73027baSmrg 7231bf4a254eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7232bf4a254eSmrg if test $ac_delim_n = $ac_delim_num; then 7233a73027baSmrg break 7234a73027baSmrg elif $ac_last_try; then 7235bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7236a73027baSmrg else 7237a73027baSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7238a73027baSmrg fi 7239a73027baSmrgdone 7240bf4a254eSmrgrm -f conf$$subs.sh 7241bf4a254eSmrg 7242bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7243bf4a254eSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 7244bf4a254eSmrg_ACEOF 7245bf4a254eSmrgsed -n ' 7246bf4a254eSmrgh 7247bf4a254eSmrgs/^/S["/; s/!.*/"]=/ 7248bf4a254eSmrgp 7249bf4a254eSmrgg 7250bf4a254eSmrgs/^[^!]*!// 7251bf4a254eSmrg:repl 7252bf4a254eSmrgt repl 7253bf4a254eSmrgs/'"$ac_delim"'$// 7254bf4a254eSmrgt delim 7255bf4a254eSmrg:nl 7256bf4a254eSmrgh 7257bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 7258bf4a254eSmrgt more1 7259bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7260bf4a254eSmrgp 7261bf4a254eSmrgn 7262bf4a254eSmrgb repl 7263bf4a254eSmrg:more1 7264bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7265bf4a254eSmrgp 7266bf4a254eSmrgg 7267bf4a254eSmrgs/.\{148\}// 7268bf4a254eSmrgt nl 7269bf4a254eSmrg:delim 7270bf4a254eSmrgh 7271bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 7272bf4a254eSmrgt more2 7273bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 7274bf4a254eSmrgp 7275bf4a254eSmrgb 7276bf4a254eSmrg:more2 7277bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7278bf4a254eSmrgp 7279bf4a254eSmrgg 7280bf4a254eSmrgs/.\{148\}// 7281bf4a254eSmrgt delim 7282bf4a254eSmrg' <conf$$subs.awk | sed ' 7283bf4a254eSmrg/^[^""]/{ 7284bf4a254eSmrg N 7285bf4a254eSmrg s/\n// 7286bf4a254eSmrg} 7287bf4a254eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 7288bf4a254eSmrgrm -f conf$$subs.awk 7289bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7290bf4a254eSmrg_ACAWK 7291bf4a254eSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 7292bf4a254eSmrg for (key in S) S_is_set[key] = 1 7293bf4a254eSmrg FS = "" 7294a73027baSmrg 7295bf4a254eSmrg} 7296bf4a254eSmrg{ 7297bf4a254eSmrg line = $ 0 7298bf4a254eSmrg nfields = split(line, field, "@") 7299bf4a254eSmrg substed = 0 7300bf4a254eSmrg len = length(field[1]) 7301bf4a254eSmrg for (i = 2; i < nfields; i++) { 7302bf4a254eSmrg key = field[i] 7303bf4a254eSmrg keylen = length(key) 7304bf4a254eSmrg if (S_is_set[key]) { 7305bf4a254eSmrg value = S[key] 7306bf4a254eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7307bf4a254eSmrg len += length(value) + length(field[++i]) 7308bf4a254eSmrg substed = 1 7309bf4a254eSmrg } else 7310bf4a254eSmrg len += 1 + keylen 7311bf4a254eSmrg } 7312bf4a254eSmrg 7313bf4a254eSmrg print line 7314bf4a254eSmrg} 7315a73027baSmrg 7316bf4a254eSmrg_ACAWK 7317a73027baSmrg_ACEOF 7318bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7319bf4a254eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7320bf4a254eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7321bf4a254eSmrgelse 7322bf4a254eSmrg cat 7323bf4a254eSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 7324bf4a254eSmrg || as_fn_error "could not setup config files machinery" "$LINENO" 5 7325a73027baSmrg_ACEOF 7326a73027baSmrg 7327a73027baSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 7328a73027baSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7329a73027baSmrg# trailing colons and then remove the whole line if VPATH becomes empty 7330a73027baSmrg# (actually we leave an empty line to preserve line numbers). 7331a73027baSmrgif test "x$srcdir" = x.; then 7332a73027baSmrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7333a73027baSmrgs/:*\$(srcdir):*/:/ 7334a73027baSmrgs/:*\${srcdir}:*/:/ 7335a73027baSmrgs/:*@srcdir@:*/:/ 7336a73027baSmrgs/^\([^=]*=[ ]*\):*/\1/ 7337a73027baSmrgs/:*$// 7338a73027baSmrgs/^[^=]*=[ ]*$// 7339a73027baSmrg}' 7340a73027baSmrgfi 7341a73027baSmrg 7342bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7343a73027baSmrgfi # test -n "$CONFIG_FILES" 7344a73027baSmrg 7345bf4a254eSmrg# Set up the scripts for CONFIG_HEADERS section. 7346bf4a254eSmrg# No need to generate them if there are no CONFIG_HEADERS. 7347bf4a254eSmrg# This happens for instance with `./config.status Makefile'. 7348bf4a254eSmrgif test -n "$CONFIG_HEADERS"; then 7349bf4a254eSmrgcat >"$tmp/defines.awk" <<\_ACAWK || 7350bf4a254eSmrgBEGIN { 7351bf4a254eSmrg_ACEOF 7352bf4a254eSmrg 7353bf4a254eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 7354bf4a254eSmrg# here-document in config.status, that substitutes the proper values into 7355bf4a254eSmrg# config.h.in to produce config.h. 7356bf4a254eSmrg 7357bf4a254eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 7358bf4a254eSmrg# handling of long lines. 7359bf4a254eSmrgac_delim='%!_!# ' 7360bf4a254eSmrgfor ac_last_try in false false :; do 7361bf4a254eSmrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 7362bf4a254eSmrg if test -z "$ac_t"; then 7363bf4a254eSmrg break 7364bf4a254eSmrg elif $ac_last_try; then 7365bf4a254eSmrg as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 7366bf4a254eSmrg else 7367bf4a254eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7368bf4a254eSmrg fi 7369bf4a254eSmrgdone 7370bf4a254eSmrg 7371bf4a254eSmrg# For the awk script, D is an array of macro values keyed by name, 7372bf4a254eSmrg# likewise P contains macro parameters if any. Preserve backslash 7373bf4a254eSmrg# newline sequences. 7374bf4a254eSmrg 7375bf4a254eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7376bf4a254eSmrgsed -n ' 7377bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 7378bf4a254eSmrgt rset 7379bf4a254eSmrg:rset 7380bf4a254eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 7381bf4a254eSmrgt def 7382bf4a254eSmrgd 7383bf4a254eSmrg:def 7384bf4a254eSmrgs/\\$// 7385bf4a254eSmrgt bsnl 7386bf4a254eSmrgs/["\\]/\\&/g 7387bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7388bf4a254eSmrgD["\1"]=" \3"/p 7389bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7390bf4a254eSmrgd 7391bf4a254eSmrg:bsnl 7392bf4a254eSmrgs/["\\]/\\&/g 7393bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7394bf4a254eSmrgD["\1"]=" \3\\\\\\n"\\/p 7395bf4a254eSmrgt cont 7396bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7397bf4a254eSmrgt cont 7398bf4a254eSmrgd 7399bf4a254eSmrg:cont 7400bf4a254eSmrgn 7401bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 7402bf4a254eSmrgt clear 7403bf4a254eSmrg:clear 7404bf4a254eSmrgs/\\$// 7405bf4a254eSmrgt bsnlc 7406bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 7407bf4a254eSmrgd 7408bf4a254eSmrg:bsnlc 7409bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7410bf4a254eSmrgb cont 7411bf4a254eSmrg' <confdefs.h | sed ' 7412bf4a254eSmrgs/'"$ac_delim"'/"\\\ 7413bf4a254eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 7414bf4a254eSmrg 7415bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7416bf4a254eSmrg for (key in D) D_is_set[key] = 1 7417bf4a254eSmrg FS = "" 7418bf4a254eSmrg} 7419bf4a254eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7420bf4a254eSmrg line = \$ 0 7421bf4a254eSmrg split(line, arg, " ") 7422bf4a254eSmrg if (arg[1] == "#") { 7423bf4a254eSmrg defundef = arg[2] 7424bf4a254eSmrg mac1 = arg[3] 7425bf4a254eSmrg } else { 7426bf4a254eSmrg defundef = substr(arg[1], 2) 7427bf4a254eSmrg mac1 = arg[2] 7428bf4a254eSmrg } 7429bf4a254eSmrg split(mac1, mac2, "(") #) 7430bf4a254eSmrg macro = mac2[1] 7431bf4a254eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 7432bf4a254eSmrg if (D_is_set[macro]) { 7433bf4a254eSmrg # Preserve the white space surrounding the "#". 7434bf4a254eSmrg print prefix "define", macro P[macro] D[macro] 7435bf4a254eSmrg next 7436bf4a254eSmrg } else { 7437bf4a254eSmrg # Replace #undef with comments. This is necessary, for example, 7438bf4a254eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 7439bf4a254eSmrg # on some systems where configure will not decide to define it. 7440bf4a254eSmrg if (defundef == "undef") { 7441bf4a254eSmrg print "/*", prefix defundef, macro, "*/" 7442bf4a254eSmrg next 7443bf4a254eSmrg } 7444bf4a254eSmrg } 7445bf4a254eSmrg} 7446bf4a254eSmrg{ print } 7447bf4a254eSmrg_ACAWK 7448bf4a254eSmrg_ACEOF 7449bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7450bf4a254eSmrg as_fn_error "could not setup config headers machinery" "$LINENO" 5 7451bf4a254eSmrgfi # test -n "$CONFIG_HEADERS" 7452bf4a254eSmrg 7453a73027baSmrg 7454bf4a254eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7455bf4a254eSmrgshift 7456bf4a254eSmrgfor ac_tag 7457a73027baSmrgdo 7458a73027baSmrg case $ac_tag in 7459a73027baSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 7460a73027baSmrg esac 7461a73027baSmrg case $ac_mode$ac_tag in 7462a73027baSmrg :[FHL]*:*);; 7463bf4a254eSmrg :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 7464a73027baSmrg :[FH]-) ac_tag=-:-;; 7465a73027baSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7466a73027baSmrg esac 7467a73027baSmrg ac_save_IFS=$IFS 7468a73027baSmrg IFS=: 7469a73027baSmrg set x $ac_tag 7470a73027baSmrg IFS=$ac_save_IFS 7471a73027baSmrg shift 7472a73027baSmrg ac_file=$1 7473a73027baSmrg shift 7474a73027baSmrg 7475a73027baSmrg case $ac_mode in 7476a73027baSmrg :L) ac_source=$1;; 7477a73027baSmrg :[FH]) 7478a73027baSmrg ac_file_inputs= 7479a73027baSmrg for ac_f 7480a73027baSmrg do 7481a73027baSmrg case $ac_f in 7482a73027baSmrg -) ac_f="$tmp/stdin";; 7483a73027baSmrg *) # Look for the file first in the build tree, then in the source tree 7484a73027baSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 7485a73027baSmrg # because $ac_f cannot contain `:'. 7486a73027baSmrg test -f "$ac_f" || 7487a73027baSmrg case $ac_f in 7488a73027baSmrg [\\/$]*) false;; 7489a73027baSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7490a73027baSmrg esac || 7491bf4a254eSmrg as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7492a73027baSmrg esac 7493bf4a254eSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7494bf4a254eSmrg as_fn_append ac_file_inputs " '$ac_f'" 7495a73027baSmrg done 7496a73027baSmrg 7497a73027baSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 7498a73027baSmrg # use $as_me), people would be surprised to read: 7499a73027baSmrg # /* config.h. Generated by config.status. */ 7500bf4a254eSmrg configure_input='Generated from '` 7501bf4a254eSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7502bf4a254eSmrg `' by configure.' 7503a73027baSmrg if test x"$ac_file" != x-; then 7504a73027baSmrg configure_input="$ac_file. $configure_input" 7505bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7506bf4a254eSmrg$as_echo "$as_me: creating $ac_file" >&6;} 7507a73027baSmrg fi 7508bf4a254eSmrg # Neutralize special characters interpreted by sed in replacement strings. 7509bf4a254eSmrg case $configure_input in #( 7510bf4a254eSmrg *\&* | *\|* | *\\* ) 7511bf4a254eSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 7512bf4a254eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 7513bf4a254eSmrg *) ac_sed_conf_input=$configure_input;; 7514bf4a254eSmrg esac 7515a73027baSmrg 7516a73027baSmrg case $ac_tag in 7517bf4a254eSmrg *:-:* | *:-) cat >"$tmp/stdin" \ 7518bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 7519a73027baSmrg esac 7520a73027baSmrg ;; 7521a73027baSmrg esac 7522a73027baSmrg 7523a73027baSmrg ac_dir=`$as_dirname -- "$ac_file" || 7524a73027baSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7525a73027baSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 7526a73027baSmrg X"$ac_file" : 'X\(//\)$' \| \ 7527a73027baSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7528bf4a254eSmrg$as_echo X"$ac_file" | 7529a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7530a73027baSmrg s//\1/ 7531a73027baSmrg q 7532a73027baSmrg } 7533a73027baSmrg /^X\(\/\/\)[^/].*/{ 7534a73027baSmrg s//\1/ 7535a73027baSmrg q 7536a73027baSmrg } 7537a73027baSmrg /^X\(\/\/\)$/{ 7538a73027baSmrg s//\1/ 7539a73027baSmrg q 7540a73027baSmrg } 7541a73027baSmrg /^X\(\/\).*/{ 7542a73027baSmrg s//\1/ 7543a73027baSmrg q 7544a73027baSmrg } 7545a73027baSmrg s/.*/./; q'` 7546bf4a254eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 7547a73027baSmrg ac_builddir=. 7548a73027baSmrg 7549a73027baSmrgcase "$ac_dir" in 7550a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7551a73027baSmrg*) 7552bf4a254eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7553a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 7554bf4a254eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7555a73027baSmrg case $ac_top_builddir_sub in 7556a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7557a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7558a73027baSmrg esac ;; 7559a73027baSmrgesac 7560a73027baSmrgac_abs_top_builddir=$ac_pwd 7561a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 7562a73027baSmrg# for backward compatibility: 7563a73027baSmrgac_top_builddir=$ac_top_build_prefix 7564a73027baSmrg 7565a73027baSmrgcase $srcdir in 7566a73027baSmrg .) # We are building in place. 7567a73027baSmrg ac_srcdir=. 7568a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 7569a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 7570a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 7571a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 7572a73027baSmrg ac_top_srcdir=$srcdir 7573a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 7574a73027baSmrg *) # Relative name. 7575a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7576a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 7577a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7578a73027baSmrgesac 7579a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7580a73027baSmrg 7581a73027baSmrg 7582a73027baSmrg case $ac_mode in 7583a73027baSmrg :F) 7584a73027baSmrg # 7585a73027baSmrg # CONFIG_FILE 7586a73027baSmrg # 7587a73027baSmrg 7588a73027baSmrg case $INSTALL in 7589a73027baSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7590a73027baSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7591a73027baSmrg esac 7592a73027baSmrg ac_MKDIR_P=$MKDIR_P 7593a73027baSmrg case $MKDIR_P in 7594a73027baSmrg [\\/$]* | ?:[\\/]* ) ;; 7595a73027baSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 7596a73027baSmrg esac 7597a73027baSmrg_ACEOF 7598a73027baSmrg 7599bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7600a73027baSmrg# If the template does not know about datarootdir, expand it. 7601a73027baSmrg# FIXME: This hack should be removed a few years after 2.60. 7602a73027baSmrgac_datarootdir_hack=; ac_datarootdir_seen= 7603bf4a254eSmrgac_sed_dataroot=' 7604bf4a254eSmrg/datarootdir/ { 7605a73027baSmrg p 7606a73027baSmrg q 7607a73027baSmrg} 7608a73027baSmrg/@datadir@/p 7609a73027baSmrg/@docdir@/p 7610a73027baSmrg/@infodir@/p 7611a73027baSmrg/@localedir@/p 7612bf4a254eSmrg/@mandir@/p' 7613bf4a254eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7614a73027baSmrg*datarootdir*) ac_datarootdir_seen=yes;; 7615a73027baSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7616bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7617bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7618a73027baSmrg_ACEOF 7619bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7620a73027baSmrg ac_datarootdir_hack=' 7621a73027baSmrg s&@datadir@&$datadir&g 7622a73027baSmrg s&@docdir@&$docdir&g 7623a73027baSmrg s&@infodir@&$infodir&g 7624a73027baSmrg s&@localedir@&$localedir&g 7625a73027baSmrg s&@mandir@&$mandir&g 7626bf4a254eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 7627a73027baSmrgesac 7628a73027baSmrg_ACEOF 7629a73027baSmrg 7630a73027baSmrg# Neutralize VPATH when `$srcdir' = `.'. 7631a73027baSmrg# Shell code in configure.ac might set extrasub. 7632a73027baSmrg# FIXME: do we really want to maintain this feature? 7633bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7634bf4a254eSmrgac_sed_extra="$ac_vpsub 7635a73027baSmrg$extrasub 7636a73027baSmrg_ACEOF 7637bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7638a73027baSmrg:t 7639a73027baSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7640bf4a254eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 7641a73027baSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 7642bf4a254eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 7643a73027baSmrgs&@srcdir@&$ac_srcdir&;t t 7644a73027baSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 7645a73027baSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 7646a73027baSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7647a73027baSmrgs&@builddir@&$ac_builddir&;t t 7648a73027baSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 7649a73027baSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7650a73027baSmrgs&@INSTALL@&$ac_INSTALL&;t t 7651a73027baSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 7652a73027baSmrg$ac_datarootdir_hack 7653bf4a254eSmrg" 7654bf4a254eSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 7655bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 7656a73027baSmrg 7657a73027baSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7658a73027baSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7659a73027baSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 7660bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7661a73027baSmrgwhich seems to be undefined. Please make sure it is defined." >&5 7662bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7663a73027baSmrgwhich seems to be undefined. Please make sure it is defined." >&2;} 7664a73027baSmrg 7665a73027baSmrg rm -f "$tmp/stdin" 7666a73027baSmrg case $ac_file in 7667bf4a254eSmrg -) cat "$tmp/out" && rm -f "$tmp/out";; 7668bf4a254eSmrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 7669bf4a254eSmrg esac \ 7670bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 7671a73027baSmrg ;; 7672a73027baSmrg :H) 7673a73027baSmrg # 7674a73027baSmrg # CONFIG_HEADER 7675a73027baSmrg # 7676a73027baSmrg if test x"$ac_file" != x-; then 7677bf4a254eSmrg { 7678bf4a254eSmrg $as_echo "/* $configure_input */" \ 7679bf4a254eSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 7680bf4a254eSmrg } >"$tmp/config.h" \ 7681bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 7682bf4a254eSmrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 7683bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7684bf4a254eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 7685a73027baSmrg else 7686bf4a254eSmrg rm -f "$ac_file" 7687bf4a254eSmrg mv "$tmp/config.h" "$ac_file" \ 7688bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 7689a73027baSmrg fi 7690a73027baSmrg else 7691bf4a254eSmrg $as_echo "/* $configure_input */" \ 7692bf4a254eSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 7693bf4a254eSmrg || as_fn_error "could not create -" "$LINENO" 5 7694a73027baSmrg fi 7695bf4a254eSmrg# Compute "$ac_file"'s index in $config_headers. 7696bf4a254eSmrg_am_arg="$ac_file" 7697a73027baSmrg_am_stamp_count=1 7698a73027baSmrgfor _am_header in $config_headers :; do 7699a73027baSmrg case $_am_header in 7700bf4a254eSmrg $_am_arg | $_am_arg:* ) 7701a73027baSmrg break ;; 7702a73027baSmrg * ) 7703a73027baSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7704a73027baSmrg esac 7705a73027baSmrgdone 7706bf4a254eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 7707bf4a254eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7708bf4a254eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 7709bf4a254eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 7710bf4a254eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 7711bf4a254eSmrg$as_echo X"$_am_arg" | 7712a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7713a73027baSmrg s//\1/ 7714a73027baSmrg q 7715a73027baSmrg } 7716a73027baSmrg /^X\(\/\/\)[^/].*/{ 7717a73027baSmrg s//\1/ 7718a73027baSmrg q 7719a73027baSmrg } 7720a73027baSmrg /^X\(\/\/\)$/{ 7721a73027baSmrg s//\1/ 7722a73027baSmrg q 7723a73027baSmrg } 7724a73027baSmrg /^X\(\/\).*/{ 7725a73027baSmrg s//\1/ 7726a73027baSmrg q 7727a73027baSmrg } 7728a73027baSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 7729a73027baSmrg ;; 7730a73027baSmrg 7731bf4a254eSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 7732bf4a254eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 7733a73027baSmrg ;; 7734a73027baSmrg esac 7735a73027baSmrg 7736a73027baSmrg 7737a73027baSmrg case $ac_file$ac_mode in 7738bf4a254eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 7739bf4a254eSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 7740bf4a254eSmrg # are listed without --file. Let's play safe and only enable the eval 7741bf4a254eSmrg # if we detect the quoting. 7742bf4a254eSmrg case $CONFIG_FILES in 7743bf4a254eSmrg *\'*) eval set x "$CONFIG_FILES" ;; 7744bf4a254eSmrg *) set x $CONFIG_FILES ;; 7745bf4a254eSmrg esac 7746bf4a254eSmrg shift 7747bf4a254eSmrg for mf 7748bf4a254eSmrg do 7749bf4a254eSmrg # Strip MF so we end up with the name of the file. 7750bf4a254eSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 7751bf4a254eSmrg # Check whether this is an Automake generated Makefile or not. 7752bf4a254eSmrg # We used to match only the files named `Makefile.in', but 7753bf4a254eSmrg # some people rename them; so instead we look at the file content. 7754bf4a254eSmrg # Grep'ing the first line is not enough: some people post-process 7755bf4a254eSmrg # each Makefile.in and add a new line on top of each file to say so. 7756bf4a254eSmrg # Grep'ing the whole file is not good either: AIX grep has a line 7757bf4a254eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 7758bf4a254eSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 7759bf4a254eSmrg dirpart=`$as_dirname -- "$mf" || 7760a73027baSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7761a73027baSmrg X"$mf" : 'X\(//\)[^/]' \| \ 7762a73027baSmrg X"$mf" : 'X\(//\)$' \| \ 7763a73027baSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7764bf4a254eSmrg$as_echo X"$mf" | 7765a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7766a73027baSmrg s//\1/ 7767a73027baSmrg q 7768a73027baSmrg } 7769a73027baSmrg /^X\(\/\/\)[^/].*/{ 7770a73027baSmrg s//\1/ 7771a73027baSmrg q 7772a73027baSmrg } 7773a73027baSmrg /^X\(\/\/\)$/{ 7774a73027baSmrg s//\1/ 7775a73027baSmrg q 7776a73027baSmrg } 7777a73027baSmrg /^X\(\/\).*/{ 7778a73027baSmrg s//\1/ 7779a73027baSmrg q 7780a73027baSmrg } 7781a73027baSmrg s/.*/./; q'` 7782bf4a254eSmrg else 7783bf4a254eSmrg continue 7784bf4a254eSmrg fi 7785bf4a254eSmrg # Extract the definition of DEPDIR, am__include, and am__quote 7786bf4a254eSmrg # from the Makefile without running `make'. 7787bf4a254eSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7788bf4a254eSmrg test -z "$DEPDIR" && continue 7789bf4a254eSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 7790bf4a254eSmrg test -z "am__include" && continue 7791bf4a254eSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7792bf4a254eSmrg # When using ansi2knr, U may be empty or an underscore; expand it 7793bf4a254eSmrg U=`sed -n 's/^U = //p' < "$mf"` 7794bf4a254eSmrg # Find all dependency output files, they are included files with 7795bf4a254eSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 7796bf4a254eSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 7797bf4a254eSmrg # expansion. 7798bf4a254eSmrg for file in `sed -n " 7799bf4a254eSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7800bf4a254eSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7801bf4a254eSmrg # Make sure the directory exists. 7802bf4a254eSmrg test -f "$dirpart/$file" && continue 7803bf4a254eSmrg fdir=`$as_dirname -- "$file" || 7804a73027baSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7805a73027baSmrg X"$file" : 'X\(//\)[^/]' \| \ 7806a73027baSmrg X"$file" : 'X\(//\)$' \| \ 7807a73027baSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 7808bf4a254eSmrg$as_echo X"$file" | 7809a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7810a73027baSmrg s//\1/ 7811a73027baSmrg q 7812a73027baSmrg } 7813a73027baSmrg /^X\(\/\/\)[^/].*/{ 7814a73027baSmrg s//\1/ 7815a73027baSmrg q 7816a73027baSmrg } 7817a73027baSmrg /^X\(\/\/\)$/{ 7818a73027baSmrg s//\1/ 7819a73027baSmrg q 7820a73027baSmrg } 7821a73027baSmrg /^X\(\/\).*/{ 7822a73027baSmrg s//\1/ 7823a73027baSmrg q 7824a73027baSmrg } 7825a73027baSmrg s/.*/./; q'` 7826bf4a254eSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 7827bf4a254eSmrg # echo "creating $dirpart/$file" 7828bf4a254eSmrg echo '# dummy' > "$dirpart/$file" 7829a73027baSmrg done 7830a73027baSmrg done 7831bf4a254eSmrg} 7832a73027baSmrg ;; 7833a73027baSmrg 7834a73027baSmrg esac 7835a73027baSmrgdone # for ac_tag 7836a73027baSmrg 7837a73027baSmrg 7838bf4a254eSmrgas_fn_exit 0 7839a73027baSmrg_ACEOF 7840a73027baSmrgac_clean_files=$ac_clean_files_save 7841a73027baSmrg 7842bf4a254eSmrgtest $ac_write_fail = 0 || 7843bf4a254eSmrg as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 7844bf4a254eSmrg 7845a73027baSmrg 7846a73027baSmrg# configure is writing to config.log, and then calls config.status. 7847a73027baSmrg# config.status does its own redirection, appending to config.log. 7848a73027baSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 7849a73027baSmrg# by configure, so config.status won't be able to write to it; its 7850a73027baSmrg# output is simply discarded. So we exec the FD to /dev/null, 7851a73027baSmrg# effectively closing config.log, so it can be properly (re)opened and 7852a73027baSmrg# appended to by config.status. When coming back to configure, we 7853a73027baSmrg# need to make the FD available again. 7854a73027baSmrgif test "$no_create" != yes; then 7855a73027baSmrg ac_cs_success=: 7856a73027baSmrg ac_config_status_args= 7857a73027baSmrg test "$silent" = yes && 7858a73027baSmrg ac_config_status_args="$ac_config_status_args --quiet" 7859a73027baSmrg exec 5>/dev/null 7860a73027baSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7861a73027baSmrg exec 5>>config.log 7862a73027baSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7863a73027baSmrg # would make configure fail if this is the last instruction. 7864bf4a254eSmrg $ac_cs_success || as_fn_exit $? 7865bf4a254eSmrgfi 7866bf4a254eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7867bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7868bf4a254eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7869a73027baSmrgfi 7870a73027baSmrg 7871a73027baSmrgac_config_files="$ac_config_files privileged_startx/Makefile" 7872a73027baSmrg 7873a73027baSmrgcat >confcache <<\_ACEOF 7874a73027baSmrg# This file is a shell script that caches the results of configure 7875a73027baSmrg# tests run on this system so they can be shared between configure 7876a73027baSmrg# scripts and configure runs, see configure's option --config-cache. 7877a73027baSmrg# It is not useful on other systems. If it contains results you don't 7878a73027baSmrg# want to keep, you may remove or edit it. 7879a73027baSmrg# 7880a73027baSmrg# config.status only pays attention to the cache file if you give it 7881a73027baSmrg# the --recheck option to rerun configure. 7882a73027baSmrg# 7883a73027baSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 7884a73027baSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 7885a73027baSmrg# following values. 7886a73027baSmrg 7887a73027baSmrg_ACEOF 7888a73027baSmrg 7889a73027baSmrg# The following way of writing the cache mishandles newlines in values, 7890a73027baSmrg# but we know of no workaround that is simple, portable, and efficient. 7891a73027baSmrg# So, we kill variables containing newlines. 7892a73027baSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 7893a73027baSmrg# and sets the high bit in the cache file unless we assign to the vars. 7894a73027baSmrg( 7895a73027baSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7896a73027baSmrg eval ac_val=\$$ac_var 7897a73027baSmrg case $ac_val in #( 7898a73027baSmrg *${as_nl}*) 7899a73027baSmrg case $ac_var in #( 7900bf4a254eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7901bf4a254eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7902a73027baSmrg esac 7903a73027baSmrg case $ac_var in #( 7904a73027baSmrg _ | IFS | as_nl) ;; #( 7905bf4a254eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7906bf4a254eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 7907a73027baSmrg esac ;; 7908a73027baSmrg esac 7909a73027baSmrg done 7910a73027baSmrg 7911a73027baSmrg (set) 2>&1 | 7912a73027baSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 7913a73027baSmrg *${as_nl}ac_space=\ *) 7914bf4a254eSmrg # `set' does not quote correctly, so add quotes: double-quote 7915bf4a254eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 7916a73027baSmrg sed -n \ 7917a73027baSmrg "s/'/'\\\\''/g; 7918a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7919a73027baSmrg ;; #( 7920a73027baSmrg *) 7921a73027baSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 7922a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7923a73027baSmrg ;; 7924a73027baSmrg esac | 7925a73027baSmrg sort 7926a73027baSmrg) | 7927a73027baSmrg sed ' 7928a73027baSmrg /^ac_cv_env_/b end 7929a73027baSmrg t clear 7930a73027baSmrg :clear 7931a73027baSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7932a73027baSmrg t end 7933a73027baSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7934a73027baSmrg :end' >>confcache 7935a73027baSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7936a73027baSmrg if test -w "$cache_file"; then 7937a73027baSmrg test "x$cache_file" != "x/dev/null" && 7938bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7939bf4a254eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 7940a73027baSmrg cat confcache >$cache_file 7941a73027baSmrg else 7942bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7943bf4a254eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7944a73027baSmrg fi 7945a73027baSmrgfi 7946a73027baSmrgrm -f confcache 7947a73027baSmrg 7948a73027baSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 7949a73027baSmrg# Let make expand exec_prefix. 7950a73027baSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7951a73027baSmrg 7952a73027baSmrgDEFS=-DHAVE_CONFIG_H 7953a73027baSmrg 7954a73027baSmrgac_libobjs= 7955a73027baSmrgac_ltlibobjs= 7956a73027baSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7957a73027baSmrg # 1. Remove the extension, and $U if already installed. 7958a73027baSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7959bf4a254eSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7960a73027baSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7961a73027baSmrg # will be set to the directory where LIBOBJS objects are built. 7962bf4a254eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7963bf4a254eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7964a73027baSmrgdone 7965a73027baSmrgLIBOBJS=$ac_libobjs 7966a73027baSmrg 7967a73027baSmrgLTLIBOBJS=$ac_ltlibobjs 7968a73027baSmrg 7969a73027baSmrg 7970bf4a254eSmrg if test -n "$EXEEXT"; then 7971bf4a254eSmrg am__EXEEXT_TRUE= 7972bf4a254eSmrg am__EXEEXT_FALSE='#' 7973bf4a254eSmrgelse 7974bf4a254eSmrg am__EXEEXT_TRUE='#' 7975bf4a254eSmrg am__EXEEXT_FALSE= 7976bf4a254eSmrgfi 7977bf4a254eSmrg 7978a73027baSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 7979bf4a254eSmrg as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 7980bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 7981a73027baSmrgfi 7982a73027baSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 7983bf4a254eSmrg as_fn_error "conditional \"AMDEP\" was never defined. 7984bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 7985bf4a254eSmrgfi 7986bf4a254eSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 7987bf4a254eSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 7988bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 7989a73027baSmrgfi 7990a73027baSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 7991bf4a254eSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 7992bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 7993a73027baSmrgfi 7994a73027baSmrgif test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 7995bf4a254eSmrg as_fn_error "conditional \"LAUNCHD\" was never defined. 7996bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 7997a73027baSmrgfi 799872e81212Smrgif test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then 7999bf4a254eSmrg as_fn_error "conditional \"TIGER_LAUNCHD\" was never defined. 8000bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 8001bf4a254eSmrgfi 8002bf4a254eSmrgif test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then 8003bf4a254eSmrg as_fn_error "conditional \"am__EXEEXT\" was never defined. 8004bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 800572e81212Smrgfi 8006a73027baSmrg 8007a73027baSmrg: ${CONFIG_STATUS=./config.status} 8008bf4a254eSmrgac_write_fail=0 8009a73027baSmrgac_clean_files_save=$ac_clean_files 8010a73027baSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 8011bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8012bf4a254eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8013bf4a254eSmrgas_write_fail=0 8014bf4a254eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8015a73027baSmrg#! $SHELL 8016a73027baSmrg# Generated by $as_me. 8017a73027baSmrg# Run this file to recreate the current configuration. 8018a73027baSmrg# Compiler output produced by configure, useful for debugging 8019a73027baSmrg# configure, is in config.log if it exists. 8020a73027baSmrg 8021a73027baSmrgdebug=false 8022a73027baSmrgac_cs_recheck=false 8023a73027baSmrgac_cs_silent=false 8024a73027baSmrg 8025bf4a254eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 8026bf4a254eSmrgexport SHELL 8027bf4a254eSmrg_ASEOF 8028bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8029bf4a254eSmrg## -------------------- ## 8030bf4a254eSmrg## M4sh Initialization. ## 8031bf4a254eSmrg## -------------------- ## 8032a73027baSmrg 8033a73027baSmrg# Be more Bourne compatible 8034a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 8035bf4a254eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8036a73027baSmrg emulate sh 8037a73027baSmrg NULLCMD=: 8038bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8039a73027baSmrg # is contrary to our usage. Disable this feature. 8040a73027baSmrg alias -g '${1+"$@"}'='"$@"' 8041a73027baSmrg setopt NO_GLOB_SUBST 8042a73027baSmrgelse 8043bf4a254eSmrg case `(set -o) 2>/dev/null` in #( 8044bf4a254eSmrg *posix*) : 8045bf4a254eSmrg set -o posix ;; #( 8046bf4a254eSmrg *) : 8047bf4a254eSmrg ;; 8048a73027baSmrgesac 8049a73027baSmrgfi 8050a73027baSmrg 8051a73027baSmrg 8052bf4a254eSmrgas_nl=' 8053bf4a254eSmrg' 8054bf4a254eSmrgexport as_nl 8055bf4a254eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 8056bf4a254eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8057bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8058bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8059bf4a254eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 8060bf4a254eSmrg# but without wasting forks for bash or zsh. 8061bf4a254eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 8062bf4a254eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8063bf4a254eSmrg as_echo='print -r --' 8064bf4a254eSmrg as_echo_n='print -rn --' 8065bf4a254eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8066bf4a254eSmrg as_echo='printf %s\n' 8067bf4a254eSmrg as_echo_n='printf %s' 8068bf4a254eSmrgelse 8069bf4a254eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8070bf4a254eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8071bf4a254eSmrg as_echo_n='/usr/ucb/echo -n' 8072a73027baSmrg else 8073bf4a254eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8074bf4a254eSmrg as_echo_n_body='eval 8075bf4a254eSmrg arg=$1; 8076bf4a254eSmrg case $arg in #( 8077bf4a254eSmrg *"$as_nl"*) 8078bf4a254eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 8079bf4a254eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8080bf4a254eSmrg esac; 8081bf4a254eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8082bf4a254eSmrg ' 8083bf4a254eSmrg export as_echo_n_body 8084bf4a254eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 8085a73027baSmrg fi 8086bf4a254eSmrg export as_echo_body 8087bf4a254eSmrg as_echo='sh -c $as_echo_body as_echo' 8088a73027baSmrgfi 8089a73027baSmrg 8090bf4a254eSmrg# The user is always right. 8091bf4a254eSmrgif test "${PATH_SEPARATOR+set}" != set; then 8092bf4a254eSmrg PATH_SEPARATOR=: 8093bf4a254eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8094bf4a254eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8095bf4a254eSmrg PATH_SEPARATOR=';' 8096bf4a254eSmrg } 8097a73027baSmrgfi 8098a73027baSmrg 8099a73027baSmrg 8100a73027baSmrg# IFS 8101a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 8102a73027baSmrg# there to prevent editors from complaining about space-tab. 8103a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8104a73027baSmrg# splitting by setting IFS to empty value.) 8105a73027baSmrgIFS=" "" $as_nl" 8106a73027baSmrg 8107a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 8108bf4a254eSmrgcase $0 in #(( 8109a73027baSmrg *[\\/]* ) as_myself=$0 ;; 8110a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8111a73027baSmrgfor as_dir in $PATH 8112a73027baSmrgdo 8113a73027baSmrg IFS=$as_save_IFS 8114a73027baSmrg test -z "$as_dir" && as_dir=. 8115bf4a254eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8116bf4a254eSmrg done 8117a73027baSmrgIFS=$as_save_IFS 8118a73027baSmrg 8119a73027baSmrg ;; 8120a73027baSmrgesac 8121a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 8122a73027baSmrg# in which case we are not to be found in the path. 8123a73027baSmrgif test "x$as_myself" = x; then 8124a73027baSmrg as_myself=$0 8125a73027baSmrgfi 8126a73027baSmrgif test ! -f "$as_myself"; then 8127bf4a254eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8128bf4a254eSmrg exit 1 8129a73027baSmrgfi 8130a73027baSmrg 8131bf4a254eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 8132bf4a254eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8133bf4a254eSmrg# suppresses any "Segmentation fault" message there. '((' could 8134bf4a254eSmrg# trigger a bug in pdksh 5.2.14. 8135bf4a254eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 8136bf4a254eSmrgdo eval test x\${$as_var+set} = xset \ 8137bf4a254eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8138a73027baSmrgdone 8139a73027baSmrgPS1='$ ' 8140a73027baSmrgPS2='> ' 8141a73027baSmrgPS4='+ ' 8142a73027baSmrg 8143a73027baSmrg# NLS nuisances. 8144bf4a254eSmrgLC_ALL=C 8145bf4a254eSmrgexport LC_ALL 8146bf4a254eSmrgLANGUAGE=C 8147bf4a254eSmrgexport LANGUAGE 8148bf4a254eSmrg 8149bf4a254eSmrg# CDPATH. 8150bf4a254eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8151bf4a254eSmrg 8152bf4a254eSmrg 8153bf4a254eSmrg# as_fn_error ERROR [LINENO LOG_FD] 8154bf4a254eSmrg# --------------------------------- 8155bf4a254eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8156bf4a254eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8157bf4a254eSmrg# script with status $?, using 1 if that was 0. 8158bf4a254eSmrgas_fn_error () 8159bf4a254eSmrg{ 8160bf4a254eSmrg as_status=$?; test $as_status -eq 0 && as_status=1 8161bf4a254eSmrg if test "$3"; then 8162bf4a254eSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8163bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 8164a73027baSmrg fi 8165bf4a254eSmrg $as_echo "$as_me: error: $1" >&2 8166bf4a254eSmrg as_fn_exit $as_status 8167bf4a254eSmrg} # as_fn_error 8168bf4a254eSmrg 8169bf4a254eSmrg 8170bf4a254eSmrg# as_fn_set_status STATUS 8171bf4a254eSmrg# ----------------------- 8172bf4a254eSmrg# Set $? to STATUS, without forking. 8173bf4a254eSmrgas_fn_set_status () 8174bf4a254eSmrg{ 8175bf4a254eSmrg return $1 8176bf4a254eSmrg} # as_fn_set_status 8177bf4a254eSmrg 8178bf4a254eSmrg# as_fn_exit STATUS 8179bf4a254eSmrg# ----------------- 8180bf4a254eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8181bf4a254eSmrgas_fn_exit () 8182bf4a254eSmrg{ 8183bf4a254eSmrg set +e 8184bf4a254eSmrg as_fn_set_status $1 8185bf4a254eSmrg exit $1 8186bf4a254eSmrg} # as_fn_exit 8187bf4a254eSmrg 8188bf4a254eSmrg# as_fn_unset VAR 8189bf4a254eSmrg# --------------- 8190bf4a254eSmrg# Portably unset VAR. 8191bf4a254eSmrgas_fn_unset () 8192bf4a254eSmrg{ 8193bf4a254eSmrg { eval $1=; unset $1;} 8194bf4a254eSmrg} 8195bf4a254eSmrgas_unset=as_fn_unset 8196bf4a254eSmrg# as_fn_append VAR VALUE 8197bf4a254eSmrg# ---------------------- 8198bf4a254eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 8199bf4a254eSmrg# advantage of any shell optimizations that allow amortized linear growth over 8200bf4a254eSmrg# repeated appends, instead of the typical quadratic growth present in naive 8201bf4a254eSmrg# implementations. 8202bf4a254eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8203bf4a254eSmrg eval 'as_fn_append () 8204bf4a254eSmrg { 8205bf4a254eSmrg eval $1+=\$2 8206bf4a254eSmrg }' 8207bf4a254eSmrgelse 8208bf4a254eSmrg as_fn_append () 8209bf4a254eSmrg { 8210bf4a254eSmrg eval $1=\$$1\$2 8211bf4a254eSmrg } 8212bf4a254eSmrgfi # as_fn_append 8213bf4a254eSmrg 8214bf4a254eSmrg# as_fn_arith ARG... 8215bf4a254eSmrg# ------------------ 8216bf4a254eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 8217bf4a254eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 8218bf4a254eSmrg# must be portable across $(()) and expr. 8219bf4a254eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8220bf4a254eSmrg eval 'as_fn_arith () 8221bf4a254eSmrg { 8222bf4a254eSmrg as_val=$(( $* )) 8223bf4a254eSmrg }' 8224bf4a254eSmrgelse 8225bf4a254eSmrg as_fn_arith () 8226bf4a254eSmrg { 8227bf4a254eSmrg as_val=`expr "$@" || test $? -eq 1` 8228bf4a254eSmrg } 8229bf4a254eSmrgfi # as_fn_arith 8230bf4a254eSmrg 8231a73027baSmrg 8232a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 8233a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 8234a73027baSmrg as_expr=expr 8235a73027baSmrgelse 8236a73027baSmrg as_expr=false 8237a73027baSmrgfi 8238a73027baSmrg 8239a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8240a73027baSmrg as_basename=basename 8241a73027baSmrgelse 8242bf4a254eSmrg as_basename=false 8243bf4a254eSmrgfi 8244bf4a254eSmrg 8245bf4a254eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8246bf4a254eSmrg as_dirname=dirname 8247bf4a254eSmrgelse 8248bf4a254eSmrg as_dirname=false 8249a73027baSmrgfi 8250a73027baSmrg 8251a73027baSmrgas_me=`$as_basename -- "$0" || 8252a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8253a73027baSmrg X"$0" : 'X\(//\)$' \| \ 8254a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 8255bf4a254eSmrg$as_echo X/"$0" | 8256a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 8257a73027baSmrg s//\1/ 8258a73027baSmrg q 8259a73027baSmrg } 8260a73027baSmrg /^X\/\(\/\/\)$/{ 8261a73027baSmrg s//\1/ 8262a73027baSmrg q 8263a73027baSmrg } 8264a73027baSmrg /^X\/\(\/\).*/{ 8265a73027baSmrg s//\1/ 8266a73027baSmrg q 8267a73027baSmrg } 8268a73027baSmrg s/.*/./; q'` 8269a73027baSmrg 8270bf4a254eSmrg# Avoid depending upon Character Ranges. 8271bf4a254eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 8272bf4a254eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8273bf4a254eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 8274bf4a254eSmrgas_cr_digits='0123456789' 8275bf4a254eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 8276a73027baSmrg 8277a73027baSmrgECHO_C= ECHO_N= ECHO_T= 8278bf4a254eSmrgcase `echo -n x` in #((((( 8279a73027baSmrg-n*) 8280bf4a254eSmrg case `echo 'xy\c'` in 8281a73027baSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8282bf4a254eSmrg xy) ECHO_C='\c';; 8283bf4a254eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8284bf4a254eSmrg ECHO_T=' ';; 8285a73027baSmrg esac;; 8286a73027baSmrg*) 8287a73027baSmrg ECHO_N='-n';; 8288a73027baSmrgesac 8289a73027baSmrg 8290a73027baSmrgrm -f conf$$ conf$$.exe conf$$.file 8291a73027baSmrgif test -d conf$$.dir; then 8292a73027baSmrg rm -f conf$$.dir/conf$$.file 8293a73027baSmrgelse 8294a73027baSmrg rm -f conf$$.dir 8295bf4a254eSmrg mkdir conf$$.dir 2>/dev/null 8296bf4a254eSmrgfi 8297bf4a254eSmrgif (echo >conf$$.file) 2>/dev/null; then 8298bf4a254eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 8299bf4a254eSmrg as_ln_s='ln -s' 8300bf4a254eSmrg # ... but there are two gotchas: 8301bf4a254eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8302bf4a254eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8303bf4a254eSmrg # In both cases, we have to default to `cp -p'. 8304bf4a254eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8305bf4a254eSmrg as_ln_s='cp -p' 8306bf4a254eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 8307bf4a254eSmrg as_ln_s=ln 8308bf4a254eSmrg else 8309a73027baSmrg as_ln_s='cp -p' 8310bf4a254eSmrg fi 8311a73027baSmrgelse 8312a73027baSmrg as_ln_s='cp -p' 8313a73027baSmrgfi 8314a73027baSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8315a73027baSmrgrmdir conf$$.dir 2>/dev/null 8316a73027baSmrg 8317bf4a254eSmrg 8318bf4a254eSmrg# as_fn_mkdir_p 8319bf4a254eSmrg# ------------- 8320bf4a254eSmrg# Create "$as_dir" as a directory, including parents if necessary. 8321bf4a254eSmrgas_fn_mkdir_p () 8322bf4a254eSmrg{ 8323bf4a254eSmrg 8324bf4a254eSmrg case $as_dir in #( 8325bf4a254eSmrg -*) as_dir=./$as_dir;; 8326bf4a254eSmrg esac 8327bf4a254eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 8328bf4a254eSmrg as_dirs= 8329bf4a254eSmrg while :; do 8330bf4a254eSmrg case $as_dir in #( 8331bf4a254eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8332bf4a254eSmrg *) as_qdir=$as_dir;; 8333bf4a254eSmrg esac 8334bf4a254eSmrg as_dirs="'$as_qdir' $as_dirs" 8335bf4a254eSmrg as_dir=`$as_dirname -- "$as_dir" || 8336bf4a254eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8337bf4a254eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 8338bf4a254eSmrg X"$as_dir" : 'X\(//\)$' \| \ 8339bf4a254eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8340bf4a254eSmrg$as_echo X"$as_dir" | 8341bf4a254eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8342bf4a254eSmrg s//\1/ 8343bf4a254eSmrg q 8344bf4a254eSmrg } 8345bf4a254eSmrg /^X\(\/\/\)[^/].*/{ 8346bf4a254eSmrg s//\1/ 8347bf4a254eSmrg q 8348bf4a254eSmrg } 8349bf4a254eSmrg /^X\(\/\/\)$/{ 8350bf4a254eSmrg s//\1/ 8351bf4a254eSmrg q 8352bf4a254eSmrg } 8353bf4a254eSmrg /^X\(\/\).*/{ 8354bf4a254eSmrg s//\1/ 8355bf4a254eSmrg q 8356bf4a254eSmrg } 8357bf4a254eSmrg s/.*/./; q'` 8358bf4a254eSmrg test -d "$as_dir" && break 8359bf4a254eSmrg done 8360bf4a254eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 8361bf4a254eSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 8362bf4a254eSmrg 8363bf4a254eSmrg 8364bf4a254eSmrg} # as_fn_mkdir_p 8365a73027baSmrgif mkdir -p . 2>/dev/null; then 8366bf4a254eSmrg as_mkdir_p='mkdir -p "$as_dir"' 8367a73027baSmrgelse 8368a73027baSmrg test -d ./-p && rmdir ./-p 8369a73027baSmrg as_mkdir_p=false 8370a73027baSmrgfi 8371a73027baSmrg 8372a73027baSmrgif test -x / >/dev/null 2>&1; then 8373a73027baSmrg as_test_x='test -x' 8374a73027baSmrgelse 8375a73027baSmrg if ls -dL / >/dev/null 2>&1; then 8376a73027baSmrg as_ls_L_option=L 8377a73027baSmrg else 8378a73027baSmrg as_ls_L_option= 8379a73027baSmrg fi 8380a73027baSmrg as_test_x=' 8381a73027baSmrg eval sh -c '\'' 8382a73027baSmrg if test -d "$1"; then 8383bf4a254eSmrg test -d "$1/."; 8384a73027baSmrg else 8385bf4a254eSmrg case $1 in #( 8386bf4a254eSmrg -*)set "./$1";; 8387a73027baSmrg esac; 8388bf4a254eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8389a73027baSmrg ???[sx]*):;;*)false;;esac;fi 8390a73027baSmrg '\'' sh 8391a73027baSmrg ' 8392a73027baSmrgfi 8393a73027baSmrgas_executable_p=$as_test_x 8394a73027baSmrg 8395a73027baSmrg# Sed expression to map a string onto a valid CPP name. 8396a73027baSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8397a73027baSmrg 8398a73027baSmrg# Sed expression to map a string onto a valid variable name. 8399a73027baSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8400a73027baSmrg 8401a73027baSmrg 8402a73027baSmrgexec 6>&1 8403bf4a254eSmrg## ----------------------------------- ## 8404bf4a254eSmrg## Main body of $CONFIG_STATUS script. ## 8405bf4a254eSmrg## ----------------------------------- ## 8406bf4a254eSmrg_ASEOF 8407bf4a254eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8408a73027baSmrg 8409bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8410bf4a254eSmrg# Save the log message, to keep $0 and so on meaningful, and to 8411a73027baSmrg# report actual input values of CONFIG_FILES etc. instead of their 8412a73027baSmrg# values after options handling. 8413a73027baSmrgac_log=" 8414bf4a254eSmrgThis file was extended by xinit $as_me 1.2.1, which was 8415bf4a254eSmrggenerated by GNU Autoconf 2.65. Invocation command line was 8416a73027baSmrg 8417a73027baSmrg CONFIG_FILES = $CONFIG_FILES 8418a73027baSmrg CONFIG_HEADERS = $CONFIG_HEADERS 8419a73027baSmrg CONFIG_LINKS = $CONFIG_LINKS 8420a73027baSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 8421a73027baSmrg $ $0 $@ 8422a73027baSmrg 8423a73027baSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 8424a73027baSmrg" 8425a73027baSmrg 8426a73027baSmrg_ACEOF 8427a73027baSmrg 8428bf4a254eSmrgcase $ac_config_files in *" 8429bf4a254eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 8430bf4a254eSmrgesac 8431bf4a254eSmrg 8432bf4a254eSmrgcase $ac_config_headers in *" 8433bf4a254eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8434bf4a254eSmrgesac 8435bf4a254eSmrg 8436bf4a254eSmrg 8437bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8438a73027baSmrg# Files that config.status was made for. 8439a73027baSmrgconfig_files="$ac_config_files" 8440a73027baSmrgconfig_headers="$ac_config_headers" 8441a73027baSmrgconfig_commands="$ac_config_commands" 8442a73027baSmrg 8443a73027baSmrg_ACEOF 8444a73027baSmrg 8445bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8446a73027baSmrgac_cs_usage="\ 8447bf4a254eSmrg\`$as_me' instantiates files and other configuration actions 8448bf4a254eSmrgfrom templates according to the current configuration. Unless the files 8449bf4a254eSmrgand actions are specified as TAGs, all are instantiated by default. 8450a73027baSmrg 8451bf4a254eSmrgUsage: $0 [OPTION]... [TAG]... 8452a73027baSmrg 8453a73027baSmrg -h, --help print this help, then exit 8454a73027baSmrg -V, --version print version number and configuration settings, then exit 8455bf4a254eSmrg --config print configuration, then exit 8456bf4a254eSmrg -q, --quiet, --silent 8457bf4a254eSmrg do not print progress messages 8458a73027baSmrg -d, --debug don't remove temporary files 8459a73027baSmrg --recheck update $as_me by reconfiguring in the same conditions 8460bf4a254eSmrg --file=FILE[:TEMPLATE] 8461bf4a254eSmrg instantiate the configuration file FILE 8462bf4a254eSmrg --header=FILE[:TEMPLATE] 8463bf4a254eSmrg instantiate the configuration header FILE 8464a73027baSmrg 8465a73027baSmrgConfiguration files: 8466a73027baSmrg$config_files 8467a73027baSmrg 8468a73027baSmrgConfiguration headers: 8469a73027baSmrg$config_headers 8470a73027baSmrg 8471a73027baSmrgConfiguration commands: 8472a73027baSmrg$config_commands 8473a73027baSmrg 8474bf4a254eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 8475a73027baSmrg 8476a73027baSmrg_ACEOF 8477bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8478bf4a254eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8479a73027baSmrgac_cs_version="\\ 8480bf4a254eSmrgxinit config.status 1.2.1 8481bf4a254eSmrgconfigured by $0, generated by GNU Autoconf 2.65, 8482bf4a254eSmrg with options \\"\$ac_cs_config\\" 8483a73027baSmrg 8484bf4a254eSmrgCopyright (C) 2009 Free Software Foundation, Inc. 8485a73027baSmrgThis config.status script is free software; the Free Software Foundation 8486a73027baSmrggives unlimited permission to copy, distribute and modify it." 8487a73027baSmrg 8488a73027baSmrgac_pwd='$ac_pwd' 8489a73027baSmrgsrcdir='$srcdir' 8490a73027baSmrgINSTALL='$INSTALL' 8491a73027baSmrgMKDIR_P='$MKDIR_P' 8492bf4a254eSmrgAWK='$AWK' 8493bf4a254eSmrgtest -n "\$AWK" || AWK=awk 8494a73027baSmrg_ACEOF 8495a73027baSmrg 8496bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8497bf4a254eSmrg# The default lists apply if the user does not specify any file. 8498a73027baSmrgac_need_defaults=: 8499a73027baSmrgwhile test $# != 0 8500a73027baSmrgdo 8501a73027baSmrg case $1 in 8502a73027baSmrg --*=*) 8503a73027baSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 8504a73027baSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8505a73027baSmrg ac_shift=: 8506a73027baSmrg ;; 8507a73027baSmrg *) 8508a73027baSmrg ac_option=$1 8509a73027baSmrg ac_optarg=$2 8510a73027baSmrg ac_shift=shift 8511a73027baSmrg ;; 8512a73027baSmrg esac 8513a73027baSmrg 8514a73027baSmrg case $ac_option in 8515a73027baSmrg # Handling of the options. 8516a73027baSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8517a73027baSmrg ac_cs_recheck=: ;; 8518a73027baSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8519bf4a254eSmrg $as_echo "$ac_cs_version"; exit ;; 8520bf4a254eSmrg --config | --confi | --conf | --con | --co | --c ) 8521bf4a254eSmrg $as_echo "$ac_cs_config"; exit ;; 8522a73027baSmrg --debug | --debu | --deb | --de | --d | -d ) 8523a73027baSmrg debug=: ;; 8524a73027baSmrg --file | --fil | --fi | --f ) 8525a73027baSmrg $ac_shift 8526bf4a254eSmrg case $ac_optarg in 8527bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8528bf4a254eSmrg esac 8529bf4a254eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 8530a73027baSmrg ac_need_defaults=false;; 8531a73027baSmrg --header | --heade | --head | --hea ) 8532a73027baSmrg $ac_shift 8533bf4a254eSmrg case $ac_optarg in 8534bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8535bf4a254eSmrg esac 8536bf4a254eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8537a73027baSmrg ac_need_defaults=false;; 8538a73027baSmrg --he | --h) 8539a73027baSmrg # Conflict between --help and --header 8540bf4a254eSmrg as_fn_error "ambiguous option: \`$1' 8541bf4a254eSmrgTry \`$0 --help' for more information.";; 8542a73027baSmrg --help | --hel | -h ) 8543bf4a254eSmrg $as_echo "$ac_cs_usage"; exit ;; 8544a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8545a73027baSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 8546a73027baSmrg ac_cs_silent=: ;; 8547a73027baSmrg 8548a73027baSmrg # This is an error. 8549bf4a254eSmrg -*) as_fn_error "unrecognized option: \`$1' 8550bf4a254eSmrgTry \`$0 --help' for more information." ;; 8551a73027baSmrg 8552bf4a254eSmrg *) as_fn_append ac_config_targets " $1" 8553a73027baSmrg ac_need_defaults=false ;; 8554a73027baSmrg 8555a73027baSmrg esac 8556a73027baSmrg shift 8557a73027baSmrgdone 8558a73027baSmrg 8559a73027baSmrgac_configure_extra_args= 8560a73027baSmrg 8561a73027baSmrgif $ac_cs_silent; then 8562a73027baSmrg exec 6>/dev/null 8563a73027baSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 8564a73027baSmrgfi 8565a73027baSmrg 8566a73027baSmrg_ACEOF 8567bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8568a73027baSmrgif \$ac_cs_recheck; then 8569bf4a254eSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8570bf4a254eSmrg shift 8571bf4a254eSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8572bf4a254eSmrg CONFIG_SHELL='$SHELL' 8573a73027baSmrg export CONFIG_SHELL 8574bf4a254eSmrg exec "\$@" 8575a73027baSmrgfi 8576a73027baSmrg 8577a73027baSmrg_ACEOF 8578bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8579a73027baSmrgexec 5>>config.log 8580a73027baSmrg{ 8581a73027baSmrg echo 8582a73027baSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8583a73027baSmrg## Running $as_me. ## 8584a73027baSmrg_ASBOX 8585bf4a254eSmrg $as_echo "$ac_log" 8586a73027baSmrg} >&5 8587a73027baSmrg 8588a73027baSmrg_ACEOF 8589bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8590a73027baSmrg# 8591a73027baSmrg# INIT-COMMANDS 8592a73027baSmrg# 8593a73027baSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 8594a73027baSmrg 8595a73027baSmrg_ACEOF 8596a73027baSmrg 8597bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8598a73027baSmrg 8599a73027baSmrg# Handling of arguments. 8600a73027baSmrgfor ac_config_target in $ac_config_targets 8601a73027baSmrgdo 8602a73027baSmrg case $ac_config_target in 8603a73027baSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 8604bf4a254eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8605a73027baSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8606a73027baSmrg "privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES privileged_startx/Makefile" ;; 8607a73027baSmrg 8608bf4a254eSmrg *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8609a73027baSmrg esac 8610a73027baSmrgdone 8611a73027baSmrg 8612a73027baSmrg 8613a73027baSmrg# If the user did not use the arguments to specify the items to instantiate, 8614a73027baSmrg# then the envvar interface is used. Set only those that are not. 8615a73027baSmrg# We use the long form for the default assignment because of an extremely 8616a73027baSmrg# bizarre bug on SunOS 4.1.3. 8617a73027baSmrgif $ac_need_defaults; then 8618a73027baSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8619a73027baSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8620a73027baSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8621a73027baSmrgfi 8622a73027baSmrg 8623a73027baSmrg# Have a temporary directory for convenience. Make it in the build tree 8624a73027baSmrg# simply because there is no reason against having it here, and in addition, 8625a73027baSmrg# creating and moving files from /tmp can sometimes cause problems. 8626a73027baSmrg# Hook for its removal unless debugging. 8627a73027baSmrg# Note that there is a small window in which the directory will not be cleaned: 8628a73027baSmrg# after its creation but before its name has been assigned to `$tmp'. 8629a73027baSmrg$debug || 8630a73027baSmrg{ 8631a73027baSmrg tmp= 8632a73027baSmrg trap 'exit_status=$? 8633a73027baSmrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8634a73027baSmrg' 0 8635bf4a254eSmrg trap 'as_fn_exit 1' 1 2 13 15 8636a73027baSmrg} 8637a73027baSmrg# Create a (secure) tmp directory for tmp files. 8638a73027baSmrg 8639a73027baSmrg{ 8640a73027baSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8641a73027baSmrg test -n "$tmp" && test -d "$tmp" 8642a73027baSmrg} || 8643a73027baSmrg{ 8644a73027baSmrg tmp=./conf$$-$RANDOM 8645a73027baSmrg (umask 077 && mkdir "$tmp") 8646bf4a254eSmrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 8647a73027baSmrg 8648bf4a254eSmrg# Set up the scripts for CONFIG_FILES section. 8649bf4a254eSmrg# No need to generate them if there are no CONFIG_FILES. 8650bf4a254eSmrg# This happens for instance with `./config.status config.h'. 8651a73027baSmrgif test -n "$CONFIG_FILES"; then 8652a73027baSmrg 8653a73027baSmrg 8654bf4a254eSmrgac_cr=`echo X | tr X '\015'` 8655bf4a254eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 8656bf4a254eSmrg# But we know of no other shell where ac_cr would be empty at this 8657bf4a254eSmrg# point, so we can use a bashism as a fallback. 8658bf4a254eSmrgif test "x$ac_cr" = x; then 8659bf4a254eSmrg eval ac_cr=\$\'\\r\' 8660bf4a254eSmrgfi 8661bf4a254eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8662bf4a254eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8663bf4a254eSmrg ac_cs_awk_cr='\r' 8664bf4a254eSmrgelse 8665bf4a254eSmrg ac_cs_awk_cr=$ac_cr 8666a73027baSmrgfi 8667a73027baSmrg 8668bf4a254eSmrgecho 'BEGIN {' >"$tmp/subs1.awk" && 8669a73027baSmrg_ACEOF 8670a73027baSmrg 8671a73027baSmrg 8672bf4a254eSmrg{ 8673bf4a254eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 8674bf4a254eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8675bf4a254eSmrg echo "_ACEOF" 8676bf4a254eSmrg} >conf$$subs.sh || 8677bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 8678bf4a254eSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 8679a73027baSmrgac_delim='%!_!# ' 8680a73027baSmrgfor ac_last_try in false false false false false :; do 8681bf4a254eSmrg . ./conf$$subs.sh || 8682bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 8683a73027baSmrg 8684bf4a254eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8685bf4a254eSmrg if test $ac_delim_n = $ac_delim_num; then 8686a73027baSmrg break 8687a73027baSmrg elif $ac_last_try; then 8688bf4a254eSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 8689a73027baSmrg else 8690a73027baSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8691a73027baSmrg fi 8692a73027baSmrgdone 8693bf4a254eSmrgrm -f conf$$subs.sh 8694bf4a254eSmrg 8695bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8696bf4a254eSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 8697bf4a254eSmrg_ACEOF 8698bf4a254eSmrgsed -n ' 8699bf4a254eSmrgh 8700bf4a254eSmrgs/^/S["/; s/!.*/"]=/ 8701bf4a254eSmrgp 8702bf4a254eSmrgg 8703bf4a254eSmrgs/^[^!]*!// 8704bf4a254eSmrg:repl 8705bf4a254eSmrgt repl 8706bf4a254eSmrgs/'"$ac_delim"'$// 8707bf4a254eSmrgt delim 8708bf4a254eSmrg:nl 8709bf4a254eSmrgh 8710bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 8711bf4a254eSmrgt more1 8712bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8713bf4a254eSmrgp 8714bf4a254eSmrgn 8715bf4a254eSmrgb repl 8716bf4a254eSmrg:more1 8717bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8718bf4a254eSmrgp 8719bf4a254eSmrgg 8720bf4a254eSmrgs/.\{148\}// 8721bf4a254eSmrgt nl 8722bf4a254eSmrg:delim 8723bf4a254eSmrgh 8724bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 8725bf4a254eSmrgt more2 8726bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 8727bf4a254eSmrgp 8728bf4a254eSmrgb 8729bf4a254eSmrg:more2 8730bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8731bf4a254eSmrgp 8732bf4a254eSmrgg 8733bf4a254eSmrgs/.\{148\}// 8734bf4a254eSmrgt delim 8735bf4a254eSmrg' <conf$$subs.awk | sed ' 8736bf4a254eSmrg/^[^""]/{ 8737bf4a254eSmrg N 8738bf4a254eSmrg s/\n// 8739bf4a254eSmrg} 8740bf4a254eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 8741bf4a254eSmrgrm -f conf$$subs.awk 8742bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8743bf4a254eSmrg_ACAWK 8744bf4a254eSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 8745bf4a254eSmrg for (key in S) S_is_set[key] = 1 8746bf4a254eSmrg FS = "" 8747a73027baSmrg 8748bf4a254eSmrg} 8749bf4a254eSmrg{ 8750bf4a254eSmrg line = $ 0 8751bf4a254eSmrg nfields = split(line, field, "@") 8752bf4a254eSmrg substed = 0 8753bf4a254eSmrg len = length(field[1]) 8754bf4a254eSmrg for (i = 2; i < nfields; i++) { 8755bf4a254eSmrg key = field[i] 8756bf4a254eSmrg keylen = length(key) 8757bf4a254eSmrg if (S_is_set[key]) { 8758bf4a254eSmrg value = S[key] 8759bf4a254eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8760bf4a254eSmrg len += length(value) + length(field[++i]) 8761bf4a254eSmrg substed = 1 8762bf4a254eSmrg } else 8763bf4a254eSmrg len += 1 + keylen 8764bf4a254eSmrg } 8765bf4a254eSmrg 8766bf4a254eSmrg print line 8767bf4a254eSmrg} 8768a73027baSmrg 8769bf4a254eSmrg_ACAWK 8770a73027baSmrg_ACEOF 8771bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8772bf4a254eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8773bf4a254eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8774bf4a254eSmrgelse 8775bf4a254eSmrg cat 8776bf4a254eSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 8777bf4a254eSmrg || as_fn_error "could not setup config files machinery" "$LINENO" 5 8778a73027baSmrg_ACEOF 8779a73027baSmrg 8780a73027baSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 8781a73027baSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8782a73027baSmrg# trailing colons and then remove the whole line if VPATH becomes empty 8783a73027baSmrg# (actually we leave an empty line to preserve line numbers). 8784a73027baSmrgif test "x$srcdir" = x.; then 8785a73027baSmrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8786a73027baSmrgs/:*\$(srcdir):*/:/ 8787a73027baSmrgs/:*\${srcdir}:*/:/ 8788a73027baSmrgs/:*@srcdir@:*/:/ 8789a73027baSmrgs/^\([^=]*=[ ]*\):*/\1/ 8790a73027baSmrgs/:*$// 8791a73027baSmrgs/^[^=]*=[ ]*$// 8792a73027baSmrg}' 8793a73027baSmrgfi 8794a73027baSmrg 8795bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8796a73027baSmrgfi # test -n "$CONFIG_FILES" 8797a73027baSmrg 8798bf4a254eSmrg# Set up the scripts for CONFIG_HEADERS section. 8799bf4a254eSmrg# No need to generate them if there are no CONFIG_HEADERS. 8800bf4a254eSmrg# This happens for instance with `./config.status Makefile'. 8801bf4a254eSmrgif test -n "$CONFIG_HEADERS"; then 8802bf4a254eSmrgcat >"$tmp/defines.awk" <<\_ACAWK || 8803bf4a254eSmrgBEGIN { 8804bf4a254eSmrg_ACEOF 8805bf4a254eSmrg 8806bf4a254eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 8807bf4a254eSmrg# here-document in config.status, that substitutes the proper values into 8808bf4a254eSmrg# config.h.in to produce config.h. 8809bf4a254eSmrg 8810bf4a254eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 8811bf4a254eSmrg# handling of long lines. 8812bf4a254eSmrgac_delim='%!_!# ' 8813bf4a254eSmrgfor ac_last_try in false false :; do 8814bf4a254eSmrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 8815bf4a254eSmrg if test -z "$ac_t"; then 8816bf4a254eSmrg break 8817bf4a254eSmrg elif $ac_last_try; then 8818bf4a254eSmrg as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 8819bf4a254eSmrg else 8820bf4a254eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8821bf4a254eSmrg fi 8822bf4a254eSmrgdone 8823bf4a254eSmrg 8824bf4a254eSmrg# For the awk script, D is an array of macro values keyed by name, 8825bf4a254eSmrg# likewise P contains macro parameters if any. Preserve backslash 8826bf4a254eSmrg# newline sequences. 8827bf4a254eSmrg 8828bf4a254eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8829bf4a254eSmrgsed -n ' 8830bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 8831bf4a254eSmrgt rset 8832bf4a254eSmrg:rset 8833bf4a254eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 8834bf4a254eSmrgt def 8835bf4a254eSmrgd 8836bf4a254eSmrg:def 8837bf4a254eSmrgs/\\$// 8838bf4a254eSmrgt bsnl 8839bf4a254eSmrgs/["\\]/\\&/g 8840bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8841bf4a254eSmrgD["\1"]=" \3"/p 8842bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8843bf4a254eSmrgd 8844bf4a254eSmrg:bsnl 8845bf4a254eSmrgs/["\\]/\\&/g 8846bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8847bf4a254eSmrgD["\1"]=" \3\\\\\\n"\\/p 8848bf4a254eSmrgt cont 8849bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8850bf4a254eSmrgt cont 8851bf4a254eSmrgd 8852bf4a254eSmrg:cont 8853bf4a254eSmrgn 8854bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 8855bf4a254eSmrgt clear 8856bf4a254eSmrg:clear 8857bf4a254eSmrgs/\\$// 8858bf4a254eSmrgt bsnlc 8859bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 8860bf4a254eSmrgd 8861bf4a254eSmrg:bsnlc 8862bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8863bf4a254eSmrgb cont 8864bf4a254eSmrg' <confdefs.h | sed ' 8865bf4a254eSmrgs/'"$ac_delim"'/"\\\ 8866bf4a254eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 8867bf4a254eSmrg 8868bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8869bf4a254eSmrg for (key in D) D_is_set[key] = 1 8870bf4a254eSmrg FS = "" 8871bf4a254eSmrg} 8872bf4a254eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8873bf4a254eSmrg line = \$ 0 8874bf4a254eSmrg split(line, arg, " ") 8875bf4a254eSmrg if (arg[1] == "#") { 8876bf4a254eSmrg defundef = arg[2] 8877bf4a254eSmrg mac1 = arg[3] 8878bf4a254eSmrg } else { 8879bf4a254eSmrg defundef = substr(arg[1], 2) 8880bf4a254eSmrg mac1 = arg[2] 8881bf4a254eSmrg } 8882bf4a254eSmrg split(mac1, mac2, "(") #) 8883bf4a254eSmrg macro = mac2[1] 8884bf4a254eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 8885bf4a254eSmrg if (D_is_set[macro]) { 8886bf4a254eSmrg # Preserve the white space surrounding the "#". 8887bf4a254eSmrg print prefix "define", macro P[macro] D[macro] 8888bf4a254eSmrg next 8889bf4a254eSmrg } else { 8890bf4a254eSmrg # Replace #undef with comments. This is necessary, for example, 8891bf4a254eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 8892bf4a254eSmrg # on some systems where configure will not decide to define it. 8893bf4a254eSmrg if (defundef == "undef") { 8894bf4a254eSmrg print "/*", prefix defundef, macro, "*/" 8895bf4a254eSmrg next 8896bf4a254eSmrg } 8897bf4a254eSmrg } 8898bf4a254eSmrg} 8899bf4a254eSmrg{ print } 8900bf4a254eSmrg_ACAWK 8901bf4a254eSmrg_ACEOF 8902bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8903bf4a254eSmrg as_fn_error "could not setup config headers machinery" "$LINENO" 5 8904bf4a254eSmrgfi # test -n "$CONFIG_HEADERS" 8905bf4a254eSmrg 8906a73027baSmrg 8907bf4a254eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8908bf4a254eSmrgshift 8909bf4a254eSmrgfor ac_tag 8910a73027baSmrgdo 8911a73027baSmrg case $ac_tag in 8912a73027baSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 8913a73027baSmrg esac 8914a73027baSmrg case $ac_mode$ac_tag in 8915a73027baSmrg :[FHL]*:*);; 8916bf4a254eSmrg :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 8917a73027baSmrg :[FH]-) ac_tag=-:-;; 8918a73027baSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8919a73027baSmrg esac 8920a73027baSmrg ac_save_IFS=$IFS 8921a73027baSmrg IFS=: 8922a73027baSmrg set x $ac_tag 8923a73027baSmrg IFS=$ac_save_IFS 8924a73027baSmrg shift 8925a73027baSmrg ac_file=$1 8926a73027baSmrg shift 8927a73027baSmrg 8928a73027baSmrg case $ac_mode in 8929a73027baSmrg :L) ac_source=$1;; 8930a73027baSmrg :[FH]) 8931a73027baSmrg ac_file_inputs= 8932a73027baSmrg for ac_f 8933a73027baSmrg do 8934a73027baSmrg case $ac_f in 8935a73027baSmrg -) ac_f="$tmp/stdin";; 8936a73027baSmrg *) # Look for the file first in the build tree, then in the source tree 8937a73027baSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 8938a73027baSmrg # because $ac_f cannot contain `:'. 8939a73027baSmrg test -f "$ac_f" || 8940a73027baSmrg case $ac_f in 8941a73027baSmrg [\\/$]*) false;; 8942a73027baSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8943a73027baSmrg esac || 8944bf4a254eSmrg as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8945a73027baSmrg esac 8946bf4a254eSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8947bf4a254eSmrg as_fn_append ac_file_inputs " '$ac_f'" 8948a73027baSmrg done 8949a73027baSmrg 8950a73027baSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 8951a73027baSmrg # use $as_me), people would be surprised to read: 8952a73027baSmrg # /* config.h. Generated by config.status. */ 8953bf4a254eSmrg configure_input='Generated from '` 8954bf4a254eSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8955bf4a254eSmrg `' by configure.' 8956a73027baSmrg if test x"$ac_file" != x-; then 8957a73027baSmrg configure_input="$ac_file. $configure_input" 8958bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8959bf4a254eSmrg$as_echo "$as_me: creating $ac_file" >&6;} 8960a73027baSmrg fi 8961bf4a254eSmrg # Neutralize special characters interpreted by sed in replacement strings. 8962bf4a254eSmrg case $configure_input in #( 8963bf4a254eSmrg *\&* | *\|* | *\\* ) 8964bf4a254eSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 8965bf4a254eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 8966bf4a254eSmrg *) ac_sed_conf_input=$configure_input;; 8967bf4a254eSmrg esac 8968a73027baSmrg 8969a73027baSmrg case $ac_tag in 8970bf4a254eSmrg *:-:* | *:-) cat >"$tmp/stdin" \ 8971bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 8972a73027baSmrg esac 8973a73027baSmrg ;; 8974a73027baSmrg esac 8975a73027baSmrg 8976a73027baSmrg ac_dir=`$as_dirname -- "$ac_file" || 8977a73027baSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8978a73027baSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 8979a73027baSmrg X"$ac_file" : 'X\(//\)$' \| \ 8980a73027baSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8981bf4a254eSmrg$as_echo X"$ac_file" | 8982a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8983a73027baSmrg s//\1/ 8984a73027baSmrg q 8985a73027baSmrg } 8986a73027baSmrg /^X\(\/\/\)[^/].*/{ 8987a73027baSmrg s//\1/ 8988a73027baSmrg q 8989a73027baSmrg } 8990a73027baSmrg /^X\(\/\/\)$/{ 8991a73027baSmrg s//\1/ 8992a73027baSmrg q 8993a73027baSmrg } 8994a73027baSmrg /^X\(\/\).*/{ 8995a73027baSmrg s//\1/ 8996a73027baSmrg q 8997a73027baSmrg } 8998a73027baSmrg s/.*/./; q'` 8999bf4a254eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 9000a73027baSmrg ac_builddir=. 9001a73027baSmrg 9002a73027baSmrgcase "$ac_dir" in 9003a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9004a73027baSmrg*) 9005bf4a254eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9006a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 9007bf4a254eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9008a73027baSmrg case $ac_top_builddir_sub in 9009a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9010a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9011a73027baSmrg esac ;; 9012a73027baSmrgesac 9013a73027baSmrgac_abs_top_builddir=$ac_pwd 9014a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 9015a73027baSmrg# for backward compatibility: 9016a73027baSmrgac_top_builddir=$ac_top_build_prefix 9017a73027baSmrg 9018a73027baSmrgcase $srcdir in 9019a73027baSmrg .) # We are building in place. 9020a73027baSmrg ac_srcdir=. 9021a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 9022a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 9023a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 9024a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 9025a73027baSmrg ac_top_srcdir=$srcdir 9026a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 9027a73027baSmrg *) # Relative name. 9028a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9029a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 9030a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9031a73027baSmrgesac 9032a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9033a73027baSmrg 9034a73027baSmrg 9035a73027baSmrg case $ac_mode in 9036a73027baSmrg :F) 9037a73027baSmrg # 9038a73027baSmrg # CONFIG_FILE 9039a73027baSmrg # 9040a73027baSmrg 9041a73027baSmrg case $INSTALL in 9042a73027baSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9043a73027baSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9044a73027baSmrg esac 9045a73027baSmrg ac_MKDIR_P=$MKDIR_P 9046a73027baSmrg case $MKDIR_P in 9047a73027baSmrg [\\/$]* | ?:[\\/]* ) ;; 9048a73027baSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 9049a73027baSmrg esac 9050a73027baSmrg_ACEOF 9051a73027baSmrg 9052bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9053a73027baSmrg# If the template does not know about datarootdir, expand it. 9054a73027baSmrg# FIXME: This hack should be removed a few years after 2.60. 9055a73027baSmrgac_datarootdir_hack=; ac_datarootdir_seen= 9056bf4a254eSmrgac_sed_dataroot=' 9057bf4a254eSmrg/datarootdir/ { 9058a73027baSmrg p 9059a73027baSmrg q 9060a73027baSmrg} 9061a73027baSmrg/@datadir@/p 9062a73027baSmrg/@docdir@/p 9063a73027baSmrg/@infodir@/p 9064a73027baSmrg/@localedir@/p 9065bf4a254eSmrg/@mandir@/p' 9066bf4a254eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9067a73027baSmrg*datarootdir*) ac_datarootdir_seen=yes;; 9068a73027baSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9069bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9070bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9071a73027baSmrg_ACEOF 9072bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9073a73027baSmrg ac_datarootdir_hack=' 9074a73027baSmrg s&@datadir@&$datadir&g 9075a73027baSmrg s&@docdir@&$docdir&g 9076a73027baSmrg s&@infodir@&$infodir&g 9077a73027baSmrg s&@localedir@&$localedir&g 9078a73027baSmrg s&@mandir@&$mandir&g 9079bf4a254eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 9080a73027baSmrgesac 9081a73027baSmrg_ACEOF 9082a73027baSmrg 9083a73027baSmrg# Neutralize VPATH when `$srcdir' = `.'. 9084a73027baSmrg# Shell code in configure.ac might set extrasub. 9085a73027baSmrg# FIXME: do we really want to maintain this feature? 9086bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9087bf4a254eSmrgac_sed_extra="$ac_vpsub 9088a73027baSmrg$extrasub 9089a73027baSmrg_ACEOF 9090bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9091a73027baSmrg:t 9092a73027baSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9093bf4a254eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 9094a73027baSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 9095bf4a254eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 9096a73027baSmrgs&@srcdir@&$ac_srcdir&;t t 9097a73027baSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 9098a73027baSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 9099a73027baSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9100a73027baSmrgs&@builddir@&$ac_builddir&;t t 9101a73027baSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 9102a73027baSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9103a73027baSmrgs&@INSTALL@&$ac_INSTALL&;t t 9104a73027baSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 9105a73027baSmrg$ac_datarootdir_hack 9106bf4a254eSmrg" 9107bf4a254eSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 9108bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 9109a73027baSmrg 9110a73027baSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9111a73027baSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9112a73027baSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9113bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9114a73027baSmrgwhich seems to be undefined. Please make sure it is defined." >&5 9115bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9116a73027baSmrgwhich seems to be undefined. Please make sure it is defined." >&2;} 9117a73027baSmrg 9118a73027baSmrg rm -f "$tmp/stdin" 9119a73027baSmrg case $ac_file in 9120bf4a254eSmrg -) cat "$tmp/out" && rm -f "$tmp/out";; 9121bf4a254eSmrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 9122bf4a254eSmrg esac \ 9123bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 9124a73027baSmrg ;; 9125a73027baSmrg :H) 9126a73027baSmrg # 9127a73027baSmrg # CONFIG_HEADER 9128a73027baSmrg # 9129a73027baSmrg if test x"$ac_file" != x-; then 9130bf4a254eSmrg { 9131bf4a254eSmrg $as_echo "/* $configure_input */" \ 9132bf4a254eSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 9133bf4a254eSmrg } >"$tmp/config.h" \ 9134bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 9135bf4a254eSmrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 9136bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9137bf4a254eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 9138a73027baSmrg else 9139bf4a254eSmrg rm -f "$ac_file" 9140bf4a254eSmrg mv "$tmp/config.h" "$ac_file" \ 9141bf4a254eSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 9142a73027baSmrg fi 9143a73027baSmrg else 9144bf4a254eSmrg $as_echo "/* $configure_input */" \ 9145bf4a254eSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 9146bf4a254eSmrg || as_fn_error "could not create -" "$LINENO" 5 9147a73027baSmrg fi 9148bf4a254eSmrg# Compute "$ac_file"'s index in $config_headers. 9149bf4a254eSmrg_am_arg="$ac_file" 9150a73027baSmrg_am_stamp_count=1 9151a73027baSmrgfor _am_header in $config_headers :; do 9152a73027baSmrg case $_am_header in 9153bf4a254eSmrg $_am_arg | $_am_arg:* ) 9154a73027baSmrg break ;; 9155a73027baSmrg * ) 9156a73027baSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9157a73027baSmrg esac 9158a73027baSmrgdone 9159bf4a254eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 9160bf4a254eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9161bf4a254eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 9162bf4a254eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 9163bf4a254eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 9164bf4a254eSmrg$as_echo X"$_am_arg" | 9165a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9166a73027baSmrg s//\1/ 9167a73027baSmrg q 9168a73027baSmrg } 9169a73027baSmrg /^X\(\/\/\)[^/].*/{ 9170a73027baSmrg s//\1/ 9171a73027baSmrg q 9172a73027baSmrg } 9173a73027baSmrg /^X\(\/\/\)$/{ 9174a73027baSmrg s//\1/ 9175a73027baSmrg q 9176a73027baSmrg } 9177a73027baSmrg /^X\(\/\).*/{ 9178a73027baSmrg s//\1/ 9179a73027baSmrg q 9180a73027baSmrg } 9181a73027baSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 9182a73027baSmrg ;; 9183a73027baSmrg 9184bf4a254eSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9185bf4a254eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 9186a73027baSmrg ;; 9187a73027baSmrg esac 9188a73027baSmrg 9189a73027baSmrg 9190a73027baSmrg case $ac_file$ac_mode in 9191bf4a254eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 9192bf4a254eSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 9193bf4a254eSmrg # are listed without --file. Let's play safe and only enable the eval 9194bf4a254eSmrg # if we detect the quoting. 9195bf4a254eSmrg case $CONFIG_FILES in 9196bf4a254eSmrg *\'*) eval set x "$CONFIG_FILES" ;; 9197bf4a254eSmrg *) set x $CONFIG_FILES ;; 9198bf4a254eSmrg esac 9199bf4a254eSmrg shift 9200bf4a254eSmrg for mf 9201bf4a254eSmrg do 9202bf4a254eSmrg # Strip MF so we end up with the name of the file. 9203bf4a254eSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 9204bf4a254eSmrg # Check whether this is an Automake generated Makefile or not. 9205bf4a254eSmrg # We used to match only the files named `Makefile.in', but 9206bf4a254eSmrg # some people rename them; so instead we look at the file content. 9207bf4a254eSmrg # Grep'ing the first line is not enough: some people post-process 9208bf4a254eSmrg # each Makefile.in and add a new line on top of each file to say so. 9209bf4a254eSmrg # Grep'ing the whole file is not good either: AIX grep has a line 9210bf4a254eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 9211bf4a254eSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9212bf4a254eSmrg dirpart=`$as_dirname -- "$mf" || 9213a73027baSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9214a73027baSmrg X"$mf" : 'X\(//\)[^/]' \| \ 9215a73027baSmrg X"$mf" : 'X\(//\)$' \| \ 9216a73027baSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 9217bf4a254eSmrg$as_echo X"$mf" | 9218a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9219a73027baSmrg s//\1/ 9220a73027baSmrg q 9221a73027baSmrg } 9222a73027baSmrg /^X\(\/\/\)[^/].*/{ 9223a73027baSmrg s//\1/ 9224a73027baSmrg q 9225a73027baSmrg } 9226a73027baSmrg /^X\(\/\/\)$/{ 9227a73027baSmrg s//\1/ 9228a73027baSmrg q 9229a73027baSmrg } 9230a73027baSmrg /^X\(\/\).*/{ 9231a73027baSmrg s//\1/ 9232a73027baSmrg q 9233a73027baSmrg } 9234a73027baSmrg s/.*/./; q'` 9235bf4a254eSmrg else 9236bf4a254eSmrg continue 9237bf4a254eSmrg fi 9238bf4a254eSmrg # Extract the definition of DEPDIR, am__include, and am__quote 9239bf4a254eSmrg # from the Makefile without running `make'. 9240bf4a254eSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9241bf4a254eSmrg test -z "$DEPDIR" && continue 9242bf4a254eSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 9243bf4a254eSmrg test -z "am__include" && continue 9244bf4a254eSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9245bf4a254eSmrg # When using ansi2knr, U may be empty or an underscore; expand it 9246bf4a254eSmrg U=`sed -n 's/^U = //p' < "$mf"` 9247bf4a254eSmrg # Find all dependency output files, they are included files with 9248bf4a254eSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 9249bf4a254eSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 9250bf4a254eSmrg # expansion. 9251bf4a254eSmrg for file in `sed -n " 9252bf4a254eSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9253bf4a254eSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9254bf4a254eSmrg # Make sure the directory exists. 9255bf4a254eSmrg test -f "$dirpart/$file" && continue 9256bf4a254eSmrg fdir=`$as_dirname -- "$file" || 9257a73027baSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9258a73027baSmrg X"$file" : 'X\(//\)[^/]' \| \ 9259a73027baSmrg X"$file" : 'X\(//\)$' \| \ 9260a73027baSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 9261bf4a254eSmrg$as_echo X"$file" | 9262a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9263a73027baSmrg s//\1/ 9264a73027baSmrg q 9265a73027baSmrg } 9266a73027baSmrg /^X\(\/\/\)[^/].*/{ 9267a73027baSmrg s//\1/ 9268a73027baSmrg q 9269a73027baSmrg } 9270a73027baSmrg /^X\(\/\/\)$/{ 9271a73027baSmrg s//\1/ 9272a73027baSmrg q 9273a73027baSmrg } 9274a73027baSmrg /^X\(\/\).*/{ 9275a73027baSmrg s//\1/ 9276a73027baSmrg q 9277a73027baSmrg } 9278a73027baSmrg s/.*/./; q'` 9279bf4a254eSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 9280bf4a254eSmrg # echo "creating $dirpart/$file" 9281bf4a254eSmrg echo '# dummy' > "$dirpart/$file" 9282a73027baSmrg done 9283a73027baSmrg done 9284bf4a254eSmrg} 9285a73027baSmrg ;; 9286a73027baSmrg 9287a73027baSmrg esac 9288a73027baSmrgdone # for ac_tag 9289a73027baSmrg 9290a73027baSmrg 9291bf4a254eSmrgas_fn_exit 0 9292a73027baSmrg_ACEOF 9293a73027baSmrgac_clean_files=$ac_clean_files_save 9294a73027baSmrg 9295bf4a254eSmrgtest $ac_write_fail = 0 || 9296bf4a254eSmrg as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 9297bf4a254eSmrg 9298a73027baSmrg 9299a73027baSmrg# configure is writing to config.log, and then calls config.status. 9300a73027baSmrg# config.status does its own redirection, appending to config.log. 9301a73027baSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 9302a73027baSmrg# by configure, so config.status won't be able to write to it; its 9303a73027baSmrg# output is simply discarded. So we exec the FD to /dev/null, 9304a73027baSmrg# effectively closing config.log, so it can be properly (re)opened and 9305a73027baSmrg# appended to by config.status. When coming back to configure, we 9306a73027baSmrg# need to make the FD available again. 9307a73027baSmrgif test "$no_create" != yes; then 9308a73027baSmrg ac_cs_success=: 9309a73027baSmrg ac_config_status_args= 9310a73027baSmrg test "$silent" = yes && 9311a73027baSmrg ac_config_status_args="$ac_config_status_args --quiet" 9312a73027baSmrg exec 5>/dev/null 9313a73027baSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9314a73027baSmrg exec 5>>config.log 9315a73027baSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9316a73027baSmrg # would make configure fail if this is the last instruction. 9317bf4a254eSmrg $ac_cs_success || as_fn_exit $? 9318bf4a254eSmrgfi 9319bf4a254eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9320bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9321bf4a254eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9322a73027baSmrgfi 9323a73027baSmrg 9324