configure revision 278eca22
133c89af1Smrg#! /bin/sh 233c89af1Smrg# Guess values for system-dependent variables and create Makefiles. 3278eca22Smrg# Generated by GNU Autoconf 2.63 for editres 1.0.4. 433c89af1Smrg# 533c89af1Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 633c89af1Smrg# 733c89af1Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8278eca22Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 933c89af1Smrg# This configure script is free software; the Free Software Foundation 1033c89af1Smrg# gives unlimited permission to copy, distribute and modify it. 1133c89af1Smrg## --------------------- ## 1233c89af1Smrg## M4sh Initialization. ## 1333c89af1Smrg## --------------------- ## 1433c89af1Smrg 15278eca22Smrg# Be more Bourne compatible 16278eca22SmrgDUALCASE=1; export DUALCASE # for MKS sh 1733c89af1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 1833c89af1Smrg emulate sh 1933c89af1Smrg NULLCMD=: 20278eca22Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2133c89af1Smrg # is contrary to our usage. Disable this feature. 2233c89af1Smrg alias -g '${1+"$@"}'='"$@"' 2333c89af1Smrg setopt NO_GLOB_SUBST 2433c89af1Smrgelse 25278eca22Smrg case `(set -o) 2>/dev/null` in 26278eca22Smrg *posix*) set -o posix ;; 27278eca22Smrgesac 28278eca22Smrg 2933c89af1Smrgfi 30278eca22Smrg 31278eca22Smrg 3233c89af1Smrg 3333c89af1Smrg 3433c89af1Smrg# PATH needs CR 3533c89af1Smrg# Avoid depending upon Character Ranges. 3633c89af1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 3733c89af1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3833c89af1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 3933c89af1Smrgas_cr_digits='0123456789' 4033c89af1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4133c89af1Smrg 42278eca22Smrgas_nl=' 43278eca22Smrg' 44278eca22Smrgexport as_nl 45278eca22Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 46278eca22Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47278eca22Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48278eca22Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49278eca22Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50278eca22Smrg as_echo='printf %s\n' 51278eca22Smrg as_echo_n='printf %s' 52278eca22Smrgelse 53278eca22Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54278eca22Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55278eca22Smrg as_echo_n='/usr/ucb/echo -n' 5633c89af1Smrg else 57278eca22Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58278eca22Smrg as_echo_n_body='eval 59278eca22Smrg arg=$1; 60278eca22Smrg case $arg in 61278eca22Smrg *"$as_nl"*) 62278eca22Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63278eca22Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64278eca22Smrg esac; 65278eca22Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66278eca22Smrg ' 67278eca22Smrg export as_echo_n_body 68278eca22Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 6933c89af1Smrg fi 70278eca22Smrg export as_echo_body 71278eca22Smrg as_echo='sh -c $as_echo_body as_echo' 72278eca22Smrgfi 73278eca22Smrg 74278eca22Smrg# The user is always right. 75278eca22Smrgif test "${PATH_SEPARATOR+set}" != set; then 76278eca22Smrg PATH_SEPARATOR=: 77278eca22Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78278eca22Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79278eca22Smrg PATH_SEPARATOR=';' 80278eca22Smrg } 8133c89af1Smrgfi 8233c89af1Smrg 8333c89af1Smrg# Support unset when possible. 8433c89af1Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8533c89af1Smrg as_unset=unset 8633c89af1Smrgelse 8733c89af1Smrg as_unset=false 8833c89af1Smrgfi 8933c89af1Smrg 9033c89af1Smrg 9133c89af1Smrg# IFS 9233c89af1Smrg# We need space, tab and new line, in precisely that order. Quoting is 9333c89af1Smrg# there to prevent editors from complaining about space-tab. 9433c89af1Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9533c89af1Smrg# splitting by setting IFS to empty value.) 9633c89af1SmrgIFS=" "" $as_nl" 9733c89af1Smrg 9833c89af1Smrg# Find who we are. Look in the path if we contain no directory separator. 9933c89af1Smrgcase $0 in 10033c89af1Smrg *[\\/]* ) as_myself=$0 ;; 10133c89af1Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10233c89af1Smrgfor as_dir in $PATH 10333c89af1Smrgdo 10433c89af1Smrg IFS=$as_save_IFS 10533c89af1Smrg test -z "$as_dir" && as_dir=. 10633c89af1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10733c89af1Smrgdone 10833c89af1SmrgIFS=$as_save_IFS 10933c89af1Smrg 11033c89af1Smrg ;; 11133c89af1Smrgesac 11233c89af1Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11333c89af1Smrg# in which case we are not to be found in the path. 11433c89af1Smrgif test "x$as_myself" = x; then 11533c89af1Smrg as_myself=$0 11633c89af1Smrgfi 11733c89af1Smrgif test ! -f "$as_myself"; then 118278eca22Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11933c89af1Smrg { (exit 1); exit 1; } 12033c89af1Smrgfi 12133c89af1Smrg 12233c89af1Smrg# Work around bugs in pre-3.0 UWIN ksh. 12333c89af1Smrgfor as_var in ENV MAIL MAILPATH 12433c89af1Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12533c89af1Smrgdone 12633c89af1SmrgPS1='$ ' 12733c89af1SmrgPS2='> ' 12833c89af1SmrgPS4='+ ' 12933c89af1Smrg 13033c89af1Smrg# NLS nuisances. 131278eca22SmrgLC_ALL=C 132278eca22Smrgexport LC_ALL 133278eca22SmrgLANGUAGE=C 134278eca22Smrgexport LANGUAGE 13533c89af1Smrg 13633c89af1Smrg# Required to use basename. 13733c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 13833c89af1Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 13933c89af1Smrg as_expr=expr 14033c89af1Smrgelse 14133c89af1Smrg as_expr=false 14233c89af1Smrgfi 14333c89af1Smrg 14433c89af1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14533c89af1Smrg as_basename=basename 14633c89af1Smrgelse 14733c89af1Smrg as_basename=false 14833c89af1Smrgfi 14933c89af1Smrg 15033c89af1Smrg 15133c89af1Smrg# Name of the executable. 15233c89af1Smrgas_me=`$as_basename -- "$0" || 15333c89af1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15433c89af1Smrg X"$0" : 'X\(//\)$' \| \ 15533c89af1Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 156278eca22Smrg$as_echo X/"$0" | 15733c89af1Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 15833c89af1Smrg s//\1/ 15933c89af1Smrg q 16033c89af1Smrg } 16133c89af1Smrg /^X\/\(\/\/\)$/{ 16233c89af1Smrg s//\1/ 16333c89af1Smrg q 16433c89af1Smrg } 16533c89af1Smrg /^X\/\(\/\).*/{ 16633c89af1Smrg s//\1/ 16733c89af1Smrg q 16833c89af1Smrg } 16933c89af1Smrg s/.*/./; q'` 17033c89af1Smrg 17133c89af1Smrg# CDPATH. 17233c89af1Smrg$as_unset CDPATH 17333c89af1Smrg 17433c89af1Smrg 17533c89af1Smrgif test "x$CONFIG_SHELL" = x; then 17633c89af1Smrg if (eval ":") 2>/dev/null; then 17733c89af1Smrg as_have_required=yes 17833c89af1Smrgelse 17933c89af1Smrg as_have_required=no 18033c89af1Smrgfi 18133c89af1Smrg 182278eca22Smrg if test $as_have_required = yes && (eval ": 18333c89af1Smrg(as_func_return () { 18433c89af1Smrg (exit \$1) 18533c89af1Smrg} 18633c89af1Smrgas_func_success () { 18733c89af1Smrg as_func_return 0 18833c89af1Smrg} 18933c89af1Smrgas_func_failure () { 19033c89af1Smrg as_func_return 1 19133c89af1Smrg} 19233c89af1Smrgas_func_ret_success () { 19333c89af1Smrg return 0 19433c89af1Smrg} 19533c89af1Smrgas_func_ret_failure () { 19633c89af1Smrg return 1 19733c89af1Smrg} 19833c89af1Smrg 19933c89af1Smrgexitcode=0 20033c89af1Smrgif as_func_success; then 20133c89af1Smrg : 20233c89af1Smrgelse 20333c89af1Smrg exitcode=1 20433c89af1Smrg echo as_func_success failed. 20533c89af1Smrgfi 20633c89af1Smrg 20733c89af1Smrgif as_func_failure; then 20833c89af1Smrg exitcode=1 20933c89af1Smrg echo as_func_failure succeeded. 21033c89af1Smrgfi 21133c89af1Smrg 21233c89af1Smrgif as_func_ret_success; then 21333c89af1Smrg : 21433c89af1Smrgelse 21533c89af1Smrg exitcode=1 21633c89af1Smrg echo as_func_ret_success failed. 21733c89af1Smrgfi 21833c89af1Smrg 21933c89af1Smrgif as_func_ret_failure; then 22033c89af1Smrg exitcode=1 22133c89af1Smrg echo as_func_ret_failure succeeded. 22233c89af1Smrgfi 22333c89af1Smrg 22433c89af1Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 22533c89af1Smrg : 22633c89af1Smrgelse 22733c89af1Smrg exitcode=1 22833c89af1Smrg echo positional parameters were not saved. 22933c89af1Smrgfi 23033c89af1Smrg 23133c89af1Smrgtest \$exitcode = 0) || { (exit 1); exit 1; } 23233c89af1Smrg 23333c89af1Smrg( 23433c89af1Smrg as_lineno_1=\$LINENO 23533c89af1Smrg as_lineno_2=\$LINENO 23633c89af1Smrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 23733c89af1Smrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 23833c89af1Smrg") 2> /dev/null; then 23933c89af1Smrg : 24033c89af1Smrgelse 24133c89af1Smrg as_candidate_shells= 24233c89af1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243278eca22Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 24433c89af1Smrgdo 24533c89af1Smrg IFS=$as_save_IFS 24633c89af1Smrg test -z "$as_dir" && as_dir=. 24733c89af1Smrg case $as_dir in 24833c89af1Smrg /*) 24933c89af1Smrg for as_base in sh bash ksh sh5; do 25033c89af1Smrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 25133c89af1Smrg done;; 25233c89af1Smrg esac 25333c89af1Smrgdone 25433c89af1SmrgIFS=$as_save_IFS 25533c89af1Smrg 25633c89af1Smrg 25733c89af1Smrg for as_shell in $as_candidate_shells $SHELL; do 25833c89af1Smrg # Try only shells that exist, to save several forks. 25933c89af1Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 26033c89af1Smrg { ("$as_shell") 2> /dev/null <<\_ASEOF 26133c89af1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26233c89af1Smrg emulate sh 26333c89af1Smrg NULLCMD=: 264278eca22Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26533c89af1Smrg # is contrary to our usage. Disable this feature. 26633c89af1Smrg alias -g '${1+"$@"}'='"$@"' 26733c89af1Smrg setopt NO_GLOB_SUBST 26833c89af1Smrgelse 269278eca22Smrg case `(set -o) 2>/dev/null` in 270278eca22Smrg *posix*) set -o posix ;; 271278eca22Smrgesac 272278eca22Smrg 27333c89af1Smrgfi 274278eca22Smrg 27533c89af1Smrg 27633c89af1Smrg: 27733c89af1Smrg_ASEOF 27833c89af1Smrg}; then 27933c89af1Smrg CONFIG_SHELL=$as_shell 28033c89af1Smrg as_have_required=yes 28133c89af1Smrg if { "$as_shell" 2> /dev/null <<\_ASEOF 28233c89af1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28333c89af1Smrg emulate sh 28433c89af1Smrg NULLCMD=: 285278eca22Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28633c89af1Smrg # is contrary to our usage. Disable this feature. 28733c89af1Smrg alias -g '${1+"$@"}'='"$@"' 28833c89af1Smrg setopt NO_GLOB_SUBST 28933c89af1Smrgelse 290278eca22Smrg case `(set -o) 2>/dev/null` in 291278eca22Smrg *posix*) set -o posix ;; 292278eca22Smrgesac 293278eca22Smrg 29433c89af1Smrgfi 295278eca22Smrg 29633c89af1Smrg 29733c89af1Smrg: 29833c89af1Smrg(as_func_return () { 29933c89af1Smrg (exit $1) 30033c89af1Smrg} 30133c89af1Smrgas_func_success () { 30233c89af1Smrg as_func_return 0 30333c89af1Smrg} 30433c89af1Smrgas_func_failure () { 30533c89af1Smrg as_func_return 1 30633c89af1Smrg} 30733c89af1Smrgas_func_ret_success () { 30833c89af1Smrg return 0 30933c89af1Smrg} 31033c89af1Smrgas_func_ret_failure () { 31133c89af1Smrg return 1 31233c89af1Smrg} 31333c89af1Smrg 31433c89af1Smrgexitcode=0 31533c89af1Smrgif as_func_success; then 31633c89af1Smrg : 31733c89af1Smrgelse 31833c89af1Smrg exitcode=1 31933c89af1Smrg echo as_func_success failed. 32033c89af1Smrgfi 32133c89af1Smrg 32233c89af1Smrgif as_func_failure; then 32333c89af1Smrg exitcode=1 32433c89af1Smrg echo as_func_failure succeeded. 32533c89af1Smrgfi 32633c89af1Smrg 32733c89af1Smrgif as_func_ret_success; then 32833c89af1Smrg : 32933c89af1Smrgelse 33033c89af1Smrg exitcode=1 33133c89af1Smrg echo as_func_ret_success failed. 33233c89af1Smrgfi 33333c89af1Smrg 33433c89af1Smrgif as_func_ret_failure; then 33533c89af1Smrg exitcode=1 33633c89af1Smrg echo as_func_ret_failure succeeded. 33733c89af1Smrgfi 33833c89af1Smrg 33933c89af1Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then 34033c89af1Smrg : 34133c89af1Smrgelse 34233c89af1Smrg exitcode=1 34333c89af1Smrg echo positional parameters were not saved. 34433c89af1Smrgfi 34533c89af1Smrg 34633c89af1Smrgtest $exitcode = 0) || { (exit 1); exit 1; } 34733c89af1Smrg 34833c89af1Smrg( 34933c89af1Smrg as_lineno_1=$LINENO 35033c89af1Smrg as_lineno_2=$LINENO 35133c89af1Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 35233c89af1Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 35333c89af1Smrg 35433c89af1Smrg_ASEOF 35533c89af1Smrg}; then 35633c89af1Smrg break 35733c89af1Smrgfi 35833c89af1Smrg 35933c89af1Smrgfi 36033c89af1Smrg 36133c89af1Smrg done 36233c89af1Smrg 36333c89af1Smrg if test "x$CONFIG_SHELL" != x; then 36433c89af1Smrg for as_var in BASH_ENV ENV 365278eca22Smrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366278eca22Smrg done 367278eca22Smrg export CONFIG_SHELL 368278eca22Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 36933c89af1Smrgfi 37033c89af1Smrg 37133c89af1Smrg 37233c89af1Smrg if test $as_have_required = no; then 37333c89af1Smrg echo This script requires a shell more modern than all the 37433c89af1Smrg echo shells that I found on your system. Please install a 37533c89af1Smrg echo modern shell, or manually run the script under such a 37633c89af1Smrg echo shell if you do have one. 37733c89af1Smrg { (exit 1); exit 1; } 37833c89af1Smrgfi 37933c89af1Smrg 38033c89af1Smrg 38133c89af1Smrgfi 38233c89af1Smrg 38333c89af1Smrgfi 38433c89af1Smrg 38533c89af1Smrg 38633c89af1Smrg 38733c89af1Smrg(eval "as_func_return () { 38833c89af1Smrg (exit \$1) 38933c89af1Smrg} 39033c89af1Smrgas_func_success () { 39133c89af1Smrg as_func_return 0 39233c89af1Smrg} 39333c89af1Smrgas_func_failure () { 39433c89af1Smrg as_func_return 1 39533c89af1Smrg} 39633c89af1Smrgas_func_ret_success () { 39733c89af1Smrg return 0 39833c89af1Smrg} 39933c89af1Smrgas_func_ret_failure () { 40033c89af1Smrg return 1 40133c89af1Smrg} 40233c89af1Smrg 40333c89af1Smrgexitcode=0 40433c89af1Smrgif as_func_success; then 40533c89af1Smrg : 40633c89af1Smrgelse 40733c89af1Smrg exitcode=1 40833c89af1Smrg echo as_func_success failed. 40933c89af1Smrgfi 41033c89af1Smrg 41133c89af1Smrgif as_func_failure; then 41233c89af1Smrg exitcode=1 41333c89af1Smrg echo as_func_failure succeeded. 41433c89af1Smrgfi 41533c89af1Smrg 41633c89af1Smrgif as_func_ret_success; then 41733c89af1Smrg : 41833c89af1Smrgelse 41933c89af1Smrg exitcode=1 42033c89af1Smrg echo as_func_ret_success failed. 42133c89af1Smrgfi 42233c89af1Smrg 42333c89af1Smrgif as_func_ret_failure; then 42433c89af1Smrg exitcode=1 42533c89af1Smrg echo as_func_ret_failure succeeded. 42633c89af1Smrgfi 42733c89af1Smrg 42833c89af1Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 42933c89af1Smrg : 43033c89af1Smrgelse 43133c89af1Smrg exitcode=1 43233c89af1Smrg echo positional parameters were not saved. 43333c89af1Smrgfi 43433c89af1Smrg 43533c89af1Smrgtest \$exitcode = 0") || { 43633c89af1Smrg echo No shell found that supports shell functions. 437278eca22Smrg echo Please tell bug-autoconf@gnu.org about your system, 438278eca22Smrg echo including any error possibly output before this message. 439278eca22Smrg echo This can help us improve future autoconf versions. 440278eca22Smrg echo Configuration will now proceed without shell functions. 44133c89af1Smrg} 44233c89af1Smrg 44333c89af1Smrg 44433c89af1Smrg 44533c89af1Smrg as_lineno_1=$LINENO 44633c89af1Smrg as_lineno_2=$LINENO 44733c89af1Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 44833c89af1Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 44933c89af1Smrg 45033c89af1Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 45133c89af1Smrg # uniformly replaced by the line number. The first 'sed' inserts a 45233c89af1Smrg # line-number line after each line using $LINENO; the second 'sed' 45333c89af1Smrg # does the real work. The second script uses 'N' to pair each 45433c89af1Smrg # line-number line with the line containing $LINENO, and appends 45533c89af1Smrg # trailing '-' during substitution so that $LINENO is not a special 45633c89af1Smrg # case at line end. 45733c89af1Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 45833c89af1Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 45933c89af1Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 46033c89af1Smrg sed -n ' 46133c89af1Smrg p 46233c89af1Smrg /[$]LINENO/= 46333c89af1Smrg ' <$as_myself | 46433c89af1Smrg sed ' 46533c89af1Smrg s/[$]LINENO.*/&-/ 46633c89af1Smrg t lineno 46733c89af1Smrg b 46833c89af1Smrg :lineno 46933c89af1Smrg N 47033c89af1Smrg :loop 47133c89af1Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 47233c89af1Smrg t loop 47333c89af1Smrg s/-\n.*// 47433c89af1Smrg ' >$as_me.lineno && 47533c89af1Smrg chmod +x "$as_me.lineno" || 476278eca22Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 47733c89af1Smrg { (exit 1); exit 1; }; } 47833c89af1Smrg 47933c89af1Smrg # Don't try to exec as it changes $[0], causing all sort of problems 48033c89af1Smrg # (the dirname of $[0] is not the place where we might find the 48133c89af1Smrg # original and so on. Autoconf is especially sensitive to this). 48233c89af1Smrg . "./$as_me.lineno" 48333c89af1Smrg # Exit status is that of the last command. 48433c89af1Smrg exit 48533c89af1Smrg} 48633c89af1Smrg 48733c89af1Smrg 48833c89af1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 48933c89af1Smrg as_dirname=dirname 49033c89af1Smrgelse 49133c89af1Smrg as_dirname=false 49233c89af1Smrgfi 49333c89af1Smrg 49433c89af1SmrgECHO_C= ECHO_N= ECHO_T= 49533c89af1Smrgcase `echo -n x` in 49633c89af1Smrg-n*) 49733c89af1Smrg case `echo 'x\c'` in 49833c89af1Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49933c89af1Smrg *) ECHO_C='\c';; 50033c89af1Smrg esac;; 50133c89af1Smrg*) 50233c89af1Smrg ECHO_N='-n';; 50333c89af1Smrgesac 50433c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 50533c89af1Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 50633c89af1Smrg as_expr=expr 50733c89af1Smrgelse 50833c89af1Smrg as_expr=false 50933c89af1Smrgfi 51033c89af1Smrg 51133c89af1Smrgrm -f conf$$ conf$$.exe conf$$.file 51233c89af1Smrgif test -d conf$$.dir; then 51333c89af1Smrg rm -f conf$$.dir/conf$$.file 51433c89af1Smrgelse 51533c89af1Smrg rm -f conf$$.dir 516278eca22Smrg mkdir conf$$.dir 2>/dev/null 517278eca22Smrgfi 518278eca22Smrgif (echo >conf$$.file) 2>/dev/null; then 519278eca22Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 520278eca22Smrg as_ln_s='ln -s' 521278eca22Smrg # ... but there are two gotchas: 522278eca22Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523278eca22Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524278eca22Smrg # In both cases, we have to default to `cp -p'. 525278eca22Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526278eca22Smrg as_ln_s='cp -p' 527278eca22Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 528278eca22Smrg as_ln_s=ln 529278eca22Smrg else 53033c89af1Smrg as_ln_s='cp -p' 531278eca22Smrg fi 53233c89af1Smrgelse 53333c89af1Smrg as_ln_s='cp -p' 53433c89af1Smrgfi 53533c89af1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53633c89af1Smrgrmdir conf$$.dir 2>/dev/null 53733c89af1Smrg 53833c89af1Smrgif mkdir -p . 2>/dev/null; then 53933c89af1Smrg as_mkdir_p=: 54033c89af1Smrgelse 54133c89af1Smrg test -d ./-p && rmdir ./-p 54233c89af1Smrg as_mkdir_p=false 54333c89af1Smrgfi 54433c89af1Smrg 545278eca22Smrgif test -x / >/dev/null 2>&1; then 546278eca22Smrg as_test_x='test -x' 54733c89af1Smrgelse 548278eca22Smrg if ls -dL / >/dev/null 2>&1; then 549278eca22Smrg as_ls_L_option=L 550278eca22Smrg else 551278eca22Smrg as_ls_L_option= 552278eca22Smrg fi 553278eca22Smrg as_test_x=' 554278eca22Smrg eval sh -c '\'' 555278eca22Smrg if test -d "$1"; then 556278eca22Smrg test -d "$1/."; 557278eca22Smrg else 558278eca22Smrg case $1 in 559278eca22Smrg -*)set "./$1";; 560278eca22Smrg esac; 561278eca22Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562278eca22Smrg ???[sx]*):;;*)false;;esac;fi 563278eca22Smrg '\'' sh 564278eca22Smrg ' 56533c89af1Smrgfi 566278eca22Smrgas_executable_p=$as_test_x 56733c89af1Smrg 56833c89af1Smrg# Sed expression to map a string onto a valid CPP name. 56933c89af1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 57033c89af1Smrg 57133c89af1Smrg# Sed expression to map a string onto a valid variable name. 57233c89af1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 57333c89af1Smrg 57433c89af1Smrg 57533c89af1Smrg 57633c89af1Smrgexec 7<&0 </dev/null 6>&1 57733c89af1Smrg 57833c89af1Smrg# Name of the host. 57933c89af1Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 58033c89af1Smrg# so uname gets run too. 58133c89af1Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 58233c89af1Smrg 58333c89af1Smrg# 58433c89af1Smrg# Initializations. 58533c89af1Smrg# 58633c89af1Smrgac_default_prefix=/usr/local 58733c89af1Smrgac_clean_files= 58833c89af1Smrgac_config_libobj_dir=. 58933c89af1SmrgLIBOBJS= 59033c89af1Smrgcross_compiling=no 59133c89af1Smrgsubdirs= 59233c89af1SmrgMFLAGS= 59333c89af1SmrgMAKEFLAGS= 59433c89af1SmrgSHELL=${CONFIG_SHELL-/bin/sh} 59533c89af1Smrg 59633c89af1Smrg# Identity of this package. 59733c89af1SmrgPACKAGE_NAME='editres' 59833c89af1SmrgPACKAGE_TARNAME='editres' 599278eca22SmrgPACKAGE_VERSION='1.0.4' 600278eca22SmrgPACKAGE_STRING='editres 1.0.4' 60133c89af1SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 60233c89af1Smrg 603278eca22Smrg# Factoring default headers for most tests. 604278eca22Smrgac_includes_default="\ 605278eca22Smrg#include <stdio.h> 606278eca22Smrg#ifdef HAVE_SYS_TYPES_H 607278eca22Smrg# include <sys/types.h> 608278eca22Smrg#endif 609278eca22Smrg#ifdef HAVE_SYS_STAT_H 610278eca22Smrg# include <sys/stat.h> 611278eca22Smrg#endif 612278eca22Smrg#ifdef STDC_HEADERS 613278eca22Smrg# include <stdlib.h> 614278eca22Smrg# include <stddef.h> 615278eca22Smrg#else 616278eca22Smrg# ifdef HAVE_STDLIB_H 617278eca22Smrg# include <stdlib.h> 618278eca22Smrg# endif 619278eca22Smrg#endif 620278eca22Smrg#ifdef HAVE_STRING_H 621278eca22Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622278eca22Smrg# include <memory.h> 623278eca22Smrg# endif 624278eca22Smrg# include <string.h> 625278eca22Smrg#endif 626278eca22Smrg#ifdef HAVE_STRINGS_H 627278eca22Smrg# include <strings.h> 628278eca22Smrg#endif 629278eca22Smrg#ifdef HAVE_INTTYPES_H 630278eca22Smrg# include <inttypes.h> 631278eca22Smrg#endif 632278eca22Smrg#ifdef HAVE_STDINT_H 633278eca22Smrg# include <stdint.h> 634278eca22Smrg#endif 635278eca22Smrg#ifdef HAVE_UNISTD_H 636278eca22Smrg# include <unistd.h> 637278eca22Smrg#endif" 638278eca22Smrg 639278eca22Smrgac_subst_vars='am__EXEEXT_FALSE 640278eca22Smrgam__EXEEXT_TRUE 641278eca22SmrgLTLIBOBJS 642278eca22SmrgLIBOBJS 64333c89af1Smrgappdefaultdir 644278eca22SmrgAPPDEFS_LIBS 645278eca22SmrgAPPDEFS_CFLAGS 646278eca22SmrgEDITRES_LIBS 647278eca22SmrgEDITRES_CFLAGS 648278eca22SmrgXAW_LIBS 649278eca22SmrgXAW_CFLAGS 650278eca22SmrgPKG_CONFIG 65133c89af1SmrgADMIN_MAN_DIR 652278eca22SmrgDRIVER_MAN_DIR 653278eca22SmrgMISC_MAN_DIR 654278eca22SmrgFILE_MAN_DIR 655278eca22SmrgLIB_MAN_DIR 656278eca22SmrgAPP_MAN_DIR 657278eca22SmrgADMIN_MAN_SUFFIX 658278eca22SmrgDRIVER_MAN_SUFFIX 659278eca22SmrgMISC_MAN_SUFFIX 660278eca22SmrgFILE_MAN_SUFFIX 661278eca22SmrgLIB_MAN_SUFFIX 662278eca22SmrgAPP_MAN_SUFFIX 663278eca22Smrghost_os 664278eca22Smrghost_vendor 665278eca22Smrghost_cpu 666278eca22Smrghost 667278eca22Smrgbuild_os 668278eca22Smrgbuild_vendor 669278eca22Smrgbuild_cpu 670278eca22Smrgbuild 671278eca22Smrgdistcleancheck_listfiles 672278eca22SmrgCHANGELOG_CMD 673278eca22SmrgAM_BACKSLASH 674278eca22SmrgAM_DEFAULT_VERBOSITY 675278eca22SmrgCWARNFLAGS 676278eca22SmrgEGREP 677278eca22SmrgGREP 678278eca22SmrgCPP 679278eca22Smrgam__fastdepCC_FALSE 680278eca22Smrgam__fastdepCC_TRUE 681278eca22SmrgCCDEPMODE 682278eca22SmrgAMDEPBACKSLASH 683278eca22SmrgAMDEP_FALSE 684278eca22SmrgAMDEP_TRUE 685278eca22Smrgam__quote 686278eca22Smrgam__include 687278eca22SmrgDEPDIR 688278eca22SmrgOBJEXT 689278eca22SmrgEXEEXT 690278eca22Smrgac_ct_CC 691278eca22SmrgCPPFLAGS 692278eca22SmrgLDFLAGS 693278eca22SmrgCFLAGS 694278eca22SmrgCC 695278eca22SmrgMAINT 696278eca22SmrgMAINTAINER_MODE_FALSE 697278eca22SmrgMAINTAINER_MODE_TRUE 698278eca22Smrgam__untar 699278eca22Smrgam__tar 700278eca22SmrgAMTAR 701278eca22Smrgam__leading_dot 702278eca22SmrgSET_MAKE 703278eca22SmrgAWK 704278eca22Smrgmkdir_p 705278eca22SmrgMKDIR_P 706278eca22SmrgINSTALL_STRIP_PROGRAM 707278eca22SmrgSTRIP 708278eca22Smrginstall_sh 709278eca22SmrgMAKEINFO 710278eca22SmrgAUTOHEADER 711278eca22SmrgAUTOMAKE 712278eca22SmrgAUTOCONF 713278eca22SmrgACLOCAL 714278eca22SmrgVERSION 715278eca22SmrgPACKAGE 716278eca22SmrgCYGPATH_W 717278eca22Smrgam__isrc 718278eca22SmrgINSTALL_DATA 719278eca22SmrgINSTALL_SCRIPT 720278eca22SmrgINSTALL_PROGRAM 721278eca22Smrgtarget_alias 722278eca22Smrghost_alias 723278eca22Smrgbuild_alias 724278eca22SmrgLIBS 725278eca22SmrgECHO_T 726278eca22SmrgECHO_N 727278eca22SmrgECHO_C 728278eca22SmrgDEFS 729278eca22Smrgmandir 730278eca22Smrglocaledir 731278eca22Smrglibdir 732278eca22Smrgpsdir 733278eca22Smrgpdfdir 734278eca22Smrgdvidir 735278eca22Smrghtmldir 736278eca22Smrginfodir 737278eca22Smrgdocdir 738278eca22Smrgoldincludedir 739278eca22Smrgincludedir 740278eca22Smrglocalstatedir 741278eca22Smrgsharedstatedir 742278eca22Smrgsysconfdir 743278eca22Smrgdatadir 744278eca22Smrgdatarootdir 745278eca22Smrglibexecdir 746278eca22Smrgsbindir 747278eca22Smrgbindir 748278eca22Smrgprogram_transform_name 749278eca22Smrgprefix 750278eca22Smrgexec_prefix 751278eca22SmrgPACKAGE_BUGREPORT 752278eca22SmrgPACKAGE_STRING 753278eca22SmrgPACKAGE_VERSION 754278eca22SmrgPACKAGE_TARNAME 755278eca22SmrgPACKAGE_NAME 756278eca22SmrgPATH_SEPARATOR 757278eca22SmrgSHELL' 75833c89af1Smrgac_subst_files='' 759278eca22Smrgac_user_opts=' 760278eca22Smrgenable_option_checking 761278eca22Smrgenable_maintainer_mode 762278eca22Smrgenable_dependency_tracking 763278eca22Smrgenable_silent_rules 764278eca22Smrgenable_strict_compilation 765278eca22Smrgwith_release_version 766278eca22Smrgwith_appdefaultdir 767278eca22Smrg' 76833c89af1Smrg ac_precious_vars='build_alias 76933c89af1Smrghost_alias 77033c89af1Smrgtarget_alias 77133c89af1SmrgCC 77233c89af1SmrgCFLAGS 77333c89af1SmrgLDFLAGS 774278eca22SmrgLIBS 77533c89af1SmrgCPPFLAGS 776278eca22SmrgCPP 77733c89af1SmrgPKG_CONFIG 778278eca22SmrgXAW_CFLAGS 779278eca22SmrgXAW_LIBS 78033c89af1SmrgEDITRES_CFLAGS 78133c89af1SmrgEDITRES_LIBS 78233c89af1SmrgAPPDEFS_CFLAGS 78333c89af1SmrgAPPDEFS_LIBS' 78433c89af1Smrg 78533c89af1Smrg 78633c89af1Smrg# Initialize some variables set by options. 78733c89af1Smrgac_init_help= 78833c89af1Smrgac_init_version=false 789278eca22Smrgac_unrecognized_opts= 790278eca22Smrgac_unrecognized_sep= 79133c89af1Smrg# The variables have the same names as the options, with 79233c89af1Smrg# dashes changed to underlines. 79333c89af1Smrgcache_file=/dev/null 79433c89af1Smrgexec_prefix=NONE 79533c89af1Smrgno_create= 79633c89af1Smrgno_recursion= 79733c89af1Smrgprefix=NONE 79833c89af1Smrgprogram_prefix=NONE 79933c89af1Smrgprogram_suffix=NONE 80033c89af1Smrgprogram_transform_name=s,x,x, 80133c89af1Smrgsilent= 80233c89af1Smrgsite= 80333c89af1Smrgsrcdir= 80433c89af1Smrgverbose= 80533c89af1Smrgx_includes=NONE 80633c89af1Smrgx_libraries=NONE 80733c89af1Smrg 80833c89af1Smrg# Installation directory options. 80933c89af1Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 81033c89af1Smrg# and all the variables that are supposed to be based on exec_prefix 81133c89af1Smrg# by default will actually change. 81233c89af1Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 81333c89af1Smrg# (The list follows the same order as the GNU Coding Standards.) 81433c89af1Smrgbindir='${exec_prefix}/bin' 81533c89af1Smrgsbindir='${exec_prefix}/sbin' 81633c89af1Smrglibexecdir='${exec_prefix}/libexec' 81733c89af1Smrgdatarootdir='${prefix}/share' 81833c89af1Smrgdatadir='${datarootdir}' 81933c89af1Smrgsysconfdir='${prefix}/etc' 82033c89af1Smrgsharedstatedir='${prefix}/com' 82133c89af1Smrglocalstatedir='${prefix}/var' 82233c89af1Smrgincludedir='${prefix}/include' 82333c89af1Smrgoldincludedir='/usr/include' 82433c89af1Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 82533c89af1Smrginfodir='${datarootdir}/info' 82633c89af1Smrghtmldir='${docdir}' 82733c89af1Smrgdvidir='${docdir}' 82833c89af1Smrgpdfdir='${docdir}' 82933c89af1Smrgpsdir='${docdir}' 83033c89af1Smrglibdir='${exec_prefix}/lib' 83133c89af1Smrglocaledir='${datarootdir}/locale' 83233c89af1Smrgmandir='${datarootdir}/man' 83333c89af1Smrg 83433c89af1Smrgac_prev= 83533c89af1Smrgac_dashdash= 83633c89af1Smrgfor ac_option 83733c89af1Smrgdo 83833c89af1Smrg # If the previous option needs an argument, assign it. 83933c89af1Smrg if test -n "$ac_prev"; then 84033c89af1Smrg eval $ac_prev=\$ac_option 84133c89af1Smrg ac_prev= 84233c89af1Smrg continue 84333c89af1Smrg fi 84433c89af1Smrg 84533c89af1Smrg case $ac_option in 84633c89af1Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 84733c89af1Smrg *) ac_optarg=yes ;; 84833c89af1Smrg esac 84933c89af1Smrg 85033c89af1Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 85133c89af1Smrg 85233c89af1Smrg case $ac_dashdash$ac_option in 85333c89af1Smrg --) 85433c89af1Smrg ac_dashdash=yes ;; 85533c89af1Smrg 85633c89af1Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 85733c89af1Smrg ac_prev=bindir ;; 85833c89af1Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 85933c89af1Smrg bindir=$ac_optarg ;; 86033c89af1Smrg 86133c89af1Smrg -build | --build | --buil | --bui | --bu) 86233c89af1Smrg ac_prev=build_alias ;; 86333c89af1Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86433c89af1Smrg build_alias=$ac_optarg ;; 86533c89af1Smrg 86633c89af1Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 86733c89af1Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 86833c89af1Smrg ac_prev=cache_file ;; 86933c89af1Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 87033c89af1Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 87133c89af1Smrg cache_file=$ac_optarg ;; 87233c89af1Smrg 87333c89af1Smrg --config-cache | -C) 87433c89af1Smrg cache_file=config.cache ;; 87533c89af1Smrg 87633c89af1Smrg -datadir | --datadir | --datadi | --datad) 87733c89af1Smrg ac_prev=datadir ;; 87833c89af1Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 87933c89af1Smrg datadir=$ac_optarg ;; 88033c89af1Smrg 88133c89af1Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 88233c89af1Smrg | --dataroo | --dataro | --datar) 88333c89af1Smrg ac_prev=datarootdir ;; 88433c89af1Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 88533c89af1Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 88633c89af1Smrg datarootdir=$ac_optarg ;; 88733c89af1Smrg 88833c89af1Smrg -disable-* | --disable-*) 889278eca22Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 89033c89af1Smrg # Reject names that are not valid shell variable names. 891278eca22Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892278eca22Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 89333c89af1Smrg { (exit 1); exit 1; }; } 894278eca22Smrg ac_useropt_orig=$ac_useropt 895278eca22Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 896278eca22Smrg case $ac_user_opts in 897278eca22Smrg *" 898278eca22Smrg"enable_$ac_useropt" 899278eca22Smrg"*) ;; 900278eca22Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 901278eca22Smrg ac_unrecognized_sep=', ';; 902278eca22Smrg esac 903278eca22Smrg eval enable_$ac_useropt=no ;; 90433c89af1Smrg 90533c89af1Smrg -docdir | --docdir | --docdi | --doc | --do) 90633c89af1Smrg ac_prev=docdir ;; 90733c89af1Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 90833c89af1Smrg docdir=$ac_optarg ;; 90933c89af1Smrg 91033c89af1Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 91133c89af1Smrg ac_prev=dvidir ;; 91233c89af1Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 91333c89af1Smrg dvidir=$ac_optarg ;; 91433c89af1Smrg 91533c89af1Smrg -enable-* | --enable-*) 916278eca22Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 91733c89af1Smrg # Reject names that are not valid shell variable names. 918278eca22Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919278eca22Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 92033c89af1Smrg { (exit 1); exit 1; }; } 921278eca22Smrg ac_useropt_orig=$ac_useropt 922278eca22Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 923278eca22Smrg case $ac_user_opts in 924278eca22Smrg *" 925278eca22Smrg"enable_$ac_useropt" 926278eca22Smrg"*) ;; 927278eca22Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 928278eca22Smrg ac_unrecognized_sep=', ';; 929278eca22Smrg esac 930278eca22Smrg eval enable_$ac_useropt=\$ac_optarg ;; 93133c89af1Smrg 93233c89af1Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 93333c89af1Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 93433c89af1Smrg | --exec | --exe | --ex) 93533c89af1Smrg ac_prev=exec_prefix ;; 93633c89af1Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 93733c89af1Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 93833c89af1Smrg | --exec=* | --exe=* | --ex=*) 93933c89af1Smrg exec_prefix=$ac_optarg ;; 94033c89af1Smrg 94133c89af1Smrg -gas | --gas | --ga | --g) 94233c89af1Smrg # Obsolete; use --with-gas. 94333c89af1Smrg with_gas=yes ;; 94433c89af1Smrg 94533c89af1Smrg -help | --help | --hel | --he | -h) 94633c89af1Smrg ac_init_help=long ;; 94733c89af1Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 94833c89af1Smrg ac_init_help=recursive ;; 94933c89af1Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 95033c89af1Smrg ac_init_help=short ;; 95133c89af1Smrg 95233c89af1Smrg -host | --host | --hos | --ho) 95333c89af1Smrg ac_prev=host_alias ;; 95433c89af1Smrg -host=* | --host=* | --hos=* | --ho=*) 95533c89af1Smrg host_alias=$ac_optarg ;; 95633c89af1Smrg 95733c89af1Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 95833c89af1Smrg ac_prev=htmldir ;; 95933c89af1Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 96033c89af1Smrg | --ht=*) 96133c89af1Smrg htmldir=$ac_optarg ;; 96233c89af1Smrg 96333c89af1Smrg -includedir | --includedir | --includedi | --included | --include \ 96433c89af1Smrg | --includ | --inclu | --incl | --inc) 96533c89af1Smrg ac_prev=includedir ;; 96633c89af1Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 96733c89af1Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 96833c89af1Smrg includedir=$ac_optarg ;; 96933c89af1Smrg 97033c89af1Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 97133c89af1Smrg ac_prev=infodir ;; 97233c89af1Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 97333c89af1Smrg infodir=$ac_optarg ;; 97433c89af1Smrg 97533c89af1Smrg -libdir | --libdir | --libdi | --libd) 97633c89af1Smrg ac_prev=libdir ;; 97733c89af1Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 97833c89af1Smrg libdir=$ac_optarg ;; 97933c89af1Smrg 98033c89af1Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 98133c89af1Smrg | --libexe | --libex | --libe) 98233c89af1Smrg ac_prev=libexecdir ;; 98333c89af1Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 98433c89af1Smrg | --libexe=* | --libex=* | --libe=*) 98533c89af1Smrg libexecdir=$ac_optarg ;; 98633c89af1Smrg 98733c89af1Smrg -localedir | --localedir | --localedi | --localed | --locale) 98833c89af1Smrg ac_prev=localedir ;; 98933c89af1Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 99033c89af1Smrg localedir=$ac_optarg ;; 99133c89af1Smrg 99233c89af1Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 99333c89af1Smrg | --localstate | --localstat | --localsta | --localst | --locals) 99433c89af1Smrg ac_prev=localstatedir ;; 99533c89af1Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 99633c89af1Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 99733c89af1Smrg localstatedir=$ac_optarg ;; 99833c89af1Smrg 99933c89af1Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 100033c89af1Smrg ac_prev=mandir ;; 100133c89af1Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 100233c89af1Smrg mandir=$ac_optarg ;; 100333c89af1Smrg 100433c89af1Smrg -nfp | --nfp | --nf) 100533c89af1Smrg # Obsolete; use --without-fp. 100633c89af1Smrg with_fp=no ;; 100733c89af1Smrg 100833c89af1Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 100933c89af1Smrg | --no-cr | --no-c | -n) 101033c89af1Smrg no_create=yes ;; 101133c89af1Smrg 101233c89af1Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 101333c89af1Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 101433c89af1Smrg no_recursion=yes ;; 101533c89af1Smrg 101633c89af1Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 101733c89af1Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 101833c89af1Smrg | --oldin | --oldi | --old | --ol | --o) 101933c89af1Smrg ac_prev=oldincludedir ;; 102033c89af1Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 102133c89af1Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 102233c89af1Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 102333c89af1Smrg oldincludedir=$ac_optarg ;; 102433c89af1Smrg 102533c89af1Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 102633c89af1Smrg ac_prev=prefix ;; 102733c89af1Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 102833c89af1Smrg prefix=$ac_optarg ;; 102933c89af1Smrg 103033c89af1Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 103133c89af1Smrg | --program-pre | --program-pr | --program-p) 103233c89af1Smrg ac_prev=program_prefix ;; 103333c89af1Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 103433c89af1Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 103533c89af1Smrg program_prefix=$ac_optarg ;; 103633c89af1Smrg 103733c89af1Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 103833c89af1Smrg | --program-suf | --program-su | --program-s) 103933c89af1Smrg ac_prev=program_suffix ;; 104033c89af1Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 104133c89af1Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 104233c89af1Smrg program_suffix=$ac_optarg ;; 104333c89af1Smrg 104433c89af1Smrg -program-transform-name | --program-transform-name \ 104533c89af1Smrg | --program-transform-nam | --program-transform-na \ 104633c89af1Smrg | --program-transform-n | --program-transform- \ 104733c89af1Smrg | --program-transform | --program-transfor \ 104833c89af1Smrg | --program-transfo | --program-transf \ 104933c89af1Smrg | --program-trans | --program-tran \ 105033c89af1Smrg | --progr-tra | --program-tr | --program-t) 105133c89af1Smrg ac_prev=program_transform_name ;; 105233c89af1Smrg -program-transform-name=* | --program-transform-name=* \ 105333c89af1Smrg | --program-transform-nam=* | --program-transform-na=* \ 105433c89af1Smrg | --program-transform-n=* | --program-transform-=* \ 105533c89af1Smrg | --program-transform=* | --program-transfor=* \ 105633c89af1Smrg | --program-transfo=* | --program-transf=* \ 105733c89af1Smrg | --program-trans=* | --program-tran=* \ 105833c89af1Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 105933c89af1Smrg program_transform_name=$ac_optarg ;; 106033c89af1Smrg 106133c89af1Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 106233c89af1Smrg ac_prev=pdfdir ;; 106333c89af1Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 106433c89af1Smrg pdfdir=$ac_optarg ;; 106533c89af1Smrg 106633c89af1Smrg -psdir | --psdir | --psdi | --psd | --ps) 106733c89af1Smrg ac_prev=psdir ;; 106833c89af1Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 106933c89af1Smrg psdir=$ac_optarg ;; 107033c89af1Smrg 107133c89af1Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 107233c89af1Smrg | -silent | --silent | --silen | --sile | --sil) 107333c89af1Smrg silent=yes ;; 107433c89af1Smrg 107533c89af1Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 107633c89af1Smrg ac_prev=sbindir ;; 107733c89af1Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 107833c89af1Smrg | --sbi=* | --sb=*) 107933c89af1Smrg sbindir=$ac_optarg ;; 108033c89af1Smrg 108133c89af1Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 108233c89af1Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 108333c89af1Smrg | --sharedst | --shareds | --shared | --share | --shar \ 108433c89af1Smrg | --sha | --sh) 108533c89af1Smrg ac_prev=sharedstatedir ;; 108633c89af1Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 108733c89af1Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 108833c89af1Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 108933c89af1Smrg | --sha=* | --sh=*) 109033c89af1Smrg sharedstatedir=$ac_optarg ;; 109133c89af1Smrg 109233c89af1Smrg -site | --site | --sit) 109333c89af1Smrg ac_prev=site ;; 109433c89af1Smrg -site=* | --site=* | --sit=*) 109533c89af1Smrg site=$ac_optarg ;; 109633c89af1Smrg 109733c89af1Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 109833c89af1Smrg ac_prev=srcdir ;; 109933c89af1Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 110033c89af1Smrg srcdir=$ac_optarg ;; 110133c89af1Smrg 110233c89af1Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 110333c89af1Smrg | --syscon | --sysco | --sysc | --sys | --sy) 110433c89af1Smrg ac_prev=sysconfdir ;; 110533c89af1Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 110633c89af1Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 110733c89af1Smrg sysconfdir=$ac_optarg ;; 110833c89af1Smrg 110933c89af1Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 111033c89af1Smrg ac_prev=target_alias ;; 111133c89af1Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 111233c89af1Smrg target_alias=$ac_optarg ;; 111333c89af1Smrg 111433c89af1Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 111533c89af1Smrg verbose=yes ;; 111633c89af1Smrg 111733c89af1Smrg -version | --version | --versio | --versi | --vers | -V) 111833c89af1Smrg ac_init_version=: ;; 111933c89af1Smrg 112033c89af1Smrg -with-* | --with-*) 1121278eca22Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 112233c89af1Smrg # Reject names that are not valid shell variable names. 1123278eca22Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124278eca22Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 112533c89af1Smrg { (exit 1); exit 1; }; } 1126278eca22Smrg ac_useropt_orig=$ac_useropt 1127278eca22Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128278eca22Smrg case $ac_user_opts in 1129278eca22Smrg *" 1130278eca22Smrg"with_$ac_useropt" 1131278eca22Smrg"*) ;; 1132278eca22Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1133278eca22Smrg ac_unrecognized_sep=', ';; 1134278eca22Smrg esac 1135278eca22Smrg eval with_$ac_useropt=\$ac_optarg ;; 113633c89af1Smrg 113733c89af1Smrg -without-* | --without-*) 1138278eca22Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 113933c89af1Smrg # Reject names that are not valid shell variable names. 1140278eca22Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141278eca22Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 114233c89af1Smrg { (exit 1); exit 1; }; } 1143278eca22Smrg ac_useropt_orig=$ac_useropt 1144278eca22Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145278eca22Smrg case $ac_user_opts in 1146278eca22Smrg *" 1147278eca22Smrg"with_$ac_useropt" 1148278eca22Smrg"*) ;; 1149278eca22Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1150278eca22Smrg ac_unrecognized_sep=', ';; 1151278eca22Smrg esac 1152278eca22Smrg eval with_$ac_useropt=no ;; 115333c89af1Smrg 115433c89af1Smrg --x) 115533c89af1Smrg # Obsolete; use --with-x. 115633c89af1Smrg with_x=yes ;; 115733c89af1Smrg 115833c89af1Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 115933c89af1Smrg | --x-incl | --x-inc | --x-in | --x-i) 116033c89af1Smrg ac_prev=x_includes ;; 116133c89af1Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 116233c89af1Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 116333c89af1Smrg x_includes=$ac_optarg ;; 116433c89af1Smrg 116533c89af1Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 116633c89af1Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 116733c89af1Smrg ac_prev=x_libraries ;; 116833c89af1Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 116933c89af1Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 117033c89af1Smrg x_libraries=$ac_optarg ;; 117133c89af1Smrg 1172278eca22Smrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 117333c89af1SmrgTry \`$0 --help' for more information." >&2 117433c89af1Smrg { (exit 1); exit 1; }; } 117533c89af1Smrg ;; 117633c89af1Smrg 117733c89af1Smrg *=*) 117833c89af1Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 117933c89af1Smrg # Reject names that are not valid shell variable names. 118033c89af1Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1181278eca22Smrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 118233c89af1Smrg { (exit 1); exit 1; }; } 118333c89af1Smrg eval $ac_envvar=\$ac_optarg 118433c89af1Smrg export $ac_envvar ;; 118533c89af1Smrg 118633c89af1Smrg *) 118733c89af1Smrg # FIXME: should be removed in autoconf 3.0. 1188278eca22Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 118933c89af1Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1190278eca22Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 119133c89af1Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 119233c89af1Smrg ;; 119333c89af1Smrg 119433c89af1Smrg esac 119533c89af1Smrgdone 119633c89af1Smrg 119733c89af1Smrgif test -n "$ac_prev"; then 119833c89af1Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1199278eca22Smrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 120033c89af1Smrg { (exit 1); exit 1; }; } 120133c89af1Smrgfi 120233c89af1Smrg 1203278eca22Smrgif test -n "$ac_unrecognized_opts"; then 1204278eca22Smrg case $enable_option_checking in 1205278eca22Smrg no) ;; 1206278eca22Smrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1207278eca22Smrg { (exit 1); exit 1; }; } ;; 1208278eca22Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209278eca22Smrg esac 1210278eca22Smrgfi 1211278eca22Smrg 1212278eca22Smrg# Check all directory arguments for consistency. 1213278eca22Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214278eca22Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 121533c89af1Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 121633c89af1Smrg libdir localedir mandir 121733c89af1Smrgdo 121833c89af1Smrg eval ac_val=\$$ac_var 1219278eca22Smrg # Remove trailing slashes. 1220278eca22Smrg case $ac_val in 1221278eca22Smrg */ ) 1222278eca22Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223278eca22Smrg eval $ac_var=\$ac_val;; 1224278eca22Smrg esac 1225278eca22Smrg # Be sure to have absolute directory names. 122633c89af1Smrg case $ac_val in 122733c89af1Smrg [\\/$]* | ?:[\\/]* ) continue;; 122833c89af1Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 122933c89af1Smrg esac 1230278eca22Smrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 123133c89af1Smrg { (exit 1); exit 1; }; } 123233c89af1Smrgdone 123333c89af1Smrg 123433c89af1Smrg# There might be people who depend on the old broken behavior: `$host' 123533c89af1Smrg# used to hold the argument of --host etc. 123633c89af1Smrg# FIXME: To remove some day. 123733c89af1Smrgbuild=$build_alias 123833c89af1Smrghost=$host_alias 123933c89af1Smrgtarget=$target_alias 124033c89af1Smrg 124133c89af1Smrg# FIXME: To remove some day. 124233c89af1Smrgif test "x$host_alias" != x; then 124333c89af1Smrg if test "x$build_alias" = x; then 124433c89af1Smrg cross_compiling=maybe 1245278eca22Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 124633c89af1Smrg If a cross compiler is detected then cross compile mode will be used." >&2 124733c89af1Smrg elif test "x$build_alias" != "x$host_alias"; then 124833c89af1Smrg cross_compiling=yes 124933c89af1Smrg fi 125033c89af1Smrgfi 125133c89af1Smrg 125233c89af1Smrgac_tool_prefix= 125333c89af1Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 125433c89af1Smrg 125533c89af1Smrgtest "$silent" = yes && exec 6>/dev/null 125633c89af1Smrg 125733c89af1Smrg 125833c89af1Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 125933c89af1Smrgac_ls_di=`ls -di .` && 126033c89af1Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261278eca22Smrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 126233c89af1Smrg { (exit 1); exit 1; }; } 126333c89af1Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264278eca22Smrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 126533c89af1Smrg { (exit 1); exit 1; }; } 126633c89af1Smrg 126733c89af1Smrg 126833c89af1Smrg# Find the source files, if location was not specified. 126933c89af1Smrgif test -z "$srcdir"; then 127033c89af1Smrg ac_srcdir_defaulted=yes 127133c89af1Smrg # Try the directory containing this script, then the parent directory. 1272278eca22Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1273278eca22Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274278eca22Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1275278eca22Smrg X"$as_myself" : 'X\(//\)$' \| \ 1276278eca22Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277278eca22Smrg$as_echo X"$as_myself" | 127833c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 127933c89af1Smrg s//\1/ 128033c89af1Smrg q 128133c89af1Smrg } 128233c89af1Smrg /^X\(\/\/\)[^/].*/{ 128333c89af1Smrg s//\1/ 128433c89af1Smrg q 128533c89af1Smrg } 128633c89af1Smrg /^X\(\/\/\)$/{ 128733c89af1Smrg s//\1/ 128833c89af1Smrg q 128933c89af1Smrg } 129033c89af1Smrg /^X\(\/\).*/{ 129133c89af1Smrg s//\1/ 129233c89af1Smrg q 129333c89af1Smrg } 129433c89af1Smrg s/.*/./; q'` 129533c89af1Smrg srcdir=$ac_confdir 129633c89af1Smrg if test ! -r "$srcdir/$ac_unique_file"; then 129733c89af1Smrg srcdir=.. 129833c89af1Smrg fi 129933c89af1Smrgelse 130033c89af1Smrg ac_srcdir_defaulted=no 130133c89af1Smrgfi 130233c89af1Smrgif test ! -r "$srcdir/$ac_unique_file"; then 130333c89af1Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304278eca22Smrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 130533c89af1Smrg { (exit 1); exit 1; }; } 130633c89af1Smrgfi 130733c89af1Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 130833c89af1Smrgac_abs_confdir=`( 1309278eca22Smrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 131033c89af1Smrg { (exit 1); exit 1; }; } 131133c89af1Smrg pwd)` 131233c89af1Smrg# When building in place, set srcdir=. 131333c89af1Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 131433c89af1Smrg srcdir=. 131533c89af1Smrgfi 131633c89af1Smrg# Remove unnecessary trailing slashes from srcdir. 131733c89af1Smrg# Double slashes in file names in object file debugging info 131833c89af1Smrg# mess up M-x gdb in Emacs. 131933c89af1Smrgcase $srcdir in 132033c89af1Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 132133c89af1Smrgesac 132233c89af1Smrgfor ac_var in $ac_precious_vars; do 132333c89af1Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 132433c89af1Smrg eval ac_env_${ac_var}_value=\$${ac_var} 132533c89af1Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 132633c89af1Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 132733c89af1Smrgdone 132833c89af1Smrg 132933c89af1Smrg# 133033c89af1Smrg# Report the --help message. 133133c89af1Smrg# 133233c89af1Smrgif test "$ac_init_help" = "long"; then 133333c89af1Smrg # Omit some internal or obsolete options to make the list less imposing. 133433c89af1Smrg # This message is too long to be a string in the A/UX 3.1 sh. 133533c89af1Smrg cat <<_ACEOF 1336278eca22Smrg\`configure' configures editres 1.0.4 to adapt to many kinds of systems. 133733c89af1Smrg 133833c89af1SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 133933c89af1Smrg 134033c89af1SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 134133c89af1SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 134233c89af1Smrg 134333c89af1SmrgDefaults for the options are specified in brackets. 134433c89af1Smrg 134533c89af1SmrgConfiguration: 134633c89af1Smrg -h, --help display this help and exit 134733c89af1Smrg --help=short display options specific to this package 134833c89af1Smrg --help=recursive display the short help of all the included packages 134933c89af1Smrg -V, --version display version information and exit 135033c89af1Smrg -q, --quiet, --silent do not print \`checking...' messages 135133c89af1Smrg --cache-file=FILE cache test results in FILE [disabled] 135233c89af1Smrg -C, --config-cache alias for \`--cache-file=config.cache' 135333c89af1Smrg -n, --no-create do not create output files 135433c89af1Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 135533c89af1Smrg 135633c89af1SmrgInstallation directories: 135733c89af1Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1358278eca22Smrg [$ac_default_prefix] 135933c89af1Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1360278eca22Smrg [PREFIX] 136133c89af1Smrg 136233c89af1SmrgBy default, \`make install' will install all the files in 136333c89af1Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 136433c89af1Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 136533c89af1Smrgfor instance \`--prefix=\$HOME'. 136633c89af1Smrg 136733c89af1SmrgFor better control, use the options below. 136833c89af1Smrg 136933c89af1SmrgFine tuning of the installation directories: 1370278eca22Smrg --bindir=DIR user executables [EPREFIX/bin] 1371278eca22Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1372278eca22Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1373278eca22Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1374278eca22Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1375278eca22Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1376278eca22Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1377278eca22Smrg --includedir=DIR C header files [PREFIX/include] 1378278eca22Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1379278eca22Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1380278eca22Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1381278eca22Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1382278eca22Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1383278eca22Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1384278eca22Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/editres] 1385278eca22Smrg --htmldir=DIR html documentation [DOCDIR] 1386278eca22Smrg --dvidir=DIR dvi documentation [DOCDIR] 1387278eca22Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1388278eca22Smrg --psdir=DIR ps documentation [DOCDIR] 138933c89af1Smrg_ACEOF 139033c89af1Smrg 139133c89af1Smrg cat <<\_ACEOF 139233c89af1Smrg 139333c89af1SmrgProgram names: 139433c89af1Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 139533c89af1Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 139633c89af1Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 139733c89af1Smrg 139833c89af1SmrgSystem types: 139933c89af1Smrg --build=BUILD configure for building on BUILD [guessed] 140033c89af1Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 140133c89af1Smrg_ACEOF 140233c89af1Smrgfi 140333c89af1Smrg 140433c89af1Smrgif test -n "$ac_init_help"; then 140533c89af1Smrg case $ac_init_help in 1406278eca22Smrg short | recursive ) echo "Configuration of editres 1.0.4:";; 140733c89af1Smrg esac 140833c89af1Smrg cat <<\_ACEOF 140933c89af1Smrg 141033c89af1SmrgOptional Features: 1411278eca22Smrg --disable-option-checking ignore unrecognized --enable/--with options 141233c89af1Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 141333c89af1Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 141433c89af1Smrg --enable-maintainer-mode enable make rules and dependencies not useful 141533c89af1Smrg (and sometimes confusing) to the casual installer 141633c89af1Smrg --disable-dependency-tracking speeds up one-time build 141733c89af1Smrg --enable-dependency-tracking do not reject slow dependency extractors 1418278eca22Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1419278eca22Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1420278eca22Smrg --enable-strict-compilation 1421278eca22Smrg Enable all warnings from compiler and make them 1422278eca22Smrg errors (default: disabled) 142333c89af1Smrg 142433c89af1SmrgOptional Packages: 142533c89af1Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 142633c89af1Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 142733c89af1Smrg --with-release-version=STRING 142833c89af1Smrg Use release version string in package name 1429278eca22Smrg --with-appdefaultdir=<pathname> 1430278eca22Smrg specify directory for app-defaults files (default is 1431278eca22Smrg autodetected) 143233c89af1Smrg 143333c89af1SmrgSome influential environment variables: 143433c89af1Smrg CC C compiler command 143533c89af1Smrg CFLAGS C compiler flags 143633c89af1Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 143733c89af1Smrg nonstandard directory <lib dir> 1438278eca22Smrg LIBS libraries to pass to the linker, e.g. -l<library> 143933c89af1Smrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 144033c89af1Smrg you have headers in a nonstandard directory <include dir> 1441278eca22Smrg CPP C preprocessor 144233c89af1Smrg PKG_CONFIG path to pkg-config utility 1443278eca22Smrg XAW_CFLAGS C compiler flags for XAW, overriding pkg-config 1444278eca22Smrg XAW_LIBS linker flags for XAW, overriding pkg-config 144533c89af1Smrg EDITRES_CFLAGS 144633c89af1Smrg C compiler flags for EDITRES, overriding pkg-config 144733c89af1Smrg EDITRES_LIBS 144833c89af1Smrg linker flags for EDITRES, overriding pkg-config 144933c89af1Smrg APPDEFS_CFLAGS 145033c89af1Smrg C compiler flags for APPDEFS, overriding pkg-config 145133c89af1Smrg APPDEFS_LIBS 145233c89af1Smrg linker flags for APPDEFS, overriding pkg-config 145333c89af1Smrg 145433c89af1SmrgUse these variables to override the choices made by `configure' or to help 145533c89af1Smrgit to find libraries and programs with nonstandard names/locations. 145633c89af1Smrg 145733c89af1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 145833c89af1Smrg_ACEOF 145933c89af1Smrgac_status=$? 146033c89af1Smrgfi 146133c89af1Smrg 146233c89af1Smrgif test "$ac_init_help" = "recursive"; then 146333c89af1Smrg # If there are subdirs, report their specific --help. 146433c89af1Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465278eca22Smrg test -d "$ac_dir" || 1466278eca22Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467278eca22Smrg continue 146833c89af1Smrg ac_builddir=. 146933c89af1Smrg 147033c89af1Smrgcase "$ac_dir" in 147133c89af1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 147233c89af1Smrg*) 1473278eca22Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 147433c89af1Smrg # A ".." for each directory in $ac_dir_suffix. 1475278eca22Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 147633c89af1Smrg case $ac_top_builddir_sub in 147733c89af1Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 147833c89af1Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 147933c89af1Smrg esac ;; 148033c89af1Smrgesac 148133c89af1Smrgac_abs_top_builddir=$ac_pwd 148233c89af1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 148333c89af1Smrg# for backward compatibility: 148433c89af1Smrgac_top_builddir=$ac_top_build_prefix 148533c89af1Smrg 148633c89af1Smrgcase $srcdir in 148733c89af1Smrg .) # We are building in place. 148833c89af1Smrg ac_srcdir=. 148933c89af1Smrg ac_top_srcdir=$ac_top_builddir_sub 149033c89af1Smrg ac_abs_top_srcdir=$ac_pwd ;; 149133c89af1Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 149233c89af1Smrg ac_srcdir=$srcdir$ac_dir_suffix; 149333c89af1Smrg ac_top_srcdir=$srcdir 149433c89af1Smrg ac_abs_top_srcdir=$srcdir ;; 149533c89af1Smrg *) # Relative name. 149633c89af1Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 149733c89af1Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 149833c89af1Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 149933c89af1Smrgesac 150033c89af1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 150133c89af1Smrg 150233c89af1Smrg cd "$ac_dir" || { ac_status=$?; continue; } 150333c89af1Smrg # Check for guested configure. 150433c89af1Smrg if test -f "$ac_srcdir/configure.gnu"; then 150533c89af1Smrg echo && 150633c89af1Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 150733c89af1Smrg elif test -f "$ac_srcdir/configure"; then 150833c89af1Smrg echo && 150933c89af1Smrg $SHELL "$ac_srcdir/configure" --help=recursive 151033c89af1Smrg else 1511278eca22Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 151233c89af1Smrg fi || ac_status=$? 151333c89af1Smrg cd "$ac_pwd" || { ac_status=$?; break; } 151433c89af1Smrg done 151533c89af1Smrgfi 151633c89af1Smrg 151733c89af1Smrgtest -n "$ac_init_help" && exit $ac_status 151833c89af1Smrgif $ac_init_version; then 151933c89af1Smrg cat <<\_ACEOF 1520278eca22Smrgeditres configure 1.0.4 1521278eca22Smrggenerated by GNU Autoconf 2.63 152233c89af1Smrg 152333c89af1SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1524278eca22Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 152533c89af1SmrgThis configure script is free software; the Free Software Foundation 152633c89af1Smrggives unlimited permission to copy, distribute and modify it. 152733c89af1Smrg_ACEOF 152833c89af1Smrg exit 152933c89af1Smrgfi 153033c89af1Smrgcat >config.log <<_ACEOF 153133c89af1SmrgThis file contains any messages produced by compilers while 153233c89af1Smrgrunning configure, to aid debugging if configure makes a mistake. 153333c89af1Smrg 1534278eca22SmrgIt was created by editres $as_me 1.0.4, which was 1535278eca22Smrggenerated by GNU Autoconf 2.63. Invocation command line was 153633c89af1Smrg 153733c89af1Smrg $ $0 $@ 153833c89af1Smrg 153933c89af1Smrg_ACEOF 154033c89af1Smrgexec 5>>config.log 154133c89af1Smrg{ 154233c89af1Smrgcat <<_ASUNAME 154333c89af1Smrg## --------- ## 154433c89af1Smrg## Platform. ## 154533c89af1Smrg## --------- ## 154633c89af1Smrg 154733c89af1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 154833c89af1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 154933c89af1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 155033c89af1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 155133c89af1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 155233c89af1Smrg 155333c89af1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 155433c89af1Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 155533c89af1Smrg 155633c89af1Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 155733c89af1Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 155833c89af1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 155933c89af1Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 156033c89af1Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 156133c89af1Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 156233c89af1Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 156333c89af1Smrg 156433c89af1Smrg_ASUNAME 156533c89af1Smrg 156633c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 156733c89af1Smrgfor as_dir in $PATH 156833c89af1Smrgdo 156933c89af1Smrg IFS=$as_save_IFS 157033c89af1Smrg test -z "$as_dir" && as_dir=. 1571278eca22Smrg $as_echo "PATH: $as_dir" 157233c89af1Smrgdone 157333c89af1SmrgIFS=$as_save_IFS 157433c89af1Smrg 157533c89af1Smrg} >&5 157633c89af1Smrg 157733c89af1Smrgcat >&5 <<_ACEOF 157833c89af1Smrg 157933c89af1Smrg 158033c89af1Smrg## ----------- ## 158133c89af1Smrg## Core tests. ## 158233c89af1Smrg## ----------- ## 158333c89af1Smrg 158433c89af1Smrg_ACEOF 158533c89af1Smrg 158633c89af1Smrg 158733c89af1Smrg# Keep a trace of the command line. 158833c89af1Smrg# Strip out --no-create and --no-recursion so they do not pile up. 158933c89af1Smrg# Strip out --silent because we don't want to record it for future runs. 159033c89af1Smrg# Also quote any args containing shell meta-characters. 159133c89af1Smrg# Make two passes to allow for proper duplicate-argument suppression. 159233c89af1Smrgac_configure_args= 159333c89af1Smrgac_configure_args0= 159433c89af1Smrgac_configure_args1= 159533c89af1Smrgac_must_keep_next=false 159633c89af1Smrgfor ac_pass in 1 2 159733c89af1Smrgdo 159833c89af1Smrg for ac_arg 159933c89af1Smrg do 160033c89af1Smrg case $ac_arg in 160133c89af1Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 160233c89af1Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 160333c89af1Smrg | -silent | --silent | --silen | --sile | --sil) 160433c89af1Smrg continue ;; 160533c89af1Smrg *\'*) 1606278eca22Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 160733c89af1Smrg esac 160833c89af1Smrg case $ac_pass in 160933c89af1Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 161033c89af1Smrg 2) 161133c89af1Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 161233c89af1Smrg if test $ac_must_keep_next = true; then 161333c89af1Smrg ac_must_keep_next=false # Got value, back to normal. 161433c89af1Smrg else 161533c89af1Smrg case $ac_arg in 161633c89af1Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 161733c89af1Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 161833c89af1Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 161933c89af1Smrg | -with-* | --with-* | -without-* | --without-* | --x) 162033c89af1Smrg case "$ac_configure_args0 " in 162133c89af1Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 162233c89af1Smrg esac 162333c89af1Smrg ;; 162433c89af1Smrg -* ) ac_must_keep_next=true ;; 162533c89af1Smrg esac 162633c89af1Smrg fi 162733c89af1Smrg ac_configure_args="$ac_configure_args '$ac_arg'" 162833c89af1Smrg ;; 162933c89af1Smrg esac 163033c89af1Smrg done 163133c89af1Smrgdone 163233c89af1Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 163333c89af1Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 163433c89af1Smrg 163533c89af1Smrg# When interrupted or exit'd, cleanup temporary files, and complete 163633c89af1Smrg# config.log. We remove comments because anyway the quotes in there 163733c89af1Smrg# would cause problems or look ugly. 163833c89af1Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 163933c89af1Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 164033c89af1Smrgtrap 'exit_status=$? 164133c89af1Smrg # Save into config.log some information that might help in debugging. 164233c89af1Smrg { 164333c89af1Smrg echo 164433c89af1Smrg 164533c89af1Smrg cat <<\_ASBOX 164633c89af1Smrg## ---------------- ## 164733c89af1Smrg## Cache variables. ## 164833c89af1Smrg## ---------------- ## 164933c89af1Smrg_ASBOX 165033c89af1Smrg echo 165133c89af1Smrg # The following way of writing the cache mishandles newlines in values, 165233c89af1Smrg( 165333c89af1Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 165433c89af1Smrg eval ac_val=\$$ac_var 165533c89af1Smrg case $ac_val in #( 165633c89af1Smrg *${as_nl}*) 165733c89af1Smrg case $ac_var in #( 1658278eca22Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1659278eca22Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 166033c89af1Smrg esac 166133c89af1Smrg case $ac_var in #( 166233c89af1Smrg _ | IFS | as_nl) ;; #( 1663278eca22Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 166433c89af1Smrg *) $as_unset $ac_var ;; 166533c89af1Smrg esac ;; 166633c89af1Smrg esac 166733c89af1Smrg done 166833c89af1Smrg (set) 2>&1 | 166933c89af1Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 167033c89af1Smrg *${as_nl}ac_space=\ *) 167133c89af1Smrg sed -n \ 167233c89af1Smrg "s/'\''/'\''\\\\'\'''\''/g; 167333c89af1Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 167433c89af1Smrg ;; #( 167533c89af1Smrg *) 167633c89af1Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 167733c89af1Smrg ;; 167833c89af1Smrg esac | 167933c89af1Smrg sort 168033c89af1Smrg) 168133c89af1Smrg echo 168233c89af1Smrg 168333c89af1Smrg cat <<\_ASBOX 168433c89af1Smrg## ----------------- ## 168533c89af1Smrg## Output variables. ## 168633c89af1Smrg## ----------------- ## 168733c89af1Smrg_ASBOX 168833c89af1Smrg echo 168933c89af1Smrg for ac_var in $ac_subst_vars 169033c89af1Smrg do 169133c89af1Smrg eval ac_val=\$$ac_var 169233c89af1Smrg case $ac_val in 1693278eca22Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 169433c89af1Smrg esac 1695278eca22Smrg $as_echo "$ac_var='\''$ac_val'\''" 169633c89af1Smrg done | sort 169733c89af1Smrg echo 169833c89af1Smrg 169933c89af1Smrg if test -n "$ac_subst_files"; then 170033c89af1Smrg cat <<\_ASBOX 170133c89af1Smrg## ------------------- ## 170233c89af1Smrg## File substitutions. ## 170333c89af1Smrg## ------------------- ## 170433c89af1Smrg_ASBOX 170533c89af1Smrg echo 170633c89af1Smrg for ac_var in $ac_subst_files 170733c89af1Smrg do 170833c89af1Smrg eval ac_val=\$$ac_var 170933c89af1Smrg case $ac_val in 1710278eca22Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 171133c89af1Smrg esac 1712278eca22Smrg $as_echo "$ac_var='\''$ac_val'\''" 171333c89af1Smrg done | sort 171433c89af1Smrg echo 171533c89af1Smrg fi 171633c89af1Smrg 171733c89af1Smrg if test -s confdefs.h; then 171833c89af1Smrg cat <<\_ASBOX 171933c89af1Smrg## ----------- ## 172033c89af1Smrg## confdefs.h. ## 172133c89af1Smrg## ----------- ## 172233c89af1Smrg_ASBOX 172333c89af1Smrg echo 172433c89af1Smrg cat confdefs.h 172533c89af1Smrg echo 172633c89af1Smrg fi 172733c89af1Smrg test "$ac_signal" != 0 && 1728278eca22Smrg $as_echo "$as_me: caught signal $ac_signal" 1729278eca22Smrg $as_echo "$as_me: exit $exit_status" 173033c89af1Smrg } >&5 173133c89af1Smrg rm -f core *.core core.conftest.* && 173233c89af1Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 173333c89af1Smrg exit $exit_status 173433c89af1Smrg' 0 173533c89af1Smrgfor ac_signal in 1 2 13 15; do 173633c89af1Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 173733c89af1Smrgdone 173833c89af1Smrgac_signal=0 173933c89af1Smrg 174033c89af1Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 174133c89af1Smrgrm -f -r conftest* confdefs.h 174233c89af1Smrg 174333c89af1Smrg# Predefined preprocessor variables. 174433c89af1Smrg 174533c89af1Smrgcat >>confdefs.h <<_ACEOF 174633c89af1Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 174733c89af1Smrg_ACEOF 174833c89af1Smrg 174933c89af1Smrg 175033c89af1Smrgcat >>confdefs.h <<_ACEOF 175133c89af1Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 175233c89af1Smrg_ACEOF 175333c89af1Smrg 175433c89af1Smrg 175533c89af1Smrgcat >>confdefs.h <<_ACEOF 175633c89af1Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 175733c89af1Smrg_ACEOF 175833c89af1Smrg 175933c89af1Smrg 176033c89af1Smrgcat >>confdefs.h <<_ACEOF 176133c89af1Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 176233c89af1Smrg_ACEOF 176333c89af1Smrg 176433c89af1Smrg 176533c89af1Smrgcat >>confdefs.h <<_ACEOF 176633c89af1Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 176733c89af1Smrg_ACEOF 176833c89af1Smrg 176933c89af1Smrg 177033c89af1Smrg# Let the site file select an alternate cache file if it wants to. 1771278eca22Smrg# Prefer an explicitly selected file to automatically selected ones. 1772278eca22Smrgac_site_file1=NONE 1773278eca22Smrgac_site_file2=NONE 177433c89af1Smrgif test -n "$CONFIG_SITE"; then 1775278eca22Smrg ac_site_file1=$CONFIG_SITE 177633c89af1Smrgelif test "x$prefix" != xNONE; then 1777278eca22Smrg ac_site_file1=$prefix/share/config.site 1778278eca22Smrg ac_site_file2=$prefix/etc/config.site 177933c89af1Smrgelse 1780278eca22Smrg ac_site_file1=$ac_default_prefix/share/config.site 1781278eca22Smrg ac_site_file2=$ac_default_prefix/etc/config.site 178233c89af1Smrgfi 1783278eca22Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 178433c89af1Smrgdo 1785278eca22Smrg test "x$ac_site_file" = xNONE && continue 178633c89af1Smrg if test -r "$ac_site_file"; then 1787278eca22Smrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1788278eca22Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 178933c89af1Smrg sed 's/^/| /' "$ac_site_file" >&5 179033c89af1Smrg . "$ac_site_file" 179133c89af1Smrg fi 179233c89af1Smrgdone 179333c89af1Smrg 179433c89af1Smrgif test -r "$cache_file"; then 179533c89af1Smrg # Some versions of bash will fail to source /dev/null (special 179633c89af1Smrg # files actually), so we avoid doing that. 179733c89af1Smrg if test -f "$cache_file"; then 1798278eca22Smrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1799278eca22Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 180033c89af1Smrg case $cache_file in 180133c89af1Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 180233c89af1Smrg *) . "./$cache_file";; 180333c89af1Smrg esac 180433c89af1Smrg fi 180533c89af1Smrgelse 1806278eca22Smrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1807278eca22Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 180833c89af1Smrg >$cache_file 180933c89af1Smrgfi 181033c89af1Smrg 181133c89af1Smrg# Check that the precious variables saved in the cache have kept the same 181233c89af1Smrg# value. 181333c89af1Smrgac_cache_corrupted=false 181433c89af1Smrgfor ac_var in $ac_precious_vars; do 181533c89af1Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 181633c89af1Smrg eval ac_new_set=\$ac_env_${ac_var}_set 181733c89af1Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 181833c89af1Smrg eval ac_new_val=\$ac_env_${ac_var}_value 181933c89af1Smrg case $ac_old_set,$ac_new_set in 182033c89af1Smrg set,) 1821278eca22Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1822278eca22Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 182333c89af1Smrg ac_cache_corrupted=: ;; 182433c89af1Smrg ,set) 1825278eca22Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1826278eca22Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 182733c89af1Smrg ac_cache_corrupted=: ;; 182833c89af1Smrg ,);; 182933c89af1Smrg *) 183033c89af1Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1831278eca22Smrg # differences in whitespace do not lead to failure. 1832278eca22Smrg ac_old_val_w=`echo x $ac_old_val` 1833278eca22Smrg ac_new_val_w=`echo x $ac_new_val` 1834278eca22Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1835278eca22Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1836278eca22Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1837278eca22Smrg ac_cache_corrupted=: 1838278eca22Smrg else 1839278eca22Smrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1840278eca22Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1841278eca22Smrg eval $ac_var=\$ac_old_val 1842278eca22Smrg fi 1843278eca22Smrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1844278eca22Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1845278eca22Smrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1846278eca22Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 184733c89af1Smrg fi;; 184833c89af1Smrg esac 184933c89af1Smrg # Pass precious variables to config.status. 185033c89af1Smrg if test "$ac_new_set" = set; then 185133c89af1Smrg case $ac_new_val in 1852278eca22Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 185333c89af1Smrg *) ac_arg=$ac_var=$ac_new_val ;; 185433c89af1Smrg esac 185533c89af1Smrg case " $ac_configure_args " in 185633c89af1Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 185733c89af1Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 185833c89af1Smrg esac 185933c89af1Smrg fi 186033c89af1Smrgdone 186133c89af1Smrgif $ac_cache_corrupted; then 1862278eca22Smrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1863278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1864278eca22Smrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1865278eca22Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1866278eca22Smrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1867278eca22Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 186833c89af1Smrg { (exit 1); exit 1; }; } 186933c89af1Smrgfi 187033c89af1Smrg 187133c89af1Smrg 187233c89af1Smrg 187333c89af1Smrg 187433c89af1Smrg 187533c89af1Smrg 187633c89af1Smrg 187733c89af1Smrg 187833c89af1Smrg 187933c89af1Smrg 188033c89af1Smrg 188133c89af1Smrg 188233c89af1Smrg 188333c89af1Smrg 188433c89af1Smrg 188533c89af1Smrg 188633c89af1Smrg 188733c89af1Smrg 188833c89af1Smrg 188933c89af1Smrg 189033c89af1Smrg 189133c89af1Smrg 189233c89af1Smrg 189333c89af1Smrg 189433c89af1Smrg 189533c89af1Smrgac_ext=c 189633c89af1Smrgac_cpp='$CPP $CPPFLAGS' 189733c89af1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 189833c89af1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 189933c89af1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 190033c89af1Smrg 190133c89af1Smrg 1902278eca22Smrgam__api_version='1.11' 1903278eca22Smrg 190433c89af1Smrgac_aux_dir= 190533c89af1Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 190633c89af1Smrg if test -f "$ac_dir/install-sh"; then 190733c89af1Smrg ac_aux_dir=$ac_dir 190833c89af1Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 190933c89af1Smrg break 191033c89af1Smrg elif test -f "$ac_dir/install.sh"; then 191133c89af1Smrg ac_aux_dir=$ac_dir 191233c89af1Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 191333c89af1Smrg break 191433c89af1Smrg elif test -f "$ac_dir/shtool"; then 191533c89af1Smrg ac_aux_dir=$ac_dir 191633c89af1Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 191733c89af1Smrg break 191833c89af1Smrg fi 191933c89af1Smrgdone 192033c89af1Smrgif test -z "$ac_aux_dir"; then 1921278eca22Smrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1922278eca22Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 192333c89af1Smrg { (exit 1); exit 1; }; } 192433c89af1Smrgfi 192533c89af1Smrg 192633c89af1Smrg# These three variables are undocumented and unsupported, 192733c89af1Smrg# and are intended to be withdrawn in a future Autoconf release. 192833c89af1Smrg# They can cause serious problems if a builder's source tree is in a directory 192933c89af1Smrg# whose full name contains unusual characters. 193033c89af1Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 193133c89af1Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 193233c89af1Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 193333c89af1Smrg 193433c89af1Smrg 193533c89af1Smrg# Find a good install program. We prefer a C program (faster), 193633c89af1Smrg# so one script is as good as another. But avoid the broken or 193733c89af1Smrg# incompatible versions: 193833c89af1Smrg# SysV /etc/install, /usr/sbin/install 193933c89af1Smrg# SunOS /usr/etc/install 194033c89af1Smrg# IRIX /sbin/install 194133c89af1Smrg# AIX /bin/install 194233c89af1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 194333c89af1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 194433c89af1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 194533c89af1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 194633c89af1Smrg# OS/2's system install, which has a completely different semantic 194733c89af1Smrg# ./install, which can be erroneously created by make from ./install.sh. 1948278eca22Smrg# Reject install programs that cannot install multiple files. 1949278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1950278eca22Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 195133c89af1Smrgif test -z "$INSTALL"; then 195233c89af1Smrgif test "${ac_cv_path_install+set}" = set; then 1953278eca22Smrg $as_echo_n "(cached) " >&6 195433c89af1Smrgelse 195533c89af1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195633c89af1Smrgfor as_dir in $PATH 195733c89af1Smrgdo 195833c89af1Smrg IFS=$as_save_IFS 195933c89af1Smrg test -z "$as_dir" && as_dir=. 196033c89af1Smrg # Account for people who put trailing slashes in PATH elements. 196133c89af1Smrgcase $as_dir/ in 196233c89af1Smrg ./ | .// | /cC/* | \ 196333c89af1Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 196433c89af1Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 196533c89af1Smrg /usr/ucb/* ) ;; 196633c89af1Smrg *) 196733c89af1Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 196833c89af1Smrg # Don't use installbsd from OSF since it installs stuff as root 196933c89af1Smrg # by default. 197033c89af1Smrg for ac_prog in ginstall scoinst install; do 197133c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1972278eca22Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 197333c89af1Smrg if test $ac_prog = install && 197433c89af1Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 197533c89af1Smrg # AIX install. It has an incompatible calling convention. 197633c89af1Smrg : 197733c89af1Smrg elif test $ac_prog = install && 197833c89af1Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 197933c89af1Smrg # program-specific install script used by HP pwplus--don't use. 198033c89af1Smrg : 198133c89af1Smrg else 1982278eca22Smrg rm -rf conftest.one conftest.two conftest.dir 1983278eca22Smrg echo one > conftest.one 1984278eca22Smrg echo two > conftest.two 1985278eca22Smrg mkdir conftest.dir 1986278eca22Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1987278eca22Smrg test -s conftest.one && test -s conftest.two && 1988278eca22Smrg test -s conftest.dir/conftest.one && 1989278eca22Smrg test -s conftest.dir/conftest.two 1990278eca22Smrg then 1991278eca22Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1992278eca22Smrg break 3 1993278eca22Smrg fi 199433c89af1Smrg fi 199533c89af1Smrg fi 199633c89af1Smrg done 199733c89af1Smrg done 199833c89af1Smrg ;; 199933c89af1Smrgesac 2000278eca22Smrg 200133c89af1Smrgdone 200233c89af1SmrgIFS=$as_save_IFS 200333c89af1Smrg 2004278eca22Smrgrm -rf conftest.one conftest.two conftest.dir 200533c89af1Smrg 200633c89af1Smrgfi 200733c89af1Smrg if test "${ac_cv_path_install+set}" = set; then 200833c89af1Smrg INSTALL=$ac_cv_path_install 200933c89af1Smrg else 201033c89af1Smrg # As a last resort, use the slow shell script. Don't cache a 201133c89af1Smrg # value for INSTALL within a source directory, because that will 201233c89af1Smrg # break other packages using the cache if that directory is 201333c89af1Smrg # removed, or if the value is a relative name. 201433c89af1Smrg INSTALL=$ac_install_sh 201533c89af1Smrg fi 201633c89af1Smrgfi 2017278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2018278eca22Smrg$as_echo "$INSTALL" >&6; } 201933c89af1Smrg 202033c89af1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 202133c89af1Smrg# It thinks the first close brace ends the variable substitution. 202233c89af1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 202333c89af1Smrg 202433c89af1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 202533c89af1Smrg 202633c89af1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 202733c89af1Smrg 2028278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2029278eca22Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 203033c89af1Smrg# Just in case 203133c89af1Smrgsleep 1 203233c89af1Smrgecho timestamp > conftest.file 2033278eca22Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2034278eca22Smrg# name. Accept space and tab only in the latter. 2035278eca22Smrgam_lf=' 2036278eca22Smrg' 2037278eca22Smrgcase `pwd` in 2038278eca22Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2039278eca22Smrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2040278eca22Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2041278eca22Smrg { (exit 1); exit 1; }; };; 2042278eca22Smrgesac 2043278eca22Smrgcase $srcdir in 2044278eca22Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2045278eca22Smrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2046278eca22Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2047278eca22Smrg { (exit 1); exit 1; }; };; 2048278eca22Smrgesac 2049278eca22Smrg 205033c89af1Smrg# Do `set' in a subshell so we don't clobber the current shell's 205133c89af1Smrg# arguments. Must try -L first in case configure is actually a 205233c89af1Smrg# symlink; some systems play weird games with the mod time of symlinks 205333c89af1Smrg# (eg FreeBSD returns the mod time of the symlink's containing 205433c89af1Smrg# directory). 205533c89af1Smrgif ( 2056278eca22Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 205733c89af1Smrg if test "$*" = "X"; then 205833c89af1Smrg # -L didn't work. 2059278eca22Smrg set X `ls -t "$srcdir/configure" conftest.file` 206033c89af1Smrg fi 206133c89af1Smrg rm -f conftest.file 206233c89af1Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 206333c89af1Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 206433c89af1Smrg 206533c89af1Smrg # If neither matched, then we have a broken ls. This can happen 206633c89af1Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 206733c89af1Smrg # broken ls alias from the environment. This has actually 206833c89af1Smrg # happened. Such a system could not be considered "sane". 2069278eca22Smrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 207033c89af1Smrgalias in your environment" >&5 2071278eca22Smrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 207233c89af1Smrgalias in your environment" >&2;} 207333c89af1Smrg { (exit 1); exit 1; }; } 207433c89af1Smrg fi 207533c89af1Smrg 207633c89af1Smrg test "$2" = conftest.file 207733c89af1Smrg ) 207833c89af1Smrgthen 207933c89af1Smrg # Ok. 208033c89af1Smrg : 208133c89af1Smrgelse 2082278eca22Smrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 208333c89af1SmrgCheck your system clock" >&5 2084278eca22Smrg$as_echo "$as_me: error: newly created file is older than distributed files! 208533c89af1SmrgCheck your system clock" >&2;} 208633c89af1Smrg { (exit 1); exit 1; }; } 208733c89af1Smrgfi 2088278eca22Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2089278eca22Smrg$as_echo "yes" >&6; } 209033c89af1Smrgtest "$program_prefix" != NONE && 209133c89af1Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 209233c89af1Smrg# Use a double $ so make ignores it. 209333c89af1Smrgtest "$program_suffix" != NONE && 209433c89af1Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2095278eca22Smrg# Double any \ or $. 209633c89af1Smrg# By default was `s,x,x', remove it if useless. 2097278eca22Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2098278eca22Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 209933c89af1Smrg 210033c89af1Smrg# expand $ac_aux_dir to an absolute path 210133c89af1Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 210233c89af1Smrg 2103278eca22Smrgif test x"${MISSING+set}" != xset; then 2104278eca22Smrg case $am_aux_dir in 2105278eca22Smrg *\ * | *\ *) 2106278eca22Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2107278eca22Smrg *) 2108278eca22Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2109278eca22Smrg esac 2110278eca22Smrgfi 211133c89af1Smrg# Use eval to expand $SHELL 211233c89af1Smrgif eval "$MISSING --run true"; then 211333c89af1Smrg am_missing_run="$MISSING --run " 211433c89af1Smrgelse 211533c89af1Smrg am_missing_run= 2116278eca22Smrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2117278eca22Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2118278eca22Smrgfi 2119278eca22Smrg 2120278eca22Smrgif test x"${install_sh}" != xset; then 2121278eca22Smrg case $am_aux_dir in 2122278eca22Smrg *\ * | *\ *) 2123278eca22Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2124278eca22Smrg *) 2125278eca22Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2126278eca22Smrg esac 2127278eca22Smrgfi 2128278eca22Smrg 2129278eca22Smrg# Installed binaries are usually stripped using `strip' when the user 2130278eca22Smrg# run `make install-strip'. However `strip' might not be the right 2131278eca22Smrg# tool to use in cross-compilation environments, therefore Automake 2132278eca22Smrg# will honor the `STRIP' environment variable to overrule this program. 2133278eca22Smrgif test "$cross_compiling" != no; then 2134278eca22Smrg if test -n "$ac_tool_prefix"; then 2135278eca22Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2136278eca22Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2137278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2138278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 2139278eca22Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 2140278eca22Smrg $as_echo_n "(cached) " >&6 2141278eca22Smrgelse 2142278eca22Smrg if test -n "$STRIP"; then 2143278eca22Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2144278eca22Smrgelse 2145278eca22Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2146278eca22Smrgfor as_dir in $PATH 2147278eca22Smrgdo 2148278eca22Smrg IFS=$as_save_IFS 2149278eca22Smrg test -z "$as_dir" && as_dir=. 2150278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2151278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2152278eca22Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2153278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2154278eca22Smrg break 2 2155278eca22Smrg fi 2156278eca22Smrgdone 2157278eca22Smrgdone 2158278eca22SmrgIFS=$as_save_IFS 2159278eca22Smrg 2160278eca22Smrgfi 2161278eca22Smrgfi 2162278eca22SmrgSTRIP=$ac_cv_prog_STRIP 2163278eca22Smrgif test -n "$STRIP"; then 2164278eca22Smrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2165278eca22Smrg$as_echo "$STRIP" >&6; } 2166278eca22Smrgelse 2167278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2168278eca22Smrg$as_echo "no" >&6; } 2169278eca22Smrgfi 2170278eca22Smrg 2171278eca22Smrg 2172278eca22Smrgfi 2173278eca22Smrgif test -z "$ac_cv_prog_STRIP"; then 2174278eca22Smrg ac_ct_STRIP=$STRIP 2175278eca22Smrg # Extract the first word of "strip", so it can be a program name with args. 2176278eca22Smrgset dummy strip; ac_word=$2 2177278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2178278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 2179278eca22Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2180278eca22Smrg $as_echo_n "(cached) " >&6 2181278eca22Smrgelse 2182278eca22Smrg if test -n "$ac_ct_STRIP"; then 2183278eca22Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2184278eca22Smrgelse 2185278eca22Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186278eca22Smrgfor as_dir in $PATH 2187278eca22Smrgdo 2188278eca22Smrg IFS=$as_save_IFS 2189278eca22Smrg test -z "$as_dir" && as_dir=. 2190278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2191278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192278eca22Smrg ac_cv_prog_ac_ct_STRIP="strip" 2193278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194278eca22Smrg break 2 2195278eca22Smrg fi 2196278eca22Smrgdone 2197278eca22Smrgdone 2198278eca22SmrgIFS=$as_save_IFS 2199278eca22Smrg 2200278eca22Smrgfi 2201278eca22Smrgfi 2202278eca22Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2203278eca22Smrgif test -n "$ac_ct_STRIP"; then 2204278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2205278eca22Smrg$as_echo "$ac_ct_STRIP" >&6; } 2206278eca22Smrgelse 2207278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2208278eca22Smrg$as_echo "no" >&6; } 2209278eca22Smrgfi 2210278eca22Smrg 2211278eca22Smrg if test "x$ac_ct_STRIP" = x; then 2212278eca22Smrg STRIP=":" 2213278eca22Smrg else 2214278eca22Smrg case $cross_compiling:$ac_tool_warned in 2215278eca22Smrgyes:) 2216278eca22Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2217278eca22Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2218278eca22Smrgac_tool_warned=yes ;; 2219278eca22Smrgesac 2220278eca22Smrg STRIP=$ac_ct_STRIP 2221278eca22Smrg fi 2222278eca22Smrgelse 2223278eca22Smrg STRIP="$ac_cv_prog_STRIP" 2224278eca22Smrgfi 2225278eca22Smrg 2226278eca22Smrgfi 2227278eca22SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2228278eca22Smrg 2229278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2230278eca22Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2231278eca22Smrgif test -z "$MKDIR_P"; then 2232278eca22Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2233278eca22Smrg $as_echo_n "(cached) " >&6 2234278eca22Smrgelse 2235278eca22Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236278eca22Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2237278eca22Smrgdo 2238278eca22Smrg IFS=$as_save_IFS 2239278eca22Smrg test -z "$as_dir" && as_dir=. 2240278eca22Smrg for ac_prog in mkdir gmkdir; do 2241278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2242278eca22Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2243278eca22Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2244278eca22Smrg 'mkdir (GNU coreutils) '* | \ 2245278eca22Smrg 'mkdir (coreutils) '* | \ 2246278eca22Smrg 'mkdir (fileutils) '4.1*) 2247278eca22Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2248278eca22Smrg break 3;; 2249278eca22Smrg esac 2250278eca22Smrg done 2251278eca22Smrg done 2252278eca22Smrgdone 2253278eca22SmrgIFS=$as_save_IFS 2254278eca22Smrg 2255278eca22Smrgfi 2256278eca22Smrg 2257278eca22Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2258278eca22Smrg MKDIR_P="$ac_cv_path_mkdir -p" 225933c89af1Smrg else 2260278eca22Smrg # As a last resort, use the slow shell script. Don't cache a 2261278eca22Smrg # value for MKDIR_P within a source directory, because that will 2262278eca22Smrg # break other packages using the cache if that directory is 2263278eca22Smrg # removed, or if the value is a relative name. 2264278eca22Smrg test -d ./--version && rmdir ./--version 2265278eca22Smrg MKDIR_P="$ac_install_sh -d" 226633c89af1Smrg fi 226733c89af1Smrgfi 2268278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2269278eca22Smrg$as_echo "$MKDIR_P" >&6; } 2270278eca22Smrg 2271278eca22Smrgmkdir_p="$MKDIR_P" 2272278eca22Smrgcase $mkdir_p in 2273278eca22Smrg [\\/$]* | ?:[\\/]*) ;; 2274278eca22Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2275278eca22Smrgesac 227633c89af1Smrg 227733c89af1Smrgfor ac_prog in gawk mawk nawk awk 227833c89af1Smrgdo 227933c89af1Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 228033c89af1Smrgset dummy $ac_prog; ac_word=$2 2281278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2282278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 228333c89af1Smrgif test "${ac_cv_prog_AWK+set}" = set; then 2284278eca22Smrg $as_echo_n "(cached) " >&6 228533c89af1Smrgelse 228633c89af1Smrg if test -n "$AWK"; then 228733c89af1Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 228833c89af1Smrgelse 228933c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 229033c89af1Smrgfor as_dir in $PATH 229133c89af1Smrgdo 229233c89af1Smrg IFS=$as_save_IFS 229333c89af1Smrg test -z "$as_dir" && as_dir=. 229433c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2295278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 229633c89af1Smrg ac_cv_prog_AWK="$ac_prog" 2297278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 229833c89af1Smrg break 2 229933c89af1Smrg fi 230033c89af1Smrgdone 230133c89af1Smrgdone 230233c89af1SmrgIFS=$as_save_IFS 230333c89af1Smrg 230433c89af1Smrgfi 230533c89af1Smrgfi 230633c89af1SmrgAWK=$ac_cv_prog_AWK 230733c89af1Smrgif test -n "$AWK"; then 2308278eca22Smrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2309278eca22Smrg$as_echo "$AWK" >&6; } 231033c89af1Smrgelse 2311278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2312278eca22Smrg$as_echo "no" >&6; } 231333c89af1Smrgfi 231433c89af1Smrg 231533c89af1Smrg 231633c89af1Smrg test -n "$AWK" && break 231733c89af1Smrgdone 231833c89af1Smrg 2319278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2320278eca22Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2321278eca22Smrgset x ${MAKE-make} 2322278eca22Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 232333c89af1Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2324278eca22Smrg $as_echo_n "(cached) " >&6 232533c89af1Smrgelse 232633c89af1Smrg cat >conftest.make <<\_ACEOF 232733c89af1SmrgSHELL = /bin/sh 232833c89af1Smrgall: 232933c89af1Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 233033c89af1Smrg_ACEOF 233133c89af1Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 233233c89af1Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 233333c89af1Smrg *@@@%%%=?*=@@@%%%*) 233433c89af1Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 233533c89af1Smrg *) 233633c89af1Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 233733c89af1Smrgesac 233833c89af1Smrgrm -f conftest.make 233933c89af1Smrgfi 234033c89af1Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2341278eca22Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 2342278eca22Smrg$as_echo "yes" >&6; } 234333c89af1Smrg SET_MAKE= 234433c89af1Smrgelse 2345278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2346278eca22Smrg$as_echo "no" >&6; } 234733c89af1Smrg SET_MAKE="MAKE=${MAKE-make}" 234833c89af1Smrgfi 234933c89af1Smrg 235033c89af1Smrgrm -rf .tst 2>/dev/null 235133c89af1Smrgmkdir .tst 2>/dev/null 235233c89af1Smrgif test -d .tst; then 235333c89af1Smrg am__leading_dot=. 235433c89af1Smrgelse 235533c89af1Smrg am__leading_dot=_ 235633c89af1Smrgfi 235733c89af1Smrgrmdir .tst 2>/dev/null 235833c89af1Smrg 2359278eca22Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2360278eca22Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2361278eca22Smrg # is not polluted with repeated "-I." 2362278eca22Smrg am__isrc=' -I$(srcdir)' 2363278eca22Smrg # test to see if srcdir already configured 2364278eca22Smrg if test -f $srcdir/config.status; then 2365278eca22Smrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2366278eca22Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 236733c89af1Smrg { (exit 1); exit 1; }; } 2368278eca22Smrg fi 236933c89af1Smrgfi 237033c89af1Smrg 237133c89af1Smrg# test whether we have cygpath 237233c89af1Smrgif test -z "$CYGPATH_W"; then 237333c89af1Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 237433c89af1Smrg CYGPATH_W='cygpath -w' 237533c89af1Smrg else 237633c89af1Smrg CYGPATH_W=echo 237733c89af1Smrg fi 237833c89af1Smrgfi 237933c89af1Smrg 238033c89af1Smrg 238133c89af1Smrg# Define the identity of the package. 238233c89af1Smrg PACKAGE='editres' 2383278eca22Smrg VERSION='1.0.4' 238433c89af1Smrg 238533c89af1Smrg 238633c89af1Smrgcat >>confdefs.h <<_ACEOF 238733c89af1Smrg#define PACKAGE "$PACKAGE" 238833c89af1Smrg_ACEOF 238933c89af1Smrg 239033c89af1Smrg 239133c89af1Smrgcat >>confdefs.h <<_ACEOF 239233c89af1Smrg#define VERSION "$VERSION" 239333c89af1Smrg_ACEOF 239433c89af1Smrg 239533c89af1Smrg# Some tools Automake needs. 239633c89af1Smrg 239733c89af1SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 239833c89af1Smrg 239933c89af1Smrg 240033c89af1SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 240133c89af1Smrg 240233c89af1Smrg 240333c89af1SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 240433c89af1Smrg 240533c89af1Smrg 240633c89af1SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 240733c89af1Smrg 240833c89af1Smrg 240933c89af1SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 241033c89af1Smrg 241133c89af1Smrg# We need awk for the "check" target. The system "awk" is bad on 241233c89af1Smrg# some platforms. 241333c89af1Smrg# Always define AMTAR for backward compatibility. 241433c89af1Smrg 241533c89af1SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 241633c89af1Smrg 241733c89af1Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 241833c89af1Smrg 241933c89af1Smrg 242033c89af1Smrg 242133c89af1Smrg 242233c89af1Smrg 2423278eca22Smrg 2424278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2425278eca22Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 242633c89af1Smrg # Check whether --enable-maintainer-mode was given. 242733c89af1Smrgif test "${enable_maintainer_mode+set}" = set; then 242833c89af1Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 242933c89af1Smrgelse 243033c89af1Smrg USE_MAINTAINER_MODE=no 243133c89af1Smrgfi 243233c89af1Smrg 2433278eca22Smrg { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2434278eca22Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2435278eca22Smrg if test $USE_MAINTAINER_MODE = yes; then 243633c89af1Smrg MAINTAINER_MODE_TRUE= 243733c89af1Smrg MAINTAINER_MODE_FALSE='#' 243833c89af1Smrgelse 243933c89af1Smrg MAINTAINER_MODE_TRUE='#' 244033c89af1Smrg MAINTAINER_MODE_FALSE= 244133c89af1Smrgfi 244233c89af1Smrg 244333c89af1Smrg MAINT=$MAINTAINER_MODE_TRUE 244433c89af1Smrg 244533c89af1Smrg 244633c89af1Smrg 2447278eca22Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 2448278eca22Smrg 2449278eca22Smrg 2450278eca22Smrg 2451278eca22Smrg 2452278eca22Smrg 2453278eca22Smrg 2454278eca22Smrg 2455278eca22Smrg 2456278eca22Smrg 2457278eca22Smrg 2458278eca22Smrg 2459278eca22Smrg 246033c89af1Smrgac_config_headers="$ac_config_headers config.h" 246133c89af1Smrg 246233c89af1Smrg 246333c89af1Smrgac_ext=c 246433c89af1Smrgac_cpp='$CPP $CPPFLAGS' 246533c89af1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 246633c89af1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 246733c89af1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 246833c89af1Smrgif test -n "$ac_tool_prefix"; then 246933c89af1Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 247033c89af1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2471278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2472278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 247333c89af1Smrgif test "${ac_cv_prog_CC+set}" = set; then 2474278eca22Smrg $as_echo_n "(cached) " >&6 247533c89af1Smrgelse 247633c89af1Smrg if test -n "$CC"; then 247733c89af1Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 247833c89af1Smrgelse 247933c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 248033c89af1Smrgfor as_dir in $PATH 248133c89af1Smrgdo 248233c89af1Smrg IFS=$as_save_IFS 248333c89af1Smrg test -z "$as_dir" && as_dir=. 248433c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2485278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 248633c89af1Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2487278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 248833c89af1Smrg break 2 248933c89af1Smrg fi 249033c89af1Smrgdone 249133c89af1Smrgdone 249233c89af1SmrgIFS=$as_save_IFS 249333c89af1Smrg 249433c89af1Smrgfi 249533c89af1Smrgfi 249633c89af1SmrgCC=$ac_cv_prog_CC 249733c89af1Smrgif test -n "$CC"; then 2498278eca22Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2499278eca22Smrg$as_echo "$CC" >&6; } 250033c89af1Smrgelse 2501278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2502278eca22Smrg$as_echo "no" >&6; } 250333c89af1Smrgfi 250433c89af1Smrg 250533c89af1Smrg 250633c89af1Smrgfi 250733c89af1Smrgif test -z "$ac_cv_prog_CC"; then 250833c89af1Smrg ac_ct_CC=$CC 250933c89af1Smrg # Extract the first word of "gcc", so it can be a program name with args. 251033c89af1Smrgset dummy gcc; ac_word=$2 2511278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2512278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 251333c89af1Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2514278eca22Smrg $as_echo_n "(cached) " >&6 251533c89af1Smrgelse 251633c89af1Smrg if test -n "$ac_ct_CC"; then 251733c89af1Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 251833c89af1Smrgelse 251933c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 252033c89af1Smrgfor as_dir in $PATH 252133c89af1Smrgdo 252233c89af1Smrg IFS=$as_save_IFS 252333c89af1Smrg test -z "$as_dir" && as_dir=. 252433c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2525278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 252633c89af1Smrg ac_cv_prog_ac_ct_CC="gcc" 2527278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 252833c89af1Smrg break 2 252933c89af1Smrg fi 253033c89af1Smrgdone 253133c89af1Smrgdone 253233c89af1SmrgIFS=$as_save_IFS 253333c89af1Smrg 253433c89af1Smrgfi 253533c89af1Smrgfi 253633c89af1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 253733c89af1Smrgif test -n "$ac_ct_CC"; then 2538278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2539278eca22Smrg$as_echo "$ac_ct_CC" >&6; } 254033c89af1Smrgelse 2541278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2542278eca22Smrg$as_echo "no" >&6; } 254333c89af1Smrgfi 254433c89af1Smrg 254533c89af1Smrg if test "x$ac_ct_CC" = x; then 254633c89af1Smrg CC="" 254733c89af1Smrg else 254833c89af1Smrg case $cross_compiling:$ac_tool_warned in 254933c89af1Smrgyes:) 2550278eca22Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2551278eca22Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 255233c89af1Smrgac_tool_warned=yes ;; 255333c89af1Smrgesac 255433c89af1Smrg CC=$ac_ct_CC 255533c89af1Smrg fi 255633c89af1Smrgelse 255733c89af1Smrg CC="$ac_cv_prog_CC" 255833c89af1Smrgfi 255933c89af1Smrg 256033c89af1Smrgif test -z "$CC"; then 256133c89af1Smrg if test -n "$ac_tool_prefix"; then 256233c89af1Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 256333c89af1Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2564278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2565278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 256633c89af1Smrgif test "${ac_cv_prog_CC+set}" = set; then 2567278eca22Smrg $as_echo_n "(cached) " >&6 256833c89af1Smrgelse 256933c89af1Smrg if test -n "$CC"; then 257033c89af1Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 257133c89af1Smrgelse 257233c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 257333c89af1Smrgfor as_dir in $PATH 257433c89af1Smrgdo 257533c89af1Smrg IFS=$as_save_IFS 257633c89af1Smrg test -z "$as_dir" && as_dir=. 257733c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2578278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 257933c89af1Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2580278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 258133c89af1Smrg break 2 258233c89af1Smrg fi 258333c89af1Smrgdone 258433c89af1Smrgdone 258533c89af1SmrgIFS=$as_save_IFS 258633c89af1Smrg 258733c89af1Smrgfi 258833c89af1Smrgfi 258933c89af1SmrgCC=$ac_cv_prog_CC 259033c89af1Smrgif test -n "$CC"; then 2591278eca22Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2592278eca22Smrg$as_echo "$CC" >&6; } 259333c89af1Smrgelse 2594278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2595278eca22Smrg$as_echo "no" >&6; } 259633c89af1Smrgfi 259733c89af1Smrg 259833c89af1Smrg 259933c89af1Smrg fi 260033c89af1Smrgfi 260133c89af1Smrgif test -z "$CC"; then 260233c89af1Smrg # Extract the first word of "cc", so it can be a program name with args. 260333c89af1Smrgset dummy cc; ac_word=$2 2604278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2605278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 260633c89af1Smrgif test "${ac_cv_prog_CC+set}" = set; then 2607278eca22Smrg $as_echo_n "(cached) " >&6 260833c89af1Smrgelse 260933c89af1Smrg if test -n "$CC"; then 261033c89af1Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 261133c89af1Smrgelse 261233c89af1Smrg ac_prog_rejected=no 261333c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 261433c89af1Smrgfor as_dir in $PATH 261533c89af1Smrgdo 261633c89af1Smrg IFS=$as_save_IFS 261733c89af1Smrg test -z "$as_dir" && as_dir=. 261833c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2619278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 262033c89af1Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 262133c89af1Smrg ac_prog_rejected=yes 262233c89af1Smrg continue 262333c89af1Smrg fi 262433c89af1Smrg ac_cv_prog_CC="cc" 2625278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 262633c89af1Smrg break 2 262733c89af1Smrg fi 262833c89af1Smrgdone 262933c89af1Smrgdone 263033c89af1SmrgIFS=$as_save_IFS 263133c89af1Smrg 263233c89af1Smrgif test $ac_prog_rejected = yes; then 263333c89af1Smrg # We found a bogon in the path, so make sure we never use it. 263433c89af1Smrg set dummy $ac_cv_prog_CC 263533c89af1Smrg shift 263633c89af1Smrg if test $# != 0; then 263733c89af1Smrg # We chose a different compiler from the bogus one. 263833c89af1Smrg # However, it has the same basename, so the bogon will be chosen 263933c89af1Smrg # first if we set CC to just the basename; use the full file name. 264033c89af1Smrg shift 264133c89af1Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 264233c89af1Smrg fi 264333c89af1Smrgfi 264433c89af1Smrgfi 264533c89af1Smrgfi 264633c89af1SmrgCC=$ac_cv_prog_CC 264733c89af1Smrgif test -n "$CC"; then 2648278eca22Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2649278eca22Smrg$as_echo "$CC" >&6; } 265033c89af1Smrgelse 2651278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2652278eca22Smrg$as_echo "no" >&6; } 265333c89af1Smrgfi 265433c89af1Smrg 265533c89af1Smrg 265633c89af1Smrgfi 265733c89af1Smrgif test -z "$CC"; then 265833c89af1Smrg if test -n "$ac_tool_prefix"; then 265933c89af1Smrg for ac_prog in cl.exe 266033c89af1Smrg do 266133c89af1Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 266233c89af1Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2663278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2664278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 266533c89af1Smrgif test "${ac_cv_prog_CC+set}" = set; then 2666278eca22Smrg $as_echo_n "(cached) " >&6 266733c89af1Smrgelse 266833c89af1Smrg if test -n "$CC"; then 266933c89af1Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 267033c89af1Smrgelse 267133c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 267233c89af1Smrgfor as_dir in $PATH 267333c89af1Smrgdo 267433c89af1Smrg IFS=$as_save_IFS 267533c89af1Smrg test -z "$as_dir" && as_dir=. 267633c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2677278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 267833c89af1Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2679278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 268033c89af1Smrg break 2 268133c89af1Smrg fi 268233c89af1Smrgdone 268333c89af1Smrgdone 268433c89af1SmrgIFS=$as_save_IFS 268533c89af1Smrg 268633c89af1Smrgfi 268733c89af1Smrgfi 268833c89af1SmrgCC=$ac_cv_prog_CC 268933c89af1Smrgif test -n "$CC"; then 2690278eca22Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2691278eca22Smrg$as_echo "$CC" >&6; } 269233c89af1Smrgelse 2693278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2694278eca22Smrg$as_echo "no" >&6; } 269533c89af1Smrgfi 269633c89af1Smrg 269733c89af1Smrg 269833c89af1Smrg test -n "$CC" && break 269933c89af1Smrg done 270033c89af1Smrgfi 270133c89af1Smrgif test -z "$CC"; then 270233c89af1Smrg ac_ct_CC=$CC 270333c89af1Smrg for ac_prog in cl.exe 270433c89af1Smrgdo 270533c89af1Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 270633c89af1Smrgset dummy $ac_prog; ac_word=$2 2707278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2708278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 270933c89af1Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2710278eca22Smrg $as_echo_n "(cached) " >&6 271133c89af1Smrgelse 271233c89af1Smrg if test -n "$ac_ct_CC"; then 271333c89af1Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 271433c89af1Smrgelse 271533c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 271633c89af1Smrgfor as_dir in $PATH 271733c89af1Smrgdo 271833c89af1Smrg IFS=$as_save_IFS 271933c89af1Smrg test -z "$as_dir" && as_dir=. 272033c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2721278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 272233c89af1Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2723278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 272433c89af1Smrg break 2 272533c89af1Smrg fi 272633c89af1Smrgdone 272733c89af1Smrgdone 272833c89af1SmrgIFS=$as_save_IFS 272933c89af1Smrg 273033c89af1Smrgfi 273133c89af1Smrgfi 273233c89af1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 273333c89af1Smrgif test -n "$ac_ct_CC"; then 2734278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2735278eca22Smrg$as_echo "$ac_ct_CC" >&6; } 273633c89af1Smrgelse 2737278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2738278eca22Smrg$as_echo "no" >&6; } 273933c89af1Smrgfi 274033c89af1Smrg 274133c89af1Smrg 274233c89af1Smrg test -n "$ac_ct_CC" && break 274333c89af1Smrgdone 274433c89af1Smrg 274533c89af1Smrg if test "x$ac_ct_CC" = x; then 274633c89af1Smrg CC="" 274733c89af1Smrg else 274833c89af1Smrg case $cross_compiling:$ac_tool_warned in 274933c89af1Smrgyes:) 2750278eca22Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2751278eca22Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 275233c89af1Smrgac_tool_warned=yes ;; 275333c89af1Smrgesac 275433c89af1Smrg CC=$ac_ct_CC 275533c89af1Smrg fi 275633c89af1Smrgfi 275733c89af1Smrg 275833c89af1Smrgfi 275933c89af1Smrg 276033c89af1Smrg 2761278eca22Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2762278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2763278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 276433c89af1SmrgSee \`config.log' for more details." >&5 2765278eca22Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 276633c89af1SmrgSee \`config.log' for more details." >&2;} 2767278eca22Smrg { (exit 1); exit 1; }; }; } 276833c89af1Smrg 276933c89af1Smrg# Provide some information about the compiler. 2770278eca22Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2771278eca22Smrgset X $ac_compile 2772278eca22Smrgac_compiler=$2 277333c89af1Smrg{ (ac_try="$ac_compiler --version >&5" 277433c89af1Smrgcase "(($ac_try" in 277533c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 277633c89af1Smrg *) ac_try_echo=$ac_try;; 277733c89af1Smrgesac 2778278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2779278eca22Smrg$as_echo "$ac_try_echo") >&5 278033c89af1Smrg (eval "$ac_compiler --version >&5") 2>&5 278133c89af1Smrg ac_status=$? 2782278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 278333c89af1Smrg (exit $ac_status); } 278433c89af1Smrg{ (ac_try="$ac_compiler -v >&5" 278533c89af1Smrgcase "(($ac_try" in 278633c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 278733c89af1Smrg *) ac_try_echo=$ac_try;; 278833c89af1Smrgesac 2789278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2790278eca22Smrg$as_echo "$ac_try_echo") >&5 279133c89af1Smrg (eval "$ac_compiler -v >&5") 2>&5 279233c89af1Smrg ac_status=$? 2793278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 279433c89af1Smrg (exit $ac_status); } 279533c89af1Smrg{ (ac_try="$ac_compiler -V >&5" 279633c89af1Smrgcase "(($ac_try" in 279733c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 279833c89af1Smrg *) ac_try_echo=$ac_try;; 279933c89af1Smrgesac 2800278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2801278eca22Smrg$as_echo "$ac_try_echo") >&5 280233c89af1Smrg (eval "$ac_compiler -V >&5") 2>&5 280333c89af1Smrg ac_status=$? 2804278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 280533c89af1Smrg (exit $ac_status); } 280633c89af1Smrg 280733c89af1Smrgcat >conftest.$ac_ext <<_ACEOF 280833c89af1Smrg/* confdefs.h. */ 280933c89af1Smrg_ACEOF 281033c89af1Smrgcat confdefs.h >>conftest.$ac_ext 281133c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 281233c89af1Smrg/* end confdefs.h. */ 281333c89af1Smrg 281433c89af1Smrgint 281533c89af1Smrgmain () 281633c89af1Smrg{ 281733c89af1Smrg 281833c89af1Smrg ; 281933c89af1Smrg return 0; 282033c89af1Smrg} 282133c89af1Smrg_ACEOF 282233c89af1Smrgac_clean_files_save=$ac_clean_files 2823278eca22Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 282433c89af1Smrg# Try to create an executable without -o first, disregard a.out. 282533c89af1Smrg# It will help us diagnose broken compilers, and finding out an intuition 282633c89af1Smrg# of exeext. 2827278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2828278eca22Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 2829278eca22Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2830278eca22Smrg 2831278eca22Smrg# The possible output files: 2832278eca22Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2833278eca22Smrg 283433c89af1Smrgac_rmfiles= 283533c89af1Smrgfor ac_file in $ac_files 283633c89af1Smrgdo 283733c89af1Smrg case $ac_file in 2838278eca22Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 283933c89af1Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 284033c89af1Smrg esac 284133c89af1Smrgdone 284233c89af1Smrgrm -f $ac_rmfiles 284333c89af1Smrg 284433c89af1Smrgif { (ac_try="$ac_link_default" 284533c89af1Smrgcase "(($ac_try" in 284633c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 284733c89af1Smrg *) ac_try_echo=$ac_try;; 284833c89af1Smrgesac 2849278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2850278eca22Smrg$as_echo "$ac_try_echo") >&5 285133c89af1Smrg (eval "$ac_link_default") 2>&5 285233c89af1Smrg ac_status=$? 2853278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 285433c89af1Smrg (exit $ac_status); }; then 285533c89af1Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 285633c89af1Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 285733c89af1Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 285833c89af1Smrg# so that the user can short-circuit this test for compilers unknown to 285933c89af1Smrg# Autoconf. 2860278eca22Smrgfor ac_file in $ac_files '' 286133c89af1Smrgdo 286233c89af1Smrg test -f "$ac_file" || continue 286333c89af1Smrg case $ac_file in 2864278eca22Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 286533c89af1Smrg ;; 286633c89af1Smrg [ab].out ) 286733c89af1Smrg # We found the default executable, but exeext='' is most 286833c89af1Smrg # certainly right. 286933c89af1Smrg break;; 287033c89af1Smrg *.* ) 287133c89af1Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 287233c89af1Smrg then :; else 287333c89af1Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 287433c89af1Smrg fi 287533c89af1Smrg # We set ac_cv_exeext here because the later test for it is not 287633c89af1Smrg # safe: cross compilers may not add the suffix if given an `-o' 287733c89af1Smrg # argument, so we may need to know it at that point already. 287833c89af1Smrg # Even if this section looks crufty: it has the advantage of 287933c89af1Smrg # actually working. 288033c89af1Smrg break;; 288133c89af1Smrg * ) 288233c89af1Smrg break;; 288333c89af1Smrg esac 288433c89af1Smrgdone 288533c89af1Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 288633c89af1Smrg 288733c89af1Smrgelse 2888278eca22Smrg ac_file='' 2889278eca22Smrgfi 2890278eca22Smrg 2891278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2892278eca22Smrg$as_echo "$ac_file" >&6; } 2893278eca22Smrgif test -z "$ac_file"; then 2894278eca22Smrg $as_echo "$as_me: failed program was:" >&5 289533c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 289633c89af1Smrg 2897278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2898278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2899278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 290033c89af1SmrgSee \`config.log' for more details." >&5 2901278eca22Smrg$as_echo "$as_me: error: C compiler cannot create executables 290233c89af1SmrgSee \`config.log' for more details." >&2;} 2903278eca22Smrg { (exit 77); exit 77; }; }; } 290433c89af1Smrgfi 290533c89af1Smrg 290633c89af1Smrgac_exeext=$ac_cv_exeext 290733c89af1Smrg 290833c89af1Smrg# Check that the compiler produces executables we can run. If not, either 290933c89af1Smrg# the compiler is broken, or we cross compile. 2910278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2911278eca22Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 291233c89af1Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 291333c89af1Smrg# If not cross compiling, check that we can run a simple program. 291433c89af1Smrgif test "$cross_compiling" != yes; then 291533c89af1Smrg if { ac_try='./$ac_file' 291633c89af1Smrg { (case "(($ac_try" in 291733c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 291833c89af1Smrg *) ac_try_echo=$ac_try;; 291933c89af1Smrgesac 2920278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2921278eca22Smrg$as_echo "$ac_try_echo") >&5 292233c89af1Smrg (eval "$ac_try") 2>&5 292333c89af1Smrg ac_status=$? 2924278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 292533c89af1Smrg (exit $ac_status); }; }; then 292633c89af1Smrg cross_compiling=no 292733c89af1Smrg else 292833c89af1Smrg if test "$cross_compiling" = maybe; then 292933c89af1Smrg cross_compiling=yes 293033c89af1Smrg else 2931278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2932278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2933278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 293433c89af1SmrgIf you meant to cross compile, use \`--host'. 293533c89af1SmrgSee \`config.log' for more details." >&5 2936278eca22Smrg$as_echo "$as_me: error: cannot run C compiled programs. 293733c89af1SmrgIf you meant to cross compile, use \`--host'. 293833c89af1SmrgSee \`config.log' for more details." >&2;} 2939278eca22Smrg { (exit 1); exit 1; }; }; } 294033c89af1Smrg fi 294133c89af1Smrg fi 294233c89af1Smrgfi 2943278eca22Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2944278eca22Smrg$as_echo "yes" >&6; } 294533c89af1Smrg 2946278eca22Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 294733c89af1Smrgac_clean_files=$ac_clean_files_save 294833c89af1Smrg# Check that the compiler produces executables we can run. If not, either 294933c89af1Smrg# the compiler is broken, or we cross compile. 2950278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2951278eca22Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 2952278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2953278eca22Smrg$as_echo "$cross_compiling" >&6; } 295433c89af1Smrg 2955278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2956278eca22Smrg$as_echo_n "checking for suffix of executables... " >&6; } 295733c89af1Smrgif { (ac_try="$ac_link" 295833c89af1Smrgcase "(($ac_try" in 295933c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 296033c89af1Smrg *) ac_try_echo=$ac_try;; 296133c89af1Smrgesac 2962278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2963278eca22Smrg$as_echo "$ac_try_echo") >&5 296433c89af1Smrg (eval "$ac_link") 2>&5 296533c89af1Smrg ac_status=$? 2966278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 296733c89af1Smrg (exit $ac_status); }; then 296833c89af1Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 296933c89af1Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 297033c89af1Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 297133c89af1Smrg# `rm'. 297233c89af1Smrgfor ac_file in conftest.exe conftest conftest.*; do 297333c89af1Smrg test -f "$ac_file" || continue 297433c89af1Smrg case $ac_file in 2975278eca22Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 297633c89af1Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 297733c89af1Smrg break;; 297833c89af1Smrg * ) break;; 297933c89af1Smrg esac 298033c89af1Smrgdone 298133c89af1Smrgelse 2982278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2983278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2984278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 298533c89af1SmrgSee \`config.log' for more details." >&5 2986278eca22Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 298733c89af1SmrgSee \`config.log' for more details." >&2;} 2988278eca22Smrg { (exit 1); exit 1; }; }; } 298933c89af1Smrgfi 299033c89af1Smrg 299133c89af1Smrgrm -f conftest$ac_cv_exeext 2992278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2993278eca22Smrg$as_echo "$ac_cv_exeext" >&6; } 299433c89af1Smrg 299533c89af1Smrgrm -f conftest.$ac_ext 299633c89af1SmrgEXEEXT=$ac_cv_exeext 299733c89af1Smrgac_exeext=$EXEEXT 2998278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2999278eca22Smrg$as_echo_n "checking for suffix of object files... " >&6; } 300033c89af1Smrgif test "${ac_cv_objext+set}" = set; then 3001278eca22Smrg $as_echo_n "(cached) " >&6 300233c89af1Smrgelse 300333c89af1Smrg cat >conftest.$ac_ext <<_ACEOF 300433c89af1Smrg/* confdefs.h. */ 300533c89af1Smrg_ACEOF 300633c89af1Smrgcat confdefs.h >>conftest.$ac_ext 300733c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 300833c89af1Smrg/* end confdefs.h. */ 300933c89af1Smrg 301033c89af1Smrgint 301133c89af1Smrgmain () 301233c89af1Smrg{ 301333c89af1Smrg 301433c89af1Smrg ; 301533c89af1Smrg return 0; 301633c89af1Smrg} 301733c89af1Smrg_ACEOF 301833c89af1Smrgrm -f conftest.o conftest.obj 301933c89af1Smrgif { (ac_try="$ac_compile" 302033c89af1Smrgcase "(($ac_try" in 302133c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 302233c89af1Smrg *) ac_try_echo=$ac_try;; 302333c89af1Smrgesac 3024278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3025278eca22Smrg$as_echo "$ac_try_echo") >&5 302633c89af1Smrg (eval "$ac_compile") 2>&5 302733c89af1Smrg ac_status=$? 3028278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 302933c89af1Smrg (exit $ac_status); }; then 303033c89af1Smrg for ac_file in conftest.o conftest.obj conftest.*; do 303133c89af1Smrg test -f "$ac_file" || continue; 303233c89af1Smrg case $ac_file in 3033278eca22Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 303433c89af1Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 303533c89af1Smrg break;; 303633c89af1Smrg esac 303733c89af1Smrgdone 303833c89af1Smrgelse 3039278eca22Smrg $as_echo "$as_me: failed program was:" >&5 304033c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 304133c89af1Smrg 3042278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3043278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3044278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 304533c89af1SmrgSee \`config.log' for more details." >&5 3046278eca22Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 304733c89af1SmrgSee \`config.log' for more details." >&2;} 3048278eca22Smrg { (exit 1); exit 1; }; }; } 304933c89af1Smrgfi 305033c89af1Smrg 305133c89af1Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 305233c89af1Smrgfi 3053278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3054278eca22Smrg$as_echo "$ac_cv_objext" >&6; } 305533c89af1SmrgOBJEXT=$ac_cv_objext 305633c89af1Smrgac_objext=$OBJEXT 3057278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3058278eca22Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 305933c89af1Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 3060278eca22Smrg $as_echo_n "(cached) " >&6 306133c89af1Smrgelse 306233c89af1Smrg cat >conftest.$ac_ext <<_ACEOF 306333c89af1Smrg/* confdefs.h. */ 306433c89af1Smrg_ACEOF 306533c89af1Smrgcat confdefs.h >>conftest.$ac_ext 306633c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 306733c89af1Smrg/* end confdefs.h. */ 306833c89af1Smrg 306933c89af1Smrgint 307033c89af1Smrgmain () 307133c89af1Smrg{ 307233c89af1Smrg#ifndef __GNUC__ 307333c89af1Smrg choke me 307433c89af1Smrg#endif 307533c89af1Smrg 307633c89af1Smrg ; 307733c89af1Smrg return 0; 307833c89af1Smrg} 307933c89af1Smrg_ACEOF 308033c89af1Smrgrm -f conftest.$ac_objext 308133c89af1Smrgif { (ac_try="$ac_compile" 308233c89af1Smrgcase "(($ac_try" in 308333c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 308433c89af1Smrg *) ac_try_echo=$ac_try;; 308533c89af1Smrgesac 3086278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3087278eca22Smrg$as_echo "$ac_try_echo") >&5 308833c89af1Smrg (eval "$ac_compile") 2>conftest.er1 308933c89af1Smrg ac_status=$? 309033c89af1Smrg grep -v '^ *+' conftest.er1 >conftest.err 309133c89af1Smrg rm -f conftest.er1 309233c89af1Smrg cat conftest.err >&5 3093278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094278eca22Smrg (exit $ac_status); } && { 3095278eca22Smrg test -z "$ac_c_werror_flag" || 3096278eca22Smrg test ! -s conftest.err 3097278eca22Smrg } && test -s conftest.$ac_objext; then 309833c89af1Smrg ac_compiler_gnu=yes 309933c89af1Smrgelse 3100278eca22Smrg $as_echo "$as_me: failed program was:" >&5 310133c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 310233c89af1Smrg 310333c89af1Smrg ac_compiler_gnu=no 310433c89af1Smrgfi 310533c89af1Smrg 310633c89af1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 310733c89af1Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 310833c89af1Smrg 310933c89af1Smrgfi 3110278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3111278eca22Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3112278eca22Smrgif test $ac_compiler_gnu = yes; then 3113278eca22Smrg GCC=yes 3114278eca22Smrgelse 3115278eca22Smrg GCC= 3116278eca22Smrgfi 311733c89af1Smrgac_test_CFLAGS=${CFLAGS+set} 311833c89af1Smrgac_save_CFLAGS=$CFLAGS 3119278eca22Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3120278eca22Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 312133c89af1Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 3122278eca22Smrg $as_echo_n "(cached) " >&6 312333c89af1Smrgelse 312433c89af1Smrg ac_save_c_werror_flag=$ac_c_werror_flag 312533c89af1Smrg ac_c_werror_flag=yes 312633c89af1Smrg ac_cv_prog_cc_g=no 312733c89af1Smrg CFLAGS="-g" 312833c89af1Smrg cat >conftest.$ac_ext <<_ACEOF 312933c89af1Smrg/* confdefs.h. */ 313033c89af1Smrg_ACEOF 313133c89af1Smrgcat confdefs.h >>conftest.$ac_ext 313233c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 313333c89af1Smrg/* end confdefs.h. */ 313433c89af1Smrg 313533c89af1Smrgint 313633c89af1Smrgmain () 313733c89af1Smrg{ 313833c89af1Smrg 313933c89af1Smrg ; 314033c89af1Smrg return 0; 314133c89af1Smrg} 314233c89af1Smrg_ACEOF 314333c89af1Smrgrm -f conftest.$ac_objext 314433c89af1Smrgif { (ac_try="$ac_compile" 314533c89af1Smrgcase "(($ac_try" in 314633c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 314733c89af1Smrg *) ac_try_echo=$ac_try;; 314833c89af1Smrgesac 3149278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3150278eca22Smrg$as_echo "$ac_try_echo") >&5 315133c89af1Smrg (eval "$ac_compile") 2>conftest.er1 315233c89af1Smrg ac_status=$? 315333c89af1Smrg grep -v '^ *+' conftest.er1 >conftest.err 315433c89af1Smrg rm -f conftest.er1 315533c89af1Smrg cat conftest.err >&5 3156278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157278eca22Smrg (exit $ac_status); } && { 3158278eca22Smrg test -z "$ac_c_werror_flag" || 3159278eca22Smrg test ! -s conftest.err 3160278eca22Smrg } && test -s conftest.$ac_objext; then 316133c89af1Smrg ac_cv_prog_cc_g=yes 316233c89af1Smrgelse 3163278eca22Smrg $as_echo "$as_me: failed program was:" >&5 316433c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 316533c89af1Smrg 316633c89af1Smrg CFLAGS="" 316733c89af1Smrg cat >conftest.$ac_ext <<_ACEOF 316833c89af1Smrg/* confdefs.h. */ 316933c89af1Smrg_ACEOF 317033c89af1Smrgcat confdefs.h >>conftest.$ac_ext 317133c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 317233c89af1Smrg/* end confdefs.h. */ 317333c89af1Smrg 317433c89af1Smrgint 317533c89af1Smrgmain () 317633c89af1Smrg{ 317733c89af1Smrg 317833c89af1Smrg ; 317933c89af1Smrg return 0; 318033c89af1Smrg} 318133c89af1Smrg_ACEOF 318233c89af1Smrgrm -f conftest.$ac_objext 318333c89af1Smrgif { (ac_try="$ac_compile" 318433c89af1Smrgcase "(($ac_try" in 318533c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 318633c89af1Smrg *) ac_try_echo=$ac_try;; 318733c89af1Smrgesac 3188278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3189278eca22Smrg$as_echo "$ac_try_echo") >&5 319033c89af1Smrg (eval "$ac_compile") 2>conftest.er1 319133c89af1Smrg ac_status=$? 319233c89af1Smrg grep -v '^ *+' conftest.er1 >conftest.err 319333c89af1Smrg rm -f conftest.er1 319433c89af1Smrg cat conftest.err >&5 3195278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196278eca22Smrg (exit $ac_status); } && { 3197278eca22Smrg test -z "$ac_c_werror_flag" || 3198278eca22Smrg test ! -s conftest.err 3199278eca22Smrg } && test -s conftest.$ac_objext; then 320033c89af1Smrg : 320133c89af1Smrgelse 3202278eca22Smrg $as_echo "$as_me: failed program was:" >&5 320333c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 320433c89af1Smrg 320533c89af1Smrg ac_c_werror_flag=$ac_save_c_werror_flag 320633c89af1Smrg CFLAGS="-g" 320733c89af1Smrg cat >conftest.$ac_ext <<_ACEOF 320833c89af1Smrg/* confdefs.h. */ 320933c89af1Smrg_ACEOF 321033c89af1Smrgcat confdefs.h >>conftest.$ac_ext 321133c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 321233c89af1Smrg/* end confdefs.h. */ 321333c89af1Smrg 321433c89af1Smrgint 321533c89af1Smrgmain () 321633c89af1Smrg{ 321733c89af1Smrg 321833c89af1Smrg ; 321933c89af1Smrg return 0; 322033c89af1Smrg} 322133c89af1Smrg_ACEOF 322233c89af1Smrgrm -f conftest.$ac_objext 322333c89af1Smrgif { (ac_try="$ac_compile" 322433c89af1Smrgcase "(($ac_try" in 322533c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 322633c89af1Smrg *) ac_try_echo=$ac_try;; 322733c89af1Smrgesac 3228278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3229278eca22Smrg$as_echo "$ac_try_echo") >&5 323033c89af1Smrg (eval "$ac_compile") 2>conftest.er1 323133c89af1Smrg ac_status=$? 323233c89af1Smrg grep -v '^ *+' conftest.er1 >conftest.err 323333c89af1Smrg rm -f conftest.er1 323433c89af1Smrg cat conftest.err >&5 3235278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236278eca22Smrg (exit $ac_status); } && { 3237278eca22Smrg test -z "$ac_c_werror_flag" || 3238278eca22Smrg test ! -s conftest.err 3239278eca22Smrg } && test -s conftest.$ac_objext; then 324033c89af1Smrg ac_cv_prog_cc_g=yes 324133c89af1Smrgelse 3242278eca22Smrg $as_echo "$as_me: failed program was:" >&5 324333c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 324433c89af1Smrg 324533c89af1Smrg 324633c89af1Smrgfi 324733c89af1Smrg 324833c89af1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 324933c89af1Smrgfi 325033c89af1Smrg 325133c89af1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 325233c89af1Smrgfi 325333c89af1Smrg 325433c89af1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 325533c89af1Smrg ac_c_werror_flag=$ac_save_c_werror_flag 325633c89af1Smrgfi 3257278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3258278eca22Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 325933c89af1Smrgif test "$ac_test_CFLAGS" = set; then 326033c89af1Smrg CFLAGS=$ac_save_CFLAGS 326133c89af1Smrgelif test $ac_cv_prog_cc_g = yes; then 326233c89af1Smrg if test "$GCC" = yes; then 326333c89af1Smrg CFLAGS="-g -O2" 326433c89af1Smrg else 326533c89af1Smrg CFLAGS="-g" 326633c89af1Smrg fi 326733c89af1Smrgelse 326833c89af1Smrg if test "$GCC" = yes; then 326933c89af1Smrg CFLAGS="-O2" 327033c89af1Smrg else 327133c89af1Smrg CFLAGS= 327233c89af1Smrg fi 327333c89af1Smrgfi 3274278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3275278eca22Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 327633c89af1Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then 3277278eca22Smrg $as_echo_n "(cached) " >&6 327833c89af1Smrgelse 327933c89af1Smrg ac_cv_prog_cc_c89=no 328033c89af1Smrgac_save_CC=$CC 328133c89af1Smrgcat >conftest.$ac_ext <<_ACEOF 328233c89af1Smrg/* confdefs.h. */ 328333c89af1Smrg_ACEOF 328433c89af1Smrgcat confdefs.h >>conftest.$ac_ext 328533c89af1Smrgcat >>conftest.$ac_ext <<_ACEOF 328633c89af1Smrg/* end confdefs.h. */ 328733c89af1Smrg#include <stdarg.h> 328833c89af1Smrg#include <stdio.h> 328933c89af1Smrg#include <sys/types.h> 329033c89af1Smrg#include <sys/stat.h> 329133c89af1Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 329233c89af1Smrgstruct buf { int x; }; 329333c89af1SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 329433c89af1Smrgstatic char *e (p, i) 329533c89af1Smrg char **p; 329633c89af1Smrg int i; 329733c89af1Smrg{ 329833c89af1Smrg return p[i]; 329933c89af1Smrg} 330033c89af1Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 330133c89af1Smrg{ 330233c89af1Smrg char *s; 330333c89af1Smrg va_list v; 330433c89af1Smrg va_start (v,p); 330533c89af1Smrg s = g (p, va_arg (v,int)); 330633c89af1Smrg va_end (v); 330733c89af1Smrg return s; 330833c89af1Smrg} 330933c89af1Smrg 331033c89af1Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 331133c89af1Smrg function prototypes and stuff, but not '\xHH' hex character constants. 331233c89af1Smrg These don't provoke an error unfortunately, instead are silently treated 331333c89af1Smrg as 'x'. The following induces an error, until -std is added to get 331433c89af1Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 331533c89af1Smrg array size at least. It's necessary to write '\x00'==0 to get something 331633c89af1Smrg that's true only with -std. */ 331733c89af1Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 331833c89af1Smrg 331933c89af1Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 332033c89af1Smrg inside strings and character constants. */ 332133c89af1Smrg#define FOO(x) 'x' 332233c89af1Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 332333c89af1Smrg 332433c89af1Smrgint test (int i, double x); 332533c89af1Smrgstruct s1 {int (*f) (int a);}; 332633c89af1Smrgstruct s2 {int (*f) (double a);}; 332733c89af1Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 332833c89af1Smrgint argc; 332933c89af1Smrgchar **argv; 333033c89af1Smrgint 333133c89af1Smrgmain () 333233c89af1Smrg{ 333333c89af1Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 333433c89af1Smrg ; 333533c89af1Smrg return 0; 333633c89af1Smrg} 333733c89af1Smrg_ACEOF 333833c89af1Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 333933c89af1Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 334033c89af1Smrgdo 334133c89af1Smrg CC="$ac_save_CC $ac_arg" 334233c89af1Smrg rm -f conftest.$ac_objext 334333c89af1Smrgif { (ac_try="$ac_compile" 334433c89af1Smrgcase "(($ac_try" in 334533c89af1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 334633c89af1Smrg *) ac_try_echo=$ac_try;; 334733c89af1Smrgesac 3348278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3349278eca22Smrg$as_echo "$ac_try_echo") >&5 335033c89af1Smrg (eval "$ac_compile") 2>conftest.er1 335133c89af1Smrg ac_status=$? 335233c89af1Smrg grep -v '^ *+' conftest.er1 >conftest.err 335333c89af1Smrg rm -f conftest.er1 335433c89af1Smrg cat conftest.err >&5 3355278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3356278eca22Smrg (exit $ac_status); } && { 3357278eca22Smrg test -z "$ac_c_werror_flag" || 3358278eca22Smrg test ! -s conftest.err 3359278eca22Smrg } && test -s conftest.$ac_objext; then 336033c89af1Smrg ac_cv_prog_cc_c89=$ac_arg 336133c89af1Smrgelse 3362278eca22Smrg $as_echo "$as_me: failed program was:" >&5 336333c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5 336433c89af1Smrg 336533c89af1Smrg 336633c89af1Smrgfi 336733c89af1Smrg 336833c89af1Smrgrm -f core conftest.err conftest.$ac_objext 336933c89af1Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 337033c89af1Smrgdone 337133c89af1Smrgrm -f conftest.$ac_ext 337233c89af1SmrgCC=$ac_save_CC 337333c89af1Smrg 337433c89af1Smrgfi 337533c89af1Smrg# AC_CACHE_VAL 337633c89af1Smrgcase "x$ac_cv_prog_cc_c89" in 337733c89af1Smrg x) 3378278eca22Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 3379278eca22Smrg$as_echo "none needed" >&6; } ;; 338033c89af1Smrg xno) 3381278eca22Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3382278eca22Smrg$as_echo "unsupported" >&6; } ;; 338333c89af1Smrg *) 338433c89af1Smrg CC="$CC $ac_cv_prog_cc_c89" 3385278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3386278eca22Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 338733c89af1Smrgesac 338833c89af1Smrg 338933c89af1Smrg 339033c89af1Smrgac_ext=c 339133c89af1Smrgac_cpp='$CPP $CPPFLAGS' 339233c89af1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 339333c89af1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 339433c89af1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 339533c89af1SmrgDEPDIR="${am__leading_dot}deps" 339633c89af1Smrg 339733c89af1Smrgac_config_commands="$ac_config_commands depfiles" 339833c89af1Smrg 339933c89af1Smrg 340033c89af1Smrgam_make=${MAKE-make} 340133c89af1Smrgcat > confinc << 'END' 340233c89af1Smrgam__doit: 3403278eca22Smrg @echo this is the am__doit target 340433c89af1Smrg.PHONY: am__doit 340533c89af1SmrgEND 340633c89af1Smrg# If we don't find an include directive, just comment out the code. 3407278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3408278eca22Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 340933c89af1Smrgam__include="#" 341033c89af1Smrgam__quote= 341133c89af1Smrg_am_result=none 341233c89af1Smrg# First try GNU make style include. 341333c89af1Smrgecho "include confinc" > confmf 3414278eca22Smrg# Ignore all kinds of additional output from `make'. 3415278eca22Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 3416278eca22Smrg*the\ am__doit\ target*) 3417278eca22Smrg am__include=include 3418278eca22Smrg am__quote= 3419278eca22Smrg _am_result=GNU 3420278eca22Smrg ;; 3421278eca22Smrgesac 342233c89af1Smrg# Now try BSD make style include. 342333c89af1Smrgif test "$am__include" = "#"; then 342433c89af1Smrg echo '.include "confinc"' > confmf 3425278eca22Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 3426278eca22Smrg *the\ am__doit\ target*) 3427278eca22Smrg am__include=.include 3428278eca22Smrg am__quote="\"" 3429278eca22Smrg _am_result=BSD 3430278eca22Smrg ;; 3431278eca22Smrg esac 343233c89af1Smrgfi 343333c89af1Smrg 343433c89af1Smrg 3435278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3436278eca22Smrg$as_echo "$_am_result" >&6; } 343733c89af1Smrgrm -f confinc confmf 343833c89af1Smrg 343933c89af1Smrg# Check whether --enable-dependency-tracking was given. 344033c89af1Smrgif test "${enable_dependency_tracking+set}" = set; then 344133c89af1Smrg enableval=$enable_dependency_tracking; 344233c89af1Smrgfi 344333c89af1Smrg 344433c89af1Smrgif test "x$enable_dependency_tracking" != xno; then 344533c89af1Smrg am_depcomp="$ac_aux_dir/depcomp" 344633c89af1Smrg AMDEPBACKSLASH='\' 344733c89af1Smrgfi 3448278eca22Smrg if test "x$enable_dependency_tracking" != xno; then 344933c89af1Smrg AMDEP_TRUE= 345033c89af1Smrg AMDEP_FALSE='#' 345133c89af1Smrgelse 345233c89af1Smrg AMDEP_TRUE='#' 345333c89af1Smrg AMDEP_FALSE= 345433c89af1Smrgfi 345533c89af1Smrg 345633c89af1Smrg 345733c89af1Smrg 345833c89af1Smrgdepcc="$CC" am_compiler_list= 345933c89af1Smrg 3460278eca22Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3461278eca22Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 346233c89af1Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3463278eca22Smrg $as_echo_n "(cached) " >&6 346433c89af1Smrgelse 346533c89af1Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 346633c89af1Smrg # We make a subdir and do the tests there. Otherwise we can end up 346733c89af1Smrg # making bogus files that we don't know about and never remove. For 346833c89af1Smrg # instance it was reported that on HP-UX the gcc test will end up 346933c89af1Smrg # making a dummy file named `D' -- because `-MD' means `put the output 347033c89af1Smrg # in D'. 347133c89af1Smrg mkdir conftest.dir 347233c89af1Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 347333c89af1Smrg # using a relative directory. 347433c89af1Smrg cp "$am_depcomp" conftest.dir 347533c89af1Smrg cd conftest.dir 347633c89af1Smrg # We will build objects and dependencies in a subdirectory because 347733c89af1Smrg # it helps to detect inapplicable dependency modes. For instance 347833c89af1Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 347933c89af1Smrg # side effect of compilation, but ICC will put the dependencies in 348033c89af1Smrg # the current directory while Tru64 will put them in the object 348133c89af1Smrg # directory. 348233c89af1Smrg mkdir sub 348333c89af1Smrg 348433c89af1Smrg am_cv_CC_dependencies_compiler_type=none 348533c89af1Smrg if test "$am_compiler_list" = ""; then 348633c89af1Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 348733c89af1Smrg fi 3488278eca22Smrg am__universal=false 3489278eca22Smrg case " $depcc " in #( 3490278eca22Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3491278eca22Smrg esac 3492278eca22Smrg 349333c89af1Smrg for depmode in $am_compiler_list; do 349433c89af1Smrg # Setup a source with many dependencies, because some compilers 349533c89af1Smrg # like to wrap large dependency lists on column 80 (with \), and 349633c89af1Smrg # we should not choose a depcomp mode which is confused by this. 349733c89af1Smrg # 349833c89af1Smrg # We need to recreate these files for each test, as the compiler may 349933c89af1Smrg # overwrite some of them when testing with obscure command lines. 350033c89af1Smrg # This happens at least with the AIX C compiler. 350133c89af1Smrg : > sub/conftest.c 350233c89af1Smrg for i in 1 2 3 4 5 6; do 350333c89af1Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 350433c89af1Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 350533c89af1Smrg # Solaris 8's {/usr,}/bin/sh. 350633c89af1Smrg touch sub/conftst$i.h 350733c89af1Smrg done 350833c89af1Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 350933c89af1Smrg 3510278eca22Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3511278eca22Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3512278eca22Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3513278eca22Smrg # versions had trouble with output in subdirs 3514278eca22Smrg am__obj=sub/conftest.${OBJEXT-o} 3515278eca22Smrg am__minus_obj="-o $am__obj" 351633c89af1Smrg case $depmode in 3517278eca22Smrg gcc) 3518278eca22Smrg # This depmode causes a compiler race in universal mode. 3519278eca22Smrg test "$am__universal" = false || continue 3520278eca22Smrg ;; 352133c89af1Smrg nosideeffect) 352233c89af1Smrg # after this tag, mechanisms are not by side-effect, so they'll 352333c89af1Smrg # only be used when explicitly requested 352433c89af1Smrg if test "x$enable_dependency_tracking" = xyes; then 352533c89af1Smrg continue 352633c89af1Smrg else 352733c89af1Smrg break 352833c89af1Smrg fi 352933c89af1Smrg ;; 3530278eca22Smrg msvisualcpp | msvcmsys) 3531278eca22Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3532278eca22Smrg # not run yet. These depmodes are late enough in the game, and 3533278eca22Smrg # so weak that their functioning should not be impacted. 3534278eca22Smrg am__obj=conftest.${OBJEXT-o} 3535278eca22Smrg am__minus_obj= 3536278eca22Smrg ;; 353733c89af1Smrg none) break ;; 353833c89af1Smrg esac 353933c89af1Smrg if depmode=$depmode \ 3540278eca22Smrg source=sub/conftest.c object=$am__obj \ 354133c89af1Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3542278eca22Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 354333c89af1Smrg >/dev/null 2>conftest.err && 3544278eca22Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 354533c89af1Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3546278eca22Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 354733c89af1Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 354833c89af1Smrg # icc doesn't choke on unknown options, it will just issue warnings 354933c89af1Smrg # or remarks (even with -Werror). So we grep stderr for any message 355033c89af1Smrg # that says an option was ignored or not supported. 355133c89af1Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 355233c89af1Smrg # icc: Command line warning: ignoring option '-M'; no argument required 355333c89af1Smrg # The diagnosis changed in icc 8.0: 355433c89af1Smrg # icc: Command line remark: option '-MP' not supported 355533c89af1Smrg if (grep 'ignoring option' conftest.err || 355633c89af1Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 355733c89af1Smrg am_cv_CC_dependencies_compiler_type=$depmode 355833c89af1Smrg break 355933c89af1Smrg fi 356033c89af1Smrg fi 356133c89af1Smrg done 356233c89af1Smrg 356333c89af1Smrg cd .. 356433c89af1Smrg rm -rf conftest.dir 356533c89af1Smrgelse 356633c89af1Smrg am_cv_CC_dependencies_compiler_type=none 356733c89af1Smrgfi 356833c89af1Smrg 356933c89af1Smrgfi 3570278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3571278eca22Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 357233c89af1SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 357333c89af1Smrg 3574278eca22Smrg if 357533c89af1Smrg test "x$enable_dependency_tracking" != xno \ 357633c89af1Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 357733c89af1Smrg am__fastdepCC_TRUE= 357833c89af1Smrg am__fastdepCC_FALSE='#' 357933c89af1Smrgelse 358033c89af1Smrg am__fastdepCC_TRUE='#' 358133c89af1Smrg am__fastdepCC_FALSE= 358233c89af1Smrgfi 358333c89af1Smrg 358433c89af1Smrg 358533c89af1Smrg# Find a good install program. We prefer a C program (faster), 358633c89af1Smrg# so one script is as good as another. But avoid the broken or 358733c89af1Smrg# incompatible versions: 358833c89af1Smrg# SysV /etc/install, /usr/sbin/install 358933c89af1Smrg# SunOS /usr/etc/install 359033c89af1Smrg# IRIX /sbin/install 359133c89af1Smrg# AIX /bin/install 359233c89af1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 359333c89af1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 359433c89af1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 359533c89af1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 359633c89af1Smrg# OS/2's system install, which has a completely different semantic 359733c89af1Smrg# ./install, which can be erroneously created by make from ./install.sh. 3598278eca22Smrg# Reject install programs that cannot install multiple files. 3599278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3600278eca22Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 360133c89af1Smrgif test -z "$INSTALL"; then 360233c89af1Smrgif test "${ac_cv_path_install+set}" = set; then 3603278eca22Smrg $as_echo_n "(cached) " >&6 360433c89af1Smrgelse 360533c89af1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 360633c89af1Smrgfor as_dir in $PATH 360733c89af1Smrgdo 360833c89af1Smrg IFS=$as_save_IFS 360933c89af1Smrg test -z "$as_dir" && as_dir=. 361033c89af1Smrg # Account for people who put trailing slashes in PATH elements. 361133c89af1Smrgcase $as_dir/ in 361233c89af1Smrg ./ | .// | /cC/* | \ 361333c89af1Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 361433c89af1Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 361533c89af1Smrg /usr/ucb/* ) ;; 361633c89af1Smrg *) 361733c89af1Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 361833c89af1Smrg # Don't use installbsd from OSF since it installs stuff as root 361933c89af1Smrg # by default. 362033c89af1Smrg for ac_prog in ginstall scoinst install; do 362133c89af1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3622278eca22Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 362333c89af1Smrg if test $ac_prog = install && 362433c89af1Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 362533c89af1Smrg # AIX install. It has an incompatible calling convention. 362633c89af1Smrg : 362733c89af1Smrg elif test $ac_prog = install && 362833c89af1Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 362933c89af1Smrg # program-specific install script used by HP pwplus--don't use. 363033c89af1Smrg : 363133c89af1Smrg else 3632278eca22Smrg rm -rf conftest.one conftest.two conftest.dir 3633278eca22Smrg echo one > conftest.one 3634278eca22Smrg echo two > conftest.two 3635278eca22Smrg mkdir conftest.dir 3636278eca22Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3637278eca22Smrg test -s conftest.one && test -s conftest.two && 3638278eca22Smrg test -s conftest.dir/conftest.one && 3639278eca22Smrg test -s conftest.dir/conftest.two 3640278eca22Smrg then 3641278eca22Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3642278eca22Smrg break 3 3643278eca22Smrg fi 364433c89af1Smrg fi 364533c89af1Smrg fi 364633c89af1Smrg done 364733c89af1Smrg done 364833c89af1Smrg ;; 364933c89af1Smrgesac 3650278eca22Smrg 365133c89af1Smrgdone 365233c89af1SmrgIFS=$as_save_IFS 365333c89af1Smrg 3654278eca22Smrgrm -rf conftest.one conftest.two conftest.dir 365533c89af1Smrg 365633c89af1Smrgfi 365733c89af1Smrg if test "${ac_cv_path_install+set}" = set; then 365833c89af1Smrg INSTALL=$ac_cv_path_install 365933c89af1Smrg else 366033c89af1Smrg # As a last resort, use the slow shell script. Don't cache a 366133c89af1Smrg # value for INSTALL within a source directory, because that will 366233c89af1Smrg # break other packages using the cache if that directory is 366333c89af1Smrg # removed, or if the value is a relative name. 366433c89af1Smrg INSTALL=$ac_install_sh 366533c89af1Smrg fi 366633c89af1Smrgfi 3667278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3668278eca22Smrg$as_echo "$INSTALL" >&6; } 366933c89af1Smrg 367033c89af1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 367133c89af1Smrg# It thinks the first close brace ends the variable substitution. 367233c89af1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 367333c89af1Smrg 367433c89af1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 367533c89af1Smrg 367633c89af1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 367733c89af1Smrg 367833c89af1Smrg 367933c89af1Smrg 3680278eca22Smrgac_ext=c 3681278eca22Smrgac_cpp='$CPP $CPPFLAGS' 3682278eca22Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3683278eca22Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3684278eca22Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3685278eca22Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3686278eca22Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3687278eca22Smrg# On Suns, sometimes $CPP names a directory. 3688278eca22Smrgif test -n "$CPP" && test -d "$CPP"; then 3689278eca22Smrg CPP= 3690278eca22Smrgfi 3691278eca22Smrgif test -z "$CPP"; then 3692278eca22Smrg if test "${ac_cv_prog_CPP+set}" = set; then 3693278eca22Smrg $as_echo_n "(cached) " >&6 369433c89af1Smrgelse 3695278eca22Smrg # Double quotes because CPP needs to be expanded 3696278eca22Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3697278eca22Smrg do 3698278eca22Smrg ac_preproc_ok=false 3699278eca22Smrgfor ac_c_preproc_warn_flag in '' yes 370033c89af1Smrgdo 3701278eca22Smrg # Use a header file that comes with gcc, so configuring glibc 3702278eca22Smrg # with a fresh cross-compiler works. 3703278eca22Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3704278eca22Smrg # <limits.h> exists even on freestanding compilers. 3705278eca22Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3706278eca22Smrg # not just through cpp. "Syntax error" is here to catch this case. 3707278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 3708278eca22Smrg/* confdefs.h. */ 3709278eca22Smrg_ACEOF 3710278eca22Smrgcat confdefs.h >>conftest.$ac_ext 3711278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 3712278eca22Smrg/* end confdefs.h. */ 3713278eca22Smrg#ifdef __STDC__ 3714278eca22Smrg# include <limits.h> 3715278eca22Smrg#else 3716278eca22Smrg# include <assert.h> 3717278eca22Smrg#endif 3718278eca22Smrg Syntax error 3719278eca22Smrg_ACEOF 3720278eca22Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3721278eca22Smrgcase "(($ac_try" in 3722278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3723278eca22Smrg *) ac_try_echo=$ac_try;; 372433c89af1Smrgesac 3725278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3726278eca22Smrg$as_echo "$ac_try_echo") >&5 3727278eca22Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3728278eca22Smrg ac_status=$? 3729278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 3730278eca22Smrg rm -f conftest.er1 3731278eca22Smrg cat conftest.err >&5 3732278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733278eca22Smrg (exit $ac_status); } >/dev/null && { 3734278eca22Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3735278eca22Smrg test ! -s conftest.err 3736278eca22Smrg }; then 3737278eca22Smrg : 373833c89af1Smrgelse 3739278eca22Smrg $as_echo "$as_me: failed program was:" >&5 3740278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 374133c89af1Smrg 3742278eca22Smrg # Broken: fails on valid input. 3743278eca22Smrgcontinue 374433c89af1Smrgfi 374533c89af1Smrg 3746278eca22Smrgrm -f conftest.err conftest.$ac_ext 374733c89af1Smrg 3748278eca22Smrg # OK, works on sane cases. Now check whether nonexistent headers 3749278eca22Smrg # can be detected and how. 3750278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 3751278eca22Smrg/* confdefs.h. */ 3752278eca22Smrg_ACEOF 3753278eca22Smrgcat confdefs.h >>conftest.$ac_ext 3754278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 3755278eca22Smrg/* end confdefs.h. */ 3756278eca22Smrg#include <ac_nonexistent.h> 3757278eca22Smrg_ACEOF 3758278eca22Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3759278eca22Smrgcase "(($ac_try" in 3760278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3761278eca22Smrg *) ac_try_echo=$ac_try;; 376233c89af1Smrgesac 3763278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3764278eca22Smrg$as_echo "$ac_try_echo") >&5 3765278eca22Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3766278eca22Smrg ac_status=$? 3767278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 3768278eca22Smrg rm -f conftest.er1 3769278eca22Smrg cat conftest.err >&5 3770278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771278eca22Smrg (exit $ac_status); } >/dev/null && { 3772278eca22Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3773278eca22Smrg test ! -s conftest.err 3774278eca22Smrg }; then 3775278eca22Smrg # Broken: success on invalid input. 3776278eca22Smrgcontinue 377733c89af1Smrgelse 3778278eca22Smrg $as_echo "$as_me: failed program was:" >&5 3779278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 378033c89af1Smrg 3781278eca22Smrg # Passes both tests. 3782278eca22Smrgac_preproc_ok=: 3783278eca22Smrgbreak 378433c89af1Smrgfi 378533c89af1Smrg 3786278eca22Smrgrm -f conftest.err conftest.$ac_ext 378733c89af1Smrg 3788278eca22Smrgdone 3789278eca22Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3790278eca22Smrgrm -f conftest.err conftest.$ac_ext 3791278eca22Smrgif $ac_preproc_ok; then 3792278eca22Smrg break 379333c89af1Smrgfi 379433c89af1Smrg 3795278eca22Smrg done 3796278eca22Smrg ac_cv_prog_CPP=$CPP 379733c89af1Smrg 379833c89af1Smrgfi 3799278eca22Smrg CPP=$ac_cv_prog_CPP 380033c89af1Smrgelse 3801278eca22Smrg ac_cv_prog_CPP=$CPP 380233c89af1Smrgfi 3803278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3804278eca22Smrg$as_echo "$CPP" >&6; } 3805278eca22Smrgac_preproc_ok=false 3806278eca22Smrgfor ac_c_preproc_warn_flag in '' yes 3807278eca22Smrgdo 3808278eca22Smrg # Use a header file that comes with gcc, so configuring glibc 3809278eca22Smrg # with a fresh cross-compiler works. 3810278eca22Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3811278eca22Smrg # <limits.h> exists even on freestanding compilers. 3812278eca22Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3813278eca22Smrg # not just through cpp. "Syntax error" is here to catch this case. 3814278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 3815278eca22Smrg/* confdefs.h. */ 3816278eca22Smrg_ACEOF 3817278eca22Smrgcat confdefs.h >>conftest.$ac_ext 3818278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 3819278eca22Smrg/* end confdefs.h. */ 3820278eca22Smrg#ifdef __STDC__ 3821278eca22Smrg# include <limits.h> 3822278eca22Smrg#else 3823278eca22Smrg# include <assert.h> 3824278eca22Smrg#endif 3825278eca22Smrg Syntax error 3826278eca22Smrg_ACEOF 3827278eca22Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3828278eca22Smrgcase "(($ac_try" in 3829278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3830278eca22Smrg *) ac_try_echo=$ac_try;; 3831278eca22Smrgesac 3832278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3833278eca22Smrg$as_echo "$ac_try_echo") >&5 3834278eca22Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 383533c89af1Smrg ac_status=$? 3836278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 3837278eca22Smrg rm -f conftest.er1 3838278eca22Smrg cat conftest.err >&5 3839278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840278eca22Smrg (exit $ac_status); } >/dev/null && { 3841278eca22Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3842278eca22Smrg test ! -s conftest.err 3843278eca22Smrg }; then 3844278eca22Smrg : 384533c89af1Smrgelse 3846278eca22Smrg $as_echo "$as_me: failed program was:" >&5 3847278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 384833c89af1Smrg 3849278eca22Smrg # Broken: fails on valid input. 3850278eca22Smrgcontinue 385133c89af1Smrgfi 385233c89af1Smrg 3853278eca22Smrgrm -f conftest.err conftest.$ac_ext 385433c89af1Smrg 3855278eca22Smrg # OK, works on sane cases. Now check whether nonexistent headers 3856278eca22Smrg # can be detected and how. 3857278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 3858278eca22Smrg/* confdefs.h. */ 3859278eca22Smrg_ACEOF 3860278eca22Smrgcat confdefs.h >>conftest.$ac_ext 3861278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 3862278eca22Smrg/* end confdefs.h. */ 3863278eca22Smrg#include <ac_nonexistent.h> 3864278eca22Smrg_ACEOF 3865278eca22Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3866278eca22Smrgcase "(($ac_try" in 3867278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3868278eca22Smrg *) ac_try_echo=$ac_try;; 3869278eca22Smrgesac 3870278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3871278eca22Smrg$as_echo "$ac_try_echo") >&5 3872278eca22Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 387333c89af1Smrg ac_status=$? 3874278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 3875278eca22Smrg rm -f conftest.er1 3876278eca22Smrg cat conftest.err >&5 3877278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3878278eca22Smrg (exit $ac_status); } >/dev/null && { 3879278eca22Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3880278eca22Smrg test ! -s conftest.err 3881278eca22Smrg }; then 3882278eca22Smrg # Broken: success on invalid input. 3883278eca22Smrgcontinue 388433c89af1Smrgelse 3885278eca22Smrg $as_echo "$as_me: failed program was:" >&5 3886278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 3887278eca22Smrg 3888278eca22Smrg # Passes both tests. 3889278eca22Smrgac_preproc_ok=: 3890278eca22Smrgbreak 389133c89af1Smrgfi 3892278eca22Smrg 3893278eca22Smrgrm -f conftest.err conftest.$ac_ext 3894278eca22Smrg 3895278eca22Smrgdone 3896278eca22Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3897278eca22Smrgrm -f conftest.err conftest.$ac_ext 3898278eca22Smrgif $ac_preproc_ok; then 3899278eca22Smrg : 390033c89af1Smrgelse 3901278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3902278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3903278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3904278eca22SmrgSee \`config.log' for more details." >&5 3905278eca22Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3906278eca22SmrgSee \`config.log' for more details." >&2;} 3907278eca22Smrg { (exit 1); exit 1; }; }; } 390833c89af1Smrgfi 3909278eca22Smrg 3910278eca22Smrgac_ext=c 3911278eca22Smrgac_cpp='$CPP $CPPFLAGS' 3912278eca22Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913278eca22Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914278eca22Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3915278eca22Smrg 3916278eca22Smrg 3917278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3918278eca22Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3919278eca22Smrgif test "${ac_cv_path_GREP+set}" = set; then 3920278eca22Smrg $as_echo_n "(cached) " >&6 3921278eca22Smrgelse 3922278eca22Smrg if test -z "$GREP"; then 3923278eca22Smrg ac_path_GREP_found=false 3924278eca22Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3925278eca22Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3926278eca22Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3927278eca22Smrgdo 3928278eca22Smrg IFS=$as_save_IFS 3929278eca22Smrg test -z "$as_dir" && as_dir=. 3930278eca22Smrg for ac_prog in grep ggrep; do 3931278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3932278eca22Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3933278eca22Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3934278eca22Smrg# Check for GNU ac_path_GREP and select it if it is found. 3935278eca22Smrg # Check for GNU $ac_path_GREP 3936278eca22Smrgcase `"$ac_path_GREP" --version 2>&1` in 3937278eca22Smrg*GNU*) 3938278eca22Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3939278eca22Smrg*) 3940278eca22Smrg ac_count=0 3941278eca22Smrg $as_echo_n 0123456789 >"conftest.in" 3942278eca22Smrg while : 3943278eca22Smrg do 3944278eca22Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3945278eca22Smrg mv "conftest.tmp" "conftest.in" 3946278eca22Smrg cp "conftest.in" "conftest.nl" 3947278eca22Smrg $as_echo 'GREP' >> "conftest.nl" 3948278eca22Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3949278eca22Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3950278eca22Smrg ac_count=`expr $ac_count + 1` 3951278eca22Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3952278eca22Smrg # Best one so far, save it but keep looking for a better one 3953278eca22Smrg ac_cv_path_GREP="$ac_path_GREP" 3954278eca22Smrg ac_path_GREP_max=$ac_count 3955278eca22Smrg fi 3956278eca22Smrg # 10*(2^10) chars as input seems more than enough 3957278eca22Smrg test $ac_count -gt 10 && break 3958278eca22Smrg done 3959278eca22Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3960278eca22Smrgesac 3961278eca22Smrg 3962278eca22Smrg $ac_path_GREP_found && break 3 3963278eca22Smrg done 3964278eca22Smrg done 3965278eca22Smrgdone 3966278eca22SmrgIFS=$as_save_IFS 3967278eca22Smrg if test -z "$ac_cv_path_GREP"; then 3968278eca22Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3969278eca22Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3970278eca22Smrg { (exit 1); exit 1; }; } 3971278eca22Smrg fi 3972278eca22Smrgelse 3973278eca22Smrg ac_cv_path_GREP=$GREP 3974278eca22Smrgfi 3975278eca22Smrg 3976278eca22Smrgfi 3977278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3978278eca22Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3979278eca22Smrg GREP="$ac_cv_path_GREP" 3980278eca22Smrg 3981278eca22Smrg 3982278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3983278eca22Smrg$as_echo_n "checking for egrep... " >&6; } 3984278eca22Smrgif test "${ac_cv_path_EGREP+set}" = set; then 3985278eca22Smrg $as_echo_n "(cached) " >&6 3986278eca22Smrgelse 3987278eca22Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3988278eca22Smrg then ac_cv_path_EGREP="$GREP -E" 3989278eca22Smrg else 3990278eca22Smrg if test -z "$EGREP"; then 3991278eca22Smrg ac_path_EGREP_found=false 3992278eca22Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3993278eca22Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3994278eca22Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3995278eca22Smrgdo 3996278eca22Smrg IFS=$as_save_IFS 3997278eca22Smrg test -z "$as_dir" && as_dir=. 3998278eca22Smrg for ac_prog in egrep; do 3999278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4000278eca22Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4001278eca22Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4002278eca22Smrg# Check for GNU ac_path_EGREP and select it if it is found. 4003278eca22Smrg # Check for GNU $ac_path_EGREP 4004278eca22Smrgcase `"$ac_path_EGREP" --version 2>&1` in 4005278eca22Smrg*GNU*) 4006278eca22Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4007278eca22Smrg*) 4008278eca22Smrg ac_count=0 4009278eca22Smrg $as_echo_n 0123456789 >"conftest.in" 4010278eca22Smrg while : 4011278eca22Smrg do 4012278eca22Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4013278eca22Smrg mv "conftest.tmp" "conftest.in" 4014278eca22Smrg cp "conftest.in" "conftest.nl" 4015278eca22Smrg $as_echo 'EGREP' >> "conftest.nl" 4016278eca22Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4017278eca22Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4018278eca22Smrg ac_count=`expr $ac_count + 1` 4019278eca22Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4020278eca22Smrg # Best one so far, save it but keep looking for a better one 4021278eca22Smrg ac_cv_path_EGREP="$ac_path_EGREP" 4022278eca22Smrg ac_path_EGREP_max=$ac_count 4023278eca22Smrg fi 4024278eca22Smrg # 10*(2^10) chars as input seems more than enough 4025278eca22Smrg test $ac_count -gt 10 && break 4026278eca22Smrg done 4027278eca22Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4028278eca22Smrgesac 4029278eca22Smrg 4030278eca22Smrg $ac_path_EGREP_found && break 3 4031278eca22Smrg done 4032278eca22Smrg done 4033278eca22Smrgdone 4034278eca22SmrgIFS=$as_save_IFS 4035278eca22Smrg if test -z "$ac_cv_path_EGREP"; then 4036278eca22Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4037278eca22Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4038278eca22Smrg { (exit 1); exit 1; }; } 4039278eca22Smrg fi 4040278eca22Smrgelse 4041278eca22Smrg ac_cv_path_EGREP=$EGREP 4042278eca22Smrgfi 4043278eca22Smrg 4044278eca22Smrg fi 4045278eca22Smrgfi 4046278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4047278eca22Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 4048278eca22Smrg EGREP="$ac_cv_path_EGREP" 4049278eca22Smrg 4050278eca22Smrg 4051278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4052278eca22Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4053278eca22Smrgif test "${ac_cv_header_stdc+set}" = set; then 4054278eca22Smrg $as_echo_n "(cached) " >&6 4055278eca22Smrgelse 4056278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4057278eca22Smrg/* confdefs.h. */ 4058278eca22Smrg_ACEOF 4059278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4060278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4061278eca22Smrg/* end confdefs.h. */ 4062278eca22Smrg#include <stdlib.h> 4063278eca22Smrg#include <stdarg.h> 4064278eca22Smrg#include <string.h> 4065278eca22Smrg#include <float.h> 4066278eca22Smrg 4067278eca22Smrgint 4068278eca22Smrgmain () 4069278eca22Smrg{ 4070278eca22Smrg 4071278eca22Smrg ; 4072278eca22Smrg return 0; 4073278eca22Smrg} 4074278eca22Smrg_ACEOF 4075278eca22Smrgrm -f conftest.$ac_objext 4076278eca22Smrgif { (ac_try="$ac_compile" 4077278eca22Smrgcase "(($ac_try" in 4078278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4079278eca22Smrg *) ac_try_echo=$ac_try;; 4080278eca22Smrgesac 4081278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4082278eca22Smrg$as_echo "$ac_try_echo") >&5 4083278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4084278eca22Smrg ac_status=$? 4085278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4086278eca22Smrg rm -f conftest.er1 4087278eca22Smrg cat conftest.err >&5 4088278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089278eca22Smrg (exit $ac_status); } && { 4090278eca22Smrg test -z "$ac_c_werror_flag" || 4091278eca22Smrg test ! -s conftest.err 4092278eca22Smrg } && test -s conftest.$ac_objext; then 4093278eca22Smrg ac_cv_header_stdc=yes 4094278eca22Smrgelse 4095278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4096278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4097278eca22Smrg 4098278eca22Smrg ac_cv_header_stdc=no 4099278eca22Smrgfi 4100278eca22Smrg 4101278eca22Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4102278eca22Smrg 4103278eca22Smrgif test $ac_cv_header_stdc = yes; then 4104278eca22Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4105278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4106278eca22Smrg/* confdefs.h. */ 4107278eca22Smrg_ACEOF 4108278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4109278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4110278eca22Smrg/* end confdefs.h. */ 4111278eca22Smrg#include <string.h> 4112278eca22Smrg 4113278eca22Smrg_ACEOF 4114278eca22Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4115278eca22Smrg $EGREP "memchr" >/dev/null 2>&1; then 4116278eca22Smrg : 4117278eca22Smrgelse 4118278eca22Smrg ac_cv_header_stdc=no 4119278eca22Smrgfi 4120278eca22Smrgrm -f conftest* 4121278eca22Smrg 4122278eca22Smrgfi 4123278eca22Smrg 4124278eca22Smrgif test $ac_cv_header_stdc = yes; then 4125278eca22Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4126278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4127278eca22Smrg/* confdefs.h. */ 4128278eca22Smrg_ACEOF 4129278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4130278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4131278eca22Smrg/* end confdefs.h. */ 4132278eca22Smrg#include <stdlib.h> 4133278eca22Smrg 4134278eca22Smrg_ACEOF 4135278eca22Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4136278eca22Smrg $EGREP "free" >/dev/null 2>&1; then 4137278eca22Smrg : 4138278eca22Smrgelse 4139278eca22Smrg ac_cv_header_stdc=no 4140278eca22Smrgfi 4141278eca22Smrgrm -f conftest* 4142278eca22Smrg 4143278eca22Smrgfi 4144278eca22Smrg 4145278eca22Smrgif test $ac_cv_header_stdc = yes; then 4146278eca22Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4147278eca22Smrg if test "$cross_compiling" = yes; then 4148278eca22Smrg : 4149278eca22Smrgelse 4150278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4151278eca22Smrg/* confdefs.h. */ 4152278eca22Smrg_ACEOF 4153278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4154278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4155278eca22Smrg/* end confdefs.h. */ 4156278eca22Smrg#include <ctype.h> 4157278eca22Smrg#include <stdlib.h> 4158278eca22Smrg#if ((' ' & 0x0FF) == 0x020) 4159278eca22Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4160278eca22Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4161278eca22Smrg#else 4162278eca22Smrg# define ISLOWER(c) \ 4163278eca22Smrg (('a' <= (c) && (c) <= 'i') \ 4164278eca22Smrg || ('j' <= (c) && (c) <= 'r') \ 4165278eca22Smrg || ('s' <= (c) && (c) <= 'z')) 4166278eca22Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4167278eca22Smrg#endif 4168278eca22Smrg 4169278eca22Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4170278eca22Smrgint 4171278eca22Smrgmain () 4172278eca22Smrg{ 4173278eca22Smrg int i; 4174278eca22Smrg for (i = 0; i < 256; i++) 4175278eca22Smrg if (XOR (islower (i), ISLOWER (i)) 4176278eca22Smrg || toupper (i) != TOUPPER (i)) 4177278eca22Smrg return 2; 4178278eca22Smrg return 0; 4179278eca22Smrg} 4180278eca22Smrg_ACEOF 4181278eca22Smrgrm -f conftest$ac_exeext 4182278eca22Smrgif { (ac_try="$ac_link" 4183278eca22Smrgcase "(($ac_try" in 4184278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4185278eca22Smrg *) ac_try_echo=$ac_try;; 4186278eca22Smrgesac 4187278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4188278eca22Smrg$as_echo "$ac_try_echo") >&5 4189278eca22Smrg (eval "$ac_link") 2>&5 4190278eca22Smrg ac_status=$? 4191278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192278eca22Smrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4193278eca22Smrg { (case "(($ac_try" in 4194278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4195278eca22Smrg *) ac_try_echo=$ac_try;; 4196278eca22Smrgesac 4197278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4198278eca22Smrg$as_echo "$ac_try_echo") >&5 4199278eca22Smrg (eval "$ac_try") 2>&5 4200278eca22Smrg ac_status=$? 4201278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202278eca22Smrg (exit $ac_status); }; }; then 4203278eca22Smrg : 4204278eca22Smrgelse 4205278eca22Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 4206278eca22Smrg$as_echo "$as_me: failed program was:" >&5 4207278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4208278eca22Smrg 4209278eca22Smrg( exit $ac_status ) 4210278eca22Smrgac_cv_header_stdc=no 4211278eca22Smrgfi 4212278eca22Smrgrm -rf conftest.dSYM 4213278eca22Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4214278eca22Smrgfi 4215278eca22Smrg 4216278eca22Smrg 4217278eca22Smrgfi 4218278eca22Smrgfi 4219278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4220278eca22Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4221278eca22Smrgif test $ac_cv_header_stdc = yes; then 4222278eca22Smrg 4223278eca22Smrgcat >>confdefs.h <<\_ACEOF 4224278eca22Smrg#define STDC_HEADERS 1 4225278eca22Smrg_ACEOF 4226278eca22Smrg 4227278eca22Smrgfi 4228278eca22Smrg 4229278eca22Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4230278eca22Smrg 4231278eca22Smrg 4232278eca22Smrg 4233278eca22Smrg 4234278eca22Smrg 4235278eca22Smrg 4236278eca22Smrg 4237278eca22Smrg 4238278eca22Smrg 4239278eca22Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4240278eca22Smrg inttypes.h stdint.h unistd.h 4241278eca22Smrgdo 4242278eca22Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4243278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4244278eca22Smrg$as_echo_n "checking for $ac_header... " >&6; } 4245278eca22Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4246278eca22Smrg $as_echo_n "(cached) " >&6 4247278eca22Smrgelse 4248278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4249278eca22Smrg/* confdefs.h. */ 4250278eca22Smrg_ACEOF 4251278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4252278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4253278eca22Smrg/* end confdefs.h. */ 4254278eca22Smrg$ac_includes_default 4255278eca22Smrg 4256278eca22Smrg#include <$ac_header> 4257278eca22Smrg_ACEOF 4258278eca22Smrgrm -f conftest.$ac_objext 4259278eca22Smrgif { (ac_try="$ac_compile" 4260278eca22Smrgcase "(($ac_try" in 4261278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4262278eca22Smrg *) ac_try_echo=$ac_try;; 4263278eca22Smrgesac 4264278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4265278eca22Smrg$as_echo "$ac_try_echo") >&5 4266278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4267278eca22Smrg ac_status=$? 4268278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4269278eca22Smrg rm -f conftest.er1 4270278eca22Smrg cat conftest.err >&5 4271278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272278eca22Smrg (exit $ac_status); } && { 4273278eca22Smrg test -z "$ac_c_werror_flag" || 4274278eca22Smrg test ! -s conftest.err 4275278eca22Smrg } && test -s conftest.$ac_objext; then 4276278eca22Smrg eval "$as_ac_Header=yes" 4277278eca22Smrgelse 4278278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4279278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4280278eca22Smrg 4281278eca22Smrg eval "$as_ac_Header=no" 4282278eca22Smrgfi 4283278eca22Smrg 4284278eca22Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4285278eca22Smrgfi 4286278eca22Smrgac_res=`eval 'as_val=${'$as_ac_Header'} 4287278eca22Smrg $as_echo "$as_val"'` 4288278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4289278eca22Smrg$as_echo "$ac_res" >&6; } 4290278eca22Smrgas_val=`eval 'as_val=${'$as_ac_Header'} 4291278eca22Smrg $as_echo "$as_val"'` 4292278eca22Smrg if test "x$as_val" = x""yes; then 4293278eca22Smrg cat >>confdefs.h <<_ACEOF 4294278eca22Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4295278eca22Smrg_ACEOF 4296278eca22Smrg 4297278eca22Smrgfi 4298278eca22Smrg 4299278eca22Smrgdone 4300278eca22Smrg 4301278eca22Smrg 4302278eca22Smrg { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4303278eca22Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4304278eca22Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then 4305278eca22Smrg $as_echo_n "(cached) " >&6 4306278eca22Smrgelse 4307278eca22Smrg ac_cv_prog_cc_c99=no 4308278eca22Smrgac_save_CC=$CC 4309278eca22Smrgcat >conftest.$ac_ext <<_ACEOF 4310278eca22Smrg/* confdefs.h. */ 4311278eca22Smrg_ACEOF 4312278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4313278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4314278eca22Smrg/* end confdefs.h. */ 4315278eca22Smrg#include <stdarg.h> 4316278eca22Smrg#include <stdbool.h> 4317278eca22Smrg#include <stdlib.h> 4318278eca22Smrg#include <wchar.h> 4319278eca22Smrg#include <stdio.h> 4320278eca22Smrg 4321278eca22Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4322278eca22Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4323278eca22Smrg#define showlist(...) puts (#__VA_ARGS__) 4324278eca22Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4325278eca22Smrgstatic void 4326278eca22Smrgtest_varargs_macros (void) 4327278eca22Smrg{ 4328278eca22Smrg int x = 1234; 4329278eca22Smrg int y = 5678; 4330278eca22Smrg debug ("Flag"); 4331278eca22Smrg debug ("X = %d\n", x); 4332278eca22Smrg showlist (The first, second, and third items.); 4333278eca22Smrg report (x>y, "x is %d but y is %d", x, y); 4334278eca22Smrg} 4335278eca22Smrg 4336278eca22Smrg// Check long long types. 4337278eca22Smrg#define BIG64 18446744073709551615ull 4338278eca22Smrg#define BIG32 4294967295ul 4339278eca22Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4340278eca22Smrg#if !BIG_OK 4341278eca22Smrg your preprocessor is broken; 4342278eca22Smrg#endif 4343278eca22Smrg#if BIG_OK 4344278eca22Smrg#else 4345278eca22Smrg your preprocessor is broken; 4346278eca22Smrg#endif 4347278eca22Smrgstatic long long int bignum = -9223372036854775807LL; 4348278eca22Smrgstatic unsigned long long int ubignum = BIG64; 4349278eca22Smrg 4350278eca22Smrgstruct incomplete_array 4351278eca22Smrg{ 4352278eca22Smrg int datasize; 4353278eca22Smrg double data[]; 4354278eca22Smrg}; 4355278eca22Smrg 4356278eca22Smrgstruct named_init { 4357278eca22Smrg int number; 4358278eca22Smrg const wchar_t *name; 4359278eca22Smrg double average; 4360278eca22Smrg}; 4361278eca22Smrg 4362278eca22Smrgtypedef const char *ccp; 4363278eca22Smrg 4364278eca22Smrgstatic inline int 4365278eca22Smrgtest_restrict (ccp restrict text) 4366278eca22Smrg{ 4367278eca22Smrg // See if C++-style comments work. 4368278eca22Smrg // Iterate through items via the restricted pointer. 4369278eca22Smrg // Also check for declarations in for loops. 4370278eca22Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4371278eca22Smrg continue; 4372278eca22Smrg return 0; 4373278eca22Smrg} 4374278eca22Smrg 4375278eca22Smrg// Check varargs and va_copy. 4376278eca22Smrgstatic void 4377278eca22Smrgtest_varargs (const char *format, ...) 4378278eca22Smrg{ 4379278eca22Smrg va_list args; 4380278eca22Smrg va_start (args, format); 4381278eca22Smrg va_list args_copy; 4382278eca22Smrg va_copy (args_copy, args); 4383278eca22Smrg 4384278eca22Smrg const char *str; 4385278eca22Smrg int number; 4386278eca22Smrg float fnumber; 4387278eca22Smrg 4388278eca22Smrg while (*format) 4389278eca22Smrg { 4390278eca22Smrg switch (*format++) 4391278eca22Smrg { 4392278eca22Smrg case 's': // string 4393278eca22Smrg str = va_arg (args_copy, const char *); 4394278eca22Smrg break; 4395278eca22Smrg case 'd': // int 4396278eca22Smrg number = va_arg (args_copy, int); 4397278eca22Smrg break; 4398278eca22Smrg case 'f': // float 4399278eca22Smrg fnumber = va_arg (args_copy, double); 4400278eca22Smrg break; 4401278eca22Smrg default: 4402278eca22Smrg break; 4403278eca22Smrg } 4404278eca22Smrg } 4405278eca22Smrg va_end (args_copy); 4406278eca22Smrg va_end (args); 4407278eca22Smrg} 4408278eca22Smrg 4409278eca22Smrgint 4410278eca22Smrgmain () 4411278eca22Smrg{ 4412278eca22Smrg 4413278eca22Smrg // Check bool. 4414278eca22Smrg _Bool success = false; 4415278eca22Smrg 4416278eca22Smrg // Check restrict. 4417278eca22Smrg if (test_restrict ("String literal") == 0) 4418278eca22Smrg success = true; 4419278eca22Smrg char *restrict newvar = "Another string"; 4420278eca22Smrg 4421278eca22Smrg // Check varargs. 4422278eca22Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4423278eca22Smrg test_varargs_macros (); 4424278eca22Smrg 4425278eca22Smrg // Check flexible array members. 4426278eca22Smrg struct incomplete_array *ia = 4427278eca22Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4428278eca22Smrg ia->datasize = 10; 4429278eca22Smrg for (int i = 0; i < ia->datasize; ++i) 4430278eca22Smrg ia->data[i] = i * 1.234; 4431278eca22Smrg 4432278eca22Smrg // Check named initializers. 4433278eca22Smrg struct named_init ni = { 4434278eca22Smrg .number = 34, 4435278eca22Smrg .name = L"Test wide string", 4436278eca22Smrg .average = 543.34343, 4437278eca22Smrg }; 4438278eca22Smrg 4439278eca22Smrg ni.number = 58; 4440278eca22Smrg 4441278eca22Smrg int dynamic_array[ni.number]; 4442278eca22Smrg dynamic_array[ni.number - 1] = 543; 4443278eca22Smrg 4444278eca22Smrg // work around unused variable warnings 4445278eca22Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4446278eca22Smrg || dynamic_array[ni.number - 1] != 543); 4447278eca22Smrg 4448278eca22Smrg ; 4449278eca22Smrg return 0; 4450278eca22Smrg} 4451278eca22Smrg_ACEOF 4452278eca22Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4453278eca22Smrgdo 4454278eca22Smrg CC="$ac_save_CC $ac_arg" 4455278eca22Smrg rm -f conftest.$ac_objext 4456278eca22Smrgif { (ac_try="$ac_compile" 4457278eca22Smrgcase "(($ac_try" in 4458278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4459278eca22Smrg *) ac_try_echo=$ac_try;; 4460278eca22Smrgesac 4461278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4462278eca22Smrg$as_echo "$ac_try_echo") >&5 4463278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4464278eca22Smrg ac_status=$? 4465278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4466278eca22Smrg rm -f conftest.er1 4467278eca22Smrg cat conftest.err >&5 4468278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469278eca22Smrg (exit $ac_status); } && { 4470278eca22Smrg test -z "$ac_c_werror_flag" || 4471278eca22Smrg test ! -s conftest.err 4472278eca22Smrg } && test -s conftest.$ac_objext; then 4473278eca22Smrg ac_cv_prog_cc_c99=$ac_arg 4474278eca22Smrgelse 4475278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4476278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4477278eca22Smrg 4478278eca22Smrg 4479278eca22Smrgfi 4480278eca22Smrg 4481278eca22Smrgrm -f core conftest.err conftest.$ac_objext 4482278eca22Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4483278eca22Smrgdone 4484278eca22Smrgrm -f conftest.$ac_ext 4485278eca22SmrgCC=$ac_save_CC 4486278eca22Smrg 4487278eca22Smrgfi 4488278eca22Smrg# AC_CACHE_VAL 4489278eca22Smrgcase "x$ac_cv_prog_cc_c99" in 4490278eca22Smrg x) 4491278eca22Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 4492278eca22Smrg$as_echo "none needed" >&6; } ;; 4493278eca22Smrg xno) 4494278eca22Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4495278eca22Smrg$as_echo "unsupported" >&6; } ;; 4496278eca22Smrg *) 4497278eca22Smrg CC="$CC $ac_cv_prog_cc_c99" 4498278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4499278eca22Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4500278eca22Smrgesac 4501278eca22Smrg 4502278eca22Smrg 4503278eca22Smrg 4504278eca22Smrg# Make sure we can run config.sub. 4505278eca22Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4506278eca22Smrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4507278eca22Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4508278eca22Smrg { (exit 1); exit 1; }; } 4509278eca22Smrg 4510278eca22Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4511278eca22Smrg$as_echo_n "checking build system type... " >&6; } 4512278eca22Smrgif test "${ac_cv_build+set}" = set; then 4513278eca22Smrg $as_echo_n "(cached) " >&6 4514278eca22Smrgelse 4515278eca22Smrg ac_build_alias=$build_alias 4516278eca22Smrgtest "x$ac_build_alias" = x && 4517278eca22Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4518278eca22Smrgtest "x$ac_build_alias" = x && 4519278eca22Smrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4520278eca22Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4521278eca22Smrg { (exit 1); exit 1; }; } 4522278eca22Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4523278eca22Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4524278eca22Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4525278eca22Smrg { (exit 1); exit 1; }; } 4526278eca22Smrg 4527278eca22Smrgfi 4528278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4529278eca22Smrg$as_echo "$ac_cv_build" >&6; } 4530278eca22Smrgcase $ac_cv_build in 4531278eca22Smrg*-*-*) ;; 4532278eca22Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4533278eca22Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4534278eca22Smrg { (exit 1); exit 1; }; };; 4535278eca22Smrgesac 4536278eca22Smrgbuild=$ac_cv_build 4537278eca22Smrgac_save_IFS=$IFS; IFS='-' 4538278eca22Smrgset x $ac_cv_build 4539278eca22Smrgshift 4540278eca22Smrgbuild_cpu=$1 4541278eca22Smrgbuild_vendor=$2 4542278eca22Smrgshift; shift 4543278eca22Smrg# Remember, the first character of IFS is used to create $*, 4544278eca22Smrg# except with old shells: 4545278eca22Smrgbuild_os=$* 4546278eca22SmrgIFS=$ac_save_IFS 4547278eca22Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4548278eca22Smrg 4549278eca22Smrg 4550278eca22Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4551278eca22Smrg$as_echo_n "checking host system type... " >&6; } 4552278eca22Smrgif test "${ac_cv_host+set}" = set; then 4553278eca22Smrg $as_echo_n "(cached) " >&6 455433c89af1Smrgelse 4555278eca22Smrg if test "x$host_alias" = x; then 4556278eca22Smrg ac_cv_host=$ac_cv_build 4557278eca22Smrgelse 4558278eca22Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4559278eca22Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4560278eca22Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4561278eca22Smrg { (exit 1); exit 1; }; } 4562278eca22Smrgfi 4563278eca22Smrg 4564278eca22Smrgfi 4565278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4566278eca22Smrg$as_echo "$ac_cv_host" >&6; } 4567278eca22Smrgcase $ac_cv_host in 4568278eca22Smrg*-*-*) ;; 4569278eca22Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4570278eca22Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4571278eca22Smrg { (exit 1); exit 1; }; };; 4572278eca22Smrgesac 4573278eca22Smrghost=$ac_cv_host 4574278eca22Smrgac_save_IFS=$IFS; IFS='-' 4575278eca22Smrgset x $ac_cv_host 4576278eca22Smrgshift 4577278eca22Smrghost_cpu=$1 4578278eca22Smrghost_vendor=$2 4579278eca22Smrgshift; shift 4580278eca22Smrg# Remember, the first character of IFS is used to create $*, 4581278eca22Smrg# except with old shells: 4582278eca22Smrghost_os=$* 4583278eca22SmrgIFS=$ac_save_IFS 4584278eca22Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4585278eca22Smrg 4586278eca22Smrg 4587278eca22Smrg 4588278eca22Smrg 4589278eca22Smrg 4590278eca22Smrgif test "x$GCC" = xyes ; then 4591278eca22Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4592278eca22Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4593278eca22Smrg-Wbad-function-cast" 4594278eca22Smrg case `$CC -dumpversion` in 4595278eca22Smrg 3.4.* | 4.*) 4596278eca22Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4597278eca22Smrg ;; 4598278eca22Smrg esac 4599278eca22Smrgelse 4600278eca22Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4601278eca22Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4602278eca22Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4603278eca22Smrg $as_echo_n "(cached) " >&6 4604278eca22Smrgelse 4605278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4606278eca22Smrg/* confdefs.h. */ 4607278eca22Smrg_ACEOF 4608278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4609278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4610278eca22Smrg/* end confdefs.h. */ 4611278eca22Smrg$ac_includes_default 4612278eca22Smrgint 4613278eca22Smrgmain () 4614278eca22Smrg{ 4615278eca22Smrg#ifndef __SUNPRO_C 4616278eca22Smrg (void) __SUNPRO_C; 4617278eca22Smrg#endif 4618278eca22Smrg 4619278eca22Smrg ; 4620278eca22Smrg return 0; 4621278eca22Smrg} 4622278eca22Smrg_ACEOF 4623278eca22Smrgrm -f conftest.$ac_objext 4624278eca22Smrgif { (ac_try="$ac_compile" 4625278eca22Smrgcase "(($ac_try" in 4626278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4627278eca22Smrg *) ac_try_echo=$ac_try;; 4628278eca22Smrgesac 4629278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4630278eca22Smrg$as_echo "$ac_try_echo") >&5 4631278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4632278eca22Smrg ac_status=$? 4633278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4634278eca22Smrg rm -f conftest.er1 4635278eca22Smrg cat conftest.err >&5 4636278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637278eca22Smrg (exit $ac_status); } && { 4638278eca22Smrg test -z "$ac_c_werror_flag" || 4639278eca22Smrg test ! -s conftest.err 4640278eca22Smrg } && test -s conftest.$ac_objext; then 4641278eca22Smrg ac_cv_have_decl___SUNPRO_C=yes 4642278eca22Smrgelse 4643278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4644278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4645278eca22Smrg 4646278eca22Smrg ac_cv_have_decl___SUNPRO_C=no 4647278eca22Smrgfi 4648278eca22Smrg 4649278eca22Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4650278eca22Smrgfi 4651278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4652278eca22Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4653278eca22Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4654278eca22Smrg SUNCC="yes" 4655278eca22Smrgelse 4656278eca22Smrg SUNCC="no" 4657278eca22Smrgfi 4658278eca22Smrg 4659278eca22Smrg if test "x$SUNCC" = "xyes"; then 4660278eca22Smrg CWARNFLAGS="-v" 4661278eca22Smrg fi 4662278eca22Smrgfi 4663278eca22Smrg 4664278eca22Smrg# Check whether --enable-silent-rules was given. 4665278eca22Smrgif test "${enable_silent_rules+set}" = set; then 4666278eca22Smrg enableval=$enable_silent_rules; 4667278eca22Smrgfi 4668278eca22Smrg 4669278eca22Smrgcase $enable_silent_rules in 4670278eca22Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4671278eca22Smrgno) AM_DEFAULT_VERBOSITY=1;; 4672278eca22Smrg*) AM_DEFAULT_VERBOSITY=0;; 4673278eca22Smrgesac 4674278eca22SmrgAM_BACKSLASH='\' 4675278eca22Smrg 4676278eca22Smrg 4677278eca22Smrg 4678278eca22Smrg 4679278eca22Smrg 4680278eca22Smrg 4681278eca22Smrg 4682278eca22Smrg# Check whether --enable-strict-compilation was given. 4683278eca22Smrgif test "${enable_strict_compilation+set}" = set; then 4684278eca22Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4685278eca22Smrgelse 4686278eca22Smrg STRICT_COMPILE=no 4687278eca22Smrgfi 4688278eca22Smrg 4689278eca22Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4690278eca22Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4691278eca22Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4692278eca22Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4693278eca22Smrg $as_echo_n "(cached) " >&6 4694278eca22Smrgelse 4695278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4696278eca22Smrg/* confdefs.h. */ 4697278eca22Smrg_ACEOF 4698278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4699278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4700278eca22Smrg/* end confdefs.h. */ 4701278eca22Smrg$ac_includes_default 4702278eca22Smrgint 4703278eca22Smrgmain () 4704278eca22Smrg{ 4705278eca22Smrg#ifndef __SUNPRO_C 4706278eca22Smrg (void) __SUNPRO_C; 4707278eca22Smrg#endif 4708278eca22Smrg 4709278eca22Smrg ; 4710278eca22Smrg return 0; 4711278eca22Smrg} 4712278eca22Smrg_ACEOF 4713278eca22Smrgrm -f conftest.$ac_objext 4714278eca22Smrgif { (ac_try="$ac_compile" 4715278eca22Smrgcase "(($ac_try" in 4716278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4717278eca22Smrg *) ac_try_echo=$ac_try;; 4718278eca22Smrgesac 4719278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4720278eca22Smrg$as_echo "$ac_try_echo") >&5 4721278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4722278eca22Smrg ac_status=$? 4723278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4724278eca22Smrg rm -f conftest.er1 4725278eca22Smrg cat conftest.err >&5 4726278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727278eca22Smrg (exit $ac_status); } && { 4728278eca22Smrg test -z "$ac_c_werror_flag" || 4729278eca22Smrg test ! -s conftest.err 4730278eca22Smrg } && test -s conftest.$ac_objext; then 4731278eca22Smrg ac_cv_have_decl___SUNPRO_C=yes 4732278eca22Smrgelse 4733278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4734278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4735278eca22Smrg 4736278eca22Smrg ac_cv_have_decl___SUNPRO_C=no 4737278eca22Smrgfi 4738278eca22Smrg 4739278eca22Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4740278eca22Smrgfi 4741278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4742278eca22Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4743278eca22Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4744278eca22Smrg SUNCC="yes" 4745278eca22Smrgelse 4746278eca22Smrg SUNCC="no" 4747278eca22Smrgfi 4748278eca22Smrg 4749278eca22Smrg { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4750278eca22Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4751278eca22Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4752278eca22Smrg $as_echo_n "(cached) " >&6 4753278eca22Smrgelse 4754278eca22Smrg cat >conftest.$ac_ext <<_ACEOF 4755278eca22Smrg/* confdefs.h. */ 4756278eca22Smrg_ACEOF 4757278eca22Smrgcat confdefs.h >>conftest.$ac_ext 4758278eca22Smrgcat >>conftest.$ac_ext <<_ACEOF 4759278eca22Smrg/* end confdefs.h. */ 4760278eca22Smrg$ac_includes_default 4761278eca22Smrgint 4762278eca22Smrgmain () 4763278eca22Smrg{ 4764278eca22Smrg#ifndef __INTEL_COMPILER 4765278eca22Smrg (void) __INTEL_COMPILER; 4766278eca22Smrg#endif 4767278eca22Smrg 4768278eca22Smrg ; 4769278eca22Smrg return 0; 4770278eca22Smrg} 4771278eca22Smrg_ACEOF 4772278eca22Smrgrm -f conftest.$ac_objext 4773278eca22Smrgif { (ac_try="$ac_compile" 4774278eca22Smrgcase "(($ac_try" in 4775278eca22Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4776278eca22Smrg *) ac_try_echo=$ac_try;; 4777278eca22Smrgesac 4778278eca22Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4779278eca22Smrg$as_echo "$ac_try_echo") >&5 4780278eca22Smrg (eval "$ac_compile") 2>conftest.er1 4781278eca22Smrg ac_status=$? 4782278eca22Smrg grep -v '^ *+' conftest.er1 >conftest.err 4783278eca22Smrg rm -f conftest.er1 4784278eca22Smrg cat conftest.err >&5 4785278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786278eca22Smrg (exit $ac_status); } && { 4787278eca22Smrg test -z "$ac_c_werror_flag" || 4788278eca22Smrg test ! -s conftest.err 4789278eca22Smrg } && test -s conftest.$ac_objext; then 4790278eca22Smrg ac_cv_have_decl___INTEL_COMPILER=yes 4791278eca22Smrgelse 4792278eca22Smrg $as_echo "$as_me: failed program was:" >&5 4793278eca22Smrgsed 's/^/| /' conftest.$ac_ext >&5 4794278eca22Smrg 4795278eca22Smrg ac_cv_have_decl___INTEL_COMPILER=no 4796278eca22Smrgfi 4797278eca22Smrg 4798278eca22Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4799278eca22Smrgfi 4800278eca22Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4801278eca22Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4802278eca22Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4803278eca22Smrg INTELCC="yes" 4804278eca22Smrgelse 4805278eca22Smrg INTELCC="no" 480633c89af1Smrgfi 4807278eca22Smrg 4808278eca22Smrg if test "x$GCC" = xyes ; then 4809278eca22Smrg STRICT_CFLAGS="-pedantic -Werror" 4810278eca22Smrg elif test "x$SUNCC" = "xyes"; then 4811278eca22Smrg STRICT_CFLAGS="-errwarn" 4812278eca22Smrg elif test "x$INTELCC" = "xyes"; then 4813278eca22Smrg STRICT_CFLAGS="-Werror" 4814278eca22Smrg fi 4815278eca22Smrgfi 4816278eca22SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4817278eca22Smrg 4818278eca22Smrg 4819278eca22Smrg 4820278eca22Smrg 4821278eca22Smrg# Check whether --with-release-version was given. 4822278eca22Smrgif test "${with_release_version+set}" = set; then 4823278eca22Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 482433c89af1Smrgelse 4825278eca22Smrg RELEASE_VERSION="" 4826278eca22Smrgfi 4827278eca22Smrg 4828278eca22Smrg if test "x$RELEASE_VERSION" != "x"; then 4829278eca22Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4830278eca22Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4831278eca22Smrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4832278eca22Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4833278eca22Smrg fi 4834278eca22Smrg 4835278eca22Smrgcat >>confdefs.h <<_ACEOF 4836278eca22Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4837278eca22Smrg_ACEOF 4838278eca22Smrg 4839278eca22Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4840278eca22Smrg if test "x$PVM" = "x"; then 4841278eca22Smrg PVM="0" 4842278eca22Smrg fi 4843278eca22Smrg 4844278eca22Smrgcat >>confdefs.h <<_ACEOF 4845278eca22Smrg#define PACKAGE_VERSION_MINOR $PVM 4846278eca22Smrg_ACEOF 4847278eca22Smrg 4848278eca22Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4849278eca22Smrg if test "x$PVP" = "x"; then 4850278eca22Smrg PVP="0" 4851278eca22Smrg fi 4852278eca22Smrg 4853278eca22Smrgcat >>confdefs.h <<_ACEOF 4854278eca22Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4855278eca22Smrg_ACEOF 4856278eca22Smrg 4857278eca22Smrg 4858278eca22Smrg 4859278eca22SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 4860278eca22Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 4861278eca22Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4862278eca22Smrg 4863278eca22Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 4864278eca22Smrg 4865278eca22Smrg 4866278eca22Smrg 4867278eca22Smrg 4868278eca22Smrg 4869278eca22Smrgif test x$APP_MAN_SUFFIX = x ; then 4870278eca22Smrg APP_MAN_SUFFIX=1 4871278eca22Smrgfi 4872278eca22Smrgif test x$APP_MAN_DIR = x ; then 4873278eca22Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4874278eca22Smrgfi 4875278eca22Smrg 4876278eca22Smrgif test x$LIB_MAN_SUFFIX = x ; then 4877278eca22Smrg LIB_MAN_SUFFIX=3 4878278eca22Smrgfi 4879278eca22Smrgif test x$LIB_MAN_DIR = x ; then 4880278eca22Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4881278eca22Smrgfi 4882278eca22Smrg 4883278eca22Smrgif test x$FILE_MAN_SUFFIX = x ; then 4884278eca22Smrg case $host_os in 4885278eca22Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4886278eca22Smrg *) FILE_MAN_SUFFIX=5 ;; 4887278eca22Smrg esac 4888278eca22Smrgfi 4889278eca22Smrgif test x$FILE_MAN_DIR = x ; then 4890278eca22Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4891278eca22Smrgfi 4892278eca22Smrg 4893278eca22Smrgif test x$MISC_MAN_SUFFIX = x ; then 4894278eca22Smrg case $host_os in 4895278eca22Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4896278eca22Smrg *) MISC_MAN_SUFFIX=7 ;; 4897278eca22Smrg esac 4898278eca22Smrgfi 4899278eca22Smrgif test x$MISC_MAN_DIR = x ; then 4900278eca22Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4901278eca22Smrgfi 4902278eca22Smrg 4903278eca22Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4904278eca22Smrg case $host_os in 4905278eca22Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4906278eca22Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4907278eca22Smrg esac 4908278eca22Smrgfi 4909278eca22Smrgif test x$DRIVER_MAN_DIR = x ; then 4910278eca22Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4911278eca22Smrgfi 4912278eca22Smrg 4913278eca22Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4914278eca22Smrg case $host_os in 4915278eca22Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4916278eca22Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4917278eca22Smrg esac 4918278eca22Smrgfi 4919278eca22Smrgif test x$ADMIN_MAN_DIR = x ; then 4920278eca22Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 492133c89af1Smrgfi 492233c89af1Smrg 492333c89af1Smrg 492433c89af1Smrg 492533c89af1Smrg 492633c89af1Smrg 492733c89af1Smrg 492833c89af1Smrg 492933c89af1Smrg 493033c89af1Smrg 493133c89af1Smrg 493233c89af1Smrg 493333c89af1Smrg 493433c89af1Smrg 493533c89af1Smrg 493633c89af1Smrg 493733c89af1Smrg 493833c89af1Smrg 4939278eca22Smrg# Checks for pkg-config packages 494033c89af1Smrg 494133c89af1Smrg 4942278eca22Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4943278eca22Smrg if test -n "$ac_tool_prefix"; then 4944278eca22Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4945278eca22Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4946278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4947278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 4948278eca22Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4949278eca22Smrg $as_echo_n "(cached) " >&6 495033c89af1Smrgelse 4951278eca22Smrg case $PKG_CONFIG in 4952278eca22Smrg [\\/]* | ?:[\\/]*) 4953278eca22Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4954278eca22Smrg ;; 4955278eca22Smrg *) 4956278eca22Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957278eca22Smrgfor as_dir in $PATH 4958278eca22Smrgdo 4959278eca22Smrg IFS=$as_save_IFS 4960278eca22Smrg test -z "$as_dir" && as_dir=. 4961278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4962278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4963278eca22Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4964278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4965278eca22Smrg break 2 4966278eca22Smrg fi 4967278eca22Smrgdone 4968278eca22Smrgdone 4969278eca22SmrgIFS=$as_save_IFS 4970278eca22Smrg 4971278eca22Smrg ;; 4972278eca22Smrgesac 4973278eca22Smrgfi 4974278eca22SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4975278eca22Smrgif test -n "$PKG_CONFIG"; then 4976278eca22Smrg { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4977278eca22Smrg$as_echo "$PKG_CONFIG" >&6; } 4978278eca22Smrgelse 4979278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 4980278eca22Smrg$as_echo "no" >&6; } 498133c89af1Smrgfi 498233c89af1Smrg 498333c89af1Smrg 4984278eca22Smrgfi 4985278eca22Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4986278eca22Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4987278eca22Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4988278eca22Smrgset dummy pkg-config; ac_word=$2 4989278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4990278eca22Smrg$as_echo_n "checking for $ac_word... " >&6; } 4991278eca22Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4992278eca22Smrg $as_echo_n "(cached) " >&6 4993278eca22Smrgelse 4994278eca22Smrg case $ac_pt_PKG_CONFIG in 4995278eca22Smrg [\\/]* | ?:[\\/]*) 4996278eca22Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4997278eca22Smrg ;; 4998278eca22Smrg *) 4999278eca22Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000278eca22Smrgfor as_dir in $PATH 5001278eca22Smrgdo 5002278eca22Smrg IFS=$as_save_IFS 5003278eca22Smrg test -z "$as_dir" && as_dir=. 5004278eca22Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5005278eca22Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5006278eca22Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5007278eca22Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5008278eca22Smrg break 2 5009278eca22Smrg fi 5010278eca22Smrgdone 5011278eca22Smrgdone 5012278eca22SmrgIFS=$as_save_IFS 501333c89af1Smrg 5014278eca22Smrg ;; 5015278eca22Smrgesac 5016278eca22Smrgfi 5017278eca22Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5018278eca22Smrgif test -n "$ac_pt_PKG_CONFIG"; then 5019278eca22Smrg { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 5020278eca22Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5021278eca22Smrgelse 5022278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 5023278eca22Smrg$as_echo "no" >&6; } 5024278eca22Smrgfi 502533c89af1Smrg 5026278eca22Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 5027278eca22Smrg PKG_CONFIG="" 5028278eca22Smrg else 5029278eca22Smrg case $cross_compiling:$ac_tool_warned in 5030278eca22Smrgyes:) 5031278eca22Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5032278eca22Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5033278eca22Smrgac_tool_warned=yes ;; 5034278eca22Smrgesac 5035278eca22Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 5036278eca22Smrg fi 5037278eca22Smrgelse 5038278eca22Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5039278eca22Smrgfi 504033c89af1Smrg 5041278eca22Smrgfi 504233c89af1Smrgif test -n "$PKG_CONFIG"; then 5043278eca22Smrg _pkg_min_version=0.9.0 5044278eca22Smrg { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 5045278eca22Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5046278eca22Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5047278eca22Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5048278eca22Smrg$as_echo "yes" >&6; } 5049278eca22Smrg else 5050278eca22Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 5051278eca22Smrg$as_echo "no" >&6; } 5052278eca22Smrg PKG_CONFIG="" 5053278eca22Smrg fi 5054278eca22Smrg 5055278eca22Smrgfi 5056278eca22Smrg 5057278eca22Smrgpkg_failed=no 5058278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for XAW" >&5 5059278eca22Smrg$as_echo_n "checking for XAW... " >&6; } 5060278eca22Smrg 5061278eca22Smrgif test -n "$XAW_CFLAGS"; then 5062278eca22Smrg pkg_cv_XAW_CFLAGS="$XAW_CFLAGS" 5063278eca22Smrg elif test -n "$PKG_CONFIG"; then 5064278eca22Smrg if test -n "$PKG_CONFIG" && \ 5065278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5 5066278eca22Smrg ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 506733c89af1Smrg ac_status=$? 5068278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 506933c89af1Smrg (exit $ac_status); }; then 5070278eca22Smrg pkg_cv_XAW_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 507133c89af1Smrgelse 507233c89af1Smrg pkg_failed=yes 507333c89af1Smrgfi 5074278eca22Smrg else 5075278eca22Smrg pkg_failed=untried 507633c89af1Smrgfi 5077278eca22Smrgif test -n "$XAW_LIBS"; then 5078278eca22Smrg pkg_cv_XAW_LIBS="$XAW_LIBS" 5079278eca22Smrg elif test -n "$PKG_CONFIG"; then 5080278eca22Smrg if test -n "$PKG_CONFIG" && \ 5081278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5 5082278eca22Smrg ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 508333c89af1Smrg ac_status=$? 5084278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 508533c89af1Smrg (exit $ac_status); }; then 5086278eca22Smrg pkg_cv_XAW_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 508733c89af1Smrgelse 508833c89af1Smrg pkg_failed=yes 508933c89af1Smrgfi 5090278eca22Smrg else 5091278eca22Smrg pkg_failed=untried 509233c89af1Smrgfi 509333c89af1Smrg 5094278eca22Smrg 5095278eca22Smrg 509633c89af1Smrgif test $pkg_failed = yes; then 5097278eca22Smrg 5098278eca22Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5099278eca22Smrg _pkg_short_errors_supported=yes 5100278eca22Smrgelse 5101278eca22Smrg _pkg_short_errors_supported=no 5102278eca22Smrgfi 5103278eca22Smrg if test $_pkg_short_errors_supported = yes; then 5104278eca22Smrg XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1` 5105278eca22Smrg else 5106278eca22Smrg XAW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1` 5107278eca22Smrg fi 510833c89af1Smrg # Put the nasty error message in config.log where it belongs 5109278eca22Smrg echo "$XAW_PKG_ERRORS" >&5 5110278eca22Smrg 5111278eca22Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (xaw7) were not met: 5112278eca22Smrg 5113278eca22Smrg$XAW_PKG_ERRORS 511433c89af1Smrg 511533c89af1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 511633c89af1Smrginstalled software in a non-standard prefix. 511733c89af1Smrg 5118278eca22SmrgAlternatively, you may set the environment variables XAW_CFLAGS 5119278eca22Smrgand XAW_LIBS to avoid the need to call pkg-config. 5120278eca22SmrgSee the pkg-config man page for more details. 5121278eca22Smrg" >&5 5122278eca22Smrg$as_echo "$as_me: error: Package requirements (xaw7) were not met: 5123278eca22Smrg 5124278eca22Smrg$XAW_PKG_ERRORS 5125278eca22Smrg 512633c89af1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 512733c89af1Smrginstalled software in a non-standard prefix. 512833c89af1Smrg 5129278eca22SmrgAlternatively, you may set the environment variables XAW_CFLAGS 5130278eca22Smrgand XAW_LIBS to avoid the need to call pkg-config. 5131278eca22SmrgSee the pkg-config man page for more details. 5132278eca22Smrg" >&2;} 513333c89af1Smrg { (exit 1); exit 1; }; } 513433c89af1Smrgelif test $pkg_failed = untried; then 5135278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5136278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5137278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 513833c89af1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 513933c89af1Smrgpath to pkg-config. 514033c89af1Smrg 5141278eca22SmrgAlternatively, you may set the environment variables XAW_CFLAGS 5142278eca22Smrgand XAW_LIBS to avoid the need to call pkg-config. 5143278eca22SmrgSee the pkg-config man page for more details. 514433c89af1Smrg 5145278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 514633c89af1SmrgSee \`config.log' for more details." >&5 5147278eca22Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 514833c89af1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 514933c89af1Smrgpath to pkg-config. 515033c89af1Smrg 5151278eca22SmrgAlternatively, you may set the environment variables XAW_CFLAGS 5152278eca22Smrgand XAW_LIBS to avoid the need to call pkg-config. 5153278eca22SmrgSee the pkg-config man page for more details. 515433c89af1Smrg 5155278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 515633c89af1SmrgSee \`config.log' for more details." >&2;} 5157278eca22Smrg { (exit 1); exit 1; }; }; } 515833c89af1Smrgelse 5159278eca22Smrg XAW_CFLAGS=$pkg_cv_XAW_CFLAGS 5160278eca22Smrg XAW_LIBS=$pkg_cv_XAW_LIBS 5161278eca22Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5162278eca22Smrg$as_echo "yes" >&6; } 516333c89af1Smrg : 516433c89af1Smrgfi 516533c89af1Smrg 5166278eca22Smrgpkg_failed=no 5167278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for EDITRES" >&5 5168278eca22Smrg$as_echo_n "checking for EDITRES... " >&6; } 5169278eca22Smrg 5170278eca22Smrgif test -n "$EDITRES_CFLAGS"; then 5171278eca22Smrg pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS" 5172278eca22Smrg elif test -n "$PKG_CONFIG"; then 5173278eca22Smrg if test -n "$PKG_CONFIG" && \ 5174278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xmu\"") >&5 5175278eca22Smrg ($PKG_CONFIG --exists --print-errors "x11 xt xmu") 2>&5 5176278eca22Smrg ac_status=$? 5177278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178278eca22Smrg (exit $ac_status); }; then 5179278eca22Smrg pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xmu" 2>/dev/null` 5180278eca22Smrgelse 5181278eca22Smrg pkg_failed=yes 518233c89af1Smrgfi 5183278eca22Smrg else 5184278eca22Smrg pkg_failed=untried 518533c89af1Smrgfi 5186278eca22Smrgif test -n "$EDITRES_LIBS"; then 5187278eca22Smrg pkg_cv_EDITRES_LIBS="$EDITRES_LIBS" 5188278eca22Smrg elif test -n "$PKG_CONFIG"; then 5189278eca22Smrg if test -n "$PKG_CONFIG" && \ 5190278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xmu\"") >&5 5191278eca22Smrg ($PKG_CONFIG --exists --print-errors "x11 xt xmu") 2>&5 5192278eca22Smrg ac_status=$? 5193278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194278eca22Smrg (exit $ac_status); }; then 5195278eca22Smrg pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "x11 xt xmu" 2>/dev/null` 5196278eca22Smrgelse 5197278eca22Smrg pkg_failed=yes 519833c89af1Smrgfi 5199278eca22Smrg else 5200278eca22Smrg pkg_failed=untried 520133c89af1Smrgfi 520233c89af1Smrg 5203278eca22Smrg 5204278eca22Smrg 5205278eca22Smrgif test $pkg_failed = yes; then 5206278eca22Smrg 5207278eca22Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5208278eca22Smrg _pkg_short_errors_supported=yes 5209278eca22Smrgelse 5210278eca22Smrg _pkg_short_errors_supported=no 521133c89af1Smrgfi 5212278eca22Smrg if test $_pkg_short_errors_supported = yes; then 5213278eca22Smrg EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt xmu" 2>&1` 5214278eca22Smrg else 5215278eca22Smrg EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt xmu" 2>&1` 5216278eca22Smrg fi 5217278eca22Smrg # Put the nasty error message in config.log where it belongs 5218278eca22Smrg echo "$EDITRES_PKG_ERRORS" >&5 521933c89af1Smrg 5220278eca22Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xt xmu) were not met: 522133c89af1Smrg 5222278eca22Smrg$EDITRES_PKG_ERRORS 522333c89af1Smrg 5224278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5225278eca22Smrginstalled software in a non-standard prefix. 5226278eca22Smrg 5227278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS 5228278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config. 5229278eca22SmrgSee the pkg-config man page for more details. 5230278eca22Smrg" >&5 5231278eca22Smrg$as_echo "$as_me: error: Package requirements (x11 xt xmu) were not met: 5232278eca22Smrg 5233278eca22Smrg$EDITRES_PKG_ERRORS 523433c89af1Smrg 5235278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5236278eca22Smrginstalled software in a non-standard prefix. 523733c89af1Smrg 5238278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS 5239278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config. 5240278eca22SmrgSee the pkg-config man page for more details. 5241278eca22Smrg" >&2;} 5242278eca22Smrg { (exit 1); exit 1; }; } 5243278eca22Smrgelif test $pkg_failed = untried; then 5244278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5245278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5246278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 5247278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5248278eca22Smrgpath to pkg-config. 524933c89af1Smrg 5250278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS 5251278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config. 5252278eca22SmrgSee the pkg-config man page for more details. 525333c89af1Smrg 5254278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5255278eca22SmrgSee \`config.log' for more details." >&5 5256278eca22Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 5257278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5258278eca22Smrgpath to pkg-config. 525933c89af1Smrg 5260278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS 5261278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config. 5262278eca22SmrgSee the pkg-config man page for more details. 526333c89af1Smrg 5264278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5265278eca22SmrgSee \`config.log' for more details." >&2;} 5266278eca22Smrg { (exit 1); exit 1; }; }; } 5267278eca22Smrgelse 5268278eca22Smrg EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS 5269278eca22Smrg EDITRES_LIBS=$pkg_cv_EDITRES_LIBS 5270278eca22Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5271278eca22Smrg$as_echo "yes" >&6; } 5272278eca22Smrg : 5273278eca22Smrgfi 5274278eca22SmrgEDITRES_CFLAGS="$EDITRES_CFLAGS $XAW_CFLAGS" 5275278eca22SmrgEDITRES_LIBS="$EDITRES_LIBS $XAW_LIBS" 527633c89af1Smrg 527733c89af1Smrg 527833c89af1Smrg 527933c89af1Smrg 5280278eca22Smrgpkg_failed=no 5281278eca22Smrg{ $as_echo "$as_me:$LINENO: checking for APPDEFS" >&5 5282278eca22Smrg$as_echo_n "checking for APPDEFS... " >&6; } 5283278eca22Smrg 5284278eca22Smrgif test -n "$APPDEFS_CFLAGS"; then 5285278eca22Smrg pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 5286278eca22Smrg elif test -n "$PKG_CONFIG"; then 5287278eca22Smrg if test -n "$PKG_CONFIG" && \ 5288278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 5289278eca22Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5290278eca22Smrg ac_status=$? 5291278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292278eca22Smrg (exit $ac_status); }; then 5293278eca22Smrg pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 5294278eca22Smrgelse 5295278eca22Smrg pkg_failed=yes 5296278eca22Smrgfi 5297278eca22Smrg else 5298278eca22Smrg pkg_failed=untried 5299278eca22Smrgfi 5300278eca22Smrgif test -n "$APPDEFS_LIBS"; then 5301278eca22Smrg pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 5302278eca22Smrg elif test -n "$PKG_CONFIG"; then 5303278eca22Smrg if test -n "$PKG_CONFIG" && \ 5304278eca22Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 5305278eca22Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5306278eca22Smrg ac_status=$? 5307278eca22Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308278eca22Smrg (exit $ac_status); }; then 5309278eca22Smrg pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 5310278eca22Smrgelse 5311278eca22Smrg pkg_failed=yes 5312278eca22Smrgfi 5313278eca22Smrg else 5314278eca22Smrg pkg_failed=untried 5315278eca22Smrgfi 531633c89af1Smrg 531733c89af1Smrg 531833c89af1Smrg 5319278eca22Smrgif test $pkg_failed = yes; then 532033c89af1Smrg 5321278eca22Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5322278eca22Smrg _pkg_short_errors_supported=yes 532333c89af1Smrgelse 5324278eca22Smrg _pkg_short_errors_supported=no 532533c89af1Smrgfi 5326278eca22Smrg if test $_pkg_short_errors_supported = yes; then 5327278eca22Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 5328278eca22Smrg else 5329278eca22Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 5330278eca22Smrg fi 5331278eca22Smrg # Put the nasty error message in config.log where it belongs 5332278eca22Smrg echo "$APPDEFS_PKG_ERRORS" >&5 533333c89af1Smrg 5334278eca22Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (xt) were not met: 533533c89af1Smrg 5336278eca22Smrg$APPDEFS_PKG_ERRORS 533733c89af1Smrg 5338278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5339278eca22Smrginstalled software in a non-standard prefix. 534033c89af1Smrg 5341278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5342278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5343278eca22SmrgSee the pkg-config man page for more details. 5344278eca22Smrg" >&5 5345278eca22Smrg$as_echo "$as_me: error: Package requirements (xt) were not met: 534633c89af1Smrg 5347278eca22Smrg$APPDEFS_PKG_ERRORS 534833c89af1Smrg 5349278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5350278eca22Smrginstalled software in a non-standard prefix. 5351278eca22Smrg 5352278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5353278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5354278eca22SmrgSee the pkg-config man page for more details. 5355278eca22Smrg" >&2;} 5356278eca22Smrg { (exit 1); exit 1; }; } 5357278eca22Smrgelif test $pkg_failed = untried; then 5358278eca22Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5359278eca22Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5360278eca22Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 5361278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5362278eca22Smrgpath to pkg-config. 5363278eca22Smrg 5364278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5365278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5366278eca22SmrgSee the pkg-config man page for more details. 5367278eca22Smrg 5368278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5369278eca22SmrgSee \`config.log' for more details." >&5 5370278eca22Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 5371278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5372278eca22Smrgpath to pkg-config. 5373278eca22Smrg 5374278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5375278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5376278eca22SmrgSee the pkg-config man page for more details. 5377278eca22Smrg 5378278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5379278eca22SmrgSee \`config.log' for more details." >&2;} 5380278eca22Smrg { (exit 1); exit 1; }; }; } 5381278eca22Smrgelse 5382278eca22Smrg APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 5383278eca22Smrg APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 5384278eca22Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 5385278eca22Smrg$as_echo "yes" >&6; } 5386278eca22Smrg : 5387278eca22Smrgfi 5388278eca22Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 5389278eca22Smrg 5390278eca22Smrg# Check whether --with-appdefaultdir was given. 5391278eca22Smrgif test "${with_appdefaultdir+set}" = set; then 5392278eca22Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 5393278eca22Smrgelse 5394278eca22Smrg appdefaultdir="${xt_appdefaultdir}" 5395278eca22Smrgfi 539633c89af1Smrg 539733c89af1Smrg 539833c89af1Smrg 539933c89af1Smrgac_config_files="$ac_config_files Makefile" 540033c89af1Smrg 540133c89af1Smrgcat >confcache <<\_ACEOF 540233c89af1Smrg# This file is a shell script that caches the results of configure 540333c89af1Smrg# tests run on this system so they can be shared between configure 540433c89af1Smrg# scripts and configure runs, see configure's option --config-cache. 540533c89af1Smrg# It is not useful on other systems. If it contains results you don't 540633c89af1Smrg# want to keep, you may remove or edit it. 540733c89af1Smrg# 540833c89af1Smrg# config.status only pays attention to the cache file if you give it 540933c89af1Smrg# the --recheck option to rerun configure. 541033c89af1Smrg# 541133c89af1Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 541233c89af1Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 541333c89af1Smrg# following values. 541433c89af1Smrg 541533c89af1Smrg_ACEOF 541633c89af1Smrg 541733c89af1Smrg# The following way of writing the cache mishandles newlines in values, 541833c89af1Smrg# but we know of no workaround that is simple, portable, and efficient. 541933c89af1Smrg# So, we kill variables containing newlines. 542033c89af1Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 542133c89af1Smrg# and sets the high bit in the cache file unless we assign to the vars. 542233c89af1Smrg( 542333c89af1Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 542433c89af1Smrg eval ac_val=\$$ac_var 542533c89af1Smrg case $ac_val in #( 542633c89af1Smrg *${as_nl}*) 542733c89af1Smrg case $ac_var in #( 5428278eca22Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 5429278eca22Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 543033c89af1Smrg esac 543133c89af1Smrg case $ac_var in #( 543233c89af1Smrg _ | IFS | as_nl) ;; #( 5433278eca22Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 543433c89af1Smrg *) $as_unset $ac_var ;; 543533c89af1Smrg esac ;; 543633c89af1Smrg esac 543733c89af1Smrg done 543833c89af1Smrg 543933c89af1Smrg (set) 2>&1 | 544033c89af1Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 544133c89af1Smrg *${as_nl}ac_space=\ *) 544233c89af1Smrg # `set' does not quote correctly, so add quotes (double-quote 544333c89af1Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 544433c89af1Smrg sed -n \ 544533c89af1Smrg "s/'/'\\\\''/g; 544633c89af1Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 544733c89af1Smrg ;; #( 544833c89af1Smrg *) 544933c89af1Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 545033c89af1Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 545133c89af1Smrg ;; 545233c89af1Smrg esac | 545333c89af1Smrg sort 545433c89af1Smrg) | 545533c89af1Smrg sed ' 545633c89af1Smrg /^ac_cv_env_/b end 545733c89af1Smrg t clear 545833c89af1Smrg :clear 545933c89af1Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 546033c89af1Smrg t end 546133c89af1Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 546233c89af1Smrg :end' >>confcache 546333c89af1Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 546433c89af1Smrg if test -w "$cache_file"; then 546533c89af1Smrg test "x$cache_file" != "x/dev/null" && 5466278eca22Smrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 5467278eca22Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 546833c89af1Smrg cat confcache >$cache_file 546933c89af1Smrg else 5470278eca22Smrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5471278eca22Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 547233c89af1Smrg fi 547333c89af1Smrgfi 547433c89af1Smrgrm -f confcache 547533c89af1Smrg 547633c89af1Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 547733c89af1Smrg# Let make expand exec_prefix. 547833c89af1Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 547933c89af1Smrg 548033c89af1SmrgDEFS=-DHAVE_CONFIG_H 548133c89af1Smrg 548233c89af1Smrgac_libobjs= 548333c89af1Smrgac_ltlibobjs= 548433c89af1Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 548533c89af1Smrg # 1. Remove the extension, and $U if already installed. 548633c89af1Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5487278eca22Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 548833c89af1Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 548933c89af1Smrg # will be set to the directory where LIBOBJS objects are built. 549033c89af1Smrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 549133c89af1Smrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 549233c89af1Smrgdone 549333c89af1SmrgLIBOBJS=$ac_libobjs 549433c89af1Smrg 549533c89af1SmrgLTLIBOBJS=$ac_ltlibobjs 549633c89af1Smrg 549733c89af1Smrg 5498278eca22Smrg if test -n "$EXEEXT"; then 5499278eca22Smrg am__EXEEXT_TRUE= 5500278eca22Smrg am__EXEEXT_FALSE='#' 5501278eca22Smrgelse 5502278eca22Smrg am__EXEEXT_TRUE='#' 5503278eca22Smrg am__EXEEXT_FALSE= 5504278eca22Smrgfi 5505278eca22Smrg 550633c89af1Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5507278eca22Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 550833c89af1SmrgUsually this means the macro was only invoked conditionally." >&5 5509278eca22Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 551033c89af1SmrgUsually this means the macro was only invoked conditionally." >&2;} 551133c89af1Smrg { (exit 1); exit 1; }; } 551233c89af1Smrgfi 551333c89af1Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5514278eca22Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 551533c89af1SmrgUsually this means the macro was only invoked conditionally." >&5 5516278eca22Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 551733c89af1SmrgUsually this means the macro was only invoked conditionally." >&2;} 551833c89af1Smrg { (exit 1); exit 1; }; } 551933c89af1Smrgfi 552033c89af1Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5521278eca22Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 552233c89af1SmrgUsually this means the macro was only invoked conditionally." >&5 5523278eca22Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 552433c89af1SmrgUsually this means the macro was only invoked conditionally." >&2;} 552533c89af1Smrg { (exit 1); exit 1; }; } 552633c89af1Smrgfi 552733c89af1Smrg 552833c89af1Smrg: ${CONFIG_STATUS=./config.status} 5529278eca22Smrgac_write_fail=0 553033c89af1Smrgac_clean_files_save=$ac_clean_files 553133c89af1Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5532278eca22Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5533278eca22Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5534278eca22Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 553533c89af1Smrg#! $SHELL 553633c89af1Smrg# Generated by $as_me. 553733c89af1Smrg# Run this file to recreate the current configuration. 553833c89af1Smrg# Compiler output produced by configure, useful for debugging 553933c89af1Smrg# configure, is in config.log if it exists. 554033c89af1Smrg 554133c89af1Smrgdebug=false 554233c89af1Smrgac_cs_recheck=false 554333c89af1Smrgac_cs_silent=false 554433c89af1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 554533c89af1Smrg_ACEOF 554633c89af1Smrg 5547278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 554833c89af1Smrg## --------------------- ## 554933c89af1Smrg## M4sh Initialization. ## 555033c89af1Smrg## --------------------- ## 555133c89af1Smrg 5552278eca22Smrg# Be more Bourne compatible 5553278eca22SmrgDUALCASE=1; export DUALCASE # for MKS sh 555433c89af1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 555533c89af1Smrg emulate sh 555633c89af1Smrg NULLCMD=: 5557278eca22Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 555833c89af1Smrg # is contrary to our usage. Disable this feature. 555933c89af1Smrg alias -g '${1+"$@"}'='"$@"' 556033c89af1Smrg setopt NO_GLOB_SUBST 556133c89af1Smrgelse 5562278eca22Smrg case `(set -o) 2>/dev/null` in 5563278eca22Smrg *posix*) set -o posix ;; 5564278eca22Smrgesac 5565278eca22Smrg 556633c89af1Smrgfi 5567278eca22Smrg 5568278eca22Smrg 556933c89af1Smrg 557033c89af1Smrg 557133c89af1Smrg# PATH needs CR 557233c89af1Smrg# Avoid depending upon Character Ranges. 557333c89af1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 557433c89af1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 557533c89af1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 557633c89af1Smrgas_cr_digits='0123456789' 557733c89af1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 557833c89af1Smrg 5579278eca22Smrgas_nl=' 5580278eca22Smrg' 5581278eca22Smrgexport as_nl 5582278eca22Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5583278eca22Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5584278eca22Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5585278eca22Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5586278eca22Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5587278eca22Smrg as_echo='printf %s\n' 5588278eca22Smrg as_echo_n='printf %s' 5589278eca22Smrgelse 5590278eca22Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5591278eca22Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5592278eca22Smrg as_echo_n='/usr/ucb/echo -n' 559333c89af1Smrg else 5594278eca22Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5595278eca22Smrg as_echo_n_body='eval 5596278eca22Smrg arg=$1; 5597278eca22Smrg case $arg in 5598278eca22Smrg *"$as_nl"*) 5599278eca22Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5600278eca22Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5601278eca22Smrg esac; 5602278eca22Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5603278eca22Smrg ' 5604278eca22Smrg export as_echo_n_body 5605278eca22Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 560633c89af1Smrg fi 5607278eca22Smrg export as_echo_body 5608278eca22Smrg as_echo='sh -c $as_echo_body as_echo' 5609278eca22Smrgfi 5610278eca22Smrg 5611278eca22Smrg# The user is always right. 5612278eca22Smrgif test "${PATH_SEPARATOR+set}" != set; then 5613278eca22Smrg PATH_SEPARATOR=: 5614278eca22Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5615278eca22Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5616278eca22Smrg PATH_SEPARATOR=';' 5617278eca22Smrg } 561833c89af1Smrgfi 561933c89af1Smrg 562033c89af1Smrg# Support unset when possible. 562133c89af1Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 562233c89af1Smrg as_unset=unset 562333c89af1Smrgelse 562433c89af1Smrg as_unset=false 562533c89af1Smrgfi 562633c89af1Smrg 562733c89af1Smrg 562833c89af1Smrg# IFS 562933c89af1Smrg# We need space, tab and new line, in precisely that order. Quoting is 563033c89af1Smrg# there to prevent editors from complaining about space-tab. 563133c89af1Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 563233c89af1Smrg# splitting by setting IFS to empty value.) 563333c89af1SmrgIFS=" "" $as_nl" 563433c89af1Smrg 563533c89af1Smrg# Find who we are. Look in the path if we contain no directory separator. 563633c89af1Smrgcase $0 in 563733c89af1Smrg *[\\/]* ) as_myself=$0 ;; 563833c89af1Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 563933c89af1Smrgfor as_dir in $PATH 564033c89af1Smrgdo 564133c89af1Smrg IFS=$as_save_IFS 564233c89af1Smrg test -z "$as_dir" && as_dir=. 564333c89af1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 564433c89af1Smrgdone 564533c89af1SmrgIFS=$as_save_IFS 564633c89af1Smrg 564733c89af1Smrg ;; 564833c89af1Smrgesac 564933c89af1Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 565033c89af1Smrg# in which case we are not to be found in the path. 565133c89af1Smrgif test "x$as_myself" = x; then 565233c89af1Smrg as_myself=$0 565333c89af1Smrgfi 565433c89af1Smrgif test ! -f "$as_myself"; then 5655278eca22Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 565633c89af1Smrg { (exit 1); exit 1; } 565733c89af1Smrgfi 565833c89af1Smrg 565933c89af1Smrg# Work around bugs in pre-3.0 UWIN ksh. 566033c89af1Smrgfor as_var in ENV MAIL MAILPATH 566133c89af1Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 566233c89af1Smrgdone 566333c89af1SmrgPS1='$ ' 566433c89af1SmrgPS2='> ' 566533c89af1SmrgPS4='+ ' 566633c89af1Smrg 566733c89af1Smrg# NLS nuisances. 5668278eca22SmrgLC_ALL=C 5669278eca22Smrgexport LC_ALL 5670278eca22SmrgLANGUAGE=C 5671278eca22Smrgexport LANGUAGE 567233c89af1Smrg 567333c89af1Smrg# Required to use basename. 567433c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 567533c89af1Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 567633c89af1Smrg as_expr=expr 567733c89af1Smrgelse 567833c89af1Smrg as_expr=false 567933c89af1Smrgfi 568033c89af1Smrg 568133c89af1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 568233c89af1Smrg as_basename=basename 568333c89af1Smrgelse 568433c89af1Smrg as_basename=false 568533c89af1Smrgfi 568633c89af1Smrg 568733c89af1Smrg 568833c89af1Smrg# Name of the executable. 568933c89af1Smrgas_me=`$as_basename -- "$0" || 569033c89af1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 569133c89af1Smrg X"$0" : 'X\(//\)$' \| \ 569233c89af1Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5693278eca22Smrg$as_echo X/"$0" | 569433c89af1Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 569533c89af1Smrg s//\1/ 569633c89af1Smrg q 569733c89af1Smrg } 569833c89af1Smrg /^X\/\(\/\/\)$/{ 569933c89af1Smrg s//\1/ 570033c89af1Smrg q 570133c89af1Smrg } 570233c89af1Smrg /^X\/\(\/\).*/{ 570333c89af1Smrg s//\1/ 570433c89af1Smrg q 570533c89af1Smrg } 570633c89af1Smrg s/.*/./; q'` 570733c89af1Smrg 570833c89af1Smrg# CDPATH. 570933c89af1Smrg$as_unset CDPATH 571033c89af1Smrg 571133c89af1Smrg 571233c89af1Smrg 571333c89af1Smrg as_lineno_1=$LINENO 571433c89af1Smrg as_lineno_2=$LINENO 571533c89af1Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 571633c89af1Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 571733c89af1Smrg 571833c89af1Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 571933c89af1Smrg # uniformly replaced by the line number. The first 'sed' inserts a 572033c89af1Smrg # line-number line after each line using $LINENO; the second 'sed' 572133c89af1Smrg # does the real work. The second script uses 'N' to pair each 572233c89af1Smrg # line-number line with the line containing $LINENO, and appends 572333c89af1Smrg # trailing '-' during substitution so that $LINENO is not a special 572433c89af1Smrg # case at line end. 572533c89af1Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 572633c89af1Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 572733c89af1Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 572833c89af1Smrg sed -n ' 572933c89af1Smrg p 573033c89af1Smrg /[$]LINENO/= 573133c89af1Smrg ' <$as_myself | 573233c89af1Smrg sed ' 573333c89af1Smrg s/[$]LINENO.*/&-/ 573433c89af1Smrg t lineno 573533c89af1Smrg b 573633c89af1Smrg :lineno 573733c89af1Smrg N 573833c89af1Smrg :loop 573933c89af1Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 574033c89af1Smrg t loop 574133c89af1Smrg s/-\n.*// 574233c89af1Smrg ' >$as_me.lineno && 574333c89af1Smrg chmod +x "$as_me.lineno" || 5744278eca22Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 574533c89af1Smrg { (exit 1); exit 1; }; } 574633c89af1Smrg 574733c89af1Smrg # Don't try to exec as it changes $[0], causing all sort of problems 574833c89af1Smrg # (the dirname of $[0] is not the place where we might find the 574933c89af1Smrg # original and so on. Autoconf is especially sensitive to this). 575033c89af1Smrg . "./$as_me.lineno" 575133c89af1Smrg # Exit status is that of the last command. 575233c89af1Smrg exit 575333c89af1Smrg} 575433c89af1Smrg 575533c89af1Smrg 575633c89af1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 575733c89af1Smrg as_dirname=dirname 575833c89af1Smrgelse 575933c89af1Smrg as_dirname=false 576033c89af1Smrgfi 576133c89af1Smrg 576233c89af1SmrgECHO_C= ECHO_N= ECHO_T= 576333c89af1Smrgcase `echo -n x` in 576433c89af1Smrg-n*) 576533c89af1Smrg case `echo 'x\c'` in 576633c89af1Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 576733c89af1Smrg *) ECHO_C='\c';; 576833c89af1Smrg esac;; 576933c89af1Smrg*) 577033c89af1Smrg ECHO_N='-n';; 577133c89af1Smrgesac 577233c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 577333c89af1Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 577433c89af1Smrg as_expr=expr 577533c89af1Smrgelse 577633c89af1Smrg as_expr=false 577733c89af1Smrgfi 577833c89af1Smrg 577933c89af1Smrgrm -f conf$$ conf$$.exe conf$$.file 578033c89af1Smrgif test -d conf$$.dir; then 578133c89af1Smrg rm -f conf$$.dir/conf$$.file 578233c89af1Smrgelse 578333c89af1Smrg rm -f conf$$.dir 5784278eca22Smrg mkdir conf$$.dir 2>/dev/null 5785278eca22Smrgfi 5786278eca22Smrgif (echo >conf$$.file) 2>/dev/null; then 5787278eca22Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5788278eca22Smrg as_ln_s='ln -s' 5789278eca22Smrg # ... but there are two gotchas: 5790278eca22Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5791278eca22Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5792278eca22Smrg # In both cases, we have to default to `cp -p'. 5793278eca22Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5794278eca22Smrg as_ln_s='cp -p' 5795278eca22Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5796278eca22Smrg as_ln_s=ln 5797278eca22Smrg else 579833c89af1Smrg as_ln_s='cp -p' 5799278eca22Smrg fi 580033c89af1Smrgelse 580133c89af1Smrg as_ln_s='cp -p' 580233c89af1Smrgfi 580333c89af1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580433c89af1Smrgrmdir conf$$.dir 2>/dev/null 580533c89af1Smrg 580633c89af1Smrgif mkdir -p . 2>/dev/null; then 580733c89af1Smrg as_mkdir_p=: 580833c89af1Smrgelse 580933c89af1Smrg test -d ./-p && rmdir ./-p 581033c89af1Smrg as_mkdir_p=false 581133c89af1Smrgfi 581233c89af1Smrg 5813278eca22Smrgif test -x / >/dev/null 2>&1; then 5814278eca22Smrg as_test_x='test -x' 581533c89af1Smrgelse 5816278eca22Smrg if ls -dL / >/dev/null 2>&1; then 5817278eca22Smrg as_ls_L_option=L 5818278eca22Smrg else 5819278eca22Smrg as_ls_L_option= 5820278eca22Smrg fi 5821278eca22Smrg as_test_x=' 5822278eca22Smrg eval sh -c '\'' 5823278eca22Smrg if test -d "$1"; then 5824278eca22Smrg test -d "$1/."; 5825278eca22Smrg else 5826278eca22Smrg case $1 in 5827278eca22Smrg -*)set "./$1";; 5828278eca22Smrg esac; 5829278eca22Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5830278eca22Smrg ???[sx]*):;;*)false;;esac;fi 5831278eca22Smrg '\'' sh 5832278eca22Smrg ' 583333c89af1Smrgfi 5834278eca22Smrgas_executable_p=$as_test_x 583533c89af1Smrg 583633c89af1Smrg# Sed expression to map a string onto a valid CPP name. 583733c89af1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 583833c89af1Smrg 583933c89af1Smrg# Sed expression to map a string onto a valid variable name. 584033c89af1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 584133c89af1Smrg 584233c89af1Smrg 584333c89af1Smrgexec 6>&1 584433c89af1Smrg 584533c89af1Smrg# Save the log message, to keep $[0] and so on meaningful, and to 584633c89af1Smrg# report actual input values of CONFIG_FILES etc. instead of their 584733c89af1Smrg# values after options handling. 584833c89af1Smrgac_log=" 5849278eca22SmrgThis file was extended by editres $as_me 1.0.4, which was 5850278eca22Smrggenerated by GNU Autoconf 2.63. Invocation command line was 585133c89af1Smrg 585233c89af1Smrg CONFIG_FILES = $CONFIG_FILES 585333c89af1Smrg CONFIG_HEADERS = $CONFIG_HEADERS 585433c89af1Smrg CONFIG_LINKS = $CONFIG_LINKS 585533c89af1Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 585633c89af1Smrg $ $0 $@ 585733c89af1Smrg 585833c89af1Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 585933c89af1Smrg" 586033c89af1Smrg 586133c89af1Smrg_ACEOF 586233c89af1Smrg 5863278eca22Smrgcase $ac_config_files in *" 5864278eca22Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5865278eca22Smrgesac 5866278eca22Smrg 5867278eca22Smrgcase $ac_config_headers in *" 5868278eca22Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5869278eca22Smrgesac 5870278eca22Smrg 5871278eca22Smrg 5872278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 587333c89af1Smrg# Files that config.status was made for. 587433c89af1Smrgconfig_files="$ac_config_files" 587533c89af1Smrgconfig_headers="$ac_config_headers" 587633c89af1Smrgconfig_commands="$ac_config_commands" 587733c89af1Smrg 587833c89af1Smrg_ACEOF 587933c89af1Smrg 5880278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 588133c89af1Smrgac_cs_usage="\ 588233c89af1Smrg\`$as_me' instantiates files from templates according to the 588333c89af1Smrgcurrent configuration. 588433c89af1Smrg 5885278eca22SmrgUsage: $0 [OPTION]... [FILE]... 588633c89af1Smrg 588733c89af1Smrg -h, --help print this help, then exit 5888278eca22Smrg -V, --version print version number and configuration settings, then exit 5889278eca22Smrg -q, --quiet, --silent 5890278eca22Smrg do not print progress messages 589133c89af1Smrg -d, --debug don't remove temporary files 589233c89af1Smrg --recheck update $as_me by reconfiguring in the same conditions 5893278eca22Smrg --file=FILE[:TEMPLATE] 5894278eca22Smrg instantiate the configuration file FILE 5895278eca22Smrg --header=FILE[:TEMPLATE] 5896278eca22Smrg instantiate the configuration header FILE 589733c89af1Smrg 589833c89af1SmrgConfiguration files: 589933c89af1Smrg$config_files 590033c89af1Smrg 590133c89af1SmrgConfiguration headers: 590233c89af1Smrg$config_headers 590333c89af1Smrg 590433c89af1SmrgConfiguration commands: 590533c89af1Smrg$config_commands 590633c89af1Smrg 590733c89af1SmrgReport bugs to <bug-autoconf@gnu.org>." 590833c89af1Smrg 590933c89af1Smrg_ACEOF 5910278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 591133c89af1Smrgac_cs_version="\\ 5912278eca22Smrgeditres config.status 1.0.4 5913278eca22Smrgconfigured by $0, generated by GNU Autoconf 2.63, 5914278eca22Smrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 591533c89af1Smrg 5916278eca22SmrgCopyright (C) 2008 Free Software Foundation, Inc. 591733c89af1SmrgThis config.status script is free software; the Free Software Foundation 591833c89af1Smrggives unlimited permission to copy, distribute and modify it." 591933c89af1Smrg 592033c89af1Smrgac_pwd='$ac_pwd' 592133c89af1Smrgsrcdir='$srcdir' 592233c89af1SmrgINSTALL='$INSTALL' 5923278eca22SmrgMKDIR_P='$MKDIR_P' 5924278eca22SmrgAWK='$AWK' 5925278eca22Smrgtest -n "\$AWK" || AWK=awk 592633c89af1Smrg_ACEOF 592733c89af1Smrg 5928278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5929278eca22Smrg# The default lists apply if the user does not specify any file. 593033c89af1Smrgac_need_defaults=: 593133c89af1Smrgwhile test $# != 0 593233c89af1Smrgdo 593333c89af1Smrg case $1 in 593433c89af1Smrg --*=*) 593533c89af1Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 593633c89af1Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 593733c89af1Smrg ac_shift=: 593833c89af1Smrg ;; 593933c89af1Smrg *) 594033c89af1Smrg ac_option=$1 594133c89af1Smrg ac_optarg=$2 594233c89af1Smrg ac_shift=shift 594333c89af1Smrg ;; 594433c89af1Smrg esac 594533c89af1Smrg 594633c89af1Smrg case $ac_option in 594733c89af1Smrg # Handling of the options. 594833c89af1Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 594933c89af1Smrg ac_cs_recheck=: ;; 595033c89af1Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5951278eca22Smrg $as_echo "$ac_cs_version"; exit ;; 595233c89af1Smrg --debug | --debu | --deb | --de | --d | -d ) 595333c89af1Smrg debug=: ;; 595433c89af1Smrg --file | --fil | --fi | --f ) 595533c89af1Smrg $ac_shift 5956278eca22Smrg case $ac_optarg in 5957278eca22Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5958278eca22Smrg esac 5959278eca22Smrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 596033c89af1Smrg ac_need_defaults=false;; 596133c89af1Smrg --header | --heade | --head | --hea ) 596233c89af1Smrg $ac_shift 5963278eca22Smrg case $ac_optarg in 5964278eca22Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5965278eca22Smrg esac 5966278eca22Smrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 596733c89af1Smrg ac_need_defaults=false;; 596833c89af1Smrg --he | --h) 596933c89af1Smrg # Conflict between --help and --header 5970278eca22Smrg { $as_echo "$as_me: error: ambiguous option: $1 597133c89af1SmrgTry \`$0 --help' for more information." >&2 597233c89af1Smrg { (exit 1); exit 1; }; };; 597333c89af1Smrg --help | --hel | -h ) 5974278eca22Smrg $as_echo "$ac_cs_usage"; exit ;; 597533c89af1Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 597633c89af1Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 597733c89af1Smrg ac_cs_silent=: ;; 597833c89af1Smrg 597933c89af1Smrg # This is an error. 5980278eca22Smrg -*) { $as_echo "$as_me: error: unrecognized option: $1 598133c89af1SmrgTry \`$0 --help' for more information." >&2 598233c89af1Smrg { (exit 1); exit 1; }; } ;; 598333c89af1Smrg 598433c89af1Smrg *) ac_config_targets="$ac_config_targets $1" 598533c89af1Smrg ac_need_defaults=false ;; 598633c89af1Smrg 598733c89af1Smrg esac 598833c89af1Smrg shift 598933c89af1Smrgdone 599033c89af1Smrg 599133c89af1Smrgac_configure_extra_args= 599233c89af1Smrg 599333c89af1Smrgif $ac_cs_silent; then 599433c89af1Smrg exec 6>/dev/null 599533c89af1Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 599633c89af1Smrgfi 599733c89af1Smrg 599833c89af1Smrg_ACEOF 5999278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 600033c89af1Smrgif \$ac_cs_recheck; then 6001278eca22Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6002278eca22Smrg shift 6003278eca22Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6004278eca22Smrg CONFIG_SHELL='$SHELL' 600533c89af1Smrg export CONFIG_SHELL 6006278eca22Smrg exec "\$@" 600733c89af1Smrgfi 600833c89af1Smrg 600933c89af1Smrg_ACEOF 6010278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 601133c89af1Smrgexec 5>>config.log 601233c89af1Smrg{ 601333c89af1Smrg echo 601433c89af1Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 601533c89af1Smrg## Running $as_me. ## 601633c89af1Smrg_ASBOX 6017278eca22Smrg $as_echo "$ac_log" 601833c89af1Smrg} >&5 601933c89af1Smrg 602033c89af1Smrg_ACEOF 6021278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 602233c89af1Smrg# 602333c89af1Smrg# INIT-COMMANDS 602433c89af1Smrg# 602533c89af1SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 602633c89af1Smrg 602733c89af1Smrg_ACEOF 602833c89af1Smrg 6029278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 603033c89af1Smrg 603133c89af1Smrg# Handling of arguments. 603233c89af1Smrgfor ac_config_target in $ac_config_targets 603333c89af1Smrgdo 603433c89af1Smrg case $ac_config_target in 603533c89af1Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 603633c89af1Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 603733c89af1Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 603833c89af1Smrg 6039278eca22Smrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6040278eca22Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 604133c89af1Smrg { (exit 1); exit 1; }; };; 604233c89af1Smrg esac 604333c89af1Smrgdone 604433c89af1Smrg 604533c89af1Smrg 604633c89af1Smrg# If the user did not use the arguments to specify the items to instantiate, 604733c89af1Smrg# then the envvar interface is used. Set only those that are not. 604833c89af1Smrg# We use the long form for the default assignment because of an extremely 604933c89af1Smrg# bizarre bug on SunOS 4.1.3. 605033c89af1Smrgif $ac_need_defaults; then 605133c89af1Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 605233c89af1Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 605333c89af1Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 605433c89af1Smrgfi 605533c89af1Smrg 605633c89af1Smrg# Have a temporary directory for convenience. Make it in the build tree 605733c89af1Smrg# simply because there is no reason against having it here, and in addition, 605833c89af1Smrg# creating and moving files from /tmp can sometimes cause problems. 605933c89af1Smrg# Hook for its removal unless debugging. 606033c89af1Smrg# Note that there is a small window in which the directory will not be cleaned: 606133c89af1Smrg# after its creation but before its name has been assigned to `$tmp'. 606233c89af1Smrg$debug || 606333c89af1Smrg{ 606433c89af1Smrg tmp= 606533c89af1Smrg trap 'exit_status=$? 606633c89af1Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 606733c89af1Smrg' 0 606833c89af1Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 606933c89af1Smrg} 607033c89af1Smrg# Create a (secure) tmp directory for tmp files. 607133c89af1Smrg 607233c89af1Smrg{ 607333c89af1Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 607433c89af1Smrg test -n "$tmp" && test -d "$tmp" 607533c89af1Smrg} || 607633c89af1Smrg{ 607733c89af1Smrg tmp=./conf$$-$RANDOM 607833c89af1Smrg (umask 077 && mkdir "$tmp") 607933c89af1Smrg} || 608033c89af1Smrg{ 6081278eca22Smrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 608233c89af1Smrg { (exit 1); exit 1; } 608333c89af1Smrg} 608433c89af1Smrg 6085278eca22Smrg# Set up the scripts for CONFIG_FILES section. 6086278eca22Smrg# No need to generate them if there are no CONFIG_FILES. 6087278eca22Smrg# This happens for instance with `./config.status config.h'. 608833c89af1Smrgif test -n "$CONFIG_FILES"; then 608933c89af1Smrg 609033c89af1Smrg 6091278eca22Smrgac_cr=' 6092278eca22Smrg' 6093278eca22Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6094278eca22Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6095278eca22Smrg ac_cs_awk_cr='\\r' 6096278eca22Smrgelse 609733c89af1Smrg ac_cs_awk_cr=$ac_cr 609833c89af1Smrgfi 6099278eca22Smrg 610033c89af1Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 610133c89af1Smrg_ACEOF 610233c89af1Smrg 6103278eca22Smrg 6104278eca22Smrg{ 6105278eca22Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 6106278eca22Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6107278eca22Smrg echo "_ACEOF" 6108278eca22Smrg} >conf$$subs.sh || 6109278eca22Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6110278eca22Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6111278eca22Smrg { (exit 1); exit 1; }; } 611233c89af1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 611333c89af1Smrgac_delim='%!_!# ' 6114278eca22Smrgfor ac_last_try in false false false false false :; do 6115278eca22Smrg . ./conf$$subs.sh || 6116278eca22Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6117278eca22Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 611833c89af1Smrg { (exit 1); exit 1; }; } 6119278eca22Smrg 6120278eca22Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 612133c89af1Smrg if test $ac_delim_n = $ac_delim_num; then 612233c89af1Smrg break 6123278eca22Smrg elif $ac_last_try; then 6124278eca22Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 612533c89af1Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 612633c89af1Smrg { (exit 1); exit 1; }; } 612733c89af1Smrg else 612833c89af1Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 612933c89af1Smrg fi 6130278eca22Smrgdone 613133c89af1Smrgrm -f conf$$subs.sh 6132278eca22Smrg 6133278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6134278eca22Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6135278eca22Smrg_ACEOF 6136278eca22Smrgsed -n ' 6137278eca22Smrgh 6138278eca22Smrgs/^/S["/; s/!.*/"]=/ 6139278eca22Smrgp 6140278eca22Smrgg 6141278eca22Smrgs/^[^!]*!// 6142278eca22Smrg:repl 6143278eca22Smrgt repl 6144278eca22Smrgs/'"$ac_delim"'$// 6145278eca22Smrgt delim 6146278eca22Smrg:nl 6147278eca22Smrgh 6148278eca22Smrgs/\(.\{148\}\).*/\1/ 6149278eca22Smrgt more1 6150278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6151278eca22Smrgp 6152278eca22Smrgn 6153278eca22Smrgb repl 6154278eca22Smrg:more1 6155278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6156278eca22Smrgp 6157278eca22Smrgg 6158278eca22Smrgs/.\{148\}// 6159278eca22Smrgt nl 6160278eca22Smrg:delim 6161278eca22Smrgh 6162278eca22Smrgs/\(.\{148\}\).*/\1/ 6163278eca22Smrgt more2 6164278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6165278eca22Smrgp 6166278eca22Smrgb 6167278eca22Smrg:more2 6168278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6169278eca22Smrgp 6170278eca22Smrgg 6171278eca22Smrgs/.\{148\}// 6172278eca22Smrgt delim 6173278eca22Smrg' <conf$$subs.awk | sed ' 6174278eca22Smrg/^[^""]/{ 6175278eca22Smrg N 6176278eca22Smrg s/\n// 6177278eca22Smrg} 6178278eca22Smrg' >>$CONFIG_STATUS || ac_write_fail=1 6179278eca22Smrgrm -f conf$$subs.awk 6180278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6181278eca22Smrg_ACAWK 6182278eca22Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 6183278eca22Smrg for (key in S) S_is_set[key] = 1 6184278eca22Smrg FS = "" 6185278eca22Smrg 6186278eca22Smrg} 6187278eca22Smrg{ 6188278eca22Smrg line = $ 0 6189278eca22Smrg nfields = split(line, field, "@") 6190278eca22Smrg substed = 0 6191278eca22Smrg len = length(field[1]) 6192278eca22Smrg for (i = 2; i < nfields; i++) { 6193278eca22Smrg key = field[i] 6194278eca22Smrg keylen = length(key) 6195278eca22Smrg if (S_is_set[key]) { 6196278eca22Smrg value = S[key] 6197278eca22Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6198278eca22Smrg len += length(value) + length(field[++i]) 6199278eca22Smrg substed = 1 6200278eca22Smrg } else 6201278eca22Smrg len += 1 + keylen 6202278eca22Smrg } 6203278eca22Smrg 6204278eca22Smrg print line 620533c89af1Smrg} 6206278eca22Smrg 620733c89af1Smrg_ACAWK 6208278eca22Smrg_ACEOF 6209278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6210278eca22Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6211278eca22Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6212278eca22Smrgelse 6213278eca22Smrg cat 6214278eca22Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6215278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 6216278eca22Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 621733c89af1Smrg { (exit 1); exit 1; }; } 621833c89af1Smrg_ACEOF 621933c89af1Smrg 622033c89af1Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 622133c89af1Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 622233c89af1Smrg# trailing colons and then remove the whole line if VPATH becomes empty 622333c89af1Smrg# (actually we leave an empty line to preserve line numbers). 622433c89af1Smrgif test "x$srcdir" = x.; then 622533c89af1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 622633c89af1Smrgs/:*\$(srcdir):*/:/ 622733c89af1Smrgs/:*\${srcdir}:*/:/ 622833c89af1Smrgs/:*@srcdir@:*/:/ 622933c89af1Smrgs/^\([^=]*=[ ]*\):*/\1/ 623033c89af1Smrgs/:*$// 623133c89af1Smrgs/^[^=]*=[ ]*$// 623233c89af1Smrg}' 623333c89af1Smrgfi 6234278eca22Smrg 623533c89af1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 623633c89af1Smrgfi # test -n "$CONFIG_FILES" 6237278eca22Smrg 6238278eca22Smrg# Set up the scripts for CONFIG_HEADERS section. 6239278eca22Smrg# No need to generate them if there are no CONFIG_HEADERS. 6240278eca22Smrg# This happens for instance with `./config.status Makefile'. 6241278eca22Smrgif test -n "$CONFIG_HEADERS"; then 6242278eca22Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 6243278eca22SmrgBEGIN { 6244278eca22Smrg_ACEOF 6245278eca22Smrg 6246278eca22Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6247278eca22Smrg# here-document in config.status, that substitutes the proper values into 6248278eca22Smrg# config.h.in to produce config.h. 6249278eca22Smrg 6250278eca22Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 6251278eca22Smrg# handling of long lines. 6252278eca22Smrgac_delim='%!_!# ' 6253278eca22Smrgfor ac_last_try in false false :; do 6254278eca22Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6255278eca22Smrg if test -z "$ac_t"; then 6256278eca22Smrg break 6257278eca22Smrg elif $ac_last_try; then 6258278eca22Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 6259278eca22Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 6260278eca22Smrg { (exit 1); exit 1; }; } 6261278eca22Smrg else 6262278eca22Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6263278eca22Smrg fi 6264278eca22Smrgdone 6265278eca22Smrg 6266278eca22Smrg# For the awk script, D is an array of macro values keyed by name, 6267278eca22Smrg# likewise P contains macro parameters if any. Preserve backslash 6268278eca22Smrg# newline sequences. 6269278eca22Smrg 6270278eca22Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6271278eca22Smrgsed -n ' 6272278eca22Smrgs/.\{148\}/&'"$ac_delim"'/g 6273278eca22Smrgt rset 6274278eca22Smrg:rset 6275278eca22Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6276278eca22Smrgt def 6277278eca22Smrgd 6278278eca22Smrg:def 6279278eca22Smrgs/\\$// 6280278eca22Smrgt bsnl 6281278eca22Smrgs/["\\]/\\&/g 6282278eca22Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6283278eca22SmrgD["\1"]=" \3"/p 6284278eca22Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6285278eca22Smrgd 6286278eca22Smrg:bsnl 6287278eca22Smrgs/["\\]/\\&/g 6288278eca22Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6289278eca22SmrgD["\1"]=" \3\\\\\\n"\\/p 6290278eca22Smrgt cont 6291278eca22Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6292278eca22Smrgt cont 6293278eca22Smrgd 6294278eca22Smrg:cont 6295278eca22Smrgn 6296278eca22Smrgs/.\{148\}/&'"$ac_delim"'/g 6297278eca22Smrgt clear 6298278eca22Smrg:clear 6299278eca22Smrgs/\\$// 6300278eca22Smrgt bsnlc 6301278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6302278eca22Smrgd 6303278eca22Smrg:bsnlc 6304278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6305278eca22Smrgb cont 6306278eca22Smrg' <confdefs.h | sed ' 6307278eca22Smrgs/'"$ac_delim"'/"\\\ 6308278eca22Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6309278eca22Smrg 6310278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6311278eca22Smrg for (key in D) D_is_set[key] = 1 6312278eca22Smrg FS = "" 6313278eca22Smrg} 6314278eca22Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6315278eca22Smrg line = \$ 0 6316278eca22Smrg split(line, arg, " ") 6317278eca22Smrg if (arg[1] == "#") { 6318278eca22Smrg defundef = arg[2] 6319278eca22Smrg mac1 = arg[3] 6320278eca22Smrg } else { 6321278eca22Smrg defundef = substr(arg[1], 2) 6322278eca22Smrg mac1 = arg[2] 6323278eca22Smrg } 6324278eca22Smrg split(mac1, mac2, "(") #) 6325278eca22Smrg macro = mac2[1] 6326278eca22Smrg prefix = substr(line, 1, index(line, defundef) - 1) 6327278eca22Smrg if (D_is_set[macro]) { 6328278eca22Smrg # Preserve the white space surrounding the "#". 6329278eca22Smrg print prefix "define", macro P[macro] D[macro] 6330278eca22Smrg next 6331278eca22Smrg } else { 6332278eca22Smrg # Replace #undef with comments. This is necessary, for example, 6333278eca22Smrg # in the case of _POSIX_SOURCE, which is predefined and required 6334278eca22Smrg # on some systems where configure will not decide to define it. 6335278eca22Smrg if (defundef == "undef") { 6336278eca22Smrg print "/*", prefix defundef, macro, "*/" 6337278eca22Smrg next 6338278eca22Smrg } 6339278eca22Smrg } 6340278eca22Smrg} 6341278eca22Smrg{ print } 6342278eca22Smrg_ACAWK 6343278eca22Smrg_ACEOF 6344278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6345278eca22Smrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 6346278eca22Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 6347278eca22Smrg { (exit 1); exit 1; }; } 6348278eca22Smrgfi # test -n "$CONFIG_HEADERS" 634933c89af1Smrg 6350278eca22Smrg 6351278eca22Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6352278eca22Smrgshift 635333c89af1Smrgfor ac_tag 635433c89af1Smrgdo 635533c89af1Smrg case $ac_tag in 635633c89af1Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 635733c89af1Smrg esac 635833c89af1Smrg case $ac_mode$ac_tag in 6359278eca22Smrg :[FHL]*:*);; 6360278eca22Smrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 636133c89af1Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 636233c89af1Smrg { (exit 1); exit 1; }; };; 636333c89af1Smrg :[FH]-) ac_tag=-:-;; 636433c89af1Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 636533c89af1Smrg esac 636633c89af1Smrg ac_save_IFS=$IFS 636733c89af1Smrg IFS=: 636833c89af1Smrg set x $ac_tag 636933c89af1Smrg IFS=$ac_save_IFS 637033c89af1Smrg shift 637133c89af1Smrg ac_file=$1 637233c89af1Smrg shift 637333c89af1Smrg 637433c89af1Smrg case $ac_mode in 637533c89af1Smrg :L) ac_source=$1;; 637633c89af1Smrg :[FH]) 637733c89af1Smrg ac_file_inputs= 637833c89af1Smrg for ac_f 637933c89af1Smrg do 638033c89af1Smrg case $ac_f in 638133c89af1Smrg -) ac_f="$tmp/stdin";; 638233c89af1Smrg *) # Look for the file first in the build tree, then in the source tree 638333c89af1Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 638433c89af1Smrg # because $ac_f cannot contain `:'. 638533c89af1Smrg test -f "$ac_f" || 638633c89af1Smrg case $ac_f in 638733c89af1Smrg [\\/$]*) false;; 638833c89af1Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6389278eca22Smrg esac || 6390278eca22Smrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 639133c89af1Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 639233c89af1Smrg { (exit 1); exit 1; }; };; 6393278eca22Smrg esac 6394278eca22Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 639533c89af1Smrg ac_file_inputs="$ac_file_inputs '$ac_f'" 639633c89af1Smrg done 639733c89af1Smrg 639833c89af1Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 639933c89af1Smrg # use $as_me), people would be surprised to read: 6400278eca22Smrg # /* config.h. Generated by config.status. */ 6401278eca22Smrg configure_input='Generated from '` 6402278eca22Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 640333c89af1Smrg `' by configure.' 640433c89af1Smrg if test x"$ac_file" != x-; then 6405278eca22Smrg configure_input="$ac_file. $configure_input" 6406278eca22Smrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 640733c89af1Smrg$as_echo "$as_me: creating $ac_file" >&6;} 6408278eca22Smrg fi 6409278eca22Smrg # Neutralize special characters interpreted by sed in replacement strings. 6410278eca22Smrg case $configure_input in #( 6411278eca22Smrg *\&* | *\|* | *\\* ) 6412278eca22Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 6413278eca22Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6414278eca22Smrg *) ac_sed_conf_input=$configure_input;; 641533c89af1Smrg esac 641633c89af1Smrg 6417278eca22Smrg case $ac_tag in 6418278eca22Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 6419278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6420278eca22Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 642133c89af1Smrg { (exit 1); exit 1; }; } ;; 642233c89af1Smrg esac 642333c89af1Smrg ;; 642433c89af1Smrg esac 642533c89af1Smrg 642633c89af1Smrg ac_dir=`$as_dirname -- "$ac_file" || 642733c89af1Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 642833c89af1Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 642933c89af1Smrg X"$ac_file" : 'X\(//\)$' \| \ 6430278eca22Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 643133c89af1Smrg$as_echo X"$ac_file" | 643233c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 643333c89af1Smrg s//\1/ 643433c89af1Smrg q 643533c89af1Smrg } 643633c89af1Smrg /^X\(\/\/\)[^/].*/{ 643733c89af1Smrg s//\1/ 643833c89af1Smrg q 643933c89af1Smrg } 644033c89af1Smrg /^X\(\/\/\)$/{ 644133c89af1Smrg s//\1/ 644233c89af1Smrg q 644333c89af1Smrg } 644433c89af1Smrg /^X\(\/\).*/{ 644533c89af1Smrg s//\1/ 644633c89af1Smrg q 644733c89af1Smrg } 644833c89af1Smrg s/.*/./; q'` 644933c89af1Smrg { as_dir="$ac_dir" 645033c89af1Smrg case $as_dir in #( 645133c89af1Smrg -*) as_dir=./$as_dir;; 645233c89af1Smrg esac 645333c89af1Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 645433c89af1Smrg as_dirs= 645533c89af1Smrg while :; do 6456278eca22Smrg case $as_dir in #( 645733c89af1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 645833c89af1Smrg *) as_qdir=$as_dir;; 645933c89af1Smrg esac 646033c89af1Smrg as_dirs="'$as_qdir' $as_dirs" 646133c89af1Smrg as_dir=`$as_dirname -- "$as_dir" || 646233c89af1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 646333c89af1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 646433c89af1Smrg X"$as_dir" : 'X\(//\)$' \| \ 6465278eca22Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 646633c89af1Smrg$as_echo X"$as_dir" | 646733c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 646833c89af1Smrg s//\1/ 646933c89af1Smrg q 647033c89af1Smrg } 647133c89af1Smrg /^X\(\/\/\)[^/].*/{ 647233c89af1Smrg s//\1/ 647333c89af1Smrg q 647433c89af1Smrg } 647533c89af1Smrg /^X\(\/\/\)$/{ 647633c89af1Smrg s//\1/ 647733c89af1Smrg q 647833c89af1Smrg } 647933c89af1Smrg /^X\(\/\).*/{ 648033c89af1Smrg s//\1/ 648133c89af1Smrg q 648233c89af1Smrg } 648333c89af1Smrg s/.*/./; q'` 648433c89af1Smrg test -d "$as_dir" && break 648533c89af1Smrg done 6486278eca22Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 6487278eca22Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 648833c89af1Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 648933c89af1Smrg { (exit 1); exit 1; }; }; } 649033c89af1Smrg ac_builddir=. 649133c89af1Smrg 649233c89af1Smrgcase "$ac_dir" in 649333c89af1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6494278eca22Smrg*) 649533c89af1Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6496278eca22Smrg # A ".." for each directory in $ac_dir_suffix. 649733c89af1Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 649833c89af1Smrg case $ac_top_builddir_sub in 649933c89af1Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 650033c89af1Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 650133c89af1Smrg esac ;; 650233c89af1Smrgesac 650333c89af1Smrgac_abs_top_builddir=$ac_pwd 650433c89af1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 650533c89af1Smrg# for backward compatibility: 650633c89af1Smrgac_top_builddir=$ac_top_build_prefix 650733c89af1Smrg 650833c89af1Smrgcase $srcdir in 650933c89af1Smrg .) # We are building in place. 651033c89af1Smrg ac_srcdir=. 651133c89af1Smrg ac_top_srcdir=$ac_top_builddir_sub 651233c89af1Smrg ac_abs_top_srcdir=$ac_pwd ;; 651333c89af1Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 651433c89af1Smrg ac_srcdir=$srcdir$ac_dir_suffix; 651533c89af1Smrg ac_top_srcdir=$srcdir 651633c89af1Smrg ac_abs_top_srcdir=$srcdir ;; 651733c89af1Smrg *) # Relative name. 651833c89af1Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 651933c89af1Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 652033c89af1Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 652133c89af1Smrgesac 652233c89af1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 652333c89af1Smrg 652433c89af1Smrg 652533c89af1Smrg case $ac_mode in 652633c89af1Smrg :F) 652733c89af1Smrg # 652833c89af1Smrg # CONFIG_FILE 652933c89af1Smrg # 653033c89af1Smrg 653133c89af1Smrg case $INSTALL in 653233c89af1Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 653333c89af1Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6534278eca22Smrg esac 6535278eca22Smrg ac_MKDIR_P=$MKDIR_P 6536278eca22Smrg case $MKDIR_P in 6537278eca22Smrg [\\/$]* | ?:[\\/]* ) ;; 6538278eca22Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 653933c89af1Smrg esac 654033c89af1Smrg_ACEOF 6541278eca22Smrg 654233c89af1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 654333c89af1Smrg# If the template does not know about datarootdir, expand it. 654433c89af1Smrg# FIXME: This hack should be removed a few years after 2.60. 654533c89af1Smrgac_datarootdir_hack=; ac_datarootdir_seen= 6546278eca22Smrg 6547278eca22Smrgac_sed_dataroot=' 654833c89af1Smrg/datarootdir/ { 654933c89af1Smrg p 655033c89af1Smrg q 655133c89af1Smrg} 655233c89af1Smrg/@datadir@/p 655333c89af1Smrg/@docdir@/p 655433c89af1Smrg/@infodir@/p 655533c89af1Smrg/@localedir@/p 6556278eca22Smrg/@mandir@/p 6557278eca22Smrg' 655833c89af1Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 655933c89af1Smrg*datarootdir*) ac_datarootdir_seen=yes;; 6560278eca22Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6561278eca22Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 656233c89af1Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6563278eca22Smrg_ACEOF 656433c89af1Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 656533c89af1Smrg ac_datarootdir_hack=' 656633c89af1Smrg s&@datadir@&$datadir&g 656733c89af1Smrg s&@docdir@&$docdir&g 656833c89af1Smrg s&@infodir@&$infodir&g 656933c89af1Smrg s&@localedir@&$localedir&g 657033c89af1Smrg s&@mandir@&$mandir&g 657133c89af1Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 657233c89af1Smrgesac 657333c89af1Smrg_ACEOF 657433c89af1Smrg 657533c89af1Smrg# Neutralize VPATH when `$srcdir' = `.'. 657633c89af1Smrg# Shell code in configure.ac might set extrasub. 6577278eca22Smrg# FIXME: do we really want to maintain this feature? 6578278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 657933c89af1Smrgac_sed_extra="$ac_vpsub 658033c89af1Smrg$extrasub 6581278eca22Smrg_ACEOF 658233c89af1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 658333c89af1Smrg:t 6584278eca22Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 658533c89af1Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6586278eca22Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 658733c89af1Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 658833c89af1Smrgs&@srcdir@&$ac_srcdir&;t t 658933c89af1Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 659033c89af1Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 659133c89af1Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 659233c89af1Smrgs&@builddir@&$ac_builddir&;t t 659333c89af1Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 659433c89af1Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6595278eca22Smrgs&@INSTALL@&$ac_INSTALL&;t t 659633c89af1Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6597278eca22Smrg$ac_datarootdir_hack 6598278eca22Smrg" 6599278eca22Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6600278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6601278eca22Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 660233c89af1Smrg { (exit 1); exit 1; }; } 660333c89af1Smrg 660433c89af1Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 660533c89af1Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6606278eca22Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 660733c89af1Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6608278eca22Smrgwhich seems to be undefined. Please make sure it is defined." >&5 660933c89af1Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 661033c89af1Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 661133c89af1Smrg 661233c89af1Smrg rm -f "$tmp/stdin" 6613278eca22Smrg case $ac_file in 6614278eca22Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 6615278eca22Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6616278eca22Smrg esac \ 6617278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6618278eca22Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 661933c89af1Smrg { (exit 1); exit 1; }; } 662033c89af1Smrg ;; 662133c89af1Smrg :H) 662233c89af1Smrg # 662333c89af1Smrg # CONFIG_HEADER 662433c89af1Smrg # 6625278eca22Smrg if test x"$ac_file" != x-; then 6626278eca22Smrg { 6627278eca22Smrg $as_echo "/* $configure_input */" \ 6628278eca22Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6629278eca22Smrg } >"$tmp/config.h" \ 6630278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6631278eca22Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6632278eca22Smrg { (exit 1); exit 1; }; } 6633278eca22Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6634278eca22Smrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 663533c89af1Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6636278eca22Smrg else 6637278eca22Smrg rm -f "$ac_file" 6638278eca22Smrg mv "$tmp/config.h" "$ac_file" \ 6639278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6640278eca22Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 664133c89af1Smrg { (exit 1); exit 1; }; } 664233c89af1Smrg fi 6643278eca22Smrg else 6644278eca22Smrg $as_echo "/* $configure_input */" \ 6645278eca22Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6646278eca22Smrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 6647278eca22Smrg$as_echo "$as_me: error: could not create -" >&2;} 664833c89af1Smrg { (exit 1); exit 1; }; } 6649278eca22Smrg fi 6650278eca22Smrg# Compute "$ac_file"'s index in $config_headers. 665133c89af1Smrg_am_arg="$ac_file" 665233c89af1Smrg_am_stamp_count=1 665333c89af1Smrgfor _am_header in $config_headers :; do 6654278eca22Smrg case $_am_header in 665533c89af1Smrg $_am_arg | $_am_arg:* ) 665633c89af1Smrg break ;; 665733c89af1Smrg * ) 665833c89af1Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 665933c89af1Smrg esac 6660278eca22Smrgdone 6661278eca22Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6662278eca22Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6663278eca22Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6664278eca22Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6665278eca22Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 666633c89af1Smrg$as_echo X"$_am_arg" | 666733c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 666833c89af1Smrg s//\1/ 666933c89af1Smrg q 667033c89af1Smrg } 667133c89af1Smrg /^X\(\/\/\)[^/].*/{ 667233c89af1Smrg s//\1/ 667333c89af1Smrg q 667433c89af1Smrg } 667533c89af1Smrg /^X\(\/\/\)$/{ 667633c89af1Smrg s//\1/ 667733c89af1Smrg q 667833c89af1Smrg } 667933c89af1Smrg /^X\(\/\).*/{ 668033c89af1Smrg s//\1/ 668133c89af1Smrg q 668233c89af1Smrg } 668333c89af1Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 668433c89af1Smrg ;; 6685278eca22Smrg 6686278eca22Smrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 668733c89af1Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 668833c89af1Smrg ;; 668933c89af1Smrg esac 669033c89af1Smrg 669133c89af1Smrg 6692278eca22Smrg case $ac_file$ac_mode in 6693278eca22Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6694278eca22Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6695278eca22Smrg # are listed without --file. Let's play safe and only enable the eval 6696278eca22Smrg # if we detect the quoting. 6697278eca22Smrg case $CONFIG_FILES in 6698278eca22Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6699278eca22Smrg *) set x $CONFIG_FILES ;; 6700278eca22Smrg esac 6701278eca22Smrg shift 6702278eca22Smrg for mf 6703278eca22Smrg do 6704278eca22Smrg # Strip MF so we end up with the name of the file. 6705278eca22Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6706278eca22Smrg # Check whether this is an Automake generated Makefile or not. 6707278eca22Smrg # We used to match only the files named `Makefile.in', but 6708278eca22Smrg # some people rename them; so instead we look at the file content. 6709278eca22Smrg # Grep'ing the first line is not enough: some people post-process 6710278eca22Smrg # each Makefile.in and add a new line on top of each file to say so. 6711278eca22Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6712278eca22Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6713278eca22Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 671433c89af1Smrg dirpart=`$as_dirname -- "$mf" || 671533c89af1Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 671633c89af1Smrg X"$mf" : 'X\(//\)[^/]' \| \ 671733c89af1Smrg X"$mf" : 'X\(//\)$' \| \ 6718278eca22Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 671933c89af1Smrg$as_echo X"$mf" | 672033c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 672133c89af1Smrg s//\1/ 672233c89af1Smrg q 672333c89af1Smrg } 672433c89af1Smrg /^X\(\/\/\)[^/].*/{ 672533c89af1Smrg s//\1/ 672633c89af1Smrg q 672733c89af1Smrg } 672833c89af1Smrg /^X\(\/\/\)$/{ 672933c89af1Smrg s//\1/ 673033c89af1Smrg q 673133c89af1Smrg } 673233c89af1Smrg /^X\(\/\).*/{ 673333c89af1Smrg s//\1/ 673433c89af1Smrg q 673533c89af1Smrg } 6736278eca22Smrg s/.*/./; q'` 6737278eca22Smrg else 6738278eca22Smrg continue 6739278eca22Smrg fi 6740278eca22Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6741278eca22Smrg # from the Makefile without running `make'. 6742278eca22Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6743278eca22Smrg test -z "$DEPDIR" && continue 6744278eca22Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6745278eca22Smrg test -z "am__include" && continue 6746278eca22Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6747278eca22Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6748278eca22Smrg U=`sed -n 's/^U = //p' < "$mf"` 6749278eca22Smrg # Find all dependency output files, they are included files with 6750278eca22Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6751278eca22Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6752278eca22Smrg # expansion. 6753278eca22Smrg for file in `sed -n " 6754278eca22Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6755278eca22Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6756278eca22Smrg # Make sure the directory exists. 6757278eca22Smrg test -f "$dirpart/$file" && continue 675833c89af1Smrg fdir=`$as_dirname -- "$file" || 675933c89af1Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 676033c89af1Smrg X"$file" : 'X\(//\)[^/]' \| \ 676133c89af1Smrg X"$file" : 'X\(//\)$' \| \ 6762278eca22Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 676333c89af1Smrg$as_echo X"$file" | 676433c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 676533c89af1Smrg s//\1/ 676633c89af1Smrg q 676733c89af1Smrg } 676833c89af1Smrg /^X\(\/\/\)[^/].*/{ 676933c89af1Smrg s//\1/ 677033c89af1Smrg q 677133c89af1Smrg } 677233c89af1Smrg /^X\(\/\/\)$/{ 677333c89af1Smrg s//\1/ 677433c89af1Smrg q 677533c89af1Smrg } 677633c89af1Smrg /^X\(\/\).*/{ 677733c89af1Smrg s//\1/ 677833c89af1Smrg q 677933c89af1Smrg } 6780278eca22Smrg s/.*/./; q'` 678133c89af1Smrg { as_dir=$dirpart/$fdir 678233c89af1Smrg case $as_dir in #( 678333c89af1Smrg -*) as_dir=./$as_dir;; 678433c89af1Smrg esac 678533c89af1Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 678633c89af1Smrg as_dirs= 678733c89af1Smrg while :; do 6788278eca22Smrg case $as_dir in #( 678933c89af1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 679033c89af1Smrg *) as_qdir=$as_dir;; 679133c89af1Smrg esac 679233c89af1Smrg as_dirs="'$as_qdir' $as_dirs" 679333c89af1Smrg as_dir=`$as_dirname -- "$as_dir" || 679433c89af1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 679533c89af1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 679633c89af1Smrg X"$as_dir" : 'X\(//\)$' \| \ 6797278eca22Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 679833c89af1Smrg$as_echo X"$as_dir" | 679933c89af1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 680033c89af1Smrg s//\1/ 680133c89af1Smrg q 680233c89af1Smrg } 680333c89af1Smrg /^X\(\/\/\)[^/].*/{ 680433c89af1Smrg s//\1/ 680533c89af1Smrg q 680633c89af1Smrg } 680733c89af1Smrg /^X\(\/\/\)$/{ 680833c89af1Smrg s//\1/ 680933c89af1Smrg q 681033c89af1Smrg } 681133c89af1Smrg /^X\(\/\).*/{ 681233c89af1Smrg s//\1/ 681333c89af1Smrg q 681433c89af1Smrg } 681533c89af1Smrg s/.*/./; q'` 681633c89af1Smrg test -d "$as_dir" && break 681733c89af1Smrg done 6818278eca22Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 6819278eca22Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 682033c89af1Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 6821278eca22Smrg { (exit 1); exit 1; }; }; } 6822278eca22Smrg # echo "creating $dirpart/$file" 6823278eca22Smrg echo '# dummy' > "$dirpart/$file" 682433c89af1Smrg done 6825278eca22Smrg done 682633c89af1Smrg} 682733c89af1Smrg ;; 682833c89af1Smrg 682933c89af1Smrg esac 683033c89af1Smrgdone # for ac_tag 683133c89af1Smrg 683233c89af1Smrg 683333c89af1Smrg{ (exit 0); exit 0; } 683433c89af1Smrg_ACEOF 683533c89af1Smrgchmod +x $CONFIG_STATUS 683633c89af1Smrgac_clean_files=$ac_clean_files_save 6837278eca22Smrg 6838278eca22Smrgtest $ac_write_fail = 0 || 6839278eca22Smrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 6840278eca22Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 6841278eca22Smrg { (exit 1); exit 1; }; } 684233c89af1Smrg 684333c89af1Smrg 684433c89af1Smrg# configure is writing to config.log, and then calls config.status. 684533c89af1Smrg# config.status does its own redirection, appending to config.log. 684633c89af1Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 684733c89af1Smrg# by configure, so config.status won't be able to write to it; its 684833c89af1Smrg# output is simply discarded. So we exec the FD to /dev/null, 684933c89af1Smrg# effectively closing config.log, so it can be properly (re)opened and 685033c89af1Smrg# appended to by config.status. When coming back to configure, we 685133c89af1Smrg# need to make the FD available again. 685233c89af1Smrgif test "$no_create" != yes; then 685333c89af1Smrg ac_cs_success=: 685433c89af1Smrg ac_config_status_args= 685533c89af1Smrg test "$silent" = yes && 685633c89af1Smrg ac_config_status_args="$ac_config_status_args --quiet" 685733c89af1Smrg exec 5>/dev/null 685833c89af1Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 685933c89af1Smrg exec 5>>config.log 686033c89af1Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 686133c89af1Smrg # would make configure fail if this is the last instruction. 686233c89af1Smrg $ac_cs_success || { (exit 1); exit 1; } 6863278eca22Smrgfi 6864278eca22Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6865278eca22Smrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6866278eca22Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 686733c89af1Smrgfi 6868 6869