configure revision c81d8f5e
1a73027baSmrg#! /bin/sh 2a73027baSmrg# Guess values for system-dependent variables and create Makefiles. 3c81d8f5eSmrg# Generated by GNU Autoconf 2.68 for xinit 1.3.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, 929004570Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 1029004570Smrg# Foundation, 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. 9429004570Smrgas_myself= 95bf4a254eSmrgcase $0 in #(( 96a73027baSmrg *[\\/]* ) as_myself=$0 ;; 97a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98a73027baSmrgfor as_dir in $PATH 99a73027baSmrgdo 100a73027baSmrg IFS=$as_save_IFS 101a73027baSmrg test -z "$as_dir" && as_dir=. 102bf4a254eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103bf4a254eSmrg done 104a73027baSmrgIFS=$as_save_IFS 105a73027baSmrg 106a73027baSmrg ;; 107a73027baSmrgesac 108a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109a73027baSmrg# in which case we are not to be found in the path. 110a73027baSmrgif test "x$as_myself" = x; then 111a73027baSmrg as_myself=$0 112a73027baSmrgfi 113a73027baSmrgif test ! -f "$as_myself"; then 114bf4a254eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115bf4a254eSmrg exit 1 116a73027baSmrgfi 117a73027baSmrg 118bf4a254eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 119bf4a254eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120bf4a254eSmrg# suppresses any "Segmentation fault" message there. '((' could 121bf4a254eSmrg# trigger a bug in pdksh 5.2.14. 122bf4a254eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123bf4a254eSmrgdo eval test x\${$as_var+set} = xset \ 124bf4a254eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125a73027baSmrgdone 126a73027baSmrgPS1='$ ' 127a73027baSmrgPS2='> ' 128a73027baSmrgPS4='+ ' 129a73027baSmrg 130a73027baSmrg# NLS nuisances. 131bf4a254eSmrgLC_ALL=C 132bf4a254eSmrgexport LC_ALL 133bf4a254eSmrgLANGUAGE=C 134bf4a254eSmrgexport LANGUAGE 135bf4a254eSmrg 136bf4a254eSmrg# CDPATH. 137bf4a254eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138bf4a254eSmrg 139bf4a254eSmrgif test "x$CONFIG_SHELL" = x; then 140bf4a254eSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141bf4a254eSmrg emulate sh 142bf4a254eSmrg NULLCMD=: 143bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144bf4a254eSmrg # is contrary to our usage. Disable this feature. 145bf4a254eSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146bf4a254eSmrg setopt NO_GLOB_SUBST 147bf4a254eSmrgelse 148bf4a254eSmrg case \`(set -o) 2>/dev/null\` in #( 149bf4a254eSmrg *posix*) : 150bf4a254eSmrg set -o posix ;; #( 151bf4a254eSmrg *) : 152bf4a254eSmrg ;; 153bf4a254eSmrgesac 154bf4a254eSmrgfi 155bf4a254eSmrg" 156bf4a254eSmrg as_required="as_fn_return () { (exit \$1); } 157bf4a254eSmrgas_fn_success () { as_fn_return 0; } 158bf4a254eSmrgas_fn_failure () { as_fn_return 1; } 159bf4a254eSmrgas_fn_ret_success () { return 0; } 160bf4a254eSmrgas_fn_ret_failure () { return 1; } 161bf4a254eSmrg 162bf4a254eSmrgexitcode=0 163bf4a254eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164bf4a254eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165bf4a254eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166bf4a254eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167bf4a254eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168bf4a254eSmrg 169bf4a254eSmrgelse 170bf4a254eSmrg exitcode=1; echo positional parameters were not saved. 171bf4a254eSmrgfi 172bf4a254eSmrgtest x\$exitcode = x0 || exit 1" 173bf4a254eSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174bf4a254eSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175bf4a254eSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176bf4a254eSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177bf4a254eSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 178bf4a254eSmrg if (eval "$as_required") 2>/dev/null; then : 179bf4a254eSmrg as_have_required=yes 180bf4a254eSmrgelse 181bf4a254eSmrg as_have_required=no 182bf4a254eSmrgfi 183bf4a254eSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184bf4a254eSmrg 185bf4a254eSmrgelse 186bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187bf4a254eSmrgas_found=false 188bf4a254eSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189a73027baSmrgdo 190bf4a254eSmrg IFS=$as_save_IFS 191bf4a254eSmrg test -z "$as_dir" && as_dir=. 192bf4a254eSmrg as_found=: 193bf4a254eSmrg case $as_dir in #( 194bf4a254eSmrg /*) 195bf4a254eSmrg for as_base in sh bash ksh sh5; do 196bf4a254eSmrg # Try only shells that exist, to save several forks. 197bf4a254eSmrg as_shell=$as_dir/$as_base 198bf4a254eSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199bf4a254eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200bf4a254eSmrg CONFIG_SHELL=$as_shell as_have_required=yes 201bf4a254eSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202bf4a254eSmrg break 2 203bf4a254eSmrgfi 204bf4a254eSmrgfi 205bf4a254eSmrg done;; 206bf4a254eSmrg esac 207bf4a254eSmrg as_found=false 208bf4a254eSmrgdone 209bf4a254eSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210bf4a254eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211bf4a254eSmrg CONFIG_SHELL=$SHELL as_have_required=yes 212bf4a254eSmrgfi; } 213bf4a254eSmrgIFS=$as_save_IFS 214bf4a254eSmrg 215bf4a254eSmrg 216bf4a254eSmrg if test "x$CONFIG_SHELL" != x; then : 217bf4a254eSmrg # We cannot yet assume a decent shell, so we have to provide a 218bf4a254eSmrg # neutralization value for shells without unset; and this also 219bf4a254eSmrg # works around shells that cannot unset nonexistent variables. 22029004570Smrg # Preserve -v and -x to the replacement shell. 221bf4a254eSmrg BASH_ENV=/dev/null 222bf4a254eSmrg ENV=/dev/null 223bf4a254eSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224bf4a254eSmrg export CONFIG_SHELL 22529004570Smrg case $- in # (((( 22629004570Smrg *v*x* | *x*v* ) as_opts=-vx ;; 22729004570Smrg *v* ) as_opts=-v ;; 22829004570Smrg *x* ) as_opts=-x ;; 22929004570Smrg * ) as_opts= ;; 23029004570Smrg esac 23129004570Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232bf4a254eSmrgfi 233bf4a254eSmrg 234bf4a254eSmrg if test x$as_have_required = xno; then : 235bf4a254eSmrg $as_echo "$0: This script requires a shell more modern than all" 236bf4a254eSmrg $as_echo "$0: the shells that I found on your system." 237bf4a254eSmrg if test x${ZSH_VERSION+set} = xset ; then 238bf4a254eSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239bf4a254eSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240a73027baSmrg else 241bf4a254eSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242bf4a254eSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243bf4a254eSmrg$0: about your system, including any error possibly output 244bf4a254eSmrg$0: before this message. Then install a modern shell, or 245bf4a254eSmrg$0: manually run the script under such a shell if you do 246bf4a254eSmrg$0: have one." 247a73027baSmrg fi 248bf4a254eSmrg exit 1 249bf4a254eSmrgfi 250bf4a254eSmrgfi 251bf4a254eSmrgfi 252bf4a254eSmrgSHELL=${CONFIG_SHELL-/bin/sh} 253bf4a254eSmrgexport SHELL 254bf4a254eSmrg# Unset more variables known to interfere with behavior of common tools. 255bf4a254eSmrgCLICOLOR_FORCE= GREP_OPTIONS= 256bf4a254eSmrgunset CLICOLOR_FORCE GREP_OPTIONS 257bf4a254eSmrg 258bf4a254eSmrg## --------------------- ## 259bf4a254eSmrg## M4sh Shell Functions. ## 260bf4a254eSmrg## --------------------- ## 261bf4a254eSmrg# as_fn_unset VAR 262bf4a254eSmrg# --------------- 263bf4a254eSmrg# Portably unset VAR. 264bf4a254eSmrgas_fn_unset () 265bf4a254eSmrg{ 266bf4a254eSmrg { eval $1=; unset $1;} 267bf4a254eSmrg} 268bf4a254eSmrgas_unset=as_fn_unset 269bf4a254eSmrg 270bf4a254eSmrg# as_fn_set_status STATUS 271bf4a254eSmrg# ----------------------- 272bf4a254eSmrg# Set $? to STATUS, without forking. 273bf4a254eSmrgas_fn_set_status () 274bf4a254eSmrg{ 275bf4a254eSmrg return $1 276bf4a254eSmrg} # as_fn_set_status 277bf4a254eSmrg 278bf4a254eSmrg# as_fn_exit STATUS 279bf4a254eSmrg# ----------------- 280bf4a254eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281bf4a254eSmrgas_fn_exit () 282bf4a254eSmrg{ 283bf4a254eSmrg set +e 284bf4a254eSmrg as_fn_set_status $1 285bf4a254eSmrg exit $1 286bf4a254eSmrg} # as_fn_exit 287bf4a254eSmrg 288bf4a254eSmrg# as_fn_mkdir_p 289bf4a254eSmrg# ------------- 290bf4a254eSmrg# Create "$as_dir" as a directory, including parents if necessary. 291bf4a254eSmrgas_fn_mkdir_p () 292bf4a254eSmrg{ 293bf4a254eSmrg 294bf4a254eSmrg case $as_dir in #( 295bf4a254eSmrg -*) as_dir=./$as_dir;; 296bf4a254eSmrg esac 297bf4a254eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 298bf4a254eSmrg as_dirs= 299bf4a254eSmrg while :; do 300bf4a254eSmrg case $as_dir in #( 301bf4a254eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302bf4a254eSmrg *) as_qdir=$as_dir;; 303bf4a254eSmrg esac 304bf4a254eSmrg as_dirs="'$as_qdir' $as_dirs" 305bf4a254eSmrg as_dir=`$as_dirname -- "$as_dir" || 306bf4a254eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307bf4a254eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308bf4a254eSmrg X"$as_dir" : 'X\(//\)$' \| \ 309bf4a254eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310bf4a254eSmrg$as_echo X"$as_dir" | 311bf4a254eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312bf4a254eSmrg s//\1/ 313bf4a254eSmrg q 314bf4a254eSmrg } 315bf4a254eSmrg /^X\(\/\/\)[^/].*/{ 316bf4a254eSmrg s//\1/ 317bf4a254eSmrg q 318bf4a254eSmrg } 319bf4a254eSmrg /^X\(\/\/\)$/{ 320bf4a254eSmrg s//\1/ 321bf4a254eSmrg q 322bf4a254eSmrg } 323bf4a254eSmrg /^X\(\/\).*/{ 324bf4a254eSmrg s//\1/ 325bf4a254eSmrg q 326bf4a254eSmrg } 327bf4a254eSmrg s/.*/./; q'` 328bf4a254eSmrg test -d "$as_dir" && break 329bf4a254eSmrg done 330bf4a254eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 33129004570Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332bf4a254eSmrg 333bf4a254eSmrg 334bf4a254eSmrg} # as_fn_mkdir_p 335bf4a254eSmrg# as_fn_append VAR VALUE 336bf4a254eSmrg# ---------------------- 337bf4a254eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338bf4a254eSmrg# advantage of any shell optimizations that allow amortized linear growth over 339bf4a254eSmrg# repeated appends, instead of the typical quadratic growth present in naive 340bf4a254eSmrg# implementations. 341bf4a254eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342bf4a254eSmrg eval 'as_fn_append () 343bf4a254eSmrg { 344bf4a254eSmrg eval $1+=\$2 345bf4a254eSmrg }' 346bf4a254eSmrgelse 347bf4a254eSmrg as_fn_append () 348bf4a254eSmrg { 349bf4a254eSmrg eval $1=\$$1\$2 350bf4a254eSmrg } 351bf4a254eSmrgfi # as_fn_append 352bf4a254eSmrg 353bf4a254eSmrg# as_fn_arith ARG... 354bf4a254eSmrg# ------------------ 355bf4a254eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356bf4a254eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357bf4a254eSmrg# must be portable across $(()) and expr. 358bf4a254eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359bf4a254eSmrg eval 'as_fn_arith () 360bf4a254eSmrg { 361bf4a254eSmrg as_val=$(( $* )) 362bf4a254eSmrg }' 363bf4a254eSmrgelse 364bf4a254eSmrg as_fn_arith () 365bf4a254eSmrg { 366bf4a254eSmrg as_val=`expr "$@" || test $? -eq 1` 367bf4a254eSmrg } 368bf4a254eSmrgfi # as_fn_arith 369bf4a254eSmrg 370bf4a254eSmrg 37129004570Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 37229004570Smrg# ---------------------------------------- 373bf4a254eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374bf4a254eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37529004570Smrg# script with STATUS, using 1 if that was 0. 376bf4a254eSmrgas_fn_error () 377bf4a254eSmrg{ 37829004570Smrg as_status=$1; test $as_status -eq 0 && as_status=1 37929004570Smrg if test "$4"; then 38029004570Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 38129004570Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382bf4a254eSmrg fi 38329004570Smrg $as_echo "$as_me: error: $2" >&2 384bf4a254eSmrg as_fn_exit $as_status 385bf4a254eSmrg} # as_fn_error 386a73027baSmrg 387a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 388a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389a73027baSmrg as_expr=expr 390a73027baSmrgelse 391a73027baSmrg as_expr=false 392a73027baSmrgfi 393a73027baSmrg 394a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395a73027baSmrg as_basename=basename 396a73027baSmrgelse 397a73027baSmrg as_basename=false 398a73027baSmrgfi 399a73027baSmrg 400bf4a254eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401bf4a254eSmrg as_dirname=dirname 402bf4a254eSmrgelse 403bf4a254eSmrg as_dirname=false 404bf4a254eSmrgfi 405a73027baSmrg 406a73027baSmrgas_me=`$as_basename -- "$0" || 407a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408a73027baSmrg X"$0" : 'X\(//\)$' \| \ 409a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410bf4a254eSmrg$as_echo X/"$0" | 411a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412a73027baSmrg s//\1/ 413a73027baSmrg q 414a73027baSmrg } 415a73027baSmrg /^X\/\(\/\/\)$/{ 416a73027baSmrg s//\1/ 417a73027baSmrg q 418a73027baSmrg } 419a73027baSmrg /^X\/\(\/\).*/{ 420a73027baSmrg s//\1/ 421a73027baSmrg q 422a73027baSmrg } 423a73027baSmrg s/.*/./; q'` 424a73027baSmrg 425bf4a254eSmrg# Avoid depending upon Character Ranges. 426bf4a254eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427bf4a254eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428bf4a254eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429bf4a254eSmrgas_cr_digits='0123456789' 430bf4a254eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 431a73027baSmrg 432a73027baSmrg 433bf4a254eSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434bf4a254eSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435bf4a254eSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436bf4a254eSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437bf4a254eSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438bf4a254eSmrg sed -n ' 439bf4a254eSmrg p 440bf4a254eSmrg /[$]LINENO/= 441bf4a254eSmrg ' <$as_myself | 442bf4a254eSmrg sed ' 443bf4a254eSmrg s/[$]LINENO.*/&-/ 444bf4a254eSmrg t lineno 445bf4a254eSmrg b 446bf4a254eSmrg :lineno 447bf4a254eSmrg N 448bf4a254eSmrg :loop 449bf4a254eSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450bf4a254eSmrg t loop 451bf4a254eSmrg s/-\n.*// 452bf4a254eSmrg ' >$as_me.lineno && 453bf4a254eSmrg chmod +x "$as_me.lineno" || 454bf4a254eSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455a73027baSmrg 456bf4a254eSmrg # Don't try to exec as it changes $[0], causing all sort of problems 457bf4a254eSmrg # (the dirname of $[0] is not the place where we might find the 458bf4a254eSmrg # original and so on. Autoconf is especially sensitive to this). 459bf4a254eSmrg . "./$as_me.lineno" 460bf4a254eSmrg # Exit status is that of the last command. 461bf4a254eSmrg exit 462a73027baSmrg} 463a73027baSmrg 464bf4a254eSmrgECHO_C= ECHO_N= ECHO_T= 465bf4a254eSmrgcase `echo -n x` in #((((( 466bf4a254eSmrg-n*) 467bf4a254eSmrg case `echo 'xy\c'` in 468bf4a254eSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469bf4a254eSmrg xy) ECHO_C='\c';; 470bf4a254eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471bf4a254eSmrg ECHO_T=' ';; 472bf4a254eSmrg esac;; 473bf4a254eSmrg*) 474bf4a254eSmrg ECHO_N='-n';; 475bf4a254eSmrgesac 476a73027baSmrg 477bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file 478bf4a254eSmrgif test -d conf$$.dir; then 479bf4a254eSmrg rm -f conf$$.dir/conf$$.file 480a73027baSmrgelse 481bf4a254eSmrg rm -f conf$$.dir 482bf4a254eSmrg mkdir conf$$.dir 2>/dev/null 483bf4a254eSmrgfi 484bf4a254eSmrgif (echo >conf$$.file) 2>/dev/null; then 485bf4a254eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486bf4a254eSmrg as_ln_s='ln -s' 487bf4a254eSmrg # ... but there are two gotchas: 488bf4a254eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489bf4a254eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490bf4a254eSmrg # In both cases, we have to default to `cp -p'. 491bf4a254eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492bf4a254eSmrg as_ln_s='cp -p' 493bf4a254eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 494bf4a254eSmrg as_ln_s=ln 495bf4a254eSmrg else 496bf4a254eSmrg as_ln_s='cp -p' 497bf4a254eSmrg fi 498a73027baSmrgelse 499bf4a254eSmrg as_ln_s='cp -p' 500a73027baSmrgfi 501bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502bf4a254eSmrgrmdir conf$$.dir 2>/dev/null 503a73027baSmrg 504bf4a254eSmrgif mkdir -p . 2>/dev/null; then 505bf4a254eSmrg as_mkdir_p='mkdir -p "$as_dir"' 506a73027baSmrgelse 507bf4a254eSmrg test -d ./-p && rmdir ./-p 508bf4a254eSmrg as_mkdir_p=false 509bf4a254eSmrgfi 510a73027baSmrg 511bf4a254eSmrgif test -x / >/dev/null 2>&1; then 512bf4a254eSmrg as_test_x='test -x' 513a73027baSmrgelse 514bf4a254eSmrg if ls -dL / >/dev/null 2>&1; then 515bf4a254eSmrg as_ls_L_option=L 516bf4a254eSmrg else 517bf4a254eSmrg as_ls_L_option= 518bf4a254eSmrg fi 519bf4a254eSmrg as_test_x=' 520bf4a254eSmrg eval sh -c '\'' 521bf4a254eSmrg if test -d "$1"; then 522bf4a254eSmrg test -d "$1/."; 523bf4a254eSmrg else 524bf4a254eSmrg case $1 in #( 525bf4a254eSmrg -*)set "./$1";; 526bf4a254eSmrg esac; 527bf4a254eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528bf4a254eSmrg ???[sx]*):;;*)false;;esac;fi 529bf4a254eSmrg '\'' sh 530bf4a254eSmrg ' 531a73027baSmrgfi 532bf4a254eSmrgas_executable_p=$as_test_x 533a73027baSmrg 534bf4a254eSmrg# Sed expression to map a string onto a valid CPP name. 535bf4a254eSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536a73027baSmrg 537bf4a254eSmrg# Sed expression to map a string onto a valid variable name. 538bf4a254eSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539a73027baSmrg 540a73027baSmrg 541bf4a254eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542bf4a254eSmrgexec 6>&1 543a73027baSmrg 544a73027baSmrg# Name of the host. 54529004570Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546a73027baSmrg# so uname gets run too. 547a73027baSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548a73027baSmrg 549a73027baSmrg# 550a73027baSmrg# Initializations. 551a73027baSmrg# 552a73027baSmrgac_default_prefix=/usr/local 553a73027baSmrgac_clean_files= 554a73027baSmrgac_config_libobj_dir=. 555a73027baSmrgLIBOBJS= 556a73027baSmrgcross_compiling=no 557a73027baSmrgsubdirs= 558a73027baSmrgMFLAGS= 559a73027baSmrgMAKEFLAGS= 560a73027baSmrg 561a73027baSmrg# Identity of this package. 562a73027baSmrgPACKAGE_NAME='xinit' 563a73027baSmrgPACKAGE_TARNAME='xinit' 564c81d8f5eSmrgPACKAGE_VERSION='1.3.1' 565c81d8f5eSmrgPACKAGE_STRING='xinit 1.3.1' 566a73027baSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567bf4a254eSmrgPACKAGE_URL='' 568a73027baSmrg 569c81d8f5eSmrgac_unique_file="Makefile.am" 570a73027baSmrg# Factoring default headers for most tests. 571a73027baSmrgac_includes_default="\ 572a73027baSmrg#include <stdio.h> 573a73027baSmrg#ifdef HAVE_SYS_TYPES_H 574a73027baSmrg# include <sys/types.h> 575a73027baSmrg#endif 576a73027baSmrg#ifdef HAVE_SYS_STAT_H 577a73027baSmrg# include <sys/stat.h> 578a73027baSmrg#endif 579a73027baSmrg#ifdef STDC_HEADERS 580a73027baSmrg# include <stdlib.h> 581a73027baSmrg# include <stddef.h> 582a73027baSmrg#else 583a73027baSmrg# ifdef HAVE_STDLIB_H 584a73027baSmrg# include <stdlib.h> 585a73027baSmrg# endif 586a73027baSmrg#endif 587a73027baSmrg#ifdef HAVE_STRING_H 588a73027baSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589a73027baSmrg# include <memory.h> 590a73027baSmrg# endif 591a73027baSmrg# include <string.h> 592a73027baSmrg#endif 593a73027baSmrg#ifdef HAVE_STRINGS_H 594a73027baSmrg# include <strings.h> 595a73027baSmrg#endif 596a73027baSmrg#ifdef HAVE_INTTYPES_H 597a73027baSmrg# include <inttypes.h> 598a73027baSmrg#endif 599a73027baSmrg#ifdef HAVE_STDINT_H 600a73027baSmrg# include <stdint.h> 601a73027baSmrg#endif 602a73027baSmrg#ifdef HAVE_UNISTD_H 603a73027baSmrg# include <unistd.h> 604a73027baSmrg#endif" 605a73027baSmrg 606bf4a254eSmrgac_subst_vars='am__EXEEXT_FALSE 607bf4a254eSmrgam__EXEEXT_TRUE 608bf4a254eSmrgLTLIBOBJS 609bf4a254eSmrgLIBOBJS 610bf4a254eSmrgXINITDIR 611a73027baSmrgXINIT 612bf4a254eSmrgXAUTH 613bf4a254eSmrgXSERVER 614bf4a254eSmrgXTERM 615bf4a254eSmrgXCLOCK 616bf4a254eSmrgTWM 617bf4a254eSmrgXMODMAP 618bf4a254eSmrgXRDB 619bf4a254eSmrgXCONFIGFILEMAN 620bf4a254eSmrgXCONFIGFILE 621bf4a254eSmrgXSERVERNAME 622c81d8f5eSmrgSCOMAN 623bf4a254eSmrgSHELL_CMD 624bf4a254eSmrgSTARTX_COOKIE_FLAGS 625bf4a254eSmrgMCOOKIE 626bf4a254eSmrgXINIT_LIBS 627bf4a254eSmrgXINIT_CFLAGS 628bf4a254eSmrgTIGER_LAUNCHD_FALSE 629bf4a254eSmrgTIGER_LAUNCHD_TRUE 630bf4a254eSmrgLAUNCHD_FALSE 631bf4a254eSmrgLAUNCHD_TRUE 632c81d8f5eSmrgbundleidprefix 633bf4a254eSmrglaunchdaemonsdir 634bf4a254eSmrglaunchagentsdir 635bf4a254eSmrgLAUNCHD 636bf4a254eSmrgRAWCPPFLAGS 637bf4a254eSmrgRAWCPP 63829004570SmrgAM_BACKSLASH 63929004570SmrgAM_DEFAULT_VERBOSITY 64029004570SmrgMAN_SUBSTS 64129004570SmrgXORG_MAN_PAGE 642a73027baSmrgADMIN_MAN_DIR 643bf4a254eSmrgDRIVER_MAN_DIR 644bf4a254eSmrgMISC_MAN_DIR 645bf4a254eSmrgFILE_MAN_DIR 646bf4a254eSmrgLIB_MAN_DIR 647bf4a254eSmrgAPP_MAN_DIR 648bf4a254eSmrgADMIN_MAN_SUFFIX 649bf4a254eSmrgDRIVER_MAN_SUFFIX 650bf4a254eSmrgMISC_MAN_SUFFIX 651bf4a254eSmrgFILE_MAN_SUFFIX 652bf4a254eSmrgLIB_MAN_SUFFIX 653bf4a254eSmrgAPP_MAN_SUFFIX 65429004570SmrgSED 655bf4a254eSmrghost_os 656bf4a254eSmrghost_vendor 657bf4a254eSmrghost_cpu 658bf4a254eSmrghost 659bf4a254eSmrgbuild_os 660bf4a254eSmrgbuild_vendor 661bf4a254eSmrgbuild_cpu 662bf4a254eSmrgbuild 663bf4a254eSmrgINSTALL_CMD 664c81d8f5eSmrgPKG_CONFIG_LIBDIR 665c81d8f5eSmrgPKG_CONFIG_PATH 666bf4a254eSmrgPKG_CONFIG 667bf4a254eSmrgCHANGELOG_CMD 668c81d8f5eSmrgSTRICT_CFLAGS 669bf4a254eSmrgCWARNFLAGS 670bf4a254eSmrgEGREP 671bf4a254eSmrgGREP 672bf4a254eSmrgCPP 673bf4a254eSmrgam__fastdepCC_FALSE 674bf4a254eSmrgam__fastdepCC_TRUE 675bf4a254eSmrgCCDEPMODE 676bf4a254eSmrgAMDEPBACKSLASH 677bf4a254eSmrgAMDEP_FALSE 678bf4a254eSmrgAMDEP_TRUE 679bf4a254eSmrgam__quote 680bf4a254eSmrgam__include 681bf4a254eSmrgDEPDIR 682bf4a254eSmrgOBJEXT 683bf4a254eSmrgEXEEXT 684bf4a254eSmrgac_ct_CC 685bf4a254eSmrgCPPFLAGS 686bf4a254eSmrgLDFLAGS 687bf4a254eSmrgCFLAGS 688bf4a254eSmrgCC 689bf4a254eSmrgMAINT 690bf4a254eSmrgMAINTAINER_MODE_FALSE 691bf4a254eSmrgMAINTAINER_MODE_TRUE 692bf4a254eSmrgam__untar 693bf4a254eSmrgam__tar 694bf4a254eSmrgAMTAR 695bf4a254eSmrgam__leading_dot 696bf4a254eSmrgSET_MAKE 697bf4a254eSmrgAWK 698bf4a254eSmrgmkdir_p 699bf4a254eSmrgMKDIR_P 700bf4a254eSmrgINSTALL_STRIP_PROGRAM 701bf4a254eSmrgSTRIP 702bf4a254eSmrginstall_sh 703bf4a254eSmrgMAKEINFO 704bf4a254eSmrgAUTOHEADER 705bf4a254eSmrgAUTOMAKE 706bf4a254eSmrgAUTOCONF 707bf4a254eSmrgACLOCAL 708bf4a254eSmrgVERSION 709bf4a254eSmrgPACKAGE 710bf4a254eSmrgCYGPATH_W 711bf4a254eSmrgam__isrc 712bf4a254eSmrgINSTALL_DATA 713bf4a254eSmrgINSTALL_SCRIPT 714bf4a254eSmrgINSTALL_PROGRAM 715bf4a254eSmrgtarget_alias 716bf4a254eSmrghost_alias 717bf4a254eSmrgbuild_alias 718bf4a254eSmrgLIBS 719bf4a254eSmrgECHO_T 720bf4a254eSmrgECHO_N 721bf4a254eSmrgECHO_C 722bf4a254eSmrgDEFS 723bf4a254eSmrgmandir 724bf4a254eSmrglocaledir 725bf4a254eSmrglibdir 726bf4a254eSmrgpsdir 727bf4a254eSmrgpdfdir 728bf4a254eSmrgdvidir 729bf4a254eSmrghtmldir 730bf4a254eSmrginfodir 731bf4a254eSmrgdocdir 732bf4a254eSmrgoldincludedir 733bf4a254eSmrgincludedir 734bf4a254eSmrglocalstatedir 735bf4a254eSmrgsharedstatedir 736bf4a254eSmrgsysconfdir 737bf4a254eSmrgdatadir 738bf4a254eSmrgdatarootdir 739bf4a254eSmrglibexecdir 740bf4a254eSmrgsbindir 741bf4a254eSmrgbindir 742bf4a254eSmrgprogram_transform_name 743bf4a254eSmrgprefix 744bf4a254eSmrgexec_prefix 745bf4a254eSmrgPACKAGE_URL 746bf4a254eSmrgPACKAGE_BUGREPORT 747bf4a254eSmrgPACKAGE_STRING 748bf4a254eSmrgPACKAGE_VERSION 749bf4a254eSmrgPACKAGE_TARNAME 750bf4a254eSmrgPACKAGE_NAME 751bf4a254eSmrgPATH_SEPARATOR 752bf4a254eSmrgSHELL' 753a73027baSmrgac_subst_files='' 754bf4a254eSmrgac_user_opts=' 755bf4a254eSmrgenable_option_checking 756bf4a254eSmrgenable_maintainer_mode 757bf4a254eSmrgenable_dependency_tracking 758bf4a254eSmrgenable_strict_compilation 75929004570Smrgenable_silent_rules 760bf4a254eSmrgwith_xrdb 761bf4a254eSmrgwith_xmodmap 762bf4a254eSmrgwith_twm 763bf4a254eSmrgwith_xclock 764bf4a254eSmrgwith_xterm 765bf4a254eSmrgwith_xserver 766bf4a254eSmrgwith_xauth 767bf4a254eSmrgwith_xinit 768bf4a254eSmrgwith_xinitdir 769bf4a254eSmrgwith_launchd 770bf4a254eSmrgwith_launchagents_dir 771bf4a254eSmrgwith_launchdaemons_dir 772bf4a254eSmrgwith_launchd_id_prefix 773c81d8f5eSmrgwith_bundle_id_prefix 774bf4a254eSmrg' 775a73027baSmrg ac_precious_vars='build_alias 776a73027baSmrghost_alias 777a73027baSmrgtarget_alias 778a73027baSmrgCC 779a73027baSmrgCFLAGS 780a73027baSmrgLDFLAGS 781a73027baSmrgLIBS 782a73027baSmrgCPPFLAGS 783a73027baSmrgCPP 784a73027baSmrgPKG_CONFIG 785c81d8f5eSmrgPKG_CONFIG_PATH 786c81d8f5eSmrgPKG_CONFIG_LIBDIR 787a73027baSmrgXINIT_CFLAGS 788a73027baSmrgXINIT_LIBS' 789a73027baSmrg 790a73027baSmrg 791a73027baSmrg# Initialize some variables set by options. 792a73027baSmrgac_init_help= 793a73027baSmrgac_init_version=false 794bf4a254eSmrgac_unrecognized_opts= 795bf4a254eSmrgac_unrecognized_sep= 796a73027baSmrg# The variables have the same names as the options, with 797a73027baSmrg# dashes changed to underlines. 798a73027baSmrgcache_file=/dev/null 799a73027baSmrgexec_prefix=NONE 800a73027baSmrgno_create= 801a73027baSmrgno_recursion= 802a73027baSmrgprefix=NONE 803a73027baSmrgprogram_prefix=NONE 804a73027baSmrgprogram_suffix=NONE 805a73027baSmrgprogram_transform_name=s,x,x, 806a73027baSmrgsilent= 807a73027baSmrgsite= 808a73027baSmrgsrcdir= 809a73027baSmrgverbose= 810a73027baSmrgx_includes=NONE 811a73027baSmrgx_libraries=NONE 812a73027baSmrg 813a73027baSmrg# Installation directory options. 814a73027baSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 815a73027baSmrg# and all the variables that are supposed to be based on exec_prefix 816a73027baSmrg# by default will actually change. 817a73027baSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 818a73027baSmrg# (The list follows the same order as the GNU Coding Standards.) 819a73027baSmrgbindir='${exec_prefix}/bin' 820a73027baSmrgsbindir='${exec_prefix}/sbin' 821a73027baSmrglibexecdir='${exec_prefix}/libexec' 822a73027baSmrgdatarootdir='${prefix}/share' 823a73027baSmrgdatadir='${datarootdir}' 824a73027baSmrgsysconfdir='${prefix}/etc' 825a73027baSmrgsharedstatedir='${prefix}/com' 826a73027baSmrglocalstatedir='${prefix}/var' 827a73027baSmrgincludedir='${prefix}/include' 828a73027baSmrgoldincludedir='/usr/include' 829a73027baSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 830a73027baSmrginfodir='${datarootdir}/info' 831a73027baSmrghtmldir='${docdir}' 832a73027baSmrgdvidir='${docdir}' 833a73027baSmrgpdfdir='${docdir}' 834a73027baSmrgpsdir='${docdir}' 835a73027baSmrglibdir='${exec_prefix}/lib' 836a73027baSmrglocaledir='${datarootdir}/locale' 837a73027baSmrgmandir='${datarootdir}/man' 838a73027baSmrg 839a73027baSmrgac_prev= 840a73027baSmrgac_dashdash= 841a73027baSmrgfor ac_option 842a73027baSmrgdo 843a73027baSmrg # If the previous option needs an argument, assign it. 844a73027baSmrg if test -n "$ac_prev"; then 845a73027baSmrg eval $ac_prev=\$ac_option 846a73027baSmrg ac_prev= 847a73027baSmrg continue 848a73027baSmrg fi 849a73027baSmrg 850a73027baSmrg case $ac_option in 85129004570Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 85229004570Smrg *=) ac_optarg= ;; 85329004570Smrg *) ac_optarg=yes ;; 854a73027baSmrg esac 855a73027baSmrg 856a73027baSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 857a73027baSmrg 858a73027baSmrg case $ac_dashdash$ac_option in 859a73027baSmrg --) 860a73027baSmrg ac_dashdash=yes ;; 861a73027baSmrg 862a73027baSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 863a73027baSmrg ac_prev=bindir ;; 864a73027baSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865a73027baSmrg bindir=$ac_optarg ;; 866a73027baSmrg 867a73027baSmrg -build | --build | --buil | --bui | --bu) 868a73027baSmrg ac_prev=build_alias ;; 869a73027baSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870a73027baSmrg build_alias=$ac_optarg ;; 871a73027baSmrg 872a73027baSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 873a73027baSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874a73027baSmrg ac_prev=cache_file ;; 875a73027baSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876a73027baSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877a73027baSmrg cache_file=$ac_optarg ;; 878a73027baSmrg 879a73027baSmrg --config-cache | -C) 880a73027baSmrg cache_file=config.cache ;; 881a73027baSmrg 882a73027baSmrg -datadir | --datadir | --datadi | --datad) 883a73027baSmrg ac_prev=datadir ;; 884a73027baSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 885a73027baSmrg datadir=$ac_optarg ;; 886a73027baSmrg 887a73027baSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888a73027baSmrg | --dataroo | --dataro | --datar) 889a73027baSmrg ac_prev=datarootdir ;; 890a73027baSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891a73027baSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892a73027baSmrg datarootdir=$ac_optarg ;; 893a73027baSmrg 894a73027baSmrg -disable-* | --disable-*) 895bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896a73027baSmrg # Reject names that are not valid shell variable names. 897bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 89829004570Smrg as_fn_error $? "invalid feature name: $ac_useropt" 899bf4a254eSmrg ac_useropt_orig=$ac_useropt 900bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 901bf4a254eSmrg case $ac_user_opts in 902bf4a254eSmrg *" 903bf4a254eSmrg"enable_$ac_useropt" 904bf4a254eSmrg"*) ;; 905bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906bf4a254eSmrg ac_unrecognized_sep=', ';; 907bf4a254eSmrg esac 908bf4a254eSmrg eval enable_$ac_useropt=no ;; 909a73027baSmrg 910a73027baSmrg -docdir | --docdir | --docdi | --doc | --do) 911a73027baSmrg ac_prev=docdir ;; 912a73027baSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913a73027baSmrg docdir=$ac_optarg ;; 914a73027baSmrg 915a73027baSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916a73027baSmrg ac_prev=dvidir ;; 917a73027baSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918a73027baSmrg dvidir=$ac_optarg ;; 919a73027baSmrg 920a73027baSmrg -enable-* | --enable-*) 921bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922a73027baSmrg # Reject names that are not valid shell variable names. 923bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 92429004570Smrg as_fn_error $? "invalid feature name: $ac_useropt" 925bf4a254eSmrg ac_useropt_orig=$ac_useropt 926bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927bf4a254eSmrg case $ac_user_opts in 928bf4a254eSmrg *" 929bf4a254eSmrg"enable_$ac_useropt" 930bf4a254eSmrg"*) ;; 931bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932bf4a254eSmrg ac_unrecognized_sep=', ';; 933bf4a254eSmrg esac 934bf4a254eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 935a73027baSmrg 936a73027baSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937a73027baSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938a73027baSmrg | --exec | --exe | --ex) 939a73027baSmrg ac_prev=exec_prefix ;; 940a73027baSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941a73027baSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942a73027baSmrg | --exec=* | --exe=* | --ex=*) 943a73027baSmrg exec_prefix=$ac_optarg ;; 944a73027baSmrg 945a73027baSmrg -gas | --gas | --ga | --g) 946a73027baSmrg # Obsolete; use --with-gas. 947a73027baSmrg with_gas=yes ;; 948a73027baSmrg 949a73027baSmrg -help | --help | --hel | --he | -h) 950a73027baSmrg ac_init_help=long ;; 951a73027baSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952a73027baSmrg ac_init_help=recursive ;; 953a73027baSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954a73027baSmrg ac_init_help=short ;; 955a73027baSmrg 956a73027baSmrg -host | --host | --hos | --ho) 957a73027baSmrg ac_prev=host_alias ;; 958a73027baSmrg -host=* | --host=* | --hos=* | --ho=*) 959a73027baSmrg host_alias=$ac_optarg ;; 960a73027baSmrg 961a73027baSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962a73027baSmrg ac_prev=htmldir ;; 963a73027baSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964a73027baSmrg | --ht=*) 965a73027baSmrg htmldir=$ac_optarg ;; 966a73027baSmrg 967a73027baSmrg -includedir | --includedir | --includedi | --included | --include \ 968a73027baSmrg | --includ | --inclu | --incl | --inc) 969a73027baSmrg ac_prev=includedir ;; 970a73027baSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971a73027baSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 972a73027baSmrg includedir=$ac_optarg ;; 973a73027baSmrg 974a73027baSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 975a73027baSmrg ac_prev=infodir ;; 976a73027baSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977a73027baSmrg infodir=$ac_optarg ;; 978a73027baSmrg 979a73027baSmrg -libdir | --libdir | --libdi | --libd) 980a73027baSmrg ac_prev=libdir ;; 981a73027baSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 982a73027baSmrg libdir=$ac_optarg ;; 983a73027baSmrg 984a73027baSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985a73027baSmrg | --libexe | --libex | --libe) 986a73027baSmrg ac_prev=libexecdir ;; 987a73027baSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988a73027baSmrg | --libexe=* | --libex=* | --libe=*) 989a73027baSmrg libexecdir=$ac_optarg ;; 990a73027baSmrg 991a73027baSmrg -localedir | --localedir | --localedi | --localed | --locale) 992a73027baSmrg ac_prev=localedir ;; 993a73027baSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994a73027baSmrg localedir=$ac_optarg ;; 995a73027baSmrg 996a73027baSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 997a73027baSmrg | --localstate | --localstat | --localsta | --localst | --locals) 998a73027baSmrg ac_prev=localstatedir ;; 999a73027baSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000a73027baSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001a73027baSmrg localstatedir=$ac_optarg ;; 1002a73027baSmrg 1003a73027baSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004a73027baSmrg ac_prev=mandir ;; 1005a73027baSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006a73027baSmrg mandir=$ac_optarg ;; 1007a73027baSmrg 1008a73027baSmrg -nfp | --nfp | --nf) 1009a73027baSmrg # Obsolete; use --without-fp. 1010a73027baSmrg with_fp=no ;; 1011a73027baSmrg 1012a73027baSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013a73027baSmrg | --no-cr | --no-c | -n) 1014a73027baSmrg no_create=yes ;; 1015a73027baSmrg 1016a73027baSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017a73027baSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018a73027baSmrg no_recursion=yes ;; 1019a73027baSmrg 1020a73027baSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021a73027baSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022a73027baSmrg | --oldin | --oldi | --old | --ol | --o) 1023a73027baSmrg ac_prev=oldincludedir ;; 1024a73027baSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025a73027baSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026a73027baSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027a73027baSmrg oldincludedir=$ac_optarg ;; 1028a73027baSmrg 1029a73027baSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030a73027baSmrg ac_prev=prefix ;; 1031a73027baSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032a73027baSmrg prefix=$ac_optarg ;; 1033a73027baSmrg 1034a73027baSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035a73027baSmrg | --program-pre | --program-pr | --program-p) 1036a73027baSmrg ac_prev=program_prefix ;; 1037a73027baSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038a73027baSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039a73027baSmrg program_prefix=$ac_optarg ;; 1040a73027baSmrg 1041a73027baSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042a73027baSmrg | --program-suf | --program-su | --program-s) 1043a73027baSmrg ac_prev=program_suffix ;; 1044a73027baSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045a73027baSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046a73027baSmrg program_suffix=$ac_optarg ;; 1047a73027baSmrg 1048a73027baSmrg -program-transform-name | --program-transform-name \ 1049a73027baSmrg | --program-transform-nam | --program-transform-na \ 1050a73027baSmrg | --program-transform-n | --program-transform- \ 1051a73027baSmrg | --program-transform | --program-transfor \ 1052a73027baSmrg | --program-transfo | --program-transf \ 1053a73027baSmrg | --program-trans | --program-tran \ 1054a73027baSmrg | --progr-tra | --program-tr | --program-t) 1055a73027baSmrg ac_prev=program_transform_name ;; 1056a73027baSmrg -program-transform-name=* | --program-transform-name=* \ 1057a73027baSmrg | --program-transform-nam=* | --program-transform-na=* \ 1058a73027baSmrg | --program-transform-n=* | --program-transform-=* \ 1059a73027baSmrg | --program-transform=* | --program-transfor=* \ 1060a73027baSmrg | --program-transfo=* | --program-transf=* \ 1061a73027baSmrg | --program-trans=* | --program-tran=* \ 1062a73027baSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1063a73027baSmrg program_transform_name=$ac_optarg ;; 1064a73027baSmrg 1065a73027baSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066a73027baSmrg ac_prev=pdfdir ;; 1067a73027baSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068a73027baSmrg pdfdir=$ac_optarg ;; 1069a73027baSmrg 1070a73027baSmrg -psdir | --psdir | --psdi | --psd | --ps) 1071a73027baSmrg ac_prev=psdir ;; 1072a73027baSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073a73027baSmrg psdir=$ac_optarg ;; 1074a73027baSmrg 1075a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 1077a73027baSmrg silent=yes ;; 1078a73027baSmrg 1079a73027baSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080a73027baSmrg ac_prev=sbindir ;; 1081a73027baSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082a73027baSmrg | --sbi=* | --sb=*) 1083a73027baSmrg sbindir=$ac_optarg ;; 1084a73027baSmrg 1085a73027baSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086a73027baSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087a73027baSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1088a73027baSmrg | --sha | --sh) 1089a73027baSmrg ac_prev=sharedstatedir ;; 1090a73027baSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091a73027baSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092a73027baSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093a73027baSmrg | --sha=* | --sh=*) 1094a73027baSmrg sharedstatedir=$ac_optarg ;; 1095a73027baSmrg 1096a73027baSmrg -site | --site | --sit) 1097a73027baSmrg ac_prev=site ;; 1098a73027baSmrg -site=* | --site=* | --sit=*) 1099a73027baSmrg site=$ac_optarg ;; 1100a73027baSmrg 1101a73027baSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102a73027baSmrg ac_prev=srcdir ;; 1103a73027baSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104a73027baSmrg srcdir=$ac_optarg ;; 1105a73027baSmrg 1106a73027baSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107a73027baSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1108a73027baSmrg ac_prev=sysconfdir ;; 1109a73027baSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110a73027baSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111a73027baSmrg sysconfdir=$ac_optarg ;; 1112a73027baSmrg 1113a73027baSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1114a73027baSmrg ac_prev=target_alias ;; 1115a73027baSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116a73027baSmrg target_alias=$ac_optarg ;; 1117a73027baSmrg 1118a73027baSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119a73027baSmrg verbose=yes ;; 1120a73027baSmrg 1121a73027baSmrg -version | --version | --versio | --versi | --vers | -V) 1122a73027baSmrg ac_init_version=: ;; 1123a73027baSmrg 1124a73027baSmrg -with-* | --with-*) 1125bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126a73027baSmrg # Reject names that are not valid shell variable names. 1127bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 112829004570Smrg as_fn_error $? "invalid package name: $ac_useropt" 1129bf4a254eSmrg ac_useropt_orig=$ac_useropt 1130bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131bf4a254eSmrg case $ac_user_opts in 1132bf4a254eSmrg *" 1133bf4a254eSmrg"with_$ac_useropt" 1134bf4a254eSmrg"*) ;; 1135bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136bf4a254eSmrg ac_unrecognized_sep=', ';; 1137bf4a254eSmrg esac 1138bf4a254eSmrg eval with_$ac_useropt=\$ac_optarg ;; 1139a73027baSmrg 1140a73027baSmrg -without-* | --without-*) 1141bf4a254eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142a73027baSmrg # Reject names that are not valid shell variable names. 1143bf4a254eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 114429004570Smrg as_fn_error $? "invalid package name: $ac_useropt" 1145bf4a254eSmrg ac_useropt_orig=$ac_useropt 1146bf4a254eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147bf4a254eSmrg case $ac_user_opts in 1148bf4a254eSmrg *" 1149bf4a254eSmrg"with_$ac_useropt" 1150bf4a254eSmrg"*) ;; 1151bf4a254eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152bf4a254eSmrg ac_unrecognized_sep=', ';; 1153bf4a254eSmrg esac 1154bf4a254eSmrg eval with_$ac_useropt=no ;; 1155a73027baSmrg 1156a73027baSmrg --x) 1157a73027baSmrg # Obsolete; use --with-x. 1158a73027baSmrg with_x=yes ;; 1159a73027baSmrg 1160a73027baSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161a73027baSmrg | --x-incl | --x-inc | --x-in | --x-i) 1162a73027baSmrg ac_prev=x_includes ;; 1163a73027baSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164a73027baSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165a73027baSmrg x_includes=$ac_optarg ;; 1166a73027baSmrg 1167a73027baSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168a73027baSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169a73027baSmrg ac_prev=x_libraries ;; 1170a73027baSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171a73027baSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172a73027baSmrg x_libraries=$ac_optarg ;; 1173a73027baSmrg 117429004570Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 117529004570SmrgTry \`$0 --help' for more information" 1176a73027baSmrg ;; 1177a73027baSmrg 1178a73027baSmrg *=*) 1179a73027baSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180a73027baSmrg # Reject names that are not valid shell variable names. 1181bf4a254eSmrg case $ac_envvar in #( 1182bf4a254eSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 118329004570Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184bf4a254eSmrg esac 1185a73027baSmrg eval $ac_envvar=\$ac_optarg 1186a73027baSmrg export $ac_envvar ;; 1187a73027baSmrg 1188a73027baSmrg *) 1189a73027baSmrg # FIXME: should be removed in autoconf 3.0. 1190bf4a254eSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191a73027baSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192bf4a254eSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 119329004570Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194a73027baSmrg ;; 1195a73027baSmrg 1196a73027baSmrg esac 1197a73027baSmrgdone 1198a73027baSmrg 1199a73027baSmrgif test -n "$ac_prev"; then 1200a73027baSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 120129004570Smrg as_fn_error $? "missing argument to $ac_option" 1202bf4a254eSmrgfi 1203bf4a254eSmrg 1204bf4a254eSmrgif test -n "$ac_unrecognized_opts"; then 1205bf4a254eSmrg case $enable_option_checking in 1206bf4a254eSmrg no) ;; 120729004570Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208bf4a254eSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209bf4a254eSmrg esac 1210a73027baSmrgfi 1211a73027baSmrg 1212bf4a254eSmrg# Check all directory arguments for consistency. 1213a73027baSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214a73027baSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1215a73027baSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216a73027baSmrg libdir localedir mandir 1217a73027baSmrgdo 1218a73027baSmrg eval ac_val=\$$ac_var 1219bf4a254eSmrg # Remove trailing slashes. 1220bf4a254eSmrg case $ac_val in 1221bf4a254eSmrg */ ) 1222bf4a254eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223bf4a254eSmrg eval $ac_var=\$ac_val;; 1224bf4a254eSmrg esac 1225bf4a254eSmrg # Be sure to have absolute directory names. 1226a73027baSmrg case $ac_val in 1227a73027baSmrg [\\/$]* | ?:[\\/]* ) continue;; 1228a73027baSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229a73027baSmrg esac 123029004570Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231a73027baSmrgdone 1232a73027baSmrg 1233a73027baSmrg# There might be people who depend on the old broken behavior: `$host' 1234a73027baSmrg# used to hold the argument of --host etc. 1235a73027baSmrg# FIXME: To remove some day. 1236a73027baSmrgbuild=$build_alias 1237a73027baSmrghost=$host_alias 1238a73027baSmrgtarget=$target_alias 1239a73027baSmrg 1240a73027baSmrg# FIXME: To remove some day. 1241a73027baSmrgif test "x$host_alias" != x; then 1242a73027baSmrg if test "x$build_alias" = x; then 1243a73027baSmrg cross_compiling=maybe 124429004570Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 124529004570Smrg If a cross compiler is detected then cross compile mode will be used" >&2 1246a73027baSmrg elif test "x$build_alias" != "x$host_alias"; then 1247a73027baSmrg cross_compiling=yes 1248a73027baSmrg fi 1249a73027baSmrgfi 1250a73027baSmrg 1251a73027baSmrgac_tool_prefix= 1252a73027baSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1253a73027baSmrg 1254a73027baSmrgtest "$silent" = yes && exec 6>/dev/null 1255a73027baSmrg 1256a73027baSmrg 1257a73027baSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1258a73027baSmrgac_ls_di=`ls -di .` && 1259a73027baSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 126029004570Smrg as_fn_error $? "working directory cannot be determined" 1261a73027baSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 126229004570Smrg as_fn_error $? "pwd does not report name of working directory" 1263a73027baSmrg 1264a73027baSmrg 1265a73027baSmrg# Find the source files, if location was not specified. 1266a73027baSmrgif test -z "$srcdir"; then 1267a73027baSmrg ac_srcdir_defaulted=yes 1268a73027baSmrg # Try the directory containing this script, then the parent directory. 1269bf4a254eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1270bf4a254eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271bf4a254eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1272bf4a254eSmrg X"$as_myself" : 'X\(//\)$' \| \ 1273bf4a254eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274bf4a254eSmrg$as_echo X"$as_myself" | 1275a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276a73027baSmrg s//\1/ 1277a73027baSmrg q 1278a73027baSmrg } 1279a73027baSmrg /^X\(\/\/\)[^/].*/{ 1280a73027baSmrg s//\1/ 1281a73027baSmrg q 1282a73027baSmrg } 1283a73027baSmrg /^X\(\/\/\)$/{ 1284a73027baSmrg s//\1/ 1285a73027baSmrg q 1286a73027baSmrg } 1287a73027baSmrg /^X\(\/\).*/{ 1288a73027baSmrg s//\1/ 1289a73027baSmrg q 1290a73027baSmrg } 1291a73027baSmrg s/.*/./; q'` 1292a73027baSmrg srcdir=$ac_confdir 1293a73027baSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1294a73027baSmrg srcdir=.. 1295a73027baSmrg fi 1296a73027baSmrgelse 1297a73027baSmrg ac_srcdir_defaulted=no 1298a73027baSmrgfi 1299a73027baSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1300a73027baSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 130129004570Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302a73027baSmrgfi 1303a73027baSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304a73027baSmrgac_abs_confdir=`( 130529004570Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306a73027baSmrg pwd)` 1307a73027baSmrg# When building in place, set srcdir=. 1308a73027baSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1309a73027baSmrg srcdir=. 1310a73027baSmrgfi 1311a73027baSmrg# Remove unnecessary trailing slashes from srcdir. 1312a73027baSmrg# Double slashes in file names in object file debugging info 1313a73027baSmrg# mess up M-x gdb in Emacs. 1314a73027baSmrgcase $srcdir in 1315a73027baSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316a73027baSmrgesac 1317a73027baSmrgfor ac_var in $ac_precious_vars; do 1318a73027baSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319a73027baSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1320a73027baSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321a73027baSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322a73027baSmrgdone 1323a73027baSmrg 1324a73027baSmrg# 1325a73027baSmrg# Report the --help message. 1326a73027baSmrg# 1327a73027baSmrgif test "$ac_init_help" = "long"; then 1328a73027baSmrg # Omit some internal or obsolete options to make the list less imposing. 1329a73027baSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1330a73027baSmrg cat <<_ACEOF 1331c81d8f5eSmrg\`configure' configures xinit 1.3.1 to adapt to many kinds of systems. 1332a73027baSmrg 1333a73027baSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1334a73027baSmrg 1335a73027baSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1336a73027baSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1337a73027baSmrg 1338a73027baSmrgDefaults for the options are specified in brackets. 1339a73027baSmrg 1340a73027baSmrgConfiguration: 1341a73027baSmrg -h, --help display this help and exit 1342a73027baSmrg --help=short display options specific to this package 1343a73027baSmrg --help=recursive display the short help of all the included packages 1344a73027baSmrg -V, --version display version information and exit 134529004570Smrg -q, --quiet, --silent do not print \`checking ...' messages 1346a73027baSmrg --cache-file=FILE cache test results in FILE [disabled] 1347a73027baSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1348a73027baSmrg -n, --no-create do not create output files 1349a73027baSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350a73027baSmrg 1351a73027baSmrgInstallation directories: 1352a73027baSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1353bf4a254eSmrg [$ac_default_prefix] 1354a73027baSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355bf4a254eSmrg [PREFIX] 1356a73027baSmrg 1357a73027baSmrgBy default, \`make install' will install all the files in 1358a73027baSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359a73027baSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360a73027baSmrgfor instance \`--prefix=\$HOME'. 1361a73027baSmrg 1362a73027baSmrgFor better control, use the options below. 1363a73027baSmrg 1364a73027baSmrgFine tuning of the installation directories: 1365bf4a254eSmrg --bindir=DIR user executables [EPREFIX/bin] 1366bf4a254eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1367bf4a254eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1368bf4a254eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369bf4a254eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370bf4a254eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371bf4a254eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1372bf4a254eSmrg --includedir=DIR C header files [PREFIX/include] 1373bf4a254eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374bf4a254eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375bf4a254eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376bf4a254eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1377bf4a254eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378bf4a254eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1379bf4a254eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 1380bf4a254eSmrg --htmldir=DIR html documentation [DOCDIR] 1381bf4a254eSmrg --dvidir=DIR dvi documentation [DOCDIR] 1382bf4a254eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1383bf4a254eSmrg --psdir=DIR ps documentation [DOCDIR] 1384a73027baSmrg_ACEOF 1385a73027baSmrg 1386a73027baSmrg cat <<\_ACEOF 1387a73027baSmrg 1388a73027baSmrgProgram names: 1389a73027baSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1390a73027baSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1391a73027baSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392a73027baSmrg 1393a73027baSmrgSystem types: 1394a73027baSmrg --build=BUILD configure for building on BUILD [guessed] 1395a73027baSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396a73027baSmrg_ACEOF 1397a73027baSmrgfi 1398a73027baSmrg 1399a73027baSmrgif test -n "$ac_init_help"; then 1400a73027baSmrg case $ac_init_help in 1401c81d8f5eSmrg short | recursive ) echo "Configuration of xinit 1.3.1:";; 1402a73027baSmrg esac 1403a73027baSmrg cat <<\_ACEOF 1404a73027baSmrg 1405a73027baSmrgOptional Features: 1406bf4a254eSmrg --disable-option-checking ignore unrecognized --enable/--with options 1407a73027baSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408a73027baSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409a73027baSmrg --enable-maintainer-mode enable make rules and dependencies not useful 1410a73027baSmrg (and sometimes confusing) to the casual installer 1411a73027baSmrg --disable-dependency-tracking speeds up one-time build 1412a73027baSmrg --enable-dependency-tracking do not reject slow dependency extractors 1413bf4a254eSmrg --enable-strict-compilation 1414bf4a254eSmrg Enable all warnings from compiler and make them 1415bf4a254eSmrg errors (default: disabled) 141629004570Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 141729004570Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1418a73027baSmrg 1419a73027baSmrgOptional Packages: 1420a73027baSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1421a73027baSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422a73027baSmrg --with-xrdb=XRDB Path to xrdb 1423a73027baSmrg --with-xmodmap=XMODMAP Path to xmodmap 1424a73027baSmrg --with-twm=TWM Path to twm 1425a73027baSmrg --with-xclock=XCLOCK Path to xclock 1426a73027baSmrg --with-xterm=XTERM Path to xterm 1427a73027baSmrg --with-xserver=XSERVER Path to default X server 1428a73027baSmrg --with-xauth=XAUTH Path to xauth 1429a73027baSmrg --with-xinit=XINIT Path to xinit 1430bf4a254eSmrg --with-xinitdir=XINITDIR 1431bf4a254eSmrg Path to xinitdir 1432a73027baSmrg --with-launchd Build with support for Apple's launchd (default: 1433a73027baSmrg auto) 1434a73027baSmrg --with-launchagents-dir=PATH 1435a73027baSmrg Path to launchd's LaunchAgents directory (default: 1436a73027baSmrg /Library/LaunchAgents) 1437a73027baSmrg --with-launchdaemons-dir=PATH 1438a73027baSmrg Path to launchd's LaunchDaemonss directory (default: 1439a73027baSmrg /Library/LaunchDaemons) 1440bf4a254eSmrg --with-launchd-id-prefix=PATH 1441c81d8f5eSmrg Deprecated: Use --with-bundle-id-prefix. 1442c81d8f5eSmrg --with-bundle-id-prefix=PATH 1443c81d8f5eSmrg Prefix to use for bundle identifiers (default: 1444bf4a254eSmrg org.x) 1445a73027baSmrg 1446a73027baSmrgSome influential environment variables: 1447a73027baSmrg CC C compiler command 1448a73027baSmrg CFLAGS C compiler flags 1449a73027baSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450a73027baSmrg nonstandard directory <lib dir> 1451a73027baSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1452bf4a254eSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453a73027baSmrg you have headers in a nonstandard directory <include dir> 1454a73027baSmrg CPP C preprocessor 1455a73027baSmrg PKG_CONFIG path to pkg-config utility 1456c81d8f5eSmrg PKG_CONFIG_PATH 1457c81d8f5eSmrg directories to add to pkg-config's search path 1458c81d8f5eSmrg PKG_CONFIG_LIBDIR 1459c81d8f5eSmrg path overriding pkg-config's built-in search path 1460a73027baSmrg XINIT_CFLAGS 1461a73027baSmrg C compiler flags for XINIT, overriding pkg-config 1462a73027baSmrg XINIT_LIBS linker flags for XINIT, overriding pkg-config 1463a73027baSmrg 1464a73027baSmrgUse these variables to override the choices made by `configure' or to help 1465a73027baSmrgit to find libraries and programs with nonstandard names/locations. 1466a73027baSmrg 1467a73027baSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1468a73027baSmrg_ACEOF 1469a73027baSmrgac_status=$? 1470a73027baSmrgfi 1471a73027baSmrg 1472a73027baSmrgif test "$ac_init_help" = "recursive"; then 1473a73027baSmrg # If there are subdirs, report their specific --help. 1474a73027baSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475bf4a254eSmrg test -d "$ac_dir" || 1476bf4a254eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477bf4a254eSmrg continue 1478a73027baSmrg ac_builddir=. 1479a73027baSmrg 1480a73027baSmrgcase "$ac_dir" in 1481a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482a73027baSmrg*) 1483bf4a254eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 1485bf4a254eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486a73027baSmrg case $ac_top_builddir_sub in 1487a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489a73027baSmrg esac ;; 1490a73027baSmrgesac 1491a73027baSmrgac_abs_top_builddir=$ac_pwd 1492a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1493a73027baSmrg# for backward compatibility: 1494a73027baSmrgac_top_builddir=$ac_top_build_prefix 1495a73027baSmrg 1496a73027baSmrgcase $srcdir in 1497a73027baSmrg .) # We are building in place. 1498a73027baSmrg ac_srcdir=. 1499a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 1500a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 1501a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1502a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1503a73027baSmrg ac_top_srcdir=$srcdir 1504a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 1505a73027baSmrg *) # Relative name. 1506a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1508a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509a73027baSmrgesac 1510a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511a73027baSmrg 1512a73027baSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1513a73027baSmrg # Check for guested configure. 1514a73027baSmrg if test -f "$ac_srcdir/configure.gnu"; then 1515a73027baSmrg echo && 1516a73027baSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517a73027baSmrg elif test -f "$ac_srcdir/configure"; then 1518a73027baSmrg echo && 1519a73027baSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1520a73027baSmrg else 1521bf4a254eSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522a73027baSmrg fi || ac_status=$? 1523a73027baSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1524a73027baSmrg done 1525a73027baSmrgfi 1526a73027baSmrg 1527a73027baSmrgtest -n "$ac_init_help" && exit $ac_status 1528a73027baSmrgif $ac_init_version; then 1529a73027baSmrg cat <<\_ACEOF 1530c81d8f5eSmrgxinit configure 1.3.1 153129004570Smrggenerated by GNU Autoconf 2.68 1532a73027baSmrg 153329004570SmrgCopyright (C) 2010 Free Software Foundation, Inc. 1534a73027baSmrgThis configure script is free software; the Free Software Foundation 1535a73027baSmrggives unlimited permission to copy, distribute and modify it. 1536a73027baSmrg_ACEOF 1537a73027baSmrg exit 1538a73027baSmrgfi 1539a73027baSmrg 1540bf4a254eSmrg## ------------------------ ## 1541bf4a254eSmrg## Autoconf initialization. ## 1542bf4a254eSmrg## ------------------------ ## 1543a73027baSmrg 1544bf4a254eSmrg# ac_fn_c_try_compile LINENO 1545bf4a254eSmrg# -------------------------- 1546bf4a254eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547bf4a254eSmrgac_fn_c_try_compile () 1548a73027baSmrg{ 1549bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550bf4a254eSmrg rm -f conftest.$ac_objext 1551bf4a254eSmrg if { { ac_try="$ac_compile" 1552bf4a254eSmrgcase "(($ac_try" in 1553bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554bf4a254eSmrg *) ac_try_echo=$ac_try;; 1555bf4a254eSmrgesac 1556bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1558bf4a254eSmrg (eval "$ac_compile") 2>conftest.err 1559bf4a254eSmrg ac_status=$? 1560bf4a254eSmrg if test -s conftest.err; then 1561bf4a254eSmrg grep -v '^ *+' conftest.err >conftest.er1 1562bf4a254eSmrg cat conftest.er1 >&5 1563bf4a254eSmrg mv -f conftest.er1 conftest.err 1564bf4a254eSmrg fi 1565bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566bf4a254eSmrg test $ac_status = 0; } && { 1567bf4a254eSmrg test -z "$ac_c_werror_flag" || 1568bf4a254eSmrg test ! -s conftest.err 1569bf4a254eSmrg } && test -s conftest.$ac_objext; then : 1570bf4a254eSmrg ac_retval=0 1571bf4a254eSmrgelse 1572bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1573bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1574a73027baSmrg 1575bf4a254eSmrg ac_retval=1 1576bf4a254eSmrgfi 157729004570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578bf4a254eSmrg as_fn_set_status $ac_retval 1579a73027baSmrg 1580bf4a254eSmrg} # ac_fn_c_try_compile 1581a73027baSmrg 158229004570Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 158329004570Smrg# --------------------------------------------- 158429004570Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 158529004570Smrg# accordingly. 1586bf4a254eSmrgac_fn_c_check_decl () 1587bf4a254eSmrg{ 1588bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 158929004570Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 159029004570Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 159129004570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 159229004570Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 159329004570Smrgif eval \${$3+:} false; then : 1594bf4a254eSmrg $as_echo_n "(cached) " >&6 1595bf4a254eSmrgelse 1596bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1597bf4a254eSmrg/* end confdefs.h. */ 1598bf4a254eSmrg$4 1599bf4a254eSmrgint 1600bf4a254eSmrgmain () 1601bf4a254eSmrg{ 160229004570Smrg#ifndef $as_decl_name 160329004570Smrg#ifdef __cplusplus 160429004570Smrg (void) $as_decl_use; 160529004570Smrg#else 160629004570Smrg (void) $as_decl_name; 160729004570Smrg#endif 1608bf4a254eSmrg#endif 1609a73027baSmrg 1610bf4a254eSmrg ; 1611bf4a254eSmrg return 0; 1612bf4a254eSmrg} 1613bf4a254eSmrg_ACEOF 1614bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1615bf4a254eSmrg eval "$3=yes" 1616bf4a254eSmrgelse 1617bf4a254eSmrg eval "$3=no" 1618bf4a254eSmrgfi 1619bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1620bf4a254eSmrgfi 1621bf4a254eSmrgeval ac_res=\$$3 1622bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1623bf4a254eSmrg$as_echo "$ac_res" >&6; } 162429004570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625a73027baSmrg 1626bf4a254eSmrg} # ac_fn_c_check_decl 1627a73027baSmrg 1628bf4a254eSmrg# ac_fn_c_try_cpp LINENO 1629bf4a254eSmrg# ---------------------- 1630bf4a254eSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1631bf4a254eSmrgac_fn_c_try_cpp () 1632bf4a254eSmrg{ 1633bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634bf4a254eSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1635bf4a254eSmrgcase "(($ac_try" in 1636bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637bf4a254eSmrg *) ac_try_echo=$ac_try;; 1638bf4a254eSmrgesac 1639bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1641bf4a254eSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1642bf4a254eSmrg ac_status=$? 1643bf4a254eSmrg if test -s conftest.err; then 1644bf4a254eSmrg grep -v '^ *+' conftest.err >conftest.er1 1645bf4a254eSmrg cat conftest.er1 >&5 1646bf4a254eSmrg mv -f conftest.er1 conftest.err 1647bf4a254eSmrg fi 1648bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 164929004570Smrg test $ac_status = 0; } > conftest.i && { 1650bf4a254eSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1651bf4a254eSmrg test ! -s conftest.err 1652bf4a254eSmrg }; then : 1653bf4a254eSmrg ac_retval=0 1654bf4a254eSmrgelse 1655bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1656bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1657a73027baSmrg 1658bf4a254eSmrg ac_retval=1 1659bf4a254eSmrgfi 166029004570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661bf4a254eSmrg as_fn_set_status $ac_retval 1662a73027baSmrg 1663bf4a254eSmrg} # ac_fn_c_try_cpp 1664bf4a254eSmrg 1665bf4a254eSmrg# ac_fn_c_try_run LINENO 1666bf4a254eSmrg# ---------------------- 1667bf4a254eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1668bf4a254eSmrg# that executables *can* be run. 1669bf4a254eSmrgac_fn_c_try_run () 1670bf4a254eSmrg{ 1671bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672bf4a254eSmrg if { { ac_try="$ac_link" 1673bf4a254eSmrgcase "(($ac_try" in 1674bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675bf4a254eSmrg *) ac_try_echo=$ac_try;; 1676bf4a254eSmrgesac 1677bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1679bf4a254eSmrg (eval "$ac_link") 2>&5 1680bf4a254eSmrg ac_status=$? 1681bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682bf4a254eSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1683bf4a254eSmrg { { case "(($ac_try" in 1684bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685bf4a254eSmrg *) ac_try_echo=$ac_try;; 1686bf4a254eSmrgesac 1687bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 1689bf4a254eSmrg (eval "$ac_try") 2>&5 1690bf4a254eSmrg ac_status=$? 1691bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692bf4a254eSmrg test $ac_status = 0; }; }; then : 1693bf4a254eSmrg ac_retval=0 1694bf4a254eSmrgelse 1695bf4a254eSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1696bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 1697bf4a254eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1698bf4a254eSmrg 1699bf4a254eSmrg ac_retval=$ac_status 1700bf4a254eSmrgfi 1701bf4a254eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 170229004570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703bf4a254eSmrg as_fn_set_status $ac_retval 1704bf4a254eSmrg 1705bf4a254eSmrg} # ac_fn_c_try_run 1706bf4a254eSmrg 1707bf4a254eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1708bf4a254eSmrg# ------------------------------------------------------- 1709bf4a254eSmrg# Tests whether HEADER exists and can be compiled using the include files in 1710bf4a254eSmrg# INCLUDES, setting the cache variable VAR accordingly. 1711bf4a254eSmrgac_fn_c_check_header_compile () 1712bf4a254eSmrg{ 1713bf4a254eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1715bf4a254eSmrg$as_echo_n "checking for $2... " >&6; } 171629004570Smrgif eval \${$3+:} false; then : 1717bf4a254eSmrg $as_echo_n "(cached) " >&6 1718bf4a254eSmrgelse 1719bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720bf4a254eSmrg/* end confdefs.h. */ 1721bf4a254eSmrg$4 1722bf4a254eSmrg#include <$2> 1723bf4a254eSmrg_ACEOF 1724bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1725bf4a254eSmrg eval "$3=yes" 1726bf4a254eSmrgelse 1727bf4a254eSmrg eval "$3=no" 1728bf4a254eSmrgfi 1729bf4a254eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1730bf4a254eSmrgfi 1731bf4a254eSmrgeval ac_res=\$$3 1732bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733bf4a254eSmrg$as_echo "$ac_res" >&6; } 173429004570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735bf4a254eSmrg 1736bf4a254eSmrg} # ac_fn_c_check_header_compile 1737c81d8f5eSmrg 1738c81d8f5eSmrg# ac_fn_c_try_link LINENO 1739c81d8f5eSmrg# ----------------------- 1740c81d8f5eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1741c81d8f5eSmrgac_fn_c_try_link () 1742c81d8f5eSmrg{ 1743c81d8f5eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744c81d8f5eSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1745c81d8f5eSmrg if { { ac_try="$ac_link" 1746c81d8f5eSmrgcase "(($ac_try" in 1747c81d8f5eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748c81d8f5eSmrg *) ac_try_echo=$ac_try;; 1749c81d8f5eSmrgesac 1750c81d8f5eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751c81d8f5eSmrg$as_echo "$ac_try_echo"; } >&5 1752c81d8f5eSmrg (eval "$ac_link") 2>conftest.err 1753c81d8f5eSmrg ac_status=$? 1754c81d8f5eSmrg if test -s conftest.err; then 1755c81d8f5eSmrg grep -v '^ *+' conftest.err >conftest.er1 1756c81d8f5eSmrg cat conftest.er1 >&5 1757c81d8f5eSmrg mv -f conftest.er1 conftest.err 1758c81d8f5eSmrg fi 1759c81d8f5eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760c81d8f5eSmrg test $ac_status = 0; } && { 1761c81d8f5eSmrg test -z "$ac_c_werror_flag" || 1762c81d8f5eSmrg test ! -s conftest.err 1763c81d8f5eSmrg } && test -s conftest$ac_exeext && { 1764c81d8f5eSmrg test "$cross_compiling" = yes || 1765c81d8f5eSmrg $as_test_x conftest$ac_exeext 1766c81d8f5eSmrg }; then : 1767c81d8f5eSmrg ac_retval=0 1768c81d8f5eSmrgelse 1769c81d8f5eSmrg $as_echo "$as_me: failed program was:" >&5 1770c81d8f5eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1771c81d8f5eSmrg 1772c81d8f5eSmrg ac_retval=1 1773c81d8f5eSmrgfi 1774c81d8f5eSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1775c81d8f5eSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1776c81d8f5eSmrg # interfere with the next link command; also delete a directory that is 1777c81d8f5eSmrg # left behind by Apple's compiler. We do this before executing the actions. 1778c81d8f5eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1779c81d8f5eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780c81d8f5eSmrg as_fn_set_status $ac_retval 1781c81d8f5eSmrg 1782c81d8f5eSmrg} # ac_fn_c_try_link 1783c81d8f5eSmrg 1784c81d8f5eSmrg# ac_fn_c_check_func LINENO FUNC VAR 1785c81d8f5eSmrg# ---------------------------------- 1786c81d8f5eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1787c81d8f5eSmrgac_fn_c_check_func () 1788c81d8f5eSmrg{ 1789c81d8f5eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791c81d8f5eSmrg$as_echo_n "checking for $2... " >&6; } 1792c81d8f5eSmrgif eval \${$3+:} false; then : 1793c81d8f5eSmrg $as_echo_n "(cached) " >&6 1794c81d8f5eSmrgelse 1795c81d8f5eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796c81d8f5eSmrg/* end confdefs.h. */ 1797c81d8f5eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1798c81d8f5eSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1799c81d8f5eSmrg#define $2 innocuous_$2 1800c81d8f5eSmrg 1801c81d8f5eSmrg/* System header to define __stub macros and hopefully few prototypes, 1802c81d8f5eSmrg which can conflict with char $2 (); below. 1803c81d8f5eSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1804c81d8f5eSmrg <limits.h> exists even on freestanding compilers. */ 1805c81d8f5eSmrg 1806c81d8f5eSmrg#ifdef __STDC__ 1807c81d8f5eSmrg# include <limits.h> 1808c81d8f5eSmrg#else 1809c81d8f5eSmrg# include <assert.h> 1810c81d8f5eSmrg#endif 1811c81d8f5eSmrg 1812c81d8f5eSmrg#undef $2 1813c81d8f5eSmrg 1814c81d8f5eSmrg/* Override any GCC internal prototype to avoid an error. 1815c81d8f5eSmrg Use char because int might match the return type of a GCC 1816c81d8f5eSmrg builtin and then its argument prototype would still apply. */ 1817c81d8f5eSmrg#ifdef __cplusplus 1818c81d8f5eSmrgextern "C" 1819c81d8f5eSmrg#endif 1820c81d8f5eSmrgchar $2 (); 1821c81d8f5eSmrg/* The GNU C library defines this for functions which it implements 1822c81d8f5eSmrg to always fail with ENOSYS. Some functions are actually named 1823c81d8f5eSmrg something starting with __ and the normal name is an alias. */ 1824c81d8f5eSmrg#if defined __stub_$2 || defined __stub___$2 1825c81d8f5eSmrgchoke me 1826c81d8f5eSmrg#endif 1827c81d8f5eSmrg 1828c81d8f5eSmrgint 1829c81d8f5eSmrgmain () 1830c81d8f5eSmrg{ 1831c81d8f5eSmrgreturn $2 (); 1832c81d8f5eSmrg ; 1833c81d8f5eSmrg return 0; 1834c81d8f5eSmrg} 1835c81d8f5eSmrg_ACEOF 1836c81d8f5eSmrgif ac_fn_c_try_link "$LINENO"; then : 1837c81d8f5eSmrg eval "$3=yes" 1838c81d8f5eSmrgelse 1839c81d8f5eSmrg eval "$3=no" 1840c81d8f5eSmrgfi 1841c81d8f5eSmrgrm -f core conftest.err conftest.$ac_objext \ 1842c81d8f5eSmrg conftest$ac_exeext conftest.$ac_ext 1843c81d8f5eSmrgfi 1844c81d8f5eSmrgeval ac_res=\$$3 1845c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1846c81d8f5eSmrg$as_echo "$ac_res" >&6; } 1847c81d8f5eSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848c81d8f5eSmrg 1849c81d8f5eSmrg} # ac_fn_c_check_func 1850bf4a254eSmrgcat >config.log <<_ACEOF 1851bf4a254eSmrgThis file contains any messages produced by compilers while 1852bf4a254eSmrgrunning configure, to aid debugging if configure makes a mistake. 1853bf4a254eSmrg 1854c81d8f5eSmrgIt was created by xinit $as_me 1.3.1, which was 185529004570Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1856bf4a254eSmrg 1857bf4a254eSmrg $ $0 $@ 1858bf4a254eSmrg 1859bf4a254eSmrg_ACEOF 1860bf4a254eSmrgexec 5>>config.log 1861bf4a254eSmrg{ 1862bf4a254eSmrgcat <<_ASUNAME 1863bf4a254eSmrg## --------- ## 1864bf4a254eSmrg## Platform. ## 1865bf4a254eSmrg## --------- ## 1866bf4a254eSmrg 1867bf4a254eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1868bf4a254eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1869bf4a254eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1870bf4a254eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1871bf4a254eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1872bf4a254eSmrg 1873bf4a254eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1874bf4a254eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1875bf4a254eSmrg 1876bf4a254eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1877bf4a254eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1878bf4a254eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1879bf4a254eSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1880bf4a254eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1881bf4a254eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1882bf4a254eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1883bf4a254eSmrg 1884bf4a254eSmrg_ASUNAME 1885bf4a254eSmrg 1886bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1887bf4a254eSmrgfor as_dir in $PATH 1888bf4a254eSmrgdo 1889bf4a254eSmrg IFS=$as_save_IFS 1890bf4a254eSmrg test -z "$as_dir" && as_dir=. 1891bf4a254eSmrg $as_echo "PATH: $as_dir" 1892bf4a254eSmrg done 1893bf4a254eSmrgIFS=$as_save_IFS 1894bf4a254eSmrg 1895bf4a254eSmrg} >&5 1896bf4a254eSmrg 1897bf4a254eSmrgcat >&5 <<_ACEOF 1898bf4a254eSmrg 1899bf4a254eSmrg 1900bf4a254eSmrg## ----------- ## 1901bf4a254eSmrg## Core tests. ## 1902bf4a254eSmrg## ----------- ## 1903bf4a254eSmrg 1904bf4a254eSmrg_ACEOF 1905a73027baSmrg 1906a73027baSmrg 1907a73027baSmrg# Keep a trace of the command line. 1908a73027baSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1909a73027baSmrg# Strip out --silent because we don't want to record it for future runs. 1910a73027baSmrg# Also quote any args containing shell meta-characters. 1911a73027baSmrg# Make two passes to allow for proper duplicate-argument suppression. 1912a73027baSmrgac_configure_args= 1913a73027baSmrgac_configure_args0= 1914a73027baSmrgac_configure_args1= 1915a73027baSmrgac_must_keep_next=false 1916a73027baSmrgfor ac_pass in 1 2 1917a73027baSmrgdo 1918a73027baSmrg for ac_arg 1919a73027baSmrg do 1920a73027baSmrg case $ac_arg in 1921a73027baSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1922a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1923a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 1924a73027baSmrg continue ;; 1925a73027baSmrg *\'*) 1926bf4a254eSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1927a73027baSmrg esac 1928a73027baSmrg case $ac_pass in 1929bf4a254eSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1930a73027baSmrg 2) 1931bf4a254eSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1932a73027baSmrg if test $ac_must_keep_next = true; then 1933a73027baSmrg ac_must_keep_next=false # Got value, back to normal. 1934a73027baSmrg else 1935a73027baSmrg case $ac_arg in 1936a73027baSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1937a73027baSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1938a73027baSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1939a73027baSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1940a73027baSmrg case "$ac_configure_args0 " in 1941a73027baSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1942a73027baSmrg esac 1943a73027baSmrg ;; 1944a73027baSmrg -* ) ac_must_keep_next=true ;; 1945a73027baSmrg esac 1946a73027baSmrg fi 1947bf4a254eSmrg as_fn_append ac_configure_args " '$ac_arg'" 1948a73027baSmrg ;; 1949a73027baSmrg esac 1950a73027baSmrg done 1951a73027baSmrgdone 1952bf4a254eSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1953bf4a254eSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1954a73027baSmrg 1955a73027baSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1956a73027baSmrg# config.log. We remove comments because anyway the quotes in there 1957a73027baSmrg# would cause problems or look ugly. 1958a73027baSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1959a73027baSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1960a73027baSmrgtrap 'exit_status=$? 1961a73027baSmrg # Save into config.log some information that might help in debugging. 1962a73027baSmrg { 1963a73027baSmrg echo 1964a73027baSmrg 196529004570Smrg $as_echo "## ---------------- ## 1966a73027baSmrg## Cache variables. ## 196729004570Smrg## ---------------- ##" 1968a73027baSmrg echo 1969a73027baSmrg # The following way of writing the cache mishandles newlines in values, 1970a73027baSmrg( 1971a73027baSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1972a73027baSmrg eval ac_val=\$$ac_var 1973a73027baSmrg case $ac_val in #( 1974a73027baSmrg *${as_nl}*) 1975a73027baSmrg case $ac_var in #( 1976bf4a254eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1977bf4a254eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1978a73027baSmrg esac 1979a73027baSmrg case $ac_var in #( 1980a73027baSmrg _ | IFS | as_nl) ;; #( 1981bf4a254eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1982bf4a254eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1983a73027baSmrg esac ;; 1984a73027baSmrg esac 1985a73027baSmrg done 1986a73027baSmrg (set) 2>&1 | 1987a73027baSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1988a73027baSmrg *${as_nl}ac_space=\ *) 1989a73027baSmrg sed -n \ 1990a73027baSmrg "s/'\''/'\''\\\\'\'''\''/g; 1991a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1992a73027baSmrg ;; #( 1993a73027baSmrg *) 1994a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1995a73027baSmrg ;; 1996a73027baSmrg esac | 1997a73027baSmrg sort 1998a73027baSmrg) 1999a73027baSmrg echo 2000a73027baSmrg 200129004570Smrg $as_echo "## ----------------- ## 2002a73027baSmrg## Output variables. ## 200329004570Smrg## ----------------- ##" 2004a73027baSmrg echo 2005a73027baSmrg for ac_var in $ac_subst_vars 2006a73027baSmrg do 2007a73027baSmrg eval ac_val=\$$ac_var 2008a73027baSmrg case $ac_val in 2009bf4a254eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2010a73027baSmrg esac 2011bf4a254eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2012a73027baSmrg done | sort 2013a73027baSmrg echo 2014a73027baSmrg 2015a73027baSmrg if test -n "$ac_subst_files"; then 201629004570Smrg $as_echo "## ------------------- ## 2017a73027baSmrg## File substitutions. ## 201829004570Smrg## ------------------- ##" 2019a73027baSmrg echo 2020a73027baSmrg for ac_var in $ac_subst_files 2021a73027baSmrg do 2022a73027baSmrg eval ac_val=\$$ac_var 2023a73027baSmrg case $ac_val in 2024bf4a254eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025a73027baSmrg esac 2026bf4a254eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2027a73027baSmrg done | sort 2028a73027baSmrg echo 2029a73027baSmrg fi 2030a73027baSmrg 2031a73027baSmrg if test -s confdefs.h; then 203229004570Smrg $as_echo "## ----------- ## 2033a73027baSmrg## confdefs.h. ## 203429004570Smrg## ----------- ##" 2035a73027baSmrg echo 2036a73027baSmrg cat confdefs.h 2037a73027baSmrg echo 2038a73027baSmrg fi 2039a73027baSmrg test "$ac_signal" != 0 && 2040bf4a254eSmrg $as_echo "$as_me: caught signal $ac_signal" 2041bf4a254eSmrg $as_echo "$as_me: exit $exit_status" 2042a73027baSmrg } >&5 2043a73027baSmrg rm -f core *.core core.conftest.* && 2044a73027baSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2045a73027baSmrg exit $exit_status 2046a73027baSmrg' 0 2047a73027baSmrgfor ac_signal in 1 2 13 15; do 2048bf4a254eSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2049a73027baSmrgdone 2050a73027baSmrgac_signal=0 2051a73027baSmrg 2052a73027baSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2053a73027baSmrgrm -f -r conftest* confdefs.h 2054a73027baSmrg 2055bf4a254eSmrg$as_echo "/* confdefs.h */" > confdefs.h 2056bf4a254eSmrg 2057a73027baSmrg# Predefined preprocessor variables. 2058a73027baSmrg 2059a73027baSmrgcat >>confdefs.h <<_ACEOF 2060a73027baSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2061a73027baSmrg_ACEOF 2062a73027baSmrg 2063a73027baSmrgcat >>confdefs.h <<_ACEOF 2064a73027baSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2065a73027baSmrg_ACEOF 2066a73027baSmrg 2067a73027baSmrgcat >>confdefs.h <<_ACEOF 2068a73027baSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2069a73027baSmrg_ACEOF 2070a73027baSmrg 2071a73027baSmrgcat >>confdefs.h <<_ACEOF 2072a73027baSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2073a73027baSmrg_ACEOF 2074a73027baSmrg 2075a73027baSmrgcat >>confdefs.h <<_ACEOF 2076a73027baSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2077a73027baSmrg_ACEOF 2078a73027baSmrg 2079bf4a254eSmrgcat >>confdefs.h <<_ACEOF 2080bf4a254eSmrg#define PACKAGE_URL "$PACKAGE_URL" 2081bf4a254eSmrg_ACEOF 2082bf4a254eSmrg 2083a73027baSmrg 2084a73027baSmrg# Let the site file select an alternate cache file if it wants to. 2085bf4a254eSmrg# Prefer an explicitly selected file to automatically selected ones. 2086bf4a254eSmrgac_site_file1=NONE 2087bf4a254eSmrgac_site_file2=NONE 2088a73027baSmrgif test -n "$CONFIG_SITE"; then 208929004570Smrg # We do not want a PATH search for config.site. 209029004570Smrg case $CONFIG_SITE in #(( 209129004570Smrg -*) ac_site_file1=./$CONFIG_SITE;; 209229004570Smrg */*) ac_site_file1=$CONFIG_SITE;; 209329004570Smrg *) ac_site_file1=./$CONFIG_SITE;; 209429004570Smrg esac 2095a73027baSmrgelif test "x$prefix" != xNONE; then 2096bf4a254eSmrg ac_site_file1=$prefix/share/config.site 2097bf4a254eSmrg ac_site_file2=$prefix/etc/config.site 2098a73027baSmrgelse 2099bf4a254eSmrg ac_site_file1=$ac_default_prefix/share/config.site 2100bf4a254eSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2101a73027baSmrgfi 2102bf4a254eSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2103a73027baSmrgdo 2104bf4a254eSmrg test "x$ac_site_file" = xNONE && continue 2105bf4a254eSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2106bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2107bf4a254eSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2108a73027baSmrg sed 's/^/| /' "$ac_site_file" >&5 210929004570Smrg . "$ac_site_file" \ 211029004570Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 211129004570Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 211229004570Smrgas_fn_error $? "failed to load site script $ac_site_file 211329004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 2114a73027baSmrg fi 2115a73027baSmrgdone 2116a73027baSmrg 2117a73027baSmrgif test -r "$cache_file"; then 2118bf4a254eSmrg # Some versions of bash will fail to source /dev/null (special files 2119bf4a254eSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2120bf4a254eSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2121bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2122bf4a254eSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2123a73027baSmrg case $cache_file in 2124a73027baSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2125a73027baSmrg *) . "./$cache_file";; 2126a73027baSmrg esac 2127a73027baSmrg fi 2128a73027baSmrgelse 2129bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2130bf4a254eSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2131a73027baSmrg >$cache_file 2132a73027baSmrgfi 2133a73027baSmrg 2134a73027baSmrg# Check that the precious variables saved in the cache have kept the same 2135a73027baSmrg# value. 2136a73027baSmrgac_cache_corrupted=false 2137a73027baSmrgfor ac_var in $ac_precious_vars; do 2138a73027baSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2139a73027baSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2140a73027baSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2141a73027baSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2142a73027baSmrg case $ac_old_set,$ac_new_set in 2143a73027baSmrg set,) 2144bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2145bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2146a73027baSmrg ac_cache_corrupted=: ;; 2147a73027baSmrg ,set) 2148bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2149bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2150a73027baSmrg ac_cache_corrupted=: ;; 2151a73027baSmrg ,);; 2152a73027baSmrg *) 2153a73027baSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2154bf4a254eSmrg # differences in whitespace do not lead to failure. 2155bf4a254eSmrg ac_old_val_w=`echo x $ac_old_val` 2156bf4a254eSmrg ac_new_val_w=`echo x $ac_new_val` 2157bf4a254eSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2158bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2159bf4a254eSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2160bf4a254eSmrg ac_cache_corrupted=: 2161bf4a254eSmrg else 2162bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2163bf4a254eSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2164bf4a254eSmrg eval $ac_var=\$ac_old_val 2165bf4a254eSmrg fi 2166bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2167bf4a254eSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2168bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2169bf4a254eSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2170a73027baSmrg fi;; 2171a73027baSmrg esac 2172a73027baSmrg # Pass precious variables to config.status. 2173a73027baSmrg if test "$ac_new_set" = set; then 2174a73027baSmrg case $ac_new_val in 2175bf4a254eSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2176a73027baSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2177a73027baSmrg esac 2178a73027baSmrg case " $ac_configure_args " in 2179a73027baSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2180bf4a254eSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2181a73027baSmrg esac 2182a73027baSmrg fi 2183a73027baSmrgdone 2184a73027baSmrgif $ac_cache_corrupted; then 2185bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2186bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2187bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2188bf4a254eSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 218929004570Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2190a73027baSmrgfi 2191bf4a254eSmrg## -------------------- ## 2192bf4a254eSmrg## Main body of script. ## 2193bf4a254eSmrg## -------------------- ## 2194a73027baSmrg 2195a73027baSmrgac_ext=c 2196a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2197a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2198a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2199a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2200a73027baSmrg 2201a73027baSmrg 2202c81d8f5eSmrg 2203c81d8f5eSmrgac_config_headers="$ac_config_headers config.h" 2204c81d8f5eSmrg 2205c81d8f5eSmrg 2206c81d8f5eSmrg# Initialize Automake 2207bf4a254eSmrgam__api_version='1.11' 2208a73027baSmrg 2209a73027baSmrgac_aux_dir= 2210a73027baSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 221129004570Smrg if test -f "$ac_dir/install-sh"; then 221229004570Smrg ac_aux_dir=$ac_dir 221329004570Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 221429004570Smrg break 221529004570Smrg elif test -f "$ac_dir/install.sh"; then 221629004570Smrg ac_aux_dir=$ac_dir 221729004570Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 221829004570Smrg break 221929004570Smrg elif test -f "$ac_dir/shtool"; then 222029004570Smrg ac_aux_dir=$ac_dir 222129004570Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 222229004570Smrg break 222329004570Smrg fi 2224a73027baSmrgdone 2225a73027baSmrgif test -z "$ac_aux_dir"; then 222629004570Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2227a73027baSmrgfi 2228a73027baSmrg 2229a73027baSmrg# These three variables are undocumented and unsupported, 2230a73027baSmrg# and are intended to be withdrawn in a future Autoconf release. 2231a73027baSmrg# They can cause serious problems if a builder's source tree is in a directory 2232a73027baSmrg# whose full name contains unusual characters. 2233a73027baSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2234a73027baSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2235a73027baSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2236a73027baSmrg 2237a73027baSmrg 2238a73027baSmrg# Find a good install program. We prefer a C program (faster), 2239a73027baSmrg# so one script is as good as another. But avoid the broken or 2240a73027baSmrg# incompatible versions: 2241a73027baSmrg# SysV /etc/install, /usr/sbin/install 2242a73027baSmrg# SunOS /usr/etc/install 2243a73027baSmrg# IRIX /sbin/install 2244a73027baSmrg# AIX /bin/install 2245a73027baSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2246a73027baSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2247a73027baSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2248a73027baSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2249a73027baSmrg# OS/2's system install, which has a completely different semantic 2250a73027baSmrg# ./install, which can be erroneously created by make from ./install.sh. 2251bf4a254eSmrg# Reject install programs that cannot install multiple files. 2252bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2253bf4a254eSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2254a73027baSmrgif test -z "$INSTALL"; then 225529004570Smrgif ${ac_cv_path_install+:} false; then : 2256bf4a254eSmrg $as_echo_n "(cached) " >&6 2257a73027baSmrgelse 2258a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259a73027baSmrgfor as_dir in $PATH 2260a73027baSmrgdo 2261a73027baSmrg IFS=$as_save_IFS 2262a73027baSmrg test -z "$as_dir" && as_dir=. 2263bf4a254eSmrg # Account for people who put trailing slashes in PATH elements. 2264bf4a254eSmrgcase $as_dir/ in #(( 2265bf4a254eSmrg ./ | .// | /[cC]/* | \ 2266a73027baSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2267bf4a254eSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2268a73027baSmrg /usr/ucb/* ) ;; 2269a73027baSmrg *) 2270a73027baSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2271a73027baSmrg # Don't use installbsd from OSF since it installs stuff as root 2272a73027baSmrg # by default. 2273a73027baSmrg for ac_prog in ginstall scoinst install; do 2274a73027baSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2275a73027baSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2276a73027baSmrg if test $ac_prog = install && 2277a73027baSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2278a73027baSmrg # AIX install. It has an incompatible calling convention. 2279a73027baSmrg : 2280a73027baSmrg elif test $ac_prog = install && 2281a73027baSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2282a73027baSmrg # program-specific install script used by HP pwplus--don't use. 2283a73027baSmrg : 2284a73027baSmrg else 2285bf4a254eSmrg rm -rf conftest.one conftest.two conftest.dir 2286bf4a254eSmrg echo one > conftest.one 2287bf4a254eSmrg echo two > conftest.two 2288bf4a254eSmrg mkdir conftest.dir 2289bf4a254eSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2290bf4a254eSmrg test -s conftest.one && test -s conftest.two && 2291bf4a254eSmrg test -s conftest.dir/conftest.one && 2292bf4a254eSmrg test -s conftest.dir/conftest.two 2293bf4a254eSmrg then 2294bf4a254eSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2295bf4a254eSmrg break 3 2296bf4a254eSmrg fi 2297a73027baSmrg fi 2298a73027baSmrg fi 2299a73027baSmrg done 2300a73027baSmrg done 2301a73027baSmrg ;; 2302a73027baSmrgesac 2303bf4a254eSmrg 2304bf4a254eSmrg done 2305a73027baSmrgIFS=$as_save_IFS 2306a73027baSmrg 2307bf4a254eSmrgrm -rf conftest.one conftest.two conftest.dir 2308a73027baSmrg 2309a73027baSmrgfi 2310a73027baSmrg if test "${ac_cv_path_install+set}" = set; then 2311a73027baSmrg INSTALL=$ac_cv_path_install 2312a73027baSmrg else 2313a73027baSmrg # As a last resort, use the slow shell script. Don't cache a 2314a73027baSmrg # value for INSTALL within a source directory, because that will 2315a73027baSmrg # break other packages using the cache if that directory is 2316a73027baSmrg # removed, or if the value is a relative name. 2317a73027baSmrg INSTALL=$ac_install_sh 2318a73027baSmrg fi 2319a73027baSmrgfi 2320bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2321bf4a254eSmrg$as_echo "$INSTALL" >&6; } 2322a73027baSmrg 2323a73027baSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2324a73027baSmrg# It thinks the first close brace ends the variable substitution. 2325a73027baSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2326a73027baSmrg 2327a73027baSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2328a73027baSmrg 2329a73027baSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2330a73027baSmrg 2331bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2332bf4a254eSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2333a73027baSmrg# Just in case 2334a73027baSmrgsleep 1 2335a73027baSmrgecho timestamp > conftest.file 2336bf4a254eSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2337bf4a254eSmrg# name. Accept space and tab only in the latter. 2338bf4a254eSmrgam_lf=' 2339bf4a254eSmrg' 2340bf4a254eSmrgcase `pwd` in 2341bf4a254eSmrg *[\\\"\#\$\&\'\`$am_lf]*) 234229004570Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2343bf4a254eSmrgesac 2344bf4a254eSmrgcase $srcdir in 2345bf4a254eSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 234629004570Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2347bf4a254eSmrgesac 2348bf4a254eSmrg 2349a73027baSmrg# Do `set' in a subshell so we don't clobber the current shell's 2350a73027baSmrg# arguments. Must try -L first in case configure is actually a 2351a73027baSmrg# symlink; some systems play weird games with the mod time of symlinks 2352a73027baSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2353a73027baSmrg# directory). 2354a73027baSmrgif ( 2355bf4a254eSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2356a73027baSmrg if test "$*" = "X"; then 2357a73027baSmrg # -L didn't work. 2358bf4a254eSmrg set X `ls -t "$srcdir/configure" conftest.file` 2359a73027baSmrg fi 2360a73027baSmrg rm -f conftest.file 2361a73027baSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2362a73027baSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2363a73027baSmrg 2364a73027baSmrg # If neither matched, then we have a broken ls. This can happen 2365a73027baSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2366a73027baSmrg # broken ls alias from the environment. This has actually 2367a73027baSmrg # happened. Such a system could not be considered "sane". 236829004570Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2369bf4a254eSmrgalias in your environment" "$LINENO" 5 2370a73027baSmrg fi 2371a73027baSmrg 2372a73027baSmrg test "$2" = conftest.file 2373a73027baSmrg ) 2374a73027baSmrgthen 2375a73027baSmrg # Ok. 2376a73027baSmrg : 2377a73027baSmrgelse 237829004570Smrg as_fn_error $? "newly created file is older than distributed files! 2379bf4a254eSmrgCheck your system clock" "$LINENO" 5 2380a73027baSmrgfi 2381bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2382bf4a254eSmrg$as_echo "yes" >&6; } 2383a73027baSmrgtest "$program_prefix" != NONE && 2384a73027baSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2385a73027baSmrg# Use a double $ so make ignores it. 2386a73027baSmrgtest "$program_suffix" != NONE && 2387a73027baSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2388bf4a254eSmrg# Double any \ or $. 2389a73027baSmrg# By default was `s,x,x', remove it if useless. 2390bf4a254eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2391bf4a254eSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2392a73027baSmrg 2393a73027baSmrg# expand $ac_aux_dir to an absolute path 2394a73027baSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2395a73027baSmrg 2396bf4a254eSmrgif test x"${MISSING+set}" != xset; then 2397bf4a254eSmrg case $am_aux_dir in 2398bf4a254eSmrg *\ * | *\ *) 2399bf4a254eSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2400bf4a254eSmrg *) 2401bf4a254eSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2402bf4a254eSmrg esac 2403bf4a254eSmrgfi 2404a73027baSmrg# Use eval to expand $SHELL 2405a73027baSmrgif eval "$MISSING --run true"; then 2406a73027baSmrg am_missing_run="$MISSING --run " 2407a73027baSmrgelse 2408a73027baSmrg am_missing_run= 2409bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2410bf4a254eSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2411a73027baSmrgfi 2412a73027baSmrg 2413bf4a254eSmrgif test x"${install_sh}" != xset; then 2414bf4a254eSmrg case $am_aux_dir in 2415bf4a254eSmrg *\ * | *\ *) 2416bf4a254eSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2417bf4a254eSmrg *) 2418bf4a254eSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2419bf4a254eSmrg esac 2420bf4a254eSmrgfi 2421bf4a254eSmrg 2422bf4a254eSmrg# Installed binaries are usually stripped using `strip' when the user 2423bf4a254eSmrg# run `make install-strip'. However `strip' might not be the right 2424bf4a254eSmrg# tool to use in cross-compilation environments, therefore Automake 2425bf4a254eSmrg# will honor the `STRIP' environment variable to overrule this program. 2426bf4a254eSmrgif test "$cross_compiling" != no; then 2427bf4a254eSmrg if test -n "$ac_tool_prefix"; then 2428bf4a254eSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2429bf4a254eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2430bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2431bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 243229004570Smrgif ${ac_cv_prog_STRIP+:} false; then : 2433bf4a254eSmrg $as_echo_n "(cached) " >&6 2434bf4a254eSmrgelse 2435bf4a254eSmrg if test -n "$STRIP"; then 2436bf4a254eSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2437bf4a254eSmrgelse 2438bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439bf4a254eSmrgfor as_dir in $PATH 2440bf4a254eSmrgdo 2441bf4a254eSmrg IFS=$as_save_IFS 2442bf4a254eSmrg test -z "$as_dir" && as_dir=. 2443bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2444bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445bf4a254eSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2446bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2447bf4a254eSmrg break 2 2448bf4a254eSmrg fi 2449bf4a254eSmrgdone 2450bf4a254eSmrg done 2451bf4a254eSmrgIFS=$as_save_IFS 2452bf4a254eSmrg 2453bf4a254eSmrgfi 2454bf4a254eSmrgfi 2455bf4a254eSmrgSTRIP=$ac_cv_prog_STRIP 2456bf4a254eSmrgif test -n "$STRIP"; then 2457bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2458bf4a254eSmrg$as_echo "$STRIP" >&6; } 2459bf4a254eSmrgelse 2460bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2461bf4a254eSmrg$as_echo "no" >&6; } 2462bf4a254eSmrgfi 2463bf4a254eSmrg 2464bf4a254eSmrg 2465bf4a254eSmrgfi 2466bf4a254eSmrgif test -z "$ac_cv_prog_STRIP"; then 2467bf4a254eSmrg ac_ct_STRIP=$STRIP 2468bf4a254eSmrg # Extract the first word of "strip", so it can be a program name with args. 2469bf4a254eSmrgset dummy strip; ac_word=$2 2470bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 247229004570Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2473bf4a254eSmrg $as_echo_n "(cached) " >&6 2474bf4a254eSmrgelse 2475bf4a254eSmrg if test -n "$ac_ct_STRIP"; then 2476bf4a254eSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2477bf4a254eSmrgelse 2478bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479bf4a254eSmrgfor as_dir in $PATH 2480bf4a254eSmrgdo 2481bf4a254eSmrg IFS=$as_save_IFS 2482bf4a254eSmrg test -z "$as_dir" && as_dir=. 2483bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2484bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2485bf4a254eSmrg ac_cv_prog_ac_ct_STRIP="strip" 2486bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487bf4a254eSmrg break 2 2488bf4a254eSmrg fi 2489bf4a254eSmrgdone 2490bf4a254eSmrg done 2491bf4a254eSmrgIFS=$as_save_IFS 2492bf4a254eSmrg 2493bf4a254eSmrgfi 2494bf4a254eSmrgfi 2495bf4a254eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2496bf4a254eSmrgif test -n "$ac_ct_STRIP"; then 2497bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2498bf4a254eSmrg$as_echo "$ac_ct_STRIP" >&6; } 2499bf4a254eSmrgelse 2500bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501bf4a254eSmrg$as_echo "no" >&6; } 2502bf4a254eSmrgfi 2503bf4a254eSmrg 2504bf4a254eSmrg if test "x$ac_ct_STRIP" = x; then 2505bf4a254eSmrg STRIP=":" 2506bf4a254eSmrg else 2507bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 2508bf4a254eSmrgyes:) 2509bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2510bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2511bf4a254eSmrgac_tool_warned=yes ;; 2512bf4a254eSmrgesac 2513bf4a254eSmrg STRIP=$ac_ct_STRIP 2514bf4a254eSmrg fi 2515bf4a254eSmrgelse 2516bf4a254eSmrg STRIP="$ac_cv_prog_STRIP" 2517bf4a254eSmrgfi 2518bf4a254eSmrg 2519bf4a254eSmrgfi 2520bf4a254eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2521bf4a254eSmrg 2522bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2523bf4a254eSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2524bf4a254eSmrgif test -z "$MKDIR_P"; then 252529004570Smrg if ${ac_cv_path_mkdir+:} false; then : 2526bf4a254eSmrg $as_echo_n "(cached) " >&6 2527bf4a254eSmrgelse 2528bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2530bf4a254eSmrgdo 2531a73027baSmrg IFS=$as_save_IFS 2532a73027baSmrg test -z "$as_dir" && as_dir=. 2533bf4a254eSmrg for ac_prog in mkdir gmkdir; do 2534a73027baSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2535a73027baSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2536a73027baSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2537a73027baSmrg 'mkdir (GNU coreutils) '* | \ 2538a73027baSmrg 'mkdir (coreutils) '* | \ 2539a73027baSmrg 'mkdir (fileutils) '4.1*) 2540a73027baSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2541a73027baSmrg break 3;; 2542a73027baSmrg esac 2543a73027baSmrg done 2544a73027baSmrg done 2545bf4a254eSmrg done 2546a73027baSmrgIFS=$as_save_IFS 2547a73027baSmrg 2548a73027baSmrgfi 2549a73027baSmrg 2550bf4a254eSmrg test -d ./--version && rmdir ./--version 2551a73027baSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2552a73027baSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2553a73027baSmrg else 2554a73027baSmrg # As a last resort, use the slow shell script. Don't cache a 2555a73027baSmrg # value for MKDIR_P within a source directory, because that will 2556a73027baSmrg # break other packages using the cache if that directory is 2557a73027baSmrg # removed, or if the value is a relative name. 2558a73027baSmrg MKDIR_P="$ac_install_sh -d" 2559a73027baSmrg fi 2560a73027baSmrgfi 2561bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2562bf4a254eSmrg$as_echo "$MKDIR_P" >&6; } 2563a73027baSmrg 2564a73027baSmrgmkdir_p="$MKDIR_P" 2565a73027baSmrgcase $mkdir_p in 2566a73027baSmrg [\\/$]* | ?:[\\/]*) ;; 2567a73027baSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2568a73027baSmrgesac 2569a73027baSmrg 2570a73027baSmrgfor ac_prog in gawk mawk nawk awk 2571a73027baSmrgdo 2572a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2573a73027baSmrgset dummy $ac_prog; ac_word=$2 2574bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2575bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 257629004570Smrgif ${ac_cv_prog_AWK+:} false; then : 2577bf4a254eSmrg $as_echo_n "(cached) " >&6 2578a73027baSmrgelse 2579a73027baSmrg if test -n "$AWK"; then 2580a73027baSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2581a73027baSmrgelse 2582a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583a73027baSmrgfor as_dir in $PATH 2584a73027baSmrgdo 2585a73027baSmrg IFS=$as_save_IFS 2586a73027baSmrg test -z "$as_dir" && as_dir=. 2587bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2588a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589a73027baSmrg ac_cv_prog_AWK="$ac_prog" 2590bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2591a73027baSmrg break 2 2592a73027baSmrg fi 2593a73027baSmrgdone 2594bf4a254eSmrg done 2595a73027baSmrgIFS=$as_save_IFS 2596a73027baSmrg 2597a73027baSmrgfi 2598a73027baSmrgfi 2599a73027baSmrgAWK=$ac_cv_prog_AWK 2600a73027baSmrgif test -n "$AWK"; then 2601bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2602bf4a254eSmrg$as_echo "$AWK" >&6; } 2603a73027baSmrgelse 2604bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2605bf4a254eSmrg$as_echo "no" >&6; } 2606a73027baSmrgfi 2607a73027baSmrg 2608a73027baSmrg 2609a73027baSmrg test -n "$AWK" && break 2610a73027baSmrgdone 2611a73027baSmrg 2612bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2613bf4a254eSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2614bf4a254eSmrgset x ${MAKE-make} 2615bf4a254eSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 261629004570Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2617bf4a254eSmrg $as_echo_n "(cached) " >&6 2618a73027baSmrgelse 2619a73027baSmrg cat >conftest.make <<\_ACEOF 2620a73027baSmrgSHELL = /bin/sh 2621a73027baSmrgall: 2622a73027baSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2623a73027baSmrg_ACEOF 262429004570Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2625a73027baSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2626a73027baSmrg *@@@%%%=?*=@@@%%%*) 2627a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2628a73027baSmrg *) 2629a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2630a73027baSmrgesac 2631a73027baSmrgrm -f conftest.make 2632a73027baSmrgfi 2633a73027baSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2634bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635bf4a254eSmrg$as_echo "yes" >&6; } 2636a73027baSmrg SET_MAKE= 2637a73027baSmrgelse 2638bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639bf4a254eSmrg$as_echo "no" >&6; } 2640a73027baSmrg SET_MAKE="MAKE=${MAKE-make}" 2641a73027baSmrgfi 2642a73027baSmrg 2643a73027baSmrgrm -rf .tst 2>/dev/null 2644a73027baSmrgmkdir .tst 2>/dev/null 2645a73027baSmrgif test -d .tst; then 2646a73027baSmrg am__leading_dot=. 2647a73027baSmrgelse 2648a73027baSmrg am__leading_dot=_ 2649a73027baSmrgfi 2650a73027baSmrgrmdir .tst 2>/dev/null 2651a73027baSmrg 2652a73027baSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2653a73027baSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2654a73027baSmrg # is not polluted with repeated "-I." 2655a73027baSmrg am__isrc=' -I$(srcdir)' 2656a73027baSmrg # test to see if srcdir already configured 2657a73027baSmrg if test -f $srcdir/config.status; then 265829004570Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2659a73027baSmrg fi 2660a73027baSmrgfi 2661a73027baSmrg 2662a73027baSmrg# test whether we have cygpath 2663a73027baSmrgif test -z "$CYGPATH_W"; then 2664a73027baSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2665a73027baSmrg CYGPATH_W='cygpath -w' 2666a73027baSmrg else 2667a73027baSmrg CYGPATH_W=echo 2668a73027baSmrg fi 2669a73027baSmrgfi 2670a73027baSmrg 2671a73027baSmrg 2672a73027baSmrg# Define the identity of the package. 2673a73027baSmrg PACKAGE='xinit' 2674c81d8f5eSmrg VERSION='1.3.1' 2675a73027baSmrg 2676a73027baSmrg 2677a73027baSmrgcat >>confdefs.h <<_ACEOF 2678a73027baSmrg#define PACKAGE "$PACKAGE" 2679a73027baSmrg_ACEOF 2680a73027baSmrg 2681a73027baSmrg 2682a73027baSmrgcat >>confdefs.h <<_ACEOF 2683a73027baSmrg#define VERSION "$VERSION" 2684a73027baSmrg_ACEOF 2685a73027baSmrg 2686a73027baSmrg# Some tools Automake needs. 2687a73027baSmrg 2688a73027baSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2689a73027baSmrg 2690a73027baSmrg 2691a73027baSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2692a73027baSmrg 2693a73027baSmrg 2694a73027baSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2695a73027baSmrg 2696a73027baSmrg 2697a73027baSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2698a73027baSmrg 2699a73027baSmrg 2700a73027baSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2701a73027baSmrg 2702a73027baSmrg# We need awk for the "check" target. The system "awk" is bad on 2703a73027baSmrg# some platforms. 2704a73027baSmrg# Always define AMTAR for backward compatibility. 2705a73027baSmrg 2706a73027baSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2707a73027baSmrg 2708a73027baSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2709a73027baSmrg 2710a73027baSmrg 2711a73027baSmrg 2712a73027baSmrg 2713a73027baSmrg 2714bf4a254eSmrg 2715bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2716bf4a254eSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2717a73027baSmrg # Check whether --enable-maintainer-mode was given. 2718bf4a254eSmrgif test "${enable_maintainer_mode+set}" = set; then : 2719a73027baSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2720a73027baSmrgelse 2721a73027baSmrg USE_MAINTAINER_MODE=no 2722a73027baSmrgfi 2723a73027baSmrg 2724bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2725bf4a254eSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2726a73027baSmrg if test $USE_MAINTAINER_MODE = yes; then 2727a73027baSmrg MAINTAINER_MODE_TRUE= 2728a73027baSmrg MAINTAINER_MODE_FALSE='#' 2729a73027baSmrgelse 2730a73027baSmrg MAINTAINER_MODE_TRUE='#' 2731a73027baSmrg MAINTAINER_MODE_FALSE= 2732a73027baSmrgfi 2733a73027baSmrg 2734a73027baSmrg MAINT=$MAINTAINER_MODE_TRUE 2735a73027baSmrg 2736a73027baSmrg 2737a73027baSmrg 273829004570Smrg# Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_DEFAULT_OPTIONS 2739bf4a254eSmrg 2740bf4a254eSmrg 2741bf4a254eSmrg 2742bf4a254eSmrg 2743bf4a254eSmrg 2744bf4a254eSmrg 2745bf4a254eSmrg 2746bf4a254eSmrg 2747bf4a254eSmrg 2748bf4a254eSmrg 2749bf4a254eSmrg 2750bf4a254eSmrgDEPDIR="${am__leading_dot}deps" 2751bf4a254eSmrg 2752bf4a254eSmrgac_config_commands="$ac_config_commands depfiles" 2753bf4a254eSmrg 2754bf4a254eSmrg 2755bf4a254eSmrgam_make=${MAKE-make} 2756bf4a254eSmrgcat > confinc << 'END' 2757bf4a254eSmrgam__doit: 2758bf4a254eSmrg @echo this is the am__doit target 2759bf4a254eSmrg.PHONY: am__doit 2760bf4a254eSmrgEND 2761bf4a254eSmrg# If we don't find an include directive, just comment out the code. 2762bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2763bf4a254eSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2764bf4a254eSmrgam__include="#" 2765bf4a254eSmrgam__quote= 2766bf4a254eSmrg_am_result=none 2767bf4a254eSmrg# First try GNU make style include. 2768bf4a254eSmrgecho "include confinc" > confmf 2769bf4a254eSmrg# Ignore all kinds of additional output from `make'. 2770bf4a254eSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2771bf4a254eSmrg*the\ am__doit\ target*) 2772bf4a254eSmrg am__include=include 2773bf4a254eSmrg am__quote= 2774bf4a254eSmrg _am_result=GNU 2775bf4a254eSmrg ;; 2776bf4a254eSmrgesac 2777bf4a254eSmrg# Now try BSD make style include. 2778bf4a254eSmrgif test "$am__include" = "#"; then 2779bf4a254eSmrg echo '.include "confinc"' > confmf 2780bf4a254eSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2781bf4a254eSmrg *the\ am__doit\ target*) 2782bf4a254eSmrg am__include=.include 2783bf4a254eSmrg am__quote="\"" 2784bf4a254eSmrg _am_result=BSD 2785bf4a254eSmrg ;; 2786bf4a254eSmrg esac 2787bf4a254eSmrgfi 2788bf4a254eSmrg 2789bf4a254eSmrg 2790bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2791bf4a254eSmrg$as_echo "$_am_result" >&6; } 2792bf4a254eSmrgrm -f confinc confmf 2793bf4a254eSmrg 2794bf4a254eSmrg# Check whether --enable-dependency-tracking was given. 2795bf4a254eSmrgif test "${enable_dependency_tracking+set}" = set; then : 2796bf4a254eSmrg enableval=$enable_dependency_tracking; 2797bf4a254eSmrgfi 2798bf4a254eSmrg 2799bf4a254eSmrgif test "x$enable_dependency_tracking" != xno; then 2800bf4a254eSmrg am_depcomp="$ac_aux_dir/depcomp" 2801bf4a254eSmrg AMDEPBACKSLASH='\' 2802bf4a254eSmrgfi 2803bf4a254eSmrg if test "x$enable_dependency_tracking" != xno; then 2804bf4a254eSmrg AMDEP_TRUE= 2805bf4a254eSmrg AMDEP_FALSE='#' 2806bf4a254eSmrgelse 2807bf4a254eSmrg AMDEP_TRUE='#' 2808bf4a254eSmrg AMDEP_FALSE= 2809bf4a254eSmrgfi 2810a73027baSmrg 2811a73027baSmrg 2812a73027baSmrgac_ext=c 2813a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2814a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2815a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2816a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2817a73027baSmrgif test -n "$ac_tool_prefix"; then 2818a73027baSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2819a73027baSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2820bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 282229004570Smrgif ${ac_cv_prog_CC+:} false; then : 2823bf4a254eSmrg $as_echo_n "(cached) " >&6 2824a73027baSmrgelse 2825a73027baSmrg if test -n "$CC"; then 2826a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2827a73027baSmrgelse 2828a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829a73027baSmrgfor as_dir in $PATH 2830a73027baSmrgdo 2831a73027baSmrg IFS=$as_save_IFS 2832a73027baSmrg test -z "$as_dir" && as_dir=. 2833bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2834a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2835a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2836bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2837a73027baSmrg break 2 2838a73027baSmrg fi 2839a73027baSmrgdone 2840bf4a254eSmrg done 2841a73027baSmrgIFS=$as_save_IFS 2842a73027baSmrg 2843a73027baSmrgfi 2844a73027baSmrgfi 2845a73027baSmrgCC=$ac_cv_prog_CC 2846a73027baSmrgif test -n "$CC"; then 2847bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2848bf4a254eSmrg$as_echo "$CC" >&6; } 2849a73027baSmrgelse 2850bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851bf4a254eSmrg$as_echo "no" >&6; } 2852a73027baSmrgfi 2853a73027baSmrg 2854a73027baSmrg 2855a73027baSmrgfi 2856a73027baSmrgif test -z "$ac_cv_prog_CC"; then 2857a73027baSmrg ac_ct_CC=$CC 2858a73027baSmrg # Extract the first word of "gcc", so it can be a program name with args. 2859a73027baSmrgset dummy gcc; ac_word=$2 2860bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 286229004570Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2863bf4a254eSmrg $as_echo_n "(cached) " >&6 2864a73027baSmrgelse 2865a73027baSmrg if test -n "$ac_ct_CC"; then 2866a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2867a73027baSmrgelse 2868a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869a73027baSmrgfor as_dir in $PATH 2870a73027baSmrgdo 2871a73027baSmrg IFS=$as_save_IFS 2872a73027baSmrg test -z "$as_dir" && as_dir=. 2873bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2874a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2875a73027baSmrg ac_cv_prog_ac_ct_CC="gcc" 2876bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2877a73027baSmrg break 2 2878a73027baSmrg fi 2879a73027baSmrgdone 2880bf4a254eSmrg done 2881a73027baSmrgIFS=$as_save_IFS 2882a73027baSmrg 2883a73027baSmrgfi 2884a73027baSmrgfi 2885a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2886a73027baSmrgif test -n "$ac_ct_CC"; then 2887bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2888bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 2889a73027baSmrgelse 2890bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891bf4a254eSmrg$as_echo "no" >&6; } 2892a73027baSmrgfi 2893a73027baSmrg 2894a73027baSmrg if test "x$ac_ct_CC" = x; then 2895a73027baSmrg CC="" 2896a73027baSmrg else 2897a73027baSmrg case $cross_compiling:$ac_tool_warned in 2898a73027baSmrgyes:) 2899bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2900bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2901a73027baSmrgac_tool_warned=yes ;; 2902a73027baSmrgesac 2903a73027baSmrg CC=$ac_ct_CC 2904a73027baSmrg fi 2905a73027baSmrgelse 2906a73027baSmrg CC="$ac_cv_prog_CC" 2907a73027baSmrgfi 2908a73027baSmrg 2909a73027baSmrgif test -z "$CC"; then 2910a73027baSmrg if test -n "$ac_tool_prefix"; then 2911a73027baSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2912a73027baSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2913bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 291529004570Smrgif ${ac_cv_prog_CC+:} false; then : 2916bf4a254eSmrg $as_echo_n "(cached) " >&6 2917a73027baSmrgelse 2918a73027baSmrg if test -n "$CC"; then 2919a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2920a73027baSmrgelse 2921a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922a73027baSmrgfor as_dir in $PATH 2923a73027baSmrgdo 2924a73027baSmrg IFS=$as_save_IFS 2925a73027baSmrg test -z "$as_dir" && as_dir=. 2926bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2927a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2928a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2929bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930a73027baSmrg break 2 2931a73027baSmrg fi 2932a73027baSmrgdone 2933bf4a254eSmrg done 2934a73027baSmrgIFS=$as_save_IFS 2935a73027baSmrg 2936a73027baSmrgfi 2937a73027baSmrgfi 2938a73027baSmrgCC=$ac_cv_prog_CC 2939a73027baSmrgif test -n "$CC"; then 2940bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2941bf4a254eSmrg$as_echo "$CC" >&6; } 2942a73027baSmrgelse 2943bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944bf4a254eSmrg$as_echo "no" >&6; } 2945a73027baSmrgfi 2946a73027baSmrg 2947a73027baSmrg 2948a73027baSmrg fi 2949a73027baSmrgfi 2950a73027baSmrgif test -z "$CC"; then 2951a73027baSmrg # Extract the first word of "cc", so it can be a program name with args. 2952a73027baSmrgset dummy cc; ac_word=$2 2953bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 295529004570Smrgif ${ac_cv_prog_CC+:} false; then : 2956bf4a254eSmrg $as_echo_n "(cached) " >&6 2957a73027baSmrgelse 2958a73027baSmrg if test -n "$CC"; then 2959a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2960a73027baSmrgelse 2961a73027baSmrg ac_prog_rejected=no 2962a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963a73027baSmrgfor as_dir in $PATH 2964a73027baSmrgdo 2965a73027baSmrg IFS=$as_save_IFS 2966a73027baSmrg test -z "$as_dir" && as_dir=. 2967bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2968a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2969a73027baSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2970a73027baSmrg ac_prog_rejected=yes 2971a73027baSmrg continue 2972a73027baSmrg fi 2973a73027baSmrg ac_cv_prog_CC="cc" 2974bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2975a73027baSmrg break 2 2976a73027baSmrg fi 2977a73027baSmrgdone 2978bf4a254eSmrg done 2979a73027baSmrgIFS=$as_save_IFS 2980a73027baSmrg 2981a73027baSmrgif test $ac_prog_rejected = yes; then 2982a73027baSmrg # We found a bogon in the path, so make sure we never use it. 2983a73027baSmrg set dummy $ac_cv_prog_CC 2984a73027baSmrg shift 2985a73027baSmrg if test $# != 0; then 2986a73027baSmrg # We chose a different compiler from the bogus one. 2987a73027baSmrg # However, it has the same basename, so the bogon will be chosen 2988a73027baSmrg # first if we set CC to just the basename; use the full file name. 2989a73027baSmrg shift 2990a73027baSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2991a73027baSmrg fi 2992a73027baSmrgfi 2993a73027baSmrgfi 2994a73027baSmrgfi 2995a73027baSmrgCC=$ac_cv_prog_CC 2996a73027baSmrgif test -n "$CC"; then 2997bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2998bf4a254eSmrg$as_echo "$CC" >&6; } 2999a73027baSmrgelse 3000bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001bf4a254eSmrg$as_echo "no" >&6; } 3002a73027baSmrgfi 3003a73027baSmrg 3004a73027baSmrg 3005a73027baSmrgfi 3006a73027baSmrgif test -z "$CC"; then 3007a73027baSmrg if test -n "$ac_tool_prefix"; then 3008a73027baSmrg for ac_prog in cl.exe 3009a73027baSmrg do 3010a73027baSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3011a73027baSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3012bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 301429004570Smrgif ${ac_cv_prog_CC+:} false; then : 3015bf4a254eSmrg $as_echo_n "(cached) " >&6 3016a73027baSmrgelse 3017a73027baSmrg if test -n "$CC"; then 3018a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3019a73027baSmrgelse 3020a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021a73027baSmrgfor as_dir in $PATH 3022a73027baSmrgdo 3023a73027baSmrg IFS=$as_save_IFS 3024a73027baSmrg test -z "$as_dir" && as_dir=. 3025bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3026a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3027a73027baSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3028bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3029a73027baSmrg break 2 3030a73027baSmrg fi 3031a73027baSmrgdone 3032bf4a254eSmrg done 3033a73027baSmrgIFS=$as_save_IFS 3034a73027baSmrg 3035a73027baSmrgfi 3036a73027baSmrgfi 3037a73027baSmrgCC=$ac_cv_prog_CC 3038a73027baSmrgif test -n "$CC"; then 3039bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3040bf4a254eSmrg$as_echo "$CC" >&6; } 3041a73027baSmrgelse 3042bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3043bf4a254eSmrg$as_echo "no" >&6; } 3044a73027baSmrgfi 3045a73027baSmrg 3046a73027baSmrg 3047a73027baSmrg test -n "$CC" && break 3048a73027baSmrg done 3049a73027baSmrgfi 3050a73027baSmrgif test -z "$CC"; then 3051a73027baSmrg ac_ct_CC=$CC 3052a73027baSmrg for ac_prog in cl.exe 3053a73027baSmrgdo 3054a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3055a73027baSmrgset dummy $ac_prog; ac_word=$2 3056bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 305829004570Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3059bf4a254eSmrg $as_echo_n "(cached) " >&6 3060a73027baSmrgelse 3061a73027baSmrg if test -n "$ac_ct_CC"; then 3062a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3063a73027baSmrgelse 3064a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065a73027baSmrgfor as_dir in $PATH 3066a73027baSmrgdo 3067a73027baSmrg IFS=$as_save_IFS 3068a73027baSmrg test -z "$as_dir" && as_dir=. 3069bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3070a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3071a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3072bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073a73027baSmrg break 2 3074a73027baSmrg fi 3075a73027baSmrgdone 3076bf4a254eSmrg done 3077a73027baSmrgIFS=$as_save_IFS 3078a73027baSmrg 3079a73027baSmrgfi 3080a73027baSmrgfi 3081a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3082a73027baSmrgif test -n "$ac_ct_CC"; then 3083bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3084bf4a254eSmrg$as_echo "$ac_ct_CC" >&6; } 3085a73027baSmrgelse 3086bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087bf4a254eSmrg$as_echo "no" >&6; } 3088a73027baSmrgfi 3089a73027baSmrg 3090a73027baSmrg 3091a73027baSmrg test -n "$ac_ct_CC" && break 3092a73027baSmrgdone 3093a73027baSmrg 3094a73027baSmrg if test "x$ac_ct_CC" = x; then 3095a73027baSmrg CC="" 3096a73027baSmrg else 3097a73027baSmrg case $cross_compiling:$ac_tool_warned in 3098a73027baSmrgyes:) 3099bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3100bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3101a73027baSmrgac_tool_warned=yes ;; 3102a73027baSmrgesac 3103a73027baSmrg CC=$ac_ct_CC 3104a73027baSmrg fi 3105a73027baSmrgfi 3106a73027baSmrg 3107a73027baSmrgfi 3108a73027baSmrg 3109a73027baSmrg 3110bf4a254eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3111bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 311229004570Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 311329004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 3114a73027baSmrg 3115a73027baSmrg# Provide some information about the compiler. 3116bf4a254eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3117bf4a254eSmrgset X $ac_compile 3118bf4a254eSmrgac_compiler=$2 3119bf4a254eSmrgfor ac_option in --version -v -V -qversion; do 3120bf4a254eSmrg { { ac_try="$ac_compiler $ac_option >&5" 3121a73027baSmrgcase "(($ac_try" in 3122a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123a73027baSmrg *) ac_try_echo=$ac_try;; 3124a73027baSmrgesac 3125bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3126bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3127bf4a254eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3128a73027baSmrg ac_status=$? 3129bf4a254eSmrg if test -s conftest.err; then 3130bf4a254eSmrg sed '10a\ 3131bf4a254eSmrg... rest of stderr output deleted ... 3132bf4a254eSmrg 10q' conftest.err >conftest.er1 3133bf4a254eSmrg cat conftest.er1 >&5 3134bf4a254eSmrg fi 3135bf4a254eSmrg rm -f conftest.er1 conftest.err 3136bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3137bf4a254eSmrg test $ac_status = 0; } 3138bf4a254eSmrgdone 3139a73027baSmrg 3140bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3141a73027baSmrg/* end confdefs.h. */ 3142a73027baSmrg 3143a73027baSmrgint 3144a73027baSmrgmain () 3145a73027baSmrg{ 3146a73027baSmrg 3147a73027baSmrg ; 3148a73027baSmrg return 0; 3149a73027baSmrg} 3150a73027baSmrg_ACEOF 3151a73027baSmrgac_clean_files_save=$ac_clean_files 3152bf4a254eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3153a73027baSmrg# Try to create an executable without -o first, disregard a.out. 3154a73027baSmrg# It will help us diagnose broken compilers, and finding out an intuition 3155a73027baSmrg# of exeext. 3156bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3157bf4a254eSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3158bf4a254eSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3159bf4a254eSmrg 3160bf4a254eSmrg# The possible output files: 3161bf4a254eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3162bf4a254eSmrg 3163a73027baSmrgac_rmfiles= 3164a73027baSmrgfor ac_file in $ac_files 3165a73027baSmrgdo 3166a73027baSmrg case $ac_file in 3167bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3168a73027baSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3169a73027baSmrg esac 3170a73027baSmrgdone 3171a73027baSmrgrm -f $ac_rmfiles 3172a73027baSmrg 3173bf4a254eSmrgif { { ac_try="$ac_link_default" 3174a73027baSmrgcase "(($ac_try" in 3175a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176a73027baSmrg *) ac_try_echo=$ac_try;; 3177a73027baSmrgesac 3178bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3179bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3180a73027baSmrg (eval "$ac_link_default") 2>&5 3181a73027baSmrg ac_status=$? 3182bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3183bf4a254eSmrg test $ac_status = 0; }; then : 3184a73027baSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3185a73027baSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3186a73027baSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3187a73027baSmrg# so that the user can short-circuit this test for compilers unknown to 3188a73027baSmrg# Autoconf. 3189a73027baSmrgfor ac_file in $ac_files '' 3190a73027baSmrgdo 3191a73027baSmrg test -f "$ac_file" || continue 3192a73027baSmrg case $ac_file in 3193bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3194a73027baSmrg ;; 3195a73027baSmrg [ab].out ) 3196a73027baSmrg # We found the default executable, but exeext='' is most 3197a73027baSmrg # certainly right. 3198a73027baSmrg break;; 3199a73027baSmrg *.* ) 3200bf4a254eSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3201a73027baSmrg then :; else 3202a73027baSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3203a73027baSmrg fi 3204a73027baSmrg # We set ac_cv_exeext here because the later test for it is not 3205a73027baSmrg # safe: cross compilers may not add the suffix if given an `-o' 3206a73027baSmrg # argument, so we may need to know it at that point already. 3207a73027baSmrg # Even if this section looks crufty: it has the advantage of 3208a73027baSmrg # actually working. 3209a73027baSmrg break;; 3210a73027baSmrg * ) 3211a73027baSmrg break;; 3212a73027baSmrg esac 3213a73027baSmrgdone 3214a73027baSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3215a73027baSmrg 3216a73027baSmrgelse 3217a73027baSmrg ac_file='' 3218a73027baSmrgfi 3219bf4a254eSmrgif test -z "$ac_file"; then : 3220bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221bf4a254eSmrg$as_echo "no" >&6; } 3222bf4a254eSmrg$as_echo "$as_me: failed program was:" >&5 3223a73027baSmrgsed 's/^/| /' conftest.$ac_ext >&5 3224a73027baSmrg 3225bf4a254eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 322729004570Smrgas_fn_error 77 "C compiler cannot create executables 322829004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 3229bf4a254eSmrgelse 3230bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3231bf4a254eSmrg$as_echo "yes" >&6; } 3232a73027baSmrgfi 3233bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3234bf4a254eSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3235bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3236bf4a254eSmrg$as_echo "$ac_file" >&6; } 3237a73027baSmrgac_exeext=$ac_cv_exeext 3238a73027baSmrg 3239bf4a254eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3240a73027baSmrgac_clean_files=$ac_clean_files_save 3241bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3242bf4a254eSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3243bf4a254eSmrgif { { ac_try="$ac_link" 3244a73027baSmrgcase "(($ac_try" in 3245a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246a73027baSmrg *) ac_try_echo=$ac_try;; 3247a73027baSmrgesac 3248bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3249bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3250a73027baSmrg (eval "$ac_link") 2>&5 3251a73027baSmrg ac_status=$? 3252bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253bf4a254eSmrg test $ac_status = 0; }; then : 3254a73027baSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3255a73027baSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3256a73027baSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3257a73027baSmrg# `rm'. 3258a73027baSmrgfor ac_file in conftest.exe conftest conftest.*; do 3259a73027baSmrg test -f "$ac_file" || continue 3260a73027baSmrg case $ac_file in 3261bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3262a73027baSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3263a73027baSmrg break;; 3264a73027baSmrg * ) break;; 3265a73027baSmrg esac 3266a73027baSmrgdone 3267a73027baSmrgelse 3268bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3269bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 327029004570Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 327129004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 3272a73027baSmrgfi 3273bf4a254eSmrgrm -f conftest conftest$ac_cv_exeext 3274bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3275bf4a254eSmrg$as_echo "$ac_cv_exeext" >&6; } 3276a73027baSmrg 3277a73027baSmrgrm -f conftest.$ac_ext 3278a73027baSmrgEXEEXT=$ac_cv_exeext 3279a73027baSmrgac_exeext=$EXEEXT 3280bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281bf4a254eSmrg/* end confdefs.h. */ 3282bf4a254eSmrg#include <stdio.h> 3283bf4a254eSmrgint 3284bf4a254eSmrgmain () 3285bf4a254eSmrg{ 3286bf4a254eSmrgFILE *f = fopen ("conftest.out", "w"); 3287bf4a254eSmrg return ferror (f) || fclose (f) != 0; 3288bf4a254eSmrg 3289bf4a254eSmrg ; 3290bf4a254eSmrg return 0; 3291bf4a254eSmrg} 3292a73027baSmrg_ACEOF 3293bf4a254eSmrgac_clean_files="$ac_clean_files conftest.out" 3294bf4a254eSmrg# Check that the compiler produces executables we can run. If not, either 3295bf4a254eSmrg# the compiler is broken, or we cross compile. 3296bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3297bf4a254eSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3298bf4a254eSmrgif test "$cross_compiling" != yes; then 3299bf4a254eSmrg { { ac_try="$ac_link" 3300bf4a254eSmrgcase "(($ac_try" in 3301bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3302bf4a254eSmrg *) ac_try_echo=$ac_try;; 3303bf4a254eSmrgesac 3304bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3305bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3306bf4a254eSmrg (eval "$ac_link") 2>&5 3307bf4a254eSmrg ac_status=$? 3308bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3309bf4a254eSmrg test $ac_status = 0; } 3310bf4a254eSmrg if { ac_try='./conftest$ac_cv_exeext' 3311bf4a254eSmrg { { case "(($ac_try" in 3312bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313bf4a254eSmrg *) ac_try_echo=$ac_try;; 3314bf4a254eSmrgesac 3315bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3316bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3317bf4a254eSmrg (eval "$ac_try") 2>&5 3318bf4a254eSmrg ac_status=$? 3319bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3320bf4a254eSmrg test $ac_status = 0; }; }; then 3321bf4a254eSmrg cross_compiling=no 3322bf4a254eSmrg else 3323bf4a254eSmrg if test "$cross_compiling" = maybe; then 3324bf4a254eSmrg cross_compiling=yes 3325bf4a254eSmrg else 3326bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 332829004570Smrgas_fn_error $? "cannot run C compiled programs. 3329bf4a254eSmrgIf you meant to cross compile, use \`--host'. 333029004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 3331bf4a254eSmrg fi 3332bf4a254eSmrg fi 3333bf4a254eSmrgfi 3334bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3335bf4a254eSmrg$as_echo "$cross_compiling" >&6; } 3336bf4a254eSmrg 3337bf4a254eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3338bf4a254eSmrgac_clean_files=$ac_clean_files_save 3339bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3340bf4a254eSmrg$as_echo_n "checking for suffix of object files... " >&6; } 334129004570Smrgif ${ac_cv_objext+:} false; then : 3342bf4a254eSmrg $as_echo_n "(cached) " >&6 3343bf4a254eSmrgelse 3344bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345a73027baSmrg/* end confdefs.h. */ 3346a73027baSmrg 3347a73027baSmrgint 3348a73027baSmrgmain () 3349a73027baSmrg{ 3350a73027baSmrg 3351a73027baSmrg ; 3352a73027baSmrg return 0; 3353a73027baSmrg} 3354a73027baSmrg_ACEOF 3355a73027baSmrgrm -f conftest.o conftest.obj 3356bf4a254eSmrgif { { ac_try="$ac_compile" 3357a73027baSmrgcase "(($ac_try" in 3358a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359a73027baSmrg *) ac_try_echo=$ac_try;; 3360a73027baSmrgesac 3361bf4a254eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362bf4a254eSmrg$as_echo "$ac_try_echo"; } >&5 3363a73027baSmrg (eval "$ac_compile") 2>&5 3364a73027baSmrg ac_status=$? 3365bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366bf4a254eSmrg test $ac_status = 0; }; then : 3367a73027baSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3368a73027baSmrg test -f "$ac_file" || continue; 3369a73027baSmrg case $ac_file in 3370bf4a254eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3371a73027baSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3372a73027baSmrg break;; 3373a73027baSmrg esac 3374a73027baSmrgdone 3375a73027baSmrgelse 3376bf4a254eSmrg $as_echo "$as_me: failed program was:" >&5 3377a73027baSmrgsed 's/^/| /' conftest.$ac_ext >&5 3378a73027baSmrg 3379bf4a254eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3380bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 338129004570Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 338229004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 3383a73027baSmrgfi 3384a73027baSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3385a73027baSmrgfi 3386bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3387bf4a254eSmrg$as_echo "$ac_cv_objext" >&6; } 3388a73027baSmrgOBJEXT=$ac_cv_objext 3389a73027baSmrgac_objext=$OBJEXT 3390bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3391bf4a254eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 339229004570Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3393bf4a254eSmrg $as_echo_n "(cached) " >&6 3394a73027baSmrgelse 3395bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396a73027baSmrg/* end confdefs.h. */ 3397a73027baSmrg 3398a73027baSmrgint 3399a73027baSmrgmain () 3400a73027baSmrg{ 3401a73027baSmrg#ifndef __GNUC__ 3402a73027baSmrg choke me 3403a73027baSmrg#endif 3404a73027baSmrg 3405a73027baSmrg ; 3406a73027baSmrg return 0; 3407a73027baSmrg} 3408a73027baSmrg_ACEOF 3409bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3410a73027baSmrg ac_compiler_gnu=yes 3411a73027baSmrgelse 3412bf4a254eSmrg ac_compiler_gnu=no 3413a73027baSmrgfi 3414a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3415a73027baSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3416a73027baSmrg 3417a73027baSmrgfi 3418bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3419bf4a254eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3420bf4a254eSmrgif test $ac_compiler_gnu = yes; then 3421bf4a254eSmrg GCC=yes 3422bf4a254eSmrgelse 3423bf4a254eSmrg GCC= 3424bf4a254eSmrgfi 3425a73027baSmrgac_test_CFLAGS=${CFLAGS+set} 3426a73027baSmrgac_save_CFLAGS=$CFLAGS 3427bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3428bf4a254eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 342929004570Smrgif ${ac_cv_prog_cc_g+:} false; then : 3430bf4a254eSmrg $as_echo_n "(cached) " >&6 3431a73027baSmrgelse 3432a73027baSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3433a73027baSmrg ac_c_werror_flag=yes 3434a73027baSmrg ac_cv_prog_cc_g=no 3435a73027baSmrg CFLAGS="-g" 3436bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437a73027baSmrg/* end confdefs.h. */ 3438a73027baSmrg 3439a73027baSmrgint 3440a73027baSmrgmain () 3441a73027baSmrg{ 3442a73027baSmrg 3443a73027baSmrg ; 3444a73027baSmrg return 0; 3445a73027baSmrg} 3446a73027baSmrg_ACEOF 3447bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3448a73027baSmrg ac_cv_prog_cc_g=yes 3449a73027baSmrgelse 3450bf4a254eSmrg CFLAGS="" 3451bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452a73027baSmrg/* end confdefs.h. */ 3453a73027baSmrg 3454a73027baSmrgint 3455a73027baSmrgmain () 3456a73027baSmrg{ 3457a73027baSmrg 3458a73027baSmrg ; 3459a73027baSmrg return 0; 3460a73027baSmrg} 3461a73027baSmrg_ACEOF 3462bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3463a73027baSmrg 3464bf4a254eSmrgelse 3465bf4a254eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3466a73027baSmrg CFLAGS="-g" 3467bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468a73027baSmrg/* end confdefs.h. */ 3469a73027baSmrg 3470a73027baSmrgint 3471a73027baSmrgmain () 3472a73027baSmrg{ 3473a73027baSmrg 3474a73027baSmrg ; 3475a73027baSmrg return 0; 3476a73027baSmrg} 3477a73027baSmrg_ACEOF 3478bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3479a73027baSmrg ac_cv_prog_cc_g=yes 3480a73027baSmrgfi 3481a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3482a73027baSmrgfi 3483a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3484a73027baSmrgfi 3485a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3486a73027baSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3487a73027baSmrgfi 3488bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3489bf4a254eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3490a73027baSmrgif test "$ac_test_CFLAGS" = set; then 3491a73027baSmrg CFLAGS=$ac_save_CFLAGS 3492a73027baSmrgelif test $ac_cv_prog_cc_g = yes; then 3493a73027baSmrg if test "$GCC" = yes; then 3494a73027baSmrg CFLAGS="-g -O2" 3495a73027baSmrg else 3496a73027baSmrg CFLAGS="-g" 3497a73027baSmrg fi 3498a73027baSmrgelse 3499a73027baSmrg if test "$GCC" = yes; then 3500a73027baSmrg CFLAGS="-O2" 3501a73027baSmrg else 3502a73027baSmrg CFLAGS= 3503a73027baSmrg fi 3504a73027baSmrgfi 3505bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3506bf4a254eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 350729004570Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3508bf4a254eSmrg $as_echo_n "(cached) " >&6 3509a73027baSmrgelse 3510a73027baSmrg ac_cv_prog_cc_c89=no 3511a73027baSmrgac_save_CC=$CC 3512bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513a73027baSmrg/* end confdefs.h. */ 3514a73027baSmrg#include <stdarg.h> 3515a73027baSmrg#include <stdio.h> 3516a73027baSmrg#include <sys/types.h> 3517a73027baSmrg#include <sys/stat.h> 3518a73027baSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3519a73027baSmrgstruct buf { int x; }; 3520a73027baSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3521a73027baSmrgstatic char *e (p, i) 3522a73027baSmrg char **p; 3523a73027baSmrg int i; 3524a73027baSmrg{ 3525a73027baSmrg return p[i]; 3526a73027baSmrg} 3527a73027baSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3528a73027baSmrg{ 3529a73027baSmrg char *s; 3530a73027baSmrg va_list v; 3531a73027baSmrg va_start (v,p); 3532a73027baSmrg s = g (p, va_arg (v,int)); 3533a73027baSmrg va_end (v); 3534a73027baSmrg return s; 3535a73027baSmrg} 3536a73027baSmrg 3537a73027baSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3538a73027baSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3539a73027baSmrg These don't provoke an error unfortunately, instead are silently treated 3540a73027baSmrg as 'x'. The following induces an error, until -std is added to get 3541a73027baSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3542a73027baSmrg array size at least. It's necessary to write '\x00'==0 to get something 3543a73027baSmrg that's true only with -std. */ 3544a73027baSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3545a73027baSmrg 3546a73027baSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3547a73027baSmrg inside strings and character constants. */ 3548a73027baSmrg#define FOO(x) 'x' 3549a73027baSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3550a73027baSmrg 3551a73027baSmrgint test (int i, double x); 3552a73027baSmrgstruct s1 {int (*f) (int a);}; 3553a73027baSmrgstruct s2 {int (*f) (double a);}; 3554a73027baSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3555a73027baSmrgint argc; 3556a73027baSmrgchar **argv; 3557a73027baSmrgint 3558a73027baSmrgmain () 3559a73027baSmrg{ 3560a73027baSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3561a73027baSmrg ; 3562a73027baSmrg return 0; 3563a73027baSmrg} 3564a73027baSmrg_ACEOF 3565a73027baSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3566a73027baSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3567a73027baSmrgdo 3568a73027baSmrg CC="$ac_save_CC $ac_arg" 3569bf4a254eSmrg if ac_fn_c_try_compile "$LINENO"; then : 3570a73027baSmrg ac_cv_prog_cc_c89=$ac_arg 3571a73027baSmrgfi 3572a73027baSmrgrm -f core conftest.err conftest.$ac_objext 3573a73027baSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3574a73027baSmrgdone 3575a73027baSmrgrm -f conftest.$ac_ext 3576a73027baSmrgCC=$ac_save_CC 3577a73027baSmrg 3578a73027baSmrgfi 3579a73027baSmrg# AC_CACHE_VAL 3580a73027baSmrgcase "x$ac_cv_prog_cc_c89" in 3581a73027baSmrg x) 3582bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3583bf4a254eSmrg$as_echo "none needed" >&6; } ;; 3584a73027baSmrg xno) 3585bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3586bf4a254eSmrg$as_echo "unsupported" >&6; } ;; 3587a73027baSmrg *) 3588a73027baSmrg CC="$CC $ac_cv_prog_cc_c89" 3589bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3590bf4a254eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3591a73027baSmrgesac 3592bf4a254eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3593a73027baSmrg 3594bf4a254eSmrgfi 3595a73027baSmrg 3596a73027baSmrgac_ext=c 3597a73027baSmrgac_cpp='$CPP $CPPFLAGS' 3598a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3599a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3600a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3601a73027baSmrg 3602a73027baSmrgdepcc="$CC" am_compiler_list= 3603a73027baSmrg 3604bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3605bf4a254eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 360629004570Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3607bf4a254eSmrg $as_echo_n "(cached) " >&6 3608a73027baSmrgelse 3609a73027baSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3610a73027baSmrg # We make a subdir and do the tests there. Otherwise we can end up 3611a73027baSmrg # making bogus files that we don't know about and never remove. For 3612a73027baSmrg # instance it was reported that on HP-UX the gcc test will end up 3613a73027baSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3614a73027baSmrg # in D'. 3615a73027baSmrg mkdir conftest.dir 3616a73027baSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3617a73027baSmrg # using a relative directory. 3618a73027baSmrg cp "$am_depcomp" conftest.dir 3619a73027baSmrg cd conftest.dir 3620a73027baSmrg # We will build objects and dependencies in a subdirectory because 3621a73027baSmrg # it helps to detect inapplicable dependency modes. For instance 3622a73027baSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3623a73027baSmrg # side effect of compilation, but ICC will put the dependencies in 3624a73027baSmrg # the current directory while Tru64 will put them in the object 3625a73027baSmrg # directory. 3626a73027baSmrg mkdir sub 3627a73027baSmrg 3628a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3629a73027baSmrg if test "$am_compiler_list" = ""; then 3630a73027baSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3631a73027baSmrg fi 3632bf4a254eSmrg am__universal=false 3633bf4a254eSmrg case " $depcc " in #( 3634bf4a254eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3635bf4a254eSmrg esac 3636bf4a254eSmrg 3637a73027baSmrg for depmode in $am_compiler_list; do 3638a73027baSmrg # Setup a source with many dependencies, because some compilers 3639a73027baSmrg # like to wrap large dependency lists on column 80 (with \), and 3640a73027baSmrg # we should not choose a depcomp mode which is confused by this. 3641a73027baSmrg # 3642a73027baSmrg # We need to recreate these files for each test, as the compiler may 3643a73027baSmrg # overwrite some of them when testing with obscure command lines. 3644a73027baSmrg # This happens at least with the AIX C compiler. 3645a73027baSmrg : > sub/conftest.c 3646a73027baSmrg for i in 1 2 3 4 5 6; do 3647a73027baSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3648a73027baSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3649a73027baSmrg # Solaris 8's {/usr,}/bin/sh. 3650a73027baSmrg touch sub/conftst$i.h 3651a73027baSmrg done 3652a73027baSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3653a73027baSmrg 3654bf4a254eSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3655bf4a254eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3656bf4a254eSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3657bf4a254eSmrg # versions had trouble with output in subdirs 3658bf4a254eSmrg am__obj=sub/conftest.${OBJEXT-o} 3659bf4a254eSmrg am__minus_obj="-o $am__obj" 3660a73027baSmrg case $depmode in 3661bf4a254eSmrg gcc) 3662bf4a254eSmrg # This depmode causes a compiler race in universal mode. 3663bf4a254eSmrg test "$am__universal" = false || continue 3664bf4a254eSmrg ;; 3665a73027baSmrg nosideeffect) 3666a73027baSmrg # after this tag, mechanisms are not by side-effect, so they'll 3667a73027baSmrg # only be used when explicitly requested 3668a73027baSmrg if test "x$enable_dependency_tracking" = xyes; then 3669a73027baSmrg continue 3670a73027baSmrg else 3671a73027baSmrg break 3672a73027baSmrg fi 3673a73027baSmrg ;; 3674bf4a254eSmrg msvisualcpp | msvcmsys) 3675bf4a254eSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3676bf4a254eSmrg # not run yet. These depmodes are late enough in the game, and 3677bf4a254eSmrg # so weak that their functioning should not be impacted. 3678bf4a254eSmrg am__obj=conftest.${OBJEXT-o} 3679bf4a254eSmrg am__minus_obj= 3680bf4a254eSmrg ;; 3681a73027baSmrg none) break ;; 3682a73027baSmrg esac 3683a73027baSmrg if depmode=$depmode \ 3684bf4a254eSmrg source=sub/conftest.c object=$am__obj \ 3685a73027baSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3686bf4a254eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3687a73027baSmrg >/dev/null 2>conftest.err && 3688a73027baSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3689a73027baSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3690bf4a254eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3691a73027baSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3692a73027baSmrg # icc doesn't choke on unknown options, it will just issue warnings 3693a73027baSmrg # or remarks (even with -Werror). So we grep stderr for any message 3694a73027baSmrg # that says an option was ignored or not supported. 3695a73027baSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3696a73027baSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3697a73027baSmrg # The diagnosis changed in icc 8.0: 3698a73027baSmrg # icc: Command line remark: option '-MP' not supported 3699a73027baSmrg if (grep 'ignoring option' conftest.err || 3700a73027baSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3701a73027baSmrg am_cv_CC_dependencies_compiler_type=$depmode 3702a73027baSmrg break 3703a73027baSmrg fi 3704a73027baSmrg fi 3705a73027baSmrg done 3706a73027baSmrg 3707a73027baSmrg cd .. 3708a73027baSmrg rm -rf conftest.dir 3709a73027baSmrgelse 3710a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3711a73027baSmrgfi 3712a73027baSmrg 3713a73027baSmrgfi 3714bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3715bf4a254eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3716a73027baSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3717a73027baSmrg 3718a73027baSmrg if 3719a73027baSmrg test "x$enable_dependency_tracking" != xno \ 3720a73027baSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3721a73027baSmrg am__fastdepCC_TRUE= 3722a73027baSmrg am__fastdepCC_FALSE='#' 3723a73027baSmrgelse 3724a73027baSmrg am__fastdepCC_TRUE='#' 3725a73027baSmrg am__fastdepCC_FALSE= 3726a73027baSmrgfi 3727a73027baSmrg 3728a73027baSmrg 372929004570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 373029004570Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 373129004570Smrgif ${ac_cv_prog_cc_c99+:} false; then : 3732bf4a254eSmrg $as_echo_n "(cached) " >&6 3733a73027baSmrgelse 373429004570Smrg ac_cv_prog_cc_c99=no 373529004570Smrgac_save_CC=$CC 373629004570Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737a73027baSmrg/* end confdefs.h. */ 373829004570Smrg#include <stdarg.h> 373929004570Smrg#include <stdbool.h> 374029004570Smrg#include <stdlib.h> 374129004570Smrg#include <wchar.h> 374229004570Smrg#include <stdio.h> 3743a73027baSmrg 374429004570Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 374529004570Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 374629004570Smrg#define showlist(...) puts (#__VA_ARGS__) 374729004570Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 374829004570Smrgstatic void 374929004570Smrgtest_varargs_macros (void) 375029004570Smrg{ 375129004570Smrg int x = 1234; 375229004570Smrg int y = 5678; 375329004570Smrg debug ("Flag"); 375429004570Smrg debug ("X = %d\n", x); 375529004570Smrg showlist (The first, second, and third items.); 375629004570Smrg report (x>y, "x is %d but y is %d", x, y); 375729004570Smrg} 3758a73027baSmrg 375929004570Smrg// Check long long types. 376029004570Smrg#define BIG64 18446744073709551615ull 376129004570Smrg#define BIG32 4294967295ul 376229004570Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 376329004570Smrg#if !BIG_OK 376429004570Smrg your preprocessor is broken; 376529004570Smrg#endif 376629004570Smrg#if BIG_OK 376729004570Smrg#else 376829004570Smrg your preprocessor is broken; 376929004570Smrg#endif 377029004570Smrgstatic long long int bignum = -9223372036854775807LL; 377129004570Smrgstatic unsigned long long int ubignum = BIG64; 377229004570Smrg 377329004570Smrgstruct incomplete_array 377429004570Smrg{ 377529004570Smrg int datasize; 377629004570Smrg double data[]; 377729004570Smrg}; 377829004570Smrg 377929004570Smrgstruct named_init { 378029004570Smrg int number; 378129004570Smrg const wchar_t *name; 378229004570Smrg double average; 378329004570Smrg}; 378429004570Smrg 378529004570Smrgtypedef const char *ccp; 378629004570Smrg 378729004570Smrgstatic inline int 378829004570Smrgtest_restrict (ccp restrict text) 378929004570Smrg{ 379029004570Smrg // See if C++-style comments work. 379129004570Smrg // Iterate through items via the restricted pointer. 379229004570Smrg // Also check for declarations in for loops. 379329004570Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 379429004570Smrg continue; 379529004570Smrg return 0; 379629004570Smrg} 379729004570Smrg 379829004570Smrg// Check varargs and va_copy. 379929004570Smrgstatic void 380029004570Smrgtest_varargs (const char *format, ...) 380129004570Smrg{ 380229004570Smrg va_list args; 380329004570Smrg va_start (args, format); 380429004570Smrg va_list args_copy; 380529004570Smrg va_copy (args_copy, args); 380629004570Smrg 380729004570Smrg const char *str; 380829004570Smrg int number; 380929004570Smrg float fnumber; 381029004570Smrg 381129004570Smrg while (*format) 381229004570Smrg { 381329004570Smrg switch (*format++) 381429004570Smrg { 381529004570Smrg case 's': // string 381629004570Smrg str = va_arg (args_copy, const char *); 381729004570Smrg break; 381829004570Smrg case 'd': // int 381929004570Smrg number = va_arg (args_copy, int); 382029004570Smrg break; 382129004570Smrg case 'f': // float 382229004570Smrg fnumber = va_arg (args_copy, double); 382329004570Smrg break; 382429004570Smrg default: 382529004570Smrg break; 382629004570Smrg } 382729004570Smrg } 382829004570Smrg va_end (args_copy); 382929004570Smrg va_end (args); 383029004570Smrg} 383129004570Smrg 383229004570Smrgint 383329004570Smrgmain () 383429004570Smrg{ 383529004570Smrg 383629004570Smrg // Check bool. 383729004570Smrg _Bool success = false; 383829004570Smrg 383929004570Smrg // Check restrict. 384029004570Smrg if (test_restrict ("String literal") == 0) 384129004570Smrg success = true; 384229004570Smrg char *restrict newvar = "Another string"; 384329004570Smrg 384429004570Smrg // Check varargs. 384529004570Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 384629004570Smrg test_varargs_macros (); 384729004570Smrg 384829004570Smrg // Check flexible array members. 384929004570Smrg struct incomplete_array *ia = 385029004570Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 385129004570Smrg ia->datasize = 10; 385229004570Smrg for (int i = 0; i < ia->datasize; ++i) 385329004570Smrg ia->data[i] = i * 1.234; 385429004570Smrg 385529004570Smrg // Check named initializers. 385629004570Smrg struct named_init ni = { 385729004570Smrg .number = 34, 385829004570Smrg .name = L"Test wide string", 385929004570Smrg .average = 543.34343, 386029004570Smrg }; 386129004570Smrg 386229004570Smrg ni.number = 58; 386329004570Smrg 386429004570Smrg int dynamic_array[ni.number]; 386529004570Smrg dynamic_array[ni.number - 1] = 543; 386629004570Smrg 386729004570Smrg // work around unused variable warnings 386829004570Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 386929004570Smrg || dynamic_array[ni.number - 1] != 543); 387029004570Smrg 387129004570Smrg ; 387229004570Smrg return 0; 387329004570Smrg} 387429004570Smrg_ACEOF 387529004570Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 387629004570Smrgdo 387729004570Smrg CC="$ac_save_CC $ac_arg" 387829004570Smrg if ac_fn_c_try_compile "$LINENO"; then : 387929004570Smrg ac_cv_prog_cc_c99=$ac_arg 388029004570Smrgfi 388129004570Smrgrm -f core conftest.err conftest.$ac_objext 388229004570Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 388329004570Smrgdone 388429004570Smrgrm -f conftest.$ac_ext 388529004570SmrgCC=$ac_save_CC 388629004570Smrg 388729004570Smrgfi 388829004570Smrg# AC_CACHE_VAL 388929004570Smrgcase "x$ac_cv_prog_cc_c99" in 389029004570Smrg x) 389129004570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 389229004570Smrg$as_echo "none needed" >&6; } ;; 389329004570Smrg xno) 389429004570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 389529004570Smrg$as_echo "unsupported" >&6; } ;; 389629004570Smrg *) 389729004570Smrg CC="$CC $ac_cv_prog_cc_c99" 389829004570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 389929004570Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 390029004570Smrgesac 390129004570Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 390229004570Smrg 390329004570Smrgfi 390429004570Smrg 390529004570Smrg 390629004570Smrg 390729004570Smrgac_ext=c 390829004570Smrgac_cpp='$CPP $CPPFLAGS' 390929004570Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 391029004570Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 391129004570Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 391229004570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 391329004570Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 391429004570Smrg# On Suns, sometimes $CPP names a directory. 391529004570Smrgif test -n "$CPP" && test -d "$CPP"; then 391629004570Smrg CPP= 391729004570Smrgfi 391829004570Smrgif test -z "$CPP"; then 391929004570Smrg if ${ac_cv_prog_CPP+:} false; then : 392029004570Smrg $as_echo_n "(cached) " >&6 392129004570Smrgelse 392229004570Smrg # Double quotes because CPP needs to be expanded 392329004570Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 392429004570Smrg do 392529004570Smrg ac_preproc_ok=false 392629004570Smrgfor ac_c_preproc_warn_flag in '' yes 392729004570Smrgdo 392829004570Smrg # Use a header file that comes with gcc, so configuring glibc 392929004570Smrg # with a fresh cross-compiler works. 393029004570Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 393129004570Smrg # <limits.h> exists even on freestanding compilers. 393229004570Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 393329004570Smrg # not just through cpp. "Syntax error" is here to catch this case. 393429004570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 393529004570Smrg/* end confdefs.h. */ 393629004570Smrg#ifdef __STDC__ 393729004570Smrg# include <limits.h> 393829004570Smrg#else 393929004570Smrg# include <assert.h> 394029004570Smrg#endif 394129004570Smrg Syntax error 394229004570Smrg_ACEOF 394329004570Smrgif ac_fn_c_try_cpp "$LINENO"; then : 394429004570Smrg 394529004570Smrgelse 394629004570Smrg # Broken: fails on valid input. 394729004570Smrgcontinue 394829004570Smrgfi 394929004570Smrgrm -f conftest.err conftest.i conftest.$ac_ext 395029004570Smrg 395129004570Smrg # OK, works on sane cases. Now check whether nonexistent headers 395229004570Smrg # can be detected and how. 395329004570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 395429004570Smrg/* end confdefs.h. */ 395529004570Smrg#include <ac_nonexistent.h> 395629004570Smrg_ACEOF 3957bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3958a73027baSmrg # Broken: success on invalid input. 3959a73027baSmrgcontinue 3960a73027baSmrgelse 3961a73027baSmrg # Passes both tests. 3962a73027baSmrgac_preproc_ok=: 3963a73027baSmrgbreak 3964a73027baSmrgfi 396529004570Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3966a73027baSmrg 3967a73027baSmrgdone 3968a73027baSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 396929004570Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3970bf4a254eSmrgif $ac_preproc_ok; then : 3971a73027baSmrg break 3972a73027baSmrgfi 3973a73027baSmrg 3974a73027baSmrg done 3975a73027baSmrg ac_cv_prog_CPP=$CPP 3976a73027baSmrg 3977a73027baSmrgfi 3978a73027baSmrg CPP=$ac_cv_prog_CPP 3979a73027baSmrgelse 3980a73027baSmrg ac_cv_prog_CPP=$CPP 3981a73027baSmrgfi 3982bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3983bf4a254eSmrg$as_echo "$CPP" >&6; } 3984a73027baSmrgac_preproc_ok=false 3985a73027baSmrgfor ac_c_preproc_warn_flag in '' yes 3986a73027baSmrgdo 3987a73027baSmrg # Use a header file that comes with gcc, so configuring glibc 3988a73027baSmrg # with a fresh cross-compiler works. 3989a73027baSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3990a73027baSmrg # <limits.h> exists even on freestanding compilers. 3991a73027baSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3992a73027baSmrg # not just through cpp. "Syntax error" is here to catch this case. 3993bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994a73027baSmrg/* end confdefs.h. */ 3995a73027baSmrg#ifdef __STDC__ 3996a73027baSmrg# include <limits.h> 3997a73027baSmrg#else 3998a73027baSmrg# include <assert.h> 3999a73027baSmrg#endif 4000a73027baSmrg Syntax error 4001a73027baSmrg_ACEOF 4002bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4003a73027baSmrg 4004bf4a254eSmrgelse 4005a73027baSmrg # Broken: fails on valid input. 4006a73027baSmrgcontinue 4007a73027baSmrgfi 400829004570Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4009a73027baSmrg 4010a73027baSmrg # OK, works on sane cases. Now check whether nonexistent headers 4011a73027baSmrg # can be detected and how. 4012bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013a73027baSmrg/* end confdefs.h. */ 4014a73027baSmrg#include <ac_nonexistent.h> 4015a73027baSmrg_ACEOF 4016bf4a254eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4017a73027baSmrg # Broken: success on invalid input. 4018a73027baSmrgcontinue 4019a73027baSmrgelse 4020a73027baSmrg # Passes both tests. 4021a73027baSmrgac_preproc_ok=: 4022a73027baSmrgbreak 4023a73027baSmrgfi 402429004570Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4025a73027baSmrg 4026a73027baSmrgdone 4027a73027baSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 402829004570Smrgrm -f conftest.i conftest.err conftest.$ac_ext 4029bf4a254eSmrgif $ac_preproc_ok; then : 4030bf4a254eSmrg 4031a73027baSmrgelse 4032bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4033bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 403429004570Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 403529004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 4036a73027baSmrgfi 4037a73027baSmrg 4038a73027baSmrgac_ext=c 4039a73027baSmrgac_cpp='$CPP $CPPFLAGS' 4040a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4041a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4042a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4043a73027baSmrg 4044a73027baSmrg 4045bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4046bf4a254eSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 404729004570Smrgif ${ac_cv_path_GREP+:} false; then : 4048bf4a254eSmrg $as_echo_n "(cached) " >&6 4049a73027baSmrgelse 4050bf4a254eSmrg if test -z "$GREP"; then 4051bf4a254eSmrg ac_path_GREP_found=false 4052bf4a254eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4053a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4054bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4055a73027baSmrgdo 4056a73027baSmrg IFS=$as_save_IFS 4057a73027baSmrg test -z "$as_dir" && as_dir=. 4058bf4a254eSmrg for ac_prog in grep ggrep; do 4059bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4060bf4a254eSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4061bf4a254eSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4062bf4a254eSmrg# Check for GNU ac_path_GREP and select it if it is found. 4063bf4a254eSmrg # Check for GNU $ac_path_GREP 4064bf4a254eSmrgcase `"$ac_path_GREP" --version 2>&1` in 4065bf4a254eSmrg*GNU*) 4066bf4a254eSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4067bf4a254eSmrg*) 4068bf4a254eSmrg ac_count=0 4069bf4a254eSmrg $as_echo_n 0123456789 >"conftest.in" 4070bf4a254eSmrg while : 4071bf4a254eSmrg do 4072bf4a254eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4073bf4a254eSmrg mv "conftest.tmp" "conftest.in" 4074bf4a254eSmrg cp "conftest.in" "conftest.nl" 4075bf4a254eSmrg $as_echo 'GREP' >> "conftest.nl" 4076bf4a254eSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4077bf4a254eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4078bf4a254eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4079bf4a254eSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4080bf4a254eSmrg # Best one so far, save it but keep looking for a better one 4081bf4a254eSmrg ac_cv_path_GREP="$ac_path_GREP" 4082bf4a254eSmrg ac_path_GREP_max=$ac_count 4083bf4a254eSmrg fi 4084bf4a254eSmrg # 10*(2^10) chars as input seems more than enough 4085bf4a254eSmrg test $ac_count -gt 10 && break 4086bf4a254eSmrg done 4087bf4a254eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4088a73027baSmrgesac 4089a73027baSmrg 4090bf4a254eSmrg $ac_path_GREP_found && break 3 4091bf4a254eSmrg done 4092bf4a254eSmrg done 4093bf4a254eSmrg done 4094bf4a254eSmrgIFS=$as_save_IFS 4095bf4a254eSmrg if test -z "$ac_cv_path_GREP"; then 409629004570Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4097bf4a254eSmrg fi 4098a73027baSmrgelse 4099bf4a254eSmrg ac_cv_path_GREP=$GREP 4100a73027baSmrgfi 4101a73027baSmrg 4102a73027baSmrgfi 4103bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4104bf4a254eSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4105bf4a254eSmrg GREP="$ac_cv_path_GREP" 4106a73027baSmrg 4107a73027baSmrg 4108bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4109bf4a254eSmrg$as_echo_n "checking for egrep... " >&6; } 411029004570Smrgif ${ac_cv_path_EGREP+:} false; then : 4111bf4a254eSmrg $as_echo_n "(cached) " >&6 4112a73027baSmrgelse 4113bf4a254eSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4114bf4a254eSmrg then ac_cv_path_EGREP="$GREP -E" 4115bf4a254eSmrg else 4116bf4a254eSmrg if test -z "$EGREP"; then 4117bf4a254eSmrg ac_path_EGREP_found=false 4118bf4a254eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4119a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120bf4a254eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4121a73027baSmrgdo 4122a73027baSmrg IFS=$as_save_IFS 4123a73027baSmrg test -z "$as_dir" && as_dir=. 4124bf4a254eSmrg for ac_prog in egrep; do 4125bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4126bf4a254eSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4127bf4a254eSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4128bf4a254eSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4129a73027baSmrg # Check for GNU $ac_path_EGREP 4130a73027baSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4131a73027baSmrg*GNU*) 4132a73027baSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4133a73027baSmrg*) 4134a73027baSmrg ac_count=0 4135bf4a254eSmrg $as_echo_n 0123456789 >"conftest.in" 4136a73027baSmrg while : 4137a73027baSmrg do 4138a73027baSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4139a73027baSmrg mv "conftest.tmp" "conftest.in" 4140a73027baSmrg cp "conftest.in" "conftest.nl" 4141bf4a254eSmrg $as_echo 'EGREP' >> "conftest.nl" 4142a73027baSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4143a73027baSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4144bf4a254eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4145a73027baSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4146a73027baSmrg # Best one so far, save it but keep looking for a better one 4147a73027baSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4148a73027baSmrg ac_path_EGREP_max=$ac_count 4149a73027baSmrg fi 4150a73027baSmrg # 10*(2^10) chars as input seems more than enough 4151a73027baSmrg test $ac_count -gt 10 && break 4152a73027baSmrg done 4153a73027baSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4154a73027baSmrgesac 4155a73027baSmrg 4156bf4a254eSmrg $ac_path_EGREP_found && break 3 4157bf4a254eSmrg done 4158bf4a254eSmrg done 4159a73027baSmrg done 4160a73027baSmrgIFS=$as_save_IFS 4161bf4a254eSmrg if test -z "$ac_cv_path_EGREP"; then 416229004570Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4163bf4a254eSmrg fi 4164a73027baSmrgelse 4165a73027baSmrg ac_cv_path_EGREP=$EGREP 4166a73027baSmrgfi 4167a73027baSmrg 4168a73027baSmrg fi 4169a73027baSmrgfi 4170bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4171bf4a254eSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4172a73027baSmrg EGREP="$ac_cv_path_EGREP" 4173a73027baSmrg 4174a73027baSmrg 4175bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4176bf4a254eSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 417729004570Smrgif ${ac_cv_header_stdc+:} false; then : 4178bf4a254eSmrg $as_echo_n "(cached) " >&6 4179a73027baSmrgelse 4180bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181a73027baSmrg/* end confdefs.h. */ 4182a73027baSmrg#include <stdlib.h> 4183a73027baSmrg#include <stdarg.h> 4184a73027baSmrg#include <string.h> 4185a73027baSmrg#include <float.h> 4186a73027baSmrg 4187a73027baSmrgint 4188a73027baSmrgmain () 4189a73027baSmrg{ 4190a73027baSmrg 4191a73027baSmrg ; 4192a73027baSmrg return 0; 4193a73027baSmrg} 4194a73027baSmrg_ACEOF 4195bf4a254eSmrgif ac_fn_c_try_compile "$LINENO"; then : 4196a73027baSmrg ac_cv_header_stdc=yes 4197a73027baSmrgelse 4198bf4a254eSmrg ac_cv_header_stdc=no 4199a73027baSmrgfi 4200a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4201a73027baSmrg 4202a73027baSmrgif test $ac_cv_header_stdc = yes; then 4203a73027baSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4204bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205a73027baSmrg/* end confdefs.h. */ 4206a73027baSmrg#include <string.h> 4207a73027baSmrg 4208a73027baSmrg_ACEOF 4209a73027baSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4210bf4a254eSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4211bf4a254eSmrg 4212a73027baSmrgelse 4213a73027baSmrg ac_cv_header_stdc=no 4214a73027baSmrgfi 4215a73027baSmrgrm -f conftest* 4216a73027baSmrg 4217a73027baSmrgfi 4218a73027baSmrg 4219a73027baSmrgif test $ac_cv_header_stdc = yes; then 4220a73027baSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4221bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222a73027baSmrg/* end confdefs.h. */ 4223a73027baSmrg#include <stdlib.h> 4224a73027baSmrg 4225a73027baSmrg_ACEOF 4226a73027baSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4227bf4a254eSmrg $EGREP "free" >/dev/null 2>&1; then : 4228bf4a254eSmrg 4229a73027baSmrgelse 4230a73027baSmrg ac_cv_header_stdc=no 4231a73027baSmrgfi 4232a73027baSmrgrm -f conftest* 4233a73027baSmrg 4234a73027baSmrgfi 4235a73027baSmrg 4236a73027baSmrgif test $ac_cv_header_stdc = yes; then 4237a73027baSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4238bf4a254eSmrg if test "$cross_compiling" = yes; then : 4239a73027baSmrg : 4240a73027baSmrgelse 4241bf4a254eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242a73027baSmrg/* end confdefs.h. */ 4243a73027baSmrg#include <ctype.h> 4244a73027baSmrg#include <stdlib.h> 4245a73027baSmrg#if ((' ' & 0x0FF) == 0x020) 4246a73027baSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4247a73027baSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4248a73027baSmrg#else 4249a73027baSmrg# define ISLOWER(c) \ 4250a73027baSmrg (('a' <= (c) && (c) <= 'i') \ 4251a73027baSmrg || ('j' <= (c) && (c) <= 'r') \ 4252a73027baSmrg || ('s' <= (c) && (c) <= 'z')) 4253a73027baSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4254a73027baSmrg#endif 4255a73027baSmrg 4256a73027baSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4257a73027baSmrgint 4258a73027baSmrgmain () 4259a73027baSmrg{ 4260a73027baSmrg int i; 4261a73027baSmrg for (i = 0; i < 256; i++) 4262a73027baSmrg if (XOR (islower (i), ISLOWER (i)) 4263a73027baSmrg || toupper (i) != TOUPPER (i)) 4264a73027baSmrg return 2; 4265a73027baSmrg return 0; 4266a73027baSmrg} 4267a73027baSmrg_ACEOF 4268bf4a254eSmrgif ac_fn_c_try_run "$LINENO"; then : 4269a73027baSmrg 4270bf4a254eSmrgelse 4271bf4a254eSmrg ac_cv_header_stdc=no 4272a73027baSmrgfi 4273bf4a254eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4274bf4a254eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4275a73027baSmrgfi 4276a73027baSmrg 4277a73027baSmrgfi 4278a73027baSmrgfi 4279bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4280bf4a254eSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4281a73027baSmrgif test $ac_cv_header_stdc = yes; then 4282a73027baSmrg 4283bf4a254eSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4284a73027baSmrg 4285a73027baSmrgfi 4286a73027baSmrg 4287a73027baSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4288bf4a254eSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4289bf4a254eSmrg inttypes.h stdint.h unistd.h 4290bf4a254eSmrgdo : 4291bf4a254eSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4292bf4a254eSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4293bf4a254eSmrg" 429429004570Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4295bf4a254eSmrg cat >>confdefs.h <<_ACEOF 4296bf4a254eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4297bf4a254eSmrg_ACEOF 4298a73027baSmrg 4299bf4a254eSmrgfi 4300a73027baSmrg 4301bf4a254eSmrgdone 4302a73027baSmrg 4303a73027baSmrg 430429004570Smrg 430529004570Smrg 4306c81d8f5eSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4307c81d8f5eSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4308c81d8f5eSmrg CLANGCC="yes" 4309c81d8f5eSmrgelse 4310c81d8f5eSmrg CLANGCC="no" 4311c81d8f5eSmrgfi 4312c81d8f5eSmrg 4313c81d8f5eSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4314c81d8f5eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4315c81d8f5eSmrg INTELCC="yes" 4316c81d8f5eSmrgelse 4317c81d8f5eSmrg INTELCC="no" 4318c81d8f5eSmrgfi 4319c81d8f5eSmrg 4320c81d8f5eSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4321c81d8f5eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4322c81d8f5eSmrg SUNCC="yes" 4323c81d8f5eSmrgelse 4324c81d8f5eSmrg SUNCC="no" 4325c81d8f5eSmrgfi 4326c81d8f5eSmrg 4327c81d8f5eSmrg 4328c81d8f5eSmrg 4329c81d8f5eSmrg 4330c81d8f5eSmrg 4331c81d8f5eSmrg 4332c81d8f5eSmrg 4333c81d8f5eSmrg 4334c81d8f5eSmrg 433529004570Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 433629004570Smrg if test -n "$ac_tool_prefix"; then 433729004570Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 433829004570Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 433929004570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 434029004570Smrg$as_echo_n "checking for $ac_word... " >&6; } 434129004570Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4342bf4a254eSmrg $as_echo_n "(cached) " >&6 4343bf4a254eSmrgelse 434429004570Smrg case $PKG_CONFIG in 434529004570Smrg [\\/]* | ?:[\\/]*) 434629004570Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 434729004570Smrg ;; 434829004570Smrg *) 434929004570Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 435029004570Smrgfor as_dir in $PATH 435129004570Smrgdo 435229004570Smrg IFS=$as_save_IFS 435329004570Smrg test -z "$as_dir" && as_dir=. 435429004570Smrg for ac_exec_ext in '' $ac_executable_extensions; do 435529004570Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 435629004570Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 435729004570Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 435829004570Smrg break 2 435929004570Smrg fi 436029004570Smrgdone 436129004570Smrg done 436229004570SmrgIFS=$as_save_IFS 4363bf4a254eSmrg 4364bf4a254eSmrg ;; 4365a73027baSmrgesac 4366bf4a254eSmrgfi 4367bf4a254eSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4368bf4a254eSmrgif test -n "$PKG_CONFIG"; then 4369bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4370bf4a254eSmrg$as_echo "$PKG_CONFIG" >&6; } 4371a73027baSmrgelse 4372bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373bf4a254eSmrg$as_echo "no" >&6; } 4374a73027baSmrgfi 4375a73027baSmrg 4376a73027baSmrg 4377bf4a254eSmrgfi 4378bf4a254eSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4379bf4a254eSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4380bf4a254eSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4381bf4a254eSmrgset dummy pkg-config; ac_word=$2 4382bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4383bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 438429004570Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4385bf4a254eSmrg $as_echo_n "(cached) " >&6 4386a73027baSmrgelse 4387bf4a254eSmrg case $ac_pt_PKG_CONFIG in 4388bf4a254eSmrg [\\/]* | ?:[\\/]*) 4389bf4a254eSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4390bf4a254eSmrg ;; 4391bf4a254eSmrg *) 4392bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393bf4a254eSmrgfor as_dir in $PATH 4394bf4a254eSmrgdo 4395bf4a254eSmrg IFS=$as_save_IFS 4396bf4a254eSmrg test -z "$as_dir" && as_dir=. 4397bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4398bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4399bf4a254eSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4400bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4401bf4a254eSmrg break 2 4402bf4a254eSmrg fi 4403bf4a254eSmrgdone 4404bf4a254eSmrg done 4405bf4a254eSmrgIFS=$as_save_IFS 4406a73027baSmrg 4407bf4a254eSmrg ;; 4408bf4a254eSmrgesac 4409bf4a254eSmrgfi 4410bf4a254eSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4411bf4a254eSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4412bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4413bf4a254eSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4414bf4a254eSmrgelse 4415bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416bf4a254eSmrg$as_echo "no" >&6; } 4417a73027baSmrgfi 4418a73027baSmrg 4419bf4a254eSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4420bf4a254eSmrg PKG_CONFIG="" 4421bf4a254eSmrg else 4422bf4a254eSmrg case $cross_compiling:$ac_tool_warned in 4423bf4a254eSmrgyes:) 4424bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4425bf4a254eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4426bf4a254eSmrgac_tool_warned=yes ;; 4427a73027baSmrgesac 4428bf4a254eSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4429bf4a254eSmrg fi 4430a73027baSmrgelse 4431bf4a254eSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4432a73027baSmrgfi 4433a73027baSmrg 4434a73027baSmrgfi 4435bf4a254eSmrgif test -n "$PKG_CONFIG"; then 4436bf4a254eSmrg _pkg_min_version=0.9.0 4437bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4438bf4a254eSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4439bf4a254eSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4440bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4441bf4a254eSmrg$as_echo "yes" >&6; } 4442bf4a254eSmrg else 4443bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444bf4a254eSmrg$as_echo "no" >&6; } 4445bf4a254eSmrg PKG_CONFIG="" 4446bf4a254eSmrg fi 4447a73027baSmrgfi 4448bf4a254eSmrg# Make sure we can run config.sub. 4449bf4a254eSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 445029004570Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4451a73027baSmrg 4452bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4453bf4a254eSmrg$as_echo_n "checking build system type... " >&6; } 445429004570Smrgif ${ac_cv_build+:} false; then : 4455bf4a254eSmrg $as_echo_n "(cached) " >&6 4456bf4a254eSmrgelse 4457bf4a254eSmrg ac_build_alias=$build_alias 4458bf4a254eSmrgtest "x$ac_build_alias" = x && 4459bf4a254eSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4460bf4a254eSmrgtest "x$ac_build_alias" = x && 446129004570Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4462bf4a254eSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 446329004570Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4464a73027baSmrg 4465bf4a254eSmrgfi 4466bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4467bf4a254eSmrg$as_echo "$ac_cv_build" >&6; } 4468bf4a254eSmrgcase $ac_cv_build in 4469bf4a254eSmrg*-*-*) ;; 447029004570Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4471bf4a254eSmrgesac 4472bf4a254eSmrgbuild=$ac_cv_build 4473bf4a254eSmrgac_save_IFS=$IFS; IFS='-' 4474bf4a254eSmrgset x $ac_cv_build 4475bf4a254eSmrgshift 4476bf4a254eSmrgbuild_cpu=$1 4477bf4a254eSmrgbuild_vendor=$2 4478bf4a254eSmrgshift; shift 4479bf4a254eSmrg# Remember, the first character of IFS is used to create $*, 4480bf4a254eSmrg# except with old shells: 4481bf4a254eSmrgbuild_os=$* 4482bf4a254eSmrgIFS=$ac_save_IFS 4483bf4a254eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4484a73027baSmrg 4485a73027baSmrg 4486bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4487bf4a254eSmrg$as_echo_n "checking host system type... " >&6; } 448829004570Smrgif ${ac_cv_host+:} false; then : 4489bf4a254eSmrg $as_echo_n "(cached) " >&6 4490bf4a254eSmrgelse 4491bf4a254eSmrg if test "x$host_alias" = x; then 4492bf4a254eSmrg ac_cv_host=$ac_cv_build 4493bf4a254eSmrgelse 4494bf4a254eSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 449529004570Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4496bf4a254eSmrgfi 4497a73027baSmrg 4498bf4a254eSmrgfi 4499bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4500bf4a254eSmrg$as_echo "$ac_cv_host" >&6; } 4501bf4a254eSmrgcase $ac_cv_host in 4502bf4a254eSmrg*-*-*) ;; 450329004570Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4504bf4a254eSmrgesac 4505bf4a254eSmrghost=$ac_cv_host 4506bf4a254eSmrgac_save_IFS=$IFS; IFS='-' 4507bf4a254eSmrgset x $ac_cv_host 4508bf4a254eSmrgshift 4509bf4a254eSmrghost_cpu=$1 4510bf4a254eSmrghost_vendor=$2 4511bf4a254eSmrgshift; shift 4512bf4a254eSmrg# Remember, the first character of IFS is used to create $*, 4513bf4a254eSmrg# except with old shells: 4514bf4a254eSmrghost_os=$* 4515bf4a254eSmrgIFS=$ac_save_IFS 4516bf4a254eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4517bf4a254eSmrg 4518bf4a254eSmrg 451929004570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 452029004570Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 452129004570Smrgif ${ac_cv_path_SED+:} false; then : 452229004570Smrg $as_echo_n "(cached) " >&6 452329004570Smrgelse 452429004570Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 452529004570Smrg for ac_i in 1 2 3 4 5 6 7; do 452629004570Smrg ac_script="$ac_script$as_nl$ac_script" 452729004570Smrg done 452829004570Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 452929004570Smrg { ac_script=; unset ac_script;} 453029004570Smrg if test -z "$SED"; then 453129004570Smrg ac_path_SED_found=false 453229004570Smrg # Loop through the user's path and test for each of PROGNAME-LIST 453329004570Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 453429004570Smrgfor as_dir in $PATH 453529004570Smrgdo 453629004570Smrg IFS=$as_save_IFS 453729004570Smrg test -z "$as_dir" && as_dir=. 453829004570Smrg for ac_prog in sed gsed; do 453929004570Smrg for ac_exec_ext in '' $ac_executable_extensions; do 454029004570Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 454129004570Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 454229004570Smrg# Check for GNU ac_path_SED and select it if it is found. 454329004570Smrg # Check for GNU $ac_path_SED 454429004570Smrgcase `"$ac_path_SED" --version 2>&1` in 454529004570Smrg*GNU*) 454629004570Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 454729004570Smrg*) 454829004570Smrg ac_count=0 454929004570Smrg $as_echo_n 0123456789 >"conftest.in" 455029004570Smrg while : 455129004570Smrg do 455229004570Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 455329004570Smrg mv "conftest.tmp" "conftest.in" 455429004570Smrg cp "conftest.in" "conftest.nl" 455529004570Smrg $as_echo '' >> "conftest.nl" 455629004570Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 455729004570Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 455829004570Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 455929004570Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 456029004570Smrg # Best one so far, save it but keep looking for a better one 456129004570Smrg ac_cv_path_SED="$ac_path_SED" 456229004570Smrg ac_path_SED_max=$ac_count 456329004570Smrg fi 456429004570Smrg # 10*(2^10) chars as input seems more than enough 456529004570Smrg test $ac_count -gt 10 && break 456629004570Smrg done 456729004570Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 456829004570Smrgesac 456929004570Smrg 457029004570Smrg $ac_path_SED_found && break 3 457129004570Smrg done 457229004570Smrg done 457329004570Smrg done 457429004570SmrgIFS=$as_save_IFS 457529004570Smrg if test -z "$ac_cv_path_SED"; then 457629004570Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 457729004570Smrg fi 457829004570Smrgelse 457929004570Smrg ac_cv_path_SED=$SED 458029004570Smrgfi 458129004570Smrg 458229004570Smrgfi 458329004570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 458429004570Smrg$as_echo "$ac_cv_path_SED" >&6; } 458529004570Smrg SED="$ac_cv_path_SED" 458629004570Smrg rm -f conftest.sed 458729004570Smrg 458829004570Smrg 4589bf4a254eSmrg 4590bf4a254eSmrg 4591bf4a254eSmrg 4592c81d8f5eSmrg 4593bf4a254eSmrgif test "x$GCC" = xyes ; then 4594bf4a254eSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4595bf4a254eSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4596bf4a254eSmrg-Wbad-function-cast -Wformat=2" 4597bf4a254eSmrg case `$CC -dumpversion` in 4598bf4a254eSmrg 3.4.* | 4.*) 4599bf4a254eSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4600bf4a254eSmrg ;; 4601bf4a254eSmrg esac 4602bf4a254eSmrgelse 4603bf4a254eSmrg if test "x$SUNCC" = "xyes"; then 4604bf4a254eSmrg CWARNFLAGS="-v" 4605bf4a254eSmrg fi 4606bf4a254eSmrgfi 4607bf4a254eSmrg 4608bf4a254eSmrg 4609bf4a254eSmrg 461029004570Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4611bf4a254eSmrg 4612bf4a254eSmrg 4613bf4a254eSmrg 4614c81d8f5eSmrg 4615bf4a254eSmrg# Check whether --enable-strict-compilation was given. 4616bf4a254eSmrgif test "${enable_strict_compilation+set}" = set; then : 4617bf4a254eSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4618bf4a254eSmrgelse 4619bf4a254eSmrg STRICT_COMPILE=no 4620bf4a254eSmrgfi 4621bf4a254eSmrg 4622c81d8f5eSmrgif test "x$GCC" = xyes ; then 4623c81d8f5eSmrg STRICT_CFLAGS="-pedantic -Werror" 4624c81d8f5eSmrg # Add -Werror=attributes if supported (gcc 4.2 & later) 4625c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 4626c81d8f5eSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 4627c81d8f5eSmrg save_CFLAGS="$CFLAGS" 4628c81d8f5eSmrg CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 4629c81d8f5eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4630c81d8f5eSmrg/* end confdefs.h. */ 4631c81d8f5eSmrgreturn 0; 4632c81d8f5eSmrg_ACEOF 4633c81d8f5eSmrgif ac_fn_c_try_compile "$LINENO"; then : 4634c81d8f5eSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 4635c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4636c81d8f5eSmrg$as_echo "yes" >&6; } 4637bf4a254eSmrgelse 4638c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639c81d8f5eSmrg$as_echo "no" >&6; } 4640bf4a254eSmrgfi 4641c81d8f5eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4642c81d8f5eSmrg CFLAGS="$save_CFLAGS" 4643c81d8f5eSmrgelif test "x$SUNCC" = "xyes"; then 4644c81d8f5eSmrg STRICT_CFLAGS="-errwarn" 4645c81d8f5eSmrgelif test "x$INTELCC" = "xyes"; then 4646c81d8f5eSmrg STRICT_CFLAGS="-Werror" 4647bf4a254eSmrgfi 4648c81d8f5eSmrgif test "x$STRICT_COMPILE" = "xyes"; then 4649c81d8f5eSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4650bf4a254eSmrgfi 4651c81d8f5eSmrg 4652bf4a254eSmrg 4653bf4a254eSmrg 4654bf4a254eSmrg 4655bf4a254eSmrg 4656bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4657bf4a254eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4658bf4a254eSmrg_ACEOF 4659bf4a254eSmrg 4660bf4a254eSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4661bf4a254eSmrg if test "x$PVM" = "x"; then 4662bf4a254eSmrg PVM="0" 4663bf4a254eSmrg fi 4664bf4a254eSmrg 4665bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4666bf4a254eSmrg#define PACKAGE_VERSION_MINOR $PVM 4667bf4a254eSmrg_ACEOF 4668bf4a254eSmrg 4669bf4a254eSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4670bf4a254eSmrg if test "x$PVP" = "x"; then 4671bf4a254eSmrg PVP="0" 4672bf4a254eSmrg fi 4673bf4a254eSmrg 4674bf4a254eSmrgcat >>confdefs.h <<_ACEOF 4675bf4a254eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4676bf4a254eSmrg_ACEOF 4677bf4a254eSmrg 4678bf4a254eSmrg 4679bf4a254eSmrg 4680bf4a254eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4681bf4a254eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4682bf4a254eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4683bf4a254eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4684bf4a254eSmrg 4685bf4a254eSmrg 4686bf4a254eSmrg 4687bf4a254eSmrg 4688bf4a254eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4689bf4a254eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4690bf4a254eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4691bf4a254eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4692bf4a254eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4693bf4a254eSmrg 4694bf4a254eSmrg 4695bf4a254eSmrg 4696bf4a254eSmrg 4697bf4a254eSmrg 469829004570Smrg 4699bf4a254eSmrgif test x$APP_MAN_SUFFIX = x ; then 4700bf4a254eSmrg APP_MAN_SUFFIX=1 4701bf4a254eSmrgfi 4702bf4a254eSmrgif test x$APP_MAN_DIR = x ; then 4703bf4a254eSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4704bf4a254eSmrgfi 4705bf4a254eSmrg 4706bf4a254eSmrgif test x$LIB_MAN_SUFFIX = x ; then 4707bf4a254eSmrg LIB_MAN_SUFFIX=3 4708bf4a254eSmrgfi 4709bf4a254eSmrgif test x$LIB_MAN_DIR = x ; then 4710bf4a254eSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4711bf4a254eSmrgfi 4712bf4a254eSmrg 4713bf4a254eSmrgif test x$FILE_MAN_SUFFIX = x ; then 471429004570Smrg case $host_os in 471529004570Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 471629004570Smrg *) FILE_MAN_SUFFIX=5 ;; 471729004570Smrg esac 471829004570Smrgfi 471929004570Smrgif test x$FILE_MAN_DIR = x ; then 472029004570Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4721bf4a254eSmrgfi 4722bf4a254eSmrg 472329004570Smrgif test x$MISC_MAN_SUFFIX = x ; then 472429004570Smrg case $host_os in 472529004570Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 472629004570Smrg *) MISC_MAN_SUFFIX=7 ;; 472729004570Smrg esac 472829004570Smrgfi 472929004570Smrgif test x$MISC_MAN_DIR = x ; then 473029004570Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4731bf4a254eSmrgfi 4732bf4a254eSmrg 473329004570Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 473429004570Smrg case $host_os in 473529004570Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 473629004570Smrg *) DRIVER_MAN_SUFFIX=4 ;; 473729004570Smrg esac 473829004570Smrgfi 473929004570Smrgif test x$DRIVER_MAN_DIR = x ; then 474029004570Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 474129004570Smrgfi 4742bf4a254eSmrg 474329004570Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 474429004570Smrg case $host_os in 474529004570Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 474629004570Smrg *) ADMIN_MAN_SUFFIX=8 ;; 474729004570Smrg esac 474829004570Smrgfi 474929004570Smrgif test x$ADMIN_MAN_DIR = x ; then 475029004570Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4751bf4a254eSmrgfi 4752bf4a254eSmrg 475329004570Smrg 475429004570Smrg 475529004570Smrg 475629004570Smrg 475729004570Smrg 475829004570Smrg 475929004570Smrg 476029004570Smrg 476129004570Smrg 476229004570Smrg 476329004570Smrg 476429004570Smrg 476529004570Smrg 476629004570Smrg 476729004570SmrgXORG_MAN_PAGE="X Version 11" 476829004570Smrg 476929004570SmrgMAN_SUBSTS="\ 477029004570Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 477129004570Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 477229004570Smrg -e 's|__xservername__|Xorg|g' \ 477329004570Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 477429004570Smrg -e 's|__projectroot__|\$(prefix)|g' \ 477529004570Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 477629004570Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 477729004570Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 477829004570Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 477929004570Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 478029004570Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 478129004570Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 478229004570Smrg 478329004570Smrg 478429004570Smrg 478529004570Smrg# Check whether --enable-silent-rules was given. 478629004570Smrgif test "${enable_silent_rules+set}" = set; then : 478729004570Smrg enableval=$enable_silent_rules; 4788bf4a254eSmrgfi 4789bf4a254eSmrg 479029004570Smrgcase $enable_silent_rules in 479129004570Smrgyes) AM_DEFAULT_VERBOSITY=0;; 479229004570Smrgno) AM_DEFAULT_VERBOSITY=1;; 479329004570Smrg*) AM_DEFAULT_VERBOSITY=0;; 479429004570Smrgesac 479529004570SmrgAM_BACKSLASH='\' 479629004570Smrg 479729004570Smrg 479829004570Smrg 4799bf4a254eSmrg 4800bf4a254eSmrg 4801bf4a254eSmrgfor ac_prog in cpp 4802bf4a254eSmrgdo 4803bf4a254eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4804bf4a254eSmrgset dummy $ac_prog; ac_word=$2 4805bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4806bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 480729004570Smrgif ${ac_cv_path_RAWCPP+:} false; then : 4808bf4a254eSmrg $as_echo_n "(cached) " >&6 4809bf4a254eSmrgelse 4810bf4a254eSmrg case $RAWCPP in 4811bf4a254eSmrg [\\/]* | ?:[\\/]*) 4812bf4a254eSmrg ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 4813bf4a254eSmrg ;; 4814bf4a254eSmrg *) 4815bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816bf4a254eSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 4817bf4a254eSmrgfor as_dir in $as_dummy 4818bf4a254eSmrgdo 4819bf4a254eSmrg IFS=$as_save_IFS 4820bf4a254eSmrg test -z "$as_dir" && as_dir=. 4821bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4822bf4a254eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4823bf4a254eSmrg ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 4824bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4825bf4a254eSmrg break 2 4826bf4a254eSmrg fi 4827bf4a254eSmrgdone 4828bf4a254eSmrg done 4829bf4a254eSmrgIFS=$as_save_IFS 4830bf4a254eSmrg 4831bf4a254eSmrg ;; 4832bf4a254eSmrgesac 4833bf4a254eSmrgfi 4834bf4a254eSmrgRAWCPP=$ac_cv_path_RAWCPP 4835bf4a254eSmrgif test -n "$RAWCPP"; then 4836bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 4837bf4a254eSmrg$as_echo "$RAWCPP" >&6; } 4838bf4a254eSmrgelse 4839bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840bf4a254eSmrg$as_echo "no" >&6; } 4841bf4a254eSmrgfi 4842bf4a254eSmrg 4843bf4a254eSmrg 4844bf4a254eSmrg test -n "$RAWCPP" && break 4845bf4a254eSmrgdone 4846bf4a254eSmrgtest -n "$RAWCPP" || RAWCPP="${CPP}" 4847bf4a254eSmrg 4848bf4a254eSmrg 4849bf4a254eSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 4850bf4a254eSmrg# which is not the best choice for supporting other OS'es, but covers most 4851bf4a254eSmrg# of the ones we need for now. 4852bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 4853bf4a254eSmrg$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 4854bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855bf4a254eSmrg/* end confdefs.h. */ 4856bf4a254eSmrgDoes cpp redefine unix ? 4857bf4a254eSmrg_ACEOF 4858bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 4859bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4860bf4a254eSmrg$as_echo "no" >&6; } 4861bf4a254eSmrgelse 4862bf4a254eSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 4863bf4a254eSmrg RAWCPPFLAGS=-undef 4864bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4865bf4a254eSmrg$as_echo "yes" >&6; } 4866bf4a254eSmrg # under Cygwin unix is still defined even with -undef 4867bf4a254eSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 4868bf4a254eSmrg RAWCPPFLAGS="-undef -ansi" 4869bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 4870bf4a254eSmrg$as_echo "yes, with -ansi" >&6; } 4871bf4a254eSmrg else 487229004570Smrg as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 4873bf4a254eSmrg fi 4874bf4a254eSmrgfi 4875bf4a254eSmrgrm -f conftest.$ac_ext 4876bf4a254eSmrg 4877bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 4878bf4a254eSmrg$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 4879bf4a254eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880bf4a254eSmrg/* end confdefs.h. */ 4881bf4a254eSmrgDoes cpp preserve "whitespace"? 4882bf4a254eSmrg_ACEOF 4883bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 4884bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885bf4a254eSmrg$as_echo "no" >&6; } 4886bf4a254eSmrgelse 4887bf4a254eSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 4888bf4a254eSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 4889bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4890bf4a254eSmrg$as_echo "yes" >&6; } 4891bf4a254eSmrg else 489229004570Smrg as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 4893bf4a254eSmrg fi 4894bf4a254eSmrgfi 4895bf4a254eSmrgrm -f conftest.$ac_ext 4896bf4a254eSmrg 4897bf4a254eSmrg 4898bf4a254eSmrg 4899a73027baSmrg 4900a73027baSmrg# Build options 4901a73027baSmrgDEFAULT_XRDB=xrdb 4902a73027baSmrgDEFAULT_XMODMAP=xmodmap 4903a73027baSmrgDEFAULT_TWM=twm 4904a73027baSmrgDEFAULT_XCLOCK=xclock 4905a73027baSmrgDEFAULT_XTERM=xterm 4906a73027baSmrg# You always want to specify the full path to the X server 4907a73027baSmrgDEFAULT_XSERVER=${bindir}/X 4908a73027baSmrgDEFAULT_XAUTH=xauth 4909a73027baSmrgDEFAULT_XINIT=xinit 4910bf4a254eSmrgDEFAULT_XINITDIR=${libdir}/X11/xinit 4911a73027baSmrg 4912a73027baSmrg 4913a73027baSmrg# Check whether --with-xrdb was given. 4914bf4a254eSmrgif test "${with_xrdb+set}" = set; then : 4915a73027baSmrg withval=$with_xrdb; XRDB="$withval" 4916a73027baSmrgelse 4917a73027baSmrg XRDB="$DEFAULT_XRDB" 4918a73027baSmrgfi 4919a73027baSmrg 4920a73027baSmrg 4921a73027baSmrg 4922a73027baSmrg# Check whether --with-xmodmap was given. 4923bf4a254eSmrgif test "${with_xmodmap+set}" = set; then : 4924a73027baSmrg withval=$with_xmodmap; XMODMAP="$withval" 4925a73027baSmrgelse 4926a73027baSmrg XMODMAP="$DEFAULT_XMODMAP" 4927a73027baSmrgfi 4928a73027baSmrg 4929a73027baSmrg 4930a73027baSmrg 4931a73027baSmrg# Check whether --with-twm was given. 4932bf4a254eSmrgif test "${with_twm+set}" = set; then : 4933a73027baSmrg withval=$with_twm; TWM="$withval" 4934a73027baSmrgelse 4935a73027baSmrg TWM="$DEFAULT_TWM" 4936a73027baSmrgfi 4937a73027baSmrg 4938a73027baSmrg 4939a73027baSmrg 4940a73027baSmrg# Check whether --with-xclock was given. 4941bf4a254eSmrgif test "${with_xclock+set}" = set; then : 4942a73027baSmrg withval=$with_xclock; XCLOCK="$withval" 4943a73027baSmrgelse 4944a73027baSmrg XCLOCK="$DEFAULT_XCLOCK" 4945a73027baSmrgfi 4946a73027baSmrg 4947a73027baSmrg 4948a73027baSmrg 4949a73027baSmrg# Check whether --with-xterm was given. 4950bf4a254eSmrgif test "${with_xterm+set}" = set; then : 4951a73027baSmrg withval=$with_xterm; XTERM="$withval" 4952a73027baSmrgelse 4953a73027baSmrg XTERM="$DEFAULT_XTERM" 4954a73027baSmrgfi 4955a73027baSmrg 4956a73027baSmrg 4957a73027baSmrg 4958a73027baSmrg# Check whether --with-xserver was given. 4959bf4a254eSmrgif test "${with_xserver+set}" = set; then : 4960a73027baSmrg withval=$with_xserver; XSERVER="$withval" 4961a73027baSmrgelse 4962a73027baSmrg XSERVER="$DEFAULT_XSERVER" 4963a73027baSmrgfi 4964a73027baSmrg 4965a73027baSmrg 4966a73027baSmrg 4967a73027baSmrg# Check whether --with-xauth was given. 4968bf4a254eSmrgif test "${with_xauth+set}" = set; then : 4969a73027baSmrg withval=$with_xauth; XAUTH="$withval" 4970a73027baSmrgelse 4971a73027baSmrg XAUTH="$DEFAULT_XAUTH" 4972a73027baSmrgfi 4973a73027baSmrg 4974a73027baSmrg 4975a73027baSmrg 4976a73027baSmrg# Check whether --with-xinit was given. 4977bf4a254eSmrgif test "${with_xinit+set}" = set; then : 4978a73027baSmrg withval=$with_xinit; XINIT="$withval" 4979a73027baSmrgelse 4980a73027baSmrg XINIT="$DEFAULT_XINIT" 4981a73027baSmrgfi 4982a73027baSmrg 4983a73027baSmrg 4984a73027baSmrg 4985bf4a254eSmrg# Check whether --with-xinitdir was given. 4986bf4a254eSmrgif test "${with_xinitdir+set}" = set; then : 4987bf4a254eSmrg withval=$with_xinitdir; XINITDIR="$withval" 4988bf4a254eSmrgelse 4989bf4a254eSmrg XINITDIR="$DEFAULT_XINITDIR" 4990bf4a254eSmrgfi 4991bf4a254eSmrg 4992bf4a254eSmrg 4993bf4a254eSmrg 4994a73027baSmrg# Check whether --with-launchd was given. 4995bf4a254eSmrgif test "${with_launchd+set}" = set; then : 4996a73027baSmrg withval=$with_launchd; LAUNCHD=$withval 4997a73027baSmrgelse 4998a73027baSmrg LAUNCHD=auto 4999a73027baSmrgfi 5000a73027baSmrg 5001a73027baSmrg 5002a73027baSmrg# Check whether --with-launchagents-dir was given. 5003bf4a254eSmrgif test "${with_launchagents_dir+set}" = set; then : 5004a73027baSmrg withval=$with_launchagents_dir; launchagentsdir="${withval}" 5005a73027baSmrgelse 5006a73027baSmrg launchagentsdir="/Library/LaunchAgents" 5007a73027baSmrgfi 5008a73027baSmrg 5009a73027baSmrg 5010a73027baSmrg# Check whether --with-launchdaemons-dir was given. 5011bf4a254eSmrgif test "${with_launchdaemons_dir+set}" = set; then : 5012a73027baSmrg withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 5013a73027baSmrgelse 5014a73027baSmrg launchdaemonsdir="/Library/LaunchDaemons" 5015a73027baSmrgfi 5016a73027baSmrg 5017a73027baSmrg 5018bf4a254eSmrg# Check whether --with-launchd-id-prefix was given. 5019bf4a254eSmrgif test "${with_launchd_id_prefix+set}" = set; then : 5020c81d8f5eSmrg withval=$with_launchd_id_prefix; bundleidprefix="${withval}" 5021bf4a254eSmrgelse 5022c81d8f5eSmrg bundleidprefix="org.x" 5023c81d8f5eSmrgfi 5024c81d8f5eSmrg 5025c81d8f5eSmrg 5026c81d8f5eSmrg# Check whether --with-bundle-id-prefix was given. 5027c81d8f5eSmrgif test "${with_bundle_id_prefix+set}" = set; then : 5028c81d8f5eSmrg withval=$with_bundle_id_prefix; bundleidprefix="${withval}" 5029bf4a254eSmrgfi 5030bf4a254eSmrg 5031bf4a254eSmrg 5032a73027baSmrgif test "x$LAUNCHD" = "xauto"; then 5033a73027baSmrg unset LAUNCHD 503472e81212Smrg # Extract the first word of "launchd", so it can be a program name with args. 5035a73027baSmrgset dummy launchd; ac_word=$2 5036bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5037bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 503829004570Smrgif ${ac_cv_prog_LAUNCHD+:} false; then : 5039bf4a254eSmrg $as_echo_n "(cached) " >&6 5040a73027baSmrgelse 5041a73027baSmrg if test -n "$LAUNCHD"; then 5042a73027baSmrg ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 5043a73027baSmrgelse 5044a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 504529004570Smrgfor as_dir in $PATH$PATH_SEPARATOR/sbin 5046a73027baSmrgdo 5047a73027baSmrg IFS=$as_save_IFS 5048a73027baSmrg test -z "$as_dir" && as_dir=. 5049bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5050a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5051a73027baSmrg ac_cv_prog_LAUNCHD="yes" 5052bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5053a73027baSmrg break 2 5054a73027baSmrg fi 5055a73027baSmrgdone 5056bf4a254eSmrg done 5057a73027baSmrgIFS=$as_save_IFS 5058a73027baSmrg 5059a73027baSmrg test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 5060a73027baSmrgfi 5061a73027baSmrgfi 5062a73027baSmrgLAUNCHD=$ac_cv_prog_LAUNCHD 5063a73027baSmrgif test -n "$LAUNCHD"; then 5064bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 5065bf4a254eSmrg$as_echo "$LAUNCHD" >&6; } 5066a73027baSmrgelse 5067bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5068bf4a254eSmrg$as_echo "no" >&6; } 5069a73027baSmrgfi 5070a73027baSmrg 5071a73027baSmrg 5072a73027baSmrgfi 5073a73027baSmrg 507472e81212SmrgTIGER_LAUNCHD=no 5075a73027baSmrgif test "x$LAUNCHD" = "xyes" ; then 5076a73027baSmrg 5077bf4a254eSmrg$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 5078a73027baSmrg 507972e81212Smrg case $host_os in 508072e81212Smrg darwin8*) 508172e81212Smrg TIGER_LAUNCHD=yes 508272e81212Smrg ;; 508372e81212Smrg esac 5084c81d8f5eSmrg ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 5085c81d8f5eSmrgif test "x$ac_cv_func_dispatch_async" = xyes; then : 5086c81d8f5eSmrg 5087c81d8f5eSmrg$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 5088c81d8f5eSmrg 5089c81d8f5eSmrgfi 5090c81d8f5eSmrg 5091a73027baSmrgelse 5092a73027baSmrg launchagentsdir="" 5093a73027baSmrg launchdaemonsdir="" 5094a73027baSmrgfi 5095a73027baSmrg 5096a73027baSmrg 5097bf4a254eSmrgcat >>confdefs.h <<_ACEOF 5098c81d8f5eSmrg#define BUNDLE_ID_PREFIX "$bundleidprefix" 5099bf4a254eSmrg_ACEOF 5100bf4a254eSmrg 5101bf4a254eSmrg 5102bf4a254eSmrg 5103bf4a254eSmrg 5104a73027baSmrg if test "x$LAUNCHD" = "xyes"; then 5105a73027baSmrg LAUNCHD_TRUE= 5106a73027baSmrg LAUNCHD_FALSE='#' 5107a73027baSmrgelse 5108a73027baSmrg LAUNCHD_TRUE='#' 5109a73027baSmrg LAUNCHD_FALSE= 5110a73027baSmrgfi 5111a73027baSmrg 511272e81212Smrg if test "x$TIGER_LAUNCHD" = "xyes"; then 511372e81212Smrg TIGER_LAUNCHD_TRUE= 511472e81212Smrg TIGER_LAUNCHD_FALSE='#' 511572e81212Smrgelse 511672e81212Smrg TIGER_LAUNCHD_TRUE='#' 511772e81212Smrg TIGER_LAUNCHD_FALSE= 511872e81212Smrgfi 511972e81212Smrg 5120a73027baSmrg 5121a73027baSmrg# Checks for pkg-config packages 5122a73027baSmrg 5123a73027baSmrgpkg_failed=no 5124bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 5125bf4a254eSmrg$as_echo_n "checking for XINIT... " >&6; } 5126a73027baSmrg 5127a73027baSmrgif test -n "$XINIT_CFLAGS"; then 5128a73027baSmrg pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 5129a73027baSmrg elif test -n "$PKG_CONFIG"; then 5130a73027baSmrg if test -n "$PKG_CONFIG" && \ 5131bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 5132a73027baSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 5133a73027baSmrg ac_status=$? 5134bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5135bf4a254eSmrg test $ac_status = 0; }; then 5136a73027baSmrg pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 5137c81d8f5eSmrg test "x$?" != "x0" && pkg_failed=yes 5138a73027baSmrgelse 5139a73027baSmrg pkg_failed=yes 5140a73027baSmrgfi 5141a73027baSmrg else 5142a73027baSmrg pkg_failed=untried 5143a73027baSmrgfi 5144a73027baSmrgif test -n "$XINIT_LIBS"; then 5145a73027baSmrg pkg_cv_XINIT_LIBS="$XINIT_LIBS" 5146a73027baSmrg elif test -n "$PKG_CONFIG"; then 5147a73027baSmrg if test -n "$PKG_CONFIG" && \ 5148bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 5149a73027baSmrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 5150a73027baSmrg ac_status=$? 5151bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5152bf4a254eSmrg test $ac_status = 0; }; then 5153a73027baSmrg pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 5154c81d8f5eSmrg test "x$?" != "x0" && pkg_failed=yes 5155a73027baSmrgelse 5156a73027baSmrg pkg_failed=yes 5157a73027baSmrgfi 5158a73027baSmrg else 5159a73027baSmrg pkg_failed=untried 5160a73027baSmrgfi 5161a73027baSmrg 5162a73027baSmrg 5163a73027baSmrg 5164a73027baSmrgif test $pkg_failed = yes; then 5165c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166c81d8f5eSmrg$as_echo "no" >&6; } 5167a73027baSmrg 5168a73027baSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5169a73027baSmrg _pkg_short_errors_supported=yes 5170a73027baSmrgelse 5171a73027baSmrg _pkg_short_errors_supported=no 5172a73027baSmrgfi 5173a73027baSmrg if test $_pkg_short_errors_supported = yes; then 5174c81d8f5eSmrg XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 5175a73027baSmrg else 5176c81d8f5eSmrg XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 5177a73027baSmrg fi 5178a73027baSmrg # Put the nasty error message in config.log where it belongs 5179a73027baSmrg echo "$XINIT_PKG_ERRORS" >&5 5180a73027baSmrg 518129004570Smrg as_fn_error $? "Package requirements (x11) were not met: 5182a73027baSmrg 5183a73027baSmrg$XINIT_PKG_ERRORS 5184a73027baSmrg 5185a73027baSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5186a73027baSmrginstalled software in a non-standard prefix. 5187a73027baSmrg 5188a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS 5189a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config. 5190c81d8f5eSmrgSee the pkg-config man page for more details." "$LINENO" 5 5191bf4a254eSmrgelif test $pkg_failed = untried; then 5192c81d8f5eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193c81d8f5eSmrg$as_echo "no" >&6; } 5194bf4a254eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5195bf4a254eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 519629004570Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5197a73027baSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 5198a73027baSmrgpath to pkg-config. 5199a73027baSmrg 5200a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS 5201a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config. 5202a73027baSmrgSee the pkg-config man page for more details. 5203a73027baSmrg 5204a73027baSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 520529004570SmrgSee \`config.log' for more details" "$LINENO" 5; } 5206a73027baSmrgelse 5207a73027baSmrg XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 5208a73027baSmrg XINIT_LIBS=$pkg_cv_XINIT_LIBS 5209bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5210bf4a254eSmrg$as_echo "yes" >&6; } 5211c81d8f5eSmrg 5212a73027baSmrgfi 5213a73027baSmrg 5214a73027baSmrgcase $host_os in 5215a73027baSmrg *bsd*) 5216a73027baSmrg XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 5217a73027baSmrg ;; 5218a73027baSmrgesac 5219a73027baSmrg 5220a73027baSmrg 5221a73027baSmrgfor ac_prog in mcookie 5222a73027baSmrgdo 5223a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5224a73027baSmrgset dummy $ac_prog; ac_word=$2 5225bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5226bf4a254eSmrg$as_echo_n "checking for $ac_word... " >&6; } 522729004570Smrgif ${ac_cv_path_MCOOKIE+:} false; then : 5228bf4a254eSmrg $as_echo_n "(cached) " >&6 5229a73027baSmrgelse 5230a73027baSmrg case $MCOOKIE in 5231a73027baSmrg [\\/]* | ?:[\\/]*) 5232a73027baSmrg ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 5233a73027baSmrg ;; 5234a73027baSmrg *) 5235a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5236a73027baSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 5237a73027baSmrgfor as_dir in $as_dummy 5238a73027baSmrgdo 5239a73027baSmrg IFS=$as_save_IFS 5240a73027baSmrg test -z "$as_dir" && as_dir=. 5241bf4a254eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5242a73027baSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5243a73027baSmrg ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext" 5244bf4a254eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245a73027baSmrg break 2 5246a73027baSmrg fi 5247a73027baSmrgdone 5248bf4a254eSmrg done 5249a73027baSmrgIFS=$as_save_IFS 5250a73027baSmrg 5251a73027baSmrg ;; 5252a73027baSmrgesac 5253a73027baSmrgfi 5254a73027baSmrgMCOOKIE=$ac_cv_path_MCOOKIE 5255a73027baSmrgif test -n "$MCOOKIE"; then 5256bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 5257bf4a254eSmrg$as_echo "$MCOOKIE" >&6; } 5258a73027baSmrgelse 5259bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260bf4a254eSmrg$as_echo "no" >&6; } 5261a73027baSmrgfi 5262a73027baSmrg 5263a73027baSmrg 5264a73027baSmrg test -n "$MCOOKIE" && break 5265a73027baSmrgdone 5266a73027baSmrgtest -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 5267a73027baSmrg 5268a73027baSmrg 5269a73027baSmrgcase $host_os in 5270a73027baSmrg *openbsd*) 5271a73027baSmrg MCOOKIE='/usr/sbin/openssl rand -hex 16' 5272a73027baSmrg ;; 5273a73027baSmrg *solaris*) 5274a73027baSmrg MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 5275a73027baSmrg ;; 5276a73027baSmrgesac 5277a73027baSmrg 5278a73027baSmrgif test "x$MCOOKIE" != x ; then 5279a73027baSmrg STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 5280a73027baSmrgfi 5281a73027baSmrg 5282a73027baSmrg 5283a73027baSmrg# Additional substitutions in startx, xinitrc & man pages 5284bf4a254eSmrgSHELL_CMD="/bin/sh" 5285bf4a254eSmrgXSERVERNAME="Xorg" 5286bf4a254eSmrgXCONFIGFILE="xorg.conf" 5287c81d8f5eSmrgXCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' 5288a73027baSmrgcase $host_os in 5289bf4a254eSmrg cygwin*) 5290bf4a254eSmrg XSERVERNAME="XWin" 5291bf4a254eSmrg XCONFIGFILE="XWinrc" 5292bf4a254eSmrg ;; 5293bf4a254eSmrg darwin*) 5294bf4a254eSmrg XSERVERNAME="Xquartz" 5295bf4a254eSmrg XCONFIGFILE="defaults" 5296bf4a254eSmrg XCONFIGFILEMAN='defaults (1)' 5297bf4a254eSmrg ;; 5298a73027baSmrg *solaris*) 5299a73027baSmrg SHELL_CMD="/bin/ksh" 5300a73027baSmrg ;; 5301a73027baSmrg *sco*) 5302a73027baSmrg SHELL_CMD="/bin/ksh" 5303c81d8f5eSmrg SCOMAN=1 5304a73027baSmrg ;; 5305a73027baSmrgesac 5306a73027baSmrg 5307a73027baSmrg 5308a73027baSmrg 5309a73027baSmrg 5310a73027baSmrg 5311a73027baSmrg 5312a73027baSmrg 5313a73027baSmrg 5314a73027baSmrg 5315a73027baSmrg 5316a73027baSmrg 5317a73027baSmrg 5318a73027baSmrg 5319a73027baSmrg 5320a73027baSmrg 5321a73027baSmrg 5322c81d8f5eSmrgac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile" 5323a73027baSmrg 5324a73027baSmrgcat >confcache <<\_ACEOF 5325a73027baSmrg# This file is a shell script that caches the results of configure 5326a73027baSmrg# tests run on this system so they can be shared between configure 5327a73027baSmrg# scripts and configure runs, see configure's option --config-cache. 5328a73027baSmrg# It is not useful on other systems. If it contains results you don't 5329a73027baSmrg# want to keep, you may remove or edit it. 5330a73027baSmrg# 5331a73027baSmrg# config.status only pays attention to the cache file if you give it 5332a73027baSmrg# the --recheck option to rerun configure. 5333a73027baSmrg# 5334a73027baSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 5335a73027baSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 5336a73027baSmrg# following values. 5337a73027baSmrg 5338a73027baSmrg_ACEOF 5339a73027baSmrg 5340a73027baSmrg# The following way of writing the cache mishandles newlines in values, 5341a73027baSmrg# but we know of no workaround that is simple, portable, and efficient. 5342a73027baSmrg# So, we kill variables containing newlines. 5343a73027baSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 5344a73027baSmrg# and sets the high bit in the cache file unless we assign to the vars. 5345a73027baSmrg( 5346a73027baSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5347a73027baSmrg eval ac_val=\$$ac_var 5348a73027baSmrg case $ac_val in #( 5349a73027baSmrg *${as_nl}*) 5350a73027baSmrg case $ac_var in #( 5351bf4a254eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5352bf4a254eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5353a73027baSmrg esac 5354a73027baSmrg case $ac_var in #( 5355a73027baSmrg _ | IFS | as_nl) ;; #( 5356bf4a254eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5357bf4a254eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 5358a73027baSmrg esac ;; 5359a73027baSmrg esac 5360a73027baSmrg done 5361a73027baSmrg 5362a73027baSmrg (set) 2>&1 | 5363a73027baSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5364a73027baSmrg *${as_nl}ac_space=\ *) 5365bf4a254eSmrg # `set' does not quote correctly, so add quotes: double-quote 5366bf4a254eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 5367a73027baSmrg sed -n \ 5368a73027baSmrg "s/'/'\\\\''/g; 5369a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5370a73027baSmrg ;; #( 5371a73027baSmrg *) 5372a73027baSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5373a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5374a73027baSmrg ;; 5375a73027baSmrg esac | 5376a73027baSmrg sort 5377a73027baSmrg) | 5378a73027baSmrg sed ' 5379a73027baSmrg /^ac_cv_env_/b end 5380a73027baSmrg t clear 5381a73027baSmrg :clear 5382a73027baSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5383a73027baSmrg t end 5384a73027baSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5385a73027baSmrg :end' >>confcache 5386a73027baSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5387a73027baSmrg if test -w "$cache_file"; then 538829004570Smrg if test "x$cache_file" != "x/dev/null"; then 5389bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5390bf4a254eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 539129004570Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 539229004570Smrg cat confcache >"$cache_file" 539329004570Smrg else 539429004570Smrg case $cache_file in #( 539529004570Smrg */* | ?:*) 539629004570Smrg mv -f confcache "$cache_file"$$ && 539729004570Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 539829004570Smrg *) 539929004570Smrg mv -f confcache "$cache_file" ;; 540029004570Smrg esac 540129004570Smrg fi 540229004570Smrg fi 5403a73027baSmrg else 5404bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5405bf4a254eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5406a73027baSmrg fi 5407a73027baSmrgfi 5408a73027baSmrgrm -f confcache 5409a73027baSmrg 5410a73027baSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 5411a73027baSmrg# Let make expand exec_prefix. 5412a73027baSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5413a73027baSmrg 5414a73027baSmrgDEFS=-DHAVE_CONFIG_H 5415a73027baSmrg 5416a73027baSmrgac_libobjs= 5417a73027baSmrgac_ltlibobjs= 541829004570SmrgU= 5419a73027baSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5420a73027baSmrg # 1. Remove the extension, and $U if already installed. 5421a73027baSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5422bf4a254eSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5423a73027baSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5424a73027baSmrg # will be set to the directory where LIBOBJS objects are built. 5425bf4a254eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5426bf4a254eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5427a73027baSmrgdone 5428a73027baSmrgLIBOBJS=$ac_libobjs 5429a73027baSmrg 5430a73027baSmrgLTLIBOBJS=$ac_ltlibobjs 5431a73027baSmrg 5432a73027baSmrg 5433bf4a254eSmrg if test -n "$EXEEXT"; then 5434bf4a254eSmrg am__EXEEXT_TRUE= 5435bf4a254eSmrg am__EXEEXT_FALSE='#' 5436bf4a254eSmrgelse 5437bf4a254eSmrg am__EXEEXT_TRUE='#' 5438bf4a254eSmrg am__EXEEXT_FALSE= 5439bf4a254eSmrgfi 5440bf4a254eSmrg 5441a73027baSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 544229004570Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 5443bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5444a73027baSmrgfi 5445a73027baSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 544629004570Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 5447bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5448a73027baSmrgfi 5449a73027baSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 545029004570Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5451bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5452a73027baSmrgfi 5453a73027baSmrgif test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 545429004570Smrg as_fn_error $? "conditional \"LAUNCHD\" was never defined. 5455bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5456a73027baSmrgfi 545772e81212Smrgif test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then 545829004570Smrg as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined. 5459bf4a254eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 546072e81212Smrgfi 5461a73027baSmrg 546229004570Smrg: "${CONFIG_STATUS=./config.status}" 5463bf4a254eSmrgac_write_fail=0 5464a73027baSmrgac_clean_files_save=$ac_clean_files 5465a73027baSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5466bf4a254eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5467bf4a254eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5468bf4a254eSmrgas_write_fail=0 5469bf4a254eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5470a73027baSmrg#! $SHELL 5471a73027baSmrg# Generated by $as_me. 5472a73027baSmrg# Run this file to recreate the current configuration. 5473a73027baSmrg# Compiler output produced by configure, useful for debugging 5474a73027baSmrg# configure, is in config.log if it exists. 5475a73027baSmrg 5476a73027baSmrgdebug=false 5477a73027baSmrgac_cs_recheck=false 5478a73027baSmrgac_cs_silent=false 5479a73027baSmrg 5480bf4a254eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 5481bf4a254eSmrgexport SHELL 5482bf4a254eSmrg_ASEOF 5483bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5484bf4a254eSmrg## -------------------- ## 5485bf4a254eSmrg## M4sh Initialization. ## 5486bf4a254eSmrg## -------------------- ## 5487a73027baSmrg 5488a73027baSmrg# Be more Bourne compatible 5489a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 5490bf4a254eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5491a73027baSmrg emulate sh 5492a73027baSmrg NULLCMD=: 5493bf4a254eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5494a73027baSmrg # is contrary to our usage. Disable this feature. 5495a73027baSmrg alias -g '${1+"$@"}'='"$@"' 5496a73027baSmrg setopt NO_GLOB_SUBST 5497a73027baSmrgelse 5498bf4a254eSmrg case `(set -o) 2>/dev/null` in #( 5499bf4a254eSmrg *posix*) : 5500bf4a254eSmrg set -o posix ;; #( 5501bf4a254eSmrg *) : 5502bf4a254eSmrg ;; 5503a73027baSmrgesac 5504a73027baSmrgfi 5505a73027baSmrg 5506a73027baSmrg 5507bf4a254eSmrgas_nl=' 5508bf4a254eSmrg' 5509bf4a254eSmrgexport as_nl 5510bf4a254eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5511bf4a254eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5512bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5513bf4a254eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5514bf4a254eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5515bf4a254eSmrg# but without wasting forks for bash or zsh. 5516bf4a254eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5517bf4a254eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5518bf4a254eSmrg as_echo='print -r --' 5519bf4a254eSmrg as_echo_n='print -rn --' 5520bf4a254eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5521bf4a254eSmrg as_echo='printf %s\n' 5522bf4a254eSmrg as_echo_n='printf %s' 5523bf4a254eSmrgelse 5524bf4a254eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5525bf4a254eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5526bf4a254eSmrg as_echo_n='/usr/ucb/echo -n' 5527a73027baSmrg else 5528bf4a254eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5529bf4a254eSmrg as_echo_n_body='eval 5530bf4a254eSmrg arg=$1; 5531bf4a254eSmrg case $arg in #( 5532bf4a254eSmrg *"$as_nl"*) 5533bf4a254eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5534bf4a254eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5535bf4a254eSmrg esac; 5536bf4a254eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5537bf4a254eSmrg ' 5538bf4a254eSmrg export as_echo_n_body 5539bf4a254eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 5540a73027baSmrg fi 5541bf4a254eSmrg export as_echo_body 5542bf4a254eSmrg as_echo='sh -c $as_echo_body as_echo' 5543a73027baSmrgfi 5544a73027baSmrg 5545bf4a254eSmrg# The user is always right. 5546bf4a254eSmrgif test "${PATH_SEPARATOR+set}" != set; then 5547bf4a254eSmrg PATH_SEPARATOR=: 5548bf4a254eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5549bf4a254eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5550bf4a254eSmrg PATH_SEPARATOR=';' 5551bf4a254eSmrg } 5552a73027baSmrgfi 5553a73027baSmrg 5554a73027baSmrg 5555a73027baSmrg# IFS 5556a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 5557a73027baSmrg# there to prevent editors from complaining about space-tab. 5558a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5559a73027baSmrg# splitting by setting IFS to empty value.) 5560a73027baSmrgIFS=" "" $as_nl" 5561a73027baSmrg 5562a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 556329004570Smrgas_myself= 5564bf4a254eSmrgcase $0 in #(( 5565a73027baSmrg *[\\/]* ) as_myself=$0 ;; 5566a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5567a73027baSmrgfor as_dir in $PATH 5568a73027baSmrgdo 5569a73027baSmrg IFS=$as_save_IFS 5570a73027baSmrg test -z "$as_dir" && as_dir=. 5571bf4a254eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5572bf4a254eSmrg done 5573a73027baSmrgIFS=$as_save_IFS 5574a73027baSmrg 5575a73027baSmrg ;; 5576a73027baSmrgesac 5577a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5578a73027baSmrg# in which case we are not to be found in the path. 5579a73027baSmrgif test "x$as_myself" = x; then 5580a73027baSmrg as_myself=$0 5581a73027baSmrgfi 5582a73027baSmrgif test ! -f "$as_myself"; then 5583bf4a254eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5584bf4a254eSmrg exit 1 5585a73027baSmrgfi 5586a73027baSmrg 5587bf4a254eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 5588bf4a254eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5589bf4a254eSmrg# suppresses any "Segmentation fault" message there. '((' could 5590bf4a254eSmrg# trigger a bug in pdksh 5.2.14. 5591bf4a254eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5592bf4a254eSmrgdo eval test x\${$as_var+set} = xset \ 5593bf4a254eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5594a73027baSmrgdone 5595a73027baSmrgPS1='$ ' 5596a73027baSmrgPS2='> ' 5597a73027baSmrgPS4='+ ' 5598a73027baSmrg 5599a73027baSmrg# NLS nuisances. 5600bf4a254eSmrgLC_ALL=C 5601bf4a254eSmrgexport LC_ALL 5602bf4a254eSmrgLANGUAGE=C 5603bf4a254eSmrgexport LANGUAGE 5604bf4a254eSmrg 5605bf4a254eSmrg# CDPATH. 5606bf4a254eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5607bf4a254eSmrg 5608bf4a254eSmrg 560929004570Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 561029004570Smrg# ---------------------------------------- 5611bf4a254eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5612bf4a254eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 561329004570Smrg# script with STATUS, using 1 if that was 0. 5614bf4a254eSmrgas_fn_error () 5615bf4a254eSmrg{ 561629004570Smrg as_status=$1; test $as_status -eq 0 && as_status=1 561729004570Smrg if test "$4"; then 561829004570Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 561929004570Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5620a73027baSmrg fi 562129004570Smrg $as_echo "$as_me: error: $2" >&2 5622bf4a254eSmrg as_fn_exit $as_status 5623bf4a254eSmrg} # as_fn_error 5624bf4a254eSmrg 5625bf4a254eSmrg 5626bf4a254eSmrg# as_fn_set_status STATUS 5627bf4a254eSmrg# ----------------------- 5628bf4a254eSmrg# Set $? to STATUS, without forking. 5629bf4a254eSmrgas_fn_set_status () 5630bf4a254eSmrg{ 5631bf4a254eSmrg return $1 5632bf4a254eSmrg} # as_fn_set_status 5633bf4a254eSmrg 5634bf4a254eSmrg# as_fn_exit STATUS 5635bf4a254eSmrg# ----------------- 5636bf4a254eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5637bf4a254eSmrgas_fn_exit () 5638bf4a254eSmrg{ 5639bf4a254eSmrg set +e 5640bf4a254eSmrg as_fn_set_status $1 5641bf4a254eSmrg exit $1 5642bf4a254eSmrg} # as_fn_exit 5643bf4a254eSmrg 5644bf4a254eSmrg# as_fn_unset VAR 5645bf4a254eSmrg# --------------- 5646bf4a254eSmrg# Portably unset VAR. 5647bf4a254eSmrgas_fn_unset () 5648bf4a254eSmrg{ 5649bf4a254eSmrg { eval $1=; unset $1;} 5650bf4a254eSmrg} 5651bf4a254eSmrgas_unset=as_fn_unset 5652bf4a254eSmrg# as_fn_append VAR VALUE 5653bf4a254eSmrg# ---------------------- 5654bf4a254eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5655bf4a254eSmrg# advantage of any shell optimizations that allow amortized linear growth over 5656bf4a254eSmrg# repeated appends, instead of the typical quadratic growth present in naive 5657bf4a254eSmrg# implementations. 5658bf4a254eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5659bf4a254eSmrg eval 'as_fn_append () 5660bf4a254eSmrg { 5661bf4a254eSmrg eval $1+=\$2 5662bf4a254eSmrg }' 5663bf4a254eSmrgelse 5664bf4a254eSmrg as_fn_append () 5665bf4a254eSmrg { 5666bf4a254eSmrg eval $1=\$$1\$2 5667bf4a254eSmrg } 5668bf4a254eSmrgfi # as_fn_append 5669bf4a254eSmrg 5670bf4a254eSmrg# as_fn_arith ARG... 5671bf4a254eSmrg# ------------------ 5672bf4a254eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5673bf4a254eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5674bf4a254eSmrg# must be portable across $(()) and expr. 5675bf4a254eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5676bf4a254eSmrg eval 'as_fn_arith () 5677bf4a254eSmrg { 5678bf4a254eSmrg as_val=$(( $* )) 5679bf4a254eSmrg }' 5680bf4a254eSmrgelse 5681bf4a254eSmrg as_fn_arith () 5682bf4a254eSmrg { 5683bf4a254eSmrg as_val=`expr "$@" || test $? -eq 1` 5684bf4a254eSmrg } 5685bf4a254eSmrgfi # as_fn_arith 5686bf4a254eSmrg 5687a73027baSmrg 5688a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 5689a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5690a73027baSmrg as_expr=expr 5691a73027baSmrgelse 5692a73027baSmrg as_expr=false 5693a73027baSmrgfi 5694a73027baSmrg 5695a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5696a73027baSmrg as_basename=basename 5697a73027baSmrgelse 5698a73027baSmrg as_basename=false 5699a73027baSmrgfi 5700a73027baSmrg 5701bf4a254eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5702bf4a254eSmrg as_dirname=dirname 5703bf4a254eSmrgelse 5704bf4a254eSmrg as_dirname=false 5705bf4a254eSmrgfi 5706a73027baSmrg 5707a73027baSmrgas_me=`$as_basename -- "$0" || 5708a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5709a73027baSmrg X"$0" : 'X\(//\)$' \| \ 5710a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5711bf4a254eSmrg$as_echo X/"$0" | 5712a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5713a73027baSmrg s//\1/ 5714a73027baSmrg q 5715a73027baSmrg } 5716a73027baSmrg /^X\/\(\/\/\)$/{ 5717a73027baSmrg s//\1/ 5718a73027baSmrg q 5719a73027baSmrg } 5720a73027baSmrg /^X\/\(\/\).*/{ 5721a73027baSmrg s//\1/ 5722a73027baSmrg q 5723a73027baSmrg } 5724a73027baSmrg s/.*/./; q'` 5725a73027baSmrg 5726bf4a254eSmrg# Avoid depending upon Character Ranges. 5727bf4a254eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5728bf4a254eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5729bf4a254eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5730bf4a254eSmrgas_cr_digits='0123456789' 5731bf4a254eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5732a73027baSmrg 5733a73027baSmrgECHO_C= ECHO_N= ECHO_T= 5734bf4a254eSmrgcase `echo -n x` in #((((( 5735a73027baSmrg-n*) 5736bf4a254eSmrg case `echo 'xy\c'` in 5737a73027baSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5738bf4a254eSmrg xy) ECHO_C='\c';; 5739bf4a254eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5740bf4a254eSmrg ECHO_T=' ';; 5741a73027baSmrg esac;; 5742a73027baSmrg*) 5743a73027baSmrg ECHO_N='-n';; 5744a73027baSmrgesac 5745a73027baSmrg 5746bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file 5747bf4a254eSmrgif test -d conf$$.dir; then 5748bf4a254eSmrg rm -f conf$$.dir/conf$$.file 5749a73027baSmrgelse 5750bf4a254eSmrg rm -f conf$$.dir 5751bf4a254eSmrg mkdir conf$$.dir 2>/dev/null 5752bf4a254eSmrgfi 5753bf4a254eSmrgif (echo >conf$$.file) 2>/dev/null; then 5754bf4a254eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5755bf4a254eSmrg as_ln_s='ln -s' 5756bf4a254eSmrg # ... but there are two gotchas: 5757bf4a254eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5758bf4a254eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5759bf4a254eSmrg # In both cases, we have to default to `cp -p'. 5760bf4a254eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5761bf4a254eSmrg as_ln_s='cp -p' 5762bf4a254eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5763bf4a254eSmrg as_ln_s=ln 5764bf4a254eSmrg else 5765bf4a254eSmrg as_ln_s='cp -p' 5766bf4a254eSmrg fi 5767bf4a254eSmrgelse 5768bf4a254eSmrg as_ln_s='cp -p' 5769a73027baSmrgfi 5770bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5771bf4a254eSmrgrmdir conf$$.dir 2>/dev/null 5772bf4a254eSmrg 5773bf4a254eSmrg 5774bf4a254eSmrg# as_fn_mkdir_p 5775bf4a254eSmrg# ------------- 5776bf4a254eSmrg# Create "$as_dir" as a directory, including parents if necessary. 5777bf4a254eSmrgas_fn_mkdir_p () 5778bf4a254eSmrg{ 5779bf4a254eSmrg 5780bf4a254eSmrg case $as_dir in #( 5781bf4a254eSmrg -*) as_dir=./$as_dir;; 5782bf4a254eSmrg esac 5783bf4a254eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 5784bf4a254eSmrg as_dirs= 5785bf4a254eSmrg while :; do 5786bf4a254eSmrg case $as_dir in #( 5787bf4a254eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5788bf4a254eSmrg *) as_qdir=$as_dir;; 5789bf4a254eSmrg esac 5790bf4a254eSmrg as_dirs="'$as_qdir' $as_dirs" 5791bf4a254eSmrg as_dir=`$as_dirname -- "$as_dir" || 5792bf4a254eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5793bf4a254eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5794bf4a254eSmrg X"$as_dir" : 'X\(//\)$' \| \ 5795bf4a254eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5796bf4a254eSmrg$as_echo X"$as_dir" | 5797bf4a254eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5798bf4a254eSmrg s//\1/ 5799bf4a254eSmrg q 5800bf4a254eSmrg } 5801bf4a254eSmrg /^X\(\/\/\)[^/].*/{ 5802bf4a254eSmrg s//\1/ 5803bf4a254eSmrg q 5804bf4a254eSmrg } 5805bf4a254eSmrg /^X\(\/\/\)$/{ 5806bf4a254eSmrg s//\1/ 5807bf4a254eSmrg q 5808bf4a254eSmrg } 5809bf4a254eSmrg /^X\(\/\).*/{ 5810bf4a254eSmrg s//\1/ 5811bf4a254eSmrg q 5812bf4a254eSmrg } 5813bf4a254eSmrg s/.*/./; q'` 5814bf4a254eSmrg test -d "$as_dir" && break 5815bf4a254eSmrg done 5816bf4a254eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 581729004570Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5818a73027baSmrg 5819a73027baSmrg 5820bf4a254eSmrg} # as_fn_mkdir_p 5821a73027baSmrgif mkdir -p . 2>/dev/null; then 5822bf4a254eSmrg as_mkdir_p='mkdir -p "$as_dir"' 5823a73027baSmrgelse 5824a73027baSmrg test -d ./-p && rmdir ./-p 5825a73027baSmrg as_mkdir_p=false 5826a73027baSmrgfi 5827a73027baSmrg 5828a73027baSmrgif test -x / >/dev/null 2>&1; then 5829a73027baSmrg as_test_x='test -x' 5830a73027baSmrgelse 5831a73027baSmrg if ls -dL / >/dev/null 2>&1; then 5832a73027baSmrg as_ls_L_option=L 5833a73027baSmrg else 5834a73027baSmrg as_ls_L_option= 5835a73027baSmrg fi 5836a73027baSmrg as_test_x=' 5837a73027baSmrg eval sh -c '\'' 5838a73027baSmrg if test -d "$1"; then 5839bf4a254eSmrg test -d "$1/."; 5840a73027baSmrg else 5841bf4a254eSmrg case $1 in #( 5842bf4a254eSmrg -*)set "./$1";; 5843a73027baSmrg esac; 5844bf4a254eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5845a73027baSmrg ???[sx]*):;;*)false;;esac;fi 5846a73027baSmrg '\'' sh 5847a73027baSmrg ' 5848a73027baSmrgfi 5849a73027baSmrgas_executable_p=$as_test_x 5850a73027baSmrg 5851a73027baSmrg# Sed expression to map a string onto a valid CPP name. 5852a73027baSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5853a73027baSmrg 5854a73027baSmrg# Sed expression to map a string onto a valid variable name. 5855a73027baSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5856a73027baSmrg 5857a73027baSmrg 5858a73027baSmrgexec 6>&1 5859bf4a254eSmrg## ----------------------------------- ## 5860bf4a254eSmrg## Main body of $CONFIG_STATUS script. ## 5861bf4a254eSmrg## ----------------------------------- ## 5862bf4a254eSmrg_ASEOF 5863bf4a254eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5864a73027baSmrg 5865bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5866bf4a254eSmrg# Save the log message, to keep $0 and so on meaningful, and to 5867a73027baSmrg# report actual input values of CONFIG_FILES etc. instead of their 5868a73027baSmrg# values after options handling. 5869a73027baSmrgac_log=" 5870c81d8f5eSmrgThis file was extended by xinit $as_me 1.3.1, which was 587129004570Smrggenerated by GNU Autoconf 2.68. Invocation command line was 5872a73027baSmrg 5873a73027baSmrg CONFIG_FILES = $CONFIG_FILES 5874a73027baSmrg CONFIG_HEADERS = $CONFIG_HEADERS 5875a73027baSmrg CONFIG_LINKS = $CONFIG_LINKS 5876a73027baSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5877a73027baSmrg $ $0 $@ 5878a73027baSmrg 5879a73027baSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5880a73027baSmrg" 5881a73027baSmrg 5882a73027baSmrg_ACEOF 5883a73027baSmrg 5884bf4a254eSmrgcase $ac_config_files in *" 5885bf4a254eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5886bf4a254eSmrgesac 5887bf4a254eSmrg 5888bf4a254eSmrgcase $ac_config_headers in *" 5889bf4a254eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5890bf4a254eSmrgesac 5891bf4a254eSmrg 5892bf4a254eSmrg 5893bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5894a73027baSmrg# Files that config.status was made for. 5895a73027baSmrgconfig_files="$ac_config_files" 5896a73027baSmrgconfig_headers="$ac_config_headers" 5897a73027baSmrgconfig_commands="$ac_config_commands" 5898a73027baSmrg 5899a73027baSmrg_ACEOF 5900a73027baSmrg 5901bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5902a73027baSmrgac_cs_usage="\ 5903bf4a254eSmrg\`$as_me' instantiates files and other configuration actions 5904bf4a254eSmrgfrom templates according to the current configuration. Unless the files 5905bf4a254eSmrgand actions are specified as TAGs, all are instantiated by default. 5906a73027baSmrg 5907bf4a254eSmrgUsage: $0 [OPTION]... [TAG]... 5908a73027baSmrg 5909a73027baSmrg -h, --help print this help, then exit 5910a73027baSmrg -V, --version print version number and configuration settings, then exit 5911bf4a254eSmrg --config print configuration, then exit 5912bf4a254eSmrg -q, --quiet, --silent 5913bf4a254eSmrg do not print progress messages 5914a73027baSmrg -d, --debug don't remove temporary files 5915a73027baSmrg --recheck update $as_me by reconfiguring in the same conditions 5916bf4a254eSmrg --file=FILE[:TEMPLATE] 5917bf4a254eSmrg instantiate the configuration file FILE 5918bf4a254eSmrg --header=FILE[:TEMPLATE] 5919bf4a254eSmrg instantiate the configuration header FILE 5920a73027baSmrg 5921a73027baSmrgConfiguration files: 5922a73027baSmrg$config_files 5923a73027baSmrg 5924a73027baSmrgConfiguration headers: 5925a73027baSmrg$config_headers 5926a73027baSmrg 5927a73027baSmrgConfiguration commands: 5928a73027baSmrg$config_commands 5929a73027baSmrg 5930bf4a254eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 5931a73027baSmrg 5932a73027baSmrg_ACEOF 5933bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5934bf4a254eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5935a73027baSmrgac_cs_version="\\ 5936c81d8f5eSmrgxinit config.status 1.3.1 593729004570Smrgconfigured by $0, generated by GNU Autoconf 2.68, 5938bf4a254eSmrg with options \\"\$ac_cs_config\\" 5939a73027baSmrg 594029004570SmrgCopyright (C) 2010 Free Software Foundation, Inc. 5941a73027baSmrgThis config.status script is free software; the Free Software Foundation 5942a73027baSmrggives unlimited permission to copy, distribute and modify it." 5943a73027baSmrg 5944a73027baSmrgac_pwd='$ac_pwd' 5945a73027baSmrgsrcdir='$srcdir' 5946a73027baSmrgINSTALL='$INSTALL' 5947a73027baSmrgMKDIR_P='$MKDIR_P' 5948bf4a254eSmrgAWK='$AWK' 5949bf4a254eSmrgtest -n "\$AWK" || AWK=awk 5950a73027baSmrg_ACEOF 5951a73027baSmrg 5952bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5953bf4a254eSmrg# The default lists apply if the user does not specify any file. 5954a73027baSmrgac_need_defaults=: 5955a73027baSmrgwhile test $# != 0 5956a73027baSmrgdo 5957a73027baSmrg case $1 in 595829004570Smrg --*=?*) 5959a73027baSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5960a73027baSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5961a73027baSmrg ac_shift=: 5962a73027baSmrg ;; 596329004570Smrg --*=) 596429004570Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 596529004570Smrg ac_optarg= 596629004570Smrg ac_shift=: 596729004570Smrg ;; 5968a73027baSmrg *) 5969a73027baSmrg ac_option=$1 5970a73027baSmrg ac_optarg=$2 5971a73027baSmrg ac_shift=shift 5972a73027baSmrg ;; 5973a73027baSmrg esac 5974a73027baSmrg 5975a73027baSmrg case $ac_option in 5976a73027baSmrg # Handling of the options. 5977a73027baSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5978a73027baSmrg ac_cs_recheck=: ;; 5979a73027baSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5980bf4a254eSmrg $as_echo "$ac_cs_version"; exit ;; 5981bf4a254eSmrg --config | --confi | --conf | --con | --co | --c ) 5982bf4a254eSmrg $as_echo "$ac_cs_config"; exit ;; 5983a73027baSmrg --debug | --debu | --deb | --de | --d | -d ) 5984a73027baSmrg debug=: ;; 5985a73027baSmrg --file | --fil | --fi | --f ) 5986a73027baSmrg $ac_shift 5987bf4a254eSmrg case $ac_optarg in 5988bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 598929004570Smrg '') as_fn_error $? "missing file argument" ;; 5990bf4a254eSmrg esac 5991bf4a254eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 5992a73027baSmrg ac_need_defaults=false;; 5993a73027baSmrg --header | --heade | --head | --hea ) 5994a73027baSmrg $ac_shift 5995bf4a254eSmrg case $ac_optarg in 5996bf4a254eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5997bf4a254eSmrg esac 5998bf4a254eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5999a73027baSmrg ac_need_defaults=false;; 6000a73027baSmrg --he | --h) 6001a73027baSmrg # Conflict between --help and --header 600229004570Smrg as_fn_error $? "ambiguous option: \`$1' 6003bf4a254eSmrgTry \`$0 --help' for more information.";; 6004a73027baSmrg --help | --hel | -h ) 6005bf4a254eSmrg $as_echo "$ac_cs_usage"; exit ;; 6006a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6007a73027baSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 6008a73027baSmrg ac_cs_silent=: ;; 6009a73027baSmrg 6010a73027baSmrg # This is an error. 601129004570Smrg -*) as_fn_error $? "unrecognized option: \`$1' 6012bf4a254eSmrgTry \`$0 --help' for more information." ;; 6013a73027baSmrg 6014bf4a254eSmrg *) as_fn_append ac_config_targets " $1" 6015a73027baSmrg ac_need_defaults=false ;; 6016a73027baSmrg 6017a73027baSmrg esac 6018a73027baSmrg shift 6019a73027baSmrgdone 6020a73027baSmrg 6021a73027baSmrgac_configure_extra_args= 6022a73027baSmrg 6023a73027baSmrgif $ac_cs_silent; then 6024a73027baSmrg exec 6>/dev/null 6025a73027baSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 6026a73027baSmrgfi 6027a73027baSmrg 6028a73027baSmrg_ACEOF 6029bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6030a73027baSmrgif \$ac_cs_recheck; then 6031bf4a254eSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6032bf4a254eSmrg shift 6033bf4a254eSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6034bf4a254eSmrg CONFIG_SHELL='$SHELL' 6035a73027baSmrg export CONFIG_SHELL 6036bf4a254eSmrg exec "\$@" 6037a73027baSmrgfi 6038a73027baSmrg 6039a73027baSmrg_ACEOF 6040bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6041a73027baSmrgexec 5>>config.log 6042a73027baSmrg{ 6043a73027baSmrg echo 6044a73027baSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6045a73027baSmrg## Running $as_me. ## 6046a73027baSmrg_ASBOX 6047bf4a254eSmrg $as_echo "$ac_log" 6048a73027baSmrg} >&5 6049a73027baSmrg 6050a73027baSmrg_ACEOF 6051bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6052a73027baSmrg# 6053a73027baSmrg# INIT-COMMANDS 6054a73027baSmrg# 6055a73027baSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6056a73027baSmrg 6057a73027baSmrg_ACEOF 6058a73027baSmrg 6059bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6060a73027baSmrg 6061a73027baSmrg# Handling of arguments. 6062a73027baSmrgfor ac_config_target in $ac_config_targets 6063a73027baSmrgdo 6064a73027baSmrg case $ac_config_target in 6065bf4a254eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6066a73027baSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6067a73027baSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6068c81d8f5eSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 6069c81d8f5eSmrg "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;; 6070c81d8f5eSmrg "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;; 6071c81d8f5eSmrg "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;; 6072a73027baSmrg 607329004570Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6074a73027baSmrg esac 6075a73027baSmrgdone 6076a73027baSmrg 6077a73027baSmrg 6078a73027baSmrg# If the user did not use the arguments to specify the items to instantiate, 6079a73027baSmrg# then the envvar interface is used. Set only those that are not. 6080a73027baSmrg# We use the long form for the default assignment because of an extremely 6081a73027baSmrg# bizarre bug on SunOS 4.1.3. 6082a73027baSmrgif $ac_need_defaults; then 6083a73027baSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6084a73027baSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6085a73027baSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6086a73027baSmrgfi 6087a73027baSmrg 6088a73027baSmrg# Have a temporary directory for convenience. Make it in the build tree 6089a73027baSmrg# simply because there is no reason against having it here, and in addition, 6090a73027baSmrg# creating and moving files from /tmp can sometimes cause problems. 6091a73027baSmrg# Hook for its removal unless debugging. 6092a73027baSmrg# Note that there is a small window in which the directory will not be cleaned: 6093a73027baSmrg# after its creation but before its name has been assigned to `$tmp'. 6094a73027baSmrg$debug || 6095a73027baSmrg{ 609629004570Smrg tmp= ac_tmp= 6097a73027baSmrg trap 'exit_status=$? 609829004570Smrg : "${ac_tmp:=$tmp}" 609929004570Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6100a73027baSmrg' 0 6101bf4a254eSmrg trap 'as_fn_exit 1' 1 2 13 15 6102a73027baSmrg} 6103a73027baSmrg# Create a (secure) tmp directory for tmp files. 6104a73027baSmrg 6105a73027baSmrg{ 6106a73027baSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 610729004570Smrg test -d "$tmp" 6108a73027baSmrg} || 6109a73027baSmrg{ 6110a73027baSmrg tmp=./conf$$-$RANDOM 6111a73027baSmrg (umask 077 && mkdir "$tmp") 611229004570Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 611329004570Smrgac_tmp=$tmp 6114a73027baSmrg 6115bf4a254eSmrg# Set up the scripts for CONFIG_FILES section. 6116bf4a254eSmrg# No need to generate them if there are no CONFIG_FILES. 6117bf4a254eSmrg# This happens for instance with `./config.status config.h'. 6118a73027baSmrgif test -n "$CONFIG_FILES"; then 6119a73027baSmrg 6120a73027baSmrg 6121bf4a254eSmrgac_cr=`echo X | tr X '\015'` 6122bf4a254eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 6123bf4a254eSmrg# But we know of no other shell where ac_cr would be empty at this 6124bf4a254eSmrg# point, so we can use a bashism as a fallback. 6125bf4a254eSmrgif test "x$ac_cr" = x; then 6126bf4a254eSmrg eval ac_cr=\$\'\\r\' 6127bf4a254eSmrgfi 6128bf4a254eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6129bf4a254eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 613029004570Smrg ac_cs_awk_cr='\\r' 6131bf4a254eSmrgelse 6132bf4a254eSmrg ac_cs_awk_cr=$ac_cr 6133a73027baSmrgfi 6134a73027baSmrg 613529004570Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 6136a73027baSmrg_ACEOF 6137a73027baSmrg 6138a73027baSmrg 6139bf4a254eSmrg{ 6140bf4a254eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 6141bf4a254eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6142bf4a254eSmrg echo "_ACEOF" 6143bf4a254eSmrg} >conf$$subs.sh || 614429004570Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 614529004570Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6146a73027baSmrgac_delim='%!_!# ' 6147a73027baSmrgfor ac_last_try in false false false false false :; do 6148bf4a254eSmrg . ./conf$$subs.sh || 614929004570Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6150a73027baSmrg 6151bf4a254eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6152bf4a254eSmrg if test $ac_delim_n = $ac_delim_num; then 6153a73027baSmrg break 6154a73027baSmrg elif $ac_last_try; then 615529004570Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6156a73027baSmrg else 6157a73027baSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6158a73027baSmrg fi 6159a73027baSmrgdone 6160bf4a254eSmrgrm -f conf$$subs.sh 6161bf4a254eSmrg 6162bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 616329004570Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6164bf4a254eSmrg_ACEOF 6165bf4a254eSmrgsed -n ' 6166bf4a254eSmrgh 6167bf4a254eSmrgs/^/S["/; s/!.*/"]=/ 6168bf4a254eSmrgp 6169bf4a254eSmrgg 6170bf4a254eSmrgs/^[^!]*!// 6171bf4a254eSmrg:repl 6172bf4a254eSmrgt repl 6173bf4a254eSmrgs/'"$ac_delim"'$// 6174bf4a254eSmrgt delim 6175bf4a254eSmrg:nl 6176bf4a254eSmrgh 6177bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 6178bf4a254eSmrgt more1 6179bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6180bf4a254eSmrgp 6181bf4a254eSmrgn 6182bf4a254eSmrgb repl 6183bf4a254eSmrg:more1 6184bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6185bf4a254eSmrgp 6186bf4a254eSmrgg 6187bf4a254eSmrgs/.\{148\}// 6188bf4a254eSmrgt nl 6189bf4a254eSmrg:delim 6190bf4a254eSmrgh 6191bf4a254eSmrgs/\(.\{148\}\)..*/\1/ 6192bf4a254eSmrgt more2 6193bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6194bf4a254eSmrgp 6195bf4a254eSmrgb 6196bf4a254eSmrg:more2 6197bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6198bf4a254eSmrgp 6199bf4a254eSmrgg 6200bf4a254eSmrgs/.\{148\}// 6201bf4a254eSmrgt delim 6202bf4a254eSmrg' <conf$$subs.awk | sed ' 6203bf4a254eSmrg/^[^""]/{ 6204bf4a254eSmrg N 6205bf4a254eSmrg s/\n// 6206bf4a254eSmrg} 6207bf4a254eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 6208bf4a254eSmrgrm -f conf$$subs.awk 6209bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6210bf4a254eSmrg_ACAWK 621129004570Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6212bf4a254eSmrg for (key in S) S_is_set[key] = 1 6213bf4a254eSmrg FS = "" 6214a73027baSmrg 6215bf4a254eSmrg} 6216bf4a254eSmrg{ 6217bf4a254eSmrg line = $ 0 6218bf4a254eSmrg nfields = split(line, field, "@") 6219bf4a254eSmrg substed = 0 6220bf4a254eSmrg len = length(field[1]) 6221bf4a254eSmrg for (i = 2; i < nfields; i++) { 6222bf4a254eSmrg key = field[i] 6223bf4a254eSmrg keylen = length(key) 6224bf4a254eSmrg if (S_is_set[key]) { 6225bf4a254eSmrg value = S[key] 6226bf4a254eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6227bf4a254eSmrg len += length(value) + length(field[++i]) 6228bf4a254eSmrg substed = 1 6229bf4a254eSmrg } else 6230bf4a254eSmrg len += 1 + keylen 6231bf4a254eSmrg } 6232bf4a254eSmrg 6233bf4a254eSmrg print line 6234bf4a254eSmrg} 6235a73027baSmrg 6236bf4a254eSmrg_ACAWK 6237a73027baSmrg_ACEOF 6238bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6239bf4a254eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6240bf4a254eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6241bf4a254eSmrgelse 6242bf4a254eSmrg cat 624329004570Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 624429004570Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6245a73027baSmrg_ACEOF 6246a73027baSmrg 624729004570Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 624829004570Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6249a73027baSmrg# trailing colons and then remove the whole line if VPATH becomes empty 6250a73027baSmrg# (actually we leave an empty line to preserve line numbers). 6251a73027baSmrgif test "x$srcdir" = x.; then 625229004570Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 625329004570Smrgh 625429004570Smrgs/// 625529004570Smrgs/^/:/ 625629004570Smrgs/[ ]*$/:/ 625729004570Smrgs/:\$(srcdir):/:/g 625829004570Smrgs/:\${srcdir}:/:/g 625929004570Smrgs/:@srcdir@:/:/g 626029004570Smrgs/^:*// 6261a73027baSmrgs/:*$// 626229004570Smrgx 626329004570Smrgs/\(=[ ]*\).*/\1/ 626429004570SmrgG 626529004570Smrgs/\n// 6266a73027baSmrgs/^[^=]*=[ ]*$// 6267a73027baSmrg}' 6268a73027baSmrgfi 6269a73027baSmrg 6270bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6271a73027baSmrgfi # test -n "$CONFIG_FILES" 6272a73027baSmrg 6273bf4a254eSmrg# Set up the scripts for CONFIG_HEADERS section. 6274bf4a254eSmrg# No need to generate them if there are no CONFIG_HEADERS. 6275bf4a254eSmrg# This happens for instance with `./config.status Makefile'. 6276bf4a254eSmrgif test -n "$CONFIG_HEADERS"; then 627729004570Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 6278bf4a254eSmrgBEGIN { 6279bf4a254eSmrg_ACEOF 6280bf4a254eSmrg 6281bf4a254eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6282bf4a254eSmrg# here-document in config.status, that substitutes the proper values into 6283bf4a254eSmrg# config.h.in to produce config.h. 6284bf4a254eSmrg 6285bf4a254eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 6286bf4a254eSmrg# handling of long lines. 6287bf4a254eSmrgac_delim='%!_!# ' 6288bf4a254eSmrgfor ac_last_try in false false :; do 628929004570Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 629029004570Smrg if test -z "$ac_tt"; then 6291bf4a254eSmrg break 6292bf4a254eSmrg elif $ac_last_try; then 629329004570Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6294bf4a254eSmrg else 6295bf4a254eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6296bf4a254eSmrg fi 6297bf4a254eSmrgdone 6298bf4a254eSmrg 6299bf4a254eSmrg# For the awk script, D is an array of macro values keyed by name, 6300bf4a254eSmrg# likewise P contains macro parameters if any. Preserve backslash 6301bf4a254eSmrg# newline sequences. 6302bf4a254eSmrg 6303bf4a254eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6304bf4a254eSmrgsed -n ' 6305bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 6306bf4a254eSmrgt rset 6307bf4a254eSmrg:rset 6308bf4a254eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6309bf4a254eSmrgt def 6310bf4a254eSmrgd 6311bf4a254eSmrg:def 6312bf4a254eSmrgs/\\$// 6313bf4a254eSmrgt bsnl 6314bf4a254eSmrgs/["\\]/\\&/g 6315bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6316bf4a254eSmrgD["\1"]=" \3"/p 6317bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6318bf4a254eSmrgd 6319bf4a254eSmrg:bsnl 6320bf4a254eSmrgs/["\\]/\\&/g 6321bf4a254eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6322bf4a254eSmrgD["\1"]=" \3\\\\\\n"\\/p 6323bf4a254eSmrgt cont 6324bf4a254eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6325bf4a254eSmrgt cont 6326bf4a254eSmrgd 6327bf4a254eSmrg:cont 6328bf4a254eSmrgn 6329bf4a254eSmrgs/.\{148\}/&'"$ac_delim"'/g 6330bf4a254eSmrgt clear 6331bf4a254eSmrg:clear 6332bf4a254eSmrgs/\\$// 6333bf4a254eSmrgt bsnlc 6334bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6335bf4a254eSmrgd 6336bf4a254eSmrg:bsnlc 6337bf4a254eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6338bf4a254eSmrgb cont 6339bf4a254eSmrg' <confdefs.h | sed ' 6340bf4a254eSmrgs/'"$ac_delim"'/"\\\ 6341bf4a254eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6342bf4a254eSmrg 6343bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6344bf4a254eSmrg for (key in D) D_is_set[key] = 1 6345bf4a254eSmrg FS = "" 6346bf4a254eSmrg} 6347bf4a254eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6348bf4a254eSmrg line = \$ 0 6349bf4a254eSmrg split(line, arg, " ") 6350bf4a254eSmrg if (arg[1] == "#") { 6351bf4a254eSmrg defundef = arg[2] 6352bf4a254eSmrg mac1 = arg[3] 6353bf4a254eSmrg } else { 6354bf4a254eSmrg defundef = substr(arg[1], 2) 6355bf4a254eSmrg mac1 = arg[2] 6356bf4a254eSmrg } 6357bf4a254eSmrg split(mac1, mac2, "(") #) 6358bf4a254eSmrg macro = mac2[1] 6359bf4a254eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 6360bf4a254eSmrg if (D_is_set[macro]) { 6361bf4a254eSmrg # Preserve the white space surrounding the "#". 6362bf4a254eSmrg print prefix "define", macro P[macro] D[macro] 6363bf4a254eSmrg next 6364bf4a254eSmrg } else { 6365bf4a254eSmrg # Replace #undef with comments. This is necessary, for example, 6366bf4a254eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 6367bf4a254eSmrg # on some systems where configure will not decide to define it. 6368bf4a254eSmrg if (defundef == "undef") { 6369bf4a254eSmrg print "/*", prefix defundef, macro, "*/" 6370bf4a254eSmrg next 6371bf4a254eSmrg } 6372bf4a254eSmrg } 6373bf4a254eSmrg} 6374bf4a254eSmrg{ print } 6375bf4a254eSmrg_ACAWK 6376bf4a254eSmrg_ACEOF 6377bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 637829004570Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6379bf4a254eSmrgfi # test -n "$CONFIG_HEADERS" 6380bf4a254eSmrg 6381a73027baSmrg 6382bf4a254eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6383bf4a254eSmrgshift 6384bf4a254eSmrgfor ac_tag 6385a73027baSmrgdo 6386a73027baSmrg case $ac_tag in 6387a73027baSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 6388a73027baSmrg esac 6389a73027baSmrg case $ac_mode$ac_tag in 6390a73027baSmrg :[FHL]*:*);; 639129004570Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6392a73027baSmrg :[FH]-) ac_tag=-:-;; 6393a73027baSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6394a73027baSmrg esac 6395a73027baSmrg ac_save_IFS=$IFS 6396a73027baSmrg IFS=: 6397a73027baSmrg set x $ac_tag 6398a73027baSmrg IFS=$ac_save_IFS 6399a73027baSmrg shift 6400a73027baSmrg ac_file=$1 6401a73027baSmrg shift 6402a73027baSmrg 6403a73027baSmrg case $ac_mode in 6404a73027baSmrg :L) ac_source=$1;; 6405a73027baSmrg :[FH]) 6406a73027baSmrg ac_file_inputs= 6407a73027baSmrg for ac_f 6408a73027baSmrg do 6409a73027baSmrg case $ac_f in 641029004570Smrg -) ac_f="$ac_tmp/stdin";; 6411a73027baSmrg *) # Look for the file first in the build tree, then in the source tree 6412a73027baSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 6413a73027baSmrg # because $ac_f cannot contain `:'. 6414a73027baSmrg test -f "$ac_f" || 6415a73027baSmrg case $ac_f in 6416a73027baSmrg [\\/$]*) false;; 6417a73027baSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6418a73027baSmrg esac || 641929004570Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6420a73027baSmrg esac 6421bf4a254eSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6422bf4a254eSmrg as_fn_append ac_file_inputs " '$ac_f'" 6423a73027baSmrg done 6424a73027baSmrg 6425a73027baSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 6426a73027baSmrg # use $as_me), people would be surprised to read: 6427a73027baSmrg # /* config.h. Generated by config.status. */ 6428bf4a254eSmrg configure_input='Generated from '` 6429bf4a254eSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6430bf4a254eSmrg `' by configure.' 6431a73027baSmrg if test x"$ac_file" != x-; then 6432a73027baSmrg configure_input="$ac_file. $configure_input" 6433bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6434bf4a254eSmrg$as_echo "$as_me: creating $ac_file" >&6;} 6435a73027baSmrg fi 6436bf4a254eSmrg # Neutralize special characters interpreted by sed in replacement strings. 6437bf4a254eSmrg case $configure_input in #( 6438bf4a254eSmrg *\&* | *\|* | *\\* ) 6439bf4a254eSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 6440bf4a254eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6441bf4a254eSmrg *) ac_sed_conf_input=$configure_input;; 6442bf4a254eSmrg esac 6443a73027baSmrg 6444a73027baSmrg case $ac_tag in 644529004570Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 644629004570Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6447a73027baSmrg esac 6448a73027baSmrg ;; 6449a73027baSmrg esac 6450a73027baSmrg 6451a73027baSmrg ac_dir=`$as_dirname -- "$ac_file" || 6452a73027baSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6453a73027baSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 6454a73027baSmrg X"$ac_file" : 'X\(//\)$' \| \ 6455a73027baSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6456bf4a254eSmrg$as_echo X"$ac_file" | 6457a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6458a73027baSmrg s//\1/ 6459a73027baSmrg q 6460a73027baSmrg } 6461a73027baSmrg /^X\(\/\/\)[^/].*/{ 6462a73027baSmrg s//\1/ 6463a73027baSmrg q 6464a73027baSmrg } 6465a73027baSmrg /^X\(\/\/\)$/{ 6466a73027baSmrg s//\1/ 6467a73027baSmrg q 6468a73027baSmrg } 6469a73027baSmrg /^X\(\/\).*/{ 6470a73027baSmrg s//\1/ 6471a73027baSmrg q 6472a73027baSmrg } 6473a73027baSmrg s/.*/./; q'` 6474bf4a254eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 6475a73027baSmrg ac_builddir=. 6476a73027baSmrg 6477a73027baSmrgcase "$ac_dir" in 6478a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6479a73027baSmrg*) 6480bf4a254eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6481a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 6482bf4a254eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6483a73027baSmrg case $ac_top_builddir_sub in 6484a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6485a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6486a73027baSmrg esac ;; 6487a73027baSmrgesac 6488a73027baSmrgac_abs_top_builddir=$ac_pwd 6489a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6490a73027baSmrg# for backward compatibility: 6491a73027baSmrgac_top_builddir=$ac_top_build_prefix 6492a73027baSmrg 6493a73027baSmrgcase $srcdir in 6494a73027baSmrg .) # We are building in place. 6495a73027baSmrg ac_srcdir=. 6496a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 6497a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 6498a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 6499a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 6500a73027baSmrg ac_top_srcdir=$srcdir 6501a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 6502a73027baSmrg *) # Relative name. 6503a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6504a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6505a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6506a73027baSmrgesac 6507a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6508a73027baSmrg 6509a73027baSmrg 6510a73027baSmrg case $ac_mode in 6511a73027baSmrg :F) 6512a73027baSmrg # 6513a73027baSmrg # CONFIG_FILE 6514a73027baSmrg # 6515a73027baSmrg 6516a73027baSmrg case $INSTALL in 6517a73027baSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6518a73027baSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6519a73027baSmrg esac 6520a73027baSmrg ac_MKDIR_P=$MKDIR_P 6521a73027baSmrg case $MKDIR_P in 6522a73027baSmrg [\\/$]* | ?:[\\/]* ) ;; 6523a73027baSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6524a73027baSmrg esac 6525a73027baSmrg_ACEOF 6526a73027baSmrg 6527bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6528a73027baSmrg# If the template does not know about datarootdir, expand it. 6529a73027baSmrg# FIXME: This hack should be removed a few years after 2.60. 6530a73027baSmrgac_datarootdir_hack=; ac_datarootdir_seen= 6531bf4a254eSmrgac_sed_dataroot=' 6532bf4a254eSmrg/datarootdir/ { 6533a73027baSmrg p 6534a73027baSmrg q 6535a73027baSmrg} 6536a73027baSmrg/@datadir@/p 6537a73027baSmrg/@docdir@/p 6538a73027baSmrg/@infodir@/p 6539a73027baSmrg/@localedir@/p 6540bf4a254eSmrg/@mandir@/p' 6541bf4a254eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6542a73027baSmrg*datarootdir*) ac_datarootdir_seen=yes;; 6543a73027baSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6544bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6545bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6546a73027baSmrg_ACEOF 6547bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6548a73027baSmrg ac_datarootdir_hack=' 6549a73027baSmrg s&@datadir@&$datadir&g 6550a73027baSmrg s&@docdir@&$docdir&g 6551a73027baSmrg s&@infodir@&$infodir&g 6552a73027baSmrg s&@localedir@&$localedir&g 6553a73027baSmrg s&@mandir@&$mandir&g 6554bf4a254eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 6555a73027baSmrgesac 6556a73027baSmrg_ACEOF 6557a73027baSmrg 6558a73027baSmrg# Neutralize VPATH when `$srcdir' = `.'. 6559a73027baSmrg# Shell code in configure.ac might set extrasub. 6560a73027baSmrg# FIXME: do we really want to maintain this feature? 6561bf4a254eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6562bf4a254eSmrgac_sed_extra="$ac_vpsub 6563a73027baSmrg$extrasub 6564a73027baSmrg_ACEOF 6565bf4a254eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6566a73027baSmrg:t 6567a73027baSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6568bf4a254eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 6569a73027baSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6570bf4a254eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6571a73027baSmrgs&@srcdir@&$ac_srcdir&;t t 6572a73027baSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6573a73027baSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 6574a73027baSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6575a73027baSmrgs&@builddir@&$ac_builddir&;t t 6576a73027baSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 6577a73027baSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6578a73027baSmrgs&@INSTALL@&$ac_INSTALL&;t t 6579a73027baSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6580a73027baSmrg$ac_datarootdir_hack 6581bf4a254eSmrg" 658229004570Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 658329004570Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6584a73027baSmrg 6585a73027baSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 658629004570Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 658729004570Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 658829004570Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 6589bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 659029004570Smrgwhich seems to be undefined. Please make sure it is defined" >&5 6591bf4a254eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 659229004570Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 6593a73027baSmrg 659429004570Smrg rm -f "$ac_tmp/stdin" 6595a73027baSmrg case $ac_file in 659629004570Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 659729004570Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6598bf4a254eSmrg esac \ 659929004570Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6600a73027baSmrg ;; 6601a73027baSmrg :H) 6602a73027baSmrg # 6603a73027baSmrg # CONFIG_HEADER 6604a73027baSmrg # 6605a73027baSmrg if test x"$ac_file" != x-; then 6606bf4a254eSmrg { 6607bf4a254eSmrg $as_echo "/* $configure_input */" \ 660829004570Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 660929004570Smrg } >"$ac_tmp/config.h" \ 661029004570Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 661129004570Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6612bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6613bf4a254eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6614a73027baSmrg else 6615bf4a254eSmrg rm -f "$ac_file" 661629004570Smrg mv "$ac_tmp/config.h" "$ac_file" \ 661729004570Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6618a73027baSmrg fi 6619a73027baSmrg else 6620bf4a254eSmrg $as_echo "/* $configure_input */" \ 662129004570Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 662229004570Smrg || as_fn_error $? "could not create -" "$LINENO" 5 6623a73027baSmrg fi 6624bf4a254eSmrg# Compute "$ac_file"'s index in $config_headers. 6625bf4a254eSmrg_am_arg="$ac_file" 6626a73027baSmrg_am_stamp_count=1 6627a73027baSmrgfor _am_header in $config_headers :; do 6628a73027baSmrg case $_am_header in 6629bf4a254eSmrg $_am_arg | $_am_arg:* ) 6630a73027baSmrg break ;; 6631a73027baSmrg * ) 6632a73027baSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6633a73027baSmrg esac 6634a73027baSmrgdone 6635bf4a254eSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6636bf4a254eSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6637bf4a254eSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6638bf4a254eSmrg X"$_am_arg" : 'X\(//\)$' \| \ 6639bf4a254eSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6640bf4a254eSmrg$as_echo X"$_am_arg" | 6641a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6642a73027baSmrg s//\1/ 6643a73027baSmrg q 6644a73027baSmrg } 6645a73027baSmrg /^X\(\/\/\)[^/].*/{ 6646a73027baSmrg s//\1/ 6647a73027baSmrg q 6648a73027baSmrg } 6649a73027baSmrg /^X\(\/\/\)$/{ 6650a73027baSmrg s//\1/ 6651a73027baSmrg q 6652a73027baSmrg } 6653a73027baSmrg /^X\(\/\).*/{ 6654a73027baSmrg s//\1/ 6655a73027baSmrg q 6656a73027baSmrg } 6657a73027baSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 6658a73027baSmrg ;; 6659a73027baSmrg 6660bf4a254eSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6661bf4a254eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6662a73027baSmrg ;; 6663a73027baSmrg esac 6664a73027baSmrg 6665a73027baSmrg 6666a73027baSmrg case $ac_file$ac_mode in 6667bf4a254eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6668bf4a254eSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6669bf4a254eSmrg # are listed without --file. Let's play safe and only enable the eval 6670bf4a254eSmrg # if we detect the quoting. 6671bf4a254eSmrg case $CONFIG_FILES in 6672bf4a254eSmrg *\'*) eval set x "$CONFIG_FILES" ;; 6673bf4a254eSmrg *) set x $CONFIG_FILES ;; 6674bf4a254eSmrg esac 6675bf4a254eSmrg shift 6676bf4a254eSmrg for mf 6677bf4a254eSmrg do 6678bf4a254eSmrg # Strip MF so we end up with the name of the file. 6679bf4a254eSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6680bf4a254eSmrg # Check whether this is an Automake generated Makefile or not. 6681bf4a254eSmrg # We used to match only the files named `Makefile.in', but 6682bf4a254eSmrg # some people rename them; so instead we look at the file content. 6683bf4a254eSmrg # Grep'ing the first line is not enough: some people post-process 6684bf4a254eSmrg # each Makefile.in and add a new line on top of each file to say so. 6685bf4a254eSmrg # Grep'ing the whole file is not good either: AIX grep has a line 6686bf4a254eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 6687bf4a254eSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6688bf4a254eSmrg dirpart=`$as_dirname -- "$mf" || 6689a73027baSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6690a73027baSmrg X"$mf" : 'X\(//\)[^/]' \| \ 6691a73027baSmrg X"$mf" : 'X\(//\)$' \| \ 6692a73027baSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6693bf4a254eSmrg$as_echo X"$mf" | 6694a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6695a73027baSmrg s//\1/ 6696a73027baSmrg q 6697a73027baSmrg } 6698a73027baSmrg /^X\(\/\/\)[^/].*/{ 6699a73027baSmrg s//\1/ 6700a73027baSmrg q 6701a73027baSmrg } 6702a73027baSmrg /^X\(\/\/\)$/{ 6703a73027baSmrg s//\1/ 6704a73027baSmrg q 6705a73027baSmrg } 6706a73027baSmrg /^X\(\/\).*/{ 6707a73027baSmrg s//\1/ 6708a73027baSmrg q 6709a73027baSmrg } 6710a73027baSmrg s/.*/./; q'` 6711bf4a254eSmrg else 6712bf4a254eSmrg continue 6713bf4a254eSmrg fi 6714bf4a254eSmrg # Extract the definition of DEPDIR, am__include, and am__quote 6715bf4a254eSmrg # from the Makefile without running `make'. 6716bf4a254eSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6717bf4a254eSmrg test -z "$DEPDIR" && continue 6718bf4a254eSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6719bf4a254eSmrg test -z "am__include" && continue 6720bf4a254eSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6721bf4a254eSmrg # When using ansi2knr, U may be empty or an underscore; expand it 6722bf4a254eSmrg U=`sed -n 's/^U = //p' < "$mf"` 6723bf4a254eSmrg # Find all dependency output files, they are included files with 6724bf4a254eSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6725bf4a254eSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 6726bf4a254eSmrg # expansion. 6727bf4a254eSmrg for file in `sed -n " 6728bf4a254eSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6729bf4a254eSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6730bf4a254eSmrg # Make sure the directory exists. 6731bf4a254eSmrg test -f "$dirpart/$file" && continue 6732bf4a254eSmrg fdir=`$as_dirname -- "$file" || 6733a73027baSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6734a73027baSmrg X"$file" : 'X\(//\)[^/]' \| \ 6735a73027baSmrg X"$file" : 'X\(//\)$' \| \ 6736a73027baSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6737bf4a254eSmrg$as_echo X"$file" | 6738a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6739a73027baSmrg s//\1/ 6740a73027baSmrg q 6741a73027baSmrg } 6742a73027baSmrg /^X\(\/\/\)[^/].*/{ 6743a73027baSmrg s//\1/ 6744a73027baSmrg q 6745a73027baSmrg } 6746a73027baSmrg /^X\(\/\/\)$/{ 6747a73027baSmrg s//\1/ 6748a73027baSmrg q 6749a73027baSmrg } 6750a73027baSmrg /^X\(\/\).*/{ 6751a73027baSmrg s//\1/ 6752a73027baSmrg q 6753a73027baSmrg } 6754a73027baSmrg s/.*/./; q'` 6755bf4a254eSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6756bf4a254eSmrg # echo "creating $dirpart/$file" 6757bf4a254eSmrg echo '# dummy' > "$dirpart/$file" 6758a73027baSmrg done 6759a73027baSmrg done 6760bf4a254eSmrg} 6761a73027baSmrg ;; 6762a73027baSmrg 6763a73027baSmrg esac 6764a73027baSmrgdone # for ac_tag 6765a73027baSmrg 6766a73027baSmrg 6767bf4a254eSmrgas_fn_exit 0 6768a73027baSmrg_ACEOF 6769a73027baSmrgac_clean_files=$ac_clean_files_save 6770a73027baSmrg 6771bf4a254eSmrgtest $ac_write_fail = 0 || 677229004570Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6773bf4a254eSmrg 6774a73027baSmrg 6775a73027baSmrg# configure is writing to config.log, and then calls config.status. 6776a73027baSmrg# config.status does its own redirection, appending to config.log. 6777a73027baSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 6778a73027baSmrg# by configure, so config.status won't be able to write to it; its 6779a73027baSmrg# output is simply discarded. So we exec the FD to /dev/null, 6780a73027baSmrg# effectively closing config.log, so it can be properly (re)opened and 6781a73027baSmrg# appended to by config.status. When coming back to configure, we 6782a73027baSmrg# need to make the FD available again. 6783a73027baSmrgif test "$no_create" != yes; then 6784a73027baSmrg ac_cs_success=: 6785a73027baSmrg ac_config_status_args= 6786a73027baSmrg test "$silent" = yes && 6787a73027baSmrg ac_config_status_args="$ac_config_status_args --quiet" 6788a73027baSmrg exec 5>/dev/null 6789a73027baSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6790a73027baSmrg exec 5>>config.log 6791a73027baSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6792a73027baSmrg # would make configure fail if this is the last instruction. 679329004570Smrg $ac_cs_success || as_fn_exit 1 6794bf4a254eSmrgfi 6795bf4a254eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6796bf4a254eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6797bf4a254eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6798a73027baSmrgfi 6799a73027baSmrg 6800