1*d5c9a868SElliott Hughes#! /bin/sh 2*d5c9a868SElliott Hughes# Guess values for system-dependent variables and create Makefiles. 3*d5c9a868SElliott Hughes# Generated by GNU Autoconf 2.69. 4*d5c9a868SElliott Hughes# 5*d5c9a868SElliott Hughes# 6*d5c9a868SElliott Hughes# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7*d5c9a868SElliott Hughes# 8*d5c9a868SElliott Hughes# 9*d5c9a868SElliott Hughes# This configure script is free software; the Free Software Foundation 10*d5c9a868SElliott Hughes# gives unlimited permission to copy, distribute and modify it. 11*d5c9a868SElliott Hughes## -------------------- ## 12*d5c9a868SElliott Hughes## M4sh Initialization. ## 13*d5c9a868SElliott Hughes## -------------------- ## 14*d5c9a868SElliott Hughes 15*d5c9a868SElliott Hughes# Be more Bourne compatible 16*d5c9a868SElliott HughesDUALCASE=1; export DUALCASE # for MKS sh 17*d5c9a868SElliott Hughesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18*d5c9a868SElliott Hughes emulate sh 19*d5c9a868SElliott Hughes NULLCMD=: 20*d5c9a868SElliott Hughes # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21*d5c9a868SElliott Hughes # is contrary to our usage. Disable this feature. 22*d5c9a868SElliott Hughes alias -g '${1+"$@"}'='"$@"' 23*d5c9a868SElliott Hughes setopt NO_GLOB_SUBST 24*d5c9a868SElliott Hugheselse 25*d5c9a868SElliott Hughes case `(set -o) 2>/dev/null` in #( 26*d5c9a868SElliott Hughes *posix*) : 27*d5c9a868SElliott Hughes set -o posix ;; #( 28*d5c9a868SElliott Hughes *) : 29*d5c9a868SElliott Hughes ;; 30*d5c9a868SElliott Hughesesac 31*d5c9a868SElliott Hughesfi 32*d5c9a868SElliott Hughes 33*d5c9a868SElliott Hughes 34*d5c9a868SElliott Hughesas_nl=' 35*d5c9a868SElliott Hughes' 36*d5c9a868SElliott Hughesexport as_nl 37*d5c9a868SElliott Hughes# Printing a long string crashes Solaris 7 /usr/bin/printf. 38*d5c9a868SElliott Hughesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39*d5c9a868SElliott Hughesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40*d5c9a868SElliott Hughesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41*d5c9a868SElliott Hughes# Prefer a ksh shell builtin over an external printf program on Solaris, 42*d5c9a868SElliott Hughes# but without wasting forks for bash or zsh. 43*d5c9a868SElliott Hughesif test -z "$BASH_VERSION$ZSH_VERSION" \ 44*d5c9a868SElliott Hughes && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45*d5c9a868SElliott Hughes as_echo='print -r --' 46*d5c9a868SElliott Hughes as_echo_n='print -rn --' 47*d5c9a868SElliott Hugheselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48*d5c9a868SElliott Hughes as_echo='printf %s\n' 49*d5c9a868SElliott Hughes as_echo_n='printf %s' 50*d5c9a868SElliott Hugheselse 51*d5c9a868SElliott Hughes if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52*d5c9a868SElliott Hughes as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53*d5c9a868SElliott Hughes as_echo_n='/usr/ucb/echo -n' 54*d5c9a868SElliott Hughes else 55*d5c9a868SElliott Hughes as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56*d5c9a868SElliott Hughes as_echo_n_body='eval 57*d5c9a868SElliott Hughes arg=$1; 58*d5c9a868SElliott Hughes case $arg in #( 59*d5c9a868SElliott Hughes *"$as_nl"*) 60*d5c9a868SElliott Hughes expr "X$arg" : "X\\(.*\\)$as_nl"; 61*d5c9a868SElliott Hughes arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62*d5c9a868SElliott Hughes esac; 63*d5c9a868SElliott Hughes expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64*d5c9a868SElliott Hughes ' 65*d5c9a868SElliott Hughes export as_echo_n_body 66*d5c9a868SElliott Hughes as_echo_n='sh -c $as_echo_n_body as_echo' 67*d5c9a868SElliott Hughes fi 68*d5c9a868SElliott Hughes export as_echo_body 69*d5c9a868SElliott Hughes as_echo='sh -c $as_echo_body as_echo' 70*d5c9a868SElliott Hughesfi 71*d5c9a868SElliott Hughes 72*d5c9a868SElliott Hughes# The user is always right. 73*d5c9a868SElliott Hughesif test "${PATH_SEPARATOR+set}" != set; then 74*d5c9a868SElliott Hughes PATH_SEPARATOR=: 75*d5c9a868SElliott Hughes (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76*d5c9a868SElliott Hughes (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77*d5c9a868SElliott Hughes PATH_SEPARATOR=';' 78*d5c9a868SElliott Hughes } 79*d5c9a868SElliott Hughesfi 80*d5c9a868SElliott Hughes 81*d5c9a868SElliott Hughes 82*d5c9a868SElliott Hughes# IFS 83*d5c9a868SElliott Hughes# We need space, tab and new line, in precisely that order. Quoting is 84*d5c9a868SElliott Hughes# there to prevent editors from complaining about space-tab. 85*d5c9a868SElliott Hughes# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86*d5c9a868SElliott Hughes# splitting by setting IFS to empty value.) 87*d5c9a868SElliott HughesIFS=" "" $as_nl" 88*d5c9a868SElliott Hughes 89*d5c9a868SElliott Hughes# Find who we are. Look in the path if we contain no directory separator. 90*d5c9a868SElliott Hughesas_myself= 91*d5c9a868SElliott Hughescase $0 in #(( 92*d5c9a868SElliott Hughes *[\\/]* ) as_myself=$0 ;; 93*d5c9a868SElliott Hughes *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94*d5c9a868SElliott Hughesfor as_dir in $PATH 95*d5c9a868SElliott Hughesdo 96*d5c9a868SElliott Hughes IFS=$as_save_IFS 97*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 98*d5c9a868SElliott Hughes test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99*d5c9a868SElliott Hughes done 100*d5c9a868SElliott HughesIFS=$as_save_IFS 101*d5c9a868SElliott Hughes 102*d5c9a868SElliott Hughes ;; 103*d5c9a868SElliott Hughesesac 104*d5c9a868SElliott Hughes# We did not find ourselves, most probably we were run as `sh COMMAND' 105*d5c9a868SElliott Hughes# in which case we are not to be found in the path. 106*d5c9a868SElliott Hughesif test "x$as_myself" = x; then 107*d5c9a868SElliott Hughes as_myself=$0 108*d5c9a868SElliott Hughesfi 109*d5c9a868SElliott Hughesif test ! -f "$as_myself"; then 110*d5c9a868SElliott Hughes $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111*d5c9a868SElliott Hughes exit 1 112*d5c9a868SElliott Hughesfi 113*d5c9a868SElliott Hughes 114*d5c9a868SElliott Hughes# Unset variables that we do not need and which cause bugs (e.g. in 115*d5c9a868SElliott Hughes# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116*d5c9a868SElliott Hughes# suppresses any "Segmentation fault" message there. '((' could 117*d5c9a868SElliott Hughes# trigger a bug in pdksh 5.2.14. 118*d5c9a868SElliott Hughesfor as_var in BASH_ENV ENV MAIL MAILPATH 119*d5c9a868SElliott Hughesdo eval test x\${$as_var+set} = xset \ 120*d5c9a868SElliott Hughes && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121*d5c9a868SElliott Hughesdone 122*d5c9a868SElliott HughesPS1='$ ' 123*d5c9a868SElliott HughesPS2='> ' 124*d5c9a868SElliott HughesPS4='+ ' 125*d5c9a868SElliott Hughes 126*d5c9a868SElliott Hughes# NLS nuisances. 127*d5c9a868SElliott HughesLC_ALL=C 128*d5c9a868SElliott Hughesexport LC_ALL 129*d5c9a868SElliott HughesLANGUAGE=C 130*d5c9a868SElliott Hughesexport LANGUAGE 131*d5c9a868SElliott Hughes 132*d5c9a868SElliott Hughes# CDPATH. 133*d5c9a868SElliott Hughes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134*d5c9a868SElliott Hughes 135*d5c9a868SElliott Hughes# Use a proper internal environment variable to ensure we don't fall 136*d5c9a868SElliott Hughes # into an infinite loop, continuously re-executing ourselves. 137*d5c9a868SElliott Hughes if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138*d5c9a868SElliott Hughes _as_can_reexec=no; export _as_can_reexec; 139*d5c9a868SElliott Hughes # We cannot yet assume a decent shell, so we have to provide a 140*d5c9a868SElliott Hughes# neutralization value for shells without unset; and this also 141*d5c9a868SElliott Hughes# works around shells that cannot unset nonexistent variables. 142*d5c9a868SElliott Hughes# Preserve -v and -x to the replacement shell. 143*d5c9a868SElliott HughesBASH_ENV=/dev/null 144*d5c9a868SElliott HughesENV=/dev/null 145*d5c9a868SElliott Hughes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146*d5c9a868SElliott Hughescase $- in # (((( 147*d5c9a868SElliott Hughes *v*x* | *x*v* ) as_opts=-vx ;; 148*d5c9a868SElliott Hughes *v* ) as_opts=-v ;; 149*d5c9a868SElliott Hughes *x* ) as_opts=-x ;; 150*d5c9a868SElliott Hughes * ) as_opts= ;; 151*d5c9a868SElliott Hughesesac 152*d5c9a868SElliott Hughesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153*d5c9a868SElliott Hughes# Admittedly, this is quite paranoid, since all the known shells bail 154*d5c9a868SElliott Hughes# out after a failed `exec'. 155*d5c9a868SElliott Hughes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156*d5c9a868SElliott Hughesas_fn_exit 255 157*d5c9a868SElliott Hughes fi 158*d5c9a868SElliott Hughes # We don't want this to propagate to other subprocesses. 159*d5c9a868SElliott Hughes { _as_can_reexec=; unset _as_can_reexec;} 160*d5c9a868SElliott Hughesif test "x$CONFIG_SHELL" = x; then 161*d5c9a868SElliott Hughes as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162*d5c9a868SElliott Hughes emulate sh 163*d5c9a868SElliott Hughes NULLCMD=: 164*d5c9a868SElliott Hughes # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165*d5c9a868SElliott Hughes # is contrary to our usage. Disable this feature. 166*d5c9a868SElliott Hughes alias -g '\${1+\"\$@\"}'='\"\$@\"' 167*d5c9a868SElliott Hughes setopt NO_GLOB_SUBST 168*d5c9a868SElliott Hugheselse 169*d5c9a868SElliott Hughes case \`(set -o) 2>/dev/null\` in #( 170*d5c9a868SElliott Hughes *posix*) : 171*d5c9a868SElliott Hughes set -o posix ;; #( 172*d5c9a868SElliott Hughes *) : 173*d5c9a868SElliott Hughes ;; 174*d5c9a868SElliott Hughesesac 175*d5c9a868SElliott Hughesfi 176*d5c9a868SElliott Hughes" 177*d5c9a868SElliott Hughes as_required="as_fn_return () { (exit \$1); } 178*d5c9a868SElliott Hughesas_fn_success () { as_fn_return 0; } 179*d5c9a868SElliott Hughesas_fn_failure () { as_fn_return 1; } 180*d5c9a868SElliott Hughesas_fn_ret_success () { return 0; } 181*d5c9a868SElliott Hughesas_fn_ret_failure () { return 1; } 182*d5c9a868SElliott Hughes 183*d5c9a868SElliott Hughesexitcode=0 184*d5c9a868SElliott Hughesas_fn_success || { exitcode=1; echo as_fn_success failed.; } 185*d5c9a868SElliott Hughesas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186*d5c9a868SElliott Hughesas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187*d5c9a868SElliott Hughesas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188*d5c9a868SElliott Hughesif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189*d5c9a868SElliott Hughes 190*d5c9a868SElliott Hugheselse 191*d5c9a868SElliott Hughes exitcode=1; echo positional parameters were not saved. 192*d5c9a868SElliott Hughesfi 193*d5c9a868SElliott Hughestest x\$exitcode = x0 || exit 1 194*d5c9a868SElliott Hughestest -x / || exit 1" 195*d5c9a868SElliott Hughes as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196*d5c9a868SElliott Hughes as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197*d5c9a868SElliott Hughes eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198*d5c9a868SElliott Hughes test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199*d5c9a868SElliott Hughestest \$(( 1 + 1 )) = 2 || exit 1" 200*d5c9a868SElliott Hughes if (eval "$as_required") 2>/dev/null; then : 201*d5c9a868SElliott Hughes as_have_required=yes 202*d5c9a868SElliott Hugheselse 203*d5c9a868SElliott Hughes as_have_required=no 204*d5c9a868SElliott Hughesfi 205*d5c9a868SElliott Hughes if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206*d5c9a868SElliott Hughes 207*d5c9a868SElliott Hugheselse 208*d5c9a868SElliott Hughes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209*d5c9a868SElliott Hughesas_found=false 210*d5c9a868SElliott Hughesfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211*d5c9a868SElliott Hughesdo 212*d5c9a868SElliott Hughes IFS=$as_save_IFS 213*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 214*d5c9a868SElliott Hughes as_found=: 215*d5c9a868SElliott Hughes case $as_dir in #( 216*d5c9a868SElliott Hughes /*) 217*d5c9a868SElliott Hughes for as_base in sh bash ksh sh5; do 218*d5c9a868SElliott Hughes # Try only shells that exist, to save several forks. 219*d5c9a868SElliott Hughes as_shell=$as_dir/$as_base 220*d5c9a868SElliott Hughes if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221*d5c9a868SElliott Hughes { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222*d5c9a868SElliott Hughes CONFIG_SHELL=$as_shell as_have_required=yes 223*d5c9a868SElliott Hughes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224*d5c9a868SElliott Hughes break 2 225*d5c9a868SElliott Hughesfi 226*d5c9a868SElliott Hughesfi 227*d5c9a868SElliott Hughes done;; 228*d5c9a868SElliott Hughes esac 229*d5c9a868SElliott Hughes as_found=false 230*d5c9a868SElliott Hughesdone 231*d5c9a868SElliott Hughes$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232*d5c9a868SElliott Hughes { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233*d5c9a868SElliott Hughes CONFIG_SHELL=$SHELL as_have_required=yes 234*d5c9a868SElliott Hughesfi; } 235*d5c9a868SElliott HughesIFS=$as_save_IFS 236*d5c9a868SElliott Hughes 237*d5c9a868SElliott Hughes 238*d5c9a868SElliott Hughes if test "x$CONFIG_SHELL" != x; then : 239*d5c9a868SElliott Hughes export CONFIG_SHELL 240*d5c9a868SElliott Hughes # We cannot yet assume a decent shell, so we have to provide a 241*d5c9a868SElliott Hughes# neutralization value for shells without unset; and this also 242*d5c9a868SElliott Hughes# works around shells that cannot unset nonexistent variables. 243*d5c9a868SElliott Hughes# Preserve -v and -x to the replacement shell. 244*d5c9a868SElliott HughesBASH_ENV=/dev/null 245*d5c9a868SElliott HughesENV=/dev/null 246*d5c9a868SElliott Hughes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247*d5c9a868SElliott Hughescase $- in # (((( 248*d5c9a868SElliott Hughes *v*x* | *x*v* ) as_opts=-vx ;; 249*d5c9a868SElliott Hughes *v* ) as_opts=-v ;; 250*d5c9a868SElliott Hughes *x* ) as_opts=-x ;; 251*d5c9a868SElliott Hughes * ) as_opts= ;; 252*d5c9a868SElliott Hughesesac 253*d5c9a868SElliott Hughesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254*d5c9a868SElliott Hughes# Admittedly, this is quite paranoid, since all the known shells bail 255*d5c9a868SElliott Hughes# out after a failed `exec'. 256*d5c9a868SElliott Hughes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257*d5c9a868SElliott Hughesexit 255 258*d5c9a868SElliott Hughesfi 259*d5c9a868SElliott Hughes 260*d5c9a868SElliott Hughes if test x$as_have_required = xno; then : 261*d5c9a868SElliott Hughes $as_echo "$0: This script requires a shell more modern than all" 262*d5c9a868SElliott Hughes $as_echo "$0: the shells that I found on your system." 263*d5c9a868SElliott Hughes if test x${ZSH_VERSION+set} = xset ; then 264*d5c9a868SElliott Hughes $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265*d5c9a868SElliott Hughes $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266*d5c9a868SElliott Hughes else 267*d5c9a868SElliott Hughes $as_echo "$0: Please tell [email protected] about your system, 268*d5c9a868SElliott Hughes$0: including any error possibly output before this 269*d5c9a868SElliott Hughes$0: message. Then install a modern shell, or manually run 270*d5c9a868SElliott Hughes$0: the script under such a shell if you do have one." 271*d5c9a868SElliott Hughes fi 272*d5c9a868SElliott Hughes exit 1 273*d5c9a868SElliott Hughesfi 274*d5c9a868SElliott Hughesfi 275*d5c9a868SElliott Hughesfi 276*d5c9a868SElliott HughesSHELL=${CONFIG_SHELL-/bin/sh} 277*d5c9a868SElliott Hughesexport SHELL 278*d5c9a868SElliott Hughes# Unset more variables known to interfere with behavior of common tools. 279*d5c9a868SElliott HughesCLICOLOR_FORCE= GREP_OPTIONS= 280*d5c9a868SElliott Hughesunset CLICOLOR_FORCE GREP_OPTIONS 281*d5c9a868SElliott Hughes 282*d5c9a868SElliott Hughes## --------------------- ## 283*d5c9a868SElliott Hughes## M4sh Shell Functions. ## 284*d5c9a868SElliott Hughes## --------------------- ## 285*d5c9a868SElliott Hughes# as_fn_unset VAR 286*d5c9a868SElliott Hughes# --------------- 287*d5c9a868SElliott Hughes# Portably unset VAR. 288*d5c9a868SElliott Hughesas_fn_unset () 289*d5c9a868SElliott Hughes{ 290*d5c9a868SElliott Hughes { eval $1=; unset $1;} 291*d5c9a868SElliott Hughes} 292*d5c9a868SElliott Hughesas_unset=as_fn_unset 293*d5c9a868SElliott Hughes 294*d5c9a868SElliott Hughes# as_fn_set_status STATUS 295*d5c9a868SElliott Hughes# ----------------------- 296*d5c9a868SElliott Hughes# Set $? to STATUS, without forking. 297*d5c9a868SElliott Hughesas_fn_set_status () 298*d5c9a868SElliott Hughes{ 299*d5c9a868SElliott Hughes return $1 300*d5c9a868SElliott Hughes} # as_fn_set_status 301*d5c9a868SElliott Hughes 302*d5c9a868SElliott Hughes# as_fn_exit STATUS 303*d5c9a868SElliott Hughes# ----------------- 304*d5c9a868SElliott Hughes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305*d5c9a868SElliott Hughesas_fn_exit () 306*d5c9a868SElliott Hughes{ 307*d5c9a868SElliott Hughes set +e 308*d5c9a868SElliott Hughes as_fn_set_status $1 309*d5c9a868SElliott Hughes exit $1 310*d5c9a868SElliott Hughes} # as_fn_exit 311*d5c9a868SElliott Hughes 312*d5c9a868SElliott Hughes# as_fn_mkdir_p 313*d5c9a868SElliott Hughes# ------------- 314*d5c9a868SElliott Hughes# Create "$as_dir" as a directory, including parents if necessary. 315*d5c9a868SElliott Hughesas_fn_mkdir_p () 316*d5c9a868SElliott Hughes{ 317*d5c9a868SElliott Hughes 318*d5c9a868SElliott Hughes case $as_dir in #( 319*d5c9a868SElliott Hughes -*) as_dir=./$as_dir;; 320*d5c9a868SElliott Hughes esac 321*d5c9a868SElliott Hughes test -d "$as_dir" || eval $as_mkdir_p || { 322*d5c9a868SElliott Hughes as_dirs= 323*d5c9a868SElliott Hughes while :; do 324*d5c9a868SElliott Hughes case $as_dir in #( 325*d5c9a868SElliott Hughes *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326*d5c9a868SElliott Hughes *) as_qdir=$as_dir;; 327*d5c9a868SElliott Hughes esac 328*d5c9a868SElliott Hughes as_dirs="'$as_qdir' $as_dirs" 329*d5c9a868SElliott Hughes as_dir=`$as_dirname -- "$as_dir" || 330*d5c9a868SElliott Hughes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331*d5c9a868SElliott Hughes X"$as_dir" : 'X\(//\)[^/]' \| \ 332*d5c9a868SElliott Hughes X"$as_dir" : 'X\(//\)$' \| \ 333*d5c9a868SElliott Hughes X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334*d5c9a868SElliott Hughes$as_echo X"$as_dir" | 335*d5c9a868SElliott Hughes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336*d5c9a868SElliott Hughes s//\1/ 337*d5c9a868SElliott Hughes q 338*d5c9a868SElliott Hughes } 339*d5c9a868SElliott Hughes /^X\(\/\/\)[^/].*/{ 340*d5c9a868SElliott Hughes s//\1/ 341*d5c9a868SElliott Hughes q 342*d5c9a868SElliott Hughes } 343*d5c9a868SElliott Hughes /^X\(\/\/\)$/{ 344*d5c9a868SElliott Hughes s//\1/ 345*d5c9a868SElliott Hughes q 346*d5c9a868SElliott Hughes } 347*d5c9a868SElliott Hughes /^X\(\/\).*/{ 348*d5c9a868SElliott Hughes s//\1/ 349*d5c9a868SElliott Hughes q 350*d5c9a868SElliott Hughes } 351*d5c9a868SElliott Hughes s/.*/./; q'` 352*d5c9a868SElliott Hughes test -d "$as_dir" && break 353*d5c9a868SElliott Hughes done 354*d5c9a868SElliott Hughes test -z "$as_dirs" || eval "mkdir $as_dirs" 355*d5c9a868SElliott Hughes } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356*d5c9a868SElliott Hughes 357*d5c9a868SElliott Hughes 358*d5c9a868SElliott Hughes} # as_fn_mkdir_p 359*d5c9a868SElliott Hughes 360*d5c9a868SElliott Hughes# as_fn_executable_p FILE 361*d5c9a868SElliott Hughes# ----------------------- 362*d5c9a868SElliott Hughes# Test if FILE is an executable regular file. 363*d5c9a868SElliott Hughesas_fn_executable_p () 364*d5c9a868SElliott Hughes{ 365*d5c9a868SElliott Hughes test -f "$1" && test -x "$1" 366*d5c9a868SElliott Hughes} # as_fn_executable_p 367*d5c9a868SElliott Hughes# as_fn_append VAR VALUE 368*d5c9a868SElliott Hughes# ---------------------- 369*d5c9a868SElliott Hughes# Append the text in VALUE to the end of the definition contained in VAR. Take 370*d5c9a868SElliott Hughes# advantage of any shell optimizations that allow amortized linear growth over 371*d5c9a868SElliott Hughes# repeated appends, instead of the typical quadratic growth present in naive 372*d5c9a868SElliott Hughes# implementations. 373*d5c9a868SElliott Hughesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374*d5c9a868SElliott Hughes eval 'as_fn_append () 375*d5c9a868SElliott Hughes { 376*d5c9a868SElliott Hughes eval $1+=\$2 377*d5c9a868SElliott Hughes }' 378*d5c9a868SElliott Hugheselse 379*d5c9a868SElliott Hughes as_fn_append () 380*d5c9a868SElliott Hughes { 381*d5c9a868SElliott Hughes eval $1=\$$1\$2 382*d5c9a868SElliott Hughes } 383*d5c9a868SElliott Hughesfi # as_fn_append 384*d5c9a868SElliott Hughes 385*d5c9a868SElliott Hughes# as_fn_arith ARG... 386*d5c9a868SElliott Hughes# ------------------ 387*d5c9a868SElliott Hughes# Perform arithmetic evaluation on the ARGs, and store the result in the 388*d5c9a868SElliott Hughes# global $as_val. Take advantage of shells that can avoid forks. The arguments 389*d5c9a868SElliott Hughes# must be portable across $(()) and expr. 390*d5c9a868SElliott Hughesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391*d5c9a868SElliott Hughes eval 'as_fn_arith () 392*d5c9a868SElliott Hughes { 393*d5c9a868SElliott Hughes as_val=$(( $* )) 394*d5c9a868SElliott Hughes }' 395*d5c9a868SElliott Hugheselse 396*d5c9a868SElliott Hughes as_fn_arith () 397*d5c9a868SElliott Hughes { 398*d5c9a868SElliott Hughes as_val=`expr "$@" || test $? -eq 1` 399*d5c9a868SElliott Hughes } 400*d5c9a868SElliott Hughesfi # as_fn_arith 401*d5c9a868SElliott Hughes 402*d5c9a868SElliott Hughes 403*d5c9a868SElliott Hughes# as_fn_error STATUS ERROR [LINENO LOG_FD] 404*d5c9a868SElliott Hughes# ---------------------------------------- 405*d5c9a868SElliott Hughes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406*d5c9a868SElliott Hughes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407*d5c9a868SElliott Hughes# script with STATUS, using 1 if that was 0. 408*d5c9a868SElliott Hughesas_fn_error () 409*d5c9a868SElliott Hughes{ 410*d5c9a868SElliott Hughes as_status=$1; test $as_status -eq 0 && as_status=1 411*d5c9a868SElliott Hughes if test "$4"; then 412*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414*d5c9a868SElliott Hughes fi 415*d5c9a868SElliott Hughes $as_echo "$as_me: error: $2" >&2 416*d5c9a868SElliott Hughes as_fn_exit $as_status 417*d5c9a868SElliott Hughes} # as_fn_error 418*d5c9a868SElliott Hughes 419*d5c9a868SElliott Hughesif expr a : '\(a\)' >/dev/null 2>&1 && 420*d5c9a868SElliott Hughes test "X`expr 00001 : '.*\(...\)'`" = X001; then 421*d5c9a868SElliott Hughes as_expr=expr 422*d5c9a868SElliott Hugheselse 423*d5c9a868SElliott Hughes as_expr=false 424*d5c9a868SElliott Hughesfi 425*d5c9a868SElliott Hughes 426*d5c9a868SElliott Hughesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427*d5c9a868SElliott Hughes as_basename=basename 428*d5c9a868SElliott Hugheselse 429*d5c9a868SElliott Hughes as_basename=false 430*d5c9a868SElliott Hughesfi 431*d5c9a868SElliott Hughes 432*d5c9a868SElliott Hughesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433*d5c9a868SElliott Hughes as_dirname=dirname 434*d5c9a868SElliott Hugheselse 435*d5c9a868SElliott Hughes as_dirname=false 436*d5c9a868SElliott Hughesfi 437*d5c9a868SElliott Hughes 438*d5c9a868SElliott Hughesas_me=`$as_basename -- "$0" || 439*d5c9a868SElliott Hughes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440*d5c9a868SElliott Hughes X"$0" : 'X\(//\)$' \| \ 441*d5c9a868SElliott Hughes X"$0" : 'X\(/\)' \| . 2>/dev/null || 442*d5c9a868SElliott Hughes$as_echo X/"$0" | 443*d5c9a868SElliott Hughes sed '/^.*\/\([^/][^/]*\)\/*$/{ 444*d5c9a868SElliott Hughes s//\1/ 445*d5c9a868SElliott Hughes q 446*d5c9a868SElliott Hughes } 447*d5c9a868SElliott Hughes /^X\/\(\/\/\)$/{ 448*d5c9a868SElliott Hughes s//\1/ 449*d5c9a868SElliott Hughes q 450*d5c9a868SElliott Hughes } 451*d5c9a868SElliott Hughes /^X\/\(\/\).*/{ 452*d5c9a868SElliott Hughes s//\1/ 453*d5c9a868SElliott Hughes q 454*d5c9a868SElliott Hughes } 455*d5c9a868SElliott Hughes s/.*/./; q'` 456*d5c9a868SElliott Hughes 457*d5c9a868SElliott Hughes# Avoid depending upon Character Ranges. 458*d5c9a868SElliott Hughesas_cr_letters='abcdefghijklmnopqrstuvwxyz' 459*d5c9a868SElliott Hughesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460*d5c9a868SElliott Hughesas_cr_Letters=$as_cr_letters$as_cr_LETTERS 461*d5c9a868SElliott Hughesas_cr_digits='0123456789' 462*d5c9a868SElliott Hughesas_cr_alnum=$as_cr_Letters$as_cr_digits 463*d5c9a868SElliott Hughes 464*d5c9a868SElliott Hughes 465*d5c9a868SElliott Hughes as_lineno_1=$LINENO as_lineno_1a=$LINENO 466*d5c9a868SElliott Hughes as_lineno_2=$LINENO as_lineno_2a=$LINENO 467*d5c9a868SElliott Hughes eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468*d5c9a868SElliott Hughes test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469*d5c9a868SElliott Hughes # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470*d5c9a868SElliott Hughes sed -n ' 471*d5c9a868SElliott Hughes p 472*d5c9a868SElliott Hughes /[$]LINENO/= 473*d5c9a868SElliott Hughes ' <$as_myself | 474*d5c9a868SElliott Hughes sed ' 475*d5c9a868SElliott Hughes s/[$]LINENO.*/&-/ 476*d5c9a868SElliott Hughes t lineno 477*d5c9a868SElliott Hughes b 478*d5c9a868SElliott Hughes :lineno 479*d5c9a868SElliott Hughes N 480*d5c9a868SElliott Hughes :loop 481*d5c9a868SElliott Hughes s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482*d5c9a868SElliott Hughes t loop 483*d5c9a868SElliott Hughes s/-\n.*// 484*d5c9a868SElliott Hughes ' >$as_me.lineno && 485*d5c9a868SElliott Hughes chmod +x "$as_me.lineno" || 486*d5c9a868SElliott Hughes { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487*d5c9a868SElliott Hughes 488*d5c9a868SElliott Hughes # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489*d5c9a868SElliott Hughes # already done that, so ensure we don't try to do so again and fall 490*d5c9a868SElliott Hughes # in an infinite loop. This has already happened in practice. 491*d5c9a868SElliott Hughes _as_can_reexec=no; export _as_can_reexec 492*d5c9a868SElliott Hughes # Don't try to exec as it changes $[0], causing all sort of problems 493*d5c9a868SElliott Hughes # (the dirname of $[0] is not the place where we might find the 494*d5c9a868SElliott Hughes # original and so on. Autoconf is especially sensitive to this). 495*d5c9a868SElliott Hughes . "./$as_me.lineno" 496*d5c9a868SElliott Hughes # Exit status is that of the last command. 497*d5c9a868SElliott Hughes exit 498*d5c9a868SElliott Hughes} 499*d5c9a868SElliott Hughes 500*d5c9a868SElliott HughesECHO_C= ECHO_N= ECHO_T= 501*d5c9a868SElliott Hughescase `echo -n x` in #((((( 502*d5c9a868SElliott Hughes-n*) 503*d5c9a868SElliott Hughes case `echo 'xy\c'` in 504*d5c9a868SElliott Hughes *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505*d5c9a868SElliott Hughes xy) ECHO_C='\c';; 506*d5c9a868SElliott Hughes *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507*d5c9a868SElliott Hughes ECHO_T=' ';; 508*d5c9a868SElliott Hughes esac;; 509*d5c9a868SElliott Hughes*) 510*d5c9a868SElliott Hughes ECHO_N='-n';; 511*d5c9a868SElliott Hughesesac 512*d5c9a868SElliott Hughes 513*d5c9a868SElliott Hughesrm -f conf$$ conf$$.exe conf$$.file 514*d5c9a868SElliott Hughesif test -d conf$$.dir; then 515*d5c9a868SElliott Hughes rm -f conf$$.dir/conf$$.file 516*d5c9a868SElliott Hugheselse 517*d5c9a868SElliott Hughes rm -f conf$$.dir 518*d5c9a868SElliott Hughes mkdir conf$$.dir 2>/dev/null 519*d5c9a868SElliott Hughesfi 520*d5c9a868SElliott Hughesif (echo >conf$$.file) 2>/dev/null; then 521*d5c9a868SElliott Hughes if ln -s conf$$.file conf$$ 2>/dev/null; then 522*d5c9a868SElliott Hughes as_ln_s='ln -s' 523*d5c9a868SElliott Hughes # ... but there are two gotchas: 524*d5c9a868SElliott Hughes # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525*d5c9a868SElliott Hughes # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526*d5c9a868SElliott Hughes # In both cases, we have to default to `cp -pR'. 527*d5c9a868SElliott Hughes ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528*d5c9a868SElliott Hughes as_ln_s='cp -pR' 529*d5c9a868SElliott Hughes elif ln conf$$.file conf$$ 2>/dev/null; then 530*d5c9a868SElliott Hughes as_ln_s=ln 531*d5c9a868SElliott Hughes else 532*d5c9a868SElliott Hughes as_ln_s='cp -pR' 533*d5c9a868SElliott Hughes fi 534*d5c9a868SElliott Hugheselse 535*d5c9a868SElliott Hughes as_ln_s='cp -pR' 536*d5c9a868SElliott Hughesfi 537*d5c9a868SElliott Hughesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538*d5c9a868SElliott Hughesrmdir conf$$.dir 2>/dev/null 539*d5c9a868SElliott Hughes 540*d5c9a868SElliott Hughesif mkdir -p . 2>/dev/null; then 541*d5c9a868SElliott Hughes as_mkdir_p='mkdir -p "$as_dir"' 542*d5c9a868SElliott Hugheselse 543*d5c9a868SElliott Hughes test -d ./-p && rmdir ./-p 544*d5c9a868SElliott Hughes as_mkdir_p=false 545*d5c9a868SElliott Hughesfi 546*d5c9a868SElliott Hughes 547*d5c9a868SElliott Hughesas_test_x='test -x' 548*d5c9a868SElliott Hughesas_executable_p=as_fn_executable_p 549*d5c9a868SElliott Hughes 550*d5c9a868SElliott Hughes# Sed expression to map a string onto a valid CPP name. 551*d5c9a868SElliott Hughesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552*d5c9a868SElliott Hughes 553*d5c9a868SElliott Hughes# Sed expression to map a string onto a valid variable name. 554*d5c9a868SElliott Hughesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555*d5c9a868SElliott Hughes 556*d5c9a868SElliott Hughes 557*d5c9a868SElliott Hughestest -n "$DJDIR" || exec 7<&0 </dev/null 558*d5c9a868SElliott Hughesexec 6>&1 559*d5c9a868SElliott Hughes 560*d5c9a868SElliott Hughes# Name of the host. 561*d5c9a868SElliott Hughes# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562*d5c9a868SElliott Hughes# so uname gets run too. 563*d5c9a868SElliott Hughesac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564*d5c9a868SElliott Hughes 565*d5c9a868SElliott Hughes# 566*d5c9a868SElliott Hughes# Initializations. 567*d5c9a868SElliott Hughes# 568*d5c9a868SElliott Hughesac_default_prefix=/usr/local 569*d5c9a868SElliott Hughesac_clean_files= 570*d5c9a868SElliott Hughesac_config_libobj_dir=. 571*d5c9a868SElliott HughesLIBOBJS= 572*d5c9a868SElliott Hughescross_compiling=no 573*d5c9a868SElliott Hughessubdirs= 574*d5c9a868SElliott HughesMFLAGS= 575*d5c9a868SElliott HughesMAKEFLAGS= 576*d5c9a868SElliott Hughes 577*d5c9a868SElliott Hughes# Identity of this package. 578*d5c9a868SElliott HughesPACKAGE_NAME= 579*d5c9a868SElliott HughesPACKAGE_TARNAME= 580*d5c9a868SElliott HughesPACKAGE_VERSION= 581*d5c9a868SElliott HughesPACKAGE_STRING= 582*d5c9a868SElliott HughesPACKAGE_BUGREPORT= 583*d5c9a868SElliott HughesPACKAGE_URL= 584*d5c9a868SElliott Hughes 585*d5c9a868SElliott Hughesac_unique_file="buffer.c" 586*d5c9a868SElliott Hughes# Factoring default headers for most tests. 587*d5c9a868SElliott Hughesac_includes_default="\ 588*d5c9a868SElliott Hughes#include <stdio.h> 589*d5c9a868SElliott Hughes#ifdef HAVE_SYS_TYPES_H 590*d5c9a868SElliott Hughes# include <sys/types.h> 591*d5c9a868SElliott Hughes#endif 592*d5c9a868SElliott Hughes#ifdef HAVE_SYS_STAT_H 593*d5c9a868SElliott Hughes# include <sys/stat.h> 594*d5c9a868SElliott Hughes#endif 595*d5c9a868SElliott Hughes#ifdef STDC_HEADERS 596*d5c9a868SElliott Hughes# include <stdlib.h> 597*d5c9a868SElliott Hughes# include <stddef.h> 598*d5c9a868SElliott Hughes#else 599*d5c9a868SElliott Hughes# ifdef HAVE_STDLIB_H 600*d5c9a868SElliott Hughes# include <stdlib.h> 601*d5c9a868SElliott Hughes# endif 602*d5c9a868SElliott Hughes#endif 603*d5c9a868SElliott Hughes#ifdef HAVE_STRING_H 604*d5c9a868SElliott Hughes# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605*d5c9a868SElliott Hughes# include <memory.h> 606*d5c9a868SElliott Hughes# endif 607*d5c9a868SElliott Hughes# include <string.h> 608*d5c9a868SElliott Hughes#endif 609*d5c9a868SElliott Hughes#ifdef HAVE_STRINGS_H 610*d5c9a868SElliott Hughes# include <strings.h> 611*d5c9a868SElliott Hughes#endif 612*d5c9a868SElliott Hughes#ifdef HAVE_INTTYPES_H 613*d5c9a868SElliott Hughes# include <inttypes.h> 614*d5c9a868SElliott Hughes#endif 615*d5c9a868SElliott Hughes#ifdef HAVE_STDINT_H 616*d5c9a868SElliott Hughes# include <stdint.h> 617*d5c9a868SElliott Hughes#endif 618*d5c9a868SElliott Hughes#ifdef HAVE_UNISTD_H 619*d5c9a868SElliott Hughes# include <unistd.h> 620*d5c9a868SElliott Hughes#endif" 621*d5c9a868SElliott Hughes 622*d5c9a868SElliott Hughesac_subst_vars='LTLIBOBJS 623*d5c9a868SElliott HughesLIBOBJS 624*d5c9a868SElliott HughesHOST_ID 625*d5c9a868SElliott HughesSHLIB 626*d5c9a868SElliott HughesMACHDEPLIBS 627*d5c9a868SElliott Hughesextralibdir 628*d5c9a868SElliott Hughesextraincludedir 629*d5c9a868SElliott HughesFLOPPYD_IO_OBJ 630*d5c9a868SElliott HughesFLOPPYD_IO_SRC 631*d5c9a868SElliott HughesBINFLOPPYD 632*d5c9a868SElliott HughesFLOPPYD 633*d5c9a868SElliott HughesFLOPPYD_LIBS 634*d5c9a868SElliott HughesX_EXTRA_LIBS 635*d5c9a868SElliott HughesX_LIBS 636*d5c9a868SElliott HughesX_PRE_LIBS 637*d5c9a868SElliott HughesX_CFLAGS 638*d5c9a868SElliott HughesXMKMF 639*d5c9a868SElliott HughesXDF_IO_OBJ 640*d5c9a868SElliott HughesXDF_IO_SRC 641*d5c9a868SElliott Hughestarget_os 642*d5c9a868SElliott Hughestarget_vendor 643*d5c9a868SElliott Hughestarget_cpu 644*d5c9a868SElliott Hughestarget 645*d5c9a868SElliott Hugheshost_os 646*d5c9a868SElliott Hugheshost_vendor 647*d5c9a868SElliott Hugheshost_cpu 648*d5c9a868SElliott Hugheshost 649*d5c9a868SElliott Hughesbuild_os 650*d5c9a868SElliott Hughesbuild_vendor 651*d5c9a868SElliott Hughesbuild_cpu 652*d5c9a868SElliott Hughesbuild 653*d5c9a868SElliott HughesINSTALL_INFO 654*d5c9a868SElliott HughesLN_S 655*d5c9a868SElliott HughesINSTALL_DATA 656*d5c9a868SElliott HughesINSTALL_SCRIPT 657*d5c9a868SElliott HughesINSTALL_PROGRAM 658*d5c9a868SElliott HughesEGREP 659*d5c9a868SElliott HughesGREP 660*d5c9a868SElliott HughesCPP 661*d5c9a868SElliott HughesOBJEXT 662*d5c9a868SElliott HughesEXEEXT 663*d5c9a868SElliott Hughesac_ct_CC 664*d5c9a868SElliott HughesCPPFLAGS 665*d5c9a868SElliott HughesLDFLAGS 666*d5c9a868SElliott HughesCFLAGS 667*d5c9a868SElliott HughesCC 668*d5c9a868SElliott Hughestarget_alias 669*d5c9a868SElliott Hugheshost_alias 670*d5c9a868SElliott Hughesbuild_alias 671*d5c9a868SElliott HughesLIBS 672*d5c9a868SElliott HughesECHO_T 673*d5c9a868SElliott HughesECHO_N 674*d5c9a868SElliott HughesECHO_C 675*d5c9a868SElliott HughesDEFS 676*d5c9a868SElliott Hughesmandir 677*d5c9a868SElliott Hugheslocaledir 678*d5c9a868SElliott Hugheslibdir 679*d5c9a868SElliott Hughespsdir 680*d5c9a868SElliott Hughespdfdir 681*d5c9a868SElliott Hughesdvidir 682*d5c9a868SElliott Hugheshtmldir 683*d5c9a868SElliott Hughesinfodir 684*d5c9a868SElliott Hughesdocdir 685*d5c9a868SElliott Hughesoldincludedir 686*d5c9a868SElliott Hughesincludedir 687*d5c9a868SElliott Hughesrunstatedir 688*d5c9a868SElliott Hugheslocalstatedir 689*d5c9a868SElliott Hughessharedstatedir 690*d5c9a868SElliott Hughessysconfdir 691*d5c9a868SElliott Hughesdatadir 692*d5c9a868SElliott Hughesdatarootdir 693*d5c9a868SElliott Hugheslibexecdir 694*d5c9a868SElliott Hughessbindir 695*d5c9a868SElliott Hughesbindir 696*d5c9a868SElliott Hughesprogram_transform_name 697*d5c9a868SElliott Hughesprefix 698*d5c9a868SElliott Hughesexec_prefix 699*d5c9a868SElliott HughesPACKAGE_URL 700*d5c9a868SElliott HughesPACKAGE_BUGREPORT 701*d5c9a868SElliott HughesPACKAGE_STRING 702*d5c9a868SElliott HughesPACKAGE_VERSION 703*d5c9a868SElliott HughesPACKAGE_TARNAME 704*d5c9a868SElliott HughesPACKAGE_NAME 705*d5c9a868SElliott HughesPATH_SEPARATOR 706*d5c9a868SElliott HughesSHELL' 707*d5c9a868SElliott Hughesac_subst_files='' 708*d5c9a868SElliott Hughesac_user_opts=' 709*d5c9a868SElliott Hughesenable_option_checking 710*d5c9a868SElliott Hughesenable_xdf 711*d5c9a868SElliott Hughesenable_vold 712*d5c9a868SElliott Hughesenable_new_vold 713*d5c9a868SElliott Hughesenable_debug 714*d5c9a868SElliott Hughesenable_raw_term 715*d5c9a868SElliott Hughesenable_largefile 716*d5c9a868SElliott Hugheswith_x 717*d5c9a868SElliott Hughesenable_floppyd 718*d5c9a868SElliott Hughes' 719*d5c9a868SElliott Hughes ac_precious_vars='build_alias 720*d5c9a868SElliott Hugheshost_alias 721*d5c9a868SElliott Hughestarget_alias 722*d5c9a868SElliott HughesCC 723*d5c9a868SElliott HughesCFLAGS 724*d5c9a868SElliott HughesLDFLAGS 725*d5c9a868SElliott HughesLIBS 726*d5c9a868SElliott HughesCPPFLAGS 727*d5c9a868SElliott HughesCPP 728*d5c9a868SElliott HughesXMKMF' 729*d5c9a868SElliott Hughes 730*d5c9a868SElliott Hughes 731*d5c9a868SElliott Hughes# Initialize some variables set by options. 732*d5c9a868SElliott Hughesac_init_help= 733*d5c9a868SElliott Hughesac_init_version=false 734*d5c9a868SElliott Hughesac_unrecognized_opts= 735*d5c9a868SElliott Hughesac_unrecognized_sep= 736*d5c9a868SElliott Hughes# The variables have the same names as the options, with 737*d5c9a868SElliott Hughes# dashes changed to underlines. 738*d5c9a868SElliott Hughescache_file=/dev/null 739*d5c9a868SElliott Hughesexec_prefix=NONE 740*d5c9a868SElliott Hughesno_create= 741*d5c9a868SElliott Hughesno_recursion= 742*d5c9a868SElliott Hughesprefix=NONE 743*d5c9a868SElliott Hughesprogram_prefix=NONE 744*d5c9a868SElliott Hughesprogram_suffix=NONE 745*d5c9a868SElliott Hughesprogram_transform_name=s,x,x, 746*d5c9a868SElliott Hughessilent= 747*d5c9a868SElliott Hughessite= 748*d5c9a868SElliott Hughessrcdir= 749*d5c9a868SElliott Hughesverbose= 750*d5c9a868SElliott Hughesx_includes=NONE 751*d5c9a868SElliott Hughesx_libraries=NONE 752*d5c9a868SElliott Hughes 753*d5c9a868SElliott Hughes# Installation directory options. 754*d5c9a868SElliott Hughes# These are left unexpanded so users can "make install exec_prefix=/foo" 755*d5c9a868SElliott Hughes# and all the variables that are supposed to be based on exec_prefix 756*d5c9a868SElliott Hughes# by default will actually change. 757*d5c9a868SElliott Hughes# Use braces instead of parens because sh, perl, etc. also accept them. 758*d5c9a868SElliott Hughes# (The list follows the same order as the GNU Coding Standards.) 759*d5c9a868SElliott Hughesbindir='${exec_prefix}/bin' 760*d5c9a868SElliott Hughessbindir='${exec_prefix}/sbin' 761*d5c9a868SElliott Hugheslibexecdir='${exec_prefix}/libexec' 762*d5c9a868SElliott Hughesdatarootdir='${prefix}/share' 763*d5c9a868SElliott Hughesdatadir='${datarootdir}' 764*d5c9a868SElliott Hughessysconfdir='${prefix}/etc' 765*d5c9a868SElliott Hughessharedstatedir='${prefix}/com' 766*d5c9a868SElliott Hugheslocalstatedir='${prefix}/var' 767*d5c9a868SElliott Hughesrunstatedir='${localstatedir}/run' 768*d5c9a868SElliott Hughesincludedir='${prefix}/include' 769*d5c9a868SElliott Hughesoldincludedir='/usr/include' 770*d5c9a868SElliott Hughesdocdir='${datarootdir}/doc/${PACKAGE}' 771*d5c9a868SElliott Hughesinfodir='${datarootdir}/info' 772*d5c9a868SElliott Hugheshtmldir='${docdir}' 773*d5c9a868SElliott Hughesdvidir='${docdir}' 774*d5c9a868SElliott Hughespdfdir='${docdir}' 775*d5c9a868SElliott Hughespsdir='${docdir}' 776*d5c9a868SElliott Hugheslibdir='${exec_prefix}/lib' 777*d5c9a868SElliott Hugheslocaledir='${datarootdir}/locale' 778*d5c9a868SElliott Hughesmandir='${datarootdir}/man' 779*d5c9a868SElliott Hughes 780*d5c9a868SElliott Hughesac_prev= 781*d5c9a868SElliott Hughesac_dashdash= 782*d5c9a868SElliott Hughesfor ac_option 783*d5c9a868SElliott Hughesdo 784*d5c9a868SElliott Hughes # If the previous option needs an argument, assign it. 785*d5c9a868SElliott Hughes if test -n "$ac_prev"; then 786*d5c9a868SElliott Hughes eval $ac_prev=\$ac_option 787*d5c9a868SElliott Hughes ac_prev= 788*d5c9a868SElliott Hughes continue 789*d5c9a868SElliott Hughes fi 790*d5c9a868SElliott Hughes 791*d5c9a868SElliott Hughes case $ac_option in 792*d5c9a868SElliott Hughes *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 793*d5c9a868SElliott Hughes *=) ac_optarg= ;; 794*d5c9a868SElliott Hughes *) ac_optarg=yes ;; 795*d5c9a868SElliott Hughes esac 796*d5c9a868SElliott Hughes 797*d5c9a868SElliott Hughes # Accept the important Cygnus configure options, so we can diagnose typos. 798*d5c9a868SElliott Hughes 799*d5c9a868SElliott Hughes case $ac_dashdash$ac_option in 800*d5c9a868SElliott Hughes --) 801*d5c9a868SElliott Hughes ac_dashdash=yes ;; 802*d5c9a868SElliott Hughes 803*d5c9a868SElliott Hughes -bindir | --bindir | --bindi | --bind | --bin | --bi) 804*d5c9a868SElliott Hughes ac_prev=bindir ;; 805*d5c9a868SElliott Hughes -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 806*d5c9a868SElliott Hughes bindir=$ac_optarg ;; 807*d5c9a868SElliott Hughes 808*d5c9a868SElliott Hughes -build | --build | --buil | --bui | --bu) 809*d5c9a868SElliott Hughes ac_prev=build_alias ;; 810*d5c9a868SElliott Hughes -build=* | --build=* | --buil=* | --bui=* | --bu=*) 811*d5c9a868SElliott Hughes build_alias=$ac_optarg ;; 812*d5c9a868SElliott Hughes 813*d5c9a868SElliott Hughes -cache-file | --cache-file | --cache-fil | --cache-fi \ 814*d5c9a868SElliott Hughes | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 815*d5c9a868SElliott Hughes ac_prev=cache_file ;; 816*d5c9a868SElliott Hughes -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 817*d5c9a868SElliott Hughes | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 818*d5c9a868SElliott Hughes cache_file=$ac_optarg ;; 819*d5c9a868SElliott Hughes 820*d5c9a868SElliott Hughes --config-cache | -C) 821*d5c9a868SElliott Hughes cache_file=config.cache ;; 822*d5c9a868SElliott Hughes 823*d5c9a868SElliott Hughes -datadir | --datadir | --datadi | --datad) 824*d5c9a868SElliott Hughes ac_prev=datadir ;; 825*d5c9a868SElliott Hughes -datadir=* | --datadir=* | --datadi=* | --datad=*) 826*d5c9a868SElliott Hughes datadir=$ac_optarg ;; 827*d5c9a868SElliott Hughes 828*d5c9a868SElliott Hughes -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 829*d5c9a868SElliott Hughes | --dataroo | --dataro | --datar) 830*d5c9a868SElliott Hughes ac_prev=datarootdir ;; 831*d5c9a868SElliott Hughes -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 832*d5c9a868SElliott Hughes | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 833*d5c9a868SElliott Hughes datarootdir=$ac_optarg ;; 834*d5c9a868SElliott Hughes 835*d5c9a868SElliott Hughes -disable-* | --disable-*) 836*d5c9a868SElliott Hughes ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 837*d5c9a868SElliott Hughes # Reject names that are not valid shell variable names. 838*d5c9a868SElliott Hughes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 839*d5c9a868SElliott Hughes as_fn_error $? "invalid feature name: $ac_useropt" 840*d5c9a868SElliott Hughes ac_useropt_orig=$ac_useropt 841*d5c9a868SElliott Hughes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 842*d5c9a868SElliott Hughes case $ac_user_opts in 843*d5c9a868SElliott Hughes *" 844*d5c9a868SElliott Hughes"enable_$ac_useropt" 845*d5c9a868SElliott Hughes"*) ;; 846*d5c9a868SElliott Hughes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 847*d5c9a868SElliott Hughes ac_unrecognized_sep=', ';; 848*d5c9a868SElliott Hughes esac 849*d5c9a868SElliott Hughes eval enable_$ac_useropt=no ;; 850*d5c9a868SElliott Hughes 851*d5c9a868SElliott Hughes -docdir | --docdir | --docdi | --doc | --do) 852*d5c9a868SElliott Hughes ac_prev=docdir ;; 853*d5c9a868SElliott Hughes -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 854*d5c9a868SElliott Hughes docdir=$ac_optarg ;; 855*d5c9a868SElliott Hughes 856*d5c9a868SElliott Hughes -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 857*d5c9a868SElliott Hughes ac_prev=dvidir ;; 858*d5c9a868SElliott Hughes -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 859*d5c9a868SElliott Hughes dvidir=$ac_optarg ;; 860*d5c9a868SElliott Hughes 861*d5c9a868SElliott Hughes -enable-* | --enable-*) 862*d5c9a868SElliott Hughes ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 863*d5c9a868SElliott Hughes # Reject names that are not valid shell variable names. 864*d5c9a868SElliott Hughes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 865*d5c9a868SElliott Hughes as_fn_error $? "invalid feature name: $ac_useropt" 866*d5c9a868SElliott Hughes ac_useropt_orig=$ac_useropt 867*d5c9a868SElliott Hughes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 868*d5c9a868SElliott Hughes case $ac_user_opts in 869*d5c9a868SElliott Hughes *" 870*d5c9a868SElliott Hughes"enable_$ac_useropt" 871*d5c9a868SElliott Hughes"*) ;; 872*d5c9a868SElliott Hughes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 873*d5c9a868SElliott Hughes ac_unrecognized_sep=', ';; 874*d5c9a868SElliott Hughes esac 875*d5c9a868SElliott Hughes eval enable_$ac_useropt=\$ac_optarg ;; 876*d5c9a868SElliott Hughes 877*d5c9a868SElliott Hughes -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 878*d5c9a868SElliott Hughes | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 879*d5c9a868SElliott Hughes | --exec | --exe | --ex) 880*d5c9a868SElliott Hughes ac_prev=exec_prefix ;; 881*d5c9a868SElliott Hughes -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 882*d5c9a868SElliott Hughes | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 883*d5c9a868SElliott Hughes | --exec=* | --exe=* | --ex=*) 884*d5c9a868SElliott Hughes exec_prefix=$ac_optarg ;; 885*d5c9a868SElliott Hughes 886*d5c9a868SElliott Hughes -gas | --gas | --ga | --g) 887*d5c9a868SElliott Hughes # Obsolete; use --with-gas. 888*d5c9a868SElliott Hughes with_gas=yes ;; 889*d5c9a868SElliott Hughes 890*d5c9a868SElliott Hughes -help | --help | --hel | --he | -h) 891*d5c9a868SElliott Hughes ac_init_help=long ;; 892*d5c9a868SElliott Hughes -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 893*d5c9a868SElliott Hughes ac_init_help=recursive ;; 894*d5c9a868SElliott Hughes -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 895*d5c9a868SElliott Hughes ac_init_help=short ;; 896*d5c9a868SElliott Hughes 897*d5c9a868SElliott Hughes -host | --host | --hos | --ho) 898*d5c9a868SElliott Hughes ac_prev=host_alias ;; 899*d5c9a868SElliott Hughes -host=* | --host=* | --hos=* | --ho=*) 900*d5c9a868SElliott Hughes host_alias=$ac_optarg ;; 901*d5c9a868SElliott Hughes 902*d5c9a868SElliott Hughes -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 903*d5c9a868SElliott Hughes ac_prev=htmldir ;; 904*d5c9a868SElliott Hughes -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 905*d5c9a868SElliott Hughes | --ht=*) 906*d5c9a868SElliott Hughes htmldir=$ac_optarg ;; 907*d5c9a868SElliott Hughes 908*d5c9a868SElliott Hughes -includedir | --includedir | --includedi | --included | --include \ 909*d5c9a868SElliott Hughes | --includ | --inclu | --incl | --inc) 910*d5c9a868SElliott Hughes ac_prev=includedir ;; 911*d5c9a868SElliott Hughes -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 912*d5c9a868SElliott Hughes | --includ=* | --inclu=* | --incl=* | --inc=*) 913*d5c9a868SElliott Hughes includedir=$ac_optarg ;; 914*d5c9a868SElliott Hughes 915*d5c9a868SElliott Hughes -infodir | --infodir | --infodi | --infod | --info | --inf) 916*d5c9a868SElliott Hughes ac_prev=infodir ;; 917*d5c9a868SElliott Hughes -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 918*d5c9a868SElliott Hughes infodir=$ac_optarg ;; 919*d5c9a868SElliott Hughes 920*d5c9a868SElliott Hughes -libdir | --libdir | --libdi | --libd) 921*d5c9a868SElliott Hughes ac_prev=libdir ;; 922*d5c9a868SElliott Hughes -libdir=* | --libdir=* | --libdi=* | --libd=*) 923*d5c9a868SElliott Hughes libdir=$ac_optarg ;; 924*d5c9a868SElliott Hughes 925*d5c9a868SElliott Hughes -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 926*d5c9a868SElliott Hughes | --libexe | --libex | --libe) 927*d5c9a868SElliott Hughes ac_prev=libexecdir ;; 928*d5c9a868SElliott Hughes -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 929*d5c9a868SElliott Hughes | --libexe=* | --libex=* | --libe=*) 930*d5c9a868SElliott Hughes libexecdir=$ac_optarg ;; 931*d5c9a868SElliott Hughes 932*d5c9a868SElliott Hughes -localedir | --localedir | --localedi | --localed | --locale) 933*d5c9a868SElliott Hughes ac_prev=localedir ;; 934*d5c9a868SElliott Hughes -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 935*d5c9a868SElliott Hughes localedir=$ac_optarg ;; 936*d5c9a868SElliott Hughes 937*d5c9a868SElliott Hughes -localstatedir | --localstatedir | --localstatedi | --localstated \ 938*d5c9a868SElliott Hughes | --localstate | --localstat | --localsta | --localst | --locals) 939*d5c9a868SElliott Hughes ac_prev=localstatedir ;; 940*d5c9a868SElliott Hughes -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 941*d5c9a868SElliott Hughes | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 942*d5c9a868SElliott Hughes localstatedir=$ac_optarg ;; 943*d5c9a868SElliott Hughes 944*d5c9a868SElliott Hughes -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 945*d5c9a868SElliott Hughes ac_prev=mandir ;; 946*d5c9a868SElliott Hughes -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 947*d5c9a868SElliott Hughes mandir=$ac_optarg ;; 948*d5c9a868SElliott Hughes 949*d5c9a868SElliott Hughes -nfp | --nfp | --nf) 950*d5c9a868SElliott Hughes # Obsolete; use --without-fp. 951*d5c9a868SElliott Hughes with_fp=no ;; 952*d5c9a868SElliott Hughes 953*d5c9a868SElliott Hughes -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 954*d5c9a868SElliott Hughes | --no-cr | --no-c | -n) 955*d5c9a868SElliott Hughes no_create=yes ;; 956*d5c9a868SElliott Hughes 957*d5c9a868SElliott Hughes -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 958*d5c9a868SElliott Hughes | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 959*d5c9a868SElliott Hughes no_recursion=yes ;; 960*d5c9a868SElliott Hughes 961*d5c9a868SElliott Hughes -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 962*d5c9a868SElliott Hughes | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 963*d5c9a868SElliott Hughes | --oldin | --oldi | --old | --ol | --o) 964*d5c9a868SElliott Hughes ac_prev=oldincludedir ;; 965*d5c9a868SElliott Hughes -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 966*d5c9a868SElliott Hughes | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 967*d5c9a868SElliott Hughes | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 968*d5c9a868SElliott Hughes oldincludedir=$ac_optarg ;; 969*d5c9a868SElliott Hughes 970*d5c9a868SElliott Hughes -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 971*d5c9a868SElliott Hughes ac_prev=prefix ;; 972*d5c9a868SElliott Hughes -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 973*d5c9a868SElliott Hughes prefix=$ac_optarg ;; 974*d5c9a868SElliott Hughes 975*d5c9a868SElliott Hughes -program-prefix | --program-prefix | --program-prefi | --program-pref \ 976*d5c9a868SElliott Hughes | --program-pre | --program-pr | --program-p) 977*d5c9a868SElliott Hughes ac_prev=program_prefix ;; 978*d5c9a868SElliott Hughes -program-prefix=* | --program-prefix=* | --program-prefi=* \ 979*d5c9a868SElliott Hughes | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 980*d5c9a868SElliott Hughes program_prefix=$ac_optarg ;; 981*d5c9a868SElliott Hughes 982*d5c9a868SElliott Hughes -program-suffix | --program-suffix | --program-suffi | --program-suff \ 983*d5c9a868SElliott Hughes | --program-suf | --program-su | --program-s) 984*d5c9a868SElliott Hughes ac_prev=program_suffix ;; 985*d5c9a868SElliott Hughes -program-suffix=* | --program-suffix=* | --program-suffi=* \ 986*d5c9a868SElliott Hughes | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 987*d5c9a868SElliott Hughes program_suffix=$ac_optarg ;; 988*d5c9a868SElliott Hughes 989*d5c9a868SElliott Hughes -program-transform-name | --program-transform-name \ 990*d5c9a868SElliott Hughes | --program-transform-nam | --program-transform-na \ 991*d5c9a868SElliott Hughes | --program-transform-n | --program-transform- \ 992*d5c9a868SElliott Hughes | --program-transform | --program-transfor \ 993*d5c9a868SElliott Hughes | --program-transfo | --program-transf \ 994*d5c9a868SElliott Hughes | --program-trans | --program-tran \ 995*d5c9a868SElliott Hughes | --progr-tra | --program-tr | --program-t) 996*d5c9a868SElliott Hughes ac_prev=program_transform_name ;; 997*d5c9a868SElliott Hughes -program-transform-name=* | --program-transform-name=* \ 998*d5c9a868SElliott Hughes | --program-transform-nam=* | --program-transform-na=* \ 999*d5c9a868SElliott Hughes | --program-transform-n=* | --program-transform-=* \ 1000*d5c9a868SElliott Hughes | --program-transform=* | --program-transfor=* \ 1001*d5c9a868SElliott Hughes | --program-transfo=* | --program-transf=* \ 1002*d5c9a868SElliott Hughes | --program-trans=* | --program-tran=* \ 1003*d5c9a868SElliott Hughes | --progr-tra=* | --program-tr=* | --program-t=*) 1004*d5c9a868SElliott Hughes program_transform_name=$ac_optarg ;; 1005*d5c9a868SElliott Hughes 1006*d5c9a868SElliott Hughes -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1007*d5c9a868SElliott Hughes ac_prev=pdfdir ;; 1008*d5c9a868SElliott Hughes -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1009*d5c9a868SElliott Hughes pdfdir=$ac_optarg ;; 1010*d5c9a868SElliott Hughes 1011*d5c9a868SElliott Hughes -psdir | --psdir | --psdi | --psd | --ps) 1012*d5c9a868SElliott Hughes ac_prev=psdir ;; 1013*d5c9a868SElliott Hughes -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1014*d5c9a868SElliott Hughes psdir=$ac_optarg ;; 1015*d5c9a868SElliott Hughes 1016*d5c9a868SElliott Hughes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1017*d5c9a868SElliott Hughes | -silent | --silent | --silen | --sile | --sil) 1018*d5c9a868SElliott Hughes silent=yes ;; 1019*d5c9a868SElliott Hughes 1020*d5c9a868SElliott Hughes -runstatedir | --runstatedir | --runstatedi | --runstated \ 1021*d5c9a868SElliott Hughes | --runstate | --runstat | --runsta | --runst | --runs \ 1022*d5c9a868SElliott Hughes | --run | --ru | --r) 1023*d5c9a868SElliott Hughes ac_prev=runstatedir ;; 1024*d5c9a868SElliott Hughes -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1025*d5c9a868SElliott Hughes | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1026*d5c9a868SElliott Hughes | --run=* | --ru=* | --r=*) 1027*d5c9a868SElliott Hughes runstatedir=$ac_optarg ;; 1028*d5c9a868SElliott Hughes 1029*d5c9a868SElliott Hughes -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1030*d5c9a868SElliott Hughes ac_prev=sbindir ;; 1031*d5c9a868SElliott Hughes -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1032*d5c9a868SElliott Hughes | --sbi=* | --sb=*) 1033*d5c9a868SElliott Hughes sbindir=$ac_optarg ;; 1034*d5c9a868SElliott Hughes 1035*d5c9a868SElliott Hughes -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1036*d5c9a868SElliott Hughes | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1037*d5c9a868SElliott Hughes | --sharedst | --shareds | --shared | --share | --shar \ 1038*d5c9a868SElliott Hughes | --sha | --sh) 1039*d5c9a868SElliott Hughes ac_prev=sharedstatedir ;; 1040*d5c9a868SElliott Hughes -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1041*d5c9a868SElliott Hughes | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1042*d5c9a868SElliott Hughes | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1043*d5c9a868SElliott Hughes | --sha=* | --sh=*) 1044*d5c9a868SElliott Hughes sharedstatedir=$ac_optarg ;; 1045*d5c9a868SElliott Hughes 1046*d5c9a868SElliott Hughes -site | --site | --sit) 1047*d5c9a868SElliott Hughes ac_prev=site ;; 1048*d5c9a868SElliott Hughes -site=* | --site=* | --sit=*) 1049*d5c9a868SElliott Hughes site=$ac_optarg ;; 1050*d5c9a868SElliott Hughes 1051*d5c9a868SElliott Hughes -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1052*d5c9a868SElliott Hughes ac_prev=srcdir ;; 1053*d5c9a868SElliott Hughes -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1054*d5c9a868SElliott Hughes srcdir=$ac_optarg ;; 1055*d5c9a868SElliott Hughes 1056*d5c9a868SElliott Hughes -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1057*d5c9a868SElliott Hughes | --syscon | --sysco | --sysc | --sys | --sy) 1058*d5c9a868SElliott Hughes ac_prev=sysconfdir ;; 1059*d5c9a868SElliott Hughes -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1060*d5c9a868SElliott Hughes | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1061*d5c9a868SElliott Hughes sysconfdir=$ac_optarg ;; 1062*d5c9a868SElliott Hughes 1063*d5c9a868SElliott Hughes -target | --target | --targe | --targ | --tar | --ta | --t) 1064*d5c9a868SElliott Hughes ac_prev=target_alias ;; 1065*d5c9a868SElliott Hughes -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1066*d5c9a868SElliott Hughes target_alias=$ac_optarg ;; 1067*d5c9a868SElliott Hughes 1068*d5c9a868SElliott Hughes -v | -verbose | --verbose | --verbos | --verbo | --verb) 1069*d5c9a868SElliott Hughes verbose=yes ;; 1070*d5c9a868SElliott Hughes 1071*d5c9a868SElliott Hughes -version | --version | --versio | --versi | --vers | -V) 1072*d5c9a868SElliott Hughes ac_init_version=: ;; 1073*d5c9a868SElliott Hughes 1074*d5c9a868SElliott Hughes -with-* | --with-*) 1075*d5c9a868SElliott Hughes ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1076*d5c9a868SElliott Hughes # Reject names that are not valid shell variable names. 1077*d5c9a868SElliott Hughes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078*d5c9a868SElliott Hughes as_fn_error $? "invalid package name: $ac_useropt" 1079*d5c9a868SElliott Hughes ac_useropt_orig=$ac_useropt 1080*d5c9a868SElliott Hughes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081*d5c9a868SElliott Hughes case $ac_user_opts in 1082*d5c9a868SElliott Hughes *" 1083*d5c9a868SElliott Hughes"with_$ac_useropt" 1084*d5c9a868SElliott Hughes"*) ;; 1085*d5c9a868SElliott Hughes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1086*d5c9a868SElliott Hughes ac_unrecognized_sep=', ';; 1087*d5c9a868SElliott Hughes esac 1088*d5c9a868SElliott Hughes eval with_$ac_useropt=\$ac_optarg ;; 1089*d5c9a868SElliott Hughes 1090*d5c9a868SElliott Hughes -without-* | --without-*) 1091*d5c9a868SElliott Hughes ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1092*d5c9a868SElliott Hughes # Reject names that are not valid shell variable names. 1093*d5c9a868SElliott Hughes expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094*d5c9a868SElliott Hughes as_fn_error $? "invalid package name: $ac_useropt" 1095*d5c9a868SElliott Hughes ac_useropt_orig=$ac_useropt 1096*d5c9a868SElliott Hughes ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1097*d5c9a868SElliott Hughes case $ac_user_opts in 1098*d5c9a868SElliott Hughes *" 1099*d5c9a868SElliott Hughes"with_$ac_useropt" 1100*d5c9a868SElliott Hughes"*) ;; 1101*d5c9a868SElliott Hughes *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1102*d5c9a868SElliott Hughes ac_unrecognized_sep=', ';; 1103*d5c9a868SElliott Hughes esac 1104*d5c9a868SElliott Hughes eval with_$ac_useropt=no ;; 1105*d5c9a868SElliott Hughes 1106*d5c9a868SElliott Hughes --x) 1107*d5c9a868SElliott Hughes # Obsolete; use --with-x. 1108*d5c9a868SElliott Hughes with_x=yes ;; 1109*d5c9a868SElliott Hughes 1110*d5c9a868SElliott Hughes -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1111*d5c9a868SElliott Hughes | --x-incl | --x-inc | --x-in | --x-i) 1112*d5c9a868SElliott Hughes ac_prev=x_includes ;; 1113*d5c9a868SElliott Hughes -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1114*d5c9a868SElliott Hughes | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1115*d5c9a868SElliott Hughes x_includes=$ac_optarg ;; 1116*d5c9a868SElliott Hughes 1117*d5c9a868SElliott Hughes -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1118*d5c9a868SElliott Hughes | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1119*d5c9a868SElliott Hughes ac_prev=x_libraries ;; 1120*d5c9a868SElliott Hughes -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1121*d5c9a868SElliott Hughes | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1122*d5c9a868SElliott Hughes x_libraries=$ac_optarg ;; 1123*d5c9a868SElliott Hughes 1124*d5c9a868SElliott Hughes -*) as_fn_error $? "unrecognized option: \`$ac_option' 1125*d5c9a868SElliott HughesTry \`$0 --help' for more information" 1126*d5c9a868SElliott Hughes ;; 1127*d5c9a868SElliott Hughes 1128*d5c9a868SElliott Hughes *=*) 1129*d5c9a868SElliott Hughes ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1130*d5c9a868SElliott Hughes # Reject names that are not valid shell variable names. 1131*d5c9a868SElliott Hughes case $ac_envvar in #( 1132*d5c9a868SElliott Hughes '' | [0-9]* | *[!_$as_cr_alnum]* ) 1133*d5c9a868SElliott Hughes as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1134*d5c9a868SElliott Hughes esac 1135*d5c9a868SElliott Hughes eval $ac_envvar=\$ac_optarg 1136*d5c9a868SElliott Hughes export $ac_envvar ;; 1137*d5c9a868SElliott Hughes 1138*d5c9a868SElliott Hughes *) 1139*d5c9a868SElliott Hughes # FIXME: should be removed in autoconf 3.0. 1140*d5c9a868SElliott Hughes $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1141*d5c9a868SElliott Hughes expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1142*d5c9a868SElliott Hughes $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1143*d5c9a868SElliott Hughes : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1144*d5c9a868SElliott Hughes ;; 1145*d5c9a868SElliott Hughes 1146*d5c9a868SElliott Hughes esac 1147*d5c9a868SElliott Hughesdone 1148*d5c9a868SElliott Hughes 1149*d5c9a868SElliott Hughesif test -n "$ac_prev"; then 1150*d5c9a868SElliott Hughes ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1151*d5c9a868SElliott Hughes as_fn_error $? "missing argument to $ac_option" 1152*d5c9a868SElliott Hughesfi 1153*d5c9a868SElliott Hughes 1154*d5c9a868SElliott Hughesif test -n "$ac_unrecognized_opts"; then 1155*d5c9a868SElliott Hughes case $enable_option_checking in 1156*d5c9a868SElliott Hughes no) ;; 1157*d5c9a868SElliott Hughes fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1158*d5c9a868SElliott Hughes *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1159*d5c9a868SElliott Hughes esac 1160*d5c9a868SElliott Hughesfi 1161*d5c9a868SElliott Hughes 1162*d5c9a868SElliott Hughes# Check all directory arguments for consistency. 1163*d5c9a868SElliott Hughesfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1164*d5c9a868SElliott Hughes datadir sysconfdir sharedstatedir localstatedir includedir \ 1165*d5c9a868SElliott Hughes oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1166*d5c9a868SElliott Hughes libdir localedir mandir runstatedir 1167*d5c9a868SElliott Hughesdo 1168*d5c9a868SElliott Hughes eval ac_val=\$$ac_var 1169*d5c9a868SElliott Hughes # Remove trailing slashes. 1170*d5c9a868SElliott Hughes case $ac_val in 1171*d5c9a868SElliott Hughes */ ) 1172*d5c9a868SElliott Hughes ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1173*d5c9a868SElliott Hughes eval $ac_var=\$ac_val;; 1174*d5c9a868SElliott Hughes esac 1175*d5c9a868SElliott Hughes # Be sure to have absolute directory names. 1176*d5c9a868SElliott Hughes case $ac_val in 1177*d5c9a868SElliott Hughes [\\/$]* | ?:[\\/]* ) continue;; 1178*d5c9a868SElliott Hughes NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1179*d5c9a868SElliott Hughes esac 1180*d5c9a868SElliott Hughes as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1181*d5c9a868SElliott Hughesdone 1182*d5c9a868SElliott Hughes 1183*d5c9a868SElliott Hughes# There might be people who depend on the old broken behavior: `$host' 1184*d5c9a868SElliott Hughes# used to hold the argument of --host etc. 1185*d5c9a868SElliott Hughes# FIXME: To remove some day. 1186*d5c9a868SElliott Hughesbuild=$build_alias 1187*d5c9a868SElliott Hugheshost=$host_alias 1188*d5c9a868SElliott Hughestarget=$target_alias 1189*d5c9a868SElliott Hughes 1190*d5c9a868SElliott Hughes# FIXME: To remove some day. 1191*d5c9a868SElliott Hughesif test "x$host_alias" != x; then 1192*d5c9a868SElliott Hughes if test "x$build_alias" = x; then 1193*d5c9a868SElliott Hughes cross_compiling=maybe 1194*d5c9a868SElliott Hughes elif test "x$build_alias" != "x$host_alias"; then 1195*d5c9a868SElliott Hughes cross_compiling=yes 1196*d5c9a868SElliott Hughes fi 1197*d5c9a868SElliott Hughesfi 1198*d5c9a868SElliott Hughes 1199*d5c9a868SElliott Hughesac_tool_prefix= 1200*d5c9a868SElliott Hughestest -n "$host_alias" && ac_tool_prefix=$host_alias- 1201*d5c9a868SElliott Hughes 1202*d5c9a868SElliott Hughestest "$silent" = yes && exec 6>/dev/null 1203*d5c9a868SElliott Hughes 1204*d5c9a868SElliott Hughes 1205*d5c9a868SElliott Hughesac_pwd=`pwd` && test -n "$ac_pwd" && 1206*d5c9a868SElliott Hughesac_ls_di=`ls -di .` && 1207*d5c9a868SElliott Hughesac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1208*d5c9a868SElliott Hughes as_fn_error $? "working directory cannot be determined" 1209*d5c9a868SElliott Hughestest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1210*d5c9a868SElliott Hughes as_fn_error $? "pwd does not report name of working directory" 1211*d5c9a868SElliott Hughes 1212*d5c9a868SElliott Hughes 1213*d5c9a868SElliott Hughes# Find the source files, if location was not specified. 1214*d5c9a868SElliott Hughesif test -z "$srcdir"; then 1215*d5c9a868SElliott Hughes ac_srcdir_defaulted=yes 1216*d5c9a868SElliott Hughes # Try the directory containing this script, then the parent directory. 1217*d5c9a868SElliott Hughes ac_confdir=`$as_dirname -- "$as_myself" || 1218*d5c9a868SElliott Hughes$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1219*d5c9a868SElliott Hughes X"$as_myself" : 'X\(//\)[^/]' \| \ 1220*d5c9a868SElliott Hughes X"$as_myself" : 'X\(//\)$' \| \ 1221*d5c9a868SElliott Hughes X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1222*d5c9a868SElliott Hughes$as_echo X"$as_myself" | 1223*d5c9a868SElliott Hughes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1224*d5c9a868SElliott Hughes s//\1/ 1225*d5c9a868SElliott Hughes q 1226*d5c9a868SElliott Hughes } 1227*d5c9a868SElliott Hughes /^X\(\/\/\)[^/].*/{ 1228*d5c9a868SElliott Hughes s//\1/ 1229*d5c9a868SElliott Hughes q 1230*d5c9a868SElliott Hughes } 1231*d5c9a868SElliott Hughes /^X\(\/\/\)$/{ 1232*d5c9a868SElliott Hughes s//\1/ 1233*d5c9a868SElliott Hughes q 1234*d5c9a868SElliott Hughes } 1235*d5c9a868SElliott Hughes /^X\(\/\).*/{ 1236*d5c9a868SElliott Hughes s//\1/ 1237*d5c9a868SElliott Hughes q 1238*d5c9a868SElliott Hughes } 1239*d5c9a868SElliott Hughes s/.*/./; q'` 1240*d5c9a868SElliott Hughes srcdir=$ac_confdir 1241*d5c9a868SElliott Hughes if test ! -r "$srcdir/$ac_unique_file"; then 1242*d5c9a868SElliott Hughes srcdir=.. 1243*d5c9a868SElliott Hughes fi 1244*d5c9a868SElliott Hugheselse 1245*d5c9a868SElliott Hughes ac_srcdir_defaulted=no 1246*d5c9a868SElliott Hughesfi 1247*d5c9a868SElliott Hughesif test ! -r "$srcdir/$ac_unique_file"; then 1248*d5c9a868SElliott Hughes test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1249*d5c9a868SElliott Hughes as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1250*d5c9a868SElliott Hughesfi 1251*d5c9a868SElliott Hughesac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1252*d5c9a868SElliott Hughesac_abs_confdir=`( 1253*d5c9a868SElliott Hughes cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1254*d5c9a868SElliott Hughes pwd)` 1255*d5c9a868SElliott Hughes# When building in place, set srcdir=. 1256*d5c9a868SElliott Hughesif test "$ac_abs_confdir" = "$ac_pwd"; then 1257*d5c9a868SElliott Hughes srcdir=. 1258*d5c9a868SElliott Hughesfi 1259*d5c9a868SElliott Hughes# Remove unnecessary trailing slashes from srcdir. 1260*d5c9a868SElliott Hughes# Double slashes in file names in object file debugging info 1261*d5c9a868SElliott Hughes# mess up M-x gdb in Emacs. 1262*d5c9a868SElliott Hughescase $srcdir in 1263*d5c9a868SElliott Hughes*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1264*d5c9a868SElliott Hughesesac 1265*d5c9a868SElliott Hughesfor ac_var in $ac_precious_vars; do 1266*d5c9a868SElliott Hughes eval ac_env_${ac_var}_set=\${${ac_var}+set} 1267*d5c9a868SElliott Hughes eval ac_env_${ac_var}_value=\$${ac_var} 1268*d5c9a868SElliott Hughes eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1269*d5c9a868SElliott Hughes eval ac_cv_env_${ac_var}_value=\$${ac_var} 1270*d5c9a868SElliott Hughesdone 1271*d5c9a868SElliott Hughes 1272*d5c9a868SElliott Hughes# 1273*d5c9a868SElliott Hughes# Report the --help message. 1274*d5c9a868SElliott Hughes# 1275*d5c9a868SElliott Hughesif test "$ac_init_help" = "long"; then 1276*d5c9a868SElliott Hughes # Omit some internal or obsolete options to make the list less imposing. 1277*d5c9a868SElliott Hughes # This message is too long to be a string in the A/UX 3.1 sh. 1278*d5c9a868SElliott Hughes cat <<_ACEOF 1279*d5c9a868SElliott Hughes\`configure' configures this package to adapt to many kinds of systems. 1280*d5c9a868SElliott Hughes 1281*d5c9a868SElliott HughesUsage: $0 [OPTION]... [VAR=VALUE]... 1282*d5c9a868SElliott Hughes 1283*d5c9a868SElliott HughesTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1284*d5c9a868SElliott HughesVAR=VALUE. See below for descriptions of some of the useful variables. 1285*d5c9a868SElliott Hughes 1286*d5c9a868SElliott HughesDefaults for the options are specified in brackets. 1287*d5c9a868SElliott Hughes 1288*d5c9a868SElliott HughesConfiguration: 1289*d5c9a868SElliott Hughes -h, --help display this help and exit 1290*d5c9a868SElliott Hughes --help=short display options specific to this package 1291*d5c9a868SElliott Hughes --help=recursive display the short help of all the included packages 1292*d5c9a868SElliott Hughes -V, --version display version information and exit 1293*d5c9a868SElliott Hughes -q, --quiet, --silent do not print \`checking ...' messages 1294*d5c9a868SElliott Hughes --cache-file=FILE cache test results in FILE [disabled] 1295*d5c9a868SElliott Hughes -C, --config-cache alias for \`--cache-file=config.cache' 1296*d5c9a868SElliott Hughes -n, --no-create do not create output files 1297*d5c9a868SElliott Hughes --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1298*d5c9a868SElliott Hughes 1299*d5c9a868SElliott HughesInstallation directories: 1300*d5c9a868SElliott Hughes --prefix=PREFIX install architecture-independent files in PREFIX 1301*d5c9a868SElliott Hughes [$ac_default_prefix] 1302*d5c9a868SElliott Hughes --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1303*d5c9a868SElliott Hughes [PREFIX] 1304*d5c9a868SElliott Hughes 1305*d5c9a868SElliott HughesBy default, \`make install' will install all the files in 1306*d5c9a868SElliott Hughes\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1307*d5c9a868SElliott Hughesan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1308*d5c9a868SElliott Hughesfor instance \`--prefix=\$HOME'. 1309*d5c9a868SElliott Hughes 1310*d5c9a868SElliott HughesFor better control, use the options below. 1311*d5c9a868SElliott Hughes 1312*d5c9a868SElliott HughesFine tuning of the installation directories: 1313*d5c9a868SElliott Hughes --bindir=DIR user executables [EPREFIX/bin] 1314*d5c9a868SElliott Hughes --sbindir=DIR system admin executables [EPREFIX/sbin] 1315*d5c9a868SElliott Hughes --libexecdir=DIR program executables [EPREFIX/libexec] 1316*d5c9a868SElliott Hughes --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1317*d5c9a868SElliott Hughes --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1318*d5c9a868SElliott Hughes --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1319*d5c9a868SElliott Hughes --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1320*d5c9a868SElliott Hughes --libdir=DIR object code libraries [EPREFIX/lib] 1321*d5c9a868SElliott Hughes --includedir=DIR C header files [PREFIX/include] 1322*d5c9a868SElliott Hughes --oldincludedir=DIR C header files for non-gcc [/usr/include] 1323*d5c9a868SElliott Hughes --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1324*d5c9a868SElliott Hughes --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1325*d5c9a868SElliott Hughes --infodir=DIR info documentation [DATAROOTDIR/info] 1326*d5c9a868SElliott Hughes --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1327*d5c9a868SElliott Hughes --mandir=DIR man documentation [DATAROOTDIR/man] 1328*d5c9a868SElliott Hughes --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1329*d5c9a868SElliott Hughes --htmldir=DIR html documentation [DOCDIR] 1330*d5c9a868SElliott Hughes --dvidir=DIR dvi documentation [DOCDIR] 1331*d5c9a868SElliott Hughes --pdfdir=DIR pdf documentation [DOCDIR] 1332*d5c9a868SElliott Hughes --psdir=DIR ps documentation [DOCDIR] 1333*d5c9a868SElliott Hughes_ACEOF 1334*d5c9a868SElliott Hughes 1335*d5c9a868SElliott Hughes cat <<\_ACEOF 1336*d5c9a868SElliott Hughes 1337*d5c9a868SElliott HughesX features: 1338*d5c9a868SElliott Hughes --x-includes=DIR X include files are in DIR 1339*d5c9a868SElliott Hughes --x-libraries=DIR X library files are in DIR 1340*d5c9a868SElliott Hughes 1341*d5c9a868SElliott HughesSystem types: 1342*d5c9a868SElliott Hughes --build=BUILD configure for building on BUILD [guessed] 1343*d5c9a868SElliott Hughes --host=HOST cross-compile to build programs to run on HOST [BUILD] 1344*d5c9a868SElliott Hughes --target=TARGET configure for building compilers for TARGET [HOST] 1345*d5c9a868SElliott Hughes_ACEOF 1346*d5c9a868SElliott Hughesfi 1347*d5c9a868SElliott Hughes 1348*d5c9a868SElliott Hughesif test -n "$ac_init_help"; then 1349*d5c9a868SElliott Hughes 1350*d5c9a868SElliott Hughes cat <<\_ACEOF 1351*d5c9a868SElliott Hughes 1352*d5c9a868SElliott HughesOptional Features: 1353*d5c9a868SElliott Hughes --disable-option-checking ignore unrecognized --enable/--with options 1354*d5c9a868SElliott Hughes --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1355*d5c9a868SElliott Hughes --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1356*d5c9a868SElliott Hughes --enable-xdf support for OS/2 extended density format disks 1357*d5c9a868SElliott Hughes --enable-vold compatibility with Solaris' vold 1358*d5c9a868SElliott Hughes --enable-new-vold compatibility with Solaris' vold, new version 1359*d5c9a868SElliott Hughes --enable-debug debugging messages 1360*d5c9a868SElliott Hughes --enable-raw-term raw terminal (readkey behaviour, default) 1361*d5c9a868SElliott Hughes --disable-largefile omit support for large files 1362*d5c9a868SElliott Hughes --enable-floppyd floppy daemon support 1363*d5c9a868SElliott Hughes 1364*d5c9a868SElliott HughesOptional Packages: 1365*d5c9a868SElliott Hughes --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1366*d5c9a868SElliott Hughes --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1367*d5c9a868SElliott Hughes --with-x use the X Window System 1368*d5c9a868SElliott Hughes 1369*d5c9a868SElliott HughesSome influential environment variables: 1370*d5c9a868SElliott Hughes CC C compiler command 1371*d5c9a868SElliott Hughes CFLAGS C compiler flags 1372*d5c9a868SElliott Hughes LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1373*d5c9a868SElliott Hughes nonstandard directory <lib dir> 1374*d5c9a868SElliott Hughes LIBS libraries to pass to the linker, e.g. -l<library> 1375*d5c9a868SElliott Hughes CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1376*d5c9a868SElliott Hughes you have headers in a nonstandard directory <include dir> 1377*d5c9a868SElliott Hughes CPP C preprocessor 1378*d5c9a868SElliott Hughes XMKMF Path to xmkmf, Makefile generator for X Window System 1379*d5c9a868SElliott Hughes 1380*d5c9a868SElliott HughesUse these variables to override the choices made by `configure' or to help 1381*d5c9a868SElliott Hughesit to find libraries and programs with nonstandard names/locations. 1382*d5c9a868SElliott Hughes 1383*d5c9a868SElliott HughesReport bugs to the package provider. 1384*d5c9a868SElliott Hughes_ACEOF 1385*d5c9a868SElliott Hughesac_status=$? 1386*d5c9a868SElliott Hughesfi 1387*d5c9a868SElliott Hughes 1388*d5c9a868SElliott Hughesif test "$ac_init_help" = "recursive"; then 1389*d5c9a868SElliott Hughes # If there are subdirs, report their specific --help. 1390*d5c9a868SElliott Hughes for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1391*d5c9a868SElliott Hughes test -d "$ac_dir" || 1392*d5c9a868SElliott Hughes { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1393*d5c9a868SElliott Hughes continue 1394*d5c9a868SElliott Hughes ac_builddir=. 1395*d5c9a868SElliott Hughes 1396*d5c9a868SElliott Hughescase "$ac_dir" in 1397*d5c9a868SElliott Hughes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1398*d5c9a868SElliott Hughes*) 1399*d5c9a868SElliott Hughes ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1400*d5c9a868SElliott Hughes # A ".." for each directory in $ac_dir_suffix. 1401*d5c9a868SElliott Hughes ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1402*d5c9a868SElliott Hughes case $ac_top_builddir_sub in 1403*d5c9a868SElliott Hughes "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1404*d5c9a868SElliott Hughes *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1405*d5c9a868SElliott Hughes esac ;; 1406*d5c9a868SElliott Hughesesac 1407*d5c9a868SElliott Hughesac_abs_top_builddir=$ac_pwd 1408*d5c9a868SElliott Hughesac_abs_builddir=$ac_pwd$ac_dir_suffix 1409*d5c9a868SElliott Hughes# for backward compatibility: 1410*d5c9a868SElliott Hughesac_top_builddir=$ac_top_build_prefix 1411*d5c9a868SElliott Hughes 1412*d5c9a868SElliott Hughescase $srcdir in 1413*d5c9a868SElliott Hughes .) # We are building in place. 1414*d5c9a868SElliott Hughes ac_srcdir=. 1415*d5c9a868SElliott Hughes ac_top_srcdir=$ac_top_builddir_sub 1416*d5c9a868SElliott Hughes ac_abs_top_srcdir=$ac_pwd ;; 1417*d5c9a868SElliott Hughes [\\/]* | ?:[\\/]* ) # Absolute name. 1418*d5c9a868SElliott Hughes ac_srcdir=$srcdir$ac_dir_suffix; 1419*d5c9a868SElliott Hughes ac_top_srcdir=$srcdir 1420*d5c9a868SElliott Hughes ac_abs_top_srcdir=$srcdir ;; 1421*d5c9a868SElliott Hughes *) # Relative name. 1422*d5c9a868SElliott Hughes ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1423*d5c9a868SElliott Hughes ac_top_srcdir=$ac_top_build_prefix$srcdir 1424*d5c9a868SElliott Hughes ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1425*d5c9a868SElliott Hughesesac 1426*d5c9a868SElliott Hughesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1427*d5c9a868SElliott Hughes 1428*d5c9a868SElliott Hughes cd "$ac_dir" || { ac_status=$?; continue; } 1429*d5c9a868SElliott Hughes # Check for guested configure. 1430*d5c9a868SElliott Hughes if test -f "$ac_srcdir/configure.gnu"; then 1431*d5c9a868SElliott Hughes echo && 1432*d5c9a868SElliott Hughes $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1433*d5c9a868SElliott Hughes elif test -f "$ac_srcdir/configure"; then 1434*d5c9a868SElliott Hughes echo && 1435*d5c9a868SElliott Hughes $SHELL "$ac_srcdir/configure" --help=recursive 1436*d5c9a868SElliott Hughes else 1437*d5c9a868SElliott Hughes $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1438*d5c9a868SElliott Hughes fi || ac_status=$? 1439*d5c9a868SElliott Hughes cd "$ac_pwd" || { ac_status=$?; break; } 1440*d5c9a868SElliott Hughes done 1441*d5c9a868SElliott Hughesfi 1442*d5c9a868SElliott Hughes 1443*d5c9a868SElliott Hughestest -n "$ac_init_help" && exit $ac_status 1444*d5c9a868SElliott Hughesif $ac_init_version; then 1445*d5c9a868SElliott Hughes cat <<\_ACEOF 1446*d5c9a868SElliott Hughesconfigure 1447*d5c9a868SElliott Hughesgenerated by GNU Autoconf 2.69 1448*d5c9a868SElliott Hughes 1449*d5c9a868SElliott HughesCopyright (C) 2012 Free Software Foundation, Inc. 1450*d5c9a868SElliott HughesThis configure script is free software; the Free Software Foundation 1451*d5c9a868SElliott Hughesgives unlimited permission to copy, distribute and modify it. 1452*d5c9a868SElliott Hughes_ACEOF 1453*d5c9a868SElliott Hughes exit 1454*d5c9a868SElliott Hughesfi 1455*d5c9a868SElliott Hughes 1456*d5c9a868SElliott Hughes## ------------------------ ## 1457*d5c9a868SElliott Hughes## Autoconf initialization. ## 1458*d5c9a868SElliott Hughes## ------------------------ ## 1459*d5c9a868SElliott Hughes 1460*d5c9a868SElliott Hughes# ac_fn_c_try_compile LINENO 1461*d5c9a868SElliott Hughes# -------------------------- 1462*d5c9a868SElliott Hughes# Try to compile conftest.$ac_ext, and return whether this succeeded. 1463*d5c9a868SElliott Hughesac_fn_c_try_compile () 1464*d5c9a868SElliott Hughes{ 1465*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1466*d5c9a868SElliott Hughes rm -f conftest.$ac_objext 1467*d5c9a868SElliott Hughes if { { ac_try="$ac_compile" 1468*d5c9a868SElliott Hughescase "(($ac_try" in 1469*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1470*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 1471*d5c9a868SElliott Hughesesac 1472*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1473*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 1474*d5c9a868SElliott Hughes (eval "$ac_compile") 2>conftest.err 1475*d5c9a868SElliott Hughes ac_status=$? 1476*d5c9a868SElliott Hughes if test -s conftest.err; then 1477*d5c9a868SElliott Hughes grep -v '^ *+' conftest.err >conftest.er1 1478*d5c9a868SElliott Hughes cat conftest.er1 >&5 1479*d5c9a868SElliott Hughes mv -f conftest.er1 conftest.err 1480*d5c9a868SElliott Hughes fi 1481*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1482*d5c9a868SElliott Hughes test $ac_status = 0; } && { 1483*d5c9a868SElliott Hughes test -z "$ac_c_werror_flag" || 1484*d5c9a868SElliott Hughes test ! -s conftest.err 1485*d5c9a868SElliott Hughes } && test -s conftest.$ac_objext; then : 1486*d5c9a868SElliott Hughes ac_retval=0 1487*d5c9a868SElliott Hugheselse 1488*d5c9a868SElliott Hughes $as_echo "$as_me: failed program was:" >&5 1489*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 1490*d5c9a868SElliott Hughes 1491*d5c9a868SElliott Hughes ac_retval=1 1492*d5c9a868SElliott Hughesfi 1493*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1494*d5c9a868SElliott Hughes as_fn_set_status $ac_retval 1495*d5c9a868SElliott Hughes 1496*d5c9a868SElliott Hughes} # ac_fn_c_try_compile 1497*d5c9a868SElliott Hughes 1498*d5c9a868SElliott Hughes# ac_fn_c_try_cpp LINENO 1499*d5c9a868SElliott Hughes# ---------------------- 1500*d5c9a868SElliott Hughes# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1501*d5c9a868SElliott Hughesac_fn_c_try_cpp () 1502*d5c9a868SElliott Hughes{ 1503*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504*d5c9a868SElliott Hughes if { { ac_try="$ac_cpp conftest.$ac_ext" 1505*d5c9a868SElliott Hughescase "(($ac_try" in 1506*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1507*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 1508*d5c9a868SElliott Hughesesac 1509*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1510*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 1511*d5c9a868SElliott Hughes (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1512*d5c9a868SElliott Hughes ac_status=$? 1513*d5c9a868SElliott Hughes if test -s conftest.err; then 1514*d5c9a868SElliott Hughes grep -v '^ *+' conftest.err >conftest.er1 1515*d5c9a868SElliott Hughes cat conftest.er1 >&5 1516*d5c9a868SElliott Hughes mv -f conftest.er1 conftest.err 1517*d5c9a868SElliott Hughes fi 1518*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1519*d5c9a868SElliott Hughes test $ac_status = 0; } > conftest.i && { 1520*d5c9a868SElliott Hughes test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1521*d5c9a868SElliott Hughes test ! -s conftest.err 1522*d5c9a868SElliott Hughes }; then : 1523*d5c9a868SElliott Hughes ac_retval=0 1524*d5c9a868SElliott Hugheselse 1525*d5c9a868SElliott Hughes $as_echo "$as_me: failed program was:" >&5 1526*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 1527*d5c9a868SElliott Hughes 1528*d5c9a868SElliott Hughes ac_retval=1 1529*d5c9a868SElliott Hughesfi 1530*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1531*d5c9a868SElliott Hughes as_fn_set_status $ac_retval 1532*d5c9a868SElliott Hughes 1533*d5c9a868SElliott Hughes} # ac_fn_c_try_cpp 1534*d5c9a868SElliott Hughes 1535*d5c9a868SElliott Hughes# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1536*d5c9a868SElliott Hughes# ------------------------------------------------------- 1537*d5c9a868SElliott Hughes# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1538*d5c9a868SElliott Hughes# the include files in INCLUDES and setting the cache variable VAR 1539*d5c9a868SElliott Hughes# accordingly. 1540*d5c9a868SElliott Hughesac_fn_c_check_header_mongrel () 1541*d5c9a868SElliott Hughes{ 1542*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543*d5c9a868SElliott Hughes if eval \${$3+:} false; then : 1544*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1545*d5c9a868SElliott Hughes$as_echo_n "checking for $2... " >&6; } 1546*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1547*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1548*d5c9a868SElliott Hughesfi 1549*d5c9a868SElliott Hugheseval ac_res=\$$3 1550*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1551*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1552*d5c9a868SElliott Hugheselse 1553*d5c9a868SElliott Hughes # Is the header compilable? 1554*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1555*d5c9a868SElliott Hughes$as_echo_n "checking $2 usability... " >&6; } 1556*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 1557*d5c9a868SElliott Hughes/* end confdefs.h. */ 1558*d5c9a868SElliott Hughes$4 1559*d5c9a868SElliott Hughes#include <$2> 1560*d5c9a868SElliott Hughes_ACEOF 1561*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1562*d5c9a868SElliott Hughes ac_header_compiler=yes 1563*d5c9a868SElliott Hugheselse 1564*d5c9a868SElliott Hughes ac_header_compiler=no 1565*d5c9a868SElliott Hughesfi 1566*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1567*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1568*d5c9a868SElliott Hughes$as_echo "$ac_header_compiler" >&6; } 1569*d5c9a868SElliott Hughes 1570*d5c9a868SElliott Hughes# Is the header present? 1571*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1572*d5c9a868SElliott Hughes$as_echo_n "checking $2 presence... " >&6; } 1573*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 1574*d5c9a868SElliott Hughes/* end confdefs.h. */ 1575*d5c9a868SElliott Hughes#include <$2> 1576*d5c9a868SElliott Hughes_ACEOF 1577*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 1578*d5c9a868SElliott Hughes ac_header_preproc=yes 1579*d5c9a868SElliott Hugheselse 1580*d5c9a868SElliott Hughes ac_header_preproc=no 1581*d5c9a868SElliott Hughesfi 1582*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 1583*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1584*d5c9a868SElliott Hughes$as_echo "$ac_header_preproc" >&6; } 1585*d5c9a868SElliott Hughes 1586*d5c9a868SElliott Hughes# So? What about this header? 1587*d5c9a868SElliott Hughescase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1588*d5c9a868SElliott Hughes yes:no: ) 1589*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1590*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1591*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1592*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1593*d5c9a868SElliott Hughes ;; 1594*d5c9a868SElliott Hughes no:yes:* ) 1595*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1596*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1597*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1598*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1599*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1600*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1601*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1602*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1603*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1604*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1605*d5c9a868SElliott Hughes ;; 1606*d5c9a868SElliott Hughesesac 1607*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1608*d5c9a868SElliott Hughes$as_echo_n "checking for $2... " >&6; } 1609*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1610*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1611*d5c9a868SElliott Hugheselse 1612*d5c9a868SElliott Hughes eval "$3=\$ac_header_compiler" 1613*d5c9a868SElliott Hughesfi 1614*d5c9a868SElliott Hugheseval ac_res=\$$3 1615*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1616*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1617*d5c9a868SElliott Hughesfi 1618*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619*d5c9a868SElliott Hughes 1620*d5c9a868SElliott Hughes} # ac_fn_c_check_header_mongrel 1621*d5c9a868SElliott Hughes 1622*d5c9a868SElliott Hughes# ac_fn_c_try_run LINENO 1623*d5c9a868SElliott Hughes# ---------------------- 1624*d5c9a868SElliott Hughes# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1625*d5c9a868SElliott Hughes# that executables *can* be run. 1626*d5c9a868SElliott Hughesac_fn_c_try_run () 1627*d5c9a868SElliott Hughes{ 1628*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629*d5c9a868SElliott Hughes if { { ac_try="$ac_link" 1630*d5c9a868SElliott Hughescase "(($ac_try" in 1631*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 1633*d5c9a868SElliott Hughesesac 1634*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 1636*d5c9a868SElliott Hughes (eval "$ac_link") 2>&5 1637*d5c9a868SElliott Hughes ac_status=$? 1638*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639*d5c9a868SElliott Hughes test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1640*d5c9a868SElliott Hughes { { case "(($ac_try" in 1641*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 1643*d5c9a868SElliott Hughesesac 1644*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 1646*d5c9a868SElliott Hughes (eval "$ac_try") 2>&5 1647*d5c9a868SElliott Hughes ac_status=$? 1648*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649*d5c9a868SElliott Hughes test $ac_status = 0; }; }; then : 1650*d5c9a868SElliott Hughes ac_retval=0 1651*d5c9a868SElliott Hugheselse 1652*d5c9a868SElliott Hughes $as_echo "$as_me: program exited with status $ac_status" >&5 1653*d5c9a868SElliott Hughes $as_echo "$as_me: failed program was:" >&5 1654*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 1655*d5c9a868SElliott Hughes 1656*d5c9a868SElliott Hughes ac_retval=$ac_status 1657*d5c9a868SElliott Hughesfi 1658*d5c9a868SElliott Hughes rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1659*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660*d5c9a868SElliott Hughes as_fn_set_status $ac_retval 1661*d5c9a868SElliott Hughes 1662*d5c9a868SElliott Hughes} # ac_fn_c_try_run 1663*d5c9a868SElliott Hughes 1664*d5c9a868SElliott Hughes# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1665*d5c9a868SElliott Hughes# ------------------------------------------------------- 1666*d5c9a868SElliott Hughes# Tests whether HEADER exists and can be compiled using the include files in 1667*d5c9a868SElliott Hughes# INCLUDES, setting the cache variable VAR accordingly. 1668*d5c9a868SElliott Hughesac_fn_c_check_header_compile () 1669*d5c9a868SElliott Hughes{ 1670*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1672*d5c9a868SElliott Hughes$as_echo_n "checking for $2... " >&6; } 1673*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1674*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1675*d5c9a868SElliott Hugheselse 1676*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1677*d5c9a868SElliott Hughes/* end confdefs.h. */ 1678*d5c9a868SElliott Hughes$4 1679*d5c9a868SElliott Hughes#include <$2> 1680*d5c9a868SElliott Hughes_ACEOF 1681*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1682*d5c9a868SElliott Hughes eval "$3=yes" 1683*d5c9a868SElliott Hugheselse 1684*d5c9a868SElliott Hughes eval "$3=no" 1685*d5c9a868SElliott Hughesfi 1686*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1687*d5c9a868SElliott Hughesfi 1688*d5c9a868SElliott Hugheseval ac_res=\$$3 1689*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1690*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1691*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692*d5c9a868SElliott Hughes 1693*d5c9a868SElliott Hughes} # ac_fn_c_check_header_compile 1694*d5c9a868SElliott Hughes 1695*d5c9a868SElliott Hughes# ac_fn_c_try_link LINENO 1696*d5c9a868SElliott Hughes# ----------------------- 1697*d5c9a868SElliott Hughes# Try to link conftest.$ac_ext, and return whether this succeeded. 1698*d5c9a868SElliott Hughesac_fn_c_try_link () 1699*d5c9a868SElliott Hughes{ 1700*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701*d5c9a868SElliott Hughes rm -f conftest.$ac_objext conftest$ac_exeext 1702*d5c9a868SElliott Hughes if { { ac_try="$ac_link" 1703*d5c9a868SElliott Hughescase "(($ac_try" in 1704*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 1706*d5c9a868SElliott Hughesesac 1707*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 1709*d5c9a868SElliott Hughes (eval "$ac_link") 2>conftest.err 1710*d5c9a868SElliott Hughes ac_status=$? 1711*d5c9a868SElliott Hughes if test -s conftest.err; then 1712*d5c9a868SElliott Hughes grep -v '^ *+' conftest.err >conftest.er1 1713*d5c9a868SElliott Hughes cat conftest.er1 >&5 1714*d5c9a868SElliott Hughes mv -f conftest.er1 conftest.err 1715*d5c9a868SElliott Hughes fi 1716*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717*d5c9a868SElliott Hughes test $ac_status = 0; } && { 1718*d5c9a868SElliott Hughes test -z "$ac_c_werror_flag" || 1719*d5c9a868SElliott Hughes test ! -s conftest.err 1720*d5c9a868SElliott Hughes } && test -s conftest$ac_exeext && { 1721*d5c9a868SElliott Hughes test "$cross_compiling" = yes || 1722*d5c9a868SElliott Hughes test -x conftest$ac_exeext 1723*d5c9a868SElliott Hughes }; then : 1724*d5c9a868SElliott Hughes ac_retval=0 1725*d5c9a868SElliott Hugheselse 1726*d5c9a868SElliott Hughes $as_echo "$as_me: failed program was:" >&5 1727*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 1728*d5c9a868SElliott Hughes 1729*d5c9a868SElliott Hughes ac_retval=1 1730*d5c9a868SElliott Hughesfi 1731*d5c9a868SElliott Hughes # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1732*d5c9a868SElliott Hughes # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1733*d5c9a868SElliott Hughes # interfere with the next link command; also delete a directory that is 1734*d5c9a868SElliott Hughes # left behind by Apple's compiler. We do this before executing the actions. 1735*d5c9a868SElliott Hughes rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737*d5c9a868SElliott Hughes as_fn_set_status $ac_retval 1738*d5c9a868SElliott Hughes 1739*d5c9a868SElliott Hughes} # ac_fn_c_try_link 1740*d5c9a868SElliott Hughes 1741*d5c9a868SElliott Hughes# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1742*d5c9a868SElliott Hughes# ------------------------------------------- 1743*d5c9a868SElliott Hughes# Tests whether TYPE exists after having included INCLUDES, setting cache 1744*d5c9a868SElliott Hughes# variable VAR accordingly. 1745*d5c9a868SElliott Hughesac_fn_c_check_type () 1746*d5c9a868SElliott Hughes{ 1747*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749*d5c9a868SElliott Hughes$as_echo_n "checking for $2... " >&6; } 1750*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1751*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1752*d5c9a868SElliott Hugheselse 1753*d5c9a868SElliott Hughes eval "$3=no" 1754*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755*d5c9a868SElliott Hughes/* end confdefs.h. */ 1756*d5c9a868SElliott Hughes$4 1757*d5c9a868SElliott Hughesint 1758*d5c9a868SElliott Hughesmain () 1759*d5c9a868SElliott Hughes{ 1760*d5c9a868SElliott Hughesif (sizeof ($2)) 1761*d5c9a868SElliott Hughes return 0; 1762*d5c9a868SElliott Hughes ; 1763*d5c9a868SElliott Hughes return 0; 1764*d5c9a868SElliott Hughes} 1765*d5c9a868SElliott Hughes_ACEOF 1766*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1767*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1768*d5c9a868SElliott Hughes/* end confdefs.h. */ 1769*d5c9a868SElliott Hughes$4 1770*d5c9a868SElliott Hughesint 1771*d5c9a868SElliott Hughesmain () 1772*d5c9a868SElliott Hughes{ 1773*d5c9a868SElliott Hughesif (sizeof (($2))) 1774*d5c9a868SElliott Hughes return 0; 1775*d5c9a868SElliott Hughes ; 1776*d5c9a868SElliott Hughes return 0; 1777*d5c9a868SElliott Hughes} 1778*d5c9a868SElliott Hughes_ACEOF 1779*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1780*d5c9a868SElliott Hughes 1781*d5c9a868SElliott Hugheselse 1782*d5c9a868SElliott Hughes eval "$3=yes" 1783*d5c9a868SElliott Hughesfi 1784*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1785*d5c9a868SElliott Hughesfi 1786*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1787*d5c9a868SElliott Hughesfi 1788*d5c9a868SElliott Hugheseval ac_res=\$$3 1789*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1791*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792*d5c9a868SElliott Hughes 1793*d5c9a868SElliott Hughes} # ac_fn_c_check_type 1794*d5c9a868SElliott Hughes 1795*d5c9a868SElliott Hughes# ac_fn_c_find_intX_t LINENO BITS VAR 1796*d5c9a868SElliott Hughes# ----------------------------------- 1797*d5c9a868SElliott Hughes# Finds a signed integer type with width BITS, setting cache variable VAR 1798*d5c9a868SElliott Hughes# accordingly. 1799*d5c9a868SElliott Hughesac_fn_c_find_intX_t () 1800*d5c9a868SElliott Hughes{ 1801*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1803*d5c9a868SElliott Hughes$as_echo_n "checking for int$2_t... " >&6; } 1804*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1805*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1806*d5c9a868SElliott Hugheselse 1807*d5c9a868SElliott Hughes eval "$3=no" 1808*d5c9a868SElliott Hughes # Order is important - never check a type that is potentially smaller 1809*d5c9a868SElliott Hughes # than half of the expected target width. 1810*d5c9a868SElliott Hughes for ac_type in int$2_t 'int' 'long int' \ 1811*d5c9a868SElliott Hughes 'long long int' 'short int' 'signed char'; do 1812*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813*d5c9a868SElliott Hughes/* end confdefs.h. */ 1814*d5c9a868SElliott Hughes$ac_includes_default 1815*d5c9a868SElliott Hughes enum { N = $2 / 2 - 1 }; 1816*d5c9a868SElliott Hughesint 1817*d5c9a868SElliott Hughesmain () 1818*d5c9a868SElliott Hughes{ 1819*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1820*d5c9a868SElliott Hughestest_array [0] = 0; 1821*d5c9a868SElliott Hughesreturn test_array [0]; 1822*d5c9a868SElliott Hughes 1823*d5c9a868SElliott Hughes ; 1824*d5c9a868SElliott Hughes return 0; 1825*d5c9a868SElliott Hughes} 1826*d5c9a868SElliott Hughes_ACEOF 1827*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1828*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829*d5c9a868SElliott Hughes/* end confdefs.h. */ 1830*d5c9a868SElliott Hughes$ac_includes_default 1831*d5c9a868SElliott Hughes enum { N = $2 / 2 - 1 }; 1832*d5c9a868SElliott Hughesint 1833*d5c9a868SElliott Hughesmain () 1834*d5c9a868SElliott Hughes{ 1835*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1836*d5c9a868SElliott Hughes < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1837*d5c9a868SElliott Hughestest_array [0] = 0; 1838*d5c9a868SElliott Hughesreturn test_array [0]; 1839*d5c9a868SElliott Hughes 1840*d5c9a868SElliott Hughes ; 1841*d5c9a868SElliott Hughes return 0; 1842*d5c9a868SElliott Hughes} 1843*d5c9a868SElliott Hughes_ACEOF 1844*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1845*d5c9a868SElliott Hughes 1846*d5c9a868SElliott Hugheselse 1847*d5c9a868SElliott Hughes case $ac_type in #( 1848*d5c9a868SElliott Hughes int$2_t) : 1849*d5c9a868SElliott Hughes eval "$3=yes" ;; #( 1850*d5c9a868SElliott Hughes *) : 1851*d5c9a868SElliott Hughes eval "$3=\$ac_type" ;; 1852*d5c9a868SElliott Hughesesac 1853*d5c9a868SElliott Hughesfi 1854*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855*d5c9a868SElliott Hughesfi 1856*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857*d5c9a868SElliott Hughes if eval test \"x\$"$3"\" = x"no"; then : 1858*d5c9a868SElliott Hughes 1859*d5c9a868SElliott Hugheselse 1860*d5c9a868SElliott Hughes break 1861*d5c9a868SElliott Hughesfi 1862*d5c9a868SElliott Hughes done 1863*d5c9a868SElliott Hughesfi 1864*d5c9a868SElliott Hugheseval ac_res=\$$3 1865*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1867*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868*d5c9a868SElliott Hughes 1869*d5c9a868SElliott Hughes} # ac_fn_c_find_intX_t 1870*d5c9a868SElliott Hughes 1871*d5c9a868SElliott Hughes# ac_fn_c_find_uintX_t LINENO BITS VAR 1872*d5c9a868SElliott Hughes# ------------------------------------ 1873*d5c9a868SElliott Hughes# Finds an unsigned integer type with width BITS, setting cache variable VAR 1874*d5c9a868SElliott Hughes# accordingly. 1875*d5c9a868SElliott Hughesac_fn_c_find_uintX_t () 1876*d5c9a868SElliott Hughes{ 1877*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1879*d5c9a868SElliott Hughes$as_echo_n "checking for uint$2_t... " >&6; } 1880*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 1881*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 1882*d5c9a868SElliott Hugheselse 1883*d5c9a868SElliott Hughes eval "$3=no" 1884*d5c9a868SElliott Hughes # Order is important - never check a type that is potentially smaller 1885*d5c9a868SElliott Hughes # than half of the expected target width. 1886*d5c9a868SElliott Hughes for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1887*d5c9a868SElliott Hughes 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1888*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1889*d5c9a868SElliott Hughes/* end confdefs.h. */ 1890*d5c9a868SElliott Hughes$ac_includes_default 1891*d5c9a868SElliott Hughesint 1892*d5c9a868SElliott Hughesmain () 1893*d5c9a868SElliott Hughes{ 1894*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1895*d5c9a868SElliott Hughestest_array [0] = 0; 1896*d5c9a868SElliott Hughesreturn test_array [0]; 1897*d5c9a868SElliott Hughes 1898*d5c9a868SElliott Hughes ; 1899*d5c9a868SElliott Hughes return 0; 1900*d5c9a868SElliott Hughes} 1901*d5c9a868SElliott Hughes_ACEOF 1902*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1903*d5c9a868SElliott Hughes case $ac_type in #( 1904*d5c9a868SElliott Hughes uint$2_t) : 1905*d5c9a868SElliott Hughes eval "$3=yes" ;; #( 1906*d5c9a868SElliott Hughes *) : 1907*d5c9a868SElliott Hughes eval "$3=\$ac_type" ;; 1908*d5c9a868SElliott Hughesesac 1909*d5c9a868SElliott Hughesfi 1910*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1911*d5c9a868SElliott Hughes if eval test \"x\$"$3"\" = x"no"; then : 1912*d5c9a868SElliott Hughes 1913*d5c9a868SElliott Hugheselse 1914*d5c9a868SElliott Hughes break 1915*d5c9a868SElliott Hughesfi 1916*d5c9a868SElliott Hughes done 1917*d5c9a868SElliott Hughesfi 1918*d5c9a868SElliott Hugheseval ac_res=\$$3 1919*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 1921*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922*d5c9a868SElliott Hughes 1923*d5c9a868SElliott Hughes} # ac_fn_c_find_uintX_t 1924*d5c9a868SElliott Hughes 1925*d5c9a868SElliott Hughes# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1926*d5c9a868SElliott Hughes# -------------------------------------------- 1927*d5c9a868SElliott Hughes# Tries to find the compile-time value of EXPR in a program that includes 1928*d5c9a868SElliott Hughes# INCLUDES, setting VAR accordingly. Returns whether the value could be 1929*d5c9a868SElliott Hughes# computed 1930*d5c9a868SElliott Hughesac_fn_c_compute_int () 1931*d5c9a868SElliott Hughes{ 1932*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933*d5c9a868SElliott Hughes if test "$cross_compiling" = yes; then 1934*d5c9a868SElliott Hughes # Depending upon the size, compute the lo and hi bounds. 1935*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936*d5c9a868SElliott Hughes/* end confdefs.h. */ 1937*d5c9a868SElliott Hughes$4 1938*d5c9a868SElliott Hughesint 1939*d5c9a868SElliott Hughesmain () 1940*d5c9a868SElliott Hughes{ 1941*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($2) >= 0)]; 1942*d5c9a868SElliott Hughestest_array [0] = 0; 1943*d5c9a868SElliott Hughesreturn test_array [0]; 1944*d5c9a868SElliott Hughes 1945*d5c9a868SElliott Hughes ; 1946*d5c9a868SElliott Hughes return 0; 1947*d5c9a868SElliott Hughes} 1948*d5c9a868SElliott Hughes_ACEOF 1949*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1950*d5c9a868SElliott Hughes ac_lo=0 ac_mid=0 1951*d5c9a868SElliott Hughes while :; do 1952*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953*d5c9a868SElliott Hughes/* end confdefs.h. */ 1954*d5c9a868SElliott Hughes$4 1955*d5c9a868SElliott Hughesint 1956*d5c9a868SElliott Hughesmain () 1957*d5c9a868SElliott Hughes{ 1958*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1959*d5c9a868SElliott Hughestest_array [0] = 0; 1960*d5c9a868SElliott Hughesreturn test_array [0]; 1961*d5c9a868SElliott Hughes 1962*d5c9a868SElliott Hughes ; 1963*d5c9a868SElliott Hughes return 0; 1964*d5c9a868SElliott Hughes} 1965*d5c9a868SElliott Hughes_ACEOF 1966*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1967*d5c9a868SElliott Hughes ac_hi=$ac_mid; break 1968*d5c9a868SElliott Hugheselse 1969*d5c9a868SElliott Hughes as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1970*d5c9a868SElliott Hughes if test $ac_lo -le $ac_mid; then 1971*d5c9a868SElliott Hughes ac_lo= ac_hi= 1972*d5c9a868SElliott Hughes break 1973*d5c9a868SElliott Hughes fi 1974*d5c9a868SElliott Hughes as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1975*d5c9a868SElliott Hughesfi 1976*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977*d5c9a868SElliott Hughes done 1978*d5c9a868SElliott Hugheselse 1979*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1980*d5c9a868SElliott Hughes/* end confdefs.h. */ 1981*d5c9a868SElliott Hughes$4 1982*d5c9a868SElliott Hughesint 1983*d5c9a868SElliott Hughesmain () 1984*d5c9a868SElliott Hughes{ 1985*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($2) < 0)]; 1986*d5c9a868SElliott Hughestest_array [0] = 0; 1987*d5c9a868SElliott Hughesreturn test_array [0]; 1988*d5c9a868SElliott Hughes 1989*d5c9a868SElliott Hughes ; 1990*d5c9a868SElliott Hughes return 0; 1991*d5c9a868SElliott Hughes} 1992*d5c9a868SElliott Hughes_ACEOF 1993*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 1994*d5c9a868SElliott Hughes ac_hi=-1 ac_mid=-1 1995*d5c9a868SElliott Hughes while :; do 1996*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997*d5c9a868SElliott Hughes/* end confdefs.h. */ 1998*d5c9a868SElliott Hughes$4 1999*d5c9a868SElliott Hughesint 2000*d5c9a868SElliott Hughesmain () 2001*d5c9a868SElliott Hughes{ 2002*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2003*d5c9a868SElliott Hughestest_array [0] = 0; 2004*d5c9a868SElliott Hughesreturn test_array [0]; 2005*d5c9a868SElliott Hughes 2006*d5c9a868SElliott Hughes ; 2007*d5c9a868SElliott Hughes return 0; 2008*d5c9a868SElliott Hughes} 2009*d5c9a868SElliott Hughes_ACEOF 2010*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 2011*d5c9a868SElliott Hughes ac_lo=$ac_mid; break 2012*d5c9a868SElliott Hugheselse 2013*d5c9a868SElliott Hughes as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2014*d5c9a868SElliott Hughes if test $ac_mid -le $ac_hi; then 2015*d5c9a868SElliott Hughes ac_lo= ac_hi= 2016*d5c9a868SElliott Hughes break 2017*d5c9a868SElliott Hughes fi 2018*d5c9a868SElliott Hughes as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2019*d5c9a868SElliott Hughesfi 2020*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021*d5c9a868SElliott Hughes done 2022*d5c9a868SElliott Hugheselse 2023*d5c9a868SElliott Hughes ac_lo= ac_hi= 2024*d5c9a868SElliott Hughesfi 2025*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026*d5c9a868SElliott Hughesfi 2027*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028*d5c9a868SElliott Hughes# Binary search between lo and hi bounds. 2029*d5c9a868SElliott Hugheswhile test "x$ac_lo" != "x$ac_hi"; do 2030*d5c9a868SElliott Hughes as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2031*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032*d5c9a868SElliott Hughes/* end confdefs.h. */ 2033*d5c9a868SElliott Hughes$4 2034*d5c9a868SElliott Hughesint 2035*d5c9a868SElliott Hughesmain () 2036*d5c9a868SElliott Hughes{ 2037*d5c9a868SElliott Hughesstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2038*d5c9a868SElliott Hughestest_array [0] = 0; 2039*d5c9a868SElliott Hughesreturn test_array [0]; 2040*d5c9a868SElliott Hughes 2041*d5c9a868SElliott Hughes ; 2042*d5c9a868SElliott Hughes return 0; 2043*d5c9a868SElliott Hughes} 2044*d5c9a868SElliott Hughes_ACEOF 2045*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 2046*d5c9a868SElliott Hughes ac_hi=$ac_mid 2047*d5c9a868SElliott Hugheselse 2048*d5c9a868SElliott Hughes as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2049*d5c9a868SElliott Hughesfi 2050*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051*d5c9a868SElliott Hughesdone 2052*d5c9a868SElliott Hughescase $ac_lo in #(( 2053*d5c9a868SElliott Hughes?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2054*d5c9a868SElliott Hughes'') ac_retval=1 ;; 2055*d5c9a868SElliott Hughesesac 2056*d5c9a868SElliott Hughes else 2057*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058*d5c9a868SElliott Hughes/* end confdefs.h. */ 2059*d5c9a868SElliott Hughes$4 2060*d5c9a868SElliott Hughesstatic long int longval () { return $2; } 2061*d5c9a868SElliott Hughesstatic unsigned long int ulongval () { return $2; } 2062*d5c9a868SElliott Hughes#include <stdio.h> 2063*d5c9a868SElliott Hughes#include <stdlib.h> 2064*d5c9a868SElliott Hughesint 2065*d5c9a868SElliott Hughesmain () 2066*d5c9a868SElliott Hughes{ 2067*d5c9a868SElliott Hughes 2068*d5c9a868SElliott Hughes FILE *f = fopen ("conftest.val", "w"); 2069*d5c9a868SElliott Hughes if (! f) 2070*d5c9a868SElliott Hughes return 1; 2071*d5c9a868SElliott Hughes if (($2) < 0) 2072*d5c9a868SElliott Hughes { 2073*d5c9a868SElliott Hughes long int i = longval (); 2074*d5c9a868SElliott Hughes if (i != ($2)) 2075*d5c9a868SElliott Hughes return 1; 2076*d5c9a868SElliott Hughes fprintf (f, "%ld", i); 2077*d5c9a868SElliott Hughes } 2078*d5c9a868SElliott Hughes else 2079*d5c9a868SElliott Hughes { 2080*d5c9a868SElliott Hughes unsigned long int i = ulongval (); 2081*d5c9a868SElliott Hughes if (i != ($2)) 2082*d5c9a868SElliott Hughes return 1; 2083*d5c9a868SElliott Hughes fprintf (f, "%lu", i); 2084*d5c9a868SElliott Hughes } 2085*d5c9a868SElliott Hughes /* Do not output a trailing newline, as this causes \r\n confusion 2086*d5c9a868SElliott Hughes on some platforms. */ 2087*d5c9a868SElliott Hughes return ferror (f) || fclose (f) != 0; 2088*d5c9a868SElliott Hughes 2089*d5c9a868SElliott Hughes ; 2090*d5c9a868SElliott Hughes return 0; 2091*d5c9a868SElliott Hughes} 2092*d5c9a868SElliott Hughes_ACEOF 2093*d5c9a868SElliott Hughesif ac_fn_c_try_run "$LINENO"; then : 2094*d5c9a868SElliott Hughes echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2095*d5c9a868SElliott Hugheselse 2096*d5c9a868SElliott Hughes ac_retval=1 2097*d5c9a868SElliott Hughesfi 2098*d5c9a868SElliott Hughesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2099*d5c9a868SElliott Hughes conftest.$ac_objext conftest.beam conftest.$ac_ext 2100*d5c9a868SElliott Hughesrm -f conftest.val 2101*d5c9a868SElliott Hughes 2102*d5c9a868SElliott Hughes fi 2103*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104*d5c9a868SElliott Hughes as_fn_set_status $ac_retval 2105*d5c9a868SElliott Hughes 2106*d5c9a868SElliott Hughes} # ac_fn_c_compute_int 2107*d5c9a868SElliott Hughes 2108*d5c9a868SElliott Hughes# ac_fn_c_check_func LINENO FUNC VAR 2109*d5c9a868SElliott Hughes# ---------------------------------- 2110*d5c9a868SElliott Hughes# Tests whether FUNC exists, setting the cache variable VAR accordingly 2111*d5c9a868SElliott Hughesac_fn_c_check_func () 2112*d5c9a868SElliott Hughes{ 2113*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2114*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2115*d5c9a868SElliott Hughes$as_echo_n "checking for $2... " >&6; } 2116*d5c9a868SElliott Hughesif eval \${$3+:} false; then : 2117*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2118*d5c9a868SElliott Hugheselse 2119*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120*d5c9a868SElliott Hughes/* end confdefs.h. */ 2121*d5c9a868SElliott Hughes/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2122*d5c9a868SElliott Hughes For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2123*d5c9a868SElliott Hughes#define $2 innocuous_$2 2124*d5c9a868SElliott Hughes 2125*d5c9a868SElliott Hughes/* System header to define __stub macros and hopefully few prototypes, 2126*d5c9a868SElliott Hughes which can conflict with char $2 (); below. 2127*d5c9a868SElliott Hughes Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2128*d5c9a868SElliott Hughes <limits.h> exists even on freestanding compilers. */ 2129*d5c9a868SElliott Hughes 2130*d5c9a868SElliott Hughes#ifdef __STDC__ 2131*d5c9a868SElliott Hughes# include <limits.h> 2132*d5c9a868SElliott Hughes#else 2133*d5c9a868SElliott Hughes# include <assert.h> 2134*d5c9a868SElliott Hughes#endif 2135*d5c9a868SElliott Hughes 2136*d5c9a868SElliott Hughes#undef $2 2137*d5c9a868SElliott Hughes 2138*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 2139*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 2140*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 2141*d5c9a868SElliott Hughes#ifdef __cplusplus 2142*d5c9a868SElliott Hughesextern "C" 2143*d5c9a868SElliott Hughes#endif 2144*d5c9a868SElliott Hugheschar $2 (); 2145*d5c9a868SElliott Hughes/* The GNU C library defines this for functions which it implements 2146*d5c9a868SElliott Hughes to always fail with ENOSYS. Some functions are actually named 2147*d5c9a868SElliott Hughes something starting with __ and the normal name is an alias. */ 2148*d5c9a868SElliott Hughes#if defined __stub_$2 || defined __stub___$2 2149*d5c9a868SElliott Hugheschoke me 2150*d5c9a868SElliott Hughes#endif 2151*d5c9a868SElliott Hughes 2152*d5c9a868SElliott Hughesint 2153*d5c9a868SElliott Hughesmain () 2154*d5c9a868SElliott Hughes{ 2155*d5c9a868SElliott Hughesreturn $2 (); 2156*d5c9a868SElliott Hughes ; 2157*d5c9a868SElliott Hughes return 0; 2158*d5c9a868SElliott Hughes} 2159*d5c9a868SElliott Hughes_ACEOF 2160*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 2161*d5c9a868SElliott Hughes eval "$3=yes" 2162*d5c9a868SElliott Hugheselse 2163*d5c9a868SElliott Hughes eval "$3=no" 2164*d5c9a868SElliott Hughesfi 2165*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 2166*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 2167*d5c9a868SElliott Hughesfi 2168*d5c9a868SElliott Hugheseval ac_res=\$$3 2169*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170*d5c9a868SElliott Hughes$as_echo "$ac_res" >&6; } 2171*d5c9a868SElliott Hughes eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172*d5c9a868SElliott Hughes 2173*d5c9a868SElliott Hughes} # ac_fn_c_check_func 2174*d5c9a868SElliott Hughescat >config.log <<_ACEOF 2175*d5c9a868SElliott HughesThis file contains any messages produced by compilers while 2176*d5c9a868SElliott Hughesrunning configure, to aid debugging if configure makes a mistake. 2177*d5c9a868SElliott Hughes 2178*d5c9a868SElliott HughesIt was created by $as_me, which was 2179*d5c9a868SElliott Hughesgenerated by GNU Autoconf 2.69. Invocation command line was 2180*d5c9a868SElliott Hughes 2181*d5c9a868SElliott Hughes $ $0 $@ 2182*d5c9a868SElliott Hughes 2183*d5c9a868SElliott Hughes_ACEOF 2184*d5c9a868SElliott Hughesexec 5>>config.log 2185*d5c9a868SElliott Hughes{ 2186*d5c9a868SElliott Hughescat <<_ASUNAME 2187*d5c9a868SElliott Hughes## --------- ## 2188*d5c9a868SElliott Hughes## Platform. ## 2189*d5c9a868SElliott Hughes## --------- ## 2190*d5c9a868SElliott Hughes 2191*d5c9a868SElliott Hugheshostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2192*d5c9a868SElliott Hughesuname -m = `(uname -m) 2>/dev/null || echo unknown` 2193*d5c9a868SElliott Hughesuname -r = `(uname -r) 2>/dev/null || echo unknown` 2194*d5c9a868SElliott Hughesuname -s = `(uname -s) 2>/dev/null || echo unknown` 2195*d5c9a868SElliott Hughesuname -v = `(uname -v) 2>/dev/null || echo unknown` 2196*d5c9a868SElliott Hughes 2197*d5c9a868SElliott Hughes/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2198*d5c9a868SElliott Hughes/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2199*d5c9a868SElliott Hughes 2200*d5c9a868SElliott Hughes/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2201*d5c9a868SElliott Hughes/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2202*d5c9a868SElliott Hughes/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2203*d5c9a868SElliott Hughes/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2204*d5c9a868SElliott Hughes/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2205*d5c9a868SElliott Hughes/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2206*d5c9a868SElliott Hughes/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2207*d5c9a868SElliott Hughes 2208*d5c9a868SElliott Hughes_ASUNAME 2209*d5c9a868SElliott Hughes 2210*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2211*d5c9a868SElliott Hughesfor as_dir in $PATH 2212*d5c9a868SElliott Hughesdo 2213*d5c9a868SElliott Hughes IFS=$as_save_IFS 2214*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2215*d5c9a868SElliott Hughes $as_echo "PATH: $as_dir" 2216*d5c9a868SElliott Hughes done 2217*d5c9a868SElliott HughesIFS=$as_save_IFS 2218*d5c9a868SElliott Hughes 2219*d5c9a868SElliott Hughes} >&5 2220*d5c9a868SElliott Hughes 2221*d5c9a868SElliott Hughescat >&5 <<_ACEOF 2222*d5c9a868SElliott Hughes 2223*d5c9a868SElliott Hughes 2224*d5c9a868SElliott Hughes## ----------- ## 2225*d5c9a868SElliott Hughes## Core tests. ## 2226*d5c9a868SElliott Hughes## ----------- ## 2227*d5c9a868SElliott Hughes 2228*d5c9a868SElliott Hughes_ACEOF 2229*d5c9a868SElliott Hughes 2230*d5c9a868SElliott Hughes 2231*d5c9a868SElliott Hughes# Keep a trace of the command line. 2232*d5c9a868SElliott Hughes# Strip out --no-create and --no-recursion so they do not pile up. 2233*d5c9a868SElliott Hughes# Strip out --silent because we don't want to record it for future runs. 2234*d5c9a868SElliott Hughes# Also quote any args containing shell meta-characters. 2235*d5c9a868SElliott Hughes# Make two passes to allow for proper duplicate-argument suppression. 2236*d5c9a868SElliott Hughesac_configure_args= 2237*d5c9a868SElliott Hughesac_configure_args0= 2238*d5c9a868SElliott Hughesac_configure_args1= 2239*d5c9a868SElliott Hughesac_must_keep_next=false 2240*d5c9a868SElliott Hughesfor ac_pass in 1 2 2241*d5c9a868SElliott Hughesdo 2242*d5c9a868SElliott Hughes for ac_arg 2243*d5c9a868SElliott Hughes do 2244*d5c9a868SElliott Hughes case $ac_arg in 2245*d5c9a868SElliott Hughes -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2246*d5c9a868SElliott Hughes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2247*d5c9a868SElliott Hughes | -silent | --silent | --silen | --sile | --sil) 2248*d5c9a868SElliott Hughes continue ;; 2249*d5c9a868SElliott Hughes *\'*) 2250*d5c9a868SElliott Hughes ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2251*d5c9a868SElliott Hughes esac 2252*d5c9a868SElliott Hughes case $ac_pass in 2253*d5c9a868SElliott Hughes 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2254*d5c9a868SElliott Hughes 2) 2255*d5c9a868SElliott Hughes as_fn_append ac_configure_args1 " '$ac_arg'" 2256*d5c9a868SElliott Hughes if test $ac_must_keep_next = true; then 2257*d5c9a868SElliott Hughes ac_must_keep_next=false # Got value, back to normal. 2258*d5c9a868SElliott Hughes else 2259*d5c9a868SElliott Hughes case $ac_arg in 2260*d5c9a868SElliott Hughes *=* | --config-cache | -C | -disable-* | --disable-* \ 2261*d5c9a868SElliott Hughes | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2262*d5c9a868SElliott Hughes | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2263*d5c9a868SElliott Hughes | -with-* | --with-* | -without-* | --without-* | --x) 2264*d5c9a868SElliott Hughes case "$ac_configure_args0 " in 2265*d5c9a868SElliott Hughes "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2266*d5c9a868SElliott Hughes esac 2267*d5c9a868SElliott Hughes ;; 2268*d5c9a868SElliott Hughes -* ) ac_must_keep_next=true ;; 2269*d5c9a868SElliott Hughes esac 2270*d5c9a868SElliott Hughes fi 2271*d5c9a868SElliott Hughes as_fn_append ac_configure_args " '$ac_arg'" 2272*d5c9a868SElliott Hughes ;; 2273*d5c9a868SElliott Hughes esac 2274*d5c9a868SElliott Hughes done 2275*d5c9a868SElliott Hughesdone 2276*d5c9a868SElliott Hughes{ ac_configure_args0=; unset ac_configure_args0;} 2277*d5c9a868SElliott Hughes{ ac_configure_args1=; unset ac_configure_args1;} 2278*d5c9a868SElliott Hughes 2279*d5c9a868SElliott Hughes# When interrupted or exit'd, cleanup temporary files, and complete 2280*d5c9a868SElliott Hughes# config.log. We remove comments because anyway the quotes in there 2281*d5c9a868SElliott Hughes# would cause problems or look ugly. 2282*d5c9a868SElliott Hughes# WARNING: Use '\'' to represent an apostrophe within the trap. 2283*d5c9a868SElliott Hughes# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2284*d5c9a868SElliott Hughestrap 'exit_status=$? 2285*d5c9a868SElliott Hughes # Save into config.log some information that might help in debugging. 2286*d5c9a868SElliott Hughes { 2287*d5c9a868SElliott Hughes echo 2288*d5c9a868SElliott Hughes 2289*d5c9a868SElliott Hughes $as_echo "## ---------------- ## 2290*d5c9a868SElliott Hughes## Cache variables. ## 2291*d5c9a868SElliott Hughes## ---------------- ##" 2292*d5c9a868SElliott Hughes echo 2293*d5c9a868SElliott Hughes # The following way of writing the cache mishandles newlines in values, 2294*d5c9a868SElliott Hughes( 2295*d5c9a868SElliott Hughes for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2296*d5c9a868SElliott Hughes eval ac_val=\$$ac_var 2297*d5c9a868SElliott Hughes case $ac_val in #( 2298*d5c9a868SElliott Hughes *${as_nl}*) 2299*d5c9a868SElliott Hughes case $ac_var in #( 2300*d5c9a868SElliott Hughes *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2301*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2302*d5c9a868SElliott Hughes esac 2303*d5c9a868SElliott Hughes case $ac_var in #( 2304*d5c9a868SElliott Hughes _ | IFS | as_nl) ;; #( 2305*d5c9a868SElliott Hughes BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2306*d5c9a868SElliott Hughes *) { eval $ac_var=; unset $ac_var;} ;; 2307*d5c9a868SElliott Hughes esac ;; 2308*d5c9a868SElliott Hughes esac 2309*d5c9a868SElliott Hughes done 2310*d5c9a868SElliott Hughes (set) 2>&1 | 2311*d5c9a868SElliott Hughes case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2312*d5c9a868SElliott Hughes *${as_nl}ac_space=\ *) 2313*d5c9a868SElliott Hughes sed -n \ 2314*d5c9a868SElliott Hughes "s/'\''/'\''\\\\'\'''\''/g; 2315*d5c9a868SElliott Hughes s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2316*d5c9a868SElliott Hughes ;; #( 2317*d5c9a868SElliott Hughes *) 2318*d5c9a868SElliott Hughes sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2319*d5c9a868SElliott Hughes ;; 2320*d5c9a868SElliott Hughes esac | 2321*d5c9a868SElliott Hughes sort 2322*d5c9a868SElliott Hughes) 2323*d5c9a868SElliott Hughes echo 2324*d5c9a868SElliott Hughes 2325*d5c9a868SElliott Hughes $as_echo "## ----------------- ## 2326*d5c9a868SElliott Hughes## Output variables. ## 2327*d5c9a868SElliott Hughes## ----------------- ##" 2328*d5c9a868SElliott Hughes echo 2329*d5c9a868SElliott Hughes for ac_var in $ac_subst_vars 2330*d5c9a868SElliott Hughes do 2331*d5c9a868SElliott Hughes eval ac_val=\$$ac_var 2332*d5c9a868SElliott Hughes case $ac_val in 2333*d5c9a868SElliott Hughes *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2334*d5c9a868SElliott Hughes esac 2335*d5c9a868SElliott Hughes $as_echo "$ac_var='\''$ac_val'\''" 2336*d5c9a868SElliott Hughes done | sort 2337*d5c9a868SElliott Hughes echo 2338*d5c9a868SElliott Hughes 2339*d5c9a868SElliott Hughes if test -n "$ac_subst_files"; then 2340*d5c9a868SElliott Hughes $as_echo "## ------------------- ## 2341*d5c9a868SElliott Hughes## File substitutions. ## 2342*d5c9a868SElliott Hughes## ------------------- ##" 2343*d5c9a868SElliott Hughes echo 2344*d5c9a868SElliott Hughes for ac_var in $ac_subst_files 2345*d5c9a868SElliott Hughes do 2346*d5c9a868SElliott Hughes eval ac_val=\$$ac_var 2347*d5c9a868SElliott Hughes case $ac_val in 2348*d5c9a868SElliott Hughes *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2349*d5c9a868SElliott Hughes esac 2350*d5c9a868SElliott Hughes $as_echo "$ac_var='\''$ac_val'\''" 2351*d5c9a868SElliott Hughes done | sort 2352*d5c9a868SElliott Hughes echo 2353*d5c9a868SElliott Hughes fi 2354*d5c9a868SElliott Hughes 2355*d5c9a868SElliott Hughes if test -s confdefs.h; then 2356*d5c9a868SElliott Hughes $as_echo "## ----------- ## 2357*d5c9a868SElliott Hughes## confdefs.h. ## 2358*d5c9a868SElliott Hughes## ----------- ##" 2359*d5c9a868SElliott Hughes echo 2360*d5c9a868SElliott Hughes cat confdefs.h 2361*d5c9a868SElliott Hughes echo 2362*d5c9a868SElliott Hughes fi 2363*d5c9a868SElliott Hughes test "$ac_signal" != 0 && 2364*d5c9a868SElliott Hughes $as_echo "$as_me: caught signal $ac_signal" 2365*d5c9a868SElliott Hughes $as_echo "$as_me: exit $exit_status" 2366*d5c9a868SElliott Hughes } >&5 2367*d5c9a868SElliott Hughes rm -f core *.core core.conftest.* && 2368*d5c9a868SElliott Hughes rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2369*d5c9a868SElliott Hughes exit $exit_status 2370*d5c9a868SElliott Hughes' 0 2371*d5c9a868SElliott Hughesfor ac_signal in 1 2 13 15; do 2372*d5c9a868SElliott Hughes trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2373*d5c9a868SElliott Hughesdone 2374*d5c9a868SElliott Hughesac_signal=0 2375*d5c9a868SElliott Hughes 2376*d5c9a868SElliott Hughes# confdefs.h avoids OS command line length limits that DEFS can exceed. 2377*d5c9a868SElliott Hughesrm -f -r conftest* confdefs.h 2378*d5c9a868SElliott Hughes 2379*d5c9a868SElliott Hughes$as_echo "/* confdefs.h */" > confdefs.h 2380*d5c9a868SElliott Hughes 2381*d5c9a868SElliott Hughes# Predefined preprocessor variables. 2382*d5c9a868SElliott Hughes 2383*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2384*d5c9a868SElliott Hughes#define PACKAGE_NAME "$PACKAGE_NAME" 2385*d5c9a868SElliott Hughes_ACEOF 2386*d5c9a868SElliott Hughes 2387*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2388*d5c9a868SElliott Hughes#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2389*d5c9a868SElliott Hughes_ACEOF 2390*d5c9a868SElliott Hughes 2391*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2392*d5c9a868SElliott Hughes#define PACKAGE_VERSION "$PACKAGE_VERSION" 2393*d5c9a868SElliott Hughes_ACEOF 2394*d5c9a868SElliott Hughes 2395*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2396*d5c9a868SElliott Hughes#define PACKAGE_STRING "$PACKAGE_STRING" 2397*d5c9a868SElliott Hughes_ACEOF 2398*d5c9a868SElliott Hughes 2399*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2400*d5c9a868SElliott Hughes#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2401*d5c9a868SElliott Hughes_ACEOF 2402*d5c9a868SElliott Hughes 2403*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 2404*d5c9a868SElliott Hughes#define PACKAGE_URL "$PACKAGE_URL" 2405*d5c9a868SElliott Hughes_ACEOF 2406*d5c9a868SElliott Hughes 2407*d5c9a868SElliott Hughes 2408*d5c9a868SElliott Hughes# Let the site file select an alternate cache file if it wants to. 2409*d5c9a868SElliott Hughes# Prefer an explicitly selected file to automatically selected ones. 2410*d5c9a868SElliott Hughesac_site_file1=NONE 2411*d5c9a868SElliott Hughesac_site_file2=NONE 2412*d5c9a868SElliott Hughesif test -n "$CONFIG_SITE"; then 2413*d5c9a868SElliott Hughes # We do not want a PATH search for config.site. 2414*d5c9a868SElliott Hughes case $CONFIG_SITE in #(( 2415*d5c9a868SElliott Hughes -*) ac_site_file1=./$CONFIG_SITE;; 2416*d5c9a868SElliott Hughes */*) ac_site_file1=$CONFIG_SITE;; 2417*d5c9a868SElliott Hughes *) ac_site_file1=./$CONFIG_SITE;; 2418*d5c9a868SElliott Hughes esac 2419*d5c9a868SElliott Hugheselif test "x$prefix" != xNONE; then 2420*d5c9a868SElliott Hughes ac_site_file1=$prefix/share/config.site 2421*d5c9a868SElliott Hughes ac_site_file2=$prefix/etc/config.site 2422*d5c9a868SElliott Hugheselse 2423*d5c9a868SElliott Hughes ac_site_file1=$ac_default_prefix/share/config.site 2424*d5c9a868SElliott Hughes ac_site_file2=$ac_default_prefix/etc/config.site 2425*d5c9a868SElliott Hughesfi 2426*d5c9a868SElliott Hughesfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2427*d5c9a868SElliott Hughesdo 2428*d5c9a868SElliott Hughes test "x$ac_site_file" = xNONE && continue 2429*d5c9a868SElliott Hughes if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2430*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2431*d5c9a868SElliott Hughes$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2432*d5c9a868SElliott Hughes sed 's/^/| /' "$ac_site_file" >&5 2433*d5c9a868SElliott Hughes . "$ac_site_file" \ 2434*d5c9a868SElliott Hughes || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2435*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2436*d5c9a868SElliott Hughesas_fn_error $? "failed to load site script $ac_site_file 2437*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 2438*d5c9a868SElliott Hughes fi 2439*d5c9a868SElliott Hughesdone 2440*d5c9a868SElliott Hughes 2441*d5c9a868SElliott Hughesif test -r "$cache_file"; then 2442*d5c9a868SElliott Hughes # Some versions of bash will fail to source /dev/null (special files 2443*d5c9a868SElliott Hughes # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2444*d5c9a868SElliott Hughes if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2445*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2446*d5c9a868SElliott Hughes$as_echo "$as_me: loading cache $cache_file" >&6;} 2447*d5c9a868SElliott Hughes case $cache_file in 2448*d5c9a868SElliott Hughes [\\/]* | ?:[\\/]* ) . "$cache_file";; 2449*d5c9a868SElliott Hughes *) . "./$cache_file";; 2450*d5c9a868SElliott Hughes esac 2451*d5c9a868SElliott Hughes fi 2452*d5c9a868SElliott Hugheselse 2453*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2454*d5c9a868SElliott Hughes$as_echo "$as_me: creating cache $cache_file" >&6;} 2455*d5c9a868SElliott Hughes >$cache_file 2456*d5c9a868SElliott Hughesfi 2457*d5c9a868SElliott Hughes 2458*d5c9a868SElliott Hughes# Check that the precious variables saved in the cache have kept the same 2459*d5c9a868SElliott Hughes# value. 2460*d5c9a868SElliott Hughesac_cache_corrupted=false 2461*d5c9a868SElliott Hughesfor ac_var in $ac_precious_vars; do 2462*d5c9a868SElliott Hughes eval ac_old_set=\$ac_cv_env_${ac_var}_set 2463*d5c9a868SElliott Hughes eval ac_new_set=\$ac_env_${ac_var}_set 2464*d5c9a868SElliott Hughes eval ac_old_val=\$ac_cv_env_${ac_var}_value 2465*d5c9a868SElliott Hughes eval ac_new_val=\$ac_env_${ac_var}_value 2466*d5c9a868SElliott Hughes case $ac_old_set,$ac_new_set in 2467*d5c9a868SElliott Hughes set,) 2468*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2469*d5c9a868SElliott Hughes$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2470*d5c9a868SElliott Hughes ac_cache_corrupted=: ;; 2471*d5c9a868SElliott Hughes ,set) 2472*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2473*d5c9a868SElliott Hughes$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2474*d5c9a868SElliott Hughes ac_cache_corrupted=: ;; 2475*d5c9a868SElliott Hughes ,);; 2476*d5c9a868SElliott Hughes *) 2477*d5c9a868SElliott Hughes if test "x$ac_old_val" != "x$ac_new_val"; then 2478*d5c9a868SElliott Hughes # differences in whitespace do not lead to failure. 2479*d5c9a868SElliott Hughes ac_old_val_w=`echo x $ac_old_val` 2480*d5c9a868SElliott Hughes ac_new_val_w=`echo x $ac_new_val` 2481*d5c9a868SElliott Hughes if test "$ac_old_val_w" != "$ac_new_val_w"; then 2482*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2483*d5c9a868SElliott Hughes$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2484*d5c9a868SElliott Hughes ac_cache_corrupted=: 2485*d5c9a868SElliott Hughes else 2486*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2487*d5c9a868SElliott Hughes$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2488*d5c9a868SElliott Hughes eval $ac_var=\$ac_old_val 2489*d5c9a868SElliott Hughes fi 2490*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2491*d5c9a868SElliott Hughes$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2492*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2493*d5c9a868SElliott Hughes$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2494*d5c9a868SElliott Hughes fi;; 2495*d5c9a868SElliott Hughes esac 2496*d5c9a868SElliott Hughes # Pass precious variables to config.status. 2497*d5c9a868SElliott Hughes if test "$ac_new_set" = set; then 2498*d5c9a868SElliott Hughes case $ac_new_val in 2499*d5c9a868SElliott Hughes *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2500*d5c9a868SElliott Hughes *) ac_arg=$ac_var=$ac_new_val ;; 2501*d5c9a868SElliott Hughes esac 2502*d5c9a868SElliott Hughes case " $ac_configure_args " in 2503*d5c9a868SElliott Hughes *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2504*d5c9a868SElliott Hughes *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2505*d5c9a868SElliott Hughes esac 2506*d5c9a868SElliott Hughes fi 2507*d5c9a868SElliott Hughesdone 2508*d5c9a868SElliott Hughesif $ac_cache_corrupted; then 2509*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2510*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2511*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2512*d5c9a868SElliott Hughes$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2513*d5c9a868SElliott Hughes as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2514*d5c9a868SElliott Hughesfi 2515*d5c9a868SElliott Hughes## -------------------- ## 2516*d5c9a868SElliott Hughes## Main body of script. ## 2517*d5c9a868SElliott Hughes## -------------------- ## 2518*d5c9a868SElliott Hughes 2519*d5c9a868SElliott Hughesac_ext=c 2520*d5c9a868SElliott Hughesac_cpp='$CPP $CPPFLAGS' 2521*d5c9a868SElliott Hughesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2522*d5c9a868SElliott Hughesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2523*d5c9a868SElliott Hughesac_compiler_gnu=$ac_cv_c_compiler_gnu 2524*d5c9a868SElliott Hughes 2525*d5c9a868SElliott Hughes 2526*d5c9a868SElliott Hughes# =========================================================================== 2527*d5c9a868SElliott Hughes# https://www.gnu.org/software/autoconf-archive/ax_lib_socket_nsl.html 2528*d5c9a868SElliott Hughes# =========================================================================== 2529*d5c9a868SElliott Hughes# 2530*d5c9a868SElliott Hughes# SYNOPSIS 2531*d5c9a868SElliott Hughes# 2532*d5c9a868SElliott Hughes# AX_LIB_SOCKET_NSL 2533*d5c9a868SElliott Hughes# 2534*d5c9a868SElliott Hughes# DESCRIPTION 2535*d5c9a868SElliott Hughes# 2536*d5c9a868SElliott Hughes# This macro figures out what libraries are required on this platform to 2537*d5c9a868SElliott Hughes# link sockets programs. 2538*d5c9a868SElliott Hughes# 2539*d5c9a868SElliott Hughes# The common cases are not to need any extra libraries, or to need 2540*d5c9a868SElliott Hughes# -lsocket and -lnsl. We need to avoid linking with libnsl unless we need 2541*d5c9a868SElliott Hughes# it, though, since on some OSes where it isn't necessary it will totally 2542*d5c9a868SElliott Hughes# break networking. Unisys also includes gethostbyname() in libsocket but 2543*d5c9a868SElliott Hughes# needs libnsl for socket(). 2544*d5c9a868SElliott Hughes# 2545*d5c9a868SElliott Hughes# LICENSE 2546*d5c9a868SElliott Hughes# 2547*d5c9a868SElliott Hughes# Copyright (c) 2008 Russ Allbery <[email protected]> 2548*d5c9a868SElliott Hughes# Copyright (c) 2008 Stepan Kasal <[email protected]> 2549*d5c9a868SElliott Hughes# Copyright (c) 2008 Warren Young <[email protected]> 2550*d5c9a868SElliott Hughes# 2551*d5c9a868SElliott Hughes# Copying and distribution of this file, with or without modification, are 2552*d5c9a868SElliott Hughes# permitted in any medium without royalty provided the copyright notice 2553*d5c9a868SElliott Hughes# and this notice are preserved. This file is offered as-is, without any 2554*d5c9a868SElliott Hughes# warranty. 2555*d5c9a868SElliott Hughes 2556*d5c9a868SElliott Hughes#serial 7 2557*d5c9a868SElliott Hughes 2558*d5c9a868SElliott Hughes# This is what autoupdate's m4 run will expand. It fires 2559*d5c9a868SElliott Hughes# the warning (with _au_warn_XXX), outputs it into the 2560*d5c9a868SElliott Hughes# updated configure.ac (with AC_DIAGNOSE), and then outputs 2561*d5c9a868SElliott Hughes# the replacement expansion. 2562*d5c9a868SElliott Hughes 2563*d5c9a868SElliott Hughes 2564*d5c9a868SElliott Hughes# This is an auxiliary macro that is also run when 2565*d5c9a868SElliott Hughes# autoupdate runs m4. It simply calls m4_warning, but 2566*d5c9a868SElliott Hughes# we need a wrapper so that each warning is emitted only 2567*d5c9a868SElliott Hughes# once. We break the quoting in m4_warning's argument in 2568*d5c9a868SElliott Hughes# order to expand this macro's arguments, not AU_DEFUN's. 2569*d5c9a868SElliott Hughes 2570*d5c9a868SElliott Hughes 2571*d5c9a868SElliott Hughes# Finally, this is the expansion that is picked up by 2572*d5c9a868SElliott Hughes# autoconf. It tells the user to run autoupdate, and 2573*d5c9a868SElliott Hughes# then outputs the replacement expansion. We do not care 2574*d5c9a868SElliott Hughes# about autoupdate's warning because that contains 2575*d5c9a868SElliott Hughes# information on what to do *after* running autoupdate. 2576*d5c9a868SElliott Hughes 2577*d5c9a868SElliott Hughes 2578*d5c9a868SElliott Hughes 2579*d5c9a868SElliott Hughesac_config_headers="$ac_config_headers config.h" 2580*d5c9a868SElliott Hughes 2581*d5c9a868SElliott Hughes 2582*d5c9a868SElliott Hughesac_ext=c 2583*d5c9a868SElliott Hughesac_cpp='$CPP $CPPFLAGS' 2584*d5c9a868SElliott Hughesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2585*d5c9a868SElliott Hughesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2586*d5c9a868SElliott Hughesac_compiler_gnu=$ac_cv_c_compiler_gnu 2587*d5c9a868SElliott Hughesif test -n "$ac_tool_prefix"; then 2588*d5c9a868SElliott Hughes # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2589*d5c9a868SElliott Hughesset dummy ${ac_tool_prefix}gcc; ac_word=$2 2590*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2591*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2592*d5c9a868SElliott Hughesif ${ac_cv_prog_CC+:} false; then : 2593*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2594*d5c9a868SElliott Hugheselse 2595*d5c9a868SElliott Hughes if test -n "$CC"; then 2596*d5c9a868SElliott Hughes ac_cv_prog_CC="$CC" # Let the user override the test. 2597*d5c9a868SElliott Hugheselse 2598*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599*d5c9a868SElliott Hughesfor as_dir in $PATH 2600*d5c9a868SElliott Hughesdo 2601*d5c9a868SElliott Hughes IFS=$as_save_IFS 2602*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2603*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2604*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2605*d5c9a868SElliott Hughes ac_cv_prog_CC="${ac_tool_prefix}gcc" 2606*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2607*d5c9a868SElliott Hughes break 2 2608*d5c9a868SElliott Hughes fi 2609*d5c9a868SElliott Hughesdone 2610*d5c9a868SElliott Hughes done 2611*d5c9a868SElliott HughesIFS=$as_save_IFS 2612*d5c9a868SElliott Hughes 2613*d5c9a868SElliott Hughesfi 2614*d5c9a868SElliott Hughesfi 2615*d5c9a868SElliott HughesCC=$ac_cv_prog_CC 2616*d5c9a868SElliott Hughesif test -n "$CC"; then 2617*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2618*d5c9a868SElliott Hughes$as_echo "$CC" >&6; } 2619*d5c9a868SElliott Hugheselse 2620*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2621*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2622*d5c9a868SElliott Hughesfi 2623*d5c9a868SElliott Hughes 2624*d5c9a868SElliott Hughes 2625*d5c9a868SElliott Hughesfi 2626*d5c9a868SElliott Hughesif test -z "$ac_cv_prog_CC"; then 2627*d5c9a868SElliott Hughes ac_ct_CC=$CC 2628*d5c9a868SElliott Hughes # Extract the first word of "gcc", so it can be a program name with args. 2629*d5c9a868SElliott Hughesset dummy gcc; ac_word=$2 2630*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2632*d5c9a868SElliott Hughesif ${ac_cv_prog_ac_ct_CC+:} false; then : 2633*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2634*d5c9a868SElliott Hugheselse 2635*d5c9a868SElliott Hughes if test -n "$ac_ct_CC"; then 2636*d5c9a868SElliott Hughes ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2637*d5c9a868SElliott Hugheselse 2638*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639*d5c9a868SElliott Hughesfor as_dir in $PATH 2640*d5c9a868SElliott Hughesdo 2641*d5c9a868SElliott Hughes IFS=$as_save_IFS 2642*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2643*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2644*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645*d5c9a868SElliott Hughes ac_cv_prog_ac_ct_CC="gcc" 2646*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647*d5c9a868SElliott Hughes break 2 2648*d5c9a868SElliott Hughes fi 2649*d5c9a868SElliott Hughesdone 2650*d5c9a868SElliott Hughes done 2651*d5c9a868SElliott HughesIFS=$as_save_IFS 2652*d5c9a868SElliott Hughes 2653*d5c9a868SElliott Hughesfi 2654*d5c9a868SElliott Hughesfi 2655*d5c9a868SElliott Hughesac_ct_CC=$ac_cv_prog_ac_ct_CC 2656*d5c9a868SElliott Hughesif test -n "$ac_ct_CC"; then 2657*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2658*d5c9a868SElliott Hughes$as_echo "$ac_ct_CC" >&6; } 2659*d5c9a868SElliott Hugheselse 2660*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2662*d5c9a868SElliott Hughesfi 2663*d5c9a868SElliott Hughes 2664*d5c9a868SElliott Hughes if test "x$ac_ct_CC" = x; then 2665*d5c9a868SElliott Hughes CC="" 2666*d5c9a868SElliott Hughes else 2667*d5c9a868SElliott Hughes case $cross_compiling:$ac_tool_warned in 2668*d5c9a868SElliott Hughesyes:) 2669*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2670*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2671*d5c9a868SElliott Hughesac_tool_warned=yes ;; 2672*d5c9a868SElliott Hughesesac 2673*d5c9a868SElliott Hughes CC=$ac_ct_CC 2674*d5c9a868SElliott Hughes fi 2675*d5c9a868SElliott Hugheselse 2676*d5c9a868SElliott Hughes CC="$ac_cv_prog_CC" 2677*d5c9a868SElliott Hughesfi 2678*d5c9a868SElliott Hughes 2679*d5c9a868SElliott Hughesif test -z "$CC"; then 2680*d5c9a868SElliott Hughes if test -n "$ac_tool_prefix"; then 2681*d5c9a868SElliott Hughes # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2682*d5c9a868SElliott Hughesset dummy ${ac_tool_prefix}cc; ac_word=$2 2683*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2685*d5c9a868SElliott Hughesif ${ac_cv_prog_CC+:} false; then : 2686*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2687*d5c9a868SElliott Hugheselse 2688*d5c9a868SElliott Hughes if test -n "$CC"; then 2689*d5c9a868SElliott Hughes ac_cv_prog_CC="$CC" # Let the user override the test. 2690*d5c9a868SElliott Hugheselse 2691*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692*d5c9a868SElliott Hughesfor as_dir in $PATH 2693*d5c9a868SElliott Hughesdo 2694*d5c9a868SElliott Hughes IFS=$as_save_IFS 2695*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2696*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2697*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2698*d5c9a868SElliott Hughes ac_cv_prog_CC="${ac_tool_prefix}cc" 2699*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700*d5c9a868SElliott Hughes break 2 2701*d5c9a868SElliott Hughes fi 2702*d5c9a868SElliott Hughesdone 2703*d5c9a868SElliott Hughes done 2704*d5c9a868SElliott HughesIFS=$as_save_IFS 2705*d5c9a868SElliott Hughes 2706*d5c9a868SElliott Hughesfi 2707*d5c9a868SElliott Hughesfi 2708*d5c9a868SElliott HughesCC=$ac_cv_prog_CC 2709*d5c9a868SElliott Hughesif test -n "$CC"; then 2710*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2711*d5c9a868SElliott Hughes$as_echo "$CC" >&6; } 2712*d5c9a868SElliott Hugheselse 2713*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2715*d5c9a868SElliott Hughesfi 2716*d5c9a868SElliott Hughes 2717*d5c9a868SElliott Hughes 2718*d5c9a868SElliott Hughes fi 2719*d5c9a868SElliott Hughesfi 2720*d5c9a868SElliott Hughesif test -z "$CC"; then 2721*d5c9a868SElliott Hughes # Extract the first word of "cc", so it can be a program name with args. 2722*d5c9a868SElliott Hughesset dummy cc; ac_word=$2 2723*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2725*d5c9a868SElliott Hughesif ${ac_cv_prog_CC+:} false; then : 2726*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2727*d5c9a868SElliott Hugheselse 2728*d5c9a868SElliott Hughes if test -n "$CC"; then 2729*d5c9a868SElliott Hughes ac_cv_prog_CC="$CC" # Let the user override the test. 2730*d5c9a868SElliott Hugheselse 2731*d5c9a868SElliott Hughes ac_prog_rejected=no 2732*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733*d5c9a868SElliott Hughesfor as_dir in $PATH 2734*d5c9a868SElliott Hughesdo 2735*d5c9a868SElliott Hughes IFS=$as_save_IFS 2736*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2737*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2738*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2739*d5c9a868SElliott Hughes if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2740*d5c9a868SElliott Hughes ac_prog_rejected=yes 2741*d5c9a868SElliott Hughes continue 2742*d5c9a868SElliott Hughes fi 2743*d5c9a868SElliott Hughes ac_cv_prog_CC="cc" 2744*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2745*d5c9a868SElliott Hughes break 2 2746*d5c9a868SElliott Hughes fi 2747*d5c9a868SElliott Hughesdone 2748*d5c9a868SElliott Hughes done 2749*d5c9a868SElliott HughesIFS=$as_save_IFS 2750*d5c9a868SElliott Hughes 2751*d5c9a868SElliott Hughesif test $ac_prog_rejected = yes; then 2752*d5c9a868SElliott Hughes # We found a bogon in the path, so make sure we never use it. 2753*d5c9a868SElliott Hughes set dummy $ac_cv_prog_CC 2754*d5c9a868SElliott Hughes shift 2755*d5c9a868SElliott Hughes if test $# != 0; then 2756*d5c9a868SElliott Hughes # We chose a different compiler from the bogus one. 2757*d5c9a868SElliott Hughes # However, it has the same basename, so the bogon will be chosen 2758*d5c9a868SElliott Hughes # first if we set CC to just the basename; use the full file name. 2759*d5c9a868SElliott Hughes shift 2760*d5c9a868SElliott Hughes ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2761*d5c9a868SElliott Hughes fi 2762*d5c9a868SElliott Hughesfi 2763*d5c9a868SElliott Hughesfi 2764*d5c9a868SElliott Hughesfi 2765*d5c9a868SElliott HughesCC=$ac_cv_prog_CC 2766*d5c9a868SElliott Hughesif test -n "$CC"; then 2767*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2768*d5c9a868SElliott Hughes$as_echo "$CC" >&6; } 2769*d5c9a868SElliott Hugheselse 2770*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2771*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2772*d5c9a868SElliott Hughesfi 2773*d5c9a868SElliott Hughes 2774*d5c9a868SElliott Hughes 2775*d5c9a868SElliott Hughesfi 2776*d5c9a868SElliott Hughesif test -z "$CC"; then 2777*d5c9a868SElliott Hughes if test -n "$ac_tool_prefix"; then 2778*d5c9a868SElliott Hughes for ac_prog in cl.exe 2779*d5c9a868SElliott Hughes do 2780*d5c9a868SElliott Hughes # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2781*d5c9a868SElliott Hughesset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2782*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2783*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2784*d5c9a868SElliott Hughesif ${ac_cv_prog_CC+:} false; then : 2785*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2786*d5c9a868SElliott Hugheselse 2787*d5c9a868SElliott Hughes if test -n "$CC"; then 2788*d5c9a868SElliott Hughes ac_cv_prog_CC="$CC" # Let the user override the test. 2789*d5c9a868SElliott Hugheselse 2790*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2791*d5c9a868SElliott Hughesfor as_dir in $PATH 2792*d5c9a868SElliott Hughesdo 2793*d5c9a868SElliott Hughes IFS=$as_save_IFS 2794*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2795*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2796*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2797*d5c9a868SElliott Hughes ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2798*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2799*d5c9a868SElliott Hughes break 2 2800*d5c9a868SElliott Hughes fi 2801*d5c9a868SElliott Hughesdone 2802*d5c9a868SElliott Hughes done 2803*d5c9a868SElliott HughesIFS=$as_save_IFS 2804*d5c9a868SElliott Hughes 2805*d5c9a868SElliott Hughesfi 2806*d5c9a868SElliott Hughesfi 2807*d5c9a868SElliott HughesCC=$ac_cv_prog_CC 2808*d5c9a868SElliott Hughesif test -n "$CC"; then 2809*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2810*d5c9a868SElliott Hughes$as_echo "$CC" >&6; } 2811*d5c9a868SElliott Hugheselse 2812*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2814*d5c9a868SElliott Hughesfi 2815*d5c9a868SElliott Hughes 2816*d5c9a868SElliott Hughes 2817*d5c9a868SElliott Hughes test -n "$CC" && break 2818*d5c9a868SElliott Hughes done 2819*d5c9a868SElliott Hughesfi 2820*d5c9a868SElliott Hughesif test -z "$CC"; then 2821*d5c9a868SElliott Hughes ac_ct_CC=$CC 2822*d5c9a868SElliott Hughes for ac_prog in cl.exe 2823*d5c9a868SElliott Hughesdo 2824*d5c9a868SElliott Hughes # Extract the first word of "$ac_prog", so it can be a program name with args. 2825*d5c9a868SElliott Hughesset dummy $ac_prog; ac_word=$2 2826*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 2828*d5c9a868SElliott Hughesif ${ac_cv_prog_ac_ct_CC+:} false; then : 2829*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 2830*d5c9a868SElliott Hugheselse 2831*d5c9a868SElliott Hughes if test -n "$ac_ct_CC"; then 2832*d5c9a868SElliott Hughes ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2833*d5c9a868SElliott Hugheselse 2834*d5c9a868SElliott Hughesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835*d5c9a868SElliott Hughesfor as_dir in $PATH 2836*d5c9a868SElliott Hughesdo 2837*d5c9a868SElliott Hughes IFS=$as_save_IFS 2838*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 2839*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 2840*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841*d5c9a868SElliott Hughes ac_cv_prog_ac_ct_CC="$ac_prog" 2842*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843*d5c9a868SElliott Hughes break 2 2844*d5c9a868SElliott Hughes fi 2845*d5c9a868SElliott Hughesdone 2846*d5c9a868SElliott Hughes done 2847*d5c9a868SElliott HughesIFS=$as_save_IFS 2848*d5c9a868SElliott Hughes 2849*d5c9a868SElliott Hughesfi 2850*d5c9a868SElliott Hughesfi 2851*d5c9a868SElliott Hughesac_ct_CC=$ac_cv_prog_ac_ct_CC 2852*d5c9a868SElliott Hughesif test -n "$ac_ct_CC"; then 2853*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2854*d5c9a868SElliott Hughes$as_echo "$ac_ct_CC" >&6; } 2855*d5c9a868SElliott Hugheselse 2856*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2858*d5c9a868SElliott Hughesfi 2859*d5c9a868SElliott Hughes 2860*d5c9a868SElliott Hughes 2861*d5c9a868SElliott Hughes test -n "$ac_ct_CC" && break 2862*d5c9a868SElliott Hughesdone 2863*d5c9a868SElliott Hughes 2864*d5c9a868SElliott Hughes if test "x$ac_ct_CC" = x; then 2865*d5c9a868SElliott Hughes CC="" 2866*d5c9a868SElliott Hughes else 2867*d5c9a868SElliott Hughes case $cross_compiling:$ac_tool_warned in 2868*d5c9a868SElliott Hughesyes:) 2869*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2870*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2871*d5c9a868SElliott Hughesac_tool_warned=yes ;; 2872*d5c9a868SElliott Hughesesac 2873*d5c9a868SElliott Hughes CC=$ac_ct_CC 2874*d5c9a868SElliott Hughes fi 2875*d5c9a868SElliott Hughesfi 2876*d5c9a868SElliott Hughes 2877*d5c9a868SElliott Hughesfi 2878*d5c9a868SElliott Hughes 2879*d5c9a868SElliott Hughes 2880*d5c9a868SElliott Hughestest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882*d5c9a868SElliott Hughesas_fn_error $? "no acceptable C compiler found in \$PATH 2883*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 2884*d5c9a868SElliott Hughes 2885*d5c9a868SElliott Hughes# Provide some information about the compiler. 2886*d5c9a868SElliott Hughes$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2887*d5c9a868SElliott Hughesset X $ac_compile 2888*d5c9a868SElliott Hughesac_compiler=$2 2889*d5c9a868SElliott Hughesfor ac_option in --version -v -V -qversion; do 2890*d5c9a868SElliott Hughes { { ac_try="$ac_compiler $ac_option >&5" 2891*d5c9a868SElliott Hughescase "(($ac_try" in 2892*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2893*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 2894*d5c9a868SElliott Hughesesac 2895*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2896*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 2897*d5c9a868SElliott Hughes (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2898*d5c9a868SElliott Hughes ac_status=$? 2899*d5c9a868SElliott Hughes if test -s conftest.err; then 2900*d5c9a868SElliott Hughes sed '10a\ 2901*d5c9a868SElliott Hughes... rest of stderr output deleted ... 2902*d5c9a868SElliott Hughes 10q' conftest.err >conftest.er1 2903*d5c9a868SElliott Hughes cat conftest.er1 >&5 2904*d5c9a868SElliott Hughes fi 2905*d5c9a868SElliott Hughes rm -f conftest.er1 conftest.err 2906*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2907*d5c9a868SElliott Hughes test $ac_status = 0; } 2908*d5c9a868SElliott Hughesdone 2909*d5c9a868SElliott Hughes 2910*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 2911*d5c9a868SElliott Hughes/* end confdefs.h. */ 2912*d5c9a868SElliott Hughes 2913*d5c9a868SElliott Hughesint 2914*d5c9a868SElliott Hughesmain () 2915*d5c9a868SElliott Hughes{ 2916*d5c9a868SElliott Hughes 2917*d5c9a868SElliott Hughes ; 2918*d5c9a868SElliott Hughes return 0; 2919*d5c9a868SElliott Hughes} 2920*d5c9a868SElliott Hughes_ACEOF 2921*d5c9a868SElliott Hughesac_clean_files_save=$ac_clean_files 2922*d5c9a868SElliott Hughesac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2923*d5c9a868SElliott Hughes# Try to create an executable without -o first, disregard a.out. 2924*d5c9a868SElliott Hughes# It will help us diagnose broken compilers, and finding out an intuition 2925*d5c9a868SElliott Hughes# of exeext. 2926*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2927*d5c9a868SElliott Hughes$as_echo_n "checking whether the C compiler works... " >&6; } 2928*d5c9a868SElliott Hughesac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2929*d5c9a868SElliott Hughes 2930*d5c9a868SElliott Hughes# The possible output files: 2931*d5c9a868SElliott Hughesac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2932*d5c9a868SElliott Hughes 2933*d5c9a868SElliott Hughesac_rmfiles= 2934*d5c9a868SElliott Hughesfor ac_file in $ac_files 2935*d5c9a868SElliott Hughesdo 2936*d5c9a868SElliott Hughes case $ac_file in 2937*d5c9a868SElliott Hughes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2938*d5c9a868SElliott Hughes * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2939*d5c9a868SElliott Hughes esac 2940*d5c9a868SElliott Hughesdone 2941*d5c9a868SElliott Hughesrm -f $ac_rmfiles 2942*d5c9a868SElliott Hughes 2943*d5c9a868SElliott Hughesif { { ac_try="$ac_link_default" 2944*d5c9a868SElliott Hughescase "(($ac_try" in 2945*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2946*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 2947*d5c9a868SElliott Hughesesac 2948*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2949*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 2950*d5c9a868SElliott Hughes (eval "$ac_link_default") 2>&5 2951*d5c9a868SElliott Hughes ac_status=$? 2952*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2953*d5c9a868SElliott Hughes test $ac_status = 0; }; then : 2954*d5c9a868SElliott Hughes # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2955*d5c9a868SElliott Hughes# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2956*d5c9a868SElliott Hughes# in a Makefile. We should not override ac_cv_exeext if it was cached, 2957*d5c9a868SElliott Hughes# so that the user can short-circuit this test for compilers unknown to 2958*d5c9a868SElliott Hughes# Autoconf. 2959*d5c9a868SElliott Hughesfor ac_file in $ac_files '' 2960*d5c9a868SElliott Hughesdo 2961*d5c9a868SElliott Hughes test -f "$ac_file" || continue 2962*d5c9a868SElliott Hughes case $ac_file in 2963*d5c9a868SElliott Hughes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2964*d5c9a868SElliott Hughes ;; 2965*d5c9a868SElliott Hughes [ab].out ) 2966*d5c9a868SElliott Hughes # We found the default executable, but exeext='' is most 2967*d5c9a868SElliott Hughes # certainly right. 2968*d5c9a868SElliott Hughes break;; 2969*d5c9a868SElliott Hughes *.* ) 2970*d5c9a868SElliott Hughes if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2971*d5c9a868SElliott Hughes then :; else 2972*d5c9a868SElliott Hughes ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2973*d5c9a868SElliott Hughes fi 2974*d5c9a868SElliott Hughes # We set ac_cv_exeext here because the later test for it is not 2975*d5c9a868SElliott Hughes # safe: cross compilers may not add the suffix if given an `-o' 2976*d5c9a868SElliott Hughes # argument, so we may need to know it at that point already. 2977*d5c9a868SElliott Hughes # Even if this section looks crufty: it has the advantage of 2978*d5c9a868SElliott Hughes # actually working. 2979*d5c9a868SElliott Hughes break;; 2980*d5c9a868SElliott Hughes * ) 2981*d5c9a868SElliott Hughes break;; 2982*d5c9a868SElliott Hughes esac 2983*d5c9a868SElliott Hughesdone 2984*d5c9a868SElliott Hughestest "$ac_cv_exeext" = no && ac_cv_exeext= 2985*d5c9a868SElliott Hughes 2986*d5c9a868SElliott Hugheselse 2987*d5c9a868SElliott Hughes ac_file='' 2988*d5c9a868SElliott Hughesfi 2989*d5c9a868SElliott Hughesif test -z "$ac_file"; then : 2990*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991*d5c9a868SElliott Hughes$as_echo "no" >&6; } 2992*d5c9a868SElliott Hughes$as_echo "$as_me: failed program was:" >&5 2993*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 2994*d5c9a868SElliott Hughes 2995*d5c9a868SElliott Hughes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2996*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2997*d5c9a868SElliott Hughesas_fn_error 77 "C compiler cannot create executables 2998*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 2999*d5c9a868SElliott Hugheselse 3000*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3001*d5c9a868SElliott Hughes$as_echo "yes" >&6; } 3002*d5c9a868SElliott Hughesfi 3003*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3004*d5c9a868SElliott Hughes$as_echo_n "checking for C compiler default output file name... " >&6; } 3005*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3006*d5c9a868SElliott Hughes$as_echo "$ac_file" >&6; } 3007*d5c9a868SElliott Hughesac_exeext=$ac_cv_exeext 3008*d5c9a868SElliott Hughes 3009*d5c9a868SElliott Hughesrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3010*d5c9a868SElliott Hughesac_clean_files=$ac_clean_files_save 3011*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3012*d5c9a868SElliott Hughes$as_echo_n "checking for suffix of executables... " >&6; } 3013*d5c9a868SElliott Hughesif { { ac_try="$ac_link" 3014*d5c9a868SElliott Hughescase "(($ac_try" in 3015*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 3017*d5c9a868SElliott Hughesesac 3018*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3019*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 3020*d5c9a868SElliott Hughes (eval "$ac_link") 2>&5 3021*d5c9a868SElliott Hughes ac_status=$? 3022*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3023*d5c9a868SElliott Hughes test $ac_status = 0; }; then : 3024*d5c9a868SElliott Hughes # If both `conftest.exe' and `conftest' are `present' (well, observable) 3025*d5c9a868SElliott Hughes# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3026*d5c9a868SElliott Hughes# work properly (i.e., refer to `conftest.exe'), while it won't with 3027*d5c9a868SElliott Hughes# `rm'. 3028*d5c9a868SElliott Hughesfor ac_file in conftest.exe conftest conftest.*; do 3029*d5c9a868SElliott Hughes test -f "$ac_file" || continue 3030*d5c9a868SElliott Hughes case $ac_file in 3031*d5c9a868SElliott Hughes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3032*d5c9a868SElliott Hughes *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3033*d5c9a868SElliott Hughes break;; 3034*d5c9a868SElliott Hughes * ) break;; 3035*d5c9a868SElliott Hughes esac 3036*d5c9a868SElliott Hughesdone 3037*d5c9a868SElliott Hugheselse 3038*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3039*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3040*d5c9a868SElliott Hughesas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3041*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 3042*d5c9a868SElliott Hughesfi 3043*d5c9a868SElliott Hughesrm -f conftest conftest$ac_cv_exeext 3044*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3045*d5c9a868SElliott Hughes$as_echo "$ac_cv_exeext" >&6; } 3046*d5c9a868SElliott Hughes 3047*d5c9a868SElliott Hughesrm -f conftest.$ac_ext 3048*d5c9a868SElliott HughesEXEEXT=$ac_cv_exeext 3049*d5c9a868SElliott Hughesac_exeext=$EXEEXT 3050*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3051*d5c9a868SElliott Hughes/* end confdefs.h. */ 3052*d5c9a868SElliott Hughes#include <stdio.h> 3053*d5c9a868SElliott Hughesint 3054*d5c9a868SElliott Hughesmain () 3055*d5c9a868SElliott Hughes{ 3056*d5c9a868SElliott HughesFILE *f = fopen ("conftest.out", "w"); 3057*d5c9a868SElliott Hughes return ferror (f) || fclose (f) != 0; 3058*d5c9a868SElliott Hughes 3059*d5c9a868SElliott Hughes ; 3060*d5c9a868SElliott Hughes return 0; 3061*d5c9a868SElliott Hughes} 3062*d5c9a868SElliott Hughes_ACEOF 3063*d5c9a868SElliott Hughesac_clean_files="$ac_clean_files conftest.out" 3064*d5c9a868SElliott Hughes# Check that the compiler produces executables we can run. If not, either 3065*d5c9a868SElliott Hughes# the compiler is broken, or we cross compile. 3066*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3067*d5c9a868SElliott Hughes$as_echo_n "checking whether we are cross compiling... " >&6; } 3068*d5c9a868SElliott Hughesif test "$cross_compiling" != yes; then 3069*d5c9a868SElliott Hughes { { ac_try="$ac_link" 3070*d5c9a868SElliott Hughescase "(($ac_try" in 3071*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 3073*d5c9a868SElliott Hughesesac 3074*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3075*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 3076*d5c9a868SElliott Hughes (eval "$ac_link") 2>&5 3077*d5c9a868SElliott Hughes ac_status=$? 3078*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3079*d5c9a868SElliott Hughes test $ac_status = 0; } 3080*d5c9a868SElliott Hughes if { ac_try='./conftest$ac_cv_exeext' 3081*d5c9a868SElliott Hughes { { case "(($ac_try" in 3082*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 3084*d5c9a868SElliott Hughesesac 3085*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 3087*d5c9a868SElliott Hughes (eval "$ac_try") 2>&5 3088*d5c9a868SElliott Hughes ac_status=$? 3089*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3090*d5c9a868SElliott Hughes test $ac_status = 0; }; }; then 3091*d5c9a868SElliott Hughes cross_compiling=no 3092*d5c9a868SElliott Hughes else 3093*d5c9a868SElliott Hughes if test "$cross_compiling" = maybe; then 3094*d5c9a868SElliott Hughes cross_compiling=yes 3095*d5c9a868SElliott Hughes else 3096*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3097*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3098*d5c9a868SElliott Hughesas_fn_error $? "cannot run C compiled programs. 3099*d5c9a868SElliott HughesIf you meant to cross compile, use \`--host'. 3100*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 3101*d5c9a868SElliott Hughes fi 3102*d5c9a868SElliott Hughes fi 3103*d5c9a868SElliott Hughesfi 3104*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3105*d5c9a868SElliott Hughes$as_echo "$cross_compiling" >&6; } 3106*d5c9a868SElliott Hughes 3107*d5c9a868SElliott Hughesrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3108*d5c9a868SElliott Hughesac_clean_files=$ac_clean_files_save 3109*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3110*d5c9a868SElliott Hughes$as_echo_n "checking for suffix of object files... " >&6; } 3111*d5c9a868SElliott Hughesif ${ac_cv_objext+:} false; then : 3112*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3113*d5c9a868SElliott Hugheselse 3114*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115*d5c9a868SElliott Hughes/* end confdefs.h. */ 3116*d5c9a868SElliott Hughes 3117*d5c9a868SElliott Hughesint 3118*d5c9a868SElliott Hughesmain () 3119*d5c9a868SElliott Hughes{ 3120*d5c9a868SElliott Hughes 3121*d5c9a868SElliott Hughes ; 3122*d5c9a868SElliott Hughes return 0; 3123*d5c9a868SElliott Hughes} 3124*d5c9a868SElliott Hughes_ACEOF 3125*d5c9a868SElliott Hughesrm -f conftest.o conftest.obj 3126*d5c9a868SElliott Hughesif { { ac_try="$ac_compile" 3127*d5c9a868SElliott Hughescase "(($ac_try" in 3128*d5c9a868SElliott Hughes *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129*d5c9a868SElliott Hughes *) ac_try_echo=$ac_try;; 3130*d5c9a868SElliott Hughesesac 3131*d5c9a868SElliott Hugheseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3132*d5c9a868SElliott Hughes$as_echo "$ac_try_echo"; } >&5 3133*d5c9a868SElliott Hughes (eval "$ac_compile") 2>&5 3134*d5c9a868SElliott Hughes ac_status=$? 3135*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3136*d5c9a868SElliott Hughes test $ac_status = 0; }; then : 3137*d5c9a868SElliott Hughes for ac_file in conftest.o conftest.obj conftest.*; do 3138*d5c9a868SElliott Hughes test -f "$ac_file" || continue; 3139*d5c9a868SElliott Hughes case $ac_file in 3140*d5c9a868SElliott Hughes *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3141*d5c9a868SElliott Hughes *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3142*d5c9a868SElliott Hughes break;; 3143*d5c9a868SElliott Hughes esac 3144*d5c9a868SElliott Hughesdone 3145*d5c9a868SElliott Hugheselse 3146*d5c9a868SElliott Hughes $as_echo "$as_me: failed program was:" >&5 3147*d5c9a868SElliott Hughessed 's/^/| /' conftest.$ac_ext >&5 3148*d5c9a868SElliott Hughes 3149*d5c9a868SElliott Hughes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151*d5c9a868SElliott Hughesas_fn_error $? "cannot compute suffix of object files: cannot compile 3152*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 3153*d5c9a868SElliott Hughesfi 3154*d5c9a868SElliott Hughesrm -f conftest.$ac_cv_objext conftest.$ac_ext 3155*d5c9a868SElliott Hughesfi 3156*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3157*d5c9a868SElliott Hughes$as_echo "$ac_cv_objext" >&6; } 3158*d5c9a868SElliott HughesOBJEXT=$ac_cv_objext 3159*d5c9a868SElliott Hughesac_objext=$OBJEXT 3160*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3161*d5c9a868SElliott Hughes$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3162*d5c9a868SElliott Hughesif ${ac_cv_c_compiler_gnu+:} false; then : 3163*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3164*d5c9a868SElliott Hugheselse 3165*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166*d5c9a868SElliott Hughes/* end confdefs.h. */ 3167*d5c9a868SElliott Hughes 3168*d5c9a868SElliott Hughesint 3169*d5c9a868SElliott Hughesmain () 3170*d5c9a868SElliott Hughes{ 3171*d5c9a868SElliott Hughes#ifndef __GNUC__ 3172*d5c9a868SElliott Hughes choke me 3173*d5c9a868SElliott Hughes#endif 3174*d5c9a868SElliott Hughes 3175*d5c9a868SElliott Hughes ; 3176*d5c9a868SElliott Hughes return 0; 3177*d5c9a868SElliott Hughes} 3178*d5c9a868SElliott Hughes_ACEOF 3179*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 3180*d5c9a868SElliott Hughes ac_compiler_gnu=yes 3181*d5c9a868SElliott Hugheselse 3182*d5c9a868SElliott Hughes ac_compiler_gnu=no 3183*d5c9a868SElliott Hughesfi 3184*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3185*d5c9a868SElliott Hughesac_cv_c_compiler_gnu=$ac_compiler_gnu 3186*d5c9a868SElliott Hughes 3187*d5c9a868SElliott Hughesfi 3188*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3189*d5c9a868SElliott Hughes$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3190*d5c9a868SElliott Hughesif test $ac_compiler_gnu = yes; then 3191*d5c9a868SElliott Hughes GCC=yes 3192*d5c9a868SElliott Hugheselse 3193*d5c9a868SElliott Hughes GCC= 3194*d5c9a868SElliott Hughesfi 3195*d5c9a868SElliott Hughesac_test_CFLAGS=${CFLAGS+set} 3196*d5c9a868SElliott Hughesac_save_CFLAGS=$CFLAGS 3197*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3198*d5c9a868SElliott Hughes$as_echo_n "checking whether $CC accepts -g... " >&6; } 3199*d5c9a868SElliott Hughesif ${ac_cv_prog_cc_g+:} false; then : 3200*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3201*d5c9a868SElliott Hugheselse 3202*d5c9a868SElliott Hughes ac_save_c_werror_flag=$ac_c_werror_flag 3203*d5c9a868SElliott Hughes ac_c_werror_flag=yes 3204*d5c9a868SElliott Hughes ac_cv_prog_cc_g=no 3205*d5c9a868SElliott Hughes CFLAGS="-g" 3206*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3207*d5c9a868SElliott Hughes/* end confdefs.h. */ 3208*d5c9a868SElliott Hughes 3209*d5c9a868SElliott Hughesint 3210*d5c9a868SElliott Hughesmain () 3211*d5c9a868SElliott Hughes{ 3212*d5c9a868SElliott Hughes 3213*d5c9a868SElliott Hughes ; 3214*d5c9a868SElliott Hughes return 0; 3215*d5c9a868SElliott Hughes} 3216*d5c9a868SElliott Hughes_ACEOF 3217*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 3218*d5c9a868SElliott Hughes ac_cv_prog_cc_g=yes 3219*d5c9a868SElliott Hugheselse 3220*d5c9a868SElliott Hughes CFLAGS="" 3221*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3222*d5c9a868SElliott Hughes/* end confdefs.h. */ 3223*d5c9a868SElliott Hughes 3224*d5c9a868SElliott Hughesint 3225*d5c9a868SElliott Hughesmain () 3226*d5c9a868SElliott Hughes{ 3227*d5c9a868SElliott Hughes 3228*d5c9a868SElliott Hughes ; 3229*d5c9a868SElliott Hughes return 0; 3230*d5c9a868SElliott Hughes} 3231*d5c9a868SElliott Hughes_ACEOF 3232*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 3233*d5c9a868SElliott Hughes 3234*d5c9a868SElliott Hugheselse 3235*d5c9a868SElliott Hughes ac_c_werror_flag=$ac_save_c_werror_flag 3236*d5c9a868SElliott Hughes CFLAGS="-g" 3237*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238*d5c9a868SElliott Hughes/* end confdefs.h. */ 3239*d5c9a868SElliott Hughes 3240*d5c9a868SElliott Hughesint 3241*d5c9a868SElliott Hughesmain () 3242*d5c9a868SElliott Hughes{ 3243*d5c9a868SElliott Hughes 3244*d5c9a868SElliott Hughes ; 3245*d5c9a868SElliott Hughes return 0; 3246*d5c9a868SElliott Hughes} 3247*d5c9a868SElliott Hughes_ACEOF 3248*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 3249*d5c9a868SElliott Hughes ac_cv_prog_cc_g=yes 3250*d5c9a868SElliott Hughesfi 3251*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252*d5c9a868SElliott Hughesfi 3253*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3254*d5c9a868SElliott Hughesfi 3255*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3256*d5c9a868SElliott Hughes ac_c_werror_flag=$ac_save_c_werror_flag 3257*d5c9a868SElliott Hughesfi 3258*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3259*d5c9a868SElliott Hughes$as_echo "$ac_cv_prog_cc_g" >&6; } 3260*d5c9a868SElliott Hughesif test "$ac_test_CFLAGS" = set; then 3261*d5c9a868SElliott Hughes CFLAGS=$ac_save_CFLAGS 3262*d5c9a868SElliott Hugheselif test $ac_cv_prog_cc_g = yes; then 3263*d5c9a868SElliott Hughes if test "$GCC" = yes; then 3264*d5c9a868SElliott Hughes CFLAGS="-g -O2" 3265*d5c9a868SElliott Hughes else 3266*d5c9a868SElliott Hughes CFLAGS="-g" 3267*d5c9a868SElliott Hughes fi 3268*d5c9a868SElliott Hugheselse 3269*d5c9a868SElliott Hughes if test "$GCC" = yes; then 3270*d5c9a868SElliott Hughes CFLAGS="-O2" 3271*d5c9a868SElliott Hughes else 3272*d5c9a868SElliott Hughes CFLAGS= 3273*d5c9a868SElliott Hughes fi 3274*d5c9a868SElliott Hughesfi 3275*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3276*d5c9a868SElliott Hughes$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3277*d5c9a868SElliott Hughesif ${ac_cv_prog_cc_c89+:} false; then : 3278*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3279*d5c9a868SElliott Hugheselse 3280*d5c9a868SElliott Hughes ac_cv_prog_cc_c89=no 3281*d5c9a868SElliott Hughesac_save_CC=$CC 3282*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283*d5c9a868SElliott Hughes/* end confdefs.h. */ 3284*d5c9a868SElliott Hughes#include <stdarg.h> 3285*d5c9a868SElliott Hughes#include <stdio.h> 3286*d5c9a868SElliott Hughesstruct stat; 3287*d5c9a868SElliott Hughes/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3288*d5c9a868SElliott Hughesstruct buf { int x; }; 3289*d5c9a868SElliott HughesFILE * (*rcsopen) (struct buf *, struct stat *, int); 3290*d5c9a868SElliott Hughesstatic char *e (p, i) 3291*d5c9a868SElliott Hughes char **p; 3292*d5c9a868SElliott Hughes int i; 3293*d5c9a868SElliott Hughes{ 3294*d5c9a868SElliott Hughes return p[i]; 3295*d5c9a868SElliott Hughes} 3296*d5c9a868SElliott Hughesstatic char *f (char * (*g) (char **, int), char **p, ...) 3297*d5c9a868SElliott Hughes{ 3298*d5c9a868SElliott Hughes char *s; 3299*d5c9a868SElliott Hughes va_list v; 3300*d5c9a868SElliott Hughes va_start (v,p); 3301*d5c9a868SElliott Hughes s = g (p, va_arg (v,int)); 3302*d5c9a868SElliott Hughes va_end (v); 3303*d5c9a868SElliott Hughes return s; 3304*d5c9a868SElliott Hughes} 3305*d5c9a868SElliott Hughes 3306*d5c9a868SElliott Hughes/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3307*d5c9a868SElliott Hughes function prototypes and stuff, but not '\xHH' hex character constants. 3308*d5c9a868SElliott Hughes These don't provoke an error unfortunately, instead are silently treated 3309*d5c9a868SElliott Hughes as 'x'. The following induces an error, until -std is added to get 3310*d5c9a868SElliott Hughes proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3311*d5c9a868SElliott Hughes array size at least. It's necessary to write '\x00'==0 to get something 3312*d5c9a868SElliott Hughes that's true only with -std. */ 3313*d5c9a868SElliott Hughesint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3314*d5c9a868SElliott Hughes 3315*d5c9a868SElliott Hughes/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3316*d5c9a868SElliott Hughes inside strings and character constants. */ 3317*d5c9a868SElliott Hughes#define FOO(x) 'x' 3318*d5c9a868SElliott Hughesint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3319*d5c9a868SElliott Hughes 3320*d5c9a868SElliott Hughesint test (int i, double x); 3321*d5c9a868SElliott Hughesstruct s1 {int (*f) (int a);}; 3322*d5c9a868SElliott Hughesstruct s2 {int (*f) (double a);}; 3323*d5c9a868SElliott Hughesint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3324*d5c9a868SElliott Hughesint argc; 3325*d5c9a868SElliott Hugheschar **argv; 3326*d5c9a868SElliott Hughesint 3327*d5c9a868SElliott Hughesmain () 3328*d5c9a868SElliott Hughes{ 3329*d5c9a868SElliott Hughesreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3330*d5c9a868SElliott Hughes ; 3331*d5c9a868SElliott Hughes return 0; 3332*d5c9a868SElliott Hughes} 3333*d5c9a868SElliott Hughes_ACEOF 3334*d5c9a868SElliott Hughesfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3335*d5c9a868SElliott Hughes -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3336*d5c9a868SElliott Hughesdo 3337*d5c9a868SElliott Hughes CC="$ac_save_CC $ac_arg" 3338*d5c9a868SElliott Hughes if ac_fn_c_try_compile "$LINENO"; then : 3339*d5c9a868SElliott Hughes ac_cv_prog_cc_c89=$ac_arg 3340*d5c9a868SElliott Hughesfi 3341*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext 3342*d5c9a868SElliott Hughes test "x$ac_cv_prog_cc_c89" != "xno" && break 3343*d5c9a868SElliott Hughesdone 3344*d5c9a868SElliott Hughesrm -f conftest.$ac_ext 3345*d5c9a868SElliott HughesCC=$ac_save_CC 3346*d5c9a868SElliott Hughes 3347*d5c9a868SElliott Hughesfi 3348*d5c9a868SElliott Hughes# AC_CACHE_VAL 3349*d5c9a868SElliott Hughescase "x$ac_cv_prog_cc_c89" in 3350*d5c9a868SElliott Hughes x) 3351*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3352*d5c9a868SElliott Hughes$as_echo "none needed" >&6; } ;; 3353*d5c9a868SElliott Hughes xno) 3354*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3355*d5c9a868SElliott Hughes$as_echo "unsupported" >&6; } ;; 3356*d5c9a868SElliott Hughes *) 3357*d5c9a868SElliott Hughes CC="$CC $ac_cv_prog_cc_c89" 3358*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3359*d5c9a868SElliott Hughes$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3360*d5c9a868SElliott Hughesesac 3361*d5c9a868SElliott Hughesif test "x$ac_cv_prog_cc_c89" != xno; then : 3362*d5c9a868SElliott Hughes 3363*d5c9a868SElliott Hughesfi 3364*d5c9a868SElliott Hughes 3365*d5c9a868SElliott Hughesac_ext=c 3366*d5c9a868SElliott Hughesac_cpp='$CPP $CPPFLAGS' 3367*d5c9a868SElliott Hughesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3368*d5c9a868SElliott Hughesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3369*d5c9a868SElliott Hughesac_compiler_gnu=$ac_cv_c_compiler_gnu 3370*d5c9a868SElliott Hughes 3371*d5c9a868SElliott Hughes 3372*d5c9a868SElliott Hughesac_ext=c 3373*d5c9a868SElliott Hughesac_cpp='$CPP $CPPFLAGS' 3374*d5c9a868SElliott Hughesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3375*d5c9a868SElliott Hughesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3376*d5c9a868SElliott Hughesac_compiler_gnu=$ac_cv_c_compiler_gnu 3377*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3378*d5c9a868SElliott Hughes$as_echo_n "checking how to run the C preprocessor... " >&6; } 3379*d5c9a868SElliott Hughes# On Suns, sometimes $CPP names a directory. 3380*d5c9a868SElliott Hughesif test -n "$CPP" && test -d "$CPP"; then 3381*d5c9a868SElliott Hughes CPP= 3382*d5c9a868SElliott Hughesfi 3383*d5c9a868SElliott Hughesif test -z "$CPP"; then 3384*d5c9a868SElliott Hughes if ${ac_cv_prog_CPP+:} false; then : 3385*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3386*d5c9a868SElliott Hugheselse 3387*d5c9a868SElliott Hughes # Double quotes because CPP needs to be expanded 3388*d5c9a868SElliott Hughes for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3389*d5c9a868SElliott Hughes do 3390*d5c9a868SElliott Hughes ac_preproc_ok=false 3391*d5c9a868SElliott Hughesfor ac_c_preproc_warn_flag in '' yes 3392*d5c9a868SElliott Hughesdo 3393*d5c9a868SElliott Hughes # Use a header file that comes with gcc, so configuring glibc 3394*d5c9a868SElliott Hughes # with a fresh cross-compiler works. 3395*d5c9a868SElliott Hughes # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3396*d5c9a868SElliott Hughes # <limits.h> exists even on freestanding compilers. 3397*d5c9a868SElliott Hughes # On the NeXT, cc -E runs the code through the compiler's parser, 3398*d5c9a868SElliott Hughes # not just through cpp. "Syntax error" is here to catch this case. 3399*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400*d5c9a868SElliott Hughes/* end confdefs.h. */ 3401*d5c9a868SElliott Hughes#ifdef __STDC__ 3402*d5c9a868SElliott Hughes# include <limits.h> 3403*d5c9a868SElliott Hughes#else 3404*d5c9a868SElliott Hughes# include <assert.h> 3405*d5c9a868SElliott Hughes#endif 3406*d5c9a868SElliott Hughes Syntax error 3407*d5c9a868SElliott Hughes_ACEOF 3408*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 3409*d5c9a868SElliott Hughes 3410*d5c9a868SElliott Hugheselse 3411*d5c9a868SElliott Hughes # Broken: fails on valid input. 3412*d5c9a868SElliott Hughescontinue 3413*d5c9a868SElliott Hughesfi 3414*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 3415*d5c9a868SElliott Hughes 3416*d5c9a868SElliott Hughes # OK, works on sane cases. Now check whether nonexistent headers 3417*d5c9a868SElliott Hughes # can be detected and how. 3418*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419*d5c9a868SElliott Hughes/* end confdefs.h. */ 3420*d5c9a868SElliott Hughes#include <ac_nonexistent.h> 3421*d5c9a868SElliott Hughes_ACEOF 3422*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 3423*d5c9a868SElliott Hughes # Broken: success on invalid input. 3424*d5c9a868SElliott Hughescontinue 3425*d5c9a868SElliott Hugheselse 3426*d5c9a868SElliott Hughes # Passes both tests. 3427*d5c9a868SElliott Hughesac_preproc_ok=: 3428*d5c9a868SElliott Hughesbreak 3429*d5c9a868SElliott Hughesfi 3430*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 3431*d5c9a868SElliott Hughes 3432*d5c9a868SElliott Hughesdone 3433*d5c9a868SElliott Hughes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3434*d5c9a868SElliott Hughesrm -f conftest.i conftest.err conftest.$ac_ext 3435*d5c9a868SElliott Hughesif $ac_preproc_ok; then : 3436*d5c9a868SElliott Hughes break 3437*d5c9a868SElliott Hughesfi 3438*d5c9a868SElliott Hughes 3439*d5c9a868SElliott Hughes done 3440*d5c9a868SElliott Hughes ac_cv_prog_CPP=$CPP 3441*d5c9a868SElliott Hughes 3442*d5c9a868SElliott Hughesfi 3443*d5c9a868SElliott Hughes CPP=$ac_cv_prog_CPP 3444*d5c9a868SElliott Hugheselse 3445*d5c9a868SElliott Hughes ac_cv_prog_CPP=$CPP 3446*d5c9a868SElliott Hughesfi 3447*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3448*d5c9a868SElliott Hughes$as_echo "$CPP" >&6; } 3449*d5c9a868SElliott Hughesac_preproc_ok=false 3450*d5c9a868SElliott Hughesfor ac_c_preproc_warn_flag in '' yes 3451*d5c9a868SElliott Hughesdo 3452*d5c9a868SElliott Hughes # Use a header file that comes with gcc, so configuring glibc 3453*d5c9a868SElliott Hughes # with a fresh cross-compiler works. 3454*d5c9a868SElliott Hughes # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3455*d5c9a868SElliott Hughes # <limits.h> exists even on freestanding compilers. 3456*d5c9a868SElliott Hughes # On the NeXT, cc -E runs the code through the compiler's parser, 3457*d5c9a868SElliott Hughes # not just through cpp. "Syntax error" is here to catch this case. 3458*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459*d5c9a868SElliott Hughes/* end confdefs.h. */ 3460*d5c9a868SElliott Hughes#ifdef __STDC__ 3461*d5c9a868SElliott Hughes# include <limits.h> 3462*d5c9a868SElliott Hughes#else 3463*d5c9a868SElliott Hughes# include <assert.h> 3464*d5c9a868SElliott Hughes#endif 3465*d5c9a868SElliott Hughes Syntax error 3466*d5c9a868SElliott Hughes_ACEOF 3467*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 3468*d5c9a868SElliott Hughes 3469*d5c9a868SElliott Hugheselse 3470*d5c9a868SElliott Hughes # Broken: fails on valid input. 3471*d5c9a868SElliott Hughescontinue 3472*d5c9a868SElliott Hughesfi 3473*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 3474*d5c9a868SElliott Hughes 3475*d5c9a868SElliott Hughes # OK, works on sane cases. Now check whether nonexistent headers 3476*d5c9a868SElliott Hughes # can be detected and how. 3477*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478*d5c9a868SElliott Hughes/* end confdefs.h. */ 3479*d5c9a868SElliott Hughes#include <ac_nonexistent.h> 3480*d5c9a868SElliott Hughes_ACEOF 3481*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 3482*d5c9a868SElliott Hughes # Broken: success on invalid input. 3483*d5c9a868SElliott Hughescontinue 3484*d5c9a868SElliott Hugheselse 3485*d5c9a868SElliott Hughes # Passes both tests. 3486*d5c9a868SElliott Hughesac_preproc_ok=: 3487*d5c9a868SElliott Hughesbreak 3488*d5c9a868SElliott Hughesfi 3489*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 3490*d5c9a868SElliott Hughes 3491*d5c9a868SElliott Hughesdone 3492*d5c9a868SElliott Hughes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3493*d5c9a868SElliott Hughesrm -f conftest.i conftest.err conftest.$ac_ext 3494*d5c9a868SElliott Hughesif $ac_preproc_ok; then : 3495*d5c9a868SElliott Hughes 3496*d5c9a868SElliott Hugheselse 3497*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499*d5c9a868SElliott Hughesas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3500*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 3501*d5c9a868SElliott Hughesfi 3502*d5c9a868SElliott Hughes 3503*d5c9a868SElliott Hughesac_ext=c 3504*d5c9a868SElliott Hughesac_cpp='$CPP $CPPFLAGS' 3505*d5c9a868SElliott Hughesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3506*d5c9a868SElliott Hughesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3507*d5c9a868SElliott Hughesac_compiler_gnu=$ac_cv_c_compiler_gnu 3508*d5c9a868SElliott Hughes 3509*d5c9a868SElliott Hughes 3510*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3511*d5c9a868SElliott Hughes$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3512*d5c9a868SElliott Hughesif ${ac_cv_path_GREP+:} false; then : 3513*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3514*d5c9a868SElliott Hugheselse 3515*d5c9a868SElliott Hughes if test -z "$GREP"; then 3516*d5c9a868SElliott Hughes ac_path_GREP_found=false 3517*d5c9a868SElliott Hughes # Loop through the user's path and test for each of PROGNAME-LIST 3518*d5c9a868SElliott Hughes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519*d5c9a868SElliott Hughesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3520*d5c9a868SElliott Hughesdo 3521*d5c9a868SElliott Hughes IFS=$as_save_IFS 3522*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 3523*d5c9a868SElliott Hughes for ac_prog in grep ggrep; do 3524*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 3525*d5c9a868SElliott Hughes ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3526*d5c9a868SElliott Hughes as_fn_executable_p "$ac_path_GREP" || continue 3527*d5c9a868SElliott Hughes# Check for GNU ac_path_GREP and select it if it is found. 3528*d5c9a868SElliott Hughes # Check for GNU $ac_path_GREP 3529*d5c9a868SElliott Hughescase `"$ac_path_GREP" --version 2>&1` in 3530*d5c9a868SElliott Hughes*GNU*) 3531*d5c9a868SElliott Hughes ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3532*d5c9a868SElliott Hughes*) 3533*d5c9a868SElliott Hughes ac_count=0 3534*d5c9a868SElliott Hughes $as_echo_n 0123456789 >"conftest.in" 3535*d5c9a868SElliott Hughes while : 3536*d5c9a868SElliott Hughes do 3537*d5c9a868SElliott Hughes cat "conftest.in" "conftest.in" >"conftest.tmp" 3538*d5c9a868SElliott Hughes mv "conftest.tmp" "conftest.in" 3539*d5c9a868SElliott Hughes cp "conftest.in" "conftest.nl" 3540*d5c9a868SElliott Hughes $as_echo 'GREP' >> "conftest.nl" 3541*d5c9a868SElliott Hughes "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3542*d5c9a868SElliott Hughes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3543*d5c9a868SElliott Hughes as_fn_arith $ac_count + 1 && ac_count=$as_val 3544*d5c9a868SElliott Hughes if test $ac_count -gt ${ac_path_GREP_max-0}; then 3545*d5c9a868SElliott Hughes # Best one so far, save it but keep looking for a better one 3546*d5c9a868SElliott Hughes ac_cv_path_GREP="$ac_path_GREP" 3547*d5c9a868SElliott Hughes ac_path_GREP_max=$ac_count 3548*d5c9a868SElliott Hughes fi 3549*d5c9a868SElliott Hughes # 10*(2^10) chars as input seems more than enough 3550*d5c9a868SElliott Hughes test $ac_count -gt 10 && break 3551*d5c9a868SElliott Hughes done 3552*d5c9a868SElliott Hughes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3553*d5c9a868SElliott Hughesesac 3554*d5c9a868SElliott Hughes 3555*d5c9a868SElliott Hughes $ac_path_GREP_found && break 3 3556*d5c9a868SElliott Hughes done 3557*d5c9a868SElliott Hughes done 3558*d5c9a868SElliott Hughes done 3559*d5c9a868SElliott HughesIFS=$as_save_IFS 3560*d5c9a868SElliott Hughes if test -z "$ac_cv_path_GREP"; then 3561*d5c9a868SElliott Hughes as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3562*d5c9a868SElliott Hughes fi 3563*d5c9a868SElliott Hugheselse 3564*d5c9a868SElliott Hughes ac_cv_path_GREP=$GREP 3565*d5c9a868SElliott Hughesfi 3566*d5c9a868SElliott Hughes 3567*d5c9a868SElliott Hughesfi 3568*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3569*d5c9a868SElliott Hughes$as_echo "$ac_cv_path_GREP" >&6; } 3570*d5c9a868SElliott Hughes GREP="$ac_cv_path_GREP" 3571*d5c9a868SElliott Hughes 3572*d5c9a868SElliott Hughes 3573*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3574*d5c9a868SElliott Hughes$as_echo_n "checking for egrep... " >&6; } 3575*d5c9a868SElliott Hughesif ${ac_cv_path_EGREP+:} false; then : 3576*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3577*d5c9a868SElliott Hugheselse 3578*d5c9a868SElliott Hughes if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3579*d5c9a868SElliott Hughes then ac_cv_path_EGREP="$GREP -E" 3580*d5c9a868SElliott Hughes else 3581*d5c9a868SElliott Hughes if test -z "$EGREP"; then 3582*d5c9a868SElliott Hughes ac_path_EGREP_found=false 3583*d5c9a868SElliott Hughes # Loop through the user's path and test for each of PROGNAME-LIST 3584*d5c9a868SElliott Hughes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3585*d5c9a868SElliott Hughesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3586*d5c9a868SElliott Hughesdo 3587*d5c9a868SElliott Hughes IFS=$as_save_IFS 3588*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 3589*d5c9a868SElliott Hughes for ac_prog in egrep; do 3590*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 3591*d5c9a868SElliott Hughes ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3592*d5c9a868SElliott Hughes as_fn_executable_p "$ac_path_EGREP" || continue 3593*d5c9a868SElliott Hughes# Check for GNU ac_path_EGREP and select it if it is found. 3594*d5c9a868SElliott Hughes # Check for GNU $ac_path_EGREP 3595*d5c9a868SElliott Hughescase `"$ac_path_EGREP" --version 2>&1` in 3596*d5c9a868SElliott Hughes*GNU*) 3597*d5c9a868SElliott Hughes ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3598*d5c9a868SElliott Hughes*) 3599*d5c9a868SElliott Hughes ac_count=0 3600*d5c9a868SElliott Hughes $as_echo_n 0123456789 >"conftest.in" 3601*d5c9a868SElliott Hughes while : 3602*d5c9a868SElliott Hughes do 3603*d5c9a868SElliott Hughes cat "conftest.in" "conftest.in" >"conftest.tmp" 3604*d5c9a868SElliott Hughes mv "conftest.tmp" "conftest.in" 3605*d5c9a868SElliott Hughes cp "conftest.in" "conftest.nl" 3606*d5c9a868SElliott Hughes $as_echo 'EGREP' >> "conftest.nl" 3607*d5c9a868SElliott Hughes "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3608*d5c9a868SElliott Hughes diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3609*d5c9a868SElliott Hughes as_fn_arith $ac_count + 1 && ac_count=$as_val 3610*d5c9a868SElliott Hughes if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3611*d5c9a868SElliott Hughes # Best one so far, save it but keep looking for a better one 3612*d5c9a868SElliott Hughes ac_cv_path_EGREP="$ac_path_EGREP" 3613*d5c9a868SElliott Hughes ac_path_EGREP_max=$ac_count 3614*d5c9a868SElliott Hughes fi 3615*d5c9a868SElliott Hughes # 10*(2^10) chars as input seems more than enough 3616*d5c9a868SElliott Hughes test $ac_count -gt 10 && break 3617*d5c9a868SElliott Hughes done 3618*d5c9a868SElliott Hughes rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3619*d5c9a868SElliott Hughesesac 3620*d5c9a868SElliott Hughes 3621*d5c9a868SElliott Hughes $ac_path_EGREP_found && break 3 3622*d5c9a868SElliott Hughes done 3623*d5c9a868SElliott Hughes done 3624*d5c9a868SElliott Hughes done 3625*d5c9a868SElliott HughesIFS=$as_save_IFS 3626*d5c9a868SElliott Hughes if test -z "$ac_cv_path_EGREP"; then 3627*d5c9a868SElliott Hughes as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3628*d5c9a868SElliott Hughes fi 3629*d5c9a868SElliott Hugheselse 3630*d5c9a868SElliott Hughes ac_cv_path_EGREP=$EGREP 3631*d5c9a868SElliott Hughesfi 3632*d5c9a868SElliott Hughes 3633*d5c9a868SElliott Hughes fi 3634*d5c9a868SElliott Hughesfi 3635*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3636*d5c9a868SElliott Hughes$as_echo "$ac_cv_path_EGREP" >&6; } 3637*d5c9a868SElliott Hughes EGREP="$ac_cv_path_EGREP" 3638*d5c9a868SElliott Hughes 3639*d5c9a868SElliott Hughes 3640*d5c9a868SElliott Hughesif test $ac_cv_c_compiler_gnu = yes; then 3641*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 3642*d5c9a868SElliott Hughes$as_echo_n "checking whether $CC needs -traditional... " >&6; } 3643*d5c9a868SElliott Hughesif ${ac_cv_prog_gcc_traditional+:} false; then : 3644*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3645*d5c9a868SElliott Hugheselse 3646*d5c9a868SElliott Hughes ac_pattern="Autoconf.*'x'" 3647*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648*d5c9a868SElliott Hughes/* end confdefs.h. */ 3649*d5c9a868SElliott Hughes#include <sgtty.h> 3650*d5c9a868SElliott HughesAutoconf TIOCGETP 3651*d5c9a868SElliott Hughes_ACEOF 3652*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3653*d5c9a868SElliott Hughes $EGREP "$ac_pattern" >/dev/null 2>&1; then : 3654*d5c9a868SElliott Hughes ac_cv_prog_gcc_traditional=yes 3655*d5c9a868SElliott Hugheselse 3656*d5c9a868SElliott Hughes ac_cv_prog_gcc_traditional=no 3657*d5c9a868SElliott Hughesfi 3658*d5c9a868SElliott Hughesrm -f conftest* 3659*d5c9a868SElliott Hughes 3660*d5c9a868SElliott Hughes 3661*d5c9a868SElliott Hughes if test $ac_cv_prog_gcc_traditional = no; then 3662*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663*d5c9a868SElliott Hughes/* end confdefs.h. */ 3664*d5c9a868SElliott Hughes#include <termio.h> 3665*d5c9a868SElliott HughesAutoconf TCGETA 3666*d5c9a868SElliott Hughes_ACEOF 3667*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3668*d5c9a868SElliott Hughes $EGREP "$ac_pattern" >/dev/null 2>&1; then : 3669*d5c9a868SElliott Hughes ac_cv_prog_gcc_traditional=yes 3670*d5c9a868SElliott Hughesfi 3671*d5c9a868SElliott Hughesrm -f conftest* 3672*d5c9a868SElliott Hughes 3673*d5c9a868SElliott Hughes fi 3674*d5c9a868SElliott Hughesfi 3675*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 3676*d5c9a868SElliott Hughes$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 3677*d5c9a868SElliott Hughes if test $ac_cv_prog_gcc_traditional = yes; then 3678*d5c9a868SElliott Hughes CC="$CC -traditional" 3679*d5c9a868SElliott Hughes fi 3680*d5c9a868SElliott Hughesfi 3681*d5c9a868SElliott Hughes 3682*d5c9a868SElliott Hughesac_aux_dir= 3683*d5c9a868SElliott Hughesfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3684*d5c9a868SElliott Hughes if test -f "$ac_dir/install-sh"; then 3685*d5c9a868SElliott Hughes ac_aux_dir=$ac_dir 3686*d5c9a868SElliott Hughes ac_install_sh="$ac_aux_dir/install-sh -c" 3687*d5c9a868SElliott Hughes break 3688*d5c9a868SElliott Hughes elif test -f "$ac_dir/install.sh"; then 3689*d5c9a868SElliott Hughes ac_aux_dir=$ac_dir 3690*d5c9a868SElliott Hughes ac_install_sh="$ac_aux_dir/install.sh -c" 3691*d5c9a868SElliott Hughes break 3692*d5c9a868SElliott Hughes elif test -f "$ac_dir/shtool"; then 3693*d5c9a868SElliott Hughes ac_aux_dir=$ac_dir 3694*d5c9a868SElliott Hughes ac_install_sh="$ac_aux_dir/shtool install -c" 3695*d5c9a868SElliott Hughes break 3696*d5c9a868SElliott Hughes fi 3697*d5c9a868SElliott Hughesdone 3698*d5c9a868SElliott Hughesif test -z "$ac_aux_dir"; then 3699*d5c9a868SElliott Hughes as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3700*d5c9a868SElliott Hughesfi 3701*d5c9a868SElliott Hughes 3702*d5c9a868SElliott Hughes# These three variables are undocumented and unsupported, 3703*d5c9a868SElliott Hughes# and are intended to be withdrawn in a future Autoconf release. 3704*d5c9a868SElliott Hughes# They can cause serious problems if a builder's source tree is in a directory 3705*d5c9a868SElliott Hughes# whose full name contains unusual characters. 3706*d5c9a868SElliott Hughesac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3707*d5c9a868SElliott Hughesac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3708*d5c9a868SElliott Hughesac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3709*d5c9a868SElliott Hughes 3710*d5c9a868SElliott Hughes 3711*d5c9a868SElliott Hughes# Find a good install program. We prefer a C program (faster), 3712*d5c9a868SElliott Hughes# so one script is as good as another. But avoid the broken or 3713*d5c9a868SElliott Hughes# incompatible versions: 3714*d5c9a868SElliott Hughes# SysV /etc/install, /usr/sbin/install 3715*d5c9a868SElliott Hughes# SunOS /usr/etc/install 3716*d5c9a868SElliott Hughes# IRIX /sbin/install 3717*d5c9a868SElliott Hughes# AIX /bin/install 3718*d5c9a868SElliott Hughes# AmigaOS /C/install, which installs bootblocks on floppy discs 3719*d5c9a868SElliott Hughes# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3720*d5c9a868SElliott Hughes# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3721*d5c9a868SElliott Hughes# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3722*d5c9a868SElliott Hughes# OS/2's system install, which has a completely different semantic 3723*d5c9a868SElliott Hughes# ./install, which can be erroneously created by make from ./install.sh. 3724*d5c9a868SElliott Hughes# Reject install programs that cannot install multiple files. 3725*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3726*d5c9a868SElliott Hughes$as_echo_n "checking for a BSD-compatible install... " >&6; } 3727*d5c9a868SElliott Hughesif test -z "$INSTALL"; then 3728*d5c9a868SElliott Hughesif ${ac_cv_path_install+:} false; then : 3729*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3730*d5c9a868SElliott Hugheselse 3731*d5c9a868SElliott Hughes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732*d5c9a868SElliott Hughesfor as_dir in $PATH 3733*d5c9a868SElliott Hughesdo 3734*d5c9a868SElliott Hughes IFS=$as_save_IFS 3735*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 3736*d5c9a868SElliott Hughes # Account for people who put trailing slashes in PATH elements. 3737*d5c9a868SElliott Hughescase $as_dir/ in #(( 3738*d5c9a868SElliott Hughes ./ | .// | /[cC]/* | \ 3739*d5c9a868SElliott Hughes /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3740*d5c9a868SElliott Hughes ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3741*d5c9a868SElliott Hughes /usr/ucb/* ) ;; 3742*d5c9a868SElliott Hughes *) 3743*d5c9a868SElliott Hughes # OSF1 and SCO ODT 3.0 have their own names for install. 3744*d5c9a868SElliott Hughes # Don't use installbsd from OSF since it installs stuff as root 3745*d5c9a868SElliott Hughes # by default. 3746*d5c9a868SElliott Hughes for ac_prog in ginstall scoinst install; do 3747*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 3748*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3749*d5c9a868SElliott Hughes if test $ac_prog = install && 3750*d5c9a868SElliott Hughes grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3751*d5c9a868SElliott Hughes # AIX install. It has an incompatible calling convention. 3752*d5c9a868SElliott Hughes : 3753*d5c9a868SElliott Hughes elif test $ac_prog = install && 3754*d5c9a868SElliott Hughes grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3755*d5c9a868SElliott Hughes # program-specific install script used by HP pwplus--don't use. 3756*d5c9a868SElliott Hughes : 3757*d5c9a868SElliott Hughes else 3758*d5c9a868SElliott Hughes rm -rf conftest.one conftest.two conftest.dir 3759*d5c9a868SElliott Hughes echo one > conftest.one 3760*d5c9a868SElliott Hughes echo two > conftest.two 3761*d5c9a868SElliott Hughes mkdir conftest.dir 3762*d5c9a868SElliott Hughes if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3763*d5c9a868SElliott Hughes test -s conftest.one && test -s conftest.two && 3764*d5c9a868SElliott Hughes test -s conftest.dir/conftest.one && 3765*d5c9a868SElliott Hughes test -s conftest.dir/conftest.two 3766*d5c9a868SElliott Hughes then 3767*d5c9a868SElliott Hughes ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3768*d5c9a868SElliott Hughes break 3 3769*d5c9a868SElliott Hughes fi 3770*d5c9a868SElliott Hughes fi 3771*d5c9a868SElliott Hughes fi 3772*d5c9a868SElliott Hughes done 3773*d5c9a868SElliott Hughes done 3774*d5c9a868SElliott Hughes ;; 3775*d5c9a868SElliott Hughesesac 3776*d5c9a868SElliott Hughes 3777*d5c9a868SElliott Hughes done 3778*d5c9a868SElliott HughesIFS=$as_save_IFS 3779*d5c9a868SElliott Hughes 3780*d5c9a868SElliott Hughesrm -rf conftest.one conftest.two conftest.dir 3781*d5c9a868SElliott Hughes 3782*d5c9a868SElliott Hughesfi 3783*d5c9a868SElliott Hughes if test "${ac_cv_path_install+set}" = set; then 3784*d5c9a868SElliott Hughes INSTALL=$ac_cv_path_install 3785*d5c9a868SElliott Hughes else 3786*d5c9a868SElliott Hughes # As a last resort, use the slow shell script. Don't cache a 3787*d5c9a868SElliott Hughes # value for INSTALL within a source directory, because that will 3788*d5c9a868SElliott Hughes # break other packages using the cache if that directory is 3789*d5c9a868SElliott Hughes # removed, or if the value is a relative name. 3790*d5c9a868SElliott Hughes INSTALL=$ac_install_sh 3791*d5c9a868SElliott Hughes fi 3792*d5c9a868SElliott Hughesfi 3793*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3794*d5c9a868SElliott Hughes$as_echo "$INSTALL" >&6; } 3795*d5c9a868SElliott Hughes 3796*d5c9a868SElliott Hughes# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3797*d5c9a868SElliott Hughes# It thinks the first close brace ends the variable substitution. 3798*d5c9a868SElliott Hughestest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3799*d5c9a868SElliott Hughes 3800*d5c9a868SElliott Hughestest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3801*d5c9a868SElliott Hughes 3802*d5c9a868SElliott Hughestest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3803*d5c9a868SElliott Hughes 3804*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3805*d5c9a868SElliott Hughes$as_echo_n "checking whether ln -s works... " >&6; } 3806*d5c9a868SElliott HughesLN_S=$as_ln_s 3807*d5c9a868SElliott Hughesif test "$LN_S" = "ln -s"; then 3808*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3809*d5c9a868SElliott Hughes$as_echo "yes" >&6; } 3810*d5c9a868SElliott Hugheselse 3811*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3812*d5c9a868SElliott Hughes$as_echo "no, using $LN_S" >&6; } 3813*d5c9a868SElliott Hughesfi 3814*d5c9a868SElliott Hughes 3815*d5c9a868SElliott Hughes 3816*d5c9a868SElliott Hughes# Extract the first word of "install-info", so it can be a program name with args. 3817*d5c9a868SElliott Hughesset dummy install-info; ac_word=$2 3818*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3819*d5c9a868SElliott Hughes$as_echo_n "checking for $ac_word... " >&6; } 3820*d5c9a868SElliott Hughesif ${ac_cv_path_INSTALL_INFO+:} false; then : 3821*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3822*d5c9a868SElliott Hugheselse 3823*d5c9a868SElliott Hughes case $INSTALL_INFO in 3824*d5c9a868SElliott Hughes [\\/]* | ?:[\\/]*) 3825*d5c9a868SElliott Hughes ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 3826*d5c9a868SElliott Hughes ;; 3827*d5c9a868SElliott Hughes *) 3828*d5c9a868SElliott Hughes as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829*d5c9a868SElliott Hughesfor as_dir in $PATH 3830*d5c9a868SElliott Hughesdo 3831*d5c9a868SElliott Hughes IFS=$as_save_IFS 3832*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 3833*d5c9a868SElliott Hughes for ac_exec_ext in '' $ac_executable_extensions; do 3834*d5c9a868SElliott Hughes if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3835*d5c9a868SElliott Hughes ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 3836*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3837*d5c9a868SElliott Hughes break 2 3838*d5c9a868SElliott Hughes fi 3839*d5c9a868SElliott Hughesdone 3840*d5c9a868SElliott Hughes done 3841*d5c9a868SElliott HughesIFS=$as_save_IFS 3842*d5c9a868SElliott Hughes 3843*d5c9a868SElliott Hughes test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="""" 3844*d5c9a868SElliott Hughes ;; 3845*d5c9a868SElliott Hughesesac 3846*d5c9a868SElliott Hughesfi 3847*d5c9a868SElliott HughesINSTALL_INFO=$ac_cv_path_INSTALL_INFO 3848*d5c9a868SElliott Hughesif test -n "$INSTALL_INFO"; then 3849*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 3850*d5c9a868SElliott Hughes$as_echo "$INSTALL_INFO" >&6; } 3851*d5c9a868SElliott Hugheselse 3852*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3853*d5c9a868SElliott Hughes$as_echo "no" >&6; } 3854*d5c9a868SElliott Hughesfi 3855*d5c9a868SElliott Hughes 3856*d5c9a868SElliott Hughes 3857*d5c9a868SElliott Hughes 3858*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3859*d5c9a868SElliott Hughes$as_echo_n "checking for ANSI C header files... " >&6; } 3860*d5c9a868SElliott Hughesif ${ac_cv_header_stdc+:} false; then : 3861*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 3862*d5c9a868SElliott Hugheselse 3863*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864*d5c9a868SElliott Hughes/* end confdefs.h. */ 3865*d5c9a868SElliott Hughes#include <stdlib.h> 3866*d5c9a868SElliott Hughes#include <stdarg.h> 3867*d5c9a868SElliott Hughes#include <string.h> 3868*d5c9a868SElliott Hughes#include <float.h> 3869*d5c9a868SElliott Hughes 3870*d5c9a868SElliott Hughesint 3871*d5c9a868SElliott Hughesmain () 3872*d5c9a868SElliott Hughes{ 3873*d5c9a868SElliott Hughes 3874*d5c9a868SElliott Hughes ; 3875*d5c9a868SElliott Hughes return 0; 3876*d5c9a868SElliott Hughes} 3877*d5c9a868SElliott Hughes_ACEOF 3878*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 3879*d5c9a868SElliott Hughes ac_cv_header_stdc=yes 3880*d5c9a868SElliott Hugheselse 3881*d5c9a868SElliott Hughes ac_cv_header_stdc=no 3882*d5c9a868SElliott Hughesfi 3883*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3884*d5c9a868SElliott Hughes 3885*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 3886*d5c9a868SElliott Hughes # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3887*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888*d5c9a868SElliott Hughes/* end confdefs.h. */ 3889*d5c9a868SElliott Hughes#include <string.h> 3890*d5c9a868SElliott Hughes 3891*d5c9a868SElliott Hughes_ACEOF 3892*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3893*d5c9a868SElliott Hughes $EGREP "memchr" >/dev/null 2>&1; then : 3894*d5c9a868SElliott Hughes 3895*d5c9a868SElliott Hugheselse 3896*d5c9a868SElliott Hughes ac_cv_header_stdc=no 3897*d5c9a868SElliott Hughesfi 3898*d5c9a868SElliott Hughesrm -f conftest* 3899*d5c9a868SElliott Hughes 3900*d5c9a868SElliott Hughesfi 3901*d5c9a868SElliott Hughes 3902*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 3903*d5c9a868SElliott Hughes # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3904*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905*d5c9a868SElliott Hughes/* end confdefs.h. */ 3906*d5c9a868SElliott Hughes#include <stdlib.h> 3907*d5c9a868SElliott Hughes 3908*d5c9a868SElliott Hughes_ACEOF 3909*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3910*d5c9a868SElliott Hughes $EGREP "free" >/dev/null 2>&1; then : 3911*d5c9a868SElliott Hughes 3912*d5c9a868SElliott Hugheselse 3913*d5c9a868SElliott Hughes ac_cv_header_stdc=no 3914*d5c9a868SElliott Hughesfi 3915*d5c9a868SElliott Hughesrm -f conftest* 3916*d5c9a868SElliott Hughes 3917*d5c9a868SElliott Hughesfi 3918*d5c9a868SElliott Hughes 3919*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 3920*d5c9a868SElliott Hughes # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3921*d5c9a868SElliott Hughes if test "$cross_compiling" = yes; then : 3922*d5c9a868SElliott Hughes : 3923*d5c9a868SElliott Hugheselse 3924*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3925*d5c9a868SElliott Hughes/* end confdefs.h. */ 3926*d5c9a868SElliott Hughes#include <ctype.h> 3927*d5c9a868SElliott Hughes#include <stdlib.h> 3928*d5c9a868SElliott Hughes#if ((' ' & 0x0FF) == 0x020) 3929*d5c9a868SElliott Hughes# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3930*d5c9a868SElliott Hughes# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3931*d5c9a868SElliott Hughes#else 3932*d5c9a868SElliott Hughes# define ISLOWER(c) \ 3933*d5c9a868SElliott Hughes (('a' <= (c) && (c) <= 'i') \ 3934*d5c9a868SElliott Hughes || ('j' <= (c) && (c) <= 'r') \ 3935*d5c9a868SElliott Hughes || ('s' <= (c) && (c) <= 'z')) 3936*d5c9a868SElliott Hughes# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3937*d5c9a868SElliott Hughes#endif 3938*d5c9a868SElliott Hughes 3939*d5c9a868SElliott Hughes#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3940*d5c9a868SElliott Hughesint 3941*d5c9a868SElliott Hughesmain () 3942*d5c9a868SElliott Hughes{ 3943*d5c9a868SElliott Hughes int i; 3944*d5c9a868SElliott Hughes for (i = 0; i < 256; i++) 3945*d5c9a868SElliott Hughes if (XOR (islower (i), ISLOWER (i)) 3946*d5c9a868SElliott Hughes || toupper (i) != TOUPPER (i)) 3947*d5c9a868SElliott Hughes return 2; 3948*d5c9a868SElliott Hughes return 0; 3949*d5c9a868SElliott Hughes} 3950*d5c9a868SElliott Hughes_ACEOF 3951*d5c9a868SElliott Hughesif ac_fn_c_try_run "$LINENO"; then : 3952*d5c9a868SElliott Hughes 3953*d5c9a868SElliott Hugheselse 3954*d5c9a868SElliott Hughes ac_cv_header_stdc=no 3955*d5c9a868SElliott Hughesfi 3956*d5c9a868SElliott Hughesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3957*d5c9a868SElliott Hughes conftest.$ac_objext conftest.beam conftest.$ac_ext 3958*d5c9a868SElliott Hughesfi 3959*d5c9a868SElliott Hughes 3960*d5c9a868SElliott Hughesfi 3961*d5c9a868SElliott Hughesfi 3962*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3963*d5c9a868SElliott Hughes$as_echo "$ac_cv_header_stdc" >&6; } 3964*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 3965*d5c9a868SElliott Hughes 3966*d5c9a868SElliott Hughes$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3967*d5c9a868SElliott Hughes 3968*d5c9a868SElliott Hughesfi 3969*d5c9a868SElliott Hughes 3970*d5c9a868SElliott Hughes# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3971*d5c9a868SElliott Hughesfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3972*d5c9a868SElliott Hughes inttypes.h stdint.h unistd.h 3973*d5c9a868SElliott Hughesdo : 3974*d5c9a868SElliott Hughes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3975*d5c9a868SElliott Hughesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3976*d5c9a868SElliott Hughes" 3977*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3978*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 3979*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3980*d5c9a868SElliott Hughes_ACEOF 3981*d5c9a868SElliott Hughes 3982*d5c9a868SElliott Hughesfi 3983*d5c9a868SElliott Hughes 3984*d5c9a868SElliott Hughesdone 3985*d5c9a868SElliott Hughes 3986*d5c9a868SElliott Hughes 3987*d5c9a868SElliott Hughes 3988*d5c9a868SElliott Hughes ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3989*d5c9a868SElliott Hughesif test "x$ac_cv_header_minix_config_h" = xyes; then : 3990*d5c9a868SElliott Hughes MINIX=yes 3991*d5c9a868SElliott Hugheselse 3992*d5c9a868SElliott Hughes MINIX= 3993*d5c9a868SElliott Hughesfi 3994*d5c9a868SElliott Hughes 3995*d5c9a868SElliott Hughes 3996*d5c9a868SElliott Hughes if test "$MINIX" = yes; then 3997*d5c9a868SElliott Hughes 3998*d5c9a868SElliott Hughes$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3999*d5c9a868SElliott Hughes 4000*d5c9a868SElliott Hughes 4001*d5c9a868SElliott Hughes$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4002*d5c9a868SElliott Hughes 4003*d5c9a868SElliott Hughes 4004*d5c9a868SElliott Hughes$as_echo "#define _MINIX 1" >>confdefs.h 4005*d5c9a868SElliott Hughes 4006*d5c9a868SElliott Hughes fi 4007*d5c9a868SElliott Hughes 4008*d5c9a868SElliott Hughes 4009*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4010*d5c9a868SElliott Hughes$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4011*d5c9a868SElliott Hughesif ${ac_cv_safe_to_define___extensions__+:} false; then : 4012*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4013*d5c9a868SElliott Hugheselse 4014*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015*d5c9a868SElliott Hughes/* end confdefs.h. */ 4016*d5c9a868SElliott Hughes 4017*d5c9a868SElliott Hughes# define __EXTENSIONS__ 1 4018*d5c9a868SElliott Hughes $ac_includes_default 4019*d5c9a868SElliott Hughesint 4020*d5c9a868SElliott Hughesmain () 4021*d5c9a868SElliott Hughes{ 4022*d5c9a868SElliott Hughes 4023*d5c9a868SElliott Hughes ; 4024*d5c9a868SElliott Hughes return 0; 4025*d5c9a868SElliott Hughes} 4026*d5c9a868SElliott Hughes_ACEOF 4027*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4028*d5c9a868SElliott Hughes ac_cv_safe_to_define___extensions__=yes 4029*d5c9a868SElliott Hugheselse 4030*d5c9a868SElliott Hughes ac_cv_safe_to_define___extensions__=no 4031*d5c9a868SElliott Hughesfi 4032*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4033*d5c9a868SElliott Hughesfi 4034*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4035*d5c9a868SElliott Hughes$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4036*d5c9a868SElliott Hughes test $ac_cv_safe_to_define___extensions__ = yes && 4037*d5c9a868SElliott Hughes $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4038*d5c9a868SElliott Hughes 4039*d5c9a868SElliott Hughes $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4040*d5c9a868SElliott Hughes 4041*d5c9a868SElliott Hughes $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4042*d5c9a868SElliott Hughes 4043*d5c9a868SElliott Hughes $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4044*d5c9a868SElliott Hughes 4045*d5c9a868SElliott Hughes $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4046*d5c9a868SElliott Hughes 4047*d5c9a868SElliott Hughes 4048*d5c9a868SElliott Hughes# Make sure we can run config.sub. 4049*d5c9a868SElliott Hughes$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4050*d5c9a868SElliott Hughes as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4051*d5c9a868SElliott Hughes 4052*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4053*d5c9a868SElliott Hughes$as_echo_n "checking build system type... " >&6; } 4054*d5c9a868SElliott Hughesif ${ac_cv_build+:} false; then : 4055*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4056*d5c9a868SElliott Hugheselse 4057*d5c9a868SElliott Hughes ac_build_alias=$build_alias 4058*d5c9a868SElliott Hughestest "x$ac_build_alias" = x && 4059*d5c9a868SElliott Hughes ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4060*d5c9a868SElliott Hughestest "x$ac_build_alias" = x && 4061*d5c9a868SElliott Hughes as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4062*d5c9a868SElliott Hughesac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4063*d5c9a868SElliott Hughes as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4064*d5c9a868SElliott Hughes 4065*d5c9a868SElliott Hughesfi 4066*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4067*d5c9a868SElliott Hughes$as_echo "$ac_cv_build" >&6; } 4068*d5c9a868SElliott Hughescase $ac_cv_build in 4069*d5c9a868SElliott Hughes*-*-*) ;; 4070*d5c9a868SElliott Hughes*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4071*d5c9a868SElliott Hughesesac 4072*d5c9a868SElliott Hughesbuild=$ac_cv_build 4073*d5c9a868SElliott Hughesac_save_IFS=$IFS; IFS='-' 4074*d5c9a868SElliott Hughesset x $ac_cv_build 4075*d5c9a868SElliott Hughesshift 4076*d5c9a868SElliott Hughesbuild_cpu=$1 4077*d5c9a868SElliott Hughesbuild_vendor=$2 4078*d5c9a868SElliott Hughesshift; shift 4079*d5c9a868SElliott Hughes# Remember, the first character of IFS is used to create $*, 4080*d5c9a868SElliott Hughes# except with old shells: 4081*d5c9a868SElliott Hughesbuild_os=$* 4082*d5c9a868SElliott HughesIFS=$ac_save_IFS 4083*d5c9a868SElliott Hughescase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4084*d5c9a868SElliott Hughes 4085*d5c9a868SElliott Hughes 4086*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4087*d5c9a868SElliott Hughes$as_echo_n "checking host system type... " >&6; } 4088*d5c9a868SElliott Hughesif ${ac_cv_host+:} false; then : 4089*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4090*d5c9a868SElliott Hugheselse 4091*d5c9a868SElliott Hughes if test "x$host_alias" = x; then 4092*d5c9a868SElliott Hughes ac_cv_host=$ac_cv_build 4093*d5c9a868SElliott Hugheselse 4094*d5c9a868SElliott Hughes ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4095*d5c9a868SElliott Hughes as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4096*d5c9a868SElliott Hughesfi 4097*d5c9a868SElliott Hughes 4098*d5c9a868SElliott Hughesfi 4099*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4100*d5c9a868SElliott Hughes$as_echo "$ac_cv_host" >&6; } 4101*d5c9a868SElliott Hughescase $ac_cv_host in 4102*d5c9a868SElliott Hughes*-*-*) ;; 4103*d5c9a868SElliott Hughes*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4104*d5c9a868SElliott Hughesesac 4105*d5c9a868SElliott Hugheshost=$ac_cv_host 4106*d5c9a868SElliott Hughesac_save_IFS=$IFS; IFS='-' 4107*d5c9a868SElliott Hughesset x $ac_cv_host 4108*d5c9a868SElliott Hughesshift 4109*d5c9a868SElliott Hugheshost_cpu=$1 4110*d5c9a868SElliott Hugheshost_vendor=$2 4111*d5c9a868SElliott Hughesshift; shift 4112*d5c9a868SElliott Hughes# Remember, the first character of IFS is used to create $*, 4113*d5c9a868SElliott Hughes# except with old shells: 4114*d5c9a868SElliott Hugheshost_os=$* 4115*d5c9a868SElliott HughesIFS=$ac_save_IFS 4116*d5c9a868SElliott Hughescase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4117*d5c9a868SElliott Hughes 4118*d5c9a868SElliott Hughes 4119*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4120*d5c9a868SElliott Hughes$as_echo_n "checking target system type... " >&6; } 4121*d5c9a868SElliott Hughesif ${ac_cv_target+:} false; then : 4122*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4123*d5c9a868SElliott Hugheselse 4124*d5c9a868SElliott Hughes if test "x$target_alias" = x; then 4125*d5c9a868SElliott Hughes ac_cv_target=$ac_cv_host 4126*d5c9a868SElliott Hugheselse 4127*d5c9a868SElliott Hughes ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4128*d5c9a868SElliott Hughes as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4129*d5c9a868SElliott Hughesfi 4130*d5c9a868SElliott Hughes 4131*d5c9a868SElliott Hughesfi 4132*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4133*d5c9a868SElliott Hughes$as_echo "$ac_cv_target" >&6; } 4134*d5c9a868SElliott Hughescase $ac_cv_target in 4135*d5c9a868SElliott Hughes*-*-*) ;; 4136*d5c9a868SElliott Hughes*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4137*d5c9a868SElliott Hughesesac 4138*d5c9a868SElliott Hughestarget=$ac_cv_target 4139*d5c9a868SElliott Hughesac_save_IFS=$IFS; IFS='-' 4140*d5c9a868SElliott Hughesset x $ac_cv_target 4141*d5c9a868SElliott Hughesshift 4142*d5c9a868SElliott Hughestarget_cpu=$1 4143*d5c9a868SElliott Hughestarget_vendor=$2 4144*d5c9a868SElliott Hughesshift; shift 4145*d5c9a868SElliott Hughes# Remember, the first character of IFS is used to create $*, 4146*d5c9a868SElliott Hughes# except with old shells: 4147*d5c9a868SElliott Hughestarget_os=$* 4148*d5c9a868SElliott HughesIFS=$ac_save_IFS 4149*d5c9a868SElliott Hughescase $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4150*d5c9a868SElliott Hughes 4151*d5c9a868SElliott Hughes 4152*d5c9a868SElliott Hughes# The aliases save the names the user supplied, while $host etc. 4153*d5c9a868SElliott Hughes# will get canonicalized. 4154*d5c9a868SElliott Hughestest -n "$target_alias" && 4155*d5c9a868SElliott Hughes test "$program_prefix$program_suffix$program_transform_name" = \ 4156*d5c9a868SElliott Hughes NONENONEs,x,x, && 4157*d5c9a868SElliott Hughes program_prefix=${target_alias}- 4158*d5c9a868SElliott Hughes 4159*d5c9a868SElliott Hughes 4160*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4161*d5c9a868SElliott Hughes$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4162*d5c9a868SElliott Hughesif ${ac_cv_c_const+:} false; then : 4163*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4164*d5c9a868SElliott Hugheselse 4165*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166*d5c9a868SElliott Hughes/* end confdefs.h. */ 4167*d5c9a868SElliott Hughes 4168*d5c9a868SElliott Hughesint 4169*d5c9a868SElliott Hughesmain () 4170*d5c9a868SElliott Hughes{ 4171*d5c9a868SElliott Hughes 4172*d5c9a868SElliott Hughes#ifndef __cplusplus 4173*d5c9a868SElliott Hughes /* Ultrix mips cc rejects this sort of thing. */ 4174*d5c9a868SElliott Hughes typedef int charset[2]; 4175*d5c9a868SElliott Hughes const charset cs = { 0, 0 }; 4176*d5c9a868SElliott Hughes /* SunOS 4.1.1 cc rejects this. */ 4177*d5c9a868SElliott Hughes char const *const *pcpcc; 4178*d5c9a868SElliott Hughes char **ppc; 4179*d5c9a868SElliott Hughes /* NEC SVR4.0.2 mips cc rejects this. */ 4180*d5c9a868SElliott Hughes struct point {int x, y;}; 4181*d5c9a868SElliott Hughes static struct point const zero = {0,0}; 4182*d5c9a868SElliott Hughes /* AIX XL C 1.02.0.0 rejects this. 4183*d5c9a868SElliott Hughes It does not let you subtract one const X* pointer from another in 4184*d5c9a868SElliott Hughes an arm of an if-expression whose if-part is not a constant 4185*d5c9a868SElliott Hughes expression */ 4186*d5c9a868SElliott Hughes const char *g = "string"; 4187*d5c9a868SElliott Hughes pcpcc = &g + (g ? g-g : 0); 4188*d5c9a868SElliott Hughes /* HPUX 7.0 cc rejects these. */ 4189*d5c9a868SElliott Hughes ++pcpcc; 4190*d5c9a868SElliott Hughes ppc = (char**) pcpcc; 4191*d5c9a868SElliott Hughes pcpcc = (char const *const *) ppc; 4192*d5c9a868SElliott Hughes { /* SCO 3.2v4 cc rejects this sort of thing. */ 4193*d5c9a868SElliott Hughes char tx; 4194*d5c9a868SElliott Hughes char *t = &tx; 4195*d5c9a868SElliott Hughes char const *s = 0 ? (char *) 0 : (char const *) 0; 4196*d5c9a868SElliott Hughes 4197*d5c9a868SElliott Hughes *t++ = 0; 4198*d5c9a868SElliott Hughes if (s) return 0; 4199*d5c9a868SElliott Hughes } 4200*d5c9a868SElliott Hughes { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4201*d5c9a868SElliott Hughes int x[] = {25, 17}; 4202*d5c9a868SElliott Hughes const int *foo = &x[0]; 4203*d5c9a868SElliott Hughes ++foo; 4204*d5c9a868SElliott Hughes } 4205*d5c9a868SElliott Hughes { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4206*d5c9a868SElliott Hughes typedef const int *iptr; 4207*d5c9a868SElliott Hughes iptr p = 0; 4208*d5c9a868SElliott Hughes ++p; 4209*d5c9a868SElliott Hughes } 4210*d5c9a868SElliott Hughes { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4211*d5c9a868SElliott Hughes "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4212*d5c9a868SElliott Hughes struct s { int j; const int *ap[3]; } bx; 4213*d5c9a868SElliott Hughes struct s *b = &bx; b->j = 5; 4214*d5c9a868SElliott Hughes } 4215*d5c9a868SElliott Hughes { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4216*d5c9a868SElliott Hughes const int foo = 10; 4217*d5c9a868SElliott Hughes if (!foo) return 0; 4218*d5c9a868SElliott Hughes } 4219*d5c9a868SElliott Hughes return !cs[0] && !zero.x; 4220*d5c9a868SElliott Hughes#endif 4221*d5c9a868SElliott Hughes 4222*d5c9a868SElliott Hughes ; 4223*d5c9a868SElliott Hughes return 0; 4224*d5c9a868SElliott Hughes} 4225*d5c9a868SElliott Hughes_ACEOF 4226*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4227*d5c9a868SElliott Hughes ac_cv_c_const=yes 4228*d5c9a868SElliott Hugheselse 4229*d5c9a868SElliott Hughes ac_cv_c_const=no 4230*d5c9a868SElliott Hughesfi 4231*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4232*d5c9a868SElliott Hughesfi 4233*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4234*d5c9a868SElliott Hughes$as_echo "$ac_cv_c_const" >&6; } 4235*d5c9a868SElliott Hughesif test $ac_cv_c_const = no; then 4236*d5c9a868SElliott Hughes 4237*d5c9a868SElliott Hughes$as_echo "#define const /**/" >>confdefs.h 4238*d5c9a868SElliott Hughes 4239*d5c9a868SElliott Hughesfi 4240*d5c9a868SElliott Hughes 4241*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4242*d5c9a868SElliott Hughes$as_echo_n "checking for inline... " >&6; } 4243*d5c9a868SElliott Hughesif ${ac_cv_c_inline+:} false; then : 4244*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4245*d5c9a868SElliott Hugheselse 4246*d5c9a868SElliott Hughes ac_cv_c_inline=no 4247*d5c9a868SElliott Hughesfor ac_kw in inline __inline__ __inline; do 4248*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249*d5c9a868SElliott Hughes/* end confdefs.h. */ 4250*d5c9a868SElliott Hughes#ifndef __cplusplus 4251*d5c9a868SElliott Hughestypedef int foo_t; 4252*d5c9a868SElliott Hughesstatic $ac_kw foo_t static_foo () {return 0; } 4253*d5c9a868SElliott Hughes$ac_kw foo_t foo () {return 0; } 4254*d5c9a868SElliott Hughes#endif 4255*d5c9a868SElliott Hughes 4256*d5c9a868SElliott Hughes_ACEOF 4257*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4258*d5c9a868SElliott Hughes ac_cv_c_inline=$ac_kw 4259*d5c9a868SElliott Hughesfi 4260*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4261*d5c9a868SElliott Hughes test "$ac_cv_c_inline" != no && break 4262*d5c9a868SElliott Hughesdone 4263*d5c9a868SElliott Hughes 4264*d5c9a868SElliott Hughesfi 4265*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4266*d5c9a868SElliott Hughes$as_echo "$ac_cv_c_inline" >&6; } 4267*d5c9a868SElliott Hughes 4268*d5c9a868SElliott Hughescase $ac_cv_c_inline in 4269*d5c9a868SElliott Hughes inline | yes) ;; 4270*d5c9a868SElliott Hughes *) 4271*d5c9a868SElliott Hughes case $ac_cv_c_inline in 4272*d5c9a868SElliott Hughes no) ac_val=;; 4273*d5c9a868SElliott Hughes *) ac_val=$ac_cv_c_inline;; 4274*d5c9a868SElliott Hughes esac 4275*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4276*d5c9a868SElliott Hughes#ifndef __cplusplus 4277*d5c9a868SElliott Hughes#define inline $ac_val 4278*d5c9a868SElliott Hughes#endif 4279*d5c9a868SElliott Hughes_ACEOF 4280*d5c9a868SElliott Hughes ;; 4281*d5c9a868SElliott Hughesesac 4282*d5c9a868SElliott Hughes 4283*d5c9a868SElliott Hughes 4284*d5c9a868SElliott Hughes# Check whether --enable-xdf was given. 4285*d5c9a868SElliott Hughesif test "${enable_xdf+set}" = set; then : 4286*d5c9a868SElliott Hughes enableval=$enable_xdf; if test x$enableval = xyes; then 4287*d5c9a868SElliott Hughes 4288*d5c9a868SElliott Hughes$as_echo "#define USE_XDF 1" >>confdefs.h 4289*d5c9a868SElliott Hughes 4290*d5c9a868SElliott Hughes XDF_IO_SRC=xdf_io.c 4291*d5c9a868SElliott Hughes XDF_IO_OBJ=xdf_io.o 4292*d5c9a868SElliott Hughesfi 4293*d5c9a868SElliott Hugheselse 4294*d5c9a868SElliott Hughes 4295*d5c9a868SElliott Hughes$as_echo "#define USE_XDF 1" >>confdefs.h 4296*d5c9a868SElliott Hughes 4297*d5c9a868SElliott HughesXDF_IO_SRC=xdf_io.c 4298*d5c9a868SElliott HughesXDF_IO_OBJ=xdf_io.o 4299*d5c9a868SElliott Hughes 4300*d5c9a868SElliott Hughes 4301*d5c9a868SElliott Hughesfi 4302*d5c9a868SElliott Hughes 4303*d5c9a868SElliott Hughes 4304*d5c9a868SElliott Hughes 4305*d5c9a868SElliott Hughes 4306*d5c9a868SElliott Hughes# Check whether --enable-vold was given. 4307*d5c9a868SElliott Hughesif test "${enable_vold+set}" = set; then : 4308*d5c9a868SElliott Hughes enableval=$enable_vold; if test x$enableval = xyes; then 4309*d5c9a868SElliott Hughes 4310*d5c9a868SElliott Hughes$as_echo "#define USING_VOLD 1" >>confdefs.h 4311*d5c9a868SElliott Hughes 4312*d5c9a868SElliott Hughesfi 4313*d5c9a868SElliott Hughesfi 4314*d5c9a868SElliott Hughes 4315*d5c9a868SElliott Hughes 4316*d5c9a868SElliott Hughes 4317*d5c9a868SElliott Hughes# Check whether --enable-new-vold was given. 4318*d5c9a868SElliott Hughesif test "${enable_new_vold+set}" = set; then : 4319*d5c9a868SElliott Hughes enableval=$enable_new_vold; newVold=x$enableval 4320*d5c9a868SElliott Hughesif test x$enableval = xyes; then 4321*d5c9a868SElliott Hughes 4322*d5c9a868SElliott Hughes$as_echo "#define USING_NEW_VOLD 1" >>confdefs.h 4323*d5c9a868SElliott Hughes 4324*d5c9a868SElliott Hughesfi 4325*d5c9a868SElliott Hughesfi 4326*d5c9a868SElliott Hughes 4327*d5c9a868SElliott Hughes 4328*d5c9a868SElliott Hughes 4329*d5c9a868SElliott Hughes# Check whether --enable-debug was given. 4330*d5c9a868SElliott Hughesif test "${enable_debug+set}" = set; then : 4331*d5c9a868SElliott Hughes enableval=$enable_debug; if test x$enableval = xyes; then 4332*d5c9a868SElliott Hughes 4333*d5c9a868SElliott Hughes$as_echo "#define DEBUG 1" >>confdefs.h 4334*d5c9a868SElliott Hughes 4335*d5c9a868SElliott Hughesfi 4336*d5c9a868SElliott Hughesfi 4337*d5c9a868SElliott Hughes 4338*d5c9a868SElliott Hughes 4339*d5c9a868SElliott Hughes 4340*d5c9a868SElliott Hughes# Check whether --enable-raw_term was given. 4341*d5c9a868SElliott Hughesif test "${enable_raw_term+set}" = set; then : 4342*d5c9a868SElliott Hughes enableval=$enable_raw_term; if test x$enableval = xyes; then 4343*d5c9a868SElliott Hughes 4344*d5c9a868SElliott Hughes$as_echo "#define USE_RAWTERM 1" >>confdefs.h 4345*d5c9a868SElliott Hughes 4346*d5c9a868SElliott Hughesfi 4347*d5c9a868SElliott Hugheselse 4348*d5c9a868SElliott Hughes 4349*d5c9a868SElliott Hughes$as_echo "#define USE_RAWTERM 1" >>confdefs.h 4350*d5c9a868SElliott Hughes 4351*d5c9a868SElliott Hughesfi 4352*d5c9a868SElliott Hughes 4353*d5c9a868SElliott Hughes 4354*d5c9a868SElliott Hughes 4355*d5c9a868SElliott Hughes 4356*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 4357*d5c9a868SElliott Hughes$as_echo_n "checking for getpwnam in -lsun... " >&6; } 4358*d5c9a868SElliott Hughesif ${ac_cv_lib_sun_getpwnam+:} false; then : 4359*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4360*d5c9a868SElliott Hugheselse 4361*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4362*d5c9a868SElliott HughesLIBS="-lsun $LIBS" 4363*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364*d5c9a868SElliott Hughes/* end confdefs.h. */ 4365*d5c9a868SElliott Hughes 4366*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4367*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4368*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4369*d5c9a868SElliott Hughes#ifdef __cplusplus 4370*d5c9a868SElliott Hughesextern "C" 4371*d5c9a868SElliott Hughes#endif 4372*d5c9a868SElliott Hugheschar getpwnam (); 4373*d5c9a868SElliott Hughesint 4374*d5c9a868SElliott Hughesmain () 4375*d5c9a868SElliott Hughes{ 4376*d5c9a868SElliott Hughesreturn getpwnam (); 4377*d5c9a868SElliott Hughes ; 4378*d5c9a868SElliott Hughes return 0; 4379*d5c9a868SElliott Hughes} 4380*d5c9a868SElliott Hughes_ACEOF 4381*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4382*d5c9a868SElliott Hughes ac_cv_lib_sun_getpwnam=yes 4383*d5c9a868SElliott Hugheselse 4384*d5c9a868SElliott Hughes ac_cv_lib_sun_getpwnam=no 4385*d5c9a868SElliott Hughesfi 4386*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4387*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4388*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4389*d5c9a868SElliott Hughesfi 4390*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 4391*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_sun_getpwnam" >&6; } 4392*d5c9a868SElliott Hughesif test "x$ac_cv_lib_sun_getpwnam" = xyes; then : 4393*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4394*d5c9a868SElliott Hughes#define HAVE_LIBSUN 1 4395*d5c9a868SElliott Hughes_ACEOF 4396*d5c9a868SElliott Hughes 4397*d5c9a868SElliott Hughes LIBS="-lsun $LIBS" 4398*d5c9a868SElliott Hughes 4399*d5c9a868SElliott Hughesfi 4400*d5c9a868SElliott Hughes 4401*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5 4402*d5c9a868SElliott Hughes$as_echo_n "checking for cam_open_device in -lcam... " >&6; } 4403*d5c9a868SElliott Hughesif ${ac_cv_lib_cam_cam_open_device+:} false; then : 4404*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4405*d5c9a868SElliott Hugheselse 4406*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4407*d5c9a868SElliott HughesLIBS="-lcam $LIBS" 4408*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409*d5c9a868SElliott Hughes/* end confdefs.h. */ 4410*d5c9a868SElliott Hughes 4411*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4412*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4413*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4414*d5c9a868SElliott Hughes#ifdef __cplusplus 4415*d5c9a868SElliott Hughesextern "C" 4416*d5c9a868SElliott Hughes#endif 4417*d5c9a868SElliott Hugheschar cam_open_device (); 4418*d5c9a868SElliott Hughesint 4419*d5c9a868SElliott Hughesmain () 4420*d5c9a868SElliott Hughes{ 4421*d5c9a868SElliott Hughesreturn cam_open_device (); 4422*d5c9a868SElliott Hughes ; 4423*d5c9a868SElliott Hughes return 0; 4424*d5c9a868SElliott Hughes} 4425*d5c9a868SElliott Hughes_ACEOF 4426*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4427*d5c9a868SElliott Hughes ac_cv_lib_cam_cam_open_device=yes 4428*d5c9a868SElliott Hugheselse 4429*d5c9a868SElliott Hughes ac_cv_lib_cam_cam_open_device=no 4430*d5c9a868SElliott Hughesfi 4431*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4432*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4433*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4434*d5c9a868SElliott Hughesfi 4435*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5 4436*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_cam_cam_open_device" >&6; } 4437*d5c9a868SElliott Hughesif test "x$ac_cv_lib_cam_cam_open_device" = xyes; then : 4438*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4439*d5c9a868SElliott Hughes#define HAVE_LIBCAM 1 4440*d5c9a868SElliott Hughes_ACEOF 4441*d5c9a868SElliott Hughes 4442*d5c9a868SElliott Hughes LIBS="-lcam $LIBS" 4443*d5c9a868SElliott Hughes 4444*d5c9a868SElliott Hughesfi 4445*d5c9a868SElliott Hughes 4446*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5 4447*d5c9a868SElliott Hughes$as_echo_n "checking for iconv in -liconv... " >&6; } 4448*d5c9a868SElliott Hughesif ${ac_cv_lib_iconv_iconv+:} false; then : 4449*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4450*d5c9a868SElliott Hugheselse 4451*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4452*d5c9a868SElliott HughesLIBS="-liconv $LIBS" 4453*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4454*d5c9a868SElliott Hughes/* end confdefs.h. */ 4455*d5c9a868SElliott Hughes 4456*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4457*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4458*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4459*d5c9a868SElliott Hughes#ifdef __cplusplus 4460*d5c9a868SElliott Hughesextern "C" 4461*d5c9a868SElliott Hughes#endif 4462*d5c9a868SElliott Hugheschar iconv (); 4463*d5c9a868SElliott Hughesint 4464*d5c9a868SElliott Hughesmain () 4465*d5c9a868SElliott Hughes{ 4466*d5c9a868SElliott Hughesreturn iconv (); 4467*d5c9a868SElliott Hughes ; 4468*d5c9a868SElliott Hughes return 0; 4469*d5c9a868SElliott Hughes} 4470*d5c9a868SElliott Hughes_ACEOF 4471*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4472*d5c9a868SElliott Hughes ac_cv_lib_iconv_iconv=yes 4473*d5c9a868SElliott Hugheselse 4474*d5c9a868SElliott Hughes ac_cv_lib_iconv_iconv=no 4475*d5c9a868SElliott Hughesfi 4476*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4477*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4478*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4479*d5c9a868SElliott Hughesfi 4480*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5 4481*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_iconv_iconv" >&6; } 4482*d5c9a868SElliott Hughesif test "x$ac_cv_lib_iconv_iconv" = xyes; then : 4483*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4484*d5c9a868SElliott Hughes#define HAVE_LIBICONV 1 4485*d5c9a868SElliott Hughes_ACEOF 4486*d5c9a868SElliott Hughes 4487*d5c9a868SElliott Hughes LIBS="-liconv $LIBS" 4488*d5c9a868SElliott Hughes 4489*d5c9a868SElliott Hughesfi 4490*d5c9a868SElliott Hughes 4491*d5c9a868SElliott Hughes 4492*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 4493*d5c9a868SElliott Hughes$as_echo_n "checking for main in -lsocket... " >&6; } 4494*d5c9a868SElliott Hughesif ${ac_cv_lib_socket_main+:} false; then : 4495*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4496*d5c9a868SElliott Hugheselse 4497*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4498*d5c9a868SElliott HughesLIBS="-lsocket $LIBS" 4499*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500*d5c9a868SElliott Hughes/* end confdefs.h. */ 4501*d5c9a868SElliott Hughes 4502*d5c9a868SElliott Hughes 4503*d5c9a868SElliott Hughesint 4504*d5c9a868SElliott Hughesmain () 4505*d5c9a868SElliott Hughes{ 4506*d5c9a868SElliott Hughesreturn main (); 4507*d5c9a868SElliott Hughes ; 4508*d5c9a868SElliott Hughes return 0; 4509*d5c9a868SElliott Hughes} 4510*d5c9a868SElliott Hughes_ACEOF 4511*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4512*d5c9a868SElliott Hughes ac_cv_lib_socket_main=yes 4513*d5c9a868SElliott Hugheselse 4514*d5c9a868SElliott Hughes ac_cv_lib_socket_main=no 4515*d5c9a868SElliott Hughesfi 4516*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4517*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4518*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4519*d5c9a868SElliott Hughesfi 4520*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 4521*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_socket_main" >&6; } 4522*d5c9a868SElliott Hughesif test "x$ac_cv_lib_socket_main" = xyes; then : 4523*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4524*d5c9a868SElliott Hughes#define HAVE_LIBSOCKET 1 4525*d5c9a868SElliott Hughes_ACEOF 4526*d5c9a868SElliott Hughes 4527*d5c9a868SElliott Hughes LIBS="-lsocket $LIBS" 4528*d5c9a868SElliott Hughes 4529*d5c9a868SElliott Hughesfi 4530*d5c9a868SElliott Hughes 4531*d5c9a868SElliott Hughes 4532*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 4533*d5c9a868SElliott Hughes$as_echo_n "checking for library containing gethostbyname... " >&6; } 4534*d5c9a868SElliott Hughesif ${ac_cv_search_gethostbyname+:} false; then : 4535*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4536*d5c9a868SElliott Hugheselse 4537*d5c9a868SElliott Hughes ac_func_search_save_LIBS=$LIBS 4538*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539*d5c9a868SElliott Hughes/* end confdefs.h. */ 4540*d5c9a868SElliott Hughes 4541*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4542*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4543*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4544*d5c9a868SElliott Hughes#ifdef __cplusplus 4545*d5c9a868SElliott Hughesextern "C" 4546*d5c9a868SElliott Hughes#endif 4547*d5c9a868SElliott Hugheschar gethostbyname (); 4548*d5c9a868SElliott Hughesint 4549*d5c9a868SElliott Hughesmain () 4550*d5c9a868SElliott Hughes{ 4551*d5c9a868SElliott Hughesreturn gethostbyname (); 4552*d5c9a868SElliott Hughes ; 4553*d5c9a868SElliott Hughes return 0; 4554*d5c9a868SElliott Hughes} 4555*d5c9a868SElliott Hughes_ACEOF 4556*d5c9a868SElliott Hughesfor ac_lib in '' nsl; do 4557*d5c9a868SElliott Hughes if test -z "$ac_lib"; then 4558*d5c9a868SElliott Hughes ac_res="none required" 4559*d5c9a868SElliott Hughes else 4560*d5c9a868SElliott Hughes ac_res=-l$ac_lib 4561*d5c9a868SElliott Hughes LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4562*d5c9a868SElliott Hughes fi 4563*d5c9a868SElliott Hughes if ac_fn_c_try_link "$LINENO"; then : 4564*d5c9a868SElliott Hughes ac_cv_search_gethostbyname=$ac_res 4565*d5c9a868SElliott Hughesfi 4566*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4567*d5c9a868SElliott Hughes conftest$ac_exeext 4568*d5c9a868SElliott Hughes if ${ac_cv_search_gethostbyname+:} false; then : 4569*d5c9a868SElliott Hughes break 4570*d5c9a868SElliott Hughesfi 4571*d5c9a868SElliott Hughesdone 4572*d5c9a868SElliott Hughesif ${ac_cv_search_gethostbyname+:} false; then : 4573*d5c9a868SElliott Hughes 4574*d5c9a868SElliott Hugheselse 4575*d5c9a868SElliott Hughes ac_cv_search_gethostbyname=no 4576*d5c9a868SElliott Hughesfi 4577*d5c9a868SElliott Hughesrm conftest.$ac_ext 4578*d5c9a868SElliott HughesLIBS=$ac_func_search_save_LIBS 4579*d5c9a868SElliott Hughesfi 4580*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 4581*d5c9a868SElliott Hughes$as_echo "$ac_cv_search_gethostbyname" >&6; } 4582*d5c9a868SElliott Hughesac_res=$ac_cv_search_gethostbyname 4583*d5c9a868SElliott Hughesif test "$ac_res" != no; then : 4584*d5c9a868SElliott Hughes test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4585*d5c9a868SElliott Hughes 4586*d5c9a868SElliott Hughesfi 4587*d5c9a868SElliott Hughes 4588*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 4589*d5c9a868SElliott Hughes$as_echo_n "checking for library containing socket... " >&6; } 4590*d5c9a868SElliott Hughesif ${ac_cv_search_socket+:} false; then : 4591*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4592*d5c9a868SElliott Hugheselse 4593*d5c9a868SElliott Hughes ac_func_search_save_LIBS=$LIBS 4594*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595*d5c9a868SElliott Hughes/* end confdefs.h. */ 4596*d5c9a868SElliott Hughes 4597*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4598*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4599*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4600*d5c9a868SElliott Hughes#ifdef __cplusplus 4601*d5c9a868SElliott Hughesextern "C" 4602*d5c9a868SElliott Hughes#endif 4603*d5c9a868SElliott Hugheschar socket (); 4604*d5c9a868SElliott Hughesint 4605*d5c9a868SElliott Hughesmain () 4606*d5c9a868SElliott Hughes{ 4607*d5c9a868SElliott Hughesreturn socket (); 4608*d5c9a868SElliott Hughes ; 4609*d5c9a868SElliott Hughes return 0; 4610*d5c9a868SElliott Hughes} 4611*d5c9a868SElliott Hughes_ACEOF 4612*d5c9a868SElliott Hughesfor ac_lib in '' socket; do 4613*d5c9a868SElliott Hughes if test -z "$ac_lib"; then 4614*d5c9a868SElliott Hughes ac_res="none required" 4615*d5c9a868SElliott Hughes else 4616*d5c9a868SElliott Hughes ac_res=-l$ac_lib 4617*d5c9a868SElliott Hughes LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4618*d5c9a868SElliott Hughes fi 4619*d5c9a868SElliott Hughes if ac_fn_c_try_link "$LINENO"; then : 4620*d5c9a868SElliott Hughes ac_cv_search_socket=$ac_res 4621*d5c9a868SElliott Hughesfi 4622*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4623*d5c9a868SElliott Hughes conftest$ac_exeext 4624*d5c9a868SElliott Hughes if ${ac_cv_search_socket+:} false; then : 4625*d5c9a868SElliott Hughes break 4626*d5c9a868SElliott Hughesfi 4627*d5c9a868SElliott Hughesdone 4628*d5c9a868SElliott Hughesif ${ac_cv_search_socket+:} false; then : 4629*d5c9a868SElliott Hughes 4630*d5c9a868SElliott Hugheselse 4631*d5c9a868SElliott Hughes ac_cv_search_socket=no 4632*d5c9a868SElliott Hughesfi 4633*d5c9a868SElliott Hughesrm conftest.$ac_ext 4634*d5c9a868SElliott HughesLIBS=$ac_func_search_save_LIBS 4635*d5c9a868SElliott Hughesfi 4636*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 4637*d5c9a868SElliott Hughes$as_echo "$ac_cv_search_socket" >&6; } 4638*d5c9a868SElliott Hughesac_res=$ac_cv_search_socket 4639*d5c9a868SElliott Hughesif test "$ac_res" != no; then : 4640*d5c9a868SElliott Hughes test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4641*d5c9a868SElliott Hughes 4642*d5c9a868SElliott Hugheselse 4643*d5c9a868SElliott Hughes 4644*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 4645*d5c9a868SElliott Hughes$as_echo_n "checking for socket in -lsocket... " >&6; } 4646*d5c9a868SElliott Hughesif ${ac_cv_lib_socket_socket+:} false; then : 4647*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4648*d5c9a868SElliott Hugheselse 4649*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4650*d5c9a868SElliott HughesLIBS="-lsocket -lnsl $LIBS" 4651*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652*d5c9a868SElliott Hughes/* end confdefs.h. */ 4653*d5c9a868SElliott Hughes 4654*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 4655*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 4656*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 4657*d5c9a868SElliott Hughes#ifdef __cplusplus 4658*d5c9a868SElliott Hughesextern "C" 4659*d5c9a868SElliott Hughes#endif 4660*d5c9a868SElliott Hugheschar socket (); 4661*d5c9a868SElliott Hughesint 4662*d5c9a868SElliott Hughesmain () 4663*d5c9a868SElliott Hughes{ 4664*d5c9a868SElliott Hughesreturn socket (); 4665*d5c9a868SElliott Hughes ; 4666*d5c9a868SElliott Hughes return 0; 4667*d5c9a868SElliott Hughes} 4668*d5c9a868SElliott Hughes_ACEOF 4669*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4670*d5c9a868SElliott Hughes ac_cv_lib_socket_socket=yes 4671*d5c9a868SElliott Hugheselse 4672*d5c9a868SElliott Hughes ac_cv_lib_socket_socket=no 4673*d5c9a868SElliott Hughesfi 4674*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4675*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4676*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4677*d5c9a868SElliott Hughesfi 4678*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 4679*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_socket_socket" >&6; } 4680*d5c9a868SElliott Hughesif test "x$ac_cv_lib_socket_socket" = xyes; then : 4681*d5c9a868SElliott Hughes LIBS="-lsocket -lnsl $LIBS" 4682*d5c9a868SElliott Hughesfi 4683*d5c9a868SElliott Hughes 4684*d5c9a868SElliott Hughesfi 4685*d5c9a868SElliott Hughes 4686*d5c9a868SElliott Hughes 4687*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5 4688*d5c9a868SElliott Hughes$as_echo_n "checking for main in -lbsd... " >&6; } 4689*d5c9a868SElliott Hughesif ${ac_cv_lib_bsd_main+:} false; then : 4690*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4691*d5c9a868SElliott Hugheselse 4692*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 4693*d5c9a868SElliott HughesLIBS="-lbsd $LIBS" 4694*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695*d5c9a868SElliott Hughes/* end confdefs.h. */ 4696*d5c9a868SElliott Hughes 4697*d5c9a868SElliott Hughes 4698*d5c9a868SElliott Hughesint 4699*d5c9a868SElliott Hughesmain () 4700*d5c9a868SElliott Hughes{ 4701*d5c9a868SElliott Hughesreturn main (); 4702*d5c9a868SElliott Hughes ; 4703*d5c9a868SElliott Hughes return 0; 4704*d5c9a868SElliott Hughes} 4705*d5c9a868SElliott Hughes_ACEOF 4706*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 4707*d5c9a868SElliott Hughes ac_cv_lib_bsd_main=yes 4708*d5c9a868SElliott Hugheselse 4709*d5c9a868SElliott Hughes ac_cv_lib_bsd_main=no 4710*d5c9a868SElliott Hughesfi 4711*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 4712*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 4713*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 4714*d5c9a868SElliott Hughesfi 4715*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5 4716*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_bsd_main" >&6; } 4717*d5c9a868SElliott Hughesif test "x$ac_cv_lib_bsd_main" = xyes; then : 4718*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4719*d5c9a868SElliott Hughes#define HAVE_LIBBSD 1 4720*d5c9a868SElliott Hughes_ACEOF 4721*d5c9a868SElliott Hughes 4722*d5c9a868SElliott Hughes LIBS="-lbsd $LIBS" 4723*d5c9a868SElliott Hughes 4724*d5c9a868SElliott Hughesfi 4725*d5c9a868SElliott Hughes 4726*d5c9a868SElliott Hughes 4727*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4728*d5c9a868SElliott Hughes$as_echo_n "checking for ANSI C header files... " >&6; } 4729*d5c9a868SElliott Hughesif ${ac_cv_header_stdc+:} false; then : 4730*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4731*d5c9a868SElliott Hugheselse 4732*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733*d5c9a868SElliott Hughes/* end confdefs.h. */ 4734*d5c9a868SElliott Hughes#include <stdlib.h> 4735*d5c9a868SElliott Hughes#include <stdarg.h> 4736*d5c9a868SElliott Hughes#include <string.h> 4737*d5c9a868SElliott Hughes#include <float.h> 4738*d5c9a868SElliott Hughes 4739*d5c9a868SElliott Hughesint 4740*d5c9a868SElliott Hughesmain () 4741*d5c9a868SElliott Hughes{ 4742*d5c9a868SElliott Hughes 4743*d5c9a868SElliott Hughes ; 4744*d5c9a868SElliott Hughes return 0; 4745*d5c9a868SElliott Hughes} 4746*d5c9a868SElliott Hughes_ACEOF 4747*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4748*d5c9a868SElliott Hughes ac_cv_header_stdc=yes 4749*d5c9a868SElliott Hugheselse 4750*d5c9a868SElliott Hughes ac_cv_header_stdc=no 4751*d5c9a868SElliott Hughesfi 4752*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4753*d5c9a868SElliott Hughes 4754*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 4755*d5c9a868SElliott Hughes # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4756*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757*d5c9a868SElliott Hughes/* end confdefs.h. */ 4758*d5c9a868SElliott Hughes#include <string.h> 4759*d5c9a868SElliott Hughes 4760*d5c9a868SElliott Hughes_ACEOF 4761*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4762*d5c9a868SElliott Hughes $EGREP "memchr" >/dev/null 2>&1; then : 4763*d5c9a868SElliott Hughes 4764*d5c9a868SElliott Hugheselse 4765*d5c9a868SElliott Hughes ac_cv_header_stdc=no 4766*d5c9a868SElliott Hughesfi 4767*d5c9a868SElliott Hughesrm -f conftest* 4768*d5c9a868SElliott Hughes 4769*d5c9a868SElliott Hughesfi 4770*d5c9a868SElliott Hughes 4771*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 4772*d5c9a868SElliott Hughes # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4773*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774*d5c9a868SElliott Hughes/* end confdefs.h. */ 4775*d5c9a868SElliott Hughes#include <stdlib.h> 4776*d5c9a868SElliott Hughes 4777*d5c9a868SElliott Hughes_ACEOF 4778*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4779*d5c9a868SElliott Hughes $EGREP "free" >/dev/null 2>&1; then : 4780*d5c9a868SElliott Hughes 4781*d5c9a868SElliott Hugheselse 4782*d5c9a868SElliott Hughes ac_cv_header_stdc=no 4783*d5c9a868SElliott Hughesfi 4784*d5c9a868SElliott Hughesrm -f conftest* 4785*d5c9a868SElliott Hughes 4786*d5c9a868SElliott Hughesfi 4787*d5c9a868SElliott Hughes 4788*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 4789*d5c9a868SElliott Hughes # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4790*d5c9a868SElliott Hughes if test "$cross_compiling" = yes; then : 4791*d5c9a868SElliott Hughes : 4792*d5c9a868SElliott Hugheselse 4793*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4794*d5c9a868SElliott Hughes/* end confdefs.h. */ 4795*d5c9a868SElliott Hughes#include <ctype.h> 4796*d5c9a868SElliott Hughes#include <stdlib.h> 4797*d5c9a868SElliott Hughes#if ((' ' & 0x0FF) == 0x020) 4798*d5c9a868SElliott Hughes# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4799*d5c9a868SElliott Hughes# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4800*d5c9a868SElliott Hughes#else 4801*d5c9a868SElliott Hughes# define ISLOWER(c) \ 4802*d5c9a868SElliott Hughes (('a' <= (c) && (c) <= 'i') \ 4803*d5c9a868SElliott Hughes || ('j' <= (c) && (c) <= 'r') \ 4804*d5c9a868SElliott Hughes || ('s' <= (c) && (c) <= 'z')) 4805*d5c9a868SElliott Hughes# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4806*d5c9a868SElliott Hughes#endif 4807*d5c9a868SElliott Hughes 4808*d5c9a868SElliott Hughes#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4809*d5c9a868SElliott Hughesint 4810*d5c9a868SElliott Hughesmain () 4811*d5c9a868SElliott Hughes{ 4812*d5c9a868SElliott Hughes int i; 4813*d5c9a868SElliott Hughes for (i = 0; i < 256; i++) 4814*d5c9a868SElliott Hughes if (XOR (islower (i), ISLOWER (i)) 4815*d5c9a868SElliott Hughes || toupper (i) != TOUPPER (i)) 4816*d5c9a868SElliott Hughes return 2; 4817*d5c9a868SElliott Hughes return 0; 4818*d5c9a868SElliott Hughes} 4819*d5c9a868SElliott Hughes_ACEOF 4820*d5c9a868SElliott Hughesif ac_fn_c_try_run "$LINENO"; then : 4821*d5c9a868SElliott Hughes 4822*d5c9a868SElliott Hugheselse 4823*d5c9a868SElliott Hughes ac_cv_header_stdc=no 4824*d5c9a868SElliott Hughesfi 4825*d5c9a868SElliott Hughesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4826*d5c9a868SElliott Hughes conftest.$ac_objext conftest.beam conftest.$ac_ext 4827*d5c9a868SElliott Hughesfi 4828*d5c9a868SElliott Hughes 4829*d5c9a868SElliott Hughesfi 4830*d5c9a868SElliott Hughesfi 4831*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4832*d5c9a868SElliott Hughes$as_echo "$ac_cv_header_stdc" >&6; } 4833*d5c9a868SElliott Hughesif test $ac_cv_header_stdc = yes; then 4834*d5c9a868SElliott Hughes 4835*d5c9a868SElliott Hughes$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4836*d5c9a868SElliott Hughes 4837*d5c9a868SElliott Hughesfi 4838*d5c9a868SElliott Hughes 4839*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4840*d5c9a868SElliott Hughes$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4841*d5c9a868SElliott Hughesif ${ac_cv_header_sys_wait_h+:} false; then : 4842*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4843*d5c9a868SElliott Hugheselse 4844*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845*d5c9a868SElliott Hughes/* end confdefs.h. */ 4846*d5c9a868SElliott Hughes#include <sys/types.h> 4847*d5c9a868SElliott Hughes#include <sys/wait.h> 4848*d5c9a868SElliott Hughes#ifndef WEXITSTATUS 4849*d5c9a868SElliott Hughes# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4850*d5c9a868SElliott Hughes#endif 4851*d5c9a868SElliott Hughes#ifndef WIFEXITED 4852*d5c9a868SElliott Hughes# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4853*d5c9a868SElliott Hughes#endif 4854*d5c9a868SElliott Hughes 4855*d5c9a868SElliott Hughesint 4856*d5c9a868SElliott Hughesmain () 4857*d5c9a868SElliott Hughes{ 4858*d5c9a868SElliott Hughes int s; 4859*d5c9a868SElliott Hughes wait (&s); 4860*d5c9a868SElliott Hughes s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4861*d5c9a868SElliott Hughes ; 4862*d5c9a868SElliott Hughes return 0; 4863*d5c9a868SElliott Hughes} 4864*d5c9a868SElliott Hughes_ACEOF 4865*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4866*d5c9a868SElliott Hughes ac_cv_header_sys_wait_h=yes 4867*d5c9a868SElliott Hugheselse 4868*d5c9a868SElliott Hughes ac_cv_header_sys_wait_h=no 4869*d5c9a868SElliott Hughesfi 4870*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4871*d5c9a868SElliott Hughesfi 4872*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4873*d5c9a868SElliott Hughes$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4874*d5c9a868SElliott Hughesif test $ac_cv_header_sys_wait_h = yes; then 4875*d5c9a868SElliott Hughes 4876*d5c9a868SElliott Hughes$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4877*d5c9a868SElliott Hughes 4878*d5c9a868SElliott Hughesfi 4879*d5c9a868SElliott Hughes 4880*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 4881*d5c9a868SElliott Hughes$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 4882*d5c9a868SElliott Hughesif ${ac_cv_header_stdbool_h+:} false; then : 4883*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 4884*d5c9a868SElliott Hugheselse 4885*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886*d5c9a868SElliott Hughes/* end confdefs.h. */ 4887*d5c9a868SElliott Hughes 4888*d5c9a868SElliott Hughes #include <stdbool.h> 4889*d5c9a868SElliott Hughes #ifndef bool 4890*d5c9a868SElliott Hughes "error: bool is not defined" 4891*d5c9a868SElliott Hughes #endif 4892*d5c9a868SElliott Hughes #ifndef false 4893*d5c9a868SElliott Hughes "error: false is not defined" 4894*d5c9a868SElliott Hughes #endif 4895*d5c9a868SElliott Hughes #if false 4896*d5c9a868SElliott Hughes "error: false is not 0" 4897*d5c9a868SElliott Hughes #endif 4898*d5c9a868SElliott Hughes #ifndef true 4899*d5c9a868SElliott Hughes "error: true is not defined" 4900*d5c9a868SElliott Hughes #endif 4901*d5c9a868SElliott Hughes #if true != 1 4902*d5c9a868SElliott Hughes "error: true is not 1" 4903*d5c9a868SElliott Hughes #endif 4904*d5c9a868SElliott Hughes #ifndef __bool_true_false_are_defined 4905*d5c9a868SElliott Hughes "error: __bool_true_false_are_defined is not defined" 4906*d5c9a868SElliott Hughes #endif 4907*d5c9a868SElliott Hughes 4908*d5c9a868SElliott Hughes struct s { _Bool s: 1; _Bool t; } s; 4909*d5c9a868SElliott Hughes 4910*d5c9a868SElliott Hughes char a[true == 1 ? 1 : -1]; 4911*d5c9a868SElliott Hughes char b[false == 0 ? 1 : -1]; 4912*d5c9a868SElliott Hughes char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4913*d5c9a868SElliott Hughes char d[(bool) 0.5 == true ? 1 : -1]; 4914*d5c9a868SElliott Hughes /* See body of main program for 'e'. */ 4915*d5c9a868SElliott Hughes char f[(_Bool) 0.0 == false ? 1 : -1]; 4916*d5c9a868SElliott Hughes char g[true]; 4917*d5c9a868SElliott Hughes char h[sizeof (_Bool)]; 4918*d5c9a868SElliott Hughes char i[sizeof s.t]; 4919*d5c9a868SElliott Hughes enum { j = false, k = true, l = false * true, m = true * 256 }; 4920*d5c9a868SElliott Hughes /* The following fails for 4921*d5c9a868SElliott Hughes HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 4922*d5c9a868SElliott Hughes _Bool n[m]; 4923*d5c9a868SElliott Hughes char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 4924*d5c9a868SElliott Hughes char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 4925*d5c9a868SElliott Hughes /* Catch a bug in an HP-UX C compiler. See 4926*d5c9a868SElliott Hughes http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 4927*d5c9a868SElliott Hughes http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 4928*d5c9a868SElliott Hughes */ 4929*d5c9a868SElliott Hughes _Bool q = true; 4930*d5c9a868SElliott Hughes _Bool *pq = &q; 4931*d5c9a868SElliott Hughes 4932*d5c9a868SElliott Hughesint 4933*d5c9a868SElliott Hughesmain () 4934*d5c9a868SElliott Hughes{ 4935*d5c9a868SElliott Hughes 4936*d5c9a868SElliott Hughes bool e = &s; 4937*d5c9a868SElliott Hughes *pq |= q; 4938*d5c9a868SElliott Hughes *pq |= ! q; 4939*d5c9a868SElliott Hughes /* Refer to every declared value, to avoid compiler optimizations. */ 4940*d5c9a868SElliott Hughes return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 4941*d5c9a868SElliott Hughes + !m + !n + !o + !p + !q + !pq); 4942*d5c9a868SElliott Hughes 4943*d5c9a868SElliott Hughes ; 4944*d5c9a868SElliott Hughes return 0; 4945*d5c9a868SElliott Hughes} 4946*d5c9a868SElliott Hughes_ACEOF 4947*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 4948*d5c9a868SElliott Hughes ac_cv_header_stdbool_h=yes 4949*d5c9a868SElliott Hugheselse 4950*d5c9a868SElliott Hughes ac_cv_header_stdbool_h=no 4951*d5c9a868SElliott Hughesfi 4952*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953*d5c9a868SElliott Hughesfi 4954*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 4955*d5c9a868SElliott Hughes$as_echo "$ac_cv_header_stdbool_h" >&6; } 4956*d5c9a868SElliott Hughes ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 4957*d5c9a868SElliott Hughesif test "x$ac_cv_type__Bool" = xyes; then : 4958*d5c9a868SElliott Hughes 4959*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 4960*d5c9a868SElliott Hughes#define HAVE__BOOL 1 4961*d5c9a868SElliott Hughes_ACEOF 4962*d5c9a868SElliott Hughes 4963*d5c9a868SElliott Hughes 4964*d5c9a868SElliott Hughesfi 4965*d5c9a868SElliott Hughes 4966*d5c9a868SElliott Hughes 4967*d5c9a868SElliott Hughesif test $ac_cv_header_stdbool_h = yes; then 4968*d5c9a868SElliott Hughes 4969*d5c9a868SElliott Hughes$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 4970*d5c9a868SElliott Hughes 4971*d5c9a868SElliott Hughesfi 4972*d5c9a868SElliott Hughes 4973*d5c9a868SElliott Hughesfor ac_header in getopt.h stdarg.h stdlib.h unistd.h linux/unistd.h \ 4974*d5c9a868SElliott Hugheslibc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \ 4975*d5c9a868SElliott Hughessys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \ 4976*d5c9a868SElliott Hughessys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \ 4977*d5c9a868SElliott Hughesiconv.h wctype.h wchar.h locale.h xlocale.h linux/fs.h 4978*d5c9a868SElliott Hughesdo : 4979*d5c9a868SElliott Hughes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4980*d5c9a868SElliott Hughesac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4981*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4982*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4983*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4984*d5c9a868SElliott Hughes_ACEOF 4985*d5c9a868SElliott Hughes 4986*d5c9a868SElliott Hughesfi 4987*d5c9a868SElliott Hughes 4988*d5c9a868SElliott Hughesdone 4989*d5c9a868SElliott Hughes 4990*d5c9a868SElliott Hughesfor ac_header in termio.h sys/termio.h 4991*d5c9a868SElliott Hughesdo : 4992*d5c9a868SElliott Hughes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4993*d5c9a868SElliott Hughesac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4994*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4995*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 4996*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4997*d5c9a868SElliott Hughes_ACEOF 4998*d5c9a868SElliott Hughes break 4999*d5c9a868SElliott Hughesfi 5000*d5c9a868SElliott Hughes 5001*d5c9a868SElliott Hughesdone 5002*d5c9a868SElliott Hughes 5003*d5c9a868SElliott Hughesfor ac_header in termios.h sys/termios.h 5004*d5c9a868SElliott Hughesdo : 5005*d5c9a868SElliott Hughes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5006*d5c9a868SElliott Hughesac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5007*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5008*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5009*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5010*d5c9a868SElliott Hughes_ACEOF 5011*d5c9a868SElliott Hughes break 5012*d5c9a868SElliott Hughesfi 5013*d5c9a868SElliott Hughes 5014*d5c9a868SElliott Hughesdone 5015*d5c9a868SElliott Hughes 5016*d5c9a868SElliott Hughes 5017*d5c9a868SElliott Hughesfor ac_header in sys/fdio.h 5018*d5c9a868SElliott Hughesdo : 5019*d5c9a868SElliott Hughes ac_fn_c_check_header_mongrel "$LINENO" "sys/fdio.h" "ac_cv_header_sys_fdio_h" "$ac_includes_default" 5020*d5c9a868SElliott Hughesif test "x$ac_cv_header_sys_fdio_h" = xyes; then : 5021*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5022*d5c9a868SElliott Hughes#define HAVE_SYS_FDIO_H 1 5023*d5c9a868SElliott Hughes_ACEOF 5024*d5c9a868SElliott Hughes 5025*d5c9a868SElliott Hughesfi 5026*d5c9a868SElliott Hughes 5027*d5c9a868SElliott Hughesdone 5028*d5c9a868SElliott Hughes 5029*d5c9a868SElliott Hughesfor ac_header in sys/socket.h arpa/inet.h netdb.h 5030*d5c9a868SElliott Hughesdo : 5031*d5c9a868SElliott Hughes as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5032*d5c9a868SElliott Hughesac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5033*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5034*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5035*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5036*d5c9a868SElliott Hughes_ACEOF 5037*d5c9a868SElliott Hughes 5038*d5c9a868SElliott Hughesfi 5039*d5c9a868SElliott Hughes 5040*d5c9a868SElliott Hughesdone 5041*d5c9a868SElliott Hughes 5042*d5c9a868SElliott Hughes 5043*d5c9a868SElliott Hughes# Check whether --enable-largefile was given. 5044*d5c9a868SElliott Hughesif test "${enable_largefile+set}" = set; then : 5045*d5c9a868SElliott Hughes enableval=$enable_largefile; 5046*d5c9a868SElliott Hughesfi 5047*d5c9a868SElliott Hughes 5048*d5c9a868SElliott Hughesif test "$enable_largefile" != no; then 5049*d5c9a868SElliott Hughes 5050*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5051*d5c9a868SElliott Hughes$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5052*d5c9a868SElliott Hughesif ${ac_cv_sys_largefile_CC+:} false; then : 5053*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5054*d5c9a868SElliott Hugheselse 5055*d5c9a868SElliott Hughes ac_cv_sys_largefile_CC=no 5056*d5c9a868SElliott Hughes if test "$GCC" != yes; then 5057*d5c9a868SElliott Hughes ac_save_CC=$CC 5058*d5c9a868SElliott Hughes while :; do 5059*d5c9a868SElliott Hughes # IRIX 6.2 and later do not support large files by default, 5060*d5c9a868SElliott Hughes # so use the C compiler's -n32 option if that helps. 5061*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062*d5c9a868SElliott Hughes/* end confdefs.h. */ 5063*d5c9a868SElliott Hughes#include <sys/types.h> 5064*d5c9a868SElliott Hughes /* Check that off_t can represent 2**63 - 1 correctly. 5065*d5c9a868SElliott Hughes We can't simply define LARGE_OFF_T to be 9223372036854775807, 5066*d5c9a868SElliott Hughes since some C++ compilers masquerading as C compilers 5067*d5c9a868SElliott Hughes incorrectly reject 9223372036854775807. */ 5068*d5c9a868SElliott Hughes#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5069*d5c9a868SElliott Hughes int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5070*d5c9a868SElliott Hughes && LARGE_OFF_T % 2147483647 == 1) 5071*d5c9a868SElliott Hughes ? 1 : -1]; 5072*d5c9a868SElliott Hughesint 5073*d5c9a868SElliott Hughesmain () 5074*d5c9a868SElliott Hughes{ 5075*d5c9a868SElliott Hughes 5076*d5c9a868SElliott Hughes ; 5077*d5c9a868SElliott Hughes return 0; 5078*d5c9a868SElliott Hughes} 5079*d5c9a868SElliott Hughes_ACEOF 5080*d5c9a868SElliott Hughes if ac_fn_c_try_compile "$LINENO"; then : 5081*d5c9a868SElliott Hughes break 5082*d5c9a868SElliott Hughesfi 5083*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext 5084*d5c9a868SElliott Hughes CC="$CC -n32" 5085*d5c9a868SElliott Hughes if ac_fn_c_try_compile "$LINENO"; then : 5086*d5c9a868SElliott Hughes ac_cv_sys_largefile_CC=' -n32'; break 5087*d5c9a868SElliott Hughesfi 5088*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext 5089*d5c9a868SElliott Hughes break 5090*d5c9a868SElliott Hughes done 5091*d5c9a868SElliott Hughes CC=$ac_save_CC 5092*d5c9a868SElliott Hughes rm -f conftest.$ac_ext 5093*d5c9a868SElliott Hughes fi 5094*d5c9a868SElliott Hughesfi 5095*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5096*d5c9a868SElliott Hughes$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5097*d5c9a868SElliott Hughes if test "$ac_cv_sys_largefile_CC" != no; then 5098*d5c9a868SElliott Hughes CC=$CC$ac_cv_sys_largefile_CC 5099*d5c9a868SElliott Hughes fi 5100*d5c9a868SElliott Hughes 5101*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5102*d5c9a868SElliott Hughes$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5103*d5c9a868SElliott Hughesif ${ac_cv_sys_file_offset_bits+:} false; then : 5104*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5105*d5c9a868SElliott Hugheselse 5106*d5c9a868SElliott Hughes while :; do 5107*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108*d5c9a868SElliott Hughes/* end confdefs.h. */ 5109*d5c9a868SElliott Hughes#include <sys/types.h> 5110*d5c9a868SElliott Hughes /* Check that off_t can represent 2**63 - 1 correctly. 5111*d5c9a868SElliott Hughes We can't simply define LARGE_OFF_T to be 9223372036854775807, 5112*d5c9a868SElliott Hughes since some C++ compilers masquerading as C compilers 5113*d5c9a868SElliott Hughes incorrectly reject 9223372036854775807. */ 5114*d5c9a868SElliott Hughes#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5115*d5c9a868SElliott Hughes int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5116*d5c9a868SElliott Hughes && LARGE_OFF_T % 2147483647 == 1) 5117*d5c9a868SElliott Hughes ? 1 : -1]; 5118*d5c9a868SElliott Hughesint 5119*d5c9a868SElliott Hughesmain () 5120*d5c9a868SElliott Hughes{ 5121*d5c9a868SElliott Hughes 5122*d5c9a868SElliott Hughes ; 5123*d5c9a868SElliott Hughes return 0; 5124*d5c9a868SElliott Hughes} 5125*d5c9a868SElliott Hughes_ACEOF 5126*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5127*d5c9a868SElliott Hughes ac_cv_sys_file_offset_bits=no; break 5128*d5c9a868SElliott Hughesfi 5129*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131*d5c9a868SElliott Hughes/* end confdefs.h. */ 5132*d5c9a868SElliott Hughes#define _FILE_OFFSET_BITS 64 5133*d5c9a868SElliott Hughes#include <sys/types.h> 5134*d5c9a868SElliott Hughes /* Check that off_t can represent 2**63 - 1 correctly. 5135*d5c9a868SElliott Hughes We can't simply define LARGE_OFF_T to be 9223372036854775807, 5136*d5c9a868SElliott Hughes since some C++ compilers masquerading as C compilers 5137*d5c9a868SElliott Hughes incorrectly reject 9223372036854775807. */ 5138*d5c9a868SElliott Hughes#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5139*d5c9a868SElliott Hughes int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5140*d5c9a868SElliott Hughes && LARGE_OFF_T % 2147483647 == 1) 5141*d5c9a868SElliott Hughes ? 1 : -1]; 5142*d5c9a868SElliott Hughesint 5143*d5c9a868SElliott Hughesmain () 5144*d5c9a868SElliott Hughes{ 5145*d5c9a868SElliott Hughes 5146*d5c9a868SElliott Hughes ; 5147*d5c9a868SElliott Hughes return 0; 5148*d5c9a868SElliott Hughes} 5149*d5c9a868SElliott Hughes_ACEOF 5150*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5151*d5c9a868SElliott Hughes ac_cv_sys_file_offset_bits=64; break 5152*d5c9a868SElliott Hughesfi 5153*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5154*d5c9a868SElliott Hughes ac_cv_sys_file_offset_bits=unknown 5155*d5c9a868SElliott Hughes break 5156*d5c9a868SElliott Hughesdone 5157*d5c9a868SElliott Hughesfi 5158*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5159*d5c9a868SElliott Hughes$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5160*d5c9a868SElliott Hughescase $ac_cv_sys_file_offset_bits in #( 5161*d5c9a868SElliott Hughes no | unknown) ;; 5162*d5c9a868SElliott Hughes *) 5163*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5164*d5c9a868SElliott Hughes#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5165*d5c9a868SElliott Hughes_ACEOF 5166*d5c9a868SElliott Hughes;; 5167*d5c9a868SElliott Hughesesac 5168*d5c9a868SElliott Hughesrm -rf conftest* 5169*d5c9a868SElliott Hughes if test $ac_cv_sys_file_offset_bits = unknown; then 5170*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5171*d5c9a868SElliott Hughes$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5172*d5c9a868SElliott Hughesif ${ac_cv_sys_large_files+:} false; then : 5173*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5174*d5c9a868SElliott Hugheselse 5175*d5c9a868SElliott Hughes while :; do 5176*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177*d5c9a868SElliott Hughes/* end confdefs.h. */ 5178*d5c9a868SElliott Hughes#include <sys/types.h> 5179*d5c9a868SElliott Hughes /* Check that off_t can represent 2**63 - 1 correctly. 5180*d5c9a868SElliott Hughes We can't simply define LARGE_OFF_T to be 9223372036854775807, 5181*d5c9a868SElliott Hughes since some C++ compilers masquerading as C compilers 5182*d5c9a868SElliott Hughes incorrectly reject 9223372036854775807. */ 5183*d5c9a868SElliott Hughes#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5184*d5c9a868SElliott Hughes int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5185*d5c9a868SElliott Hughes && LARGE_OFF_T % 2147483647 == 1) 5186*d5c9a868SElliott Hughes ? 1 : -1]; 5187*d5c9a868SElliott Hughesint 5188*d5c9a868SElliott Hughesmain () 5189*d5c9a868SElliott Hughes{ 5190*d5c9a868SElliott Hughes 5191*d5c9a868SElliott Hughes ; 5192*d5c9a868SElliott Hughes return 0; 5193*d5c9a868SElliott Hughes} 5194*d5c9a868SElliott Hughes_ACEOF 5195*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5196*d5c9a868SElliott Hughes ac_cv_sys_large_files=no; break 5197*d5c9a868SElliott Hughesfi 5198*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5199*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200*d5c9a868SElliott Hughes/* end confdefs.h. */ 5201*d5c9a868SElliott Hughes#define _LARGE_FILES 1 5202*d5c9a868SElliott Hughes#include <sys/types.h> 5203*d5c9a868SElliott Hughes /* Check that off_t can represent 2**63 - 1 correctly. 5204*d5c9a868SElliott Hughes We can't simply define LARGE_OFF_T to be 9223372036854775807, 5205*d5c9a868SElliott Hughes since some C++ compilers masquerading as C compilers 5206*d5c9a868SElliott Hughes incorrectly reject 9223372036854775807. */ 5207*d5c9a868SElliott Hughes#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5208*d5c9a868SElliott Hughes int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5209*d5c9a868SElliott Hughes && LARGE_OFF_T % 2147483647 == 1) 5210*d5c9a868SElliott Hughes ? 1 : -1]; 5211*d5c9a868SElliott Hughesint 5212*d5c9a868SElliott Hughesmain () 5213*d5c9a868SElliott Hughes{ 5214*d5c9a868SElliott Hughes 5215*d5c9a868SElliott Hughes ; 5216*d5c9a868SElliott Hughes return 0; 5217*d5c9a868SElliott Hughes} 5218*d5c9a868SElliott Hughes_ACEOF 5219*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5220*d5c9a868SElliott Hughes ac_cv_sys_large_files=1; break 5221*d5c9a868SElliott Hughesfi 5222*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5223*d5c9a868SElliott Hughes ac_cv_sys_large_files=unknown 5224*d5c9a868SElliott Hughes break 5225*d5c9a868SElliott Hughesdone 5226*d5c9a868SElliott Hughesfi 5227*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5228*d5c9a868SElliott Hughes$as_echo "$ac_cv_sys_large_files" >&6; } 5229*d5c9a868SElliott Hughescase $ac_cv_sys_large_files in #( 5230*d5c9a868SElliott Hughes no | unknown) ;; 5231*d5c9a868SElliott Hughes *) 5232*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5233*d5c9a868SElliott Hughes#define _LARGE_FILES $ac_cv_sys_large_files 5234*d5c9a868SElliott Hughes_ACEOF 5235*d5c9a868SElliott Hughes;; 5236*d5c9a868SElliott Hughesesac 5237*d5c9a868SElliott Hughesrm -rf conftest* 5238*d5c9a868SElliott Hughes fi 5239*d5c9a868SElliott Hughes 5240*d5c9a868SElliott Hughes 5241*d5c9a868SElliott Hughesfi 5242*d5c9a868SElliott Hughes 5243*d5c9a868SElliott Hughesac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 5244*d5c9a868SElliott Hughescase $ac_cv_c_int8_t in #( 5245*d5c9a868SElliott Hughes no|yes) ;; #( 5246*d5c9a868SElliott Hughes *) 5247*d5c9a868SElliott Hughes 5248*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5249*d5c9a868SElliott Hughes#define int8_t $ac_cv_c_int8_t 5250*d5c9a868SElliott Hughes_ACEOF 5251*d5c9a868SElliott Hughes;; 5252*d5c9a868SElliott Hughesesac 5253*d5c9a868SElliott Hughes 5254*d5c9a868SElliott Hughesac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 5255*d5c9a868SElliott Hughescase $ac_cv_c_int16_t in #( 5256*d5c9a868SElliott Hughes no|yes) ;; #( 5257*d5c9a868SElliott Hughes *) 5258*d5c9a868SElliott Hughes 5259*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5260*d5c9a868SElliott Hughes#define int16_t $ac_cv_c_int16_t 5261*d5c9a868SElliott Hughes_ACEOF 5262*d5c9a868SElliott Hughes;; 5263*d5c9a868SElliott Hughesesac 5264*d5c9a868SElliott Hughes 5265*d5c9a868SElliott Hughesac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 5266*d5c9a868SElliott Hughescase $ac_cv_c_int32_t in #( 5267*d5c9a868SElliott Hughes no|yes) ;; #( 5268*d5c9a868SElliott Hughes *) 5269*d5c9a868SElliott Hughes 5270*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5271*d5c9a868SElliott Hughes#define int32_t $ac_cv_c_int32_t 5272*d5c9a868SElliott Hughes_ACEOF 5273*d5c9a868SElliott Hughes;; 5274*d5c9a868SElliott Hughesesac 5275*d5c9a868SElliott Hughes 5276*d5c9a868SElliott Hughesac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 5277*d5c9a868SElliott Hughescase $ac_cv_c_uint8_t in #( 5278*d5c9a868SElliott Hughes no|yes) ;; #( 5279*d5c9a868SElliott Hughes *) 5280*d5c9a868SElliott Hughes 5281*d5c9a868SElliott Hughes$as_echo "#define _UINT8_T 1" >>confdefs.h 5282*d5c9a868SElliott Hughes 5283*d5c9a868SElliott Hughes 5284*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5285*d5c9a868SElliott Hughes#define uint8_t $ac_cv_c_uint8_t 5286*d5c9a868SElliott Hughes_ACEOF 5287*d5c9a868SElliott Hughes;; 5288*d5c9a868SElliott Hughes esac 5289*d5c9a868SElliott Hughes 5290*d5c9a868SElliott Hughesac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 5291*d5c9a868SElliott Hughescase $ac_cv_c_uint16_t in #( 5292*d5c9a868SElliott Hughes no|yes) ;; #( 5293*d5c9a868SElliott Hughes *) 5294*d5c9a868SElliott Hughes 5295*d5c9a868SElliott Hughes 5296*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5297*d5c9a868SElliott Hughes#define uint16_t $ac_cv_c_uint16_t 5298*d5c9a868SElliott Hughes_ACEOF 5299*d5c9a868SElliott Hughes;; 5300*d5c9a868SElliott Hughes esac 5301*d5c9a868SElliott Hughes 5302*d5c9a868SElliott Hughesac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 5303*d5c9a868SElliott Hughescase $ac_cv_c_uint32_t in #( 5304*d5c9a868SElliott Hughes no|yes) ;; #( 5305*d5c9a868SElliott Hughes *) 5306*d5c9a868SElliott Hughes 5307*d5c9a868SElliott Hughes$as_echo "#define _UINT32_T 1" >>confdefs.h 5308*d5c9a868SElliott Hughes 5309*d5c9a868SElliott Hughes 5310*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5311*d5c9a868SElliott Hughes#define uint32_t $ac_cv_c_uint32_t 5312*d5c9a868SElliott Hughes_ACEOF 5313*d5c9a868SElliott Hughes;; 5314*d5c9a868SElliott Hughes esac 5315*d5c9a868SElliott Hughes 5316*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 5317*d5c9a868SElliott Hughesif test "x$ac_cv_type_ssize_t" = xyes; then : 5318*d5c9a868SElliott Hughes 5319*d5c9a868SElliott Hugheselse 5320*d5c9a868SElliott Hughes 5321*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5322*d5c9a868SElliott Hughes#define ssize_t int 5323*d5c9a868SElliott Hughes_ACEOF 5324*d5c9a868SElliott Hughes 5325*d5c9a868SElliott Hughesfi 5326*d5c9a868SElliott Hughes 5327*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5328*d5c9a868SElliott Hughesif test "x$ac_cv_type_size_t" = xyes; then : 5329*d5c9a868SElliott Hughes 5330*d5c9a868SElliott Hugheselse 5331*d5c9a868SElliott Hughes 5332*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5333*d5c9a868SElliott Hughes#define size_t unsigned int 5334*d5c9a868SElliott Hughes_ACEOF 5335*d5c9a868SElliott Hughes 5336*d5c9a868SElliott Hughesfi 5337*d5c9a868SElliott Hughes 5338*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5339*d5c9a868SElliott Hughesif test "x$ac_cv_type_off_t" = xyes; then : 5340*d5c9a868SElliott Hughes 5341*d5c9a868SElliott Hugheselse 5342*d5c9a868SElliott Hughes 5343*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5344*d5c9a868SElliott Hughes#define off_t long int 5345*d5c9a868SElliott Hughes_ACEOF 5346*d5c9a868SElliott Hughes 5347*d5c9a868SElliott Hughesfi 5348*d5c9a868SElliott Hughes 5349*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5350*d5c9a868SElliott Hughes$as_echo_n "checking return type of signal handlers... " >&6; } 5351*d5c9a868SElliott Hughesif ${ac_cv_type_signal+:} false; then : 5352*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5353*d5c9a868SElliott Hugheselse 5354*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355*d5c9a868SElliott Hughes/* end confdefs.h. */ 5356*d5c9a868SElliott Hughes#include <sys/types.h> 5357*d5c9a868SElliott Hughes#include <signal.h> 5358*d5c9a868SElliott Hughes 5359*d5c9a868SElliott Hughesint 5360*d5c9a868SElliott Hughesmain () 5361*d5c9a868SElliott Hughes{ 5362*d5c9a868SElliott Hughesreturn *(signal (0, 0)) (0) == 1; 5363*d5c9a868SElliott Hughes ; 5364*d5c9a868SElliott Hughes return 0; 5365*d5c9a868SElliott Hughes} 5366*d5c9a868SElliott Hughes_ACEOF 5367*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5368*d5c9a868SElliott Hughes ac_cv_type_signal=int 5369*d5c9a868SElliott Hugheselse 5370*d5c9a868SElliott Hughes ac_cv_type_signal=void 5371*d5c9a868SElliott Hughesfi 5372*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5373*d5c9a868SElliott Hughesfi 5374*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5375*d5c9a868SElliott Hughes$as_echo "$ac_cv_type_signal" >&6; } 5376*d5c9a868SElliott Hughes 5377*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5378*d5c9a868SElliott Hughes#define RETSIGTYPE $ac_cv_type_signal 5379*d5c9a868SElliott Hughes_ACEOF 5380*d5c9a868SElliott Hughes 5381*d5c9a868SElliott Hughes 5382*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5383*d5c9a868SElliott Hughes$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5384*d5c9a868SElliott Hughesif ${ac_cv_type_uid_t+:} false; then : 5385*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5386*d5c9a868SElliott Hugheselse 5387*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388*d5c9a868SElliott Hughes/* end confdefs.h. */ 5389*d5c9a868SElliott Hughes#include <sys/types.h> 5390*d5c9a868SElliott Hughes 5391*d5c9a868SElliott Hughes_ACEOF 5392*d5c9a868SElliott Hughesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5393*d5c9a868SElliott Hughes $EGREP "uid_t" >/dev/null 2>&1; then : 5394*d5c9a868SElliott Hughes ac_cv_type_uid_t=yes 5395*d5c9a868SElliott Hugheselse 5396*d5c9a868SElliott Hughes ac_cv_type_uid_t=no 5397*d5c9a868SElliott Hughesfi 5398*d5c9a868SElliott Hughesrm -f conftest* 5399*d5c9a868SElliott Hughes 5400*d5c9a868SElliott Hughesfi 5401*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5402*d5c9a868SElliott Hughes$as_echo "$ac_cv_type_uid_t" >&6; } 5403*d5c9a868SElliott Hughesif test $ac_cv_type_uid_t = no; then 5404*d5c9a868SElliott Hughes 5405*d5c9a868SElliott Hughes$as_echo "#define uid_t int" >>confdefs.h 5406*d5c9a868SElliott Hughes 5407*d5c9a868SElliott Hughes 5408*d5c9a868SElliott Hughes$as_echo "#define gid_t int" >>confdefs.h 5409*d5c9a868SElliott Hughes 5410*d5c9a868SElliott Hughesfi 5411*d5c9a868SElliott Hughes 5412*d5c9a868SElliott Hughes 5413*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" 5414*d5c9a868SElliott Hughesif test "x$ac_cv_type_caddr_t" = xyes; then : 5415*d5c9a868SElliott Hughes 5416*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5417*d5c9a868SElliott Hughes#define HAVE_CADDR_T 1 5418*d5c9a868SElliott Hughes_ACEOF 5419*d5c9a868SElliott Hughes 5420*d5c9a868SElliott Hughes 5421*d5c9a868SElliott Hughesfi 5422*d5c9a868SElliott Hughes 5423*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 5424*d5c9a868SElliott Hughesif test "x$ac_cv_type_long_long" = xyes; then : 5425*d5c9a868SElliott Hughes 5426*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5427*d5c9a868SElliott Hughes#define HAVE_LONG_LONG 1 5428*d5c9a868SElliott Hughes_ACEOF 5429*d5c9a868SElliott Hughes 5430*d5c9a868SElliott Hughes 5431*d5c9a868SElliott Hughesfi 5432*d5c9a868SElliott Hughes 5433*d5c9a868SElliott Hughes# The cast to long int works around a bug in the HP C Compiler 5434*d5c9a868SElliott Hughes# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5435*d5c9a868SElliott Hughes# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5436*d5c9a868SElliott Hughes# This bug is HP SR number 8606223364. 5437*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 5438*d5c9a868SElliott Hughes$as_echo_n "checking size of size_t... " >&6; } 5439*d5c9a868SElliott Hughesif ${ac_cv_sizeof_size_t+:} false; then : 5440*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5441*d5c9a868SElliott Hugheselse 5442*d5c9a868SElliott Hughes if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 5443*d5c9a868SElliott Hughes 5444*d5c9a868SElliott Hugheselse 5445*d5c9a868SElliott Hughes if test "$ac_cv_type_size_t" = yes; then 5446*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5447*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5448*d5c9a868SElliott Hughesas_fn_error 77 "cannot compute sizeof (size_t) 5449*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 5450*d5c9a868SElliott Hughes else 5451*d5c9a868SElliott Hughes ac_cv_sizeof_size_t=0 5452*d5c9a868SElliott Hughes fi 5453*d5c9a868SElliott Hughesfi 5454*d5c9a868SElliott Hughes 5455*d5c9a868SElliott Hughesfi 5456*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 5457*d5c9a868SElliott Hughes$as_echo "$ac_cv_sizeof_size_t" >&6; } 5458*d5c9a868SElliott Hughes 5459*d5c9a868SElliott Hughes 5460*d5c9a868SElliott Hughes 5461*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5462*d5c9a868SElliott Hughes#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 5463*d5c9a868SElliott Hughes_ACEOF 5464*d5c9a868SElliott Hughes 5465*d5c9a868SElliott Hughes 5466*d5c9a868SElliott Hughes# The cast to long int works around a bug in the HP C Compiler 5467*d5c9a868SElliott Hughes# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5468*d5c9a868SElliott Hughes# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5469*d5c9a868SElliott Hughes# This bug is HP SR number 8606223364. 5470*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 5471*d5c9a868SElliott Hughes$as_echo_n "checking size of off_t... " >&6; } 5472*d5c9a868SElliott Hughesif ${ac_cv_sizeof_off_t+:} false; then : 5473*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5474*d5c9a868SElliott Hugheselse 5475*d5c9a868SElliott Hughes if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 5476*d5c9a868SElliott Hughes 5477*d5c9a868SElliott Hugheselse 5478*d5c9a868SElliott Hughes if test "$ac_cv_type_off_t" = yes; then 5479*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5480*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5481*d5c9a868SElliott Hughesas_fn_error 77 "cannot compute sizeof (off_t) 5482*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 5483*d5c9a868SElliott Hughes else 5484*d5c9a868SElliott Hughes ac_cv_sizeof_off_t=0 5485*d5c9a868SElliott Hughes fi 5486*d5c9a868SElliott Hughesfi 5487*d5c9a868SElliott Hughes 5488*d5c9a868SElliott Hughesfi 5489*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 5490*d5c9a868SElliott Hughes$as_echo "$ac_cv_sizeof_off_t" >&6; } 5491*d5c9a868SElliott Hughes 5492*d5c9a868SElliott Hughes 5493*d5c9a868SElliott Hughes 5494*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5495*d5c9a868SElliott Hughes#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 5496*d5c9a868SElliott Hughes_ACEOF 5497*d5c9a868SElliott Hughes 5498*d5c9a868SElliott Hughes 5499*d5c9a868SElliott Hughes# The cast to long int works around a bug in the HP C Compiler 5500*d5c9a868SElliott Hughes# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5501*d5c9a868SElliott Hughes# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5502*d5c9a868SElliott Hughes# This bug is HP SR number 8606223364. 5503*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 5504*d5c9a868SElliott Hughes$as_echo_n "checking size of time_t... " >&6; } 5505*d5c9a868SElliott Hughesif ${ac_cv_sizeof_time_t+:} false; then : 5506*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5507*d5c9a868SElliott Hugheselse 5508*d5c9a868SElliott Hughes if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 5509*d5c9a868SElliott Hughes 5510*d5c9a868SElliott Hugheselse 5511*d5c9a868SElliott Hughes if test "$ac_cv_type_time_t" = yes; then 5512*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5513*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5514*d5c9a868SElliott Hughesas_fn_error 77 "cannot compute sizeof (time_t) 5515*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 5516*d5c9a868SElliott Hughes else 5517*d5c9a868SElliott Hughes ac_cv_sizeof_time_t=0 5518*d5c9a868SElliott Hughes fi 5519*d5c9a868SElliott Hughesfi 5520*d5c9a868SElliott Hughes 5521*d5c9a868SElliott Hughesfi 5522*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 5523*d5c9a868SElliott Hughes$as_echo "$ac_cv_sizeof_time_t" >&6; } 5524*d5c9a868SElliott Hughes 5525*d5c9a868SElliott Hughes 5526*d5c9a868SElliott Hughes 5527*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5528*d5c9a868SElliott Hughes#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 5529*d5c9a868SElliott Hughes_ACEOF 5530*d5c9a868SElliott Hughes 5531*d5c9a868SElliott Hughes 5532*d5c9a868SElliott Hughes# The cast to long int works around a bug in the HP C Compiler 5533*d5c9a868SElliott Hughes# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5534*d5c9a868SElliott Hughes# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5535*d5c9a868SElliott Hughes# This bug is HP SR number 8606223364. 5536*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 5537*d5c9a868SElliott Hughes$as_echo_n "checking size of long... " >&6; } 5538*d5c9a868SElliott Hughesif ${ac_cv_sizeof_long+:} false; then : 5539*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5540*d5c9a868SElliott Hugheselse 5541*d5c9a868SElliott Hughes if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5542*d5c9a868SElliott Hughes 5543*d5c9a868SElliott Hugheselse 5544*d5c9a868SElliott Hughes if test "$ac_cv_type_long" = yes; then 5545*d5c9a868SElliott Hughes { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5546*d5c9a868SElliott Hughes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5547*d5c9a868SElliott Hughesas_fn_error 77 "cannot compute sizeof (long) 5548*d5c9a868SElliott HughesSee \`config.log' for more details" "$LINENO" 5; } 5549*d5c9a868SElliott Hughes else 5550*d5c9a868SElliott Hughes ac_cv_sizeof_long=0 5551*d5c9a868SElliott Hughes fi 5552*d5c9a868SElliott Hughesfi 5553*d5c9a868SElliott Hughes 5554*d5c9a868SElliott Hughesfi 5555*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 5556*d5c9a868SElliott Hughes$as_echo "$ac_cv_sizeof_long" >&6; } 5557*d5c9a868SElliott Hughes 5558*d5c9a868SElliott Hughes 5559*d5c9a868SElliott Hughes 5560*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5561*d5c9a868SElliott Hughes#define SIZEOF_LONG $ac_cv_sizeof_long 5562*d5c9a868SElliott Hughes_ACEOF 5563*d5c9a868SElliott Hughes 5564*d5c9a868SElliott Hughes 5565*d5c9a868SElliott Hughes 5566*d5c9a868SElliott Hughesseek_function= 5567*d5c9a868SElliott Hughes 5568*d5c9a868SElliott Hughesif test $ac_cv_sizeof_off_t -ge 8 ; then 5569*d5c9a868SElliott Hughes seek_function=lseek 5570*d5c9a868SElliott Hughesfi 5571*d5c9a868SElliott Hughes 5572*d5c9a868SElliott Hughesif test X$seek_function = X ; then 5573*d5c9a868SElliott Hughes 5574*d5c9a868SElliott Hughes$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 5575*d5c9a868SElliott Hughes 5576*d5c9a868SElliott Hughes ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 5577*d5c9a868SElliott Hughesif test "x$ac_cv_type_off64_t" = xyes; then : 5578*d5c9a868SElliott Hughes 5579*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5580*d5c9a868SElliott Hughes#define HAVE_OFF64_T 1 5581*d5c9a868SElliott Hughes_ACEOF 5582*d5c9a868SElliott Hughes 5583*d5c9a868SElliott Hughes for ac_func in lseek64 5584*d5c9a868SElliott Hughesdo : 5585*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" 5586*d5c9a868SElliott Hughesif test "x$ac_cv_func_lseek64" = xyes; then : 5587*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5588*d5c9a868SElliott Hughes#define HAVE_LSEEK64 1 5589*d5c9a868SElliott Hughes_ACEOF 5590*d5c9a868SElliott Hughes seek_function=lseek64 5591*d5c9a868SElliott Hughesfi 5592*d5c9a868SElliott Hughesdone 5593*d5c9a868SElliott Hughes 5594*d5c9a868SElliott Hughes 5595*d5c9a868SElliott Hughesfi 5596*d5c9a868SElliott Hughes 5597*d5c9a868SElliott Hughes for ac_func in stat64 5598*d5c9a868SElliott Hughesdo : 5599*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" 5600*d5c9a868SElliott Hughesif test "x$ac_cv_func_stat64" = xyes; then : 5601*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5602*d5c9a868SElliott Hughes#define HAVE_STAT64 1 5603*d5c9a868SElliott Hughes_ACEOF 5604*d5c9a868SElliott Hughes 5605*d5c9a868SElliott Hughesfi 5606*d5c9a868SElliott Hughesdone 5607*d5c9a868SElliott Hughes 5608*d5c9a868SElliott Hughes if test X$seek_function = Xlseek64 ; then 5609*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek64 declared in unistd.h" >&5 5610*d5c9a868SElliott Hughes$as_echo_n "checking whether lseek64 declared in unistd.h... " >&6; } 5611*d5c9a868SElliott Hughes if ${mtools_cv_have_lseek64_prototype+:} false; then : 5612*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5613*d5c9a868SElliott Hugheselse 5614*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615*d5c9a868SElliott Hughes/* end confdefs.h. */ 5616*d5c9a868SElliott Hughes 5617*d5c9a868SElliott Hughes #define _LARGEFILE64_SOURCE 5618*d5c9a868SElliott Hughes #include <sys/types.h> 5619*d5c9a868SElliott Hughes #include <unistd.h> 5620*d5c9a868SElliott Hughes 5621*d5c9a868SElliott Hughesint 5622*d5c9a868SElliott Hughesmain () 5623*d5c9a868SElliott Hughes{ 5624*d5c9a868SElliott Hughesextern int lseek64(int); 5625*d5c9a868SElliott Hughes ; 5626*d5c9a868SElliott Hughes return 0; 5627*d5c9a868SElliott Hughes} 5628*d5c9a868SElliott Hughes_ACEOF 5629*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5630*d5c9a868SElliott Hughes mtools_cv_have_lseek64_prototype=no 5631*d5c9a868SElliott Hugheselse 5632*d5c9a868SElliott Hughes mtools_cv_have_lseek64_prototype=yes 5633*d5c9a868SElliott Hughesfi 5634*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5635*d5c9a868SElliott Hughesfi 5636*d5c9a868SElliott Hughes 5637*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_lseek64_prototype" >&5 5638*d5c9a868SElliott Hughes$as_echo "$mtools_cv_have_lseek64_prototype" >&6; } 5639*d5c9a868SElliott Hughes if test "$mtools_cv_have_lseek64_prototype" = yes; then 5640*d5c9a868SElliott Hughes 5641*d5c9a868SElliott Hughes$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h 5642*d5c9a868SElliott Hughes 5643*d5c9a868SElliott Hughes fi 5644*d5c9a868SElliott Hughes fi 5645*d5c9a868SElliott Hughesfi 5646*d5c9a868SElliott Hughes 5647*d5c9a868SElliott Hughesif test X$seek_function = X ; then 5648*d5c9a868SElliott Hughes 5649*d5c9a868SElliott Hughes$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 5650*d5c9a868SElliott Hughes 5651*d5c9a868SElliott Hughes ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" 5652*d5c9a868SElliott Hughesif test "x$ac_cv_type_loff_t" = xyes; then : 5653*d5c9a868SElliott Hughes 5654*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5655*d5c9a868SElliott Hughes#define HAVE_LOFF_T 1 5656*d5c9a868SElliott Hughes_ACEOF 5657*d5c9a868SElliott Hughes 5658*d5c9a868SElliott Hughes for ac_func in llseek 5659*d5c9a868SElliott Hughesdo : 5660*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" 5661*d5c9a868SElliott Hughesif test "x$ac_cv_func_llseek" = xyes; then : 5662*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5663*d5c9a868SElliott Hughes#define HAVE_LLSEEK 1 5664*d5c9a868SElliott Hughes_ACEOF 5665*d5c9a868SElliott Hughes seek_function=llseek 5666*d5c9a868SElliott Hughesfi 5667*d5c9a868SElliott Hughesdone 5668*d5c9a868SElliott Hughes 5669*d5c9a868SElliott Hughes 5670*d5c9a868SElliott Hughesfi 5671*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "offset_t" "ac_cv_type_offset_t" "$ac_includes_default" 5672*d5c9a868SElliott Hughesif test "x$ac_cv_type_offset_t" = xyes; then : 5673*d5c9a868SElliott Hughes 5674*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5675*d5c9a868SElliott Hughes#define HAVE_OFFSET_T 1 5676*d5c9a868SElliott Hughes_ACEOF 5677*d5c9a868SElliott Hughes 5678*d5c9a868SElliott Hughes for ac_func in llseek 5679*d5c9a868SElliott Hughesdo : 5680*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" 5681*d5c9a868SElliott Hughesif test "x$ac_cv_func_llseek" = xyes; then : 5682*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5683*d5c9a868SElliott Hughes#define HAVE_LLSEEK 1 5684*d5c9a868SElliott Hughes_ACEOF 5685*d5c9a868SElliott Hughes seek_function=llseek 5686*d5c9a868SElliott Hughesfi 5687*d5c9a868SElliott Hughesdone 5688*d5c9a868SElliott Hughes 5689*d5c9a868SElliott Hughes 5690*d5c9a868SElliott Hughesfi 5691*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 5692*d5c9a868SElliott Hughesif test "x$ac_cv_type_long_long" = xyes; then : 5693*d5c9a868SElliott Hughes 5694*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5695*d5c9a868SElliott Hughes#define HAVE_LONG_LONG 1 5696*d5c9a868SElliott Hughes_ACEOF 5697*d5c9a868SElliott Hughes 5698*d5c9a868SElliott Hughes for ac_func in llseek 5699*d5c9a868SElliott Hughesdo : 5700*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" 5701*d5c9a868SElliott Hughesif test "x$ac_cv_func_llseek" = xyes; then : 5702*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5703*d5c9a868SElliott Hughes#define HAVE_LLSEEK 1 5704*d5c9a868SElliott Hughes_ACEOF 5705*d5c9a868SElliott Hughes seek_function=llseek 5706*d5c9a868SElliott Hughesfi 5707*d5c9a868SElliott Hughesdone 5708*d5c9a868SElliott Hughes 5709*d5c9a868SElliott Hughes 5710*d5c9a868SElliott Hughesfi 5711*d5c9a868SElliott Hughes 5712*d5c9a868SElliott Hughes 5713*d5c9a868SElliott Hughes if test X$seek_function = Xllseek ; then 5714*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llseek declared in unistd.h" >&5 5715*d5c9a868SElliott Hughes$as_echo_n "checking whether llseek declared in unistd.h... " >&6; } 5716*d5c9a868SElliott Hughes if ${mtools_cv_have_llseek_prototype+:} false; then : 5717*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5718*d5c9a868SElliott Hugheselse 5719*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720*d5c9a868SElliott Hughes/* end confdefs.h. */ 5721*d5c9a868SElliott Hughes 5722*d5c9a868SElliott Hughes #define _LARGEFILE_SOURCE 5723*d5c9a868SElliott Hughes #define _LARGEFILE64_SOURCE 5724*d5c9a868SElliott Hughes #include <sys/types.h> 5725*d5c9a868SElliott Hughes #include <unistd.h> 5726*d5c9a868SElliott Hughes 5727*d5c9a868SElliott Hughesint 5728*d5c9a868SElliott Hughesmain () 5729*d5c9a868SElliott Hughes{ 5730*d5c9a868SElliott Hughesextern int llseek(int); 5731*d5c9a868SElliott Hughes ; 5732*d5c9a868SElliott Hughes return 0; 5733*d5c9a868SElliott Hughes} 5734*d5c9a868SElliott Hughes_ACEOF 5735*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5736*d5c9a868SElliott Hughes mtools_cv_have_llseek_prototype=no 5737*d5c9a868SElliott Hugheselse 5738*d5c9a868SElliott Hughes mtools_cv_have_llseek_prototype=yes 5739*d5c9a868SElliott Hughesfi 5740*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5741*d5c9a868SElliott Hughesfi 5742*d5c9a868SElliott Hughes 5743*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_llseek_prototype" >&5 5744*d5c9a868SElliott Hughes$as_echo "$mtools_cv_have_llseek_prototype" >&6; } 5745*d5c9a868SElliott Hughes if test "$mtools_cv_have_llseek_prototype" = yes; then 5746*d5c9a868SElliott Hughes 5747*d5c9a868SElliott Hughes$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h 5748*d5c9a868SElliott Hughes 5749*d5c9a868SElliott Hughes fi 5750*d5c9a868SElliott Hughes fi 5751*d5c9a868SElliott Hughesfi 5752*d5c9a868SElliott Hughes 5753*d5c9a868SElliott Hughesfor ac_func in htons 5754*d5c9a868SElliott Hughesdo : 5755*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons" 5756*d5c9a868SElliott Hughesif test "x$ac_cv_func_htons" = xyes; then : 5757*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5758*d5c9a868SElliott Hughes#define HAVE_HTONS 1 5759*d5c9a868SElliott Hughes_ACEOF 5760*d5c9a868SElliott Hughes 5761*d5c9a868SElliott Hughesfi 5762*d5c9a868SElliott Hughesdone 5763*d5c9a868SElliott Hughes 5764*d5c9a868SElliott Hughes 5765*d5c9a868SElliott Hughes 5766*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5767*d5c9a868SElliott Hughes$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5768*d5c9a868SElliott Hughesif ${ac_cv_c_const+:} false; then : 5769*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5770*d5c9a868SElliott Hugheselse 5771*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772*d5c9a868SElliott Hughes/* end confdefs.h. */ 5773*d5c9a868SElliott Hughes 5774*d5c9a868SElliott Hughesint 5775*d5c9a868SElliott Hughesmain () 5776*d5c9a868SElliott Hughes{ 5777*d5c9a868SElliott Hughes 5778*d5c9a868SElliott Hughes#ifndef __cplusplus 5779*d5c9a868SElliott Hughes /* Ultrix mips cc rejects this sort of thing. */ 5780*d5c9a868SElliott Hughes typedef int charset[2]; 5781*d5c9a868SElliott Hughes const charset cs = { 0, 0 }; 5782*d5c9a868SElliott Hughes /* SunOS 4.1.1 cc rejects this. */ 5783*d5c9a868SElliott Hughes char const *const *pcpcc; 5784*d5c9a868SElliott Hughes char **ppc; 5785*d5c9a868SElliott Hughes /* NEC SVR4.0.2 mips cc rejects this. */ 5786*d5c9a868SElliott Hughes struct point {int x, y;}; 5787*d5c9a868SElliott Hughes static struct point const zero = {0,0}; 5788*d5c9a868SElliott Hughes /* AIX XL C 1.02.0.0 rejects this. 5789*d5c9a868SElliott Hughes It does not let you subtract one const X* pointer from another in 5790*d5c9a868SElliott Hughes an arm of an if-expression whose if-part is not a constant 5791*d5c9a868SElliott Hughes expression */ 5792*d5c9a868SElliott Hughes const char *g = "string"; 5793*d5c9a868SElliott Hughes pcpcc = &g + (g ? g-g : 0); 5794*d5c9a868SElliott Hughes /* HPUX 7.0 cc rejects these. */ 5795*d5c9a868SElliott Hughes ++pcpcc; 5796*d5c9a868SElliott Hughes ppc = (char**) pcpcc; 5797*d5c9a868SElliott Hughes pcpcc = (char const *const *) ppc; 5798*d5c9a868SElliott Hughes { /* SCO 3.2v4 cc rejects this sort of thing. */ 5799*d5c9a868SElliott Hughes char tx; 5800*d5c9a868SElliott Hughes char *t = &tx; 5801*d5c9a868SElliott Hughes char const *s = 0 ? (char *) 0 : (char const *) 0; 5802*d5c9a868SElliott Hughes 5803*d5c9a868SElliott Hughes *t++ = 0; 5804*d5c9a868SElliott Hughes if (s) return 0; 5805*d5c9a868SElliott Hughes } 5806*d5c9a868SElliott Hughes { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5807*d5c9a868SElliott Hughes int x[] = {25, 17}; 5808*d5c9a868SElliott Hughes const int *foo = &x[0]; 5809*d5c9a868SElliott Hughes ++foo; 5810*d5c9a868SElliott Hughes } 5811*d5c9a868SElliott Hughes { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5812*d5c9a868SElliott Hughes typedef const int *iptr; 5813*d5c9a868SElliott Hughes iptr p = 0; 5814*d5c9a868SElliott Hughes ++p; 5815*d5c9a868SElliott Hughes } 5816*d5c9a868SElliott Hughes { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5817*d5c9a868SElliott Hughes "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5818*d5c9a868SElliott Hughes struct s { int j; const int *ap[3]; } bx; 5819*d5c9a868SElliott Hughes struct s *b = &bx; b->j = 5; 5820*d5c9a868SElliott Hughes } 5821*d5c9a868SElliott Hughes { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5822*d5c9a868SElliott Hughes const int foo = 10; 5823*d5c9a868SElliott Hughes if (!foo) return 0; 5824*d5c9a868SElliott Hughes } 5825*d5c9a868SElliott Hughes return !cs[0] && !zero.x; 5826*d5c9a868SElliott Hughes#endif 5827*d5c9a868SElliott Hughes 5828*d5c9a868SElliott Hughes ; 5829*d5c9a868SElliott Hughes return 0; 5830*d5c9a868SElliott Hughes} 5831*d5c9a868SElliott Hughes_ACEOF 5832*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5833*d5c9a868SElliott Hughes ac_cv_c_const=yes 5834*d5c9a868SElliott Hugheselse 5835*d5c9a868SElliott Hughes ac_cv_c_const=no 5836*d5c9a868SElliott Hughesfi 5837*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5838*d5c9a868SElliott Hughesfi 5839*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5840*d5c9a868SElliott Hughes$as_echo "$ac_cv_c_const" >&6; } 5841*d5c9a868SElliott Hughesif test $ac_cv_c_const = no; then 5842*d5c9a868SElliott Hughes 5843*d5c9a868SElliott Hughes$as_echo "#define const /**/" >>confdefs.h 5844*d5c9a868SElliott Hughes 5845*d5c9a868SElliott Hughesfi 5846*d5c9a868SElliott Hughes 5847*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5848*d5c9a868SElliott Hughes$as_echo_n "checking for inline... " >&6; } 5849*d5c9a868SElliott Hughesif ${ac_cv_c_inline+:} false; then : 5850*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5851*d5c9a868SElliott Hugheselse 5852*d5c9a868SElliott Hughes ac_cv_c_inline=no 5853*d5c9a868SElliott Hughesfor ac_kw in inline __inline__ __inline; do 5854*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855*d5c9a868SElliott Hughes/* end confdefs.h. */ 5856*d5c9a868SElliott Hughes#ifndef __cplusplus 5857*d5c9a868SElliott Hughestypedef int foo_t; 5858*d5c9a868SElliott Hughesstatic $ac_kw foo_t static_foo () {return 0; } 5859*d5c9a868SElliott Hughes$ac_kw foo_t foo () {return 0; } 5860*d5c9a868SElliott Hughes#endif 5861*d5c9a868SElliott Hughes 5862*d5c9a868SElliott Hughes_ACEOF 5863*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5864*d5c9a868SElliott Hughes ac_cv_c_inline=$ac_kw 5865*d5c9a868SElliott Hughesfi 5866*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5867*d5c9a868SElliott Hughes test "$ac_cv_c_inline" != no && break 5868*d5c9a868SElliott Hughesdone 5869*d5c9a868SElliott Hughes 5870*d5c9a868SElliott Hughesfi 5871*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5872*d5c9a868SElliott Hughes$as_echo "$ac_cv_c_inline" >&6; } 5873*d5c9a868SElliott Hughes 5874*d5c9a868SElliott Hughescase $ac_cv_c_inline in 5875*d5c9a868SElliott Hughes inline | yes) ;; 5876*d5c9a868SElliott Hughes *) 5877*d5c9a868SElliott Hughes case $ac_cv_c_inline in 5878*d5c9a868SElliott Hughes no) ac_val=;; 5879*d5c9a868SElliott Hughes *) ac_val=$ac_cv_c_inline;; 5880*d5c9a868SElliott Hughes esac 5881*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 5882*d5c9a868SElliott Hughes#ifndef __cplusplus 5883*d5c9a868SElliott Hughes#define inline $ac_val 5884*d5c9a868SElliott Hughes#endif 5885*d5c9a868SElliott Hughes_ACEOF 5886*d5c9a868SElliott Hughes ;; 5887*d5c9a868SElliott Hughesesac 5888*d5c9a868SElliott Hughes 5889*d5c9a868SElliott Hughesac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5890*d5c9a868SElliott Hughesif test "x$ac_cv_type_size_t" = xyes; then : 5891*d5c9a868SElliott Hughes 5892*d5c9a868SElliott Hugheselse 5893*d5c9a868SElliott Hughes 5894*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 5895*d5c9a868SElliott Hughes#define size_t unsigned int 5896*d5c9a868SElliott Hughes_ACEOF 5897*d5c9a868SElliott Hughes 5898*d5c9a868SElliott Hughesfi 5899*d5c9a868SElliott Hughes 5900*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5901*d5c9a868SElliott Hughes$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5902*d5c9a868SElliott Hughesif ${ac_cv_header_time+:} false; then : 5903*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5904*d5c9a868SElliott Hugheselse 5905*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5906*d5c9a868SElliott Hughes/* end confdefs.h. */ 5907*d5c9a868SElliott Hughes#include <sys/types.h> 5908*d5c9a868SElliott Hughes#include <sys/time.h> 5909*d5c9a868SElliott Hughes#include <time.h> 5910*d5c9a868SElliott Hughes 5911*d5c9a868SElliott Hughesint 5912*d5c9a868SElliott Hughesmain () 5913*d5c9a868SElliott Hughes{ 5914*d5c9a868SElliott Hughesif ((struct tm *) 0) 5915*d5c9a868SElliott Hughesreturn 0; 5916*d5c9a868SElliott Hughes ; 5917*d5c9a868SElliott Hughes return 0; 5918*d5c9a868SElliott Hughes} 5919*d5c9a868SElliott Hughes_ACEOF 5920*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5921*d5c9a868SElliott Hughes ac_cv_header_time=yes 5922*d5c9a868SElliott Hugheselse 5923*d5c9a868SElliott Hughes ac_cv_header_time=no 5924*d5c9a868SElliott Hughesfi 5925*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5926*d5c9a868SElliott Hughesfi 5927*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5928*d5c9a868SElliott Hughes$as_echo "$ac_cv_header_time" >&6; } 5929*d5c9a868SElliott Hughesif test $ac_cv_header_time = yes; then 5930*d5c9a868SElliott Hughes 5931*d5c9a868SElliott Hughes$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5932*d5c9a868SElliott Hughes 5933*d5c9a868SElliott Hughesfi 5934*d5c9a868SElliott Hughes 5935*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 5936*d5c9a868SElliott Hughes$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 5937*d5c9a868SElliott Hughesif ${ac_cv_struct_tm+:} false; then : 5938*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5939*d5c9a868SElliott Hugheselse 5940*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5941*d5c9a868SElliott Hughes/* end confdefs.h. */ 5942*d5c9a868SElliott Hughes#include <sys/types.h> 5943*d5c9a868SElliott Hughes#include <time.h> 5944*d5c9a868SElliott Hughes 5945*d5c9a868SElliott Hughesint 5946*d5c9a868SElliott Hughesmain () 5947*d5c9a868SElliott Hughes{ 5948*d5c9a868SElliott Hughesstruct tm tm; 5949*d5c9a868SElliott Hughes int *p = &tm.tm_sec; 5950*d5c9a868SElliott Hughes return !p; 5951*d5c9a868SElliott Hughes ; 5952*d5c9a868SElliott Hughes return 0; 5953*d5c9a868SElliott Hughes} 5954*d5c9a868SElliott Hughes_ACEOF 5955*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5956*d5c9a868SElliott Hughes ac_cv_struct_tm=time.h 5957*d5c9a868SElliott Hugheselse 5958*d5c9a868SElliott Hughes ac_cv_struct_tm=sys/time.h 5959*d5c9a868SElliott Hughesfi 5960*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961*d5c9a868SElliott Hughesfi 5962*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 5963*d5c9a868SElliott Hughes$as_echo "$ac_cv_struct_tm" >&6; } 5964*d5c9a868SElliott Hughesif test $ac_cv_struct_tm = sys/time.h; then 5965*d5c9a868SElliott Hughes 5966*d5c9a868SElliott Hughes$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 5967*d5c9a868SElliott Hughes 5968*d5c9a868SElliott Hughesfi 5969*d5c9a868SElliott Hughes 5970*d5c9a868SElliott Hughes 5971*d5c9a868SElliott Hughes 5972*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5973*d5c9a868SElliott Hughes$as_echo_n "checking return type of signal handlers... " >&6; } 5974*d5c9a868SElliott Hughesif ${ac_cv_type_signal+:} false; then : 5975*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 5976*d5c9a868SElliott Hugheselse 5977*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978*d5c9a868SElliott Hughes/* end confdefs.h. */ 5979*d5c9a868SElliott Hughes#include <sys/types.h> 5980*d5c9a868SElliott Hughes#include <signal.h> 5981*d5c9a868SElliott Hughes 5982*d5c9a868SElliott Hughesint 5983*d5c9a868SElliott Hughesmain () 5984*d5c9a868SElliott Hughes{ 5985*d5c9a868SElliott Hughesreturn *(signal (0, 0)) (0) == 1; 5986*d5c9a868SElliott Hughes ; 5987*d5c9a868SElliott Hughes return 0; 5988*d5c9a868SElliott Hughes} 5989*d5c9a868SElliott Hughes_ACEOF 5990*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 5991*d5c9a868SElliott Hughes ac_cv_type_signal=int 5992*d5c9a868SElliott Hugheselse 5993*d5c9a868SElliott Hughes ac_cv_type_signal=void 5994*d5c9a868SElliott Hughesfi 5995*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5996*d5c9a868SElliott Hughesfi 5997*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5998*d5c9a868SElliott Hughes$as_echo "$ac_cv_type_signal" >&6; } 5999*d5c9a868SElliott Hughes 6000*d5c9a868SElliott Hughescat >>confdefs.h <<_ACEOF 6001*d5c9a868SElliott Hughes#define RETSIGTYPE $ac_cv_type_signal 6002*d5c9a868SElliott Hughes_ACEOF 6003*d5c9a868SElliott Hughes 6004*d5c9a868SElliott Hughes 6005*d5c9a868SElliott Hughesfor ac_func in strerror random srandom strchr strrchr lockf flock \ 6006*d5c9a868SElliott Hughesstrcasecmp strncasecmp strnlen atexit on_exit getpass memmove \ 6007*d5c9a868SElliott Hughesstrdup strndup strcspn strspn strtoul strtol strtoll strtoi strtoui \ 6008*d5c9a868SElliott Hughesmemcpy strpbrk memset setenv seteuid setresuid setpgrp \ 6009*d5c9a868SElliott Hughestcsetattr tcflush basename fchdir media_oldaliases \ 6010*d5c9a868SElliott Hughessnprintf setlocale toupper_l strncasecmp_l \ 6011*d5c9a868SElliott Hugheswcsdup wcscasecmp wcsnlen putwc \ 6012*d5c9a868SElliott Hughesgetuserid getgroupid \ 6013*d5c9a868SElliott Hughesalarm sigaction usleep 6014*d5c9a868SElliott Hughesdo : 6015*d5c9a868SElliott Hughes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6016*d5c9a868SElliott Hughesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6017*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6018*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 6019*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6020*d5c9a868SElliott Hughes_ACEOF 6021*d5c9a868SElliott Hughes 6022*d5c9a868SElliott Hughesfi 6023*d5c9a868SElliott Hughesdone 6024*d5c9a868SElliott Hughes 6025*d5c9a868SElliott Hughes 6026*d5c9a868SElliott Hughes 6027*d5c9a868SElliott Hughesfor ac_func in utimes utime 6028*d5c9a868SElliott Hughesdo : 6029*d5c9a868SElliott Hughes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6030*d5c9a868SElliott Hughesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6031*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6032*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 6033*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6034*d5c9a868SElliott Hughes_ACEOF 6035*d5c9a868SElliott Hughes break 6036*d5c9a868SElliott Hughesfi 6037*d5c9a868SElliott Hughesdone 6038*d5c9a868SElliott Hughes 6039*d5c9a868SElliott Hughesfor ac_func in tzset gettimeofday 6040*d5c9a868SElliott Hughesdo : 6041*d5c9a868SElliott Hughes as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6042*d5c9a868SElliott Hughesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6043*d5c9a868SElliott Hughesif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6044*d5c9a868SElliott Hughes cat >>confdefs.h <<_ACEOF 6045*d5c9a868SElliott Hughes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6046*d5c9a868SElliott Hughes_ACEOF 6047*d5c9a868SElliott Hughes 6048*d5c9a868SElliott Hughesfi 6049*d5c9a868SElliott Hughesdone 6050*d5c9a868SElliott Hughes 6051*d5c9a868SElliott Hughes 6052*d5c9a868SElliott Hughes 6053*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5 6054*d5c9a868SElliott Hughes$as_echo_n "checking declaration of sys_errlist... " >&6; } 6055*d5c9a868SElliott Hughesif ${cf_cv_dcl_sys_errlist+:} false; then : 6056*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6057*d5c9a868SElliott Hugheselse 6058*d5c9a868SElliott Hughes 6059*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060*d5c9a868SElliott Hughes/* end confdefs.h. */ 6061*d5c9a868SElliott Hughes 6062*d5c9a868SElliott Hughes#include <stdio.h> 6063*d5c9a868SElliott Hughes#include <sys/types.h> 6064*d5c9a868SElliott Hughes#include <errno.h> 6065*d5c9a868SElliott Hughesint 6066*d5c9a868SElliott Hughesmain () 6067*d5c9a868SElliott Hughes{ 6068*d5c9a868SElliott Hugheschar *c = (char *) *sys_errlist 6069*d5c9a868SElliott Hughes ; 6070*d5c9a868SElliott Hughes return 0; 6071*d5c9a868SElliott Hughes} 6072*d5c9a868SElliott Hughes_ACEOF 6073*d5c9a868SElliott Hughesif ac_fn_c_try_compile "$LINENO"; then : 6074*d5c9a868SElliott Hughes cf_cv_dcl_sys_errlist=yes 6075*d5c9a868SElliott Hugheselse 6076*d5c9a868SElliott Hughes cf_cv_dcl_sys_errlist=no 6077*d5c9a868SElliott Hughesfi 6078*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6079*d5c9a868SElliott Hughesfi 6080*d5c9a868SElliott Hughes 6081*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_dcl_sys_errlist" >&5 6082*d5c9a868SElliott Hughes$as_echo "$cf_cv_dcl_sys_errlist" >&6; } 6083*d5c9a868SElliott Hughestest $cf_cv_dcl_sys_errlist = no || 6084*d5c9a868SElliott Hughes$as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h 6085*d5c9a868SElliott Hughes 6086*d5c9a868SElliott Hughes 6087*d5c9a868SElliott Hughes 6088*d5c9a868SElliott Hughes 6089*d5c9a868SElliott Hugheshost_os0=`echo $host_os | sed 's/-/_/g'` 6090*d5c9a868SElliott Hugheshost_os1=`echo $host_os0 | sed 's/\./_/g'` 6091*d5c9a868SElliott Hugheshost_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'` 6092*d5c9a868SElliott Hugheshost_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'` 6093*d5c9a868SElliott Hugheshost_cpu1=`echo $host_cpu | sed 's/\./_/g'` 6094*d5c9a868SElliott Hugheshost_vendor1=`echo $host_vendor | sed 's/\./_/g'` 6095*d5c9a868SElliott HughesHOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1" 6096*d5c9a868SElliott Hughesif [ $host_os1 != $host_os2 ] ; then 6097*d5c9a868SElliott Hughes HOST_ID="$HOST_ID -DOS_$host_os2" 6098*d5c9a868SElliott Hughesfi 6099*d5c9a868SElliott Hughesif [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then 6100*d5c9a868SElliott Hughes HOST_ID="$HOST_ID -DOS_$host_os3" 6101*d5c9a868SElliott Hughesfi 6102*d5c9a868SElliott Hughes 6103*d5c9a868SElliott Hughesmy_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u` 6104*d5c9a868SElliott Hughesobjs=`echo $srcdir/*.c | sed 's/\.c$/.o/' ` 6105*d5c9a868SElliott Hughesif [ "X$GCC" = "Xyes" ] ; then 6106*d5c9a868SElliott Hughes Wall=-Wall 6107*d5c9a868SElliott Hughes if [ "$host_os3" = sunos ] ; then 6108*d5c9a868SElliott Hughes Wall="" 6109*d5c9a868SElliott Hughes fi 6110*d5c9a868SElliott Hughes if [ "$host_os3" = ultrix ] ; then 6111*d5c9a868SElliott Hughes Wall="" 6112*d5c9a868SElliott Hughes fi 6113*d5c9a868SElliott Hughes if [ "$host_os3" = linux ] ; then 6114*d5c9a868SElliott Hughes CFLAGS="$CFLAGS -fno-strength-reduce" 6115*d5c9a868SElliott Hughes fi 6116*d5c9a868SElliott Hughes if [ "$host_os3" = aux ] ; then 6117*d5c9a868SElliott Hughes CFLAGS="$CFLAGS -ZP" 6118*d5c9a868SElliott Hughes MACHDEPLIBS="-lposix -UTIL" 6119*d5c9a868SElliott Hughes fi 6120*d5c9a868SElliott Hughes case "${host}" in 6121*d5c9a868SElliott Hughes arm*-*-linux) CFLAGS="$CFLAGS -mstructure-size-boundary=8";; 6122*d5c9a868SElliott Hughes esac 6123*d5c9a868SElliott Hughes CFLAGS="$CFLAGS $Wall" 6124*d5c9a868SElliott Hugheselse 6125*d5c9a868SElliott Hughes if [ $host_os3 = hpux ] ; then 6126*d5c9a868SElliott Hughes CPPFLAGS="$CPPFLAGS -Ae" 6127*d5c9a868SElliott Hughes fi 6128*d5c9a868SElliott Hughes 6129*d5c9a868SElliott Hughes if [ $host_os3 = xenix ] ; then 6130*d5c9a868SElliott Hughes CFLAGS="$CFLAGS -M2e" 6131*d5c9a868SElliott Hughes fi 6132*d5c9a868SElliott Hughesfi 6133*d5c9a868SElliott Hughes 6134*d5c9a868SElliott Hughesif [ $host_os3 = hpux ] ; then 6135*d5c9a868SElliott Hughes LDFLAGS="$LDFLAGS -z" 6136*d5c9a868SElliott Hughesfi 6137*d5c9a868SElliott Hughes 6138*d5c9a868SElliott Hughesif [ $host_os3 = xenix ] ; then 6139*d5c9a868SElliott Hughes LDFLAGS="$LDFLAGS -M2e -i -f 5000" 6140*d5c9a868SElliott Hughesfi 6141*d5c9a868SElliott Hughes 6142*d5c9a868SElliott Hughesif [ $host_os2 = sysv4 ] ; then 6143*d5c9a868SElliott Hughes SHLIB="-lc -L/usr/ucblib -lucb" 6144*d5c9a868SElliott Hugheselse 6145*d5c9a868SElliott Hughes SHLIB="" 6146*d5c9a868SElliott Hughesfi 6147*d5c9a868SElliott Hughes 6148*d5c9a868SElliott Hughesif [ $host_os3 = isc ] ; then 6149*d5c9a868SElliott Hughes CFLAGS="$CFLAGS -D_SYSV3" 6150*d5c9a868SElliott Hughes SHLIB="-lc_s" 6151*d5c9a868SElliott Hughesfi 6152*d5c9a868SElliott Hughes 6153*d5c9a868SElliott Hughesif [ $host_os3 = solaris -a x$newVold = xxyes ] ; then 6154*d5c9a868SElliott Hughes SHLIB="$SHLIB -s -lvolmgt" 6155*d5c9a868SElliott Hughesfi 6156*d5c9a868SElliott Hughes 6157*d5c9a868SElliott Hughesif [ $host_os3 = nextstep ] ; then 6158*d5c9a868SElliott Hughes CFLAGS="$CFLAGS -DBSD" 6159*d5c9a868SElliott Hughes SHLIB="" 6160*d5c9a868SElliott Hughesfi 6161*d5c9a868SElliott Hughes 6162*d5c9a868SElliott Hughesif [ -d /usr/5lib ] ; then 6163*d5c9a868SElliott Hughes extralibdir=-L/usr/5lib 6164*d5c9a868SElliott Hughesfi 6165*d5c9a868SElliott Hughes 6166*d5c9a868SElliott Hughes 6167*d5c9a868SElliott Hughes 6168*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6169*d5c9a868SElliott Hughes$as_echo_n "checking for X... " >&6; } 6170*d5c9a868SElliott Hughes 6171*d5c9a868SElliott Hughes 6172*d5c9a868SElliott Hughes# Check whether --with-x was given. 6173*d5c9a868SElliott Hughesif test "${with_x+set}" = set; then : 6174*d5c9a868SElliott Hughes withval=$with_x; 6175*d5c9a868SElliott Hughesfi 6176*d5c9a868SElliott Hughes 6177*d5c9a868SElliott Hughes# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6178*d5c9a868SElliott Hughesif test "x$with_x" = xno; then 6179*d5c9a868SElliott Hughes # The user explicitly disabled X. 6180*d5c9a868SElliott Hughes have_x=disabled 6181*d5c9a868SElliott Hugheselse 6182*d5c9a868SElliott Hughes case $x_includes,$x_libraries in #( 6183*d5c9a868SElliott Hughes *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 6184*d5c9a868SElliott Hughes *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 6185*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6186*d5c9a868SElliott Hugheselse 6187*d5c9a868SElliott Hughes # One or both of the vars are not set, and there is no cached value. 6188*d5c9a868SElliott Hughesac_x_includes=no ac_x_libraries=no 6189*d5c9a868SElliott Hughesrm -f -r conftest.dir 6190*d5c9a868SElliott Hughesif mkdir conftest.dir; then 6191*d5c9a868SElliott Hughes cd conftest.dir 6192*d5c9a868SElliott Hughes cat >Imakefile <<'_ACEOF' 6193*d5c9a868SElliott Hughesincroot: 6194*d5c9a868SElliott Hughes @echo incroot='${INCROOT}' 6195*d5c9a868SElliott Hughesusrlibdir: 6196*d5c9a868SElliott Hughes @echo usrlibdir='${USRLIBDIR}' 6197*d5c9a868SElliott Hugheslibdir: 6198*d5c9a868SElliott Hughes @echo libdir='${LIBDIR}' 6199*d5c9a868SElliott Hughes_ACEOF 6200*d5c9a868SElliott Hughes if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6201*d5c9a868SElliott Hughes # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6202*d5c9a868SElliott Hughes for ac_var in incroot usrlibdir libdir; do 6203*d5c9a868SElliott Hughes eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6204*d5c9a868SElliott Hughes done 6205*d5c9a868SElliott Hughes # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6206*d5c9a868SElliott Hughes for ac_extension in a so sl dylib la dll; do 6207*d5c9a868SElliott Hughes if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6208*d5c9a868SElliott Hughes test -f "$ac_im_libdir/libX11.$ac_extension"; then 6209*d5c9a868SElliott Hughes ac_im_usrlibdir=$ac_im_libdir; break 6210*d5c9a868SElliott Hughes fi 6211*d5c9a868SElliott Hughes done 6212*d5c9a868SElliott Hughes # Screen out bogus values from the imake configuration. They are 6213*d5c9a868SElliott Hughes # bogus both because they are the default anyway, and because 6214*d5c9a868SElliott Hughes # using them would break gcc on systems where it needs fixed includes. 6215*d5c9a868SElliott Hughes case $ac_im_incroot in 6216*d5c9a868SElliott Hughes /usr/include) ac_x_includes= ;; 6217*d5c9a868SElliott Hughes *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6218*d5c9a868SElliott Hughes esac 6219*d5c9a868SElliott Hughes case $ac_im_usrlibdir in 6220*d5c9a868SElliott Hughes /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6221*d5c9a868SElliott Hughes *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6222*d5c9a868SElliott Hughes esac 6223*d5c9a868SElliott Hughes fi 6224*d5c9a868SElliott Hughes cd .. 6225*d5c9a868SElliott Hughes rm -f -r conftest.dir 6226*d5c9a868SElliott Hughesfi 6227*d5c9a868SElliott Hughes 6228*d5c9a868SElliott Hughes# Standard set of common directories for X headers. 6229*d5c9a868SElliott Hughes# Check X11 before X11Rn because it is often a symlink to the current release. 6230*d5c9a868SElliott Hughesac_x_header_dirs=' 6231*d5c9a868SElliott Hughes/usr/X11/include 6232*d5c9a868SElliott Hughes/usr/X11R7/include 6233*d5c9a868SElliott Hughes/usr/X11R6/include 6234*d5c9a868SElliott Hughes/usr/X11R5/include 6235*d5c9a868SElliott Hughes/usr/X11R4/include 6236*d5c9a868SElliott Hughes 6237*d5c9a868SElliott Hughes/usr/include/X11 6238*d5c9a868SElliott Hughes/usr/include/X11R7 6239*d5c9a868SElliott Hughes/usr/include/X11R6 6240*d5c9a868SElliott Hughes/usr/include/X11R5 6241*d5c9a868SElliott Hughes/usr/include/X11R4 6242*d5c9a868SElliott Hughes 6243*d5c9a868SElliott Hughes/usr/local/X11/include 6244*d5c9a868SElliott Hughes/usr/local/X11R7/include 6245*d5c9a868SElliott Hughes/usr/local/X11R6/include 6246*d5c9a868SElliott Hughes/usr/local/X11R5/include 6247*d5c9a868SElliott Hughes/usr/local/X11R4/include 6248*d5c9a868SElliott Hughes 6249*d5c9a868SElliott Hughes/usr/local/include/X11 6250*d5c9a868SElliott Hughes/usr/local/include/X11R7 6251*d5c9a868SElliott Hughes/usr/local/include/X11R6 6252*d5c9a868SElliott Hughes/usr/local/include/X11R5 6253*d5c9a868SElliott Hughes/usr/local/include/X11R4 6254*d5c9a868SElliott Hughes 6255*d5c9a868SElliott Hughes/usr/X386/include 6256*d5c9a868SElliott Hughes/usr/x386/include 6257*d5c9a868SElliott Hughes/usr/XFree86/include/X11 6258*d5c9a868SElliott Hughes 6259*d5c9a868SElliott Hughes/usr/include 6260*d5c9a868SElliott Hughes/usr/local/include 6261*d5c9a868SElliott Hughes/usr/unsupported/include 6262*d5c9a868SElliott Hughes/usr/athena/include 6263*d5c9a868SElliott Hughes/usr/local/x11r5/include 6264*d5c9a868SElliott Hughes/usr/lpp/Xamples/include 6265*d5c9a868SElliott Hughes 6266*d5c9a868SElliott Hughes/usr/openwin/include 6267*d5c9a868SElliott Hughes/usr/openwin/share/include' 6268*d5c9a868SElliott Hughes 6269*d5c9a868SElliott Hughesif test "$ac_x_includes" = no; then 6270*d5c9a868SElliott Hughes # Guess where to find include files, by looking for Xlib.h. 6271*d5c9a868SElliott Hughes # First, try using that file with no special directory specified. 6272*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273*d5c9a868SElliott Hughes/* end confdefs.h. */ 6274*d5c9a868SElliott Hughes#include <X11/Xlib.h> 6275*d5c9a868SElliott Hughes_ACEOF 6276*d5c9a868SElliott Hughesif ac_fn_c_try_cpp "$LINENO"; then : 6277*d5c9a868SElliott Hughes # We can compile using X headers with no special include directory. 6278*d5c9a868SElliott Hughesac_x_includes= 6279*d5c9a868SElliott Hugheselse 6280*d5c9a868SElliott Hughes for ac_dir in $ac_x_header_dirs; do 6281*d5c9a868SElliott Hughes if test -r "$ac_dir/X11/Xlib.h"; then 6282*d5c9a868SElliott Hughes ac_x_includes=$ac_dir 6283*d5c9a868SElliott Hughes break 6284*d5c9a868SElliott Hughes fi 6285*d5c9a868SElliott Hughesdone 6286*d5c9a868SElliott Hughesfi 6287*d5c9a868SElliott Hughesrm -f conftest.err conftest.i conftest.$ac_ext 6288*d5c9a868SElliott Hughesfi # $ac_x_includes = no 6289*d5c9a868SElliott Hughes 6290*d5c9a868SElliott Hughesif test "$ac_x_libraries" = no; then 6291*d5c9a868SElliott Hughes # Check for the libraries. 6292*d5c9a868SElliott Hughes # See if we find them without any special options. 6293*d5c9a868SElliott Hughes # Don't add to $LIBS permanently. 6294*d5c9a868SElliott Hughes ac_save_LIBS=$LIBS 6295*d5c9a868SElliott Hughes LIBS="-lX11 $LIBS" 6296*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297*d5c9a868SElliott Hughes/* end confdefs.h. */ 6298*d5c9a868SElliott Hughes#include <X11/Xlib.h> 6299*d5c9a868SElliott Hughesint 6300*d5c9a868SElliott Hughesmain () 6301*d5c9a868SElliott Hughes{ 6302*d5c9a868SElliott HughesXrmInitialize () 6303*d5c9a868SElliott Hughes ; 6304*d5c9a868SElliott Hughes return 0; 6305*d5c9a868SElliott Hughes} 6306*d5c9a868SElliott Hughes_ACEOF 6307*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6308*d5c9a868SElliott Hughes LIBS=$ac_save_LIBS 6309*d5c9a868SElliott Hughes# We can link X programs with no special library path. 6310*d5c9a868SElliott Hughesac_x_libraries= 6311*d5c9a868SElliott Hugheselse 6312*d5c9a868SElliott Hughes LIBS=$ac_save_LIBS 6313*d5c9a868SElliott Hughesfor ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6314*d5c9a868SElliott Hughesdo 6315*d5c9a868SElliott Hughes # Don't even attempt the hair of trying to link an X program! 6316*d5c9a868SElliott Hughes for ac_extension in a so sl dylib la dll; do 6317*d5c9a868SElliott Hughes if test -r "$ac_dir/libX11.$ac_extension"; then 6318*d5c9a868SElliott Hughes ac_x_libraries=$ac_dir 6319*d5c9a868SElliott Hughes break 2 6320*d5c9a868SElliott Hughes fi 6321*d5c9a868SElliott Hughes done 6322*d5c9a868SElliott Hughesdone 6323*d5c9a868SElliott Hughesfi 6324*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6325*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6326*d5c9a868SElliott Hughesfi # $ac_x_libraries = no 6327*d5c9a868SElliott Hughes 6328*d5c9a868SElliott Hughescase $ac_x_includes,$ac_x_libraries in #( 6329*d5c9a868SElliott Hughes no,* | *,no | *\'*) 6330*d5c9a868SElliott Hughes # Didn't find X, or a directory has "'" in its name. 6331*d5c9a868SElliott Hughes ac_cv_have_x="have_x=no";; #( 6332*d5c9a868SElliott Hughes *) 6333*d5c9a868SElliott Hughes # Record where we found X for the cache. 6334*d5c9a868SElliott Hughes ac_cv_have_x="have_x=yes\ 6335*d5c9a868SElliott Hughes ac_x_includes='$ac_x_includes'\ 6336*d5c9a868SElliott Hughes ac_x_libraries='$ac_x_libraries'" 6337*d5c9a868SElliott Hughesesac 6338*d5c9a868SElliott Hughesfi 6339*d5c9a868SElliott Hughes;; #( 6340*d5c9a868SElliott Hughes *) have_x=yes;; 6341*d5c9a868SElliott Hughes esac 6342*d5c9a868SElliott Hughes eval "$ac_cv_have_x" 6343*d5c9a868SElliott Hughesfi # $with_x != no 6344*d5c9a868SElliott Hughes 6345*d5c9a868SElliott Hughesif test "$have_x" != yes; then 6346*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6347*d5c9a868SElliott Hughes$as_echo "$have_x" >&6; } 6348*d5c9a868SElliott Hughes no_x=yes 6349*d5c9a868SElliott Hugheselse 6350*d5c9a868SElliott Hughes # If each of the values was on the command line, it overrides each guess. 6351*d5c9a868SElliott Hughes test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6352*d5c9a868SElliott Hughes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6353*d5c9a868SElliott Hughes # Update the cache value to reflect the command line values. 6354*d5c9a868SElliott Hughes ac_cv_have_x="have_x=yes\ 6355*d5c9a868SElliott Hughes ac_x_includes='$x_includes'\ 6356*d5c9a868SElliott Hughes ac_x_libraries='$x_libraries'" 6357*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6358*d5c9a868SElliott Hughes$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6359*d5c9a868SElliott Hughesfi 6360*d5c9a868SElliott Hughes 6361*d5c9a868SElliott Hughesif test "$no_x" = yes; then 6362*d5c9a868SElliott Hughes # Not all programs may use this symbol, but it does not hurt to define it. 6363*d5c9a868SElliott Hughes 6364*d5c9a868SElliott Hughes$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6365*d5c9a868SElliott Hughes 6366*d5c9a868SElliott Hughes X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6367*d5c9a868SElliott Hugheselse 6368*d5c9a868SElliott Hughes if test -n "$x_includes"; then 6369*d5c9a868SElliott Hughes X_CFLAGS="$X_CFLAGS -I$x_includes" 6370*d5c9a868SElliott Hughes fi 6371*d5c9a868SElliott Hughes 6372*d5c9a868SElliott Hughes # It would also be nice to do this for all -L options, not just this one. 6373*d5c9a868SElliott Hughes if test -n "$x_libraries"; then 6374*d5c9a868SElliott Hughes X_LIBS="$X_LIBS -L$x_libraries" 6375*d5c9a868SElliott Hughes # For Solaris; some versions of Sun CC require a space after -R and 6376*d5c9a868SElliott Hughes # others require no space. Words are not sufficient . . . . 6377*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6378*d5c9a868SElliott Hughes$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6379*d5c9a868SElliott Hughes ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6380*d5c9a868SElliott Hughes ac_xsave_c_werror_flag=$ac_c_werror_flag 6381*d5c9a868SElliott Hughes ac_c_werror_flag=yes 6382*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383*d5c9a868SElliott Hughes/* end confdefs.h. */ 6384*d5c9a868SElliott Hughes 6385*d5c9a868SElliott Hughesint 6386*d5c9a868SElliott Hughesmain () 6387*d5c9a868SElliott Hughes{ 6388*d5c9a868SElliott Hughes 6389*d5c9a868SElliott Hughes ; 6390*d5c9a868SElliott Hughes return 0; 6391*d5c9a868SElliott Hughes} 6392*d5c9a868SElliott Hughes_ACEOF 6393*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6394*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395*d5c9a868SElliott Hughes$as_echo "no" >&6; } 6396*d5c9a868SElliott Hughes X_LIBS="$X_LIBS -R$x_libraries" 6397*d5c9a868SElliott Hugheselse 6398*d5c9a868SElliott Hughes LIBS="$ac_xsave_LIBS -R $x_libraries" 6399*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400*d5c9a868SElliott Hughes/* end confdefs.h. */ 6401*d5c9a868SElliott Hughes 6402*d5c9a868SElliott Hughesint 6403*d5c9a868SElliott Hughesmain () 6404*d5c9a868SElliott Hughes{ 6405*d5c9a868SElliott Hughes 6406*d5c9a868SElliott Hughes ; 6407*d5c9a868SElliott Hughes return 0; 6408*d5c9a868SElliott Hughes} 6409*d5c9a868SElliott Hughes_ACEOF 6410*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6411*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6412*d5c9a868SElliott Hughes$as_echo "yes" >&6; } 6413*d5c9a868SElliott Hughes X_LIBS="$X_LIBS -R $x_libraries" 6414*d5c9a868SElliott Hugheselse 6415*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6416*d5c9a868SElliott Hughes$as_echo "neither works" >&6; } 6417*d5c9a868SElliott Hughesfi 6418*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6419*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6420*d5c9a868SElliott Hughesfi 6421*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6422*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6423*d5c9a868SElliott Hughes ac_c_werror_flag=$ac_xsave_c_werror_flag 6424*d5c9a868SElliott Hughes LIBS=$ac_xsave_LIBS 6425*d5c9a868SElliott Hughes fi 6426*d5c9a868SElliott Hughes 6427*d5c9a868SElliott Hughes # Check for system-dependent libraries X programs must link with. 6428*d5c9a868SElliott Hughes # Do this before checking for the system-independent R6 libraries 6429*d5c9a868SElliott Hughes # (-lICE), since we may need -lsocket or whatever for X linking. 6430*d5c9a868SElliott Hughes 6431*d5c9a868SElliott Hughes if test "$ISC" = yes; then 6432*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6433*d5c9a868SElliott Hughes else 6434*d5c9a868SElliott Hughes # Martyn Johnson says this is needed for Ultrix, if the X 6435*d5c9a868SElliott Hughes # libraries were built with DECnet support. And Karl Berry says 6436*d5c9a868SElliott Hughes # the Alpha needs dnet_stub (dnet does not exist). 6437*d5c9a868SElliott Hughes ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6438*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439*d5c9a868SElliott Hughes/* end confdefs.h. */ 6440*d5c9a868SElliott Hughes 6441*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6442*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6443*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6444*d5c9a868SElliott Hughes#ifdef __cplusplus 6445*d5c9a868SElliott Hughesextern "C" 6446*d5c9a868SElliott Hughes#endif 6447*d5c9a868SElliott Hugheschar XOpenDisplay (); 6448*d5c9a868SElliott Hughesint 6449*d5c9a868SElliott Hughesmain () 6450*d5c9a868SElliott Hughes{ 6451*d5c9a868SElliott Hughesreturn XOpenDisplay (); 6452*d5c9a868SElliott Hughes ; 6453*d5c9a868SElliott Hughes return 0; 6454*d5c9a868SElliott Hughes} 6455*d5c9a868SElliott Hughes_ACEOF 6456*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6457*d5c9a868SElliott Hughes 6458*d5c9a868SElliott Hugheselse 6459*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6460*d5c9a868SElliott Hughes$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6461*d5c9a868SElliott Hughesif ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 6462*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6463*d5c9a868SElliott Hugheselse 6464*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6465*d5c9a868SElliott HughesLIBS="-ldnet $LIBS" 6466*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467*d5c9a868SElliott Hughes/* end confdefs.h. */ 6468*d5c9a868SElliott Hughes 6469*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6470*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6471*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6472*d5c9a868SElliott Hughes#ifdef __cplusplus 6473*d5c9a868SElliott Hughesextern "C" 6474*d5c9a868SElliott Hughes#endif 6475*d5c9a868SElliott Hugheschar dnet_ntoa (); 6476*d5c9a868SElliott Hughesint 6477*d5c9a868SElliott Hughesmain () 6478*d5c9a868SElliott Hughes{ 6479*d5c9a868SElliott Hughesreturn dnet_ntoa (); 6480*d5c9a868SElliott Hughes ; 6481*d5c9a868SElliott Hughes return 0; 6482*d5c9a868SElliott Hughes} 6483*d5c9a868SElliott Hughes_ACEOF 6484*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6485*d5c9a868SElliott Hughes ac_cv_lib_dnet_dnet_ntoa=yes 6486*d5c9a868SElliott Hugheselse 6487*d5c9a868SElliott Hughes ac_cv_lib_dnet_dnet_ntoa=no 6488*d5c9a868SElliott Hughesfi 6489*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6490*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6491*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6492*d5c9a868SElliott Hughesfi 6493*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6494*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6495*d5c9a868SElliott Hughesif test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 6496*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6497*d5c9a868SElliott Hughesfi 6498*d5c9a868SElliott Hughes 6499*d5c9a868SElliott Hughes if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6500*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6501*d5c9a868SElliott Hughes$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6502*d5c9a868SElliott Hughesif ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 6503*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6504*d5c9a868SElliott Hugheselse 6505*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6506*d5c9a868SElliott HughesLIBS="-ldnet_stub $LIBS" 6507*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508*d5c9a868SElliott Hughes/* end confdefs.h. */ 6509*d5c9a868SElliott Hughes 6510*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6511*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6512*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6513*d5c9a868SElliott Hughes#ifdef __cplusplus 6514*d5c9a868SElliott Hughesextern "C" 6515*d5c9a868SElliott Hughes#endif 6516*d5c9a868SElliott Hugheschar dnet_ntoa (); 6517*d5c9a868SElliott Hughesint 6518*d5c9a868SElliott Hughesmain () 6519*d5c9a868SElliott Hughes{ 6520*d5c9a868SElliott Hughesreturn dnet_ntoa (); 6521*d5c9a868SElliott Hughes ; 6522*d5c9a868SElliott Hughes return 0; 6523*d5c9a868SElliott Hughes} 6524*d5c9a868SElliott Hughes_ACEOF 6525*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6526*d5c9a868SElliott Hughes ac_cv_lib_dnet_stub_dnet_ntoa=yes 6527*d5c9a868SElliott Hugheselse 6528*d5c9a868SElliott Hughes ac_cv_lib_dnet_stub_dnet_ntoa=no 6529*d5c9a868SElliott Hughesfi 6530*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6531*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6532*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6533*d5c9a868SElliott Hughesfi 6534*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6535*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6536*d5c9a868SElliott Hughesif test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 6537*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6538*d5c9a868SElliott Hughesfi 6539*d5c9a868SElliott Hughes 6540*d5c9a868SElliott Hughes fi 6541*d5c9a868SElliott Hughesfi 6542*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6543*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6544*d5c9a868SElliott Hughes LIBS="$ac_xsave_LIBS" 6545*d5c9a868SElliott Hughes 6546*d5c9a868SElliott Hughes # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 6547*d5c9a868SElliott Hughes # to get the SysV transport functions. 6548*d5c9a868SElliott Hughes # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6549*d5c9a868SElliott Hughes # needs -lnsl. 6550*d5c9a868SElliott Hughes # The nsl library prevents programs from opening the X display 6551*d5c9a868SElliott Hughes # on Irix 5.2, according to T.E. Dickey. 6552*d5c9a868SElliott Hughes # The functions gethostbyname, getservbyname, and inet_addr are 6553*d5c9a868SElliott Hughes # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6554*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6555*d5c9a868SElliott Hughesif test "x$ac_cv_func_gethostbyname" = xyes; then : 6556*d5c9a868SElliott Hughes 6557*d5c9a868SElliott Hughesfi 6558*d5c9a868SElliott Hughes 6559*d5c9a868SElliott Hughes if test $ac_cv_func_gethostbyname = no; then 6560*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6561*d5c9a868SElliott Hughes$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6562*d5c9a868SElliott Hughesif ${ac_cv_lib_nsl_gethostbyname+:} false; then : 6563*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6564*d5c9a868SElliott Hugheselse 6565*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6566*d5c9a868SElliott HughesLIBS="-lnsl $LIBS" 6567*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568*d5c9a868SElliott Hughes/* end confdefs.h. */ 6569*d5c9a868SElliott Hughes 6570*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6571*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6572*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6573*d5c9a868SElliott Hughes#ifdef __cplusplus 6574*d5c9a868SElliott Hughesextern "C" 6575*d5c9a868SElliott Hughes#endif 6576*d5c9a868SElliott Hugheschar gethostbyname (); 6577*d5c9a868SElliott Hughesint 6578*d5c9a868SElliott Hughesmain () 6579*d5c9a868SElliott Hughes{ 6580*d5c9a868SElliott Hughesreturn gethostbyname (); 6581*d5c9a868SElliott Hughes ; 6582*d5c9a868SElliott Hughes return 0; 6583*d5c9a868SElliott Hughes} 6584*d5c9a868SElliott Hughes_ACEOF 6585*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6586*d5c9a868SElliott Hughes ac_cv_lib_nsl_gethostbyname=yes 6587*d5c9a868SElliott Hugheselse 6588*d5c9a868SElliott Hughes ac_cv_lib_nsl_gethostbyname=no 6589*d5c9a868SElliott Hughesfi 6590*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6591*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6592*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6593*d5c9a868SElliott Hughesfi 6594*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6595*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6596*d5c9a868SElliott Hughesif test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6597*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6598*d5c9a868SElliott Hughesfi 6599*d5c9a868SElliott Hughes 6600*d5c9a868SElliott Hughes if test $ac_cv_lib_nsl_gethostbyname = no; then 6601*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6602*d5c9a868SElliott Hughes$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6603*d5c9a868SElliott Hughesif ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6604*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6605*d5c9a868SElliott Hugheselse 6606*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6607*d5c9a868SElliott HughesLIBS="-lbsd $LIBS" 6608*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609*d5c9a868SElliott Hughes/* end confdefs.h. */ 6610*d5c9a868SElliott Hughes 6611*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6612*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6613*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6614*d5c9a868SElliott Hughes#ifdef __cplusplus 6615*d5c9a868SElliott Hughesextern "C" 6616*d5c9a868SElliott Hughes#endif 6617*d5c9a868SElliott Hugheschar gethostbyname (); 6618*d5c9a868SElliott Hughesint 6619*d5c9a868SElliott Hughesmain () 6620*d5c9a868SElliott Hughes{ 6621*d5c9a868SElliott Hughesreturn gethostbyname (); 6622*d5c9a868SElliott Hughes ; 6623*d5c9a868SElliott Hughes return 0; 6624*d5c9a868SElliott Hughes} 6625*d5c9a868SElliott Hughes_ACEOF 6626*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6627*d5c9a868SElliott Hughes ac_cv_lib_bsd_gethostbyname=yes 6628*d5c9a868SElliott Hugheselse 6629*d5c9a868SElliott Hughes ac_cv_lib_bsd_gethostbyname=no 6630*d5c9a868SElliott Hughesfi 6631*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6632*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6633*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6634*d5c9a868SElliott Hughesfi 6635*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6636*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6637*d5c9a868SElliott Hughesif test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6638*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6639*d5c9a868SElliott Hughesfi 6640*d5c9a868SElliott Hughes 6641*d5c9a868SElliott Hughes fi 6642*d5c9a868SElliott Hughes fi 6643*d5c9a868SElliott Hughes 6644*d5c9a868SElliott Hughes # [email protected] says without -lsocket, 6645*d5c9a868SElliott Hughes # socket/setsockopt and other routines are undefined under SCO ODT 6646*d5c9a868SElliott Hughes # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6647*d5c9a868SElliott Hughes # on later versions), says Simon Leinen: it contains gethostby* 6648*d5c9a868SElliott Hughes # variants that don't use the name server (or something). -lsocket 6649*d5c9a868SElliott Hughes # must be given before -lnsl if both are needed. We assume that 6650*d5c9a868SElliott Hughes # if connect needs -lnsl, so does gethostbyname. 6651*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 6652*d5c9a868SElliott Hughesif test "x$ac_cv_func_connect" = xyes; then : 6653*d5c9a868SElliott Hughes 6654*d5c9a868SElliott Hughesfi 6655*d5c9a868SElliott Hughes 6656*d5c9a868SElliott Hughes if test $ac_cv_func_connect = no; then 6657*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6658*d5c9a868SElliott Hughes$as_echo_n "checking for connect in -lsocket... " >&6; } 6659*d5c9a868SElliott Hughesif ${ac_cv_lib_socket_connect+:} false; then : 6660*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6661*d5c9a868SElliott Hugheselse 6662*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6663*d5c9a868SElliott HughesLIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6664*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665*d5c9a868SElliott Hughes/* end confdefs.h. */ 6666*d5c9a868SElliott Hughes 6667*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6668*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6669*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6670*d5c9a868SElliott Hughes#ifdef __cplusplus 6671*d5c9a868SElliott Hughesextern "C" 6672*d5c9a868SElliott Hughes#endif 6673*d5c9a868SElliott Hugheschar connect (); 6674*d5c9a868SElliott Hughesint 6675*d5c9a868SElliott Hughesmain () 6676*d5c9a868SElliott Hughes{ 6677*d5c9a868SElliott Hughesreturn connect (); 6678*d5c9a868SElliott Hughes ; 6679*d5c9a868SElliott Hughes return 0; 6680*d5c9a868SElliott Hughes} 6681*d5c9a868SElliott Hughes_ACEOF 6682*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6683*d5c9a868SElliott Hughes ac_cv_lib_socket_connect=yes 6684*d5c9a868SElliott Hugheselse 6685*d5c9a868SElliott Hughes ac_cv_lib_socket_connect=no 6686*d5c9a868SElliott Hughesfi 6687*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6688*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6689*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6690*d5c9a868SElliott Hughesfi 6691*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6692*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_socket_connect" >&6; } 6693*d5c9a868SElliott Hughesif test "x$ac_cv_lib_socket_connect" = xyes; then : 6694*d5c9a868SElliott Hughes X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6695*d5c9a868SElliott Hughesfi 6696*d5c9a868SElliott Hughes 6697*d5c9a868SElliott Hughes fi 6698*d5c9a868SElliott Hughes 6699*d5c9a868SElliott Hughes # Guillermo Gomez says -lposix is necessary on A/UX. 6700*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 6701*d5c9a868SElliott Hughesif test "x$ac_cv_func_remove" = xyes; then : 6702*d5c9a868SElliott Hughes 6703*d5c9a868SElliott Hughesfi 6704*d5c9a868SElliott Hughes 6705*d5c9a868SElliott Hughes if test $ac_cv_func_remove = no; then 6706*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6707*d5c9a868SElliott Hughes$as_echo_n "checking for remove in -lposix... " >&6; } 6708*d5c9a868SElliott Hughesif ${ac_cv_lib_posix_remove+:} false; then : 6709*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6710*d5c9a868SElliott Hugheselse 6711*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6712*d5c9a868SElliott HughesLIBS="-lposix $LIBS" 6713*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714*d5c9a868SElliott Hughes/* end confdefs.h. */ 6715*d5c9a868SElliott Hughes 6716*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6717*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6718*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6719*d5c9a868SElliott Hughes#ifdef __cplusplus 6720*d5c9a868SElliott Hughesextern "C" 6721*d5c9a868SElliott Hughes#endif 6722*d5c9a868SElliott Hugheschar remove (); 6723*d5c9a868SElliott Hughesint 6724*d5c9a868SElliott Hughesmain () 6725*d5c9a868SElliott Hughes{ 6726*d5c9a868SElliott Hughesreturn remove (); 6727*d5c9a868SElliott Hughes ; 6728*d5c9a868SElliott Hughes return 0; 6729*d5c9a868SElliott Hughes} 6730*d5c9a868SElliott Hughes_ACEOF 6731*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6732*d5c9a868SElliott Hughes ac_cv_lib_posix_remove=yes 6733*d5c9a868SElliott Hugheselse 6734*d5c9a868SElliott Hughes ac_cv_lib_posix_remove=no 6735*d5c9a868SElliott Hughesfi 6736*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6737*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6738*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6739*d5c9a868SElliott Hughesfi 6740*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6741*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_posix_remove" >&6; } 6742*d5c9a868SElliott Hughesif test "x$ac_cv_lib_posix_remove" = xyes; then : 6743*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6744*d5c9a868SElliott Hughesfi 6745*d5c9a868SElliott Hughes 6746*d5c9a868SElliott Hughes fi 6747*d5c9a868SElliott Hughes 6748*d5c9a868SElliott Hughes # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6749*d5c9a868SElliott Hughes ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6750*d5c9a868SElliott Hughesif test "x$ac_cv_func_shmat" = xyes; then : 6751*d5c9a868SElliott Hughes 6752*d5c9a868SElliott Hughesfi 6753*d5c9a868SElliott Hughes 6754*d5c9a868SElliott Hughes if test $ac_cv_func_shmat = no; then 6755*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6756*d5c9a868SElliott Hughes$as_echo_n "checking for shmat in -lipc... " >&6; } 6757*d5c9a868SElliott Hughesif ${ac_cv_lib_ipc_shmat+:} false; then : 6758*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6759*d5c9a868SElliott Hugheselse 6760*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6761*d5c9a868SElliott HughesLIBS="-lipc $LIBS" 6762*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763*d5c9a868SElliott Hughes/* end confdefs.h. */ 6764*d5c9a868SElliott Hughes 6765*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6766*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6767*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6768*d5c9a868SElliott Hughes#ifdef __cplusplus 6769*d5c9a868SElliott Hughesextern "C" 6770*d5c9a868SElliott Hughes#endif 6771*d5c9a868SElliott Hugheschar shmat (); 6772*d5c9a868SElliott Hughesint 6773*d5c9a868SElliott Hughesmain () 6774*d5c9a868SElliott Hughes{ 6775*d5c9a868SElliott Hughesreturn shmat (); 6776*d5c9a868SElliott Hughes ; 6777*d5c9a868SElliott Hughes return 0; 6778*d5c9a868SElliott Hughes} 6779*d5c9a868SElliott Hughes_ACEOF 6780*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6781*d5c9a868SElliott Hughes ac_cv_lib_ipc_shmat=yes 6782*d5c9a868SElliott Hugheselse 6783*d5c9a868SElliott Hughes ac_cv_lib_ipc_shmat=no 6784*d5c9a868SElliott Hughesfi 6785*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6786*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6787*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6788*d5c9a868SElliott Hughesfi 6789*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6790*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6791*d5c9a868SElliott Hughesif test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6792*d5c9a868SElliott Hughes X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6793*d5c9a868SElliott Hughesfi 6794*d5c9a868SElliott Hughes 6795*d5c9a868SElliott Hughes fi 6796*d5c9a868SElliott Hughes fi 6797*d5c9a868SElliott Hughes 6798*d5c9a868SElliott Hughes # Check for libraries that X11R6 Xt/Xaw programs need. 6799*d5c9a868SElliott Hughes ac_save_LDFLAGS=$LDFLAGS 6800*d5c9a868SElliott Hughes test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6801*d5c9a868SElliott Hughes # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6802*d5c9a868SElliott Hughes # check for ICE first), but we must link in the order -lSM -lICE or 6803*d5c9a868SElliott Hughes # we get undefined symbols. So assume we have SM if we have ICE. 6804*d5c9a868SElliott Hughes # These have to be linked with before -lX11, unlike the other 6805*d5c9a868SElliott Hughes # libraries we check for below, so use a different variable. 6806*d5c9a868SElliott Hughes # John Interrante, Karl Berry 6807*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6808*d5c9a868SElliott Hughes$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6809*d5c9a868SElliott Hughesif ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6810*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6811*d5c9a868SElliott Hugheselse 6812*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6813*d5c9a868SElliott HughesLIBS="-lICE $X_EXTRA_LIBS $LIBS" 6814*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815*d5c9a868SElliott Hughes/* end confdefs.h. */ 6816*d5c9a868SElliott Hughes 6817*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6818*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6819*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6820*d5c9a868SElliott Hughes#ifdef __cplusplus 6821*d5c9a868SElliott Hughesextern "C" 6822*d5c9a868SElliott Hughes#endif 6823*d5c9a868SElliott Hugheschar IceConnectionNumber (); 6824*d5c9a868SElliott Hughesint 6825*d5c9a868SElliott Hughesmain () 6826*d5c9a868SElliott Hughes{ 6827*d5c9a868SElliott Hughesreturn IceConnectionNumber (); 6828*d5c9a868SElliott Hughes ; 6829*d5c9a868SElliott Hughes return 0; 6830*d5c9a868SElliott Hughes} 6831*d5c9a868SElliott Hughes_ACEOF 6832*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6833*d5c9a868SElliott Hughes ac_cv_lib_ICE_IceConnectionNumber=yes 6834*d5c9a868SElliott Hugheselse 6835*d5c9a868SElliott Hughes ac_cv_lib_ICE_IceConnectionNumber=no 6836*d5c9a868SElliott Hughesfi 6837*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6838*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6839*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6840*d5c9a868SElliott Hughesfi 6841*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6842*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6843*d5c9a868SElliott Hughesif test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6844*d5c9a868SElliott Hughes X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6845*d5c9a868SElliott Hughesfi 6846*d5c9a868SElliott Hughes 6847*d5c9a868SElliott Hughes LDFLAGS=$ac_save_LDFLAGS 6848*d5c9a868SElliott Hughes 6849*d5c9a868SElliott Hughesfi 6850*d5c9a868SElliott Hughes 6851*d5c9a868SElliott Hughes 6852*d5c9a868SElliott Hughes# Check whether --enable-floppyd was given. 6853*d5c9a868SElliott Hughesif test "${enable_floppyd+set}" = set; then : 6854*d5c9a868SElliott Hughes enableval=$enable_floppyd; if test x$enableval != x; then 6855*d5c9a868SElliott Hughes use_floppyd=$enableval 6856*d5c9a868SElliott Hughesfi 6857*d5c9a868SElliott Hughesfi 6858*d5c9a868SElliott Hughes 6859*d5c9a868SElliott Hughes 6860*d5c9a868SElliott Hughesif test X$use_floppyd = X -a X$no_x = X ; then 6861*d5c9a868SElliott Hughes use_floppyd="yes" 6862*d5c9a868SElliott Hughesfi 6863*d5c9a868SElliott Hughes 6864*d5c9a868SElliott Hughesif test X$use_floppyd = Xyes; then 6865*d5c9a868SElliott Hughes if test X$no_x = Xyes ; then 6866*d5c9a868SElliott Hughes echo "Floppyd needs X support" >&2 6867*d5c9a868SElliott Hughes echo "To compile without floppyd, use ./configure --disable-floppyd" >&2 6868*d5c9a868SElliott Hughes exit 1 6869*d5c9a868SElliott Hughes fi 6870*d5c9a868SElliott Hughes FLOPPYD="floppyd floppyd_installtest" 6871*d5c9a868SElliott Hughes BINFLOPPYD="\$(DESTDIR)\$(bindir)/floppyd \$(DESTDIR)\$(bindir)/floppyd_installtest" 6872*d5c9a868SElliott Hughes FLOPPYD_IO_SRC=floppyd_io.c 6873*d5c9a868SElliott Hughes FLOPPYD_IO_OBJ=floppyd_io.o 6874*d5c9a868SElliott Hughes 6875*d5c9a868SElliott Hughes$as_echo "#define USE_FLOPPYD 1" >>confdefs.h 6876*d5c9a868SElliott Hughes 6877*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 6878*d5c9a868SElliott Hughes$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 6879*d5c9a868SElliott Hughesif ${ac_cv_func_setpgrp_void+:} false; then : 6880*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6881*d5c9a868SElliott Hugheselse 6882*d5c9a868SElliott Hughes if test "$cross_compiling" = yes; then : 6883*d5c9a868SElliott Hughes as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 6884*d5c9a868SElliott Hugheselse 6885*d5c9a868SElliott Hughes cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886*d5c9a868SElliott Hughes/* end confdefs.h. */ 6887*d5c9a868SElliott Hughes$ac_includes_default 6888*d5c9a868SElliott Hughesint 6889*d5c9a868SElliott Hughesmain () 6890*d5c9a868SElliott Hughes{ 6891*d5c9a868SElliott Hughes/* If this system has a BSD-style setpgrp which takes arguments, 6892*d5c9a868SElliott Hughes setpgrp(1, 1) will fail with ESRCH and return -1, in that case 6893*d5c9a868SElliott Hughes exit successfully. */ 6894*d5c9a868SElliott Hughes return setpgrp (1,1) != -1; 6895*d5c9a868SElliott Hughes ; 6896*d5c9a868SElliott Hughes return 0; 6897*d5c9a868SElliott Hughes} 6898*d5c9a868SElliott Hughes_ACEOF 6899*d5c9a868SElliott Hughesif ac_fn_c_try_run "$LINENO"; then : 6900*d5c9a868SElliott Hughes ac_cv_func_setpgrp_void=no 6901*d5c9a868SElliott Hugheselse 6902*d5c9a868SElliott Hughes ac_cv_func_setpgrp_void=yes 6903*d5c9a868SElliott Hughesfi 6904*d5c9a868SElliott Hughesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6905*d5c9a868SElliott Hughes conftest.$ac_objext conftest.beam conftest.$ac_ext 6906*d5c9a868SElliott Hughesfi 6907*d5c9a868SElliott Hughes 6908*d5c9a868SElliott Hughesfi 6909*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 6910*d5c9a868SElliott Hughes$as_echo "$ac_cv_func_setpgrp_void" >&6; } 6911*d5c9a868SElliott Hughesif test $ac_cv_func_setpgrp_void = yes; then 6912*d5c9a868SElliott Hughes 6913*d5c9a868SElliott Hughes$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 6914*d5c9a868SElliott Hughes 6915*d5c9a868SElliott Hughesfi 6916*d5c9a868SElliott Hughes 6917*d5c9a868SElliott Hughes 6918*d5c9a868SElliott Hughes FLOPPYD_LIBS="" 6919*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 6920*d5c9a868SElliott Hughes$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } 6921*d5c9a868SElliott Hughesif ${ac_cv_lib_X11_XOpenDisplay+:} false; then : 6922*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6923*d5c9a868SElliott Hugheselse 6924*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6925*d5c9a868SElliott HughesLIBS="-lX11 $LIBS" 6926*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927*d5c9a868SElliott Hughes/* end confdefs.h. */ 6928*d5c9a868SElliott Hughes 6929*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6930*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6931*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6932*d5c9a868SElliott Hughes#ifdef __cplusplus 6933*d5c9a868SElliott Hughesextern "C" 6934*d5c9a868SElliott Hughes#endif 6935*d5c9a868SElliott Hugheschar XOpenDisplay (); 6936*d5c9a868SElliott Hughesint 6937*d5c9a868SElliott Hughesmain () 6938*d5c9a868SElliott Hughes{ 6939*d5c9a868SElliott Hughesreturn XOpenDisplay (); 6940*d5c9a868SElliott Hughes ; 6941*d5c9a868SElliott Hughes return 0; 6942*d5c9a868SElliott Hughes} 6943*d5c9a868SElliott Hughes_ACEOF 6944*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6945*d5c9a868SElliott Hughes ac_cv_lib_X11_XOpenDisplay=yes 6946*d5c9a868SElliott Hugheselse 6947*d5c9a868SElliott Hughes ac_cv_lib_X11_XOpenDisplay=no 6948*d5c9a868SElliott Hughesfi 6949*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6950*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6951*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6952*d5c9a868SElliott Hughesfi 6953*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 6954*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } 6955*d5c9a868SElliott Hughesif test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : 6956*d5c9a868SElliott Hughes FLOPPYD_LIBS="-lX11 $FLOPPYD_LIBS" 6957*d5c9a868SElliott Hughesfi 6958*d5c9a868SElliott Hughes 6959*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName in -lXau" >&5 6960*d5c9a868SElliott Hughes$as_echo_n "checking for XauFileName in -lXau... " >&6; } 6961*d5c9a868SElliott Hughesif ${ac_cv_lib_Xau_XauFileName+:} false; then : 6962*d5c9a868SElliott Hughes $as_echo_n "(cached) " >&6 6963*d5c9a868SElliott Hugheselse 6964*d5c9a868SElliott Hughes ac_check_lib_save_LIBS=$LIBS 6965*d5c9a868SElliott HughesLIBS="-lXau $LIBS" 6966*d5c9a868SElliott Hughescat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967*d5c9a868SElliott Hughes/* end confdefs.h. */ 6968*d5c9a868SElliott Hughes 6969*d5c9a868SElliott Hughes/* Override any GCC internal prototype to avoid an error. 6970*d5c9a868SElliott Hughes Use char because int might match the return type of a GCC 6971*d5c9a868SElliott Hughes builtin and then its argument prototype would still apply. */ 6972*d5c9a868SElliott Hughes#ifdef __cplusplus 6973*d5c9a868SElliott Hughesextern "C" 6974*d5c9a868SElliott Hughes#endif 6975*d5c9a868SElliott Hugheschar XauFileName (); 6976*d5c9a868SElliott Hughesint 6977*d5c9a868SElliott Hughesmain () 6978*d5c9a868SElliott Hughes{ 6979*d5c9a868SElliott Hughesreturn XauFileName (); 6980*d5c9a868SElliott Hughes ; 6981*d5c9a868SElliott Hughes return 0; 6982*d5c9a868SElliott Hughes} 6983*d5c9a868SElliott Hughes_ACEOF 6984*d5c9a868SElliott Hughesif ac_fn_c_try_link "$LINENO"; then : 6985*d5c9a868SElliott Hughes ac_cv_lib_Xau_XauFileName=yes 6986*d5c9a868SElliott Hugheselse 6987*d5c9a868SElliott Hughes ac_cv_lib_Xau_XauFileName=no 6988*d5c9a868SElliott Hughesfi 6989*d5c9a868SElliott Hughesrm -f core conftest.err conftest.$ac_objext \ 6990*d5c9a868SElliott Hughes conftest$ac_exeext conftest.$ac_ext 6991*d5c9a868SElliott HughesLIBS=$ac_check_lib_save_LIBS 6992*d5c9a868SElliott Hughesfi 6993*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauFileName" >&5 6994*d5c9a868SElliott Hughes$as_echo "$ac_cv_lib_Xau_XauFileName" >&6; } 6995*d5c9a868SElliott Hughesif test "x$ac_cv_lib_Xau_XauFileName" = xyes; then : 6996*d5c9a868SElliott Hughes FLOPPYD_LIBS="-lXau $FLOPPYD_LIBS" 6997*d5c9a868SElliott Hughesfi 6998*d5c9a868SElliott Hughes 6999*d5c9a868SElliott Hugheselse 7000*d5c9a868SElliott Hughes FLOPPYD= 7001*d5c9a868SElliott Hughes BINFLOPPYD= 7002*d5c9a868SElliott Hughes FLOPPYD_IO_SRC= 7003*d5c9a868SElliott Hughes FLOPPYD_IO_OBJ= 7004*d5c9a868SElliott Hughes FLOPPYD_LIBS= 7005*d5c9a868SElliott Hughesfi 7006*d5c9a868SElliott Hughes 7007*d5c9a868SElliott Hughes 7008*d5c9a868SElliott Hughes 7009*d5c9a868SElliott Hughes 7010*d5c9a868SElliott Hughes 7011*d5c9a868SElliott Hughes 7012*d5c9a868SElliott Hughes 7013*d5c9a868SElliott Hughes 7014*d5c9a868SElliott Hughes 7015*d5c9a868SElliott Hughes 7016*d5c9a868SElliott Hughes 7017*d5c9a868SElliott Hughes 7018*d5c9a868SElliott Hughes 7019*d5c9a868SElliott Hughes 7020*d5c9a868SElliott Hughes 7021*d5c9a868SElliott Hughesac_config_files="$ac_config_files Makefile" 7022*d5c9a868SElliott Hughes 7023*d5c9a868SElliott Hughescat >confcache <<\_ACEOF 7024*d5c9a868SElliott Hughes# This file is a shell script that caches the results of configure 7025*d5c9a868SElliott Hughes# tests run on this system so they can be shared between configure 7026*d5c9a868SElliott Hughes# scripts and configure runs, see configure's option --config-cache. 7027*d5c9a868SElliott Hughes# It is not useful on other systems. If it contains results you don't 7028*d5c9a868SElliott Hughes# want to keep, you may remove or edit it. 7029*d5c9a868SElliott Hughes# 7030*d5c9a868SElliott Hughes# config.status only pays attention to the cache file if you give it 7031*d5c9a868SElliott Hughes# the --recheck option to rerun configure. 7032*d5c9a868SElliott Hughes# 7033*d5c9a868SElliott Hughes# `ac_cv_env_foo' variables (set or unset) will be overridden when 7034*d5c9a868SElliott Hughes# loading this file, other *unset* `ac_cv_foo' will be assigned the 7035*d5c9a868SElliott Hughes# following values. 7036*d5c9a868SElliott Hughes 7037*d5c9a868SElliott Hughes_ACEOF 7038*d5c9a868SElliott Hughes 7039*d5c9a868SElliott Hughes# The following way of writing the cache mishandles newlines in values, 7040*d5c9a868SElliott Hughes# but we know of no workaround that is simple, portable, and efficient. 7041*d5c9a868SElliott Hughes# So, we kill variables containing newlines. 7042*d5c9a868SElliott Hughes# Ultrix sh set writes to stderr and can't be redirected directly, 7043*d5c9a868SElliott Hughes# and sets the high bit in the cache file unless we assign to the vars. 7044*d5c9a868SElliott Hughes( 7045*d5c9a868SElliott Hughes for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7046*d5c9a868SElliott Hughes eval ac_val=\$$ac_var 7047*d5c9a868SElliott Hughes case $ac_val in #( 7048*d5c9a868SElliott Hughes *${as_nl}*) 7049*d5c9a868SElliott Hughes case $ac_var in #( 7050*d5c9a868SElliott Hughes *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7051*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7052*d5c9a868SElliott Hughes esac 7053*d5c9a868SElliott Hughes case $ac_var in #( 7054*d5c9a868SElliott Hughes _ | IFS | as_nl) ;; #( 7055*d5c9a868SElliott Hughes BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7056*d5c9a868SElliott Hughes *) { eval $ac_var=; unset $ac_var;} ;; 7057*d5c9a868SElliott Hughes esac ;; 7058*d5c9a868SElliott Hughes esac 7059*d5c9a868SElliott Hughes done 7060*d5c9a868SElliott Hughes 7061*d5c9a868SElliott Hughes (set) 2>&1 | 7062*d5c9a868SElliott Hughes case $as_nl`(ac_space=' '; set) 2>&1` in #( 7063*d5c9a868SElliott Hughes *${as_nl}ac_space=\ *) 7064*d5c9a868SElliott Hughes # `set' does not quote correctly, so add quotes: double-quote 7065*d5c9a868SElliott Hughes # substitution turns \\\\ into \\, and sed turns \\ into \. 7066*d5c9a868SElliott Hughes sed -n \ 7067*d5c9a868SElliott Hughes "s/'/'\\\\''/g; 7068*d5c9a868SElliott Hughes s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7069*d5c9a868SElliott Hughes ;; #( 7070*d5c9a868SElliott Hughes *) 7071*d5c9a868SElliott Hughes # `set' quotes correctly as required by POSIX, so do not add quotes. 7072*d5c9a868SElliott Hughes sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7073*d5c9a868SElliott Hughes ;; 7074*d5c9a868SElliott Hughes esac | 7075*d5c9a868SElliott Hughes sort 7076*d5c9a868SElliott Hughes) | 7077*d5c9a868SElliott Hughes sed ' 7078*d5c9a868SElliott Hughes /^ac_cv_env_/b end 7079*d5c9a868SElliott Hughes t clear 7080*d5c9a868SElliott Hughes :clear 7081*d5c9a868SElliott Hughes s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7082*d5c9a868SElliott Hughes t end 7083*d5c9a868SElliott Hughes s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7084*d5c9a868SElliott Hughes :end' >>confcache 7085*d5c9a868SElliott Hughesif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7086*d5c9a868SElliott Hughes if test -w "$cache_file"; then 7087*d5c9a868SElliott Hughes if test "x$cache_file" != "x/dev/null"; then 7088*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7089*d5c9a868SElliott Hughes$as_echo "$as_me: updating cache $cache_file" >&6;} 7090*d5c9a868SElliott Hughes if test ! -f "$cache_file" || test -h "$cache_file"; then 7091*d5c9a868SElliott Hughes cat confcache >"$cache_file" 7092*d5c9a868SElliott Hughes else 7093*d5c9a868SElliott Hughes case $cache_file in #( 7094*d5c9a868SElliott Hughes */* | ?:*) 7095*d5c9a868SElliott Hughes mv -f confcache "$cache_file"$$ && 7096*d5c9a868SElliott Hughes mv -f "$cache_file"$$ "$cache_file" ;; #( 7097*d5c9a868SElliott Hughes *) 7098*d5c9a868SElliott Hughes mv -f confcache "$cache_file" ;; 7099*d5c9a868SElliott Hughes esac 7100*d5c9a868SElliott Hughes fi 7101*d5c9a868SElliott Hughes fi 7102*d5c9a868SElliott Hughes else 7103*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7104*d5c9a868SElliott Hughes$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7105*d5c9a868SElliott Hughes fi 7106*d5c9a868SElliott Hughesfi 7107*d5c9a868SElliott Hughesrm -f confcache 7108*d5c9a868SElliott Hughes 7109*d5c9a868SElliott Hughestest "x$prefix" = xNONE && prefix=$ac_default_prefix 7110*d5c9a868SElliott Hughes# Let make expand exec_prefix. 7111*d5c9a868SElliott Hughestest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7112*d5c9a868SElliott Hughes 7113*d5c9a868SElliott HughesDEFS=-DHAVE_CONFIG_H 7114*d5c9a868SElliott Hughes 7115*d5c9a868SElliott Hughesac_libobjs= 7116*d5c9a868SElliott Hughesac_ltlibobjs= 7117*d5c9a868SElliott HughesU= 7118*d5c9a868SElliott Hughesfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7119*d5c9a868SElliott Hughes # 1. Remove the extension, and $U if already installed. 7120*d5c9a868SElliott Hughes ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7121*d5c9a868SElliott Hughes ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7122*d5c9a868SElliott Hughes # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7123*d5c9a868SElliott Hughes # will be set to the directory where LIBOBJS objects are built. 7124*d5c9a868SElliott Hughes as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7125*d5c9a868SElliott Hughes as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7126*d5c9a868SElliott Hughesdone 7127*d5c9a868SElliott HughesLIBOBJS=$ac_libobjs 7128*d5c9a868SElliott Hughes 7129*d5c9a868SElliott HughesLTLIBOBJS=$ac_ltlibobjs 7130*d5c9a868SElliott Hughes 7131*d5c9a868SElliott Hughes 7132*d5c9a868SElliott Hughes 7133*d5c9a868SElliott Hughes: "${CONFIG_STATUS=./config.status}" 7134*d5c9a868SElliott Hughesac_write_fail=0 7135*d5c9a868SElliott Hughesac_clean_files_save=$ac_clean_files 7136*d5c9a868SElliott Hughesac_clean_files="$ac_clean_files $CONFIG_STATUS" 7137*d5c9a868SElliott Hughes{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7138*d5c9a868SElliott Hughes$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7139*d5c9a868SElliott Hughesas_write_fail=0 7140*d5c9a868SElliott Hughescat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7141*d5c9a868SElliott Hughes#! $SHELL 7142*d5c9a868SElliott Hughes# Generated by $as_me. 7143*d5c9a868SElliott Hughes# Run this file to recreate the current configuration. 7144*d5c9a868SElliott Hughes# Compiler output produced by configure, useful for debugging 7145*d5c9a868SElliott Hughes# configure, is in config.log if it exists. 7146*d5c9a868SElliott Hughes 7147*d5c9a868SElliott Hughesdebug=false 7148*d5c9a868SElliott Hughesac_cs_recheck=false 7149*d5c9a868SElliott Hughesac_cs_silent=false 7150*d5c9a868SElliott Hughes 7151*d5c9a868SElliott HughesSHELL=\${CONFIG_SHELL-$SHELL} 7152*d5c9a868SElliott Hughesexport SHELL 7153*d5c9a868SElliott Hughes_ASEOF 7154*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7155*d5c9a868SElliott Hughes## -------------------- ## 7156*d5c9a868SElliott Hughes## M4sh Initialization. ## 7157*d5c9a868SElliott Hughes## -------------------- ## 7158*d5c9a868SElliott Hughes 7159*d5c9a868SElliott Hughes# Be more Bourne compatible 7160*d5c9a868SElliott HughesDUALCASE=1; export DUALCASE # for MKS sh 7161*d5c9a868SElliott Hughesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7162*d5c9a868SElliott Hughes emulate sh 7163*d5c9a868SElliott Hughes NULLCMD=: 7164*d5c9a868SElliott Hughes # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7165*d5c9a868SElliott Hughes # is contrary to our usage. Disable this feature. 7166*d5c9a868SElliott Hughes alias -g '${1+"$@"}'='"$@"' 7167*d5c9a868SElliott Hughes setopt NO_GLOB_SUBST 7168*d5c9a868SElliott Hugheselse 7169*d5c9a868SElliott Hughes case `(set -o) 2>/dev/null` in #( 7170*d5c9a868SElliott Hughes *posix*) : 7171*d5c9a868SElliott Hughes set -o posix ;; #( 7172*d5c9a868SElliott Hughes *) : 7173*d5c9a868SElliott Hughes ;; 7174*d5c9a868SElliott Hughesesac 7175*d5c9a868SElliott Hughesfi 7176*d5c9a868SElliott Hughes 7177*d5c9a868SElliott Hughes 7178*d5c9a868SElliott Hughesas_nl=' 7179*d5c9a868SElliott Hughes' 7180*d5c9a868SElliott Hughesexport as_nl 7181*d5c9a868SElliott Hughes# Printing a long string crashes Solaris 7 /usr/bin/printf. 7182*d5c9a868SElliott Hughesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7183*d5c9a868SElliott Hughesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7184*d5c9a868SElliott Hughesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7185*d5c9a868SElliott Hughes# Prefer a ksh shell builtin over an external printf program on Solaris, 7186*d5c9a868SElliott Hughes# but without wasting forks for bash or zsh. 7187*d5c9a868SElliott Hughesif test -z "$BASH_VERSION$ZSH_VERSION" \ 7188*d5c9a868SElliott Hughes && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7189*d5c9a868SElliott Hughes as_echo='print -r --' 7190*d5c9a868SElliott Hughes as_echo_n='print -rn --' 7191*d5c9a868SElliott Hugheselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7192*d5c9a868SElliott Hughes as_echo='printf %s\n' 7193*d5c9a868SElliott Hughes as_echo_n='printf %s' 7194*d5c9a868SElliott Hugheselse 7195*d5c9a868SElliott Hughes if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7196*d5c9a868SElliott Hughes as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7197*d5c9a868SElliott Hughes as_echo_n='/usr/ucb/echo -n' 7198*d5c9a868SElliott Hughes else 7199*d5c9a868SElliott Hughes as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7200*d5c9a868SElliott Hughes as_echo_n_body='eval 7201*d5c9a868SElliott Hughes arg=$1; 7202*d5c9a868SElliott Hughes case $arg in #( 7203*d5c9a868SElliott Hughes *"$as_nl"*) 7204*d5c9a868SElliott Hughes expr "X$arg" : "X\\(.*\\)$as_nl"; 7205*d5c9a868SElliott Hughes arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7206*d5c9a868SElliott Hughes esac; 7207*d5c9a868SElliott Hughes expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7208*d5c9a868SElliott Hughes ' 7209*d5c9a868SElliott Hughes export as_echo_n_body 7210*d5c9a868SElliott Hughes as_echo_n='sh -c $as_echo_n_body as_echo' 7211*d5c9a868SElliott Hughes fi 7212*d5c9a868SElliott Hughes export as_echo_body 7213*d5c9a868SElliott Hughes as_echo='sh -c $as_echo_body as_echo' 7214*d5c9a868SElliott Hughesfi 7215*d5c9a868SElliott Hughes 7216*d5c9a868SElliott Hughes# The user is always right. 7217*d5c9a868SElliott Hughesif test "${PATH_SEPARATOR+set}" != set; then 7218*d5c9a868SElliott Hughes PATH_SEPARATOR=: 7219*d5c9a868SElliott Hughes (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7220*d5c9a868SElliott Hughes (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7221*d5c9a868SElliott Hughes PATH_SEPARATOR=';' 7222*d5c9a868SElliott Hughes } 7223*d5c9a868SElliott Hughesfi 7224*d5c9a868SElliott Hughes 7225*d5c9a868SElliott Hughes 7226*d5c9a868SElliott Hughes# IFS 7227*d5c9a868SElliott Hughes# We need space, tab and new line, in precisely that order. Quoting is 7228*d5c9a868SElliott Hughes# there to prevent editors from complaining about space-tab. 7229*d5c9a868SElliott Hughes# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7230*d5c9a868SElliott Hughes# splitting by setting IFS to empty value.) 7231*d5c9a868SElliott HughesIFS=" "" $as_nl" 7232*d5c9a868SElliott Hughes 7233*d5c9a868SElliott Hughes# Find who we are. Look in the path if we contain no directory separator. 7234*d5c9a868SElliott Hughesas_myself= 7235*d5c9a868SElliott Hughescase $0 in #(( 7236*d5c9a868SElliott Hughes *[\\/]* ) as_myself=$0 ;; 7237*d5c9a868SElliott Hughes *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7238*d5c9a868SElliott Hughesfor as_dir in $PATH 7239*d5c9a868SElliott Hughesdo 7240*d5c9a868SElliott Hughes IFS=$as_save_IFS 7241*d5c9a868SElliott Hughes test -z "$as_dir" && as_dir=. 7242*d5c9a868SElliott Hughes test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7243*d5c9a868SElliott Hughes done 7244*d5c9a868SElliott HughesIFS=$as_save_IFS 7245*d5c9a868SElliott Hughes 7246*d5c9a868SElliott Hughes ;; 7247*d5c9a868SElliott Hughesesac 7248*d5c9a868SElliott Hughes# We did not find ourselves, most probably we were run as `sh COMMAND' 7249*d5c9a868SElliott Hughes# in which case we are not to be found in the path. 7250*d5c9a868SElliott Hughesif test "x$as_myself" = x; then 7251*d5c9a868SElliott Hughes as_myself=$0 7252*d5c9a868SElliott Hughesfi 7253*d5c9a868SElliott Hughesif test ! -f "$as_myself"; then 7254*d5c9a868SElliott Hughes $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7255*d5c9a868SElliott Hughes exit 1 7256*d5c9a868SElliott Hughesfi 7257*d5c9a868SElliott Hughes 7258*d5c9a868SElliott Hughes# Unset variables that we do not need and which cause bugs (e.g. in 7259*d5c9a868SElliott Hughes# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7260*d5c9a868SElliott Hughes# suppresses any "Segmentation fault" message there. '((' could 7261*d5c9a868SElliott Hughes# trigger a bug in pdksh 5.2.14. 7262*d5c9a868SElliott Hughesfor as_var in BASH_ENV ENV MAIL MAILPATH 7263*d5c9a868SElliott Hughesdo eval test x\${$as_var+set} = xset \ 7264*d5c9a868SElliott Hughes && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7265*d5c9a868SElliott Hughesdone 7266*d5c9a868SElliott HughesPS1='$ ' 7267*d5c9a868SElliott HughesPS2='> ' 7268*d5c9a868SElliott HughesPS4='+ ' 7269*d5c9a868SElliott Hughes 7270*d5c9a868SElliott Hughes# NLS nuisances. 7271*d5c9a868SElliott HughesLC_ALL=C 7272*d5c9a868SElliott Hughesexport LC_ALL 7273*d5c9a868SElliott HughesLANGUAGE=C 7274*d5c9a868SElliott Hughesexport LANGUAGE 7275*d5c9a868SElliott Hughes 7276*d5c9a868SElliott Hughes# CDPATH. 7277*d5c9a868SElliott Hughes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7278*d5c9a868SElliott Hughes 7279*d5c9a868SElliott Hughes 7280*d5c9a868SElliott Hughes# as_fn_error STATUS ERROR [LINENO LOG_FD] 7281*d5c9a868SElliott Hughes# ---------------------------------------- 7282*d5c9a868SElliott Hughes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7283*d5c9a868SElliott Hughes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7284*d5c9a868SElliott Hughes# script with STATUS, using 1 if that was 0. 7285*d5c9a868SElliott Hughesas_fn_error () 7286*d5c9a868SElliott Hughes{ 7287*d5c9a868SElliott Hughes as_status=$1; test $as_status -eq 0 && as_status=1 7288*d5c9a868SElliott Hughes if test "$4"; then 7289*d5c9a868SElliott Hughes as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7290*d5c9a868SElliott Hughes $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7291*d5c9a868SElliott Hughes fi 7292*d5c9a868SElliott Hughes $as_echo "$as_me: error: $2" >&2 7293*d5c9a868SElliott Hughes as_fn_exit $as_status 7294*d5c9a868SElliott Hughes} # as_fn_error 7295*d5c9a868SElliott Hughes 7296*d5c9a868SElliott Hughes 7297*d5c9a868SElliott Hughes# as_fn_set_status STATUS 7298*d5c9a868SElliott Hughes# ----------------------- 7299*d5c9a868SElliott Hughes# Set $? to STATUS, without forking. 7300*d5c9a868SElliott Hughesas_fn_set_status () 7301*d5c9a868SElliott Hughes{ 7302*d5c9a868SElliott Hughes return $1 7303*d5c9a868SElliott Hughes} # as_fn_set_status 7304*d5c9a868SElliott Hughes 7305*d5c9a868SElliott Hughes# as_fn_exit STATUS 7306*d5c9a868SElliott Hughes# ----------------- 7307*d5c9a868SElliott Hughes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7308*d5c9a868SElliott Hughesas_fn_exit () 7309*d5c9a868SElliott Hughes{ 7310*d5c9a868SElliott Hughes set +e 7311*d5c9a868SElliott Hughes as_fn_set_status $1 7312*d5c9a868SElliott Hughes exit $1 7313*d5c9a868SElliott Hughes} # as_fn_exit 7314*d5c9a868SElliott Hughes 7315*d5c9a868SElliott Hughes# as_fn_unset VAR 7316*d5c9a868SElliott Hughes# --------------- 7317*d5c9a868SElliott Hughes# Portably unset VAR. 7318*d5c9a868SElliott Hughesas_fn_unset () 7319*d5c9a868SElliott Hughes{ 7320*d5c9a868SElliott Hughes { eval $1=; unset $1;} 7321*d5c9a868SElliott Hughes} 7322*d5c9a868SElliott Hughesas_unset=as_fn_unset 7323*d5c9a868SElliott Hughes# as_fn_append VAR VALUE 7324*d5c9a868SElliott Hughes# ---------------------- 7325*d5c9a868SElliott Hughes# Append the text in VALUE to the end of the definition contained in VAR. Take 7326*d5c9a868SElliott Hughes# advantage of any shell optimizations that allow amortized linear growth over 7327*d5c9a868SElliott Hughes# repeated appends, instead of the typical quadratic growth present in naive 7328*d5c9a868SElliott Hughes# implementations. 7329*d5c9a868SElliott Hughesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7330*d5c9a868SElliott Hughes eval 'as_fn_append () 7331*d5c9a868SElliott Hughes { 7332*d5c9a868SElliott Hughes eval $1+=\$2 7333*d5c9a868SElliott Hughes }' 7334*d5c9a868SElliott Hugheselse 7335*d5c9a868SElliott Hughes as_fn_append () 7336*d5c9a868SElliott Hughes { 7337*d5c9a868SElliott Hughes eval $1=\$$1\$2 7338*d5c9a868SElliott Hughes } 7339*d5c9a868SElliott Hughesfi # as_fn_append 7340*d5c9a868SElliott Hughes 7341*d5c9a868SElliott Hughes# as_fn_arith ARG... 7342*d5c9a868SElliott Hughes# ------------------ 7343*d5c9a868SElliott Hughes# Perform arithmetic evaluation on the ARGs, and store the result in the 7344*d5c9a868SElliott Hughes# global $as_val. Take advantage of shells that can avoid forks. The arguments 7345*d5c9a868SElliott Hughes# must be portable across $(()) and expr. 7346*d5c9a868SElliott Hughesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7347*d5c9a868SElliott Hughes eval 'as_fn_arith () 7348*d5c9a868SElliott Hughes { 7349*d5c9a868SElliott Hughes as_val=$(( $* )) 7350*d5c9a868SElliott Hughes }' 7351*d5c9a868SElliott Hugheselse 7352*d5c9a868SElliott Hughes as_fn_arith () 7353*d5c9a868SElliott Hughes { 7354*d5c9a868SElliott Hughes as_val=`expr "$@" || test $? -eq 1` 7355*d5c9a868SElliott Hughes } 7356*d5c9a868SElliott Hughesfi # as_fn_arith 7357*d5c9a868SElliott Hughes 7358*d5c9a868SElliott Hughes 7359*d5c9a868SElliott Hughesif expr a : '\(a\)' >/dev/null 2>&1 && 7360*d5c9a868SElliott Hughes test "X`expr 00001 : '.*\(...\)'`" = X001; then 7361*d5c9a868SElliott Hughes as_expr=expr 7362*d5c9a868SElliott Hugheselse 7363*d5c9a868SElliott Hughes as_expr=false 7364*d5c9a868SElliott Hughesfi 7365*d5c9a868SElliott Hughes 7366*d5c9a868SElliott Hughesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7367*d5c9a868SElliott Hughes as_basename=basename 7368*d5c9a868SElliott Hugheselse 7369*d5c9a868SElliott Hughes as_basename=false 7370*d5c9a868SElliott Hughesfi 7371*d5c9a868SElliott Hughes 7372*d5c9a868SElliott Hughesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7373*d5c9a868SElliott Hughes as_dirname=dirname 7374*d5c9a868SElliott Hugheselse 7375*d5c9a868SElliott Hughes as_dirname=false 7376*d5c9a868SElliott Hughesfi 7377*d5c9a868SElliott Hughes 7378*d5c9a868SElliott Hughesas_me=`$as_basename -- "$0" || 7379*d5c9a868SElliott Hughes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7380*d5c9a868SElliott Hughes X"$0" : 'X\(//\)$' \| \ 7381*d5c9a868SElliott Hughes X"$0" : 'X\(/\)' \| . 2>/dev/null || 7382*d5c9a868SElliott Hughes$as_echo X/"$0" | 7383*d5c9a868SElliott Hughes sed '/^.*\/\([^/][^/]*\)\/*$/{ 7384*d5c9a868SElliott Hughes s//\1/ 7385*d5c9a868SElliott Hughes q 7386*d5c9a868SElliott Hughes } 7387*d5c9a868SElliott Hughes /^X\/\(\/\/\)$/{ 7388*d5c9a868SElliott Hughes s//\1/ 7389*d5c9a868SElliott Hughes q 7390*d5c9a868SElliott Hughes } 7391*d5c9a868SElliott Hughes /^X\/\(\/\).*/{ 7392*d5c9a868SElliott Hughes s//\1/ 7393*d5c9a868SElliott Hughes q 7394*d5c9a868SElliott Hughes } 7395*d5c9a868SElliott Hughes s/.*/./; q'` 7396*d5c9a868SElliott Hughes 7397*d5c9a868SElliott Hughes# Avoid depending upon Character Ranges. 7398*d5c9a868SElliott Hughesas_cr_letters='abcdefghijklmnopqrstuvwxyz' 7399*d5c9a868SElliott Hughesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7400*d5c9a868SElliott Hughesas_cr_Letters=$as_cr_letters$as_cr_LETTERS 7401*d5c9a868SElliott Hughesas_cr_digits='0123456789' 7402*d5c9a868SElliott Hughesas_cr_alnum=$as_cr_Letters$as_cr_digits 7403*d5c9a868SElliott Hughes 7404*d5c9a868SElliott HughesECHO_C= ECHO_N= ECHO_T= 7405*d5c9a868SElliott Hughescase `echo -n x` in #((((( 7406*d5c9a868SElliott Hughes-n*) 7407*d5c9a868SElliott Hughes case `echo 'xy\c'` in 7408*d5c9a868SElliott Hughes *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7409*d5c9a868SElliott Hughes xy) ECHO_C='\c';; 7410*d5c9a868SElliott Hughes *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7411*d5c9a868SElliott Hughes ECHO_T=' ';; 7412*d5c9a868SElliott Hughes esac;; 7413*d5c9a868SElliott Hughes*) 7414*d5c9a868SElliott Hughes ECHO_N='-n';; 7415*d5c9a868SElliott Hughesesac 7416*d5c9a868SElliott Hughes 7417*d5c9a868SElliott Hughesrm -f conf$$ conf$$.exe conf$$.file 7418*d5c9a868SElliott Hughesif test -d conf$$.dir; then 7419*d5c9a868SElliott Hughes rm -f conf$$.dir/conf$$.file 7420*d5c9a868SElliott Hugheselse 7421*d5c9a868SElliott Hughes rm -f conf$$.dir 7422*d5c9a868SElliott Hughes mkdir conf$$.dir 2>/dev/null 7423*d5c9a868SElliott Hughesfi 7424*d5c9a868SElliott Hughesif (echo >conf$$.file) 2>/dev/null; then 7425*d5c9a868SElliott Hughes if ln -s conf$$.file conf$$ 2>/dev/null; then 7426*d5c9a868SElliott Hughes as_ln_s='ln -s' 7427*d5c9a868SElliott Hughes # ... but there are two gotchas: 7428*d5c9a868SElliott Hughes # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7429*d5c9a868SElliott Hughes # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7430*d5c9a868SElliott Hughes # In both cases, we have to default to `cp -pR'. 7431*d5c9a868SElliott Hughes ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7432*d5c9a868SElliott Hughes as_ln_s='cp -pR' 7433*d5c9a868SElliott Hughes elif ln conf$$.file conf$$ 2>/dev/null; then 7434*d5c9a868SElliott Hughes as_ln_s=ln 7435*d5c9a868SElliott Hughes else 7436*d5c9a868SElliott Hughes as_ln_s='cp -pR' 7437*d5c9a868SElliott Hughes fi 7438*d5c9a868SElliott Hugheselse 7439*d5c9a868SElliott Hughes as_ln_s='cp -pR' 7440*d5c9a868SElliott Hughesfi 7441*d5c9a868SElliott Hughesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7442*d5c9a868SElliott Hughesrmdir conf$$.dir 2>/dev/null 7443*d5c9a868SElliott Hughes 7444*d5c9a868SElliott Hughes 7445*d5c9a868SElliott Hughes# as_fn_mkdir_p 7446*d5c9a868SElliott Hughes# ------------- 7447*d5c9a868SElliott Hughes# Create "$as_dir" as a directory, including parents if necessary. 7448*d5c9a868SElliott Hughesas_fn_mkdir_p () 7449*d5c9a868SElliott Hughes{ 7450*d5c9a868SElliott Hughes 7451*d5c9a868SElliott Hughes case $as_dir in #( 7452*d5c9a868SElliott Hughes -*) as_dir=./$as_dir;; 7453*d5c9a868SElliott Hughes esac 7454*d5c9a868SElliott Hughes test -d "$as_dir" || eval $as_mkdir_p || { 7455*d5c9a868SElliott Hughes as_dirs= 7456*d5c9a868SElliott Hughes while :; do 7457*d5c9a868SElliott Hughes case $as_dir in #( 7458*d5c9a868SElliott Hughes *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7459*d5c9a868SElliott Hughes *) as_qdir=$as_dir;; 7460*d5c9a868SElliott Hughes esac 7461*d5c9a868SElliott Hughes as_dirs="'$as_qdir' $as_dirs" 7462*d5c9a868SElliott Hughes as_dir=`$as_dirname -- "$as_dir" || 7463*d5c9a868SElliott Hughes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7464*d5c9a868SElliott Hughes X"$as_dir" : 'X\(//\)[^/]' \| \ 7465*d5c9a868SElliott Hughes X"$as_dir" : 'X\(//\)$' \| \ 7466*d5c9a868SElliott Hughes X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7467*d5c9a868SElliott Hughes$as_echo X"$as_dir" | 7468*d5c9a868SElliott Hughes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7469*d5c9a868SElliott Hughes s//\1/ 7470*d5c9a868SElliott Hughes q 7471*d5c9a868SElliott Hughes } 7472*d5c9a868SElliott Hughes /^X\(\/\/\)[^/].*/{ 7473*d5c9a868SElliott Hughes s//\1/ 7474*d5c9a868SElliott Hughes q 7475*d5c9a868SElliott Hughes } 7476*d5c9a868SElliott Hughes /^X\(\/\/\)$/{ 7477*d5c9a868SElliott Hughes s//\1/ 7478*d5c9a868SElliott Hughes q 7479*d5c9a868SElliott Hughes } 7480*d5c9a868SElliott Hughes /^X\(\/\).*/{ 7481*d5c9a868SElliott Hughes s//\1/ 7482*d5c9a868SElliott Hughes q 7483*d5c9a868SElliott Hughes } 7484*d5c9a868SElliott Hughes s/.*/./; q'` 7485*d5c9a868SElliott Hughes test -d "$as_dir" && break 7486*d5c9a868SElliott Hughes done 7487*d5c9a868SElliott Hughes test -z "$as_dirs" || eval "mkdir $as_dirs" 7488*d5c9a868SElliott Hughes } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7489*d5c9a868SElliott Hughes 7490*d5c9a868SElliott Hughes 7491*d5c9a868SElliott Hughes} # as_fn_mkdir_p 7492*d5c9a868SElliott Hughesif mkdir -p . 2>/dev/null; then 7493*d5c9a868SElliott Hughes as_mkdir_p='mkdir -p "$as_dir"' 7494*d5c9a868SElliott Hugheselse 7495*d5c9a868SElliott Hughes test -d ./-p && rmdir ./-p 7496*d5c9a868SElliott Hughes as_mkdir_p=false 7497*d5c9a868SElliott Hughesfi 7498*d5c9a868SElliott Hughes 7499*d5c9a868SElliott Hughes 7500*d5c9a868SElliott Hughes# as_fn_executable_p FILE 7501*d5c9a868SElliott Hughes# ----------------------- 7502*d5c9a868SElliott Hughes# Test if FILE is an executable regular file. 7503*d5c9a868SElliott Hughesas_fn_executable_p () 7504*d5c9a868SElliott Hughes{ 7505*d5c9a868SElliott Hughes test -f "$1" && test -x "$1" 7506*d5c9a868SElliott Hughes} # as_fn_executable_p 7507*d5c9a868SElliott Hughesas_test_x='test -x' 7508*d5c9a868SElliott Hughesas_executable_p=as_fn_executable_p 7509*d5c9a868SElliott Hughes 7510*d5c9a868SElliott Hughes# Sed expression to map a string onto a valid CPP name. 7511*d5c9a868SElliott Hughesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7512*d5c9a868SElliott Hughes 7513*d5c9a868SElliott Hughes# Sed expression to map a string onto a valid variable name. 7514*d5c9a868SElliott Hughesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7515*d5c9a868SElliott Hughes 7516*d5c9a868SElliott Hughes 7517*d5c9a868SElliott Hughesexec 6>&1 7518*d5c9a868SElliott Hughes## ----------------------------------- ## 7519*d5c9a868SElliott Hughes## Main body of $CONFIG_STATUS script. ## 7520*d5c9a868SElliott Hughes## ----------------------------------- ## 7521*d5c9a868SElliott Hughes_ASEOF 7522*d5c9a868SElliott Hughestest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7523*d5c9a868SElliott Hughes 7524*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7525*d5c9a868SElliott Hughes# Save the log message, to keep $0 and so on meaningful, and to 7526*d5c9a868SElliott Hughes# report actual input values of CONFIG_FILES etc. instead of their 7527*d5c9a868SElliott Hughes# values after options handling. 7528*d5c9a868SElliott Hughesac_log=" 7529*d5c9a868SElliott HughesThis file was extended by $as_me, which was 7530*d5c9a868SElliott Hughesgenerated by GNU Autoconf 2.69. Invocation command line was 7531*d5c9a868SElliott Hughes 7532*d5c9a868SElliott Hughes CONFIG_FILES = $CONFIG_FILES 7533*d5c9a868SElliott Hughes CONFIG_HEADERS = $CONFIG_HEADERS 7534*d5c9a868SElliott Hughes CONFIG_LINKS = $CONFIG_LINKS 7535*d5c9a868SElliott Hughes CONFIG_COMMANDS = $CONFIG_COMMANDS 7536*d5c9a868SElliott Hughes $ $0 $@ 7537*d5c9a868SElliott Hughes 7538*d5c9a868SElliott Hugheson `(hostname || uname -n) 2>/dev/null | sed 1q` 7539*d5c9a868SElliott Hughes" 7540*d5c9a868SElliott Hughes 7541*d5c9a868SElliott Hughes_ACEOF 7542*d5c9a868SElliott Hughes 7543*d5c9a868SElliott Hughescase $ac_config_files in *" 7544*d5c9a868SElliott Hughes"*) set x $ac_config_files; shift; ac_config_files=$*;; 7545*d5c9a868SElliott Hughesesac 7546*d5c9a868SElliott Hughes 7547*d5c9a868SElliott Hughescase $ac_config_headers in *" 7548*d5c9a868SElliott Hughes"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7549*d5c9a868SElliott Hughesesac 7550*d5c9a868SElliott Hughes 7551*d5c9a868SElliott Hughes 7552*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7553*d5c9a868SElliott Hughes# Files that config.status was made for. 7554*d5c9a868SElliott Hughesconfig_files="$ac_config_files" 7555*d5c9a868SElliott Hughesconfig_headers="$ac_config_headers" 7556*d5c9a868SElliott Hughes 7557*d5c9a868SElliott Hughes_ACEOF 7558*d5c9a868SElliott Hughes 7559*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7560*d5c9a868SElliott Hughesac_cs_usage="\ 7561*d5c9a868SElliott Hughes\`$as_me' instantiates files and other configuration actions 7562*d5c9a868SElliott Hughesfrom templates according to the current configuration. Unless the files 7563*d5c9a868SElliott Hughesand actions are specified as TAGs, all are instantiated by default. 7564*d5c9a868SElliott Hughes 7565*d5c9a868SElliott HughesUsage: $0 [OPTION]... [TAG]... 7566*d5c9a868SElliott Hughes 7567*d5c9a868SElliott Hughes -h, --help print this help, then exit 7568*d5c9a868SElliott Hughes -V, --version print version number and configuration settings, then exit 7569*d5c9a868SElliott Hughes --config print configuration, then exit 7570*d5c9a868SElliott Hughes -q, --quiet, --silent 7571*d5c9a868SElliott Hughes do not print progress messages 7572*d5c9a868SElliott Hughes -d, --debug don't remove temporary files 7573*d5c9a868SElliott Hughes --recheck update $as_me by reconfiguring in the same conditions 7574*d5c9a868SElliott Hughes --file=FILE[:TEMPLATE] 7575*d5c9a868SElliott Hughes instantiate the configuration file FILE 7576*d5c9a868SElliott Hughes --header=FILE[:TEMPLATE] 7577*d5c9a868SElliott Hughes instantiate the configuration header FILE 7578*d5c9a868SElliott Hughes 7579*d5c9a868SElliott HughesConfiguration files: 7580*d5c9a868SElliott Hughes$config_files 7581*d5c9a868SElliott Hughes 7582*d5c9a868SElliott HughesConfiguration headers: 7583*d5c9a868SElliott Hughes$config_headers 7584*d5c9a868SElliott Hughes 7585*d5c9a868SElliott HughesReport bugs to the package provider." 7586*d5c9a868SElliott Hughes 7587*d5c9a868SElliott Hughes_ACEOF 7588*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7589*d5c9a868SElliott Hughesac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7590*d5c9a868SElliott Hughesac_cs_version="\\ 7591*d5c9a868SElliott Hughesconfig.status 7592*d5c9a868SElliott Hughesconfigured by $0, generated by GNU Autoconf 2.69, 7593*d5c9a868SElliott Hughes with options \\"\$ac_cs_config\\" 7594*d5c9a868SElliott Hughes 7595*d5c9a868SElliott HughesCopyright (C) 2012 Free Software Foundation, Inc. 7596*d5c9a868SElliott HughesThis config.status script is free software; the Free Software Foundation 7597*d5c9a868SElliott Hughesgives unlimited permission to copy, distribute and modify it." 7598*d5c9a868SElliott Hughes 7599*d5c9a868SElliott Hughesac_pwd='$ac_pwd' 7600*d5c9a868SElliott Hughessrcdir='$srcdir' 7601*d5c9a868SElliott HughesINSTALL='$INSTALL' 7602*d5c9a868SElliott Hughestest -n "\$AWK" || AWK=awk 7603*d5c9a868SElliott Hughes_ACEOF 7604*d5c9a868SElliott Hughes 7605*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7606*d5c9a868SElliott Hughes# The default lists apply if the user does not specify any file. 7607*d5c9a868SElliott Hughesac_need_defaults=: 7608*d5c9a868SElliott Hugheswhile test $# != 0 7609*d5c9a868SElliott Hughesdo 7610*d5c9a868SElliott Hughes case $1 in 7611*d5c9a868SElliott Hughes --*=?*) 7612*d5c9a868SElliott Hughes ac_option=`expr "X$1" : 'X\([^=]*\)='` 7613*d5c9a868SElliott Hughes ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7614*d5c9a868SElliott Hughes ac_shift=: 7615*d5c9a868SElliott Hughes ;; 7616*d5c9a868SElliott Hughes --*=) 7617*d5c9a868SElliott Hughes ac_option=`expr "X$1" : 'X\([^=]*\)='` 7618*d5c9a868SElliott Hughes ac_optarg= 7619*d5c9a868SElliott Hughes ac_shift=: 7620*d5c9a868SElliott Hughes ;; 7621*d5c9a868SElliott Hughes *) 7622*d5c9a868SElliott Hughes ac_option=$1 7623*d5c9a868SElliott Hughes ac_optarg=$2 7624*d5c9a868SElliott Hughes ac_shift=shift 7625*d5c9a868SElliott Hughes ;; 7626*d5c9a868SElliott Hughes esac 7627*d5c9a868SElliott Hughes 7628*d5c9a868SElliott Hughes case $ac_option in 7629*d5c9a868SElliott Hughes # Handling of the options. 7630*d5c9a868SElliott Hughes -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7631*d5c9a868SElliott Hughes ac_cs_recheck=: ;; 7632*d5c9a868SElliott Hughes --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7633*d5c9a868SElliott Hughes $as_echo "$ac_cs_version"; exit ;; 7634*d5c9a868SElliott Hughes --config | --confi | --conf | --con | --co | --c ) 7635*d5c9a868SElliott Hughes $as_echo "$ac_cs_config"; exit ;; 7636*d5c9a868SElliott Hughes --debug | --debu | --deb | --de | --d | -d ) 7637*d5c9a868SElliott Hughes debug=: ;; 7638*d5c9a868SElliott Hughes --file | --fil | --fi | --f ) 7639*d5c9a868SElliott Hughes $ac_shift 7640*d5c9a868SElliott Hughes case $ac_optarg in 7641*d5c9a868SElliott Hughes *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7642*d5c9a868SElliott Hughes '') as_fn_error $? "missing file argument" ;; 7643*d5c9a868SElliott Hughes esac 7644*d5c9a868SElliott Hughes as_fn_append CONFIG_FILES " '$ac_optarg'" 7645*d5c9a868SElliott Hughes ac_need_defaults=false;; 7646*d5c9a868SElliott Hughes --header | --heade | --head | --hea ) 7647*d5c9a868SElliott Hughes $ac_shift 7648*d5c9a868SElliott Hughes case $ac_optarg in 7649*d5c9a868SElliott Hughes *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7650*d5c9a868SElliott Hughes esac 7651*d5c9a868SElliott Hughes as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7652*d5c9a868SElliott Hughes ac_need_defaults=false;; 7653*d5c9a868SElliott Hughes --he | --h) 7654*d5c9a868SElliott Hughes # Conflict between --help and --header 7655*d5c9a868SElliott Hughes as_fn_error $? "ambiguous option: \`$1' 7656*d5c9a868SElliott HughesTry \`$0 --help' for more information.";; 7657*d5c9a868SElliott Hughes --help | --hel | -h ) 7658*d5c9a868SElliott Hughes $as_echo "$ac_cs_usage"; exit ;; 7659*d5c9a868SElliott Hughes -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7660*d5c9a868SElliott Hughes | -silent | --silent | --silen | --sile | --sil | --si | --s) 7661*d5c9a868SElliott Hughes ac_cs_silent=: ;; 7662*d5c9a868SElliott Hughes 7663*d5c9a868SElliott Hughes # This is an error. 7664*d5c9a868SElliott Hughes -*) as_fn_error $? "unrecognized option: \`$1' 7665*d5c9a868SElliott HughesTry \`$0 --help' for more information." ;; 7666*d5c9a868SElliott Hughes 7667*d5c9a868SElliott Hughes *) as_fn_append ac_config_targets " $1" 7668*d5c9a868SElliott Hughes ac_need_defaults=false ;; 7669*d5c9a868SElliott Hughes 7670*d5c9a868SElliott Hughes esac 7671*d5c9a868SElliott Hughes shift 7672*d5c9a868SElliott Hughesdone 7673*d5c9a868SElliott Hughes 7674*d5c9a868SElliott Hughesac_configure_extra_args= 7675*d5c9a868SElliott Hughes 7676*d5c9a868SElliott Hughesif $ac_cs_silent; then 7677*d5c9a868SElliott Hughes exec 6>/dev/null 7678*d5c9a868SElliott Hughes ac_configure_extra_args="$ac_configure_extra_args --silent" 7679*d5c9a868SElliott Hughesfi 7680*d5c9a868SElliott Hughes 7681*d5c9a868SElliott Hughes_ACEOF 7682*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7683*d5c9a868SElliott Hughesif \$ac_cs_recheck; then 7684*d5c9a868SElliott Hughes set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7685*d5c9a868SElliott Hughes shift 7686*d5c9a868SElliott Hughes \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7687*d5c9a868SElliott Hughes CONFIG_SHELL='$SHELL' 7688*d5c9a868SElliott Hughes export CONFIG_SHELL 7689*d5c9a868SElliott Hughes exec "\$@" 7690*d5c9a868SElliott Hughesfi 7691*d5c9a868SElliott Hughes 7692*d5c9a868SElliott Hughes_ACEOF 7693*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7694*d5c9a868SElliott Hughesexec 5>>config.log 7695*d5c9a868SElliott Hughes{ 7696*d5c9a868SElliott Hughes echo 7697*d5c9a868SElliott Hughes sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7698*d5c9a868SElliott Hughes## Running $as_me. ## 7699*d5c9a868SElliott Hughes_ASBOX 7700*d5c9a868SElliott Hughes $as_echo "$ac_log" 7701*d5c9a868SElliott Hughes} >&5 7702*d5c9a868SElliott Hughes 7703*d5c9a868SElliott Hughes_ACEOF 7704*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7705*d5c9a868SElliott Hughes_ACEOF 7706*d5c9a868SElliott Hughes 7707*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7708*d5c9a868SElliott Hughes 7709*d5c9a868SElliott Hughes# Handling of arguments. 7710*d5c9a868SElliott Hughesfor ac_config_target in $ac_config_targets 7711*d5c9a868SElliott Hughesdo 7712*d5c9a868SElliott Hughes case $ac_config_target in 7713*d5c9a868SElliott Hughes "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7714*d5c9a868SElliott Hughes "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7715*d5c9a868SElliott Hughes 7716*d5c9a868SElliott Hughes *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7717*d5c9a868SElliott Hughes esac 7718*d5c9a868SElliott Hughesdone 7719*d5c9a868SElliott Hughes 7720*d5c9a868SElliott Hughes 7721*d5c9a868SElliott Hughes# If the user did not use the arguments to specify the items to instantiate, 7722*d5c9a868SElliott Hughes# then the envvar interface is used. Set only those that are not. 7723*d5c9a868SElliott Hughes# We use the long form for the default assignment because of an extremely 7724*d5c9a868SElliott Hughes# bizarre bug on SunOS 4.1.3. 7725*d5c9a868SElliott Hughesif $ac_need_defaults; then 7726*d5c9a868SElliott Hughes test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7727*d5c9a868SElliott Hughes test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7728*d5c9a868SElliott Hughesfi 7729*d5c9a868SElliott Hughes 7730*d5c9a868SElliott Hughes# Have a temporary directory for convenience. Make it in the build tree 7731*d5c9a868SElliott Hughes# simply because there is no reason against having it here, and in addition, 7732*d5c9a868SElliott Hughes# creating and moving files from /tmp can sometimes cause problems. 7733*d5c9a868SElliott Hughes# Hook for its removal unless debugging. 7734*d5c9a868SElliott Hughes# Note that there is a small window in which the directory will not be cleaned: 7735*d5c9a868SElliott Hughes# after its creation but before its name has been assigned to `$tmp'. 7736*d5c9a868SElliott Hughes$debug || 7737*d5c9a868SElliott Hughes{ 7738*d5c9a868SElliott Hughes tmp= ac_tmp= 7739*d5c9a868SElliott Hughes trap 'exit_status=$? 7740*d5c9a868SElliott Hughes : "${ac_tmp:=$tmp}" 7741*d5c9a868SElliott Hughes { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7742*d5c9a868SElliott Hughes' 0 7743*d5c9a868SElliott Hughes trap 'as_fn_exit 1' 1 2 13 15 7744*d5c9a868SElliott Hughes} 7745*d5c9a868SElliott Hughes# Create a (secure) tmp directory for tmp files. 7746*d5c9a868SElliott Hughes 7747*d5c9a868SElliott Hughes{ 7748*d5c9a868SElliott Hughes tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7749*d5c9a868SElliott Hughes test -d "$tmp" 7750*d5c9a868SElliott Hughes} || 7751*d5c9a868SElliott Hughes{ 7752*d5c9a868SElliott Hughes tmp=./conf$$-$RANDOM 7753*d5c9a868SElliott Hughes (umask 077 && mkdir "$tmp") 7754*d5c9a868SElliott Hughes} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7755*d5c9a868SElliott Hughesac_tmp=$tmp 7756*d5c9a868SElliott Hughes 7757*d5c9a868SElliott Hughes# Set up the scripts for CONFIG_FILES section. 7758*d5c9a868SElliott Hughes# No need to generate them if there are no CONFIG_FILES. 7759*d5c9a868SElliott Hughes# This happens for instance with `./config.status config.h'. 7760*d5c9a868SElliott Hughesif test -n "$CONFIG_FILES"; then 7761*d5c9a868SElliott Hughes 7762*d5c9a868SElliott Hughes 7763*d5c9a868SElliott Hughesac_cr=`echo X | tr X '\015'` 7764*d5c9a868SElliott Hughes# On cygwin, bash can eat \r inside `` if the user requested igncr. 7765*d5c9a868SElliott Hughes# But we know of no other shell where ac_cr would be empty at this 7766*d5c9a868SElliott Hughes# point, so we can use a bashism as a fallback. 7767*d5c9a868SElliott Hughesif test "x$ac_cr" = x; then 7768*d5c9a868SElliott Hughes eval ac_cr=\$\'\\r\' 7769*d5c9a868SElliott Hughesfi 7770*d5c9a868SElliott Hughesac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7771*d5c9a868SElliott Hughesif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7772*d5c9a868SElliott Hughes ac_cs_awk_cr='\\r' 7773*d5c9a868SElliott Hugheselse 7774*d5c9a868SElliott Hughes ac_cs_awk_cr=$ac_cr 7775*d5c9a868SElliott Hughesfi 7776*d5c9a868SElliott Hughes 7777*d5c9a868SElliott Hughesecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 7778*d5c9a868SElliott Hughes_ACEOF 7779*d5c9a868SElliott Hughes 7780*d5c9a868SElliott Hughes 7781*d5c9a868SElliott Hughes{ 7782*d5c9a868SElliott Hughes echo "cat >conf$$subs.awk <<_ACEOF" && 7783*d5c9a868SElliott Hughes echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7784*d5c9a868SElliott Hughes echo "_ACEOF" 7785*d5c9a868SElliott Hughes} >conf$$subs.sh || 7786*d5c9a868SElliott Hughes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7787*d5c9a868SElliott Hughesac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7788*d5c9a868SElliott Hughesac_delim='%!_!# ' 7789*d5c9a868SElliott Hughesfor ac_last_try in false false false false false :; do 7790*d5c9a868SElliott Hughes . ./conf$$subs.sh || 7791*d5c9a868SElliott Hughes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7792*d5c9a868SElliott Hughes 7793*d5c9a868SElliott Hughes ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7794*d5c9a868SElliott Hughes if test $ac_delim_n = $ac_delim_num; then 7795*d5c9a868SElliott Hughes break 7796*d5c9a868SElliott Hughes elif $ac_last_try; then 7797*d5c9a868SElliott Hughes as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7798*d5c9a868SElliott Hughes else 7799*d5c9a868SElliott Hughes ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7800*d5c9a868SElliott Hughes fi 7801*d5c9a868SElliott Hughesdone 7802*d5c9a868SElliott Hughesrm -f conf$$subs.sh 7803*d5c9a868SElliott Hughes 7804*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7805*d5c9a868SElliott Hughescat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7806*d5c9a868SElliott Hughes_ACEOF 7807*d5c9a868SElliott Hughessed -n ' 7808*d5c9a868SElliott Hughesh 7809*d5c9a868SElliott Hughess/^/S["/; s/!.*/"]=/ 7810*d5c9a868SElliott Hughesp 7811*d5c9a868SElliott Hughesg 7812*d5c9a868SElliott Hughess/^[^!]*!// 7813*d5c9a868SElliott Hughes:repl 7814*d5c9a868SElliott Hughest repl 7815*d5c9a868SElliott Hughess/'"$ac_delim"'$// 7816*d5c9a868SElliott Hughest delim 7817*d5c9a868SElliott Hughes:nl 7818*d5c9a868SElliott Hughesh 7819*d5c9a868SElliott Hughess/\(.\{148\}\)..*/\1/ 7820*d5c9a868SElliott Hughest more1 7821*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7822*d5c9a868SElliott Hughesp 7823*d5c9a868SElliott Hughesn 7824*d5c9a868SElliott Hughesb repl 7825*d5c9a868SElliott Hughes:more1 7826*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7827*d5c9a868SElliott Hughesp 7828*d5c9a868SElliott Hughesg 7829*d5c9a868SElliott Hughess/.\{148\}// 7830*d5c9a868SElliott Hughest nl 7831*d5c9a868SElliott Hughes:delim 7832*d5c9a868SElliott Hughesh 7833*d5c9a868SElliott Hughess/\(.\{148\}\)..*/\1/ 7834*d5c9a868SElliott Hughest more2 7835*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/"/ 7836*d5c9a868SElliott Hughesp 7837*d5c9a868SElliott Hughesb 7838*d5c9a868SElliott Hughes:more2 7839*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7840*d5c9a868SElliott Hughesp 7841*d5c9a868SElliott Hughesg 7842*d5c9a868SElliott Hughess/.\{148\}// 7843*d5c9a868SElliott Hughest delim 7844*d5c9a868SElliott Hughes' <conf$$subs.awk | sed ' 7845*d5c9a868SElliott Hughes/^[^""]/{ 7846*d5c9a868SElliott Hughes N 7847*d5c9a868SElliott Hughes s/\n// 7848*d5c9a868SElliott Hughes} 7849*d5c9a868SElliott Hughes' >>$CONFIG_STATUS || ac_write_fail=1 7850*d5c9a868SElliott Hughesrm -f conf$$subs.awk 7851*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7852*d5c9a868SElliott Hughes_ACAWK 7853*d5c9a868SElliott Hughescat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7854*d5c9a868SElliott Hughes for (key in S) S_is_set[key] = 1 7855*d5c9a868SElliott Hughes FS = "" 7856*d5c9a868SElliott Hughes 7857*d5c9a868SElliott Hughes} 7858*d5c9a868SElliott Hughes{ 7859*d5c9a868SElliott Hughes line = $ 0 7860*d5c9a868SElliott Hughes nfields = split(line, field, "@") 7861*d5c9a868SElliott Hughes substed = 0 7862*d5c9a868SElliott Hughes len = length(field[1]) 7863*d5c9a868SElliott Hughes for (i = 2; i < nfields; i++) { 7864*d5c9a868SElliott Hughes key = field[i] 7865*d5c9a868SElliott Hughes keylen = length(key) 7866*d5c9a868SElliott Hughes if (S_is_set[key]) { 7867*d5c9a868SElliott Hughes value = S[key] 7868*d5c9a868SElliott Hughes line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7869*d5c9a868SElliott Hughes len += length(value) + length(field[++i]) 7870*d5c9a868SElliott Hughes substed = 1 7871*d5c9a868SElliott Hughes } else 7872*d5c9a868SElliott Hughes len += 1 + keylen 7873*d5c9a868SElliott Hughes } 7874*d5c9a868SElliott Hughes 7875*d5c9a868SElliott Hughes print line 7876*d5c9a868SElliott Hughes} 7877*d5c9a868SElliott Hughes 7878*d5c9a868SElliott Hughes_ACAWK 7879*d5c9a868SElliott Hughes_ACEOF 7880*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7881*d5c9a868SElliott Hughesif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7882*d5c9a868SElliott Hughes sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7883*d5c9a868SElliott Hugheselse 7884*d5c9a868SElliott Hughes cat 7885*d5c9a868SElliott Hughesfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7886*d5c9a868SElliott Hughes || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7887*d5c9a868SElliott Hughes_ACEOF 7888*d5c9a868SElliott Hughes 7889*d5c9a868SElliott Hughes# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7890*d5c9a868SElliott Hughes# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7891*d5c9a868SElliott Hughes# trailing colons and then remove the whole line if VPATH becomes empty 7892*d5c9a868SElliott Hughes# (actually we leave an empty line to preserve line numbers). 7893*d5c9a868SElliott Hughesif test "x$srcdir" = x.; then 7894*d5c9a868SElliott Hughes ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7895*d5c9a868SElliott Hughesh 7896*d5c9a868SElliott Hughess/// 7897*d5c9a868SElliott Hughess/^/:/ 7898*d5c9a868SElliott Hughess/[ ]*$/:/ 7899*d5c9a868SElliott Hughess/:\$(srcdir):/:/g 7900*d5c9a868SElliott Hughess/:\${srcdir}:/:/g 7901*d5c9a868SElliott Hughess/:@srcdir@:/:/g 7902*d5c9a868SElliott Hughess/^:*// 7903*d5c9a868SElliott Hughess/:*$// 7904*d5c9a868SElliott Hughesx 7905*d5c9a868SElliott Hughess/\(=[ ]*\).*/\1/ 7906*d5c9a868SElliott HughesG 7907*d5c9a868SElliott Hughess/\n// 7908*d5c9a868SElliott Hughess/^[^=]*=[ ]*$// 7909*d5c9a868SElliott Hughes}' 7910*d5c9a868SElliott Hughesfi 7911*d5c9a868SElliott Hughes 7912*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7913*d5c9a868SElliott Hughesfi # test -n "$CONFIG_FILES" 7914*d5c9a868SElliott Hughes 7915*d5c9a868SElliott Hughes# Set up the scripts for CONFIG_HEADERS section. 7916*d5c9a868SElliott Hughes# No need to generate them if there are no CONFIG_HEADERS. 7917*d5c9a868SElliott Hughes# This happens for instance with `./config.status Makefile'. 7918*d5c9a868SElliott Hughesif test -n "$CONFIG_HEADERS"; then 7919*d5c9a868SElliott Hughescat >"$ac_tmp/defines.awk" <<\_ACAWK || 7920*d5c9a868SElliott HughesBEGIN { 7921*d5c9a868SElliott Hughes_ACEOF 7922*d5c9a868SElliott Hughes 7923*d5c9a868SElliott Hughes# Transform confdefs.h into an awk script `defines.awk', embedded as 7924*d5c9a868SElliott Hughes# here-document in config.status, that substitutes the proper values into 7925*d5c9a868SElliott Hughes# config.h.in to produce config.h. 7926*d5c9a868SElliott Hughes 7927*d5c9a868SElliott Hughes# Create a delimiter string that does not exist in confdefs.h, to ease 7928*d5c9a868SElliott Hughes# handling of long lines. 7929*d5c9a868SElliott Hughesac_delim='%!_!# ' 7930*d5c9a868SElliott Hughesfor ac_last_try in false false :; do 7931*d5c9a868SElliott Hughes ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7932*d5c9a868SElliott Hughes if test -z "$ac_tt"; then 7933*d5c9a868SElliott Hughes break 7934*d5c9a868SElliott Hughes elif $ac_last_try; then 7935*d5c9a868SElliott Hughes as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7936*d5c9a868SElliott Hughes else 7937*d5c9a868SElliott Hughes ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7938*d5c9a868SElliott Hughes fi 7939*d5c9a868SElliott Hughesdone 7940*d5c9a868SElliott Hughes 7941*d5c9a868SElliott Hughes# For the awk script, D is an array of macro values keyed by name, 7942*d5c9a868SElliott Hughes# likewise P contains macro parameters if any. Preserve backslash 7943*d5c9a868SElliott Hughes# newline sequences. 7944*d5c9a868SElliott Hughes 7945*d5c9a868SElliott Hughesac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7946*d5c9a868SElliott Hughessed -n ' 7947*d5c9a868SElliott Hughess/.\{148\}/&'"$ac_delim"'/g 7948*d5c9a868SElliott Hughest rset 7949*d5c9a868SElliott Hughes:rset 7950*d5c9a868SElliott Hughess/^[ ]*#[ ]*define[ ][ ]*/ / 7951*d5c9a868SElliott Hughest def 7952*d5c9a868SElliott Hughesd 7953*d5c9a868SElliott Hughes:def 7954*d5c9a868SElliott Hughess/\\$// 7955*d5c9a868SElliott Hughest bsnl 7956*d5c9a868SElliott Hughess/["\\]/\\&/g 7957*d5c9a868SElliott Hughess/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7958*d5c9a868SElliott HughesD["\1"]=" \3"/p 7959*d5c9a868SElliott Hughess/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7960*d5c9a868SElliott Hughesd 7961*d5c9a868SElliott Hughes:bsnl 7962*d5c9a868SElliott Hughess/["\\]/\\&/g 7963*d5c9a868SElliott Hughess/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7964*d5c9a868SElliott HughesD["\1"]=" \3\\\\\\n"\\/p 7965*d5c9a868SElliott Hughest cont 7966*d5c9a868SElliott Hughess/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7967*d5c9a868SElliott Hughest cont 7968*d5c9a868SElliott Hughesd 7969*d5c9a868SElliott Hughes:cont 7970*d5c9a868SElliott Hughesn 7971*d5c9a868SElliott Hughess/.\{148\}/&'"$ac_delim"'/g 7972*d5c9a868SElliott Hughest clear 7973*d5c9a868SElliott Hughes:clear 7974*d5c9a868SElliott Hughess/\\$// 7975*d5c9a868SElliott Hughest bsnlc 7976*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/"/p 7977*d5c9a868SElliott Hughesd 7978*d5c9a868SElliott Hughes:bsnlc 7979*d5c9a868SElliott Hughess/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7980*d5c9a868SElliott Hughesb cont 7981*d5c9a868SElliott Hughes' <confdefs.h | sed ' 7982*d5c9a868SElliott Hughess/'"$ac_delim"'/"\\\ 7983*d5c9a868SElliott Hughes"/g' >>$CONFIG_STATUS || ac_write_fail=1 7984*d5c9a868SElliott Hughes 7985*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7986*d5c9a868SElliott Hughes for (key in D) D_is_set[key] = 1 7987*d5c9a868SElliott Hughes FS = "" 7988*d5c9a868SElliott Hughes} 7989*d5c9a868SElliott Hughes/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7990*d5c9a868SElliott Hughes line = \$ 0 7991*d5c9a868SElliott Hughes split(line, arg, " ") 7992*d5c9a868SElliott Hughes if (arg[1] == "#") { 7993*d5c9a868SElliott Hughes defundef = arg[2] 7994*d5c9a868SElliott Hughes mac1 = arg[3] 7995*d5c9a868SElliott Hughes } else { 7996*d5c9a868SElliott Hughes defundef = substr(arg[1], 2) 7997*d5c9a868SElliott Hughes mac1 = arg[2] 7998*d5c9a868SElliott Hughes } 7999*d5c9a868SElliott Hughes split(mac1, mac2, "(") #) 8000*d5c9a868SElliott Hughes macro = mac2[1] 8001*d5c9a868SElliott Hughes prefix = substr(line, 1, index(line, defundef) - 1) 8002*d5c9a868SElliott Hughes if (D_is_set[macro]) { 8003*d5c9a868SElliott Hughes # Preserve the white space surrounding the "#". 8004*d5c9a868SElliott Hughes print prefix "define", macro P[macro] D[macro] 8005*d5c9a868SElliott Hughes next 8006*d5c9a868SElliott Hughes } else { 8007*d5c9a868SElliott Hughes # Replace #undef with comments. This is necessary, for example, 8008*d5c9a868SElliott Hughes # in the case of _POSIX_SOURCE, which is predefined and required 8009*d5c9a868SElliott Hughes # on some systems where configure will not decide to define it. 8010*d5c9a868SElliott Hughes if (defundef == "undef") { 8011*d5c9a868SElliott Hughes print "/*", prefix defundef, macro, "*/" 8012*d5c9a868SElliott Hughes next 8013*d5c9a868SElliott Hughes } 8014*d5c9a868SElliott Hughes } 8015*d5c9a868SElliott Hughes} 8016*d5c9a868SElliott Hughes{ print } 8017*d5c9a868SElliott Hughes_ACAWK 8018*d5c9a868SElliott Hughes_ACEOF 8019*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8020*d5c9a868SElliott Hughes as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8021*d5c9a868SElliott Hughesfi # test -n "$CONFIG_HEADERS" 8022*d5c9a868SElliott Hughes 8023*d5c9a868SElliott Hughes 8024*d5c9a868SElliott Hugheseval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 8025*d5c9a868SElliott Hughesshift 8026*d5c9a868SElliott Hughesfor ac_tag 8027*d5c9a868SElliott Hughesdo 8028*d5c9a868SElliott Hughes case $ac_tag in 8029*d5c9a868SElliott Hughes :[FHLC]) ac_mode=$ac_tag; continue;; 8030*d5c9a868SElliott Hughes esac 8031*d5c9a868SElliott Hughes case $ac_mode$ac_tag in 8032*d5c9a868SElliott Hughes :[FHL]*:*);; 8033*d5c9a868SElliott Hughes :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8034*d5c9a868SElliott Hughes :[FH]-) ac_tag=-:-;; 8035*d5c9a868SElliott Hughes :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8036*d5c9a868SElliott Hughes esac 8037*d5c9a868SElliott Hughes ac_save_IFS=$IFS 8038*d5c9a868SElliott Hughes IFS=: 8039*d5c9a868SElliott Hughes set x $ac_tag 8040*d5c9a868SElliott Hughes IFS=$ac_save_IFS 8041*d5c9a868SElliott Hughes shift 8042*d5c9a868SElliott Hughes ac_file=$1 8043*d5c9a868SElliott Hughes shift 8044*d5c9a868SElliott Hughes 8045*d5c9a868SElliott Hughes case $ac_mode in 8046*d5c9a868SElliott Hughes :L) ac_source=$1;; 8047*d5c9a868SElliott Hughes :[FH]) 8048*d5c9a868SElliott Hughes ac_file_inputs= 8049*d5c9a868SElliott Hughes for ac_f 8050*d5c9a868SElliott Hughes do 8051*d5c9a868SElliott Hughes case $ac_f in 8052*d5c9a868SElliott Hughes -) ac_f="$ac_tmp/stdin";; 8053*d5c9a868SElliott Hughes *) # Look for the file first in the build tree, then in the source tree 8054*d5c9a868SElliott Hughes # (if the path is not absolute). The absolute path cannot be DOS-style, 8055*d5c9a868SElliott Hughes # because $ac_f cannot contain `:'. 8056*d5c9a868SElliott Hughes test -f "$ac_f" || 8057*d5c9a868SElliott Hughes case $ac_f in 8058*d5c9a868SElliott Hughes [\\/$]*) false;; 8059*d5c9a868SElliott Hughes *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8060*d5c9a868SElliott Hughes esac || 8061*d5c9a868SElliott Hughes as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8062*d5c9a868SElliott Hughes esac 8063*d5c9a868SElliott Hughes case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8064*d5c9a868SElliott Hughes as_fn_append ac_file_inputs " '$ac_f'" 8065*d5c9a868SElliott Hughes done 8066*d5c9a868SElliott Hughes 8067*d5c9a868SElliott Hughes # Let's still pretend it is `configure' which instantiates (i.e., don't 8068*d5c9a868SElliott Hughes # use $as_me), people would be surprised to read: 8069*d5c9a868SElliott Hughes # /* config.h. Generated by config.status. */ 8070*d5c9a868SElliott Hughes configure_input='Generated from '` 8071*d5c9a868SElliott Hughes $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8072*d5c9a868SElliott Hughes `' by configure.' 8073*d5c9a868SElliott Hughes if test x"$ac_file" != x-; then 8074*d5c9a868SElliott Hughes configure_input="$ac_file. $configure_input" 8075*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8076*d5c9a868SElliott Hughes$as_echo "$as_me: creating $ac_file" >&6;} 8077*d5c9a868SElliott Hughes fi 8078*d5c9a868SElliott Hughes # Neutralize special characters interpreted by sed in replacement strings. 8079*d5c9a868SElliott Hughes case $configure_input in #( 8080*d5c9a868SElliott Hughes *\&* | *\|* | *\\* ) 8081*d5c9a868SElliott Hughes ac_sed_conf_input=`$as_echo "$configure_input" | 8082*d5c9a868SElliott Hughes sed 's/[\\\\&|]/\\\\&/g'`;; #( 8083*d5c9a868SElliott Hughes *) ac_sed_conf_input=$configure_input;; 8084*d5c9a868SElliott Hughes esac 8085*d5c9a868SElliott Hughes 8086*d5c9a868SElliott Hughes case $ac_tag in 8087*d5c9a868SElliott Hughes *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8088*d5c9a868SElliott Hughes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8089*d5c9a868SElliott Hughes esac 8090*d5c9a868SElliott Hughes ;; 8091*d5c9a868SElliott Hughes esac 8092*d5c9a868SElliott Hughes 8093*d5c9a868SElliott Hughes ac_dir=`$as_dirname -- "$ac_file" || 8094*d5c9a868SElliott Hughes$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8095*d5c9a868SElliott Hughes X"$ac_file" : 'X\(//\)[^/]' \| \ 8096*d5c9a868SElliott Hughes X"$ac_file" : 'X\(//\)$' \| \ 8097*d5c9a868SElliott Hughes X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8098*d5c9a868SElliott Hughes$as_echo X"$ac_file" | 8099*d5c9a868SElliott Hughes sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8100*d5c9a868SElliott Hughes s//\1/ 8101*d5c9a868SElliott Hughes q 8102*d5c9a868SElliott Hughes } 8103*d5c9a868SElliott Hughes /^X\(\/\/\)[^/].*/{ 8104*d5c9a868SElliott Hughes s//\1/ 8105*d5c9a868SElliott Hughes q 8106*d5c9a868SElliott Hughes } 8107*d5c9a868SElliott Hughes /^X\(\/\/\)$/{ 8108*d5c9a868SElliott Hughes s//\1/ 8109*d5c9a868SElliott Hughes q 8110*d5c9a868SElliott Hughes } 8111*d5c9a868SElliott Hughes /^X\(\/\).*/{ 8112*d5c9a868SElliott Hughes s//\1/ 8113*d5c9a868SElliott Hughes q 8114*d5c9a868SElliott Hughes } 8115*d5c9a868SElliott Hughes s/.*/./; q'` 8116*d5c9a868SElliott Hughes as_dir="$ac_dir"; as_fn_mkdir_p 8117*d5c9a868SElliott Hughes ac_builddir=. 8118*d5c9a868SElliott Hughes 8119*d5c9a868SElliott Hughescase "$ac_dir" in 8120*d5c9a868SElliott Hughes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8121*d5c9a868SElliott Hughes*) 8122*d5c9a868SElliott Hughes ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8123*d5c9a868SElliott Hughes # A ".." for each directory in $ac_dir_suffix. 8124*d5c9a868SElliott Hughes ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8125*d5c9a868SElliott Hughes case $ac_top_builddir_sub in 8126*d5c9a868SElliott Hughes "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8127*d5c9a868SElliott Hughes *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8128*d5c9a868SElliott Hughes esac ;; 8129*d5c9a868SElliott Hughesesac 8130*d5c9a868SElliott Hughesac_abs_top_builddir=$ac_pwd 8131*d5c9a868SElliott Hughesac_abs_builddir=$ac_pwd$ac_dir_suffix 8132*d5c9a868SElliott Hughes# for backward compatibility: 8133*d5c9a868SElliott Hughesac_top_builddir=$ac_top_build_prefix 8134*d5c9a868SElliott Hughes 8135*d5c9a868SElliott Hughescase $srcdir in 8136*d5c9a868SElliott Hughes .) # We are building in place. 8137*d5c9a868SElliott Hughes ac_srcdir=. 8138*d5c9a868SElliott Hughes ac_top_srcdir=$ac_top_builddir_sub 8139*d5c9a868SElliott Hughes ac_abs_top_srcdir=$ac_pwd ;; 8140*d5c9a868SElliott Hughes [\\/]* | ?:[\\/]* ) # Absolute name. 8141*d5c9a868SElliott Hughes ac_srcdir=$srcdir$ac_dir_suffix; 8142*d5c9a868SElliott Hughes ac_top_srcdir=$srcdir 8143*d5c9a868SElliott Hughes ac_abs_top_srcdir=$srcdir ;; 8144*d5c9a868SElliott Hughes *) # Relative name. 8145*d5c9a868SElliott Hughes ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8146*d5c9a868SElliott Hughes ac_top_srcdir=$ac_top_build_prefix$srcdir 8147*d5c9a868SElliott Hughes ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8148*d5c9a868SElliott Hughesesac 8149*d5c9a868SElliott Hughesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8150*d5c9a868SElliott Hughes 8151*d5c9a868SElliott Hughes 8152*d5c9a868SElliott Hughes case $ac_mode in 8153*d5c9a868SElliott Hughes :F) 8154*d5c9a868SElliott Hughes # 8155*d5c9a868SElliott Hughes # CONFIG_FILE 8156*d5c9a868SElliott Hughes # 8157*d5c9a868SElliott Hughes 8158*d5c9a868SElliott Hughes case $INSTALL in 8159*d5c9a868SElliott Hughes [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8160*d5c9a868SElliott Hughes *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8161*d5c9a868SElliott Hughes esac 8162*d5c9a868SElliott Hughes_ACEOF 8163*d5c9a868SElliott Hughes 8164*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8165*d5c9a868SElliott Hughes# If the template does not know about datarootdir, expand it. 8166*d5c9a868SElliott Hughes# FIXME: This hack should be removed a few years after 2.60. 8167*d5c9a868SElliott Hughesac_datarootdir_hack=; ac_datarootdir_seen= 8168*d5c9a868SElliott Hughesac_sed_dataroot=' 8169*d5c9a868SElliott Hughes/datarootdir/ { 8170*d5c9a868SElliott Hughes p 8171*d5c9a868SElliott Hughes q 8172*d5c9a868SElliott Hughes} 8173*d5c9a868SElliott Hughes/@datadir@/p 8174*d5c9a868SElliott Hughes/@docdir@/p 8175*d5c9a868SElliott Hughes/@infodir@/p 8176*d5c9a868SElliott Hughes/@localedir@/p 8177*d5c9a868SElliott Hughes/@mandir@/p' 8178*d5c9a868SElliott Hughescase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8179*d5c9a868SElliott Hughes*datarootdir*) ac_datarootdir_seen=yes;; 8180*d5c9a868SElliott Hughes*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8181*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8182*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8183*d5c9a868SElliott Hughes_ACEOF 8184*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8185*d5c9a868SElliott Hughes ac_datarootdir_hack=' 8186*d5c9a868SElliott Hughes s&@datadir@&$datadir&g 8187*d5c9a868SElliott Hughes s&@docdir@&$docdir&g 8188*d5c9a868SElliott Hughes s&@infodir@&$infodir&g 8189*d5c9a868SElliott Hughes s&@localedir@&$localedir&g 8190*d5c9a868SElliott Hughes s&@mandir@&$mandir&g 8191*d5c9a868SElliott Hughes s&\\\${datarootdir}&$datarootdir&g' ;; 8192*d5c9a868SElliott Hughesesac 8193*d5c9a868SElliott Hughes_ACEOF 8194*d5c9a868SElliott Hughes 8195*d5c9a868SElliott Hughes# Neutralize VPATH when `$srcdir' = `.'. 8196*d5c9a868SElliott Hughes# Shell code in configure.ac might set extrasub. 8197*d5c9a868SElliott Hughes# FIXME: do we really want to maintain this feature? 8198*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8199*d5c9a868SElliott Hughesac_sed_extra="$ac_vpsub 8200*d5c9a868SElliott Hughes$extrasub 8201*d5c9a868SElliott Hughes_ACEOF 8202*d5c9a868SElliott Hughescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8203*d5c9a868SElliott Hughes:t 8204*d5c9a868SElliott Hughes/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8205*d5c9a868SElliott Hughess|@configure_input@|$ac_sed_conf_input|;t t 8206*d5c9a868SElliott Hughess&@top_builddir@&$ac_top_builddir_sub&;t t 8207*d5c9a868SElliott Hughess&@top_build_prefix@&$ac_top_build_prefix&;t t 8208*d5c9a868SElliott Hughess&@srcdir@&$ac_srcdir&;t t 8209*d5c9a868SElliott Hughess&@abs_srcdir@&$ac_abs_srcdir&;t t 8210*d5c9a868SElliott Hughess&@top_srcdir@&$ac_top_srcdir&;t t 8211*d5c9a868SElliott Hughess&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8212*d5c9a868SElliott Hughess&@builddir@&$ac_builddir&;t t 8213*d5c9a868SElliott Hughess&@abs_builddir@&$ac_abs_builddir&;t t 8214*d5c9a868SElliott Hughess&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8215*d5c9a868SElliott Hughess&@INSTALL@&$ac_INSTALL&;t t 8216*d5c9a868SElliott Hughes$ac_datarootdir_hack 8217*d5c9a868SElliott Hughes" 8218*d5c9a868SElliott Hugheseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8219*d5c9a868SElliott Hughes >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8220*d5c9a868SElliott Hughes 8221*d5c9a868SElliott Hughestest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8222*d5c9a868SElliott Hughes { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8223*d5c9a868SElliott Hughes { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8224*d5c9a868SElliott Hughes "$ac_tmp/out"`; test -z "$ac_out"; } && 8225*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8226*d5c9a868SElliott Hugheswhich seems to be undefined. Please make sure it is defined" >&5 8227*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8228*d5c9a868SElliott Hugheswhich seems to be undefined. Please make sure it is defined" >&2;} 8229*d5c9a868SElliott Hughes 8230*d5c9a868SElliott Hughes rm -f "$ac_tmp/stdin" 8231*d5c9a868SElliott Hughes case $ac_file in 8232*d5c9a868SElliott Hughes -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8233*d5c9a868SElliott Hughes *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8234*d5c9a868SElliott Hughes esac \ 8235*d5c9a868SElliott Hughes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8236*d5c9a868SElliott Hughes ;; 8237*d5c9a868SElliott Hughes :H) 8238*d5c9a868SElliott Hughes # 8239*d5c9a868SElliott Hughes # CONFIG_HEADER 8240*d5c9a868SElliott Hughes # 8241*d5c9a868SElliott Hughes if test x"$ac_file" != x-; then 8242*d5c9a868SElliott Hughes { 8243*d5c9a868SElliott Hughes $as_echo "/* $configure_input */" \ 8244*d5c9a868SElliott Hughes && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8245*d5c9a868SElliott Hughes } >"$ac_tmp/config.h" \ 8246*d5c9a868SElliott Hughes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8247*d5c9a868SElliott Hughes if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8248*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8249*d5c9a868SElliott Hughes$as_echo "$as_me: $ac_file is unchanged" >&6;} 8250*d5c9a868SElliott Hughes else 8251*d5c9a868SElliott Hughes rm -f "$ac_file" 8252*d5c9a868SElliott Hughes mv "$ac_tmp/config.h" "$ac_file" \ 8253*d5c9a868SElliott Hughes || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8254*d5c9a868SElliott Hughes fi 8255*d5c9a868SElliott Hughes else 8256*d5c9a868SElliott Hughes $as_echo "/* $configure_input */" \ 8257*d5c9a868SElliott Hughes && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8258*d5c9a868SElliott Hughes || as_fn_error $? "could not create -" "$LINENO" 5 8259*d5c9a868SElliott Hughes fi 8260*d5c9a868SElliott Hughes ;; 8261*d5c9a868SElliott Hughes 8262*d5c9a868SElliott Hughes 8263*d5c9a868SElliott Hughes esac 8264*d5c9a868SElliott Hughes 8265*d5c9a868SElliott Hughesdone # for ac_tag 8266*d5c9a868SElliott Hughes 8267*d5c9a868SElliott Hughes 8268*d5c9a868SElliott Hughesas_fn_exit 0 8269*d5c9a868SElliott Hughes_ACEOF 8270*d5c9a868SElliott Hughesac_clean_files=$ac_clean_files_save 8271*d5c9a868SElliott Hughes 8272*d5c9a868SElliott Hughestest $ac_write_fail = 0 || 8273*d5c9a868SElliott Hughes as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8274*d5c9a868SElliott Hughes 8275*d5c9a868SElliott Hughes 8276*d5c9a868SElliott Hughes# configure is writing to config.log, and then calls config.status. 8277*d5c9a868SElliott Hughes# config.status does its own redirection, appending to config.log. 8278*d5c9a868SElliott Hughes# Unfortunately, on DOS this fails, as config.log is still kept open 8279*d5c9a868SElliott Hughes# by configure, so config.status won't be able to write to it; its 8280*d5c9a868SElliott Hughes# output is simply discarded. So we exec the FD to /dev/null, 8281*d5c9a868SElliott Hughes# effectively closing config.log, so it can be properly (re)opened and 8282*d5c9a868SElliott Hughes# appended to by config.status. When coming back to configure, we 8283*d5c9a868SElliott Hughes# need to make the FD available again. 8284*d5c9a868SElliott Hughesif test "$no_create" != yes; then 8285*d5c9a868SElliott Hughes ac_cs_success=: 8286*d5c9a868SElliott Hughes ac_config_status_args= 8287*d5c9a868SElliott Hughes test "$silent" = yes && 8288*d5c9a868SElliott Hughes ac_config_status_args="$ac_config_status_args --quiet" 8289*d5c9a868SElliott Hughes exec 5>/dev/null 8290*d5c9a868SElliott Hughes $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8291*d5c9a868SElliott Hughes exec 5>>config.log 8292*d5c9a868SElliott Hughes # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8293*d5c9a868SElliott Hughes # would make configure fail if this is the last instruction. 8294*d5c9a868SElliott Hughes $ac_cs_success || as_fn_exit 1 8295*d5c9a868SElliott Hughesfi 8296*d5c9a868SElliott Hughesif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8297*d5c9a868SElliott Hughes { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8298*d5c9a868SElliott Hughes$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8299*d5c9a868SElliott Hughesfi 8300*d5c9a868SElliott Hughes 8301