configure revision 221715
160786Sps#! /bin/sh 260786Sps# Guess values for system-dependent variables and create Makefiles. 3221715Sdelphij# Generated by GNU Autoconf 2.67 for less 1. 460786Sps# 5221715Sdelphij# 6170256Sdelphij# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7221715Sdelphij# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8221715Sdelphij# Foundation, Inc. 9221715Sdelphij# 10221715Sdelphij# 1160786Sps# This configure script is free software; the Free Software Foundation 1260786Sps# gives unlimited permission to copy, distribute and modify it. 13221715Sdelphij## -------------------- ## 14221715Sdelphij## M4sh Initialization. ## 15221715Sdelphij## -------------------- ## 1660786Sps 17170256Sdelphij# Be more Bourne compatible 18170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh 19221715Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20128345Stjr emulate sh 21128345Stjr NULLCMD=: 22191930Sdelphij # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23128345Stjr # is contrary to our usage. Disable this feature. 24128345Stjr alias -g '${1+"$@"}'='"$@"' 25170256Sdelphij setopt NO_GLOB_SUBST 26170256Sdelphijelse 27221715Sdelphij case `(set -o) 2>/dev/null` in #( 28221715Sdelphij *posix*) : 29221715Sdelphij set -o posix ;; #( 30221715Sdelphij *) : 31221715Sdelphij ;; 32170256Sdelphijesac 33128345Stjrfi 34128345Stjr 35170256Sdelphij 36191930Sdelphijas_nl=' 37191930Sdelphij' 38191930Sdelphijexport as_nl 39191930Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf. 40191930Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43221715Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris, 44221715Sdelphij# but without wasting forks for bash or zsh. 45221715Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \ 46221715Sdelphij && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47221715Sdelphij as_echo='print -r --' 48221715Sdelphij as_echo_n='print -rn --' 49221715Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50191930Sdelphij as_echo='printf %s\n' 51191930Sdelphij as_echo_n='printf %s' 52191930Sdelphijelse 53191930Sdelphij if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54191930Sdelphij as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55191930Sdelphij as_echo_n='/usr/ucb/echo -n' 56170256Sdelphij else 57191930Sdelphij as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58191930Sdelphij as_echo_n_body='eval 59191930Sdelphij arg=$1; 60221715Sdelphij case $arg in #( 61191930Sdelphij *"$as_nl"*) 62191930Sdelphij expr "X$arg" : "X\\(.*\\)$as_nl"; 63191930Sdelphij arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64191930Sdelphij esac; 65191930Sdelphij expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66191930Sdelphij ' 67191930Sdelphij export as_echo_n_body 68191930Sdelphij as_echo_n='sh -c $as_echo_n_body as_echo' 69170256Sdelphij fi 70191930Sdelphij export as_echo_body 71191930Sdelphij as_echo='sh -c $as_echo_body as_echo' 72170256Sdelphijfi 73170256Sdelphij 74191930Sdelphij# The user is always right. 75191930Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 76191930Sdelphij PATH_SEPARATOR=: 77191930Sdelphij (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78191930Sdelphij (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79191930Sdelphij PATH_SEPARATOR=';' 80191930Sdelphij } 81191930Sdelphijfi 82191930Sdelphij 83128345Stjr 84170256Sdelphij# IFS 85170256Sdelphij# We need space, tab and new line, in precisely that order. Quoting is 86170256Sdelphij# there to prevent editors from complaining about space-tab. 87170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88170256Sdelphij# splitting by setting IFS to empty value.) 89170256SdelphijIFS=" "" $as_nl" 90170256Sdelphij 91170256Sdelphij# Find who we are. Look in the path if we contain no directory separator. 92221715Sdelphijcase $0 in #(( 93170256Sdelphij *[\\/]* ) as_myself=$0 ;; 94170256Sdelphij *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95170256Sdelphijfor as_dir in $PATH 96170256Sdelphijdo 97170256Sdelphij IFS=$as_save_IFS 98170256Sdelphij test -z "$as_dir" && as_dir=. 99221715Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100221715Sdelphij done 101170256SdelphijIFS=$as_save_IFS 102170256Sdelphij 103170256Sdelphij ;; 104170256Sdelphijesac 105170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND' 106170256Sdelphij# in which case we are not to be found in the path. 107170256Sdelphijif test "x$as_myself" = x; then 108170256Sdelphij as_myself=$0 109170256Sdelphijfi 110170256Sdelphijif test ! -f "$as_myself"; then 111191930Sdelphij $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112221715Sdelphij exit 1 113170256Sdelphijfi 114170256Sdelphij 115221715Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in 116221715Sdelphij# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117221715Sdelphij# suppresses any "Segmentation fault" message there. '((' could 118221715Sdelphij# trigger a bug in pdksh 5.2.14. 119221715Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH 120221715Sdelphijdo eval test x\${$as_var+set} = xset \ 121221715Sdelphij && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122170256Sdelphijdone 123128345StjrPS1='$ ' 124128345StjrPS2='> ' 125128345StjrPS4='+ ' 126128345Stjr 127128345Stjr# NLS nuisances. 128191930SdelphijLC_ALL=C 129191930Sdelphijexport LC_ALL 130191930SdelphijLANGUAGE=C 131191930Sdelphijexport LANGUAGE 132128345Stjr 133170256Sdelphij# CDPATH. 134221715Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135128345Stjr 136170256Sdelphijif test "x$CONFIG_SHELL" = x; then 137221715Sdelphij as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138221715Sdelphij emulate sh 139221715Sdelphij NULLCMD=: 140221715Sdelphij # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141221715Sdelphij # is contrary to our usage. Disable this feature. 142221715Sdelphij alias -g '\${1+\"\$@\"}'='\"\$@\"' 143221715Sdelphij setopt NO_GLOB_SUBST 144170256Sdelphijelse 145221715Sdelphij case \`(set -o) 2>/dev/null\` in #( 146221715Sdelphij *posix*) : 147221715Sdelphij set -o posix ;; #( 148221715Sdelphij *) : 149221715Sdelphij ;; 150221715Sdelphijesac 151128345Stjrfi 152221715Sdelphij" 153221715Sdelphij as_required="as_fn_return () { (exit \$1); } 154221715Sdelphijas_fn_success () { as_fn_return 0; } 155221715Sdelphijas_fn_failure () { as_fn_return 1; } 156221715Sdelphijas_fn_ret_success () { return 0; } 157221715Sdelphijas_fn_ret_failure () { return 1; } 158128345Stjr 159170256Sdelphijexitcode=0 160221715Sdelphijas_fn_success || { exitcode=1; echo as_fn_success failed.; } 161221715Sdelphijas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162221715Sdelphijas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163221715Sdelphijas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164221715Sdelphijif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165128345Stjr 166170256Sdelphijelse 167221715Sdelphij exitcode=1; echo positional parameters were not saved. 168170256Sdelphijfi 169221715Sdelphijtest x\$exitcode = x0 || exit 1" 170221715Sdelphij as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171221715Sdelphij as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172221715Sdelphij eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173221715Sdelphij test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174221715Sdelphijtest \$(( 1 + 1 )) = 2 || exit 1" 175221715Sdelphij if (eval "$as_required") 2>/dev/null; then : 176221715Sdelphij as_have_required=yes 177170256Sdelphijelse 178221715Sdelphij as_have_required=no 179170256Sdelphijfi 180221715Sdelphij if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181170256Sdelphij 182170256Sdelphijelse 183221715Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184221715Sdelphijas_found=false 185128345Stjrfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186128345Stjrdo 187128345Stjr IFS=$as_save_IFS 188128345Stjr test -z "$as_dir" && as_dir=. 189221715Sdelphij as_found=: 190221715Sdelphij case $as_dir in #( 191128345Stjr /*) 192170256Sdelphij for as_base in sh bash ksh sh5; do 193221715Sdelphij # Try only shells that exist, to save several forks. 194221715Sdelphij as_shell=$as_dir/$as_base 195221715Sdelphij if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196221715Sdelphij { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197221715Sdelphij CONFIG_SHELL=$as_shell as_have_required=yes 198221715Sdelphij if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199221715Sdelphij break 2 200221715Sdelphijfi 201221715Sdelphijfi 202170256Sdelphij done;; 203170256Sdelphij esac 204221715Sdelphij as_found=false 205170256Sdelphijdone 206221715Sdelphij$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207221715Sdelphij { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208221715Sdelphij CONFIG_SHELL=$SHELL as_have_required=yes 209221715Sdelphijfi; } 210170256SdelphijIFS=$as_save_IFS 211170256Sdelphij 212170256Sdelphij 213221715Sdelphij if test "x$CONFIG_SHELL" != x; then : 214221715Sdelphij # We cannot yet assume a decent shell, so we have to provide a 215221715Sdelphij # neutralization value for shells without unset; and this also 216221715Sdelphij # works around shells that cannot unset nonexistent variables. 217221715Sdelphij BASH_ENV=/dev/null 218221715Sdelphij ENV=/dev/null 219221715Sdelphij (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220221715Sdelphij export CONFIG_SHELL 221221715Sdelphij exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222170256Sdelphijfi 223170256Sdelphij 224221715Sdelphij if test x$as_have_required = xno; then : 225221715Sdelphij $as_echo "$0: This script requires a shell more modern than all" 226221715Sdelphij $as_echo "$0: the shells that I found on your system." 227221715Sdelphij if test x${ZSH_VERSION+set} = xset ; then 228221715Sdelphij $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229221715Sdelphij $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230221715Sdelphij else 231221715Sdelphij $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232221715Sdelphij$0: including any error possibly output before this 233221715Sdelphij$0: message. Then install a modern shell, or manually run 234221715Sdelphij$0: the script under such a shell if you do have one." 235221715Sdelphij fi 236221715Sdelphij exit 1 237170256Sdelphijfi 238170256Sdelphijfi 239170256Sdelphijfi 240221715SdelphijSHELL=${CONFIG_SHELL-/bin/sh} 241221715Sdelphijexport SHELL 242221715Sdelphij# Unset more variables known to interfere with behavior of common tools. 243221715SdelphijCLICOLOR_FORCE= GREP_OPTIONS= 244221715Sdelphijunset CLICOLOR_FORCE GREP_OPTIONS 245170256Sdelphij 246221715Sdelphij## --------------------- ## 247221715Sdelphij## M4sh Shell Functions. ## 248221715Sdelphij## --------------------- ## 249221715Sdelphij# as_fn_unset VAR 250221715Sdelphij# --------------- 251221715Sdelphij# Portably unset VAR. 252221715Sdelphijas_fn_unset () 253221715Sdelphij{ 254221715Sdelphij { eval $1=; unset $1;} 255221715Sdelphij} 256221715Sdelphijas_unset=as_fn_unset 257170256Sdelphij 258221715Sdelphij# as_fn_set_status STATUS 259221715Sdelphij# ----------------------- 260221715Sdelphij# Set $? to STATUS, without forking. 261221715Sdelphijas_fn_set_status () 262221715Sdelphij{ 263221715Sdelphij return $1 264221715Sdelphij} # as_fn_set_status 265170256Sdelphij 266221715Sdelphij# as_fn_exit STATUS 267221715Sdelphij# ----------------- 268221715Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269221715Sdelphijas_fn_exit () 270221715Sdelphij{ 271221715Sdelphij set +e 272221715Sdelphij as_fn_set_status $1 273221715Sdelphij exit $1 274221715Sdelphij} # as_fn_exit 275170256Sdelphij 276221715Sdelphij# as_fn_mkdir_p 277221715Sdelphij# ------------- 278221715Sdelphij# Create "$as_dir" as a directory, including parents if necessary. 279221715Sdelphijas_fn_mkdir_p () 280221715Sdelphij{ 281170256Sdelphij 282221715Sdelphij case $as_dir in #( 283221715Sdelphij -*) as_dir=./$as_dir;; 284221715Sdelphij esac 285221715Sdelphij test -d "$as_dir" || eval $as_mkdir_p || { 286221715Sdelphij as_dirs= 287221715Sdelphij while :; do 288221715Sdelphij case $as_dir in #( 289221715Sdelphij *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290221715Sdelphij *) as_qdir=$as_dir;; 291221715Sdelphij esac 292221715Sdelphij as_dirs="'$as_qdir' $as_dirs" 293221715Sdelphij as_dir=`$as_dirname -- "$as_dir" || 294221715Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295221715Sdelphij X"$as_dir" : 'X\(//\)[^/]' \| \ 296221715Sdelphij X"$as_dir" : 'X\(//\)$' \| \ 297221715Sdelphij X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298221715Sdelphij$as_echo X"$as_dir" | 299221715Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300221715Sdelphij s//\1/ 301221715Sdelphij q 302221715Sdelphij } 303221715Sdelphij /^X\(\/\/\)[^/].*/{ 304221715Sdelphij s//\1/ 305221715Sdelphij q 306221715Sdelphij } 307221715Sdelphij /^X\(\/\/\)$/{ 308221715Sdelphij s//\1/ 309221715Sdelphij q 310221715Sdelphij } 311221715Sdelphij /^X\(\/\).*/{ 312221715Sdelphij s//\1/ 313221715Sdelphij q 314221715Sdelphij } 315221715Sdelphij s/.*/./; q'` 316221715Sdelphij test -d "$as_dir" && break 317221715Sdelphij done 318221715Sdelphij test -z "$as_dirs" || eval "mkdir $as_dirs" 319221715Sdelphij } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320128345Stjr 321170256Sdelphij 322221715Sdelphij} # as_fn_mkdir_p 323221715Sdelphij# as_fn_append VAR VALUE 324221715Sdelphij# ---------------------- 325221715Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take 326221715Sdelphij# advantage of any shell optimizations that allow amortized linear growth over 327221715Sdelphij# repeated appends, instead of the typical quadratic growth present in naive 328221715Sdelphij# implementations. 329221715Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330221715Sdelphij eval 'as_fn_append () 331221715Sdelphij { 332221715Sdelphij eval $1+=\$2 333221715Sdelphij }' 334221715Sdelphijelse 335221715Sdelphij as_fn_append () 336221715Sdelphij { 337221715Sdelphij eval $1=\$$1\$2 338221715Sdelphij } 339221715Sdelphijfi # as_fn_append 340170256Sdelphij 341221715Sdelphij# as_fn_arith ARG... 342221715Sdelphij# ------------------ 343221715Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the 344221715Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments 345221715Sdelphij# must be portable across $(()) and expr. 346221715Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347221715Sdelphij eval 'as_fn_arith () 348221715Sdelphij { 349221715Sdelphij as_val=$(( $* )) 350221715Sdelphij }' 351221715Sdelphijelse 352221715Sdelphij as_fn_arith () 353221715Sdelphij { 354221715Sdelphij as_val=`expr "$@" || test $? -eq 1` 355221715Sdelphij } 356221715Sdelphijfi # as_fn_arith 357170256Sdelphij 358170256Sdelphij 359221715Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD] 360221715Sdelphij# ---------------------------------------- 361221715Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362221715Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363221715Sdelphij# script with STATUS, using 1 if that was 0. 364221715Sdelphijas_fn_error () 365221715Sdelphij{ 366221715Sdelphij as_status=$1; test $as_status -eq 0 && as_status=1 367221715Sdelphij if test "$4"; then 368221715Sdelphij as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370221715Sdelphij fi 371221715Sdelphij $as_echo "$as_me: error: $2" >&2 372221715Sdelphij as_fn_exit $as_status 373221715Sdelphij} # as_fn_error 374170256Sdelphij 375221715Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 376221715Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 377221715Sdelphij as_expr=expr 378170256Sdelphijelse 379221715Sdelphij as_expr=false 380170256Sdelphijfi 381170256Sdelphij 382221715Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383221715Sdelphij as_basename=basename 384170256Sdelphijelse 385221715Sdelphij as_basename=false 386170256Sdelphijfi 387170256Sdelphij 388221715Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389221715Sdelphij as_dirname=dirname 390170256Sdelphijelse 391221715Sdelphij as_dirname=false 392170256Sdelphijfi 393170256Sdelphij 394221715Sdelphijas_me=`$as_basename -- "$0" || 395221715Sdelphij$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396221715Sdelphij X"$0" : 'X\(//\)$' \| \ 397221715Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 398221715Sdelphij$as_echo X/"$0" | 399221715Sdelphij sed '/^.*\/\([^/][^/]*\)\/*$/{ 400221715Sdelphij s//\1/ 401221715Sdelphij q 402221715Sdelphij } 403221715Sdelphij /^X\/\(\/\/\)$/{ 404221715Sdelphij s//\1/ 405221715Sdelphij q 406221715Sdelphij } 407221715Sdelphij /^X\/\(\/\).*/{ 408221715Sdelphij s//\1/ 409221715Sdelphij q 410221715Sdelphij } 411221715Sdelphij s/.*/./; q'` 412170256Sdelphij 413221715Sdelphij# Avoid depending upon Character Ranges. 414221715Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 415221715Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416221715Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 417221715Sdelphijas_cr_digits='0123456789' 418221715Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 419170256Sdelphij 420170256Sdelphij 421221715Sdelphij as_lineno_1=$LINENO as_lineno_1a=$LINENO 422221715Sdelphij as_lineno_2=$LINENO as_lineno_2a=$LINENO 423221715Sdelphij eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424221715Sdelphij test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425221715Sdelphij # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426170256Sdelphij sed -n ' 427170256Sdelphij p 428170256Sdelphij /[$]LINENO/= 429170256Sdelphij ' <$as_myself | 430128345Stjr sed ' 431170256Sdelphij s/[$]LINENO.*/&-/ 432170256Sdelphij t lineno 433170256Sdelphij b 434170256Sdelphij :lineno 435128345Stjr N 436170256Sdelphij :loop 437170256Sdelphij s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438128345Stjr t loop 439170256Sdelphij s/-\n.*// 440128345Stjr ' >$as_me.lineno && 441170256Sdelphij chmod +x "$as_me.lineno" || 442221715Sdelphij { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443128345Stjr 444128345Stjr # Don't try to exec as it changes $[0], causing all sort of problems 445128345Stjr # (the dirname of $[0] is not the place where we might find the 446170256Sdelphij # original and so on. Autoconf is especially sensitive to this). 447170256Sdelphij . "./$as_me.lineno" 448128345Stjr # Exit status is that of the last command. 449128345Stjr exit 450128345Stjr} 451128345Stjr 452170256SdelphijECHO_C= ECHO_N= ECHO_T= 453221715Sdelphijcase `echo -n x` in #((((( 454170256Sdelphij-n*) 455221715Sdelphij case `echo 'xy\c'` in 456170256Sdelphij *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457221715Sdelphij xy) ECHO_C='\c';; 458221715Sdelphij *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459221715Sdelphij ECHO_T=' ';; 460170256Sdelphij esac;; 461170256Sdelphij*) 462170256Sdelphij ECHO_N='-n';; 463128345Stjresac 464128345Stjr 465128345Stjrrm -f conf$$ conf$$.exe conf$$.file 466170256Sdelphijif test -d conf$$.dir; then 467170256Sdelphij rm -f conf$$.dir/conf$$.file 468170256Sdelphijelse 469170256Sdelphij rm -f conf$$.dir 470191930Sdelphij mkdir conf$$.dir 2>/dev/null 471170256Sdelphijfi 472191930Sdelphijif (echo >conf$$.file) 2>/dev/null; then 473191930Sdelphij if ln -s conf$$.file conf$$ 2>/dev/null; then 474191930Sdelphij as_ln_s='ln -s' 475191930Sdelphij # ... but there are two gotchas: 476191930Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477191930Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478191930Sdelphij # In both cases, we have to default to `cp -p'. 479191930Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480191930Sdelphij as_ln_s='cp -p' 481191930Sdelphij elif ln conf$$.file conf$$ 2>/dev/null; then 482191930Sdelphij as_ln_s=ln 483191930Sdelphij else 484128345Stjr as_ln_s='cp -p' 485191930Sdelphij fi 486128345Stjrelse 487128345Stjr as_ln_s='cp -p' 488128345Stjrfi 489170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490170256Sdelphijrmdir conf$$.dir 2>/dev/null 491128345Stjr 492128345Stjrif mkdir -p . 2>/dev/null; then 493221715Sdelphij as_mkdir_p='mkdir -p "$as_dir"' 494128345Stjrelse 495170256Sdelphij test -d ./-p && rmdir ./-p 496128345Stjr as_mkdir_p=false 497128345Stjrfi 498128345Stjr 499170256Sdelphijif test -x / >/dev/null 2>&1; then 500170256Sdelphij as_test_x='test -x' 501170256Sdelphijelse 502170256Sdelphij if ls -dL / >/dev/null 2>&1; then 503170256Sdelphij as_ls_L_option=L 504170256Sdelphij else 505170256Sdelphij as_ls_L_option= 506170256Sdelphij fi 507170256Sdelphij as_test_x=' 508170256Sdelphij eval sh -c '\'' 509170256Sdelphij if test -d "$1"; then 510191930Sdelphij test -d "$1/."; 511170256Sdelphij else 512221715Sdelphij case $1 in #( 513191930Sdelphij -*)set "./$1";; 514170256Sdelphij esac; 515221715Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516170256Sdelphij ???[sx]*):;;*)false;;esac;fi 517170256Sdelphij '\'' sh 518170256Sdelphij ' 519170256Sdelphijfi 520170256Sdelphijas_executable_p=$as_test_x 521128345Stjr 522128345Stjr# Sed expression to map a string onto a valid CPP name. 523170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524128345Stjr 525128345Stjr# Sed expression to map a string onto a valid variable name. 526170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527128345Stjr 528128345Stjr 529221715Sdelphijtest -n "$DJDIR" || exec 7<&0 </dev/null 530221715Sdelphijexec 6>&1 531128345Stjr 532128345Stjr# Name of the host. 533221715Sdelphij# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534128345Stjr# so uname gets run too. 535128345Stjrac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536128345Stjr 537128345Stjr# 538128345Stjr# Initializations. 539128345Stjr# 54060786Spsac_default_prefix=/usr/local 541170256Sdelphijac_clean_files= 542128345Stjrac_config_libobj_dir=. 543170256SdelphijLIBOBJS= 544128345Stjrcross_compiling=no 545128345Stjrsubdirs= 546128345StjrMFLAGS= 547128345StjrMAKEFLAGS= 54860786Sps 549128345Stjr# Identity of this package. 550128345StjrPACKAGE_NAME='less' 551128345StjrPACKAGE_TARNAME='less' 552128345StjrPACKAGE_VERSION='1' 553128345StjrPACKAGE_STRING='less 1' 554128345StjrPACKAGE_BUGREPORT='' 555221715SdelphijPACKAGE_URL='' 556128345Stjr 557128345Stjrac_unique_file="forwback.c" 558128345Stjr# Factoring default headers for most tests. 559128345Stjrac_includes_default="\ 560128345Stjr#include <stdio.h> 561170256Sdelphij#ifdef HAVE_SYS_TYPES_H 562128345Stjr# include <sys/types.h> 563128345Stjr#endif 564170256Sdelphij#ifdef HAVE_SYS_STAT_H 565128345Stjr# include <sys/stat.h> 566128345Stjr#endif 567170256Sdelphij#ifdef STDC_HEADERS 568128345Stjr# include <stdlib.h> 569128345Stjr# include <stddef.h> 570128345Stjr#else 571170256Sdelphij# ifdef HAVE_STDLIB_H 572128345Stjr# include <stdlib.h> 573128345Stjr# endif 574128345Stjr#endif 575170256Sdelphij#ifdef HAVE_STRING_H 576170256Sdelphij# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577128345Stjr# include <memory.h> 578128345Stjr# endif 579128345Stjr# include <string.h> 580128345Stjr#endif 581170256Sdelphij#ifdef HAVE_STRINGS_H 582128345Stjr# include <strings.h> 583128345Stjr#endif 584170256Sdelphij#ifdef HAVE_INTTYPES_H 585128345Stjr# include <inttypes.h> 586128345Stjr#endif 587170256Sdelphij#ifdef HAVE_STDINT_H 588170256Sdelphij# include <stdint.h> 589170256Sdelphij#endif 590170256Sdelphij#ifdef HAVE_UNISTD_H 591128345Stjr# include <unistd.h> 592128345Stjr#endif" 593128345Stjr 594191930Sdelphijac_subst_vars='LTLIBOBJS 595191930SdelphijLIBOBJS 596191930SdelphijREGEX_O 597191930SdelphijINSTALL_DATA 598191930SdelphijINSTALL_SCRIPT 599191930SdelphijINSTALL_PROGRAM 600191930SdelphijEGREP 601191930SdelphijGREP 602191930SdelphijCPP 603191930SdelphijOBJEXT 604191930SdelphijEXEEXT 605191930Sdelphijac_ct_CC 606191930SdelphijCPPFLAGS 607191930SdelphijLDFLAGS 608191930SdelphijCFLAGS 609191930SdelphijCC 610191930Sdelphijtarget_alias 611191930Sdelphijhost_alias 612191930Sdelphijbuild_alias 613191930SdelphijLIBS 614191930SdelphijECHO_T 615191930SdelphijECHO_N 616191930SdelphijECHO_C 617191930SdelphijDEFS 618191930Sdelphijmandir 619191930Sdelphijlocaledir 620191930Sdelphijlibdir 621191930Sdelphijpsdir 622191930Sdelphijpdfdir 623191930Sdelphijdvidir 624191930Sdelphijhtmldir 625191930Sdelphijinfodir 626191930Sdelphijdocdir 627191930Sdelphijoldincludedir 628191930Sdelphijincludedir 629191930Sdelphijlocalstatedir 630191930Sdelphijsharedstatedir 631191930Sdelphijsysconfdir 632191930Sdelphijdatadir 633191930Sdelphijdatarootdir 634191930Sdelphijlibexecdir 635191930Sdelphijsbindir 636191930Sdelphijbindir 637191930Sdelphijprogram_transform_name 638191930Sdelphijprefix 639191930Sdelphijexec_prefix 640221715SdelphijPACKAGE_URL 641191930SdelphijPACKAGE_BUGREPORT 642191930SdelphijPACKAGE_STRING 643191930SdelphijPACKAGE_VERSION 644191930SdelphijPACKAGE_TARNAME 645191930SdelphijPACKAGE_NAME 646170256SdelphijPATH_SEPARATOR 647191930SdelphijSHELL' 648128345Stjrac_subst_files='' 649191930Sdelphijac_user_opts=' 650191930Sdelphijenable_option_checking 651191930Sdelphijenable_largefile 652191930Sdelphijwith_secure 653221715Sdelphijwith_no_float 654191930Sdelphijwith_regex 655191930Sdelphijwith_editor 656191930Sdelphij' 657170256Sdelphij ac_precious_vars='build_alias 658170256Sdelphijhost_alias 659170256Sdelphijtarget_alias 660170256SdelphijCC 661170256SdelphijCFLAGS 662170256SdelphijLDFLAGS 663170256SdelphijLIBS 664170256SdelphijCPPFLAGS 665170256SdelphijCPP' 666128345Stjr 667170256Sdelphij 66860786Sps# Initialize some variables set by options. 669128345Stjrac_init_help= 670128345Stjrac_init_version=false 671191930Sdelphijac_unrecognized_opts= 672191930Sdelphijac_unrecognized_sep= 67360786Sps# The variables have the same names as the options, with 67460786Sps# dashes changed to underlines. 675128345Stjrcache_file=/dev/null 67660786Spsexec_prefix=NONE 67760786Spsno_create= 67860786Spsno_recursion= 67960786Spsprefix=NONE 68060786Spsprogram_prefix=NONE 68160786Spsprogram_suffix=NONE 68260786Spsprogram_transform_name=s,x,x, 68360786Spssilent= 68460786Spssite= 68560786Spssrcdir= 68660786Spsverbose= 68760786Spsx_includes=NONE 68860786Spsx_libraries=NONE 689128345Stjr 690128345Stjr# Installation directory options. 691128345Stjr# These are left unexpanded so users can "make install exec_prefix=/foo" 692128345Stjr# and all the variables that are supposed to be based on exec_prefix 693128345Stjr# by default will actually change. 694128345Stjr# Use braces instead of parens because sh, perl, etc. also accept them. 695170256Sdelphij# (The list follows the same order as the GNU Coding Standards.) 69660786Spsbindir='${exec_prefix}/bin' 69760786Spssbindir='${exec_prefix}/sbin' 69860786Spslibexecdir='${exec_prefix}/libexec' 699170256Sdelphijdatarootdir='${prefix}/share' 700170256Sdelphijdatadir='${datarootdir}' 70160786Spssysconfdir='${prefix}/etc' 70260786Spssharedstatedir='${prefix}/com' 70360786Spslocalstatedir='${prefix}/var' 70460786Spsincludedir='${prefix}/include' 70560786Spsoldincludedir='/usr/include' 706170256Sdelphijdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 707170256Sdelphijinfodir='${datarootdir}/info' 708170256Sdelphijhtmldir='${docdir}' 709170256Sdelphijdvidir='${docdir}' 710170256Sdelphijpdfdir='${docdir}' 711170256Sdelphijpsdir='${docdir}' 712170256Sdelphijlibdir='${exec_prefix}/lib' 713170256Sdelphijlocaledir='${datarootdir}/locale' 714170256Sdelphijmandir='${datarootdir}/man' 71560786Sps 71660786Spsac_prev= 717170256Sdelphijac_dashdash= 71860786Spsfor ac_option 71960786Spsdo 72060786Sps # If the previous option needs an argument, assign it. 72160786Sps if test -n "$ac_prev"; then 722170256Sdelphij eval $ac_prev=\$ac_option 72360786Sps ac_prev= 72460786Sps continue 72560786Sps fi 72660786Sps 727170256Sdelphij case $ac_option in 728221715Sdelphij *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 729221715Sdelphij *=) ac_optarg= ;; 730221715Sdelphij *) ac_optarg=yes ;; 731170256Sdelphij esac 73260786Sps 73360786Sps # Accept the important Cygnus configure options, so we can diagnose typos. 73460786Sps 735170256Sdelphij case $ac_dashdash$ac_option in 736170256Sdelphij --) 737170256Sdelphij ac_dashdash=yes ;; 73860786Sps 73960786Sps -bindir | --bindir | --bindi | --bind | --bin | --bi) 74060786Sps ac_prev=bindir ;; 74160786Sps -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 742128345Stjr bindir=$ac_optarg ;; 74360786Sps 74460786Sps -build | --build | --buil | --bui | --bu) 745128345Stjr ac_prev=build_alias ;; 74660786Sps -build=* | --build=* | --buil=* | --bui=* | --bu=*) 747128345Stjr build_alias=$ac_optarg ;; 74860786Sps 74960786Sps -cache-file | --cache-file | --cache-fil | --cache-fi \ 75060786Sps | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 75160786Sps ac_prev=cache_file ;; 75260786Sps -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 75360786Sps | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 754128345Stjr cache_file=$ac_optarg ;; 75560786Sps 756128345Stjr --config-cache | -C) 757128345Stjr cache_file=config.cache ;; 758128345Stjr 759170256Sdelphij -datadir | --datadir | --datadi | --datad) 76060786Sps ac_prev=datadir ;; 761170256Sdelphij -datadir=* | --datadir=* | --datadi=* | --datad=*) 762128345Stjr datadir=$ac_optarg ;; 76360786Sps 764170256Sdelphij -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 765170256Sdelphij | --dataroo | --dataro | --datar) 766170256Sdelphij ac_prev=datarootdir ;; 767170256Sdelphij -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 768170256Sdelphij | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 769170256Sdelphij datarootdir=$ac_optarg ;; 770170256Sdelphij 77160786Sps -disable-* | --disable-*) 772191930Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 77360786Sps # Reject names that are not valid shell variable names. 774191930Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 775221715Sdelphij as_fn_error $? "invalid feature name: $ac_useropt" 776191930Sdelphij ac_useropt_orig=$ac_useropt 777191930Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 778191930Sdelphij case $ac_user_opts in 779191930Sdelphij *" 780191930Sdelphij"enable_$ac_useropt" 781191930Sdelphij"*) ;; 782191930Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 783191930Sdelphij ac_unrecognized_sep=', ';; 784191930Sdelphij esac 785191930Sdelphij eval enable_$ac_useropt=no ;; 78660786Sps 787170256Sdelphij -docdir | --docdir | --docdi | --doc | --do) 788170256Sdelphij ac_prev=docdir ;; 789170256Sdelphij -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 790170256Sdelphij docdir=$ac_optarg ;; 791170256Sdelphij 792170256Sdelphij -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 793170256Sdelphij ac_prev=dvidir ;; 794170256Sdelphij -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 795170256Sdelphij dvidir=$ac_optarg ;; 796170256Sdelphij 79760786Sps -enable-* | --enable-*) 798191930Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 79960786Sps # Reject names that are not valid shell variable names. 800191930Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 801221715Sdelphij as_fn_error $? "invalid feature name: $ac_useropt" 802191930Sdelphij ac_useropt_orig=$ac_useropt 803191930Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 804191930Sdelphij case $ac_user_opts in 805191930Sdelphij *" 806191930Sdelphij"enable_$ac_useropt" 807191930Sdelphij"*) ;; 808191930Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 809191930Sdelphij ac_unrecognized_sep=', ';; 810191930Sdelphij esac 811191930Sdelphij eval enable_$ac_useropt=\$ac_optarg ;; 81260786Sps 81360786Sps -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 81460786Sps | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 81560786Sps | --exec | --exe | --ex) 81660786Sps ac_prev=exec_prefix ;; 81760786Sps -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 81860786Sps | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 81960786Sps | --exec=* | --exe=* | --ex=*) 820128345Stjr exec_prefix=$ac_optarg ;; 82160786Sps 82260786Sps -gas | --gas | --ga | --g) 82360786Sps # Obsolete; use --with-gas. 82460786Sps with_gas=yes ;; 82560786Sps 826128345Stjr -help | --help | --hel | --he | -h) 827128345Stjr ac_init_help=long ;; 828128345Stjr -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 829128345Stjr ac_init_help=recursive ;; 830128345Stjr -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 831128345Stjr ac_init_help=short ;; 83260786Sps 83360786Sps -host | --host | --hos | --ho) 834128345Stjr ac_prev=host_alias ;; 83560786Sps -host=* | --host=* | --hos=* | --ho=*) 836128345Stjr host_alias=$ac_optarg ;; 83760786Sps 838170256Sdelphij -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 839170256Sdelphij ac_prev=htmldir ;; 840170256Sdelphij -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 841170256Sdelphij | --ht=*) 842170256Sdelphij htmldir=$ac_optarg ;; 843170256Sdelphij 84460786Sps -includedir | --includedir | --includedi | --included | --include \ 84560786Sps | --includ | --inclu | --incl | --inc) 84660786Sps ac_prev=includedir ;; 84760786Sps -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 84860786Sps | --includ=* | --inclu=* | --incl=* | --inc=*) 849128345Stjr includedir=$ac_optarg ;; 85060786Sps 85160786Sps -infodir | --infodir | --infodi | --infod | --info | --inf) 85260786Sps ac_prev=infodir ;; 85360786Sps -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 854128345Stjr infodir=$ac_optarg ;; 85560786Sps 85660786Sps -libdir | --libdir | --libdi | --libd) 85760786Sps ac_prev=libdir ;; 85860786Sps -libdir=* | --libdir=* | --libdi=* | --libd=*) 859128345Stjr libdir=$ac_optarg ;; 86060786Sps 86160786Sps -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 86260786Sps | --libexe | --libex | --libe) 86360786Sps ac_prev=libexecdir ;; 86460786Sps -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 86560786Sps | --libexe=* | --libex=* | --libe=*) 866128345Stjr libexecdir=$ac_optarg ;; 86760786Sps 868170256Sdelphij -localedir | --localedir | --localedi | --localed | --locale) 869170256Sdelphij ac_prev=localedir ;; 870170256Sdelphij -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 871170256Sdelphij localedir=$ac_optarg ;; 872170256Sdelphij 87360786Sps -localstatedir | --localstatedir | --localstatedi | --localstated \ 874170256Sdelphij | --localstate | --localstat | --localsta | --localst | --locals) 87560786Sps ac_prev=localstatedir ;; 87660786Sps -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 877170256Sdelphij | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 878128345Stjr localstatedir=$ac_optarg ;; 87960786Sps 88060786Sps -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 88160786Sps ac_prev=mandir ;; 88260786Sps -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 883128345Stjr mandir=$ac_optarg ;; 88460786Sps 88560786Sps -nfp | --nfp | --nf) 88660786Sps # Obsolete; use --without-fp. 88760786Sps with_fp=no ;; 88860786Sps 88960786Sps -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 890128345Stjr | --no-cr | --no-c | -n) 89160786Sps no_create=yes ;; 89260786Sps 89360786Sps -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 89460786Sps | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 89560786Sps no_recursion=yes ;; 89660786Sps 89760786Sps -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 89860786Sps | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 89960786Sps | --oldin | --oldi | --old | --ol | --o) 90060786Sps ac_prev=oldincludedir ;; 90160786Sps -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 90260786Sps | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 90360786Sps | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 904128345Stjr oldincludedir=$ac_optarg ;; 90560786Sps 90660786Sps -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 90760786Sps ac_prev=prefix ;; 90860786Sps -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 909128345Stjr prefix=$ac_optarg ;; 91060786Sps 91160786Sps -program-prefix | --program-prefix | --program-prefi | --program-pref \ 91260786Sps | --program-pre | --program-pr | --program-p) 91360786Sps ac_prev=program_prefix ;; 91460786Sps -program-prefix=* | --program-prefix=* | --program-prefi=* \ 91560786Sps | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 916128345Stjr program_prefix=$ac_optarg ;; 91760786Sps 91860786Sps -program-suffix | --program-suffix | --program-suffi | --program-suff \ 91960786Sps | --program-suf | --program-su | --program-s) 92060786Sps ac_prev=program_suffix ;; 92160786Sps -program-suffix=* | --program-suffix=* | --program-suffi=* \ 92260786Sps | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 923128345Stjr program_suffix=$ac_optarg ;; 92460786Sps 92560786Sps -program-transform-name | --program-transform-name \ 92660786Sps | --program-transform-nam | --program-transform-na \ 92760786Sps | --program-transform-n | --program-transform- \ 92860786Sps | --program-transform | --program-transfor \ 92960786Sps | --program-transfo | --program-transf \ 93060786Sps | --program-trans | --program-tran \ 93160786Sps | --progr-tra | --program-tr | --program-t) 93260786Sps ac_prev=program_transform_name ;; 93360786Sps -program-transform-name=* | --program-transform-name=* \ 93460786Sps | --program-transform-nam=* | --program-transform-na=* \ 93560786Sps | --program-transform-n=* | --program-transform-=* \ 93660786Sps | --program-transform=* | --program-transfor=* \ 93760786Sps | --program-transfo=* | --program-transf=* \ 93860786Sps | --program-trans=* | --program-tran=* \ 93960786Sps | --progr-tra=* | --program-tr=* | --program-t=*) 940128345Stjr program_transform_name=$ac_optarg ;; 94160786Sps 942170256Sdelphij -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 943170256Sdelphij ac_prev=pdfdir ;; 944170256Sdelphij -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 945170256Sdelphij pdfdir=$ac_optarg ;; 946170256Sdelphij 947170256Sdelphij -psdir | --psdir | --psdi | --psd | --ps) 948170256Sdelphij ac_prev=psdir ;; 949170256Sdelphij -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 950170256Sdelphij psdir=$ac_optarg ;; 951170256Sdelphij 95260786Sps -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 95360786Sps | -silent | --silent | --silen | --sile | --sil) 95460786Sps silent=yes ;; 95560786Sps 95660786Sps -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 95760786Sps ac_prev=sbindir ;; 95860786Sps -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 95960786Sps | --sbi=* | --sb=*) 960128345Stjr sbindir=$ac_optarg ;; 96160786Sps 96260786Sps -sharedstatedir | --sharedstatedir | --sharedstatedi \ 96360786Sps | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 96460786Sps | --sharedst | --shareds | --shared | --share | --shar \ 96560786Sps | --sha | --sh) 96660786Sps ac_prev=sharedstatedir ;; 96760786Sps -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 96860786Sps | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 96960786Sps | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 97060786Sps | --sha=* | --sh=*) 971128345Stjr sharedstatedir=$ac_optarg ;; 97260786Sps 97360786Sps -site | --site | --sit) 97460786Sps ac_prev=site ;; 97560786Sps -site=* | --site=* | --sit=*) 976128345Stjr site=$ac_optarg ;; 97760786Sps 97860786Sps -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 97960786Sps ac_prev=srcdir ;; 98060786Sps -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 981128345Stjr srcdir=$ac_optarg ;; 98260786Sps 98360786Sps -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 98460786Sps | --syscon | --sysco | --sysc | --sys | --sy) 98560786Sps ac_prev=sysconfdir ;; 98660786Sps -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 98760786Sps | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 988128345Stjr sysconfdir=$ac_optarg ;; 98960786Sps 99060786Sps -target | --target | --targe | --targ | --tar | --ta | --t) 991128345Stjr ac_prev=target_alias ;; 99260786Sps -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 993128345Stjr target_alias=$ac_optarg ;; 99460786Sps 99560786Sps -v | -verbose | --verbose | --verbos | --verbo | --verb) 99660786Sps verbose=yes ;; 99760786Sps 998128345Stjr -version | --version | --versio | --versi | --vers | -V) 999128345Stjr ac_init_version=: ;; 100060786Sps 100160786Sps -with-* | --with-*) 1002191930Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 100360786Sps # Reject names that are not valid shell variable names. 1004191930Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005221715Sdelphij as_fn_error $? "invalid package name: $ac_useropt" 1006191930Sdelphij ac_useropt_orig=$ac_useropt 1007191930Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1008191930Sdelphij case $ac_user_opts in 1009191930Sdelphij *" 1010191930Sdelphij"with_$ac_useropt" 1011191930Sdelphij"*) ;; 1012191930Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1013191930Sdelphij ac_unrecognized_sep=', ';; 1014191930Sdelphij esac 1015191930Sdelphij eval with_$ac_useropt=\$ac_optarg ;; 101660786Sps 101760786Sps -without-* | --without-*) 1018191930Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 101960786Sps # Reject names that are not valid shell variable names. 1020191930Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1021221715Sdelphij as_fn_error $? "invalid package name: $ac_useropt" 1022191930Sdelphij ac_useropt_orig=$ac_useropt 1023191930Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1024191930Sdelphij case $ac_user_opts in 1025191930Sdelphij *" 1026191930Sdelphij"with_$ac_useropt" 1027191930Sdelphij"*) ;; 1028191930Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1029191930Sdelphij ac_unrecognized_sep=', ';; 1030191930Sdelphij esac 1031191930Sdelphij eval with_$ac_useropt=no ;; 103260786Sps 103360786Sps --x) 103460786Sps # Obsolete; use --with-x. 103560786Sps with_x=yes ;; 103660786Sps 103760786Sps -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 103860786Sps | --x-incl | --x-inc | --x-in | --x-i) 103960786Sps ac_prev=x_includes ;; 104060786Sps -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 104160786Sps | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1042128345Stjr x_includes=$ac_optarg ;; 104360786Sps 104460786Sps -x-libraries | --x-libraries | --x-librarie | --x-librari \ 104560786Sps | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 104660786Sps ac_prev=x_libraries ;; 104760786Sps -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 104860786Sps | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1049128345Stjr x_libraries=$ac_optarg ;; 105060786Sps 1051221715Sdelphij -*) as_fn_error $? "unrecognized option: \`$ac_option' 1052221715SdelphijTry \`$0 --help' for more information" 105360786Sps ;; 105460786Sps 1055128345Stjr *=*) 1056128345Stjr ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1057128345Stjr # Reject names that are not valid shell variable names. 1058221715Sdelphij case $ac_envvar in #( 1059221715Sdelphij '' | [0-9]* | *[!_$as_cr_alnum]* ) 1060221715Sdelphij as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1061221715Sdelphij esac 1062170256Sdelphij eval $ac_envvar=\$ac_optarg 1063128345Stjr export $ac_envvar ;; 1064128345Stjr 106560786Sps *) 1066128345Stjr # FIXME: should be removed in autoconf 3.0. 1067191930Sdelphij $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1068128345Stjr expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1069191930Sdelphij $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1070128345Stjr : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 107160786Sps ;; 107260786Sps 107360786Sps esac 107460786Spsdone 107560786Sps 107660786Spsif test -n "$ac_prev"; then 1077128345Stjr ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1078221715Sdelphij as_fn_error $? "missing argument to $ac_option" 107960786Spsfi 108060786Sps 1081191930Sdelphijif test -n "$ac_unrecognized_opts"; then 1082191930Sdelphij case $enable_option_checking in 1083191930Sdelphij no) ;; 1084221715Sdelphij fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1085191930Sdelphij *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1086191930Sdelphij esac 1087191930Sdelphijfi 1088191930Sdelphij 1089191930Sdelphij# Check all directory arguments for consistency. 1090170256Sdelphijfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1091170256Sdelphij datadir sysconfdir sharedstatedir localstatedir includedir \ 1092170256Sdelphij oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1093170256Sdelphij libdir localedir mandir 1094128345Stjrdo 1095170256Sdelphij eval ac_val=\$$ac_var 1096191930Sdelphij # Remove trailing slashes. 1097128345Stjr case $ac_val in 1098191930Sdelphij */ ) 1099191930Sdelphij ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1100191930Sdelphij eval $ac_var=\$ac_val;; 1101191930Sdelphij esac 1102191930Sdelphij # Be sure to have absolute directory names. 1103191930Sdelphij case $ac_val in 1104170256Sdelphij [\\/$]* | ?:[\\/]* ) continue;; 1105170256Sdelphij NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1106128345Stjr esac 1107221715Sdelphij as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1108128345Stjrdone 110960786Sps 1110128345Stjr# There might be people who depend on the old broken behavior: `$host' 1111128345Stjr# used to hold the argument of --host etc. 1112128345Stjr# FIXME: To remove some day. 1113128345Stjrbuild=$build_alias 1114128345Stjrhost=$host_alias 1115128345Stjrtarget=$target_alias 111660786Sps 1117128345Stjr# FIXME: To remove some day. 1118128345Stjrif test "x$host_alias" != x; then 1119128345Stjr if test "x$build_alias" = x; then 1120128345Stjr cross_compiling=maybe 1121221715Sdelphij $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1122221715Sdelphij If a cross compiler is detected then cross compile mode will be used" >&2 1123128345Stjr elif test "x$build_alias" != "x$host_alias"; then 1124128345Stjr cross_compiling=yes 1125128345Stjr fi 1126128345Stjrfi 112760786Sps 1128128345Stjrac_tool_prefix= 1129128345Stjrtest -n "$host_alias" && ac_tool_prefix=$host_alias- 113060786Sps 1131128345Stjrtest "$silent" = yes && exec 6>/dev/null 1132128345Stjr 1133128345Stjr 1134170256Sdelphijac_pwd=`pwd` && test -n "$ac_pwd" && 1135170256Sdelphijac_ls_di=`ls -di .` && 1136170256Sdelphijac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1137221715Sdelphij as_fn_error $? "working directory cannot be determined" 1138170256Sdelphijtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1139221715Sdelphij as_fn_error $? "pwd does not report name of working directory" 1140170256Sdelphij 1141170256Sdelphij 114260786Sps# Find the source files, if location was not specified. 114360786Spsif test -z "$srcdir"; then 114460786Sps ac_srcdir_defaulted=yes 1145170256Sdelphij # Try the directory containing this script, then the parent directory. 1146191930Sdelphij ac_confdir=`$as_dirname -- "$as_myself" || 1147191930Sdelphij$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1148191930Sdelphij X"$as_myself" : 'X\(//\)[^/]' \| \ 1149191930Sdelphij X"$as_myself" : 'X\(//\)$' \| \ 1150191930Sdelphij X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1151191930Sdelphij$as_echo X"$as_myself" | 1152170256Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1153170256Sdelphij s//\1/ 1154170256Sdelphij q 1155170256Sdelphij } 1156170256Sdelphij /^X\(\/\/\)[^/].*/{ 1157170256Sdelphij s//\1/ 1158170256Sdelphij q 1159170256Sdelphij } 1160170256Sdelphij /^X\(\/\/\)$/{ 1161170256Sdelphij s//\1/ 1162170256Sdelphij q 1163170256Sdelphij } 1164170256Sdelphij /^X\(\/\).*/{ 1165170256Sdelphij s//\1/ 1166170256Sdelphij q 1167170256Sdelphij } 1168170256Sdelphij s/.*/./; q'` 116960786Sps srcdir=$ac_confdir 1170170256Sdelphij if test ! -r "$srcdir/$ac_unique_file"; then 117160786Sps srcdir=.. 117260786Sps fi 117360786Spselse 117460786Sps ac_srcdir_defaulted=no 117560786Spsfi 1176170256Sdelphijif test ! -r "$srcdir/$ac_unique_file"; then 1177170256Sdelphij test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1178221715Sdelphij as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1179170256Sdelphijfi 1180170256Sdelphijac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1181170256Sdelphijac_abs_confdir=`( 1182221715Sdelphij cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1183170256Sdelphij pwd)` 1184170256Sdelphij# When building in place, set srcdir=. 1185170256Sdelphijif test "$ac_abs_confdir" = "$ac_pwd"; then 1186170256Sdelphij srcdir=. 118760786Spsfi 1188170256Sdelphij# Remove unnecessary trailing slashes from srcdir. 1189170256Sdelphij# Double slashes in file names in object file debugging info 1190170256Sdelphij# mess up M-x gdb in Emacs. 1191170256Sdelphijcase $srcdir in 1192170256Sdelphij*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1193170256Sdelphijesac 1194170256Sdelphijfor ac_var in $ac_precious_vars; do 1195170256Sdelphij eval ac_env_${ac_var}_set=\${${ac_var}+set} 1196170256Sdelphij eval ac_env_${ac_var}_value=\$${ac_var} 1197170256Sdelphij eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1198170256Sdelphij eval ac_cv_env_${ac_var}_value=\$${ac_var} 1199170256Sdelphijdone 120060786Sps 1201128345Stjr# 1202128345Stjr# Report the --help message. 1203128345Stjr# 1204128345Stjrif test "$ac_init_help" = "long"; then 1205128345Stjr # Omit some internal or obsolete options to make the list less imposing. 1206128345Stjr # This message is too long to be a string in the A/UX 3.1 sh. 1207128345Stjr cat <<_ACEOF 1208128345Stjr\`configure' configures less 1 to adapt to many kinds of systems. 1209128345Stjr 1210128345StjrUsage: $0 [OPTION]... [VAR=VALUE]... 1211128345Stjr 1212128345StjrTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1213128345StjrVAR=VALUE. See below for descriptions of some of the useful variables. 1214128345Stjr 1215128345StjrDefaults for the options are specified in brackets. 1216128345Stjr 1217128345StjrConfiguration: 1218128345Stjr -h, --help display this help and exit 1219128345Stjr --help=short display options specific to this package 1220128345Stjr --help=recursive display the short help of all the included packages 1221128345Stjr -V, --version display version information and exit 1222221715Sdelphij -q, --quiet, --silent do not print \`checking ...' messages 1223128345Stjr --cache-file=FILE cache test results in FILE [disabled] 1224128345Stjr -C, --config-cache alias for \`--cache-file=config.cache' 1225128345Stjr -n, --no-create do not create output files 1226128345Stjr --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1227128345Stjr 1228128345StjrInstallation directories: 1229128345Stjr --prefix=PREFIX install architecture-independent files in PREFIX 1230191930Sdelphij [$ac_default_prefix] 1231128345Stjr --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1232191930Sdelphij [PREFIX] 1233128345Stjr 1234128345StjrBy default, \`make install' will install all the files in 1235128345Stjr\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1236128345Stjran installation prefix other than \`$ac_default_prefix' using \`--prefix', 1237128345Stjrfor instance \`--prefix=\$HOME'. 1238128345Stjr 1239128345StjrFor better control, use the options below. 1240128345Stjr 1241128345StjrFine tuning of the installation directories: 1242191930Sdelphij --bindir=DIR user executables [EPREFIX/bin] 1243191930Sdelphij --sbindir=DIR system admin executables [EPREFIX/sbin] 1244191930Sdelphij --libexecdir=DIR program executables [EPREFIX/libexec] 1245191930Sdelphij --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1246191930Sdelphij --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1247191930Sdelphij --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1248191930Sdelphij --libdir=DIR object code libraries [EPREFIX/lib] 1249191930Sdelphij --includedir=DIR C header files [PREFIX/include] 1250191930Sdelphij --oldincludedir=DIR C header files for non-gcc [/usr/include] 1251191930Sdelphij --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1252191930Sdelphij --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1253191930Sdelphij --infodir=DIR info documentation [DATAROOTDIR/info] 1254191930Sdelphij --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1255191930Sdelphij --mandir=DIR man documentation [DATAROOTDIR/man] 1256191930Sdelphij --docdir=DIR documentation root [DATAROOTDIR/doc/less] 1257191930Sdelphij --htmldir=DIR html documentation [DOCDIR] 1258191930Sdelphij --dvidir=DIR dvi documentation [DOCDIR] 1259191930Sdelphij --pdfdir=DIR pdf documentation [DOCDIR] 1260191930Sdelphij --psdir=DIR ps documentation [DOCDIR] 1261128345Stjr_ACEOF 1262128345Stjr 1263128345Stjr cat <<\_ACEOF 1264128345Stjr_ACEOF 1265128345Stjrfi 1266128345Stjr 1267128345Stjrif test -n "$ac_init_help"; then 1268128345Stjr case $ac_init_help in 1269128345Stjr short | recursive ) echo "Configuration of less 1:";; 1270128345Stjr esac 1271128345Stjr cat <<\_ACEOF 1272128345Stjr 1273128345StjrOptional Features: 1274191930Sdelphij --disable-option-checking ignore unrecognized --enable/--with options 1275128345Stjr --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1276128345Stjr --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1277128345Stjr --disable-largefile omit support for large files 1278128345Stjr 1279128345StjrOptional Packages: 1280128345Stjr --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1281128345Stjr --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1282161475Sdelphij --with-secure Compile in secure mode 1283221715Sdelphij --with-no-float Do not use floating point 1284128345Stjr --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto 1285128345Stjr --with-editor=PROGRAM use PROGRAM as the default editor vi 1286128345Stjr 1287128345StjrSome influential environment variables: 1288128345Stjr CC C compiler command 1289128345Stjr CFLAGS C compiler flags 1290128345Stjr LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1291128345Stjr nonstandard directory <lib dir> 1292170256Sdelphij LIBS libraries to pass to the linker, e.g. -l<library> 1293221715Sdelphij CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1294170256Sdelphij you have headers in a nonstandard directory <include dir> 1295128345Stjr CPP C preprocessor 1296128345Stjr 1297128345StjrUse these variables to override the choices made by `configure' or to help 1298128345Stjrit to find libraries and programs with nonstandard names/locations. 1299128345Stjr 1300221715SdelphijReport bugs to the package provider. 1301128345Stjr_ACEOF 1302170256Sdelphijac_status=$? 1303128345Stjrfi 1304128345Stjr 1305128345Stjrif test "$ac_init_help" = "recursive"; then 1306128345Stjr # If there are subdirs, report their specific --help. 1307128345Stjr for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1308191930Sdelphij test -d "$ac_dir" || 1309191930Sdelphij { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1310191930Sdelphij continue 1311128345Stjr ac_builddir=. 1312128345Stjr 1313170256Sdelphijcase "$ac_dir" in 1314170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1315170256Sdelphij*) 1316191930Sdelphij ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1317170256Sdelphij # A ".." for each directory in $ac_dir_suffix. 1318191930Sdelphij ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1319170256Sdelphij case $ac_top_builddir_sub in 1320170256Sdelphij "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1321170256Sdelphij *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1322170256Sdelphij esac ;; 1323170256Sdelphijesac 1324170256Sdelphijac_abs_top_builddir=$ac_pwd 1325170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix 1326170256Sdelphij# for backward compatibility: 1327170256Sdelphijac_top_builddir=$ac_top_build_prefix 1328128345Stjr 1329128345Stjrcase $srcdir in 1330170256Sdelphij .) # We are building in place. 1331128345Stjr ac_srcdir=. 1332170256Sdelphij ac_top_srcdir=$ac_top_builddir_sub 1333170256Sdelphij ac_abs_top_srcdir=$ac_pwd ;; 1334170256Sdelphij [\\/]* | ?:[\\/]* ) # Absolute name. 1335128345Stjr ac_srcdir=$srcdir$ac_dir_suffix; 1336170256Sdelphij ac_top_srcdir=$srcdir 1337170256Sdelphij ac_abs_top_srcdir=$srcdir ;; 1338170256Sdelphij *) # Relative name. 1339170256Sdelphij ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1340170256Sdelphij ac_top_srcdir=$ac_top_build_prefix$srcdir 1341170256Sdelphij ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1342128345Stjresac 1343170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1344128345Stjr 1345170256Sdelphij cd "$ac_dir" || { ac_status=$?; continue; } 1346170256Sdelphij # Check for guested configure. 1347170256Sdelphij if test -f "$ac_srcdir/configure.gnu"; then 1348170256Sdelphij echo && 1349170256Sdelphij $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1350170256Sdelphij elif test -f "$ac_srcdir/configure"; then 1351170256Sdelphij echo && 1352170256Sdelphij $SHELL "$ac_srcdir/configure" --help=recursive 1353128345Stjr else 1354191930Sdelphij $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1355170256Sdelphij fi || ac_status=$? 1356170256Sdelphij cd "$ac_pwd" || { ac_status=$?; break; } 1357128345Stjr done 1358128345Stjrfi 1359128345Stjr 1360170256Sdelphijtest -n "$ac_init_help" && exit $ac_status 1361128345Stjrif $ac_init_version; then 1362128345Stjr cat <<\_ACEOF 1363128345Stjrless configure 1 1364221715Sdelphijgenerated by GNU Autoconf 2.67 1365128345Stjr 1366221715SdelphijCopyright (C) 2010 Free Software Foundation, Inc. 1367128345StjrThis configure script is free software; the Free Software Foundation 1368128345Stjrgives unlimited permission to copy, distribute and modify it. 1369128345Stjr_ACEOF 1370170256Sdelphij exit 1371128345Stjrfi 1372221715Sdelphij 1373221715Sdelphij## ------------------------ ## 1374221715Sdelphij## Autoconf initialization. ## 1375221715Sdelphij## ------------------------ ## 1376221715Sdelphij 1377221715Sdelphij# ac_fn_c_try_compile LINENO 1378221715Sdelphij# -------------------------- 1379221715Sdelphij# Try to compile conftest.$ac_ext, and return whether this succeeded. 1380221715Sdelphijac_fn_c_try_compile () 1381221715Sdelphij{ 1382221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1383221715Sdelphij rm -f conftest.$ac_objext 1384221715Sdelphij if { { ac_try="$ac_compile" 1385221715Sdelphijcase "(($ac_try" in 1386221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1387221715Sdelphij *) ac_try_echo=$ac_try;; 1388221715Sdelphijesac 1389221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1390221715Sdelphij$as_echo "$ac_try_echo"; } >&5 1391221715Sdelphij (eval "$ac_compile") 2>conftest.err 1392221715Sdelphij ac_status=$? 1393221715Sdelphij if test -s conftest.err; then 1394221715Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1395221715Sdelphij cat conftest.er1 >&5 1396221715Sdelphij mv -f conftest.er1 conftest.err 1397221715Sdelphij fi 1398221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1399221715Sdelphij test $ac_status = 0; } && { 1400221715Sdelphij test -z "$ac_c_werror_flag" || 1401221715Sdelphij test ! -s conftest.err 1402221715Sdelphij } && test -s conftest.$ac_objext; then : 1403221715Sdelphij ac_retval=0 1404221715Sdelphijelse 1405221715Sdelphij $as_echo "$as_me: failed program was:" >&5 1406221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1407221715Sdelphij 1408221715Sdelphij ac_retval=1 1409221715Sdelphijfi 1410221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1411221715Sdelphij as_fn_set_status $ac_retval 1412221715Sdelphij 1413221715Sdelphij} # ac_fn_c_try_compile 1414221715Sdelphij 1415221715Sdelphij# ac_fn_c_try_link LINENO 1416221715Sdelphij# ----------------------- 1417221715Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. 1418221715Sdelphijac_fn_c_try_link () 1419221715Sdelphij{ 1420221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1421221715Sdelphij rm -f conftest.$ac_objext conftest$ac_exeext 1422221715Sdelphij if { { ac_try="$ac_link" 1423221715Sdelphijcase "(($ac_try" in 1424221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1425221715Sdelphij *) ac_try_echo=$ac_try;; 1426221715Sdelphijesac 1427221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1428221715Sdelphij$as_echo "$ac_try_echo"; } >&5 1429221715Sdelphij (eval "$ac_link") 2>conftest.err 1430221715Sdelphij ac_status=$? 1431221715Sdelphij if test -s conftest.err; then 1432221715Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1433221715Sdelphij cat conftest.er1 >&5 1434221715Sdelphij mv -f conftest.er1 conftest.err 1435221715Sdelphij fi 1436221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1437221715Sdelphij test $ac_status = 0; } && { 1438221715Sdelphij test -z "$ac_c_werror_flag" || 1439221715Sdelphij test ! -s conftest.err 1440221715Sdelphij } && test -s conftest$ac_exeext && { 1441221715Sdelphij test "$cross_compiling" = yes || 1442221715Sdelphij $as_test_x conftest$ac_exeext 1443221715Sdelphij }; then : 1444221715Sdelphij ac_retval=0 1445221715Sdelphijelse 1446221715Sdelphij $as_echo "$as_me: failed program was:" >&5 1447221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1448221715Sdelphij 1449221715Sdelphij ac_retval=1 1450221715Sdelphijfi 1451221715Sdelphij # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1452221715Sdelphij # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1453221715Sdelphij # interfere with the next link command; also delete a directory that is 1454221715Sdelphij # left behind by Apple's compiler. We do this before executing the actions. 1455221715Sdelphij rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1456221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1457221715Sdelphij as_fn_set_status $ac_retval 1458221715Sdelphij 1459221715Sdelphij} # ac_fn_c_try_link 1460221715Sdelphij 1461221715Sdelphij# ac_fn_c_try_cpp LINENO 1462221715Sdelphij# ---------------------- 1463221715Sdelphij# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1464221715Sdelphijac_fn_c_try_cpp () 1465221715Sdelphij{ 1466221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1467221715Sdelphij if { { ac_try="$ac_cpp conftest.$ac_ext" 1468221715Sdelphijcase "(($ac_try" in 1469221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1470221715Sdelphij *) ac_try_echo=$ac_try;; 1471221715Sdelphijesac 1472221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1473221715Sdelphij$as_echo "$ac_try_echo"; } >&5 1474221715Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1475221715Sdelphij ac_status=$? 1476221715Sdelphij if test -s conftest.err; then 1477221715Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1478221715Sdelphij cat conftest.er1 >&5 1479221715Sdelphij mv -f conftest.er1 conftest.err 1480221715Sdelphij fi 1481221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1482221715Sdelphij test $ac_status = 0; } > conftest.i && { 1483221715Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1484221715Sdelphij test ! -s conftest.err 1485221715Sdelphij }; then : 1486221715Sdelphij ac_retval=0 1487221715Sdelphijelse 1488221715Sdelphij $as_echo "$as_me: failed program was:" >&5 1489221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1490221715Sdelphij 1491221715Sdelphij ac_retval=1 1492221715Sdelphijfi 1493221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1494221715Sdelphij as_fn_set_status $ac_retval 1495221715Sdelphij 1496221715Sdelphij} # ac_fn_c_try_cpp 1497221715Sdelphij 1498221715Sdelphij# ac_fn_c_try_run LINENO 1499221715Sdelphij# ---------------------- 1500221715Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1501221715Sdelphij# that executables *can* be run. 1502221715Sdelphijac_fn_c_try_run () 1503221715Sdelphij{ 1504221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505221715Sdelphij if { { ac_try="$ac_link" 1506221715Sdelphijcase "(($ac_try" in 1507221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508221715Sdelphij *) ac_try_echo=$ac_try;; 1509221715Sdelphijesac 1510221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511221715Sdelphij$as_echo "$ac_try_echo"; } >&5 1512221715Sdelphij (eval "$ac_link") 2>&5 1513221715Sdelphij ac_status=$? 1514221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1515221715Sdelphij test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1516221715Sdelphij { { case "(($ac_try" in 1517221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1518221715Sdelphij *) ac_try_echo=$ac_try;; 1519221715Sdelphijesac 1520221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1521221715Sdelphij$as_echo "$ac_try_echo"; } >&5 1522221715Sdelphij (eval "$ac_try") 2>&5 1523221715Sdelphij ac_status=$? 1524221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1525221715Sdelphij test $ac_status = 0; }; }; then : 1526221715Sdelphij ac_retval=0 1527221715Sdelphijelse 1528221715Sdelphij $as_echo "$as_me: program exited with status $ac_status" >&5 1529221715Sdelphij $as_echo "$as_me: failed program was:" >&5 1530221715Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1531221715Sdelphij 1532221715Sdelphij ac_retval=$ac_status 1533221715Sdelphijfi 1534221715Sdelphij rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1535221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1536221715Sdelphij as_fn_set_status $ac_retval 1537221715Sdelphij 1538221715Sdelphij} # ac_fn_c_try_run 1539221715Sdelphij 1540221715Sdelphij# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1541221715Sdelphij# ------------------------------------------------------- 1542221715Sdelphij# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1543221715Sdelphij# the include files in INCLUDES and setting the cache variable VAR 1544221715Sdelphij# accordingly. 1545221715Sdelphijac_fn_c_check_header_mongrel () 1546221715Sdelphij{ 1547221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548221715Sdelphij if eval "test \"\${$3+set}\"" = set; then : 1549221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1550221715Sdelphij$as_echo_n "checking for $2... " >&6; } 1551221715Sdelphijif eval "test \"\${$3+set}\"" = set; then : 1552221715Sdelphij $as_echo_n "(cached) " >&6 1553221715Sdelphijfi 1554221715Sdelphijeval ac_res=\$$3 1555221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1556221715Sdelphij$as_echo "$ac_res" >&6; } 1557221715Sdelphijelse 1558221715Sdelphij # Is the header compilable? 1559221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1560221715Sdelphij$as_echo_n "checking $2 usability... " >&6; } 1561221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1562221715Sdelphij/* end confdefs.h. */ 1563221715Sdelphij$4 1564221715Sdelphij#include <$2> 1565221715Sdelphij_ACEOF 1566221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1567221715Sdelphij ac_header_compiler=yes 1568221715Sdelphijelse 1569221715Sdelphij ac_header_compiler=no 1570221715Sdelphijfi 1571221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1572221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1573221715Sdelphij$as_echo "$ac_header_compiler" >&6; } 1574221715Sdelphij 1575221715Sdelphij# Is the header present? 1576221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1577221715Sdelphij$as_echo_n "checking $2 presence... " >&6; } 1578221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1579221715Sdelphij/* end confdefs.h. */ 1580221715Sdelphij#include <$2> 1581221715Sdelphij_ACEOF 1582221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 1583221715Sdelphij ac_header_preproc=yes 1584221715Sdelphijelse 1585221715Sdelphij ac_header_preproc=no 1586221715Sdelphijfi 1587221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 1588221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1589221715Sdelphij$as_echo "$ac_header_preproc" >&6; } 1590221715Sdelphij 1591221715Sdelphij# So? What about this header? 1592221715Sdelphijcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1593221715Sdelphij yes:no: ) 1594221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1595221715Sdelphij$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1596221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1597221715Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1598221715Sdelphij ;; 1599221715Sdelphij no:yes:* ) 1600221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1601221715Sdelphij$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1602221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1603221715Sdelphij$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1604221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1605221715Sdelphij$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1606221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1607221715Sdelphij$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1608221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1609221715Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1610221715Sdelphij ;; 1611221715Sdelphijesac 1612221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1613221715Sdelphij$as_echo_n "checking for $2... " >&6; } 1614221715Sdelphijif eval "test \"\${$3+set}\"" = set; then : 1615221715Sdelphij $as_echo_n "(cached) " >&6 1616221715Sdelphijelse 1617221715Sdelphij eval "$3=\$ac_header_compiler" 1618221715Sdelphijfi 1619221715Sdelphijeval ac_res=\$$3 1620221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1621221715Sdelphij$as_echo "$ac_res" >&6; } 1622221715Sdelphijfi 1623221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1624221715Sdelphij 1625221715Sdelphij} # ac_fn_c_check_header_mongrel 1626221715Sdelphij 1627221715Sdelphij# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628221715Sdelphij# ------------------------------------------------------- 1629221715Sdelphij# Tests whether HEADER exists and can be compiled using the include files in 1630221715Sdelphij# INCLUDES, setting the cache variable VAR accordingly. 1631221715Sdelphijac_fn_c_check_header_compile () 1632221715Sdelphij{ 1633221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635221715Sdelphij$as_echo_n "checking for $2... " >&6; } 1636221715Sdelphijif eval "test \"\${$3+set}\"" = set; then : 1637221715Sdelphij $as_echo_n "(cached) " >&6 1638221715Sdelphijelse 1639221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640221715Sdelphij/* end confdefs.h. */ 1641221715Sdelphij$4 1642221715Sdelphij#include <$2> 1643221715Sdelphij_ACEOF 1644221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1645221715Sdelphij eval "$3=yes" 1646221715Sdelphijelse 1647221715Sdelphij eval "$3=no" 1648221715Sdelphijfi 1649221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1650221715Sdelphijfi 1651221715Sdelphijeval ac_res=\$$3 1652221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653221715Sdelphij$as_echo "$ac_res" >&6; } 1654221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1655221715Sdelphij 1656221715Sdelphij} # ac_fn_c_check_header_compile 1657221715Sdelphij 1658221715Sdelphij# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1659221715Sdelphij# ------------------------------------------- 1660221715Sdelphij# Tests whether TYPE exists after having included INCLUDES, setting cache 1661221715Sdelphij# variable VAR accordingly. 1662221715Sdelphijac_fn_c_check_type () 1663221715Sdelphij{ 1664221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666221715Sdelphij$as_echo_n "checking for $2... " >&6; } 1667221715Sdelphijif eval "test \"\${$3+set}\"" = set; then : 1668221715Sdelphij $as_echo_n "(cached) " >&6 1669221715Sdelphijelse 1670221715Sdelphij eval "$3=no" 1671221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672221715Sdelphij/* end confdefs.h. */ 1673221715Sdelphij$4 1674221715Sdelphijint 1675221715Sdelphijmain () 1676221715Sdelphij{ 1677221715Sdelphijif (sizeof ($2)) 1678221715Sdelphij return 0; 1679221715Sdelphij ; 1680221715Sdelphij return 0; 1681221715Sdelphij} 1682221715Sdelphij_ACEOF 1683221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1684221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685221715Sdelphij/* end confdefs.h. */ 1686221715Sdelphij$4 1687221715Sdelphijint 1688221715Sdelphijmain () 1689221715Sdelphij{ 1690221715Sdelphijif (sizeof (($2))) 1691221715Sdelphij return 0; 1692221715Sdelphij ; 1693221715Sdelphij return 0; 1694221715Sdelphij} 1695221715Sdelphij_ACEOF 1696221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1697221715Sdelphij 1698221715Sdelphijelse 1699221715Sdelphij eval "$3=yes" 1700221715Sdelphijfi 1701221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1702221715Sdelphijfi 1703221715Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1704221715Sdelphijfi 1705221715Sdelphijeval ac_res=\$$3 1706221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1707221715Sdelphij$as_echo "$ac_res" >&6; } 1708221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1709221715Sdelphij 1710221715Sdelphij} # ac_fn_c_check_type 1711221715Sdelphij 1712221715Sdelphij# ac_fn_c_check_func LINENO FUNC VAR 1713221715Sdelphij# ---------------------------------- 1714221715Sdelphij# Tests whether FUNC exists, setting the cache variable VAR accordingly 1715221715Sdelphijac_fn_c_check_func () 1716221715Sdelphij{ 1717221715Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719221715Sdelphij$as_echo_n "checking for $2... " >&6; } 1720221715Sdelphijif eval "test \"\${$3+set}\"" = set; then : 1721221715Sdelphij $as_echo_n "(cached) " >&6 1722221715Sdelphijelse 1723221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1724221715Sdelphij/* end confdefs.h. */ 1725221715Sdelphij/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1726221715Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1727221715Sdelphij#define $2 innocuous_$2 1728221715Sdelphij 1729221715Sdelphij/* System header to define __stub macros and hopefully few prototypes, 1730221715Sdelphij which can conflict with char $2 (); below. 1731221715Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1732221715Sdelphij <limits.h> exists even on freestanding compilers. */ 1733221715Sdelphij 1734221715Sdelphij#ifdef __STDC__ 1735221715Sdelphij# include <limits.h> 1736221715Sdelphij#else 1737221715Sdelphij# include <assert.h> 1738221715Sdelphij#endif 1739221715Sdelphij 1740221715Sdelphij#undef $2 1741221715Sdelphij 1742221715Sdelphij/* Override any GCC internal prototype to avoid an error. 1743221715Sdelphij Use char because int might match the return type of a GCC 1744221715Sdelphij builtin and then its argument prototype would still apply. */ 1745221715Sdelphij#ifdef __cplusplus 1746221715Sdelphijextern "C" 1747221715Sdelphij#endif 1748221715Sdelphijchar $2 (); 1749221715Sdelphij/* The GNU C library defines this for functions which it implements 1750221715Sdelphij to always fail with ENOSYS. Some functions are actually named 1751221715Sdelphij something starting with __ and the normal name is an alias. */ 1752221715Sdelphij#if defined __stub_$2 || defined __stub___$2 1753221715Sdelphijchoke me 1754221715Sdelphij#endif 1755221715Sdelphij 1756221715Sdelphijint 1757221715Sdelphijmain () 1758221715Sdelphij{ 1759221715Sdelphijreturn $2 (); 1760221715Sdelphij ; 1761221715Sdelphij return 0; 1762221715Sdelphij} 1763221715Sdelphij_ACEOF 1764221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 1765221715Sdelphij eval "$3=yes" 1766221715Sdelphijelse 1767221715Sdelphij eval "$3=no" 1768221715Sdelphijfi 1769221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 1770221715Sdelphij conftest$ac_exeext conftest.$ac_ext 1771221715Sdelphijfi 1772221715Sdelphijeval ac_res=\$$3 1773221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774221715Sdelphij$as_echo "$ac_res" >&6; } 1775221715Sdelphij eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1776221715Sdelphij 1777221715Sdelphij} # ac_fn_c_check_func 1778170256Sdelphijcat >config.log <<_ACEOF 1779128345StjrThis file contains any messages produced by compilers while 1780128345Stjrrunning configure, to aid debugging if configure makes a mistake. 1781128345Stjr 1782128345StjrIt was created by less $as_me 1, which was 1783221715Sdelphijgenerated by GNU Autoconf 2.67. Invocation command line was 1784128345Stjr 1785128345Stjr $ $0 $@ 1786128345Stjr 1787128345Stjr_ACEOF 1788170256Sdelphijexec 5>>config.log 1789128345Stjr{ 1790128345Stjrcat <<_ASUNAME 1791128345Stjr## --------- ## 1792128345Stjr## Platform. ## 1793128345Stjr## --------- ## 1794128345Stjr 1795128345Stjrhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1796128345Stjruname -m = `(uname -m) 2>/dev/null || echo unknown` 1797128345Stjruname -r = `(uname -r) 2>/dev/null || echo unknown` 1798128345Stjruname -s = `(uname -s) 2>/dev/null || echo unknown` 1799128345Stjruname -v = `(uname -v) 2>/dev/null || echo unknown` 1800128345Stjr 1801128345Stjr/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1802128345Stjr/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1803128345Stjr 1804128345Stjr/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1805128345Stjr/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1806128345Stjr/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1807170256Sdelphij/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1808128345Stjr/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1809128345Stjr/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1810128345Stjr/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1811128345Stjr 1812128345Stjr_ASUNAME 1813128345Stjr 1814128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1815128345Stjrfor as_dir in $PATH 1816128345Stjrdo 1817128345Stjr IFS=$as_save_IFS 1818128345Stjr test -z "$as_dir" && as_dir=. 1819221715Sdelphij $as_echo "PATH: $as_dir" 1820221715Sdelphij done 1821170256SdelphijIFS=$as_save_IFS 1822128345Stjr 1823128345Stjr} >&5 1824128345Stjr 1825128345Stjrcat >&5 <<_ACEOF 1826128345Stjr 1827128345Stjr 1828128345Stjr## ----------- ## 1829128345Stjr## Core tests. ## 1830128345Stjr## ----------- ## 1831128345Stjr 1832128345Stjr_ACEOF 1833128345Stjr 1834128345Stjr 1835128345Stjr# Keep a trace of the command line. 1836128345Stjr# Strip out --no-create and --no-recursion so they do not pile up. 1837170256Sdelphij# Strip out --silent because we don't want to record it for future runs. 1838128345Stjr# Also quote any args containing shell meta-characters. 1839170256Sdelphij# Make two passes to allow for proper duplicate-argument suppression. 1840128345Stjrac_configure_args= 1841170256Sdelphijac_configure_args0= 1842170256Sdelphijac_configure_args1= 1843170256Sdelphijac_must_keep_next=false 1844170256Sdelphijfor ac_pass in 1 2 1845128345Stjrdo 1846170256Sdelphij for ac_arg 1847170256Sdelphij do 1848170256Sdelphij case $ac_arg in 1849170256Sdelphij -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1850170256Sdelphij -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1851170256Sdelphij | -silent | --silent | --silen | --sile | --sil) 1852170256Sdelphij continue ;; 1853170256Sdelphij *\'*) 1854191930Sdelphij ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1855170256Sdelphij esac 1856170256Sdelphij case $ac_pass in 1857221715Sdelphij 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1858170256Sdelphij 2) 1859221715Sdelphij as_fn_append ac_configure_args1 " '$ac_arg'" 1860170256Sdelphij if test $ac_must_keep_next = true; then 1861170256Sdelphij ac_must_keep_next=false # Got value, back to normal. 1862170256Sdelphij else 1863170256Sdelphij case $ac_arg in 1864170256Sdelphij *=* | --config-cache | -C | -disable-* | --disable-* \ 1865170256Sdelphij | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1866170256Sdelphij | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1867170256Sdelphij | -with-* | --with-* | -without-* | --without-* | --x) 1868170256Sdelphij case "$ac_configure_args0 " in 1869170256Sdelphij "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1870170256Sdelphij esac 1871170256Sdelphij ;; 1872170256Sdelphij -* ) ac_must_keep_next=true ;; 1873170256Sdelphij esac 1874170256Sdelphij fi 1875221715Sdelphij as_fn_append ac_configure_args " '$ac_arg'" 1876170256Sdelphij ;; 1877170256Sdelphij esac 1878170256Sdelphij done 1879128345Stjrdone 1880221715Sdelphij{ ac_configure_args0=; unset ac_configure_args0;} 1881221715Sdelphij{ ac_configure_args1=; unset ac_configure_args1;} 1882128345Stjr 1883128345Stjr# When interrupted or exit'd, cleanup temporary files, and complete 1884128345Stjr# config.log. We remove comments because anyway the quotes in there 1885128345Stjr# would cause problems or look ugly. 1886170256Sdelphij# WARNING: Use '\'' to represent an apostrophe within the trap. 1887170256Sdelphij# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1888128345Stjrtrap 'exit_status=$? 1889128345Stjr # Save into config.log some information that might help in debugging. 1890128345Stjr { 1891128345Stjr echo 1892128345Stjr 1893221715Sdelphij $as_echo "## ---------------- ## 1894128345Stjr## Cache variables. ## 1895221715Sdelphij## ---------------- ##" 1896128345Stjr echo 1897128345Stjr # The following way of writing the cache mishandles newlines in values, 1898170256Sdelphij( 1899170256Sdelphij for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1900170256Sdelphij eval ac_val=\$$ac_var 1901170256Sdelphij case $ac_val in #( 1902170256Sdelphij *${as_nl}*) 1903170256Sdelphij case $ac_var in #( 1904221715Sdelphij *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1905191930Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1906170256Sdelphij esac 1907170256Sdelphij case $ac_var in #( 1908170256Sdelphij _ | IFS | as_nl) ;; #( 1909191930Sdelphij BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1910221715Sdelphij *) { eval $ac_var=; unset $ac_var;} ;; 1911170256Sdelphij esac ;; 1912170256Sdelphij esac 1913170256Sdelphij done 1914128345Stjr (set) 2>&1 | 1915170256Sdelphij case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1916170256Sdelphij *${as_nl}ac_space=\ *) 1917128345Stjr sed -n \ 1918170256Sdelphij "s/'\''/'\''\\\\'\'''\''/g; 1919170256Sdelphij s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1920170256Sdelphij ;; #( 1921128345Stjr *) 1922170256Sdelphij sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1923128345Stjr ;; 1924170256Sdelphij esac | 1925170256Sdelphij sort 1926170256Sdelphij) 1927128345Stjr echo 1928128345Stjr 1929221715Sdelphij $as_echo "## ----------------- ## 1930128345Stjr## Output variables. ## 1931221715Sdelphij## ----------------- ##" 1932128345Stjr echo 1933128345Stjr for ac_var in $ac_subst_vars 1934128345Stjr do 1935170256Sdelphij eval ac_val=\$$ac_var 1936170256Sdelphij case $ac_val in 1937191930Sdelphij *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1938170256Sdelphij esac 1939191930Sdelphij $as_echo "$ac_var='\''$ac_val'\''" 1940128345Stjr done | sort 1941128345Stjr echo 1942128345Stjr 1943128345Stjr if test -n "$ac_subst_files"; then 1944221715Sdelphij $as_echo "## ------------------- ## 1945170256Sdelphij## File substitutions. ## 1946221715Sdelphij## ------------------- ##" 1947128345Stjr echo 1948128345Stjr for ac_var in $ac_subst_files 1949128345Stjr do 1950170256Sdelphij eval ac_val=\$$ac_var 1951170256Sdelphij case $ac_val in 1952191930Sdelphij *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1953170256Sdelphij esac 1954191930Sdelphij $as_echo "$ac_var='\''$ac_val'\''" 1955128345Stjr done | sort 1956128345Stjr echo 1957128345Stjr fi 1958128345Stjr 1959128345Stjr if test -s confdefs.h; then 1960221715Sdelphij $as_echo "## ----------- ## 1961128345Stjr## confdefs.h. ## 1962221715Sdelphij## ----------- ##" 1963128345Stjr echo 1964170256Sdelphij cat confdefs.h 1965128345Stjr echo 1966128345Stjr fi 1967128345Stjr test "$ac_signal" != 0 && 1968191930Sdelphij $as_echo "$as_me: caught signal $ac_signal" 1969191930Sdelphij $as_echo "$as_me: exit $exit_status" 1970128345Stjr } >&5 1971170256Sdelphij rm -f core *.core core.conftest.* && 1972170256Sdelphij rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1973128345Stjr exit $exit_status 1974170256Sdelphij' 0 1975128345Stjrfor ac_signal in 1 2 13 15; do 1976221715Sdelphij trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1977128345Stjrdone 1978128345Stjrac_signal=0 1979128345Stjr 1980128345Stjr# confdefs.h avoids OS command line length limits that DEFS can exceed. 1981170256Sdelphijrm -f -r conftest* confdefs.h 1982128345Stjr 1983221715Sdelphij$as_echo "/* confdefs.h */" > confdefs.h 1984221715Sdelphij 1985128345Stjr# Predefined preprocessor variables. 1986128345Stjr 1987128345Stjrcat >>confdefs.h <<_ACEOF 1988128345Stjr#define PACKAGE_NAME "$PACKAGE_NAME" 1989128345Stjr_ACEOF 1990128345Stjr 1991128345Stjrcat >>confdefs.h <<_ACEOF 1992128345Stjr#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1993128345Stjr_ACEOF 1994128345Stjr 1995128345Stjrcat >>confdefs.h <<_ACEOF 1996128345Stjr#define PACKAGE_VERSION "$PACKAGE_VERSION" 1997128345Stjr_ACEOF 1998128345Stjr 1999128345Stjrcat >>confdefs.h <<_ACEOF 2000128345Stjr#define PACKAGE_STRING "$PACKAGE_STRING" 2001128345Stjr_ACEOF 2002128345Stjr 2003128345Stjrcat >>confdefs.h <<_ACEOF 2004128345Stjr#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2005128345Stjr_ACEOF 2006128345Stjr 2007221715Sdelphijcat >>confdefs.h <<_ACEOF 2008221715Sdelphij#define PACKAGE_URL "$PACKAGE_URL" 2009221715Sdelphij_ACEOF 2010128345Stjr 2011221715Sdelphij 2012128345Stjr# Let the site file select an alternate cache file if it wants to. 2013191930Sdelphij# Prefer an explicitly selected file to automatically selected ones. 2014191930Sdelphijac_site_file1=NONE 2015191930Sdelphijac_site_file2=NONE 2016170256Sdelphijif test -n "$CONFIG_SITE"; then 2017221715Sdelphij # We do not want a PATH search for config.site. 2018221715Sdelphij case $CONFIG_SITE in #(( 2019221715Sdelphij -*) ac_site_file1=./$CONFIG_SITE;; 2020221715Sdelphij */*) ac_site_file1=$CONFIG_SITE;; 2021221715Sdelphij *) ac_site_file1=./$CONFIG_SITE;; 2022221715Sdelphij esac 2023170256Sdelphijelif test "x$prefix" != xNONE; then 2024191930Sdelphij ac_site_file1=$prefix/share/config.site 2025191930Sdelphij ac_site_file2=$prefix/etc/config.site 2026170256Sdelphijelse 2027191930Sdelphij ac_site_file1=$ac_default_prefix/share/config.site 2028191930Sdelphij ac_site_file2=$ac_default_prefix/etc/config.site 202960786Spsfi 2030191930Sdelphijfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2031170256Sdelphijdo 2032191930Sdelphij test "x$ac_site_file" = xNONE && continue 2033221715Sdelphij if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2034221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2035191930Sdelphij$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2036128345Stjr sed 's/^/| /' "$ac_site_file" >&5 2037221715Sdelphij . "$ac_site_file" \ 2038221715Sdelphij || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2039221715Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2040221715Sdelphijas_fn_error $? "failed to load site script $ac_site_file 2041221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 204260786Sps fi 204360786Spsdone 204460786Sps 204560786Spsif test -r "$cache_file"; then 2046221715Sdelphij # Some versions of bash will fail to source /dev/null (special files 2047221715Sdelphij # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2048221715Sdelphij if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2049221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2050191930Sdelphij$as_echo "$as_me: loading cache $cache_file" >&6;} 2051128345Stjr case $cache_file in 2052170256Sdelphij [\\/]* | ?:[\\/]* ) . "$cache_file";; 2053170256Sdelphij *) . "./$cache_file";; 2054128345Stjr esac 2055128345Stjr fi 205660786Spselse 2057221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2058191930Sdelphij$as_echo "$as_me: creating cache $cache_file" >&6;} 2059128345Stjr >$cache_file 206060786Spsfi 206160786Sps 2062128345Stjr# Check that the precious variables saved in the cache have kept the same 2063128345Stjr# value. 2064128345Stjrac_cache_corrupted=false 2065170256Sdelphijfor ac_var in $ac_precious_vars; do 2066128345Stjr eval ac_old_set=\$ac_cv_env_${ac_var}_set 2067128345Stjr eval ac_new_set=\$ac_env_${ac_var}_set 2068170256Sdelphij eval ac_old_val=\$ac_cv_env_${ac_var}_value 2069170256Sdelphij eval ac_new_val=\$ac_env_${ac_var}_value 2070128345Stjr case $ac_old_set,$ac_new_set in 2071128345Stjr set,) 2072221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2073191930Sdelphij$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2074128345Stjr ac_cache_corrupted=: ;; 2075128345Stjr ,set) 2076221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2077191930Sdelphij$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2078128345Stjr ac_cache_corrupted=: ;; 2079128345Stjr ,);; 2080128345Stjr *) 2081128345Stjr if test "x$ac_old_val" != "x$ac_new_val"; then 2082191930Sdelphij # differences in whitespace do not lead to failure. 2083191930Sdelphij ac_old_val_w=`echo x $ac_old_val` 2084191930Sdelphij ac_new_val_w=`echo x $ac_new_val` 2085191930Sdelphij if test "$ac_old_val_w" != "$ac_new_val_w"; then 2086221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2087191930Sdelphij$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2088191930Sdelphij ac_cache_corrupted=: 2089191930Sdelphij else 2090221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2091191930Sdelphij$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2092191930Sdelphij eval $ac_var=\$ac_old_val 2093191930Sdelphij fi 2094221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2095191930Sdelphij$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2096221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2097191930Sdelphij$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2098128345Stjr fi;; 2099128345Stjr esac 2100128345Stjr # Pass precious variables to config.status. 2101128345Stjr if test "$ac_new_set" = set; then 2102128345Stjr case $ac_new_val in 2103191930Sdelphij *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2104128345Stjr *) ac_arg=$ac_var=$ac_new_val ;; 2105128345Stjr esac 2106128345Stjr case " $ac_configure_args " in 2107128345Stjr *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2108221715Sdelphij *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2109128345Stjr esac 2110128345Stjr fi 2111128345Stjrdone 2112128345Stjrif $ac_cache_corrupted; then 2113221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2114191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2115221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2116191930Sdelphij$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2117221715Sdelphij as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2118128345Stjrfi 2119221715Sdelphij## -------------------- ## 2120221715Sdelphij## Main body of script. ## 2121221715Sdelphij## -------------------- ## 2122128345Stjr 2123170256Sdelphijac_ext=c 2124170256Sdelphijac_cpp='$CPP $CPPFLAGS' 2125170256Sdelphijac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2126170256Sdelphijac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2127170256Sdelphijac_compiler_gnu=$ac_cv_c_compiler_gnu 2128128345Stjr 2129128345Stjr 2130128345Stjr 2131170256Sdelphijac_config_headers="$ac_config_headers defines.h" 2132128345Stjr 2133128345Stjr 2134128345Stjr# Checks for programs. 2135128345Stjrac_ext=c 2136128345Stjrac_cpp='$CPP $CPPFLAGS' 2137128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2138128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2139128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2140128345Stjrif test -n "$ac_tool_prefix"; then 2141128345Stjr # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2142128345Stjrset dummy ${ac_tool_prefix}gcc; ac_word=$2 2143221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2144191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2145221715Sdelphijif test "${ac_cv_prog_CC+set}" = set; then : 2146191930Sdelphij $as_echo_n "(cached) " >&6 2147128345Stjrelse 2148128345Stjr if test -n "$CC"; then 2149128345Stjr ac_cv_prog_CC="$CC" # Let the user override the test. 2150128345Stjrelse 2151128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152128345Stjrfor as_dir in $PATH 2153128345Stjrdo 2154128345Stjr IFS=$as_save_IFS 2155128345Stjr test -z "$as_dir" && as_dir=. 2156221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2157170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2158128345Stjr ac_cv_prog_CC="${ac_tool_prefix}gcc" 2159221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2160128345Stjr break 2 216160786Sps fi 2162128345Stjrdone 2163221715Sdelphij done 2164170256SdelphijIFS=$as_save_IFS 2165128345Stjr 2166128345Stjrfi 2167128345Stjrfi 2168128345StjrCC=$ac_cv_prog_CC 2169128345Stjrif test -n "$CC"; then 2170221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2171191930Sdelphij$as_echo "$CC" >&6; } 217260786Spselse 2173221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2174191930Sdelphij$as_echo "no" >&6; } 217560786Spsfi 217660786Sps 2177170256Sdelphij 2178128345Stjrfi 2179128345Stjrif test -z "$ac_cv_prog_CC"; then 2180128345Stjr ac_ct_CC=$CC 2181128345Stjr # Extract the first word of "gcc", so it can be a program name with args. 2182128345Stjrset dummy gcc; ac_word=$2 2183221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2184191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2185221715Sdelphijif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2186191930Sdelphij $as_echo_n "(cached) " >&6 2187128345Stjrelse 2188128345Stjr if test -n "$ac_ct_CC"; then 2189128345Stjr ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2190128345Stjrelse 2191128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2192128345Stjrfor as_dir in $PATH 2193128345Stjrdo 2194128345Stjr IFS=$as_save_IFS 2195128345Stjr test -z "$as_dir" && as_dir=. 2196221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2197170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2198128345Stjr ac_cv_prog_ac_ct_CC="gcc" 2199221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2200128345Stjr break 2 2201128345Stjr fi 2202128345Stjrdone 2203221715Sdelphij done 2204170256SdelphijIFS=$as_save_IFS 220560786Sps 2206128345Stjrfi 2207128345Stjrfi 2208128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC 2209128345Stjrif test -n "$ac_ct_CC"; then 2210221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2211191930Sdelphij$as_echo "$ac_ct_CC" >&6; } 2212128345Stjrelse 2213221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2214191930Sdelphij$as_echo "no" >&6; } 2215128345Stjrfi 221660786Sps 2217170256Sdelphij if test "x$ac_ct_CC" = x; then 2218170256Sdelphij CC="" 2219170256Sdelphij else 2220170256Sdelphij case $cross_compiling:$ac_tool_warned in 2221170256Sdelphijyes:) 2222221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2223191930Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2224170256Sdelphijac_tool_warned=yes ;; 2225170256Sdelphijesac 2226170256Sdelphij CC=$ac_ct_CC 2227170256Sdelphij fi 2228128345Stjrelse 2229128345Stjr CC="$ac_cv_prog_CC" 2230128345Stjrfi 223160786Sps 2232128345Stjrif test -z "$CC"; then 2233170256Sdelphij if test -n "$ac_tool_prefix"; then 2234170256Sdelphij # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2235128345Stjrset dummy ${ac_tool_prefix}cc; ac_word=$2 2236221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2237191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2238221715Sdelphijif test "${ac_cv_prog_CC+set}" = set; then : 2239191930Sdelphij $as_echo_n "(cached) " >&6 224060786Spselse 224160786Sps if test -n "$CC"; then 224260786Sps ac_cv_prog_CC="$CC" # Let the user override the test. 224360786Spselse 2244128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245128345Stjrfor as_dir in $PATH 2246128345Stjrdo 2247128345Stjr IFS=$as_save_IFS 2248128345Stjr test -z "$as_dir" && as_dir=. 2249221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2250170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2251128345Stjr ac_cv_prog_CC="${ac_tool_prefix}cc" 2252221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2253128345Stjr break 2 2254128345Stjr fi 2255128345Stjrdone 2256221715Sdelphij done 2257170256SdelphijIFS=$as_save_IFS 2258128345Stjr 225960786Spsfi 226060786Spsfi 2261128345StjrCC=$ac_cv_prog_CC 226260786Spsif test -n "$CC"; then 2263221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2264191930Sdelphij$as_echo "$CC" >&6; } 226560786Spselse 2266221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2267191930Sdelphij$as_echo "no" >&6; } 226860786Spsfi 226960786Sps 2270170256Sdelphij 2271128345Stjr fi 2272128345Stjrfi 227360786Spsif test -z "$CC"; then 227460786Sps # Extract the first word of "cc", so it can be a program name with args. 227560786Spsset dummy cc; ac_word=$2 2276221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2277191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2278221715Sdelphijif test "${ac_cv_prog_CC+set}" = set; then : 2279191930Sdelphij $as_echo_n "(cached) " >&6 228060786Spselse 228160786Sps if test -n "$CC"; then 228260786Sps ac_cv_prog_CC="$CC" # Let the user override the test. 228360786Spselse 228460786Sps ac_prog_rejected=no 2285128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2286128345Stjrfor as_dir in $PATH 2287128345Stjrdo 2288128345Stjr IFS=$as_save_IFS 2289128345Stjr test -z "$as_dir" && as_dir=. 2290221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2291170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2292128345Stjr if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2293128345Stjr ac_prog_rejected=yes 2294128345Stjr continue 2295128345Stjr fi 2296128345Stjr ac_cv_prog_CC="cc" 2297221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2298128345Stjr break 2 2299128345Stjr fi 2300128345Stjrdone 2301221715Sdelphij done 2302170256SdelphijIFS=$as_save_IFS 2303128345Stjr 230460786Spsif test $ac_prog_rejected = yes; then 230560786Sps # We found a bogon in the path, so make sure we never use it. 230660786Sps set dummy $ac_cv_prog_CC 230760786Sps shift 2308128345Stjr if test $# != 0; then 230960786Sps # We chose a different compiler from the bogus one. 231060786Sps # However, it has the same basename, so the bogon will be chosen 231160786Sps # first if we set CC to just the basename; use the full file name. 231260786Sps shift 2313128345Stjr ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 231460786Sps fi 231560786Spsfi 231660786Spsfi 231760786Spsfi 2318128345StjrCC=$ac_cv_prog_CC 231960786Spsif test -n "$CC"; then 2320221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2321191930Sdelphij$as_echo "$CC" >&6; } 232260786Spselse 2323221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2324191930Sdelphij$as_echo "no" >&6; } 232560786Spsfi 232660786Sps 2327170256Sdelphij 2328128345Stjrfi 2329128345Stjrif test -z "$CC"; then 2330128345Stjr if test -n "$ac_tool_prefix"; then 2331170256Sdelphij for ac_prog in cl.exe 2332128345Stjr do 2333128345Stjr # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2334128345Stjrset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2335221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2336191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2337221715Sdelphijif test "${ac_cv_prog_CC+set}" = set; then : 2338191930Sdelphij $as_echo_n "(cached) " >&6 233989019Spselse 234089019Sps if test -n "$CC"; then 234189019Sps ac_cv_prog_CC="$CC" # Let the user override the test. 234289019Spselse 2343128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344128345Stjrfor as_dir in $PATH 2345128345Stjrdo 2346128345Stjr IFS=$as_save_IFS 2347128345Stjr test -z "$as_dir" && as_dir=. 2348221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2349170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2350128345Stjr ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2351221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2352128345Stjr break 2 2353128345Stjr fi 2354128345Stjrdone 2355221715Sdelphij done 2356170256SdelphijIFS=$as_save_IFS 2357128345Stjr 235889019Spsfi 235989019Spsfi 2360128345StjrCC=$ac_cv_prog_CC 236189019Spsif test -n "$CC"; then 2362221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2363191930Sdelphij$as_echo "$CC" >&6; } 236489019Spselse 2365221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2366191930Sdelphij$as_echo "no" >&6; } 236789019Spsfi 2368128345Stjr 2369170256Sdelphij 2370128345Stjr test -n "$CC" && break 2371128345Stjr done 2372128345Stjrfi 2373128345Stjrif test -z "$CC"; then 2374128345Stjr ac_ct_CC=$CC 2375170256Sdelphij for ac_prog in cl.exe 2376128345Stjrdo 2377128345Stjr # Extract the first word of "$ac_prog", so it can be a program name with args. 2378128345Stjrset dummy $ac_prog; ac_word=$2 2379221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2380191930Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2381221715Sdelphijif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2382191930Sdelphij $as_echo_n "(cached) " >&6 2383128345Stjrelse 2384128345Stjr if test -n "$ac_ct_CC"; then 2385128345Stjr ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2386128345Stjrelse 2387128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388128345Stjrfor as_dir in $PATH 2389128345Stjrdo 2390128345Stjr IFS=$as_save_IFS 2391128345Stjr test -z "$as_dir" && as_dir=. 2392221715Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2393170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2394128345Stjr ac_cv_prog_ac_ct_CC="$ac_prog" 2395221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2396128345Stjr break 2 239789019Sps fi 2398128345Stjrdone 2399221715Sdelphij done 2400170256SdelphijIFS=$as_save_IFS 2401128345Stjr 240260786Spsfi 2403128345Stjrfi 2404128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC 2405128345Stjrif test -n "$ac_ct_CC"; then 2406221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2407191930Sdelphij$as_echo "$ac_ct_CC" >&6; } 2408128345Stjrelse 2409221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2410191930Sdelphij$as_echo "no" >&6; } 2411128345Stjrfi 241260786Sps 2413170256Sdelphij 2414128345Stjr test -n "$ac_ct_CC" && break 2415128345Stjrdone 241660786Sps 2417170256Sdelphij if test "x$ac_ct_CC" = x; then 2418170256Sdelphij CC="" 2419170256Sdelphij else 2420170256Sdelphij case $cross_compiling:$ac_tool_warned in 2421170256Sdelphijyes:) 2422221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2423191930Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2424170256Sdelphijac_tool_warned=yes ;; 2425170256Sdelphijesac 2426170256Sdelphij CC=$ac_ct_CC 2427170256Sdelphij fi 2428128345Stjrfi 242960786Sps 2430128345Stjrfi 243189019Sps 2432128345Stjr 2433221715Sdelphijtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2434191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2435221715Sdelphijas_fn_error $? "no acceptable C compiler found in \$PATH 2436221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 2437128345Stjr 2438128345Stjr# Provide some information about the compiler. 2439221715Sdelphij$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2440191930Sdelphijset X $ac_compile 2441191930Sdelphijac_compiler=$2 2442221715Sdelphijfor ac_option in --version -v -V -qversion; do 2443221715Sdelphij { { ac_try="$ac_compiler $ac_option >&5" 2444170256Sdelphijcase "(($ac_try" in 2445170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2446170256Sdelphij *) ac_try_echo=$ac_try;; 2447170256Sdelphijesac 2448221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2449221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2450221715Sdelphij (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2451128345Stjr ac_status=$? 2452221715Sdelphij if test -s conftest.err; then 2453221715Sdelphij sed '10a\ 2454221715Sdelphij... rest of stderr output deleted ... 2455221715Sdelphij 10q' conftest.err >conftest.er1 2456221715Sdelphij cat conftest.er1 >&5 2457221715Sdelphij fi 2458221715Sdelphij rm -f conftest.er1 conftest.err 2459221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2460221715Sdelphij test $ac_status = 0; } 2461221715Sdelphijdone 2462128345Stjr 2463221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2464170256Sdelphij/* end confdefs.h. */ 246589019Sps 2466128345Stjrint 2467128345Stjrmain () 2468128345Stjr{ 2469128345Stjr 2470128345Stjr ; 2471128345Stjr return 0; 2472128345Stjr} 2473128345Stjr_ACEOF 2474128345Stjrac_clean_files_save=$ac_clean_files 2475191930Sdelphijac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2476128345Stjr# Try to create an executable without -o first, disregard a.out. 2477128345Stjr# It will help us diagnose broken compilers, and finding out an intuition 2478128345Stjr# of exeext. 2479221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2480221715Sdelphij$as_echo_n "checking whether the C compiler works... " >&6; } 2481191930Sdelphijac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2482191930Sdelphij 2483191930Sdelphij# The possible output files: 2484191930Sdelphijac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2485191930Sdelphij 2486170256Sdelphijac_rmfiles= 2487170256Sdelphijfor ac_file in $ac_files 2488170256Sdelphijdo 2489170256Sdelphij case $ac_file in 2490191930Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2491170256Sdelphij * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2492170256Sdelphij esac 2493170256Sdelphijdone 2494170256Sdelphijrm -f $ac_rmfiles 2495170256Sdelphij 2496221715Sdelphijif { { ac_try="$ac_link_default" 2497170256Sdelphijcase "(($ac_try" in 2498170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499170256Sdelphij *) ac_try_echo=$ac_try;; 2500170256Sdelphijesac 2501221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2502221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2503170256Sdelphij (eval "$ac_link_default") 2>&5 2504128345Stjr ac_status=$? 2505221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2506221715Sdelphij test $ac_status = 0; }; then : 2507170256Sdelphij # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2508170256Sdelphij# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2509170256Sdelphij# in a Makefile. We should not override ac_cv_exeext if it was cached, 2510170256Sdelphij# so that the user can short-circuit this test for compilers unknown to 2511170256Sdelphij# Autoconf. 2512170256Sdelphijfor ac_file in $ac_files '' 2513170256Sdelphijdo 2514128345Stjr test -f "$ac_file" || continue 2515128345Stjr case $ac_file in 2516191930Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2517170256Sdelphij ;; 2518170256Sdelphij [ab].out ) 2519170256Sdelphij # We found the default executable, but exeext='' is most 2520170256Sdelphij # certainly right. 2521170256Sdelphij break;; 2522170256Sdelphij *.* ) 2523221715Sdelphij if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2524170256Sdelphij then :; else 2525170256Sdelphij ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2526170256Sdelphij fi 2527170256Sdelphij # We set ac_cv_exeext here because the later test for it is not 2528170256Sdelphij # safe: cross compilers may not add the suffix if given an `-o' 2529170256Sdelphij # argument, so we may need to know it at that point already. 2530170256Sdelphij # Even if this section looks crufty: it has the advantage of 2531170256Sdelphij # actually working. 2532170256Sdelphij break;; 2533170256Sdelphij * ) 2534170256Sdelphij break;; 2535128345Stjr esac 2536128345Stjrdone 2537170256Sdelphijtest "$ac_cv_exeext" = no && ac_cv_exeext= 2538170256Sdelphij 2539128345Stjrelse 2540170256Sdelphij ac_file='' 2541170256Sdelphijfi 2542221715Sdelphijif test -z "$ac_file"; then : 2543221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2544221715Sdelphij$as_echo "no" >&6; } 2545221715Sdelphij$as_echo "$as_me: failed program was:" >&5 2546170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2547170256Sdelphij 2548221715Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2549191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2550221715Sdelphijas_fn_error 77 "C compiler cannot create executables 2551221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 2552221715Sdelphijelse 2553221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2554221715Sdelphij$as_echo "yes" >&6; } 2555128345Stjrfi 2556221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2557221715Sdelphij$as_echo_n "checking for C compiler default output file name... " >&6; } 2558221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2559221715Sdelphij$as_echo "$ac_file" >&6; } 2560128345Stjrac_exeext=$ac_cv_exeext 2561128345Stjr 2562191930Sdelphijrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2563128345Stjrac_clean_files=$ac_clean_files_save 2564221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2565191930Sdelphij$as_echo_n "checking for suffix of executables... " >&6; } 2566221715Sdelphijif { { ac_try="$ac_link" 2567170256Sdelphijcase "(($ac_try" in 2568170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2569170256Sdelphij *) ac_try_echo=$ac_try;; 2570170256Sdelphijesac 2571221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2572221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2573170256Sdelphij (eval "$ac_link") 2>&5 2574128345Stjr ac_status=$? 2575221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2576221715Sdelphij test $ac_status = 0; }; then : 2577128345Stjr # If both `conftest.exe' and `conftest' are `present' (well, observable) 2578128345Stjr# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2579128345Stjr# work properly (i.e., refer to `conftest.exe'), while it won't with 2580128345Stjr# `rm'. 2581128345Stjrfor ac_file in conftest.exe conftest conftest.*; do 2582128345Stjr test -f "$ac_file" || continue 2583128345Stjr case $ac_file in 2584191930Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2585128345Stjr *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2586170256Sdelphij break;; 2587128345Stjr * ) break;; 2588128345Stjr esac 2589128345Stjrdone 2590128345Stjrelse 2591221715Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2592191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2593221715Sdelphijas_fn_error $? "cannot compute suffix of executables: cannot compile and link 2594221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 259560786Spsfi 2596221715Sdelphijrm -f conftest conftest$ac_cv_exeext 2597221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2598191930Sdelphij$as_echo "$ac_cv_exeext" >&6; } 2599128345Stjr 2600128345Stjrrm -f conftest.$ac_ext 2601128345StjrEXEEXT=$ac_cv_exeext 2602128345Stjrac_exeext=$EXEEXT 2603221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604221715Sdelphij/* end confdefs.h. */ 2605221715Sdelphij#include <stdio.h> 2606221715Sdelphijint 2607221715Sdelphijmain () 2608221715Sdelphij{ 2609221715SdelphijFILE *f = fopen ("conftest.out", "w"); 2610221715Sdelphij return ferror (f) || fclose (f) != 0; 2611221715Sdelphij 2612221715Sdelphij ; 2613221715Sdelphij return 0; 2614221715Sdelphij} 2615221715Sdelphij_ACEOF 2616221715Sdelphijac_clean_files="$ac_clean_files conftest.out" 2617221715Sdelphij# Check that the compiler produces executables we can run. If not, either 2618221715Sdelphij# the compiler is broken, or we cross compile. 2619221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2620221715Sdelphij$as_echo_n "checking whether we are cross compiling... " >&6; } 2621221715Sdelphijif test "$cross_compiling" != yes; then 2622221715Sdelphij { { ac_try="$ac_link" 2623221715Sdelphijcase "(($ac_try" in 2624221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2625221715Sdelphij *) ac_try_echo=$ac_try;; 2626221715Sdelphijesac 2627221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2628221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2629221715Sdelphij (eval "$ac_link") 2>&5 2630221715Sdelphij ac_status=$? 2631221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2632221715Sdelphij test $ac_status = 0; } 2633221715Sdelphij if { ac_try='./conftest$ac_cv_exeext' 2634221715Sdelphij { { case "(($ac_try" in 2635221715Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2636221715Sdelphij *) ac_try_echo=$ac_try;; 2637221715Sdelphijesac 2638221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2639221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2640221715Sdelphij (eval "$ac_try") 2>&5 2641221715Sdelphij ac_status=$? 2642221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2643221715Sdelphij test $ac_status = 0; }; }; then 2644221715Sdelphij cross_compiling=no 2645221715Sdelphij else 2646221715Sdelphij if test "$cross_compiling" = maybe; then 2647221715Sdelphij cross_compiling=yes 2648221715Sdelphij else 2649221715Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2650221715Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2651221715Sdelphijas_fn_error $? "cannot run C compiled programs. 2652221715SdelphijIf you meant to cross compile, use \`--host'. 2653221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 2654221715Sdelphij fi 2655221715Sdelphij fi 2656221715Sdelphijfi 2657221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2658221715Sdelphij$as_echo "$cross_compiling" >&6; } 2659221715Sdelphij 2660221715Sdelphijrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2661221715Sdelphijac_clean_files=$ac_clean_files_save 2662221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2663191930Sdelphij$as_echo_n "checking for suffix of object files... " >&6; } 2664221715Sdelphijif test "${ac_cv_objext+set}" = set; then : 2665191930Sdelphij $as_echo_n "(cached) " >&6 266660786Spselse 2667221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2668170256Sdelphij/* end confdefs.h. */ 2669128345Stjr 2670128345Stjrint 2671128345Stjrmain () 2672128345Stjr{ 2673128345Stjr 2674128345Stjr ; 2675128345Stjr return 0; 2676128345Stjr} 2677128345Stjr_ACEOF 2678128345Stjrrm -f conftest.o conftest.obj 2679221715Sdelphijif { { ac_try="$ac_compile" 2680170256Sdelphijcase "(($ac_try" in 2681170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2682170256Sdelphij *) ac_try_echo=$ac_try;; 2683170256Sdelphijesac 2684221715Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2685221715Sdelphij$as_echo "$ac_try_echo"; } >&5 2686170256Sdelphij (eval "$ac_compile") 2>&5 2687128345Stjr ac_status=$? 2688221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2689221715Sdelphij test $ac_status = 0; }; then : 2690170256Sdelphij for ac_file in conftest.o conftest.obj conftest.*; do 2691170256Sdelphij test -f "$ac_file" || continue; 2692128345Stjr case $ac_file in 2693191930Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2694128345Stjr *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2695128345Stjr break;; 2696128345Stjr esac 2697128345Stjrdone 269860786Spselse 2699191930Sdelphij $as_echo "$as_me: failed program was:" >&5 2700170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2701170256Sdelphij 2702221715Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2703191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2704221715Sdelphijas_fn_error $? "cannot compute suffix of object files: cannot compile 2705221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 270660786Spsfi 2707128345Stjrrm -f conftest.$ac_cv_objext conftest.$ac_ext 270860786Spsfi 2709221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2710191930Sdelphij$as_echo "$ac_cv_objext" >&6; } 2711128345StjrOBJEXT=$ac_cv_objext 2712128345Stjrac_objext=$OBJEXT 2713221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2714191930Sdelphij$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2715221715Sdelphijif test "${ac_cv_c_compiler_gnu+set}" = set; then : 2716191930Sdelphij $as_echo_n "(cached) " >&6 2717128345Stjrelse 2718221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2719170256Sdelphij/* end confdefs.h. */ 272060786Sps 2721128345Stjrint 2722128345Stjrmain () 2723128345Stjr{ 2724128345Stjr#ifndef __GNUC__ 2725128345Stjr choke me 2726128345Stjr#endif 272760786Sps 2728128345Stjr ; 2729128345Stjr return 0; 2730128345Stjr} 2731128345Stjr_ACEOF 2732221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 2733128345Stjr ac_compiler_gnu=yes 273489019Spselse 2735221715Sdelphij ac_compiler_gnu=no 273689019Spsfi 2737170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2738128345Stjrac_cv_c_compiler_gnu=$ac_compiler_gnu 273989019Sps 2740128345Stjrfi 2741221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2742191930Sdelphij$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2743191930Sdelphijif test $ac_compiler_gnu = yes; then 2744191930Sdelphij GCC=yes 2745191930Sdelphijelse 2746191930Sdelphij GCC= 2747191930Sdelphijfi 2748128345Stjrac_test_CFLAGS=${CFLAGS+set} 2749128345Stjrac_save_CFLAGS=$CFLAGS 2750221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2751191930Sdelphij$as_echo_n "checking whether $CC accepts -g... " >&6; } 2752221715Sdelphijif test "${ac_cv_prog_cc_g+set}" = set; then : 2753191930Sdelphij $as_echo_n "(cached) " >&6 275460786Spselse 2755170256Sdelphij ac_save_c_werror_flag=$ac_c_werror_flag 2756170256Sdelphij ac_c_werror_flag=yes 2757170256Sdelphij ac_cv_prog_cc_g=no 2758170256Sdelphij CFLAGS="-g" 2759221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2760170256Sdelphij/* end confdefs.h. */ 2761128345Stjr 2762128345Stjrint 2763128345Stjrmain () 2764128345Stjr{ 2765128345Stjr 2766128345Stjr ; 2767128345Stjr return 0; 2768128345Stjr} 2769128345Stjr_ACEOF 2770221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 2771170256Sdelphij ac_cv_prog_cc_g=yes 2772170256Sdelphijelse 2773221715Sdelphij CFLAGS="" 2774221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2775170256Sdelphij/* end confdefs.h. */ 2776170256Sdelphij 2777170256Sdelphijint 2778170256Sdelphijmain () 2779170256Sdelphij{ 2780170256Sdelphij 2781170256Sdelphij ; 2782170256Sdelphij return 0; 2783170256Sdelphij} 2784170256Sdelphij_ACEOF 2785221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 2786221715Sdelphij 2787170256Sdelphijelse 2788221715Sdelphij ac_c_werror_flag=$ac_save_c_werror_flag 2789170256Sdelphij CFLAGS="-g" 2790221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791170256Sdelphij/* end confdefs.h. */ 2792170256Sdelphij 2793170256Sdelphijint 2794170256Sdelphijmain () 2795170256Sdelphij{ 2796170256Sdelphij 2797170256Sdelphij ; 2798170256Sdelphij return 0; 2799170256Sdelphij} 2800170256Sdelphij_ACEOF 2801221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 280260786Sps ac_cv_prog_cc_g=yes 280360786Spsfi 2804170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 280560786Spsfi 2806170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2807170256Sdelphijfi 2808170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2809170256Sdelphij ac_c_werror_flag=$ac_save_c_werror_flag 2810170256Sdelphijfi 2811221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2812191930Sdelphij$as_echo "$ac_cv_prog_cc_g" >&6; } 281389019Spsif test "$ac_test_CFLAGS" = set; then 2814128345Stjr CFLAGS=$ac_save_CFLAGS 281589019Spselif test $ac_cv_prog_cc_g = yes; then 281689019Sps if test "$GCC" = yes; then 281760786Sps CFLAGS="-g -O2" 281860786Sps else 281989019Sps CFLAGS="-g" 282089019Sps fi 282189019Spselse 282289019Sps if test "$GCC" = yes; then 282360786Sps CFLAGS="-O2" 282489019Sps else 282589019Sps CFLAGS= 282660786Sps fi 282760786Spsfi 2828221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2829191930Sdelphij$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2830221715Sdelphijif test "${ac_cv_prog_cc_c89+set}" = set; then : 2831191930Sdelphij $as_echo_n "(cached) " >&6 2832128345Stjrelse 2833170256Sdelphij ac_cv_prog_cc_c89=no 2834128345Stjrac_save_CC=$CC 2835221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2836170256Sdelphij/* end confdefs.h. */ 2837128345Stjr#include <stdarg.h> 2838128345Stjr#include <stdio.h> 2839128345Stjr#include <sys/types.h> 2840128345Stjr#include <sys/stat.h> 2841128345Stjr/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2842128345Stjrstruct buf { int x; }; 2843128345StjrFILE * (*rcsopen) (struct buf *, struct stat *, int); 2844128345Stjrstatic char *e (p, i) 2845128345Stjr char **p; 2846128345Stjr int i; 2847128345Stjr{ 2848128345Stjr return p[i]; 2849128345Stjr} 2850128345Stjrstatic char *f (char * (*g) (char **, int), char **p, ...) 2851128345Stjr{ 2852128345Stjr char *s; 2853128345Stjr va_list v; 2854128345Stjr va_start (v,p); 2855128345Stjr s = g (p, va_arg (v,int)); 2856128345Stjr va_end (v); 2857128345Stjr return s; 2858128345Stjr} 2859170256Sdelphij 2860170256Sdelphij/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2861170256Sdelphij function prototypes and stuff, but not '\xHH' hex character constants. 2862170256Sdelphij These don't provoke an error unfortunately, instead are silently treated 2863170256Sdelphij as 'x'. The following induces an error, until -std is added to get 2864170256Sdelphij proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2865170256Sdelphij array size at least. It's necessary to write '\x00'==0 to get something 2866170256Sdelphij that's true only with -std. */ 2867170256Sdelphijint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2868170256Sdelphij 2869170256Sdelphij/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2870170256Sdelphij inside strings and character constants. */ 2871170256Sdelphij#define FOO(x) 'x' 2872170256Sdelphijint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2873170256Sdelphij 2874128345Stjrint test (int i, double x); 2875128345Stjrstruct s1 {int (*f) (int a);}; 2876128345Stjrstruct s2 {int (*f) (double a);}; 2877128345Stjrint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2878128345Stjrint argc; 2879128345Stjrchar **argv; 2880128345Stjrint 2881128345Stjrmain () 2882128345Stjr{ 2883128345Stjrreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2884128345Stjr ; 2885128345Stjr return 0; 2886128345Stjr} 2887128345Stjr_ACEOF 2888170256Sdelphijfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2889170256Sdelphij -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2890128345Stjrdo 2891128345Stjr CC="$ac_save_CC $ac_arg" 2892221715Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 2893170256Sdelphij ac_cv_prog_cc_c89=$ac_arg 2894128345Stjrfi 2895170256Sdelphijrm -f core conftest.err conftest.$ac_objext 2896170256Sdelphij test "x$ac_cv_prog_cc_c89" != "xno" && break 2897128345Stjrdone 2898170256Sdelphijrm -f conftest.$ac_ext 2899128345StjrCC=$ac_save_CC 290060786Sps 2901128345Stjrfi 2902170256Sdelphij# AC_CACHE_VAL 2903170256Sdelphijcase "x$ac_cv_prog_cc_c89" in 2904170256Sdelphij x) 2905221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2906191930Sdelphij$as_echo "none needed" >&6; } ;; 2907170256Sdelphij xno) 2908221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2909191930Sdelphij$as_echo "unsupported" >&6; } ;; 2910128345Stjr *) 2911170256Sdelphij CC="$CC $ac_cv_prog_cc_c89" 2912221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2913191930Sdelphij$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2914128345Stjresac 2915221715Sdelphijif test "x$ac_cv_prog_cc_c89" != xno; then : 2916128345Stjr 2917221715Sdelphijfi 291860786Sps 2919128345Stjrac_ext=c 2920128345Stjrac_cpp='$CPP $CPPFLAGS' 2921128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2922128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2923128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2924128345Stjr 2925128345Stjr 2926221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 2927191930Sdelphij$as_echo_n "checking for library containing strerror... " >&6; } 2928221715Sdelphijif test "${ac_cv_search_strerror+set}" = set; then : 2929191930Sdelphij $as_echo_n "(cached) " >&6 2930128345Stjrelse 2931128345Stjr ac_func_search_save_LIBS=$LIBS 2932221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2933170256Sdelphij/* end confdefs.h. */ 2934128345Stjr 2935170256Sdelphij/* Override any GCC internal prototype to avoid an error. 2936170256Sdelphij Use char because int might match the return type of a GCC 2937170256Sdelphij builtin and then its argument prototype would still apply. */ 2938128345Stjr#ifdef __cplusplus 2939128345Stjrextern "C" 2940128345Stjr#endif 2941128345Stjrchar strerror (); 2942128345Stjrint 2943128345Stjrmain () 2944128345Stjr{ 2945170256Sdelphijreturn strerror (); 2946128345Stjr ; 2947128345Stjr return 0; 2948128345Stjr} 2949128345Stjr_ACEOF 2950170256Sdelphijfor ac_lib in '' cposix; do 2951170256Sdelphij if test -z "$ac_lib"; then 2952170256Sdelphij ac_res="none required" 2953170256Sdelphij else 2954170256Sdelphij ac_res=-l$ac_lib 2955170256Sdelphij LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2956170256Sdelphij fi 2957221715Sdelphij if ac_fn_c_try_link "$LINENO"; then : 2958170256Sdelphij ac_cv_search_strerror=$ac_res 2959128345Stjrfi 2960221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 2961221715Sdelphij conftest$ac_exeext 2962221715Sdelphij if test "${ac_cv_search_strerror+set}" = set; then : 2963170256Sdelphij break 2964170256Sdelphijfi 2965170256Sdelphijdone 2966221715Sdelphijif test "${ac_cv_search_strerror+set}" = set; then : 2967221715Sdelphij 2968128345Stjrelse 2969170256Sdelphij ac_cv_search_strerror=no 2970128345Stjrfi 2971170256Sdelphijrm conftest.$ac_ext 2972128345StjrLIBS=$ac_func_search_save_LIBS 2973128345Stjrfi 2974221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 2975191930Sdelphij$as_echo "$ac_cv_search_strerror" >&6; } 2976170256Sdelphijac_res=$ac_cv_search_strerror 2977221715Sdelphijif test "$ac_res" != no; then : 2978170256Sdelphij test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 2979128345Stjr 2980128345Stjrfi 2981128345Stjr 2982128345Stjrac_ext=c 2983128345Stjrac_cpp='$CPP $CPPFLAGS' 2984128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2985128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2986128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2987221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2988191930Sdelphij$as_echo_n "checking how to run the C preprocessor... " >&6; } 298960786Sps# On Suns, sometimes $CPP names a directory. 299060786Spsif test -n "$CPP" && test -d "$CPP"; then 299160786Sps CPP= 299260786Spsfi 299360786Spsif test -z "$CPP"; then 2994221715Sdelphij if test "${ac_cv_prog_CPP+set}" = set; then : 2995191930Sdelphij $as_echo_n "(cached) " >&6 299660786Spselse 2997128345Stjr # Double quotes because CPP needs to be expanded 2998128345Stjr for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2999128345Stjr do 3000128345Stjr ac_preproc_ok=false 3001128345Stjrfor ac_c_preproc_warn_flag in '' yes 3002128345Stjrdo 3003128345Stjr # Use a header file that comes with gcc, so configuring glibc 3004128345Stjr # with a fresh cross-compiler works. 3005170256Sdelphij # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3006170256Sdelphij # <limits.h> exists even on freestanding compilers. 300760786Sps # On the NeXT, cc -E runs the code through the compiler's parser, 3008128345Stjr # not just through cpp. "Syntax error" is here to catch this case. 3009221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010170256Sdelphij/* end confdefs.h. */ 3011170256Sdelphij#ifdef __STDC__ 3012170256Sdelphij# include <limits.h> 3013170256Sdelphij#else 3014170256Sdelphij# include <assert.h> 3015170256Sdelphij#endif 3016170256Sdelphij Syntax error 3017170256Sdelphij_ACEOF 3018221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3019221715Sdelphij 302060786Spselse 3021128345Stjr # Broken: fails on valid input. 3022128345Stjrcontinue 3023128345Stjrfi 3024221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3025170256Sdelphij 3026170256Sdelphij # OK, works on sane cases. Now check whether nonexistent headers 3027128345Stjr # can be detected and how. 3028221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029170256Sdelphij/* end confdefs.h. */ 3030128345Stjr#include <ac_nonexistent.h> 3031128345Stjr_ACEOF 3032221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3033128345Stjr # Broken: success on invalid input. 3034128345Stjrcontinue 3035128345Stjrelse 3036128345Stjr # Passes both tests. 3037128345Stjrac_preproc_ok=: 3038128345Stjrbreak 3039128345Stjrfi 3040221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3041170256Sdelphij 3042128345Stjrdone 3043128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3044221715Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext 3045221715Sdelphijif $ac_preproc_ok; then : 3046128345Stjr break 3047128345Stjrfi 3048128345Stjr 3049128345Stjr done 3050128345Stjr ac_cv_prog_CPP=$CPP 3051128345Stjr 3052128345Stjrfi 3053128345Stjr CPP=$ac_cv_prog_CPP 3054128345Stjrelse 3055128345Stjr ac_cv_prog_CPP=$CPP 3056128345Stjrfi 3057221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3058191930Sdelphij$as_echo "$CPP" >&6; } 3059128345Stjrac_preproc_ok=false 3060128345Stjrfor ac_c_preproc_warn_flag in '' yes 3061128345Stjrdo 3062128345Stjr # Use a header file that comes with gcc, so configuring glibc 3063128345Stjr # with a fresh cross-compiler works. 3064170256Sdelphij # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3065170256Sdelphij # <limits.h> exists even on freestanding compilers. 3066128345Stjr # On the NeXT, cc -E runs the code through the compiler's parser, 3067128345Stjr # not just through cpp. "Syntax error" is here to catch this case. 3068221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3069170256Sdelphij/* end confdefs.h. */ 3070170256Sdelphij#ifdef __STDC__ 3071170256Sdelphij# include <limits.h> 3072170256Sdelphij#else 3073170256Sdelphij# include <assert.h> 3074170256Sdelphij#endif 3075170256Sdelphij Syntax error 3076170256Sdelphij_ACEOF 3077221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3078221715Sdelphij 307989019Spselse 3080128345Stjr # Broken: fails on valid input. 3081128345Stjrcontinue 308260786Spsfi 3083221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3084170256Sdelphij 3085170256Sdelphij # OK, works on sane cases. Now check whether nonexistent headers 3086128345Stjr # can be detected and how. 3087221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3088170256Sdelphij/* end confdefs.h. */ 3089128345Stjr#include <ac_nonexistent.h> 3090128345Stjr_ACEOF 3091221715Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3092128345Stjr # Broken: success on invalid input. 3093128345Stjrcontinue 3094128345Stjrelse 3095128345Stjr # Passes both tests. 3096128345Stjrac_preproc_ok=: 3097128345Stjrbreak 309889019Spsfi 3099221715Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3100170256Sdelphij 3101128345Stjrdone 3102128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3103221715Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext 3104221715Sdelphijif $ac_preproc_ok; then : 3105221715Sdelphij 3106128345Stjrelse 3107221715Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108191930Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109221715Sdelphijas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3110221715SdelphijSee \`config.log' for more details" "$LINENO" 5 ; } 311160786Spsfi 3112128345Stjr 3113128345Stjrac_ext=c 3114128345Stjrac_cpp='$CPP $CPPFLAGS' 3115128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3116128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3117128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 3118128345Stjr 3119128345Stjr 3120221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3121191930Sdelphij$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3122221715Sdelphijif test "${ac_cv_path_GREP+set}" = set; then : 3123191930Sdelphij $as_echo_n "(cached) " >&6 312460786Spselse 3125191930Sdelphij if test -z "$GREP"; then 3126170256Sdelphij ac_path_GREP_found=false 3127191930Sdelphij # Loop through the user's path and test for each of PROGNAME-LIST 3128191930Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3130170256Sdelphijdo 3131170256Sdelphij IFS=$as_save_IFS 3132170256Sdelphij test -z "$as_dir" && as_dir=. 3133221715Sdelphij for ac_prog in grep ggrep; do 3134191930Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 3135191930Sdelphij ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3136191930Sdelphij { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3137191930Sdelphij# Check for GNU ac_path_GREP and select it if it is found. 3138170256Sdelphij # Check for GNU $ac_path_GREP 3139170256Sdelphijcase `"$ac_path_GREP" --version 2>&1` in 3140170256Sdelphij*GNU*) 3141170256Sdelphij ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3142170256Sdelphij*) 3143170256Sdelphij ac_count=0 3144191930Sdelphij $as_echo_n 0123456789 >"conftest.in" 3145170256Sdelphij while : 3146170256Sdelphij do 3147170256Sdelphij cat "conftest.in" "conftest.in" >"conftest.tmp" 3148170256Sdelphij mv "conftest.tmp" "conftest.in" 3149170256Sdelphij cp "conftest.in" "conftest.nl" 3150191930Sdelphij $as_echo 'GREP' >> "conftest.nl" 3151170256Sdelphij "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3152170256Sdelphij diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3153221715Sdelphij as_fn_arith $ac_count + 1 && ac_count=$as_val 3154170256Sdelphij if test $ac_count -gt ${ac_path_GREP_max-0}; then 3155170256Sdelphij # Best one so far, save it but keep looking for a better one 3156170256Sdelphij ac_cv_path_GREP="$ac_path_GREP" 3157170256Sdelphij ac_path_GREP_max=$ac_count 3158128345Stjr fi 3159170256Sdelphij # 10*(2^10) chars as input seems more than enough 3160170256Sdelphij test $ac_count -gt 10 && break 3161170256Sdelphij done 3162170256Sdelphij rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3163170256Sdelphijesac 3164170256Sdelphij 3165191930Sdelphij $ac_path_GREP_found && break 3 3166191930Sdelphij done 3167170256Sdelphij done 3168221715Sdelphij done 3169170256SdelphijIFS=$as_save_IFS 3170191930Sdelphij if test -z "$ac_cv_path_GREP"; then 3171221715Sdelphij as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3172191930Sdelphij fi 3173170256Sdelphijelse 3174170256Sdelphij ac_cv_path_GREP=$GREP 3175170256Sdelphijfi 3176170256Sdelphij 3177170256Sdelphijfi 3178221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3179191930Sdelphij$as_echo "$ac_cv_path_GREP" >&6; } 3180170256Sdelphij GREP="$ac_cv_path_GREP" 3181170256Sdelphij 3182170256Sdelphij 3183221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3184191930Sdelphij$as_echo_n "checking for egrep... " >&6; } 3185221715Sdelphijif test "${ac_cv_path_EGREP+set}" = set; then : 3186191930Sdelphij $as_echo_n "(cached) " >&6 3187170256Sdelphijelse 3188170256Sdelphij if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3189170256Sdelphij then ac_cv_path_EGREP="$GREP -E" 3190170256Sdelphij else 3191191930Sdelphij if test -z "$EGREP"; then 3192170256Sdelphij ac_path_EGREP_found=false 3193191930Sdelphij # Loop through the user's path and test for each of PROGNAME-LIST 3194191930Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3196170256Sdelphijdo 3197170256Sdelphij IFS=$as_save_IFS 3198170256Sdelphij test -z "$as_dir" && as_dir=. 3199221715Sdelphij for ac_prog in egrep; do 3200191930Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 3201191930Sdelphij ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3202191930Sdelphij { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3203191930Sdelphij# Check for GNU ac_path_EGREP and select it if it is found. 3204170256Sdelphij # Check for GNU $ac_path_EGREP 3205170256Sdelphijcase `"$ac_path_EGREP" --version 2>&1` in 3206170256Sdelphij*GNU*) 3207170256Sdelphij ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3208170256Sdelphij*) 3209170256Sdelphij ac_count=0 3210191930Sdelphij $as_echo_n 0123456789 >"conftest.in" 3211170256Sdelphij while : 3212170256Sdelphij do 3213170256Sdelphij cat "conftest.in" "conftest.in" >"conftest.tmp" 3214170256Sdelphij mv "conftest.tmp" "conftest.in" 3215170256Sdelphij cp "conftest.in" "conftest.nl" 3216191930Sdelphij $as_echo 'EGREP' >> "conftest.nl" 3217170256Sdelphij "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3218170256Sdelphij diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3219221715Sdelphij as_fn_arith $ac_count + 1 && ac_count=$as_val 3220170256Sdelphij if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3221170256Sdelphij # Best one so far, save it but keep looking for a better one 3222170256Sdelphij ac_cv_path_EGREP="$ac_path_EGREP" 3223170256Sdelphij ac_path_EGREP_max=$ac_count 3224170256Sdelphij fi 3225170256Sdelphij # 10*(2^10) chars as input seems more than enough 3226170256Sdelphij test $ac_count -gt 10 && break 3227170256Sdelphij done 3228170256Sdelphij rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3229170256Sdelphijesac 3230170256Sdelphij 3231191930Sdelphij $ac_path_EGREP_found && break 3 3232191930Sdelphij done 3233170256Sdelphij done 3234221715Sdelphij done 3235170256SdelphijIFS=$as_save_IFS 3236191930Sdelphij if test -z "$ac_cv_path_EGREP"; then 3237221715Sdelphij as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3238191930Sdelphij fi 3239170256Sdelphijelse 3240170256Sdelphij ac_cv_path_EGREP=$EGREP 3241170256Sdelphijfi 3242170256Sdelphij 3243170256Sdelphij fi 3244170256Sdelphijfi 3245221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3246191930Sdelphij$as_echo "$ac_cv_path_EGREP" >&6; } 3247170256Sdelphij EGREP="$ac_cv_path_EGREP" 3248170256Sdelphij 3249170256Sdelphij 3250128345Stjrif test $ac_cv_c_compiler_gnu = yes; then 3251221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 3252191930Sdelphij$as_echo_n "checking whether $CC needs -traditional... " >&6; } 3253221715Sdelphijif test "${ac_cv_prog_gcc_traditional+set}" = set; then : 3254191930Sdelphij $as_echo_n "(cached) " >&6 325560786Spselse 325660786Sps ac_pattern="Autoconf.*'x'" 3257221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258170256Sdelphij/* end confdefs.h. */ 325960786Sps#include <sgtty.h> 326060786SpsAutoconf TIOCGETP 3261128345Stjr_ACEOF 326260786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3263221715Sdelphij $EGREP "$ac_pattern" >/dev/null 2>&1; then : 326460786Sps ac_cv_prog_gcc_traditional=yes 326560786Spselse 326660786Sps ac_cv_prog_gcc_traditional=no 326760786Spsfi 326860786Spsrm -f conftest* 326960786Sps 327060786Sps 327160786Sps if test $ac_cv_prog_gcc_traditional = no; then 3272221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273170256Sdelphij/* end confdefs.h. */ 327460786Sps#include <termio.h> 327560786SpsAutoconf TCGETA 3276128345Stjr_ACEOF 327760786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3278221715Sdelphij $EGREP "$ac_pattern" >/dev/null 2>&1; then : 327960786Sps ac_cv_prog_gcc_traditional=yes 328060786Spsfi 328160786Spsrm -f conftest* 328260786Sps 328360786Sps fi 328460786Spsfi 3285221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 3286191930Sdelphij$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 328760786Sps if test $ac_cv_prog_gcc_traditional = yes; then 328860786Sps CC="$CC -traditional" 328960786Sps fi 329060786Spsfi 329160786Sps 329260786Spsac_aux_dir= 3293170256Sdelphijfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3294170256Sdelphij if test -f "$ac_dir/install-sh"; then 329560786Sps ac_aux_dir=$ac_dir 329660786Sps ac_install_sh="$ac_aux_dir/install-sh -c" 329760786Sps break 3298170256Sdelphij elif test -f "$ac_dir/install.sh"; then 329960786Sps ac_aux_dir=$ac_dir 330060786Sps ac_install_sh="$ac_aux_dir/install.sh -c" 330160786Sps break 3302170256Sdelphij elif test -f "$ac_dir/shtool"; then 3303128345Stjr ac_aux_dir=$ac_dir 3304128345Stjr ac_install_sh="$ac_aux_dir/shtool install -c" 3305128345Stjr break 330660786Sps fi 330760786Spsdone 330860786Spsif test -z "$ac_aux_dir"; then 3309221715Sdelphij as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 331060786Spsfi 331160786Sps 3312170256Sdelphij# These three variables are undocumented and unsupported, 3313170256Sdelphij# and are intended to be withdrawn in a future Autoconf release. 3314170256Sdelphij# They can cause serious problems if a builder's source tree is in a directory 3315170256Sdelphij# whose full name contains unusual characters. 3316170256Sdelphijac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3317170256Sdelphijac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3318170256Sdelphijac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3319170256Sdelphij 3320170256Sdelphij 332160786Sps# Find a good install program. We prefer a C program (faster), 332260786Sps# so one script is as good as another. But avoid the broken or 332360786Sps# incompatible versions: 332460786Sps# SysV /etc/install, /usr/sbin/install 332560786Sps# SunOS /usr/etc/install 332660786Sps# IRIX /sbin/install 332760786Sps# AIX /bin/install 3328128345Stjr# AmigaOS /C/install, which installs bootblocks on floppy discs 332989019Sps# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 333060786Sps# AFS /usr/afsws/bin/install, which mishandles nonexistent args 333160786Sps# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3332170256Sdelphij# OS/2's system install, which has a completely different semantic 333360786Sps# ./install, which can be erroneously created by make from ./install.sh. 3334191930Sdelphij# Reject install programs that cannot install multiple files. 3335221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3336191930Sdelphij$as_echo_n "checking for a BSD-compatible install... " >&6; } 333760786Spsif test -z "$INSTALL"; then 3338221715Sdelphijif test "${ac_cv_path_install+set}" = set; then : 3339191930Sdelphij $as_echo_n "(cached) " >&6 334060786Spselse 3341128345Stjr as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342128345Stjrfor as_dir in $PATH 3343128345Stjrdo 3344128345Stjr IFS=$as_save_IFS 3345128345Stjr test -z "$as_dir" && as_dir=. 3346221715Sdelphij # Account for people who put trailing slashes in PATH elements. 3347221715Sdelphijcase $as_dir/ in #(( 3348221715Sdelphij ./ | .// | /[cC]/* | \ 3349128345Stjr /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3350221715Sdelphij ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3351128345Stjr /usr/ucb/* ) ;; 3352128345Stjr *) 3353128345Stjr # OSF1 and SCO ODT 3.0 have their own names for install. 3354128345Stjr # Don't use installbsd from OSF since it installs stuff as root 3355128345Stjr # by default. 3356128345Stjr for ac_prog in ginstall scoinst install; do 3357128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 3358170256Sdelphij if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3359170256Sdelphij if test $ac_prog = install && 3360170256Sdelphij grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3361170256Sdelphij # AIX install. It has an incompatible calling convention. 3362170256Sdelphij : 3363170256Sdelphij elif test $ac_prog = install && 3364170256Sdelphij grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3365170256Sdelphij # program-specific install script used by HP pwplus--don't use. 3366170256Sdelphij : 3367170256Sdelphij else 3368191930Sdelphij rm -rf conftest.one conftest.two conftest.dir 3369191930Sdelphij echo one > conftest.one 3370191930Sdelphij echo two > conftest.two 3371191930Sdelphij mkdir conftest.dir 3372191930Sdelphij if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3373191930Sdelphij test -s conftest.one && test -s conftest.two && 3374191930Sdelphij test -s conftest.dir/conftest.one && 3375191930Sdelphij test -s conftest.dir/conftest.two 3376191930Sdelphij then 3377191930Sdelphij ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3378191930Sdelphij break 3 3379191930Sdelphij fi 3380170256Sdelphij fi 3381170256Sdelphij fi 338260786Sps done 3383128345Stjr done 3384128345Stjr ;; 3385128345Stjresac 3386191930Sdelphij 3387221715Sdelphij done 3388170256SdelphijIFS=$as_save_IFS 338960786Sps 3390191930Sdelphijrm -rf conftest.one conftest.two conftest.dir 3391128345Stjr 339260786Spsfi 339360786Sps if test "${ac_cv_path_install+set}" = set; then 3394128345Stjr INSTALL=$ac_cv_path_install 339560786Sps else 3396170256Sdelphij # As a last resort, use the slow shell script. Don't cache a 3397170256Sdelphij # value for INSTALL within a source directory, because that will 339860786Sps # break other packages using the cache if that directory is 3399170256Sdelphij # removed, or if the value is a relative name. 3400128345Stjr INSTALL=$ac_install_sh 340160786Sps fi 340260786Spsfi 3403221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3404191930Sdelphij$as_echo "$INSTALL" >&6; } 340560786Sps 340660786Sps# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 340760786Sps# It thinks the first close brace ends the variable substitution. 340860786Spstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 340960786Sps 3410128345Stjrtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 341189019Sps 341260786Spstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 341360786Sps 341460786Sps 3415128345Stjr# Checks for compilation model. 3416170256Sdelphij# Check whether --enable-largefile was given. 3417221715Sdelphijif test "${enable_largefile+set}" = set; then : 3418170256Sdelphij enableval=$enable_largefile; 3419170256Sdelphijfi 342089019Sps 3421128345Stjrif test "$enable_largefile" != no; then 3422128345Stjr 3423221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3424191930Sdelphij$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3425221715Sdelphijif test "${ac_cv_sys_largefile_CC+set}" = set; then : 3426191930Sdelphij $as_echo_n "(cached) " >&6 342760786Spselse 3428128345Stjr ac_cv_sys_largefile_CC=no 3429128345Stjr if test "$GCC" != yes; then 3430128345Stjr ac_save_CC=$CC 3431128345Stjr while :; do 3432170256Sdelphij # IRIX 6.2 and later do not support large files by default, 3433170256Sdelphij # so use the C compiler's -n32 option if that helps. 3434221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435170256Sdelphij/* end confdefs.h. */ 3436128345Stjr#include <sys/types.h> 3437128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3438128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3439128345Stjr since some C++ compilers masquerading as C compilers 3440128345Stjr incorrectly reject 9223372036854775807. */ 3441128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3442128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3443128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3444128345Stjr ? 1 : -1]; 3445128345Stjrint 3446128345Stjrmain () 3447128345Stjr{ 344860786Sps 3449128345Stjr ; 3450128345Stjr return 0; 3451128345Stjr} 3452128345Stjr_ACEOF 3453221715Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 3454128345Stjr break 345560786Spsfi 3456170256Sdelphijrm -f core conftest.err conftest.$ac_objext 3457170256Sdelphij CC="$CC -n32" 3458221715Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 3459128345Stjr ac_cv_sys_largefile_CC=' -n32'; break 3460128345Stjrfi 3461170256Sdelphijrm -f core conftest.err conftest.$ac_objext 3462170256Sdelphij break 3463128345Stjr done 3464128345Stjr CC=$ac_save_CC 3465128345Stjr rm -f conftest.$ac_ext 3466128345Stjr fi 3467128345Stjrfi 3468221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3469191930Sdelphij$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3470128345Stjr if test "$ac_cv_sys_largefile_CC" != no; then 3471128345Stjr CC=$CC$ac_cv_sys_largefile_CC 3472128345Stjr fi 3473128345Stjr 3474221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3475191930Sdelphij$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3476221715Sdelphijif test "${ac_cv_sys_file_offset_bits+set}" = set; then : 3477191930Sdelphij $as_echo_n "(cached) " >&6 3478128345Stjrelse 3479128345Stjr while :; do 3480221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481170256Sdelphij/* end confdefs.h. */ 3482128345Stjr#include <sys/types.h> 3483128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3484128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3485128345Stjr since some C++ compilers masquerading as C compilers 3486128345Stjr incorrectly reject 9223372036854775807. */ 3487128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3488128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3489128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3490128345Stjr ? 1 : -1]; 3491128345Stjrint 3492128345Stjrmain () 3493128345Stjr{ 3494128345Stjr 3495128345Stjr ; 3496128345Stjr return 0; 3497128345Stjr} 3498128345Stjr_ACEOF 3499221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3500170256Sdelphij ac_cv_sys_file_offset_bits=no; break 3501128345Stjrfi 3502170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3503221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504170256Sdelphij/* end confdefs.h. */ 3505128345Stjr#define _FILE_OFFSET_BITS 64 3506128345Stjr#include <sys/types.h> 3507128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3508128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3509128345Stjr since some C++ compilers masquerading as C compilers 3510128345Stjr incorrectly reject 9223372036854775807. */ 3511128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3512128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3513128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3514128345Stjr ? 1 : -1]; 3515128345Stjrint 3516128345Stjrmain () 3517128345Stjr{ 3518128345Stjr 3519128345Stjr ; 3520128345Stjr return 0; 3521128345Stjr} 3522128345Stjr_ACEOF 3523221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3524128345Stjr ac_cv_sys_file_offset_bits=64; break 3525128345Stjrfi 3526170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3527170256Sdelphij ac_cv_sys_file_offset_bits=unknown 3528128345Stjr break 3529128345Stjrdone 3530128345Stjrfi 3531221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3532191930Sdelphij$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3533170256Sdelphijcase $ac_cv_sys_file_offset_bits in #( 3534170256Sdelphij no | unknown) ;; 3535170256Sdelphij *) 3536128345Stjrcat >>confdefs.h <<_ACEOF 3537128345Stjr#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3538128345Stjr_ACEOF 3539170256Sdelphij;; 3540170256Sdelphijesac 3541191930Sdelphijrm -rf conftest* 3542170256Sdelphij if test $ac_cv_sys_file_offset_bits = unknown; then 3543221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3544191930Sdelphij$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3545221715Sdelphijif test "${ac_cv_sys_large_files+set}" = set; then : 3546191930Sdelphij $as_echo_n "(cached) " >&6 3547128345Stjrelse 3548128345Stjr while :; do 3549221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550170256Sdelphij/* end confdefs.h. */ 3551128345Stjr#include <sys/types.h> 3552128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3553128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3554128345Stjr since some C++ compilers masquerading as C compilers 3555128345Stjr incorrectly reject 9223372036854775807. */ 3556128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3557128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3558128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3559128345Stjr ? 1 : -1]; 3560128345Stjrint 3561128345Stjrmain () 3562128345Stjr{ 356360786Sps 3564128345Stjr ; 3565128345Stjr return 0; 3566128345Stjr} 3567128345Stjr_ACEOF 3568221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3569170256Sdelphij ac_cv_sys_large_files=no; break 357060786Spsfi 3571170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573170256Sdelphij/* end confdefs.h. */ 3574128345Stjr#define _LARGE_FILES 1 3575128345Stjr#include <sys/types.h> 3576128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3577128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3578128345Stjr since some C++ compilers masquerading as C compilers 3579128345Stjr incorrectly reject 9223372036854775807. */ 3580128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3581128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3582128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3583128345Stjr ? 1 : -1]; 3584128345Stjrint 3585128345Stjrmain () 3586128345Stjr{ 3587128345Stjr 3588128345Stjr ; 3589128345Stjr return 0; 3590128345Stjr} 3591128345Stjr_ACEOF 3592221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3593128345Stjr ac_cv_sys_large_files=1; break 3594128345Stjrfi 3595170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3596170256Sdelphij ac_cv_sys_large_files=unknown 3597128345Stjr break 3598128345Stjrdone 3599128345Stjrfi 3600221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3601191930Sdelphij$as_echo "$ac_cv_sys_large_files" >&6; } 3602170256Sdelphijcase $ac_cv_sys_large_files in #( 3603170256Sdelphij no | unknown) ;; 3604170256Sdelphij *) 3605128345Stjrcat >>confdefs.h <<_ACEOF 3606128345Stjr#define _LARGE_FILES $ac_cv_sys_large_files 3607128345Stjr_ACEOF 3608170256Sdelphij;; 3609170256Sdelphijesac 3610191930Sdelphijrm -rf conftest* 3611170256Sdelphij fi 3612128345Stjrfi 3613128345Stjr 3614128345Stjr 3615128345Stjr# Checks for general libraries. 3616221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5 3617191930Sdelphij$as_echo_n "checking for tgoto in -ltinfo... " >&6; } 3618221715Sdelphijif test "${ac_cv_lib_tinfo_tgoto+set}" = set; then : 3619191930Sdelphij $as_echo_n "(cached) " >&6 3620173682Sdelphijelse 3621173682Sdelphij ac_check_lib_save_LIBS=$LIBS 3622173682SdelphijLIBS="-ltinfo $LIBS" 3623221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624173682Sdelphij/* end confdefs.h. */ 3625173682Sdelphij 3626173682Sdelphij/* Override any GCC internal prototype to avoid an error. 3627173682Sdelphij Use char because int might match the return type of a GCC 3628173682Sdelphij builtin and then its argument prototype would still apply. */ 3629173682Sdelphij#ifdef __cplusplus 3630173682Sdelphijextern "C" 3631173682Sdelphij#endif 3632173682Sdelphijchar tgoto (); 3633173682Sdelphijint 3634173682Sdelphijmain () 3635173682Sdelphij{ 3636173682Sdelphijreturn tgoto (); 3637173682Sdelphij ; 3638173682Sdelphij return 0; 3639173682Sdelphij} 3640173682Sdelphij_ACEOF 3641221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3642173682Sdelphij ac_cv_lib_tinfo_tgoto=yes 3643173682Sdelphijelse 3644221715Sdelphij ac_cv_lib_tinfo_tgoto=no 3645173682Sdelphijfi 3646221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3647221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3648173682SdelphijLIBS=$ac_check_lib_save_LIBS 3649173682Sdelphijfi 3650221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5 3651191930Sdelphij$as_echo "$ac_cv_lib_tinfo_tgoto" >&6; } 3652221715Sdelphijif test "x$ac_cv_lib_tinfo_tgoto" = x""yes; then : 3653173682Sdelphij have_tinfo=yes 3654173682Sdelphijelse 3655173682Sdelphij have_tinfo=no 3656173682Sdelphijfi 3657173682Sdelphij 3658221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5 3659191930Sdelphij$as_echo_n "checking for initscr in -lxcurses... " >&6; } 3660221715Sdelphijif test "${ac_cv_lib_xcurses_initscr+set}" = set; then : 3661191930Sdelphij $as_echo_n "(cached) " >&6 3662128345Stjrelse 3663128345Stjr ac_check_lib_save_LIBS=$LIBS 3664128345StjrLIBS="-lxcurses $LIBS" 3665221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666170256Sdelphij/* end confdefs.h. */ 3667128345Stjr 3668170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3669170256Sdelphij Use char because int might match the return type of a GCC 3670170256Sdelphij builtin and then its argument prototype would still apply. */ 3671128345Stjr#ifdef __cplusplus 3672128345Stjrextern "C" 3673128345Stjr#endif 3674128345Stjrchar initscr (); 3675128345Stjrint 3676128345Stjrmain () 3677128345Stjr{ 3678170256Sdelphijreturn initscr (); 3679128345Stjr ; 3680128345Stjr return 0; 3681128345Stjr} 3682128345Stjr_ACEOF 3683221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3684128345Stjr ac_cv_lib_xcurses_initscr=yes 3685128345Stjrelse 3686221715Sdelphij ac_cv_lib_xcurses_initscr=no 3687128345Stjrfi 3688221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3689221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3690128345StjrLIBS=$ac_check_lib_save_LIBS 3691128345Stjrfi 3692221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5 3693191930Sdelphij$as_echo "$ac_cv_lib_xcurses_initscr" >&6; } 3694221715Sdelphijif test "x$ac_cv_lib_xcurses_initscr" = x""yes; then : 369560786Sps have_xcurses=yes 369660786Spselse 3697128345Stjr have_xcurses=no 369860786Spsfi 369960786Sps 3700221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5 3701191930Sdelphij$as_echo_n "checking for initscr in -lncursesw... " >&6; } 3702221715Sdelphijif test "${ac_cv_lib_ncursesw_initscr+set}" = set; then : 3703191930Sdelphij $as_echo_n "(cached) " >&6 3704161475Sdelphijelse 3705161475Sdelphij ac_check_lib_save_LIBS=$LIBS 3706161475SdelphijLIBS="-lncursesw $LIBS" 3707221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708170256Sdelphij/* end confdefs.h. */ 3709161475Sdelphij 3710170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3711170256Sdelphij Use char because int might match the return type of a GCC 3712170256Sdelphij builtin and then its argument prototype would still apply. */ 3713161475Sdelphij#ifdef __cplusplus 3714161475Sdelphijextern "C" 3715161475Sdelphij#endif 3716161475Sdelphijchar initscr (); 3717161475Sdelphijint 3718161475Sdelphijmain () 3719161475Sdelphij{ 3720170256Sdelphijreturn initscr (); 3721161475Sdelphij ; 3722161475Sdelphij return 0; 3723161475Sdelphij} 3724161475Sdelphij_ACEOF 3725221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3726161475Sdelphij ac_cv_lib_ncursesw_initscr=yes 3727161475Sdelphijelse 3728221715Sdelphij ac_cv_lib_ncursesw_initscr=no 3729161475Sdelphijfi 3730221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3731221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3732161475SdelphijLIBS=$ac_check_lib_save_LIBS 3733161475Sdelphijfi 3734221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5 3735191930Sdelphij$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } 3736221715Sdelphijif test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then : 3737161475Sdelphij have_ncursesw=yes 3738161475Sdelphijelse 3739161475Sdelphij have_ncursesw=no 3740161475Sdelphijfi 3741161475Sdelphij 3742221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 3743191930Sdelphij$as_echo_n "checking for initscr in -lncurses... " >&6; } 3744221715Sdelphijif test "${ac_cv_lib_ncurses_initscr+set}" = set; then : 3745191930Sdelphij $as_echo_n "(cached) " >&6 374660786Spselse 3747128345Stjr ac_check_lib_save_LIBS=$LIBS 374860786SpsLIBS="-lncurses $LIBS" 3749221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750170256Sdelphij/* end confdefs.h. */ 3751128345Stjr 3752170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3753170256Sdelphij Use char because int might match the return type of a GCC 3754170256Sdelphij builtin and then its argument prototype would still apply. */ 3755128345Stjr#ifdef __cplusplus 3756128345Stjrextern "C" 3757128345Stjr#endif 3758128345Stjrchar initscr (); 3759128345Stjrint 3760128345Stjrmain () 3761128345Stjr{ 3762170256Sdelphijreturn initscr (); 3763128345Stjr ; 3764128345Stjr return 0; 3765128345Stjr} 3766128345Stjr_ACEOF 3767221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3768128345Stjr ac_cv_lib_ncurses_initscr=yes 376960786Spselse 3770221715Sdelphij ac_cv_lib_ncurses_initscr=no 377160786Spsfi 3772221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3773221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3774128345StjrLIBS=$ac_check_lib_save_LIBS 377560786Spsfi 3776221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 3777191930Sdelphij$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } 3778221715Sdelphijif test "x$ac_cv_lib_ncurses_initscr" = x""yes; then : 377960786Sps have_ncurses=yes 378060786Spselse 3781128345Stjr have_ncurses=no 378260786Spsfi 378360786Sps 3784221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 3785191930Sdelphij$as_echo_n "checking for initscr in -lcurses... " >&6; } 3786221715Sdelphijif test "${ac_cv_lib_curses_initscr+set}" = set; then : 3787191930Sdelphij $as_echo_n "(cached) " >&6 378860786Spselse 3789128345Stjr ac_check_lib_save_LIBS=$LIBS 379060786SpsLIBS="-lcurses $LIBS" 3791221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792170256Sdelphij/* end confdefs.h. */ 3793128345Stjr 3794170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3795170256Sdelphij Use char because int might match the return type of a GCC 3796170256Sdelphij builtin and then its argument prototype would still apply. */ 3797128345Stjr#ifdef __cplusplus 3798128345Stjrextern "C" 3799128345Stjr#endif 3800128345Stjrchar initscr (); 3801128345Stjrint 3802128345Stjrmain () 3803128345Stjr{ 3804170256Sdelphijreturn initscr (); 3805128345Stjr ; 3806128345Stjr return 0; 3807128345Stjr} 3808128345Stjr_ACEOF 3809221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3810128345Stjr ac_cv_lib_curses_initscr=yes 381160786Spselse 3812221715Sdelphij ac_cv_lib_curses_initscr=no 381360786Spsfi 3814221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3815221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3816128345StjrLIBS=$ac_check_lib_save_LIBS 381760786Spsfi 3818221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 3819191930Sdelphij$as_echo "$ac_cv_lib_curses_initscr" >&6; } 3820221715Sdelphijif test "x$ac_cv_lib_curses_initscr" = x""yes; then : 382160786Sps have_curses=yes 382260786Spselse 3823128345Stjr have_curses=no 382460786Spsfi 382560786Sps 3826221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 3827191930Sdelphij$as_echo_n "checking for tgetent in -ltermcap... " >&6; } 3828221715Sdelphijif test "${ac_cv_lib_termcap_tgetent+set}" = set; then : 3829191930Sdelphij $as_echo_n "(cached) " >&6 383060786Spselse 3831128345Stjr ac_check_lib_save_LIBS=$LIBS 383260786SpsLIBS="-ltermcap $LIBS" 3833221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834170256Sdelphij/* end confdefs.h. */ 3835128345Stjr 3836170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3837170256Sdelphij Use char because int might match the return type of a GCC 3838170256Sdelphij builtin and then its argument prototype would still apply. */ 3839128345Stjr#ifdef __cplusplus 3840128345Stjrextern "C" 3841128345Stjr#endif 3842128345Stjrchar tgetent (); 3843128345Stjrint 3844128345Stjrmain () 3845128345Stjr{ 3846170256Sdelphijreturn tgetent (); 3847128345Stjr ; 3848128345Stjr return 0; 3849128345Stjr} 3850128345Stjr_ACEOF 3851221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3852128345Stjr ac_cv_lib_termcap_tgetent=yes 385360786Spselse 3854221715Sdelphij ac_cv_lib_termcap_tgetent=no 385560786Spsfi 3856221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3857221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3858128345StjrLIBS=$ac_check_lib_save_LIBS 385960786Spsfi 3860221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 3861191930Sdelphij$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } 3862221715Sdelphijif test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : 386360786Sps have_termcap=yes 386460786Spselse 3865128345Stjr have_termcap=no 386660786Spsfi 386760786Sps 3868221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5 3869191930Sdelphij$as_echo_n "checking for tgetent in -ltermlib... " >&6; } 3870221715Sdelphijif test "${ac_cv_lib_termlib_tgetent+set}" = set; then : 3871191930Sdelphij $as_echo_n "(cached) " >&6 387260786Spselse 3873128345Stjr ac_check_lib_save_LIBS=$LIBS 387460786SpsLIBS="-ltermlib $LIBS" 3875221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876170256Sdelphij/* end confdefs.h. */ 3877128345Stjr 3878170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3879170256Sdelphij Use char because int might match the return type of a GCC 3880170256Sdelphij builtin and then its argument prototype would still apply. */ 3881128345Stjr#ifdef __cplusplus 3882128345Stjrextern "C" 3883128345Stjr#endif 3884128345Stjrchar tgetent (); 3885128345Stjrint 3886128345Stjrmain () 3887128345Stjr{ 3888170256Sdelphijreturn tgetent (); 3889128345Stjr ; 3890128345Stjr return 0; 3891128345Stjr} 3892128345Stjr_ACEOF 3893221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3894128345Stjr ac_cv_lib_termlib_tgetent=yes 389560786Spselse 3896221715Sdelphij ac_cv_lib_termlib_tgetent=no 389760786Spsfi 3898221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3899221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3900128345StjrLIBS=$ac_check_lib_save_LIBS 390160786Spsfi 3902221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5 3903191930Sdelphij$as_echo "$ac_cv_lib_termlib_tgetent" >&6; } 3904221715Sdelphijif test "x$ac_cv_lib_termlib_tgetent" = x""yes; then : 390560786Sps have_termlib=yes 390660786Spselse 3907128345Stjr have_termlib=no 390860786Spsfi 390960786Sps 3910128345Stjr# Regular expressions (regcmp) are in -lgen on Solaris 2, 3911128345Stjr# and in -lintl on SCO Unix. 3912221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5 3913191930Sdelphij$as_echo_n "checking for regcmp in -lgen... " >&6; } 3914221715Sdelphijif test "${ac_cv_lib_gen_regcmp+set}" = set; then : 3915191930Sdelphij $as_echo_n "(cached) " >&6 391660786Spselse 3917128345Stjr ac_check_lib_save_LIBS=$LIBS 391860786SpsLIBS="-lgen $LIBS" 3919221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920170256Sdelphij/* end confdefs.h. */ 3921128345Stjr 3922170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3923170256Sdelphij Use char because int might match the return type of a GCC 3924170256Sdelphij builtin and then its argument prototype would still apply. */ 3925128345Stjr#ifdef __cplusplus 3926128345Stjrextern "C" 3927128345Stjr#endif 3928128345Stjrchar regcmp (); 3929128345Stjrint 3930128345Stjrmain () 3931128345Stjr{ 3932170256Sdelphijreturn regcmp (); 3933128345Stjr ; 3934128345Stjr return 0; 3935128345Stjr} 3936128345Stjr_ACEOF 3937221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3938128345Stjr ac_cv_lib_gen_regcmp=yes 393960786Spselse 3940221715Sdelphij ac_cv_lib_gen_regcmp=no 394160786Spsfi 3942221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3943221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3944128345StjrLIBS=$ac_check_lib_save_LIBS 394560786Spsfi 3946221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5 3947191930Sdelphij$as_echo "$ac_cv_lib_gen_regcmp" >&6; } 3948221715Sdelphijif test "x$ac_cv_lib_gen_regcmp" = x""yes; then : 3949128345Stjr cat >>confdefs.h <<_ACEOF 3950128345Stjr#define HAVE_LIBGEN 1 3951128345Stjr_ACEOF 395260786Sps 395360786Sps LIBS="-lgen $LIBS" 395460786Sps 395560786Spsfi 395660786Sps 3957221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lintl" >&5 3958191930Sdelphij$as_echo_n "checking for regcmp in -lintl... " >&6; } 3959221715Sdelphijif test "${ac_cv_lib_intl_regcmp+set}" = set; then : 3960191930Sdelphij $as_echo_n "(cached) " >&6 396160786Spselse 3962128345Stjr ac_check_lib_save_LIBS=$LIBS 396360786SpsLIBS="-lintl $LIBS" 3964221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965170256Sdelphij/* end confdefs.h. */ 3966128345Stjr 3967170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3968170256Sdelphij Use char because int might match the return type of a GCC 3969170256Sdelphij builtin and then its argument prototype would still apply. */ 3970128345Stjr#ifdef __cplusplus 3971128345Stjrextern "C" 3972128345Stjr#endif 3973128345Stjrchar regcmp (); 3974128345Stjrint 3975128345Stjrmain () 3976128345Stjr{ 3977170256Sdelphijreturn regcmp (); 3978128345Stjr ; 3979128345Stjr return 0; 3980128345Stjr} 3981128345Stjr_ACEOF 3982221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 3983128345Stjr ac_cv_lib_intl_regcmp=yes 398460786Spselse 3985221715Sdelphij ac_cv_lib_intl_regcmp=no 398660786Spsfi 3987221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 3988221715Sdelphij conftest$ac_exeext conftest.$ac_ext 3989128345StjrLIBS=$ac_check_lib_save_LIBS 399060786Spsfi 3991221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_regcmp" >&5 3992191930Sdelphij$as_echo "$ac_cv_lib_intl_regcmp" >&6; } 3993221715Sdelphijif test "x$ac_cv_lib_intl_regcmp" = x""yes; then : 3994128345Stjr cat >>confdefs.h <<_ACEOF 3995128345Stjr#define HAVE_LIBINTL 1 3996128345Stjr_ACEOF 399760786Sps 399860786Sps LIBS="-lintl $LIBS" 399960786Sps 400060786Spsfi 400160786Sps 4002221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lPW" >&5 4003191930Sdelphij$as_echo_n "checking for regcmp in -lPW... " >&6; } 4004221715Sdelphijif test "${ac_cv_lib_PW_regcmp+set}" = set; then : 4005191930Sdelphij $as_echo_n "(cached) " >&6 400660786Spselse 4007128345Stjr ac_check_lib_save_LIBS=$LIBS 400860786SpsLIBS="-lPW $LIBS" 4009221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010170256Sdelphij/* end confdefs.h. */ 4011128345Stjr 4012170256Sdelphij/* Override any GCC internal prototype to avoid an error. 4013170256Sdelphij Use char because int might match the return type of a GCC 4014170256Sdelphij builtin and then its argument prototype would still apply. */ 4015128345Stjr#ifdef __cplusplus 4016128345Stjrextern "C" 4017128345Stjr#endif 4018128345Stjrchar regcmp (); 4019128345Stjrint 4020128345Stjrmain () 4021128345Stjr{ 4022170256Sdelphijreturn regcmp (); 4023128345Stjr ; 4024128345Stjr return 0; 4025128345Stjr} 4026128345Stjr_ACEOF 4027221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4028128345Stjr ac_cv_lib_PW_regcmp=yes 402960786Spselse 4030221715Sdelphij ac_cv_lib_PW_regcmp=no 403160786Spsfi 4032221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4033221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4034128345StjrLIBS=$ac_check_lib_save_LIBS 403560786Spsfi 4036221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_regcmp" >&5 4037191930Sdelphij$as_echo "$ac_cv_lib_PW_regcmp" >&6; } 4038221715Sdelphijif test "x$ac_cv_lib_PW_regcmp" = x""yes; then : 4039128345Stjr cat >>confdefs.h <<_ACEOF 4040128345Stjr#define HAVE_LIBPW 1 4041128345Stjr_ACEOF 404260786Sps 404360786Sps LIBS="-lPW $LIBS" 404460786Sps 404560786Spsfi 404660786Sps 404760786Sps 4048128345Stjr# Checks for terminal libraries 4049221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5 4050191930Sdelphij$as_echo_n "checking for working terminal libraries... " >&6; } 405160786SpsTERMLIBS= 405260786Sps 4053128345Stjr# Check for systems where curses is broken. 405460786Spscurses_broken=0 405560786Spsif test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then 405660786Spsif test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then 405760786Sps curses_broken=1 405860786Spsfi 405989019Spsif test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then 406089019Sps curses_broken=1 406160786Spsfi 406289019Spsfi 406360786Sps 406460786Spsif test $curses_broken = 0; then 4065173682Sdelphij 4066173682Sdelphij# -- Try tinfo. 4067173682Sdelphijif test "x$TERMLIBS" = x; then 4068173682Sdelphij if test $have_tinfo = yes; then 4069173682Sdelphij TERMLIBS="-ltinfo" 4070173682Sdelphij SAVE_LIBS=$LIBS 4071173682Sdelphij LIBS="$LIBS $TERMLIBS" 4072221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073173682Sdelphij/* end confdefs.h. */ 4074173682Sdelphij 4075173682Sdelphijint 4076173682Sdelphijmain () 4077173682Sdelphij{ 4078173682Sdelphijtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4079173682Sdelphij ; 4080173682Sdelphij return 0; 4081173682Sdelphij} 4082173682Sdelphij_ACEOF 4083221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4084173682Sdelphij termok=yes 4085173682Sdelphijelse 4086221715Sdelphij termok=no 4087173682Sdelphijfi 4088221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4089221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4090173682Sdelphij LIBS=$SAVE_LIBS 4091173682Sdelphij if test $termok = no; then TERMLIBS=""; fi 4092173682Sdelphij fi 4093173682Sdelphijfi 4094173682Sdelphij 4095128345Stjr# -- Try xcurses. 409660786Spsif test "x$TERMLIBS" = x; then 409760786Sps if test $have_xcurses = yes; then 409860786Sps TERMLIBS="-lxcurses" 409960786Sps SAVE_LIBS=$LIBS 410060786Sps LIBS="$LIBS $TERMLIBS" 4101221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102170256Sdelphij/* end confdefs.h. */ 410360786Sps 4104128345Stjrint 4105128345Stjrmain () 4106128345Stjr{ 410760786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4108128345Stjr ; 4109128345Stjr return 0; 4110128345Stjr} 4111128345Stjr_ACEOF 4112221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 411360786Sps termok=yes 411460786Spselse 4115221715Sdelphij termok=no 411660786Spsfi 4117221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4118221715Sdelphij conftest$ac_exeext conftest.$ac_ext 411960786Sps LIBS=$SAVE_LIBS 412060786Sps if test $termok = no; then TERMLIBS=""; fi 412160786Sps fi 412260786Spsfi 412360786Sps 4124170256Sdelphij# -- Try ncursesw. 4125161475Sdelphijif test "x$TERMLIBS" = x; then 4126161475Sdelphij if test $have_ncursesw = yes; then 4127161475Sdelphij TERMLIBS="-lncursesw" 4128161475Sdelphij SAVE_LIBS=$LIBS 4129161475Sdelphij LIBS="$LIBS $TERMLIBS" 4130221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131170256Sdelphij/* end confdefs.h. */ 4132161475Sdelphij 4133161475Sdelphijint 4134161475Sdelphijmain () 4135161475Sdelphij{ 4136161475Sdelphijtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4137161475Sdelphij ; 4138161475Sdelphij return 0; 4139161475Sdelphij} 4140161475Sdelphij_ACEOF 4141221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4142161475Sdelphij termok=yes 4143161475Sdelphijelse 4144221715Sdelphij termok=no 4145161475Sdelphijfi 4146221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4147221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4148161475Sdelphij LIBS=$SAVE_LIBS 4149161475Sdelphij if test $termok = no; then TERMLIBS=""; fi 4150161475Sdelphij fi 4151161475Sdelphijfi 4152161475Sdelphij 4153128345Stjr# -- Try ncurses. 415460786Spsif test "x$TERMLIBS" = x; then 415560786Sps if test $have_ncurses = yes; then 415660786Sps TERMLIBS="-lncurses" 415760786Sps SAVE_LIBS=$LIBS 415860786Sps LIBS="$LIBS $TERMLIBS" 4159221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160170256Sdelphij/* end confdefs.h. */ 416160786Sps 4162128345Stjrint 4163128345Stjrmain () 4164128345Stjr{ 416560786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4166128345Stjr ; 4167128345Stjr return 0; 4168128345Stjr} 4169128345Stjr_ACEOF 4170221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 417160786Sps termok=yes 417260786Spselse 4173221715Sdelphij termok=no 417460786Spsfi 4175221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4176221715Sdelphij conftest$ac_exeext conftest.$ac_ext 417760786Sps LIBS=$SAVE_LIBS 417860786Sps if test $termok = no; then TERMLIBS=""; fi 417960786Sps fi 418060786Spsfi 418160786Sps 4182128345Stjr# -- Try curses. 418360786Spsif test "x$TERMLIBS" = x; then 418460786Sps if test $have_curses = yes; then 418560786Sps TERMLIBS="-lcurses" 418660786Sps SAVE_LIBS=$LIBS 418760786Sps LIBS="$LIBS $TERMLIBS" 4188221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189170256Sdelphij/* end confdefs.h. */ 419060786Sps 4191128345Stjrint 4192128345Stjrmain () 4193128345Stjr{ 419460786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4195128345Stjr ; 4196128345Stjr return 0; 4197128345Stjr} 4198128345Stjr_ACEOF 4199221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 420060786Sps termok=yes 420160786Spselse 4202221715Sdelphij termok=no 420360786Spsfi 4204221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4205221715Sdelphij conftest$ac_exeext conftest.$ac_ext 420660786Sps LIBS=$SAVE_LIBS 420760786Sps if test $termok = no; then TERMLIBS=""; fi 420860786Sps fi 420960786Spsfi 421060786Sps 4211128345Stjr# -- Try curses & termcap. 421260786Spsif test "x$TERMLIBS" = x; then 421360786Sps if test $have_curses = yes; then 421460786Sps if test $have_termcap = yes; then 421560786Sps TERMLIBS="-lcurses -ltermcap" 421660786Sps SAVE_LIBS=$LIBS 421760786Sps LIBS="$LIBS $TERMLIBS" 4218221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4219170256Sdelphij/* end confdefs.h. */ 422060786Sps 4221128345Stjrint 4222128345Stjrmain () 4223128345Stjr{ 422460786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4225128345Stjr ; 4226128345Stjr return 0; 4227128345Stjr} 4228128345Stjr_ACEOF 4229221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 423060786Sps termok=yes 423160786Spselse 4232221715Sdelphij termok=no 423360786Spsfi 4234221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4235221715Sdelphij conftest$ac_exeext conftest.$ac_ext 423660786Sps LIBS=$SAVE_LIBS 423760786Sps if test $termok = no; then TERMLIBS=""; fi 423860786Sps fi 423960786Sps fi 424060786Spsfi 424160786Spsfi 424260786Sps 4243128345Stjr# -- Try termcap. 424460786Spsif test "x$TERMLIBS" = x; then 424560786Sps if test $have_termcap = yes; then 424660786Sps TERMLIBS="-ltermcap" 424760786Sps SAVE_LIBS=$LIBS 424860786Sps LIBS="$LIBS $TERMLIBS" 4249221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250170256Sdelphij/* end confdefs.h. */ 425160786Sps 4252128345Stjrint 4253128345Stjrmain () 4254128345Stjr{ 425560786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4256128345Stjr ; 4257128345Stjr return 0; 4258128345Stjr} 4259128345Stjr_ACEOF 4260221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 426160786Sps termok=yes 426260786Spselse 4263221715Sdelphij termok=no 426460786Spsfi 4265221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4266221715Sdelphij conftest$ac_exeext conftest.$ac_ext 426760786Sps LIBS=$SAVE_LIBS 426860786Sps if test $termok = no; then TERMLIBS=""; fi 426960786Sps fi 427060786Spsfi 427160786Sps 4272128345Stjr# -- Try termlib. 427360786Spsif test "x$TERMLIBS" = x; then 427460786Sps if test $have_termlib = yes; then 427560786Sps TERMLIBS="-lcurses -ltermlib" 427660786Sps SAVE_LIBS=$LIBS 427760786Sps LIBS="$LIBS $TERMLIBS" 4278221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279170256Sdelphij/* end confdefs.h. */ 428060786Sps 4281128345Stjrint 4282128345Stjrmain () 4283128345Stjr{ 428460786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4285128345Stjr ; 4286128345Stjr return 0; 4287128345Stjr} 4288128345Stjr_ACEOF 4289221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 429060786Sps termok=yes 429160786Spselse 4292221715Sdelphij termok=no 429360786Spsfi 4294221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4295221715Sdelphij conftest$ac_exeext conftest.$ac_ext 429660786Sps LIBS=$SAVE_LIBS 429760786Sps if test $termok = no; then TERMLIBS=""; fi 429860786Sps fi 429960786Spsfi 430060786Sps 430160786Spsif test "x$TERMLIBS" = x; then 4302221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5 4303191930Sdelphij$as_echo "Cannot find terminal libraries - configure failed" >&6; } 430460786Sps exit 1 430560786Spsfi 4306221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5 4307191930Sdelphij$as_echo "using $TERMLIBS" >&6; } 430860786SpsLIBS="$LIBS $TERMLIBS" 430960786Sps 4310128345Stjr# Checks for header files. 4311221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4312191930Sdelphij$as_echo_n "checking for ANSI C header files... " >&6; } 4313221715Sdelphijif test "${ac_cv_header_stdc+set}" = set; then : 4314191930Sdelphij $as_echo_n "(cached) " >&6 431560786Spselse 4316221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317170256Sdelphij/* end confdefs.h. */ 431860786Sps#include <stdlib.h> 431960786Sps#include <stdarg.h> 432060786Sps#include <string.h> 432160786Sps#include <float.h> 4322128345Stjr 4323170256Sdelphijint 4324170256Sdelphijmain () 4325170256Sdelphij{ 4326170256Sdelphij 4327170256Sdelphij ; 4328170256Sdelphij return 0; 4329170256Sdelphij} 4330128345Stjr_ACEOF 4331221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 433260786Sps ac_cv_header_stdc=yes 433360786Spselse 4334221715Sdelphij ac_cv_header_stdc=no 433560786Spsfi 4336170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337170256Sdelphij 433860786Spsif test $ac_cv_header_stdc = yes; then 433960786Sps # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4340221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341170256Sdelphij/* end confdefs.h. */ 434260786Sps#include <string.h> 4343128345Stjr 4344128345Stjr_ACEOF 434560786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4346221715Sdelphij $EGREP "memchr" >/dev/null 2>&1; then : 4347221715Sdelphij 434860786Spselse 434960786Sps ac_cv_header_stdc=no 435060786Spsfi 435160786Spsrm -f conftest* 435260786Sps 435360786Spsfi 435460786Sps 435560786Spsif test $ac_cv_header_stdc = yes; then 435660786Sps # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4357221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358170256Sdelphij/* end confdefs.h. */ 435960786Sps#include <stdlib.h> 4360128345Stjr 4361128345Stjr_ACEOF 436260786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4363221715Sdelphij $EGREP "free" >/dev/null 2>&1; then : 4364221715Sdelphij 436560786Spselse 436660786Sps ac_cv_header_stdc=no 436760786Spsfi 436860786Spsrm -f conftest* 436960786Sps 437060786Spsfi 437160786Sps 437260786Spsif test $ac_cv_header_stdc = yes; then 437360786Sps # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4374221715Sdelphij if test "$cross_compiling" = yes; then : 437560786Sps : 437660786Spselse 4377221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4378170256Sdelphij/* end confdefs.h. */ 437960786Sps#include <ctype.h> 4380170256Sdelphij#include <stdlib.h> 4381128345Stjr#if ((' ' & 0x0FF) == 0x020) 4382128345Stjr# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4383128345Stjr# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4384128345Stjr#else 4385170256Sdelphij# define ISLOWER(c) \ 4386170256Sdelphij (('a' <= (c) && (c) <= 'i') \ 4387170256Sdelphij || ('j' <= (c) && (c) <= 'r') \ 4388170256Sdelphij || ('s' <= (c) && (c) <= 'z')) 4389128345Stjr# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4390128345Stjr#endif 4391128345Stjr 439260786Sps#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4393128345Stjrint 4394128345Stjrmain () 4395128345Stjr{ 4396128345Stjr int i; 4397128345Stjr for (i = 0; i < 256; i++) 4398128345Stjr if (XOR (islower (i), ISLOWER (i)) 4399170256Sdelphij || toupper (i) != TOUPPER (i)) 4400170256Sdelphij return 2; 4401170256Sdelphij return 0; 4402128345Stjr} 4403128345Stjr_ACEOF 4404221715Sdelphijif ac_fn_c_try_run "$LINENO"; then : 4405221715Sdelphij 440660786Spselse 4407221715Sdelphij ac_cv_header_stdc=no 440860786Spsfi 4409221715Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4410221715Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 441160786Spsfi 4412170256Sdelphij 441360786Spsfi 441460786Spsfi 4415221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4416191930Sdelphij$as_echo "$ac_cv_header_stdc" >&6; } 4417128345Stjrif test $ac_cv_header_stdc = yes; then 441860786Sps 4419221715Sdelphij$as_echo "#define STDC_HEADERS 1" >>confdefs.h 442060786Sps 442160786Spsfi 442260786Sps 4423128345Stjr# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4424128345Stjrfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4425170256Sdelphij inttypes.h stdint.h unistd.h 4426221715Sdelphijdo : 4427221715Sdelphij as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4428221715Sdelphijac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4429221715Sdelphij" 4430221715Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4431128345Stjr cat >>confdefs.h <<_ACEOF 4432191930Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4433128345Stjr_ACEOF 4434128345Stjr 4435128345Stjrfi 4436128345Stjr 4437128345Stjrdone 4438128345Stjr 4439128345Stjr 4440173682Sdelphijfor ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h 4441221715Sdelphijdo : 4442221715Sdelphij as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4443221715Sdelphijac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4444221715Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4445128345Stjr cat >>confdefs.h <<_ACEOF 4446191930Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4447128345Stjr_ACEOF 4448128345Stjr 4449128345Stjrfi 4450128345Stjr 4451128345Stjrdone 4452128345Stjr 4453128345Stjr 4454128345Stjr# Checks for typedefs, structures, and compiler characteristics. 4455221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 4456191930Sdelphij$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 4457221715Sdelphijif test "${ac_cv_header_stat_broken+set}" = set; then : 4458191930Sdelphij $as_echo_n "(cached) " >&6 4459128345Stjrelse 4460221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461170256Sdelphij/* end confdefs.h. */ 446260786Sps#include <sys/types.h> 4463128345Stjr#include <sys/stat.h> 4464128345Stjr 4465170256Sdelphij#if defined S_ISBLK && defined S_IFDIR 4466170256Sdelphijextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 446760786Sps#endif 4468128345Stjr 4469170256Sdelphij#if defined S_ISBLK && defined S_IFCHR 4470170256Sdelphijextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 4471128345Stjr#endif 4472128345Stjr 4473170256Sdelphij#if defined S_ISLNK && defined S_IFREG 4474170256Sdelphijextern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 4475128345Stjr#endif 4476128345Stjr 4477170256Sdelphij#if defined S_ISSOCK && defined S_IFREG 4478170256Sdelphijextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 4479128345Stjr#endif 4480128345Stjr 4481128345Stjr_ACEOF 4482221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4483170256Sdelphij ac_cv_header_stat_broken=no 448460786Spselse 4485221715Sdelphij ac_cv_header_stat_broken=yes 448660786Spsfi 4487170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 448860786Spsfi 4489221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 4490191930Sdelphij$as_echo "$ac_cv_header_stat_broken" >&6; } 4491128345Stjrif test $ac_cv_header_stat_broken = yes; then 4492128345Stjr 4493221715Sdelphij$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 4494128345Stjr 4495128345Stjrfi 4496128345Stjr 4497221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4498191930Sdelphij$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4499221715Sdelphijif test "${ac_cv_c_const+set}" = set; then : 4500191930Sdelphij $as_echo_n "(cached) " >&6 4501128345Stjrelse 4502221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4503170256Sdelphij/* end confdefs.h. */ 4504128345Stjr 4505128345Stjrint 4506128345Stjrmain () 4507128345Stjr{ 4508128345Stjr/* FIXME: Include the comments suggested by Paul. */ 4509128345Stjr#ifndef __cplusplus 4510128345Stjr /* Ultrix mips cc rejects this. */ 4511128345Stjr typedef int charset[2]; 4512170256Sdelphij const charset cs; 4513128345Stjr /* SunOS 4.1.1 cc rejects this. */ 4514170256Sdelphij char const *const *pcpcc; 4515170256Sdelphij char **ppc; 4516128345Stjr /* NEC SVR4.0.2 mips cc rejects this. */ 4517128345Stjr struct point {int x, y;}; 4518128345Stjr static struct point const zero = {0,0}; 4519128345Stjr /* AIX XL C 1.02.0.0 rejects this. 4520128345Stjr It does not let you subtract one const X* pointer from another in 4521128345Stjr an arm of an if-expression whose if-part is not a constant 4522128345Stjr expression */ 4523128345Stjr const char *g = "string"; 4524170256Sdelphij pcpcc = &g + (g ? g-g : 0); 4525128345Stjr /* HPUX 7.0 cc rejects these. */ 4526170256Sdelphij ++pcpcc; 4527170256Sdelphij ppc = (char**) pcpcc; 4528170256Sdelphij pcpcc = (char const *const *) ppc; 4529128345Stjr { /* SCO 3.2v4 cc rejects this. */ 4530128345Stjr char *t; 4531128345Stjr char const *s = 0 ? (char *) 0 : (char const *) 0; 4532128345Stjr 4533128345Stjr *t++ = 0; 4534170256Sdelphij if (s) return 0; 4535128345Stjr } 4536128345Stjr { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4537128345Stjr int x[] = {25, 17}; 4538128345Stjr const int *foo = &x[0]; 4539128345Stjr ++foo; 4540128345Stjr } 4541128345Stjr { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4542128345Stjr typedef const int *iptr; 4543128345Stjr iptr p = 0; 4544128345Stjr ++p; 4545128345Stjr } 4546128345Stjr { /* AIX XL C 1.02.0.0 rejects this saying 4547128345Stjr "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4548128345Stjr struct s { int j; const int *ap[3]; }; 4549128345Stjr struct s *b; b->j = 5; 4550128345Stjr } 4551128345Stjr { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4552128345Stjr const int foo = 10; 4553170256Sdelphij if (!foo) return 0; 4554128345Stjr } 4555170256Sdelphij return !cs[0] && !zero.x; 4556128345Stjr#endif 4557128345Stjr 4558128345Stjr ; 4559128345Stjr return 0; 4560128345Stjr} 4561128345Stjr_ACEOF 4562221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4563128345Stjr ac_cv_c_const=yes 4564128345Stjrelse 4565221715Sdelphij ac_cv_c_const=no 4566128345Stjrfi 4567170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4568128345Stjrfi 4569221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4570191930Sdelphij$as_echo "$ac_cv_c_const" >&6; } 4571128345Stjrif test $ac_cv_c_const = no; then 4572128345Stjr 4573221715Sdelphij$as_echo "#define const /**/" >>confdefs.h 4574128345Stjr 4575128345Stjrfi 4576128345Stjr 4577221715Sdelphijac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4578221715Sdelphijif test "x$ac_cv_type_off_t" = x""yes; then : 4579170256Sdelphij 4580191930Sdelphijelse 4581191930Sdelphij 4582128345Stjrcat >>confdefs.h <<_ACEOF 4583170256Sdelphij#define off_t long int 4584128345Stjr_ACEOF 458560786Sps 458660786Spsfi 458760786Sps 4588221715Sdelphijac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4589221715Sdelphijif test "x$ac_cv_type_size_t" = x""yes; then : 4590170256Sdelphij 4591191930Sdelphijelse 4592191930Sdelphij 4593128345Stjrcat >>confdefs.h <<_ACEOF 4594170256Sdelphij#define size_t unsigned int 4595128345Stjr_ACEOF 4596128345Stjr 4597128345Stjrfi 4598128345Stjr 4599221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 4600191930Sdelphij$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 4601221715Sdelphijif test "${ac_cv_header_time+set}" = set; then : 4602191930Sdelphij $as_echo_n "(cached) " >&6 4603128345Stjrelse 4604221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605170256Sdelphij/* end confdefs.h. */ 4606128345Stjr#include <sys/types.h> 4607128345Stjr#include <sys/time.h> 4608128345Stjr#include <time.h> 4609128345Stjr 4610128345Stjrint 4611128345Stjrmain () 4612128345Stjr{ 4613128345Stjrif ((struct tm *) 0) 4614128345Stjrreturn 0; 4615128345Stjr ; 4616128345Stjr return 0; 4617128345Stjr} 4618128345Stjr_ACEOF 4619221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4620128345Stjr ac_cv_header_time=yes 4621128345Stjrelse 4622221715Sdelphij ac_cv_header_time=no 4623128345Stjrfi 4624170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4625128345Stjrfi 4626221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 4627191930Sdelphij$as_echo "$ac_cv_header_time" >&6; } 4628128345Stjrif test $ac_cv_header_time = yes; then 4629128345Stjr 4630221715Sdelphij$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 4631128345Stjr 4632128345Stjrfi 4633128345Stjr 4634128345Stjr 4635128345Stjr# Autoheader templates for symbols defined later by AC_DEFINE. 4636128345Stjr 4637128345Stjr 4638128345Stjr 4639128345Stjr 4640128345Stjr 4641128345Stjr 4642128345Stjr 4643128345Stjr 4644128345Stjr 4645128345Stjr 4646128345Stjr 4647128345Stjr 4648128345Stjr 4649128345Stjr 4650128345Stjr 4651128345Stjr 4652128345Stjr 4653128345Stjr 4654128345Stjr 4655128345Stjr 4656128345Stjr 4657128345Stjr 4658128345Stjr 4659128345Stjr 4660128345Stjr 4661128345Stjr 4662128345Stjr 4663128345Stjr 4664128345Stjr# Checks for identifiers. 4665221715Sdelphijac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4666221715Sdelphijif test "x$ac_cv_type_off_t" = x""yes; then : 4667170256Sdelphij 4668191930Sdelphijelse 4669191930Sdelphij 4670128345Stjrcat >>confdefs.h <<_ACEOF 4671170256Sdelphij#define off_t long int 4672128345Stjr_ACEOF 4673128345Stjr 4674128345Stjrfi 4675128345Stjr 4676221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5 4677191930Sdelphij$as_echo_n "checking for void... " >&6; } 4678221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679170256Sdelphij/* end confdefs.h. */ 4680128345Stjr 4681128345Stjrint 4682128345Stjrmain () 4683128345Stjr{ 468460786Spsvoid *foo = 0; 4685128345Stjr ; 4686128345Stjr return 0; 4687128345Stjr} 4688128345Stjr_ACEOF 4689221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4690221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4691221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h 469260786Sps 469360786Spselse 4694221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695191930Sdelphij$as_echo "no" >&6; } 469660786Spsfi 4697170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4698221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5 4699191930Sdelphij$as_echo_n "checking for const... " >&6; } 4700221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701170256Sdelphij/* end confdefs.h. */ 470260786Sps 4703128345Stjrint 4704128345Stjrmain () 4705128345Stjr{ 470660786Spsconst int foo = 0; 4707128345Stjr ; 4708128345Stjr return 0; 4709128345Stjr} 4710128345Stjr_ACEOF 4711221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4712221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4713221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h 471460786Sps 471560786Spselse 4716221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4717191930Sdelphij$as_echo "no" >&6; } 471860786Spsfi 4719170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4720221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5 4721191930Sdelphij$as_echo_n "checking for time_t... " >&6; } 4722221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723170256Sdelphij/* end confdefs.h. */ 472460786Sps#include <time.h> 4725128345Stjrint 4726128345Stjrmain () 4727128345Stjr{ 472860786Spstime_t t = 0; 4729128345Stjr ; 4730128345Stjr return 0; 4731128345Stjr} 4732128345Stjr_ACEOF 4733221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4734221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4735221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h 473660786Sps 473760786Spselse 4738221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739191930Sdelphij$as_echo "no" >&6; } 474060786Spsfi 4741170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4742221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5 4743191930Sdelphij$as_echo_n "checking for st_ino in struct stat... " >&6; } 4744221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745173682Sdelphij/* end confdefs.h. */ 4746173682Sdelphij#include <sys/types.h> 4747173682Sdelphij#include <sys/stat.h> 4748173682Sdelphijint 4749173682Sdelphijmain () 4750173682Sdelphij{ 4751173682Sdelphijstruct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino; 4752173682Sdelphij ; 4753173682Sdelphij return 0; 4754173682Sdelphij} 4755173682Sdelphij_ACEOF 4756221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4757221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4758221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h 4759170256Sdelphij 4760173682Sdelphijelse 4761221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4762191930Sdelphij$as_echo "no" >&6; } 4763173682Sdelphijfi 4764173682Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4765173682Sdelphij 4766128345Stjr# Checks for library functions. 4767221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 4768191930Sdelphij$as_echo_n "checking return type of signal handlers... " >&6; } 4769221715Sdelphijif test "${ac_cv_type_signal+set}" = set; then : 4770191930Sdelphij $as_echo_n "(cached) " >&6 477160786Spselse 4772221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773170256Sdelphij/* end confdefs.h. */ 477460786Sps#include <sys/types.h> 477560786Sps#include <signal.h> 477660786Sps 4777128345Stjrint 4778128345Stjrmain () 4779128345Stjr{ 4780170256Sdelphijreturn *(signal (0, 0)) (0) == 1; 4781128345Stjr ; 4782128345Stjr return 0; 4783128345Stjr} 4784128345Stjr_ACEOF 4785221715Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 4786170256Sdelphij ac_cv_type_signal=int 478760786Spselse 4788221715Sdelphij ac_cv_type_signal=void 478960786Spsfi 4790170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 479160786Spsfi 4792221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 4793191930Sdelphij$as_echo "$ac_cv_type_signal" >&6; } 479460786Sps 4795128345Stjrcat >>confdefs.h <<_ACEOF 479660786Sps#define RETSIGTYPE $ac_cv_type_signal 4797128345Stjr_ACEOF 479860786Sps 479960786Sps 4800170256Sdelphijfor ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod 4801221715Sdelphijdo : 4802221715Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4803221715Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4804221715Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4805128345Stjr cat >>confdefs.h <<_ACEOF 4806191930Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4807128345Stjr_ACEOF 480860786Sps 480960786Spsfi 481060786Spsdone 481160786Sps 481260786Sps 4813170256Sdelphij# AC_CHECK_FUNCS may not work for inline functions, so test these separately. 4814221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5 4815191930Sdelphij$as_echo_n "checking for memcpy... " >&6; } 4816221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817170256Sdelphij/* end confdefs.h. */ 4818170256Sdelphij 4819170256Sdelphij#if HAVE_STRING_H 4820170256Sdelphij#include <string.h> 4821170256Sdelphij#endif 4822170256Sdelphijint 4823170256Sdelphijmain () 4824170256Sdelphij{ 4825170256Sdelphijmemcpy(0,0,0); 4826170256Sdelphij ; 4827170256Sdelphij return 0; 4828170256Sdelphij} 4829170256Sdelphij_ACEOF 4830221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4831221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4832221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h 4833170256Sdelphij 4834170256Sdelphijelse 4835221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4836191930Sdelphij$as_echo "no" >&6; } 4837170256Sdelphijfi 4838221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4839221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4840170256Sdelphij 4841221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5 4842191930Sdelphij$as_echo_n "checking for strchr... " >&6; } 4843221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844170256Sdelphij/* end confdefs.h. */ 4845170256Sdelphij 4846170256Sdelphij#if HAVE_STRING_H 4847170256Sdelphij#include <string.h> 4848170256Sdelphij#endif 4849170256Sdelphijint 4850170256Sdelphijmain () 4851170256Sdelphij{ 4852170256Sdelphijstrchr("x",'x'); 4853170256Sdelphij ; 4854170256Sdelphij return 0; 4855170256Sdelphij} 4856170256Sdelphij_ACEOF 4857221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4858221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4859221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h 4860170256Sdelphij 4861170256Sdelphijelse 4862221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4863191930Sdelphij$as_echo "no" >&6; } 4864170256Sdelphijfi 4865221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4866221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4867170256Sdelphij 4868221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5 4869191930Sdelphij$as_echo_n "checking for strstr... " >&6; } 4870221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871170256Sdelphij/* end confdefs.h. */ 4872170256Sdelphij 4873170256Sdelphij#if HAVE_STRING_H 4874170256Sdelphij#include <string.h> 4875170256Sdelphij#endif 4876170256Sdelphijint 4877170256Sdelphijmain () 4878170256Sdelphij{ 4879170256Sdelphijstrstr("x","x"); 4880170256Sdelphij ; 4881170256Sdelphij return 0; 4882170256Sdelphij} 4883170256Sdelphij_ACEOF 4884221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4885221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4886221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h 4887170256Sdelphij 4888170256Sdelphijelse 4889221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4890191930Sdelphij$as_echo "no" >&6; } 4891170256Sdelphijfi 4892221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4893221715Sdelphij conftest$ac_exeext conftest.$ac_ext 4894170256Sdelphij 4895128345Stjr# Some systems have termios.h but not the corresponding functions. 4896221715Sdelphijac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr" 4897221715Sdelphijif test "x$ac_cv_func_tcgetattr" = x""yes; then : 4898221715Sdelphij $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h 4899170256Sdelphij 490060786Spsfi 4901170256Sdelphij 490260786Sps 4903221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5 4904191930Sdelphij$as_echo_n "checking for fileno... " >&6; } 4905221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906170256Sdelphij/* end confdefs.h. */ 490760786Sps 490860786Sps#if HAVE_STDIO_H 490960786Sps#include <stdio.h> 491060786Sps#endif 4911128345Stjrint 4912128345Stjrmain () 4913128345Stjr{ 491460786Spsstatic int x; x = fileno(stdin); 4915128345Stjr ; 4916128345Stjr return 0; 4917128345Stjr} 4918128345Stjr_ACEOF 4919221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4920221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4921221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h 492260786Sps 492360786Spselse 4924221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925191930Sdelphij$as_echo "no" >&6; } 492660786Spsfi 4927221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4928221715Sdelphij conftest$ac_exeext conftest.$ac_ext 492960786Sps 4930221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5 4931191930Sdelphij$as_echo_n "checking for strerror... " >&6; } 4932221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933170256Sdelphij/* end confdefs.h. */ 493460786Sps 493560786Sps#if HAVE_STDIO_H 493660786Sps#include <stdio.h> 493760786Sps#endif 493860786Sps#if HAVE_STRING_H 493960786Sps#include <string.h> 494060786Sps#endif 494160786Sps#if HAVE_ERRNO_H 494260786Sps#include <errno.h> 494360786Sps#endif 4944128345Stjrint 4945128345Stjrmain () 4946128345Stjr{ 494760786Spsstatic char *x; x = strerror(0); 4948128345Stjr ; 4949128345Stjr return 0; 4950128345Stjr} 4951128345Stjr_ACEOF 4952221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4953221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4954221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 495560786Sps 495660786Spselse 4957221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4958191930Sdelphij$as_echo "no" >&6; } 495960786Spsfi 4960221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4961221715Sdelphij conftest$ac_exeext conftest.$ac_ext 496260786Sps 4963221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5 4964191930Sdelphij$as_echo_n "checking for sys_errlist... " >&6; } 4965221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966170256Sdelphij/* end confdefs.h. */ 496760786Sps 4968128345Stjrint 4969128345Stjrmain () 4970128345Stjr{ 497160786Spsextern char *sys_errlist[]; static char **x; x = sys_errlist; 4972128345Stjr ; 4973128345Stjr return 0; 4974128345Stjr} 4975128345Stjr_ACEOF 4976221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4977221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4978221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 497960786Sps 498060786Spselse 4981221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982191930Sdelphij$as_echo "no" >&6; } 498360786Spsfi 4984221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4985221715Sdelphij conftest$ac_exeext conftest.$ac_ext 498660786Sps 4987221715Sdelphijac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h> 4988221715Sdelphij" 4989221715Sdelphijif test "x$ac_cv_type_sigset_t" = x""yes; then : 499063128Sps 4991170256Sdelphijcat >>confdefs.h <<_ACEOF 499263128Sps#define HAVE_SIGSET_T 1 4993128345Stjr_ACEOF 499463128Sps 4995170256Sdelphij 499663128Spsfi 499763128Sps 4998170256Sdelphij 4999221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5 5000191930Sdelphij$as_echo_n "checking for sigemptyset... " >&6; } 5001221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002170256Sdelphij/* end confdefs.h. */ 500363128Sps 500463128Sps#include <signal.h> 500563128Sps 5006128345Stjrint 5007128345Stjrmain () 5008128345Stjr{ 500963128Spssigset_t s; sigemptyset(&s); 5010128345Stjr ; 5011128345Stjr return 0; 5012128345Stjr} 5013128345Stjr_ACEOF 5014221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5015221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5016221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h 501763128Sps 501863128Spselse 5019221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020191930Sdelphij$as_echo "no" >&6; } 502163128Spsfi 5022221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5023221715Sdelphij conftest$ac_exeext conftest.$ac_ext 502463128Sps 502560786Spshave_errno=no 5026221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5 5027191930Sdelphij$as_echo_n "checking for errno... " >&6; } 5028221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029170256Sdelphij/* end confdefs.h. */ 503060786Sps 503160786Sps#if HAVE_ERRNO_H 503260786Sps#include <errno.h> 503360786Sps#endif 5034128345Stjrint 5035128345Stjrmain () 5036128345Stjr{ 503760786Spsstatic int x; x = errno; 5038128345Stjr ; 5039128345Stjr return 0; 5040128345Stjr} 5041128345Stjr_ACEOF 5042221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5043221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5 5044221715Sdelphij$as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h 504560786Sps have_errno=yes 504660786Spsfi 5047221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5048221715Sdelphij conftest$ac_exeext conftest.$ac_ext 504960786Spsif test $have_errno = no; then 5050221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051170256Sdelphij/* end confdefs.h. */ 505260786Sps 505360786Sps#if HAVE_ERRNO_H 505460786Sps#include <errno.h> 505560786Sps#endif 5056128345Stjrint 5057128345Stjrmain () 5058128345Stjr{ 505960786Spsextern int errno; static int x; x = errno; 5060128345Stjr ; 5061128345Stjr return 0; 5062128345Stjr} 5063128345Stjr_ACEOF 5064221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5065221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5 5066221715Sdelphij$as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h 5067221715Sdelphij $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h 506860786Sps 506960786Spselse 5070221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5071191930Sdelphij$as_echo "no" >&6; } 507260786Spsfi 5073221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5074221715Sdelphij conftest$ac_exeext conftest.$ac_ext 507560786Spsfi 507660786Sps 5077221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5 5078191930Sdelphij$as_echo_n "checking for locale... " >&6; } 5079221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080170256Sdelphij/* end confdefs.h. */ 508160786Sps#include <locale.h> 508260786Sps#include <ctype.h> 5083172468Sdelphij#include <langinfo.h> 5084128345Stjrint 5085128345Stjrmain () 5086128345Stjr{ 508760786Spssetlocale(LC_CTYPE,""); isprint(0); iscntrl(0); 5088128345Stjr ; 5089128345Stjr return 0; 5090128345Stjr} 5091128345Stjr_ACEOF 5092221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5093221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5094221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h 509560786Sps 509660786Spselse 5097221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5098191930Sdelphij$as_echo "no" >&6; } 509960786Spsfi 5100221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5101221715Sdelphij conftest$ac_exeext conftest.$ac_ext 5102170256Sdelphij 5103221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5 5104191930Sdelphij$as_echo_n "checking for ctype functions... " >&6; } 5105221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106170256Sdelphij/* end confdefs.h. */ 510760786Sps 510860786Sps#if HAVE_CTYPE_H 510960786Sps#include <ctype.h> 511060786Sps#endif 5111128345Stjrint 5112128345Stjrmain () 5113128345Stjr{ 511460786Spsstatic int x; x = isupper(x); x = tolower(x); x = toupper(x); 5115128345Stjr ; 5116128345Stjr return 0; 5117128345Stjr} 5118128345Stjr_ACEOF 5119221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5120221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5121221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h 512260786Sps 512360786Spselse 5124221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5125191930Sdelphij$as_echo "no" >&6; } 512660786Spsfi 5127221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5128221715Sdelphij conftest$ac_exeext conftest.$ac_ext 512960786Sps 5130221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5 5131191930Sdelphij$as_echo_n "checking for wctype functions... " >&6; } 5132221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133173682Sdelphij/* end confdefs.h. */ 5134173682Sdelphij#include <wctype.h> 5135173682Sdelphijint 5136173682Sdelphijmain () 5137173682Sdelphij{ 5138173682Sdelphijiswlower(0); iswupper(0); towlower(0); towupper(0); 5139173682Sdelphij ; 5140173682Sdelphij return 0; 5141173682Sdelphij} 5142173682Sdelphij_ACEOF 5143221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5144221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5145221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h 5146173682Sdelphij 5147173682Sdelphijelse 5148221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149191930Sdelphij$as_echo "no" >&6; } 5150173682Sdelphijfi 5151221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5152221715Sdelphij conftest$ac_exeext conftest.$ac_ext 5153173682Sdelphij 5154128345Stjr# Checks for external variable ospeed in the termcap library. 515560786Spshave_ospeed=no 5156221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5 5157191930Sdelphij$as_echo_n "checking termcap for ospeed... " >&6; } 5158221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159170256Sdelphij/* end confdefs.h. */ 516060786Sps 516160786Sps#include <sys/types.h> 516260786Sps#if HAVE_TERMIOS_H 516360786Sps#include <termios.h> 516460786Sps#endif 516560786Sps#if HAVE_TERMCAP_H 516660786Sps#include <termcap.h> 516760786Sps#endif 5168128345Stjrint 5169128345Stjrmain () 5170128345Stjr{ 517160786Spsospeed = 0; 5172128345Stjr ; 5173128345Stjr return 0; 5174128345Stjr} 5175128345Stjr_ACEOF 5176221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5177221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5 5178221715Sdelphij$as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 517960786Sps have_ospeed=yes 518060786Spsfi 5181221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5182221715Sdelphij conftest$ac_exeext conftest.$ac_ext 518360786Spsif test $have_ospeed = no; then 5184221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5185170256Sdelphij/* end confdefs.h. */ 518660786Sps 5187128345Stjrint 5188128345Stjrmain () 5189128345Stjr{ 519060786Spsextern short ospeed; ospeed = 0; 5191128345Stjr ; 5192128345Stjr return 0; 5193128345Stjr} 5194128345Stjr_ACEOF 5195221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5196221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5 5197221715Sdelphij$as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 5198221715Sdelphij $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h 519960786Sps 520060786Spselse 5201221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202191930Sdelphij$as_echo "no" >&6; } 520360786Spsfi 5204221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5205221715Sdelphij conftest$ac_exeext conftest.$ac_ext 520660786Spsfi 520760786Sps 5208161475Sdelphij# Compile in secure mode? 5209161475Sdelphij 5210170256Sdelphij# Check whether --with-secure was given. 5211221715Sdelphijif test "${with_secure+set}" = set; then : 5212221715Sdelphij withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h 5213161475Sdelphij 5214161475Sdelphijelse 5215221715Sdelphij $as_echo "#define SECURE_COMPILE 0" >>confdefs.h 5216221715Sdelphij 5217221715Sdelphijfi 5218221715Sdelphij 5219221715Sdelphij 5220221715Sdelphij# Should we use floating point? 5221221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5 5222221715Sdelphij$as_echo_n "checking for floating point... " >&6; } 5223221715Sdelphij 5224221715Sdelphij# Check whether --with-no-float was given. 5225221715Sdelphijif test "${with_no_float+set}" = set; then : 5226221715Sdelphij withval=$with_no_float; WANT_NO_FLOAT=1 5227221715Sdelphijelse 5228221715Sdelphij WANT_NO_FLOAT=0 5229221715Sdelphijfi 5230221715Sdelphij 5231221715Sdelphijif test $WANT_NO_FLOAT = 0; then 5232221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233221715Sdelphij/* end confdefs.h. */ 5234221715Sdelphij 5235221715Sdelphijint 5236221715Sdelphijmain () 5237221715Sdelphij{ 5238221715Sdelphijdouble f1 = 12.5; double f2 = f1*f1/2.5; 5239221715Sdelphij ; 5240221715Sdelphij return 0; 5241221715Sdelphij} 5242161475Sdelphij_ACEOF 5243221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5244221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5245221715Sdelphij$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h 5246161475Sdelphij 5247221715Sdelphijelse 5248221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5249221715Sdelphij$as_echo "no" >&6; } 5250170256Sdelphijfi 5251221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5252221715Sdelphij conftest$ac_exeext conftest.$ac_ext 5253221715Sdelphijelse 5254221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5 5255221715Sdelphij$as_echo "disabled by user" >&6; } 5256221715Sdelphijfi 5257161475Sdelphij 5258128345Stjr# Checks for regular expression functions. 525960786Spshave_regex=no 526060786Spshave_posix_regex=unknown 5261221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5 5262191930Sdelphij$as_echo_n "checking for regcomp... " >&6; } 526360786Sps 5264161475Sdelphij# Select a regular expression library. 526560786SpsWANT_REGEX=auto 5266128345Stjr 5267170256Sdelphij# Check whether --with-regex was given. 5268221715Sdelphijif test "${with_regex+set}" = set; then : 5269170256Sdelphij withval=$with_regex; WANT_REGEX="$withval" 5270170256Sdelphijfi 527160786Sps 5272170256Sdelphij 527360786Spsif test $have_regex = no; then 527460786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = posix; then 5275128345Stjr# Some versions of Solaris have a regcomp() function, but it doesn't work! 5276128345Stjr# So we run a test program. If we're cross-compiling, do it the old way. 5277221715Sdelphijif test "$cross_compiling" = yes; then : 527860786Sps have_posix_regex=unknown 527960786Spselse 5280221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281170256Sdelphij/* end confdefs.h. */ 528260786Sps 528360786Sps#include <sys/types.h> 528460786Sps#include <regex.h> 528560786Spsmain() { regex_t r; regmatch_t rm; char *text = "xabcy"; 528660786Spsif (regcomp(&r, "abc", 0)) exit(1); 528760786Spsif (regexec(&r, text, 1, &rm, 0)) exit(1); 528860786Sps#ifndef __WATCOMC__ 528960786Spsif (rm.rm_so != 1) exit(1); /* check for correct offset */ 529060786Sps#else 529160786Spsif (rm.rm_sp != text + 1) exit(1); /* check for correct offset */ 529260786Sps#endif 529360786Spsexit(0); } 5294128345Stjr_ACEOF 5295221715Sdelphijif ac_fn_c_try_run "$LINENO"; then : 529660786Sps have_posix_regex=yes 529760786Spselse 5298221715Sdelphij have_posix_regex=no 529960786Spsfi 5300221715Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5301221715Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 530260786Spsfi 5303170256Sdelphij 530460786Spsif test $have_posix_regex = yes; then 5305221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5 5306191930Sdelphij$as_echo "using POSIX regcomp" >&6; } 5307221715Sdelphij $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h 530860786Sps 530960786Sps have_regex=yes 531060786Spselif test $have_posix_regex = unknown; then 5311221715Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312170256Sdelphij/* end confdefs.h. */ 531360786Sps 531460786Sps#include <sys/types.h> 531560786Sps#include <regex.h> 5316128345Stjrint 5317128345Stjrmain () 5318128345Stjr{ 531960786Spsregex_t *r; regfree(r); 5320128345Stjr ; 5321128345Stjr return 0; 5322128345Stjr} 5323128345Stjr_ACEOF 5324221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5325221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5 5326191930Sdelphij$as_echo "using POSIX regcomp" >&6; } 5327221715Sdelphij $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h 532860786Sps have_regex=yes 532960786Spsfi 5330221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5331221715Sdelphij conftest$ac_exeext conftest.$ac_ext 533260786Spselse 5333221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334191930Sdelphij$as_echo "no" >&6; } 533560786Spsfi 533660786Spsfi 533760786Spsfi 533860786Sps 533960786Spsif test $have_regex = no; then 534060786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then 5341221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 5342191930Sdelphij$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 5343221715Sdelphijif test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then : 5344191930Sdelphij $as_echo_n "(cached) " >&6 534560786Spselse 5346128345Stjr ac_check_lib_save_LIBS=$LIBS 534760786SpsLIBS="-lpcre $LIBS" 5348221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349170256Sdelphij/* end confdefs.h. */ 5350128345Stjr 5351170256Sdelphij/* Override any GCC internal prototype to avoid an error. 5352170256Sdelphij Use char because int might match the return type of a GCC 5353170256Sdelphij builtin and then its argument prototype would still apply. */ 5354128345Stjr#ifdef __cplusplus 5355128345Stjrextern "C" 5356128345Stjr#endif 5357128345Stjrchar pcre_compile (); 5358128345Stjrint 5359128345Stjrmain () 5360128345Stjr{ 5361170256Sdelphijreturn pcre_compile (); 5362128345Stjr ; 5363128345Stjr return 0; 5364128345Stjr} 5365128345Stjr_ACEOF 5366221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5367128345Stjr ac_cv_lib_pcre_pcre_compile=yes 536860786Spselse 5369221715Sdelphij ac_cv_lib_pcre_pcre_compile=no 537060786Spsfi 5371221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5372221715Sdelphij conftest$ac_exeext conftest.$ac_ext 5373128345StjrLIBS=$ac_check_lib_save_LIBS 537460786Spsfi 5375221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 5376191930Sdelphij$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 5377221715Sdelphijif test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then : 5378221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: using pcre" >&5 5379221715Sdelphij$as_echo "using pcre" >&6; }; $as_echo "#define HAVE_PCRE 1" >>confdefs.h 538060786Sps LIBS="$LIBS -lpcre" have_regex=yes 538160786Spsfi 538260786Sps 538360786Spsfi 538460786Spsfi 538560786Sps 538660786Spsif test $have_regex = no; then 538760786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then 5388221715Sdelphijac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp" 5389221715Sdelphijif test "x$ac_cv_func_regcmp" = x""yes; then : 5390221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: using regcmp" >&5 5391221715Sdelphij$as_echo "using regcmp" >&6; }; $as_echo "#define HAVE_REGCMP 1" >>confdefs.h 539260786Sps have_regex=yes 539360786Spsfi 539460786Sps 539560786Spsfi 539660786Spsfi 539760786Sps 539860786Spsif test $have_regex = no; then 539960786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then 5400221715Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401170256Sdelphij/* end confdefs.h. */ 540260786Sps 540360786Sps#include "regexp.h" 5404128345Stjrint 5405128345Stjrmain () 5406128345Stjr{ 540760786Spsregcomp(""); 5408128345Stjr ; 5409128345Stjr return 0; 5410128345Stjr} 5411128345Stjr_ACEOF 5412221715Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5413221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp" >&5 5414221715Sdelphij$as_echo "using V8 regcomp" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h 541560786Sps have_regex=yes 541660786Spsfi 5417221715Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5418221715Sdelphij conftest$ac_exeext conftest.$ac_ext 541960786Spsfi 542060786Spsfi 542160786Sps 542260786Spsif test $have_regex = no && test -f ${srcdir}/regexp.c; then 542360786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then 5424221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5 5425221715Sdelphij$as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h 5426221715Sdelphij $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h 542760786Sps REGEX_O='regexp.$(O)' have_regex=yes 542860786Spsfi 542960786Spsfi 543060786Sps 543160786Spsif test $have_regex = no; then 543260786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then 5433221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using re_comp" >&5 5434221715Sdelphij$as_echo "using re_comp" >&6; }; ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp" 5435221715Sdelphijif test "x$ac_cv_func_re_comp" = x""yes; then : 5436221715Sdelphij $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h 543760786Sps have_regex=yes 543860786Spsfi 543960786Sps 544060786Spsfi 544160786Spsfi 544260786Sps 544360786Spsif test $have_regex = no; then 5444221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find regular expression library" >&5 5445221715Sdelphij$as_echo "cannot find regular expression library" >&6; }; $as_echo "#define NO_REGEX 1" >>confdefs.h 544660786Sps 544760786Spsfi 544860786Sps 5449128345Stjr 5450170256Sdelphij# Check whether --with-editor was given. 5451221715Sdelphijif test "${with_editor+set}" = set; then : 5452170256Sdelphij withval=$with_editor; cat >>confdefs.h <<_ACEOF 545360786Sps#define EDIT_PGM "$withval" 5454128345Stjr_ACEOF 545560786Sps 5456128345Stjrelse 5457221715Sdelphij $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h 545860786Sps 5459170256Sdelphijfi 546060786Sps 5461128345Stjr 5462128345Stjr 5463128345Stjr 5464170256Sdelphijac_config_files="$ac_config_files Makefile" 5465170256Sdelphij 5466128345Stjrcat >confcache <<\_ACEOF 546760786Sps# This file is a shell script that caches the results of configure 546860786Sps# tests run on this system so they can be shared between configure 5469128345Stjr# scripts and configure runs, see configure's option --config-cache. 5470128345Stjr# It is not useful on other systems. If it contains results you don't 5471128345Stjr# want to keep, you may remove or edit it. 547260786Sps# 5473128345Stjr# config.status only pays attention to the cache file if you give it 5474128345Stjr# the --recheck option to rerun configure. 547560786Sps# 5476128345Stjr# `ac_cv_env_foo' variables (set or unset) will be overridden when 5477128345Stjr# loading this file, other *unset* `ac_cv_foo' will be assigned the 5478128345Stjr# following values. 5479128345Stjr 5480128345Stjr_ACEOF 5481128345Stjr 548260786Sps# The following way of writing the cache mishandles newlines in values, 548360786Sps# but we know of no workaround that is simple, portable, and efficient. 5484170256Sdelphij# So, we kill variables containing newlines. 548560786Sps# Ultrix sh set writes to stderr and can't be redirected directly, 548660786Sps# and sets the high bit in the cache file unless we assign to the vars. 5487170256Sdelphij( 5488170256Sdelphij for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5489170256Sdelphij eval ac_val=\$$ac_var 5490170256Sdelphij case $ac_val in #( 5491170256Sdelphij *${as_nl}*) 5492170256Sdelphij case $ac_var in #( 5493221715Sdelphij *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5494191930Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5495170256Sdelphij esac 5496170256Sdelphij case $ac_var in #( 5497170256Sdelphij _ | IFS | as_nl) ;; #( 5498191930Sdelphij BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5499221715Sdelphij *) { eval $ac_var=; unset $ac_var;} ;; 5500170256Sdelphij esac ;; 5501170256Sdelphij esac 5502170256Sdelphij done 5503170256Sdelphij 5504128345Stjr (set) 2>&1 | 5505170256Sdelphij case $as_nl`(ac_space=' '; set) 2>&1` in #( 5506170256Sdelphij *${as_nl}ac_space=\ *) 5507221715Sdelphij # `set' does not quote correctly, so add quotes: double-quote 5508221715Sdelphij # substitution turns \\\\ into \\, and sed turns \\ into \. 5509128345Stjr sed -n \ 5510170256Sdelphij "s/'/'\\\\''/g; 5511170256Sdelphij s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5512170256Sdelphij ;; #( 5513128345Stjr *) 5514128345Stjr # `set' quotes correctly as required by POSIX, so do not add quotes. 5515170256Sdelphij sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5516128345Stjr ;; 5517170256Sdelphij esac | 5518170256Sdelphij sort 5519170256Sdelphij) | 5520128345Stjr sed ' 5521170256Sdelphij /^ac_cv_env_/b end 5522128345Stjr t clear 5523170256Sdelphij :clear 5524128345Stjr s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5525128345Stjr t end 5526170256Sdelphij s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5527170256Sdelphij :end' >>confcache 5528170256Sdelphijif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5529170256Sdelphij if test -w "$cache_file"; then 5530170256Sdelphij test "x$cache_file" != "x/dev/null" && 5531221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5532191930Sdelphij$as_echo "$as_me: updating cache $cache_file" >&6;} 5533128345Stjr cat confcache >$cache_file 553460786Sps else 5535221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5536191930Sdelphij$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 553760786Sps fi 553860786Spsfi 553960786Spsrm -f confcache 554060786Sps 554160786Spstest "x$prefix" = xNONE && prefix=$ac_default_prefix 554260786Sps# Let make expand exec_prefix. 554360786Spstest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 554460786Sps 554560786SpsDEFS=-DHAVE_CONFIG_H 554660786Sps 5547128345Stjrac_libobjs= 5548128345Stjrac_ltlibobjs= 5549221715SdelphijU= 5550128345Stjrfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5551128345Stjr # 1. Remove the extension, and $U if already installed. 5552170256Sdelphij ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5553191930Sdelphij ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5554170256Sdelphij # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5555170256Sdelphij # will be set to the directory where LIBOBJS objects are built. 5556221715Sdelphij as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5557221715Sdelphij as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5558128345Stjrdone 5559128345StjrLIBOBJS=$ac_libobjs 5560128345Stjr 5561128345StjrLTLIBOBJS=$ac_ltlibobjs 5562128345Stjr 5563128345Stjr 5564128345Stjr 556560786Sps: ${CONFIG_STATUS=./config.status} 5566191930Sdelphijac_write_fail=0 5567128345Stjrac_clean_files_save=$ac_clean_files 5568128345Stjrac_clean_files="$ac_clean_files $CONFIG_STATUS" 5569221715Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5570191930Sdelphij$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5571221715Sdelphijas_write_fail=0 5572221715Sdelphijcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5573128345Stjr#! $SHELL 5574128345Stjr# Generated by $as_me. 557560786Sps# Run this file to recreate the current configuration. 557660786Sps# Compiler output produced by configure, useful for debugging 5577128345Stjr# configure, is in config.log if it exists. 557860786Sps 5579128345Stjrdebug=false 5580170256Sdelphijac_cs_recheck=false 5581170256Sdelphijac_cs_silent=false 5582221715Sdelphij 5583128345StjrSHELL=\${CONFIG_SHELL-$SHELL} 5584221715Sdelphijexport SHELL 5585221715Sdelphij_ASEOF 5586221715Sdelphijcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5587221715Sdelphij## -------------------- ## 5588221715Sdelphij## M4sh Initialization. ## 5589221715Sdelphij## -------------------- ## 5590128345Stjr 5591170256Sdelphij# Be more Bourne compatible 5592170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh 5593221715Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5594128345Stjr emulate sh 5595128345Stjr NULLCMD=: 5596191930Sdelphij # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5597128345Stjr # is contrary to our usage. Disable this feature. 5598128345Stjr alias -g '${1+"$@"}'='"$@"' 5599170256Sdelphij setopt NO_GLOB_SUBST 5600170256Sdelphijelse 5601221715Sdelphij case `(set -o) 2>/dev/null` in #( 5602221715Sdelphij *posix*) : 5603221715Sdelphij set -o posix ;; #( 5604221715Sdelphij *) : 5605221715Sdelphij ;; 5606170256Sdelphijesac 5607128345Stjrfi 5608128345Stjr 5609170256Sdelphij 5610191930Sdelphijas_nl=' 5611191930Sdelphij' 5612191930Sdelphijexport as_nl 5613191930Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf. 5614191930Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5615191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5616191930Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5617221715Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris, 5618221715Sdelphij# but without wasting forks for bash or zsh. 5619221715Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \ 5620221715Sdelphij && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5621221715Sdelphij as_echo='print -r --' 5622221715Sdelphij as_echo_n='print -rn --' 5623221715Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5624191930Sdelphij as_echo='printf %s\n' 5625191930Sdelphij as_echo_n='printf %s' 5626191930Sdelphijelse 5627191930Sdelphij if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5628191930Sdelphij as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5629191930Sdelphij as_echo_n='/usr/ucb/echo -n' 5630170256Sdelphij else 5631191930Sdelphij as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5632191930Sdelphij as_echo_n_body='eval 5633191930Sdelphij arg=$1; 5634221715Sdelphij case $arg in #( 5635191930Sdelphij *"$as_nl"*) 5636191930Sdelphij expr "X$arg" : "X\\(.*\\)$as_nl"; 5637191930Sdelphij arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5638191930Sdelphij esac; 5639191930Sdelphij expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5640191930Sdelphij ' 5641191930Sdelphij export as_echo_n_body 5642191930Sdelphij as_echo_n='sh -c $as_echo_n_body as_echo' 5643170256Sdelphij fi 5644191930Sdelphij export as_echo_body 5645191930Sdelphij as_echo='sh -c $as_echo_body as_echo' 5646170256Sdelphijfi 5647170256Sdelphij 5648191930Sdelphij# The user is always right. 5649191930Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 5650191930Sdelphij PATH_SEPARATOR=: 5651191930Sdelphij (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5652191930Sdelphij (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5653191930Sdelphij PATH_SEPARATOR=';' 5654191930Sdelphij } 5655191930Sdelphijfi 5656191930Sdelphij 5657128345Stjr 5658170256Sdelphij# IFS 5659170256Sdelphij# We need space, tab and new line, in precisely that order. Quoting is 5660170256Sdelphij# there to prevent editors from complaining about space-tab. 5661170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5662170256Sdelphij# splitting by setting IFS to empty value.) 5663170256SdelphijIFS=" "" $as_nl" 5664170256Sdelphij 5665170256Sdelphij# Find who we are. Look in the path if we contain no directory separator. 5666221715Sdelphijcase $0 in #(( 5667170256Sdelphij *[\\/]* ) as_myself=$0 ;; 5668170256Sdelphij *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669170256Sdelphijfor as_dir in $PATH 5670170256Sdelphijdo 5671170256Sdelphij IFS=$as_save_IFS 5672170256Sdelphij test -z "$as_dir" && as_dir=. 5673221715Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5674221715Sdelphij done 5675170256SdelphijIFS=$as_save_IFS 5676170256Sdelphij 5677170256Sdelphij ;; 5678170256Sdelphijesac 5679170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND' 5680170256Sdelphij# in which case we are not to be found in the path. 5681170256Sdelphijif test "x$as_myself" = x; then 5682170256Sdelphij as_myself=$0 5683170256Sdelphijfi 5684170256Sdelphijif test ! -f "$as_myself"; then 5685191930Sdelphij $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5686221715Sdelphij exit 1 5687170256Sdelphijfi 5688170256Sdelphij 5689221715Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in 5690221715Sdelphij# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5691221715Sdelphij# suppresses any "Segmentation fault" message there. '((' could 5692221715Sdelphij# trigger a bug in pdksh 5.2.14. 5693221715Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH 5694221715Sdelphijdo eval test x\${$as_var+set} = xset \ 5695221715Sdelphij && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5696170256Sdelphijdone 5697128345StjrPS1='$ ' 5698128345StjrPS2='> ' 5699128345StjrPS4='+ ' 5700128345Stjr 5701128345Stjr# NLS nuisances. 5702191930SdelphijLC_ALL=C 5703191930Sdelphijexport LC_ALL 5704191930SdelphijLANGUAGE=C 5705191930Sdelphijexport LANGUAGE 570660786Sps 5707221715Sdelphij# CDPATH. 5708221715Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5709221715Sdelphij 5710221715Sdelphij 5711221715Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD] 5712221715Sdelphij# ---------------------------------------- 5713221715Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5714221715Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5715221715Sdelphij# script with STATUS, using 1 if that was 0. 5716221715Sdelphijas_fn_error () 5717221715Sdelphij{ 5718221715Sdelphij as_status=$1; test $as_status -eq 0 && as_status=1 5719221715Sdelphij if test "$4"; then 5720221715Sdelphij as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5721221715Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5722221715Sdelphij fi 5723221715Sdelphij $as_echo "$as_me: error: $2" >&2 5724221715Sdelphij as_fn_exit $as_status 5725221715Sdelphij} # as_fn_error 5726221715Sdelphij 5727221715Sdelphij 5728221715Sdelphij# as_fn_set_status STATUS 5729221715Sdelphij# ----------------------- 5730221715Sdelphij# Set $? to STATUS, without forking. 5731221715Sdelphijas_fn_set_status () 5732221715Sdelphij{ 5733221715Sdelphij return $1 5734221715Sdelphij} # as_fn_set_status 5735221715Sdelphij 5736221715Sdelphij# as_fn_exit STATUS 5737221715Sdelphij# ----------------- 5738221715Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5739221715Sdelphijas_fn_exit () 5740221715Sdelphij{ 5741221715Sdelphij set +e 5742221715Sdelphij as_fn_set_status $1 5743221715Sdelphij exit $1 5744221715Sdelphij} # as_fn_exit 5745221715Sdelphij 5746221715Sdelphij# as_fn_unset VAR 5747221715Sdelphij# --------------- 5748221715Sdelphij# Portably unset VAR. 5749221715Sdelphijas_fn_unset () 5750221715Sdelphij{ 5751221715Sdelphij { eval $1=; unset $1;} 5752221715Sdelphij} 5753221715Sdelphijas_unset=as_fn_unset 5754221715Sdelphij# as_fn_append VAR VALUE 5755221715Sdelphij# ---------------------- 5756221715Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take 5757221715Sdelphij# advantage of any shell optimizations that allow amortized linear growth over 5758221715Sdelphij# repeated appends, instead of the typical quadratic growth present in naive 5759221715Sdelphij# implementations. 5760221715Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5761221715Sdelphij eval 'as_fn_append () 5762221715Sdelphij { 5763221715Sdelphij eval $1+=\$2 5764221715Sdelphij }' 5765221715Sdelphijelse 5766221715Sdelphij as_fn_append () 5767221715Sdelphij { 5768221715Sdelphij eval $1=\$$1\$2 5769221715Sdelphij } 5770221715Sdelphijfi # as_fn_append 5771221715Sdelphij 5772221715Sdelphij# as_fn_arith ARG... 5773221715Sdelphij# ------------------ 5774221715Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the 5775221715Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments 5776221715Sdelphij# must be portable across $(()) and expr. 5777221715Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5778221715Sdelphij eval 'as_fn_arith () 5779221715Sdelphij { 5780221715Sdelphij as_val=$(( $* )) 5781221715Sdelphij }' 5782221715Sdelphijelse 5783221715Sdelphij as_fn_arith () 5784221715Sdelphij { 5785221715Sdelphij as_val=`expr "$@" || test $? -eq 1` 5786221715Sdelphij } 5787221715Sdelphijfi # as_fn_arith 5788221715Sdelphij 5789221715Sdelphij 5790170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 5791170256Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 5792128345Stjr as_expr=expr 5793128345Stjrelse 5794128345Stjr as_expr=false 5795128345Stjrfi 579660786Sps 5797170256Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5798128345Stjr as_basename=basename 5799128345Stjrelse 5800128345Stjr as_basename=false 5801128345Stjrfi 580260786Sps 5803221715Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5804221715Sdelphij as_dirname=dirname 5805221715Sdelphijelse 5806221715Sdelphij as_dirname=false 5807221715Sdelphijfi 580860786Sps 5809170256Sdelphijas_me=`$as_basename -- "$0" || 5810128345Stjr$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5811128345Stjr X"$0" : 'X\(//\)$' \| \ 5812170256Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 5813191930Sdelphij$as_echo X/"$0" | 5814170256Sdelphij sed '/^.*\/\([^/][^/]*\)\/*$/{ 5815170256Sdelphij s//\1/ 5816170256Sdelphij q 5817170256Sdelphij } 5818170256Sdelphij /^X\/\(\/\/\)$/{ 5819170256Sdelphij s//\1/ 5820170256Sdelphij q 5821170256Sdelphij } 5822170256Sdelphij /^X\/\(\/\).*/{ 5823170256Sdelphij s//\1/ 5824170256Sdelphij q 5825170256Sdelphij } 5826170256Sdelphij s/.*/./; q'` 582760786Sps 5828221715Sdelphij# Avoid depending upon Character Ranges. 5829221715Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5830221715Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5831221715Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5832221715Sdelphijas_cr_digits='0123456789' 5833221715Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 583460786Sps 5835170256SdelphijECHO_C= ECHO_N= ECHO_T= 5836221715Sdelphijcase `echo -n x` in #((((( 5837170256Sdelphij-n*) 5838221715Sdelphij case `echo 'xy\c'` in 5839170256Sdelphij *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5840221715Sdelphij xy) ECHO_C='\c';; 5841221715Sdelphij *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5842221715Sdelphij ECHO_T=' ';; 5843170256Sdelphij esac;; 5844170256Sdelphij*) 5845170256Sdelphij ECHO_N='-n';; 5846128345Stjresac 5847128345Stjr 5848128345Stjrrm -f conf$$ conf$$.exe conf$$.file 5849170256Sdelphijif test -d conf$$.dir; then 5850170256Sdelphij rm -f conf$$.dir/conf$$.file 5851170256Sdelphijelse 5852170256Sdelphij rm -f conf$$.dir 5853191930Sdelphij mkdir conf$$.dir 2>/dev/null 5854170256Sdelphijfi 5855191930Sdelphijif (echo >conf$$.file) 2>/dev/null; then 5856191930Sdelphij if ln -s conf$$.file conf$$ 2>/dev/null; then 5857191930Sdelphij as_ln_s='ln -s' 5858191930Sdelphij # ... but there are two gotchas: 5859191930Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5860191930Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5861191930Sdelphij # In both cases, we have to default to `cp -p'. 5862191930Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5863191930Sdelphij as_ln_s='cp -p' 5864191930Sdelphij elif ln conf$$.file conf$$ 2>/dev/null; then 5865191930Sdelphij as_ln_s=ln 5866191930Sdelphij else 5867128345Stjr as_ln_s='cp -p' 5868191930Sdelphij fi 5869128345Stjrelse 5870128345Stjr as_ln_s='cp -p' 5871128345Stjrfi 5872170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5873170256Sdelphijrmdir conf$$.dir 2>/dev/null 5874128345Stjr 5875221715Sdelphij 5876221715Sdelphij# as_fn_mkdir_p 5877221715Sdelphij# ------------- 5878221715Sdelphij# Create "$as_dir" as a directory, including parents if necessary. 5879221715Sdelphijas_fn_mkdir_p () 5880221715Sdelphij{ 5881221715Sdelphij 5882221715Sdelphij case $as_dir in #( 5883221715Sdelphij -*) as_dir=./$as_dir;; 5884221715Sdelphij esac 5885221715Sdelphij test -d "$as_dir" || eval $as_mkdir_p || { 5886221715Sdelphij as_dirs= 5887221715Sdelphij while :; do 5888221715Sdelphij case $as_dir in #( 5889221715Sdelphij *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5890221715Sdelphij *) as_qdir=$as_dir;; 5891221715Sdelphij esac 5892221715Sdelphij as_dirs="'$as_qdir' $as_dirs" 5893221715Sdelphij as_dir=`$as_dirname -- "$as_dir" || 5894221715Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5895221715Sdelphij X"$as_dir" : 'X\(//\)[^/]' \| \ 5896221715Sdelphij X"$as_dir" : 'X\(//\)$' \| \ 5897221715Sdelphij X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5898221715Sdelphij$as_echo X"$as_dir" | 5899221715Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5900221715Sdelphij s//\1/ 5901221715Sdelphij q 5902221715Sdelphij } 5903221715Sdelphij /^X\(\/\/\)[^/].*/{ 5904221715Sdelphij s//\1/ 5905221715Sdelphij q 5906221715Sdelphij } 5907221715Sdelphij /^X\(\/\/\)$/{ 5908221715Sdelphij s//\1/ 5909221715Sdelphij q 5910221715Sdelphij } 5911221715Sdelphij /^X\(\/\).*/{ 5912221715Sdelphij s//\1/ 5913221715Sdelphij q 5914221715Sdelphij } 5915221715Sdelphij s/.*/./; q'` 5916221715Sdelphij test -d "$as_dir" && break 5917221715Sdelphij done 5918221715Sdelphij test -z "$as_dirs" || eval "mkdir $as_dirs" 5919221715Sdelphij } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5920221715Sdelphij 5921221715Sdelphij 5922221715Sdelphij} # as_fn_mkdir_p 5923128345Stjrif mkdir -p . 2>/dev/null; then 5924221715Sdelphij as_mkdir_p='mkdir -p "$as_dir"' 5925128345Stjrelse 5926170256Sdelphij test -d ./-p && rmdir ./-p 5927128345Stjr as_mkdir_p=false 5928128345Stjrfi 5929128345Stjr 5930170256Sdelphijif test -x / >/dev/null 2>&1; then 5931170256Sdelphij as_test_x='test -x' 5932170256Sdelphijelse 5933170256Sdelphij if ls -dL / >/dev/null 2>&1; then 5934170256Sdelphij as_ls_L_option=L 5935170256Sdelphij else 5936170256Sdelphij as_ls_L_option= 5937170256Sdelphij fi 5938170256Sdelphij as_test_x=' 5939170256Sdelphij eval sh -c '\'' 5940170256Sdelphij if test -d "$1"; then 5941191930Sdelphij test -d "$1/."; 5942170256Sdelphij else 5943221715Sdelphij case $1 in #( 5944191930Sdelphij -*)set "./$1";; 5945170256Sdelphij esac; 5946221715Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5947170256Sdelphij ???[sx]*):;;*)false;;esac;fi 5948170256Sdelphij '\'' sh 5949170256Sdelphij ' 5950170256Sdelphijfi 5951170256Sdelphijas_executable_p=$as_test_x 5952128345Stjr 5953128345Stjr# Sed expression to map a string onto a valid CPP name. 5954170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5955128345Stjr 5956128345Stjr# Sed expression to map a string onto a valid variable name. 5957170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5958128345Stjr 5959128345Stjr 5960128345Stjrexec 6>&1 5961221715Sdelphij## ----------------------------------- ## 5962221715Sdelphij## Main body of $CONFIG_STATUS script. ## 5963221715Sdelphij## ----------------------------------- ## 5964221715Sdelphij_ASEOF 5965221715Sdelphijtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5966128345Stjr 5967221715Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5968221715Sdelphij# Save the log message, to keep $0 and so on meaningful, and to 5969128345Stjr# report actual input values of CONFIG_FILES etc. instead of their 5970170256Sdelphij# values after options handling. 5971170256Sdelphijac_log=" 5972128345StjrThis file was extended by less $as_me 1, which was 5973221715Sdelphijgenerated by GNU Autoconf 2.67. Invocation command line was 5974128345Stjr 5975128345Stjr CONFIG_FILES = $CONFIG_FILES 5976128345Stjr CONFIG_HEADERS = $CONFIG_HEADERS 5977128345Stjr CONFIG_LINKS = $CONFIG_LINKS 5978128345Stjr CONFIG_COMMANDS = $CONFIG_COMMANDS 5979128345Stjr $ $0 $@ 5980128345Stjr 5981170256Sdelphijon `(hostname || uname -n) 2>/dev/null | sed 1q` 5982170256Sdelphij" 5983170256Sdelphij 5984128345Stjr_ACEOF 5985128345Stjr 5986191930Sdelphijcase $ac_config_files in *" 5987191930Sdelphij"*) set x $ac_config_files; shift; ac_config_files=$*;; 5988191930Sdelphijesac 5989191930Sdelphij 5990191930Sdelphijcase $ac_config_headers in *" 5991191930Sdelphij"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5992191930Sdelphijesac 5993191930Sdelphij 5994191930Sdelphij 5995191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5996128345Stjr# Files that config.status was made for. 5997170256Sdelphijconfig_files="$ac_config_files" 5998170256Sdelphijconfig_headers="$ac_config_headers" 5999128345Stjr 6000170256Sdelphij_ACEOF 6001128345Stjr 6002191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6003128345Stjrac_cs_usage="\ 6004221715Sdelphij\`$as_me' instantiates files and other configuration actions 6005221715Sdelphijfrom templates according to the current configuration. Unless the files 6006221715Sdelphijand actions are specified as TAGs, all are instantiated by default. 6007128345Stjr 6008221715SdelphijUsage: $0 [OPTION]... [TAG]... 6009128345Stjr 6010128345Stjr -h, --help print this help, then exit 6011170256Sdelphij -V, --version print version number and configuration settings, then exit 6012221715Sdelphij --config print configuration, then exit 6013191930Sdelphij -q, --quiet, --silent 6014191930Sdelphij do not print progress messages 6015128345Stjr -d, --debug don't remove temporary files 6016128345Stjr --recheck update $as_me by reconfiguring in the same conditions 6017191930Sdelphij --file=FILE[:TEMPLATE] 6018191930Sdelphij instantiate the configuration file FILE 6019191930Sdelphij --header=FILE[:TEMPLATE] 6020191930Sdelphij instantiate the configuration header FILE 6021128345Stjr 6022128345StjrConfiguration files: 6023128345Stjr$config_files 6024128345Stjr 6025128345StjrConfiguration headers: 6026128345Stjr$config_headers 6027128345Stjr 6028221715SdelphijReport bugs to the package provider." 6029170256Sdelphij 6030128345Stjr_ACEOF 6031191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6032221715Sdelphijac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6033128345Stjrac_cs_version="\\ 6034128345Stjrless config.status 1 6035221715Sdelphijconfigured by $0, generated by GNU Autoconf 2.67, 6036221715Sdelphij with options \\"\$ac_cs_config\\" 6037128345Stjr 6038221715SdelphijCopyright (C) 2010 Free Software Foundation, Inc. 6039128345StjrThis config.status script is free software; the Free Software Foundation 6040128345Stjrgives unlimited permission to copy, distribute and modify it." 6041170256Sdelphij 6042170256Sdelphijac_pwd='$ac_pwd' 6043170256Sdelphijsrcdir='$srcdir' 6044170256SdelphijINSTALL='$INSTALL' 6045191930Sdelphijtest -n "\$AWK" || AWK=awk 6046128345Stjr_ACEOF 6047128345Stjr 6048191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6049191930Sdelphij# The default lists apply if the user does not specify any file. 6050128345Stjrac_need_defaults=: 6051128345Stjrwhile test $# != 0 6052128345Stjrdo 6053128345Stjr case $1 in 6054221715Sdelphij --*=?*) 6055170256Sdelphij ac_option=`expr "X$1" : 'X\([^=]*\)='` 6056170256Sdelphij ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6057128345Stjr ac_shift=: 6058128345Stjr ;; 6059221715Sdelphij --*=) 6060221715Sdelphij ac_option=`expr "X$1" : 'X\([^=]*\)='` 6061221715Sdelphij ac_optarg= 6062221715Sdelphij ac_shift=: 6063221715Sdelphij ;; 6064170256Sdelphij *) 6065128345Stjr ac_option=$1 6066128345Stjr ac_optarg=$2 6067128345Stjr ac_shift=shift 6068128345Stjr ;; 6069128345Stjr esac 6070128345Stjr 6071128345Stjr case $ac_option in 6072128345Stjr # Handling of the options. 6073128345Stjr -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6074170256Sdelphij ac_cs_recheck=: ;; 6075170256Sdelphij --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6076191930Sdelphij $as_echo "$ac_cs_version"; exit ;; 6077221715Sdelphij --config | --confi | --conf | --con | --co | --c ) 6078221715Sdelphij $as_echo "$ac_cs_config"; exit ;; 6079170256Sdelphij --debug | --debu | --deb | --de | --d | -d ) 6080128345Stjr debug=: ;; 6081128345Stjr --file | --fil | --fi | --f ) 6082128345Stjr $ac_shift 6083191930Sdelphij case $ac_optarg in 6084191930Sdelphij *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6085221715Sdelphij '') as_fn_error $? "missing file argument" ;; 6086191930Sdelphij esac 6087221715Sdelphij as_fn_append CONFIG_FILES " '$ac_optarg'" 6088128345Stjr ac_need_defaults=false;; 6089128345Stjr --header | --heade | --head | --hea ) 6090128345Stjr $ac_shift 6091191930Sdelphij case $ac_optarg in 6092191930Sdelphij *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6093191930Sdelphij esac 6094221715Sdelphij as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6095128345Stjr ac_need_defaults=false;; 6096170256Sdelphij --he | --h) 6097170256Sdelphij # Conflict between --help and --header 6098221715Sdelphij as_fn_error $? "ambiguous option: \`$1' 6099221715SdelphijTry \`$0 --help' for more information.";; 6100170256Sdelphij --help | --hel | -h ) 6101191930Sdelphij $as_echo "$ac_cs_usage"; exit ;; 6102170256Sdelphij -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6103170256Sdelphij | -silent | --silent | --silen | --sile | --sil | --si | --s) 6104170256Sdelphij ac_cs_silent=: ;; 6105128345Stjr 6106128345Stjr # This is an error. 6107221715Sdelphij -*) as_fn_error $? "unrecognized option: \`$1' 6108221715SdelphijTry \`$0 --help' for more information." ;; 6109128345Stjr 6110221715Sdelphij *) as_fn_append ac_config_targets " $1" 6111170256Sdelphij ac_need_defaults=false ;; 6112128345Stjr 6113128345Stjr esac 6114128345Stjr shift 611560786Spsdone 6116128345Stjr 6117170256Sdelphijac_configure_extra_args= 6118128345Stjr 6119170256Sdelphijif $ac_cs_silent; then 6120170256Sdelphij exec 6>/dev/null 6121170256Sdelphij ac_configure_extra_args="$ac_configure_extra_args --silent" 6122170256Sdelphijfi 6123128345Stjr 6124170256Sdelphij_ACEOF 6125191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6126170256Sdelphijif \$ac_cs_recheck; then 6127191930Sdelphij set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6128191930Sdelphij shift 6129191930Sdelphij \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6130191930Sdelphij CONFIG_SHELL='$SHELL' 6131170256Sdelphij export CONFIG_SHELL 6132191930Sdelphij exec "\$@" 6133170256Sdelphijfi 6134128345Stjr 6135170256Sdelphij_ACEOF 6136191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6137170256Sdelphijexec 5>>config.log 6138170256Sdelphij{ 6139170256Sdelphij echo 6140170256Sdelphij sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6141170256Sdelphij## Running $as_me. ## 6142170256Sdelphij_ASBOX 6143191930Sdelphij $as_echo "$ac_log" 6144170256Sdelphij} >&5 6145128345Stjr 6146170256Sdelphij_ACEOF 6147191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6148170256Sdelphij_ACEOF 6149128345Stjr 6150191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6151170256Sdelphij 6152170256Sdelphij# Handling of arguments. 6153128345Stjrfor ac_config_target in $ac_config_targets 6154128345Stjrdo 6155170256Sdelphij case $ac_config_target in 6156170256Sdelphij "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;; 6157170256Sdelphij "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6158170256Sdelphij 6159221715Sdelphij *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 6160128345Stjr esac 6161128345Stjrdone 6162128345Stjr 6163170256Sdelphij 6164128345Stjr# If the user did not use the arguments to specify the items to instantiate, 6165128345Stjr# then the envvar interface is used. Set only those that are not. 6166128345Stjr# We use the long form for the default assignment because of an extremely 6167128345Stjr# bizarre bug on SunOS 4.1.3. 6168128345Stjrif $ac_need_defaults; then 6169128345Stjr test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6170128345Stjr test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 617160786Spsfi 617260786Sps 6173170256Sdelphij# Have a temporary directory for convenience. Make it in the build tree 6174170256Sdelphij# simply because there is no reason against having it here, and in addition, 6175170256Sdelphij# creating and moving files from /tmp can sometimes cause problems. 6176170256Sdelphij# Hook for its removal unless debugging. 6177170256Sdelphij# Note that there is a small window in which the directory will not be cleaned: 6178170256Sdelphij# after its creation but before its name has been assigned to `$tmp'. 6179128345Stjr$debug || 6180128345Stjr{ 6181170256Sdelphij tmp= 6182170256Sdelphij trap 'exit_status=$? 6183170256Sdelphij { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6184170256Sdelphij' 0 6185221715Sdelphij trap 'as_fn_exit 1' 1 2 13 15 6186128345Stjr} 6187170256Sdelphij# Create a (secure) tmp directory for tmp files. 618860786Sps 6189128345Stjr{ 6190170256Sdelphij tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6191128345Stjr test -n "$tmp" && test -d "$tmp" 6192128345Stjr} || 6193128345Stjr{ 6194170256Sdelphij tmp=./conf$$-$RANDOM 6195170256Sdelphij (umask 077 && mkdir "$tmp") 6196221715Sdelphij} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6197128345Stjr 6198191930Sdelphij# Set up the scripts for CONFIG_FILES section. 6199191930Sdelphij# No need to generate them if there are no CONFIG_FILES. 6200191930Sdelphij# This happens for instance with `./config.status config.h'. 6201170256Sdelphijif test -n "$CONFIG_FILES"; then 6202128345Stjr 6203191930Sdelphij 6204221715Sdelphijac_cr=`echo X | tr X '\015'` 6205221715Sdelphij# On cygwin, bash can eat \r inside `` if the user requested igncr. 6206221715Sdelphij# But we know of no other shell where ac_cr would be empty at this 6207221715Sdelphij# point, so we can use a bashism as a fallback. 6208221715Sdelphijif test "x$ac_cr" = x; then 6209221715Sdelphij eval ac_cr=\$\'\\r\' 6210221715Sdelphijfi 6211191930Sdelphijac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6212191930Sdelphijif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6213191930Sdelphij ac_cs_awk_cr='\\r' 6214191930Sdelphijelse 6215191930Sdelphij ac_cs_awk_cr=$ac_cr 6216191930Sdelphijfi 6217191930Sdelphij 6218191930Sdelphijecho 'BEGIN {' >"$tmp/subs1.awk" && 6219128345Stjr_ACEOF 6220128345Stjr 6221170256Sdelphij 6222191930Sdelphij{ 6223191930Sdelphij echo "cat >conf$$subs.awk <<_ACEOF" && 6224191930Sdelphij echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6225191930Sdelphij echo "_ACEOF" 6226191930Sdelphij} >conf$$subs.sh || 6227221715Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6228221715Sdelphijac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6229170256Sdelphijac_delim='%!_!# ' 6230170256Sdelphijfor ac_last_try in false false false false false :; do 6231191930Sdelphij . ./conf$$subs.sh || 6232221715Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6233170256Sdelphij 6234191930Sdelphij ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6235191930Sdelphij if test $ac_delim_n = $ac_delim_num; then 6236170256Sdelphij break 6237170256Sdelphij elif $ac_last_try; then 6238221715Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6239170256Sdelphij else 6240170256Sdelphij ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6241128345Stjr fi 6242170256Sdelphijdone 6243191930Sdelphijrm -f conf$$subs.sh 6244128345Stjr 6245191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6246191930Sdelphijcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6247191930Sdelphij_ACEOF 6248191930Sdelphijsed -n ' 6249191930Sdelphijh 6250191930Sdelphijs/^/S["/; s/!.*/"]=/ 6251191930Sdelphijp 6252191930Sdelphijg 6253191930Sdelphijs/^[^!]*!// 6254191930Sdelphij:repl 6255191930Sdelphijt repl 6256191930Sdelphijs/'"$ac_delim"'$// 6257191930Sdelphijt delim 6258191930Sdelphij:nl 6259191930Sdelphijh 6260221715Sdelphijs/\(.\{148\}\)..*/\1/ 6261191930Sdelphijt more1 6262191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6263191930Sdelphijp 6264191930Sdelphijn 6265191930Sdelphijb repl 6266191930Sdelphij:more1 6267191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6268191930Sdelphijp 6269191930Sdelphijg 6270191930Sdelphijs/.\{148\}// 6271191930Sdelphijt nl 6272191930Sdelphij:delim 6273191930Sdelphijh 6274221715Sdelphijs/\(.\{148\}\)..*/\1/ 6275191930Sdelphijt more2 6276191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/ 6277191930Sdelphijp 6278191930Sdelphijb 6279191930Sdelphij:more2 6280191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6281191930Sdelphijp 6282191930Sdelphijg 6283191930Sdelphijs/.\{148\}// 6284191930Sdelphijt delim 6285191930Sdelphij' <conf$$subs.awk | sed ' 6286191930Sdelphij/^[^""]/{ 6287191930Sdelphij N 6288191930Sdelphij s/\n// 6289191930Sdelphij} 6290191930Sdelphij' >>$CONFIG_STATUS || ac_write_fail=1 6291191930Sdelphijrm -f conf$$subs.awk 6292191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6293191930Sdelphij_ACAWK 6294191930Sdelphijcat >>"\$tmp/subs1.awk" <<_ACAWK && 6295191930Sdelphij for (key in S) S_is_set[key] = 1 6296191930Sdelphij FS = "" 6297170256Sdelphij 6298191930Sdelphij} 6299191930Sdelphij{ 6300191930Sdelphij line = $ 0 6301191930Sdelphij nfields = split(line, field, "@") 6302191930Sdelphij substed = 0 6303191930Sdelphij len = length(field[1]) 6304191930Sdelphij for (i = 2; i < nfields; i++) { 6305191930Sdelphij key = field[i] 6306191930Sdelphij keylen = length(key) 6307191930Sdelphij if (S_is_set[key]) { 6308191930Sdelphij value = S[key] 6309191930Sdelphij line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6310191930Sdelphij len += length(value) + length(field[++i]) 6311191930Sdelphij substed = 1 6312191930Sdelphij } else 6313191930Sdelphij len += 1 + keylen 6314191930Sdelphij } 6315191930Sdelphij 6316191930Sdelphij print line 6317191930Sdelphij} 6318191930Sdelphij 6319191930Sdelphij_ACAWK 6320128345Stjr_ACEOF 6321191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6322191930Sdelphijif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6323191930Sdelphij sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6324191930Sdelphijelse 6325191930Sdelphij cat 6326191930Sdelphijfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6327221715Sdelphij || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6328170256Sdelphij_ACEOF 6329170256Sdelphij 6330221715Sdelphij# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6331221715Sdelphij# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6332170256Sdelphij# trailing colons and then remove the whole line if VPATH becomes empty 6333170256Sdelphij# (actually we leave an empty line to preserve line numbers). 6334170256Sdelphijif test "x$srcdir" = x.; then 6335221715Sdelphij ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6336221715Sdelphijh 6337221715Sdelphijs/// 6338221715Sdelphijs/^/:/ 6339221715Sdelphijs/[ ]*$/:/ 6340221715Sdelphijs/:\$(srcdir):/:/g 6341221715Sdelphijs/:\${srcdir}:/:/g 6342221715Sdelphijs/:@srcdir@:/:/g 6343221715Sdelphijs/^:*// 6344170256Sdelphijs/:*$// 6345221715Sdelphijx 6346221715Sdelphijs/\(=[ ]*\).*/\1/ 6347221715SdelphijG 6348221715Sdelphijs/\n// 6349170256Sdelphijs/^[^=]*=[ ]*$// 6350170256Sdelphij}' 6351170256Sdelphijfi 6352170256Sdelphij 6353191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6354170256Sdelphijfi # test -n "$CONFIG_FILES" 6355170256Sdelphij 6356191930Sdelphij# Set up the scripts for CONFIG_HEADERS section. 6357191930Sdelphij# No need to generate them if there are no CONFIG_HEADERS. 6358191930Sdelphij# This happens for instance with `./config.status Makefile'. 6359191930Sdelphijif test -n "$CONFIG_HEADERS"; then 6360191930Sdelphijcat >"$tmp/defines.awk" <<\_ACAWK || 6361191930SdelphijBEGIN { 6362191930Sdelphij_ACEOF 6363170256Sdelphij 6364191930Sdelphij# Transform confdefs.h into an awk script `defines.awk', embedded as 6365191930Sdelphij# here-document in config.status, that substitutes the proper values into 6366191930Sdelphij# config.h.in to produce config.h. 6367191930Sdelphij 6368191930Sdelphij# Create a delimiter string that does not exist in confdefs.h, to ease 6369191930Sdelphij# handling of long lines. 6370191930Sdelphijac_delim='%!_!# ' 6371191930Sdelphijfor ac_last_try in false false :; do 6372191930Sdelphij ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6373191930Sdelphij if test -z "$ac_t"; then 6374191930Sdelphij break 6375191930Sdelphij elif $ac_last_try; then 6376221715Sdelphij as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6377191930Sdelphij else 6378191930Sdelphij ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6379191930Sdelphij fi 6380191930Sdelphijdone 6381191930Sdelphij 6382191930Sdelphij# For the awk script, D is an array of macro values keyed by name, 6383191930Sdelphij# likewise P contains macro parameters if any. Preserve backslash 6384191930Sdelphij# newline sequences. 6385191930Sdelphij 6386191930Sdelphijac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6387191930Sdelphijsed -n ' 6388191930Sdelphijs/.\{148\}/&'"$ac_delim"'/g 6389191930Sdelphijt rset 6390191930Sdelphij:rset 6391191930Sdelphijs/^[ ]*#[ ]*define[ ][ ]*/ / 6392191930Sdelphijt def 6393191930Sdelphijd 6394191930Sdelphij:def 6395191930Sdelphijs/\\$// 6396191930Sdelphijt bsnl 6397191930Sdelphijs/["\\]/\\&/g 6398191930Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6399191930SdelphijD["\1"]=" \3"/p 6400191930Sdelphijs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6401191930Sdelphijd 6402191930Sdelphij:bsnl 6403191930Sdelphijs/["\\]/\\&/g 6404191930Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6405191930SdelphijD["\1"]=" \3\\\\\\n"\\/p 6406191930Sdelphijt cont 6407191930Sdelphijs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6408191930Sdelphijt cont 6409191930Sdelphijd 6410191930Sdelphij:cont 6411191930Sdelphijn 6412191930Sdelphijs/.\{148\}/&'"$ac_delim"'/g 6413191930Sdelphijt clear 6414191930Sdelphij:clear 6415191930Sdelphijs/\\$// 6416191930Sdelphijt bsnlc 6417191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/p 6418191930Sdelphijd 6419191930Sdelphij:bsnlc 6420191930Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6421191930Sdelphijb cont 6422191930Sdelphij' <confdefs.h | sed ' 6423191930Sdelphijs/'"$ac_delim"'/"\\\ 6424191930Sdelphij"/g' >>$CONFIG_STATUS || ac_write_fail=1 6425191930Sdelphij 6426191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6427191930Sdelphij for (key in D) D_is_set[key] = 1 6428191930Sdelphij FS = "" 6429191930Sdelphij} 6430191930Sdelphij/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6431191930Sdelphij line = \$ 0 6432191930Sdelphij split(line, arg, " ") 6433191930Sdelphij if (arg[1] == "#") { 6434191930Sdelphij defundef = arg[2] 6435191930Sdelphij mac1 = arg[3] 6436191930Sdelphij } else { 6437191930Sdelphij defundef = substr(arg[1], 2) 6438191930Sdelphij mac1 = arg[2] 6439191930Sdelphij } 6440191930Sdelphij split(mac1, mac2, "(") #) 6441191930Sdelphij macro = mac2[1] 6442191930Sdelphij prefix = substr(line, 1, index(line, defundef) - 1) 6443191930Sdelphij if (D_is_set[macro]) { 6444191930Sdelphij # Preserve the white space surrounding the "#". 6445191930Sdelphij print prefix "define", macro P[macro] D[macro] 6446191930Sdelphij next 6447191930Sdelphij } else { 6448191930Sdelphij # Replace #undef with comments. This is necessary, for example, 6449191930Sdelphij # in the case of _POSIX_SOURCE, which is predefined and required 6450191930Sdelphij # on some systems where configure will not decide to define it. 6451191930Sdelphij if (defundef == "undef") { 6452191930Sdelphij print "/*", prefix defundef, macro, "*/" 6453191930Sdelphij next 6454191930Sdelphij } 6455191930Sdelphij } 6456191930Sdelphij} 6457191930Sdelphij{ print } 6458191930Sdelphij_ACAWK 6459191930Sdelphij_ACEOF 6460191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6461221715Sdelphij as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6462191930Sdelphijfi # test -n "$CONFIG_HEADERS" 6463191930Sdelphij 6464191930Sdelphij 6465191930Sdelphijeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 6466191930Sdelphijshift 6467191930Sdelphijfor ac_tag 6468170256Sdelphijdo 6469170256Sdelphij case $ac_tag in 6470170256Sdelphij :[FHLC]) ac_mode=$ac_tag; continue;; 647160786Sps esac 6472170256Sdelphij case $ac_mode$ac_tag in 6473170256Sdelphij :[FHL]*:*);; 6474221715Sdelphij :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 6475170256Sdelphij :[FH]-) ac_tag=-:-;; 6476170256Sdelphij :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6477170256Sdelphij esac 6478170256Sdelphij ac_save_IFS=$IFS 6479170256Sdelphij IFS=: 6480170256Sdelphij set x $ac_tag 6481170256Sdelphij IFS=$ac_save_IFS 6482170256Sdelphij shift 6483170256Sdelphij ac_file=$1 6484170256Sdelphij shift 648560786Sps 6486170256Sdelphij case $ac_mode in 6487170256Sdelphij :L) ac_source=$1;; 6488170256Sdelphij :[FH]) 6489170256Sdelphij ac_file_inputs= 6490170256Sdelphij for ac_f 6491170256Sdelphij do 6492170256Sdelphij case $ac_f in 6493170256Sdelphij -) ac_f="$tmp/stdin";; 6494170256Sdelphij *) # Look for the file first in the build tree, then in the source tree 6495170256Sdelphij # (if the path is not absolute). The absolute path cannot be DOS-style, 6496170256Sdelphij # because $ac_f cannot contain `:'. 6497170256Sdelphij test -f "$ac_f" || 6498170256Sdelphij case $ac_f in 6499170256Sdelphij [\\/$]*) false;; 6500170256Sdelphij *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6501170256Sdelphij esac || 6502221715Sdelphij as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 6503170256Sdelphij esac 6504191930Sdelphij case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6505221715Sdelphij as_fn_append ac_file_inputs " '$ac_f'" 6506170256Sdelphij done 6507170256Sdelphij 6508170256Sdelphij # Let's still pretend it is `configure' which instantiates (i.e., don't 6509170256Sdelphij # use $as_me), people would be surprised to read: 6510170256Sdelphij # /* config.h. Generated by config.status. */ 6511191930Sdelphij configure_input='Generated from '` 6512191930Sdelphij $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6513191930Sdelphij `' by configure.' 6514170256Sdelphij if test x"$ac_file" != x-; then 6515170256Sdelphij configure_input="$ac_file. $configure_input" 6516221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6517191930Sdelphij$as_echo "$as_me: creating $ac_file" >&6;} 6518170256Sdelphij fi 6519191930Sdelphij # Neutralize special characters interpreted by sed in replacement strings. 6520191930Sdelphij case $configure_input in #( 6521191930Sdelphij *\&* | *\|* | *\\* ) 6522191930Sdelphij ac_sed_conf_input=`$as_echo "$configure_input" | 6523191930Sdelphij sed 's/[\\\\&|]/\\\\&/g'`;; #( 6524191930Sdelphij *) ac_sed_conf_input=$configure_input;; 6525191930Sdelphij esac 6526170256Sdelphij 6527170256Sdelphij case $ac_tag in 6528191930Sdelphij *:-:* | *:-) cat >"$tmp/stdin" \ 6529221715Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6530170256Sdelphij esac 6531170256Sdelphij ;; 6532170256Sdelphij esac 6533170256Sdelphij 6534170256Sdelphij ac_dir=`$as_dirname -- "$ac_file" || 6535128345Stjr$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6536170256Sdelphij X"$ac_file" : 'X\(//\)[^/]' \| \ 6537170256Sdelphij X"$ac_file" : 'X\(//\)$' \| \ 6538170256Sdelphij X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6539191930Sdelphij$as_echo X"$ac_file" | 6540170256Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6541170256Sdelphij s//\1/ 6542170256Sdelphij q 6543170256Sdelphij } 6544170256Sdelphij /^X\(\/\/\)[^/].*/{ 6545170256Sdelphij s//\1/ 6546170256Sdelphij q 6547170256Sdelphij } 6548170256Sdelphij /^X\(\/\/\)$/{ 6549170256Sdelphij s//\1/ 6550170256Sdelphij q 6551170256Sdelphij } 6552170256Sdelphij /^X\(\/\).*/{ 6553170256Sdelphij s//\1/ 6554170256Sdelphij q 6555170256Sdelphij } 6556170256Sdelphij s/.*/./; q'` 6557221715Sdelphij as_dir="$ac_dir"; as_fn_mkdir_p 6558128345Stjr ac_builddir=. 6559128345Stjr 6560170256Sdelphijcase "$ac_dir" in 6561170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6562170256Sdelphij*) 6563191930Sdelphij ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6564170256Sdelphij # A ".." for each directory in $ac_dir_suffix. 6565191930Sdelphij ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6566170256Sdelphij case $ac_top_builddir_sub in 6567170256Sdelphij "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6568170256Sdelphij *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6569170256Sdelphij esac ;; 6570170256Sdelphijesac 6571170256Sdelphijac_abs_top_builddir=$ac_pwd 6572170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix 6573170256Sdelphij# for backward compatibility: 6574170256Sdelphijac_top_builddir=$ac_top_build_prefix 6575128345Stjr 6576128345Stjrcase $srcdir in 6577170256Sdelphij .) # We are building in place. 6578128345Stjr ac_srcdir=. 6579170256Sdelphij ac_top_srcdir=$ac_top_builddir_sub 6580170256Sdelphij ac_abs_top_srcdir=$ac_pwd ;; 6581170256Sdelphij [\\/]* | ?:[\\/]* ) # Absolute name. 6582128345Stjr ac_srcdir=$srcdir$ac_dir_suffix; 6583170256Sdelphij ac_top_srcdir=$srcdir 6584170256Sdelphij ac_abs_top_srcdir=$srcdir ;; 6585170256Sdelphij *) # Relative name. 6586170256Sdelphij ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6587170256Sdelphij ac_top_srcdir=$ac_top_build_prefix$srcdir 6588170256Sdelphij ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6589128345Stjresac 6590170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 659160786Sps 659260786Sps 6593170256Sdelphij case $ac_mode in 6594170256Sdelphij :F) 6595170256Sdelphij # 6596170256Sdelphij # CONFIG_FILE 6597170256Sdelphij # 6598170256Sdelphij 6599128345Stjr case $INSTALL in 6600128345Stjr [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6601170256Sdelphij *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 660260786Sps esac 6603170256Sdelphij_ACEOF 660460786Sps 6605191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6606170256Sdelphij# If the template does not know about datarootdir, expand it. 6607170256Sdelphij# FIXME: This hack should be removed a few years after 2.60. 6608170256Sdelphijac_datarootdir_hack=; ac_datarootdir_seen= 6609191930Sdelphijac_sed_dataroot=' 6610191930Sdelphij/datarootdir/ { 6611170256Sdelphij p 6612170256Sdelphij q 6613170256Sdelphij} 6614170256Sdelphij/@datadir@/p 6615170256Sdelphij/@docdir@/p 6616170256Sdelphij/@infodir@/p 6617170256Sdelphij/@localedir@/p 6618221715Sdelphij/@mandir@/p' 6619191930Sdelphijcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6620170256Sdelphij*datarootdir*) ac_datarootdir_seen=yes;; 6621170256Sdelphij*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6622221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6623191930Sdelphij$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6624128345Stjr_ACEOF 6625191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6626170256Sdelphij ac_datarootdir_hack=' 6627170256Sdelphij s&@datadir@&$datadir&g 6628170256Sdelphij s&@docdir@&$docdir&g 6629170256Sdelphij s&@infodir@&$infodir&g 6630170256Sdelphij s&@localedir@&$localedir&g 6631170256Sdelphij s&@mandir@&$mandir&g 6632221715Sdelphij s&\\\${datarootdir}&$datarootdir&g' ;; 6633170256Sdelphijesac 6634170256Sdelphij_ACEOF 6635170256Sdelphij 6636170256Sdelphij# Neutralize VPATH when `$srcdir' = `.'. 6637170256Sdelphij# Shell code in configure.ac might set extrasub. 6638170256Sdelphij# FIXME: do we really want to maintain this feature? 6639191930Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6640191930Sdelphijac_sed_extra="$ac_vpsub 6641128345Stjr$extrasub 6642128345Stjr_ACEOF 6643191930Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6644128345Stjr:t 6645128345Stjr/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6646191930Sdelphijs|@configure_input@|$ac_sed_conf_input|;t t 6647170256Sdelphijs&@top_builddir@&$ac_top_builddir_sub&;t t 6648191930Sdelphijs&@top_build_prefix@&$ac_top_build_prefix&;t t 6649170256Sdelphijs&@srcdir@&$ac_srcdir&;t t 6650170256Sdelphijs&@abs_srcdir@&$ac_abs_srcdir&;t t 6651170256Sdelphijs&@top_srcdir@&$ac_top_srcdir&;t t 6652170256Sdelphijs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6653170256Sdelphijs&@builddir@&$ac_builddir&;t t 6654170256Sdelphijs&@abs_builddir@&$ac_abs_builddir&;t t 6655170256Sdelphijs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6656170256Sdelphijs&@INSTALL@&$ac_INSTALL&;t t 6657170256Sdelphij$ac_datarootdir_hack 6658191930Sdelphij" 6659191930Sdelphijeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6660221715Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6661128345Stjr 6662170256Sdelphijtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6663170256Sdelphij { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6664170256Sdelphij { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6665221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6666221715Sdelphijwhich seems to be undefined. Please make sure it is defined" >&5 6667191930Sdelphij$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6668221715Sdelphijwhich seems to be undefined. Please make sure it is defined" >&2;} 6669128345Stjr 6670170256Sdelphij rm -f "$tmp/stdin" 6671128345Stjr case $ac_file in 6672191930Sdelphij -) cat "$tmp/out" && rm -f "$tmp/out";; 6673191930Sdelphij *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6674191930Sdelphij esac \ 6675221715Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6676170256Sdelphij ;; 6677170256Sdelphij :H) 6678170256Sdelphij # 6679170256Sdelphij # CONFIG_HEADER 6680170256Sdelphij # 6681128345Stjr if test x"$ac_file" != x-; then 6682191930Sdelphij { 6683191930Sdelphij $as_echo "/* $configure_input */" \ 6684191930Sdelphij && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6685191930Sdelphij } >"$tmp/config.h" \ 6686221715Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6687191930Sdelphij if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6688221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6689191930Sdelphij$as_echo "$as_me: $ac_file is unchanged" >&6;} 6690128345Stjr else 6691191930Sdelphij rm -f "$ac_file" 6692191930Sdelphij mv "$tmp/config.h" "$ac_file" \ 6693221715Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 669460786Sps fi 6695128345Stjr else 6696191930Sdelphij $as_echo "/* $configure_input */" \ 6697191930Sdelphij && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6698221715Sdelphij || as_fn_error $? "could not create -" "$LINENO" 5 669960786Sps fi 6700170256Sdelphij ;; 670160786Sps 670260786Sps 6703170256Sdelphij esac 6704170256Sdelphij 6705170256Sdelphijdone # for ac_tag 6706170256Sdelphij 6707170256Sdelphij 6708221715Sdelphijas_fn_exit 0 6709128345Stjr_ACEOF 6710128345Stjrac_clean_files=$ac_clean_files_save 671160786Sps 6712191930Sdelphijtest $ac_write_fail = 0 || 6713221715Sdelphij as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6714128345Stjr 6715191930Sdelphij 6716128345Stjr# configure is writing to config.log, and then calls config.status. 6717128345Stjr# config.status does its own redirection, appending to config.log. 6718128345Stjr# Unfortunately, on DOS this fails, as config.log is still kept open 6719128345Stjr# by configure, so config.status won't be able to write to it; its 6720128345Stjr# output is simply discarded. So we exec the FD to /dev/null, 6721128345Stjr# effectively closing config.log, so it can be properly (re)opened and 6722128345Stjr# appended to by config.status. When coming back to configure, we 6723128345Stjr# need to make the FD available again. 6724128345Stjrif test "$no_create" != yes; then 6725128345Stjr ac_cs_success=: 6726170256Sdelphij ac_config_status_args= 6727170256Sdelphij test "$silent" = yes && 6728170256Sdelphij ac_config_status_args="$ac_config_status_args --quiet" 6729128345Stjr exec 5>/dev/null 6730170256Sdelphij $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6731128345Stjr exec 5>>config.log 6732128345Stjr # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6733128345Stjr # would make configure fail if this is the last instruction. 6734221715Sdelphij $ac_cs_success || as_fn_exit 1 6735128345Stjrfi 6736191930Sdelphijif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6737221715Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6738191930Sdelphij$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6739191930Sdelphijfi 6740128345Stjr 6741