configure revision 2852888e
17a0395d0Smrg#! /bin/sh 27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles. 32852888eSmrg# Generated by GNU Autoconf 2.68 for xauth 1.0.6. 47a0395d0Smrg# 57a0395d0Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 67a0395d0Smrg# 72adc0320Smrg# 87a0395d0Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 92adc0320Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 102adc0320Smrg# Foundation, Inc. 112adc0320Smrg# 122adc0320Smrg# 137a0395d0Smrg# This configure script is free software; the Free Software Foundation 147a0395d0Smrg# gives unlimited permission to copy, distribute and modify it. 152adc0320Smrg## -------------------- ## 162adc0320Smrg## M4sh Initialization. ## 172adc0320Smrg## -------------------- ## 187a0395d0Smrg 197a0395d0Smrg# Be more Bourne compatible 207a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 212adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 227a0395d0Smrg emulate sh 237a0395d0Smrg NULLCMD=: 247366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 257a0395d0Smrg # is contrary to our usage. Disable this feature. 267a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 277a0395d0Smrg setopt NO_GLOB_SUBST 287a0395d0Smrgelse 292adc0320Smrg case `(set -o) 2>/dev/null` in #( 302adc0320Smrg *posix*) : 312adc0320Smrg set -o posix ;; #( 322adc0320Smrg *) : 332adc0320Smrg ;; 347a0395d0Smrgesac 357a0395d0Smrgfi 367a0395d0Smrg 377a0395d0Smrg 387366012aSmrgas_nl=' 397366012aSmrg' 407366012aSmrgexport as_nl 417366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 427366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 437366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 447366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 452adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 462adc0320Smrg# but without wasting forks for bash or zsh. 472adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 482adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 492adc0320Smrg as_echo='print -r --' 502adc0320Smrg as_echo_n='print -rn --' 512adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 527366012aSmrg as_echo='printf %s\n' 537366012aSmrg as_echo_n='printf %s' 547366012aSmrgelse 557366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 567366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 577366012aSmrg as_echo_n='/usr/ucb/echo -n' 587a0395d0Smrg else 597366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 607366012aSmrg as_echo_n_body='eval 617366012aSmrg arg=$1; 622adc0320Smrg case $arg in #( 637366012aSmrg *"$as_nl"*) 647366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 657366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 667366012aSmrg esac; 677366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 687366012aSmrg ' 697366012aSmrg export as_echo_n_body 707366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 717a0395d0Smrg fi 727366012aSmrg export as_echo_body 737366012aSmrg as_echo='sh -c $as_echo_body as_echo' 747366012aSmrgfi 757366012aSmrg 767366012aSmrg# The user is always right. 777366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 787366012aSmrg PATH_SEPARATOR=: 797366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 807366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 817366012aSmrg PATH_SEPARATOR=';' 827366012aSmrg } 837a0395d0Smrgfi 847a0395d0Smrg 857a0395d0Smrg 867a0395d0Smrg# IFS 877a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 887a0395d0Smrg# there to prevent editors from complaining about space-tab. 897a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 907a0395d0Smrg# splitting by setting IFS to empty value.) 917a0395d0SmrgIFS=" "" $as_nl" 927a0395d0Smrg 937a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 942adc0320Smrgas_myself= 952adc0320Smrgcase $0 in #(( 967a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 977a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 987a0395d0Smrgfor as_dir in $PATH 997a0395d0Smrgdo 1007a0395d0Smrg IFS=$as_save_IFS 1017a0395d0Smrg test -z "$as_dir" && as_dir=. 1022adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1032adc0320Smrg done 1047a0395d0SmrgIFS=$as_save_IFS 1057a0395d0Smrg 1067a0395d0Smrg ;; 1077a0395d0Smrgesac 1087a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1097a0395d0Smrg# in which case we are not to be found in the path. 1107a0395d0Smrgif test "x$as_myself" = x; then 1117a0395d0Smrg as_myself=$0 1127a0395d0Smrgfi 1137a0395d0Smrgif test ! -f "$as_myself"; then 1147366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1152adc0320Smrg exit 1 1167a0395d0Smrgfi 1177a0395d0Smrg 1182adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1192adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1202adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 1212adc0320Smrg# trigger a bug in pdksh 5.2.14. 1222adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1232adc0320Smrgdo eval test x\${$as_var+set} = xset \ 1242adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1257a0395d0Smrgdone 1267a0395d0SmrgPS1='$ ' 1277a0395d0SmrgPS2='> ' 1287a0395d0SmrgPS4='+ ' 1297a0395d0Smrg 1307a0395d0Smrg# NLS nuisances. 1317366012aSmrgLC_ALL=C 1327366012aSmrgexport LC_ALL 1337366012aSmrgLANGUAGE=C 1347366012aSmrgexport LANGUAGE 1357a0395d0Smrg 1362adc0320Smrg# CDPATH. 1372adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1382adc0320Smrg 1392adc0320Smrgif test "x$CONFIG_SHELL" = x; then 1402adc0320Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1412adc0320Smrg emulate sh 1422adc0320Smrg NULLCMD=: 1432adc0320Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1442adc0320Smrg # is contrary to our usage. Disable this feature. 1452adc0320Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1462adc0320Smrg setopt NO_GLOB_SUBST 1472adc0320Smrgelse 1482adc0320Smrg case \`(set -o) 2>/dev/null\` in #( 1492adc0320Smrg *posix*) : 1502adc0320Smrg set -o posix ;; #( 1512adc0320Smrg *) : 1522adc0320Smrg ;; 1532adc0320Smrgesac 1542adc0320Smrgfi 1552adc0320Smrg" 1562adc0320Smrg as_required="as_fn_return () { (exit \$1); } 1572adc0320Smrgas_fn_success () { as_fn_return 0; } 1582adc0320Smrgas_fn_failure () { as_fn_return 1; } 1592adc0320Smrgas_fn_ret_success () { return 0; } 1602adc0320Smrgas_fn_ret_failure () { return 1; } 1612adc0320Smrg 1622adc0320Smrgexitcode=0 1632adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1642adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1652adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1662adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1672adc0320Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1682adc0320Smrg 1692adc0320Smrgelse 1702adc0320Smrg exitcode=1; echo positional parameters were not saved. 1712adc0320Smrgfi 1722adc0320Smrgtest x\$exitcode = x0 || exit 1" 1732adc0320Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1742adc0320Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1752adc0320Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1762adc0320Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1772adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1782adc0320Smrg if (eval "$as_required") 2>/dev/null; then : 1792adc0320Smrg as_have_required=yes 1802adc0320Smrgelse 1812adc0320Smrg as_have_required=no 1822adc0320Smrgfi 1832adc0320Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1842adc0320Smrg 1852adc0320Smrgelse 1862adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872adc0320Smrgas_found=false 1882adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1892adc0320Smrgdo 1902adc0320Smrg IFS=$as_save_IFS 1912adc0320Smrg test -z "$as_dir" && as_dir=. 1922adc0320Smrg as_found=: 1932adc0320Smrg case $as_dir in #( 1942adc0320Smrg /*) 1952adc0320Smrg for as_base in sh bash ksh sh5; do 1962adc0320Smrg # Try only shells that exist, to save several forks. 1972adc0320Smrg as_shell=$as_dir/$as_base 1982adc0320Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 1992adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2002adc0320Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2012adc0320Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2022adc0320Smrg break 2 2032adc0320Smrgfi 2042adc0320Smrgfi 2052adc0320Smrg done;; 2062adc0320Smrg esac 2072adc0320Smrg as_found=false 2082adc0320Smrgdone 2092adc0320Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2102adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2112adc0320Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2122adc0320Smrgfi; } 2132adc0320SmrgIFS=$as_save_IFS 2142adc0320Smrg 2152adc0320Smrg 2162adc0320Smrg if test "x$CONFIG_SHELL" != x; then : 2172adc0320Smrg # We cannot yet assume a decent shell, so we have to provide a 2182adc0320Smrg # neutralization value for shells without unset; and this also 2192adc0320Smrg # works around shells that cannot unset nonexistent variables. 2202adc0320Smrg # Preserve -v and -x to the replacement shell. 2212adc0320Smrg BASH_ENV=/dev/null 2222adc0320Smrg ENV=/dev/null 2232adc0320Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2242adc0320Smrg export CONFIG_SHELL 2252adc0320Smrg case $- in # (((( 2262adc0320Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2272adc0320Smrg *v* ) as_opts=-v ;; 2282adc0320Smrg *x* ) as_opts=-x ;; 2292adc0320Smrg * ) as_opts= ;; 2302adc0320Smrg esac 2312adc0320Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2322adc0320Smrgfi 2332adc0320Smrg 2342adc0320Smrg if test x$as_have_required = xno; then : 2352adc0320Smrg $as_echo "$0: This script requires a shell more modern than all" 2362adc0320Smrg $as_echo "$0: the shells that I found on your system." 2372adc0320Smrg if test x${ZSH_VERSION+set} = xset ; then 2382adc0320Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2392adc0320Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2402adc0320Smrg else 2412adc0320Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2422adc0320Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2432adc0320Smrg$0: about your system, including any error possibly output 2442adc0320Smrg$0: before this message. Then install a modern shell, or 2452adc0320Smrg$0: manually run the script under such a shell if you do 2462adc0320Smrg$0: have one." 2472adc0320Smrg fi 2482adc0320Smrg exit 1 2492adc0320Smrgfi 2502adc0320Smrgfi 2512adc0320Smrgfi 2522adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2532adc0320Smrgexport SHELL 2542adc0320Smrg# Unset more variables known to interfere with behavior of common tools. 2552adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2562adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2572adc0320Smrg 2582adc0320Smrg## --------------------- ## 2592adc0320Smrg## M4sh Shell Functions. ## 2602adc0320Smrg## --------------------- ## 2612adc0320Smrg# as_fn_unset VAR 2622adc0320Smrg# --------------- 2632adc0320Smrg# Portably unset VAR. 2642adc0320Smrgas_fn_unset () 2652adc0320Smrg{ 2662adc0320Smrg { eval $1=; unset $1;} 2672adc0320Smrg} 2682adc0320Smrgas_unset=as_fn_unset 2692adc0320Smrg 2702adc0320Smrg# as_fn_set_status STATUS 2712adc0320Smrg# ----------------------- 2722adc0320Smrg# Set $? to STATUS, without forking. 2732adc0320Smrgas_fn_set_status () 2742adc0320Smrg{ 2752adc0320Smrg return $1 2762adc0320Smrg} # as_fn_set_status 2772adc0320Smrg 2782adc0320Smrg# as_fn_exit STATUS 2792adc0320Smrg# ----------------- 2802adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2812adc0320Smrgas_fn_exit () 2822adc0320Smrg{ 2832adc0320Smrg set +e 2842adc0320Smrg as_fn_set_status $1 2852adc0320Smrg exit $1 2862adc0320Smrg} # as_fn_exit 2872adc0320Smrg 2882adc0320Smrg# as_fn_mkdir_p 2892adc0320Smrg# ------------- 2902adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 2912adc0320Smrgas_fn_mkdir_p () 2922adc0320Smrg{ 2932adc0320Smrg 2942adc0320Smrg case $as_dir in #( 2952adc0320Smrg -*) as_dir=./$as_dir;; 2962adc0320Smrg esac 2972adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 2982adc0320Smrg as_dirs= 2992adc0320Smrg while :; do 3002adc0320Smrg case $as_dir in #( 3012adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3022adc0320Smrg *) as_qdir=$as_dir;; 3032adc0320Smrg esac 3042adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 3052adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 3062adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3072adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3082adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 3092adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3102adc0320Smrg$as_echo X"$as_dir" | 3112adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3122adc0320Smrg s//\1/ 3132adc0320Smrg q 3142adc0320Smrg } 3152adc0320Smrg /^X\(\/\/\)[^/].*/{ 3162adc0320Smrg s//\1/ 3172adc0320Smrg q 3182adc0320Smrg } 3192adc0320Smrg /^X\(\/\/\)$/{ 3202adc0320Smrg s//\1/ 3212adc0320Smrg q 3222adc0320Smrg } 3232adc0320Smrg /^X\(\/\).*/{ 3242adc0320Smrg s//\1/ 3252adc0320Smrg q 3262adc0320Smrg } 3272adc0320Smrg s/.*/./; q'` 3282adc0320Smrg test -d "$as_dir" && break 3292adc0320Smrg done 3302adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3312adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3322adc0320Smrg 3332adc0320Smrg 3342adc0320Smrg} # as_fn_mkdir_p 3352adc0320Smrg# as_fn_append VAR VALUE 3362adc0320Smrg# ---------------------- 3372adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3382adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 3392adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 3402adc0320Smrg# implementations. 3412adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3422adc0320Smrg eval 'as_fn_append () 3432adc0320Smrg { 3442adc0320Smrg eval $1+=\$2 3452adc0320Smrg }' 3462adc0320Smrgelse 3472adc0320Smrg as_fn_append () 3482adc0320Smrg { 3492adc0320Smrg eval $1=\$$1\$2 3502adc0320Smrg } 3512adc0320Smrgfi # as_fn_append 3522adc0320Smrg 3532adc0320Smrg# as_fn_arith ARG... 3542adc0320Smrg# ------------------ 3552adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3562adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3572adc0320Smrg# must be portable across $(()) and expr. 3582adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3592adc0320Smrg eval 'as_fn_arith () 3602adc0320Smrg { 3612adc0320Smrg as_val=$(( $* )) 3622adc0320Smrg }' 3632adc0320Smrgelse 3642adc0320Smrg as_fn_arith () 3652adc0320Smrg { 3662adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 3672adc0320Smrg } 3682adc0320Smrgfi # as_fn_arith 3692adc0320Smrg 3702adc0320Smrg 3712adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 3722adc0320Smrg# ---------------------------------------- 3732adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3742adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3752adc0320Smrg# script with STATUS, using 1 if that was 0. 3762adc0320Smrgas_fn_error () 3772adc0320Smrg{ 3782adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 3792adc0320Smrg if test "$4"; then 3802adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3812adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3822adc0320Smrg fi 3832adc0320Smrg $as_echo "$as_me: error: $2" >&2 3842adc0320Smrg as_fn_exit $as_status 3852adc0320Smrg} # as_fn_error 3862adc0320Smrg 3877a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 3887a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3897a0395d0Smrg as_expr=expr 3907a0395d0Smrgelse 3917a0395d0Smrg as_expr=false 3927a0395d0Smrgfi 3937a0395d0Smrg 3947a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3957a0395d0Smrg as_basename=basename 3967a0395d0Smrgelse 3977a0395d0Smrg as_basename=false 3987a0395d0Smrgfi 3997a0395d0Smrg 4002adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4012adc0320Smrg as_dirname=dirname 4022adc0320Smrgelse 4032adc0320Smrg as_dirname=false 4042adc0320Smrgfi 4057a0395d0Smrg 4067a0395d0Smrgas_me=`$as_basename -- "$0" || 4077a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4087a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 4097a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4107366012aSmrg$as_echo X/"$0" | 4117a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4127a0395d0Smrg s//\1/ 4137a0395d0Smrg q 4147a0395d0Smrg } 4157a0395d0Smrg /^X\/\(\/\/\)$/{ 4167a0395d0Smrg s//\1/ 4177a0395d0Smrg q 4187a0395d0Smrg } 4197a0395d0Smrg /^X\/\(\/\).*/{ 4207a0395d0Smrg s//\1/ 4217a0395d0Smrg q 4227a0395d0Smrg } 4237a0395d0Smrg s/.*/./; q'` 4247a0395d0Smrg 4252adc0320Smrg# Avoid depending upon Character Ranges. 4262adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4272adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4282adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4292adc0320Smrgas_cr_digits='0123456789' 4302adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4317a0395d0Smrg 4327a0395d0Smrg 4332adc0320Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4342adc0320Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4352adc0320Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4362adc0320Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4372adc0320Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4382adc0320Smrg sed -n ' 4392adc0320Smrg p 4402adc0320Smrg /[$]LINENO/= 4412adc0320Smrg ' <$as_myself | 4422adc0320Smrg sed ' 4432adc0320Smrg s/[$]LINENO.*/&-/ 4442adc0320Smrg t lineno 4452adc0320Smrg b 4462adc0320Smrg :lineno 4472adc0320Smrg N 4482adc0320Smrg :loop 4492adc0320Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4502adc0320Smrg t loop 4512adc0320Smrg s/-\n.*// 4522adc0320Smrg ' >$as_me.lineno && 4532adc0320Smrg chmod +x "$as_me.lineno" || 4542adc0320Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4557a0395d0Smrg 4562adc0320Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4572adc0320Smrg # (the dirname of $[0] is not the place where we might find the 4582adc0320Smrg # original and so on. Autoconf is especially sensitive to this). 4592adc0320Smrg . "./$as_me.lineno" 4602adc0320Smrg # Exit status is that of the last command. 4612adc0320Smrg exit 4627a0395d0Smrg} 4637a0395d0Smrg 4642adc0320SmrgECHO_C= ECHO_N= ECHO_T= 4652adc0320Smrgcase `echo -n x` in #((((( 4662adc0320Smrg-n*) 4672adc0320Smrg case `echo 'xy\c'` in 4682adc0320Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4692adc0320Smrg xy) ECHO_C='\c';; 4702adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4712adc0320Smrg ECHO_T=' ';; 4722adc0320Smrg esac;; 4732adc0320Smrg*) 4742adc0320Smrg ECHO_N='-n';; 4752adc0320Smrgesac 4767a0395d0Smrg 4772adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file 4782adc0320Smrgif test -d conf$$.dir; then 4792adc0320Smrg rm -f conf$$.dir/conf$$.file 4802adc0320Smrgelse 4812adc0320Smrg rm -f conf$$.dir 4822adc0320Smrg mkdir conf$$.dir 2>/dev/null 4837a0395d0Smrgfi 4842adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then 4852adc0320Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 4862adc0320Smrg as_ln_s='ln -s' 4872adc0320Smrg # ... but there are two gotchas: 4882adc0320Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4892adc0320Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4902adc0320Smrg # In both cases, we have to default to `cp -p'. 4912adc0320Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4922adc0320Smrg as_ln_s='cp -p' 4932adc0320Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 4942adc0320Smrg as_ln_s=ln 4952adc0320Smrg else 4962adc0320Smrg as_ln_s='cp -p' 4972adc0320Smrg fi 4987a0395d0Smrgelse 4992adc0320Smrg as_ln_s='cp -p' 5007a0395d0Smrgfi 5012adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5022adc0320Smrgrmdir conf$$.dir 2>/dev/null 5037a0395d0Smrg 5042adc0320Smrgif mkdir -p . 2>/dev/null; then 5052adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 5062adc0320Smrgelse 5072adc0320Smrg test -d ./-p && rmdir ./-p 5082adc0320Smrg as_mkdir_p=false 5097a0395d0Smrgfi 5107a0395d0Smrg 5112adc0320Smrgif test -x / >/dev/null 2>&1; then 5122adc0320Smrg as_test_x='test -x' 5137a0395d0Smrgelse 5142adc0320Smrg if ls -dL / >/dev/null 2>&1; then 5152adc0320Smrg as_ls_L_option=L 5162adc0320Smrg else 5172adc0320Smrg as_ls_L_option= 5182adc0320Smrg fi 5192adc0320Smrg as_test_x=' 5202adc0320Smrg eval sh -c '\'' 5212adc0320Smrg if test -d "$1"; then 5222adc0320Smrg test -d "$1/."; 5232adc0320Smrg else 5242adc0320Smrg case $1 in #( 5252adc0320Smrg -*)set "./$1";; 5262adc0320Smrg esac; 5272adc0320Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5282adc0320Smrg ???[sx]*):;;*)false;;esac;fi 5292adc0320Smrg '\'' sh 5302adc0320Smrg ' 5317a0395d0Smrgfi 5322adc0320Smrgas_executable_p=$as_test_x 5337a0395d0Smrg 5342adc0320Smrg# Sed expression to map a string onto a valid CPP name. 5352adc0320Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5367a0395d0Smrg 5372adc0320Smrg# Sed expression to map a string onto a valid variable name. 5382adc0320Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5397a0395d0Smrg 5407a0395d0Smrg 5412adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5422adc0320Smrgexec 6>&1 5437a0395d0Smrg 5447a0395d0Smrg# Name of the host. 5452adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5467a0395d0Smrg# so uname gets run too. 5477a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5487a0395d0Smrg 5497a0395d0Smrg# 5507a0395d0Smrg# Initializations. 5517a0395d0Smrg# 5527a0395d0Smrgac_default_prefix=/usr/local 5537a0395d0Smrgac_clean_files= 5547a0395d0Smrgac_config_libobj_dir=. 5557a0395d0SmrgLIBOBJS= 5567a0395d0Smrgcross_compiling=no 5577a0395d0Smrgsubdirs= 5587a0395d0SmrgMFLAGS= 5597a0395d0SmrgMAKEFLAGS= 5607a0395d0Smrg 5617a0395d0Smrg# Identity of this package. 5627a0395d0SmrgPACKAGE_NAME='xauth' 5637a0395d0SmrgPACKAGE_TARNAME='xauth' 5642852888eSmrgPACKAGE_VERSION='1.0.6' 5652852888eSmrgPACKAGE_STRING='xauth 1.0.6' 5667a0395d0SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5672adc0320SmrgPACKAGE_URL='' 5687a0395d0Smrg 5697a0395d0Smrg# Factoring default headers for most tests. 5707a0395d0Smrgac_includes_default="\ 5717a0395d0Smrg#include <stdio.h> 5727a0395d0Smrg#ifdef HAVE_SYS_TYPES_H 5737a0395d0Smrg# include <sys/types.h> 5747a0395d0Smrg#endif 5757a0395d0Smrg#ifdef HAVE_SYS_STAT_H 5767a0395d0Smrg# include <sys/stat.h> 5777a0395d0Smrg#endif 5787a0395d0Smrg#ifdef STDC_HEADERS 5797a0395d0Smrg# include <stdlib.h> 5807a0395d0Smrg# include <stddef.h> 5817a0395d0Smrg#else 5827a0395d0Smrg# ifdef HAVE_STDLIB_H 5837a0395d0Smrg# include <stdlib.h> 5847a0395d0Smrg# endif 5857a0395d0Smrg#endif 5867a0395d0Smrg#ifdef HAVE_STRING_H 5877a0395d0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5887a0395d0Smrg# include <memory.h> 5897a0395d0Smrg# endif 5907a0395d0Smrg# include <string.h> 5917a0395d0Smrg#endif 5927a0395d0Smrg#ifdef HAVE_STRINGS_H 5937a0395d0Smrg# include <strings.h> 5947a0395d0Smrg#endif 5957a0395d0Smrg#ifdef HAVE_INTTYPES_H 5967a0395d0Smrg# include <inttypes.h> 5977a0395d0Smrg#endif 5987a0395d0Smrg#ifdef HAVE_STDINT_H 5997a0395d0Smrg# include <stdint.h> 6007a0395d0Smrg#endif 6017a0395d0Smrg#ifdef HAVE_UNISTD_H 6027a0395d0Smrg# include <unistd.h> 6037a0395d0Smrg#endif" 6047a0395d0Smrg 6057366012aSmrgac_subst_vars='am__EXEEXT_FALSE 6067366012aSmrgam__EXEEXT_TRUE 6077366012aSmrgLTLIBOBJS 6087366012aSmrgLIBOBJS 6097a0395d0SmrgLINT_FALSE 6107366012aSmrgLINT_TRUE 6117366012aSmrgLINT_FLAGS 6127366012aSmrgLINT 6137366012aSmrgXAUTH_LIBS 6147366012aSmrgXAUTH_CFLAGS 6152adc0320SmrgAM_BACKSLASH 6162adc0320SmrgAM_DEFAULT_VERBOSITY 6172adc0320SmrgMAN_SUBSTS 6182adc0320SmrgXORG_MAN_PAGE 6197a0395d0SmrgADMIN_MAN_DIR 6207366012aSmrgDRIVER_MAN_DIR 6217366012aSmrgMISC_MAN_DIR 6227366012aSmrgFILE_MAN_DIR 6237366012aSmrgLIB_MAN_DIR 6247366012aSmrgAPP_MAN_DIR 6257366012aSmrgADMIN_MAN_SUFFIX 6267366012aSmrgDRIVER_MAN_SUFFIX 6277366012aSmrgMISC_MAN_SUFFIX 6287366012aSmrgFILE_MAN_SUFFIX 6297366012aSmrgLIB_MAN_SUFFIX 6307366012aSmrgAPP_MAN_SUFFIX 6312adc0320SmrgSED 6327366012aSmrghost_os 6337366012aSmrghost_vendor 6347366012aSmrghost_cpu 6357366012aSmrghost 6367366012aSmrgbuild_os 6377366012aSmrgbuild_vendor 6387366012aSmrgbuild_cpu 6397366012aSmrgbuild 6402adc0320SmrgINSTALL_CMD 6412852888eSmrgPKG_CONFIG_LIBDIR 6422852888eSmrgPKG_CONFIG_PATH 6432adc0320SmrgPKG_CONFIG 6447366012aSmrgCHANGELOG_CMD 6457366012aSmrgCWARNFLAGS 6467366012aSmrgEGREP 6477366012aSmrgGREP 6487366012aSmrgCPP 6497366012aSmrgam__fastdepCC_FALSE 6507366012aSmrgam__fastdepCC_TRUE 6517366012aSmrgCCDEPMODE 6527366012aSmrgAMDEPBACKSLASH 6537366012aSmrgAMDEP_FALSE 6547366012aSmrgAMDEP_TRUE 6557366012aSmrgam__quote 6567366012aSmrgam__include 6577366012aSmrgDEPDIR 6587366012aSmrgOBJEXT 6597366012aSmrgEXEEXT 6607366012aSmrgac_ct_CC 6617366012aSmrgCPPFLAGS 6627366012aSmrgLDFLAGS 6637366012aSmrgCFLAGS 6647366012aSmrgCC 6657366012aSmrgMAINT 6667366012aSmrgMAINTAINER_MODE_FALSE 6677366012aSmrgMAINTAINER_MODE_TRUE 6687366012aSmrgam__untar 6697366012aSmrgam__tar 6707366012aSmrgAMTAR 6717366012aSmrgam__leading_dot 6727366012aSmrgSET_MAKE 6737366012aSmrgAWK 6747366012aSmrgmkdir_p 6757366012aSmrgMKDIR_P 6767366012aSmrgINSTALL_STRIP_PROGRAM 6777366012aSmrgSTRIP 6787366012aSmrginstall_sh 6797366012aSmrgMAKEINFO 6807366012aSmrgAUTOHEADER 6817366012aSmrgAUTOMAKE 6827366012aSmrgAUTOCONF 6837366012aSmrgACLOCAL 6847366012aSmrgVERSION 6857366012aSmrgPACKAGE 6867366012aSmrgCYGPATH_W 6877366012aSmrgam__isrc 6887366012aSmrgINSTALL_DATA 6897366012aSmrgINSTALL_SCRIPT 6907366012aSmrgINSTALL_PROGRAM 6917366012aSmrgtarget_alias 6927366012aSmrghost_alias 6937366012aSmrgbuild_alias 6947366012aSmrgLIBS 6957366012aSmrgECHO_T 6967366012aSmrgECHO_N 6977366012aSmrgECHO_C 6987366012aSmrgDEFS 6997366012aSmrgmandir 7007366012aSmrglocaledir 7017366012aSmrglibdir 7027366012aSmrgpsdir 7037366012aSmrgpdfdir 7047366012aSmrgdvidir 7057366012aSmrghtmldir 7067366012aSmrginfodir 7077366012aSmrgdocdir 7087366012aSmrgoldincludedir 7097366012aSmrgincludedir 7107366012aSmrglocalstatedir 7117366012aSmrgsharedstatedir 7127366012aSmrgsysconfdir 7137366012aSmrgdatadir 7147366012aSmrgdatarootdir 7157366012aSmrglibexecdir 7167366012aSmrgsbindir 7177366012aSmrgbindir 7187366012aSmrgprogram_transform_name 7197366012aSmrgprefix 7207366012aSmrgexec_prefix 7212adc0320SmrgPACKAGE_URL 7227366012aSmrgPACKAGE_BUGREPORT 7237366012aSmrgPACKAGE_STRING 7247366012aSmrgPACKAGE_VERSION 7257366012aSmrgPACKAGE_TARNAME 7267366012aSmrgPACKAGE_NAME 7277366012aSmrgPATH_SEPARATOR 7287366012aSmrgSHELL' 7297a0395d0Smrgac_subst_files='' 7307366012aSmrgac_user_opts=' 7317366012aSmrgenable_option_checking 7327366012aSmrgenable_maintainer_mode 7337366012aSmrgenable_dependency_tracking 7347366012aSmrgenable_strict_compilation 7352adc0320Smrgenable_silent_rules 7367366012aSmrgenable_unix_transport 7377366012aSmrgenable_tcp_transport 7387366012aSmrgenable_ipv6 7397366012aSmrgenable_local_transport 7407366012aSmrgwith_lint 7417366012aSmrg' 7427a0395d0Smrg ac_precious_vars='build_alias 7437a0395d0Smrghost_alias 7447a0395d0Smrgtarget_alias 7457a0395d0SmrgCC 7467a0395d0SmrgCFLAGS 7477a0395d0SmrgLDFLAGS 7487a0395d0SmrgLIBS 7497a0395d0SmrgCPPFLAGS 7507a0395d0SmrgCPP 7517a0395d0SmrgPKG_CONFIG 7522852888eSmrgPKG_CONFIG_PATH 7532852888eSmrgPKG_CONFIG_LIBDIR 7547a0395d0SmrgXAUTH_CFLAGS 7552adc0320SmrgXAUTH_LIBS 7562adc0320SmrgLINT 7572adc0320SmrgLINT_FLAGS' 7587a0395d0Smrg 7597a0395d0Smrg 7607a0395d0Smrg# Initialize some variables set by options. 7617a0395d0Smrgac_init_help= 7627a0395d0Smrgac_init_version=false 7637366012aSmrgac_unrecognized_opts= 7647366012aSmrgac_unrecognized_sep= 7657a0395d0Smrg# The variables have the same names as the options, with 7667a0395d0Smrg# dashes changed to underlines. 7677a0395d0Smrgcache_file=/dev/null 7687a0395d0Smrgexec_prefix=NONE 7697a0395d0Smrgno_create= 7707a0395d0Smrgno_recursion= 7717a0395d0Smrgprefix=NONE 7727a0395d0Smrgprogram_prefix=NONE 7737a0395d0Smrgprogram_suffix=NONE 7747a0395d0Smrgprogram_transform_name=s,x,x, 7757a0395d0Smrgsilent= 7767a0395d0Smrgsite= 7777a0395d0Smrgsrcdir= 7787a0395d0Smrgverbose= 7797a0395d0Smrgx_includes=NONE 7807a0395d0Smrgx_libraries=NONE 7817a0395d0Smrg 7827a0395d0Smrg# Installation directory options. 7837a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7847a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix 7857a0395d0Smrg# by default will actually change. 7867a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 7877a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.) 7887a0395d0Smrgbindir='${exec_prefix}/bin' 7897a0395d0Smrgsbindir='${exec_prefix}/sbin' 7907a0395d0Smrglibexecdir='${exec_prefix}/libexec' 7917a0395d0Smrgdatarootdir='${prefix}/share' 7927a0395d0Smrgdatadir='${datarootdir}' 7937a0395d0Smrgsysconfdir='${prefix}/etc' 7947a0395d0Smrgsharedstatedir='${prefix}/com' 7957a0395d0Smrglocalstatedir='${prefix}/var' 7967a0395d0Smrgincludedir='${prefix}/include' 7977a0395d0Smrgoldincludedir='/usr/include' 7987a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7997a0395d0Smrginfodir='${datarootdir}/info' 8007a0395d0Smrghtmldir='${docdir}' 8017a0395d0Smrgdvidir='${docdir}' 8027a0395d0Smrgpdfdir='${docdir}' 8037a0395d0Smrgpsdir='${docdir}' 8047a0395d0Smrglibdir='${exec_prefix}/lib' 8057a0395d0Smrglocaledir='${datarootdir}/locale' 8067a0395d0Smrgmandir='${datarootdir}/man' 8077a0395d0Smrg 8087a0395d0Smrgac_prev= 8097a0395d0Smrgac_dashdash= 8107a0395d0Smrgfor ac_option 8117a0395d0Smrgdo 8127a0395d0Smrg # If the previous option needs an argument, assign it. 8137a0395d0Smrg if test -n "$ac_prev"; then 8147a0395d0Smrg eval $ac_prev=\$ac_option 8157a0395d0Smrg ac_prev= 8167a0395d0Smrg continue 8177a0395d0Smrg fi 8187a0395d0Smrg 8197a0395d0Smrg case $ac_option in 8202adc0320Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8212adc0320Smrg *=) ac_optarg= ;; 8222adc0320Smrg *) ac_optarg=yes ;; 8237a0395d0Smrg esac 8247a0395d0Smrg 8257a0395d0Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8267a0395d0Smrg 8277a0395d0Smrg case $ac_dashdash$ac_option in 8287a0395d0Smrg --) 8297a0395d0Smrg ac_dashdash=yes ;; 8307a0395d0Smrg 8317a0395d0Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8327a0395d0Smrg ac_prev=bindir ;; 8337a0395d0Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8347a0395d0Smrg bindir=$ac_optarg ;; 8357a0395d0Smrg 8367a0395d0Smrg -build | --build | --buil | --bui | --bu) 8377a0395d0Smrg ac_prev=build_alias ;; 8387a0395d0Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8397a0395d0Smrg build_alias=$ac_optarg ;; 8407a0395d0Smrg 8417a0395d0Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8427a0395d0Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8437a0395d0Smrg ac_prev=cache_file ;; 8447a0395d0Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8457a0395d0Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8467a0395d0Smrg cache_file=$ac_optarg ;; 8477a0395d0Smrg 8487a0395d0Smrg --config-cache | -C) 8497a0395d0Smrg cache_file=config.cache ;; 8507a0395d0Smrg 8517a0395d0Smrg -datadir | --datadir | --datadi | --datad) 8527a0395d0Smrg ac_prev=datadir ;; 8537a0395d0Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8547a0395d0Smrg datadir=$ac_optarg ;; 8557a0395d0Smrg 8567a0395d0Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8577a0395d0Smrg | --dataroo | --dataro | --datar) 8587a0395d0Smrg ac_prev=datarootdir ;; 8597a0395d0Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8607a0395d0Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8617a0395d0Smrg datarootdir=$ac_optarg ;; 8627a0395d0Smrg 8637a0395d0Smrg -disable-* | --disable-*) 8647366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8657a0395d0Smrg # Reject names that are not valid shell variable names. 8667366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8672adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 8687366012aSmrg ac_useropt_orig=$ac_useropt 8697366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8707366012aSmrg case $ac_user_opts in 8717366012aSmrg *" 8727366012aSmrg"enable_$ac_useropt" 8737366012aSmrg"*) ;; 8747366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8757366012aSmrg ac_unrecognized_sep=', ';; 8767366012aSmrg esac 8777366012aSmrg eval enable_$ac_useropt=no ;; 8787a0395d0Smrg 8797a0395d0Smrg -docdir | --docdir | --docdi | --doc | --do) 8807a0395d0Smrg ac_prev=docdir ;; 8817a0395d0Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8827a0395d0Smrg docdir=$ac_optarg ;; 8837a0395d0Smrg 8847a0395d0Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8857a0395d0Smrg ac_prev=dvidir ;; 8867a0395d0Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8877a0395d0Smrg dvidir=$ac_optarg ;; 8887a0395d0Smrg 8897a0395d0Smrg -enable-* | --enable-*) 8907366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8917a0395d0Smrg # Reject names that are not valid shell variable names. 8927366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8932adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 8947366012aSmrg ac_useropt_orig=$ac_useropt 8957366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8967366012aSmrg case $ac_user_opts in 8977366012aSmrg *" 8987366012aSmrg"enable_$ac_useropt" 8997366012aSmrg"*) ;; 9007366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9017366012aSmrg ac_unrecognized_sep=', ';; 9027366012aSmrg esac 9037366012aSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9047a0395d0Smrg 9057a0395d0Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9067a0395d0Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9077a0395d0Smrg | --exec | --exe | --ex) 9087a0395d0Smrg ac_prev=exec_prefix ;; 9097a0395d0Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9107a0395d0Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9117a0395d0Smrg | --exec=* | --exe=* | --ex=*) 9127a0395d0Smrg exec_prefix=$ac_optarg ;; 9137a0395d0Smrg 9147a0395d0Smrg -gas | --gas | --ga | --g) 9157a0395d0Smrg # Obsolete; use --with-gas. 9167a0395d0Smrg with_gas=yes ;; 9177a0395d0Smrg 9187a0395d0Smrg -help | --help | --hel | --he | -h) 9197a0395d0Smrg ac_init_help=long ;; 9207a0395d0Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9217a0395d0Smrg ac_init_help=recursive ;; 9227a0395d0Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9237a0395d0Smrg ac_init_help=short ;; 9247a0395d0Smrg 9257a0395d0Smrg -host | --host | --hos | --ho) 9267a0395d0Smrg ac_prev=host_alias ;; 9277a0395d0Smrg -host=* | --host=* | --hos=* | --ho=*) 9287a0395d0Smrg host_alias=$ac_optarg ;; 9297a0395d0Smrg 9307a0395d0Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9317a0395d0Smrg ac_prev=htmldir ;; 9327a0395d0Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9337a0395d0Smrg | --ht=*) 9347a0395d0Smrg htmldir=$ac_optarg ;; 9357a0395d0Smrg 9367a0395d0Smrg -includedir | --includedir | --includedi | --included | --include \ 9377a0395d0Smrg | --includ | --inclu | --incl | --inc) 9387a0395d0Smrg ac_prev=includedir ;; 9397a0395d0Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9407a0395d0Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9417a0395d0Smrg includedir=$ac_optarg ;; 9427a0395d0Smrg 9437a0395d0Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9447a0395d0Smrg ac_prev=infodir ;; 9457a0395d0Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9467a0395d0Smrg infodir=$ac_optarg ;; 9477a0395d0Smrg 9487a0395d0Smrg -libdir | --libdir | --libdi | --libd) 9497a0395d0Smrg ac_prev=libdir ;; 9507a0395d0Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9517a0395d0Smrg libdir=$ac_optarg ;; 9527a0395d0Smrg 9537a0395d0Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9547a0395d0Smrg | --libexe | --libex | --libe) 9557a0395d0Smrg ac_prev=libexecdir ;; 9567a0395d0Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9577a0395d0Smrg | --libexe=* | --libex=* | --libe=*) 9587a0395d0Smrg libexecdir=$ac_optarg ;; 9597a0395d0Smrg 9607a0395d0Smrg -localedir | --localedir | --localedi | --localed | --locale) 9617a0395d0Smrg ac_prev=localedir ;; 9627a0395d0Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9637a0395d0Smrg localedir=$ac_optarg ;; 9647a0395d0Smrg 9657a0395d0Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9667a0395d0Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9677a0395d0Smrg ac_prev=localstatedir ;; 9687a0395d0Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9697a0395d0Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9707a0395d0Smrg localstatedir=$ac_optarg ;; 9717a0395d0Smrg 9727a0395d0Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9737a0395d0Smrg ac_prev=mandir ;; 9747a0395d0Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9757a0395d0Smrg mandir=$ac_optarg ;; 9767a0395d0Smrg 9777a0395d0Smrg -nfp | --nfp | --nf) 9787a0395d0Smrg # Obsolete; use --without-fp. 9797a0395d0Smrg with_fp=no ;; 9807a0395d0Smrg 9817a0395d0Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9827a0395d0Smrg | --no-cr | --no-c | -n) 9837a0395d0Smrg no_create=yes ;; 9847a0395d0Smrg 9857a0395d0Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9867a0395d0Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9877a0395d0Smrg no_recursion=yes ;; 9887a0395d0Smrg 9897a0395d0Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9907a0395d0Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9917a0395d0Smrg | --oldin | --oldi | --old | --ol | --o) 9927a0395d0Smrg ac_prev=oldincludedir ;; 9937a0395d0Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9947a0395d0Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9957a0395d0Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9967a0395d0Smrg oldincludedir=$ac_optarg ;; 9977a0395d0Smrg 9987a0395d0Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9997a0395d0Smrg ac_prev=prefix ;; 10007a0395d0Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10017a0395d0Smrg prefix=$ac_optarg ;; 10027a0395d0Smrg 10037a0395d0Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10047a0395d0Smrg | --program-pre | --program-pr | --program-p) 10057a0395d0Smrg ac_prev=program_prefix ;; 10067a0395d0Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10077a0395d0Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10087a0395d0Smrg program_prefix=$ac_optarg ;; 10097a0395d0Smrg 10107a0395d0Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10117a0395d0Smrg | --program-suf | --program-su | --program-s) 10127a0395d0Smrg ac_prev=program_suffix ;; 10137a0395d0Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10147a0395d0Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10157a0395d0Smrg program_suffix=$ac_optarg ;; 10167a0395d0Smrg 10177a0395d0Smrg -program-transform-name | --program-transform-name \ 10187a0395d0Smrg | --program-transform-nam | --program-transform-na \ 10197a0395d0Smrg | --program-transform-n | --program-transform- \ 10207a0395d0Smrg | --program-transform | --program-transfor \ 10217a0395d0Smrg | --program-transfo | --program-transf \ 10227a0395d0Smrg | --program-trans | --program-tran \ 10237a0395d0Smrg | --progr-tra | --program-tr | --program-t) 10247a0395d0Smrg ac_prev=program_transform_name ;; 10257a0395d0Smrg -program-transform-name=* | --program-transform-name=* \ 10267a0395d0Smrg | --program-transform-nam=* | --program-transform-na=* \ 10277a0395d0Smrg | --program-transform-n=* | --program-transform-=* \ 10287a0395d0Smrg | --program-transform=* | --program-transfor=* \ 10297a0395d0Smrg | --program-transfo=* | --program-transf=* \ 10307a0395d0Smrg | --program-trans=* | --program-tran=* \ 10317a0395d0Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10327a0395d0Smrg program_transform_name=$ac_optarg ;; 10337a0395d0Smrg 10347a0395d0Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10357a0395d0Smrg ac_prev=pdfdir ;; 10367a0395d0Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10377a0395d0Smrg pdfdir=$ac_optarg ;; 10387a0395d0Smrg 10397a0395d0Smrg -psdir | --psdir | --psdi | --psd | --ps) 10407a0395d0Smrg ac_prev=psdir ;; 10417a0395d0Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10427a0395d0Smrg psdir=$ac_optarg ;; 10437a0395d0Smrg 10447a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10457a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 10467a0395d0Smrg silent=yes ;; 10477a0395d0Smrg 10487a0395d0Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10497a0395d0Smrg ac_prev=sbindir ;; 10507a0395d0Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10517a0395d0Smrg | --sbi=* | --sb=*) 10527a0395d0Smrg sbindir=$ac_optarg ;; 10537a0395d0Smrg 10547a0395d0Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10557a0395d0Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10567a0395d0Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10577a0395d0Smrg | --sha | --sh) 10587a0395d0Smrg ac_prev=sharedstatedir ;; 10597a0395d0Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10607a0395d0Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10617a0395d0Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10627a0395d0Smrg | --sha=* | --sh=*) 10637a0395d0Smrg sharedstatedir=$ac_optarg ;; 10647a0395d0Smrg 10657a0395d0Smrg -site | --site | --sit) 10667a0395d0Smrg ac_prev=site ;; 10677a0395d0Smrg -site=* | --site=* | --sit=*) 10687a0395d0Smrg site=$ac_optarg ;; 10697a0395d0Smrg 10707a0395d0Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10717a0395d0Smrg ac_prev=srcdir ;; 10727a0395d0Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10737a0395d0Smrg srcdir=$ac_optarg ;; 10747a0395d0Smrg 10757a0395d0Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10767a0395d0Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10777a0395d0Smrg ac_prev=sysconfdir ;; 10787a0395d0Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10797a0395d0Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10807a0395d0Smrg sysconfdir=$ac_optarg ;; 10817a0395d0Smrg 10827a0395d0Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10837a0395d0Smrg ac_prev=target_alias ;; 10847a0395d0Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10857a0395d0Smrg target_alias=$ac_optarg ;; 10867a0395d0Smrg 10877a0395d0Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10887a0395d0Smrg verbose=yes ;; 10897a0395d0Smrg 10907a0395d0Smrg -version | --version | --versio | --versi | --vers | -V) 10917a0395d0Smrg ac_init_version=: ;; 10927a0395d0Smrg 10937a0395d0Smrg -with-* | --with-*) 10947366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10957a0395d0Smrg # Reject names that are not valid shell variable names. 10967366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10972adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 10987366012aSmrg ac_useropt_orig=$ac_useropt 10997366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11007366012aSmrg case $ac_user_opts in 11017366012aSmrg *" 11027366012aSmrg"with_$ac_useropt" 11037366012aSmrg"*) ;; 11047366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11057366012aSmrg ac_unrecognized_sep=', ';; 11067366012aSmrg esac 11077366012aSmrg eval with_$ac_useropt=\$ac_optarg ;; 11087a0395d0Smrg 11097a0395d0Smrg -without-* | --without-*) 11107366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11117a0395d0Smrg # Reject names that are not valid shell variable names. 11127366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11132adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 11147366012aSmrg ac_useropt_orig=$ac_useropt 11157366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11167366012aSmrg case $ac_user_opts in 11177366012aSmrg *" 11187366012aSmrg"with_$ac_useropt" 11197366012aSmrg"*) ;; 11207366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11217366012aSmrg ac_unrecognized_sep=', ';; 11227366012aSmrg esac 11237366012aSmrg eval with_$ac_useropt=no ;; 11247a0395d0Smrg 11257a0395d0Smrg --x) 11267a0395d0Smrg # Obsolete; use --with-x. 11277a0395d0Smrg with_x=yes ;; 11287a0395d0Smrg 11297a0395d0Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11307a0395d0Smrg | --x-incl | --x-inc | --x-in | --x-i) 11317a0395d0Smrg ac_prev=x_includes ;; 11327a0395d0Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11337a0395d0Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11347a0395d0Smrg x_includes=$ac_optarg ;; 11357a0395d0Smrg 11367a0395d0Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11377a0395d0Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11387a0395d0Smrg ac_prev=x_libraries ;; 11397a0395d0Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11407a0395d0Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11417a0395d0Smrg x_libraries=$ac_optarg ;; 11427a0395d0Smrg 11432adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11442adc0320SmrgTry \`$0 --help' for more information" 11457a0395d0Smrg ;; 11467a0395d0Smrg 11477a0395d0Smrg *=*) 11487a0395d0Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11497a0395d0Smrg # Reject names that are not valid shell variable names. 11502adc0320Smrg case $ac_envvar in #( 11512adc0320Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11522adc0320Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11532adc0320Smrg esac 11547a0395d0Smrg eval $ac_envvar=\$ac_optarg 11557a0395d0Smrg export $ac_envvar ;; 11567a0395d0Smrg 11577a0395d0Smrg *) 11587a0395d0Smrg # FIXME: should be removed in autoconf 3.0. 11597366012aSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11607a0395d0Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11617366012aSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11622adc0320Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11637a0395d0Smrg ;; 11647a0395d0Smrg 11657a0395d0Smrg esac 11667a0395d0Smrgdone 11677a0395d0Smrg 11687a0395d0Smrgif test -n "$ac_prev"; then 11697a0395d0Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11702adc0320Smrg as_fn_error $? "missing argument to $ac_option" 11717a0395d0Smrgfi 11727a0395d0Smrg 11737366012aSmrgif test -n "$ac_unrecognized_opts"; then 11747366012aSmrg case $enable_option_checking in 11757366012aSmrg no) ;; 11762adc0320Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11777366012aSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11787366012aSmrg esac 11797366012aSmrgfi 11807366012aSmrg 11817366012aSmrg# Check all directory arguments for consistency. 11827a0395d0Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11837a0395d0Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11847a0395d0Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11857a0395d0Smrg libdir localedir mandir 11867a0395d0Smrgdo 11877a0395d0Smrg eval ac_val=\$$ac_var 11887366012aSmrg # Remove trailing slashes. 11897366012aSmrg case $ac_val in 11907366012aSmrg */ ) 11917366012aSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 11927366012aSmrg eval $ac_var=\$ac_val;; 11937366012aSmrg esac 11947366012aSmrg # Be sure to have absolute directory names. 11957a0395d0Smrg case $ac_val in 11967a0395d0Smrg [\\/$]* | ?:[\\/]* ) continue;; 11977a0395d0Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11987a0395d0Smrg esac 11992adc0320Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12007a0395d0Smrgdone 12017a0395d0Smrg 12027a0395d0Smrg# There might be people who depend on the old broken behavior: `$host' 12037a0395d0Smrg# used to hold the argument of --host etc. 12047a0395d0Smrg# FIXME: To remove some day. 12057a0395d0Smrgbuild=$build_alias 12067a0395d0Smrghost=$host_alias 12077a0395d0Smrgtarget=$target_alias 12087a0395d0Smrg 12097a0395d0Smrg# FIXME: To remove some day. 12107a0395d0Smrgif test "x$host_alias" != x; then 12117a0395d0Smrg if test "x$build_alias" = x; then 12127a0395d0Smrg cross_compiling=maybe 12132adc0320Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12142adc0320Smrg If a cross compiler is detected then cross compile mode will be used" >&2 12157a0395d0Smrg elif test "x$build_alias" != "x$host_alias"; then 12167a0395d0Smrg cross_compiling=yes 12177a0395d0Smrg fi 12187a0395d0Smrgfi 12197a0395d0Smrg 12207a0395d0Smrgac_tool_prefix= 12217a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12227a0395d0Smrg 12237a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null 12247a0395d0Smrg 12257a0395d0Smrg 12267a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12277a0395d0Smrgac_ls_di=`ls -di .` && 12287a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12292adc0320Smrg as_fn_error $? "working directory cannot be determined" 12307a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12312adc0320Smrg as_fn_error $? "pwd does not report name of working directory" 12327a0395d0Smrg 12337a0395d0Smrg 12347a0395d0Smrg# Find the source files, if location was not specified. 12357a0395d0Smrgif test -z "$srcdir"; then 12367a0395d0Smrg ac_srcdir_defaulted=yes 12377a0395d0Smrg # Try the directory containing this script, then the parent directory. 12387366012aSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12397366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12407366012aSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12417366012aSmrg X"$as_myself" : 'X\(//\)$' \| \ 12427366012aSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12437366012aSmrg$as_echo X"$as_myself" | 12447a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12457a0395d0Smrg s//\1/ 12467a0395d0Smrg q 12477a0395d0Smrg } 12487a0395d0Smrg /^X\(\/\/\)[^/].*/{ 12497a0395d0Smrg s//\1/ 12507a0395d0Smrg q 12517a0395d0Smrg } 12527a0395d0Smrg /^X\(\/\/\)$/{ 12537a0395d0Smrg s//\1/ 12547a0395d0Smrg q 12557a0395d0Smrg } 12567a0395d0Smrg /^X\(\/\).*/{ 12577a0395d0Smrg s//\1/ 12587a0395d0Smrg q 12597a0395d0Smrg } 12607a0395d0Smrg s/.*/./; q'` 12617a0395d0Smrg srcdir=$ac_confdir 12627a0395d0Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12637a0395d0Smrg srcdir=.. 12647a0395d0Smrg fi 12657a0395d0Smrgelse 12667a0395d0Smrg ac_srcdir_defaulted=no 12677a0395d0Smrgfi 12687a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then 12697a0395d0Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12702adc0320Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12717a0395d0Smrgfi 12727a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12737a0395d0Smrgac_abs_confdir=`( 12742adc0320Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12757a0395d0Smrg pwd)` 12767a0395d0Smrg# When building in place, set srcdir=. 12777a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12787a0395d0Smrg srcdir=. 12797a0395d0Smrgfi 12807a0395d0Smrg# Remove unnecessary trailing slashes from srcdir. 12817a0395d0Smrg# Double slashes in file names in object file debugging info 12827a0395d0Smrg# mess up M-x gdb in Emacs. 12837a0395d0Smrgcase $srcdir in 12847a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12857a0395d0Smrgesac 12867a0395d0Smrgfor ac_var in $ac_precious_vars; do 12877a0395d0Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12887a0395d0Smrg eval ac_env_${ac_var}_value=\$${ac_var} 12897a0395d0Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12907a0395d0Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12917a0395d0Smrgdone 12927a0395d0Smrg 12937a0395d0Smrg# 12947a0395d0Smrg# Report the --help message. 12957a0395d0Smrg# 12967a0395d0Smrgif test "$ac_init_help" = "long"; then 12977a0395d0Smrg # Omit some internal or obsolete options to make the list less imposing. 12987a0395d0Smrg # This message is too long to be a string in the A/UX 3.1 sh. 12997a0395d0Smrg cat <<_ACEOF 13002852888eSmrg\`configure' configures xauth 1.0.6 to adapt to many kinds of systems. 13017a0395d0Smrg 13027a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13037a0395d0Smrg 13047a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13057a0395d0SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13067a0395d0Smrg 13077a0395d0SmrgDefaults for the options are specified in brackets. 13087a0395d0Smrg 13097a0395d0SmrgConfiguration: 13107a0395d0Smrg -h, --help display this help and exit 13117a0395d0Smrg --help=short display options specific to this package 13127a0395d0Smrg --help=recursive display the short help of all the included packages 13137a0395d0Smrg -V, --version display version information and exit 13142adc0320Smrg -q, --quiet, --silent do not print \`checking ...' messages 13157a0395d0Smrg --cache-file=FILE cache test results in FILE [disabled] 13167a0395d0Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13177a0395d0Smrg -n, --no-create do not create output files 13187a0395d0Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13197a0395d0Smrg 13207a0395d0SmrgInstallation directories: 13217a0395d0Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13227366012aSmrg [$ac_default_prefix] 13237a0395d0Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13247366012aSmrg [PREFIX] 13257a0395d0Smrg 13267a0395d0SmrgBy default, \`make install' will install all the files in 13277a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13287a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13297a0395d0Smrgfor instance \`--prefix=\$HOME'. 13307a0395d0Smrg 13317a0395d0SmrgFor better control, use the options below. 13327a0395d0Smrg 13337a0395d0SmrgFine tuning of the installation directories: 13347366012aSmrg --bindir=DIR user executables [EPREFIX/bin] 13357366012aSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13367366012aSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13377366012aSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13387366012aSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13397366012aSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13407366012aSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13417366012aSmrg --includedir=DIR C header files [PREFIX/include] 13427366012aSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13437366012aSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13447366012aSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13457366012aSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13467366012aSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13477366012aSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13487366012aSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 13497366012aSmrg --htmldir=DIR html documentation [DOCDIR] 13507366012aSmrg --dvidir=DIR dvi documentation [DOCDIR] 13517366012aSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13527366012aSmrg --psdir=DIR ps documentation [DOCDIR] 13537a0395d0Smrg_ACEOF 13547a0395d0Smrg 13557a0395d0Smrg cat <<\_ACEOF 13567a0395d0Smrg 13577a0395d0SmrgProgram names: 13587a0395d0Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13597a0395d0Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13607a0395d0Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13617a0395d0Smrg 13627a0395d0SmrgSystem types: 13637a0395d0Smrg --build=BUILD configure for building on BUILD [guessed] 13647a0395d0Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13657a0395d0Smrg_ACEOF 13667a0395d0Smrgfi 13677a0395d0Smrg 13687a0395d0Smrgif test -n "$ac_init_help"; then 13697a0395d0Smrg case $ac_init_help in 13702852888eSmrg short | recursive ) echo "Configuration of xauth 1.0.6:";; 13717a0395d0Smrg esac 13727a0395d0Smrg cat <<\_ACEOF 13737a0395d0Smrg 13747a0395d0SmrgOptional Features: 13757366012aSmrg --disable-option-checking ignore unrecognized --enable/--with options 13767a0395d0Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13777a0395d0Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13787a0395d0Smrg --enable-maintainer-mode enable make rules and dependencies not useful 13797a0395d0Smrg (and sometimes confusing) to the casual installer 13807a0395d0Smrg --disable-dependency-tracking speeds up one-time build 13817a0395d0Smrg --enable-dependency-tracking do not reject slow dependency extractors 13827366012aSmrg --enable-strict-compilation 13837366012aSmrg Enable all warnings from compiler and make them 13847366012aSmrg errors (default: disabled) 13852adc0320Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 13862adc0320Smrg --disable-silent-rules verbose build output (undo: `make V=0') 13877a0395d0Smrg --enable-unix-transport Enable UNIX domain socket transport 13887a0395d0Smrg --enable-tcp-transport Enable TCP socket transport 13897366012aSmrg --enable-ipv6 Enable IPv6 support 13907a0395d0Smrg --enable-local-transport 13917a0395d0Smrg Enable os-specific local transport 13927a0395d0Smrg 13937a0395d0SmrgOptional Packages: 13947a0395d0Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 13957a0395d0Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 13967366012aSmrg --with-lint Use a lint-style source code checker (default: 13977366012aSmrg disabled) 13987a0395d0Smrg 13997a0395d0SmrgSome influential environment variables: 14007a0395d0Smrg CC C compiler command 14017a0395d0Smrg CFLAGS C compiler flags 14027a0395d0Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14037a0395d0Smrg nonstandard directory <lib dir> 14047a0395d0Smrg LIBS libraries to pass to the linker, e.g. -l<library> 14052adc0320Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14067a0395d0Smrg you have headers in a nonstandard directory <include dir> 14077a0395d0Smrg CPP C preprocessor 14087a0395d0Smrg PKG_CONFIG path to pkg-config utility 14092852888eSmrg PKG_CONFIG_PATH 14102852888eSmrg directories to add to pkg-config's search path 14112852888eSmrg PKG_CONFIG_LIBDIR 14122852888eSmrg path overriding pkg-config's built-in search path 14137a0395d0Smrg XAUTH_CFLAGS 14147a0395d0Smrg C compiler flags for XAUTH, overriding pkg-config 14157a0395d0Smrg XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 14162adc0320Smrg LINT Path to a lint-style command 14172adc0320Smrg LINT_FLAGS Flags for the lint-style command 14187a0395d0Smrg 14197a0395d0SmrgUse these variables to override the choices made by `configure' or to help 14207a0395d0Smrgit to find libraries and programs with nonstandard names/locations. 14217a0395d0Smrg 14227a0395d0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14237a0395d0Smrg_ACEOF 14247a0395d0Smrgac_status=$? 14257a0395d0Smrgfi 14267a0395d0Smrg 14277a0395d0Smrgif test "$ac_init_help" = "recursive"; then 14287a0395d0Smrg # If there are subdirs, report their specific --help. 14297a0395d0Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14307366012aSmrg test -d "$ac_dir" || 14317366012aSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14327366012aSmrg continue 14337a0395d0Smrg ac_builddir=. 14347a0395d0Smrg 14357a0395d0Smrgcase "$ac_dir" in 14367a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14377a0395d0Smrg*) 14387366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14397a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 14407366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14417a0395d0Smrg case $ac_top_builddir_sub in 14427a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14437a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14447a0395d0Smrg esac ;; 14457a0395d0Smrgesac 14467a0395d0Smrgac_abs_top_builddir=$ac_pwd 14477a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14487a0395d0Smrg# for backward compatibility: 14497a0395d0Smrgac_top_builddir=$ac_top_build_prefix 14507a0395d0Smrg 14517a0395d0Smrgcase $srcdir in 14527a0395d0Smrg .) # We are building in place. 14537a0395d0Smrg ac_srcdir=. 14547a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 14557a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 14567a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14577a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14587a0395d0Smrg ac_top_srcdir=$srcdir 14597a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 14607a0395d0Smrg *) # Relative name. 14617a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14627a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14637a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14647a0395d0Smrgesac 14657a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14667a0395d0Smrg 14677a0395d0Smrg cd "$ac_dir" || { ac_status=$?; continue; } 14687a0395d0Smrg # Check for guested configure. 14697a0395d0Smrg if test -f "$ac_srcdir/configure.gnu"; then 14707a0395d0Smrg echo && 14717a0395d0Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14727a0395d0Smrg elif test -f "$ac_srcdir/configure"; then 14737a0395d0Smrg echo && 14747a0395d0Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14757a0395d0Smrg else 14767366012aSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14777a0395d0Smrg fi || ac_status=$? 14787a0395d0Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14797a0395d0Smrg done 14807a0395d0Smrgfi 14817a0395d0Smrg 14827a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status 14837a0395d0Smrgif $ac_init_version; then 14847a0395d0Smrg cat <<\_ACEOF 14852852888eSmrgxauth configure 1.0.6 14862adc0320Smrggenerated by GNU Autoconf 2.68 14877a0395d0Smrg 14882adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc. 14897a0395d0SmrgThis configure script is free software; the Free Software Foundation 14907a0395d0Smrggives unlimited permission to copy, distribute and modify it. 14917a0395d0Smrg_ACEOF 14927a0395d0Smrg exit 14937a0395d0Smrgfi 14947a0395d0Smrg 14952adc0320Smrg## ------------------------ ## 14962adc0320Smrg## Autoconf initialization. ## 14972adc0320Smrg## ------------------------ ## 14987a0395d0Smrg 14992adc0320Smrg# ac_fn_c_try_compile LINENO 15002adc0320Smrg# -------------------------- 15012adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15022adc0320Smrgac_fn_c_try_compile () 15037a0395d0Smrg{ 15042adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15052adc0320Smrg rm -f conftest.$ac_objext 15062adc0320Smrg if { { ac_try="$ac_compile" 15072adc0320Smrgcase "(($ac_try" in 15082adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15092adc0320Smrg *) ac_try_echo=$ac_try;; 15102adc0320Smrgesac 15112adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15122adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15132adc0320Smrg (eval "$ac_compile") 2>conftest.err 15142adc0320Smrg ac_status=$? 15152adc0320Smrg if test -s conftest.err; then 15162adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 15172adc0320Smrg cat conftest.er1 >&5 15182adc0320Smrg mv -f conftest.er1 conftest.err 15192adc0320Smrg fi 15202adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15212adc0320Smrg test $ac_status = 0; } && { 15222adc0320Smrg test -z "$ac_c_werror_flag" || 15232adc0320Smrg test ! -s conftest.err 15242adc0320Smrg } && test -s conftest.$ac_objext; then : 15252adc0320Smrg ac_retval=0 15262adc0320Smrgelse 15272adc0320Smrg $as_echo "$as_me: failed program was:" >&5 15282adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 15297a0395d0Smrg 15302adc0320Smrg ac_retval=1 15312adc0320Smrgfi 15322adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15332adc0320Smrg as_fn_set_status $ac_retval 15347a0395d0Smrg 15352adc0320Smrg} # ac_fn_c_try_compile 15362adc0320Smrg 15372adc0320Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15382adc0320Smrg# --------------------------------------------- 15392adc0320Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15402adc0320Smrg# accordingly. 15412adc0320Smrgac_fn_c_check_decl () 15422adc0320Smrg{ 15432adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15442adc0320Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15452adc0320Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15472adc0320Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15482adc0320Smrgif eval \${$3+:} false; then : 15492adc0320Smrg $as_echo_n "(cached) " >&6 15502adc0320Smrgelse 15512adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522adc0320Smrg/* end confdefs.h. */ 15532adc0320Smrg$4 15542adc0320Smrgint 15552adc0320Smrgmain () 15562adc0320Smrg{ 15572adc0320Smrg#ifndef $as_decl_name 15582adc0320Smrg#ifdef __cplusplus 15592adc0320Smrg (void) $as_decl_use; 15602adc0320Smrg#else 15612adc0320Smrg (void) $as_decl_name; 15622adc0320Smrg#endif 15632adc0320Smrg#endif 15642adc0320Smrg 15652adc0320Smrg ; 15662adc0320Smrg return 0; 15672adc0320Smrg} 15682adc0320Smrg_ACEOF 15692adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 15702adc0320Smrg eval "$3=yes" 15712adc0320Smrgelse 15722adc0320Smrg eval "$3=no" 15732adc0320Smrgfi 15742adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15752adc0320Smrgfi 15762adc0320Smrgeval ac_res=\$$3 15772adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15782adc0320Smrg$as_echo "$ac_res" >&6; } 15792adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15802adc0320Smrg 15812adc0320Smrg} # ac_fn_c_check_decl 15822adc0320Smrg 15832adc0320Smrg# ac_fn_c_try_cpp LINENO 15842adc0320Smrg# ---------------------- 15852adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15862adc0320Smrgac_fn_c_try_cpp () 15872adc0320Smrg{ 15882adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15892adc0320Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15902adc0320Smrgcase "(($ac_try" in 15912adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15922adc0320Smrg *) ac_try_echo=$ac_try;; 15932adc0320Smrgesac 15942adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15952adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15962adc0320Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15972adc0320Smrg ac_status=$? 15982adc0320Smrg if test -s conftest.err; then 15992adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 16002adc0320Smrg cat conftest.er1 >&5 16012adc0320Smrg mv -f conftest.er1 conftest.err 16022adc0320Smrg fi 16032adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16042adc0320Smrg test $ac_status = 0; } > conftest.i && { 16052adc0320Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16062adc0320Smrg test ! -s conftest.err 16072adc0320Smrg }; then : 16082adc0320Smrg ac_retval=0 16092adc0320Smrgelse 16102adc0320Smrg $as_echo "$as_me: failed program was:" >&5 16112adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 16122adc0320Smrg 16132adc0320Smrg ac_retval=1 16142adc0320Smrgfi 16152adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16162adc0320Smrg as_fn_set_status $ac_retval 16172adc0320Smrg 16182adc0320Smrg} # ac_fn_c_try_cpp 16192adc0320Smrg 16202adc0320Smrg# ac_fn_c_try_run LINENO 16212adc0320Smrg# ---------------------- 16222adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16232adc0320Smrg# that executables *can* be run. 16242adc0320Smrgac_fn_c_try_run () 16252adc0320Smrg{ 16262adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16272adc0320Smrg if { { ac_try="$ac_link" 16282adc0320Smrgcase "(($ac_try" in 16292adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16302adc0320Smrg *) ac_try_echo=$ac_try;; 16312adc0320Smrgesac 16322adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16332adc0320Smrg$as_echo "$ac_try_echo"; } >&5 16342adc0320Smrg (eval "$ac_link") 2>&5 16352adc0320Smrg ac_status=$? 16362adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16372adc0320Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16382adc0320Smrg { { case "(($ac_try" in 16392adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16402adc0320Smrg *) ac_try_echo=$ac_try;; 16412adc0320Smrgesac 16422adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16432adc0320Smrg$as_echo "$ac_try_echo"; } >&5 16442adc0320Smrg (eval "$ac_try") 2>&5 16452adc0320Smrg ac_status=$? 16462adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16472adc0320Smrg test $ac_status = 0; }; }; then : 16482adc0320Smrg ac_retval=0 16492adc0320Smrgelse 16502adc0320Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 16512adc0320Smrg $as_echo "$as_me: failed program was:" >&5 16522adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 16532adc0320Smrg 16542adc0320Smrg ac_retval=$ac_status 16552adc0320Smrgfi 16562adc0320Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16572adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16582adc0320Smrg as_fn_set_status $ac_retval 16592adc0320Smrg 16602adc0320Smrg} # ac_fn_c_try_run 16612adc0320Smrg 16622adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16632adc0320Smrg# ------------------------------------------------------- 16642adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in 16652adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly. 16662adc0320Smrgac_fn_c_check_header_compile () 16672adc0320Smrg{ 16682adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16692adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16702adc0320Smrg$as_echo_n "checking for $2... " >&6; } 16712adc0320Smrgif eval \${$3+:} false; then : 16722adc0320Smrg $as_echo_n "(cached) " >&6 16732adc0320Smrgelse 16742adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752adc0320Smrg/* end confdefs.h. */ 16762adc0320Smrg$4 16772adc0320Smrg#include <$2> 16782adc0320Smrg_ACEOF 16792adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 16802adc0320Smrg eval "$3=yes" 16812adc0320Smrgelse 16822adc0320Smrg eval "$3=no" 16832adc0320Smrgfi 16842adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16852adc0320Smrgfi 16862adc0320Smrgeval ac_res=\$$3 16872adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16882adc0320Smrg$as_echo "$ac_res" >&6; } 16892adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16902adc0320Smrg 16912adc0320Smrg} # ac_fn_c_check_header_compile 16922adc0320Smrg 16932adc0320Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 16942adc0320Smrg# ------------------------------------------------------- 16952adc0320Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 16962adc0320Smrg# the include files in INCLUDES and setting the cache variable VAR 16972adc0320Smrg# accordingly. 16982adc0320Smrgac_fn_c_check_header_mongrel () 16992adc0320Smrg{ 17002adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17012adc0320Smrg if eval \${$3+:} false; then : 17022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17032adc0320Smrg$as_echo_n "checking for $2... " >&6; } 17042adc0320Smrgif eval \${$3+:} false; then : 17052adc0320Smrg $as_echo_n "(cached) " >&6 17062adc0320Smrgfi 17072adc0320Smrgeval ac_res=\$$3 17082adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17092adc0320Smrg$as_echo "$ac_res" >&6; } 17102adc0320Smrgelse 17112adc0320Smrg # Is the header compilable? 17122adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 17132adc0320Smrg$as_echo_n "checking $2 usability... " >&6; } 17142adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17152adc0320Smrg/* end confdefs.h. */ 17162adc0320Smrg$4 17172adc0320Smrg#include <$2> 17182adc0320Smrg_ACEOF 17192adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 17202adc0320Smrg ac_header_compiler=yes 17212adc0320Smrgelse 17222adc0320Smrg ac_header_compiler=no 17232adc0320Smrgfi 17242adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17252adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 17262adc0320Smrg$as_echo "$ac_header_compiler" >&6; } 17272adc0320Smrg 17282adc0320Smrg# Is the header present? 17292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 17302adc0320Smrg$as_echo_n "checking $2 presence... " >&6; } 17312adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322adc0320Smrg/* end confdefs.h. */ 17332adc0320Smrg#include <$2> 17342adc0320Smrg_ACEOF 17352adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 17362adc0320Smrg ac_header_preproc=yes 17372adc0320Smrgelse 17382adc0320Smrg ac_header_preproc=no 17392adc0320Smrgfi 17402adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 17412adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 17422adc0320Smrg$as_echo "$ac_header_preproc" >&6; } 17432adc0320Smrg 17442adc0320Smrg# So? What about this header? 17452adc0320Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 17462adc0320Smrg yes:no: ) 17472adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 17482adc0320Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 17492adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 17502adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 17512adc0320Smrg ;; 17522adc0320Smrg no:yes:* ) 17532adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 17542adc0320Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 17552adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 17562adc0320Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 17572adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 17582adc0320Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 17592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 17602adc0320Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 17612adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 17622adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 17632adc0320Smrg( $as_echo "## ---------------------------------------------------------------------- ## 17642adc0320Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 17652adc0320Smrg## ---------------------------------------------------------------------- ##" 17662adc0320Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 17672adc0320Smrg ;; 17682adc0320Smrgesac 17692adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17702adc0320Smrg$as_echo_n "checking for $2... " >&6; } 17712adc0320Smrgif eval \${$3+:} false; then : 17722adc0320Smrg $as_echo_n "(cached) " >&6 17732adc0320Smrgelse 17742adc0320Smrg eval "$3=\$ac_header_compiler" 17752adc0320Smrgfi 17762adc0320Smrgeval ac_res=\$$3 17772adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17782adc0320Smrg$as_echo "$ac_res" >&6; } 17792adc0320Smrgfi 17802adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17812adc0320Smrg 17822adc0320Smrg} # ac_fn_c_check_header_mongrel 17832adc0320Smrg 17842adc0320Smrg# ac_fn_c_try_link LINENO 17852adc0320Smrg# ----------------------- 17862adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17872adc0320Smrgac_fn_c_try_link () 17882adc0320Smrg{ 17892adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17902adc0320Smrg rm -f conftest.$ac_objext conftest$ac_exeext 17912adc0320Smrg if { { ac_try="$ac_link" 17922adc0320Smrgcase "(($ac_try" in 17932adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17942adc0320Smrg *) ac_try_echo=$ac_try;; 17952adc0320Smrgesac 17962adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17972adc0320Smrg$as_echo "$ac_try_echo"; } >&5 17982adc0320Smrg (eval "$ac_link") 2>conftest.err 17992adc0320Smrg ac_status=$? 18002adc0320Smrg if test -s conftest.err; then 18012adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 18022adc0320Smrg cat conftest.er1 >&5 18032adc0320Smrg mv -f conftest.er1 conftest.err 18042adc0320Smrg fi 18052adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18062adc0320Smrg test $ac_status = 0; } && { 18072adc0320Smrg test -z "$ac_c_werror_flag" || 18082adc0320Smrg test ! -s conftest.err 18092adc0320Smrg } && test -s conftest$ac_exeext && { 18102adc0320Smrg test "$cross_compiling" = yes || 18112adc0320Smrg $as_test_x conftest$ac_exeext 18122adc0320Smrg }; then : 18132adc0320Smrg ac_retval=0 18142adc0320Smrgelse 18152adc0320Smrg $as_echo "$as_me: failed program was:" >&5 18162adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 18172adc0320Smrg 18182adc0320Smrg ac_retval=1 18192adc0320Smrgfi 18202adc0320Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18212adc0320Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18222adc0320Smrg # interfere with the next link command; also delete a directory that is 18232adc0320Smrg # left behind by Apple's compiler. We do this before executing the actions. 18242adc0320Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18252adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18262adc0320Smrg as_fn_set_status $ac_retval 18272adc0320Smrg 18282adc0320Smrg} # ac_fn_c_try_link 18292adc0320Smrg 18302adc0320Smrg# ac_fn_c_check_func LINENO FUNC VAR 18312adc0320Smrg# ---------------------------------- 18322adc0320Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18332adc0320Smrgac_fn_c_check_func () 18342adc0320Smrg{ 18352adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18362adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18372adc0320Smrg$as_echo_n "checking for $2... " >&6; } 18382adc0320Smrgif eval \${$3+:} false; then : 18392adc0320Smrg $as_echo_n "(cached) " >&6 18402adc0320Smrgelse 18412adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18422adc0320Smrg/* end confdefs.h. */ 18432adc0320Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18442adc0320Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18452adc0320Smrg#define $2 innocuous_$2 18462adc0320Smrg 18472adc0320Smrg/* System header to define __stub macros and hopefully few prototypes, 18482adc0320Smrg which can conflict with char $2 (); below. 18492adc0320Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18502adc0320Smrg <limits.h> exists even on freestanding compilers. */ 18512adc0320Smrg 18522adc0320Smrg#ifdef __STDC__ 18532adc0320Smrg# include <limits.h> 18542adc0320Smrg#else 18552adc0320Smrg# include <assert.h> 18562adc0320Smrg#endif 18572adc0320Smrg 18582adc0320Smrg#undef $2 18592adc0320Smrg 18602adc0320Smrg/* Override any GCC internal prototype to avoid an error. 18612adc0320Smrg Use char because int might match the return type of a GCC 18622adc0320Smrg builtin and then its argument prototype would still apply. */ 18632adc0320Smrg#ifdef __cplusplus 18642adc0320Smrgextern "C" 18652adc0320Smrg#endif 18662adc0320Smrgchar $2 (); 18672adc0320Smrg/* The GNU C library defines this for functions which it implements 18682adc0320Smrg to always fail with ENOSYS. Some functions are actually named 18692adc0320Smrg something starting with __ and the normal name is an alias. */ 18702adc0320Smrg#if defined __stub_$2 || defined __stub___$2 18712adc0320Smrgchoke me 18722adc0320Smrg#endif 18732adc0320Smrg 18742adc0320Smrgint 18752adc0320Smrgmain () 18762adc0320Smrg{ 18772adc0320Smrgreturn $2 (); 18782adc0320Smrg ; 18792adc0320Smrg return 0; 18802adc0320Smrg} 18812adc0320Smrg_ACEOF 18822adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 18832adc0320Smrg eval "$3=yes" 18842adc0320Smrgelse 18852adc0320Smrg eval "$3=no" 18862adc0320Smrgfi 18872adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 18882adc0320Smrg conftest$ac_exeext conftest.$ac_ext 18892adc0320Smrgfi 18902adc0320Smrgeval ac_res=\$$3 18912adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18922adc0320Smrg$as_echo "$ac_res" >&6; } 18932adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18942adc0320Smrg 18952adc0320Smrg} # ac_fn_c_check_func 18962adc0320Smrg 18972adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 18982adc0320Smrg# ---------------------------------------------------- 18992adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including 19002adc0320Smrg# INCLUDES, setting cache variable VAR accordingly. 19012adc0320Smrgac_fn_c_check_member () 19022adc0320Smrg{ 19032adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19042adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 19052adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; } 19062adc0320Smrgif eval \${$4+:} false; then : 19072adc0320Smrg $as_echo_n "(cached) " >&6 19082adc0320Smrgelse 19092adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19102adc0320Smrg/* end confdefs.h. */ 19112adc0320Smrg$5 19122adc0320Smrgint 19132adc0320Smrgmain () 19142adc0320Smrg{ 19152adc0320Smrgstatic $2 ac_aggr; 19162adc0320Smrgif (ac_aggr.$3) 19172adc0320Smrgreturn 0; 19182adc0320Smrg ; 19192adc0320Smrg return 0; 19202adc0320Smrg} 19212adc0320Smrg_ACEOF 19222adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19232adc0320Smrg eval "$4=yes" 19242adc0320Smrgelse 19252adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19262adc0320Smrg/* end confdefs.h. */ 19272adc0320Smrg$5 19282adc0320Smrgint 19292adc0320Smrgmain () 19302adc0320Smrg{ 19312adc0320Smrgstatic $2 ac_aggr; 19322adc0320Smrgif (sizeof ac_aggr.$3) 19332adc0320Smrgreturn 0; 19342adc0320Smrg ; 19352adc0320Smrg return 0; 19362adc0320Smrg} 19372adc0320Smrg_ACEOF 19382adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19392adc0320Smrg eval "$4=yes" 19402adc0320Smrgelse 19412adc0320Smrg eval "$4=no" 19422adc0320Smrgfi 19432adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19442adc0320Smrgfi 19452adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19462adc0320Smrgfi 19472adc0320Smrgeval ac_res=\$$4 19482adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19492adc0320Smrg$as_echo "$ac_res" >&6; } 19502adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19512adc0320Smrg 19522adc0320Smrg} # ac_fn_c_check_member 19532adc0320Smrg 19542adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 19552adc0320Smrg# ------------------------------------------- 19562adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache 19572adc0320Smrg# variable VAR accordingly. 19582adc0320Smrgac_fn_c_check_type () 19592adc0320Smrg{ 19602adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19612adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 19622adc0320Smrg$as_echo_n "checking for $2... " >&6; } 19632adc0320Smrgif eval \${$3+:} false; then : 19642adc0320Smrg $as_echo_n "(cached) " >&6 19652adc0320Smrgelse 19662adc0320Smrg eval "$3=no" 19672adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19682adc0320Smrg/* end confdefs.h. */ 19692adc0320Smrg$4 19702adc0320Smrgint 19712adc0320Smrgmain () 19722adc0320Smrg{ 19732adc0320Smrgif (sizeof ($2)) 19742adc0320Smrg return 0; 19752adc0320Smrg ; 19762adc0320Smrg return 0; 19772adc0320Smrg} 19782adc0320Smrg_ACEOF 19792adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19802adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812adc0320Smrg/* end confdefs.h. */ 19822adc0320Smrg$4 19832adc0320Smrgint 19842adc0320Smrgmain () 19852adc0320Smrg{ 19862adc0320Smrgif (sizeof (($2))) 19872adc0320Smrg return 0; 19882adc0320Smrg ; 19892adc0320Smrg return 0; 19902adc0320Smrg} 19912adc0320Smrg_ACEOF 19922adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19932adc0320Smrg 19942adc0320Smrgelse 19952adc0320Smrg eval "$3=yes" 19962adc0320Smrgfi 19972adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19982adc0320Smrgfi 19992adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20002adc0320Smrgfi 20012adc0320Smrgeval ac_res=\$$3 20022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20032adc0320Smrg$as_echo "$ac_res" >&6; } 20042adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 20052adc0320Smrg 20062adc0320Smrg} # ac_fn_c_check_type 20072adc0320Smrgcat >config.log <<_ACEOF 20082adc0320SmrgThis file contains any messages produced by compilers while 20092adc0320Smrgrunning configure, to aid debugging if configure makes a mistake. 20102adc0320Smrg 20112852888eSmrgIt was created by xauth $as_me 1.0.6, which was 20122adc0320Smrggenerated by GNU Autoconf 2.68. Invocation command line was 20132adc0320Smrg 20142adc0320Smrg $ $0 $@ 20152adc0320Smrg 20162adc0320Smrg_ACEOF 20172adc0320Smrgexec 5>>config.log 20182adc0320Smrg{ 20192adc0320Smrgcat <<_ASUNAME 20202adc0320Smrg## --------- ## 20212adc0320Smrg## Platform. ## 20222adc0320Smrg## --------- ## 20232adc0320Smrg 20242adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 20252adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 20262adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 20272adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 20282adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 20292adc0320Smrg 20302adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 20312adc0320Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 20322adc0320Smrg 20332adc0320Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 20342adc0320Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 20352adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 20362adc0320Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 20372adc0320Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 20382adc0320Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 20392adc0320Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 20402adc0320Smrg 20412adc0320Smrg_ASUNAME 20427a0395d0Smrg 20437a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20447a0395d0Smrgfor as_dir in $PATH 20457a0395d0Smrgdo 20467a0395d0Smrg IFS=$as_save_IFS 20477a0395d0Smrg test -z "$as_dir" && as_dir=. 20482adc0320Smrg $as_echo "PATH: $as_dir" 20492adc0320Smrg done 20507a0395d0SmrgIFS=$as_save_IFS 20517a0395d0Smrg 20527a0395d0Smrg} >&5 20537a0395d0Smrg 20547a0395d0Smrgcat >&5 <<_ACEOF 20557a0395d0Smrg 20567a0395d0Smrg 20577a0395d0Smrg## ----------- ## 20587a0395d0Smrg## Core tests. ## 20597a0395d0Smrg## ----------- ## 20607a0395d0Smrg 20617a0395d0Smrg_ACEOF 20627a0395d0Smrg 20637a0395d0Smrg 20647a0395d0Smrg# Keep a trace of the command line. 20657a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up. 20667a0395d0Smrg# Strip out --silent because we don't want to record it for future runs. 20677a0395d0Smrg# Also quote any args containing shell meta-characters. 20687a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression. 20697a0395d0Smrgac_configure_args= 20707a0395d0Smrgac_configure_args0= 20717a0395d0Smrgac_configure_args1= 20727a0395d0Smrgac_must_keep_next=false 20737a0395d0Smrgfor ac_pass in 1 2 20747a0395d0Smrgdo 20757a0395d0Smrg for ac_arg 20767a0395d0Smrg do 20777a0395d0Smrg case $ac_arg in 20787a0395d0Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 20797a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20807a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 20817a0395d0Smrg continue ;; 20827a0395d0Smrg *\'*) 20837366012aSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20847a0395d0Smrg esac 20857a0395d0Smrg case $ac_pass in 20862adc0320Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 20877a0395d0Smrg 2) 20882adc0320Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 20897a0395d0Smrg if test $ac_must_keep_next = true; then 20907a0395d0Smrg ac_must_keep_next=false # Got value, back to normal. 20917a0395d0Smrg else 20927a0395d0Smrg case $ac_arg in 20937a0395d0Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 20947a0395d0Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 20957a0395d0Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 20967a0395d0Smrg | -with-* | --with-* | -without-* | --without-* | --x) 20977a0395d0Smrg case "$ac_configure_args0 " in 20987a0395d0Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 20997a0395d0Smrg esac 21007a0395d0Smrg ;; 21017a0395d0Smrg -* ) ac_must_keep_next=true ;; 21027a0395d0Smrg esac 21037a0395d0Smrg fi 21042adc0320Smrg as_fn_append ac_configure_args " '$ac_arg'" 21057a0395d0Smrg ;; 21067a0395d0Smrg esac 21077a0395d0Smrg done 21087a0395d0Smrgdone 21092adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;} 21102adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;} 21117a0395d0Smrg 21127a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete 21137a0395d0Smrg# config.log. We remove comments because anyway the quotes in there 21147a0395d0Smrg# would cause problems or look ugly. 21157a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 21167a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 21177a0395d0Smrgtrap 'exit_status=$? 21187a0395d0Smrg # Save into config.log some information that might help in debugging. 21197a0395d0Smrg { 21207a0395d0Smrg echo 21217a0395d0Smrg 21222adc0320Smrg $as_echo "## ---------------- ## 21237a0395d0Smrg## Cache variables. ## 21242adc0320Smrg## ---------------- ##" 21257a0395d0Smrg echo 21267a0395d0Smrg # The following way of writing the cache mishandles newlines in values, 21277a0395d0Smrg( 21287a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 21297a0395d0Smrg eval ac_val=\$$ac_var 21307a0395d0Smrg case $ac_val in #( 21317a0395d0Smrg *${as_nl}*) 21327a0395d0Smrg case $ac_var in #( 21332adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21347366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21357a0395d0Smrg esac 21367a0395d0Smrg case $ac_var in #( 21377a0395d0Smrg _ | IFS | as_nl) ;; #( 21387366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21392adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 21407a0395d0Smrg esac ;; 21417a0395d0Smrg esac 21427a0395d0Smrg done 21437a0395d0Smrg (set) 2>&1 | 21447a0395d0Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 21457a0395d0Smrg *${as_nl}ac_space=\ *) 21467a0395d0Smrg sed -n \ 21477a0395d0Smrg "s/'\''/'\''\\\\'\'''\''/g; 21487a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 21497a0395d0Smrg ;; #( 21507a0395d0Smrg *) 21517a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21527a0395d0Smrg ;; 21537a0395d0Smrg esac | 21547a0395d0Smrg sort 21557a0395d0Smrg) 21567a0395d0Smrg echo 21577a0395d0Smrg 21582adc0320Smrg $as_echo "## ----------------- ## 21597a0395d0Smrg## Output variables. ## 21602adc0320Smrg## ----------------- ##" 21617a0395d0Smrg echo 21627a0395d0Smrg for ac_var in $ac_subst_vars 21637a0395d0Smrg do 21647a0395d0Smrg eval ac_val=\$$ac_var 21657a0395d0Smrg case $ac_val in 21667366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 21677a0395d0Smrg esac 21687366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 21697a0395d0Smrg done | sort 21707a0395d0Smrg echo 21717a0395d0Smrg 21727a0395d0Smrg if test -n "$ac_subst_files"; then 21732adc0320Smrg $as_echo "## ------------------- ## 21747a0395d0Smrg## File substitutions. ## 21752adc0320Smrg## ------------------- ##" 21767a0395d0Smrg echo 21777a0395d0Smrg for ac_var in $ac_subst_files 21787a0395d0Smrg do 21797a0395d0Smrg eval ac_val=\$$ac_var 21807a0395d0Smrg case $ac_val in 21817366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 21827a0395d0Smrg esac 21837366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 21847a0395d0Smrg done | sort 21857a0395d0Smrg echo 21867a0395d0Smrg fi 21877a0395d0Smrg 21887a0395d0Smrg if test -s confdefs.h; then 21892adc0320Smrg $as_echo "## ----------- ## 21907a0395d0Smrg## confdefs.h. ## 21912adc0320Smrg## ----------- ##" 21927a0395d0Smrg echo 21937a0395d0Smrg cat confdefs.h 21947a0395d0Smrg echo 21957a0395d0Smrg fi 21967a0395d0Smrg test "$ac_signal" != 0 && 21977366012aSmrg $as_echo "$as_me: caught signal $ac_signal" 21987366012aSmrg $as_echo "$as_me: exit $exit_status" 21997a0395d0Smrg } >&5 22007a0395d0Smrg rm -f core *.core core.conftest.* && 22017a0395d0Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 22027a0395d0Smrg exit $exit_status 22037a0395d0Smrg' 0 22047a0395d0Smrgfor ac_signal in 1 2 13 15; do 22052adc0320Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 22067a0395d0Smrgdone 22077a0395d0Smrgac_signal=0 22087a0395d0Smrg 22097a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 22107a0395d0Smrgrm -f -r conftest* confdefs.h 22117a0395d0Smrg 22122adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h 22132adc0320Smrg 22147a0395d0Smrg# Predefined preprocessor variables. 22157a0395d0Smrg 22167a0395d0Smrgcat >>confdefs.h <<_ACEOF 22177a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 22187a0395d0Smrg_ACEOF 22197a0395d0Smrg 22207a0395d0Smrgcat >>confdefs.h <<_ACEOF 22217a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 22227a0395d0Smrg_ACEOF 22237a0395d0Smrg 22247a0395d0Smrgcat >>confdefs.h <<_ACEOF 22257a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 22267a0395d0Smrg_ACEOF 22277a0395d0Smrg 22287a0395d0Smrgcat >>confdefs.h <<_ACEOF 22297a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 22307a0395d0Smrg_ACEOF 22317a0395d0Smrg 22327a0395d0Smrgcat >>confdefs.h <<_ACEOF 22337a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 22347a0395d0Smrg_ACEOF 22357a0395d0Smrg 22362adc0320Smrgcat >>confdefs.h <<_ACEOF 22372adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL" 22382adc0320Smrg_ACEOF 22392adc0320Smrg 22407a0395d0Smrg 22417a0395d0Smrg# Let the site file select an alternate cache file if it wants to. 22427366012aSmrg# Prefer an explicitly selected file to automatically selected ones. 22437366012aSmrgac_site_file1=NONE 22447366012aSmrgac_site_file2=NONE 22457a0395d0Smrgif test -n "$CONFIG_SITE"; then 22462adc0320Smrg # We do not want a PATH search for config.site. 22472adc0320Smrg case $CONFIG_SITE in #(( 22482adc0320Smrg -*) ac_site_file1=./$CONFIG_SITE;; 22492adc0320Smrg */*) ac_site_file1=$CONFIG_SITE;; 22502adc0320Smrg *) ac_site_file1=./$CONFIG_SITE;; 22512adc0320Smrg esac 22527a0395d0Smrgelif test "x$prefix" != xNONE; then 22537366012aSmrg ac_site_file1=$prefix/share/config.site 22547366012aSmrg ac_site_file2=$prefix/etc/config.site 22557a0395d0Smrgelse 22567366012aSmrg ac_site_file1=$ac_default_prefix/share/config.site 22577366012aSmrg ac_site_file2=$ac_default_prefix/etc/config.site 22587a0395d0Smrgfi 22597366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 22607a0395d0Smrgdo 22617366012aSmrg test "x$ac_site_file" = xNONE && continue 22622adc0320Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 22632adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 22647366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 22657a0395d0Smrg sed 's/^/| /' "$ac_site_file" >&5 22662adc0320Smrg . "$ac_site_file" \ 22672adc0320Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22682adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22692adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file 22702adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 22717a0395d0Smrg fi 22727a0395d0Smrgdone 22737a0395d0Smrg 22747a0395d0Smrgif test -r "$cache_file"; then 22752adc0320Smrg # Some versions of bash will fail to source /dev/null (special files 22762adc0320Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 22772adc0320Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 22782adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 22797366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 22807a0395d0Smrg case $cache_file in 22817a0395d0Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 22827a0395d0Smrg *) . "./$cache_file";; 22837a0395d0Smrg esac 22847a0395d0Smrg fi 22857a0395d0Smrgelse 22862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 22877366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 22887a0395d0Smrg >$cache_file 22897a0395d0Smrgfi 22907a0395d0Smrg 22917a0395d0Smrg# Check that the precious variables saved in the cache have kept the same 22927a0395d0Smrg# value. 22937a0395d0Smrgac_cache_corrupted=false 22947a0395d0Smrgfor ac_var in $ac_precious_vars; do 22957a0395d0Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 22967a0395d0Smrg eval ac_new_set=\$ac_env_${ac_var}_set 22977a0395d0Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 22987a0395d0Smrg eval ac_new_val=\$ac_env_${ac_var}_value 22997a0395d0Smrg case $ac_old_set,$ac_new_set in 23007a0395d0Smrg set,) 23012adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 23027366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 23037a0395d0Smrg ac_cache_corrupted=: ;; 23047a0395d0Smrg ,set) 23052adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 23067366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 23077a0395d0Smrg ac_cache_corrupted=: ;; 23087a0395d0Smrg ,);; 23097a0395d0Smrg *) 23107a0395d0Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 23117366012aSmrg # differences in whitespace do not lead to failure. 23127366012aSmrg ac_old_val_w=`echo x $ac_old_val` 23137366012aSmrg ac_new_val_w=`echo x $ac_new_val` 23147366012aSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 23152adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 23167366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 23177366012aSmrg ac_cache_corrupted=: 23187366012aSmrg else 23192adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 23207366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 23217366012aSmrg eval $ac_var=\$ac_old_val 23227366012aSmrg fi 23232adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 23247366012aSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 23252adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 23267366012aSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 23277a0395d0Smrg fi;; 23282adc0320Smrg esac 23292adc0320Smrg # Pass precious variables to config.status. 23302adc0320Smrg if test "$ac_new_set" = set; then 23312adc0320Smrg case $ac_new_val in 23322adc0320Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 23332adc0320Smrg *) ac_arg=$ac_var=$ac_new_val ;; 23342adc0320Smrg esac 23352adc0320Smrg case " $ac_configure_args " in 23362adc0320Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 23372adc0320Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 23382adc0320Smrg esac 23392adc0320Smrg fi 23402adc0320Smrgdone 23412adc0320Smrgif $ac_cache_corrupted; then 23422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23432adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23442adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 23452adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 23462adc0320Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 23472adc0320Smrgfi 23482adc0320Smrg## -------------------- ## 23492adc0320Smrg## Main body of script. ## 23502adc0320Smrg## -------------------- ## 23517a0395d0Smrg 23527a0395d0Smrgac_ext=c 23537a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 23547a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23557a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23567a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 23577a0395d0Smrg 23587a0395d0Smrg 23597366012aSmrgam__api_version='1.11' 23607a0395d0Smrg 23617a0395d0Smrgac_aux_dir= 23627a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 23637a0395d0Smrg if test -f "$ac_dir/install-sh"; then 23647a0395d0Smrg ac_aux_dir=$ac_dir 23657a0395d0Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 23667a0395d0Smrg break 23677a0395d0Smrg elif test -f "$ac_dir/install.sh"; then 23687a0395d0Smrg ac_aux_dir=$ac_dir 23697a0395d0Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 23707a0395d0Smrg break 23717a0395d0Smrg elif test -f "$ac_dir/shtool"; then 23727a0395d0Smrg ac_aux_dir=$ac_dir 23737a0395d0Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 23747a0395d0Smrg break 23757a0395d0Smrg fi 23767a0395d0Smrgdone 23777a0395d0Smrgif test -z "$ac_aux_dir"; then 23782adc0320Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 23797a0395d0Smrgfi 23807a0395d0Smrg 23817a0395d0Smrg# These three variables are undocumented and unsupported, 23827a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release. 23837a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory 23847a0395d0Smrg# whose full name contains unusual characters. 23857a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 23867a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 23877a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 23887a0395d0Smrg 23897a0395d0Smrg 23907a0395d0Smrg# Find a good install program. We prefer a C program (faster), 23917a0395d0Smrg# so one script is as good as another. But avoid the broken or 23927a0395d0Smrg# incompatible versions: 23937a0395d0Smrg# SysV /etc/install, /usr/sbin/install 23947a0395d0Smrg# SunOS /usr/etc/install 23957a0395d0Smrg# IRIX /sbin/install 23967a0395d0Smrg# AIX /bin/install 23977a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 23987a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 23997a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 24007a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 24017a0395d0Smrg# OS/2's system install, which has a completely different semantic 24027a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh. 24037366012aSmrg# Reject install programs that cannot install multiple files. 24042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 24057366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 24067a0395d0Smrgif test -z "$INSTALL"; then 24072adc0320Smrgif ${ac_cv_path_install+:} false; then : 24087366012aSmrg $as_echo_n "(cached) " >&6 24097a0395d0Smrgelse 24107a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24117a0395d0Smrgfor as_dir in $PATH 24127a0395d0Smrgdo 24137a0395d0Smrg IFS=$as_save_IFS 24147a0395d0Smrg test -z "$as_dir" && as_dir=. 24152adc0320Smrg # Account for people who put trailing slashes in PATH elements. 24162adc0320Smrgcase $as_dir/ in #(( 24172adc0320Smrg ./ | .// | /[cC]/* | \ 24187a0395d0Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 24192adc0320Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 24207a0395d0Smrg /usr/ucb/* ) ;; 24217a0395d0Smrg *) 24227a0395d0Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 24237a0395d0Smrg # Don't use installbsd from OSF since it installs stuff as root 24247a0395d0Smrg # by default. 24257a0395d0Smrg for ac_prog in ginstall scoinst install; do 24267a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24277a0395d0Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 24287a0395d0Smrg if test $ac_prog = install && 24297a0395d0Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24307a0395d0Smrg # AIX install. It has an incompatible calling convention. 24317a0395d0Smrg : 24327a0395d0Smrg elif test $ac_prog = install && 24337a0395d0Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24347a0395d0Smrg # program-specific install script used by HP pwplus--don't use. 24357a0395d0Smrg : 24367a0395d0Smrg else 24377366012aSmrg rm -rf conftest.one conftest.two conftest.dir 24387366012aSmrg echo one > conftest.one 24397366012aSmrg echo two > conftest.two 24407366012aSmrg mkdir conftest.dir 24417366012aSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 24427366012aSmrg test -s conftest.one && test -s conftest.two && 24437366012aSmrg test -s conftest.dir/conftest.one && 24447366012aSmrg test -s conftest.dir/conftest.two 24457366012aSmrg then 24467366012aSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 24477366012aSmrg break 3 24487366012aSmrg fi 24497a0395d0Smrg fi 24507a0395d0Smrg fi 24517a0395d0Smrg done 24527a0395d0Smrg done 24537a0395d0Smrg ;; 24547a0395d0Smrgesac 24557366012aSmrg 24562adc0320Smrg done 24577a0395d0SmrgIFS=$as_save_IFS 24587a0395d0Smrg 24597366012aSmrgrm -rf conftest.one conftest.two conftest.dir 24607a0395d0Smrg 24617a0395d0Smrgfi 24627a0395d0Smrg if test "${ac_cv_path_install+set}" = set; then 24637a0395d0Smrg INSTALL=$ac_cv_path_install 24647a0395d0Smrg else 24657a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 24667a0395d0Smrg # value for INSTALL within a source directory, because that will 24677a0395d0Smrg # break other packages using the cache if that directory is 24687a0395d0Smrg # removed, or if the value is a relative name. 24697a0395d0Smrg INSTALL=$ac_install_sh 24707a0395d0Smrg fi 24717a0395d0Smrgfi 24722adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 24737366012aSmrg$as_echo "$INSTALL" >&6; } 24747a0395d0Smrg 24757a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 24767a0395d0Smrg# It thinks the first close brace ends the variable substitution. 24777a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 24787a0395d0Smrg 24797a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 24807a0395d0Smrg 24817a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 24827a0395d0Smrg 24832adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 24847366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 24857a0395d0Smrg# Just in case 24867a0395d0Smrgsleep 1 24877a0395d0Smrgecho timestamp > conftest.file 24887366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 24897366012aSmrg# name. Accept space and tab only in the latter. 24907366012aSmrgam_lf=' 24917366012aSmrg' 24927366012aSmrgcase `pwd` in 24937366012aSmrg *[\\\"\#\$\&\'\`$am_lf]*) 24942adc0320Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 24957366012aSmrgesac 24967366012aSmrgcase $srcdir in 24977366012aSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 24982adc0320Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 24997366012aSmrgesac 25007366012aSmrg 25017366012aSmrg# Do `set' in a subshell so we don't clobber the current shell's 25027366012aSmrg# arguments. Must try -L first in case configure is actually a 25037366012aSmrg# symlink; some systems play weird games with the mod time of symlinks 25047366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 25057366012aSmrg# directory). 25067366012aSmrgif ( 25077366012aSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 25087a0395d0Smrg if test "$*" = "X"; then 25097a0395d0Smrg # -L didn't work. 25107366012aSmrg set X `ls -t "$srcdir/configure" conftest.file` 25117a0395d0Smrg fi 25127a0395d0Smrg rm -f conftest.file 25137a0395d0Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 25147a0395d0Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 25157a0395d0Smrg 25167a0395d0Smrg # If neither matched, then we have a broken ls. This can happen 25177a0395d0Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 25187a0395d0Smrg # broken ls alias from the environment. This has actually 25197a0395d0Smrg # happened. Such a system could not be considered "sane". 25202adc0320Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 25212adc0320Smrgalias in your environment" "$LINENO" 5 25227a0395d0Smrg fi 25237a0395d0Smrg 25247a0395d0Smrg test "$2" = conftest.file 25257a0395d0Smrg ) 25267a0395d0Smrgthen 25277a0395d0Smrg # Ok. 25287a0395d0Smrg : 25297a0395d0Smrgelse 25302adc0320Smrg as_fn_error $? "newly created file is older than distributed files! 25312adc0320SmrgCheck your system clock" "$LINENO" 5 25327a0395d0Smrgfi 25332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25347366012aSmrg$as_echo "yes" >&6; } 25357a0395d0Smrgtest "$program_prefix" != NONE && 25367a0395d0Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 25377a0395d0Smrg# Use a double $ so make ignores it. 25387a0395d0Smrgtest "$program_suffix" != NONE && 25397a0395d0Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 25407366012aSmrg# Double any \ or $. 25417a0395d0Smrg# By default was `s,x,x', remove it if useless. 25427366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 25437366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 25447a0395d0Smrg 25457a0395d0Smrg# expand $ac_aux_dir to an absolute path 25467a0395d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 25477a0395d0Smrg 25487366012aSmrgif test x"${MISSING+set}" != xset; then 25497366012aSmrg case $am_aux_dir in 25507366012aSmrg *\ * | *\ *) 25517366012aSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 25527366012aSmrg *) 25537366012aSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 25547366012aSmrg esac 25557366012aSmrgfi 25567a0395d0Smrg# Use eval to expand $SHELL 25577a0395d0Smrgif eval "$MISSING --run true"; then 25587a0395d0Smrg am_missing_run="$MISSING --run " 25597a0395d0Smrgelse 25607a0395d0Smrg am_missing_run= 25612adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 25627366012aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 25637366012aSmrgfi 25647366012aSmrg 25657366012aSmrgif test x"${install_sh}" != xset; then 25667366012aSmrg case $am_aux_dir in 25677366012aSmrg *\ * | *\ *) 25687366012aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 25697366012aSmrg *) 25707366012aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 25717366012aSmrg esac 25727366012aSmrgfi 25737366012aSmrg 25747366012aSmrg# Installed binaries are usually stripped using `strip' when the user 25757366012aSmrg# run `make install-strip'. However `strip' might not be the right 25767366012aSmrg# tool to use in cross-compilation environments, therefore Automake 25777366012aSmrg# will honor the `STRIP' environment variable to overrule this program. 25787366012aSmrgif test "$cross_compiling" != no; then 25797366012aSmrg if test -n "$ac_tool_prefix"; then 25807366012aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 25817366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 25822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25837366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 25842adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then : 25857366012aSmrg $as_echo_n "(cached) " >&6 25867366012aSmrgelse 25877366012aSmrg if test -n "$STRIP"; then 25887366012aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 25897366012aSmrgelse 25907366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25917366012aSmrgfor as_dir in $PATH 25927366012aSmrgdo 25937366012aSmrg IFS=$as_save_IFS 25947366012aSmrg test -z "$as_dir" && as_dir=. 25952adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 25967366012aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25977366012aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 25982adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25997366012aSmrg break 2 26007366012aSmrg fi 26017366012aSmrgdone 26022adc0320Smrg done 26037366012aSmrgIFS=$as_save_IFS 26047366012aSmrg 26057366012aSmrgfi 26067366012aSmrgfi 26077366012aSmrgSTRIP=$ac_cv_prog_STRIP 26087366012aSmrgif test -n "$STRIP"; then 26092adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 26107366012aSmrg$as_echo "$STRIP" >&6; } 26117366012aSmrgelse 26122adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26137366012aSmrg$as_echo "no" >&6; } 26147366012aSmrgfi 26157366012aSmrg 26167366012aSmrg 26177366012aSmrgfi 26187366012aSmrgif test -z "$ac_cv_prog_STRIP"; then 26197366012aSmrg ac_ct_STRIP=$STRIP 26207366012aSmrg # Extract the first word of "strip", so it can be a program name with args. 26217366012aSmrgset dummy strip; ac_word=$2 26222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26237366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 26242adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 26257366012aSmrg $as_echo_n "(cached) " >&6 26267366012aSmrgelse 26277366012aSmrg if test -n "$ac_ct_STRIP"; then 26287366012aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 26297366012aSmrgelse 26307366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26317366012aSmrgfor as_dir in $PATH 26327366012aSmrgdo 26337366012aSmrg IFS=$as_save_IFS 26347366012aSmrg test -z "$as_dir" && as_dir=. 26352adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26367366012aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26377366012aSmrg ac_cv_prog_ac_ct_STRIP="strip" 26382adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26397366012aSmrg break 2 26407366012aSmrg fi 26417366012aSmrgdone 26422adc0320Smrg done 26437366012aSmrgIFS=$as_save_IFS 26447366012aSmrg 26457366012aSmrgfi 26467366012aSmrgfi 26477366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 26487366012aSmrgif test -n "$ac_ct_STRIP"; then 26492adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 26507366012aSmrg$as_echo "$ac_ct_STRIP" >&6; } 26517366012aSmrgelse 26522adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26537366012aSmrg$as_echo "no" >&6; } 26547366012aSmrgfi 26557366012aSmrg 26567366012aSmrg if test "x$ac_ct_STRIP" = x; then 26577366012aSmrg STRIP=":" 26587366012aSmrg else 26597366012aSmrg case $cross_compiling:$ac_tool_warned in 26607366012aSmrgyes:) 26612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26627366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26637366012aSmrgac_tool_warned=yes ;; 26647366012aSmrgesac 26657366012aSmrg STRIP=$ac_ct_STRIP 26667366012aSmrg fi 26677366012aSmrgelse 26687366012aSmrg STRIP="$ac_cv_prog_STRIP" 26697a0395d0Smrgfi 26707a0395d0Smrg 26717366012aSmrgfi 26727366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 26737366012aSmrg 26742adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 26757366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 26767a0395d0Smrgif test -z "$MKDIR_P"; then 26772adc0320Smrg if ${ac_cv_path_mkdir+:} false; then : 26787366012aSmrg $as_echo_n "(cached) " >&6 26797a0395d0Smrgelse 26807a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26817a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 26827a0395d0Smrgdo 26837a0395d0Smrg IFS=$as_save_IFS 26847a0395d0Smrg test -z "$as_dir" && as_dir=. 26852adc0320Smrg for ac_prog in mkdir gmkdir; do 26867a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26877a0395d0Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 26887a0395d0Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 26897a0395d0Smrg 'mkdir (GNU coreutils) '* | \ 26907a0395d0Smrg 'mkdir (coreutils) '* | \ 26917a0395d0Smrg 'mkdir (fileutils) '4.1*) 26927a0395d0Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 26937a0395d0Smrg break 3;; 26947a0395d0Smrg esac 26957a0395d0Smrg done 26967a0395d0Smrg done 26972adc0320Smrg done 26987a0395d0SmrgIFS=$as_save_IFS 26997a0395d0Smrg 27007a0395d0Smrgfi 27017a0395d0Smrg 27022adc0320Smrg test -d ./--version && rmdir ./--version 27037a0395d0Smrg if test "${ac_cv_path_mkdir+set}" = set; then 27047a0395d0Smrg MKDIR_P="$ac_cv_path_mkdir -p" 27057a0395d0Smrg else 27067a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 27077a0395d0Smrg # value for MKDIR_P within a source directory, because that will 27087a0395d0Smrg # break other packages using the cache if that directory is 27097a0395d0Smrg # removed, or if the value is a relative name. 27107a0395d0Smrg MKDIR_P="$ac_install_sh -d" 27117a0395d0Smrg fi 27127a0395d0Smrgfi 27132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 27147366012aSmrg$as_echo "$MKDIR_P" >&6; } 27157a0395d0Smrg 27167a0395d0Smrgmkdir_p="$MKDIR_P" 27177a0395d0Smrgcase $mkdir_p in 27187a0395d0Smrg [\\/$]* | ?:[\\/]*) ;; 27197a0395d0Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 27207a0395d0Smrgesac 27217a0395d0Smrg 27227a0395d0Smrgfor ac_prog in gawk mawk nawk awk 27237a0395d0Smrgdo 27247a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 27257a0395d0Smrgset dummy $ac_prog; ac_word=$2 27262adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27277366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 27282adc0320Smrgif ${ac_cv_prog_AWK+:} false; then : 27297366012aSmrg $as_echo_n "(cached) " >&6 27307a0395d0Smrgelse 27317a0395d0Smrg if test -n "$AWK"; then 27327a0395d0Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 27337a0395d0Smrgelse 27347a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27357a0395d0Smrgfor as_dir in $PATH 27367a0395d0Smrgdo 27377a0395d0Smrg IFS=$as_save_IFS 27387a0395d0Smrg test -z "$as_dir" && as_dir=. 27392adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27407a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27417a0395d0Smrg ac_cv_prog_AWK="$ac_prog" 27422adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27437a0395d0Smrg break 2 27447a0395d0Smrg fi 27457a0395d0Smrgdone 27462adc0320Smrg done 27477a0395d0SmrgIFS=$as_save_IFS 27487a0395d0Smrg 27497a0395d0Smrgfi 27507a0395d0Smrgfi 27517a0395d0SmrgAWK=$ac_cv_prog_AWK 27527a0395d0Smrgif test -n "$AWK"; then 27532adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 27547366012aSmrg$as_echo "$AWK" >&6; } 27557a0395d0Smrgelse 27562adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27577366012aSmrg$as_echo "no" >&6; } 27587a0395d0Smrgfi 27597a0395d0Smrg 27607a0395d0Smrg 27617a0395d0Smrg test -n "$AWK" && break 27627a0395d0Smrgdone 27637a0395d0Smrg 27642adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 27657366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 27667366012aSmrgset x ${MAKE-make} 27677366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 27682adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 27697366012aSmrg $as_echo_n "(cached) " >&6 27707a0395d0Smrgelse 27717a0395d0Smrg cat >conftest.make <<\_ACEOF 27727a0395d0SmrgSHELL = /bin/sh 27737a0395d0Smrgall: 27747a0395d0Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 27757a0395d0Smrg_ACEOF 27762adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 27777a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 27787a0395d0Smrg *@@@%%%=?*=@@@%%%*) 27797a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 27807a0395d0Smrg *) 27817a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 27827a0395d0Smrgesac 27837a0395d0Smrgrm -f conftest.make 27847a0395d0Smrgfi 27857a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 27862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27877366012aSmrg$as_echo "yes" >&6; } 27887a0395d0Smrg SET_MAKE= 27897a0395d0Smrgelse 27902adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27917366012aSmrg$as_echo "no" >&6; } 27927a0395d0Smrg SET_MAKE="MAKE=${MAKE-make}" 27937a0395d0Smrgfi 27947a0395d0Smrg 27957a0395d0Smrgrm -rf .tst 2>/dev/null 27967a0395d0Smrgmkdir .tst 2>/dev/null 27977a0395d0Smrgif test -d .tst; then 27987a0395d0Smrg am__leading_dot=. 27997a0395d0Smrgelse 28007a0395d0Smrg am__leading_dot=_ 28017a0395d0Smrgfi 28027a0395d0Smrgrmdir .tst 2>/dev/null 28037a0395d0Smrg 28047a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 28057a0395d0Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 28067a0395d0Smrg # is not polluted with repeated "-I." 28077a0395d0Smrg am__isrc=' -I$(srcdir)' 28087a0395d0Smrg # test to see if srcdir already configured 28097a0395d0Smrg if test -f $srcdir/config.status; then 28102adc0320Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 28117a0395d0Smrg fi 28127a0395d0Smrgfi 28137a0395d0Smrg 28147a0395d0Smrg# test whether we have cygpath 28157a0395d0Smrgif test -z "$CYGPATH_W"; then 28167a0395d0Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 28177a0395d0Smrg CYGPATH_W='cygpath -w' 28187a0395d0Smrg else 28197a0395d0Smrg CYGPATH_W=echo 28207a0395d0Smrg fi 28217a0395d0Smrgfi 28227a0395d0Smrg 28237a0395d0Smrg 28247a0395d0Smrg# Define the identity of the package. 28257a0395d0Smrg PACKAGE='xauth' 28262852888eSmrg VERSION='1.0.6' 28277a0395d0Smrg 28287a0395d0Smrg 28297a0395d0Smrgcat >>confdefs.h <<_ACEOF 28307a0395d0Smrg#define PACKAGE "$PACKAGE" 28317a0395d0Smrg_ACEOF 28327a0395d0Smrg 28337a0395d0Smrg 28347a0395d0Smrgcat >>confdefs.h <<_ACEOF 28357a0395d0Smrg#define VERSION "$VERSION" 28367a0395d0Smrg_ACEOF 28377a0395d0Smrg 28387a0395d0Smrg# Some tools Automake needs. 28397a0395d0Smrg 28407a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 28417a0395d0Smrg 28427a0395d0Smrg 28437a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 28447a0395d0Smrg 28457a0395d0Smrg 28467a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 28477a0395d0Smrg 28487a0395d0Smrg 28497a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 28507a0395d0Smrg 28517a0395d0Smrg 28527a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 28537a0395d0Smrg 28547a0395d0Smrg# We need awk for the "check" target. The system "awk" is bad on 28557a0395d0Smrg# some platforms. 28567a0395d0Smrg# Always define AMTAR for backward compatibility. 28577a0395d0Smrg 28587a0395d0SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 28597a0395d0Smrg 28607a0395d0Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 28617a0395d0Smrg 28627a0395d0Smrg 28637a0395d0Smrg 28647a0395d0Smrg 28657a0395d0Smrg 28667366012aSmrg 28672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 28687366012aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 28697a0395d0Smrg # Check whether --enable-maintainer-mode was given. 28702adc0320Smrgif test "${enable_maintainer_mode+set}" = set; then : 28717a0395d0Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 28727a0395d0Smrgelse 28737a0395d0Smrg USE_MAINTAINER_MODE=no 28747a0395d0Smrgfi 28757a0395d0Smrg 28762adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 28777366012aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 28787a0395d0Smrg if test $USE_MAINTAINER_MODE = yes; then 28797a0395d0Smrg MAINTAINER_MODE_TRUE= 28807a0395d0Smrg MAINTAINER_MODE_FALSE='#' 28817a0395d0Smrgelse 28827a0395d0Smrg MAINTAINER_MODE_TRUE='#' 28837a0395d0Smrg MAINTAINER_MODE_FALSE= 28847a0395d0Smrgfi 28857a0395d0Smrg 28867a0395d0Smrg MAINT=$MAINTAINER_MODE_TRUE 28877a0395d0Smrg 28887a0395d0Smrg 28897a0395d0Smrg 28907a0395d0Smrgac_config_headers="$ac_config_headers config.h" 28917a0395d0Smrg 28927a0395d0Smrg 28932adc0320Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 28942adc0320Smrg 28952adc0320Smrg 28967366012aSmrg 28977366012aSmrg 28987366012aSmrg 28997366012aSmrg 29007366012aSmrg 29017366012aSmrg 29027366012aSmrg 29037366012aSmrg 29047a0395d0Smrg 29052adc0320SmrgDEPDIR="${am__leading_dot}deps" 29062adc0320Smrg 29072adc0320Smrgac_config_commands="$ac_config_commands depfiles" 29082adc0320Smrg 29092adc0320Smrg 29102adc0320Smrgam_make=${MAKE-make} 29112adc0320Smrgcat > confinc << 'END' 29122adc0320Smrgam__doit: 29132adc0320Smrg @echo this is the am__doit target 29142adc0320Smrg.PHONY: am__doit 29152adc0320SmrgEND 29162adc0320Smrg# If we don't find an include directive, just comment out the code. 29172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 29182adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 29192adc0320Smrgam__include="#" 29202adc0320Smrgam__quote= 29212adc0320Smrg_am_result=none 29222adc0320Smrg# First try GNU make style include. 29232adc0320Smrgecho "include confinc" > confmf 29242adc0320Smrg# Ignore all kinds of additional output from `make'. 29252adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 29262adc0320Smrg*the\ am__doit\ target*) 29272adc0320Smrg am__include=include 29282adc0320Smrg am__quote= 29292adc0320Smrg _am_result=GNU 29302adc0320Smrg ;; 29312adc0320Smrgesac 29322adc0320Smrg# Now try BSD make style include. 29332adc0320Smrgif test "$am__include" = "#"; then 29342adc0320Smrg echo '.include "confinc"' > confmf 29352adc0320Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 29362adc0320Smrg *the\ am__doit\ target*) 29372adc0320Smrg am__include=.include 29382adc0320Smrg am__quote="\"" 29392adc0320Smrg _am_result=BSD 29402adc0320Smrg ;; 29412adc0320Smrg esac 29422adc0320Smrgfi 29432adc0320Smrg 29442adc0320Smrg 29452adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 29462adc0320Smrg$as_echo "$_am_result" >&6; } 29472adc0320Smrgrm -f confinc confmf 29482adc0320Smrg 29492adc0320Smrg# Check whether --enable-dependency-tracking was given. 29502adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then : 29512adc0320Smrg enableval=$enable_dependency_tracking; 29522adc0320Smrgfi 29537a0395d0Smrg 29542adc0320Smrgif test "x$enable_dependency_tracking" != xno; then 29552adc0320Smrg am_depcomp="$ac_aux_dir/depcomp" 29562adc0320Smrg AMDEPBACKSLASH='\' 29572adc0320Smrgfi 29582adc0320Smrg if test "x$enable_dependency_tracking" != xno; then 29592adc0320Smrg AMDEP_TRUE= 29602adc0320Smrg AMDEP_FALSE='#' 29612adc0320Smrgelse 29622adc0320Smrg AMDEP_TRUE='#' 29632adc0320Smrg AMDEP_FALSE= 29642adc0320Smrgfi 29657a0395d0Smrg 29667a0395d0Smrg 29677a0395d0Smrgac_ext=c 29687a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 29697a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29707a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29717a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 29727a0395d0Smrgif test -n "$ac_tool_prefix"; then 29737a0395d0Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 29747a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 29752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29767366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 29772adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 29787366012aSmrg $as_echo_n "(cached) " >&6 29797a0395d0Smrgelse 29807a0395d0Smrg if test -n "$CC"; then 29817a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29827a0395d0Smrgelse 29837a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29847a0395d0Smrgfor as_dir in $PATH 29857a0395d0Smrgdo 29867a0395d0Smrg IFS=$as_save_IFS 29877a0395d0Smrg test -z "$as_dir" && as_dir=. 29882adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29897a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29907a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 29912adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29927a0395d0Smrg break 2 29937a0395d0Smrg fi 29947a0395d0Smrgdone 29952adc0320Smrg done 29967a0395d0SmrgIFS=$as_save_IFS 29977a0395d0Smrg 29987a0395d0Smrgfi 29997a0395d0Smrgfi 30007a0395d0SmrgCC=$ac_cv_prog_CC 30017a0395d0Smrgif test -n "$CC"; then 30022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30037366012aSmrg$as_echo "$CC" >&6; } 30047a0395d0Smrgelse 30052adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30067366012aSmrg$as_echo "no" >&6; } 30077a0395d0Smrgfi 30087a0395d0Smrg 30097a0395d0Smrg 30107a0395d0Smrgfi 30117a0395d0Smrgif test -z "$ac_cv_prog_CC"; then 30127a0395d0Smrg ac_ct_CC=$CC 30137a0395d0Smrg # Extract the first word of "gcc", so it can be a program name with args. 30147a0395d0Smrgset dummy gcc; ac_word=$2 30152adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30167366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 30172adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 30187366012aSmrg $as_echo_n "(cached) " >&6 30197a0395d0Smrgelse 30207a0395d0Smrg if test -n "$ac_ct_CC"; then 30217a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30227a0395d0Smrgelse 30237a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30247a0395d0Smrgfor as_dir in $PATH 30257a0395d0Smrgdo 30267a0395d0Smrg IFS=$as_save_IFS 30277a0395d0Smrg test -z "$as_dir" && as_dir=. 30282adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30297a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30307a0395d0Smrg ac_cv_prog_ac_ct_CC="gcc" 30312adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30327a0395d0Smrg break 2 30337a0395d0Smrg fi 30347a0395d0Smrgdone 30352adc0320Smrg done 30367a0395d0SmrgIFS=$as_save_IFS 30377a0395d0Smrg 30387a0395d0Smrgfi 30397a0395d0Smrgfi 30407a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30417a0395d0Smrgif test -n "$ac_ct_CC"; then 30422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30437366012aSmrg$as_echo "$ac_ct_CC" >&6; } 30447a0395d0Smrgelse 30452adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30467366012aSmrg$as_echo "no" >&6; } 30477a0395d0Smrgfi 30487a0395d0Smrg 30497a0395d0Smrg if test "x$ac_ct_CC" = x; then 30507a0395d0Smrg CC="" 30517a0395d0Smrg else 30527a0395d0Smrg case $cross_compiling:$ac_tool_warned in 30537a0395d0Smrgyes:) 30542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30557366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30567a0395d0Smrgac_tool_warned=yes ;; 30577a0395d0Smrgesac 30587a0395d0Smrg CC=$ac_ct_CC 30597a0395d0Smrg fi 30607a0395d0Smrgelse 30617a0395d0Smrg CC="$ac_cv_prog_CC" 30627a0395d0Smrgfi 30637a0395d0Smrg 30647a0395d0Smrgif test -z "$CC"; then 30657a0395d0Smrg if test -n "$ac_tool_prefix"; then 30667a0395d0Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 30677a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 30682adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30697366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 30702adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 30717366012aSmrg $as_echo_n "(cached) " >&6 30727a0395d0Smrgelse 30737a0395d0Smrg if test -n "$CC"; then 30747a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30757a0395d0Smrgelse 30767a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30777a0395d0Smrgfor as_dir in $PATH 30787a0395d0Smrgdo 30797a0395d0Smrg IFS=$as_save_IFS 30807a0395d0Smrg test -z "$as_dir" && as_dir=. 30812adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30827a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30837a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 30842adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30857a0395d0Smrg break 2 30867a0395d0Smrg fi 30877a0395d0Smrgdone 30882adc0320Smrg done 30897a0395d0SmrgIFS=$as_save_IFS 30907a0395d0Smrg 30917a0395d0Smrgfi 30927a0395d0Smrgfi 30937a0395d0SmrgCC=$ac_cv_prog_CC 30947a0395d0Smrgif test -n "$CC"; then 30952adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30967366012aSmrg$as_echo "$CC" >&6; } 30977a0395d0Smrgelse 30982adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30997366012aSmrg$as_echo "no" >&6; } 31007a0395d0Smrgfi 31017a0395d0Smrg 31027a0395d0Smrg 31037a0395d0Smrg fi 31047a0395d0Smrgfi 31057a0395d0Smrgif test -z "$CC"; then 31067a0395d0Smrg # Extract the first word of "cc", so it can be a program name with args. 31077a0395d0Smrgset dummy cc; ac_word=$2 31082adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31097366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31102adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31117366012aSmrg $as_echo_n "(cached) " >&6 31127a0395d0Smrgelse 31137a0395d0Smrg if test -n "$CC"; then 31147a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 31157a0395d0Smrgelse 31167a0395d0Smrg ac_prog_rejected=no 31177a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31187a0395d0Smrgfor as_dir in $PATH 31197a0395d0Smrgdo 31207a0395d0Smrg IFS=$as_save_IFS 31217a0395d0Smrg test -z "$as_dir" && as_dir=. 31222adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31237a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31247a0395d0Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 31257a0395d0Smrg ac_prog_rejected=yes 31267a0395d0Smrg continue 31277a0395d0Smrg fi 31287a0395d0Smrg ac_cv_prog_CC="cc" 31292adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31307a0395d0Smrg break 2 31317a0395d0Smrg fi 31327a0395d0Smrgdone 31332adc0320Smrg done 31347a0395d0SmrgIFS=$as_save_IFS 31357a0395d0Smrg 31367a0395d0Smrgif test $ac_prog_rejected = yes; then 31377a0395d0Smrg # We found a bogon in the path, so make sure we never use it. 31387a0395d0Smrg set dummy $ac_cv_prog_CC 31397a0395d0Smrg shift 31407a0395d0Smrg if test $# != 0; then 31417a0395d0Smrg # We chose a different compiler from the bogus one. 31427a0395d0Smrg # However, it has the same basename, so the bogon will be chosen 31437a0395d0Smrg # first if we set CC to just the basename; use the full file name. 31447a0395d0Smrg shift 31457a0395d0Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 31467a0395d0Smrg fi 31477a0395d0Smrgfi 31487a0395d0Smrgfi 31497a0395d0Smrgfi 31507a0395d0SmrgCC=$ac_cv_prog_CC 31517a0395d0Smrgif test -n "$CC"; then 31522adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31537366012aSmrg$as_echo "$CC" >&6; } 31547a0395d0Smrgelse 31552adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31567366012aSmrg$as_echo "no" >&6; } 31577a0395d0Smrgfi 31587a0395d0Smrg 31597a0395d0Smrg 31607a0395d0Smrgfi 31617a0395d0Smrgif test -z "$CC"; then 31627a0395d0Smrg if test -n "$ac_tool_prefix"; then 31637a0395d0Smrg for ac_prog in cl.exe 31647a0395d0Smrg do 31657a0395d0Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31667a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 31672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31687366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31692adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31707366012aSmrg $as_echo_n "(cached) " >&6 31717a0395d0Smrgelse 31727a0395d0Smrg if test -n "$CC"; then 31737a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 31747a0395d0Smrgelse 31757a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31767a0395d0Smrgfor as_dir in $PATH 31777a0395d0Smrgdo 31787a0395d0Smrg IFS=$as_save_IFS 31797a0395d0Smrg test -z "$as_dir" && as_dir=. 31802adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31817a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31827a0395d0Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 31832adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31847a0395d0Smrg break 2 31857a0395d0Smrg fi 31867a0395d0Smrgdone 31872adc0320Smrg done 31887a0395d0SmrgIFS=$as_save_IFS 31897a0395d0Smrg 31907a0395d0Smrgfi 31917a0395d0Smrgfi 31927a0395d0SmrgCC=$ac_cv_prog_CC 31937a0395d0Smrgif test -n "$CC"; then 31942adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31957366012aSmrg$as_echo "$CC" >&6; } 31967a0395d0Smrgelse 31972adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31987366012aSmrg$as_echo "no" >&6; } 31997a0395d0Smrgfi 32007a0395d0Smrg 32017a0395d0Smrg 32027a0395d0Smrg test -n "$CC" && break 32037a0395d0Smrg done 32047a0395d0Smrgfi 32057a0395d0Smrgif test -z "$CC"; then 32067a0395d0Smrg ac_ct_CC=$CC 32077a0395d0Smrg for ac_prog in cl.exe 32087a0395d0Smrgdo 32097a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 32107a0395d0Smrgset dummy $ac_prog; ac_word=$2 32112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32127366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 32132adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 32147366012aSmrg $as_echo_n "(cached) " >&6 32157a0395d0Smrgelse 32167a0395d0Smrg if test -n "$ac_ct_CC"; then 32177a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 32187a0395d0Smrgelse 32197a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32207a0395d0Smrgfor as_dir in $PATH 32217a0395d0Smrgdo 32227a0395d0Smrg IFS=$as_save_IFS 32237a0395d0Smrg test -z "$as_dir" && as_dir=. 32242adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32257a0395d0Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 32267a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 32272adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32287a0395d0Smrg break 2 32297a0395d0Smrg fi 32307a0395d0Smrgdone 32312adc0320Smrg done 32327a0395d0SmrgIFS=$as_save_IFS 32337a0395d0Smrg 32347a0395d0Smrgfi 32357a0395d0Smrgfi 32367a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 32377a0395d0Smrgif test -n "$ac_ct_CC"; then 32382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 32397366012aSmrg$as_echo "$ac_ct_CC" >&6; } 32407a0395d0Smrgelse 32412adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32427366012aSmrg$as_echo "no" >&6; } 32437a0395d0Smrgfi 32447a0395d0Smrg 32457a0395d0Smrg 32467a0395d0Smrg test -n "$ac_ct_CC" && break 32477a0395d0Smrgdone 32487a0395d0Smrg 32497a0395d0Smrg if test "x$ac_ct_CC" = x; then 32507a0395d0Smrg CC="" 32517a0395d0Smrg else 32527a0395d0Smrg case $cross_compiling:$ac_tool_warned in 32537a0395d0Smrgyes:) 32542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32557366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32567a0395d0Smrgac_tool_warned=yes ;; 32577a0395d0Smrgesac 32587a0395d0Smrg CC=$ac_ct_CC 32597a0395d0Smrg fi 32607a0395d0Smrgfi 32617a0395d0Smrg 32627a0395d0Smrgfi 32637a0395d0Smrg 32647a0395d0Smrg 32652adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32667366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32672adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 32682adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 32697a0395d0Smrg 32707a0395d0Smrg# Provide some information about the compiler. 32712adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 32727366012aSmrgset X $ac_compile 32737366012aSmrgac_compiler=$2 32742adc0320Smrgfor ac_option in --version -v -V -qversion; do 32752adc0320Smrg { { ac_try="$ac_compiler $ac_option >&5" 32767a0395d0Smrgcase "(($ac_try" in 32777a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32787a0395d0Smrg *) ac_try_echo=$ac_try;; 32797a0395d0Smrgesac 32802adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32812adc0320Smrg$as_echo "$ac_try_echo"; } >&5 32822adc0320Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32837a0395d0Smrg ac_status=$? 32842adc0320Smrg if test -s conftest.err; then 32852adc0320Smrg sed '10a\ 32862adc0320Smrg... rest of stderr output deleted ... 32872adc0320Smrg 10q' conftest.err >conftest.er1 32882adc0320Smrg cat conftest.er1 >&5 32892adc0320Smrg fi 32902adc0320Smrg rm -f conftest.er1 conftest.err 32912adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32922adc0320Smrg test $ac_status = 0; } 32932adc0320Smrgdone 32947a0395d0Smrg 32952adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32967a0395d0Smrg/* end confdefs.h. */ 32977a0395d0Smrg 32987a0395d0Smrgint 32997a0395d0Smrgmain () 33007a0395d0Smrg{ 33017a0395d0Smrg 33027a0395d0Smrg ; 33037a0395d0Smrg return 0; 33047a0395d0Smrg} 33057a0395d0Smrg_ACEOF 33067a0395d0Smrgac_clean_files_save=$ac_clean_files 33077366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33087a0395d0Smrg# Try to create an executable without -o first, disregard a.out. 33097a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition 33107a0395d0Smrg# of exeext. 33112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33122adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 33137366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33147366012aSmrg 33157366012aSmrg# The possible output files: 33167366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33177366012aSmrg 33187a0395d0Smrgac_rmfiles= 33197a0395d0Smrgfor ac_file in $ac_files 33207a0395d0Smrgdo 33217a0395d0Smrg case $ac_file in 33227366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33237a0395d0Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33247a0395d0Smrg esac 33257a0395d0Smrgdone 33267a0395d0Smrgrm -f $ac_rmfiles 33277a0395d0Smrg 33282adc0320Smrgif { { ac_try="$ac_link_default" 33297a0395d0Smrgcase "(($ac_try" in 33307a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33317a0395d0Smrg *) ac_try_echo=$ac_try;; 33327a0395d0Smrgesac 33332adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33342adc0320Smrg$as_echo "$ac_try_echo"; } >&5 33357a0395d0Smrg (eval "$ac_link_default") 2>&5 33367a0395d0Smrg ac_status=$? 33372adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33382adc0320Smrg test $ac_status = 0; }; then : 33397a0395d0Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33407a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33417a0395d0Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 33427a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to 33437a0395d0Smrg# Autoconf. 33447a0395d0Smrgfor ac_file in $ac_files '' 33457a0395d0Smrgdo 33467a0395d0Smrg test -f "$ac_file" || continue 33477a0395d0Smrg case $ac_file in 33487366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33497a0395d0Smrg ;; 33507a0395d0Smrg [ab].out ) 33517a0395d0Smrg # We found the default executable, but exeext='' is most 33527a0395d0Smrg # certainly right. 33537a0395d0Smrg break;; 33547a0395d0Smrg *.* ) 33552adc0320Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33567a0395d0Smrg then :; else 33577a0395d0Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33587a0395d0Smrg fi 33597a0395d0Smrg # We set ac_cv_exeext here because the later test for it is not 33607a0395d0Smrg # safe: cross compilers may not add the suffix if given an `-o' 33617a0395d0Smrg # argument, so we may need to know it at that point already. 33627a0395d0Smrg # Even if this section looks crufty: it has the advantage of 33637a0395d0Smrg # actually working. 33647a0395d0Smrg break;; 33657a0395d0Smrg * ) 33667a0395d0Smrg break;; 33677a0395d0Smrg esac 33687a0395d0Smrgdone 33697a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 33707a0395d0Smrg 33717a0395d0Smrgelse 33727a0395d0Smrg ac_file='' 33737a0395d0Smrgfi 33742adc0320Smrgif test -z "$ac_file"; then : 33752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33762adc0320Smrg$as_echo "no" >&6; } 33772adc0320Smrg$as_echo "$as_me: failed program was:" >&5 33787a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 33797a0395d0Smrg 33802adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33817366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33822adc0320Smrgas_fn_error 77 "C compiler cannot create executables 33832adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 33842adc0320Smrgelse 33852adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33862adc0320Smrg$as_echo "yes" >&6; } 33877a0395d0Smrgfi 33882adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33892adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 33902adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33912adc0320Smrg$as_echo "$ac_file" >&6; } 33927a0395d0Smrgac_exeext=$ac_cv_exeext 33937a0395d0Smrg 33947366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33957a0395d0Smrgac_clean_files=$ac_clean_files_save 33962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33977366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; } 33982adc0320Smrgif { { ac_try="$ac_link" 33997a0395d0Smrgcase "(($ac_try" in 34007a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34017a0395d0Smrg *) ac_try_echo=$ac_try;; 34027a0395d0Smrgesac 34032adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34042adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34057a0395d0Smrg (eval "$ac_link") 2>&5 34067a0395d0Smrg ac_status=$? 34072adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34082adc0320Smrg test $ac_status = 0; }; then : 34097a0395d0Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 34107a0395d0Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34117a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 34127a0395d0Smrg# `rm'. 34137a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do 34147a0395d0Smrg test -f "$ac_file" || continue 34157a0395d0Smrg case $ac_file in 34167366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34177a0395d0Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34187a0395d0Smrg break;; 34197a0395d0Smrg * ) break;; 34207a0395d0Smrg esac 34217a0395d0Smrgdone 34227a0395d0Smrgelse 34232adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34247366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34252adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 34262adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 34277a0395d0Smrgfi 34282adc0320Smrgrm -f conftest conftest$ac_cv_exeext 34292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34307366012aSmrg$as_echo "$ac_cv_exeext" >&6; } 34317a0395d0Smrg 34327a0395d0Smrgrm -f conftest.$ac_ext 34337a0395d0SmrgEXEEXT=$ac_cv_exeext 34347a0395d0Smrgac_exeext=$EXEEXT 34352adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34362adc0320Smrg/* end confdefs.h. */ 34372adc0320Smrg#include <stdio.h> 34382adc0320Smrgint 34392adc0320Smrgmain () 34402adc0320Smrg{ 34412adc0320SmrgFILE *f = fopen ("conftest.out", "w"); 34422adc0320Smrg return ferror (f) || fclose (f) != 0; 34432adc0320Smrg 34442adc0320Smrg ; 34452adc0320Smrg return 0; 34462adc0320Smrg} 34472adc0320Smrg_ACEOF 34482adc0320Smrgac_clean_files="$ac_clean_files conftest.out" 34492adc0320Smrg# Check that the compiler produces executables we can run. If not, either 34502adc0320Smrg# the compiler is broken, or we cross compile. 34512adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34522adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 34532adc0320Smrgif test "$cross_compiling" != yes; then 34542adc0320Smrg { { ac_try="$ac_link" 34552adc0320Smrgcase "(($ac_try" in 34562adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34572adc0320Smrg *) ac_try_echo=$ac_try;; 34582adc0320Smrgesac 34592adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34602adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34612adc0320Smrg (eval "$ac_link") 2>&5 34622adc0320Smrg ac_status=$? 34632adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34642adc0320Smrg test $ac_status = 0; } 34652adc0320Smrg if { ac_try='./conftest$ac_cv_exeext' 34662adc0320Smrg { { case "(($ac_try" in 34672adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34682adc0320Smrg *) ac_try_echo=$ac_try;; 34692adc0320Smrgesac 34702adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34712adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34722adc0320Smrg (eval "$ac_try") 2>&5 34732adc0320Smrg ac_status=$? 34742adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34752adc0320Smrg test $ac_status = 0; }; }; then 34762adc0320Smrg cross_compiling=no 34772adc0320Smrg else 34782adc0320Smrg if test "$cross_compiling" = maybe; then 34792adc0320Smrg cross_compiling=yes 34802adc0320Smrg else 34812adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34822adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34832adc0320Smrgas_fn_error $? "cannot run C compiled programs. 34842adc0320SmrgIf you meant to cross compile, use \`--host'. 34852adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 34862adc0320Smrg fi 34872adc0320Smrg fi 34882adc0320Smrgfi 34892adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34902adc0320Smrg$as_echo "$cross_compiling" >&6; } 34912adc0320Smrg 34922adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34932adc0320Smrgac_clean_files=$ac_clean_files_save 34942adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34957366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; } 34962adc0320Smrgif ${ac_cv_objext+:} false; then : 34977366012aSmrg $as_echo_n "(cached) " >&6 34987a0395d0Smrgelse 34992adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35007a0395d0Smrg/* end confdefs.h. */ 35017a0395d0Smrg 35027a0395d0Smrgint 35037a0395d0Smrgmain () 35047a0395d0Smrg{ 35057a0395d0Smrg 35067a0395d0Smrg ; 35077a0395d0Smrg return 0; 35087a0395d0Smrg} 35097a0395d0Smrg_ACEOF 35107a0395d0Smrgrm -f conftest.o conftest.obj 35112adc0320Smrgif { { ac_try="$ac_compile" 35127a0395d0Smrgcase "(($ac_try" in 35137a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35147a0395d0Smrg *) ac_try_echo=$ac_try;; 35157a0395d0Smrgesac 35162adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35172adc0320Smrg$as_echo "$ac_try_echo"; } >&5 35187a0395d0Smrg (eval "$ac_compile") 2>&5 35197a0395d0Smrg ac_status=$? 35202adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35212adc0320Smrg test $ac_status = 0; }; then : 35227a0395d0Smrg for ac_file in conftest.o conftest.obj conftest.*; do 35237a0395d0Smrg test -f "$ac_file" || continue; 35247a0395d0Smrg case $ac_file in 35257366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 35267a0395d0Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 35277a0395d0Smrg break;; 35287a0395d0Smrg esac 35297a0395d0Smrgdone 35307a0395d0Smrgelse 35317366012aSmrg $as_echo "$as_me: failed program was:" >&5 35327a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 35337a0395d0Smrg 35342adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35357366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35362adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 35372adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 35387a0395d0Smrgfi 35397a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 35407a0395d0Smrgfi 35412adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 35427366012aSmrg$as_echo "$ac_cv_objext" >&6; } 35437a0395d0SmrgOBJEXT=$ac_cv_objext 35447a0395d0Smrgac_objext=$OBJEXT 35452adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35467366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35472adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 35487366012aSmrg $as_echo_n "(cached) " >&6 35497a0395d0Smrgelse 35502adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35517a0395d0Smrg/* end confdefs.h. */ 35527a0395d0Smrg 35537a0395d0Smrgint 35547a0395d0Smrgmain () 35557a0395d0Smrg{ 35567a0395d0Smrg#ifndef __GNUC__ 35577a0395d0Smrg choke me 35587a0395d0Smrg#endif 35597a0395d0Smrg 35607a0395d0Smrg ; 35617a0395d0Smrg return 0; 35627a0395d0Smrg} 35637a0395d0Smrg_ACEOF 35642adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 35657a0395d0Smrg ac_compiler_gnu=yes 35667a0395d0Smrgelse 35672adc0320Smrg ac_compiler_gnu=no 35687a0395d0Smrgfi 35697a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35707a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 35717a0395d0Smrg 35727a0395d0Smrgfi 35732adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35747366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 35757366012aSmrgif test $ac_compiler_gnu = yes; then 35767366012aSmrg GCC=yes 35777366012aSmrgelse 35787366012aSmrg GCC= 35797366012aSmrgfi 35807a0395d0Smrgac_test_CFLAGS=${CFLAGS+set} 35817a0395d0Smrgac_save_CFLAGS=$CFLAGS 35822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35837366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 35842adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then : 35857366012aSmrg $as_echo_n "(cached) " >&6 35867a0395d0Smrgelse 35877a0395d0Smrg ac_save_c_werror_flag=$ac_c_werror_flag 35887a0395d0Smrg ac_c_werror_flag=yes 35897a0395d0Smrg ac_cv_prog_cc_g=no 35907a0395d0Smrg CFLAGS="-g" 35912adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35927a0395d0Smrg/* end confdefs.h. */ 35937a0395d0Smrg 35947a0395d0Smrgint 35957a0395d0Smrgmain () 35967a0395d0Smrg{ 35977a0395d0Smrg 35987a0395d0Smrg ; 35997a0395d0Smrg return 0; 36007a0395d0Smrg} 36017a0395d0Smrg_ACEOF 36022adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36037a0395d0Smrg ac_cv_prog_cc_g=yes 36047a0395d0Smrgelse 36052adc0320Smrg CFLAGS="" 36062adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36077a0395d0Smrg/* end confdefs.h. */ 36087a0395d0Smrg 36097a0395d0Smrgint 36107a0395d0Smrgmain () 36117a0395d0Smrg{ 36127a0395d0Smrg 36137a0395d0Smrg ; 36147a0395d0Smrg return 0; 36157a0395d0Smrg} 36167a0395d0Smrg_ACEOF 36172adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36187a0395d0Smrg 36192adc0320Smrgelse 36202adc0320Smrg ac_c_werror_flag=$ac_save_c_werror_flag 36217a0395d0Smrg CFLAGS="-g" 36222adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36237a0395d0Smrg/* end confdefs.h. */ 36247a0395d0Smrg 36252adc0320Smrgint 36262adc0320Smrgmain () 36272adc0320Smrg{ 36287a0395d0Smrg 36292adc0320Smrg ; 36302adc0320Smrg return 0; 36312adc0320Smrg} 36322adc0320Smrg_ACEOF 36332adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36342adc0320Smrg ac_cv_prog_cc_g=yes 36357a0395d0Smrgfi 36367a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36377a0395d0Smrgfi 36387a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36397a0395d0Smrgfi 36407a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36417a0395d0Smrg ac_c_werror_flag=$ac_save_c_werror_flag 36427a0395d0Smrgfi 36432adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 36447366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 36457a0395d0Smrgif test "$ac_test_CFLAGS" = set; then 36467a0395d0Smrg CFLAGS=$ac_save_CFLAGS 36477a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then 36487a0395d0Smrg if test "$GCC" = yes; then 36497a0395d0Smrg CFLAGS="-g -O2" 36507a0395d0Smrg else 36517a0395d0Smrg CFLAGS="-g" 36527a0395d0Smrg fi 36537a0395d0Smrgelse 36547a0395d0Smrg if test "$GCC" = yes; then 36557a0395d0Smrg CFLAGS="-O2" 36567a0395d0Smrg else 36577a0395d0Smrg CFLAGS= 36587a0395d0Smrg fi 36597a0395d0Smrgfi 36602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 36617366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 36622adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then : 36637366012aSmrg $as_echo_n "(cached) " >&6 36647a0395d0Smrgelse 36657a0395d0Smrg ac_cv_prog_cc_c89=no 36667a0395d0Smrgac_save_CC=$CC 36672adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36687a0395d0Smrg/* end confdefs.h. */ 36697a0395d0Smrg#include <stdarg.h> 36707a0395d0Smrg#include <stdio.h> 36717a0395d0Smrg#include <sys/types.h> 36727a0395d0Smrg#include <sys/stat.h> 36737a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 36747a0395d0Smrgstruct buf { int x; }; 36757a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 36767a0395d0Smrgstatic char *e (p, i) 36777a0395d0Smrg char **p; 36787a0395d0Smrg int i; 36797a0395d0Smrg{ 36807a0395d0Smrg return p[i]; 36817a0395d0Smrg} 36827a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 36837a0395d0Smrg{ 36847a0395d0Smrg char *s; 36857a0395d0Smrg va_list v; 36867a0395d0Smrg va_start (v,p); 36877a0395d0Smrg s = g (p, va_arg (v,int)); 36887a0395d0Smrg va_end (v); 36897a0395d0Smrg return s; 36907a0395d0Smrg} 36917a0395d0Smrg 36927a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 36937a0395d0Smrg function prototypes and stuff, but not '\xHH' hex character constants. 36947a0395d0Smrg These don't provoke an error unfortunately, instead are silently treated 36957a0395d0Smrg as 'x'. The following induces an error, until -std is added to get 36967a0395d0Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 36977a0395d0Smrg array size at least. It's necessary to write '\x00'==0 to get something 36987a0395d0Smrg that's true only with -std. */ 36997a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 37007a0395d0Smrg 37017a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 37027a0395d0Smrg inside strings and character constants. */ 37037a0395d0Smrg#define FOO(x) 'x' 37047a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 37057a0395d0Smrg 37067a0395d0Smrgint test (int i, double x); 37077a0395d0Smrgstruct s1 {int (*f) (int a);}; 37087a0395d0Smrgstruct s2 {int (*f) (double a);}; 37097a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 37107a0395d0Smrgint argc; 37117a0395d0Smrgchar **argv; 37127a0395d0Smrgint 37137a0395d0Smrgmain () 37147a0395d0Smrg{ 37157a0395d0Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 37167a0395d0Smrg ; 37177a0395d0Smrg return 0; 37187a0395d0Smrg} 37197a0395d0Smrg_ACEOF 37207a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 37217a0395d0Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 37227a0395d0Smrgdo 37237a0395d0Smrg CC="$ac_save_CC $ac_arg" 37242adc0320Smrg if ac_fn_c_try_compile "$LINENO"; then : 37257a0395d0Smrg ac_cv_prog_cc_c89=$ac_arg 37267a0395d0Smrgfi 37277a0395d0Smrgrm -f core conftest.err conftest.$ac_objext 37287a0395d0Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 37297a0395d0Smrgdone 37307a0395d0Smrgrm -f conftest.$ac_ext 37317a0395d0SmrgCC=$ac_save_CC 37327a0395d0Smrg 37337a0395d0Smrgfi 37347a0395d0Smrg# AC_CACHE_VAL 37357a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in 37367a0395d0Smrg x) 37372adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 37387366012aSmrg$as_echo "none needed" >&6; } ;; 37397a0395d0Smrg xno) 37402adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 37417366012aSmrg$as_echo "unsupported" >&6; } ;; 37427a0395d0Smrg *) 37437a0395d0Smrg CC="$CC $ac_cv_prog_cc_c89" 37442adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 37457366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 37467a0395d0Smrgesac 37472adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 37487a0395d0Smrg 37492adc0320Smrgfi 37507a0395d0Smrg 37517a0395d0Smrgac_ext=c 37527a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 37537a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37547a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37557a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 37567a0395d0Smrg 37577a0395d0Smrgdepcc="$CC" am_compiler_list= 37587a0395d0Smrg 37592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 37607366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 37612adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 37627366012aSmrg $as_echo_n "(cached) " >&6 37637a0395d0Smrgelse 37647a0395d0Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 37657a0395d0Smrg # We make a subdir and do the tests there. Otherwise we can end up 37667a0395d0Smrg # making bogus files that we don't know about and never remove. For 37677a0395d0Smrg # instance it was reported that on HP-UX the gcc test will end up 37687a0395d0Smrg # making a dummy file named `D' -- because `-MD' means `put the output 37697a0395d0Smrg # in D'. 37707a0395d0Smrg mkdir conftest.dir 37717a0395d0Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 37727a0395d0Smrg # using a relative directory. 37737a0395d0Smrg cp "$am_depcomp" conftest.dir 37747a0395d0Smrg cd conftest.dir 37757a0395d0Smrg # We will build objects and dependencies in a subdirectory because 37767a0395d0Smrg # it helps to detect inapplicable dependency modes. For instance 37777a0395d0Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 37787a0395d0Smrg # side effect of compilation, but ICC will put the dependencies in 37797a0395d0Smrg # the current directory while Tru64 will put them in the object 37807a0395d0Smrg # directory. 37817a0395d0Smrg mkdir sub 37827a0395d0Smrg 37837a0395d0Smrg am_cv_CC_dependencies_compiler_type=none 37847a0395d0Smrg if test "$am_compiler_list" = ""; then 37857a0395d0Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 37867a0395d0Smrg fi 37877366012aSmrg am__universal=false 37887366012aSmrg case " $depcc " in #( 37897366012aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 37907366012aSmrg esac 37917366012aSmrg 37927a0395d0Smrg for depmode in $am_compiler_list; do 37937a0395d0Smrg # Setup a source with many dependencies, because some compilers 37947a0395d0Smrg # like to wrap large dependency lists on column 80 (with \), and 37957a0395d0Smrg # we should not choose a depcomp mode which is confused by this. 37967a0395d0Smrg # 37977a0395d0Smrg # We need to recreate these files for each test, as the compiler may 37987a0395d0Smrg # overwrite some of them when testing with obscure command lines. 37997a0395d0Smrg # This happens at least with the AIX C compiler. 38007a0395d0Smrg : > sub/conftest.c 38017a0395d0Smrg for i in 1 2 3 4 5 6; do 38027a0395d0Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 38037a0395d0Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 38047a0395d0Smrg # Solaris 8's {/usr,}/bin/sh. 38057a0395d0Smrg touch sub/conftst$i.h 38067a0395d0Smrg done 38077a0395d0Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 38087a0395d0Smrg 38092adc0320Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 38102adc0320Smrg # mode. It turns out that the SunPro C++ compiler does not properly 38112adc0320Smrg # handle `-M -o', and we need to detect this. Also, some Intel 38122adc0320Smrg # versions had trouble with output in subdirs 38132adc0320Smrg am__obj=sub/conftest.${OBJEXT-o} 38142adc0320Smrg am__minus_obj="-o $am__obj" 38152adc0320Smrg case $depmode in 38162adc0320Smrg gcc) 38172adc0320Smrg # This depmode causes a compiler race in universal mode. 38182adc0320Smrg test "$am__universal" = false || continue 38192adc0320Smrg ;; 38202adc0320Smrg nosideeffect) 38212adc0320Smrg # after this tag, mechanisms are not by side-effect, so they'll 38222adc0320Smrg # only be used when explicitly requested 38232adc0320Smrg if test "x$enable_dependency_tracking" = xyes; then 38242adc0320Smrg continue 38252adc0320Smrg else 38262adc0320Smrg break 38272adc0320Smrg fi 38282adc0320Smrg ;; 38292adc0320Smrg msvisualcpp | msvcmsys) 38302adc0320Smrg # This compiler won't grok `-c -o', but also, the minuso test has 38312adc0320Smrg # not run yet. These depmodes are late enough in the game, and 38322adc0320Smrg # so weak that their functioning should not be impacted. 38332adc0320Smrg am__obj=conftest.${OBJEXT-o} 38342adc0320Smrg am__minus_obj= 38352adc0320Smrg ;; 38362adc0320Smrg none) break ;; 38372adc0320Smrg esac 38382adc0320Smrg if depmode=$depmode \ 38392adc0320Smrg source=sub/conftest.c object=$am__obj \ 38402adc0320Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 38412adc0320Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 38422adc0320Smrg >/dev/null 2>conftest.err && 38432adc0320Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 38442adc0320Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 38452adc0320Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 38462adc0320Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 38472adc0320Smrg # icc doesn't choke on unknown options, it will just issue warnings 38482adc0320Smrg # or remarks (even with -Werror). So we grep stderr for any message 38492adc0320Smrg # that says an option was ignored or not supported. 38502adc0320Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 38512adc0320Smrg # icc: Command line warning: ignoring option '-M'; no argument required 38522adc0320Smrg # The diagnosis changed in icc 8.0: 38532adc0320Smrg # icc: Command line remark: option '-MP' not supported 38542adc0320Smrg if (grep 'ignoring option' conftest.err || 38552adc0320Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 38562adc0320Smrg am_cv_CC_dependencies_compiler_type=$depmode 38572adc0320Smrg break 38582adc0320Smrg fi 38592adc0320Smrg fi 38602adc0320Smrg done 38612adc0320Smrg 38622adc0320Smrg cd .. 38632adc0320Smrg rm -rf conftest.dir 38642adc0320Smrgelse 38652adc0320Smrg am_cv_CC_dependencies_compiler_type=none 38662adc0320Smrgfi 38672adc0320Smrg 38682adc0320Smrgfi 38692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 38702adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 38712adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 38722adc0320Smrg 38732adc0320Smrg if 38742adc0320Smrg test "x$enable_dependency_tracking" != xno \ 38752adc0320Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 38762adc0320Smrg am__fastdepCC_TRUE= 38772adc0320Smrg am__fastdepCC_FALSE='#' 38782adc0320Smrgelse 38792adc0320Smrg am__fastdepCC_TRUE='#' 38802adc0320Smrg am__fastdepCC_FALSE= 38812adc0320Smrgfi 38822adc0320Smrg 38832adc0320Smrg 38842adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 38852adc0320Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 38862adc0320Smrgif ${ac_cv_prog_cc_c99+:} false; then : 38872adc0320Smrg $as_echo_n "(cached) " >&6 38882adc0320Smrgelse 38892adc0320Smrg ac_cv_prog_cc_c99=no 38902adc0320Smrgac_save_CC=$CC 38912adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 38922adc0320Smrg/* end confdefs.h. */ 38932adc0320Smrg#include <stdarg.h> 38942adc0320Smrg#include <stdbool.h> 38952adc0320Smrg#include <stdlib.h> 38962adc0320Smrg#include <wchar.h> 38972adc0320Smrg#include <stdio.h> 38982adc0320Smrg 38992adc0320Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 39002adc0320Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 39012adc0320Smrg#define showlist(...) puts (#__VA_ARGS__) 39022adc0320Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 39032adc0320Smrgstatic void 39042adc0320Smrgtest_varargs_macros (void) 39052adc0320Smrg{ 39062adc0320Smrg int x = 1234; 39072adc0320Smrg int y = 5678; 39082adc0320Smrg debug ("Flag"); 39092adc0320Smrg debug ("X = %d\n", x); 39102adc0320Smrg showlist (The first, second, and third items.); 39112adc0320Smrg report (x>y, "x is %d but y is %d", x, y); 39122adc0320Smrg} 39132adc0320Smrg 39142adc0320Smrg// Check long long types. 39152adc0320Smrg#define BIG64 18446744073709551615ull 39162adc0320Smrg#define BIG32 4294967295ul 39172adc0320Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 39182adc0320Smrg#if !BIG_OK 39192adc0320Smrg your preprocessor is broken; 39202adc0320Smrg#endif 39212adc0320Smrg#if BIG_OK 39222adc0320Smrg#else 39232adc0320Smrg your preprocessor is broken; 39242adc0320Smrg#endif 39252adc0320Smrgstatic long long int bignum = -9223372036854775807LL; 39262adc0320Smrgstatic unsigned long long int ubignum = BIG64; 39272adc0320Smrg 39282adc0320Smrgstruct incomplete_array 39292adc0320Smrg{ 39302adc0320Smrg int datasize; 39312adc0320Smrg double data[]; 39322adc0320Smrg}; 39332adc0320Smrg 39342adc0320Smrgstruct named_init { 39352adc0320Smrg int number; 39362adc0320Smrg const wchar_t *name; 39372adc0320Smrg double average; 39382adc0320Smrg}; 39392adc0320Smrg 39402adc0320Smrgtypedef const char *ccp; 39412adc0320Smrg 39422adc0320Smrgstatic inline int 39432adc0320Smrgtest_restrict (ccp restrict text) 39442adc0320Smrg{ 39452adc0320Smrg // See if C++-style comments work. 39462adc0320Smrg // Iterate through items via the restricted pointer. 39472adc0320Smrg // Also check for declarations in for loops. 39482adc0320Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 39492adc0320Smrg continue; 39502adc0320Smrg return 0; 39512adc0320Smrg} 39522adc0320Smrg 39532adc0320Smrg// Check varargs and va_copy. 39542adc0320Smrgstatic void 39552adc0320Smrgtest_varargs (const char *format, ...) 39562adc0320Smrg{ 39572adc0320Smrg va_list args; 39582adc0320Smrg va_start (args, format); 39592adc0320Smrg va_list args_copy; 39602adc0320Smrg va_copy (args_copy, args); 39612adc0320Smrg 39622adc0320Smrg const char *str; 39632adc0320Smrg int number; 39642adc0320Smrg float fnumber; 39652adc0320Smrg 39662adc0320Smrg while (*format) 39672adc0320Smrg { 39682adc0320Smrg switch (*format++) 39692adc0320Smrg { 39702adc0320Smrg case 's': // string 39712adc0320Smrg str = va_arg (args_copy, const char *); 39722adc0320Smrg break; 39732adc0320Smrg case 'd': // int 39742adc0320Smrg number = va_arg (args_copy, int); 39752adc0320Smrg break; 39762adc0320Smrg case 'f': // float 39772adc0320Smrg fnumber = va_arg (args_copy, double); 39782adc0320Smrg break; 39792adc0320Smrg default: 39802adc0320Smrg break; 39812adc0320Smrg } 39822adc0320Smrg } 39832adc0320Smrg va_end (args_copy); 39842adc0320Smrg va_end (args); 39852adc0320Smrg} 39862adc0320Smrg 39872adc0320Smrgint 39882adc0320Smrgmain () 39892adc0320Smrg{ 39907a0395d0Smrg 39912adc0320Smrg // Check bool. 39922adc0320Smrg _Bool success = false; 39937a0395d0Smrg 39942adc0320Smrg // Check restrict. 39952adc0320Smrg if (test_restrict ("String literal") == 0) 39962adc0320Smrg success = true; 39972adc0320Smrg char *restrict newvar = "Another string"; 39987a0395d0Smrg 39992adc0320Smrg // Check varargs. 40002adc0320Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 40012adc0320Smrg test_varargs_macros (); 40027a0395d0Smrg 40032adc0320Smrg // Check flexible array members. 40042adc0320Smrg struct incomplete_array *ia = 40052adc0320Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 40062adc0320Smrg ia->datasize = 10; 40072adc0320Smrg for (int i = 0; i < ia->datasize; ++i) 40082adc0320Smrg ia->data[i] = i * 1.234; 40097a0395d0Smrg 40102adc0320Smrg // Check named initializers. 40112adc0320Smrg struct named_init ni = { 40122adc0320Smrg .number = 34, 40132adc0320Smrg .name = L"Test wide string", 40142adc0320Smrg .average = 543.34343, 40152adc0320Smrg }; 40167366012aSmrg 40172adc0320Smrg ni.number = 58; 40187a0395d0Smrg 40192adc0320Smrg int dynamic_array[ni.number]; 40202adc0320Smrg dynamic_array[ni.number - 1] = 543; 40217a0395d0Smrg 40222adc0320Smrg // work around unused variable warnings 40232adc0320Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 40242adc0320Smrg || dynamic_array[ni.number - 1] != 543); 40257a0395d0Smrg 40262adc0320Smrg ; 40272adc0320Smrg return 0; 40282adc0320Smrg} 40292adc0320Smrg_ACEOF 40302adc0320Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 40312adc0320Smrgdo 40322adc0320Smrg CC="$ac_save_CC $ac_arg" 40332adc0320Smrg if ac_fn_c_try_compile "$LINENO"; then : 40342adc0320Smrg ac_cv_prog_cc_c99=$ac_arg 40352adc0320Smrgfi 40362adc0320Smrgrm -f core conftest.err conftest.$ac_objext 40372adc0320Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 40382adc0320Smrgdone 40392adc0320Smrgrm -f conftest.$ac_ext 40402adc0320SmrgCC=$ac_save_CC 40417a0395d0Smrg 40422adc0320Smrgfi 40432adc0320Smrg# AC_CACHE_VAL 40442adc0320Smrgcase "x$ac_cv_prog_cc_c99" in 40452adc0320Smrg x) 40462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 40472adc0320Smrg$as_echo "none needed" >&6; } ;; 40482adc0320Smrg xno) 40492adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 40502adc0320Smrg$as_echo "unsupported" >&6; } ;; 40512adc0320Smrg *) 40522adc0320Smrg CC="$CC $ac_cv_prog_cc_c99" 40532adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 40542adc0320Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 40552adc0320Smrgesac 40562adc0320Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 40577a0395d0Smrg 40582adc0320Smrgfi 40597a0395d0Smrg 40607a0395d0Smrg 40617a0395d0Smrg 40627366012aSmrgac_ext=c 40637366012aSmrgac_cpp='$CPP $CPPFLAGS' 40647366012aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40657366012aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40667366012aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 40687366012aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 40697366012aSmrg# On Suns, sometimes $CPP names a directory. 40707366012aSmrgif test -n "$CPP" && test -d "$CPP"; then 40717366012aSmrg CPP= 40727366012aSmrgfi 40737366012aSmrgif test -z "$CPP"; then 40742adc0320Smrg if ${ac_cv_prog_CPP+:} false; then : 40757366012aSmrg $as_echo_n "(cached) " >&6 40767a0395d0Smrgelse 40777366012aSmrg # Double quotes because CPP needs to be expanded 40787366012aSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 40797366012aSmrg do 40807366012aSmrg ac_preproc_ok=false 40817366012aSmrgfor ac_c_preproc_warn_flag in '' yes 40827366012aSmrgdo 40837366012aSmrg # Use a header file that comes with gcc, so configuring glibc 40847366012aSmrg # with a fresh cross-compiler works. 40857366012aSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 40867366012aSmrg # <limits.h> exists even on freestanding compilers. 40877366012aSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 40887366012aSmrg # not just through cpp. "Syntax error" is here to catch this case. 40892adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40907a0395d0Smrg/* end confdefs.h. */ 40917a0395d0Smrg#ifdef __STDC__ 40927a0395d0Smrg# include <limits.h> 40937a0395d0Smrg#else 40947a0395d0Smrg# include <assert.h> 40957a0395d0Smrg#endif 40967a0395d0Smrg Syntax error 40977a0395d0Smrg_ACEOF 40982adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 40997a0395d0Smrg 41002adc0320Smrgelse 41017a0395d0Smrg # Broken: fails on valid input. 41027a0395d0Smrgcontinue 41037a0395d0Smrgfi 41042adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41057a0395d0Smrg 41067a0395d0Smrg # OK, works on sane cases. Now check whether nonexistent headers 41077a0395d0Smrg # can be detected and how. 41082adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41097a0395d0Smrg/* end confdefs.h. */ 41107a0395d0Smrg#include <ac_nonexistent.h> 41117a0395d0Smrg_ACEOF 41122adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41137a0395d0Smrg # Broken: success on invalid input. 41147a0395d0Smrgcontinue 41157a0395d0Smrgelse 41167a0395d0Smrg # Passes both tests. 41177a0395d0Smrgac_preproc_ok=: 41187a0395d0Smrgbreak 41197a0395d0Smrgfi 41202adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41217a0395d0Smrg 41227a0395d0Smrgdone 41237a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41242adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41252adc0320Smrgif $ac_preproc_ok; then : 41267a0395d0Smrg break 41277a0395d0Smrgfi 41287a0395d0Smrg 41297a0395d0Smrg done 41307a0395d0Smrg ac_cv_prog_CPP=$CPP 41317a0395d0Smrg 41327a0395d0Smrgfi 41337a0395d0Smrg CPP=$ac_cv_prog_CPP 41347a0395d0Smrgelse 41357a0395d0Smrg ac_cv_prog_CPP=$CPP 41367a0395d0Smrgfi 41372adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 41387366012aSmrg$as_echo "$CPP" >&6; } 41397a0395d0Smrgac_preproc_ok=false 41407a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes 41417a0395d0Smrgdo 41427a0395d0Smrg # Use a header file that comes with gcc, so configuring glibc 41437a0395d0Smrg # with a fresh cross-compiler works. 41447a0395d0Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 41457a0395d0Smrg # <limits.h> exists even on freestanding compilers. 41462adc0320Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 41472adc0320Smrg # not just through cpp. "Syntax error" is here to catch this case. 41482adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41492adc0320Smrg/* end confdefs.h. */ 41502adc0320Smrg#ifdef __STDC__ 41512adc0320Smrg# include <limits.h> 41522adc0320Smrg#else 41532adc0320Smrg# include <assert.h> 41542adc0320Smrg#endif 41552adc0320Smrg Syntax error 41562adc0320Smrg_ACEOF 41572adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41587a0395d0Smrg 41592adc0320Smrgelse 41607a0395d0Smrg # Broken: fails on valid input. 41617a0395d0Smrgcontinue 41627a0395d0Smrgfi 41632adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41647a0395d0Smrg 41657a0395d0Smrg # OK, works on sane cases. Now check whether nonexistent headers 41667a0395d0Smrg # can be detected and how. 41672adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41687a0395d0Smrg/* end confdefs.h. */ 41697a0395d0Smrg#include <ac_nonexistent.h> 41707a0395d0Smrg_ACEOF 41712adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41727a0395d0Smrg # Broken: success on invalid input. 41737a0395d0Smrgcontinue 41747a0395d0Smrgelse 41757a0395d0Smrg # Passes both tests. 41767a0395d0Smrgac_preproc_ok=: 41777a0395d0Smrgbreak 41787a0395d0Smrgfi 41792adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41807a0395d0Smrg 41817a0395d0Smrgdone 41827a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41832adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41842adc0320Smrgif $ac_preproc_ok; then : 41852adc0320Smrg 41867a0395d0Smrgelse 41872adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41887366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41892adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 41902adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 41917a0395d0Smrgfi 41927a0395d0Smrg 41937a0395d0Smrgac_ext=c 41947a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 41957a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41967a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41977a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41987a0395d0Smrg 41997a0395d0Smrg 42002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 42017366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 42022adc0320Smrgif ${ac_cv_path_GREP+:} false; then : 42037366012aSmrg $as_echo_n "(cached) " >&6 42047a0395d0Smrgelse 42057366012aSmrg if test -z "$GREP"; then 42067a0395d0Smrg ac_path_GREP_found=false 42077366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42087366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42097a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42107a0395d0Smrgdo 42117a0395d0Smrg IFS=$as_save_IFS 42127a0395d0Smrg test -z "$as_dir" && as_dir=. 42132adc0320Smrg for ac_prog in grep ggrep; do 42147366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42157366012aSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 42167366012aSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 42177366012aSmrg# Check for GNU ac_path_GREP and select it if it is found. 42187a0395d0Smrg # Check for GNU $ac_path_GREP 42197a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in 42207a0395d0Smrg*GNU*) 42217a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 42227a0395d0Smrg*) 42237a0395d0Smrg ac_count=0 42247366012aSmrg $as_echo_n 0123456789 >"conftest.in" 42257a0395d0Smrg while : 42267a0395d0Smrg do 42277a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42287a0395d0Smrg mv "conftest.tmp" "conftest.in" 42297a0395d0Smrg cp "conftest.in" "conftest.nl" 42307366012aSmrg $as_echo 'GREP' >> "conftest.nl" 42317a0395d0Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42327a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42332adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42347a0395d0Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 42357a0395d0Smrg # Best one so far, save it but keep looking for a better one 42367a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" 42377a0395d0Smrg ac_path_GREP_max=$ac_count 42387a0395d0Smrg fi 42397a0395d0Smrg # 10*(2^10) chars as input seems more than enough 42407a0395d0Smrg test $ac_count -gt 10 && break 42417a0395d0Smrg done 42427a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 42437a0395d0Smrgesac 42447a0395d0Smrg 42457366012aSmrg $ac_path_GREP_found && break 3 42467366012aSmrg done 42477a0395d0Smrg done 42482adc0320Smrg done 42497a0395d0SmrgIFS=$as_save_IFS 42507366012aSmrg if test -z "$ac_cv_path_GREP"; then 42512adc0320Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42527366012aSmrg fi 42537a0395d0Smrgelse 42547a0395d0Smrg ac_cv_path_GREP=$GREP 42557a0395d0Smrgfi 42567a0395d0Smrg 42577a0395d0Smrgfi 42582adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 42597366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; } 42607a0395d0Smrg GREP="$ac_cv_path_GREP" 42617a0395d0Smrg 42627a0395d0Smrg 42632adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 42647366012aSmrg$as_echo_n "checking for egrep... " >&6; } 42652adc0320Smrgif ${ac_cv_path_EGREP+:} false; then : 42667366012aSmrg $as_echo_n "(cached) " >&6 42677a0395d0Smrgelse 42687a0395d0Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 42697a0395d0Smrg then ac_cv_path_EGREP="$GREP -E" 42707a0395d0Smrg else 42717366012aSmrg if test -z "$EGREP"; then 42727a0395d0Smrg ac_path_EGREP_found=false 42737366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42747366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42757a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42767a0395d0Smrgdo 42777a0395d0Smrg IFS=$as_save_IFS 42787a0395d0Smrg test -z "$as_dir" && as_dir=. 42792adc0320Smrg for ac_prog in egrep; do 42807366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42817366012aSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 42827366012aSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 42837366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found. 42847a0395d0Smrg # Check for GNU $ac_path_EGREP 42857a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in 42867a0395d0Smrg*GNU*) 42877a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 42887a0395d0Smrg*) 42897a0395d0Smrg ac_count=0 42907366012aSmrg $as_echo_n 0123456789 >"conftest.in" 42917a0395d0Smrg while : 42927a0395d0Smrg do 42937a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42947a0395d0Smrg mv "conftest.tmp" "conftest.in" 42957a0395d0Smrg cp "conftest.in" "conftest.nl" 42967366012aSmrg $as_echo 'EGREP' >> "conftest.nl" 42977a0395d0Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42987a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42992adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 43007a0395d0Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 43017a0395d0Smrg # Best one so far, save it but keep looking for a better one 43027a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" 43037a0395d0Smrg ac_path_EGREP_max=$ac_count 43047a0395d0Smrg fi 43057a0395d0Smrg # 10*(2^10) chars as input seems more than enough 43067a0395d0Smrg test $ac_count -gt 10 && break 43077a0395d0Smrg done 43087a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 43097a0395d0Smrgesac 43107a0395d0Smrg 43117366012aSmrg $ac_path_EGREP_found && break 3 43127366012aSmrg done 43137a0395d0Smrg done 43142adc0320Smrg done 43157a0395d0SmrgIFS=$as_save_IFS 43167366012aSmrg if test -z "$ac_cv_path_EGREP"; then 43172adc0320Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 43187366012aSmrg fi 43197a0395d0Smrgelse 43207a0395d0Smrg ac_cv_path_EGREP=$EGREP 43217a0395d0Smrgfi 43227a0395d0Smrg 43237a0395d0Smrg fi 43247a0395d0Smrgfi 43252adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 43267366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 43277a0395d0Smrg EGREP="$ac_cv_path_EGREP" 43287a0395d0Smrg 43297a0395d0Smrg 43302adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 43317366012aSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 43322adc0320Smrgif ${ac_cv_header_stdc+:} false; then : 43337366012aSmrg $as_echo_n "(cached) " >&6 43347a0395d0Smrgelse 43352adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43367a0395d0Smrg/* end confdefs.h. */ 43377a0395d0Smrg#include <stdlib.h> 43387a0395d0Smrg#include <stdarg.h> 43397a0395d0Smrg#include <string.h> 43407a0395d0Smrg#include <float.h> 43417a0395d0Smrg 43427a0395d0Smrgint 43437a0395d0Smrgmain () 43447a0395d0Smrg{ 43457a0395d0Smrg 43467a0395d0Smrg ; 43477a0395d0Smrg return 0; 43487a0395d0Smrg} 43497a0395d0Smrg_ACEOF 43502adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 43517a0395d0Smrg ac_cv_header_stdc=yes 43527a0395d0Smrgelse 43532adc0320Smrg ac_cv_header_stdc=no 43547a0395d0Smrgfi 43557a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43567a0395d0Smrg 43577a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43587a0395d0Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 43592adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43607a0395d0Smrg/* end confdefs.h. */ 43617a0395d0Smrg#include <string.h> 43627a0395d0Smrg 43637a0395d0Smrg_ACEOF 43647a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43652adc0320Smrg $EGREP "memchr" >/dev/null 2>&1; then : 43662adc0320Smrg 43677a0395d0Smrgelse 43687a0395d0Smrg ac_cv_header_stdc=no 43697a0395d0Smrgfi 43707a0395d0Smrgrm -f conftest* 43717a0395d0Smrg 43727a0395d0Smrgfi 43737a0395d0Smrg 43747a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43757a0395d0Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 43762adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43777a0395d0Smrg/* end confdefs.h. */ 43787a0395d0Smrg#include <stdlib.h> 43797a0395d0Smrg 43807a0395d0Smrg_ACEOF 43817a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43822adc0320Smrg $EGREP "free" >/dev/null 2>&1; then : 43832adc0320Smrg 43847a0395d0Smrgelse 43857a0395d0Smrg ac_cv_header_stdc=no 43867a0395d0Smrgfi 43877a0395d0Smrgrm -f conftest* 43887a0395d0Smrg 43897a0395d0Smrgfi 43907a0395d0Smrg 43917a0395d0Smrgif test $ac_cv_header_stdc = yes; then 43927a0395d0Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 43932adc0320Smrg if test "$cross_compiling" = yes; then : 43947a0395d0Smrg : 43957a0395d0Smrgelse 43962adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43977a0395d0Smrg/* end confdefs.h. */ 43987a0395d0Smrg#include <ctype.h> 43997a0395d0Smrg#include <stdlib.h> 44007a0395d0Smrg#if ((' ' & 0x0FF) == 0x020) 44017a0395d0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 44027a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 44037a0395d0Smrg#else 44047a0395d0Smrg# define ISLOWER(c) \ 44057a0395d0Smrg (('a' <= (c) && (c) <= 'i') \ 44067a0395d0Smrg || ('j' <= (c) && (c) <= 'r') \ 44077a0395d0Smrg || ('s' <= (c) && (c) <= 'z')) 44087a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 44097a0395d0Smrg#endif 44107a0395d0Smrg 44117a0395d0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 44127a0395d0Smrgint 44137a0395d0Smrgmain () 44147a0395d0Smrg{ 44157a0395d0Smrg int i; 44167a0395d0Smrg for (i = 0; i < 256; i++) 44177a0395d0Smrg if (XOR (islower (i), ISLOWER (i)) 44187a0395d0Smrg || toupper (i) != TOUPPER (i)) 44197a0395d0Smrg return 2; 44207a0395d0Smrg return 0; 44217a0395d0Smrg} 44227a0395d0Smrg_ACEOF 44232adc0320Smrgif ac_fn_c_try_run "$LINENO"; then : 44247a0395d0Smrg 44252adc0320Smrgelse 44262adc0320Smrg ac_cv_header_stdc=no 44277a0395d0Smrgfi 44282adc0320Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 44292adc0320Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 44307a0395d0Smrgfi 44317a0395d0Smrg 44327a0395d0Smrgfi 44337a0395d0Smrgfi 44342adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 44357366012aSmrg$as_echo "$ac_cv_header_stdc" >&6; } 44367a0395d0Smrgif test $ac_cv_header_stdc = yes; then 44377a0395d0Smrg 44382adc0320Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 44397366012aSmrg 44407366012aSmrgfi 44417366012aSmrg 44427366012aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 44437366012aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 44447366012aSmrg inttypes.h stdint.h unistd.h 44452adc0320Smrgdo : 44462adc0320Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44472adc0320Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 44482adc0320Smrg" 44492adc0320Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44507366012aSmrg cat >>confdefs.h <<_ACEOF 44517366012aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44527366012aSmrg_ACEOF 44537366012aSmrg 44547366012aSmrgfi 44557366012aSmrg 44567366012aSmrgdone 44577366012aSmrg 44587366012aSmrg 44597366012aSmrg 44607366012aSmrg 44612852888eSmrg 44622852888eSmrg 44632852888eSmrg 44642852888eSmrg 44652adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 44662adc0320Smrg if test -n "$ac_tool_prefix"; then 44672adc0320Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44682adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44692adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44702adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 44712adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 44722adc0320Smrg $as_echo_n "(cached) " >&6 44732adc0320Smrgelse 44742adc0320Smrg case $PKG_CONFIG in 44752adc0320Smrg [\\/]* | ?:[\\/]*) 44762adc0320Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 44772adc0320Smrg ;; 44782adc0320Smrg *) 44792adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44802adc0320Smrgfor as_dir in $PATH 44817366012aSmrgdo 44822adc0320Smrg IFS=$as_save_IFS 44832adc0320Smrg test -z "$as_dir" && as_dir=. 44842adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 44852adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 44862adc0320Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 44872adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44882adc0320Smrg break 2 44892adc0320Smrg fi 44902adc0320Smrgdone 44912adc0320Smrg done 44922adc0320SmrgIFS=$as_save_IFS 44932adc0320Smrg 44942adc0320Smrg ;; 44957366012aSmrgesac 44962adc0320Smrgfi 44972adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 44982adc0320Smrgif test -n "$PKG_CONFIG"; then 44992adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 45002adc0320Smrg$as_echo "$PKG_CONFIG" >&6; } 45017366012aSmrgelse 45022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45032adc0320Smrg$as_echo "no" >&6; } 45047366012aSmrgfi 45057366012aSmrg 45067366012aSmrg 45077366012aSmrgfi 45082adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 45092adc0320Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 45102adc0320Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 45112adc0320Smrgset dummy pkg-config; ac_word=$2 45122adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45132adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 45142adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 45152adc0320Smrg $as_echo_n "(cached) " >&6 45162adc0320Smrgelse 45172adc0320Smrg case $ac_pt_PKG_CONFIG in 45182adc0320Smrg [\\/]* | ?:[\\/]*) 45192adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 45202adc0320Smrg ;; 45217366012aSmrg *) 45222adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45232adc0320Smrgfor as_dir in $PATH 45242adc0320Smrgdo 45252adc0320Smrg IFS=$as_save_IFS 45262adc0320Smrg test -z "$as_dir" && as_dir=. 45272adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45282adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 45292adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45302adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45312adc0320Smrg break 2 45322adc0320Smrg fi 45332adc0320Smrgdone 45342adc0320Smrg done 45352adc0320SmrgIFS=$as_save_IFS 45362adc0320Smrg 45372adc0320Smrg ;; 45387366012aSmrgesac 45392adc0320Smrgfi 45402adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 45412adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then 45422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 45432adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 45442adc0320Smrgelse 45452adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45462adc0320Smrg$as_echo "no" >&6; } 45472adc0320Smrgfi 45487366012aSmrg 45492adc0320Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 45502adc0320Smrg PKG_CONFIG="" 45512adc0320Smrg else 45522adc0320Smrg case $cross_compiling:$ac_tool_warned in 45532adc0320Smrgyes:) 45542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45552adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45562adc0320Smrgac_tool_warned=yes ;; 45572adc0320Smrgesac 45582adc0320Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 45592adc0320Smrg fi 45602adc0320Smrgelse 45612adc0320Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 45622adc0320Smrgfi 45637366012aSmrg 45642adc0320Smrgfi 45652adc0320Smrgif test -n "$PKG_CONFIG"; then 45662adc0320Smrg _pkg_min_version=0.9.0 45672adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 45682adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 45692adc0320Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 45702adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45712adc0320Smrg$as_echo "yes" >&6; } 45722adc0320Smrg else 45732adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45742adc0320Smrg$as_echo "no" >&6; } 45752adc0320Smrg PKG_CONFIG="" 45762adc0320Smrg fi 45772adc0320Smrgfi 45787366012aSmrg# Make sure we can run config.sub. 45797366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 45802adc0320Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 45817366012aSmrg 45822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 45837366012aSmrg$as_echo_n "checking build system type... " >&6; } 45842adc0320Smrgif ${ac_cv_build+:} false; then : 45857366012aSmrg $as_echo_n "(cached) " >&6 45867366012aSmrgelse 45877366012aSmrg ac_build_alias=$build_alias 45887366012aSmrgtest "x$ac_build_alias" = x && 45897366012aSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 45907366012aSmrgtest "x$ac_build_alias" = x && 45912adc0320Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 45927366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 45932adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 45947366012aSmrg 45957366012aSmrgfi 45962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 45977366012aSmrg$as_echo "$ac_cv_build" >&6; } 45987366012aSmrgcase $ac_cv_build in 45997366012aSmrg*-*-*) ;; 46002adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 46017366012aSmrgesac 46027366012aSmrgbuild=$ac_cv_build 46037366012aSmrgac_save_IFS=$IFS; IFS='-' 46047366012aSmrgset x $ac_cv_build 46057366012aSmrgshift 46067366012aSmrgbuild_cpu=$1 46077366012aSmrgbuild_vendor=$2 46087366012aSmrgshift; shift 46097366012aSmrg# Remember, the first character of IFS is used to create $*, 46107366012aSmrg# except with old shells: 46117366012aSmrgbuild_os=$* 46127366012aSmrgIFS=$ac_save_IFS 46137366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 46147366012aSmrg 46157366012aSmrg 46162adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 46177366012aSmrg$as_echo_n "checking host system type... " >&6; } 46182adc0320Smrgif ${ac_cv_host+:} false; then : 46197366012aSmrg $as_echo_n "(cached) " >&6 46207366012aSmrgelse 46217366012aSmrg if test "x$host_alias" = x; then 46227366012aSmrg ac_cv_host=$ac_cv_build 46237366012aSmrgelse 46247366012aSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 46252adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 46267366012aSmrgfi 46277366012aSmrg 46287366012aSmrgfi 46292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46307366012aSmrg$as_echo "$ac_cv_host" >&6; } 46317366012aSmrgcase $ac_cv_host in 46327366012aSmrg*-*-*) ;; 46332adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 46347366012aSmrgesac 46357366012aSmrghost=$ac_cv_host 46367366012aSmrgac_save_IFS=$IFS; IFS='-' 46377366012aSmrgset x $ac_cv_host 46387366012aSmrgshift 46397366012aSmrghost_cpu=$1 46407366012aSmrghost_vendor=$2 46417366012aSmrgshift; shift 46427366012aSmrg# Remember, the first character of IFS is used to create $*, 46437366012aSmrg# except with old shells: 46447366012aSmrghost_os=$* 46457366012aSmrgIFS=$ac_save_IFS 46467366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 46477366012aSmrg 46487366012aSmrg 46492adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 46502adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 46512adc0320Smrgif ${ac_cv_path_SED+:} false; then : 46527366012aSmrg $as_echo_n "(cached) " >&6 46537366012aSmrgelse 46542adc0320Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 46552adc0320Smrg for ac_i in 1 2 3 4 5 6 7; do 46562adc0320Smrg ac_script="$ac_script$as_nl$ac_script" 46572adc0320Smrg done 46582adc0320Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 46592adc0320Smrg { ac_script=; unset ac_script;} 46602adc0320Smrg if test -z "$SED"; then 46612adc0320Smrg ac_path_SED_found=false 46622adc0320Smrg # Loop through the user's path and test for each of PROGNAME-LIST 46632adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46642adc0320Smrgfor as_dir in $PATH 46652adc0320Smrgdo 46662adc0320Smrg IFS=$as_save_IFS 46672adc0320Smrg test -z "$as_dir" && as_dir=. 46682adc0320Smrg for ac_prog in sed gsed; do 46692adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 46702adc0320Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 46712adc0320Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 46722adc0320Smrg# Check for GNU ac_path_SED and select it if it is found. 46732adc0320Smrg # Check for GNU $ac_path_SED 46742adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in 46752adc0320Smrg*GNU*) 46762adc0320Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 46772adc0320Smrg*) 46782adc0320Smrg ac_count=0 46792adc0320Smrg $as_echo_n 0123456789 >"conftest.in" 46802adc0320Smrg while : 46812adc0320Smrg do 46822adc0320Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 46832adc0320Smrg mv "conftest.tmp" "conftest.in" 46842adc0320Smrg cp "conftest.in" "conftest.nl" 46852adc0320Smrg $as_echo '' >> "conftest.nl" 46862adc0320Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 46872adc0320Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 46882adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 46892adc0320Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 46902adc0320Smrg # Best one so far, save it but keep looking for a better one 46912adc0320Smrg ac_cv_path_SED="$ac_path_SED" 46922adc0320Smrg ac_path_SED_max=$ac_count 46932adc0320Smrg fi 46942adc0320Smrg # 10*(2^10) chars as input seems more than enough 46952adc0320Smrg test $ac_count -gt 10 && break 46962adc0320Smrg done 46972adc0320Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 46987366012aSmrgesac 46997366012aSmrg 47002adc0320Smrg $ac_path_SED_found && break 3 47012adc0320Smrg done 47022adc0320Smrg done 47032adc0320Smrg done 47042adc0320SmrgIFS=$as_save_IFS 47052adc0320Smrg if test -z "$ac_cv_path_SED"; then 47062adc0320Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 47072adc0320Smrg fi 47087366012aSmrgelse 47092adc0320Smrg ac_cv_path_SED=$SED 47107366012aSmrgfi 47117366012aSmrg 47127366012aSmrgfi 47132adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 47142adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; } 47152adc0320Smrg SED="$ac_cv_path_SED" 47162adc0320Smrg rm -f conftest.sed 47177366012aSmrg 47187366012aSmrg 47197366012aSmrg 47207366012aSmrg 47217366012aSmrg 47222adc0320Smrgif test "x$GCC" = xyes ; then 47232adc0320Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 47242adc0320Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 47252adc0320Smrg-Wbad-function-cast -Wformat=2" 47262adc0320Smrg case `$CC -dumpversion` in 47272adc0320Smrg 3.4.* | 4.*) 47282adc0320Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 47292adc0320Smrg ;; 47302adc0320Smrg esac 47317366012aSmrgelse 47322adc0320Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 47332adc0320Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 47347366012aSmrg SUNCC="yes" 47357366012aSmrgelse 47367366012aSmrg SUNCC="no" 47377366012aSmrgfi 47387366012aSmrg 47392adc0320Smrg if test "x$SUNCC" = "xyes"; then 47402adc0320Smrg CWARNFLAGS="-v" 47412adc0320Smrg fi 47422adc0320Smrgfi 47432adc0320Smrg 47442adc0320Smrg 47452adc0320Smrg 47462adc0320Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 47472adc0320Smrg 47482adc0320Smrg 47497366012aSmrg 47502adc0320Smrg# Check whether --enable-strict-compilation was given. 47512adc0320Smrgif test "${enable_strict_compilation+set}" = set; then : 47522adc0320Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 47532adc0320Smrgelse 47542adc0320Smrg STRICT_COMPILE=no 47557366012aSmrgfi 47567366012aSmrg 47572adc0320Smrgif test "x$STRICT_COMPILE" = "xyes"; then 47582adc0320Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 47592adc0320Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 47602adc0320Smrg SUNCC="yes" 47612adc0320Smrgelse 47622adc0320Smrg SUNCC="no" 47637366012aSmrgfi 47642adc0320Smrg 47652adc0320Smrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 47662adc0320Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 47677366012aSmrg INTELCC="yes" 47687366012aSmrgelse 47697366012aSmrg INTELCC="no" 47707366012aSmrgfi 47717366012aSmrg 47727366012aSmrg if test "x$GCC" = xyes ; then 47737366012aSmrg STRICT_CFLAGS="-pedantic -Werror" 47747366012aSmrg elif test "x$SUNCC" = "xyes"; then 47757366012aSmrg STRICT_CFLAGS="-errwarn" 47767366012aSmrg elif test "x$INTELCC" = "xyes"; then 47777366012aSmrg STRICT_CFLAGS="-Werror" 47787366012aSmrg fi 47797366012aSmrgfi 47807366012aSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 47817366012aSmrg 47827366012aSmrg 47837366012aSmrg 47847366012aSmrg 47857366012aSmrgcat >>confdefs.h <<_ACEOF 47867366012aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 47877366012aSmrg_ACEOF 47887366012aSmrg 47897366012aSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 47907366012aSmrg if test "x$PVM" = "x"; then 47917366012aSmrg PVM="0" 47927366012aSmrg fi 47937366012aSmrg 47947366012aSmrgcat >>confdefs.h <<_ACEOF 47957366012aSmrg#define PACKAGE_VERSION_MINOR $PVM 47967366012aSmrg_ACEOF 47977366012aSmrg 47987366012aSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 47997366012aSmrg if test "x$PVP" = "x"; then 48007366012aSmrg PVP="0" 48017366012aSmrg fi 48027366012aSmrg 48037366012aSmrgcat >>confdefs.h <<_ACEOF 48047366012aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 48057366012aSmrg_ACEOF 48067366012aSmrg 48077366012aSmrg 48087366012aSmrg 48092adc0320SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 48102adc0320Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 48112adc0320Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 48127366012aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 48137366012aSmrg 48142adc0320Smrg 48152adc0320Smrg 48162adc0320Smrg 48172adc0320Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 48182adc0320SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 48192adc0320Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 48202adc0320Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 48212adc0320Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 48222adc0320Smrg 48237366012aSmrg 48247366012aSmrg 48257366012aSmrg 48267366012aSmrg 48277366012aSmrg 48287366012aSmrgif test x$APP_MAN_SUFFIX = x ; then 48297366012aSmrg APP_MAN_SUFFIX=1 48307366012aSmrgfi 48317366012aSmrgif test x$APP_MAN_DIR = x ; then 48327366012aSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 48337366012aSmrgfi 48347366012aSmrg 48357366012aSmrgif test x$LIB_MAN_SUFFIX = x ; then 48367366012aSmrg LIB_MAN_SUFFIX=3 48377366012aSmrgfi 48387366012aSmrgif test x$LIB_MAN_DIR = x ; then 48397366012aSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 48407366012aSmrgfi 48417366012aSmrg 48427366012aSmrgif test x$FILE_MAN_SUFFIX = x ; then 48437366012aSmrg case $host_os in 48447366012aSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 48457366012aSmrg *) FILE_MAN_SUFFIX=5 ;; 48467366012aSmrg esac 48477366012aSmrgfi 48487366012aSmrgif test x$FILE_MAN_DIR = x ; then 48497366012aSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 48507366012aSmrgfi 48517366012aSmrg 48527366012aSmrgif test x$MISC_MAN_SUFFIX = x ; then 48537366012aSmrg case $host_os in 48547366012aSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 48557366012aSmrg *) MISC_MAN_SUFFIX=7 ;; 48567366012aSmrg esac 48577366012aSmrgfi 48587366012aSmrgif test x$MISC_MAN_DIR = x ; then 48597366012aSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 48607366012aSmrgfi 48617366012aSmrg 48627366012aSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 48637366012aSmrg case $host_os in 48647366012aSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 48657366012aSmrg *) DRIVER_MAN_SUFFIX=4 ;; 48667366012aSmrg esac 48677366012aSmrgfi 48687366012aSmrgif test x$DRIVER_MAN_DIR = x ; then 48697366012aSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 48707366012aSmrgfi 48717366012aSmrg 48727366012aSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 48737366012aSmrg case $host_os in 48747366012aSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 48757366012aSmrg *) ADMIN_MAN_SUFFIX=8 ;; 48767366012aSmrg esac 48777366012aSmrgfi 48787366012aSmrgif test x$ADMIN_MAN_DIR = x ; then 48797366012aSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 48807366012aSmrgfi 48817366012aSmrg 48827366012aSmrg 48837366012aSmrg 48847366012aSmrg 48857366012aSmrg 48867a0395d0Smrg 48877a0395d0Smrg 48887a0395d0Smrg 48897a0395d0Smrg 48907a0395d0Smrg 48917a0395d0Smrg 48927a0395d0Smrg 48937a0395d0Smrg 48947a0395d0Smrg 48957a0395d0Smrg 48962adc0320SmrgXORG_MAN_PAGE="X Version 11" 48972adc0320Smrg 48982adc0320SmrgMAN_SUBSTS="\ 48992adc0320Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 49002adc0320Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 49012adc0320Smrg -e 's|__xservername__|Xorg|g' \ 49022adc0320Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 49032adc0320Smrg -e 's|__projectroot__|\$(prefix)|g' \ 49042adc0320Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 49052adc0320Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 49062adc0320Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 49072adc0320Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 49082adc0320Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 49092adc0320Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 49102adc0320Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 49112adc0320Smrg 49122adc0320Smrg 49132adc0320Smrg 49142adc0320Smrg# Check whether --enable-silent-rules was given. 49152adc0320Smrgif test "${enable_silent_rules+set}" = set; then : 49162adc0320Smrg enableval=$enable_silent_rules; 49172adc0320Smrgfi 49182adc0320Smrg 49192adc0320Smrgcase $enable_silent_rules in 49202adc0320Smrgyes) AM_DEFAULT_VERBOSITY=0;; 49212adc0320Smrgno) AM_DEFAULT_VERBOSITY=1;; 49222adc0320Smrg*) AM_DEFAULT_VERBOSITY=0;; 49232adc0320Smrgesac 49242adc0320SmrgAM_BACKSLASH='\' 49252adc0320Smrg 49267a0395d0Smrg 49277366012aSmrg 49282adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 49297366012aSmrg$as_echo_n "checking return type of signal handlers... " >&6; } 49302adc0320Smrgif ${ac_cv_type_signal+:} false; then : 49317366012aSmrg $as_echo_n "(cached) " >&6 49327a0395d0Smrgelse 49332adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49347a0395d0Smrg/* end confdefs.h. */ 49357366012aSmrg#include <sys/types.h> 49367366012aSmrg#include <signal.h> 49377a0395d0Smrg 49387366012aSmrgint 49397366012aSmrgmain () 49407366012aSmrg{ 49417366012aSmrgreturn *(signal (0, 0)) (0) == 1; 49427366012aSmrg ; 49437366012aSmrg return 0; 49447366012aSmrg} 49457a0395d0Smrg_ACEOF 49462adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 49477366012aSmrg ac_cv_type_signal=int 49487a0395d0Smrgelse 49492adc0320Smrg ac_cv_type_signal=void 49507a0395d0Smrgfi 49517a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49527a0395d0Smrgfi 49532adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 49547366012aSmrg$as_echo "$ac_cv_type_signal" >&6; } 49557a0395d0Smrg 49567366012aSmrgcat >>confdefs.h <<_ACEOF 49577366012aSmrg#define RETSIGTYPE $ac_cv_type_signal 49587366012aSmrg_ACEOF 49597a0395d0Smrg 49607a0395d0Smrg 49617a0395d0Smrg 49627a0395d0Smrgfor ac_header in net/errno.h 49632adc0320Smrgdo : 49642adc0320Smrg ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 49652adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then : 49662adc0320Smrg cat >>confdefs.h <<_ACEOF 49672adc0320Smrg#define HAVE_NET_ERRNO_H 1 49687a0395d0Smrg_ACEOF 49697a0395d0Smrg 49707a0395d0Smrgfi 49717a0395d0Smrg 49722adc0320Smrgdone 49737a0395d0Smrg 49747a0395d0Smrg 49752adc0320Smrgfor ac_func in strlcpy 49762adc0320Smrgdo : 49772adc0320Smrg ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 49782adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then : 49797a0395d0Smrg cat >>confdefs.h <<_ACEOF 49802adc0320Smrg#define HAVE_STRLCPY 1 49817a0395d0Smrg_ACEOF 49827a0395d0Smrg 49837a0395d0Smrgfi 49847a0395d0Smrgdone 49857a0395d0Smrg 49867a0395d0Smrg 49877a0395d0Smrg# Checks for pkg-config packages 49887a0395d0Smrg 49897a0395d0Smrgpkg_failed=no 49902adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 49917366012aSmrg$as_echo_n "checking for XAUTH... " >&6; } 49927a0395d0Smrg 49937a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then 49947a0395d0Smrg pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 49957a0395d0Smrg elif test -n "$PKG_CONFIG"; then 49967a0395d0Smrg if test -n "$PKG_CONFIG" && \ 49972adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5 49987a0395d0Smrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5 49997a0395d0Smrg ac_status=$? 50002adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 50012adc0320Smrg test $ac_status = 0; }; then 50027a0395d0Smrg pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu" 2>/dev/null` 50037a0395d0Smrgelse 50047a0395d0Smrg pkg_failed=yes 50057a0395d0Smrgfi 50067a0395d0Smrg else 50077a0395d0Smrg pkg_failed=untried 50087a0395d0Smrgfi 50097a0395d0Smrgif test -n "$XAUTH_LIBS"; then 50107a0395d0Smrg pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 50117a0395d0Smrg elif test -n "$PKG_CONFIG"; then 50127a0395d0Smrg if test -n "$PKG_CONFIG" && \ 50132adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5 50147a0395d0Smrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5 50157a0395d0Smrg ac_status=$? 50162adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 50172adc0320Smrg test $ac_status = 0; }; then 50187a0395d0Smrg pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu" 2>/dev/null` 50197a0395d0Smrgelse 50207a0395d0Smrg pkg_failed=yes 50217a0395d0Smrgfi 50227a0395d0Smrg else 50237a0395d0Smrg pkg_failed=untried 50247a0395d0Smrgfi 50257a0395d0Smrg 50267a0395d0Smrg 50277a0395d0Smrg 50287a0395d0Smrgif test $pkg_failed = yes; then 50292852888eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50302852888eSmrg$as_echo "no" >&6; } 50317a0395d0Smrg 50327a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 50337a0395d0Smrg _pkg_short_errors_supported=yes 50347a0395d0Smrgelse 50357a0395d0Smrg _pkg_short_errors_supported=no 50367a0395d0Smrgfi 50377a0395d0Smrg if test $_pkg_short_errors_supported = yes; then 50387a0395d0Smrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xau xext xmuu" 2>&1` 50397a0395d0Smrg else 50407a0395d0Smrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xau xext xmuu" 2>&1` 50417a0395d0Smrg fi 50427a0395d0Smrg # Put the nasty error message in config.log where it belongs 50437a0395d0Smrg echo "$XAUTH_PKG_ERRORS" >&5 50447a0395d0Smrg 50452adc0320Smrg as_fn_error $? "Package requirements (x11 xau xext xmuu) were not met: 50467a0395d0Smrg 50477a0395d0Smrg$XAUTH_PKG_ERRORS 50487a0395d0Smrg 50497a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 50507a0395d0Smrginstalled software in a non-standard prefix. 50517a0395d0Smrg 50527a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 50537a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 50542852888eSmrgSee the pkg-config man page for more details." "$LINENO" 5 50557a0395d0Smrgelif test $pkg_failed = untried; then 50562852888eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50572852888eSmrg$as_echo "no" >&6; } 50582adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50597366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50602adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 50617a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 50627a0395d0Smrgpath to pkg-config. 50637a0395d0Smrg 50647a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 50657a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 50667a0395d0SmrgSee the pkg-config man page for more details. 50677a0395d0Smrg 50687a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 50692adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 50707a0395d0Smrgelse 50717a0395d0Smrg XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 50727a0395d0Smrg XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 50732adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50747366012aSmrg$as_echo "yes" >&6; } 50752852888eSmrg 50767a0395d0Smrgfi 50777a0395d0Smrg 50787a0395d0Smrg# Transport selection macro from xtrans.m4 50797a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c 50807a0395d0Smrg 50817a0395d0Smrg 50827a0395d0Smrg 50837366012aSmrg case $host_os in 50847366012aSmrg mingw*) unixdef="no" ;; 50857366012aSmrg *) unixdef="yes" ;; 50867366012aSmrg esac 50877a0395d0Smrg # Check whether --enable-unix-transport was given. 50882adc0320Smrgif test "${enable_unix_transport+set}" = set; then : 50897a0395d0Smrg enableval=$enable_unix_transport; UNIXCONN=$enableval 50907a0395d0Smrgelse 50917366012aSmrg UNIXCONN=$unixdef 50927a0395d0Smrgfi 50937a0395d0Smrg 50942adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 50957366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 50967a0395d0Smrg if test "$UNIXCONN" = "yes"; then 50977a0395d0Smrg 50982adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h 50997a0395d0Smrg 51007a0395d0Smrg fi 51012adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 51027366012aSmrg$as_echo "$UNIXCONN" >&6; } 51037366012aSmrg # Check whether --enable-tcp-transport was given. 51042adc0320Smrgif test "${enable_tcp_transport+set}" = set; then : 51057366012aSmrg enableval=$enable_tcp_transport; TCPCONN=$enableval 51067366012aSmrgelse 51077366012aSmrg TCPCONN=yes 51087366012aSmrgfi 51097366012aSmrg 51102adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 51117366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 51122adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 51137366012aSmrg$as_echo "$TCPCONN" >&6; } 51147a0395d0Smrg if test "$TCPCONN" = "yes"; then 51157a0395d0Smrg 51162adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h 51177a0395d0Smrg 51187a0395d0Smrg 51197a0395d0Smrg # SVR4 hides these in libraries other than libc 51202adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 51217366012aSmrg$as_echo_n "checking for library containing socket... " >&6; } 51222adc0320Smrgif ${ac_cv_search_socket+:} false; then : 51237366012aSmrg $as_echo_n "(cached) " >&6 51247a0395d0Smrgelse 51257a0395d0Smrg ac_func_search_save_LIBS=$LIBS 51262adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 51277a0395d0Smrg/* end confdefs.h. */ 51287a0395d0Smrg 51297a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 51307a0395d0Smrg Use char because int might match the return type of a GCC 51317a0395d0Smrg builtin and then its argument prototype would still apply. */ 51327a0395d0Smrg#ifdef __cplusplus 51337a0395d0Smrgextern "C" 51347a0395d0Smrg#endif 51357a0395d0Smrgchar socket (); 51367a0395d0Smrgint 51377a0395d0Smrgmain () 51387a0395d0Smrg{ 51397a0395d0Smrgreturn socket (); 51407a0395d0Smrg ; 51417a0395d0Smrg return 0; 51427a0395d0Smrg} 51437a0395d0Smrg_ACEOF 51447a0395d0Smrgfor ac_lib in '' socket; do 51457a0395d0Smrg if test -z "$ac_lib"; then 51467a0395d0Smrg ac_res="none required" 51477a0395d0Smrg else 51487a0395d0Smrg ac_res=-l$ac_lib 51497a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 51502adc0320Smrg fi 51512adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 51522adc0320Smrg ac_cv_search_socket=$ac_res 51537a0395d0Smrgfi 51542adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 51552adc0320Smrg conftest$ac_exeext 51562adc0320Smrg if ${ac_cv_search_socket+:} false; then : 51577a0395d0Smrg break 51587a0395d0Smrgfi 51597a0395d0Smrgdone 51602adc0320Smrgif ${ac_cv_search_socket+:} false; then : 51612adc0320Smrg 51627a0395d0Smrgelse 51637a0395d0Smrg ac_cv_search_socket=no 51647a0395d0Smrgfi 51657a0395d0Smrgrm conftest.$ac_ext 51667a0395d0SmrgLIBS=$ac_func_search_save_LIBS 51677a0395d0Smrgfi 51682adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 51697366012aSmrg$as_echo "$ac_cv_search_socket" >&6; } 51707a0395d0Smrgac_res=$ac_cv_search_socket 51712adc0320Smrgif test "$ac_res" != no; then : 51727a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 51737a0395d0Smrg 51747a0395d0Smrgfi 51757a0395d0Smrg 51762adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 51777366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; } 51782adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 51797366012aSmrg $as_echo_n "(cached) " >&6 51807a0395d0Smrgelse 51817a0395d0Smrg ac_func_search_save_LIBS=$LIBS 51822adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 51837a0395d0Smrg/* end confdefs.h. */ 51847a0395d0Smrg 51857a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 51867a0395d0Smrg Use char because int might match the return type of a GCC 51877a0395d0Smrg builtin and then its argument prototype would still apply. */ 51887a0395d0Smrg#ifdef __cplusplus 51897a0395d0Smrgextern "C" 51907a0395d0Smrg#endif 51917a0395d0Smrgchar gethostbyname (); 51927a0395d0Smrgint 51937a0395d0Smrgmain () 51947a0395d0Smrg{ 51957a0395d0Smrgreturn gethostbyname (); 51967a0395d0Smrg ; 51977a0395d0Smrg return 0; 51987a0395d0Smrg} 51997a0395d0Smrg_ACEOF 52007a0395d0Smrgfor ac_lib in '' nsl; do 52017a0395d0Smrg if test -z "$ac_lib"; then 52027a0395d0Smrg ac_res="none required" 52037a0395d0Smrg else 52047a0395d0Smrg ac_res=-l$ac_lib 52057a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 52067a0395d0Smrg fi 52072adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 52087a0395d0Smrg ac_cv_search_gethostbyname=$ac_res 52097a0395d0Smrgfi 52102adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 52112adc0320Smrg conftest$ac_exeext 52122adc0320Smrg if ${ac_cv_search_gethostbyname+:} false; then : 52137a0395d0Smrg break 52147a0395d0Smrgfi 52157a0395d0Smrgdone 52162adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 52172adc0320Smrg 52187a0395d0Smrgelse 52197a0395d0Smrg ac_cv_search_gethostbyname=no 52207a0395d0Smrgfi 52217a0395d0Smrgrm conftest.$ac_ext 52227a0395d0SmrgLIBS=$ac_func_search_save_LIBS 52237a0395d0Smrgfi 52242adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 52257366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; } 52267a0395d0Smrgac_res=$ac_cv_search_gethostbyname 52272adc0320Smrgif test "$ac_res" != no; then : 52287a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 52297a0395d0Smrg 52307a0395d0Smrgfi 52317a0395d0Smrg 52322adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 52332adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 52347366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; } 52352adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then : 52367366012aSmrg $as_echo_n "(cached) " >&6 52377366012aSmrgelse 52387366012aSmrg ac_check_lib_save_LIBS=$LIBS 52397366012aSmrgLIBS="-lws2_32 $LIBS" 52402adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 52417366012aSmrg/* end confdefs.h. */ 52427366012aSmrg 52437366012aSmrg 52447366012aSmrgint 52457366012aSmrgmain () 52467366012aSmrg{ 52477366012aSmrgreturn main (); 52487366012aSmrg ; 52497366012aSmrg return 0; 52507366012aSmrg} 52517366012aSmrg_ACEOF 52522adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 52537366012aSmrg ac_cv_lib_ws2_32_main=yes 52547366012aSmrgelse 52552adc0320Smrg ac_cv_lib_ws2_32_main=no 52567366012aSmrgfi 52572adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 52582adc0320Smrg conftest$ac_exeext conftest.$ac_ext 52597366012aSmrgLIBS=$ac_check_lib_save_LIBS 52607366012aSmrgfi 52612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 52627366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 52632adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then : 52647366012aSmrg cat >>confdefs.h <<_ACEOF 52657366012aSmrg#define HAVE_LIBWS2_32 1 52667366012aSmrg_ACEOF 52677366012aSmrg 52687366012aSmrg LIBS="-lws2_32 $LIBS" 52697366012aSmrg 52707366012aSmrgfi 52717366012aSmrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 52727366012aSmrg 52732adc0320Smrg fi 52747366012aSmrg 52757a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 52767a0395d0Smrg # Check whether --enable-ipv6 was given. 52772adc0320Smrgif test "${enable_ipv6+set}" = set; then : 52787a0395d0Smrg enableval=$enable_ipv6; IPV6CONN=$enableval 52797a0395d0Smrgelse 52802adc0320Smrg ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 52812adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then : 52827a0395d0Smrg IPV6CONN=yes 52837a0395d0Smrgelse 52847a0395d0Smrg IPV6CONN=no 52857a0395d0Smrgfi 52867a0395d0Smrg 52877a0395d0Smrgfi 52887a0395d0Smrg 52892adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 52907366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; } 52917a0395d0Smrg if test "$IPV6CONN" = "yes"; then 52927a0395d0Smrg 52932adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h 52947a0395d0Smrg 52957a0395d0Smrg fi 52962adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 52977366012aSmrg$as_echo "$IPV6CONN" >&6; } 52987a0395d0Smrg 52997a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in 53002adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 53017a0395d0Smrg#include <sys/types.h> 53027a0395d0Smrg#include <sys/socket.h> 53037a0395d0Smrg#include <netinet/in.h> 53047a0395d0Smrg 53052adc0320Smrg" 53062adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 53077a0395d0Smrg 53082adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 53097366012aSmrg 53102adc0320Smrgfi 53117366012aSmrg 53127366012aSmrg 53132adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 53142adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 53152adc0320Smrg$ac_includes_default 53162adc0320Smrg#include <sys/socket.h> 53172adc0320Smrg" 53182adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then : 53197366012aSmrg 53202adc0320Smrgcat >>confdefs.h <<_ACEOF 53212adc0320Smrg#define HAVE_SOCKLEN_T 1 53227366012aSmrg_ACEOF 53237366012aSmrg 53247366012aSmrg 53257366012aSmrgfi 53267366012aSmrg 53277366012aSmrg 53287366012aSmrg 53292adc0320Smrg fi 53302adc0320Smrg case $host_os in 53312adc0320Smrg solaris*|sco*|sysv4*) localdef="yes" ;; 53322adc0320Smrg *) localdef="no" ;; 53332adc0320Smrg esac 53342adc0320Smrg # Check whether --enable-local-transport was given. 53352adc0320Smrgif test "${enable_local_transport+set}" = set; then : 53362adc0320Smrg enableval=$enable_local_transport; LOCALCONN=$enableval 53377366012aSmrgelse 53382adc0320Smrg LOCALCONN=$localdef 53392adc0320Smrgfi 53407366012aSmrg 53412adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 53422adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 53432adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 53442adc0320Smrg$as_echo "$LOCALCONN" >&6; } 53452adc0320Smrg if test "$LOCALCONN" = "yes"; then 53467a0395d0Smrg 53472adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h 53487a0395d0Smrg 53492adc0320Smrg fi 53507a0395d0Smrg 53517a0395d0Smrg 53527366012aSmrg 53537366012aSmrg 53547a0395d0Smrg 53557a0395d0Smrg 53567a0395d0Smrg 53577366012aSmrg 53582adc0320Smrg# Check whether --with-lint was given. 53592adc0320Smrgif test "${with_lint+set}" = set; then : 53602adc0320Smrg withval=$with_lint; use_lint=$withval 53612adc0320Smrgelse 53622adc0320Smrg use_lint=no 53637a0395d0Smrgfi 53647a0395d0Smrg 53657a0395d0Smrg 53662adc0320Smrg# Obtain platform specific info like program name and options 53672adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 53682adc0320Smrgcase $host_os in 53692adc0320Smrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 53702adc0320Smrg lint_name=splint 53712adc0320Smrg lint_options="-badflag" 53722adc0320Smrg ;; 53732adc0320Smrg *freebsd* | *netbsd*) 53742adc0320Smrg lint_name=lint 53752adc0320Smrg lint_options="-u -b" 53762adc0320Smrg ;; 53772adc0320Smrg *solaris*) 53782adc0320Smrg lint_name=lint 53792adc0320Smrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 53802adc0320Smrg ;; 53812adc0320Smrgesac 53827366012aSmrg 53832adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 53842adc0320Smrgif test "x$use_lint" = x"yes" ; then 53852adc0320Smrg # Extract the first word of "$lint_name", so it can be a program name with args. 53862adc0320Smrgset dummy $lint_name; ac_word=$2 53872adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53882adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 53892adc0320Smrgif ${ac_cv_path_LINT+:} false; then : 53902adc0320Smrg $as_echo_n "(cached) " >&6 53912adc0320Smrgelse 53922adc0320Smrg case $LINT in 53932adc0320Smrg [\\/]* | ?:[\\/]*) 53942adc0320Smrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 53952adc0320Smrg ;; 53962adc0320Smrg *) 53972adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53982adc0320Smrgfor as_dir in $PATH 53992adc0320Smrgdo 54002adc0320Smrg IFS=$as_save_IFS 54012adc0320Smrg test -z "$as_dir" && as_dir=. 54022adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 54032adc0320Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 54042adc0320Smrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 54052adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 54062adc0320Smrg break 2 54072adc0320Smrg fi 54082adc0320Smrgdone 54092adc0320Smrg done 54102adc0320SmrgIFS=$as_save_IFS 54112adc0320Smrg 54122adc0320Smrg ;; 54132adc0320Smrgesac 54142adc0320Smrgfi 54152adc0320SmrgLINT=$ac_cv_path_LINT 54162adc0320Smrgif test -n "$LINT"; then 54172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 54182adc0320Smrg$as_echo "$LINT" >&6; } 54197a0395d0Smrgelse 54202adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54212adc0320Smrg$as_echo "no" >&6; } 54227a0395d0Smrgfi 54237a0395d0Smrg 54247a0395d0Smrg 54252adc0320Smrg if test "x$LINT" = "x"; then 54262adc0320Smrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 54272adc0320Smrg fi 54282adc0320Smrgelif test "x$use_lint" = x"no" ; then 54292adc0320Smrg if test "x$LINT" != "x"; then 54302adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 54312adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 54322adc0320Smrg fi 54337a0395d0Smrgelse 54342adc0320Smrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 54357a0395d0Smrgfi 54367a0395d0Smrg 54372adc0320Smrg# User supplied flags override default flags 54382adc0320Smrgif test "x$LINT_FLAGS" != "x"; then 54392adc0320Smrg lint_options=$LINT_FLAGS 54407a0395d0Smrgfi 54417a0395d0Smrg 54422adc0320SmrgLINT_FLAGS=$lint_options 54437a0395d0Smrg 54442adc0320Smrg if test "x$LINT" != x; then 54457a0395d0Smrg LINT_TRUE= 54467a0395d0Smrg LINT_FALSE='#' 54477a0395d0Smrgelse 54487a0395d0Smrg LINT_TRUE='#' 54497a0395d0Smrg LINT_FALSE= 54507a0395d0Smrgfi 54517a0395d0Smrg 54527a0395d0Smrg 54537a0395d0Smrg 54547a0395d0Smrg 54552852888eSmrgac_config_files="$ac_config_files Makefile man/Makefile" 54567a0395d0Smrg 54577a0395d0Smrgcat >confcache <<\_ACEOF 54587a0395d0Smrg# This file is a shell script that caches the results of configure 54597a0395d0Smrg# tests run on this system so they can be shared between configure 54607a0395d0Smrg# scripts and configure runs, see configure's option --config-cache. 54617a0395d0Smrg# It is not useful on other systems. If it contains results you don't 54627a0395d0Smrg# want to keep, you may remove or edit it. 54637a0395d0Smrg# 54647a0395d0Smrg# config.status only pays attention to the cache file if you give it 54657a0395d0Smrg# the --recheck option to rerun configure. 54667a0395d0Smrg# 54677a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 54687a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 54697a0395d0Smrg# following values. 54707a0395d0Smrg 54717a0395d0Smrg_ACEOF 54727a0395d0Smrg 54737a0395d0Smrg# The following way of writing the cache mishandles newlines in values, 54747a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient. 54757a0395d0Smrg# So, we kill variables containing newlines. 54767a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 54777a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars. 54787a0395d0Smrg( 54797a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 54807a0395d0Smrg eval ac_val=\$$ac_var 54817a0395d0Smrg case $ac_val in #( 54827a0395d0Smrg *${as_nl}*) 54837a0395d0Smrg case $ac_var in #( 54842adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 54857366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 54867a0395d0Smrg esac 54877a0395d0Smrg case $ac_var in #( 54887a0395d0Smrg _ | IFS | as_nl) ;; #( 54897366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 54902adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 54917a0395d0Smrg esac ;; 54927a0395d0Smrg esac 54937a0395d0Smrg done 54947a0395d0Smrg 54957a0395d0Smrg (set) 2>&1 | 54967a0395d0Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 54977a0395d0Smrg *${as_nl}ac_space=\ *) 54982adc0320Smrg # `set' does not quote correctly, so add quotes: double-quote 54992adc0320Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 55007a0395d0Smrg sed -n \ 55017a0395d0Smrg "s/'/'\\\\''/g; 55027a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 55037a0395d0Smrg ;; #( 55047a0395d0Smrg *) 55057a0395d0Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 55067a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 55077a0395d0Smrg ;; 55087a0395d0Smrg esac | 55097a0395d0Smrg sort 55107a0395d0Smrg) | 55117a0395d0Smrg sed ' 55127a0395d0Smrg /^ac_cv_env_/b end 55137a0395d0Smrg t clear 55147a0395d0Smrg :clear 55157a0395d0Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 55167a0395d0Smrg t end 55177a0395d0Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 55187a0395d0Smrg :end' >>confcache 55197a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 55207a0395d0Smrg if test -w "$cache_file"; then 55212adc0320Smrg if test "x$cache_file" != "x/dev/null"; then 55222adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 55237366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 55242adc0320Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 55252adc0320Smrg cat confcache >"$cache_file" 55262adc0320Smrg else 55272adc0320Smrg case $cache_file in #( 55282adc0320Smrg */* | ?:*) 55292adc0320Smrg mv -f confcache "$cache_file"$$ && 55302adc0320Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 55312adc0320Smrg *) 55322adc0320Smrg mv -f confcache "$cache_file" ;; 55332adc0320Smrg esac 55342adc0320Smrg fi 55352adc0320Smrg fi 55367a0395d0Smrg else 55372adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 55387366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 55397a0395d0Smrg fi 55407a0395d0Smrgfi 55417a0395d0Smrgrm -f confcache 55427a0395d0Smrg 55437a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 55447a0395d0Smrg# Let make expand exec_prefix. 55457a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 55467a0395d0Smrg 55477a0395d0SmrgDEFS=-DHAVE_CONFIG_H 55487a0395d0Smrg 55497a0395d0Smrgac_libobjs= 55507a0395d0Smrgac_ltlibobjs= 55512adc0320SmrgU= 55527a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 55537a0395d0Smrg # 1. Remove the extension, and $U if already installed. 55547a0395d0Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 55557366012aSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 55567a0395d0Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 55577a0395d0Smrg # will be set to the directory where LIBOBJS objects are built. 55582adc0320Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 55592adc0320Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 55607a0395d0Smrgdone 55617a0395d0SmrgLIBOBJS=$ac_libobjs 55627a0395d0Smrg 55637a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs 55647a0395d0Smrg 55657a0395d0Smrg 55667366012aSmrg if test -n "$EXEEXT"; then 55677366012aSmrg am__EXEEXT_TRUE= 55687366012aSmrg am__EXEEXT_FALSE='#' 55697366012aSmrgelse 55707366012aSmrg am__EXEEXT_TRUE='#' 55717366012aSmrg am__EXEEXT_FALSE= 55727366012aSmrgfi 55737366012aSmrg 55747a0395d0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 55752adc0320Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 55762adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 55777a0395d0Smrgfi 55787a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 55792adc0320Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 55802adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 55817a0395d0Smrgfi 55827a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 55832adc0320Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 55842adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 55857a0395d0Smrgfi 55867a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 55872adc0320Smrg as_fn_error $? "conditional \"LINT\" was never defined. 55882adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 55897a0395d0Smrgfi 55907a0395d0Smrg 55912adc0320Smrg: "${CONFIG_STATUS=./config.status}" 55927366012aSmrgac_write_fail=0 55937a0395d0Smrgac_clean_files_save=$ac_clean_files 55947a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 55952adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 55967366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 55972adc0320Smrgas_write_fail=0 55982adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 55997a0395d0Smrg#! $SHELL 56007a0395d0Smrg# Generated by $as_me. 56017a0395d0Smrg# Run this file to recreate the current configuration. 56027a0395d0Smrg# Compiler output produced by configure, useful for debugging 56037a0395d0Smrg# configure, is in config.log if it exists. 56047a0395d0Smrg 56057a0395d0Smrgdebug=false 56067a0395d0Smrgac_cs_recheck=false 56077a0395d0Smrgac_cs_silent=false 56087a0395d0Smrg 56092adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL} 56102adc0320Smrgexport SHELL 56112adc0320Smrg_ASEOF 56122adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 56132adc0320Smrg## -------------------- ## 56142adc0320Smrg## M4sh Initialization. ## 56152adc0320Smrg## -------------------- ## 56167a0395d0Smrg 56177a0395d0Smrg# Be more Bourne compatible 56187a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 56192adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 56207a0395d0Smrg emulate sh 56217a0395d0Smrg NULLCMD=: 56227366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 56237a0395d0Smrg # is contrary to our usage. Disable this feature. 56247a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 56257a0395d0Smrg setopt NO_GLOB_SUBST 56267a0395d0Smrgelse 56272adc0320Smrg case `(set -o) 2>/dev/null` in #( 56282adc0320Smrg *posix*) : 56292adc0320Smrg set -o posix ;; #( 56302adc0320Smrg *) : 56312adc0320Smrg ;; 56327a0395d0Smrgesac 56337a0395d0Smrgfi 56347a0395d0Smrg 56357a0395d0Smrg 56367366012aSmrgas_nl=' 56377366012aSmrg' 56387366012aSmrgexport as_nl 56397366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 56407366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 56417366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 56427366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 56432adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 56442adc0320Smrg# but without wasting forks for bash or zsh. 56452adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 56462adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 56472adc0320Smrg as_echo='print -r --' 56482adc0320Smrg as_echo_n='print -rn --' 56492adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56507366012aSmrg as_echo='printf %s\n' 56517366012aSmrg as_echo_n='printf %s' 56527366012aSmrgelse 56537366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56547366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56557366012aSmrg as_echo_n='/usr/ucb/echo -n' 56567a0395d0Smrg else 56577366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56587366012aSmrg as_echo_n_body='eval 56597366012aSmrg arg=$1; 56602adc0320Smrg case $arg in #( 56617366012aSmrg *"$as_nl"*) 56627366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 56637366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 56647366012aSmrg esac; 56657366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 56667366012aSmrg ' 56677366012aSmrg export as_echo_n_body 56687366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 56697a0395d0Smrg fi 56707366012aSmrg export as_echo_body 56717366012aSmrg as_echo='sh -c $as_echo_body as_echo' 56727366012aSmrgfi 56737366012aSmrg 56747366012aSmrg# The user is always right. 56757366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 56767366012aSmrg PATH_SEPARATOR=: 56777366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 56787366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 56797366012aSmrg PATH_SEPARATOR=';' 56807366012aSmrg } 56817a0395d0Smrgfi 56827a0395d0Smrg 56837a0395d0Smrg 56847a0395d0Smrg# IFS 56857a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 56867a0395d0Smrg# there to prevent editors from complaining about space-tab. 56877a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 56887a0395d0Smrg# splitting by setting IFS to empty value.) 56897a0395d0SmrgIFS=" "" $as_nl" 56907a0395d0Smrg 56917a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 56922adc0320Smrgas_myself= 56932adc0320Smrgcase $0 in #(( 56947a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 56957a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 56967a0395d0Smrgfor as_dir in $PATH 56977a0395d0Smrgdo 56987a0395d0Smrg IFS=$as_save_IFS 56997a0395d0Smrg test -z "$as_dir" && as_dir=. 57002adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 57012adc0320Smrg done 57027a0395d0SmrgIFS=$as_save_IFS 57037a0395d0Smrg 57047a0395d0Smrg ;; 57057a0395d0Smrgesac 57067a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 57077a0395d0Smrg# in which case we are not to be found in the path. 57087a0395d0Smrgif test "x$as_myself" = x; then 57097a0395d0Smrg as_myself=$0 57107a0395d0Smrgfi 57117a0395d0Smrgif test ! -f "$as_myself"; then 57127366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 57132adc0320Smrg exit 1 57147a0395d0Smrgfi 57157a0395d0Smrg 57162adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 57172adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 57182adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 57192adc0320Smrg# trigger a bug in pdksh 5.2.14. 57202adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 57212adc0320Smrgdo eval test x\${$as_var+set} = xset \ 57222adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 57237a0395d0Smrgdone 57247a0395d0SmrgPS1='$ ' 57257a0395d0SmrgPS2='> ' 57267a0395d0SmrgPS4='+ ' 57277a0395d0Smrg 57287a0395d0Smrg# NLS nuisances. 57297366012aSmrgLC_ALL=C 57307366012aSmrgexport LC_ALL 57317366012aSmrgLANGUAGE=C 57327366012aSmrgexport LANGUAGE 57337a0395d0Smrg 57342adc0320Smrg# CDPATH. 57352adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 57362adc0320Smrg 57372adc0320Smrg 57382adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 57392adc0320Smrg# ---------------------------------------- 57402adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 57412adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 57422adc0320Smrg# script with STATUS, using 1 if that was 0. 57432adc0320Smrgas_fn_error () 57442adc0320Smrg{ 57452adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 57462adc0320Smrg if test "$4"; then 57472adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 57482adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 57492adc0320Smrg fi 57502adc0320Smrg $as_echo "$as_me: error: $2" >&2 57512adc0320Smrg as_fn_exit $as_status 57522adc0320Smrg} # as_fn_error 57532adc0320Smrg 57542adc0320Smrg 57552adc0320Smrg# as_fn_set_status STATUS 57562adc0320Smrg# ----------------------- 57572adc0320Smrg# Set $? to STATUS, without forking. 57582adc0320Smrgas_fn_set_status () 57592adc0320Smrg{ 57602adc0320Smrg return $1 57612adc0320Smrg} # as_fn_set_status 57622adc0320Smrg 57632adc0320Smrg# as_fn_exit STATUS 57642adc0320Smrg# ----------------- 57652adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 57662adc0320Smrgas_fn_exit () 57672adc0320Smrg{ 57682adc0320Smrg set +e 57692adc0320Smrg as_fn_set_status $1 57702adc0320Smrg exit $1 57712adc0320Smrg} # as_fn_exit 57722adc0320Smrg 57732adc0320Smrg# as_fn_unset VAR 57742adc0320Smrg# --------------- 57752adc0320Smrg# Portably unset VAR. 57762adc0320Smrgas_fn_unset () 57772adc0320Smrg{ 57782adc0320Smrg { eval $1=; unset $1;} 57792adc0320Smrg} 57802adc0320Smrgas_unset=as_fn_unset 57812adc0320Smrg# as_fn_append VAR VALUE 57822adc0320Smrg# ---------------------- 57832adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 57842adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 57852adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 57862adc0320Smrg# implementations. 57872adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 57882adc0320Smrg eval 'as_fn_append () 57892adc0320Smrg { 57902adc0320Smrg eval $1+=\$2 57912adc0320Smrg }' 57922adc0320Smrgelse 57932adc0320Smrg as_fn_append () 57942adc0320Smrg { 57952adc0320Smrg eval $1=\$$1\$2 57962adc0320Smrg } 57972adc0320Smrgfi # as_fn_append 57982adc0320Smrg 57992adc0320Smrg# as_fn_arith ARG... 58002adc0320Smrg# ------------------ 58012adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 58022adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 58032adc0320Smrg# must be portable across $(()) and expr. 58042adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 58052adc0320Smrg eval 'as_fn_arith () 58062adc0320Smrg { 58072adc0320Smrg as_val=$(( $* )) 58082adc0320Smrg }' 58092adc0320Smrgelse 58102adc0320Smrg as_fn_arith () 58112adc0320Smrg { 58122adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 58132adc0320Smrg } 58142adc0320Smrgfi # as_fn_arith 58152adc0320Smrg 58162adc0320Smrg 58177a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 58187a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 58197a0395d0Smrg as_expr=expr 58207a0395d0Smrgelse 58217a0395d0Smrg as_expr=false 58227a0395d0Smrgfi 58237a0395d0Smrg 58247a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 58257a0395d0Smrg as_basename=basename 58267a0395d0Smrgelse 58277a0395d0Smrg as_basename=false 58287a0395d0Smrgfi 58297a0395d0Smrg 58302adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 58312adc0320Smrg as_dirname=dirname 58322adc0320Smrgelse 58332adc0320Smrg as_dirname=false 58342adc0320Smrgfi 58357a0395d0Smrg 58367a0395d0Smrgas_me=`$as_basename -- "$0" || 58377a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 58387a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 58397a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 58407366012aSmrg$as_echo X/"$0" | 58417a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 58427a0395d0Smrg s//\1/ 58437a0395d0Smrg q 58447a0395d0Smrg } 58457a0395d0Smrg /^X\/\(\/\/\)$/{ 58467a0395d0Smrg s//\1/ 58477a0395d0Smrg q 58487a0395d0Smrg } 58497a0395d0Smrg /^X\/\(\/\).*/{ 58507a0395d0Smrg s//\1/ 58517a0395d0Smrg q 58527a0395d0Smrg } 58537a0395d0Smrg s/.*/./; q'` 58547a0395d0Smrg 58552adc0320Smrg# Avoid depending upon Character Ranges. 58562adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 58572adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 58582adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 58592adc0320Smrgas_cr_digits='0123456789' 58602adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 58617a0395d0Smrg 58627a0395d0SmrgECHO_C= ECHO_N= ECHO_T= 58632adc0320Smrgcase `echo -n x` in #((((( 58647a0395d0Smrg-n*) 58652adc0320Smrg case `echo 'xy\c'` in 58667a0395d0Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 58672adc0320Smrg xy) ECHO_C='\c';; 58682adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 58692adc0320Smrg ECHO_T=' ';; 58707a0395d0Smrg esac;; 58717a0395d0Smrg*) 58727a0395d0Smrg ECHO_N='-n';; 58737a0395d0Smrgesac 58747a0395d0Smrg 58757a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file 58767a0395d0Smrgif test -d conf$$.dir; then 58777a0395d0Smrg rm -f conf$$.dir/conf$$.file 58787a0395d0Smrgelse 58797a0395d0Smrg rm -f conf$$.dir 58807366012aSmrg mkdir conf$$.dir 2>/dev/null 58817366012aSmrgfi 58827366012aSmrgif (echo >conf$$.file) 2>/dev/null; then 58837366012aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 58847366012aSmrg as_ln_s='ln -s' 58857366012aSmrg # ... but there are two gotchas: 58867366012aSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 58877366012aSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 58887366012aSmrg # In both cases, we have to default to `cp -p'. 58897366012aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 58907366012aSmrg as_ln_s='cp -p' 58917366012aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 58927366012aSmrg as_ln_s=ln 58937366012aSmrg else 58947a0395d0Smrg as_ln_s='cp -p' 58957366012aSmrg fi 58967a0395d0Smrgelse 58977a0395d0Smrg as_ln_s='cp -p' 58987a0395d0Smrgfi 58997a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 59007a0395d0Smrgrmdir conf$$.dir 2>/dev/null 59017a0395d0Smrg 59022adc0320Smrg 59032adc0320Smrg# as_fn_mkdir_p 59042adc0320Smrg# ------------- 59052adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 59062adc0320Smrgas_fn_mkdir_p () 59072adc0320Smrg{ 59082adc0320Smrg 59092adc0320Smrg case $as_dir in #( 59102adc0320Smrg -*) as_dir=./$as_dir;; 59112adc0320Smrg esac 59122adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 59132adc0320Smrg as_dirs= 59142adc0320Smrg while :; do 59152adc0320Smrg case $as_dir in #( 59162adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 59172adc0320Smrg *) as_qdir=$as_dir;; 59182adc0320Smrg esac 59192adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 59202adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 59212adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 59222adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 59232adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 59242adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 59252adc0320Smrg$as_echo X"$as_dir" | 59262adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 59272adc0320Smrg s//\1/ 59282adc0320Smrg q 59292adc0320Smrg } 59302adc0320Smrg /^X\(\/\/\)[^/].*/{ 59312adc0320Smrg s//\1/ 59322adc0320Smrg q 59332adc0320Smrg } 59342adc0320Smrg /^X\(\/\/\)$/{ 59352adc0320Smrg s//\1/ 59362adc0320Smrg q 59372adc0320Smrg } 59382adc0320Smrg /^X\(\/\).*/{ 59392adc0320Smrg s//\1/ 59402adc0320Smrg q 59412adc0320Smrg } 59422adc0320Smrg s/.*/./; q'` 59432adc0320Smrg test -d "$as_dir" && break 59442adc0320Smrg done 59452adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 59462adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 59472adc0320Smrg 59482adc0320Smrg 59492adc0320Smrg} # as_fn_mkdir_p 59507a0395d0Smrgif mkdir -p . 2>/dev/null; then 59512adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 59527a0395d0Smrgelse 59537a0395d0Smrg test -d ./-p && rmdir ./-p 59547a0395d0Smrg as_mkdir_p=false 59557a0395d0Smrgfi 59567a0395d0Smrg 59577a0395d0Smrgif test -x / >/dev/null 2>&1; then 59587a0395d0Smrg as_test_x='test -x' 59597a0395d0Smrgelse 59607a0395d0Smrg if ls -dL / >/dev/null 2>&1; then 59617a0395d0Smrg as_ls_L_option=L 59627a0395d0Smrg else 59637a0395d0Smrg as_ls_L_option= 59647a0395d0Smrg fi 59657a0395d0Smrg as_test_x=' 59667a0395d0Smrg eval sh -c '\'' 59677a0395d0Smrg if test -d "$1"; then 59687366012aSmrg test -d "$1/."; 59697a0395d0Smrg else 59702adc0320Smrg case $1 in #( 59717366012aSmrg -*)set "./$1";; 59727a0395d0Smrg esac; 59732adc0320Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 59747a0395d0Smrg ???[sx]*):;;*)false;;esac;fi 59757a0395d0Smrg '\'' sh 59767a0395d0Smrg ' 59777a0395d0Smrgfi 59787a0395d0Smrgas_executable_p=$as_test_x 59797a0395d0Smrg 59807a0395d0Smrg# Sed expression to map a string onto a valid CPP name. 59817a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 59827a0395d0Smrg 59837a0395d0Smrg# Sed expression to map a string onto a valid variable name. 59847a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59857a0395d0Smrg 59867a0395d0Smrg 59877a0395d0Smrgexec 6>&1 59882adc0320Smrg## ----------------------------------- ## 59892adc0320Smrg## Main body of $CONFIG_STATUS script. ## 59902adc0320Smrg## ----------------------------------- ## 59912adc0320Smrg_ASEOF 59922adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 59937a0395d0Smrg 59942adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59952adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to 59967a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their 59977a0395d0Smrg# values after options handling. 59987a0395d0Smrgac_log=" 59992852888eSmrgThis file was extended by xauth $as_me 1.0.6, which was 60002adc0320Smrggenerated by GNU Autoconf 2.68. Invocation command line was 60017a0395d0Smrg 60027a0395d0Smrg CONFIG_FILES = $CONFIG_FILES 60037a0395d0Smrg CONFIG_HEADERS = $CONFIG_HEADERS 60047a0395d0Smrg CONFIG_LINKS = $CONFIG_LINKS 60057a0395d0Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 60067a0395d0Smrg $ $0 $@ 60077a0395d0Smrg 60087a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 60097a0395d0Smrg" 60107a0395d0Smrg 60117a0395d0Smrg_ACEOF 60127a0395d0Smrg 60137366012aSmrgcase $ac_config_files in *" 60147366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 60157366012aSmrgesac 60167366012aSmrg 60177366012aSmrgcase $ac_config_headers in *" 60187366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 60197366012aSmrgesac 60207366012aSmrg 60217366012aSmrg 60227366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60237a0395d0Smrg# Files that config.status was made for. 60247a0395d0Smrgconfig_files="$ac_config_files" 60257a0395d0Smrgconfig_headers="$ac_config_headers" 60267a0395d0Smrgconfig_commands="$ac_config_commands" 60277a0395d0Smrg 60287a0395d0Smrg_ACEOF 60297a0395d0Smrg 60307366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60317a0395d0Smrgac_cs_usage="\ 60322adc0320Smrg\`$as_me' instantiates files and other configuration actions 60332adc0320Smrgfrom templates according to the current configuration. Unless the files 60342adc0320Smrgand actions are specified as TAGs, all are instantiated by default. 60357a0395d0Smrg 60362adc0320SmrgUsage: $0 [OPTION]... [TAG]... 60377a0395d0Smrg 60387a0395d0Smrg -h, --help print this help, then exit 60397a0395d0Smrg -V, --version print version number and configuration settings, then exit 60402adc0320Smrg --config print configuration, then exit 60417366012aSmrg -q, --quiet, --silent 60427366012aSmrg do not print progress messages 60437a0395d0Smrg -d, --debug don't remove temporary files 60447a0395d0Smrg --recheck update $as_me by reconfiguring in the same conditions 60457366012aSmrg --file=FILE[:TEMPLATE] 60467366012aSmrg instantiate the configuration file FILE 60477366012aSmrg --header=FILE[:TEMPLATE] 60487366012aSmrg instantiate the configuration header FILE 60497a0395d0Smrg 60507a0395d0SmrgConfiguration files: 60517a0395d0Smrg$config_files 60527a0395d0Smrg 60537a0395d0SmrgConfiguration headers: 60547a0395d0Smrg$config_headers 60557a0395d0Smrg 60567a0395d0SmrgConfiguration commands: 60577a0395d0Smrg$config_commands 60587a0395d0Smrg 60592adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 60607a0395d0Smrg 60617a0395d0Smrg_ACEOF 60627366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60632adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 60647a0395d0Smrgac_cs_version="\\ 60652852888eSmrgxauth config.status 1.0.6 60662adc0320Smrgconfigured by $0, generated by GNU Autoconf 2.68, 60672adc0320Smrg with options \\"\$ac_cs_config\\" 60687a0395d0Smrg 60692adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc. 60707a0395d0SmrgThis config.status script is free software; the Free Software Foundation 60717a0395d0Smrggives unlimited permission to copy, distribute and modify it." 60727a0395d0Smrg 60737a0395d0Smrgac_pwd='$ac_pwd' 60747a0395d0Smrgsrcdir='$srcdir' 60757a0395d0SmrgINSTALL='$INSTALL' 60767a0395d0SmrgMKDIR_P='$MKDIR_P' 60777366012aSmrgAWK='$AWK' 60787366012aSmrgtest -n "\$AWK" || AWK=awk 60797a0395d0Smrg_ACEOF 60807a0395d0Smrg 60817366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60827366012aSmrg# The default lists apply if the user does not specify any file. 60837a0395d0Smrgac_need_defaults=: 60847a0395d0Smrgwhile test $# != 0 60857a0395d0Smrgdo 60867a0395d0Smrg case $1 in 60872adc0320Smrg --*=?*) 60887a0395d0Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 60897a0395d0Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 60907a0395d0Smrg ac_shift=: 60917a0395d0Smrg ;; 60922adc0320Smrg --*=) 60932adc0320Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 60942adc0320Smrg ac_optarg= 60952adc0320Smrg ac_shift=: 60962adc0320Smrg ;; 60977a0395d0Smrg *) 60987a0395d0Smrg ac_option=$1 60997a0395d0Smrg ac_optarg=$2 61007a0395d0Smrg ac_shift=shift 61017a0395d0Smrg ;; 61027a0395d0Smrg esac 61037a0395d0Smrg 61047a0395d0Smrg case $ac_option in 61057a0395d0Smrg # Handling of the options. 61067a0395d0Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 61077a0395d0Smrg ac_cs_recheck=: ;; 61087a0395d0Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 61097366012aSmrg $as_echo "$ac_cs_version"; exit ;; 61102adc0320Smrg --config | --confi | --conf | --con | --co | --c ) 61112adc0320Smrg $as_echo "$ac_cs_config"; exit ;; 61127a0395d0Smrg --debug | --debu | --deb | --de | --d | -d ) 61137a0395d0Smrg debug=: ;; 61147a0395d0Smrg --file | --fil | --fi | --f ) 61157a0395d0Smrg $ac_shift 61167366012aSmrg case $ac_optarg in 61177366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 61182adc0320Smrg '') as_fn_error $? "missing file argument" ;; 61197366012aSmrg esac 61202adc0320Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 61217a0395d0Smrg ac_need_defaults=false;; 61227a0395d0Smrg --header | --heade | --head | --hea ) 61237a0395d0Smrg $ac_shift 61247366012aSmrg case $ac_optarg in 61257366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 61267366012aSmrg esac 61272adc0320Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 61287a0395d0Smrg ac_need_defaults=false;; 61297a0395d0Smrg --he | --h) 61307a0395d0Smrg # Conflict between --help and --header 61312adc0320Smrg as_fn_error $? "ambiguous option: \`$1' 61322adc0320SmrgTry \`$0 --help' for more information.";; 61337a0395d0Smrg --help | --hel | -h ) 61347366012aSmrg $as_echo "$ac_cs_usage"; exit ;; 61357a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 61367a0395d0Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 61377a0395d0Smrg ac_cs_silent=: ;; 61387a0395d0Smrg 61397a0395d0Smrg # This is an error. 61402adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$1' 61412adc0320SmrgTry \`$0 --help' for more information." ;; 61427a0395d0Smrg 61432adc0320Smrg *) as_fn_append ac_config_targets " $1" 61447a0395d0Smrg ac_need_defaults=false ;; 61457a0395d0Smrg 61467a0395d0Smrg esac 61477a0395d0Smrg shift 61487a0395d0Smrgdone 61497a0395d0Smrg 61507a0395d0Smrgac_configure_extra_args= 61517a0395d0Smrg 61527a0395d0Smrgif $ac_cs_silent; then 61537a0395d0Smrg exec 6>/dev/null 61547a0395d0Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 61557a0395d0Smrgfi 61567a0395d0Smrg 61577a0395d0Smrg_ACEOF 61587366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61597a0395d0Smrgif \$ac_cs_recheck; then 61607366012aSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 61617366012aSmrg shift 61627366012aSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 61637366012aSmrg CONFIG_SHELL='$SHELL' 61647a0395d0Smrg export CONFIG_SHELL 61657366012aSmrg exec "\$@" 61667a0395d0Smrgfi 61677a0395d0Smrg 61687a0395d0Smrg_ACEOF 61697366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61707a0395d0Smrgexec 5>>config.log 61717a0395d0Smrg{ 61727a0395d0Smrg echo 61737a0395d0Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 61747a0395d0Smrg## Running $as_me. ## 61757a0395d0Smrg_ASBOX 61767366012aSmrg $as_echo "$ac_log" 61777a0395d0Smrg} >&5 61787a0395d0Smrg 61797a0395d0Smrg_ACEOF 61807366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61817a0395d0Smrg# 61827a0395d0Smrg# INIT-COMMANDS 61837a0395d0Smrg# 61847a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 61857a0395d0Smrg 61867a0395d0Smrg_ACEOF 61877a0395d0Smrg 61887366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61897a0395d0Smrg 61907a0395d0Smrg# Handling of arguments. 61917a0395d0Smrgfor ac_config_target in $ac_config_targets 61927a0395d0Smrgdo 61937a0395d0Smrg case $ac_config_target in 61947a0395d0Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 61957a0395d0Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 61967a0395d0Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 61972852888eSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 61987a0395d0Smrg 61992adc0320Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 62007a0395d0Smrg esac 62017a0395d0Smrgdone 62027a0395d0Smrg 62037a0395d0Smrg 62047a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate, 62057a0395d0Smrg# then the envvar interface is used. Set only those that are not. 62067a0395d0Smrg# We use the long form for the default assignment because of an extremely 62077a0395d0Smrg# bizarre bug on SunOS 4.1.3. 62087a0395d0Smrgif $ac_need_defaults; then 62097a0395d0Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 62107a0395d0Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 62117a0395d0Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 62127a0395d0Smrgfi 62137a0395d0Smrg 62147a0395d0Smrg# Have a temporary directory for convenience. Make it in the build tree 62157a0395d0Smrg# simply because there is no reason against having it here, and in addition, 62167a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems. 62177a0395d0Smrg# Hook for its removal unless debugging. 62187a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned: 62197a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'. 62207a0395d0Smrg$debug || 62217a0395d0Smrg{ 62222adc0320Smrg tmp= ac_tmp= 62237a0395d0Smrg trap 'exit_status=$? 62242adc0320Smrg : "${ac_tmp:=$tmp}" 62252adc0320Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 62267a0395d0Smrg' 0 62272adc0320Smrg trap 'as_fn_exit 1' 1 2 13 15 62287a0395d0Smrg} 62297a0395d0Smrg# Create a (secure) tmp directory for tmp files. 62307a0395d0Smrg 62317a0395d0Smrg{ 62327a0395d0Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 62332adc0320Smrg test -d "$tmp" 62347a0395d0Smrg} || 62357a0395d0Smrg{ 62367a0395d0Smrg tmp=./conf$$-$RANDOM 62377a0395d0Smrg (umask 077 && mkdir "$tmp") 62382adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 62392adc0320Smrgac_tmp=$tmp 62407a0395d0Smrg 62417366012aSmrg# Set up the scripts for CONFIG_FILES section. 62427366012aSmrg# No need to generate them if there are no CONFIG_FILES. 62437366012aSmrg# This happens for instance with `./config.status config.h'. 62447a0395d0Smrgif test -n "$CONFIG_FILES"; then 62457a0395d0Smrg 62467a0395d0Smrg 62472adc0320Smrgac_cr=`echo X | tr X '\015'` 62482adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 62492adc0320Smrg# But we know of no other shell where ac_cr would be empty at this 62502adc0320Smrg# point, so we can use a bashism as a fallback. 62512adc0320Smrgif test "x$ac_cr" = x; then 62522adc0320Smrg eval ac_cr=\$\'\\r\' 62532adc0320Smrgfi 62547366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 62557366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 62567366012aSmrg ac_cs_awk_cr='\\r' 62577366012aSmrgelse 62587366012aSmrg ac_cs_awk_cr=$ac_cr 62597a0395d0Smrgfi 62607a0395d0Smrg 62612adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 62627a0395d0Smrg_ACEOF 62637a0395d0Smrg 62647a0395d0Smrg 62657366012aSmrg{ 62667366012aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 62677366012aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 62687366012aSmrg echo "_ACEOF" 62697366012aSmrg} >conf$$subs.sh || 62702adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 62712adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 62727a0395d0Smrgac_delim='%!_!# ' 62737a0395d0Smrgfor ac_last_try in false false false false false :; do 62747366012aSmrg . ./conf$$subs.sh || 62752adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 62767a0395d0Smrg 62777366012aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 62787366012aSmrg if test $ac_delim_n = $ac_delim_num; then 62797a0395d0Smrg break 62807a0395d0Smrg elif $ac_last_try; then 62812adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 62827a0395d0Smrg else 62837a0395d0Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 62847a0395d0Smrg fi 62857a0395d0Smrgdone 62867366012aSmrgrm -f conf$$subs.sh 62877a0395d0Smrg 62887366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62892adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 62907366012aSmrg_ACEOF 62917366012aSmrgsed -n ' 62927366012aSmrgh 62937366012aSmrgs/^/S["/; s/!.*/"]=/ 62947366012aSmrgp 62957366012aSmrgg 62967366012aSmrgs/^[^!]*!// 62977366012aSmrg:repl 62987366012aSmrgt repl 62997366012aSmrgs/'"$ac_delim"'$// 63007366012aSmrgt delim 63017366012aSmrg:nl 63027366012aSmrgh 63032adc0320Smrgs/\(.\{148\}\)..*/\1/ 63047366012aSmrgt more1 63057366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 63067366012aSmrgp 63077366012aSmrgn 63087366012aSmrgb repl 63097366012aSmrg:more1 63107366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 63117366012aSmrgp 63127366012aSmrgg 63137366012aSmrgs/.\{148\}// 63147366012aSmrgt nl 63157366012aSmrg:delim 63167366012aSmrgh 63172adc0320Smrgs/\(.\{148\}\)..*/\1/ 63187366012aSmrgt more2 63197366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 63207366012aSmrgp 63217366012aSmrgb 63227366012aSmrg:more2 63237366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 63247366012aSmrgp 63257366012aSmrgg 63267366012aSmrgs/.\{148\}// 63277366012aSmrgt delim 63287366012aSmrg' <conf$$subs.awk | sed ' 63297366012aSmrg/^[^""]/{ 63307366012aSmrg N 63317366012aSmrg s/\n// 63327366012aSmrg} 63337366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 63347366012aSmrgrm -f conf$$subs.awk 63357366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 63367366012aSmrg_ACAWK 63372adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 63387366012aSmrg for (key in S) S_is_set[key] = 1 63397366012aSmrg FS = "" 63407366012aSmrg 63417366012aSmrg} 63427366012aSmrg{ 63437366012aSmrg line = $ 0 63447366012aSmrg nfields = split(line, field, "@") 63457366012aSmrg substed = 0 63467366012aSmrg len = length(field[1]) 63477366012aSmrg for (i = 2; i < nfields; i++) { 63487366012aSmrg key = field[i] 63497366012aSmrg keylen = length(key) 63507366012aSmrg if (S_is_set[key]) { 63517366012aSmrg value = S[key] 63527366012aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 63537366012aSmrg len += length(value) + length(field[++i]) 63547366012aSmrg substed = 1 63557366012aSmrg } else 63567366012aSmrg len += 1 + keylen 63577366012aSmrg } 63587366012aSmrg 63597366012aSmrg print line 63607366012aSmrg} 63617a0395d0Smrg 63627366012aSmrg_ACAWK 63637a0395d0Smrg_ACEOF 63647366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 63657366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 63667366012aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 63677366012aSmrgelse 63687366012aSmrg cat 63692adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 63702adc0320Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 63717a0395d0Smrg_ACEOF 63727a0395d0Smrg 63732adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 63742adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 63757a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty 63767a0395d0Smrg# (actually we leave an empty line to preserve line numbers). 63777a0395d0Smrgif test "x$srcdir" = x.; then 63782adc0320Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 63792adc0320Smrgh 63802adc0320Smrgs/// 63812adc0320Smrgs/^/:/ 63822adc0320Smrgs/[ ]*$/:/ 63832adc0320Smrgs/:\$(srcdir):/:/g 63842adc0320Smrgs/:\${srcdir}:/:/g 63852adc0320Smrgs/:@srcdir@:/:/g 63862adc0320Smrgs/^:*// 63877a0395d0Smrgs/:*$// 63882adc0320Smrgx 63892adc0320Smrgs/\(=[ ]*\).*/\1/ 63902adc0320SmrgG 63912adc0320Smrgs/\n// 63927a0395d0Smrgs/^[^=]*=[ ]*$// 63937a0395d0Smrg}' 63947a0395d0Smrgfi 63957a0395d0Smrg 63967366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 63977a0395d0Smrgfi # test -n "$CONFIG_FILES" 63987a0395d0Smrg 63997366012aSmrg# Set up the scripts for CONFIG_HEADERS section. 64007366012aSmrg# No need to generate them if there are no CONFIG_HEADERS. 64017366012aSmrg# This happens for instance with `./config.status Makefile'. 64027366012aSmrgif test -n "$CONFIG_HEADERS"; then 64032adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 64047366012aSmrgBEGIN { 64057366012aSmrg_ACEOF 64067366012aSmrg 64077366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 64087366012aSmrg# here-document in config.status, that substitutes the proper values into 64097366012aSmrg# config.h.in to produce config.h. 64107366012aSmrg 64117366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 64127366012aSmrg# handling of long lines. 64137366012aSmrgac_delim='%!_!# ' 64147366012aSmrgfor ac_last_try in false false :; do 64152adc0320Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 64162adc0320Smrg if test -z "$ac_tt"; then 64177366012aSmrg break 64187366012aSmrg elif $ac_last_try; then 64192adc0320Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 64207366012aSmrg else 64217366012aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 64227366012aSmrg fi 64237366012aSmrgdone 64247366012aSmrg 64257366012aSmrg# For the awk script, D is an array of macro values keyed by name, 64267366012aSmrg# likewise P contains macro parameters if any. Preserve backslash 64277366012aSmrg# newline sequences. 64287366012aSmrg 64297366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 64307366012aSmrgsed -n ' 64317366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 64327366012aSmrgt rset 64337366012aSmrg:rset 64347366012aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 64357366012aSmrgt def 64367366012aSmrgd 64377366012aSmrg:def 64387366012aSmrgs/\\$// 64397366012aSmrgt bsnl 64407366012aSmrgs/["\\]/\\&/g 64417366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 64427366012aSmrgD["\1"]=" \3"/p 64437366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 64447366012aSmrgd 64457366012aSmrg:bsnl 64467366012aSmrgs/["\\]/\\&/g 64477366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 64487366012aSmrgD["\1"]=" \3\\\\\\n"\\/p 64497366012aSmrgt cont 64507366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 64517366012aSmrgt cont 64527366012aSmrgd 64537366012aSmrg:cont 64547366012aSmrgn 64557366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 64567366012aSmrgt clear 64577366012aSmrg:clear 64587366012aSmrgs/\\$// 64597366012aSmrgt bsnlc 64607366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 64617366012aSmrgd 64627366012aSmrg:bsnlc 64637366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 64647366012aSmrgb cont 64657366012aSmrg' <confdefs.h | sed ' 64667366012aSmrgs/'"$ac_delim"'/"\\\ 64677366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 64687366012aSmrg 64697366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 64707366012aSmrg for (key in D) D_is_set[key] = 1 64717366012aSmrg FS = "" 64727366012aSmrg} 64737366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 64747366012aSmrg line = \$ 0 64757366012aSmrg split(line, arg, " ") 64767366012aSmrg if (arg[1] == "#") { 64777366012aSmrg defundef = arg[2] 64787366012aSmrg mac1 = arg[3] 64797366012aSmrg } else { 64807366012aSmrg defundef = substr(arg[1], 2) 64817366012aSmrg mac1 = arg[2] 64827366012aSmrg } 64837366012aSmrg split(mac1, mac2, "(") #) 64847366012aSmrg macro = mac2[1] 64857366012aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 64867366012aSmrg if (D_is_set[macro]) { 64877366012aSmrg # Preserve the white space surrounding the "#". 64887366012aSmrg print prefix "define", macro P[macro] D[macro] 64897366012aSmrg next 64907366012aSmrg } else { 64917366012aSmrg # Replace #undef with comments. This is necessary, for example, 64927366012aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 64937366012aSmrg # on some systems where configure will not decide to define it. 64947366012aSmrg if (defundef == "undef") { 64957366012aSmrg print "/*", prefix defundef, macro, "*/" 64967366012aSmrg next 64977366012aSmrg } 64987366012aSmrg } 64997366012aSmrg} 65007366012aSmrg{ print } 65017366012aSmrg_ACAWK 65027366012aSmrg_ACEOF 65037366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 65042adc0320Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 65057366012aSmrgfi # test -n "$CONFIG_HEADERS" 65067366012aSmrg 65077a0395d0Smrg 65087366012aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 65097366012aSmrgshift 65107366012aSmrgfor ac_tag 65117a0395d0Smrgdo 65127a0395d0Smrg case $ac_tag in 65137a0395d0Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 65147a0395d0Smrg esac 65157a0395d0Smrg case $ac_mode$ac_tag in 65167a0395d0Smrg :[FHL]*:*);; 65172adc0320Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 65187a0395d0Smrg :[FH]-) ac_tag=-:-;; 65197a0395d0Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 65207a0395d0Smrg esac 65217a0395d0Smrg ac_save_IFS=$IFS 65227a0395d0Smrg IFS=: 65237a0395d0Smrg set x $ac_tag 65247a0395d0Smrg IFS=$ac_save_IFS 65257a0395d0Smrg shift 65267a0395d0Smrg ac_file=$1 65277a0395d0Smrg shift 65287a0395d0Smrg 65297a0395d0Smrg case $ac_mode in 65307a0395d0Smrg :L) ac_source=$1;; 65317a0395d0Smrg :[FH]) 65327a0395d0Smrg ac_file_inputs= 65337a0395d0Smrg for ac_f 65347a0395d0Smrg do 65357a0395d0Smrg case $ac_f in 65362adc0320Smrg -) ac_f="$ac_tmp/stdin";; 65377a0395d0Smrg *) # Look for the file first in the build tree, then in the source tree 65387a0395d0Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 65397a0395d0Smrg # because $ac_f cannot contain `:'. 65407a0395d0Smrg test -f "$ac_f" || 65417a0395d0Smrg case $ac_f in 65427a0395d0Smrg [\\/$]*) false;; 65437a0395d0Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 65447a0395d0Smrg esac || 65452adc0320Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 65467a0395d0Smrg esac 65477366012aSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 65482adc0320Smrg as_fn_append ac_file_inputs " '$ac_f'" 65497a0395d0Smrg done 65507a0395d0Smrg 65517a0395d0Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 65527a0395d0Smrg # use $as_me), people would be surprised to read: 65537a0395d0Smrg # /* config.h. Generated by config.status. */ 65547366012aSmrg configure_input='Generated from '` 65557366012aSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 65567366012aSmrg `' by configure.' 65577a0395d0Smrg if test x"$ac_file" != x-; then 65587a0395d0Smrg configure_input="$ac_file. $configure_input" 65592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 65607366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;} 65617a0395d0Smrg fi 65627366012aSmrg # Neutralize special characters interpreted by sed in replacement strings. 65637366012aSmrg case $configure_input in #( 65647366012aSmrg *\&* | *\|* | *\\* ) 65657366012aSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 65667366012aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 65677366012aSmrg *) ac_sed_conf_input=$configure_input;; 65687366012aSmrg esac 65697a0395d0Smrg 65707a0395d0Smrg case $ac_tag in 65712adc0320Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 65722adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 65737a0395d0Smrg esac 65747a0395d0Smrg ;; 65757a0395d0Smrg esac 65767a0395d0Smrg 65777a0395d0Smrg ac_dir=`$as_dirname -- "$ac_file" || 65787a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 65797a0395d0Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 65807a0395d0Smrg X"$ac_file" : 'X\(//\)$' \| \ 65817a0395d0Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 65827366012aSmrg$as_echo X"$ac_file" | 65837a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 65847a0395d0Smrg s//\1/ 65857a0395d0Smrg q 65867a0395d0Smrg } 65877a0395d0Smrg /^X\(\/\/\)[^/].*/{ 65887a0395d0Smrg s//\1/ 65897a0395d0Smrg q 65907a0395d0Smrg } 65917a0395d0Smrg /^X\(\/\/\)$/{ 65927a0395d0Smrg s//\1/ 65937a0395d0Smrg q 65947a0395d0Smrg } 65957a0395d0Smrg /^X\(\/\).*/{ 65967a0395d0Smrg s//\1/ 65977a0395d0Smrg q 65987a0395d0Smrg } 65997a0395d0Smrg s/.*/./; q'` 66002adc0320Smrg as_dir="$ac_dir"; as_fn_mkdir_p 66017a0395d0Smrg ac_builddir=. 66027a0395d0Smrg 66037a0395d0Smrgcase "$ac_dir" in 66047a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 66057a0395d0Smrg*) 66067366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 66077a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 66087366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 66097a0395d0Smrg case $ac_top_builddir_sub in 66107a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 66117a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 66127a0395d0Smrg esac ;; 66137a0395d0Smrgesac 66147a0395d0Smrgac_abs_top_builddir=$ac_pwd 66157a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 66167a0395d0Smrg# for backward compatibility: 66177a0395d0Smrgac_top_builddir=$ac_top_build_prefix 66187a0395d0Smrg 66197a0395d0Smrgcase $srcdir in 66207a0395d0Smrg .) # We are building in place. 66217a0395d0Smrg ac_srcdir=. 66227a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 66237a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 66247a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 66257a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 66267a0395d0Smrg ac_top_srcdir=$srcdir 66277a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 66287a0395d0Smrg *) # Relative name. 66297a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 66307a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 66317a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 66327a0395d0Smrgesac 66337a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 66347a0395d0Smrg 66357a0395d0Smrg 66367a0395d0Smrg case $ac_mode in 66377a0395d0Smrg :F) 66387a0395d0Smrg # 66397a0395d0Smrg # CONFIG_FILE 66407a0395d0Smrg # 66417a0395d0Smrg 66427a0395d0Smrg case $INSTALL in 66437a0395d0Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 66447a0395d0Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 66457a0395d0Smrg esac 66467a0395d0Smrg ac_MKDIR_P=$MKDIR_P 66477a0395d0Smrg case $MKDIR_P in 66487a0395d0Smrg [\\/$]* | ?:[\\/]* ) ;; 66497a0395d0Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 66507a0395d0Smrg esac 66517a0395d0Smrg_ACEOF 66527a0395d0Smrg 66537366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66547a0395d0Smrg# If the template does not know about datarootdir, expand it. 66557a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60. 66567a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen= 66577366012aSmrgac_sed_dataroot=' 66587366012aSmrg/datarootdir/ { 66597a0395d0Smrg p 66607a0395d0Smrg q 66617a0395d0Smrg} 66627a0395d0Smrg/@datadir@/p 66637a0395d0Smrg/@docdir@/p 66647a0395d0Smrg/@infodir@/p 66657a0395d0Smrg/@localedir@/p 66662adc0320Smrg/@mandir@/p' 66677366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 66687a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;; 66697a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 66702adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 66717366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 66727a0395d0Smrg_ACEOF 66737366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66747a0395d0Smrg ac_datarootdir_hack=' 66757a0395d0Smrg s&@datadir@&$datadir&g 66767a0395d0Smrg s&@docdir@&$docdir&g 66777a0395d0Smrg s&@infodir@&$infodir&g 66787a0395d0Smrg s&@localedir@&$localedir&g 66797a0395d0Smrg s&@mandir@&$mandir&g 66802adc0320Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 66817a0395d0Smrgesac 66827a0395d0Smrg_ACEOF 66837a0395d0Smrg 66847a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'. 66857a0395d0Smrg# Shell code in configure.ac might set extrasub. 66867a0395d0Smrg# FIXME: do we really want to maintain this feature? 66877366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66887366012aSmrgac_sed_extra="$ac_vpsub 66897a0395d0Smrg$extrasub 66907a0395d0Smrg_ACEOF 66917366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66927a0395d0Smrg:t 66937a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 66947366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 66957a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 66967366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 66977a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t 66987a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 66997a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 67007a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 67017a0395d0Smrgs&@builddir@&$ac_builddir&;t t 67027a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 67037a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 67047a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t 67057a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 67067a0395d0Smrg$ac_datarootdir_hack 67077366012aSmrg" 67082adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 67092adc0320Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67107a0395d0Smrg 67117a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 67122adc0320Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 67132adc0320Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 67142adc0320Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 67152adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67162adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&5 67177366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67182adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 67197a0395d0Smrg 67202adc0320Smrg rm -f "$ac_tmp/stdin" 67217a0395d0Smrg case $ac_file in 67222adc0320Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 67232adc0320Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 67247366012aSmrg esac \ 67252adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67267a0395d0Smrg ;; 67277a0395d0Smrg :H) 67287a0395d0Smrg # 67297a0395d0Smrg # CONFIG_HEADER 67307a0395d0Smrg # 67317a0395d0Smrg if test x"$ac_file" != x-; then 67327366012aSmrg { 67337366012aSmrg $as_echo "/* $configure_input */" \ 67342adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 67352adc0320Smrg } >"$ac_tmp/config.h" \ 67362adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67372adc0320Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 67382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 67397366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 67407a0395d0Smrg else 67417366012aSmrg rm -f "$ac_file" 67422adc0320Smrg mv "$ac_tmp/config.h" "$ac_file" \ 67432adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67447a0395d0Smrg fi 67457a0395d0Smrg else 67467366012aSmrg $as_echo "/* $configure_input */" \ 67472adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 67482adc0320Smrg || as_fn_error $? "could not create -" "$LINENO" 5 67497a0395d0Smrg fi 67507366012aSmrg# Compute "$ac_file"'s index in $config_headers. 67517366012aSmrg_am_arg="$ac_file" 67527a0395d0Smrg_am_stamp_count=1 67537a0395d0Smrgfor _am_header in $config_headers :; do 67547a0395d0Smrg case $_am_header in 67557a0395d0Smrg $_am_arg | $_am_arg:* ) 67567a0395d0Smrg break ;; 67577a0395d0Smrg * ) 67587a0395d0Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 67597a0395d0Smrg esac 67607a0395d0Smrgdone 67617a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 67627a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67637a0395d0Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 67647a0395d0Smrg X"$_am_arg" : 'X\(//\)$' \| \ 67657a0395d0Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 67667366012aSmrg$as_echo X"$_am_arg" | 67677a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67687a0395d0Smrg s//\1/ 67697a0395d0Smrg q 67707a0395d0Smrg } 67717a0395d0Smrg /^X\(\/\/\)[^/].*/{ 67727a0395d0Smrg s//\1/ 67737a0395d0Smrg q 67747a0395d0Smrg } 67757a0395d0Smrg /^X\(\/\/\)$/{ 67767a0395d0Smrg s//\1/ 67777a0395d0Smrg q 67787a0395d0Smrg } 67797a0395d0Smrg /^X\(\/\).*/{ 67807a0395d0Smrg s//\1/ 67817a0395d0Smrg q 67827a0395d0Smrg } 67837a0395d0Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 67847a0395d0Smrg ;; 67857a0395d0Smrg 67862adc0320Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 67877366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 67887a0395d0Smrg ;; 67897a0395d0Smrg esac 67907a0395d0Smrg 67917a0395d0Smrg 67927a0395d0Smrg case $ac_file$ac_mode in 67937366012aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 67947366012aSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 67957366012aSmrg # are listed without --file. Let's play safe and only enable the eval 67967366012aSmrg # if we detect the quoting. 67977366012aSmrg case $CONFIG_FILES in 67987366012aSmrg *\'*) eval set x "$CONFIG_FILES" ;; 67997366012aSmrg *) set x $CONFIG_FILES ;; 68007366012aSmrg esac 68017366012aSmrg shift 68027366012aSmrg for mf 68037366012aSmrg do 68047366012aSmrg # Strip MF so we end up with the name of the file. 68057366012aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 68067366012aSmrg # Check whether this is an Automake generated Makefile or not. 68077366012aSmrg # We used to match only the files named `Makefile.in', but 68087366012aSmrg # some people rename them; so instead we look at the file content. 68097366012aSmrg # Grep'ing the first line is not enough: some people post-process 68107366012aSmrg # each Makefile.in and add a new line on top of each file to say so. 68117366012aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 68127366012aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 68137366012aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 68147366012aSmrg dirpart=`$as_dirname -- "$mf" || 68157a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68167a0395d0Smrg X"$mf" : 'X\(//\)[^/]' \| \ 68177a0395d0Smrg X"$mf" : 'X\(//\)$' \| \ 68187a0395d0Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 68197366012aSmrg$as_echo X"$mf" | 68207a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68217a0395d0Smrg s//\1/ 68227a0395d0Smrg q 68237a0395d0Smrg } 68247a0395d0Smrg /^X\(\/\/\)[^/].*/{ 68257a0395d0Smrg s//\1/ 68267a0395d0Smrg q 68277a0395d0Smrg } 68287a0395d0Smrg /^X\(\/\/\)$/{ 68297a0395d0Smrg s//\1/ 68307a0395d0Smrg q 68317a0395d0Smrg } 68327a0395d0Smrg /^X\(\/\).*/{ 68337a0395d0Smrg s//\1/ 68347a0395d0Smrg q 68357a0395d0Smrg } 68367a0395d0Smrg s/.*/./; q'` 68377366012aSmrg else 68387366012aSmrg continue 68397366012aSmrg fi 68407366012aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 68417366012aSmrg # from the Makefile without running `make'. 68427366012aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 68437366012aSmrg test -z "$DEPDIR" && continue 68447366012aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 68457366012aSmrg test -z "am__include" && continue 68467366012aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 68477366012aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 68487366012aSmrg U=`sed -n 's/^U = //p' < "$mf"` 68497366012aSmrg # Find all dependency output files, they are included files with 68507366012aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 68517366012aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 68527366012aSmrg # expansion. 68537366012aSmrg for file in `sed -n " 68547366012aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 68557366012aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 68567366012aSmrg # Make sure the directory exists. 68577366012aSmrg test -f "$dirpart/$file" && continue 68587366012aSmrg fdir=`$as_dirname -- "$file" || 68597a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68607a0395d0Smrg X"$file" : 'X\(//\)[^/]' \| \ 68617a0395d0Smrg X"$file" : 'X\(//\)$' \| \ 68627a0395d0Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 68637366012aSmrg$as_echo X"$file" | 68647a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68657a0395d0Smrg s//\1/ 68667a0395d0Smrg q 68677a0395d0Smrg } 68687a0395d0Smrg /^X\(\/\/\)[^/].*/{ 68697a0395d0Smrg s//\1/ 68707a0395d0Smrg q 68717a0395d0Smrg } 68727a0395d0Smrg /^X\(\/\/\)$/{ 68737a0395d0Smrg s//\1/ 68747a0395d0Smrg q 68757a0395d0Smrg } 68767a0395d0Smrg /^X\(\/\).*/{ 68777a0395d0Smrg s//\1/ 68787a0395d0Smrg q 68797a0395d0Smrg } 68807a0395d0Smrg s/.*/./; q'` 68812adc0320Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 68827366012aSmrg # echo "creating $dirpart/$file" 68837366012aSmrg echo '# dummy' > "$dirpart/$file" 68847366012aSmrg done 68857a0395d0Smrg done 68867366012aSmrg} 68877a0395d0Smrg ;; 68887a0395d0Smrg 68897a0395d0Smrg esac 68907a0395d0Smrgdone # for ac_tag 68917a0395d0Smrg 68927a0395d0Smrg 68932adc0320Smrgas_fn_exit 0 68947a0395d0Smrg_ACEOF 68957a0395d0Smrgac_clean_files=$ac_clean_files_save 68967a0395d0Smrg 68977366012aSmrgtest $ac_write_fail = 0 || 68982adc0320Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 68997366012aSmrg 69007a0395d0Smrg 69017a0395d0Smrg# configure is writing to config.log, and then calls config.status. 69027a0395d0Smrg# config.status does its own redirection, appending to config.log. 69037a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 69047a0395d0Smrg# by configure, so config.status won't be able to write to it; its 69057a0395d0Smrg# output is simply discarded. So we exec the FD to /dev/null, 69067a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and 69077a0395d0Smrg# appended to by config.status. When coming back to configure, we 69087a0395d0Smrg# need to make the FD available again. 69097a0395d0Smrgif test "$no_create" != yes; then 69107a0395d0Smrg ac_cs_success=: 69117a0395d0Smrg ac_config_status_args= 69127a0395d0Smrg test "$silent" = yes && 69137a0395d0Smrg ac_config_status_args="$ac_config_status_args --quiet" 69147a0395d0Smrg exec 5>/dev/null 69157a0395d0Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 69167a0395d0Smrg exec 5>>config.log 69177a0395d0Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 69187a0395d0Smrg # would make configure fail if this is the last instruction. 69192adc0320Smrg $ac_cs_success || as_fn_exit 1 69207a0395d0Smrgfi 69217366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 69222adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 69237366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 69247366012aSmrgfi 69257a0395d0Smrg 6926