configure revision 7dff02fe
1a850946eSmrg#! /bin/sh 2a850946eSmrg# Guess values for system-dependent variables and create Makefiles. 37dff02feSmrg# Generated by GNU Autoconf 2.65 for xlsclients 1.1.0. 4a850946eSmrg# 5a850946eSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6a850946eSmrg# 77dff02feSmrg# 870f7c90cSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 97dff02feSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 107dff02feSmrg# Inc. 117dff02feSmrg# 127dff02feSmrg# 13a850946eSmrg# This configure script is free software; the Free Software Foundation 14a850946eSmrg# gives unlimited permission to copy, distribute and modify it. 157dff02feSmrg## -------------------- ## 167dff02feSmrg## M4sh Initialization. ## 177dff02feSmrg## -------------------- ## 18a850946eSmrg 1970f7c90cSmrg# Be more Bourne compatible 2070f7c90cSmrgDUALCASE=1; export DUALCASE # for MKS sh 217dff02feSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22a850946eSmrg emulate sh 23a850946eSmrg NULLCMD=: 2470f7c90cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25a850946eSmrg # is contrary to our usage. Disable this feature. 26a850946eSmrg alias -g '${1+"$@"}'='"$@"' 2770f7c90cSmrg setopt NO_GLOB_SUBST 2870f7c90cSmrgelse 297dff02feSmrg case `(set -o) 2>/dev/null` in #( 307dff02feSmrg *posix*) : 317dff02feSmrg set -o posix ;; #( 327dff02feSmrg *) : 337dff02feSmrg ;; 3470f7c90cSmrgesac 3570f7c90cSmrgfi 3670f7c90cSmrg 3770f7c90cSmrg 3870f7c90cSmrgas_nl=' 3970f7c90cSmrg' 4070f7c90cSmrgexport as_nl 4170f7c90cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4270f7c90cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4370f7c90cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4470f7c90cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 457dff02feSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 467dff02feSmrg# but without wasting forks for bash or zsh. 477dff02feSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 487dff02feSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 497dff02feSmrg as_echo='print -r --' 507dff02feSmrg as_echo_n='print -rn --' 517dff02feSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5270f7c90cSmrg as_echo='printf %s\n' 5370f7c90cSmrg as_echo_n='printf %s' 5470f7c90cSmrgelse 5570f7c90cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5670f7c90cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5770f7c90cSmrg as_echo_n='/usr/ucb/echo -n' 5870f7c90cSmrg else 5970f7c90cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6070f7c90cSmrg as_echo_n_body='eval 6170f7c90cSmrg arg=$1; 627dff02feSmrg case $arg in #( 6370f7c90cSmrg *"$as_nl"*) 6470f7c90cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6570f7c90cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6670f7c90cSmrg esac; 6770f7c90cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6870f7c90cSmrg ' 6970f7c90cSmrg export as_echo_n_body 7070f7c90cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 7170f7c90cSmrg fi 7270f7c90cSmrg export as_echo_body 7370f7c90cSmrg as_echo='sh -c $as_echo_body as_echo' 7470f7c90cSmrgfi 7570f7c90cSmrg 7670f7c90cSmrg# The user is always right. 7770f7c90cSmrgif test "${PATH_SEPARATOR+set}" != set; then 7870f7c90cSmrg PATH_SEPARATOR=: 7970f7c90cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8070f7c90cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8170f7c90cSmrg PATH_SEPARATOR=';' 8270f7c90cSmrg } 83a850946eSmrgfi 84a850946eSmrg 85a850946eSmrg 8670f7c90cSmrg# IFS 8770f7c90cSmrg# We need space, tab and new line, in precisely that order. Quoting is 8870f7c90cSmrg# there to prevent editors from complaining about space-tab. 8970f7c90cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9070f7c90cSmrg# splitting by setting IFS to empty value.) 9170f7c90cSmrgIFS=" "" $as_nl" 9270f7c90cSmrg 9370f7c90cSmrg# Find who we are. Look in the path if we contain no directory separator. 947dff02feSmrgcase $0 in #(( 9570f7c90cSmrg *[\\/]* ) as_myself=$0 ;; 9670f7c90cSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9770f7c90cSmrgfor as_dir in $PATH 9870f7c90cSmrgdo 9970f7c90cSmrg IFS=$as_save_IFS 10070f7c90cSmrg test -z "$as_dir" && as_dir=. 1017dff02feSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1027dff02feSmrg done 10370f7c90cSmrgIFS=$as_save_IFS 10470f7c90cSmrg 10570f7c90cSmrg ;; 10670f7c90cSmrgesac 10770f7c90cSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10870f7c90cSmrg# in which case we are not to be found in the path. 10970f7c90cSmrgif test "x$as_myself" = x; then 11070f7c90cSmrg as_myself=$0 11170f7c90cSmrgfi 11270f7c90cSmrgif test ! -f "$as_myself"; then 11370f7c90cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1147dff02feSmrg exit 1 11570f7c90cSmrgfi 11670f7c90cSmrg 1177dff02feSmrg# Unset variables that we do not need and which cause bugs (e.g. in 1187dff02feSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1197dff02feSmrg# suppresses any "Segmentation fault" message there. '((' could 1207dff02feSmrg# trigger a bug in pdksh 5.2.14. 1217dff02feSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1227dff02feSmrgdo eval test x\${$as_var+set} = xset \ 1237dff02feSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12470f7c90cSmrgdone 125a850946eSmrgPS1='$ ' 126a850946eSmrgPS2='> ' 127a850946eSmrgPS4='+ ' 128a850946eSmrg 129a850946eSmrg# NLS nuisances. 13070f7c90cSmrgLC_ALL=C 13170f7c90cSmrgexport LC_ALL 13270f7c90cSmrgLANGUAGE=C 13370f7c90cSmrgexport LANGUAGE 134a850946eSmrg 13570f7c90cSmrg# CDPATH. 1367dff02feSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137a850946eSmrg 13870f7c90cSmrgif test "x$CONFIG_SHELL" = x; then 1397dff02feSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1407dff02feSmrg emulate sh 1417dff02feSmrg NULLCMD=: 1427dff02feSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1437dff02feSmrg # is contrary to our usage. Disable this feature. 1447dff02feSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1457dff02feSmrg setopt NO_GLOB_SUBST 14670f7c90cSmrgelse 1477dff02feSmrg case \`(set -o) 2>/dev/null\` in #( 1487dff02feSmrg *posix*) : 1497dff02feSmrg set -o posix ;; #( 1507dff02feSmrg *) : 1517dff02feSmrg ;; 1527dff02feSmrgesac 153a850946eSmrgfi 1547dff02feSmrg" 1557dff02feSmrg as_required="as_fn_return () { (exit \$1); } 1567dff02feSmrgas_fn_success () { as_fn_return 0; } 1577dff02feSmrgas_fn_failure () { as_fn_return 1; } 1587dff02feSmrgas_fn_ret_success () { return 0; } 1597dff02feSmrgas_fn_ret_failure () { return 1; } 160a850946eSmrg 16170f7c90cSmrgexitcode=0 1627dff02feSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1637dff02feSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1647dff02feSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1657dff02feSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1667dff02feSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1677dff02feSmrg 1687dff02feSmrgelse 1697dff02feSmrg exitcode=1; echo positional parameters were not saved. 1707dff02feSmrgfi 1717dff02feSmrgtest x\$exitcode = x0 || exit 1" 1727dff02feSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1737dff02feSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1747dff02feSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1757dff02feSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1767dff02feSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1777dff02feSmrg if (eval "$as_required") 2>/dev/null; then : 1787dff02feSmrg as_have_required=yes 17970f7c90cSmrgelse 1807dff02feSmrg as_have_required=no 18170f7c90cSmrgfi 1827dff02feSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 18370f7c90cSmrg 18470f7c90cSmrgelse 1857dff02feSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867dff02feSmrgas_found=false 187a850946eSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188a850946eSmrgdo 189a850946eSmrg IFS=$as_save_IFS 190a850946eSmrg test -z "$as_dir" && as_dir=. 1917dff02feSmrg as_found=: 1927dff02feSmrg case $as_dir in #( 193a850946eSmrg /*) 19470f7c90cSmrg for as_base in sh bash ksh sh5; do 1957dff02feSmrg # Try only shells that exist, to save several forks. 1967dff02feSmrg as_shell=$as_dir/$as_base 1977dff02feSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 1987dff02feSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 1997dff02feSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2007dff02feSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2017dff02feSmrg break 2 2027dff02feSmrgfi 2037dff02feSmrgfi 20470f7c90cSmrg done;; 20570f7c90cSmrg esac 2067dff02feSmrg as_found=false 20770f7c90cSmrgdone 2087dff02feSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2097dff02feSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2107dff02feSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2117dff02feSmrgfi; } 21270f7c90cSmrgIFS=$as_save_IFS 21370f7c90cSmrg 21470f7c90cSmrg 2157dff02feSmrg if test "x$CONFIG_SHELL" != x; then : 2167dff02feSmrg # We cannot yet assume a decent shell, so we have to provide a 2177dff02feSmrg # neutralization value for shells without unset; and this also 2187dff02feSmrg # works around shells that cannot unset nonexistent variables. 2197dff02feSmrg BASH_ENV=/dev/null 2207dff02feSmrg ENV=/dev/null 2217dff02feSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 22270f7c90cSmrg export CONFIG_SHELL 22370f7c90cSmrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 22470f7c90cSmrgfi 22570f7c90cSmrg 2267dff02feSmrg if test x$as_have_required = xno; then : 2277dff02feSmrg $as_echo "$0: This script requires a shell more modern than all" 2287dff02feSmrg $as_echo "$0: the shells that I found on your system." 2297dff02feSmrg if test x${ZSH_VERSION+set} = xset ; then 2307dff02feSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2317dff02feSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2327dff02feSmrg else 2337dff02feSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2347dff02feSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2357dff02feSmrg$0: about your system, including any error possibly output 2367dff02feSmrg$0: before this message. Then install a modern shell, or 2377dff02feSmrg$0: manually run the script under such a shell if you do 2387dff02feSmrg$0: have one." 2397dff02feSmrg fi 2407dff02feSmrg exit 1 24170f7c90cSmrgfi 24270f7c90cSmrgfi 24370f7c90cSmrgfi 2447dff02feSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2457dff02feSmrgexport SHELL 2467dff02feSmrg# Unset more variables known to interfere with behavior of common tools. 2477dff02feSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2487dff02feSmrgunset CLICOLOR_FORCE GREP_OPTIONS 24970f7c90cSmrg 2507dff02feSmrg## --------------------- ## 2517dff02feSmrg## M4sh Shell Functions. ## 2527dff02feSmrg## --------------------- ## 2537dff02feSmrg# as_fn_unset VAR 2547dff02feSmrg# --------------- 2557dff02feSmrg# Portably unset VAR. 2567dff02feSmrgas_fn_unset () 2577dff02feSmrg{ 2587dff02feSmrg { eval $1=; unset $1;} 2597dff02feSmrg} 2607dff02feSmrgas_unset=as_fn_unset 26170f7c90cSmrg 2627dff02feSmrg# as_fn_set_status STATUS 2637dff02feSmrg# ----------------------- 2647dff02feSmrg# Set $? to STATUS, without forking. 2657dff02feSmrgas_fn_set_status () 2667dff02feSmrg{ 2677dff02feSmrg return $1 2687dff02feSmrg} # as_fn_set_status 26970f7c90cSmrg 2707dff02feSmrg# as_fn_exit STATUS 2717dff02feSmrg# ----------------- 2727dff02feSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2737dff02feSmrgas_fn_exit () 2747dff02feSmrg{ 2757dff02feSmrg set +e 2767dff02feSmrg as_fn_set_status $1 2777dff02feSmrg exit $1 2787dff02feSmrg} # as_fn_exit 2797dff02feSmrg 2807dff02feSmrg# as_fn_mkdir_p 2817dff02feSmrg# ------------- 2827dff02feSmrg# Create "$as_dir" as a directory, including parents if necessary. 2837dff02feSmrgas_fn_mkdir_p () 2847dff02feSmrg{ 28570f7c90cSmrg 2867dff02feSmrg case $as_dir in #( 2877dff02feSmrg -*) as_dir=./$as_dir;; 2887dff02feSmrg esac 2897dff02feSmrg test -d "$as_dir" || eval $as_mkdir_p || { 2907dff02feSmrg as_dirs= 2917dff02feSmrg while :; do 2927dff02feSmrg case $as_dir in #( 2937dff02feSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 2947dff02feSmrg *) as_qdir=$as_dir;; 2957dff02feSmrg esac 2967dff02feSmrg as_dirs="'$as_qdir' $as_dirs" 2977dff02feSmrg as_dir=`$as_dirname -- "$as_dir" || 2987dff02feSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2997dff02feSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3007dff02feSmrg X"$as_dir" : 'X\(//\)$' \| \ 3017dff02feSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3027dff02feSmrg$as_echo X"$as_dir" | 3037dff02feSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3047dff02feSmrg s//\1/ 3057dff02feSmrg q 3067dff02feSmrg } 3077dff02feSmrg /^X\(\/\/\)[^/].*/{ 3087dff02feSmrg s//\1/ 3097dff02feSmrg q 3107dff02feSmrg } 3117dff02feSmrg /^X\(\/\/\)$/{ 3127dff02feSmrg s//\1/ 3137dff02feSmrg q 3147dff02feSmrg } 3157dff02feSmrg /^X\(\/\).*/{ 3167dff02feSmrg s//\1/ 3177dff02feSmrg q 3187dff02feSmrg } 3197dff02feSmrg s/.*/./; q'` 3207dff02feSmrg test -d "$as_dir" && break 3217dff02feSmrg done 3227dff02feSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3237dff02feSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 3247dff02feSmrg 3257dff02feSmrg 3267dff02feSmrg} # as_fn_mkdir_p 3277dff02feSmrg# as_fn_append VAR VALUE 3287dff02feSmrg# ---------------------- 3297dff02feSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3307dff02feSmrg# advantage of any shell optimizations that allow amortized linear growth over 3317dff02feSmrg# repeated appends, instead of the typical quadratic growth present in naive 3327dff02feSmrg# implementations. 3337dff02feSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3347dff02feSmrg eval 'as_fn_append () 3357dff02feSmrg { 3367dff02feSmrg eval $1+=\$2 3377dff02feSmrg }' 33870f7c90cSmrgelse 3397dff02feSmrg as_fn_append () 3407dff02feSmrg { 3417dff02feSmrg eval $1=\$$1\$2 3427dff02feSmrg } 3437dff02feSmrgfi # as_fn_append 3447dff02feSmrg 3457dff02feSmrg# as_fn_arith ARG... 3467dff02feSmrg# ------------------ 3477dff02feSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3487dff02feSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3497dff02feSmrg# must be portable across $(()) and expr. 3507dff02feSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3517dff02feSmrg eval 'as_fn_arith () 3527dff02feSmrg { 3537dff02feSmrg as_val=$(( $* )) 3547dff02feSmrg }' 3557dff02feSmrgelse 3567dff02feSmrg as_fn_arith () 3577dff02feSmrg { 3587dff02feSmrg as_val=`expr "$@" || test $? -eq 1` 3597dff02feSmrg } 3607dff02feSmrgfi # as_fn_arith 36170f7c90cSmrg 36270f7c90cSmrg 3637dff02feSmrg# as_fn_error ERROR [LINENO LOG_FD] 3647dff02feSmrg# --------------------------------- 3657dff02feSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3667dff02feSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3677dff02feSmrg# script with status $?, using 1 if that was 0. 3687dff02feSmrgas_fn_error () 3697dff02feSmrg{ 3707dff02feSmrg as_status=$?; test $as_status -eq 0 && as_status=1 3717dff02feSmrg if test "$3"; then 3727dff02feSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3737dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 3747dff02feSmrg fi 3757dff02feSmrg $as_echo "$as_me: error: $1" >&2 3767dff02feSmrg as_fn_exit $as_status 3777dff02feSmrg} # as_fn_error 3787dff02feSmrg 3797dff02feSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 3807dff02feSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3817dff02feSmrg as_expr=expr 38270f7c90cSmrgelse 3837dff02feSmrg as_expr=false 38470f7c90cSmrgfi 38570f7c90cSmrg 3867dff02feSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3877dff02feSmrg as_basename=basename 3887dff02feSmrgelse 3897dff02feSmrg as_basename=false 39070f7c90cSmrgfi 39170f7c90cSmrg 3927dff02feSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3937dff02feSmrg as_dirname=dirname 39470f7c90cSmrgelse 3957dff02feSmrg as_dirname=false 39670f7c90cSmrgfi 39770f7c90cSmrg 3987dff02feSmrgas_me=`$as_basename -- "$0" || 3997dff02feSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4007dff02feSmrg X"$0" : 'X\(//\)$' \| \ 4017dff02feSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4027dff02feSmrg$as_echo X/"$0" | 4037dff02feSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4047dff02feSmrg s//\1/ 4057dff02feSmrg q 4067dff02feSmrg } 4077dff02feSmrg /^X\/\(\/\/\)$/{ 4087dff02feSmrg s//\1/ 4097dff02feSmrg q 4107dff02feSmrg } 4117dff02feSmrg /^X\/\(\/\).*/{ 4127dff02feSmrg s//\1/ 4137dff02feSmrg q 4147dff02feSmrg } 4157dff02feSmrg s/.*/./; q'` 41670f7c90cSmrg 4177dff02feSmrg# Avoid depending upon Character Ranges. 4187dff02feSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4197dff02feSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4207dff02feSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4217dff02feSmrgas_cr_digits='0123456789' 4227dff02feSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 42370f7c90cSmrg 424a850946eSmrg 4257dff02feSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4267dff02feSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4277dff02feSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4287dff02feSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4297dff02feSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 43070f7c90cSmrg sed -n ' 43170f7c90cSmrg p 43270f7c90cSmrg /[$]LINENO/= 43370f7c90cSmrg ' <$as_myself | 434a850946eSmrg sed ' 43570f7c90cSmrg s/[$]LINENO.*/&-/ 43670f7c90cSmrg t lineno 43770f7c90cSmrg b 43870f7c90cSmrg :lineno 439a850946eSmrg N 44070f7c90cSmrg :loop 44170f7c90cSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442a850946eSmrg t loop 44370f7c90cSmrg s/-\n.*// 444a850946eSmrg ' >$as_me.lineno && 44570f7c90cSmrg chmod +x "$as_me.lineno" || 4467dff02feSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447a850946eSmrg 448a850946eSmrg # Don't try to exec as it changes $[0], causing all sort of problems 449a850946eSmrg # (the dirname of $[0] is not the place where we might find the 45070f7c90cSmrg # original and so on. Autoconf is especially sensitive to this). 45170f7c90cSmrg . "./$as_me.lineno" 452a850946eSmrg # Exit status is that of the last command. 453a850946eSmrg exit 454a850946eSmrg} 455a850946eSmrg 45670f7c90cSmrgECHO_C= ECHO_N= ECHO_T= 4577dff02feSmrgcase `echo -n x` in #((((( 45870f7c90cSmrg-n*) 4597dff02feSmrg case `echo 'xy\c'` in 46070f7c90cSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4617dff02feSmrg xy) ECHO_C='\c';; 4627dff02feSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4637dff02feSmrg ECHO_T=' ';; 46470f7c90cSmrg esac;; 46570f7c90cSmrg*) 46670f7c90cSmrg ECHO_N='-n';; 46770f7c90cSmrgesac 468a850946eSmrg 469a850946eSmrgrm -f conf$$ conf$$.exe conf$$.file 47070f7c90cSmrgif test -d conf$$.dir; then 47170f7c90cSmrg rm -f conf$$.dir/conf$$.file 47270f7c90cSmrgelse 47370f7c90cSmrg rm -f conf$$.dir 47470f7c90cSmrg mkdir conf$$.dir 2>/dev/null 47570f7c90cSmrgfi 47670f7c90cSmrgif (echo >conf$$.file) 2>/dev/null; then 47770f7c90cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 478a850946eSmrg as_ln_s='ln -s' 47970f7c90cSmrg # ... but there are two gotchas: 48070f7c90cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 48170f7c90cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 48270f7c90cSmrg # In both cases, we have to default to `cp -p'. 48370f7c90cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 48470f7c90cSmrg as_ln_s='cp -p' 48570f7c90cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 48670f7c90cSmrg as_ln_s=ln 48770f7c90cSmrg else 48870f7c90cSmrg as_ln_s='cp -p' 489a850946eSmrg fi 490a850946eSmrgelse 491a850946eSmrg as_ln_s='cp -p' 492a850946eSmrgfi 49370f7c90cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 49470f7c90cSmrgrmdir conf$$.dir 2>/dev/null 495a850946eSmrg 496a850946eSmrgif mkdir -p . 2>/dev/null; then 4977dff02feSmrg as_mkdir_p='mkdir -p "$as_dir"' 498a850946eSmrgelse 499a850946eSmrg test -d ./-p && rmdir ./-p 500a850946eSmrg as_mkdir_p=false 501a850946eSmrgfi 502a850946eSmrg 50370f7c90cSmrgif test -x / >/dev/null 2>&1; then 50470f7c90cSmrg as_test_x='test -x' 50570f7c90cSmrgelse 50670f7c90cSmrg if ls -dL / >/dev/null 2>&1; then 50770f7c90cSmrg as_ls_L_option=L 50870f7c90cSmrg else 50970f7c90cSmrg as_ls_L_option= 51070f7c90cSmrg fi 51170f7c90cSmrg as_test_x=' 51270f7c90cSmrg eval sh -c '\'' 51370f7c90cSmrg if test -d "$1"; then 51470f7c90cSmrg test -d "$1/."; 51570f7c90cSmrg else 5167dff02feSmrg case $1 in #( 51770f7c90cSmrg -*)set "./$1";; 51870f7c90cSmrg esac; 5197dff02feSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 52070f7c90cSmrg ???[sx]*):;;*)false;;esac;fi 52170f7c90cSmrg '\'' sh 52270f7c90cSmrg ' 52370f7c90cSmrgfi 52470f7c90cSmrgas_executable_p=$as_test_x 525a850946eSmrg 526a850946eSmrg# Sed expression to map a string onto a valid CPP name. 527a850946eSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528a850946eSmrg 529a850946eSmrg# Sed expression to map a string onto a valid variable name. 530a850946eSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531a850946eSmrg 532a850946eSmrg 5337dff02feSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5347dff02feSmrgexec 6>&1 535a850946eSmrg 536a850946eSmrg# Name of the host. 537a850946eSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 538a850946eSmrg# so uname gets run too. 539a850946eSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 540a850946eSmrg 541a850946eSmrg# 542a850946eSmrg# Initializations. 543a850946eSmrg# 544a850946eSmrgac_default_prefix=/usr/local 54570f7c90cSmrgac_clean_files= 546a850946eSmrgac_config_libobj_dir=. 54770f7c90cSmrgLIBOBJS= 548a850946eSmrgcross_compiling=no 549a850946eSmrgsubdirs= 550a850946eSmrgMFLAGS= 551a850946eSmrgMAKEFLAGS= 552a850946eSmrg 553a850946eSmrg# Identity of this package. 554a850946eSmrgPACKAGE_NAME='xlsclients' 555a850946eSmrgPACKAGE_TARNAME='xlsclients' 5567dff02feSmrgPACKAGE_VERSION='1.1.0' 5577dff02feSmrgPACKAGE_STRING='xlsclients 1.1.0' 558a850946eSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5597dff02feSmrgPACKAGE_URL='' 560a850946eSmrg 56170f7c90cSmrg# Factoring default headers for most tests. 56270f7c90cSmrgac_includes_default="\ 56370f7c90cSmrg#include <stdio.h> 56470f7c90cSmrg#ifdef HAVE_SYS_TYPES_H 56570f7c90cSmrg# include <sys/types.h> 56670f7c90cSmrg#endif 56770f7c90cSmrg#ifdef HAVE_SYS_STAT_H 56870f7c90cSmrg# include <sys/stat.h> 56970f7c90cSmrg#endif 57070f7c90cSmrg#ifdef STDC_HEADERS 57170f7c90cSmrg# include <stdlib.h> 57270f7c90cSmrg# include <stddef.h> 57370f7c90cSmrg#else 57470f7c90cSmrg# ifdef HAVE_STDLIB_H 57570f7c90cSmrg# include <stdlib.h> 57670f7c90cSmrg# endif 57770f7c90cSmrg#endif 57870f7c90cSmrg#ifdef HAVE_STRING_H 57970f7c90cSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 58070f7c90cSmrg# include <memory.h> 58170f7c90cSmrg# endif 58270f7c90cSmrg# include <string.h> 58370f7c90cSmrg#endif 58470f7c90cSmrg#ifdef HAVE_STRINGS_H 58570f7c90cSmrg# include <strings.h> 58670f7c90cSmrg#endif 58770f7c90cSmrg#ifdef HAVE_INTTYPES_H 58870f7c90cSmrg# include <inttypes.h> 58970f7c90cSmrg#endif 59070f7c90cSmrg#ifdef HAVE_STDINT_H 59170f7c90cSmrg# include <stdint.h> 59270f7c90cSmrg#endif 59370f7c90cSmrg#ifdef HAVE_UNISTD_H 59470f7c90cSmrg# include <unistd.h> 59570f7c90cSmrg#endif" 59670f7c90cSmrg 59770f7c90cSmrgac_subst_vars='am__EXEEXT_FALSE 59870f7c90cSmrgam__EXEEXT_TRUE 59970f7c90cSmrgLTLIBOBJS 60070f7c90cSmrgXLSCLIENTS_LIBS 60170f7c90cSmrgXLSCLIENTS_CFLAGS 6027dff02feSmrgAM_BACKSLASH 6037dff02feSmrgAM_DEFAULT_VERBOSITY 6047dff02feSmrgMAN_SUBSTS 6057dff02feSmrgXORG_MAN_PAGE 60670f7c90cSmrgADMIN_MAN_DIR 60770f7c90cSmrgDRIVER_MAN_DIR 60870f7c90cSmrgMISC_MAN_DIR 60970f7c90cSmrgFILE_MAN_DIR 61070f7c90cSmrgLIB_MAN_DIR 61170f7c90cSmrgAPP_MAN_DIR 61270f7c90cSmrgADMIN_MAN_SUFFIX 61370f7c90cSmrgDRIVER_MAN_SUFFIX 61470f7c90cSmrgMISC_MAN_SUFFIX 61570f7c90cSmrgFILE_MAN_SUFFIX 61670f7c90cSmrgLIB_MAN_SUFFIX 61770f7c90cSmrgAPP_MAN_SUFFIX 61870f7c90cSmrghost_os 61970f7c90cSmrghost_vendor 62070f7c90cSmrghost_cpu 62170f7c90cSmrghost 62270f7c90cSmrgbuild_os 62370f7c90cSmrgbuild_vendor 62470f7c90cSmrgbuild_cpu 62570f7c90cSmrgbuild 6267dff02feSmrgINSTALL_CMD 6277dff02feSmrgPKG_CONFIG 62870f7c90cSmrgCHANGELOG_CMD 62970f7c90cSmrgCWARNFLAGS 6307dff02feSmrgLIBOBJS 63170f7c90cSmrgEGREP 63270f7c90cSmrgGREP 63370f7c90cSmrgCPP 63470f7c90cSmrgam__fastdepCC_FALSE 63570f7c90cSmrgam__fastdepCC_TRUE 63670f7c90cSmrgCCDEPMODE 63770f7c90cSmrgAMDEPBACKSLASH 63870f7c90cSmrgAMDEP_FALSE 63970f7c90cSmrgAMDEP_TRUE 64070f7c90cSmrgam__quote 64170f7c90cSmrgam__include 64270f7c90cSmrgDEPDIR 64370f7c90cSmrgOBJEXT 64470f7c90cSmrgEXEEXT 64570f7c90cSmrgac_ct_CC 64670f7c90cSmrgCPPFLAGS 64770f7c90cSmrgLDFLAGS 64870f7c90cSmrgCFLAGS 64970f7c90cSmrgCC 65070f7c90cSmrgMAINT 65170f7c90cSmrgMAINTAINER_MODE_FALSE 65270f7c90cSmrgMAINTAINER_MODE_TRUE 65370f7c90cSmrgam__untar 65470f7c90cSmrgam__tar 65570f7c90cSmrgAMTAR 65670f7c90cSmrgam__leading_dot 65770f7c90cSmrgSET_MAKE 65870f7c90cSmrgAWK 65970f7c90cSmrgmkdir_p 66070f7c90cSmrgMKDIR_P 66170f7c90cSmrgINSTALL_STRIP_PROGRAM 66270f7c90cSmrgSTRIP 66370f7c90cSmrginstall_sh 66470f7c90cSmrgMAKEINFO 66570f7c90cSmrgAUTOHEADER 66670f7c90cSmrgAUTOMAKE 66770f7c90cSmrgAUTOCONF 66870f7c90cSmrgACLOCAL 66970f7c90cSmrgVERSION 67070f7c90cSmrgPACKAGE 67170f7c90cSmrgCYGPATH_W 67270f7c90cSmrgam__isrc 67370f7c90cSmrgINSTALL_DATA 67470f7c90cSmrgINSTALL_SCRIPT 67570f7c90cSmrgINSTALL_PROGRAM 67670f7c90cSmrgtarget_alias 67770f7c90cSmrghost_alias 67870f7c90cSmrgbuild_alias 67970f7c90cSmrgLIBS 68070f7c90cSmrgECHO_T 68170f7c90cSmrgECHO_N 68270f7c90cSmrgECHO_C 68370f7c90cSmrgDEFS 68470f7c90cSmrgmandir 68570f7c90cSmrglocaledir 68670f7c90cSmrglibdir 68770f7c90cSmrgpsdir 68870f7c90cSmrgpdfdir 68970f7c90cSmrgdvidir 69070f7c90cSmrghtmldir 69170f7c90cSmrginfodir 69270f7c90cSmrgdocdir 69370f7c90cSmrgoldincludedir 69470f7c90cSmrgincludedir 69570f7c90cSmrglocalstatedir 69670f7c90cSmrgsharedstatedir 69770f7c90cSmrgsysconfdir 69870f7c90cSmrgdatadir 69970f7c90cSmrgdatarootdir 70070f7c90cSmrglibexecdir 70170f7c90cSmrgsbindir 70270f7c90cSmrgbindir 70370f7c90cSmrgprogram_transform_name 70470f7c90cSmrgprefix 70570f7c90cSmrgexec_prefix 7067dff02feSmrgPACKAGE_URL 70770f7c90cSmrgPACKAGE_BUGREPORT 70870f7c90cSmrgPACKAGE_STRING 70970f7c90cSmrgPACKAGE_VERSION 71070f7c90cSmrgPACKAGE_TARNAME 71170f7c90cSmrgPACKAGE_NAME 71270f7c90cSmrgPATH_SEPARATOR 71370f7c90cSmrgSHELL' 714a850946eSmrgac_subst_files='' 71570f7c90cSmrgac_user_opts=' 71670f7c90cSmrgenable_option_checking 71770f7c90cSmrgenable_maintainer_mode 71870f7c90cSmrgenable_dependency_tracking 71970f7c90cSmrgenable_strict_compilation 72070f7c90cSmrgwith_release_version 7217dff02feSmrgenable_silent_rules 72270f7c90cSmrg' 72370f7c90cSmrg ac_precious_vars='build_alias 72470f7c90cSmrghost_alias 72570f7c90cSmrgtarget_alias 72670f7c90cSmrgCC 72770f7c90cSmrgCFLAGS 72870f7c90cSmrgLDFLAGS 72970f7c90cSmrgLIBS 73070f7c90cSmrgCPPFLAGS 73170f7c90cSmrgCPP 73270f7c90cSmrgPKG_CONFIG 73370f7c90cSmrgXLSCLIENTS_CFLAGS 73470f7c90cSmrgXLSCLIENTS_LIBS' 73570f7c90cSmrg 736a850946eSmrg 737a850946eSmrg# Initialize some variables set by options. 738a850946eSmrgac_init_help= 739a850946eSmrgac_init_version=false 74070f7c90cSmrgac_unrecognized_opts= 74170f7c90cSmrgac_unrecognized_sep= 742a850946eSmrg# The variables have the same names as the options, with 743a850946eSmrg# dashes changed to underlines. 744a850946eSmrgcache_file=/dev/null 745a850946eSmrgexec_prefix=NONE 746a850946eSmrgno_create= 747a850946eSmrgno_recursion= 748a850946eSmrgprefix=NONE 749a850946eSmrgprogram_prefix=NONE 750a850946eSmrgprogram_suffix=NONE 751a850946eSmrgprogram_transform_name=s,x,x, 752a850946eSmrgsilent= 753a850946eSmrgsite= 754a850946eSmrgsrcdir= 755a850946eSmrgverbose= 756a850946eSmrgx_includes=NONE 757a850946eSmrgx_libraries=NONE 758a850946eSmrg 759a850946eSmrg# Installation directory options. 760a850946eSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 761a850946eSmrg# and all the variables that are supposed to be based on exec_prefix 762a850946eSmrg# by default will actually change. 763a850946eSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 76470f7c90cSmrg# (The list follows the same order as the GNU Coding Standards.) 765a850946eSmrgbindir='${exec_prefix}/bin' 766a850946eSmrgsbindir='${exec_prefix}/sbin' 767a850946eSmrglibexecdir='${exec_prefix}/libexec' 76870f7c90cSmrgdatarootdir='${prefix}/share' 76970f7c90cSmrgdatadir='${datarootdir}' 770a850946eSmrgsysconfdir='${prefix}/etc' 771a850946eSmrgsharedstatedir='${prefix}/com' 772a850946eSmrglocalstatedir='${prefix}/var' 773a850946eSmrgincludedir='${prefix}/include' 774a850946eSmrgoldincludedir='/usr/include' 77570f7c90cSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 77670f7c90cSmrginfodir='${datarootdir}/info' 77770f7c90cSmrghtmldir='${docdir}' 77870f7c90cSmrgdvidir='${docdir}' 77970f7c90cSmrgpdfdir='${docdir}' 78070f7c90cSmrgpsdir='${docdir}' 78170f7c90cSmrglibdir='${exec_prefix}/lib' 78270f7c90cSmrglocaledir='${datarootdir}/locale' 78370f7c90cSmrgmandir='${datarootdir}/man' 784a850946eSmrg 785a850946eSmrgac_prev= 78670f7c90cSmrgac_dashdash= 787a850946eSmrgfor ac_option 788a850946eSmrgdo 789a850946eSmrg # If the previous option needs an argument, assign it. 790a850946eSmrg if test -n "$ac_prev"; then 79170f7c90cSmrg eval $ac_prev=\$ac_option 792a850946eSmrg ac_prev= 793a850946eSmrg continue 794a850946eSmrg fi 795a850946eSmrg 79670f7c90cSmrg case $ac_option in 79770f7c90cSmrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 79870f7c90cSmrg *) ac_optarg=yes ;; 79970f7c90cSmrg esac 800a850946eSmrg 801a850946eSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 802a850946eSmrg 80370f7c90cSmrg case $ac_dashdash$ac_option in 80470f7c90cSmrg --) 80570f7c90cSmrg ac_dashdash=yes ;; 806a850946eSmrg 807a850946eSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 808a850946eSmrg ac_prev=bindir ;; 809a850946eSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 810a850946eSmrg bindir=$ac_optarg ;; 811a850946eSmrg 812a850946eSmrg -build | --build | --buil | --bui | --bu) 813a850946eSmrg ac_prev=build_alias ;; 814a850946eSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 815a850946eSmrg build_alias=$ac_optarg ;; 816a850946eSmrg 817a850946eSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 818a850946eSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 819a850946eSmrg ac_prev=cache_file ;; 820a850946eSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 821a850946eSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 822a850946eSmrg cache_file=$ac_optarg ;; 823a850946eSmrg 824a850946eSmrg --config-cache | -C) 825a850946eSmrg cache_file=config.cache ;; 826a850946eSmrg 82770f7c90cSmrg -datadir | --datadir | --datadi | --datad) 828a850946eSmrg ac_prev=datadir ;; 82970f7c90cSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 830a850946eSmrg datadir=$ac_optarg ;; 831a850946eSmrg 83270f7c90cSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 83370f7c90cSmrg | --dataroo | --dataro | --datar) 83470f7c90cSmrg ac_prev=datarootdir ;; 83570f7c90cSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 83670f7c90cSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 83770f7c90cSmrg datarootdir=$ac_optarg ;; 83870f7c90cSmrg 839a850946eSmrg -disable-* | --disable-*) 84070f7c90cSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 841a850946eSmrg # Reject names that are not valid shell variable names. 84270f7c90cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8437dff02feSmrg as_fn_error "invalid feature name: $ac_useropt" 84470f7c90cSmrg ac_useropt_orig=$ac_useropt 84570f7c90cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 84670f7c90cSmrg case $ac_user_opts in 84770f7c90cSmrg *" 84870f7c90cSmrg"enable_$ac_useropt" 84970f7c90cSmrg"*) ;; 85070f7c90cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 85170f7c90cSmrg ac_unrecognized_sep=', ';; 85270f7c90cSmrg esac 85370f7c90cSmrg eval enable_$ac_useropt=no ;; 85470f7c90cSmrg 85570f7c90cSmrg -docdir | --docdir | --docdi | --doc | --do) 85670f7c90cSmrg ac_prev=docdir ;; 85770f7c90cSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 85870f7c90cSmrg docdir=$ac_optarg ;; 85970f7c90cSmrg 86070f7c90cSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 86170f7c90cSmrg ac_prev=dvidir ;; 86270f7c90cSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 86370f7c90cSmrg dvidir=$ac_optarg ;; 864a850946eSmrg 865a850946eSmrg -enable-* | --enable-*) 86670f7c90cSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 867a850946eSmrg # Reject names that are not valid shell variable names. 86870f7c90cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8697dff02feSmrg as_fn_error "invalid feature name: $ac_useropt" 87070f7c90cSmrg ac_useropt_orig=$ac_useropt 87170f7c90cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 87270f7c90cSmrg case $ac_user_opts in 87370f7c90cSmrg *" 87470f7c90cSmrg"enable_$ac_useropt" 87570f7c90cSmrg"*) ;; 87670f7c90cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 87770f7c90cSmrg ac_unrecognized_sep=', ';; 878a850946eSmrg esac 87970f7c90cSmrg eval enable_$ac_useropt=\$ac_optarg ;; 880a850946eSmrg 881a850946eSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 882a850946eSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 883a850946eSmrg | --exec | --exe | --ex) 884a850946eSmrg ac_prev=exec_prefix ;; 885a850946eSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 886a850946eSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 887a850946eSmrg | --exec=* | --exe=* | --ex=*) 888a850946eSmrg exec_prefix=$ac_optarg ;; 889a850946eSmrg 890a850946eSmrg -gas | --gas | --ga | --g) 891a850946eSmrg # Obsolete; use --with-gas. 892a850946eSmrg with_gas=yes ;; 893a850946eSmrg 894a850946eSmrg -help | --help | --hel | --he | -h) 895a850946eSmrg ac_init_help=long ;; 896a850946eSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 897a850946eSmrg ac_init_help=recursive ;; 898a850946eSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 899a850946eSmrg ac_init_help=short ;; 900a850946eSmrg 901a850946eSmrg -host | --host | --hos | --ho) 902a850946eSmrg ac_prev=host_alias ;; 903a850946eSmrg -host=* | --host=* | --hos=* | --ho=*) 904a850946eSmrg host_alias=$ac_optarg ;; 905a850946eSmrg 90670f7c90cSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 90770f7c90cSmrg ac_prev=htmldir ;; 90870f7c90cSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 90970f7c90cSmrg | --ht=*) 91070f7c90cSmrg htmldir=$ac_optarg ;; 91170f7c90cSmrg 912a850946eSmrg -includedir | --includedir | --includedi | --included | --include \ 913a850946eSmrg | --includ | --inclu | --incl | --inc) 914a850946eSmrg ac_prev=includedir ;; 915a850946eSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 916a850946eSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 917a850946eSmrg includedir=$ac_optarg ;; 918a850946eSmrg 919a850946eSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 920a850946eSmrg ac_prev=infodir ;; 921a850946eSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 922a850946eSmrg infodir=$ac_optarg ;; 923a850946eSmrg 924a850946eSmrg -libdir | --libdir | --libdi | --libd) 925a850946eSmrg ac_prev=libdir ;; 926a850946eSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 927a850946eSmrg libdir=$ac_optarg ;; 928a850946eSmrg 929a850946eSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 930a850946eSmrg | --libexe | --libex | --libe) 931a850946eSmrg ac_prev=libexecdir ;; 932a850946eSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 933a850946eSmrg | --libexe=* | --libex=* | --libe=*) 934a850946eSmrg libexecdir=$ac_optarg ;; 935a850946eSmrg 93670f7c90cSmrg -localedir | --localedir | --localedi | --localed | --locale) 93770f7c90cSmrg ac_prev=localedir ;; 93870f7c90cSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 93970f7c90cSmrg localedir=$ac_optarg ;; 94070f7c90cSmrg 941a850946eSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 94270f7c90cSmrg | --localstate | --localstat | --localsta | --localst | --locals) 943a850946eSmrg ac_prev=localstatedir ;; 944a850946eSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 94570f7c90cSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 946a850946eSmrg localstatedir=$ac_optarg ;; 947a850946eSmrg 948a850946eSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 949a850946eSmrg ac_prev=mandir ;; 950a850946eSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 951a850946eSmrg mandir=$ac_optarg ;; 952a850946eSmrg 953a850946eSmrg -nfp | --nfp | --nf) 954a850946eSmrg # Obsolete; use --without-fp. 955a850946eSmrg with_fp=no ;; 956a850946eSmrg 957a850946eSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 958a850946eSmrg | --no-cr | --no-c | -n) 959a850946eSmrg no_create=yes ;; 960a850946eSmrg 961a850946eSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 962a850946eSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 963a850946eSmrg no_recursion=yes ;; 964a850946eSmrg 965a850946eSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 966a850946eSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 967a850946eSmrg | --oldin | --oldi | --old | --ol | --o) 968a850946eSmrg ac_prev=oldincludedir ;; 969a850946eSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 970a850946eSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 971a850946eSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 972a850946eSmrg oldincludedir=$ac_optarg ;; 973a850946eSmrg 974a850946eSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 975a850946eSmrg ac_prev=prefix ;; 976a850946eSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 977a850946eSmrg prefix=$ac_optarg ;; 978a850946eSmrg 979a850946eSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 980a850946eSmrg | --program-pre | --program-pr | --program-p) 981a850946eSmrg ac_prev=program_prefix ;; 982a850946eSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 983a850946eSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 984a850946eSmrg program_prefix=$ac_optarg ;; 985a850946eSmrg 986a850946eSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 987a850946eSmrg | --program-suf | --program-su | --program-s) 988a850946eSmrg ac_prev=program_suffix ;; 989a850946eSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 990a850946eSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 991a850946eSmrg program_suffix=$ac_optarg ;; 992a850946eSmrg 993a850946eSmrg -program-transform-name | --program-transform-name \ 994a850946eSmrg | --program-transform-nam | --program-transform-na \ 995a850946eSmrg | --program-transform-n | --program-transform- \ 996a850946eSmrg | --program-transform | --program-transfor \ 997a850946eSmrg | --program-transfo | --program-transf \ 998a850946eSmrg | --program-trans | --program-tran \ 999a850946eSmrg | --progr-tra | --program-tr | --program-t) 1000a850946eSmrg ac_prev=program_transform_name ;; 1001a850946eSmrg -program-transform-name=* | --program-transform-name=* \ 1002a850946eSmrg | --program-transform-nam=* | --program-transform-na=* \ 1003a850946eSmrg | --program-transform-n=* | --program-transform-=* \ 1004a850946eSmrg | --program-transform=* | --program-transfor=* \ 1005a850946eSmrg | --program-transfo=* | --program-transf=* \ 1006a850946eSmrg | --program-trans=* | --program-tran=* \ 1007a850946eSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1008a850946eSmrg program_transform_name=$ac_optarg ;; 1009a850946eSmrg 101070f7c90cSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 101170f7c90cSmrg ac_prev=pdfdir ;; 101270f7c90cSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 101370f7c90cSmrg pdfdir=$ac_optarg ;; 101470f7c90cSmrg 101570f7c90cSmrg -psdir | --psdir | --psdi | --psd | --ps) 101670f7c90cSmrg ac_prev=psdir ;; 101770f7c90cSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 101870f7c90cSmrg psdir=$ac_optarg ;; 101970f7c90cSmrg 1020a850946eSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1021a850946eSmrg | -silent | --silent | --silen | --sile | --sil) 1022a850946eSmrg silent=yes ;; 1023a850946eSmrg 1024a850946eSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1025a850946eSmrg ac_prev=sbindir ;; 1026a850946eSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1027a850946eSmrg | --sbi=* | --sb=*) 1028a850946eSmrg sbindir=$ac_optarg ;; 1029a850946eSmrg 1030a850946eSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1031a850946eSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1032a850946eSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1033a850946eSmrg | --sha | --sh) 1034a850946eSmrg ac_prev=sharedstatedir ;; 1035a850946eSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1036a850946eSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1037a850946eSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1038a850946eSmrg | --sha=* | --sh=*) 1039a850946eSmrg sharedstatedir=$ac_optarg ;; 1040a850946eSmrg 1041a850946eSmrg -site | --site | --sit) 1042a850946eSmrg ac_prev=site ;; 1043a850946eSmrg -site=* | --site=* | --sit=*) 1044a850946eSmrg site=$ac_optarg ;; 1045a850946eSmrg 1046a850946eSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1047a850946eSmrg ac_prev=srcdir ;; 1048a850946eSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1049a850946eSmrg srcdir=$ac_optarg ;; 1050a850946eSmrg 1051a850946eSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1052a850946eSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1053a850946eSmrg ac_prev=sysconfdir ;; 1054a850946eSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1055a850946eSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1056a850946eSmrg sysconfdir=$ac_optarg ;; 1057a850946eSmrg 1058a850946eSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1059a850946eSmrg ac_prev=target_alias ;; 1060a850946eSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1061a850946eSmrg target_alias=$ac_optarg ;; 1062a850946eSmrg 1063a850946eSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1064a850946eSmrg verbose=yes ;; 1065a850946eSmrg 1066a850946eSmrg -version | --version | --versio | --versi | --vers | -V) 1067a850946eSmrg ac_init_version=: ;; 1068a850946eSmrg 1069a850946eSmrg -with-* | --with-*) 107070f7c90cSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1071a850946eSmrg # Reject names that are not valid shell variable names. 107270f7c90cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10737dff02feSmrg as_fn_error "invalid package name: $ac_useropt" 107470f7c90cSmrg ac_useropt_orig=$ac_useropt 107570f7c90cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 107670f7c90cSmrg case $ac_user_opts in 107770f7c90cSmrg *" 107870f7c90cSmrg"with_$ac_useropt" 107970f7c90cSmrg"*) ;; 108070f7c90cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 108170f7c90cSmrg ac_unrecognized_sep=', ';; 1082a850946eSmrg esac 108370f7c90cSmrg eval with_$ac_useropt=\$ac_optarg ;; 1084a850946eSmrg 1085a850946eSmrg -without-* | --without-*) 108670f7c90cSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1087a850946eSmrg # Reject names that are not valid shell variable names. 108870f7c90cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10897dff02feSmrg as_fn_error "invalid package name: $ac_useropt" 109070f7c90cSmrg ac_useropt_orig=$ac_useropt 109170f7c90cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 109270f7c90cSmrg case $ac_user_opts in 109370f7c90cSmrg *" 109470f7c90cSmrg"with_$ac_useropt" 109570f7c90cSmrg"*) ;; 109670f7c90cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 109770f7c90cSmrg ac_unrecognized_sep=', ';; 109870f7c90cSmrg esac 109970f7c90cSmrg eval with_$ac_useropt=no ;; 1100a850946eSmrg 1101a850946eSmrg --x) 1102a850946eSmrg # Obsolete; use --with-x. 1103a850946eSmrg with_x=yes ;; 1104a850946eSmrg 1105a850946eSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1106a850946eSmrg | --x-incl | --x-inc | --x-in | --x-i) 1107a850946eSmrg ac_prev=x_includes ;; 1108a850946eSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1109a850946eSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1110a850946eSmrg x_includes=$ac_optarg ;; 1111a850946eSmrg 1112a850946eSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1113a850946eSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1114a850946eSmrg ac_prev=x_libraries ;; 1115a850946eSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1116a850946eSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1117a850946eSmrg x_libraries=$ac_optarg ;; 1118a850946eSmrg 11197dff02feSmrg -*) as_fn_error "unrecognized option: \`$ac_option' 11207dff02feSmrgTry \`$0 --help' for more information." 1121a850946eSmrg ;; 1122a850946eSmrg 1123a850946eSmrg *=*) 1124a850946eSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1125a850946eSmrg # Reject names that are not valid shell variable names. 11267dff02feSmrg case $ac_envvar in #( 11277dff02feSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11287dff02feSmrg as_fn_error "invalid variable name: \`$ac_envvar'" ;; 11297dff02feSmrg esac 113070f7c90cSmrg eval $ac_envvar=\$ac_optarg 1131a850946eSmrg export $ac_envvar ;; 1132a850946eSmrg 1133a850946eSmrg *) 1134a850946eSmrg # FIXME: should be removed in autoconf 3.0. 113570f7c90cSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1136a850946eSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 113770f7c90cSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1138a850946eSmrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1139a850946eSmrg ;; 1140a850946eSmrg 1141a850946eSmrg esac 1142a850946eSmrgdone 1143a850946eSmrg 1144a850946eSmrgif test -n "$ac_prev"; then 1145a850946eSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11467dff02feSmrg as_fn_error "missing argument to $ac_option" 1147a850946eSmrgfi 1148a850946eSmrg 114970f7c90cSmrgif test -n "$ac_unrecognized_opts"; then 115070f7c90cSmrg case $enable_option_checking in 115170f7c90cSmrg no) ;; 11527dff02feSmrg fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 115370f7c90cSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1154a850946eSmrg esac 115570f7c90cSmrgfi 1156a850946eSmrg 115770f7c90cSmrg# Check all directory arguments for consistency. 115870f7c90cSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 115970f7c90cSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 116070f7c90cSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 116170f7c90cSmrg libdir localedir mandir 1162a850946eSmrgdo 116370f7c90cSmrg eval ac_val=\$$ac_var 116470f7c90cSmrg # Remove trailing slashes. 1165a850946eSmrg case $ac_val in 116670f7c90cSmrg */ ) 116770f7c90cSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 116870f7c90cSmrg eval $ac_var=\$ac_val;; 116970f7c90cSmrg esac 117070f7c90cSmrg # Be sure to have absolute directory names. 117170f7c90cSmrg case $ac_val in 117270f7c90cSmrg [\\/$]* | ?:[\\/]* ) continue;; 117370f7c90cSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1174a850946eSmrg esac 11757dff02feSmrg as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1176a850946eSmrgdone 1177a850946eSmrg 1178a850946eSmrg# There might be people who depend on the old broken behavior: `$host' 1179a850946eSmrg# used to hold the argument of --host etc. 1180a850946eSmrg# FIXME: To remove some day. 1181a850946eSmrgbuild=$build_alias 1182a850946eSmrghost=$host_alias 1183a850946eSmrgtarget=$target_alias 1184a850946eSmrg 1185a850946eSmrg# FIXME: To remove some day. 1186a850946eSmrgif test "x$host_alias" != x; then 1187a850946eSmrg if test "x$build_alias" = x; then 1188a850946eSmrg cross_compiling=maybe 118970f7c90cSmrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1190a850946eSmrg If a cross compiler is detected then cross compile mode will be used." >&2 1191a850946eSmrg elif test "x$build_alias" != "x$host_alias"; then 1192a850946eSmrg cross_compiling=yes 1193a850946eSmrg fi 1194a850946eSmrgfi 1195a850946eSmrg 1196a850946eSmrgac_tool_prefix= 1197a850946eSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1198a850946eSmrg 1199a850946eSmrgtest "$silent" = yes && exec 6>/dev/null 1200a850946eSmrg 1201a850946eSmrg 120270f7c90cSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 120370f7c90cSmrgac_ls_di=`ls -di .` && 120470f7c90cSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12057dff02feSmrg as_fn_error "working directory cannot be determined" 120670f7c90cSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12077dff02feSmrg as_fn_error "pwd does not report name of working directory" 120870f7c90cSmrg 120970f7c90cSmrg 121070f7c90cSmrg# Find the source files, if location was not specified. 121170f7c90cSmrgif test -z "$srcdir"; then 1212a850946eSmrg ac_srcdir_defaulted=yes 121370f7c90cSmrg # Try the directory containing this script, then the parent directory. 121470f7c90cSmrg ac_confdir=`$as_dirname -- "$as_myself" || 121570f7c90cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121670f7c90cSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 121770f7c90cSmrg X"$as_myself" : 'X\(//\)$' \| \ 121870f7c90cSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 121970f7c90cSmrg$as_echo X"$as_myself" | 122070f7c90cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 122170f7c90cSmrg s//\1/ 122270f7c90cSmrg q 122370f7c90cSmrg } 122470f7c90cSmrg /^X\(\/\/\)[^/].*/{ 122570f7c90cSmrg s//\1/ 122670f7c90cSmrg q 122770f7c90cSmrg } 122870f7c90cSmrg /^X\(\/\/\)$/{ 122970f7c90cSmrg s//\1/ 123070f7c90cSmrg q 123170f7c90cSmrg } 123270f7c90cSmrg /^X\(\/\).*/{ 123370f7c90cSmrg s//\1/ 123470f7c90cSmrg q 123570f7c90cSmrg } 123670f7c90cSmrg s/.*/./; q'` 1237a850946eSmrg srcdir=$ac_confdir 123870f7c90cSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1239a850946eSmrg srcdir=.. 1240a850946eSmrg fi 1241a850946eSmrgelse 1242a850946eSmrg ac_srcdir_defaulted=no 1243a850946eSmrgfi 124470f7c90cSmrgif test ! -r "$srcdir/$ac_unique_file"; then 124570f7c90cSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12467dff02feSmrg as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1247a850946eSmrgfi 124870f7c90cSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 124970f7c90cSmrgac_abs_confdir=`( 12507dff02feSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 125170f7c90cSmrg pwd)` 125270f7c90cSmrg# When building in place, set srcdir=. 125370f7c90cSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 125470f7c90cSmrg srcdir=. 125570f7c90cSmrgfi 125670f7c90cSmrg# Remove unnecessary trailing slashes from srcdir. 125770f7c90cSmrg# Double slashes in file names in object file debugging info 125870f7c90cSmrg# mess up M-x gdb in Emacs. 125970f7c90cSmrgcase $srcdir in 126070f7c90cSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 126170f7c90cSmrgesac 126270f7c90cSmrgfor ac_var in $ac_precious_vars; do 126370f7c90cSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 126470f7c90cSmrg eval ac_env_${ac_var}_value=\$${ac_var} 126570f7c90cSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 126670f7c90cSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 126770f7c90cSmrgdone 1268a850946eSmrg 1269a850946eSmrg# 1270a850946eSmrg# Report the --help message. 1271a850946eSmrg# 1272a850946eSmrgif test "$ac_init_help" = "long"; then 1273a850946eSmrg # Omit some internal or obsolete options to make the list less imposing. 1274a850946eSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1275a850946eSmrg cat <<_ACEOF 12767dff02feSmrg\`configure' configures xlsclients 1.1.0 to adapt to many kinds of systems. 1277a850946eSmrg 1278a850946eSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1279a850946eSmrg 1280a850946eSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1281a850946eSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1282a850946eSmrg 1283a850946eSmrgDefaults for the options are specified in brackets. 1284a850946eSmrg 1285a850946eSmrgConfiguration: 1286a850946eSmrg -h, --help display this help and exit 1287a850946eSmrg --help=short display options specific to this package 1288a850946eSmrg --help=recursive display the short help of all the included packages 1289a850946eSmrg -V, --version display version information and exit 1290a850946eSmrg -q, --quiet, --silent do not print \`checking...' messages 1291a850946eSmrg --cache-file=FILE cache test results in FILE [disabled] 1292a850946eSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1293a850946eSmrg -n, --no-create do not create output files 1294a850946eSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1295a850946eSmrg 1296a850946eSmrgInstallation directories: 1297a850946eSmrg --prefix=PREFIX install architecture-independent files in PREFIX 129870f7c90cSmrg [$ac_default_prefix] 1299a850946eSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 130070f7c90cSmrg [PREFIX] 1301a850946eSmrg 1302a850946eSmrgBy default, \`make install' will install all the files in 1303a850946eSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1304a850946eSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1305a850946eSmrgfor instance \`--prefix=\$HOME'. 1306a850946eSmrg 1307a850946eSmrgFor better control, use the options below. 1308a850946eSmrg 1309a850946eSmrgFine tuning of the installation directories: 131070f7c90cSmrg --bindir=DIR user executables [EPREFIX/bin] 131170f7c90cSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 131270f7c90cSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 131370f7c90cSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 131470f7c90cSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 131570f7c90cSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 131670f7c90cSmrg --libdir=DIR object code libraries [EPREFIX/lib] 131770f7c90cSmrg --includedir=DIR C header files [PREFIX/include] 131870f7c90cSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 131970f7c90cSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 132070f7c90cSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 132170f7c90cSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 132270f7c90cSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 132370f7c90cSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 132470f7c90cSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients] 132570f7c90cSmrg --htmldir=DIR html documentation [DOCDIR] 132670f7c90cSmrg --dvidir=DIR dvi documentation [DOCDIR] 132770f7c90cSmrg --pdfdir=DIR pdf documentation [DOCDIR] 132870f7c90cSmrg --psdir=DIR ps documentation [DOCDIR] 1329a850946eSmrg_ACEOF 1330a850946eSmrg 1331a850946eSmrg cat <<\_ACEOF 1332a850946eSmrg 1333a850946eSmrgProgram names: 1334a850946eSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1335a850946eSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1336a850946eSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1337a850946eSmrg 1338a850946eSmrgSystem types: 1339a850946eSmrg --build=BUILD configure for building on BUILD [guessed] 1340a850946eSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1341a850946eSmrg_ACEOF 1342a850946eSmrgfi 1343a850946eSmrg 1344a850946eSmrgif test -n "$ac_init_help"; then 1345a850946eSmrg case $ac_init_help in 13467dff02feSmrg short | recursive ) echo "Configuration of xlsclients 1.1.0:";; 1347a850946eSmrg esac 1348a850946eSmrg cat <<\_ACEOF 1349a850946eSmrg 1350a850946eSmrgOptional Features: 135170f7c90cSmrg --disable-option-checking ignore unrecognized --enable/--with options 1352a850946eSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1353a850946eSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 135470f7c90cSmrg --enable-maintainer-mode enable make rules and dependencies not useful 135570f7c90cSmrg (and sometimes confusing) to the casual installer 135670f7c90cSmrg --disable-dependency-tracking speeds up one-time build 135770f7c90cSmrg --enable-dependency-tracking do not reject slow dependency extractors 135870f7c90cSmrg --enable-strict-compilation 135970f7c90cSmrg Enable all warnings from compiler and make them 136070f7c90cSmrg errors (default: disabled) 13617dff02feSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 13627dff02feSmrg --disable-silent-rules verbose build output (undo: `make V=0') 1363a850946eSmrg 1364a850946eSmrgOptional Packages: 1365a850946eSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1366a850946eSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1367a850946eSmrg --with-release-version=STRING 1368a850946eSmrg Use release version string in package name 1369a850946eSmrg 1370a850946eSmrgSome influential environment variables: 1371a850946eSmrg CC C compiler command 1372a850946eSmrg CFLAGS C compiler flags 1373a850946eSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1374a850946eSmrg nonstandard directory <lib dir> 137570f7c90cSmrg LIBS libraries to pass to the linker, e.g. -l<library> 13767dff02feSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 137770f7c90cSmrg you have headers in a nonstandard directory <include dir> 137870f7c90cSmrg CPP C preprocessor 1379a850946eSmrg PKG_CONFIG path to pkg-config utility 1380a850946eSmrg XLSCLIENTS_CFLAGS 1381a850946eSmrg C compiler flags for XLSCLIENTS, overriding pkg-config 1382a850946eSmrg XLSCLIENTS_LIBS 1383a850946eSmrg linker flags for XLSCLIENTS, overriding pkg-config 1384a850946eSmrg 1385a850946eSmrgUse these variables to override the choices made by `configure' or to help 1386a850946eSmrgit to find libraries and programs with nonstandard names/locations. 1387a850946eSmrg 1388a850946eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1389a850946eSmrg_ACEOF 139070f7c90cSmrgac_status=$? 1391a850946eSmrgfi 1392a850946eSmrg 1393a850946eSmrgif test "$ac_init_help" = "recursive"; then 1394a850946eSmrg # If there are subdirs, report their specific --help. 1395a850946eSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 139670f7c90cSmrg test -d "$ac_dir" || 139770f7c90cSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 139870f7c90cSmrg continue 1399a850946eSmrg ac_builddir=. 1400a850946eSmrg 140170f7c90cSmrgcase "$ac_dir" in 140270f7c90cSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 140370f7c90cSmrg*) 140470f7c90cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 140570f7c90cSmrg # A ".." for each directory in $ac_dir_suffix. 140670f7c90cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 140770f7c90cSmrg case $ac_top_builddir_sub in 140870f7c90cSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 140970f7c90cSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 141070f7c90cSmrg esac ;; 141170f7c90cSmrgesac 141270f7c90cSmrgac_abs_top_builddir=$ac_pwd 141370f7c90cSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 141470f7c90cSmrg# for backward compatibility: 141570f7c90cSmrgac_top_builddir=$ac_top_build_prefix 1416a850946eSmrg 1417a850946eSmrgcase $srcdir in 141870f7c90cSmrg .) # We are building in place. 1419a850946eSmrg ac_srcdir=. 142070f7c90cSmrg ac_top_srcdir=$ac_top_builddir_sub 142170f7c90cSmrg ac_abs_top_srcdir=$ac_pwd ;; 142270f7c90cSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1423a850946eSmrg ac_srcdir=$srcdir$ac_dir_suffix; 142470f7c90cSmrg ac_top_srcdir=$srcdir 142570f7c90cSmrg ac_abs_top_srcdir=$srcdir ;; 142670f7c90cSmrg *) # Relative name. 142770f7c90cSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 142870f7c90cSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 142970f7c90cSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1430a850946eSmrgesac 143170f7c90cSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 143270f7c90cSmrg 143370f7c90cSmrg cd "$ac_dir" || { ac_status=$?; continue; } 143470f7c90cSmrg # Check for guested configure. 143570f7c90cSmrg if test -f "$ac_srcdir/configure.gnu"; then 143670f7c90cSmrg echo && 143770f7c90cSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 143870f7c90cSmrg elif test -f "$ac_srcdir/configure"; then 143970f7c90cSmrg echo && 144070f7c90cSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1441a850946eSmrg else 144270f7c90cSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 144370f7c90cSmrg fi || ac_status=$? 144470f7c90cSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1445a850946eSmrg done 1446a850946eSmrgfi 1447a850946eSmrg 144870f7c90cSmrgtest -n "$ac_init_help" && exit $ac_status 1449a850946eSmrgif $ac_init_version; then 1450a850946eSmrg cat <<\_ACEOF 14517dff02feSmrgxlsclients configure 1.1.0 14527dff02feSmrggenerated by GNU Autoconf 2.65 1453a850946eSmrg 14547dff02feSmrgCopyright (C) 2009 Free Software Foundation, Inc. 1455a850946eSmrgThis configure script is free software; the Free Software Foundation 1456a850946eSmrggives unlimited permission to copy, distribute and modify it. 1457a850946eSmrg_ACEOF 145870f7c90cSmrg exit 1459a850946eSmrgfi 14607dff02feSmrg 14617dff02feSmrg## ------------------------ ## 14627dff02feSmrg## Autoconf initialization. ## 14637dff02feSmrg## ------------------------ ## 14647dff02feSmrg 14657dff02feSmrg# ac_fn_c_try_compile LINENO 14667dff02feSmrg# -------------------------- 14677dff02feSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 14687dff02feSmrgac_fn_c_try_compile () 14697dff02feSmrg{ 14707dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14717dff02feSmrg rm -f conftest.$ac_objext 14727dff02feSmrg if { { ac_try="$ac_compile" 14737dff02feSmrgcase "(($ac_try" in 14747dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14757dff02feSmrg *) ac_try_echo=$ac_try;; 14767dff02feSmrgesac 14777dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14787dff02feSmrg$as_echo "$ac_try_echo"; } >&5 14797dff02feSmrg (eval "$ac_compile") 2>conftest.err 14807dff02feSmrg ac_status=$? 14817dff02feSmrg if test -s conftest.err; then 14827dff02feSmrg grep -v '^ *+' conftest.err >conftest.er1 14837dff02feSmrg cat conftest.er1 >&5 14847dff02feSmrg mv -f conftest.er1 conftest.err 14857dff02feSmrg fi 14867dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14877dff02feSmrg test $ac_status = 0; } && { 14887dff02feSmrg test -z "$ac_c_werror_flag" || 14897dff02feSmrg test ! -s conftest.err 14907dff02feSmrg } && test -s conftest.$ac_objext; then : 14917dff02feSmrg ac_retval=0 14927dff02feSmrgelse 14937dff02feSmrg $as_echo "$as_me: failed program was:" >&5 14947dff02feSmrgsed 's/^/| /' conftest.$ac_ext >&5 14957dff02feSmrg 14967dff02feSmrg ac_retval=1 14977dff02feSmrgfi 14987dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 14997dff02feSmrg as_fn_set_status $ac_retval 15007dff02feSmrg 15017dff02feSmrg} # ac_fn_c_try_compile 15027dff02feSmrg 15037dff02feSmrg# ac_fn_c_try_cpp LINENO 15047dff02feSmrg# ---------------------- 15057dff02feSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15067dff02feSmrgac_fn_c_try_cpp () 15077dff02feSmrg{ 15087dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15097dff02feSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15107dff02feSmrgcase "(($ac_try" in 15117dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15127dff02feSmrg *) ac_try_echo=$ac_try;; 15137dff02feSmrgesac 15147dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15157dff02feSmrg$as_echo "$ac_try_echo"; } >&5 15167dff02feSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15177dff02feSmrg ac_status=$? 15187dff02feSmrg if test -s conftest.err; then 15197dff02feSmrg grep -v '^ *+' conftest.err >conftest.er1 15207dff02feSmrg cat conftest.er1 >&5 15217dff02feSmrg mv -f conftest.er1 conftest.err 15227dff02feSmrg fi 15237dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15247dff02feSmrg test $ac_status = 0; } >/dev/null && { 15257dff02feSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15267dff02feSmrg test ! -s conftest.err 15277dff02feSmrg }; then : 15287dff02feSmrg ac_retval=0 15297dff02feSmrgelse 15307dff02feSmrg $as_echo "$as_me: failed program was:" >&5 15317dff02feSmrgsed 's/^/| /' conftest.$ac_ext >&5 15327dff02feSmrg 15337dff02feSmrg ac_retval=1 15347dff02feSmrgfi 15357dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 15367dff02feSmrg as_fn_set_status $ac_retval 15377dff02feSmrg 15387dff02feSmrg} # ac_fn_c_try_cpp 15397dff02feSmrg 15407dff02feSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 15417dff02feSmrg# ------------------------------------------------------- 15427dff02feSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 15437dff02feSmrg# the include files in INCLUDES and setting the cache variable VAR 15447dff02feSmrg# accordingly. 15457dff02feSmrgac_fn_c_check_header_mongrel () 15467dff02feSmrg{ 15477dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15487dff02feSmrg if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 15497dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 15507dff02feSmrg$as_echo_n "checking for $2... " >&6; } 15517dff02feSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 15527dff02feSmrg $as_echo_n "(cached) " >&6 15537dff02feSmrgfi 15547dff02feSmrgeval ac_res=\$$3 15557dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15567dff02feSmrg$as_echo "$ac_res" >&6; } 15577dff02feSmrgelse 15587dff02feSmrg # Is the header compilable? 15597dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 15607dff02feSmrg$as_echo_n "checking $2 usability... " >&6; } 15617dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627dff02feSmrg/* end confdefs.h. */ 15637dff02feSmrg$4 15647dff02feSmrg#include <$2> 15657dff02feSmrg_ACEOF 15667dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 15677dff02feSmrg ac_header_compiler=yes 15687dff02feSmrgelse 15697dff02feSmrg ac_header_compiler=no 15707dff02feSmrgfi 15717dff02feSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15727dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 15737dff02feSmrg$as_echo "$ac_header_compiler" >&6; } 15747dff02feSmrg 15757dff02feSmrg# Is the header present? 15767dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 15777dff02feSmrg$as_echo_n "checking $2 presence... " >&6; } 15787dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797dff02feSmrg/* end confdefs.h. */ 15807dff02feSmrg#include <$2> 15817dff02feSmrg_ACEOF 15827dff02feSmrgif ac_fn_c_try_cpp "$LINENO"; then : 15837dff02feSmrg ac_header_preproc=yes 15847dff02feSmrgelse 15857dff02feSmrg ac_header_preproc=no 15867dff02feSmrgfi 15877dff02feSmrgrm -f conftest.err conftest.$ac_ext 15887dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 15897dff02feSmrg$as_echo "$ac_header_preproc" >&6; } 15907dff02feSmrg 15917dff02feSmrg# So? What about this header? 15927dff02feSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 15937dff02feSmrg yes:no: ) 15947dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 15957dff02feSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 15967dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 15977dff02feSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 15987dff02feSmrg ;; 15997dff02feSmrg no:yes:* ) 16007dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 16017dff02feSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 16027dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 16037dff02feSmrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 16047dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 16057dff02feSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 16067dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 16077dff02feSmrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 16087dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 16097dff02feSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 16107dff02feSmrg( cat <<\_ASBOX 16117dff02feSmrg## ---------------------------------------------------------------------- ## 16127dff02feSmrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 16137dff02feSmrg## ---------------------------------------------------------------------- ## 16147dff02feSmrg_ASBOX 16157dff02feSmrg ) | sed "s/^/$as_me: WARNING: /" >&2 16167dff02feSmrg ;; 16177dff02feSmrgesac 16187dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16197dff02feSmrg$as_echo_n "checking for $2... " >&6; } 16207dff02feSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 16217dff02feSmrg $as_echo_n "(cached) " >&6 16227dff02feSmrgelse 16237dff02feSmrg eval "$3=\$ac_header_compiler" 16247dff02feSmrgfi 16257dff02feSmrgeval ac_res=\$$3 16267dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16277dff02feSmrg$as_echo "$ac_res" >&6; } 16287dff02feSmrgfi 16297dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 16307dff02feSmrg 16317dff02feSmrg} # ac_fn_c_check_header_mongrel 16327dff02feSmrg 16337dff02feSmrg# ac_fn_c_try_run LINENO 16347dff02feSmrg# ---------------------- 16357dff02feSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16367dff02feSmrg# that executables *can* be run. 16377dff02feSmrgac_fn_c_try_run () 16387dff02feSmrg{ 16397dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16407dff02feSmrg if { { ac_try="$ac_link" 16417dff02feSmrgcase "(($ac_try" in 16427dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16437dff02feSmrg *) ac_try_echo=$ac_try;; 16447dff02feSmrgesac 16457dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16467dff02feSmrg$as_echo "$ac_try_echo"; } >&5 16477dff02feSmrg (eval "$ac_link") 2>&5 16487dff02feSmrg ac_status=$? 16497dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16507dff02feSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16517dff02feSmrg { { case "(($ac_try" in 16527dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16537dff02feSmrg *) ac_try_echo=$ac_try;; 16547dff02feSmrgesac 16557dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16567dff02feSmrg$as_echo "$ac_try_echo"; } >&5 16577dff02feSmrg (eval "$ac_try") 2>&5 16587dff02feSmrg ac_status=$? 16597dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16607dff02feSmrg test $ac_status = 0; }; }; then : 16617dff02feSmrg ac_retval=0 16627dff02feSmrgelse 16637dff02feSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 16647dff02feSmrg $as_echo "$as_me: failed program was:" >&5 16657dff02feSmrgsed 's/^/| /' conftest.$ac_ext >&5 16667dff02feSmrg 16677dff02feSmrg ac_retval=$ac_status 16687dff02feSmrgfi 16697dff02feSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16707dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 16717dff02feSmrg as_fn_set_status $ac_retval 16727dff02feSmrg 16737dff02feSmrg} # ac_fn_c_try_run 16747dff02feSmrg 16757dff02feSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16767dff02feSmrg# ------------------------------------------------------- 16777dff02feSmrg# Tests whether HEADER exists and can be compiled using the include files in 16787dff02feSmrg# INCLUDES, setting the cache variable VAR accordingly. 16797dff02feSmrgac_fn_c_check_header_compile () 16807dff02feSmrg{ 16817dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16827dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16837dff02feSmrg$as_echo_n "checking for $2... " >&6; } 16847dff02feSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 16857dff02feSmrg $as_echo_n "(cached) " >&6 16867dff02feSmrgelse 16877dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887dff02feSmrg/* end confdefs.h. */ 16897dff02feSmrg$4 16907dff02feSmrg#include <$2> 16917dff02feSmrg_ACEOF 16927dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 16937dff02feSmrg eval "$3=yes" 16947dff02feSmrgelse 16957dff02feSmrg eval "$3=no" 16967dff02feSmrgfi 16977dff02feSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16987dff02feSmrgfi 16997dff02feSmrgeval ac_res=\$$3 17007dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17017dff02feSmrg$as_echo "$ac_res" >&6; } 17027dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 17037dff02feSmrg 17047dff02feSmrg} # ac_fn_c_check_header_compile 17057dff02feSmrg 17067dff02feSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR 17077dff02feSmrg# ------------------------------------ 17087dff02feSmrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 17097dff02feSmrgac_fn_c_check_decl () 17107dff02feSmrg{ 17117dff02feSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17127dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 17137dff02feSmrg$as_echo_n "checking whether $2 is declared... " >&6; } 17147dff02feSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 17157dff02feSmrg $as_echo_n "(cached) " >&6 17167dff02feSmrgelse 17177dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187dff02feSmrg/* end confdefs.h. */ 17197dff02feSmrg$4 17207dff02feSmrgint 17217dff02feSmrgmain () 17227dff02feSmrg{ 17237dff02feSmrg#ifndef $2 17247dff02feSmrg (void) $2; 17257dff02feSmrg#endif 17267dff02feSmrg 17277dff02feSmrg ; 17287dff02feSmrg return 0; 17297dff02feSmrg} 17307dff02feSmrg_ACEOF 17317dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 17327dff02feSmrg eval "$3=yes" 17337dff02feSmrgelse 17347dff02feSmrg eval "$3=no" 17357dff02feSmrgfi 17367dff02feSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17377dff02feSmrgfi 17387dff02feSmrgeval ac_res=\$$3 17397dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17407dff02feSmrg$as_echo "$ac_res" >&6; } 17417dff02feSmrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 17427dff02feSmrg 17437dff02feSmrg} # ac_fn_c_check_decl 174470f7c90cSmrgcat >config.log <<_ACEOF 1745a850946eSmrgThis file contains any messages produced by compilers while 1746a850946eSmrgrunning configure, to aid debugging if configure makes a mistake. 1747a850946eSmrg 17487dff02feSmrgIt was created by xlsclients $as_me 1.1.0, which was 17497dff02feSmrggenerated by GNU Autoconf 2.65. Invocation command line was 1750a850946eSmrg 1751a850946eSmrg $ $0 $@ 1752a850946eSmrg 1753a850946eSmrg_ACEOF 175470f7c90cSmrgexec 5>>config.log 1755a850946eSmrg{ 1756a850946eSmrgcat <<_ASUNAME 1757a850946eSmrg## --------- ## 1758a850946eSmrg## Platform. ## 1759a850946eSmrg## --------- ## 1760a850946eSmrg 1761a850946eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1762a850946eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1763a850946eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1764a850946eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1765a850946eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1766a850946eSmrg 1767a850946eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1768a850946eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1769a850946eSmrg 1770a850946eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1771a850946eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1772a850946eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 177370f7c90cSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1774a850946eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1775a850946eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1776a850946eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1777a850946eSmrg 1778a850946eSmrg_ASUNAME 1779a850946eSmrg 1780a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1781a850946eSmrgfor as_dir in $PATH 1782a850946eSmrgdo 1783a850946eSmrg IFS=$as_save_IFS 1784a850946eSmrg test -z "$as_dir" && as_dir=. 17857dff02feSmrg $as_echo "PATH: $as_dir" 17867dff02feSmrg done 178770f7c90cSmrgIFS=$as_save_IFS 1788a850946eSmrg 1789a850946eSmrg} >&5 1790a850946eSmrg 1791a850946eSmrgcat >&5 <<_ACEOF 1792a850946eSmrg 1793a850946eSmrg 1794a850946eSmrg## ----------- ## 1795a850946eSmrg## Core tests. ## 1796a850946eSmrg## ----------- ## 1797a850946eSmrg 1798a850946eSmrg_ACEOF 1799a850946eSmrg 1800a850946eSmrg 1801a850946eSmrg# Keep a trace of the command line. 1802a850946eSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1803a850946eSmrg# Strip out --silent because we don't want to record it for future runs. 1804a850946eSmrg# Also quote any args containing shell meta-characters. 1805a850946eSmrg# Make two passes to allow for proper duplicate-argument suppression. 1806a850946eSmrgac_configure_args= 1807a850946eSmrgac_configure_args0= 1808a850946eSmrgac_configure_args1= 1809a850946eSmrgac_must_keep_next=false 1810a850946eSmrgfor ac_pass in 1 2 1811a850946eSmrgdo 1812a850946eSmrg for ac_arg 1813a850946eSmrg do 1814a850946eSmrg case $ac_arg in 1815a850946eSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1816a850946eSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1817a850946eSmrg | -silent | --silent | --silen | --sile | --sil) 1818a850946eSmrg continue ;; 181970f7c90cSmrg *\'*) 182070f7c90cSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1821a850946eSmrg esac 1822a850946eSmrg case $ac_pass in 18237dff02feSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1824a850946eSmrg 2) 18257dff02feSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1826a850946eSmrg if test $ac_must_keep_next = true; then 1827a850946eSmrg ac_must_keep_next=false # Got value, back to normal. 1828a850946eSmrg else 1829a850946eSmrg case $ac_arg in 1830a850946eSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1831a850946eSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1832a850946eSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1833a850946eSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1834a850946eSmrg case "$ac_configure_args0 " in 1835a850946eSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1836a850946eSmrg esac 1837a850946eSmrg ;; 1838a850946eSmrg -* ) ac_must_keep_next=true ;; 1839a850946eSmrg esac 1840a850946eSmrg fi 18417dff02feSmrg as_fn_append ac_configure_args " '$ac_arg'" 1842a850946eSmrg ;; 1843a850946eSmrg esac 1844a850946eSmrg done 1845a850946eSmrgdone 18467dff02feSmrg{ ac_configure_args0=; unset ac_configure_args0;} 18477dff02feSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1848a850946eSmrg 1849a850946eSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1850a850946eSmrg# config.log. We remove comments because anyway the quotes in there 1851a850946eSmrg# would cause problems or look ugly. 185270f7c90cSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 185370f7c90cSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1854a850946eSmrgtrap 'exit_status=$? 1855a850946eSmrg # Save into config.log some information that might help in debugging. 1856a850946eSmrg { 1857a850946eSmrg echo 1858a850946eSmrg 1859a850946eSmrg cat <<\_ASBOX 1860a850946eSmrg## ---------------- ## 1861a850946eSmrg## Cache variables. ## 1862a850946eSmrg## ---------------- ## 1863a850946eSmrg_ASBOX 1864a850946eSmrg echo 1865a850946eSmrg # The following way of writing the cache mishandles newlines in values, 186670f7c90cSmrg( 186770f7c90cSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 186870f7c90cSmrg eval ac_val=\$$ac_var 186970f7c90cSmrg case $ac_val in #( 187070f7c90cSmrg *${as_nl}*) 187170f7c90cSmrg case $ac_var in #( 18727dff02feSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 187370f7c90cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 187470f7c90cSmrg esac 187570f7c90cSmrg case $ac_var in #( 187670f7c90cSmrg _ | IFS | as_nl) ;; #( 187770f7c90cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18787dff02feSmrg *) { eval $ac_var=; unset $ac_var;} ;; 187970f7c90cSmrg esac ;; 188070f7c90cSmrg esac 188170f7c90cSmrg done 1882a850946eSmrg (set) 2>&1 | 188370f7c90cSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 188470f7c90cSmrg *${as_nl}ac_space=\ *) 1885a850946eSmrg sed -n \ 188670f7c90cSmrg "s/'\''/'\''\\\\'\'''\''/g; 188770f7c90cSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 188870f7c90cSmrg ;; #( 1889a850946eSmrg *) 189070f7c90cSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1891a850946eSmrg ;; 189270f7c90cSmrg esac | 189370f7c90cSmrg sort 189470f7c90cSmrg) 1895a850946eSmrg echo 1896a850946eSmrg 1897a850946eSmrg cat <<\_ASBOX 1898a850946eSmrg## ----------------- ## 1899a850946eSmrg## Output variables. ## 1900a850946eSmrg## ----------------- ## 1901a850946eSmrg_ASBOX 1902a850946eSmrg echo 1903a850946eSmrg for ac_var in $ac_subst_vars 1904a850946eSmrg do 190570f7c90cSmrg eval ac_val=\$$ac_var 190670f7c90cSmrg case $ac_val in 190770f7c90cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 190870f7c90cSmrg esac 190970f7c90cSmrg $as_echo "$ac_var='\''$ac_val'\''" 1910a850946eSmrg done | sort 1911a850946eSmrg echo 1912a850946eSmrg 1913a850946eSmrg if test -n "$ac_subst_files"; then 1914a850946eSmrg cat <<\_ASBOX 191570f7c90cSmrg## ------------------- ## 191670f7c90cSmrg## File substitutions. ## 191770f7c90cSmrg## ------------------- ## 1918a850946eSmrg_ASBOX 1919a850946eSmrg echo 1920a850946eSmrg for ac_var in $ac_subst_files 1921a850946eSmrg do 192270f7c90cSmrg eval ac_val=\$$ac_var 192370f7c90cSmrg case $ac_val in 192470f7c90cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 192570f7c90cSmrg esac 192670f7c90cSmrg $as_echo "$ac_var='\''$ac_val'\''" 1927a850946eSmrg done | sort 1928a850946eSmrg echo 1929a850946eSmrg fi 1930a850946eSmrg 1931a850946eSmrg if test -s confdefs.h; then 1932a850946eSmrg cat <<\_ASBOX 1933a850946eSmrg## ----------- ## 1934a850946eSmrg## confdefs.h. ## 1935a850946eSmrg## ----------- ## 1936a850946eSmrg_ASBOX 1937a850946eSmrg echo 193870f7c90cSmrg cat confdefs.h 1939a850946eSmrg echo 1940a850946eSmrg fi 1941a850946eSmrg test "$ac_signal" != 0 && 194270f7c90cSmrg $as_echo "$as_me: caught signal $ac_signal" 194370f7c90cSmrg $as_echo "$as_me: exit $exit_status" 1944a850946eSmrg } >&5 194570f7c90cSmrg rm -f core *.core core.conftest.* && 194670f7c90cSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1947a850946eSmrg exit $exit_status 194870f7c90cSmrg' 0 1949a850946eSmrgfor ac_signal in 1 2 13 15; do 19507dff02feSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1951a850946eSmrgdone 1952a850946eSmrgac_signal=0 1953a850946eSmrg 1954a850946eSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 195570f7c90cSmrgrm -f -r conftest* confdefs.h 1956a850946eSmrg 19577dff02feSmrg$as_echo "/* confdefs.h */" > confdefs.h 19587dff02feSmrg 1959a850946eSmrg# Predefined preprocessor variables. 1960a850946eSmrg 1961a850946eSmrgcat >>confdefs.h <<_ACEOF 1962a850946eSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 1963a850946eSmrg_ACEOF 1964a850946eSmrg 1965a850946eSmrgcat >>confdefs.h <<_ACEOF 1966a850946eSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1967a850946eSmrg_ACEOF 1968a850946eSmrg 1969a850946eSmrgcat >>confdefs.h <<_ACEOF 1970a850946eSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1971a850946eSmrg_ACEOF 1972a850946eSmrg 1973a850946eSmrgcat >>confdefs.h <<_ACEOF 1974a850946eSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 1975a850946eSmrg_ACEOF 1976a850946eSmrg 1977a850946eSmrgcat >>confdefs.h <<_ACEOF 1978a850946eSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1979a850946eSmrg_ACEOF 1980a850946eSmrg 19817dff02feSmrgcat >>confdefs.h <<_ACEOF 19827dff02feSmrg#define PACKAGE_URL "$PACKAGE_URL" 19837dff02feSmrg_ACEOF 19847dff02feSmrg 1985a850946eSmrg 1986a850946eSmrg# Let the site file select an alternate cache file if it wants to. 198770f7c90cSmrg# Prefer an explicitly selected file to automatically selected ones. 198870f7c90cSmrgac_site_file1=NONE 198970f7c90cSmrgac_site_file2=NONE 199070f7c90cSmrgif test -n "$CONFIG_SITE"; then 199170f7c90cSmrg ac_site_file1=$CONFIG_SITE 199270f7c90cSmrgelif test "x$prefix" != xNONE; then 199370f7c90cSmrg ac_site_file1=$prefix/share/config.site 199470f7c90cSmrg ac_site_file2=$prefix/etc/config.site 199570f7c90cSmrgelse 199670f7c90cSmrg ac_site_file1=$ac_default_prefix/share/config.site 199770f7c90cSmrg ac_site_file2=$ac_default_prefix/etc/config.site 1998a850946eSmrgfi 199970f7c90cSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 200070f7c90cSmrgdo 200170f7c90cSmrg test "x$ac_site_file" = xNONE && continue 20027dff02feSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 20037dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 200470f7c90cSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2005a850946eSmrg sed 's/^/| /' "$ac_site_file" >&5 2006a850946eSmrg . "$ac_site_file" 2007a850946eSmrg fi 2008a850946eSmrgdone 2009a850946eSmrg 2010a850946eSmrgif test -r "$cache_file"; then 20117dff02feSmrg # Some versions of bash will fail to source /dev/null (special files 20127dff02feSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20137dff02feSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20147dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 201570f7c90cSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2016a850946eSmrg case $cache_file in 201770f7c90cSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 201870f7c90cSmrg *) . "./$cache_file";; 2019a850946eSmrg esac 2020a850946eSmrg fi 2021a850946eSmrgelse 20227dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 202370f7c90cSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2024a850946eSmrg >$cache_file 2025a850946eSmrgfi 2026a850946eSmrg 2027a850946eSmrg# Check that the precious variables saved in the cache have kept the same 2028a850946eSmrg# value. 2029a850946eSmrgac_cache_corrupted=false 203070f7c90cSmrgfor ac_var in $ac_precious_vars; do 2031a850946eSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2032a850946eSmrg eval ac_new_set=\$ac_env_${ac_var}_set 203370f7c90cSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 203470f7c90cSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2035a850946eSmrg case $ac_old_set,$ac_new_set in 2036a850946eSmrg set,) 20377dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 203870f7c90cSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2039a850946eSmrg ac_cache_corrupted=: ;; 2040a850946eSmrg ,set) 20417dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 204270f7c90cSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2043a850946eSmrg ac_cache_corrupted=: ;; 2044a850946eSmrg ,);; 2045a850946eSmrg *) 2046a850946eSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 204770f7c90cSmrg # differences in whitespace do not lead to failure. 204870f7c90cSmrg ac_old_val_w=`echo x $ac_old_val` 204970f7c90cSmrg ac_new_val_w=`echo x $ac_new_val` 205070f7c90cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 20517dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 205270f7c90cSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 205370f7c90cSmrg ac_cache_corrupted=: 205470f7c90cSmrg else 20557dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 205670f7c90cSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 205770f7c90cSmrg eval $ac_var=\$ac_old_val 205870f7c90cSmrg fi 20597dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 206070f7c90cSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 20617dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 206270f7c90cSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2063a850946eSmrg fi;; 2064a850946eSmrg esac 2065a850946eSmrg # Pass precious variables to config.status. 2066a850946eSmrg if test "$ac_new_set" = set; then 2067a850946eSmrg case $ac_new_val in 206870f7c90cSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2069a850946eSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2070a850946eSmrg esac 2071a850946eSmrg case " $ac_configure_args " in 2072a850946eSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 20737dff02feSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2074a850946eSmrg esac 2075a850946eSmrg fi 2076a850946eSmrgdone 2077a850946eSmrgif $ac_cache_corrupted; then 20787dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 207970f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20807dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 208170f7c90cSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 20827dff02feSmrg as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2083a850946eSmrgfi 20847dff02feSmrg## -------------------- ## 20857dff02feSmrg## Main body of script. ## 20867dff02feSmrg## -------------------- ## 2087a850946eSmrg 208870f7c90cSmrgac_ext=c 208970f7c90cSmrgac_cpp='$CPP $CPPFLAGS' 209070f7c90cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 209170f7c90cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 209270f7c90cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2093a850946eSmrg 2094a850946eSmrg 209570f7c90cSmrgam__api_version='1.11' 2096a850946eSmrg 2097a850946eSmrgac_aux_dir= 209870f7c90cSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 20997dff02feSmrg for ac_t in install-sh install.sh shtool; do 21007dff02feSmrg if test -f "$ac_dir/$ac_t"; then 21017dff02feSmrg ac_aux_dir=$ac_dir 21027dff02feSmrg ac_install_sh="$ac_aux_dir/$ac_t -c" 21037dff02feSmrg break 2 21047dff02feSmrg fi 21057dff02feSmrg done 2106a850946eSmrgdone 2107a850946eSmrgif test -z "$ac_aux_dir"; then 21087dff02feSmrg as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2109a850946eSmrgfi 211070f7c90cSmrg 211170f7c90cSmrg# These three variables are undocumented and unsupported, 211270f7c90cSmrg# and are intended to be withdrawn in a future Autoconf release. 211370f7c90cSmrg# They can cause serious problems if a builder's source tree is in a directory 211470f7c90cSmrg# whose full name contains unusual characters. 211570f7c90cSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 211670f7c90cSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 211770f7c90cSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 211870f7c90cSmrg 2119a850946eSmrg 2120a850946eSmrg# Find a good install program. We prefer a C program (faster), 2121a850946eSmrg# so one script is as good as another. But avoid the broken or 2122a850946eSmrg# incompatible versions: 2123a850946eSmrg# SysV /etc/install, /usr/sbin/install 2124a850946eSmrg# SunOS /usr/etc/install 2125a850946eSmrg# IRIX /sbin/install 2126a850946eSmrg# AIX /bin/install 2127a850946eSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2128a850946eSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2129a850946eSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2130a850946eSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2131a850946eSmrg# OS/2's system install, which has a completely different semantic 2132a850946eSmrg# ./install, which can be erroneously created by make from ./install.sh. 213370f7c90cSmrg# Reject install programs that cannot install multiple files. 21347dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 213570f7c90cSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2136a850946eSmrgif test -z "$INSTALL"; then 21377dff02feSmrgif test "${ac_cv_path_install+set}" = set; then : 213870f7c90cSmrg $as_echo_n "(cached) " >&6 2139a850946eSmrgelse 2140a850946eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141a850946eSmrgfor as_dir in $PATH 2142a850946eSmrgdo 2143a850946eSmrg IFS=$as_save_IFS 2144a850946eSmrg test -z "$as_dir" && as_dir=. 21457dff02feSmrg # Account for people who put trailing slashes in PATH elements. 21467dff02feSmrgcase $as_dir/ in #(( 21477dff02feSmrg ./ | .// | /[cC]/* | \ 2148a850946eSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 21497dff02feSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2150a850946eSmrg /usr/ucb/* ) ;; 2151a850946eSmrg *) 2152a850946eSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2153a850946eSmrg # Don't use installbsd from OSF since it installs stuff as root 2154a850946eSmrg # by default. 2155a850946eSmrg for ac_prog in ginstall scoinst install; do 2156a850946eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 215770f7c90cSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2158a850946eSmrg if test $ac_prog = install && 2159a850946eSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2160a850946eSmrg # AIX install. It has an incompatible calling convention. 2161a850946eSmrg : 2162a850946eSmrg elif test $ac_prog = install && 2163a850946eSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2164a850946eSmrg # program-specific install script used by HP pwplus--don't use. 2165a850946eSmrg : 2166a850946eSmrg else 216770f7c90cSmrg rm -rf conftest.one conftest.two conftest.dir 216870f7c90cSmrg echo one > conftest.one 216970f7c90cSmrg echo two > conftest.two 217070f7c90cSmrg mkdir conftest.dir 217170f7c90cSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 217270f7c90cSmrg test -s conftest.one && test -s conftest.two && 217370f7c90cSmrg test -s conftest.dir/conftest.one && 217470f7c90cSmrg test -s conftest.dir/conftest.two 217570f7c90cSmrg then 217670f7c90cSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 217770f7c90cSmrg break 3 217870f7c90cSmrg fi 2179a850946eSmrg fi 2180a850946eSmrg fi 2181a850946eSmrg done 2182a850946eSmrg done 2183a850946eSmrg ;; 2184a850946eSmrgesac 218570f7c90cSmrg 21867dff02feSmrg done 218770f7c90cSmrgIFS=$as_save_IFS 2188a850946eSmrg 218970f7c90cSmrgrm -rf conftest.one conftest.two conftest.dir 2190a850946eSmrg 2191a850946eSmrgfi 2192a850946eSmrg if test "${ac_cv_path_install+set}" = set; then 2193a850946eSmrg INSTALL=$ac_cv_path_install 2194a850946eSmrg else 219570f7c90cSmrg # As a last resort, use the slow shell script. Don't cache a 219670f7c90cSmrg # value for INSTALL within a source directory, because that will 2197a850946eSmrg # break other packages using the cache if that directory is 219870f7c90cSmrg # removed, or if the value is a relative name. 2199a850946eSmrg INSTALL=$ac_install_sh 2200a850946eSmrg fi 2201a850946eSmrgfi 22027dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 220370f7c90cSmrg$as_echo "$INSTALL" >&6; } 2204a850946eSmrg 2205a850946eSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2206a850946eSmrg# It thinks the first close brace ends the variable substitution. 2207a850946eSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2208a850946eSmrg 2209a850946eSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2210a850946eSmrg 2211a850946eSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2212a850946eSmrg 22137dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 221470f7c90cSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2215a850946eSmrg# Just in case 2216a850946eSmrgsleep 1 2217a850946eSmrgecho timestamp > conftest.file 221870f7c90cSmrg# Reject unsafe characters in $srcdir or the absolute working directory 221970f7c90cSmrg# name. Accept space and tab only in the latter. 222070f7c90cSmrgam_lf=' 222170f7c90cSmrg' 222270f7c90cSmrgcase `pwd` in 222370f7c90cSmrg *[\\\"\#\$\&\'\`$am_lf]*) 22247dff02feSmrg as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 222570f7c90cSmrgesac 222670f7c90cSmrgcase $srcdir in 222770f7c90cSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22287dff02feSmrg as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 222970f7c90cSmrgesac 223070f7c90cSmrg 2231a850946eSmrg# Do `set' in a subshell so we don't clobber the current shell's 2232a850946eSmrg# arguments. Must try -L first in case configure is actually a 2233a850946eSmrg# symlink; some systems play weird games with the mod time of symlinks 2234a850946eSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2235a850946eSmrg# directory). 2236a850946eSmrgif ( 223770f7c90cSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2238a850946eSmrg if test "$*" = "X"; then 2239a850946eSmrg # -L didn't work. 224070f7c90cSmrg set X `ls -t "$srcdir/configure" conftest.file` 2241a850946eSmrg fi 2242a850946eSmrg rm -f conftest.file 2243a850946eSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2244a850946eSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2245a850946eSmrg 2246a850946eSmrg # If neither matched, then we have a broken ls. This can happen 2247a850946eSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2248a850946eSmrg # broken ls alias from the environment. This has actually 2249a850946eSmrg # happened. Such a system could not be considered "sane". 22507dff02feSmrg as_fn_error "ls -t appears to fail. Make sure there is not a broken 22517dff02feSmrgalias in your environment" "$LINENO" 5 2252a850946eSmrg fi 2253a850946eSmrg 2254a850946eSmrg test "$2" = conftest.file 2255a850946eSmrg ) 2256a850946eSmrgthen 2257a850946eSmrg # Ok. 2258a850946eSmrg : 2259a850946eSmrgelse 22607dff02feSmrg as_fn_error "newly created file is older than distributed files! 22617dff02feSmrgCheck your system clock" "$LINENO" 5 2262a850946eSmrgfi 22637dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 226470f7c90cSmrg$as_echo "yes" >&6; } 2265a850946eSmrgtest "$program_prefix" != NONE && 226670f7c90cSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2267a850946eSmrg# Use a double $ so make ignores it. 2268a850946eSmrgtest "$program_suffix" != NONE && 226970f7c90cSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 227070f7c90cSmrg# Double any \ or $. 2271a850946eSmrg# By default was `s,x,x', remove it if useless. 227270f7c90cSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 227370f7c90cSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2274a850946eSmrg 2275a850946eSmrg# expand $ac_aux_dir to an absolute path 2276a850946eSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2277a850946eSmrg 227870f7c90cSmrgif test x"${MISSING+set}" != xset; then 227970f7c90cSmrg case $am_aux_dir in 228070f7c90cSmrg *\ * | *\ *) 228170f7c90cSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 228270f7c90cSmrg *) 228370f7c90cSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 228470f7c90cSmrg esac 228570f7c90cSmrgfi 2286a850946eSmrg# Use eval to expand $SHELL 2287a850946eSmrgif eval "$MISSING --run true"; then 2288a850946eSmrg am_missing_run="$MISSING --run " 2289a850946eSmrgelse 2290a850946eSmrg am_missing_run= 22917dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 229270f7c90cSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 229370f7c90cSmrgfi 229470f7c90cSmrg 229570f7c90cSmrgif test x"${install_sh}" != xset; then 229670f7c90cSmrg case $am_aux_dir in 229770f7c90cSmrg *\ * | *\ *) 229870f7c90cSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 229970f7c90cSmrg *) 230070f7c90cSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 230170f7c90cSmrg esac 230270f7c90cSmrgfi 230370f7c90cSmrg 230470f7c90cSmrg# Installed binaries are usually stripped using `strip' when the user 230570f7c90cSmrg# run `make install-strip'. However `strip' might not be the right 230670f7c90cSmrg# tool to use in cross-compilation environments, therefore Automake 230770f7c90cSmrg# will honor the `STRIP' environment variable to overrule this program. 230870f7c90cSmrgif test "$cross_compiling" != no; then 230970f7c90cSmrg if test -n "$ac_tool_prefix"; then 231070f7c90cSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 231170f7c90cSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 23127dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 231370f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 23147dff02feSmrgif test "${ac_cv_prog_STRIP+set}" = set; then : 231570f7c90cSmrg $as_echo_n "(cached) " >&6 231670f7c90cSmrgelse 231770f7c90cSmrg if test -n "$STRIP"; then 231870f7c90cSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 231970f7c90cSmrgelse 232070f7c90cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 232170f7c90cSmrgfor as_dir in $PATH 232270f7c90cSmrgdo 232370f7c90cSmrg IFS=$as_save_IFS 232470f7c90cSmrg test -z "$as_dir" && as_dir=. 23257dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 232670f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 232770f7c90cSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 23287dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 232970f7c90cSmrg break 2 233070f7c90cSmrg fi 233170f7c90cSmrgdone 23327dff02feSmrg done 233370f7c90cSmrgIFS=$as_save_IFS 233470f7c90cSmrg 233570f7c90cSmrgfi 233670f7c90cSmrgfi 233770f7c90cSmrgSTRIP=$ac_cv_prog_STRIP 233870f7c90cSmrgif test -n "$STRIP"; then 23397dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 234070f7c90cSmrg$as_echo "$STRIP" >&6; } 234170f7c90cSmrgelse 23427dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 234370f7c90cSmrg$as_echo "no" >&6; } 234470f7c90cSmrgfi 234570f7c90cSmrg 234670f7c90cSmrg 234770f7c90cSmrgfi 234870f7c90cSmrgif test -z "$ac_cv_prog_STRIP"; then 234970f7c90cSmrg ac_ct_STRIP=$STRIP 235070f7c90cSmrg # Extract the first word of "strip", so it can be a program name with args. 235170f7c90cSmrgset dummy strip; ac_word=$2 23527dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 235370f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 23547dff02feSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 235570f7c90cSmrg $as_echo_n "(cached) " >&6 235670f7c90cSmrgelse 235770f7c90cSmrg if test -n "$ac_ct_STRIP"; then 235870f7c90cSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 235970f7c90cSmrgelse 236070f7c90cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 236170f7c90cSmrgfor as_dir in $PATH 236270f7c90cSmrgdo 236370f7c90cSmrg IFS=$as_save_IFS 236470f7c90cSmrg test -z "$as_dir" && as_dir=. 23657dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 236670f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 236770f7c90cSmrg ac_cv_prog_ac_ct_STRIP="strip" 23687dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 236970f7c90cSmrg break 2 237070f7c90cSmrg fi 237170f7c90cSmrgdone 23727dff02feSmrg done 237370f7c90cSmrgIFS=$as_save_IFS 237470f7c90cSmrg 237570f7c90cSmrgfi 237670f7c90cSmrgfi 237770f7c90cSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 237870f7c90cSmrgif test -n "$ac_ct_STRIP"; then 23797dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 238070f7c90cSmrg$as_echo "$ac_ct_STRIP" >&6; } 238170f7c90cSmrgelse 23827dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 238370f7c90cSmrg$as_echo "no" >&6; } 238470f7c90cSmrgfi 238570f7c90cSmrg 238670f7c90cSmrg if test "x$ac_ct_STRIP" = x; then 238770f7c90cSmrg STRIP=":" 238870f7c90cSmrg else 238970f7c90cSmrg case $cross_compiling:$ac_tool_warned in 239070f7c90cSmrgyes:) 23917dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 239270f7c90cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 239370f7c90cSmrgac_tool_warned=yes ;; 239470f7c90cSmrgesac 239570f7c90cSmrg STRIP=$ac_ct_STRIP 239670f7c90cSmrg fi 239770f7c90cSmrgelse 239870f7c90cSmrg STRIP="$ac_cv_prog_STRIP" 239970f7c90cSmrgfi 240070f7c90cSmrg 240170f7c90cSmrgfi 240270f7c90cSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 240370f7c90cSmrg 24047dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 240570f7c90cSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 240670f7c90cSmrgif test -z "$MKDIR_P"; then 24077dff02feSmrg if test "${ac_cv_path_mkdir+set}" = set; then : 240870f7c90cSmrg $as_echo_n "(cached) " >&6 240970f7c90cSmrgelse 241070f7c90cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241170f7c90cSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 241270f7c90cSmrgdo 241370f7c90cSmrg IFS=$as_save_IFS 241470f7c90cSmrg test -z "$as_dir" && as_dir=. 24157dff02feSmrg for ac_prog in mkdir gmkdir; do 241670f7c90cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 241770f7c90cSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 241870f7c90cSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 241970f7c90cSmrg 'mkdir (GNU coreutils) '* | \ 242070f7c90cSmrg 'mkdir (coreutils) '* | \ 242170f7c90cSmrg 'mkdir (fileutils) '4.1*) 242270f7c90cSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 242370f7c90cSmrg break 3;; 242470f7c90cSmrg esac 242570f7c90cSmrg done 242670f7c90cSmrg done 24277dff02feSmrg done 242870f7c90cSmrgIFS=$as_save_IFS 242970f7c90cSmrg 243070f7c90cSmrgfi 243170f7c90cSmrg 24327dff02feSmrg test -d ./--version && rmdir ./--version 243370f7c90cSmrg if test "${ac_cv_path_mkdir+set}" = set; then 243470f7c90cSmrg MKDIR_P="$ac_cv_path_mkdir -p" 243570f7c90cSmrg else 243670f7c90cSmrg # As a last resort, use the slow shell script. Don't cache a 243770f7c90cSmrg # value for MKDIR_P within a source directory, because that will 243870f7c90cSmrg # break other packages using the cache if that directory is 243970f7c90cSmrg # removed, or if the value is a relative name. 244070f7c90cSmrg MKDIR_P="$ac_install_sh -d" 244170f7c90cSmrg fi 2442a850946eSmrgfi 24437dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 244470f7c90cSmrg$as_echo "$MKDIR_P" >&6; } 244570f7c90cSmrg 244670f7c90cSmrgmkdir_p="$MKDIR_P" 244770f7c90cSmrgcase $mkdir_p in 244870f7c90cSmrg [\\/$]* | ?:[\\/]*) ;; 244970f7c90cSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 245070f7c90cSmrgesac 2451a850946eSmrg 2452a850946eSmrgfor ac_prog in gawk mawk nawk awk 2453a850946eSmrgdo 2454a850946eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2455a850946eSmrgset dummy $ac_prog; ac_word=$2 24567dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 245770f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 24587dff02feSmrgif test "${ac_cv_prog_AWK+set}" = set; then : 245970f7c90cSmrg $as_echo_n "(cached) " >&6 2460a850946eSmrgelse 2461a850946eSmrg if test -n "$AWK"; then 2462a850946eSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2463a850946eSmrgelse 2464a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465a850946eSmrgfor as_dir in $PATH 2466a850946eSmrgdo 2467a850946eSmrg IFS=$as_save_IFS 2468a850946eSmrg test -z "$as_dir" && as_dir=. 24697dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 247070f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2471a850946eSmrg ac_cv_prog_AWK="$ac_prog" 24727dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2473a850946eSmrg break 2 2474a850946eSmrg fi 2475a850946eSmrgdone 24767dff02feSmrg done 247770f7c90cSmrgIFS=$as_save_IFS 2478a850946eSmrg 2479a850946eSmrgfi 2480a850946eSmrgfi 2481a850946eSmrgAWK=$ac_cv_prog_AWK 2482a850946eSmrgif test -n "$AWK"; then 24837dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 248470f7c90cSmrg$as_echo "$AWK" >&6; } 2485a850946eSmrgelse 24867dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 248770f7c90cSmrg$as_echo "no" >&6; } 2488a850946eSmrgfi 2489a850946eSmrg 249070f7c90cSmrg 2491a850946eSmrg test -n "$AWK" && break 2492a850946eSmrgdone 2493a850946eSmrg 24947dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 249570f7c90cSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 249670f7c90cSmrgset x ${MAKE-make} 249770f7c90cSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 24987dff02feSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 249970f7c90cSmrg $as_echo_n "(cached) " >&6 2500a850946eSmrgelse 2501a850946eSmrg cat >conftest.make <<\_ACEOF 250270f7c90cSmrgSHELL = /bin/sh 2503a850946eSmrgall: 250470f7c90cSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2505a850946eSmrg_ACEOF 2506a850946eSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 250770f7c90cSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 250870f7c90cSmrg *@@@%%%=?*=@@@%%%*) 250970f7c90cSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 251070f7c90cSmrg *) 251170f7c90cSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 251270f7c90cSmrgesac 2513a850946eSmrgrm -f conftest.make 2514a850946eSmrgfi 251570f7c90cSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25167dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 251770f7c90cSmrg$as_echo "yes" >&6; } 2518a850946eSmrg SET_MAKE= 2519a850946eSmrgelse 25207dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 252170f7c90cSmrg$as_echo "no" >&6; } 2522a850946eSmrg SET_MAKE="MAKE=${MAKE-make}" 2523a850946eSmrgfi 2524a850946eSmrg 2525a850946eSmrgrm -rf .tst 2>/dev/null 2526a850946eSmrgmkdir .tst 2>/dev/null 2527a850946eSmrgif test -d .tst; then 2528a850946eSmrg am__leading_dot=. 2529a850946eSmrgelse 2530a850946eSmrg am__leading_dot=_ 2531a850946eSmrgfi 2532a850946eSmrgrmdir .tst 2>/dev/null 2533a850946eSmrg 253470f7c90cSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 253570f7c90cSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 253670f7c90cSmrg # is not polluted with repeated "-I." 253770f7c90cSmrg am__isrc=' -I$(srcdir)' 253870f7c90cSmrg # test to see if srcdir already configured 253970f7c90cSmrg if test -f $srcdir/config.status; then 25407dff02feSmrg as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 254170f7c90cSmrg fi 2542a850946eSmrgfi 2543a850946eSmrg 2544a850946eSmrg# test whether we have cygpath 2545a850946eSmrgif test -z "$CYGPATH_W"; then 2546a850946eSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2547a850946eSmrg CYGPATH_W='cygpath -w' 2548a850946eSmrg else 2549a850946eSmrg CYGPATH_W=echo 2550a850946eSmrg fi 2551a850946eSmrgfi 2552a850946eSmrg 2553a850946eSmrg 2554a850946eSmrg# Define the identity of the package. 2555a850946eSmrg PACKAGE='xlsclients' 25567dff02feSmrg VERSION='1.1.0' 2557a850946eSmrg 2558a850946eSmrg 2559a850946eSmrgcat >>confdefs.h <<_ACEOF 2560a850946eSmrg#define PACKAGE "$PACKAGE" 2561a850946eSmrg_ACEOF 2562a850946eSmrg 2563a850946eSmrg 2564a850946eSmrgcat >>confdefs.h <<_ACEOF 2565a850946eSmrg#define VERSION "$VERSION" 2566a850946eSmrg_ACEOF 2567a850946eSmrg 2568a850946eSmrg# Some tools Automake needs. 2569a850946eSmrg 2570a850946eSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2571a850946eSmrg 2572a850946eSmrg 2573a850946eSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2574a850946eSmrg 2575a850946eSmrg 2576a850946eSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2577a850946eSmrg 2578a850946eSmrg 2579a850946eSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2580a850946eSmrg 2581a850946eSmrg 2582a850946eSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2583a850946eSmrg 258470f7c90cSmrg# We need awk for the "check" target. The system "awk" is bad on 258570f7c90cSmrg# some platforms. 258670f7c90cSmrg# Always define AMTAR for backward compatibility. 2587a850946eSmrg 2588a850946eSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2589a850946eSmrg 259070f7c90cSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2591a850946eSmrg 2592a850946eSmrg 2593a850946eSmrg 2594a850946eSmrg 2595a850946eSmrg 2596a850946eSmrg 25977dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 259870f7c90cSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 259970f7c90cSmrg # Check whether --enable-maintainer-mode was given. 26007dff02feSmrgif test "${enable_maintainer_mode+set}" = set; then : 260170f7c90cSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2602a850946eSmrgelse 2603a850946eSmrg USE_MAINTAINER_MODE=no 260470f7c90cSmrgfi 2605a850946eSmrg 26067dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 260770f7c90cSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 260870f7c90cSmrg if test $USE_MAINTAINER_MODE = yes; then 2609a850946eSmrg MAINTAINER_MODE_TRUE= 2610a850946eSmrg MAINTAINER_MODE_FALSE='#' 2611a850946eSmrgelse 2612a850946eSmrg MAINTAINER_MODE_TRUE='#' 2613a850946eSmrg MAINTAINER_MODE_FALSE= 2614a850946eSmrgfi 2615a850946eSmrg 2616a850946eSmrg MAINT=$MAINTAINER_MODE_TRUE 2617a850946eSmrg 2618a850946eSmrg 2619a850946eSmrg 262070f7c90cSmrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2621a850946eSmrg 2622a850946eSmrg 262370f7c90cSmrg 262470f7c90cSmrg 262570f7c90cSmrg 262670f7c90cSmrg 262770f7c90cSmrg 262870f7c90cSmrg 262970f7c90cSmrg 263070f7c90cSmrg 263170f7c90cSmrg 263270f7c90cSmrg 263370f7c90cSmrgac_config_headers="$ac_config_headers config.h" 263470f7c90cSmrg 263570f7c90cSmrg 263670f7c90cSmrgac_ext=c 263770f7c90cSmrgac_cpp='$CPP $CPPFLAGS' 263870f7c90cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2639a850946eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2640a850946eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2641a850946eSmrgif test -n "$ac_tool_prefix"; then 2642a850946eSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2643a850946eSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 26447dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 264570f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 26467dff02feSmrgif test "${ac_cv_prog_CC+set}" = set; then : 264770f7c90cSmrg $as_echo_n "(cached) " >&6 2648a850946eSmrgelse 2649a850946eSmrg if test -n "$CC"; then 2650a850946eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2651a850946eSmrgelse 2652a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653a850946eSmrgfor as_dir in $PATH 2654a850946eSmrgdo 2655a850946eSmrg IFS=$as_save_IFS 2656a850946eSmrg test -z "$as_dir" && as_dir=. 26577dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 265870f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659a850946eSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 26607dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2661a850946eSmrg break 2 2662a850946eSmrg fi 2663a850946eSmrgdone 26647dff02feSmrg done 266570f7c90cSmrgIFS=$as_save_IFS 2666a850946eSmrg 2667a850946eSmrgfi 2668a850946eSmrgfi 2669a850946eSmrgCC=$ac_cv_prog_CC 2670a850946eSmrgif test -n "$CC"; then 26717dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 267270f7c90cSmrg$as_echo "$CC" >&6; } 2673a850946eSmrgelse 26747dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 267570f7c90cSmrg$as_echo "no" >&6; } 2676a850946eSmrgfi 2677a850946eSmrg 267870f7c90cSmrg 2679a850946eSmrgfi 2680a850946eSmrgif test -z "$ac_cv_prog_CC"; then 2681a850946eSmrg ac_ct_CC=$CC 2682a850946eSmrg # Extract the first word of "gcc", so it can be a program name with args. 2683a850946eSmrgset dummy gcc; ac_word=$2 26847dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 268570f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 26867dff02feSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 268770f7c90cSmrg $as_echo_n "(cached) " >&6 2688a850946eSmrgelse 2689a850946eSmrg if test -n "$ac_ct_CC"; then 2690a850946eSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2691a850946eSmrgelse 2692a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693a850946eSmrgfor as_dir in $PATH 2694a850946eSmrgdo 2695a850946eSmrg IFS=$as_save_IFS 2696a850946eSmrg test -z "$as_dir" && as_dir=. 26977dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 269870f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2699a850946eSmrg ac_cv_prog_ac_ct_CC="gcc" 27007dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2701a850946eSmrg break 2 2702a850946eSmrg fi 2703a850946eSmrgdone 27047dff02feSmrg done 270570f7c90cSmrgIFS=$as_save_IFS 2706a850946eSmrg 2707a850946eSmrgfi 2708a850946eSmrgfi 2709a850946eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2710a850946eSmrgif test -n "$ac_ct_CC"; then 27117dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 271270f7c90cSmrg$as_echo "$ac_ct_CC" >&6; } 2713a850946eSmrgelse 27147dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 271570f7c90cSmrg$as_echo "no" >&6; } 2716a850946eSmrgfi 2717a850946eSmrg 271870f7c90cSmrg if test "x$ac_ct_CC" = x; then 271970f7c90cSmrg CC="" 272070f7c90cSmrg else 272170f7c90cSmrg case $cross_compiling:$ac_tool_warned in 272270f7c90cSmrgyes:) 27237dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 272470f7c90cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 272570f7c90cSmrgac_tool_warned=yes ;; 272670f7c90cSmrgesac 272770f7c90cSmrg CC=$ac_ct_CC 272870f7c90cSmrg fi 2729a850946eSmrgelse 2730a850946eSmrg CC="$ac_cv_prog_CC" 2731a850946eSmrgfi 2732a850946eSmrg 2733a850946eSmrgif test -z "$CC"; then 273470f7c90cSmrg if test -n "$ac_tool_prefix"; then 273570f7c90cSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2736a850946eSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 27377dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 273870f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 27397dff02feSmrgif test "${ac_cv_prog_CC+set}" = set; then : 274070f7c90cSmrg $as_echo_n "(cached) " >&6 2741a850946eSmrgelse 2742a850946eSmrg if test -n "$CC"; then 2743a850946eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2744a850946eSmrgelse 2745a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2746a850946eSmrgfor as_dir in $PATH 2747a850946eSmrgdo 2748a850946eSmrg IFS=$as_save_IFS 2749a850946eSmrg test -z "$as_dir" && as_dir=. 27507dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 275170f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2752a850946eSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 27537dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2754a850946eSmrg break 2 2755a850946eSmrg fi 2756a850946eSmrgdone 27577dff02feSmrg done 275870f7c90cSmrgIFS=$as_save_IFS 2759a850946eSmrg 2760a850946eSmrgfi 2761a850946eSmrgfi 2762a850946eSmrgCC=$ac_cv_prog_CC 2763a850946eSmrgif test -n "$CC"; then 27647dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 276570f7c90cSmrg$as_echo "$CC" >&6; } 2766a850946eSmrgelse 27677dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 276870f7c90cSmrg$as_echo "no" >&6; } 2769a850946eSmrgfi 2770a850946eSmrg 2771a850946eSmrg 277270f7c90cSmrg fi 2773a850946eSmrgfi 2774a850946eSmrgif test -z "$CC"; then 2775a850946eSmrg # Extract the first word of "cc", so it can be a program name with args. 2776a850946eSmrgset dummy cc; ac_word=$2 27777dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 277870f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 27797dff02feSmrgif test "${ac_cv_prog_CC+set}" = set; then : 278070f7c90cSmrg $as_echo_n "(cached) " >&6 2781a850946eSmrgelse 2782a850946eSmrg if test -n "$CC"; then 2783a850946eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2784a850946eSmrgelse 2785a850946eSmrg ac_prog_rejected=no 2786a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787a850946eSmrgfor as_dir in $PATH 2788a850946eSmrgdo 2789a850946eSmrg IFS=$as_save_IFS 2790a850946eSmrg test -z "$as_dir" && as_dir=. 27917dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 279270f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2793a850946eSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2794a850946eSmrg ac_prog_rejected=yes 2795a850946eSmrg continue 2796a850946eSmrg fi 2797a850946eSmrg ac_cv_prog_CC="cc" 27987dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2799a850946eSmrg break 2 2800a850946eSmrg fi 2801a850946eSmrgdone 28027dff02feSmrg done 280370f7c90cSmrgIFS=$as_save_IFS 2804a850946eSmrg 2805a850946eSmrgif test $ac_prog_rejected = yes; then 2806a850946eSmrg # We found a bogon in the path, so make sure we never use it. 2807a850946eSmrg set dummy $ac_cv_prog_CC 2808a850946eSmrg shift 2809a850946eSmrg if test $# != 0; then 2810a850946eSmrg # We chose a different compiler from the bogus one. 2811a850946eSmrg # However, it has the same basename, so the bogon will be chosen 2812a850946eSmrg # first if we set CC to just the basename; use the full file name. 2813a850946eSmrg shift 2814a850946eSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2815a850946eSmrg fi 2816a850946eSmrgfi 2817a850946eSmrgfi 2818a850946eSmrgfi 2819a850946eSmrgCC=$ac_cv_prog_CC 2820a850946eSmrgif test -n "$CC"; then 28217dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 282270f7c90cSmrg$as_echo "$CC" >&6; } 2823a850946eSmrgelse 28247dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 282570f7c90cSmrg$as_echo "no" >&6; } 2826a850946eSmrgfi 2827a850946eSmrg 282870f7c90cSmrg 2829a850946eSmrgfi 2830a850946eSmrgif test -z "$CC"; then 2831a850946eSmrg if test -n "$ac_tool_prefix"; then 283270f7c90cSmrg for ac_prog in cl.exe 2833a850946eSmrg do 2834a850946eSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2835a850946eSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 28367dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 283770f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 28387dff02feSmrgif test "${ac_cv_prog_CC+set}" = set; then : 283970f7c90cSmrg $as_echo_n "(cached) " >&6 2840a850946eSmrgelse 2841a850946eSmrg if test -n "$CC"; then 2842a850946eSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2843a850946eSmrgelse 2844a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845a850946eSmrgfor as_dir in $PATH 2846a850946eSmrgdo 2847a850946eSmrg IFS=$as_save_IFS 2848a850946eSmrg test -z "$as_dir" && as_dir=. 28497dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 285070f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851a850946eSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28527dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2853a850946eSmrg break 2 2854a850946eSmrg fi 2855a850946eSmrgdone 28567dff02feSmrg done 285770f7c90cSmrgIFS=$as_save_IFS 2858a850946eSmrg 2859a850946eSmrgfi 2860a850946eSmrgfi 2861a850946eSmrgCC=$ac_cv_prog_CC 2862a850946eSmrgif test -n "$CC"; then 28637dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 286470f7c90cSmrg$as_echo "$CC" >&6; } 2865a850946eSmrgelse 28667dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 286770f7c90cSmrg$as_echo "no" >&6; } 2868a850946eSmrgfi 2869a850946eSmrg 287070f7c90cSmrg 2871a850946eSmrg test -n "$CC" && break 2872a850946eSmrg done 2873a850946eSmrgfi 2874a850946eSmrgif test -z "$CC"; then 2875a850946eSmrg ac_ct_CC=$CC 287670f7c90cSmrg for ac_prog in cl.exe 2877a850946eSmrgdo 2878a850946eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2879a850946eSmrgset dummy $ac_prog; ac_word=$2 28807dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 288170f7c90cSmrg$as_echo_n "checking for $ac_word... " >&6; } 28827dff02feSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 288370f7c90cSmrg $as_echo_n "(cached) " >&6 2884a850946eSmrgelse 2885a850946eSmrg if test -n "$ac_ct_CC"; then 2886a850946eSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2887a850946eSmrgelse 2888a850946eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889a850946eSmrgfor as_dir in $PATH 2890a850946eSmrgdo 2891a850946eSmrg IFS=$as_save_IFS 2892a850946eSmrg test -z "$as_dir" && as_dir=. 28937dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 289470f7c90cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895a850946eSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 28967dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2897a850946eSmrg break 2 2898a850946eSmrg fi 2899a850946eSmrgdone 29007dff02feSmrg done 290170f7c90cSmrgIFS=$as_save_IFS 2902a850946eSmrg 2903a850946eSmrgfi 2904a850946eSmrgfi 2905a850946eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2906a850946eSmrgif test -n "$ac_ct_CC"; then 29077dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 290870f7c90cSmrg$as_echo "$ac_ct_CC" >&6; } 2909a850946eSmrgelse 29107dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 291170f7c90cSmrg$as_echo "no" >&6; } 2912a850946eSmrgfi 2913a850946eSmrg 291470f7c90cSmrg 2915a850946eSmrg test -n "$ac_ct_CC" && break 2916a850946eSmrgdone 2917a850946eSmrg 291870f7c90cSmrg if test "x$ac_ct_CC" = x; then 291970f7c90cSmrg CC="" 292070f7c90cSmrg else 292170f7c90cSmrg case $cross_compiling:$ac_tool_warned in 292270f7c90cSmrgyes:) 29237dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 292470f7c90cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 292570f7c90cSmrgac_tool_warned=yes ;; 292670f7c90cSmrgesac 292770f7c90cSmrg CC=$ac_ct_CC 292870f7c90cSmrg fi 2929a850946eSmrgfi 2930a850946eSmrg 29317dff02feSmrgfi 29327dff02feSmrg 29337dff02feSmrg 29347dff02feSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29357dff02feSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29367dff02feSmrgas_fn_error "no acceptable C compiler found in \$PATH 29377dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 29387dff02feSmrg 29397dff02feSmrg# Provide some information about the compiler. 29407dff02feSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29417dff02feSmrgset X $ac_compile 29427dff02feSmrgac_compiler=$2 29437dff02feSmrgfor ac_option in --version -v -V -qversion; do 29447dff02feSmrg { { ac_try="$ac_compiler $ac_option >&5" 294570f7c90cSmrgcase "(($ac_try" in 294670f7c90cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 294770f7c90cSmrg *) ac_try_echo=$ac_try;; 294870f7c90cSmrgesac 29497dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29507dff02feSmrg$as_echo "$ac_try_echo"; } >&5 29517dff02feSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2952a850946eSmrg ac_status=$? 29537dff02feSmrg if test -s conftest.err; then 29547dff02feSmrg sed '10a\ 29557dff02feSmrg... rest of stderr output deleted ... 29567dff02feSmrg 10q' conftest.err >conftest.er1 29577dff02feSmrg cat conftest.er1 >&5 29587dff02feSmrg fi 29597dff02feSmrg rm -f conftest.er1 conftest.err 29607dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29617dff02feSmrg test $ac_status = 0; } 29627dff02feSmrgdone 2963a850946eSmrg 29647dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2965a850946eSmrg/* end confdefs.h. */ 2966a850946eSmrg 2967a850946eSmrgint 2968a850946eSmrgmain () 2969a850946eSmrg{ 2970a850946eSmrg 2971a850946eSmrg ; 2972a850946eSmrg return 0; 2973a850946eSmrg} 2974a850946eSmrg_ACEOF 2975a850946eSmrgac_clean_files_save=$ac_clean_files 297670f7c90cSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2977a850946eSmrg# Try to create an executable without -o first, disregard a.out. 2978a850946eSmrg# It will help us diagnose broken compilers, and finding out an intuition 2979a850946eSmrg# of exeext. 29807dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29817dff02feSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 298270f7c90cSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 298370f7c90cSmrg 298470f7c90cSmrg# The possible output files: 298570f7c90cSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 298670f7c90cSmrg 298770f7c90cSmrgac_rmfiles= 298870f7c90cSmrgfor ac_file in $ac_files 298970f7c90cSmrgdo 299070f7c90cSmrg case $ac_file in 299170f7c90cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 299270f7c90cSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 299370f7c90cSmrg esac 299470f7c90cSmrgdone 299570f7c90cSmrgrm -f $ac_rmfiles 299670f7c90cSmrg 29977dff02feSmrgif { { ac_try="$ac_link_default" 299870f7c90cSmrgcase "(($ac_try" in 299970f7c90cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 300070f7c90cSmrg *) ac_try_echo=$ac_try;; 300170f7c90cSmrgesac 30027dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30037dff02feSmrg$as_echo "$ac_try_echo"; } >&5 300470f7c90cSmrg (eval "$ac_link_default") 2>&5 3005a850946eSmrg ac_status=$? 30067dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30077dff02feSmrg test $ac_status = 0; }; then : 300870f7c90cSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 300970f7c90cSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 301070f7c90cSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 301170f7c90cSmrg# so that the user can short-circuit this test for compilers unknown to 301270f7c90cSmrg# Autoconf. 301370f7c90cSmrgfor ac_file in $ac_files '' 3014a850946eSmrgdo 3015a850946eSmrg test -f "$ac_file" || continue 3016a850946eSmrg case $ac_file in 301770f7c90cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3018a850946eSmrg ;; 3019a850946eSmrg [ab].out ) 3020a850946eSmrg # We found the default executable, but exeext='' is most 3021a850946eSmrg # certainly right. 3022a850946eSmrg break;; 3023a850946eSmrg *.* ) 30247dff02feSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 302570f7c90cSmrg then :; else 302670f7c90cSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 302770f7c90cSmrg fi 302870f7c90cSmrg # We set ac_cv_exeext here because the later test for it is not 302970f7c90cSmrg # safe: cross compilers may not add the suffix if given an `-o' 303070f7c90cSmrg # argument, so we may need to know it at that point already. 303170f7c90cSmrg # Even if this section looks crufty: it has the advantage of 303270f7c90cSmrg # actually working. 3033a850946eSmrg break;; 3034a850946eSmrg * ) 3035a850946eSmrg break;; 3036a850946eSmrg esac 3037a850946eSmrgdone 303870f7c90cSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 303970f7c90cSmrg 3040a850946eSmrgelse 304170f7c90cSmrg ac_file='' 304270f7c90cSmrgfi 30437dff02feSmrgif test -z "$ac_file"; then : 30447dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30457dff02feSmrg$as_echo "no" >&6; } 30467dff02feSmrg$as_echo "$as_me: failed program was:" >&5 3047a850946eSmrgsed 's/^/| /' conftest.$ac_ext >&5 3048a850946eSmrg 30497dff02feSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 305070f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30517dff02feSmrg{ as_fn_set_status 77 30527dff02feSmrgas_fn_error "C compiler cannot create executables 30537dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; }; } 30547dff02feSmrgelse 30557dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30567dff02feSmrg$as_echo "yes" >&6; } 3057a850946eSmrgfi 30587dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 30597dff02feSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 30607dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 30617dff02feSmrg$as_echo "$ac_file" >&6; } 3062a850946eSmrgac_exeext=$ac_cv_exeext 3063a850946eSmrg 306470f7c90cSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3065a850946eSmrgac_clean_files=$ac_clean_files_save 30667dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 306770f7c90cSmrg$as_echo_n "checking for suffix of executables... " >&6; } 30687dff02feSmrgif { { ac_try="$ac_link" 306970f7c90cSmrgcase "(($ac_try" in 307070f7c90cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 307170f7c90cSmrg *) ac_try_echo=$ac_try;; 307270f7c90cSmrgesac 30737dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30747dff02feSmrg$as_echo "$ac_try_echo"; } >&5 307570f7c90cSmrg (eval "$ac_link") 2>&5 3076a850946eSmrg ac_status=$? 30777dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30787dff02feSmrg test $ac_status = 0; }; then : 3079a850946eSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3080a850946eSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3081a850946eSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3082a850946eSmrg# `rm'. 3083a850946eSmrgfor ac_file in conftest.exe conftest conftest.*; do 3084a850946eSmrg test -f "$ac_file" || continue 3085a850946eSmrg case $ac_file in 308670f7c90cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3087a850946eSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3088a850946eSmrg break;; 3089a850946eSmrg * ) break;; 3090a850946eSmrg esac 3091a850946eSmrgdone 3092a850946eSmrgelse 30937dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 309470f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30957dff02feSmrgas_fn_error "cannot compute suffix of executables: cannot compile and link 30967dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 3097a850946eSmrgfi 30987dff02feSmrgrm -f conftest conftest$ac_cv_exeext 30997dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 310070f7c90cSmrg$as_echo "$ac_cv_exeext" >&6; } 3101a850946eSmrg 3102a850946eSmrgrm -f conftest.$ac_ext 3103a850946eSmrgEXEEXT=$ac_cv_exeext 3104a850946eSmrgac_exeext=$EXEEXT 31057dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 31067dff02feSmrg/* end confdefs.h. */ 31077dff02feSmrg#include <stdio.h> 31087dff02feSmrgint 31097dff02feSmrgmain () 31107dff02feSmrg{ 31117dff02feSmrgFILE *f = fopen ("conftest.out", "w"); 31127dff02feSmrg return ferror (f) || fclose (f) != 0; 31137dff02feSmrg 31147dff02feSmrg ; 31157dff02feSmrg return 0; 31167dff02feSmrg} 31177dff02feSmrg_ACEOF 31187dff02feSmrgac_clean_files="$ac_clean_files conftest.out" 31197dff02feSmrg# Check that the compiler produces executables we can run. If not, either 31207dff02feSmrg# the compiler is broken, or we cross compile. 31217dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 31227dff02feSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 31237dff02feSmrgif test "$cross_compiling" != yes; then 31247dff02feSmrg { { ac_try="$ac_link" 31257dff02feSmrgcase "(($ac_try" in 31267dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31277dff02feSmrg *) ac_try_echo=$ac_try;; 31287dff02feSmrgesac 31297dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31307dff02feSmrg$as_echo "$ac_try_echo"; } >&5 31317dff02feSmrg (eval "$ac_link") 2>&5 31327dff02feSmrg ac_status=$? 31337dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31347dff02feSmrg test $ac_status = 0; } 31357dff02feSmrg if { ac_try='./conftest$ac_cv_exeext' 31367dff02feSmrg { { case "(($ac_try" in 31377dff02feSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31387dff02feSmrg *) ac_try_echo=$ac_try;; 31397dff02feSmrgesac 31407dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31417dff02feSmrg$as_echo "$ac_try_echo"; } >&5 31427dff02feSmrg (eval "$ac_try") 2>&5 31437dff02feSmrg ac_status=$? 31447dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31457dff02feSmrg test $ac_status = 0; }; }; then 31467dff02feSmrg cross_compiling=no 31477dff02feSmrg else 31487dff02feSmrg if test "$cross_compiling" = maybe; then 31497dff02feSmrg cross_compiling=yes 31507dff02feSmrg else 31517dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31527dff02feSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31537dff02feSmrgas_fn_error "cannot run C compiled programs. 31547dff02feSmrgIf you meant to cross compile, use \`--host'. 31557dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 31567dff02feSmrg fi 31577dff02feSmrg fi 31587dff02feSmrgfi 31597dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 31607dff02feSmrg$as_echo "$cross_compiling" >&6; } 31617dff02feSmrg 31627dff02feSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 31637dff02feSmrgac_clean_files=$ac_clean_files_save 31647dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 316570f7c90cSmrg$as_echo_n "checking for suffix of object files... " >&6; } 31667dff02feSmrgif test "${ac_cv_objext+set}" = set; then : 316770f7c90cSmrg $as_echo_n "(cached) " >&6 3168a850946eSmrgelse 31697dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3170a850946eSmrg/* end confdefs.h. */ 3171a850946eSmrg 3172a850946eSmrgint 3173a850946eSmrgmain () 3174a850946eSmrg{ 3175a850946eSmrg 3176a850946eSmrg ; 3177a850946eSmrg return 0; 3178a850946eSmrg} 3179a850946eSmrg_ACEOF 3180a850946eSmrgrm -f conftest.o conftest.obj 31817dff02feSmrgif { { ac_try="$ac_compile" 318270f7c90cSmrgcase "(($ac_try" in 318370f7c90cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 318470f7c90cSmrg *) ac_try_echo=$ac_try;; 318570f7c90cSmrgesac 31867dff02feSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31877dff02feSmrg$as_echo "$ac_try_echo"; } >&5 318870f7c90cSmrg (eval "$ac_compile") 2>&5 3189a850946eSmrg ac_status=$? 31907dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31917dff02feSmrg test $ac_status = 0; }; then : 319270f7c90cSmrg for ac_file in conftest.o conftest.obj conftest.*; do 319370f7c90cSmrg test -f "$ac_file" || continue; 3194a850946eSmrg case $ac_file in 319570f7c90cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3196a850946eSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3197a850946eSmrg break;; 3198a850946eSmrg esac 3199a850946eSmrgdone 3200a850946eSmrgelse 320170f7c90cSmrg $as_echo "$as_me: failed program was:" >&5 3202a850946eSmrgsed 's/^/| /' conftest.$ac_ext >&5 3203a850946eSmrg 32047dff02feSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 320570f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32067dff02feSmrgas_fn_error "cannot compute suffix of object files: cannot compile 32077dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 3208a850946eSmrgfi 3209a850946eSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3210a850946eSmrgfi 32117dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 321270f7c90cSmrg$as_echo "$ac_cv_objext" >&6; } 3213a850946eSmrgOBJEXT=$ac_cv_objext 3214a850946eSmrgac_objext=$OBJEXT 32157dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 321670f7c90cSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 32177dff02feSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 321870f7c90cSmrg $as_echo_n "(cached) " >&6 3219a850946eSmrgelse 32207dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221a850946eSmrg/* end confdefs.h. */ 3222a850946eSmrg 3223a850946eSmrgint 3224a850946eSmrgmain () 3225a850946eSmrg{ 3226a850946eSmrg#ifndef __GNUC__ 3227a850946eSmrg choke me 3228a850946eSmrg#endif 3229a850946eSmrg 3230a850946eSmrg ; 3231a850946eSmrg return 0; 3232a850946eSmrg} 3233a850946eSmrg_ACEOF 32347dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 3235a850946eSmrg ac_compiler_gnu=yes 3236a850946eSmrgelse 32377dff02feSmrg ac_compiler_gnu=no 3238a850946eSmrgfi 323970f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3240a850946eSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3241a850946eSmrg 3242a850946eSmrgfi 32437dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 324470f7c90cSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 324570f7c90cSmrgif test $ac_compiler_gnu = yes; then 324670f7c90cSmrg GCC=yes 324770f7c90cSmrgelse 324870f7c90cSmrg GCC= 324970f7c90cSmrgfi 3250a850946eSmrgac_test_CFLAGS=${CFLAGS+set} 3251a850946eSmrgac_save_CFLAGS=$CFLAGS 32527dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 325370f7c90cSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 32547dff02feSmrgif test "${ac_cv_prog_cc_g+set}" = set; then : 325570f7c90cSmrg $as_echo_n "(cached) " >&6 3256a850946eSmrgelse 325770f7c90cSmrg ac_save_c_werror_flag=$ac_c_werror_flag 325870f7c90cSmrg ac_c_werror_flag=yes 325970f7c90cSmrg ac_cv_prog_cc_g=no 326070f7c90cSmrg CFLAGS="-g" 32617dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262a850946eSmrg/* end confdefs.h. */ 3263a850946eSmrg 3264a850946eSmrgint 3265a850946eSmrgmain () 3266a850946eSmrg{ 3267a850946eSmrg 3268a850946eSmrg ; 3269a850946eSmrg return 0; 3270a850946eSmrg} 3271a850946eSmrg_ACEOF 32727dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 327370f7c90cSmrg ac_cv_prog_cc_g=yes 327470f7c90cSmrgelse 32757dff02feSmrg CFLAGS="" 32767dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 327770f7c90cSmrg/* end confdefs.h. */ 327870f7c90cSmrg 327970f7c90cSmrgint 328070f7c90cSmrgmain () 328170f7c90cSmrg{ 328270f7c90cSmrg 328370f7c90cSmrg ; 328470f7c90cSmrg return 0; 328570f7c90cSmrg} 328670f7c90cSmrg_ACEOF 32877dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 328870f7c90cSmrg 32897dff02feSmrgelse 32907dff02feSmrg ac_c_werror_flag=$ac_save_c_werror_flag 329170f7c90cSmrg CFLAGS="-g" 32927dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 329370f7c90cSmrg/* end confdefs.h. */ 329470f7c90cSmrg 329570f7c90cSmrgint 329670f7c90cSmrgmain () 329770f7c90cSmrg{ 329870f7c90cSmrg 329970f7c90cSmrg ; 330070f7c90cSmrg return 0; 330170f7c90cSmrg} 330270f7c90cSmrg_ACEOF 33037dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 3304a850946eSmrg ac_cv_prog_cc_g=yes 330570f7c90cSmrgfi 330670f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3307a850946eSmrgfi 330870f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 330970f7c90cSmrgfi 331070f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 331170f7c90cSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3312a850946eSmrgfi 33137dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 331470f7c90cSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3315a850946eSmrgif test "$ac_test_CFLAGS" = set; then 3316a850946eSmrg CFLAGS=$ac_save_CFLAGS 3317a850946eSmrgelif test $ac_cv_prog_cc_g = yes; then 3318a850946eSmrg if test "$GCC" = yes; then 3319a850946eSmrg CFLAGS="-g -O2" 3320a850946eSmrg else 3321a850946eSmrg CFLAGS="-g" 3322a850946eSmrg fi 3323a850946eSmrgelse 3324a850946eSmrg if test "$GCC" = yes; then 3325a850946eSmrg CFLAGS="-O2" 3326a850946eSmrg else 3327a850946eSmrg CFLAGS= 3328a850946eSmrg fi 3329a850946eSmrgfi 33307dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 333170f7c90cSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 33327dff02feSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 333370f7c90cSmrg $as_echo_n "(cached) " >&6 3334a850946eSmrgelse 333570f7c90cSmrg ac_cv_prog_cc_c89=no 3336a850946eSmrgac_save_CC=$CC 33377dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3338a850946eSmrg/* end confdefs.h. */ 3339a850946eSmrg#include <stdarg.h> 3340a850946eSmrg#include <stdio.h> 3341a850946eSmrg#include <sys/types.h> 3342a850946eSmrg#include <sys/stat.h> 3343a850946eSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3344a850946eSmrgstruct buf { int x; }; 3345a850946eSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3346a850946eSmrgstatic char *e (p, i) 3347a850946eSmrg char **p; 3348a850946eSmrg int i; 3349a850946eSmrg{ 3350a850946eSmrg return p[i]; 3351a850946eSmrg} 3352a850946eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3353a850946eSmrg{ 3354a850946eSmrg char *s; 3355a850946eSmrg va_list v; 3356a850946eSmrg va_start (v,p); 3357a850946eSmrg s = g (p, va_arg (v,int)); 3358a850946eSmrg va_end (v); 3359a850946eSmrg return s; 3360a850946eSmrg} 3361a850946eSmrg 3362a850946eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3363a850946eSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3364a850946eSmrg These don't provoke an error unfortunately, instead are silently treated 336570f7c90cSmrg as 'x'. The following induces an error, until -std is added to get 3366a850946eSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3367a850946eSmrg array size at least. It's necessary to write '\x00'==0 to get something 336870f7c90cSmrg that's true only with -std. */ 3369a850946eSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3370a850946eSmrg 337170f7c90cSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 337270f7c90cSmrg inside strings and character constants. */ 337370f7c90cSmrg#define FOO(x) 'x' 337470f7c90cSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 337570f7c90cSmrg 3376a850946eSmrgint test (int i, double x); 3377a850946eSmrgstruct s1 {int (*f) (int a);}; 3378a850946eSmrgstruct s2 {int (*f) (double a);}; 3379a850946eSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3380a850946eSmrgint argc; 3381a850946eSmrgchar **argv; 3382a850946eSmrgint 3383a850946eSmrgmain () 3384a850946eSmrg{ 3385a850946eSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3386a850946eSmrg ; 3387a850946eSmrg return 0; 3388a850946eSmrg} 3389a850946eSmrg_ACEOF 339070f7c90cSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 339170f7c90cSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3392a850946eSmrgdo 3393a850946eSmrg CC="$ac_save_CC $ac_arg" 33947dff02feSmrg if ac_fn_c_try_compile "$LINENO"; then : 339570f7c90cSmrg ac_cv_prog_cc_c89=$ac_arg 3396a850946eSmrgfi 339770f7c90cSmrgrm -f core conftest.err conftest.$ac_objext 339870f7c90cSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3399a850946eSmrgdone 340070f7c90cSmrgrm -f conftest.$ac_ext 3401a850946eSmrgCC=$ac_save_CC 3402a850946eSmrg 3403a850946eSmrgfi 340470f7c90cSmrg# AC_CACHE_VAL 340570f7c90cSmrgcase "x$ac_cv_prog_cc_c89" in 340670f7c90cSmrg x) 34077dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 340870f7c90cSmrg$as_echo "none needed" >&6; } ;; 340970f7c90cSmrg xno) 34107dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 341170f7c90cSmrg$as_echo "unsupported" >&6; } ;; 3412a850946eSmrg *) 341370f7c90cSmrg CC="$CC $ac_cv_prog_cc_c89" 34147dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 341570f7c90cSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3416a850946eSmrgesac 34177dff02feSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3418a850946eSmrg 34197dff02feSmrgfi 3420a850946eSmrg 3421a850946eSmrgac_ext=c 3422a850946eSmrgac_cpp='$CPP $CPPFLAGS' 3423a850946eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3424a850946eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3425a850946eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3426a850946eSmrgDEPDIR="${am__leading_dot}deps" 3427a850946eSmrg 342870f7c90cSmrgac_config_commands="$ac_config_commands depfiles" 3429a850946eSmrg 3430a850946eSmrg 3431a850946eSmrgam_make=${MAKE-make} 3432a850946eSmrgcat > confinc << 'END' 3433a850946eSmrgam__doit: 343470f7c90cSmrg @echo this is the am__doit target 3435a850946eSmrg.PHONY: am__doit 3436a850946eSmrgEND 3437a850946eSmrg# If we don't find an include directive, just comment out the code. 34387dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 343970f7c90cSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 3440a850946eSmrgam__include="#" 3441a850946eSmrgam__quote= 3442a850946eSmrg_am_result=none 3443a850946eSmrg# First try GNU make style include. 3444a850946eSmrgecho "include confinc" > confmf 344570f7c90cSmrg# Ignore all kinds of additional output from `make'. 344670f7c90cSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 344770f7c90cSmrg*the\ am__doit\ target*) 344870f7c90cSmrg am__include=include 344970f7c90cSmrg am__quote= 345070f7c90cSmrg _am_result=GNU 345170f7c90cSmrg ;; 345270f7c90cSmrgesac 3453a850946eSmrg# Now try BSD make style include. 3454a850946eSmrgif test "$am__include" = "#"; then 3455a850946eSmrg echo '.include "confinc"' > confmf 345670f7c90cSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 345770f7c90cSmrg *the\ am__doit\ target*) 345870f7c90cSmrg am__include=.include 345970f7c90cSmrg am__quote="\"" 346070f7c90cSmrg _am_result=BSD 346170f7c90cSmrg ;; 346270f7c90cSmrg esac 3463a850946eSmrgfi 3464a850946eSmrg 3465a850946eSmrg 34667dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 346770f7c90cSmrg$as_echo "$_am_result" >&6; } 3468a850946eSmrgrm -f confinc confmf 3469a850946eSmrg 347070f7c90cSmrg# Check whether --enable-dependency-tracking was given. 34717dff02feSmrgif test "${enable_dependency_tracking+set}" = set; then : 347270f7c90cSmrg enableval=$enable_dependency_tracking; 347370f7c90cSmrgfi 3474a850946eSmrg 3475a850946eSmrgif test "x$enable_dependency_tracking" != xno; then 3476a850946eSmrg am_depcomp="$ac_aux_dir/depcomp" 3477a850946eSmrg AMDEPBACKSLASH='\' 3478a850946eSmrgfi 347970f7c90cSmrg if test "x$enable_dependency_tracking" != xno; then 3480a850946eSmrg AMDEP_TRUE= 3481a850946eSmrg AMDEP_FALSE='#' 3482a850946eSmrgelse 3483a850946eSmrg AMDEP_TRUE='#' 3484a850946eSmrg AMDEP_FALSE= 3485a850946eSmrgfi 3486a850946eSmrg 3487a850946eSmrg 3488a850946eSmrg 3489a850946eSmrgdepcc="$CC" am_compiler_list= 3490a850946eSmrg 34917dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 349270f7c90cSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 34937dff02feSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 349470f7c90cSmrg $as_echo_n "(cached) " >&6 3495a850946eSmrgelse 3496a850946eSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3497a850946eSmrg # We make a subdir and do the tests there. Otherwise we can end up 3498a850946eSmrg # making bogus files that we don't know about and never remove. For 3499a850946eSmrg # instance it was reported that on HP-UX the gcc test will end up 3500a850946eSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3501a850946eSmrg # in D'. 3502a850946eSmrg mkdir conftest.dir 3503a850946eSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3504a850946eSmrg # using a relative directory. 3505a850946eSmrg cp "$am_depcomp" conftest.dir 3506a850946eSmrg cd conftest.dir 3507a850946eSmrg # We will build objects and dependencies in a subdirectory because 3508a850946eSmrg # it helps to detect inapplicable dependency modes. For instance 3509a850946eSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3510a850946eSmrg # side effect of compilation, but ICC will put the dependencies in 3511a850946eSmrg # the current directory while Tru64 will put them in the object 3512a850946eSmrg # directory. 3513a850946eSmrg mkdir sub 3514a850946eSmrg 3515a850946eSmrg am_cv_CC_dependencies_compiler_type=none 3516a850946eSmrg if test "$am_compiler_list" = ""; then 3517a850946eSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3518a850946eSmrg fi 351970f7c90cSmrg am__universal=false 352070f7c90cSmrg case " $depcc " in #( 352170f7c90cSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 352270f7c90cSmrg esac 352370f7c90cSmrg 3524a850946eSmrg for depmode in $am_compiler_list; do 3525a850946eSmrg # Setup a source with many dependencies, because some compilers 3526a850946eSmrg # like to wrap large dependency lists on column 80 (with \), and 3527a850946eSmrg # we should not choose a depcomp mode which is confused by this. 3528a850946eSmrg # 3529a850946eSmrg # We need to recreate these files for each test, as the compiler may 3530a850946eSmrg # overwrite some of them when testing with obscure command lines. 3531a850946eSmrg # This happens at least with the AIX C compiler. 3532a850946eSmrg : > sub/conftest.c 3533a850946eSmrg for i in 1 2 3 4 5 6; do 3534a850946eSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 353570f7c90cSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 353670f7c90cSmrg # Solaris 8's {/usr,}/bin/sh. 353770f7c90cSmrg touch sub/conftst$i.h 3538a850946eSmrg done 3539a850946eSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3540a850946eSmrg 354170f7c90cSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 354270f7c90cSmrg # mode. It turns out that the SunPro C++ compiler does not properly 354370f7c90cSmrg # handle `-M -o', and we need to detect this. Also, some Intel 354470f7c90cSmrg # versions had trouble with output in subdirs 354570f7c90cSmrg am__obj=sub/conftest.${OBJEXT-o} 354670f7c90cSmrg am__minus_obj="-o $am__obj" 3547a850946eSmrg case $depmode in 354870f7c90cSmrg gcc) 354970f7c90cSmrg # This depmode causes a compiler race in universal mode. 355070f7c90cSmrg test "$am__universal" = false || continue 355170f7c90cSmrg ;; 3552a850946eSmrg nosideeffect) 3553a850946eSmrg # after this tag, mechanisms are not by side-effect, so they'll 3554a850946eSmrg # only be used when explicitly requested 3555a850946eSmrg if test "x$enable_dependency_tracking" = xyes; then 3556a850946eSmrg continue 3557a850946eSmrg else 3558a850946eSmrg break 3559a850946eSmrg fi 3560a850946eSmrg ;; 356170f7c90cSmrg msvisualcpp | msvcmsys) 356270f7c90cSmrg # This compiler won't grok `-c -o', but also, the minuso test has 356370f7c90cSmrg # not run yet. These depmodes are late enough in the game, and 356470f7c90cSmrg # so weak that their functioning should not be impacted. 356570f7c90cSmrg am__obj=conftest.${OBJEXT-o} 356670f7c90cSmrg am__minus_obj= 356770f7c90cSmrg ;; 3568a850946eSmrg none) break ;; 3569a850946eSmrg esac 3570a850946eSmrg if depmode=$depmode \ 357170f7c90cSmrg source=sub/conftest.c object=$am__obj \ 3572a850946eSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 357370f7c90cSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3574a850946eSmrg >/dev/null 2>conftest.err && 357570f7c90cSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3576a850946eSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 357770f7c90cSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3578a850946eSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3579a850946eSmrg # icc doesn't choke on unknown options, it will just issue warnings 358070f7c90cSmrg # or remarks (even with -Werror). So we grep stderr for any message 358170f7c90cSmrg # that says an option was ignored or not supported. 358270f7c90cSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 358370f7c90cSmrg # icc: Command line warning: ignoring option '-M'; no argument required 358470f7c90cSmrg # The diagnosis changed in icc 8.0: 358570f7c90cSmrg # icc: Command line remark: option '-MP' not supported 358670f7c90cSmrg if (grep 'ignoring option' conftest.err || 358770f7c90cSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3588a850946eSmrg am_cv_CC_dependencies_compiler_type=$depmode 3589a850946eSmrg break 3590a850946eSmrg fi 3591a850946eSmrg fi 3592a850946eSmrg done 3593a850946eSmrg 3594a850946eSmrg cd .. 3595a850946eSmrg rm -rf conftest.dir 3596a850946eSmrgelse 3597a850946eSmrg am_cv_CC_dependencies_compiler_type=none 3598a850946eSmrgfi 3599a850946eSmrg 3600a850946eSmrgfi 36017dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 360270f7c90cSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3603a850946eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3604a850946eSmrg 360570f7c90cSmrg if 3606a850946eSmrg test "x$enable_dependency_tracking" != xno \ 3607a850946eSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3608a850946eSmrg am__fastdepCC_TRUE= 3609a850946eSmrg am__fastdepCC_FALSE='#' 3610a850946eSmrgelse 3611a850946eSmrg am__fastdepCC_TRUE='#' 3612a850946eSmrg am__fastdepCC_FALSE= 3613a850946eSmrgfi 3614a850946eSmrg 3615a850946eSmrg 3616a850946eSmrg 3617a850946eSmrg 36187dff02feSmrg# Check for functional strnlen 3619a850946eSmrg 362070f7c90cSmrgac_ext=c 362170f7c90cSmrgac_cpp='$CPP $CPPFLAGS' 362270f7c90cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 362370f7c90cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 362470f7c90cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36257dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 362670f7c90cSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 362770f7c90cSmrg# On Suns, sometimes $CPP names a directory. 362870f7c90cSmrgif test -n "$CPP" && test -d "$CPP"; then 362970f7c90cSmrg CPP= 363070f7c90cSmrgfi 363170f7c90cSmrgif test -z "$CPP"; then 36327dff02feSmrg if test "${ac_cv_prog_CPP+set}" = set; then : 363370f7c90cSmrg $as_echo_n "(cached) " >&6 363470f7c90cSmrgelse 363570f7c90cSmrg # Double quotes because CPP needs to be expanded 363670f7c90cSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 363770f7c90cSmrg do 363870f7c90cSmrg ac_preproc_ok=false 363970f7c90cSmrgfor ac_c_preproc_warn_flag in '' yes 364070f7c90cSmrgdo 364170f7c90cSmrg # Use a header file that comes with gcc, so configuring glibc 364270f7c90cSmrg # with a fresh cross-compiler works. 364370f7c90cSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 364470f7c90cSmrg # <limits.h> exists even on freestanding compilers. 364570f7c90cSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 364670f7c90cSmrg # not just through cpp. "Syntax error" is here to catch this case. 36477dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 364870f7c90cSmrg/* end confdefs.h. */ 364970f7c90cSmrg#ifdef __STDC__ 365070f7c90cSmrg# include <limits.h> 365170f7c90cSmrg#else 365270f7c90cSmrg# include <assert.h> 365370f7c90cSmrg#endif 365470f7c90cSmrg Syntax error 365570f7c90cSmrg_ACEOF 36567dff02feSmrgif ac_fn_c_try_cpp "$LINENO"; then : 365770f7c90cSmrg 36587dff02feSmrgelse 365970f7c90cSmrg # Broken: fails on valid input. 366070f7c90cSmrgcontinue 366170f7c90cSmrgfi 366270f7c90cSmrgrm -f conftest.err conftest.$ac_ext 366370f7c90cSmrg 366470f7c90cSmrg # OK, works on sane cases. Now check whether nonexistent headers 366570f7c90cSmrg # can be detected and how. 36667dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 366770f7c90cSmrg/* end confdefs.h. */ 366870f7c90cSmrg#include <ac_nonexistent.h> 366970f7c90cSmrg_ACEOF 36707dff02feSmrgif ac_fn_c_try_cpp "$LINENO"; then : 367170f7c90cSmrg # Broken: success on invalid input. 367270f7c90cSmrgcontinue 367370f7c90cSmrgelse 367470f7c90cSmrg # Passes both tests. 367570f7c90cSmrgac_preproc_ok=: 367670f7c90cSmrgbreak 367770f7c90cSmrgfi 367870f7c90cSmrgrm -f conftest.err conftest.$ac_ext 367970f7c90cSmrg 368070f7c90cSmrgdone 368170f7c90cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 368270f7c90cSmrgrm -f conftest.err conftest.$ac_ext 36837dff02feSmrgif $ac_preproc_ok; then : 368470f7c90cSmrg break 368570f7c90cSmrgfi 368670f7c90cSmrg 368770f7c90cSmrg done 368870f7c90cSmrg ac_cv_prog_CPP=$CPP 368970f7c90cSmrg 369070f7c90cSmrgfi 369170f7c90cSmrg CPP=$ac_cv_prog_CPP 369270f7c90cSmrgelse 369370f7c90cSmrg ac_cv_prog_CPP=$CPP 369470f7c90cSmrgfi 36957dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 369670f7c90cSmrg$as_echo "$CPP" >&6; } 369770f7c90cSmrgac_preproc_ok=false 369870f7c90cSmrgfor ac_c_preproc_warn_flag in '' yes 369970f7c90cSmrgdo 370070f7c90cSmrg # Use a header file that comes with gcc, so configuring glibc 370170f7c90cSmrg # with a fresh cross-compiler works. 370270f7c90cSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 370370f7c90cSmrg # <limits.h> exists even on freestanding compilers. 370470f7c90cSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 370570f7c90cSmrg # not just through cpp. "Syntax error" is here to catch this case. 37067dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 370770f7c90cSmrg/* end confdefs.h. */ 370870f7c90cSmrg#ifdef __STDC__ 370970f7c90cSmrg# include <limits.h> 371070f7c90cSmrg#else 371170f7c90cSmrg# include <assert.h> 371270f7c90cSmrg#endif 371370f7c90cSmrg Syntax error 371470f7c90cSmrg_ACEOF 37157dff02feSmrgif ac_fn_c_try_cpp "$LINENO"; then : 371670f7c90cSmrg 37177dff02feSmrgelse 371870f7c90cSmrg # Broken: fails on valid input. 371970f7c90cSmrgcontinue 372070f7c90cSmrgfi 372170f7c90cSmrgrm -f conftest.err conftest.$ac_ext 372270f7c90cSmrg 372370f7c90cSmrg # OK, works on sane cases. Now check whether nonexistent headers 372470f7c90cSmrg # can be detected and how. 37257dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 372670f7c90cSmrg/* end confdefs.h. */ 372770f7c90cSmrg#include <ac_nonexistent.h> 372870f7c90cSmrg_ACEOF 37297dff02feSmrgif ac_fn_c_try_cpp "$LINENO"; then : 373070f7c90cSmrg # Broken: success on invalid input. 373170f7c90cSmrgcontinue 373270f7c90cSmrgelse 373370f7c90cSmrg # Passes both tests. 373470f7c90cSmrgac_preproc_ok=: 373570f7c90cSmrgbreak 373670f7c90cSmrgfi 373770f7c90cSmrgrm -f conftest.err conftest.$ac_ext 373870f7c90cSmrg 373970f7c90cSmrgdone 374070f7c90cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 374170f7c90cSmrgrm -f conftest.err conftest.$ac_ext 37427dff02feSmrgif $ac_preproc_ok; then : 37437dff02feSmrg 374470f7c90cSmrgelse 37457dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 374670f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 37477dff02feSmrgas_fn_error "C preprocessor \"$CPP\" fails sanity check 37487dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 374970f7c90cSmrgfi 375070f7c90cSmrg 375170f7c90cSmrgac_ext=c 375270f7c90cSmrgac_cpp='$CPP $CPPFLAGS' 375370f7c90cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 375470f7c90cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 375570f7c90cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 375670f7c90cSmrg 375770f7c90cSmrg 37587dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 375970f7c90cSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 37607dff02feSmrgif test "${ac_cv_path_GREP+set}" = set; then : 376170f7c90cSmrg $as_echo_n "(cached) " >&6 376270f7c90cSmrgelse 376370f7c90cSmrg if test -z "$GREP"; then 376470f7c90cSmrg ac_path_GREP_found=false 376570f7c90cSmrg # Loop through the user's path and test for each of PROGNAME-LIST 376670f7c90cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 376770f7c90cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 376870f7c90cSmrgdo 376970f7c90cSmrg IFS=$as_save_IFS 377070f7c90cSmrg test -z "$as_dir" && as_dir=. 37717dff02feSmrg for ac_prog in grep ggrep; do 377270f7c90cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 377370f7c90cSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 377470f7c90cSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 377570f7c90cSmrg# Check for GNU ac_path_GREP and select it if it is found. 377670f7c90cSmrg # Check for GNU $ac_path_GREP 377770f7c90cSmrgcase `"$ac_path_GREP" --version 2>&1` in 377870f7c90cSmrg*GNU*) 377970f7c90cSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 378070f7c90cSmrg*) 378170f7c90cSmrg ac_count=0 378270f7c90cSmrg $as_echo_n 0123456789 >"conftest.in" 378370f7c90cSmrg while : 378470f7c90cSmrg do 378570f7c90cSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 378670f7c90cSmrg mv "conftest.tmp" "conftest.in" 378770f7c90cSmrg cp "conftest.in" "conftest.nl" 378870f7c90cSmrg $as_echo 'GREP' >> "conftest.nl" 378970f7c90cSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 379070f7c90cSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 37917dff02feSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 379270f7c90cSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 379370f7c90cSmrg # Best one so far, save it but keep looking for a better one 379470f7c90cSmrg ac_cv_path_GREP="$ac_path_GREP" 379570f7c90cSmrg ac_path_GREP_max=$ac_count 379670f7c90cSmrg fi 379770f7c90cSmrg # 10*(2^10) chars as input seems more than enough 379870f7c90cSmrg test $ac_count -gt 10 && break 379970f7c90cSmrg done 380070f7c90cSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 380170f7c90cSmrgesac 380270f7c90cSmrg 380370f7c90cSmrg $ac_path_GREP_found && break 3 380470f7c90cSmrg done 380570f7c90cSmrg done 38067dff02feSmrg done 380770f7c90cSmrgIFS=$as_save_IFS 380870f7c90cSmrg if test -z "$ac_cv_path_GREP"; then 38097dff02feSmrg as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 381070f7c90cSmrg fi 381170f7c90cSmrgelse 381270f7c90cSmrg ac_cv_path_GREP=$GREP 381370f7c90cSmrgfi 381470f7c90cSmrg 381570f7c90cSmrgfi 38167dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 381770f7c90cSmrg$as_echo "$ac_cv_path_GREP" >&6; } 381870f7c90cSmrg GREP="$ac_cv_path_GREP" 381970f7c90cSmrg 382070f7c90cSmrg 38217dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 382270f7c90cSmrg$as_echo_n "checking for egrep... " >&6; } 38237dff02feSmrgif test "${ac_cv_path_EGREP+set}" = set; then : 382470f7c90cSmrg $as_echo_n "(cached) " >&6 382570f7c90cSmrgelse 382670f7c90cSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 382770f7c90cSmrg then ac_cv_path_EGREP="$GREP -E" 382870f7c90cSmrg else 382970f7c90cSmrg if test -z "$EGREP"; then 383070f7c90cSmrg ac_path_EGREP_found=false 383170f7c90cSmrg # Loop through the user's path and test for each of PROGNAME-LIST 383270f7c90cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 383370f7c90cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 383470f7c90cSmrgdo 383570f7c90cSmrg IFS=$as_save_IFS 383670f7c90cSmrg test -z "$as_dir" && as_dir=. 38377dff02feSmrg for ac_prog in egrep; do 383870f7c90cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 383970f7c90cSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 384070f7c90cSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 384170f7c90cSmrg# Check for GNU ac_path_EGREP and select it if it is found. 384270f7c90cSmrg # Check for GNU $ac_path_EGREP 384370f7c90cSmrgcase `"$ac_path_EGREP" --version 2>&1` in 384470f7c90cSmrg*GNU*) 384570f7c90cSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 384670f7c90cSmrg*) 384770f7c90cSmrg ac_count=0 384870f7c90cSmrg $as_echo_n 0123456789 >"conftest.in" 384970f7c90cSmrg while : 385070f7c90cSmrg do 385170f7c90cSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 385270f7c90cSmrg mv "conftest.tmp" "conftest.in" 385370f7c90cSmrg cp "conftest.in" "conftest.nl" 385470f7c90cSmrg $as_echo 'EGREP' >> "conftest.nl" 385570f7c90cSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 385670f7c90cSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 38577dff02feSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 385870f7c90cSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 385970f7c90cSmrg # Best one so far, save it but keep looking for a better one 386070f7c90cSmrg ac_cv_path_EGREP="$ac_path_EGREP" 386170f7c90cSmrg ac_path_EGREP_max=$ac_count 386270f7c90cSmrg fi 386370f7c90cSmrg # 10*(2^10) chars as input seems more than enough 386470f7c90cSmrg test $ac_count -gt 10 && break 386570f7c90cSmrg done 386670f7c90cSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 386770f7c90cSmrgesac 386870f7c90cSmrg 386970f7c90cSmrg $ac_path_EGREP_found && break 3 387070f7c90cSmrg done 387170f7c90cSmrg done 38727dff02feSmrg done 387370f7c90cSmrgIFS=$as_save_IFS 387470f7c90cSmrg if test -z "$ac_cv_path_EGREP"; then 38757dff02feSmrg as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 387670f7c90cSmrg fi 387770f7c90cSmrgelse 387870f7c90cSmrg ac_cv_path_EGREP=$EGREP 387970f7c90cSmrgfi 388070f7c90cSmrg 388170f7c90cSmrg fi 388270f7c90cSmrgfi 38837dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 388470f7c90cSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 388570f7c90cSmrg EGREP="$ac_cv_path_EGREP" 388670f7c90cSmrg 388770f7c90cSmrg 38887dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 388970f7c90cSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 38907dff02feSmrgif test "${ac_cv_header_stdc+set}" = set; then : 389170f7c90cSmrg $as_echo_n "(cached) " >&6 389270f7c90cSmrgelse 38937dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 389470f7c90cSmrg/* end confdefs.h. */ 389570f7c90cSmrg#include <stdlib.h> 389670f7c90cSmrg#include <stdarg.h> 389770f7c90cSmrg#include <string.h> 389870f7c90cSmrg#include <float.h> 389970f7c90cSmrg 390070f7c90cSmrgint 390170f7c90cSmrgmain () 390270f7c90cSmrg{ 390370f7c90cSmrg 390470f7c90cSmrg ; 390570f7c90cSmrg return 0; 390670f7c90cSmrg} 390770f7c90cSmrg_ACEOF 39087dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 390970f7c90cSmrg ac_cv_header_stdc=yes 391070f7c90cSmrgelse 39117dff02feSmrg ac_cv_header_stdc=no 391270f7c90cSmrgfi 391370f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 391470f7c90cSmrg 391570f7c90cSmrgif test $ac_cv_header_stdc = yes; then 391670f7c90cSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 39177dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 391870f7c90cSmrg/* end confdefs.h. */ 391970f7c90cSmrg#include <string.h> 392070f7c90cSmrg 392170f7c90cSmrg_ACEOF 392270f7c90cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39237dff02feSmrg $EGREP "memchr" >/dev/null 2>&1; then : 39247dff02feSmrg 392570f7c90cSmrgelse 392670f7c90cSmrg ac_cv_header_stdc=no 392770f7c90cSmrgfi 392870f7c90cSmrgrm -f conftest* 392970f7c90cSmrg 393070f7c90cSmrgfi 393170f7c90cSmrg 393270f7c90cSmrgif test $ac_cv_header_stdc = yes; then 393370f7c90cSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 39347dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 393570f7c90cSmrg/* end confdefs.h. */ 393670f7c90cSmrg#include <stdlib.h> 393770f7c90cSmrg 393870f7c90cSmrg_ACEOF 393970f7c90cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39407dff02feSmrg $EGREP "free" >/dev/null 2>&1; then : 39417dff02feSmrg 394270f7c90cSmrgelse 394370f7c90cSmrg ac_cv_header_stdc=no 394470f7c90cSmrgfi 394570f7c90cSmrgrm -f conftest* 394670f7c90cSmrg 394770f7c90cSmrgfi 394870f7c90cSmrg 394970f7c90cSmrgif test $ac_cv_header_stdc = yes; then 395070f7c90cSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 39517dff02feSmrg if test "$cross_compiling" = yes; then : 395270f7c90cSmrg : 395370f7c90cSmrgelse 39547dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 395570f7c90cSmrg/* end confdefs.h. */ 395670f7c90cSmrg#include <ctype.h> 395770f7c90cSmrg#include <stdlib.h> 395870f7c90cSmrg#if ((' ' & 0x0FF) == 0x020) 395970f7c90cSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 396070f7c90cSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 396170f7c90cSmrg#else 396270f7c90cSmrg# define ISLOWER(c) \ 396370f7c90cSmrg (('a' <= (c) && (c) <= 'i') \ 396470f7c90cSmrg || ('j' <= (c) && (c) <= 'r') \ 396570f7c90cSmrg || ('s' <= (c) && (c) <= 'z')) 396670f7c90cSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 396770f7c90cSmrg#endif 396870f7c90cSmrg 396970f7c90cSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 397070f7c90cSmrgint 397170f7c90cSmrgmain () 397270f7c90cSmrg{ 397370f7c90cSmrg int i; 397470f7c90cSmrg for (i = 0; i < 256; i++) 397570f7c90cSmrg if (XOR (islower (i), ISLOWER (i)) 397670f7c90cSmrg || toupper (i) != TOUPPER (i)) 397770f7c90cSmrg return 2; 397870f7c90cSmrg return 0; 397970f7c90cSmrg} 398070f7c90cSmrg_ACEOF 39817dff02feSmrgif ac_fn_c_try_run "$LINENO"; then : 398270f7c90cSmrg 39837dff02feSmrgelse 39847dff02feSmrg ac_cv_header_stdc=no 398570f7c90cSmrgfi 39867dff02feSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39877dff02feSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 398870f7c90cSmrgfi 398970f7c90cSmrg 399070f7c90cSmrgfi 399170f7c90cSmrgfi 39927dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 399370f7c90cSmrg$as_echo "$ac_cv_header_stdc" >&6; } 399470f7c90cSmrgif test $ac_cv_header_stdc = yes; then 399570f7c90cSmrg 39967dff02feSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 399770f7c90cSmrg 399870f7c90cSmrgfi 399970f7c90cSmrg 400070f7c90cSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 40017dff02feSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40027dff02feSmrg inttypes.h stdint.h unistd.h 40037dff02feSmrgdo : 40047dff02feSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40057dff02feSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40067dff02feSmrg" 40077dff02feSmrgeval as_val=\$$as_ac_Header 40087dff02feSmrg if test "x$as_val" = x""yes; then : 40097dff02feSmrg cat >>confdefs.h <<_ACEOF 40107dff02feSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40117dff02feSmrg_ACEOF 40127dff02feSmrg 40137dff02feSmrgfi 40147dff02feSmrg 40157dff02feSmrgdone 401670f7c90cSmrg 401770f7c90cSmrg 401870f7c90cSmrg 40197dff02feSmrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 40207dff02feSmrgif test "x$ac_cv_header_minix_config_h" = x""yes; then : 40217dff02feSmrg MINIX=yes 40227dff02feSmrgelse 40237dff02feSmrg MINIX= 40247dff02feSmrgfi 402570f7c90cSmrg 402670f7c90cSmrg 40277dff02feSmrg if test "$MINIX" = yes; then 402870f7c90cSmrg 40297dff02feSmrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 403070f7c90cSmrg 403170f7c90cSmrg 40327dff02feSmrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 403370f7c90cSmrg 40347dff02feSmrg 40357dff02feSmrg$as_echo "#define _MINIX 1" >>confdefs.h 40367dff02feSmrg 40377dff02feSmrg fi 40387dff02feSmrg 40397dff02feSmrg 40407dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 40417dff02feSmrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 40427dff02feSmrgif test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 404370f7c90cSmrg $as_echo_n "(cached) " >&6 404470f7c90cSmrgelse 40457dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 404670f7c90cSmrg/* end confdefs.h. */ 404770f7c90cSmrg 40487dff02feSmrg# define __EXTENSIONS__ 1 40497dff02feSmrg $ac_includes_default 40507dff02feSmrgint 40517dff02feSmrgmain () 40527dff02feSmrg{ 40537dff02feSmrg 40547dff02feSmrg ; 40557dff02feSmrg return 0; 40567dff02feSmrg} 405770f7c90cSmrg_ACEOF 40587dff02feSmrgif ac_fn_c_try_compile "$LINENO"; then : 40597dff02feSmrg ac_cv_safe_to_define___extensions__=yes 406070f7c90cSmrgelse 40617dff02feSmrg ac_cv_safe_to_define___extensions__=no 406270f7c90cSmrgfi 406370f7c90cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 406470f7c90cSmrgfi 40657dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 40667dff02feSmrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 40677dff02feSmrg test $ac_cv_safe_to_define___extensions__ = yes && 40687dff02feSmrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 40697dff02feSmrg 40707dff02feSmrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 40717dff02feSmrg 40727dff02feSmrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 40737dff02feSmrg 40747dff02feSmrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 40757dff02feSmrg 40767dff02feSmrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 40777dff02feSmrg 40787dff02feSmrg 40797dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 40807dff02feSmrg$as_echo_n "checking for working strnlen... " >&6; } 40817dff02feSmrgif test "${ac_cv_func_strnlen_working+set}" = set; then : 40827dff02feSmrg $as_echo_n "(cached) " >&6 40837dff02feSmrgelse 40847dff02feSmrg if test "$cross_compiling" = yes; then : 40857dff02feSmrg ac_cv_func_strnlen_working=no 40867dff02feSmrgelse 40877dff02feSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40887dff02feSmrg/* end confdefs.h. */ 40897dff02feSmrg$ac_includes_default 40907dff02feSmrgint 40917dff02feSmrgmain () 40927dff02feSmrg{ 40937dff02feSmrg 40947dff02feSmrg#define S "foobar" 40957dff02feSmrg#define S_LEN (sizeof S - 1) 40967dff02feSmrg 40977dff02feSmrg /* At least one implementation is buggy: that of AIX 4.3 would 40987dff02feSmrg give strnlen (S, 1) == 3. */ 40997dff02feSmrg 41007dff02feSmrg int i; 41017dff02feSmrg for (i = 0; i < S_LEN + 1; ++i) 41027dff02feSmrg { 41037dff02feSmrg int expected = i <= S_LEN ? i : S_LEN; 41047dff02feSmrg if (strnlen (S, i) != expected) 41057dff02feSmrg return 1; 41067dff02feSmrg } 41077dff02feSmrg return 0; 41087dff02feSmrg 41097dff02feSmrg ; 41107dff02feSmrg return 0; 41117dff02feSmrg} 411270f7c90cSmrg_ACEOF 41137dff02feSmrgif ac_fn_c_try_run "$LINENO"; then : 41147dff02feSmrg ac_cv_func_strnlen_working=yes 41157dff02feSmrgelse 41167dff02feSmrg ac_cv_func_strnlen_working=no 41177dff02feSmrgfi 41187dff02feSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41197dff02feSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 41207dff02feSmrgfi 412170f7c90cSmrg 412270f7c90cSmrgfi 41237dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 41247dff02feSmrg$as_echo "$ac_cv_func_strnlen_working" >&6; } 41257dff02feSmrgtest $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 41267dff02feSmrg *" strnlen.$ac_objext "* ) ;; 41277dff02feSmrg *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 41287dff02feSmrg ;; 41297dff02feSmrgesac 413070f7c90cSmrg 413170f7c90cSmrg 41327dff02feSmrgif test "x$ac_cv_func_strnlen_working" = xyes; then 413370f7c90cSmrg 41347dff02feSmrg$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 41357dff02feSmrg 41367dff02feSmrgfi 41377dff02feSmrg 41387dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 413970f7c90cSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 41407dff02feSmrgif test "${ac_cv_prog_cc_c99+set}" = set; then : 414170f7c90cSmrg $as_echo_n "(cached) " >&6 414270f7c90cSmrgelse 414370f7c90cSmrg ac_cv_prog_cc_c99=no 414470f7c90cSmrgac_save_CC=$CC 41457dff02feSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 414670f7c90cSmrg/* end confdefs.h. */ 414770f7c90cSmrg#include <stdarg.h> 414870f7c90cSmrg#include <stdbool.h> 414970f7c90cSmrg#include <stdlib.h> 415070f7c90cSmrg#include <wchar.h> 415170f7c90cSmrg#include <stdio.h> 415270f7c90cSmrg 415370f7c90cSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 415470f7c90cSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 415570f7c90cSmrg#define showlist(...) puts (#__VA_ARGS__) 415670f7c90cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 415770f7c90cSmrgstatic void 415870f7c90cSmrgtest_varargs_macros (void) 415970f7c90cSmrg{ 416070f7c90cSmrg int x = 1234; 416170f7c90cSmrg int y = 5678; 416270f7c90cSmrg debug ("Flag"); 416370f7c90cSmrg debug ("X = %d\n", x); 416470f7c90cSmrg showlist (The first, second, and third items.); 416570f7c90cSmrg report (x>y, "x is %d but y is %d", x, y); 416670f7c90cSmrg} 416770f7c90cSmrg 416870f7c90cSmrg// Check long long types. 416970f7c90cSmrg#define BIG64 18446744073709551615ull 417070f7c90cSmrg#define BIG32 4294967295ul 417170f7c90cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 417270f7c90cSmrg#if !BIG_OK 417370f7c90cSmrg your preprocessor is broken; 417470f7c90cSmrg#endif 417570f7c90cSmrg#if BIG_OK 417670f7c90cSmrg#else 417770f7c90cSmrg your preprocessor is broken; 417870f7c90cSmrg#endif 417970f7c90cSmrgstatic long long int bignum = -9223372036854775807LL; 418070f7c90cSmrgstatic unsigned long long int ubignum = BIG64; 418170f7c90cSmrg 418270f7c90cSmrgstruct incomplete_array 418370f7c90cSmrg{ 418470f7c90cSmrg int datasize; 418570f7c90cSmrg double data[]; 418670f7c90cSmrg}; 418770f7c90cSmrg 418870f7c90cSmrgstruct named_init { 418970f7c90cSmrg int number; 419070f7c90cSmrg const wchar_t *name; 419170f7c90cSmrg double average; 419270f7c90cSmrg}; 419370f7c90cSmrg 419470f7c90cSmrgtypedef const char *ccp; 419570f7c90cSmrg 419670f7c90cSmrgstatic inline int 419770f7c90cSmrgtest_restrict (ccp restrict text) 419870f7c90cSmrg{ 419970f7c90cSmrg // See if C++-style comments work. 420070f7c90cSmrg // Iterate through items via the restricted pointer. 420170f7c90cSmrg // Also check for declarations in for loops. 420270f7c90cSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 420370f7c90cSmrg continue; 420470f7c90cSmrg return 0; 420570f7c90cSmrg} 420670f7c90cSmrg 420770f7c90cSmrg// Check varargs and va_copy. 420870f7c90cSmrgstatic void 420970f7c90cSmrgtest_varargs (const char *format, ...) 421070f7c90cSmrg{ 421170f7c90cSmrg va_list args; 421270f7c90cSmrg va_start (args, format); 421370f7c90cSmrg va_list args_copy; 421470f7c90cSmrg va_copy (args_copy, args); 421570f7c90cSmrg 421670f7c90cSmrg const char *str; 421770f7c90cSmrg int number; 421870f7c90cSmrg float fnumber; 421970f7c90cSmrg 422070f7c90cSmrg while (*format) 422170f7c90cSmrg { 422270f7c90cSmrg switch (*format++) 422370f7c90cSmrg { 422470f7c90cSmrg case 's': // string 422570f7c90cSmrg str = va_arg (args_copy, const char *); 422670f7c90cSmrg break; 422770f7c90cSmrg case 'd': // int 422870f7c90cSmrg number = va_arg (args_copy, int); 422970f7c90cSmrg break; 423070f7c90cSmrg case 'f': // float 423170f7c90cSmrg fnumber = va_arg (args_copy, double); 423270f7c90cSmrg break; 423370f7c90cSmrg default: 423470f7c90cSmrg break; 423570f7c90cSmrg } 423670f7c90cSmrg } 423770f7c90cSmrg va_end (args_copy); 423870f7c90cSmrg va_end (args); 423970f7c90cSmrg} 424070f7c90cSmrg 424170f7c90cSmrgint 424270f7c90cSmrgmain () 424370f7c90cSmrg{ 424470f7c90cSmrg 424570f7c90cSmrg // Check bool. 424670f7c90cSmrg _Bool success = false; 424770f7c90cSmrg 424870f7c90cSmrg // Check restrict. 424970f7c90cSmrg if (test_restrict ("String literal") == 0) 425070f7c90cSmrg success = true; 425170f7c90cSmrg char *restrict newvar = "Another string"; 425270f7c90cSmrg 425370f7c90cSmrg // Check varargs. 425470f7c90cSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 425570f7c90cSmrg test_varargs_macros (); 425670f7c90cSmrg 425770f7c90cSmrg // Check flexible array members. 425870f7c90cSmrg struct incomplete_array *ia = 425970f7c90cSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 426070f7c90cSmrg ia->datasize = 10; 426170f7c90cSmrg for (int i = 0; i < ia->datasize; ++i) 426270f7c90cSmrg ia->data[i] = i * 1.234; 426370f7c90cSmrg 426470f7c90cSmrg // Check named initializers. 426570f7c90cSmrg struct named_init ni = { 426670f7c90cSmrg .number = 34, 426770f7c90cSmrg .name = L"Test wide string", 426870f7c90cSmrg .average = 543.34343, 426970f7c90cSmrg }; 427070f7c90cSmrg 427170f7c90cSmrg ni.number = 58; 427270f7c90cSmrg 427370f7c90cSmrg int dynamic_array[ni.number]; 427470f7c90cSmrg dynamic_array[ni.number - 1] = 543; 427570f7c90cSmrg 427670f7c90cSmrg // work around unused variable warnings 427770f7c90cSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 427870f7c90cSmrg || dynamic_array[ni.number - 1] != 543); 427970f7c90cSmrg 42807dff02feSmrg ; 42817dff02feSmrg return 0; 42827dff02feSmrg} 42837dff02feSmrg_ACEOF 42847dff02feSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 42857dff02feSmrgdo 42867dff02feSmrg CC="$ac_save_CC $ac_arg" 42877dff02feSmrg if ac_fn_c_try_compile "$LINENO"; then : 42887dff02feSmrg ac_cv_prog_cc_c99=$ac_arg 42897dff02feSmrgfi 42907dff02feSmrgrm -f core conftest.err conftest.$ac_objext 42917dff02feSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 42927dff02feSmrgdone 42937dff02feSmrgrm -f conftest.$ac_ext 42947dff02feSmrgCC=$ac_save_CC 42957dff02feSmrg 42967dff02feSmrgfi 42977dff02feSmrg# AC_CACHE_VAL 42987dff02feSmrgcase "x$ac_cv_prog_cc_c99" in 42997dff02feSmrg x) 43007dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 43017dff02feSmrg$as_echo "none needed" >&6; } ;; 43027dff02feSmrg xno) 43037dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 43047dff02feSmrg$as_echo "unsupported" >&6; } ;; 43057dff02feSmrg *) 43067dff02feSmrg CC="$CC $ac_cv_prog_cc_c99" 43077dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 43087dff02feSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 43097dff02feSmrgesac 43107dff02feSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 43117dff02feSmrg 43127dff02feSmrgfi 43137dff02feSmrg 43147dff02feSmrg 43157dff02feSmrg 43167dff02feSmrg 43177dff02feSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 43187dff02feSmrg if test -n "$ac_tool_prefix"; then 43197dff02feSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43207dff02feSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 43217dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43227dff02feSmrg$as_echo_n "checking for $ac_word... " >&6; } 43237dff02feSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 43247dff02feSmrg $as_echo_n "(cached) " >&6 43257dff02feSmrgelse 43267dff02feSmrg case $PKG_CONFIG in 43277dff02feSmrg [\\/]* | ?:[\\/]*) 43287dff02feSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 43297dff02feSmrg ;; 43307dff02feSmrg *) 43317dff02feSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43327dff02feSmrgfor as_dir in $PATH 43337dff02feSmrgdo 43347dff02feSmrg IFS=$as_save_IFS 43357dff02feSmrg test -z "$as_dir" && as_dir=. 43367dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 43377dff02feSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 43387dff02feSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 43397dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43407dff02feSmrg break 2 43417dff02feSmrg fi 43427dff02feSmrgdone 43437dff02feSmrg done 43447dff02feSmrgIFS=$as_save_IFS 43457dff02feSmrg 43467dff02feSmrg ;; 43477dff02feSmrgesac 43487dff02feSmrgfi 43497dff02feSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 43507dff02feSmrgif test -n "$PKG_CONFIG"; then 43517dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 43527dff02feSmrg$as_echo "$PKG_CONFIG" >&6; } 43537dff02feSmrgelse 43547dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43557dff02feSmrg$as_echo "no" >&6; } 43567dff02feSmrgfi 43577dff02feSmrg 43587dff02feSmrg 43597dff02feSmrgfi 43607dff02feSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 43617dff02feSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 43627dff02feSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 43637dff02feSmrgset dummy pkg-config; ac_word=$2 43647dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43657dff02feSmrg$as_echo_n "checking for $ac_word... " >&6; } 43667dff02feSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 43677dff02feSmrg $as_echo_n "(cached) " >&6 43687dff02feSmrgelse 43697dff02feSmrg case $ac_pt_PKG_CONFIG in 43707dff02feSmrg [\\/]* | ?:[\\/]*) 43717dff02feSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 43727dff02feSmrg ;; 43737dff02feSmrg *) 43747dff02feSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43757dff02feSmrgfor as_dir in $PATH 43767dff02feSmrgdo 43777dff02feSmrg IFS=$as_save_IFS 43787dff02feSmrg test -z "$as_dir" && as_dir=. 43797dff02feSmrg for ac_exec_ext in '' $ac_executable_extensions; do 43807dff02feSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 43817dff02feSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 43827dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43837dff02feSmrg break 2 43847dff02feSmrg fi 43857dff02feSmrgdone 43867dff02feSmrg done 43877dff02feSmrgIFS=$as_save_IFS 43887dff02feSmrg 43897dff02feSmrg ;; 439070f7c90cSmrgesac 43917dff02feSmrgfi 43927dff02feSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 43937dff02feSmrgif test -n "$ac_pt_PKG_CONFIG"; then 43947dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 43957dff02feSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 439670f7c90cSmrgelse 43977dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43987dff02feSmrg$as_echo "no" >&6; } 439970f7c90cSmrgfi 440070f7c90cSmrg 44017dff02feSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 44027dff02feSmrg PKG_CONFIG="" 44037dff02feSmrg else 44047dff02feSmrg case $cross_compiling:$ac_tool_warned in 44057dff02feSmrgyes:) 44067dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44077dff02feSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44087dff02feSmrgac_tool_warned=yes ;; 440970f7c90cSmrgesac 44107dff02feSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 44117dff02feSmrg fi 44127dff02feSmrgelse 44137dff02feSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 44147dff02feSmrgfi 441570f7c90cSmrg 44167dff02feSmrgfi 44177dff02feSmrgif test -n "$PKG_CONFIG"; then 44187dff02feSmrg _pkg_min_version=0.9.0 44197dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 44207dff02feSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 44217dff02feSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 44227dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44237dff02feSmrg$as_echo "yes" >&6; } 44247dff02feSmrg else 44257dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44267dff02feSmrg$as_echo "no" >&6; } 44277dff02feSmrg PKG_CONFIG="" 44287dff02feSmrg fi 442970f7c90cSmrg 44307dff02feSmrgfi 443170f7c90cSmrg# Make sure we can run config.sub. 443270f7c90cSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 44337dff02feSmrg as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 443470f7c90cSmrg 44357dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 443670f7c90cSmrg$as_echo_n "checking build system type... " >&6; } 44377dff02feSmrgif test "${ac_cv_build+set}" = set; then : 443870f7c90cSmrg $as_echo_n "(cached) " >&6 443970f7c90cSmrgelse 444070f7c90cSmrg ac_build_alias=$build_alias 444170f7c90cSmrgtest "x$ac_build_alias" = x && 444270f7c90cSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 444370f7c90cSmrgtest "x$ac_build_alias" = x && 44447dff02feSmrg as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 444570f7c90cSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 44467dff02feSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 444770f7c90cSmrg 444870f7c90cSmrgfi 44497dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 445070f7c90cSmrg$as_echo "$ac_cv_build" >&6; } 445170f7c90cSmrgcase $ac_cv_build in 445270f7c90cSmrg*-*-*) ;; 44537dff02feSmrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 445470f7c90cSmrgesac 445570f7c90cSmrgbuild=$ac_cv_build 445670f7c90cSmrgac_save_IFS=$IFS; IFS='-' 445770f7c90cSmrgset x $ac_cv_build 445870f7c90cSmrgshift 445970f7c90cSmrgbuild_cpu=$1 446070f7c90cSmrgbuild_vendor=$2 446170f7c90cSmrgshift; shift 446270f7c90cSmrg# Remember, the first character of IFS is used to create $*, 446370f7c90cSmrg# except with old shells: 446470f7c90cSmrgbuild_os=$* 446570f7c90cSmrgIFS=$ac_save_IFS 446670f7c90cSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 446770f7c90cSmrg 446870f7c90cSmrg 44697dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 447070f7c90cSmrg$as_echo_n "checking host system type... " >&6; } 44717dff02feSmrgif test "${ac_cv_host+set}" = set; then : 447270f7c90cSmrg $as_echo_n "(cached) " >&6 447370f7c90cSmrgelse 447470f7c90cSmrg if test "x$host_alias" = x; then 447570f7c90cSmrg ac_cv_host=$ac_cv_build 447670f7c90cSmrgelse 447770f7c90cSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 44787dff02feSmrg as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 447970f7c90cSmrgfi 448070f7c90cSmrg 448170f7c90cSmrgfi 44827dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 448370f7c90cSmrg$as_echo "$ac_cv_host" >&6; } 448470f7c90cSmrgcase $ac_cv_host in 448570f7c90cSmrg*-*-*) ;; 44867dff02feSmrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 448770f7c90cSmrgesac 448870f7c90cSmrghost=$ac_cv_host 448970f7c90cSmrgac_save_IFS=$IFS; IFS='-' 449070f7c90cSmrgset x $ac_cv_host 449170f7c90cSmrgshift 449270f7c90cSmrghost_cpu=$1 449370f7c90cSmrghost_vendor=$2 449470f7c90cSmrgshift; shift 449570f7c90cSmrg# Remember, the first character of IFS is used to create $*, 449670f7c90cSmrg# except with old shells: 449770f7c90cSmrghost_os=$* 449870f7c90cSmrgIFS=$ac_save_IFS 449970f7c90cSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 450070f7c90cSmrg 450170f7c90cSmrg 450270f7c90cSmrg 450370f7c90cSmrg 450470f7c90cSmrg 450570f7c90cSmrgif test "x$GCC" = xyes ; then 450670f7c90cSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 450770f7c90cSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 45087dff02feSmrg-Wbad-function-cast -Wformat=2" 450970f7c90cSmrg case `$CC -dumpversion` in 451070f7c90cSmrg 3.4.* | 4.*) 451170f7c90cSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 451270f7c90cSmrg ;; 451370f7c90cSmrg esac 451470f7c90cSmrgelse 45157dff02feSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45167dff02feSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 451770f7c90cSmrg SUNCC="yes" 451870f7c90cSmrgelse 451970f7c90cSmrg SUNCC="no" 452070f7c90cSmrgfi 452170f7c90cSmrg 452270f7c90cSmrg if test "x$SUNCC" = "xyes"; then 452370f7c90cSmrg CWARNFLAGS="-v" 452470f7c90cSmrg fi 452570f7c90cSmrgfi 452670f7c90cSmrg 452770f7c90cSmrg 452870f7c90cSmrg 452970f7c90cSmrg 453070f7c90cSmrg 453170f7c90cSmrg 453270f7c90cSmrg 453370f7c90cSmrg# Check whether --enable-strict-compilation was given. 45347dff02feSmrgif test "${enable_strict_compilation+set}" = set; then : 453570f7c90cSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 453670f7c90cSmrgelse 453770f7c90cSmrg STRICT_COMPILE=no 453870f7c90cSmrgfi 453970f7c90cSmrg 454070f7c90cSmrgif test "x$STRICT_COMPILE" = "xyes"; then 45417dff02feSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45427dff02feSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 454370f7c90cSmrg SUNCC="yes" 454470f7c90cSmrgelse 454570f7c90cSmrg SUNCC="no" 454670f7c90cSmrgfi 454770f7c90cSmrg 45487dff02feSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 45497dff02feSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 455070f7c90cSmrg INTELCC="yes" 455170f7c90cSmrgelse 455270f7c90cSmrg INTELCC="no" 455370f7c90cSmrgfi 455470f7c90cSmrg 455570f7c90cSmrg if test "x$GCC" = xyes ; then 455670f7c90cSmrg STRICT_CFLAGS="-pedantic -Werror" 455770f7c90cSmrg elif test "x$SUNCC" = "xyes"; then 455870f7c90cSmrg STRICT_CFLAGS="-errwarn" 455970f7c90cSmrg elif test "x$INTELCC" = "xyes"; then 456070f7c90cSmrg STRICT_CFLAGS="-Werror" 456170f7c90cSmrg fi 456270f7c90cSmrgfi 456370f7c90cSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 456470f7c90cSmrg 456570f7c90cSmrg 456670f7c90cSmrg 456770f7c90cSmrg 456870f7c90cSmrg# Check whether --with-release-version was given. 45697dff02feSmrgif test "${with_release_version+set}" = set; then : 457070f7c90cSmrg withval=$with_release_version; RELEASE_VERSION="$withval" 457170f7c90cSmrgelse 457270f7c90cSmrg RELEASE_VERSION="" 457370f7c90cSmrgfi 457470f7c90cSmrg 457570f7c90cSmrg if test "x$RELEASE_VERSION" != "x"; then 457670f7c90cSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 457770f7c90cSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 45787dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 457970f7c90cSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 458070f7c90cSmrg fi 458170f7c90cSmrg 458270f7c90cSmrgcat >>confdefs.h <<_ACEOF 458370f7c90cSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 458470f7c90cSmrg_ACEOF 458570f7c90cSmrg 458670f7c90cSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 458770f7c90cSmrg if test "x$PVM" = "x"; then 458870f7c90cSmrg PVM="0" 458970f7c90cSmrg fi 459070f7c90cSmrg 459170f7c90cSmrgcat >>confdefs.h <<_ACEOF 459270f7c90cSmrg#define PACKAGE_VERSION_MINOR $PVM 459370f7c90cSmrg_ACEOF 459470f7c90cSmrg 459570f7c90cSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 459670f7c90cSmrg if test "x$PVP" = "x"; then 459770f7c90cSmrg PVP="0" 459870f7c90cSmrg fi 459970f7c90cSmrg 460070f7c90cSmrgcat >>confdefs.h <<_ACEOF 460170f7c90cSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 460270f7c90cSmrg_ACEOF 460370f7c90cSmrg 460470f7c90cSmrg 460570f7c90cSmrg 46067dff02feSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 46077dff02feSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 46087dff02feSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 460970f7c90cSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 461070f7c90cSmrg 46117dff02feSmrg 46127dff02feSmrg 46137dff02feSmrg 46147dff02feSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 46157dff02feSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 46167dff02feSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 46177dff02feSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 46187dff02feSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 461970f7c90cSmrg 462070f7c90cSmrg 462170f7c90cSmrg 462270f7c90cSmrg 462370f7c90cSmrg 462470f7c90cSmrgif test x$APP_MAN_SUFFIX = x ; then 462570f7c90cSmrg APP_MAN_SUFFIX=1 462670f7c90cSmrgfi 462770f7c90cSmrgif test x$APP_MAN_DIR = x ; then 462870f7c90cSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 462970f7c90cSmrgfi 463070f7c90cSmrg 463170f7c90cSmrgif test x$LIB_MAN_SUFFIX = x ; then 463270f7c90cSmrg LIB_MAN_SUFFIX=3 463370f7c90cSmrgfi 463470f7c90cSmrgif test x$LIB_MAN_DIR = x ; then 463570f7c90cSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 463670f7c90cSmrgfi 463770f7c90cSmrg 463870f7c90cSmrgif test x$FILE_MAN_SUFFIX = x ; then 463970f7c90cSmrg case $host_os in 464070f7c90cSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 464170f7c90cSmrg *) FILE_MAN_SUFFIX=5 ;; 464270f7c90cSmrg esac 464370f7c90cSmrgfi 464470f7c90cSmrgif test x$FILE_MAN_DIR = x ; then 464570f7c90cSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 464670f7c90cSmrgfi 464770f7c90cSmrg 464870f7c90cSmrgif test x$MISC_MAN_SUFFIX = x ; then 464970f7c90cSmrg case $host_os in 465070f7c90cSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 465170f7c90cSmrg *) MISC_MAN_SUFFIX=7 ;; 465270f7c90cSmrg esac 465370f7c90cSmrgfi 465470f7c90cSmrgif test x$MISC_MAN_DIR = x ; then 465570f7c90cSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 465670f7c90cSmrgfi 465770f7c90cSmrg 465870f7c90cSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 465970f7c90cSmrg case $host_os in 466070f7c90cSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 466170f7c90cSmrg *) DRIVER_MAN_SUFFIX=4 ;; 466270f7c90cSmrg esac 466370f7c90cSmrgfi 466470f7c90cSmrgif test x$DRIVER_MAN_DIR = x ; then 466570f7c90cSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 466670f7c90cSmrgfi 466770f7c90cSmrg 466870f7c90cSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 466970f7c90cSmrg case $host_os in 467070f7c90cSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 467170f7c90cSmrg *) ADMIN_MAN_SUFFIX=8 ;; 467270f7c90cSmrg esac 467370f7c90cSmrgfi 467470f7c90cSmrgif test x$ADMIN_MAN_DIR = x ; then 467570f7c90cSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 467670f7c90cSmrgfi 467770f7c90cSmrg 467870f7c90cSmrg 467970f7c90cSmrg 468070f7c90cSmrg 468170f7c90cSmrg 468270f7c90cSmrg 468370f7c90cSmrg 468470f7c90cSmrg 468570f7c90cSmrg 468670f7c90cSmrg 468770f7c90cSmrg 468870f7c90cSmrg 468970f7c90cSmrg 469070f7c90cSmrg 469170f7c90cSmrg 46927dff02feSmrgXORG_MAN_PAGE="X Version 11" 469370f7c90cSmrg 46947dff02feSmrgMAN_SUBSTS="\ 46957dff02feSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46967dff02feSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46977dff02feSmrg -e 's|__xservername__|Xorg|g' \ 46987dff02feSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 46997dff02feSmrg -e 's|__projectroot__|\$(prefix)|g' \ 47007dff02feSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 47017dff02feSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 47027dff02feSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 47037dff02feSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 47047dff02feSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 47057dff02feSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 470670f7c90cSmrg 4707a850946eSmrg 4708a850946eSmrg 47097dff02feSmrg# Check whether --enable-silent-rules was given. 47107dff02feSmrgif test "${enable_silent_rules+set}" = set; then : 47117dff02feSmrg enableval=$enable_silent_rules; 4712a850946eSmrgfi 4713a850946eSmrg 47147dff02feSmrgcase $enable_silent_rules in 47157dff02feSmrgyes) AM_DEFAULT_VERBOSITY=0;; 47167dff02feSmrgno) AM_DEFAULT_VERBOSITY=1;; 47177dff02feSmrg*) AM_DEFAULT_VERBOSITY=0;; 47187dff02feSmrgesac 47197dff02feSmrgAM_BACKSLASH='\' 4720a850946eSmrg 47217dff02feSmrg 47227dff02feSmrg 47237dff02feSmrg# Checks for pkg-config packages 4724a850946eSmrg 4725a850946eSmrgpkg_failed=no 47267dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5 472770f7c90cSmrg$as_echo_n "checking for XLSCLIENTS... " >&6; } 472870f7c90cSmrg 472970f7c90cSmrgif test -n "$XLSCLIENTS_CFLAGS"; then 473070f7c90cSmrg pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS" 473170f7c90cSmrg elif test -n "$PKG_CONFIG"; then 473270f7c90cSmrg if test -n "$PKG_CONFIG" && \ 47337dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-atom\""; } >&5 47347dff02feSmrg ($PKG_CONFIG --exists --print-errors "xcb xcb-atom") 2>&5 4735a850946eSmrg ac_status=$? 47367dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47377dff02feSmrg test $ac_status = 0; }; then 47387dff02feSmrg pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-atom" 2>/dev/null` 4739a850946eSmrgelse 4740a850946eSmrg pkg_failed=yes 4741a850946eSmrgfi 474270f7c90cSmrg else 474370f7c90cSmrg pkg_failed=untried 4744a850946eSmrgfi 474570f7c90cSmrgif test -n "$XLSCLIENTS_LIBS"; then 474670f7c90cSmrg pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS" 474770f7c90cSmrg elif test -n "$PKG_CONFIG"; then 474870f7c90cSmrg if test -n "$PKG_CONFIG" && \ 47497dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-atom\""; } >&5 47507dff02feSmrg ($PKG_CONFIG --exists --print-errors "xcb xcb-atom") 2>&5 4751a850946eSmrg ac_status=$? 47527dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47537dff02feSmrg test $ac_status = 0; }; then 47547dff02feSmrg pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb xcb-atom" 2>/dev/null` 4755a850946eSmrgelse 4756a850946eSmrg pkg_failed=yes 4757a850946eSmrgfi 475870f7c90cSmrg else 475970f7c90cSmrg pkg_failed=untried 4760a850946eSmrgfi 4761a850946eSmrg 4762a850946eSmrg 4763a850946eSmrg 4764a850946eSmrgif test $pkg_failed = yes; then 4765a850946eSmrg 4766a850946eSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4767a850946eSmrg _pkg_short_errors_supported=yes 4768a850946eSmrgelse 4769a850946eSmrg _pkg_short_errors_supported=no 4770a850946eSmrgfi 4771a850946eSmrg if test $_pkg_short_errors_supported = yes; then 47727dff02feSmrg XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-atom" 2>&1` 4773a850946eSmrg else 47747dff02feSmrg XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-atom" 2>&1` 4775a850946eSmrg fi 4776a850946eSmrg # Put the nasty error message in config.log where it belongs 4777a850946eSmrg echo "$XLSCLIENTS_PKG_ERRORS" >&5 4778a850946eSmrg 47797dff02feSmrg as_fn_error "Package requirements (xcb xcb-atom) were not met: 4780a850946eSmrg 4781a850946eSmrg$XLSCLIENTS_PKG_ERRORS 4782a850946eSmrg 4783a850946eSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 4784a850946eSmrginstalled software in a non-standard prefix. 4785a850946eSmrg 4786a850946eSmrgAlternatively, you may set the environment variables XLSCLIENTS_CFLAGS 4787a850946eSmrgand XLSCLIENTS_LIBS to avoid the need to call pkg-config. 4788a850946eSmrgSee the pkg-config man page for more details. 47897dff02feSmrg" "$LINENO" 5 4790a850946eSmrgelif test $pkg_failed = untried; then 47917dff02feSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 479270f7c90cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47937dff02feSmrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 4794a850946eSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 4795a850946eSmrgpath to pkg-config. 4796a850946eSmrg 4797a850946eSmrgAlternatively, you may set the environment variables XLSCLIENTS_CFLAGS 4798a850946eSmrgand XLSCLIENTS_LIBS to avoid the need to call pkg-config. 4799a850946eSmrgSee the pkg-config man page for more details. 4800a850946eSmrg 480170f7c90cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 48027dff02feSmrgSee \`config.log' for more details." "$LINENO" 5; } 4803a850946eSmrgelse 4804a850946eSmrg XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS 4805a850946eSmrg XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS 48067dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 480770f7c90cSmrg$as_echo "yes" >&6; } 4808a850946eSmrg : 4809a850946eSmrgfi 4810a850946eSmrg 4811a850946eSmrg 4812a850946eSmrg 481370f7c90cSmrgac_config_files="$ac_config_files Makefile" 4814a850946eSmrg 4815a850946eSmrgcat >confcache <<\_ACEOF 4816a850946eSmrg# This file is a shell script that caches the results of configure 4817a850946eSmrg# tests run on this system so they can be shared between configure 4818a850946eSmrg# scripts and configure runs, see configure's option --config-cache. 4819a850946eSmrg# It is not useful on other systems. If it contains results you don't 4820a850946eSmrg# want to keep, you may remove or edit it. 4821a850946eSmrg# 4822a850946eSmrg# config.status only pays attention to the cache file if you give it 4823a850946eSmrg# the --recheck option to rerun configure. 4824a850946eSmrg# 4825a850946eSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 4826a850946eSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 4827a850946eSmrg# following values. 4828a850946eSmrg 4829a850946eSmrg_ACEOF 4830a850946eSmrg 4831a850946eSmrg# The following way of writing the cache mishandles newlines in values, 4832a850946eSmrg# but we know of no workaround that is simple, portable, and efficient. 483370f7c90cSmrg# So, we kill variables containing newlines. 4834a850946eSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 4835a850946eSmrg# and sets the high bit in the cache file unless we assign to the vars. 483670f7c90cSmrg( 483770f7c90cSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 483870f7c90cSmrg eval ac_val=\$$ac_var 483970f7c90cSmrg case $ac_val in #( 484070f7c90cSmrg *${as_nl}*) 484170f7c90cSmrg case $ac_var in #( 48427dff02feSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 484370f7c90cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 484470f7c90cSmrg esac 484570f7c90cSmrg case $ac_var in #( 484670f7c90cSmrg _ | IFS | as_nl) ;; #( 484770f7c90cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 48487dff02feSmrg *) { eval $ac_var=; unset $ac_var;} ;; 484970f7c90cSmrg esac ;; 485070f7c90cSmrg esac 485170f7c90cSmrg done 485270f7c90cSmrg 4853a850946eSmrg (set) 2>&1 | 485470f7c90cSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 485570f7c90cSmrg *${as_nl}ac_space=\ *) 48567dff02feSmrg # `set' does not quote correctly, so add quotes: double-quote 48577dff02feSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 4858a850946eSmrg sed -n \ 4859a850946eSmrg "s/'/'\\\\''/g; 4860a850946eSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 486170f7c90cSmrg ;; #( 4862a850946eSmrg *) 4863a850946eSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 486470f7c90cSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4865a850946eSmrg ;; 486670f7c90cSmrg esac | 486770f7c90cSmrg sort 486870f7c90cSmrg) | 4869a850946eSmrg sed ' 487070f7c90cSmrg /^ac_cv_env_/b end 4871a850946eSmrg t clear 487270f7c90cSmrg :clear 4873a850946eSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4874a850946eSmrg t end 487570f7c90cSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 487670f7c90cSmrg :end' >>confcache 487770f7c90cSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 487870f7c90cSmrg if test -w "$cache_file"; then 487970f7c90cSmrg test "x$cache_file" != "x/dev/null" && 48807dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 488170f7c90cSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 4882a850946eSmrg cat confcache >$cache_file 4883a850946eSmrg else 48847dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 488570f7c90cSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4886a850946eSmrg fi 4887a850946eSmrgfi 4888a850946eSmrgrm -f confcache 4889a850946eSmrg 4890a850946eSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 4891a850946eSmrg# Let make expand exec_prefix. 4892a850946eSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4893a850946eSmrg 4894a850946eSmrgDEFS=-DHAVE_CONFIG_H 4895a850946eSmrg 4896a850946eSmrgac_libobjs= 4897a850946eSmrgac_ltlibobjs= 4898a850946eSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4899a850946eSmrg # 1. Remove the extension, and $U if already installed. 490070f7c90cSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 490170f7c90cSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 490270f7c90cSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 490370f7c90cSmrg # will be set to the directory where LIBOBJS objects are built. 49047dff02feSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 49057dff02feSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4906a850946eSmrgdone 4907a850946eSmrgLIBOBJS=$ac_libobjs 4908a850946eSmrg 4909a850946eSmrgLTLIBOBJS=$ac_ltlibobjs 4910a850946eSmrg 4911a850946eSmrg 491270f7c90cSmrg if test -n "$EXEEXT"; then 491370f7c90cSmrg am__EXEEXT_TRUE= 491470f7c90cSmrg am__EXEEXT_FALSE='#' 491570f7c90cSmrgelse 491670f7c90cSmrg am__EXEEXT_TRUE='#' 491770f7c90cSmrg am__EXEEXT_FALSE= 491870f7c90cSmrgfi 491970f7c90cSmrg 4920a850946eSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 49217dff02feSmrg as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 49227dff02feSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 4923a850946eSmrgfi 4924a850946eSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 49257dff02feSmrg as_fn_error "conditional \"AMDEP\" was never defined. 49267dff02feSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 4927a850946eSmrgfi 4928a850946eSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 49297dff02feSmrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 49307dff02feSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 4931a850946eSmrgfi 4932a850946eSmrg 4933a850946eSmrg: ${CONFIG_STATUS=./config.status} 493470f7c90cSmrgac_write_fail=0 4935a850946eSmrgac_clean_files_save=$ac_clean_files 4936a850946eSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 49377dff02feSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 493870f7c90cSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 49397dff02feSmrgas_write_fail=0 49407dff02feSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4941a850946eSmrg#! $SHELL 4942a850946eSmrg# Generated by $as_me. 4943a850946eSmrg# Run this file to recreate the current configuration. 4944a850946eSmrg# Compiler output produced by configure, useful for debugging 4945a850946eSmrg# configure, is in config.log if it exists. 4946a850946eSmrg 4947a850946eSmrgdebug=false 4948a850946eSmrgac_cs_recheck=false 4949a850946eSmrgac_cs_silent=false 4950a850946eSmrg 49517dff02feSmrgSHELL=\${CONFIG_SHELL-$SHELL} 49527dff02feSmrgexport SHELL 49537dff02feSmrg_ASEOF 49547dff02feSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 49557dff02feSmrg## -------------------- ## 49567dff02feSmrg## M4sh Initialization. ## 49577dff02feSmrg## -------------------- ## 4958a850946eSmrg 495970f7c90cSmrg# Be more Bourne compatible 496070f7c90cSmrgDUALCASE=1; export DUALCASE # for MKS sh 49617dff02feSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4962a850946eSmrg emulate sh 4963a850946eSmrg NULLCMD=: 496470f7c90cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4965a850946eSmrg # is contrary to our usage. Disable this feature. 4966a850946eSmrg alias -g '${1+"$@"}'='"$@"' 496770f7c90cSmrg setopt NO_GLOB_SUBST 496870f7c90cSmrgelse 49697dff02feSmrg case `(set -o) 2>/dev/null` in #( 49707dff02feSmrg *posix*) : 49717dff02feSmrg set -o posix ;; #( 49727dff02feSmrg *) : 49737dff02feSmrg ;; 497470f7c90cSmrgesac 497570f7c90cSmrgfi 497670f7c90cSmrg 497770f7c90cSmrg 497870f7c90cSmrgas_nl=' 497970f7c90cSmrg' 498070f7c90cSmrgexport as_nl 498170f7c90cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 498270f7c90cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 498370f7c90cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 498470f7c90cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49857dff02feSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 49867dff02feSmrg# but without wasting forks for bash or zsh. 49877dff02feSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 49887dff02feSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49897dff02feSmrg as_echo='print -r --' 49907dff02feSmrg as_echo_n='print -rn --' 49917dff02feSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 499270f7c90cSmrg as_echo='printf %s\n' 499370f7c90cSmrg as_echo_n='printf %s' 499470f7c90cSmrgelse 499570f7c90cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 499670f7c90cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 499770f7c90cSmrg as_echo_n='/usr/ucb/echo -n' 499870f7c90cSmrg else 499970f7c90cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 500070f7c90cSmrg as_echo_n_body='eval 500170f7c90cSmrg arg=$1; 50027dff02feSmrg case $arg in #( 500370f7c90cSmrg *"$as_nl"*) 500470f7c90cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 500570f7c90cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 500670f7c90cSmrg esac; 500770f7c90cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 500870f7c90cSmrg ' 500970f7c90cSmrg export as_echo_n_body 501070f7c90cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 501170f7c90cSmrg fi 501270f7c90cSmrg export as_echo_body 501370f7c90cSmrg as_echo='sh -c $as_echo_body as_echo' 501470f7c90cSmrgfi 501570f7c90cSmrg 501670f7c90cSmrg# The user is always right. 501770f7c90cSmrgif test "${PATH_SEPARATOR+set}" != set; then 501870f7c90cSmrg PATH_SEPARATOR=: 501970f7c90cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 502070f7c90cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 502170f7c90cSmrg PATH_SEPARATOR=';' 502270f7c90cSmrg } 5023a850946eSmrgfi 5024a850946eSmrg 5025a850946eSmrg 502670f7c90cSmrg# IFS 502770f7c90cSmrg# We need space, tab and new line, in precisely that order. Quoting is 502870f7c90cSmrg# there to prevent editors from complaining about space-tab. 502970f7c90cSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 503070f7c90cSmrg# splitting by setting IFS to empty value.) 503170f7c90cSmrgIFS=" "" $as_nl" 503270f7c90cSmrg 503370f7c90cSmrg# Find who we are. Look in the path if we contain no directory separator. 50347dff02feSmrgcase $0 in #(( 503570f7c90cSmrg *[\\/]* ) as_myself=$0 ;; 503670f7c90cSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 503770f7c90cSmrgfor as_dir in $PATH 503870f7c90cSmrgdo 503970f7c90cSmrg IFS=$as_save_IFS 504070f7c90cSmrg test -z "$as_dir" && as_dir=. 50417dff02feSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 50427dff02feSmrg done 504370f7c90cSmrgIFS=$as_save_IFS 504470f7c90cSmrg 504570f7c90cSmrg ;; 504670f7c90cSmrgesac 504770f7c90cSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 504870f7c90cSmrg# in which case we are not to be found in the path. 504970f7c90cSmrgif test "x$as_myself" = x; then 505070f7c90cSmrg as_myself=$0 505170f7c90cSmrgfi 505270f7c90cSmrgif test ! -f "$as_myself"; then 505370f7c90cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 50547dff02feSmrg exit 1 505570f7c90cSmrgfi 505670f7c90cSmrg 50577dff02feSmrg# Unset variables that we do not need and which cause bugs (e.g. in 50587dff02feSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 50597dff02feSmrg# suppresses any "Segmentation fault" message there. '((' could 50607dff02feSmrg# trigger a bug in pdksh 5.2.14. 50617dff02feSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 50627dff02feSmrgdo eval test x\${$as_var+set} = xset \ 50637dff02feSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 506470f7c90cSmrgdone 5065a850946eSmrgPS1='$ ' 5066a850946eSmrgPS2='> ' 5067a850946eSmrgPS4='+ ' 5068a850946eSmrg 5069a850946eSmrg# NLS nuisances. 507070f7c90cSmrgLC_ALL=C 507170f7c90cSmrgexport LC_ALL 507270f7c90cSmrgLANGUAGE=C 507370f7c90cSmrgexport LANGUAGE 5074a850946eSmrg 50757dff02feSmrg# CDPATH. 50767dff02feSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 50777dff02feSmrg 50787dff02feSmrg 50797dff02feSmrg# as_fn_error ERROR [LINENO LOG_FD] 50807dff02feSmrg# --------------------------------- 50817dff02feSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 50827dff02feSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 50837dff02feSmrg# script with status $?, using 1 if that was 0. 50847dff02feSmrgas_fn_error () 50857dff02feSmrg{ 50867dff02feSmrg as_status=$?; test $as_status -eq 0 && as_status=1 50877dff02feSmrg if test "$3"; then 50887dff02feSmrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 50897dff02feSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 50907dff02feSmrg fi 50917dff02feSmrg $as_echo "$as_me: error: $1" >&2 50927dff02feSmrg as_fn_exit $as_status 50937dff02feSmrg} # as_fn_error 50947dff02feSmrg 50957dff02feSmrg 50967dff02feSmrg# as_fn_set_status STATUS 50977dff02feSmrg# ----------------------- 50987dff02feSmrg# Set $? to STATUS, without forking. 50997dff02feSmrgas_fn_set_status () 51007dff02feSmrg{ 51017dff02feSmrg return $1 51027dff02feSmrg} # as_fn_set_status 51037dff02feSmrg 51047dff02feSmrg# as_fn_exit STATUS 51057dff02feSmrg# ----------------- 51067dff02feSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51077dff02feSmrgas_fn_exit () 51087dff02feSmrg{ 51097dff02feSmrg set +e 51107dff02feSmrg as_fn_set_status $1 51117dff02feSmrg exit $1 51127dff02feSmrg} # as_fn_exit 51137dff02feSmrg 51147dff02feSmrg# as_fn_unset VAR 51157dff02feSmrg# --------------- 51167dff02feSmrg# Portably unset VAR. 51177dff02feSmrgas_fn_unset () 51187dff02feSmrg{ 51197dff02feSmrg { eval $1=; unset $1;} 51207dff02feSmrg} 51217dff02feSmrgas_unset=as_fn_unset 51227dff02feSmrg# as_fn_append VAR VALUE 51237dff02feSmrg# ---------------------- 51247dff02feSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 51257dff02feSmrg# advantage of any shell optimizations that allow amortized linear growth over 51267dff02feSmrg# repeated appends, instead of the typical quadratic growth present in naive 51277dff02feSmrg# implementations. 51287dff02feSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51297dff02feSmrg eval 'as_fn_append () 51307dff02feSmrg { 51317dff02feSmrg eval $1+=\$2 51327dff02feSmrg }' 51337dff02feSmrgelse 51347dff02feSmrg as_fn_append () 51357dff02feSmrg { 51367dff02feSmrg eval $1=\$$1\$2 51377dff02feSmrg } 51387dff02feSmrgfi # as_fn_append 51397dff02feSmrg 51407dff02feSmrg# as_fn_arith ARG... 51417dff02feSmrg# ------------------ 51427dff02feSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 51437dff02feSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 51447dff02feSmrg# must be portable across $(()) and expr. 51457dff02feSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51467dff02feSmrg eval 'as_fn_arith () 51477dff02feSmrg { 51487dff02feSmrg as_val=$(( $* )) 51497dff02feSmrg }' 51507dff02feSmrgelse 51517dff02feSmrg as_fn_arith () 51527dff02feSmrg { 51537dff02feSmrg as_val=`expr "$@" || test $? -eq 1` 51547dff02feSmrg } 51557dff02feSmrgfi # as_fn_arith 51567dff02feSmrg 51577dff02feSmrg 515870f7c90cSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 515970f7c90cSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5160a850946eSmrg as_expr=expr 5161a850946eSmrgelse 5162a850946eSmrg as_expr=false 5163a850946eSmrgfi 5164a850946eSmrg 516570f7c90cSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5166a850946eSmrg as_basename=basename 5167a850946eSmrgelse 5168a850946eSmrg as_basename=false 5169a850946eSmrgfi 5170a850946eSmrg 51717dff02feSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51727dff02feSmrg as_dirname=dirname 51737dff02feSmrgelse 51747dff02feSmrg as_dirname=false 51757dff02feSmrgfi 5176a850946eSmrg 517770f7c90cSmrgas_me=`$as_basename -- "$0" || 5178a850946eSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5179a850946eSmrg X"$0" : 'X\(//\)$' \| \ 518070f7c90cSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 518170f7c90cSmrg$as_echo X/"$0" | 518270f7c90cSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 518370f7c90cSmrg s//\1/ 518470f7c90cSmrg q 518570f7c90cSmrg } 518670f7c90cSmrg /^X\/\(\/\/\)$/{ 518770f7c90cSmrg s//\1/ 518870f7c90cSmrg q 518970f7c90cSmrg } 519070f7c90cSmrg /^X\/\(\/\).*/{ 519170f7c90cSmrg s//\1/ 519270f7c90cSmrg q 519370f7c90cSmrg } 519470f7c90cSmrg s/.*/./; q'` 5195a850946eSmrg 51967dff02feSmrg# Avoid depending upon Character Ranges. 51977dff02feSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 51987dff02feSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51997dff02feSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 52007dff02feSmrgas_cr_digits='0123456789' 52017dff02feSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5202a850946eSmrg 520370f7c90cSmrgECHO_C= ECHO_N= ECHO_T= 52047dff02feSmrgcase `echo -n x` in #((((( 520570f7c90cSmrg-n*) 52067dff02feSmrg case `echo 'xy\c'` in 520770f7c90cSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52087dff02feSmrg xy) ECHO_C='\c';; 52097dff02feSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52107dff02feSmrg ECHO_T=' ';; 521170f7c90cSmrg esac;; 521270f7c90cSmrg*) 521370f7c90cSmrg ECHO_N='-n';; 521470f7c90cSmrgesac 5215a850946eSmrg 5216a850946eSmrgrm -f conf$$ conf$$.exe conf$$.file 521770f7c90cSmrgif test -d conf$$.dir; then 521870f7c90cSmrg rm -f conf$$.dir/conf$$.file 521970f7c90cSmrgelse 522070f7c90cSmrg rm -f conf$$.dir 522170f7c90cSmrg mkdir conf$$.dir 2>/dev/null 522270f7c90cSmrgfi 522370f7c90cSmrgif (echo >conf$$.file) 2>/dev/null; then 522470f7c90cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5225a850946eSmrg as_ln_s='ln -s' 522670f7c90cSmrg # ... but there are two gotchas: 522770f7c90cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 522870f7c90cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522970f7c90cSmrg # In both cases, we have to default to `cp -p'. 523070f7c90cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 523170f7c90cSmrg as_ln_s='cp -p' 523270f7c90cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 523370f7c90cSmrg as_ln_s=ln 523470f7c90cSmrg else 523570f7c90cSmrg as_ln_s='cp -p' 5236a850946eSmrg fi 5237a850946eSmrgelse 5238a850946eSmrg as_ln_s='cp -p' 5239a850946eSmrgfi 524070f7c90cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 524170f7c90cSmrgrmdir conf$$.dir 2>/dev/null 5242a850946eSmrg 52437dff02feSmrg 52447dff02feSmrg# as_fn_mkdir_p 52457dff02feSmrg# ------------- 52467dff02feSmrg# Create "$as_dir" as a directory, including parents if necessary. 52477dff02feSmrgas_fn_mkdir_p () 52487dff02feSmrg{ 52497dff02feSmrg 52507dff02feSmrg case $as_dir in #( 52517dff02feSmrg -*) as_dir=./$as_dir;; 52527dff02feSmrg esac 52537dff02feSmrg test -d "$as_dir" || eval $as_mkdir_p || { 52547dff02feSmrg as_dirs= 52557dff02feSmrg while :; do 52567dff02feSmrg case $as_dir in #( 52577dff02feSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52587dff02feSmrg *) as_qdir=$as_dir;; 52597dff02feSmrg esac 52607dff02feSmrg as_dirs="'$as_qdir' $as_dirs" 52617dff02feSmrg as_dir=`$as_dirname -- "$as_dir" || 52627dff02feSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52637dff02feSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 52647dff02feSmrg X"$as_dir" : 'X\(//\)$' \| \ 52657dff02feSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52667dff02feSmrg$as_echo X"$as_dir" | 52677dff02feSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52687dff02feSmrg s//\1/ 52697dff02feSmrg q 52707dff02feSmrg } 52717dff02feSmrg /^X\(\/\/\)[^/].*/{ 52727dff02feSmrg s//\1/ 52737dff02feSmrg q 52747dff02feSmrg } 52757dff02feSmrg /^X\(\/\/\)$/{ 52767dff02feSmrg s//\1/ 52777dff02feSmrg q 52787dff02feSmrg } 52797dff02feSmrg /^X\(\/\).*/{ 52807dff02feSmrg s//\1/ 52817dff02feSmrg q 52827dff02feSmrg } 52837dff02feSmrg s/.*/./; q'` 52847dff02feSmrg test -d "$as_dir" && break 52857dff02feSmrg done 52867dff02feSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 52877dff02feSmrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 52887dff02feSmrg 52897dff02feSmrg 52907dff02feSmrg} # as_fn_mkdir_p 5291a850946eSmrgif mkdir -p . 2>/dev/null; then 52927dff02feSmrg as_mkdir_p='mkdir -p "$as_dir"' 5293a850946eSmrgelse 5294a850946eSmrg test -d ./-p && rmdir ./-p 5295a850946eSmrg as_mkdir_p=false 5296a850946eSmrgfi 5297a850946eSmrg 529870f7c90cSmrgif test -x / >/dev/null 2>&1; then 529970f7c90cSmrg as_test_x='test -x' 530070f7c90cSmrgelse 530170f7c90cSmrg if ls -dL / >/dev/null 2>&1; then 530270f7c90cSmrg as_ls_L_option=L 530370f7c90cSmrg else 530470f7c90cSmrg as_ls_L_option= 530570f7c90cSmrg fi 530670f7c90cSmrg as_test_x=' 530770f7c90cSmrg eval sh -c '\'' 530870f7c90cSmrg if test -d "$1"; then 530970f7c90cSmrg test -d "$1/."; 531070f7c90cSmrg else 53117dff02feSmrg case $1 in #( 531270f7c90cSmrg -*)set "./$1";; 531370f7c90cSmrg esac; 53147dff02feSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 531570f7c90cSmrg ???[sx]*):;;*)false;;esac;fi 531670f7c90cSmrg '\'' sh 531770f7c90cSmrg ' 531870f7c90cSmrgfi 531970f7c90cSmrgas_executable_p=$as_test_x 5320a850946eSmrg 5321a850946eSmrg# Sed expression to map a string onto a valid CPP name. 5322a850946eSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5323a850946eSmrg 5324a850946eSmrg# Sed expression to map a string onto a valid variable name. 5325a850946eSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5326a850946eSmrg 5327a850946eSmrg 5328a850946eSmrgexec 6>&1 53297dff02feSmrg## ----------------------------------- ## 53307dff02feSmrg## Main body of $CONFIG_STATUS script. ## 53317dff02feSmrg## ----------------------------------- ## 53327dff02feSmrg_ASEOF 53337dff02feSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5334a850946eSmrg 53357dff02feSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53367dff02feSmrg# Save the log message, to keep $0 and so on meaningful, and to 5337a850946eSmrg# report actual input values of CONFIG_FILES etc. instead of their 533870f7c90cSmrg# values after options handling. 533970f7c90cSmrgac_log=" 53407dff02feSmrgThis file was extended by xlsclients $as_me 1.1.0, which was 53417dff02feSmrggenerated by GNU Autoconf 2.65. Invocation command line was 5342a850946eSmrg 5343a850946eSmrg CONFIG_FILES = $CONFIG_FILES 5344a850946eSmrg CONFIG_HEADERS = $CONFIG_HEADERS 5345a850946eSmrg CONFIG_LINKS = $CONFIG_LINKS 5346a850946eSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5347a850946eSmrg $ $0 $@ 5348a850946eSmrg 534970f7c90cSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 535070f7c90cSmrg" 535170f7c90cSmrg 5352a850946eSmrg_ACEOF 5353a850946eSmrg 535470f7c90cSmrgcase $ac_config_files in *" 535570f7c90cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 535670f7c90cSmrgesac 5357a850946eSmrg 535870f7c90cSmrgcase $ac_config_headers in *" 535970f7c90cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 536070f7c90cSmrgesac 5361a850946eSmrg 5362a850946eSmrg 536370f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 536470f7c90cSmrg# Files that config.status was made for. 536570f7c90cSmrgconfig_files="$ac_config_files" 536670f7c90cSmrgconfig_headers="$ac_config_headers" 536770f7c90cSmrgconfig_commands="$ac_config_commands" 5368a850946eSmrg 536970f7c90cSmrg_ACEOF 5370a850946eSmrg 537170f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5372a850946eSmrgac_cs_usage="\ 53737dff02feSmrg\`$as_me' instantiates files and other configuration actions 53747dff02feSmrgfrom templates according to the current configuration. Unless the files 53757dff02feSmrgand actions are specified as TAGs, all are instantiated by default. 5376a850946eSmrg 53777dff02feSmrgUsage: $0 [OPTION]... [TAG]... 5378a850946eSmrg 5379a850946eSmrg -h, --help print this help, then exit 538070f7c90cSmrg -V, --version print version number and configuration settings, then exit 53817dff02feSmrg --config print configuration, then exit 538270f7c90cSmrg -q, --quiet, --silent 538370f7c90cSmrg do not print progress messages 5384a850946eSmrg -d, --debug don't remove temporary files 5385a850946eSmrg --recheck update $as_me by reconfiguring in the same conditions 538670f7c90cSmrg --file=FILE[:TEMPLATE] 538770f7c90cSmrg instantiate the configuration file FILE 538870f7c90cSmrg --header=FILE[:TEMPLATE] 538970f7c90cSmrg instantiate the configuration header FILE 5390a850946eSmrg 5391a850946eSmrgConfiguration files: 5392a850946eSmrg$config_files 5393a850946eSmrg 5394a850946eSmrgConfiguration headers: 5395a850946eSmrg$config_headers 5396a850946eSmrg 5397a850946eSmrgConfiguration commands: 5398a850946eSmrg$config_commands 5399a850946eSmrg 54007dff02feSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 5401a850946eSmrg 540270f7c90cSmrg_ACEOF 540370f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54047dff02feSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5405a850946eSmrgac_cs_version="\\ 54067dff02feSmrgxlsclients config.status 1.1.0 54077dff02feSmrgconfigured by $0, generated by GNU Autoconf 2.65, 54087dff02feSmrg with options \\"\$ac_cs_config\\" 5409a850946eSmrg 54107dff02feSmrgCopyright (C) 2009 Free Software Foundation, Inc. 5411a850946eSmrgThis config.status script is free software; the Free Software Foundation 5412a850946eSmrggives unlimited permission to copy, distribute and modify it." 541370f7c90cSmrg 541470f7c90cSmrgac_pwd='$ac_pwd' 541570f7c90cSmrgsrcdir='$srcdir' 541670f7c90cSmrgINSTALL='$INSTALL' 541770f7c90cSmrgMKDIR_P='$MKDIR_P' 541870f7c90cSmrgAWK='$AWK' 541970f7c90cSmrgtest -n "\$AWK" || AWK=awk 5420a850946eSmrg_ACEOF 5421a850946eSmrg 542270f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 542370f7c90cSmrg# The default lists apply if the user does not specify any file. 5424a850946eSmrgac_need_defaults=: 5425a850946eSmrgwhile test $# != 0 5426a850946eSmrgdo 5427a850946eSmrg case $1 in 5428a850946eSmrg --*=*) 542970f7c90cSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 543070f7c90cSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5431a850946eSmrg ac_shift=: 5432a850946eSmrg ;; 543370f7c90cSmrg *) 5434a850946eSmrg ac_option=$1 5435a850946eSmrg ac_optarg=$2 5436a850946eSmrg ac_shift=shift 5437a850946eSmrg ;; 5438a850946eSmrg esac 5439a850946eSmrg 5440a850946eSmrg case $ac_option in 5441a850946eSmrg # Handling of the options. 5442a850946eSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5443a850946eSmrg ac_cs_recheck=: ;; 544470f7c90cSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 544570f7c90cSmrg $as_echo "$ac_cs_version"; exit ;; 54467dff02feSmrg --config | --confi | --conf | --con | --co | --c ) 54477dff02feSmrg $as_echo "$ac_cs_config"; exit ;; 544870f7c90cSmrg --debug | --debu | --deb | --de | --d | -d ) 5449a850946eSmrg debug=: ;; 5450a850946eSmrg --file | --fil | --fi | --f ) 5451a850946eSmrg $ac_shift 545270f7c90cSmrg case $ac_optarg in 545370f7c90cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 545470f7c90cSmrg esac 54557dff02feSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 5456a850946eSmrg ac_need_defaults=false;; 5457a850946eSmrg --header | --heade | --head | --hea ) 5458a850946eSmrg $ac_shift 545970f7c90cSmrg case $ac_optarg in 546070f7c90cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 546170f7c90cSmrg esac 54627dff02feSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5463a850946eSmrg ac_need_defaults=false;; 546470f7c90cSmrg --he | --h) 546570f7c90cSmrg # Conflict between --help and --header 54667dff02feSmrg as_fn_error "ambiguous option: \`$1' 54677dff02feSmrgTry \`$0 --help' for more information.";; 546870f7c90cSmrg --help | --hel | -h ) 546970f7c90cSmrg $as_echo "$ac_cs_usage"; exit ;; 5470a850946eSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5471a850946eSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 5472a850946eSmrg ac_cs_silent=: ;; 5473a850946eSmrg 5474a850946eSmrg # This is an error. 54757dff02feSmrg -*) as_fn_error "unrecognized option: \`$1' 54767dff02feSmrgTry \`$0 --help' for more information." ;; 5477a850946eSmrg 54787dff02feSmrg *) as_fn_append ac_config_targets " $1" 547970f7c90cSmrg ac_need_defaults=false ;; 5480a850946eSmrg 5481a850946eSmrg esac 5482a850946eSmrg shift 5483a850946eSmrgdone 5484a850946eSmrg 5485a850946eSmrgac_configure_extra_args= 5486a850946eSmrg 5487a850946eSmrgif $ac_cs_silent; then 5488a850946eSmrg exec 6>/dev/null 5489a850946eSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 5490a850946eSmrgfi 5491a850946eSmrg 5492a850946eSmrg_ACEOF 549370f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5494a850946eSmrgif \$ac_cs_recheck; then 549570f7c90cSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 549670f7c90cSmrg shift 549770f7c90cSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 549870f7c90cSmrg CONFIG_SHELL='$SHELL' 549970f7c90cSmrg export CONFIG_SHELL 550070f7c90cSmrg exec "\$@" 5501a850946eSmrgfi 5502a850946eSmrg 5503a850946eSmrg_ACEOF 550470f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 550570f7c90cSmrgexec 5>>config.log 550670f7c90cSmrg{ 550770f7c90cSmrg echo 550870f7c90cSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 550970f7c90cSmrg## Running $as_me. ## 551070f7c90cSmrg_ASBOX 551170f7c90cSmrg $as_echo "$ac_log" 551270f7c90cSmrg} >&5 5513a850946eSmrg 551470f7c90cSmrg_ACEOF 551570f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5516a850946eSmrg# 551770f7c90cSmrg# INIT-COMMANDS 5518a850946eSmrg# 5519a850946eSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5520a850946eSmrg 5521a850946eSmrg_ACEOF 5522a850946eSmrg 552370f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5524a850946eSmrg 552570f7c90cSmrg# Handling of arguments. 5526a850946eSmrgfor ac_config_target in $ac_config_targets 5527a850946eSmrgdo 552870f7c90cSmrg case $ac_config_target in 552970f7c90cSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 553070f7c90cSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 553170f7c90cSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 553270f7c90cSmrg 55337dff02feSmrg *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5534a850946eSmrg esac 5535a850946eSmrgdone 5536a850946eSmrg 553770f7c90cSmrg 5538a850946eSmrg# If the user did not use the arguments to specify the items to instantiate, 5539a850946eSmrg# then the envvar interface is used. Set only those that are not. 5540a850946eSmrg# We use the long form for the default assignment because of an extremely 5541a850946eSmrg# bizarre bug on SunOS 4.1.3. 5542a850946eSmrgif $ac_need_defaults; then 5543a850946eSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5544a850946eSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5545a850946eSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5546a850946eSmrgfi 5547a850946eSmrg 5548a850946eSmrg# Have a temporary directory for convenience. Make it in the build tree 554970f7c90cSmrg# simply because there is no reason against having it here, and in addition, 5550a850946eSmrg# creating and moving files from /tmp can sometimes cause problems. 555170f7c90cSmrg# Hook for its removal unless debugging. 555270f7c90cSmrg# Note that there is a small window in which the directory will not be cleaned: 555370f7c90cSmrg# after its creation but before its name has been assigned to `$tmp'. 5554a850946eSmrg$debug || 5555a850946eSmrg{ 555670f7c90cSmrg tmp= 555770f7c90cSmrg trap 'exit_status=$? 555870f7c90cSmrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 555970f7c90cSmrg' 0 55607dff02feSmrg trap 'as_fn_exit 1' 1 2 13 15 5561a850946eSmrg} 5562a850946eSmrg# Create a (secure) tmp directory for tmp files. 5563a850946eSmrg 5564a850946eSmrg{ 556570f7c90cSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5566a850946eSmrg test -n "$tmp" && test -d "$tmp" 5567a850946eSmrg} || 5568a850946eSmrg{ 556970f7c90cSmrg tmp=./conf$$-$RANDOM 557070f7c90cSmrg (umask 077 && mkdir "$tmp") 55717dff02feSmrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 5572a850946eSmrg 557370f7c90cSmrg# Set up the scripts for CONFIG_FILES section. 557470f7c90cSmrg# No need to generate them if there are no CONFIG_FILES. 557570f7c90cSmrg# This happens for instance with `./config.status config.h'. 557670f7c90cSmrgif test -n "$CONFIG_FILES"; then 557770f7c90cSmrg 557870f7c90cSmrg 55797dff02feSmrgac_cr=`echo X | tr X '\015'` 55807dff02feSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 55817dff02feSmrg# But we know of no other shell where ac_cr would be empty at this 55827dff02feSmrg# point, so we can use a bashism as a fallback. 55837dff02feSmrgif test "x$ac_cr" = x; then 55847dff02feSmrg eval ac_cr=\$\'\\r\' 55857dff02feSmrgfi 558670f7c90cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 558770f7c90cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 55887dff02feSmrg ac_cs_awk_cr='\r' 558970f7c90cSmrgelse 559070f7c90cSmrg ac_cs_awk_cr=$ac_cr 559170f7c90cSmrgfi 559270f7c90cSmrg 559370f7c90cSmrgecho 'BEGIN {' >"$tmp/subs1.awk" && 5594a850946eSmrg_ACEOF 5595a850946eSmrg 5596a850946eSmrg 559770f7c90cSmrg{ 559870f7c90cSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 559970f7c90cSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 560070f7c90cSmrg echo "_ACEOF" 560170f7c90cSmrg} >conf$$subs.sh || 56027dff02feSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 560370f7c90cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 560470f7c90cSmrgac_delim='%!_!# ' 560570f7c90cSmrgfor ac_last_try in false false false false false :; do 560670f7c90cSmrg . ./conf$$subs.sh || 56077dff02feSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 5608a850946eSmrg 560970f7c90cSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 561070f7c90cSmrg if test $ac_delim_n = $ac_delim_num; then 561170f7c90cSmrg break 561270f7c90cSmrg elif $ac_last_try; then 56137dff02feSmrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 561470f7c90cSmrg else 561570f7c90cSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 561670f7c90cSmrg fi 561770f7c90cSmrgdone 561870f7c90cSmrgrm -f conf$$subs.sh 5619a850946eSmrg 562070f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 562170f7c90cSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 5622a850946eSmrg_ACEOF 562370f7c90cSmrgsed -n ' 562470f7c90cSmrgh 562570f7c90cSmrgs/^/S["/; s/!.*/"]=/ 562670f7c90cSmrgp 562770f7c90cSmrgg 562870f7c90cSmrgs/^[^!]*!// 562970f7c90cSmrg:repl 563070f7c90cSmrgt repl 563170f7c90cSmrgs/'"$ac_delim"'$// 563270f7c90cSmrgt delim 563370f7c90cSmrg:nl 563470f7c90cSmrgh 56357dff02feSmrgs/\(.\{148\}\)..*/\1/ 563670f7c90cSmrgt more1 563770f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 563870f7c90cSmrgp 563970f7c90cSmrgn 564070f7c90cSmrgb repl 564170f7c90cSmrg:more1 564270f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 564370f7c90cSmrgp 564470f7c90cSmrgg 564570f7c90cSmrgs/.\{148\}// 564670f7c90cSmrgt nl 564770f7c90cSmrg:delim 564870f7c90cSmrgh 56497dff02feSmrgs/\(.\{148\}\)..*/\1/ 565070f7c90cSmrgt more2 565170f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 565270f7c90cSmrgp 565370f7c90cSmrgb 565470f7c90cSmrg:more2 565570f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 565670f7c90cSmrgp 565770f7c90cSmrgg 565870f7c90cSmrgs/.\{148\}// 565970f7c90cSmrgt delim 566070f7c90cSmrg' <conf$$subs.awk | sed ' 566170f7c90cSmrg/^[^""]/{ 566270f7c90cSmrg N 566370f7c90cSmrg s/\n// 566470f7c90cSmrg} 566570f7c90cSmrg' >>$CONFIG_STATUS || ac_write_fail=1 566670f7c90cSmrgrm -f conf$$subs.awk 566770f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 566870f7c90cSmrg_ACAWK 566970f7c90cSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 567070f7c90cSmrg for (key in S) S_is_set[key] = 1 567170f7c90cSmrg FS = "" 5672a850946eSmrg 567370f7c90cSmrg} 567470f7c90cSmrg{ 567570f7c90cSmrg line = $ 0 567670f7c90cSmrg nfields = split(line, field, "@") 567770f7c90cSmrg substed = 0 567870f7c90cSmrg len = length(field[1]) 567970f7c90cSmrg for (i = 2; i < nfields; i++) { 568070f7c90cSmrg key = field[i] 568170f7c90cSmrg keylen = length(key) 568270f7c90cSmrg if (S_is_set[key]) { 568370f7c90cSmrg value = S[key] 568470f7c90cSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 568570f7c90cSmrg len += length(value) + length(field[++i]) 568670f7c90cSmrg substed = 1 568770f7c90cSmrg } else 568870f7c90cSmrg len += 1 + keylen 568970f7c90cSmrg } 569070f7c90cSmrg 569170f7c90cSmrg print line 569270f7c90cSmrg} 569370f7c90cSmrg 569470f7c90cSmrg_ACAWK 569570f7c90cSmrg_ACEOF 569670f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 569770f7c90cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 569870f7c90cSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 569970f7c90cSmrgelse 570070f7c90cSmrg cat 570170f7c90cSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 57027dff02feSmrg || as_fn_error "could not setup config files machinery" "$LINENO" 5 570370f7c90cSmrg_ACEOF 570470f7c90cSmrg 570570f7c90cSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 570670f7c90cSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 570770f7c90cSmrg# trailing colons and then remove the whole line if VPATH becomes empty 570870f7c90cSmrg# (actually we leave an empty line to preserve line numbers). 570970f7c90cSmrgif test "x$srcdir" = x.; then 571070f7c90cSmrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 571170f7c90cSmrgs/:*\$(srcdir):*/:/ 571270f7c90cSmrgs/:*\${srcdir}:*/:/ 571370f7c90cSmrgs/:*@srcdir@:*/:/ 571470f7c90cSmrgs/^\([^=]*=[ ]*\):*/\1/ 571570f7c90cSmrgs/:*$// 571670f7c90cSmrgs/^[^=]*=[ ]*$// 571770f7c90cSmrg}' 571870f7c90cSmrgfi 571970f7c90cSmrg 572070f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5721a850946eSmrgfi # test -n "$CONFIG_FILES" 5722a850946eSmrg 572370f7c90cSmrg# Set up the scripts for CONFIG_HEADERS section. 572470f7c90cSmrg# No need to generate them if there are no CONFIG_HEADERS. 572570f7c90cSmrg# This happens for instance with `./config.status Makefile'. 572670f7c90cSmrgif test -n "$CONFIG_HEADERS"; then 572770f7c90cSmrgcat >"$tmp/defines.awk" <<\_ACAWK || 572870f7c90cSmrgBEGIN { 5729a850946eSmrg_ACEOF 573070f7c90cSmrg 573170f7c90cSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 573270f7c90cSmrg# here-document in config.status, that substitutes the proper values into 573370f7c90cSmrg# config.h.in to produce config.h. 573470f7c90cSmrg 573570f7c90cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 573670f7c90cSmrg# handling of long lines. 573770f7c90cSmrgac_delim='%!_!# ' 573870f7c90cSmrgfor ac_last_try in false false :; do 573970f7c90cSmrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 574070f7c90cSmrg if test -z "$ac_t"; then 574170f7c90cSmrg break 574270f7c90cSmrg elif $ac_last_try; then 57437dff02feSmrg as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 574470f7c90cSmrg else 574570f7c90cSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 574670f7c90cSmrg fi 574770f7c90cSmrgdone 574870f7c90cSmrg 574970f7c90cSmrg# For the awk script, D is an array of macro values keyed by name, 575070f7c90cSmrg# likewise P contains macro parameters if any. Preserve backslash 575170f7c90cSmrg# newline sequences. 575270f7c90cSmrg 575370f7c90cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 575470f7c90cSmrgsed -n ' 575570f7c90cSmrgs/.\{148\}/&'"$ac_delim"'/g 575670f7c90cSmrgt rset 575770f7c90cSmrg:rset 575870f7c90cSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 575970f7c90cSmrgt def 576070f7c90cSmrgd 576170f7c90cSmrg:def 576270f7c90cSmrgs/\\$// 576370f7c90cSmrgt bsnl 576470f7c90cSmrgs/["\\]/\\&/g 576570f7c90cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 576670f7c90cSmrgD["\1"]=" \3"/p 576770f7c90cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 576870f7c90cSmrgd 576970f7c90cSmrg:bsnl 577070f7c90cSmrgs/["\\]/\\&/g 577170f7c90cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 577270f7c90cSmrgD["\1"]=" \3\\\\\\n"\\/p 577370f7c90cSmrgt cont 577470f7c90cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 577570f7c90cSmrgt cont 577670f7c90cSmrgd 577770f7c90cSmrg:cont 577870f7c90cSmrgn 577970f7c90cSmrgs/.\{148\}/&'"$ac_delim"'/g 578070f7c90cSmrgt clear 578170f7c90cSmrg:clear 578270f7c90cSmrgs/\\$// 578370f7c90cSmrgt bsnlc 578470f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 578570f7c90cSmrgd 578670f7c90cSmrg:bsnlc 578770f7c90cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 578870f7c90cSmrgb cont 578970f7c90cSmrg' <confdefs.h | sed ' 579070f7c90cSmrgs/'"$ac_delim"'/"\\\ 579170f7c90cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 579270f7c90cSmrg 579370f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 579470f7c90cSmrg for (key in D) D_is_set[key] = 1 579570f7c90cSmrg FS = "" 579670f7c90cSmrg} 579770f7c90cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 579870f7c90cSmrg line = \$ 0 579970f7c90cSmrg split(line, arg, " ") 580070f7c90cSmrg if (arg[1] == "#") { 580170f7c90cSmrg defundef = arg[2] 580270f7c90cSmrg mac1 = arg[3] 580370f7c90cSmrg } else { 580470f7c90cSmrg defundef = substr(arg[1], 2) 580570f7c90cSmrg mac1 = arg[2] 580670f7c90cSmrg } 580770f7c90cSmrg split(mac1, mac2, "(") #) 580870f7c90cSmrg macro = mac2[1] 580970f7c90cSmrg prefix = substr(line, 1, index(line, defundef) - 1) 581070f7c90cSmrg if (D_is_set[macro]) { 581170f7c90cSmrg # Preserve the white space surrounding the "#". 581270f7c90cSmrg print prefix "define", macro P[macro] D[macro] 581370f7c90cSmrg next 581470f7c90cSmrg } else { 581570f7c90cSmrg # Replace #undef with comments. This is necessary, for example, 581670f7c90cSmrg # in the case of _POSIX_SOURCE, which is predefined and required 581770f7c90cSmrg # on some systems where configure will not decide to define it. 581870f7c90cSmrg if (defundef == "undef") { 581970f7c90cSmrg print "/*", prefix defundef, macro, "*/" 582070f7c90cSmrg next 582170f7c90cSmrg } 582270f7c90cSmrg } 582370f7c90cSmrg} 582470f7c90cSmrg{ print } 582570f7c90cSmrg_ACAWK 582670f7c90cSmrg_ACEOF 582770f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 58287dff02feSmrg as_fn_error "could not setup config headers machinery" "$LINENO" 5 582970f7c90cSmrgfi # test -n "$CONFIG_HEADERS" 583070f7c90cSmrg 583170f7c90cSmrg 583270f7c90cSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 583370f7c90cSmrgshift 583470f7c90cSmrgfor ac_tag 583570f7c90cSmrgdo 583670f7c90cSmrg case $ac_tag in 583770f7c90cSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 583870f7c90cSmrg esac 583970f7c90cSmrg case $ac_mode$ac_tag in 584070f7c90cSmrg :[FHL]*:*);; 58417dff02feSmrg :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 584270f7c90cSmrg :[FH]-) ac_tag=-:-;; 584370f7c90cSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 584470f7c90cSmrg esac 584570f7c90cSmrg ac_save_IFS=$IFS 584670f7c90cSmrg IFS=: 584770f7c90cSmrg set x $ac_tag 584870f7c90cSmrg IFS=$ac_save_IFS 584970f7c90cSmrg shift 585070f7c90cSmrg ac_file=$1 585170f7c90cSmrg shift 585270f7c90cSmrg 585370f7c90cSmrg case $ac_mode in 585470f7c90cSmrg :L) ac_source=$1;; 585570f7c90cSmrg :[FH]) 585670f7c90cSmrg ac_file_inputs= 585770f7c90cSmrg for ac_f 585870f7c90cSmrg do 585970f7c90cSmrg case $ac_f in 586070f7c90cSmrg -) ac_f="$tmp/stdin";; 586170f7c90cSmrg *) # Look for the file first in the build tree, then in the source tree 586270f7c90cSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 586370f7c90cSmrg # because $ac_f cannot contain `:'. 586470f7c90cSmrg test -f "$ac_f" || 586570f7c90cSmrg case $ac_f in 586670f7c90cSmrg [\\/$]*) false;; 586770f7c90cSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 586870f7c90cSmrg esac || 58697dff02feSmrg as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 587070f7c90cSmrg esac 587170f7c90cSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 58727dff02feSmrg as_fn_append ac_file_inputs " '$ac_f'" 587370f7c90cSmrg done 587470f7c90cSmrg 587570f7c90cSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 587670f7c90cSmrg # use $as_me), people would be surprised to read: 587770f7c90cSmrg # /* config.h. Generated by config.status. */ 587870f7c90cSmrg configure_input='Generated from '` 587970f7c90cSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 588070f7c90cSmrg `' by configure.' 588170f7c90cSmrg if test x"$ac_file" != x-; then 588270f7c90cSmrg configure_input="$ac_file. $configure_input" 58837dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 588470f7c90cSmrg$as_echo "$as_me: creating $ac_file" >&6;} 588570f7c90cSmrg fi 588670f7c90cSmrg # Neutralize special characters interpreted by sed in replacement strings. 588770f7c90cSmrg case $configure_input in #( 588870f7c90cSmrg *\&* | *\|* | *\\* ) 588970f7c90cSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 589070f7c90cSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 589170f7c90cSmrg *) ac_sed_conf_input=$configure_input;; 589270f7c90cSmrg esac 589370f7c90cSmrg 589470f7c90cSmrg case $ac_tag in 589570f7c90cSmrg *:-:* | *:-) cat >"$tmp/stdin" \ 58967dff02feSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 589770f7c90cSmrg esac 589870f7c90cSmrg ;; 5899a850946eSmrg esac 5900a850946eSmrg 590170f7c90cSmrg ac_dir=`$as_dirname -- "$ac_file" || 5902a850946eSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5903a850946eSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 5904a850946eSmrg X"$ac_file" : 'X\(//\)$' \| \ 590570f7c90cSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 590670f7c90cSmrg$as_echo X"$ac_file" | 590770f7c90cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 590870f7c90cSmrg s//\1/ 590970f7c90cSmrg q 591070f7c90cSmrg } 591170f7c90cSmrg /^X\(\/\/\)[^/].*/{ 591270f7c90cSmrg s//\1/ 591370f7c90cSmrg q 591470f7c90cSmrg } 591570f7c90cSmrg /^X\(\/\/\)$/{ 591670f7c90cSmrg s//\1/ 591770f7c90cSmrg q 591870f7c90cSmrg } 591970f7c90cSmrg /^X\(\/\).*/{ 592070f7c90cSmrg s//\1/ 592170f7c90cSmrg q 592270f7c90cSmrg } 592370f7c90cSmrg s/.*/./; q'` 59247dff02feSmrg as_dir="$ac_dir"; as_fn_mkdir_p 5925a850946eSmrg ac_builddir=. 5926a850946eSmrg 592770f7c90cSmrgcase "$ac_dir" in 592870f7c90cSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 592970f7c90cSmrg*) 593070f7c90cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 593170f7c90cSmrg # A ".." for each directory in $ac_dir_suffix. 593270f7c90cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 593370f7c90cSmrg case $ac_top_builddir_sub in 593470f7c90cSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 593570f7c90cSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 593670f7c90cSmrg esac ;; 593770f7c90cSmrgesac 593870f7c90cSmrgac_abs_top_builddir=$ac_pwd 593970f7c90cSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 594070f7c90cSmrg# for backward compatibility: 594170f7c90cSmrgac_top_builddir=$ac_top_build_prefix 5942a850946eSmrg 5943a850946eSmrgcase $srcdir in 594470f7c90cSmrg .) # We are building in place. 5945a850946eSmrg ac_srcdir=. 594670f7c90cSmrg ac_top_srcdir=$ac_top_builddir_sub 594770f7c90cSmrg ac_abs_top_srcdir=$ac_pwd ;; 594870f7c90cSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 5949a850946eSmrg ac_srcdir=$srcdir$ac_dir_suffix; 595070f7c90cSmrg ac_top_srcdir=$srcdir 595170f7c90cSmrg ac_abs_top_srcdir=$srcdir ;; 595270f7c90cSmrg *) # Relative name. 595370f7c90cSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 595470f7c90cSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 595570f7c90cSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5956a850946eSmrgesac 595770f7c90cSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5958a850946eSmrg 5959a850946eSmrg 596070f7c90cSmrg case $ac_mode in 596170f7c90cSmrg :F) 596270f7c90cSmrg # 596370f7c90cSmrg # CONFIG_FILE 596470f7c90cSmrg # 5965a850946eSmrg 5966a850946eSmrg case $INSTALL in 5967a850946eSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 596870f7c90cSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5969a850946eSmrg esac 597070f7c90cSmrg ac_MKDIR_P=$MKDIR_P 597170f7c90cSmrg case $MKDIR_P in 597270f7c90cSmrg [\\/$]* | ?:[\\/]* ) ;; 597370f7c90cSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 597470f7c90cSmrg esac 597570f7c90cSmrg_ACEOF 5976a850946eSmrg 597770f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 597870f7c90cSmrg# If the template does not know about datarootdir, expand it. 597970f7c90cSmrg# FIXME: This hack should be removed a few years after 2.60. 598070f7c90cSmrgac_datarootdir_hack=; ac_datarootdir_seen= 598170f7c90cSmrgac_sed_dataroot=' 598270f7c90cSmrg/datarootdir/ { 598370f7c90cSmrg p 598470f7c90cSmrg q 598570f7c90cSmrg} 598670f7c90cSmrg/@datadir@/p 598770f7c90cSmrg/@docdir@/p 598870f7c90cSmrg/@infodir@/p 598970f7c90cSmrg/@localedir@/p 59907dff02feSmrg/@mandir@/p' 599170f7c90cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 599270f7c90cSmrg*datarootdir*) ac_datarootdir_seen=yes;; 599370f7c90cSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 59947dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 599570f7c90cSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5996a850946eSmrg_ACEOF 599770f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 599870f7c90cSmrg ac_datarootdir_hack=' 599970f7c90cSmrg s&@datadir@&$datadir&g 600070f7c90cSmrg s&@docdir@&$docdir&g 600170f7c90cSmrg s&@infodir@&$infodir&g 600270f7c90cSmrg s&@localedir@&$localedir&g 600370f7c90cSmrg s&@mandir@&$mandir&g 60047dff02feSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 600570f7c90cSmrgesac 600670f7c90cSmrg_ACEOF 600770f7c90cSmrg 600870f7c90cSmrg# Neutralize VPATH when `$srcdir' = `.'. 600970f7c90cSmrg# Shell code in configure.ac might set extrasub. 601070f7c90cSmrg# FIXME: do we really want to maintain this feature? 601170f7c90cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 601270f7c90cSmrgac_sed_extra="$ac_vpsub 6013a850946eSmrg$extrasub 6014a850946eSmrg_ACEOF 601570f7c90cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6016a850946eSmrg:t 6017a850946eSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 601870f7c90cSmrgs|@configure_input@|$ac_sed_conf_input|;t t 601970f7c90cSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 602070f7c90cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 602170f7c90cSmrgs&@srcdir@&$ac_srcdir&;t t 602270f7c90cSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 602370f7c90cSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 602470f7c90cSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 602570f7c90cSmrgs&@builddir@&$ac_builddir&;t t 602670f7c90cSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 602770f7c90cSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 602870f7c90cSmrgs&@INSTALL@&$ac_INSTALL&;t t 602970f7c90cSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 603070f7c90cSmrg$ac_datarootdir_hack 603170f7c90cSmrg" 603270f7c90cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 60337dff02feSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6034a850946eSmrg 603570f7c90cSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 603670f7c90cSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 603770f7c90cSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 60387dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 603970f7c90cSmrgwhich seems to be undefined. Please make sure it is defined." >&5 604070f7c90cSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 604170f7c90cSmrgwhich seems to be undefined. Please make sure it is defined." >&2;} 6042a850946eSmrg 604370f7c90cSmrg rm -f "$tmp/stdin" 6044a850946eSmrg case $ac_file in 604570f7c90cSmrg -) cat "$tmp/out" && rm -f "$tmp/out";; 604670f7c90cSmrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 604770f7c90cSmrg esac \ 60487dff02feSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 604970f7c90cSmrg ;; 605070f7c90cSmrg :H) 605170f7c90cSmrg # 605270f7c90cSmrg # CONFIG_HEADER 605370f7c90cSmrg # 6054a850946eSmrg if test x"$ac_file" != x-; then 605570f7c90cSmrg { 605670f7c90cSmrg $as_echo "/* $configure_input */" \ 605770f7c90cSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 605870f7c90cSmrg } >"$tmp/config.h" \ 60597dff02feSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 606070f7c90cSmrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 60617dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 606270f7c90cSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6063a850946eSmrg else 606470f7c90cSmrg rm -f "$ac_file" 606570f7c90cSmrg mv "$tmp/config.h" "$ac_file" \ 60667dff02feSmrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6067a850946eSmrg fi 6068a850946eSmrg else 606970f7c90cSmrg $as_echo "/* $configure_input */" \ 607070f7c90cSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 60717dff02feSmrg || as_fn_error "could not create -" "$LINENO" 5 6072a850946eSmrg fi 607370f7c90cSmrg# Compute "$ac_file"'s index in $config_headers. 607470f7c90cSmrg_am_arg="$ac_file" 6075a850946eSmrg_am_stamp_count=1 6076a850946eSmrgfor _am_header in $config_headers :; do 6077a850946eSmrg case $_am_header in 607870f7c90cSmrg $_am_arg | $_am_arg:* ) 6079a850946eSmrg break ;; 6080a850946eSmrg * ) 6081a850946eSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6082a850946eSmrg esac 6083a850946eSmrgdone 608470f7c90cSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 608570f7c90cSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 608670f7c90cSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 608770f7c90cSmrg X"$_am_arg" : 'X\(//\)$' \| \ 608870f7c90cSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 608970f7c90cSmrg$as_echo X"$_am_arg" | 609070f7c90cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 609170f7c90cSmrg s//\1/ 609270f7c90cSmrg q 609370f7c90cSmrg } 609470f7c90cSmrg /^X\(\/\/\)[^/].*/{ 609570f7c90cSmrg s//\1/ 609670f7c90cSmrg q 609770f7c90cSmrg } 609870f7c90cSmrg /^X\(\/\/\)$/{ 609970f7c90cSmrg s//\1/ 610070f7c90cSmrg q 610170f7c90cSmrg } 610270f7c90cSmrg /^X\(\/\).*/{ 610370f7c90cSmrg s//\1/ 610470f7c90cSmrg q 610570f7c90cSmrg } 610670f7c90cSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 610770f7c90cSmrg ;; 6108a850946eSmrg 61097dff02feSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 611070f7c90cSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 611170f7c90cSmrg ;; 611270f7c90cSmrg esac 6113a850946eSmrg 6114a850946eSmrg 611570f7c90cSmrg case $ac_file$ac_mode in 611670f7c90cSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 611770f7c90cSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 611870f7c90cSmrg # are listed without --file. Let's play safe and only enable the eval 611970f7c90cSmrg # if we detect the quoting. 612070f7c90cSmrg case $CONFIG_FILES in 612170f7c90cSmrg *\'*) eval set x "$CONFIG_FILES" ;; 612270f7c90cSmrg *) set x $CONFIG_FILES ;; 612370f7c90cSmrg esac 612470f7c90cSmrg shift 612570f7c90cSmrg for mf 612670f7c90cSmrg do 612770f7c90cSmrg # Strip MF so we end up with the name of the file. 612870f7c90cSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 612970f7c90cSmrg # Check whether this is an Automake generated Makefile or not. 613070f7c90cSmrg # We used to match only the files named `Makefile.in', but 613170f7c90cSmrg # some people rename them; so instead we look at the file content. 613270f7c90cSmrg # Grep'ing the first line is not enough: some people post-process 613370f7c90cSmrg # each Makefile.in and add a new line on top of each file to say so. 613470f7c90cSmrg # Grep'ing the whole file is not good either: AIX grep has a line 613570f7c90cSmrg # limit of 2048, but all sed's we know have understand at least 4000. 613670f7c90cSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 613770f7c90cSmrg dirpart=`$as_dirname -- "$mf" || 6138a850946eSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6139a850946eSmrg X"$mf" : 'X\(//\)[^/]' \| \ 6140a850946eSmrg X"$mf" : 'X\(//\)$' \| \ 614170f7c90cSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 614270f7c90cSmrg$as_echo X"$mf" | 614370f7c90cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 614470f7c90cSmrg s//\1/ 614570f7c90cSmrg q 614670f7c90cSmrg } 614770f7c90cSmrg /^X\(\/\/\)[^/].*/{ 614870f7c90cSmrg s//\1/ 614970f7c90cSmrg q 615070f7c90cSmrg } 615170f7c90cSmrg /^X\(\/\/\)$/{ 615270f7c90cSmrg s//\1/ 615370f7c90cSmrg q 615470f7c90cSmrg } 615570f7c90cSmrg /^X\(\/\).*/{ 615670f7c90cSmrg s//\1/ 615770f7c90cSmrg q 615870f7c90cSmrg } 615970f7c90cSmrg s/.*/./; q'` 616070f7c90cSmrg else 616170f7c90cSmrg continue 616270f7c90cSmrg fi 616370f7c90cSmrg # Extract the definition of DEPDIR, am__include, and am__quote 616470f7c90cSmrg # from the Makefile without running `make'. 616570f7c90cSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 616670f7c90cSmrg test -z "$DEPDIR" && continue 616770f7c90cSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 616870f7c90cSmrg test -z "am__include" && continue 616970f7c90cSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 617070f7c90cSmrg # When using ansi2knr, U may be empty or an underscore; expand it 617170f7c90cSmrg U=`sed -n 's/^U = //p' < "$mf"` 617270f7c90cSmrg # Find all dependency output files, they are included files with 617370f7c90cSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 617470f7c90cSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 617570f7c90cSmrg # expansion. 617670f7c90cSmrg for file in `sed -n " 617770f7c90cSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 617870f7c90cSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 617970f7c90cSmrg # Make sure the directory exists. 618070f7c90cSmrg test -f "$dirpart/$file" && continue 618170f7c90cSmrg fdir=`$as_dirname -- "$file" || 6182a850946eSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6183a850946eSmrg X"$file" : 'X\(//\)[^/]' \| \ 6184a850946eSmrg X"$file" : 'X\(//\)$' \| \ 618570f7c90cSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 618670f7c90cSmrg$as_echo X"$file" | 618770f7c90cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 618870f7c90cSmrg s//\1/ 618970f7c90cSmrg q 619070f7c90cSmrg } 619170f7c90cSmrg /^X\(\/\/\)[^/].*/{ 619270f7c90cSmrg s//\1/ 619370f7c90cSmrg q 619470f7c90cSmrg } 619570f7c90cSmrg /^X\(\/\/\)$/{ 619670f7c90cSmrg s//\1/ 619770f7c90cSmrg q 619870f7c90cSmrg } 619970f7c90cSmrg /^X\(\/\).*/{ 620070f7c90cSmrg s//\1/ 620170f7c90cSmrg q 620270f7c90cSmrg } 620370f7c90cSmrg s/.*/./; q'` 62047dff02feSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 620570f7c90cSmrg # echo "creating $dirpart/$file" 620670f7c90cSmrg echo '# dummy' > "$dirpart/$file" 620770f7c90cSmrg done 6208a850946eSmrg done 620970f7c90cSmrg} 6210a850946eSmrg ;; 621170f7c90cSmrg 6212a850946eSmrg esac 621370f7c90cSmrgdone # for ac_tag 6214a850946eSmrg 6215a850946eSmrg 62167dff02feSmrgas_fn_exit 0 6217a850946eSmrg_ACEOF 6218a850946eSmrgac_clean_files=$ac_clean_files_save 6219a850946eSmrg 622070f7c90cSmrgtest $ac_write_fail = 0 || 62217dff02feSmrg as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 622270f7c90cSmrg 6223a850946eSmrg 6224a850946eSmrg# configure is writing to config.log, and then calls config.status. 6225a850946eSmrg# config.status does its own redirection, appending to config.log. 6226a850946eSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 6227a850946eSmrg# by configure, so config.status won't be able to write to it; its 6228a850946eSmrg# output is simply discarded. So we exec the FD to /dev/null, 6229a850946eSmrg# effectively closing config.log, so it can be properly (re)opened and 6230a850946eSmrg# appended to by config.status. When coming back to configure, we 6231a850946eSmrg# need to make the FD available again. 6232a850946eSmrgif test "$no_create" != yes; then 6233a850946eSmrg ac_cs_success=: 6234a850946eSmrg ac_config_status_args= 6235a850946eSmrg test "$silent" = yes && 6236a850946eSmrg ac_config_status_args="$ac_config_status_args --quiet" 6237a850946eSmrg exec 5>/dev/null 6238a850946eSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6239a850946eSmrg exec 5>>config.log 6240a850946eSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6241a850946eSmrg # would make configure fail if this is the last instruction. 62427dff02feSmrg $ac_cs_success || as_fn_exit $? 6243a850946eSmrgfi 624470f7c90cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 62457dff02feSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 624670f7c90cSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 624770f7c90cSmrgfi 6248a850946eSmrg 6249