configure revision fb23d3a8
164ce7165Smrg#! /bin/sh 264ce7165Smrg# Guess values for system-dependent variables and create Makefiles. 3fb23d3a8Smrg# Generated by GNU Autoconf 2.63 for xhost 1.0.3. 464ce7165Smrg# 564ce7165Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 664ce7165Smrg# 764ce7165Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8fb23d3a8Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 964ce7165Smrg# This configure script is free software; the Free Software Foundation 1064ce7165Smrg# gives unlimited permission to copy, distribute and modify it. 1164ce7165Smrg## --------------------- ## 1264ce7165Smrg## M4sh Initialization. ## 1364ce7165Smrg## --------------------- ## 1464ce7165Smrg 1564ce7165Smrg# Be more Bourne compatible 1664ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh 1764ce7165Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 1864ce7165Smrg emulate sh 1964ce7165Smrg NULLCMD=: 20fb23d3a8Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2164ce7165Smrg # is contrary to our usage. Disable this feature. 2264ce7165Smrg alias -g '${1+"$@"}'='"$@"' 2364ce7165Smrg setopt NO_GLOB_SUBST 2464ce7165Smrgelse 2564ce7165Smrg case `(set -o) 2>/dev/null` in 2664ce7165Smrg *posix*) set -o posix ;; 2764ce7165Smrgesac 2864ce7165Smrg 2964ce7165Smrgfi 3064ce7165Smrg 3164ce7165Smrg 3264ce7165Smrg 3364ce7165Smrg 3464ce7165Smrg# PATH needs CR 3564ce7165Smrg# Avoid depending upon Character Ranges. 3664ce7165Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 3764ce7165Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3864ce7165Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 3964ce7165Smrgas_cr_digits='0123456789' 4064ce7165Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4164ce7165Smrg 42fb23d3a8Smrgas_nl=' 43fb23d3a8Smrg' 44fb23d3a8Smrgexport as_nl 45fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 46fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49fb23d3a8Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50fb23d3a8Smrg as_echo='printf %s\n' 51fb23d3a8Smrg as_echo_n='printf %s' 52fb23d3a8Smrgelse 53fb23d3a8Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54fb23d3a8Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55fb23d3a8Smrg as_echo_n='/usr/ucb/echo -n' 5664ce7165Smrg else 57fb23d3a8Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58fb23d3a8Smrg as_echo_n_body='eval 59fb23d3a8Smrg arg=$1; 60fb23d3a8Smrg case $arg in 61fb23d3a8Smrg *"$as_nl"*) 62fb23d3a8Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63fb23d3a8Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64fb23d3a8Smrg esac; 65fb23d3a8Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66fb23d3a8Smrg ' 67fb23d3a8Smrg export as_echo_n_body 68fb23d3a8Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 6964ce7165Smrg fi 70fb23d3a8Smrg export as_echo_body 71fb23d3a8Smrg as_echo='sh -c $as_echo_body as_echo' 72fb23d3a8Smrgfi 73fb23d3a8Smrg 74fb23d3a8Smrg# The user is always right. 75fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then 76fb23d3a8Smrg PATH_SEPARATOR=: 77fb23d3a8Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78fb23d3a8Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79fb23d3a8Smrg PATH_SEPARATOR=';' 80fb23d3a8Smrg } 8164ce7165Smrgfi 8264ce7165Smrg 8364ce7165Smrg# Support unset when possible. 8464ce7165Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8564ce7165Smrg as_unset=unset 8664ce7165Smrgelse 8764ce7165Smrg as_unset=false 8864ce7165Smrgfi 8964ce7165Smrg 9064ce7165Smrg 9164ce7165Smrg# IFS 9264ce7165Smrg# We need space, tab and new line, in precisely that order. Quoting is 9364ce7165Smrg# there to prevent editors from complaining about space-tab. 9464ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9564ce7165Smrg# splitting by setting IFS to empty value.) 9664ce7165SmrgIFS=" "" $as_nl" 9764ce7165Smrg 9864ce7165Smrg# Find who we are. Look in the path if we contain no directory separator. 9964ce7165Smrgcase $0 in 10064ce7165Smrg *[\\/]* ) as_myself=$0 ;; 10164ce7165Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10264ce7165Smrgfor as_dir in $PATH 10364ce7165Smrgdo 10464ce7165Smrg IFS=$as_save_IFS 10564ce7165Smrg test -z "$as_dir" && as_dir=. 10664ce7165Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10764ce7165Smrgdone 10864ce7165SmrgIFS=$as_save_IFS 10964ce7165Smrg 11064ce7165Smrg ;; 11164ce7165Smrgesac 11264ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11364ce7165Smrg# in which case we are not to be found in the path. 11464ce7165Smrgif test "x$as_myself" = x; then 11564ce7165Smrg as_myself=$0 11664ce7165Smrgfi 11764ce7165Smrgif test ! -f "$as_myself"; then 118fb23d3a8Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11964ce7165Smrg { (exit 1); exit 1; } 12064ce7165Smrgfi 12164ce7165Smrg 12264ce7165Smrg# Work around bugs in pre-3.0 UWIN ksh. 12364ce7165Smrgfor as_var in ENV MAIL MAILPATH 12464ce7165Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12564ce7165Smrgdone 12664ce7165SmrgPS1='$ ' 12764ce7165SmrgPS2='> ' 12864ce7165SmrgPS4='+ ' 12964ce7165Smrg 13064ce7165Smrg# NLS nuisances. 131fb23d3a8SmrgLC_ALL=C 132fb23d3a8Smrgexport LC_ALL 133fb23d3a8SmrgLANGUAGE=C 134fb23d3a8Smrgexport LANGUAGE 13564ce7165Smrg 13664ce7165Smrg# Required to use basename. 13764ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 13864ce7165Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 13964ce7165Smrg as_expr=expr 14064ce7165Smrgelse 14164ce7165Smrg as_expr=false 14264ce7165Smrgfi 14364ce7165Smrg 14464ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14564ce7165Smrg as_basename=basename 14664ce7165Smrgelse 14764ce7165Smrg as_basename=false 14864ce7165Smrgfi 14964ce7165Smrg 15064ce7165Smrg 15164ce7165Smrg# Name of the executable. 15264ce7165Smrgas_me=`$as_basename -- "$0" || 15364ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15464ce7165Smrg X"$0" : 'X\(//\)$' \| \ 15564ce7165Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 156fb23d3a8Smrg$as_echo X/"$0" | 15764ce7165Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 15864ce7165Smrg s//\1/ 15964ce7165Smrg q 16064ce7165Smrg } 16164ce7165Smrg /^X\/\(\/\/\)$/{ 16264ce7165Smrg s//\1/ 16364ce7165Smrg q 16464ce7165Smrg } 16564ce7165Smrg /^X\/\(\/\).*/{ 16664ce7165Smrg s//\1/ 16764ce7165Smrg q 16864ce7165Smrg } 16964ce7165Smrg s/.*/./; q'` 17064ce7165Smrg 17164ce7165Smrg# CDPATH. 17264ce7165Smrg$as_unset CDPATH 17364ce7165Smrg 17464ce7165Smrg 17564ce7165Smrgif test "x$CONFIG_SHELL" = x; then 17664ce7165Smrg if (eval ":") 2>/dev/null; then 17764ce7165Smrg as_have_required=yes 17864ce7165Smrgelse 17964ce7165Smrg as_have_required=no 18064ce7165Smrgfi 18164ce7165Smrg 182fb23d3a8Smrg if test $as_have_required = yes && (eval ": 18364ce7165Smrg(as_func_return () { 18464ce7165Smrg (exit \$1) 18564ce7165Smrg} 18664ce7165Smrgas_func_success () { 18764ce7165Smrg as_func_return 0 18864ce7165Smrg} 18964ce7165Smrgas_func_failure () { 19064ce7165Smrg as_func_return 1 19164ce7165Smrg} 19264ce7165Smrgas_func_ret_success () { 19364ce7165Smrg return 0 19464ce7165Smrg} 19564ce7165Smrgas_func_ret_failure () { 19664ce7165Smrg return 1 19764ce7165Smrg} 19864ce7165Smrg 19964ce7165Smrgexitcode=0 20064ce7165Smrgif as_func_success; then 20164ce7165Smrg : 20264ce7165Smrgelse 20364ce7165Smrg exitcode=1 20464ce7165Smrg echo as_func_success failed. 20564ce7165Smrgfi 20664ce7165Smrg 20764ce7165Smrgif as_func_failure; then 20864ce7165Smrg exitcode=1 20964ce7165Smrg echo as_func_failure succeeded. 21064ce7165Smrgfi 21164ce7165Smrg 21264ce7165Smrgif as_func_ret_success; then 21364ce7165Smrg : 21464ce7165Smrgelse 21564ce7165Smrg exitcode=1 21664ce7165Smrg echo as_func_ret_success failed. 21764ce7165Smrgfi 21864ce7165Smrg 21964ce7165Smrgif as_func_ret_failure; then 22064ce7165Smrg exitcode=1 22164ce7165Smrg echo as_func_ret_failure succeeded. 22264ce7165Smrgfi 22364ce7165Smrg 22464ce7165Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 22564ce7165Smrg : 22664ce7165Smrgelse 22764ce7165Smrg exitcode=1 22864ce7165Smrg echo positional parameters were not saved. 22964ce7165Smrgfi 23064ce7165Smrg 23164ce7165Smrgtest \$exitcode = 0) || { (exit 1); exit 1; } 23264ce7165Smrg 23364ce7165Smrg( 23464ce7165Smrg as_lineno_1=\$LINENO 23564ce7165Smrg as_lineno_2=\$LINENO 23664ce7165Smrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 23764ce7165Smrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 23864ce7165Smrg") 2> /dev/null; then 23964ce7165Smrg : 24064ce7165Smrgelse 24164ce7165Smrg as_candidate_shells= 24264ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24364ce7165Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 24464ce7165Smrgdo 24564ce7165Smrg IFS=$as_save_IFS 24664ce7165Smrg test -z "$as_dir" && as_dir=. 24764ce7165Smrg case $as_dir in 24864ce7165Smrg /*) 24964ce7165Smrg for as_base in sh bash ksh sh5; do 25064ce7165Smrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 25164ce7165Smrg done;; 25264ce7165Smrg esac 25364ce7165Smrgdone 25464ce7165SmrgIFS=$as_save_IFS 25564ce7165Smrg 25664ce7165Smrg 25764ce7165Smrg for as_shell in $as_candidate_shells $SHELL; do 25864ce7165Smrg # Try only shells that exist, to save several forks. 25964ce7165Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 26064ce7165Smrg { ("$as_shell") 2> /dev/null <<\_ASEOF 26164ce7165Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26264ce7165Smrg emulate sh 26364ce7165Smrg NULLCMD=: 264fb23d3a8Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26564ce7165Smrg # is contrary to our usage. Disable this feature. 26664ce7165Smrg alias -g '${1+"$@"}'='"$@"' 26764ce7165Smrg setopt NO_GLOB_SUBST 26864ce7165Smrgelse 26964ce7165Smrg case `(set -o) 2>/dev/null` in 27064ce7165Smrg *posix*) set -o posix ;; 27164ce7165Smrgesac 27264ce7165Smrg 27364ce7165Smrgfi 27464ce7165Smrg 27564ce7165Smrg 27664ce7165Smrg: 27764ce7165Smrg_ASEOF 27864ce7165Smrg}; then 27964ce7165Smrg CONFIG_SHELL=$as_shell 28064ce7165Smrg as_have_required=yes 28164ce7165Smrg if { "$as_shell" 2> /dev/null <<\_ASEOF 28264ce7165Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28364ce7165Smrg emulate sh 28464ce7165Smrg NULLCMD=: 285fb23d3a8Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28664ce7165Smrg # is contrary to our usage. Disable this feature. 28764ce7165Smrg alias -g '${1+"$@"}'='"$@"' 28864ce7165Smrg setopt NO_GLOB_SUBST 28964ce7165Smrgelse 29064ce7165Smrg case `(set -o) 2>/dev/null` in 29164ce7165Smrg *posix*) set -o posix ;; 29264ce7165Smrgesac 29364ce7165Smrg 29464ce7165Smrgfi 29564ce7165Smrg 29664ce7165Smrg 29764ce7165Smrg: 29864ce7165Smrg(as_func_return () { 29964ce7165Smrg (exit $1) 30064ce7165Smrg} 30164ce7165Smrgas_func_success () { 30264ce7165Smrg as_func_return 0 30364ce7165Smrg} 30464ce7165Smrgas_func_failure () { 30564ce7165Smrg as_func_return 1 30664ce7165Smrg} 30764ce7165Smrgas_func_ret_success () { 30864ce7165Smrg return 0 30964ce7165Smrg} 31064ce7165Smrgas_func_ret_failure () { 31164ce7165Smrg return 1 31264ce7165Smrg} 31364ce7165Smrg 31464ce7165Smrgexitcode=0 31564ce7165Smrgif as_func_success; then 31664ce7165Smrg : 31764ce7165Smrgelse 31864ce7165Smrg exitcode=1 31964ce7165Smrg echo as_func_success failed. 32064ce7165Smrgfi 32164ce7165Smrg 32264ce7165Smrgif as_func_failure; then 32364ce7165Smrg exitcode=1 32464ce7165Smrg echo as_func_failure succeeded. 32564ce7165Smrgfi 32664ce7165Smrg 32764ce7165Smrgif as_func_ret_success; then 32864ce7165Smrg : 32964ce7165Smrgelse 33064ce7165Smrg exitcode=1 33164ce7165Smrg echo as_func_ret_success failed. 33264ce7165Smrgfi 33364ce7165Smrg 33464ce7165Smrgif as_func_ret_failure; then 33564ce7165Smrg exitcode=1 33664ce7165Smrg echo as_func_ret_failure succeeded. 33764ce7165Smrgfi 33864ce7165Smrg 33964ce7165Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then 34064ce7165Smrg : 34164ce7165Smrgelse 34264ce7165Smrg exitcode=1 34364ce7165Smrg echo positional parameters were not saved. 34464ce7165Smrgfi 34564ce7165Smrg 34664ce7165Smrgtest $exitcode = 0) || { (exit 1); exit 1; } 34764ce7165Smrg 34864ce7165Smrg( 34964ce7165Smrg as_lineno_1=$LINENO 35064ce7165Smrg as_lineno_2=$LINENO 35164ce7165Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 35264ce7165Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 35364ce7165Smrg 35464ce7165Smrg_ASEOF 35564ce7165Smrg}; then 35664ce7165Smrg break 35764ce7165Smrgfi 35864ce7165Smrg 35964ce7165Smrgfi 36064ce7165Smrg 36164ce7165Smrg done 36264ce7165Smrg 36364ce7165Smrg if test "x$CONFIG_SHELL" != x; then 36464ce7165Smrg for as_var in BASH_ENV ENV 365fb23d3a8Smrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366fb23d3a8Smrg done 367fb23d3a8Smrg export CONFIG_SHELL 368fb23d3a8Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 36964ce7165Smrgfi 37064ce7165Smrg 37164ce7165Smrg 37264ce7165Smrg if test $as_have_required = no; then 37364ce7165Smrg echo This script requires a shell more modern than all the 37464ce7165Smrg echo shells that I found on your system. Please install a 37564ce7165Smrg echo modern shell, or manually run the script under such a 37664ce7165Smrg echo shell if you do have one. 37764ce7165Smrg { (exit 1); exit 1; } 37864ce7165Smrgfi 37964ce7165Smrg 38064ce7165Smrg 38164ce7165Smrgfi 38264ce7165Smrg 38364ce7165Smrgfi 38464ce7165Smrg 38564ce7165Smrg 38664ce7165Smrg 38764ce7165Smrg(eval "as_func_return () { 38864ce7165Smrg (exit \$1) 38964ce7165Smrg} 39064ce7165Smrgas_func_success () { 39164ce7165Smrg as_func_return 0 39264ce7165Smrg} 39364ce7165Smrgas_func_failure () { 39464ce7165Smrg as_func_return 1 39564ce7165Smrg} 39664ce7165Smrgas_func_ret_success () { 39764ce7165Smrg return 0 39864ce7165Smrg} 39964ce7165Smrgas_func_ret_failure () { 40064ce7165Smrg return 1 40164ce7165Smrg} 40264ce7165Smrg 40364ce7165Smrgexitcode=0 40464ce7165Smrgif as_func_success; then 40564ce7165Smrg : 40664ce7165Smrgelse 40764ce7165Smrg exitcode=1 40864ce7165Smrg echo as_func_success failed. 40964ce7165Smrgfi 41064ce7165Smrg 41164ce7165Smrgif as_func_failure; then 41264ce7165Smrg exitcode=1 41364ce7165Smrg echo as_func_failure succeeded. 41464ce7165Smrgfi 41564ce7165Smrg 41664ce7165Smrgif as_func_ret_success; then 41764ce7165Smrg : 41864ce7165Smrgelse 41964ce7165Smrg exitcode=1 42064ce7165Smrg echo as_func_ret_success failed. 42164ce7165Smrgfi 42264ce7165Smrg 42364ce7165Smrgif as_func_ret_failure; then 42464ce7165Smrg exitcode=1 42564ce7165Smrg echo as_func_ret_failure succeeded. 42664ce7165Smrgfi 42764ce7165Smrg 42864ce7165Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 42964ce7165Smrg : 43064ce7165Smrgelse 43164ce7165Smrg exitcode=1 43264ce7165Smrg echo positional parameters were not saved. 43364ce7165Smrgfi 43464ce7165Smrg 43564ce7165Smrgtest \$exitcode = 0") || { 43664ce7165Smrg echo No shell found that supports shell functions. 437fb23d3a8Smrg echo Please tell bug-autoconf@gnu.org about your system, 438fb23d3a8Smrg echo including any error possibly output before this message. 439fb23d3a8Smrg echo This can help us improve future autoconf versions. 440fb23d3a8Smrg echo Configuration will now proceed without shell functions. 44164ce7165Smrg} 44264ce7165Smrg 44364ce7165Smrg 44464ce7165Smrg 44564ce7165Smrg as_lineno_1=$LINENO 44664ce7165Smrg as_lineno_2=$LINENO 44764ce7165Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 44864ce7165Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 44964ce7165Smrg 45064ce7165Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 45164ce7165Smrg # uniformly replaced by the line number. The first 'sed' inserts a 45264ce7165Smrg # line-number line after each line using $LINENO; the second 'sed' 45364ce7165Smrg # does the real work. The second script uses 'N' to pair each 45464ce7165Smrg # line-number line with the line containing $LINENO, and appends 45564ce7165Smrg # trailing '-' during substitution so that $LINENO is not a special 45664ce7165Smrg # case at line end. 45764ce7165Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 45864ce7165Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 45964ce7165Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 46064ce7165Smrg sed -n ' 46164ce7165Smrg p 46264ce7165Smrg /[$]LINENO/= 46364ce7165Smrg ' <$as_myself | 46464ce7165Smrg sed ' 46564ce7165Smrg s/[$]LINENO.*/&-/ 46664ce7165Smrg t lineno 46764ce7165Smrg b 46864ce7165Smrg :lineno 46964ce7165Smrg N 47064ce7165Smrg :loop 47164ce7165Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 47264ce7165Smrg t loop 47364ce7165Smrg s/-\n.*// 47464ce7165Smrg ' >$as_me.lineno && 47564ce7165Smrg chmod +x "$as_me.lineno" || 476fb23d3a8Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 47764ce7165Smrg { (exit 1); exit 1; }; } 47864ce7165Smrg 47964ce7165Smrg # Don't try to exec as it changes $[0], causing all sort of problems 48064ce7165Smrg # (the dirname of $[0] is not the place where we might find the 48164ce7165Smrg # original and so on. Autoconf is especially sensitive to this). 48264ce7165Smrg . "./$as_me.lineno" 48364ce7165Smrg # Exit status is that of the last command. 48464ce7165Smrg exit 48564ce7165Smrg} 48664ce7165Smrg 48764ce7165Smrg 48864ce7165Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 48964ce7165Smrg as_dirname=dirname 49064ce7165Smrgelse 49164ce7165Smrg as_dirname=false 49264ce7165Smrgfi 49364ce7165Smrg 49464ce7165SmrgECHO_C= ECHO_N= ECHO_T= 49564ce7165Smrgcase `echo -n x` in 49664ce7165Smrg-n*) 49764ce7165Smrg case `echo 'x\c'` in 49864ce7165Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49964ce7165Smrg *) ECHO_C='\c';; 50064ce7165Smrg esac;; 50164ce7165Smrg*) 50264ce7165Smrg ECHO_N='-n';; 50364ce7165Smrgesac 50464ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 50564ce7165Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 50664ce7165Smrg as_expr=expr 50764ce7165Smrgelse 50864ce7165Smrg as_expr=false 50964ce7165Smrgfi 51064ce7165Smrg 51164ce7165Smrgrm -f conf$$ conf$$.exe conf$$.file 51264ce7165Smrgif test -d conf$$.dir; then 51364ce7165Smrg rm -f conf$$.dir/conf$$.file 51464ce7165Smrgelse 51564ce7165Smrg rm -f conf$$.dir 516fb23d3a8Smrg mkdir conf$$.dir 2>/dev/null 517fb23d3a8Smrgfi 518fb23d3a8Smrgif (echo >conf$$.file) 2>/dev/null; then 519fb23d3a8Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 520fb23d3a8Smrg as_ln_s='ln -s' 521fb23d3a8Smrg # ... but there are two gotchas: 522fb23d3a8Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523fb23d3a8Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524fb23d3a8Smrg # In both cases, we have to default to `cp -p'. 525fb23d3a8Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526fb23d3a8Smrg as_ln_s='cp -p' 527fb23d3a8Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 528fb23d3a8Smrg as_ln_s=ln 529fb23d3a8Smrg else 53064ce7165Smrg as_ln_s='cp -p' 531fb23d3a8Smrg fi 53264ce7165Smrgelse 53364ce7165Smrg as_ln_s='cp -p' 53464ce7165Smrgfi 53564ce7165Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53664ce7165Smrgrmdir conf$$.dir 2>/dev/null 53764ce7165Smrg 53864ce7165Smrgif mkdir -p . 2>/dev/null; then 53964ce7165Smrg as_mkdir_p=: 54064ce7165Smrgelse 54164ce7165Smrg test -d ./-p && rmdir ./-p 54264ce7165Smrg as_mkdir_p=false 54364ce7165Smrgfi 54464ce7165Smrg 54564ce7165Smrgif test -x / >/dev/null 2>&1; then 54664ce7165Smrg as_test_x='test -x' 54764ce7165Smrgelse 54864ce7165Smrg if ls -dL / >/dev/null 2>&1; then 54964ce7165Smrg as_ls_L_option=L 55064ce7165Smrg else 55164ce7165Smrg as_ls_L_option= 55264ce7165Smrg fi 55364ce7165Smrg as_test_x=' 55464ce7165Smrg eval sh -c '\'' 55564ce7165Smrg if test -d "$1"; then 556fb23d3a8Smrg test -d "$1/."; 55764ce7165Smrg else 55864ce7165Smrg case $1 in 559fb23d3a8Smrg -*)set "./$1";; 56064ce7165Smrg esac; 56164ce7165Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 56264ce7165Smrg ???[sx]*):;;*)false;;esac;fi 56364ce7165Smrg '\'' sh 56464ce7165Smrg ' 56564ce7165Smrgfi 56664ce7165Smrgas_executable_p=$as_test_x 56764ce7165Smrg 56864ce7165Smrg# Sed expression to map a string onto a valid CPP name. 56964ce7165Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 57064ce7165Smrg 57164ce7165Smrg# Sed expression to map a string onto a valid variable name. 57264ce7165Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 57364ce7165Smrg 57464ce7165Smrg 57564ce7165Smrg 57664ce7165Smrgexec 7<&0 </dev/null 6>&1 57764ce7165Smrg 57864ce7165Smrg# Name of the host. 57964ce7165Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 58064ce7165Smrg# so uname gets run too. 58164ce7165Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 58264ce7165Smrg 58364ce7165Smrg# 58464ce7165Smrg# Initializations. 58564ce7165Smrg# 58664ce7165Smrgac_default_prefix=/usr/local 58764ce7165Smrgac_clean_files= 58864ce7165Smrgac_config_libobj_dir=. 58964ce7165SmrgLIBOBJS= 59064ce7165Smrgcross_compiling=no 59164ce7165Smrgsubdirs= 59264ce7165SmrgMFLAGS= 59364ce7165SmrgMAKEFLAGS= 59464ce7165SmrgSHELL=${CONFIG_SHELL-/bin/sh} 59564ce7165Smrg 59664ce7165Smrg# Identity of this package. 59764ce7165SmrgPACKAGE_NAME='xhost' 59864ce7165SmrgPACKAGE_TARNAME='xhost' 599fb23d3a8SmrgPACKAGE_VERSION='1.0.3' 600fb23d3a8SmrgPACKAGE_STRING='xhost 1.0.3' 60164ce7165SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 60264ce7165Smrg 603fb23d3a8Smrg# Factoring default headers for most tests. 604fb23d3a8Smrgac_includes_default="\ 605fb23d3a8Smrg#include <stdio.h> 606fb23d3a8Smrg#ifdef HAVE_SYS_TYPES_H 607fb23d3a8Smrg# include <sys/types.h> 608fb23d3a8Smrg#endif 609fb23d3a8Smrg#ifdef HAVE_SYS_STAT_H 610fb23d3a8Smrg# include <sys/stat.h> 611fb23d3a8Smrg#endif 612fb23d3a8Smrg#ifdef STDC_HEADERS 613fb23d3a8Smrg# include <stdlib.h> 614fb23d3a8Smrg# include <stddef.h> 615fb23d3a8Smrg#else 616fb23d3a8Smrg# ifdef HAVE_STDLIB_H 617fb23d3a8Smrg# include <stdlib.h> 618fb23d3a8Smrg# endif 619fb23d3a8Smrg#endif 620fb23d3a8Smrg#ifdef HAVE_STRING_H 621fb23d3a8Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622fb23d3a8Smrg# include <memory.h> 623fb23d3a8Smrg# endif 624fb23d3a8Smrg# include <string.h> 625fb23d3a8Smrg#endif 626fb23d3a8Smrg#ifdef HAVE_STRINGS_H 627fb23d3a8Smrg# include <strings.h> 628fb23d3a8Smrg#endif 629fb23d3a8Smrg#ifdef HAVE_INTTYPES_H 630fb23d3a8Smrg# include <inttypes.h> 631fb23d3a8Smrg#endif 632fb23d3a8Smrg#ifdef HAVE_STDINT_H 633fb23d3a8Smrg# include <stdint.h> 634fb23d3a8Smrg#endif 635fb23d3a8Smrg#ifdef HAVE_UNISTD_H 636fb23d3a8Smrg# include <unistd.h> 637fb23d3a8Smrg#endif" 638fb23d3a8Smrg 639fb23d3a8Smrgac_subst_vars='am__EXEEXT_FALSE 640fb23d3a8Smrgam__EXEEXT_TRUE 641fb23d3a8SmrgLTLIBOBJS 642fb23d3a8SmrgLIBOBJS 64364ce7165SmrgXHOST_LIBS 644fb23d3a8SmrgXHOST_CFLAGS 645fb23d3a8SmrgPKG_CONFIG 64664ce7165SmrgADMIN_MAN_DIR 647fb23d3a8SmrgDRIVER_MAN_DIR 648fb23d3a8SmrgMISC_MAN_DIR 649fb23d3a8SmrgFILE_MAN_DIR 650fb23d3a8SmrgLIB_MAN_DIR 651fb23d3a8SmrgAPP_MAN_DIR 652fb23d3a8SmrgADMIN_MAN_SUFFIX 653fb23d3a8SmrgDRIVER_MAN_SUFFIX 654fb23d3a8SmrgMISC_MAN_SUFFIX 655fb23d3a8SmrgFILE_MAN_SUFFIX 656fb23d3a8SmrgLIB_MAN_SUFFIX 657fb23d3a8SmrgAPP_MAN_SUFFIX 658fb23d3a8Smrghost_os 659fb23d3a8Smrghost_vendor 660fb23d3a8Smrghost_cpu 661fb23d3a8Smrghost 662fb23d3a8Smrgbuild_os 663fb23d3a8Smrgbuild_vendor 664fb23d3a8Smrgbuild_cpu 665fb23d3a8Smrgbuild 666fb23d3a8Smrgdistcleancheck_listfiles 667fb23d3a8SmrgCHANGELOG_CMD 668fb23d3a8SmrgAM_BACKSLASH 669fb23d3a8SmrgAM_DEFAULT_VERBOSITY 670fb23d3a8SmrgCWARNFLAGS 671fb23d3a8SmrgEGREP 672fb23d3a8SmrgGREP 673fb23d3a8SmrgCPP 674fb23d3a8Smrgam__fastdepCC_FALSE 675fb23d3a8Smrgam__fastdepCC_TRUE 676fb23d3a8SmrgCCDEPMODE 677fb23d3a8SmrgAMDEPBACKSLASH 678fb23d3a8SmrgAMDEP_FALSE 679fb23d3a8SmrgAMDEP_TRUE 680fb23d3a8Smrgam__quote 681fb23d3a8Smrgam__include 682fb23d3a8SmrgDEPDIR 683fb23d3a8SmrgOBJEXT 684fb23d3a8SmrgEXEEXT 685fb23d3a8Smrgac_ct_CC 686fb23d3a8SmrgCPPFLAGS 687fb23d3a8SmrgLDFLAGS 688fb23d3a8SmrgCFLAGS 689fb23d3a8SmrgCC 690fb23d3a8SmrgMAINT 691fb23d3a8SmrgMAINTAINER_MODE_FALSE 692fb23d3a8SmrgMAINTAINER_MODE_TRUE 693fb23d3a8Smrgam__untar 694fb23d3a8Smrgam__tar 695fb23d3a8SmrgAMTAR 696fb23d3a8Smrgam__leading_dot 697fb23d3a8SmrgSET_MAKE 698fb23d3a8SmrgAWK 699fb23d3a8Smrgmkdir_p 700fb23d3a8SmrgMKDIR_P 701fb23d3a8SmrgINSTALL_STRIP_PROGRAM 702fb23d3a8SmrgSTRIP 703fb23d3a8Smrginstall_sh 704fb23d3a8SmrgMAKEINFO 705fb23d3a8SmrgAUTOHEADER 706fb23d3a8SmrgAUTOMAKE 707fb23d3a8SmrgAUTOCONF 708fb23d3a8SmrgACLOCAL 709fb23d3a8SmrgVERSION 710fb23d3a8SmrgPACKAGE 711fb23d3a8SmrgCYGPATH_W 712fb23d3a8Smrgam__isrc 713fb23d3a8SmrgINSTALL_DATA 714fb23d3a8SmrgINSTALL_SCRIPT 715fb23d3a8SmrgINSTALL_PROGRAM 716fb23d3a8Smrgtarget_alias 717fb23d3a8Smrghost_alias 718fb23d3a8Smrgbuild_alias 719fb23d3a8SmrgLIBS 720fb23d3a8SmrgECHO_T 721fb23d3a8SmrgECHO_N 722fb23d3a8SmrgECHO_C 723fb23d3a8SmrgDEFS 724fb23d3a8Smrgmandir 725fb23d3a8Smrglocaledir 726fb23d3a8Smrglibdir 727fb23d3a8Smrgpsdir 728fb23d3a8Smrgpdfdir 729fb23d3a8Smrgdvidir 730fb23d3a8Smrghtmldir 731fb23d3a8Smrginfodir 732fb23d3a8Smrgdocdir 733fb23d3a8Smrgoldincludedir 734fb23d3a8Smrgincludedir 735fb23d3a8Smrglocalstatedir 736fb23d3a8Smrgsharedstatedir 737fb23d3a8Smrgsysconfdir 738fb23d3a8Smrgdatadir 739fb23d3a8Smrgdatarootdir 740fb23d3a8Smrglibexecdir 741fb23d3a8Smrgsbindir 742fb23d3a8Smrgbindir 743fb23d3a8Smrgprogram_transform_name 744fb23d3a8Smrgprefix 745fb23d3a8Smrgexec_prefix 746fb23d3a8SmrgPACKAGE_BUGREPORT 747fb23d3a8SmrgPACKAGE_STRING 748fb23d3a8SmrgPACKAGE_VERSION 749fb23d3a8SmrgPACKAGE_TARNAME 750fb23d3a8SmrgPACKAGE_NAME 751fb23d3a8SmrgPATH_SEPARATOR 752fb23d3a8SmrgSHELL' 75364ce7165Smrgac_subst_files='' 754fb23d3a8Smrgac_user_opts=' 755fb23d3a8Smrgenable_option_checking 756fb23d3a8Smrgenable_maintainer_mode 757fb23d3a8Smrgenable_dependency_tracking 758fb23d3a8Smrgenable_silent_rules 759fb23d3a8Smrgenable_strict_compilation 760fb23d3a8Smrgwith_release_version 761fb23d3a8Smrgenable_unix_transport 762fb23d3a8Smrgenable_tcp_transport 763fb23d3a8Smrgenable_ipv6 764fb23d3a8Smrgenable_local_transport 765fb23d3a8Smrgenable_secure_rpc 766fb23d3a8Smrg' 76764ce7165Smrg ac_precious_vars='build_alias 76864ce7165Smrghost_alias 76964ce7165Smrgtarget_alias 77064ce7165SmrgCC 77164ce7165SmrgCFLAGS 77264ce7165SmrgLDFLAGS 77364ce7165SmrgLIBS 77464ce7165SmrgCPPFLAGS 775fb23d3a8SmrgCPP 77664ce7165SmrgPKG_CONFIG 77764ce7165SmrgXHOST_CFLAGS 77864ce7165SmrgXHOST_LIBS' 77964ce7165Smrg 78064ce7165Smrg 78164ce7165Smrg# Initialize some variables set by options. 78264ce7165Smrgac_init_help= 78364ce7165Smrgac_init_version=false 784fb23d3a8Smrgac_unrecognized_opts= 785fb23d3a8Smrgac_unrecognized_sep= 78664ce7165Smrg# The variables have the same names as the options, with 78764ce7165Smrg# dashes changed to underlines. 78864ce7165Smrgcache_file=/dev/null 78964ce7165Smrgexec_prefix=NONE 79064ce7165Smrgno_create= 79164ce7165Smrgno_recursion= 79264ce7165Smrgprefix=NONE 79364ce7165Smrgprogram_prefix=NONE 79464ce7165Smrgprogram_suffix=NONE 79564ce7165Smrgprogram_transform_name=s,x,x, 79664ce7165Smrgsilent= 79764ce7165Smrgsite= 79864ce7165Smrgsrcdir= 79964ce7165Smrgverbose= 80064ce7165Smrgx_includes=NONE 80164ce7165Smrgx_libraries=NONE 80264ce7165Smrg 80364ce7165Smrg# Installation directory options. 80464ce7165Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 80564ce7165Smrg# and all the variables that are supposed to be based on exec_prefix 80664ce7165Smrg# by default will actually change. 80764ce7165Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 80864ce7165Smrg# (The list follows the same order as the GNU Coding Standards.) 80964ce7165Smrgbindir='${exec_prefix}/bin' 81064ce7165Smrgsbindir='${exec_prefix}/sbin' 81164ce7165Smrglibexecdir='${exec_prefix}/libexec' 81264ce7165Smrgdatarootdir='${prefix}/share' 81364ce7165Smrgdatadir='${datarootdir}' 81464ce7165Smrgsysconfdir='${prefix}/etc' 81564ce7165Smrgsharedstatedir='${prefix}/com' 81664ce7165Smrglocalstatedir='${prefix}/var' 81764ce7165Smrgincludedir='${prefix}/include' 81864ce7165Smrgoldincludedir='/usr/include' 81964ce7165Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 82064ce7165Smrginfodir='${datarootdir}/info' 82164ce7165Smrghtmldir='${docdir}' 82264ce7165Smrgdvidir='${docdir}' 82364ce7165Smrgpdfdir='${docdir}' 82464ce7165Smrgpsdir='${docdir}' 82564ce7165Smrglibdir='${exec_prefix}/lib' 82664ce7165Smrglocaledir='${datarootdir}/locale' 82764ce7165Smrgmandir='${datarootdir}/man' 82864ce7165Smrg 82964ce7165Smrgac_prev= 83064ce7165Smrgac_dashdash= 83164ce7165Smrgfor ac_option 83264ce7165Smrgdo 83364ce7165Smrg # If the previous option needs an argument, assign it. 83464ce7165Smrg if test -n "$ac_prev"; then 83564ce7165Smrg eval $ac_prev=\$ac_option 83664ce7165Smrg ac_prev= 83764ce7165Smrg continue 83864ce7165Smrg fi 83964ce7165Smrg 84064ce7165Smrg case $ac_option in 84164ce7165Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 84264ce7165Smrg *) ac_optarg=yes ;; 84364ce7165Smrg esac 84464ce7165Smrg 84564ce7165Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 84664ce7165Smrg 84764ce7165Smrg case $ac_dashdash$ac_option in 84864ce7165Smrg --) 84964ce7165Smrg ac_dashdash=yes ;; 85064ce7165Smrg 85164ce7165Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 85264ce7165Smrg ac_prev=bindir ;; 85364ce7165Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 85464ce7165Smrg bindir=$ac_optarg ;; 85564ce7165Smrg 85664ce7165Smrg -build | --build | --buil | --bui | --bu) 85764ce7165Smrg ac_prev=build_alias ;; 85864ce7165Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 85964ce7165Smrg build_alias=$ac_optarg ;; 86064ce7165Smrg 86164ce7165Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 86264ce7165Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 86364ce7165Smrg ac_prev=cache_file ;; 86464ce7165Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 86564ce7165Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 86664ce7165Smrg cache_file=$ac_optarg ;; 86764ce7165Smrg 86864ce7165Smrg --config-cache | -C) 86964ce7165Smrg cache_file=config.cache ;; 87064ce7165Smrg 87164ce7165Smrg -datadir | --datadir | --datadi | --datad) 87264ce7165Smrg ac_prev=datadir ;; 87364ce7165Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 87464ce7165Smrg datadir=$ac_optarg ;; 87564ce7165Smrg 87664ce7165Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 87764ce7165Smrg | --dataroo | --dataro | --datar) 87864ce7165Smrg ac_prev=datarootdir ;; 87964ce7165Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 88064ce7165Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 88164ce7165Smrg datarootdir=$ac_optarg ;; 88264ce7165Smrg 88364ce7165Smrg -disable-* | --disable-*) 884fb23d3a8Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 88564ce7165Smrg # Reject names that are not valid shell variable names. 886fb23d3a8Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887fb23d3a8Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 88864ce7165Smrg { (exit 1); exit 1; }; } 889fb23d3a8Smrg ac_useropt_orig=$ac_useropt 890fb23d3a8Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891fb23d3a8Smrg case $ac_user_opts in 892fb23d3a8Smrg *" 893fb23d3a8Smrg"enable_$ac_useropt" 894fb23d3a8Smrg"*) ;; 895fb23d3a8Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896fb23d3a8Smrg ac_unrecognized_sep=', ';; 897fb23d3a8Smrg esac 898fb23d3a8Smrg eval enable_$ac_useropt=no ;; 89964ce7165Smrg 90064ce7165Smrg -docdir | --docdir | --docdi | --doc | --do) 90164ce7165Smrg ac_prev=docdir ;; 90264ce7165Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 90364ce7165Smrg docdir=$ac_optarg ;; 90464ce7165Smrg 90564ce7165Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 90664ce7165Smrg ac_prev=dvidir ;; 90764ce7165Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 90864ce7165Smrg dvidir=$ac_optarg ;; 90964ce7165Smrg 91064ce7165Smrg -enable-* | --enable-*) 911fb23d3a8Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 91264ce7165Smrg # Reject names that are not valid shell variable names. 913fb23d3a8Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914fb23d3a8Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 91564ce7165Smrg { (exit 1); exit 1; }; } 916fb23d3a8Smrg ac_useropt_orig=$ac_useropt 917fb23d3a8Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918fb23d3a8Smrg case $ac_user_opts in 919fb23d3a8Smrg *" 920fb23d3a8Smrg"enable_$ac_useropt" 921fb23d3a8Smrg"*) ;; 922fb23d3a8Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923fb23d3a8Smrg ac_unrecognized_sep=', ';; 924fb23d3a8Smrg esac 925fb23d3a8Smrg eval enable_$ac_useropt=\$ac_optarg ;; 92664ce7165Smrg 92764ce7165Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 92864ce7165Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 92964ce7165Smrg | --exec | --exe | --ex) 93064ce7165Smrg ac_prev=exec_prefix ;; 93164ce7165Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 93264ce7165Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 93364ce7165Smrg | --exec=* | --exe=* | --ex=*) 93464ce7165Smrg exec_prefix=$ac_optarg ;; 93564ce7165Smrg 93664ce7165Smrg -gas | --gas | --ga | --g) 93764ce7165Smrg # Obsolete; use --with-gas. 93864ce7165Smrg with_gas=yes ;; 93964ce7165Smrg 94064ce7165Smrg -help | --help | --hel | --he | -h) 94164ce7165Smrg ac_init_help=long ;; 94264ce7165Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 94364ce7165Smrg ac_init_help=recursive ;; 94464ce7165Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 94564ce7165Smrg ac_init_help=short ;; 94664ce7165Smrg 94764ce7165Smrg -host | --host | --hos | --ho) 94864ce7165Smrg ac_prev=host_alias ;; 94964ce7165Smrg -host=* | --host=* | --hos=* | --ho=*) 95064ce7165Smrg host_alias=$ac_optarg ;; 95164ce7165Smrg 95264ce7165Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 95364ce7165Smrg ac_prev=htmldir ;; 95464ce7165Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 95564ce7165Smrg | --ht=*) 95664ce7165Smrg htmldir=$ac_optarg ;; 95764ce7165Smrg 95864ce7165Smrg -includedir | --includedir | --includedi | --included | --include \ 95964ce7165Smrg | --includ | --inclu | --incl | --inc) 96064ce7165Smrg ac_prev=includedir ;; 96164ce7165Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 96264ce7165Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 96364ce7165Smrg includedir=$ac_optarg ;; 96464ce7165Smrg 96564ce7165Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 96664ce7165Smrg ac_prev=infodir ;; 96764ce7165Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 96864ce7165Smrg infodir=$ac_optarg ;; 96964ce7165Smrg 97064ce7165Smrg -libdir | --libdir | --libdi | --libd) 97164ce7165Smrg ac_prev=libdir ;; 97264ce7165Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 97364ce7165Smrg libdir=$ac_optarg ;; 97464ce7165Smrg 97564ce7165Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 97664ce7165Smrg | --libexe | --libex | --libe) 97764ce7165Smrg ac_prev=libexecdir ;; 97864ce7165Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 97964ce7165Smrg | --libexe=* | --libex=* | --libe=*) 98064ce7165Smrg libexecdir=$ac_optarg ;; 98164ce7165Smrg 98264ce7165Smrg -localedir | --localedir | --localedi | --localed | --locale) 98364ce7165Smrg ac_prev=localedir ;; 98464ce7165Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 98564ce7165Smrg localedir=$ac_optarg ;; 98664ce7165Smrg 98764ce7165Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 98864ce7165Smrg | --localstate | --localstat | --localsta | --localst | --locals) 98964ce7165Smrg ac_prev=localstatedir ;; 99064ce7165Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 99164ce7165Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 99264ce7165Smrg localstatedir=$ac_optarg ;; 99364ce7165Smrg 99464ce7165Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 99564ce7165Smrg ac_prev=mandir ;; 99664ce7165Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 99764ce7165Smrg mandir=$ac_optarg ;; 99864ce7165Smrg 99964ce7165Smrg -nfp | --nfp | --nf) 100064ce7165Smrg # Obsolete; use --without-fp. 100164ce7165Smrg with_fp=no ;; 100264ce7165Smrg 100364ce7165Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 100464ce7165Smrg | --no-cr | --no-c | -n) 100564ce7165Smrg no_create=yes ;; 100664ce7165Smrg 100764ce7165Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 100864ce7165Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 100964ce7165Smrg no_recursion=yes ;; 101064ce7165Smrg 101164ce7165Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 101264ce7165Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 101364ce7165Smrg | --oldin | --oldi | --old | --ol | --o) 101464ce7165Smrg ac_prev=oldincludedir ;; 101564ce7165Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 101664ce7165Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 101764ce7165Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 101864ce7165Smrg oldincludedir=$ac_optarg ;; 101964ce7165Smrg 102064ce7165Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 102164ce7165Smrg ac_prev=prefix ;; 102264ce7165Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 102364ce7165Smrg prefix=$ac_optarg ;; 102464ce7165Smrg 102564ce7165Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 102664ce7165Smrg | --program-pre | --program-pr | --program-p) 102764ce7165Smrg ac_prev=program_prefix ;; 102864ce7165Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 102964ce7165Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 103064ce7165Smrg program_prefix=$ac_optarg ;; 103164ce7165Smrg 103264ce7165Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 103364ce7165Smrg | --program-suf | --program-su | --program-s) 103464ce7165Smrg ac_prev=program_suffix ;; 103564ce7165Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 103664ce7165Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 103764ce7165Smrg program_suffix=$ac_optarg ;; 103864ce7165Smrg 103964ce7165Smrg -program-transform-name | --program-transform-name \ 104064ce7165Smrg | --program-transform-nam | --program-transform-na \ 104164ce7165Smrg | --program-transform-n | --program-transform- \ 104264ce7165Smrg | --program-transform | --program-transfor \ 104364ce7165Smrg | --program-transfo | --program-transf \ 104464ce7165Smrg | --program-trans | --program-tran \ 104564ce7165Smrg | --progr-tra | --program-tr | --program-t) 104664ce7165Smrg ac_prev=program_transform_name ;; 104764ce7165Smrg -program-transform-name=* | --program-transform-name=* \ 104864ce7165Smrg | --program-transform-nam=* | --program-transform-na=* \ 104964ce7165Smrg | --program-transform-n=* | --program-transform-=* \ 105064ce7165Smrg | --program-transform=* | --program-transfor=* \ 105164ce7165Smrg | --program-transfo=* | --program-transf=* \ 105264ce7165Smrg | --program-trans=* | --program-tran=* \ 105364ce7165Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 105464ce7165Smrg program_transform_name=$ac_optarg ;; 105564ce7165Smrg 105664ce7165Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 105764ce7165Smrg ac_prev=pdfdir ;; 105864ce7165Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 105964ce7165Smrg pdfdir=$ac_optarg ;; 106064ce7165Smrg 106164ce7165Smrg -psdir | --psdir | --psdi | --psd | --ps) 106264ce7165Smrg ac_prev=psdir ;; 106364ce7165Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 106464ce7165Smrg psdir=$ac_optarg ;; 106564ce7165Smrg 106664ce7165Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 106764ce7165Smrg | -silent | --silent | --silen | --sile | --sil) 106864ce7165Smrg silent=yes ;; 106964ce7165Smrg 107064ce7165Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 107164ce7165Smrg ac_prev=sbindir ;; 107264ce7165Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 107364ce7165Smrg | --sbi=* | --sb=*) 107464ce7165Smrg sbindir=$ac_optarg ;; 107564ce7165Smrg 107664ce7165Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 107764ce7165Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 107864ce7165Smrg | --sharedst | --shareds | --shared | --share | --shar \ 107964ce7165Smrg | --sha | --sh) 108064ce7165Smrg ac_prev=sharedstatedir ;; 108164ce7165Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 108264ce7165Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 108364ce7165Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 108464ce7165Smrg | --sha=* | --sh=*) 108564ce7165Smrg sharedstatedir=$ac_optarg ;; 108664ce7165Smrg 108764ce7165Smrg -site | --site | --sit) 108864ce7165Smrg ac_prev=site ;; 108964ce7165Smrg -site=* | --site=* | --sit=*) 109064ce7165Smrg site=$ac_optarg ;; 109164ce7165Smrg 109264ce7165Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 109364ce7165Smrg ac_prev=srcdir ;; 109464ce7165Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 109564ce7165Smrg srcdir=$ac_optarg ;; 109664ce7165Smrg 109764ce7165Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 109864ce7165Smrg | --syscon | --sysco | --sysc | --sys | --sy) 109964ce7165Smrg ac_prev=sysconfdir ;; 110064ce7165Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 110164ce7165Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 110264ce7165Smrg sysconfdir=$ac_optarg ;; 110364ce7165Smrg 110464ce7165Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 110564ce7165Smrg ac_prev=target_alias ;; 110664ce7165Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 110764ce7165Smrg target_alias=$ac_optarg ;; 110864ce7165Smrg 110964ce7165Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 111064ce7165Smrg verbose=yes ;; 111164ce7165Smrg 111264ce7165Smrg -version | --version | --versio | --versi | --vers | -V) 111364ce7165Smrg ac_init_version=: ;; 111464ce7165Smrg 111564ce7165Smrg -with-* | --with-*) 1116fb23d3a8Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 111764ce7165Smrg # Reject names that are not valid shell variable names. 1118fb23d3a8Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119fb23d3a8Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 112064ce7165Smrg { (exit 1); exit 1; }; } 1121fb23d3a8Smrg ac_useropt_orig=$ac_useropt 1122fb23d3a8Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1123fb23d3a8Smrg case $ac_user_opts in 1124fb23d3a8Smrg *" 1125fb23d3a8Smrg"with_$ac_useropt" 1126fb23d3a8Smrg"*) ;; 1127fb23d3a8Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1128fb23d3a8Smrg ac_unrecognized_sep=', ';; 1129fb23d3a8Smrg esac 1130fb23d3a8Smrg eval with_$ac_useropt=\$ac_optarg ;; 113164ce7165Smrg 113264ce7165Smrg -without-* | --without-*) 1133fb23d3a8Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 113464ce7165Smrg # Reject names that are not valid shell variable names. 1135fb23d3a8Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136fb23d3a8Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 113764ce7165Smrg { (exit 1); exit 1; }; } 1138fb23d3a8Smrg ac_useropt_orig=$ac_useropt 1139fb23d3a8Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140fb23d3a8Smrg case $ac_user_opts in 1141fb23d3a8Smrg *" 1142fb23d3a8Smrg"with_$ac_useropt" 1143fb23d3a8Smrg"*) ;; 1144fb23d3a8Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145fb23d3a8Smrg ac_unrecognized_sep=', ';; 1146fb23d3a8Smrg esac 1147fb23d3a8Smrg eval with_$ac_useropt=no ;; 114864ce7165Smrg 114964ce7165Smrg --x) 115064ce7165Smrg # Obsolete; use --with-x. 115164ce7165Smrg with_x=yes ;; 115264ce7165Smrg 115364ce7165Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 115464ce7165Smrg | --x-incl | --x-inc | --x-in | --x-i) 115564ce7165Smrg ac_prev=x_includes ;; 115664ce7165Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 115764ce7165Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 115864ce7165Smrg x_includes=$ac_optarg ;; 115964ce7165Smrg 116064ce7165Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 116164ce7165Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 116264ce7165Smrg ac_prev=x_libraries ;; 116364ce7165Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 116464ce7165Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 116564ce7165Smrg x_libraries=$ac_optarg ;; 116664ce7165Smrg 1167fb23d3a8Smrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 116864ce7165SmrgTry \`$0 --help' for more information." >&2 116964ce7165Smrg { (exit 1); exit 1; }; } 117064ce7165Smrg ;; 117164ce7165Smrg 117264ce7165Smrg *=*) 117364ce7165Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 117464ce7165Smrg # Reject names that are not valid shell variable names. 117564ce7165Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1176fb23d3a8Smrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 117764ce7165Smrg { (exit 1); exit 1; }; } 117864ce7165Smrg eval $ac_envvar=\$ac_optarg 117964ce7165Smrg export $ac_envvar ;; 118064ce7165Smrg 118164ce7165Smrg *) 118264ce7165Smrg # FIXME: should be removed in autoconf 3.0. 1183fb23d3a8Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 118464ce7165Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185fb23d3a8Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 118664ce7165Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 118764ce7165Smrg ;; 118864ce7165Smrg 118964ce7165Smrg esac 119064ce7165Smrgdone 119164ce7165Smrg 119264ce7165Smrgif test -n "$ac_prev"; then 119364ce7165Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194fb23d3a8Smrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 119564ce7165Smrg { (exit 1); exit 1; }; } 119664ce7165Smrgfi 119764ce7165Smrg 1198fb23d3a8Smrgif test -n "$ac_unrecognized_opts"; then 1199fb23d3a8Smrg case $enable_option_checking in 1200fb23d3a8Smrg no) ;; 1201fb23d3a8Smrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1202fb23d3a8Smrg { (exit 1); exit 1; }; } ;; 1203fb23d3a8Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1204fb23d3a8Smrg esac 1205fb23d3a8Smrgfi 1206fb23d3a8Smrg 1207fb23d3a8Smrg# Check all directory arguments for consistency. 120864ce7165Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 120964ce7165Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 121064ce7165Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 121164ce7165Smrg libdir localedir mandir 121264ce7165Smrgdo 121364ce7165Smrg eval ac_val=\$$ac_var 1214fb23d3a8Smrg # Remove trailing slashes. 1215fb23d3a8Smrg case $ac_val in 1216fb23d3a8Smrg */ ) 1217fb23d3a8Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1218fb23d3a8Smrg eval $ac_var=\$ac_val;; 1219fb23d3a8Smrg esac 1220fb23d3a8Smrg # Be sure to have absolute directory names. 122164ce7165Smrg case $ac_val in 122264ce7165Smrg [\\/$]* | ?:[\\/]* ) continue;; 122364ce7165Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 122464ce7165Smrg esac 1225fb23d3a8Smrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 122664ce7165Smrg { (exit 1); exit 1; }; } 122764ce7165Smrgdone 122864ce7165Smrg 122964ce7165Smrg# There might be people who depend on the old broken behavior: `$host' 123064ce7165Smrg# used to hold the argument of --host etc. 123164ce7165Smrg# FIXME: To remove some day. 123264ce7165Smrgbuild=$build_alias 123364ce7165Smrghost=$host_alias 123464ce7165Smrgtarget=$target_alias 123564ce7165Smrg 123664ce7165Smrg# FIXME: To remove some day. 123764ce7165Smrgif test "x$host_alias" != x; then 123864ce7165Smrg if test "x$build_alias" = x; then 123964ce7165Smrg cross_compiling=maybe 1240fb23d3a8Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 124164ce7165Smrg If a cross compiler is detected then cross compile mode will be used." >&2 124264ce7165Smrg elif test "x$build_alias" != "x$host_alias"; then 124364ce7165Smrg cross_compiling=yes 124464ce7165Smrg fi 124564ce7165Smrgfi 124664ce7165Smrg 124764ce7165Smrgac_tool_prefix= 124864ce7165Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 124964ce7165Smrg 125064ce7165Smrgtest "$silent" = yes && exec 6>/dev/null 125164ce7165Smrg 125264ce7165Smrg 125364ce7165Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 125464ce7165Smrgac_ls_di=`ls -di .` && 125564ce7165Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1256fb23d3a8Smrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 125764ce7165Smrg { (exit 1); exit 1; }; } 125864ce7165Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259fb23d3a8Smrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 126064ce7165Smrg { (exit 1); exit 1; }; } 126164ce7165Smrg 126264ce7165Smrg 126364ce7165Smrg# Find the source files, if location was not specified. 126464ce7165Smrgif test -z "$srcdir"; then 126564ce7165Smrg ac_srcdir_defaulted=yes 126664ce7165Smrg # Try the directory containing this script, then the parent directory. 1267fb23d3a8Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1268fb23d3a8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269fb23d3a8Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1270fb23d3a8Smrg X"$as_myself" : 'X\(//\)$' \| \ 1271fb23d3a8Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272fb23d3a8Smrg$as_echo X"$as_myself" | 127364ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 127464ce7165Smrg s//\1/ 127564ce7165Smrg q 127664ce7165Smrg } 127764ce7165Smrg /^X\(\/\/\)[^/].*/{ 127864ce7165Smrg s//\1/ 127964ce7165Smrg q 128064ce7165Smrg } 128164ce7165Smrg /^X\(\/\/\)$/{ 128264ce7165Smrg s//\1/ 128364ce7165Smrg q 128464ce7165Smrg } 128564ce7165Smrg /^X\(\/\).*/{ 128664ce7165Smrg s//\1/ 128764ce7165Smrg q 128864ce7165Smrg } 128964ce7165Smrg s/.*/./; q'` 129064ce7165Smrg srcdir=$ac_confdir 129164ce7165Smrg if test ! -r "$srcdir/$ac_unique_file"; then 129264ce7165Smrg srcdir=.. 129364ce7165Smrg fi 129464ce7165Smrgelse 129564ce7165Smrg ac_srcdir_defaulted=no 129664ce7165Smrgfi 129764ce7165Smrgif test ! -r "$srcdir/$ac_unique_file"; then 129864ce7165Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299fb23d3a8Smrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 130064ce7165Smrg { (exit 1); exit 1; }; } 130164ce7165Smrgfi 130264ce7165Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 130364ce7165Smrgac_abs_confdir=`( 1304fb23d3a8Smrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 130564ce7165Smrg { (exit 1); exit 1; }; } 130664ce7165Smrg pwd)` 130764ce7165Smrg# When building in place, set srcdir=. 130864ce7165Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 130964ce7165Smrg srcdir=. 131064ce7165Smrgfi 131164ce7165Smrg# Remove unnecessary trailing slashes from srcdir. 131264ce7165Smrg# Double slashes in file names in object file debugging info 131364ce7165Smrg# mess up M-x gdb in Emacs. 131464ce7165Smrgcase $srcdir in 131564ce7165Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 131664ce7165Smrgesac 131764ce7165Smrgfor ac_var in $ac_precious_vars; do 131864ce7165Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 131964ce7165Smrg eval ac_env_${ac_var}_value=\$${ac_var} 132064ce7165Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 132164ce7165Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 132264ce7165Smrgdone 132364ce7165Smrg 132464ce7165Smrg# 132564ce7165Smrg# Report the --help message. 132664ce7165Smrg# 132764ce7165Smrgif test "$ac_init_help" = "long"; then 132864ce7165Smrg # Omit some internal or obsolete options to make the list less imposing. 132964ce7165Smrg # This message is too long to be a string in the A/UX 3.1 sh. 133064ce7165Smrg cat <<_ACEOF 1331fb23d3a8Smrg\`configure' configures xhost 1.0.3 to adapt to many kinds of systems. 133264ce7165Smrg 133364ce7165SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 133464ce7165Smrg 133564ce7165SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 133664ce7165SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 133764ce7165Smrg 133864ce7165SmrgDefaults for the options are specified in brackets. 133964ce7165Smrg 134064ce7165SmrgConfiguration: 134164ce7165Smrg -h, --help display this help and exit 134264ce7165Smrg --help=short display options specific to this package 134364ce7165Smrg --help=recursive display the short help of all the included packages 134464ce7165Smrg -V, --version display version information and exit 134564ce7165Smrg -q, --quiet, --silent do not print \`checking...' messages 134664ce7165Smrg --cache-file=FILE cache test results in FILE [disabled] 134764ce7165Smrg -C, --config-cache alias for \`--cache-file=config.cache' 134864ce7165Smrg -n, --no-create do not create output files 134964ce7165Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 135064ce7165Smrg 135164ce7165SmrgInstallation directories: 135264ce7165Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1353fb23d3a8Smrg [$ac_default_prefix] 135464ce7165Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355fb23d3a8Smrg [PREFIX] 135664ce7165Smrg 135764ce7165SmrgBy default, \`make install' will install all the files in 135864ce7165Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 135964ce7165Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 136064ce7165Smrgfor instance \`--prefix=\$HOME'. 136164ce7165Smrg 136264ce7165SmrgFor better control, use the options below. 136364ce7165Smrg 136464ce7165SmrgFine tuning of the installation directories: 1365fb23d3a8Smrg --bindir=DIR user executables [EPREFIX/bin] 1366fb23d3a8Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1367fb23d3a8Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1368fb23d3a8Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369fb23d3a8Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370fb23d3a8Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371fb23d3a8Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1372fb23d3a8Smrg --includedir=DIR C header files [PREFIX/include] 1373fb23d3a8Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374fb23d3a8Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375fb23d3a8Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376fb23d3a8Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1377fb23d3a8Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378fb23d3a8Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1379fb23d3a8Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xhost] 1380fb23d3a8Smrg --htmldir=DIR html documentation [DOCDIR] 1381fb23d3a8Smrg --dvidir=DIR dvi documentation [DOCDIR] 1382fb23d3a8Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1383fb23d3a8Smrg --psdir=DIR ps documentation [DOCDIR] 138464ce7165Smrg_ACEOF 138564ce7165Smrg 138664ce7165Smrg cat <<\_ACEOF 138764ce7165Smrg 138864ce7165SmrgProgram names: 138964ce7165Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 139064ce7165Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 139164ce7165Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 139264ce7165Smrg 139364ce7165SmrgSystem types: 139464ce7165Smrg --build=BUILD configure for building on BUILD [guessed] 139564ce7165Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 139664ce7165Smrg_ACEOF 139764ce7165Smrgfi 139864ce7165Smrg 139964ce7165Smrgif test -n "$ac_init_help"; then 140064ce7165Smrg case $ac_init_help in 1401fb23d3a8Smrg short | recursive ) echo "Configuration of xhost 1.0.3:";; 140264ce7165Smrg esac 140364ce7165Smrg cat <<\_ACEOF 140464ce7165Smrg 140564ce7165SmrgOptional Features: 1406fb23d3a8Smrg --disable-option-checking ignore unrecognized --enable/--with options 140764ce7165Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 140864ce7165Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 140964ce7165Smrg --enable-maintainer-mode enable make rules and dependencies not useful 141064ce7165Smrg (and sometimes confusing) to the casual installer 141164ce7165Smrg --disable-dependency-tracking speeds up one-time build 141264ce7165Smrg --enable-dependency-tracking do not reject slow dependency extractors 1413fb23d3a8Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1414fb23d3a8Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1415fb23d3a8Smrg --enable-strict-compilation 1416fb23d3a8Smrg Enable all warnings from compiler and make them 1417fb23d3a8Smrg errors (default: disabled) 141864ce7165Smrg --enable-unix-transport Enable UNIX domain socket transport 141964ce7165Smrg --enable-tcp-transport Enable TCP socket transport 1420fb23d3a8Smrg --enable-ipv6 Enable IPv6 support 142164ce7165Smrg --enable-local-transport 142264ce7165Smrg Enable os-specific local transport 142364ce7165Smrg --enable-secure-rpc Enable Secure RPC 142464ce7165Smrg 142564ce7165SmrgOptional Packages: 142664ce7165Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 142764ce7165Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 142864ce7165Smrg --with-release-version=STRING 142964ce7165Smrg Use release version string in package name 143064ce7165Smrg 143164ce7165SmrgSome influential environment variables: 143264ce7165Smrg CC C compiler command 143364ce7165Smrg CFLAGS C compiler flags 143464ce7165Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 143564ce7165Smrg nonstandard directory <lib dir> 143664ce7165Smrg LIBS libraries to pass to the linker, e.g. -l<library> 143764ce7165Smrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 143864ce7165Smrg you have headers in a nonstandard directory <include dir> 1439fb23d3a8Smrg CPP C preprocessor 144064ce7165Smrg PKG_CONFIG path to pkg-config utility 144164ce7165Smrg XHOST_CFLAGS 144264ce7165Smrg C compiler flags for XHOST, overriding pkg-config 144364ce7165Smrg XHOST_LIBS linker flags for XHOST, overriding pkg-config 144464ce7165Smrg 144564ce7165SmrgUse these variables to override the choices made by `configure' or to help 144664ce7165Smrgit to find libraries and programs with nonstandard names/locations. 144764ce7165Smrg 144864ce7165SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 144964ce7165Smrg_ACEOF 145064ce7165Smrgac_status=$? 145164ce7165Smrgfi 145264ce7165Smrg 145364ce7165Smrgif test "$ac_init_help" = "recursive"; then 145464ce7165Smrg # If there are subdirs, report their specific --help. 145564ce7165Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1456fb23d3a8Smrg test -d "$ac_dir" || 1457fb23d3a8Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1458fb23d3a8Smrg continue 145964ce7165Smrg ac_builddir=. 146064ce7165Smrg 146164ce7165Smrgcase "$ac_dir" in 146264ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 146364ce7165Smrg*) 1464fb23d3a8Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 146564ce7165Smrg # A ".." for each directory in $ac_dir_suffix. 1466fb23d3a8Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 146764ce7165Smrg case $ac_top_builddir_sub in 146864ce7165Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 146964ce7165Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 147064ce7165Smrg esac ;; 147164ce7165Smrgesac 147264ce7165Smrgac_abs_top_builddir=$ac_pwd 147364ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 147464ce7165Smrg# for backward compatibility: 147564ce7165Smrgac_top_builddir=$ac_top_build_prefix 147664ce7165Smrg 147764ce7165Smrgcase $srcdir in 147864ce7165Smrg .) # We are building in place. 147964ce7165Smrg ac_srcdir=. 148064ce7165Smrg ac_top_srcdir=$ac_top_builddir_sub 148164ce7165Smrg ac_abs_top_srcdir=$ac_pwd ;; 148264ce7165Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 148364ce7165Smrg ac_srcdir=$srcdir$ac_dir_suffix; 148464ce7165Smrg ac_top_srcdir=$srcdir 148564ce7165Smrg ac_abs_top_srcdir=$srcdir ;; 148664ce7165Smrg *) # Relative name. 148764ce7165Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 148864ce7165Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 148964ce7165Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 149064ce7165Smrgesac 149164ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 149264ce7165Smrg 149364ce7165Smrg cd "$ac_dir" || { ac_status=$?; continue; } 149464ce7165Smrg # Check for guested configure. 149564ce7165Smrg if test -f "$ac_srcdir/configure.gnu"; then 149664ce7165Smrg echo && 149764ce7165Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 149864ce7165Smrg elif test -f "$ac_srcdir/configure"; then 149964ce7165Smrg echo && 150064ce7165Smrg $SHELL "$ac_srcdir/configure" --help=recursive 150164ce7165Smrg else 1502fb23d3a8Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 150364ce7165Smrg fi || ac_status=$? 150464ce7165Smrg cd "$ac_pwd" || { ac_status=$?; break; } 150564ce7165Smrg done 150664ce7165Smrgfi 150764ce7165Smrg 150864ce7165Smrgtest -n "$ac_init_help" && exit $ac_status 150964ce7165Smrgif $ac_init_version; then 151064ce7165Smrg cat <<\_ACEOF 1511fb23d3a8Smrgxhost configure 1.0.3 1512fb23d3a8Smrggenerated by GNU Autoconf 2.63 151364ce7165Smrg 151464ce7165SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1515fb23d3a8Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 151664ce7165SmrgThis configure script is free software; the Free Software Foundation 151764ce7165Smrggives unlimited permission to copy, distribute and modify it. 151864ce7165Smrg_ACEOF 151964ce7165Smrg exit 152064ce7165Smrgfi 152164ce7165Smrgcat >config.log <<_ACEOF 152264ce7165SmrgThis file contains any messages produced by compilers while 152364ce7165Smrgrunning configure, to aid debugging if configure makes a mistake. 152464ce7165Smrg 1525fb23d3a8SmrgIt was created by xhost $as_me 1.0.3, which was 1526fb23d3a8Smrggenerated by GNU Autoconf 2.63. Invocation command line was 152764ce7165Smrg 152864ce7165Smrg $ $0 $@ 152964ce7165Smrg 153064ce7165Smrg_ACEOF 153164ce7165Smrgexec 5>>config.log 153264ce7165Smrg{ 153364ce7165Smrgcat <<_ASUNAME 153464ce7165Smrg## --------- ## 153564ce7165Smrg## Platform. ## 153664ce7165Smrg## --------- ## 153764ce7165Smrg 153864ce7165Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 153964ce7165Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 154064ce7165Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 154164ce7165Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 154264ce7165Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 154364ce7165Smrg 154464ce7165Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 154564ce7165Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 154664ce7165Smrg 154764ce7165Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 154864ce7165Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 154964ce7165Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 155064ce7165Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 155164ce7165Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 155264ce7165Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 155364ce7165Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 155464ce7165Smrg 155564ce7165Smrg_ASUNAME 155664ce7165Smrg 155764ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 155864ce7165Smrgfor as_dir in $PATH 155964ce7165Smrgdo 156064ce7165Smrg IFS=$as_save_IFS 156164ce7165Smrg test -z "$as_dir" && as_dir=. 1562fb23d3a8Smrg $as_echo "PATH: $as_dir" 156364ce7165Smrgdone 156464ce7165SmrgIFS=$as_save_IFS 156564ce7165Smrg 156664ce7165Smrg} >&5 156764ce7165Smrg 156864ce7165Smrgcat >&5 <<_ACEOF 156964ce7165Smrg 157064ce7165Smrg 157164ce7165Smrg## ----------- ## 157264ce7165Smrg## Core tests. ## 157364ce7165Smrg## ----------- ## 157464ce7165Smrg 157564ce7165Smrg_ACEOF 157664ce7165Smrg 157764ce7165Smrg 157864ce7165Smrg# Keep a trace of the command line. 157964ce7165Smrg# Strip out --no-create and --no-recursion so they do not pile up. 158064ce7165Smrg# Strip out --silent because we don't want to record it for future runs. 158164ce7165Smrg# Also quote any args containing shell meta-characters. 158264ce7165Smrg# Make two passes to allow for proper duplicate-argument suppression. 158364ce7165Smrgac_configure_args= 158464ce7165Smrgac_configure_args0= 158564ce7165Smrgac_configure_args1= 158664ce7165Smrgac_must_keep_next=false 158764ce7165Smrgfor ac_pass in 1 2 158864ce7165Smrgdo 158964ce7165Smrg for ac_arg 159064ce7165Smrg do 159164ce7165Smrg case $ac_arg in 159264ce7165Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 159364ce7165Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 159464ce7165Smrg | -silent | --silent | --silen | --sile | --sil) 159564ce7165Smrg continue ;; 159664ce7165Smrg *\'*) 1597fb23d3a8Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 159864ce7165Smrg esac 159964ce7165Smrg case $ac_pass in 160064ce7165Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 160164ce7165Smrg 2) 160264ce7165Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 160364ce7165Smrg if test $ac_must_keep_next = true; then 160464ce7165Smrg ac_must_keep_next=false # Got value, back to normal. 160564ce7165Smrg else 160664ce7165Smrg case $ac_arg in 160764ce7165Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 160864ce7165Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 160964ce7165Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 161064ce7165Smrg | -with-* | --with-* | -without-* | --without-* | --x) 161164ce7165Smrg case "$ac_configure_args0 " in 161264ce7165Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 161364ce7165Smrg esac 161464ce7165Smrg ;; 161564ce7165Smrg -* ) ac_must_keep_next=true ;; 161664ce7165Smrg esac 161764ce7165Smrg fi 161864ce7165Smrg ac_configure_args="$ac_configure_args '$ac_arg'" 161964ce7165Smrg ;; 162064ce7165Smrg esac 162164ce7165Smrg done 162264ce7165Smrgdone 162364ce7165Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 162464ce7165Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 162564ce7165Smrg 162664ce7165Smrg# When interrupted or exit'd, cleanup temporary files, and complete 162764ce7165Smrg# config.log. We remove comments because anyway the quotes in there 162864ce7165Smrg# would cause problems or look ugly. 162964ce7165Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 163064ce7165Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 163164ce7165Smrgtrap 'exit_status=$? 163264ce7165Smrg # Save into config.log some information that might help in debugging. 163364ce7165Smrg { 163464ce7165Smrg echo 163564ce7165Smrg 163664ce7165Smrg cat <<\_ASBOX 163764ce7165Smrg## ---------------- ## 163864ce7165Smrg## Cache variables. ## 163964ce7165Smrg## ---------------- ## 164064ce7165Smrg_ASBOX 164164ce7165Smrg echo 164264ce7165Smrg # The following way of writing the cache mishandles newlines in values, 164364ce7165Smrg( 164464ce7165Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 164564ce7165Smrg eval ac_val=\$$ac_var 164664ce7165Smrg case $ac_val in #( 164764ce7165Smrg *${as_nl}*) 164864ce7165Smrg case $ac_var in #( 1649fb23d3a8Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1650fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 165164ce7165Smrg esac 165264ce7165Smrg case $ac_var in #( 165364ce7165Smrg _ | IFS | as_nl) ;; #( 1654fb23d3a8Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 165564ce7165Smrg *) $as_unset $ac_var ;; 165664ce7165Smrg esac ;; 165764ce7165Smrg esac 165864ce7165Smrg done 165964ce7165Smrg (set) 2>&1 | 166064ce7165Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 166164ce7165Smrg *${as_nl}ac_space=\ *) 166264ce7165Smrg sed -n \ 166364ce7165Smrg "s/'\''/'\''\\\\'\'''\''/g; 166464ce7165Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 166564ce7165Smrg ;; #( 166664ce7165Smrg *) 166764ce7165Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 166864ce7165Smrg ;; 166964ce7165Smrg esac | 167064ce7165Smrg sort 167164ce7165Smrg) 167264ce7165Smrg echo 167364ce7165Smrg 167464ce7165Smrg cat <<\_ASBOX 167564ce7165Smrg## ----------------- ## 167664ce7165Smrg## Output variables. ## 167764ce7165Smrg## ----------------- ## 167864ce7165Smrg_ASBOX 167964ce7165Smrg echo 168064ce7165Smrg for ac_var in $ac_subst_vars 168164ce7165Smrg do 168264ce7165Smrg eval ac_val=\$$ac_var 168364ce7165Smrg case $ac_val in 1684fb23d3a8Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 168564ce7165Smrg esac 1686fb23d3a8Smrg $as_echo "$ac_var='\''$ac_val'\''" 168764ce7165Smrg done | sort 168864ce7165Smrg echo 168964ce7165Smrg 169064ce7165Smrg if test -n "$ac_subst_files"; then 169164ce7165Smrg cat <<\_ASBOX 169264ce7165Smrg## ------------------- ## 169364ce7165Smrg## File substitutions. ## 169464ce7165Smrg## ------------------- ## 169564ce7165Smrg_ASBOX 169664ce7165Smrg echo 169764ce7165Smrg for ac_var in $ac_subst_files 169864ce7165Smrg do 169964ce7165Smrg eval ac_val=\$$ac_var 170064ce7165Smrg case $ac_val in 1701fb23d3a8Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 170264ce7165Smrg esac 1703fb23d3a8Smrg $as_echo "$ac_var='\''$ac_val'\''" 170464ce7165Smrg done | sort 170564ce7165Smrg echo 170664ce7165Smrg fi 170764ce7165Smrg 170864ce7165Smrg if test -s confdefs.h; then 170964ce7165Smrg cat <<\_ASBOX 171064ce7165Smrg## ----------- ## 171164ce7165Smrg## confdefs.h. ## 171264ce7165Smrg## ----------- ## 171364ce7165Smrg_ASBOX 171464ce7165Smrg echo 171564ce7165Smrg cat confdefs.h 171664ce7165Smrg echo 171764ce7165Smrg fi 171864ce7165Smrg test "$ac_signal" != 0 && 1719fb23d3a8Smrg $as_echo "$as_me: caught signal $ac_signal" 1720fb23d3a8Smrg $as_echo "$as_me: exit $exit_status" 172164ce7165Smrg } >&5 172264ce7165Smrg rm -f core *.core core.conftest.* && 172364ce7165Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 172464ce7165Smrg exit $exit_status 172564ce7165Smrg' 0 172664ce7165Smrgfor ac_signal in 1 2 13 15; do 172764ce7165Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 172864ce7165Smrgdone 172964ce7165Smrgac_signal=0 173064ce7165Smrg 173164ce7165Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 173264ce7165Smrgrm -f -r conftest* confdefs.h 173364ce7165Smrg 173464ce7165Smrg# Predefined preprocessor variables. 173564ce7165Smrg 173664ce7165Smrgcat >>confdefs.h <<_ACEOF 173764ce7165Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 173864ce7165Smrg_ACEOF 173964ce7165Smrg 174064ce7165Smrg 174164ce7165Smrgcat >>confdefs.h <<_ACEOF 174264ce7165Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 174364ce7165Smrg_ACEOF 174464ce7165Smrg 174564ce7165Smrg 174664ce7165Smrgcat >>confdefs.h <<_ACEOF 174764ce7165Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 174864ce7165Smrg_ACEOF 174964ce7165Smrg 175064ce7165Smrg 175164ce7165Smrgcat >>confdefs.h <<_ACEOF 175264ce7165Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 175364ce7165Smrg_ACEOF 175464ce7165Smrg 175564ce7165Smrg 175664ce7165Smrgcat >>confdefs.h <<_ACEOF 175764ce7165Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 175864ce7165Smrg_ACEOF 175964ce7165Smrg 176064ce7165Smrg 176164ce7165Smrg# Let the site file select an alternate cache file if it wants to. 1762fb23d3a8Smrg# Prefer an explicitly selected file to automatically selected ones. 1763fb23d3a8Smrgac_site_file1=NONE 1764fb23d3a8Smrgac_site_file2=NONE 176564ce7165Smrgif test -n "$CONFIG_SITE"; then 1766fb23d3a8Smrg ac_site_file1=$CONFIG_SITE 176764ce7165Smrgelif test "x$prefix" != xNONE; then 1768fb23d3a8Smrg ac_site_file1=$prefix/share/config.site 1769fb23d3a8Smrg ac_site_file2=$prefix/etc/config.site 177064ce7165Smrgelse 1771fb23d3a8Smrg ac_site_file1=$ac_default_prefix/share/config.site 1772fb23d3a8Smrg ac_site_file2=$ac_default_prefix/etc/config.site 177364ce7165Smrgfi 1774fb23d3a8Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 177564ce7165Smrgdo 1776fb23d3a8Smrg test "x$ac_site_file" = xNONE && continue 177764ce7165Smrg if test -r "$ac_site_file"; then 1778fb23d3a8Smrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1779fb23d3a8Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 178064ce7165Smrg sed 's/^/| /' "$ac_site_file" >&5 178164ce7165Smrg . "$ac_site_file" 178264ce7165Smrg fi 178364ce7165Smrgdone 178464ce7165Smrg 178564ce7165Smrgif test -r "$cache_file"; then 178664ce7165Smrg # Some versions of bash will fail to source /dev/null (special 178764ce7165Smrg # files actually), so we avoid doing that. 178864ce7165Smrg if test -f "$cache_file"; then 1789fb23d3a8Smrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1790fb23d3a8Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 179164ce7165Smrg case $cache_file in 179264ce7165Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 179364ce7165Smrg *) . "./$cache_file";; 179464ce7165Smrg esac 179564ce7165Smrg fi 179664ce7165Smrgelse 1797fb23d3a8Smrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1798fb23d3a8Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 179964ce7165Smrg >$cache_file 180064ce7165Smrgfi 180164ce7165Smrg 180264ce7165Smrg# Check that the precious variables saved in the cache have kept the same 180364ce7165Smrg# value. 180464ce7165Smrgac_cache_corrupted=false 180564ce7165Smrgfor ac_var in $ac_precious_vars; do 180664ce7165Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 180764ce7165Smrg eval ac_new_set=\$ac_env_${ac_var}_set 180864ce7165Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 180964ce7165Smrg eval ac_new_val=\$ac_env_${ac_var}_value 181064ce7165Smrg case $ac_old_set,$ac_new_set in 181164ce7165Smrg set,) 1812fb23d3a8Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1813fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 181464ce7165Smrg ac_cache_corrupted=: ;; 181564ce7165Smrg ,set) 1816fb23d3a8Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1817fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 181864ce7165Smrg ac_cache_corrupted=: ;; 181964ce7165Smrg ,);; 182064ce7165Smrg *) 182164ce7165Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1822fb23d3a8Smrg # differences in whitespace do not lead to failure. 1823fb23d3a8Smrg ac_old_val_w=`echo x $ac_old_val` 1824fb23d3a8Smrg ac_new_val_w=`echo x $ac_new_val` 1825fb23d3a8Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1826fb23d3a8Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1827fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1828fb23d3a8Smrg ac_cache_corrupted=: 1829fb23d3a8Smrg else 1830fb23d3a8Smrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1831fb23d3a8Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1832fb23d3a8Smrg eval $ac_var=\$ac_old_val 1833fb23d3a8Smrg fi 1834fb23d3a8Smrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1835fb23d3a8Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1836fb23d3a8Smrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1837fb23d3a8Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 183864ce7165Smrg fi;; 183964ce7165Smrg esac 184064ce7165Smrg # Pass precious variables to config.status. 184164ce7165Smrg if test "$ac_new_set" = set; then 184264ce7165Smrg case $ac_new_val in 1843fb23d3a8Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 184464ce7165Smrg *) ac_arg=$ac_var=$ac_new_val ;; 184564ce7165Smrg esac 184664ce7165Smrg case " $ac_configure_args " in 184764ce7165Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 184864ce7165Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 184964ce7165Smrg esac 185064ce7165Smrg fi 185164ce7165Smrgdone 185264ce7165Smrgif $ac_cache_corrupted; then 1853fb23d3a8Smrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1854fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1855fb23d3a8Smrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1856fb23d3a8Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1857fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1858fb23d3a8Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 185964ce7165Smrg { (exit 1); exit 1; }; } 186064ce7165Smrgfi 186164ce7165Smrg 186264ce7165Smrg 186364ce7165Smrg 186464ce7165Smrg 186564ce7165Smrg 186664ce7165Smrg 186764ce7165Smrg 186864ce7165Smrg 186964ce7165Smrg 187064ce7165Smrg 187164ce7165Smrg 187264ce7165Smrg 187364ce7165Smrg 187464ce7165Smrg 187564ce7165Smrg 187664ce7165Smrg 187764ce7165Smrg 187864ce7165Smrg 187964ce7165Smrg 188064ce7165Smrg 188164ce7165Smrg 188264ce7165Smrg 188364ce7165Smrg 188464ce7165Smrg 188564ce7165Smrg 188664ce7165Smrgac_ext=c 188764ce7165Smrgac_cpp='$CPP $CPPFLAGS' 188864ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 188964ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 189064ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 189164ce7165Smrg 189264ce7165Smrg 1893fb23d3a8Smrgam__api_version='1.11' 189464ce7165Smrg 189564ce7165Smrgac_aux_dir= 189664ce7165Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 189764ce7165Smrg if test -f "$ac_dir/install-sh"; then 189864ce7165Smrg ac_aux_dir=$ac_dir 189964ce7165Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 190064ce7165Smrg break 190164ce7165Smrg elif test -f "$ac_dir/install.sh"; then 190264ce7165Smrg ac_aux_dir=$ac_dir 190364ce7165Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 190464ce7165Smrg break 190564ce7165Smrg elif test -f "$ac_dir/shtool"; then 190664ce7165Smrg ac_aux_dir=$ac_dir 190764ce7165Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 190864ce7165Smrg break 190964ce7165Smrg fi 191064ce7165Smrgdone 191164ce7165Smrgif test -z "$ac_aux_dir"; then 1912fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1913fb23d3a8Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 191464ce7165Smrg { (exit 1); exit 1; }; } 191564ce7165Smrgfi 191664ce7165Smrg 191764ce7165Smrg# These three variables are undocumented and unsupported, 191864ce7165Smrg# and are intended to be withdrawn in a future Autoconf release. 191964ce7165Smrg# They can cause serious problems if a builder's source tree is in a directory 192064ce7165Smrg# whose full name contains unusual characters. 192164ce7165Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 192264ce7165Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 192364ce7165Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 192464ce7165Smrg 192564ce7165Smrg 192664ce7165Smrg# Find a good install program. We prefer a C program (faster), 192764ce7165Smrg# so one script is as good as another. But avoid the broken or 192864ce7165Smrg# incompatible versions: 192964ce7165Smrg# SysV /etc/install, /usr/sbin/install 193064ce7165Smrg# SunOS /usr/etc/install 193164ce7165Smrg# IRIX /sbin/install 193264ce7165Smrg# AIX /bin/install 193364ce7165Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 193464ce7165Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 193564ce7165Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 193664ce7165Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 193764ce7165Smrg# OS/2's system install, which has a completely different semantic 193864ce7165Smrg# ./install, which can be erroneously created by make from ./install.sh. 1939fb23d3a8Smrg# Reject install programs that cannot install multiple files. 1940fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1941fb23d3a8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 194264ce7165Smrgif test -z "$INSTALL"; then 194364ce7165Smrgif test "${ac_cv_path_install+set}" = set; then 1944fb23d3a8Smrg $as_echo_n "(cached) " >&6 194564ce7165Smrgelse 194664ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194764ce7165Smrgfor as_dir in $PATH 194864ce7165Smrgdo 194964ce7165Smrg IFS=$as_save_IFS 195064ce7165Smrg test -z "$as_dir" && as_dir=. 195164ce7165Smrg # Account for people who put trailing slashes in PATH elements. 195264ce7165Smrgcase $as_dir/ in 195364ce7165Smrg ./ | .// | /cC/* | \ 195464ce7165Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 195564ce7165Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 195664ce7165Smrg /usr/ucb/* ) ;; 195764ce7165Smrg *) 195864ce7165Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 195964ce7165Smrg # Don't use installbsd from OSF since it installs stuff as root 196064ce7165Smrg # by default. 196164ce7165Smrg for ac_prog in ginstall scoinst install; do 196264ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 196364ce7165Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 196464ce7165Smrg if test $ac_prog = install && 196564ce7165Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 196664ce7165Smrg # AIX install. It has an incompatible calling convention. 196764ce7165Smrg : 196864ce7165Smrg elif test $ac_prog = install && 196964ce7165Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 197064ce7165Smrg # program-specific install script used by HP pwplus--don't use. 197164ce7165Smrg : 197264ce7165Smrg else 1973fb23d3a8Smrg rm -rf conftest.one conftest.two conftest.dir 1974fb23d3a8Smrg echo one > conftest.one 1975fb23d3a8Smrg echo two > conftest.two 1976fb23d3a8Smrg mkdir conftest.dir 1977fb23d3a8Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1978fb23d3a8Smrg test -s conftest.one && test -s conftest.two && 1979fb23d3a8Smrg test -s conftest.dir/conftest.one && 1980fb23d3a8Smrg test -s conftest.dir/conftest.two 1981fb23d3a8Smrg then 1982fb23d3a8Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1983fb23d3a8Smrg break 3 1984fb23d3a8Smrg fi 198564ce7165Smrg fi 198664ce7165Smrg fi 198764ce7165Smrg done 198864ce7165Smrg done 198964ce7165Smrg ;; 199064ce7165Smrgesac 1991fb23d3a8Smrg 199264ce7165Smrgdone 199364ce7165SmrgIFS=$as_save_IFS 199464ce7165Smrg 1995fb23d3a8Smrgrm -rf conftest.one conftest.two conftest.dir 199664ce7165Smrg 199764ce7165Smrgfi 199864ce7165Smrg if test "${ac_cv_path_install+set}" = set; then 199964ce7165Smrg INSTALL=$ac_cv_path_install 200064ce7165Smrg else 200164ce7165Smrg # As a last resort, use the slow shell script. Don't cache a 200264ce7165Smrg # value for INSTALL within a source directory, because that will 200364ce7165Smrg # break other packages using the cache if that directory is 200464ce7165Smrg # removed, or if the value is a relative name. 200564ce7165Smrg INSTALL=$ac_install_sh 200664ce7165Smrg fi 200764ce7165Smrgfi 2008fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2009fb23d3a8Smrg$as_echo "$INSTALL" >&6; } 201064ce7165Smrg 201164ce7165Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 201264ce7165Smrg# It thinks the first close brace ends the variable substitution. 201364ce7165Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 201464ce7165Smrg 201564ce7165Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 201664ce7165Smrg 201764ce7165Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 201864ce7165Smrg 2019fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2020fb23d3a8Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 202164ce7165Smrg# Just in case 202264ce7165Smrgsleep 1 202364ce7165Smrgecho timestamp > conftest.file 2024fb23d3a8Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2025fb23d3a8Smrg# name. Accept space and tab only in the latter. 2026fb23d3a8Smrgam_lf=' 2027fb23d3a8Smrg' 2028fb23d3a8Smrgcase `pwd` in 2029fb23d3a8Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2030fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2031fb23d3a8Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2032fb23d3a8Smrg { (exit 1); exit 1; }; };; 2033fb23d3a8Smrgesac 2034fb23d3a8Smrgcase $srcdir in 2035fb23d3a8Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2036fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2037fb23d3a8Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2038fb23d3a8Smrg { (exit 1); exit 1; }; };; 2039fb23d3a8Smrgesac 2040fb23d3a8Smrg 204164ce7165Smrg# Do `set' in a subshell so we don't clobber the current shell's 204264ce7165Smrg# arguments. Must try -L first in case configure is actually a 204364ce7165Smrg# symlink; some systems play weird games with the mod time of symlinks 204464ce7165Smrg# (eg FreeBSD returns the mod time of the symlink's containing 204564ce7165Smrg# directory). 204664ce7165Smrgif ( 2047fb23d3a8Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 204864ce7165Smrg if test "$*" = "X"; then 204964ce7165Smrg # -L didn't work. 2050fb23d3a8Smrg set X `ls -t "$srcdir/configure" conftest.file` 205164ce7165Smrg fi 205264ce7165Smrg rm -f conftest.file 205364ce7165Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 205464ce7165Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 205564ce7165Smrg 205664ce7165Smrg # If neither matched, then we have a broken ls. This can happen 205764ce7165Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 205864ce7165Smrg # broken ls alias from the environment. This has actually 205964ce7165Smrg # happened. Such a system could not be considered "sane". 2060fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 206164ce7165Smrgalias in your environment" >&5 2062fb23d3a8Smrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 206364ce7165Smrgalias in your environment" >&2;} 206464ce7165Smrg { (exit 1); exit 1; }; } 206564ce7165Smrg fi 206664ce7165Smrg 206764ce7165Smrg test "$2" = conftest.file 206864ce7165Smrg ) 206964ce7165Smrgthen 207064ce7165Smrg # Ok. 207164ce7165Smrg : 207264ce7165Smrgelse 2073fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 207464ce7165SmrgCheck your system clock" >&5 2075fb23d3a8Smrg$as_echo "$as_me: error: newly created file is older than distributed files! 207664ce7165SmrgCheck your system clock" >&2;} 207764ce7165Smrg { (exit 1); exit 1; }; } 207864ce7165Smrgfi 2079fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2080fb23d3a8Smrg$as_echo "yes" >&6; } 208164ce7165Smrgtest "$program_prefix" != NONE && 208264ce7165Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 208364ce7165Smrg# Use a double $ so make ignores it. 208464ce7165Smrgtest "$program_suffix" != NONE && 208564ce7165Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2086fb23d3a8Smrg# Double any \ or $. 208764ce7165Smrg# By default was `s,x,x', remove it if useless. 2088fb23d3a8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2089fb23d3a8Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 209064ce7165Smrg 209164ce7165Smrg# expand $ac_aux_dir to an absolute path 209264ce7165Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 209364ce7165Smrg 2094fb23d3a8Smrgif test x"${MISSING+set}" != xset; then 2095fb23d3a8Smrg case $am_aux_dir in 2096fb23d3a8Smrg *\ * | *\ *) 2097fb23d3a8Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2098fb23d3a8Smrg *) 2099fb23d3a8Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2100fb23d3a8Smrg esac 2101fb23d3a8Smrgfi 210264ce7165Smrg# Use eval to expand $SHELL 210364ce7165Smrgif eval "$MISSING --run true"; then 210464ce7165Smrg am_missing_run="$MISSING --run " 210564ce7165Smrgelse 210664ce7165Smrg am_missing_run= 2107fb23d3a8Smrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2108fb23d3a8Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 210964ce7165Smrgfi 211064ce7165Smrg 2111fb23d3a8Smrgif test x"${install_sh}" != xset; then 2112fb23d3a8Smrg case $am_aux_dir in 2113fb23d3a8Smrg *\ * | *\ *) 2114fb23d3a8Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2115fb23d3a8Smrg *) 2116fb23d3a8Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2117fb23d3a8Smrg esac 2118fb23d3a8Smrgfi 2119fb23d3a8Smrg 2120fb23d3a8Smrg# Installed binaries are usually stripped using `strip' when the user 2121fb23d3a8Smrg# run `make install-strip'. However `strip' might not be the right 2122fb23d3a8Smrg# tool to use in cross-compilation environments, therefore Automake 2123fb23d3a8Smrg# will honor the `STRIP' environment variable to overrule this program. 2124fb23d3a8Smrgif test "$cross_compiling" != no; then 2125fb23d3a8Smrg if test -n "$ac_tool_prefix"; then 2126fb23d3a8Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2127fb23d3a8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2128fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2129fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 2130fb23d3a8Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 2131fb23d3a8Smrg $as_echo_n "(cached) " >&6 2132fb23d3a8Smrgelse 2133fb23d3a8Smrg if test -n "$STRIP"; then 2134fb23d3a8Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2135fb23d3a8Smrgelse 2136fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137fb23d3a8Smrgfor as_dir in $PATH 2138fb23d3a8Smrgdo 2139fb23d3a8Smrg IFS=$as_save_IFS 2140fb23d3a8Smrg test -z "$as_dir" && as_dir=. 2141fb23d3a8Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2142fb23d3a8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2143fb23d3a8Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2144fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2145fb23d3a8Smrg break 2 2146fb23d3a8Smrg fi 2147fb23d3a8Smrgdone 2148fb23d3a8Smrgdone 2149fb23d3a8SmrgIFS=$as_save_IFS 2150fb23d3a8Smrg 2151fb23d3a8Smrgfi 2152fb23d3a8Smrgfi 2153fb23d3a8SmrgSTRIP=$ac_cv_prog_STRIP 2154fb23d3a8Smrgif test -n "$STRIP"; then 2155fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2156fb23d3a8Smrg$as_echo "$STRIP" >&6; } 2157fb23d3a8Smrgelse 2158fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2159fb23d3a8Smrg$as_echo "no" >&6; } 2160fb23d3a8Smrgfi 2161fb23d3a8Smrg 2162fb23d3a8Smrg 2163fb23d3a8Smrgfi 2164fb23d3a8Smrgif test -z "$ac_cv_prog_STRIP"; then 2165fb23d3a8Smrg ac_ct_STRIP=$STRIP 2166fb23d3a8Smrg # Extract the first word of "strip", so it can be a program name with args. 2167fb23d3a8Smrgset dummy strip; ac_word=$2 2168fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2169fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 2170fb23d3a8Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2171fb23d3a8Smrg $as_echo_n "(cached) " >&6 2172fb23d3a8Smrgelse 2173fb23d3a8Smrg if test -n "$ac_ct_STRIP"; then 2174fb23d3a8Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2175fb23d3a8Smrgelse 2176fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177fb23d3a8Smrgfor as_dir in $PATH 2178fb23d3a8Smrgdo 2179fb23d3a8Smrg IFS=$as_save_IFS 2180fb23d3a8Smrg test -z "$as_dir" && as_dir=. 2181fb23d3a8Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2182fb23d3a8Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2183fb23d3a8Smrg ac_cv_prog_ac_ct_STRIP="strip" 2184fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2185fb23d3a8Smrg break 2 2186fb23d3a8Smrg fi 2187fb23d3a8Smrgdone 2188fb23d3a8Smrgdone 2189fb23d3a8SmrgIFS=$as_save_IFS 2190fb23d3a8Smrg 2191fb23d3a8Smrgfi 2192fb23d3a8Smrgfi 2193fb23d3a8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2194fb23d3a8Smrgif test -n "$ac_ct_STRIP"; then 2195fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2196fb23d3a8Smrg$as_echo "$ac_ct_STRIP" >&6; } 2197fb23d3a8Smrgelse 2198fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2199fb23d3a8Smrg$as_echo "no" >&6; } 2200fb23d3a8Smrgfi 2201fb23d3a8Smrg 2202fb23d3a8Smrg if test "x$ac_ct_STRIP" = x; then 2203fb23d3a8Smrg STRIP=":" 2204fb23d3a8Smrg else 2205fb23d3a8Smrg case $cross_compiling:$ac_tool_warned in 2206fb23d3a8Smrgyes:) 2207fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2208fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2209fb23d3a8Smrgac_tool_warned=yes ;; 2210fb23d3a8Smrgesac 2211fb23d3a8Smrg STRIP=$ac_ct_STRIP 2212fb23d3a8Smrg fi 2213fb23d3a8Smrgelse 2214fb23d3a8Smrg STRIP="$ac_cv_prog_STRIP" 2215fb23d3a8Smrgfi 2216fb23d3a8Smrg 2217fb23d3a8Smrgfi 2218fb23d3a8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2219fb23d3a8Smrg 2220fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2221fb23d3a8Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2222fb23d3a8Smrgif test -z "$MKDIR_P"; then 2223fb23d3a8Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2224fb23d3a8Smrg $as_echo_n "(cached) " >&6 2225fb23d3a8Smrgelse 222664ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222764ce7165Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 222864ce7165Smrgdo 222964ce7165Smrg IFS=$as_save_IFS 223064ce7165Smrg test -z "$as_dir" && as_dir=. 223164ce7165Smrg for ac_prog in mkdir gmkdir; do 223264ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 223364ce7165Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 223464ce7165Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 223564ce7165Smrg 'mkdir (GNU coreutils) '* | \ 223664ce7165Smrg 'mkdir (coreutils) '* | \ 223764ce7165Smrg 'mkdir (fileutils) '4.1*) 223864ce7165Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 223964ce7165Smrg break 3;; 224064ce7165Smrg esac 224164ce7165Smrg done 224264ce7165Smrg done 224364ce7165Smrgdone 224464ce7165SmrgIFS=$as_save_IFS 224564ce7165Smrg 224664ce7165Smrgfi 224764ce7165Smrg 224864ce7165Smrg if test "${ac_cv_path_mkdir+set}" = set; then 224964ce7165Smrg MKDIR_P="$ac_cv_path_mkdir -p" 225064ce7165Smrg else 225164ce7165Smrg # As a last resort, use the slow shell script. Don't cache a 225264ce7165Smrg # value for MKDIR_P within a source directory, because that will 225364ce7165Smrg # break other packages using the cache if that directory is 225464ce7165Smrg # removed, or if the value is a relative name. 225564ce7165Smrg test -d ./--version && rmdir ./--version 225664ce7165Smrg MKDIR_P="$ac_install_sh -d" 225764ce7165Smrg fi 225864ce7165Smrgfi 2259fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2260fb23d3a8Smrg$as_echo "$MKDIR_P" >&6; } 226164ce7165Smrg 226264ce7165Smrgmkdir_p="$MKDIR_P" 226364ce7165Smrgcase $mkdir_p in 226464ce7165Smrg [\\/$]* | ?:[\\/]*) ;; 226564ce7165Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 226664ce7165Smrgesac 226764ce7165Smrg 226864ce7165Smrgfor ac_prog in gawk mawk nawk awk 226964ce7165Smrgdo 227064ce7165Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 227164ce7165Smrgset dummy $ac_prog; ac_word=$2 2272fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2273fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 227464ce7165Smrgif test "${ac_cv_prog_AWK+set}" = set; then 2275fb23d3a8Smrg $as_echo_n "(cached) " >&6 227664ce7165Smrgelse 227764ce7165Smrg if test -n "$AWK"; then 227864ce7165Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 227964ce7165Smrgelse 228064ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 228164ce7165Smrgfor as_dir in $PATH 228264ce7165Smrgdo 228364ce7165Smrg IFS=$as_save_IFS 228464ce7165Smrg test -z "$as_dir" && as_dir=. 228564ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 228664ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 228764ce7165Smrg ac_cv_prog_AWK="$ac_prog" 2288fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 228964ce7165Smrg break 2 229064ce7165Smrg fi 229164ce7165Smrgdone 229264ce7165Smrgdone 229364ce7165SmrgIFS=$as_save_IFS 229464ce7165Smrg 229564ce7165Smrgfi 229664ce7165Smrgfi 229764ce7165SmrgAWK=$ac_cv_prog_AWK 229864ce7165Smrgif test -n "$AWK"; then 2299fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2300fb23d3a8Smrg$as_echo "$AWK" >&6; } 230164ce7165Smrgelse 2302fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2303fb23d3a8Smrg$as_echo "no" >&6; } 230464ce7165Smrgfi 230564ce7165Smrg 230664ce7165Smrg 230764ce7165Smrg test -n "$AWK" && break 230864ce7165Smrgdone 230964ce7165Smrg 2310fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2311fb23d3a8Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2312fb23d3a8Smrgset x ${MAKE-make} 2313fb23d3a8Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 231464ce7165Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2315fb23d3a8Smrg $as_echo_n "(cached) " >&6 231664ce7165Smrgelse 231764ce7165Smrg cat >conftest.make <<\_ACEOF 231864ce7165SmrgSHELL = /bin/sh 231964ce7165Smrgall: 232064ce7165Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 232164ce7165Smrg_ACEOF 232264ce7165Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 232364ce7165Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 232464ce7165Smrg *@@@%%%=?*=@@@%%%*) 232564ce7165Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 232664ce7165Smrg *) 232764ce7165Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 232864ce7165Smrgesac 232964ce7165Smrgrm -f conftest.make 233064ce7165Smrgfi 233164ce7165Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2332fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 2333fb23d3a8Smrg$as_echo "yes" >&6; } 233464ce7165Smrg SET_MAKE= 233564ce7165Smrgelse 2336fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2337fb23d3a8Smrg$as_echo "no" >&6; } 233864ce7165Smrg SET_MAKE="MAKE=${MAKE-make}" 233964ce7165Smrgfi 234064ce7165Smrg 234164ce7165Smrgrm -rf .tst 2>/dev/null 234264ce7165Smrgmkdir .tst 2>/dev/null 234364ce7165Smrgif test -d .tst; then 234464ce7165Smrg am__leading_dot=. 234564ce7165Smrgelse 234664ce7165Smrg am__leading_dot=_ 234764ce7165Smrgfi 234864ce7165Smrgrmdir .tst 2>/dev/null 234964ce7165Smrg 235064ce7165Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 235164ce7165Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 235264ce7165Smrg # is not polluted with repeated "-I." 235364ce7165Smrg am__isrc=' -I$(srcdir)' 235464ce7165Smrg # test to see if srcdir already configured 235564ce7165Smrg if test -f $srcdir/config.status; then 2356fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2357fb23d3a8Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 235864ce7165Smrg { (exit 1); exit 1; }; } 235964ce7165Smrg fi 236064ce7165Smrgfi 236164ce7165Smrg 236264ce7165Smrg# test whether we have cygpath 236364ce7165Smrgif test -z "$CYGPATH_W"; then 236464ce7165Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 236564ce7165Smrg CYGPATH_W='cygpath -w' 236664ce7165Smrg else 236764ce7165Smrg CYGPATH_W=echo 236864ce7165Smrg fi 236964ce7165Smrgfi 237064ce7165Smrg 237164ce7165Smrg 237264ce7165Smrg# Define the identity of the package. 237364ce7165Smrg PACKAGE='xhost' 2374fb23d3a8Smrg VERSION='1.0.3' 237564ce7165Smrg 237664ce7165Smrg 237764ce7165Smrgcat >>confdefs.h <<_ACEOF 237864ce7165Smrg#define PACKAGE "$PACKAGE" 237964ce7165Smrg_ACEOF 238064ce7165Smrg 238164ce7165Smrg 238264ce7165Smrgcat >>confdefs.h <<_ACEOF 238364ce7165Smrg#define VERSION "$VERSION" 238464ce7165Smrg_ACEOF 238564ce7165Smrg 238664ce7165Smrg# Some tools Automake needs. 238764ce7165Smrg 238864ce7165SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 238964ce7165Smrg 239064ce7165Smrg 239164ce7165SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 239264ce7165Smrg 239364ce7165Smrg 239464ce7165SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 239564ce7165Smrg 239664ce7165Smrg 239764ce7165SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 239864ce7165Smrg 239964ce7165Smrg 240064ce7165SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 240164ce7165Smrg 240264ce7165Smrg# We need awk for the "check" target. The system "awk" is bad on 240364ce7165Smrg# some platforms. 240464ce7165Smrg# Always define AMTAR for backward compatibility. 240564ce7165Smrg 240664ce7165SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 240764ce7165Smrg 240864ce7165Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 240964ce7165Smrg 241064ce7165Smrg 241164ce7165Smrg 241264ce7165Smrg 241364ce7165Smrg 2414fb23d3a8Smrg 2415fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2416fb23d3a8Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 241764ce7165Smrg # Check whether --enable-maintainer-mode was given. 241864ce7165Smrgif test "${enable_maintainer_mode+set}" = set; then 241964ce7165Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 242064ce7165Smrgelse 242164ce7165Smrg USE_MAINTAINER_MODE=no 242264ce7165Smrgfi 242364ce7165Smrg 2424fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2425fb23d3a8Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 242664ce7165Smrg if test $USE_MAINTAINER_MODE = yes; then 242764ce7165Smrg MAINTAINER_MODE_TRUE= 242864ce7165Smrg MAINTAINER_MODE_FALSE='#' 242964ce7165Smrgelse 243064ce7165Smrg MAINTAINER_MODE_TRUE='#' 243164ce7165Smrg MAINTAINER_MODE_FALSE= 243264ce7165Smrgfi 243364ce7165Smrg 243464ce7165Smrg MAINT=$MAINTAINER_MODE_TRUE 243564ce7165Smrg 243664ce7165Smrg 243764ce7165Smrg 2438fb23d3a8Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2439fb23d3a8Smrg 2440fb23d3a8Smrg 2441fb23d3a8Smrg 2442fb23d3a8Smrg 2443fb23d3a8Smrg 2444fb23d3a8Smrg 2445fb23d3a8Smrg 2446fb23d3a8Smrg 2447fb23d3a8Smrg 2448fb23d3a8Smrg 2449fb23d3a8Smrg 2450fb23d3a8Smrg 245164ce7165Smrgac_config_headers="$ac_config_headers config.h" 245264ce7165Smrg 245364ce7165Smrg 245464ce7165Smrgac_ext=c 245564ce7165Smrgac_cpp='$CPP $CPPFLAGS' 245664ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 245764ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 245864ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 245964ce7165Smrgif test -n "$ac_tool_prefix"; then 246064ce7165Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 246164ce7165Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2462fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2463fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 246464ce7165Smrgif test "${ac_cv_prog_CC+set}" = set; then 2465fb23d3a8Smrg $as_echo_n "(cached) " >&6 246664ce7165Smrgelse 246764ce7165Smrg if test -n "$CC"; then 246864ce7165Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 246964ce7165Smrgelse 247064ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 247164ce7165Smrgfor as_dir in $PATH 247264ce7165Smrgdo 247364ce7165Smrg IFS=$as_save_IFS 247464ce7165Smrg test -z "$as_dir" && as_dir=. 247564ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 247664ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 247764ce7165Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2478fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 247964ce7165Smrg break 2 248064ce7165Smrg fi 248164ce7165Smrgdone 248264ce7165Smrgdone 248364ce7165SmrgIFS=$as_save_IFS 248464ce7165Smrg 248564ce7165Smrgfi 248664ce7165Smrgfi 248764ce7165SmrgCC=$ac_cv_prog_CC 248864ce7165Smrgif test -n "$CC"; then 2489fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2490fb23d3a8Smrg$as_echo "$CC" >&6; } 249164ce7165Smrgelse 2492fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2493fb23d3a8Smrg$as_echo "no" >&6; } 249464ce7165Smrgfi 249564ce7165Smrg 249664ce7165Smrg 249764ce7165Smrgfi 249864ce7165Smrgif test -z "$ac_cv_prog_CC"; then 249964ce7165Smrg ac_ct_CC=$CC 250064ce7165Smrg # Extract the first word of "gcc", so it can be a program name with args. 250164ce7165Smrgset dummy gcc; ac_word=$2 2502fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2503fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 250464ce7165Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2505fb23d3a8Smrg $as_echo_n "(cached) " >&6 250664ce7165Smrgelse 250764ce7165Smrg if test -n "$ac_ct_CC"; then 250864ce7165Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 250964ce7165Smrgelse 251064ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 251164ce7165Smrgfor as_dir in $PATH 251264ce7165Smrgdo 251364ce7165Smrg IFS=$as_save_IFS 251464ce7165Smrg test -z "$as_dir" && as_dir=. 251564ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 251664ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 251764ce7165Smrg ac_cv_prog_ac_ct_CC="gcc" 2518fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 251964ce7165Smrg break 2 252064ce7165Smrg fi 252164ce7165Smrgdone 252264ce7165Smrgdone 252364ce7165SmrgIFS=$as_save_IFS 252464ce7165Smrg 252564ce7165Smrgfi 252664ce7165Smrgfi 252764ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 252864ce7165Smrgif test -n "$ac_ct_CC"; then 2529fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2530fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; } 253164ce7165Smrgelse 2532fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2533fb23d3a8Smrg$as_echo "no" >&6; } 253464ce7165Smrgfi 253564ce7165Smrg 253664ce7165Smrg if test "x$ac_ct_CC" = x; then 253764ce7165Smrg CC="" 253864ce7165Smrg else 253964ce7165Smrg case $cross_compiling:$ac_tool_warned in 254064ce7165Smrgyes:) 2541fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2542fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 254364ce7165Smrgac_tool_warned=yes ;; 254464ce7165Smrgesac 254564ce7165Smrg CC=$ac_ct_CC 254664ce7165Smrg fi 254764ce7165Smrgelse 254864ce7165Smrg CC="$ac_cv_prog_CC" 254964ce7165Smrgfi 255064ce7165Smrg 255164ce7165Smrgif test -z "$CC"; then 255264ce7165Smrg if test -n "$ac_tool_prefix"; then 255364ce7165Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 255464ce7165Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2555fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2556fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 255764ce7165Smrgif test "${ac_cv_prog_CC+set}" = set; then 2558fb23d3a8Smrg $as_echo_n "(cached) " >&6 255964ce7165Smrgelse 256064ce7165Smrg if test -n "$CC"; then 256164ce7165Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 256264ce7165Smrgelse 256364ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 256464ce7165Smrgfor as_dir in $PATH 256564ce7165Smrgdo 256664ce7165Smrg IFS=$as_save_IFS 256764ce7165Smrg test -z "$as_dir" && as_dir=. 256864ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 256964ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 257064ce7165Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2571fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 257264ce7165Smrg break 2 257364ce7165Smrg fi 257464ce7165Smrgdone 257564ce7165Smrgdone 257664ce7165SmrgIFS=$as_save_IFS 257764ce7165Smrg 257864ce7165Smrgfi 257964ce7165Smrgfi 258064ce7165SmrgCC=$ac_cv_prog_CC 258164ce7165Smrgif test -n "$CC"; then 2582fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2583fb23d3a8Smrg$as_echo "$CC" >&6; } 258464ce7165Smrgelse 2585fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2586fb23d3a8Smrg$as_echo "no" >&6; } 258764ce7165Smrgfi 258864ce7165Smrg 258964ce7165Smrg 259064ce7165Smrg fi 259164ce7165Smrgfi 259264ce7165Smrgif test -z "$CC"; then 259364ce7165Smrg # Extract the first word of "cc", so it can be a program name with args. 259464ce7165Smrgset dummy cc; ac_word=$2 2595fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2596fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 259764ce7165Smrgif test "${ac_cv_prog_CC+set}" = set; then 2598fb23d3a8Smrg $as_echo_n "(cached) " >&6 259964ce7165Smrgelse 260064ce7165Smrg if test -n "$CC"; then 260164ce7165Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 260264ce7165Smrgelse 260364ce7165Smrg ac_prog_rejected=no 260464ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 260564ce7165Smrgfor as_dir in $PATH 260664ce7165Smrgdo 260764ce7165Smrg IFS=$as_save_IFS 260864ce7165Smrg test -z "$as_dir" && as_dir=. 260964ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 261064ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 261164ce7165Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 261264ce7165Smrg ac_prog_rejected=yes 261364ce7165Smrg continue 261464ce7165Smrg fi 261564ce7165Smrg ac_cv_prog_CC="cc" 2616fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 261764ce7165Smrg break 2 261864ce7165Smrg fi 261964ce7165Smrgdone 262064ce7165Smrgdone 262164ce7165SmrgIFS=$as_save_IFS 262264ce7165Smrg 262364ce7165Smrgif test $ac_prog_rejected = yes; then 262464ce7165Smrg # We found a bogon in the path, so make sure we never use it. 262564ce7165Smrg set dummy $ac_cv_prog_CC 262664ce7165Smrg shift 262764ce7165Smrg if test $# != 0; then 262864ce7165Smrg # We chose a different compiler from the bogus one. 262964ce7165Smrg # However, it has the same basename, so the bogon will be chosen 263064ce7165Smrg # first if we set CC to just the basename; use the full file name. 263164ce7165Smrg shift 263264ce7165Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 263364ce7165Smrg fi 263464ce7165Smrgfi 263564ce7165Smrgfi 263664ce7165Smrgfi 263764ce7165SmrgCC=$ac_cv_prog_CC 263864ce7165Smrgif test -n "$CC"; then 2639fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2640fb23d3a8Smrg$as_echo "$CC" >&6; } 264164ce7165Smrgelse 2642fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2643fb23d3a8Smrg$as_echo "no" >&6; } 264464ce7165Smrgfi 264564ce7165Smrg 264664ce7165Smrg 264764ce7165Smrgfi 264864ce7165Smrgif test -z "$CC"; then 264964ce7165Smrg if test -n "$ac_tool_prefix"; then 265064ce7165Smrg for ac_prog in cl.exe 265164ce7165Smrg do 265264ce7165Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 265364ce7165Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2654fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2655fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 265664ce7165Smrgif test "${ac_cv_prog_CC+set}" = set; then 2657fb23d3a8Smrg $as_echo_n "(cached) " >&6 265864ce7165Smrgelse 265964ce7165Smrg if test -n "$CC"; then 266064ce7165Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 266164ce7165Smrgelse 266264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 266364ce7165Smrgfor as_dir in $PATH 266464ce7165Smrgdo 266564ce7165Smrg IFS=$as_save_IFS 266664ce7165Smrg test -z "$as_dir" && as_dir=. 266764ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 266864ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 266964ce7165Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2670fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 267164ce7165Smrg break 2 267264ce7165Smrg fi 267364ce7165Smrgdone 267464ce7165Smrgdone 267564ce7165SmrgIFS=$as_save_IFS 267664ce7165Smrg 267764ce7165Smrgfi 267864ce7165Smrgfi 267964ce7165SmrgCC=$ac_cv_prog_CC 268064ce7165Smrgif test -n "$CC"; then 2681fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2682fb23d3a8Smrg$as_echo "$CC" >&6; } 268364ce7165Smrgelse 2684fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2685fb23d3a8Smrg$as_echo "no" >&6; } 268664ce7165Smrgfi 268764ce7165Smrg 268864ce7165Smrg 268964ce7165Smrg test -n "$CC" && break 269064ce7165Smrg done 269164ce7165Smrgfi 269264ce7165Smrgif test -z "$CC"; then 269364ce7165Smrg ac_ct_CC=$CC 269464ce7165Smrg for ac_prog in cl.exe 269564ce7165Smrgdo 269664ce7165Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 269764ce7165Smrgset dummy $ac_prog; ac_word=$2 2698fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2699fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 270064ce7165Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2701fb23d3a8Smrg $as_echo_n "(cached) " >&6 270264ce7165Smrgelse 270364ce7165Smrg if test -n "$ac_ct_CC"; then 270464ce7165Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 270564ce7165Smrgelse 270664ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 270764ce7165Smrgfor as_dir in $PATH 270864ce7165Smrgdo 270964ce7165Smrg IFS=$as_save_IFS 271064ce7165Smrg test -z "$as_dir" && as_dir=. 271164ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 271264ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 271364ce7165Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2714fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 271564ce7165Smrg break 2 271664ce7165Smrg fi 271764ce7165Smrgdone 271864ce7165Smrgdone 271964ce7165SmrgIFS=$as_save_IFS 272064ce7165Smrg 272164ce7165Smrgfi 272264ce7165Smrgfi 272364ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 272464ce7165Smrgif test -n "$ac_ct_CC"; then 2725fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2726fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; } 272764ce7165Smrgelse 2728fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2729fb23d3a8Smrg$as_echo "no" >&6; } 273064ce7165Smrgfi 273164ce7165Smrg 273264ce7165Smrg 273364ce7165Smrg test -n "$ac_ct_CC" && break 273464ce7165Smrgdone 273564ce7165Smrg 273664ce7165Smrg if test "x$ac_ct_CC" = x; then 273764ce7165Smrg CC="" 273864ce7165Smrg else 273964ce7165Smrg case $cross_compiling:$ac_tool_warned in 274064ce7165Smrgyes:) 2741fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2742fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 274364ce7165Smrgac_tool_warned=yes ;; 274464ce7165Smrgesac 274564ce7165Smrg CC=$ac_ct_CC 274664ce7165Smrg fi 274764ce7165Smrgfi 274864ce7165Smrg 274964ce7165Smrgfi 275064ce7165Smrg 275164ce7165Smrg 2752fb23d3a8Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2753fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 275564ce7165SmrgSee \`config.log' for more details." >&5 2756fb23d3a8Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 275764ce7165SmrgSee \`config.log' for more details." >&2;} 2758fb23d3a8Smrg { (exit 1); exit 1; }; }; } 275964ce7165Smrg 276064ce7165Smrg# Provide some information about the compiler. 2761fb23d3a8Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2762fb23d3a8Smrgset X $ac_compile 2763fb23d3a8Smrgac_compiler=$2 276464ce7165Smrg{ (ac_try="$ac_compiler --version >&5" 276564ce7165Smrgcase "(($ac_try" in 276664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 276764ce7165Smrg *) ac_try_echo=$ac_try;; 276864ce7165Smrgesac 2769fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2770fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 277164ce7165Smrg (eval "$ac_compiler --version >&5") 2>&5 277264ce7165Smrg ac_status=$? 2773fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 277464ce7165Smrg (exit $ac_status); } 277564ce7165Smrg{ (ac_try="$ac_compiler -v >&5" 277664ce7165Smrgcase "(($ac_try" in 277764ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 277864ce7165Smrg *) ac_try_echo=$ac_try;; 277964ce7165Smrgesac 2780fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2781fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 278264ce7165Smrg (eval "$ac_compiler -v >&5") 2>&5 278364ce7165Smrg ac_status=$? 2784fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 278564ce7165Smrg (exit $ac_status); } 278664ce7165Smrg{ (ac_try="$ac_compiler -V >&5" 278764ce7165Smrgcase "(($ac_try" in 278864ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 278964ce7165Smrg *) ac_try_echo=$ac_try;; 279064ce7165Smrgesac 2791fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2792fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 279364ce7165Smrg (eval "$ac_compiler -V >&5") 2>&5 279464ce7165Smrg ac_status=$? 2795fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 279664ce7165Smrg (exit $ac_status); } 279764ce7165Smrg 279864ce7165Smrgcat >conftest.$ac_ext <<_ACEOF 279964ce7165Smrg/* confdefs.h. */ 280064ce7165Smrg_ACEOF 280164ce7165Smrgcat confdefs.h >>conftest.$ac_ext 280264ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 280364ce7165Smrg/* end confdefs.h. */ 280464ce7165Smrg 280564ce7165Smrgint 280664ce7165Smrgmain () 280764ce7165Smrg{ 280864ce7165Smrg 280964ce7165Smrg ; 281064ce7165Smrg return 0; 281164ce7165Smrg} 281264ce7165Smrg_ACEOF 281364ce7165Smrgac_clean_files_save=$ac_clean_files 2814fb23d3a8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 281564ce7165Smrg# Try to create an executable without -o first, disregard a.out. 281664ce7165Smrg# It will help us diagnose broken compilers, and finding out an intuition 281764ce7165Smrg# of exeext. 2818fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2819fb23d3a8Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 2820fb23d3a8Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2821fb23d3a8Smrg 2822fb23d3a8Smrg# The possible output files: 2823fb23d3a8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2824fb23d3a8Smrg 282564ce7165Smrgac_rmfiles= 282664ce7165Smrgfor ac_file in $ac_files 282764ce7165Smrgdo 282864ce7165Smrg case $ac_file in 2829fb23d3a8Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 283064ce7165Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 283164ce7165Smrg esac 283264ce7165Smrgdone 283364ce7165Smrgrm -f $ac_rmfiles 283464ce7165Smrg 283564ce7165Smrgif { (ac_try="$ac_link_default" 283664ce7165Smrgcase "(($ac_try" in 283764ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 283864ce7165Smrg *) ac_try_echo=$ac_try;; 283964ce7165Smrgesac 2840fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2841fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 284264ce7165Smrg (eval "$ac_link_default") 2>&5 284364ce7165Smrg ac_status=$? 2844fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 284564ce7165Smrg (exit $ac_status); }; then 284664ce7165Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 284764ce7165Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 284864ce7165Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 284964ce7165Smrg# so that the user can short-circuit this test for compilers unknown to 285064ce7165Smrg# Autoconf. 285164ce7165Smrgfor ac_file in $ac_files '' 285264ce7165Smrgdo 285364ce7165Smrg test -f "$ac_file" || continue 285464ce7165Smrg case $ac_file in 2855fb23d3a8Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 285664ce7165Smrg ;; 285764ce7165Smrg [ab].out ) 285864ce7165Smrg # We found the default executable, but exeext='' is most 285964ce7165Smrg # certainly right. 286064ce7165Smrg break;; 286164ce7165Smrg *.* ) 286264ce7165Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 286364ce7165Smrg then :; else 286464ce7165Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 286564ce7165Smrg fi 286664ce7165Smrg # We set ac_cv_exeext here because the later test for it is not 286764ce7165Smrg # safe: cross compilers may not add the suffix if given an `-o' 286864ce7165Smrg # argument, so we may need to know it at that point already. 286964ce7165Smrg # Even if this section looks crufty: it has the advantage of 287064ce7165Smrg # actually working. 287164ce7165Smrg break;; 287264ce7165Smrg * ) 287364ce7165Smrg break;; 287464ce7165Smrg esac 287564ce7165Smrgdone 287664ce7165Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 287764ce7165Smrg 287864ce7165Smrgelse 287964ce7165Smrg ac_file='' 288064ce7165Smrgfi 288164ce7165Smrg 2882fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2883fb23d3a8Smrg$as_echo "$ac_file" >&6; } 288464ce7165Smrgif test -z "$ac_file"; then 2885fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 288664ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 288764ce7165Smrg 2888fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2889fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2890fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 289164ce7165SmrgSee \`config.log' for more details." >&5 2892fb23d3a8Smrg$as_echo "$as_me: error: C compiler cannot create executables 289364ce7165SmrgSee \`config.log' for more details." >&2;} 2894fb23d3a8Smrg { (exit 77); exit 77; }; }; } 289564ce7165Smrgfi 289664ce7165Smrg 289764ce7165Smrgac_exeext=$ac_cv_exeext 289864ce7165Smrg 289964ce7165Smrg# Check that the compiler produces executables we can run. If not, either 290064ce7165Smrg# the compiler is broken, or we cross compile. 2901fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2902fb23d3a8Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 290364ce7165Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 290464ce7165Smrg# If not cross compiling, check that we can run a simple program. 290564ce7165Smrgif test "$cross_compiling" != yes; then 290664ce7165Smrg if { ac_try='./$ac_file' 290764ce7165Smrg { (case "(($ac_try" in 290864ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 290964ce7165Smrg *) ac_try_echo=$ac_try;; 291064ce7165Smrgesac 2911fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2912fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 291364ce7165Smrg (eval "$ac_try") 2>&5 291464ce7165Smrg ac_status=$? 2915fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 291664ce7165Smrg (exit $ac_status); }; }; then 291764ce7165Smrg cross_compiling=no 291864ce7165Smrg else 291964ce7165Smrg if test "$cross_compiling" = maybe; then 292064ce7165Smrg cross_compiling=yes 292164ce7165Smrg else 2922fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2923fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2924fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 292564ce7165SmrgIf you meant to cross compile, use \`--host'. 292664ce7165SmrgSee \`config.log' for more details." >&5 2927fb23d3a8Smrg$as_echo "$as_me: error: cannot run C compiled programs. 292864ce7165SmrgIf you meant to cross compile, use \`--host'. 292964ce7165SmrgSee \`config.log' for more details." >&2;} 2930fb23d3a8Smrg { (exit 1); exit 1; }; }; } 293164ce7165Smrg fi 293264ce7165Smrg fi 293364ce7165Smrgfi 2934fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2935fb23d3a8Smrg$as_echo "yes" >&6; } 293664ce7165Smrg 2937fb23d3a8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 293864ce7165Smrgac_clean_files=$ac_clean_files_save 293964ce7165Smrg# Check that the compiler produces executables we can run. If not, either 294064ce7165Smrg# the compiler is broken, or we cross compile. 2941fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2942fb23d3a8Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 2943fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2944fb23d3a8Smrg$as_echo "$cross_compiling" >&6; } 294564ce7165Smrg 2946fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2947fb23d3a8Smrg$as_echo_n "checking for suffix of executables... " >&6; } 294864ce7165Smrgif { (ac_try="$ac_link" 294964ce7165Smrgcase "(($ac_try" in 295064ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 295164ce7165Smrg *) ac_try_echo=$ac_try;; 295264ce7165Smrgesac 2953fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2954fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 295564ce7165Smrg (eval "$ac_link") 2>&5 295664ce7165Smrg ac_status=$? 2957fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 295864ce7165Smrg (exit $ac_status); }; then 295964ce7165Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 296064ce7165Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 296164ce7165Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 296264ce7165Smrg# `rm'. 296364ce7165Smrgfor ac_file in conftest.exe conftest conftest.*; do 296464ce7165Smrg test -f "$ac_file" || continue 296564ce7165Smrg case $ac_file in 2966fb23d3a8Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 296764ce7165Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 296864ce7165Smrg break;; 296964ce7165Smrg * ) break;; 297064ce7165Smrg esac 297164ce7165Smrgdone 297264ce7165Smrgelse 2973fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2974fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2975fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 297664ce7165SmrgSee \`config.log' for more details." >&5 2977fb23d3a8Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 297864ce7165SmrgSee \`config.log' for more details." >&2;} 2979fb23d3a8Smrg { (exit 1); exit 1; }; }; } 298064ce7165Smrgfi 298164ce7165Smrg 298264ce7165Smrgrm -f conftest$ac_cv_exeext 2983fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2984fb23d3a8Smrg$as_echo "$ac_cv_exeext" >&6; } 298564ce7165Smrg 298664ce7165Smrgrm -f conftest.$ac_ext 298764ce7165SmrgEXEEXT=$ac_cv_exeext 298864ce7165Smrgac_exeext=$EXEEXT 2989fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2990fb23d3a8Smrg$as_echo_n "checking for suffix of object files... " >&6; } 299164ce7165Smrgif test "${ac_cv_objext+set}" = set; then 2992fb23d3a8Smrg $as_echo_n "(cached) " >&6 299364ce7165Smrgelse 299464ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 299564ce7165Smrg/* confdefs.h. */ 299664ce7165Smrg_ACEOF 299764ce7165Smrgcat confdefs.h >>conftest.$ac_ext 299864ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 299964ce7165Smrg/* end confdefs.h. */ 300064ce7165Smrg 300164ce7165Smrgint 300264ce7165Smrgmain () 300364ce7165Smrg{ 300464ce7165Smrg 300564ce7165Smrg ; 300664ce7165Smrg return 0; 300764ce7165Smrg} 300864ce7165Smrg_ACEOF 300964ce7165Smrgrm -f conftest.o conftest.obj 301064ce7165Smrgif { (ac_try="$ac_compile" 301164ce7165Smrgcase "(($ac_try" in 301264ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 301364ce7165Smrg *) ac_try_echo=$ac_try;; 301464ce7165Smrgesac 3015fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3016fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 301764ce7165Smrg (eval "$ac_compile") 2>&5 301864ce7165Smrg ac_status=$? 3019fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 302064ce7165Smrg (exit $ac_status); }; then 302164ce7165Smrg for ac_file in conftest.o conftest.obj conftest.*; do 302264ce7165Smrg test -f "$ac_file" || continue; 302364ce7165Smrg case $ac_file in 3024fb23d3a8Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 302564ce7165Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 302664ce7165Smrg break;; 302764ce7165Smrg esac 302864ce7165Smrgdone 302964ce7165Smrgelse 3030fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 303164ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 303264ce7165Smrg 3033fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3034fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3035fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 303664ce7165SmrgSee \`config.log' for more details." >&5 3037fb23d3a8Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 303864ce7165SmrgSee \`config.log' for more details." >&2;} 3039fb23d3a8Smrg { (exit 1); exit 1; }; }; } 304064ce7165Smrgfi 304164ce7165Smrg 304264ce7165Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 304364ce7165Smrgfi 3044fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3045fb23d3a8Smrg$as_echo "$ac_cv_objext" >&6; } 304664ce7165SmrgOBJEXT=$ac_cv_objext 304764ce7165Smrgac_objext=$OBJEXT 3048fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3049fb23d3a8Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 305064ce7165Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 3051fb23d3a8Smrg $as_echo_n "(cached) " >&6 305264ce7165Smrgelse 305364ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 305464ce7165Smrg/* confdefs.h. */ 305564ce7165Smrg_ACEOF 305664ce7165Smrgcat confdefs.h >>conftest.$ac_ext 305764ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 305864ce7165Smrg/* end confdefs.h. */ 305964ce7165Smrg 306064ce7165Smrgint 306164ce7165Smrgmain () 306264ce7165Smrg{ 306364ce7165Smrg#ifndef __GNUC__ 306464ce7165Smrg choke me 306564ce7165Smrg#endif 306664ce7165Smrg 306764ce7165Smrg ; 306864ce7165Smrg return 0; 306964ce7165Smrg} 307064ce7165Smrg_ACEOF 307164ce7165Smrgrm -f conftest.$ac_objext 307264ce7165Smrgif { (ac_try="$ac_compile" 307364ce7165Smrgcase "(($ac_try" in 307464ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 307564ce7165Smrg *) ac_try_echo=$ac_try;; 307664ce7165Smrgesac 3077fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3078fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 307964ce7165Smrg (eval "$ac_compile") 2>conftest.er1 308064ce7165Smrg ac_status=$? 308164ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 308264ce7165Smrg rm -f conftest.er1 308364ce7165Smrg cat conftest.err >&5 3084fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 308564ce7165Smrg (exit $ac_status); } && { 308664ce7165Smrg test -z "$ac_c_werror_flag" || 308764ce7165Smrg test ! -s conftest.err 308864ce7165Smrg } && test -s conftest.$ac_objext; then 308964ce7165Smrg ac_compiler_gnu=yes 309064ce7165Smrgelse 3091fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 309264ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 309364ce7165Smrg 309464ce7165Smrg ac_compiler_gnu=no 309564ce7165Smrgfi 309664ce7165Smrg 309764ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 309864ce7165Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 309964ce7165Smrg 310064ce7165Smrgfi 3101fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3102fb23d3a8Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3103fb23d3a8Smrgif test $ac_compiler_gnu = yes; then 3104fb23d3a8Smrg GCC=yes 3105fb23d3a8Smrgelse 3106fb23d3a8Smrg GCC= 3107fb23d3a8Smrgfi 310864ce7165Smrgac_test_CFLAGS=${CFLAGS+set} 310964ce7165Smrgac_save_CFLAGS=$CFLAGS 3110fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3111fb23d3a8Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 311264ce7165Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 3113fb23d3a8Smrg $as_echo_n "(cached) " >&6 311464ce7165Smrgelse 311564ce7165Smrg ac_save_c_werror_flag=$ac_c_werror_flag 311664ce7165Smrg ac_c_werror_flag=yes 311764ce7165Smrg ac_cv_prog_cc_g=no 311864ce7165Smrg CFLAGS="-g" 311964ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 312064ce7165Smrg/* confdefs.h. */ 312164ce7165Smrg_ACEOF 312264ce7165Smrgcat confdefs.h >>conftest.$ac_ext 312364ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 312464ce7165Smrg/* end confdefs.h. */ 312564ce7165Smrg 312664ce7165Smrgint 312764ce7165Smrgmain () 312864ce7165Smrg{ 312964ce7165Smrg 313064ce7165Smrg ; 313164ce7165Smrg return 0; 313264ce7165Smrg} 313364ce7165Smrg_ACEOF 313464ce7165Smrgrm -f conftest.$ac_objext 313564ce7165Smrgif { (ac_try="$ac_compile" 313664ce7165Smrgcase "(($ac_try" in 313764ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 313864ce7165Smrg *) ac_try_echo=$ac_try;; 313964ce7165Smrgesac 3140fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3141fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 314264ce7165Smrg (eval "$ac_compile") 2>conftest.er1 314364ce7165Smrg ac_status=$? 314464ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 314564ce7165Smrg rm -f conftest.er1 314664ce7165Smrg cat conftest.err >&5 3147fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 314864ce7165Smrg (exit $ac_status); } && { 314964ce7165Smrg test -z "$ac_c_werror_flag" || 315064ce7165Smrg test ! -s conftest.err 315164ce7165Smrg } && test -s conftest.$ac_objext; then 315264ce7165Smrg ac_cv_prog_cc_g=yes 315364ce7165Smrgelse 3154fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 315564ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 315664ce7165Smrg 315764ce7165Smrg CFLAGS="" 315864ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 315964ce7165Smrg/* confdefs.h. */ 316064ce7165Smrg_ACEOF 316164ce7165Smrgcat confdefs.h >>conftest.$ac_ext 316264ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 316364ce7165Smrg/* end confdefs.h. */ 316464ce7165Smrg 316564ce7165Smrgint 316664ce7165Smrgmain () 316764ce7165Smrg{ 316864ce7165Smrg 316964ce7165Smrg ; 317064ce7165Smrg return 0; 317164ce7165Smrg} 317264ce7165Smrg_ACEOF 317364ce7165Smrgrm -f conftest.$ac_objext 317464ce7165Smrgif { (ac_try="$ac_compile" 317564ce7165Smrgcase "(($ac_try" in 317664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 317764ce7165Smrg *) ac_try_echo=$ac_try;; 317864ce7165Smrgesac 3179fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3180fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 318164ce7165Smrg (eval "$ac_compile") 2>conftest.er1 318264ce7165Smrg ac_status=$? 318364ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 318464ce7165Smrg rm -f conftest.er1 318564ce7165Smrg cat conftest.err >&5 3186fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 318764ce7165Smrg (exit $ac_status); } && { 318864ce7165Smrg test -z "$ac_c_werror_flag" || 318964ce7165Smrg test ! -s conftest.err 319064ce7165Smrg } && test -s conftest.$ac_objext; then 319164ce7165Smrg : 319264ce7165Smrgelse 3193fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 319464ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 319564ce7165Smrg 319664ce7165Smrg ac_c_werror_flag=$ac_save_c_werror_flag 319764ce7165Smrg CFLAGS="-g" 319864ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 319964ce7165Smrg/* confdefs.h. */ 320064ce7165Smrg_ACEOF 320164ce7165Smrgcat confdefs.h >>conftest.$ac_ext 320264ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 320364ce7165Smrg/* end confdefs.h. */ 320464ce7165Smrg 320564ce7165Smrgint 320664ce7165Smrgmain () 320764ce7165Smrg{ 320864ce7165Smrg 320964ce7165Smrg ; 321064ce7165Smrg return 0; 321164ce7165Smrg} 321264ce7165Smrg_ACEOF 321364ce7165Smrgrm -f conftest.$ac_objext 321464ce7165Smrgif { (ac_try="$ac_compile" 321564ce7165Smrgcase "(($ac_try" in 321664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 321764ce7165Smrg *) ac_try_echo=$ac_try;; 321864ce7165Smrgesac 3219fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3220fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 322164ce7165Smrg (eval "$ac_compile") 2>conftest.er1 322264ce7165Smrg ac_status=$? 322364ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 322464ce7165Smrg rm -f conftest.er1 322564ce7165Smrg cat conftest.err >&5 3226fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 322764ce7165Smrg (exit $ac_status); } && { 322864ce7165Smrg test -z "$ac_c_werror_flag" || 322964ce7165Smrg test ! -s conftest.err 323064ce7165Smrg } && test -s conftest.$ac_objext; then 323164ce7165Smrg ac_cv_prog_cc_g=yes 323264ce7165Smrgelse 3233fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 323464ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 323564ce7165Smrg 323664ce7165Smrg 323764ce7165Smrgfi 323864ce7165Smrg 323964ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 324064ce7165Smrgfi 324164ce7165Smrg 324264ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 324364ce7165Smrgfi 324464ce7165Smrg 324564ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 324664ce7165Smrg ac_c_werror_flag=$ac_save_c_werror_flag 324764ce7165Smrgfi 3248fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3249fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 325064ce7165Smrgif test "$ac_test_CFLAGS" = set; then 325164ce7165Smrg CFLAGS=$ac_save_CFLAGS 325264ce7165Smrgelif test $ac_cv_prog_cc_g = yes; then 325364ce7165Smrg if test "$GCC" = yes; then 325464ce7165Smrg CFLAGS="-g -O2" 325564ce7165Smrg else 325664ce7165Smrg CFLAGS="-g" 325764ce7165Smrg fi 325864ce7165Smrgelse 325964ce7165Smrg if test "$GCC" = yes; then 326064ce7165Smrg CFLAGS="-O2" 326164ce7165Smrg else 326264ce7165Smrg CFLAGS= 326364ce7165Smrg fi 326464ce7165Smrgfi 3265fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3266fb23d3a8Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 326764ce7165Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then 3268fb23d3a8Smrg $as_echo_n "(cached) " >&6 326964ce7165Smrgelse 327064ce7165Smrg ac_cv_prog_cc_c89=no 327164ce7165Smrgac_save_CC=$CC 327264ce7165Smrgcat >conftest.$ac_ext <<_ACEOF 327364ce7165Smrg/* confdefs.h. */ 327464ce7165Smrg_ACEOF 327564ce7165Smrgcat confdefs.h >>conftest.$ac_ext 327664ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 327764ce7165Smrg/* end confdefs.h. */ 327864ce7165Smrg#include <stdarg.h> 327964ce7165Smrg#include <stdio.h> 328064ce7165Smrg#include <sys/types.h> 328164ce7165Smrg#include <sys/stat.h> 328264ce7165Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 328364ce7165Smrgstruct buf { int x; }; 328464ce7165SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 328564ce7165Smrgstatic char *e (p, i) 328664ce7165Smrg char **p; 328764ce7165Smrg int i; 328864ce7165Smrg{ 328964ce7165Smrg return p[i]; 329064ce7165Smrg} 329164ce7165Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 329264ce7165Smrg{ 329364ce7165Smrg char *s; 329464ce7165Smrg va_list v; 329564ce7165Smrg va_start (v,p); 329664ce7165Smrg s = g (p, va_arg (v,int)); 329764ce7165Smrg va_end (v); 329864ce7165Smrg return s; 329964ce7165Smrg} 330064ce7165Smrg 330164ce7165Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 330264ce7165Smrg function prototypes and stuff, but not '\xHH' hex character constants. 330364ce7165Smrg These don't provoke an error unfortunately, instead are silently treated 330464ce7165Smrg as 'x'. The following induces an error, until -std is added to get 330564ce7165Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 330664ce7165Smrg array size at least. It's necessary to write '\x00'==0 to get something 330764ce7165Smrg that's true only with -std. */ 330864ce7165Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 330964ce7165Smrg 331064ce7165Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 331164ce7165Smrg inside strings and character constants. */ 331264ce7165Smrg#define FOO(x) 'x' 331364ce7165Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 331464ce7165Smrg 331564ce7165Smrgint test (int i, double x); 331664ce7165Smrgstruct s1 {int (*f) (int a);}; 331764ce7165Smrgstruct s2 {int (*f) (double a);}; 331864ce7165Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 331964ce7165Smrgint argc; 332064ce7165Smrgchar **argv; 332164ce7165Smrgint 332264ce7165Smrgmain () 332364ce7165Smrg{ 332464ce7165Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 332564ce7165Smrg ; 332664ce7165Smrg return 0; 332764ce7165Smrg} 332864ce7165Smrg_ACEOF 332964ce7165Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 333064ce7165Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 333164ce7165Smrgdo 333264ce7165Smrg CC="$ac_save_CC $ac_arg" 333364ce7165Smrg rm -f conftest.$ac_objext 333464ce7165Smrgif { (ac_try="$ac_compile" 333564ce7165Smrgcase "(($ac_try" in 333664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 333764ce7165Smrg *) ac_try_echo=$ac_try;; 333864ce7165Smrgesac 3339fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3340fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 334164ce7165Smrg (eval "$ac_compile") 2>conftest.er1 334264ce7165Smrg ac_status=$? 334364ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 334464ce7165Smrg rm -f conftest.er1 334564ce7165Smrg cat conftest.err >&5 3346fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 334764ce7165Smrg (exit $ac_status); } && { 334864ce7165Smrg test -z "$ac_c_werror_flag" || 334964ce7165Smrg test ! -s conftest.err 335064ce7165Smrg } && test -s conftest.$ac_objext; then 335164ce7165Smrg ac_cv_prog_cc_c89=$ac_arg 335264ce7165Smrgelse 3353fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 335464ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 335564ce7165Smrg 335664ce7165Smrg 335764ce7165Smrgfi 335864ce7165Smrg 335964ce7165Smrgrm -f core conftest.err conftest.$ac_objext 336064ce7165Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 336164ce7165Smrgdone 336264ce7165Smrgrm -f conftest.$ac_ext 336364ce7165SmrgCC=$ac_save_CC 336464ce7165Smrg 336564ce7165Smrgfi 336664ce7165Smrg# AC_CACHE_VAL 336764ce7165Smrgcase "x$ac_cv_prog_cc_c89" in 336864ce7165Smrg x) 3369fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 3370fb23d3a8Smrg$as_echo "none needed" >&6; } ;; 337164ce7165Smrg xno) 3372fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3373fb23d3a8Smrg$as_echo "unsupported" >&6; } ;; 337464ce7165Smrg *) 337564ce7165Smrg CC="$CC $ac_cv_prog_cc_c89" 3376fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3377fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 337864ce7165Smrgesac 337964ce7165Smrg 338064ce7165Smrg 338164ce7165Smrgac_ext=c 338264ce7165Smrgac_cpp='$CPP $CPPFLAGS' 338364ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 338464ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 338564ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 338664ce7165SmrgDEPDIR="${am__leading_dot}deps" 338764ce7165Smrg 338864ce7165Smrgac_config_commands="$ac_config_commands depfiles" 338964ce7165Smrg 339064ce7165Smrg 339164ce7165Smrgam_make=${MAKE-make} 339264ce7165Smrgcat > confinc << 'END' 339364ce7165Smrgam__doit: 3394fb23d3a8Smrg @echo this is the am__doit target 339564ce7165Smrg.PHONY: am__doit 339664ce7165SmrgEND 339764ce7165Smrg# If we don't find an include directive, just comment out the code. 3398fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3399fb23d3a8Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 340064ce7165Smrgam__include="#" 340164ce7165Smrgam__quote= 340264ce7165Smrg_am_result=none 340364ce7165Smrg# First try GNU make style include. 340464ce7165Smrgecho "include confinc" > confmf 3405fb23d3a8Smrg# Ignore all kinds of additional output from `make'. 3406fb23d3a8Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 3407fb23d3a8Smrg*the\ am__doit\ target*) 3408fb23d3a8Smrg am__include=include 3409fb23d3a8Smrg am__quote= 3410fb23d3a8Smrg _am_result=GNU 3411fb23d3a8Smrg ;; 3412fb23d3a8Smrgesac 341364ce7165Smrg# Now try BSD make style include. 341464ce7165Smrgif test "$am__include" = "#"; then 341564ce7165Smrg echo '.include "confinc"' > confmf 3416fb23d3a8Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 3417fb23d3a8Smrg *the\ am__doit\ target*) 3418fb23d3a8Smrg am__include=.include 3419fb23d3a8Smrg am__quote="\"" 3420fb23d3a8Smrg _am_result=BSD 3421fb23d3a8Smrg ;; 3422fb23d3a8Smrg esac 342364ce7165Smrgfi 342464ce7165Smrg 342564ce7165Smrg 3426fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3427fb23d3a8Smrg$as_echo "$_am_result" >&6; } 342864ce7165Smrgrm -f confinc confmf 342964ce7165Smrg 343064ce7165Smrg# Check whether --enable-dependency-tracking was given. 343164ce7165Smrgif test "${enable_dependency_tracking+set}" = set; then 343264ce7165Smrg enableval=$enable_dependency_tracking; 343364ce7165Smrgfi 343464ce7165Smrg 343564ce7165Smrgif test "x$enable_dependency_tracking" != xno; then 343664ce7165Smrg am_depcomp="$ac_aux_dir/depcomp" 343764ce7165Smrg AMDEPBACKSLASH='\' 343864ce7165Smrgfi 343964ce7165Smrg if test "x$enable_dependency_tracking" != xno; then 344064ce7165Smrg AMDEP_TRUE= 344164ce7165Smrg AMDEP_FALSE='#' 344264ce7165Smrgelse 344364ce7165Smrg AMDEP_TRUE='#' 344464ce7165Smrg AMDEP_FALSE= 344564ce7165Smrgfi 344664ce7165Smrg 344764ce7165Smrg 344864ce7165Smrg 344964ce7165Smrgdepcc="$CC" am_compiler_list= 345064ce7165Smrg 3451fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3452fb23d3a8Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 345364ce7165Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3454fb23d3a8Smrg $as_echo_n "(cached) " >&6 345564ce7165Smrgelse 345664ce7165Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 345764ce7165Smrg # We make a subdir and do the tests there. Otherwise we can end up 345864ce7165Smrg # making bogus files that we don't know about and never remove. For 345964ce7165Smrg # instance it was reported that on HP-UX the gcc test will end up 346064ce7165Smrg # making a dummy file named `D' -- because `-MD' means `put the output 346164ce7165Smrg # in D'. 346264ce7165Smrg mkdir conftest.dir 346364ce7165Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 346464ce7165Smrg # using a relative directory. 346564ce7165Smrg cp "$am_depcomp" conftest.dir 346664ce7165Smrg cd conftest.dir 346764ce7165Smrg # We will build objects and dependencies in a subdirectory because 346864ce7165Smrg # it helps to detect inapplicable dependency modes. For instance 346964ce7165Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 347064ce7165Smrg # side effect of compilation, but ICC will put the dependencies in 347164ce7165Smrg # the current directory while Tru64 will put them in the object 347264ce7165Smrg # directory. 347364ce7165Smrg mkdir sub 347464ce7165Smrg 347564ce7165Smrg am_cv_CC_dependencies_compiler_type=none 347664ce7165Smrg if test "$am_compiler_list" = ""; then 347764ce7165Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 347864ce7165Smrg fi 3479fb23d3a8Smrg am__universal=false 3480fb23d3a8Smrg case " $depcc " in #( 3481fb23d3a8Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3482fb23d3a8Smrg esac 3483fb23d3a8Smrg 348464ce7165Smrg for depmode in $am_compiler_list; do 348564ce7165Smrg # Setup a source with many dependencies, because some compilers 348664ce7165Smrg # like to wrap large dependency lists on column 80 (with \), and 348764ce7165Smrg # we should not choose a depcomp mode which is confused by this. 348864ce7165Smrg # 348964ce7165Smrg # We need to recreate these files for each test, as the compiler may 349064ce7165Smrg # overwrite some of them when testing with obscure command lines. 349164ce7165Smrg # This happens at least with the AIX C compiler. 349264ce7165Smrg : > sub/conftest.c 349364ce7165Smrg for i in 1 2 3 4 5 6; do 349464ce7165Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 349564ce7165Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 349664ce7165Smrg # Solaris 8's {/usr,}/bin/sh. 349764ce7165Smrg touch sub/conftst$i.h 349864ce7165Smrg done 349964ce7165Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 350064ce7165Smrg 3501fb23d3a8Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3502fb23d3a8Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3503fb23d3a8Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3504fb23d3a8Smrg # versions had trouble with output in subdirs 3505fb23d3a8Smrg am__obj=sub/conftest.${OBJEXT-o} 3506fb23d3a8Smrg am__minus_obj="-o $am__obj" 350764ce7165Smrg case $depmode in 3508fb23d3a8Smrg gcc) 3509fb23d3a8Smrg # This depmode causes a compiler race in universal mode. 3510fb23d3a8Smrg test "$am__universal" = false || continue 3511fb23d3a8Smrg ;; 351264ce7165Smrg nosideeffect) 351364ce7165Smrg # after this tag, mechanisms are not by side-effect, so they'll 351464ce7165Smrg # only be used when explicitly requested 351564ce7165Smrg if test "x$enable_dependency_tracking" = xyes; then 351664ce7165Smrg continue 351764ce7165Smrg else 351864ce7165Smrg break 351964ce7165Smrg fi 352064ce7165Smrg ;; 3521fb23d3a8Smrg msvisualcpp | msvcmsys) 3522fb23d3a8Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3523fb23d3a8Smrg # not run yet. These depmodes are late enough in the game, and 3524fb23d3a8Smrg # so weak that their functioning should not be impacted. 3525fb23d3a8Smrg am__obj=conftest.${OBJEXT-o} 3526fb23d3a8Smrg am__minus_obj= 3527fb23d3a8Smrg ;; 352864ce7165Smrg none) break ;; 352964ce7165Smrg esac 353064ce7165Smrg if depmode=$depmode \ 3531fb23d3a8Smrg source=sub/conftest.c object=$am__obj \ 353264ce7165Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3533fb23d3a8Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 353464ce7165Smrg >/dev/null 2>conftest.err && 353564ce7165Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 353664ce7165Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3537fb23d3a8Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 353864ce7165Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 353964ce7165Smrg # icc doesn't choke on unknown options, it will just issue warnings 354064ce7165Smrg # or remarks (even with -Werror). So we grep stderr for any message 354164ce7165Smrg # that says an option was ignored or not supported. 354264ce7165Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 354364ce7165Smrg # icc: Command line warning: ignoring option '-M'; no argument required 354464ce7165Smrg # The diagnosis changed in icc 8.0: 354564ce7165Smrg # icc: Command line remark: option '-MP' not supported 354664ce7165Smrg if (grep 'ignoring option' conftest.err || 354764ce7165Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 354864ce7165Smrg am_cv_CC_dependencies_compiler_type=$depmode 354964ce7165Smrg break 355064ce7165Smrg fi 355164ce7165Smrg fi 355264ce7165Smrg done 355364ce7165Smrg 355464ce7165Smrg cd .. 355564ce7165Smrg rm -rf conftest.dir 355664ce7165Smrgelse 355764ce7165Smrg am_cv_CC_dependencies_compiler_type=none 355864ce7165Smrgfi 355964ce7165Smrg 356064ce7165Smrgfi 3561fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3562fb23d3a8Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 356364ce7165SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 356464ce7165Smrg 356564ce7165Smrg if 356664ce7165Smrg test "x$enable_dependency_tracking" != xno \ 356764ce7165Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 356864ce7165Smrg am__fastdepCC_TRUE= 356964ce7165Smrg am__fastdepCC_FALSE='#' 357064ce7165Smrgelse 357164ce7165Smrg am__fastdepCC_TRUE='#' 357264ce7165Smrg am__fastdepCC_FALSE= 357364ce7165Smrgfi 357464ce7165Smrg 357564ce7165Smrg 357664ce7165Smrg# Find a good install program. We prefer a C program (faster), 357764ce7165Smrg# so one script is as good as another. But avoid the broken or 357864ce7165Smrg# incompatible versions: 357964ce7165Smrg# SysV /etc/install, /usr/sbin/install 358064ce7165Smrg# SunOS /usr/etc/install 358164ce7165Smrg# IRIX /sbin/install 358264ce7165Smrg# AIX /bin/install 358364ce7165Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 358464ce7165Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 358564ce7165Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 358664ce7165Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 358764ce7165Smrg# OS/2's system install, which has a completely different semantic 358864ce7165Smrg# ./install, which can be erroneously created by make from ./install.sh. 3589fb23d3a8Smrg# Reject install programs that cannot install multiple files. 3590fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3591fb23d3a8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 359264ce7165Smrgif test -z "$INSTALL"; then 359364ce7165Smrgif test "${ac_cv_path_install+set}" = set; then 3594fb23d3a8Smrg $as_echo_n "(cached) " >&6 359564ce7165Smrgelse 359664ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 359764ce7165Smrgfor as_dir in $PATH 359864ce7165Smrgdo 359964ce7165Smrg IFS=$as_save_IFS 360064ce7165Smrg test -z "$as_dir" && as_dir=. 360164ce7165Smrg # Account for people who put trailing slashes in PATH elements. 360264ce7165Smrgcase $as_dir/ in 360364ce7165Smrg ./ | .// | /cC/* | \ 360464ce7165Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 360564ce7165Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 360664ce7165Smrg /usr/ucb/* ) ;; 360764ce7165Smrg *) 360864ce7165Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 360964ce7165Smrg # Don't use installbsd from OSF since it installs stuff as root 361064ce7165Smrg # by default. 361164ce7165Smrg for ac_prog in ginstall scoinst install; do 361264ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 361364ce7165Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 361464ce7165Smrg if test $ac_prog = install && 361564ce7165Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 361664ce7165Smrg # AIX install. It has an incompatible calling convention. 361764ce7165Smrg : 361864ce7165Smrg elif test $ac_prog = install && 361964ce7165Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 362064ce7165Smrg # program-specific install script used by HP pwplus--don't use. 362164ce7165Smrg : 362264ce7165Smrg else 3623fb23d3a8Smrg rm -rf conftest.one conftest.two conftest.dir 3624fb23d3a8Smrg echo one > conftest.one 3625fb23d3a8Smrg echo two > conftest.two 3626fb23d3a8Smrg mkdir conftest.dir 3627fb23d3a8Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3628fb23d3a8Smrg test -s conftest.one && test -s conftest.two && 3629fb23d3a8Smrg test -s conftest.dir/conftest.one && 3630fb23d3a8Smrg test -s conftest.dir/conftest.two 3631fb23d3a8Smrg then 3632fb23d3a8Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3633fb23d3a8Smrg break 3 3634fb23d3a8Smrg fi 363564ce7165Smrg fi 363664ce7165Smrg fi 363764ce7165Smrg done 363864ce7165Smrg done 363964ce7165Smrg ;; 364064ce7165Smrgesac 3641fb23d3a8Smrg 364264ce7165Smrgdone 364364ce7165SmrgIFS=$as_save_IFS 364464ce7165Smrg 3645fb23d3a8Smrgrm -rf conftest.one conftest.two conftest.dir 364664ce7165Smrg 364764ce7165Smrgfi 364864ce7165Smrg if test "${ac_cv_path_install+set}" = set; then 364964ce7165Smrg INSTALL=$ac_cv_path_install 365064ce7165Smrg else 365164ce7165Smrg # As a last resort, use the slow shell script. Don't cache a 365264ce7165Smrg # value for INSTALL within a source directory, because that will 365364ce7165Smrg # break other packages using the cache if that directory is 365464ce7165Smrg # removed, or if the value is a relative name. 365564ce7165Smrg INSTALL=$ac_install_sh 365664ce7165Smrg fi 365764ce7165Smrgfi 3658fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3659fb23d3a8Smrg$as_echo "$INSTALL" >&6; } 366064ce7165Smrg 366164ce7165Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 366264ce7165Smrg# It thinks the first close brace ends the variable substitution. 366364ce7165Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 366464ce7165Smrg 366564ce7165Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 366664ce7165Smrg 366764ce7165Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 366864ce7165Smrg 366964ce7165Smrg 367064ce7165Smrg 3671fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3672fb23d3a8Smrg$as_echo_n "checking return type of signal handlers... " >&6; } 367364ce7165Smrgif test "${ac_cv_type_signal+set}" = set; then 3674fb23d3a8Smrg $as_echo_n "(cached) " >&6 367564ce7165Smrgelse 367664ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 367764ce7165Smrg/* confdefs.h. */ 367864ce7165Smrg_ACEOF 367964ce7165Smrgcat confdefs.h >>conftest.$ac_ext 368064ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 368164ce7165Smrg/* end confdefs.h. */ 368264ce7165Smrg#include <sys/types.h> 368364ce7165Smrg#include <signal.h> 368464ce7165Smrg 368564ce7165Smrgint 368664ce7165Smrgmain () 368764ce7165Smrg{ 368864ce7165Smrgreturn *(signal (0, 0)) (0) == 1; 368964ce7165Smrg ; 369064ce7165Smrg return 0; 369164ce7165Smrg} 369264ce7165Smrg_ACEOF 369364ce7165Smrgrm -f conftest.$ac_objext 369464ce7165Smrgif { (ac_try="$ac_compile" 369564ce7165Smrgcase "(($ac_try" in 369664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 369764ce7165Smrg *) ac_try_echo=$ac_try;; 369864ce7165Smrgesac 3699fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3700fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 370164ce7165Smrg (eval "$ac_compile") 2>conftest.er1 370264ce7165Smrg ac_status=$? 370364ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 370464ce7165Smrg rm -f conftest.er1 370564ce7165Smrg cat conftest.err >&5 3706fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 370764ce7165Smrg (exit $ac_status); } && { 370864ce7165Smrg test -z "$ac_c_werror_flag" || 370964ce7165Smrg test ! -s conftest.err 371064ce7165Smrg } && test -s conftest.$ac_objext; then 371164ce7165Smrg ac_cv_type_signal=int 371264ce7165Smrgelse 3713fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 371464ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 371564ce7165Smrg 371664ce7165Smrg ac_cv_type_signal=void 371764ce7165Smrgfi 371864ce7165Smrg 371964ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 372064ce7165Smrgfi 3721fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 3722fb23d3a8Smrg$as_echo "$ac_cv_type_signal" >&6; } 372364ce7165Smrg 372464ce7165Smrgcat >>confdefs.h <<_ACEOF 372564ce7165Smrg#define RETSIGTYPE $ac_cv_type_signal 372664ce7165Smrg_ACEOF 372764ce7165Smrg 372864ce7165Smrg 372964ce7165Smrg 3730fb23d3a8Smrgac_ext=c 3731fb23d3a8Smrgac_cpp='$CPP $CPPFLAGS' 3732fb23d3a8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3733fb23d3a8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3734fb23d3a8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3735fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3736fb23d3a8Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3737fb23d3a8Smrg# On Suns, sometimes $CPP names a directory. 3738fb23d3a8Smrgif test -n "$CPP" && test -d "$CPP"; then 3739fb23d3a8Smrg CPP= 3740fb23d3a8Smrgfi 3741fb23d3a8Smrgif test -z "$CPP"; then 3742fb23d3a8Smrg if test "${ac_cv_prog_CPP+set}" = set; then 3743fb23d3a8Smrg $as_echo_n "(cached) " >&6 3744fb23d3a8Smrgelse 3745fb23d3a8Smrg # Double quotes because CPP needs to be expanded 3746fb23d3a8Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3747fb23d3a8Smrg do 3748fb23d3a8Smrg ac_preproc_ok=false 3749fb23d3a8Smrgfor ac_c_preproc_warn_flag in '' yes 3750fb23d3a8Smrgdo 3751fb23d3a8Smrg # Use a header file that comes with gcc, so configuring glibc 3752fb23d3a8Smrg # with a fresh cross-compiler works. 3753fb23d3a8Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3754fb23d3a8Smrg # <limits.h> exists even on freestanding compilers. 3755fb23d3a8Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3756fb23d3a8Smrg # not just through cpp. "Syntax error" is here to catch this case. 3757fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 3758fb23d3a8Smrg/* confdefs.h. */ 3759fb23d3a8Smrg_ACEOF 3760fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 3761fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 3762fb23d3a8Smrg/* end confdefs.h. */ 3763fb23d3a8Smrg#ifdef __STDC__ 3764fb23d3a8Smrg# include <limits.h> 3765fb23d3a8Smrg#else 3766fb23d3a8Smrg# include <assert.h> 3767fb23d3a8Smrg#endif 3768fb23d3a8Smrg Syntax error 3769fb23d3a8Smrg_ACEOF 3770fb23d3a8Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3771fb23d3a8Smrgcase "(($ac_try" in 3772fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773fb23d3a8Smrg *) ac_try_echo=$ac_try;; 3774fb23d3a8Smrgesac 3775fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3776fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 3777fb23d3a8Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3778fb23d3a8Smrg ac_status=$? 3779fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 3780fb23d3a8Smrg rm -f conftest.er1 3781fb23d3a8Smrg cat conftest.err >&5 3782fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783fb23d3a8Smrg (exit $ac_status); } >/dev/null && { 3784fb23d3a8Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3785fb23d3a8Smrg test ! -s conftest.err 3786fb23d3a8Smrg }; then 3787fb23d3a8Smrg : 3788fb23d3a8Smrgelse 3789fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 3790fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 379164ce7165Smrg 3792fb23d3a8Smrg # Broken: fails on valid input. 3793fb23d3a8Smrgcontinue 3794fb23d3a8Smrgfi 379564ce7165Smrg 3796fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3797fb23d3a8Smrg 3798fb23d3a8Smrg # OK, works on sane cases. Now check whether nonexistent headers 3799fb23d3a8Smrg # can be detected and how. 3800fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 3801fb23d3a8Smrg/* confdefs.h. */ 3802fb23d3a8Smrg_ACEOF 3803fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 3804fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 3805fb23d3a8Smrg/* end confdefs.h. */ 3806fb23d3a8Smrg#include <ac_nonexistent.h> 3807fb23d3a8Smrg_ACEOF 3808fb23d3a8Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3809fb23d3a8Smrgcase "(($ac_try" in 3810fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811fb23d3a8Smrg *) ac_try_echo=$ac_try;; 3812fb23d3a8Smrgesac 3813fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3814fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 3815fb23d3a8Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3816fb23d3a8Smrg ac_status=$? 3817fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 3818fb23d3a8Smrg rm -f conftest.er1 3819fb23d3a8Smrg cat conftest.err >&5 3820fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821fb23d3a8Smrg (exit $ac_status); } >/dev/null && { 3822fb23d3a8Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3823fb23d3a8Smrg test ! -s conftest.err 3824fb23d3a8Smrg }; then 3825fb23d3a8Smrg # Broken: success on invalid input. 3826fb23d3a8Smrgcontinue 3827fb23d3a8Smrgelse 3828fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 3829fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 3830fb23d3a8Smrg 3831fb23d3a8Smrg # Passes both tests. 3832fb23d3a8Smrgac_preproc_ok=: 3833fb23d3a8Smrgbreak 3834fb23d3a8Smrgfi 3835fb23d3a8Smrg 3836fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3837fb23d3a8Smrg 3838fb23d3a8Smrgdone 3839fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3840fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3841fb23d3a8Smrgif $ac_preproc_ok; then 3842fb23d3a8Smrg break 3843fb23d3a8Smrgfi 3844fb23d3a8Smrg 3845fb23d3a8Smrg done 3846fb23d3a8Smrg ac_cv_prog_CPP=$CPP 3847fb23d3a8Smrg 3848fb23d3a8Smrgfi 3849fb23d3a8Smrg CPP=$ac_cv_prog_CPP 3850fb23d3a8Smrgelse 3851fb23d3a8Smrg ac_cv_prog_CPP=$CPP 3852fb23d3a8Smrgfi 3853fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3854fb23d3a8Smrg$as_echo "$CPP" >&6; } 3855fb23d3a8Smrgac_preproc_ok=false 3856fb23d3a8Smrgfor ac_c_preproc_warn_flag in '' yes 3857fb23d3a8Smrgdo 3858fb23d3a8Smrg # Use a header file that comes with gcc, so configuring glibc 3859fb23d3a8Smrg # with a fresh cross-compiler works. 3860fb23d3a8Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3861fb23d3a8Smrg # <limits.h> exists even on freestanding compilers. 3862fb23d3a8Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3863fb23d3a8Smrg # not just through cpp. "Syntax error" is here to catch this case. 3864fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 3865fb23d3a8Smrg/* confdefs.h. */ 3866fb23d3a8Smrg_ACEOF 3867fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 3868fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 3869fb23d3a8Smrg/* end confdefs.h. */ 3870fb23d3a8Smrg#ifdef __STDC__ 3871fb23d3a8Smrg# include <limits.h> 3872fb23d3a8Smrg#else 3873fb23d3a8Smrg# include <assert.h> 3874fb23d3a8Smrg#endif 3875fb23d3a8Smrg Syntax error 3876fb23d3a8Smrg_ACEOF 3877fb23d3a8Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3878fb23d3a8Smrgcase "(($ac_try" in 3879fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880fb23d3a8Smrg *) ac_try_echo=$ac_try;; 3881fb23d3a8Smrgesac 3882fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3883fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 3884fb23d3a8Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3885fb23d3a8Smrg ac_status=$? 3886fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 3887fb23d3a8Smrg rm -f conftest.er1 3888fb23d3a8Smrg cat conftest.err >&5 3889fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3890fb23d3a8Smrg (exit $ac_status); } >/dev/null && { 3891fb23d3a8Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3892fb23d3a8Smrg test ! -s conftest.err 3893fb23d3a8Smrg }; then 3894fb23d3a8Smrg : 3895fb23d3a8Smrgelse 3896fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 3897fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 3898fb23d3a8Smrg 3899fb23d3a8Smrg # Broken: fails on valid input. 3900fb23d3a8Smrgcontinue 3901fb23d3a8Smrgfi 3902fb23d3a8Smrg 3903fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3904fb23d3a8Smrg 3905fb23d3a8Smrg # OK, works on sane cases. Now check whether nonexistent headers 3906fb23d3a8Smrg # can be detected and how. 3907fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 3908fb23d3a8Smrg/* confdefs.h. */ 3909fb23d3a8Smrg_ACEOF 3910fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 3911fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 3912fb23d3a8Smrg/* end confdefs.h. */ 3913fb23d3a8Smrg#include <ac_nonexistent.h> 3914fb23d3a8Smrg_ACEOF 3915fb23d3a8Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3916fb23d3a8Smrgcase "(($ac_try" in 3917fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3918fb23d3a8Smrg *) ac_try_echo=$ac_try;; 3919fb23d3a8Smrgesac 3920fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3921fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 3922fb23d3a8Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3923fb23d3a8Smrg ac_status=$? 3924fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 3925fb23d3a8Smrg rm -f conftest.er1 3926fb23d3a8Smrg cat conftest.err >&5 3927fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928fb23d3a8Smrg (exit $ac_status); } >/dev/null && { 3929fb23d3a8Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3930fb23d3a8Smrg test ! -s conftest.err 3931fb23d3a8Smrg }; then 3932fb23d3a8Smrg # Broken: success on invalid input. 3933fb23d3a8Smrgcontinue 3934fb23d3a8Smrgelse 3935fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 3936fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 3937fb23d3a8Smrg 3938fb23d3a8Smrg # Passes both tests. 3939fb23d3a8Smrgac_preproc_ok=: 3940fb23d3a8Smrgbreak 3941fb23d3a8Smrgfi 3942fb23d3a8Smrg 3943fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3944fb23d3a8Smrg 3945fb23d3a8Smrgdone 3946fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3947fb23d3a8Smrgrm -f conftest.err conftest.$ac_ext 3948fb23d3a8Smrgif $ac_preproc_ok; then 3949fb23d3a8Smrg : 3950fb23d3a8Smrgelse 3951fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3952fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3953fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3954fb23d3a8SmrgSee \`config.log' for more details." >&5 3955fb23d3a8Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3956fb23d3a8SmrgSee \`config.log' for more details." >&2;} 3957fb23d3a8Smrg { (exit 1); exit 1; }; }; } 3958fb23d3a8Smrgfi 3959fb23d3a8Smrg 3960fb23d3a8Smrgac_ext=c 3961fb23d3a8Smrgac_cpp='$CPP $CPPFLAGS' 3962fb23d3a8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3963fb23d3a8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3964fb23d3a8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3965fb23d3a8Smrg 3966fb23d3a8Smrg 3967fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3968fb23d3a8Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3969fb23d3a8Smrgif test "${ac_cv_path_GREP+set}" = set; then 3970fb23d3a8Smrg $as_echo_n "(cached) " >&6 3971fb23d3a8Smrgelse 3972fb23d3a8Smrg if test -z "$GREP"; then 3973fb23d3a8Smrg ac_path_GREP_found=false 3974fb23d3a8Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3975fb23d3a8Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3977fb23d3a8Smrgdo 3978fb23d3a8Smrg IFS=$as_save_IFS 3979fb23d3a8Smrg test -z "$as_dir" && as_dir=. 3980fb23d3a8Smrg for ac_prog in grep ggrep; do 3981fb23d3a8Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3982fb23d3a8Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3983fb23d3a8Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3984fb23d3a8Smrg# Check for GNU ac_path_GREP and select it if it is found. 3985fb23d3a8Smrg # Check for GNU $ac_path_GREP 3986fb23d3a8Smrgcase `"$ac_path_GREP" --version 2>&1` in 3987fb23d3a8Smrg*GNU*) 3988fb23d3a8Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3989fb23d3a8Smrg*) 3990fb23d3a8Smrg ac_count=0 3991fb23d3a8Smrg $as_echo_n 0123456789 >"conftest.in" 3992fb23d3a8Smrg while : 3993fb23d3a8Smrg do 3994fb23d3a8Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3995fb23d3a8Smrg mv "conftest.tmp" "conftest.in" 3996fb23d3a8Smrg cp "conftest.in" "conftest.nl" 3997fb23d3a8Smrg $as_echo 'GREP' >> "conftest.nl" 3998fb23d3a8Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3999fb23d3a8Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4000fb23d3a8Smrg ac_count=`expr $ac_count + 1` 4001fb23d3a8Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4002fb23d3a8Smrg # Best one so far, save it but keep looking for a better one 4003fb23d3a8Smrg ac_cv_path_GREP="$ac_path_GREP" 4004fb23d3a8Smrg ac_path_GREP_max=$ac_count 4005fb23d3a8Smrg fi 4006fb23d3a8Smrg # 10*(2^10) chars as input seems more than enough 4007fb23d3a8Smrg test $ac_count -gt 10 && break 4008fb23d3a8Smrg done 4009fb23d3a8Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4010fb23d3a8Smrgesac 4011fb23d3a8Smrg 4012fb23d3a8Smrg $ac_path_GREP_found && break 3 4013fb23d3a8Smrg done 4014fb23d3a8Smrg done 4015fb23d3a8Smrgdone 4016fb23d3a8SmrgIFS=$as_save_IFS 4017fb23d3a8Smrg if test -z "$ac_cv_path_GREP"; then 4018fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4019fb23d3a8Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4020fb23d3a8Smrg { (exit 1); exit 1; }; } 4021fb23d3a8Smrg fi 4022fb23d3a8Smrgelse 4023fb23d3a8Smrg ac_cv_path_GREP=$GREP 4024fb23d3a8Smrgfi 4025fb23d3a8Smrg 4026fb23d3a8Smrgfi 4027fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4028fb23d3a8Smrg$as_echo "$ac_cv_path_GREP" >&6; } 4029fb23d3a8Smrg GREP="$ac_cv_path_GREP" 4030fb23d3a8Smrg 4031fb23d3a8Smrg 4032fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4033fb23d3a8Smrg$as_echo_n "checking for egrep... " >&6; } 4034fb23d3a8Smrgif test "${ac_cv_path_EGREP+set}" = set; then 4035fb23d3a8Smrg $as_echo_n "(cached) " >&6 4036fb23d3a8Smrgelse 4037fb23d3a8Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4038fb23d3a8Smrg then ac_cv_path_EGREP="$GREP -E" 4039fb23d3a8Smrg else 4040fb23d3a8Smrg if test -z "$EGREP"; then 4041fb23d3a8Smrg ac_path_EGREP_found=false 4042fb23d3a8Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4043fb23d3a8Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4045fb23d3a8Smrgdo 4046fb23d3a8Smrg IFS=$as_save_IFS 4047fb23d3a8Smrg test -z "$as_dir" && as_dir=. 4048fb23d3a8Smrg for ac_prog in egrep; do 4049fb23d3a8Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4050fb23d3a8Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4051fb23d3a8Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4052fb23d3a8Smrg# Check for GNU ac_path_EGREP and select it if it is found. 4053fb23d3a8Smrg # Check for GNU $ac_path_EGREP 4054fb23d3a8Smrgcase `"$ac_path_EGREP" --version 2>&1` in 4055fb23d3a8Smrg*GNU*) 4056fb23d3a8Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4057fb23d3a8Smrg*) 4058fb23d3a8Smrg ac_count=0 4059fb23d3a8Smrg $as_echo_n 0123456789 >"conftest.in" 4060fb23d3a8Smrg while : 4061fb23d3a8Smrg do 4062fb23d3a8Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4063fb23d3a8Smrg mv "conftest.tmp" "conftest.in" 4064fb23d3a8Smrg cp "conftest.in" "conftest.nl" 4065fb23d3a8Smrg $as_echo 'EGREP' >> "conftest.nl" 4066fb23d3a8Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4067fb23d3a8Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4068fb23d3a8Smrg ac_count=`expr $ac_count + 1` 4069fb23d3a8Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4070fb23d3a8Smrg # Best one so far, save it but keep looking for a better one 4071fb23d3a8Smrg ac_cv_path_EGREP="$ac_path_EGREP" 4072fb23d3a8Smrg ac_path_EGREP_max=$ac_count 4073fb23d3a8Smrg fi 4074fb23d3a8Smrg # 10*(2^10) chars as input seems more than enough 4075fb23d3a8Smrg test $ac_count -gt 10 && break 4076fb23d3a8Smrg done 4077fb23d3a8Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4078fb23d3a8Smrgesac 4079fb23d3a8Smrg 4080fb23d3a8Smrg $ac_path_EGREP_found && break 3 4081fb23d3a8Smrg done 4082fb23d3a8Smrg done 4083fb23d3a8Smrgdone 4084fb23d3a8SmrgIFS=$as_save_IFS 4085fb23d3a8Smrg if test -z "$ac_cv_path_EGREP"; then 4086fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4087fb23d3a8Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4088fb23d3a8Smrg { (exit 1); exit 1; }; } 4089fb23d3a8Smrg fi 4090fb23d3a8Smrgelse 4091fb23d3a8Smrg ac_cv_path_EGREP=$EGREP 4092fb23d3a8Smrgfi 4093fb23d3a8Smrg 4094fb23d3a8Smrg fi 4095fb23d3a8Smrgfi 4096fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4097fb23d3a8Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 4098fb23d3a8Smrg EGREP="$ac_cv_path_EGREP" 4099fb23d3a8Smrg 4100fb23d3a8Smrg 4101fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4102fb23d3a8Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4103fb23d3a8Smrgif test "${ac_cv_header_stdc+set}" = set; then 4104fb23d3a8Smrg $as_echo_n "(cached) " >&6 4105fb23d3a8Smrgelse 4106fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4107fb23d3a8Smrg/* confdefs.h. */ 4108fb23d3a8Smrg_ACEOF 4109fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4110fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4111fb23d3a8Smrg/* end confdefs.h. */ 4112fb23d3a8Smrg#include <stdlib.h> 4113fb23d3a8Smrg#include <stdarg.h> 4114fb23d3a8Smrg#include <string.h> 4115fb23d3a8Smrg#include <float.h> 4116fb23d3a8Smrg 4117fb23d3a8Smrgint 4118fb23d3a8Smrgmain () 4119fb23d3a8Smrg{ 4120fb23d3a8Smrg 4121fb23d3a8Smrg ; 4122fb23d3a8Smrg return 0; 4123fb23d3a8Smrg} 4124fb23d3a8Smrg_ACEOF 4125fb23d3a8Smrgrm -f conftest.$ac_objext 4126fb23d3a8Smrgif { (ac_try="$ac_compile" 4127fb23d3a8Smrgcase "(($ac_try" in 4128fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4129fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4130fb23d3a8Smrgesac 4131fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4132fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4133fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4134fb23d3a8Smrg ac_status=$? 4135fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4136fb23d3a8Smrg rm -f conftest.er1 4137fb23d3a8Smrg cat conftest.err >&5 4138fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139fb23d3a8Smrg (exit $ac_status); } && { 4140fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4141fb23d3a8Smrg test ! -s conftest.err 4142fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4143fb23d3a8Smrg ac_cv_header_stdc=yes 4144fb23d3a8Smrgelse 4145fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4146fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4147fb23d3a8Smrg 4148fb23d3a8Smrg ac_cv_header_stdc=no 4149fb23d3a8Smrgfi 4150fb23d3a8Smrg 4151fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152fb23d3a8Smrg 4153fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then 4154fb23d3a8Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4155fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4156fb23d3a8Smrg/* confdefs.h. */ 4157fb23d3a8Smrg_ACEOF 4158fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4159fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4160fb23d3a8Smrg/* end confdefs.h. */ 4161fb23d3a8Smrg#include <string.h> 4162fb23d3a8Smrg 4163fb23d3a8Smrg_ACEOF 4164fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4165fb23d3a8Smrg $EGREP "memchr" >/dev/null 2>&1; then 4166fb23d3a8Smrg : 4167fb23d3a8Smrgelse 4168fb23d3a8Smrg ac_cv_header_stdc=no 4169fb23d3a8Smrgfi 4170fb23d3a8Smrgrm -f conftest* 4171fb23d3a8Smrg 4172fb23d3a8Smrgfi 4173fb23d3a8Smrg 4174fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then 4175fb23d3a8Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4176fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4177fb23d3a8Smrg/* confdefs.h. */ 4178fb23d3a8Smrg_ACEOF 4179fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4180fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4181fb23d3a8Smrg/* end confdefs.h. */ 4182fb23d3a8Smrg#include <stdlib.h> 4183fb23d3a8Smrg 4184fb23d3a8Smrg_ACEOF 4185fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4186fb23d3a8Smrg $EGREP "free" >/dev/null 2>&1; then 4187fb23d3a8Smrg : 4188fb23d3a8Smrgelse 4189fb23d3a8Smrg ac_cv_header_stdc=no 4190fb23d3a8Smrgfi 4191fb23d3a8Smrgrm -f conftest* 4192fb23d3a8Smrg 4193fb23d3a8Smrgfi 4194fb23d3a8Smrg 4195fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then 4196fb23d3a8Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4197fb23d3a8Smrg if test "$cross_compiling" = yes; then 4198fb23d3a8Smrg : 4199fb23d3a8Smrgelse 4200fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4201fb23d3a8Smrg/* confdefs.h. */ 4202fb23d3a8Smrg_ACEOF 4203fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4204fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4205fb23d3a8Smrg/* end confdefs.h. */ 4206fb23d3a8Smrg#include <ctype.h> 4207fb23d3a8Smrg#include <stdlib.h> 4208fb23d3a8Smrg#if ((' ' & 0x0FF) == 0x020) 4209fb23d3a8Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4210fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4211fb23d3a8Smrg#else 4212fb23d3a8Smrg# define ISLOWER(c) \ 4213fb23d3a8Smrg (('a' <= (c) && (c) <= 'i') \ 4214fb23d3a8Smrg || ('j' <= (c) && (c) <= 'r') \ 4215fb23d3a8Smrg || ('s' <= (c) && (c) <= 'z')) 4216fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4217fb23d3a8Smrg#endif 4218fb23d3a8Smrg 4219fb23d3a8Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4220fb23d3a8Smrgint 4221fb23d3a8Smrgmain () 4222fb23d3a8Smrg{ 4223fb23d3a8Smrg int i; 4224fb23d3a8Smrg for (i = 0; i < 256; i++) 4225fb23d3a8Smrg if (XOR (islower (i), ISLOWER (i)) 4226fb23d3a8Smrg || toupper (i) != TOUPPER (i)) 4227fb23d3a8Smrg return 2; 4228fb23d3a8Smrg return 0; 4229fb23d3a8Smrg} 4230fb23d3a8Smrg_ACEOF 4231fb23d3a8Smrgrm -f conftest$ac_exeext 4232fb23d3a8Smrgif { (ac_try="$ac_link" 4233fb23d3a8Smrgcase "(($ac_try" in 4234fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4235fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4236fb23d3a8Smrgesac 4237fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4238fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4239fb23d3a8Smrg (eval "$ac_link") 2>&5 4240fb23d3a8Smrg ac_status=$? 4241fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4242fb23d3a8Smrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4243fb23d3a8Smrg { (case "(($ac_try" in 4244fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4245fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4246fb23d3a8Smrgesac 4247fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4248fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4249fb23d3a8Smrg (eval "$ac_try") 2>&5 4250fb23d3a8Smrg ac_status=$? 4251fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252fb23d3a8Smrg (exit $ac_status); }; }; then 4253fb23d3a8Smrg : 4254fb23d3a8Smrgelse 4255fb23d3a8Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 4256fb23d3a8Smrg$as_echo "$as_me: failed program was:" >&5 4257fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4258fb23d3a8Smrg 4259fb23d3a8Smrg( exit $ac_status ) 4260fb23d3a8Smrgac_cv_header_stdc=no 4261fb23d3a8Smrgfi 4262fb23d3a8Smrgrm -rf conftest.dSYM 4263fb23d3a8Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4264fb23d3a8Smrgfi 4265fb23d3a8Smrg 4266fb23d3a8Smrg 4267fb23d3a8Smrgfi 4268fb23d3a8Smrgfi 4269fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4270fb23d3a8Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4271fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then 4272fb23d3a8Smrg 4273fb23d3a8Smrgcat >>confdefs.h <<\_ACEOF 4274fb23d3a8Smrg#define STDC_HEADERS 1 4275fb23d3a8Smrg_ACEOF 4276fb23d3a8Smrg 4277fb23d3a8Smrgfi 4278fb23d3a8Smrg 4279fb23d3a8Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4280fb23d3a8Smrg 4281fb23d3a8Smrg 4282fb23d3a8Smrg 4283fb23d3a8Smrg 4284fb23d3a8Smrg 4285fb23d3a8Smrg 4286fb23d3a8Smrg 4287fb23d3a8Smrg 4288fb23d3a8Smrg 4289fb23d3a8Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4290fb23d3a8Smrg inttypes.h stdint.h unistd.h 4291fb23d3a8Smrgdo 4292fb23d3a8Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4293fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4294fb23d3a8Smrg$as_echo_n "checking for $ac_header... " >&6; } 4295fb23d3a8Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4296fb23d3a8Smrg $as_echo_n "(cached) " >&6 4297fb23d3a8Smrgelse 4298fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4299fb23d3a8Smrg/* confdefs.h. */ 4300fb23d3a8Smrg_ACEOF 4301fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4302fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4303fb23d3a8Smrg/* end confdefs.h. */ 4304fb23d3a8Smrg$ac_includes_default 4305fb23d3a8Smrg 4306fb23d3a8Smrg#include <$ac_header> 4307fb23d3a8Smrg_ACEOF 4308fb23d3a8Smrgrm -f conftest.$ac_objext 4309fb23d3a8Smrgif { (ac_try="$ac_compile" 4310fb23d3a8Smrgcase "(($ac_try" in 4311fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4313fb23d3a8Smrgesac 4314fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4315fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4316fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4317fb23d3a8Smrg ac_status=$? 4318fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4319fb23d3a8Smrg rm -f conftest.er1 4320fb23d3a8Smrg cat conftest.err >&5 4321fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322fb23d3a8Smrg (exit $ac_status); } && { 4323fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4324fb23d3a8Smrg test ! -s conftest.err 4325fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4326fb23d3a8Smrg eval "$as_ac_Header=yes" 4327fb23d3a8Smrgelse 4328fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4329fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4330fb23d3a8Smrg 4331fb23d3a8Smrg eval "$as_ac_Header=no" 4332fb23d3a8Smrgfi 4333fb23d3a8Smrg 4334fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335fb23d3a8Smrgfi 4336fb23d3a8Smrgac_res=`eval 'as_val=${'$as_ac_Header'} 4337fb23d3a8Smrg $as_echo "$as_val"'` 4338fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4339fb23d3a8Smrg$as_echo "$ac_res" >&6; } 4340fb23d3a8Smrgas_val=`eval 'as_val=${'$as_ac_Header'} 4341fb23d3a8Smrg $as_echo "$as_val"'` 4342fb23d3a8Smrg if test "x$as_val" = x""yes; then 4343fb23d3a8Smrg cat >>confdefs.h <<_ACEOF 4344fb23d3a8Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4345fb23d3a8Smrg_ACEOF 4346fb23d3a8Smrg 4347fb23d3a8Smrgfi 4348fb23d3a8Smrg 4349fb23d3a8Smrgdone 4350fb23d3a8Smrg 4351fb23d3a8Smrg 4352fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4353fb23d3a8Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4354fb23d3a8Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then 4355fb23d3a8Smrg $as_echo_n "(cached) " >&6 4356fb23d3a8Smrgelse 4357fb23d3a8Smrg ac_cv_prog_cc_c99=no 4358fb23d3a8Smrgac_save_CC=$CC 4359fb23d3a8Smrgcat >conftest.$ac_ext <<_ACEOF 4360fb23d3a8Smrg/* confdefs.h. */ 4361fb23d3a8Smrg_ACEOF 4362fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4363fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4364fb23d3a8Smrg/* end confdefs.h. */ 4365fb23d3a8Smrg#include <stdarg.h> 4366fb23d3a8Smrg#include <stdbool.h> 4367fb23d3a8Smrg#include <stdlib.h> 4368fb23d3a8Smrg#include <wchar.h> 4369fb23d3a8Smrg#include <stdio.h> 4370fb23d3a8Smrg 4371fb23d3a8Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4372fb23d3a8Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4373fb23d3a8Smrg#define showlist(...) puts (#__VA_ARGS__) 4374fb23d3a8Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4375fb23d3a8Smrgstatic void 4376fb23d3a8Smrgtest_varargs_macros (void) 4377fb23d3a8Smrg{ 4378fb23d3a8Smrg int x = 1234; 4379fb23d3a8Smrg int y = 5678; 4380fb23d3a8Smrg debug ("Flag"); 4381fb23d3a8Smrg debug ("X = %d\n", x); 4382fb23d3a8Smrg showlist (The first, second, and third items.); 4383fb23d3a8Smrg report (x>y, "x is %d but y is %d", x, y); 4384fb23d3a8Smrg} 4385fb23d3a8Smrg 4386fb23d3a8Smrg// Check long long types. 4387fb23d3a8Smrg#define BIG64 18446744073709551615ull 4388fb23d3a8Smrg#define BIG32 4294967295ul 4389fb23d3a8Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4390fb23d3a8Smrg#if !BIG_OK 4391fb23d3a8Smrg your preprocessor is broken; 4392fb23d3a8Smrg#endif 4393fb23d3a8Smrg#if BIG_OK 4394fb23d3a8Smrg#else 4395fb23d3a8Smrg your preprocessor is broken; 4396fb23d3a8Smrg#endif 4397fb23d3a8Smrgstatic long long int bignum = -9223372036854775807LL; 4398fb23d3a8Smrgstatic unsigned long long int ubignum = BIG64; 4399fb23d3a8Smrg 4400fb23d3a8Smrgstruct incomplete_array 4401fb23d3a8Smrg{ 4402fb23d3a8Smrg int datasize; 4403fb23d3a8Smrg double data[]; 4404fb23d3a8Smrg}; 4405fb23d3a8Smrg 4406fb23d3a8Smrgstruct named_init { 4407fb23d3a8Smrg int number; 4408fb23d3a8Smrg const wchar_t *name; 4409fb23d3a8Smrg double average; 4410fb23d3a8Smrg}; 4411fb23d3a8Smrg 4412fb23d3a8Smrgtypedef const char *ccp; 4413fb23d3a8Smrg 4414fb23d3a8Smrgstatic inline int 4415fb23d3a8Smrgtest_restrict (ccp restrict text) 4416fb23d3a8Smrg{ 4417fb23d3a8Smrg // See if C++-style comments work. 4418fb23d3a8Smrg // Iterate through items via the restricted pointer. 4419fb23d3a8Smrg // Also check for declarations in for loops. 4420fb23d3a8Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4421fb23d3a8Smrg continue; 4422fb23d3a8Smrg return 0; 4423fb23d3a8Smrg} 4424fb23d3a8Smrg 4425fb23d3a8Smrg// Check varargs and va_copy. 4426fb23d3a8Smrgstatic void 4427fb23d3a8Smrgtest_varargs (const char *format, ...) 4428fb23d3a8Smrg{ 4429fb23d3a8Smrg va_list args; 4430fb23d3a8Smrg va_start (args, format); 4431fb23d3a8Smrg va_list args_copy; 4432fb23d3a8Smrg va_copy (args_copy, args); 4433fb23d3a8Smrg 4434fb23d3a8Smrg const char *str; 4435fb23d3a8Smrg int number; 4436fb23d3a8Smrg float fnumber; 4437fb23d3a8Smrg 4438fb23d3a8Smrg while (*format) 4439fb23d3a8Smrg { 4440fb23d3a8Smrg switch (*format++) 4441fb23d3a8Smrg { 4442fb23d3a8Smrg case 's': // string 4443fb23d3a8Smrg str = va_arg (args_copy, const char *); 4444fb23d3a8Smrg break; 4445fb23d3a8Smrg case 'd': // int 4446fb23d3a8Smrg number = va_arg (args_copy, int); 4447fb23d3a8Smrg break; 4448fb23d3a8Smrg case 'f': // float 4449fb23d3a8Smrg fnumber = va_arg (args_copy, double); 4450fb23d3a8Smrg break; 4451fb23d3a8Smrg default: 4452fb23d3a8Smrg break; 4453fb23d3a8Smrg } 4454fb23d3a8Smrg } 4455fb23d3a8Smrg va_end (args_copy); 4456fb23d3a8Smrg va_end (args); 4457fb23d3a8Smrg} 4458fb23d3a8Smrg 4459fb23d3a8Smrgint 4460fb23d3a8Smrgmain () 4461fb23d3a8Smrg{ 4462fb23d3a8Smrg 4463fb23d3a8Smrg // Check bool. 4464fb23d3a8Smrg _Bool success = false; 4465fb23d3a8Smrg 4466fb23d3a8Smrg // Check restrict. 4467fb23d3a8Smrg if (test_restrict ("String literal") == 0) 4468fb23d3a8Smrg success = true; 4469fb23d3a8Smrg char *restrict newvar = "Another string"; 4470fb23d3a8Smrg 4471fb23d3a8Smrg // Check varargs. 4472fb23d3a8Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4473fb23d3a8Smrg test_varargs_macros (); 4474fb23d3a8Smrg 4475fb23d3a8Smrg // Check flexible array members. 4476fb23d3a8Smrg struct incomplete_array *ia = 4477fb23d3a8Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4478fb23d3a8Smrg ia->datasize = 10; 4479fb23d3a8Smrg for (int i = 0; i < ia->datasize; ++i) 4480fb23d3a8Smrg ia->data[i] = i * 1.234; 4481fb23d3a8Smrg 4482fb23d3a8Smrg // Check named initializers. 4483fb23d3a8Smrg struct named_init ni = { 4484fb23d3a8Smrg .number = 34, 4485fb23d3a8Smrg .name = L"Test wide string", 4486fb23d3a8Smrg .average = 543.34343, 4487fb23d3a8Smrg }; 4488fb23d3a8Smrg 4489fb23d3a8Smrg ni.number = 58; 4490fb23d3a8Smrg 4491fb23d3a8Smrg int dynamic_array[ni.number]; 4492fb23d3a8Smrg dynamic_array[ni.number - 1] = 543; 4493fb23d3a8Smrg 4494fb23d3a8Smrg // work around unused variable warnings 4495fb23d3a8Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4496fb23d3a8Smrg || dynamic_array[ni.number - 1] != 543); 4497fb23d3a8Smrg 4498fb23d3a8Smrg ; 4499fb23d3a8Smrg return 0; 4500fb23d3a8Smrg} 4501fb23d3a8Smrg_ACEOF 4502fb23d3a8Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4503fb23d3a8Smrgdo 4504fb23d3a8Smrg CC="$ac_save_CC $ac_arg" 4505fb23d3a8Smrg rm -f conftest.$ac_objext 4506fb23d3a8Smrgif { (ac_try="$ac_compile" 4507fb23d3a8Smrgcase "(($ac_try" in 4508fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4510fb23d3a8Smrgesac 4511fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4512fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4513fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4514fb23d3a8Smrg ac_status=$? 4515fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4516fb23d3a8Smrg rm -f conftest.er1 4517fb23d3a8Smrg cat conftest.err >&5 4518fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519fb23d3a8Smrg (exit $ac_status); } && { 4520fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4521fb23d3a8Smrg test ! -s conftest.err 4522fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4523fb23d3a8Smrg ac_cv_prog_cc_c99=$ac_arg 4524fb23d3a8Smrgelse 4525fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4526fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4527fb23d3a8Smrg 4528fb23d3a8Smrg 4529fb23d3a8Smrgfi 4530fb23d3a8Smrg 4531fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext 4532fb23d3a8Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4533fb23d3a8Smrgdone 4534fb23d3a8Smrgrm -f conftest.$ac_ext 4535fb23d3a8SmrgCC=$ac_save_CC 4536fb23d3a8Smrg 4537fb23d3a8Smrgfi 4538fb23d3a8Smrg# AC_CACHE_VAL 4539fb23d3a8Smrgcase "x$ac_cv_prog_cc_c99" in 4540fb23d3a8Smrg x) 4541fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 4542fb23d3a8Smrg$as_echo "none needed" >&6; } ;; 4543fb23d3a8Smrg xno) 4544fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4545fb23d3a8Smrg$as_echo "unsupported" >&6; } ;; 4546fb23d3a8Smrg *) 4547fb23d3a8Smrg CC="$CC $ac_cv_prog_cc_c99" 4548fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4549fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4550fb23d3a8Smrgesac 4551fb23d3a8Smrg 4552fb23d3a8Smrg 4553fb23d3a8Smrg 4554fb23d3a8Smrg# Make sure we can run config.sub. 4555fb23d3a8Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4556fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4557fb23d3a8Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4558fb23d3a8Smrg { (exit 1); exit 1; }; } 4559fb23d3a8Smrg 4560fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4561fb23d3a8Smrg$as_echo_n "checking build system type... " >&6; } 4562fb23d3a8Smrgif test "${ac_cv_build+set}" = set; then 4563fb23d3a8Smrg $as_echo_n "(cached) " >&6 4564fb23d3a8Smrgelse 4565fb23d3a8Smrg ac_build_alias=$build_alias 4566fb23d3a8Smrgtest "x$ac_build_alias" = x && 4567fb23d3a8Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4568fb23d3a8Smrgtest "x$ac_build_alias" = x && 4569fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4570fb23d3a8Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4571fb23d3a8Smrg { (exit 1); exit 1; }; } 4572fb23d3a8Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4573fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4574fb23d3a8Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4575fb23d3a8Smrg { (exit 1); exit 1; }; } 4576fb23d3a8Smrg 4577fb23d3a8Smrgfi 4578fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4579fb23d3a8Smrg$as_echo "$ac_cv_build" >&6; } 4580fb23d3a8Smrgcase $ac_cv_build in 4581fb23d3a8Smrg*-*-*) ;; 4582fb23d3a8Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4583fb23d3a8Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4584fb23d3a8Smrg { (exit 1); exit 1; }; };; 4585fb23d3a8Smrgesac 4586fb23d3a8Smrgbuild=$ac_cv_build 4587fb23d3a8Smrgac_save_IFS=$IFS; IFS='-' 4588fb23d3a8Smrgset x $ac_cv_build 4589fb23d3a8Smrgshift 4590fb23d3a8Smrgbuild_cpu=$1 4591fb23d3a8Smrgbuild_vendor=$2 4592fb23d3a8Smrgshift; shift 4593fb23d3a8Smrg# Remember, the first character of IFS is used to create $*, 4594fb23d3a8Smrg# except with old shells: 4595fb23d3a8Smrgbuild_os=$* 4596fb23d3a8SmrgIFS=$ac_save_IFS 4597fb23d3a8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4598fb23d3a8Smrg 4599fb23d3a8Smrg 4600fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4601fb23d3a8Smrg$as_echo_n "checking host system type... " >&6; } 4602fb23d3a8Smrgif test "${ac_cv_host+set}" = set; then 4603fb23d3a8Smrg $as_echo_n "(cached) " >&6 4604fb23d3a8Smrgelse 4605fb23d3a8Smrg if test "x$host_alias" = x; then 4606fb23d3a8Smrg ac_cv_host=$ac_cv_build 4607fb23d3a8Smrgelse 4608fb23d3a8Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4609fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4610fb23d3a8Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4611fb23d3a8Smrg { (exit 1); exit 1; }; } 4612fb23d3a8Smrgfi 4613fb23d3a8Smrg 4614fb23d3a8Smrgfi 4615fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4616fb23d3a8Smrg$as_echo "$ac_cv_host" >&6; } 4617fb23d3a8Smrgcase $ac_cv_host in 4618fb23d3a8Smrg*-*-*) ;; 4619fb23d3a8Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4620fb23d3a8Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4621fb23d3a8Smrg { (exit 1); exit 1; }; };; 4622fb23d3a8Smrgesac 4623fb23d3a8Smrghost=$ac_cv_host 4624fb23d3a8Smrgac_save_IFS=$IFS; IFS='-' 4625fb23d3a8Smrgset x $ac_cv_host 4626fb23d3a8Smrgshift 4627fb23d3a8Smrghost_cpu=$1 4628fb23d3a8Smrghost_vendor=$2 4629fb23d3a8Smrgshift; shift 4630fb23d3a8Smrg# Remember, the first character of IFS is used to create $*, 4631fb23d3a8Smrg# except with old shells: 4632fb23d3a8Smrghost_os=$* 4633fb23d3a8SmrgIFS=$ac_save_IFS 4634fb23d3a8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4635fb23d3a8Smrg 4636fb23d3a8Smrg 4637fb23d3a8Smrg 4638fb23d3a8Smrg 4639fb23d3a8Smrg 4640fb23d3a8Smrgif test "x$GCC" = xyes ; then 4641fb23d3a8Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4642fb23d3a8Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4643fb23d3a8Smrg-Wbad-function-cast" 4644fb23d3a8Smrg case `$CC -dumpversion` in 4645fb23d3a8Smrg 3.4.* | 4.*) 4646fb23d3a8Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4647fb23d3a8Smrg ;; 4648fb23d3a8Smrg esac 4649fb23d3a8Smrgelse 4650fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4651fb23d3a8Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4652fb23d3a8Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4653fb23d3a8Smrg $as_echo_n "(cached) " >&6 4654fb23d3a8Smrgelse 4655fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4656fb23d3a8Smrg/* confdefs.h. */ 4657fb23d3a8Smrg_ACEOF 4658fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4659fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4660fb23d3a8Smrg/* end confdefs.h. */ 4661fb23d3a8Smrg$ac_includes_default 4662fb23d3a8Smrgint 4663fb23d3a8Smrgmain () 4664fb23d3a8Smrg{ 4665fb23d3a8Smrg#ifndef __SUNPRO_C 4666fb23d3a8Smrg (void) __SUNPRO_C; 4667fb23d3a8Smrg#endif 4668fb23d3a8Smrg 4669fb23d3a8Smrg ; 4670fb23d3a8Smrg return 0; 4671fb23d3a8Smrg} 4672fb23d3a8Smrg_ACEOF 4673fb23d3a8Smrgrm -f conftest.$ac_objext 4674fb23d3a8Smrgif { (ac_try="$ac_compile" 4675fb23d3a8Smrgcase "(($ac_try" in 4676fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4677fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4678fb23d3a8Smrgesac 4679fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4680fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4681fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4682fb23d3a8Smrg ac_status=$? 4683fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4684fb23d3a8Smrg rm -f conftest.er1 4685fb23d3a8Smrg cat conftest.err >&5 4686fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687fb23d3a8Smrg (exit $ac_status); } && { 4688fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4689fb23d3a8Smrg test ! -s conftest.err 4690fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4691fb23d3a8Smrg ac_cv_have_decl___SUNPRO_C=yes 4692fb23d3a8Smrgelse 4693fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4694fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4695fb23d3a8Smrg 4696fb23d3a8Smrg ac_cv_have_decl___SUNPRO_C=no 4697fb23d3a8Smrgfi 4698fb23d3a8Smrg 4699fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700fb23d3a8Smrgfi 4701fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4702fb23d3a8Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4703fb23d3a8Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4704fb23d3a8Smrg SUNCC="yes" 4705fb23d3a8Smrgelse 4706fb23d3a8Smrg SUNCC="no" 4707fb23d3a8Smrgfi 4708fb23d3a8Smrg 4709fb23d3a8Smrg if test "x$SUNCC" = "xyes"; then 4710fb23d3a8Smrg CWARNFLAGS="-v" 4711fb23d3a8Smrg fi 4712fb23d3a8Smrgfi 4713fb23d3a8Smrg 4714fb23d3a8Smrg# Check whether --enable-silent-rules was given. 4715fb23d3a8Smrgif test "${enable_silent_rules+set}" = set; then 4716fb23d3a8Smrg enableval=$enable_silent_rules; 4717fb23d3a8Smrgfi 4718fb23d3a8Smrg 4719fb23d3a8Smrgcase $enable_silent_rules in 4720fb23d3a8Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4721fb23d3a8Smrgno) AM_DEFAULT_VERBOSITY=1;; 4722fb23d3a8Smrg*) AM_DEFAULT_VERBOSITY=0;; 4723fb23d3a8Smrgesac 4724fb23d3a8SmrgAM_BACKSLASH='\' 4725fb23d3a8Smrg 4726fb23d3a8Smrg 4727fb23d3a8Smrg 4728fb23d3a8Smrg 4729fb23d3a8Smrg 4730fb23d3a8Smrg 4731fb23d3a8Smrg 4732fb23d3a8Smrg# Check whether --enable-strict-compilation was given. 4733fb23d3a8Smrgif test "${enable_strict_compilation+set}" = set; then 4734fb23d3a8Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4735fb23d3a8Smrgelse 4736fb23d3a8Smrg STRICT_COMPILE=no 4737fb23d3a8Smrgfi 4738fb23d3a8Smrg 4739fb23d3a8Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4740fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4741fb23d3a8Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4742fb23d3a8Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4743fb23d3a8Smrg $as_echo_n "(cached) " >&6 4744fb23d3a8Smrgelse 4745fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4746fb23d3a8Smrg/* confdefs.h. */ 4747fb23d3a8Smrg_ACEOF 4748fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4749fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4750fb23d3a8Smrg/* end confdefs.h. */ 4751fb23d3a8Smrg$ac_includes_default 4752fb23d3a8Smrgint 4753fb23d3a8Smrgmain () 4754fb23d3a8Smrg{ 4755fb23d3a8Smrg#ifndef __SUNPRO_C 4756fb23d3a8Smrg (void) __SUNPRO_C; 4757fb23d3a8Smrg#endif 4758fb23d3a8Smrg 4759fb23d3a8Smrg ; 4760fb23d3a8Smrg return 0; 4761fb23d3a8Smrg} 4762fb23d3a8Smrg_ACEOF 4763fb23d3a8Smrgrm -f conftest.$ac_objext 4764fb23d3a8Smrgif { (ac_try="$ac_compile" 4765fb23d3a8Smrgcase "(($ac_try" in 4766fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4767fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4768fb23d3a8Smrgesac 4769fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4770fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4771fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4772fb23d3a8Smrg ac_status=$? 4773fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4774fb23d3a8Smrg rm -f conftest.er1 4775fb23d3a8Smrg cat conftest.err >&5 4776fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777fb23d3a8Smrg (exit $ac_status); } && { 4778fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4779fb23d3a8Smrg test ! -s conftest.err 4780fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4781fb23d3a8Smrg ac_cv_have_decl___SUNPRO_C=yes 4782fb23d3a8Smrgelse 4783fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4784fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4785fb23d3a8Smrg 4786fb23d3a8Smrg ac_cv_have_decl___SUNPRO_C=no 4787fb23d3a8Smrgfi 4788fb23d3a8Smrg 4789fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4790fb23d3a8Smrgfi 4791fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4792fb23d3a8Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4793fb23d3a8Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4794fb23d3a8Smrg SUNCC="yes" 4795fb23d3a8Smrgelse 4796fb23d3a8Smrg SUNCC="no" 4797fb23d3a8Smrgfi 4798fb23d3a8Smrg 4799fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4800fb23d3a8Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4801fb23d3a8Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4802fb23d3a8Smrg $as_echo_n "(cached) " >&6 4803fb23d3a8Smrgelse 4804fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 4805fb23d3a8Smrg/* confdefs.h. */ 4806fb23d3a8Smrg_ACEOF 4807fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 4808fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 4809fb23d3a8Smrg/* end confdefs.h. */ 4810fb23d3a8Smrg$ac_includes_default 4811fb23d3a8Smrgint 4812fb23d3a8Smrgmain () 4813fb23d3a8Smrg{ 4814fb23d3a8Smrg#ifndef __INTEL_COMPILER 4815fb23d3a8Smrg (void) __INTEL_COMPILER; 4816fb23d3a8Smrg#endif 4817fb23d3a8Smrg 4818fb23d3a8Smrg ; 4819fb23d3a8Smrg return 0; 4820fb23d3a8Smrg} 4821fb23d3a8Smrg_ACEOF 4822fb23d3a8Smrgrm -f conftest.$ac_objext 4823fb23d3a8Smrgif { (ac_try="$ac_compile" 4824fb23d3a8Smrgcase "(($ac_try" in 4825fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826fb23d3a8Smrg *) ac_try_echo=$ac_try;; 4827fb23d3a8Smrgesac 4828fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4829fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 4830fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 4831fb23d3a8Smrg ac_status=$? 4832fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 4833fb23d3a8Smrg rm -f conftest.er1 4834fb23d3a8Smrg cat conftest.err >&5 4835fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836fb23d3a8Smrg (exit $ac_status); } && { 4837fb23d3a8Smrg test -z "$ac_c_werror_flag" || 4838fb23d3a8Smrg test ! -s conftest.err 4839fb23d3a8Smrg } && test -s conftest.$ac_objext; then 4840fb23d3a8Smrg ac_cv_have_decl___INTEL_COMPILER=yes 4841fb23d3a8Smrgelse 4842fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 4843fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 4844fb23d3a8Smrg 4845fb23d3a8Smrg ac_cv_have_decl___INTEL_COMPILER=no 4846fb23d3a8Smrgfi 4847fb23d3a8Smrg 4848fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4849fb23d3a8Smrgfi 4850fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4851fb23d3a8Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4852fb23d3a8Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4853fb23d3a8Smrg INTELCC="yes" 4854fb23d3a8Smrgelse 4855fb23d3a8Smrg INTELCC="no" 4856fb23d3a8Smrgfi 4857fb23d3a8Smrg 4858fb23d3a8Smrg if test "x$GCC" = xyes ; then 4859fb23d3a8Smrg STRICT_CFLAGS="-pedantic -Werror" 4860fb23d3a8Smrg elif test "x$SUNCC" = "xyes"; then 4861fb23d3a8Smrg STRICT_CFLAGS="-errwarn" 4862fb23d3a8Smrg elif test "x$INTELCC" = "xyes"; then 4863fb23d3a8Smrg STRICT_CFLAGS="-Werror" 4864fb23d3a8Smrg fi 4865fb23d3a8Smrgfi 4866fb23d3a8SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4867fb23d3a8Smrg 4868fb23d3a8Smrg 4869fb23d3a8Smrg 4870fb23d3a8Smrg 4871fb23d3a8Smrg# Check whether --with-release-version was given. 4872fb23d3a8Smrgif test "${with_release_version+set}" = set; then 4873fb23d3a8Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 4874fb23d3a8Smrgelse 4875fb23d3a8Smrg RELEASE_VERSION="" 4876fb23d3a8Smrgfi 4877fb23d3a8Smrg 4878fb23d3a8Smrg if test "x$RELEASE_VERSION" != "x"; then 4879fb23d3a8Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4880fb23d3a8Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4881fb23d3a8Smrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4882fb23d3a8Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4883fb23d3a8Smrg fi 4884fb23d3a8Smrg 4885fb23d3a8Smrgcat >>confdefs.h <<_ACEOF 4886fb23d3a8Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4887fb23d3a8Smrg_ACEOF 4888fb23d3a8Smrg 4889fb23d3a8Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4890fb23d3a8Smrg if test "x$PVM" = "x"; then 4891fb23d3a8Smrg PVM="0" 4892fb23d3a8Smrg fi 4893fb23d3a8Smrg 4894fb23d3a8Smrgcat >>confdefs.h <<_ACEOF 4895fb23d3a8Smrg#define PACKAGE_VERSION_MINOR $PVM 4896fb23d3a8Smrg_ACEOF 4897fb23d3a8Smrg 4898fb23d3a8Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4899fb23d3a8Smrg if test "x$PVP" = "x"; then 4900fb23d3a8Smrg PVP="0" 4901fb23d3a8Smrg fi 4902fb23d3a8Smrg 4903fb23d3a8Smrgcat >>confdefs.h <<_ACEOF 4904fb23d3a8Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4905fb23d3a8Smrg_ACEOF 4906fb23d3a8Smrg 4907fb23d3a8Smrg 4908fb23d3a8Smrg 4909fb23d3a8SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 4910fb23d3a8Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 4911fb23d3a8Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4912fb23d3a8Smrg 4913fb23d3a8Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 4914fb23d3a8Smrg 4915fb23d3a8Smrg 4916fb23d3a8Smrg 4917fb23d3a8Smrg 4918fb23d3a8Smrg 4919fb23d3a8Smrgif test x$APP_MAN_SUFFIX = x ; then 4920fb23d3a8Smrg APP_MAN_SUFFIX=1 4921fb23d3a8Smrgfi 4922fb23d3a8Smrgif test x$APP_MAN_DIR = x ; then 4923fb23d3a8Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4924fb23d3a8Smrgfi 4925fb23d3a8Smrg 4926fb23d3a8Smrgif test x$LIB_MAN_SUFFIX = x ; then 4927fb23d3a8Smrg LIB_MAN_SUFFIX=3 4928fb23d3a8Smrgfi 4929fb23d3a8Smrgif test x$LIB_MAN_DIR = x ; then 4930fb23d3a8Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4931fb23d3a8Smrgfi 4932fb23d3a8Smrg 4933fb23d3a8Smrgif test x$FILE_MAN_SUFFIX = x ; then 4934fb23d3a8Smrg case $host_os in 4935fb23d3a8Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4936fb23d3a8Smrg *) FILE_MAN_SUFFIX=5 ;; 4937fb23d3a8Smrg esac 4938fb23d3a8Smrgfi 4939fb23d3a8Smrgif test x$FILE_MAN_DIR = x ; then 4940fb23d3a8Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4941fb23d3a8Smrgfi 4942fb23d3a8Smrg 4943fb23d3a8Smrgif test x$MISC_MAN_SUFFIX = x ; then 4944fb23d3a8Smrg case $host_os in 4945fb23d3a8Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4946fb23d3a8Smrg *) MISC_MAN_SUFFIX=7 ;; 4947fb23d3a8Smrg esac 4948fb23d3a8Smrgfi 4949fb23d3a8Smrgif test x$MISC_MAN_DIR = x ; then 4950fb23d3a8Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4951fb23d3a8Smrgfi 4952fb23d3a8Smrg 4953fb23d3a8Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4954fb23d3a8Smrg case $host_os in 4955fb23d3a8Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4956fb23d3a8Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4957fb23d3a8Smrg esac 4958fb23d3a8Smrgfi 4959fb23d3a8Smrgif test x$DRIVER_MAN_DIR = x ; then 4960fb23d3a8Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4961fb23d3a8Smrgfi 4962fb23d3a8Smrg 4963fb23d3a8Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4964fb23d3a8Smrg case $host_os in 4965fb23d3a8Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4966fb23d3a8Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4967fb23d3a8Smrg esac 4968fb23d3a8Smrgfi 4969fb23d3a8Smrgif test x$ADMIN_MAN_DIR = x ; then 4970fb23d3a8Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4971fb23d3a8Smrgfi 4972fb23d3a8Smrg 4973fb23d3a8Smrg 4974fb23d3a8Smrg 4975fb23d3a8Smrg 4976fb23d3a8Smrg 4977fb23d3a8Smrg 4978fb23d3a8Smrg 4979fb23d3a8Smrg 4980fb23d3a8Smrg 4981fb23d3a8Smrg 4982fb23d3a8Smrg 4983fb23d3a8Smrg 4984fb23d3a8Smrg 4985fb23d3a8Smrg 4986fb23d3a8Smrg 4987fb23d3a8Smrg 4988fb23d3a8Smrg 4989fb23d3a8Smrg# Checks for pkg-config packages 4990fb23d3a8Smrg 4991fb23d3a8Smrg 4992fb23d3a8Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4993fb23d3a8Smrg if test -n "$ac_tool_prefix"; then 4994fb23d3a8Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4995fb23d3a8Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4996fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4997fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 4998fb23d3a8Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4999fb23d3a8Smrg $as_echo_n "(cached) " >&6 5000fb23d3a8Smrgelse 5001fb23d3a8Smrg case $PKG_CONFIG in 5002fb23d3a8Smrg [\\/]* | ?:[\\/]*) 5003fb23d3a8Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5004fb23d3a8Smrg ;; 500564ce7165Smrg *) 500664ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 500764ce7165Smrgfor as_dir in $PATH 500864ce7165Smrgdo 500964ce7165Smrg IFS=$as_save_IFS 501064ce7165Smrg test -z "$as_dir" && as_dir=. 501164ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 501264ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 501364ce7165Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5014fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 501564ce7165Smrg break 2 501664ce7165Smrg fi 501764ce7165Smrgdone 501864ce7165Smrgdone 501964ce7165SmrgIFS=$as_save_IFS 502064ce7165Smrg 502164ce7165Smrg ;; 502264ce7165Smrgesac 502364ce7165Smrgfi 502464ce7165SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 502564ce7165Smrgif test -n "$PKG_CONFIG"; then 5026fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5027fb23d3a8Smrg$as_echo "$PKG_CONFIG" >&6; } 502864ce7165Smrgelse 5029fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 5030fb23d3a8Smrg$as_echo "no" >&6; } 503164ce7165Smrgfi 503264ce7165Smrg 503364ce7165Smrg 503464ce7165Smrgfi 503564ce7165Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 503664ce7165Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 503764ce7165Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 503864ce7165Smrgset dummy pkg-config; ac_word=$2 5039fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5040fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; } 504164ce7165Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 5042fb23d3a8Smrg $as_echo_n "(cached) " >&6 504364ce7165Smrgelse 504464ce7165Smrg case $ac_pt_PKG_CONFIG in 504564ce7165Smrg [\\/]* | ?:[\\/]*) 504664ce7165Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 504764ce7165Smrg ;; 504864ce7165Smrg *) 504964ce7165Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 505064ce7165Smrgfor as_dir in $PATH 505164ce7165Smrgdo 505264ce7165Smrg IFS=$as_save_IFS 505364ce7165Smrg test -z "$as_dir" && as_dir=. 505464ce7165Smrg for ac_exec_ext in '' $ac_executable_extensions; do 505564ce7165Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 505664ce7165Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5057fb23d3a8Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 505864ce7165Smrg break 2 505964ce7165Smrg fi 506064ce7165Smrgdone 506164ce7165Smrgdone 506264ce7165SmrgIFS=$as_save_IFS 506364ce7165Smrg 506464ce7165Smrg ;; 506564ce7165Smrgesac 506664ce7165Smrgfi 506764ce7165Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 506864ce7165Smrgif test -n "$ac_pt_PKG_CONFIG"; then 5069fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 5070fb23d3a8Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 507164ce7165Smrgelse 5072fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 5073fb23d3a8Smrg$as_echo "no" >&6; } 507464ce7165Smrgfi 507564ce7165Smrg 507664ce7165Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 507764ce7165Smrg PKG_CONFIG="" 507864ce7165Smrg else 507964ce7165Smrg case $cross_compiling:$ac_tool_warned in 508064ce7165Smrgyes:) 5081fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5082fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 508364ce7165Smrgac_tool_warned=yes ;; 508464ce7165Smrgesac 508564ce7165Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 508664ce7165Smrg fi 508764ce7165Smrgelse 508864ce7165Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 508964ce7165Smrgfi 509064ce7165Smrg 509164ce7165Smrgfi 509264ce7165Smrgif test -n "$PKG_CONFIG"; then 509364ce7165Smrg _pkg_min_version=0.9.0 5094fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 5095fb23d3a8Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 509664ce7165Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5097fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5098fb23d3a8Smrg$as_echo "yes" >&6; } 509964ce7165Smrg else 5100fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 5101fb23d3a8Smrg$as_echo "no" >&6; } 510264ce7165Smrg PKG_CONFIG="" 510364ce7165Smrg fi 510464ce7165Smrg 510564ce7165Smrgfi 510664ce7165Smrg 510764ce7165Smrgpkg_failed=no 5108fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for XHOST" >&5 5109fb23d3a8Smrg$as_echo_n "checking for XHOST... " >&6; } 5110fb23d3a8Smrg 5111fb23d3a8Smrgif test -n "$XHOST_CFLAGS"; then 5112fb23d3a8Smrg pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS" 5113fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then 5114fb23d3a8Smrg if test -n "$PKG_CONFIG" && \ 5115fb23d3a8Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\"") >&5 511664ce7165Smrg ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5 511764ce7165Smrg ac_status=$? 5118fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 511964ce7165Smrg (exit $ac_status); }; then 512064ce7165Smrg pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xau" 2>/dev/null` 512164ce7165Smrgelse 512264ce7165Smrg pkg_failed=yes 512364ce7165Smrgfi 5124fb23d3a8Smrg else 5125fb23d3a8Smrg pkg_failed=untried 512664ce7165Smrgfi 5127fb23d3a8Smrgif test -n "$XHOST_LIBS"; then 5128fb23d3a8Smrg pkg_cv_XHOST_LIBS="$XHOST_LIBS" 5129fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then 5130fb23d3a8Smrg if test -n "$PKG_CONFIG" && \ 5131fb23d3a8Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\"") >&5 513264ce7165Smrg ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5 513364ce7165Smrg ac_status=$? 5134fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 513564ce7165Smrg (exit $ac_status); }; then 513664ce7165Smrg pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "x11 xmuu xau" 2>/dev/null` 513764ce7165Smrgelse 513864ce7165Smrg pkg_failed=yes 513964ce7165Smrgfi 5140fb23d3a8Smrg else 5141fb23d3a8Smrg pkg_failed=untried 514264ce7165Smrgfi 514364ce7165Smrg 5144fb23d3a8Smrg 5145fb23d3a8Smrg 514664ce7165Smrgif test $pkg_failed = yes; then 5147fb23d3a8Smrg 5148fb23d3a8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5149fb23d3a8Smrg _pkg_short_errors_supported=yes 5150fb23d3a8Smrgelse 5151fb23d3a8Smrg _pkg_short_errors_supported=no 5152fb23d3a8Smrgfi 5153fb23d3a8Smrg if test $_pkg_short_errors_supported = yes; then 5154fb23d3a8Smrg XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu xau" 2>&1` 5155fb23d3a8Smrg else 5156fb23d3a8Smrg XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu xau" 2>&1` 5157fb23d3a8Smrg fi 515864ce7165Smrg # Put the nasty error message in config.log where it belongs 5159fb23d3a8Smrg echo "$XHOST_PKG_ERRORS" >&5 5160fb23d3a8Smrg 5161fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xmuu xau) were not met: 5162fb23d3a8Smrg 5163fb23d3a8Smrg$XHOST_PKG_ERRORS 516464ce7165Smrg 516564ce7165SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 516664ce7165Smrginstalled software in a non-standard prefix. 516764ce7165Smrg 5168fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS 5169fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config. 5170fb23d3a8SmrgSee the pkg-config man page for more details. 5171fb23d3a8Smrg" >&5 5172fb23d3a8Smrg$as_echo "$as_me: error: Package requirements (x11 xmuu xau) were not met: 5173fb23d3a8Smrg 5174fb23d3a8Smrg$XHOST_PKG_ERRORS 5175fb23d3a8Smrg 517664ce7165SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 517764ce7165Smrginstalled software in a non-standard prefix. 517864ce7165Smrg 5179fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS 5180fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config. 5181fb23d3a8SmrgSee the pkg-config man page for more details. 5182fb23d3a8Smrg" >&2;} 518364ce7165Smrg { (exit 1); exit 1; }; } 518464ce7165Smrgelif test $pkg_failed = untried; then 5185fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5186fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5187fb23d3a8Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 518864ce7165Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 518964ce7165Smrgpath to pkg-config. 519064ce7165Smrg 5191fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS 5192fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config. 5193fb23d3a8SmrgSee the pkg-config man page for more details. 519464ce7165Smrg 5195fb23d3a8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 519664ce7165SmrgSee \`config.log' for more details." >&5 5197fb23d3a8Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 519864ce7165Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 519964ce7165Smrgpath to pkg-config. 520064ce7165Smrg 5201fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS 5202fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config. 5203fb23d3a8SmrgSee the pkg-config man page for more details. 520464ce7165Smrg 5205fb23d3a8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 520664ce7165SmrgSee \`config.log' for more details." >&2;} 5207fb23d3a8Smrg { (exit 1); exit 1; }; }; } 520864ce7165Smrgelse 520964ce7165Smrg XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS 521064ce7165Smrg XHOST_LIBS=$pkg_cv_XHOST_LIBS 5211fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5212fb23d3a8Smrg$as_echo "yes" >&6; } 521364ce7165Smrg : 521464ce7165Smrgfi 521564ce7165Smrg 521664ce7165Smrg 521764ce7165Smrg 521864ce7165Smrg# Transport selection macro from xtrans.m4 521964ce7165Smrg 522064ce7165Smrg 522164ce7165Smrg 5222fb23d3a8Smrg case $host_os in 5223fb23d3a8Smrg mingw*) unixdef="no" ;; 5224fb23d3a8Smrg *) unixdef="yes" ;; 5225fb23d3a8Smrg esac 522664ce7165Smrg # Check whether --enable-unix-transport was given. 522764ce7165Smrgif test "${enable_unix_transport+set}" = set; then 522864ce7165Smrg enableval=$enable_unix_transport; UNIXCONN=$enableval 522964ce7165Smrgelse 5230fb23d3a8Smrg UNIXCONN=$unixdef 523164ce7165Smrgfi 523264ce7165Smrg 5233fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5 5234fb23d3a8Smrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 523564ce7165Smrg if test "$UNIXCONN" = "yes"; then 523664ce7165Smrg 523764ce7165Smrgcat >>confdefs.h <<\_ACEOF 523864ce7165Smrg#define UNIXCONN 1 523964ce7165Smrg_ACEOF 524064ce7165Smrg 524164ce7165Smrg fi 5242fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5 5243fb23d3a8Smrg$as_echo "$UNIXCONN" >&6; } 5244fb23d3a8Smrg # Check whether --enable-tcp-transport was given. 5245fb23d3a8Smrgif test "${enable_tcp_transport+set}" = set; then 5246fb23d3a8Smrg enableval=$enable_tcp_transport; TCPCONN=$enableval 5247fb23d3a8Smrgelse 5248fb23d3a8Smrg TCPCONN=yes 5249fb23d3a8Smrgfi 5250fb23d3a8Smrg 5251fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5 5252fb23d3a8Smrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 5253fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5 5254fb23d3a8Smrg$as_echo "$TCPCONN" >&6; } 525564ce7165Smrg if test "$TCPCONN" = "yes"; then 525664ce7165Smrg 525764ce7165Smrgcat >>confdefs.h <<\_ACEOF 525864ce7165Smrg#define TCPCONN 1 525964ce7165Smrg_ACEOF 526064ce7165Smrg 526164ce7165Smrg 526264ce7165Smrg # SVR4 hides these in libraries other than libc 5263fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5 5264fb23d3a8Smrg$as_echo_n "checking for library containing socket... " >&6; } 526564ce7165Smrgif test "${ac_cv_search_socket+set}" = set; then 5266fb23d3a8Smrg $as_echo_n "(cached) " >&6 526764ce7165Smrgelse 526864ce7165Smrg ac_func_search_save_LIBS=$LIBS 526964ce7165Smrgcat >conftest.$ac_ext <<_ACEOF 527064ce7165Smrg/* confdefs.h. */ 527164ce7165Smrg_ACEOF 527264ce7165Smrgcat confdefs.h >>conftest.$ac_ext 527364ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 527464ce7165Smrg/* end confdefs.h. */ 527564ce7165Smrg 527664ce7165Smrg/* Override any GCC internal prototype to avoid an error. 527764ce7165Smrg Use char because int might match the return type of a GCC 527864ce7165Smrg builtin and then its argument prototype would still apply. */ 527964ce7165Smrg#ifdef __cplusplus 528064ce7165Smrgextern "C" 528164ce7165Smrg#endif 528264ce7165Smrgchar socket (); 528364ce7165Smrgint 528464ce7165Smrgmain () 528564ce7165Smrg{ 528664ce7165Smrgreturn socket (); 528764ce7165Smrg ; 528864ce7165Smrg return 0; 528964ce7165Smrg} 529064ce7165Smrg_ACEOF 529164ce7165Smrgfor ac_lib in '' socket; do 529264ce7165Smrg if test -z "$ac_lib"; then 529364ce7165Smrg ac_res="none required" 529464ce7165Smrg else 529564ce7165Smrg ac_res=-l$ac_lib 529664ce7165Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 529764ce7165Smrg fi 529864ce7165Smrg rm -f conftest.$ac_objext conftest$ac_exeext 529964ce7165Smrgif { (ac_try="$ac_link" 530064ce7165Smrgcase "(($ac_try" in 530164ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 530264ce7165Smrg *) ac_try_echo=$ac_try;; 530364ce7165Smrgesac 5304fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5305fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 530664ce7165Smrg (eval "$ac_link") 2>conftest.er1 530764ce7165Smrg ac_status=$? 530864ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 530964ce7165Smrg rm -f conftest.er1 531064ce7165Smrg cat conftest.err >&5 5311fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 531264ce7165Smrg (exit $ac_status); } && { 531364ce7165Smrg test -z "$ac_c_werror_flag" || 531464ce7165Smrg test ! -s conftest.err 5315fb23d3a8Smrg } && test -s conftest$ac_exeext && { 5316fb23d3a8Smrg test "$cross_compiling" = yes || 5317fb23d3a8Smrg $as_test_x conftest$ac_exeext 5318fb23d3a8Smrg }; then 531964ce7165Smrg ac_cv_search_socket=$ac_res 532064ce7165Smrgelse 5321fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 532264ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 532364ce7165Smrg 532464ce7165Smrg 532564ce7165Smrgfi 532664ce7165Smrg 5327fb23d3a8Smrgrm -rf conftest.dSYM 532864ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 532964ce7165Smrg conftest$ac_exeext 533064ce7165Smrg if test "${ac_cv_search_socket+set}" = set; then 533164ce7165Smrg break 533264ce7165Smrgfi 533364ce7165Smrgdone 533464ce7165Smrgif test "${ac_cv_search_socket+set}" = set; then 533564ce7165Smrg : 533664ce7165Smrgelse 533764ce7165Smrg ac_cv_search_socket=no 533864ce7165Smrgfi 533964ce7165Smrgrm conftest.$ac_ext 534064ce7165SmrgLIBS=$ac_func_search_save_LIBS 534164ce7165Smrgfi 5342fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 5343fb23d3a8Smrg$as_echo "$ac_cv_search_socket" >&6; } 534464ce7165Smrgac_res=$ac_cv_search_socket 534564ce7165Smrgif test "$ac_res" != no; then 534664ce7165Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 534764ce7165Smrg 534864ce7165Smrgfi 534964ce7165Smrg 5350fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 5351fb23d3a8Smrg$as_echo_n "checking for library containing gethostbyname... " >&6; } 535264ce7165Smrgif test "${ac_cv_search_gethostbyname+set}" = set; then 5353fb23d3a8Smrg $as_echo_n "(cached) " >&6 535464ce7165Smrgelse 535564ce7165Smrg ac_func_search_save_LIBS=$LIBS 535664ce7165Smrgcat >conftest.$ac_ext <<_ACEOF 535764ce7165Smrg/* confdefs.h. */ 535864ce7165Smrg_ACEOF 535964ce7165Smrgcat confdefs.h >>conftest.$ac_ext 536064ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 536164ce7165Smrg/* end confdefs.h. */ 536264ce7165Smrg 536364ce7165Smrg/* Override any GCC internal prototype to avoid an error. 536464ce7165Smrg Use char because int might match the return type of a GCC 536564ce7165Smrg builtin and then its argument prototype would still apply. */ 536664ce7165Smrg#ifdef __cplusplus 536764ce7165Smrgextern "C" 536864ce7165Smrg#endif 536964ce7165Smrgchar gethostbyname (); 537064ce7165Smrgint 537164ce7165Smrgmain () 537264ce7165Smrg{ 537364ce7165Smrgreturn gethostbyname (); 537464ce7165Smrg ; 537564ce7165Smrg return 0; 537664ce7165Smrg} 537764ce7165Smrg_ACEOF 537864ce7165Smrgfor ac_lib in '' nsl; do 537964ce7165Smrg if test -z "$ac_lib"; then 538064ce7165Smrg ac_res="none required" 538164ce7165Smrg else 538264ce7165Smrg ac_res=-l$ac_lib 538364ce7165Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 538464ce7165Smrg fi 538564ce7165Smrg rm -f conftest.$ac_objext conftest$ac_exeext 538664ce7165Smrgif { (ac_try="$ac_link" 538764ce7165Smrgcase "(($ac_try" in 538864ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 538964ce7165Smrg *) ac_try_echo=$ac_try;; 539064ce7165Smrgesac 5391fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5392fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 539364ce7165Smrg (eval "$ac_link") 2>conftest.er1 539464ce7165Smrg ac_status=$? 539564ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 539664ce7165Smrg rm -f conftest.er1 539764ce7165Smrg cat conftest.err >&5 5398fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 539964ce7165Smrg (exit $ac_status); } && { 540064ce7165Smrg test -z "$ac_c_werror_flag" || 540164ce7165Smrg test ! -s conftest.err 5402fb23d3a8Smrg } && test -s conftest$ac_exeext && { 5403fb23d3a8Smrg test "$cross_compiling" = yes || 5404fb23d3a8Smrg $as_test_x conftest$ac_exeext 5405fb23d3a8Smrg }; then 540664ce7165Smrg ac_cv_search_gethostbyname=$ac_res 540764ce7165Smrgelse 5408fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 540964ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 541064ce7165Smrg 541164ce7165Smrg 541264ce7165Smrgfi 541364ce7165Smrg 5414fb23d3a8Smrgrm -rf conftest.dSYM 541564ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 541664ce7165Smrg conftest$ac_exeext 541764ce7165Smrg if test "${ac_cv_search_gethostbyname+set}" = set; then 541864ce7165Smrg break 541964ce7165Smrgfi 542064ce7165Smrgdone 542164ce7165Smrgif test "${ac_cv_search_gethostbyname+set}" = set; then 542264ce7165Smrg : 542364ce7165Smrgelse 542464ce7165Smrg ac_cv_search_gethostbyname=no 542564ce7165Smrgfi 542664ce7165Smrgrm conftest.$ac_ext 542764ce7165SmrgLIBS=$ac_func_search_save_LIBS 542864ce7165Smrgfi 5429fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 5430fb23d3a8Smrg$as_echo "$ac_cv_search_gethostbyname" >&6; } 543164ce7165Smrgac_res=$ac_cv_search_gethostbyname 543264ce7165Smrgif test "$ac_res" != no; then 543364ce7165Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 543464ce7165Smrg 543564ce7165Smrgfi 543664ce7165Smrg 543764ce7165Smrg 5438fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5 5439fb23d3a8Smrg$as_echo_n "checking for main in -lws2_32... " >&6; } 5440fb23d3a8Smrgif test "${ac_cv_lib_ws2_32_main+set}" = set; then 5441fb23d3a8Smrg $as_echo_n "(cached) " >&6 5442fb23d3a8Smrgelse 5443fb23d3a8Smrg ac_check_lib_save_LIBS=$LIBS 5444fb23d3a8SmrgLIBS="-lws2_32 $LIBS" 5445fb23d3a8Smrgcat >conftest.$ac_ext <<_ACEOF 5446fb23d3a8Smrg/* confdefs.h. */ 5447fb23d3a8Smrg_ACEOF 5448fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 5449fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 5450fb23d3a8Smrg/* end confdefs.h. */ 5451fb23d3a8Smrg 5452fb23d3a8Smrg 5453fb23d3a8Smrgint 5454fb23d3a8Smrgmain () 5455fb23d3a8Smrg{ 5456fb23d3a8Smrgreturn main (); 5457fb23d3a8Smrg ; 5458fb23d3a8Smrg return 0; 5459fb23d3a8Smrg} 5460fb23d3a8Smrg_ACEOF 5461fb23d3a8Smrgrm -f conftest.$ac_objext conftest$ac_exeext 5462fb23d3a8Smrgif { (ac_try="$ac_link" 5463fb23d3a8Smrgcase "(($ac_try" in 5464fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5465fb23d3a8Smrg *) ac_try_echo=$ac_try;; 5466fb23d3a8Smrgesac 5467fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5468fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 5469fb23d3a8Smrg (eval "$ac_link") 2>conftest.er1 5470fb23d3a8Smrg ac_status=$? 5471fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 5472fb23d3a8Smrg rm -f conftest.er1 5473fb23d3a8Smrg cat conftest.err >&5 5474fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475fb23d3a8Smrg (exit $ac_status); } && { 5476fb23d3a8Smrg test -z "$ac_c_werror_flag" || 5477fb23d3a8Smrg test ! -s conftest.err 5478fb23d3a8Smrg } && test -s conftest$ac_exeext && { 5479fb23d3a8Smrg test "$cross_compiling" = yes || 5480fb23d3a8Smrg $as_test_x conftest$ac_exeext 5481fb23d3a8Smrg }; then 5482fb23d3a8Smrg ac_cv_lib_ws2_32_main=yes 5483fb23d3a8Smrgelse 5484fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 5485fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 5486fb23d3a8Smrg 5487fb23d3a8Smrg ac_cv_lib_ws2_32_main=no 5488fb23d3a8Smrgfi 5489fb23d3a8Smrg 5490fb23d3a8Smrgrm -rf conftest.dSYM 5491fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5492fb23d3a8Smrg conftest$ac_exeext conftest.$ac_ext 5493fb23d3a8SmrgLIBS=$ac_check_lib_save_LIBS 5494fb23d3a8Smrgfi 5495fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5 5496fb23d3a8Smrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 5497fb23d3a8Smrgif test "x$ac_cv_lib_ws2_32_main" = x""yes; then 5498fb23d3a8Smrg cat >>confdefs.h <<_ACEOF 5499fb23d3a8Smrg#define HAVE_LIBWS2_32 1 5500fb23d3a8Smrg_ACEOF 5501fb23d3a8Smrg 5502fb23d3a8Smrg LIBS="-lws2_32 $LIBS" 5503fb23d3a8Smrg 5504fb23d3a8Smrgfi 5505fb23d3a8Smrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 5506fb23d3a8Smrg 5507fb23d3a8Smrg 550864ce7165Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 550964ce7165Smrg # Check whether --enable-ipv6 was given. 551064ce7165Smrgif test "${enable_ipv6+set}" = set; then 551164ce7165Smrg enableval=$enable_ipv6; IPV6CONN=$enableval 551264ce7165Smrgelse 5513fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 5514fb23d3a8Smrg$as_echo_n "checking for getaddrinfo... " >&6; } 551564ce7165Smrgif test "${ac_cv_func_getaddrinfo+set}" = set; then 5516fb23d3a8Smrg $as_echo_n "(cached) " >&6 551764ce7165Smrgelse 551864ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 551964ce7165Smrg/* confdefs.h. */ 552064ce7165Smrg_ACEOF 552164ce7165Smrgcat confdefs.h >>conftest.$ac_ext 552264ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 552364ce7165Smrg/* end confdefs.h. */ 552464ce7165Smrg/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 552564ce7165Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 552664ce7165Smrg#define getaddrinfo innocuous_getaddrinfo 552764ce7165Smrg 552864ce7165Smrg/* System header to define __stub macros and hopefully few prototypes, 552964ce7165Smrg which can conflict with char getaddrinfo (); below. 553064ce7165Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 553164ce7165Smrg <limits.h> exists even on freestanding compilers. */ 553264ce7165Smrg 553364ce7165Smrg#ifdef __STDC__ 553464ce7165Smrg# include <limits.h> 553564ce7165Smrg#else 553664ce7165Smrg# include <assert.h> 553764ce7165Smrg#endif 553864ce7165Smrg 553964ce7165Smrg#undef getaddrinfo 554064ce7165Smrg 554164ce7165Smrg/* Override any GCC internal prototype to avoid an error. 554264ce7165Smrg Use char because int might match the return type of a GCC 554364ce7165Smrg builtin and then its argument prototype would still apply. */ 554464ce7165Smrg#ifdef __cplusplus 554564ce7165Smrgextern "C" 554664ce7165Smrg#endif 554764ce7165Smrgchar getaddrinfo (); 554864ce7165Smrg/* The GNU C library defines this for functions which it implements 554964ce7165Smrg to always fail with ENOSYS. Some functions are actually named 555064ce7165Smrg something starting with __ and the normal name is an alias. */ 555164ce7165Smrg#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 555264ce7165Smrgchoke me 555364ce7165Smrg#endif 555464ce7165Smrg 555564ce7165Smrgint 555664ce7165Smrgmain () 555764ce7165Smrg{ 555864ce7165Smrgreturn getaddrinfo (); 555964ce7165Smrg ; 556064ce7165Smrg return 0; 556164ce7165Smrg} 556264ce7165Smrg_ACEOF 556364ce7165Smrgrm -f conftest.$ac_objext conftest$ac_exeext 556464ce7165Smrgif { (ac_try="$ac_link" 556564ce7165Smrgcase "(($ac_try" in 556664ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 556764ce7165Smrg *) ac_try_echo=$ac_try;; 556864ce7165Smrgesac 5569fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5570fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 557164ce7165Smrg (eval "$ac_link") 2>conftest.er1 557264ce7165Smrg ac_status=$? 557364ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 557464ce7165Smrg rm -f conftest.er1 557564ce7165Smrg cat conftest.err >&5 5576fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 557764ce7165Smrg (exit $ac_status); } && { 557864ce7165Smrg test -z "$ac_c_werror_flag" || 557964ce7165Smrg test ! -s conftest.err 5580fb23d3a8Smrg } && test -s conftest$ac_exeext && { 5581fb23d3a8Smrg test "$cross_compiling" = yes || 5582fb23d3a8Smrg $as_test_x conftest$ac_exeext 5583fb23d3a8Smrg }; then 558464ce7165Smrg ac_cv_func_getaddrinfo=yes 558564ce7165Smrgelse 5586fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 558764ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 558864ce7165Smrg 558964ce7165Smrg ac_cv_func_getaddrinfo=no 559064ce7165Smrgfi 559164ce7165Smrg 5592fb23d3a8Smrgrm -rf conftest.dSYM 559364ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 559464ce7165Smrg conftest$ac_exeext conftest.$ac_ext 559564ce7165Smrgfi 5596fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 5597fb23d3a8Smrg$as_echo "$ac_cv_func_getaddrinfo" >&6; } 5598fb23d3a8Smrgif test "x$ac_cv_func_getaddrinfo" = x""yes; then 559964ce7165Smrg IPV6CONN=yes 560064ce7165Smrgelse 560164ce7165Smrg IPV6CONN=no 560264ce7165Smrgfi 560364ce7165Smrg 560464ce7165Smrgfi 560564ce7165Smrg 5606fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5 5607fb23d3a8Smrg$as_echo_n "checking if IPv6 support should be built... " >&6; } 560864ce7165Smrg if test "$IPV6CONN" = "yes"; then 560964ce7165Smrg 561064ce7165Smrgcat >>confdefs.h <<\_ACEOF 561164ce7165Smrg#define IPv6 1 561264ce7165Smrg_ACEOF 561364ce7165Smrg 561464ce7165Smrg fi 5615fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5 5616fb23d3a8Smrg$as_echo "$IPV6CONN" >&6; } 561764ce7165Smrg 561864ce7165Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in 5619fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 5620fb23d3a8Smrg$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; } 562164ce7165Smrgif test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 5622fb23d3a8Smrg $as_echo_n "(cached) " >&6 562364ce7165Smrgelse 562464ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 562564ce7165Smrg/* confdefs.h. */ 562664ce7165Smrg_ACEOF 562764ce7165Smrgcat confdefs.h >>conftest.$ac_ext 562864ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 562964ce7165Smrg/* end confdefs.h. */ 563064ce7165Smrg 5631fb23d3a8Smrg#include <sys/types.h> 5632fb23d3a8Smrg#include <sys/socket.h> 5633fb23d3a8Smrg#include <netinet/in.h> 5634fb23d3a8Smrg 5635fb23d3a8Smrg 5636fb23d3a8Smrgint 5637fb23d3a8Smrgmain () 5638fb23d3a8Smrg{ 5639fb23d3a8Smrgstatic struct sockaddr_in ac_aggr; 5640fb23d3a8Smrgif (ac_aggr.sin_len) 5641fb23d3a8Smrgreturn 0; 5642fb23d3a8Smrg ; 5643fb23d3a8Smrg return 0; 5644fb23d3a8Smrg} 5645fb23d3a8Smrg_ACEOF 5646fb23d3a8Smrgrm -f conftest.$ac_objext 5647fb23d3a8Smrgif { (ac_try="$ac_compile" 5648fb23d3a8Smrgcase "(($ac_try" in 5649fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5650fb23d3a8Smrg *) ac_try_echo=$ac_try;; 5651fb23d3a8Smrgesac 5652fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5653fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 5654fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 5655fb23d3a8Smrg ac_status=$? 5656fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 5657fb23d3a8Smrg rm -f conftest.er1 5658fb23d3a8Smrg cat conftest.err >&5 5659fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660fb23d3a8Smrg (exit $ac_status); } && { 5661fb23d3a8Smrg test -z "$ac_c_werror_flag" || 5662fb23d3a8Smrg test ! -s conftest.err 5663fb23d3a8Smrg } && test -s conftest.$ac_objext; then 5664fb23d3a8Smrg ac_cv_member_struct_sockaddr_in_sin_len=yes 5665fb23d3a8Smrgelse 5666fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 5667fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 5668fb23d3a8Smrg 5669fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 5670fb23d3a8Smrg/* confdefs.h. */ 5671fb23d3a8Smrg_ACEOF 5672fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 5673fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 5674fb23d3a8Smrg/* end confdefs.h. */ 5675fb23d3a8Smrg 5676fb23d3a8Smrg#include <sys/types.h> 5677fb23d3a8Smrg#include <sys/socket.h> 5678fb23d3a8Smrg#include <netinet/in.h> 5679fb23d3a8Smrg 5680fb23d3a8Smrg 5681fb23d3a8Smrgint 5682fb23d3a8Smrgmain () 5683fb23d3a8Smrg{ 5684fb23d3a8Smrgstatic struct sockaddr_in ac_aggr; 5685fb23d3a8Smrgif (sizeof ac_aggr.sin_len) 5686fb23d3a8Smrgreturn 0; 5687fb23d3a8Smrg ; 5688fb23d3a8Smrg return 0; 5689fb23d3a8Smrg} 5690fb23d3a8Smrg_ACEOF 5691fb23d3a8Smrgrm -f conftest.$ac_objext 5692fb23d3a8Smrgif { (ac_try="$ac_compile" 5693fb23d3a8Smrgcase "(($ac_try" in 5694fb23d3a8Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5695fb23d3a8Smrg *) ac_try_echo=$ac_try;; 5696fb23d3a8Smrgesac 5697fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5698fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 5699fb23d3a8Smrg (eval "$ac_compile") 2>conftest.er1 5700fb23d3a8Smrg ac_status=$? 5701fb23d3a8Smrg grep -v '^ *+' conftest.er1 >conftest.err 5702fb23d3a8Smrg rm -f conftest.er1 5703fb23d3a8Smrg cat conftest.err >&5 5704fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705fb23d3a8Smrg (exit $ac_status); } && { 5706fb23d3a8Smrg test -z "$ac_c_werror_flag" || 5707fb23d3a8Smrg test ! -s conftest.err 5708fb23d3a8Smrg } && test -s conftest.$ac_objext; then 5709fb23d3a8Smrg ac_cv_member_struct_sockaddr_in_sin_len=yes 5710fb23d3a8Smrgelse 5711fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 5712fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 5713fb23d3a8Smrg 5714fb23d3a8Smrg ac_cv_member_struct_sockaddr_in_sin_len=no 5715fb23d3a8Smrgfi 5716fb23d3a8Smrg 5717fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718fb23d3a8Smrgfi 5719fb23d3a8Smrg 5720fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721fb23d3a8Smrgfi 5722fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 5723fb23d3a8Smrg$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 5724fb23d3a8Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then 5725fb23d3a8Smrg 5726fb23d3a8Smrgcat >>confdefs.h <<\_ACEOF 5727fb23d3a8Smrg#define BSD44SOCKETS 1 5728fb23d3a8Smrg_ACEOF 5729fb23d3a8Smrg 5730fb23d3a8Smrgfi 5731fb23d3a8Smrg 5732fb23d3a8Smrg 5733fb23d3a8Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 5734fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 5735fb23d3a8Smrg$as_echo_n "checking for socklen_t... " >&6; } 5736fb23d3a8Smrgif test "${ac_cv_type_socklen_t+set}" = set; then 5737fb23d3a8Smrg $as_echo_n "(cached) " >&6 5738fb23d3a8Smrgelse 5739fb23d3a8Smrg ac_cv_type_socklen_t=no 5740fb23d3a8Smrgcat >conftest.$ac_ext <<_ACEOF 5741fb23d3a8Smrg/* confdefs.h. */ 5742fb23d3a8Smrg_ACEOF 5743fb23d3a8Smrgcat confdefs.h >>conftest.$ac_ext 5744fb23d3a8Smrgcat >>conftest.$ac_ext <<_ACEOF 5745fb23d3a8Smrg/* end confdefs.h. */ 5746fb23d3a8Smrg 5747fb23d3a8Smrg$ac_includes_default 574864ce7165Smrg#include <sys/socket.h> 574964ce7165Smrg 575064ce7165Smrgint 575164ce7165Smrgmain () 575264ce7165Smrg{ 5753fb23d3a8Smrgif (sizeof (socklen_t)) 5754fb23d3a8Smrg return 0; 575564ce7165Smrg ; 575664ce7165Smrg return 0; 575764ce7165Smrg} 575864ce7165Smrg_ACEOF 575964ce7165Smrgrm -f conftest.$ac_objext 576064ce7165Smrgif { (ac_try="$ac_compile" 576164ce7165Smrgcase "(($ac_try" in 576264ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 576364ce7165Smrg *) ac_try_echo=$ac_try;; 576464ce7165Smrgesac 5765fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5766fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 576764ce7165Smrg (eval "$ac_compile") 2>conftest.er1 576864ce7165Smrg ac_status=$? 576964ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 577064ce7165Smrg rm -f conftest.er1 577164ce7165Smrg cat conftest.err >&5 5772fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 577364ce7165Smrg (exit $ac_status); } && { 577464ce7165Smrg test -z "$ac_c_werror_flag" || 577564ce7165Smrg test ! -s conftest.err 577664ce7165Smrg } && test -s conftest.$ac_objext; then 5777fb23d3a8Smrg cat >conftest.$ac_ext <<_ACEOF 577864ce7165Smrg/* confdefs.h. */ 577964ce7165Smrg_ACEOF 578064ce7165Smrgcat confdefs.h >>conftest.$ac_ext 578164ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 578264ce7165Smrg/* end confdefs.h. */ 578364ce7165Smrg 5784fb23d3a8Smrg$ac_includes_default 578564ce7165Smrg#include <sys/socket.h> 578664ce7165Smrg 578764ce7165Smrgint 578864ce7165Smrgmain () 578964ce7165Smrg{ 5790fb23d3a8Smrgif (sizeof ((socklen_t))) 5791fb23d3a8Smrg return 0; 579264ce7165Smrg ; 579364ce7165Smrg return 0; 579464ce7165Smrg} 579564ce7165Smrg_ACEOF 579664ce7165Smrgrm -f conftest.$ac_objext 579764ce7165Smrgif { (ac_try="$ac_compile" 579864ce7165Smrgcase "(($ac_try" in 579964ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 580064ce7165Smrg *) ac_try_echo=$ac_try;; 580164ce7165Smrgesac 5802fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5803fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 580464ce7165Smrg (eval "$ac_compile") 2>conftest.er1 580564ce7165Smrg ac_status=$? 580664ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 580764ce7165Smrg rm -f conftest.er1 580864ce7165Smrg cat conftest.err >&5 5809fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 581064ce7165Smrg (exit $ac_status); } && { 581164ce7165Smrg test -z "$ac_c_werror_flag" || 581264ce7165Smrg test ! -s conftest.err 581364ce7165Smrg } && test -s conftest.$ac_objext; then 5814fb23d3a8Smrg : 581564ce7165Smrgelse 5816fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 581764ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 581864ce7165Smrg 5819fb23d3a8Smrg ac_cv_type_socklen_t=yes 582064ce7165Smrgfi 582164ce7165Smrg 582264ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823fb23d3a8Smrgelse 5824fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 5825fb23d3a8Smrgsed 's/^/| /' conftest.$ac_ext >&5 5826fb23d3a8Smrg 5827fb23d3a8Smrg 582864ce7165Smrgfi 582964ce7165Smrg 583064ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 583164ce7165Smrgfi 5832fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5833fb23d3a8Smrg$as_echo "$ac_cv_type_socklen_t" >&6; } 5834fb23d3a8Smrgif test "x$ac_cv_type_socklen_t" = x""yes; then 583564ce7165Smrg 5836fb23d3a8Smrgcat >>confdefs.h <<_ACEOF 5837fb23d3a8Smrg#define HAVE_SOCKLEN_T 1 583864ce7165Smrg_ACEOF 583964ce7165Smrg 5840fb23d3a8Smrg 584164ce7165Smrgfi 584264ce7165Smrg 584364ce7165Smrg 5844fb23d3a8Smrg 584564ce7165Smrg fi 584664ce7165Smrg case $host_os in 584764ce7165Smrg solaris*|sco*|sysv4*) localdef="yes" ;; 584864ce7165Smrg *) localdef="no" ;; 584964ce7165Smrg esac 585064ce7165Smrg # Check whether --enable-local-transport was given. 585164ce7165Smrgif test "${enable_local_transport+set}" = set; then 585264ce7165Smrg enableval=$enable_local_transport; LOCALCONN=$enableval 585364ce7165Smrgelse 585464ce7165Smrg LOCALCONN=$localdef 585564ce7165Smrgfi 585664ce7165Smrg 5857fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5 5858fb23d3a8Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 5859fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5 5860fb23d3a8Smrg$as_echo "$LOCALCONN" >&6; } 586164ce7165Smrg if test "$LOCALCONN" = "yes"; then 586264ce7165Smrg 586364ce7165Smrgcat >>confdefs.h <<\_ACEOF 586464ce7165Smrg#define LOCALCONN 1 586564ce7165Smrg_ACEOF 586664ce7165Smrg 586764ce7165Smrg fi 586864ce7165Smrg 586964ce7165Smrg 587064ce7165Smrg 587164ce7165Smrg# Secure RPC detection macro from xtrans.m4 587264ce7165Smrg 587364ce7165Smrg # Check whether --enable-secure-rpc was given. 587464ce7165Smrgif test "${enable_secure_rpc+set}" = set; then 587564ce7165Smrg enableval=$enable_secure_rpc; SECURE_RPC=$enableval 587664ce7165Smrgelse 587764ce7165Smrg SECURE_RPC="try" 587864ce7165Smrgfi 587964ce7165Smrg 588064ce7165Smrg 588164ce7165Smrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 588264ce7165Smrg FOUND_SECURE_RPC="no" 588364ce7165Smrg 588464ce7165Smrg 588564ce7165Smrgfor ac_func in authdes_seccreate authdes_create 588664ce7165Smrgdo 5887fb23d3a8Smrgas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5888fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5889fb23d3a8Smrg$as_echo_n "checking for $ac_func... " >&6; } 589064ce7165Smrgif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5891fb23d3a8Smrg $as_echo_n "(cached) " >&6 589264ce7165Smrgelse 589364ce7165Smrg cat >conftest.$ac_ext <<_ACEOF 589464ce7165Smrg/* confdefs.h. */ 589564ce7165Smrg_ACEOF 589664ce7165Smrgcat confdefs.h >>conftest.$ac_ext 589764ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 589864ce7165Smrg/* end confdefs.h. */ 589964ce7165Smrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 590064ce7165Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 590164ce7165Smrg#define $ac_func innocuous_$ac_func 590264ce7165Smrg 590364ce7165Smrg/* System header to define __stub macros and hopefully few prototypes, 590464ce7165Smrg which can conflict with char $ac_func (); below. 590564ce7165Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 590664ce7165Smrg <limits.h> exists even on freestanding compilers. */ 590764ce7165Smrg 590864ce7165Smrg#ifdef __STDC__ 590964ce7165Smrg# include <limits.h> 591064ce7165Smrg#else 591164ce7165Smrg# include <assert.h> 591264ce7165Smrg#endif 591364ce7165Smrg 591464ce7165Smrg#undef $ac_func 591564ce7165Smrg 591664ce7165Smrg/* Override any GCC internal prototype to avoid an error. 591764ce7165Smrg Use char because int might match the return type of a GCC 591864ce7165Smrg builtin and then its argument prototype would still apply. */ 591964ce7165Smrg#ifdef __cplusplus 592064ce7165Smrgextern "C" 592164ce7165Smrg#endif 592264ce7165Smrgchar $ac_func (); 592364ce7165Smrg/* The GNU C library defines this for functions which it implements 592464ce7165Smrg to always fail with ENOSYS. Some functions are actually named 592564ce7165Smrg something starting with __ and the normal name is an alias. */ 592664ce7165Smrg#if defined __stub_$ac_func || defined __stub___$ac_func 592764ce7165Smrgchoke me 592864ce7165Smrg#endif 592964ce7165Smrg 593064ce7165Smrgint 593164ce7165Smrgmain () 593264ce7165Smrg{ 593364ce7165Smrgreturn $ac_func (); 593464ce7165Smrg ; 593564ce7165Smrg return 0; 593664ce7165Smrg} 593764ce7165Smrg_ACEOF 593864ce7165Smrgrm -f conftest.$ac_objext conftest$ac_exeext 593964ce7165Smrgif { (ac_try="$ac_link" 594064ce7165Smrgcase "(($ac_try" in 594164ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 594264ce7165Smrg *) ac_try_echo=$ac_try;; 594364ce7165Smrgesac 5944fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5945fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 594664ce7165Smrg (eval "$ac_link") 2>conftest.er1 594764ce7165Smrg ac_status=$? 594864ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 594964ce7165Smrg rm -f conftest.er1 595064ce7165Smrg cat conftest.err >&5 5951fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 595264ce7165Smrg (exit $ac_status); } && { 595364ce7165Smrg test -z "$ac_c_werror_flag" || 595464ce7165Smrg test ! -s conftest.err 5955fb23d3a8Smrg } && test -s conftest$ac_exeext && { 5956fb23d3a8Smrg test "$cross_compiling" = yes || 5957fb23d3a8Smrg $as_test_x conftest$ac_exeext 5958fb23d3a8Smrg }; then 595964ce7165Smrg eval "$as_ac_var=yes" 596064ce7165Smrgelse 5961fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 596264ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 596364ce7165Smrg 596464ce7165Smrg eval "$as_ac_var=no" 596564ce7165Smrgfi 596664ce7165Smrg 5967fb23d3a8Smrgrm -rf conftest.dSYM 596864ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 596964ce7165Smrg conftest$ac_exeext conftest.$ac_ext 597064ce7165Smrgfi 5971fb23d3a8Smrgac_res=`eval 'as_val=${'$as_ac_var'} 5972fb23d3a8Smrg $as_echo "$as_val"'` 5973fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5974fb23d3a8Smrg$as_echo "$ac_res" >&6; } 5975fb23d3a8Smrgas_val=`eval 'as_val=${'$as_ac_var'} 5976fb23d3a8Smrg $as_echo "$as_val"'` 5977fb23d3a8Smrg if test "x$as_val" = x""yes; then 597864ce7165Smrg cat >>confdefs.h <<_ACEOF 5979fb23d3a8Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 598064ce7165Smrg_ACEOF 598164ce7165Smrg FOUND_SECURE_RPC="yes" 598264ce7165Smrgfi 598364ce7165Smrgdone 598464ce7165Smrg 598564ce7165Smrg if test "x$FOUND_SECURE_RPC" = "xno" ; then 598664ce7165Smrg if test "x$SECURE_RPC" = "xyes" ; then 5987fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5 5988fb23d3a8Smrg$as_echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;} 598964ce7165Smrg { (exit 1); exit 1; }; } 599064ce7165Smrg fi 599164ce7165Smrg SECURE_RPC="no" 599264ce7165Smrg else 5993fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5 5994fb23d3a8Smrg$as_echo_n "checking for library containing getsecretkey... " >&6; } 599564ce7165Smrgif test "${ac_cv_search_getsecretkey+set}" = set; then 5996fb23d3a8Smrg $as_echo_n "(cached) " >&6 599764ce7165Smrgelse 599864ce7165Smrg ac_func_search_save_LIBS=$LIBS 599964ce7165Smrgcat >conftest.$ac_ext <<_ACEOF 600064ce7165Smrg/* confdefs.h. */ 600164ce7165Smrg_ACEOF 600264ce7165Smrgcat confdefs.h >>conftest.$ac_ext 600364ce7165Smrgcat >>conftest.$ac_ext <<_ACEOF 600464ce7165Smrg/* end confdefs.h. */ 600564ce7165Smrg 600664ce7165Smrg/* Override any GCC internal prototype to avoid an error. 600764ce7165Smrg Use char because int might match the return type of a GCC 600864ce7165Smrg builtin and then its argument prototype would still apply. */ 600964ce7165Smrg#ifdef __cplusplus 601064ce7165Smrgextern "C" 601164ce7165Smrg#endif 601264ce7165Smrgchar getsecretkey (); 601364ce7165Smrgint 601464ce7165Smrgmain () 601564ce7165Smrg{ 601664ce7165Smrgreturn getsecretkey (); 601764ce7165Smrg ; 601864ce7165Smrg return 0; 601964ce7165Smrg} 602064ce7165Smrg_ACEOF 602164ce7165Smrgfor ac_lib in '' rpcsvc; do 602264ce7165Smrg if test -z "$ac_lib"; then 602364ce7165Smrg ac_res="none required" 602464ce7165Smrg else 602564ce7165Smrg ac_res=-l$ac_lib 602664ce7165Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 602764ce7165Smrg fi 602864ce7165Smrg rm -f conftest.$ac_objext conftest$ac_exeext 602964ce7165Smrgif { (ac_try="$ac_link" 603064ce7165Smrgcase "(($ac_try" in 603164ce7165Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 603264ce7165Smrg *) ac_try_echo=$ac_try;; 603364ce7165Smrgesac 6034fb23d3a8Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6035fb23d3a8Smrg$as_echo "$ac_try_echo") >&5 603664ce7165Smrg (eval "$ac_link") 2>conftest.er1 603764ce7165Smrg ac_status=$? 603864ce7165Smrg grep -v '^ *+' conftest.er1 >conftest.err 603964ce7165Smrg rm -f conftest.er1 604064ce7165Smrg cat conftest.err >&5 6041fb23d3a8Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 604264ce7165Smrg (exit $ac_status); } && { 604364ce7165Smrg test -z "$ac_c_werror_flag" || 604464ce7165Smrg test ! -s conftest.err 6045fb23d3a8Smrg } && test -s conftest$ac_exeext && { 6046fb23d3a8Smrg test "$cross_compiling" = yes || 6047fb23d3a8Smrg $as_test_x conftest$ac_exeext 6048fb23d3a8Smrg }; then 604964ce7165Smrg ac_cv_search_getsecretkey=$ac_res 605064ce7165Smrgelse 6051fb23d3a8Smrg $as_echo "$as_me: failed program was:" >&5 605264ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5 605364ce7165Smrg 605464ce7165Smrg 605564ce7165Smrgfi 605664ce7165Smrg 6057fb23d3a8Smrgrm -rf conftest.dSYM 605864ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 605964ce7165Smrg conftest$ac_exeext 606064ce7165Smrg if test "${ac_cv_search_getsecretkey+set}" = set; then 606164ce7165Smrg break 606264ce7165Smrgfi 606364ce7165Smrgdone 606464ce7165Smrgif test "${ac_cv_search_getsecretkey+set}" = set; then 606564ce7165Smrg : 606664ce7165Smrgelse 606764ce7165Smrg ac_cv_search_getsecretkey=no 606864ce7165Smrgfi 606964ce7165Smrgrm conftest.$ac_ext 607064ce7165SmrgLIBS=$ac_func_search_save_LIBS 607164ce7165Smrgfi 6072fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5 6073fb23d3a8Smrg$as_echo "$ac_cv_search_getsecretkey" >&6; } 607464ce7165Smrgac_res=$ac_cv_search_getsecretkey 607564ce7165Smrgif test "$ac_res" != no; then 607664ce7165Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 607764ce7165Smrg 607864ce7165Smrgfi 607964ce7165Smrg 608064ce7165Smrg SECURE_RPC="yes" 608164ce7165Smrg fi 608264ce7165Smrg fi 6083fb23d3a8Smrg { $as_echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 6084fb23d3a8Smrg$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 608564ce7165Smrg if test "x$SECURE_RPC" = "xyes" ; then 608664ce7165Smrg 608764ce7165Smrgcat >>confdefs.h <<\_ACEOF 608864ce7165Smrg#define SECURE_RPC 1 608964ce7165Smrg_ACEOF 609064ce7165Smrg 609164ce7165Smrg fi 6092fb23d3a8Smrg { $as_echo "$as_me:$LINENO: result: $SECURE_RPC" >&5 6093fb23d3a8Smrg$as_echo "$SECURE_RPC" >&6; } 609464ce7165Smrg 609564ce7165Smrg 609664ce7165Smrgac_config_files="$ac_config_files Makefile" 609764ce7165Smrg 609864ce7165Smrgcat >confcache <<\_ACEOF 609964ce7165Smrg# This file is a shell script that caches the results of configure 610064ce7165Smrg# tests run on this system so they can be shared between configure 610164ce7165Smrg# scripts and configure runs, see configure's option --config-cache. 610264ce7165Smrg# It is not useful on other systems. If it contains results you don't 610364ce7165Smrg# want to keep, you may remove or edit it. 610464ce7165Smrg# 610564ce7165Smrg# config.status only pays attention to the cache file if you give it 610664ce7165Smrg# the --recheck option to rerun configure. 610764ce7165Smrg# 610864ce7165Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 610964ce7165Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 611064ce7165Smrg# following values. 611164ce7165Smrg 611264ce7165Smrg_ACEOF 611364ce7165Smrg 611464ce7165Smrg# The following way of writing the cache mishandles newlines in values, 611564ce7165Smrg# but we know of no workaround that is simple, portable, and efficient. 611664ce7165Smrg# So, we kill variables containing newlines. 611764ce7165Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 611864ce7165Smrg# and sets the high bit in the cache file unless we assign to the vars. 611964ce7165Smrg( 612064ce7165Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 612164ce7165Smrg eval ac_val=\$$ac_var 612264ce7165Smrg case $ac_val in #( 612364ce7165Smrg *${as_nl}*) 612464ce7165Smrg case $ac_var in #( 6125fb23d3a8Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 6126fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 612764ce7165Smrg esac 612864ce7165Smrg case $ac_var in #( 612964ce7165Smrg _ | IFS | as_nl) ;; #( 6130fb23d3a8Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 613164ce7165Smrg *) $as_unset $ac_var ;; 613264ce7165Smrg esac ;; 613364ce7165Smrg esac 613464ce7165Smrg done 613564ce7165Smrg 613664ce7165Smrg (set) 2>&1 | 613764ce7165Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 613864ce7165Smrg *${as_nl}ac_space=\ *) 613964ce7165Smrg # `set' does not quote correctly, so add quotes (double-quote 614064ce7165Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 614164ce7165Smrg sed -n \ 614264ce7165Smrg "s/'/'\\\\''/g; 614364ce7165Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 614464ce7165Smrg ;; #( 614564ce7165Smrg *) 614664ce7165Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 614764ce7165Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 614864ce7165Smrg ;; 614964ce7165Smrg esac | 615064ce7165Smrg sort 615164ce7165Smrg) | 615264ce7165Smrg sed ' 615364ce7165Smrg /^ac_cv_env_/b end 615464ce7165Smrg t clear 615564ce7165Smrg :clear 615664ce7165Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 615764ce7165Smrg t end 615864ce7165Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 615964ce7165Smrg :end' >>confcache 616064ce7165Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 616164ce7165Smrg if test -w "$cache_file"; then 616264ce7165Smrg test "x$cache_file" != "x/dev/null" && 6163fb23d3a8Smrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 6164fb23d3a8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 616564ce7165Smrg cat confcache >$cache_file 616664ce7165Smrg else 6167fb23d3a8Smrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6168fb23d3a8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 616964ce7165Smrg fi 617064ce7165Smrgfi 617164ce7165Smrgrm -f confcache 617264ce7165Smrg 617364ce7165Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 617464ce7165Smrg# Let make expand exec_prefix. 617564ce7165Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 617664ce7165Smrg 617764ce7165SmrgDEFS=-DHAVE_CONFIG_H 617864ce7165Smrg 617964ce7165Smrgac_libobjs= 618064ce7165Smrgac_ltlibobjs= 618164ce7165Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 618264ce7165Smrg # 1. Remove the extension, and $U if already installed. 618364ce7165Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6184fb23d3a8Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 618564ce7165Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 618664ce7165Smrg # will be set to the directory where LIBOBJS objects are built. 618764ce7165Smrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 618864ce7165Smrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 618964ce7165Smrgdone 619064ce7165SmrgLIBOBJS=$ac_libobjs 619164ce7165Smrg 619264ce7165SmrgLTLIBOBJS=$ac_ltlibobjs 619364ce7165Smrg 619464ce7165Smrg 6195fb23d3a8Smrg if test -n "$EXEEXT"; then 6196fb23d3a8Smrg am__EXEEXT_TRUE= 6197fb23d3a8Smrg am__EXEEXT_FALSE='#' 6198fb23d3a8Smrgelse 6199fb23d3a8Smrg am__EXEEXT_TRUE='#' 6200fb23d3a8Smrg am__EXEEXT_FALSE= 6201fb23d3a8Smrgfi 6202fb23d3a8Smrg 620364ce7165Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 6204fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 620564ce7165SmrgUsually this means the macro was only invoked conditionally." >&5 6206fb23d3a8Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 620764ce7165SmrgUsually this means the macro was only invoked conditionally." >&2;} 620864ce7165Smrg { (exit 1); exit 1; }; } 620964ce7165Smrgfi 621064ce7165Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6211fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 621264ce7165SmrgUsually this means the macro was only invoked conditionally." >&5 6213fb23d3a8Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 621464ce7165SmrgUsually this means the macro was only invoked conditionally." >&2;} 621564ce7165Smrg { (exit 1); exit 1; }; } 621664ce7165Smrgfi 621764ce7165Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6218fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 621964ce7165SmrgUsually this means the macro was only invoked conditionally." >&5 6220fb23d3a8Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 622164ce7165SmrgUsually this means the macro was only invoked conditionally." >&2;} 622264ce7165Smrg { (exit 1); exit 1; }; } 622364ce7165Smrgfi 622464ce7165Smrg 622564ce7165Smrg: ${CONFIG_STATUS=./config.status} 6226fb23d3a8Smrgac_write_fail=0 622764ce7165Smrgac_clean_files_save=$ac_clean_files 622864ce7165Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 6229fb23d3a8Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6230fb23d3a8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6231fb23d3a8Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 623264ce7165Smrg#! $SHELL 623364ce7165Smrg# Generated by $as_me. 623464ce7165Smrg# Run this file to recreate the current configuration. 623564ce7165Smrg# Compiler output produced by configure, useful for debugging 623664ce7165Smrg# configure, is in config.log if it exists. 623764ce7165Smrg 623864ce7165Smrgdebug=false 623964ce7165Smrgac_cs_recheck=false 624064ce7165Smrgac_cs_silent=false 624164ce7165SmrgSHELL=\${CONFIG_SHELL-$SHELL} 624264ce7165Smrg_ACEOF 624364ce7165Smrg 6244fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 624564ce7165Smrg## --------------------- ## 624664ce7165Smrg## M4sh Initialization. ## 624764ce7165Smrg## --------------------- ## 624864ce7165Smrg 624964ce7165Smrg# Be more Bourne compatible 625064ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh 625164ce7165Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 625264ce7165Smrg emulate sh 625364ce7165Smrg NULLCMD=: 6254fb23d3a8Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 625564ce7165Smrg # is contrary to our usage. Disable this feature. 625664ce7165Smrg alias -g '${1+"$@"}'='"$@"' 625764ce7165Smrg setopt NO_GLOB_SUBST 625864ce7165Smrgelse 625964ce7165Smrg case `(set -o) 2>/dev/null` in 626064ce7165Smrg *posix*) set -o posix ;; 626164ce7165Smrgesac 626264ce7165Smrg 626364ce7165Smrgfi 626464ce7165Smrg 626564ce7165Smrg 626664ce7165Smrg 626764ce7165Smrg 626864ce7165Smrg# PATH needs CR 626964ce7165Smrg# Avoid depending upon Character Ranges. 627064ce7165Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 627164ce7165Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 627264ce7165Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 627364ce7165Smrgas_cr_digits='0123456789' 627464ce7165Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 627564ce7165Smrg 6276fb23d3a8Smrgas_nl=' 6277fb23d3a8Smrg' 6278fb23d3a8Smrgexport as_nl 6279fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 6280fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6281fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6282fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6283fb23d3a8Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6284fb23d3a8Smrg as_echo='printf %s\n' 6285fb23d3a8Smrg as_echo_n='printf %s' 6286fb23d3a8Smrgelse 6287fb23d3a8Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6288fb23d3a8Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6289fb23d3a8Smrg as_echo_n='/usr/ucb/echo -n' 629064ce7165Smrg else 6291fb23d3a8Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6292fb23d3a8Smrg as_echo_n_body='eval 6293fb23d3a8Smrg arg=$1; 6294fb23d3a8Smrg case $arg in 6295fb23d3a8Smrg *"$as_nl"*) 6296fb23d3a8Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6297fb23d3a8Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6298fb23d3a8Smrg esac; 6299fb23d3a8Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6300fb23d3a8Smrg ' 6301fb23d3a8Smrg export as_echo_n_body 6302fb23d3a8Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 630364ce7165Smrg fi 6304fb23d3a8Smrg export as_echo_body 6305fb23d3a8Smrg as_echo='sh -c $as_echo_body as_echo' 6306fb23d3a8Smrgfi 6307fb23d3a8Smrg 6308fb23d3a8Smrg# The user is always right. 6309fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then 6310fb23d3a8Smrg PATH_SEPARATOR=: 6311fb23d3a8Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6312fb23d3a8Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6313fb23d3a8Smrg PATH_SEPARATOR=';' 6314fb23d3a8Smrg } 631564ce7165Smrgfi 631664ce7165Smrg 631764ce7165Smrg# Support unset when possible. 631864ce7165Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 631964ce7165Smrg as_unset=unset 632064ce7165Smrgelse 632164ce7165Smrg as_unset=false 632264ce7165Smrgfi 632364ce7165Smrg 632464ce7165Smrg 632564ce7165Smrg# IFS 632664ce7165Smrg# We need space, tab and new line, in precisely that order. Quoting is 632764ce7165Smrg# there to prevent editors from complaining about space-tab. 632864ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 632964ce7165Smrg# splitting by setting IFS to empty value.) 633064ce7165SmrgIFS=" "" $as_nl" 633164ce7165Smrg 633264ce7165Smrg# Find who we are. Look in the path if we contain no directory separator. 633364ce7165Smrgcase $0 in 633464ce7165Smrg *[\\/]* ) as_myself=$0 ;; 633564ce7165Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 633664ce7165Smrgfor as_dir in $PATH 633764ce7165Smrgdo 633864ce7165Smrg IFS=$as_save_IFS 633964ce7165Smrg test -z "$as_dir" && as_dir=. 634064ce7165Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 634164ce7165Smrgdone 634264ce7165SmrgIFS=$as_save_IFS 634364ce7165Smrg 634464ce7165Smrg ;; 634564ce7165Smrgesac 634664ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 634764ce7165Smrg# in which case we are not to be found in the path. 634864ce7165Smrgif test "x$as_myself" = x; then 634964ce7165Smrg as_myself=$0 635064ce7165Smrgfi 635164ce7165Smrgif test ! -f "$as_myself"; then 6352fb23d3a8Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 635364ce7165Smrg { (exit 1); exit 1; } 635464ce7165Smrgfi 635564ce7165Smrg 635664ce7165Smrg# Work around bugs in pre-3.0 UWIN ksh. 635764ce7165Smrgfor as_var in ENV MAIL MAILPATH 635864ce7165Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 635964ce7165Smrgdone 636064ce7165SmrgPS1='$ ' 636164ce7165SmrgPS2='> ' 636264ce7165SmrgPS4='+ ' 636364ce7165Smrg 636464ce7165Smrg# NLS nuisances. 6365fb23d3a8SmrgLC_ALL=C 6366fb23d3a8Smrgexport LC_ALL 6367fb23d3a8SmrgLANGUAGE=C 6368fb23d3a8Smrgexport LANGUAGE 636964ce7165Smrg 637064ce7165Smrg# Required to use basename. 637164ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 637264ce7165Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 637364ce7165Smrg as_expr=expr 637464ce7165Smrgelse 637564ce7165Smrg as_expr=false 637664ce7165Smrgfi 637764ce7165Smrg 637864ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 637964ce7165Smrg as_basename=basename 638064ce7165Smrgelse 638164ce7165Smrg as_basename=false 638264ce7165Smrgfi 638364ce7165Smrg 638464ce7165Smrg 638564ce7165Smrg# Name of the executable. 638664ce7165Smrgas_me=`$as_basename -- "$0" || 638764ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 638864ce7165Smrg X"$0" : 'X\(//\)$' \| \ 638964ce7165Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 6390fb23d3a8Smrg$as_echo X/"$0" | 639164ce7165Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 639264ce7165Smrg s//\1/ 639364ce7165Smrg q 639464ce7165Smrg } 639564ce7165Smrg /^X\/\(\/\/\)$/{ 639664ce7165Smrg s//\1/ 639764ce7165Smrg q 639864ce7165Smrg } 639964ce7165Smrg /^X\/\(\/\).*/{ 640064ce7165Smrg s//\1/ 640164ce7165Smrg q 640264ce7165Smrg } 640364ce7165Smrg s/.*/./; q'` 640464ce7165Smrg 640564ce7165Smrg# CDPATH. 640664ce7165Smrg$as_unset CDPATH 640764ce7165Smrg 640864ce7165Smrg 640964ce7165Smrg 641064ce7165Smrg as_lineno_1=$LINENO 641164ce7165Smrg as_lineno_2=$LINENO 641264ce7165Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 641364ce7165Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 641464ce7165Smrg 641564ce7165Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 641664ce7165Smrg # uniformly replaced by the line number. The first 'sed' inserts a 641764ce7165Smrg # line-number line after each line using $LINENO; the second 'sed' 641864ce7165Smrg # does the real work. The second script uses 'N' to pair each 641964ce7165Smrg # line-number line with the line containing $LINENO, and appends 642064ce7165Smrg # trailing '-' during substitution so that $LINENO is not a special 642164ce7165Smrg # case at line end. 642264ce7165Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 642364ce7165Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 642464ce7165Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 642564ce7165Smrg sed -n ' 642664ce7165Smrg p 642764ce7165Smrg /[$]LINENO/= 642864ce7165Smrg ' <$as_myself | 642964ce7165Smrg sed ' 643064ce7165Smrg s/[$]LINENO.*/&-/ 643164ce7165Smrg t lineno 643264ce7165Smrg b 643364ce7165Smrg :lineno 643464ce7165Smrg N 643564ce7165Smrg :loop 643664ce7165Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 643764ce7165Smrg t loop 643864ce7165Smrg s/-\n.*// 643964ce7165Smrg ' >$as_me.lineno && 644064ce7165Smrg chmod +x "$as_me.lineno" || 6441fb23d3a8Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 644264ce7165Smrg { (exit 1); exit 1; }; } 644364ce7165Smrg 644464ce7165Smrg # Don't try to exec as it changes $[0], causing all sort of problems 644564ce7165Smrg # (the dirname of $[0] is not the place where we might find the 644664ce7165Smrg # original and so on. Autoconf is especially sensitive to this). 644764ce7165Smrg . "./$as_me.lineno" 644864ce7165Smrg # Exit status is that of the last command. 644964ce7165Smrg exit 645064ce7165Smrg} 645164ce7165Smrg 645264ce7165Smrg 645364ce7165Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 645464ce7165Smrg as_dirname=dirname 645564ce7165Smrgelse 645664ce7165Smrg as_dirname=false 645764ce7165Smrgfi 645864ce7165Smrg 645964ce7165SmrgECHO_C= ECHO_N= ECHO_T= 646064ce7165Smrgcase `echo -n x` in 646164ce7165Smrg-n*) 646264ce7165Smrg case `echo 'x\c'` in 646364ce7165Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 646464ce7165Smrg *) ECHO_C='\c';; 646564ce7165Smrg esac;; 646664ce7165Smrg*) 646764ce7165Smrg ECHO_N='-n';; 646864ce7165Smrgesac 646964ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 647064ce7165Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 647164ce7165Smrg as_expr=expr 647264ce7165Smrgelse 647364ce7165Smrg as_expr=false 647464ce7165Smrgfi 647564ce7165Smrg 647664ce7165Smrgrm -f conf$$ conf$$.exe conf$$.file 647764ce7165Smrgif test -d conf$$.dir; then 647864ce7165Smrg rm -f conf$$.dir/conf$$.file 647964ce7165Smrgelse 648064ce7165Smrg rm -f conf$$.dir 6481fb23d3a8Smrg mkdir conf$$.dir 2>/dev/null 6482fb23d3a8Smrgfi 6483fb23d3a8Smrgif (echo >conf$$.file) 2>/dev/null; then 6484fb23d3a8Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 6485fb23d3a8Smrg as_ln_s='ln -s' 6486fb23d3a8Smrg # ... but there are two gotchas: 6487fb23d3a8Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6488fb23d3a8Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6489fb23d3a8Smrg # In both cases, we have to default to `cp -p'. 6490fb23d3a8Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6491fb23d3a8Smrg as_ln_s='cp -p' 6492fb23d3a8Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 6493fb23d3a8Smrg as_ln_s=ln 6494fb23d3a8Smrg else 649564ce7165Smrg as_ln_s='cp -p' 6496fb23d3a8Smrg fi 649764ce7165Smrgelse 649864ce7165Smrg as_ln_s='cp -p' 649964ce7165Smrgfi 650064ce7165Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 650164ce7165Smrgrmdir conf$$.dir 2>/dev/null 650264ce7165Smrg 650364ce7165Smrgif mkdir -p . 2>/dev/null; then 650464ce7165Smrg as_mkdir_p=: 650564ce7165Smrgelse 650664ce7165Smrg test -d ./-p && rmdir ./-p 650764ce7165Smrg as_mkdir_p=false 650864ce7165Smrgfi 650964ce7165Smrg 651064ce7165Smrgif test -x / >/dev/null 2>&1; then 651164ce7165Smrg as_test_x='test -x' 651264ce7165Smrgelse 651364ce7165Smrg if ls -dL / >/dev/null 2>&1; then 651464ce7165Smrg as_ls_L_option=L 651564ce7165Smrg else 651664ce7165Smrg as_ls_L_option= 651764ce7165Smrg fi 651864ce7165Smrg as_test_x=' 651964ce7165Smrg eval sh -c '\'' 652064ce7165Smrg if test -d "$1"; then 6521fb23d3a8Smrg test -d "$1/."; 652264ce7165Smrg else 652364ce7165Smrg case $1 in 6524fb23d3a8Smrg -*)set "./$1";; 652564ce7165Smrg esac; 652664ce7165Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 652764ce7165Smrg ???[sx]*):;;*)false;;esac;fi 652864ce7165Smrg '\'' sh 652964ce7165Smrg ' 653064ce7165Smrgfi 653164ce7165Smrgas_executable_p=$as_test_x 653264ce7165Smrg 653364ce7165Smrg# Sed expression to map a string onto a valid CPP name. 653464ce7165Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 653564ce7165Smrg 653664ce7165Smrg# Sed expression to map a string onto a valid variable name. 653764ce7165Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 653864ce7165Smrg 653964ce7165Smrg 654064ce7165Smrgexec 6>&1 654164ce7165Smrg 654264ce7165Smrg# Save the log message, to keep $[0] and so on meaningful, and to 654364ce7165Smrg# report actual input values of CONFIG_FILES etc. instead of their 654464ce7165Smrg# values after options handling. 654564ce7165Smrgac_log=" 6546fb23d3a8SmrgThis file was extended by xhost $as_me 1.0.3, which was 6547fb23d3a8Smrggenerated by GNU Autoconf 2.63. Invocation command line was 654864ce7165Smrg 654964ce7165Smrg CONFIG_FILES = $CONFIG_FILES 655064ce7165Smrg CONFIG_HEADERS = $CONFIG_HEADERS 655164ce7165Smrg CONFIG_LINKS = $CONFIG_LINKS 655264ce7165Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 655364ce7165Smrg $ $0 $@ 655464ce7165Smrg 655564ce7165Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 655664ce7165Smrg" 655764ce7165Smrg 655864ce7165Smrg_ACEOF 655964ce7165Smrg 6560fb23d3a8Smrgcase $ac_config_files in *" 6561fb23d3a8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 6562fb23d3a8Smrgesac 6563fb23d3a8Smrg 6564fb23d3a8Smrgcase $ac_config_headers in *" 6565fb23d3a8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6566fb23d3a8Smrgesac 6567fb23d3a8Smrg 6568fb23d3a8Smrg 6569fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 657064ce7165Smrg# Files that config.status was made for. 657164ce7165Smrgconfig_files="$ac_config_files" 657264ce7165Smrgconfig_headers="$ac_config_headers" 657364ce7165Smrgconfig_commands="$ac_config_commands" 657464ce7165Smrg 657564ce7165Smrg_ACEOF 657664ce7165Smrg 6577fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 657864ce7165Smrgac_cs_usage="\ 657964ce7165Smrg\`$as_me' instantiates files from templates according to the 658064ce7165Smrgcurrent configuration. 658164ce7165Smrg 6582fb23d3a8SmrgUsage: $0 [OPTION]... [FILE]... 658364ce7165Smrg 658464ce7165Smrg -h, --help print this help, then exit 658564ce7165Smrg -V, --version print version number and configuration settings, then exit 6586fb23d3a8Smrg -q, --quiet, --silent 6587fb23d3a8Smrg do not print progress messages 658864ce7165Smrg -d, --debug don't remove temporary files 658964ce7165Smrg --recheck update $as_me by reconfiguring in the same conditions 6590fb23d3a8Smrg --file=FILE[:TEMPLATE] 6591fb23d3a8Smrg instantiate the configuration file FILE 6592fb23d3a8Smrg --header=FILE[:TEMPLATE] 6593fb23d3a8Smrg instantiate the configuration header FILE 659464ce7165Smrg 659564ce7165SmrgConfiguration files: 659664ce7165Smrg$config_files 659764ce7165Smrg 659864ce7165SmrgConfiguration headers: 659964ce7165Smrg$config_headers 660064ce7165Smrg 660164ce7165SmrgConfiguration commands: 660264ce7165Smrg$config_commands 660364ce7165Smrg 660464ce7165SmrgReport bugs to <bug-autoconf@gnu.org>." 660564ce7165Smrg 660664ce7165Smrg_ACEOF 6607fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 660864ce7165Smrgac_cs_version="\\ 6609fb23d3a8Smrgxhost config.status 1.0.3 6610fb23d3a8Smrgconfigured by $0, generated by GNU Autoconf 2.63, 6611fb23d3a8Smrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 661264ce7165Smrg 6613fb23d3a8SmrgCopyright (C) 2008 Free Software Foundation, Inc. 661464ce7165SmrgThis config.status script is free software; the Free Software Foundation 661564ce7165Smrggives unlimited permission to copy, distribute and modify it." 661664ce7165Smrg 661764ce7165Smrgac_pwd='$ac_pwd' 661864ce7165Smrgsrcdir='$srcdir' 661964ce7165SmrgINSTALL='$INSTALL' 662064ce7165SmrgMKDIR_P='$MKDIR_P' 6621fb23d3a8SmrgAWK='$AWK' 6622fb23d3a8Smrgtest -n "\$AWK" || AWK=awk 662364ce7165Smrg_ACEOF 662464ce7165Smrg 6625fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6626fb23d3a8Smrg# The default lists apply if the user does not specify any file. 662764ce7165Smrgac_need_defaults=: 662864ce7165Smrgwhile test $# != 0 662964ce7165Smrgdo 663064ce7165Smrg case $1 in 663164ce7165Smrg --*=*) 663264ce7165Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 663364ce7165Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 663464ce7165Smrg ac_shift=: 663564ce7165Smrg ;; 663664ce7165Smrg *) 663764ce7165Smrg ac_option=$1 663864ce7165Smrg ac_optarg=$2 663964ce7165Smrg ac_shift=shift 664064ce7165Smrg ;; 664164ce7165Smrg esac 664264ce7165Smrg 664364ce7165Smrg case $ac_option in 664464ce7165Smrg # Handling of the options. 664564ce7165Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 664664ce7165Smrg ac_cs_recheck=: ;; 664764ce7165Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6648fb23d3a8Smrg $as_echo "$ac_cs_version"; exit ;; 664964ce7165Smrg --debug | --debu | --deb | --de | --d | -d ) 665064ce7165Smrg debug=: ;; 665164ce7165Smrg --file | --fil | --fi | --f ) 665264ce7165Smrg $ac_shift 6653fb23d3a8Smrg case $ac_optarg in 6654fb23d3a8Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6655fb23d3a8Smrg esac 6656fb23d3a8Smrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 665764ce7165Smrg ac_need_defaults=false;; 665864ce7165Smrg --header | --heade | --head | --hea ) 665964ce7165Smrg $ac_shift 6660fb23d3a8Smrg case $ac_optarg in 6661fb23d3a8Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6662fb23d3a8Smrg esac 6663fb23d3a8Smrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 666464ce7165Smrg ac_need_defaults=false;; 666564ce7165Smrg --he | --h) 666664ce7165Smrg # Conflict between --help and --header 6667fb23d3a8Smrg { $as_echo "$as_me: error: ambiguous option: $1 666864ce7165SmrgTry \`$0 --help' for more information." >&2 666964ce7165Smrg { (exit 1); exit 1; }; };; 667064ce7165Smrg --help | --hel | -h ) 6671fb23d3a8Smrg $as_echo "$ac_cs_usage"; exit ;; 667264ce7165Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 667364ce7165Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 667464ce7165Smrg ac_cs_silent=: ;; 667564ce7165Smrg 667664ce7165Smrg # This is an error. 6677fb23d3a8Smrg -*) { $as_echo "$as_me: error: unrecognized option: $1 667864ce7165SmrgTry \`$0 --help' for more information." >&2 667964ce7165Smrg { (exit 1); exit 1; }; } ;; 668064ce7165Smrg 668164ce7165Smrg *) ac_config_targets="$ac_config_targets $1" 668264ce7165Smrg ac_need_defaults=false ;; 668364ce7165Smrg 668464ce7165Smrg esac 668564ce7165Smrg shift 668664ce7165Smrgdone 668764ce7165Smrg 668864ce7165Smrgac_configure_extra_args= 668964ce7165Smrg 669064ce7165Smrgif $ac_cs_silent; then 669164ce7165Smrg exec 6>/dev/null 669264ce7165Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 669364ce7165Smrgfi 669464ce7165Smrg 669564ce7165Smrg_ACEOF 6696fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 669764ce7165Smrgif \$ac_cs_recheck; then 6698fb23d3a8Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6699fb23d3a8Smrg shift 6700fb23d3a8Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6701fb23d3a8Smrg CONFIG_SHELL='$SHELL' 670264ce7165Smrg export CONFIG_SHELL 6703fb23d3a8Smrg exec "\$@" 670464ce7165Smrgfi 670564ce7165Smrg 670664ce7165Smrg_ACEOF 6707fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 670864ce7165Smrgexec 5>>config.log 670964ce7165Smrg{ 671064ce7165Smrg echo 671164ce7165Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 671264ce7165Smrg## Running $as_me. ## 671364ce7165Smrg_ASBOX 6714fb23d3a8Smrg $as_echo "$ac_log" 671564ce7165Smrg} >&5 671664ce7165Smrg 671764ce7165Smrg_ACEOF 6718fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 671964ce7165Smrg# 672064ce7165Smrg# INIT-COMMANDS 672164ce7165Smrg# 672264ce7165SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 672364ce7165Smrg 672464ce7165Smrg_ACEOF 672564ce7165Smrg 6726fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 672764ce7165Smrg 672864ce7165Smrg# Handling of arguments. 672964ce7165Smrgfor ac_config_target in $ac_config_targets 673064ce7165Smrgdo 673164ce7165Smrg case $ac_config_target in 673264ce7165Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 673364ce7165Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 673464ce7165Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 673564ce7165Smrg 6736fb23d3a8Smrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6737fb23d3a8Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 673864ce7165Smrg { (exit 1); exit 1; }; };; 673964ce7165Smrg esac 674064ce7165Smrgdone 674164ce7165Smrg 674264ce7165Smrg 674364ce7165Smrg# If the user did not use the arguments to specify the items to instantiate, 674464ce7165Smrg# then the envvar interface is used. Set only those that are not. 674564ce7165Smrg# We use the long form for the default assignment because of an extremely 674664ce7165Smrg# bizarre bug on SunOS 4.1.3. 674764ce7165Smrgif $ac_need_defaults; then 674864ce7165Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 674964ce7165Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 675064ce7165Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 675164ce7165Smrgfi 675264ce7165Smrg 675364ce7165Smrg# Have a temporary directory for convenience. Make it in the build tree 675464ce7165Smrg# simply because there is no reason against having it here, and in addition, 675564ce7165Smrg# creating and moving files from /tmp can sometimes cause problems. 675664ce7165Smrg# Hook for its removal unless debugging. 675764ce7165Smrg# Note that there is a small window in which the directory will not be cleaned: 675864ce7165Smrg# after its creation but before its name has been assigned to `$tmp'. 675964ce7165Smrg$debug || 676064ce7165Smrg{ 676164ce7165Smrg tmp= 676264ce7165Smrg trap 'exit_status=$? 676364ce7165Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 676464ce7165Smrg' 0 676564ce7165Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 676664ce7165Smrg} 676764ce7165Smrg# Create a (secure) tmp directory for tmp files. 676864ce7165Smrg 676964ce7165Smrg{ 677064ce7165Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 677164ce7165Smrg test -n "$tmp" && test -d "$tmp" 677264ce7165Smrg} || 677364ce7165Smrg{ 677464ce7165Smrg tmp=./conf$$-$RANDOM 677564ce7165Smrg (umask 077 && mkdir "$tmp") 677664ce7165Smrg} || 677764ce7165Smrg{ 6778fb23d3a8Smrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 677964ce7165Smrg { (exit 1); exit 1; } 678064ce7165Smrg} 678164ce7165Smrg 6782fb23d3a8Smrg# Set up the scripts for CONFIG_FILES section. 6783fb23d3a8Smrg# No need to generate them if there are no CONFIG_FILES. 6784fb23d3a8Smrg# This happens for instance with `./config.status config.h'. 678564ce7165Smrgif test -n "$CONFIG_FILES"; then 678664ce7165Smrg 678764ce7165Smrg 6788fb23d3a8Smrgac_cr=' 6789fb23d3a8Smrg' 6790fb23d3a8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6791fb23d3a8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6792fb23d3a8Smrg ac_cs_awk_cr='\\r' 6793fb23d3a8Smrgelse 679464ce7165Smrg ac_cs_awk_cr=$ac_cr 679564ce7165Smrgfi 6796fb23d3a8Smrg 679764ce7165Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 679864ce7165Smrg_ACEOF 679964ce7165Smrg 6800fb23d3a8Smrg 6801fb23d3a8Smrg{ 6802fb23d3a8Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 6803fb23d3a8Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6804fb23d3a8Smrg echo "_ACEOF" 6805fb23d3a8Smrg} >conf$$subs.sh || 6806fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6807fb23d3a8Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6808fb23d3a8Smrg { (exit 1); exit 1; }; } 680964ce7165Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 681064ce7165Smrgac_delim='%!_!# ' 6811fb23d3a8Smrgfor ac_last_try in false false false false false :; do 6812fb23d3a8Smrg . ./conf$$subs.sh || 6813fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6814fb23d3a8Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 681564ce7165Smrg { (exit 1); exit 1; }; } 6816fb23d3a8Smrg 6817fb23d3a8Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 681864ce7165Smrg if test $ac_delim_n = $ac_delim_num; then 681964ce7165Smrg break 6820fb23d3a8Smrg elif $ac_last_try; then 6821fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 682264ce7165Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 682364ce7165Smrg { (exit 1); exit 1; }; } 682464ce7165Smrg else 682564ce7165Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 682664ce7165Smrg fi 6827fb23d3a8Smrgdone 682864ce7165Smrgrm -f conf$$subs.sh 6829fb23d3a8Smrg 6830fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6831fb23d3a8Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6832fb23d3a8Smrg_ACEOF 6833fb23d3a8Smrgsed -n ' 6834fb23d3a8Smrgh 6835fb23d3a8Smrgs/^/S["/; s/!.*/"]=/ 6836fb23d3a8Smrgp 6837fb23d3a8Smrgg 6838fb23d3a8Smrgs/^[^!]*!// 6839fb23d3a8Smrg:repl 6840fb23d3a8Smrgt repl 6841fb23d3a8Smrgs/'"$ac_delim"'$// 6842fb23d3a8Smrgt delim 6843fb23d3a8Smrg:nl 6844fb23d3a8Smrgh 6845fb23d3a8Smrgs/\(.\{148\}\).*/\1/ 6846fb23d3a8Smrgt more1 6847fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6848fb23d3a8Smrgp 6849fb23d3a8Smrgn 6850fb23d3a8Smrgb repl 6851fb23d3a8Smrg:more1 6852fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6853fb23d3a8Smrgp 6854fb23d3a8Smrgg 6855fb23d3a8Smrgs/.\{148\}// 6856fb23d3a8Smrgt nl 6857fb23d3a8Smrg:delim 6858fb23d3a8Smrgh 6859fb23d3a8Smrgs/\(.\{148\}\).*/\1/ 6860fb23d3a8Smrgt more2 6861fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6862fb23d3a8Smrgp 6863fb23d3a8Smrgb 6864fb23d3a8Smrg:more2 6865fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6866fb23d3a8Smrgp 6867fb23d3a8Smrgg 6868fb23d3a8Smrgs/.\{148\}// 6869fb23d3a8Smrgt delim 6870fb23d3a8Smrg' <conf$$subs.awk | sed ' 6871fb23d3a8Smrg/^[^""]/{ 6872fb23d3a8Smrg N 6873fb23d3a8Smrg s/\n// 6874fb23d3a8Smrg} 6875fb23d3a8Smrg' >>$CONFIG_STATUS || ac_write_fail=1 6876fb23d3a8Smrgrm -f conf$$subs.awk 6877fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6878fb23d3a8Smrg_ACAWK 6879fb23d3a8Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 6880fb23d3a8Smrg for (key in S) S_is_set[key] = 1 6881fb23d3a8Smrg FS = "" 6882fb23d3a8Smrg 6883fb23d3a8Smrg} 6884fb23d3a8Smrg{ 6885fb23d3a8Smrg line = $ 0 6886fb23d3a8Smrg nfields = split(line, field, "@") 6887fb23d3a8Smrg substed = 0 6888fb23d3a8Smrg len = length(field[1]) 6889fb23d3a8Smrg for (i = 2; i < nfields; i++) { 6890fb23d3a8Smrg key = field[i] 6891fb23d3a8Smrg keylen = length(key) 6892fb23d3a8Smrg if (S_is_set[key]) { 6893fb23d3a8Smrg value = S[key] 6894fb23d3a8Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6895fb23d3a8Smrg len += length(value) + length(field[++i]) 6896fb23d3a8Smrg substed = 1 6897fb23d3a8Smrg } else 6898fb23d3a8Smrg len += 1 + keylen 6899fb23d3a8Smrg } 6900fb23d3a8Smrg 6901fb23d3a8Smrg print line 690264ce7165Smrg} 6903fb23d3a8Smrg 690464ce7165Smrg_ACAWK 6905fb23d3a8Smrg_ACEOF 6906fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6907fb23d3a8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6908fb23d3a8Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6909fb23d3a8Smrgelse 6910fb23d3a8Smrg cat 6911fb23d3a8Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6912fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 6913fb23d3a8Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 691464ce7165Smrg { (exit 1); exit 1; }; } 691564ce7165Smrg_ACEOF 691664ce7165Smrg 691764ce7165Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 691864ce7165Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 691964ce7165Smrg# trailing colons and then remove the whole line if VPATH becomes empty 692064ce7165Smrg# (actually we leave an empty line to preserve line numbers). 692164ce7165Smrgif test "x$srcdir" = x.; then 692264ce7165Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 692364ce7165Smrgs/:*\$(srcdir):*/:/ 692464ce7165Smrgs/:*\${srcdir}:*/:/ 692564ce7165Smrgs/:*@srcdir@:*/:/ 692664ce7165Smrgs/^\([^=]*=[ ]*\):*/\1/ 692764ce7165Smrgs/:*$// 692864ce7165Smrgs/^[^=]*=[ ]*$// 692964ce7165Smrg}' 693064ce7165Smrgfi 6931fb23d3a8Smrg 693264ce7165Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 693364ce7165Smrgfi # test -n "$CONFIG_FILES" 6934fb23d3a8Smrg 6935fb23d3a8Smrg# Set up the scripts for CONFIG_HEADERS section. 6936fb23d3a8Smrg# No need to generate them if there are no CONFIG_HEADERS. 6937fb23d3a8Smrg# This happens for instance with `./config.status Makefile'. 6938fb23d3a8Smrgif test -n "$CONFIG_HEADERS"; then 6939fb23d3a8Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 6940fb23d3a8SmrgBEGIN { 6941fb23d3a8Smrg_ACEOF 6942fb23d3a8Smrg 6943fb23d3a8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6944fb23d3a8Smrg# here-document in config.status, that substitutes the proper values into 6945fb23d3a8Smrg# config.h.in to produce config.h. 6946fb23d3a8Smrg 6947fb23d3a8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 6948fb23d3a8Smrg# handling of long lines. 6949fb23d3a8Smrgac_delim='%!_!# ' 6950fb23d3a8Smrgfor ac_last_try in false false :; do 6951fb23d3a8Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6952fb23d3a8Smrg if test -z "$ac_t"; then 6953fb23d3a8Smrg break 6954fb23d3a8Smrg elif $ac_last_try; then 6955fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 6956fb23d3a8Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 6957fb23d3a8Smrg { (exit 1); exit 1; }; } 6958fb23d3a8Smrg else 6959fb23d3a8Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6960fb23d3a8Smrg fi 6961fb23d3a8Smrgdone 6962fb23d3a8Smrg 6963fb23d3a8Smrg# For the awk script, D is an array of macro values keyed by name, 6964fb23d3a8Smrg# likewise P contains macro parameters if any. Preserve backslash 6965fb23d3a8Smrg# newline sequences. 6966fb23d3a8Smrg 6967fb23d3a8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6968fb23d3a8Smrgsed -n ' 6969fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g 6970fb23d3a8Smrgt rset 6971fb23d3a8Smrg:rset 6972fb23d3a8Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6973fb23d3a8Smrgt def 6974fb23d3a8Smrgd 6975fb23d3a8Smrg:def 6976fb23d3a8Smrgs/\\$// 6977fb23d3a8Smrgt bsnl 6978fb23d3a8Smrgs/["\\]/\\&/g 6979fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6980fb23d3a8SmrgD["\1"]=" \3"/p 6981fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6982fb23d3a8Smrgd 6983fb23d3a8Smrg:bsnl 6984fb23d3a8Smrgs/["\\]/\\&/g 6985fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6986fb23d3a8SmrgD["\1"]=" \3\\\\\\n"\\/p 6987fb23d3a8Smrgt cont 6988fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6989fb23d3a8Smrgt cont 6990fb23d3a8Smrgd 6991fb23d3a8Smrg:cont 6992fb23d3a8Smrgn 6993fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g 6994fb23d3a8Smrgt clear 6995fb23d3a8Smrg:clear 6996fb23d3a8Smrgs/\\$// 6997fb23d3a8Smrgt bsnlc 6998fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6999fb23d3a8Smrgd 7000fb23d3a8Smrg:bsnlc 7001fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7002fb23d3a8Smrgb cont 7003fb23d3a8Smrg' <confdefs.h | sed ' 7004fb23d3a8Smrgs/'"$ac_delim"'/"\\\ 7005fb23d3a8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 7006fb23d3a8Smrg 7007fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7008fb23d3a8Smrg for (key in D) D_is_set[key] = 1 7009fb23d3a8Smrg FS = "" 7010fb23d3a8Smrg} 7011fb23d3a8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7012fb23d3a8Smrg line = \$ 0 7013fb23d3a8Smrg split(line, arg, " ") 7014fb23d3a8Smrg if (arg[1] == "#") { 7015fb23d3a8Smrg defundef = arg[2] 7016fb23d3a8Smrg mac1 = arg[3] 7017fb23d3a8Smrg } else { 7018fb23d3a8Smrg defundef = substr(arg[1], 2) 7019fb23d3a8Smrg mac1 = arg[2] 7020fb23d3a8Smrg } 7021fb23d3a8Smrg split(mac1, mac2, "(") #) 7022fb23d3a8Smrg macro = mac2[1] 7023fb23d3a8Smrg prefix = substr(line, 1, index(line, defundef) - 1) 7024fb23d3a8Smrg if (D_is_set[macro]) { 7025fb23d3a8Smrg # Preserve the white space surrounding the "#". 7026fb23d3a8Smrg print prefix "define", macro P[macro] D[macro] 7027fb23d3a8Smrg next 7028fb23d3a8Smrg } else { 7029fb23d3a8Smrg # Replace #undef with comments. This is necessary, for example, 7030fb23d3a8Smrg # in the case of _POSIX_SOURCE, which is predefined and required 7031fb23d3a8Smrg # on some systems where configure will not decide to define it. 7032fb23d3a8Smrg if (defundef == "undef") { 7033fb23d3a8Smrg print "/*", prefix defundef, macro, "*/" 7034fb23d3a8Smrg next 7035fb23d3a8Smrg } 7036fb23d3a8Smrg } 7037fb23d3a8Smrg} 7038fb23d3a8Smrg{ print } 7039fb23d3a8Smrg_ACAWK 7040fb23d3a8Smrg_ACEOF 7041fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7042fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 7043fb23d3a8Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 7044fb23d3a8Smrg { (exit 1); exit 1; }; } 7045fb23d3a8Smrgfi # test -n "$CONFIG_HEADERS" 704664ce7165Smrg 7047fb23d3a8Smrg 7048fb23d3a8Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7049fb23d3a8Smrgshift 705064ce7165Smrgfor ac_tag 705164ce7165Smrgdo 705264ce7165Smrg case $ac_tag in 705364ce7165Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 705464ce7165Smrg esac 705564ce7165Smrg case $ac_mode$ac_tag in 7056fb23d3a8Smrg :[FHL]*:*);; 7057fb23d3a8Smrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 705864ce7165Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 705964ce7165Smrg { (exit 1); exit 1; }; };; 706064ce7165Smrg :[FH]-) ac_tag=-:-;; 706164ce7165Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 706264ce7165Smrg esac 706364ce7165Smrg ac_save_IFS=$IFS 706464ce7165Smrg IFS=: 706564ce7165Smrg set x $ac_tag 706664ce7165Smrg IFS=$ac_save_IFS 706764ce7165Smrg shift 706864ce7165Smrg ac_file=$1 706964ce7165Smrg shift 707064ce7165Smrg 707164ce7165Smrg case $ac_mode in 707264ce7165Smrg :L) ac_source=$1;; 707364ce7165Smrg :[FH]) 707464ce7165Smrg ac_file_inputs= 707564ce7165Smrg for ac_f 707664ce7165Smrg do 707764ce7165Smrg case $ac_f in 707864ce7165Smrg -) ac_f="$tmp/stdin";; 707964ce7165Smrg *) # Look for the file first in the build tree, then in the source tree 708064ce7165Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 708164ce7165Smrg # because $ac_f cannot contain `:'. 708264ce7165Smrg test -f "$ac_f" || 708364ce7165Smrg case $ac_f in 708464ce7165Smrg [\\/$]*) false;; 708564ce7165Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7086fb23d3a8Smrg esac || 7087fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 708864ce7165Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 708964ce7165Smrg { (exit 1); exit 1; }; };; 7090fb23d3a8Smrg esac 7091fb23d3a8Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 709264ce7165Smrg ac_file_inputs="$ac_file_inputs '$ac_f'" 709364ce7165Smrg done 709464ce7165Smrg 709564ce7165Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 709664ce7165Smrg # use $as_me), people would be surprised to read: 7097fb23d3a8Smrg # /* config.h. Generated by config.status. */ 7098fb23d3a8Smrg configure_input='Generated from '` 7099fb23d3a8Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 710064ce7165Smrg `' by configure.' 710164ce7165Smrg if test x"$ac_file" != x-; then 7102fb23d3a8Smrg configure_input="$ac_file. $configure_input" 7103fb23d3a8Smrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 710464ce7165Smrg$as_echo "$as_me: creating $ac_file" >&6;} 7105fb23d3a8Smrg fi 7106fb23d3a8Smrg # Neutralize special characters interpreted by sed in replacement strings. 7107fb23d3a8Smrg case $configure_input in #( 7108fb23d3a8Smrg *\&* | *\|* | *\\* ) 7109fb23d3a8Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 7110fb23d3a8Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 7111fb23d3a8Smrg *) ac_sed_conf_input=$configure_input;; 711264ce7165Smrg esac 711364ce7165Smrg 7114fb23d3a8Smrg case $ac_tag in 7115fb23d3a8Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 7116fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7117fb23d3a8Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 711864ce7165Smrg { (exit 1); exit 1; }; } ;; 711964ce7165Smrg esac 712064ce7165Smrg ;; 712164ce7165Smrg esac 712264ce7165Smrg 712364ce7165Smrg ac_dir=`$as_dirname -- "$ac_file" || 712464ce7165Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712564ce7165Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 712664ce7165Smrg X"$ac_file" : 'X\(//\)$' \| \ 7127fb23d3a8Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 712864ce7165Smrg$as_echo X"$ac_file" | 712964ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 713064ce7165Smrg s//\1/ 713164ce7165Smrg q 713264ce7165Smrg } 713364ce7165Smrg /^X\(\/\/\)[^/].*/{ 713464ce7165Smrg s//\1/ 713564ce7165Smrg q 713664ce7165Smrg } 713764ce7165Smrg /^X\(\/\/\)$/{ 713864ce7165Smrg s//\1/ 713964ce7165Smrg q 714064ce7165Smrg } 714164ce7165Smrg /^X\(\/\).*/{ 714264ce7165Smrg s//\1/ 714364ce7165Smrg q 714464ce7165Smrg } 714564ce7165Smrg s/.*/./; q'` 714664ce7165Smrg { as_dir="$ac_dir" 714764ce7165Smrg case $as_dir in #( 714864ce7165Smrg -*) as_dir=./$as_dir;; 714964ce7165Smrg esac 715064ce7165Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 715164ce7165Smrg as_dirs= 715264ce7165Smrg while :; do 7153fb23d3a8Smrg case $as_dir in #( 715464ce7165Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 715564ce7165Smrg *) as_qdir=$as_dir;; 715664ce7165Smrg esac 715764ce7165Smrg as_dirs="'$as_qdir' $as_dirs" 715864ce7165Smrg as_dir=`$as_dirname -- "$as_dir" || 715964ce7165Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 716064ce7165Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 716164ce7165Smrg X"$as_dir" : 'X\(//\)$' \| \ 7162fb23d3a8Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 716364ce7165Smrg$as_echo X"$as_dir" | 716464ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 716564ce7165Smrg s//\1/ 716664ce7165Smrg q 716764ce7165Smrg } 716864ce7165Smrg /^X\(\/\/\)[^/].*/{ 716964ce7165Smrg s//\1/ 717064ce7165Smrg q 717164ce7165Smrg } 717264ce7165Smrg /^X\(\/\/\)$/{ 717364ce7165Smrg s//\1/ 717464ce7165Smrg q 717564ce7165Smrg } 717664ce7165Smrg /^X\(\/\).*/{ 717764ce7165Smrg s//\1/ 717864ce7165Smrg q 717964ce7165Smrg } 718064ce7165Smrg s/.*/./; q'` 718164ce7165Smrg test -d "$as_dir" && break 718264ce7165Smrg done 7183fb23d3a8Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 7184fb23d3a8Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 718564ce7165Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 718664ce7165Smrg { (exit 1); exit 1; }; }; } 718764ce7165Smrg ac_builddir=. 718864ce7165Smrg 718964ce7165Smrgcase "$ac_dir" in 719064ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7191fb23d3a8Smrg*) 719264ce7165Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7193fb23d3a8Smrg # A ".." for each directory in $ac_dir_suffix. 719464ce7165Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 719564ce7165Smrg case $ac_top_builddir_sub in 719664ce7165Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 719764ce7165Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 719864ce7165Smrg esac ;; 719964ce7165Smrgesac 720064ce7165Smrgac_abs_top_builddir=$ac_pwd 720164ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 720264ce7165Smrg# for backward compatibility: 720364ce7165Smrgac_top_builddir=$ac_top_build_prefix 720464ce7165Smrg 720564ce7165Smrgcase $srcdir in 720664ce7165Smrg .) # We are building in place. 720764ce7165Smrg ac_srcdir=. 720864ce7165Smrg ac_top_srcdir=$ac_top_builddir_sub 720964ce7165Smrg ac_abs_top_srcdir=$ac_pwd ;; 721064ce7165Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 721164ce7165Smrg ac_srcdir=$srcdir$ac_dir_suffix; 721264ce7165Smrg ac_top_srcdir=$srcdir 721364ce7165Smrg ac_abs_top_srcdir=$srcdir ;; 721464ce7165Smrg *) # Relative name. 721564ce7165Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 721664ce7165Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 721764ce7165Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 721864ce7165Smrgesac 721964ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 722064ce7165Smrg 722164ce7165Smrg 722264ce7165Smrg case $ac_mode in 722364ce7165Smrg :F) 722464ce7165Smrg # 722564ce7165Smrg # CONFIG_FILE 722664ce7165Smrg # 722764ce7165Smrg 722864ce7165Smrg case $INSTALL in 722964ce7165Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 723064ce7165Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 723164ce7165Smrg esac 723264ce7165Smrg ac_MKDIR_P=$MKDIR_P 723364ce7165Smrg case $MKDIR_P in 723464ce7165Smrg [\\/$]* | ?:[\\/]* ) ;; 723564ce7165Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 723664ce7165Smrg esac 723764ce7165Smrg_ACEOF 7238fb23d3a8Smrg 723964ce7165Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 724064ce7165Smrg# If the template does not know about datarootdir, expand it. 724164ce7165Smrg# FIXME: This hack should be removed a few years after 2.60. 724264ce7165Smrgac_datarootdir_hack=; ac_datarootdir_seen= 7243fb23d3a8Smrg 7244fb23d3a8Smrgac_sed_dataroot=' 724564ce7165Smrg/datarootdir/ { 724664ce7165Smrg p 724764ce7165Smrg q 724864ce7165Smrg} 724964ce7165Smrg/@datadir@/p 725064ce7165Smrg/@docdir@/p 725164ce7165Smrg/@infodir@/p 725264ce7165Smrg/@localedir@/p 7253fb23d3a8Smrg/@mandir@/p 7254fb23d3a8Smrg' 725564ce7165Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 725664ce7165Smrg*datarootdir*) ac_datarootdir_seen=yes;; 7257fb23d3a8Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7258fb23d3a8Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 725964ce7165Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7260fb23d3a8Smrg_ACEOF 726164ce7165Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 726264ce7165Smrg ac_datarootdir_hack=' 726364ce7165Smrg s&@datadir@&$datadir&g 726464ce7165Smrg s&@docdir@&$docdir&g 726564ce7165Smrg s&@infodir@&$infodir&g 726664ce7165Smrg s&@localedir@&$localedir&g 726764ce7165Smrg s&@mandir@&$mandir&g 726864ce7165Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 726964ce7165Smrgesac 727064ce7165Smrg_ACEOF 727164ce7165Smrg 727264ce7165Smrg# Neutralize VPATH when `$srcdir' = `.'. 727364ce7165Smrg# Shell code in configure.ac might set extrasub. 7274fb23d3a8Smrg# FIXME: do we really want to maintain this feature? 7275fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 727664ce7165Smrgac_sed_extra="$ac_vpsub 727764ce7165Smrg$extrasub 7278fb23d3a8Smrg_ACEOF 727964ce7165Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 728064ce7165Smrg:t 7281fb23d3a8Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 728264ce7165Smrgs|@configure_input@|$ac_sed_conf_input|;t t 7283fb23d3a8Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 728464ce7165Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 728564ce7165Smrgs&@srcdir@&$ac_srcdir&;t t 728664ce7165Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 728764ce7165Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 728864ce7165Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 728964ce7165Smrgs&@builddir@&$ac_builddir&;t t 729064ce7165Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 729164ce7165Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 729264ce7165Smrgs&@INSTALL@&$ac_INSTALL&;t t 729364ce7165Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 7294fb23d3a8Smrg$ac_datarootdir_hack 7295fb23d3a8Smrg" 7296fb23d3a8Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 7297fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7298fb23d3a8Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 729964ce7165Smrg { (exit 1); exit 1; }; } 730064ce7165Smrg 730164ce7165Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 730264ce7165Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7303fb23d3a8Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 730464ce7165Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7305fb23d3a8Smrgwhich seems to be undefined. Please make sure it is defined." >&5 730664ce7165Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 730764ce7165Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 730864ce7165Smrg 730964ce7165Smrg rm -f "$tmp/stdin" 7310fb23d3a8Smrg case $ac_file in 7311fb23d3a8Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 7312fb23d3a8Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 7313fb23d3a8Smrg esac \ 7314fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7315fb23d3a8Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 731664ce7165Smrg { (exit 1); exit 1; }; } 731764ce7165Smrg ;; 731864ce7165Smrg :H) 731964ce7165Smrg # 732064ce7165Smrg # CONFIG_HEADER 732164ce7165Smrg # 7322fb23d3a8Smrg if test x"$ac_file" != x-; then 7323fb23d3a8Smrg { 7324fb23d3a8Smrg $as_echo "/* $configure_input */" \ 7325fb23d3a8Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 7326fb23d3a8Smrg } >"$tmp/config.h" \ 7327fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7328fb23d3a8Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 7329fb23d3a8Smrg { (exit 1); exit 1; }; } 7330fb23d3a8Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 7331fb23d3a8Smrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 733264ce7165Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 7333fb23d3a8Smrg else 7334fb23d3a8Smrg rm -f "$ac_file" 7335fb23d3a8Smrg mv "$tmp/config.h" "$ac_file" \ 7336fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7337fb23d3a8Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 733864ce7165Smrg { (exit 1); exit 1; }; } 733964ce7165Smrg fi 7340fb23d3a8Smrg else 7341fb23d3a8Smrg $as_echo "/* $configure_input */" \ 7342fb23d3a8Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 7343fb23d3a8Smrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 7344fb23d3a8Smrg$as_echo "$as_me: error: could not create -" >&2;} 734564ce7165Smrg { (exit 1); exit 1; }; } 7346fb23d3a8Smrg fi 7347fb23d3a8Smrg# Compute "$ac_file"'s index in $config_headers. 734864ce7165Smrg_am_arg="$ac_file" 734964ce7165Smrg_am_stamp_count=1 735064ce7165Smrgfor _am_header in $config_headers :; do 7351fb23d3a8Smrg case $_am_header in 735264ce7165Smrg $_am_arg | $_am_arg:* ) 735364ce7165Smrg break ;; 735464ce7165Smrg * ) 735564ce7165Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 735664ce7165Smrg esac 7357fb23d3a8Smrgdone 7358fb23d3a8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 7359fb23d3a8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7360fb23d3a8Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 7361fb23d3a8Smrg X"$_am_arg" : 'X\(//\)$' \| \ 7362fb23d3a8Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 736364ce7165Smrg$as_echo X"$_am_arg" | 736464ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 736564ce7165Smrg s//\1/ 736664ce7165Smrg q 736764ce7165Smrg } 736864ce7165Smrg /^X\(\/\/\)[^/].*/{ 736964ce7165Smrg s//\1/ 737064ce7165Smrg q 737164ce7165Smrg } 737264ce7165Smrg /^X\(\/\/\)$/{ 737364ce7165Smrg s//\1/ 737464ce7165Smrg q 737564ce7165Smrg } 737664ce7165Smrg /^X\(\/\).*/{ 737764ce7165Smrg s//\1/ 737864ce7165Smrg q 737964ce7165Smrg } 738064ce7165Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 738164ce7165Smrg ;; 7382fb23d3a8Smrg 7383fb23d3a8Smrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 738464ce7165Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 738564ce7165Smrg ;; 738664ce7165Smrg esac 738764ce7165Smrg 738864ce7165Smrg 7389fb23d3a8Smrg case $ac_file$ac_mode in 7390fb23d3a8Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 7391fb23d3a8Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 7392fb23d3a8Smrg # are listed without --file. Let's play safe and only enable the eval 7393fb23d3a8Smrg # if we detect the quoting. 7394fb23d3a8Smrg case $CONFIG_FILES in 7395fb23d3a8Smrg *\'*) eval set x "$CONFIG_FILES" ;; 7396fb23d3a8Smrg *) set x $CONFIG_FILES ;; 7397fb23d3a8Smrg esac 7398fb23d3a8Smrg shift 7399fb23d3a8Smrg for mf 7400fb23d3a8Smrg do 7401fb23d3a8Smrg # Strip MF so we end up with the name of the file. 7402fb23d3a8Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 7403fb23d3a8Smrg # Check whether this is an Automake generated Makefile or not. 7404fb23d3a8Smrg # We used to match only the files named `Makefile.in', but 7405fb23d3a8Smrg # some people rename them; so instead we look at the file content. 7406fb23d3a8Smrg # Grep'ing the first line is not enough: some people post-process 7407fb23d3a8Smrg # each Makefile.in and add a new line on top of each file to say so. 7408fb23d3a8Smrg # Grep'ing the whole file is not good either: AIX grep has a line 7409fb23d3a8Smrg # limit of 2048, but all sed's we know have understand at least 4000. 7410fb23d3a8Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 741164ce7165Smrg dirpart=`$as_dirname -- "$mf" || 741264ce7165Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 741364ce7165Smrg X"$mf" : 'X\(//\)[^/]' \| \ 741464ce7165Smrg X"$mf" : 'X\(//\)$' \| \ 7415fb23d3a8Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 741664ce7165Smrg$as_echo X"$mf" | 741764ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 741864ce7165Smrg s//\1/ 741964ce7165Smrg q 742064ce7165Smrg } 742164ce7165Smrg /^X\(\/\/\)[^/].*/{ 742264ce7165Smrg s//\1/ 742364ce7165Smrg q 742464ce7165Smrg } 742564ce7165Smrg /^X\(\/\/\)$/{ 742664ce7165Smrg s//\1/ 742764ce7165Smrg q 742864ce7165Smrg } 742964ce7165Smrg /^X\(\/\).*/{ 743064ce7165Smrg s//\1/ 743164ce7165Smrg q 743264ce7165Smrg } 7433fb23d3a8Smrg s/.*/./; q'` 7434fb23d3a8Smrg else 7435fb23d3a8Smrg continue 7436fb23d3a8Smrg fi 7437fb23d3a8Smrg # Extract the definition of DEPDIR, am__include, and am__quote 7438fb23d3a8Smrg # from the Makefile without running `make'. 7439fb23d3a8Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7440fb23d3a8Smrg test -z "$DEPDIR" && continue 7441fb23d3a8Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 7442fb23d3a8Smrg test -z "am__include" && continue 7443fb23d3a8Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7444fb23d3a8Smrg # When using ansi2knr, U may be empty or an underscore; expand it 7445fb23d3a8Smrg U=`sed -n 's/^U = //p' < "$mf"` 7446fb23d3a8Smrg # Find all dependency output files, they are included files with 7447fb23d3a8Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 7448fb23d3a8Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 7449fb23d3a8Smrg # expansion. 7450fb23d3a8Smrg for file in `sed -n " 7451fb23d3a8Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7452fb23d3a8Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7453fb23d3a8Smrg # Make sure the directory exists. 7454fb23d3a8Smrg test -f "$dirpart/$file" && continue 745564ce7165Smrg fdir=`$as_dirname -- "$file" || 745664ce7165Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 745764ce7165Smrg X"$file" : 'X\(//\)[^/]' \| \ 745864ce7165Smrg X"$file" : 'X\(//\)$' \| \ 7459fb23d3a8Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 746064ce7165Smrg$as_echo X"$file" | 746164ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 746264ce7165Smrg s//\1/ 746364ce7165Smrg q 746464ce7165Smrg } 746564ce7165Smrg /^X\(\/\/\)[^/].*/{ 746664ce7165Smrg s//\1/ 746764ce7165Smrg q 746864ce7165Smrg } 746964ce7165Smrg /^X\(\/\/\)$/{ 747064ce7165Smrg s//\1/ 747164ce7165Smrg q 747264ce7165Smrg } 747364ce7165Smrg /^X\(\/\).*/{ 747464ce7165Smrg s//\1/ 747564ce7165Smrg q 747664ce7165Smrg } 7477fb23d3a8Smrg s/.*/./; q'` 747864ce7165Smrg { as_dir=$dirpart/$fdir 747964ce7165Smrg case $as_dir in #( 748064ce7165Smrg -*) as_dir=./$as_dir;; 748164ce7165Smrg esac 748264ce7165Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 748364ce7165Smrg as_dirs= 748464ce7165Smrg while :; do 7485fb23d3a8Smrg case $as_dir in #( 748664ce7165Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 748764ce7165Smrg *) as_qdir=$as_dir;; 748864ce7165Smrg esac 748964ce7165Smrg as_dirs="'$as_qdir' $as_dirs" 749064ce7165Smrg as_dir=`$as_dirname -- "$as_dir" || 749164ce7165Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 749264ce7165Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 749364ce7165Smrg X"$as_dir" : 'X\(//\)$' \| \ 7494fb23d3a8Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 749564ce7165Smrg$as_echo X"$as_dir" | 749664ce7165Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 749764ce7165Smrg s//\1/ 749864ce7165Smrg q 749964ce7165Smrg } 750064ce7165Smrg /^X\(\/\/\)[^/].*/{ 750164ce7165Smrg s//\1/ 750264ce7165Smrg q 750364ce7165Smrg } 750464ce7165Smrg /^X\(\/\/\)$/{ 750564ce7165Smrg s//\1/ 750664ce7165Smrg q 750764ce7165Smrg } 750864ce7165Smrg /^X\(\/\).*/{ 750964ce7165Smrg s//\1/ 751064ce7165Smrg q 751164ce7165Smrg } 751264ce7165Smrg s/.*/./; q'` 751364ce7165Smrg test -d "$as_dir" && break 751464ce7165Smrg done 7515fb23d3a8Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 7516fb23d3a8Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 751764ce7165Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 7518fb23d3a8Smrg { (exit 1); exit 1; }; }; } 7519fb23d3a8Smrg # echo "creating $dirpart/$file" 7520fb23d3a8Smrg echo '# dummy' > "$dirpart/$file" 752164ce7165Smrg done 7522fb23d3a8Smrg done 752364ce7165Smrg} 752464ce7165Smrg ;; 752564ce7165Smrg 752664ce7165Smrg esac 752764ce7165Smrgdone # for ac_tag 752864ce7165Smrg 752964ce7165Smrg 753064ce7165Smrg{ (exit 0); exit 0; } 753164ce7165Smrg_ACEOF 753264ce7165Smrgchmod +x $CONFIG_STATUS 753364ce7165Smrgac_clean_files=$ac_clean_files_save 7534fb23d3a8Smrg 7535fb23d3a8Smrgtest $ac_write_fail = 0 || 7536fb23d3a8Smrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 7537fb23d3a8Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 7538fb23d3a8Smrg { (exit 1); exit 1; }; } 753964ce7165Smrg 754064ce7165Smrg 754164ce7165Smrg# configure is writing to config.log, and then calls config.status. 754264ce7165Smrg# config.status does its own redirection, appending to config.log. 754364ce7165Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 754464ce7165Smrg# by configure, so config.status won't be able to write to it; its 754564ce7165Smrg# output is simply discarded. So we exec the FD to /dev/null, 754664ce7165Smrg# effectively closing config.log, so it can be properly (re)opened and 754764ce7165Smrg# appended to by config.status. When coming back to configure, we 754864ce7165Smrg# need to make the FD available again. 754964ce7165Smrgif test "$no_create" != yes; then 755064ce7165Smrg ac_cs_success=: 755164ce7165Smrg ac_config_status_args= 755264ce7165Smrg test "$silent" = yes && 755364ce7165Smrg ac_config_status_args="$ac_config_status_args --quiet" 755464ce7165Smrg exec 5>/dev/null 755564ce7165Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 755664ce7165Smrg exec 5>>config.log 755764ce7165Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 755864ce7165Smrg # would make configure fail if this is the last instruction. 755964ce7165Smrg $ac_cs_success || { (exit 1); exit 1; } 7560fb23d3a8Smrgfi 7561fb23d3a8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7562fb23d3a8Smrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7563fb23d3a8Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 756464ce7165Smrgfi 7565 7566